@univerjs-pro/edit-history-loader 0.20.0 → 0.20.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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +43 -43
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x53c793=_0x3aee;(function(_0x1aa52a,_0x35f768){const _0xd39533=_0x3aee,_0x42496f=_0x1aa52a();while(!![]){try{const _0x4a7d02=parseInt(_0xd39533(0x26c))/0x1+-parseInt(_0xd39533(0x1cf))/0x2+parseInt(_0xd39533(0x1c7))/0x3+parseInt(_0xd39533(0x197))/0x4+parseInt(_0xd39533(0x1e5))/0x5*(parseInt(_0xd39533(0x1d8))/0x6)+parseInt(_0xd39533(0x23d))/0x7*(parseInt(_0xd39533(0x1bb))/0x8)+-parseInt(_0xd39533(0x1b2))/0x9;if(_0x4a7d02===_0x35f768)break;else _0x42496f['push'](_0x42496f['shift']());}catch(_0x5b59cd){_0x42496f['push'](_0x42496f['shift']());}}}(_0x55f3,0xeb39d),Object[_0x53c793(0x21e)](exports,Symbol[_0x53c793(0x24d)],{'value':_0x53c793(0x194)}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),te=require(`@univerjs/sheets-filter`),ne=require(`@univerjs/sheets-filter-ui`),re=require(`@univerjs/sheets-formula`),ie=require(`@univerjs/sheets-formula-ui`),ae=require(`@univerjs/sheets-hyper-link`),O=require(`@univerjs/sheets-hyper-link-ui`),k=require(`@univerjs/sheets-numfmt`),A=require(`@univerjs/sheets-table`),j=require(`@univerjs/sheets-ui`),M=require(`@univerjs/ui`),N=require(`rxjs`),P=require(`@univerjs-pro/collaboration-client-ui`),F=require(`@univerjs/icons`),I=require(`@univerjs/protocol`);const L='edit-history-loader.config';Symbol(L);const R={};function z(_0x4a3522){'@babel/helpers - typeof';const _0x39fe2d=_0x53c793;return z=typeof Symbol=='function'&&typeof Symbol[_0x39fe2d(0x238)]=='symbol'?function(_0x536376){return typeof _0x536376;}:function(_0x32c28f){const _0x55ecff=_0x39fe2d;return _0x32c28f&&typeof Symbol==_0x55ecff(0x1ab)&&_0x32c28f[_0x55ecff(0x191)]===Symbol&&_0x32c28f!==Symbol['prototype']?_0x55ecff(0x223):typeof _0x32c28f;},z(_0x4a3522);}function oe(_0x387230,_0x1d7ee6){const _0x72c024=_0x53c793;if(z(_0x387230)!=_0x72c024(0x19e)||!_0x387230)return _0x387230;var _0x2e8f62=_0x387230[Symbol[_0x72c024(0x236)]];if(_0x2e8f62!==void 0x0){var _0x474a5a=_0x2e8f62[_0x72c024(0x202)](_0x387230,_0x1d7ee6||_0x72c024(0x23b));if(z(_0x474a5a)!=_0x72c024(0x19e))return _0x474a5a;throw TypeError(_0x72c024(0x1f5));}return(_0x1d7ee6==='string'?String:Number)(_0x387230);}function se(_0x5cce09){const _0x80b725=_0x53c793;var _0x251701=oe(_0x5cce09,_0x80b725(0x259));return z(_0x251701)==_0x80b725(0x223)?_0x251701:_0x251701+'';}function B(_0x3f36e2,_0x27dbe2,_0x453c62){const _0x45a5e5=_0x53c793;return(_0x27dbe2=se(_0x27dbe2))in _0x3f36e2?Object[_0x45a5e5(0x21e)](_0x3f36e2,_0x27dbe2,{'value':_0x453c62,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f36e2[_0x27dbe2]=_0x453c62,_0x3f36e2;}function V(_0x1fee3c,_0xc4532c){return function(_0xd8d7c5,_0x181c61){_0xc4532c(_0xd8d7c5,_0x181c61,_0x1fee3c);};}function H(_0x170bdd,_0x20dbb8,_0x2845d3,_0xf8eadf){const _0x2260ce=_0x53c793;var _0x1748a0=arguments['length'],_0xe15e1e=_0x1748a0<0x3?_0x20dbb8:_0xf8eadf===null?_0xf8eadf=Object[_0x2260ce(0x1db)](_0x20dbb8,_0x2845d3):_0xf8eadf,_0x39b60e;if(typeof Reflect=='object'&&typeof Reflect[_0x2260ce(0x23e)]==_0x2260ce(0x1ab))_0xe15e1e=Reflect[_0x2260ce(0x23e)](_0x170bdd,_0x20dbb8,_0x2845d3,_0xf8eadf);else{for(var _0x48edfa=_0x170bdd[_0x2260ce(0x19a)]-0x1;_0x48edfa>=0x0;_0x48edfa--)(_0x39b60e=_0x170bdd[_0x48edfa])&&(_0xe15e1e=(_0x1748a0<0x3?_0x39b60e(_0xe15e1e):_0x1748a0>0x3?_0x39b60e(_0x20dbb8,_0x2845d3,_0xe15e1e):_0x39b60e(_0x20dbb8,_0x2845d3))||_0xe15e1e);}return _0x1748a0>0x3&&_0xe15e1e&&Object['defineProperty'](_0x20dbb8,_0x2845d3,_0xe15e1e),_0xe15e1e;}const U=_0x53c793(0x27b),W=_0x53c793(0x25f);let G=class extends e[_0x53c793(0x277)]{constructor(_0x435727,_0x4020c3,_0x570d26,_0x248e7f,_0x39f7a2,_0x429c73,_0x407fdc,_0x338fbd,_0x1df9de,_0x5ca2ee){const _0xb44250=_0x53c793;super(),this['_localeService']=_0x435727,this[_0xb44250(0x1b5)]=_0x4020c3,this['_configService']=_0x570d26,this['_commandService']=_0x248e7f,this['_messageService']=_0x39f7a2,this['_permissionService']=_0x429c73,this[_0xb44250(0x233)]=_0x407fdc,this['_dialogService']=_0x338fbd,this[_0xb44250(0x208)]=_0x1df9de,this[_0xb44250(0x1b1)]=_0x5ca2ee,B(this,_0xb44250(0x181),new N[(_0xb44250(0x273))](null)),B(this,'historyUniver$',this[_0xb44250(0x181)][_0xb44250(0x25a)]()),B(this,'_disposableCollection',new e[(_0xb44250(0x21b))]()),B(this,_0xb44250(0x1d9),new Map()),B(this,_0xb44250(0x290),null),this['_init']();}get['historyUniver'](){const _0x25d291=_0x53c793;return this[_0x25d291(0x181)]['value'];}['_init'](){const _0x428bdd=_0x53c793;this[_0x428bdd(0x1c4)](),this[_0x428bdd(0x243)]();}['_initContainer'](){const _0x34eceb=_0x53c793;var _0x53b136;let _0x55e405=(_0x53b136=this[_0x34eceb(0x1f8)][_0x34eceb(0x244)](_0x34eceb(0x27b)))==null?_0x34eceb(0x28a):_0x53b136,_0x1cca2b=document[_0x34eceb(0x297)](_0x55e405);if(!_0x1cca2b)return;let _0x48d3e6=document['createElement'](_0x34eceb(0x1c0));_0x48d3e6['id']=W,_0x48d3e6[_0x34eceb(0x285)]['uComp']=_0x34eceb(0x216),_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x266)]='absolute',_0x48d3e6['style']['top']='0',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x21a)]='0',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x20e)]='100%',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x20c)]='100%',_0x48d3e6[_0x34eceb(0x288)][_0x34eceb(0x234)]='49',_0x48d3e6[_0x34eceb(0x288)]['display']=_0x34eceb(0x1b4),_0x1cca2b[_0x34eceb(0x184)](_0x48d3e6);}['_initPlugins'](){const _0x41de94=_0x53c793;[[b[_0x41de94(0x276)]],[M[_0x41de94(0x22c)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x41de94(0x21f)],null]]}],[x['UniverNetworkPlugin']],[_[_0x41de94(0x200)],{'override':[[_[_0x41de94(0x201)],null]]}],[h[_0x41de94(0x293)],{'hasScroll':!0x1}],[g[_0x41de94(0x1de)]],[k['UniverSheetsNumfmtPlugin']],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[j[_0x41de94(0x27d)]],[re['UniverSheetsFormulaPlugin']],[ie[_0x41de94(0x195)]],[n[_0x41de94(0x219)]],[te['UniverSheetsFilterPlugin']],[ne[_0x41de94(0x210)]],[C[_0x41de94(0x22f)]],[ee['UniverSheetsConditionalFormattingUIPlugin']],[ae[_0x41de94(0x20a)]],[O[_0x41de94(0x294)]],[p['UniverDataValidationPlugin']],[w[_0x41de94(0x1b6)]],[T['UniverSheetsDataValidationUIPlugin']],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x41de94(0x1a1)]],[E[_0x41de94(0x1ce)]],[D[_0x41de94(0x268)]],[d[_0x41de94(0x25e)]],[f[_0x41de94(0x225)]],[o[_0x41de94(0x1a2)]],[s[_0x41de94(0x246)]],[l['UniverSheetsShapePlugin']],[u[_0x41de94(0x1be)]],[c[_0x41de94(0x27c)],{'notExecuteFormula':!0x0}],[A[_0x41de94(0x252)]]][_0x41de94(0x25b)](([_0xe1c167,_0x2b42a4])=>this[_0x41de94(0x1f6)](_0xe1c167,_0x2b42a4));}[_0x53c793(0x27e)](){const _0x1e8143=_0x53c793;super[_0x1e8143(0x27e)](),this[_0x1e8143(0x264)](),this[_0x1e8143(0x1d9)][_0x1e8143(0x298)]();}[_0x53c793(0x1f6)](_0x9181a3,_0x3b09b9,_0x2409bd){const _0x6e9f05=_0x53c793;if(this['_pluginMap']['has'](_0x9181a3[_0x6e9f05(0x1f9)])&&!_0x2409bd)throw Error(_0x6e9f05(0x255)+_0x9181a3[_0x6e9f05(0x1f9)]+_0x6e9f05(0x212));this[_0x6e9f05(0x1d9)][_0x6e9f05(0x1a7)](_0x9181a3[_0x6e9f05(0x1f9)],[_0x9181a3,_0x3b09b9]);}[_0x53c793(0x183)](){const _0xc50d16=_0x53c793;return Array[_0xc50d16(0x281)](this['_pluginMap'][_0xc50d16(0x213)]());}[_0x53c793(0x19f)](_0x1c88a4,_0x3d22ba){const _0x19630b=_0x53c793;let _0x389228=document['getElementById'](W);_0x389228&&(_0x389228['style'][_0x19630b(0x1ea)]=_0x19630b(0x23c),this[_0x19630b(0x284)](_0x1c88a4,W,_0x3d22ba));}[_0x53c793(0x264)](){const _0x29e890=_0x53c793;var _0x53f4da;this[_0x29e890(0x282)]['dispose'](),(_0x53f4da=this[_0x29e890(0x26d)])==null||_0x53f4da[_0x29e890(0x27e)](),this[_0x29e890(0x181)][_0x29e890(0x215)](null);let _0x2418e0=document[_0x29e890(0x297)](W);_0x2418e0&&(_0x2418e0[_0x29e890(0x288)][_0x29e890(0x1ea)]=_0x29e890(0x1b4),this[_0x29e890(0x290)]&&(this['_internalWebWorker']['terminate'](),this['_internalWebWorker']=null));}[_0x53c793(0x284)](_0x17e4c5,_0x37e9d3,_0x3435cd){const _0x8c6f97=_0x53c793;var _0x3297e2,_0x4b9b14,_0x5dcee7,_0x47ac52,_0x1854a0;if(this[_0x8c6f97(0x26d)])return;let _0xcf2df2=new e[(_0x8c6f97(0x1b7))]({'locales':{[this[_0x8c6f97(0x287)][_0x8c6f97(0x1c5)]()]:this[_0x8c6f97(0x287)][_0x8c6f97(0x207)]()},'override':[[e['IAuthzIoService'],{'useClass':r[_0x8c6f97(0x28d)]}]]}),_0x2ec180=_0xcf2df2[_0x8c6f97(0x180)]();this[_0x8c6f97(0x18b)](this[_0x8c6f97(0x1b1)]['darkMode$']['subscribe'](_0x5a1a5b=>{const _0x155734=_0x8c6f97;_0x2ec180[_0x155734(0x1ba)](e[_0x155734(0x242)])['setDarkMode'](_0x5a1a5b);})),this[_0x8c6f97(0x18b)](this[_0x8c6f97(0x1b1)][_0x8c6f97(0x24e)]['subscribe'](_0x3a185c=>{const _0x5c20b6=_0x8c6f97;_0x2ec180[_0x5c20b6(0x1ba)](e[_0x5c20b6(0x242)])[_0x5c20b6(0x1f1)](_0x3a185c);})),_0x2ec180['get'](e[_0x8c6f97(0x1b9)])['setLocale'](this[_0x8c6f97(0x287)][_0x8c6f97(0x1c5)]()),_0x2ec180[_0x8c6f97(0x1ba)](e['IConfigService'])[_0x8c6f97(0x187)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x5696e8=this['_configService'][_0x8c6f97(0x244)](a['LS_CONFIG_KEY']);_0x5696e8&&_0xcf2df2[_0x8c6f97(0x1f6)](a[_0x8c6f97(0x1ed)],{'license':_0x5696e8['ls']});let _0x3e1ada=(_0x3297e2=this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)]('edit-history-loader.config'))==null?void 0x0:_0x3297e2['workerURL'],_0x1aeeb0=!!_0x3e1ada;_0x1aeeb0&&(this[_0x8c6f97(0x290)]=_0x3e1ada instanceof Worker?_0x3e1ada:null,_0xcf2df2[_0x8c6f97(0x1f6)](S['UniverRPCMainThreadPlugin'],{'workerURL':_0x3e1ada})),this[_0x8c6f97(0x1d9)][_0x8c6f97(0x25b)](([_0x585750,_0xe6ef6f])=>{const _0x22a19f=_0x8c6f97;_0xcf2df2[_0x22a19f(0x1f6)](_0x585750,_0xe6ef6f);}),_0xcf2df2[_0x8c6f97(0x1f6)](i['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x4b9b14=this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x4b9b14[_0x8c6f97(0x235)],'historyPanelComponentKey':(_0x5dcee7=this[_0x8c6f97(0x1f8)][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x5dcee7[_0x8c6f97(0x1a4)],'historyPanelHidden':(_0x47ac52=this['_configService'][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x47ac52[_0x8c6f97(0x19d)],'historyAIassistantEnabled':(_0x1854a0=this['_configService'][_0x8c6f97(0x244)](_0x8c6f97(0x295)))==null?void 0x0:_0x1854a0[_0x8c6f97(0x1eb)]}),_0x2ec180['invoke'](_0x1055d6=>{const _0x15b495=_0x8c6f97;this[_0x15b495(0x211)](_0x1055d6,_0x17e4c5);}),this[_0x8c6f97(0x181)][_0x8c6f97(0x215)](_0xcf2df2);let _0x7f86eb=_0x2ec180[_0x8c6f97(0x1ba)](i[_0x8c6f97(0x283)]),_0x18abdd=this[_0x8c6f97(0x1e4)](_0x17e4c5),_0x5cb240=()=>{const _0xe62147=_0x8c6f97;_0x3435cd?_0x7f86eb[_0xe62147(0x1b0)](_0x17e4c5,_0x37e9d3,_0x18abdd,_0x3435cd):_0x7f86eb['triggerLoadVersions'](_0x17e4c5,_0x37e9d3,_0x18abdd);};if(this[_0x8c6f97(0x232)]['show']({'content':this[_0x8c6f97(0x287)]['t'](_0x8c6f97(0x1a5)),'type':m[_0x8c6f97(0x20f)]['Loading']}),_0x1aeeb0)try{_0x2ec180[_0x8c6f97(0x1ba)](S[_0x8c6f97(0x28c)])[_0x8c6f97(0x20b)]()[_0x8c6f97(0x214)](()=>{_0x5cb240();});}catch{_0x5cb240();}else _0x5cb240();}[_0x53c793(0x211)](_0x5d07fb,_0x5a1786){const _0x374325=_0x53c793;let _0x1987be=_0x5d07fb['get'](i[_0x374325(0x283)]);this[_0x374325(0x282)][_0x374325(0x1c1)](_0x1987be['status$'][_0x374325(0x21c)](_0x23ba45=>{const _0x323428=_0x374325;switch(_0x23ba45){case i['HistoryModeStatus'][_0x323428(0x269)]:this[_0x323428(0x1b8)]['closeAll'](),this[_0x323428(0x208)][_0x323428(0x289)]();break;case i[_0x323428(0x270)][_0x323428(0x1cc)]:this['_commandService'][_0x323428(0x1e3)](q['id']),this['unMountHistoryContent']();break;case i[_0x323428(0x270)][_0x323428(0x261)]:this[_0x323428(0x264)](),this['_messageService'][_0x323428(0x1c8)]({'content':this[_0x323428(0x287)]['t']('editHistory.panel.listFetchError'),'type':m[_0x323428(0x20f)]['Error'],'duration':0xbb8});break;default:break;}})),this[_0x374325(0x282)][_0x374325(0x1c1)](_0x1987be[_0x374325(0x22e)][_0x374325(0x21c)](async _0x3e8a51=>{const _0x28698d=_0x374325;_0x3e8a51&&this['_commandService'][_0x28698d(0x1e3)](n[_0x28698d(0x1f2)]['id'],{'unitId':_0x5a1786,'revision':_0x3e8a51});}));}[_0x53c793(0x1e4)](_0xde2541){const _0x2fd5c3=_0x53c793;let _0x5125b6=this[_0x2fd5c3(0x1b5)][_0x2fd5c3(0x1fa)](_0xde2541)[_0x2fd5c3(0x240)]()[_0x2fd5c3(0x1ae)](_0x46b8a3=>_0x46b8a3['getSheetId']()),_0x18bfb0=new t[(_0x2fd5c3(0x23a))](_0xde2541)['id'],_0x420f59=_0x5125b6[_0x2fd5c3(0x1ae)](_0x18a8b8=>new t[(_0x2fd5c3(0x182))](_0xde2541,_0x18a8b8)['id']),_0x319883=_0x5125b6[_0x2fd5c3(0x1ae)](_0x1d610d=>this[_0x2fd5c3(0x233)][_0x2fd5c3(0x188)](_0xde2541,_0x1d610d)[_0x2fd5c3(0x1ae)](_0xfc3246=>new t[(_0x2fd5c3(0x1e7))](_0xde2541,_0x1d610d,_0xfc3246['permissionId'])['id']))[_0x2fd5c3(0x1f3)](),_0x52d08d=new t[(_0x2fd5c3(0x25c))](_0xde2541)['id'];return this['_permissionService'][_0x2fd5c3(0x26f)]([_0x18bfb0,..._0x420f59,..._0x319883,_0x52d08d])[_0x2fd5c3(0x21d)](_0x7ad9fa=>!!_0x7ad9fa[_0x2fd5c3(0x253)]);}};G=H([V(0x0,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x1,e['IUniverInstanceService']),V(0x2,e[_0x53c793(0x19b)]),V(0x3,e[_0x53c793(0x291)]),V(0x4,M['IMessageService']),V(0x5,e['IPermissionService']),V(0x6,(0x0,e[_0x53c793(0x239)])(t[_0x53c793(0x286)])),V(0x7,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x21f)])),V(0x8,(0x0,e[_0x53c793(0x239)])(M['ISidebarService'])),V(0x9,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x242)]))],G);const K={'id':_0x53c793(0x257),'type':e[_0x53c793(0x271)]['OPERATION'],'handler':_0x3be211=>{const _0x35201a=_0x53c793;let _0x51c940=_0x3be211[_0x35201a(0x1ba)](G),{unitId:_0x1d1969}=(0x0,t[_0x35201a(0x209)])(_0x3be211['get'](e[_0x35201a(0x204)]))||{};return _0x1d1969?(_0x51c940[_0x35201a(0x19f)](_0x1d1969),!0x0):!0x1;}},q={'id':_0x53c793(0x241),'type':e['CommandType']['OPERATION'],'handler':()=>!0x0};var ce='@univerjs-pro/edit-history-loader',le=_0x53c793(0x1e9);function ue(_0x551072){const _0x108fe3=_0x53c793;return{'id':K['id'],'type':M[_0x108fe3(0x1e0)][_0x108fe3(0x206)],'icon':'HistoryIcon','tooltip':_0x108fe3(0x1e6),'hidden$':(0x0,M[_0x108fe3(0x22a)])(_0x551072,e[_0x108fe3(0x1d5)]['UNIVER_SHEET']),'disabled$':(0x0,j['getCurrentRangeDisable$'])(_0x551072,{'workbookTypes':[t[_0x108fe3(0x23a)],t[_0x108fe3(0x1ff)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x55f3(){const _0xcd7365=['_collaborationController','DataLoaderService','_init','WorkbookViewHistoryPermission','UniverDrawingPlugin','IImageIoService','call','reload','IUniverInstanceService','status','BUTTON','getLocales','_sidebarService','getSheetCommandTarget','UniverSheetsHyperLinkPlugin','whenReady','height','_setupSubUnitSync','width','MessageType','UniverSheetsFilterUIPlugin','_initListener','\x20has\x20been\x20registered.','values','then','next','history-container','100%','location','UniverCollaborationPlugin','left','DisposableCollection','subscribe','every','defineProperty','IDialogService','onCommandExecuted','getUnitId','eventID','symbol','disposeUnit','UniverSheetSparklineUIPlugin','takeUntil','UniverEditHistoryViewerMobilePlugin','_permissionService','ToggleEditHistoryOperation','getMenuHiddenObservable','UniverRPCMainThreadPlugin','UniverUIPlugin','_historyManagerService','revertRevision$','UniverSheetsConditionalFormattingPlugin','[MobileHistoryLoaderService]:\x20Plugin\x20','getUnhiddenWorksheets','_messageService','_selectionProtectionRuleModel','zIndex','historyListServerUrl','toPrimitive','CollaborationEvent','iterator','Inject','WorkbookEditablePermission','default','block','62706SHPTBD','decorate','IURLService','getSheets','univer.operation.exit-edit-history','ThemeService','_initPlugins','getConfig','getParam','UniverSheetsChartUIPlugin','_localCacheService','ComponentManager','event$','toDisposable','SYNCED','_updateSubUnitFromURLParams','toStringTag','currentTheme$','UniverSheetsMobileUIPlugin','state$','_updateURLWithCurrentState','UniverSheetsTablePlugin','value','status$','[HistoryLoaderService]:\x20Plugin\x20','invoke','univer.operation.toggle-edit-history','HistoryIcon','string','asObservable','forEach','WorkbookRecoverHistoryPermission','Loading','UniverSheetSparklinePlugin','univer-history-container','has','Error','CHANGESET_ACK','data','unMountHistoryContent','_dataLoaderService','position','Injector','UniverSheetsDrawingUIPlugin','Entered','MobileHistoryLoaderService','getCollabEntity','1012280jsWGRN','historyUniver','session','composePermission','HistoryModeStatus','CommandType','_revertErrorTimer','BehaviorSubject','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','fromCollab','UniverRenderEnginePlugin','Disposable','register','triggerLoadVersions','getCurrentUnitOfType','UNIVER_CONTAINER_ID','UniverSheetsPivotTablePlugin','UniverSheetsUIPlugin','dispose','univerContainerId','absolute','from','_disposableCollection','HistoryManagerService','_initUniver','dataset','RangeProtectionRuleModel','_localeService','style','close','univer-container','combineLatest','IRemoteInstanceService','AuthzIoHttpService','UniverDataValidationPlugin','subunit','_internalWebWorker','ICommandService','Plugin','UniverDocsPlugin','UniverSheetsHyperLinkUIPlugin','edit-history-loader.config','onStarting','getElementById','clear','onSteady','__getInjector','_historyUniver$','WorksheetEditPermission','getAllPlugins','appendChild','ISidebarService','some','setConfig','getSubunitRuleList','UniverType','SetWorksheetActivateCommand','disposeWithMe','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverNetworkPlugin','params','getSheetBySheetId','setParam','constructor','urlChange$','_menuManagerService','Module','UniverSheetsFormulaUIPlugin','IAuthzIoService','858496HFDCPC','UniverSheetsDataValidationMobileUIPlugin','univer-history-container-mobile','length','IConfigService','_componentManager','historyPanelHidden','object','mountHistoryContent','version','UniverDrawingUIPlugin','UniverSheetsChartPlugin','menu','historyPanelComponentKey','editHistory.info.initializing','IMenuManagerService','set','editHistory.panel.revertFailed','_handleRevertAcknowledgement','unsubscribe','function','mutations','UniverSheetsPlugin','map','editHistory.panel.listFetchError','triggerCustomVersions','_themeService','40971870xkbRqX','UniverSheetsNumfmtPlugin','none','_univerInstanceService','UniverSheetsDataValidationPlugin','Univer','_dialogService','LocaleService','get','1608VKofbe','merge','activeSheet$','UniverSheetsShapeUIPlugin','UniverMobileUIPlugin','div','add','removeAll','type','_initContainer','getCurrentLocale','loadUnit','3791100krdohm','show','_config','UNIVER_UNKNOWN','getActiveSheet','Exited','DependentOn','UniverSheetsDrawingPlugin','1108020UVqugf','setDarkMode','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_commandService','darkMode$','ILocalCacheService','UniverInstanceType','_urlService','dispose$','2982utRetU','_pluginMap','getSheetId','getOwnPropertyDescriptor','uComp','IMessageService','UniverDocsUIPlugin','packageName','MenuItemType','exhaustSavingTask','UNIVER_SHEET','executeCommand','_checkCanRevert','17895JUqYUr','editHistory.panel.title','RangeProtectionPermissionEditPoint','_injector','0.20.0','display','historyAIassistantEnabled','UNIVER_CONTAINER_ID_KEY','UniverLicensePlugin','RxDisposable','IPermissionService','OTHERS','setTheme','RevertRevisionMutation','flat','HistoryLoaderService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','registerPlugin','top','_configService','pluginName','getUnit','registerCommand'];_0x55f3=function(){return _0xcd7365;};return _0x55f3();}const de={[M['RibbonStartGroup'][_0x53c793(0x1f0)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e['RxDisposable']{constructor(_0x5c1a49,_0x5a188a,_0x27e76e,_0x1e85f3,_0x4643b6,_0x5afc33,_0x53f35f,_0x4636de,_0x3291e1,_0xb88b91,_0x1655c2){const _0x2ebf2b=_0x53c793;super(),this[_0x2ebf2b(0x1d2)]=_0x5c1a49,this[_0x2ebf2b(0x193)]=_0x5a188a,this[_0x2ebf2b(0x19c)]=_0x27e76e,this['_historyManagerService']=_0x1e85f3,this[_0x2ebf2b(0x287)]=_0x4643b6,this['_messageService']=_0x5afc33,this[_0x2ebf2b(0x1fc)]=_0x53f35f,this[_0x2ebf2b(0x247)]=_0x4636de,this[_0x2ebf2b(0x265)]=_0x3291e1,this[_0x2ebf2b(0x1b5)]=_0xb88b91,this[_0x2ebf2b(0x1d6)]=_0x1655c2,B(this,_0x2ebf2b(0x272),null),this['_init']();}[_0x53c793(0x1fe)](){const _0x5c7760=_0x53c793;[K,q][_0x5c7760(0x25b)](_0x4b560b=>this[_0x5c7760(0x18b)]((0x0,e[_0x5c7760(0x24a)])(this[_0x5c7760(0x1d2)]['registerCommand'](_0x4b560b)))),this['disposeWithMe'](this['_componentManager']['register']('HistoryIcon',F[_0x5c7760(0x258)])),this[_0x5c7760(0x193)]['mergeMenu'](de),this[_0x5c7760(0x18b)](this[_0x5c7760(0x1d2)][_0x5c7760(0x220)](async(_0x1c4884,_0x4a5d6f)=>{const _0x46e0b4=_0x5c7760;if(_0x1c4884['id']===n[_0x46e0b4(0x1f2)]['id']){let {unitId:_0x1dd915}=_0x1c4884[_0x46e0b4(0x18e)];this[_0x46e0b4(0x232)][_0x46e0b4(0x1c8)]({'content':this[_0x46e0b4(0x287)]['t']('editHistory.panel.reverting'),'type':m[_0x46e0b4(0x20f)][_0x46e0b4(0x25d)],'duration':0x1388});let _0x50804c=this['_collaborationController']['getCollabEntity'](_0x1dd915);_0x4a5d6f!=null&&_0x4a5d6f['fromCollab']?this[_0x46e0b4(0x1a9)](_0x50804c,async()=>(setTimeout(()=>window[_0x46e0b4(0x218)][_0x46e0b4(0x203)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x50804c,async()=>{const _0x1c5d24=_0x46e0b4;let _0x63bad6=this[_0x1c5d24(0x1b5)]['getCurrentUnitOfType'](I['UniverType'][_0x1c5d24(0x1e2)]),_0x5db242=_0x63bad6==null?void 0x0:_0x63bad6['getActiveSheet']();if(!_0x5db242)return!0x1;this[_0x1c5d24(0x1b5)][_0x1c5d24(0x224)](_0x1dd915);let _0x3155c8=await this[_0x1c5d24(0x265)][_0x1c5d24(0x1c6)](_0x1dd915,I[_0x1c5d24(0x189)][_0x1c5d24(0x1e2)]);return _0x3155c8&&_0x3155c8 instanceof e['Workbook']?(await this[_0x1c5d24(0x20d)](_0x3155c8,_0x5db242[_0x1c5d24(0x1da)]()),!0x0):!0x1;});}}));}[_0x53c793(0x1a9)](_0x5f553b,_0xc13e94,_0x51b1ef=!0x1){const _0xc54f4=_0x53c793;let _0x4415c3=(0x0,N['combineLatest'])([_0x5f553b[_0xc54f4(0x26e)][_0xc54f4(0x249)],_0x5f553b['state$']])[_0xc54f4(0x21c)](async([_0x1f7344,_0x3e7a74])=>{const _0x70d6ca=_0xc54f4;if(_0x1f7344['eventID']===n[_0x70d6ca(0x237)][_0x70d6ca(0x262)]&&(_0x3e7a74==null?void 0x0:_0x3e7a74[_0x70d6ca(0x205)])===r['CollaborationStatus'][_0x70d6ca(0x24b)]&&_0x1f7344[_0x70d6ca(0x263)][_0x70d6ca(0x1ac)][_0x70d6ca(0x186)](_0x48f1f0=>_0x48f1f0['id']===n[_0x70d6ca(0x1f2)]['id'])&&await _0xc13e94()){var _0x352b36;this[_0x70d6ca(0x22d)][_0x70d6ca(0x264)](),_0x4415c3['unsubscribe'](),this['_revertErrorTimer']&&clearTimeout(this[_0x70d6ca(0x272)]),await((_0x352b36=this[_0x70d6ca(0x247)])==null?void 0x0:_0x352b36[_0x70d6ca(0x1e1)]()),this[_0x70d6ca(0x232)][_0x70d6ca(0x1c2)]();}});_0x51b1ef&&(this[_0xc54f4(0x272)]=setTimeout(()=>{const _0xa87f07=_0xc54f4;_0x4415c3[_0xa87f07(0x1aa)](),this['_messageService'][_0xa87f07(0x1c8)]({'content':this[_0xa87f07(0x287)]['t'](_0xa87f07(0x1a8)),'type':m[_0xa87f07(0x20f)][_0xa87f07(0x261)],'duration':0xbb8});},0x1388));}async[_0x53c793(0x20d)](_0x322013,_0x4e16e0){const _0x32a844=_0x53c793;await this[_0x32a844(0x24c)](_0x322013,_0x4e16e0),_0x322013['activeSheet$']['pipe']((0x0,N['takeUntil'])(this[_0x32a844(0x1d7)]))[_0x32a844(0x21c)](_0x473a38=>{const _0x4742aa=_0x32a844;_0x473a38&&this[_0x4742aa(0x251)](_0x473a38);}),this['_urlService'][_0x32a844(0x192)]['pipe']((0x0,N['takeUntil'])(this[_0x32a844(0x1d7)]))[_0x32a844(0x21c)](()=>this['_updateSubUnitFromURLParams'](_0x322013,_0x4e16e0));}[_0x53c793(0x251)](_0x4eca1f,_0x5ac2f7=!0x1){const _0x3a06d6=_0x53c793;let _0x55ab61=this[_0x3a06d6(0x1d6)]['getParam']('subunit');_0x4eca1f[_0x3a06d6(0x1da)]()!==_0x55ab61&&this[_0x3a06d6(0x1d6)][_0x3a06d6(0x190)](_0x3a06d6(0x28f),_0x4eca1f[_0x3a06d6(0x1da)](),_0x5ac2f7);}async['_updateSubUnitFromURLParams'](_0x140fb9,_0x43955b){const _0x3d73cd=_0x53c793;var _0x6cc220;if(!_0x43955b||!_0x140fb9[_0x3d73cd(0x18f)](_0x43955b)){let _0x3ab5d7=_0x140fb9[_0x3d73cd(0x231)]()[0x0],_0x3ca47a=_0x140fb9[_0x3d73cd(0x18f)](_0x3ab5d7);if(!_0x3ca47a)return;this[_0x3d73cd(0x251)](_0x3ca47a,!0x0),await this[_0x3d73cd(0x1d2)][_0x3d73cd(0x1e3)](t[_0x3d73cd(0x18a)]['id'],{'unitId':_0x140fb9['getUnitId'](),'subUnitId':_0x3ab5d7});return;}((_0x6cc220=_0x140fb9[_0x3d73cd(0x1cb)]())==null?void 0x0:_0x6cc220['getSheetId']())!==_0x43955b&&await this['_commandService'][_0x3d73cd(0x1e3)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x140fb9['getUnitId'](),'subUnitId':_0x43955b});}};J=H([V(0x0,e['ICommandService']),V(0x1,M[_0x53c793(0x1a6)]),V(0x2,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x248)])),V(0x3,(0x0,e[_0x53c793(0x239)])(G)),V(0x4,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x5,M['IMessageService']),V(0x6,(0x0,e[_0x53c793(0x239)])(r['CollaborationController'])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x53c793(0x239)])(r[_0x53c793(0x1fd)])),V(0x9,e[_0x53c793(0x204)]),V(0xa,P[_0x53c793(0x23f)])],J);const Y=_0x53c793(0x199);let X=class extends e[_0x53c793(0x277)]{constructor(_0x4c8b33,_0x1ab9fb,_0x1aa8aa,_0x2043e2,_0x1039a2,_0x2098d9,_0x3eb472,_0x59e28f,_0x327736,_0x270db){const _0x568ca8=_0x53c793;super(),this[_0x568ca8(0x287)]=_0x4c8b33,this['_univerInstanceService']=_0x1ab9fb,this[_0x568ca8(0x1f8)]=_0x1aa8aa,this[_0x568ca8(0x1d2)]=_0x2043e2,this['_messageService']=_0x1039a2,this[_0x568ca8(0x228)]=_0x2098d9,this[_0x568ca8(0x233)]=_0x3eb472,this[_0x568ca8(0x1b8)]=_0x59e28f,this[_0x568ca8(0x208)]=_0x327736,this[_0x568ca8(0x1b1)]=_0x270db,B(this,_0x568ca8(0x181),new N[(_0x568ca8(0x273))](null)),B(this,'historyUniver$',this[_0x568ca8(0x181)][_0x568ca8(0x25a)]()),B(this,_0x568ca8(0x282),new e[(_0x568ca8(0x21b))]()),B(this,_0x568ca8(0x1d9),new Map()),B(this,'_internalWebWorker',null),this[_0x568ca8(0x1fe)]();}get[_0x53c793(0x26d)](){const _0x29740c=_0x53c793;return this['_historyUniver$'][_0x29740c(0x253)];}[_0x53c793(0x1fe)](){const _0x2259cf=_0x53c793;this[_0x2259cf(0x1c4)](),this[_0x2259cf(0x243)]();}[_0x53c793(0x1c4)](){const _0x2082f4=_0x53c793;var _0x10b75d;let _0x484058=(_0x10b75d=this[_0x2082f4(0x1f8)][_0x2082f4(0x244)](_0x2082f4(0x27b)))==null?_0x2082f4(0x28a):_0x10b75d,_0x1a0b06=document[_0x2082f4(0x297)](_0x484058);if(!_0x1a0b06)return;let _0x5d7f40=document['createElement']('div');_0x5d7f40['id']=Y,_0x5d7f40['dataset'][_0x2082f4(0x1dc)]=_0x2082f4(0x216),_0x5d7f40['style'][_0x2082f4(0x266)]=_0x2082f4(0x280),_0x5d7f40['style'][_0x2082f4(0x1f7)]='0',_0x5d7f40['style'][_0x2082f4(0x21a)]='0',_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x20e)]=_0x2082f4(0x217),_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x20c)]=_0x2082f4(0x217),_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x234)]='49',_0x5d7f40[_0x2082f4(0x288)][_0x2082f4(0x1ea)]=_0x2082f4(0x1b4),_0x1a0b06[_0x2082f4(0x184)](_0x5d7f40);}[_0x53c793(0x243)](){const _0x33f2a4=_0x53c793;[[b[_0x33f2a4(0x276)]],[M[_0x33f2a4(0x1bf)],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x33f2a4(0x21f)],null]]}],[x[_0x33f2a4(0x18d)]],[_[_0x33f2a4(0x200)],{'override':[[_[_0x33f2a4(0x201)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x33f2a4(0x1de)]],[k[_0x33f2a4(0x1b3)]],[t[_0x33f2a4(0x1ad)],{'notExecuteFormula':!0x0}],[j[_0x33f2a4(0x24f)]],[re['UniverSheetsFormulaPlugin']],[ie[_0x33f2a4(0x195)]],[n['UniverCollaborationPlugin']],[te['UniverSheetsFilterPlugin']],[C[_0x33f2a4(0x22f)]],[ae[_0x33f2a4(0x20a)]],[O[_0x33f2a4(0x294)]],[p[_0x33f2a4(0x28e)]],[w[_0x33f2a4(0x1b6)]],[T[_0x33f2a4(0x198)]],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x33f2a4(0x1a1)]],[E['UniverSheetsDrawingPlugin']],[D[_0x33f2a4(0x268)]],[d['UniverSheetSparklinePlugin']],[f[_0x33f2a4(0x225)]],[o['UniverSheetsChartPlugin']],[s[_0x33f2a4(0x246)]],[l['UniverSheetsShapePlugin']],[u[_0x33f2a4(0x1be)]],[c['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[A[_0x33f2a4(0x252)]]][_0x33f2a4(0x25b)](([_0x5c607c,_0x52519c])=>this['registerPlugin'](_0x5c607c,_0x52519c));}[_0x53c793(0x27e)](){const _0x144d78=_0x53c793;super[_0x144d78(0x27e)](),this[_0x144d78(0x264)](),this[_0x144d78(0x1d9)][_0x144d78(0x298)]();}[_0x53c793(0x1f6)](_0x21b924,_0x2ac975,_0x2b5210){const _0x490bb5=_0x53c793;if(this[_0x490bb5(0x1d9)][_0x490bb5(0x260)](_0x21b924[_0x490bb5(0x1f9)])&&!_0x2b5210)throw Error(_0x490bb5(0x230)+_0x21b924[_0x490bb5(0x1f9)]+_0x490bb5(0x212));this[_0x490bb5(0x1d9)][_0x490bb5(0x1a7)](_0x21b924[_0x490bb5(0x1f9)],[_0x21b924,_0x2ac975]);}[_0x53c793(0x183)](){const _0x2d6b6f=_0x53c793;return Array[_0x2d6b6f(0x281)](this[_0x2d6b6f(0x1d9)]['values']());}[_0x53c793(0x19f)](_0x41de02,_0x2f97f9){const _0x495495=_0x53c793;let _0x42ba9e=document['getElementById'](Y);_0x42ba9e&&(_0x42ba9e[_0x495495(0x288)][_0x495495(0x1ea)]=_0x495495(0x23c),this[_0x495495(0x284)](_0x41de02,Y,_0x2f97f9));}['unMountHistoryContent'](){const _0x4d7b25=_0x53c793;var _0x3ff876;this['_disposableCollection'][_0x4d7b25(0x27e)](),(_0x3ff876=this['historyUniver'])==null||_0x3ff876[_0x4d7b25(0x27e)](),this['_historyUniver$'][_0x4d7b25(0x215)](null);let _0x6df855=document[_0x4d7b25(0x297)](Y);_0x6df855&&(_0x6df855[_0x4d7b25(0x288)][_0x4d7b25(0x1ea)]=_0x4d7b25(0x1b4),this['_internalWebWorker']&&(this[_0x4d7b25(0x290)]['terminate'](),this[_0x4d7b25(0x290)]=null));}[_0x53c793(0x284)](_0xfb3852,_0x1c48b1,_0xcb8c22){const _0x8070d6=_0x53c793;var _0x6557e6,_0x378166,_0x3d49c7,_0x34e3a8;if(this[_0x8070d6(0x26d)])return;let _0x563477=new e[(_0x8070d6(0x1b7))]({'locales':{[this[_0x8070d6(0x287)]['getCurrentLocale']()]:this[_0x8070d6(0x287)]['getLocales']()},'override':[[e[_0x8070d6(0x196)],{'useClass':r[_0x8070d6(0x28d)]}]]}),_0x1ab116=_0x563477['__getInjector']();this[_0x8070d6(0x18b)](this['_themeService'][_0x8070d6(0x1d3)][_0x8070d6(0x21c)](_0x56dc8b=>{const _0x8bfa9e=_0x8070d6;_0x1ab116[_0x8bfa9e(0x1ba)](e[_0x8bfa9e(0x242)])[_0x8bfa9e(0x1d0)](_0x56dc8b);})),this[_0x8070d6(0x18b)](this[_0x8070d6(0x1b1)][_0x8070d6(0x24e)][_0x8070d6(0x21c)](_0x2f053f=>{const _0x44cc80=_0x8070d6;_0x1ab116[_0x44cc80(0x1ba)](e[_0x44cc80(0x242)])[_0x44cc80(0x1f1)](_0x2f053f);})),_0x1ab116[_0x8070d6(0x1ba)](e[_0x8070d6(0x1b9)])['setLocale'](this[_0x8070d6(0x287)]['getCurrentLocale']()),_0x1ab116[_0x8070d6(0x1ba)](e[_0x8070d6(0x19b)])[_0x8070d6(0x187)](r[_0x8070d6(0x1d1)],this[_0x8070d6(0x1f8)][_0x8070d6(0x244)](r[_0x8070d6(0x1d1)]));let _0x51b850=this[_0x8070d6(0x1f8)]['getConfig'](a['LS_CONFIG_KEY']);_0x51b850&&_0x563477['registerPlugin'](a['UniverLicensePlugin'],{'license':_0x51b850['ls']});let _0x38f167=(_0x6557e6=this[_0x8070d6(0x1f8)][_0x8070d6(0x244)]('edit-history-loader.config'))==null?void 0x0:_0x6557e6['workerURL'],_0x4a0a16=!!_0x38f167;_0x4a0a16&&(this[_0x8070d6(0x290)]=_0x38f167 instanceof Worker?_0x38f167:null,_0x563477[_0x8070d6(0x1f6)](S[_0x8070d6(0x22b)],{'workerURL':_0x38f167})),this[_0x8070d6(0x1d9)]['forEach'](([_0x52c2d7,_0x4efb98])=>{const _0x56a4c5=_0x8070d6;_0x563477[_0x56a4c5(0x1f6)](_0x52c2d7,_0x4efb98);}),_0x563477[_0x8070d6(0x1f6)](i[_0x8070d6(0x227)],{'historyListServerUrl':(_0x378166=this['_configService'][_0x8070d6(0x244)](_0x8070d6(0x295)))==null?void 0x0:_0x378166[_0x8070d6(0x235)],'historyPanelComponentKey':(_0x3d49c7=this[_0x8070d6(0x1f8)][_0x8070d6(0x244)](_0x8070d6(0x295)))==null?void 0x0:_0x3d49c7[_0x8070d6(0x1a4)],'historyPanelHidden':(_0x34e3a8=this[_0x8070d6(0x1f8)][_0x8070d6(0x244)]('edit-history-loader.config'))==null?void 0x0:_0x34e3a8['historyPanelHidden']}),_0x1ab116[_0x8070d6(0x256)](_0x2b710f=>{this['_initListener'](_0x2b710f,_0xfb3852);}),this[_0x8070d6(0x181)][_0x8070d6(0x215)](_0x563477);let _0x70a0a4=_0x1ab116[_0x8070d6(0x1ba)](i[_0x8070d6(0x283)]),_0x382c7f=this[_0x8070d6(0x1e4)](_0xfb3852),_0x70860a=()=>{const _0x3716e6=_0x8070d6;_0xcb8c22?_0x70a0a4['triggerCustomVersions'](_0xfb3852,_0x1c48b1,_0x382c7f,_0xcb8c22):_0x70a0a4[_0x3716e6(0x279)](_0xfb3852,_0x1c48b1,_0x382c7f);};if(this['_messageService']['show']({'content':this[_0x8070d6(0x287)]['t'](_0x8070d6(0x1a5)),'type':m[_0x8070d6(0x20f)]['Loading']}),_0x4a0a16)try{_0x1ab116[_0x8070d6(0x1ba)](S[_0x8070d6(0x28c)])[_0x8070d6(0x20b)]()['then'](()=>{_0x70860a();});}catch{_0x70860a();}else _0x70860a();}[_0x53c793(0x211)](_0x238ad9,_0x255b6c){const _0x107f27=_0x53c793;let _0x2c85ff=_0x238ad9[_0x107f27(0x1ba)](i[_0x107f27(0x283)]);this[_0x107f27(0x282)][_0x107f27(0x1c1)](_0x2c85ff[_0x107f27(0x254)][_0x107f27(0x21c)](_0xdccd56=>{const _0x1c2be1=_0x107f27;switch(_0xdccd56){case i[_0x1c2be1(0x270)][_0x1c2be1(0x269)]:this['_dialogService']['closeAll'](),this['_sidebarService'][_0x1c2be1(0x289)]();break;case i[_0x1c2be1(0x270)][_0x1c2be1(0x1cc)]:this[_0x1c2be1(0x1d2)][_0x1c2be1(0x1e3)](q['id']),this[_0x1c2be1(0x264)]();break;case i[_0x1c2be1(0x270)]['Error']:this[_0x1c2be1(0x264)](),this[_0x1c2be1(0x232)][_0x1c2be1(0x1c8)]({'content':this[_0x1c2be1(0x287)]['t'](_0x1c2be1(0x1af)),'type':m[_0x1c2be1(0x20f)][_0x1c2be1(0x261)],'duration':0xbb8});break;default:break;}})),this[_0x107f27(0x282)][_0x107f27(0x1c1)](_0x2c85ff[_0x107f27(0x22e)][_0x107f27(0x21c)](async _0x3f8625=>{const _0x5ee154=_0x107f27;_0x3f8625&&this[_0x5ee154(0x1d2)][_0x5ee154(0x1e3)](n['RevertRevisionMutation']['id'],{'unitId':_0x255b6c,'revision':_0x3f8625});}));}[_0x53c793(0x1e4)](_0x4d0a72){const _0x1a2bd3=_0x53c793;let _0x596855=this['_univerInstanceService']['getUnit'](_0x4d0a72)['getSheets']()['map'](_0x19ef98=>_0x19ef98['getSheetId']()),_0x5f2528=new t['WorkbookEditablePermission'](_0x4d0a72)['id'],_0x841f8b=_0x596855[_0x1a2bd3(0x1ae)](_0x1a3ed5=>new t[(_0x1a2bd3(0x182))](_0x4d0a72,_0x1a3ed5)['id']),_0x20de46=_0x596855['map'](_0x310c6d=>this[_0x1a2bd3(0x233)][_0x1a2bd3(0x188)](_0x4d0a72,_0x310c6d)[_0x1a2bd3(0x1ae)](_0xda5290=>new t['RangeProtectionPermissionEditPoint'](_0x4d0a72,_0x310c6d,_0xda5290['permissionId'])['id']))[_0x1a2bd3(0x1f3)](),_0x57fc98=new t['WorkbookRecoverHistoryPermission'](_0x4d0a72)['id'];return this[_0x1a2bd3(0x228)][_0x1a2bd3(0x26f)]([_0x5f2528,..._0x841f8b,..._0x20de46,_0x57fc98])['every'](_0x467d81=>!!_0x467d81[_0x1a2bd3(0x253)]);}};X=H([V(0x0,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x1,e[_0x53c793(0x204)]),V(0x2,e[_0x53c793(0x19b)]),V(0x3,e[_0x53c793(0x291)]),V(0x4,M[_0x53c793(0x1dd)]),V(0x5,e[_0x53c793(0x1ef)]),V(0x6,(0x0,e['Inject'])(t[_0x53c793(0x286)])),V(0x7,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x21f)])),V(0x8,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x185)])),V(0x9,(0x0,e[_0x53c793(0x239)])(e['ThemeService']))],X);let Z=class extends e[_0x53c793(0x292)]{constructor(_0x3ce967=R,_0x1f0953,_0x37b6cd){const _0x19499a=_0x53c793;super(),this['_config']=_0x3ce967,this[_0x19499a(0x1e8)]=_0x1f0953,this[_0x19499a(0x1f8)]=_0x37b6cd;let {menu:_0x4261ca,..._0xc9913b}=(0x0,e[_0x19499a(0x1bc)])({},R,this[_0x19499a(0x1c9)]);_0x4261ca&&this[_0x19499a(0x1f8)][_0x19499a(0x187)]('menu',_0x4261ca,{'merge':!0x0}),this[_0x19499a(0x1f8)][_0x19499a(0x187)](L,_0xc9913b),this['_config'][_0x19499a(0x27f)]&&this[_0x19499a(0x1f8)][_0x19499a(0x187)](_0x19499a(0x27b),this[_0x19499a(0x1c9)]['univerContainerId']);}['onStarting'](){const _0x4f931e=_0x53c793;[[G,{'useClass':X}],[J]][_0x4f931e(0x25b)](_0x312267=>this[_0x4f931e(0x1e8)][_0x4f931e(0x1c1)](_0x312267));}['onSteady'](){const _0x34448e=_0x53c793;this[_0x34448e(0x1e8)][_0x34448e(0x1ba)](J);}};B(Z,'type',e[_0x53c793(0x1d5)][_0x53c793(0x1ca)]),B(Z,_0x53c793(0x1f9),_0x53c793(0x18c)),B(Z,_0x53c793(0x1df),ce),B(Z,_0x53c793(0x1a0),le),Z=H([(0x0,e[_0x53c793(0x1cd)])(a[_0x53c793(0x1ed)]),V(0x1,(0x0,e['Inject'])(e['Injector'])),V(0x2,e[_0x53c793(0x19b)])],Z);let Q=class extends e[_0x53c793(0x1ee)]{constructor(_0x5ccf19,_0x207cdd,_0x17f093,_0xbbe908,_0x56bda0,_0xaf9458,_0x40fac9,_0x31015f,_0x37e35a,_0x36a5bf,_0x23197d){const _0x4b8a20=_0x53c793;super(),this[_0x4b8a20(0x1d2)]=_0x5ccf19,this[_0x4b8a20(0x193)]=_0x207cdd,this[_0x4b8a20(0x19c)]=_0x17f093,this[_0x4b8a20(0x22d)]=_0xbbe908,this['_localeService']=_0x56bda0,this[_0x4b8a20(0x232)]=_0xaf9458,this[_0x4b8a20(0x1fc)]=_0x40fac9,this[_0x4b8a20(0x247)]=_0x31015f,this[_0x4b8a20(0x265)]=_0x37e35a,this[_0x4b8a20(0x1b5)]=_0x36a5bf,this[_0x4b8a20(0x1d6)]=_0x23197d,B(this,'_revertErrorTimer',null),this[_0x4b8a20(0x1fe)]();}[_0x53c793(0x1fe)](){const _0x5d31a2=_0x53c793;[K,q][_0x5d31a2(0x25b)](_0x1b5c5c=>this[_0x5d31a2(0x18b)]((0x0,e[_0x5d31a2(0x24a)])(this[_0x5d31a2(0x1d2)][_0x5d31a2(0x1fb)](_0x1b5c5c)))),this[_0x5d31a2(0x18b)](this[_0x5d31a2(0x19c)][_0x5d31a2(0x278)](_0x5d31a2(0x258),F['HistoryIcon'])),this[_0x5d31a2(0x193)]['mergeMenu'](de),this[_0x5d31a2(0x18b)](this[_0x5d31a2(0x1d2)][_0x5d31a2(0x220)](async(_0x2e4832,_0x45c4a8)=>{const _0xa3b95a=_0x5d31a2;if(_0x2e4832['id']===n['RevertRevisionMutation']['id']){let {unitId:_0x20f411}=_0x2e4832[_0xa3b95a(0x18e)];this[_0xa3b95a(0x232)][_0xa3b95a(0x1c8)]({'content':this[_0xa3b95a(0x287)]['t']('editHistory.panel.reverting'),'type':m[_0xa3b95a(0x20f)][_0xa3b95a(0x25d)],'duration':0x1388});let _0x3da2ca=this[_0xa3b95a(0x1fc)][_0xa3b95a(0x26b)](_0x20f411);_0x45c4a8!=null&&_0x45c4a8[_0xa3b95a(0x275)]?this[_0xa3b95a(0x1a9)](_0x3da2ca,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x3da2ca,async()=>{const _0x46ad87=_0xa3b95a;let _0x2c2147=this[_0x46ad87(0x1b5)][_0x46ad87(0x27a)](I[_0x46ad87(0x189)]['UNIVER_SHEET']),_0x117390=_0x2c2147==null?void 0x0:_0x2c2147['getActiveSheet']();if(!_0x117390)return!0x1;this[_0x46ad87(0x1b5)][_0x46ad87(0x224)](_0x20f411);let _0x590ee3=await this[_0x46ad87(0x265)]['loadUnit'](_0x20f411,I[_0x46ad87(0x189)][_0x46ad87(0x1e2)]);return _0x590ee3&&_0x590ee3 instanceof e['Workbook']?(await this[_0x46ad87(0x20d)](_0x590ee3,_0x117390['getSheetId']()),!0x0):!0x1;});}}));}[_0x53c793(0x1a9)](_0x32f603,_0x2e75c3,_0x53b994=!0x1){const _0x60e47a=_0x53c793;let _0xeec11=(0x0,N[_0x60e47a(0x28b)])([_0x32f603[_0x60e47a(0x26e)][_0x60e47a(0x249)],_0x32f603[_0x60e47a(0x250)]])['subscribe'](async([_0x2b40dd,_0x4f8e16])=>{const _0x16daea=_0x60e47a;if(_0x2b40dd[_0x16daea(0x222)]===n[_0x16daea(0x237)][_0x16daea(0x262)]&&(_0x4f8e16==null?void 0x0:_0x4f8e16[_0x16daea(0x205)])===r['CollaborationStatus'][_0x16daea(0x24b)]&&_0x2b40dd['data'][_0x16daea(0x1ac)]['some'](_0x37f6d1=>_0x37f6d1['id']===n[_0x16daea(0x1f2)]['id'])&&await _0x2e75c3()){var _0x483111;this[_0x16daea(0x22d)][_0x16daea(0x264)](),_0xeec11[_0x16daea(0x1aa)](),this[_0x16daea(0x272)]&&clearTimeout(this['_revertErrorTimer']),await((_0x483111=this[_0x16daea(0x247)])==null?void 0x0:_0x483111[_0x16daea(0x1e1)]());}});_0x53b994&&(this[_0x60e47a(0x272)]=setTimeout(()=>{const _0x3e95be=_0x60e47a;_0xeec11[_0x3e95be(0x1aa)](),this[_0x3e95be(0x232)][_0x3e95be(0x1c8)]({'content':this[_0x3e95be(0x287)]['t']('editHistory.panel.revertFailed'),'type':m['MessageType'][_0x3e95be(0x261)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x2f8a7c,_0x32de29){const _0x392eea=_0x53c793;await this['_updateSubUnitFromURLParams'](_0x2f8a7c,_0x32de29),_0x2f8a7c[_0x392eea(0x1bd)]['pipe']((0x0,N['takeUntil'])(this[_0x392eea(0x1d7)]))[_0x392eea(0x21c)](_0x23df2b=>{const _0x3afcd3=_0x392eea;_0x23df2b&&this[_0x3afcd3(0x251)](_0x23df2b);}),this['_urlService']['urlChange$']['pipe']((0x0,N[_0x392eea(0x226)])(this[_0x392eea(0x1d7)]))['subscribe'](()=>this[_0x392eea(0x24c)](_0x2f8a7c,_0x32de29));}[_0x53c793(0x251)](_0x5e635d,_0x15c8c1=!0x1){const _0x1ee398=_0x53c793;let _0x22a6f4=this[_0x1ee398(0x1d6)][_0x1ee398(0x245)](_0x1ee398(0x28f));_0x5e635d[_0x1ee398(0x1da)]()!==_0x22a6f4&&this[_0x1ee398(0x1d6)][_0x1ee398(0x190)](_0x1ee398(0x28f),_0x5e635d[_0x1ee398(0x1da)](),_0x15c8c1);}async[_0x53c793(0x24c)](_0xa89ae1,_0x5d42fc){const _0x33e3bc=_0x53c793;var _0x41f4ed;if(!_0x5d42fc||!_0xa89ae1[_0x33e3bc(0x18f)](_0x5d42fc)){let _0x3cd69f=_0xa89ae1[_0x33e3bc(0x231)]()[0x0],_0x12d00d=_0xa89ae1['getSheetBySheetId'](_0x3cd69f);if(!_0x12d00d)return;this[_0x33e3bc(0x251)](_0x12d00d,!0x0),await this[_0x33e3bc(0x1d2)][_0x33e3bc(0x1e3)](t[_0x33e3bc(0x18a)]['id'],{'unitId':_0xa89ae1[_0x33e3bc(0x221)](),'subUnitId':_0x3cd69f});return;}((_0x41f4ed=_0xa89ae1['getActiveSheet']())==null?void 0x0:_0x41f4ed[_0x33e3bc(0x1da)]())!==_0x5d42fc&&await this[_0x33e3bc(0x1d2)]['executeCommand'](t[_0x33e3bc(0x18a)]['id'],{'unitId':_0xa89ae1['getUnitId'](),'subUnitId':_0x5d42fc});}};Q=H([V(0x0,e[_0x53c793(0x291)]),V(0x1,M[_0x53c793(0x1a6)]),V(0x2,(0x0,e[_0x53c793(0x239)])(M[_0x53c793(0x248)])),V(0x3,(0x0,e[_0x53c793(0x239)])(G)),V(0x4,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x1b9)])),V(0x5,M['IMessageService']),V(0x6,(0x0,e[_0x53c793(0x239)])(r['CollaborationController'])),V(0x7,r[_0x53c793(0x1d4)]),V(0x8,(0x0,e['Inject'])(r[_0x53c793(0x1fd)])),V(0x9,e[_0x53c793(0x204)]),V(0xa,P['IURLService'])],Q);let $=class extends e[_0x53c793(0x292)]{constructor(_0x505c1b=R,_0x7cd3c1,_0x24450a){const _0x143a4e=_0x53c793;super(),this[_0x143a4e(0x1c9)]=_0x505c1b,this['_injector']=_0x7cd3c1,this[_0x143a4e(0x1f8)]=_0x24450a;let {menu:_0x2254b9,..._0x2fe2f4}=(0x0,e['merge'])({},R,this['_config']);_0x2254b9&&this[_0x143a4e(0x1f8)][_0x143a4e(0x187)](_0x143a4e(0x1a3),_0x2254b9,{'merge':!0x0}),this[_0x143a4e(0x1f8)][_0x143a4e(0x187)](L,_0x2fe2f4),this['_config'][_0x143a4e(0x27f)]&&this[_0x143a4e(0x1f8)]['setConfig'](U,this[_0x143a4e(0x1c9)][_0x143a4e(0x27f)]);}[_0x53c793(0x296)](){const _0x44f041=_0x53c793;[[G],[Q]][_0x44f041(0x25b)](_0x5e9b13=>this['_injector']['add'](_0x5e9b13));}[_0x53c793(0x17f)](){const _0x3e07ba=_0x53c793;this[_0x3e07ba(0x1e8)][_0x3e07ba(0x1ba)](Q);}};function _0x3aee(_0x1c5990,_0x4305d8){_0x1c5990=_0x1c5990-0x17f;const _0x55f39b=_0x55f3();let _0x3aee4a=_0x55f39b[_0x1c5990];return _0x3aee4a;}B($,_0x53c793(0x1c3),e[_0x53c793(0x1d5)][_0x53c793(0x1ca)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,'packageName',ce),B($,'version',le),$=H([(0x0,e['DependentOn'])(a[_0x53c793(0x1ed)]),V(0x1,(0x0,e[_0x53c793(0x239)])(e[_0x53c793(0x267)])),V(0x2,e[_0x53c793(0x19b)])],$),exports[_0x53c793(0x274)]=L,Object[_0x53c793(0x21e)](exports,_0x53c793(0x1f4),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x53c793(0x26a),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x53c793(0x229)]=K,exports[_0x53c793(0x1ec)]=U,exports['UNIVER_HISTORY_CONTAINER_ID']=W,Object[_0x53c793(0x21e)](exports,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x53c793(0x21e)](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x15992b=_0x3301;(function(_0xa2cc98,_0x1c946c){const _0xefd5e2=_0x3301,_0x1c4e96=_0xa2cc98();while(!![]){try{const _0x2ea284=parseInt(_0xefd5e2(0x25a))/0x1+parseInt(_0xefd5e2(0x1cd))/0x2+-parseInt(_0xefd5e2(0x26c))/0x3+parseInt(_0xefd5e2(0x1a9))/0x4*(-parseInt(_0xefd5e2(0x1ff))/0x5)+parseInt(_0xefd5e2(0x282))/0x6+parseInt(_0xefd5e2(0x1ad))/0x7*(-parseInt(_0xefd5e2(0x245))/0x8)+-parseInt(_0xefd5e2(0x2a6))/0x9*(-parseInt(_0xefd5e2(0x1ba))/0xa);if(_0x2ea284===_0x1c946c)break;else _0x1c4e96['push'](_0x1c4e96['shift']());}catch(_0x7a389a){_0x1c4e96['push'](_0x1c4e96['shift']());}}}(_0x1229,0xbd11a),Object[_0x15992b(0x233)](exports,Symbol[_0x15992b(0x238)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs/sheets`),n=require(`@univerjs-pro/collaboration`),r=require(`@univerjs-pro/collaboration-client`),i=require(`@univerjs-pro/edit-history-viewer`),a=require(`@univerjs-pro/license`),o=require(`@univerjs-pro/sheets-chart`),s=require(`@univerjs-pro/sheets-chart-ui`),c=require(`@univerjs-pro/sheets-pivot`),l=require(`@univerjs-pro/sheets-shape`),u=require(`@univerjs-pro/sheets-shape-ui`),d=require(`@univerjs-pro/sheets-sparkline`),f=require(`@univerjs-pro/sheets-sparkline-ui`),p=require(`@univerjs/data-validation`),m=require(`@univerjs/design`),h=require(`@univerjs/docs`),g=require(`@univerjs/docs-ui`),_=require(`@univerjs/drawing`),v=require(`@univerjs/drawing-ui`),y=require(`@univerjs/engine-formula`),b=require(`@univerjs/engine-render`),x=require(`@univerjs/network`),S=require(`@univerjs/rpc`),C=require(`@univerjs/sheets-conditional-formatting`),ee=require(`@univerjs/sheets-conditional-formatting-ui`),w=require(`@univerjs/sheets-data-validation`),T=require(`@univerjs/sheets-data-validation-ui`),E=require(`@univerjs/sheets-drawing`),D=require(`@univerjs/sheets-drawing-ui`),te=require(`@univerjs/sheets-filter`),ne=require(`@univerjs/sheets-filter-ui`),re=require(`@univerjs/sheets-formula`),ie=require(`@univerjs/sheets-formula-ui`),ae=require(`@univerjs/sheets-hyper-link`),O=require(`@univerjs/sheets-hyper-link-ui`),k=require(`@univerjs/sheets-numfmt`),A=require(`@univerjs/sheets-table`),j=require(`@univerjs/sheets-ui`),M=require(`@univerjs/ui`),N=require(`rxjs`),P=require(`@univerjs-pro/collaboration-client-ui`),F=require(`@univerjs/icons`),I=require(`@univerjs/protocol`);const L=_0x15992b(0x24d);Symbol(L);const R={};function z(_0x4b2780){'@babel/helpers - typeof';const _0x1e0878=_0x15992b;return z=typeof Symbol==_0x1e0878(0x279)&&typeof Symbol[_0x1e0878(0x266)]==_0x1e0878(0x1ed)?function(_0x4b3e21){return typeof _0x4b3e21;}:function(_0x51ff11){const _0x180b71=_0x1e0878;return _0x51ff11&&typeof Symbol==_0x180b71(0x279)&&_0x51ff11['constructor']===Symbol&&_0x51ff11!==Symbol[_0x180b71(0x216)]?'symbol':typeof _0x51ff11;},z(_0x4b2780);}function oe(_0x1a7c24,_0xb875b){const _0xbe3664=_0x15992b;if(z(_0x1a7c24)!=_0xbe3664(0x26f)||!_0x1a7c24)return _0x1a7c24;var _0x52bcc2=_0x1a7c24[Symbol[_0xbe3664(0x290)]];if(_0x52bcc2!==void 0x0){var _0x410c3c=_0x52bcc2[_0xbe3664(0x230)](_0x1a7c24,_0xb875b||_0xbe3664(0x207));if(z(_0x410c3c)!=_0xbe3664(0x26f))return _0x410c3c;throw TypeError(_0xbe3664(0x270));}return(_0xb875b===_0xbe3664(0x220)?String:Number)(_0x1a7c24);}function se(_0x295d08){const _0x29d24a=_0x15992b;var _0x54c365=oe(_0x295d08,'string');return z(_0x54c365)==_0x29d24a(0x1ed)?_0x54c365:_0x54c365+'';}function B(_0x18fe12,_0x58d8cf,_0x292821){const _0x5e896f=_0x15992b;return(_0x58d8cf=se(_0x58d8cf))in _0x18fe12?Object[_0x5e896f(0x233)](_0x18fe12,_0x58d8cf,{'value':_0x292821,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18fe12[_0x58d8cf]=_0x292821,_0x18fe12;}function V(_0x9a6deb,_0x186552){return function(_0x323d43,_0x23f88f){_0x186552(_0x323d43,_0x23f88f,_0x9a6deb);};}function H(_0x3439db,_0x362900,_0x2ec018,_0x321170){const _0xe5e013=_0x15992b;var _0xf34e4e=arguments[_0xe5e013(0x1c4)],_0x455754=_0xf34e4e<0x3?_0x362900:_0x321170===null?_0x321170=Object[_0xe5e013(0x1b1)](_0x362900,_0x2ec018):_0x321170,_0x4b87f4;if(typeof Reflect==_0xe5e013(0x26f)&&typeof Reflect[_0xe5e013(0x224)]==_0xe5e013(0x279))_0x455754=Reflect[_0xe5e013(0x224)](_0x3439db,_0x362900,_0x2ec018,_0x321170);else{for(var _0x1fc9f8=_0x3439db[_0xe5e013(0x1c4)]-0x1;_0x1fc9f8>=0x0;_0x1fc9f8--)(_0x4b87f4=_0x3439db[_0x1fc9f8])&&(_0x455754=(_0xf34e4e<0x3?_0x4b87f4(_0x455754):_0xf34e4e>0x3?_0x4b87f4(_0x362900,_0x2ec018,_0x455754):_0x4b87f4(_0x362900,_0x2ec018))||_0x455754);}return _0xf34e4e>0x3&&_0x455754&&Object['defineProperty'](_0x362900,_0x2ec018,_0x455754),_0x455754;}const U=_0x15992b(0x18d),W=_0x15992b(0x213);let G=class extends e['Disposable']{constructor(_0x200fd4,_0x8fbdda,_0x56fa5e,_0x128c99,_0x45daf3,_0x19fbbc,_0x40e7f7,_0x27db87,_0x55cf86,_0x3c7357){const _0x4d2026=_0x15992b;super(),this[_0x4d2026(0x292)]=_0x200fd4,this[_0x4d2026(0x276)]=_0x8fbdda,this[_0x4d2026(0x247)]=_0x56fa5e,this['_commandService']=_0x128c99,this['_messageService']=_0x45daf3,this[_0x4d2026(0x24b)]=_0x19fbbc,this[_0x4d2026(0x1b7)]=_0x40e7f7,this[_0x4d2026(0x1e3)]=_0x27db87,this['_sidebarService']=_0x55cf86,this['_themeService']=_0x3c7357,B(this,_0x4d2026(0x243),new N[(_0x4d2026(0x1db))](null)),B(this,_0x4d2026(0x1c3),this['_historyUniver$'][_0x4d2026(0x26e)]()),B(this,_0x4d2026(0x25e),new e[(_0x4d2026(0x1e0))]()),B(this,_0x4d2026(0x1fd),new Map()),B(this,'_internalWebWorker',null),this[_0x4d2026(0x28a)]();}get[_0x15992b(0x19f)](){const _0x500839=_0x15992b;return this[_0x500839(0x243)][_0x500839(0x280)];}[_0x15992b(0x28a)](){const _0x18029c=_0x15992b;this['_initContainer'](),this[_0x18029c(0x206)]();}['_initContainer'](){const _0x2d507e=_0x15992b;var _0x254754;let _0x5862c8=(_0x254754=this[_0x2d507e(0x247)][_0x2d507e(0x1c1)](_0x2d507e(0x18d)))==null?_0x2d507e(0x28e):_0x254754,_0x35006c=document['getElementById'](_0x5862c8);if(!_0x35006c)return;let _0x55864f=document[_0x2d507e(0x1d3)]('div');_0x55864f['id']=W,_0x55864f[_0x2d507e(0x193)][_0x2d507e(0x26d)]=_0x2d507e(0x1eb),_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x275)]='absolute',_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x284)]='0',_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x260)]='0',_0x55864f[_0x2d507e(0x226)]['width']=_0x2d507e(0x1a0),_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x227)]=_0x2d507e(0x1a0),_0x55864f[_0x2d507e(0x226)][_0x2d507e(0x22a)]='49',_0x55864f[_0x2d507e(0x226)]['display']='none',_0x35006c[_0x2d507e(0x1e5)](_0x55864f);}[_0x15992b(0x206)](){const _0x42aff8=_0x15992b;[[b[_0x42aff8(0x197)]],[M[_0x42aff8(0x21c)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M['IDialogService'],null]]}],[x[_0x42aff8(0x248)]],[_[_0x42aff8(0x1c7)],{'override':[[_[_0x42aff8(0x25d)],null]]}],[h[_0x42aff8(0x23b)],{'hasScroll':!0x1}],[g[_0x42aff8(0x2ad)]],[k[_0x42aff8(0x189)]],[t[_0x42aff8(0x203)],{'notExecuteFormula':!0x0}],[j[_0x42aff8(0x249)]],[re[_0x42aff8(0x1f8)]],[ie['UniverSheetsFormulaUIPlugin']],[n[_0x42aff8(0x1be)]],[te[_0x42aff8(0x195)]],[ne[_0x42aff8(0x1b0)]],[C['UniverSheetsConditionalFormattingPlugin']],[ee[_0x42aff8(0x250)]],[ae[_0x42aff8(0x1b6)]],[O[_0x42aff8(0x253)]],[p[_0x42aff8(0x246)]],[w[_0x42aff8(0x1e9)]],[T[_0x42aff8(0x1a6)]],[y['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[v[_0x42aff8(0x1a3)]],[E['UniverSheetsDrawingPlugin']],[D[_0x42aff8(0x252)]],[d[_0x42aff8(0x1ec)]],[f[_0x42aff8(0x274)]],[o[_0x42aff8(0x228)]],[s[_0x42aff8(0x1e6)]],[l['UniverSheetsShapePlugin']],[u['UniverSheetsShapeUIPlugin']],[c[_0x42aff8(0x283)],{'notExecuteFormula':!0x0}],[A[_0x42aff8(0x200)]]]['forEach'](([_0x49b667,_0x1409da])=>this['registerPlugin'](_0x49b667,_0x1409da));}[_0x15992b(0x251)](){const _0xebc559=_0x15992b;super[_0xebc559(0x251)](),this[_0xebc559(0x23d)](),this['_pluginMap'][_0xebc559(0x20d)]();}[_0x15992b(0x240)](_0x3c96b0,_0x36aabf,_0x395589){const _0x1aedd1=_0x15992b;if(this['_pluginMap'][_0x1aedd1(0x21b)](_0x3c96b0[_0x1aedd1(0x258)])&&!_0x395589)throw Error(_0x1aedd1(0x1b3)+_0x3c96b0[_0x1aedd1(0x258)]+_0x1aedd1(0x1b8));this[_0x1aedd1(0x1fd)][_0x1aedd1(0x1dc)](_0x3c96b0[_0x1aedd1(0x258)],[_0x3c96b0,_0x36aabf]);}[_0x15992b(0x1de)](){const _0x2de83d=_0x15992b;return Array[_0x2de83d(0x265)](this[_0x2de83d(0x1fd)]['values']());}[_0x15992b(0x217)](_0x58868d,_0x4e048d){const _0x1c5d4e=_0x15992b;let _0x488655=document[_0x1c5d4e(0x19a)](W);_0x488655&&(_0x488655[_0x1c5d4e(0x226)][_0x1c5d4e(0x1d5)]=_0x1c5d4e(0x211),this[_0x1c5d4e(0x210)](_0x58868d,W,_0x4e048d));}[_0x15992b(0x23d)](){const _0x141ccc=_0x15992b;var _0x5b705c;this[_0x141ccc(0x25e)][_0x141ccc(0x251)](),(_0x5b705c=this[_0x141ccc(0x19f)])==null||_0x5b705c[_0x141ccc(0x251)](),this['_historyUniver$'][_0x141ccc(0x291)](null);let _0x1ef512=document[_0x141ccc(0x19a)](W);_0x1ef512&&(_0x1ef512['style'][_0x141ccc(0x1d5)]=_0x141ccc(0x1d9),this['_internalWebWorker']&&(this[_0x141ccc(0x1c6)][_0x141ccc(0x1fa)](),this[_0x141ccc(0x1c6)]=null));}['_initUniver'](_0x5b1973,_0x30cf47,_0x2f9efd){const _0x522c10=_0x15992b;var _0x1902f1,_0x971e33,_0x253646,_0x3b5cda,_0x398658;if(this[_0x522c10(0x19f)])return;let _0x5d9ac2=new e[(_0x522c10(0x278))]({'locales':{[this[_0x522c10(0x292)][_0x522c10(0x2a1)]()]:this[_0x522c10(0x292)]['getLocales']()},'override':[[e['IAuthzIoService'],{'useClass':r[_0x522c10(0x28c)]}]]}),_0x43937a=_0x5d9ac2[_0x522c10(0x232)]();this[_0x522c10(0x1fe)](this[_0x522c10(0x18c)][_0x522c10(0x1ce)][_0x522c10(0x215)](_0x41743c=>{const _0x262ea5=_0x522c10;_0x43937a['get'](e[_0x262ea5(0x2a8)])[_0x262ea5(0x22d)](_0x41743c);})),this['disposeWithMe'](this[_0x522c10(0x18c)][_0x522c10(0x212)][_0x522c10(0x215)](_0x2eac1f=>{const _0x8c2672=_0x522c10;_0x43937a[_0x8c2672(0x229)](e['ThemeService'])['setTheme'](_0x2eac1f);})),_0x43937a['get'](e[_0x522c10(0x222)])[_0x522c10(0x22b)](this['_localeService'][_0x522c10(0x2a1)]()),_0x43937a[_0x522c10(0x229)](e[_0x522c10(0x1bc)])[_0x522c10(0x21f)](r[_0x522c10(0x1fb)],this[_0x522c10(0x247)][_0x522c10(0x1c1)](r[_0x522c10(0x1fb)]));let _0x214bc3=this[_0x522c10(0x247)][_0x522c10(0x1c1)](a[_0x522c10(0x1ab)]);_0x214bc3&&_0x5d9ac2[_0x522c10(0x240)](a[_0x522c10(0x27d)],{'license':_0x214bc3['ls']});let _0x114396=(_0x1902f1=this[_0x522c10(0x247)][_0x522c10(0x1c1)](_0x522c10(0x24d)))==null?void 0x0:_0x1902f1['workerURL'],_0x47ed2d=!!_0x114396;_0x47ed2d&&(this[_0x522c10(0x1c6)]=_0x114396 instanceof Worker?_0x114396:null,_0x5d9ac2['registerPlugin'](S[_0x522c10(0x29d)],{'workerURL':_0x114396})),this[_0x522c10(0x1fd)][_0x522c10(0x231)](([_0x49c0d1,_0x24194a])=>{const _0x3715de=_0x522c10;_0x5d9ac2[_0x3715de(0x240)](_0x49c0d1,_0x24194a);}),_0x5d9ac2['registerPlugin'](i[_0x522c10(0x196)],{'historyListServerUrl':(_0x971e33=this[_0x522c10(0x247)][_0x522c10(0x1c1)](_0x522c10(0x24d)))==null?void 0x0:_0x971e33['historyListServerUrl'],'historyPanelComponentKey':(_0x253646=this[_0x522c10(0x247)][_0x522c10(0x1c1)]('edit-history-loader.config'))==null?void 0x0:_0x253646[_0x522c10(0x27c)],'historyPanelHidden':(_0x3b5cda=this[_0x522c10(0x247)][_0x522c10(0x1c1)]('edit-history-loader.config'))==null?void 0x0:_0x3b5cda['historyPanelHidden'],'historyAIassistantEnabled':(_0x398658=this[_0x522c10(0x247)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x398658['historyAIassistantEnabled']}),_0x43937a['invoke'](_0x4fb22c=>{this['_initListener'](_0x4fb22c,_0x5b1973);}),this[_0x522c10(0x243)][_0x522c10(0x291)](_0x5d9ac2);let _0x4b9969=_0x43937a[_0x522c10(0x229)](i[_0x522c10(0x1c5)]),_0x153da3=this[_0x522c10(0x1e2)](_0x5b1973),_0x578d84=()=>{const _0x1c69e2=_0x522c10;_0x2f9efd?_0x4b9969[_0x1c69e2(0x25f)](_0x5b1973,_0x30cf47,_0x153da3,_0x2f9efd):_0x4b9969[_0x1c69e2(0x2a9)](_0x5b1973,_0x30cf47,_0x153da3);};if(this[_0x522c10(0x259)]['show']({'content':this['_localeService']['t'](_0x522c10(0x1d8)),'type':m['MessageType'][_0x522c10(0x288)]}),_0x47ed2d)try{_0x43937a[_0x522c10(0x229)](S['IRemoteInstanceService'])['whenReady']()['then'](()=>{_0x578d84();});}catch{_0x578d84();}else _0x578d84();}[_0x15992b(0x26a)](_0x40287a,_0x331c18){const _0x399031=_0x15992b;let _0x185a3=_0x40287a[_0x399031(0x229)](i[_0x399031(0x1c5)]);this[_0x399031(0x25e)][_0x399031(0x22f)](_0x185a3[_0x399031(0x294)][_0x399031(0x215)](_0x3a9c16=>{const _0x212c6c=_0x399031;switch(_0x3a9c16){case i[_0x212c6c(0x20c)][_0x212c6c(0x201)]:this['_dialogService'][_0x212c6c(0x1ca)](),this['_sidebarService']['close']();break;case i[_0x212c6c(0x20c)][_0x212c6c(0x1e7)]:this[_0x212c6c(0x1aa)][_0x212c6c(0x24c)](q['id']),this[_0x212c6c(0x23d)]();break;case i[_0x212c6c(0x20c)][_0x212c6c(0x1d1)]:this[_0x212c6c(0x23d)](),this[_0x212c6c(0x259)][_0x212c6c(0x244)]({'content':this[_0x212c6c(0x292)]['t']('editHistory.panel.listFetchError'),'type':m[_0x212c6c(0x192)][_0x212c6c(0x1d1)],'duration':0xbb8});break;default:break;}})),this[_0x399031(0x25e)][_0x399031(0x22f)](_0x185a3[_0x399031(0x19b)][_0x399031(0x215)](async _0x5c0d3d=>{const _0x3b9dc5=_0x399031;_0x5c0d3d&&this[_0x3b9dc5(0x1aa)][_0x3b9dc5(0x24c)](n[_0x3b9dc5(0x21e)]['id'],{'unitId':_0x331c18,'revision':_0x5c0d3d});}));}[_0x15992b(0x1e2)](_0x1d1158){const _0x234268=_0x15992b;let _0x2b1e87=this['_univerInstanceService'][_0x234268(0x18f)](_0x1d1158)[_0x234268(0x20f)]()['map'](_0x3ae8da=>_0x3ae8da[_0x234268(0x1f6)]()),_0x28d90a=new t[(_0x234268(0x1d6))](_0x1d1158)['id'],_0x10c002=_0x2b1e87[_0x234268(0x286)](_0x2843d5=>new t[(_0x234268(0x1a5))](_0x1d1158,_0x2843d5)['id']),_0x1e4017=_0x2b1e87[_0x234268(0x286)](_0x6b5819=>this[_0x234268(0x1b7)][_0x234268(0x1f0)](_0x1d1158,_0x6b5819)[_0x234268(0x286)](_0x5c4184=>new t[(_0x234268(0x202))](_0x1d1158,_0x6b5819,_0x5c4184[_0x234268(0x1da)])['id']))[_0x234268(0x296)](),_0x329c66=new t[(_0x234268(0x199))](_0x1d1158)['id'];return this['_permissionService']['composePermission']([_0x28d90a,..._0x10c002,..._0x1e4017,_0x329c66])[_0x234268(0x1c0)](_0xe023b0=>!!_0xe023b0['value']);}};G=H([V(0x0,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x222)])),V(0x1,e[_0x15992b(0x285)]),V(0x2,e['IConfigService']),V(0x3,e['ICommandService']),V(0x4,M[_0x15992b(0x21a)]),V(0x5,e[_0x15992b(0x24a)]),V(0x6,(0x0,e[_0x15992b(0x1b4)])(t[_0x15992b(0x218)])),V(0x7,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x29c)])),V(0x8,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x18e)])),V(0x9,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x2a8)]))],G);const K={'id':'univer.operation.toggle-edit-history','type':e['CommandType'][_0x15992b(0x24e)],'handler':_0x23c41b=>{const _0x129fec=_0x15992b;let _0x46c80b=_0x23c41b['get'](G),{unitId:_0x4ed149}=(0x0,t[_0x129fec(0x2ab)])(_0x23c41b[_0x129fec(0x229)](e[_0x129fec(0x285)]))||{};return _0x4ed149?(_0x46c80b[_0x129fec(0x217)](_0x4ed149),!0x0):!0x1;}},q={'id':_0x15992b(0x20a),'type':e['CommandType'][_0x15992b(0x24e)],'handler':()=>!0x0};var ce=_0x15992b(0x27a),le=_0x15992b(0x27f);function ue(_0x580ec7){const _0x2ba6f5=_0x15992b;return{'id':K['id'],'type':M[_0x2ba6f5(0x1bb)][_0x2ba6f5(0x25c)],'icon':'HistoryIcon','tooltip':_0x2ba6f5(0x1bd),'hidden$':(0x0,M['getMenuHiddenObservable'])(_0x580ec7,e[_0x2ba6f5(0x1ef)][_0x2ba6f5(0x25b)]),'disabled$':(0x0,j[_0x2ba6f5(0x29a)])(_0x580ec7,{'workbookTypes':[t[_0x2ba6f5(0x234)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[M[_0x15992b(0x1f9)][_0x15992b(0x299)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e[_0x15992b(0x18a)]{constructor(_0x4b73a1,_0x3c91a1,_0x5f30f3,_0x346b68,_0x45cfa8,_0x898392,_0x215ebd,_0x3d669b,_0x4261c3,_0x59a236,_0x376895){const _0x3374a6=_0x15992b;super(),this['_commandService']=_0x4b73a1,this[_0x3374a6(0x20e)]=_0x3c91a1,this[_0x3374a6(0x236)]=_0x5f30f3,this[_0x3374a6(0x214)]=_0x346b68,this['_localeService']=_0x45cfa8,this[_0x3374a6(0x259)]=_0x898392,this[_0x3374a6(0x1e8)]=_0x215ebd,this['_localCacheService']=_0x3d669b,this[_0x3374a6(0x1a2)]=_0x4261c3,this[_0x3374a6(0x276)]=_0x59a236,this[_0x3374a6(0x2af)]=_0x376895,B(this,_0x3374a6(0x264),null),this[_0x3374a6(0x28a)]();}[_0x15992b(0x28a)](){const _0x547c9a=_0x15992b;[K,q][_0x547c9a(0x231)](_0x29cfc8=>this['disposeWithMe']((0x0,e[_0x547c9a(0x198)])(this[_0x547c9a(0x1aa)][_0x547c9a(0x257)](_0x29cfc8)))),this['disposeWithMe'](this[_0x547c9a(0x236)]['register'](_0x547c9a(0x297),F[_0x547c9a(0x297)])),this[_0x547c9a(0x20e)][_0x547c9a(0x1f4)](de),this['disposeWithMe'](this[_0x547c9a(0x1aa)][_0x547c9a(0x235)](async(_0x3ef3b7,_0x44ad16)=>{const _0x291e7c=_0x547c9a;if(_0x3ef3b7['id']===n[_0x291e7c(0x21e)]['id']){let {unitId:_0x101bf4}=_0x3ef3b7[_0x291e7c(0x263)];this['_messageService'][_0x291e7c(0x244)]({'content':this[_0x291e7c(0x292)]['t'](_0x291e7c(0x208)),'type':m[_0x291e7c(0x192)][_0x291e7c(0x288)],'duration':0x1388});let _0x5b0847=this[_0x291e7c(0x1e8)]['getCollabEntity'](_0x101bf4);_0x44ad16!=null&&_0x44ad16[_0x291e7c(0x205)]?this[_0x291e7c(0x219)](_0x5b0847,async()=>(setTimeout(()=>window[_0x291e7c(0x1dd)][_0x291e7c(0x281)]()),!0x0),!0x0):this[_0x291e7c(0x219)](_0x5b0847,async()=>{const _0x941cb8=_0x291e7c;let _0x3542d5=this[_0x941cb8(0x276)][_0x941cb8(0x28b)](I[_0x941cb8(0x262)][_0x941cb8(0x25b)]),_0x21bebb=_0x3542d5==null?void 0x0:_0x3542d5['getActiveSheet']();if(!_0x21bebb)return!0x1;this[_0x941cb8(0x276)][_0x941cb8(0x1d2)](_0x101bf4);let _0x91a3f1=await this[_0x941cb8(0x1a2)][_0x941cb8(0x225)](_0x101bf4,I[_0x941cb8(0x262)][_0x941cb8(0x25b)]);return _0x91a3f1&&_0x91a3f1 instanceof e[_0x941cb8(0x190)]?(await this[_0x941cb8(0x1a7)](_0x91a3f1,_0x21bebb[_0x941cb8(0x1f6)]()),!0x0):!0x1;});}}));}[_0x15992b(0x219)](_0x56a9b4,_0x5675f3,_0xad34f9=!0x1){const _0x221089=_0x15992b;let _0x558fad=(0x0,N[_0x221089(0x19d)])([_0x56a9b4[_0x221089(0x223)][_0x221089(0x1fc)],_0x56a9b4[_0x221089(0x2a5)]])['subscribe'](async([_0x551a06,_0x484832])=>{const _0x5c2ca4=_0x221089;if(_0x551a06['eventID']===n['CollaborationEvent'][_0x5c2ca4(0x256)]&&(_0x484832==null?void 0x0:_0x484832['status'])===r[_0x5c2ca4(0x2a4)]['SYNCED']&&_0x551a06['data'][_0x5c2ca4(0x2a0)][_0x5c2ca4(0x19e)](_0x3e0bcf=>_0x3e0bcf['id']===n[_0x5c2ca4(0x21e)]['id'])&&await _0x5675f3()){var _0x4f7a06;this[_0x5c2ca4(0x214)][_0x5c2ca4(0x23d)](),_0x558fad['unsubscribe'](),this[_0x5c2ca4(0x264)]&&clearTimeout(this[_0x5c2ca4(0x264)]),await((_0x4f7a06=this[_0x5c2ca4(0x237)])==null?void 0x0:_0x4f7a06['exhaustSavingTask']()),this[_0x5c2ca4(0x259)][_0x5c2ca4(0x28f)]();}});_0xad34f9&&(this[_0x221089(0x264)]=setTimeout(()=>{const _0x53740b=_0x221089;_0x558fad[_0x53740b(0x1ac)](),this[_0x53740b(0x259)][_0x53740b(0x244)]({'content':this[_0x53740b(0x292)]['t'](_0x53740b(0x209)),'type':m['MessageType']['Error'],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x5f165b,_0x4acc25){const _0x26cacb=_0x15992b;await this['_updateSubUnitFromURLParams'](_0x5f165b,_0x4acc25),_0x5f165b['activeSheet$'][_0x26cacb(0x2a2)]((0x0,N[_0x26cacb(0x1ee)])(this['dispose$']))[_0x26cacb(0x215)](_0x1826ac=>{const _0x1cb66c=_0x26cacb;_0x1826ac&&this[_0x1cb66c(0x1a4)](_0x1826ac);}),this['_urlService'][_0x26cacb(0x295)][_0x26cacb(0x2a2)]((0x0,N[_0x26cacb(0x1ee)])(this[_0x26cacb(0x23e)]))[_0x26cacb(0x215)](()=>this['_updateSubUnitFromURLParams'](_0x5f165b,_0x4acc25));}[_0x15992b(0x1a4)](_0x34afb8,_0x26f78a=!0x1){const _0x34a3f7=_0x15992b;let _0x4719b3=this[_0x34a3f7(0x2af)][_0x34a3f7(0x1cb)]('subunit');_0x34afb8[_0x34a3f7(0x1f6)]()!==_0x4719b3&&this[_0x34a3f7(0x2af)][_0x34a3f7(0x26b)]('subunit',_0x34afb8[_0x34a3f7(0x1f6)](),_0x26f78a);}async[_0x15992b(0x1df)](_0x45b69a,_0x2a00f9){const _0x1deba1=_0x15992b;var _0x572891;if(!_0x2a00f9||!_0x45b69a[_0x1deba1(0x271)](_0x2a00f9)){let _0x4a4f2d=_0x45b69a[_0x1deba1(0x29f)]()[0x0],_0x24317b=_0x45b69a['getSheetBySheetId'](_0x4a4f2d);if(!_0x24317b)return;this[_0x1deba1(0x1a4)](_0x24317b,!0x0),await this[_0x1deba1(0x1aa)][_0x1deba1(0x24c)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x45b69a[_0x1deba1(0x261)](),'subUnitId':_0x4a4f2d});return;}((_0x572891=_0x45b69a['getActiveSheet']())==null?void 0x0:_0x572891[_0x1deba1(0x1f6)]())!==_0x2a00f9&&await this['_commandService'][_0x1deba1(0x24c)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x45b69a[_0x1deba1(0x261)](),'subUnitId':_0x2a00f9});}};J=H([V(0x0,e[_0x15992b(0x287)]),V(0x1,M['IMenuManagerService']),V(0x2,(0x0,e['Inject'])(M[_0x15992b(0x221)])),V(0x3,(0x0,e['Inject'])(G)),V(0x4,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x222)])),V(0x5,M[_0x15992b(0x21a)]),V(0x6,(0x0,e['Inject'])(r[_0x15992b(0x1cc)])),V(0x7,r[_0x15992b(0x2a3)]),V(0x8,(0x0,e[_0x15992b(0x1b4)])(r[_0x15992b(0x254)])),V(0x9,e['IUniverInstanceService']),V(0xa,P[_0x15992b(0x289)])],J);function _0x3301(_0x2a2fad,_0x1e21fd){_0x2a2fad=_0x2a2fad-0x189;const _0x1229e4=_0x1229();let _0x3301d1=_0x1229e4[_0x2a2fad];return _0x3301d1;}const Y=_0x15992b(0x1f5);let X=class extends e[_0x15992b(0x1d7)]{constructor(_0x5a0935,_0x289df6,_0x55132f,_0x3766a2,_0x237fe9,_0x162d30,_0xd7f034,_0x4d1c0a,_0x12f9ba,_0x496544){const _0x4814bf=_0x15992b;super(),this[_0x4814bf(0x292)]=_0x5a0935,this['_univerInstanceService']=_0x289df6,this[_0x4814bf(0x247)]=_0x55132f,this[_0x4814bf(0x1aa)]=_0x3766a2,this['_messageService']=_0x237fe9,this[_0x4814bf(0x24b)]=_0x162d30,this[_0x4814bf(0x1b7)]=_0xd7f034,this[_0x4814bf(0x1e3)]=_0x4d1c0a,this['_sidebarService']=_0x12f9ba,this['_themeService']=_0x496544,B(this,_0x4814bf(0x243),new N[(_0x4814bf(0x1db))](null)),B(this,'historyUniver$',this[_0x4814bf(0x243)][_0x4814bf(0x26e)]()),B(this,_0x4814bf(0x25e),new e['DisposableCollection']()),B(this,_0x4814bf(0x1fd),new Map()),B(this,_0x4814bf(0x1c6),null),this[_0x4814bf(0x28a)]();}get['historyUniver'](){const _0x53a23c=_0x15992b;return this[_0x53a23c(0x243)][_0x53a23c(0x280)];}[_0x15992b(0x28a)](){const _0x3c9b5d=_0x15992b;this[_0x3c9b5d(0x1a8)](),this[_0x3c9b5d(0x206)]();}[_0x15992b(0x1a8)](){const _0x34920f=_0x15992b;var _0x2e994c;let _0x6a8a1b=(_0x2e994c=this[_0x34920f(0x247)][_0x34920f(0x1c1)](_0x34920f(0x18d)))==null?_0x34920f(0x28e):_0x2e994c,_0x38c14b=document[_0x34920f(0x19a)](_0x6a8a1b);if(!_0x38c14b)return;let _0x48b2de=document['createElement'](_0x34920f(0x267));_0x48b2de['id']=Y,_0x48b2de[_0x34920f(0x193)]['uComp']=_0x34920f(0x1eb),_0x48b2de[_0x34920f(0x226)][_0x34920f(0x275)]=_0x34920f(0x1c8),_0x48b2de[_0x34920f(0x226)][_0x34920f(0x284)]='0',_0x48b2de[_0x34920f(0x226)][_0x34920f(0x260)]='0',_0x48b2de['style'][_0x34920f(0x1d0)]='100%',_0x48b2de[_0x34920f(0x226)][_0x34920f(0x227)]=_0x34920f(0x1a0),_0x48b2de[_0x34920f(0x226)][_0x34920f(0x22a)]='49',_0x48b2de[_0x34920f(0x226)][_0x34920f(0x1d5)]=_0x34920f(0x1d9),_0x38c14b[_0x34920f(0x1e5)](_0x48b2de);}['_initPlugins'](){const _0x2f9cef=_0x15992b;[[b[_0x2f9cef(0x197)]],[M[_0x2f9cef(0x1af)],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M['IDialogService'],null]]}],[x[_0x2f9cef(0x248)]],[_[_0x2f9cef(0x1c7)],{'override':[[_[_0x2f9cef(0x25d)],null]]}],[h[_0x2f9cef(0x23b)],{'hasScroll':!0x1}],[g[_0x2f9cef(0x2ad)]],[k[_0x2f9cef(0x189)]],[t['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[j[_0x2f9cef(0x1b2)]],[re[_0x2f9cef(0x1f8)]],[ie['UniverSheetsFormulaUIPlugin']],[n[_0x2f9cef(0x1be)]],[te[_0x2f9cef(0x195)]],[C[_0x2f9cef(0x1e1)]],[ae['UniverSheetsHyperLinkPlugin']],[O[_0x2f9cef(0x253)]],[p['UniverDataValidationPlugin']],[w['UniverSheetsDataValidationPlugin']],[T[_0x2f9cef(0x2b0)]],[y[_0x2f9cef(0x29b)],{'notExecuteFormula':!0x0}],[v[_0x2f9cef(0x1a3)]],[E[_0x2f9cef(0x1bf)]],[D[_0x2f9cef(0x252)]],[d[_0x2f9cef(0x1ec)]],[f[_0x2f9cef(0x274)]],[o['UniverSheetsChartPlugin']],[s[_0x2f9cef(0x1e6)]],[l[_0x2f9cef(0x277)]],[u[_0x2f9cef(0x242)]],[c[_0x2f9cef(0x283)],{'notExecuteFormula':!0x0}],[A[_0x2f9cef(0x200)]]][_0x2f9cef(0x231)](([_0xeb8db5,_0x454e5f])=>this[_0x2f9cef(0x240)](_0xeb8db5,_0x454e5f));}[_0x15992b(0x251)](){const _0xbd57cd=_0x15992b;super[_0xbd57cd(0x251)](),this[_0xbd57cd(0x23d)](),this[_0xbd57cd(0x1fd)][_0xbd57cd(0x20d)]();}[_0x15992b(0x240)](_0xd2718a,_0x548541,_0x5918c7){const _0x865ce4=_0x15992b;if(this['_pluginMap'][_0x865ce4(0x21b)](_0xd2718a[_0x865ce4(0x258)])&&!_0x5918c7)throw Error(_0x865ce4(0x1f3)+_0xd2718a['pluginName']+'\x20has\x20been\x20registered.');this[_0x865ce4(0x1fd)]['set'](_0xd2718a[_0x865ce4(0x258)],[_0xd2718a,_0x548541]);}[_0x15992b(0x1de)](){const _0x348afd=_0x15992b;return Array['from'](this[_0x348afd(0x1fd)]['values']());}[_0x15992b(0x217)](_0x2b87f9,_0x2dc917){const _0x266b0a=_0x15992b;let _0xb35851=document['getElementById'](Y);_0xb35851&&(_0xb35851[_0x266b0a(0x226)][_0x266b0a(0x1d5)]=_0x266b0a(0x211),this['_initUniver'](_0x2b87f9,Y,_0x2dc917));}[_0x15992b(0x23d)](){const _0x101bb5=_0x15992b;var _0x1d0840;this[_0x101bb5(0x25e)][_0x101bb5(0x251)](),(_0x1d0840=this[_0x101bb5(0x19f)])==null||_0x1d0840[_0x101bb5(0x251)](),this['_historyUniver$']['next'](null);let _0x69b618=document[_0x101bb5(0x19a)](Y);_0x69b618&&(_0x69b618[_0x101bb5(0x226)][_0x101bb5(0x1d5)]=_0x101bb5(0x1d9),this[_0x101bb5(0x1c6)]&&(this[_0x101bb5(0x1c6)][_0x101bb5(0x1fa)](),this[_0x101bb5(0x1c6)]=null));}[_0x15992b(0x210)](_0x10e9ec,_0x5d19ad,_0x17a91d){const _0x2e4d99=_0x15992b;var _0x36c131,_0xc08d02,_0x2e7f08,_0x4a73a3;if(this['historyUniver'])return;let _0x588ef4=new e[(_0x2e4d99(0x278))]({'locales':{[this['_localeService']['getCurrentLocale']()]:this[_0x2e4d99(0x292)][_0x2e4d99(0x24f)]()},'override':[[e[_0x2e4d99(0x191)],{'useClass':r['AuthzIoHttpService']}]]}),_0x1683ec=_0x588ef4[_0x2e4d99(0x232)]();this[_0x2e4d99(0x1fe)](this['_themeService'][_0x2e4d99(0x1ce)][_0x2e4d99(0x215)](_0x2dab2d=>{const _0x384062=_0x2e4d99;_0x1683ec[_0x384062(0x229)](e[_0x384062(0x2a8)])[_0x384062(0x22d)](_0x2dab2d);})),this[_0x2e4d99(0x1fe)](this[_0x2e4d99(0x18c)][_0x2e4d99(0x212)][_0x2e4d99(0x215)](_0x370001=>{const _0x57dfb6=_0x2e4d99;_0x1683ec['get'](e['ThemeService'])[_0x57dfb6(0x1a1)](_0x370001);})),_0x1683ec[_0x2e4d99(0x229)](e[_0x2e4d99(0x222)])['setLocale'](this[_0x2e4d99(0x292)][_0x2e4d99(0x2a1)]()),_0x1683ec[_0x2e4d99(0x229)](e['IConfigService'])[_0x2e4d99(0x21f)](r[_0x2e4d99(0x1fb)],this['_configService'][_0x2e4d99(0x1c1)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x3b13f9=this[_0x2e4d99(0x247)]['getConfig'](a[_0x2e4d99(0x1ab)]);_0x3b13f9&&_0x588ef4[_0x2e4d99(0x240)](a['UniverLicensePlugin'],{'license':_0x3b13f9['ls']});let _0x2ced84=(_0x36c131=this[_0x2e4d99(0x247)][_0x2e4d99(0x1c1)]('edit-history-loader.config'))==null?void 0x0:_0x36c131['workerURL'],_0x160683=!!_0x2ced84;_0x160683&&(this[_0x2e4d99(0x1c6)]=_0x2ced84 instanceof Worker?_0x2ced84:null,_0x588ef4[_0x2e4d99(0x240)](S[_0x2e4d99(0x29d)],{'workerURL':_0x2ced84})),this['_pluginMap']['forEach'](([_0x4cccb2,_0x1de964])=>{const _0x8d2491=_0x2e4d99;_0x588ef4[_0x8d2491(0x240)](_0x4cccb2,_0x1de964);}),_0x588ef4[_0x2e4d99(0x240)](i[_0x2e4d99(0x1ae)],{'historyListServerUrl':(_0xc08d02=this[_0x2e4d99(0x247)]['getConfig'](_0x2e4d99(0x24d)))==null?void 0x0:_0xc08d02['historyListServerUrl'],'historyPanelComponentKey':(_0x2e7f08=this['_configService'][_0x2e4d99(0x1c1)](_0x2e4d99(0x24d)))==null?void 0x0:_0x2e7f08[_0x2e4d99(0x27c)],'historyPanelHidden':(_0x4a73a3=this[_0x2e4d99(0x247)][_0x2e4d99(0x1c1)](_0x2e4d99(0x24d)))==null?void 0x0:_0x4a73a3[_0x2e4d99(0x29e)]}),_0x1683ec[_0x2e4d99(0x273)](_0x3bdbad=>{const _0x807263=_0x2e4d99;this[_0x807263(0x26a)](_0x3bdbad,_0x10e9ec);}),this[_0x2e4d99(0x243)]['next'](_0x588ef4);let _0x56ec1d=_0x1683ec[_0x2e4d99(0x229)](i['HistoryManagerService']),_0x100c2b=this['_checkCanRevert'](_0x10e9ec),_0x139031=()=>{const _0x3f7b34=_0x2e4d99;_0x17a91d?_0x56ec1d['triggerCustomVersions'](_0x10e9ec,_0x5d19ad,_0x100c2b,_0x17a91d):_0x56ec1d[_0x3f7b34(0x2a9)](_0x10e9ec,_0x5d19ad,_0x100c2b);};if(this['_messageService']['show']({'content':this[_0x2e4d99(0x292)]['t'](_0x2e4d99(0x1d8)),'type':m[_0x2e4d99(0x192)][_0x2e4d99(0x288)]}),_0x160683)try{_0x1683ec[_0x2e4d99(0x229)](S['IRemoteInstanceService'])[_0x2e4d99(0x2ae)]()[_0x2e4d99(0x1cf)](()=>{_0x139031();});}catch{_0x139031();}else _0x139031();}['_initListener'](_0x54b61c,_0x1b00f8){const _0x33099f=_0x15992b;let _0x44777a=_0x54b61c[_0x33099f(0x229)](i[_0x33099f(0x1c5)]);this['_disposableCollection'][_0x33099f(0x22f)](_0x44777a[_0x33099f(0x294)][_0x33099f(0x215)](_0x28336e=>{const _0x2660ac=_0x33099f;switch(_0x28336e){case i[_0x2660ac(0x20c)]['Entered']:this['_dialogService'][_0x2660ac(0x1ca)](),this[_0x2660ac(0x239)]['close']();break;case i[_0x2660ac(0x20c)][_0x2660ac(0x1e7)]:this[_0x2660ac(0x1aa)]['executeCommand'](q['id']),this[_0x2660ac(0x23d)]();break;case i[_0x2660ac(0x20c)][_0x2660ac(0x1d1)]:this['unMountHistoryContent'](),this['_messageService']['show']({'content':this[_0x2660ac(0x292)]['t'](_0x2660ac(0x268)),'type':m[_0x2660ac(0x192)][_0x2660ac(0x1d1)],'duration':0xbb8});break;default:break;}})),this[_0x33099f(0x25e)][_0x33099f(0x22f)](_0x44777a['revertRevision$'][_0x33099f(0x215)](async _0x2d2433=>{const _0x4b2e00=_0x33099f;_0x2d2433&&this[_0x4b2e00(0x1aa)][_0x4b2e00(0x24c)](n['RevertRevisionMutation']['id'],{'unitId':_0x1b00f8,'revision':_0x2d2433});}));}[_0x15992b(0x1e2)](_0x4ba65c){const _0x2001c6=_0x15992b;let _0x22d2d7=this[_0x2001c6(0x276)]['getUnit'](_0x4ba65c)[_0x2001c6(0x20f)]()['map'](_0x117636=>_0x117636[_0x2001c6(0x1f6)]()),_0x4dff8c=new t[(_0x2001c6(0x1d6))](_0x4ba65c)['id'],_0x126336=_0x22d2d7['map'](_0x5d4e07=>new t['WorksheetEditPermission'](_0x4ba65c,_0x5d4e07)['id']),_0x5563fb=_0x22d2d7[_0x2001c6(0x286)](_0x30a25f=>this[_0x2001c6(0x1b7)][_0x2001c6(0x1f0)](_0x4ba65c,_0x30a25f)[_0x2001c6(0x286)](_0xfa4ef0=>new t[(_0x2001c6(0x202))](_0x4ba65c,_0x30a25f,_0xfa4ef0[_0x2001c6(0x1da)])['id']))[_0x2001c6(0x296)](),_0x214f43=new t['WorkbookRecoverHistoryPermission'](_0x4ba65c)['id'];return this['_permissionService'][_0x2001c6(0x22c)]([_0x4dff8c,..._0x126336,..._0x5563fb,_0x214f43])[_0x2001c6(0x1c0)](_0x218b63=>!!_0x218b63[_0x2001c6(0x280)]);}};X=H([V(0x0,(0x0,e['Inject'])(e[_0x15992b(0x222)])),V(0x1,e[_0x15992b(0x285)]),V(0x2,e[_0x15992b(0x1bc)]),V(0x3,e[_0x15992b(0x287)]),V(0x4,M['IMessageService']),V(0x5,e[_0x15992b(0x24a)]),V(0x6,(0x0,e[_0x15992b(0x1b4)])(t[_0x15992b(0x218)])),V(0x7,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x29c)])),V(0x8,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x18e)])),V(0x9,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x2a8)]))],X);function _0x1229(){const _0x258b3b=['mutations','getCurrentLocale','pipe','ILocalCacheService','CollaborationStatus','state$','9MVcnro','UniverEditHistoryLoaderPlugin','ThemeService','triggerLoadVersions','DependentOn','getSheetCommandTarget','_config','UniverDocsUIPlugin','whenReady','_urlService','UniverSheetsDataValidationMobileUIPlugin','UniverSheetsNumfmtPlugin','RxDisposable','menu','_themeService','UNIVER_CONTAINER_ID','ISidebarService','getUnit','Workbook','IAuthzIoService','MessageType','dataset','ToggleEditHistoryOperation','UniverSheetsFilterPlugin','UniverEditHistoryViewerPlugin','UniverRenderEnginePlugin','toDisposable','WorkbookRecoverHistoryPermission','getElementById','revertRevision$','packageName','combineLatest','some','historyUniver','100%','setTheme','_dataLoaderService','UniverDrawingUIPlugin','_updateURLWithCurrentState','WorksheetEditPermission','UniverSheetsDataValidationUIPlugin','_setupSubUnitSync','_initContainer','18028HrJwKq','_commandService','LS_CONFIG_KEY','unsubscribe','133693jyigFG','UniverEditHistoryViewerMobilePlugin','UniverMobileUIPlugin','UniverSheetsFilterUIPlugin','getOwnPropertyDescriptor','UniverSheetsMobileUIPlugin','[HistoryLoaderService]:\x20Plugin\x20','Inject','Plugin','UniverSheetsHyperLinkPlugin','_selectionProtectionRuleModel','\x20has\x20been\x20registered.','type','9314230aejsNj','MenuItemType','IConfigService','editHistory.panel.title','UniverCollaborationPlugin','UniverSheetsDrawingPlugin','every','getConfig','IMenuManagerService','historyUniver$','length','HistoryManagerService','_internalWebWorker','UniverDrawingPlugin','absolute','UNIVER_HISTORY_CONTAINER_ID','closeAll','getParam','CollaborationController','1830560bkMbDn','darkMode$','then','width','Error','disposeUnit','createElement','univerContainerId','display','WorkbookEditablePermission','Disposable','editHistory.info.initializing','none','permissionId','BehaviorSubject','set','location','getAllPlugins','_updateSubUnitFromURLParams','DisposableCollection','UniverSheetsConditionalFormattingPlugin','_checkCanRevert','_dialogService','_injector','appendChild','UniverSheetsChartUIPlugin','Exited','_collaborationController','UniverSheetsDataValidationPlugin','getActiveSheet','history-container','UniverSheetSparklinePlugin','symbol','takeUntil','UniverInstanceType','getSubunitRuleList','activeSheet$','Injector','[MobileHistoryLoaderService]:\x20Plugin\x20','mergeMenu','univer-history-container-mobile','getSheetId','version','UniverSheetsFormulaPlugin','RibbonStartGroup','terminate','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','event$','_pluginMap','disposeWithMe','550bQELXT','UniverSheetsTablePlugin','Entered','RangeProtectionPermissionEditPoint','UniverSheetsPlugin','eventID','fromCollab','_initPlugins','default','editHistory.panel.reverting','editHistory.panel.revertFailed','univer.operation.exit-edit-history','data','HistoryModeStatus','clear','_menuManagerService','getSheets','_initUniver','block','currentTheme$','univer-history-container','_historyManagerService','subscribe','prototype','mountHistoryContent','RangeProtectionRuleModel','_handleRevertAcknowledgement','IMessageService','has','UniverUIPlugin','CollaborationEvent','RevertRevisionMutation','setConfig','string','ComponentManager','LocaleService','session','decorate','loadUnit','style','height','UniverSheetsChartPlugin','get','zIndex','setLocale','composePermission','setDarkMode','UniverEditHistoryLoaderMobilePlugin','add','call','forEach','__getInjector','defineProperty','WorkbookViewHistoryPermission','onCommandExecuted','_componentManager','_localCacheService','toStringTag','_sidebarService','HistoryLoaderService','UniverDocsPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','unMountHistoryContent','dispose$','UNIVER_UNKNOWN','registerPlugin','getCollabEntity','UniverSheetsShapeUIPlugin','_historyUniver$','show','488YquIOh','UniverDataValidationPlugin','_configService','UniverNetworkPlugin','UniverSheetsUIPlugin','IPermissionService','_permissionService','executeCommand','edit-history-loader.config','OPERATION','getLocales','UniverSheetsConditionalFormattingUIPlugin','dispose','UniverSheetsDrawingUIPlugin','UniverSheetsHyperLinkUIPlugin','DataLoaderService','SetWorksheetActivateCommand','CHANGESET_ACK','registerCommand','pluginName','_messageService','72302RTQTng','UNIVER_SHEET','BUTTON','IImageIoService','_disposableCollection','triggerCustomVersions','left','getUnitId','UniverType','params','_revertErrorTimer','from','iterator','div','editHistory.panel.listFetchError','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_initListener','setParam','2014752aZhWYj','uComp','asObservable','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSheetBySheetId','subunit','invoke','UniverSheetSparklineUIPlugin','position','_univerInstanceService','UniverSheetsShapePlugin','Univer','function','@univerjs-pro/edit-history-loader','merge','historyPanelComponentKey','UniverLicensePlugin','MobileHistoryLoaderService','0.20.1','value','reload','7126884LwxLIW','UniverSheetsPivotTablePlugin','top','IUniverInstanceService','map','ICommandService','Loading','IURLService','_init','getCurrentUnitOfType','AuthzIoHttpService','onSteady','univer-container','removeAll','toPrimitive','next','_localeService','onStarting','status$','urlChange$','flat','HistoryIcon','UNIVER_CONTAINER_ID_KEY','OTHERS','getCurrentRangeDisable$','UniverFormulaEnginePlugin','IDialogService','UniverRPCMainThreadPlugin','historyPanelHidden','getUnhiddenWorksheets'];_0x1229=function(){return _0x258b3b;};return _0x1229();}let Z=class extends e[_0x15992b(0x1b5)]{constructor(_0x53c4a1=R,_0x43e8e5,_0x55460e){const _0x5e5f41=_0x15992b;super(),this[_0x5e5f41(0x2ac)]=_0x53c4a1,this[_0x5e5f41(0x1e4)]=_0x43e8e5,this[_0x5e5f41(0x247)]=_0x55460e;let {menu:_0x1e7bcb,..._0x5d45bf}=(0x0,e['merge'])({},R,this[_0x5e5f41(0x2ac)]);_0x1e7bcb&&this[_0x5e5f41(0x247)][_0x5e5f41(0x21f)]('menu',_0x1e7bcb,{'merge':!0x0}),this['_configService'][_0x5e5f41(0x21f)](L,_0x5d45bf),this[_0x5e5f41(0x2ac)][_0x5e5f41(0x1d4)]&&this['_configService'][_0x5e5f41(0x21f)](_0x5e5f41(0x18d),this[_0x5e5f41(0x2ac)][_0x5e5f41(0x1d4)]);}['onStarting'](){const _0x4edd3f=_0x15992b;[[G,{'useClass':X}],[J]][_0x4edd3f(0x231)](_0x37b599=>this[_0x4edd3f(0x1e4)][_0x4edd3f(0x22f)](_0x37b599));}[_0x15992b(0x28d)](){const _0x323284=_0x15992b;this['_injector'][_0x323284(0x229)](J);}};B(Z,_0x15992b(0x1b9),e[_0x15992b(0x1ef)][_0x15992b(0x23f)]),B(Z,_0x15992b(0x258),_0x15992b(0x23c)),B(Z,_0x15992b(0x19c),ce),B(Z,_0x15992b(0x1f7),le),Z=H([(0x0,e[_0x15992b(0x2aa)])(a[_0x15992b(0x27d)]),V(0x1,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x1f2)])),V(0x2,e[_0x15992b(0x1bc)])],Z);let Q=class extends e[_0x15992b(0x18a)]{constructor(_0x107504,_0x14749a,_0x3bd410,_0x3d31ca,_0x3a2532,_0xe6ec5e,_0x7f5ebc,_0x24b72a,_0x2fea1c,_0x6ab723,_0x117e4b){const _0x598058=_0x15992b;super(),this['_commandService']=_0x107504,this[_0x598058(0x20e)]=_0x14749a,this[_0x598058(0x236)]=_0x3bd410,this[_0x598058(0x214)]=_0x3d31ca,this[_0x598058(0x292)]=_0x3a2532,this[_0x598058(0x259)]=_0xe6ec5e,this[_0x598058(0x1e8)]=_0x7f5ebc,this[_0x598058(0x237)]=_0x24b72a,this[_0x598058(0x1a2)]=_0x2fea1c,this[_0x598058(0x276)]=_0x6ab723,this[_0x598058(0x2af)]=_0x117e4b,B(this,'_revertErrorTimer',null),this[_0x598058(0x28a)]();}[_0x15992b(0x28a)](){const _0x3921a2=_0x15992b;[K,q][_0x3921a2(0x231)](_0x474349=>this[_0x3921a2(0x1fe)]((0x0,e[_0x3921a2(0x198)])(this['_commandService'][_0x3921a2(0x257)](_0x474349)))),this[_0x3921a2(0x1fe)](this[_0x3921a2(0x236)]['register'](_0x3921a2(0x297),F[_0x3921a2(0x297)])),this[_0x3921a2(0x20e)]['mergeMenu'](de),this[_0x3921a2(0x1fe)](this[_0x3921a2(0x1aa)][_0x3921a2(0x235)](async(_0x22ac2d,_0x3f2354)=>{const _0x332e22=_0x3921a2;if(_0x22ac2d['id']===n['RevertRevisionMutation']['id']){let {unitId:_0x2451e4}=_0x22ac2d[_0x332e22(0x263)];this[_0x332e22(0x259)][_0x332e22(0x244)]({'content':this['_localeService']['t'](_0x332e22(0x208)),'type':m[_0x332e22(0x192)][_0x332e22(0x288)],'duration':0x1388});let _0x5cf6d5=this['_collaborationController'][_0x332e22(0x241)](_0x2451e4);_0x3f2354!=null&&_0x3f2354['fromCollab']?this[_0x332e22(0x219)](_0x5cf6d5,async()=>(setTimeout(()=>window[_0x332e22(0x1dd)][_0x332e22(0x281)]()),!0x0),!0x0):this[_0x332e22(0x219)](_0x5cf6d5,async()=>{const _0x406496=_0x332e22;let _0x1edcc5=this['_univerInstanceService'][_0x406496(0x28b)](I[_0x406496(0x262)][_0x406496(0x25b)]),_0xb5fcca=_0x1edcc5==null?void 0x0:_0x1edcc5[_0x406496(0x1ea)]();if(!_0xb5fcca)return!0x1;this[_0x406496(0x276)][_0x406496(0x1d2)](_0x2451e4);let _0xe1fd1a=await this['_dataLoaderService'][_0x406496(0x225)](_0x2451e4,I['UniverType'][_0x406496(0x25b)]);return _0xe1fd1a&&_0xe1fd1a instanceof e[_0x406496(0x190)]?(await this['_setupSubUnitSync'](_0xe1fd1a,_0xb5fcca[_0x406496(0x1f6)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x25640e,_0x39eba4,_0x235d26=!0x1){const _0x30ae2d=_0x15992b;let _0x1871ae=(0x0,N[_0x30ae2d(0x19d)])([_0x25640e[_0x30ae2d(0x223)][_0x30ae2d(0x1fc)],_0x25640e['state$']])[_0x30ae2d(0x215)](async([_0x2ce060,_0x459ebf])=>{const _0x4bc37a=_0x30ae2d;if(_0x2ce060[_0x4bc37a(0x204)]===n[_0x4bc37a(0x21d)][_0x4bc37a(0x256)]&&(_0x459ebf==null?void 0x0:_0x459ebf['status'])===r[_0x4bc37a(0x2a4)]['SYNCED']&&_0x2ce060[_0x4bc37a(0x20b)][_0x4bc37a(0x2a0)][_0x4bc37a(0x19e)](_0xb0898d=>_0xb0898d['id']===n[_0x4bc37a(0x21e)]['id'])&&await _0x39eba4()){var _0x3ce6d9;this[_0x4bc37a(0x214)][_0x4bc37a(0x23d)](),_0x1871ae[_0x4bc37a(0x1ac)](),this[_0x4bc37a(0x264)]&&clearTimeout(this[_0x4bc37a(0x264)]),await((_0x3ce6d9=this[_0x4bc37a(0x237)])==null?void 0x0:_0x3ce6d9['exhaustSavingTask']());}});_0x235d26&&(this[_0x30ae2d(0x264)]=setTimeout(()=>{const _0x151c6a=_0x30ae2d;_0x1871ae[_0x151c6a(0x1ac)](),this[_0x151c6a(0x259)][_0x151c6a(0x244)]({'content':this[_0x151c6a(0x292)]['t']('editHistory.panel.revertFailed'),'type':m[_0x151c6a(0x192)]['Error'],'duration':0xbb8});},0x1388));}async[_0x15992b(0x1a7)](_0x18ae29,_0x3a9809){const _0x2d49a1=_0x15992b;await this['_updateSubUnitFromURLParams'](_0x18ae29,_0x3a9809),_0x18ae29[_0x2d49a1(0x1f1)][_0x2d49a1(0x2a2)]((0x0,N[_0x2d49a1(0x1ee)])(this[_0x2d49a1(0x23e)]))[_0x2d49a1(0x215)](_0x2688ed=>{_0x2688ed&&this['_updateURLWithCurrentState'](_0x2688ed);}),this[_0x2d49a1(0x2af)][_0x2d49a1(0x295)][_0x2d49a1(0x2a2)]((0x0,N[_0x2d49a1(0x1ee)])(this[_0x2d49a1(0x23e)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x18ae29,_0x3a9809));}[_0x15992b(0x1a4)](_0x4e20de,_0x1c2c39=!0x1){const _0x20404a=_0x15992b;let _0x25c96b=this[_0x20404a(0x2af)]['getParam'](_0x20404a(0x272));_0x4e20de['getSheetId']()!==_0x25c96b&&this[_0x20404a(0x2af)][_0x20404a(0x26b)](_0x20404a(0x272),_0x4e20de[_0x20404a(0x1f6)](),_0x1c2c39);}async[_0x15992b(0x1df)](_0x3fdfbd,_0x527fea){const _0x1bce6e=_0x15992b;var _0x3f3afa;if(!_0x527fea||!_0x3fdfbd['getSheetBySheetId'](_0x527fea)){let _0x250fc9=_0x3fdfbd[_0x1bce6e(0x29f)]()[0x0],_0x538a9a=_0x3fdfbd[_0x1bce6e(0x271)](_0x250fc9);if(!_0x538a9a)return;this[_0x1bce6e(0x1a4)](_0x538a9a,!0x0),await this[_0x1bce6e(0x1aa)][_0x1bce6e(0x24c)](t[_0x1bce6e(0x255)]['id'],{'unitId':_0x3fdfbd['getUnitId'](),'subUnitId':_0x250fc9});return;}((_0x3f3afa=_0x3fdfbd[_0x1bce6e(0x1ea)]())==null?void 0x0:_0x3f3afa[_0x1bce6e(0x1f6)]())!==_0x527fea&&await this[_0x1bce6e(0x1aa)]['executeCommand'](t[_0x1bce6e(0x255)]['id'],{'unitId':_0x3fdfbd[_0x1bce6e(0x261)](),'subUnitId':_0x527fea});}};Q=H([V(0x0,e[_0x15992b(0x287)]),V(0x1,M[_0x15992b(0x1c2)]),V(0x2,(0x0,e[_0x15992b(0x1b4)])(M[_0x15992b(0x221)])),V(0x3,(0x0,e[_0x15992b(0x1b4)])(G)),V(0x4,(0x0,e[_0x15992b(0x1b4)])(e['LocaleService'])),V(0x5,M['IMessageService']),V(0x6,(0x0,e[_0x15992b(0x1b4)])(r[_0x15992b(0x1cc)])),V(0x7,r[_0x15992b(0x2a3)]),V(0x8,(0x0,e[_0x15992b(0x1b4)])(r['DataLoaderService'])),V(0x9,e[_0x15992b(0x285)]),V(0xa,P['IURLService'])],Q);let $=class extends e[_0x15992b(0x1b5)]{constructor(_0x3677c4=R,_0x5c0c88,_0x261df4){const _0x49a8ab=_0x15992b;super(),this['_config']=_0x3677c4,this[_0x49a8ab(0x1e4)]=_0x5c0c88,this[_0x49a8ab(0x247)]=_0x261df4;let {menu:_0x54f1ba,..._0x370676}=(0x0,e[_0x49a8ab(0x27b)])({},R,this[_0x49a8ab(0x2ac)]);_0x54f1ba&&this[_0x49a8ab(0x247)][_0x49a8ab(0x21f)](_0x49a8ab(0x18b),_0x54f1ba,{'merge':!0x0}),this[_0x49a8ab(0x247)][_0x49a8ab(0x21f)](L,_0x370676),this[_0x49a8ab(0x2ac)][_0x49a8ab(0x1d4)]&&this[_0x49a8ab(0x247)][_0x49a8ab(0x21f)](U,this[_0x49a8ab(0x2ac)][_0x49a8ab(0x1d4)]);}[_0x15992b(0x293)](){const _0x4e44fe=_0x15992b;[[G],[Q]][_0x4e44fe(0x231)](_0x23a278=>this[_0x4e44fe(0x1e4)][_0x4e44fe(0x22f)](_0x23a278));}[_0x15992b(0x28d)](){const _0x49f940=_0x15992b;this[_0x49f940(0x1e4)][_0x49f940(0x229)](Q);}};B($,_0x15992b(0x1b9),e[_0x15992b(0x1ef)][_0x15992b(0x23f)]),B($,_0x15992b(0x258),_0x15992b(0x269)),B($,_0x15992b(0x19c),ce),B($,_0x15992b(0x1f7),le),$=H([(0x0,e[_0x15992b(0x2aa)])(a[_0x15992b(0x27d)]),V(0x1,(0x0,e[_0x15992b(0x1b4)])(e[_0x15992b(0x1f2)])),V(0x2,e[_0x15992b(0x1bc)])],$),exports['EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY']=L,Object[_0x15992b(0x233)](exports,_0x15992b(0x23a),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x15992b(0x27e),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x15992b(0x194)]=K,exports[_0x15992b(0x298)]=U,exports[_0x15992b(0x1c9)]=W,Object[_0x15992b(0x233)](exports,_0x15992b(0x22e),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x15992b(0x233)](exports,_0x15992b(0x2a7),{'enumerable':!0x0,'get':function(){return $;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x243ccf=_0x4312;(function(_0x4361e8,_0x19f28c){const _0x397fed=_0x4312,_0x490b6f=_0x4361e8();while(!![]){try{const _0x519574=-parseInt(_0x397fed(0x16b))/0x1+parseInt(_0x397fed(0x15b))/0x2+-parseInt(_0x397fed(0x127))/0x3+-parseInt(_0x397fed(0xd9))/0x4*(-parseInt(_0x397fed(0x16d))/0x5)+parseInt(_0x397fed(0x17d))/0x6+parseInt(_0x397fed(0x119))/0x7*(-parseInt(_0x397fed(0x16a))/0x8)+parseInt(_0x397fed(0x171))/0x9;if(_0x519574===_0x19f28c)break;else _0x490b6f['push'](_0x490b6f['shift']());}catch(_0x343ca5){_0x490b6f['push'](_0x490b6f['shift']());}}}(_0xa6ad,0x43304));function _0x4312(_0x4570bf,_0x2bf0ae){_0x4570bf=_0x4570bf-0xc0;const _0xa6ad6=_0xa6ad();let _0x4312f2=_0xa6ad6[_0x4570bf];return _0x4312f2;}import{CommandType as _0x19c209,DependentOn as _0x1b35d9,Disposable as _0x56b781,DisposableCollection as _0x16a15f,IAuthzIoService as _0x2a6fc8,ICommandService as _0x2950a0,IConfigService as _0x88d7b9,IPermissionService as _0xabeabb,IUniverInstanceService as _0x564820,Inject as _0x2a08b4,Injector as _0x215a8e,LocaleService as _0x587fa0,Plugin as _0x25956b,RxDisposable as _0x531dc7,ThemeService as _0x537b2f,Univer as _0x597837,UniverInstanceType as _0xf2429e,Workbook as _0x1b4b80,merge as _0x32845e,toDisposable as _0x3ff83f}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0xd88977,RangeProtectionRuleModel as _0x96c5d3,SetWorksheetActivateCommand as _0x1a252d,UniverSheetsPlugin as _0x229c6e,WorkbookEditablePermission as _0x582020,WorkbookRecoverHistoryPermission as _0x28c852,WorkbookViewHistoryPermission as _0x55d453,WorksheetEditPermission as _0x5e198a,getSheetCommandTarget as _0x46712e}from'@univerjs/sheets';import{CollaborationEvent as _0x22e3de,RevertRevisionMutation as _0x377181,UniverCollaborationPlugin as _0x3a2dd8}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x30848d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x112339,CollaborationController as _0x1ac924,CollaborationStatus as _0x20abcb,DataLoaderService as _0x1cb31c,ILocalCacheService as _0x5c1847}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x2e09fa,HistoryModeStatus as _0x325997,UniverEditHistoryViewerMobilePlugin as _0x50eafa,UniverEditHistoryViewerPlugin as _0x3c5bc0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3f10cc,UniverLicensePlugin as _0x4635cb}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4547f8}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x4bd2ad}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x1738de}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x3f2809}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x14d349}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x50f95}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xde840f}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3183e5}from'@univerjs/data-validation';import{MessageType as _0x3ed100}from'@univerjs/design';import{UniverDocsPlugin as _0x15c8d9}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x35946a}from'@univerjs/docs-ui';import{IImageIoService as _0x1bda32,UniverDrawingPlugin as _0x2fd5e3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x24e1ef}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3fd7eb}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48739e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x54d2a0}from'@univerjs/network';import{IRemoteInstanceService as _0x177025,UniverRPCMainThreadPlugin as _0x3b8b6a}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x413776}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4695f1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2110ca}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x534673,UniverSheetsDataValidationUIPlugin as _0x3f106b}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1043fa}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2c80da}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x1c517a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x3d34fa}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x512067}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2b5539}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x2ea082}from'@univerjs/sheets-hyper-link';function _0xa6ad(){const _0x4eb1e7=['getUnhiddenWorksheets','status$','_initContainer','get','202134bVxFmS','permissionId','call','object','value','_selectionProtectionRuleModel','Error','0.20.0','getParam','toPrimitive','darkMode$','fromCollab','subscribe','_sidebarService','activeSheet$','forEach','disposeWithMe','_messageService','_pluginMap','values','createElement','event$','from','appendChild','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','top','getLocales','setLocale','getSheetBySheetId','_updateSubUnitFromURLParams','composePermission','SYNCED','next','CHANGESET_ACK','asObservable','getUnit','prototype','decorate','none','onCommandExecuted','style','historyUniver','historyPanelHidden','\x20has\x20been\x20registered.','triggerLoadVersions','dispose$','registerPlugin','getCurrentUnitOfType','height','string','_config','581350ADJLJZ','data','univer-container','urlChange$','_handleRevertAcknowledgement','setDarkMode','length','defineProperty','onSteady','_localeService','_commandService','map','show','version','left','878152qPPGXJ','322943zhSjPQ','some','11125ezHkCY','_init','@univerjs-pro/edit-history-loader','has','4160331JtSAGl','dataset','display','_permissionService','every','getCurrentLocale','status','getUnitId','[HistoryLoaderService]:\x20Plugin\x20','getAllPlugins','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','1064238WfBNVQ','historyPanelComponentKey','params','zIndex','exhaustSavingTask','_internalWebWorker','executeCommand','__getInjector','univer.operation.toggle-edit-history','loadUnit','_updateURLWithCurrentState','removeAll','historyUniver$','setTheme','getConfig','session','dispose','editHistory.panel.listFetchError','_menuManagerService','workerURL','unMountHistoryContent','mountHistoryContent','flat','add','_revertErrorTimer','_historyUniver$','_univerInstanceService','triggerCustomVersions','_initPlugins','getElementById','116oswmsI','_injector','univerContainerId','_dialogService','_disposableCollection','_configService','_collaborationController','getCollabEntity','HistoryIcon','_localCacheService','block','state$','setConfig','type','OPERATION','closeAll','clear','div','currentTheme$','Entered','getSheets','getActiveSheet','mutations','function','_initUniver','_setupSubUnitSync','editHistory.panel.reverting','edit-history-loader.config','revertRevision$','register','terminate','uComp','100%','UNIVER_SHEET','pipe','mergeMenu','Exited','Loading','disposeUnit','_urlService','UNIVER_CONTAINER_ID','menu','position','_dataLoaderService','_initListener','getSubunitRuleList','then','historyListServerUrl','BUTTON','_checkCanRevert','setParam','symbol','subunit','reload','_componentManager','UNIVER_UNKNOWN','onStarting','close','_themeService','default','history-container','absolute','getSheetId','packageName','21urmQJa','_historyManagerService','editHistory.panel.revertFailed','getOwnPropertyDescriptor','eventID','pluginName','unsubscribe','width','editHistory.info.initializing','location'];_0xa6ad=function(){return _0x4eb1e7;};return _0xa6ad();}import{UniverSheetsHyperLinkUIPlugin as _0x3027ab}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3e1fcb}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x4194b9}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4864b9,UniverSheetsUIPlugin as _0x4d5580,getCurrentRangeDisable$ as _0x2d08bc}from'@univerjs/sheets-ui';import{ComponentManager as _0x25a01f,IDialogService as _0x4cdca8,IMenuManagerService as _0x1b22c3,IMessageService as _0x53e474,ISidebarService as _0x3f28b5,MenuItemType as _0x5a8475,RibbonStartGroup as _0x2c4b0f,UniverMobileUIPlugin as _0x53a928,UniverUIPlugin as _0x577dbf,getMenuHiddenObservable as _0x13d426}from'@univerjs/ui';import{BehaviorSubject as _0x190d06,combineLatest as _0x1b6270,takeUntil as _0x25d598}from'rxjs';import{IURLService as _0x465855}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x4e8247}from'@univerjs/icons';import{UniverType as _0x510b10}from'@univerjs/protocol';const L=_0x243ccf(0xf4);Symbol(L);const R={};function z(_0x45e6e2){'@babel/helpers - typeof';const _0x2204e8=_0x243ccf;return z=typeof Symbol==_0x2204e8(0xf0)&&typeof Symbol['iterator']=='symbol'?function(_0x4bbc59){return typeof _0x4bbc59;}:function(_0x34b05d){const _0x53f816=_0x2204e8;return _0x34b05d&&typeof Symbol=='function'&&_0x34b05d['constructor']===Symbol&&_0x34b05d!==Symbol[_0x53f816(0x14c)]?_0x53f816(0x10c):typeof _0x34b05d;},z(_0x45e6e2);}function ot(_0x1729fb,_0x1a5d5b){const _0x429825=_0x243ccf;if(z(_0x1729fb)!=_0x429825(0x12a)||!_0x1729fb)return _0x1729fb;var _0x2b4c37=_0x1729fb[Symbol[_0x429825(0x130)]];if(_0x2b4c37!==void 0x0){var _0x243ddf=_0x2b4c37[_0x429825(0x129)](_0x1729fb,_0x1a5d5b||_0x429825(0x114));if(z(_0x243ddf)!='object')return _0x243ddf;throw TypeError(_0x429825(0x140));}return(_0x1a5d5b===_0x429825(0x159)?String:Number)(_0x1729fb);}function st(_0x4fc8d5){const _0x62f4e3=_0x243ccf;var _0xa175ff=ot(_0x4fc8d5,_0x62f4e3(0x159));return z(_0xa175ff)==_0x62f4e3(0x10c)?_0xa175ff:_0xa175ff+'';}function B(_0x5fd0d4,_0x271b3a,_0x1ac3ac){const _0x283b9f=_0x243ccf;return(_0x271b3a=st(_0x271b3a))in _0x5fd0d4?Object[_0x283b9f(0x162)](_0x5fd0d4,_0x271b3a,{'value':_0x1ac3ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5fd0d4[_0x271b3a]=_0x1ac3ac,_0x5fd0d4;}function V(_0x45c91c,_0x532f05){return function(_0x37d117,_0x5d3f1c){_0x532f05(_0x37d117,_0x5d3f1c,_0x45c91c);};}function H(_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d){const _0x43c0b6=_0x243ccf;var _0x586334=arguments[_0x43c0b6(0x161)],_0xd2a101=_0x586334<0x3?_0x4cb393:_0x562a8d===null?_0x562a8d=Object[_0x43c0b6(0x11c)](_0x4cb393,_0x39ec48):_0x562a8d,_0x5986f3;if(typeof Reflect==_0x43c0b6(0x12a)&&typeof Reflect[_0x43c0b6(0x14d)]==_0x43c0b6(0xf0))_0xd2a101=Reflect[_0x43c0b6(0x14d)](_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d);else{for(var _0x3a7bab=_0x22a57a[_0x43c0b6(0x161)]-0x1;_0x3a7bab>=0x0;_0x3a7bab--)(_0x5986f3=_0x22a57a[_0x3a7bab])&&(_0xd2a101=(_0x586334<0x3?_0x5986f3(_0xd2a101):_0x586334>0x3?_0x5986f3(_0x4cb393,_0x39ec48,_0xd2a101):_0x5986f3(_0x4cb393,_0x39ec48))||_0xd2a101);}return _0x586334>0x3&&_0xd2a101&&Object[_0x43c0b6(0x162)](_0x4cb393,_0x39ec48,_0xd2a101),_0xd2a101;}const U=_0x243ccf(0x101),W='univer-history-container';let G=class extends _0x56b781{constructor(_0x417fc9,_0x5c5e02,_0x3ff731,_0x33b5b0,_0x438c8a,_0x35ff2e,_0x5d4abb,_0x19ea4b,_0x165d23,_0x4e08ac){const _0x58ee91=_0x243ccf;super(),this[_0x58ee91(0x164)]=_0x417fc9,this['_univerInstanceService']=_0x5c5e02,this['_configService']=_0x3ff731,this[_0x58ee91(0x165)]=_0x33b5b0,this[_0x58ee91(0x138)]=_0x438c8a,this[_0x58ee91(0x174)]=_0x35ff2e,this['_selectionProtectionRuleModel']=_0x5d4abb,this[_0x58ee91(0xdc)]=_0x19ea4b,this[_0x58ee91(0x134)]=_0x165d23,this[_0x58ee91(0x113)]=_0x4e08ac,B(this,_0x58ee91(0xd4),new _0x190d06(null)),B(this,_0x58ee91(0xc7),this[_0x58ee91(0xd4)][_0x58ee91(0x14a)]()),B(this,'_disposableCollection',new _0x16a15f()),B(this,_0x58ee91(0x139),new Map()),B(this,_0x58ee91(0xc0),null),this[_0x58ee91(0x16e)]();}get[_0x243ccf(0x151)](){return this['_historyUniver$']['value'];}['_init'](){const _0x3eeb13=_0x243ccf;this[_0x3eeb13(0x125)](),this[_0x3eeb13(0xd7)]();}[_0x243ccf(0x125)](){const _0x21aa50=_0x243ccf;var _0x326ded;let _0x20cfa=(_0x326ded=this[_0x21aa50(0xde)][_0x21aa50(0xc9)]('UNIVER_CONTAINER_ID'))==null?'univer-container':_0x326ded,_0x9b6225=document['getElementById'](_0x20cfa);if(!_0x9b6225)return;let _0x489061=document[_0x21aa50(0x13b)](_0x21aa50(0xea));_0x489061['id']=W,_0x489061[_0x21aa50(0x172)][_0x21aa50(0xf8)]=_0x21aa50(0x115),_0x489061[_0x21aa50(0x150)]['position']='absolute',_0x489061['style'][_0x21aa50(0x141)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x169)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x120)]='100%',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x158)]='100%',_0x489061[_0x21aa50(0x150)]['zIndex']='49',_0x489061['style'][_0x21aa50(0x173)]=_0x21aa50(0x14e),_0x9b6225[_0x21aa50(0x13e)](_0x489061);}[_0x243ccf(0xd7)](){const _0xc4c06f=_0x243ccf;[[_0x48739e],[_0x577dbf,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4d5580],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x3d34fa],[_0x413776],[_0x4695f1],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x3f106b],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]]['forEach'](([_0x1084b8,_0x3151b3])=>this[_0xc4c06f(0x156)](_0x1084b8,_0x3151b3));}['dispose'](){const _0x7cbe86=_0x243ccf;super['dispose'](),this[_0x7cbe86(0xcf)](),this['_pluginMap']['clear']();}[_0x243ccf(0x156)](_0x10bf8d,_0x577393,_0xfb619e){const _0x1647f2=_0x243ccf;if(this['_pluginMap'][_0x1647f2(0x170)](_0x10bf8d[_0x1647f2(0x11e)])&&!_0xfb619e)throw Error(_0x1647f2(0x179)+_0x10bf8d[_0x1647f2(0x11e)]+_0x1647f2(0x153));this[_0x1647f2(0x139)]['set'](_0x10bf8d['pluginName'],[_0x10bf8d,_0x577393]);}[_0x243ccf(0x17a)](){const _0x52d762=_0x243ccf;return Array[_0x52d762(0x13d)](this[_0x52d762(0x139)][_0x52d762(0x13a)]());}['mountHistoryContent'](_0x779098,_0x1aa86a){const _0x4fab1f=_0x243ccf;let _0x328f13=document[_0x4fab1f(0xd8)](W);_0x328f13&&(_0x328f13[_0x4fab1f(0x150)][_0x4fab1f(0x173)]=_0x4fab1f(0xe3),this[_0x4fab1f(0xf1)](_0x779098,W,_0x1aa86a));}['unMountHistoryContent'](){const _0x1e519e=_0x243ccf;var _0xb2ff48;this['_disposableCollection']['dispose'](),(_0xb2ff48=this[_0x1e519e(0x151)])==null||_0xb2ff48[_0x1e519e(0xcb)](),this[_0x1e519e(0xd4)][_0x1e519e(0x148)](null);let _0x2aa2eb=document[_0x1e519e(0xd8)](W);_0x2aa2eb&&(_0x2aa2eb[_0x1e519e(0x150)][_0x1e519e(0x173)]=_0x1e519e(0x14e),this['_internalWebWorker']&&(this['_internalWebWorker'][_0x1e519e(0xf7)](),this['_internalWebWorker']=null));}[_0x243ccf(0xf1)](_0x5f408d,_0x522cb9,_0x587617){const _0x2f9264=_0x243ccf;var _0x1fe2a6,_0x323ddb,_0x316774,_0x3edad0,_0x578637;if(this[_0x2f9264(0x151)])return;let _0x9009c3=new _0x597837({'locales':{[this['_localeService'][_0x2f9264(0x176)]()]:this['_localeService']['getLocales']()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x140c82=_0x9009c3[_0x2f9264(0xc2)]();this['disposeWithMe'](this['_themeService'][_0x2f9264(0x131)]['subscribe'](_0x30b1e2=>{const _0x34d817=_0x2f9264;_0x140c82[_0x34d817(0x126)](_0x537b2f)[_0x34d817(0x160)](_0x30b1e2);})),this[_0x2f9264(0x137)](this[_0x2f9264(0x113)][_0x2f9264(0xeb)][_0x2f9264(0x133)](_0x3fef4a=>{const _0x2ed726=_0x2f9264;_0x140c82['get'](_0x537b2f)[_0x2ed726(0xc8)](_0x3fef4a);})),_0x140c82['get'](_0x587fa0)[_0x2f9264(0x143)](this[_0x2f9264(0x164)][_0x2f9264(0x176)]()),_0x140c82[_0x2f9264(0x126)](_0x88d7b9)['setConfig'](_0x112339,this['_configService'][_0x2f9264(0xc9)](_0x112339));let _0x84b9b=this[_0x2f9264(0xde)]['getConfig'](_0x3f10cc);_0x84b9b&&_0x9009c3[_0x2f9264(0x156)](_0x4635cb,{'license':_0x84b9b['ls']});let _0x8c2325=(_0x1fe2a6=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x1fe2a6[_0x2f9264(0xce)],_0x526ff9=!!_0x8c2325;_0x526ff9&&(this[_0x2f9264(0xc0)]=_0x8c2325 instanceof Worker?_0x8c2325:null,_0x9009c3[_0x2f9264(0x156)](_0x3b8b6a,{'workerURL':_0x8c2325})),this[_0x2f9264(0x139)][_0x2f9264(0x136)](([_0x2aa22e,_0x435e9e])=>{const _0xa1fc3e=_0x2f9264;_0x9009c3[_0xa1fc3e(0x156)](_0x2aa22e,_0x435e9e);}),_0x9009c3[_0x2f9264(0x156)](_0x3c5bc0,{'historyListServerUrl':(_0x323ddb=this['_configService'][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x323ddb['historyListServerUrl'],'historyPanelComponentKey':(_0x316774=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x316774[_0x2f9264(0x17e)],'historyPanelHidden':(_0x3edad0=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3edad0[_0x2f9264(0x152)],'historyAIassistantEnabled':(_0x578637=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x578637['historyAIassistantEnabled']}),_0x140c82['invoke'](_0x3fc5d5=>{this['_initListener'](_0x3fc5d5,_0x5f408d);}),this[_0x2f9264(0xd4)][_0x2f9264(0x148)](_0x9009c3);let _0x4ccca4=_0x140c82['get'](_0x2e09fa),_0x1e46e2=this[_0x2f9264(0x10a)](_0x5f408d),_0x12e780=()=>{const _0x43a28e=_0x2f9264;_0x587617?_0x4ccca4[_0x43a28e(0xd6)](_0x5f408d,_0x522cb9,_0x1e46e2,_0x587617):_0x4ccca4[_0x43a28e(0x154)](_0x5f408d,_0x522cb9,_0x1e46e2);};if(this['_messageService']['show']({'content':this[_0x2f9264(0x164)]['t'](_0x2f9264(0x121)),'type':_0x3ed100['Loading']}),_0x526ff9)try{_0x140c82['get'](_0x177025)['whenReady']()[_0x2f9264(0x107)](()=>{_0x12e780();});}catch{_0x12e780();}else _0x12e780();}[_0x243ccf(0x105)](_0x34810e,_0x1ca791){const _0x24195c=_0x243ccf;let _0x5c5575=_0x34810e['get'](_0x2e09fa);this['_disposableCollection']['add'](_0x5c5575['status$'][_0x24195c(0x133)](_0x14fc31=>{const _0x46e7b4=_0x24195c;switch(_0x14fc31){case _0x325997[_0x46e7b4(0xec)]:this[_0x46e7b4(0xdc)][_0x46e7b4(0xe8)](),this[_0x46e7b4(0x134)][_0x46e7b4(0x112)]();break;case _0x325997[_0x46e7b4(0xfd)]:this[_0x46e7b4(0x165)][_0x46e7b4(0xc1)](q['id']),this[_0x46e7b4(0xcf)]();break;case _0x325997[_0x46e7b4(0x12d)]:this[_0x46e7b4(0xcf)](),this[_0x46e7b4(0x138)][_0x46e7b4(0x167)]({'content':this[_0x46e7b4(0x164)]['t'](_0x46e7b4(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x24195c(0xdd)][_0x24195c(0xd2)](_0x5c5575[_0x24195c(0xf5)]['subscribe'](async _0x3ea2ff=>{_0x3ea2ff&&this['_commandService']['executeCommand'](_0x377181['id'],{'unitId':_0x1ca791,'revision':_0x3ea2ff});}));}[_0x243ccf(0x10a)](_0x54fd14){const _0x5661bd=_0x243ccf;let _0x1d277e=this['_univerInstanceService'][_0x5661bd(0x14b)](_0x54fd14)[_0x5661bd(0xed)]()[_0x5661bd(0x166)](_0x510c26=>_0x510c26[_0x5661bd(0x117)]()),_0x2c78ed=new _0x582020(_0x54fd14)['id'],_0x5dac24=_0x1d277e[_0x5661bd(0x166)](_0x1d580f=>new _0x5e198a(_0x54fd14,_0x1d580f)['id']),_0x1918a1=_0x1d277e[_0x5661bd(0x166)](_0x4c651f=>this[_0x5661bd(0x12c)][_0x5661bd(0x106)](_0x54fd14,_0x4c651f)['map'](_0x428730=>new _0xd88977(_0x54fd14,_0x4c651f,_0x428730[_0x5661bd(0x128)])['id']))['flat'](),_0x8548ff=new _0x28c852(_0x54fd14)['id'];return this[_0x5661bd(0x174)][_0x5661bd(0x146)]([_0x2c78ed,..._0x5dac24,..._0x1918a1,_0x8548ff])['every'](_0x1c2252=>!!_0x1c2252['value']);}};G=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],G);const K={'id':_0x243ccf(0xc3),'type':_0x19c209[_0x243ccf(0xe7)],'handler':_0xfb236=>{const _0x562aca=_0x243ccf;let _0xd88dee=_0xfb236[_0x562aca(0x126)](G),{unitId:_0x4734b5}=_0x46712e(_0xfb236['get'](_0x564820))||{};return _0x4734b5?(_0xd88dee[_0x562aca(0xd0)](_0x4734b5),!0x0):!0x1;}},q={'id':'univer.operation.exit-edit-history','type':_0x19c209[_0x243ccf(0xe7)],'handler':()=>!0x0};var ct=_0x243ccf(0x16f),lt=_0x243ccf(0x12e);function ut(_0x5f56fb){const _0x3da472=_0x243ccf;return{'id':K['id'],'type':_0x5a8475[_0x3da472(0x109)],'icon':_0x3da472(0xe1),'tooltip':'editHistory.panel.title','hidden$':_0x13d426(_0x5f56fb,_0xf2429e['UNIVER_SHEET']),'disabled$':_0x2d08bc(_0x5f56fb,{'workbookTypes':[_0x582020,_0x55d453],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x2c4b0f['OTHERS']]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x531dc7{constructor(_0x531dab,_0x3bc484,_0x267cde,_0x1cc890,_0x12b7ac,_0xe5a96,_0x30748e,_0x4cad27,_0x3f724c,_0xec8a72,_0x4e6dd5){const _0x4ebd5a=_0x243ccf;super(),this[_0x4ebd5a(0x165)]=_0x531dab,this[_0x4ebd5a(0xcd)]=_0x3bc484,this['_componentManager']=_0x267cde,this['_historyManagerService']=_0x1cc890,this[_0x4ebd5a(0x164)]=_0x12b7ac,this[_0x4ebd5a(0x138)]=_0xe5a96,this[_0x4ebd5a(0xdf)]=_0x30748e,this[_0x4ebd5a(0xe2)]=_0x4cad27,this[_0x4ebd5a(0x104)]=_0x3f724c,this['_univerInstanceService']=_0xec8a72,this['_urlService']=_0x4e6dd5,B(this,'_revertErrorTimer',null),this[_0x4ebd5a(0x16e)]();}[_0x243ccf(0x16e)](){const _0x51c7a3=_0x243ccf;[K,q]['forEach'](_0x359081=>this[_0x51c7a3(0x137)](_0x3ff83f(this[_0x51c7a3(0x165)]['registerCommand'](_0x359081)))),this[_0x51c7a3(0x137)](this[_0x51c7a3(0x10f)][_0x51c7a3(0xf6)](_0x51c7a3(0xe1),_0x4e8247)),this[_0x51c7a3(0xcd)][_0x51c7a3(0xfc)](dt),this['disposeWithMe'](this[_0x51c7a3(0x165)][_0x51c7a3(0x14f)](async(_0x52efc4,_0x5a5d02)=>{const _0x4ba5d6=_0x51c7a3;if(_0x52efc4['id']===_0x377181['id']){let {unitId:_0x34c088}=_0x52efc4[_0x4ba5d6(0x17f)];this[_0x4ba5d6(0x138)][_0x4ba5d6(0x167)]({'content':this[_0x4ba5d6(0x164)]['t'](_0x4ba5d6(0xf3)),'type':_0x3ed100[_0x4ba5d6(0xfe)],'duration':0x1388});let _0x50426c=this[_0x4ba5d6(0xdf)]['getCollabEntity'](_0x34c088);_0x5a5d02!=null&&_0x5a5d02['fromCollab']?this[_0x4ba5d6(0x15f)](_0x50426c,async()=>(setTimeout(()=>window[_0x4ba5d6(0x122)][_0x4ba5d6(0x10e)]()),!0x0),!0x0):this[_0x4ba5d6(0x15f)](_0x50426c,async()=>{const _0x1ef363=_0x4ba5d6;let _0x58f189=this['_univerInstanceService'][_0x1ef363(0x157)](_0x510b10[_0x1ef363(0xfa)]),_0x54b2b4=_0x58f189==null?void 0x0:_0x58f189[_0x1ef363(0xee)]();if(!_0x54b2b4)return!0x1;this[_0x1ef363(0xd5)][_0x1ef363(0xff)](_0x34c088);let _0x111dbc=await this[_0x1ef363(0x104)][_0x1ef363(0xc4)](_0x34c088,_0x510b10[_0x1ef363(0xfa)]);return _0x111dbc&&_0x111dbc instanceof _0x1b4b80?(await this[_0x1ef363(0xf2)](_0x111dbc,_0x54b2b4['getSheetId']()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x2a7060,_0x59c45d,_0x5aa092=!0x1){const _0x581fe7=_0x243ccf;let _0x51a454=_0x1b6270([_0x2a7060[_0x581fe7(0xca)][_0x581fe7(0x13c)],_0x2a7060[_0x581fe7(0xe4)]])['subscribe'](async([_0x57a8f7,_0x213a50])=>{const _0x1ac2ea=_0x581fe7;if(_0x57a8f7['eventID']===_0x22e3de[_0x1ac2ea(0x149)]&&(_0x213a50==null?void 0x0:_0x213a50[_0x1ac2ea(0x177)])===_0x20abcb[_0x1ac2ea(0x147)]&&_0x57a8f7[_0x1ac2ea(0x15c)][_0x1ac2ea(0xef)][_0x1ac2ea(0x16c)](_0x4cc6c8=>_0x4cc6c8['id']===_0x377181['id'])&&await _0x59c45d()){var _0x3461c6;this[_0x1ac2ea(0x11a)][_0x1ac2ea(0xcf)](),_0x51a454[_0x1ac2ea(0x11f)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x3461c6=this[_0x1ac2ea(0xe2)])==null?void 0x0:_0x3461c6[_0x1ac2ea(0x181)]()),this['_messageService'][_0x1ac2ea(0xc6)]();}});_0x5aa092&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x549f45=_0x581fe7;_0x51a454[_0x549f45(0x11f)](),this[_0x549f45(0x138)][_0x549f45(0x167)]({'content':this[_0x549f45(0x164)]['t'](_0x549f45(0x11b)),'type':_0x3ed100[_0x549f45(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x5f5c47,_0x43d2c8){const _0x497793=_0x243ccf;await this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8),_0x5f5c47[_0x497793(0x135)]['pipe'](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](_0x287be7=>{const _0x1cd965=_0x497793;_0x287be7&&this[_0x1cd965(0xc5)](_0x287be7);}),this[_0x497793(0x100)][_0x497793(0x15e)][_0x497793(0xfb)](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](()=>this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8));}[_0x243ccf(0xc5)](_0x15eed2,_0x37a1f4=!0x1){const _0x35b1e0=_0x243ccf;let _0x12c401=this[_0x35b1e0(0x100)][_0x35b1e0(0x12f)](_0x35b1e0(0x10d));_0x15eed2[_0x35b1e0(0x117)]()!==_0x12c401&&this['_urlService'][_0x35b1e0(0x10b)](_0x35b1e0(0x10d),_0x15eed2[_0x35b1e0(0x117)](),_0x37a1f4);}async['_updateSubUnitFromURLParams'](_0x567f0a,_0x1f05e){const _0x5780c1=_0x243ccf;var _0x2c9ed8;if(!_0x1f05e||!_0x567f0a['getSheetBySheetId'](_0x1f05e)){let _0x4b0ed8=_0x567f0a[_0x5780c1(0x123)]()[0x0],_0x50527f=_0x567f0a[_0x5780c1(0x144)](_0x4b0ed8);if(!_0x50527f)return;this[_0x5780c1(0xc5)](_0x50527f,!0x0),await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x4b0ed8});return;}((_0x2c9ed8=_0x567f0a[_0x5780c1(0xee)]())==null?void 0x0:_0x2c9ed8[_0x5780c1(0x117)]())!==_0x1f05e&&await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x1f05e});}};J=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],J);const Y='univer-history-container-mobile';let X=class extends _0x56b781{constructor(_0x2eff19,_0x48135e,_0x14a30d,_0x4cc662,_0x4d24d9,_0x16b8ac,_0x55a70c,_0x856df1,_0xa2bb99,_0x254bcb){const _0x24c2c5=_0x243ccf;super(),this[_0x24c2c5(0x164)]=_0x2eff19,this[_0x24c2c5(0xd5)]=_0x48135e,this['_configService']=_0x14a30d,this[_0x24c2c5(0x165)]=_0x4cc662,this[_0x24c2c5(0x138)]=_0x4d24d9,this['_permissionService']=_0x16b8ac,this[_0x24c2c5(0x12c)]=_0x55a70c,this[_0x24c2c5(0xdc)]=_0x856df1,this[_0x24c2c5(0x134)]=_0xa2bb99,this['_themeService']=_0x254bcb,B(this,_0x24c2c5(0xd4),new _0x190d06(null)),B(this,_0x24c2c5(0xc7),this['_historyUniver$'][_0x24c2c5(0x14a)]()),B(this,_0x24c2c5(0xdd),new _0x16a15f()),B(this,_0x24c2c5(0x139),new Map()),B(this,'_internalWebWorker',null),this[_0x24c2c5(0x16e)]();}get[_0x243ccf(0x151)](){const _0x485df=_0x243ccf;return this[_0x485df(0xd4)]['value'];}[_0x243ccf(0x16e)](){const _0x9d5d6a=_0x243ccf;this[_0x9d5d6a(0x125)](),this[_0x9d5d6a(0xd7)]();}['_initContainer'](){const _0x270b24=_0x243ccf;var _0xc8a5b;let _0x5dd605=(_0xc8a5b=this[_0x270b24(0xde)]['getConfig'](_0x270b24(0x101)))==null?_0x270b24(0x15d):_0xc8a5b,_0x189a8a=document[_0x270b24(0xd8)](_0x5dd605);if(!_0x189a8a)return;let _0x1212c8=document['createElement']('div');_0x1212c8['id']=Y,_0x1212c8[_0x270b24(0x172)][_0x270b24(0xf8)]=_0x270b24(0x115),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x103)]=_0x270b24(0x116),_0x1212c8['style']['top']='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x169)]='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x120)]='100%',_0x1212c8['style'][_0x270b24(0x158)]=_0x270b24(0xf9),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x180)]='49',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x173)]='none',_0x189a8a[_0x270b24(0x13e)](_0x1212c8);}[_0x243ccf(0xd7)](){const _0x2d47f2=_0x243ccf;[[_0x48739e],[_0x53a928,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4864b9],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x413776],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x534673],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]][_0x2d47f2(0x136)](([_0x3ae166,_0x233d68])=>this[_0x2d47f2(0x156)](_0x3ae166,_0x233d68));}[_0x243ccf(0xcb)](){const _0x54b05d=_0x243ccf;super[_0x54b05d(0xcb)](),this[_0x54b05d(0xcf)](),this[_0x54b05d(0x139)][_0x54b05d(0xe9)]();}['registerPlugin'](_0x5be1c4,_0x14a440,_0x5e7aa6){const _0xbc8da9=_0x243ccf;if(this[_0xbc8da9(0x139)][_0xbc8da9(0x170)](_0x5be1c4[_0xbc8da9(0x11e)])&&!_0x5e7aa6)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5be1c4[_0xbc8da9(0x11e)]+_0xbc8da9(0x153));this[_0xbc8da9(0x139)][_0xbc8da9(0x13f)](_0x5be1c4[_0xbc8da9(0x11e)],[_0x5be1c4,_0x14a440]);}['getAllPlugins'](){const _0x17f442=_0x243ccf;return Array[_0x17f442(0x13d)](this[_0x17f442(0x139)][_0x17f442(0x13a)]());}[_0x243ccf(0xd0)](_0x358e22,_0x469c1d){const _0x59b9b4=_0x243ccf;let _0x503d60=document[_0x59b9b4(0xd8)](Y);_0x503d60&&(_0x503d60[_0x59b9b4(0x150)][_0x59b9b4(0x173)]=_0x59b9b4(0xe3),this[_0x59b9b4(0xf1)](_0x358e22,Y,_0x469c1d));}[_0x243ccf(0xcf)](){const _0x293e8f=_0x243ccf;var _0x206e66;this['_disposableCollection'][_0x293e8f(0xcb)](),(_0x206e66=this['historyUniver'])==null||_0x206e66[_0x293e8f(0xcb)](),this['_historyUniver$']['next'](null);let _0x10d11a=document[_0x293e8f(0xd8)](Y);_0x10d11a&&(_0x10d11a[_0x293e8f(0x150)][_0x293e8f(0x173)]=_0x293e8f(0x14e),this['_internalWebWorker']&&(this[_0x293e8f(0xc0)][_0x293e8f(0xf7)](),this[_0x293e8f(0xc0)]=null));}['_initUniver'](_0x17b31e,_0x3ed51d,_0x391b34){const _0x19b741=_0x243ccf;var _0x4815fb,_0x2f26cc,_0x98afef,_0x45d987;if(this['historyUniver'])return;let _0x56d4e4=new _0x597837({'locales':{[this[_0x19b741(0x164)][_0x19b741(0x176)]()]:this[_0x19b741(0x164)][_0x19b741(0x142)]()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x5a6c85=_0x56d4e4[_0x19b741(0xc2)]();this[_0x19b741(0x137)](this[_0x19b741(0x113)][_0x19b741(0x131)]['subscribe'](_0x5b758f=>{const _0x1f8530=_0x19b741;_0x5a6c85[_0x1f8530(0x126)](_0x537b2f)[_0x1f8530(0x160)](_0x5b758f);})),this[_0x19b741(0x137)](this['_themeService'][_0x19b741(0xeb)][_0x19b741(0x133)](_0x17f556=>{const _0x4bdec9=_0x19b741;_0x5a6c85[_0x4bdec9(0x126)](_0x537b2f)['setTheme'](_0x17f556);})),_0x5a6c85[_0x19b741(0x126)](_0x587fa0)[_0x19b741(0x143)](this[_0x19b741(0x164)]['getCurrentLocale']()),_0x5a6c85['get'](_0x88d7b9)[_0x19b741(0xe5)](_0x112339,this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x112339));let _0x4234c2=this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x3f10cc);_0x4234c2&&_0x56d4e4[_0x19b741(0x156)](_0x4635cb,{'license':_0x4234c2['ls']});let _0x29f4b2=(_0x4815fb=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x4815fb[_0x19b741(0xce)],_0x1de1b1=!!_0x29f4b2;_0x1de1b1&&(this[_0x19b741(0xc0)]=_0x29f4b2 instanceof Worker?_0x29f4b2:null,_0x56d4e4[_0x19b741(0x156)](_0x3b8b6a,{'workerURL':_0x29f4b2})),this[_0x19b741(0x139)][_0x19b741(0x136)](([_0x4743c2,_0x5cdb92])=>{const _0x55f18f=_0x19b741;_0x56d4e4[_0x55f18f(0x156)](_0x4743c2,_0x5cdb92);}),_0x56d4e4['registerPlugin'](_0x50eafa,{'historyListServerUrl':(_0x2f26cc=this[_0x19b741(0xde)][_0x19b741(0xc9)]('edit-history-loader.config'))==null?void 0x0:_0x2f26cc[_0x19b741(0x108)],'historyPanelComponentKey':(_0x98afef=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x98afef[_0x19b741(0x17e)],'historyPanelHidden':(_0x45d987=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x45d987[_0x19b741(0x152)]}),_0x5a6c85[_0x19b741(0x17c)](_0x2785da=>{const _0x215e7c=_0x19b741;this[_0x215e7c(0x105)](_0x2785da,_0x17b31e);}),this[_0x19b741(0xd4)][_0x19b741(0x148)](_0x56d4e4);let _0x28bc3b=_0x5a6c85['get'](_0x2e09fa),_0xb3c34=this[_0x19b741(0x10a)](_0x17b31e),_0xd78343=()=>{const _0x545775=_0x19b741;_0x391b34?_0x28bc3b['triggerCustomVersions'](_0x17b31e,_0x3ed51d,_0xb3c34,_0x391b34):_0x28bc3b[_0x545775(0x154)](_0x17b31e,_0x3ed51d,_0xb3c34);};if(this[_0x19b741(0x138)][_0x19b741(0x167)]({'content':this[_0x19b741(0x164)]['t']('editHistory.info.initializing'),'type':_0x3ed100[_0x19b741(0xfe)]}),_0x1de1b1)try{_0x5a6c85[_0x19b741(0x126)](_0x177025)['whenReady']()['then'](()=>{_0xd78343();});}catch{_0xd78343();}else _0xd78343();}[_0x243ccf(0x105)](_0x1464bf,_0x162832){const _0x548f88=_0x243ccf;let _0x1e7fff=_0x1464bf[_0x548f88(0x126)](_0x2e09fa);this[_0x548f88(0xdd)]['add'](_0x1e7fff[_0x548f88(0x124)][_0x548f88(0x133)](_0x42bda0=>{const _0x521580=_0x548f88;switch(_0x42bda0){case _0x325997[_0x521580(0xec)]:this[_0x521580(0xdc)][_0x521580(0xe8)](),this[_0x521580(0x134)][_0x521580(0x112)]();break;case _0x325997[_0x521580(0xfd)]:this[_0x521580(0x165)][_0x521580(0xc1)](q['id']),this[_0x521580(0xcf)]();break;case _0x325997[_0x521580(0x12d)]:this[_0x521580(0xcf)](),this['_messageService'][_0x521580(0x167)]({'content':this[_0x521580(0x164)]['t'](_0x521580(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x548f88(0xdd)][_0x548f88(0xd2)](_0x1e7fff[_0x548f88(0xf5)]['subscribe'](async _0x328881=>{const _0x4c7a00=_0x548f88;_0x328881&&this[_0x4c7a00(0x165)][_0x4c7a00(0xc1)](_0x377181['id'],{'unitId':_0x162832,'revision':_0x328881});}));}[_0x243ccf(0x10a)](_0x529d36){const _0x58197e=_0x243ccf;let _0x77743e=this[_0x58197e(0xd5)][_0x58197e(0x14b)](_0x529d36)[_0x58197e(0xed)]()[_0x58197e(0x166)](_0x2117de=>_0x2117de['getSheetId']()),_0x27fb52=new _0x582020(_0x529d36)['id'],_0x35bd67=_0x77743e[_0x58197e(0x166)](_0xcfb21a=>new _0x5e198a(_0x529d36,_0xcfb21a)['id']),_0x9e0380=_0x77743e[_0x58197e(0x166)](_0x4c2793=>this[_0x58197e(0x12c)][_0x58197e(0x106)](_0x529d36,_0x4c2793)['map'](_0x3b40ed=>new _0xd88977(_0x529d36,_0x4c2793,_0x3b40ed[_0x58197e(0x128)])['id']))[_0x58197e(0xd1)](),_0x5e99a1=new _0x28c852(_0x529d36)['id'];return this[_0x58197e(0x174)][_0x58197e(0x146)]([_0x27fb52,..._0x35bd67,..._0x9e0380,_0x5e99a1])[_0x58197e(0x175)](_0x44af8c=>!!_0x44af8c[_0x58197e(0x12b)]);}};X=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],X);let Z=class extends _0x25956b{constructor(_0x53b142=R,_0x7b261b,_0x158011){const _0x3738c5=_0x243ccf;super(),this[_0x3738c5(0x15a)]=_0x53b142,this['_injector']=_0x7b261b,this[_0x3738c5(0xde)]=_0x158011;let {menu:_0x255d26,..._0x31e77b}=_0x32845e({},R,this[_0x3738c5(0x15a)]);_0x255d26&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)](_0x3738c5(0x102),_0x255d26,{'merge':!0x0}),this['_configService']['setConfig'](L,_0x31e77b),this['_config']['univerContainerId']&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)]('UNIVER_CONTAINER_ID',this['_config'][_0x3738c5(0xdb)]);}[_0x243ccf(0x111)](){const _0x42a4c8=_0x243ccf;[[G,{'useClass':X}],[J]]['forEach'](_0x301bc9=>this[_0x42a4c8(0xda)]['add'](_0x301bc9));}['onSteady'](){const _0x2a5b77=_0x243ccf;this[_0x2a5b77(0xda)][_0x2a5b77(0x126)](J);}};B(Z,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B(Z,_0x243ccf(0x11e),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x243ccf(0x118),ct),B(Z,_0x243ccf(0x168),lt),Z=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],Z);let Q=class extends _0x531dc7{constructor(_0x335fe6,_0x167d74,_0x45218c,_0xd8e97b,_0x58ba73,_0x5a03ac,_0x1a80fa,_0x1ddf6b,_0xc5fc23,_0x1b0b3f,_0x46074a){const _0xceca1e=_0x243ccf;super(),this[_0xceca1e(0x165)]=_0x335fe6,this[_0xceca1e(0xcd)]=_0x167d74,this[_0xceca1e(0x10f)]=_0x45218c,this[_0xceca1e(0x11a)]=_0xd8e97b,this['_localeService']=_0x58ba73,this[_0xceca1e(0x138)]=_0x5a03ac,this[_0xceca1e(0xdf)]=_0x1a80fa,this[_0xceca1e(0xe2)]=_0x1ddf6b,this[_0xceca1e(0x104)]=_0xc5fc23,this[_0xceca1e(0xd5)]=_0x1b0b3f,this[_0xceca1e(0x100)]=_0x46074a,B(this,_0xceca1e(0xd3),null),this[_0xceca1e(0x16e)]();}['_init'](){const _0xe7fb36=_0x243ccf;[K,q][_0xe7fb36(0x136)](_0x519e40=>this[_0xe7fb36(0x137)](_0x3ff83f(this['_commandService']['registerCommand'](_0x519e40)))),this[_0xe7fb36(0x137)](this[_0xe7fb36(0x10f)][_0xe7fb36(0xf6)](_0xe7fb36(0xe1),_0x4e8247)),this['_menuManagerService'][_0xe7fb36(0xfc)](dt),this['disposeWithMe'](this[_0xe7fb36(0x165)][_0xe7fb36(0x14f)](async(_0x32857e,_0x7eaae1)=>{const _0x557dea=_0xe7fb36;if(_0x32857e['id']===_0x377181['id']){let {unitId:_0x3aafc0}=_0x32857e[_0x557dea(0x17f)];this[_0x557dea(0x138)][_0x557dea(0x167)]({'content':this[_0x557dea(0x164)]['t'](_0x557dea(0xf3)),'type':_0x3ed100[_0x557dea(0xfe)],'duration':0x1388});let _0x1d851d=this['_collaborationController'][_0x557dea(0xe0)](_0x3aafc0);_0x7eaae1!=null&&_0x7eaae1[_0x557dea(0x132)]?this['_handleRevertAcknowledgement'](_0x1d851d,async()=>(setTimeout(()=>window[_0x557dea(0x122)][_0x557dea(0x10e)]()),!0x0),!0x0):this[_0x557dea(0x15f)](_0x1d851d,async()=>{const _0x3ca242=_0x557dea;let _0x112035=this['_univerInstanceService']['getCurrentUnitOfType'](_0x510b10[_0x3ca242(0xfa)]),_0x45d17f=_0x112035==null?void 0x0:_0x112035[_0x3ca242(0xee)]();if(!_0x45d17f)return!0x1;this[_0x3ca242(0xd5)][_0x3ca242(0xff)](_0x3aafc0);let _0x2f27b9=await this[_0x3ca242(0x104)][_0x3ca242(0xc4)](_0x3aafc0,_0x510b10[_0x3ca242(0xfa)]);return _0x2f27b9&&_0x2f27b9 instanceof _0x1b4b80?(await this[_0x3ca242(0xf2)](_0x2f27b9,_0x45d17f[_0x3ca242(0x117)]()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x135a4f,_0x125674,_0x2c1a2a=!0x1){const _0x4c5c67=_0x243ccf;let _0x5b62c1=_0x1b6270([_0x135a4f['session']['event$'],_0x135a4f[_0x4c5c67(0xe4)]])[_0x4c5c67(0x133)](async([_0x1b3cf9,_0x906444])=>{const _0x28da2b=_0x4c5c67;if(_0x1b3cf9[_0x28da2b(0x11d)]===_0x22e3de[_0x28da2b(0x149)]&&(_0x906444==null?void 0x0:_0x906444[_0x28da2b(0x177)])===_0x20abcb[_0x28da2b(0x147)]&&_0x1b3cf9['data'][_0x28da2b(0xef)]['some'](_0x4abdd4=>_0x4abdd4['id']===_0x377181['id'])&&await _0x125674()){var _0x4546ca;this[_0x28da2b(0x11a)][_0x28da2b(0xcf)](),_0x5b62c1[_0x28da2b(0x11f)](),this[_0x28da2b(0xd3)]&&clearTimeout(this[_0x28da2b(0xd3)]),await((_0x4546ca=this[_0x28da2b(0xe2)])==null?void 0x0:_0x4546ca[_0x28da2b(0x181)]());}});_0x2c1a2a&&(this[_0x4c5c67(0xd3)]=setTimeout(()=>{const _0x4c5a05=_0x4c5c67;_0x5b62c1[_0x4c5a05(0x11f)](),this[_0x4c5a05(0x138)][_0x4c5a05(0x167)]({'content':this[_0x4c5a05(0x164)]['t'](_0x4c5a05(0x11b)),'type':_0x3ed100[_0x4c5a05(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x1203f2,_0x1b1036){const _0x51e0b4=_0x243ccf;await this[_0x51e0b4(0x145)](_0x1203f2,_0x1b1036),_0x1203f2['activeSheet$']['pipe'](_0x25d598(this['dispose$']))[_0x51e0b4(0x133)](_0xb1241e=>{const _0x178f6b=_0x51e0b4;_0xb1241e&&this[_0x178f6b(0xc5)](_0xb1241e);}),this[_0x51e0b4(0x100)][_0x51e0b4(0x15e)][_0x51e0b4(0xfb)](_0x25d598(this[_0x51e0b4(0x155)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1203f2,_0x1b1036));}[_0x243ccf(0xc5)](_0x21b3be,_0x39b53f=!0x1){const _0x1c89d7=_0x243ccf;let _0x7ca5ea=this[_0x1c89d7(0x100)][_0x1c89d7(0x12f)](_0x1c89d7(0x10d));_0x21b3be[_0x1c89d7(0x117)]()!==_0x7ca5ea&&this[_0x1c89d7(0x100)][_0x1c89d7(0x10b)](_0x1c89d7(0x10d),_0x21b3be[_0x1c89d7(0x117)](),_0x39b53f);}async[_0x243ccf(0x145)](_0x4f6fbc,_0x45af9a){const _0xd5b615=_0x243ccf;var _0x500f88;if(!_0x45af9a||!_0x4f6fbc[_0xd5b615(0x144)](_0x45af9a)){let _0x3ca466=_0x4f6fbc[_0xd5b615(0x123)]()[0x0],_0x34cecd=_0x4f6fbc['getSheetBySheetId'](_0x3ca466);if(!_0x34cecd)return;this[_0xd5b615(0xc5)](_0x34cecd,!0x0),await this[_0xd5b615(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x4f6fbc['getUnitId'](),'subUnitId':_0x3ca466});return;}((_0x500f88=_0x4f6fbc[_0xd5b615(0xee)]())==null?void 0x0:_0x500f88['getSheetId']())!==_0x45af9a&&await this[_0xd5b615(0x165)][_0xd5b615(0xc1)](_0x1a252d['id'],{'unitId':_0x4f6fbc[_0xd5b615(0x178)](),'subUnitId':_0x45af9a});}};Q=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],Q);let $=class extends _0x25956b{constructor(_0x2cb991=R,_0x578436,_0x3487a1){const _0x52f7f7=_0x243ccf;super(),this[_0x52f7f7(0x15a)]=_0x2cb991,this[_0x52f7f7(0xda)]=_0x578436,this['_configService']=_0x3487a1;let {menu:_0x5afac8,..._0x4dfe7f}=_0x32845e({},R,this[_0x52f7f7(0x15a)]);_0x5afac8&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](_0x52f7f7(0x102),_0x5afac8,{'merge':!0x0}),this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](L,_0x4dfe7f),this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](U,this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]);}['onStarting'](){const _0x41ab7d=_0x243ccf;[[G],[Q]][_0x41ab7d(0x136)](_0x1509d7=>this[_0x41ab7d(0xda)][_0x41ab7d(0xd2)](_0x1509d7));}[_0x243ccf(0x163)](){const _0x28de9a=_0x243ccf;this[_0x28de9a(0xda)]['get'](Q);}};B($,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B($,_0x243ccf(0x11e),_0x243ccf(0x17b)),B($,_0x243ccf(0x118),ct),B($,_0x243ccf(0x168),lt),$=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x257921=_0x19ba;(function(_0x301c74,_0x38e099){const _0x1ac701=_0x19ba,_0x10ea76=_0x301c74();while(!![]){try{const _0x3a95f7=-parseInt(_0x1ac701(0x223))/0x1+parseInt(_0x1ac701(0x28f))/0x2+parseInt(_0x1ac701(0x1fd))/0x3*(-parseInt(_0x1ac701(0x213))/0x4)+parseInt(_0x1ac701(0x233))/0x5+-parseInt(_0x1ac701(0x1f3))/0x6+parseInt(_0x1ac701(0x21f))/0x7+-parseInt(_0x1ac701(0x238))/0x8*(-parseInt(_0x1ac701(0x29d))/0x9);if(_0x3a95f7===_0x38e099)break;else _0x10ea76['push'](_0x10ea76['shift']());}catch(_0x14bed0){_0x10ea76['push'](_0x10ea76['shift']());}}}(_0x541a,0x90797));import{CommandType as _0x487ef2,DependentOn as _0x219475,Disposable as _0x8532c1,DisposableCollection as _0xc6dfe0,IAuthzIoService as _0x53d29b,ICommandService as _0x3b2fe9,IConfigService as _0x119b2,IPermissionService as _0x1c5768,IUniverInstanceService as _0x430938,Inject as _0x3d4214,Injector as _0x4f86b8,LocaleService as _0x316b33,Plugin as _0x30cf8f,RxDisposable as _0x3c2c30,ThemeService as _0x24cb5d,Univer as _0x481fbd,UniverInstanceType as _0x7184d6,Workbook as _0x26a77f,merge as _0x3bca78,toDisposable as _0x1ecd9a}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x540a05,RangeProtectionRuleModel as _0x333165,SetWorksheetActivateCommand as _0x4bdacf,UniverSheetsPlugin as _0x43ef5f,WorkbookEditablePermission as _0x4417ae,WorkbookRecoverHistoryPermission as _0x4b7b3a,WorkbookViewHistoryPermission as _0x2b5fc9,WorksheetEditPermission as _0x5e4e77,getSheetCommandTarget as _0x1932cf}from'@univerjs/sheets';import{CollaborationEvent as _0x5089a1,RevertRevisionMutation as _0x305fa9,UniverCollaborationPlugin as _0x180f1c}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1317a3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x464cfe,CollaborationController as _0x1e0d39,CollaborationStatus as _0x4aeda6,DataLoaderService as _0x5d6713,ILocalCacheService as _0x58623b}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x406ca6,HistoryModeStatus as _0x167a98,UniverEditHistoryViewerMobilePlugin as _0x1dd4cd,UniverEditHistoryViewerPlugin as _0x136f43}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x51215c,UniverLicensePlugin as _0x433b30}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x36d825}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xdcd56}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2231ca}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x2b6158}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x58425d}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x1259f5}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x12fa8b}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x21e9e3}from'@univerjs/data-validation';import{MessageType as _0x4345b3}from'@univerjs/design';import{UniverDocsPlugin as _0x2ff728}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x160fb4}from'@univerjs/docs-ui';import{IImageIoService as _0x17417a,UniverDrawingPlugin as _0x2a38b3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xcaf6d6}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x416a48}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x1304a6}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x31aea4}from'@univerjs/network';import{IRemoteInstanceService as _0x1a1eb4,UniverRPCMainThreadPlugin as _0x268139}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x9547e1}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0xc5eb87}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x41761e}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x26aae3,UniverSheetsDataValidationUIPlugin as _0x4ba7dd}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4aa64a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x4dc158}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2a46c0}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x9ba918}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3996e3}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x590736}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xf16f54}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xd5ed6c}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x543260}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x5edda3}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x3fdb79,UniverSheetsUIPlugin as _0x2a275b,getCurrentRangeDisable$ as _0x40236d}from'@univerjs/sheets-ui';import{ComponentManager as _0x592985,IDialogService as _0x1c3bd2,IMenuManagerService as _0x5cc3ae,IMessageService as _0x2b6969,ISidebarService as _0x1e4f29,MenuItemType as _0x5def46,RibbonStartGroup as _0x51bab3,UniverMobileUIPlugin as _0x434778,UniverUIPlugin as _0x40a805,getMenuHiddenObservable as _0x403dda}from'@univerjs/ui';import{BehaviorSubject as _0x50afba,combineLatest as _0xa79016,takeUntil as _0xb434a3}from'rxjs';function _0x541a(){const _0x3d9110=['block','flat','100%','historyPanelHidden','univerContainerId','onSteady','getActiveSheet','getElementById','_collaborationController','UNIVER_UNKNOWN','univer.operation.exit-edit-history','object','symbol','_localeService','Exited','_handleRevertAcknowledgement','location','SYNCED','OTHERS','type','composePermission','width','close','getAllPlugins','_initListener','session','left','getUnhiddenWorksheets','some','getCollabEntity','registerPlugin','set','_localCacheService','onStarting','reload','_messageService','permissionId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromCollab','mergeMenu','unMountHistoryContent','setConfig','_initContainer','unsubscribe','_injector','closeAll','_componentManager','UNIVER_SHEET','subscribe','has','_dataLoaderService','_selectionProtectionRuleModel','revertRevision$','dataset','executeCommand','asObservable','event$','params','constructor','onCommandExecuted','style','_disposableCollection','eventID','exhaustSavingTask','data','historyUniver$','_menuManagerService','_permissionService','_revertErrorTimer','Entered','_updateSubUnitFromURLParams','editHistory.panel.revertFailed','historyListServerUrl','zIndex','clear','_themeService','_initUniver','_historyManagerService','height','get','historyAIassistantEnabled','top','length','mountHistoryContent','setLocale','711580ZelWzG','position','uComp','add','then','history-container','setDarkMode','_checkCanRevert','_historyUniver$','pluginName','_urlService','getUnitId','defineProperty','historyPanelComponentKey','8900811NRqokW','_setupSubUnitSync','_univerInstanceService','whenReady','version','HistoryIcon','invoke','default','absolute','_initPlugins','menu','_internalWebWorker','mutations','from','function','getSubunitRuleList','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','disposeUnit','setTheme','historyUniver','_dialogService','loadUnit','1847376elmpYh','string','subunit','univer-container','state$','univer-history-container-mobile','dispose','CHANGESET_ACK','getSheetBySheetId','Loading','1330620zxWUdO','getUnit','editHistory.info.initializing','0.20.1','getParam','edit-history-loader.config','getCurrentLocale','every','div','_sidebarService','toPrimitive','_config','map','dispose$','UNIVER_CONTAINER_ID','editHistory.panel.reverting','_configService','forEach','status$','status','show','appendChild','8uOgeFi','prototype','getConfig','next','editHistory.panel.listFetchError','getSheetId','_pluginMap','decorate','pipe','value','removeAll','createElement','7244272xfMcTo','workerURL','Error','getLocales','618478hlasNS','_init','none','_updateURLWithCurrentState','register','disposeWithMe','__getInjector','OPERATION','triggerLoadVersions','call','editHistory.panel.title','packageName','triggerCustomVersions','currentTheme$','BUTTON','display','127780drTPNZ','setParam','getSheets','_commandService','univer.operation.toggle-edit-history','8eWSUBQ','values'];_0x541a=function(){return _0x3d9110;};return _0x541a();}import{IURLService as _0x117d1f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1741d5}from'@univerjs/icons';import{UniverType as _0x1501c2}from'@univerjs/protocol';const L=_0x257921(0x202);Symbol(L);const R={};function z(_0x270b41){'@babel/helpers - typeof';const _0x15d2e7=_0x257921;return z=typeof Symbol==_0x15d2e7(0x1eb)&&typeof Symbol['iterator']=='symbol'?function(_0x1639f9){return typeof _0x1639f9;}:function(_0x25bea2){const _0x5ab393=_0x15d2e7;return _0x25bea2&&typeof Symbol==_0x5ab393(0x1eb)&&_0x25bea2[_0x5ab393(0x274)]===Symbol&&_0x25bea2!==Symbol[_0x5ab393(0x214)]?_0x5ab393(0x246):typeof _0x25bea2;},z(_0x270b41);}function ot(_0x2ab369,_0x3ae845){const _0x135dc6=_0x257921;if(z(_0x2ab369)!=_0x135dc6(0x245)||!_0x2ab369)return _0x2ab369;var _0x59b6d0=_0x2ab369[Symbol[_0x135dc6(0x207)]];if(_0x59b6d0!==void 0x0){var _0x3324df=_0x59b6d0[_0x135dc6(0x22c)](_0x2ab369,_0x3ae845||_0x135dc6(0x1e4));if(z(_0x3324df)!='object')return _0x3324df;throw TypeError(_0x135dc6(0x25f));}return(_0x3ae845===_0x135dc6(0x1f4)?String:Number)(_0x2ab369);}function st(_0x2be02b){const _0xc31033=_0x257921;var _0x15bdd0=ot(_0x2be02b,'string');return z(_0x15bdd0)==_0xc31033(0x246)?_0x15bdd0:_0x15bdd0+'';}function B(_0x280f97,_0x25de66,_0x4c7f85){const _0x197e31=_0x257921;return(_0x25de66=st(_0x25de66))in _0x280f97?Object[_0x197e31(0x29b)](_0x280f97,_0x25de66,{'value':_0x4c7f85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280f97[_0x25de66]=_0x4c7f85,_0x280f97;}function V(_0xa85f2a,_0x13f6ea){return function(_0x2b9d33,_0xfaf740){_0x13f6ea(_0x2b9d33,_0xfaf740,_0xa85f2a);};}function H(_0x6712da,_0x33c122,_0x16c5e3,_0x198c53){const _0x49d654=_0x257921;var _0x1ec346=arguments['length'],_0x2d7021=_0x1ec346<0x3?_0x33c122:_0x198c53===null?_0x198c53=Object['getOwnPropertyDescriptor'](_0x33c122,_0x16c5e3):_0x198c53,_0x188c3d;if(typeof Reflect==_0x49d654(0x245)&&typeof Reflect[_0x49d654(0x21a)]=='function')_0x2d7021=Reflect[_0x49d654(0x21a)](_0x6712da,_0x33c122,_0x16c5e3,_0x198c53);else{for(var _0x365ac9=_0x6712da[_0x49d654(0x28c)]-0x1;_0x365ac9>=0x0;_0x365ac9--)(_0x188c3d=_0x6712da[_0x365ac9])&&(_0x2d7021=(_0x1ec346<0x3?_0x188c3d(_0x2d7021):_0x1ec346>0x3?_0x188c3d(_0x33c122,_0x16c5e3,_0x2d7021):_0x188c3d(_0x33c122,_0x16c5e3))||_0x2d7021);}return _0x1ec346>0x3&&_0x2d7021&&Object[_0x49d654(0x29b)](_0x33c122,_0x16c5e3,_0x2d7021),_0x2d7021;}const U='UNIVER_CONTAINER_ID',W='univer-history-container';let G=class extends _0x8532c1{constructor(_0x1ef0f1,_0x2e034e,_0x5baa9b,_0x21ad5b,_0x4aa1a4,_0x5c214e,_0x34f9a6,_0x4015b8,_0x3fc4e5,_0x59d3aa){const _0x2e03d9=_0x257921;super(),this[_0x2e03d9(0x247)]=_0x1ef0f1,this[_0x2e03d9(0x29f)]=_0x2e034e,this['_configService']=_0x5baa9b,this[_0x2e03d9(0x236)]=_0x21ad5b,this[_0x2e03d9(0x25d)]=_0x4aa1a4,this[_0x2e03d9(0x27d)]=_0x5c214e,this[_0x2e03d9(0x26d)]=_0x34f9a6,this[_0x2e03d9(0x1f1)]=_0x4015b8,this['_sidebarService']=_0x3fc4e5,this['_themeService']=_0x59d3aa,B(this,'_historyUniver$',new _0x50afba(null)),B(this,'historyUniver$',this[_0x2e03d9(0x297)][_0x2e03d9(0x271)]()),B(this,'_disposableCollection',new _0xc6dfe0()),B(this,_0x2e03d9(0x219),new Map()),B(this,_0x2e03d9(0x1e8),null),this[_0x2e03d9(0x224)]();}get[_0x257921(0x1f0)](){const _0x58ca17=_0x257921;return this['_historyUniver$'][_0x58ca17(0x21c)];}[_0x257921(0x224)](){const _0x1cab03=_0x257921;this[_0x1cab03(0x264)](),this[_0x1cab03(0x1e6)]();}[_0x257921(0x264)](){const _0x2b9cc9=_0x257921;var _0x42a44a;let _0x26eb80=(_0x42a44a=this[_0x2b9cc9(0x20d)][_0x2b9cc9(0x215)](_0x2b9cc9(0x20b)))==null?_0x2b9cc9(0x1f6):_0x42a44a,_0x934a78=document['getElementById'](_0x26eb80);if(!_0x934a78)return;let _0x134aaf=document['createElement'](_0x2b9cc9(0x205));_0x134aaf['id']=W,_0x134aaf[_0x2b9cc9(0x26f)][_0x2b9cc9(0x291)]=_0x2b9cc9(0x294),_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x290)]=_0x2b9cc9(0x1e5),_0x134aaf['style']['top']='0',_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x254)]='0',_0x134aaf['style'][_0x2b9cc9(0x24f)]=_0x2b9cc9(0x23c),_0x134aaf['style'][_0x2b9cc9(0x288)]=_0x2b9cc9(0x23c),_0x134aaf[_0x2b9cc9(0x276)]['zIndex']='49',_0x134aaf[_0x2b9cc9(0x276)]['display']='none',_0x934a78[_0x2b9cc9(0x212)](_0x134aaf);}[_0x257921(0x1e6)](){const _0x213589=_0x257921;[[_0x1304a6],[_0x40a805,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x2a275b],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9ba918],[_0x9547e1],[_0xc5eb87],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x4ba7dd],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x213589(0x20e)](([_0x1e0eae,_0x3c4295])=>this[_0x213589(0x258)](_0x1e0eae,_0x3c4295));}[_0x257921(0x1f9)](){const _0x112d25=_0x257921;super[_0x112d25(0x1f9)](),this[_0x112d25(0x262)](),this[_0x112d25(0x219)][_0x112d25(0x284)]();}[_0x257921(0x258)](_0x2a7f48,_0x434f31,_0x310c2c){const _0x164a9a=_0x257921;if(this[_0x164a9a(0x219)][_0x164a9a(0x26b)](_0x2a7f48[_0x164a9a(0x298)])&&!_0x310c2c)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x2a7f48[_0x164a9a(0x298)]+'\x20has\x20been\x20registered.');this['_pluginMap']['set'](_0x2a7f48['pluginName'],[_0x2a7f48,_0x434f31]);}[_0x257921(0x251)](){const _0x524a3c=_0x257921;return Array[_0x524a3c(0x1ea)](this[_0x524a3c(0x219)]['values']());}[_0x257921(0x28d)](_0x77558c,_0x54dd99){const _0x543bfa=_0x257921;let _0x83a7d3=document[_0x543bfa(0x241)](W);_0x83a7d3&&(_0x83a7d3['style'][_0x543bfa(0x232)]=_0x543bfa(0x23a),this[_0x543bfa(0x286)](_0x77558c,W,_0x54dd99));}[_0x257921(0x262)](){const _0xcb7a9d=_0x257921;var _0x5f5a0c;this[_0xcb7a9d(0x277)][_0xcb7a9d(0x1f9)](),(_0x5f5a0c=this[_0xcb7a9d(0x1f0)])==null||_0x5f5a0c['dispose'](),this['_historyUniver$'][_0xcb7a9d(0x216)](null);let _0x280257=document[_0xcb7a9d(0x241)](W);_0x280257&&(_0x280257[_0xcb7a9d(0x276)][_0xcb7a9d(0x232)]=_0xcb7a9d(0x225),this[_0xcb7a9d(0x1e8)]&&(this['_internalWebWorker']['terminate'](),this[_0xcb7a9d(0x1e8)]=null));}['_initUniver'](_0x174c68,_0x126bd1,_0x190c66){const _0x441fe4=_0x257921;var _0x30eadf,_0xb639c2,_0xbbe029,_0x152b2a,_0xec1ecc;if(this[_0x441fe4(0x1f0)])return;let _0x27024a=new _0x481fbd({'locales':{[this[_0x441fe4(0x247)]['getCurrentLocale']()]:this[_0x441fe4(0x247)]['getLocales']()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x3c8bd8=_0x27024a[_0x441fe4(0x229)]();this[_0x441fe4(0x228)](this[_0x441fe4(0x285)]['darkMode$']['subscribe'](_0x5ab8e8=>{const _0x37cea9=_0x441fe4;_0x3c8bd8[_0x37cea9(0x289)](_0x24cb5d)[_0x37cea9(0x295)](_0x5ab8e8);})),this[_0x441fe4(0x228)](this[_0x441fe4(0x285)][_0x441fe4(0x230)][_0x441fe4(0x26a)](_0x540c41=>{const _0x24655b=_0x441fe4;_0x3c8bd8[_0x24655b(0x289)](_0x24cb5d)[_0x24655b(0x1ef)](_0x540c41);})),_0x3c8bd8['get'](_0x316b33)[_0x441fe4(0x28e)](this[_0x441fe4(0x247)][_0x441fe4(0x203)]()),_0x3c8bd8[_0x441fe4(0x289)](_0x119b2)[_0x441fe4(0x263)](_0x464cfe,this[_0x441fe4(0x20d)]['getConfig'](_0x464cfe));let _0x34d012=this[_0x441fe4(0x20d)]['getConfig'](_0x51215c);_0x34d012&&_0x27024a['registerPlugin'](_0x433b30,{'license':_0x34d012['ls']});let _0x763b8=(_0x30eadf=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0x30eadf[_0x441fe4(0x220)],_0x56624d=!!_0x763b8;_0x56624d&&(this[_0x441fe4(0x1e8)]=_0x763b8 instanceof Worker?_0x763b8:null,_0x27024a['registerPlugin'](_0x268139,{'workerURL':_0x763b8})),this[_0x441fe4(0x219)][_0x441fe4(0x20e)](([_0x31bc84,_0x52f94f])=>{const _0x7ea64a=_0x441fe4;_0x27024a[_0x7ea64a(0x258)](_0x31bc84,_0x52f94f);}),_0x27024a[_0x441fe4(0x258)](_0x136f43,{'historyListServerUrl':(_0xb639c2=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xb639c2[_0x441fe4(0x282)],'historyPanelComponentKey':(_0xbbe029=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xbbe029[_0x441fe4(0x29c)],'historyPanelHidden':(_0x152b2a=this[_0x441fe4(0x20d)]['getConfig'](_0x441fe4(0x202)))==null?void 0x0:_0x152b2a[_0x441fe4(0x23d)],'historyAIassistantEnabled':(_0xec1ecc=this[_0x441fe4(0x20d)][_0x441fe4(0x215)]('edit-history-loader.config'))==null?void 0x0:_0xec1ecc[_0x441fe4(0x28a)]}),_0x3c8bd8[_0x441fe4(0x2a3)](_0x2776ed=>{this['_initListener'](_0x2776ed,_0x174c68);}),this[_0x441fe4(0x297)][_0x441fe4(0x216)](_0x27024a);let _0x279f67=_0x3c8bd8[_0x441fe4(0x289)](_0x406ca6),_0x574c26=this[_0x441fe4(0x296)](_0x174c68),_0x4b317c=()=>{const _0x552c0b=_0x441fe4;_0x190c66?_0x279f67[_0x552c0b(0x22f)](_0x174c68,_0x126bd1,_0x574c26,_0x190c66):_0x279f67[_0x552c0b(0x22b)](_0x174c68,_0x126bd1,_0x574c26);};if(this[_0x441fe4(0x25d)]['show']({'content':this[_0x441fe4(0x247)]['t'](_0x441fe4(0x1ff)),'type':_0x4345b3['Loading']}),_0x56624d)try{_0x3c8bd8[_0x441fe4(0x289)](_0x1a1eb4)[_0x441fe4(0x2a0)]()[_0x441fe4(0x293)](()=>{_0x4b317c();});}catch{_0x4b317c();}else _0x4b317c();}['_initListener'](_0x5177f5,_0x3327c5){const _0x226203=_0x257921;let _0x6b7ec2=_0x5177f5[_0x226203(0x289)](_0x406ca6);this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x20f)][_0x226203(0x26a)](_0x921626=>{const _0x3b0790=_0x226203;switch(_0x921626){case _0x167a98[_0x3b0790(0x27f)]:this[_0x3b0790(0x1f1)]['closeAll'](),this[_0x3b0790(0x206)][_0x3b0790(0x250)]();break;case _0x167a98[_0x3b0790(0x248)]:this['_commandService'][_0x3b0790(0x270)](q['id']),this['unMountHistoryContent']();break;case _0x167a98[_0x3b0790(0x221)]:this[_0x3b0790(0x262)](),this['_messageService'][_0x3b0790(0x211)]({'content':this['_localeService']['t'](_0x3b0790(0x217)),'type':_0x4345b3[_0x3b0790(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x26e)]['subscribe'](async _0x38240b=>{_0x38240b&&this['_commandService']['executeCommand'](_0x305fa9['id'],{'unitId':_0x3327c5,'revision':_0x38240b});}));}[_0x257921(0x296)](_0x5ec881){const _0x50b3f8=_0x257921;let _0x230e31=this[_0x50b3f8(0x29f)][_0x50b3f8(0x1fe)](_0x5ec881)[_0x50b3f8(0x235)]()['map'](_0xbbd350=>_0xbbd350[_0x50b3f8(0x218)]()),_0x5a1066=new _0x4417ae(_0x5ec881)['id'],_0x10c7d8=_0x230e31[_0x50b3f8(0x209)](_0x59ec80=>new _0x5e4e77(_0x5ec881,_0x59ec80)['id']),_0x462488=_0x230e31['map'](_0x351cbb=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x5ec881,_0x351cbb)[_0x50b3f8(0x209)](_0xaaff16=>new _0x540a05(_0x5ec881,_0x351cbb,_0xaaff16[_0x50b3f8(0x25e)])['id']))[_0x50b3f8(0x23b)](),_0x119c30=new _0x4b7b3a(_0x5ec881)['id'];return this['_permissionService']['composePermission']([_0x5a1066,..._0x10c7d8,..._0x462488,_0x119c30])[_0x50b3f8(0x204)](_0x591cd8=>!!_0x591cd8[_0x50b3f8(0x21c)]);}};G=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],G);const K={'id':_0x257921(0x237),'type':_0x487ef2['OPERATION'],'handler':_0x5d407c=>{const _0x29aaab=_0x257921;let _0x3d7d8b=_0x5d407c['get'](G),{unitId:_0x5e9add}=_0x1932cf(_0x5d407c[_0x29aaab(0x289)](_0x430938))||{};return _0x5e9add?(_0x3d7d8b[_0x29aaab(0x28d)](_0x5e9add),!0x0):!0x1;}},q={'id':_0x257921(0x244),'type':_0x487ef2[_0x257921(0x22a)],'handler':()=>!0x0};var ct='@univerjs-pro/edit-history-loader',lt=_0x257921(0x200);function ut(_0x3be0a3){const _0x3ac66e=_0x257921;return{'id':K['id'],'type':_0x5def46[_0x3ac66e(0x231)],'icon':'HistoryIcon','tooltip':_0x3ac66e(0x22d),'hidden$':_0x403dda(_0x3be0a3,_0x7184d6[_0x3ac66e(0x269)]),'disabled$':_0x40236d(_0x3be0a3,{'workbookTypes':[_0x2b5fc9],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x51bab3[_0x257921(0x24c)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x3c2c30{constructor(_0x2202f8,_0x259120,_0x3c1839,_0x5ba99d,_0xb432f1,_0x3db589,_0x287978,_0x55bf28,_0x170934,_0x568ee5,_0xea7df4){const _0x3ef6ad=_0x257921;super(),this[_0x3ef6ad(0x236)]=_0x2202f8,this['_menuManagerService']=_0x259120,this[_0x3ef6ad(0x268)]=_0x3c1839,this[_0x3ef6ad(0x287)]=_0x5ba99d,this['_localeService']=_0xb432f1,this['_messageService']=_0x3db589,this[_0x3ef6ad(0x242)]=_0x287978,this[_0x3ef6ad(0x25a)]=_0x55bf28,this[_0x3ef6ad(0x26c)]=_0x170934,this[_0x3ef6ad(0x29f)]=_0x568ee5,this[_0x3ef6ad(0x299)]=_0xea7df4,B(this,_0x3ef6ad(0x27e),null),this['_init']();}[_0x257921(0x224)](){const _0x4dd03d=_0x257921;[K,q]['forEach'](_0x3bc8ff=>this[_0x4dd03d(0x228)](_0x1ecd9a(this[_0x4dd03d(0x236)]['registerCommand'](_0x3bc8ff)))),this['disposeWithMe'](this[_0x4dd03d(0x268)][_0x4dd03d(0x227)](_0x4dd03d(0x2a2),_0x1741d5)),this['_menuManagerService']['mergeMenu'](dt),this[_0x4dd03d(0x228)](this[_0x4dd03d(0x236)]['onCommandExecuted'](async(_0x12c784,_0x3046af)=>{const _0x1d1f72=_0x4dd03d;if(_0x12c784['id']===_0x305fa9['id']){let {unitId:_0x75fe9d}=_0x12c784[_0x1d1f72(0x273)];this[_0x1d1f72(0x25d)][_0x1d1f72(0x211)]({'content':this[_0x1d1f72(0x247)]['t'](_0x1d1f72(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x17004d=this[_0x1d1f72(0x242)]['getCollabEntity'](_0x75fe9d);_0x3046af!=null&&_0x3046af[_0x1d1f72(0x260)]?this[_0x1d1f72(0x249)](_0x17004d,async()=>(setTimeout(()=>window[_0x1d1f72(0x24a)][_0x1d1f72(0x25c)]()),!0x0),!0x0):this[_0x1d1f72(0x249)](_0x17004d,async()=>{const _0x414900=_0x1d1f72;let _0x1d008a=this[_0x414900(0x29f)]['getCurrentUnitOfType'](_0x1501c2['UNIVER_SHEET']),_0x542c6f=_0x1d008a==null?void 0x0:_0x1d008a['getActiveSheet']();if(!_0x542c6f)return!0x1;this[_0x414900(0x29f)][_0x414900(0x1ee)](_0x75fe9d);let _0x47b8fd=await this[_0x414900(0x26c)]['loadUnit'](_0x75fe9d,_0x1501c2[_0x414900(0x269)]);return _0x47b8fd&&_0x47b8fd instanceof _0x26a77f?(await this[_0x414900(0x29e)](_0x47b8fd,_0x542c6f[_0x414900(0x218)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x39e9a6,_0x3017b9,_0x1fae22=!0x1){const _0x434530=_0x257921;let _0x319705=_0xa79016([_0x39e9a6[_0x434530(0x253)][_0x434530(0x272)],_0x39e9a6[_0x434530(0x1f7)]])[_0x434530(0x26a)](async([_0xa262be,_0xcb2de3])=>{const _0x3340bd=_0x434530;if(_0xa262be['eventID']===_0x5089a1[_0x3340bd(0x1fa)]&&(_0xcb2de3==null?void 0x0:_0xcb2de3[_0x3340bd(0x210)])===_0x4aeda6[_0x3340bd(0x24b)]&&_0xa262be[_0x3340bd(0x27a)][_0x3340bd(0x1e9)][_0x3340bd(0x256)](_0x1a3dfb=>_0x1a3dfb['id']===_0x305fa9['id'])&&await _0x3017b9()){var _0x2430d9;this['_historyManagerService'][_0x3340bd(0x262)](),_0x319705[_0x3340bd(0x265)](),this[_0x3340bd(0x27e)]&&clearTimeout(this[_0x3340bd(0x27e)]),await((_0x2430d9=this['_localCacheService'])==null?void 0x0:_0x2430d9[_0x3340bd(0x279)]()),this['_messageService'][_0x3340bd(0x21d)]();}});_0x1fae22&&(this[_0x434530(0x27e)]=setTimeout(()=>{const _0x550f5d=_0x434530;_0x319705[_0x550f5d(0x265)](),this['_messageService'][_0x550f5d(0x211)]({'content':this[_0x550f5d(0x247)]['t'](_0x550f5d(0x281)),'type':_0x4345b3['Error'],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x38eefd,_0x495672){const _0x3d0d48=_0x257921;await this[_0x3d0d48(0x280)](_0x38eefd,_0x495672),_0x38eefd['activeSheet$'][_0x3d0d48(0x21b)](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](_0x4400d6=>{_0x4400d6&&this['_updateURLWithCurrentState'](_0x4400d6);}),this[_0x3d0d48(0x299)]['urlChange$']['pipe'](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](()=>this['_updateSubUnitFromURLParams'](_0x38eefd,_0x495672));}[_0x257921(0x226)](_0x3118f4,_0x3bc474=!0x1){const _0x12875f=_0x257921;let _0x30810f=this[_0x12875f(0x299)]['getParam'](_0x12875f(0x1f5));_0x3118f4[_0x12875f(0x218)]()!==_0x30810f&&this[_0x12875f(0x299)][_0x12875f(0x234)](_0x12875f(0x1f5),_0x3118f4[_0x12875f(0x218)](),_0x3bc474);}async[_0x257921(0x280)](_0x1156f6,_0x26f800){const _0x266ee0=_0x257921;var _0x4883af;if(!_0x26f800||!_0x1156f6[_0x266ee0(0x1fb)](_0x26f800)){let _0x34c010=_0x1156f6[_0x266ee0(0x255)]()[0x0],_0x33a3f9=_0x1156f6[_0x266ee0(0x1fb)](_0x34c010);if(!_0x33a3f9)return;this[_0x266ee0(0x226)](_0x33a3f9,!0x0),await this[_0x266ee0(0x236)][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6[_0x266ee0(0x29a)](),'subUnitId':_0x34c010});return;}((_0x4883af=_0x1156f6[_0x266ee0(0x240)]())==null?void 0x0:_0x4883af[_0x266ee0(0x218)]())!==_0x26f800&&await this['_commandService'][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6['getUnitId'](),'subUnitId':_0x26f800});}};function _0x19ba(_0x56af7c,_0x4ec7b0){_0x56af7c=_0x56af7c-0x1e4;const _0x541af4=_0x541a();let _0x19bad5=_0x541af4[_0x56af7c];return _0x19bad5;}J=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],J);const Y=_0x257921(0x1f8);let X=class extends _0x8532c1{constructor(_0x516682,_0x4a771b,_0xd9dfd8,_0x5dac85,_0x13a0ad,_0x16557e,_0x181958,_0x468850,_0x5b4c58,_0x25336f){const _0x221515=_0x257921;super(),this[_0x221515(0x247)]=_0x516682,this['_univerInstanceService']=_0x4a771b,this[_0x221515(0x20d)]=_0xd9dfd8,this[_0x221515(0x236)]=_0x5dac85,this['_messageService']=_0x13a0ad,this[_0x221515(0x27d)]=_0x16557e,this['_selectionProtectionRuleModel']=_0x181958,this['_dialogService']=_0x468850,this[_0x221515(0x206)]=_0x5b4c58,this[_0x221515(0x285)]=_0x25336f,B(this,_0x221515(0x297),new _0x50afba(null)),B(this,_0x221515(0x27b),this['_historyUniver$'][_0x221515(0x271)]()),B(this,_0x221515(0x277),new _0xc6dfe0()),B(this,'_pluginMap',new Map()),B(this,_0x221515(0x1e8),null),this[_0x221515(0x224)]();}get['historyUniver'](){const _0x3947d5=_0x257921;return this['_historyUniver$'][_0x3947d5(0x21c)];}[_0x257921(0x224)](){const _0xbaa330=_0x257921;this[_0xbaa330(0x264)](),this['_initPlugins']();}['_initContainer'](){const _0x5c14ae=_0x257921;var _0x1b10fc;let _0x1d3afa=(_0x1b10fc=this['_configService'][_0x5c14ae(0x215)](_0x5c14ae(0x20b)))==null?_0x5c14ae(0x1f6):_0x1b10fc,_0x3d84e8=document['getElementById'](_0x1d3afa);if(!_0x3d84e8)return;let _0x1014fb=document[_0x5c14ae(0x21e)](_0x5c14ae(0x205));_0x1014fb['id']=Y,_0x1014fb[_0x5c14ae(0x26f)][_0x5c14ae(0x291)]=_0x5c14ae(0x294),_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x290)]='absolute',_0x1014fb['style'][_0x5c14ae(0x28b)]='0',_0x1014fb['style'][_0x5c14ae(0x254)]='0',_0x1014fb['style'][_0x5c14ae(0x24f)]='100%',_0x1014fb[_0x5c14ae(0x276)]['height']='100%',_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x283)]='49',_0x1014fb['style'][_0x5c14ae(0x232)]=_0x5c14ae(0x225),_0x3d84e8[_0x5c14ae(0x212)](_0x1014fb);}['_initPlugins'](){const _0x3d0713=_0x257921;[[_0x1304a6],[_0x434778,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x3fdb79],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9547e1],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x26aae3],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x3d0713(0x20e)](([_0x2e5ba5,_0x195721])=>this[_0x3d0713(0x258)](_0x2e5ba5,_0x195721));}[_0x257921(0x1f9)](){const _0xab3aa4=_0x257921;super[_0xab3aa4(0x1f9)](),this[_0xab3aa4(0x262)](),this[_0xab3aa4(0x219)]['clear']();}['registerPlugin'](_0x5f4aff,_0x12444b,_0x36b88a){const _0x15c40a=_0x257921;if(this[_0x15c40a(0x219)][_0x15c40a(0x26b)](_0x5f4aff[_0x15c40a(0x298)])&&!_0x36b88a)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5f4aff['pluginName']+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x15c40a(0x259)](_0x5f4aff['pluginName'],[_0x5f4aff,_0x12444b]);}[_0x257921(0x251)](){const _0x2eeb89=_0x257921;return Array['from'](this[_0x2eeb89(0x219)][_0x2eeb89(0x239)]());}[_0x257921(0x28d)](_0x3f0402,_0x3003cc){const _0x11b898=_0x257921;let _0x54bd62=document['getElementById'](Y);_0x54bd62&&(_0x54bd62['style'][_0x11b898(0x232)]=_0x11b898(0x23a),this[_0x11b898(0x286)](_0x3f0402,Y,_0x3003cc));}['unMountHistoryContent'](){const _0xd74946=_0x257921;var _0x46e21a;this[_0xd74946(0x277)][_0xd74946(0x1f9)](),(_0x46e21a=this[_0xd74946(0x1f0)])==null||_0x46e21a['dispose'](),this[_0xd74946(0x297)][_0xd74946(0x216)](null);let _0x4caf6f=document[_0xd74946(0x241)](Y);_0x4caf6f&&(_0x4caf6f[_0xd74946(0x276)][_0xd74946(0x232)]=_0xd74946(0x225),this[_0xd74946(0x1e8)]&&(this[_0xd74946(0x1e8)]['terminate'](),this[_0xd74946(0x1e8)]=null));}[_0x257921(0x286)](_0x47fd9c,_0x14073a,_0x169589){const _0x31ac51=_0x257921;var _0x4b2f9a,_0x18765e,_0xe1f04d,_0x437cce;if(this[_0x31ac51(0x1f0)])return;let _0x1855f9=new _0x481fbd({'locales':{[this['_localeService'][_0x31ac51(0x203)]()]:this['_localeService'][_0x31ac51(0x222)]()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x316dfb=_0x1855f9[_0x31ac51(0x229)]();this[_0x31ac51(0x228)](this['_themeService']['darkMode$'][_0x31ac51(0x26a)](_0x160ab1=>{const _0x3c9b04=_0x31ac51;_0x316dfb[_0x3c9b04(0x289)](_0x24cb5d)['setDarkMode'](_0x160ab1);})),this[_0x31ac51(0x228)](this[_0x31ac51(0x285)][_0x31ac51(0x230)][_0x31ac51(0x26a)](_0x3200b8=>{const _0x5bed5a=_0x31ac51;_0x316dfb[_0x5bed5a(0x289)](_0x24cb5d)[_0x5bed5a(0x1ef)](_0x3200b8);})),_0x316dfb[_0x31ac51(0x289)](_0x316b33)[_0x31ac51(0x28e)](this[_0x31ac51(0x247)][_0x31ac51(0x203)]()),_0x316dfb[_0x31ac51(0x289)](_0x119b2)[_0x31ac51(0x263)](_0x464cfe,this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x464cfe));let _0x1d1ef2=this['_configService'][_0x31ac51(0x215)](_0x51215c);_0x1d1ef2&&_0x1855f9['registerPlugin'](_0x433b30,{'license':_0x1d1ef2['ls']});let _0x17daeb=(_0x4b2f9a=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x4b2f9a[_0x31ac51(0x220)],_0x584176=!!_0x17daeb;_0x584176&&(this[_0x31ac51(0x1e8)]=_0x17daeb instanceof Worker?_0x17daeb:null,_0x1855f9[_0x31ac51(0x258)](_0x268139,{'workerURL':_0x17daeb})),this[_0x31ac51(0x219)][_0x31ac51(0x20e)](([_0x4eee14,_0x1ee228])=>{const _0x234a02=_0x31ac51;_0x1855f9[_0x234a02(0x258)](_0x4eee14,_0x1ee228);}),_0x1855f9['registerPlugin'](_0x1dd4cd,{'historyListServerUrl':(_0x18765e=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x18765e['historyListServerUrl'],'historyPanelComponentKey':(_0xe1f04d=this[_0x31ac51(0x20d)]['getConfig'](_0x31ac51(0x202)))==null?void 0x0:_0xe1f04d[_0x31ac51(0x29c)],'historyPanelHidden':(_0x437cce=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x437cce[_0x31ac51(0x23d)]}),_0x316dfb[_0x31ac51(0x2a3)](_0x268344=>{const _0x5055d5=_0x31ac51;this[_0x5055d5(0x252)](_0x268344,_0x47fd9c);}),this[_0x31ac51(0x297)][_0x31ac51(0x216)](_0x1855f9);let _0x4752a1=_0x316dfb[_0x31ac51(0x289)](_0x406ca6),_0x55a4f5=this[_0x31ac51(0x296)](_0x47fd9c),_0x2b75d9=()=>{const _0x2b1a61=_0x31ac51;_0x169589?_0x4752a1[_0x2b1a61(0x22f)](_0x47fd9c,_0x14073a,_0x55a4f5,_0x169589):_0x4752a1[_0x2b1a61(0x22b)](_0x47fd9c,_0x14073a,_0x55a4f5);};if(this[_0x31ac51(0x25d)][_0x31ac51(0x211)]({'content':this[_0x31ac51(0x247)]['t'](_0x31ac51(0x1ff)),'type':_0x4345b3[_0x31ac51(0x1fc)]}),_0x584176)try{_0x316dfb['get'](_0x1a1eb4)[_0x31ac51(0x2a0)]()[_0x31ac51(0x293)](()=>{_0x2b75d9();});}catch{_0x2b75d9();}else _0x2b75d9();}['_initListener'](_0x5609a0,_0x322a62){const _0x3adfb5=_0x257921;let _0x13bd4a=_0x5609a0[_0x3adfb5(0x289)](_0x406ca6);this[_0x3adfb5(0x277)]['add'](_0x13bd4a['status$'][_0x3adfb5(0x26a)](_0x4de4a6=>{const _0x2593c4=_0x3adfb5;switch(_0x4de4a6){case _0x167a98[_0x2593c4(0x27f)]:this[_0x2593c4(0x1f1)][_0x2593c4(0x267)](),this[_0x2593c4(0x206)]['close']();break;case _0x167a98['Exited']:this[_0x2593c4(0x236)][_0x2593c4(0x270)](q['id']),this[_0x2593c4(0x262)]();break;case _0x167a98['Error']:this[_0x2593c4(0x262)](),this[_0x2593c4(0x25d)][_0x2593c4(0x211)]({'content':this[_0x2593c4(0x247)]['t'](_0x2593c4(0x217)),'type':_0x4345b3[_0x2593c4(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x3adfb5(0x277)][_0x3adfb5(0x292)](_0x13bd4a[_0x3adfb5(0x26e)][_0x3adfb5(0x26a)](async _0x2f8f1f=>{const _0x46e862=_0x3adfb5;_0x2f8f1f&&this[_0x46e862(0x236)][_0x46e862(0x270)](_0x305fa9['id'],{'unitId':_0x322a62,'revision':_0x2f8f1f});}));}[_0x257921(0x296)](_0x54d9fd){const _0x478992=_0x257921;let _0x58db9f=this[_0x478992(0x29f)][_0x478992(0x1fe)](_0x54d9fd)[_0x478992(0x235)]()[_0x478992(0x209)](_0x34f9c8=>_0x34f9c8[_0x478992(0x218)]()),_0x3c7ebe=new _0x4417ae(_0x54d9fd)['id'],_0x291b85=_0x58db9f[_0x478992(0x209)](_0x35787f=>new _0x5e4e77(_0x54d9fd,_0x35787f)['id']),_0x164f72=_0x58db9f[_0x478992(0x209)](_0x769727=>this[_0x478992(0x26d)][_0x478992(0x1ec)](_0x54d9fd,_0x769727)[_0x478992(0x209)](_0x5ba00f=>new _0x540a05(_0x54d9fd,_0x769727,_0x5ba00f['permissionId'])['id']))[_0x478992(0x23b)](),_0x17d9f0=new _0x4b7b3a(_0x54d9fd)['id'];return this['_permissionService'][_0x478992(0x24e)]([_0x3c7ebe,..._0x291b85,..._0x164f72,_0x17d9f0])[_0x478992(0x204)](_0x3e9aad=>!!_0x3e9aad[_0x478992(0x21c)]);}};X=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],X);let Z=class extends _0x30cf8f{constructor(_0x179fec=R,_0x2c7635,_0x40854b){const _0x48832d=_0x257921;super(),this[_0x48832d(0x208)]=_0x179fec,this[_0x48832d(0x266)]=_0x2c7635,this[_0x48832d(0x20d)]=_0x40854b;let {menu:_0x36f484,..._0x24caba}=_0x3bca78({},R,this[_0x48832d(0x208)]);_0x36f484&&this[_0x48832d(0x20d)][_0x48832d(0x263)]('menu',_0x36f484,{'merge':!0x0}),this[_0x48832d(0x20d)]['setConfig'](L,_0x24caba),this[_0x48832d(0x208)][_0x48832d(0x23e)]&&this[_0x48832d(0x20d)]['setConfig'](_0x48832d(0x20b),this[_0x48832d(0x208)]['univerContainerId']);}['onStarting'](){const _0x43ba7e=_0x257921;[[G,{'useClass':X}],[J]][_0x43ba7e(0x20e)](_0x555cf0=>this[_0x43ba7e(0x266)][_0x43ba7e(0x292)](_0x555cf0));}['onSteady'](){const _0x3f521e=_0x257921;this['_injector'][_0x3f521e(0x289)](J);}};B(Z,_0x257921(0x24d),_0x7184d6['UNIVER_UNKNOWN']),B(Z,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x257921(0x22e),ct),B(Z,_0x257921(0x2a1),lt),Z=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],Z);let Q=class extends _0x3c2c30{constructor(_0x4a9843,_0x1be514,_0x24d815,_0x4af8bd,_0x233b23,_0xe3371,_0x3de048,_0x2c4a41,_0x26e7cb,_0x236092,_0x7753b9){const _0x184416=_0x257921;super(),this[_0x184416(0x236)]=_0x4a9843,this[_0x184416(0x27c)]=_0x1be514,this[_0x184416(0x268)]=_0x24d815,this['_historyManagerService']=_0x4af8bd,this['_localeService']=_0x233b23,this[_0x184416(0x25d)]=_0xe3371,this[_0x184416(0x242)]=_0x3de048,this[_0x184416(0x25a)]=_0x2c4a41,this[_0x184416(0x26c)]=_0x26e7cb,this['_univerInstanceService']=_0x236092,this['_urlService']=_0x7753b9,B(this,'_revertErrorTimer',null),this[_0x184416(0x224)]();}[_0x257921(0x224)](){const _0x33ebfb=_0x257921;[K,q]['forEach'](_0x3cfa49=>this[_0x33ebfb(0x228)](_0x1ecd9a(this['_commandService']['registerCommand'](_0x3cfa49)))),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x268)][_0x33ebfb(0x227)](_0x33ebfb(0x2a2),_0x1741d5)),this['_menuManagerService'][_0x33ebfb(0x261)](dt),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x236)][_0x33ebfb(0x275)](async(_0x272866,_0x1fe3ac)=>{const _0x2ca786=_0x33ebfb;if(_0x272866['id']===_0x305fa9['id']){let {unitId:_0x85b934}=_0x272866[_0x2ca786(0x273)];this[_0x2ca786(0x25d)][_0x2ca786(0x211)]({'content':this[_0x2ca786(0x247)]['t'](_0x2ca786(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x1e6f0c=this[_0x2ca786(0x242)][_0x2ca786(0x257)](_0x85b934);_0x1fe3ac!=null&&_0x1fe3ac[_0x2ca786(0x260)]?this[_0x2ca786(0x249)](_0x1e6f0c,async()=>(setTimeout(()=>window['location'][_0x2ca786(0x25c)]()),!0x0),!0x0):this[_0x2ca786(0x249)](_0x1e6f0c,async()=>{const _0x3d29a3=_0x2ca786;let _0x604c71=this[_0x3d29a3(0x29f)]['getCurrentUnitOfType'](_0x1501c2[_0x3d29a3(0x269)]),_0x5eafe8=_0x604c71==null?void 0x0:_0x604c71[_0x3d29a3(0x240)]();if(!_0x5eafe8)return!0x1;this[_0x3d29a3(0x29f)]['disposeUnit'](_0x85b934);let _0x660f46=await this[_0x3d29a3(0x26c)][_0x3d29a3(0x1f2)](_0x85b934,_0x1501c2['UNIVER_SHEET']);return _0x660f46&&_0x660f46 instanceof _0x26a77f?(await this[_0x3d29a3(0x29e)](_0x660f46,_0x5eafe8[_0x3d29a3(0x218)]()),!0x0):!0x1;});}}));}[_0x257921(0x249)](_0x50a68b,_0x6bb3bd,_0x4ef1ec=!0x1){const _0x8936a9=_0x257921;let _0x454e14=_0xa79016([_0x50a68b['session'][_0x8936a9(0x272)],_0x50a68b[_0x8936a9(0x1f7)]])[_0x8936a9(0x26a)](async([_0x4ea9c7,_0x110b38])=>{const _0x2b12de=_0x8936a9;if(_0x4ea9c7[_0x2b12de(0x278)]===_0x5089a1[_0x2b12de(0x1fa)]&&(_0x110b38==null?void 0x0:_0x110b38[_0x2b12de(0x210)])===_0x4aeda6[_0x2b12de(0x24b)]&&_0x4ea9c7[_0x2b12de(0x27a)][_0x2b12de(0x1e9)]['some'](_0x29bc10=>_0x29bc10['id']===_0x305fa9['id'])&&await _0x6bb3bd()){var _0x3f2d4e;this[_0x2b12de(0x287)][_0x2b12de(0x262)](),_0x454e14[_0x2b12de(0x265)](),this[_0x2b12de(0x27e)]&&clearTimeout(this[_0x2b12de(0x27e)]),await((_0x3f2d4e=this[_0x2b12de(0x25a)])==null?void 0x0:_0x3f2d4e[_0x2b12de(0x279)]());}});_0x4ef1ec&&(this[_0x8936a9(0x27e)]=setTimeout(()=>{const _0x53eba0=_0x8936a9;_0x454e14['unsubscribe'](),this[_0x53eba0(0x25d)]['show']({'content':this[_0x53eba0(0x247)]['t'](_0x53eba0(0x281)),'type':_0x4345b3[_0x53eba0(0x221)],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x394df0,_0x47e2d3){const _0x5eec8b=_0x257921;await this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3),_0x394df0['activeSheet$'][_0x5eec8b(0x21b)](_0xb434a3(this[_0x5eec8b(0x20a)]))['subscribe'](_0x44a1ef=>{const _0x557994=_0x5eec8b;_0x44a1ef&&this[_0x557994(0x226)](_0x44a1ef);}),this[_0x5eec8b(0x299)]['urlChange$'][_0x5eec8b(0x21b)](_0xb434a3(this['dispose$']))[_0x5eec8b(0x26a)](()=>this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3));}[_0x257921(0x226)](_0x159e12,_0x86f702=!0x1){const _0x32970e=_0x257921;let _0x526db3=this[_0x32970e(0x299)][_0x32970e(0x201)]('subunit');_0x159e12[_0x32970e(0x218)]()!==_0x526db3&&this['_urlService'][_0x32970e(0x234)](_0x32970e(0x1f5),_0x159e12[_0x32970e(0x218)](),_0x86f702);}async[_0x257921(0x280)](_0x2901c9,_0x28260f){const _0x148df0=_0x257921;var _0x1ff694;if(!_0x28260f||!_0x2901c9[_0x148df0(0x1fb)](_0x28260f)){let _0x4643bf=_0x2901c9[_0x148df0(0x255)]()[0x0],_0x2de704=_0x2901c9[_0x148df0(0x1fb)](_0x4643bf);if(!_0x2de704)return;this[_0x148df0(0x226)](_0x2de704,!0x0),await this['_commandService'][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x4643bf});return;}((_0x1ff694=_0x2901c9['getActiveSheet']())==null?void 0x0:_0x1ff694[_0x148df0(0x218)]())!==_0x28260f&&await this[_0x148df0(0x236)][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x28260f});}};Q=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],Q);let $=class extends _0x30cf8f{constructor(_0x2ecf89=R,_0x595997,_0x4c6d25){const _0x4056d0=_0x257921;super(),this['_config']=_0x2ecf89,this['_injector']=_0x595997,this[_0x4056d0(0x20d)]=_0x4c6d25;let {menu:_0x5130c5,..._0x5d63ed}=_0x3bca78({},R,this[_0x4056d0(0x208)]);_0x5130c5&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](_0x4056d0(0x1e7),_0x5130c5,{'merge':!0x0}),this[_0x4056d0(0x20d)][_0x4056d0(0x263)](L,_0x5d63ed),this[_0x4056d0(0x208)]['univerContainerId']&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](U,this[_0x4056d0(0x208)][_0x4056d0(0x23e)]);}[_0x257921(0x25b)](){const _0x4ff547=_0x257921;[[G],[Q]][_0x4ff547(0x20e)](_0x5d2169=>this[_0x4ff547(0x266)][_0x4ff547(0x292)](_0x5d2169));}[_0x257921(0x23f)](){const _0x4f54fc=_0x257921;this[_0x4f54fc(0x266)][_0x4f54fc(0x289)](Q);}};B($,_0x257921(0x24d),_0x7184d6[_0x257921(0x243)]),B($,_0x257921(0x298),_0x257921(0x1ed)),B($,_0x257921(0x22e),ct),B($,_0x257921(0x2a1),lt),$=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x243ccf=_0x4312;(function(_0x4361e8,_0x19f28c){const _0x397fed=_0x4312,_0x490b6f=_0x4361e8();while(!![]){try{const _0x519574=-parseInt(_0x397fed(0x16b))/0x1+parseInt(_0x397fed(0x15b))/0x2+-parseInt(_0x397fed(0x127))/0x3+-parseInt(_0x397fed(0xd9))/0x4*(-parseInt(_0x397fed(0x16d))/0x5)+parseInt(_0x397fed(0x17d))/0x6+parseInt(_0x397fed(0x119))/0x7*(-parseInt(_0x397fed(0x16a))/0x8)+parseInt(_0x397fed(0x171))/0x9;if(_0x519574===_0x19f28c)break;else _0x490b6f['push'](_0x490b6f['shift']());}catch(_0x343ca5){_0x490b6f['push'](_0x490b6f['shift']());}}}(_0xa6ad,0x43304));function _0x4312(_0x4570bf,_0x2bf0ae){_0x4570bf=_0x4570bf-0xc0;const _0xa6ad6=_0xa6ad();let _0x4312f2=_0xa6ad6[_0x4570bf];return _0x4312f2;}import{CommandType as _0x19c209,DependentOn as _0x1b35d9,Disposable as _0x56b781,DisposableCollection as _0x16a15f,IAuthzIoService as _0x2a6fc8,ICommandService as _0x2950a0,IConfigService as _0x88d7b9,IPermissionService as _0xabeabb,IUniverInstanceService as _0x564820,Inject as _0x2a08b4,Injector as _0x215a8e,LocaleService as _0x587fa0,Plugin as _0x25956b,RxDisposable as _0x531dc7,ThemeService as _0x537b2f,Univer as _0x597837,UniverInstanceType as _0xf2429e,Workbook as _0x1b4b80,merge as _0x32845e,toDisposable as _0x3ff83f}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0xd88977,RangeProtectionRuleModel as _0x96c5d3,SetWorksheetActivateCommand as _0x1a252d,UniverSheetsPlugin as _0x229c6e,WorkbookEditablePermission as _0x582020,WorkbookRecoverHistoryPermission as _0x28c852,WorkbookViewHistoryPermission as _0x55d453,WorksheetEditPermission as _0x5e198a,getSheetCommandTarget as _0x46712e}from'@univerjs/sheets';import{CollaborationEvent as _0x22e3de,RevertRevisionMutation as _0x377181,UniverCollaborationPlugin as _0x3a2dd8}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x30848d,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x112339,CollaborationController as _0x1ac924,CollaborationStatus as _0x20abcb,DataLoaderService as _0x1cb31c,ILocalCacheService as _0x5c1847}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x2e09fa,HistoryModeStatus as _0x325997,UniverEditHistoryViewerMobilePlugin as _0x50eafa,UniverEditHistoryViewerPlugin as _0x3c5bc0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3f10cc,UniverLicensePlugin as _0x4635cb}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x4547f8}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x4bd2ad}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x1738de}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x3f2809}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x14d349}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x50f95}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0xde840f}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x3183e5}from'@univerjs/data-validation';import{MessageType as _0x3ed100}from'@univerjs/design';import{UniverDocsPlugin as _0x15c8d9}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x35946a}from'@univerjs/docs-ui';import{IImageIoService as _0x1bda32,UniverDrawingPlugin as _0x2fd5e3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x24e1ef}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3fd7eb}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48739e}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x54d2a0}from'@univerjs/network';import{IRemoteInstanceService as _0x177025,UniverRPCMainThreadPlugin as _0x3b8b6a}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x413776}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4695f1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x2110ca}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x534673,UniverSheetsDataValidationUIPlugin as _0x3f106b}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x1043fa}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2c80da}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x1c517a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x3d34fa}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x512067}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x2b5539}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x2ea082}from'@univerjs/sheets-hyper-link';function _0xa6ad(){const _0x4eb1e7=['getUnhiddenWorksheets','status$','_initContainer','get','202134bVxFmS','permissionId','call','object','value','_selectionProtectionRuleModel','Error','0.20.0','getParam','toPrimitive','darkMode$','fromCollab','subscribe','_sidebarService','activeSheet$','forEach','disposeWithMe','_messageService','_pluginMap','values','createElement','event$','from','appendChild','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','top','getLocales','setLocale','getSheetBySheetId','_updateSubUnitFromURLParams','composePermission','SYNCED','next','CHANGESET_ACK','asObservable','getUnit','prototype','decorate','none','onCommandExecuted','style','historyUniver','historyPanelHidden','\x20has\x20been\x20registered.','triggerLoadVersions','dispose$','registerPlugin','getCurrentUnitOfType','height','string','_config','581350ADJLJZ','data','univer-container','urlChange$','_handleRevertAcknowledgement','setDarkMode','length','defineProperty','onSteady','_localeService','_commandService','map','show','version','left','878152qPPGXJ','322943zhSjPQ','some','11125ezHkCY','_init','@univerjs-pro/edit-history-loader','has','4160331JtSAGl','dataset','display','_permissionService','every','getCurrentLocale','status','getUnitId','[HistoryLoaderService]:\x20Plugin\x20','getAllPlugins','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','invoke','1064238WfBNVQ','historyPanelComponentKey','params','zIndex','exhaustSavingTask','_internalWebWorker','executeCommand','__getInjector','univer.operation.toggle-edit-history','loadUnit','_updateURLWithCurrentState','removeAll','historyUniver$','setTheme','getConfig','session','dispose','editHistory.panel.listFetchError','_menuManagerService','workerURL','unMountHistoryContent','mountHistoryContent','flat','add','_revertErrorTimer','_historyUniver$','_univerInstanceService','triggerCustomVersions','_initPlugins','getElementById','116oswmsI','_injector','univerContainerId','_dialogService','_disposableCollection','_configService','_collaborationController','getCollabEntity','HistoryIcon','_localCacheService','block','state$','setConfig','type','OPERATION','closeAll','clear','div','currentTheme$','Entered','getSheets','getActiveSheet','mutations','function','_initUniver','_setupSubUnitSync','editHistory.panel.reverting','edit-history-loader.config','revertRevision$','register','terminate','uComp','100%','UNIVER_SHEET','pipe','mergeMenu','Exited','Loading','disposeUnit','_urlService','UNIVER_CONTAINER_ID','menu','position','_dataLoaderService','_initListener','getSubunitRuleList','then','historyListServerUrl','BUTTON','_checkCanRevert','setParam','symbol','subunit','reload','_componentManager','UNIVER_UNKNOWN','onStarting','close','_themeService','default','history-container','absolute','getSheetId','packageName','21urmQJa','_historyManagerService','editHistory.panel.revertFailed','getOwnPropertyDescriptor','eventID','pluginName','unsubscribe','width','editHistory.info.initializing','location'];_0xa6ad=function(){return _0x4eb1e7;};return _0xa6ad();}import{UniverSheetsHyperLinkUIPlugin as _0x3027ab}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3e1fcb}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x4194b9}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x4864b9,UniverSheetsUIPlugin as _0x4d5580,getCurrentRangeDisable$ as _0x2d08bc}from'@univerjs/sheets-ui';import{ComponentManager as _0x25a01f,IDialogService as _0x4cdca8,IMenuManagerService as _0x1b22c3,IMessageService as _0x53e474,ISidebarService as _0x3f28b5,MenuItemType as _0x5a8475,RibbonStartGroup as _0x2c4b0f,UniverMobileUIPlugin as _0x53a928,UniverUIPlugin as _0x577dbf,getMenuHiddenObservable as _0x13d426}from'@univerjs/ui';import{BehaviorSubject as _0x190d06,combineLatest as _0x1b6270,takeUntil as _0x25d598}from'rxjs';import{IURLService as _0x465855}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x4e8247}from'@univerjs/icons';import{UniverType as _0x510b10}from'@univerjs/protocol';const L=_0x243ccf(0xf4);Symbol(L);const R={};function z(_0x45e6e2){'@babel/helpers - typeof';const _0x2204e8=_0x243ccf;return z=typeof Symbol==_0x2204e8(0xf0)&&typeof Symbol['iterator']=='symbol'?function(_0x4bbc59){return typeof _0x4bbc59;}:function(_0x34b05d){const _0x53f816=_0x2204e8;return _0x34b05d&&typeof Symbol=='function'&&_0x34b05d['constructor']===Symbol&&_0x34b05d!==Symbol[_0x53f816(0x14c)]?_0x53f816(0x10c):typeof _0x34b05d;},z(_0x45e6e2);}function ot(_0x1729fb,_0x1a5d5b){const _0x429825=_0x243ccf;if(z(_0x1729fb)!=_0x429825(0x12a)||!_0x1729fb)return _0x1729fb;var _0x2b4c37=_0x1729fb[Symbol[_0x429825(0x130)]];if(_0x2b4c37!==void 0x0){var _0x243ddf=_0x2b4c37[_0x429825(0x129)](_0x1729fb,_0x1a5d5b||_0x429825(0x114));if(z(_0x243ddf)!='object')return _0x243ddf;throw TypeError(_0x429825(0x140));}return(_0x1a5d5b===_0x429825(0x159)?String:Number)(_0x1729fb);}function st(_0x4fc8d5){const _0x62f4e3=_0x243ccf;var _0xa175ff=ot(_0x4fc8d5,_0x62f4e3(0x159));return z(_0xa175ff)==_0x62f4e3(0x10c)?_0xa175ff:_0xa175ff+'';}function B(_0x5fd0d4,_0x271b3a,_0x1ac3ac){const _0x283b9f=_0x243ccf;return(_0x271b3a=st(_0x271b3a))in _0x5fd0d4?Object[_0x283b9f(0x162)](_0x5fd0d4,_0x271b3a,{'value':_0x1ac3ac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5fd0d4[_0x271b3a]=_0x1ac3ac,_0x5fd0d4;}function V(_0x45c91c,_0x532f05){return function(_0x37d117,_0x5d3f1c){_0x532f05(_0x37d117,_0x5d3f1c,_0x45c91c);};}function H(_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d){const _0x43c0b6=_0x243ccf;var _0x586334=arguments[_0x43c0b6(0x161)],_0xd2a101=_0x586334<0x3?_0x4cb393:_0x562a8d===null?_0x562a8d=Object[_0x43c0b6(0x11c)](_0x4cb393,_0x39ec48):_0x562a8d,_0x5986f3;if(typeof Reflect==_0x43c0b6(0x12a)&&typeof Reflect[_0x43c0b6(0x14d)]==_0x43c0b6(0xf0))_0xd2a101=Reflect[_0x43c0b6(0x14d)](_0x22a57a,_0x4cb393,_0x39ec48,_0x562a8d);else{for(var _0x3a7bab=_0x22a57a[_0x43c0b6(0x161)]-0x1;_0x3a7bab>=0x0;_0x3a7bab--)(_0x5986f3=_0x22a57a[_0x3a7bab])&&(_0xd2a101=(_0x586334<0x3?_0x5986f3(_0xd2a101):_0x586334>0x3?_0x5986f3(_0x4cb393,_0x39ec48,_0xd2a101):_0x5986f3(_0x4cb393,_0x39ec48))||_0xd2a101);}return _0x586334>0x3&&_0xd2a101&&Object[_0x43c0b6(0x162)](_0x4cb393,_0x39ec48,_0xd2a101),_0xd2a101;}const U=_0x243ccf(0x101),W='univer-history-container';let G=class extends _0x56b781{constructor(_0x417fc9,_0x5c5e02,_0x3ff731,_0x33b5b0,_0x438c8a,_0x35ff2e,_0x5d4abb,_0x19ea4b,_0x165d23,_0x4e08ac){const _0x58ee91=_0x243ccf;super(),this[_0x58ee91(0x164)]=_0x417fc9,this['_univerInstanceService']=_0x5c5e02,this['_configService']=_0x3ff731,this[_0x58ee91(0x165)]=_0x33b5b0,this[_0x58ee91(0x138)]=_0x438c8a,this[_0x58ee91(0x174)]=_0x35ff2e,this['_selectionProtectionRuleModel']=_0x5d4abb,this[_0x58ee91(0xdc)]=_0x19ea4b,this[_0x58ee91(0x134)]=_0x165d23,this[_0x58ee91(0x113)]=_0x4e08ac,B(this,_0x58ee91(0xd4),new _0x190d06(null)),B(this,_0x58ee91(0xc7),this[_0x58ee91(0xd4)][_0x58ee91(0x14a)]()),B(this,'_disposableCollection',new _0x16a15f()),B(this,_0x58ee91(0x139),new Map()),B(this,_0x58ee91(0xc0),null),this[_0x58ee91(0x16e)]();}get[_0x243ccf(0x151)](){return this['_historyUniver$']['value'];}['_init'](){const _0x3eeb13=_0x243ccf;this[_0x3eeb13(0x125)](),this[_0x3eeb13(0xd7)]();}[_0x243ccf(0x125)](){const _0x21aa50=_0x243ccf;var _0x326ded;let _0x20cfa=(_0x326ded=this[_0x21aa50(0xde)][_0x21aa50(0xc9)]('UNIVER_CONTAINER_ID'))==null?'univer-container':_0x326ded,_0x9b6225=document['getElementById'](_0x20cfa);if(!_0x9b6225)return;let _0x489061=document[_0x21aa50(0x13b)](_0x21aa50(0xea));_0x489061['id']=W,_0x489061[_0x21aa50(0x172)][_0x21aa50(0xf8)]=_0x21aa50(0x115),_0x489061[_0x21aa50(0x150)]['position']='absolute',_0x489061['style'][_0x21aa50(0x141)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x169)]='0',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x120)]='100%',_0x489061[_0x21aa50(0x150)][_0x21aa50(0x158)]='100%',_0x489061[_0x21aa50(0x150)]['zIndex']='49',_0x489061['style'][_0x21aa50(0x173)]=_0x21aa50(0x14e),_0x9b6225[_0x21aa50(0x13e)](_0x489061);}[_0x243ccf(0xd7)](){const _0xc4c06f=_0x243ccf;[[_0x48739e],[_0x577dbf,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4d5580],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x3d34fa],[_0x413776],[_0x4695f1],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x3f106b],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]]['forEach'](([_0x1084b8,_0x3151b3])=>this[_0xc4c06f(0x156)](_0x1084b8,_0x3151b3));}['dispose'](){const _0x7cbe86=_0x243ccf;super['dispose'](),this[_0x7cbe86(0xcf)](),this['_pluginMap']['clear']();}[_0x243ccf(0x156)](_0x10bf8d,_0x577393,_0xfb619e){const _0x1647f2=_0x243ccf;if(this['_pluginMap'][_0x1647f2(0x170)](_0x10bf8d[_0x1647f2(0x11e)])&&!_0xfb619e)throw Error(_0x1647f2(0x179)+_0x10bf8d[_0x1647f2(0x11e)]+_0x1647f2(0x153));this[_0x1647f2(0x139)]['set'](_0x10bf8d['pluginName'],[_0x10bf8d,_0x577393]);}[_0x243ccf(0x17a)](){const _0x52d762=_0x243ccf;return Array[_0x52d762(0x13d)](this[_0x52d762(0x139)][_0x52d762(0x13a)]());}['mountHistoryContent'](_0x779098,_0x1aa86a){const _0x4fab1f=_0x243ccf;let _0x328f13=document[_0x4fab1f(0xd8)](W);_0x328f13&&(_0x328f13[_0x4fab1f(0x150)][_0x4fab1f(0x173)]=_0x4fab1f(0xe3),this[_0x4fab1f(0xf1)](_0x779098,W,_0x1aa86a));}['unMountHistoryContent'](){const _0x1e519e=_0x243ccf;var _0xb2ff48;this['_disposableCollection']['dispose'](),(_0xb2ff48=this[_0x1e519e(0x151)])==null||_0xb2ff48[_0x1e519e(0xcb)](),this[_0x1e519e(0xd4)][_0x1e519e(0x148)](null);let _0x2aa2eb=document[_0x1e519e(0xd8)](W);_0x2aa2eb&&(_0x2aa2eb[_0x1e519e(0x150)][_0x1e519e(0x173)]=_0x1e519e(0x14e),this['_internalWebWorker']&&(this['_internalWebWorker'][_0x1e519e(0xf7)](),this['_internalWebWorker']=null));}[_0x243ccf(0xf1)](_0x5f408d,_0x522cb9,_0x587617){const _0x2f9264=_0x243ccf;var _0x1fe2a6,_0x323ddb,_0x316774,_0x3edad0,_0x578637;if(this[_0x2f9264(0x151)])return;let _0x9009c3=new _0x597837({'locales':{[this['_localeService'][_0x2f9264(0x176)]()]:this['_localeService']['getLocales']()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x140c82=_0x9009c3[_0x2f9264(0xc2)]();this['disposeWithMe'](this['_themeService'][_0x2f9264(0x131)]['subscribe'](_0x30b1e2=>{const _0x34d817=_0x2f9264;_0x140c82[_0x34d817(0x126)](_0x537b2f)[_0x34d817(0x160)](_0x30b1e2);})),this[_0x2f9264(0x137)](this[_0x2f9264(0x113)][_0x2f9264(0xeb)][_0x2f9264(0x133)](_0x3fef4a=>{const _0x2ed726=_0x2f9264;_0x140c82['get'](_0x537b2f)[_0x2ed726(0xc8)](_0x3fef4a);})),_0x140c82['get'](_0x587fa0)[_0x2f9264(0x143)](this[_0x2f9264(0x164)][_0x2f9264(0x176)]()),_0x140c82[_0x2f9264(0x126)](_0x88d7b9)['setConfig'](_0x112339,this['_configService'][_0x2f9264(0xc9)](_0x112339));let _0x84b9b=this[_0x2f9264(0xde)]['getConfig'](_0x3f10cc);_0x84b9b&&_0x9009c3[_0x2f9264(0x156)](_0x4635cb,{'license':_0x84b9b['ls']});let _0x8c2325=(_0x1fe2a6=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x1fe2a6[_0x2f9264(0xce)],_0x526ff9=!!_0x8c2325;_0x526ff9&&(this[_0x2f9264(0xc0)]=_0x8c2325 instanceof Worker?_0x8c2325:null,_0x9009c3[_0x2f9264(0x156)](_0x3b8b6a,{'workerURL':_0x8c2325})),this[_0x2f9264(0x139)][_0x2f9264(0x136)](([_0x2aa22e,_0x435e9e])=>{const _0xa1fc3e=_0x2f9264;_0x9009c3[_0xa1fc3e(0x156)](_0x2aa22e,_0x435e9e);}),_0x9009c3[_0x2f9264(0x156)](_0x3c5bc0,{'historyListServerUrl':(_0x323ddb=this['_configService'][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x323ddb['historyListServerUrl'],'historyPanelComponentKey':(_0x316774=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x316774[_0x2f9264(0x17e)],'historyPanelHidden':(_0x3edad0=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3edad0[_0x2f9264(0x152)],'historyAIassistantEnabled':(_0x578637=this[_0x2f9264(0xde)][_0x2f9264(0xc9)](_0x2f9264(0xf4)))==null?void 0x0:_0x578637['historyAIassistantEnabled']}),_0x140c82['invoke'](_0x3fc5d5=>{this['_initListener'](_0x3fc5d5,_0x5f408d);}),this[_0x2f9264(0xd4)][_0x2f9264(0x148)](_0x9009c3);let _0x4ccca4=_0x140c82['get'](_0x2e09fa),_0x1e46e2=this[_0x2f9264(0x10a)](_0x5f408d),_0x12e780=()=>{const _0x43a28e=_0x2f9264;_0x587617?_0x4ccca4[_0x43a28e(0xd6)](_0x5f408d,_0x522cb9,_0x1e46e2,_0x587617):_0x4ccca4[_0x43a28e(0x154)](_0x5f408d,_0x522cb9,_0x1e46e2);};if(this['_messageService']['show']({'content':this[_0x2f9264(0x164)]['t'](_0x2f9264(0x121)),'type':_0x3ed100['Loading']}),_0x526ff9)try{_0x140c82['get'](_0x177025)['whenReady']()[_0x2f9264(0x107)](()=>{_0x12e780();});}catch{_0x12e780();}else _0x12e780();}[_0x243ccf(0x105)](_0x34810e,_0x1ca791){const _0x24195c=_0x243ccf;let _0x5c5575=_0x34810e['get'](_0x2e09fa);this['_disposableCollection']['add'](_0x5c5575['status$'][_0x24195c(0x133)](_0x14fc31=>{const _0x46e7b4=_0x24195c;switch(_0x14fc31){case _0x325997[_0x46e7b4(0xec)]:this[_0x46e7b4(0xdc)][_0x46e7b4(0xe8)](),this[_0x46e7b4(0x134)][_0x46e7b4(0x112)]();break;case _0x325997[_0x46e7b4(0xfd)]:this[_0x46e7b4(0x165)][_0x46e7b4(0xc1)](q['id']),this[_0x46e7b4(0xcf)]();break;case _0x325997[_0x46e7b4(0x12d)]:this[_0x46e7b4(0xcf)](),this[_0x46e7b4(0x138)][_0x46e7b4(0x167)]({'content':this[_0x46e7b4(0x164)]['t'](_0x46e7b4(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x24195c(0xdd)][_0x24195c(0xd2)](_0x5c5575[_0x24195c(0xf5)]['subscribe'](async _0x3ea2ff=>{_0x3ea2ff&&this['_commandService']['executeCommand'](_0x377181['id'],{'unitId':_0x1ca791,'revision':_0x3ea2ff});}));}[_0x243ccf(0x10a)](_0x54fd14){const _0x5661bd=_0x243ccf;let _0x1d277e=this['_univerInstanceService'][_0x5661bd(0x14b)](_0x54fd14)[_0x5661bd(0xed)]()[_0x5661bd(0x166)](_0x510c26=>_0x510c26[_0x5661bd(0x117)]()),_0x2c78ed=new _0x582020(_0x54fd14)['id'],_0x5dac24=_0x1d277e[_0x5661bd(0x166)](_0x1d580f=>new _0x5e198a(_0x54fd14,_0x1d580f)['id']),_0x1918a1=_0x1d277e[_0x5661bd(0x166)](_0x4c651f=>this[_0x5661bd(0x12c)][_0x5661bd(0x106)](_0x54fd14,_0x4c651f)['map'](_0x428730=>new _0xd88977(_0x54fd14,_0x4c651f,_0x428730[_0x5661bd(0x128)])['id']))['flat'](),_0x8548ff=new _0x28c852(_0x54fd14)['id'];return this[_0x5661bd(0x174)][_0x5661bd(0x146)]([_0x2c78ed,..._0x5dac24,..._0x1918a1,_0x8548ff])['every'](_0x1c2252=>!!_0x1c2252['value']);}};G=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],G);const K={'id':_0x243ccf(0xc3),'type':_0x19c209[_0x243ccf(0xe7)],'handler':_0xfb236=>{const _0x562aca=_0x243ccf;let _0xd88dee=_0xfb236[_0x562aca(0x126)](G),{unitId:_0x4734b5}=_0x46712e(_0xfb236['get'](_0x564820))||{};return _0x4734b5?(_0xd88dee[_0x562aca(0xd0)](_0x4734b5),!0x0):!0x1;}},q={'id':'univer.operation.exit-edit-history','type':_0x19c209[_0x243ccf(0xe7)],'handler':()=>!0x0};var ct=_0x243ccf(0x16f),lt=_0x243ccf(0x12e);function ut(_0x5f56fb){const _0x3da472=_0x243ccf;return{'id':K['id'],'type':_0x5a8475[_0x3da472(0x109)],'icon':_0x3da472(0xe1),'tooltip':'editHistory.panel.title','hidden$':_0x13d426(_0x5f56fb,_0xf2429e['UNIVER_SHEET']),'disabled$':_0x2d08bc(_0x5f56fb,{'workbookTypes':[_0x582020,_0x55d453],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x2c4b0f['OTHERS']]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x531dc7{constructor(_0x531dab,_0x3bc484,_0x267cde,_0x1cc890,_0x12b7ac,_0xe5a96,_0x30748e,_0x4cad27,_0x3f724c,_0xec8a72,_0x4e6dd5){const _0x4ebd5a=_0x243ccf;super(),this[_0x4ebd5a(0x165)]=_0x531dab,this[_0x4ebd5a(0xcd)]=_0x3bc484,this['_componentManager']=_0x267cde,this['_historyManagerService']=_0x1cc890,this[_0x4ebd5a(0x164)]=_0x12b7ac,this[_0x4ebd5a(0x138)]=_0xe5a96,this[_0x4ebd5a(0xdf)]=_0x30748e,this[_0x4ebd5a(0xe2)]=_0x4cad27,this[_0x4ebd5a(0x104)]=_0x3f724c,this['_univerInstanceService']=_0xec8a72,this['_urlService']=_0x4e6dd5,B(this,'_revertErrorTimer',null),this[_0x4ebd5a(0x16e)]();}[_0x243ccf(0x16e)](){const _0x51c7a3=_0x243ccf;[K,q]['forEach'](_0x359081=>this[_0x51c7a3(0x137)](_0x3ff83f(this[_0x51c7a3(0x165)]['registerCommand'](_0x359081)))),this[_0x51c7a3(0x137)](this[_0x51c7a3(0x10f)][_0x51c7a3(0xf6)](_0x51c7a3(0xe1),_0x4e8247)),this[_0x51c7a3(0xcd)][_0x51c7a3(0xfc)](dt),this['disposeWithMe'](this[_0x51c7a3(0x165)][_0x51c7a3(0x14f)](async(_0x52efc4,_0x5a5d02)=>{const _0x4ba5d6=_0x51c7a3;if(_0x52efc4['id']===_0x377181['id']){let {unitId:_0x34c088}=_0x52efc4[_0x4ba5d6(0x17f)];this[_0x4ba5d6(0x138)][_0x4ba5d6(0x167)]({'content':this[_0x4ba5d6(0x164)]['t'](_0x4ba5d6(0xf3)),'type':_0x3ed100[_0x4ba5d6(0xfe)],'duration':0x1388});let _0x50426c=this[_0x4ba5d6(0xdf)]['getCollabEntity'](_0x34c088);_0x5a5d02!=null&&_0x5a5d02['fromCollab']?this[_0x4ba5d6(0x15f)](_0x50426c,async()=>(setTimeout(()=>window[_0x4ba5d6(0x122)][_0x4ba5d6(0x10e)]()),!0x0),!0x0):this[_0x4ba5d6(0x15f)](_0x50426c,async()=>{const _0x1ef363=_0x4ba5d6;let _0x58f189=this['_univerInstanceService'][_0x1ef363(0x157)](_0x510b10[_0x1ef363(0xfa)]),_0x54b2b4=_0x58f189==null?void 0x0:_0x58f189[_0x1ef363(0xee)]();if(!_0x54b2b4)return!0x1;this[_0x1ef363(0xd5)][_0x1ef363(0xff)](_0x34c088);let _0x111dbc=await this[_0x1ef363(0x104)][_0x1ef363(0xc4)](_0x34c088,_0x510b10[_0x1ef363(0xfa)]);return _0x111dbc&&_0x111dbc instanceof _0x1b4b80?(await this[_0x1ef363(0xf2)](_0x111dbc,_0x54b2b4['getSheetId']()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x2a7060,_0x59c45d,_0x5aa092=!0x1){const _0x581fe7=_0x243ccf;let _0x51a454=_0x1b6270([_0x2a7060[_0x581fe7(0xca)][_0x581fe7(0x13c)],_0x2a7060[_0x581fe7(0xe4)]])['subscribe'](async([_0x57a8f7,_0x213a50])=>{const _0x1ac2ea=_0x581fe7;if(_0x57a8f7['eventID']===_0x22e3de[_0x1ac2ea(0x149)]&&(_0x213a50==null?void 0x0:_0x213a50[_0x1ac2ea(0x177)])===_0x20abcb[_0x1ac2ea(0x147)]&&_0x57a8f7[_0x1ac2ea(0x15c)][_0x1ac2ea(0xef)][_0x1ac2ea(0x16c)](_0x4cc6c8=>_0x4cc6c8['id']===_0x377181['id'])&&await _0x59c45d()){var _0x3461c6;this[_0x1ac2ea(0x11a)][_0x1ac2ea(0xcf)](),_0x51a454[_0x1ac2ea(0x11f)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x3461c6=this[_0x1ac2ea(0xe2)])==null?void 0x0:_0x3461c6[_0x1ac2ea(0x181)]()),this['_messageService'][_0x1ac2ea(0xc6)]();}});_0x5aa092&&(this['_revertErrorTimer']=setTimeout(()=>{const _0x549f45=_0x581fe7;_0x51a454[_0x549f45(0x11f)](),this[_0x549f45(0x138)][_0x549f45(0x167)]({'content':this[_0x549f45(0x164)]['t'](_0x549f45(0x11b)),'type':_0x3ed100[_0x549f45(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x5f5c47,_0x43d2c8){const _0x497793=_0x243ccf;await this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8),_0x5f5c47[_0x497793(0x135)]['pipe'](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](_0x287be7=>{const _0x1cd965=_0x497793;_0x287be7&&this[_0x1cd965(0xc5)](_0x287be7);}),this[_0x497793(0x100)][_0x497793(0x15e)][_0x497793(0xfb)](_0x25d598(this[_0x497793(0x155)]))[_0x497793(0x133)](()=>this[_0x497793(0x145)](_0x5f5c47,_0x43d2c8));}[_0x243ccf(0xc5)](_0x15eed2,_0x37a1f4=!0x1){const _0x35b1e0=_0x243ccf;let _0x12c401=this[_0x35b1e0(0x100)][_0x35b1e0(0x12f)](_0x35b1e0(0x10d));_0x15eed2[_0x35b1e0(0x117)]()!==_0x12c401&&this['_urlService'][_0x35b1e0(0x10b)](_0x35b1e0(0x10d),_0x15eed2[_0x35b1e0(0x117)](),_0x37a1f4);}async['_updateSubUnitFromURLParams'](_0x567f0a,_0x1f05e){const _0x5780c1=_0x243ccf;var _0x2c9ed8;if(!_0x1f05e||!_0x567f0a['getSheetBySheetId'](_0x1f05e)){let _0x4b0ed8=_0x567f0a[_0x5780c1(0x123)]()[0x0],_0x50527f=_0x567f0a[_0x5780c1(0x144)](_0x4b0ed8);if(!_0x50527f)return;this[_0x5780c1(0xc5)](_0x50527f,!0x0),await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x4b0ed8});return;}((_0x2c9ed8=_0x567f0a[_0x5780c1(0xee)]())==null?void 0x0:_0x2c9ed8[_0x5780c1(0x117)]())!==_0x1f05e&&await this[_0x5780c1(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x567f0a[_0x5780c1(0x178)](),'subUnitId':_0x1f05e});}};J=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],J);const Y='univer-history-container-mobile';let X=class extends _0x56b781{constructor(_0x2eff19,_0x48135e,_0x14a30d,_0x4cc662,_0x4d24d9,_0x16b8ac,_0x55a70c,_0x856df1,_0xa2bb99,_0x254bcb){const _0x24c2c5=_0x243ccf;super(),this[_0x24c2c5(0x164)]=_0x2eff19,this[_0x24c2c5(0xd5)]=_0x48135e,this['_configService']=_0x14a30d,this[_0x24c2c5(0x165)]=_0x4cc662,this[_0x24c2c5(0x138)]=_0x4d24d9,this['_permissionService']=_0x16b8ac,this[_0x24c2c5(0x12c)]=_0x55a70c,this[_0x24c2c5(0xdc)]=_0x856df1,this[_0x24c2c5(0x134)]=_0xa2bb99,this['_themeService']=_0x254bcb,B(this,_0x24c2c5(0xd4),new _0x190d06(null)),B(this,_0x24c2c5(0xc7),this['_historyUniver$'][_0x24c2c5(0x14a)]()),B(this,_0x24c2c5(0xdd),new _0x16a15f()),B(this,_0x24c2c5(0x139),new Map()),B(this,'_internalWebWorker',null),this[_0x24c2c5(0x16e)]();}get[_0x243ccf(0x151)](){const _0x485df=_0x243ccf;return this[_0x485df(0xd4)]['value'];}[_0x243ccf(0x16e)](){const _0x9d5d6a=_0x243ccf;this[_0x9d5d6a(0x125)](),this[_0x9d5d6a(0xd7)]();}['_initContainer'](){const _0x270b24=_0x243ccf;var _0xc8a5b;let _0x5dd605=(_0xc8a5b=this[_0x270b24(0xde)]['getConfig'](_0x270b24(0x101)))==null?_0x270b24(0x15d):_0xc8a5b,_0x189a8a=document[_0x270b24(0xd8)](_0x5dd605);if(!_0x189a8a)return;let _0x1212c8=document['createElement']('div');_0x1212c8['id']=Y,_0x1212c8[_0x270b24(0x172)][_0x270b24(0xf8)]=_0x270b24(0x115),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x103)]=_0x270b24(0x116),_0x1212c8['style']['top']='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x169)]='0',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x120)]='100%',_0x1212c8['style'][_0x270b24(0x158)]=_0x270b24(0xf9),_0x1212c8[_0x270b24(0x150)][_0x270b24(0x180)]='49',_0x1212c8[_0x270b24(0x150)][_0x270b24(0x173)]='none',_0x189a8a[_0x270b24(0x13e)](_0x1212c8);}[_0x243ccf(0xd7)](){const _0x2d47f2=_0x243ccf;[[_0x48739e],[_0x53a928,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x4cdca8,null]]}],[_0x54d2a0],[_0x2fd5e3,{'override':[[_0x1bda32,null]]}],[_0x15c8d9,{'hasScroll':!0x1}],[_0x35946a],[_0x3e1fcb],[_0x229c6e,{'notExecuteFormula':!0x0}],[_0x4864b9],[_0x512067],[_0x2b5539],[_0x3a2dd8],[_0x1c517a],[_0x413776],[_0x2ea082],[_0x3027ab],[_0x3183e5],[_0x2110ca],[_0x534673],[_0x3fd7eb,{'notExecuteFormula':!0x0}],[_0x24e1ef],[_0x1043fa],[_0x2c80da],[_0x50f95],[_0xde840f],[_0x4547f8],[_0x4bd2ad],[_0x3f2809],[_0x14d349],[_0x1738de,{'notExecuteFormula':!0x0}],[_0x4194b9]][_0x2d47f2(0x136)](([_0x3ae166,_0x233d68])=>this[_0x2d47f2(0x156)](_0x3ae166,_0x233d68));}[_0x243ccf(0xcb)](){const _0x54b05d=_0x243ccf;super[_0x54b05d(0xcb)](),this[_0x54b05d(0xcf)](),this[_0x54b05d(0x139)][_0x54b05d(0xe9)]();}['registerPlugin'](_0x5be1c4,_0x14a440,_0x5e7aa6){const _0xbc8da9=_0x243ccf;if(this[_0xbc8da9(0x139)][_0xbc8da9(0x170)](_0x5be1c4[_0xbc8da9(0x11e)])&&!_0x5e7aa6)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5be1c4[_0xbc8da9(0x11e)]+_0xbc8da9(0x153));this[_0xbc8da9(0x139)][_0xbc8da9(0x13f)](_0x5be1c4[_0xbc8da9(0x11e)],[_0x5be1c4,_0x14a440]);}['getAllPlugins'](){const _0x17f442=_0x243ccf;return Array[_0x17f442(0x13d)](this[_0x17f442(0x139)][_0x17f442(0x13a)]());}[_0x243ccf(0xd0)](_0x358e22,_0x469c1d){const _0x59b9b4=_0x243ccf;let _0x503d60=document[_0x59b9b4(0xd8)](Y);_0x503d60&&(_0x503d60[_0x59b9b4(0x150)][_0x59b9b4(0x173)]=_0x59b9b4(0xe3),this[_0x59b9b4(0xf1)](_0x358e22,Y,_0x469c1d));}[_0x243ccf(0xcf)](){const _0x293e8f=_0x243ccf;var _0x206e66;this['_disposableCollection'][_0x293e8f(0xcb)](),(_0x206e66=this['historyUniver'])==null||_0x206e66[_0x293e8f(0xcb)](),this['_historyUniver$']['next'](null);let _0x10d11a=document[_0x293e8f(0xd8)](Y);_0x10d11a&&(_0x10d11a[_0x293e8f(0x150)][_0x293e8f(0x173)]=_0x293e8f(0x14e),this['_internalWebWorker']&&(this[_0x293e8f(0xc0)][_0x293e8f(0xf7)](),this[_0x293e8f(0xc0)]=null));}['_initUniver'](_0x17b31e,_0x3ed51d,_0x391b34){const _0x19b741=_0x243ccf;var _0x4815fb,_0x2f26cc,_0x98afef,_0x45d987;if(this['historyUniver'])return;let _0x56d4e4=new _0x597837({'locales':{[this[_0x19b741(0x164)][_0x19b741(0x176)]()]:this[_0x19b741(0x164)][_0x19b741(0x142)]()},'override':[[_0x2a6fc8,{'useClass':_0x30848d}]]}),_0x5a6c85=_0x56d4e4[_0x19b741(0xc2)]();this[_0x19b741(0x137)](this[_0x19b741(0x113)][_0x19b741(0x131)]['subscribe'](_0x5b758f=>{const _0x1f8530=_0x19b741;_0x5a6c85[_0x1f8530(0x126)](_0x537b2f)[_0x1f8530(0x160)](_0x5b758f);})),this[_0x19b741(0x137)](this['_themeService'][_0x19b741(0xeb)][_0x19b741(0x133)](_0x17f556=>{const _0x4bdec9=_0x19b741;_0x5a6c85[_0x4bdec9(0x126)](_0x537b2f)['setTheme'](_0x17f556);})),_0x5a6c85[_0x19b741(0x126)](_0x587fa0)[_0x19b741(0x143)](this[_0x19b741(0x164)]['getCurrentLocale']()),_0x5a6c85['get'](_0x88d7b9)[_0x19b741(0xe5)](_0x112339,this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x112339));let _0x4234c2=this[_0x19b741(0xde)][_0x19b741(0xc9)](_0x3f10cc);_0x4234c2&&_0x56d4e4[_0x19b741(0x156)](_0x4635cb,{'license':_0x4234c2['ls']});let _0x29f4b2=(_0x4815fb=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x4815fb[_0x19b741(0xce)],_0x1de1b1=!!_0x29f4b2;_0x1de1b1&&(this[_0x19b741(0xc0)]=_0x29f4b2 instanceof Worker?_0x29f4b2:null,_0x56d4e4[_0x19b741(0x156)](_0x3b8b6a,{'workerURL':_0x29f4b2})),this[_0x19b741(0x139)][_0x19b741(0x136)](([_0x4743c2,_0x5cdb92])=>{const _0x55f18f=_0x19b741;_0x56d4e4[_0x55f18f(0x156)](_0x4743c2,_0x5cdb92);}),_0x56d4e4['registerPlugin'](_0x50eafa,{'historyListServerUrl':(_0x2f26cc=this[_0x19b741(0xde)][_0x19b741(0xc9)]('edit-history-loader.config'))==null?void 0x0:_0x2f26cc[_0x19b741(0x108)],'historyPanelComponentKey':(_0x98afef=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x98afef[_0x19b741(0x17e)],'historyPanelHidden':(_0x45d987=this['_configService'][_0x19b741(0xc9)](_0x19b741(0xf4)))==null?void 0x0:_0x45d987[_0x19b741(0x152)]}),_0x5a6c85[_0x19b741(0x17c)](_0x2785da=>{const _0x215e7c=_0x19b741;this[_0x215e7c(0x105)](_0x2785da,_0x17b31e);}),this[_0x19b741(0xd4)][_0x19b741(0x148)](_0x56d4e4);let _0x28bc3b=_0x5a6c85['get'](_0x2e09fa),_0xb3c34=this[_0x19b741(0x10a)](_0x17b31e),_0xd78343=()=>{const _0x545775=_0x19b741;_0x391b34?_0x28bc3b['triggerCustomVersions'](_0x17b31e,_0x3ed51d,_0xb3c34,_0x391b34):_0x28bc3b[_0x545775(0x154)](_0x17b31e,_0x3ed51d,_0xb3c34);};if(this[_0x19b741(0x138)][_0x19b741(0x167)]({'content':this[_0x19b741(0x164)]['t']('editHistory.info.initializing'),'type':_0x3ed100[_0x19b741(0xfe)]}),_0x1de1b1)try{_0x5a6c85[_0x19b741(0x126)](_0x177025)['whenReady']()['then'](()=>{_0xd78343();});}catch{_0xd78343();}else _0xd78343();}[_0x243ccf(0x105)](_0x1464bf,_0x162832){const _0x548f88=_0x243ccf;let _0x1e7fff=_0x1464bf[_0x548f88(0x126)](_0x2e09fa);this[_0x548f88(0xdd)]['add'](_0x1e7fff[_0x548f88(0x124)][_0x548f88(0x133)](_0x42bda0=>{const _0x521580=_0x548f88;switch(_0x42bda0){case _0x325997[_0x521580(0xec)]:this[_0x521580(0xdc)][_0x521580(0xe8)](),this[_0x521580(0x134)][_0x521580(0x112)]();break;case _0x325997[_0x521580(0xfd)]:this[_0x521580(0x165)][_0x521580(0xc1)](q['id']),this[_0x521580(0xcf)]();break;case _0x325997[_0x521580(0x12d)]:this[_0x521580(0xcf)](),this['_messageService'][_0x521580(0x167)]({'content':this[_0x521580(0x164)]['t'](_0x521580(0xcc)),'type':_0x3ed100['Error'],'duration':0xbb8});break;default:break;}})),this[_0x548f88(0xdd)][_0x548f88(0xd2)](_0x1e7fff[_0x548f88(0xf5)]['subscribe'](async _0x328881=>{const _0x4c7a00=_0x548f88;_0x328881&&this[_0x4c7a00(0x165)][_0x4c7a00(0xc1)](_0x377181['id'],{'unitId':_0x162832,'revision':_0x328881});}));}[_0x243ccf(0x10a)](_0x529d36){const _0x58197e=_0x243ccf;let _0x77743e=this[_0x58197e(0xd5)][_0x58197e(0x14b)](_0x529d36)[_0x58197e(0xed)]()[_0x58197e(0x166)](_0x2117de=>_0x2117de['getSheetId']()),_0x27fb52=new _0x582020(_0x529d36)['id'],_0x35bd67=_0x77743e[_0x58197e(0x166)](_0xcfb21a=>new _0x5e198a(_0x529d36,_0xcfb21a)['id']),_0x9e0380=_0x77743e[_0x58197e(0x166)](_0x4c2793=>this[_0x58197e(0x12c)][_0x58197e(0x106)](_0x529d36,_0x4c2793)['map'](_0x3b40ed=>new _0xd88977(_0x529d36,_0x4c2793,_0x3b40ed[_0x58197e(0x128)])['id']))[_0x58197e(0xd1)](),_0x5e99a1=new _0x28c852(_0x529d36)['id'];return this[_0x58197e(0x174)][_0x58197e(0x146)]([_0x27fb52,..._0x35bd67,..._0x9e0380,_0x5e99a1])[_0x58197e(0x175)](_0x44af8c=>!!_0x44af8c[_0x58197e(0x12b)]);}};X=H([V(0x0,_0x2a08b4(_0x587fa0)),V(0x1,_0x564820),V(0x2,_0x88d7b9),V(0x3,_0x2950a0),V(0x4,_0x53e474),V(0x5,_0xabeabb),V(0x6,_0x2a08b4(_0x96c5d3)),V(0x7,_0x2a08b4(_0x4cdca8)),V(0x8,_0x2a08b4(_0x3f28b5)),V(0x9,_0x2a08b4(_0x537b2f))],X);let Z=class extends _0x25956b{constructor(_0x53b142=R,_0x7b261b,_0x158011){const _0x3738c5=_0x243ccf;super(),this[_0x3738c5(0x15a)]=_0x53b142,this['_injector']=_0x7b261b,this[_0x3738c5(0xde)]=_0x158011;let {menu:_0x255d26,..._0x31e77b}=_0x32845e({},R,this[_0x3738c5(0x15a)]);_0x255d26&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)](_0x3738c5(0x102),_0x255d26,{'merge':!0x0}),this['_configService']['setConfig'](L,_0x31e77b),this['_config']['univerContainerId']&&this[_0x3738c5(0xde)][_0x3738c5(0xe5)]('UNIVER_CONTAINER_ID',this['_config'][_0x3738c5(0xdb)]);}[_0x243ccf(0x111)](){const _0x42a4c8=_0x243ccf;[[G,{'useClass':X}],[J]]['forEach'](_0x301bc9=>this[_0x42a4c8(0xda)]['add'](_0x301bc9));}['onSteady'](){const _0x2a5b77=_0x243ccf;this[_0x2a5b77(0xda)][_0x2a5b77(0x126)](J);}};B(Z,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B(Z,_0x243ccf(0x11e),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x243ccf(0x118),ct),B(Z,_0x243ccf(0x168),lt),Z=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],Z);let Q=class extends _0x531dc7{constructor(_0x335fe6,_0x167d74,_0x45218c,_0xd8e97b,_0x58ba73,_0x5a03ac,_0x1a80fa,_0x1ddf6b,_0xc5fc23,_0x1b0b3f,_0x46074a){const _0xceca1e=_0x243ccf;super(),this[_0xceca1e(0x165)]=_0x335fe6,this[_0xceca1e(0xcd)]=_0x167d74,this[_0xceca1e(0x10f)]=_0x45218c,this[_0xceca1e(0x11a)]=_0xd8e97b,this['_localeService']=_0x58ba73,this[_0xceca1e(0x138)]=_0x5a03ac,this[_0xceca1e(0xdf)]=_0x1a80fa,this[_0xceca1e(0xe2)]=_0x1ddf6b,this[_0xceca1e(0x104)]=_0xc5fc23,this[_0xceca1e(0xd5)]=_0x1b0b3f,this[_0xceca1e(0x100)]=_0x46074a,B(this,_0xceca1e(0xd3),null),this[_0xceca1e(0x16e)]();}['_init'](){const _0xe7fb36=_0x243ccf;[K,q][_0xe7fb36(0x136)](_0x519e40=>this[_0xe7fb36(0x137)](_0x3ff83f(this['_commandService']['registerCommand'](_0x519e40)))),this[_0xe7fb36(0x137)](this[_0xe7fb36(0x10f)][_0xe7fb36(0xf6)](_0xe7fb36(0xe1),_0x4e8247)),this['_menuManagerService'][_0xe7fb36(0xfc)](dt),this['disposeWithMe'](this[_0xe7fb36(0x165)][_0xe7fb36(0x14f)](async(_0x32857e,_0x7eaae1)=>{const _0x557dea=_0xe7fb36;if(_0x32857e['id']===_0x377181['id']){let {unitId:_0x3aafc0}=_0x32857e[_0x557dea(0x17f)];this[_0x557dea(0x138)][_0x557dea(0x167)]({'content':this[_0x557dea(0x164)]['t'](_0x557dea(0xf3)),'type':_0x3ed100[_0x557dea(0xfe)],'duration':0x1388});let _0x1d851d=this['_collaborationController'][_0x557dea(0xe0)](_0x3aafc0);_0x7eaae1!=null&&_0x7eaae1[_0x557dea(0x132)]?this['_handleRevertAcknowledgement'](_0x1d851d,async()=>(setTimeout(()=>window[_0x557dea(0x122)][_0x557dea(0x10e)]()),!0x0),!0x0):this[_0x557dea(0x15f)](_0x1d851d,async()=>{const _0x3ca242=_0x557dea;let _0x112035=this['_univerInstanceService']['getCurrentUnitOfType'](_0x510b10[_0x3ca242(0xfa)]),_0x45d17f=_0x112035==null?void 0x0:_0x112035[_0x3ca242(0xee)]();if(!_0x45d17f)return!0x1;this[_0x3ca242(0xd5)][_0x3ca242(0xff)](_0x3aafc0);let _0x2f27b9=await this[_0x3ca242(0x104)][_0x3ca242(0xc4)](_0x3aafc0,_0x510b10[_0x3ca242(0xfa)]);return _0x2f27b9&&_0x2f27b9 instanceof _0x1b4b80?(await this[_0x3ca242(0xf2)](_0x2f27b9,_0x45d17f[_0x3ca242(0x117)]()),!0x0):!0x1;});}}));}[_0x243ccf(0x15f)](_0x135a4f,_0x125674,_0x2c1a2a=!0x1){const _0x4c5c67=_0x243ccf;let _0x5b62c1=_0x1b6270([_0x135a4f['session']['event$'],_0x135a4f[_0x4c5c67(0xe4)]])[_0x4c5c67(0x133)](async([_0x1b3cf9,_0x906444])=>{const _0x28da2b=_0x4c5c67;if(_0x1b3cf9[_0x28da2b(0x11d)]===_0x22e3de[_0x28da2b(0x149)]&&(_0x906444==null?void 0x0:_0x906444[_0x28da2b(0x177)])===_0x20abcb[_0x28da2b(0x147)]&&_0x1b3cf9['data'][_0x28da2b(0xef)]['some'](_0x4abdd4=>_0x4abdd4['id']===_0x377181['id'])&&await _0x125674()){var _0x4546ca;this[_0x28da2b(0x11a)][_0x28da2b(0xcf)](),_0x5b62c1[_0x28da2b(0x11f)](),this[_0x28da2b(0xd3)]&&clearTimeout(this[_0x28da2b(0xd3)]),await((_0x4546ca=this[_0x28da2b(0xe2)])==null?void 0x0:_0x4546ca[_0x28da2b(0x181)]());}});_0x2c1a2a&&(this[_0x4c5c67(0xd3)]=setTimeout(()=>{const _0x4c5a05=_0x4c5c67;_0x5b62c1[_0x4c5a05(0x11f)](),this[_0x4c5a05(0x138)][_0x4c5a05(0x167)]({'content':this[_0x4c5a05(0x164)]['t'](_0x4c5a05(0x11b)),'type':_0x3ed100[_0x4c5a05(0x12d)],'duration':0xbb8});},0x1388));}async[_0x243ccf(0xf2)](_0x1203f2,_0x1b1036){const _0x51e0b4=_0x243ccf;await this[_0x51e0b4(0x145)](_0x1203f2,_0x1b1036),_0x1203f2['activeSheet$']['pipe'](_0x25d598(this['dispose$']))[_0x51e0b4(0x133)](_0xb1241e=>{const _0x178f6b=_0x51e0b4;_0xb1241e&&this[_0x178f6b(0xc5)](_0xb1241e);}),this[_0x51e0b4(0x100)][_0x51e0b4(0x15e)][_0x51e0b4(0xfb)](_0x25d598(this[_0x51e0b4(0x155)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1203f2,_0x1b1036));}[_0x243ccf(0xc5)](_0x21b3be,_0x39b53f=!0x1){const _0x1c89d7=_0x243ccf;let _0x7ca5ea=this[_0x1c89d7(0x100)][_0x1c89d7(0x12f)](_0x1c89d7(0x10d));_0x21b3be[_0x1c89d7(0x117)]()!==_0x7ca5ea&&this[_0x1c89d7(0x100)][_0x1c89d7(0x10b)](_0x1c89d7(0x10d),_0x21b3be[_0x1c89d7(0x117)](),_0x39b53f);}async[_0x243ccf(0x145)](_0x4f6fbc,_0x45af9a){const _0xd5b615=_0x243ccf;var _0x500f88;if(!_0x45af9a||!_0x4f6fbc[_0xd5b615(0x144)](_0x45af9a)){let _0x3ca466=_0x4f6fbc[_0xd5b615(0x123)]()[0x0],_0x34cecd=_0x4f6fbc['getSheetBySheetId'](_0x3ca466);if(!_0x34cecd)return;this[_0xd5b615(0xc5)](_0x34cecd,!0x0),await this[_0xd5b615(0x165)]['executeCommand'](_0x1a252d['id'],{'unitId':_0x4f6fbc['getUnitId'](),'subUnitId':_0x3ca466});return;}((_0x500f88=_0x4f6fbc[_0xd5b615(0xee)]())==null?void 0x0:_0x500f88['getSheetId']())!==_0x45af9a&&await this[_0xd5b615(0x165)][_0xd5b615(0xc1)](_0x1a252d['id'],{'unitId':_0x4f6fbc[_0xd5b615(0x178)](),'subUnitId':_0x45af9a});}};Q=H([V(0x0,_0x2950a0),V(0x1,_0x1b22c3),V(0x2,_0x2a08b4(_0x25a01f)),V(0x3,_0x2a08b4(G)),V(0x4,_0x2a08b4(_0x587fa0)),V(0x5,_0x53e474),V(0x6,_0x2a08b4(_0x1ac924)),V(0x7,_0x5c1847),V(0x8,_0x2a08b4(_0x1cb31c)),V(0x9,_0x564820),V(0xa,_0x465855)],Q);let $=class extends _0x25956b{constructor(_0x2cb991=R,_0x578436,_0x3487a1){const _0x52f7f7=_0x243ccf;super(),this[_0x52f7f7(0x15a)]=_0x2cb991,this[_0x52f7f7(0xda)]=_0x578436,this['_configService']=_0x3487a1;let {menu:_0x5afac8,..._0x4dfe7f}=_0x32845e({},R,this[_0x52f7f7(0x15a)]);_0x5afac8&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](_0x52f7f7(0x102),_0x5afac8,{'merge':!0x0}),this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](L,_0x4dfe7f),this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]&&this[_0x52f7f7(0xde)][_0x52f7f7(0xe5)](U,this[_0x52f7f7(0x15a)][_0x52f7f7(0xdb)]);}['onStarting'](){const _0x41ab7d=_0x243ccf;[[G],[Q]][_0x41ab7d(0x136)](_0x1509d7=>this[_0x41ab7d(0xda)][_0x41ab7d(0xd2)](_0x1509d7));}[_0x243ccf(0x163)](){const _0x28de9a=_0x243ccf;this[_0x28de9a(0xda)]['get'](Q);}};B($,_0x243ccf(0xe6),_0xf2429e[_0x243ccf(0x110)]),B($,_0x243ccf(0x11e),_0x243ccf(0x17b)),B($,_0x243ccf(0x118),ct),B($,_0x243ccf(0x168),lt),$=H([_0x1b35d9(_0x4635cb),V(0x1,_0x2a08b4(_0x215a8e)),V(0x2,_0x88d7b9)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x257921=_0x19ba;(function(_0x301c74,_0x38e099){const _0x1ac701=_0x19ba,_0x10ea76=_0x301c74();while(!![]){try{const _0x3a95f7=-parseInt(_0x1ac701(0x223))/0x1+parseInt(_0x1ac701(0x28f))/0x2+parseInt(_0x1ac701(0x1fd))/0x3*(-parseInt(_0x1ac701(0x213))/0x4)+parseInt(_0x1ac701(0x233))/0x5+-parseInt(_0x1ac701(0x1f3))/0x6+parseInt(_0x1ac701(0x21f))/0x7+-parseInt(_0x1ac701(0x238))/0x8*(-parseInt(_0x1ac701(0x29d))/0x9);if(_0x3a95f7===_0x38e099)break;else _0x10ea76['push'](_0x10ea76['shift']());}catch(_0x14bed0){_0x10ea76['push'](_0x10ea76['shift']());}}}(_0x541a,0x90797));import{CommandType as _0x487ef2,DependentOn as _0x219475,Disposable as _0x8532c1,DisposableCollection as _0xc6dfe0,IAuthzIoService as _0x53d29b,ICommandService as _0x3b2fe9,IConfigService as _0x119b2,IPermissionService as _0x1c5768,IUniverInstanceService as _0x430938,Inject as _0x3d4214,Injector as _0x4f86b8,LocaleService as _0x316b33,Plugin as _0x30cf8f,RxDisposable as _0x3c2c30,ThemeService as _0x24cb5d,Univer as _0x481fbd,UniverInstanceType as _0x7184d6,Workbook as _0x26a77f,merge as _0x3bca78,toDisposable as _0x1ecd9a}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x540a05,RangeProtectionRuleModel as _0x333165,SetWorksheetActivateCommand as _0x4bdacf,UniverSheetsPlugin as _0x43ef5f,WorkbookEditablePermission as _0x4417ae,WorkbookRecoverHistoryPermission as _0x4b7b3a,WorkbookViewHistoryPermission as _0x2b5fc9,WorksheetEditPermission as _0x5e4e77,getSheetCommandTarget as _0x1932cf}from'@univerjs/sheets';import{CollaborationEvent as _0x5089a1,RevertRevisionMutation as _0x305fa9,UniverCollaborationPlugin as _0x180f1c}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x1317a3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x464cfe,CollaborationController as _0x1e0d39,CollaborationStatus as _0x4aeda6,DataLoaderService as _0x5d6713,ILocalCacheService as _0x58623b}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x406ca6,HistoryModeStatus as _0x167a98,UniverEditHistoryViewerMobilePlugin as _0x1dd4cd,UniverEditHistoryViewerPlugin as _0x136f43}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x51215c,UniverLicensePlugin as _0x433b30}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x36d825}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xdcd56}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2231ca}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x2b6158}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x58425d}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x1259f5}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x12fa8b}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x21e9e3}from'@univerjs/data-validation';import{MessageType as _0x4345b3}from'@univerjs/design';import{UniverDocsPlugin as _0x2ff728}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x160fb4}from'@univerjs/docs-ui';import{IImageIoService as _0x17417a,UniverDrawingPlugin as _0x2a38b3}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xcaf6d6}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x416a48}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x1304a6}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x31aea4}from'@univerjs/network';import{IRemoteInstanceService as _0x1a1eb4,UniverRPCMainThreadPlugin as _0x268139}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x9547e1}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0xc5eb87}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x41761e}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x26aae3,UniverSheetsDataValidationUIPlugin as _0x4ba7dd}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4aa64a}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x4dc158}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x2a46c0}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x9ba918}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x3996e3}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x590736}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0xf16f54}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xd5ed6c}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x543260}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x5edda3}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x3fdb79,UniverSheetsUIPlugin as _0x2a275b,getCurrentRangeDisable$ as _0x40236d}from'@univerjs/sheets-ui';import{ComponentManager as _0x592985,IDialogService as _0x1c3bd2,IMenuManagerService as _0x5cc3ae,IMessageService as _0x2b6969,ISidebarService as _0x1e4f29,MenuItemType as _0x5def46,RibbonStartGroup as _0x51bab3,UniverMobileUIPlugin as _0x434778,UniverUIPlugin as _0x40a805,getMenuHiddenObservable as _0x403dda}from'@univerjs/ui';import{BehaviorSubject as _0x50afba,combineLatest as _0xa79016,takeUntil as _0xb434a3}from'rxjs';function _0x541a(){const _0x3d9110=['block','flat','100%','historyPanelHidden','univerContainerId','onSteady','getActiveSheet','getElementById','_collaborationController','UNIVER_UNKNOWN','univer.operation.exit-edit-history','object','symbol','_localeService','Exited','_handleRevertAcknowledgement','location','SYNCED','OTHERS','type','composePermission','width','close','getAllPlugins','_initListener','session','left','getUnhiddenWorksheets','some','getCollabEntity','registerPlugin','set','_localCacheService','onStarting','reload','_messageService','permissionId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromCollab','mergeMenu','unMountHistoryContent','setConfig','_initContainer','unsubscribe','_injector','closeAll','_componentManager','UNIVER_SHEET','subscribe','has','_dataLoaderService','_selectionProtectionRuleModel','revertRevision$','dataset','executeCommand','asObservable','event$','params','constructor','onCommandExecuted','style','_disposableCollection','eventID','exhaustSavingTask','data','historyUniver$','_menuManagerService','_permissionService','_revertErrorTimer','Entered','_updateSubUnitFromURLParams','editHistory.panel.revertFailed','historyListServerUrl','zIndex','clear','_themeService','_initUniver','_historyManagerService','height','get','historyAIassistantEnabled','top','length','mountHistoryContent','setLocale','711580ZelWzG','position','uComp','add','then','history-container','setDarkMode','_checkCanRevert','_historyUniver$','pluginName','_urlService','getUnitId','defineProperty','historyPanelComponentKey','8900811NRqokW','_setupSubUnitSync','_univerInstanceService','whenReady','version','HistoryIcon','invoke','default','absolute','_initPlugins','menu','_internalWebWorker','mutations','from','function','getSubunitRuleList','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','disposeUnit','setTheme','historyUniver','_dialogService','loadUnit','1847376elmpYh','string','subunit','univer-container','state$','univer-history-container-mobile','dispose','CHANGESET_ACK','getSheetBySheetId','Loading','1330620zxWUdO','getUnit','editHistory.info.initializing','0.20.1','getParam','edit-history-loader.config','getCurrentLocale','every','div','_sidebarService','toPrimitive','_config','map','dispose$','UNIVER_CONTAINER_ID','editHistory.panel.reverting','_configService','forEach','status$','status','show','appendChild','8uOgeFi','prototype','getConfig','next','editHistory.panel.listFetchError','getSheetId','_pluginMap','decorate','pipe','value','removeAll','createElement','7244272xfMcTo','workerURL','Error','getLocales','618478hlasNS','_init','none','_updateURLWithCurrentState','register','disposeWithMe','__getInjector','OPERATION','triggerLoadVersions','call','editHistory.panel.title','packageName','triggerCustomVersions','currentTheme$','BUTTON','display','127780drTPNZ','setParam','getSheets','_commandService','univer.operation.toggle-edit-history','8eWSUBQ','values'];_0x541a=function(){return _0x3d9110;};return _0x541a();}import{IURLService as _0x117d1f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1741d5}from'@univerjs/icons';import{UniverType as _0x1501c2}from'@univerjs/protocol';const L=_0x257921(0x202);Symbol(L);const R={};function z(_0x270b41){'@babel/helpers - typeof';const _0x15d2e7=_0x257921;return z=typeof Symbol==_0x15d2e7(0x1eb)&&typeof Symbol['iterator']=='symbol'?function(_0x1639f9){return typeof _0x1639f9;}:function(_0x25bea2){const _0x5ab393=_0x15d2e7;return _0x25bea2&&typeof Symbol==_0x5ab393(0x1eb)&&_0x25bea2[_0x5ab393(0x274)]===Symbol&&_0x25bea2!==Symbol[_0x5ab393(0x214)]?_0x5ab393(0x246):typeof _0x25bea2;},z(_0x270b41);}function ot(_0x2ab369,_0x3ae845){const _0x135dc6=_0x257921;if(z(_0x2ab369)!=_0x135dc6(0x245)||!_0x2ab369)return _0x2ab369;var _0x59b6d0=_0x2ab369[Symbol[_0x135dc6(0x207)]];if(_0x59b6d0!==void 0x0){var _0x3324df=_0x59b6d0[_0x135dc6(0x22c)](_0x2ab369,_0x3ae845||_0x135dc6(0x1e4));if(z(_0x3324df)!='object')return _0x3324df;throw TypeError(_0x135dc6(0x25f));}return(_0x3ae845===_0x135dc6(0x1f4)?String:Number)(_0x2ab369);}function st(_0x2be02b){const _0xc31033=_0x257921;var _0x15bdd0=ot(_0x2be02b,'string');return z(_0x15bdd0)==_0xc31033(0x246)?_0x15bdd0:_0x15bdd0+'';}function B(_0x280f97,_0x25de66,_0x4c7f85){const _0x197e31=_0x257921;return(_0x25de66=st(_0x25de66))in _0x280f97?Object[_0x197e31(0x29b)](_0x280f97,_0x25de66,{'value':_0x4c7f85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280f97[_0x25de66]=_0x4c7f85,_0x280f97;}function V(_0xa85f2a,_0x13f6ea){return function(_0x2b9d33,_0xfaf740){_0x13f6ea(_0x2b9d33,_0xfaf740,_0xa85f2a);};}function H(_0x6712da,_0x33c122,_0x16c5e3,_0x198c53){const _0x49d654=_0x257921;var _0x1ec346=arguments['length'],_0x2d7021=_0x1ec346<0x3?_0x33c122:_0x198c53===null?_0x198c53=Object['getOwnPropertyDescriptor'](_0x33c122,_0x16c5e3):_0x198c53,_0x188c3d;if(typeof Reflect==_0x49d654(0x245)&&typeof Reflect[_0x49d654(0x21a)]=='function')_0x2d7021=Reflect[_0x49d654(0x21a)](_0x6712da,_0x33c122,_0x16c5e3,_0x198c53);else{for(var _0x365ac9=_0x6712da[_0x49d654(0x28c)]-0x1;_0x365ac9>=0x0;_0x365ac9--)(_0x188c3d=_0x6712da[_0x365ac9])&&(_0x2d7021=(_0x1ec346<0x3?_0x188c3d(_0x2d7021):_0x1ec346>0x3?_0x188c3d(_0x33c122,_0x16c5e3,_0x2d7021):_0x188c3d(_0x33c122,_0x16c5e3))||_0x2d7021);}return _0x1ec346>0x3&&_0x2d7021&&Object[_0x49d654(0x29b)](_0x33c122,_0x16c5e3,_0x2d7021),_0x2d7021;}const U='UNIVER_CONTAINER_ID',W='univer-history-container';let G=class extends _0x8532c1{constructor(_0x1ef0f1,_0x2e034e,_0x5baa9b,_0x21ad5b,_0x4aa1a4,_0x5c214e,_0x34f9a6,_0x4015b8,_0x3fc4e5,_0x59d3aa){const _0x2e03d9=_0x257921;super(),this[_0x2e03d9(0x247)]=_0x1ef0f1,this[_0x2e03d9(0x29f)]=_0x2e034e,this['_configService']=_0x5baa9b,this[_0x2e03d9(0x236)]=_0x21ad5b,this[_0x2e03d9(0x25d)]=_0x4aa1a4,this[_0x2e03d9(0x27d)]=_0x5c214e,this[_0x2e03d9(0x26d)]=_0x34f9a6,this[_0x2e03d9(0x1f1)]=_0x4015b8,this['_sidebarService']=_0x3fc4e5,this['_themeService']=_0x59d3aa,B(this,'_historyUniver$',new _0x50afba(null)),B(this,'historyUniver$',this[_0x2e03d9(0x297)][_0x2e03d9(0x271)]()),B(this,'_disposableCollection',new _0xc6dfe0()),B(this,_0x2e03d9(0x219),new Map()),B(this,_0x2e03d9(0x1e8),null),this[_0x2e03d9(0x224)]();}get[_0x257921(0x1f0)](){const _0x58ca17=_0x257921;return this['_historyUniver$'][_0x58ca17(0x21c)];}[_0x257921(0x224)](){const _0x1cab03=_0x257921;this[_0x1cab03(0x264)](),this[_0x1cab03(0x1e6)]();}[_0x257921(0x264)](){const _0x2b9cc9=_0x257921;var _0x42a44a;let _0x26eb80=(_0x42a44a=this[_0x2b9cc9(0x20d)][_0x2b9cc9(0x215)](_0x2b9cc9(0x20b)))==null?_0x2b9cc9(0x1f6):_0x42a44a,_0x934a78=document['getElementById'](_0x26eb80);if(!_0x934a78)return;let _0x134aaf=document['createElement'](_0x2b9cc9(0x205));_0x134aaf['id']=W,_0x134aaf[_0x2b9cc9(0x26f)][_0x2b9cc9(0x291)]=_0x2b9cc9(0x294),_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x290)]=_0x2b9cc9(0x1e5),_0x134aaf['style']['top']='0',_0x134aaf[_0x2b9cc9(0x276)][_0x2b9cc9(0x254)]='0',_0x134aaf['style'][_0x2b9cc9(0x24f)]=_0x2b9cc9(0x23c),_0x134aaf['style'][_0x2b9cc9(0x288)]=_0x2b9cc9(0x23c),_0x134aaf[_0x2b9cc9(0x276)]['zIndex']='49',_0x134aaf[_0x2b9cc9(0x276)]['display']='none',_0x934a78[_0x2b9cc9(0x212)](_0x134aaf);}[_0x257921(0x1e6)](){const _0x213589=_0x257921;[[_0x1304a6],[_0x40a805,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x2a275b],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9ba918],[_0x9547e1],[_0xc5eb87],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x4ba7dd],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x213589(0x20e)](([_0x1e0eae,_0x3c4295])=>this[_0x213589(0x258)](_0x1e0eae,_0x3c4295));}[_0x257921(0x1f9)](){const _0x112d25=_0x257921;super[_0x112d25(0x1f9)](),this[_0x112d25(0x262)](),this[_0x112d25(0x219)][_0x112d25(0x284)]();}[_0x257921(0x258)](_0x2a7f48,_0x434f31,_0x310c2c){const _0x164a9a=_0x257921;if(this[_0x164a9a(0x219)][_0x164a9a(0x26b)](_0x2a7f48[_0x164a9a(0x298)])&&!_0x310c2c)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x2a7f48[_0x164a9a(0x298)]+'\x20has\x20been\x20registered.');this['_pluginMap']['set'](_0x2a7f48['pluginName'],[_0x2a7f48,_0x434f31]);}[_0x257921(0x251)](){const _0x524a3c=_0x257921;return Array[_0x524a3c(0x1ea)](this[_0x524a3c(0x219)]['values']());}[_0x257921(0x28d)](_0x77558c,_0x54dd99){const _0x543bfa=_0x257921;let _0x83a7d3=document[_0x543bfa(0x241)](W);_0x83a7d3&&(_0x83a7d3['style'][_0x543bfa(0x232)]=_0x543bfa(0x23a),this[_0x543bfa(0x286)](_0x77558c,W,_0x54dd99));}[_0x257921(0x262)](){const _0xcb7a9d=_0x257921;var _0x5f5a0c;this[_0xcb7a9d(0x277)][_0xcb7a9d(0x1f9)](),(_0x5f5a0c=this[_0xcb7a9d(0x1f0)])==null||_0x5f5a0c['dispose'](),this['_historyUniver$'][_0xcb7a9d(0x216)](null);let _0x280257=document[_0xcb7a9d(0x241)](W);_0x280257&&(_0x280257[_0xcb7a9d(0x276)][_0xcb7a9d(0x232)]=_0xcb7a9d(0x225),this[_0xcb7a9d(0x1e8)]&&(this['_internalWebWorker']['terminate'](),this[_0xcb7a9d(0x1e8)]=null));}['_initUniver'](_0x174c68,_0x126bd1,_0x190c66){const _0x441fe4=_0x257921;var _0x30eadf,_0xb639c2,_0xbbe029,_0x152b2a,_0xec1ecc;if(this[_0x441fe4(0x1f0)])return;let _0x27024a=new _0x481fbd({'locales':{[this[_0x441fe4(0x247)]['getCurrentLocale']()]:this[_0x441fe4(0x247)]['getLocales']()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x3c8bd8=_0x27024a[_0x441fe4(0x229)]();this[_0x441fe4(0x228)](this[_0x441fe4(0x285)]['darkMode$']['subscribe'](_0x5ab8e8=>{const _0x37cea9=_0x441fe4;_0x3c8bd8[_0x37cea9(0x289)](_0x24cb5d)[_0x37cea9(0x295)](_0x5ab8e8);})),this[_0x441fe4(0x228)](this[_0x441fe4(0x285)][_0x441fe4(0x230)][_0x441fe4(0x26a)](_0x540c41=>{const _0x24655b=_0x441fe4;_0x3c8bd8[_0x24655b(0x289)](_0x24cb5d)[_0x24655b(0x1ef)](_0x540c41);})),_0x3c8bd8['get'](_0x316b33)[_0x441fe4(0x28e)](this[_0x441fe4(0x247)][_0x441fe4(0x203)]()),_0x3c8bd8[_0x441fe4(0x289)](_0x119b2)[_0x441fe4(0x263)](_0x464cfe,this[_0x441fe4(0x20d)]['getConfig'](_0x464cfe));let _0x34d012=this[_0x441fe4(0x20d)]['getConfig'](_0x51215c);_0x34d012&&_0x27024a['registerPlugin'](_0x433b30,{'license':_0x34d012['ls']});let _0x763b8=(_0x30eadf=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0x30eadf[_0x441fe4(0x220)],_0x56624d=!!_0x763b8;_0x56624d&&(this[_0x441fe4(0x1e8)]=_0x763b8 instanceof Worker?_0x763b8:null,_0x27024a['registerPlugin'](_0x268139,{'workerURL':_0x763b8})),this[_0x441fe4(0x219)][_0x441fe4(0x20e)](([_0x31bc84,_0x52f94f])=>{const _0x7ea64a=_0x441fe4;_0x27024a[_0x7ea64a(0x258)](_0x31bc84,_0x52f94f);}),_0x27024a[_0x441fe4(0x258)](_0x136f43,{'historyListServerUrl':(_0xb639c2=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xb639c2[_0x441fe4(0x282)],'historyPanelComponentKey':(_0xbbe029=this[_0x441fe4(0x20d)][_0x441fe4(0x215)](_0x441fe4(0x202)))==null?void 0x0:_0xbbe029[_0x441fe4(0x29c)],'historyPanelHidden':(_0x152b2a=this[_0x441fe4(0x20d)]['getConfig'](_0x441fe4(0x202)))==null?void 0x0:_0x152b2a[_0x441fe4(0x23d)],'historyAIassistantEnabled':(_0xec1ecc=this[_0x441fe4(0x20d)][_0x441fe4(0x215)]('edit-history-loader.config'))==null?void 0x0:_0xec1ecc[_0x441fe4(0x28a)]}),_0x3c8bd8[_0x441fe4(0x2a3)](_0x2776ed=>{this['_initListener'](_0x2776ed,_0x174c68);}),this[_0x441fe4(0x297)][_0x441fe4(0x216)](_0x27024a);let _0x279f67=_0x3c8bd8[_0x441fe4(0x289)](_0x406ca6),_0x574c26=this[_0x441fe4(0x296)](_0x174c68),_0x4b317c=()=>{const _0x552c0b=_0x441fe4;_0x190c66?_0x279f67[_0x552c0b(0x22f)](_0x174c68,_0x126bd1,_0x574c26,_0x190c66):_0x279f67[_0x552c0b(0x22b)](_0x174c68,_0x126bd1,_0x574c26);};if(this[_0x441fe4(0x25d)]['show']({'content':this[_0x441fe4(0x247)]['t'](_0x441fe4(0x1ff)),'type':_0x4345b3['Loading']}),_0x56624d)try{_0x3c8bd8[_0x441fe4(0x289)](_0x1a1eb4)[_0x441fe4(0x2a0)]()[_0x441fe4(0x293)](()=>{_0x4b317c();});}catch{_0x4b317c();}else _0x4b317c();}['_initListener'](_0x5177f5,_0x3327c5){const _0x226203=_0x257921;let _0x6b7ec2=_0x5177f5[_0x226203(0x289)](_0x406ca6);this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x20f)][_0x226203(0x26a)](_0x921626=>{const _0x3b0790=_0x226203;switch(_0x921626){case _0x167a98[_0x3b0790(0x27f)]:this[_0x3b0790(0x1f1)]['closeAll'](),this[_0x3b0790(0x206)][_0x3b0790(0x250)]();break;case _0x167a98[_0x3b0790(0x248)]:this['_commandService'][_0x3b0790(0x270)](q['id']),this['unMountHistoryContent']();break;case _0x167a98[_0x3b0790(0x221)]:this[_0x3b0790(0x262)](),this['_messageService'][_0x3b0790(0x211)]({'content':this['_localeService']['t'](_0x3b0790(0x217)),'type':_0x4345b3[_0x3b0790(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x226203(0x277)][_0x226203(0x292)](_0x6b7ec2[_0x226203(0x26e)]['subscribe'](async _0x38240b=>{_0x38240b&&this['_commandService']['executeCommand'](_0x305fa9['id'],{'unitId':_0x3327c5,'revision':_0x38240b});}));}[_0x257921(0x296)](_0x5ec881){const _0x50b3f8=_0x257921;let _0x230e31=this[_0x50b3f8(0x29f)][_0x50b3f8(0x1fe)](_0x5ec881)[_0x50b3f8(0x235)]()['map'](_0xbbd350=>_0xbbd350[_0x50b3f8(0x218)]()),_0x5a1066=new _0x4417ae(_0x5ec881)['id'],_0x10c7d8=_0x230e31[_0x50b3f8(0x209)](_0x59ec80=>new _0x5e4e77(_0x5ec881,_0x59ec80)['id']),_0x462488=_0x230e31['map'](_0x351cbb=>this['_selectionProtectionRuleModel']['getSubunitRuleList'](_0x5ec881,_0x351cbb)[_0x50b3f8(0x209)](_0xaaff16=>new _0x540a05(_0x5ec881,_0x351cbb,_0xaaff16[_0x50b3f8(0x25e)])['id']))[_0x50b3f8(0x23b)](),_0x119c30=new _0x4b7b3a(_0x5ec881)['id'];return this['_permissionService']['composePermission']([_0x5a1066,..._0x10c7d8,..._0x462488,_0x119c30])[_0x50b3f8(0x204)](_0x591cd8=>!!_0x591cd8[_0x50b3f8(0x21c)]);}};G=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],G);const K={'id':_0x257921(0x237),'type':_0x487ef2['OPERATION'],'handler':_0x5d407c=>{const _0x29aaab=_0x257921;let _0x3d7d8b=_0x5d407c['get'](G),{unitId:_0x5e9add}=_0x1932cf(_0x5d407c[_0x29aaab(0x289)](_0x430938))||{};return _0x5e9add?(_0x3d7d8b[_0x29aaab(0x28d)](_0x5e9add),!0x0):!0x1;}},q={'id':_0x257921(0x244),'type':_0x487ef2[_0x257921(0x22a)],'handler':()=>!0x0};var ct='@univerjs-pro/edit-history-loader',lt=_0x257921(0x200);function ut(_0x3be0a3){const _0x3ac66e=_0x257921;return{'id':K['id'],'type':_0x5def46[_0x3ac66e(0x231)],'icon':'HistoryIcon','tooltip':_0x3ac66e(0x22d),'hidden$':_0x403dda(_0x3be0a3,_0x7184d6[_0x3ac66e(0x269)]),'disabled$':_0x40236d(_0x3be0a3,{'workbookTypes':[_0x2b5fc9],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x51bab3[_0x257921(0x24c)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x3c2c30{constructor(_0x2202f8,_0x259120,_0x3c1839,_0x5ba99d,_0xb432f1,_0x3db589,_0x287978,_0x55bf28,_0x170934,_0x568ee5,_0xea7df4){const _0x3ef6ad=_0x257921;super(),this[_0x3ef6ad(0x236)]=_0x2202f8,this['_menuManagerService']=_0x259120,this[_0x3ef6ad(0x268)]=_0x3c1839,this[_0x3ef6ad(0x287)]=_0x5ba99d,this['_localeService']=_0xb432f1,this['_messageService']=_0x3db589,this[_0x3ef6ad(0x242)]=_0x287978,this[_0x3ef6ad(0x25a)]=_0x55bf28,this[_0x3ef6ad(0x26c)]=_0x170934,this[_0x3ef6ad(0x29f)]=_0x568ee5,this[_0x3ef6ad(0x299)]=_0xea7df4,B(this,_0x3ef6ad(0x27e),null),this['_init']();}[_0x257921(0x224)](){const _0x4dd03d=_0x257921;[K,q]['forEach'](_0x3bc8ff=>this[_0x4dd03d(0x228)](_0x1ecd9a(this[_0x4dd03d(0x236)]['registerCommand'](_0x3bc8ff)))),this['disposeWithMe'](this[_0x4dd03d(0x268)][_0x4dd03d(0x227)](_0x4dd03d(0x2a2),_0x1741d5)),this['_menuManagerService']['mergeMenu'](dt),this[_0x4dd03d(0x228)](this[_0x4dd03d(0x236)]['onCommandExecuted'](async(_0x12c784,_0x3046af)=>{const _0x1d1f72=_0x4dd03d;if(_0x12c784['id']===_0x305fa9['id']){let {unitId:_0x75fe9d}=_0x12c784[_0x1d1f72(0x273)];this[_0x1d1f72(0x25d)][_0x1d1f72(0x211)]({'content':this[_0x1d1f72(0x247)]['t'](_0x1d1f72(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x17004d=this[_0x1d1f72(0x242)]['getCollabEntity'](_0x75fe9d);_0x3046af!=null&&_0x3046af[_0x1d1f72(0x260)]?this[_0x1d1f72(0x249)](_0x17004d,async()=>(setTimeout(()=>window[_0x1d1f72(0x24a)][_0x1d1f72(0x25c)]()),!0x0),!0x0):this[_0x1d1f72(0x249)](_0x17004d,async()=>{const _0x414900=_0x1d1f72;let _0x1d008a=this[_0x414900(0x29f)]['getCurrentUnitOfType'](_0x1501c2['UNIVER_SHEET']),_0x542c6f=_0x1d008a==null?void 0x0:_0x1d008a['getActiveSheet']();if(!_0x542c6f)return!0x1;this[_0x414900(0x29f)][_0x414900(0x1ee)](_0x75fe9d);let _0x47b8fd=await this[_0x414900(0x26c)]['loadUnit'](_0x75fe9d,_0x1501c2[_0x414900(0x269)]);return _0x47b8fd&&_0x47b8fd instanceof _0x26a77f?(await this[_0x414900(0x29e)](_0x47b8fd,_0x542c6f[_0x414900(0x218)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x39e9a6,_0x3017b9,_0x1fae22=!0x1){const _0x434530=_0x257921;let _0x319705=_0xa79016([_0x39e9a6[_0x434530(0x253)][_0x434530(0x272)],_0x39e9a6[_0x434530(0x1f7)]])[_0x434530(0x26a)](async([_0xa262be,_0xcb2de3])=>{const _0x3340bd=_0x434530;if(_0xa262be['eventID']===_0x5089a1[_0x3340bd(0x1fa)]&&(_0xcb2de3==null?void 0x0:_0xcb2de3[_0x3340bd(0x210)])===_0x4aeda6[_0x3340bd(0x24b)]&&_0xa262be[_0x3340bd(0x27a)][_0x3340bd(0x1e9)][_0x3340bd(0x256)](_0x1a3dfb=>_0x1a3dfb['id']===_0x305fa9['id'])&&await _0x3017b9()){var _0x2430d9;this['_historyManagerService'][_0x3340bd(0x262)](),_0x319705[_0x3340bd(0x265)](),this[_0x3340bd(0x27e)]&&clearTimeout(this[_0x3340bd(0x27e)]),await((_0x2430d9=this['_localCacheService'])==null?void 0x0:_0x2430d9[_0x3340bd(0x279)]()),this['_messageService'][_0x3340bd(0x21d)]();}});_0x1fae22&&(this[_0x434530(0x27e)]=setTimeout(()=>{const _0x550f5d=_0x434530;_0x319705[_0x550f5d(0x265)](),this['_messageService'][_0x550f5d(0x211)]({'content':this[_0x550f5d(0x247)]['t'](_0x550f5d(0x281)),'type':_0x4345b3['Error'],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x38eefd,_0x495672){const _0x3d0d48=_0x257921;await this[_0x3d0d48(0x280)](_0x38eefd,_0x495672),_0x38eefd['activeSheet$'][_0x3d0d48(0x21b)](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](_0x4400d6=>{_0x4400d6&&this['_updateURLWithCurrentState'](_0x4400d6);}),this[_0x3d0d48(0x299)]['urlChange$']['pipe'](_0xb434a3(this[_0x3d0d48(0x20a)]))[_0x3d0d48(0x26a)](()=>this['_updateSubUnitFromURLParams'](_0x38eefd,_0x495672));}[_0x257921(0x226)](_0x3118f4,_0x3bc474=!0x1){const _0x12875f=_0x257921;let _0x30810f=this[_0x12875f(0x299)]['getParam'](_0x12875f(0x1f5));_0x3118f4[_0x12875f(0x218)]()!==_0x30810f&&this[_0x12875f(0x299)][_0x12875f(0x234)](_0x12875f(0x1f5),_0x3118f4[_0x12875f(0x218)](),_0x3bc474);}async[_0x257921(0x280)](_0x1156f6,_0x26f800){const _0x266ee0=_0x257921;var _0x4883af;if(!_0x26f800||!_0x1156f6[_0x266ee0(0x1fb)](_0x26f800)){let _0x34c010=_0x1156f6[_0x266ee0(0x255)]()[0x0],_0x33a3f9=_0x1156f6[_0x266ee0(0x1fb)](_0x34c010);if(!_0x33a3f9)return;this[_0x266ee0(0x226)](_0x33a3f9,!0x0),await this[_0x266ee0(0x236)][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6[_0x266ee0(0x29a)](),'subUnitId':_0x34c010});return;}((_0x4883af=_0x1156f6[_0x266ee0(0x240)]())==null?void 0x0:_0x4883af[_0x266ee0(0x218)]())!==_0x26f800&&await this['_commandService'][_0x266ee0(0x270)](_0x4bdacf['id'],{'unitId':_0x1156f6['getUnitId'](),'subUnitId':_0x26f800});}};function _0x19ba(_0x56af7c,_0x4ec7b0){_0x56af7c=_0x56af7c-0x1e4;const _0x541af4=_0x541a();let _0x19bad5=_0x541af4[_0x56af7c];return _0x19bad5;}J=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],J);const Y=_0x257921(0x1f8);let X=class extends _0x8532c1{constructor(_0x516682,_0x4a771b,_0xd9dfd8,_0x5dac85,_0x13a0ad,_0x16557e,_0x181958,_0x468850,_0x5b4c58,_0x25336f){const _0x221515=_0x257921;super(),this[_0x221515(0x247)]=_0x516682,this['_univerInstanceService']=_0x4a771b,this[_0x221515(0x20d)]=_0xd9dfd8,this[_0x221515(0x236)]=_0x5dac85,this['_messageService']=_0x13a0ad,this[_0x221515(0x27d)]=_0x16557e,this['_selectionProtectionRuleModel']=_0x181958,this['_dialogService']=_0x468850,this[_0x221515(0x206)]=_0x5b4c58,this[_0x221515(0x285)]=_0x25336f,B(this,_0x221515(0x297),new _0x50afba(null)),B(this,_0x221515(0x27b),this['_historyUniver$'][_0x221515(0x271)]()),B(this,_0x221515(0x277),new _0xc6dfe0()),B(this,'_pluginMap',new Map()),B(this,_0x221515(0x1e8),null),this[_0x221515(0x224)]();}get['historyUniver'](){const _0x3947d5=_0x257921;return this['_historyUniver$'][_0x3947d5(0x21c)];}[_0x257921(0x224)](){const _0xbaa330=_0x257921;this[_0xbaa330(0x264)](),this['_initPlugins']();}['_initContainer'](){const _0x5c14ae=_0x257921;var _0x1b10fc;let _0x1d3afa=(_0x1b10fc=this['_configService'][_0x5c14ae(0x215)](_0x5c14ae(0x20b)))==null?_0x5c14ae(0x1f6):_0x1b10fc,_0x3d84e8=document['getElementById'](_0x1d3afa);if(!_0x3d84e8)return;let _0x1014fb=document[_0x5c14ae(0x21e)](_0x5c14ae(0x205));_0x1014fb['id']=Y,_0x1014fb[_0x5c14ae(0x26f)][_0x5c14ae(0x291)]=_0x5c14ae(0x294),_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x290)]='absolute',_0x1014fb['style'][_0x5c14ae(0x28b)]='0',_0x1014fb['style'][_0x5c14ae(0x254)]='0',_0x1014fb['style'][_0x5c14ae(0x24f)]='100%',_0x1014fb[_0x5c14ae(0x276)]['height']='100%',_0x1014fb[_0x5c14ae(0x276)][_0x5c14ae(0x283)]='49',_0x1014fb['style'][_0x5c14ae(0x232)]=_0x5c14ae(0x225),_0x3d84e8[_0x5c14ae(0x212)](_0x1014fb);}['_initPlugins'](){const _0x3d0713=_0x257921;[[_0x1304a6],[_0x434778,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x1c3bd2,null]]}],[_0x31aea4],[_0x2a38b3,{'override':[[_0x17417a,null]]}],[_0x2ff728,{'hasScroll':!0x1}],[_0x160fb4],[_0x543260],[_0x43ef5f,{'notExecuteFormula':!0x0}],[_0x3fdb79],[_0x3996e3],[_0x590736],[_0x180f1c],[_0x2a46c0],[_0x9547e1],[_0xf16f54],[_0xd5ed6c],[_0x21e9e3],[_0x41761e],[_0x26aae3],[_0x416a48,{'notExecuteFormula':!0x0}],[_0xcaf6d6],[_0x4aa64a],[_0x4dc158],[_0x1259f5],[_0x12fa8b],[_0x36d825],[_0xdcd56],[_0x2b6158],[_0x58425d],[_0x2231ca,{'notExecuteFormula':!0x0}],[_0x5edda3]][_0x3d0713(0x20e)](([_0x2e5ba5,_0x195721])=>this[_0x3d0713(0x258)](_0x2e5ba5,_0x195721));}[_0x257921(0x1f9)](){const _0xab3aa4=_0x257921;super[_0xab3aa4(0x1f9)](),this[_0xab3aa4(0x262)](),this[_0xab3aa4(0x219)]['clear']();}['registerPlugin'](_0x5f4aff,_0x12444b,_0x36b88a){const _0x15c40a=_0x257921;if(this[_0x15c40a(0x219)][_0x15c40a(0x26b)](_0x5f4aff[_0x15c40a(0x298)])&&!_0x36b88a)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x5f4aff['pluginName']+'\x20has\x20been\x20registered.');this['_pluginMap'][_0x15c40a(0x259)](_0x5f4aff['pluginName'],[_0x5f4aff,_0x12444b]);}[_0x257921(0x251)](){const _0x2eeb89=_0x257921;return Array['from'](this[_0x2eeb89(0x219)][_0x2eeb89(0x239)]());}[_0x257921(0x28d)](_0x3f0402,_0x3003cc){const _0x11b898=_0x257921;let _0x54bd62=document['getElementById'](Y);_0x54bd62&&(_0x54bd62['style'][_0x11b898(0x232)]=_0x11b898(0x23a),this[_0x11b898(0x286)](_0x3f0402,Y,_0x3003cc));}['unMountHistoryContent'](){const _0xd74946=_0x257921;var _0x46e21a;this[_0xd74946(0x277)][_0xd74946(0x1f9)](),(_0x46e21a=this[_0xd74946(0x1f0)])==null||_0x46e21a['dispose'](),this[_0xd74946(0x297)][_0xd74946(0x216)](null);let _0x4caf6f=document[_0xd74946(0x241)](Y);_0x4caf6f&&(_0x4caf6f[_0xd74946(0x276)][_0xd74946(0x232)]=_0xd74946(0x225),this[_0xd74946(0x1e8)]&&(this[_0xd74946(0x1e8)]['terminate'](),this[_0xd74946(0x1e8)]=null));}[_0x257921(0x286)](_0x47fd9c,_0x14073a,_0x169589){const _0x31ac51=_0x257921;var _0x4b2f9a,_0x18765e,_0xe1f04d,_0x437cce;if(this[_0x31ac51(0x1f0)])return;let _0x1855f9=new _0x481fbd({'locales':{[this['_localeService'][_0x31ac51(0x203)]()]:this['_localeService'][_0x31ac51(0x222)]()},'override':[[_0x53d29b,{'useClass':_0x1317a3}]]}),_0x316dfb=_0x1855f9[_0x31ac51(0x229)]();this[_0x31ac51(0x228)](this['_themeService']['darkMode$'][_0x31ac51(0x26a)](_0x160ab1=>{const _0x3c9b04=_0x31ac51;_0x316dfb[_0x3c9b04(0x289)](_0x24cb5d)['setDarkMode'](_0x160ab1);})),this[_0x31ac51(0x228)](this[_0x31ac51(0x285)][_0x31ac51(0x230)][_0x31ac51(0x26a)](_0x3200b8=>{const _0x5bed5a=_0x31ac51;_0x316dfb[_0x5bed5a(0x289)](_0x24cb5d)[_0x5bed5a(0x1ef)](_0x3200b8);})),_0x316dfb[_0x31ac51(0x289)](_0x316b33)[_0x31ac51(0x28e)](this[_0x31ac51(0x247)][_0x31ac51(0x203)]()),_0x316dfb[_0x31ac51(0x289)](_0x119b2)[_0x31ac51(0x263)](_0x464cfe,this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x464cfe));let _0x1d1ef2=this['_configService'][_0x31ac51(0x215)](_0x51215c);_0x1d1ef2&&_0x1855f9['registerPlugin'](_0x433b30,{'license':_0x1d1ef2['ls']});let _0x17daeb=(_0x4b2f9a=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x4b2f9a[_0x31ac51(0x220)],_0x584176=!!_0x17daeb;_0x584176&&(this[_0x31ac51(0x1e8)]=_0x17daeb instanceof Worker?_0x17daeb:null,_0x1855f9[_0x31ac51(0x258)](_0x268139,{'workerURL':_0x17daeb})),this[_0x31ac51(0x219)][_0x31ac51(0x20e)](([_0x4eee14,_0x1ee228])=>{const _0x234a02=_0x31ac51;_0x1855f9[_0x234a02(0x258)](_0x4eee14,_0x1ee228);}),_0x1855f9['registerPlugin'](_0x1dd4cd,{'historyListServerUrl':(_0x18765e=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x18765e['historyListServerUrl'],'historyPanelComponentKey':(_0xe1f04d=this[_0x31ac51(0x20d)]['getConfig'](_0x31ac51(0x202)))==null?void 0x0:_0xe1f04d[_0x31ac51(0x29c)],'historyPanelHidden':(_0x437cce=this[_0x31ac51(0x20d)][_0x31ac51(0x215)](_0x31ac51(0x202)))==null?void 0x0:_0x437cce[_0x31ac51(0x23d)]}),_0x316dfb[_0x31ac51(0x2a3)](_0x268344=>{const _0x5055d5=_0x31ac51;this[_0x5055d5(0x252)](_0x268344,_0x47fd9c);}),this[_0x31ac51(0x297)][_0x31ac51(0x216)](_0x1855f9);let _0x4752a1=_0x316dfb[_0x31ac51(0x289)](_0x406ca6),_0x55a4f5=this[_0x31ac51(0x296)](_0x47fd9c),_0x2b75d9=()=>{const _0x2b1a61=_0x31ac51;_0x169589?_0x4752a1[_0x2b1a61(0x22f)](_0x47fd9c,_0x14073a,_0x55a4f5,_0x169589):_0x4752a1[_0x2b1a61(0x22b)](_0x47fd9c,_0x14073a,_0x55a4f5);};if(this[_0x31ac51(0x25d)][_0x31ac51(0x211)]({'content':this[_0x31ac51(0x247)]['t'](_0x31ac51(0x1ff)),'type':_0x4345b3[_0x31ac51(0x1fc)]}),_0x584176)try{_0x316dfb['get'](_0x1a1eb4)[_0x31ac51(0x2a0)]()[_0x31ac51(0x293)](()=>{_0x2b75d9();});}catch{_0x2b75d9();}else _0x2b75d9();}['_initListener'](_0x5609a0,_0x322a62){const _0x3adfb5=_0x257921;let _0x13bd4a=_0x5609a0[_0x3adfb5(0x289)](_0x406ca6);this[_0x3adfb5(0x277)]['add'](_0x13bd4a['status$'][_0x3adfb5(0x26a)](_0x4de4a6=>{const _0x2593c4=_0x3adfb5;switch(_0x4de4a6){case _0x167a98[_0x2593c4(0x27f)]:this[_0x2593c4(0x1f1)][_0x2593c4(0x267)](),this[_0x2593c4(0x206)]['close']();break;case _0x167a98['Exited']:this[_0x2593c4(0x236)][_0x2593c4(0x270)](q['id']),this[_0x2593c4(0x262)]();break;case _0x167a98['Error']:this[_0x2593c4(0x262)](),this[_0x2593c4(0x25d)][_0x2593c4(0x211)]({'content':this[_0x2593c4(0x247)]['t'](_0x2593c4(0x217)),'type':_0x4345b3[_0x2593c4(0x221)],'duration':0xbb8});break;default:break;}})),this[_0x3adfb5(0x277)][_0x3adfb5(0x292)](_0x13bd4a[_0x3adfb5(0x26e)][_0x3adfb5(0x26a)](async _0x2f8f1f=>{const _0x46e862=_0x3adfb5;_0x2f8f1f&&this[_0x46e862(0x236)][_0x46e862(0x270)](_0x305fa9['id'],{'unitId':_0x322a62,'revision':_0x2f8f1f});}));}[_0x257921(0x296)](_0x54d9fd){const _0x478992=_0x257921;let _0x58db9f=this[_0x478992(0x29f)][_0x478992(0x1fe)](_0x54d9fd)[_0x478992(0x235)]()[_0x478992(0x209)](_0x34f9c8=>_0x34f9c8[_0x478992(0x218)]()),_0x3c7ebe=new _0x4417ae(_0x54d9fd)['id'],_0x291b85=_0x58db9f[_0x478992(0x209)](_0x35787f=>new _0x5e4e77(_0x54d9fd,_0x35787f)['id']),_0x164f72=_0x58db9f[_0x478992(0x209)](_0x769727=>this[_0x478992(0x26d)][_0x478992(0x1ec)](_0x54d9fd,_0x769727)[_0x478992(0x209)](_0x5ba00f=>new _0x540a05(_0x54d9fd,_0x769727,_0x5ba00f['permissionId'])['id']))[_0x478992(0x23b)](),_0x17d9f0=new _0x4b7b3a(_0x54d9fd)['id'];return this['_permissionService'][_0x478992(0x24e)]([_0x3c7ebe,..._0x291b85,..._0x164f72,_0x17d9f0])[_0x478992(0x204)](_0x3e9aad=>!!_0x3e9aad[_0x478992(0x21c)]);}};X=H([V(0x0,_0x3d4214(_0x316b33)),V(0x1,_0x430938),V(0x2,_0x119b2),V(0x3,_0x3b2fe9),V(0x4,_0x2b6969),V(0x5,_0x1c5768),V(0x6,_0x3d4214(_0x333165)),V(0x7,_0x3d4214(_0x1c3bd2)),V(0x8,_0x3d4214(_0x1e4f29)),V(0x9,_0x3d4214(_0x24cb5d))],X);let Z=class extends _0x30cf8f{constructor(_0x179fec=R,_0x2c7635,_0x40854b){const _0x48832d=_0x257921;super(),this[_0x48832d(0x208)]=_0x179fec,this[_0x48832d(0x266)]=_0x2c7635,this[_0x48832d(0x20d)]=_0x40854b;let {menu:_0x36f484,..._0x24caba}=_0x3bca78({},R,this[_0x48832d(0x208)]);_0x36f484&&this[_0x48832d(0x20d)][_0x48832d(0x263)]('menu',_0x36f484,{'merge':!0x0}),this[_0x48832d(0x20d)]['setConfig'](L,_0x24caba),this[_0x48832d(0x208)][_0x48832d(0x23e)]&&this[_0x48832d(0x20d)]['setConfig'](_0x48832d(0x20b),this[_0x48832d(0x208)]['univerContainerId']);}['onStarting'](){const _0x43ba7e=_0x257921;[[G,{'useClass':X}],[J]][_0x43ba7e(0x20e)](_0x555cf0=>this[_0x43ba7e(0x266)][_0x43ba7e(0x292)](_0x555cf0));}['onSteady'](){const _0x3f521e=_0x257921;this['_injector'][_0x3f521e(0x289)](J);}};B(Z,_0x257921(0x24d),_0x7184d6['UNIVER_UNKNOWN']),B(Z,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x257921(0x22e),ct),B(Z,_0x257921(0x2a1),lt),Z=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],Z);let Q=class extends _0x3c2c30{constructor(_0x4a9843,_0x1be514,_0x24d815,_0x4af8bd,_0x233b23,_0xe3371,_0x3de048,_0x2c4a41,_0x26e7cb,_0x236092,_0x7753b9){const _0x184416=_0x257921;super(),this[_0x184416(0x236)]=_0x4a9843,this[_0x184416(0x27c)]=_0x1be514,this[_0x184416(0x268)]=_0x24d815,this['_historyManagerService']=_0x4af8bd,this['_localeService']=_0x233b23,this[_0x184416(0x25d)]=_0xe3371,this[_0x184416(0x242)]=_0x3de048,this[_0x184416(0x25a)]=_0x2c4a41,this[_0x184416(0x26c)]=_0x26e7cb,this['_univerInstanceService']=_0x236092,this['_urlService']=_0x7753b9,B(this,'_revertErrorTimer',null),this[_0x184416(0x224)]();}[_0x257921(0x224)](){const _0x33ebfb=_0x257921;[K,q]['forEach'](_0x3cfa49=>this[_0x33ebfb(0x228)](_0x1ecd9a(this['_commandService']['registerCommand'](_0x3cfa49)))),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x268)][_0x33ebfb(0x227)](_0x33ebfb(0x2a2),_0x1741d5)),this['_menuManagerService'][_0x33ebfb(0x261)](dt),this[_0x33ebfb(0x228)](this[_0x33ebfb(0x236)][_0x33ebfb(0x275)](async(_0x272866,_0x1fe3ac)=>{const _0x2ca786=_0x33ebfb;if(_0x272866['id']===_0x305fa9['id']){let {unitId:_0x85b934}=_0x272866[_0x2ca786(0x273)];this[_0x2ca786(0x25d)][_0x2ca786(0x211)]({'content':this[_0x2ca786(0x247)]['t'](_0x2ca786(0x20c)),'type':_0x4345b3['Loading'],'duration':0x1388});let _0x1e6f0c=this[_0x2ca786(0x242)][_0x2ca786(0x257)](_0x85b934);_0x1fe3ac!=null&&_0x1fe3ac[_0x2ca786(0x260)]?this[_0x2ca786(0x249)](_0x1e6f0c,async()=>(setTimeout(()=>window['location'][_0x2ca786(0x25c)]()),!0x0),!0x0):this[_0x2ca786(0x249)](_0x1e6f0c,async()=>{const _0x3d29a3=_0x2ca786;let _0x604c71=this[_0x3d29a3(0x29f)]['getCurrentUnitOfType'](_0x1501c2[_0x3d29a3(0x269)]),_0x5eafe8=_0x604c71==null?void 0x0:_0x604c71[_0x3d29a3(0x240)]();if(!_0x5eafe8)return!0x1;this[_0x3d29a3(0x29f)]['disposeUnit'](_0x85b934);let _0x660f46=await this[_0x3d29a3(0x26c)][_0x3d29a3(0x1f2)](_0x85b934,_0x1501c2['UNIVER_SHEET']);return _0x660f46&&_0x660f46 instanceof _0x26a77f?(await this[_0x3d29a3(0x29e)](_0x660f46,_0x5eafe8[_0x3d29a3(0x218)]()),!0x0):!0x1;});}}));}[_0x257921(0x249)](_0x50a68b,_0x6bb3bd,_0x4ef1ec=!0x1){const _0x8936a9=_0x257921;let _0x454e14=_0xa79016([_0x50a68b['session'][_0x8936a9(0x272)],_0x50a68b[_0x8936a9(0x1f7)]])[_0x8936a9(0x26a)](async([_0x4ea9c7,_0x110b38])=>{const _0x2b12de=_0x8936a9;if(_0x4ea9c7[_0x2b12de(0x278)]===_0x5089a1[_0x2b12de(0x1fa)]&&(_0x110b38==null?void 0x0:_0x110b38[_0x2b12de(0x210)])===_0x4aeda6[_0x2b12de(0x24b)]&&_0x4ea9c7[_0x2b12de(0x27a)][_0x2b12de(0x1e9)]['some'](_0x29bc10=>_0x29bc10['id']===_0x305fa9['id'])&&await _0x6bb3bd()){var _0x3f2d4e;this[_0x2b12de(0x287)][_0x2b12de(0x262)](),_0x454e14[_0x2b12de(0x265)](),this[_0x2b12de(0x27e)]&&clearTimeout(this[_0x2b12de(0x27e)]),await((_0x3f2d4e=this[_0x2b12de(0x25a)])==null?void 0x0:_0x3f2d4e[_0x2b12de(0x279)]());}});_0x4ef1ec&&(this[_0x8936a9(0x27e)]=setTimeout(()=>{const _0x53eba0=_0x8936a9;_0x454e14['unsubscribe'](),this[_0x53eba0(0x25d)]['show']({'content':this[_0x53eba0(0x247)]['t'](_0x53eba0(0x281)),'type':_0x4345b3[_0x53eba0(0x221)],'duration':0xbb8});},0x1388));}async[_0x257921(0x29e)](_0x394df0,_0x47e2d3){const _0x5eec8b=_0x257921;await this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3),_0x394df0['activeSheet$'][_0x5eec8b(0x21b)](_0xb434a3(this[_0x5eec8b(0x20a)]))['subscribe'](_0x44a1ef=>{const _0x557994=_0x5eec8b;_0x44a1ef&&this[_0x557994(0x226)](_0x44a1ef);}),this[_0x5eec8b(0x299)]['urlChange$'][_0x5eec8b(0x21b)](_0xb434a3(this['dispose$']))[_0x5eec8b(0x26a)](()=>this[_0x5eec8b(0x280)](_0x394df0,_0x47e2d3));}[_0x257921(0x226)](_0x159e12,_0x86f702=!0x1){const _0x32970e=_0x257921;let _0x526db3=this[_0x32970e(0x299)][_0x32970e(0x201)]('subunit');_0x159e12[_0x32970e(0x218)]()!==_0x526db3&&this['_urlService'][_0x32970e(0x234)](_0x32970e(0x1f5),_0x159e12[_0x32970e(0x218)](),_0x86f702);}async[_0x257921(0x280)](_0x2901c9,_0x28260f){const _0x148df0=_0x257921;var _0x1ff694;if(!_0x28260f||!_0x2901c9[_0x148df0(0x1fb)](_0x28260f)){let _0x4643bf=_0x2901c9[_0x148df0(0x255)]()[0x0],_0x2de704=_0x2901c9[_0x148df0(0x1fb)](_0x4643bf);if(!_0x2de704)return;this[_0x148df0(0x226)](_0x2de704,!0x0),await this['_commandService'][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x4643bf});return;}((_0x1ff694=_0x2901c9['getActiveSheet']())==null?void 0x0:_0x1ff694[_0x148df0(0x218)]())!==_0x28260f&&await this[_0x148df0(0x236)][_0x148df0(0x270)](_0x4bdacf['id'],{'unitId':_0x2901c9[_0x148df0(0x29a)](),'subUnitId':_0x28260f});}};Q=H([V(0x0,_0x3b2fe9),V(0x1,_0x5cc3ae),V(0x2,_0x3d4214(_0x592985)),V(0x3,_0x3d4214(G)),V(0x4,_0x3d4214(_0x316b33)),V(0x5,_0x2b6969),V(0x6,_0x3d4214(_0x1e0d39)),V(0x7,_0x58623b),V(0x8,_0x3d4214(_0x5d6713)),V(0x9,_0x430938),V(0xa,_0x117d1f)],Q);let $=class extends _0x30cf8f{constructor(_0x2ecf89=R,_0x595997,_0x4c6d25){const _0x4056d0=_0x257921;super(),this['_config']=_0x2ecf89,this['_injector']=_0x595997,this[_0x4056d0(0x20d)]=_0x4c6d25;let {menu:_0x5130c5,..._0x5d63ed}=_0x3bca78({},R,this[_0x4056d0(0x208)]);_0x5130c5&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](_0x4056d0(0x1e7),_0x5130c5,{'merge':!0x0}),this[_0x4056d0(0x20d)][_0x4056d0(0x263)](L,_0x5d63ed),this[_0x4056d0(0x208)]['univerContainerId']&&this[_0x4056d0(0x20d)][_0x4056d0(0x263)](U,this[_0x4056d0(0x208)][_0x4056d0(0x23e)]);}[_0x257921(0x25b)](){const _0x4ff547=_0x257921;[[G],[Q]][_0x4ff547(0x20e)](_0x5d2169=>this[_0x4ff547(0x266)][_0x4ff547(0x292)](_0x5d2169));}[_0x257921(0x23f)](){const _0x4f54fc=_0x257921;this[_0x4f54fc(0x266)][_0x4f54fc(0x289)](Q);}};B($,_0x257921(0x24d),_0x7184d6[_0x257921(0x243)]),B($,_0x257921(0x298),_0x257921(0x1ed)),B($,_0x257921(0x22e),ct),B($,_0x257921(0x2a1),lt),$=H([_0x219475(_0x433b30),V(0x1,_0x3d4214(_0x4f86b8)),V(0x2,_0x119b2)],$);export{L as EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY,G as HistoryLoaderService,X as MobileHistoryLoaderService,K as ToggleEditHistoryOperation,U as UNIVER_CONTAINER_ID_KEY,W as UNIVER_HISTORY_CONTAINER_ID,Z as UniverEditHistoryLoaderMobilePlugin,$ as UniverEditHistoryLoaderPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x15c5e3,_0x45033b){const _0x15c73e=_0x9bd8,_0x52b969=_0x15c5e3();while(!![]){try{const _0x174225=parseInt(_0x15c73e(0x293))/0x1*(parseInt(_0x15c73e(0x211))/0x2)+-parseInt(_0x15c73e(0x1c5))/0x3+parseInt(_0x15c73e(0x1dd))/0x4+-parseInt(_0x15c73e(0x265))/0x5*(-parseInt(_0x15c73e(0x1ce))/0x6)+parseInt(_0x15c73e(0x19c))/0x7+parseInt(_0x15c73e(0x21a))/0x8*(-parseInt(_0x15c73e(0x1ca))/0x9)+-parseInt(_0x15c73e(0x21f))/0xa*(parseInt(_0x15c73e(0x17a))/0xb);if(_0x174225===_0x45033b)break;else _0x52b969['push'](_0x52b969['shift']());}catch(_0x415072){_0x52b969['push'](_0x52b969['shift']());}}}(_0x268d,0xbf7ed),function(_0x5d1d17,_0x187ebe){const _0x39adac=_0x9bd8;typeof exports==_0x39adac(0x13e)&&typeof module<'u'?_0x187ebe(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==_0x39adac(0x157)&&define[_0x39adac(0x1bd)]?define(_0x39adac(0x182)[_0x39adac(0x153)]('.'),_0x187ebe):(_0x5d1d17=typeof globalThis<'u'?globalThis:_0x5d1d17||self,_0x187ebe(_0x5d1d17[_0x39adac(0x19e)]={},_0x5d1d17[_0x39adac(0x1a7)],_0x5d1d17[_0x39adac(0x20b)],_0x5d1d17[_0x39adac(0x168)],_0x5d1d17[_0x39adac(0x1d8)],_0x5d1d17[_0x39adac(0x255)],_0x5d1d17[_0x39adac(0x208)],_0x5d1d17[_0x39adac(0x14e)],_0x5d1d17[_0x39adac(0x14f)],_0x5d1d17[_0x39adac(0x24b)],_0x5d1d17[_0x39adac(0x241)],_0x5d1d17[_0x39adac(0x227)],_0x5d1d17[_0x39adac(0x18a)],_0x5d1d17[_0x39adac(0x20d)],_0x5d1d17[_0x39adac(0x14c)],_0x5d1d17[_0x39adac(0x290)],_0x5d1d17['UniverDocs'],_0x5d1d17[_0x39adac(0x144)],_0x5d1d17[_0x39adac(0x220)],_0x5d1d17[_0x39adac(0x1fc)],_0x5d1d17['UniverEngineFormula'],_0x5d1d17[_0x39adac(0x147)],_0x5d1d17['UniverNetwork'],_0x5d1d17[_0x39adac(0x263)],_0x5d1d17[_0x39adac(0x160)],_0x5d1d17[_0x39adac(0x223)],_0x5d1d17[_0x39adac(0x258)],_0x5d1d17[_0x39adac(0x23c)],_0x5d1d17[_0x39adac(0x1f0)],_0x5d1d17[_0x39adac(0x25f)],_0x5d1d17[_0x39adac(0x16e)],_0x5d1d17[_0x39adac(0x1e8)],_0x5d1d17[_0x39adac(0x256)],_0x5d1d17['UniverSheetsFormulaUi'],_0x5d1d17[_0x39adac(0x1d1)],_0x5d1d17[_0x39adac(0x16a)],_0x5d1d17[_0x39adac(0x1a1)],_0x5d1d17['UniverSheetsTable'],_0x5d1d17[_0x39adac(0x17f)],_0x5d1d17['UniverUi'],_0x5d1d17[_0x39adac(0x1e1)],_0x5d1d17[_0x39adac(0x149)],_0x5d1d17[_0x39adac(0x1f9)]));}(this,function(_0x102004,_0x10bd9c,_0x5edcb9,_0x4e16b4,_0x107d38,_0x4cbac3,_0x5b7516,_0x18f0e4,_0x4309e6,_0x3f2a9b,_0x37c6bd,_0x461080,_0x3c61aa,_0x11e001,_0x24bb6d,_0x524356,_0x7732e3,_0x4f4d33,_0x78e110,_0x4fa371,_0xbf666,_0xe3d3d1,_0x45dbb6,_0x6424bb,_0x5ea2f0,_0x14954d,_0x1c0a0d,_0xbeb765,_0x50d700,_0x34d5e7,_0x285f70,_0x5c2150,_0x3aabef,_0x2e7692,_0x19919f,_0xef44d0,_0x4d3aca,_0x7d6a3c,_0x49cb8d,_0x381e63,_0xc85947,_0x53e49e,_0x5e1347){const _0xbfa157=_0x9bd8;Object['defineProperty'](_0x102004,Symbol['toStringTag'],{'value':_0xbfa157(0x14d)});let _0x4a552f=_0xbfa157(0x28a);Symbol(_0x4a552f);let _0x3d8eee={};function _0x5da9e1(_0x5889ab){'@babel/helpers - typeof';const _0x263710=_0xbfa157;return _0x5da9e1=typeof Symbol==_0x263710(0x157)&&typeof Symbol['iterator']==_0x263710(0x295)?function(_0x444456){return typeof _0x444456;}:function(_0x56aa05){const _0x1171a9=_0x263710;return _0x56aa05&&typeof Symbol==_0x1171a9(0x157)&&_0x56aa05['constructor']===Symbol&&_0x56aa05!==Symbol[_0x1171a9(0x1aa)]?_0x1171a9(0x295):typeof _0x56aa05;},_0x5da9e1(_0x5889ab);}function _0xb09424(_0x46f576,_0x4ab9c1){const _0x5c1043=_0xbfa157;if(_0x5da9e1(_0x46f576)!='object'||!_0x46f576)return _0x46f576;var _0x1ebc7a=_0x46f576[Symbol[_0x5c1043(0x16f)]];if(_0x1ebc7a!==void 0x0){var _0x83dae8=_0x1ebc7a[_0x5c1043(0x1b3)](_0x46f576,_0x4ab9c1||_0x5c1043(0x266));if(_0x5da9e1(_0x83dae8)!='object')return _0x83dae8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4ab9c1===_0x5c1043(0x1d9)?String:Number)(_0x46f576);}function _0x2dbcd8(_0x2e8395){const _0xe823c0=_0xbfa157;var _0x221c89=_0xb09424(_0x2e8395,'string');return _0x5da9e1(_0x221c89)==_0xe823c0(0x295)?_0x221c89:_0x221c89+'';}function _0x465da1(_0xcd9741,_0x187336,_0x5a43a3){return(_0x187336=_0x2dbcd8(_0x187336))in _0xcd9741?Object['defineProperty'](_0xcd9741,_0x187336,{'value':_0x5a43a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcd9741[_0x187336]=_0x5a43a3,_0xcd9741;}function _0xff1d8d(_0x42528e,_0x39c58f){return function(_0x554c5e,_0x292b1a){_0x39c58f(_0x554c5e,_0x292b1a,_0x42528e);};}function _0x568afd(_0x38ca10,_0x2b4218,_0x268f92,_0x52a511){const _0x4c2629=_0xbfa157;var _0x3f8698=arguments['length'],_0x15350d=_0x3f8698<0x3?_0x2b4218:_0x52a511===null?_0x52a511=Object[_0x4c2629(0x240)](_0x2b4218,_0x268f92):_0x52a511,_0x41a4c3;if(typeof Reflect==_0x4c2629(0x13e)&&typeof Reflect['decorate']==_0x4c2629(0x157))_0x15350d=Reflect[_0x4c2629(0x1ec)](_0x38ca10,_0x2b4218,_0x268f92,_0x52a511);else{for(var _0x48f919=_0x38ca10[_0x4c2629(0x277)]-0x1;_0x48f919>=0x0;_0x48f919--)(_0x41a4c3=_0x38ca10[_0x48f919])&&(_0x15350d=(_0x3f8698<0x3?_0x41a4c3(_0x15350d):_0x3f8698>0x3?_0x41a4c3(_0x2b4218,_0x268f92,_0x15350d):_0x41a4c3(_0x2b4218,_0x268f92))||_0x15350d);}return _0x3f8698>0x3&&_0x15350d&&Object[_0x4c2629(0x252)](_0x2b4218,_0x268f92,_0x15350d),_0x15350d;}let _0x4b3040=_0xbfa157(0x1e3),_0x1162fa=_0xbfa157(0x141),_0x399c22=class extends _0x10bd9c['Disposable']{constructor(_0x4d2080,_0x5a8aae,_0x3deb28,_0x544a9f,_0x50e491,_0x17c520,_0x4a94c6,_0x199334,_0x52f911,_0x4bd1b6){const _0x2b4340=_0xbfa157;super(),this[_0x2b4340(0x276)]=_0x4d2080,this['_univerInstanceService']=_0x5a8aae,this[_0x2b4340(0x1d0)]=_0x3deb28,this['_commandService']=_0x544a9f,this[_0x2b4340(0x228)]=_0x50e491,this[_0x2b4340(0x27c)]=_0x17c520,this[_0x2b4340(0x218)]=_0x4a94c6,this[_0x2b4340(0x13d)]=_0x199334,this[_0x2b4340(0x163)]=_0x52f911,this[_0x2b4340(0x288)]=_0x4bd1b6,_0x465da1(this,_0x2b4340(0x262),new _0xc85947[(_0x2b4340(0x197))](null)),_0x465da1(this,_0x2b4340(0x23d),this[_0x2b4340(0x262)][_0x2b4340(0x18e)]()),_0x465da1(this,'_disposableCollection',new _0x10bd9c[(_0x2b4340(0x2a0))]()),_0x465da1(this,_0x2b4340(0x17e),new Map()),_0x465da1(this,'_internalWebWorker',null),this[_0x2b4340(0x1dc)]();}get[_0xbfa157(0x1ab)](){return this['_historyUniver$']['value'];}['_init'](){const _0x8a5eb9=_0xbfa157;this['_initContainer'](),this[_0x8a5eb9(0x1be)]();}[_0xbfa157(0x29e)](){const _0x58a217=_0xbfa157;var _0x4ba8c7;let _0x323abc=(_0x4ba8c7=this[_0x58a217(0x1d0)][_0x58a217(0x23b)](_0x58a217(0x1e3)))==null?_0x58a217(0x2a2):_0x4ba8c7,_0x263838=document['getElementById'](_0x323abc);if(!_0x263838)return;let _0x407b17=document[_0x58a217(0x15f)](_0x58a217(0x15d));_0x407b17['id']=_0x1162fa,_0x407b17[_0x58a217(0x287)][_0x58a217(0x165)]=_0x58a217(0x178),_0x407b17['style'][_0x58a217(0x1c3)]=_0x58a217(0x1f2),_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x146)]='0',_0x407b17[_0x58a217(0x1ea)]['left']='0',_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x13c)]='100%',_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x1e5)]=_0x58a217(0x18f),_0x407b17[_0x58a217(0x1ea)][_0x58a217(0x299)]='49',_0x407b17['style']['display']='none',_0x263838[_0x58a217(0x22a)](_0x407b17);}[_0xbfa157(0x1be)](){const _0x13e762=_0xbfa157;[[_0xe3d3d1['UniverRenderEnginePlugin']],[_0x381e63[_0x13e762(0x183)],{'container':_0x1162fa,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x381e63['IDialogService'],null]]}],[_0x45dbb6['UniverNetworkPlugin']],[_0x78e110[_0x13e762(0x286)],{'override':[[_0x78e110[_0x13e762(0x14b)],null]]}],[_0x7732e3[_0x13e762(0x198)],{'hasScroll':!0x1}],[_0x4f4d33[_0x13e762(0x1bf)]],[_0x4d3aca[_0x13e762(0x1fb)]],[_0x5edcb9[_0x13e762(0x1a4)],{'notExecuteFormula':!0x0}],[_0x49cb8d['UniverSheetsUIPlugin']],[_0x3aabef[_0x13e762(0x27a)]],[_0x2e7692['UniverSheetsFormulaUIPlugin']],[_0x4e16b4[_0x13e762(0x242)]],[_0x285f70[_0x13e762(0x1d2)]],[_0x5c2150[_0x13e762(0x1b7)]],[_0x5ea2f0['UniverSheetsConditionalFormattingPlugin']],[_0x14954d['UniverSheetsConditionalFormattingUIPlugin']],[_0x19919f[_0x13e762(0x214)]],[_0xef44d0[_0x13e762(0x1ed)]],[_0x24bb6d['UniverDataValidationPlugin']],[_0x1c0a0d[_0x13e762(0x217)]],[_0xbeb765[_0x13e762(0x254)]],[_0xbf666[_0x13e762(0x245)],{'notExecuteFormula':!0x0}],[_0x4fa371[_0x13e762(0x238)]],[_0x50d700[_0x13e762(0x216)]],[_0x34d5e7[_0x13e762(0x1a8)]],[_0x3c61aa[_0x13e762(0x1c9)]],[_0x11e001[_0x13e762(0x1ff)]],[_0x18f0e4[_0x13e762(0x24c)]],[_0x4309e6[_0x13e762(0x279)]],[_0x37c6bd[_0x13e762(0x17d)]],[_0x461080[_0x13e762(0x231)]],[_0x3f2a9b['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x7d6a3c[_0x13e762(0x19d)]]][_0x13e762(0x18c)](([_0x528626,_0x75e49])=>this[_0x13e762(0x29d)](_0x528626,_0x75e49));}[_0xbfa157(0x271)](){const _0x2a0826=_0xbfa157;super['dispose'](),this[_0x2a0826(0x1fa)](),this[_0x2a0826(0x17e)]['clear']();}['registerPlugin'](_0x35bb71,_0x48b1e5,_0x3c4aa5){const _0x1b8aa2=_0xbfa157;if(this['_pluginMap'][_0x1b8aa2(0x1e2)](_0x35bb71[_0x1b8aa2(0x28c)])&&!_0x3c4aa5)throw Error(_0x1b8aa2(0x2a5)+_0x35bb71['pluginName']+_0x1b8aa2(0x1db));this[_0x1b8aa2(0x17e)][_0x1b8aa2(0x16b)](_0x35bb71[_0x1b8aa2(0x28c)],[_0x35bb71,_0x48b1e5]);}['getAllPlugins'](){const _0x25705d=_0xbfa157;return Array['from'](this[_0x25705d(0x17e)][_0x25705d(0x230)]());}['mountHistoryContent'](_0x2fb8a2,_0x5aa6e8){const _0x1d582e=_0xbfa157;let _0x22828b=document['getElementById'](_0x1162fa);_0x22828b&&(_0x22828b[_0x1d582e(0x1ea)][_0x1d582e(0x1bc)]=_0x1d582e(0x284),this[_0x1d582e(0x170)](_0x2fb8a2,_0x1162fa,_0x5aa6e8));}[_0xbfa157(0x1fa)](){const _0x55cc14=_0xbfa157;var _0x191d35;this[_0x55cc14(0x2a8)][_0x55cc14(0x271)](),(_0x191d35=this[_0x55cc14(0x1ab)])==null||_0x191d35['dispose'](),this[_0x55cc14(0x262)][_0x55cc14(0x1cc)](null);let _0x3c08bd=document[_0x55cc14(0x159)](_0x1162fa);_0x3c08bd&&(_0x3c08bd[_0x55cc14(0x1ea)][_0x55cc14(0x1bc)]='none',this['_internalWebWorker']&&(this[_0x55cc14(0x248)][_0x55cc14(0x1c4)](),this[_0x55cc14(0x248)]=null));}[_0xbfa157(0x170)](_0x434f5f,_0x21fb4b,_0x53c157){const _0x5aa95d=_0xbfa157;var _0x415e16,_0x333249,_0x41b549,_0x155f4a,_0x48aec7;if(this[_0x5aa95d(0x1ab)])return;let _0x1c3055=new _0x10bd9c[(_0x5aa95d(0x283))]({'locales':{[this[_0x5aa95d(0x276)][_0x5aa95d(0x143)]()]:this[_0x5aa95d(0x276)][_0x5aa95d(0x1e4)]()},'override':[[_0x10bd9c[_0x5aa95d(0x27e)],{'useClass':_0x107d38[_0x5aa95d(0x1cf)]}]]}),_0x1d13c1=_0x1c3055['__getInjector']();this['disposeWithMe'](this[_0x5aa95d(0x288)][_0x5aa95d(0x260)][_0x5aa95d(0x270)](_0x515d37=>{const _0x500b29=_0x5aa95d;_0x1d13c1[_0x500b29(0x26d)](_0x10bd9c[_0x500b29(0x280)])[_0x500b29(0x23e)](_0x515d37);})),this['disposeWithMe'](this[_0x5aa95d(0x288)][_0x5aa95d(0x1cb)][_0x5aa95d(0x270)](_0x473ed7=>{const _0x212b75=_0x5aa95d;_0x1d13c1[_0x212b75(0x26d)](_0x10bd9c[_0x212b75(0x280)])[_0x212b75(0x1c6)](_0x473ed7);})),_0x1d13c1[_0x5aa95d(0x26d)](_0x10bd9c[_0x5aa95d(0x239)])['setLocale'](this[_0x5aa95d(0x276)]['getCurrentLocale']()),_0x1d13c1[_0x5aa95d(0x26d)](_0x10bd9c[_0x5aa95d(0x237)])[_0x5aa95d(0x28f)](_0x107d38['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x5aa95d(0x1d0)]['getConfig'](_0x107d38[_0x5aa95d(0x22e)]));let _0x2f9c86=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5b7516[_0x5aa95d(0x1ef)]);_0x2f9c86&&_0x1c3055[_0x5aa95d(0x29d)](_0x5b7516[_0x5aa95d(0x173)],{'license':_0x2f9c86['ls']});let _0x478ef6=(_0x415e16=this[_0x5aa95d(0x1d0)]['getConfig'](_0x5aa95d(0x28a)))==null?void 0x0:_0x415e16[_0x5aa95d(0x14a)],_0xd50ab2=!!_0x478ef6;_0xd50ab2&&(this[_0x5aa95d(0x248)]=_0x478ef6 instanceof Worker?_0x478ef6:null,_0x1c3055[_0x5aa95d(0x29d)](_0x6424bb[_0x5aa95d(0x19b)],{'workerURL':_0x478ef6})),this['_pluginMap'][_0x5aa95d(0x18c)](([_0x57bc84,_0x41d4de])=>{_0x1c3055['registerPlugin'](_0x57bc84,_0x41d4de);}),_0x1c3055[_0x5aa95d(0x29d)](_0x4cbac3[_0x5aa95d(0x226)],{'historyListServerUrl':(_0x333249=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x333249[_0x5aa95d(0x1c2)],'historyPanelComponentKey':(_0x41b549=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x41b549[_0x5aa95d(0x172)],'historyPanelHidden':(_0x155f4a=this[_0x5aa95d(0x1d0)][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x155f4a[_0x5aa95d(0x1c7)],'historyAIassistantEnabled':(_0x48aec7=this['_configService'][_0x5aa95d(0x23b)](_0x5aa95d(0x28a)))==null?void 0x0:_0x48aec7[_0x5aa95d(0x2a6)]}),_0x1d13c1['invoke'](_0x5e526f=>{const _0x1b18df=_0x5aa95d;this[_0x1b18df(0x292)](_0x5e526f,_0x434f5f);}),this[_0x5aa95d(0x262)][_0x5aa95d(0x1cc)](_0x1c3055);let _0x8b3e98=_0x1d13c1[_0x5aa95d(0x26d)](_0x4cbac3['HistoryManagerService']),_0xd2d9ad=this[_0x5aa95d(0x1a3)](_0x434f5f),_0x51f0b8=()=>{const _0x30e87c=_0x5aa95d;_0x53c157?_0x8b3e98['triggerCustomVersions'](_0x434f5f,_0x21fb4b,_0xd2d9ad,_0x53c157):_0x8b3e98[_0x30e87c(0x26e)](_0x434f5f,_0x21fb4b,_0xd2d9ad);};if(this[_0x5aa95d(0x228)]['show']({'content':this[_0x5aa95d(0x276)]['t'](_0x5aa95d(0x155)),'type':_0x524356[_0x5aa95d(0x233)][_0x5aa95d(0x22c)]}),_0xd50ab2)try{_0x1d13c1['get'](_0x6424bb[_0x5aa95d(0x261)])[_0x5aa95d(0x18d)]()[_0x5aa95d(0x23a)](()=>{_0x51f0b8();});}catch{_0x51f0b8();}else _0x51f0b8();}[_0xbfa157(0x292)](_0x1345e0,_0x400ff2){const _0x5c4e0d=_0xbfa157;let _0x25923d=_0x1345e0['get'](_0x4cbac3['HistoryManagerService']);this['_disposableCollection']['add'](_0x25923d[_0x5c4e0d(0x21d)]['subscribe'](_0x1d8e04=>{const _0x1d3769=_0x5c4e0d;switch(_0x1d8e04){case _0x4cbac3[_0x1d3769(0x278)][_0x1d3769(0x25a)]:this[_0x1d3769(0x13d)][_0x1d3769(0x1c8)](),this[_0x1d3769(0x163)]['close']();break;case _0x4cbac3[_0x1d3769(0x278)]['Exited']:this[_0x1d3769(0x251)][_0x1d3769(0x296)](_0x1861d6['id']),this['unMountHistoryContent']();break;case _0x4cbac3[_0x1d3769(0x278)][_0x1d3769(0x1da)]:this['unMountHistoryContent'](),this[_0x1d3769(0x228)][_0x1d3769(0x205)]({'content':this[_0x1d3769(0x276)]['t'](_0x1d3769(0x2a9)),'type':_0x524356['MessageType']['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection'][_0x5c4e0d(0x21c)](_0x25923d[_0x5c4e0d(0x26a)]['subscribe'](async _0x45f727=>{const _0x40ac1d=_0x5c4e0d;_0x45f727&&this[_0x40ac1d(0x251)][_0x40ac1d(0x296)](_0x4e16b4[_0x40ac1d(0x152)]['id'],{'unitId':_0x400ff2,'revision':_0x45f727});}));}['_checkCanRevert'](_0x1bc055){const _0x5c15a9=_0xbfa157;let _0xb2e4e5=this[_0x5c15a9(0x29c)][_0x5c15a9(0x229)](_0x1bc055)[_0x5c15a9(0x20e)]()[_0x5c15a9(0x1b4)](_0x1ca202=>_0x1ca202['getSheetId']()),_0x1c6476=new _0x5edcb9['WorkbookEditablePermission'](_0x1bc055)['id'],_0x3a960c=_0xb2e4e5[_0x5c15a9(0x1b4)](_0x430346=>new _0x5edcb9[(_0x5c15a9(0x212))](_0x1bc055,_0x430346)['id']),_0x48ec8f=_0xb2e4e5[_0x5c15a9(0x1b4)](_0x5d5269=>this['_selectionProtectionRuleModel'][_0x5c15a9(0x1d7)](_0x1bc055,_0x5d5269)['map'](_0x100f8c=>new _0x5edcb9[(_0x5c15a9(0x1b0))](_0x1bc055,_0x5d5269,_0x100f8c[_0x5c15a9(0x195)])['id']))[_0x5c15a9(0x207)](),_0x39c42c=new _0x5edcb9['WorkbookRecoverHistoryPermission'](_0x1bc055)['id'];return this['_permissionService'][_0x5c15a9(0x285)]([_0x1c6476,..._0x3a960c,..._0x48ec8f,_0x39c42c])[_0x5c15a9(0x193)](_0x354df9=>!!_0x354df9[_0x5c15a9(0x1c1)]);}};_0x399c22=_0x568afd([_0xff1d8d(0x0,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x239)])),_0xff1d8d(0x1,_0x10bd9c[_0xbfa157(0x1e0)]),_0xff1d8d(0x2,_0x10bd9c['IConfigService']),_0xff1d8d(0x3,_0x10bd9c[_0xbfa157(0x26c)]),_0xff1d8d(0x4,_0x381e63['IMessageService']),_0xff1d8d(0x5,_0x10bd9c[_0xbfa157(0x167)]),_0xff1d8d(0x6,(0x0,_0x10bd9c['Inject'])(_0x5edcb9[_0xbfa157(0x1b5)])),_0xff1d8d(0x7,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63[_0xbfa157(0x1fe)])),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63['ISidebarService'])),_0xff1d8d(0x9,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x280)]))],_0x399c22);let _0x4e6806={'id':_0xbfa157(0x246),'type':_0x10bd9c[_0xbfa157(0x16d)][_0xbfa157(0x1fd)],'handler':_0x1e4331=>{const _0x1eba0f=_0xbfa157;let _0x8487c6=_0x1e4331[_0x1eba0f(0x26d)](_0x399c22),{unitId:_0x9c4bde}=(0x0,_0x5edcb9[_0x1eba0f(0x164)])(_0x1e4331[_0x1eba0f(0x26d)](_0x10bd9c[_0x1eba0f(0x1e0)]))||{};return _0x9c4bde?(_0x8487c6[_0x1eba0f(0x1d5)](_0x9c4bde),!0x0):!0x1;}},_0x1861d6={'id':_0xbfa157(0x145),'type':_0x10bd9c['CommandType'][_0xbfa157(0x1fd)],'handler':()=>!0x0};var _0x182131='@univerjs-pro/edit-history-loader',_0x506492=_0xbfa157(0x1f3);function _0xeacbd9({ref:_0xeb0d51,..._0x548871}){const _0x43f123=_0xbfa157;let {icon:_0x1830e1,id:_0x39e9fc,className:_0x55b4aa,extend:_0x58cf74,..._0x418b39}=_0x548871,_0x358527=('univerjs-icon\x20univerjs-icon-'+_0x39e9fc+'\x20'+(_0x55b4aa||''))[_0x43f123(0x1f1)](),_0x34b8fe=(0x0,_0x5e1347[_0x43f123(0x154)])('_'+_0x45dee5());return _0x20fa23(_0x1830e1,''+_0x39e9fc,{'defIds':_0x1830e1['defIds'],'idSuffix':_0x34b8fe[_0x43f123(0x257)]},{'ref':_0xeb0d51,'className':_0x358527,..._0x418b39},_0x58cf74);}function _0x20fa23(_0x3bb94e,_0x72abd6,_0x337aae,_0x42147a,_0x4db585){const _0x7fa25f=_0xbfa157;return(0x0,_0x5e1347[_0x7fa25f(0x15f)])(_0x3bb94e['tag'],{'key':_0x72abd6,..._0x599c5f(_0x3bb94e,_0x337aae,_0x4db585),..._0x42147a},(_0x3e5fa3(_0x3bb94e,_0x337aae)['children']||[])[_0x7fa25f(0x1b4)]((_0x244c5e,_0x1e12f4)=>_0x20fa23(_0x244c5e,_0x72abd6+'-'+_0x3bb94e['tag']+'-'+_0x1e12f4,_0x337aae,void 0x0,_0x4db585)));}function _0x599c5f(_0x5f4aca,_0x531175,_0x8d2ca8){const _0x4f7434=_0xbfa157;let _0x2c0902={..._0x5f4aca[_0x4f7434(0x1e6)]};_0x8d2ca8!=null&&_0x8d2ca8[_0x4f7434(0x298)]&&_0x2c0902[_0x4f7434(0x156)]===_0x4f7434(0x298)&&(_0x2c0902['fill']=_0x8d2ca8['colorChannel1']),_0x5f4aca[_0x4f7434(0x202)]==='mask'&&_0x2c0902['id']&&(_0x2c0902['id']+=_0x531175[_0x4f7434(0x213)]),Object['entries'](_0x2c0902)[_0x4f7434(0x18c)](([_0x1a7391,_0x2bdf97])=>{const _0x575fa4=_0x4f7434;_0x1a7391==='mask'&&typeof _0x2bdf97==_0x575fa4(0x1d9)&&(_0x2c0902[_0x1a7391]=_0x2bdf97[_0x575fa4(0x1a9)](/url\(#(.*)\)/,'url(#$1'+_0x531175[_0x575fa4(0x213)]+')'));});let {defIds:_0x542c25}=_0x531175;return!_0x542c25||_0x542c25[_0x4f7434(0x277)]===0x0?_0x2c0902:(_0x5f4aca['tag']===_0x4f7434(0x1a5)&&_0x2c0902[_0x4f7434(0x1af)]&&(_0x2c0902[_0x4f7434(0x1af)]+=_0x531175[_0x4f7434(0x213)]),Object[_0x4f7434(0x162)](_0x2c0902)[_0x4f7434(0x18c)](([_0x46c5f5,_0x4e7d1e])=>{const _0x2df9cd=_0x4f7434;typeof _0x4e7d1e==_0x2df9cd(0x1d9)&&(_0x2c0902[_0x46c5f5]=_0x4e7d1e[_0x2df9cd(0x1a9)](/url\(#(.*)\)/,_0x2df9cd(0x192)+_0x531175[_0x2df9cd(0x213)]+')'));}),_0x2c0902);}function _0x3e5fa3(_0x3503c5,_0x2bf23e){const _0x5429f1=_0xbfa157;var _0x1d8cec;let {defIds:_0x3e3b56}=_0x2bf23e;return!_0x3e3b56||_0x3e3b56['length']===0x0?_0x3503c5:_0x3503c5[_0x5429f1(0x202)]==='defs'&&(_0x1d8cec=_0x3503c5[_0x5429f1(0x15a)])!=null&&_0x1d8cec[_0x5429f1(0x277)]?{..._0x3503c5,'children':_0x3503c5[_0x5429f1(0x15a)][_0x5429f1(0x1b4)](_0x4b8d12=>typeof _0x4b8d12['attrs']['id']=='string'&&_0x3e3b56&&_0x3e3b56[_0x5429f1(0x15e)](_0x4b8d12[_0x5429f1(0x1e6)]['id'])?{..._0x4b8d12,'attrs':{..._0x4b8d12[_0x5429f1(0x1e6)],'id':_0x4b8d12[_0x5429f1(0x1e6)]['id']+_0x2bf23e[_0x5429f1(0x213)]}}:_0x4b8d12)}:_0x3503c5;}function _0x45dee5(){const _0xfc2cc9=_0xbfa157;return Math['random']()[_0xfc2cc9(0x187)](0x24)[_0xfc2cc9(0x20f)](0x2,0x8);}_0xeacbd9[_0xbfa157(0x25e)]=_0xbfa157(0x148);let _0x55d502={'tag':'svg','attrs':{'xmlns':_0xbfa157(0x21e),'fill':_0xbfa157(0x13b),'viewBox':_0xbfa157(0x221),'width':'1em','height':_0xbfa157(0x174)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0xbfa157(0x26f),'attrs':{'d':_0xbfa157(0x273)}},{'tag':_0xbfa157(0x26f),'attrs':{'d':_0xbfa157(0x190)}}]},{'tag':_0xbfa157(0x175),'attrs':{},'children':[{'tag':_0xbfa157(0x22b),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':_0xbfa157(0x26f),'attrs':{'fill':_0xbfa157(0x16c),'d':_0xbfa157(0x1cd)}}]}]}],'defIds':[_0xbfa157(0x17c)]},_0x1166e4=(0x0,_0x5e1347['forwardRef'])(function(_0x1814df,_0x355c31){const _0x5061f7=_0xbfa157;return(0x0,_0x5e1347[_0x5061f7(0x15f)])(_0xeacbd9,Object['assign']({},_0x1814df,{'id':'history-icon','ref':_0x355c31,'icon':_0x55d502}));});_0x1166e4['displayName']=_0xbfa157(0x291);let _0x1bf926=function(_0x10cc73){const _0x23267c=_0xbfa157;return _0x10cc73[_0x10cc73[_0x23267c(0x15b)]=0x0]=_0x23267c(0x15b),_0x10cc73[_0x10cc73[_0x23267c(0x1b6)]=0x1]=_0x23267c(0x1b6),_0x10cc73[_0x10cc73[_0x23267c(0x191)]=0x2]=_0x23267c(0x191),_0x10cc73[_0x10cc73[_0x23267c(0x166)]=0x3]=_0x23267c(0x166),_0x10cc73[_0x10cc73[_0x23267c(0x232)]=0x4]=_0x23267c(0x232),_0x10cc73[_0x10cc73[_0x23267c(0x250)]=-0x1]=_0x23267c(0x250),_0x10cc73;}({});function _0x2a49ee(_0x4e0612){const _0x380f3a=_0xbfa157;return{'id':_0x4e6806['id'],'type':_0x381e63['MenuItemType'][_0x380f3a(0x289)],'icon':_0x380f3a(0x291),'tooltip':_0x380f3a(0x209),'hidden$':(0x0,_0x381e63[_0x380f3a(0x1b8)])(_0x4e0612,_0x10bd9c[_0x380f3a(0x1f7)][_0x380f3a(0x191)]),'disabled$':(0x0,_0x49cb8d['getCurrentRangeDisable$'])(_0x4e0612,{'workbookTypes':[_0x5edcb9['WorkbookEditablePermission'],_0x5edcb9[_0x380f3a(0x1e9)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x5e3708={[_0x381e63[_0xbfa157(0x184)][_0xbfa157(0x203)]]:{[_0x4e6806['id']]:{'order':0.2,'menuItemFactory':_0x2a49ee}}},_0x58c08d=class extends _0x10bd9c[_0xbfa157(0x210)]{constructor(_0x36f025,_0x1ee0c8,_0x5900d8,_0x3d5566,_0x12ef1a,_0x165bb1,_0x5240a5,_0x57d280,_0x17441d,_0x280e1d,_0x279a83){const _0x48dbbe=_0xbfa157;super(),this[_0x48dbbe(0x251)]=_0x36f025,this[_0x48dbbe(0x199)]=_0x1ee0c8,this[_0x48dbbe(0x20c)]=_0x5900d8,this[_0x48dbbe(0x18b)]=_0x3d5566,this[_0x48dbbe(0x276)]=_0x12ef1a,this[_0x48dbbe(0x228)]=_0x165bb1,this[_0x48dbbe(0x169)]=_0x5240a5,this[_0x48dbbe(0x297)]=_0x57d280,this[_0x48dbbe(0x269)]=_0x17441d,this[_0x48dbbe(0x29c)]=_0x280e1d,this['_urlService']=_0x279a83,_0x465da1(this,_0x48dbbe(0x1e7),null),this[_0x48dbbe(0x1dc)]();}[_0xbfa157(0x1dc)](){const _0x4046d0=_0xbfa157;[_0x4e6806,_0x1861d6]['forEach'](_0x566975=>this[_0x4046d0(0x1ba)]((0x0,_0x10bd9c['toDisposable'])(this[_0x4046d0(0x251)]['registerCommand'](_0x566975)))),this[_0x4046d0(0x1ba)](this[_0x4046d0(0x20c)]['register'](_0x4046d0(0x291),_0x1166e4)),this['_menuManagerService'][_0x4046d0(0x2a3)](_0x5e3708),this[_0x4046d0(0x1ba)](this[_0x4046d0(0x251)][_0x4046d0(0x186)](async(_0xb6b930,_0x18d460)=>{const _0x2d3d23=_0x4046d0;if(_0xb6b930['id']===_0x4e16b4[_0x2d3d23(0x152)]['id']){let {unitId:_0x61aac8}=_0xb6b930[_0x2d3d23(0x222)];this[_0x2d3d23(0x228)][_0x2d3d23(0x205)]({'content':this[_0x2d3d23(0x276)]['t'](_0x2d3d23(0x274)),'type':_0x524356[_0x2d3d23(0x233)]['Loading'],'duration':0x1388});let _0x146406=this['_collaborationController'][_0x2d3d23(0x1b1)](_0x61aac8);_0x18d460!=null&&_0x18d460[_0x2d3d23(0x140)]?this[_0x2d3d23(0x2a7)](_0x146406,async()=>(setTimeout(()=>window[_0x2d3d23(0x28b)][_0x2d3d23(0x13a)]()),!0x0),!0x0):this[_0x2d3d23(0x2a7)](_0x146406,async()=>{const _0x23dd68=_0x2d3d23;let _0x450e1a=this[_0x23dd68(0x29c)]['getCurrentUnitOfType'](_0x1bf926[_0x23dd68(0x191)]),_0x15ff9f=_0x450e1a==null?void 0x0:_0x450e1a[_0x23dd68(0x206)]();if(!_0x15ff9f)return!0x1;this[_0x23dd68(0x29c)][_0x23dd68(0x1ae)](_0x61aac8);let _0x1f59b0=await this['_dataLoaderService'][_0x23dd68(0x281)](_0x61aac8,_0x1bf926[_0x23dd68(0x191)]);return _0x1f59b0&&_0x1f59b0 instanceof _0x10bd9c[_0x23dd68(0x194)]?(await this[_0x23dd68(0x253)](_0x1f59b0,_0x15ff9f['getSheetId']()),!0x0):!0x1;});}}));}[_0xbfa157(0x2a7)](_0x53930b,_0x4cf423,_0x3212cf=!0x1){const _0x4af106=_0xbfa157;let _0x2b60f0=(0x0,_0xc85947['combineLatest'])([_0x53930b[_0x4af106(0x151)][_0x4af106(0x27d)],_0x53930b[_0x4af106(0x244)]])['subscribe'](async([_0x123ef5,_0x38144e])=>{const _0x52ad36=_0x4af106;if(_0x123ef5[_0x52ad36(0x224)]===_0x4e16b4['CollaborationEvent'][_0x52ad36(0x275)]&&(_0x38144e==null?void 0x0:_0x38144e[_0x52ad36(0x1f8)])===_0x107d38['CollaborationStatus']['SYNCED']&&_0x123ef5[_0x52ad36(0x180)][_0x52ad36(0x24a)][_0x52ad36(0x219)](_0x15e59c=>_0x15e59c['id']===_0x4e16b4[_0x52ad36(0x152)]['id'])&&await _0x4cf423()){var _0x29902b;this[_0x52ad36(0x18b)]['unMountHistoryContent'](),_0x2b60f0[_0x52ad36(0x1c0)](),this[_0x52ad36(0x1e7)]&&clearTimeout(this[_0x52ad36(0x1e7)]),await((_0x29902b=this[_0x52ad36(0x297)])==null?void 0x0:_0x29902b[_0x52ad36(0x27f)]()),this[_0x52ad36(0x228)]['removeAll']();}});_0x3212cf&&(this[_0x4af106(0x1e7)]=setTimeout(()=>{const _0x1eb7ea=_0x4af106;_0x2b60f0[_0x1eb7ea(0x1c0)](),this[_0x1eb7ea(0x228)][_0x1eb7ea(0x205)]({'content':this['_localeService']['t'](_0x1eb7ea(0x176)),'type':_0x524356[_0x1eb7ea(0x233)]['Error'],'duration':0xbb8});},0x1388));}async[_0xbfa157(0x253)](_0x7c80c2,_0x3af03c){const _0x2cb9f6=_0xbfa157;await this['_updateSubUnitFromURLParams'](_0x7c80c2,_0x3af03c),_0x7c80c2[_0x2cb9f6(0x19a)][_0x2cb9f6(0x28d)]((0x0,_0xc85947[_0x2cb9f6(0x1b9)])(this[_0x2cb9f6(0x29b)]))['subscribe'](_0x46a875=>{const _0x33c0ad=_0x2cb9f6;_0x46a875&&this[_0x33c0ad(0x236)](_0x46a875);}),this[_0x2cb9f6(0x1bb)][_0x2cb9f6(0x24d)][_0x2cb9f6(0x28d)]((0x0,_0xc85947[_0x2cb9f6(0x1b9)])(this['dispose$']))[_0x2cb9f6(0x270)](()=>this[_0x2cb9f6(0x21b)](_0x7c80c2,_0x3af03c));}['_updateURLWithCurrentState'](_0x25aeec,_0x435a12=!0x1){const _0x1609b=_0xbfa157;let _0xced112=this[_0x1609b(0x1bb)][_0x1609b(0x161)](_0x1609b(0x179));_0x25aeec[_0x1609b(0x17b)]()!==_0xced112&&this[_0x1609b(0x1bb)]['setParam']('subunit',_0x25aeec[_0x1609b(0x17b)](),_0x435a12);}async[_0xbfa157(0x21b)](_0x52c7f4,_0x22e16f){const _0x3fc14f=_0xbfa157;var _0x1f656b;if(!_0x22e16f||!_0x52c7f4[_0x3fc14f(0x2aa)](_0x22e16f)){let _0x3b9644=_0x52c7f4[_0x3fc14f(0x15c)]()[0x0],_0x3d2e4a=_0x52c7f4[_0x3fc14f(0x2aa)](_0x3b9644);if(!_0x3d2e4a)return;this[_0x3fc14f(0x236)](_0x3d2e4a,!0x0),await this[_0x3fc14f(0x251)][_0x3fc14f(0x296)](_0x5edcb9['SetWorksheetActivateCommand']['id'],{'unitId':_0x52c7f4[_0x3fc14f(0x1d4)](),'subUnitId':_0x3b9644});return;}((_0x1f656b=_0x52c7f4[_0x3fc14f(0x206)]())==null?void 0x0:_0x1f656b[_0x3fc14f(0x17b)]())!==_0x22e16f&&await this[_0x3fc14f(0x251)]['executeCommand'](_0x5edcb9[_0x3fc14f(0x234)]['id'],{'unitId':_0x52c7f4[_0x3fc14f(0x1d4)](),'subUnitId':_0x22e16f});}};_0x58c08d=_0x568afd([_0xff1d8d(0x0,_0x10bd9c['ICommandService']),_0xff1d8d(0x1,_0x381e63[_0xbfa157(0x1a6)]),_0xff1d8d(0x2,(0x0,_0x10bd9c['Inject'])(_0x381e63[_0xbfa157(0x29a)])),_0xff1d8d(0x3,(0x0,_0x10bd9c['Inject'])(_0x399c22)),_0xff1d8d(0x4,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x239)])),_0xff1d8d(0x5,_0x381e63[_0xbfa157(0x185)]),_0xff1d8d(0x6,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38[_0xbfa157(0x177)])),_0xff1d8d(0x7,_0x107d38[_0xbfa157(0x1a0)]),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38[_0xbfa157(0x29f)])),_0xff1d8d(0x9,_0x10bd9c['IUniverInstanceService']),_0xff1d8d(0xa,_0x53e49e[_0xbfa157(0x181)])],_0x58c08d);let _0x70450d=_0xbfa157(0x24f),_0x8ac307=class extends _0x10bd9c[_0xbfa157(0x1de)]{constructor(_0x39a6a8,_0x1b91b8,_0x3f6af1,_0x48fe39,_0x4a7949,_0x1e8dfe,_0x4d9e15,_0x1da010,_0x30a94b,_0x24c23f){const _0x1d4481=_0xbfa157;super(),this[_0x1d4481(0x276)]=_0x39a6a8,this['_univerInstanceService']=_0x1b91b8,this[_0x1d4481(0x1d0)]=_0x3f6af1,this[_0x1d4481(0x251)]=_0x48fe39,this[_0x1d4481(0x228)]=_0x4a7949,this[_0x1d4481(0x27c)]=_0x1e8dfe,this['_selectionProtectionRuleModel']=_0x4d9e15,this['_dialogService']=_0x1da010,this[_0x1d4481(0x163)]=_0x30a94b,this[_0x1d4481(0x288)]=_0x24c23f,_0x465da1(this,_0x1d4481(0x262),new _0xc85947[(_0x1d4481(0x197))](null)),_0x465da1(this,_0x1d4481(0x23d),this[_0x1d4481(0x262)]['asObservable']()),_0x465da1(this,_0x1d4481(0x2a8),new _0x10bd9c[(_0x1d4481(0x2a0))]()),_0x465da1(this,_0x1d4481(0x17e),new Map()),_0x465da1(this,_0x1d4481(0x248),null),this[_0x1d4481(0x1dc)]();}get[_0xbfa157(0x1ab)](){return this['_historyUniver$']['value'];}['_init'](){const _0x1150fe=_0xbfa157;this[_0x1150fe(0x29e)](),this[_0x1150fe(0x1be)]();}[_0xbfa157(0x29e)](){const _0x4fd9d0=_0xbfa157;var _0x166e96;let _0x58ce2f=(_0x166e96=this[_0x4fd9d0(0x1d0)]['getConfig'](_0x4fd9d0(0x1e3)))==null?_0x4fd9d0(0x2a2):_0x166e96,_0x88b675=document[_0x4fd9d0(0x159)](_0x58ce2f);if(!_0x88b675)return;let _0x455bc1=document[_0x4fd9d0(0x15f)](_0x4fd9d0(0x15d));_0x455bc1['id']=_0x70450d,_0x455bc1[_0x4fd9d0(0x287)]['uComp']=_0x4fd9d0(0x178),_0x455bc1['style'][_0x4fd9d0(0x1c3)]='absolute',_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x146)]='0',_0x455bc1['style'][_0x4fd9d0(0x215)]='0',_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x13c)]='100%',_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x1e5)]=_0x4fd9d0(0x18f),_0x455bc1[_0x4fd9d0(0x1ea)][_0x4fd9d0(0x299)]='49',_0x455bc1['style']['display']=_0x4fd9d0(0x13b),_0x88b675[_0x4fd9d0(0x22a)](_0x455bc1);}[_0xbfa157(0x1be)](){const _0x55bcf6=_0xbfa157;[[_0xe3d3d1[_0x55bcf6(0x188)]],[_0x381e63[_0x55bcf6(0x22d)],{'container':_0x70450d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x381e63[_0x55bcf6(0x1fe)],null]]}],[_0x45dbb6[_0x55bcf6(0x1f6)]],[_0x78e110[_0x55bcf6(0x286)],{'override':[[_0x78e110[_0x55bcf6(0x14b)],null]]}],[_0x7732e3[_0x55bcf6(0x198)],{'hasScroll':!0x1}],[_0x4f4d33[_0x55bcf6(0x1bf)]],[_0x4d3aca[_0x55bcf6(0x1fb)]],[_0x5edcb9['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x49cb8d[_0x55bcf6(0x1ee)]],[_0x3aabef[_0x55bcf6(0x27a)]],[_0x2e7692[_0x55bcf6(0x267)]],[_0x4e16b4['UniverCollaborationPlugin']],[_0x285f70[_0x55bcf6(0x1d2)]],[_0x5ea2f0[_0x55bcf6(0x1a2)]],[_0x19919f[_0x55bcf6(0x214)]],[_0xef44d0['UniverSheetsHyperLinkUIPlugin']],[_0x24bb6d[_0x55bcf6(0x25d)]],[_0x1c0a0d[_0x55bcf6(0x217)]],[_0xbeb765[_0x55bcf6(0x1f4)]],[_0xbf666['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x4fa371['UniverDrawingUIPlugin']],[_0x50d700[_0x55bcf6(0x216)]],[_0x34d5e7[_0x55bcf6(0x1a8)]],[_0x3c61aa[_0x55bcf6(0x1c9)]],[_0x11e001[_0x55bcf6(0x1ff)]],[_0x18f0e4[_0x55bcf6(0x24c)]],[_0x4309e6[_0x55bcf6(0x279)]],[_0x37c6bd[_0x55bcf6(0x17d)]],[_0x461080[_0x55bcf6(0x231)]],[_0x3f2a9b[_0x55bcf6(0x23f)],{'notExecuteFormula':!0x0}],[_0x7d6a3c['UniverSheetsTablePlugin']]][_0x55bcf6(0x18c)](([_0x1858af,_0x556d90])=>this[_0x55bcf6(0x29d)](_0x1858af,_0x556d90));}[_0xbfa157(0x271)](){const _0x2e06bb=_0xbfa157;super[_0x2e06bb(0x271)](),this[_0x2e06bb(0x1fa)](),this[_0x2e06bb(0x17e)][_0x2e06bb(0x142)]();}[_0xbfa157(0x29d)](_0x1d7667,_0x53ac29,_0x2a7217){const _0x34527e=_0xbfa157;if(this[_0x34527e(0x17e)][_0x34527e(0x1e2)](_0x1d7667[_0x34527e(0x28c)])&&!_0x2a7217)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x1d7667[_0x34527e(0x28c)]+_0x34527e(0x1db));this['_pluginMap'][_0x34527e(0x16b)](_0x1d7667[_0x34527e(0x28c)],[_0x1d7667,_0x53ac29]);}[_0xbfa157(0x1df)](){const _0x59a9f7=_0xbfa157;return Array[_0x59a9f7(0x25c)](this[_0x59a9f7(0x17e)][_0x59a9f7(0x230)]());}['mountHistoryContent'](_0x539f5c,_0x1233e6){const _0x5038b6=_0xbfa157;let _0x230e36=document['getElementById'](_0x70450d);_0x230e36&&(_0x230e36['style']['display']=_0x5038b6(0x284),this[_0x5038b6(0x170)](_0x539f5c,_0x70450d,_0x1233e6));}['unMountHistoryContent'](){const _0x4f71b5=_0xbfa157;var _0x7b49b6;this['_disposableCollection'][_0x4f71b5(0x271)](),(_0x7b49b6=this[_0x4f71b5(0x1ab)])==null||_0x7b49b6[_0x4f71b5(0x271)](),this['_historyUniver$']['next'](null);let _0x5573ac=document[_0x4f71b5(0x159)](_0x70450d);_0x5573ac&&(_0x5573ac[_0x4f71b5(0x1ea)]['display']=_0x4f71b5(0x13b),this['_internalWebWorker']&&(this[_0x4f71b5(0x248)][_0x4f71b5(0x1c4)](),this['_internalWebWorker']=null));}[_0xbfa157(0x170)](_0xfa637,_0x5db5e1,_0x504e08){const _0x4f7cb2=_0xbfa157;var _0x43735e,_0x32d603,_0x4e7bc4,_0xc8b645;if(this[_0x4f7cb2(0x1ab)])return;let _0x2d4a90=new _0x10bd9c[(_0x4f7cb2(0x283))]({'locales':{[this[_0x4f7cb2(0x276)][_0x4f7cb2(0x143)]()]:this['_localeService'][_0x4f7cb2(0x1e4)]()},'override':[[_0x10bd9c[_0x4f7cb2(0x27e)],{'useClass':_0x107d38[_0x4f7cb2(0x1cf)]}]]}),_0x57e7b3=_0x2d4a90[_0x4f7cb2(0x200)]();this[_0x4f7cb2(0x1ba)](this[_0x4f7cb2(0x288)][_0x4f7cb2(0x260)][_0x4f7cb2(0x270)](_0x577945=>{const _0x36a59b=_0x4f7cb2;_0x57e7b3[_0x36a59b(0x26d)](_0x10bd9c['ThemeService'])[_0x36a59b(0x23e)](_0x577945);})),this[_0x4f7cb2(0x1ba)](this['_themeService'][_0x4f7cb2(0x1cb)][_0x4f7cb2(0x270)](_0x4407d6=>{const _0x22d832=_0x4f7cb2;_0x57e7b3[_0x22d832(0x26d)](_0x10bd9c['ThemeService'])[_0x22d832(0x1c6)](_0x4407d6);})),_0x57e7b3[_0x4f7cb2(0x26d)](_0x10bd9c[_0x4f7cb2(0x239)])[_0x4f7cb2(0x2a4)](this[_0x4f7cb2(0x276)][_0x4f7cb2(0x143)]()),_0x57e7b3['get'](_0x10bd9c[_0x4f7cb2(0x237)])[_0x4f7cb2(0x28f)](_0x107d38[_0x4f7cb2(0x22e)],this['_configService'][_0x4f7cb2(0x23b)](_0x107d38[_0x4f7cb2(0x22e)]));let _0x31192e=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)](_0x5b7516[_0x4f7cb2(0x1ef)]);_0x31192e&&_0x2d4a90[_0x4f7cb2(0x29d)](_0x5b7516[_0x4f7cb2(0x173)],{'license':_0x31192e['ls']});let _0x2d76d2=(_0x43735e=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)](_0x4f7cb2(0x28a)))==null?void 0x0:_0x43735e[_0x4f7cb2(0x14a)],_0x3408db=!!_0x2d76d2;_0x3408db&&(this[_0x4f7cb2(0x248)]=_0x2d76d2 instanceof Worker?_0x2d76d2:null,_0x2d4a90[_0x4f7cb2(0x29d)](_0x6424bb[_0x4f7cb2(0x19b)],{'workerURL':_0x2d76d2})),this[_0x4f7cb2(0x17e)][_0x4f7cb2(0x18c)](([_0x5ad0ff,_0xea327d])=>{const _0x523bc4=_0x4f7cb2;_0x2d4a90[_0x523bc4(0x29d)](_0x5ad0ff,_0xea327d);}),_0x2d4a90['registerPlugin'](_0x4cbac3['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x32d603=this[_0x4f7cb2(0x1d0)]['getConfig'](_0x4f7cb2(0x28a)))==null?void 0x0:_0x32d603[_0x4f7cb2(0x1c2)],'historyPanelComponentKey':(_0x4e7bc4=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)]('edit-history-loader.config'))==null?void 0x0:_0x4e7bc4[_0x4f7cb2(0x172)],'historyPanelHidden':(_0xc8b645=this[_0x4f7cb2(0x1d0)][_0x4f7cb2(0x23b)]('edit-history-loader.config'))==null?void 0x0:_0xc8b645['historyPanelHidden']}),_0x57e7b3[_0x4f7cb2(0x2a1)](_0x4f7394=>{const _0x298f66=_0x4f7cb2;this[_0x298f66(0x292)](_0x4f7394,_0xfa637);}),this[_0x4f7cb2(0x262)][_0x4f7cb2(0x1cc)](_0x2d4a90);let _0x32a6e7=_0x57e7b3['get'](_0x4cbac3['HistoryManagerService']),_0x3e53c4=this['_checkCanRevert'](_0xfa637),_0x1d8620=()=>{const _0xa1e8d5=_0x4f7cb2;_0x504e08?_0x32a6e7[_0xa1e8d5(0x189)](_0xfa637,_0x5db5e1,_0x3e53c4,_0x504e08):_0x32a6e7[_0xa1e8d5(0x26e)](_0xfa637,_0x5db5e1,_0x3e53c4);};if(this[_0x4f7cb2(0x228)]['show']({'content':this[_0x4f7cb2(0x276)]['t'](_0x4f7cb2(0x155)),'type':_0x524356['MessageType']['Loading']}),_0x3408db)try{_0x57e7b3['get'](_0x6424bb[_0x4f7cb2(0x261)])[_0x4f7cb2(0x18d)]()[_0x4f7cb2(0x23a)](()=>{_0x1d8620();});}catch{_0x1d8620();}else _0x1d8620();}[_0xbfa157(0x292)](_0x134bfd,_0x3382ce){const _0x3981b8=_0xbfa157;let _0x465a9c=_0x134bfd['get'](_0x4cbac3[_0x3981b8(0x259)]);this[_0x3981b8(0x2a8)][_0x3981b8(0x21c)](_0x465a9c['status$']['subscribe'](_0xa751b3=>{const _0xd8d381=_0x3981b8;switch(_0xa751b3){case _0x4cbac3[_0xd8d381(0x278)][_0xd8d381(0x25a)]:this[_0xd8d381(0x13d)][_0xd8d381(0x1c8)](),this[_0xd8d381(0x163)][_0xd8d381(0x196)]();break;case _0x4cbac3[_0xd8d381(0x278)][_0xd8d381(0x25b)]:this['_commandService'][_0xd8d381(0x296)](_0x1861d6['id']),this[_0xd8d381(0x1fa)]();break;case _0x4cbac3[_0xd8d381(0x278)][_0xd8d381(0x1da)]:this[_0xd8d381(0x1fa)](),this[_0xd8d381(0x228)][_0xd8d381(0x205)]({'content':this[_0xd8d381(0x276)]['t']('editHistory.panel.listFetchError'),'type':_0x524356['MessageType'][_0xd8d381(0x1da)],'duration':0xbb8});break;default:break;}})),this[_0x3981b8(0x2a8)][_0x3981b8(0x21c)](_0x465a9c['revertRevision$'][_0x3981b8(0x270)](async _0x53063e=>{const _0x201b89=_0x3981b8;_0x53063e&&this[_0x201b89(0x251)][_0x201b89(0x296)](_0x4e16b4['RevertRevisionMutation']['id'],{'unitId':_0x3382ce,'revision':_0x53063e});}));}[_0xbfa157(0x1a3)](_0x4c308d){const _0x10a2dd=_0xbfa157;let _0x4ab6f9=this[_0x10a2dd(0x29c)]['getUnit'](_0x4c308d)[_0x10a2dd(0x20e)]()['map'](_0x3bfbea=>_0x3bfbea[_0x10a2dd(0x17b)]()),_0x40125b=new _0x5edcb9[(_0x10a2dd(0x1f5))](_0x4c308d)['id'],_0xccb39c=_0x4ab6f9[_0x10a2dd(0x1b4)](_0x356943=>new _0x5edcb9['WorksheetEditPermission'](_0x4c308d,_0x356943)['id']),_0x270053=_0x4ab6f9[_0x10a2dd(0x1b4)](_0x37c9a8=>this[_0x10a2dd(0x218)][_0x10a2dd(0x1d7)](_0x4c308d,_0x37c9a8)['map'](_0x599edb=>new _0x5edcb9[(_0x10a2dd(0x1b0))](_0x4c308d,_0x37c9a8,_0x599edb[_0x10a2dd(0x195)])['id']))[_0x10a2dd(0x207)](),_0x4a2e3f=new _0x5edcb9[(_0x10a2dd(0x1b2))](_0x4c308d)['id'];return this[_0x10a2dd(0x27c)][_0x10a2dd(0x285)]([_0x40125b,..._0xccb39c,..._0x270053,_0x4a2e3f])[_0x10a2dd(0x193)](_0xb4acf3=>!!_0xb4acf3['value']);}};_0x8ac307=_0x568afd([_0xff1d8d(0x0,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x239)])),_0xff1d8d(0x1,_0x10bd9c[_0xbfa157(0x1e0)]),_0xff1d8d(0x2,_0x10bd9c[_0xbfa157(0x237)]),_0xff1d8d(0x3,_0x10bd9c[_0xbfa157(0x26c)]),_0xff1d8d(0x4,_0x381e63[_0xbfa157(0x185)]),_0xff1d8d(0x5,_0x10bd9c['IPermissionService']),_0xff1d8d(0x6,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x5edcb9[_0xbfa157(0x1b5)])),_0xff1d8d(0x7,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63[_0xbfa157(0x1fe)])),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63[_0xbfa157(0x235)])),_0xff1d8d(0x9,(0x0,_0x10bd9c['Inject'])(_0x10bd9c[_0xbfa157(0x280)]))],_0x8ac307);let _0x5d5150=class extends _0x10bd9c[_0xbfa157(0x158)]{constructor(_0x2e73c6=_0x3d8eee,_0x4b9db3,_0x50d960){const _0x2f828c=_0xbfa157;super(),this[_0x2f828c(0x201)]=_0x2e73c6,this[_0x2f828c(0x1d6)]=_0x4b9db3,this[_0x2f828c(0x1d0)]=_0x50d960;let {menu:_0x1857d4,..._0x450bf8}=(0x0,_0x10bd9c[_0x2f828c(0x20a)])({},_0x3d8eee,this['_config']);_0x1857d4&&this[_0x2f828c(0x1d0)][_0x2f828c(0x28f)](_0x2f828c(0x2ab),_0x1857d4,{'merge':!0x0}),this[_0x2f828c(0x1d0)]['setConfig'](_0x4a552f,_0x450bf8),this[_0x2f828c(0x201)][_0x2f828c(0x1d3)]&&this['_configService']['setConfig'](_0x2f828c(0x1e3),this[_0x2f828c(0x201)]['univerContainerId']);}[_0xbfa157(0x1ad)](){const _0x5e0a3f=_0xbfa157;[[_0x399c22,{'useClass':_0x8ac307}],[_0x58c08d]]['forEach'](_0x4a261e=>this[_0x5e0a3f(0x1d6)][_0x5e0a3f(0x21c)](_0x4a261e));}[_0xbfa157(0x1eb)](){const _0x470187=_0xbfa157;this[_0x470187(0x1d6)][_0x470187(0x26d)](_0x58c08d);}};_0x465da1(_0x5d5150,'type',_0x10bd9c['UniverInstanceType'][_0xbfa157(0x15b)]),_0x465da1(_0x5d5150,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_0x465da1(_0x5d5150,'packageName',_0x182131),_0x465da1(_0x5d5150,_0xbfa157(0x24e),_0x506492),_0x5d5150=_0x568afd([(0x0,_0x10bd9c[_0xbfa157(0x150)])(_0x5b7516[_0xbfa157(0x173)]),_0xff1d8d(0x1,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x268)])),_0xff1d8d(0x2,_0x10bd9c[_0xbfa157(0x237)])],_0x5d5150);let _0x28473a=class extends _0x10bd9c[_0xbfa157(0x210)]{constructor(_0x7725e6,_0x18f8e2,_0x20de22,_0x5d1d79,_0x25c2da,_0x22f8ef,_0x8fb7ce,_0xd360f0,_0x250bd9,_0x93e005,_0x7f9429){const _0x4afd8c=_0xbfa157;super(),this['_commandService']=_0x7725e6,this[_0x4afd8c(0x199)]=_0x18f8e2,this[_0x4afd8c(0x20c)]=_0x20de22,this['_historyManagerService']=_0x5d1d79,this[_0x4afd8c(0x276)]=_0x25c2da,this[_0x4afd8c(0x228)]=_0x22f8ef,this[_0x4afd8c(0x169)]=_0x8fb7ce,this[_0x4afd8c(0x297)]=_0xd360f0,this[_0x4afd8c(0x269)]=_0x250bd9,this[_0x4afd8c(0x29c)]=_0x93e005,this[_0x4afd8c(0x1bb)]=_0x7f9429,_0x465da1(this,_0x4afd8c(0x1e7),null),this[_0x4afd8c(0x1dc)]();}[_0xbfa157(0x1dc)](){const _0x50e27e=_0xbfa157;[_0x4e6806,_0x1861d6][_0x50e27e(0x18c)](_0x531dba=>this[_0x50e27e(0x1ba)]((0x0,_0x10bd9c[_0x50e27e(0x19f)])(this[_0x50e27e(0x251)][_0x50e27e(0x243)](_0x531dba)))),this[_0x50e27e(0x1ba)](this[_0x50e27e(0x20c)][_0x50e27e(0x282)]('HistoryIcon',_0x1166e4)),this[_0x50e27e(0x199)][_0x50e27e(0x2a3)](_0x5e3708),this['disposeWithMe'](this[_0x50e27e(0x251)]['onCommandExecuted'](async(_0x3104db,_0x30b067)=>{const _0x2118a8=_0x50e27e;if(_0x3104db['id']===_0x4e16b4[_0x2118a8(0x152)]['id']){let {unitId:_0x4937e8}=_0x3104db[_0x2118a8(0x222)];this['_messageService'][_0x2118a8(0x205)]({'content':this[_0x2118a8(0x276)]['t'](_0x2118a8(0x274)),'type':_0x524356['MessageType'][_0x2118a8(0x22c)],'duration':0x1388});let _0xc3fe64=this[_0x2118a8(0x169)][_0x2118a8(0x1b1)](_0x4937e8);_0x30b067!=null&&_0x30b067[_0x2118a8(0x140)]?this[_0x2118a8(0x2a7)](_0xc3fe64,async()=>(setTimeout(()=>window[_0x2118a8(0x28b)][_0x2118a8(0x13a)]()),!0x0),!0x0):this[_0x2118a8(0x2a7)](_0xc3fe64,async()=>{const _0x4aac91=_0x2118a8;let _0x16f7b3=this[_0x4aac91(0x29c)][_0x4aac91(0x26b)](_0x1bf926[_0x4aac91(0x191)]),_0x1aa3c1=_0x16f7b3==null?void 0x0:_0x16f7b3[_0x4aac91(0x206)]();if(!_0x1aa3c1)return!0x1;this[_0x4aac91(0x29c)][_0x4aac91(0x1ae)](_0x4937e8);let _0x1c2bac=await this[_0x4aac91(0x269)][_0x4aac91(0x281)](_0x4937e8,_0x1bf926[_0x4aac91(0x191)]);return _0x1c2bac&&_0x1c2bac instanceof _0x10bd9c[_0x4aac91(0x194)]?(await this['_setupSubUnitSync'](_0x1c2bac,_0x1aa3c1[_0x4aac91(0x17b)]()),!0x0):!0x1;});}}));}[_0xbfa157(0x2a7)](_0x4ea574,_0x5d1795,_0x170894=!0x1){const _0x219e34=_0xbfa157;let _0xfca46c=(0x0,_0xc85947[_0x219e34(0x171)])([_0x4ea574[_0x219e34(0x151)][_0x219e34(0x27d)],_0x4ea574[_0x219e34(0x244)]])[_0x219e34(0x270)](async([_0x5c9ab0,_0x4c5100])=>{const _0x9639c9=_0x219e34;if(_0x5c9ab0[_0x9639c9(0x224)]===_0x4e16b4['CollaborationEvent'][_0x9639c9(0x275)]&&(_0x4c5100==null?void 0x0:_0x4c5100[_0x9639c9(0x1f8)])===_0x107d38[_0x9639c9(0x28e)]['SYNCED']&&_0x5c9ab0[_0x9639c9(0x180)][_0x9639c9(0x24a)][_0x9639c9(0x219)](_0x358f0e=>_0x358f0e['id']===_0x4e16b4[_0x9639c9(0x152)]['id'])&&await _0x5d1795()){var _0x4bfef0;this[_0x9639c9(0x18b)][_0x9639c9(0x1fa)](),_0xfca46c[_0x9639c9(0x1c0)](),this[_0x9639c9(0x1e7)]&&clearTimeout(this[_0x9639c9(0x1e7)]),await((_0x4bfef0=this['_localCacheService'])==null?void 0x0:_0x4bfef0['exhaustSavingTask']());}});_0x170894&&(this[_0x219e34(0x1e7)]=setTimeout(()=>{const _0x2c07b3=_0x219e34;_0xfca46c[_0x2c07b3(0x1c0)](),this[_0x2c07b3(0x228)][_0x2c07b3(0x205)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x524356[_0x2c07b3(0x233)][_0x2c07b3(0x1da)],'duration':0xbb8});},0x1388));}async[_0xbfa157(0x253)](_0x22271a,_0x467e3f){const _0xa9b6a7=_0xbfa157;await this[_0xa9b6a7(0x21b)](_0x22271a,_0x467e3f),_0x22271a[_0xa9b6a7(0x19a)][_0xa9b6a7(0x28d)]((0x0,_0xc85947[_0xa9b6a7(0x1b9)])(this['dispose$']))[_0xa9b6a7(0x270)](_0x2ca611=>{const _0x862b18=_0xa9b6a7;_0x2ca611&&this[_0x862b18(0x236)](_0x2ca611);}),this[_0xa9b6a7(0x1bb)][_0xa9b6a7(0x24d)][_0xa9b6a7(0x28d)]((0x0,_0xc85947['takeUntil'])(this['dispose$']))[_0xa9b6a7(0x270)](()=>this['_updateSubUnitFromURLParams'](_0x22271a,_0x467e3f));}[_0xbfa157(0x236)](_0x38ef0d,_0x575aa9=!0x1){const _0x31f69f=_0xbfa157;let _0x487df0=this[_0x31f69f(0x1bb)]['getParam'](_0x31f69f(0x179));_0x38ef0d[_0x31f69f(0x17b)]()!==_0x487df0&&this[_0x31f69f(0x1bb)][_0x31f69f(0x13f)](_0x31f69f(0x179),_0x38ef0d[_0x31f69f(0x17b)](),_0x575aa9);}async['_updateSubUnitFromURLParams'](_0x40c6dc,_0x1e6eb4){const _0x2fdd38=_0xbfa157;var _0x33d596;if(!_0x1e6eb4||!_0x40c6dc[_0x2fdd38(0x2aa)](_0x1e6eb4)){let _0x5748dd=_0x40c6dc[_0x2fdd38(0x15c)]()[0x0],_0x418901=_0x40c6dc[_0x2fdd38(0x2aa)](_0x5748dd);if(!_0x418901)return;this[_0x2fdd38(0x236)](_0x418901,!0x0),await this[_0x2fdd38(0x251)]['executeCommand'](_0x5edcb9[_0x2fdd38(0x234)]['id'],{'unitId':_0x40c6dc[_0x2fdd38(0x1d4)](),'subUnitId':_0x5748dd});return;}((_0x33d596=_0x40c6dc[_0x2fdd38(0x206)]())==null?void 0x0:_0x33d596[_0x2fdd38(0x17b)]())!==_0x1e6eb4&&await this[_0x2fdd38(0x251)]['executeCommand'](_0x5edcb9[_0x2fdd38(0x234)]['id'],{'unitId':_0x40c6dc[_0x2fdd38(0x1d4)](),'subUnitId':_0x1e6eb4});}};_0x28473a=_0x568afd([_0xff1d8d(0x0,_0x10bd9c['ICommandService']),_0xff1d8d(0x1,_0x381e63[_0xbfa157(0x1a6)]),_0xff1d8d(0x2,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x381e63['ComponentManager'])),_0xff1d8d(0x3,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x399c22)),_0xff1d8d(0x4,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c['LocaleService'])),_0xff1d8d(0x5,_0x381e63['IMessageService']),_0xff1d8d(0x6,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38['CollaborationController'])),_0xff1d8d(0x7,_0x107d38[_0xbfa157(0x1a0)]),_0xff1d8d(0x8,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x107d38[_0xbfa157(0x29f)])),_0xff1d8d(0x9,_0x10bd9c[_0xbfa157(0x1e0)]),_0xff1d8d(0xa,_0x53e49e[_0xbfa157(0x181)])],_0x28473a);let _0x2f5033=class extends _0x10bd9c[_0xbfa157(0x158)]{constructor(_0x5710ec=_0x3d8eee,_0x61186d,_0x58a81b){const _0x67f966=_0xbfa157;super(),this[_0x67f966(0x201)]=_0x5710ec,this[_0x67f966(0x1d6)]=_0x61186d,this[_0x67f966(0x1d0)]=_0x58a81b;let {menu:_0x82bb1b,..._0x352e77}=(0x0,_0x10bd9c[_0x67f966(0x20a)])({},_0x3d8eee,this['_config']);_0x82bb1b&&this[_0x67f966(0x1d0)][_0x67f966(0x28f)]('menu',_0x82bb1b,{'merge':!0x0}),this[_0x67f966(0x1d0)][_0x67f966(0x28f)](_0x4a552f,_0x352e77),this[_0x67f966(0x201)]['univerContainerId']&&this[_0x67f966(0x1d0)]['setConfig'](_0x4b3040,this[_0x67f966(0x201)][_0x67f966(0x1d3)]);}[_0xbfa157(0x1ad)](){const _0xda98c7=_0xbfa157;[[_0x399c22],[_0x28473a]]['forEach'](_0x43510d=>this[_0xda98c7(0x1d6)][_0xda98c7(0x21c)](_0x43510d));}[_0xbfa157(0x1eb)](){const _0x135c88=_0xbfa157;this[_0x135c88(0x1d6)][_0x135c88(0x26d)](_0x28473a);}};_0x465da1(_0x2f5033,'type',_0x10bd9c[_0xbfa157(0x1f7)][_0xbfa157(0x15b)]),_0x465da1(_0x2f5033,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x465da1(_0x2f5033,_0xbfa157(0x294),_0x182131),_0x465da1(_0x2f5033,_0xbfa157(0x24e),_0x506492),_0x2f5033=_0x568afd([(0x0,_0x10bd9c[_0xbfa157(0x150)])(_0x5b7516['UniverLicensePlugin']),_0xff1d8d(0x1,(0x0,_0x10bd9c[_0xbfa157(0x247)])(_0x10bd9c[_0xbfa157(0x268)])),_0xff1d8d(0x2,_0x10bd9c[_0xbfa157(0x237)])],_0x2f5033),_0x102004[_0xbfa157(0x225)]=_0x4a552f,Object[_0xbfa157(0x252)](_0x102004,_0xbfa157(0x204),{'enumerable':!0x0,'get':function(){return _0x399c22;}}),Object[_0xbfa157(0x252)](_0x102004,_0xbfa157(0x264),{'enumerable':!0x0,'get':function(){return _0x8ac307;}}),_0x102004[_0xbfa157(0x22f)]=_0x4e6806,_0x102004[_0xbfa157(0x272)]=_0x4b3040,_0x102004[_0xbfa157(0x1ac)]=_0x1162fa,Object['defineProperty'](_0x102004,_0xbfa157(0x27b),{'enumerable':!0x0,'get':function(){return _0x5d5150;}}),Object[_0xbfa157(0x252)](_0x102004,_0xbfa157(0x249),{'enumerable':!0x0,'get':function(){return _0x2f5033;}});}));function _0x9bd8(_0x28955e,_0x2fafaa){_0x28955e=_0x28955e-0x13a;const _0x268d5f=_0x268d();let _0x9bd856=_0x268d5f[_0x28955e];return _0x9bd856;}function _0x268d(){const _0x15c9cd=['__getInjector','_config','tag','OTHERS','HistoryLoaderService','show','getActiveSheet','flat','UniverProLicense','editHistory.panel.title','merge','UniverSheets','_componentManager','UniverProSheetsSparklineUi','getSheets','substring','RxDisposable','226wsXrzb','WorksheetEditPermission','idSuffix','UniverSheetsHyperLinkPlugin','left','UniverSheetsDrawingPlugin','UniverSheetsDataValidationPlugin','_selectionProtectionRuleModel','some','120072mxjgTY','_updateSubUnitFromURLParams','add','status$','http://www.w3.org/2000/svg','15138340XdDIex','UniverDrawing','0\x200\x2016\x2016','params','UniverSheetsConditionalFormattingUi','eventID','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverEditHistoryViewerPlugin','UniverProSheetsShapeUi','_messageService','getUnit','appendChild','clipPath','Loading','UniverMobileUIPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ToggleEditHistoryOperation','values','UniverSheetsShapeUIPlugin','UNIVER_PROJECT','MessageType','SetWorksheetActivateCommand','ISidebarService','_updateURLWithCurrentState','IConfigService','UniverDrawingUIPlugin','LocaleService','then','getConfig','UniverSheetsDataValidationUi','historyUniver$','setDarkMode','UniverSheetsPivotTablePlugin','getOwnPropertyDescriptor','UniverProSheetsShape','UniverCollaborationPlugin','registerCommand','state$','UniverFormulaEnginePlugin','univer.operation.toggle-edit-history','Inject','_internalWebWorker','UniverEditHistoryLoaderPlugin','mutations','UniverProSheetsPivot','UniverSheetsChartPlugin','urlChange$','version','univer-history-container-mobile','UNRECOGNIZED','_commandService','defineProperty','_setupSubUnitSync','UniverSheetsDataValidationUIPlugin','UniverProEditHistoryViewer','UniverSheetsFormula','current','UniverSheetsDataValidation','HistoryManagerService','Entered','Exited','from','UniverDataValidationPlugin','displayName','UniverSheetsDrawingUi','darkMode$','IRemoteInstanceService','_historyUniver$','UniverRpc','MobileHistoryLoaderService','2386605makOeF','default','UniverSheetsFormulaUIPlugin','Injector','_dataLoaderService','revertRevision$','getCurrentUnitOfType','ICommandService','get','triggerLoadVersions','path','subscribe','dispose','UNIVER_CONTAINER_ID_KEY','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','editHistory.panel.reverting','CHANGESET_ACK','_localeService','length','HistoryModeStatus','UniverSheetsChartUIPlugin','UniverSheetsFormulaPlugin','UniverEditHistoryLoaderMobilePlugin','_permissionService','event$','IAuthzIoService','exhaustSavingTask','ThemeService','loadUnit','register','Univer','block','composePermission','UniverDrawingPlugin','dataset','_themeService','BUTTON','edit-history-loader.config','location','pluginName','pipe','CollaborationStatus','setConfig','UniverDesign','HistoryIcon','_initListener','3929vkiEsU','packageName','symbol','executeCommand','_localCacheService','colorChannel1','zIndex','ComponentManager','dispose$','_univerInstanceService','registerPlugin','_initContainer','DataLoaderService','DisposableCollection','invoke','univer-container','mergeMenu','setLocale','[HistoryLoaderService]:\x20Plugin\x20','historyAIassistantEnabled','_handleRevertAcknowledgement','_disposableCollection','editHistory.panel.listFetchError','getSheetBySheetId','menu','reload','none','width','_dialogService','object','setParam','fromCollab','univer-history-container','clear','getCurrentLocale','UniverDocsUi','univer.operation.exit-edit-history','top','UniverEngineRender','UniverIcon','UniverProCollaborationClientUi','workerURL','IImageIoService','UniverDataValidation','Module','UniverProSheetsChart','UniverProSheetsChartUi','DependentOn','session','RevertRevisionMutation','split','useRef','editHistory.info.initializing','fill','function','Plugin','getElementById','children','UNIVER_UNKNOWN','getUnhiddenWorksheets','div','includes','createElement','UniverSheetsConditionalFormatting','getParam','entries','_sidebarService','getSheetCommandTarget','uComp','UNIVER_SLIDE','IPermissionService','UniverProCollaboration','_collaborationController','UniverSheetsHyperLinkUi','set','white','CommandType','UniverSheetsFilter','toPrimitive','_initUniver','combineLatest','historyPanelComponentKey','UniverLicensePlugin','1em','defs','editHistory.panel.revertFailed','CollaborationController','history-container','subunit','11XKMGfW','getSheetId','history-icon_clip0_907_281','UniverSheetsShapePlugin','_pluginMap','UniverSheetsUi','data','IURLService','exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react','UniverUIPlugin','RibbonStartGroup','IMessageService','onCommandExecuted','toString','UniverRenderEnginePlugin','triggerCustomVersions','UniverProSheetsSparkline','_historyManagerService','forEach','whenReady','asObservable','100%','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_SHEET','url(#$1','every','Workbook','permissionId','close','BehaviorSubject','UniverDocsPlugin','_menuManagerService','activeSheet$','UniverRPCMainThreadPlugin','4004805hszpGR','UniverSheetsTablePlugin','UniverProEditHistoryLoader','toDisposable','ILocalCacheService','UniverSheetsNumfmt','UniverSheetsConditionalFormattingPlugin','_checkCanRevert','UniverSheetsPlugin','use','IMenuManagerService','UniverCore','UniverSheetsDrawingUIPlugin','replace','prototype','historyUniver','UNIVER_HISTORY_CONTAINER_ID','onStarting','disposeUnit','xlink:href','RangeProtectionPermissionEditPoint','getCollabEntity','WorkbookRecoverHistoryPermission','call','map','RangeProtectionRuleModel','UNIVER_DOC','UniverSheetsFilterUIPlugin','getMenuHiddenObservable','takeUntil','disposeWithMe','_urlService','display','amd','_initPlugins','UniverDocsUIPlugin','unsubscribe','value','historyListServerUrl','position','terminate','1343871ARhyzV','setTheme','historyPanelHidden','closeAll','UniverSheetSparklinePlugin','459GcslMQ','currentTheme$','next','M0\x200H16V16H0z','18HyrHls','AuthzIoHttpService','_configService','UniverSheetsHyperLink','UniverSheetsFilterPlugin','univerContainerId','getUnitId','mountHistoryContent','_injector','getSubunitRuleList','UniverProCollaborationClient','string','Error','\x20has\x20been\x20registered.','_init','4254240iYfnjK','Disposable','getAllPlugins','IUniverInstanceService','rxjs','has','UNIVER_CONTAINER_ID','getLocales','height','attrs','_revertErrorTimer','UniverSheetsFilterUi','WorkbookViewHistoryPermission','style','onSteady','decorate','UniverSheetsHyperLinkUIPlugin','UniverSheetsMobileUIPlugin','LS_CONFIG_KEY','UniverSheetsDrawing','trim','absolute','0.20.0','UniverSheetsDataValidationMobileUIPlugin','WorkbookEditablePermission','UniverNetworkPlugin','UniverInstanceType','status','React','unMountHistoryContent','UniverSheetsNumfmtPlugin','UniverDrawingUi','OPERATION','IDialogService','UniverSheetSparklineUIPlugin'];_0x268d=function(){return _0x15c9cd;};return _0x268d();}
|
|
1
|
+
function _0x5534(_0x8ac190,_0x67982){_0x8ac190=_0x8ac190-0x10a;const _0x169d40=_0x169d();let _0x553441=_0x169d40[_0x8ac190];return _0x553441;}(function(_0x452e4f,_0x178410){const _0x4f4565=_0x5534,_0x2e6ee3=_0x452e4f();while(!![]){try{const _0x22ed8a=-parseInt(_0x4f4565(0x17e))/0x1*(-parseInt(_0x4f4565(0x139))/0x2)+-parseInt(_0x4f4565(0x160))/0x3*(parseInt(_0x4f4565(0x156))/0x4)+-parseInt(_0x4f4565(0x1e1))/0x5+parseInt(_0x4f4565(0x16b))/0x6*(parseInt(_0x4f4565(0x1f8))/0x7)+parseInt(_0x4f4565(0x234))/0x8+parseInt(_0x4f4565(0x1bd))/0x9*(parseInt(_0x4f4565(0x1a4))/0xa)+-parseInt(_0x4f4565(0x197))/0xb*(parseInt(_0x4f4565(0x121))/0xc);if(_0x22ed8a===_0x178410)break;else _0x2e6ee3['push'](_0x2e6ee3['shift']());}catch(_0x2a2a69){_0x2e6ee3['push'](_0x2e6ee3['shift']());}}}(_0x169d,0xe3ee3),function(_0x1e0ba5,_0xae46b5){const _0x554514=_0x5534;typeof exports=='object'&&typeof module<'u'?_0xae46b5(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==_0x554514(0x178)&&define[_0x554514(0x1e0)]?define('exports.@univerjs/core.@univerjs/sheets.@univerjs-pro/collaboration.@univerjs-pro/collaboration-client.@univerjs-pro/edit-history-viewer.@univerjs-pro/license.@univerjs-pro/sheets-chart.@univerjs-pro/sheets-chart-ui.@univerjs-pro/sheets-pivot.@univerjs-pro/sheets-shape.@univerjs-pro/sheets-shape-ui.@univerjs-pro/sheets-sparkline.@univerjs-pro/sheets-sparkline-ui.@univerjs/data-validation.@univerjs/design.@univerjs/docs.@univerjs/docs-ui.@univerjs/drawing.@univerjs/drawing-ui.@univerjs/engine-formula.@univerjs/engine-render.@univerjs/network.@univerjs/rpc.@univerjs/sheets-conditional-formatting.@univerjs/sheets-conditional-formatting-ui.@univerjs/sheets-data-validation.@univerjs/sheets-data-validation-ui.@univerjs/sheets-drawing.@univerjs/sheets-drawing-ui.@univerjs/sheets-filter.@univerjs/sheets-filter-ui.@univerjs/sheets-formula.@univerjs/sheets-formula-ui.@univerjs/sheets-hyper-link.@univerjs/sheets-hyper-link-ui.@univerjs/sheets-numfmt.@univerjs/sheets-table.@univerjs/sheets-ui.@univerjs/ui.rxjs.@univerjs-pro/collaboration-client-ui.react'[_0x554514(0x15e)]('.'),_0xae46b5):(_0x1e0ba5=typeof globalThis<'u'?globalThis:_0x1e0ba5||self,_0xae46b5(_0x1e0ba5['UniverProEditHistoryLoader']={},_0x1e0ba5[_0x554514(0x16c)],_0x1e0ba5[_0x554514(0x253)],_0x1e0ba5[_0x554514(0x146)],_0x1e0ba5['UniverProCollaborationClient'],_0x1e0ba5[_0x554514(0x172)],_0x1e0ba5['UniverProLicense'],_0x1e0ba5[_0x554514(0x19c)],_0x1e0ba5[_0x554514(0x1b9)],_0x1e0ba5[_0x554514(0x110)],_0x1e0ba5[_0x554514(0x123)],_0x1e0ba5[_0x554514(0x21d)],_0x1e0ba5[_0x554514(0x233)],_0x1e0ba5['UniverProSheetsSparklineUi'],_0x1e0ba5[_0x554514(0x15b)],_0x1e0ba5['UniverDesign'],_0x1e0ba5[_0x554514(0x276)],_0x1e0ba5['UniverDocsUi'],_0x1e0ba5[_0x554514(0x21b)],_0x1e0ba5[_0x554514(0x186)],_0x1e0ba5[_0x554514(0x1b3)],_0x1e0ba5['UniverEngineRender'],_0x1e0ba5[_0x554514(0x196)],_0x1e0ba5[_0x554514(0x19b)],_0x1e0ba5[_0x554514(0x1d9)],_0x1e0ba5[_0x554514(0x272)],_0x1e0ba5[_0x554514(0x16d)],_0x1e0ba5[_0x554514(0x1e3)],_0x1e0ba5[_0x554514(0x143)],_0x1e0ba5[_0x554514(0x181)],_0x1e0ba5[_0x554514(0x22b)],_0x1e0ba5[_0x554514(0x14d)],_0x1e0ba5['UniverSheetsFormula'],_0x1e0ba5['UniverSheetsFormulaUi'],_0x1e0ba5['UniverSheetsHyperLink'],_0x1e0ba5['UniverSheetsHyperLinkUi'],_0x1e0ba5[_0x554514(0x122)],_0x1e0ba5[_0x554514(0x1d3)],_0x1e0ba5[_0x554514(0x179)],_0x1e0ba5[_0x554514(0x149)],_0x1e0ba5[_0x554514(0x150)],_0x1e0ba5[_0x554514(0x13e)],_0x1e0ba5[_0x554514(0x190)]));}(this,function(_0x20db1e,_0x12090c,_0x4e039e,_0x11130c,_0x5f37e5,_0x59a771,_0x2827be,_0x115e2f,_0x3792f0,_0x2c40b3,_0x3aafca,_0x473700,_0x28b7a8,_0x1d70f4,_0x3401cf,_0x2feaca,_0x2ea4bf,_0x25da9d,_0x5904cb,_0x2eba8a,_0x19085c,_0x43f152,_0x1a4595,_0x5140f3,_0x34d95d,_0x2eefbf,_0x31ce0b,_0x4255aa,_0x264674,_0x40d9f3,_0x2df2bc,_0x4518b8,_0x3ef67c,_0x2bb13c,_0x5042e4,_0xfc5b51,_0x632a83,_0x4fb882,_0x45eeac,_0x28ef43,_0xfca8c,_0x4f45d9,_0x44783d){const _0x15a2d1=_0x5534;Object[_0x15a2d1(0x241)](_0x20db1e,Symbol[_0x15a2d1(0x182)],{'value':'Module'});let _0xbbabb7=_0x15a2d1(0x236);Symbol(_0xbbabb7);let _0x59d7ed={};function _0x5b884f(_0x5b284e){'@babel/helpers - typeof';const _0x17b1cc=_0x15a2d1;return _0x5b884f=typeof Symbol==_0x17b1cc(0x178)&&typeof Symbol[_0x17b1cc(0x26e)]=='symbol'?function(_0x1ca8c8){return typeof _0x1ca8c8;}:function(_0x2ed122){const _0x31c9a9=_0x17b1cc;return _0x2ed122&&typeof Symbol==_0x31c9a9(0x178)&&_0x2ed122[_0x31c9a9(0x167)]===Symbol&&_0x2ed122!==Symbol[_0x31c9a9(0x17d)]?_0x31c9a9(0x23f):typeof _0x2ed122;},_0x5b884f(_0x5b284e);}function _0x396106(_0x150647,_0x73eef6){const _0x3b8fe3=_0x15a2d1;if(_0x5b884f(_0x150647)!=_0x3b8fe3(0x1de)||!_0x150647)return _0x150647;var _0x1dcb9b=_0x150647[Symbol['toPrimitive']];if(_0x1dcb9b!==void 0x0){var _0x44208d=_0x1dcb9b[_0x3b8fe3(0x151)](_0x150647,_0x73eef6||_0x3b8fe3(0x24f));if(_0x5b884f(_0x44208d)!=_0x3b8fe3(0x1de))return _0x44208d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x73eef6===_0x3b8fe3(0x1c7)?String:Number)(_0x150647);}function _0x599f73(_0x447f7e){const _0x25edec=_0x15a2d1;var _0x3f9a0f=_0x396106(_0x447f7e,_0x25edec(0x1c7));return _0x5b884f(_0x3f9a0f)==_0x25edec(0x23f)?_0x3f9a0f:_0x3f9a0f+'';}function _0x47f855(_0x294712,_0x16654e,_0x40c880){return(_0x16654e=_0x599f73(_0x16654e))in _0x294712?Object['defineProperty'](_0x294712,_0x16654e,{'value':_0x40c880,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x294712[_0x16654e]=_0x40c880,_0x294712;}function _0xe0d68f(_0x5b6de0,_0xc6729d){return function(_0x1e1bdc,_0x670906){_0xc6729d(_0x1e1bdc,_0x670906,_0x5b6de0);};}function _0x1b6269(_0x5bb460,_0x1b5994,_0x54af58,_0x31aaec){const _0xeddc6c=_0x15a2d1;var _0x196b62=arguments[_0xeddc6c(0x277)],_0x17aec3=_0x196b62<0x3?_0x1b5994:_0x31aaec===null?_0x31aaec=Object['getOwnPropertyDescriptor'](_0x1b5994,_0x54af58):_0x31aaec,_0xe6af13;if(typeof Reflect==_0xeddc6c(0x1de)&&typeof Reflect['decorate']==_0xeddc6c(0x178))_0x17aec3=Reflect[_0xeddc6c(0x26a)](_0x5bb460,_0x1b5994,_0x54af58,_0x31aaec);else{for(var _0x48c7b5=_0x5bb460[_0xeddc6c(0x277)]-0x1;_0x48c7b5>=0x0;_0x48c7b5--)(_0xe6af13=_0x5bb460[_0x48c7b5])&&(_0x17aec3=(_0x196b62<0x3?_0xe6af13(_0x17aec3):_0x196b62>0x3?_0xe6af13(_0x1b5994,_0x54af58,_0x17aec3):_0xe6af13(_0x1b5994,_0x54af58))||_0x17aec3);}return _0x196b62>0x3&&_0x17aec3&&Object['defineProperty'](_0x1b5994,_0x54af58,_0x17aec3),_0x17aec3;}let _0x4ee5fa='UNIVER_CONTAINER_ID',_0x149c55='univer-history-container',_0x5664ee=class extends _0x12090c['Disposable']{constructor(_0x369246,_0x59e355,_0x5368d9,_0x1375e4,_0x52402a,_0x922519,_0x52b751,_0x1a687f,_0x787c1f,_0x4f816b){const _0x55f66d=_0x15a2d1;super(),this[_0x55f66d(0x22a)]=_0x369246,this[_0x55f66d(0x12a)]=_0x59e355,this[_0x55f66d(0x1e4)]=_0x5368d9,this[_0x55f66d(0x250)]=_0x1375e4,this[_0x55f66d(0x1e8)]=_0x52402a,this[_0x55f66d(0x238)]=_0x922519,this[_0x55f66d(0x1e7)]=_0x52b751,this[_0x55f66d(0x188)]=_0x1a687f,this[_0x55f66d(0x155)]=_0x787c1f,this[_0x55f66d(0x137)]=_0x4f816b,_0x47f855(this,_0x55f66d(0x153),new _0xfca8c[(_0x55f66d(0x1c1))](null)),_0x47f855(this,_0x55f66d(0x117),this[_0x55f66d(0x153)][_0x55f66d(0x1d1)]()),_0x47f855(this,'_disposableCollection',new _0x12090c['DisposableCollection']()),_0x47f855(this,'_pluginMap',new Map()),_0x47f855(this,'_internalWebWorker',null),this['_init']();}get[_0x15a2d1(0x20d)](){const _0x558708=_0x15a2d1;return this[_0x558708(0x153)]['value'];}[_0x15a2d1(0x125)](){const _0x5175fc=_0x15a2d1;this[_0x5175fc(0x128)](),this[_0x5175fc(0x266)]();}[_0x15a2d1(0x128)](){const _0x385722=_0x15a2d1;var _0x3415d9;let _0xc86b75=(_0x3415d9=this[_0x385722(0x1e4)][_0x385722(0x21a)](_0x385722(0x248)))==null?'univer-container':_0x3415d9,_0x42b243=document[_0x385722(0x223)](_0xc86b75);if(!_0x42b243)return;let _0x47d7f2=document[_0x385722(0x1dc)](_0x385722(0x22f));_0x47d7f2['id']=_0x149c55,_0x47d7f2[_0x385722(0x1ce)]['uComp']='history-container',_0x47d7f2['style']['position']=_0x385722(0x251),_0x47d7f2['style'][_0x385722(0x177)]='0',_0x47d7f2[_0x385722(0x1f7)][_0x385722(0x1c6)]='0',_0x47d7f2['style'][_0x385722(0x13f)]=_0x385722(0x1fc),_0x47d7f2[_0x385722(0x1f7)]['height']=_0x385722(0x1fc),_0x47d7f2[_0x385722(0x1f7)][_0x385722(0x195)]='49',_0x47d7f2[_0x385722(0x1f7)]['display']=_0x385722(0x18c),_0x42b243[_0x385722(0x24b)](_0x47d7f2);}['_initPlugins'](){const _0x1d1e46=_0x15a2d1;[[_0x43f152[_0x1d1e46(0x17f)]],[_0x28ef43[_0x1d1e46(0x1ca)],{'container':_0x149c55,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x28ef43[_0x1d1e46(0x1af)],null]]}],[_0x1a4595[_0x1d1e46(0x173)]],[_0x5904cb[_0x1d1e46(0x247)],{'override':[[_0x5904cb[_0x1d1e46(0x152)],null]]}],[_0x2ea4bf['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x25da9d[_0x1d1e46(0x1a5)]],[_0x632a83[_0x1d1e46(0x163)]],[_0x4e039e[_0x1d1e46(0x20c)],{'notExecuteFormula':!0x0}],[_0x45eeac[_0x1d1e46(0x183)]],[_0x3ef67c[_0x1d1e46(0x232)]],[_0x2bb13c[_0x1d1e46(0x237)]],[_0x11130c[_0x1d1e46(0x112)]],[_0x2df2bc[_0x1d1e46(0x1d5)]],[_0x4518b8[_0x1d1e46(0x118)]],[_0x34d95d[_0x1d1e46(0x24c)]],[_0x2eefbf[_0x1d1e46(0x264)]],[_0x5042e4['UniverSheetsHyperLinkPlugin']],[_0xfc5b51[_0x1d1e46(0x1ed)]],[_0x3401cf[_0x1d1e46(0x165)]],[_0x31ce0b['UniverSheetsDataValidationPlugin']],[_0x4255aa[_0x1d1e46(0x275)]],[_0x19085c[_0x1d1e46(0x1eb)],{'notExecuteFormula':!0x0}],[_0x2eba8a[_0x1d1e46(0x15c)]],[_0x264674[_0x1d1e46(0x17a)]],[_0x40d9f3[_0x1d1e46(0x1d4)]],[_0x28b7a8[_0x1d1e46(0x175)]],[_0x1d70f4['UniverSheetSparklineUIPlugin']],[_0x115e2f[_0x1d1e46(0x18d)]],[_0x3792f0[_0x1d1e46(0x258)]],[_0x3aafca['UniverSheetsShapePlugin']],[_0x473700[_0x1d1e46(0x141)]],[_0x2c40b3[_0x1d1e46(0x133)],{'notExecuteFormula':!0x0}],[_0x4fb882[_0x1d1e46(0x1bc)]]][_0x1d1e46(0x1f9)](([_0x1e92ad,_0x3238d0])=>this[_0x1d1e46(0x26d)](_0x1e92ad,_0x3238d0));}[_0x15a2d1(0x1fd)](){const _0xa316a6=_0x15a2d1;super[_0xa316a6(0x1fd)](),this[_0xa316a6(0x134)](),this[_0xa316a6(0x14f)]['clear']();}[_0x15a2d1(0x26d)](_0x253daa,_0x3d57b1,_0x318b84){const _0x1c3cfc=_0x15a2d1;if(this[_0x1c3cfc(0x14f)]['has'](_0x253daa[_0x1c3cfc(0x119)])&&!_0x318b84)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x253daa[_0x1c3cfc(0x119)]+'\x20has\x20been\x20registered.');this[_0x1c3cfc(0x14f)][_0x1c3cfc(0x19f)](_0x253daa[_0x1c3cfc(0x119)],[_0x253daa,_0x3d57b1]);}['getAllPlugins'](){const _0x2fbcb2=_0x15a2d1;return Array['from'](this['_pluginMap'][_0x2fbcb2(0x169)]());}[_0x15a2d1(0x203)](_0x4ef3b2,_0x1ddb58){const _0x4c9b78=_0x15a2d1;let _0x50382e=document['getElementById'](_0x149c55);_0x50382e&&(_0x50382e[_0x4c9b78(0x1f7)]['display']=_0x4c9b78(0x185),this['_initUniver'](_0x4ef3b2,_0x149c55,_0x1ddb58));}[_0x15a2d1(0x134)](){const _0x208a9a=_0x15a2d1;var _0x222dea;this['_disposableCollection'][_0x208a9a(0x1fd)](),(_0x222dea=this[_0x208a9a(0x20d)])==null||_0x222dea[_0x208a9a(0x1fd)](),this[_0x208a9a(0x153)][_0x208a9a(0x25f)](null);let _0x16a8ac=document[_0x208a9a(0x223)](_0x149c55);_0x16a8ac&&(_0x16a8ac[_0x208a9a(0x1f7)][_0x208a9a(0x111)]=_0x208a9a(0x18c),this[_0x208a9a(0x265)]&&(this[_0x208a9a(0x265)][_0x208a9a(0x12f)](),this[_0x208a9a(0x265)]=null));}[_0x15a2d1(0x19d)](_0xd26b09,_0xbafca1,_0xe5721c){const _0x59023b=_0x15a2d1;var _0x410457,_0x42fc37,_0x16cc98,_0x2a6e38,_0x2e318e;if(this[_0x59023b(0x20d)])return;let _0x17e413=new _0x12090c[(_0x59023b(0x219))]({'locales':{[this[_0x59023b(0x22a)][_0x59023b(0x13d)]()]:this[_0x59023b(0x22a)][_0x59023b(0x164)]()},'override':[[_0x12090c['IAuthzIoService'],{'useClass':_0x5f37e5[_0x59023b(0x161)]}]]}),_0x217bf3=_0x17e413[_0x59023b(0x1a7)]();this['disposeWithMe'](this[_0x59023b(0x137)][_0x59023b(0x132)][_0x59023b(0x1a9)](_0x73d3a9=>{const _0x4614a2=_0x59023b;_0x217bf3[_0x4614a2(0x10e)](_0x12090c[_0x4614a2(0x220)])[_0x4614a2(0x1b6)](_0x73d3a9);})),this[_0x59023b(0x18a)](this[_0x59023b(0x137)]['currentTheme$'][_0x59023b(0x1a9)](_0x3f56ca=>{const _0x456907=_0x59023b;_0x217bf3[_0x456907(0x10e)](_0x12090c[_0x456907(0x220)])[_0x456907(0x24e)](_0x3f56ca);})),_0x217bf3[_0x59023b(0x10e)](_0x12090c[_0x59023b(0x255)])[_0x59023b(0x23d)](this[_0x59023b(0x22a)][_0x59023b(0x13d)]()),_0x217bf3[_0x59023b(0x10e)](_0x12090c[_0x59023b(0x14c)])[_0x59023b(0x222)](_0x5f37e5[_0x59023b(0x189)],this['_configService']['getConfig'](_0x5f37e5['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x148f4a=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x2827be[_0x59023b(0x217)]);_0x148f4a&&_0x17e413['registerPlugin'](_0x2827be[_0x59023b(0x229)],{'license':_0x148f4a['ls']});let _0x418fa1=(_0x410457=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x410457['workerURL'],_0x1ec08a=!!_0x418fa1;_0x1ec08a&&(this[_0x59023b(0x265)]=_0x418fa1 instanceof Worker?_0x418fa1:null,_0x17e413['registerPlugin'](_0x5140f3['UniverRPCMainThreadPlugin'],{'workerURL':_0x418fa1})),this['_pluginMap']['forEach'](([_0x45b702,_0x2a6623])=>{const _0x409077=_0x59023b;_0x17e413[_0x409077(0x26d)](_0x45b702,_0x2a6623);}),_0x17e413['registerPlugin'](_0x59a771[_0x59023b(0x120)],{'historyListServerUrl':(_0x42fc37=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x42fc37['historyListServerUrl'],'historyPanelComponentKey':(_0x16cc98=this[_0x59023b(0x1e4)][_0x59023b(0x21a)]('edit-history-loader.config'))==null?void 0x0:_0x16cc98[_0x59023b(0x1a1)],'historyPanelHidden':(_0x2a6e38=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x2a6e38['historyPanelHidden'],'historyAIassistantEnabled':(_0x2e318e=this[_0x59023b(0x1e4)][_0x59023b(0x21a)](_0x59023b(0x236)))==null?void 0x0:_0x2e318e[_0x59023b(0x1bb)]}),_0x217bf3[_0x59023b(0x26b)](_0x21d355=>{this['_initListener'](_0x21d355,_0xd26b09);}),this[_0x59023b(0x153)][_0x59023b(0x25f)](_0x17e413);let _0x4c1033=_0x217bf3[_0x59023b(0x10e)](_0x59a771['HistoryManagerService']),_0x3e4907=this[_0x59023b(0x25d)](_0xd26b09),_0x50dae9=()=>{const _0x58dc89=_0x59023b;_0xe5721c?_0x4c1033['triggerCustomVersions'](_0xd26b09,_0xbafca1,_0x3e4907,_0xe5721c):_0x4c1033[_0x58dc89(0x260)](_0xd26b09,_0xbafca1,_0x3e4907);};if(this['_messageService']['show']({'content':this['_localeService']['t']('editHistory.info.initializing'),'type':_0x2feaca[_0x59023b(0x211)][_0x59023b(0x17b)]}),_0x1ec08a)try{_0x217bf3[_0x59023b(0x10e)](_0x5140f3[_0x59023b(0x1b8)])[_0x59023b(0x1e9)]()[_0x59023b(0x235)](()=>{_0x50dae9();});}catch{_0x50dae9();}else _0x50dae9();}[_0x15a2d1(0x1ac)](_0x3cb3ea,_0x4124e1){const _0x3b3f1f=_0x15a2d1;let _0x1e1b96=_0x3cb3ea['get'](_0x59a771['HistoryManagerService']);this[_0x3b3f1f(0x13b)][_0x3b3f1f(0x218)](_0x1e1b96['status$'][_0x3b3f1f(0x1a9)](_0x36fb7f=>{const _0x5366cb=_0x3b3f1f;switch(_0x36fb7f){case _0x59a771[_0x5366cb(0x1fe)][_0x5366cb(0x249)]:this[_0x5366cb(0x188)][_0x5366cb(0x136)](),this[_0x5366cb(0x155)]['close']();break;case _0x59a771[_0x5366cb(0x1fe)]['Exited']:this[_0x5366cb(0x250)][_0x5366cb(0x145)](_0x14d3b7['id']),this[_0x5366cb(0x134)]();break;case _0x59a771[_0x5366cb(0x1fe)][_0x5366cb(0x269)]:this[_0x5366cb(0x134)](),this['_messageService'][_0x5366cb(0x226)]({'content':this[_0x5366cb(0x22a)]['t'](_0x5366cb(0x18f)),'type':_0x2feaca[_0x5366cb(0x211)][_0x5366cb(0x269)],'duration':0xbb8});break;default:break;}})),this[_0x3b3f1f(0x13b)][_0x3b3f1f(0x218)](_0x1e1b96[_0x3b3f1f(0x1c0)][_0x3b3f1f(0x1a9)](async _0x4c5fc6=>{const _0x2a3e21=_0x3b3f1f;_0x4c5fc6&&this[_0x2a3e21(0x250)][_0x2a3e21(0x145)](_0x11130c[_0x2a3e21(0x114)]['id'],{'unitId':_0x4124e1,'revision':_0x4c5fc6});}));}[_0x15a2d1(0x25d)](_0x297a76){const _0x2091d4=_0x15a2d1;let _0x3ced6e=this[_0x2091d4(0x12a)]['getUnit'](_0x297a76)[_0x2091d4(0x1c5)]()['map'](_0x44e299=>_0x44e299['getSheetId']()),_0x366534=new _0x4e039e[(_0x2091d4(0x1a2))](_0x297a76)['id'],_0x455873=_0x3ced6e['map'](_0x25b7c3=>new _0x4e039e[(_0x2091d4(0x21e))](_0x297a76,_0x25b7c3)['id']),_0x1d09e=_0x3ced6e[_0x2091d4(0x1fa)](_0x4a8e2b=>this[_0x2091d4(0x1e7)][_0x2091d4(0x1c4)](_0x297a76,_0x4a8e2b)['map'](_0x18db3e=>new _0x4e039e['RangeProtectionPermissionEditPoint'](_0x297a76,_0x4a8e2b,_0x18db3e[_0x2091d4(0x204)])['id']))[_0x2091d4(0x1a6)](),_0x1f2119=new _0x4e039e[(_0x2091d4(0x1cc))](_0x297a76)['id'];return this[_0x2091d4(0x238)][_0x2091d4(0x14b)]([_0x366534,..._0x455873,..._0x1d09e,_0x1f2119])[_0x2091d4(0x12c)](_0x1dd965=>!!_0x1dd965[_0x2091d4(0x25b)]);}};_0x5664ee=_0x1b6269([_0xe0d68f(0x0,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c['LocaleService'])),_0xe0d68f(0x1,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)]),_0xe0d68f(0x3,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x4,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x5,_0x12090c[_0x15a2d1(0x215)]),_0xe0d68f(0x6,(0x0,_0x12090c['Inject'])(_0x4e039e[_0x15a2d1(0x159)])),_0xe0d68f(0x7,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43[_0x15a2d1(0x1af)])),_0xe0d68f(0x8,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43[_0x15a2d1(0x1da)])),_0xe0d68f(0x9,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x220)]))],_0x5664ee);let _0x32513a={'id':'univer.operation.toggle-edit-history','type':_0x12090c['CommandType'][_0x15a2d1(0x1ea)],'handler':_0x7994d1=>{const _0xcfa4e8=_0x15a2d1;let _0x22e94b=_0x7994d1['get'](_0x5664ee),{unitId:_0x282271}=(0x0,_0x4e039e[_0xcfa4e8(0x243)])(_0x7994d1['get'](_0x12090c[_0xcfa4e8(0x170)]))||{};return _0x282271?(_0x22e94b[_0xcfa4e8(0x203)](_0x282271),!0x0):!0x1;}},_0x14d3b7={'id':_0x15a2d1(0x140),'type':_0x12090c[_0x15a2d1(0x154)]['OPERATION'],'handler':()=>!0x0};var _0x41aedd=_0x15a2d1(0x1d2),_0x2dc78c=_0x15a2d1(0x25a);function _0x59446f({ref:_0x33edc9,..._0x4e212c}){const _0x2857bb=_0x15a2d1;let {icon:_0x3e7956,id:_0x20dc35,className:_0x34e748,extend:_0x3313c0,..._0x46c599}=_0x4e212c,_0x57041c=(_0x2857bb(0x1b4)+_0x20dc35+'\x20'+(_0x34e748||''))[_0x2857bb(0x228)](),_0x23264d=(0x0,_0x44783d['useRef'])('_'+_0x2f7601());return _0x80080c(_0x3e7956,''+_0x20dc35,{'defIds':_0x3e7956[_0x2857bb(0x1d6)],'idSuffix':_0x23264d[_0x2857bb(0x148)]},{'ref':_0x33edc9,'className':_0x57041c,..._0x46c599},_0x3313c0);}function _0x80080c(_0x1e0fc4,_0x2210fc,_0x5bcca5,_0x1fdbd1,_0x52cc71){const _0x899596=_0x15a2d1;return(0x0,_0x44783d[_0x899596(0x1dc)])(_0x1e0fc4[_0x899596(0x1e6)],{'key':_0x2210fc,..._0x427aa5(_0x1e0fc4,_0x5bcca5,_0x52cc71),..._0x1fdbd1},(_0x1579b7(_0x1e0fc4,_0x5bcca5)['children']||[])[_0x899596(0x1fa)]((_0x4f2187,_0x5a00ed)=>_0x80080c(_0x4f2187,_0x2210fc+'-'+_0x1e0fc4['tag']+'-'+_0x5a00ed,_0x5bcca5,void 0x0,_0x52cc71)));}function _0x427aa5(_0x403699,_0x1eec8c,_0x36ae0f){const _0x1beb63=_0x15a2d1;let _0x52ba34={..._0x403699[_0x1beb63(0x225)]};_0x36ae0f!=null&&_0x36ae0f[_0x1beb63(0x191)]&&_0x52ba34[_0x1beb63(0x263)]===_0x1beb63(0x191)&&(_0x52ba34[_0x1beb63(0x263)]=_0x36ae0f[_0x1beb63(0x191)]),_0x403699[_0x1beb63(0x1e6)]===_0x1beb63(0x1c8)&&_0x52ba34['id']&&(_0x52ba34['id']+=_0x1eec8c['idSuffix']),Object[_0x1beb63(0x270)](_0x52ba34)['forEach'](([_0x5ad5a8,_0x507d70])=>{const _0x811f71=_0x1beb63;_0x5ad5a8===_0x811f71(0x1c8)&&typeof _0x507d70=='string'&&(_0x52ba34[_0x5ad5a8]=_0x507d70[_0x811f71(0x256)](/url\(#(.*)\)/,_0x811f71(0x1e2)+_0x1eec8c[_0x811f71(0x25c)]+')'));});let {defIds:_0x407e39}=_0x1eec8c;return!_0x407e39||_0x407e39[_0x1beb63(0x277)]===0x0?_0x52ba34:(_0x403699['tag']==='use'&&_0x52ba34['xlink:href']&&(_0x52ba34[_0x1beb63(0x209)]+=_0x1eec8c[_0x1beb63(0x25c)]),Object[_0x1beb63(0x270)](_0x52ba34)[_0x1beb63(0x1f9)](([_0x326547,_0x318bc0])=>{const _0xe5faae=_0x1beb63;typeof _0x318bc0==_0xe5faae(0x1c7)&&(_0x52ba34[_0x326547]=_0x318bc0[_0xe5faae(0x256)](/url\(#(.*)\)/,'url(#$1'+_0x1eec8c[_0xe5faae(0x25c)]+')'));}),_0x52ba34);}function _0x1579b7(_0x1c48b2,_0x24bdeb){const _0x2a145a=_0x15a2d1;var _0x5f1869;let {defIds:_0x3cf1c1}=_0x24bdeb;return!_0x3cf1c1||_0x3cf1c1[_0x2a145a(0x277)]===0x0?_0x1c48b2:_0x1c48b2[_0x2a145a(0x1e6)]==='defs'&&(_0x5f1869=_0x1c48b2['children'])!=null&&_0x5f1869[_0x2a145a(0x277)]?{..._0x1c48b2,'children':_0x1c48b2[_0x2a145a(0x193)][_0x2a145a(0x1fa)](_0x324b5e=>typeof _0x324b5e['attrs']['id']==_0x2a145a(0x1c7)&&_0x3cf1c1&&_0x3cf1c1[_0x2a145a(0x254)](_0x324b5e['attrs']['id'])?{..._0x324b5e,'attrs':{..._0x324b5e[_0x2a145a(0x225)],'id':_0x324b5e[_0x2a145a(0x225)]['id']+_0x24bdeb[_0x2a145a(0x25c)]}}:_0x324b5e)}:_0x1c48b2;}function _0x2f7601(){const _0x6fd8bf=_0x15a2d1;return Math[_0x6fd8bf(0x240)]()[_0x6fd8bf(0x261)](0x24)[_0x6fd8bf(0x10d)](0x2,0x8);}_0x59446f[_0x15a2d1(0x271)]=_0x15a2d1(0x11c);let _0x486d1b={'tag':_0x15a2d1(0x24d),'attrs':{'xmlns':_0x15a2d1(0x252),'fill':_0x15a2d1(0x18c),'viewBox':_0x15a2d1(0x23a),'width':_0x15a2d1(0x1f2),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x15a2d1(0x1df)},'children':[{'tag':_0x15a2d1(0x147),'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':_0x15a2d1(0x147),'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':_0x15a2d1(0x200),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x15a2d1(0x1db)},'children':[{'tag':_0x15a2d1(0x147),'attrs':{'fill':_0x15a2d1(0x187),'d':_0x15a2d1(0x245)}}]}]}],'defIds':[_0x15a2d1(0x1db)]},_0x11966c=(0x0,_0x44783d['forwardRef'])(function(_0x33d0a2,_0xf16eb5){const _0x5849c7=_0x15a2d1;return(0x0,_0x44783d[_0x5849c7(0x1dc)])(_0x59446f,Object[_0x5849c7(0x1cd)]({},_0x33d0a2,{'id':_0x5849c7(0x15d),'ref':_0xf16eb5,'icon':_0x486d1b}));});_0x11966c['displayName']=_0x15a2d1(0x26c);let _0xc44c27=function(_0x4ba033){const _0x5d8831=_0x15a2d1;return _0x4ba033[_0x4ba033['UNIVER_UNKNOWN']=0x0]=_0x5d8831(0x22c),_0x4ba033[_0x4ba033[_0x5d8831(0x168)]=0x1]='UNIVER_DOC',_0x4ba033[_0x4ba033['UNIVER_SHEET']=0x2]=_0x5d8831(0x201),_0x4ba033[_0x4ba033[_0x5d8831(0x157)]=0x3]='UNIVER_SLIDE',_0x4ba033[_0x4ba033[_0x5d8831(0x246)]=0x4]='UNIVER_PROJECT',_0x4ba033[_0x4ba033[_0x5d8831(0x184)]=-0x1]='UNRECOGNIZED',_0x4ba033;}({});function _0x29682f(_0x145d6a){const _0xe3b017=_0x15a2d1;return{'id':_0x32513a['id'],'type':_0x28ef43[_0xe3b017(0x130)][_0xe3b017(0x20f)],'icon':_0xe3b017(0x26c),'tooltip':_0xe3b017(0x24a),'hidden$':(0x0,_0x28ef43['getMenuHiddenObservable'])(_0x145d6a,_0x12090c[_0xe3b017(0x230)]['UNIVER_SHEET']),'disabled$':(0x0,_0x45eeac['getCurrentRangeDisable$'])(_0x145d6a,{'workbookTypes':[_0x4e039e[_0xe3b017(0x11e)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x1262a3={[_0x28ef43[_0x15a2d1(0x231)]['OTHERS']]:{[_0x32513a['id']]:{'order':0.2,'menuItemFactory':_0x29682f}}},_0x549ca8=class extends _0x12090c[_0x15a2d1(0x1dd)]{constructor(_0x1ce0de,_0x2e7210,_0xa1a08,_0x417b3d,_0x44daa8,_0x17de71,_0x8cb21,_0x2f660b,_0x3bf7ec,_0x180da8,_0x33e121){const _0xe26ddd=_0x15a2d1;super(),this[_0xe26ddd(0x250)]=_0x1ce0de,this[_0xe26ddd(0x213)]=_0x2e7210,this[_0xe26ddd(0x158)]=_0xa1a08,this[_0xe26ddd(0x20a)]=_0x417b3d,this['_localeService']=_0x44daa8,this[_0xe26ddd(0x1e8)]=_0x17de71,this[_0xe26ddd(0x180)]=_0x8cb21,this[_0xe26ddd(0x10f)]=_0x2f660b,this['_dataLoaderService']=_0x3bf7ec,this['_univerInstanceService']=_0x180da8,this[_0xe26ddd(0x127)]=_0x33e121,_0x47f855(this,'_revertErrorTimer',null),this[_0xe26ddd(0x125)]();}['_init'](){const _0x115f27=_0x15a2d1;[_0x32513a,_0x14d3b7]['forEach'](_0x451e37=>this[_0x115f27(0x18a)]((0x0,_0x12090c[_0x115f27(0x208)])(this['_commandService']['registerCommand'](_0x451e37)))),this[_0x115f27(0x18a)](this[_0x115f27(0x158)][_0x115f27(0x1d0)](_0x115f27(0x26c),_0x11966c)),this['_menuManagerService']['mergeMenu'](_0x1262a3),this[_0x115f27(0x18a)](this['_commandService']['onCommandExecuted'](async(_0x2a3ac7,_0x3b309d)=>{const _0x2e2c60=_0x115f27;if(_0x2a3ac7['id']===_0x11130c[_0x2e2c60(0x114)]['id']){let {unitId:_0x39482a}=_0x2a3ac7[_0x2e2c60(0x26f)];this[_0x2e2c60(0x1e8)][_0x2e2c60(0x226)]({'content':this['_localeService']['t'](_0x2e2c60(0x23e)),'type':_0x2feaca[_0x2e2c60(0x211)][_0x2e2c60(0x17b)],'duration':0x1388});let _0x89392e=this['_collaborationController'][_0x2e2c60(0x22e)](_0x39482a);_0x3b309d!=null&&_0x3b309d['fromCollab']?this[_0x2e2c60(0x124)](_0x89392e,async()=>(setTimeout(()=>window['location'][_0x2e2c60(0x244)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x89392e,async()=>{const _0x1b9137=_0x2e2c60;let _0x270109=this[_0x1b9137(0x12a)][_0x1b9137(0x1b5)](_0xc44c27[_0x1b9137(0x201)]),_0x195cd5=_0x270109==null?void 0x0:_0x270109[_0x1b9137(0x274)]();if(!_0x195cd5)return!0x1;this[_0x1b9137(0x12a)][_0x1b9137(0x1d8)](_0x39482a);let _0x379740=await this[_0x1b9137(0x15f)][_0x1b9137(0x12b)](_0x39482a,_0xc44c27['UNIVER_SHEET']);return _0x379740&&_0x379740 instanceof _0x12090c[_0x1b9137(0x11a)]?(await this[_0x1b9137(0x212)](_0x379740,_0x195cd5[_0x1b9137(0x207)]()),!0x0):!0x1;});}}));}[_0x15a2d1(0x124)](_0x3e05fd,_0xf92a80,_0x31f640=!0x1){const _0x4fec14=_0x15a2d1;let _0x32aa1d=(0x0,_0xfca8c[_0x4fec14(0x1b2)])([_0x3e05fd['session'][_0x4fec14(0x1e5)],_0x3e05fd[_0x4fec14(0x19e)]])[_0x4fec14(0x1a9)](async([_0x377e57,_0x108ba2])=>{const _0x83d42a=_0x4fec14;if(_0x377e57['eventID']===_0x11130c[_0x83d42a(0x12d)][_0x83d42a(0x1ba)]&&(_0x108ba2==null?void 0x0:_0x108ba2['status'])===_0x5f37e5['CollaborationStatus'][_0x83d42a(0x257)]&&_0x377e57['data'][_0x83d42a(0x194)][_0x83d42a(0x14a)](_0x492f90=>_0x492f90['id']===_0x11130c['RevertRevisionMutation']['id'])&&await _0xf92a80()){var _0x45da7f;this[_0x83d42a(0x20a)][_0x83d42a(0x134)](),_0x32aa1d[_0x83d42a(0x15a)](),this[_0x83d42a(0x1be)]&&clearTimeout(this[_0x83d42a(0x1be)]),await((_0x45da7f=this[_0x83d42a(0x10f)])==null?void 0x0:_0x45da7f[_0x83d42a(0x224)]()),this[_0x83d42a(0x1e8)][_0x83d42a(0x1f6)]();}});_0x31f640&&(this[_0x4fec14(0x1be)]=setTimeout(()=>{const _0x20506b=_0x4fec14;_0x32aa1d[_0x20506b(0x15a)](),this['_messageService']['show']({'content':this[_0x20506b(0x22a)]['t'](_0x20506b(0x21f)),'type':_0x2feaca[_0x20506b(0x211)][_0x20506b(0x269)],'duration':0xbb8});},0x1388));}async[_0x15a2d1(0x212)](_0x239f2f,_0x3d8d1b){const _0x399877=_0x15a2d1;await this['_updateSubUnitFromURLParams'](_0x239f2f,_0x3d8d1b),_0x239f2f[_0x399877(0x20e)][_0x399877(0x1a0)]((0x0,_0xfca8c[_0x399877(0x10c)])(this[_0x399877(0x216)]))[_0x399877(0x1a9)](_0x3ac944=>{const _0x35c1b5=_0x399877;_0x3ac944&&this[_0x35c1b5(0x115)](_0x3ac944);}),this[_0x399877(0x127)][_0x399877(0x1ab)][_0x399877(0x1a0)]((0x0,_0xfca8c['takeUntil'])(this[_0x399877(0x216)]))[_0x399877(0x1a9)](()=>this['_updateSubUnitFromURLParams'](_0x239f2f,_0x3d8d1b));}[_0x15a2d1(0x115)](_0x517210,_0x69f378=!0x1){const _0x113a56=_0x15a2d1;let _0x2b1641=this[_0x113a56(0x127)]['getParam'](_0x113a56(0x1d7));_0x517210['getSheetId']()!==_0x2b1641&&this[_0x113a56(0x127)][_0x113a56(0x1ae)]('subunit',_0x517210[_0x113a56(0x207)](),_0x69f378);}async['_updateSubUnitFromURLParams'](_0x24b765,_0x137b7a){const _0xb10121=_0x15a2d1;var _0x1c8042;if(!_0x137b7a||!_0x24b765[_0xb10121(0x205)](_0x137b7a)){let _0x5d6539=_0x24b765[_0xb10121(0x138)]()[0x0],_0x51d535=_0x24b765[_0xb10121(0x205)](_0x5d6539);if(!_0x51d535)return;this[_0xb10121(0x115)](_0x51d535,!0x0),await this[_0xb10121(0x250)][_0xb10121(0x145)](_0x4e039e['SetWorksheetActivateCommand']['id'],{'unitId':_0x24b765[_0xb10121(0x1f4)](),'subUnitId':_0x5d6539});return;}((_0x1c8042=_0x24b765[_0xb10121(0x274)]())==null?void 0x0:_0x1c8042[_0xb10121(0x207)]())!==_0x137b7a&&await this[_0xb10121(0x250)][_0xb10121(0x145)](_0x4e039e[_0xb10121(0x1a3)]['id'],{'unitId':_0x24b765[_0xb10121(0x1f4)](),'subUnitId':_0x137b7a});}};_0x549ca8=_0x1b6269([_0xe0d68f(0x0,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x1,_0x28ef43['IMenuManagerService']),_0xe0d68f(0x2,(0x0,_0x12090c['Inject'])(_0x28ef43[_0x15a2d1(0x13a)])),_0xe0d68f(0x3,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5664ee)),_0xe0d68f(0x4,(0x0,_0x12090c['Inject'])(_0x12090c[_0x15a2d1(0x255)])),_0xe0d68f(0x5,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x6,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5f37e5[_0x15a2d1(0x1cf)])),_0xe0d68f(0x7,_0x5f37e5[_0x15a2d1(0x1ef)]),_0xe0d68f(0x8,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5f37e5['DataLoaderService'])),_0xe0d68f(0x9,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0xa,_0x4f45d9[_0x15a2d1(0x239)])],_0x549ca8);let _0x4019cf=_0x15a2d1(0x113),_0xd4d756=class extends _0x12090c['Disposable']{constructor(_0x32018e,_0x310059,_0x2a6749,_0x5b384e,_0x87093a,_0x173b64,_0x29fc5c,_0x50c010,_0x3c5b2e,_0x245d4e){const _0x54b8a9=_0x15a2d1;super(),this[_0x54b8a9(0x22a)]=_0x32018e,this['_univerInstanceService']=_0x310059,this['_configService']=_0x2a6749,this[_0x54b8a9(0x250)]=_0x5b384e,this[_0x54b8a9(0x1e8)]=_0x87093a,this[_0x54b8a9(0x238)]=_0x173b64,this[_0x54b8a9(0x1e7)]=_0x29fc5c,this['_dialogService']=_0x50c010,this[_0x54b8a9(0x155)]=_0x3c5b2e,this['_themeService']=_0x245d4e,_0x47f855(this,_0x54b8a9(0x153),new _0xfca8c[(_0x54b8a9(0x1c1))](null)),_0x47f855(this,_0x54b8a9(0x117),this[_0x54b8a9(0x153)]['asObservable']()),_0x47f855(this,_0x54b8a9(0x13b),new _0x12090c[(_0x54b8a9(0x135))]()),_0x47f855(this,'_pluginMap',new Map()),_0x47f855(this,_0x54b8a9(0x265),null),this[_0x54b8a9(0x125)]();}get[_0x15a2d1(0x20d)](){const _0x3dd58b=_0x15a2d1;return this[_0x3dd58b(0x153)]['value'];}[_0x15a2d1(0x125)](){const _0xcb1925=_0x15a2d1;this[_0xcb1925(0x128)](),this['_initPlugins']();}[_0x15a2d1(0x128)](){const _0x481828=_0x15a2d1;var _0x1ea09e;let _0x5e4c88=(_0x1ea09e=this['_configService'][_0x481828(0x21a)]('UNIVER_CONTAINER_ID'))==null?_0x481828(0x116):_0x1ea09e,_0x2af9c1=document[_0x481828(0x223)](_0x5e4c88);if(!_0x2af9c1)return;let _0x4c3c7b=document[_0x481828(0x1dc)]('div');_0x4c3c7b['id']=_0x4019cf,_0x4c3c7b['dataset']['uComp']=_0x481828(0x1f3),_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x1b1)]='absolute',_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x177)]='0',_0x4c3c7b['style']['left']='0',_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x13f)]='100%',_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x242)]=_0x481828(0x1fc),_0x4c3c7b[_0x481828(0x1f7)][_0x481828(0x195)]='49',_0x4c3c7b[_0x481828(0x1f7)]['display']='none',_0x2af9c1[_0x481828(0x24b)](_0x4c3c7b);}[_0x15a2d1(0x266)](){const _0x3a951f=_0x15a2d1;[[_0x43f152[_0x3a951f(0x17f)]],[_0x28ef43[_0x3a951f(0x1a8)],{'container':_0x4019cf,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x28ef43[_0x3a951f(0x1af)],null]]}],[_0x1a4595[_0x3a951f(0x173)]],[_0x5904cb[_0x3a951f(0x247)],{'override':[[_0x5904cb[_0x3a951f(0x152)],null]]}],[_0x2ea4bf[_0x3a951f(0x1c2)],{'hasScroll':!0x1}],[_0x25da9d[_0x3a951f(0x1a5)]],[_0x632a83[_0x3a951f(0x163)]],[_0x4e039e[_0x3a951f(0x20c)],{'notExecuteFormula':!0x0}],[_0x45eeac[_0x3a951f(0x1c9)]],[_0x3ef67c[_0x3a951f(0x232)]],[_0x2bb13c[_0x3a951f(0x237)]],[_0x11130c['UniverCollaborationPlugin']],[_0x2df2bc[_0x3a951f(0x1d5)]],[_0x34d95d['UniverSheetsConditionalFormattingPlugin']],[_0x5042e4[_0x3a951f(0x12e)]],[_0xfc5b51[_0x3a951f(0x1ed)]],[_0x3401cf[_0x3a951f(0x165)]],[_0x31ce0b['UniverSheetsDataValidationPlugin']],[_0x4255aa[_0x3a951f(0x21c)]],[_0x19085c[_0x3a951f(0x1eb)],{'notExecuteFormula':!0x0}],[_0x2eba8a[_0x3a951f(0x15c)]],[_0x264674[_0x3a951f(0x17a)]],[_0x40d9f3[_0x3a951f(0x1d4)]],[_0x28b7a8['UniverSheetSparklinePlugin']],[_0x1d70f4[_0x3a951f(0x22d)]],[_0x115e2f[_0x3a951f(0x18d)]],[_0x3792f0[_0x3a951f(0x258)]],[_0x3aafca[_0x3a951f(0x10a)]],[_0x473700[_0x3a951f(0x141)]],[_0x2c40b3[_0x3a951f(0x133)],{'notExecuteFormula':!0x0}],[_0x4fb882[_0x3a951f(0x1bc)]]][_0x3a951f(0x1f9)](([_0xae0e37,_0x520384])=>this[_0x3a951f(0x26d)](_0xae0e37,_0x520384));}[_0x15a2d1(0x1fd)](){const _0xaa9794=_0x15a2d1;super[_0xaa9794(0x1fd)](),this[_0xaa9794(0x134)](),this[_0xaa9794(0x14f)][_0xaa9794(0x1c3)]();}['registerPlugin'](_0x53acb4,_0x55709c,_0x2f1426){const _0x200224=_0x15a2d1;if(this[_0x200224(0x14f)][_0x200224(0x214)](_0x53acb4[_0x200224(0x119)])&&!_0x2f1426)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x53acb4[_0x200224(0x119)]+_0x200224(0x262));this[_0x200224(0x14f)]['set'](_0x53acb4['pluginName'],[_0x53acb4,_0x55709c]);}[_0x15a2d1(0x259)](){const _0x5e0348=_0x15a2d1;return Array[_0x5e0348(0x192)](this[_0x5e0348(0x14f)][_0x5e0348(0x169)]());}[_0x15a2d1(0x203)](_0x5bdf36,_0x1e4b3f){const _0x647261=_0x15a2d1;let _0x82d2b=document[_0x647261(0x223)](_0x4019cf);_0x82d2b&&(_0x82d2b['style'][_0x647261(0x111)]=_0x647261(0x185),this['_initUniver'](_0x5bdf36,_0x4019cf,_0x1e4b3f));}[_0x15a2d1(0x134)](){const _0x2e1011=_0x15a2d1;var _0x4345e9;this[_0x2e1011(0x13b)][_0x2e1011(0x1fd)](),(_0x4345e9=this[_0x2e1011(0x20d)])==null||_0x4345e9['dispose'](),this[_0x2e1011(0x153)][_0x2e1011(0x25f)](null);let _0x164a5c=document[_0x2e1011(0x223)](_0x4019cf);_0x164a5c&&(_0x164a5c['style'][_0x2e1011(0x111)]='none',this[_0x2e1011(0x265)]&&(this[_0x2e1011(0x265)][_0x2e1011(0x12f)](),this['_internalWebWorker']=null));}[_0x15a2d1(0x19d)](_0x158c9f,_0x13f4f1,_0x3dfb9f){const _0x390b6d=_0x15a2d1;var _0x3f16e5,_0xf8d033,_0x1b1812,_0x5df741;if(this['historyUniver'])return;let _0x4b6226=new _0x12090c[(_0x390b6d(0x219))]({'locales':{[this['_localeService'][_0x390b6d(0x13d)]()]:this['_localeService'][_0x390b6d(0x164)]()},'override':[[_0x12090c[_0x390b6d(0x142)],{'useClass':_0x5f37e5[_0x390b6d(0x161)]}]]}),_0x4d09e0=_0x4b6226[_0x390b6d(0x1a7)]();this[_0x390b6d(0x18a)](this[_0x390b6d(0x137)]['darkMode$'][_0x390b6d(0x1a9)](_0x359ccf=>{const _0x254899=_0x390b6d;_0x4d09e0[_0x254899(0x10e)](_0x12090c[_0x254899(0x220)])[_0x254899(0x1b6)](_0x359ccf);})),this[_0x390b6d(0x18a)](this['_themeService']['currentTheme$'][_0x390b6d(0x1a9)](_0x259c0e=>{const _0x442f89=_0x390b6d;_0x4d09e0[_0x442f89(0x10e)](_0x12090c['ThemeService'])[_0x442f89(0x24e)](_0x259c0e);})),_0x4d09e0['get'](_0x12090c['LocaleService'])['setLocale'](this['_localeService'][_0x390b6d(0x13d)]()),_0x4d09e0[_0x390b6d(0x10e)](_0x12090c[_0x390b6d(0x14c)])[_0x390b6d(0x222)](_0x5f37e5[_0x390b6d(0x189)],this['_configService'][_0x390b6d(0x21a)](_0x5f37e5[_0x390b6d(0x189)]));let _0xc68c7f=this[_0x390b6d(0x1e4)][_0x390b6d(0x21a)](_0x2827be['LS_CONFIG_KEY']);_0xc68c7f&&_0x4b6226[_0x390b6d(0x26d)](_0x2827be[_0x390b6d(0x229)],{'license':_0xc68c7f['ls']});let _0x39dd3c=(_0x3f16e5=this['_configService'][_0x390b6d(0x21a)]('edit-history-loader.config'))==null?void 0x0:_0x3f16e5[_0x390b6d(0x174)],_0x41ee3d=!!_0x39dd3c;_0x41ee3d&&(this['_internalWebWorker']=_0x39dd3c instanceof Worker?_0x39dd3c:null,_0x4b6226['registerPlugin'](_0x5140f3[_0x390b6d(0x17c)],{'workerURL':_0x39dd3c})),this[_0x390b6d(0x14f)]['forEach'](([_0x1b720d,_0x399e69])=>{_0x4b6226['registerPlugin'](_0x1b720d,_0x399e69);}),_0x4b6226['registerPlugin'](_0x59a771[_0x390b6d(0x206)],{'historyListServerUrl':(_0xf8d033=this[_0x390b6d(0x1e4)]['getConfig'](_0x390b6d(0x236)))==null?void 0x0:_0xf8d033[_0x390b6d(0x176)],'historyPanelComponentKey':(_0x1b1812=this[_0x390b6d(0x1e4)][_0x390b6d(0x21a)](_0x390b6d(0x236)))==null?void 0x0:_0x1b1812[_0x390b6d(0x1a1)],'historyPanelHidden':(_0x5df741=this[_0x390b6d(0x1e4)]['getConfig'](_0x390b6d(0x236)))==null?void 0x0:_0x5df741[_0x390b6d(0x268)]}),_0x4d09e0[_0x390b6d(0x26b)](_0x2d53ac=>{const _0x15b16c=_0x390b6d;this[_0x15b16c(0x1ac)](_0x2d53ac,_0x158c9f);}),this['_historyUniver$'][_0x390b6d(0x25f)](_0x4b6226);let _0x59f969=_0x4d09e0[_0x390b6d(0x10e)](_0x59a771['HistoryManagerService']),_0x4783a3=this['_checkCanRevert'](_0x158c9f),_0x30f682=()=>{const _0x144802=_0x390b6d;_0x3dfb9f?_0x59f969[_0x144802(0x227)](_0x158c9f,_0x13f4f1,_0x4783a3,_0x3dfb9f):_0x59f969[_0x144802(0x260)](_0x158c9f,_0x13f4f1,_0x4783a3);};if(this['_messageService']['show']({'content':this[_0x390b6d(0x22a)]['t'](_0x390b6d(0x1fb)),'type':_0x2feaca[_0x390b6d(0x211)][_0x390b6d(0x17b)]}),_0x41ee3d)try{_0x4d09e0[_0x390b6d(0x10e)](_0x5140f3[_0x390b6d(0x1b8)])[_0x390b6d(0x1e9)]()[_0x390b6d(0x235)](()=>{_0x30f682();});}catch{_0x30f682();}else _0x30f682();}['_initListener'](_0x41e853,_0x697d2d){const _0x27a2bd=_0x15a2d1;let _0x46a867=_0x41e853[_0x27a2bd(0x10e)](_0x59a771[_0x27a2bd(0x171)]);this[_0x27a2bd(0x13b)]['add'](_0x46a867[_0x27a2bd(0x16e)][_0x27a2bd(0x1a9)](_0x2c5b15=>{const _0x2b32fa=_0x27a2bd;switch(_0x2c5b15){case _0x59a771[_0x2b32fa(0x1fe)][_0x2b32fa(0x249)]:this['_dialogService'][_0x2b32fa(0x136)](),this[_0x2b32fa(0x155)][_0x2b32fa(0x273)]();break;case _0x59a771[_0x2b32fa(0x1fe)][_0x2b32fa(0x1f0)]:this[_0x2b32fa(0x250)][_0x2b32fa(0x145)](_0x14d3b7['id']),this[_0x2b32fa(0x134)]();break;case _0x59a771[_0x2b32fa(0x1fe)][_0x2b32fa(0x269)]:this[_0x2b32fa(0x134)](),this[_0x2b32fa(0x1e8)][_0x2b32fa(0x226)]({'content':this[_0x2b32fa(0x22a)]['t'](_0x2b32fa(0x18f)),'type':_0x2feaca[_0x2b32fa(0x211)][_0x2b32fa(0x269)],'duration':0xbb8});break;default:break;}})),this[_0x27a2bd(0x13b)][_0x27a2bd(0x218)](_0x46a867[_0x27a2bd(0x1c0)][_0x27a2bd(0x1a9)](async _0x47d520=>{const _0x235694=_0x27a2bd;_0x47d520&&this['_commandService'][_0x235694(0x145)](_0x11130c[_0x235694(0x114)]['id'],{'unitId':_0x697d2d,'revision':_0x47d520});}));}[_0x15a2d1(0x25d)](_0x2cd9d5){const _0x2ff861=_0x15a2d1;let _0xbc5024=this[_0x2ff861(0x12a)][_0x2ff861(0x20b)](_0x2cd9d5)['getSheets']()[_0x2ff861(0x1fa)](_0x18c19a=>_0x18c19a[_0x2ff861(0x207)]()),_0x4088ee=new _0x4e039e[(_0x2ff861(0x1a2))](_0x2cd9d5)['id'],_0x2034e1=_0xbc5024[_0x2ff861(0x1fa)](_0x312b1a=>new _0x4e039e[(_0x2ff861(0x21e))](_0x2cd9d5,_0x312b1a)['id']),_0x2771a8=_0xbc5024[_0x2ff861(0x1fa)](_0x449937=>this['_selectionProtectionRuleModel'][_0x2ff861(0x1c4)](_0x2cd9d5,_0x449937)[_0x2ff861(0x1fa)](_0x286e86=>new _0x4e039e[(_0x2ff861(0x18e))](_0x2cd9d5,_0x449937,_0x286e86['permissionId'])['id']))[_0x2ff861(0x1a6)](),_0x3214d1=new _0x4e039e['WorkbookRecoverHistoryPermission'](_0x2cd9d5)['id'];return this[_0x2ff861(0x238)]['composePermission']([_0x4088ee,..._0x2034e1,..._0x2771a8,_0x3214d1])['every'](_0x1c0dd7=>!!_0x1c0dd7[_0x2ff861(0x25b)]);}};_0xd4d756=_0x1b6269([_0xe0d68f(0x0,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x255)])),_0xe0d68f(0x1,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)]),_0xe0d68f(0x3,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x4,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x5,_0x12090c[_0x15a2d1(0x215)]),_0xe0d68f(0x6,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x4e039e[_0x15a2d1(0x159)])),_0xe0d68f(0x7,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43['IDialogService'])),_0xe0d68f(0x8,(0x0,_0x12090c['Inject'])(_0x28ef43[_0x15a2d1(0x1da)])),_0xe0d68f(0x9,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x220)]))],_0xd4d756);let _0x56a29d=class extends _0x12090c[_0x15a2d1(0x16f)]{constructor(_0x26a07d=_0x59d7ed,_0x2189c6,_0x599d70){const _0x2c1580=_0x15a2d1;super(),this[_0x2c1580(0x129)]=_0x26a07d,this[_0x2c1580(0x11b)]=_0x2189c6,this['_configService']=_0x599d70;let {menu:_0x499b86,..._0x565e43}=(0x0,_0x12090c[_0x2c1580(0x210)])({},_0x59d7ed,this[_0x2c1580(0x129)]);_0x499b86&&this[_0x2c1580(0x1e4)][_0x2c1580(0x222)](_0x2c1580(0x166),_0x499b86,{'merge':!0x0}),this[_0x2c1580(0x1e4)]['setConfig'](_0xbbabb7,_0x565e43),this[_0x2c1580(0x129)][_0x2c1580(0x1bf)]&&this['_configService']['setConfig'](_0x2c1580(0x248),this[_0x2c1580(0x129)]['univerContainerId']);}[_0x15a2d1(0x11d)](){const _0x21518c=_0x15a2d1;[[_0x5664ee,{'useClass':_0xd4d756}],[_0x549ca8]][_0x21518c(0x1f9)](_0x2680c8=>this[_0x21518c(0x11b)][_0x21518c(0x218)](_0x2680c8));}[_0x15a2d1(0x1ee)](){const _0x8bf414=_0x15a2d1;this[_0x8bf414(0x11b)][_0x8bf414(0x10e)](_0x549ca8);}};_0x47f855(_0x56a29d,'type',_0x12090c['UniverInstanceType'][_0x15a2d1(0x22c)]),_0x47f855(_0x56a29d,'pluginName','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),_0x47f855(_0x56a29d,'packageName',_0x41aedd),_0x47f855(_0x56a29d,_0x15a2d1(0x18b),_0x2dc78c),_0x56a29d=_0x1b6269([(0x0,_0x12090c[_0x15a2d1(0x1ff)])(_0x2827be[_0x15a2d1(0x229)]),_0xe0d68f(0x1,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c['Injector'])),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)])],_0x56a29d);let _0x33294e=class extends _0x12090c[_0x15a2d1(0x1dd)]{constructor(_0x30efd7,_0x1a7aee,_0x25b68e,_0x465c5c,_0x50afd3,_0x34ebd6,_0x2d38aa,_0x5d3026,_0x17eb8a,_0x5ec6ce,_0x1992f1){const _0x45fb43=_0x15a2d1;super(),this[_0x45fb43(0x250)]=_0x30efd7,this['_menuManagerService']=_0x1a7aee,this[_0x45fb43(0x158)]=_0x25b68e,this[_0x45fb43(0x20a)]=_0x465c5c,this[_0x45fb43(0x22a)]=_0x50afd3,this[_0x45fb43(0x1e8)]=_0x34ebd6,this[_0x45fb43(0x180)]=_0x2d38aa,this[_0x45fb43(0x10f)]=_0x5d3026,this[_0x45fb43(0x15f)]=_0x17eb8a,this['_univerInstanceService']=_0x5ec6ce,this['_urlService']=_0x1992f1,_0x47f855(this,_0x45fb43(0x1be),null),this[_0x45fb43(0x125)]();}[_0x15a2d1(0x125)](){const _0x4d58d6=_0x15a2d1;[_0x32513a,_0x14d3b7][_0x4d58d6(0x1f9)](_0x5970e4=>this[_0x4d58d6(0x18a)]((0x0,_0x12090c[_0x4d58d6(0x208)])(this[_0x4d58d6(0x250)][_0x4d58d6(0x144)](_0x5970e4)))),this[_0x4d58d6(0x18a)](this[_0x4d58d6(0x158)][_0x4d58d6(0x1d0)]('HistoryIcon',_0x11966c)),this[_0x4d58d6(0x213)][_0x4d58d6(0x1ad)](_0x1262a3),this['disposeWithMe'](this[_0x4d58d6(0x250)]['onCommandExecuted'](async(_0x23275e,_0x1c61fa)=>{const _0x371ef7=_0x4d58d6;if(_0x23275e['id']===_0x11130c[_0x371ef7(0x114)]['id']){let {unitId:_0x4cfac5}=_0x23275e[_0x371ef7(0x26f)];this[_0x371ef7(0x1e8)]['show']({'content':this[_0x371ef7(0x22a)]['t'](_0x371ef7(0x23e)),'type':_0x2feaca['MessageType'][_0x371ef7(0x17b)],'duration':0x1388});let _0x16cc75=this['_collaborationController']['getCollabEntity'](_0x4cfac5);_0x1c61fa!=null&&_0x1c61fa[_0x371ef7(0x1b7)]?this['_handleRevertAcknowledgement'](_0x16cc75,async()=>(setTimeout(()=>window[_0x371ef7(0x1f1)]['reload']()),!0x0),!0x0):this[_0x371ef7(0x124)](_0x16cc75,async()=>{const _0x289364=_0x371ef7;let _0x23b24d=this[_0x289364(0x12a)][_0x289364(0x1b5)](_0xc44c27['UNIVER_SHEET']),_0x44e1df=_0x23b24d==null?void 0x0:_0x23b24d[_0x289364(0x274)]();if(!_0x44e1df)return!0x1;this['_univerInstanceService'][_0x289364(0x1d8)](_0x4cfac5);let _0x1886a8=await this[_0x289364(0x15f)][_0x289364(0x12b)](_0x4cfac5,_0xc44c27['UNIVER_SHEET']);return _0x1886a8&&_0x1886a8 instanceof _0x12090c[_0x289364(0x11a)]?(await this['_setupSubUnitSync'](_0x1886a8,_0x44e1df[_0x289364(0x207)]()),!0x0):!0x1;});}}));}[_0x15a2d1(0x124)](_0x37d70f,_0x25bc6a,_0x50fcb6=!0x1){const _0x25e2d3=_0x15a2d1;let _0x70abb3=(0x0,_0xfca8c[_0x25e2d3(0x1b2)])([_0x37d70f['session'][_0x25e2d3(0x1e5)],_0x37d70f[_0x25e2d3(0x19e)]])[_0x25e2d3(0x1a9)](async([_0x53b699,_0x188cab])=>{const _0x5420e5=_0x25e2d3;if(_0x53b699[_0x5420e5(0x198)]===_0x11130c[_0x5420e5(0x12d)]['CHANGESET_ACK']&&(_0x188cab==null?void 0x0:_0x188cab[_0x5420e5(0x23b)])===_0x5f37e5[_0x5420e5(0x202)][_0x5420e5(0x257)]&&_0x53b699[_0x5420e5(0x1ec)][_0x5420e5(0x194)][_0x5420e5(0x14a)](_0x446902=>_0x446902['id']===_0x11130c['RevertRevisionMutation']['id'])&&await _0x25bc6a()){var _0x217b91;this['_historyManagerService'][_0x5420e5(0x134)](),_0x70abb3[_0x5420e5(0x15a)](),this[_0x5420e5(0x1be)]&&clearTimeout(this['_revertErrorTimer']),await((_0x217b91=this['_localCacheService'])==null?void 0x0:_0x217b91[_0x5420e5(0x224)]());}});_0x50fcb6&&(this[_0x25e2d3(0x1be)]=setTimeout(()=>{const _0x564490=_0x25e2d3;_0x70abb3[_0x564490(0x15a)](),this[_0x564490(0x1e8)]['show']({'content':this[_0x564490(0x22a)]['t'](_0x564490(0x21f)),'type':_0x2feaca[_0x564490(0x211)]['Error'],'duration':0xbb8});},0x1388));}async[_0x15a2d1(0x212)](_0x4f1057,_0x24bf6a){const _0xfd0934=_0x15a2d1;await this['_updateSubUnitFromURLParams'](_0x4f1057,_0x24bf6a),_0x4f1057['activeSheet$'][_0xfd0934(0x1a0)]((0x0,_0xfca8c[_0xfd0934(0x10c)])(this[_0xfd0934(0x216)]))['subscribe'](_0x56f34b=>{_0x56f34b&&this['_updateURLWithCurrentState'](_0x56f34b);}),this[_0xfd0934(0x127)][_0xfd0934(0x1ab)]['pipe']((0x0,_0xfca8c[_0xfd0934(0x10c)])(this['dispose$']))[_0xfd0934(0x1a9)](()=>this[_0xfd0934(0x13c)](_0x4f1057,_0x24bf6a));}[_0x15a2d1(0x115)](_0x2acf22,_0x49e15c=!0x1){const _0x609db5=_0x15a2d1;let _0x1488d5=this[_0x609db5(0x127)]['getParam'](_0x609db5(0x1d7));_0x2acf22[_0x609db5(0x207)]()!==_0x1488d5&&this[_0x609db5(0x127)][_0x609db5(0x1ae)](_0x609db5(0x1d7),_0x2acf22[_0x609db5(0x207)](),_0x49e15c);}async[_0x15a2d1(0x13c)](_0x5d17ec,_0x9a25ac){const _0x198419=_0x15a2d1;var _0x4b4db0;if(!_0x9a25ac||!_0x5d17ec[_0x198419(0x205)](_0x9a25ac)){let _0x10959a=_0x5d17ec[_0x198419(0x138)]()[0x0],_0x31aa23=_0x5d17ec[_0x198419(0x205)](_0x10959a);if(!_0x31aa23)return;this['_updateURLWithCurrentState'](_0x31aa23,!0x0),await this[_0x198419(0x250)][_0x198419(0x145)](_0x4e039e[_0x198419(0x1a3)]['id'],{'unitId':_0x5d17ec['getUnitId'](),'subUnitId':_0x10959a});return;}((_0x4b4db0=_0x5d17ec['getActiveSheet']())==null?void 0x0:_0x4b4db0[_0x198419(0x207)]())!==_0x9a25ac&&await this[_0x198419(0x250)][_0x198419(0x145)](_0x4e039e[_0x198419(0x1a3)]['id'],{'unitId':_0x5d17ec[_0x198419(0x1f4)](),'subUnitId':_0x9a25ac});}};_0x33294e=_0x1b6269([_0xe0d68f(0x0,_0x12090c[_0x15a2d1(0x1aa)]),_0xe0d68f(0x1,_0x28ef43[_0x15a2d1(0x126)]),_0xe0d68f(0x2,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x28ef43['ComponentManager'])),_0xe0d68f(0x3,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5664ee)),_0xe0d68f(0x4,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x255)])),_0xe0d68f(0x5,_0x28ef43[_0x15a2d1(0x221)]),_0xe0d68f(0x6,(0x0,_0x12090c['Inject'])(_0x5f37e5['CollaborationController'])),_0xe0d68f(0x7,_0x5f37e5[_0x15a2d1(0x1ef)]),_0xe0d68f(0x8,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x5f37e5[_0x15a2d1(0x10b)])),_0xe0d68f(0x9,_0x12090c[_0x15a2d1(0x170)]),_0xe0d68f(0xa,_0x4f45d9[_0x15a2d1(0x239)])],_0x33294e);let _0x341085=class extends _0x12090c['Plugin']{constructor(_0x2589a2=_0x59d7ed,_0x174ba0,_0x2b4b69){const _0x48dcf2=_0x15a2d1;super(),this[_0x48dcf2(0x129)]=_0x2589a2,this['_injector']=_0x174ba0,this[_0x48dcf2(0x1e4)]=_0x2b4b69;let {menu:_0x1024b9,..._0x387d1e}=(0x0,_0x12090c[_0x48dcf2(0x210)])({},_0x59d7ed,this['_config']);_0x1024b9&&this['_configService'][_0x48dcf2(0x222)]('menu',_0x1024b9,{'merge':!0x0}),this[_0x48dcf2(0x1e4)]['setConfig'](_0xbbabb7,_0x387d1e),this[_0x48dcf2(0x129)][_0x48dcf2(0x1bf)]&&this[_0x48dcf2(0x1e4)][_0x48dcf2(0x222)](_0x4ee5fa,this[_0x48dcf2(0x129)][_0x48dcf2(0x1bf)]);}[_0x15a2d1(0x11d)](){const _0x4c3edd=_0x15a2d1;[[_0x5664ee],[_0x33294e]][_0x4c3edd(0x1f9)](_0x63a57b=>this[_0x4c3edd(0x11b)][_0x4c3edd(0x218)](_0x63a57b));}[_0x15a2d1(0x1ee)](){this['_injector']['get'](_0x33294e);}};_0x47f855(_0x341085,_0x15a2d1(0x16a),_0x12090c[_0x15a2d1(0x230)][_0x15a2d1(0x22c)]),_0x47f855(_0x341085,'pluginName',_0x15a2d1(0x11f)),_0x47f855(_0x341085,_0x15a2d1(0x14e),_0x41aedd),_0x47f855(_0x341085,_0x15a2d1(0x18b),_0x2dc78c),_0x341085=_0x1b6269([(0x0,_0x12090c['DependentOn'])(_0x2827be['UniverLicensePlugin']),_0xe0d68f(0x1,(0x0,_0x12090c[_0x15a2d1(0x25e)])(_0x12090c[_0x15a2d1(0x1f5)])),_0xe0d68f(0x2,_0x12090c[_0x15a2d1(0x14c)])],_0x341085),_0x20db1e[_0x15a2d1(0x131)]=_0xbbabb7,Object[_0x15a2d1(0x241)](_0x20db1e,_0x15a2d1(0x199),{'enumerable':!0x0,'get':function(){return _0x5664ee;}}),Object['defineProperty'](_0x20db1e,_0x15a2d1(0x19a),{'enumerable':!0x0,'get':function(){return _0xd4d756;}}),_0x20db1e[_0x15a2d1(0x267)]=_0x32513a,_0x20db1e[_0x15a2d1(0x1cb)]=_0x4ee5fa,_0x20db1e[_0x15a2d1(0x23c)]=_0x149c55,Object[_0x15a2d1(0x241)](_0x20db1e,_0x15a2d1(0x1b0),{'enumerable':!0x0,'get':function(){return _0x56a29d;}}),Object[_0x15a2d1(0x241)](_0x20db1e,_0x15a2d1(0x162),{'enumerable':!0x0,'get':function(){return _0x341085;}});}));function _0x169d(){const _0x46c388=['mountHistoryContent','permissionId','getSheetBySheetId','UniverEditHistoryViewerMobilePlugin','getSheetId','toDisposable','xlink:href','_historyManagerService','getUnit','UniverSheetsPlugin','historyUniver','activeSheet$','BUTTON','merge','MessageType','_setupSubUnitSync','_menuManagerService','has','IPermissionService','dispose$','LS_CONFIG_KEY','add','Univer','getConfig','UniverDrawing','UniverSheetsDataValidationMobileUIPlugin','UniverProSheetsShapeUi','WorksheetEditPermission','editHistory.panel.revertFailed','ThemeService','IMessageService','setConfig','getElementById','exhaustSavingTask','attrs','show','triggerCustomVersions','trim','UniverLicensePlugin','_localeService','UniverSheetsFilter','UNIVER_UNKNOWN','UniverSheetSparklineUIPlugin','getCollabEntity','div','UniverInstanceType','RibbonStartGroup','UniverSheetsFormulaPlugin','UniverProSheetsSparkline','8352024BJwfAb','then','edit-history-loader.config','UniverSheetsFormulaUIPlugin','_permissionService','IURLService','0\x200\x2016\x2016','status','UNIVER_HISTORY_CONTAINER_ID','setLocale','editHistory.panel.reverting','symbol','random','defineProperty','height','getSheetCommandTarget','reload','M0\x200H16V16H0z','UNIVER_PROJECT','UniverDrawingPlugin','UNIVER_CONTAINER_ID','Entered','editHistory.panel.title','appendChild','UniverSheetsConditionalFormattingPlugin','svg','setTheme','default','_commandService','absolute','http://www.w3.org/2000/svg','UniverSheets','includes','LocaleService','replace','SYNCED','UniverSheetsChartUIPlugin','getAllPlugins','0.20.1','value','idSuffix','_checkCanRevert','Inject','next','triggerLoadVersions','toString','\x20has\x20been\x20registered.','fill','UniverSheetsConditionalFormattingUIPlugin','_internalWebWorker','_initPlugins','ToggleEditHistoryOperation','historyPanelHidden','Error','decorate','invoke','HistoryIcon','registerPlugin','iterator','params','entries','displayName','UniverSheetsConditionalFormattingUi','close','getActiveSheet','UniverSheetsDataValidationUIPlugin','UniverDocs','length','UniverSheetsShapePlugin','DataLoaderService','takeUntil','substring','get','_localCacheService','UniverProSheetsPivot','display','UniverCollaborationPlugin','univer-history-container-mobile','RevertRevisionMutation','_updateURLWithCurrentState','univer-container','historyUniver$','UniverSheetsFilterUIPlugin','pluginName','Workbook','_injector','UniverIcon','onStarting','WorkbookViewHistoryPermission','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','UniverEditHistoryViewerPlugin','120WiJIoM','UniverSheetsNumfmt','UniverProSheetsShape','_handleRevertAcknowledgement','_init','IMenuManagerService','_urlService','_initContainer','_config','_univerInstanceService','loadUnit','every','CollaborationEvent','UniverSheetsHyperLinkPlugin','terminate','MenuItemType','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','darkMode$','UniverSheetsPivotTablePlugin','unMountHistoryContent','DisposableCollection','closeAll','_themeService','getUnhiddenWorksheets','644158LLjXVa','ComponentManager','_disposableCollection','_updateSubUnitFromURLParams','getCurrentLocale','UniverProCollaborationClientUi','width','univer.operation.exit-edit-history','UniverSheetsShapeUIPlugin','IAuthzIoService','UniverSheetsDrawing','registerCommand','executeCommand','UniverProCollaboration','path','current','UniverUi','some','composePermission','IConfigService','UniverSheetsFilterUi','packageName','_pluginMap','rxjs','call','IImageIoService','_historyUniver$','CommandType','_sidebarService','860eNPbxk','UNIVER_SLIDE','_componentManager','RangeProtectionRuleModel','unsubscribe','UniverDataValidation','UniverDrawingUIPlugin','history-icon','split','_dataLoaderService','9327ZziItZ','AuthzIoHttpService','UniverEditHistoryLoaderPlugin','UniverSheetsNumfmtPlugin','getLocales','UniverDataValidationPlugin','menu','constructor','UNIVER_DOC','values','type','6heidzB','UniverCore','UniverSheetsDataValidation','status$','Plugin','IUniverInstanceService','HistoryManagerService','UniverProEditHistoryViewer','UniverNetworkPlugin','workerURL','UniverSheetSparklinePlugin','historyListServerUrl','top','function','UniverSheetsUi','UniverSheetsDrawingPlugin','Loading','UniverRPCMainThreadPlugin','prototype','5KsfnaF','UniverRenderEnginePlugin','_collaborationController','UniverSheetsDrawingUi','toStringTag','UniverSheetsUIPlugin','UNRECOGNIZED','block','UniverDrawingUi','white','_dialogService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','disposeWithMe','version','none','UniverSheetsChartPlugin','RangeProtectionPermissionEditPoint','editHistory.panel.listFetchError','React','colorChannel1','from','children','mutations','zIndex','UniverNetwork','1192829HZBOLw','eventID','HistoryLoaderService','MobileHistoryLoaderService','UniverRpc','UniverProSheetsChart','_initUniver','state$','set','pipe','historyPanelComponentKey','WorkbookEditablePermission','SetWorksheetActivateCommand','20qSWMNz','UniverDocsUIPlugin','flat','__getInjector','UniverMobileUIPlugin','subscribe','ICommandService','urlChange$','_initListener','mergeMenu','setParam','IDialogService','UniverEditHistoryLoaderMobilePlugin','position','combineLatest','UniverEngineFormula','univerjs-icon\x20univerjs-icon-','getCurrentUnitOfType','setDarkMode','fromCollab','IRemoteInstanceService','UniverProSheetsChartUi','CHANGESET_ACK','historyAIassistantEnabled','UniverSheetsTablePlugin','5700897eErNEg','_revertErrorTimer','univerContainerId','revertRevision$','BehaviorSubject','UniverDocsPlugin','clear','getSubunitRuleList','getSheets','left','string','mask','UniverSheetsMobileUIPlugin','UniverUIPlugin','UNIVER_CONTAINER_ID_KEY','WorkbookRecoverHistoryPermission','assign','dataset','CollaborationController','register','asObservable','@univerjs-pro/edit-history-loader','UniverSheetsTable','UniverSheetsDrawingUIPlugin','UniverSheetsFilterPlugin','defIds','subunit','disposeUnit','UniverSheetsConditionalFormatting','ISidebarService','history-icon_clip0_907_281','createElement','RxDisposable','object','url(#history-icon_clip0_907_281)','amd','6918635KwPeay','url(#$1','UniverSheetsDataValidationUi','_configService','event$','tag','_selectionProtectionRuleModel','_messageService','whenReady','OPERATION','UniverFormulaEnginePlugin','data','UniverSheetsHyperLinkUIPlugin','onSteady','ILocalCacheService','Exited','location','1em','history-container','getUnitId','Injector','removeAll','style','1042237NxnutL','forEach','map','editHistory.info.initializing','100%','dispose','HistoryModeStatus','DependentOn','defs','UNIVER_SHEET','CollaborationStatus'];_0x169d=function(){return _0x46c388;};return _0x169d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,53 +46,53 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@univerjs/icons": "^1.1.1",
|
|
49
|
-
"@univerjs-pro/collaboration": "0.20.
|
|
50
|
-
"@univerjs-pro/collaboration-client": "0.20.
|
|
51
|
-
"@univerjs-pro/
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/sheets-chart": "0.20.
|
|
54
|
-
"@univerjs-pro/
|
|
55
|
-
"@univerjs-pro/sheets-chart-ui": "0.20.
|
|
56
|
-
"@univerjs-pro/sheets-shape": "0.20.
|
|
57
|
-
"@univerjs-pro/sheets-shape-ui": "0.20.
|
|
58
|
-
"@univerjs-pro/
|
|
59
|
-
"@univerjs-pro/sheets-
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/data-validation": "0.20.
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/docs
|
|
66
|
-
"@univerjs/drawing": "0.20.
|
|
67
|
-
"@univerjs/drawing-ui": "0.20.
|
|
68
|
-
"@univerjs/engine-
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/sheets": "0.20.
|
|
74
|
-
"@univerjs/sheets-conditional-formatting": "0.20.
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-data-validation": "0.20.
|
|
77
|
-
"@univerjs/sheets-
|
|
78
|
-
"@univerjs/sheets-drawing-ui": "0.20.
|
|
79
|
-
"@univerjs/sheets-
|
|
80
|
-
"@univerjs/sheets-
|
|
81
|
-
"@univerjs/sheets-filter-ui": "0.20.
|
|
82
|
-
"@univerjs/sheets-formula": "0.20.
|
|
83
|
-
"@univerjs/sheets-hyper-link": "0.20.
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/sheets-
|
|
86
|
-
"@univerjs/sheets-
|
|
87
|
-
"@univerjs/sheets-
|
|
88
|
-
"@univerjs/
|
|
89
|
-
"@univerjs/
|
|
49
|
+
"@univerjs-pro/collaboration": "0.20.1",
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.20.1",
|
|
51
|
+
"@univerjs-pro/edit-history-viewer": "0.20.1",
|
|
52
|
+
"@univerjs-pro/collaboration-client-ui": "0.20.1",
|
|
53
|
+
"@univerjs-pro/sheets-chart": "0.20.1",
|
|
54
|
+
"@univerjs-pro/license": "0.20.1",
|
|
55
|
+
"@univerjs-pro/sheets-chart-ui": "0.20.1",
|
|
56
|
+
"@univerjs-pro/sheets-shape": "0.20.1",
|
|
57
|
+
"@univerjs-pro/sheets-shape-ui": "0.20.1",
|
|
58
|
+
"@univerjs-pro/sheets-sparkline": "0.20.1",
|
|
59
|
+
"@univerjs-pro/sheets-pivot": "0.20.1",
|
|
60
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.20.1",
|
|
61
|
+
"@univerjs/data-validation": "0.20.1",
|
|
62
|
+
"@univerjs/core": "0.20.1",
|
|
63
|
+
"@univerjs/design": "0.20.1",
|
|
64
|
+
"@univerjs/docs-ui": "0.20.1",
|
|
65
|
+
"@univerjs/docs": "0.20.1",
|
|
66
|
+
"@univerjs/drawing": "0.20.1",
|
|
67
|
+
"@univerjs/drawing-ui": "0.20.1",
|
|
68
|
+
"@univerjs/engine-render": "0.20.1",
|
|
69
|
+
"@univerjs/network": "0.20.1",
|
|
70
|
+
"@univerjs/rpc": "0.20.1",
|
|
71
|
+
"@univerjs/protocol": "0.1.49",
|
|
72
|
+
"@univerjs/engine-formula": "0.20.1",
|
|
73
|
+
"@univerjs/sheets": "0.20.1",
|
|
74
|
+
"@univerjs/sheets-conditional-formatting": "0.20.1",
|
|
75
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.20.1",
|
|
76
|
+
"@univerjs/sheets-data-validation": "0.20.1",
|
|
77
|
+
"@univerjs/sheets-drawing": "0.20.1",
|
|
78
|
+
"@univerjs/sheets-drawing-ui": "0.20.1",
|
|
79
|
+
"@univerjs/sheets-filter": "0.20.1",
|
|
80
|
+
"@univerjs/sheets-data-validation-ui": "0.20.1",
|
|
81
|
+
"@univerjs/sheets-filter-ui": "0.20.1",
|
|
82
|
+
"@univerjs/sheets-formula": "0.20.1",
|
|
83
|
+
"@univerjs/sheets-hyper-link": "0.20.1",
|
|
84
|
+
"@univerjs/sheets-formula-ui": "0.20.1",
|
|
85
|
+
"@univerjs/sheets-hyper-link-ui": "0.20.1",
|
|
86
|
+
"@univerjs/sheets-numfmt": "0.20.1",
|
|
87
|
+
"@univerjs/sheets-ui": "0.20.1",
|
|
88
|
+
"@univerjs/ui": "0.20.1",
|
|
89
|
+
"@univerjs/sheets-table": "0.20.1"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"rxjs": "7.8.2",
|
|
93
93
|
"typescript": "^6.0.2",
|
|
94
94
|
"vitest": "^4.1.1",
|
|
95
|
-
"@univerjs-infra/shared": "0.20.
|
|
95
|
+
"@univerjs-infra/shared": "0.20.1"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"test": "vitest run",
|