@univerjs-pro/edit-history-loader 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +44 -44
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x576e68=_0xb79f;(function(_0x2d0abd,_0x4b18a2){const _0xe81944=_0xb79f,_0x71562b=_0x2d0abd();while(!![]){try{const _0x450dad=-parseInt(_0xe81944(0x2c9))/0x1+parseInt(_0xe81944(0x204))/0x2+-parseInt(_0xe81944(0x2a3))/0x3*(-parseInt(_0xe81944(0x2f6))/0x4)+parseInt(_0xe81944(0x2d0))/0x5+parseInt(_0xe81944(0x2f5))/0x6+parseInt(_0xe81944(0x244))/0x7+-parseInt(_0xe81944(0x29f))/0x8;if(_0x450dad===_0x4b18a2)break;else _0x71562b['push'](_0x71562b['shift']());}catch(_0x28fe72){_0x71562b['push'](_0x71562b['shift']());}}}(_0x2d5f,0xc45d2),Object[_0x576e68(0x2f7)](exports,Symbol[_0x576e68(0x2d8)],{'value':_0x576e68(0x2de)}));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=_0x576e68(0x2ee);Symbol(L);const R={};function z(_0x5e2575){'@babel/helpers - typeof';const _0x12a912=_0x576e68;return z=typeof Symbol=='function'&&typeof Symbol[_0x12a912(0x292)]==_0x12a912(0x1f9)?function(_0x4aa312){return typeof _0x4aa312;}:function(_0x515003){const _0x80b339=_0x12a912;return _0x515003&&typeof Symbol=='function'&&_0x515003[_0x80b339(0x28a)]===Symbol&&_0x515003!==Symbol[_0x80b339(0x21d)]?_0x80b339(0x1f9):typeof _0x515003;},z(_0x5e2575);}function oe(_0x4b2158,_0x3c6e21){const _0x38fd66=_0x576e68;if(z(_0x4b2158)!=_0x38fd66(0x215)||!_0x4b2158)return _0x4b2158;var _0x1c739b=_0x4b2158[Symbol[_0x38fd66(0x299)]];if(_0x1c739b!==void 0x0){var _0x4d62d5=_0x1c739b['call'](_0x4b2158,_0x3c6e21||'default');if(z(_0x4d62d5)!=_0x38fd66(0x215))return _0x4d62d5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3c6e21==='string'?String:Number)(_0x4b2158);}function se(_0x52cc96){const _0x3b52dd=_0x576e68;var _0x4e92b8=oe(_0x52cc96,'string');return z(_0x4e92b8)==_0x3b52dd(0x1f9)?_0x4e92b8:_0x4e92b8+'';}function B(_0x53ed67,_0x543c6c,_0x3100a3){const _0x405453=_0x576e68;return(_0x543c6c=se(_0x543c6c))in _0x53ed67?Object[_0x405453(0x2f7)](_0x53ed67,_0x543c6c,{'value':_0x3100a3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53ed67[_0x543c6c]=_0x3100a3,_0x53ed67;}function V(_0x119318,_0x185b1b){return function(_0x426c5d,_0x273b5e){_0x185b1b(_0x426c5d,_0x273b5e,_0x119318);};}function _0xb79f(_0x51a5db,_0x2bc677){_0x51a5db=_0x51a5db-0x1eb;const _0x2d5f92=_0x2d5f();let _0xb79fa9=_0x2d5f92[_0x51a5db];return _0xb79fa9;}function H(_0x260b2e,_0x2f4407,_0x95cdc8,_0x24f5c5){const _0x278345=_0x576e68;var _0x36ddd0=arguments[_0x278345(0x219)],_0x69bc23=_0x36ddd0<0x3?_0x2f4407:_0x24f5c5===null?_0x24f5c5=Object[_0x278345(0x223)](_0x2f4407,_0x95cdc8):_0x24f5c5,_0x89f0e;if(typeof Reflect==_0x278345(0x215)&&typeof Reflect[_0x278345(0x217)]==_0x278345(0x258))_0x69bc23=Reflect[_0x278345(0x217)](_0x260b2e,_0x2f4407,_0x95cdc8,_0x24f5c5);else{for(var _0x138bc9=_0x260b2e['length']-0x1;_0x138bc9>=0x0;_0x138bc9--)(_0x89f0e=_0x260b2e[_0x138bc9])&&(_0x69bc23=(_0x36ddd0<0x3?_0x89f0e(_0x69bc23):_0x36ddd0>0x3?_0x89f0e(_0x2f4407,_0x95cdc8,_0x69bc23):_0x89f0e(_0x2f4407,_0x95cdc8))||_0x69bc23);}return _0x36ddd0>0x3&&_0x69bc23&&Object[_0x278345(0x2f7)](_0x2f4407,_0x95cdc8,_0x69bc23),_0x69bc23;}const U=_0x576e68(0x22c),W=_0x576e68(0x282);let G=class extends e[_0x576e68(0x1ee)]{constructor(_0x1d1468,_0x514bc9,_0x1ac90b,_0x3c6060,_0x840a3d,_0x361681,_0x39cb32,_0x398084,_0x4b7490,_0x4557db){const _0x565bb0=_0x576e68;super(),this[_0x565bb0(0x2c0)]=_0x1d1468,this['_univerInstanceService']=_0x514bc9,this['_configService']=_0x1ac90b,this[_0x565bb0(0x2e4)]=_0x3c6060,this[_0x565bb0(0x2e7)]=_0x840a3d,this['_permissionService']=_0x361681,this[_0x565bb0(0x2a2)]=_0x39cb32,this['_dialogService']=_0x398084,this[_0x565bb0(0x234)]=_0x4b7490,this['_themeService']=_0x4557db,B(this,'_historyUniver$',new N[(_0x565bb0(0x20b))](null)),B(this,'historyUniver$',this[_0x565bb0(0x2b5)][_0x565bb0(0x278)]()),B(this,_0x565bb0(0x260),new e[(_0x565bb0(0x25e))]()),B(this,'_pluginMap',new Map()),B(this,_0x565bb0(0x2f8),null),this[_0x565bb0(0x27c)]();}get[_0x576e68(0x25c)](){const _0x348cde=_0x576e68;return this['_historyUniver$'][_0x348cde(0x27d)];}[_0x576e68(0x27c)](){const _0x40b262=_0x576e68;this[_0x40b262(0x2f1)](),this[_0x40b262(0x2b4)]();}[_0x576e68(0x2f1)](){const _0xacd15b=_0x576e68;var _0x2f1360;let _0x29d10f=(_0x2f1360=this[_0xacd15b(0x237)]['getConfig'](_0xacd15b(0x22c)))==null?_0xacd15b(0x216):_0x2f1360,_0x550608=document[_0xacd15b(0x2d3)](_0x29d10f);if(!_0x550608)return;let _0x844a49=document[_0xacd15b(0x2a8)]('div');_0x844a49['id']=W,_0x844a49['dataset']['uComp']='history-container',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x289)]=_0xacd15b(0x301),_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x247)]='0',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x238)]='0',_0x844a49['style'][_0xacd15b(0x281)]='100%',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x29b)]=_0xacd15b(0x2b1),_0x844a49['style'][_0xacd15b(0x222)]='49',_0x844a49[_0xacd15b(0x2b3)][_0xacd15b(0x2e1)]=_0xacd15b(0x1eb),_0x550608[_0xacd15b(0x2f0)](_0x844a49);}[_0x576e68(0x2b4)](){const _0x409a83=_0x576e68;[[b[_0x409a83(0x27e)]],[M[_0x409a83(0x263)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x409a83(0x277)],null]]}],[x[_0x409a83(0x272)]],[_['UniverDrawingPlugin'],{'override':[[_[_0x409a83(0x24b)],null]]}],[h[_0x409a83(0x2f4)],{'hasScroll':!0x1}],[g[_0x409a83(0x24f)]],[k['UniverSheetsNumfmtPlugin']],[t[_0x409a83(0x224)],{'notExecuteFormula':!0x0}],[j[_0x409a83(0x1ef)]],[re[_0x409a83(0x28c)]],[ie[_0x409a83(0x2d2)]],[n[_0x409a83(0x276)]],[te[_0x409a83(0x1f3)]],[ne[_0x409a83(0x201)]],[C['UniverSheetsConditionalFormattingPlugin']],[ee[_0x409a83(0x2b9)]],[ae[_0x409a83(0x2b7)]],[O[_0x409a83(0x29e)]],[p[_0x409a83(0x251)]],[w['UniverSheetsDataValidationPlugin']],[T[_0x409a83(0x274)]],[y[_0x409a83(0x209)],{'notExecuteFormula':!0x0}],[v['UniverDrawingUIPlugin']],[E[_0x409a83(0x275)]],[D[_0x409a83(0x262)]],[d[_0x409a83(0x28d)]],[f['UniverSheetSparklineUIPlugin']],[o[_0x409a83(0x2ff)]],[s['UniverSheetsChartUIPlugin']],[l[_0x409a83(0x240)]],[u[_0x409a83(0x270)]],[c[_0x409a83(0x207)],{'notExecuteFormula':!0x0}],[A[_0x409a83(0x249)]]][_0x409a83(0x2ae)](([_0x2d40f3,_0x284577])=>this['registerPlugin'](_0x2d40f3,_0x284577));}[_0x576e68(0x2ed)](){const _0x55fd81=_0x576e68;super['dispose'](),this[_0x55fd81(0x2dc)](),this[_0x55fd81(0x273)][_0x55fd81(0x27f)]();}[_0x576e68(0x200)](_0x25b30b,_0x3ef3b3,_0x4d50e5){const _0x4553a2=_0x576e68;if(this['_pluginMap'][_0x4553a2(0x265)](_0x25b30b[_0x4553a2(0x2bd)])&&!_0x4d50e5)throw Error(_0x4553a2(0x242)+_0x25b30b[_0x4553a2(0x2bd)]+_0x4553a2(0x232));this[_0x4553a2(0x273)][_0x4553a2(0x304)](_0x25b30b[_0x4553a2(0x2bd)],[_0x25b30b,_0x3ef3b3]);}[_0x576e68(0x202)](){const _0xfdb82f=_0x576e68;return Array[_0xfdb82f(0x1ec)](this[_0xfdb82f(0x273)][_0xfdb82f(0x2a4)]());}['mountHistoryContent'](_0x48ae18,_0x26195b){const _0x4d1064=_0x576e68;let _0x154e97=document[_0x4d1064(0x2d3)](W);_0x154e97&&(_0x154e97[_0x4d1064(0x2b3)][_0x4d1064(0x2e1)]=_0x4d1064(0x214),this['_initUniver'](_0x48ae18,W,_0x26195b));}['unMountHistoryContent'](){const _0x394e26=_0x576e68;var _0x5ae453;this[_0x394e26(0x260)][_0x394e26(0x2ed)](),(_0x5ae453=this[_0x394e26(0x25c)])==null||_0x5ae453[_0x394e26(0x2ed)](),this[_0x394e26(0x2b5)][_0x394e26(0x2f3)](null);let _0x55da52=document['getElementById'](W);_0x55da52&&(_0x55da52[_0x394e26(0x2b3)][_0x394e26(0x2e1)]=_0x394e26(0x1eb),this['_internalWebWorker']&&(this[_0x394e26(0x2f8)][_0x394e26(0x25f)](),this[_0x394e26(0x2f8)]=null));}[_0x576e68(0x2bb)](_0x5d8a9e,_0x581ad6,_0x5882c0){const _0x2dc3dc=_0x576e68;var _0x32a624,_0x1446e9,_0x5a79ba,_0x4c6852,_0x484926;if(this[_0x2dc3dc(0x25c)])return;let _0x1a5835=new e[(_0x2dc3dc(0x218))]({'locales':{[this[_0x2dc3dc(0x2c0)]['getCurrentLocale']()]:this[_0x2dc3dc(0x2c0)][_0x2dc3dc(0x286)]()},'override':[[e[_0x2dc3dc(0x2b2)],{'useClass':r[_0x2dc3dc(0x20c)]}]]}),_0x1a4853=_0x1a5835[_0x2dc3dc(0x26d)]();this[_0x2dc3dc(0x25b)](this[_0x2dc3dc(0x2b6)]['darkMode$']['subscribe'](_0x53be67=>{const _0x25bdaf=_0x2dc3dc;_0x1a4853[_0x25bdaf(0x23a)](e[_0x25bdaf(0x1f6)])['setDarkMode'](_0x53be67);})),this[_0x2dc3dc(0x25b)](this[_0x2dc3dc(0x2b6)][_0x2dc3dc(0x241)][_0x2dc3dc(0x300)](_0x280d5d=>{const _0x38bf1e=_0x2dc3dc;_0x1a4853[_0x38bf1e(0x23a)](e[_0x38bf1e(0x1f6)])[_0x38bf1e(0x2e2)](_0x280d5d);})),_0x1a4853[_0x2dc3dc(0x23a)](e[_0x2dc3dc(0x227)])[_0x2dc3dc(0x235)](this[_0x2dc3dc(0x2c0)][_0x2dc3dc(0x22b)]()),_0x1a4853[_0x2dc3dc(0x23a)](e[_0x2dc3dc(0x23c)])[_0x2dc3dc(0x203)](r[_0x2dc3dc(0x2d6)],this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](r[_0x2dc3dc(0x2d6)]));let _0x3f9dfc=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](a[_0x2dc3dc(0x306)]);_0x3f9dfc&&_0x1a5835[_0x2dc3dc(0x200)](a[_0x2dc3dc(0x28f)],{'license':_0x3f9dfc['ls']});let _0x2c77d3=(_0x32a624=this['_configService'][_0x2dc3dc(0x29d)](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x32a624['workerURL'],_0x27633e=!!_0x2c77d3;_0x27633e&&(this['_internalWebWorker']=_0x2c77d3 instanceof Worker?_0x2c77d3:null,_0x1a5835[_0x2dc3dc(0x200)](S[_0x2dc3dc(0x26e)],{'workerURL':_0x2c77d3})),this['_pluginMap']['forEach'](([_0x175b4b,_0x17356a])=>{_0x1a5835['registerPlugin'](_0x175b4b,_0x17356a);}),_0x1a5835[_0x2dc3dc(0x200)](i[_0x2dc3dc(0x21f)],{'historyListServerUrl':(_0x1446e9=this['_configService']['getConfig'](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x1446e9[_0x2dc3dc(0x1ff)],'historyPanelComponentKey':(_0x5a79ba=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x5a79ba[_0x2dc3dc(0x212)],'historyPanelHidden':(_0x4c6852=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)](_0x2dc3dc(0x2ee)))==null?void 0x0:_0x4c6852[_0x2dc3dc(0x1f1)],'historyAIassistantEnabled':(_0x484926=this[_0x2dc3dc(0x237)][_0x2dc3dc(0x29d)]('edit-history-loader.config'))==null?void 0x0:_0x484926[_0x2dc3dc(0x259)]}),_0x1a4853[_0x2dc3dc(0x1fb)](_0x5f56de=>{this['_initListener'](_0x5f56de,_0x5d8a9e);}),this[_0x2dc3dc(0x2b5)][_0x2dc3dc(0x2f3)](_0x1a5835);let _0x528b65=_0x1a4853[_0x2dc3dc(0x23a)](i[_0x2dc3dc(0x2d7)]),_0x57a8b6=this[_0x2dc3dc(0x2ad)](_0x5d8a9e),_0x1823fa=()=>{const _0x53e26c=_0x2dc3dc;_0x5882c0?_0x528b65[_0x53e26c(0x22a)](_0x5d8a9e,_0x581ad6,_0x57a8b6,_0x5882c0):_0x528b65[_0x53e26c(0x2a5)](_0x5d8a9e,_0x581ad6,_0x57a8b6);};if(this[_0x2dc3dc(0x2e7)][_0x2dc3dc(0x2e5)]({'content':this[_0x2dc3dc(0x2c0)]['t'](_0x2dc3dc(0x255)),'type':m['MessageType'][_0x2dc3dc(0x2ab)]}),_0x27633e)try{_0x1a4853[_0x2dc3dc(0x23a)](S[_0x2dc3dc(0x2c2)])[_0x2dc3dc(0x243)]()[_0x2dc3dc(0x2e8)](()=>{_0x1823fa();});}catch{_0x1823fa();}else _0x1823fa();}[_0x576e68(0x2a6)](_0x250a2e,_0x36faa8){const _0x33fe1e=_0x576e68;let _0x287193=_0x250a2e[_0x33fe1e(0x23a)](i[_0x33fe1e(0x2d7)]);this['_disposableCollection'][_0x33fe1e(0x2d4)](_0x287193[_0x33fe1e(0x261)]['subscribe'](_0x329faf=>{const _0xfabfcf=_0x33fe1e;switch(_0x329faf){case i[_0xfabfcf(0x2bc)][_0xfabfcf(0x2f2)]:this[_0xfabfcf(0x2fd)][_0xfabfcf(0x211)](),this[_0xfabfcf(0x234)]['close']();break;case i[_0xfabfcf(0x2bc)][_0xfabfcf(0x309)]:this[_0xfabfcf(0x2e4)][_0xfabfcf(0x268)](q['id']),this[_0xfabfcf(0x2dc)]();break;case i[_0xfabfcf(0x2bc)][_0xfabfcf(0x2ac)]:this[_0xfabfcf(0x2dc)](),this[_0xfabfcf(0x2e7)][_0xfabfcf(0x2e5)]({'content':this[_0xfabfcf(0x2c0)]['t'](_0xfabfcf(0x2c7)),'type':m[_0xfabfcf(0x230)][_0xfabfcf(0x2ac)],'duration':0xbb8});break;default:break;}})),this[_0x33fe1e(0x260)]['add'](_0x287193[_0x33fe1e(0x24a)][_0x33fe1e(0x300)](async _0x10050d=>{const _0x18bc8e=_0x33fe1e;_0x10050d&&this[_0x18bc8e(0x2e4)][_0x18bc8e(0x268)](n['RevertRevisionMutation']['id'],{'unitId':_0x36faa8,'revision':_0x10050d});}));}[_0x576e68(0x2ad)](_0x3c17b3){const _0x2c5083=_0x576e68;let _0x971277=this[_0x2c5083(0x229)]['getUnit'](_0x3c17b3)[_0x2c5083(0x308)]()['map'](_0xa65e71=>_0xa65e71[_0x2c5083(0x1f7)]()),_0x5ca8bb=new t[(_0x2c5083(0x23b))](_0x3c17b3)['id'],_0x35801d=_0x971277[_0x2c5083(0x25d)](_0xd1a571=>new t[(_0x2c5083(0x23e))](_0x3c17b3,_0xd1a571)['id']),_0x5a81ab=_0x971277[_0x2c5083(0x25d)](_0x5ef2de=>this[_0x2c5083(0x2a2)]['getSubunitRuleList'](_0x3c17b3,_0x5ef2de)[_0x2c5083(0x25d)](_0x7883db=>new t[(_0x2c5083(0x2e6))](_0x3c17b3,_0x5ef2de,_0x7883db[_0x2c5083(0x297)])['id']))[_0x2c5083(0x302)](),_0x4fbacc=new t[(_0x2c5083(0x2fc))](_0x3c17b3)['id'];return this['_permissionService'][_0x2c5083(0x20e)]([_0x5ca8bb,..._0x35801d,..._0x5a81ab,_0x4fbacc])[_0x2c5083(0x236)](_0x5b439c=>!!_0x5b439c[_0x2c5083(0x27d)]);}};function _0x2d5f(){const _0x123c5e=['UniverEditHistoryViewerMobilePlugin','top','getUnitId','UniverSheetsTablePlugin','revertRevision$','IImageIoService','DataLoaderService','takeUntil','darkMode$','UniverDocsUIPlugin','BUTTON','UniverDataValidationPlugin','getUnhiddenWorksheets','_menuManagerService','MobileHistoryLoaderService','editHistory.info.initializing','Inject','UNIVER_SHEET','function','historyAIassistantEnabled','editHistory.panel.reverting','disposeWithMe','historyUniver','map','DisposableCollection','terminate','_disposableCollection','status$','UniverSheetsDrawingUIPlugin','UniverUIPlugin','session','has','reload','workerURL','executeCommand','UNIVER_CONTAINER_ID_KEY','getCurrentUnitOfType','getParam','ComponentManager','__getInjector','UniverRPCMainThreadPlugin','editHistory.panel.title','UniverSheetsShapeUIPlugin','eventID','UniverNetworkPlugin','_pluginMap','UniverSheetsDataValidationUIPlugin','UniverSheetsDrawingPlugin','UniverCollaborationPlugin','IDialogService','asObservable','UNIVER_UNKNOWN','UniverInstanceType','_componentManager','_init','value','UniverRenderEnginePlugin','clear','type','width','univer-history-container','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverSheetsConditionalFormattingPlugin','UniverType','getLocales','fromCollab','CollaborationController','position','constructor','Plugin','UniverSheetsFormulaPlugin','UniverSheetSparklinePlugin','0.18.0','UniverLicensePlugin','HistoryIcon','mutations','iterator','menu','SetWorksheetActivateCommand','CollaborationStatus','DependentOn','permissionId','_revertErrorTimer','toPrimitive','IPermissionService','height','some','getConfig','UniverSheetsHyperLinkUIPlugin','26425816hgxjYb','_setupSubUnitSync','dataset','_selectionProtectionRuleModel','3QCIsnU','values','triggerLoadVersions','_initListener','pipe','createElement','history-container','RevertRevisionMutation','Loading','Error','_checkCanRevert','forEach','mountHistoryContent','getCollabEntity','100%','IAuthzIoService','style','_initPlugins','_historyUniver$','_themeService','UniverSheetsHyperLinkPlugin','IMessageService','UniverSheetsConditionalFormattingUIPlugin','disposeUnit','_initUniver','HistoryModeStatus','pluginName','mergeMenu','Workbook','_localeService','unsubscribe','IRemoteInstanceService','UniverEditHistoryLoaderMobilePlugin','RibbonStartGroup','state$','removeAll','editHistory.panel.listFetchError','onCommandExecuted','351723KIIVul','IURLService','UniverSheetSparklineUIPlugin','urlChange$','data','_permissionService','_historyManagerService','3334440ENjbsw','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverSheetsFormulaUIPlugin','getElementById','add','exhaustSavingTask','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','HistoryManagerService','toStringTag','UniverMobileUIPlugin','loadUnit','UniverSheetsDataValidationMobileUIPlugin','unMountHistoryContent','combineLatest','Module','_urlService','_updateSubUnitFromURLParams','display','setTheme','div','_commandService','show','RangeProtectionPermissionEditPoint','_messageService','then','UniverSheetsChartUIPlugin','packageName','ICommandService','_injector','dispose','edit-history-loader.config','univerContainerId','appendChild','_initContainer','Entered','next','UniverDocsPlugin','3385434fNlVxZ','5647196BZcXHu','defineProperty','_internalWebWorker','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','status','setDarkMode','WorkbookRecoverHistoryPermission','_dialogService','CollaborationEvent','UniverSheetsChartPlugin','subscribe','absolute','flat','merge','set','subunit','LS_CONFIG_KEY','getSheetBySheetId','getSheets','Exited','none','from','RxDisposable','Disposable','UniverSheetsUIPlugin','editHistory.panel.revertFailed','historyPanelHidden','UniverSheetsNumfmtPlugin','UniverSheetsFilterPlugin','OPERATION','_localCacheService','ThemeService','getSheetId','dispose$','symbol','univer.operation.exit-edit-history','invoke','[MobileHistoryLoaderService]:\x20Plugin\x20','getSubunitRuleList','IUniverInstanceService','historyListServerUrl','registerPlugin','UniverSheetsFilterUIPlugin','getAllPlugins','setConfig','840314ZYeTeJ','ISidebarService','ToggleEditHistoryOperation','UniverSheetsPivotTablePlugin','getActiveSheet','UniverFormulaEnginePlugin','_updateURLWithCurrentState','BehaviorSubject','AuthzIoHttpService','register','composePermission','HistoryLoaderService','activeSheet$','closeAll','historyPanelComponentKey','SYNCED','block','object','univer-container','decorate','Univer','length','location','@univerjs-pro/edit-history-loader','_config','prototype','CommandType','UniverEditHistoryViewerPlugin','event$','_collaborationController','zIndex','getOwnPropertyDescriptor','UniverSheetsPlugin','params','univer-history-container-mobile','LocaleService','IMenuManagerService','_univerInstanceService','triggerCustomVersions','getCurrentLocale','UNIVER_CONTAINER_ID','onStarting','Injector','onSteady','MessageType','WorkbookViewHistoryPermission','\x20has\x20been\x20registered.','OTHERS','_sidebarService','setLocale','every','_configService','left','_handleRevertAcknowledgement','get','WorkbookEditablePermission','IConfigService','UniverSheetsDataValidationPlugin','WorksheetEditPermission','version','UniverSheetsShapePlugin','currentTheme$','[HistoryLoaderService]:\x20Plugin\x20','whenReady','9773211MFZWuc','_dataLoaderService'];_0x2d5f=function(){return _0x123c5e;};return _0x2d5f();}G=H([V(0x0,(0x0,e[_0x576e68(0x256)])(e['LocaleService'])),V(0x1,e[_0x576e68(0x1fe)]),V(0x2,e[_0x576e68(0x23c)]),V(0x3,e[_0x576e68(0x2eb)]),V(0x4,M[_0x576e68(0x2b8)]),V(0x5,e[_0x576e68(0x29a)]),V(0x6,(0x0,e[_0x576e68(0x256)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e[_0x576e68(0x256)])(M['IDialogService'])),V(0x8,(0x0,e[_0x576e68(0x256)])(M['ISidebarService'])),V(0x9,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x1f6)]))],G);const K={'id':'univer.operation.toggle-edit-history','type':e[_0x576e68(0x21e)][_0x576e68(0x1f4)],'handler':_0x51db42=>{const _0x53a54e=_0x576e68;let _0x201145=_0x51db42[_0x53a54e(0x23a)](G),{unitId:_0x53c6d6}=(0x0,t['getSheetCommandTarget'])(_0x51db42[_0x53a54e(0x23a)](e[_0x53a54e(0x1fe)]))||{};return _0x53c6d6?(_0x201145[_0x53a54e(0x2af)](_0x53c6d6),!0x0):!0x1;}},q={'id':_0x576e68(0x1fa),'type':e[_0x576e68(0x21e)]['OPERATION'],'handler':()=>!0x0};var ce=_0x576e68(0x21b),le=_0x576e68(0x28e);function ue(_0x57ea37){const _0x3e1b1b=_0x576e68;return{'id':K['id'],'type':M['MenuItemType'][_0x3e1b1b(0x250)],'icon':_0x3e1b1b(0x290),'tooltip':_0x3e1b1b(0x26f),'hidden$':(0x0,M['getMenuHiddenObservable'])(_0x57ea37,e[_0x3e1b1b(0x27a)][_0x3e1b1b(0x257)]),'disabled$':(0x0,j['getCurrentRangeDisable$'])(_0x57ea37,{'workbookTypes':[t[_0x3e1b1b(0x23b)],t[_0x3e1b1b(0x231)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[M[_0x576e68(0x2c4)][_0x576e68(0x233)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e['RxDisposable']{constructor(_0x1451fb,_0x5532fd,_0x6e2e33,_0x3d9ab4,_0x36521c,_0x4df1e3,_0x5ac86f,_0x363573,_0x36a133,_0x4f9ff2,_0x5138e7){const _0x10787c=_0x576e68;super(),this[_0x10787c(0x2e4)]=_0x1451fb,this[_0x10787c(0x253)]=_0x5532fd,this[_0x10787c(0x27b)]=_0x6e2e33,this[_0x10787c(0x2cf)]=_0x3d9ab4,this['_localeService']=_0x36521c,this[_0x10787c(0x2e7)]=_0x4df1e3,this[_0x10787c(0x221)]=_0x5ac86f,this['_localCacheService']=_0x363573,this[_0x10787c(0x245)]=_0x36a133,this[_0x10787c(0x229)]=_0x4f9ff2,this[_0x10787c(0x2df)]=_0x5138e7,B(this,_0x10787c(0x298),null),this['_init']();}[_0x576e68(0x27c)](){const _0x33ae9c=_0x576e68;[K,q][_0x33ae9c(0x2ae)](_0x2b7442=>this['disposeWithMe']((0x0,e['toDisposable'])(this[_0x33ae9c(0x2e4)]['registerCommand'](_0x2b7442)))),this[_0x33ae9c(0x25b)](this[_0x33ae9c(0x27b)][_0x33ae9c(0x20d)]('HistoryIcon',F[_0x33ae9c(0x290)])),this[_0x33ae9c(0x253)][_0x33ae9c(0x2be)](de),this[_0x33ae9c(0x25b)](this[_0x33ae9c(0x2e4)][_0x33ae9c(0x2c8)](async(_0x1457b4,_0x4842d9)=>{const _0x373f41=_0x33ae9c;if(_0x1457b4['id']===n[_0x373f41(0x2aa)]['id']){let {unitId:_0x3a3781}=_0x1457b4[_0x373f41(0x225)];this[_0x373f41(0x2e7)]['show']({'content':this[_0x373f41(0x2c0)]['t'](_0x373f41(0x25a)),'type':m[_0x373f41(0x230)][_0x373f41(0x2ab)],'duration':0x1388});let _0x2b392e=this[_0x373f41(0x221)][_0x373f41(0x2b0)](_0x3a3781);_0x4842d9!=null&&_0x4842d9['fromCollab']?this[_0x373f41(0x239)](_0x2b392e,async()=>(setTimeout(()=>window['location'][_0x373f41(0x266)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x2b392e,async()=>{const _0x299d83=_0x373f41;let _0x5b2026=this[_0x299d83(0x229)]['getCurrentUnitOfType'](I['UniverType'][_0x299d83(0x257)]),_0x447de3=_0x5b2026==null?void 0x0:_0x5b2026['getActiveSheet']();if(!_0x447de3)return!0x1;this['_univerInstanceService'][_0x299d83(0x2ba)](_0x3a3781);let _0x35f7ff=await this[_0x299d83(0x245)][_0x299d83(0x2da)](_0x3a3781,I[_0x299d83(0x285)][_0x299d83(0x257)]);return _0x35f7ff&&_0x35f7ff instanceof e['Workbook']?(await this[_0x299d83(0x2a0)](_0x35f7ff,_0x447de3['getSheetId']()),!0x0):!0x1;});}}));}[_0x576e68(0x239)](_0x4e7d26,_0x14a1cf,_0x44db63=!0x1){const _0x53d320=_0x576e68;let _0x39645d=(0x0,N[_0x53d320(0x2dd)])([_0x4e7d26[_0x53d320(0x264)][_0x53d320(0x220)],_0x4e7d26['state$']])['subscribe'](async([_0xcd478f,_0x1d6f5f])=>{const _0x983de1=_0x53d320;if(_0xcd478f[_0x983de1(0x271)]===n[_0x983de1(0x2fe)]['CHANGESET_ACK']&&(_0x1d6f5f==null?void 0x0:_0x1d6f5f[_0x983de1(0x2fa)])===r[_0x983de1(0x295)]['SYNCED']&&_0xcd478f[_0x983de1(0x2cd)][_0x983de1(0x291)][_0x983de1(0x29c)](_0x33e047=>_0x33e047['id']===n[_0x983de1(0x2aa)]['id'])&&await _0x14a1cf()){var _0x162cd7;this[_0x983de1(0x2cf)][_0x983de1(0x2dc)](),_0x39645d[_0x983de1(0x2c1)](),this[_0x983de1(0x298)]&&clearTimeout(this['_revertErrorTimer']),await((_0x162cd7=this[_0x983de1(0x1f5)])==null?void 0x0:_0x162cd7['exhaustSavingTask']()),this[_0x983de1(0x2e7)][_0x983de1(0x2c6)]();}});_0x44db63&&(this[_0x53d320(0x298)]=setTimeout(()=>{const _0x4cee61=_0x53d320;_0x39645d[_0x4cee61(0x2c1)](),this[_0x4cee61(0x2e7)][_0x4cee61(0x2e5)]({'content':this[_0x4cee61(0x2c0)]['t']('editHistory.panel.revertFailed'),'type':m[_0x4cee61(0x230)][_0x4cee61(0x2ac)],'duration':0xbb8});},0x1388));}async[_0x576e68(0x2a0)](_0x319f0a,_0x3f3c2c){const _0x451796=_0x576e68;await this[_0x451796(0x2e0)](_0x319f0a,_0x3f3c2c),_0x319f0a[_0x451796(0x210)]['pipe']((0x0,N[_0x451796(0x24d)])(this[_0x451796(0x1f8)]))['subscribe'](_0x49578e=>{_0x49578e&&this['_updateURLWithCurrentState'](_0x49578e);}),this[_0x451796(0x2df)][_0x451796(0x2cc)][_0x451796(0x2a7)]((0x0,N['takeUntil'])(this[_0x451796(0x1f8)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x319f0a,_0x3f3c2c));}[_0x576e68(0x20a)](_0x818484,_0x16c092=!0x1){const _0x38c8fb=_0x576e68;let _0x5c39c6=this['_urlService'][_0x38c8fb(0x26b)](_0x38c8fb(0x305));_0x818484[_0x38c8fb(0x1f7)]()!==_0x5c39c6&&this[_0x38c8fb(0x2df)]['setParam'](_0x38c8fb(0x305),_0x818484[_0x38c8fb(0x1f7)](),_0x16c092);}async[_0x576e68(0x2e0)](_0x581e91,_0x1c1cd8){const _0x5827e9=_0x576e68;var _0x349f8e;if(!_0x1c1cd8||!_0x581e91['getSheetBySheetId'](_0x1c1cd8)){let _0x530560=_0x581e91['getUnhiddenWorksheets']()[0x0],_0x4b777e=_0x581e91[_0x5827e9(0x307)](_0x530560);if(!_0x4b777e)return;this['_updateURLWithCurrentState'](_0x4b777e,!0x0),await this[_0x5827e9(0x2e4)]['executeCommand'](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x581e91[_0x5827e9(0x248)](),'subUnitId':_0x530560});return;}((_0x349f8e=_0x581e91[_0x5827e9(0x208)]())==null?void 0x0:_0x349f8e[_0x5827e9(0x1f7)]())!==_0x1c1cd8&&await this[_0x5827e9(0x2e4)][_0x5827e9(0x268)](t[_0x5827e9(0x294)]['id'],{'unitId':_0x581e91[_0x5827e9(0x248)](),'subUnitId':_0x1c1cd8});}};J=H([V(0x0,e['ICommandService']),V(0x1,M[_0x576e68(0x228)]),V(0x2,(0x0,e[_0x576e68(0x256)])(M[_0x576e68(0x26c)])),V(0x3,(0x0,e[_0x576e68(0x256)])(G)),V(0x4,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x227)])),V(0x5,M[_0x576e68(0x2b8)]),V(0x6,(0x0,e[_0x576e68(0x256)])(r[_0x576e68(0x288)])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x576e68(0x256)])(r['DataLoaderService'])),V(0x9,e[_0x576e68(0x1fe)]),V(0xa,P[_0x576e68(0x2ca)])],J);const Y=_0x576e68(0x226);let X=class extends e[_0x576e68(0x1ee)]{constructor(_0x481c7e,_0x1d223e,_0x4705b0,_0x49cfda,_0x6712ee,_0x325691,_0x25c739,_0x4abf4b,_0x27dfe7,_0x502456){const _0x584d3a=_0x576e68;super(),this[_0x584d3a(0x2c0)]=_0x481c7e,this[_0x584d3a(0x229)]=_0x1d223e,this[_0x584d3a(0x237)]=_0x4705b0,this[_0x584d3a(0x2e4)]=_0x49cfda,this['_messageService']=_0x6712ee,this[_0x584d3a(0x2ce)]=_0x325691,this['_selectionProtectionRuleModel']=_0x25c739,this[_0x584d3a(0x2fd)]=_0x4abf4b,this['_sidebarService']=_0x27dfe7,this[_0x584d3a(0x2b6)]=_0x502456,B(this,'_historyUniver$',new N['BehaviorSubject'](null)),B(this,'historyUniver$',this[_0x584d3a(0x2b5)][_0x584d3a(0x278)]()),B(this,_0x584d3a(0x260),new e['DisposableCollection']()),B(this,_0x584d3a(0x273),new Map()),B(this,_0x584d3a(0x2f8),null),this['_init']();}get[_0x576e68(0x25c)](){const _0x236758=_0x576e68;return this['_historyUniver$'][_0x236758(0x27d)];}[_0x576e68(0x27c)](){const _0x853633=_0x576e68;this[_0x853633(0x2f1)](),this[_0x853633(0x2b4)]();}[_0x576e68(0x2f1)](){const _0x132947=_0x576e68;var _0x34a39a;let _0x31fea9=(_0x34a39a=this[_0x132947(0x237)]['getConfig'](_0x132947(0x22c)))==null?_0x132947(0x216):_0x34a39a,_0x26dfca=document[_0x132947(0x2d3)](_0x31fea9);if(!_0x26dfca)return;let _0x1593ab=document['createElement'](_0x132947(0x2e3));_0x1593ab['id']=Y,_0x1593ab[_0x132947(0x2a1)]['uComp']=_0x132947(0x2a9),_0x1593ab['style'][_0x132947(0x289)]=_0x132947(0x301),_0x1593ab[_0x132947(0x2b3)][_0x132947(0x247)]='0',_0x1593ab[_0x132947(0x2b3)][_0x132947(0x238)]='0',_0x1593ab['style'][_0x132947(0x281)]=_0x132947(0x2b1),_0x1593ab[_0x132947(0x2b3)][_0x132947(0x29b)]=_0x132947(0x2b1),_0x1593ab[_0x132947(0x2b3)][_0x132947(0x222)]='49',_0x1593ab['style']['display']=_0x132947(0x1eb),_0x26dfca[_0x132947(0x2f0)](_0x1593ab);}['_initPlugins'](){const _0x18af68=_0x576e68;[[b[_0x18af68(0x27e)]],[M[_0x18af68(0x2d9)],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M['IDialogService'],null]]}],[x[_0x18af68(0x272)]],[_['UniverDrawingPlugin'],{'override':[[_[_0x18af68(0x24b)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g[_0x18af68(0x24f)]],[k[_0x18af68(0x1f2)]],[t[_0x18af68(0x224)],{'notExecuteFormula':!0x0}],[j['UniverSheetsMobileUIPlugin']],[re[_0x18af68(0x28c)]],[ie[_0x18af68(0x2d2)]],[n[_0x18af68(0x276)]],[te['UniverSheetsFilterPlugin']],[C[_0x18af68(0x284)]],[ae[_0x18af68(0x2b7)]],[O[_0x18af68(0x29e)]],[p['UniverDataValidationPlugin']],[w[_0x18af68(0x23d)]],[T[_0x18af68(0x2db)]],[y[_0x18af68(0x209)],{'notExecuteFormula':!0x0}],[v['UniverDrawingUIPlugin']],[E[_0x18af68(0x275)]],[D['UniverSheetsDrawingUIPlugin']],[d[_0x18af68(0x28d)]],[f[_0x18af68(0x2cb)]],[o[_0x18af68(0x2ff)]],[s[_0x18af68(0x2e9)]],[l[_0x18af68(0x240)]],[u[_0x18af68(0x270)]],[c['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[A['UniverSheetsTablePlugin']]][_0x18af68(0x2ae)](([_0x152cf7,_0x4981f4])=>this['registerPlugin'](_0x152cf7,_0x4981f4));}[_0x576e68(0x2ed)](){const _0x3016e4=_0x576e68;super[_0x3016e4(0x2ed)](),this['unMountHistoryContent'](),this[_0x3016e4(0x273)][_0x3016e4(0x27f)]();}['registerPlugin'](_0x981d3a,_0x30e5ff,_0x277caf){const _0x1a86f9=_0x576e68;if(this[_0x1a86f9(0x273)][_0x1a86f9(0x265)](_0x981d3a[_0x1a86f9(0x2bd)])&&!_0x277caf)throw Error(_0x1a86f9(0x1fc)+_0x981d3a[_0x1a86f9(0x2bd)]+_0x1a86f9(0x232));this[_0x1a86f9(0x273)][_0x1a86f9(0x304)](_0x981d3a['pluginName'],[_0x981d3a,_0x30e5ff]);}[_0x576e68(0x202)](){const _0x53f160=_0x576e68;return Array[_0x53f160(0x1ec)](this[_0x53f160(0x273)][_0x53f160(0x2a4)]());}[_0x576e68(0x2af)](_0x1818a1,_0x5a4e8d){const _0x4e7845=_0x576e68;let _0x5b7daa=document[_0x4e7845(0x2d3)](Y);_0x5b7daa&&(_0x5b7daa[_0x4e7845(0x2b3)][_0x4e7845(0x2e1)]=_0x4e7845(0x214),this[_0x4e7845(0x2bb)](_0x1818a1,Y,_0x5a4e8d));}[_0x576e68(0x2dc)](){const _0x54664b=_0x576e68;var _0x1685c1;this[_0x54664b(0x260)]['dispose'](),(_0x1685c1=this[_0x54664b(0x25c)])==null||_0x1685c1['dispose'](),this[_0x54664b(0x2b5)][_0x54664b(0x2f3)](null);let _0x577ccf=document[_0x54664b(0x2d3)](Y);_0x577ccf&&(_0x577ccf[_0x54664b(0x2b3)]['display']=_0x54664b(0x1eb),this[_0x54664b(0x2f8)]&&(this[_0x54664b(0x2f8)][_0x54664b(0x25f)](),this[_0x54664b(0x2f8)]=null));}['_initUniver'](_0x39d68c,_0x4b45c7,_0x1d3903){const _0x5d7628=_0x576e68;var _0x21f4ed,_0x243861,_0xe9a655,_0x17141c;if(this['historyUniver'])return;let _0x11c97a=new e[(_0x5d7628(0x218))]({'locales':{[this['_localeService'][_0x5d7628(0x22b)]()]:this['_localeService']['getLocales']()},'override':[[e[_0x5d7628(0x2b2)],{'useClass':r[_0x5d7628(0x20c)]}]]}),_0x1c8371=_0x11c97a[_0x5d7628(0x26d)]();this[_0x5d7628(0x25b)](this['_themeService'][_0x5d7628(0x24e)][_0x5d7628(0x300)](_0x5e939c=>{const _0x17ca29=_0x5d7628;_0x1c8371['get'](e['ThemeService'])[_0x17ca29(0x2fb)](_0x5e939c);})),this['disposeWithMe'](this[_0x5d7628(0x2b6)][_0x5d7628(0x241)][_0x5d7628(0x300)](_0x41a771=>{const _0x2599cf=_0x5d7628;_0x1c8371[_0x2599cf(0x23a)](e[_0x2599cf(0x1f6)])[_0x2599cf(0x2e2)](_0x41a771);})),_0x1c8371[_0x5d7628(0x23a)](e[_0x5d7628(0x227)])[_0x5d7628(0x235)](this[_0x5d7628(0x2c0)][_0x5d7628(0x22b)]()),_0x1c8371['get'](e[_0x5d7628(0x23c)])[_0x5d7628(0x203)](r[_0x5d7628(0x2d6)],this[_0x5d7628(0x237)][_0x5d7628(0x29d)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0xf2a12b=this['_configService'][_0x5d7628(0x29d)](a[_0x5d7628(0x306)]);_0xf2a12b&&_0x11c97a[_0x5d7628(0x200)](a[_0x5d7628(0x28f)],{'license':_0xf2a12b['ls']});let _0x392fff=(_0x21f4ed=this[_0x5d7628(0x237)]['getConfig'](_0x5d7628(0x2ee)))==null?void 0x0:_0x21f4ed[_0x5d7628(0x267)],_0x32c046=!!_0x392fff;_0x32c046&&(this[_0x5d7628(0x2f8)]=_0x392fff instanceof Worker?_0x392fff:null,_0x11c97a['registerPlugin'](S['UniverRPCMainThreadPlugin'],{'workerURL':_0x392fff})),this['_pluginMap'][_0x5d7628(0x2ae)](([_0x16c91f,_0x3c0372])=>{const _0x1050f7=_0x5d7628;_0x11c97a[_0x1050f7(0x200)](_0x16c91f,_0x3c0372);}),_0x11c97a[_0x5d7628(0x200)](i[_0x5d7628(0x246)],{'historyListServerUrl':(_0x243861=this[_0x5d7628(0x237)][_0x5d7628(0x29d)](_0x5d7628(0x2ee)))==null?void 0x0:_0x243861[_0x5d7628(0x1ff)],'historyPanelComponentKey':(_0xe9a655=this[_0x5d7628(0x237)][_0x5d7628(0x29d)]('edit-history-loader.config'))==null?void 0x0:_0xe9a655[_0x5d7628(0x212)],'historyPanelHidden':(_0x17141c=this[_0x5d7628(0x237)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x17141c[_0x5d7628(0x1f1)]}),_0x1c8371[_0x5d7628(0x1fb)](_0x469711=>{const _0x2aa787=_0x5d7628;this[_0x2aa787(0x2a6)](_0x469711,_0x39d68c);}),this['_historyUniver$'][_0x5d7628(0x2f3)](_0x11c97a);let _0x5eb235=_0x1c8371[_0x5d7628(0x23a)](i[_0x5d7628(0x2d7)]),_0x2bc3bb=this['_checkCanRevert'](_0x39d68c),_0x4394da=()=>{const _0x23afb2=_0x5d7628;_0x1d3903?_0x5eb235[_0x23afb2(0x22a)](_0x39d68c,_0x4b45c7,_0x2bc3bb,_0x1d3903):_0x5eb235['triggerLoadVersions'](_0x39d68c,_0x4b45c7,_0x2bc3bb);};if(this['_messageService'][_0x5d7628(0x2e5)]({'content':this[_0x5d7628(0x2c0)]['t']('editHistory.info.initializing'),'type':m['MessageType']['Loading']}),_0x32c046)try{_0x1c8371['get'](S[_0x5d7628(0x2c2)])[_0x5d7628(0x243)]()['then'](()=>{_0x4394da();});}catch{_0x4394da();}else _0x4394da();}['_initListener'](_0x14daf2,_0x11b02e){const _0x317bfa=_0x576e68;let _0x54c9c4=_0x14daf2['get'](i[_0x317bfa(0x2d7)]);this[_0x317bfa(0x260)][_0x317bfa(0x2d4)](_0x54c9c4[_0x317bfa(0x261)][_0x317bfa(0x300)](_0x39fa87=>{const _0x53cd19=_0x317bfa;switch(_0x39fa87){case i[_0x53cd19(0x2bc)][_0x53cd19(0x2f2)]:this[_0x53cd19(0x2fd)][_0x53cd19(0x211)](),this[_0x53cd19(0x234)]['close']();break;case i[_0x53cd19(0x2bc)]['Exited']:this[_0x53cd19(0x2e4)][_0x53cd19(0x268)](q['id']),this[_0x53cd19(0x2dc)]();break;case i[_0x53cd19(0x2bc)][_0x53cd19(0x2ac)]:this['unMountHistoryContent'](),this[_0x53cd19(0x2e7)][_0x53cd19(0x2e5)]({'content':this[_0x53cd19(0x2c0)]['t'](_0x53cd19(0x2c7)),'type':m[_0x53cd19(0x230)]['Error'],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x54c9c4['revertRevision$'][_0x317bfa(0x300)](async _0x39baaa=>{const _0x1aa595=_0x317bfa;_0x39baaa&&this[_0x1aa595(0x2e4)][_0x1aa595(0x268)](n[_0x1aa595(0x2aa)]['id'],{'unitId':_0x11b02e,'revision':_0x39baaa});}));}[_0x576e68(0x2ad)](_0x18353f){const _0x5cfc82=_0x576e68;let _0x230e2a=this[_0x5cfc82(0x229)]['getUnit'](_0x18353f)['getSheets']()[_0x5cfc82(0x25d)](_0xde6d7f=>_0xde6d7f[_0x5cfc82(0x1f7)]()),_0x25d295=new t[(_0x5cfc82(0x23b))](_0x18353f)['id'],_0x350a09=_0x230e2a['map'](_0x598c9d=>new t[(_0x5cfc82(0x23e))](_0x18353f,_0x598c9d)['id']),_0x366bd4=_0x230e2a[_0x5cfc82(0x25d)](_0x5b7cb0=>this['_selectionProtectionRuleModel'][_0x5cfc82(0x1fd)](_0x18353f,_0x5b7cb0)[_0x5cfc82(0x25d)](_0x48d870=>new t['RangeProtectionPermissionEditPoint'](_0x18353f,_0x5b7cb0,_0x48d870['permissionId'])['id']))[_0x5cfc82(0x302)](),_0x368afb=new t[(_0x5cfc82(0x2fc))](_0x18353f)['id'];return this['_permissionService'][_0x5cfc82(0x20e)]([_0x25d295,..._0x350a09,..._0x366bd4,_0x368afb])[_0x5cfc82(0x236)](_0x1f1568=>!!_0x1f1568['value']);}};X=H([V(0x0,(0x0,e['Inject'])(e[_0x576e68(0x227)])),V(0x1,e[_0x576e68(0x1fe)]),V(0x2,e['IConfigService']),V(0x3,e[_0x576e68(0x2eb)]),V(0x4,M[_0x576e68(0x2b8)]),V(0x5,e[_0x576e68(0x29a)]),V(0x6,(0x0,e[_0x576e68(0x256)])(t['RangeProtectionRuleModel'])),V(0x7,(0x0,e['Inject'])(M['IDialogService'])),V(0x8,(0x0,e['Inject'])(M[_0x576e68(0x205)])),V(0x9,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x1f6)]))],X);let Z=class extends e[_0x576e68(0x28b)]{constructor(_0x5c83fb=R,_0x496ee5,_0x2496bd){const _0x4131b9=_0x576e68;super(),this[_0x4131b9(0x21c)]=_0x5c83fb,this['_injector']=_0x496ee5,this[_0x4131b9(0x237)]=_0x2496bd;let {menu:_0x53fcc9,..._0x9a4164}=(0x0,e[_0x4131b9(0x303)])({},R,this[_0x4131b9(0x21c)]);_0x53fcc9&&this['_configService']['setConfig'](_0x4131b9(0x293),_0x53fcc9,{'merge':!0x0}),this[_0x4131b9(0x237)][_0x4131b9(0x203)](L,_0x9a4164),this[_0x4131b9(0x21c)][_0x4131b9(0x2ef)]&&this['_configService'][_0x4131b9(0x203)](_0x4131b9(0x22c),this[_0x4131b9(0x21c)]['univerContainerId']);}[_0x576e68(0x22d)](){const _0x4d7dc2=_0x576e68;[[G,{'useClass':X}],[J]][_0x4d7dc2(0x2ae)](_0x4cd002=>this[_0x4d7dc2(0x2ec)]['add'](_0x4cd002));}[_0x576e68(0x22f)](){const _0x391eef=_0x576e68;this[_0x391eef(0x2ec)][_0x391eef(0x23a)](J);}};B(Z,_0x576e68(0x280),e['UniverInstanceType'][_0x576e68(0x279)]),B(Z,_0x576e68(0x2bd),_0x576e68(0x283)),B(Z,_0x576e68(0x2ea),ce),B(Z,_0x576e68(0x23f),le),Z=H([(0x0,e['DependentOn'])(a[_0x576e68(0x28f)]),V(0x1,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x22e)])),V(0x2,e[_0x576e68(0x23c)])],Z);let Q=class extends e[_0x576e68(0x1ed)]{constructor(_0xdd4f37,_0x17a6d3,_0x1fcd7f,_0x2d3b1b,_0x4471c4,_0x2da489,_0x145e87,_0x555904,_0x1f73dd,_0x5492f4,_0x5763dc){const _0x48ad2f=_0x576e68;super(),this[_0x48ad2f(0x2e4)]=_0xdd4f37,this[_0x48ad2f(0x253)]=_0x17a6d3,this[_0x48ad2f(0x27b)]=_0x1fcd7f,this[_0x48ad2f(0x2cf)]=_0x2d3b1b,this['_localeService']=_0x4471c4,this['_messageService']=_0x2da489,this[_0x48ad2f(0x221)]=_0x145e87,this[_0x48ad2f(0x1f5)]=_0x555904,this[_0x48ad2f(0x245)]=_0x1f73dd,this[_0x48ad2f(0x229)]=_0x5492f4,this[_0x48ad2f(0x2df)]=_0x5763dc,B(this,'_revertErrorTimer',null),this['_init']();}[_0x576e68(0x27c)](){const _0x137009=_0x576e68;[K,q][_0x137009(0x2ae)](_0x311eb5=>this[_0x137009(0x25b)]((0x0,e['toDisposable'])(this[_0x137009(0x2e4)]['registerCommand'](_0x311eb5)))),this[_0x137009(0x25b)](this[_0x137009(0x27b)]['register'](_0x137009(0x290),F[_0x137009(0x290)])),this[_0x137009(0x253)][_0x137009(0x2be)](de),this[_0x137009(0x25b)](this['_commandService']['onCommandExecuted'](async(_0x2161ca,_0x10f803)=>{const _0x3cc53a=_0x137009;if(_0x2161ca['id']===n[_0x3cc53a(0x2aa)]['id']){let {unitId:_0x26e31e}=_0x2161ca[_0x3cc53a(0x225)];this[_0x3cc53a(0x2e7)][_0x3cc53a(0x2e5)]({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':m[_0x3cc53a(0x230)][_0x3cc53a(0x2ab)],'duration':0x1388});let _0x110a65=this[_0x3cc53a(0x221)]['getCollabEntity'](_0x26e31e);_0x10f803!=null&&_0x10f803[_0x3cc53a(0x287)]?this['_handleRevertAcknowledgement'](_0x110a65,async()=>(setTimeout(()=>window[_0x3cc53a(0x21a)]['reload']()),!0x0),!0x0):this[_0x3cc53a(0x239)](_0x110a65,async()=>{const _0x156681=_0x3cc53a;let _0x5ccfb3=this['_univerInstanceService'][_0x156681(0x26a)](I[_0x156681(0x285)][_0x156681(0x257)]),_0x2099ff=_0x5ccfb3==null?void 0x0:_0x5ccfb3['getActiveSheet']();if(!_0x2099ff)return!0x1;this[_0x156681(0x229)]['disposeUnit'](_0x26e31e);let _0x3b0bc8=await this[_0x156681(0x245)][_0x156681(0x2da)](_0x26e31e,I[_0x156681(0x285)][_0x156681(0x257)]);return _0x3b0bc8&&_0x3b0bc8 instanceof e[_0x156681(0x2bf)]?(await this[_0x156681(0x2a0)](_0x3b0bc8,_0x2099ff[_0x156681(0x1f7)]()),!0x0):!0x1;});}}));}[_0x576e68(0x239)](_0x47afb4,_0x5b3954,_0x4f20af=!0x1){const _0x457d77=_0x576e68;let _0x437d76=(0x0,N[_0x457d77(0x2dd)])([_0x47afb4[_0x457d77(0x264)]['event$'],_0x47afb4[_0x457d77(0x2c5)]])['subscribe'](async([_0x4d1c0c,_0xb573c6])=>{const _0x176139=_0x457d77;if(_0x4d1c0c[_0x176139(0x271)]===n['CollaborationEvent']['CHANGESET_ACK']&&(_0xb573c6==null?void 0x0:_0xb573c6[_0x176139(0x2fa)])===r[_0x176139(0x295)][_0x176139(0x213)]&&_0x4d1c0c[_0x176139(0x2cd)]['mutations'][_0x176139(0x29c)](_0x3329fb=>_0x3329fb['id']===n[_0x176139(0x2aa)]['id'])&&await _0x5b3954()){var _0x401a76;this[_0x176139(0x2cf)][_0x176139(0x2dc)](),_0x437d76['unsubscribe'](),this[_0x176139(0x298)]&&clearTimeout(this['_revertErrorTimer']),await((_0x401a76=this[_0x176139(0x1f5)])==null?void 0x0:_0x401a76[_0x176139(0x2d5)]());}});_0x4f20af&&(this[_0x457d77(0x298)]=setTimeout(()=>{const _0x48a271=_0x457d77;_0x437d76[_0x48a271(0x2c1)](),this[_0x48a271(0x2e7)][_0x48a271(0x2e5)]({'content':this['_localeService']['t'](_0x48a271(0x1f0)),'type':m['MessageType'][_0x48a271(0x2ac)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x5560f5,_0x5bd579){const _0x22c764=_0x576e68;await this[_0x22c764(0x2e0)](_0x5560f5,_0x5bd579),_0x5560f5[_0x22c764(0x210)][_0x22c764(0x2a7)]((0x0,N[_0x22c764(0x24d)])(this[_0x22c764(0x1f8)]))[_0x22c764(0x300)](_0x973d78=>{const _0x16fcb1=_0x22c764;_0x973d78&&this[_0x16fcb1(0x20a)](_0x973d78);}),this[_0x22c764(0x2df)][_0x22c764(0x2cc)][_0x22c764(0x2a7)]((0x0,N[_0x22c764(0x24d)])(this[_0x22c764(0x1f8)]))[_0x22c764(0x300)](()=>this[_0x22c764(0x2e0)](_0x5560f5,_0x5bd579));}[_0x576e68(0x20a)](_0x41c883,_0x1989b7=!0x1){const _0x1700b8=_0x576e68;let _0x1b8c06=this[_0x1700b8(0x2df)][_0x1700b8(0x26b)](_0x1700b8(0x305));_0x41c883[_0x1700b8(0x1f7)]()!==_0x1b8c06&&this[_0x1700b8(0x2df)]['setParam'](_0x1700b8(0x305),_0x41c883[_0x1700b8(0x1f7)](),_0x1989b7);}async[_0x576e68(0x2e0)](_0x439eff,_0x45a808){const _0x40ca00=_0x576e68;var _0xba233a;if(!_0x45a808||!_0x439eff[_0x40ca00(0x307)](_0x45a808)){let _0x53df21=_0x439eff[_0x40ca00(0x252)]()[0x0],_0x30c035=_0x439eff[_0x40ca00(0x307)](_0x53df21);if(!_0x30c035)return;this[_0x40ca00(0x20a)](_0x30c035,!0x0),await this[_0x40ca00(0x2e4)]['executeCommand'](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x439eff[_0x40ca00(0x248)](),'subUnitId':_0x53df21});return;}((_0xba233a=_0x439eff[_0x40ca00(0x208)]())==null?void 0x0:_0xba233a[_0x40ca00(0x1f7)]())!==_0x45a808&&await this[_0x40ca00(0x2e4)][_0x40ca00(0x268)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x439eff[_0x40ca00(0x248)](),'subUnitId':_0x45a808});}};Q=H([V(0x0,e[_0x576e68(0x2eb)]),V(0x1,M[_0x576e68(0x228)]),V(0x2,(0x0,e['Inject'])(M[_0x576e68(0x26c)])),V(0x3,(0x0,e[_0x576e68(0x256)])(G)),V(0x4,(0x0,e[_0x576e68(0x256)])(e[_0x576e68(0x227)])),V(0x5,M[_0x576e68(0x2b8)]),V(0x6,(0x0,e[_0x576e68(0x256)])(r[_0x576e68(0x288)])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e[_0x576e68(0x256)])(r[_0x576e68(0x24c)])),V(0x9,e[_0x576e68(0x1fe)]),V(0xa,P[_0x576e68(0x2ca)])],Q);let $=class extends e['Plugin']{constructor(_0xb8224a=R,_0x5042af,_0x11c415){const _0x108a42=_0x576e68;super(),this[_0x108a42(0x21c)]=_0xb8224a,this['_injector']=_0x5042af,this[_0x108a42(0x237)]=_0x11c415;let {menu:_0x568f7d,..._0x4a5af0}=(0x0,e[_0x108a42(0x303)])({},R,this[_0x108a42(0x21c)]);_0x568f7d&&this[_0x108a42(0x237)][_0x108a42(0x203)](_0x108a42(0x293),_0x568f7d,{'merge':!0x0}),this[_0x108a42(0x237)][_0x108a42(0x203)](L,_0x4a5af0),this[_0x108a42(0x21c)][_0x108a42(0x2ef)]&&this[_0x108a42(0x237)]['setConfig'](U,this[_0x108a42(0x21c)][_0x108a42(0x2ef)]);}[_0x576e68(0x22d)](){const _0x5e22f1=_0x576e68;[[G],[Q]][_0x5e22f1(0x2ae)](_0x14f8d6=>this['_injector'][_0x5e22f1(0x2d4)](_0x14f8d6));}[_0x576e68(0x22f)](){const _0x438622=_0x576e68;this[_0x438622(0x2ec)][_0x438622(0x23a)](Q);}};B($,_0x576e68(0x280),e[_0x576e68(0x27a)][_0x576e68(0x279)]),B($,_0x576e68(0x2bd),_0x576e68(0x2f9)),B($,_0x576e68(0x2ea),ce),B($,'version',le),$=H([(0x0,e[_0x576e68(0x296)])(a[_0x576e68(0x28f)]),V(0x1,(0x0,e[_0x576e68(0x256)])(e['Injector'])),V(0x2,e['IConfigService'])],$),exports[_0x576e68(0x2d1)]=L,Object[_0x576e68(0x2f7)](exports,_0x576e68(0x20f),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x576e68(0x254),{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x576e68(0x206)]=K,exports[_0x576e68(0x269)]=U,exports['UNIVER_HISTORY_CONTAINER_ID']=W,Object[_0x576e68(0x2f7)](exports,_0x576e68(0x2c3),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x576e68(0x2f7)](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x342b1b=_0x106c;(function(_0x3fb8c2,_0x4c3ea4){const _0x4a0d43=_0x106c,_0x4de6ee=_0x3fb8c2();while(!![]){try{const _0x26567a=-parseInt(_0x4a0d43(0x190))/0x1*(parseInt(_0x4a0d43(0x175))/0x2)+parseInt(_0x4a0d43(0xdf))/0x3+parseInt(_0x4a0d43(0x145))/0x4*(-parseInt(_0x4a0d43(0xfc))/0x5)+-parseInt(_0x4a0d43(0x1ac))/0x6+-parseInt(_0x4a0d43(0x166))/0x7*(parseInt(_0x4a0d43(0x186))/0x8)+-parseInt(_0x4a0d43(0x19a))/0x9*(-parseInt(_0x4a0d43(0xe3))/0xa)+-parseInt(_0x4a0d43(0x104))/0xb*(-parseInt(_0x4a0d43(0x146))/0xc);if(_0x26567a===_0x4c3ea4)break;else _0x4de6ee['push'](_0x4de6ee['shift']());}catch(_0x213046){_0x4de6ee['push'](_0x4de6ee['shift']());}}}(_0x2ccf,0xf028f),Object[_0x342b1b(0x15a)](exports,Symbol[_0x342b1b(0x125)],{'value':_0x342b1b(0x11e)}));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(_0x4e9963){'@babel/helpers - typeof';const _0xebecf8=_0x342b1b;return z=typeof Symbol==_0xebecf8(0x12e)&&typeof Symbol[_0xebecf8(0x15b)]=='symbol'?function(_0x936aba){return typeof _0x936aba;}:function(_0x49d995){const _0x21b95f=_0xebecf8;return _0x49d995&&typeof Symbol=='function'&&_0x49d995[_0x21b95f(0x113)]===Symbol&&_0x49d995!==Symbol[_0x21b95f(0x103)]?_0x21b95f(0x13a):typeof _0x49d995;},z(_0x4e9963);}function oe(_0x1c19c7,_0xc2844d){const _0x5b97a9=_0x342b1b;if(z(_0x1c19c7)!=_0x5b97a9(0x105)||!_0x1c19c7)return _0x1c19c7;var _0x2397ff=_0x1c19c7[Symbol[_0x5b97a9(0xfe)]];if(_0x2397ff!==void 0x0){var _0x130d78=_0x2397ff[_0x5b97a9(0x152)](_0x1c19c7,_0xc2844d||_0x5b97a9(0x1a3));if(z(_0x130d78)!=_0x5b97a9(0x105))return _0x130d78;throw TypeError(_0x5b97a9(0xc6));}return(_0xc2844d===_0x5b97a9(0x109)?String:Number)(_0x1c19c7);}function se(_0x4a42f1){const _0xaeb563=_0x342b1b;var _0x40568d=oe(_0x4a42f1,_0xaeb563(0x109));return z(_0x40568d)=='symbol'?_0x40568d:_0x40568d+'';}function B(_0x237a86,_0x139228,_0x4ade64){const _0x197162=_0x342b1b;return(_0x139228=se(_0x139228))in _0x237a86?Object[_0x197162(0x15a)](_0x237a86,_0x139228,{'value':_0x4ade64,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x237a86[_0x139228]=_0x4ade64,_0x237a86;}function V(_0x4ec9dc,_0x32dedc){return function(_0x4d46c1,_0x3c1b92){_0x32dedc(_0x4d46c1,_0x3c1b92,_0x4ec9dc);};}function H(_0x3e488d,_0x359e16,_0x194a05,_0x1a8223){const _0x3c6801=_0x342b1b;var _0x489029=arguments['length'],_0x26b439=_0x489029<0x3?_0x359e16:_0x1a8223===null?_0x1a8223=Object[_0x3c6801(0x16c)](_0x359e16,_0x194a05):_0x1a8223,_0x291687;if(typeof Reflect=='object'&&typeof Reflect[_0x3c6801(0x1ae)]=='function')_0x26b439=Reflect[_0x3c6801(0x1ae)](_0x3e488d,_0x359e16,_0x194a05,_0x1a8223);else{for(var _0x2106a3=_0x3e488d[_0x3c6801(0x18d)]-0x1;_0x2106a3>=0x0;_0x2106a3--)(_0x291687=_0x3e488d[_0x2106a3])&&(_0x26b439=(_0x489029<0x3?_0x291687(_0x26b439):_0x489029>0x3?_0x291687(_0x359e16,_0x194a05,_0x26b439):_0x291687(_0x359e16,_0x194a05))||_0x26b439);}return _0x489029>0x3&&_0x26b439&&Object['defineProperty'](_0x359e16,_0x194a05,_0x26b439),_0x26b439;}const U=_0x342b1b(0x198),W='univer-history-container';let G=class extends e[_0x342b1b(0xe6)]{constructor(_0x2d9b7d,_0x26b350,_0x131aef,_0x1a085a,_0xd81df6,_0x56f641,_0x1422af,_0x55bd75,_0x2e25cb,_0x4ff11b){const _0x133c61=_0x342b1b;super(),this[_0x133c61(0x16f)]=_0x2d9b7d,this[_0x133c61(0xb9)]=_0x26b350,this['_configService']=_0x131aef,this[_0x133c61(0x1bd)]=_0x1a085a,this[_0x133c61(0xb3)]=_0xd81df6,this[_0x133c61(0x188)]=_0x56f641,this[_0x133c61(0xab)]=_0x1422af,this[_0x133c61(0x153)]=_0x55bd75,this[_0x133c61(0xc9)]=_0x2e25cb,this['_themeService']=_0x4ff11b,B(this,_0x133c61(0x181),new N[(_0x133c61(0x167))](null)),B(this,_0x133c61(0x18b),this[_0x133c61(0x181)][_0x133c61(0xb1)]()),B(this,_0x133c61(0x199),new e[(_0x133c61(0x11c))]()),B(this,'_pluginMap',new Map()),B(this,_0x133c61(0x155),null),this['_init']();}get['historyUniver'](){const _0x7def59=_0x342b1b;return this[_0x7def59(0x181)][_0x7def59(0xb8)];}['_init'](){const _0x374392=_0x342b1b;this[_0x374392(0xdb)](),this[_0x374392(0x12c)]();}[_0x342b1b(0xdb)](){const _0x212256=_0x342b1b;var _0x1e5252;let _0x144e49=(_0x1e5252=this[_0x212256(0x13c)][_0x212256(0xf5)](_0x212256(0x198)))==null?'univer-container':_0x1e5252,_0xe55506=document['getElementById'](_0x144e49);if(!_0xe55506)return;let _0x14a2d1=document[_0x212256(0x16d)]('div');_0x14a2d1['id']=W,_0x14a2d1[_0x212256(0xb2)][_0x212256(0xd0)]=_0x212256(0xce),_0x14a2d1[_0x212256(0xa6)][_0x212256(0x108)]='absolute',_0x14a2d1[_0x212256(0xa6)]['top']='0',_0x14a2d1[_0x212256(0xa6)][_0x212256(0x1b8)]='0',_0x14a2d1['style'][_0x212256(0x139)]=_0x212256(0xfd),_0x14a2d1['style'][_0x212256(0xae)]=_0x212256(0xfd),_0x14a2d1['style']['zIndex']='49',_0x14a2d1[_0x212256(0xa6)]['display']='none',_0xe55506[_0x212256(0x168)](_0x14a2d1);}[_0x342b1b(0x12c)](){const _0x137d07=_0x342b1b;[[b['UniverRenderEnginePlugin']],[M[_0x137d07(0xde)],{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x137d07(0x122)],null]]}],[x[_0x137d07(0xf7)]],[_[_0x137d07(0x17e)],{'override':[[_[_0x137d07(0x136)],null]]}],[h['UniverDocsPlugin'],{'hasScroll':!0x1}],[g['UniverDocsUIPlugin']],[k[_0x137d07(0xaf)]],[t[_0x137d07(0xd8)],{'notExecuteFormula':!0x0}],[j[_0x137d07(0xcc)]],[re[_0x137d07(0x140)]],[ie['UniverSheetsFormulaUIPlugin']],[n[_0x137d07(0xe9)]],[te[_0x137d07(0x170)]],[ne[_0x137d07(0x123)]],[C[_0x137d07(0x12a)]],[ee[_0x137d07(0xe5)]],[ae[_0x137d07(0x17f)]],[O[_0x137d07(0x193)]],[p[_0x137d07(0xe7)]],[w[_0x137d07(0xbc)]],[T[_0x137d07(0x158)]],[y[_0x137d07(0x121)],{'notExecuteFormula':!0x0}],[v[_0x137d07(0x1a1)]],[E[_0x137d07(0x10d)]],[D[_0x137d07(0x14c)]],[d[_0x137d07(0x106)]],[f[_0x137d07(0xd1)]],[o['UniverSheetsChartPlugin']],[s[_0x137d07(0x194)]],[l[_0x137d07(0x19e)]],[u[_0x137d07(0x18f)]],[c[_0x137d07(0x11b)],{'notExecuteFormula':!0x0}],[A[_0x137d07(0xd6)]]]['forEach'](([_0x410fca,_0x5ad0bc])=>this['registerPlugin'](_0x410fca,_0x5ad0bc));}[_0x342b1b(0xcb)](){const _0x51dd62=_0x342b1b;super['dispose'](),this[_0x51dd62(0x14e)](),this['_pluginMap']['clear']();}[_0x342b1b(0x185)](_0x599a52,_0x13ebe2,_0x3bd80d){const _0x495e10=_0x342b1b;if(this[_0x495e10(0x114)][_0x495e10(0x157)](_0x599a52[_0x495e10(0xa3)])&&!_0x3bd80d)throw Error(_0x495e10(0x154)+_0x599a52[_0x495e10(0xa3)]+_0x495e10(0x10e));this[_0x495e10(0x114)]['set'](_0x599a52[_0x495e10(0xa3)],[_0x599a52,_0x13ebe2]);}[_0x342b1b(0xbe)](){const _0x2696f6=_0x342b1b;return Array['from'](this[_0x2696f6(0x114)][_0x2696f6(0x10a)]());}[_0x342b1b(0x182)](_0x29114f,_0x3a6145){const _0x29634b=_0x342b1b;let _0x5b77d6=document[_0x29634b(0x1b0)](W);_0x5b77d6&&(_0x5b77d6[_0x29634b(0xa6)][_0x29634b(0xc7)]=_0x29634b(0x187),this[_0x29634b(0x191)](_0x29114f,W,_0x3a6145));}['unMountHistoryContent'](){const _0x3207ea=_0x342b1b;var _0x4fbc6d;this[_0x3207ea(0x199)][_0x3207ea(0xcb)](),(_0x4fbc6d=this['historyUniver'])==null||_0x4fbc6d[_0x3207ea(0xcb)](),this['_historyUniver$'][_0x3207ea(0x1a6)](null);let _0x5306aa=document[_0x3207ea(0x1b0)](W);_0x5306aa&&(_0x5306aa[_0x3207ea(0xa6)]['display']=_0x3207ea(0x156),this[_0x3207ea(0x155)]&&(this[_0x3207ea(0x155)][_0x3207ea(0x18a)](),this[_0x3207ea(0x155)]=null));}[_0x342b1b(0x191)](_0x158b8f,_0x4a7e3c,_0x3085bb){const _0x872616=_0x342b1b;var _0x207747,_0x40f2de,_0x13de9f,_0x5f444e,_0x1271f0;if(this[_0x872616(0xf9)])return;let _0x57f62e=new e[(_0x872616(0xc0))]({'locales':{[this[_0x872616(0x16f)][_0x872616(0xf6)]()]:this['_localeService'][_0x872616(0x115)]()},'override':[[e[_0x872616(0xa5)],{'useClass':r['AuthzIoHttpService']}]]}),_0x56515f=_0x57f62e[_0x872616(0xe0)]();this['disposeWithMe'](this[_0x872616(0x128)][_0x872616(0x196)]['subscribe'](_0x4b5e15=>{const _0x4df953=_0x872616;_0x56515f['get'](e['ThemeService'])[_0x4df953(0x124)](_0x4b5e15);})),this[_0x872616(0xca)](this[_0x872616(0x128)]['currentTheme$'][_0x872616(0x142)](_0x4b5c20=>{const _0x24a568=_0x872616;_0x56515f[_0x24a568(0xbd)](e[_0x24a568(0x165)])['setTheme'](_0x4b5c20);})),_0x56515f['get'](e[_0x872616(0x135)])[_0x872616(0x10b)](this[_0x872616(0x16f)]['getCurrentLocale']()),_0x56515f[_0x872616(0xbd)](e[_0x872616(0x14b)])[_0x872616(0xa7)](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY'],this[_0x872616(0x13c)][_0x872616(0xf5)](r[_0x872616(0x13f)]));let _0x153dc1=this[_0x872616(0x13c)][_0x872616(0xf5)](a[_0x872616(0x160)]);_0x153dc1&&_0x57f62e[_0x872616(0x185)](a[_0x872616(0xeb)],{'license':_0x153dc1['ls']});let _0x2e8666=(_0x207747=this[_0x872616(0x13c)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x207747[_0x872616(0x151)],_0x9f098a=!!_0x2e8666;_0x9f098a&&(this[_0x872616(0x155)]=_0x2e8666 instanceof Worker?_0x2e8666:null,_0x57f62e[_0x872616(0x185)](S[_0x872616(0x15c)],{'workerURL':_0x2e8666})),this[_0x872616(0x114)][_0x872616(0xfb)](([_0x530cec,_0x37dbe6])=>{const _0xa0bdb0=_0x872616;_0x57f62e[_0xa0bdb0(0x185)](_0x530cec,_0x37dbe6);}),_0x57f62e[_0x872616(0x185)](i['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x40f2de=this[_0x872616(0x13c)][_0x872616(0xf5)](_0x872616(0x16a)))==null?void 0x0:_0x40f2de['historyListServerUrl'],'historyPanelComponentKey':(_0x13de9f=this[_0x872616(0x13c)]['getConfig'](_0x872616(0x16a)))==null?void 0x0:_0x13de9f[_0x872616(0xbb)],'historyPanelHidden':(_0x5f444e=this[_0x872616(0x13c)][_0x872616(0xf5)](_0x872616(0x16a)))==null?void 0x0:_0x5f444e[_0x872616(0xe4)],'historyAIassistantEnabled':(_0x1271f0=this['_configService']['getConfig'](_0x872616(0x16a)))==null?void 0x0:_0x1271f0[_0x872616(0xc2)]}),_0x56515f[_0x872616(0xef)](_0x4072e1=>{const _0x365de2=_0x872616;this[_0x365de2(0x12f)](_0x4072e1,_0x158b8f);}),this[_0x872616(0x181)]['next'](_0x57f62e);let _0x22352c=_0x56515f[_0x872616(0xbd)](i[_0x872616(0x1bf)]),_0x23b262=this['_checkCanRevert'](_0x158b8f),_0x480039=()=>{const _0x50ca1f=_0x872616;_0x3085bb?_0x22352c[_0x50ca1f(0x19b)](_0x158b8f,_0x4a7e3c,_0x23b262,_0x3085bb):_0x22352c['triggerLoadVersions'](_0x158b8f,_0x4a7e3c,_0x23b262);};if(this[_0x872616(0xb3)][_0x872616(0x120)]({'content':this[_0x872616(0x16f)]['t']('editHistory.info.initializing'),'type':m['MessageType']['Loading']}),_0x9f098a)try{_0x56515f[_0x872616(0xbd)](S[_0x872616(0xf0)])['whenReady']()['then'](()=>{_0x480039();});}catch{_0x480039();}else _0x480039();}[_0x342b1b(0x12f)](_0x487376,_0x1f38df){const _0x508661=_0x342b1b;let _0x1cd051=_0x487376['get'](i[_0x508661(0x1bf)]);this[_0x508661(0x199)][_0x508661(0x131)](_0x1cd051[_0x508661(0xd7)]['subscribe'](_0x4cbfaf=>{const _0x2c1f7b=_0x508661;switch(_0x4cbfaf){case i[_0x2c1f7b(0x164)][_0x2c1f7b(0x14d)]:this['_dialogService']['closeAll'](),this[_0x2c1f7b(0xc9)][_0x2c1f7b(0xa2)]();break;case i['HistoryModeStatus'][_0x2c1f7b(0x16b)]:this[_0x2c1f7b(0x1bd)][_0x2c1f7b(0x19f)](q['id']),this[_0x2c1f7b(0x14e)]();break;case i[_0x2c1f7b(0x164)][_0x2c1f7b(0x1a0)]:this[_0x2c1f7b(0x14e)](),this[_0x2c1f7b(0xb3)][_0x2c1f7b(0x120)]({'content':this['_localeService']['t'](_0x2c1f7b(0x184)),'type':m['MessageType'][_0x2c1f7b(0x1a0)],'duration':0xbb8});break;default:break;}})),this[_0x508661(0x199)][_0x508661(0x131)](_0x1cd051[_0x508661(0x189)][_0x508661(0x142)](async _0x456c0f=>{const _0x4ad59d=_0x508661;_0x456c0f&&this[_0x4ad59d(0x1bd)][_0x4ad59d(0x19f)](n[_0x4ad59d(0xcd)]['id'],{'unitId':_0x1f38df,'revision':_0x456c0f});}));}[_0x342b1b(0xd5)](_0x51cda0){const _0x149f5c=_0x342b1b;let _0x3abd01=this[_0x149f5c(0xb9)][_0x149f5c(0x197)](_0x51cda0)[_0x149f5c(0x1b7)]()[_0x149f5c(0x17d)](_0x233ea0=>_0x233ea0[_0x149f5c(0x1a4)]()),_0x470369=new t['WorkbookEditablePermission'](_0x51cda0)['id'],_0x3a64d4=_0x3abd01[_0x149f5c(0x17d)](_0x535c23=>new t[(_0x149f5c(0x11f))](_0x51cda0,_0x535c23)['id']),_0x5a9cde=_0x3abd01[_0x149f5c(0x17d)](_0x7a04ee=>this['_selectionProtectionRuleModel'][_0x149f5c(0x11d)](_0x51cda0,_0x7a04ee)[_0x149f5c(0x17d)](_0x3a1f8b=>new t['RangeProtectionPermissionEditPoint'](_0x51cda0,_0x7a04ee,_0x3a1f8b[_0x149f5c(0x119)])['id']))[_0x149f5c(0xf8)](),_0x247c0b=new t['WorkbookRecoverHistoryPermission'](_0x51cda0)['id'];return this[_0x149f5c(0x188)]['composePermission']([_0x470369,..._0x3a64d4,..._0x5a9cde,_0x247c0b])[_0x149f5c(0x127)](_0x381cc0=>!!_0x381cc0[_0x149f5c(0xb8)]);}};function _0x2ccf(){const _0x10c20b=['function','_initListener','exhaustSavingTask','add','state$','AuthzIoHttpService','OPERATION','LocaleService','IImageIoService','_init','UNIVER_CONTAINER_ID_KEY','width','symbol','dispose$','_configService','_localCacheService','Loading','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverSheetsFormulaPlugin','merge','subscribe','register','fromCollab','1524044FTdKBJ','420ZTYmER','_dataLoaderService','univer-container','getUnitId','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','IConfigService','UniverSheetsDrawingUIPlugin','Entered','unMountHistoryContent','WorkbookViewHistoryPermission','version','workerURL','call','_dialogService','[HistoryLoaderService]:\x20Plugin\x20','_internalWebWorker','none','has','UniverSheetsDataValidationUIPlugin','mutations','defineProperty','iterator','UniverRPCMainThreadPlugin','RangeProtectionRuleModel','IMenuManagerService','urlChange$','LS_CONFIG_KEY','MessageType','univer.operation.toggle-edit-history','pipe','HistoryModeStatus','ThemeService','7dlJbmW','BehaviorSubject','appendChild','_updateURLWithCurrentState','edit-history-loader.config','Exited','getOwnPropertyDescriptor','createElement','disposeUnit','_localeService','UniverSheetsFilterPlugin','ISidebarService','UNIVER_UNKNOWN','_revertErrorTimer','CollaborationEvent','4Ealfkf','_urlService','onCommandExecuted','session','getSheetBySheetId','RxDisposable','UniverSheetsDataValidationMobileUIPlugin','ICommandService','map','UniverDrawingPlugin','UniverSheetsHyperLinkPlugin','clear','_historyUniver$','mountHistoryContent','whenReady','editHistory.panel.listFetchError','registerPlugin','8224184pfLlFh','block','_permissionService','revertRevision$','terminate','historyUniver$','editHistory.info.initializing','length','UniverType','UniverSheetsShapeUIPlugin','916606lOYzDw','_initUniver','some','UniverSheetsHyperLinkUIPlugin','UniverSheetsChartUIPlugin','_componentManager','darkMode$','getUnit','UNIVER_CONTAINER_ID','_disposableCollection','6404193qcuhyc','triggerCustomVersions','_updateSubUnitFromURLParams','DataLoaderService','UniverSheetsShapePlugin','executeCommand','Error','UniverDrawingUIPlugin','setTheme','default','getSheetId','univer-history-container-mobile','next','_handleRevertAcknowledgement','type','UniverEditHistoryViewerMobilePlugin','_collaborationController','historyListServerUrl','8168154mCssPP','IURLService','decorate','registerCommand','getElementById','CommandType','data','top','IPermissionService','onSteady','[MobileHistoryLoaderService]:\x20Plugin\x20','getSheets','left','setParam','takeUntil','_historyManagerService','status','_commandService','loadUnit','HistoryManagerService','set','close','pluginName','univerContainerId','IAuthzIoService','style','setConfig','RibbonStartGroup','Injector','UniverInstanceType','_selectionProtectionRuleModel','Workbook','editHistory.panel.revertFailed','height','UniverSheetsNumfmtPlugin','Plugin','asObservable','dataset','_messageService','SYNCED','CHANGESET_ACK','ILocalCacheService','_menuManagerService','value','_univerInstanceService','getSheetCommandTarget','historyPanelComponentKey','UniverSheetsDataValidationPlugin','get','getAllPlugins','onStarting','Univer','BUTTON','historyAIassistantEnabled','IUniverInstanceService','getCurrentUnitOfType','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','display','UniverSheetsMobileUIPlugin','_sidebarService','disposeWithMe','dispose','UniverSheetsUIPlugin','RevertRevisionMutation','history-container','UNIVER_SHEET','uComp','UniverSheetSparklineUIPlugin','combineLatest','activeSheet$','reload','_checkCanRevert','UniverSheetsTablePlugin','status$','UniverSheetsPlugin','RangeProtectionPermissionEditPoint','getActiveSheet','_initContainer','SetWorksheetActivateCommand','subunit','UniverUIPlugin','2003463CbVnxa','__getInjector','mergeMenu','getParam','20gGuxlW','historyPanelHidden','UniverSheetsConditionalFormattingUIPlugin','Disposable','UniverDataValidationPlugin','menu','UniverCollaborationPlugin','editHistory.panel.title','UniverLicensePlugin','UniverRenderEnginePlugin','getCollabEntity','getUnhiddenWorksheets','invoke','IRemoteInstanceService','packageName','ComponentManager','univer.operation.exit-edit-history','UniverDocsPlugin','getConfig','getCurrentLocale','UniverNetworkPlugin','flat','historyUniver','IMessageService','forEach','5YgQpxj','100%','toPrimitive','location','unsubscribe','params','MenuItemType','prototype','1098845iMXDpJ','object','UniverSheetSparklinePlugin','HistoryLoaderService','position','string','values','setLocale','eventID','UniverSheetsDrawingPlugin','\x20has\x20been\x20registered.','HistoryIcon','Inject','event$','closeAll','constructor','_pluginMap','getLocales','_setupSubUnitSync','_injector','UniverSheetsFormulaUIPlugin','permissionId','UNIVER_HISTORY_CONTAINER_ID','UniverSheetsPivotTablePlugin','DisposableCollection','getSubunitRuleList','Module','WorksheetEditPermission','show','UniverFormulaEnginePlugin','IDialogService','UniverSheetsFilterUIPlugin','setDarkMode','toStringTag','WorkbookEditablePermission','every','_themeService','_config','UniverSheetsConditionalFormattingPlugin','OTHERS','_initPlugins','editHistory.panel.reverting'];_0x2ccf=function(){return _0x10c20b;};return _0x2ccf();}G=H([V(0x0,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x135)])),V(0x1,e[_0x342b1b(0xc3)]),V(0x2,e[_0x342b1b(0x14b)]),V(0x3,e[_0x342b1b(0x17c)]),V(0x4,M[_0x342b1b(0xfa)]),V(0x5,e['IPermissionService']),V(0x6,(0x0,e[_0x342b1b(0x110)])(t[_0x342b1b(0x15d)])),V(0x7,(0x0,e[_0x342b1b(0x110)])(M['IDialogService'])),V(0x8,(0x0,e[_0x342b1b(0x110)])(M[_0x342b1b(0x171)])),V(0x9,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x165)]))],G);const K={'id':_0x342b1b(0x162),'type':e[_0x342b1b(0x1b1)][_0x342b1b(0x134)],'handler':_0x29b4d2=>{const _0x44e387=_0x342b1b;let _0x2135a2=_0x29b4d2[_0x44e387(0xbd)](G),{unitId:_0x5b53f4}=(0x0,t[_0x44e387(0xba)])(_0x29b4d2[_0x44e387(0xbd)](e['IUniverInstanceService']))||{};return _0x5b53f4?(_0x2135a2[_0x44e387(0x182)](_0x5b53f4),!0x0):!0x1;}},q={'id':_0x342b1b(0xf3),'type':e[_0x342b1b(0x1b1)]['OPERATION'],'handler':()=>!0x0};var ce='@univerjs-pro/edit-history-loader',le='0.19.0';function ue(_0x40637f){const _0x42047d=_0x342b1b;return{'id':K['id'],'type':M[_0x42047d(0x102)][_0x42047d(0xc1)],'icon':'HistoryIcon','tooltip':_0x42047d(0xea),'hidden$':(0x0,M['getMenuHiddenObservable'])(_0x40637f,e[_0x42047d(0xaa)][_0x42047d(0xcf)]),'disabled$':(0x0,j['getCurrentRangeDisable$'])(_0x40637f,{'workbookTypes':[t[_0x42047d(0x126)],t[_0x42047d(0x14f)]],'worksheetTypes':[],'rangeTypes':[]})};}const de={[M[_0x342b1b(0xa8)][_0x342b1b(0x12b)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ue}}};let J=class extends e['RxDisposable']{constructor(_0x3c2ae2,_0x10df43,_0x40429c,_0x303993,_0x2f1e5e,_0x5332eb,_0x55f7c8,_0x283e68,_0x29eee6,_0x37b3c8,_0x4422f9){const _0x5de218=_0x342b1b;super(),this['_commandService']=_0x3c2ae2,this[_0x5de218(0xb7)]=_0x10df43,this[_0x5de218(0x195)]=_0x40429c,this[_0x5de218(0x1bb)]=_0x303993,this[_0x5de218(0x16f)]=_0x2f1e5e,this[_0x5de218(0xb3)]=_0x5332eb,this[_0x5de218(0x1aa)]=_0x55f7c8,this[_0x5de218(0x13d)]=_0x283e68,this[_0x5de218(0x147)]=_0x29eee6,this[_0x5de218(0xb9)]=_0x37b3c8,this[_0x5de218(0x176)]=_0x4422f9,B(this,'_revertErrorTimer',null),this[_0x5de218(0x137)]();}[_0x342b1b(0x137)](){const _0x5a58e9=_0x342b1b;[K,q][_0x5a58e9(0xfb)](_0x546c5a=>this[_0x5a58e9(0xca)]((0x0,e['toDisposable'])(this['_commandService'][_0x5a58e9(0x1af)](_0x546c5a)))),this[_0x5a58e9(0xca)](this[_0x5a58e9(0x195)][_0x5a58e9(0x143)](_0x5a58e9(0x10f),F[_0x5a58e9(0x10f)])),this[_0x5a58e9(0xb7)]['mergeMenu'](de),this[_0x5a58e9(0xca)](this[_0x5a58e9(0x1bd)]['onCommandExecuted'](async(_0xde6c6e,_0x20d530)=>{const _0x9ca271=_0x5a58e9;if(_0xde6c6e['id']===n[_0x9ca271(0xcd)]['id']){let {unitId:_0x11357c}=_0xde6c6e[_0x9ca271(0x101)];this['_messageService'][_0x9ca271(0x120)]({'content':this[_0x9ca271(0x16f)]['t'](_0x9ca271(0x12d)),'type':m[_0x9ca271(0x161)][_0x9ca271(0x13e)],'duration':0x1388});let _0x387d7c=this['_collaborationController'][_0x9ca271(0xed)](_0x11357c);_0x20d530!=null&&_0x20d530[_0x9ca271(0x144)]?this[_0x9ca271(0x1a7)](_0x387d7c,async()=>(setTimeout(()=>window['location'][_0x9ca271(0xd4)]()),!0x0),!0x0):this[_0x9ca271(0x1a7)](_0x387d7c,async()=>{const _0x5ea52a=_0x9ca271;let _0x34e95f=this['_univerInstanceService'][_0x5ea52a(0xc4)](I[_0x5ea52a(0x18e)]['UNIVER_SHEET']),_0x5d08ea=_0x34e95f==null?void 0x0:_0x34e95f[_0x5ea52a(0xda)]();if(!_0x5d08ea)return!0x1;this[_0x5ea52a(0xb9)][_0x5ea52a(0x16e)](_0x11357c);let _0x5549a3=await this[_0x5ea52a(0x147)][_0x5ea52a(0x1be)](_0x11357c,I[_0x5ea52a(0x18e)][_0x5ea52a(0xcf)]);return _0x5549a3&&_0x5549a3 instanceof e[_0x5ea52a(0xac)]?(await this[_0x5ea52a(0x116)](_0x5549a3,_0x5d08ea[_0x5ea52a(0x1a4)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x2c68d0,_0x479ef3,_0x49f53c=!0x1){const _0x33da09=_0x342b1b;let _0x53678d=(0x0,N[_0x33da09(0xd2)])([_0x2c68d0['session'][_0x33da09(0x111)],_0x2c68d0[_0x33da09(0x132)]])[_0x33da09(0x142)](async([_0x1673c3,_0x105442])=>{const _0x3e4e8a=_0x33da09;if(_0x1673c3[_0x3e4e8a(0x10c)]===n[_0x3e4e8a(0x174)][_0x3e4e8a(0xb5)]&&(_0x105442==null?void 0x0:_0x105442[_0x3e4e8a(0x1bc)])===r['CollaborationStatus']['SYNCED']&&_0x1673c3[_0x3e4e8a(0x1b2)][_0x3e4e8a(0x159)]['some'](_0x254e33=>_0x254e33['id']===n[_0x3e4e8a(0xcd)]['id'])&&await _0x479ef3()){var _0x3660bb;this[_0x3e4e8a(0x1bb)][_0x3e4e8a(0x14e)](),_0x53678d[_0x3e4e8a(0x100)](),this[_0x3e4e8a(0x173)]&&clearTimeout(this[_0x3e4e8a(0x173)]),await((_0x3660bb=this[_0x3e4e8a(0x13d)])==null?void 0x0:_0x3660bb[_0x3e4e8a(0x130)]()),this[_0x3e4e8a(0xb3)]['removeAll']();}});_0x49f53c&&(this['_revertErrorTimer']=setTimeout(()=>{const _0xf43d6a=_0x33da09;_0x53678d['unsubscribe'](),this[_0xf43d6a(0xb3)][_0xf43d6a(0x120)]({'content':this[_0xf43d6a(0x16f)]['t']('editHistory.panel.revertFailed'),'type':m[_0xf43d6a(0x161)]['Error'],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x83ae8c,_0x1c73c1){const _0x1f6cc8=_0x342b1b;await this[_0x1f6cc8(0x19c)](_0x83ae8c,_0x1c73c1),_0x83ae8c[_0x1f6cc8(0xd3)]['pipe']((0x0,N['takeUntil'])(this[_0x1f6cc8(0x13b)]))[_0x1f6cc8(0x142)](_0xa181d=>{_0xa181d&&this['_updateURLWithCurrentState'](_0xa181d);}),this[_0x1f6cc8(0x176)][_0x1f6cc8(0x15f)][_0x1f6cc8(0x163)]((0x0,N[_0x1f6cc8(0x1ba)])(this['dispose$']))[_0x1f6cc8(0x142)](()=>this[_0x1f6cc8(0x19c)](_0x83ae8c,_0x1c73c1));}[_0x342b1b(0x169)](_0xc75589,_0x1047be=!0x1){const _0x503851=_0x342b1b;let _0x146bf9=this[_0x503851(0x176)][_0x503851(0xe2)]('subunit');_0xc75589[_0x503851(0x1a4)]()!==_0x146bf9&&this['_urlService'][_0x503851(0x1b9)](_0x503851(0xdd),_0xc75589[_0x503851(0x1a4)](),_0x1047be);}async[_0x342b1b(0x19c)](_0xa07eee,_0x926855){const _0x503ec3=_0x342b1b;var _0x2d91f9;if(!_0x926855||!_0xa07eee[_0x503ec3(0x179)](_0x926855)){let _0x52e480=_0xa07eee[_0x503ec3(0xee)]()[0x0],_0x37c411=_0xa07eee[_0x503ec3(0x179)](_0x52e480);if(!_0x37c411)return;this['_updateURLWithCurrentState'](_0x37c411,!0x0),await this[_0x503ec3(0x1bd)][_0x503ec3(0x19f)](t[_0x503ec3(0xdc)]['id'],{'unitId':_0xa07eee[_0x503ec3(0x149)](),'subUnitId':_0x52e480});return;}((_0x2d91f9=_0xa07eee[_0x503ec3(0xda)]())==null?void 0x0:_0x2d91f9[_0x503ec3(0x1a4)]())!==_0x926855&&await this[_0x503ec3(0x1bd)]['executeCommand'](t['SetWorksheetActivateCommand']['id'],{'unitId':_0xa07eee[_0x503ec3(0x149)](),'subUnitId':_0x926855});}};J=H([V(0x0,e[_0x342b1b(0x17c)]),V(0x1,M[_0x342b1b(0x15e)]),V(0x2,(0x0,e[_0x342b1b(0x110)])(M['ComponentManager'])),V(0x3,(0x0,e[_0x342b1b(0x110)])(G)),V(0x4,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x135)])),V(0x5,M[_0x342b1b(0xfa)]),V(0x6,(0x0,e[_0x342b1b(0x110)])(r['CollaborationController'])),V(0x7,r[_0x342b1b(0xb6)]),V(0x8,(0x0,e['Inject'])(r[_0x342b1b(0x19d)])),V(0x9,e[_0x342b1b(0xc3)]),V(0xa,P[_0x342b1b(0x1ad)])],J);const Y=_0x342b1b(0x1a5);let X=class extends e[_0x342b1b(0xe6)]{constructor(_0xdfe59e,_0x178966,_0x17f0bb,_0x5bb621,_0x19aa38,_0x11fca5,_0x2e1717,_0x46edd6,_0x352259,_0x4d3338){const _0x117ab9=_0x342b1b;super(),this['_localeService']=_0xdfe59e,this[_0x117ab9(0xb9)]=_0x178966,this['_configService']=_0x17f0bb,this[_0x117ab9(0x1bd)]=_0x5bb621,this['_messageService']=_0x19aa38,this[_0x117ab9(0x188)]=_0x11fca5,this[_0x117ab9(0xab)]=_0x2e1717,this[_0x117ab9(0x153)]=_0x46edd6,this[_0x117ab9(0xc9)]=_0x352259,this[_0x117ab9(0x128)]=_0x4d3338,B(this,'_historyUniver$',new N[(_0x117ab9(0x167))](null)),B(this,_0x117ab9(0x18b),this[_0x117ab9(0x181)][_0x117ab9(0xb1)]()),B(this,_0x117ab9(0x199),new e[(_0x117ab9(0x11c))]()),B(this,_0x117ab9(0x114),new Map()),B(this,_0x117ab9(0x155),null),this[_0x117ab9(0x137)]();}get['historyUniver'](){const _0x402283=_0x342b1b;return this[_0x402283(0x181)][_0x402283(0xb8)];}[_0x342b1b(0x137)](){const _0x1af818=_0x342b1b;this[_0x1af818(0xdb)](),this[_0x1af818(0x12c)]();}['_initContainer'](){const _0x31523e=_0x342b1b;var _0x2e2d9e;let _0x5c0a4e=(_0x2e2d9e=this['_configService']['getConfig'](_0x31523e(0x198)))==null?_0x31523e(0x148):_0x2e2d9e,_0x1d8c9d=document[_0x31523e(0x1b0)](_0x5c0a4e);if(!_0x1d8c9d)return;let _0x7d6829=document[_0x31523e(0x16d)]('div');_0x7d6829['id']=Y,_0x7d6829[_0x31523e(0xb2)]['uComp']=_0x31523e(0xce),_0x7d6829[_0x31523e(0xa6)]['position']='absolute',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0x1b3)]='0',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0x1b8)]='0',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0x139)]='100%',_0x7d6829[_0x31523e(0xa6)][_0x31523e(0xae)]=_0x31523e(0xfd),_0x7d6829['style']['zIndex']='49',_0x7d6829['style'][_0x31523e(0xc7)]=_0x31523e(0x156),_0x1d8c9d[_0x31523e(0x168)](_0x7d6829);}[_0x342b1b(0x12c)](){const _0x492fb5=_0x342b1b;[[b[_0x492fb5(0xec)]],[M['UniverMobileUIPlugin'],{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[M[_0x492fb5(0x122)],null]]}],[x[_0x492fb5(0xf7)]],[_[_0x492fb5(0x17e)],{'override':[[_[_0x492fb5(0x136)],null]]}],[h[_0x492fb5(0xf4)],{'hasScroll':!0x1}],[g['UniverDocsUIPlugin']],[k[_0x492fb5(0xaf)]],[t[_0x492fb5(0xd8)],{'notExecuteFormula':!0x0}],[j[_0x492fb5(0xc8)]],[re['UniverSheetsFormulaPlugin']],[ie[_0x492fb5(0x118)]],[n[_0x492fb5(0xe9)]],[te['UniverSheetsFilterPlugin']],[C['UniverSheetsConditionalFormattingPlugin']],[ae[_0x492fb5(0x17f)]],[O[_0x492fb5(0x193)]],[p[_0x492fb5(0xe7)]],[w[_0x492fb5(0xbc)]],[T[_0x492fb5(0x17b)]],[y[_0x492fb5(0x121)],{'notExecuteFormula':!0x0}],[v[_0x492fb5(0x1a1)]],[E[_0x492fb5(0x10d)]],[D[_0x492fb5(0x14c)]],[d[_0x492fb5(0x106)]],[f[_0x492fb5(0xd1)]],[o['UniverSheetsChartPlugin']],[s[_0x492fb5(0x194)]],[l['UniverSheetsShapePlugin']],[u[_0x492fb5(0x18f)]],[c['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[A[_0x492fb5(0xd6)]]][_0x492fb5(0xfb)](([_0xad6316,_0x3f6367])=>this[_0x492fb5(0x185)](_0xad6316,_0x3f6367));}[_0x342b1b(0xcb)](){const _0x28db73=_0x342b1b;super[_0x28db73(0xcb)](),this[_0x28db73(0x14e)](),this[_0x28db73(0x114)][_0x28db73(0x180)]();}[_0x342b1b(0x185)](_0x23a120,_0x2b8064,_0x122925){const _0x75dac7=_0x342b1b;if(this[_0x75dac7(0x114)]['has'](_0x23a120[_0x75dac7(0xa3)])&&!_0x122925)throw Error(_0x75dac7(0x1b6)+_0x23a120['pluginName']+_0x75dac7(0x10e));this[_0x75dac7(0x114)][_0x75dac7(0xa1)](_0x23a120[_0x75dac7(0xa3)],[_0x23a120,_0x2b8064]);}[_0x342b1b(0xbe)](){const _0x12bb76=_0x342b1b;return Array['from'](this[_0x12bb76(0x114)][_0x12bb76(0x10a)]());}[_0x342b1b(0x182)](_0x24d644,_0x165b23){const _0x37fcf7=_0x342b1b;let _0x44d47a=document['getElementById'](Y);_0x44d47a&&(_0x44d47a[_0x37fcf7(0xa6)][_0x37fcf7(0xc7)]=_0x37fcf7(0x187),this['_initUniver'](_0x24d644,Y,_0x165b23));}[_0x342b1b(0x14e)](){const _0x445f27=_0x342b1b;var _0x35ecbf;this[_0x445f27(0x199)][_0x445f27(0xcb)](),(_0x35ecbf=this['historyUniver'])==null||_0x35ecbf[_0x445f27(0xcb)](),this['_historyUniver$']['next'](null);let _0x2d2fdf=document[_0x445f27(0x1b0)](Y);_0x2d2fdf&&(_0x2d2fdf[_0x445f27(0xa6)][_0x445f27(0xc7)]=_0x445f27(0x156),this[_0x445f27(0x155)]&&(this['_internalWebWorker'][_0x445f27(0x18a)](),this[_0x445f27(0x155)]=null));}[_0x342b1b(0x191)](_0x54eca5,_0x5406c8,_0x1d1fed){const _0x31086b=_0x342b1b;var _0x4f7e1e,_0x41b494,_0x412491,_0x3e17d0;if(this['historyUniver'])return;let _0x4c893d=new e[(_0x31086b(0xc0))]({'locales':{[this[_0x31086b(0x16f)][_0x31086b(0xf6)]()]:this['_localeService'][_0x31086b(0x115)]()},'override':[[e[_0x31086b(0xa5)],{'useClass':r[_0x31086b(0x133)]}]]}),_0x2558c6=_0x4c893d[_0x31086b(0xe0)]();this['disposeWithMe'](this[_0x31086b(0x128)][_0x31086b(0x196)][_0x31086b(0x142)](_0x9e24d8=>{const _0x20c359=_0x31086b;_0x2558c6[_0x20c359(0xbd)](e[_0x20c359(0x165)])[_0x20c359(0x124)](_0x9e24d8);})),this['disposeWithMe'](this[_0x31086b(0x128)]['currentTheme$']['subscribe'](_0x54e5a4=>{const _0x101d38=_0x31086b;_0x2558c6[_0x101d38(0xbd)](e[_0x101d38(0x165)])[_0x101d38(0x1a2)](_0x54e5a4);})),_0x2558c6[_0x31086b(0xbd)](e[_0x31086b(0x135)])[_0x31086b(0x10b)](this[_0x31086b(0x16f)]['getCurrentLocale']()),_0x2558c6[_0x31086b(0xbd)](e['IConfigService'])[_0x31086b(0xa7)](r[_0x31086b(0x13f)],this[_0x31086b(0x13c)]['getConfig'](r['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x3c47f9=this[_0x31086b(0x13c)][_0x31086b(0xf5)](a[_0x31086b(0x160)]);_0x3c47f9&&_0x4c893d['registerPlugin'](a[_0x31086b(0xeb)],{'license':_0x3c47f9['ls']});let _0x5a85bb=(_0x4f7e1e=this[_0x31086b(0x13c)][_0x31086b(0xf5)](_0x31086b(0x16a)))==null?void 0x0:_0x4f7e1e[_0x31086b(0x151)],_0xda11eb=!!_0x5a85bb;_0xda11eb&&(this[_0x31086b(0x155)]=_0x5a85bb instanceof Worker?_0x5a85bb:null,_0x4c893d[_0x31086b(0x185)](S[_0x31086b(0x15c)],{'workerURL':_0x5a85bb})),this[_0x31086b(0x114)]['forEach'](([_0xa1dfe1,_0x1f0cc1])=>{const _0x3648d0=_0x31086b;_0x4c893d[_0x3648d0(0x185)](_0xa1dfe1,_0x1f0cc1);}),_0x4c893d[_0x31086b(0x185)](i[_0x31086b(0x1a9)],{'historyListServerUrl':(_0x41b494=this['_configService'][_0x31086b(0xf5)](_0x31086b(0x16a)))==null?void 0x0:_0x41b494[_0x31086b(0x1ab)],'historyPanelComponentKey':(_0x412491=this[_0x31086b(0x13c)][_0x31086b(0xf5)]('edit-history-loader.config'))==null?void 0x0:_0x412491[_0x31086b(0xbb)],'historyPanelHidden':(_0x3e17d0=this[_0x31086b(0x13c)][_0x31086b(0xf5)]('edit-history-loader.config'))==null?void 0x0:_0x3e17d0[_0x31086b(0xe4)]}),_0x2558c6[_0x31086b(0xef)](_0x1ca64a=>{const _0x42c1d2=_0x31086b;this[_0x42c1d2(0x12f)](_0x1ca64a,_0x54eca5);}),this[_0x31086b(0x181)]['next'](_0x4c893d);let _0x7e712e=_0x2558c6[_0x31086b(0xbd)](i[_0x31086b(0x1bf)]),_0x495a79=this[_0x31086b(0xd5)](_0x54eca5),_0xaccfa2=()=>{_0x1d1fed?_0x7e712e['triggerCustomVersions'](_0x54eca5,_0x5406c8,_0x495a79,_0x1d1fed):_0x7e712e['triggerLoadVersions'](_0x54eca5,_0x5406c8,_0x495a79);};if(this[_0x31086b(0xb3)][_0x31086b(0x120)]({'content':this[_0x31086b(0x16f)]['t'](_0x31086b(0x18c)),'type':m[_0x31086b(0x161)][_0x31086b(0x13e)]}),_0xda11eb)try{_0x2558c6[_0x31086b(0xbd)](S[_0x31086b(0xf0)])[_0x31086b(0x183)]()['then'](()=>{_0xaccfa2();});}catch{_0xaccfa2();}else _0xaccfa2();}[_0x342b1b(0x12f)](_0x14fae3,_0x2ab5a8){const _0x245513=_0x342b1b;let _0x3235e2=_0x14fae3['get'](i[_0x245513(0x1bf)]);this[_0x245513(0x199)][_0x245513(0x131)](_0x3235e2[_0x245513(0xd7)][_0x245513(0x142)](_0x4bb03a=>{const _0x25cc01=_0x245513;switch(_0x4bb03a){case i[_0x25cc01(0x164)][_0x25cc01(0x14d)]:this[_0x25cc01(0x153)][_0x25cc01(0x112)](),this[_0x25cc01(0xc9)][_0x25cc01(0xa2)]();break;case i['HistoryModeStatus'][_0x25cc01(0x16b)]:this[_0x25cc01(0x1bd)][_0x25cc01(0x19f)](q['id']),this[_0x25cc01(0x14e)]();break;case i[_0x25cc01(0x164)]['Error']:this['unMountHistoryContent'](),this['_messageService'][_0x25cc01(0x120)]({'content':this[_0x25cc01(0x16f)]['t'](_0x25cc01(0x184)),'type':m['MessageType'][_0x25cc01(0x1a0)],'duration':0xbb8});break;default:break;}})),this[_0x245513(0x199)][_0x245513(0x131)](_0x3235e2[_0x245513(0x189)][_0x245513(0x142)](async _0x42996a=>{const _0x574a29=_0x245513;_0x42996a&&this[_0x574a29(0x1bd)][_0x574a29(0x19f)](n['RevertRevisionMutation']['id'],{'unitId':_0x2ab5a8,'revision':_0x42996a});}));}[_0x342b1b(0xd5)](_0x570d05){const _0x179eca=_0x342b1b;let _0x2c5739=this[_0x179eca(0xb9)][_0x179eca(0x197)](_0x570d05)['getSheets']()[_0x179eca(0x17d)](_0x356a55=>_0x356a55[_0x179eca(0x1a4)]()),_0x3af6f1=new t[(_0x179eca(0x126))](_0x570d05)['id'],_0x2345b4=_0x2c5739[_0x179eca(0x17d)](_0xe40ecf=>new t[(_0x179eca(0x11f))](_0x570d05,_0xe40ecf)['id']),_0x36c292=_0x2c5739[_0x179eca(0x17d)](_0x302e26=>this[_0x179eca(0xab)][_0x179eca(0x11d)](_0x570d05,_0x302e26)[_0x179eca(0x17d)](_0x12f92a=>new t[(_0x179eca(0xd9))](_0x570d05,_0x302e26,_0x12f92a[_0x179eca(0x119)])['id']))[_0x179eca(0xf8)](),_0x215b9d=new t['WorkbookRecoverHistoryPermission'](_0x570d05)['id'];return this['_permissionService']['composePermission']([_0x3af6f1,..._0x2345b4,..._0x36c292,_0x215b9d])[_0x179eca(0x127)](_0x5e0a66=>!!_0x5e0a66[_0x179eca(0xb8)]);}};X=H([V(0x0,(0x0,e['Inject'])(e['LocaleService'])),V(0x1,e['IUniverInstanceService']),V(0x2,e[_0x342b1b(0x14b)]),V(0x3,e['ICommandService']),V(0x4,M['IMessageService']),V(0x5,e[_0x342b1b(0x1b4)]),V(0x6,(0x0,e['Inject'])(t[_0x342b1b(0x15d)])),V(0x7,(0x0,e[_0x342b1b(0x110)])(M[_0x342b1b(0x122)])),V(0x8,(0x0,e[_0x342b1b(0x110)])(M['ISidebarService'])),V(0x9,(0x0,e['Inject'])(e['ThemeService']))],X);function _0x106c(_0x23f03e,_0x1d8864){_0x23f03e=_0x23f03e-0xa1;const _0x2ccfda=_0x2ccf();let _0x106cb3=_0x2ccfda[_0x23f03e];return _0x106cb3;}let Z=class extends e['Plugin']{constructor(_0x8a5426=R,_0xb00fa7,_0x148959){const _0x1ddc2f=_0x342b1b;super(),this[_0x1ddc2f(0x129)]=_0x8a5426,this['_injector']=_0xb00fa7,this[_0x1ddc2f(0x13c)]=_0x148959;let {menu:_0xecf7f0,..._0x435bd9}=(0x0,e[_0x1ddc2f(0x141)])({},R,this[_0x1ddc2f(0x129)]);_0xecf7f0&&this[_0x1ddc2f(0x13c)]['setConfig'](_0x1ddc2f(0xe8),_0xecf7f0,{'merge':!0x0}),this['_configService'][_0x1ddc2f(0xa7)](L,_0x435bd9),this[_0x1ddc2f(0x129)][_0x1ddc2f(0xa4)]&&this['_configService'][_0x1ddc2f(0xa7)]('UNIVER_CONTAINER_ID',this[_0x1ddc2f(0x129)][_0x1ddc2f(0xa4)]);}[_0x342b1b(0xbf)](){const _0x16f0d7=_0x342b1b;[[G,{'useClass':X}],[J]][_0x16f0d7(0xfb)](_0x328c98=>this[_0x16f0d7(0x117)][_0x16f0d7(0x131)](_0x328c98));}[_0x342b1b(0x1b5)](){const _0x3e79f7=_0x342b1b;this[_0x3e79f7(0x117)][_0x3e79f7(0xbd)](J);}};B(Z,_0x342b1b(0x1a8),e[_0x342b1b(0xaa)][_0x342b1b(0x172)]),B(Z,_0x342b1b(0xa3),'UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN'),B(Z,_0x342b1b(0xf1),ce),B(Z,_0x342b1b(0x150),le),Z=H([(0x0,e['DependentOn'])(a[_0x342b1b(0xeb)]),V(0x1,(0x0,e['Inject'])(e['Injector'])),V(0x2,e[_0x342b1b(0x14b)])],Z);let Q=class extends e[_0x342b1b(0x17a)]{constructor(_0xe84cb9,_0x5e7e19,_0x47e5ee,_0x388d4e,_0x5821eb,_0x28e71c,_0x1467bf,_0x260d7b,_0x536496,_0x16b98b,_0x4fb3fd){const _0x4dc68e=_0x342b1b;super(),this['_commandService']=_0xe84cb9,this[_0x4dc68e(0xb7)]=_0x5e7e19,this[_0x4dc68e(0x195)]=_0x47e5ee,this[_0x4dc68e(0x1bb)]=_0x388d4e,this[_0x4dc68e(0x16f)]=_0x5821eb,this[_0x4dc68e(0xb3)]=_0x28e71c,this['_collaborationController']=_0x1467bf,this['_localCacheService']=_0x260d7b,this[_0x4dc68e(0x147)]=_0x536496,this[_0x4dc68e(0xb9)]=_0x16b98b,this[_0x4dc68e(0x176)]=_0x4fb3fd,B(this,_0x4dc68e(0x173),null),this[_0x4dc68e(0x137)]();}['_init'](){const _0x4170fd=_0x342b1b;[K,q][_0x4170fd(0xfb)](_0x26436a=>this[_0x4170fd(0xca)]((0x0,e['toDisposable'])(this[_0x4170fd(0x1bd)][_0x4170fd(0x1af)](_0x26436a)))),this[_0x4170fd(0xca)](this['_componentManager'][_0x4170fd(0x143)]('HistoryIcon',F[_0x4170fd(0x10f)])),this[_0x4170fd(0xb7)][_0x4170fd(0xe1)](de),this[_0x4170fd(0xca)](this[_0x4170fd(0x1bd)][_0x4170fd(0x177)](async(_0x5d1d67,_0x3b01c3)=>{const _0x64d99=_0x4170fd;if(_0x5d1d67['id']===n[_0x64d99(0xcd)]['id']){let {unitId:_0x4d18e6}=_0x5d1d67[_0x64d99(0x101)];this['_messageService']['show']({'content':this['_localeService']['t'](_0x64d99(0x12d)),'type':m[_0x64d99(0x161)]['Loading'],'duration':0x1388});let _0x4401b4=this['_collaborationController']['getCollabEntity'](_0x4d18e6);_0x3b01c3!=null&&_0x3b01c3[_0x64d99(0x144)]?this[_0x64d99(0x1a7)](_0x4401b4,async()=>(setTimeout(()=>window[_0x64d99(0xff)][_0x64d99(0xd4)]()),!0x0),!0x0):this[_0x64d99(0x1a7)](_0x4401b4,async()=>{const _0x378c4b=_0x64d99;let _0x550a42=this[_0x378c4b(0xb9)][_0x378c4b(0xc4)](I[_0x378c4b(0x18e)][_0x378c4b(0xcf)]),_0x55d402=_0x550a42==null?void 0x0:_0x550a42[_0x378c4b(0xda)]();if(!_0x55d402)return!0x1;this[_0x378c4b(0xb9)]['disposeUnit'](_0x4d18e6);let _0xad34ea=await this[_0x378c4b(0x147)][_0x378c4b(0x1be)](_0x4d18e6,I[_0x378c4b(0x18e)][_0x378c4b(0xcf)]);return _0xad34ea&&_0xad34ea instanceof e[_0x378c4b(0xac)]?(await this[_0x378c4b(0x116)](_0xad34ea,_0x55d402['getSheetId']()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x28ab5c,_0x3a1d31,_0x5d4ef6=!0x1){const _0x395c80=_0x342b1b;let _0x57ff15=(0x0,N[_0x395c80(0xd2)])([_0x28ab5c[_0x395c80(0x178)][_0x395c80(0x111)],_0x28ab5c[_0x395c80(0x132)]])['subscribe'](async([_0x1e1080,_0x472b2c])=>{const _0x574d73=_0x395c80;if(_0x1e1080[_0x574d73(0x10c)]===n[_0x574d73(0x174)][_0x574d73(0xb5)]&&(_0x472b2c==null?void 0x0:_0x472b2c[_0x574d73(0x1bc)])===r['CollaborationStatus'][_0x574d73(0xb4)]&&_0x1e1080['data'][_0x574d73(0x159)][_0x574d73(0x192)](_0x23c602=>_0x23c602['id']===n[_0x574d73(0xcd)]['id'])&&await _0x3a1d31()){var _0xd56635;this[_0x574d73(0x1bb)][_0x574d73(0x14e)](),_0x57ff15[_0x574d73(0x100)](),this[_0x574d73(0x173)]&&clearTimeout(this[_0x574d73(0x173)]),await((_0xd56635=this[_0x574d73(0x13d)])==null?void 0x0:_0xd56635['exhaustSavingTask']());}});_0x5d4ef6&&(this[_0x395c80(0x173)]=setTimeout(()=>{const _0x3aaf38=_0x395c80;_0x57ff15['unsubscribe'](),this['_messageService'][_0x3aaf38(0x120)]({'content':this[_0x3aaf38(0x16f)]['t'](_0x3aaf38(0xad)),'type':m[_0x3aaf38(0x161)][_0x3aaf38(0x1a0)],'duration':0xbb8});},0x1388));}async[_0x342b1b(0x116)](_0x215da4,_0x31388b){const _0x21e4ce=_0x342b1b;await this[_0x21e4ce(0x19c)](_0x215da4,_0x31388b),_0x215da4['activeSheet$'][_0x21e4ce(0x163)]((0x0,N[_0x21e4ce(0x1ba)])(this[_0x21e4ce(0x13b)]))['subscribe'](_0x271105=>{const _0x3b9bc5=_0x21e4ce;_0x271105&&this[_0x3b9bc5(0x169)](_0x271105);}),this[_0x21e4ce(0x176)][_0x21e4ce(0x15f)]['pipe']((0x0,N[_0x21e4ce(0x1ba)])(this[_0x21e4ce(0x13b)]))[_0x21e4ce(0x142)](()=>this['_updateSubUnitFromURLParams'](_0x215da4,_0x31388b));}[_0x342b1b(0x169)](_0x59d992,_0x2b3533=!0x1){const _0x2f52ea=_0x342b1b;let _0x55709c=this[_0x2f52ea(0x176)][_0x2f52ea(0xe2)]('subunit');_0x59d992[_0x2f52ea(0x1a4)]()!==_0x55709c&&this[_0x2f52ea(0x176)][_0x2f52ea(0x1b9)](_0x2f52ea(0xdd),_0x59d992[_0x2f52ea(0x1a4)](),_0x2b3533);}async['_updateSubUnitFromURLParams'](_0x2b0e44,_0x128b41){const _0x397f3a=_0x342b1b;var _0x22b059;if(!_0x128b41||!_0x2b0e44['getSheetBySheetId'](_0x128b41)){let _0xd87eb0=_0x2b0e44['getUnhiddenWorksheets']()[0x0],_0x2fd5bf=_0x2b0e44[_0x397f3a(0x179)](_0xd87eb0);if(!_0x2fd5bf)return;this[_0x397f3a(0x169)](_0x2fd5bf,!0x0),await this['_commandService'][_0x397f3a(0x19f)](t['SetWorksheetActivateCommand']['id'],{'unitId':_0x2b0e44['getUnitId'](),'subUnitId':_0xd87eb0});return;}((_0x22b059=_0x2b0e44[_0x397f3a(0xda)]())==null?void 0x0:_0x22b059[_0x397f3a(0x1a4)]())!==_0x128b41&&await this[_0x397f3a(0x1bd)][_0x397f3a(0x19f)](t[_0x397f3a(0xdc)]['id'],{'unitId':_0x2b0e44[_0x397f3a(0x149)](),'subUnitId':_0x128b41});}};Q=H([V(0x0,e[_0x342b1b(0x17c)]),V(0x1,M[_0x342b1b(0x15e)]),V(0x2,(0x0,e[_0x342b1b(0x110)])(M[_0x342b1b(0xf2)])),V(0x3,(0x0,e[_0x342b1b(0x110)])(G)),V(0x4,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0x135)])),V(0x5,M[_0x342b1b(0xfa)]),V(0x6,(0x0,e[_0x342b1b(0x110)])(r['CollaborationController'])),V(0x7,r['ILocalCacheService']),V(0x8,(0x0,e['Inject'])(r[_0x342b1b(0x19d)])),V(0x9,e[_0x342b1b(0xc3)]),V(0xa,P[_0x342b1b(0x1ad)])],Q);let $=class extends e[_0x342b1b(0xb0)]{constructor(_0x13a012=R,_0x1947bf,_0x3bff9a){const _0x1a565c=_0x342b1b;super(),this[_0x1a565c(0x129)]=_0x13a012,this[_0x1a565c(0x117)]=_0x1947bf,this[_0x1a565c(0x13c)]=_0x3bff9a;let {menu:_0xaa4e60,..._0x12e6f7}=(0x0,e['merge'])({},R,this[_0x1a565c(0x129)]);_0xaa4e60&&this[_0x1a565c(0x13c)]['setConfig'](_0x1a565c(0xe8),_0xaa4e60,{'merge':!0x0}),this['_configService'][_0x1a565c(0xa7)](L,_0x12e6f7),this[_0x1a565c(0x129)][_0x1a565c(0xa4)]&&this['_configService'][_0x1a565c(0xa7)](U,this[_0x1a565c(0x129)][_0x1a565c(0xa4)]);}[_0x342b1b(0xbf)](){const _0x1b2e0f=_0x342b1b;[[G],[Q]]['forEach'](_0xbcfbab=>this[_0x1b2e0f(0x117)]['add'](_0xbcfbab));}['onSteady'](){const _0x114b12=_0x342b1b;this[_0x114b12(0x117)][_0x114b12(0xbd)](Q);}};B($,_0x342b1b(0x1a8),e[_0x342b1b(0xaa)][_0x342b1b(0x172)]),B($,_0x342b1b(0xa3),_0x342b1b(0xc5)),B($,'packageName',ce),B($,'version',le),$=H([(0x0,e['DependentOn'])(a['UniverLicensePlugin']),V(0x1,(0x0,e[_0x342b1b(0x110)])(e[_0x342b1b(0xa9)])),V(0x2,e[_0x342b1b(0x14b)])],$),exports[_0x342b1b(0x14a)]=L,Object[_0x342b1b(0x15a)](exports,_0x342b1b(0x107),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,'MobileHistoryLoaderService',{'enumerable':!0x0,'get':function(){return X;}}),exports['ToggleEditHistoryOperation']=K,exports[_0x342b1b(0x138)]=U,exports[_0x342b1b(0x11a)]=W,Object['defineProperty'](exports,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xcdc2b4=_0x576c;(function(_0x112ec6,_0x31eebe){const _0x10075a=_0x576c,_0xb387ed=_0x112ec6();while(!![]){try{const _0x39b6bb=-parseInt(_0x10075a(0x17c))/0x1+-parseInt(_0x10075a(0xf2))/0x2+parseInt(_0x10075a(0x194))/0x3+-parseInt(_0x10075a(0x16a))/0x4*(-parseInt(_0x10075a(0x150))/0x5)+parseInt(_0x10075a(0x153))/0x6+-parseInt(_0x10075a(0x117))/0x7+parseInt(_0x10075a(0x166))/0x8;if(_0x39b6bb===_0x31eebe)break;else _0xb387ed['push'](_0xb387ed['shift']());}catch(_0x57cc29){_0xb387ed['push'](_0xb387ed['shift']());}}}(_0x3a80,0xbffd4));import{CommandType as _0x2d66d6,DependentOn as _0x299295,Disposable as _0x2fbf81,DisposableCollection as _0xdf8958,IAuthzIoService as _0x580551,ICommandService as _0xc4feca,IConfigService as _0x2bc188,IPermissionService as _0x32b568,IUniverInstanceService as _0x5d2eb8,Inject as _0x501869,Injector as _0x39260c,LocaleService as _0x5146f1,Plugin as _0x5d4f75,RxDisposable as _0x1ddce9,ThemeService as _0x3616cc,Univer as _0x1792d9,UniverInstanceType as _0x2286ef,Workbook as _0x4fb4cf,merge as _0x462db5,toDisposable as _0x158d14}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x24d965,RangeProtectionRuleModel as _0x152aea,SetWorksheetActivateCommand as _0x551a6e,UniverSheetsPlugin as _0x378801,WorkbookEditablePermission as _0x131768,WorkbookRecoverHistoryPermission as _0x41ee57,WorkbookViewHistoryPermission as _0x1b94b8,WorksheetEditPermission as _0x51fdf5,getSheetCommandTarget as _0x12470b}from'@univerjs/sheets';import{CollaborationEvent as _0x430f66,RevertRevisionMutation as _0x5069ca,UniverCollaborationPlugin as _0x5da1ee}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x25c273,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d4dca,CollaborationController as _0x3f3fcc,CollaborationStatus as _0x38b07e,DataLoaderService as _0x200401,ILocalCacheService as _0x15191f}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x3f326a,HistoryModeStatus as _0x509d16,UniverEditHistoryViewerMobilePlugin as _0xa47d47,UniverEditHistoryViewerPlugin as _0x16af9f}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4df753,UniverLicensePlugin as _0x13b78b}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x443143}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xa87e1e}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x564745}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x580e7a}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x1e4282}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x213647}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x306685}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x120848}from'@univerjs/data-validation';import{MessageType as _0x5c4b9d}from'@univerjs/design';import{UniverDocsPlugin as _0x4207ab}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x2f1d3c}from'@univerjs/docs-ui';import{IImageIoService as _0x2c5d90,UniverDrawingPlugin as _0x31cee7}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xc4d22}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3062e1}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5ca134}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x5d653c}from'@univerjs/network';import{IRemoteInstanceService as _0x1f2f8c,UniverRPCMainThreadPlugin as _0x55c6e8}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x340c42}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x1e1912}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x23e1f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x5de188,UniverSheetsDataValidationUIPlugin as _0x58d9d5}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4c2ce8}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x358df3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x23d63a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x48df9e}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfa733f}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x259d1d}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x11d274}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xf41737}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3a9855}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0xe59839}from'@univerjs/sheets-table';function _0x3a80(){const _0x3362f4=['location','from','univer.operation.exit-edit-history','urlChange$','length','edit-history-loader.config','getConfig','_sidebarService','top','_init','editHistory.info.initializing','history-container','packageName','Error','subunit','_themeService','historyUniver','decorate','loadUnit','getActiveSheet','iterator','type','getCurrentLocale','next','clear','pipe','_commandService','_dialogService','Exited','_config','some','registerCommand','univer-history-container-mobile','editHistory.panel.reverting','getSheetId','getUnhiddenWorksheets','295obBSbH','div','left','4989990XjWcaq','uComp','forEach','style','session','OPERATION','event$','_dataLoaderService','OTHERS','register','show','exhaustSavingTask','constructor','prototype','mountHistoryContent','set','zIndex','every','__getInjector','7076168sFJHLg','createElement','HistoryIcon','disposeWithMe','36364bNrorE','get','map','height','historyPanelHidden','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onSteady','add','_pluginMap','close','closeAll','setParam','status','status$','_componentManager','function','univer-history-container','version','1276606syROio','_historyUniver$','pluginName','getUnitId','setTheme','toPrimitive','setConfig','subscribe','editHistory.panel.revertFailed','permissionId','getAllPlugins','values','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','reload','dataset','_internalWebWorker','workerURL','executeCommand','_permissionService','UNIVER_UNKNOWN','getCurrentUnitOfType','CHANGESET_ACK','display','4173099euvcCu','_localCacheService','_configService','_localeService','then','unMountHistoryContent','object','_initUniver','disposeUnit','UNIVER_SHEET','currentTheme$','univer-container','has','none','value','100%','getElementById','_messageService','state$','editHistory.panel.title','appendChild','_injector','dispose$','string','_selectionProtectionRuleModel','invoke','width','registerPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','_menuManagerService','fromCollab','univerContainerId','2141874DYVGIi','[HistoryLoaderService]:\x20Plugin\x20','absolute','triggerLoadVersions','_setupSubUnitSync','getLocales','_initContainer','_historyManagerService','_urlService','SYNCED','_updateURLWithCurrentState','flat','historyAIassistantEnabled','getCollabEntity','_initListener','historyUniver$','mergeMenu','getSubunitRuleList','activeSheet$','historyPanelComponentKey','_disposableCollection','setDarkMode','dispose','onStarting','_univerInstanceService','editHistory.panel.listFetchError','@univerjs-pro/edit-history-loader','_revertErrorTimer','menu','getSheets','_handleRevertAcknowledgement','historyListServerUrl','_initPlugins','Entered','getParam','triggerCustomVersions','getSheetBySheetId','3567599xIcZar','position','composePermission','eventID','revertRevision$','[MobileHistoryLoaderService]:\x20Plugin\x20','params','mutations','_collaborationController','asObservable','terminate','_updateSubUnitFromURLParams','darkMode$','_checkCanRevert','symbol','getUnit','defineProperty','univer.operation.toggle-edit-history','unsubscribe','Loading','\x20has\x20been\x20registered.'];_0x3a80=function(){return _0x3362f4;};return _0x3a80();}import{UniverSheetsMobileUIPlugin as _0x25859c,UniverSheetsUIPlugin as _0xcbda01,getCurrentRangeDisable$ as _0x5971c4}from'@univerjs/sheets-ui';import{ComponentManager as _0x5e54c4,IDialogService as _0x3a5ccb,IMenuManagerService as _0x5c69e0,IMessageService as _0x578fd8,ISidebarService as _0xef72e6,MenuItemType as _0xdd9b57,RibbonStartGroup as _0x37f545,UniverMobileUIPlugin as _0x4bfa13,UniverUIPlugin as _0xcdede4,getMenuHiddenObservable as _0x6e3619}from'@univerjs/ui';import{BehaviorSubject as _0x4e9a7e,combineLatest as _0x1ff757,takeUntil as _0x118b8c}from'rxjs';import{IURLService as _0xc78038}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1c442a}from'@univerjs/icons';import{UniverType as _0x526e34}from'@univerjs/protocol';const L=_0xcdc2b4(0x131);Symbol(L);const R={};function z(_0x5f0c5c){'@babel/helpers - typeof';const _0x2924d1=_0xcdc2b4;return z=typeof Symbol==_0x2924d1(0x179)&&typeof Symbol[_0x2924d1(0x140)]==_0x2924d1(0x125)?function(_0x50fb4f){return typeof _0x50fb4f;}:function(_0x301129){const _0x210a9d=_0x2924d1;return _0x301129&&typeof Symbol==_0x210a9d(0x179)&&_0x301129[_0x210a9d(0x15f)]===Symbol&&_0x301129!==Symbol[_0x210a9d(0x160)]?_0x210a9d(0x125):typeof _0x301129;},z(_0x5f0c5c);}function ot(_0x168c18,_0x5990f9){const _0x3fe0cb=_0xcdc2b4;if(z(_0x168c18)!=_0x3fe0cb(0x19a)||!_0x168c18)return _0x168c18;var _0x5f0025=_0x168c18[Symbol[_0x3fe0cb(0x181)]];if(_0x5f0025!==void 0x0){var _0x295acb=_0x5f0025['call'](_0x168c18,_0x5990f9||'default');if(z(_0x295acb)!=_0x3fe0cb(0x19a))return _0x295acb;throw TypeError(_0x3fe0cb(0x16f));}return(_0x5990f9===_0x3fe0cb(0xe9)?String:Number)(_0x168c18);}function st(_0x4a7ca6){const _0xfad314=_0xcdc2b4;var _0x109462=ot(_0x4a7ca6,_0xfad314(0xe9));return z(_0x109462)==_0xfad314(0x125)?_0x109462:_0x109462+'';}function B(_0x110769,_0x5320b6,_0x46135a){const _0x2b2010=_0xcdc2b4;return(_0x5320b6=st(_0x5320b6))in _0x110769?Object[_0x2b2010(0x127)](_0x110769,_0x5320b6,{'value':_0x46135a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x110769[_0x5320b6]=_0x46135a,_0x110769;}function V(_0x4106ee,_0x15b32b){return function(_0x54729e,_0x2f006a){_0x15b32b(_0x54729e,_0x2f006a,_0x4106ee);};}function H(_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6){const _0x105ac9=_0xcdc2b4;var _0x5505f9=arguments[_0x105ac9(0x130)],_0x3ae434=_0x5505f9<0x3?_0x42d2ac:_0x3bbfb6===null?_0x3bbfb6=Object[_0x105ac9(0x189)](_0x42d2ac,_0x5f5211):_0x3bbfb6,_0x52b731;if(typeof Reflect==_0x105ac9(0x19a)&&typeof Reflect[_0x105ac9(0x13d)]=='function')_0x3ae434=Reflect['decorate'](_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6);else{for(var _0x54f2e3=_0x30dbeb[_0x105ac9(0x130)]-0x1;_0x54f2e3>=0x0;_0x54f2e3--)(_0x52b731=_0x30dbeb[_0x54f2e3])&&(_0x3ae434=(_0x5505f9<0x3?_0x52b731(_0x3ae434):_0x5505f9>0x3?_0x52b731(_0x42d2ac,_0x5f5211,_0x3ae434):_0x52b731(_0x42d2ac,_0x5f5211))||_0x3ae434);}return _0x5505f9>0x3&&_0x3ae434&&Object[_0x105ac9(0x127)](_0x42d2ac,_0x5f5211,_0x3ae434),_0x3ae434;}const U=_0xcdc2b4(0x188),W=_0xcdc2b4(0x17a);let G=class extends _0x2fbf81{constructor(_0x5c127a,_0x7de8bc,_0x139347,_0x53b736,_0x18a131,_0x5e1db5,_0x1d7de1,_0x572496,_0x5eb394,_0x38161a){const _0x4c3caf=_0xcdc2b4;super(),this[_0x4c3caf(0x197)]=_0x5c127a,this[_0x4c3caf(0x10a)]=_0x7de8bc,this['_configService']=_0x139347,this['_commandService']=_0x53b736,this[_0x4c3caf(0xe3)]=_0x18a131,this['_permissionService']=_0x5e1db5,this[_0x4c3caf(0xea)]=_0x1d7de1,this[_0x4c3caf(0x147)]=_0x572496,this[_0x4c3caf(0x133)]=_0x5eb394,this['_themeService']=_0x38161a,B(this,_0x4c3caf(0x17d),new _0x4e9a7e(null)),B(this,_0x4c3caf(0x101),this[_0x4c3caf(0x17d)][_0x4c3caf(0x120)]()),B(this,_0x4c3caf(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this['_init']();}get[_0xcdc2b4(0x13c)](){const _0x2753ad=_0xcdc2b4;return this['_historyUniver$'][_0x2753ad(0xe0)];}[_0xcdc2b4(0x135)](){const _0x34dfc0=_0xcdc2b4;this[_0x34dfc0(0xf8)](),this['_initPlugins']();}[_0xcdc2b4(0xf8)](){const _0x3ecb2b=_0xcdc2b4;var _0x5630ac;let _0x2b715d=(_0x5630ac=this[_0x3ecb2b(0x196)][_0x3ecb2b(0x132)](_0x3ecb2b(0x188)))==null?_0x3ecb2b(0xdd):_0x5630ac,_0x20ff09=document[_0x3ecb2b(0xe2)](_0x2b715d);if(!_0x20ff09)return;let _0x1e1da8=document[_0x3ecb2b(0x167)](_0x3ecb2b(0x151));_0x1e1da8['id']=W,_0x1e1da8[_0x3ecb2b(0x18b)]['uComp']=_0x3ecb2b(0x137),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x118)]=_0x3ecb2b(0xf4),_0x1e1da8[_0x3ecb2b(0x156)]['top']='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x152)]='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0xec)]=_0x3ecb2b(0xe1),_0x1e1da8['style'][_0x3ecb2b(0x16d)]=_0x3ecb2b(0xe1),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x163)]='49',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x193)]='none',_0x20ff09[_0x3ecb2b(0xe6)](_0x1e1da8);}['_initPlugins'](){const _0x2f7899=_0xcdc2b4;[[_0x5ca134],[_0xcdede4,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0xcbda01],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x48df9e],[_0x340c42],[_0x1e1912],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x58d9d5],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x2f7899(0x155)](([_0x2d67e3,_0x2dc3b3])=>this['registerPlugin'](_0x2d67e3,_0x2dc3b3));}[_0xcdc2b4(0x108)](){const _0x1f84f3=_0xcdc2b4;super['dispose'](),this[_0x1f84f3(0x199)](),this[_0x1f84f3(0x172)][_0x1f84f3(0x144)]();}[_0xcdc2b4(0xed)](_0x25cf73,_0xc4efb8,_0x6ffcd0){const _0x330dc7=_0xcdc2b4;if(this['_pluginMap'][_0x330dc7(0xde)](_0x25cf73[_0x330dc7(0x17e)])&&!_0x6ffcd0)throw Error(_0x330dc7(0xf3)+_0x25cf73['pluginName']+_0x330dc7(0x12b));this['_pluginMap'][_0x330dc7(0x162)](_0x25cf73['pluginName'],[_0x25cf73,_0xc4efb8]);}[_0xcdc2b4(0x186)](){return Array['from'](this['_pluginMap']['values']());}['mountHistoryContent'](_0x27a638,_0x4a0771){const _0x41f623=_0xcdc2b4;let _0x3da387=document[_0x41f623(0xe2)](W);_0x3da387&&(_0x3da387[_0x41f623(0x156)][_0x41f623(0x193)]='block',this[_0x41f623(0x19b)](_0x27a638,W,_0x4a0771));}[_0xcdc2b4(0x199)](){const _0x534da6=_0xcdc2b4;var _0x510b66;this['_disposableCollection'][_0x534da6(0x108)](),(_0x510b66=this[_0x534da6(0x13c)])==null||_0x510b66[_0x534da6(0x108)](),this[_0x534da6(0x17d)][_0x534da6(0x143)](null);let _0x2e1f86=document[_0x534da6(0xe2)](W);_0x2e1f86&&(_0x2e1f86['style'][_0x534da6(0x193)]='none',this[_0x534da6(0x18c)]&&(this[_0x534da6(0x18c)]['terminate'](),this[_0x534da6(0x18c)]=null));}['_initUniver'](_0x37e744,_0x394ca2,_0x1e5a87){const _0x18fd9a=_0xcdc2b4;var _0x22e419,_0x17031e,_0x4dbe79,_0x4c3a5e,_0x4320c2;if(this[_0x18fd9a(0x13c)])return;let _0xec05d1=new _0x1792d9({'locales':{[this[_0x18fd9a(0x197)]['getCurrentLocale']()]:this[_0x18fd9a(0x197)][_0x18fd9a(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x44573c=_0xec05d1['__getInjector']();this['disposeWithMe'](this[_0x18fd9a(0x13b)]['darkMode$']['subscribe'](_0x568338=>{const _0x462444=_0x18fd9a;_0x44573c['get'](_0x3616cc)[_0x462444(0x107)](_0x568338);})),this[_0x18fd9a(0x169)](this[_0x18fd9a(0x13b)]['currentTheme$'][_0x18fd9a(0x183)](_0x30b876=>{const _0x1c953b=_0x18fd9a;_0x44573c[_0x1c953b(0x16b)](_0x3616cc)['setTheme'](_0x30b876);})),_0x44573c[_0x18fd9a(0x16b)](_0x5146f1)['setLocale'](this[_0x18fd9a(0x197)][_0x18fd9a(0x142)]()),_0x44573c[_0x18fd9a(0x16b)](_0x2bc188)[_0x18fd9a(0x182)](_0x1d4dca,this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x1d4dca));let _0x5c0f66=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x4df753);_0x5c0f66&&_0xec05d1[_0x18fd9a(0xed)](_0x13b78b,{'license':_0x5c0f66['ls']});let _0x51da79=(_0x22e419=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x22e419['workerURL'],_0x5b22e6=!!_0x51da79;_0x5b22e6&&(this[_0x18fd9a(0x18c)]=_0x51da79 instanceof Worker?_0x51da79:null,_0xec05d1[_0x18fd9a(0xed)](_0x55c6e8,{'workerURL':_0x51da79})),this[_0x18fd9a(0x172)][_0x18fd9a(0x155)](([_0x577c94,_0x3ba033])=>{const _0x165266=_0x18fd9a;_0xec05d1[_0x165266(0xed)](_0x577c94,_0x3ba033);}),_0xec05d1[_0x18fd9a(0xed)](_0x16af9f,{'historyListServerUrl':(_0x17031e=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)]('edit-history-loader.config'))==null?void 0x0:_0x17031e[_0x18fd9a(0x111)],'historyPanelComponentKey':(_0x4dbe79=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4dbe79[_0x18fd9a(0x105)],'historyPanelHidden':(_0x4c3a5e=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4c3a5e[_0x18fd9a(0x16e)],'historyAIassistantEnabled':(_0x4320c2=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4320c2[_0x18fd9a(0xfe)]}),_0x44573c[_0x18fd9a(0xeb)](_0x2c9120=>{const _0x23a3e=_0x18fd9a;this[_0x23a3e(0x100)](_0x2c9120,_0x37e744);}),this[_0x18fd9a(0x17d)][_0x18fd9a(0x143)](_0xec05d1);let _0x14b570=_0x44573c['get'](_0x3f326a),_0x5afa41=this[_0x18fd9a(0x124)](_0x37e744),_0xd225b7=()=>{_0x1e5a87?_0x14b570['triggerCustomVersions'](_0x37e744,_0x394ca2,_0x5afa41,_0x1e5a87):_0x14b570['triggerLoadVersions'](_0x37e744,_0x394ca2,_0x5afa41);};if(this[_0x18fd9a(0xe3)]['show']({'content':this[_0x18fd9a(0x197)]['t'](_0x18fd9a(0x136)),'type':_0x5c4b9d['Loading']}),_0x5b22e6)try{_0x44573c[_0x18fd9a(0x16b)](_0x1f2f8c)['whenReady']()[_0x18fd9a(0x198)](()=>{_0xd225b7();});}catch{_0xd225b7();}else _0xd225b7();}[_0xcdc2b4(0x100)](_0x3c861c,_0x2cb854){const _0x16fa02=_0xcdc2b4;let _0x45da8e=_0x3c861c['get'](_0x3f326a);this[_0x16fa02(0x106)]['add'](_0x45da8e[_0x16fa02(0x177)][_0x16fa02(0x183)](_0x2ce6d6=>{const _0x7dcbef=_0x16fa02;switch(_0x2ce6d6){case _0x509d16[_0x7dcbef(0x113)]:this[_0x7dcbef(0x147)][_0x7dcbef(0x174)](),this[_0x7dcbef(0x133)][_0x7dcbef(0x173)]();break;case _0x509d16[_0x7dcbef(0x148)]:this['_commandService'][_0x7dcbef(0x18e)](q['id']),this[_0x7dcbef(0x199)]();break;case _0x509d16[_0x7dcbef(0x139)]:this[_0x7dcbef(0x199)](),this[_0x7dcbef(0xe3)][_0x7dcbef(0x15d)]({'content':this[_0x7dcbef(0x197)]['t'](_0x7dcbef(0x10b)),'type':_0x5c4b9d[_0x7dcbef(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x16fa02(0x106)][_0x16fa02(0x171)](_0x45da8e[_0x16fa02(0x11b)]['subscribe'](async _0x4fe14b=>{const _0x151495=_0x16fa02;_0x4fe14b&&this[_0x151495(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x2cb854,'revision':_0x4fe14b});}));}['_checkCanRevert'](_0x34f91b){const _0x2079ef=_0xcdc2b4;let _0x204c33=this[_0x2079ef(0x10a)][_0x2079ef(0x126)](_0x34f91b)[_0x2079ef(0x10f)]()['map'](_0x4a70de=>_0x4a70de[_0x2079ef(0x14e)]()),_0x294ea1=new _0x131768(_0x34f91b)['id'],_0x41778e=_0x204c33[_0x2079ef(0x16c)](_0x3841f9=>new _0x51fdf5(_0x34f91b,_0x3841f9)['id']),_0x55d06e=_0x204c33[_0x2079ef(0x16c)](_0x492464=>this[_0x2079ef(0xea)][_0x2079ef(0x103)](_0x34f91b,_0x492464)['map'](_0x1277c9=>new _0x24d965(_0x34f91b,_0x492464,_0x1277c9[_0x2079ef(0x185)])['id']))[_0x2079ef(0xfd)](),_0x49155b=new _0x41ee57(_0x34f91b)['id'];return this['_permissionService'][_0x2079ef(0x119)]([_0x294ea1,..._0x41778e,..._0x55d06e,_0x49155b])['every'](_0x11090b=>!!_0x11090b[_0x2079ef(0xe0)]);}};G=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],G);const K={'id':_0xcdc2b4(0x128),'type':_0x2d66d6[_0xcdc2b4(0x158)],'handler':_0x1aa51b=>{const _0x2110bb=_0xcdc2b4;let _0x28a583=_0x1aa51b[_0x2110bb(0x16b)](G),{unitId:_0x5b6c9d}=_0x12470b(_0x1aa51b[_0x2110bb(0x16b)](_0x5d2eb8))||{};return _0x5b6c9d?(_0x28a583[_0x2110bb(0x161)](_0x5b6c9d),!0x0):!0x1;}},q={'id':_0xcdc2b4(0x12e),'type':_0x2d66d6['OPERATION'],'handler':()=>!0x0};var ct=_0xcdc2b4(0x10c),lt='0.18.0';function ut(_0x2baa05){const _0x3cfa87=_0xcdc2b4;return{'id':K['id'],'type':_0xdd9b57['BUTTON'],'icon':'HistoryIcon','tooltip':_0x3cfa87(0xe5),'hidden$':_0x6e3619(_0x2baa05,_0x2286ef[_0x3cfa87(0xdb)]),'disabled$':_0x5971c4(_0x2baa05,{'workbookTypes':[_0x131768,_0x1b94b8],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x37f545[_0xcdc2b4(0x15b)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x1ddce9{constructor(_0x208949,_0x50286a,_0x454ce5,_0x43a472,_0xd39a08,_0x5dcd9a,_0x2f1a41,_0x4f3b3e,_0x49130f,_0x4f88f8,_0x194a80){const _0x5def78=_0xcdc2b4;super(),this[_0x5def78(0x146)]=_0x208949,this[_0x5def78(0xef)]=_0x50286a,this[_0x5def78(0x178)]=_0x454ce5,this['_historyManagerService']=_0x43a472,this[_0x5def78(0x197)]=_0xd39a08,this['_messageService']=_0x5dcd9a,this[_0x5def78(0x11f)]=_0x2f1a41,this[_0x5def78(0x195)]=_0x4f3b3e,this['_dataLoaderService']=_0x49130f,this[_0x5def78(0x10a)]=_0x4f88f8,this['_urlService']=_0x194a80,B(this,_0x5def78(0x10d),null),this[_0x5def78(0x135)]();}[_0xcdc2b4(0x135)](){const _0x235007=_0xcdc2b4;[K,q][_0x235007(0x155)](_0x614245=>this['disposeWithMe'](_0x158d14(this[_0x235007(0x146)][_0x235007(0x14b)](_0x614245)))),this[_0x235007(0x169)](this['_componentManager'][_0x235007(0x15c)](_0x235007(0x168),_0x1c442a)),this[_0x235007(0xef)][_0x235007(0x102)](dt),this[_0x235007(0x169)](this['_commandService']['onCommandExecuted'](async(_0x10a041,_0x10e518)=>{const _0x4e9340=_0x235007;if(_0x10a041['id']===_0x5069ca['id']){let {unitId:_0x3552e5}=_0x10a041[_0x4e9340(0x11d)];this[_0x4e9340(0xe3)][_0x4e9340(0x15d)]({'content':this[_0x4e9340(0x197)]['t'](_0x4e9340(0x14d)),'type':_0x5c4b9d['Loading'],'duration':0x1388});let _0x31537e=this['_collaborationController']['getCollabEntity'](_0x3552e5);_0x10e518!=null&&_0x10e518[_0x4e9340(0xf0)]?this['_handleRevertAcknowledgement'](_0x31537e,async()=>(setTimeout(()=>window['location'][_0x4e9340(0x18a)]()),!0x0),!0x0):this[_0x4e9340(0x110)](_0x31537e,async()=>{const _0x2735c7=_0x4e9340;let _0x48dab9=this[_0x2735c7(0x10a)][_0x2735c7(0x191)](_0x526e34[_0x2735c7(0xdb)]),_0x568e8a=_0x48dab9==null?void 0x0:_0x48dab9[_0x2735c7(0x13f)]();if(!_0x568e8a)return!0x1;this[_0x2735c7(0x10a)][_0x2735c7(0x19c)](_0x3552e5);let _0x2ad4e4=await this['_dataLoaderService'][_0x2735c7(0x13e)](_0x3552e5,_0x526e34[_0x2735c7(0xdb)]);return _0x2ad4e4&&_0x2ad4e4 instanceof _0x4fb4cf?(await this['_setupSubUnitSync'](_0x2ad4e4,_0x568e8a[_0x2735c7(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x307983,_0x4cc53f,_0xccd829=!0x1){const _0x59e25d=_0xcdc2b4;let _0x202645=_0x1ff757([_0x307983[_0x59e25d(0x157)][_0x59e25d(0x159)],_0x307983[_0x59e25d(0xe4)]])[_0x59e25d(0x183)](async([_0x590efd,_0x5b66d4])=>{const _0x26e138=_0x59e25d;if(_0x590efd[_0x26e138(0x11a)]===_0x430f66[_0x26e138(0x192)]&&(_0x5b66d4==null?void 0x0:_0x5b66d4['status'])===_0x38b07e[_0x26e138(0xfb)]&&_0x590efd['data'][_0x26e138(0x11e)]['some'](_0x4746f4=>_0x4746f4['id']===_0x5069ca['id'])&&await _0x4cc53f()){var _0x1b16c8;this[_0x26e138(0xf9)][_0x26e138(0x199)](),_0x202645[_0x26e138(0x129)](),this['_revertErrorTimer']&&clearTimeout(this[_0x26e138(0x10d)]),await((_0x1b16c8=this['_localCacheService'])==null?void 0x0:_0x1b16c8[_0x26e138(0x15e)]()),this[_0x26e138(0xe3)]['removeAll']();}});_0xccd829&&(this[_0x59e25d(0x10d)]=setTimeout(()=>{const _0x1cae4e=_0x59e25d;_0x202645[_0x1cae4e(0x129)](),this['_messageService'][_0x1cae4e(0x15d)]({'content':this[_0x1cae4e(0x197)]['t'](_0x1cae4e(0x184)),'type':_0x5c4b9d[_0x1cae4e(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x345ff2,_0x274046){const _0x5e71fe=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x345ff2,_0x274046),_0x345ff2[_0x5e71fe(0x104)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](_0x495054=>{const _0x283764=_0x5e71fe;_0x495054&&this[_0x283764(0xfc)](_0x495054);}),this[_0x5e71fe(0xfa)][_0x5e71fe(0x12f)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](()=>this[_0x5e71fe(0x122)](_0x345ff2,_0x274046));}[_0xcdc2b4(0xfc)](_0x298ba0,_0x5d054f=!0x1){const _0x1b8bf7=_0xcdc2b4;let _0x9a5ad8=this[_0x1b8bf7(0xfa)][_0x1b8bf7(0x114)](_0x1b8bf7(0x13a));_0x298ba0[_0x1b8bf7(0x14e)]()!==_0x9a5ad8&&this[_0x1b8bf7(0xfa)]['setParam'](_0x1b8bf7(0x13a),_0x298ba0[_0x1b8bf7(0x14e)](),_0x5d054f);}async[_0xcdc2b4(0x122)](_0x1cbc45,_0x21b980){const _0x5c19ca=_0xcdc2b4;var _0x2622ac;if(!_0x21b980||!_0x1cbc45['getSheetBySheetId'](_0x21b980)){let _0x2eca78=_0x1cbc45[_0x5c19ca(0x14f)]()[0x0],_0x7d9a21=_0x1cbc45['getSheetBySheetId'](_0x2eca78);if(!_0x7d9a21)return;this[_0x5c19ca(0xfc)](_0x7d9a21,!0x0),await this['_commandService'][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x2eca78});return;}((_0x2622ac=_0x1cbc45[_0x5c19ca(0x13f)]())==null?void 0x0:_0x2622ac[_0x5c19ca(0x14e)]())!==_0x21b980&&await this[_0x5c19ca(0x146)][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x21b980});}};function _0x576c(_0x16a0e7,_0x4ef57b){_0x16a0e7=_0x16a0e7-0xdb;const _0x3a8074=_0x3a80();let _0x576cce=_0x3a8074[_0x16a0e7];return _0x576cce;}J=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],J);const Y=_0xcdc2b4(0x14c);let X=class extends _0x2fbf81{constructor(_0x4e0033,_0x91d1de,_0x1cd060,_0x58606f,_0x2c6738,_0x594168,_0x48b44e,_0xd43cd9,_0x504550,_0x689f63){const _0x380b6f=_0xcdc2b4;super(),this[_0x380b6f(0x197)]=_0x4e0033,this[_0x380b6f(0x10a)]=_0x91d1de,this['_configService']=_0x1cd060,this[_0x380b6f(0x146)]=_0x58606f,this[_0x380b6f(0xe3)]=_0x2c6738,this['_permissionService']=_0x594168,this[_0x380b6f(0xea)]=_0x48b44e,this[_0x380b6f(0x147)]=_0xd43cd9,this[_0x380b6f(0x133)]=_0x504550,this[_0x380b6f(0x13b)]=_0x689f63,B(this,'_historyUniver$',new _0x4e9a7e(null)),B(this,_0x380b6f(0x101),this[_0x380b6f(0x17d)][_0x380b6f(0x120)]()),B(this,_0x380b6f(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this[_0x380b6f(0x135)]();}get[_0xcdc2b4(0x13c)](){const _0x1fd52e=_0xcdc2b4;return this[_0x1fd52e(0x17d)][_0x1fd52e(0xe0)];}['_init'](){const _0x39714f=_0xcdc2b4;this['_initContainer'](),this[_0x39714f(0x112)]();}['_initContainer'](){const _0x10aaa4=_0xcdc2b4;var _0x3f3abe;let _0x30e662=(_0x3f3abe=this['_configService'][_0x10aaa4(0x132)](_0x10aaa4(0x188)))==null?_0x10aaa4(0xdd):_0x3f3abe,_0x1c074f=document[_0x10aaa4(0xe2)](_0x30e662);if(!_0x1c074f)return;let _0x90f691=document[_0x10aaa4(0x167)](_0x10aaa4(0x151));_0x90f691['id']=Y,_0x90f691[_0x10aaa4(0x18b)][_0x10aaa4(0x154)]=_0x10aaa4(0x137),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x118)]=_0x10aaa4(0xf4),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x134)]='0',_0x90f691['style'][_0x10aaa4(0x152)]='0',_0x90f691[_0x10aaa4(0x156)]['width']='100%',_0x90f691[_0x10aaa4(0x156)]['height']=_0x10aaa4(0xe1),_0x90f691['style'][_0x10aaa4(0x163)]='49',_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x193)]=_0x10aaa4(0xdf),_0x1c074f[_0x10aaa4(0xe6)](_0x90f691);}[_0xcdc2b4(0x112)](){const _0x4586b4=_0xcdc2b4;[[_0x5ca134],[_0x4bfa13,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0x25859c],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x340c42],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x5de188],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x4586b4(0x155)](([_0x4ef21c,_0x1cf992])=>this[_0x4586b4(0xed)](_0x4ef21c,_0x1cf992));}[_0xcdc2b4(0x108)](){const _0xdc119b=_0xcdc2b4;super[_0xdc119b(0x108)](),this[_0xdc119b(0x199)](),this[_0xdc119b(0x172)][_0xdc119b(0x144)]();}['registerPlugin'](_0x148daa,_0x28bb54,_0x3e49a7){const _0x4833c3=_0xcdc2b4;if(this['_pluginMap'][_0x4833c3(0xde)](_0x148daa[_0x4833c3(0x17e)])&&!_0x3e49a7)throw Error(_0x4833c3(0x11c)+_0x148daa[_0x4833c3(0x17e)]+_0x4833c3(0x12b));this[_0x4833c3(0x172)][_0x4833c3(0x162)](_0x148daa[_0x4833c3(0x17e)],[_0x148daa,_0x28bb54]);}[_0xcdc2b4(0x186)](){const _0xe90430=_0xcdc2b4;return Array[_0xe90430(0x12d)](this[_0xe90430(0x172)][_0xe90430(0x187)]());}[_0xcdc2b4(0x161)](_0xd35454,_0x148e97){const _0x56764a=_0xcdc2b4;let _0x57a5e6=document['getElementById'](Y);_0x57a5e6&&(_0x57a5e6['style'][_0x56764a(0x193)]='block',this['_initUniver'](_0xd35454,Y,_0x148e97));}['unMountHistoryContent'](){const _0x5ad560=_0xcdc2b4;var _0x17bf73;this['_disposableCollection'][_0x5ad560(0x108)](),(_0x17bf73=this[_0x5ad560(0x13c)])==null||_0x17bf73[_0x5ad560(0x108)](),this[_0x5ad560(0x17d)][_0x5ad560(0x143)](null);let _0xcfa96f=document[_0x5ad560(0xe2)](Y);_0xcfa96f&&(_0xcfa96f[_0x5ad560(0x156)][_0x5ad560(0x193)]=_0x5ad560(0xdf),this['_internalWebWorker']&&(this[_0x5ad560(0x18c)][_0x5ad560(0x121)](),this[_0x5ad560(0x18c)]=null));}[_0xcdc2b4(0x19b)](_0x12174d,_0x49f086,_0x105b81){const _0x1fa3ef=_0xcdc2b4;var _0x3ac14d,_0x1a60de,_0x728ba0,_0x38eb80;if(this[_0x1fa3ef(0x13c)])return;let _0x273226=new _0x1792d9({'locales':{[this[_0x1fa3ef(0x197)][_0x1fa3ef(0x142)]()]:this[_0x1fa3ef(0x197)][_0x1fa3ef(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x51e8e1=_0x273226[_0x1fa3ef(0x165)]();this['disposeWithMe'](this[_0x1fa3ef(0x13b)][_0x1fa3ef(0x123)][_0x1fa3ef(0x183)](_0x154bbe=>{const _0x2c1822=_0x1fa3ef;_0x51e8e1['get'](_0x3616cc)[_0x2c1822(0x107)](_0x154bbe);})),this[_0x1fa3ef(0x169)](this['_themeService'][_0x1fa3ef(0xdc)][_0x1fa3ef(0x183)](_0x393642=>{const _0x5c7ecb=_0x1fa3ef;_0x51e8e1[_0x5c7ecb(0x16b)](_0x3616cc)[_0x5c7ecb(0x180)](_0x393642);})),_0x51e8e1[_0x1fa3ef(0x16b)](_0x5146f1)['setLocale'](this[_0x1fa3ef(0x197)]['getCurrentLocale']()),_0x51e8e1[_0x1fa3ef(0x16b)](_0x2bc188)['setConfig'](_0x1d4dca,this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1d4dca));let _0x31672b=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x4df753);_0x31672b&&_0x273226['registerPlugin'](_0x13b78b,{'license':_0x31672b['ls']});let _0x40cf32=(_0x3ac14d=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3ac14d[_0x1fa3ef(0x18d)],_0x29ea60=!!_0x40cf32;_0x29ea60&&(this[_0x1fa3ef(0x18c)]=_0x40cf32 instanceof Worker?_0x40cf32:null,_0x273226[_0x1fa3ef(0xed)](_0x55c6e8,{'workerURL':_0x40cf32})),this[_0x1fa3ef(0x172)]['forEach'](([_0x34343e,_0xd50e05])=>{_0x273226['registerPlugin'](_0x34343e,_0xd50e05);}),_0x273226[_0x1fa3ef(0xed)](_0xa47d47,{'historyListServerUrl':(_0x1a60de=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x1a60de['historyListServerUrl'],'historyPanelComponentKey':(_0x728ba0=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1fa3ef(0x131)))==null?void 0x0:_0x728ba0[_0x1fa3ef(0x105)],'historyPanelHidden':(_0x38eb80=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x38eb80[_0x1fa3ef(0x16e)]}),_0x51e8e1['invoke'](_0x2a32a3=>{const _0x1f3349=_0x1fa3ef;this[_0x1f3349(0x100)](_0x2a32a3,_0x12174d);}),this[_0x1fa3ef(0x17d)][_0x1fa3ef(0x143)](_0x273226);let _0x38eed9=_0x51e8e1[_0x1fa3ef(0x16b)](_0x3f326a),_0x36719a=this[_0x1fa3ef(0x124)](_0x12174d),_0x2f650c=()=>{const _0x51e462=_0x1fa3ef;_0x105b81?_0x38eed9[_0x51e462(0x115)](_0x12174d,_0x49f086,_0x36719a,_0x105b81):_0x38eed9[_0x51e462(0xf5)](_0x12174d,_0x49f086,_0x36719a);};if(this[_0x1fa3ef(0xe3)]['show']({'content':this[_0x1fa3ef(0x197)]['t'](_0x1fa3ef(0x136)),'type':_0x5c4b9d[_0x1fa3ef(0x12a)]}),_0x29ea60)try{_0x51e8e1[_0x1fa3ef(0x16b)](_0x1f2f8c)['whenReady']()[_0x1fa3ef(0x198)](()=>{_0x2f650c();});}catch{_0x2f650c();}else _0x2f650c();}[_0xcdc2b4(0x100)](_0x2667df,_0x42febb){const _0x254802=_0xcdc2b4;let _0xa1a8ec=_0x2667df[_0x254802(0x16b)](_0x3f326a);this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x177)][_0x254802(0x183)](_0x562ec1=>{const _0x53cee0=_0x254802;switch(_0x562ec1){case _0x509d16[_0x53cee0(0x113)]:this[_0x53cee0(0x147)][_0x53cee0(0x174)](),this[_0x53cee0(0x133)][_0x53cee0(0x173)]();break;case _0x509d16[_0x53cee0(0x148)]:this[_0x53cee0(0x146)]['executeCommand'](q['id']),this[_0x53cee0(0x199)]();break;case _0x509d16['Error']:this[_0x53cee0(0x199)](),this[_0x53cee0(0xe3)][_0x53cee0(0x15d)]({'content':this[_0x53cee0(0x197)]['t'](_0x53cee0(0x10b)),'type':_0x5c4b9d[_0x53cee0(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x11b)][_0x254802(0x183)](async _0x1c7021=>{const _0xb97c38=_0x254802;_0x1c7021&&this[_0xb97c38(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x42febb,'revision':_0x1c7021});}));}[_0xcdc2b4(0x124)](_0x405178){const _0x5e3dd7=_0xcdc2b4;let _0x1e7fc3=this['_univerInstanceService'][_0x5e3dd7(0x126)](_0x405178)[_0x5e3dd7(0x10f)]()[_0x5e3dd7(0x16c)](_0x83bfbd=>_0x83bfbd[_0x5e3dd7(0x14e)]()),_0x5e63f2=new _0x131768(_0x405178)['id'],_0xfc9c9c=_0x1e7fc3['map'](_0x3fd35e=>new _0x51fdf5(_0x405178,_0x3fd35e)['id']),_0x574b1a=_0x1e7fc3[_0x5e3dd7(0x16c)](_0x5e8aa5=>this[_0x5e3dd7(0xea)][_0x5e3dd7(0x103)](_0x405178,_0x5e8aa5)[_0x5e3dd7(0x16c)](_0x3c04de=>new _0x24d965(_0x405178,_0x5e8aa5,_0x3c04de[_0x5e3dd7(0x185)])['id']))['flat'](),_0x2205f0=new _0x41ee57(_0x405178)['id'];return this[_0x5e3dd7(0x18f)][_0x5e3dd7(0x119)]([_0x5e63f2,..._0xfc9c9c,..._0x574b1a,_0x2205f0])[_0x5e3dd7(0x164)](_0x322628=>!!_0x322628[_0x5e3dd7(0xe0)]);}};X=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],X);let Z=class extends _0x5d4f75{constructor(_0xe06082=R,_0xec05a,_0x355176){const _0x33df08=_0xcdc2b4;super(),this['_config']=_0xe06082,this['_injector']=_0xec05a,this[_0x33df08(0x196)]=_0x355176;let {menu:_0x2e5fed,..._0x429e86}=_0x462db5({},R,this[_0x33df08(0x149)]);_0x2e5fed&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x10e),_0x2e5fed,{'merge':!0x0}),this[_0x33df08(0x196)][_0x33df08(0x182)](L,_0x429e86),this[_0x33df08(0x149)]['univerContainerId']&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x188),this[_0x33df08(0x149)][_0x33df08(0xf1)]);}['onStarting'](){const _0x3d6424=_0xcdc2b4;[[G,{'useClass':X}],[J]][_0x3d6424(0x155)](_0x53c94d=>this[_0x3d6424(0xe7)]['add'](_0x53c94d));}[_0xcdc2b4(0x170)](){const _0x5f257c=_0xcdc2b4;this[_0x5f257c(0xe7)]['get'](J);}};B(Z,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B(Z,_0xcdc2b4(0x17e),_0xcdc2b4(0xee)),B(Z,_0xcdc2b4(0x138),ct),B(Z,_0xcdc2b4(0x17b),lt),Z=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],Z);let Q=class extends _0x1ddce9{constructor(_0x545eeb,_0x40aaf4,_0x28a1a6,_0x2e910d,_0x4ca0cc,_0x585b3f,_0x55a707,_0x15e9d7,_0x46984f,_0x741175,_0x5728d5){const _0x2c2633=_0xcdc2b4;super(),this[_0x2c2633(0x146)]=_0x545eeb,this[_0x2c2633(0xef)]=_0x40aaf4,this[_0x2c2633(0x178)]=_0x28a1a6,this['_historyManagerService']=_0x2e910d,this['_localeService']=_0x4ca0cc,this[_0x2c2633(0xe3)]=_0x585b3f,this[_0x2c2633(0x11f)]=_0x55a707,this['_localCacheService']=_0x15e9d7,this[_0x2c2633(0x15a)]=_0x46984f,this['_univerInstanceService']=_0x741175,this[_0x2c2633(0xfa)]=_0x5728d5,B(this,_0x2c2633(0x10d),null),this[_0x2c2633(0x135)]();}['_init'](){const _0x47a832=_0xcdc2b4;[K,q]['forEach'](_0xb8c6a3=>this[_0x47a832(0x169)](_0x158d14(this[_0x47a832(0x146)][_0x47a832(0x14b)](_0xb8c6a3)))),this[_0x47a832(0x169)](this['_componentManager'][_0x47a832(0x15c)](_0x47a832(0x168),_0x1c442a)),this['_menuManagerService']['mergeMenu'](dt),this['disposeWithMe'](this[_0x47a832(0x146)]['onCommandExecuted'](async(_0x5650ed,_0x5b3f86)=>{const _0x3e4e6b=_0x47a832;if(_0x5650ed['id']===_0x5069ca['id']){let {unitId:_0x1070a8}=_0x5650ed[_0x3e4e6b(0x11d)];this[_0x3e4e6b(0xe3)][_0x3e4e6b(0x15d)]({'content':this[_0x3e4e6b(0x197)]['t'](_0x3e4e6b(0x14d)),'type':_0x5c4b9d[_0x3e4e6b(0x12a)],'duration':0x1388});let _0x171430=this['_collaborationController'][_0x3e4e6b(0xff)](_0x1070a8);_0x5b3f86!=null&&_0x5b3f86[_0x3e4e6b(0xf0)]?this[_0x3e4e6b(0x110)](_0x171430,async()=>(setTimeout(()=>window[_0x3e4e6b(0x12c)][_0x3e4e6b(0x18a)]()),!0x0),!0x0):this[_0x3e4e6b(0x110)](_0x171430,async()=>{const _0x1a8cf9=_0x3e4e6b;let _0x206c37=this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x191)](_0x526e34['UNIVER_SHEET']),_0x28ae7d=_0x206c37==null?void 0x0:_0x206c37[_0x1a8cf9(0x13f)]();if(!_0x28ae7d)return!0x1;this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x19c)](_0x1070a8);let _0x1bf1bc=await this[_0x1a8cf9(0x15a)][_0x1a8cf9(0x13e)](_0x1070a8,_0x526e34['UNIVER_SHEET']);return _0x1bf1bc&&_0x1bf1bc instanceof _0x4fb4cf?(await this[_0x1a8cf9(0xf6)](_0x1bf1bc,_0x28ae7d[_0x1a8cf9(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x4fdcf3,_0x3beb2a,_0x2214b3=!0x1){const _0x56e5c7=_0xcdc2b4;let _0x104c63=_0x1ff757([_0x4fdcf3[_0x56e5c7(0x157)][_0x56e5c7(0x159)],_0x4fdcf3[_0x56e5c7(0xe4)]])[_0x56e5c7(0x183)](async([_0x694a0b,_0x8d93ee])=>{const _0x1ad04d=_0x56e5c7;if(_0x694a0b[_0x1ad04d(0x11a)]===_0x430f66[_0x1ad04d(0x192)]&&(_0x8d93ee==null?void 0x0:_0x8d93ee[_0x1ad04d(0x176)])===_0x38b07e['SYNCED']&&_0x694a0b['data']['mutations'][_0x1ad04d(0x14a)](_0xb805f=>_0xb805f['id']===_0x5069ca['id'])&&await _0x3beb2a()){var _0x11f87c;this[_0x1ad04d(0xf9)]['unMountHistoryContent'](),_0x104c63[_0x1ad04d(0x129)](),this[_0x1ad04d(0x10d)]&&clearTimeout(this['_revertErrorTimer']),await((_0x11f87c=this[_0x1ad04d(0x195)])==null?void 0x0:_0x11f87c['exhaustSavingTask']());}});_0x2214b3&&(this[_0x56e5c7(0x10d)]=setTimeout(()=>{const _0x552be6=_0x56e5c7;_0x104c63['unsubscribe'](),this[_0x552be6(0xe3)]['show']({'content':this[_0x552be6(0x197)]['t']('editHistory.panel.revertFailed'),'type':_0x5c4b9d[_0x552be6(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x4b3188,_0x308750){const _0xfd97ce=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750),_0x4b3188['activeSheet$'][_0xfd97ce(0x145)](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](_0xe39264=>{const _0x96855=_0xfd97ce;_0xe39264&&this[_0x96855(0xfc)](_0xe39264);}),this['_urlService'][_0xfd97ce(0x12f)]['pipe'](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](()=>this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750));}['_updateURLWithCurrentState'](_0x327196,_0xd3c7dc=!0x1){const _0x317c3e=_0xcdc2b4;let _0x553f42=this['_urlService'][_0x317c3e(0x114)](_0x317c3e(0x13a));_0x327196[_0x317c3e(0x14e)]()!==_0x553f42&&this['_urlService'][_0x317c3e(0x175)]('subunit',_0x327196[_0x317c3e(0x14e)](),_0xd3c7dc);}async['_updateSubUnitFromURLParams'](_0x332d76,_0x1b07ca){const _0x6d942e=_0xcdc2b4;var _0x1dc14c;if(!_0x1b07ca||!_0x332d76[_0x6d942e(0x116)](_0x1b07ca)){let _0x22797d=_0x332d76['getUnhiddenWorksheets']()[0x0],_0x1c34e5=_0x332d76[_0x6d942e(0x116)](_0x22797d);if(!_0x1c34e5)return;this[_0x6d942e(0xfc)](_0x1c34e5,!0x0),await this[_0x6d942e(0x146)]['executeCommand'](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x22797d});return;}((_0x1dc14c=_0x332d76[_0x6d942e(0x13f)]())==null?void 0x0:_0x1dc14c['getSheetId']())!==_0x1b07ca&&await this[_0x6d942e(0x146)][_0x6d942e(0x18e)](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x1b07ca});}};Q=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],Q);let $=class extends _0x5d4f75{constructor(_0x2a6b70=R,_0x301b46,_0x539ca2){const _0x331eb1=_0xcdc2b4;super(),this['_config']=_0x2a6b70,this[_0x331eb1(0xe7)]=_0x301b46,this[_0x331eb1(0x196)]=_0x539ca2;let {menu:_0xf038cd,..._0x301c82}=_0x462db5({},R,this[_0x331eb1(0x149)]);_0xf038cd&&this[_0x331eb1(0x196)]['setConfig'](_0x331eb1(0x10e),_0xf038cd,{'merge':!0x0}),this[_0x331eb1(0x196)]['setConfig'](L,_0x301c82),this['_config'][_0x331eb1(0xf1)]&&this['_configService'][_0x331eb1(0x182)](U,this[_0x331eb1(0x149)][_0x331eb1(0xf1)]);}[_0xcdc2b4(0x109)](){const _0x2ea886=_0xcdc2b4;[[G],[Q]]['forEach'](_0x150556=>this[_0x2ea886(0xe7)][_0x2ea886(0x171)](_0x150556));}[_0xcdc2b4(0x170)](){const _0x10d906=_0xcdc2b4;this[_0x10d906(0xe7)]['get'](Q);}};B($,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,_0xcdc2b4(0x138),ct),B($,'version',lt),$=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],$);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 _0x30cee0=_0x8e5c;(function(_0x257f7e,_0x41a4a2){const _0x906ad9=_0x8e5c,_0x4de9f5=_0x257f7e();while(!![]){try{const _0x4b5638=parseInt(_0x906ad9(0x198))/0x1+parseInt(_0x906ad9(0x1cb))/0x2+parseInt(_0x906ad9(0x215))/0x3+-parseInt(_0x906ad9(0x1d6))/0x4+-parseInt(_0x906ad9(0x174))/0x5+parseInt(_0x906ad9(0x1bf))/0x6+parseInt(_0x906ad9(0x21b))/0x7;if(_0x4b5638===_0x41a4a2)break;else _0x4de9f5['push'](_0x4de9f5['shift']());}catch(_0x4f00d2){_0x4de9f5['push'](_0x4de9f5['shift']());}}}(_0x4791,0x8eec8));import{CommandType as _0x417d54,DependentOn as _0xd3d8f5,Disposable as _0x38c581,DisposableCollection as _0x57be15,IAuthzIoService as _0x127ad8,ICommandService as _0x10df23,IConfigService as _0x4d97a0,IPermissionService as _0x38da5f,IUniverInstanceService as _0x757a60,Inject as _0x176299,Injector as _0xfd563a,LocaleService as _0x44bc99,Plugin as _0x852139,RxDisposable as _0x374fa8,ThemeService as _0x5ddc3f,Univer as _0x2fd0f5,UniverInstanceType as _0x148251,Workbook as _0x48882a,merge as _0x3896f6,toDisposable as _0x3e927d}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x51a168,RangeProtectionRuleModel as _0x1cbb88,SetWorksheetActivateCommand as _0x14a98d,UniverSheetsPlugin as _0x3f206c,WorkbookEditablePermission as _0x43a0ac,WorkbookRecoverHistoryPermission as _0x57d2d6,WorkbookViewHistoryPermission as _0x1f2f44,WorksheetEditPermission as _0x49770f,getSheetCommandTarget as _0x4610c1}from'@univerjs/sheets';import{CollaborationEvent as _0x288cbe,RevertRevisionMutation as _0x5b0966,UniverCollaborationPlugin as _0x1c3c75}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x2ed596,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x338bd6,CollaborationController as _0x261ebc,CollaborationStatus as _0x15958f,DataLoaderService as _0x5f3260,ILocalCacheService as _0x3911fe}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x405830,HistoryModeStatus as _0x2da942,UniverEditHistoryViewerMobilePlugin as _0x25046b,UniverEditHistoryViewerPlugin as _0x18f23d}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3304c0,UniverLicensePlugin as _0xc828e}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x37e97d}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x298f86}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2f949d}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x17614d}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x4f732f}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0xbfd183}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5c9f50}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x5b485b}from'@univerjs/data-validation';import{MessageType as _0x1096cb}from'@univerjs/design';import{UniverDocsPlugin as _0x5ce928}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x57d833}from'@univerjs/docs-ui';import{IImageIoService as _0x1bb8d0,UniverDrawingPlugin as _0x4da563}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x469f48}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x18567a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x24b5f8}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x8802b6}from'@univerjs/network';import{IRemoteInstanceService as _0x4453db,UniverRPCMainThreadPlugin as _0xb2c054}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x58d35e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x371ab4}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5c9d52}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x396896,UniverSheetsDataValidationUIPlugin as _0x212bc8}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x2318b1}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1d2814}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x44e6f6}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x7d139b}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x400283}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x532a31}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x34cfd3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x505b2c}from'@univerjs/sheets-hyper-link-ui';function _0x8e5c(_0x5a14ae,_0x471d23){_0x5a14ae=_0x5a14ae-0x167;const _0x479101=_0x4791();let _0x8e5cec=_0x479101[_0x5a14ae];return _0x8e5cec;}import{UniverSheetsNumfmtPlugin as _0x2e80bd}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x1591b5}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x2a739f,UniverSheetsUIPlugin as _0x4a4c81,getCurrentRangeDisable$ as _0x2eeeed}from'@univerjs/sheets-ui';import{ComponentManager as _0x3fa206,IDialogService as _0x3375b0,IMenuManagerService as _0x49b1ee,IMessageService as _0x3095a2,ISidebarService as _0x22d10b,MenuItemType as _0x20b139,RibbonStartGroup as _0xdbe3ab,UniverMobileUIPlugin as _0x567c9c,UniverUIPlugin as _0x97cbce,getMenuHiddenObservable as _0x319495}from'@univerjs/ui';import{BehaviorSubject as _0x6655f1,combineLatest as _0x451b3f,takeUntil as _0xaee6e3}from'rxjs';import{IURLService as _0x53cf4f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x2ba663}from'@univerjs/icons';import{UniverType as _0x5295ea}from'@univerjs/protocol';const L=_0x30cee0(0x18b);Symbol(L);const R={};function z(_0x557299){'@babel/helpers - typeof';const _0x207d43=_0x30cee0;return z=typeof Symbol==_0x207d43(0x203)&&typeof Symbol[_0x207d43(0x205)]==_0x207d43(0x173)?function(_0x1fe456){return typeof _0x1fe456;}:function(_0x11cf89){const _0x1daa16=_0x207d43;return _0x11cf89&&typeof Symbol==_0x1daa16(0x203)&&_0x11cf89['constructor']===Symbol&&_0x11cf89!==Symbol[_0x1daa16(0x18a)]?_0x1daa16(0x173):typeof _0x11cf89;},z(_0x557299);}function ot(_0x4d7af4,_0xb12288){const _0x2626eb=_0x30cee0;if(z(_0x4d7af4)!=_0x2626eb(0x180)||!_0x4d7af4)return _0x4d7af4;var _0x3846b2=_0x4d7af4[Symbol[_0x2626eb(0x16d)]];if(_0x3846b2!==void 0x0){var _0x369e18=_0x3846b2[_0x2626eb(0x1a3)](_0x4d7af4,_0xb12288||_0x2626eb(0x1fb));if(z(_0x369e18)!='object')return _0x369e18;throw TypeError(_0x2626eb(0x1c8));}return(_0xb12288===_0x2626eb(0x224)?String:Number)(_0x4d7af4);}function st(_0x1636ce){const _0x10af06=_0x30cee0;var _0x409b02=ot(_0x1636ce,_0x10af06(0x224));return z(_0x409b02)==_0x10af06(0x173)?_0x409b02:_0x409b02+'';}function B(_0x12d3db,_0x1a45b2,_0x7cd817){return(_0x1a45b2=st(_0x1a45b2))in _0x12d3db?Object['defineProperty'](_0x12d3db,_0x1a45b2,{'value':_0x7cd817,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12d3db[_0x1a45b2]=_0x7cd817,_0x12d3db;}function V(_0x30a9c4,_0x35e631){return function(_0x5d52af,_0x22e5e7){_0x35e631(_0x5d52af,_0x22e5e7,_0x30a9c4);};}function H(_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2){const _0x1a6164=_0x30cee0;var _0x57781b=arguments[_0x1a6164(0x1ba)],_0x27a47d=_0x57781b<0x3?_0x210d5c:_0x4d9ac2===null?_0x4d9ac2=Object['getOwnPropertyDescriptor'](_0x210d5c,_0x4d0bdd):_0x4d9ac2,_0x19abbe;if(typeof Reflect==_0x1a6164(0x180)&&typeof Reflect[_0x1a6164(0x219)]==_0x1a6164(0x203))_0x27a47d=Reflect[_0x1a6164(0x219)](_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2);else{for(var _0x20ba3b=_0x553ac0['length']-0x1;_0x20ba3b>=0x0;_0x20ba3b--)(_0x19abbe=_0x553ac0[_0x20ba3b])&&(_0x27a47d=(_0x57781b<0x3?_0x19abbe(_0x27a47d):_0x57781b>0x3?_0x19abbe(_0x210d5c,_0x4d0bdd,_0x27a47d):_0x19abbe(_0x210d5c,_0x4d0bdd))||_0x27a47d);}return _0x57781b>0x3&&_0x27a47d&&Object[_0x1a6164(0x212)](_0x210d5c,_0x4d0bdd,_0x27a47d),_0x27a47d;}const U='UNIVER_CONTAINER_ID',W=_0x30cee0(0x1e8);let G=class extends _0x38c581{constructor(_0x336186,_0x3bc2b4,_0x154da6,_0x35da6c,_0x1a8e69,_0x2165c6,_0xe54ae,_0x49a10d,_0xca44ca,_0x3fe9c9){const _0xff1944=_0x30cee0;super(),this[_0xff1944(0x1a5)]=_0x336186,this[_0xff1944(0x16c)]=_0x3bc2b4,this[_0xff1944(0x21c)]=_0x154da6,this[_0xff1944(0x225)]=_0x35da6c,this[_0xff1944(0x1d0)]=_0x1a8e69,this[_0xff1944(0x1f6)]=_0x2165c6,this['_selectionProtectionRuleModel']=_0xe54ae,this[_0xff1944(0x191)]=_0x49a10d,this[_0xff1944(0x1ae)]=_0xca44ca,this[_0xff1944(0x16b)]=_0x3fe9c9,B(this,_0xff1944(0x1c2),new _0x6655f1(null)),B(this,_0xff1944(0x16a),this['_historyUniver$'][_0xff1944(0x20e)]()),B(this,'_disposableCollection',new _0x57be15()),B(this,'_pluginMap',new Map()),B(this,_0xff1944(0x1d4),null),this[_0xff1944(0x1e3)]();}get['historyUniver'](){const _0x441931=_0x30cee0;return this['_historyUniver$'][_0x441931(0x200)];}[_0x30cee0(0x1e3)](){const _0x54d37c=_0x30cee0;this['_initContainer'](),this[_0x54d37c(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x5b03d4=_0x30cee0;var _0x31a56e;let _0x531b1c=(_0x31a56e=this[_0x5b03d4(0x21c)][_0x5b03d4(0x1e9)]('UNIVER_CONTAINER_ID'))==null?_0x5b03d4(0x1ce):_0x31a56e,_0x3043f0=document[_0x5b03d4(0x189)](_0x531b1c);if(!_0x3043f0)return;let _0x10cd8a=document[_0x5b03d4(0x201)](_0x5b03d4(0x18c));_0x10cd8a['id']=W,_0x10cd8a['dataset'][_0x5b03d4(0x1f7)]='history-container',_0x10cd8a['style'][_0x5b03d4(0x1ad)]=_0x5b03d4(0x196),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1be)]='0',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x17d)]='0',_0x10cd8a[_0x5b03d4(0x1b1)]['width']=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1e1)]=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x202)]='49',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1ac)]='none',_0x3043f0[_0x5b03d4(0x207)](_0x10cd8a);}[_0x30cee0(0x1dd)](){const _0x1c7174=_0x30cee0;[[_0x24b5f8],[_0x97cbce,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x4a4c81],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x7d139b],[_0x58d35e],[_0x371ab4],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x212bc8],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]][_0x1c7174(0x1b6)](([_0x231c68,_0x342c19])=>this['registerPlugin'](_0x231c68,_0x342c19));}[_0x30cee0(0x1d9)](){const _0x589a22=_0x30cee0;super[_0x589a22(0x1d9)](),this[_0x589a22(0x221)](),this[_0x589a22(0x1b5)][_0x589a22(0x181)]();}['registerPlugin'](_0x548a52,_0x5bec4a,_0xab076e){const _0x38ccd5=_0x30cee0;if(this['_pluginMap'][_0x38ccd5(0x216)](_0x548a52['pluginName'])&&!_0xab076e)throw Error(_0x38ccd5(0x206)+_0x548a52[_0x38ccd5(0x1a0)]+_0x38ccd5(0x176));this[_0x38ccd5(0x1b5)][_0x38ccd5(0x1bd)](_0x548a52[_0x38ccd5(0x1a0)],[_0x548a52,_0x5bec4a]);}[_0x30cee0(0x186)](){const _0x274771=_0x30cee0;return Array[_0x274771(0x18e)](this['_pluginMap'][_0x274771(0x197)]());}[_0x30cee0(0x209)](_0x372aa2,_0xbf69a4){const _0x5b10c9=_0x30cee0;let _0x52469a=document[_0x5b10c9(0x189)](W);_0x52469a&&(_0x52469a[_0x5b10c9(0x1b1)][_0x5b10c9(0x1ac)]=_0x5b10c9(0x1c6),this[_0x5b10c9(0x1e4)](_0x372aa2,W,_0xbf69a4));}['unMountHistoryContent'](){const _0x4e54f2=_0x30cee0;var _0x2fdcd5;this[_0x4e54f2(0x1fd)][_0x4e54f2(0x1d9)](),(_0x2fdcd5=this[_0x4e54f2(0x1f4)])==null||_0x2fdcd5[_0x4e54f2(0x1d9)](),this[_0x4e54f2(0x1c2)][_0x4e54f2(0x20f)](null);let _0x5d0919=document[_0x4e54f2(0x189)](W);_0x5d0919&&(_0x5d0919[_0x4e54f2(0x1b1)][_0x4e54f2(0x1ac)]=_0x4e54f2(0x21e),this[_0x4e54f2(0x1d4)]&&(this[_0x4e54f2(0x1d4)][_0x4e54f2(0x218)](),this[_0x4e54f2(0x1d4)]=null));}['_initUniver'](_0x4e228,_0x5dca58,_0x40799c){const _0x33a7b2=_0x30cee0;var _0x3eeb7f,_0x19f890,_0x379c13,_0x5ed563,_0x185614;if(this[_0x33a7b2(0x1f4)])return;let _0x3d8a97=new _0x2fd0f5({'locales':{[this[_0x33a7b2(0x1a5)][_0x33a7b2(0x190)]()]:this[_0x33a7b2(0x1a5)][_0x33a7b2(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x175d87=_0x3d8a97[_0x33a7b2(0x1fe)]();this[_0x33a7b2(0x1c7)](this[_0x33a7b2(0x16b)][_0x33a7b2(0x1cf)][_0x33a7b2(0x1b9)](_0x3f9ea6=>{const _0x125a91=_0x33a7b2;_0x175d87[_0x125a91(0x192)](_0x5ddc3f)[_0x125a91(0x19a)](_0x3f9ea6);})),this[_0x33a7b2(0x1c7)](this['_themeService'][_0x33a7b2(0x178)][_0x33a7b2(0x1b9)](_0x20e7e2=>{const _0x329cd7=_0x33a7b2;_0x175d87['get'](_0x5ddc3f)[_0x329cd7(0x1ab)](_0x20e7e2);})),_0x175d87[_0x33a7b2(0x192)](_0x44bc99)[_0x33a7b2(0x20c)](this['_localeService'][_0x33a7b2(0x190)]()),_0x175d87[_0x33a7b2(0x192)](_0x4d97a0)['setConfig'](_0x338bd6,this[_0x33a7b2(0x21c)]['getConfig'](_0x338bd6));let _0x1be802=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x3304c0);_0x1be802&&_0x3d8a97[_0x33a7b2(0x1d1)](_0xc828e,{'license':_0x1be802['ls']});let _0x370f9=(_0x3eeb7f=this['_configService'][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x3eeb7f[_0x33a7b2(0x20a)],_0x4ec623=!!_0x370f9;_0x4ec623&&(this[_0x33a7b2(0x1d4)]=_0x370f9 instanceof Worker?_0x370f9:null,_0x3d8a97[_0x33a7b2(0x1d1)](_0xb2c054,{'workerURL':_0x370f9})),this[_0x33a7b2(0x1b5)][_0x33a7b2(0x1b6)](([_0x3d35df,_0x1b4127])=>{_0x3d8a97['registerPlugin'](_0x3d35df,_0x1b4127);}),_0x3d8a97['registerPlugin'](_0x18f23d,{'historyListServerUrl':(_0x19f890=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x19f890[_0x33a7b2(0x1c3)],'historyPanelComponentKey':(_0x379c13=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x379c13[_0x33a7b2(0x19c)],'historyPanelHidden':(_0x5ed563=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x5ed563[_0x33a7b2(0x213)],'historyAIassistantEnabled':(_0x185614=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x185614[_0x33a7b2(0x211)]}),_0x175d87['invoke'](_0x5dbe6f=>{const _0x2cfdf1=_0x33a7b2;this[_0x2cfdf1(0x1a2)](_0x5dbe6f,_0x4e228);}),this['_historyUniver$'][_0x33a7b2(0x20f)](_0x3d8a97);let _0x83950f=_0x175d87[_0x33a7b2(0x192)](_0x405830),_0x55a52f=this['_checkCanRevert'](_0x4e228),_0x46b98c=()=>{const _0xbdadd5=_0x33a7b2;_0x40799c?_0x83950f[_0xbdadd5(0x179)](_0x4e228,_0x5dca58,_0x55a52f,_0x40799c):_0x83950f[_0xbdadd5(0x1cc)](_0x4e228,_0x5dca58,_0x55a52f);};if(this[_0x33a7b2(0x1d0)][_0x33a7b2(0x185)]({'content':this['_localeService']['t'](_0x33a7b2(0x1d2)),'type':_0x1096cb[_0x33a7b2(0x1ee)]}),_0x4ec623)try{_0x175d87['get'](_0x4453db)[_0x33a7b2(0x20d)]()['then'](()=>{_0x46b98c();});}catch{_0x46b98c();}else _0x46b98c();}['_initListener'](_0x168082,_0x2119f7){const _0x23d056=_0x30cee0;let _0x400f60=_0x168082['get'](_0x405830);this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60['status$']['subscribe'](_0x381419=>{const _0x5e6b48=_0x23d056;switch(_0x381419){case _0x2da942['Entered']:this[_0x5e6b48(0x191)][_0x5e6b48(0x188)](),this[_0x5e6b48(0x1ae)][_0x5e6b48(0x223)]();break;case _0x2da942[_0x5e6b48(0x1b2)]:this[_0x5e6b48(0x225)][_0x5e6b48(0x18f)](q['id']),this[_0x5e6b48(0x221)]();break;case _0x2da942['Error']:this[_0x5e6b48(0x221)](),this[_0x5e6b48(0x1d0)]['show']({'content':this[_0x5e6b48(0x1a5)]['t'](_0x5e6b48(0x220)),'type':_0x1096cb[_0x5e6b48(0x1f9)],'duration':0xbb8});break;default:break;}})),this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60[_0x23d056(0x1f2)]['subscribe'](async _0x389a23=>{const _0x4799bb=_0x23d056;_0x389a23&&this[_0x4799bb(0x225)][_0x4799bb(0x18f)](_0x5b0966['id'],{'unitId':_0x2119f7,'revision':_0x389a23});}));}[_0x30cee0(0x169)](_0x3b8ad0){const _0x120ef4=_0x30cee0;let _0xd0fcb9=this[_0x120ef4(0x16c)][_0x120ef4(0x214)](_0x3b8ad0)['getSheets']()[_0x120ef4(0x1de)](_0x4bc003=>_0x4bc003[_0x120ef4(0x177)]()),_0x28660c=new _0x43a0ac(_0x3b8ad0)['id'],_0x727801=_0xd0fcb9[_0x120ef4(0x1de)](_0x48d4a6=>new _0x49770f(_0x3b8ad0,_0x48d4a6)['id']),_0x310d5a=_0xd0fcb9['map'](_0x546454=>this[_0x120ef4(0x17a)][_0x120ef4(0x1f1)](_0x3b8ad0,_0x546454)[_0x120ef4(0x1de)](_0x4a30b3=>new _0x51a168(_0x3b8ad0,_0x546454,_0x4a30b3[_0x120ef4(0x1f8)])['id']))[_0x120ef4(0x1e5)](),_0x4d0981=new _0x57d2d6(_0x3b8ad0)['id'];return this[_0x120ef4(0x1f6)][_0x120ef4(0x17b)]([_0x28660c,..._0x727801,..._0x310d5a,_0x4d0981])[_0x120ef4(0x21d)](_0x51419f=>!!_0x51419f[_0x120ef4(0x200)]);}};G=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],G);const K={'id':'univer.operation.toggle-edit-history','type':_0x417d54[_0x30cee0(0x1d7)],'handler':_0x11f80e=>{const _0x140ae6=_0x30cee0;let _0x585770=_0x11f80e[_0x140ae6(0x192)](G),{unitId:_0x585e6f}=_0x4610c1(_0x11f80e[_0x140ae6(0x192)](_0x757a60))||{};return _0x585e6f?(_0x585770['mountHistoryContent'](_0x585e6f),!0x0):!0x1;}},q={'id':_0x30cee0(0x21a),'type':_0x417d54[_0x30cee0(0x1d7)],'handler':()=>!0x0};function _0x4791(){const _0x5b8f18=['height','_dataLoaderService','_init','_initUniver','flat','onSteady','data','univer-history-container','getConfig','_menuManagerService','UNIVER_CONTAINER_ID','_config','getCollabEntity','Loading','setConfig','OTHERS','getSubunitRuleList','revertRevision$','getActiveSheet','historyUniver','univer-history-container-mobile','_permissionService','uComp','permissionId','Error','reload','default','getUnitId','_disposableCollection','__getInjector','getCurrentUnitOfType','value','createElement','zIndex','function','UNIVER_SHEET','iterator','[HistoryLoaderService]:\x20Plugin\x20','appendChild','event$','mountHistoryContent','workerURL','getUnhiddenWorksheets','setLocale','whenReady','asObservable','next','status$','historyAIassistantEnabled','defineProperty','historyPanelHidden','getUnit','1902120OyUYqE','has','getSheetBySheetId','terminate','decorate','univer.operation.exit-edit-history','457891zgiCbN','_configService','every','none','loadUnit','editHistory.panel.listFetchError','unMountHistoryContent','register','close','string','_commandService','location','mergeMenu','pipe','_localCacheService','_checkCanRevert','historyUniver$','_themeService','_univerInstanceService','toPrimitive','urlChange$','univerContainerId','session','@univerjs-pro/edit-history-loader','editHistory.panel.revertFailed','symbol','3516750ZtPvhD','exhaustSavingTask','\x20has\x20been\x20registered.','getSheetId','currentTheme$','triggerCustomVersions','_selectionProtectionRuleModel','composePermission','mutations','left','editHistory.panel.reverting','setParam','object','clear','params','then','type','show','getAllPlugins','_setupSubUnitSync','closeAll','getElementById','prototype','edit-history-loader.config','div','getLocales','from','executeCommand','getCurrentLocale','_dialogService','get','editHistory.panel.title','Entered','onCommandExecuted','absolute','values','1006915NYkaPu','_injector','setDarkMode','_historyManagerService','historyPanelComponentKey','_updateSubUnitFromURLParams','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','[MobileHistoryLoaderService]:\x20Plugin\x20','pluginName','subunit','_initListener','call','disposeUnit','_localeService','_componentManager','HistoryIcon','invoke','CHANGESET_ACK','_updateURLWithCurrentState','setTheme','display','position','_sidebarService','getSheets','dispose$','style','Exited','_handleRevertAcknowledgement','getParam','_pluginMap','forEach','BUTTON','version','subscribe','length','fromCollab','state$','set','top','30666FtkXNL','SYNCED','unsubscribe','_historyUniver$','historyListServerUrl','status','activeSheet$','block','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','eventID','381230RQKulr','triggerLoadVersions','registerCommand','univer-container','darkMode$','_messageService','registerPlugin','editHistory.info.initializing','100%','_internalWebWorker','_collaborationController','2453312XuZbuI','OPERATION','UNIVER_UNKNOWN','dispose','some','_initContainer','_urlService','_initPlugins','map','add','_revertErrorTimer'];_0x4791=function(){return _0x5b8f18;};return _0x4791();}var ct=_0x30cee0(0x171),lt='0.19.0';function ut(_0x2c0cd8){const _0x3df520=_0x30cee0;return{'id':K['id'],'type':_0x20b139[_0x3df520(0x1b7)],'icon':_0x3df520(0x1a7),'tooltip':_0x3df520(0x193),'hidden$':_0x319495(_0x2c0cd8,_0x148251[_0x3df520(0x204)]),'disabled$':_0x2eeeed(_0x2c0cd8,{'workbookTypes':[_0x43a0ac,_0x1f2f44],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0xdbe3ab[_0x30cee0(0x1f0)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x374fa8{constructor(_0x3074b0,_0xffb83a,_0x5702f6,_0x5d3e7e,_0xf9bc72,_0x53d6d3,_0x559aa8,_0x590535,_0x106511,_0x51a292,_0x50a826){const _0x20850f=_0x30cee0;super(),this[_0x20850f(0x225)]=_0x3074b0,this['_menuManagerService']=_0xffb83a,this['_componentManager']=_0x5702f6,this[_0x20850f(0x19b)]=_0x5d3e7e,this['_localeService']=_0xf9bc72,this[_0x20850f(0x1d0)]=_0x53d6d3,this['_collaborationController']=_0x559aa8,this[_0x20850f(0x168)]=_0x590535,this[_0x20850f(0x1e2)]=_0x106511,this['_univerInstanceService']=_0x51a292,this['_urlService']=_0x50a826,B(this,_0x20850f(0x1e0),null),this[_0x20850f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x16fe49=_0x30cee0;[K,q]['forEach'](_0x375e90=>this[_0x16fe49(0x1c7)](_0x3e927d(this['_commandService'][_0x16fe49(0x1cd)](_0x375e90)))),this['disposeWithMe'](this[_0x16fe49(0x1a6)][_0x16fe49(0x222)](_0x16fe49(0x1a7),_0x2ba663)),this['_menuManagerService'][_0x16fe49(0x227)](dt),this[_0x16fe49(0x1c7)](this[_0x16fe49(0x225)][_0x16fe49(0x195)](async(_0x533901,_0x3e3795)=>{const _0x2f102c=_0x16fe49;if(_0x533901['id']===_0x5b0966['id']){let {unitId:_0x2fbd94}=_0x533901[_0x2f102c(0x182)];this[_0x2f102c(0x1d0)][_0x2f102c(0x185)]({'content':this[_0x2f102c(0x1a5)]['t'](_0x2f102c(0x17e)),'type':_0x1096cb[_0x2f102c(0x1ee)],'duration':0x1388});let _0x38c666=this['_collaborationController']['getCollabEntity'](_0x2fbd94);_0x3e3795!=null&&_0x3e3795[_0x2f102c(0x1bb)]?this[_0x2f102c(0x1b3)](_0x38c666,async()=>(setTimeout(()=>window[_0x2f102c(0x226)][_0x2f102c(0x1fa)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x38c666,async()=>{const _0x5cf223=_0x2f102c;let _0x2fb0fd=this['_univerInstanceService'][_0x5cf223(0x1ff)](_0x5295ea[_0x5cf223(0x204)]),_0x366630=_0x2fb0fd==null?void 0x0:_0x2fb0fd[_0x5cf223(0x1f3)]();if(!_0x366630)return!0x1;this[_0x5cf223(0x16c)][_0x5cf223(0x1a4)](_0x2fbd94);let _0x1df03c=await this[_0x5cf223(0x1e2)][_0x5cf223(0x21f)](_0x2fbd94,_0x5295ea[_0x5cf223(0x204)]);return _0x1df03c&&_0x1df03c instanceof _0x48882a?(await this[_0x5cf223(0x187)](_0x1df03c,_0x366630[_0x5cf223(0x177)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x582da7,_0x4a6a78,_0x50f05e=!0x1){const _0x40fd0c=_0x30cee0;let _0x1fcdb9=_0x451b3f([_0x582da7[_0x40fd0c(0x170)][_0x40fd0c(0x208)],_0x582da7[_0x40fd0c(0x1bc)]])['subscribe'](async([_0x5939a1,_0x34b495])=>{const _0x155a84=_0x40fd0c;if(_0x5939a1[_0x155a84(0x1ca)]===_0x288cbe[_0x155a84(0x1a9)]&&(_0x34b495==null?void 0x0:_0x34b495[_0x155a84(0x1c4)])===_0x15958f[_0x155a84(0x1c0)]&&_0x5939a1[_0x155a84(0x1e7)][_0x155a84(0x17c)][_0x155a84(0x1da)](_0x240bcb=>_0x240bcb['id']===_0x5b0966['id'])&&await _0x4a6a78()){var _0x2a68ca;this[_0x155a84(0x19b)][_0x155a84(0x221)](),_0x1fcdb9[_0x155a84(0x1c1)](),this[_0x155a84(0x1e0)]&&clearTimeout(this[_0x155a84(0x1e0)]),await((_0x2a68ca=this['_localCacheService'])==null?void 0x0:_0x2a68ca[_0x155a84(0x175)]()),this[_0x155a84(0x1d0)]['removeAll']();}});_0x50f05e&&(this[_0x40fd0c(0x1e0)]=setTimeout(()=>{const _0x5a2dde=_0x40fd0c;_0x1fcdb9['unsubscribe'](),this['_messageService'][_0x5a2dde(0x185)]({'content':this[_0x5a2dde(0x1a5)]['t'](_0x5a2dde(0x172)),'type':_0x1096cb[_0x5a2dde(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x80d8e4,_0x56a952){const _0x173d6a=_0x30cee0;await this[_0x173d6a(0x19d)](_0x80d8e4,_0x56a952),_0x80d8e4[_0x173d6a(0x1c5)][_0x173d6a(0x167)](_0xaee6e3(this[_0x173d6a(0x1b0)]))[_0x173d6a(0x1b9)](_0x33d9f0=>{const _0x1f9b71=_0x173d6a;_0x33d9f0&&this[_0x1f9b71(0x1aa)](_0x33d9f0);}),this['_urlService'][_0x173d6a(0x16e)][_0x173d6a(0x167)](_0xaee6e3(this['dispose$']))[_0x173d6a(0x1b9)](()=>this['_updateSubUnitFromURLParams'](_0x80d8e4,_0x56a952));}[_0x30cee0(0x1aa)](_0x28822c,_0x15e237=!0x1){const _0x3f208b=_0x30cee0;let _0x3efb5c=this[_0x3f208b(0x1dc)][_0x3f208b(0x1b4)]('subunit');_0x28822c[_0x3f208b(0x177)]()!==_0x3efb5c&&this['_urlService'][_0x3f208b(0x17f)](_0x3f208b(0x1a1),_0x28822c[_0x3f208b(0x177)](),_0x15e237);}async[_0x30cee0(0x19d)](_0x2ce742,_0x2cd225){const _0x31f85a=_0x30cee0;var _0x371f47;if(!_0x2cd225||!_0x2ce742[_0x31f85a(0x217)](_0x2cd225)){let _0x720005=_0x2ce742[_0x31f85a(0x20b)]()[0x0],_0x3c716b=_0x2ce742[_0x31f85a(0x217)](_0x720005);if(!_0x3c716b)return;this[_0x31f85a(0x1aa)](_0x3c716b,!0x0),await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x720005});return;}((_0x371f47=_0x2ce742[_0x31f85a(0x1f3)]())==null?void 0x0:_0x371f47[_0x31f85a(0x177)]())!==_0x2cd225&&await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x2cd225});}};J=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],J);const Y=_0x30cee0(0x1f5);let X=class extends _0x38c581{constructor(_0x227e50,_0x1c1e1f,_0x59538a,_0x4977db,_0xc2afa7,_0x39e6ab,_0xf93d7e,_0x5565f5,_0x451cec,_0x3d3188){const _0x3b6597=_0x30cee0;super(),this[_0x3b6597(0x1a5)]=_0x227e50,this['_univerInstanceService']=_0x1c1e1f,this[_0x3b6597(0x21c)]=_0x59538a,this['_commandService']=_0x4977db,this[_0x3b6597(0x1d0)]=_0xc2afa7,this['_permissionService']=_0x39e6ab,this['_selectionProtectionRuleModel']=_0xf93d7e,this[_0x3b6597(0x191)]=_0x5565f5,this[_0x3b6597(0x1ae)]=_0x451cec,this[_0x3b6597(0x16b)]=_0x3d3188,B(this,'_historyUniver$',new _0x6655f1(null)),B(this,'historyUniver$',this[_0x3b6597(0x1c2)]['asObservable']()),B(this,'_disposableCollection',new _0x57be15()),B(this,_0x3b6597(0x1b5),new Map()),B(this,_0x3b6597(0x1d4),null),this['_init']();}get[_0x30cee0(0x1f4)](){const _0x3fa1a2=_0x30cee0;return this[_0x3fa1a2(0x1c2)]['value'];}['_init'](){const _0xa2f2b9=_0x30cee0;this[_0xa2f2b9(0x1db)](),this[_0xa2f2b9(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x25d82c=_0x30cee0;var _0x3ee3e3;let _0x9d28d2=(_0x3ee3e3=this[_0x25d82c(0x21c)][_0x25d82c(0x1e9)](_0x25d82c(0x1eb)))==null?_0x25d82c(0x1ce):_0x3ee3e3,_0x438093=document[_0x25d82c(0x189)](_0x9d28d2);if(!_0x438093)return;let _0x2bc8b7=document['createElement'](_0x25d82c(0x18c));_0x2bc8b7['id']=Y,_0x2bc8b7['dataset']['uComp']='history-container',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ad)]=_0x25d82c(0x196),_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1be)]='0',_0x2bc8b7['style']['left']='0',_0x2bc8b7[_0x25d82c(0x1b1)]['width']=_0x25d82c(0x1d3),_0x2bc8b7['style'][_0x25d82c(0x1e1)]='100%',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x202)]='49',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ac)]='none',_0x438093[_0x25d82c(0x207)](_0x2bc8b7);}[_0x30cee0(0x1dd)](){const _0x3796f7=_0x30cee0;[[_0x24b5f8],[_0x567c9c,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x2a739f],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x58d35e],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x396896],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]]['forEach'](([_0xe63443,_0x383eb8])=>this[_0x3796f7(0x1d1)](_0xe63443,_0x383eb8));}[_0x30cee0(0x1d9)](){const _0x55d4e4=_0x30cee0;super[_0x55d4e4(0x1d9)](),this[_0x55d4e4(0x221)](),this['_pluginMap'][_0x55d4e4(0x181)]();}[_0x30cee0(0x1d1)](_0x4c7c25,_0x1e6ede,_0x37e935){const _0x20a5f7=_0x30cee0;if(this[_0x20a5f7(0x1b5)][_0x20a5f7(0x216)](_0x4c7c25[_0x20a5f7(0x1a0)])&&!_0x37e935)throw Error(_0x20a5f7(0x19f)+_0x4c7c25[_0x20a5f7(0x1a0)]+_0x20a5f7(0x176));this['_pluginMap'][_0x20a5f7(0x1bd)](_0x4c7c25['pluginName'],[_0x4c7c25,_0x1e6ede]);}['getAllPlugins'](){const _0x122e0d=_0x30cee0;return Array[_0x122e0d(0x18e)](this[_0x122e0d(0x1b5)][_0x122e0d(0x197)]());}[_0x30cee0(0x209)](_0x2a11b0,_0x127dd5){const _0x5a010b=_0x30cee0;let _0x42cb06=document['getElementById'](Y);_0x42cb06&&(_0x42cb06[_0x5a010b(0x1b1)][_0x5a010b(0x1ac)]=_0x5a010b(0x1c6),this[_0x5a010b(0x1e4)](_0x2a11b0,Y,_0x127dd5));}['unMountHistoryContent'](){const _0x386f39=_0x30cee0;var _0x62c7b;this[_0x386f39(0x1fd)][_0x386f39(0x1d9)](),(_0x62c7b=this['historyUniver'])==null||_0x62c7b[_0x386f39(0x1d9)](),this[_0x386f39(0x1c2)][_0x386f39(0x20f)](null);let _0x48bda6=document['getElementById'](Y);_0x48bda6&&(_0x48bda6['style'][_0x386f39(0x1ac)]='none',this[_0x386f39(0x1d4)]&&(this[_0x386f39(0x1d4)][_0x386f39(0x218)](),this[_0x386f39(0x1d4)]=null));}['_initUniver'](_0x104b9d,_0x46c226,_0x7f23c3){const _0x5151e0=_0x30cee0;var _0x46e582,_0x4faf5a,_0x2296c6,_0x4d5a8b;if(this[_0x5151e0(0x1f4)])return;let _0x3a0d67=new _0x2fd0f5({'locales':{[this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()]:this[_0x5151e0(0x1a5)][_0x5151e0(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x5db559=_0x3a0d67['__getInjector']();this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x1cf)][_0x5151e0(0x1b9)](_0x41758b=>{const _0xf70521=_0x5151e0;_0x5db559[_0xf70521(0x192)](_0x5ddc3f)[_0xf70521(0x19a)](_0x41758b);})),this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x178)][_0x5151e0(0x1b9)](_0x4ea31=>{const _0x4c4afa=_0x5151e0;_0x5db559[_0x4c4afa(0x192)](_0x5ddc3f)[_0x4c4afa(0x1ab)](_0x4ea31);})),_0x5db559[_0x5151e0(0x192)](_0x44bc99)[_0x5151e0(0x20c)](this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()),_0x5db559['get'](_0x4d97a0)[_0x5151e0(0x1ef)](_0x338bd6,this[_0x5151e0(0x21c)]['getConfig'](_0x338bd6));let _0x120654=this[_0x5151e0(0x21c)]['getConfig'](_0x3304c0);_0x120654&&_0x3a0d67[_0x5151e0(0x1d1)](_0xc828e,{'license':_0x120654['ls']});let _0x43a74c=(_0x46e582=this[_0x5151e0(0x21c)][_0x5151e0(0x1e9)](_0x5151e0(0x18b)))==null?void 0x0:_0x46e582[_0x5151e0(0x20a)],_0x562c62=!!_0x43a74c;_0x562c62&&(this['_internalWebWorker']=_0x43a74c instanceof Worker?_0x43a74c:null,_0x3a0d67['registerPlugin'](_0xb2c054,{'workerURL':_0x43a74c})),this[_0x5151e0(0x1b5)]['forEach'](([_0x6c874b,_0x5738aa])=>{const _0xbb05b5=_0x5151e0;_0x3a0d67[_0xbb05b5(0x1d1)](_0x6c874b,_0x5738aa);}),_0x3a0d67[_0x5151e0(0x1d1)](_0x25046b,{'historyListServerUrl':(_0x4faf5a=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4faf5a['historyListServerUrl'],'historyPanelComponentKey':(_0x2296c6=this['_configService'][_0x5151e0(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x2296c6[_0x5151e0(0x19c)],'historyPanelHidden':(_0x4d5a8b=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4d5a8b[_0x5151e0(0x213)]}),_0x5db559[_0x5151e0(0x1a8)](_0x1b0e98=>{const _0x315163=_0x5151e0;this[_0x315163(0x1a2)](_0x1b0e98,_0x104b9d);}),this[_0x5151e0(0x1c2)]['next'](_0x3a0d67);let _0x54c5c1=_0x5db559[_0x5151e0(0x192)](_0x405830),_0x4f650d=this[_0x5151e0(0x169)](_0x104b9d),_0x2ac552=()=>{const _0x5b21a0=_0x5151e0;_0x7f23c3?_0x54c5c1[_0x5b21a0(0x179)](_0x104b9d,_0x46c226,_0x4f650d,_0x7f23c3):_0x54c5c1['triggerLoadVersions'](_0x104b9d,_0x46c226,_0x4f650d);};if(this['_messageService'][_0x5151e0(0x185)]({'content':this[_0x5151e0(0x1a5)]['t'](_0x5151e0(0x1d2)),'type':_0x1096cb[_0x5151e0(0x1ee)]}),_0x562c62)try{_0x5db559['get'](_0x4453db)[_0x5151e0(0x20d)]()[_0x5151e0(0x183)](()=>{_0x2ac552();});}catch{_0x2ac552();}else _0x2ac552();}[_0x30cee0(0x1a2)](_0xcb21ab,_0x485856){const _0x23ab53=_0x30cee0;let _0x30cf31=_0xcb21ab[_0x23ab53(0x192)](_0x405830);this['_disposableCollection'][_0x23ab53(0x1df)](_0x30cf31[_0x23ab53(0x210)][_0x23ab53(0x1b9)](_0x41479e=>{const _0x54c217=_0x23ab53;switch(_0x41479e){case _0x2da942[_0x54c217(0x194)]:this[_0x54c217(0x191)]['closeAll'](),this[_0x54c217(0x1ae)][_0x54c217(0x223)]();break;case _0x2da942[_0x54c217(0x1b2)]:this[_0x54c217(0x225)]['executeCommand'](q['id']),this[_0x54c217(0x221)]();break;case _0x2da942[_0x54c217(0x1f9)]:this[_0x54c217(0x221)](),this[_0x54c217(0x1d0)][_0x54c217(0x185)]({'content':this[_0x54c217(0x1a5)]['t'](_0x54c217(0x220)),'type':_0x1096cb[_0x54c217(0x1f9)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x30cf31[_0x23ab53(0x1f2)][_0x23ab53(0x1b9)](async _0x2e9bb0=>{const _0x472fd9=_0x23ab53;_0x2e9bb0&&this[_0x472fd9(0x225)][_0x472fd9(0x18f)](_0x5b0966['id'],{'unitId':_0x485856,'revision':_0x2e9bb0});}));}[_0x30cee0(0x169)](_0x4c6b06){const _0x166637=_0x30cee0;let _0x934236=this[_0x166637(0x16c)][_0x166637(0x214)](_0x4c6b06)[_0x166637(0x1af)]()['map'](_0x5a2d59=>_0x5a2d59[_0x166637(0x177)]()),_0x976ff0=new _0x43a0ac(_0x4c6b06)['id'],_0x2059dc=_0x934236['map'](_0x46768e=>new _0x49770f(_0x4c6b06,_0x46768e)['id']),_0x1b546f=_0x934236[_0x166637(0x1de)](_0x5bd6aa=>this[_0x166637(0x17a)][_0x166637(0x1f1)](_0x4c6b06,_0x5bd6aa)[_0x166637(0x1de)](_0x1d9892=>new _0x51a168(_0x4c6b06,_0x5bd6aa,_0x1d9892['permissionId'])['id']))[_0x166637(0x1e5)](),_0x77b2ff=new _0x57d2d6(_0x4c6b06)['id'];return this[_0x166637(0x1f6)][_0x166637(0x17b)]([_0x976ff0,..._0x2059dc,..._0x1b546f,_0x77b2ff])[_0x166637(0x21d)](_0x5e49f2=>!!_0x5e49f2[_0x166637(0x200)]);}};X=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],X);let Z=class extends _0x852139{constructor(_0x2e2943=R,_0x13934f,_0x109eff){const _0x286f8c=_0x30cee0;super(),this[_0x286f8c(0x1ec)]=_0x2e2943,this[_0x286f8c(0x199)]=_0x13934f,this[_0x286f8c(0x21c)]=_0x109eff;let {menu:_0xb53bb,..._0x20c1c4}=_0x3896f6({},R,this['_config']);_0xb53bb&&this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)]('menu',_0xb53bb,{'merge':!0x0}),this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)](L,_0x20c1c4),this['_config'][_0x286f8c(0x16f)]&&this[_0x286f8c(0x21c)]['setConfig'](_0x286f8c(0x1eb),this[_0x286f8c(0x1ec)][_0x286f8c(0x16f)]);}[_0x30cee0(0x1c9)](){const _0x33930c=_0x30cee0;[[G,{'useClass':X}],[J]][_0x33930c(0x1b6)](_0xa69ccc=>this[_0x33930c(0x199)][_0x33930c(0x1df)](_0xa69ccc));}[_0x30cee0(0x1e6)](){const _0x440101=_0x30cee0;this['_injector'][_0x440101(0x192)](J);}};B(Z,_0x30cee0(0x184),_0x148251['UNIVER_UNKNOWN']),B(Z,'pluginName',_0x30cee0(0x19e)),B(Z,'packageName',ct),B(Z,_0x30cee0(0x1b8),lt),Z=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],Z);let Q=class extends _0x374fa8{constructor(_0x3c0b12,_0xbc8a30,_0x2d5632,_0x20513c,_0x41dcde,_0x34b700,_0x24543d,_0x34239c,_0x2307ac,_0x2e4181,_0x41505f){const _0xf4970f=_0x30cee0;super(),this[_0xf4970f(0x225)]=_0x3c0b12,this[_0xf4970f(0x1ea)]=_0xbc8a30,this[_0xf4970f(0x1a6)]=_0x2d5632,this['_historyManagerService']=_0x20513c,this['_localeService']=_0x41dcde,this['_messageService']=_0x34b700,this[_0xf4970f(0x1d5)]=_0x24543d,this[_0xf4970f(0x168)]=_0x34239c,this[_0xf4970f(0x1e2)]=_0x2307ac,this['_univerInstanceService']=_0x2e4181,this[_0xf4970f(0x1dc)]=_0x41505f,B(this,_0xf4970f(0x1e0),null),this[_0xf4970f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x57b128=_0x30cee0;[K,q][_0x57b128(0x1b6)](_0x4cb9c6=>this['disposeWithMe'](_0x3e927d(this[_0x57b128(0x225)][_0x57b128(0x1cd)](_0x4cb9c6)))),this[_0x57b128(0x1c7)](this['_componentManager'][_0x57b128(0x222)](_0x57b128(0x1a7),_0x2ba663)),this[_0x57b128(0x1ea)][_0x57b128(0x227)](dt),this['disposeWithMe'](this[_0x57b128(0x225)][_0x57b128(0x195)](async(_0x576a90,_0x486d7f)=>{const _0x326b28=_0x57b128;if(_0x576a90['id']===_0x5b0966['id']){let {unitId:_0x40f992}=_0x576a90[_0x326b28(0x182)];this[_0x326b28(0x1d0)][_0x326b28(0x185)]({'content':this[_0x326b28(0x1a5)]['t']('editHistory.panel.reverting'),'type':_0x1096cb[_0x326b28(0x1ee)],'duration':0x1388});let _0x42755f=this[_0x326b28(0x1d5)][_0x326b28(0x1ed)](_0x40f992);_0x486d7f!=null&&_0x486d7f[_0x326b28(0x1bb)]?this[_0x326b28(0x1b3)](_0x42755f,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x42755f,async()=>{const _0x27af61=_0x326b28;let _0x582c92=this[_0x27af61(0x16c)][_0x27af61(0x1ff)](_0x5295ea[_0x27af61(0x204)]),_0xac1ccf=_0x582c92==null?void 0x0:_0x582c92[_0x27af61(0x1f3)]();if(!_0xac1ccf)return!0x1;this[_0x27af61(0x16c)][_0x27af61(0x1a4)](_0x40f992);let _0x12a5dc=await this[_0x27af61(0x1e2)][_0x27af61(0x21f)](_0x40f992,_0x5295ea['UNIVER_SHEET']);return _0x12a5dc&&_0x12a5dc instanceof _0x48882a?(await this[_0x27af61(0x187)](_0x12a5dc,_0xac1ccf['getSheetId']()),!0x0):!0x1;});}}));}[_0x30cee0(0x1b3)](_0x9e0d30,_0x588ec5,_0x5a6129=!0x1){const _0x11394b=_0x30cee0;let _0x5f1b23=_0x451b3f([_0x9e0d30[_0x11394b(0x170)]['event$'],_0x9e0d30[_0x11394b(0x1bc)]])[_0x11394b(0x1b9)](async([_0x42ede1,_0x4e2010])=>{const _0x4e939d=_0x11394b;if(_0x42ede1[_0x4e939d(0x1ca)]===_0x288cbe[_0x4e939d(0x1a9)]&&(_0x4e2010==null?void 0x0:_0x4e2010[_0x4e939d(0x1c4)])===_0x15958f[_0x4e939d(0x1c0)]&&_0x42ede1['data']['mutations'][_0x4e939d(0x1da)](_0x215e36=>_0x215e36['id']===_0x5b0966['id'])&&await _0x588ec5()){var _0x58e1f2;this['_historyManagerService'][_0x4e939d(0x221)](),_0x5f1b23[_0x4e939d(0x1c1)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x58e1f2=this['_localCacheService'])==null?void 0x0:_0x58e1f2[_0x4e939d(0x175)]());}});_0x5a6129&&(this[_0x11394b(0x1e0)]=setTimeout(()=>{const _0x76cacc=_0x11394b;_0x5f1b23[_0x76cacc(0x1c1)](),this[_0x76cacc(0x1d0)][_0x76cacc(0x185)]({'content':this[_0x76cacc(0x1a5)]['t'](_0x76cacc(0x172)),'type':_0x1096cb[_0x76cacc(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x37f985,_0x2a8ea3){const _0x1ebea9=_0x30cee0;await this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3),_0x37f985[_0x1ebea9(0x1c5)][_0x1ebea9(0x167)](_0xaee6e3(this[_0x1ebea9(0x1b0)]))[_0x1ebea9(0x1b9)](_0x2e2470=>{const _0xdc0a29=_0x1ebea9;_0x2e2470&&this[_0xdc0a29(0x1aa)](_0x2e2470);}),this[_0x1ebea9(0x1dc)]['urlChange$']['pipe'](_0xaee6e3(this[_0x1ebea9(0x1b0)]))['subscribe'](()=>this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3));}[_0x30cee0(0x1aa)](_0x583dd5,_0x812675=!0x1){const _0x2e961b=_0x30cee0;let _0x4ee52c=this[_0x2e961b(0x1dc)]['getParam'](_0x2e961b(0x1a1));_0x583dd5[_0x2e961b(0x177)]()!==_0x4ee52c&&this['_urlService']['setParam'](_0x2e961b(0x1a1),_0x583dd5[_0x2e961b(0x177)](),_0x812675);}async[_0x30cee0(0x19d)](_0x331ee8,_0x339a4e){const _0x228436=_0x30cee0;var _0x36817a;if(!_0x339a4e||!_0x331ee8[_0x228436(0x217)](_0x339a4e)){let _0x1ccbe9=_0x331ee8[_0x228436(0x20b)]()[0x0],_0x123508=_0x331ee8[_0x228436(0x217)](_0x1ccbe9);if(!_0x123508)return;this[_0x228436(0x1aa)](_0x123508,!0x0),await this[_0x228436(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x1ccbe9});return;}((_0x36817a=_0x331ee8[_0x228436(0x1f3)]())==null?void 0x0:_0x36817a[_0x228436(0x177)]())!==_0x339a4e&&await this[_0x228436(0x225)][_0x228436(0x18f)](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x339a4e});}};Q=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],Q);let $=class extends _0x852139{constructor(_0xe45689=R,_0x360fb7,_0x553036){const _0x9c4ff2=_0x30cee0;super(),this['_config']=_0xe45689,this[_0x9c4ff2(0x199)]=_0x360fb7,this[_0x9c4ff2(0x21c)]=_0x553036;let {menu:_0x44006d,..._0x15a5bf}=_0x3896f6({},R,this[_0x9c4ff2(0x1ec)]);_0x44006d&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)]('menu',_0x44006d,{'merge':!0x0}),this[_0x9c4ff2(0x21c)]['setConfig'](L,_0x15a5bf),this[_0x9c4ff2(0x1ec)][_0x9c4ff2(0x16f)]&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)](U,this[_0x9c4ff2(0x1ec)]['univerContainerId']);}[_0x30cee0(0x1c9)](){const _0x10517f=_0x30cee0;[[G],[Q]][_0x10517f(0x1b6)](_0xabf8b7=>this[_0x10517f(0x199)][_0x10517f(0x1df)](_0xabf8b7));}[_0x30cee0(0x1e6)](){const _0x32a6d8=_0x30cee0;this[_0x32a6d8(0x199)][_0x32a6d8(0x192)](Q);}};B($,'type',_0x148251[_0x30cee0(0x1d8)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,'packageName',ct),B($,_0x30cee0(0x1b8),lt),$=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],$);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 _0xcdc2b4=_0x576c;(function(_0x112ec6,_0x31eebe){const _0x10075a=_0x576c,_0xb387ed=_0x112ec6();while(!![]){try{const _0x39b6bb=-parseInt(_0x10075a(0x17c))/0x1+-parseInt(_0x10075a(0xf2))/0x2+parseInt(_0x10075a(0x194))/0x3+-parseInt(_0x10075a(0x16a))/0x4*(-parseInt(_0x10075a(0x150))/0x5)+parseInt(_0x10075a(0x153))/0x6+-parseInt(_0x10075a(0x117))/0x7+parseInt(_0x10075a(0x166))/0x8;if(_0x39b6bb===_0x31eebe)break;else _0xb387ed['push'](_0xb387ed['shift']());}catch(_0x57cc29){_0xb387ed['push'](_0xb387ed['shift']());}}}(_0x3a80,0xbffd4));import{CommandType as _0x2d66d6,DependentOn as _0x299295,Disposable as _0x2fbf81,DisposableCollection as _0xdf8958,IAuthzIoService as _0x580551,ICommandService as _0xc4feca,IConfigService as _0x2bc188,IPermissionService as _0x32b568,IUniverInstanceService as _0x5d2eb8,Inject as _0x501869,Injector as _0x39260c,LocaleService as _0x5146f1,Plugin as _0x5d4f75,RxDisposable as _0x1ddce9,ThemeService as _0x3616cc,Univer as _0x1792d9,UniverInstanceType as _0x2286ef,Workbook as _0x4fb4cf,merge as _0x462db5,toDisposable as _0x158d14}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x24d965,RangeProtectionRuleModel as _0x152aea,SetWorksheetActivateCommand as _0x551a6e,UniverSheetsPlugin as _0x378801,WorkbookEditablePermission as _0x131768,WorkbookRecoverHistoryPermission as _0x41ee57,WorkbookViewHistoryPermission as _0x1b94b8,WorksheetEditPermission as _0x51fdf5,getSheetCommandTarget as _0x12470b}from'@univerjs/sheets';import{CollaborationEvent as _0x430f66,RevertRevisionMutation as _0x5069ca,UniverCollaborationPlugin as _0x5da1ee}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x25c273,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d4dca,CollaborationController as _0x3f3fcc,CollaborationStatus as _0x38b07e,DataLoaderService as _0x200401,ILocalCacheService as _0x15191f}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x3f326a,HistoryModeStatus as _0x509d16,UniverEditHistoryViewerMobilePlugin as _0xa47d47,UniverEditHistoryViewerPlugin as _0x16af9f}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4df753,UniverLicensePlugin as _0x13b78b}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x443143}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0xa87e1e}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x564745}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x580e7a}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x1e4282}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0x213647}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x306685}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x120848}from'@univerjs/data-validation';import{MessageType as _0x5c4b9d}from'@univerjs/design';import{UniverDocsPlugin as _0x4207ab}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x2f1d3c}from'@univerjs/docs-ui';import{IImageIoService as _0x2c5d90,UniverDrawingPlugin as _0x31cee7}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0xc4d22}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x3062e1}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x5ca134}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x5d653c}from'@univerjs/network';import{IRemoteInstanceService as _0x1f2f8c,UniverRPCMainThreadPlugin as _0x55c6e8}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x340c42}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x1e1912}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x23e1f}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x5de188,UniverSheetsDataValidationUIPlugin as _0x58d9d5}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x4c2ce8}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x358df3}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x23d63a}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x48df9e}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0xfa733f}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x259d1d}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x11d274}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0xf41737}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3a9855}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0xe59839}from'@univerjs/sheets-table';function _0x3a80(){const _0x3362f4=['location','from','univer.operation.exit-edit-history','urlChange$','length','edit-history-loader.config','getConfig','_sidebarService','top','_init','editHistory.info.initializing','history-container','packageName','Error','subunit','_themeService','historyUniver','decorate','loadUnit','getActiveSheet','iterator','type','getCurrentLocale','next','clear','pipe','_commandService','_dialogService','Exited','_config','some','registerCommand','univer-history-container-mobile','editHistory.panel.reverting','getSheetId','getUnhiddenWorksheets','295obBSbH','div','left','4989990XjWcaq','uComp','forEach','style','session','OPERATION','event$','_dataLoaderService','OTHERS','register','show','exhaustSavingTask','constructor','prototype','mountHistoryContent','set','zIndex','every','__getInjector','7076168sFJHLg','createElement','HistoryIcon','disposeWithMe','36364bNrorE','get','map','height','historyPanelHidden','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onSteady','add','_pluginMap','close','closeAll','setParam','status','status$','_componentManager','function','univer-history-container','version','1276606syROio','_historyUniver$','pluginName','getUnitId','setTheme','toPrimitive','setConfig','subscribe','editHistory.panel.revertFailed','permissionId','getAllPlugins','values','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','reload','dataset','_internalWebWorker','workerURL','executeCommand','_permissionService','UNIVER_UNKNOWN','getCurrentUnitOfType','CHANGESET_ACK','display','4173099euvcCu','_localCacheService','_configService','_localeService','then','unMountHistoryContent','object','_initUniver','disposeUnit','UNIVER_SHEET','currentTheme$','univer-container','has','none','value','100%','getElementById','_messageService','state$','editHistory.panel.title','appendChild','_injector','dispose$','string','_selectionProtectionRuleModel','invoke','width','registerPlugin','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','_menuManagerService','fromCollab','univerContainerId','2141874DYVGIi','[HistoryLoaderService]:\x20Plugin\x20','absolute','triggerLoadVersions','_setupSubUnitSync','getLocales','_initContainer','_historyManagerService','_urlService','SYNCED','_updateURLWithCurrentState','flat','historyAIassistantEnabled','getCollabEntity','_initListener','historyUniver$','mergeMenu','getSubunitRuleList','activeSheet$','historyPanelComponentKey','_disposableCollection','setDarkMode','dispose','onStarting','_univerInstanceService','editHistory.panel.listFetchError','@univerjs-pro/edit-history-loader','_revertErrorTimer','menu','getSheets','_handleRevertAcknowledgement','historyListServerUrl','_initPlugins','Entered','getParam','triggerCustomVersions','getSheetBySheetId','3567599xIcZar','position','composePermission','eventID','revertRevision$','[MobileHistoryLoaderService]:\x20Plugin\x20','params','mutations','_collaborationController','asObservable','terminate','_updateSubUnitFromURLParams','darkMode$','_checkCanRevert','symbol','getUnit','defineProperty','univer.operation.toggle-edit-history','unsubscribe','Loading','\x20has\x20been\x20registered.'];_0x3a80=function(){return _0x3362f4;};return _0x3a80();}import{UniverSheetsMobileUIPlugin as _0x25859c,UniverSheetsUIPlugin as _0xcbda01,getCurrentRangeDisable$ as _0x5971c4}from'@univerjs/sheets-ui';import{ComponentManager as _0x5e54c4,IDialogService as _0x3a5ccb,IMenuManagerService as _0x5c69e0,IMessageService as _0x578fd8,ISidebarService as _0xef72e6,MenuItemType as _0xdd9b57,RibbonStartGroup as _0x37f545,UniverMobileUIPlugin as _0x4bfa13,UniverUIPlugin as _0xcdede4,getMenuHiddenObservable as _0x6e3619}from'@univerjs/ui';import{BehaviorSubject as _0x4e9a7e,combineLatest as _0x1ff757,takeUntil as _0x118b8c}from'rxjs';import{IURLService as _0xc78038}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x1c442a}from'@univerjs/icons';import{UniverType as _0x526e34}from'@univerjs/protocol';const L=_0xcdc2b4(0x131);Symbol(L);const R={};function z(_0x5f0c5c){'@babel/helpers - typeof';const _0x2924d1=_0xcdc2b4;return z=typeof Symbol==_0x2924d1(0x179)&&typeof Symbol[_0x2924d1(0x140)]==_0x2924d1(0x125)?function(_0x50fb4f){return typeof _0x50fb4f;}:function(_0x301129){const _0x210a9d=_0x2924d1;return _0x301129&&typeof Symbol==_0x210a9d(0x179)&&_0x301129[_0x210a9d(0x15f)]===Symbol&&_0x301129!==Symbol[_0x210a9d(0x160)]?_0x210a9d(0x125):typeof _0x301129;},z(_0x5f0c5c);}function ot(_0x168c18,_0x5990f9){const _0x3fe0cb=_0xcdc2b4;if(z(_0x168c18)!=_0x3fe0cb(0x19a)||!_0x168c18)return _0x168c18;var _0x5f0025=_0x168c18[Symbol[_0x3fe0cb(0x181)]];if(_0x5f0025!==void 0x0){var _0x295acb=_0x5f0025['call'](_0x168c18,_0x5990f9||'default');if(z(_0x295acb)!=_0x3fe0cb(0x19a))return _0x295acb;throw TypeError(_0x3fe0cb(0x16f));}return(_0x5990f9===_0x3fe0cb(0xe9)?String:Number)(_0x168c18);}function st(_0x4a7ca6){const _0xfad314=_0xcdc2b4;var _0x109462=ot(_0x4a7ca6,_0xfad314(0xe9));return z(_0x109462)==_0xfad314(0x125)?_0x109462:_0x109462+'';}function B(_0x110769,_0x5320b6,_0x46135a){const _0x2b2010=_0xcdc2b4;return(_0x5320b6=st(_0x5320b6))in _0x110769?Object[_0x2b2010(0x127)](_0x110769,_0x5320b6,{'value':_0x46135a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x110769[_0x5320b6]=_0x46135a,_0x110769;}function V(_0x4106ee,_0x15b32b){return function(_0x54729e,_0x2f006a){_0x15b32b(_0x54729e,_0x2f006a,_0x4106ee);};}function H(_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6){const _0x105ac9=_0xcdc2b4;var _0x5505f9=arguments[_0x105ac9(0x130)],_0x3ae434=_0x5505f9<0x3?_0x42d2ac:_0x3bbfb6===null?_0x3bbfb6=Object[_0x105ac9(0x189)](_0x42d2ac,_0x5f5211):_0x3bbfb6,_0x52b731;if(typeof Reflect==_0x105ac9(0x19a)&&typeof Reflect[_0x105ac9(0x13d)]=='function')_0x3ae434=Reflect['decorate'](_0x30dbeb,_0x42d2ac,_0x5f5211,_0x3bbfb6);else{for(var _0x54f2e3=_0x30dbeb[_0x105ac9(0x130)]-0x1;_0x54f2e3>=0x0;_0x54f2e3--)(_0x52b731=_0x30dbeb[_0x54f2e3])&&(_0x3ae434=(_0x5505f9<0x3?_0x52b731(_0x3ae434):_0x5505f9>0x3?_0x52b731(_0x42d2ac,_0x5f5211,_0x3ae434):_0x52b731(_0x42d2ac,_0x5f5211))||_0x3ae434);}return _0x5505f9>0x3&&_0x3ae434&&Object[_0x105ac9(0x127)](_0x42d2ac,_0x5f5211,_0x3ae434),_0x3ae434;}const U=_0xcdc2b4(0x188),W=_0xcdc2b4(0x17a);let G=class extends _0x2fbf81{constructor(_0x5c127a,_0x7de8bc,_0x139347,_0x53b736,_0x18a131,_0x5e1db5,_0x1d7de1,_0x572496,_0x5eb394,_0x38161a){const _0x4c3caf=_0xcdc2b4;super(),this[_0x4c3caf(0x197)]=_0x5c127a,this[_0x4c3caf(0x10a)]=_0x7de8bc,this['_configService']=_0x139347,this['_commandService']=_0x53b736,this[_0x4c3caf(0xe3)]=_0x18a131,this['_permissionService']=_0x5e1db5,this[_0x4c3caf(0xea)]=_0x1d7de1,this[_0x4c3caf(0x147)]=_0x572496,this[_0x4c3caf(0x133)]=_0x5eb394,this['_themeService']=_0x38161a,B(this,_0x4c3caf(0x17d),new _0x4e9a7e(null)),B(this,_0x4c3caf(0x101),this[_0x4c3caf(0x17d)][_0x4c3caf(0x120)]()),B(this,_0x4c3caf(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this['_init']();}get[_0xcdc2b4(0x13c)](){const _0x2753ad=_0xcdc2b4;return this['_historyUniver$'][_0x2753ad(0xe0)];}[_0xcdc2b4(0x135)](){const _0x34dfc0=_0xcdc2b4;this[_0x34dfc0(0xf8)](),this['_initPlugins']();}[_0xcdc2b4(0xf8)](){const _0x3ecb2b=_0xcdc2b4;var _0x5630ac;let _0x2b715d=(_0x5630ac=this[_0x3ecb2b(0x196)][_0x3ecb2b(0x132)](_0x3ecb2b(0x188)))==null?_0x3ecb2b(0xdd):_0x5630ac,_0x20ff09=document[_0x3ecb2b(0xe2)](_0x2b715d);if(!_0x20ff09)return;let _0x1e1da8=document[_0x3ecb2b(0x167)](_0x3ecb2b(0x151));_0x1e1da8['id']=W,_0x1e1da8[_0x3ecb2b(0x18b)]['uComp']=_0x3ecb2b(0x137),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x118)]=_0x3ecb2b(0xf4),_0x1e1da8[_0x3ecb2b(0x156)]['top']='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x152)]='0',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0xec)]=_0x3ecb2b(0xe1),_0x1e1da8['style'][_0x3ecb2b(0x16d)]=_0x3ecb2b(0xe1),_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x163)]='49',_0x1e1da8[_0x3ecb2b(0x156)][_0x3ecb2b(0x193)]='none',_0x20ff09[_0x3ecb2b(0xe6)](_0x1e1da8);}['_initPlugins'](){const _0x2f7899=_0xcdc2b4;[[_0x5ca134],[_0xcdede4,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0xcbda01],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x48df9e],[_0x340c42],[_0x1e1912],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x58d9d5],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x2f7899(0x155)](([_0x2d67e3,_0x2dc3b3])=>this['registerPlugin'](_0x2d67e3,_0x2dc3b3));}[_0xcdc2b4(0x108)](){const _0x1f84f3=_0xcdc2b4;super['dispose'](),this[_0x1f84f3(0x199)](),this[_0x1f84f3(0x172)][_0x1f84f3(0x144)]();}[_0xcdc2b4(0xed)](_0x25cf73,_0xc4efb8,_0x6ffcd0){const _0x330dc7=_0xcdc2b4;if(this['_pluginMap'][_0x330dc7(0xde)](_0x25cf73[_0x330dc7(0x17e)])&&!_0x6ffcd0)throw Error(_0x330dc7(0xf3)+_0x25cf73['pluginName']+_0x330dc7(0x12b));this['_pluginMap'][_0x330dc7(0x162)](_0x25cf73['pluginName'],[_0x25cf73,_0xc4efb8]);}[_0xcdc2b4(0x186)](){return Array['from'](this['_pluginMap']['values']());}['mountHistoryContent'](_0x27a638,_0x4a0771){const _0x41f623=_0xcdc2b4;let _0x3da387=document[_0x41f623(0xe2)](W);_0x3da387&&(_0x3da387[_0x41f623(0x156)][_0x41f623(0x193)]='block',this[_0x41f623(0x19b)](_0x27a638,W,_0x4a0771));}[_0xcdc2b4(0x199)](){const _0x534da6=_0xcdc2b4;var _0x510b66;this['_disposableCollection'][_0x534da6(0x108)](),(_0x510b66=this[_0x534da6(0x13c)])==null||_0x510b66[_0x534da6(0x108)](),this[_0x534da6(0x17d)][_0x534da6(0x143)](null);let _0x2e1f86=document[_0x534da6(0xe2)](W);_0x2e1f86&&(_0x2e1f86['style'][_0x534da6(0x193)]='none',this[_0x534da6(0x18c)]&&(this[_0x534da6(0x18c)]['terminate'](),this[_0x534da6(0x18c)]=null));}['_initUniver'](_0x37e744,_0x394ca2,_0x1e5a87){const _0x18fd9a=_0xcdc2b4;var _0x22e419,_0x17031e,_0x4dbe79,_0x4c3a5e,_0x4320c2;if(this[_0x18fd9a(0x13c)])return;let _0xec05d1=new _0x1792d9({'locales':{[this[_0x18fd9a(0x197)]['getCurrentLocale']()]:this[_0x18fd9a(0x197)][_0x18fd9a(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x44573c=_0xec05d1['__getInjector']();this['disposeWithMe'](this[_0x18fd9a(0x13b)]['darkMode$']['subscribe'](_0x568338=>{const _0x462444=_0x18fd9a;_0x44573c['get'](_0x3616cc)[_0x462444(0x107)](_0x568338);})),this[_0x18fd9a(0x169)](this[_0x18fd9a(0x13b)]['currentTheme$'][_0x18fd9a(0x183)](_0x30b876=>{const _0x1c953b=_0x18fd9a;_0x44573c[_0x1c953b(0x16b)](_0x3616cc)['setTheme'](_0x30b876);})),_0x44573c[_0x18fd9a(0x16b)](_0x5146f1)['setLocale'](this[_0x18fd9a(0x197)][_0x18fd9a(0x142)]()),_0x44573c[_0x18fd9a(0x16b)](_0x2bc188)[_0x18fd9a(0x182)](_0x1d4dca,this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x1d4dca));let _0x5c0f66=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x4df753);_0x5c0f66&&_0xec05d1[_0x18fd9a(0xed)](_0x13b78b,{'license':_0x5c0f66['ls']});let _0x51da79=(_0x22e419=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x22e419['workerURL'],_0x5b22e6=!!_0x51da79;_0x5b22e6&&(this[_0x18fd9a(0x18c)]=_0x51da79 instanceof Worker?_0x51da79:null,_0xec05d1[_0x18fd9a(0xed)](_0x55c6e8,{'workerURL':_0x51da79})),this[_0x18fd9a(0x172)][_0x18fd9a(0x155)](([_0x577c94,_0x3ba033])=>{const _0x165266=_0x18fd9a;_0xec05d1[_0x165266(0xed)](_0x577c94,_0x3ba033);}),_0xec05d1[_0x18fd9a(0xed)](_0x16af9f,{'historyListServerUrl':(_0x17031e=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)]('edit-history-loader.config'))==null?void 0x0:_0x17031e[_0x18fd9a(0x111)],'historyPanelComponentKey':(_0x4dbe79=this[_0x18fd9a(0x196)][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4dbe79[_0x18fd9a(0x105)],'historyPanelHidden':(_0x4c3a5e=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4c3a5e[_0x18fd9a(0x16e)],'historyAIassistantEnabled':(_0x4320c2=this['_configService'][_0x18fd9a(0x132)](_0x18fd9a(0x131)))==null?void 0x0:_0x4320c2[_0x18fd9a(0xfe)]}),_0x44573c[_0x18fd9a(0xeb)](_0x2c9120=>{const _0x23a3e=_0x18fd9a;this[_0x23a3e(0x100)](_0x2c9120,_0x37e744);}),this[_0x18fd9a(0x17d)][_0x18fd9a(0x143)](_0xec05d1);let _0x14b570=_0x44573c['get'](_0x3f326a),_0x5afa41=this[_0x18fd9a(0x124)](_0x37e744),_0xd225b7=()=>{_0x1e5a87?_0x14b570['triggerCustomVersions'](_0x37e744,_0x394ca2,_0x5afa41,_0x1e5a87):_0x14b570['triggerLoadVersions'](_0x37e744,_0x394ca2,_0x5afa41);};if(this[_0x18fd9a(0xe3)]['show']({'content':this[_0x18fd9a(0x197)]['t'](_0x18fd9a(0x136)),'type':_0x5c4b9d['Loading']}),_0x5b22e6)try{_0x44573c[_0x18fd9a(0x16b)](_0x1f2f8c)['whenReady']()[_0x18fd9a(0x198)](()=>{_0xd225b7();});}catch{_0xd225b7();}else _0xd225b7();}[_0xcdc2b4(0x100)](_0x3c861c,_0x2cb854){const _0x16fa02=_0xcdc2b4;let _0x45da8e=_0x3c861c['get'](_0x3f326a);this[_0x16fa02(0x106)]['add'](_0x45da8e[_0x16fa02(0x177)][_0x16fa02(0x183)](_0x2ce6d6=>{const _0x7dcbef=_0x16fa02;switch(_0x2ce6d6){case _0x509d16[_0x7dcbef(0x113)]:this[_0x7dcbef(0x147)][_0x7dcbef(0x174)](),this[_0x7dcbef(0x133)][_0x7dcbef(0x173)]();break;case _0x509d16[_0x7dcbef(0x148)]:this['_commandService'][_0x7dcbef(0x18e)](q['id']),this[_0x7dcbef(0x199)]();break;case _0x509d16[_0x7dcbef(0x139)]:this[_0x7dcbef(0x199)](),this[_0x7dcbef(0xe3)][_0x7dcbef(0x15d)]({'content':this[_0x7dcbef(0x197)]['t'](_0x7dcbef(0x10b)),'type':_0x5c4b9d[_0x7dcbef(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x16fa02(0x106)][_0x16fa02(0x171)](_0x45da8e[_0x16fa02(0x11b)]['subscribe'](async _0x4fe14b=>{const _0x151495=_0x16fa02;_0x4fe14b&&this[_0x151495(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x2cb854,'revision':_0x4fe14b});}));}['_checkCanRevert'](_0x34f91b){const _0x2079ef=_0xcdc2b4;let _0x204c33=this[_0x2079ef(0x10a)][_0x2079ef(0x126)](_0x34f91b)[_0x2079ef(0x10f)]()['map'](_0x4a70de=>_0x4a70de[_0x2079ef(0x14e)]()),_0x294ea1=new _0x131768(_0x34f91b)['id'],_0x41778e=_0x204c33[_0x2079ef(0x16c)](_0x3841f9=>new _0x51fdf5(_0x34f91b,_0x3841f9)['id']),_0x55d06e=_0x204c33[_0x2079ef(0x16c)](_0x492464=>this[_0x2079ef(0xea)][_0x2079ef(0x103)](_0x34f91b,_0x492464)['map'](_0x1277c9=>new _0x24d965(_0x34f91b,_0x492464,_0x1277c9[_0x2079ef(0x185)])['id']))[_0x2079ef(0xfd)](),_0x49155b=new _0x41ee57(_0x34f91b)['id'];return this['_permissionService'][_0x2079ef(0x119)]([_0x294ea1,..._0x41778e,..._0x55d06e,_0x49155b])['every'](_0x11090b=>!!_0x11090b[_0x2079ef(0xe0)]);}};G=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],G);const K={'id':_0xcdc2b4(0x128),'type':_0x2d66d6[_0xcdc2b4(0x158)],'handler':_0x1aa51b=>{const _0x2110bb=_0xcdc2b4;let _0x28a583=_0x1aa51b[_0x2110bb(0x16b)](G),{unitId:_0x5b6c9d}=_0x12470b(_0x1aa51b[_0x2110bb(0x16b)](_0x5d2eb8))||{};return _0x5b6c9d?(_0x28a583[_0x2110bb(0x161)](_0x5b6c9d),!0x0):!0x1;}},q={'id':_0xcdc2b4(0x12e),'type':_0x2d66d6['OPERATION'],'handler':()=>!0x0};var ct=_0xcdc2b4(0x10c),lt='0.18.0';function ut(_0x2baa05){const _0x3cfa87=_0xcdc2b4;return{'id':K['id'],'type':_0xdd9b57['BUTTON'],'icon':'HistoryIcon','tooltip':_0x3cfa87(0xe5),'hidden$':_0x6e3619(_0x2baa05,_0x2286ef[_0x3cfa87(0xdb)]),'disabled$':_0x5971c4(_0x2baa05,{'workbookTypes':[_0x131768,_0x1b94b8],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0x37f545[_0xcdc2b4(0x15b)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x1ddce9{constructor(_0x208949,_0x50286a,_0x454ce5,_0x43a472,_0xd39a08,_0x5dcd9a,_0x2f1a41,_0x4f3b3e,_0x49130f,_0x4f88f8,_0x194a80){const _0x5def78=_0xcdc2b4;super(),this[_0x5def78(0x146)]=_0x208949,this[_0x5def78(0xef)]=_0x50286a,this[_0x5def78(0x178)]=_0x454ce5,this['_historyManagerService']=_0x43a472,this[_0x5def78(0x197)]=_0xd39a08,this['_messageService']=_0x5dcd9a,this[_0x5def78(0x11f)]=_0x2f1a41,this[_0x5def78(0x195)]=_0x4f3b3e,this['_dataLoaderService']=_0x49130f,this[_0x5def78(0x10a)]=_0x4f88f8,this['_urlService']=_0x194a80,B(this,_0x5def78(0x10d),null),this[_0x5def78(0x135)]();}[_0xcdc2b4(0x135)](){const _0x235007=_0xcdc2b4;[K,q][_0x235007(0x155)](_0x614245=>this['disposeWithMe'](_0x158d14(this[_0x235007(0x146)][_0x235007(0x14b)](_0x614245)))),this[_0x235007(0x169)](this['_componentManager'][_0x235007(0x15c)](_0x235007(0x168),_0x1c442a)),this[_0x235007(0xef)][_0x235007(0x102)](dt),this[_0x235007(0x169)](this['_commandService']['onCommandExecuted'](async(_0x10a041,_0x10e518)=>{const _0x4e9340=_0x235007;if(_0x10a041['id']===_0x5069ca['id']){let {unitId:_0x3552e5}=_0x10a041[_0x4e9340(0x11d)];this[_0x4e9340(0xe3)][_0x4e9340(0x15d)]({'content':this[_0x4e9340(0x197)]['t'](_0x4e9340(0x14d)),'type':_0x5c4b9d['Loading'],'duration':0x1388});let _0x31537e=this['_collaborationController']['getCollabEntity'](_0x3552e5);_0x10e518!=null&&_0x10e518[_0x4e9340(0xf0)]?this['_handleRevertAcknowledgement'](_0x31537e,async()=>(setTimeout(()=>window['location'][_0x4e9340(0x18a)]()),!0x0),!0x0):this[_0x4e9340(0x110)](_0x31537e,async()=>{const _0x2735c7=_0x4e9340;let _0x48dab9=this[_0x2735c7(0x10a)][_0x2735c7(0x191)](_0x526e34[_0x2735c7(0xdb)]),_0x568e8a=_0x48dab9==null?void 0x0:_0x48dab9[_0x2735c7(0x13f)]();if(!_0x568e8a)return!0x1;this[_0x2735c7(0x10a)][_0x2735c7(0x19c)](_0x3552e5);let _0x2ad4e4=await this['_dataLoaderService'][_0x2735c7(0x13e)](_0x3552e5,_0x526e34[_0x2735c7(0xdb)]);return _0x2ad4e4&&_0x2ad4e4 instanceof _0x4fb4cf?(await this['_setupSubUnitSync'](_0x2ad4e4,_0x568e8a[_0x2735c7(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x307983,_0x4cc53f,_0xccd829=!0x1){const _0x59e25d=_0xcdc2b4;let _0x202645=_0x1ff757([_0x307983[_0x59e25d(0x157)][_0x59e25d(0x159)],_0x307983[_0x59e25d(0xe4)]])[_0x59e25d(0x183)](async([_0x590efd,_0x5b66d4])=>{const _0x26e138=_0x59e25d;if(_0x590efd[_0x26e138(0x11a)]===_0x430f66[_0x26e138(0x192)]&&(_0x5b66d4==null?void 0x0:_0x5b66d4['status'])===_0x38b07e[_0x26e138(0xfb)]&&_0x590efd['data'][_0x26e138(0x11e)]['some'](_0x4746f4=>_0x4746f4['id']===_0x5069ca['id'])&&await _0x4cc53f()){var _0x1b16c8;this[_0x26e138(0xf9)][_0x26e138(0x199)](),_0x202645[_0x26e138(0x129)](),this['_revertErrorTimer']&&clearTimeout(this[_0x26e138(0x10d)]),await((_0x1b16c8=this['_localCacheService'])==null?void 0x0:_0x1b16c8[_0x26e138(0x15e)]()),this[_0x26e138(0xe3)]['removeAll']();}});_0xccd829&&(this[_0x59e25d(0x10d)]=setTimeout(()=>{const _0x1cae4e=_0x59e25d;_0x202645[_0x1cae4e(0x129)](),this['_messageService'][_0x1cae4e(0x15d)]({'content':this[_0x1cae4e(0x197)]['t'](_0x1cae4e(0x184)),'type':_0x5c4b9d[_0x1cae4e(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x345ff2,_0x274046){const _0x5e71fe=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x345ff2,_0x274046),_0x345ff2[_0x5e71fe(0x104)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](_0x495054=>{const _0x283764=_0x5e71fe;_0x495054&&this[_0x283764(0xfc)](_0x495054);}),this[_0x5e71fe(0xfa)][_0x5e71fe(0x12f)][_0x5e71fe(0x145)](_0x118b8c(this[_0x5e71fe(0xe8)]))[_0x5e71fe(0x183)](()=>this[_0x5e71fe(0x122)](_0x345ff2,_0x274046));}[_0xcdc2b4(0xfc)](_0x298ba0,_0x5d054f=!0x1){const _0x1b8bf7=_0xcdc2b4;let _0x9a5ad8=this[_0x1b8bf7(0xfa)][_0x1b8bf7(0x114)](_0x1b8bf7(0x13a));_0x298ba0[_0x1b8bf7(0x14e)]()!==_0x9a5ad8&&this[_0x1b8bf7(0xfa)]['setParam'](_0x1b8bf7(0x13a),_0x298ba0[_0x1b8bf7(0x14e)](),_0x5d054f);}async[_0xcdc2b4(0x122)](_0x1cbc45,_0x21b980){const _0x5c19ca=_0xcdc2b4;var _0x2622ac;if(!_0x21b980||!_0x1cbc45['getSheetBySheetId'](_0x21b980)){let _0x2eca78=_0x1cbc45[_0x5c19ca(0x14f)]()[0x0],_0x7d9a21=_0x1cbc45['getSheetBySheetId'](_0x2eca78);if(!_0x7d9a21)return;this[_0x5c19ca(0xfc)](_0x7d9a21,!0x0),await this['_commandService'][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x2eca78});return;}((_0x2622ac=_0x1cbc45[_0x5c19ca(0x13f)]())==null?void 0x0:_0x2622ac[_0x5c19ca(0x14e)]())!==_0x21b980&&await this[_0x5c19ca(0x146)][_0x5c19ca(0x18e)](_0x551a6e['id'],{'unitId':_0x1cbc45[_0x5c19ca(0x17f)](),'subUnitId':_0x21b980});}};function _0x576c(_0x16a0e7,_0x4ef57b){_0x16a0e7=_0x16a0e7-0xdb;const _0x3a8074=_0x3a80();let _0x576cce=_0x3a8074[_0x16a0e7];return _0x576cce;}J=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],J);const Y=_0xcdc2b4(0x14c);let X=class extends _0x2fbf81{constructor(_0x4e0033,_0x91d1de,_0x1cd060,_0x58606f,_0x2c6738,_0x594168,_0x48b44e,_0xd43cd9,_0x504550,_0x689f63){const _0x380b6f=_0xcdc2b4;super(),this[_0x380b6f(0x197)]=_0x4e0033,this[_0x380b6f(0x10a)]=_0x91d1de,this['_configService']=_0x1cd060,this[_0x380b6f(0x146)]=_0x58606f,this[_0x380b6f(0xe3)]=_0x2c6738,this['_permissionService']=_0x594168,this[_0x380b6f(0xea)]=_0x48b44e,this[_0x380b6f(0x147)]=_0xd43cd9,this[_0x380b6f(0x133)]=_0x504550,this[_0x380b6f(0x13b)]=_0x689f63,B(this,'_historyUniver$',new _0x4e9a7e(null)),B(this,_0x380b6f(0x101),this[_0x380b6f(0x17d)][_0x380b6f(0x120)]()),B(this,_0x380b6f(0x106),new _0xdf8958()),B(this,'_pluginMap',new Map()),B(this,'_internalWebWorker',null),this[_0x380b6f(0x135)]();}get[_0xcdc2b4(0x13c)](){const _0x1fd52e=_0xcdc2b4;return this[_0x1fd52e(0x17d)][_0x1fd52e(0xe0)];}['_init'](){const _0x39714f=_0xcdc2b4;this['_initContainer'](),this[_0x39714f(0x112)]();}['_initContainer'](){const _0x10aaa4=_0xcdc2b4;var _0x3f3abe;let _0x30e662=(_0x3f3abe=this['_configService'][_0x10aaa4(0x132)](_0x10aaa4(0x188)))==null?_0x10aaa4(0xdd):_0x3f3abe,_0x1c074f=document[_0x10aaa4(0xe2)](_0x30e662);if(!_0x1c074f)return;let _0x90f691=document[_0x10aaa4(0x167)](_0x10aaa4(0x151));_0x90f691['id']=Y,_0x90f691[_0x10aaa4(0x18b)][_0x10aaa4(0x154)]=_0x10aaa4(0x137),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x118)]=_0x10aaa4(0xf4),_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x134)]='0',_0x90f691['style'][_0x10aaa4(0x152)]='0',_0x90f691[_0x10aaa4(0x156)]['width']='100%',_0x90f691[_0x10aaa4(0x156)]['height']=_0x10aaa4(0xe1),_0x90f691['style'][_0x10aaa4(0x163)]='49',_0x90f691[_0x10aaa4(0x156)][_0x10aaa4(0x193)]=_0x10aaa4(0xdf),_0x1c074f[_0x10aaa4(0xe6)](_0x90f691);}[_0xcdc2b4(0x112)](){const _0x4586b4=_0xcdc2b4;[[_0x5ca134],[_0x4bfa13,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3a5ccb,null]]}],[_0x5d653c],[_0x31cee7,{'override':[[_0x2c5d90,null]]}],[_0x4207ab,{'hasScroll':!0x1}],[_0x2f1d3c],[_0x3a9855],[_0x378801,{'notExecuteFormula':!0x0}],[_0x25859c],[_0xfa733f],[_0x259d1d],[_0x5da1ee],[_0x23d63a],[_0x340c42],[_0x11d274],[_0xf41737],[_0x120848],[_0x23e1f],[_0x5de188],[_0x3062e1,{'notExecuteFormula':!0x0}],[_0xc4d22],[_0x4c2ce8],[_0x358df3],[_0x213647],[_0x306685],[_0x443143],[_0xa87e1e],[_0x580e7a],[_0x1e4282],[_0x564745,{'notExecuteFormula':!0x0}],[_0xe59839]][_0x4586b4(0x155)](([_0x4ef21c,_0x1cf992])=>this[_0x4586b4(0xed)](_0x4ef21c,_0x1cf992));}[_0xcdc2b4(0x108)](){const _0xdc119b=_0xcdc2b4;super[_0xdc119b(0x108)](),this[_0xdc119b(0x199)](),this[_0xdc119b(0x172)][_0xdc119b(0x144)]();}['registerPlugin'](_0x148daa,_0x28bb54,_0x3e49a7){const _0x4833c3=_0xcdc2b4;if(this['_pluginMap'][_0x4833c3(0xde)](_0x148daa[_0x4833c3(0x17e)])&&!_0x3e49a7)throw Error(_0x4833c3(0x11c)+_0x148daa[_0x4833c3(0x17e)]+_0x4833c3(0x12b));this[_0x4833c3(0x172)][_0x4833c3(0x162)](_0x148daa[_0x4833c3(0x17e)],[_0x148daa,_0x28bb54]);}[_0xcdc2b4(0x186)](){const _0xe90430=_0xcdc2b4;return Array[_0xe90430(0x12d)](this[_0xe90430(0x172)][_0xe90430(0x187)]());}[_0xcdc2b4(0x161)](_0xd35454,_0x148e97){const _0x56764a=_0xcdc2b4;let _0x57a5e6=document['getElementById'](Y);_0x57a5e6&&(_0x57a5e6['style'][_0x56764a(0x193)]='block',this['_initUniver'](_0xd35454,Y,_0x148e97));}['unMountHistoryContent'](){const _0x5ad560=_0xcdc2b4;var _0x17bf73;this['_disposableCollection'][_0x5ad560(0x108)](),(_0x17bf73=this[_0x5ad560(0x13c)])==null||_0x17bf73[_0x5ad560(0x108)](),this[_0x5ad560(0x17d)][_0x5ad560(0x143)](null);let _0xcfa96f=document[_0x5ad560(0xe2)](Y);_0xcfa96f&&(_0xcfa96f[_0x5ad560(0x156)][_0x5ad560(0x193)]=_0x5ad560(0xdf),this['_internalWebWorker']&&(this[_0x5ad560(0x18c)][_0x5ad560(0x121)](),this[_0x5ad560(0x18c)]=null));}[_0xcdc2b4(0x19b)](_0x12174d,_0x49f086,_0x105b81){const _0x1fa3ef=_0xcdc2b4;var _0x3ac14d,_0x1a60de,_0x728ba0,_0x38eb80;if(this[_0x1fa3ef(0x13c)])return;let _0x273226=new _0x1792d9({'locales':{[this[_0x1fa3ef(0x197)][_0x1fa3ef(0x142)]()]:this[_0x1fa3ef(0x197)][_0x1fa3ef(0xf7)]()},'override':[[_0x580551,{'useClass':_0x25c273}]]}),_0x51e8e1=_0x273226[_0x1fa3ef(0x165)]();this['disposeWithMe'](this[_0x1fa3ef(0x13b)][_0x1fa3ef(0x123)][_0x1fa3ef(0x183)](_0x154bbe=>{const _0x2c1822=_0x1fa3ef;_0x51e8e1['get'](_0x3616cc)[_0x2c1822(0x107)](_0x154bbe);})),this[_0x1fa3ef(0x169)](this['_themeService'][_0x1fa3ef(0xdc)][_0x1fa3ef(0x183)](_0x393642=>{const _0x5c7ecb=_0x1fa3ef;_0x51e8e1[_0x5c7ecb(0x16b)](_0x3616cc)[_0x5c7ecb(0x180)](_0x393642);})),_0x51e8e1[_0x1fa3ef(0x16b)](_0x5146f1)['setLocale'](this[_0x1fa3ef(0x197)]['getCurrentLocale']()),_0x51e8e1[_0x1fa3ef(0x16b)](_0x2bc188)['setConfig'](_0x1d4dca,this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1d4dca));let _0x31672b=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x4df753);_0x31672b&&_0x273226['registerPlugin'](_0x13b78b,{'license':_0x31672b['ls']});let _0x40cf32=(_0x3ac14d=this['_configService']['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x3ac14d[_0x1fa3ef(0x18d)],_0x29ea60=!!_0x40cf32;_0x29ea60&&(this[_0x1fa3ef(0x18c)]=_0x40cf32 instanceof Worker?_0x40cf32:null,_0x273226[_0x1fa3ef(0xed)](_0x55c6e8,{'workerURL':_0x40cf32})),this[_0x1fa3ef(0x172)]['forEach'](([_0x34343e,_0xd50e05])=>{_0x273226['registerPlugin'](_0x34343e,_0xd50e05);}),_0x273226[_0x1fa3ef(0xed)](_0xa47d47,{'historyListServerUrl':(_0x1a60de=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x1a60de['historyListServerUrl'],'historyPanelComponentKey':(_0x728ba0=this[_0x1fa3ef(0x196)][_0x1fa3ef(0x132)](_0x1fa3ef(0x131)))==null?void 0x0:_0x728ba0[_0x1fa3ef(0x105)],'historyPanelHidden':(_0x38eb80=this[_0x1fa3ef(0x196)]['getConfig'](_0x1fa3ef(0x131)))==null?void 0x0:_0x38eb80[_0x1fa3ef(0x16e)]}),_0x51e8e1['invoke'](_0x2a32a3=>{const _0x1f3349=_0x1fa3ef;this[_0x1f3349(0x100)](_0x2a32a3,_0x12174d);}),this[_0x1fa3ef(0x17d)][_0x1fa3ef(0x143)](_0x273226);let _0x38eed9=_0x51e8e1[_0x1fa3ef(0x16b)](_0x3f326a),_0x36719a=this[_0x1fa3ef(0x124)](_0x12174d),_0x2f650c=()=>{const _0x51e462=_0x1fa3ef;_0x105b81?_0x38eed9[_0x51e462(0x115)](_0x12174d,_0x49f086,_0x36719a,_0x105b81):_0x38eed9[_0x51e462(0xf5)](_0x12174d,_0x49f086,_0x36719a);};if(this[_0x1fa3ef(0xe3)]['show']({'content':this[_0x1fa3ef(0x197)]['t'](_0x1fa3ef(0x136)),'type':_0x5c4b9d[_0x1fa3ef(0x12a)]}),_0x29ea60)try{_0x51e8e1[_0x1fa3ef(0x16b)](_0x1f2f8c)['whenReady']()[_0x1fa3ef(0x198)](()=>{_0x2f650c();});}catch{_0x2f650c();}else _0x2f650c();}[_0xcdc2b4(0x100)](_0x2667df,_0x42febb){const _0x254802=_0xcdc2b4;let _0xa1a8ec=_0x2667df[_0x254802(0x16b)](_0x3f326a);this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x177)][_0x254802(0x183)](_0x562ec1=>{const _0x53cee0=_0x254802;switch(_0x562ec1){case _0x509d16[_0x53cee0(0x113)]:this[_0x53cee0(0x147)][_0x53cee0(0x174)](),this[_0x53cee0(0x133)][_0x53cee0(0x173)]();break;case _0x509d16[_0x53cee0(0x148)]:this[_0x53cee0(0x146)]['executeCommand'](q['id']),this[_0x53cee0(0x199)]();break;case _0x509d16['Error']:this[_0x53cee0(0x199)](),this[_0x53cee0(0xe3)][_0x53cee0(0x15d)]({'content':this[_0x53cee0(0x197)]['t'](_0x53cee0(0x10b)),'type':_0x5c4b9d[_0x53cee0(0x139)],'duration':0xbb8});break;default:break;}})),this[_0x254802(0x106)][_0x254802(0x171)](_0xa1a8ec[_0x254802(0x11b)][_0x254802(0x183)](async _0x1c7021=>{const _0xb97c38=_0x254802;_0x1c7021&&this[_0xb97c38(0x146)]['executeCommand'](_0x5069ca['id'],{'unitId':_0x42febb,'revision':_0x1c7021});}));}[_0xcdc2b4(0x124)](_0x405178){const _0x5e3dd7=_0xcdc2b4;let _0x1e7fc3=this['_univerInstanceService'][_0x5e3dd7(0x126)](_0x405178)[_0x5e3dd7(0x10f)]()[_0x5e3dd7(0x16c)](_0x83bfbd=>_0x83bfbd[_0x5e3dd7(0x14e)]()),_0x5e63f2=new _0x131768(_0x405178)['id'],_0xfc9c9c=_0x1e7fc3['map'](_0x3fd35e=>new _0x51fdf5(_0x405178,_0x3fd35e)['id']),_0x574b1a=_0x1e7fc3[_0x5e3dd7(0x16c)](_0x5e8aa5=>this[_0x5e3dd7(0xea)][_0x5e3dd7(0x103)](_0x405178,_0x5e8aa5)[_0x5e3dd7(0x16c)](_0x3c04de=>new _0x24d965(_0x405178,_0x5e8aa5,_0x3c04de[_0x5e3dd7(0x185)])['id']))['flat'](),_0x2205f0=new _0x41ee57(_0x405178)['id'];return this[_0x5e3dd7(0x18f)][_0x5e3dd7(0x119)]([_0x5e63f2,..._0xfc9c9c,..._0x574b1a,_0x2205f0])[_0x5e3dd7(0x164)](_0x322628=>!!_0x322628[_0x5e3dd7(0xe0)]);}};X=H([V(0x0,_0x501869(_0x5146f1)),V(0x1,_0x5d2eb8),V(0x2,_0x2bc188),V(0x3,_0xc4feca),V(0x4,_0x578fd8),V(0x5,_0x32b568),V(0x6,_0x501869(_0x152aea)),V(0x7,_0x501869(_0x3a5ccb)),V(0x8,_0x501869(_0xef72e6)),V(0x9,_0x501869(_0x3616cc))],X);let Z=class extends _0x5d4f75{constructor(_0xe06082=R,_0xec05a,_0x355176){const _0x33df08=_0xcdc2b4;super(),this['_config']=_0xe06082,this['_injector']=_0xec05a,this[_0x33df08(0x196)]=_0x355176;let {menu:_0x2e5fed,..._0x429e86}=_0x462db5({},R,this[_0x33df08(0x149)]);_0x2e5fed&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x10e),_0x2e5fed,{'merge':!0x0}),this[_0x33df08(0x196)][_0x33df08(0x182)](L,_0x429e86),this[_0x33df08(0x149)]['univerContainerId']&&this[_0x33df08(0x196)][_0x33df08(0x182)](_0x33df08(0x188),this[_0x33df08(0x149)][_0x33df08(0xf1)]);}['onStarting'](){const _0x3d6424=_0xcdc2b4;[[G,{'useClass':X}],[J]][_0x3d6424(0x155)](_0x53c94d=>this[_0x3d6424(0xe7)]['add'](_0x53c94d));}[_0xcdc2b4(0x170)](){const _0x5f257c=_0xcdc2b4;this[_0x5f257c(0xe7)]['get'](J);}};B(Z,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B(Z,_0xcdc2b4(0x17e),_0xcdc2b4(0xee)),B(Z,_0xcdc2b4(0x138),ct),B(Z,_0xcdc2b4(0x17b),lt),Z=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],Z);let Q=class extends _0x1ddce9{constructor(_0x545eeb,_0x40aaf4,_0x28a1a6,_0x2e910d,_0x4ca0cc,_0x585b3f,_0x55a707,_0x15e9d7,_0x46984f,_0x741175,_0x5728d5){const _0x2c2633=_0xcdc2b4;super(),this[_0x2c2633(0x146)]=_0x545eeb,this[_0x2c2633(0xef)]=_0x40aaf4,this[_0x2c2633(0x178)]=_0x28a1a6,this['_historyManagerService']=_0x2e910d,this['_localeService']=_0x4ca0cc,this[_0x2c2633(0xe3)]=_0x585b3f,this[_0x2c2633(0x11f)]=_0x55a707,this['_localCacheService']=_0x15e9d7,this[_0x2c2633(0x15a)]=_0x46984f,this['_univerInstanceService']=_0x741175,this[_0x2c2633(0xfa)]=_0x5728d5,B(this,_0x2c2633(0x10d),null),this[_0x2c2633(0x135)]();}['_init'](){const _0x47a832=_0xcdc2b4;[K,q]['forEach'](_0xb8c6a3=>this[_0x47a832(0x169)](_0x158d14(this[_0x47a832(0x146)][_0x47a832(0x14b)](_0xb8c6a3)))),this[_0x47a832(0x169)](this['_componentManager'][_0x47a832(0x15c)](_0x47a832(0x168),_0x1c442a)),this['_menuManagerService']['mergeMenu'](dt),this['disposeWithMe'](this[_0x47a832(0x146)]['onCommandExecuted'](async(_0x5650ed,_0x5b3f86)=>{const _0x3e4e6b=_0x47a832;if(_0x5650ed['id']===_0x5069ca['id']){let {unitId:_0x1070a8}=_0x5650ed[_0x3e4e6b(0x11d)];this[_0x3e4e6b(0xe3)][_0x3e4e6b(0x15d)]({'content':this[_0x3e4e6b(0x197)]['t'](_0x3e4e6b(0x14d)),'type':_0x5c4b9d[_0x3e4e6b(0x12a)],'duration':0x1388});let _0x171430=this['_collaborationController'][_0x3e4e6b(0xff)](_0x1070a8);_0x5b3f86!=null&&_0x5b3f86[_0x3e4e6b(0xf0)]?this[_0x3e4e6b(0x110)](_0x171430,async()=>(setTimeout(()=>window[_0x3e4e6b(0x12c)][_0x3e4e6b(0x18a)]()),!0x0),!0x0):this[_0x3e4e6b(0x110)](_0x171430,async()=>{const _0x1a8cf9=_0x3e4e6b;let _0x206c37=this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x191)](_0x526e34['UNIVER_SHEET']),_0x28ae7d=_0x206c37==null?void 0x0:_0x206c37[_0x1a8cf9(0x13f)]();if(!_0x28ae7d)return!0x1;this[_0x1a8cf9(0x10a)][_0x1a8cf9(0x19c)](_0x1070a8);let _0x1bf1bc=await this[_0x1a8cf9(0x15a)][_0x1a8cf9(0x13e)](_0x1070a8,_0x526e34['UNIVER_SHEET']);return _0x1bf1bc&&_0x1bf1bc instanceof _0x4fb4cf?(await this[_0x1a8cf9(0xf6)](_0x1bf1bc,_0x28ae7d[_0x1a8cf9(0x14e)]()),!0x0):!0x1;});}}));}[_0xcdc2b4(0x110)](_0x4fdcf3,_0x3beb2a,_0x2214b3=!0x1){const _0x56e5c7=_0xcdc2b4;let _0x104c63=_0x1ff757([_0x4fdcf3[_0x56e5c7(0x157)][_0x56e5c7(0x159)],_0x4fdcf3[_0x56e5c7(0xe4)]])[_0x56e5c7(0x183)](async([_0x694a0b,_0x8d93ee])=>{const _0x1ad04d=_0x56e5c7;if(_0x694a0b[_0x1ad04d(0x11a)]===_0x430f66[_0x1ad04d(0x192)]&&(_0x8d93ee==null?void 0x0:_0x8d93ee[_0x1ad04d(0x176)])===_0x38b07e['SYNCED']&&_0x694a0b['data']['mutations'][_0x1ad04d(0x14a)](_0xb805f=>_0xb805f['id']===_0x5069ca['id'])&&await _0x3beb2a()){var _0x11f87c;this[_0x1ad04d(0xf9)]['unMountHistoryContent'](),_0x104c63[_0x1ad04d(0x129)](),this[_0x1ad04d(0x10d)]&&clearTimeout(this['_revertErrorTimer']),await((_0x11f87c=this[_0x1ad04d(0x195)])==null?void 0x0:_0x11f87c['exhaustSavingTask']());}});_0x2214b3&&(this[_0x56e5c7(0x10d)]=setTimeout(()=>{const _0x552be6=_0x56e5c7;_0x104c63['unsubscribe'](),this[_0x552be6(0xe3)]['show']({'content':this[_0x552be6(0x197)]['t']('editHistory.panel.revertFailed'),'type':_0x5c4b9d[_0x552be6(0x139)],'duration':0xbb8});},0x1388));}async[_0xcdc2b4(0xf6)](_0x4b3188,_0x308750){const _0xfd97ce=_0xcdc2b4;await this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750),_0x4b3188['activeSheet$'][_0xfd97ce(0x145)](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](_0xe39264=>{const _0x96855=_0xfd97ce;_0xe39264&&this[_0x96855(0xfc)](_0xe39264);}),this['_urlService'][_0xfd97ce(0x12f)]['pipe'](_0x118b8c(this[_0xfd97ce(0xe8)]))[_0xfd97ce(0x183)](()=>this['_updateSubUnitFromURLParams'](_0x4b3188,_0x308750));}['_updateURLWithCurrentState'](_0x327196,_0xd3c7dc=!0x1){const _0x317c3e=_0xcdc2b4;let _0x553f42=this['_urlService'][_0x317c3e(0x114)](_0x317c3e(0x13a));_0x327196[_0x317c3e(0x14e)]()!==_0x553f42&&this['_urlService'][_0x317c3e(0x175)]('subunit',_0x327196[_0x317c3e(0x14e)](),_0xd3c7dc);}async['_updateSubUnitFromURLParams'](_0x332d76,_0x1b07ca){const _0x6d942e=_0xcdc2b4;var _0x1dc14c;if(!_0x1b07ca||!_0x332d76[_0x6d942e(0x116)](_0x1b07ca)){let _0x22797d=_0x332d76['getUnhiddenWorksheets']()[0x0],_0x1c34e5=_0x332d76[_0x6d942e(0x116)](_0x22797d);if(!_0x1c34e5)return;this[_0x6d942e(0xfc)](_0x1c34e5,!0x0),await this[_0x6d942e(0x146)]['executeCommand'](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x22797d});return;}((_0x1dc14c=_0x332d76[_0x6d942e(0x13f)]())==null?void 0x0:_0x1dc14c['getSheetId']())!==_0x1b07ca&&await this[_0x6d942e(0x146)][_0x6d942e(0x18e)](_0x551a6e['id'],{'unitId':_0x332d76[_0x6d942e(0x17f)](),'subUnitId':_0x1b07ca});}};Q=H([V(0x0,_0xc4feca),V(0x1,_0x5c69e0),V(0x2,_0x501869(_0x5e54c4)),V(0x3,_0x501869(G)),V(0x4,_0x501869(_0x5146f1)),V(0x5,_0x578fd8),V(0x6,_0x501869(_0x3f3fcc)),V(0x7,_0x15191f),V(0x8,_0x501869(_0x200401)),V(0x9,_0x5d2eb8),V(0xa,_0xc78038)],Q);let $=class extends _0x5d4f75{constructor(_0x2a6b70=R,_0x301b46,_0x539ca2){const _0x331eb1=_0xcdc2b4;super(),this['_config']=_0x2a6b70,this[_0x331eb1(0xe7)]=_0x301b46,this[_0x331eb1(0x196)]=_0x539ca2;let {menu:_0xf038cd,..._0x301c82}=_0x462db5({},R,this[_0x331eb1(0x149)]);_0xf038cd&&this[_0x331eb1(0x196)]['setConfig'](_0x331eb1(0x10e),_0xf038cd,{'merge':!0x0}),this[_0x331eb1(0x196)]['setConfig'](L,_0x301c82),this['_config'][_0x331eb1(0xf1)]&&this['_configService'][_0x331eb1(0x182)](U,this[_0x331eb1(0x149)][_0x331eb1(0xf1)]);}[_0xcdc2b4(0x109)](){const _0x2ea886=_0xcdc2b4;[[G],[Q]]['forEach'](_0x150556=>this[_0x2ea886(0xe7)][_0x2ea886(0x171)](_0x150556));}[_0xcdc2b4(0x170)](){const _0x10d906=_0xcdc2b4;this[_0x10d906(0xe7)]['get'](Q);}};B($,_0xcdc2b4(0x141),_0x2286ef[_0xcdc2b4(0x190)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,_0xcdc2b4(0x138),ct),B($,'version',lt),$=H([_0x299295(_0x13b78b),V(0x1,_0x501869(_0x39260c)),V(0x2,_0x2bc188)],$);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 _0x30cee0=_0x8e5c;(function(_0x257f7e,_0x41a4a2){const _0x906ad9=_0x8e5c,_0x4de9f5=_0x257f7e();while(!![]){try{const _0x4b5638=parseInt(_0x906ad9(0x198))/0x1+parseInt(_0x906ad9(0x1cb))/0x2+parseInt(_0x906ad9(0x215))/0x3+-parseInt(_0x906ad9(0x1d6))/0x4+-parseInt(_0x906ad9(0x174))/0x5+parseInt(_0x906ad9(0x1bf))/0x6+parseInt(_0x906ad9(0x21b))/0x7;if(_0x4b5638===_0x41a4a2)break;else _0x4de9f5['push'](_0x4de9f5['shift']());}catch(_0x4f00d2){_0x4de9f5['push'](_0x4de9f5['shift']());}}}(_0x4791,0x8eec8));import{CommandType as _0x417d54,DependentOn as _0xd3d8f5,Disposable as _0x38c581,DisposableCollection as _0x57be15,IAuthzIoService as _0x127ad8,ICommandService as _0x10df23,IConfigService as _0x4d97a0,IPermissionService as _0x38da5f,IUniverInstanceService as _0x757a60,Inject as _0x176299,Injector as _0xfd563a,LocaleService as _0x44bc99,Plugin as _0x852139,RxDisposable as _0x374fa8,ThemeService as _0x5ddc3f,Univer as _0x2fd0f5,UniverInstanceType as _0x148251,Workbook as _0x48882a,merge as _0x3896f6,toDisposable as _0x3e927d}from'@univerjs/core';import{RangeProtectionPermissionEditPoint as _0x51a168,RangeProtectionRuleModel as _0x1cbb88,SetWorksheetActivateCommand as _0x14a98d,UniverSheetsPlugin as _0x3f206c,WorkbookEditablePermission as _0x43a0ac,WorkbookRecoverHistoryPermission as _0x57d2d6,WorkbookViewHistoryPermission as _0x1f2f44,WorksheetEditPermission as _0x49770f,getSheetCommandTarget as _0x4610c1}from'@univerjs/sheets';import{CollaborationEvent as _0x288cbe,RevertRevisionMutation as _0x5b0966,UniverCollaborationPlugin as _0x1c3c75}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x2ed596,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x338bd6,CollaborationController as _0x261ebc,CollaborationStatus as _0x15958f,DataLoaderService as _0x5f3260,ILocalCacheService as _0x3911fe}from'@univerjs-pro/collaboration-client';import{HistoryManagerService as _0x405830,HistoryModeStatus as _0x2da942,UniverEditHistoryViewerMobilePlugin as _0x25046b,UniverEditHistoryViewerPlugin as _0x18f23d}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3304c0,UniverLicensePlugin as _0xc828e}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x37e97d}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x298f86}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x2f949d}from'@univerjs-pro/sheets-pivot';import{UniverSheetsShapePlugin as _0x17614d}from'@univerjs-pro/sheets-shape';import{UniverSheetsShapeUIPlugin as _0x4f732f}from'@univerjs-pro/sheets-shape-ui';import{UniverSheetSparklinePlugin as _0xbfd183}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5c9f50}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x5b485b}from'@univerjs/data-validation';import{MessageType as _0x1096cb}from'@univerjs/design';import{UniverDocsPlugin as _0x5ce928}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x57d833}from'@univerjs/docs-ui';import{IImageIoService as _0x1bb8d0,UniverDrawingPlugin as _0x4da563}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x469f48}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x18567a}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x24b5f8}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x8802b6}from'@univerjs/network';import{IRemoteInstanceService as _0x4453db,UniverRPCMainThreadPlugin as _0xb2c054}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x58d35e}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x371ab4}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x5c9d52}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationMobileUIPlugin as _0x396896,UniverSheetsDataValidationUIPlugin as _0x212bc8}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x2318b1}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x1d2814}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x44e6f6}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x7d139b}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x400283}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x532a31}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x34cfd3}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x505b2c}from'@univerjs/sheets-hyper-link-ui';function _0x8e5c(_0x5a14ae,_0x471d23){_0x5a14ae=_0x5a14ae-0x167;const _0x479101=_0x4791();let _0x8e5cec=_0x479101[_0x5a14ae];return _0x8e5cec;}import{UniverSheetsNumfmtPlugin as _0x2e80bd}from'@univerjs/sheets-numfmt';import{UniverSheetsTablePlugin as _0x1591b5}from'@univerjs/sheets-table';import{UniverSheetsMobileUIPlugin as _0x2a739f,UniverSheetsUIPlugin as _0x4a4c81,getCurrentRangeDisable$ as _0x2eeeed}from'@univerjs/sheets-ui';import{ComponentManager as _0x3fa206,IDialogService as _0x3375b0,IMenuManagerService as _0x49b1ee,IMessageService as _0x3095a2,ISidebarService as _0x22d10b,MenuItemType as _0x20b139,RibbonStartGroup as _0xdbe3ab,UniverMobileUIPlugin as _0x567c9c,UniverUIPlugin as _0x97cbce,getMenuHiddenObservable as _0x319495}from'@univerjs/ui';import{BehaviorSubject as _0x6655f1,combineLatest as _0x451b3f,takeUntil as _0xaee6e3}from'rxjs';import{IURLService as _0x53cf4f}from'@univerjs-pro/collaboration-client-ui';import{HistoryIcon as _0x2ba663}from'@univerjs/icons';import{UniverType as _0x5295ea}from'@univerjs/protocol';const L=_0x30cee0(0x18b);Symbol(L);const R={};function z(_0x557299){'@babel/helpers - typeof';const _0x207d43=_0x30cee0;return z=typeof Symbol==_0x207d43(0x203)&&typeof Symbol[_0x207d43(0x205)]==_0x207d43(0x173)?function(_0x1fe456){return typeof _0x1fe456;}:function(_0x11cf89){const _0x1daa16=_0x207d43;return _0x11cf89&&typeof Symbol==_0x1daa16(0x203)&&_0x11cf89['constructor']===Symbol&&_0x11cf89!==Symbol[_0x1daa16(0x18a)]?_0x1daa16(0x173):typeof _0x11cf89;},z(_0x557299);}function ot(_0x4d7af4,_0xb12288){const _0x2626eb=_0x30cee0;if(z(_0x4d7af4)!=_0x2626eb(0x180)||!_0x4d7af4)return _0x4d7af4;var _0x3846b2=_0x4d7af4[Symbol[_0x2626eb(0x16d)]];if(_0x3846b2!==void 0x0){var _0x369e18=_0x3846b2[_0x2626eb(0x1a3)](_0x4d7af4,_0xb12288||_0x2626eb(0x1fb));if(z(_0x369e18)!='object')return _0x369e18;throw TypeError(_0x2626eb(0x1c8));}return(_0xb12288===_0x2626eb(0x224)?String:Number)(_0x4d7af4);}function st(_0x1636ce){const _0x10af06=_0x30cee0;var _0x409b02=ot(_0x1636ce,_0x10af06(0x224));return z(_0x409b02)==_0x10af06(0x173)?_0x409b02:_0x409b02+'';}function B(_0x12d3db,_0x1a45b2,_0x7cd817){return(_0x1a45b2=st(_0x1a45b2))in _0x12d3db?Object['defineProperty'](_0x12d3db,_0x1a45b2,{'value':_0x7cd817,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12d3db[_0x1a45b2]=_0x7cd817,_0x12d3db;}function V(_0x30a9c4,_0x35e631){return function(_0x5d52af,_0x22e5e7){_0x35e631(_0x5d52af,_0x22e5e7,_0x30a9c4);};}function H(_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2){const _0x1a6164=_0x30cee0;var _0x57781b=arguments[_0x1a6164(0x1ba)],_0x27a47d=_0x57781b<0x3?_0x210d5c:_0x4d9ac2===null?_0x4d9ac2=Object['getOwnPropertyDescriptor'](_0x210d5c,_0x4d0bdd):_0x4d9ac2,_0x19abbe;if(typeof Reflect==_0x1a6164(0x180)&&typeof Reflect[_0x1a6164(0x219)]==_0x1a6164(0x203))_0x27a47d=Reflect[_0x1a6164(0x219)](_0x553ac0,_0x210d5c,_0x4d0bdd,_0x4d9ac2);else{for(var _0x20ba3b=_0x553ac0['length']-0x1;_0x20ba3b>=0x0;_0x20ba3b--)(_0x19abbe=_0x553ac0[_0x20ba3b])&&(_0x27a47d=(_0x57781b<0x3?_0x19abbe(_0x27a47d):_0x57781b>0x3?_0x19abbe(_0x210d5c,_0x4d0bdd,_0x27a47d):_0x19abbe(_0x210d5c,_0x4d0bdd))||_0x27a47d);}return _0x57781b>0x3&&_0x27a47d&&Object[_0x1a6164(0x212)](_0x210d5c,_0x4d0bdd,_0x27a47d),_0x27a47d;}const U='UNIVER_CONTAINER_ID',W=_0x30cee0(0x1e8);let G=class extends _0x38c581{constructor(_0x336186,_0x3bc2b4,_0x154da6,_0x35da6c,_0x1a8e69,_0x2165c6,_0xe54ae,_0x49a10d,_0xca44ca,_0x3fe9c9){const _0xff1944=_0x30cee0;super(),this[_0xff1944(0x1a5)]=_0x336186,this[_0xff1944(0x16c)]=_0x3bc2b4,this[_0xff1944(0x21c)]=_0x154da6,this[_0xff1944(0x225)]=_0x35da6c,this[_0xff1944(0x1d0)]=_0x1a8e69,this[_0xff1944(0x1f6)]=_0x2165c6,this['_selectionProtectionRuleModel']=_0xe54ae,this[_0xff1944(0x191)]=_0x49a10d,this[_0xff1944(0x1ae)]=_0xca44ca,this[_0xff1944(0x16b)]=_0x3fe9c9,B(this,_0xff1944(0x1c2),new _0x6655f1(null)),B(this,_0xff1944(0x16a),this['_historyUniver$'][_0xff1944(0x20e)]()),B(this,'_disposableCollection',new _0x57be15()),B(this,'_pluginMap',new Map()),B(this,_0xff1944(0x1d4),null),this[_0xff1944(0x1e3)]();}get['historyUniver'](){const _0x441931=_0x30cee0;return this['_historyUniver$'][_0x441931(0x200)];}[_0x30cee0(0x1e3)](){const _0x54d37c=_0x30cee0;this['_initContainer'](),this[_0x54d37c(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x5b03d4=_0x30cee0;var _0x31a56e;let _0x531b1c=(_0x31a56e=this[_0x5b03d4(0x21c)][_0x5b03d4(0x1e9)]('UNIVER_CONTAINER_ID'))==null?_0x5b03d4(0x1ce):_0x31a56e,_0x3043f0=document[_0x5b03d4(0x189)](_0x531b1c);if(!_0x3043f0)return;let _0x10cd8a=document[_0x5b03d4(0x201)](_0x5b03d4(0x18c));_0x10cd8a['id']=W,_0x10cd8a['dataset'][_0x5b03d4(0x1f7)]='history-container',_0x10cd8a['style'][_0x5b03d4(0x1ad)]=_0x5b03d4(0x196),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1be)]='0',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x17d)]='0',_0x10cd8a[_0x5b03d4(0x1b1)]['width']=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1e1)]=_0x5b03d4(0x1d3),_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x202)]='49',_0x10cd8a[_0x5b03d4(0x1b1)][_0x5b03d4(0x1ac)]='none',_0x3043f0[_0x5b03d4(0x207)](_0x10cd8a);}[_0x30cee0(0x1dd)](){const _0x1c7174=_0x30cee0;[[_0x24b5f8],[_0x97cbce,{'container':W,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x4a4c81],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x7d139b],[_0x58d35e],[_0x371ab4],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x212bc8],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]][_0x1c7174(0x1b6)](([_0x231c68,_0x342c19])=>this['registerPlugin'](_0x231c68,_0x342c19));}[_0x30cee0(0x1d9)](){const _0x589a22=_0x30cee0;super[_0x589a22(0x1d9)](),this[_0x589a22(0x221)](),this[_0x589a22(0x1b5)][_0x589a22(0x181)]();}['registerPlugin'](_0x548a52,_0x5bec4a,_0xab076e){const _0x38ccd5=_0x30cee0;if(this['_pluginMap'][_0x38ccd5(0x216)](_0x548a52['pluginName'])&&!_0xab076e)throw Error(_0x38ccd5(0x206)+_0x548a52[_0x38ccd5(0x1a0)]+_0x38ccd5(0x176));this[_0x38ccd5(0x1b5)][_0x38ccd5(0x1bd)](_0x548a52[_0x38ccd5(0x1a0)],[_0x548a52,_0x5bec4a]);}[_0x30cee0(0x186)](){const _0x274771=_0x30cee0;return Array[_0x274771(0x18e)](this['_pluginMap'][_0x274771(0x197)]());}[_0x30cee0(0x209)](_0x372aa2,_0xbf69a4){const _0x5b10c9=_0x30cee0;let _0x52469a=document[_0x5b10c9(0x189)](W);_0x52469a&&(_0x52469a[_0x5b10c9(0x1b1)][_0x5b10c9(0x1ac)]=_0x5b10c9(0x1c6),this[_0x5b10c9(0x1e4)](_0x372aa2,W,_0xbf69a4));}['unMountHistoryContent'](){const _0x4e54f2=_0x30cee0;var _0x2fdcd5;this[_0x4e54f2(0x1fd)][_0x4e54f2(0x1d9)](),(_0x2fdcd5=this[_0x4e54f2(0x1f4)])==null||_0x2fdcd5[_0x4e54f2(0x1d9)](),this[_0x4e54f2(0x1c2)][_0x4e54f2(0x20f)](null);let _0x5d0919=document[_0x4e54f2(0x189)](W);_0x5d0919&&(_0x5d0919[_0x4e54f2(0x1b1)][_0x4e54f2(0x1ac)]=_0x4e54f2(0x21e),this[_0x4e54f2(0x1d4)]&&(this[_0x4e54f2(0x1d4)][_0x4e54f2(0x218)](),this[_0x4e54f2(0x1d4)]=null));}['_initUniver'](_0x4e228,_0x5dca58,_0x40799c){const _0x33a7b2=_0x30cee0;var _0x3eeb7f,_0x19f890,_0x379c13,_0x5ed563,_0x185614;if(this[_0x33a7b2(0x1f4)])return;let _0x3d8a97=new _0x2fd0f5({'locales':{[this[_0x33a7b2(0x1a5)][_0x33a7b2(0x190)]()]:this[_0x33a7b2(0x1a5)][_0x33a7b2(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x175d87=_0x3d8a97[_0x33a7b2(0x1fe)]();this[_0x33a7b2(0x1c7)](this[_0x33a7b2(0x16b)][_0x33a7b2(0x1cf)][_0x33a7b2(0x1b9)](_0x3f9ea6=>{const _0x125a91=_0x33a7b2;_0x175d87[_0x125a91(0x192)](_0x5ddc3f)[_0x125a91(0x19a)](_0x3f9ea6);})),this[_0x33a7b2(0x1c7)](this['_themeService'][_0x33a7b2(0x178)][_0x33a7b2(0x1b9)](_0x20e7e2=>{const _0x329cd7=_0x33a7b2;_0x175d87['get'](_0x5ddc3f)[_0x329cd7(0x1ab)](_0x20e7e2);})),_0x175d87[_0x33a7b2(0x192)](_0x44bc99)[_0x33a7b2(0x20c)](this['_localeService'][_0x33a7b2(0x190)]()),_0x175d87[_0x33a7b2(0x192)](_0x4d97a0)['setConfig'](_0x338bd6,this[_0x33a7b2(0x21c)]['getConfig'](_0x338bd6));let _0x1be802=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x3304c0);_0x1be802&&_0x3d8a97[_0x33a7b2(0x1d1)](_0xc828e,{'license':_0x1be802['ls']});let _0x370f9=(_0x3eeb7f=this['_configService'][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x3eeb7f[_0x33a7b2(0x20a)],_0x4ec623=!!_0x370f9;_0x4ec623&&(this[_0x33a7b2(0x1d4)]=_0x370f9 instanceof Worker?_0x370f9:null,_0x3d8a97[_0x33a7b2(0x1d1)](_0xb2c054,{'workerURL':_0x370f9})),this[_0x33a7b2(0x1b5)][_0x33a7b2(0x1b6)](([_0x3d35df,_0x1b4127])=>{_0x3d8a97['registerPlugin'](_0x3d35df,_0x1b4127);}),_0x3d8a97['registerPlugin'](_0x18f23d,{'historyListServerUrl':(_0x19f890=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x19f890[_0x33a7b2(0x1c3)],'historyPanelComponentKey':(_0x379c13=this[_0x33a7b2(0x21c)]['getConfig'](_0x33a7b2(0x18b)))==null?void 0x0:_0x379c13[_0x33a7b2(0x19c)],'historyPanelHidden':(_0x5ed563=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)](_0x33a7b2(0x18b)))==null?void 0x0:_0x5ed563[_0x33a7b2(0x213)],'historyAIassistantEnabled':(_0x185614=this[_0x33a7b2(0x21c)][_0x33a7b2(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x185614[_0x33a7b2(0x211)]}),_0x175d87['invoke'](_0x5dbe6f=>{const _0x2cfdf1=_0x33a7b2;this[_0x2cfdf1(0x1a2)](_0x5dbe6f,_0x4e228);}),this['_historyUniver$'][_0x33a7b2(0x20f)](_0x3d8a97);let _0x83950f=_0x175d87[_0x33a7b2(0x192)](_0x405830),_0x55a52f=this['_checkCanRevert'](_0x4e228),_0x46b98c=()=>{const _0xbdadd5=_0x33a7b2;_0x40799c?_0x83950f[_0xbdadd5(0x179)](_0x4e228,_0x5dca58,_0x55a52f,_0x40799c):_0x83950f[_0xbdadd5(0x1cc)](_0x4e228,_0x5dca58,_0x55a52f);};if(this[_0x33a7b2(0x1d0)][_0x33a7b2(0x185)]({'content':this['_localeService']['t'](_0x33a7b2(0x1d2)),'type':_0x1096cb[_0x33a7b2(0x1ee)]}),_0x4ec623)try{_0x175d87['get'](_0x4453db)[_0x33a7b2(0x20d)]()['then'](()=>{_0x46b98c();});}catch{_0x46b98c();}else _0x46b98c();}['_initListener'](_0x168082,_0x2119f7){const _0x23d056=_0x30cee0;let _0x400f60=_0x168082['get'](_0x405830);this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60['status$']['subscribe'](_0x381419=>{const _0x5e6b48=_0x23d056;switch(_0x381419){case _0x2da942['Entered']:this[_0x5e6b48(0x191)][_0x5e6b48(0x188)](),this[_0x5e6b48(0x1ae)][_0x5e6b48(0x223)]();break;case _0x2da942[_0x5e6b48(0x1b2)]:this[_0x5e6b48(0x225)][_0x5e6b48(0x18f)](q['id']),this[_0x5e6b48(0x221)]();break;case _0x2da942['Error']:this[_0x5e6b48(0x221)](),this[_0x5e6b48(0x1d0)]['show']({'content':this[_0x5e6b48(0x1a5)]['t'](_0x5e6b48(0x220)),'type':_0x1096cb[_0x5e6b48(0x1f9)],'duration':0xbb8});break;default:break;}})),this[_0x23d056(0x1fd)][_0x23d056(0x1df)](_0x400f60[_0x23d056(0x1f2)]['subscribe'](async _0x389a23=>{const _0x4799bb=_0x23d056;_0x389a23&&this[_0x4799bb(0x225)][_0x4799bb(0x18f)](_0x5b0966['id'],{'unitId':_0x2119f7,'revision':_0x389a23});}));}[_0x30cee0(0x169)](_0x3b8ad0){const _0x120ef4=_0x30cee0;let _0xd0fcb9=this[_0x120ef4(0x16c)][_0x120ef4(0x214)](_0x3b8ad0)['getSheets']()[_0x120ef4(0x1de)](_0x4bc003=>_0x4bc003[_0x120ef4(0x177)]()),_0x28660c=new _0x43a0ac(_0x3b8ad0)['id'],_0x727801=_0xd0fcb9[_0x120ef4(0x1de)](_0x48d4a6=>new _0x49770f(_0x3b8ad0,_0x48d4a6)['id']),_0x310d5a=_0xd0fcb9['map'](_0x546454=>this[_0x120ef4(0x17a)][_0x120ef4(0x1f1)](_0x3b8ad0,_0x546454)[_0x120ef4(0x1de)](_0x4a30b3=>new _0x51a168(_0x3b8ad0,_0x546454,_0x4a30b3[_0x120ef4(0x1f8)])['id']))[_0x120ef4(0x1e5)](),_0x4d0981=new _0x57d2d6(_0x3b8ad0)['id'];return this[_0x120ef4(0x1f6)][_0x120ef4(0x17b)]([_0x28660c,..._0x727801,..._0x310d5a,_0x4d0981])[_0x120ef4(0x21d)](_0x51419f=>!!_0x51419f[_0x120ef4(0x200)]);}};G=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],G);const K={'id':'univer.operation.toggle-edit-history','type':_0x417d54[_0x30cee0(0x1d7)],'handler':_0x11f80e=>{const _0x140ae6=_0x30cee0;let _0x585770=_0x11f80e[_0x140ae6(0x192)](G),{unitId:_0x585e6f}=_0x4610c1(_0x11f80e[_0x140ae6(0x192)](_0x757a60))||{};return _0x585e6f?(_0x585770['mountHistoryContent'](_0x585e6f),!0x0):!0x1;}},q={'id':_0x30cee0(0x21a),'type':_0x417d54[_0x30cee0(0x1d7)],'handler':()=>!0x0};function _0x4791(){const _0x5b8f18=['height','_dataLoaderService','_init','_initUniver','flat','onSteady','data','univer-history-container','getConfig','_menuManagerService','UNIVER_CONTAINER_ID','_config','getCollabEntity','Loading','setConfig','OTHERS','getSubunitRuleList','revertRevision$','getActiveSheet','historyUniver','univer-history-container-mobile','_permissionService','uComp','permissionId','Error','reload','default','getUnitId','_disposableCollection','__getInjector','getCurrentUnitOfType','value','createElement','zIndex','function','UNIVER_SHEET','iterator','[HistoryLoaderService]:\x20Plugin\x20','appendChild','event$','mountHistoryContent','workerURL','getUnhiddenWorksheets','setLocale','whenReady','asObservable','next','status$','historyAIassistantEnabled','defineProperty','historyPanelHidden','getUnit','1902120OyUYqE','has','getSheetBySheetId','terminate','decorate','univer.operation.exit-edit-history','457891zgiCbN','_configService','every','none','loadUnit','editHistory.panel.listFetchError','unMountHistoryContent','register','close','string','_commandService','location','mergeMenu','pipe','_localCacheService','_checkCanRevert','historyUniver$','_themeService','_univerInstanceService','toPrimitive','urlChange$','univerContainerId','session','@univerjs-pro/edit-history-loader','editHistory.panel.revertFailed','symbol','3516750ZtPvhD','exhaustSavingTask','\x20has\x20been\x20registered.','getSheetId','currentTheme$','triggerCustomVersions','_selectionProtectionRuleModel','composePermission','mutations','left','editHistory.panel.reverting','setParam','object','clear','params','then','type','show','getAllPlugins','_setupSubUnitSync','closeAll','getElementById','prototype','edit-history-loader.config','div','getLocales','from','executeCommand','getCurrentLocale','_dialogService','get','editHistory.panel.title','Entered','onCommandExecuted','absolute','values','1006915NYkaPu','_injector','setDarkMode','_historyManagerService','historyPanelComponentKey','_updateSubUnitFromURLParams','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','[MobileHistoryLoaderService]:\x20Plugin\x20','pluginName','subunit','_initListener','call','disposeUnit','_localeService','_componentManager','HistoryIcon','invoke','CHANGESET_ACK','_updateURLWithCurrentState','setTheme','display','position','_sidebarService','getSheets','dispose$','style','Exited','_handleRevertAcknowledgement','getParam','_pluginMap','forEach','BUTTON','version','subscribe','length','fromCollab','state$','set','top','30666FtkXNL','SYNCED','unsubscribe','_historyUniver$','historyListServerUrl','status','activeSheet$','block','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','eventID','381230RQKulr','triggerLoadVersions','registerCommand','univer-container','darkMode$','_messageService','registerPlugin','editHistory.info.initializing','100%','_internalWebWorker','_collaborationController','2453312XuZbuI','OPERATION','UNIVER_UNKNOWN','dispose','some','_initContainer','_urlService','_initPlugins','map','add','_revertErrorTimer'];_0x4791=function(){return _0x5b8f18;};return _0x4791();}var ct=_0x30cee0(0x171),lt='0.19.0';function ut(_0x2c0cd8){const _0x3df520=_0x30cee0;return{'id':K['id'],'type':_0x20b139[_0x3df520(0x1b7)],'icon':_0x3df520(0x1a7),'tooltip':_0x3df520(0x193),'hidden$':_0x319495(_0x2c0cd8,_0x148251[_0x3df520(0x204)]),'disabled$':_0x2eeeed(_0x2c0cd8,{'workbookTypes':[_0x43a0ac,_0x1f2f44],'worksheetTypes':[],'rangeTypes':[]})};}const dt={[_0xdbe3ab[_0x30cee0(0x1f0)]]:{[K['id']]:{'order':0.2,'menuItemFactory':ut}}};let J=class extends _0x374fa8{constructor(_0x3074b0,_0xffb83a,_0x5702f6,_0x5d3e7e,_0xf9bc72,_0x53d6d3,_0x559aa8,_0x590535,_0x106511,_0x51a292,_0x50a826){const _0x20850f=_0x30cee0;super(),this[_0x20850f(0x225)]=_0x3074b0,this['_menuManagerService']=_0xffb83a,this['_componentManager']=_0x5702f6,this[_0x20850f(0x19b)]=_0x5d3e7e,this['_localeService']=_0xf9bc72,this[_0x20850f(0x1d0)]=_0x53d6d3,this['_collaborationController']=_0x559aa8,this[_0x20850f(0x168)]=_0x590535,this[_0x20850f(0x1e2)]=_0x106511,this['_univerInstanceService']=_0x51a292,this['_urlService']=_0x50a826,B(this,_0x20850f(0x1e0),null),this[_0x20850f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x16fe49=_0x30cee0;[K,q]['forEach'](_0x375e90=>this[_0x16fe49(0x1c7)](_0x3e927d(this['_commandService'][_0x16fe49(0x1cd)](_0x375e90)))),this['disposeWithMe'](this[_0x16fe49(0x1a6)][_0x16fe49(0x222)](_0x16fe49(0x1a7),_0x2ba663)),this['_menuManagerService'][_0x16fe49(0x227)](dt),this[_0x16fe49(0x1c7)](this[_0x16fe49(0x225)][_0x16fe49(0x195)](async(_0x533901,_0x3e3795)=>{const _0x2f102c=_0x16fe49;if(_0x533901['id']===_0x5b0966['id']){let {unitId:_0x2fbd94}=_0x533901[_0x2f102c(0x182)];this[_0x2f102c(0x1d0)][_0x2f102c(0x185)]({'content':this[_0x2f102c(0x1a5)]['t'](_0x2f102c(0x17e)),'type':_0x1096cb[_0x2f102c(0x1ee)],'duration':0x1388});let _0x38c666=this['_collaborationController']['getCollabEntity'](_0x2fbd94);_0x3e3795!=null&&_0x3e3795[_0x2f102c(0x1bb)]?this[_0x2f102c(0x1b3)](_0x38c666,async()=>(setTimeout(()=>window[_0x2f102c(0x226)][_0x2f102c(0x1fa)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x38c666,async()=>{const _0x5cf223=_0x2f102c;let _0x2fb0fd=this['_univerInstanceService'][_0x5cf223(0x1ff)](_0x5295ea[_0x5cf223(0x204)]),_0x366630=_0x2fb0fd==null?void 0x0:_0x2fb0fd[_0x5cf223(0x1f3)]();if(!_0x366630)return!0x1;this[_0x5cf223(0x16c)][_0x5cf223(0x1a4)](_0x2fbd94);let _0x1df03c=await this[_0x5cf223(0x1e2)][_0x5cf223(0x21f)](_0x2fbd94,_0x5295ea[_0x5cf223(0x204)]);return _0x1df03c&&_0x1df03c instanceof _0x48882a?(await this[_0x5cf223(0x187)](_0x1df03c,_0x366630[_0x5cf223(0x177)]()),!0x0):!0x1;});}}));}['_handleRevertAcknowledgement'](_0x582da7,_0x4a6a78,_0x50f05e=!0x1){const _0x40fd0c=_0x30cee0;let _0x1fcdb9=_0x451b3f([_0x582da7[_0x40fd0c(0x170)][_0x40fd0c(0x208)],_0x582da7[_0x40fd0c(0x1bc)]])['subscribe'](async([_0x5939a1,_0x34b495])=>{const _0x155a84=_0x40fd0c;if(_0x5939a1[_0x155a84(0x1ca)]===_0x288cbe[_0x155a84(0x1a9)]&&(_0x34b495==null?void 0x0:_0x34b495[_0x155a84(0x1c4)])===_0x15958f[_0x155a84(0x1c0)]&&_0x5939a1[_0x155a84(0x1e7)][_0x155a84(0x17c)][_0x155a84(0x1da)](_0x240bcb=>_0x240bcb['id']===_0x5b0966['id'])&&await _0x4a6a78()){var _0x2a68ca;this[_0x155a84(0x19b)][_0x155a84(0x221)](),_0x1fcdb9[_0x155a84(0x1c1)](),this[_0x155a84(0x1e0)]&&clearTimeout(this[_0x155a84(0x1e0)]),await((_0x2a68ca=this['_localCacheService'])==null?void 0x0:_0x2a68ca[_0x155a84(0x175)]()),this[_0x155a84(0x1d0)]['removeAll']();}});_0x50f05e&&(this[_0x40fd0c(0x1e0)]=setTimeout(()=>{const _0x5a2dde=_0x40fd0c;_0x1fcdb9['unsubscribe'](),this['_messageService'][_0x5a2dde(0x185)]({'content':this[_0x5a2dde(0x1a5)]['t'](_0x5a2dde(0x172)),'type':_0x1096cb[_0x5a2dde(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x80d8e4,_0x56a952){const _0x173d6a=_0x30cee0;await this[_0x173d6a(0x19d)](_0x80d8e4,_0x56a952),_0x80d8e4[_0x173d6a(0x1c5)][_0x173d6a(0x167)](_0xaee6e3(this[_0x173d6a(0x1b0)]))[_0x173d6a(0x1b9)](_0x33d9f0=>{const _0x1f9b71=_0x173d6a;_0x33d9f0&&this[_0x1f9b71(0x1aa)](_0x33d9f0);}),this['_urlService'][_0x173d6a(0x16e)][_0x173d6a(0x167)](_0xaee6e3(this['dispose$']))[_0x173d6a(0x1b9)](()=>this['_updateSubUnitFromURLParams'](_0x80d8e4,_0x56a952));}[_0x30cee0(0x1aa)](_0x28822c,_0x15e237=!0x1){const _0x3f208b=_0x30cee0;let _0x3efb5c=this[_0x3f208b(0x1dc)][_0x3f208b(0x1b4)]('subunit');_0x28822c[_0x3f208b(0x177)]()!==_0x3efb5c&&this['_urlService'][_0x3f208b(0x17f)](_0x3f208b(0x1a1),_0x28822c[_0x3f208b(0x177)](),_0x15e237);}async[_0x30cee0(0x19d)](_0x2ce742,_0x2cd225){const _0x31f85a=_0x30cee0;var _0x371f47;if(!_0x2cd225||!_0x2ce742[_0x31f85a(0x217)](_0x2cd225)){let _0x720005=_0x2ce742[_0x31f85a(0x20b)]()[0x0],_0x3c716b=_0x2ce742[_0x31f85a(0x217)](_0x720005);if(!_0x3c716b)return;this[_0x31f85a(0x1aa)](_0x3c716b,!0x0),await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x720005});return;}((_0x371f47=_0x2ce742[_0x31f85a(0x1f3)]())==null?void 0x0:_0x371f47[_0x31f85a(0x177)]())!==_0x2cd225&&await this[_0x31f85a(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x2ce742['getUnitId'](),'subUnitId':_0x2cd225});}};J=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],J);const Y=_0x30cee0(0x1f5);let X=class extends _0x38c581{constructor(_0x227e50,_0x1c1e1f,_0x59538a,_0x4977db,_0xc2afa7,_0x39e6ab,_0xf93d7e,_0x5565f5,_0x451cec,_0x3d3188){const _0x3b6597=_0x30cee0;super(),this[_0x3b6597(0x1a5)]=_0x227e50,this['_univerInstanceService']=_0x1c1e1f,this[_0x3b6597(0x21c)]=_0x59538a,this['_commandService']=_0x4977db,this[_0x3b6597(0x1d0)]=_0xc2afa7,this['_permissionService']=_0x39e6ab,this['_selectionProtectionRuleModel']=_0xf93d7e,this[_0x3b6597(0x191)]=_0x5565f5,this[_0x3b6597(0x1ae)]=_0x451cec,this[_0x3b6597(0x16b)]=_0x3d3188,B(this,'_historyUniver$',new _0x6655f1(null)),B(this,'historyUniver$',this[_0x3b6597(0x1c2)]['asObservable']()),B(this,'_disposableCollection',new _0x57be15()),B(this,_0x3b6597(0x1b5),new Map()),B(this,_0x3b6597(0x1d4),null),this['_init']();}get[_0x30cee0(0x1f4)](){const _0x3fa1a2=_0x30cee0;return this[_0x3fa1a2(0x1c2)]['value'];}['_init'](){const _0xa2f2b9=_0x30cee0;this[_0xa2f2b9(0x1db)](),this[_0xa2f2b9(0x1dd)]();}[_0x30cee0(0x1db)](){const _0x25d82c=_0x30cee0;var _0x3ee3e3;let _0x9d28d2=(_0x3ee3e3=this[_0x25d82c(0x21c)][_0x25d82c(0x1e9)](_0x25d82c(0x1eb)))==null?_0x25d82c(0x1ce):_0x3ee3e3,_0x438093=document[_0x25d82c(0x189)](_0x9d28d2);if(!_0x438093)return;let _0x2bc8b7=document['createElement'](_0x25d82c(0x18c));_0x2bc8b7['id']=Y,_0x2bc8b7['dataset']['uComp']='history-container',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ad)]=_0x25d82c(0x196),_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1be)]='0',_0x2bc8b7['style']['left']='0',_0x2bc8b7[_0x25d82c(0x1b1)]['width']=_0x25d82c(0x1d3),_0x2bc8b7['style'][_0x25d82c(0x1e1)]='100%',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x202)]='49',_0x2bc8b7[_0x25d82c(0x1b1)][_0x25d82c(0x1ac)]='none',_0x438093[_0x25d82c(0x207)](_0x2bc8b7);}[_0x30cee0(0x1dd)](){const _0x3796f7=_0x30cee0;[[_0x24b5f8],[_0x567c9c,{'container':Y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x3375b0,null]]}],[_0x8802b6],[_0x4da563,{'override':[[_0x1bb8d0,null]]}],[_0x5ce928,{'hasScroll':!0x1}],[_0x57d833],[_0x2e80bd],[_0x3f206c,{'notExecuteFormula':!0x0}],[_0x2a739f],[_0x400283],[_0x532a31],[_0x1c3c75],[_0x44e6f6],[_0x58d35e],[_0x34cfd3],[_0x505b2c],[_0x5b485b],[_0x5c9d52],[_0x396896],[_0x18567a,{'notExecuteFormula':!0x0}],[_0x469f48],[_0x2318b1],[_0x1d2814],[_0xbfd183],[_0x5c9f50],[_0x37e97d],[_0x298f86],[_0x17614d],[_0x4f732f],[_0x2f949d,{'notExecuteFormula':!0x0}],[_0x1591b5]]['forEach'](([_0xe63443,_0x383eb8])=>this[_0x3796f7(0x1d1)](_0xe63443,_0x383eb8));}[_0x30cee0(0x1d9)](){const _0x55d4e4=_0x30cee0;super[_0x55d4e4(0x1d9)](),this[_0x55d4e4(0x221)](),this['_pluginMap'][_0x55d4e4(0x181)]();}[_0x30cee0(0x1d1)](_0x4c7c25,_0x1e6ede,_0x37e935){const _0x20a5f7=_0x30cee0;if(this[_0x20a5f7(0x1b5)][_0x20a5f7(0x216)](_0x4c7c25[_0x20a5f7(0x1a0)])&&!_0x37e935)throw Error(_0x20a5f7(0x19f)+_0x4c7c25[_0x20a5f7(0x1a0)]+_0x20a5f7(0x176));this['_pluginMap'][_0x20a5f7(0x1bd)](_0x4c7c25['pluginName'],[_0x4c7c25,_0x1e6ede]);}['getAllPlugins'](){const _0x122e0d=_0x30cee0;return Array[_0x122e0d(0x18e)](this[_0x122e0d(0x1b5)][_0x122e0d(0x197)]());}[_0x30cee0(0x209)](_0x2a11b0,_0x127dd5){const _0x5a010b=_0x30cee0;let _0x42cb06=document['getElementById'](Y);_0x42cb06&&(_0x42cb06[_0x5a010b(0x1b1)][_0x5a010b(0x1ac)]=_0x5a010b(0x1c6),this[_0x5a010b(0x1e4)](_0x2a11b0,Y,_0x127dd5));}['unMountHistoryContent'](){const _0x386f39=_0x30cee0;var _0x62c7b;this[_0x386f39(0x1fd)][_0x386f39(0x1d9)](),(_0x62c7b=this['historyUniver'])==null||_0x62c7b[_0x386f39(0x1d9)](),this[_0x386f39(0x1c2)][_0x386f39(0x20f)](null);let _0x48bda6=document['getElementById'](Y);_0x48bda6&&(_0x48bda6['style'][_0x386f39(0x1ac)]='none',this[_0x386f39(0x1d4)]&&(this[_0x386f39(0x1d4)][_0x386f39(0x218)](),this[_0x386f39(0x1d4)]=null));}['_initUniver'](_0x104b9d,_0x46c226,_0x7f23c3){const _0x5151e0=_0x30cee0;var _0x46e582,_0x4faf5a,_0x2296c6,_0x4d5a8b;if(this[_0x5151e0(0x1f4)])return;let _0x3a0d67=new _0x2fd0f5({'locales':{[this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()]:this[_0x5151e0(0x1a5)][_0x5151e0(0x18d)]()},'override':[[_0x127ad8,{'useClass':_0x2ed596}]]}),_0x5db559=_0x3a0d67['__getInjector']();this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x1cf)][_0x5151e0(0x1b9)](_0x41758b=>{const _0xf70521=_0x5151e0;_0x5db559[_0xf70521(0x192)](_0x5ddc3f)[_0xf70521(0x19a)](_0x41758b);})),this[_0x5151e0(0x1c7)](this[_0x5151e0(0x16b)][_0x5151e0(0x178)][_0x5151e0(0x1b9)](_0x4ea31=>{const _0x4c4afa=_0x5151e0;_0x5db559[_0x4c4afa(0x192)](_0x5ddc3f)[_0x4c4afa(0x1ab)](_0x4ea31);})),_0x5db559[_0x5151e0(0x192)](_0x44bc99)[_0x5151e0(0x20c)](this[_0x5151e0(0x1a5)][_0x5151e0(0x190)]()),_0x5db559['get'](_0x4d97a0)[_0x5151e0(0x1ef)](_0x338bd6,this[_0x5151e0(0x21c)]['getConfig'](_0x338bd6));let _0x120654=this[_0x5151e0(0x21c)]['getConfig'](_0x3304c0);_0x120654&&_0x3a0d67[_0x5151e0(0x1d1)](_0xc828e,{'license':_0x120654['ls']});let _0x43a74c=(_0x46e582=this[_0x5151e0(0x21c)][_0x5151e0(0x1e9)](_0x5151e0(0x18b)))==null?void 0x0:_0x46e582[_0x5151e0(0x20a)],_0x562c62=!!_0x43a74c;_0x562c62&&(this['_internalWebWorker']=_0x43a74c instanceof Worker?_0x43a74c:null,_0x3a0d67['registerPlugin'](_0xb2c054,{'workerURL':_0x43a74c})),this[_0x5151e0(0x1b5)]['forEach'](([_0x6c874b,_0x5738aa])=>{const _0xbb05b5=_0x5151e0;_0x3a0d67[_0xbb05b5(0x1d1)](_0x6c874b,_0x5738aa);}),_0x3a0d67[_0x5151e0(0x1d1)](_0x25046b,{'historyListServerUrl':(_0x4faf5a=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4faf5a['historyListServerUrl'],'historyPanelComponentKey':(_0x2296c6=this['_configService'][_0x5151e0(0x1e9)]('edit-history-loader.config'))==null?void 0x0:_0x2296c6[_0x5151e0(0x19c)],'historyPanelHidden':(_0x4d5a8b=this[_0x5151e0(0x21c)]['getConfig'](_0x5151e0(0x18b)))==null?void 0x0:_0x4d5a8b[_0x5151e0(0x213)]}),_0x5db559[_0x5151e0(0x1a8)](_0x1b0e98=>{const _0x315163=_0x5151e0;this[_0x315163(0x1a2)](_0x1b0e98,_0x104b9d);}),this[_0x5151e0(0x1c2)]['next'](_0x3a0d67);let _0x54c5c1=_0x5db559[_0x5151e0(0x192)](_0x405830),_0x4f650d=this[_0x5151e0(0x169)](_0x104b9d),_0x2ac552=()=>{const _0x5b21a0=_0x5151e0;_0x7f23c3?_0x54c5c1[_0x5b21a0(0x179)](_0x104b9d,_0x46c226,_0x4f650d,_0x7f23c3):_0x54c5c1['triggerLoadVersions'](_0x104b9d,_0x46c226,_0x4f650d);};if(this['_messageService'][_0x5151e0(0x185)]({'content':this[_0x5151e0(0x1a5)]['t'](_0x5151e0(0x1d2)),'type':_0x1096cb[_0x5151e0(0x1ee)]}),_0x562c62)try{_0x5db559['get'](_0x4453db)[_0x5151e0(0x20d)]()[_0x5151e0(0x183)](()=>{_0x2ac552();});}catch{_0x2ac552();}else _0x2ac552();}[_0x30cee0(0x1a2)](_0xcb21ab,_0x485856){const _0x23ab53=_0x30cee0;let _0x30cf31=_0xcb21ab[_0x23ab53(0x192)](_0x405830);this['_disposableCollection'][_0x23ab53(0x1df)](_0x30cf31[_0x23ab53(0x210)][_0x23ab53(0x1b9)](_0x41479e=>{const _0x54c217=_0x23ab53;switch(_0x41479e){case _0x2da942[_0x54c217(0x194)]:this[_0x54c217(0x191)]['closeAll'](),this[_0x54c217(0x1ae)][_0x54c217(0x223)]();break;case _0x2da942[_0x54c217(0x1b2)]:this[_0x54c217(0x225)]['executeCommand'](q['id']),this[_0x54c217(0x221)]();break;case _0x2da942[_0x54c217(0x1f9)]:this[_0x54c217(0x221)](),this[_0x54c217(0x1d0)][_0x54c217(0x185)]({'content':this[_0x54c217(0x1a5)]['t'](_0x54c217(0x220)),'type':_0x1096cb[_0x54c217(0x1f9)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x30cf31[_0x23ab53(0x1f2)][_0x23ab53(0x1b9)](async _0x2e9bb0=>{const _0x472fd9=_0x23ab53;_0x2e9bb0&&this[_0x472fd9(0x225)][_0x472fd9(0x18f)](_0x5b0966['id'],{'unitId':_0x485856,'revision':_0x2e9bb0});}));}[_0x30cee0(0x169)](_0x4c6b06){const _0x166637=_0x30cee0;let _0x934236=this[_0x166637(0x16c)][_0x166637(0x214)](_0x4c6b06)[_0x166637(0x1af)]()['map'](_0x5a2d59=>_0x5a2d59[_0x166637(0x177)]()),_0x976ff0=new _0x43a0ac(_0x4c6b06)['id'],_0x2059dc=_0x934236['map'](_0x46768e=>new _0x49770f(_0x4c6b06,_0x46768e)['id']),_0x1b546f=_0x934236[_0x166637(0x1de)](_0x5bd6aa=>this[_0x166637(0x17a)][_0x166637(0x1f1)](_0x4c6b06,_0x5bd6aa)[_0x166637(0x1de)](_0x1d9892=>new _0x51a168(_0x4c6b06,_0x5bd6aa,_0x1d9892['permissionId'])['id']))[_0x166637(0x1e5)](),_0x77b2ff=new _0x57d2d6(_0x4c6b06)['id'];return this[_0x166637(0x1f6)][_0x166637(0x17b)]([_0x976ff0,..._0x2059dc,..._0x1b546f,_0x77b2ff])[_0x166637(0x21d)](_0x5e49f2=>!!_0x5e49f2[_0x166637(0x200)]);}};X=H([V(0x0,_0x176299(_0x44bc99)),V(0x1,_0x757a60),V(0x2,_0x4d97a0),V(0x3,_0x10df23),V(0x4,_0x3095a2),V(0x5,_0x38da5f),V(0x6,_0x176299(_0x1cbb88)),V(0x7,_0x176299(_0x3375b0)),V(0x8,_0x176299(_0x22d10b)),V(0x9,_0x176299(_0x5ddc3f))],X);let Z=class extends _0x852139{constructor(_0x2e2943=R,_0x13934f,_0x109eff){const _0x286f8c=_0x30cee0;super(),this[_0x286f8c(0x1ec)]=_0x2e2943,this[_0x286f8c(0x199)]=_0x13934f,this[_0x286f8c(0x21c)]=_0x109eff;let {menu:_0xb53bb,..._0x20c1c4}=_0x3896f6({},R,this['_config']);_0xb53bb&&this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)]('menu',_0xb53bb,{'merge':!0x0}),this[_0x286f8c(0x21c)][_0x286f8c(0x1ef)](L,_0x20c1c4),this['_config'][_0x286f8c(0x16f)]&&this[_0x286f8c(0x21c)]['setConfig'](_0x286f8c(0x1eb),this[_0x286f8c(0x1ec)][_0x286f8c(0x16f)]);}[_0x30cee0(0x1c9)](){const _0x33930c=_0x30cee0;[[G,{'useClass':X}],[J]][_0x33930c(0x1b6)](_0xa69ccc=>this[_0x33930c(0x199)][_0x33930c(0x1df)](_0xa69ccc));}[_0x30cee0(0x1e6)](){const _0x440101=_0x30cee0;this['_injector'][_0x440101(0x192)](J);}};B(Z,_0x30cee0(0x184),_0x148251['UNIVER_UNKNOWN']),B(Z,'pluginName',_0x30cee0(0x19e)),B(Z,'packageName',ct),B(Z,_0x30cee0(0x1b8),lt),Z=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],Z);let Q=class extends _0x374fa8{constructor(_0x3c0b12,_0xbc8a30,_0x2d5632,_0x20513c,_0x41dcde,_0x34b700,_0x24543d,_0x34239c,_0x2307ac,_0x2e4181,_0x41505f){const _0xf4970f=_0x30cee0;super(),this[_0xf4970f(0x225)]=_0x3c0b12,this[_0xf4970f(0x1ea)]=_0xbc8a30,this[_0xf4970f(0x1a6)]=_0x2d5632,this['_historyManagerService']=_0x20513c,this['_localeService']=_0x41dcde,this['_messageService']=_0x34b700,this[_0xf4970f(0x1d5)]=_0x24543d,this[_0xf4970f(0x168)]=_0x34239c,this[_0xf4970f(0x1e2)]=_0x2307ac,this['_univerInstanceService']=_0x2e4181,this[_0xf4970f(0x1dc)]=_0x41505f,B(this,_0xf4970f(0x1e0),null),this[_0xf4970f(0x1e3)]();}[_0x30cee0(0x1e3)](){const _0x57b128=_0x30cee0;[K,q][_0x57b128(0x1b6)](_0x4cb9c6=>this['disposeWithMe'](_0x3e927d(this[_0x57b128(0x225)][_0x57b128(0x1cd)](_0x4cb9c6)))),this[_0x57b128(0x1c7)](this['_componentManager'][_0x57b128(0x222)](_0x57b128(0x1a7),_0x2ba663)),this[_0x57b128(0x1ea)][_0x57b128(0x227)](dt),this['disposeWithMe'](this[_0x57b128(0x225)][_0x57b128(0x195)](async(_0x576a90,_0x486d7f)=>{const _0x326b28=_0x57b128;if(_0x576a90['id']===_0x5b0966['id']){let {unitId:_0x40f992}=_0x576a90[_0x326b28(0x182)];this[_0x326b28(0x1d0)][_0x326b28(0x185)]({'content':this[_0x326b28(0x1a5)]['t']('editHistory.panel.reverting'),'type':_0x1096cb[_0x326b28(0x1ee)],'duration':0x1388});let _0x42755f=this[_0x326b28(0x1d5)][_0x326b28(0x1ed)](_0x40f992);_0x486d7f!=null&&_0x486d7f[_0x326b28(0x1bb)]?this[_0x326b28(0x1b3)](_0x42755f,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x42755f,async()=>{const _0x27af61=_0x326b28;let _0x582c92=this[_0x27af61(0x16c)][_0x27af61(0x1ff)](_0x5295ea[_0x27af61(0x204)]),_0xac1ccf=_0x582c92==null?void 0x0:_0x582c92[_0x27af61(0x1f3)]();if(!_0xac1ccf)return!0x1;this[_0x27af61(0x16c)][_0x27af61(0x1a4)](_0x40f992);let _0x12a5dc=await this[_0x27af61(0x1e2)][_0x27af61(0x21f)](_0x40f992,_0x5295ea['UNIVER_SHEET']);return _0x12a5dc&&_0x12a5dc instanceof _0x48882a?(await this[_0x27af61(0x187)](_0x12a5dc,_0xac1ccf['getSheetId']()),!0x0):!0x1;});}}));}[_0x30cee0(0x1b3)](_0x9e0d30,_0x588ec5,_0x5a6129=!0x1){const _0x11394b=_0x30cee0;let _0x5f1b23=_0x451b3f([_0x9e0d30[_0x11394b(0x170)]['event$'],_0x9e0d30[_0x11394b(0x1bc)]])[_0x11394b(0x1b9)](async([_0x42ede1,_0x4e2010])=>{const _0x4e939d=_0x11394b;if(_0x42ede1[_0x4e939d(0x1ca)]===_0x288cbe[_0x4e939d(0x1a9)]&&(_0x4e2010==null?void 0x0:_0x4e2010[_0x4e939d(0x1c4)])===_0x15958f[_0x4e939d(0x1c0)]&&_0x42ede1['data']['mutations'][_0x4e939d(0x1da)](_0x215e36=>_0x215e36['id']===_0x5b0966['id'])&&await _0x588ec5()){var _0x58e1f2;this['_historyManagerService'][_0x4e939d(0x221)](),_0x5f1b23[_0x4e939d(0x1c1)](),this['_revertErrorTimer']&&clearTimeout(this['_revertErrorTimer']),await((_0x58e1f2=this['_localCacheService'])==null?void 0x0:_0x58e1f2[_0x4e939d(0x175)]());}});_0x5a6129&&(this[_0x11394b(0x1e0)]=setTimeout(()=>{const _0x76cacc=_0x11394b;_0x5f1b23[_0x76cacc(0x1c1)](),this[_0x76cacc(0x1d0)][_0x76cacc(0x185)]({'content':this[_0x76cacc(0x1a5)]['t'](_0x76cacc(0x172)),'type':_0x1096cb[_0x76cacc(0x1f9)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x37f985,_0x2a8ea3){const _0x1ebea9=_0x30cee0;await this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3),_0x37f985[_0x1ebea9(0x1c5)][_0x1ebea9(0x167)](_0xaee6e3(this[_0x1ebea9(0x1b0)]))[_0x1ebea9(0x1b9)](_0x2e2470=>{const _0xdc0a29=_0x1ebea9;_0x2e2470&&this[_0xdc0a29(0x1aa)](_0x2e2470);}),this[_0x1ebea9(0x1dc)]['urlChange$']['pipe'](_0xaee6e3(this[_0x1ebea9(0x1b0)]))['subscribe'](()=>this[_0x1ebea9(0x19d)](_0x37f985,_0x2a8ea3));}[_0x30cee0(0x1aa)](_0x583dd5,_0x812675=!0x1){const _0x2e961b=_0x30cee0;let _0x4ee52c=this[_0x2e961b(0x1dc)]['getParam'](_0x2e961b(0x1a1));_0x583dd5[_0x2e961b(0x177)]()!==_0x4ee52c&&this['_urlService']['setParam'](_0x2e961b(0x1a1),_0x583dd5[_0x2e961b(0x177)](),_0x812675);}async[_0x30cee0(0x19d)](_0x331ee8,_0x339a4e){const _0x228436=_0x30cee0;var _0x36817a;if(!_0x339a4e||!_0x331ee8[_0x228436(0x217)](_0x339a4e)){let _0x1ccbe9=_0x331ee8[_0x228436(0x20b)]()[0x0],_0x123508=_0x331ee8[_0x228436(0x217)](_0x1ccbe9);if(!_0x123508)return;this[_0x228436(0x1aa)](_0x123508,!0x0),await this[_0x228436(0x225)]['executeCommand'](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x1ccbe9});return;}((_0x36817a=_0x331ee8[_0x228436(0x1f3)]())==null?void 0x0:_0x36817a[_0x228436(0x177)]())!==_0x339a4e&&await this[_0x228436(0x225)][_0x228436(0x18f)](_0x14a98d['id'],{'unitId':_0x331ee8[_0x228436(0x1fc)](),'subUnitId':_0x339a4e});}};Q=H([V(0x0,_0x10df23),V(0x1,_0x49b1ee),V(0x2,_0x176299(_0x3fa206)),V(0x3,_0x176299(G)),V(0x4,_0x176299(_0x44bc99)),V(0x5,_0x3095a2),V(0x6,_0x176299(_0x261ebc)),V(0x7,_0x3911fe),V(0x8,_0x176299(_0x5f3260)),V(0x9,_0x757a60),V(0xa,_0x53cf4f)],Q);let $=class extends _0x852139{constructor(_0xe45689=R,_0x360fb7,_0x553036){const _0x9c4ff2=_0x30cee0;super(),this['_config']=_0xe45689,this[_0x9c4ff2(0x199)]=_0x360fb7,this[_0x9c4ff2(0x21c)]=_0x553036;let {menu:_0x44006d,..._0x15a5bf}=_0x3896f6({},R,this[_0x9c4ff2(0x1ec)]);_0x44006d&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)]('menu',_0x44006d,{'merge':!0x0}),this[_0x9c4ff2(0x21c)]['setConfig'](L,_0x15a5bf),this[_0x9c4ff2(0x1ec)][_0x9c4ff2(0x16f)]&&this[_0x9c4ff2(0x21c)][_0x9c4ff2(0x1ef)](U,this[_0x9c4ff2(0x1ec)]['univerContainerId']);}[_0x30cee0(0x1c9)](){const _0x10517f=_0x30cee0;[[G],[Q]][_0x10517f(0x1b6)](_0xabf8b7=>this[_0x10517f(0x199)][_0x10517f(0x1df)](_0xabf8b7));}[_0x30cee0(0x1e6)](){const _0x32a6d8=_0x30cee0;this[_0x32a6d8(0x199)][_0x32a6d8(0x192)](Q);}};B($,'type',_0x148251[_0x30cee0(0x1d8)]),B($,'pluginName','UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),B($,'packageName',ct),B($,_0x30cee0(0x1b8),lt),$=H([_0xd3d8f5(_0xc828e),V(0x1,_0x176299(_0xfd563a)),V(0x2,_0x4d97a0)],$);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 _0x344a(){const _0x33699b=['getConfig','getCurrentRangeDisable$','DataLoaderService','Inject','_univerInstanceService','mask','UniverInstanceType','_injector','getCurrentLocale','fromCollab','RangeProtectionPermissionEditPoint','UNIVER_SLIDE','UniverCollaborationPlugin','uComp','WorksheetEditPermission','show','terminate','UniverEngineRender','ComponentManager','_permissionService','history-icon_clip0_907_281','historyListServerUrl','IURLService','setTheme','value','historyUniver','_localeService','from','DependentOn','_updateSubUnitFromURLParams','prototype','subunit','RangeProtectionRuleModel','_initListener','mountHistoryContent','session','getUnhiddenWorksheets','UNIVER_CONTAINER_ID','getParam','clear','UniverLicensePlugin','IDialogService','historyPanelComponentKey','constructor','absolute','9wBMUAp','setDarkMode','UniverSheetsConditionalFormattingUi','UniverSheetsFormula','_collaborationController','@univerjs-pro/edit-history-loader','UniverSheetsFilter','ICommandService','Univer','toDisposable','replace','add','CollaborationStatus','symbol','takeUntil','exhaustSavingTask','mergeMenu','svg','has','0.18.0','UniverRenderEnginePlugin','dispose$','WorkbookEditablePermission','url(#$1','UniverSheetsHyperLinkUIPlugin','subscribe','UniverSheetsDrawing','UniverProEditHistoryLoader','UniverSheetsFilterPlugin','dispose','every','549888AEOFPX','UniverProSheetsSparkline','UniverDocs','path','top','UniverProSheetsShape','_pluginMap','IMenuManagerService','_updateURLWithCurrentState','100%','history-container','BehaviorSubject','getAllPlugins','1736010wdUBgc','data','UniverSheetSparklineUIPlugin','pluginName','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','UniverUIPlugin','139456IIeEPs','assign','HistoryManagerService','entries','UniverDrawingUIPlugin','toStringTag','HistoryModeStatus','_componentManager','univerjs-icon\x20univerjs-icon-','state$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','IPermissionService','fill','onStarting','location','4217910QBlxFe','setConfig','editHistory.panel.revertFailed','UniverSheetsChartUIPlugin','reload','Module','UniverSheetsDataValidationMobileUIPlugin','revertRevision$','UniverNetwork','getSheetBySheetId','height','UniverSheetsNumfmt','menu','UniverProCollaborationClientUi','split','M0\x200H16V16H0z','trim','_initPlugins','LS_CONFIG_KEY','_themeService','UniverSheetsHyperLinkPlugin','attrs','SetWorksheetActivateCommand','toPrimitive','UniverSheetsShapePlugin','_urlService','_dialogService','UniverSheetsFilterUIPlugin','UniverRpc','IMessageService','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','_commandService','use','WorkbookRecoverHistoryPermission','version','__getInjector','UniverSheetsUi','DisposableCollection','Plugin','composePermission','CollaborationController','getCollabEntity','getUnitId','getLocales','params','zIndex','BUTTON','UniverProSheetsChart','UniverProCollaboration','UniverProLicense','_setupSubUnitSync','univerContainerId','ILocalCacheService','React','Exited','CommandType','onCommandExecuted','79530rLITOG','ThemeService','UniverRPCMainThreadPlugin','UniverProSheetsSparklineUi','display','UniverSheetsFilterUi','getUnit','invoke','packageName','defs','rxjs','UNIVER_HISTORY_CONTAINER_ID','IConfigService','_historyManagerService','forEach','UniverSheets','combineLatest','UniverSheetsDataValidationPlugin','univer.operation.toggle-edit-history','Workbook','decorate','triggerLoadVersions','disposeUnit','toString','getSheets','function','asObservable','_configService','defineProperty','registerCommand','position','UNIVER_SHEET','Error','tag','7uHlirK','pipe','UniverSheetsNumfmtPlugin','[HistoryLoaderService]:\x20Plugin\x20','MobileHistoryLoaderService','UNIVER_UNKNOWN','whenReady','width','style','close','UniverSheetsDrawingPlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_revertErrorTimer','UniverSheetsPlugin','MessageType','UniverSheetSparklinePlugin','UniverEngineFormula','next','WorkbookViewHistoryPermission','UNIVER_CONTAINER_ID_KEY','UniverSheetsShapeUIPlugin','_initUniver','unsubscribe','univer-history-container-mobile','setLocale','createElement','onSteady','disposeWithMe','UniverSheetsMobileUIPlugin','editHistory.panel.listFetchError','ISidebarService','_historyUniver$','closeAll','OPERATION','getActiveSheet','getSubunitRuleList','253206fYdxhJ','UNRECOGNIZED','IAuthzIoService','idSuffix','_internalWebWorker','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','UniverDocsUIPlugin','unMountHistoryContent','UniverSheetsDrawingUIPlugin','defIds','univer.operation.exit-edit-history','getSheetCommandTarget','darkMode$','_init','get','UniverSheetsPivotTablePlugin','some','UniverSheetsTablePlugin','IImageIoService','UniverSheetsConditionalFormattingPlugin','colorChannel1','length','UniverFormulaEnginePlugin','Disposable','IUniverInstanceService','xlink:href','CHANGESET_ACK','getElementById','UniverSheetsConditionalFormatting','_sidebarService','default','div','_messageService','triggerCustomVersions','0\x200\x2016\x2016','705546qIuSyn','_localCacheService','permissionId','merge','editHistory.panel.title','string','currentTheme$','setParam','Loading','displayName','UniverDataValidation','edit-history-loader.config','_dataLoaderService','UniverProSheetsPivot','UniverCore','activeSheet$','Injector','UniverProCollaborationClient','_config','left','includes','set','status','_selectionProtectionRuleModel','registerPlugin','_disposableCollection','UniverDataValidationPlugin','UniverDrawingPlugin','object','loadUnit','UniverIcon','getSheetId','_checkCanRevert','ToggleEditHistoryOperation','map','register','getOwnPropertyDescriptor','UniverSheetsDataValidationUi','UniverSheetsFormulaUIPlugin','32PVHBTT','_initContainer','UniverDesign','UNIVER_DOC','OTHERS','then','type','editHistory.info.initializing','UniverSheetsChartPlugin','RevertRevisionMutation','http://www.w3.org/2000/svg','Entered','useRef','UniverDocsUi','1em','urlChange$','_menuManagerService','IRemoteInstanceService','UniverDocsPlugin','amd','workerURL','HistoryIcon','LocaleService','RxDisposable','iterator','values','_handleRevertAcknowledgement','univer-container','UniverUi','CollaborationEvent','executeCommand','block','UniverNetworkPlugin','UniverProEditHistoryViewer','none','children','\x20has\x20been\x20registered.','dataset','flat','UniverSheetsFormulaUi','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','getCurrentUnitOfType'];_0x344a=function(){return _0x33699b;};return _0x344a();}function _0x295b(_0x37dae8,_0x20b1da){_0x37dae8=_0x37dae8-0x188;const _0x344a62=_0x344a();let _0x295b20=_0x344a62[_0x37dae8];return _0x295b20;}(function(_0x3a2be0,_0x6b5568){const _0x17a972=_0x295b,_0x18d452=_0x3a2be0();while(!![]){try{const _0x4c09e9=-parseInt(_0x17a972(0x249))/0x1*(-parseInt(_0x17a972(0x2c3))/0x2)+parseInt(_0x17a972(0x268))/0x3+-parseInt(_0x17a972(0x27b))/0x4+-parseInt(_0x17a972(0x275))/0x5+-parseInt(_0x17a972(0x1a8))/0x6*(parseInt(_0x17a972(0x2e5))/0x7)+parseInt(_0x17a972(0x1f2))/0x8*(-parseInt(_0x17a972(0x1cb))/0x9)+parseInt(_0x17a972(0x28a))/0xa;if(_0x4c09e9===_0x6b5568)break;else _0x18d452['push'](_0x18d452['shift']());}catch(_0x3b3cf8){_0x18d452['push'](_0x18d452['shift']());}}}(_0x344a,0x36f69),function(_0x349429,_0x372e28){const _0x48d982=_0x295b;typeof exports==_0x48d982(0x1e7)&&typeof module<'u'?_0x372e28(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==_0x48d982(0x2dc)&&define[_0x48d982(0x205)]?define(_0x48d982(0x2a8)[_0x48d982(0x298)]('.'),_0x372e28):(_0x349429=typeof globalThis<'u'?globalThis:_0x349429||self,_0x372e28(_0x349429[_0x48d982(0x264)]={},_0x349429[_0x48d982(0x1d9)],_0x349429[_0x48d982(0x2d2)],_0x349429[_0x48d982(0x2ba)],_0x349429[_0x48d982(0x1dc)],_0x349429[_0x48d982(0x213)],_0x349429[_0x48d982(0x2bb)],_0x349429[_0x48d982(0x2b9)],_0x349429['UniverProSheetsChartUi'],_0x349429[_0x48d982(0x1d8)],_0x349429[_0x48d982(0x26d)],_0x349429['UniverProSheetsShapeUi'],_0x349429[_0x48d982(0x269)],_0x349429[_0x48d982(0x2c6)],_0x349429[_0x48d982(0x1d5)],_0x349429[_0x48d982(0x1f4)],_0x349429[_0x48d982(0x26a)],_0x349429[_0x48d982(0x1ff)],_0x349429['UniverDrawing'],_0x349429['UniverDrawingUi'],_0x349429[_0x48d982(0x194)],_0x349429[_0x48d982(0x22d)],_0x349429[_0x48d982(0x292)],_0x349429[_0x48d982(0x2a6)],_0x349429[_0x48d982(0x1c4)],_0x349429[_0x48d982(0x24b)],_0x349429['UniverSheetsDataValidation'],_0x349429[_0x48d982(0x1f0)],_0x349429[_0x48d982(0x263)],_0x349429['UniverSheetsDrawingUi'],_0x349429[_0x48d982(0x24f)],_0x349429[_0x48d982(0x2c8)],_0x349429[_0x48d982(0x24c)],_0x349429[_0x48d982(0x219)],_0x349429['UniverSheetsHyperLink'],_0x349429['UniverSheetsHyperLinkUi'],_0x349429[_0x48d982(0x295)],_0x349429['UniverSheetsTable'],_0x349429[_0x48d982(0x2ae)],_0x349429[_0x48d982(0x20e)],_0x349429[_0x48d982(0x2cd)],_0x349429[_0x48d982(0x297)],_0x349429[_0x48d982(0x2bf)]));}(this,function(_0x5768db,_0x3e2e2e,_0xca06c9,_0x13b251,_0x5803d8,_0x335bbd,_0x2ee31a,_0x133915,_0x5d0f2c,_0x314dc2,_0x2e1b6d,_0x139710,_0x5b1054,_0x1ef61f,_0x41c8ef,_0x3845ae,_0x2bfaaa,_0xe42b4c,_0x44b2d2,_0x371330,_0x407dbd,_0x517b15,_0x269397,_0x29f076,_0x545a89,_0xa8139b,_0x22225a,_0x1b3eb5,_0x1ca531,_0x5102e5,_0x526e63,_0x4b230b,_0x461ff2,_0x543631,_0xc3bffb,_0x54f247,_0x2eab93,_0x4a170,_0x282b5e,_0x391796,_0x4620fb,_0x393b7d,_0x3237fc){const _0x1b6d6f=_0x295b;Object[_0x1b6d6f(0x2df)](_0x5768db,Symbol[_0x1b6d6f(0x280)],{'value':_0x1b6d6f(0x28f)});let _0x2e83c1=_0x1b6d6f(0x1d6);Symbol(_0x2e83c1);let _0x19d3f5={};function _0x2c4d3f(_0x2b513b){'@babel/helpers - typeof';const _0x35cc41=_0x1b6d6f;return _0x2c4d3f=typeof Symbol=='function'&&typeof Symbol[_0x35cc41(0x20a)]==_0x35cc41(0x256)?function(_0xba180f){return typeof _0xba180f;}:function(_0x327693){const _0x458f4b=_0x35cc41;return _0x327693&&typeof Symbol=='function'&&_0x327693[_0x458f4b(0x247)]===Symbol&&_0x327693!==Symbol[_0x458f4b(0x23a)]?_0x458f4b(0x256):typeof _0x327693;},_0x2c4d3f(_0x2b513b);}function _0x1a9427(_0x574afa,_0x4d43e0){const _0x9be0c7=_0x1b6d6f;if(_0x2c4d3f(_0x574afa)!=_0x9be0c7(0x1e7)||!_0x574afa)return _0x574afa;var _0x28759d=_0x574afa[Symbol[_0x9be0c7(0x2a1)]];if(_0x28759d!==void 0x0){var _0x1085a4=_0x28759d['call'](_0x574afa,_0x4d43e0||_0x9be0c7(0x1c6));if(_0x2c4d3f(_0x1085a4)!=_0x9be0c7(0x1e7))return _0x1085a4;throw TypeError(_0x9be0c7(0x18f));}return(_0x4d43e0===_0x9be0c7(0x1d0)?String:Number)(_0x574afa);}function _0x2a2432(_0x1f3b9){const _0x547eaa=_0x1b6d6f;var _0x292bdf=_0x1a9427(_0x1f3b9,_0x547eaa(0x1d0));return _0x2c4d3f(_0x292bdf)==_0x547eaa(0x256)?_0x292bdf:_0x292bdf+'';}function _0x5d6976(_0x3ad5e3,_0x2f3363,_0x313240){const _0x374a00=_0x1b6d6f;return(_0x2f3363=_0x2a2432(_0x2f3363))in _0x3ad5e3?Object[_0x374a00(0x2df)](_0x3ad5e3,_0x2f3363,{'value':_0x313240,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ad5e3[_0x2f3363]=_0x313240,_0x3ad5e3;}function _0x1c7dd1(_0x23563e,_0x5c710c){return function(_0x50b80f,_0x19ca32){_0x5c710c(_0x50b80f,_0x19ca32,_0x23563e);};}function _0x1ad602(_0x4390e0,_0x2b5e49,_0x45b69d,_0x364bc2){const _0x32ddb6=_0x1b6d6f;var _0x426e65=arguments[_0x32ddb6(0x1bd)],_0x33dcbf=_0x426e65<0x3?_0x2b5e49:_0x364bc2===null?_0x364bc2=Object[_0x32ddb6(0x1ef)](_0x2b5e49,_0x45b69d):_0x364bc2,_0x530f59;if(typeof Reflect==_0x32ddb6(0x1e7)&&typeof Reflect[_0x32ddb6(0x2d7)]==_0x32ddb6(0x2dc))_0x33dcbf=Reflect[_0x32ddb6(0x2d7)](_0x4390e0,_0x2b5e49,_0x45b69d,_0x364bc2);else{for(var _0x5c510c=_0x4390e0[_0x32ddb6(0x1bd)]-0x1;_0x5c510c>=0x0;_0x5c510c--)(_0x530f59=_0x4390e0[_0x5c510c])&&(_0x33dcbf=(_0x426e65<0x3?_0x530f59(_0x33dcbf):_0x426e65>0x3?_0x530f59(_0x2b5e49,_0x45b69d,_0x33dcbf):_0x530f59(_0x2b5e49,_0x45b69d))||_0x33dcbf);}return _0x426e65>0x3&&_0x33dcbf&&Object['defineProperty'](_0x2b5e49,_0x45b69d,_0x33dcbf),_0x33dcbf;}let _0x410ed1=_0x1b6d6f(0x241),_0x4282a9='univer-history-container',_0x36017f=class extends _0x3e2e2e[_0x1b6d6f(0x1bf)]{constructor(_0xdc1e5e,_0x5b8509,_0x40edca,_0x94bd05,_0x46c002,_0x15482f,_0x771fb8,_0xf4ccd6,_0x55e2b2,_0x124a7b){const _0x3f0aa6=_0x1b6d6f;super(),this[_0x3f0aa6(0x236)]=_0xdc1e5e,this[_0x3f0aa6(0x220)]=_0x5b8509,this[_0x3f0aa6(0x2de)]=_0x40edca,this['_commandService']=_0x94bd05,this['_messageService']=_0x46c002,this['_permissionService']=_0x15482f,this[_0x3f0aa6(0x1e2)]=_0x771fb8,this['_dialogService']=_0xf4ccd6,this['_sidebarService']=_0x55e2b2,this[_0x3f0aa6(0x29d)]=_0x124a7b,_0x5d6976(this,'_historyUniver$',new _0x4620fb['BehaviorSubject'](null)),_0x5d6976(this,'historyUniver$',this[_0x3f0aa6(0x1a3)][_0x3f0aa6(0x2dd)]()),_0x5d6976(this,'_disposableCollection',new _0x3e2e2e[(_0x3f0aa6(0x2af))]()),_0x5d6976(this,'_pluginMap',new Map()),_0x5d6976(this,_0x3f0aa6(0x1ac),null),this['_init']();}get[_0x1b6d6f(0x235)](){const _0x192554=_0x1b6d6f;return this[_0x192554(0x1a3)][_0x192554(0x234)];}[_0x1b6d6f(0x1b5)](){const _0x5e7cc1=_0x1b6d6f;this[_0x5e7cc1(0x1f3)](),this[_0x5e7cc1(0x29b)]();}[_0x1b6d6f(0x1f3)](){const _0xa924e9=_0x1b6d6f;var _0x43d3e7;let _0x206074=(_0x43d3e7=this[_0xa924e9(0x2de)][_0xa924e9(0x21c)](_0xa924e9(0x241)))==null?_0xa924e9(0x20d):_0x43d3e7,_0xd29a75=document[_0xa924e9(0x1c3)](_0x206074);if(!_0xd29a75)return;let _0x350d50=document[_0xa924e9(0x19d)](_0xa924e9(0x1c7));_0x350d50['id']=_0x4282a9,_0x350d50[_0xa924e9(0x217)][_0xa924e9(0x229)]=_0xa924e9(0x272),_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x2e1)]=_0xa924e9(0x248),_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x26c)]='0',_0x350d50[_0xa924e9(0x18c)]['left']='0',_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x18b)]=_0xa924e9(0x271),_0x350d50[_0xa924e9(0x18c)][_0xa924e9(0x294)]=_0xa924e9(0x271),_0x350d50[_0xa924e9(0x18c)]['zIndex']='49',_0x350d50[_0xa924e9(0x18c)]['display']='none',_0xd29a75['appendChild'](_0x350d50);}[_0x1b6d6f(0x29b)](){const _0xa8e1e3=_0x1b6d6f;[[_0x517b15['UniverRenderEnginePlugin']],[_0x391796[_0xa8e1e3(0x27a)],{'container':_0x4282a9,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x391796[_0xa8e1e3(0x245)],null]]}],[_0x269397['UniverNetworkPlugin']],[_0x44b2d2[_0xa8e1e3(0x1e6)],{'override':[[_0x44b2d2[_0xa8e1e3(0x1ba)],null]]}],[_0x2bfaaa[_0xa8e1e3(0x204)],{'hasScroll':!0x1}],[_0xe42b4c[_0xa8e1e3(0x1ae)]],[_0x2eab93['UniverSheetsNumfmtPlugin']],[_0xca06c9['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x282b5e['UniverSheetsUIPlugin']],[_0x461ff2['UniverSheetsFormulaPlugin']],[_0x543631[_0xa8e1e3(0x1f1)]],[_0x13b251['UniverCollaborationPlugin']],[_0x526e63['UniverSheetsFilterPlugin']],[_0x4b230b[_0xa8e1e3(0x2a5)]],[_0x545a89[_0xa8e1e3(0x1bb)]],[_0xa8139b['UniverSheetsConditionalFormattingUIPlugin']],[_0xc3bffb[_0xa8e1e3(0x29e)]],[_0x54f247[_0xa8e1e3(0x261)]],[_0x41c8ef['UniverDataValidationPlugin']],[_0x22225a[_0xa8e1e3(0x2d4)]],[_0x1b3eb5['UniverSheetsDataValidationUIPlugin']],[_0x407dbd[_0xa8e1e3(0x1be)],{'notExecuteFormula':!0x0}],[_0x371330[_0xa8e1e3(0x27f)]],[_0x1ca531[_0xa8e1e3(0x18e)]],[_0x5102e5[_0xa8e1e3(0x1b0)]],[_0x5b1054[_0xa8e1e3(0x193)]],[_0x1ef61f['UniverSheetSparklineUIPlugin']],[_0x133915[_0xa8e1e3(0x1fa)]],[_0x5d0f2c[_0xa8e1e3(0x28d)]],[_0x2e1b6d[_0xa8e1e3(0x2a2)]],[_0x139710['UniverSheetsShapeUIPlugin']],[_0x314dc2[_0xa8e1e3(0x1b7)],{'notExecuteFormula':!0x0}],[_0x4a170[_0xa8e1e3(0x1b9)]]][_0xa8e1e3(0x2d1)](([_0x19330f,_0x1640b7])=>this['registerPlugin'](_0x19330f,_0x1640b7));}[_0x1b6d6f(0x266)](){const _0x214e78=_0x1b6d6f;super[_0x214e78(0x266)](),this[_0x214e78(0x1af)](),this['_pluginMap'][_0x214e78(0x243)]();}[_0x1b6d6f(0x1e3)](_0x4a085b,_0x5d77cc,_0x1ea04d){const _0x1c721d=_0x1b6d6f;if(this[_0x1c721d(0x26e)][_0x1c721d(0x25b)](_0x4a085b[_0x1c721d(0x278)])&&!_0x1ea04d)throw Error(_0x1c721d(0x2e8)+_0x4a085b[_0x1c721d(0x278)]+_0x1c721d(0x216));this[_0x1c721d(0x26e)]['set'](_0x4a085b[_0x1c721d(0x278)],[_0x4a085b,_0x5d77cc]);}[_0x1b6d6f(0x274)](){const _0x4a2a84=_0x1b6d6f;return Array['from'](this[_0x4a2a84(0x26e)][_0x4a2a84(0x20b)]());}[_0x1b6d6f(0x23e)](_0x1e9a78,_0x370ca7){const _0x5df7e3=_0x1b6d6f;let _0x4b7601=document[_0x5df7e3(0x1c3)](_0x4282a9);_0x4b7601&&(_0x4b7601[_0x5df7e3(0x18c)]['display']='block',this[_0x5df7e3(0x199)](_0x1e9a78,_0x4282a9,_0x370ca7));}[_0x1b6d6f(0x1af)](){const _0x4f074a=_0x1b6d6f;var _0x3b9054;this[_0x4f074a(0x1e4)][_0x4f074a(0x266)](),(_0x3b9054=this[_0x4f074a(0x235)])==null||_0x3b9054[_0x4f074a(0x266)](),this[_0x4f074a(0x1a3)][_0x4f074a(0x195)](null);let _0x4b07c3=document[_0x4f074a(0x1c3)](_0x4282a9);_0x4b07c3&&(_0x4b07c3[_0x4f074a(0x18c)][_0x4f074a(0x2c7)]=_0x4f074a(0x214),this[_0x4f074a(0x1ac)]&&(this['_internalWebWorker'][_0x4f074a(0x22c)](),this['_internalWebWorker']=null));}[_0x1b6d6f(0x199)](_0x2aaaa3,_0x86b0a9,_0x3340b2){const _0x1c3fda=_0x1b6d6f;var _0x53c05f,_0x201dc6,_0x345d81,_0x1b98ad,_0x212b59;if(this['historyUniver'])return;let _0x80c5c5=new _0x3e2e2e[(_0x1c3fda(0x251))]({'locales':{[this[_0x1c3fda(0x236)][_0x1c3fda(0x224)]()]:this[_0x1c3fda(0x236)][_0x1c3fda(0x2b5)]()},'override':[[_0x3e2e2e['IAuthzIoService'],{'useClass':_0x5803d8['AuthzIoHttpService']}]]}),_0x3f4e0b=_0x80c5c5[_0x1c3fda(0x2ad)]();this[_0x1c3fda(0x19f)](this[_0x1c3fda(0x29d)]['darkMode$'][_0x1c3fda(0x262)](_0x9aea84=>{const _0xba97e6=_0x1c3fda;_0x3f4e0b['get'](_0x3e2e2e[_0xba97e6(0x2c4)])[_0xba97e6(0x24a)](_0x9aea84);})),this[_0x1c3fda(0x19f)](this[_0x1c3fda(0x29d)]['currentTheme$']['subscribe'](_0x32e50c=>{const _0x15b86c=_0x1c3fda;_0x3f4e0b['get'](_0x3e2e2e[_0x15b86c(0x2c4)])[_0x15b86c(0x233)](_0x32e50c);})),_0x3f4e0b[_0x1c3fda(0x1b6)](_0x3e2e2e[_0x1c3fda(0x208)])[_0x1c3fda(0x19c)](this[_0x1c3fda(0x236)]['getCurrentLocale']()),_0x3f4e0b[_0x1c3fda(0x1b6)](_0x3e2e2e[_0x1c3fda(0x2cf)])[_0x1c3fda(0x28b)](_0x5803d8[_0x1c3fda(0x285)],this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x5803d8[_0x1c3fda(0x285)]));let _0x47a6e7=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x2ee31a[_0x1c3fda(0x29c)]);_0x47a6e7&&_0x80c5c5[_0x1c3fda(0x1e3)](_0x2ee31a['UniverLicensePlugin'],{'license':_0x47a6e7['ls']});let _0x557ac9=(_0x53c05f=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)]('edit-history-loader.config'))==null?void 0x0:_0x53c05f[_0x1c3fda(0x206)],_0x130a14=!!_0x557ac9;_0x130a14&&(this[_0x1c3fda(0x1ac)]=_0x557ac9 instanceof Worker?_0x557ac9:null,_0x80c5c5[_0x1c3fda(0x1e3)](_0x29f076[_0x1c3fda(0x2c5)],{'workerURL':_0x557ac9})),this['_pluginMap'][_0x1c3fda(0x2d1)](([_0x4bd071,_0xc1b84d])=>{const _0x2505bf=_0x1c3fda;_0x80c5c5[_0x2505bf(0x1e3)](_0x4bd071,_0xc1b84d);}),_0x80c5c5[_0x1c3fda(0x1e3)](_0x335bbd['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x201dc6=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x201dc6['historyListServerUrl'],'historyPanelComponentKey':(_0x345d81=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x345d81[_0x1c3fda(0x246)],'historyPanelHidden':(_0x1b98ad=this[_0x1c3fda(0x2de)][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x1b98ad['historyPanelHidden'],'historyAIassistantEnabled':(_0x212b59=this['_configService'][_0x1c3fda(0x21c)](_0x1c3fda(0x1d6)))==null?void 0x0:_0x212b59['historyAIassistantEnabled']}),_0x3f4e0b[_0x1c3fda(0x2ca)](_0x1917f6=>{this['_initListener'](_0x1917f6,_0x2aaaa3);}),this[_0x1c3fda(0x1a3)][_0x1c3fda(0x195)](_0x80c5c5);let _0x1c952d=_0x3f4e0b[_0x1c3fda(0x1b6)](_0x335bbd[_0x1c3fda(0x27d)]),_0x478f04=this[_0x1c3fda(0x1eb)](_0x2aaaa3),_0x507e51=()=>{const _0x30f427=_0x1c3fda;_0x3340b2?_0x1c952d[_0x30f427(0x1c9)](_0x2aaaa3,_0x86b0a9,_0x478f04,_0x3340b2):_0x1c952d[_0x30f427(0x2d8)](_0x2aaaa3,_0x86b0a9,_0x478f04);};if(this[_0x1c3fda(0x1c8)][_0x1c3fda(0x22b)]({'content':this[_0x1c3fda(0x236)]['t'](_0x1c3fda(0x1f9)),'type':_0x3845ae['MessageType']['Loading']}),_0x130a14)try{_0x3f4e0b[_0x1c3fda(0x1b6)](_0x29f076['IRemoteInstanceService'])[_0x1c3fda(0x18a)]()[_0x1c3fda(0x1f7)](()=>{_0x507e51();});}catch{_0x507e51();}else _0x507e51();}['_initListener'](_0x1b520f,_0xe7eba6){const _0x38507f=_0x1b6d6f;let _0x5083da=_0x1b520f[_0x38507f(0x1b6)](_0x335bbd['HistoryManagerService']);this[_0x38507f(0x1e4)][_0x38507f(0x254)](_0x5083da['status$'][_0x38507f(0x262)](_0x57c915=>{const _0x4379d0=_0x38507f;switch(_0x57c915){case _0x335bbd[_0x4379d0(0x281)][_0x4379d0(0x1fd)]:this[_0x4379d0(0x2a4)][_0x4379d0(0x1a4)](),this[_0x4379d0(0x1c5)][_0x4379d0(0x18d)]();break;case _0x335bbd[_0x4379d0(0x281)][_0x4379d0(0x2c0)]:this[_0x4379d0(0x2a9)]['executeCommand'](_0x314063['id']),this[_0x4379d0(0x1af)]();break;case _0x335bbd['HistoryModeStatus'][_0x4379d0(0x2e3)]:this[_0x4379d0(0x1af)](),this['_messageService'][_0x4379d0(0x22b)]({'content':this[_0x4379d0(0x236)]['t'](_0x4379d0(0x1a1)),'type':_0x3845ae[_0x4379d0(0x192)][_0x4379d0(0x2e3)],'duration':0xbb8});break;default:break;}})),this[_0x38507f(0x1e4)][_0x38507f(0x254)](_0x5083da[_0x38507f(0x291)][_0x38507f(0x262)](async _0x253153=>{const _0xd0ec9e=_0x38507f;_0x253153&&this['_commandService'][_0xd0ec9e(0x210)](_0x13b251[_0xd0ec9e(0x1fb)]['id'],{'unitId':_0xe7eba6,'revision':_0x253153});}));}[_0x1b6d6f(0x1eb)](_0x21aab7){const _0x13fe8b=_0x1b6d6f;let _0x5a61e6=this[_0x13fe8b(0x220)][_0x13fe8b(0x2c9)](_0x21aab7)[_0x13fe8b(0x2db)]()[_0x13fe8b(0x1ed)](_0x987ae8=>_0x987ae8[_0x13fe8b(0x1ea)]()),_0x436a12=new _0xca06c9[(_0x13fe8b(0x25f))](_0x21aab7)['id'],_0x204177=_0x5a61e6[_0x13fe8b(0x1ed)](_0x24242f=>new _0xca06c9['WorksheetEditPermission'](_0x21aab7,_0x24242f)['id']),_0x2f9255=_0x5a61e6['map'](_0x3a1fbc=>this[_0x13fe8b(0x1e2)][_0x13fe8b(0x1a7)](_0x21aab7,_0x3a1fbc)[_0x13fe8b(0x1ed)](_0x2ecfc7=>new _0xca06c9[(_0x13fe8b(0x226))](_0x21aab7,_0x3a1fbc,_0x2ecfc7[_0x13fe8b(0x1cd)])['id']))[_0x13fe8b(0x218)](),_0xe62f1c=new _0xca06c9[(_0x13fe8b(0x2ab))](_0x21aab7)['id'];return this[_0x13fe8b(0x22f)][_0x13fe8b(0x2b1)]([_0x436a12,..._0x204177,..._0x2f9255,_0xe62f1c])[_0x13fe8b(0x267)](_0x84b012=>!!_0x84b012[_0x13fe8b(0x234)]);}};_0x36017f=_0x1ad602([_0x1c7dd1(0x0,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x208)])),_0x1c7dd1(0x1,_0x3e2e2e[_0x1b6d6f(0x1c0)]),_0x1c7dd1(0x2,_0x3e2e2e[_0x1b6d6f(0x2cf)]),_0x1c7dd1(0x3,_0x3e2e2e['ICommandService']),_0x1c7dd1(0x4,_0x391796['IMessageService']),_0x1c7dd1(0x5,_0x3e2e2e['IPermissionService']),_0x1c7dd1(0x6,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0xca06c9[_0x1b6d6f(0x23c)])),_0x1c7dd1(0x7,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x245)])),_0x1c7dd1(0x8,(0x0,_0x3e2e2e['Inject'])(_0x391796[_0x1b6d6f(0x1a2)])),_0x1c7dd1(0x9,(0x0,_0x3e2e2e['Inject'])(_0x3e2e2e[_0x1b6d6f(0x2c4)]))],_0x36017f);let _0x3a01bc={'id':_0x1b6d6f(0x2d5),'type':_0x3e2e2e[_0x1b6d6f(0x2c1)]['OPERATION'],'handler':_0x7826e4=>{const _0x488071=_0x1b6d6f;let _0x11b966=_0x7826e4[_0x488071(0x1b6)](_0x36017f),{unitId:_0x228ea8}=(0x0,_0xca06c9[_0x488071(0x1b3)])(_0x7826e4[_0x488071(0x1b6)](_0x3e2e2e[_0x488071(0x1c0)]))||{};return _0x228ea8?(_0x11b966[_0x488071(0x23e)](_0x228ea8),!0x0):!0x1;}},_0x314063={'id':_0x1b6d6f(0x1b2),'type':_0x3e2e2e[_0x1b6d6f(0x2c1)][_0x1b6d6f(0x1a5)],'handler':()=>!0x0};var _0x2a5dc3=_0x1b6d6f(0x24e),_0x32fba2=_0x1b6d6f(0x25c);function _0x352ec7({ref:_0xe97e22,..._0x4671c1}){const _0x528144=_0x1b6d6f;let {icon:_0x452628,id:_0x136c0b,className:_0x463b00,extend:_0x3160c6,..._0x5c20b8}=_0x4671c1,_0x232b0e=(_0x528144(0x283)+_0x136c0b+'\x20'+(_0x463b00||''))[_0x528144(0x29a)](),_0x102227=(0x0,_0x3237fc[_0x528144(0x1fe)])('_'+_0x5c2bd4());return _0x1b568a(_0x452628,''+_0x136c0b,{'defIds':_0x452628[_0x528144(0x1b1)],'idSuffix':_0x102227['current']},{'ref':_0xe97e22,'className':_0x232b0e,..._0x5c20b8},_0x3160c6);}function _0x1b568a(_0x59bb4d,_0x3739d3,_0x4a1b69,_0x330b06,_0x1daa84){const _0x1dd866=_0x1b6d6f;return(0x0,_0x3237fc[_0x1dd866(0x19d)])(_0x59bb4d['tag'],{'key':_0x3739d3,..._0x598d7d(_0x59bb4d,_0x4a1b69,_0x1daa84),..._0x330b06},(_0x4a28c0(_0x59bb4d,_0x4a1b69)[_0x1dd866(0x215)]||[])['map']((_0xce19a6,_0x7bc21d)=>_0x1b568a(_0xce19a6,_0x3739d3+'-'+_0x59bb4d['tag']+'-'+_0x7bc21d,_0x4a1b69,void 0x0,_0x1daa84)));}function _0x598d7d(_0x1bd939,_0x110546,_0x1ea108){const _0x174b15=_0x1b6d6f;let _0x2e8daa={..._0x1bd939[_0x174b15(0x29f)]};_0x1ea108!=null&&_0x1ea108['colorChannel1']&&_0x2e8daa[_0x174b15(0x287)]==='colorChannel1'&&(_0x2e8daa[_0x174b15(0x287)]=_0x1ea108[_0x174b15(0x1bc)]),_0x1bd939['tag']==='mask'&&_0x2e8daa['id']&&(_0x2e8daa['id']+=_0x110546[_0x174b15(0x1ab)]),Object['entries'](_0x2e8daa)['forEach'](([_0x306f19,_0x2639a2])=>{const _0x1579ad=_0x174b15;_0x306f19===_0x1579ad(0x221)&&typeof _0x2639a2=='string'&&(_0x2e8daa[_0x306f19]=_0x2639a2[_0x1579ad(0x253)](/url\(#(.*)\)/,_0x1579ad(0x260)+_0x110546[_0x1579ad(0x1ab)]+')'));});let {defIds:_0x190dc8}=_0x110546;return!_0x190dc8||_0x190dc8['length']===0x0?_0x2e8daa:(_0x1bd939[_0x174b15(0x2e4)]===_0x174b15(0x2aa)&&_0x2e8daa[_0x174b15(0x1c1)]&&(_0x2e8daa[_0x174b15(0x1c1)]+=_0x110546[_0x174b15(0x1ab)]),Object[_0x174b15(0x27e)](_0x2e8daa)[_0x174b15(0x2d1)](([_0x520110,_0x1655db])=>{const _0x951be2=_0x174b15;typeof _0x1655db==_0x951be2(0x1d0)&&(_0x2e8daa[_0x520110]=_0x1655db[_0x951be2(0x253)](/url\(#(.*)\)/,_0x951be2(0x260)+_0x110546[_0x951be2(0x1ab)]+')'));}),_0x2e8daa);}function _0x4a28c0(_0x1923c3,_0x292ecd){const _0x5a0434=_0x1b6d6f;var _0xd3d2a3;let {defIds:_0x805907}=_0x292ecd;return!_0x805907||_0x805907[_0x5a0434(0x1bd)]===0x0?_0x1923c3:_0x1923c3[_0x5a0434(0x2e4)]===_0x5a0434(0x2cc)&&(_0xd3d2a3=_0x1923c3[_0x5a0434(0x215)])!=null&&_0xd3d2a3['length']?{..._0x1923c3,'children':_0x1923c3[_0x5a0434(0x215)]['map'](_0x2d5f77=>typeof _0x2d5f77[_0x5a0434(0x29f)]['id']==_0x5a0434(0x1d0)&&_0x805907&&_0x805907[_0x5a0434(0x1df)](_0x2d5f77['attrs']['id'])?{..._0x2d5f77,'attrs':{..._0x2d5f77['attrs'],'id':_0x2d5f77[_0x5a0434(0x29f)]['id']+_0x292ecd[_0x5a0434(0x1ab)]}}:_0x2d5f77)}:_0x1923c3;}function _0x5c2bd4(){const _0x411cec=_0x1b6d6f;return Math['random']()[_0x411cec(0x2da)](0x24)['substring'](0x2,0x8);}_0x352ec7['displayName']=_0x1b6d6f(0x1e9);let _0x39c788={'tag':_0x1b6d6f(0x25a),'attrs':{'xmlns':_0x1b6d6f(0x1fc),'fill':_0x1b6d6f(0x214),'viewBox':_0x1b6d6f(0x1ca),'width':_0x1b6d6f(0x200),'height':_0x1b6d6f(0x200)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x1b6d6f(0x26b),'attrs':{'d':_0x1b6d6f(0x21a)}},{'tag':_0x1b6d6f(0x26b),'attrs':{'d':_0x1b6d6f(0x279)}}]},{'tag':_0x1b6d6f(0x2cc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1b6d6f(0x230)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x1b6d6f(0x299)}}]}]}],'defIds':[_0x1b6d6f(0x230)]},_0x272b5a=(0x0,_0x3237fc['forwardRef'])(function(_0x24fe72,_0x18c1b3){const _0x15569b=_0x1b6d6f;return(0x0,_0x3237fc[_0x15569b(0x19d)])(_0x352ec7,Object[_0x15569b(0x27c)]({},_0x24fe72,{'id':'history-icon','ref':_0x18c1b3,'icon':_0x39c788}));});_0x272b5a[_0x1b6d6f(0x1d4)]=_0x1b6d6f(0x207);let _0xbe6f10=function(_0x42cc92){const _0x1e070=_0x1b6d6f;return _0x42cc92[_0x42cc92['UNIVER_UNKNOWN']=0x0]=_0x1e070(0x189),_0x42cc92[_0x42cc92['UNIVER_DOC']=0x1]=_0x1e070(0x1f5),_0x42cc92[_0x42cc92[_0x1e070(0x2e2)]=0x2]='UNIVER_SHEET',_0x42cc92[_0x42cc92['UNIVER_SLIDE']=0x3]=_0x1e070(0x227),_0x42cc92[_0x42cc92['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x42cc92[_0x42cc92['UNRECOGNIZED']=-0x1]=_0x1e070(0x1a9),_0x42cc92;}({});function _0x55b275(_0x8458eb){const _0x2d6926=_0x1b6d6f;return{'id':_0x3a01bc['id'],'type':_0x391796['MenuItemType'][_0x2d6926(0x2b8)],'icon':_0x2d6926(0x207),'tooltip':_0x2d6926(0x1cf),'hidden$':(0x0,_0x391796['getMenuHiddenObservable'])(_0x8458eb,_0x3e2e2e[_0x2d6926(0x222)][_0x2d6926(0x2e2)]),'disabled$':(0x0,_0x282b5e[_0x2d6926(0x21d)])(_0x8458eb,{'workbookTypes':[_0xca06c9['WorkbookEditablePermission'],_0xca06c9[_0x2d6926(0x196)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0x2f76e9={[_0x391796['RibbonStartGroup'][_0x1b6d6f(0x1f6)]]:{[_0x3a01bc['id']]:{'order':0.2,'menuItemFactory':_0x55b275}}},_0x353e40=class extends _0x3e2e2e[_0x1b6d6f(0x209)]{constructor(_0xafabad,_0x55fed1,_0xb33699,_0x575931,_0x288772,_0x36f7b0,_0x5e5d74,_0xa0b620,_0x4528bc,_0x4f38a1,_0x2be2b3){const _0x9c0485=_0x1b6d6f;super(),this[_0x9c0485(0x2a9)]=_0xafabad,this[_0x9c0485(0x202)]=_0x55fed1,this[_0x9c0485(0x282)]=_0xb33699,this['_historyManagerService']=_0x575931,this['_localeService']=_0x288772,this[_0x9c0485(0x1c8)]=_0x36f7b0,this[_0x9c0485(0x24d)]=_0x5e5d74,this[_0x9c0485(0x1cc)]=_0xa0b620,this[_0x9c0485(0x1d7)]=_0x4528bc,this[_0x9c0485(0x220)]=_0x4f38a1,this['_urlService']=_0x2be2b3,_0x5d6976(this,_0x9c0485(0x190),null),this[_0x9c0485(0x1b5)]();}[_0x1b6d6f(0x1b5)](){const _0x220b71=_0x1b6d6f;[_0x3a01bc,_0x314063][_0x220b71(0x2d1)](_0x4330b8=>this['disposeWithMe']((0x0,_0x3e2e2e[_0x220b71(0x252)])(this[_0x220b71(0x2a9)][_0x220b71(0x2e0)](_0x4330b8)))),this[_0x220b71(0x19f)](this[_0x220b71(0x282)]['register'](_0x220b71(0x207),_0x272b5a)),this['_menuManagerService'][_0x220b71(0x259)](_0x2f76e9),this[_0x220b71(0x19f)](this[_0x220b71(0x2a9)][_0x220b71(0x2c2)](async(_0x370baf,_0x47e4cc)=>{const _0x4b9f06=_0x220b71;if(_0x370baf['id']===_0x13b251[_0x4b9f06(0x1fb)]['id']){let {unitId:_0x1bdc46}=_0x370baf[_0x4b9f06(0x2b6)];this['_messageService']['show']({'content':this[_0x4b9f06(0x236)]['t']('editHistory.panel.reverting'),'type':_0x3845ae[_0x4b9f06(0x192)][_0x4b9f06(0x1d3)],'duration':0x1388});let _0x2855a2=this[_0x4b9f06(0x24d)][_0x4b9f06(0x2b3)](_0x1bdc46);_0x47e4cc!=null&&_0x47e4cc[_0x4b9f06(0x225)]?this['_handleRevertAcknowledgement'](_0x2855a2,async()=>(setTimeout(()=>window[_0x4b9f06(0x289)][_0x4b9f06(0x28e)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x2855a2,async()=>{const _0x55c577=_0x4b9f06;let _0x4b8fb5=this['_univerInstanceService'][_0x55c577(0x21b)](_0xbe6f10[_0x55c577(0x2e2)]),_0x47ad46=_0x4b8fb5==null?void 0x0:_0x4b8fb5[_0x55c577(0x1a6)]();if(!_0x47ad46)return!0x1;this[_0x55c577(0x220)][_0x55c577(0x2d9)](_0x1bdc46);let _0x223e1d=await this['_dataLoaderService'][_0x55c577(0x1e8)](_0x1bdc46,_0xbe6f10[_0x55c577(0x2e2)]);return _0x223e1d&&_0x223e1d instanceof _0x3e2e2e['Workbook']?(await this[_0x55c577(0x2bc)](_0x223e1d,_0x47ad46[_0x55c577(0x1ea)]()),!0x0):!0x1;});}}));}[_0x1b6d6f(0x20c)](_0x5e4d6b,_0x1261b4,_0x58d63d=!0x1){const _0x4af007=_0x1b6d6f;let _0x1fe09a=(0x0,_0x4620fb[_0x4af007(0x2d3)])([_0x5e4d6b[_0x4af007(0x23f)]['event$'],_0x5e4d6b['state$']])[_0x4af007(0x262)](async([_0x136820,_0x5fd802])=>{const _0x23bc70=_0x4af007;if(_0x136820['eventID']===_0x13b251['CollaborationEvent'][_0x23bc70(0x1c2)]&&(_0x5fd802==null?void 0x0:_0x5fd802[_0x23bc70(0x1e1)])===_0x5803d8[_0x23bc70(0x255)]['SYNCED']&&_0x136820[_0x23bc70(0x276)]['mutations'][_0x23bc70(0x1b8)](_0x5d40c2=>_0x5d40c2['id']===_0x13b251['RevertRevisionMutation']['id'])&&await _0x1261b4()){var _0x6ee206;this[_0x23bc70(0x2d0)][_0x23bc70(0x1af)](),_0x1fe09a[_0x23bc70(0x19a)](),this[_0x23bc70(0x190)]&&clearTimeout(this[_0x23bc70(0x190)]),await((_0x6ee206=this[_0x23bc70(0x1cc)])==null?void 0x0:_0x6ee206['exhaustSavingTask']()),this[_0x23bc70(0x1c8)]['removeAll']();}});_0x58d63d&&(this[_0x4af007(0x190)]=setTimeout(()=>{const _0xa0edc5=_0x4af007;_0x1fe09a['unsubscribe'](),this[_0xa0edc5(0x1c8)][_0xa0edc5(0x22b)]({'content':this[_0xa0edc5(0x236)]['t'](_0xa0edc5(0x28c)),'type':_0x3845ae[_0xa0edc5(0x192)][_0xa0edc5(0x2e3)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x1ee5ba,_0x1ea39c){const _0x36ebef=_0x1b6d6f;await this[_0x36ebef(0x239)](_0x1ee5ba,_0x1ea39c),_0x1ee5ba[_0x36ebef(0x1da)][_0x36ebef(0x2e6)]((0x0,_0x4620fb['takeUntil'])(this['dispose$']))['subscribe'](_0x126aa6=>{const _0x3de387=_0x36ebef;_0x126aa6&&this[_0x3de387(0x270)](_0x126aa6);}),this['_urlService'][_0x36ebef(0x201)][_0x36ebef(0x2e6)]((0x0,_0x4620fb[_0x36ebef(0x257)])(this['dispose$']))[_0x36ebef(0x262)](()=>this['_updateSubUnitFromURLParams'](_0x1ee5ba,_0x1ea39c));}[_0x1b6d6f(0x270)](_0x258076,_0x26c2a3=!0x1){const _0x4a195e=_0x1b6d6f;let _0x17f97a=this[_0x4a195e(0x2a3)][_0x4a195e(0x242)](_0x4a195e(0x23b));_0x258076['getSheetId']()!==_0x17f97a&&this['_urlService'][_0x4a195e(0x1d2)]('subunit',_0x258076['getSheetId'](),_0x26c2a3);}async['_updateSubUnitFromURLParams'](_0x40b187,_0x5abd08){const _0x5e897a=_0x1b6d6f;var _0xb67486;if(!_0x5abd08||!_0x40b187[_0x5e897a(0x293)](_0x5abd08)){let _0x14dfc4=_0x40b187[_0x5e897a(0x240)]()[0x0],_0x4f7271=_0x40b187[_0x5e897a(0x293)](_0x14dfc4);if(!_0x4f7271)return;this[_0x5e897a(0x270)](_0x4f7271,!0x0),await this[_0x5e897a(0x2a9)][_0x5e897a(0x210)](_0xca06c9[_0x5e897a(0x2a0)]['id'],{'unitId':_0x40b187['getUnitId'](),'subUnitId':_0x14dfc4});return;}((_0xb67486=_0x40b187['getActiveSheet']())==null?void 0x0:_0xb67486[_0x5e897a(0x1ea)]())!==_0x5abd08&&await this[_0x5e897a(0x2a9)][_0x5e897a(0x210)](_0xca06c9[_0x5e897a(0x2a0)]['id'],{'unitId':_0x40b187['getUnitId'](),'subUnitId':_0x5abd08});}};_0x353e40=_0x1ad602([_0x1c7dd1(0x0,_0x3e2e2e[_0x1b6d6f(0x250)]),_0x1c7dd1(0x1,_0x391796[_0x1b6d6f(0x26f)]),_0x1c7dd1(0x2,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x22e)])),_0x1c7dd1(0x3,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x36017f)),_0x1c7dd1(0x4,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x208)])),_0x1c7dd1(0x5,_0x391796[_0x1b6d6f(0x2a7)]),_0x1c7dd1(0x6,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x5803d8[_0x1b6d6f(0x2b2)])),_0x1c7dd1(0x7,_0x5803d8['ILocalCacheService']),_0x1c7dd1(0x8,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x5803d8[_0x1b6d6f(0x21e)])),_0x1c7dd1(0x9,_0x3e2e2e[_0x1b6d6f(0x1c0)]),_0x1c7dd1(0xa,_0x393b7d[_0x1b6d6f(0x232)])],_0x353e40);let _0xc7efee=_0x1b6d6f(0x19b),_0x406d8d=class extends _0x3e2e2e[_0x1b6d6f(0x1bf)]{constructor(_0x293625,_0x440555,_0x24e8dd,_0x5062d6,_0x373569,_0x95e229,_0x2a0cac,_0x1c7d0d,_0x44e127,_0xdd54ef){const _0x84ec0f=_0x1b6d6f;super(),this['_localeService']=_0x293625,this[_0x84ec0f(0x220)]=_0x440555,this[_0x84ec0f(0x2de)]=_0x24e8dd,this[_0x84ec0f(0x2a9)]=_0x5062d6,this[_0x84ec0f(0x1c8)]=_0x373569,this['_permissionService']=_0x95e229,this[_0x84ec0f(0x1e2)]=_0x2a0cac,this[_0x84ec0f(0x2a4)]=_0x1c7d0d,this[_0x84ec0f(0x1c5)]=_0x44e127,this['_themeService']=_0xdd54ef,_0x5d6976(this,_0x84ec0f(0x1a3),new _0x4620fb[(_0x84ec0f(0x273))](null)),_0x5d6976(this,'historyUniver$',this[_0x84ec0f(0x1a3)]['asObservable']()),_0x5d6976(this,'_disposableCollection',new _0x3e2e2e['DisposableCollection']()),_0x5d6976(this,_0x84ec0f(0x26e),new Map()),_0x5d6976(this,'_internalWebWorker',null),this[_0x84ec0f(0x1b5)]();}get[_0x1b6d6f(0x235)](){const _0x168f45=_0x1b6d6f;return this['_historyUniver$'][_0x168f45(0x234)];}['_init'](){const _0x237d26=_0x1b6d6f;this[_0x237d26(0x1f3)](),this[_0x237d26(0x29b)]();}[_0x1b6d6f(0x1f3)](){const _0xd38a6=_0x1b6d6f;var _0x293aed;let _0x3bcfda=(_0x293aed=this['_configService'][_0xd38a6(0x21c)](_0xd38a6(0x241)))==null?_0xd38a6(0x20d):_0x293aed,_0x3bb231=document[_0xd38a6(0x1c3)](_0x3bcfda);if(!_0x3bb231)return;let _0x37e405=document[_0xd38a6(0x19d)](_0xd38a6(0x1c7));_0x37e405['id']=_0xc7efee,_0x37e405[_0xd38a6(0x217)][_0xd38a6(0x229)]=_0xd38a6(0x272),_0x37e405['style'][_0xd38a6(0x2e1)]=_0xd38a6(0x248),_0x37e405['style'][_0xd38a6(0x26c)]='0',_0x37e405[_0xd38a6(0x18c)][_0xd38a6(0x1de)]='0',_0x37e405[_0xd38a6(0x18c)]['width']=_0xd38a6(0x271),_0x37e405[_0xd38a6(0x18c)][_0xd38a6(0x294)]=_0xd38a6(0x271),_0x37e405['style'][_0xd38a6(0x2b7)]='49',_0x37e405[_0xd38a6(0x18c)][_0xd38a6(0x2c7)]=_0xd38a6(0x214),_0x3bb231['appendChild'](_0x37e405);}[_0x1b6d6f(0x29b)](){const _0x390b32=_0x1b6d6f;[[_0x517b15[_0x390b32(0x25d)]],[_0x391796['UniverMobileUIPlugin'],{'container':_0xc7efee,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x391796[_0x390b32(0x245)],null]]}],[_0x269397[_0x390b32(0x212)]],[_0x44b2d2['UniverDrawingPlugin'],{'override':[[_0x44b2d2[_0x390b32(0x1ba)],null]]}],[_0x2bfaaa[_0x390b32(0x204)],{'hasScroll':!0x1}],[_0xe42b4c[_0x390b32(0x1ae)]],[_0x2eab93[_0x390b32(0x2e7)]],[_0xca06c9[_0x390b32(0x191)],{'notExecuteFormula':!0x0}],[_0x282b5e[_0x390b32(0x1a0)]],[_0x461ff2['UniverSheetsFormulaPlugin']],[_0x543631[_0x390b32(0x1f1)]],[_0x13b251[_0x390b32(0x228)]],[_0x526e63[_0x390b32(0x265)]],[_0x545a89['UniverSheetsConditionalFormattingPlugin']],[_0xc3bffb[_0x390b32(0x29e)]],[_0x54f247[_0x390b32(0x261)]],[_0x41c8ef[_0x390b32(0x1e5)]],[_0x22225a[_0x390b32(0x2d4)]],[_0x1b3eb5[_0x390b32(0x290)]],[_0x407dbd[_0x390b32(0x1be)],{'notExecuteFormula':!0x0}],[_0x371330[_0x390b32(0x27f)]],[_0x1ca531[_0x390b32(0x18e)]],[_0x5102e5[_0x390b32(0x1b0)]],[_0x5b1054['UniverSheetSparklinePlugin']],[_0x1ef61f[_0x390b32(0x277)]],[_0x133915[_0x390b32(0x1fa)]],[_0x5d0f2c['UniverSheetsChartUIPlugin']],[_0x2e1b6d[_0x390b32(0x2a2)]],[_0x139710[_0x390b32(0x198)]],[_0x314dc2['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[_0x4a170[_0x390b32(0x1b9)]]][_0x390b32(0x2d1)](([_0x3d75a5,_0x476955])=>this['registerPlugin'](_0x3d75a5,_0x476955));}[_0x1b6d6f(0x266)](){const _0x4c3a9e=_0x1b6d6f;super[_0x4c3a9e(0x266)](),this[_0x4c3a9e(0x1af)](),this[_0x4c3a9e(0x26e)][_0x4c3a9e(0x243)]();}[_0x1b6d6f(0x1e3)](_0x2e734a,_0x7e5b9b,_0x2e2ded){const _0x387355=_0x1b6d6f;if(this['_pluginMap'][_0x387355(0x25b)](_0x2e734a[_0x387355(0x278)])&&!_0x2e2ded)throw Error('[MobileHistoryLoaderService]:\x20Plugin\x20'+_0x2e734a[_0x387355(0x278)]+'\x20has\x20been\x20registered.');this[_0x387355(0x26e)][_0x387355(0x1e0)](_0x2e734a[_0x387355(0x278)],[_0x2e734a,_0x7e5b9b]);}['getAllPlugins'](){const _0x18e5cd=_0x1b6d6f;return Array[_0x18e5cd(0x237)](this[_0x18e5cd(0x26e)][_0x18e5cd(0x20b)]());}[_0x1b6d6f(0x23e)](_0x369888,_0x4c9ed8){const _0x22d1a1=_0x1b6d6f;let _0x4a3d3f=document['getElementById'](_0xc7efee);_0x4a3d3f&&(_0x4a3d3f[_0x22d1a1(0x18c)][_0x22d1a1(0x2c7)]=_0x22d1a1(0x211),this[_0x22d1a1(0x199)](_0x369888,_0xc7efee,_0x4c9ed8));}[_0x1b6d6f(0x1af)](){const _0x5a9d6d=_0x1b6d6f;var _0x2ce27c;this['_disposableCollection'][_0x5a9d6d(0x266)](),(_0x2ce27c=this[_0x5a9d6d(0x235)])==null||_0x2ce27c[_0x5a9d6d(0x266)](),this[_0x5a9d6d(0x1a3)][_0x5a9d6d(0x195)](null);let _0x425abf=document[_0x5a9d6d(0x1c3)](_0xc7efee);_0x425abf&&(_0x425abf['style'][_0x5a9d6d(0x2c7)]=_0x5a9d6d(0x214),this['_internalWebWorker']&&(this['_internalWebWorker']['terminate'](),this['_internalWebWorker']=null));}['_initUniver'](_0x2856c4,_0x4bf00d,_0x2b3f1c){const _0xff5b70=_0x1b6d6f;var _0x6c73b,_0x4b0548,_0x423c33,_0x53461b;if(this[_0xff5b70(0x235)])return;let _0x525228=new _0x3e2e2e[(_0xff5b70(0x251))]({'locales':{[this[_0xff5b70(0x236)][_0xff5b70(0x224)]()]:this[_0xff5b70(0x236)][_0xff5b70(0x2b5)]()},'override':[[_0x3e2e2e[_0xff5b70(0x1aa)],{'useClass':_0x5803d8['AuthzIoHttpService']}]]}),_0xa012f0=_0x525228['__getInjector']();this[_0xff5b70(0x19f)](this['_themeService'][_0xff5b70(0x1b4)][_0xff5b70(0x262)](_0x33f98f=>{const _0xeb1e11=_0xff5b70;_0xa012f0[_0xeb1e11(0x1b6)](_0x3e2e2e['ThemeService'])[_0xeb1e11(0x24a)](_0x33f98f);})),this[_0xff5b70(0x19f)](this['_themeService'][_0xff5b70(0x1d1)][_0xff5b70(0x262)](_0x58733e=>{const _0x2d789a=_0xff5b70;_0xa012f0[_0x2d789a(0x1b6)](_0x3e2e2e[_0x2d789a(0x2c4)])[_0x2d789a(0x233)](_0x58733e);})),_0xa012f0['get'](_0x3e2e2e[_0xff5b70(0x208)])[_0xff5b70(0x19c)](this[_0xff5b70(0x236)][_0xff5b70(0x224)]()),_0xa012f0[_0xff5b70(0x1b6)](_0x3e2e2e[_0xff5b70(0x2cf)])['setConfig'](_0x5803d8[_0xff5b70(0x285)],this[_0xff5b70(0x2de)][_0xff5b70(0x21c)](_0x5803d8['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']));let _0x448dac=this[_0xff5b70(0x2de)][_0xff5b70(0x21c)](_0x2ee31a[_0xff5b70(0x29c)]);_0x448dac&&_0x525228['registerPlugin'](_0x2ee31a[_0xff5b70(0x244)],{'license':_0x448dac['ls']});let _0x1e1507=(_0x6c73b=this['_configService'][_0xff5b70(0x21c)](_0xff5b70(0x1d6)))==null?void 0x0:_0x6c73b['workerURL'],_0x29dcf5=!!_0x1e1507;_0x29dcf5&&(this[_0xff5b70(0x1ac)]=_0x1e1507 instanceof Worker?_0x1e1507:null,_0x525228[_0xff5b70(0x1e3)](_0x29f076[_0xff5b70(0x2c5)],{'workerURL':_0x1e1507})),this[_0xff5b70(0x26e)][_0xff5b70(0x2d1)](([_0xfb4075,_0x4e7d2c])=>{const _0x4a8821=_0xff5b70;_0x525228[_0x4a8821(0x1e3)](_0xfb4075,_0x4e7d2c);}),_0x525228[_0xff5b70(0x1e3)](_0x335bbd['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x4b0548=this[_0xff5b70(0x2de)][_0xff5b70(0x21c)]('edit-history-loader.config'))==null?void 0x0:_0x4b0548[_0xff5b70(0x231)],'historyPanelComponentKey':(_0x423c33=this[_0xff5b70(0x2de)][_0xff5b70(0x21c)](_0xff5b70(0x1d6)))==null?void 0x0:_0x423c33[_0xff5b70(0x246)],'historyPanelHidden':(_0x53461b=this[_0xff5b70(0x2de)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x53461b['historyPanelHidden']}),_0xa012f0['invoke'](_0x4e546d=>{const _0x396b0=_0xff5b70;this[_0x396b0(0x23d)](_0x4e546d,_0x2856c4);}),this[_0xff5b70(0x1a3)][_0xff5b70(0x195)](_0x525228);let _0x1c943b=_0xa012f0[_0xff5b70(0x1b6)](_0x335bbd[_0xff5b70(0x27d)]),_0x2e5b9c=this[_0xff5b70(0x1eb)](_0x2856c4),_0x195c2a=()=>{const _0x450aec=_0xff5b70;_0x2b3f1c?_0x1c943b[_0x450aec(0x1c9)](_0x2856c4,_0x4bf00d,_0x2e5b9c,_0x2b3f1c):_0x1c943b[_0x450aec(0x2d8)](_0x2856c4,_0x4bf00d,_0x2e5b9c);};if(this[_0xff5b70(0x1c8)][_0xff5b70(0x22b)]({'content':this[_0xff5b70(0x236)]['t'](_0xff5b70(0x1f9)),'type':_0x3845ae['MessageType'][_0xff5b70(0x1d3)]}),_0x29dcf5)try{_0xa012f0[_0xff5b70(0x1b6)](_0x29f076[_0xff5b70(0x203)])[_0xff5b70(0x18a)]()[_0xff5b70(0x1f7)](()=>{_0x195c2a();});}catch{_0x195c2a();}else _0x195c2a();}['_initListener'](_0x368b01,_0x157ac5){const _0x47e51e=_0x1b6d6f;let _0x574ae1=_0x368b01['get'](_0x335bbd[_0x47e51e(0x27d)]);this['_disposableCollection'][_0x47e51e(0x254)](_0x574ae1['status$'][_0x47e51e(0x262)](_0x1db695=>{const _0xf0957b=_0x47e51e;switch(_0x1db695){case _0x335bbd[_0xf0957b(0x281)][_0xf0957b(0x1fd)]:this[_0xf0957b(0x2a4)][_0xf0957b(0x1a4)](),this[_0xf0957b(0x1c5)]['close']();break;case _0x335bbd['HistoryModeStatus']['Exited']:this[_0xf0957b(0x2a9)][_0xf0957b(0x210)](_0x314063['id']),this[_0xf0957b(0x1af)]();break;case _0x335bbd['HistoryModeStatus']['Error']:this['unMountHistoryContent'](),this[_0xf0957b(0x1c8)][_0xf0957b(0x22b)]({'content':this['_localeService']['t']('editHistory.panel.listFetchError'),'type':_0x3845ae['MessageType'][_0xf0957b(0x2e3)],'duration':0xbb8});break;default:break;}})),this[_0x47e51e(0x1e4)][_0x47e51e(0x254)](_0x574ae1[_0x47e51e(0x291)][_0x47e51e(0x262)](async _0x6e3669=>{const _0x2a8777=_0x47e51e;_0x6e3669&&this[_0x2a8777(0x2a9)][_0x2a8777(0x210)](_0x13b251[_0x2a8777(0x1fb)]['id'],{'unitId':_0x157ac5,'revision':_0x6e3669});}));}[_0x1b6d6f(0x1eb)](_0x523127){const _0xc8c493=_0x1b6d6f;let _0x228b5f=this[_0xc8c493(0x220)][_0xc8c493(0x2c9)](_0x523127)[_0xc8c493(0x2db)]()[_0xc8c493(0x1ed)](_0x4f62a0=>_0x4f62a0['getSheetId']()),_0x3c3f90=new _0xca06c9[(_0xc8c493(0x25f))](_0x523127)['id'],_0x4301f7=_0x228b5f[_0xc8c493(0x1ed)](_0x4c8a5a=>new _0xca06c9[(_0xc8c493(0x22a))](_0x523127,_0x4c8a5a)['id']),_0x4f5a5e=_0x228b5f[_0xc8c493(0x1ed)](_0x477f50=>this[_0xc8c493(0x1e2)]['getSubunitRuleList'](_0x523127,_0x477f50)['map'](_0x5de61e=>new _0xca06c9[(_0xc8c493(0x226))](_0x523127,_0x477f50,_0x5de61e[_0xc8c493(0x1cd)])['id']))[_0xc8c493(0x218)](),_0x4f1897=new _0xca06c9[(_0xc8c493(0x2ab))](_0x523127)['id'];return this[_0xc8c493(0x22f)][_0xc8c493(0x2b1)]([_0x3c3f90,..._0x4301f7,..._0x4f5a5e,_0x4f1897])['every'](_0x375a87=>!!_0x375a87[_0xc8c493(0x234)]);}};_0x406d8d=_0x1ad602([_0x1c7dd1(0x0,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e['LocaleService'])),_0x1c7dd1(0x1,_0x3e2e2e['IUniverInstanceService']),_0x1c7dd1(0x2,_0x3e2e2e['IConfigService']),_0x1c7dd1(0x3,_0x3e2e2e[_0x1b6d6f(0x250)]),_0x1c7dd1(0x4,_0x391796[_0x1b6d6f(0x2a7)]),_0x1c7dd1(0x5,_0x3e2e2e[_0x1b6d6f(0x286)]),_0x1c7dd1(0x6,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0xca06c9[_0x1b6d6f(0x23c)])),_0x1c7dd1(0x7,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x245)])),_0x1c7dd1(0x8,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x391796[_0x1b6d6f(0x1a2)])),_0x1c7dd1(0x9,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x2c4)]))],_0x406d8d);let _0x88c9c8=class extends _0x3e2e2e[_0x1b6d6f(0x2b0)]{constructor(_0x17ad31=_0x19d3f5,_0x1cbadd,_0x14038e){const _0x307769=_0x1b6d6f;super(),this[_0x307769(0x1dd)]=_0x17ad31,this[_0x307769(0x223)]=_0x1cbadd,this[_0x307769(0x2de)]=_0x14038e;let {menu:_0x1c5678,..._0x410c1a}=(0x0,_0x3e2e2e[_0x307769(0x1ce)])({},_0x19d3f5,this[_0x307769(0x1dd)]);_0x1c5678&&this[_0x307769(0x2de)]['setConfig'](_0x307769(0x296),_0x1c5678,{'merge':!0x0}),this['_configService'][_0x307769(0x28b)](_0x2e83c1,_0x410c1a),this[_0x307769(0x1dd)]['univerContainerId']&&this[_0x307769(0x2de)][_0x307769(0x28b)](_0x307769(0x241),this[_0x307769(0x1dd)]['univerContainerId']);}[_0x1b6d6f(0x288)](){const _0x37f4a4=_0x1b6d6f;[[_0x36017f,{'useClass':_0x406d8d}],[_0x353e40]][_0x37f4a4(0x2d1)](_0x18e029=>this[_0x37f4a4(0x223)][_0x37f4a4(0x254)](_0x18e029));}[_0x1b6d6f(0x19e)](){const _0x256a19=_0x1b6d6f;this[_0x256a19(0x223)]['get'](_0x353e40);}};_0x5d6976(_0x88c9c8,_0x1b6d6f(0x1f8),_0x3e2e2e[_0x1b6d6f(0x222)]['UNIVER_UNKNOWN']),_0x5d6976(_0x88c9c8,_0x1b6d6f(0x278),_0x1b6d6f(0x1ad)),_0x5d6976(_0x88c9c8,_0x1b6d6f(0x2cb),_0x2a5dc3),_0x5d6976(_0x88c9c8,'version',_0x32fba2),_0x88c9c8=_0x1ad602([(0x0,_0x3e2e2e[_0x1b6d6f(0x238)])(_0x2ee31a[_0x1b6d6f(0x244)]),_0x1c7dd1(0x1,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e[_0x1b6d6f(0x1db)])),_0x1c7dd1(0x2,_0x3e2e2e[_0x1b6d6f(0x2cf)])],_0x88c9c8);let _0x361134=class extends _0x3e2e2e[_0x1b6d6f(0x209)]{constructor(_0xeb788b,_0x84ef06,_0x2c5ddf,_0x345e4f,_0xc0e80b,_0x283ac8,_0x20ab35,_0x1b75b0,_0x5e0ff5,_0x38a91c,_0x121756){const _0x315833=_0x1b6d6f;super(),this[_0x315833(0x2a9)]=_0xeb788b,this[_0x315833(0x202)]=_0x84ef06,this[_0x315833(0x282)]=_0x2c5ddf,this[_0x315833(0x2d0)]=_0x345e4f,this[_0x315833(0x236)]=_0xc0e80b,this['_messageService']=_0x283ac8,this[_0x315833(0x24d)]=_0x20ab35,this[_0x315833(0x1cc)]=_0x1b75b0,this[_0x315833(0x1d7)]=_0x5e0ff5,this['_univerInstanceService']=_0x38a91c,this[_0x315833(0x2a3)]=_0x121756,_0x5d6976(this,_0x315833(0x190),null),this[_0x315833(0x1b5)]();}['_init'](){const _0x8b0ccb=_0x1b6d6f;[_0x3a01bc,_0x314063][_0x8b0ccb(0x2d1)](_0x48286e=>this[_0x8b0ccb(0x19f)]((0x0,_0x3e2e2e[_0x8b0ccb(0x252)])(this[_0x8b0ccb(0x2a9)][_0x8b0ccb(0x2e0)](_0x48286e)))),this['disposeWithMe'](this[_0x8b0ccb(0x282)][_0x8b0ccb(0x1ee)]('HistoryIcon',_0x272b5a)),this[_0x8b0ccb(0x202)][_0x8b0ccb(0x259)](_0x2f76e9),this[_0x8b0ccb(0x19f)](this[_0x8b0ccb(0x2a9)][_0x8b0ccb(0x2c2)](async(_0x278f9b,_0x10e1da)=>{const _0x51be66=_0x8b0ccb;if(_0x278f9b['id']===_0x13b251[_0x51be66(0x1fb)]['id']){let {unitId:_0x1b6781}=_0x278f9b['params'];this['_messageService']['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x3845ae[_0x51be66(0x192)][_0x51be66(0x1d3)],'duration':0x1388});let _0x327ab7=this[_0x51be66(0x24d)][_0x51be66(0x2b3)](_0x1b6781);_0x10e1da!=null&&_0x10e1da[_0x51be66(0x225)]?this['_handleRevertAcknowledgement'](_0x327ab7,async()=>(setTimeout(()=>window['location']['reload']()),!0x0),!0x0):this[_0x51be66(0x20c)](_0x327ab7,async()=>{const _0x127929=_0x51be66;let _0x177741=this[_0x127929(0x220)]['getCurrentUnitOfType'](_0xbe6f10[_0x127929(0x2e2)]),_0x4466b0=_0x177741==null?void 0x0:_0x177741['getActiveSheet']();if(!_0x4466b0)return!0x1;this[_0x127929(0x220)][_0x127929(0x2d9)](_0x1b6781);let _0x5d8fc2=await this[_0x127929(0x1d7)]['loadUnit'](_0x1b6781,_0xbe6f10[_0x127929(0x2e2)]);return _0x5d8fc2&&_0x5d8fc2 instanceof _0x3e2e2e[_0x127929(0x2d6)]?(await this[_0x127929(0x2bc)](_0x5d8fc2,_0x4466b0[_0x127929(0x1ea)]()),!0x0):!0x1;});}}));}[_0x1b6d6f(0x20c)](_0x529041,_0x6c72cd,_0x11531a=!0x1){const _0x3ee62a=_0x1b6d6f;let _0x42ce92=(0x0,_0x4620fb[_0x3ee62a(0x2d3)])([_0x529041[_0x3ee62a(0x23f)]['event$'],_0x529041[_0x3ee62a(0x284)]])[_0x3ee62a(0x262)](async([_0x5de66e,_0x1ae4ae])=>{const _0x2cade6=_0x3ee62a;if(_0x5de66e['eventID']===_0x13b251[_0x2cade6(0x20f)][_0x2cade6(0x1c2)]&&(_0x1ae4ae==null?void 0x0:_0x1ae4ae['status'])===_0x5803d8[_0x2cade6(0x255)]['SYNCED']&&_0x5de66e[_0x2cade6(0x276)]['mutations']['some'](_0x347585=>_0x347585['id']===_0x13b251[_0x2cade6(0x1fb)]['id'])&&await _0x6c72cd()){var _0x1a382e;this[_0x2cade6(0x2d0)][_0x2cade6(0x1af)](),_0x42ce92[_0x2cade6(0x19a)](),this[_0x2cade6(0x190)]&&clearTimeout(this['_revertErrorTimer']),await((_0x1a382e=this[_0x2cade6(0x1cc)])==null?void 0x0:_0x1a382e[_0x2cade6(0x258)]());}});_0x11531a&&(this[_0x3ee62a(0x190)]=setTimeout(()=>{const _0x1d83bc=_0x3ee62a;_0x42ce92['unsubscribe'](),this[_0x1d83bc(0x1c8)][_0x1d83bc(0x22b)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x3845ae[_0x1d83bc(0x192)][_0x1d83bc(0x2e3)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x99f82e,_0x3704e0){const _0xe9992e=_0x1b6d6f;await this[_0xe9992e(0x239)](_0x99f82e,_0x3704e0),_0x99f82e[_0xe9992e(0x1da)]['pipe']((0x0,_0x4620fb[_0xe9992e(0x257)])(this[_0xe9992e(0x25e)]))[_0xe9992e(0x262)](_0x29ac47=>{const _0x48243a=_0xe9992e;_0x29ac47&&this[_0x48243a(0x270)](_0x29ac47);}),this[_0xe9992e(0x2a3)][_0xe9992e(0x201)]['pipe']((0x0,_0x4620fb['takeUntil'])(this['dispose$']))[_0xe9992e(0x262)](()=>this['_updateSubUnitFromURLParams'](_0x99f82e,_0x3704e0));}[_0x1b6d6f(0x270)](_0x4e0cbd,_0x14599f=!0x1){const _0x8709fa=_0x1b6d6f;let _0x1fc195=this[_0x8709fa(0x2a3)][_0x8709fa(0x242)](_0x8709fa(0x23b));_0x4e0cbd[_0x8709fa(0x1ea)]()!==_0x1fc195&&this[_0x8709fa(0x2a3)]['setParam']('subunit',_0x4e0cbd[_0x8709fa(0x1ea)](),_0x14599f);}async[_0x1b6d6f(0x239)](_0x81b163,_0x3b0bc9){const _0x44e876=_0x1b6d6f;var _0x552f62;if(!_0x3b0bc9||!_0x81b163[_0x44e876(0x293)](_0x3b0bc9)){let _0x2b1191=_0x81b163[_0x44e876(0x240)]()[0x0],_0x2af907=_0x81b163[_0x44e876(0x293)](_0x2b1191);if(!_0x2af907)return;this['_updateURLWithCurrentState'](_0x2af907,!0x0),await this['_commandService'][_0x44e876(0x210)](_0xca06c9[_0x44e876(0x2a0)]['id'],{'unitId':_0x81b163[_0x44e876(0x2b4)](),'subUnitId':_0x2b1191});return;}((_0x552f62=_0x81b163[_0x44e876(0x1a6)]())==null?void 0x0:_0x552f62['getSheetId']())!==_0x3b0bc9&&await this[_0x44e876(0x2a9)][_0x44e876(0x210)](_0xca06c9['SetWorksheetActivateCommand']['id'],{'unitId':_0x81b163[_0x44e876(0x2b4)](),'subUnitId':_0x3b0bc9});}};_0x361134=_0x1ad602([_0x1c7dd1(0x0,_0x3e2e2e[_0x1b6d6f(0x250)]),_0x1c7dd1(0x1,_0x391796[_0x1b6d6f(0x26f)]),_0x1c7dd1(0x2,(0x0,_0x3e2e2e['Inject'])(_0x391796[_0x1b6d6f(0x22e)])),_0x1c7dd1(0x3,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x36017f)),_0x1c7dd1(0x4,(0x0,_0x3e2e2e[_0x1b6d6f(0x21f)])(_0x3e2e2e['LocaleService'])),_0x1c7dd1(0x5,_0x391796[_0x1b6d6f(0x2a7)]),_0x1c7dd1(0x6,(0x0,_0x3e2e2e['Inject'])(_0x5803d8[_0x1b6d6f(0x2b2)])),_0x1c7dd1(0x7,_0x5803d8[_0x1b6d6f(0x2be)]),_0x1c7dd1(0x8,(0x0,_0x3e2e2e['Inject'])(_0x5803d8[_0x1b6d6f(0x21e)])),_0x1c7dd1(0x9,_0x3e2e2e['IUniverInstanceService']),_0x1c7dd1(0xa,_0x393b7d[_0x1b6d6f(0x232)])],_0x361134);let _0x5c3017=class extends _0x3e2e2e[_0x1b6d6f(0x2b0)]{constructor(_0xbc52e=_0x19d3f5,_0x31a1fd,_0x450a58){const _0x56b935=_0x1b6d6f;super(),this[_0x56b935(0x1dd)]=_0xbc52e,this[_0x56b935(0x223)]=_0x31a1fd,this[_0x56b935(0x2de)]=_0x450a58;let {menu:_0x58c147,..._0x51807f}=(0x0,_0x3e2e2e[_0x56b935(0x1ce)])({},_0x19d3f5,this[_0x56b935(0x1dd)]);_0x58c147&&this[_0x56b935(0x2de)]['setConfig'](_0x56b935(0x296),_0x58c147,{'merge':!0x0}),this[_0x56b935(0x2de)]['setConfig'](_0x2e83c1,_0x51807f),this[_0x56b935(0x1dd)][_0x56b935(0x2bd)]&&this[_0x56b935(0x2de)][_0x56b935(0x28b)](_0x410ed1,this['_config'][_0x56b935(0x2bd)]);}[_0x1b6d6f(0x288)](){const _0x51eefd=_0x1b6d6f;[[_0x36017f],[_0x361134]]['forEach'](_0x24e5c9=>this[_0x51eefd(0x223)][_0x51eefd(0x254)](_0x24e5c9));}[_0x1b6d6f(0x19e)](){const _0x3e17dc=_0x1b6d6f;this['_injector'][_0x3e17dc(0x1b6)](_0x361134);}};_0x5d6976(_0x5c3017,'type',_0x3e2e2e[_0x1b6d6f(0x222)]['UNIVER_UNKNOWN']),_0x5d6976(_0x5c3017,_0x1b6d6f(0x278),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x5d6976(_0x5c3017,_0x1b6d6f(0x2cb),_0x2a5dc3),_0x5d6976(_0x5c3017,_0x1b6d6f(0x2ac),_0x32fba2),_0x5c3017=_0x1ad602([(0x0,_0x3e2e2e['DependentOn'])(_0x2ee31a[_0x1b6d6f(0x244)]),_0x1c7dd1(0x1,(0x0,_0x3e2e2e['Inject'])(_0x3e2e2e['Injector'])),_0x1c7dd1(0x2,_0x3e2e2e[_0x1b6d6f(0x2cf)])],_0x5c3017),_0x5768db['EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY']=_0x2e83c1,Object[_0x1b6d6f(0x2df)](_0x5768db,'HistoryLoaderService',{'enumerable':!0x0,'get':function(){return _0x36017f;}}),Object[_0x1b6d6f(0x2df)](_0x5768db,_0x1b6d6f(0x188),{'enumerable':!0x0,'get':function(){return _0x406d8d;}}),_0x5768db[_0x1b6d6f(0x1ec)]=_0x3a01bc,_0x5768db[_0x1b6d6f(0x197)]=_0x410ed1,_0x5768db[_0x1b6d6f(0x2ce)]=_0x4282a9,Object[_0x1b6d6f(0x2df)](_0x5768db,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return _0x88c9c8;}}),Object[_0x1b6d6f(0x2df)](_0x5768db,'UniverEditHistoryLoaderPlugin',{'enumerable':!0x0,'get':function(){return _0x5c3017;}});}));
|
|
1
|
+
function _0x1a8a(_0x359a56,_0x50a242){_0x359a56=_0x359a56-0xfc;const _0x5af3f6=_0x5af3();let _0x1a8a39=_0x5af3f6[_0x359a56];return _0x1a8a39;}function _0x5af3(){const _0x3de6ef=['UniverProEditHistoryViewer','LS_CONFIG_KEY','_initUniver','UniverDocsPlugin','mountHistoryContent','workerURL','UniverIcon','UniverSheetsChartUIPlugin','UniverRenderEnginePlugin','_componentManager','UniverSheetsFormula','version','none','getLocales','UniverLicensePlugin','iterator','UniverEngineFormula','UniverSheetsConditionalFormatting','getConfig','UNRECOGNIZED','UniverDocs','random','_setupSubUnitSync','IConfigService','UniverDocsUi','RangeProtectionRuleModel','UniverSheetsDrawingUIPlugin','_permissionService','UniverSheetsShapeUIPlugin','UniverProSheetsShape','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Error','_menuManagerService','toStringTag','_updateURLWithCurrentState','getCurrentRangeDisable$','CollaborationStatus','setLocale','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','univer-history-container','UniverRPCMainThreadPlugin','historyPanelHidden','UniverProSheetsChartUi','UniverProSheetsChart','editHistory.panel.revertFailed','setTheme','defs','next','_pluginMap','HistoryIcon','dataset','UniverEngineRender','get','revertRevision$','UniverSheetsFilter','display','UNIVER_EDIT_HISTORY_LOADER_MOBILE_PLUGIN','show','UniverSheets','_sidebarService','tag','_localeService','UniverSheetsDataValidationMobileUIPlugin','edit-history-loader.config','every','UniverCollaborationPlugin','6833068Vevcoj','UniverSheetsConditionalFormattingPlugin','univerjs-icon\x20univerjs-icon-','historyUniver$','block','state$','UniverProSheetsPivot','triggerCustomVersions','register','then','UniverDesign','historyListServerUrl','default','UniverSheetsFormulaPlugin','ComponentManager','getElementById','_selectionProtectionRuleModel','replace','getUnit','1986ckSgJd','7JnTcbU','svg','getActiveSheet','type','forwardRef','_handleRevertAcknowledgement','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CHANGESET_ACK','UniverSheetsPivotTablePlugin','getSubunitRuleList','MenuItemType','univer-container','AuthzIoHttpService','packageName','UniverSheetsConditionalFormattingUIPlugin','WorksheetEditPermission','pipe','DependentOn','call','React','status','_updateSubUnitFromURLParams','onSteady','0.19.0','60dqzXvA','UniverProCollaborationClientUi','UniverSheetsFilterPlugin','Loading','19835bHjeii','attrs','createElement','UniverEditHistoryLoaderPlugin','http://www.w3.org/2000/svg','history-icon','_initPlugins','HistoryModeStatus','div','UniverSheetsDataValidationUIPlugin','BehaviorSubject','current','from','UniverDocsUIPlugin','UniverSheetsUIPlugin','values','IURLService','url(#$1','Univer','asObservable','130WNdRer','RevertRevisionMutation','UNIVER_CONTAINER_ID_KEY','data','registerPlugin','_localCacheService','mask','getSheetBySheetId','_historyUniver$','loadUnit','_config','9576720EtNWvV','UNIVER_DOC','includes','fill','100%','_collaborationController','UniverProSheetsShapeUi','WorkbookViewHistoryPermission','width','UniverSheetsDataValidation','UNIVER_SHEET','CollaborationEvent','path','historyUniver','editHistory.panel.title','_univerInstanceService','fromCollab','disposeUnit','[MobileHistoryLoaderService]:\x20Plugin\x20','executeCommand','UniverSheetsDrawingPlugin','darkMode$','DisposableCollection','Inject','mergeMenu','_historyManagerService','UniverSheetsTable','UniverCore','whenReady','amd','toPrimitive','session','setConfig','menu','some','_injector','length','_dialogService','UniverNetworkPlugin','mutations','string','UniverSheetsFilterUIPlugin','UniverInstanceType','UniverDrawingUi','params','UniverSheetsFormulaUi','RxDisposable','_init','SYNCED','EDIT_HISTORY_LOADER_PLUGIN_CONFIG_KEY','UniverSheetsHyperLinkUIPlugin','composePermission','onCommandExecuted','_configService','BUTTON','historyAIassistantEnabled','unsubscribe','absolute','reload','Plugin','children','permissionId','disposeWithMe','UNIVER_CONTAINER_ID','xlink:href','ThemeService','zIndex','__getInjector','has','univer-history-container-mobile','currentTheme$','_dataLoaderService','IUniverInstanceService','_checkCanRevert','status$','style','use','defIds','_revertErrorTimer','editHistory.panel.reverting','useRef','forEach','476751XAHZYx','subscribe','UniverSheetSparklineUIPlugin','736848toGErO','UniverRpc','uComp','LocaleService','UNIVER_SLIDE','left','UniverSheetsFormulaUIPlugin','_urlService','invoke','function','trim','ILocalCacheService','HistoryLoaderService','currentColor','setDarkMode','UniverDrawingUIPlugin','SetWorksheetActivateCommand','WorkbookEditablePermission','OPERATION','UniverSheetsNumfmtPlugin','getUnitId','getCurrentUnitOfType','appendChild','UNIVER_PROJECT','UniverProSheetsSparklineUi','UniverSheetsDataValidationPlugin','position','getMenuHiddenObservable','UniverSheetsDrawingUi','WorkbookRecoverHistoryPermission','getAllPlugins','UniverDataValidation','1849928xeVUsO','pluginName','set','_commandService','dispose$','unMountHistoryContent','MessageType','displayName','assign','idSuffix','UniverSheetsNumfmt','editHistory.info.initializing','prototype','UniverDrawingPlugin','M0\x200H16V16H0z','UniverSheetsTablePlugin','activeSheet$','close','HistoryManagerService','history-icon_clip0_907_281','getCurrentLocale','getCollabEntity','merge','UniverDataValidationPlugin','_initContainer','event$','map','UniverProSheetsSparkline','UniverSheetsHyperLinkUi','UniverSheetsConditionalFormattingUi','_themeService','\x20has\x20been\x20registered.','onStarting','Injector','_internalWebWorker','IDialogService','UniverUIPlugin','getSheets','univer.operation.exit-edit-history','takeUntil','UniverFormulaEnginePlugin','Workbook','height','20ueRqLR','RibbonStartGroup','dispose','_disposableCollection','UNIVER_UNKNOWN','substring','subunit','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','ISidebarService','clipPath','registerCommand','ICommandService','univerContainerId','defineProperty','UniverSheetsShapePlugin','getSheetId','flat','editHistory.panel.listFetchError','getOwnPropertyDescriptor','_initListener','eventID','setParam','IRemoteInstanceService','IImageIoService','url(#history-icon_clip0_907_281)','getUnhiddenWorksheets','UniverProCollaborationClient','CommandType','Disposable','getParam','22522UGQvtH','UniverProCollaboration','history-container','DataLoaderService','IAuthzIoService','value','UniverSheetsPlugin','colorChannel1','Exited','combineLatest','RangeProtectionPermissionEditPoint','@univerjs-pro/edit-history-loader','triggerLoadVersions','exhaustSavingTask','UniverSheetsMobileUIPlugin','object','CollaborationController','urlChange$','ToggleEditHistoryOperation','IMessageService','add','toDisposable','clear','symbol','_messageService','UniverSheetsDataValidationUi','terminate'];_0x5af3=function(){return _0x3de6ef;};return _0x5af3();}(function(_0x465c74,_0x9b30d3){const _0x19e478=_0x1a8a,_0x2ba4de=_0x465c74();while(!![]){try{const _0x1e23db=parseInt(_0x19e478(0x144))/0x1*(-parseInt(_0x19e478(0x20d))/0x2)+parseInt(_0x19e478(0x1a1))/0x3*(-parseInt(_0x19e478(0x1ef))/0x4)+parseInt(_0x19e478(0x130))/0x5*(-parseInt(_0x19e478(0x113))/0x6)+parseInt(_0x19e478(0x114))/0x7*(parseInt(_0x19e478(0x1c4))/0x8)+parseInt(_0x19e478(0x1a4))/0x9+parseInt(_0x19e478(0x14f))/0xa+-parseInt(_0x19e478(0x100))/0xb*(-parseInt(_0x19e478(0x12c))/0xc);if(_0x1e23db===_0x9b30d3)break;else _0x2ba4de['push'](_0x2ba4de['shift']());}catch(_0x44bb45){_0x2ba4de['push'](_0x2ba4de['shift']());}}}(_0x5af3,0xc490d),function(_0x5135f2,_0x7ec382){const _0x33b2cb=_0x1a8a;typeof exports==_0x33b2cb(0x21c)&&typeof module<'u'?_0x7ec382(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==_0x33b2cb(0x1ad)&&define[_0x33b2cb(0x16c)]?define(_0x33b2cb(0x1f6)['split']('.'),_0x7ec382):(_0x5135f2=typeof globalThis<'u'?globalThis:_0x5135f2||self,_0x7ec382(_0x5135f2['UniverProEditHistoryLoader']={},_0x5135f2[_0x33b2cb(0x16a)],_0x5135f2[_0x33b2cb(0x262)],_0x5135f2[_0x33b2cb(0x20e)],_0x5135f2[_0x33b2cb(0x209)],_0x5135f2[_0x33b2cb(0x228)],_0x5135f2['UniverProLicense'],_0x5135f2[_0x33b2cb(0x253)],_0x5135f2[_0x33b2cb(0x252)],_0x5135f2[_0x33b2cb(0x106)],_0x5135f2[_0x33b2cb(0x245)],_0x5135f2[_0x33b2cb(0x155)],_0x5135f2[_0x33b2cb(0x1df)],_0x5135f2[_0x33b2cb(0x1bc)],_0x5135f2[_0x33b2cb(0x1c3)],_0x5135f2[_0x33b2cb(0x10a)],_0x5135f2[_0x33b2cb(0x23c)],_0x5135f2[_0x33b2cb(0x240)],_0x5135f2['UniverDrawing'],_0x5135f2[_0x33b2cb(0x17a)],_0x5135f2[_0x33b2cb(0x238)],_0x5135f2[_0x33b2cb(0x25b)],_0x5135f2['UniverNetwork'],_0x5135f2[_0x33b2cb(0x1a5)],_0x5135f2[_0x33b2cb(0x239)],_0x5135f2[_0x33b2cb(0x1e1)],_0x5135f2[_0x33b2cb(0x158)],_0x5135f2[_0x33b2cb(0x226)],_0x5135f2['UniverSheetsDrawing'],_0x5135f2[_0x33b2cb(0x1c0)],_0x5135f2[_0x33b2cb(0x25e)],_0x5135f2['UniverSheetsFilterUi'],_0x5135f2[_0x33b2cb(0x232)],_0x5135f2[_0x33b2cb(0x17c)],_0x5135f2['UniverSheetsHyperLink'],_0x5135f2[_0x33b2cb(0x1e0)],_0x5135f2[_0x33b2cb(0x1ce)],_0x5135f2[_0x33b2cb(0x169)],_0x5135f2['UniverSheetsUi'],_0x5135f2['UniverUi'],_0x5135f2['rxjs'],_0x5135f2[_0x33b2cb(0x12d)],_0x5135f2[_0x33b2cb(0x127)]));}(this,function(_0x3126a1,_0xbfd0f8,_0x587180,_0x59e3cd,_0x1dea36,_0x536328,_0x37ba05,_0x2987d7,_0x44f2ac,_0x195e49,_0x81f89e,_0x5cec6e,_0x29617e,_0x4ab6ab,_0x31f7fc,_0xbb287b,_0x5c70ac,_0x263c40,_0x5d5e62,_0x378e77,_0x1d9627,_0x1938c7,_0x3eea3c,_0x324b0b,_0x17b813,_0x4cd2c4,_0x1accce,_0x77e97a,_0x374ebd,_0xc2e7db,_0x258887,_0x1fbc1a,_0x3c1719,_0x42caff,_0x19e567,_0x79c72d,_0x7b0bd0,_0x2358fb,_0x52dc7d,_0x2861a4,_0x4876df,_0x2c91e1,_0x4f830f){const _0x4154e2=_0x1a8a;Object[_0x4154e2(0x1fc)](_0x3126a1,Symbol[_0x4154e2(0x249)],{'value':'Module'});let _0x15af09=_0x4154e2(0xfd);Symbol(_0x15af09);let _0xe4c960={};function _0x117621(_0x39385c){'@babel/helpers - typeof';const _0x4e56b7=_0x4154e2;return _0x117621=typeof Symbol==_0x4e56b7(0x1ad)&&typeof Symbol[_0x4e56b7(0x237)]=='symbol'?function(_0x596ffc){return typeof _0x596ffc;}:function(_0x42a175){const _0x4b0ec5=_0x4e56b7;return _0x42a175&&typeof Symbol==_0x4b0ec5(0x1ad)&&_0x42a175['constructor']===Symbol&&_0x42a175!==Symbol[_0x4b0ec5(0x1d0)]?_0x4b0ec5(0x224):typeof _0x42a175;},_0x117621(_0x39385c);}function _0x42c505(_0x4e7d6c,_0xab5669){const _0x9a0124=_0x4154e2;if(_0x117621(_0x4e7d6c)!=_0x9a0124(0x21c)||!_0x4e7d6c)return _0x4e7d6c;var _0x4a7524=_0x4e7d6c[Symbol[_0x9a0124(0x16d)]];if(_0x4a7524!==void 0x0){var _0x374a66=_0x4a7524[_0x9a0124(0x126)](_0x4e7d6c,_0xab5669||_0x9a0124(0x10c));if(_0x117621(_0x374a66)!='object')return _0x374a66;throw TypeError(_0x9a0124(0x246));}return(_0xab5669===_0x9a0124(0x177)?String:Number)(_0x4e7d6c);}function _0x57970f(_0x594058){const _0x54d3b7=_0x4154e2;var _0x474fe4=_0x42c505(_0x594058,_0x54d3b7(0x177));return _0x117621(_0x474fe4)=='symbol'?_0x474fe4:_0x474fe4+'';}function _0x3a41cb(_0x55ee54,_0x22f4e4,_0xd168d2){const _0x571b7b=_0x4154e2;return(_0x22f4e4=_0x57970f(_0x22f4e4))in _0x55ee54?Object[_0x571b7b(0x1fc)](_0x55ee54,_0x22f4e4,{'value':_0xd168d2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x55ee54[_0x22f4e4]=_0xd168d2,_0x55ee54;}function _0x370fb4(_0x385129,_0x5a4c3f){return function(_0x2a4790,_0x26b98d){_0x5a4c3f(_0x2a4790,_0x26b98d,_0x385129);};}function _0x52ad88(_0x490f29,_0x2d33dc,_0x577b50,_0x2c408f){const _0xbdc656=_0x4154e2;var _0x3b6360=arguments[_0xbdc656(0x173)],_0x49da4c=_0x3b6360<0x3?_0x2d33dc:_0x2c408f===null?_0x2c408f=Object[_0xbdc656(0x201)](_0x2d33dc,_0x577b50):_0x2c408f,_0x9e2140;if(typeof Reflect==_0xbdc656(0x21c)&&typeof Reflect['decorate']=='function')_0x49da4c=Reflect['decorate'](_0x490f29,_0x2d33dc,_0x577b50,_0x2c408f);else{for(var _0x549815=_0x490f29['length']-0x1;_0x549815>=0x0;_0x549815--)(_0x9e2140=_0x490f29[_0x549815])&&(_0x49da4c=(_0x3b6360<0x3?_0x9e2140(_0x49da4c):_0x3b6360>0x3?_0x9e2140(_0x2d33dc,_0x577b50,_0x49da4c):_0x9e2140(_0x2d33dc,_0x577b50))||_0x49da4c);}return _0x3b6360>0x3&&_0x49da4c&&Object['defineProperty'](_0x2d33dc,_0x577b50,_0x49da4c),_0x49da4c;}let _0x4fd513='UNIVER_CONTAINER_ID',_0x54dc1e=_0x4154e2(0x24f),_0x15e7e6=class extends _0xbfd0f8[_0x4154e2(0x20b)]{constructor(_0x4912b3,_0x36971b,_0x3d1e0a,_0x4614b4,_0x2be722,_0x28f788,_0x51ff54,_0x9737a5,_0x4a1a7c,_0x306bdd){const _0x3e3227=_0x4154e2;super(),this[_0x3e3227(0x265)]=_0x4912b3,this[_0x3e3227(0x15e)]=_0x36971b,this[_0x3e3227(0x184)]=_0x3d1e0a,this['_commandService']=_0x4614b4,this[_0x3e3227(0x225)]=_0x2be722,this[_0x3e3227(0x243)]=_0x28f788,this[_0x3e3227(0x110)]=_0x51ff54,this['_dialogService']=_0x9737a5,this[_0x3e3227(0x263)]=_0x4a1a7c,this[_0x3e3227(0x1e2)]=_0x306bdd,_0x3a41cb(this,'_historyUniver$',new _0x4876df[(_0x3e3227(0x13a))](null)),_0x3a41cb(this,'historyUniver$',this[_0x3e3227(0x14c)][_0x3e3227(0x143)]()),_0x3a41cb(this,_0x3e3227(0x1f2),new _0xbfd0f8[(_0x3e3227(0x165))]()),_0x3a41cb(this,_0x3e3227(0x258),new Map()),_0x3a41cb(this,_0x3e3227(0x1e6),null),this[_0x3e3227(0x17e)]();}get[_0x4154e2(0x15c)](){const _0x279984=_0x4154e2;return this[_0x279984(0x14c)][_0x279984(0x212)];}[_0x4154e2(0x17e)](){const _0x2c76c2=_0x4154e2;this[_0x2c76c2(0x1dc)](),this[_0x2c76c2(0x136)]();}[_0x4154e2(0x1dc)](){const _0x5ef637=_0x4154e2;var _0xf6364d;let _0x5b399a=(_0xf6364d=this[_0x5ef637(0x184)][_0x5ef637(0x23a)](_0x5ef637(0x18e)))==null?_0x5ef637(0x11f):_0xf6364d,_0xf2c5c4=document[_0x5ef637(0x10f)](_0x5b399a);if(!_0xf2c5c4)return;let _0x47c32e=document['createElement'](_0x5ef637(0x138));_0x47c32e['id']=_0x54dc1e,_0x47c32e[_0x5ef637(0x25a)]['uComp']=_0x5ef637(0x20f),_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x1be)]=_0x5ef637(0x188),_0x47c32e[_0x5ef637(0x19a)]['top']='0',_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x1a9)]='0',_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x157)]='100%',_0x47c32e['style']['height']=_0x5ef637(0x153),_0x47c32e[_0x5ef637(0x19a)]['zIndex']='49',_0x47c32e[_0x5ef637(0x19a)][_0x5ef637(0x25f)]=_0x5ef637(0x234),_0xf2c5c4[_0x5ef637(0x1ba)](_0x47c32e);}[_0x4154e2(0x136)](){const _0x46211c=_0x4154e2;[[_0x1938c7[_0x46211c(0x230)]],[_0x2861a4[_0x46211c(0x1e8)],{'container':_0x54dc1e,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2861a4[_0x46211c(0x1e7)],null]]}],[_0x3eea3c[_0x46211c(0x175)]],[_0x5d5e62[_0x46211c(0x1d1)],{'override':[[_0x5d5e62[_0x46211c(0x206)],null]]}],[_0x5c70ac[_0x46211c(0x22b)],{'hasScroll':!0x1}],[_0x263c40[_0x46211c(0x13d)]],[_0x7b0bd0[_0x46211c(0x1b7)]],[_0x587180[_0x46211c(0x213)],{'notExecuteFormula':!0x0}],[_0x52dc7d[_0x46211c(0x13e)]],[_0x3c1719[_0x46211c(0x10d)]],[_0x42caff[_0x46211c(0x1aa)]],[_0x59e3cd[_0x46211c(0xff)]],[_0x258887[_0x46211c(0x12e)]],[_0x1fbc1a[_0x46211c(0x178)]],[_0x17b813[_0x46211c(0x101)]],[_0x4cd2c4[_0x46211c(0x122)]],[_0x19e567['UniverSheetsHyperLinkPlugin']],[_0x79c72d['UniverSheetsHyperLinkUIPlugin']],[_0x31f7fc[_0x46211c(0x1db)]],[_0x1accce[_0x46211c(0x1bd)]],[_0x77e97a[_0x46211c(0x139)]],[_0x1d9627[_0x46211c(0x1ec)],{'notExecuteFormula':!0x0}],[_0x378e77[_0x46211c(0x1b3)]],[_0x374ebd[_0x46211c(0x163)]],[_0xc2e7db[_0x46211c(0x242)]],[_0x29617e['UniverSheetSparklinePlugin']],[_0x4ab6ab['UniverSheetSparklineUIPlugin']],[_0x2987d7['UniverSheetsChartPlugin']],[_0x44f2ac[_0x46211c(0x22f)]],[_0x81f89e[_0x46211c(0x1fd)]],[_0x5cec6e[_0x46211c(0x244)]],[_0x195e49[_0x46211c(0x11c)],{'notExecuteFormula':!0x0}],[_0x2358fb[_0x46211c(0x1d3)]]][_0x46211c(0x1a0)](([_0x4d0873,_0x18b2e0])=>this[_0x46211c(0x148)](_0x4d0873,_0x18b2e0));}['dispose'](){const _0x3e7990=_0x4154e2;super['dispose'](),this['unMountHistoryContent'](),this[_0x3e7990(0x258)]['clear']();}[_0x4154e2(0x148)](_0x174270,_0x34abbd,_0x4d51d6){const _0x2c9478=_0x4154e2;if(this[_0x2c9478(0x258)][_0x2c9478(0x193)](_0x174270[_0x2c9478(0x1c5)])&&!_0x4d51d6)throw Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x174270[_0x2c9478(0x1c5)]+_0x2c9478(0x1e3));this[_0x2c9478(0x258)][_0x2c9478(0x1c6)](_0x174270[_0x2c9478(0x1c5)],[_0x174270,_0x34abbd]);}[_0x4154e2(0x1c2)](){const _0xf809af=_0x4154e2;return Array[_0xf809af(0x13c)](this['_pluginMap'][_0xf809af(0x13f)]());}['mountHistoryContent'](_0xb0acda,_0x27df54){const _0x17188a=_0x4154e2;let _0x5a29dd=document[_0x17188a(0x10f)](_0x54dc1e);_0x5a29dd&&(_0x5a29dd[_0x17188a(0x19a)][_0x17188a(0x25f)]=_0x17188a(0x104),this[_0x17188a(0x22a)](_0xb0acda,_0x54dc1e,_0x27df54));}['unMountHistoryContent'](){const _0x4e3bd3=_0x4154e2;var _0x4175aa;this[_0x4e3bd3(0x1f2)][_0x4e3bd3(0x1f1)](),(_0x4175aa=this['historyUniver'])==null||_0x4175aa[_0x4e3bd3(0x1f1)](),this['_historyUniver$'][_0x4e3bd3(0x257)](null);let _0x2a1e9c=document[_0x4e3bd3(0x10f)](_0x54dc1e);_0x2a1e9c&&(_0x2a1e9c[_0x4e3bd3(0x19a)][_0x4e3bd3(0x25f)]='none',this['_internalWebWorker']&&(this['_internalWebWorker'][_0x4e3bd3(0x227)](),this[_0x4e3bd3(0x1e6)]=null));}[_0x4154e2(0x22a)](_0xea371c,_0x7377c0,_0x5a072d){const _0x18ae54=_0x4154e2;var _0x26a7d6,_0x2d4a18,_0x30c8f3,_0x327d77,_0x3fc978;if(this[_0x18ae54(0x15c)])return;let _0x49d228=new _0xbfd0f8[(_0x18ae54(0x142))]({'locales':{[this[_0x18ae54(0x265)]['getCurrentLocale']()]:this['_localeService'][_0x18ae54(0x235)]()},'override':[[_0xbfd0f8['IAuthzIoService'],{'useClass':_0x1dea36[_0x18ae54(0x120)]}]]}),_0x3ca459=_0x49d228[_0x18ae54(0x192)]();this[_0x18ae54(0x18d)](this['_themeService']['darkMode$'][_0x18ae54(0x1a2)](_0x5370f4=>{const _0x34f991=_0x18ae54;_0x3ca459[_0x34f991(0x25c)](_0xbfd0f8[_0x34f991(0x190)])[_0x34f991(0x1b2)](_0x5370f4);})),this['disposeWithMe'](this[_0x18ae54(0x1e2)][_0x18ae54(0x195)][_0x18ae54(0x1a2)](_0x332dd7=>{const _0x2866a5=_0x18ae54;_0x3ca459[_0x2866a5(0x25c)](_0xbfd0f8[_0x2866a5(0x190)])[_0x2866a5(0x255)](_0x332dd7);})),_0x3ca459[_0x18ae54(0x25c)](_0xbfd0f8[_0x18ae54(0x1a7)])[_0x18ae54(0x24d)](this['_localeService'][_0x18ae54(0x1d8)]()),_0x3ca459['get'](_0xbfd0f8['IConfigService'])[_0x18ae54(0x16f)](_0x1dea36[_0x18ae54(0x11a)],this['_configService'][_0x18ae54(0x23a)](_0x1dea36[_0x18ae54(0x11a)]));let _0x5df6f7=this[_0x18ae54(0x184)][_0x18ae54(0x23a)](_0x37ba05[_0x18ae54(0x229)]);_0x5df6f7&&_0x49d228[_0x18ae54(0x148)](_0x37ba05[_0x18ae54(0x236)],{'license':_0x5df6f7['ls']});let _0x34d7a7=(_0x26a7d6=this[_0x18ae54(0x184)][_0x18ae54(0x23a)](_0x18ae54(0xfd)))==null?void 0x0:_0x26a7d6[_0x18ae54(0x22d)],_0x34c33c=!!_0x34d7a7;_0x34c33c&&(this['_internalWebWorker']=_0x34d7a7 instanceof Worker?_0x34d7a7:null,_0x49d228[_0x18ae54(0x148)](_0x324b0b[_0x18ae54(0x250)],{'workerURL':_0x34d7a7})),this[_0x18ae54(0x258)][_0x18ae54(0x1a0)](([_0xe5ac1d,_0x47934b])=>{const _0x1af196=_0x18ae54;_0x49d228[_0x1af196(0x148)](_0xe5ac1d,_0x47934b);}),_0x49d228[_0x18ae54(0x148)](_0x536328['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x2d4a18=this[_0x18ae54(0x184)]['getConfig'](_0x18ae54(0xfd)))==null?void 0x0:_0x2d4a18[_0x18ae54(0x10b)],'historyPanelComponentKey':(_0x30c8f3=this[_0x18ae54(0x184)]['getConfig'](_0x18ae54(0xfd)))==null?void 0x0:_0x30c8f3['historyPanelComponentKey'],'historyPanelHidden':(_0x327d77=this[_0x18ae54(0x184)][_0x18ae54(0x23a)]('edit-history-loader.config'))==null?void 0x0:_0x327d77[_0x18ae54(0x251)],'historyAIassistantEnabled':(_0x3fc978=this[_0x18ae54(0x184)][_0x18ae54(0x23a)](_0x18ae54(0xfd)))==null?void 0x0:_0x3fc978[_0x18ae54(0x186)]}),_0x3ca459[_0x18ae54(0x1ac)](_0x37903e=>{const _0x223723=_0x18ae54;this[_0x223723(0x202)](_0x37903e,_0xea371c);}),this[_0x18ae54(0x14c)][_0x18ae54(0x257)](_0x49d228);let _0xcf181a=_0x3ca459[_0x18ae54(0x25c)](_0x536328['HistoryManagerService']),_0x132736=this[_0x18ae54(0x198)](_0xea371c),_0x43a586=()=>{const _0x45e8cd=_0x18ae54;_0x5a072d?_0xcf181a[_0x45e8cd(0x107)](_0xea371c,_0x7377c0,_0x132736,_0x5a072d):_0xcf181a[_0x45e8cd(0x219)](_0xea371c,_0x7377c0,_0x132736);};if(this[_0x18ae54(0x225)][_0x18ae54(0x261)]({'content':this['_localeService']['t'](_0x18ae54(0x1cf)),'type':_0xbb287b[_0x18ae54(0x1ca)]['Loading']}),_0x34c33c)try{_0x3ca459['get'](_0x324b0b[_0x18ae54(0x205)])[_0x18ae54(0x16b)]()['then'](()=>{_0x43a586();});}catch{_0x43a586();}else _0x43a586();}[_0x4154e2(0x202)](_0x38033f,_0x294320){const _0x1b8cb1=_0x4154e2;let _0x39e313=_0x38033f[_0x1b8cb1(0x25c)](_0x536328[_0x1b8cb1(0x1d6)]);this['_disposableCollection'][_0x1b8cb1(0x221)](_0x39e313['status$'][_0x1b8cb1(0x1a2)](_0x44d2ae=>{const _0x5b6368=_0x1b8cb1;switch(_0x44d2ae){case _0x536328['HistoryModeStatus']['Entered']:this[_0x5b6368(0x174)]['closeAll'](),this[_0x5b6368(0x263)]['close']();break;case _0x536328['HistoryModeStatus'][_0x5b6368(0x215)]:this[_0x5b6368(0x1c7)][_0x5b6368(0x162)](_0x24e3f8['id']),this[_0x5b6368(0x1c9)]();break;case _0x536328['HistoryModeStatus'][_0x5b6368(0x247)]:this[_0x5b6368(0x1c9)](),this[_0x5b6368(0x225)][_0x5b6368(0x261)]({'content':this[_0x5b6368(0x265)]['t']('editHistory.panel.listFetchError'),'type':_0xbb287b[_0x5b6368(0x1ca)][_0x5b6368(0x247)],'duration':0xbb8});break;default:break;}})),this[_0x1b8cb1(0x1f2)][_0x1b8cb1(0x221)](_0x39e313[_0x1b8cb1(0x25d)]['subscribe'](async _0x47ca3f=>{const _0xbd3697=_0x1b8cb1;_0x47ca3f&&this[_0xbd3697(0x1c7)][_0xbd3697(0x162)](_0x59e3cd['RevertRevisionMutation']['id'],{'unitId':_0x294320,'revision':_0x47ca3f});}));}['_checkCanRevert'](_0x1fa8c2){const _0xad3dbd=_0x4154e2;let _0x506b59=this[_0xad3dbd(0x15e)][_0xad3dbd(0x112)](_0x1fa8c2)[_0xad3dbd(0x1e9)]()['map'](_0x55f18c=>_0x55f18c[_0xad3dbd(0x1fe)]()),_0x245496=new _0x587180[(_0xad3dbd(0x1b5))](_0x1fa8c2)['id'],_0x40d6a8=_0x506b59[_0xad3dbd(0x1de)](_0x159d23=>new _0x587180[(_0xad3dbd(0x123))](_0x1fa8c2,_0x159d23)['id']),_0x438d85=_0x506b59[_0xad3dbd(0x1de)](_0x5f1237=>this[_0xad3dbd(0x110)][_0xad3dbd(0x11d)](_0x1fa8c2,_0x5f1237)[_0xad3dbd(0x1de)](_0x2a4884=>new _0x587180['RangeProtectionPermissionEditPoint'](_0x1fa8c2,_0x5f1237,_0x2a4884[_0xad3dbd(0x18c)])['id']))[_0xad3dbd(0x1ff)](),_0x4ddf53=new _0x587180['WorkbookRecoverHistoryPermission'](_0x1fa8c2)['id'];return this[_0xad3dbd(0x243)][_0xad3dbd(0x182)]([_0x245496,..._0x40d6a8,..._0x438d85,_0x4ddf53])[_0xad3dbd(0xfe)](_0x2ab741=>!!_0x2ab741[_0xad3dbd(0x212)]);}};_0x15e7e6=_0x52ad88([_0x370fb4(0x0,(0x0,_0xbfd0f8['Inject'])(_0xbfd0f8[_0x4154e2(0x1a7)])),_0x370fb4(0x1,_0xbfd0f8[_0x4154e2(0x197)]),_0x370fb4(0x2,_0xbfd0f8['IConfigService']),_0x370fb4(0x3,_0xbfd0f8[_0x4154e2(0x1fa)]),_0x370fb4(0x4,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x5,_0xbfd0f8['IPermissionService']),_0x370fb4(0x6,(0x0,_0xbfd0f8['Inject'])(_0x587180[_0x4154e2(0x241)])),_0x370fb4(0x7,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x1e7)])),_0x370fb4(0x8,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4['ISidebarService'])),_0x370fb4(0x9,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x190)]))],_0x15e7e6);let _0x3a1410={'id':'univer.operation.toggle-edit-history','type':_0xbfd0f8[_0x4154e2(0x20a)][_0x4154e2(0x1b6)],'handler':_0x3af3a7=>{const _0x29530c=_0x4154e2;let _0x55017f=_0x3af3a7['get'](_0x15e7e6),{unitId:_0x3e4686}=(0x0,_0x587180['getSheetCommandTarget'])(_0x3af3a7['get'](_0xbfd0f8[_0x29530c(0x197)]))||{};return _0x3e4686?(_0x55017f[_0x29530c(0x22c)](_0x3e4686),!0x0):!0x1;}},_0x24e3f8={'id':_0x4154e2(0x1ea),'type':_0xbfd0f8[_0x4154e2(0x20a)][_0x4154e2(0x1b6)],'handler':()=>!0x0};var _0x35cf83=_0x4154e2(0x218),_0x5e42a6=_0x4154e2(0x12b);function _0x370b4e({ref:_0x30dfd7,..._0x454765}){const _0x6f91ca=_0x4154e2;let {icon:_0x34e7e1,id:_0x1445f4,className:_0x490a41,extend:_0xbd8d1b,..._0x4daf1f}=_0x454765,_0xcfd276=(_0x6f91ca(0x102)+_0x1445f4+'\x20'+(_0x490a41||''))[_0x6f91ca(0x1ae)](),_0x1f9571=(0x0,_0x4f830f[_0x6f91ca(0x19f)])('_'+_0x33dbb6());return _0x103655(_0x34e7e1,''+_0x1445f4,{'defIds':_0x34e7e1[_0x6f91ca(0x19c)],'idSuffix':_0x1f9571[_0x6f91ca(0x13b)]},{'ref':_0x30dfd7,'className':_0xcfd276,..._0x4daf1f},_0xbd8d1b);}function _0x103655(_0x5bdcca,_0x54f43a,_0x5d2f13,_0x41fa7a,_0x3dd6ae){const _0x5ade90=_0x4154e2;return(0x0,_0x4f830f['createElement'])(_0x5bdcca[_0x5ade90(0x264)],{'key':_0x54f43a,..._0x292d58(_0x5bdcca,_0x5d2f13,_0x3dd6ae),..._0x41fa7a},(_0x1c7a97(_0x5bdcca,_0x5d2f13)['children']||[])[_0x5ade90(0x1de)]((_0x1d9f65,_0x32388c)=>_0x103655(_0x1d9f65,_0x54f43a+'-'+_0x5bdcca['tag']+'-'+_0x32388c,_0x5d2f13,void 0x0,_0x3dd6ae)));}function _0x292d58(_0x3f0f22,_0x23da3b,_0x2f79da){const _0x509398=_0x4154e2;let _0x1b893f={..._0x3f0f22['attrs']};_0x2f79da!=null&&_0x2f79da[_0x509398(0x214)]&&_0x1b893f[_0x509398(0x152)]===_0x509398(0x214)&&(_0x1b893f[_0x509398(0x152)]=_0x2f79da['colorChannel1']),_0x3f0f22['tag']==='mask'&&_0x1b893f['id']&&(_0x1b893f['id']+=_0x23da3b[_0x509398(0x1cd)]),Object['entries'](_0x1b893f)['forEach'](([_0x56374d,_0x14cd60])=>{const _0x1f55d4=_0x509398;_0x56374d===_0x1f55d4(0x14a)&&typeof _0x14cd60=='string'&&(_0x1b893f[_0x56374d]=_0x14cd60[_0x1f55d4(0x111)](/url\(#(.*)\)/,_0x1f55d4(0x141)+_0x23da3b[_0x1f55d4(0x1cd)]+')'));});let {defIds:_0x4b54e2}=_0x23da3b;return!_0x4b54e2||_0x4b54e2[_0x509398(0x173)]===0x0?_0x1b893f:(_0x3f0f22['tag']===_0x509398(0x19b)&&_0x1b893f[_0x509398(0x18f)]&&(_0x1b893f[_0x509398(0x18f)]+=_0x23da3b[_0x509398(0x1cd)]),Object['entries'](_0x1b893f)[_0x509398(0x1a0)](([_0x3fac93,_0x2fc3f9])=>{const _0x2f4b93=_0x509398;typeof _0x2fc3f9=='string'&&(_0x1b893f[_0x3fac93]=_0x2fc3f9[_0x2f4b93(0x111)](/url\(#(.*)\)/,_0x2f4b93(0x141)+_0x23da3b[_0x2f4b93(0x1cd)]+')'));}),_0x1b893f);}function _0x1c7a97(_0x5bca17,_0x155ce0){const _0xfbbd59=_0x4154e2;var _0x190d6;let {defIds:_0x12caa7}=_0x155ce0;return!_0x12caa7||_0x12caa7[_0xfbbd59(0x173)]===0x0?_0x5bca17:_0x5bca17[_0xfbbd59(0x264)]===_0xfbbd59(0x256)&&(_0x190d6=_0x5bca17['children'])!=null&&_0x190d6['length']?{..._0x5bca17,'children':_0x5bca17[_0xfbbd59(0x18b)][_0xfbbd59(0x1de)](_0x269011=>typeof _0x269011[_0xfbbd59(0x131)]['id']==_0xfbbd59(0x177)&&_0x12caa7&&_0x12caa7[_0xfbbd59(0x151)](_0x269011[_0xfbbd59(0x131)]['id'])?{..._0x269011,'attrs':{..._0x269011[_0xfbbd59(0x131)],'id':_0x269011[_0xfbbd59(0x131)]['id']+_0x155ce0[_0xfbbd59(0x1cd)]}}:_0x269011)}:_0x5bca17;}function _0x33dbb6(){const _0x403bfa=_0x4154e2;return Math[_0x403bfa(0x23d)]()['toString'](0x24)[_0x403bfa(0x1f4)](0x2,0x8);}_0x370b4e[_0x4154e2(0x1cb)]=_0x4154e2(0x22e);let _0x4abb18={'tag':_0x4154e2(0x115),'attrs':{'xmlns':_0x4154e2(0x134),'fill':_0x4154e2(0x234),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x4154e2(0x1b1),'clipPath':_0x4154e2(0x207)},'children':[{'tag':_0x4154e2(0x15b),'attrs':{'d':_0x4154e2(0x24e)}},{'tag':_0x4154e2(0x15b),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4154e2(0x1f8),'attrs':{'id':_0x4154e2(0x1d7)},'children':[{'tag':_0x4154e2(0x15b),'attrs':{'fill':'white','d':_0x4154e2(0x1d2)}}]}]}],'defIds':['history-icon_clip0_907_281']},_0x34e793=(0x0,_0x4f830f[_0x4154e2(0x118)])(function(_0x12f20a,_0x1233ff){const _0x5d81d6=_0x4154e2;return(0x0,_0x4f830f[_0x5d81d6(0x132)])(_0x370b4e,Object[_0x5d81d6(0x1cc)]({},_0x12f20a,{'id':_0x5d81d6(0x135),'ref':_0x1233ff,'icon':_0x4abb18}));});_0x34e793[_0x4154e2(0x1cb)]=_0x4154e2(0x259);let _0x59b935=function(_0x3de67a){const _0x2c8c72=_0x4154e2;return _0x3de67a[_0x3de67a['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x3de67a[_0x3de67a['UNIVER_DOC']=0x1]=_0x2c8c72(0x150),_0x3de67a[_0x3de67a[_0x2c8c72(0x159)]=0x2]='UNIVER_SHEET',_0x3de67a[_0x3de67a[_0x2c8c72(0x1a8)]=0x3]=_0x2c8c72(0x1a8),_0x3de67a[_0x3de67a[_0x2c8c72(0x1bb)]=0x4]=_0x2c8c72(0x1bb),_0x3de67a[_0x3de67a[_0x2c8c72(0x23b)]=-0x1]=_0x2c8c72(0x23b),_0x3de67a;}({});function _0x312a65(_0x34a440){const _0x4ba965=_0x4154e2;return{'id':_0x3a1410['id'],'type':_0x2861a4[_0x4ba965(0x11e)][_0x4ba965(0x185)],'icon':'HistoryIcon','tooltip':_0x4ba965(0x15d),'hidden$':(0x0,_0x2861a4[_0x4ba965(0x1bf)])(_0x34a440,_0xbfd0f8[_0x4ba965(0x179)][_0x4ba965(0x159)]),'disabled$':(0x0,_0x52dc7d[_0x4ba965(0x24b)])(_0x34a440,{'workbookTypes':[_0x587180['WorkbookEditablePermission'],_0x587180[_0x4ba965(0x156)]],'worksheetTypes':[],'rangeTypes':[]})};}let _0xbdfaef={[_0x2861a4[_0x4154e2(0x1f0)]['OTHERS']]:{[_0x3a1410['id']]:{'order':0.2,'menuItemFactory':_0x312a65}}},_0x47786f=class extends _0xbfd0f8[_0x4154e2(0x17d)]{constructor(_0x2a74be,_0x258c3d,_0x243525,_0x10f5b7,_0x309feb,_0x171a73,_0x38a973,_0x138560,_0x4dc924,_0x45edb5,_0x4c4691){const _0x1e7bd4=_0x4154e2;super(),this['_commandService']=_0x2a74be,this[_0x1e7bd4(0x248)]=_0x258c3d,this[_0x1e7bd4(0x231)]=_0x243525,this[_0x1e7bd4(0x168)]=_0x10f5b7,this[_0x1e7bd4(0x265)]=_0x309feb,this[_0x1e7bd4(0x225)]=_0x171a73,this[_0x1e7bd4(0x154)]=_0x38a973,this[_0x1e7bd4(0x149)]=_0x138560,this['_dataLoaderService']=_0x4dc924,this[_0x1e7bd4(0x15e)]=_0x45edb5,this[_0x1e7bd4(0x1ab)]=_0x4c4691,_0x3a41cb(this,_0x1e7bd4(0x19d),null),this[_0x1e7bd4(0x17e)]();}['_init'](){const _0x5c82c3=_0x4154e2;[_0x3a1410,_0x24e3f8][_0x5c82c3(0x1a0)](_0x4dceda=>this[_0x5c82c3(0x18d)]((0x0,_0xbfd0f8[_0x5c82c3(0x222)])(this[_0x5c82c3(0x1c7)][_0x5c82c3(0x1f9)](_0x4dceda)))),this[_0x5c82c3(0x18d)](this[_0x5c82c3(0x231)][_0x5c82c3(0x108)]('HistoryIcon',_0x34e793)),this[_0x5c82c3(0x248)]['mergeMenu'](_0xbdfaef),this['disposeWithMe'](this[_0x5c82c3(0x1c7)][_0x5c82c3(0x183)](async(_0x155900,_0x34361d)=>{const _0x315278=_0x5c82c3;if(_0x155900['id']===_0x59e3cd[_0x315278(0x145)]['id']){let {unitId:_0x550b2d}=_0x155900[_0x315278(0x17b)];this[_0x315278(0x225)]['show']({'content':this['_localeService']['t'](_0x315278(0x19e)),'type':_0xbb287b[_0x315278(0x1ca)][_0x315278(0x12f)],'duration':0x1388});let _0x5cd6c7=this[_0x315278(0x154)][_0x315278(0x1d9)](_0x550b2d);_0x34361d!=null&&_0x34361d[_0x315278(0x15f)]?this[_0x315278(0x119)](_0x5cd6c7,async()=>(setTimeout(()=>window['location'][_0x315278(0x189)]()),!0x0),!0x0):this[_0x315278(0x119)](_0x5cd6c7,async()=>{const _0x5831b9=_0x315278;let _0x18d815=this[_0x5831b9(0x15e)]['getCurrentUnitOfType'](_0x59b935[_0x5831b9(0x159)]),_0x53416d=_0x18d815==null?void 0x0:_0x18d815['getActiveSheet']();if(!_0x53416d)return!0x1;this[_0x5831b9(0x15e)]['disposeUnit'](_0x550b2d);let _0x39e53b=await this[_0x5831b9(0x196)][_0x5831b9(0x14d)](_0x550b2d,_0x59b935[_0x5831b9(0x159)]);return _0x39e53b&&_0x39e53b instanceof _0xbfd0f8[_0x5831b9(0x1ed)]?(await this[_0x5831b9(0x23e)](_0x39e53b,_0x53416d[_0x5831b9(0x1fe)]()),!0x0):!0x1;});}}));}[_0x4154e2(0x119)](_0x154a50,_0x2faad6,_0x5119c1=!0x1){const _0x460793=_0x4154e2;let _0x18ba70=(0x0,_0x4876df[_0x460793(0x216)])([_0x154a50[_0x460793(0x16e)]['event$'],_0x154a50[_0x460793(0x105)]])['subscribe'](async([_0x26efff,_0x1c731a])=>{const _0x4946d1=_0x460793;if(_0x26efff[_0x4946d1(0x203)]===_0x59e3cd[_0x4946d1(0x15a)][_0x4946d1(0x11b)]&&(_0x1c731a==null?void 0x0:_0x1c731a[_0x4946d1(0x128)])===_0x1dea36['CollaborationStatus'][_0x4946d1(0x17f)]&&_0x26efff[_0x4946d1(0x147)][_0x4946d1(0x176)][_0x4946d1(0x171)](_0x2454a9=>_0x2454a9['id']===_0x59e3cd[_0x4946d1(0x145)]['id'])&&await _0x2faad6()){var _0x418ceb;this[_0x4946d1(0x168)][_0x4946d1(0x1c9)](),_0x18ba70[_0x4946d1(0x187)](),this[_0x4946d1(0x19d)]&&clearTimeout(this[_0x4946d1(0x19d)]),await((_0x418ceb=this[_0x4946d1(0x149)])==null?void 0x0:_0x418ceb[_0x4946d1(0x21a)]()),this[_0x4946d1(0x225)]['removeAll']();}});_0x5119c1&&(this[_0x460793(0x19d)]=setTimeout(()=>{const _0x2ad5c4=_0x460793;_0x18ba70[_0x2ad5c4(0x187)](),this[_0x2ad5c4(0x225)][_0x2ad5c4(0x261)]({'content':this[_0x2ad5c4(0x265)]['t']('editHistory.panel.revertFailed'),'type':_0xbb287b['MessageType'][_0x2ad5c4(0x247)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x3f8d63,_0x29970b){const _0x508219=_0x4154e2;await this['_updateSubUnitFromURLParams'](_0x3f8d63,_0x29970b),_0x3f8d63[_0x508219(0x1d4)][_0x508219(0x124)]((0x0,_0x4876df['takeUntil'])(this[_0x508219(0x1c8)]))[_0x508219(0x1a2)](_0x2d769c=>{const _0x18162b=_0x508219;_0x2d769c&&this[_0x18162b(0x24a)](_0x2d769c);}),this[_0x508219(0x1ab)][_0x508219(0x21e)][_0x508219(0x124)]((0x0,_0x4876df['takeUntil'])(this[_0x508219(0x1c8)]))[_0x508219(0x1a2)](()=>this[_0x508219(0x129)](_0x3f8d63,_0x29970b));}[_0x4154e2(0x24a)](_0x1b5d08,_0x1ffb25=!0x1){const _0x35d947=_0x4154e2;let _0x2702df=this[_0x35d947(0x1ab)][_0x35d947(0x20c)]('subunit');_0x1b5d08[_0x35d947(0x1fe)]()!==_0x2702df&&this[_0x35d947(0x1ab)]['setParam'](_0x35d947(0x1f5),_0x1b5d08['getSheetId'](),_0x1ffb25);}async[_0x4154e2(0x129)](_0xc4c313,_0x1fe95f){const _0x582b3e=_0x4154e2;var _0x5ccdaa;if(!_0x1fe95f||!_0xc4c313[_0x582b3e(0x14b)](_0x1fe95f)){let _0x2f0fcf=_0xc4c313[_0x582b3e(0x208)]()[0x0],_0x2e3f00=_0xc4c313[_0x582b3e(0x14b)](_0x2f0fcf);if(!_0x2e3f00)return;this[_0x582b3e(0x24a)](_0x2e3f00,!0x0),await this['_commandService'][_0x582b3e(0x162)](_0x587180[_0x582b3e(0x1b4)]['id'],{'unitId':_0xc4c313[_0x582b3e(0x1b8)](),'subUnitId':_0x2f0fcf});return;}((_0x5ccdaa=_0xc4c313[_0x582b3e(0x116)]())==null?void 0x0:_0x5ccdaa[_0x582b3e(0x1fe)]())!==_0x1fe95f&&await this[_0x582b3e(0x1c7)][_0x582b3e(0x162)](_0x587180[_0x582b3e(0x1b4)]['id'],{'unitId':_0xc4c313[_0x582b3e(0x1b8)](),'subUnitId':_0x1fe95f});}};_0x47786f=_0x52ad88([_0x370fb4(0x0,_0xbfd0f8[_0x4154e2(0x1fa)]),_0x370fb4(0x1,_0x2861a4['IMenuManagerService']),_0x370fb4(0x2,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x10e)])),_0x370fb4(0x3,(0x0,_0xbfd0f8['Inject'])(_0x15e7e6)),_0x370fb4(0x4,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1a7)])),_0x370fb4(0x5,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x6,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x1dea36[_0x4154e2(0x21d)])),_0x370fb4(0x7,_0x1dea36[_0x4154e2(0x1af)]),_0x370fb4(0x8,(0x0,_0xbfd0f8['Inject'])(_0x1dea36[_0x4154e2(0x210)])),_0x370fb4(0x9,_0xbfd0f8['IUniverInstanceService']),_0x370fb4(0xa,_0x2c91e1['IURLService'])],_0x47786f);let _0x49d995=_0x4154e2(0x194),_0x21f1d9=class extends _0xbfd0f8[_0x4154e2(0x20b)]{constructor(_0x52a22f,_0x34decb,_0x564818,_0x497bfd,_0x40358f,_0x490ea0,_0x57c7ca,_0x556695,_0x1ffddc,_0x4c69fb){const _0x28145d=_0x4154e2;super(),this['_localeService']=_0x52a22f,this[_0x28145d(0x15e)]=_0x34decb,this[_0x28145d(0x184)]=_0x564818,this[_0x28145d(0x1c7)]=_0x497bfd,this['_messageService']=_0x40358f,this[_0x28145d(0x243)]=_0x490ea0,this['_selectionProtectionRuleModel']=_0x57c7ca,this[_0x28145d(0x174)]=_0x556695,this[_0x28145d(0x263)]=_0x1ffddc,this[_0x28145d(0x1e2)]=_0x4c69fb,_0x3a41cb(this,_0x28145d(0x14c),new _0x4876df[(_0x28145d(0x13a))](null)),_0x3a41cb(this,_0x28145d(0x103),this[_0x28145d(0x14c)][_0x28145d(0x143)]()),_0x3a41cb(this,_0x28145d(0x1f2),new _0xbfd0f8['DisposableCollection']()),_0x3a41cb(this,_0x28145d(0x258),new Map()),_0x3a41cb(this,'_internalWebWorker',null),this[_0x28145d(0x17e)]();}get[_0x4154e2(0x15c)](){const _0x2d1ead=_0x4154e2;return this[_0x2d1ead(0x14c)][_0x2d1ead(0x212)];}[_0x4154e2(0x17e)](){const _0x298d57=_0x4154e2;this[_0x298d57(0x1dc)](),this[_0x298d57(0x136)]();}[_0x4154e2(0x1dc)](){const _0x11e32a=_0x4154e2;var _0x593e12;let _0x1ce903=(_0x593e12=this[_0x11e32a(0x184)][_0x11e32a(0x23a)](_0x11e32a(0x18e)))==null?_0x11e32a(0x11f):_0x593e12,_0x55125e=document[_0x11e32a(0x10f)](_0x1ce903);if(!_0x55125e)return;let _0x548822=document[_0x11e32a(0x132)](_0x11e32a(0x138));_0x548822['id']=_0x49d995,_0x548822[_0x11e32a(0x25a)][_0x11e32a(0x1a6)]=_0x11e32a(0x20f),_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x1be)]='absolute',_0x548822[_0x11e32a(0x19a)]['top']='0',_0x548822[_0x11e32a(0x19a)]['left']='0',_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x157)]=_0x11e32a(0x153),_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x1ee)]=_0x11e32a(0x153),_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x191)]='49',_0x548822[_0x11e32a(0x19a)][_0x11e32a(0x25f)]=_0x11e32a(0x234),_0x55125e[_0x11e32a(0x1ba)](_0x548822);}[_0x4154e2(0x136)](){const _0x1c45a4=_0x4154e2;[[_0x1938c7[_0x1c45a4(0x230)]],[_0x2861a4['UniverMobileUIPlugin'],{'container':_0x49d995,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2861a4[_0x1c45a4(0x1e7)],null]]}],[_0x3eea3c['UniverNetworkPlugin']],[_0x5d5e62[_0x1c45a4(0x1d1)],{'override':[[_0x5d5e62[_0x1c45a4(0x206)],null]]}],[_0x5c70ac[_0x1c45a4(0x22b)],{'hasScroll':!0x1}],[_0x263c40[_0x1c45a4(0x13d)]],[_0x7b0bd0[_0x1c45a4(0x1b7)]],[_0x587180[_0x1c45a4(0x213)],{'notExecuteFormula':!0x0}],[_0x52dc7d[_0x1c45a4(0x21b)]],[_0x3c1719[_0x1c45a4(0x10d)]],[_0x42caff['UniverSheetsFormulaUIPlugin']],[_0x59e3cd[_0x1c45a4(0xff)]],[_0x258887[_0x1c45a4(0x12e)]],[_0x17b813['UniverSheetsConditionalFormattingPlugin']],[_0x19e567['UniverSheetsHyperLinkPlugin']],[_0x79c72d[_0x1c45a4(0x181)]],[_0x31f7fc[_0x1c45a4(0x1db)]],[_0x1accce[_0x1c45a4(0x1bd)]],[_0x77e97a[_0x1c45a4(0xfc)]],[_0x1d9627[_0x1c45a4(0x1ec)],{'notExecuteFormula':!0x0}],[_0x378e77[_0x1c45a4(0x1b3)]],[_0x374ebd[_0x1c45a4(0x163)]],[_0xc2e7db[_0x1c45a4(0x242)]],[_0x29617e['UniverSheetSparklinePlugin']],[_0x4ab6ab[_0x1c45a4(0x1a3)]],[_0x2987d7['UniverSheetsChartPlugin']],[_0x44f2ac[_0x1c45a4(0x22f)]],[_0x81f89e[_0x1c45a4(0x1fd)]],[_0x5cec6e[_0x1c45a4(0x244)]],[_0x195e49[_0x1c45a4(0x11c)],{'notExecuteFormula':!0x0}],[_0x2358fb['UniverSheetsTablePlugin']]][_0x1c45a4(0x1a0)](([_0x455cbc,_0x4cd7e0])=>this[_0x1c45a4(0x148)](_0x455cbc,_0x4cd7e0));}['dispose'](){const _0x23f038=_0x4154e2;super[_0x23f038(0x1f1)](),this[_0x23f038(0x1c9)](),this[_0x23f038(0x258)][_0x23f038(0x223)]();}[_0x4154e2(0x148)](_0xf6d2fe,_0x4eeb36,_0x49281e){const _0x562225=_0x4154e2;if(this[_0x562225(0x258)][_0x562225(0x193)](_0xf6d2fe[_0x562225(0x1c5)])&&!_0x49281e)throw Error(_0x562225(0x161)+_0xf6d2fe[_0x562225(0x1c5)]+_0x562225(0x1e3));this['_pluginMap'][_0x562225(0x1c6)](_0xf6d2fe[_0x562225(0x1c5)],[_0xf6d2fe,_0x4eeb36]);}[_0x4154e2(0x1c2)](){const _0x3b78d8=_0x4154e2;return Array[_0x3b78d8(0x13c)](this['_pluginMap'][_0x3b78d8(0x13f)]());}['mountHistoryContent'](_0x337ecb,_0x3e3f68){const _0x349056=_0x4154e2;let _0x3ab0b3=document[_0x349056(0x10f)](_0x49d995);_0x3ab0b3&&(_0x3ab0b3[_0x349056(0x19a)][_0x349056(0x25f)]=_0x349056(0x104),this[_0x349056(0x22a)](_0x337ecb,_0x49d995,_0x3e3f68));}[_0x4154e2(0x1c9)](){const _0x315589=_0x4154e2;var _0x194e2d;this[_0x315589(0x1f2)][_0x315589(0x1f1)](),(_0x194e2d=this[_0x315589(0x15c)])==null||_0x194e2d['dispose'](),this[_0x315589(0x14c)]['next'](null);let _0x1c9a84=document['getElementById'](_0x49d995);_0x1c9a84&&(_0x1c9a84[_0x315589(0x19a)][_0x315589(0x25f)]='none',this['_internalWebWorker']&&(this[_0x315589(0x1e6)][_0x315589(0x227)](),this[_0x315589(0x1e6)]=null));}['_initUniver'](_0x24f06b,_0x578f5a,_0x252768){const _0x32ca31=_0x4154e2;var _0x1749a7,_0x4afd68,_0x58e349,_0x15687a;if(this[_0x32ca31(0x15c)])return;let _0x5b4078=new _0xbfd0f8[(_0x32ca31(0x142))]({'locales':{[this['_localeService'][_0x32ca31(0x1d8)]()]:this['_localeService'][_0x32ca31(0x235)]()},'override':[[_0xbfd0f8[_0x32ca31(0x211)],{'useClass':_0x1dea36[_0x32ca31(0x120)]}]]}),_0x215f1f=_0x5b4078[_0x32ca31(0x192)]();this[_0x32ca31(0x18d)](this['_themeService'][_0x32ca31(0x164)][_0x32ca31(0x1a2)](_0x5e1e4f=>{const _0x4dd1fa=_0x32ca31;_0x215f1f[_0x4dd1fa(0x25c)](_0xbfd0f8['ThemeService'])[_0x4dd1fa(0x1b2)](_0x5e1e4f);})),this[_0x32ca31(0x18d)](this[_0x32ca31(0x1e2)][_0x32ca31(0x195)][_0x32ca31(0x1a2)](_0x3c61bb=>{const _0x1f112c=_0x32ca31;_0x215f1f[_0x1f112c(0x25c)](_0xbfd0f8['ThemeService'])[_0x1f112c(0x255)](_0x3c61bb);})),_0x215f1f[_0x32ca31(0x25c)](_0xbfd0f8[_0x32ca31(0x1a7)])[_0x32ca31(0x24d)](this[_0x32ca31(0x265)][_0x32ca31(0x1d8)]()),_0x215f1f['get'](_0xbfd0f8[_0x32ca31(0x23f)])[_0x32ca31(0x16f)](_0x1dea36[_0x32ca31(0x11a)],this[_0x32ca31(0x184)][_0x32ca31(0x23a)](_0x1dea36[_0x32ca31(0x11a)]));let _0x268e31=this['_configService'][_0x32ca31(0x23a)](_0x37ba05['LS_CONFIG_KEY']);_0x268e31&&_0x5b4078[_0x32ca31(0x148)](_0x37ba05[_0x32ca31(0x236)],{'license':_0x268e31['ls']});let _0x3d4266=(_0x1749a7=this['_configService'][_0x32ca31(0x23a)](_0x32ca31(0xfd)))==null?void 0x0:_0x1749a7[_0x32ca31(0x22d)],_0x5234a9=!!_0x3d4266;_0x5234a9&&(this[_0x32ca31(0x1e6)]=_0x3d4266 instanceof Worker?_0x3d4266:null,_0x5b4078[_0x32ca31(0x148)](_0x324b0b['UniverRPCMainThreadPlugin'],{'workerURL':_0x3d4266})),this[_0x32ca31(0x258)][_0x32ca31(0x1a0)](([_0x132a67,_0x32d276])=>{const _0x2fafca=_0x32ca31;_0x5b4078[_0x2fafca(0x148)](_0x132a67,_0x32d276);}),_0x5b4078[_0x32ca31(0x148)](_0x536328['UniverEditHistoryViewerMobilePlugin'],{'historyListServerUrl':(_0x4afd68=this[_0x32ca31(0x184)]['getConfig']('edit-history-loader.config'))==null?void 0x0:_0x4afd68[_0x32ca31(0x10b)],'historyPanelComponentKey':(_0x58e349=this[_0x32ca31(0x184)]['getConfig'](_0x32ca31(0xfd)))==null?void 0x0:_0x58e349['historyPanelComponentKey'],'historyPanelHidden':(_0x15687a=this[_0x32ca31(0x184)][_0x32ca31(0x23a)]('edit-history-loader.config'))==null?void 0x0:_0x15687a[_0x32ca31(0x251)]}),_0x215f1f[_0x32ca31(0x1ac)](_0x275829=>{const _0x5f02b1=_0x32ca31;this[_0x5f02b1(0x202)](_0x275829,_0x24f06b);}),this[_0x32ca31(0x14c)][_0x32ca31(0x257)](_0x5b4078);let _0x3818d2=_0x215f1f[_0x32ca31(0x25c)](_0x536328[_0x32ca31(0x1d6)]),_0x328a8a=this[_0x32ca31(0x198)](_0x24f06b),_0x4095af=()=>{const _0x55350d=_0x32ca31;_0x252768?_0x3818d2[_0x55350d(0x107)](_0x24f06b,_0x578f5a,_0x328a8a,_0x252768):_0x3818d2[_0x55350d(0x219)](_0x24f06b,_0x578f5a,_0x328a8a);};if(this[_0x32ca31(0x225)][_0x32ca31(0x261)]({'content':this[_0x32ca31(0x265)]['t'](_0x32ca31(0x1cf)),'type':_0xbb287b[_0x32ca31(0x1ca)][_0x32ca31(0x12f)]}),_0x5234a9)try{_0x215f1f[_0x32ca31(0x25c)](_0x324b0b[_0x32ca31(0x205)])['whenReady']()[_0x32ca31(0x109)](()=>{_0x4095af();});}catch{_0x4095af();}else _0x4095af();}[_0x4154e2(0x202)](_0x3e2214,_0x367a95){const _0x5e38bd=_0x4154e2;let _0x475f09=_0x3e2214[_0x5e38bd(0x25c)](_0x536328[_0x5e38bd(0x1d6)]);this[_0x5e38bd(0x1f2)]['add'](_0x475f09[_0x5e38bd(0x199)][_0x5e38bd(0x1a2)](_0x4b83cf=>{const _0x23c178=_0x5e38bd;switch(_0x4b83cf){case _0x536328[_0x23c178(0x137)]['Entered']:this[_0x23c178(0x174)]['closeAll'](),this['_sidebarService'][_0x23c178(0x1d5)]();break;case _0x536328['HistoryModeStatus']['Exited']:this[_0x23c178(0x1c7)][_0x23c178(0x162)](_0x24e3f8['id']),this[_0x23c178(0x1c9)]();break;case _0x536328['HistoryModeStatus'][_0x23c178(0x247)]:this[_0x23c178(0x1c9)](),this[_0x23c178(0x225)][_0x23c178(0x261)]({'content':this[_0x23c178(0x265)]['t'](_0x23c178(0x200)),'type':_0xbb287b['MessageType'][_0x23c178(0x247)],'duration':0xbb8});break;default:break;}})),this['_disposableCollection']['add'](_0x475f09[_0x5e38bd(0x25d)]['subscribe'](async _0x4dfda7=>{const _0xa91789=_0x5e38bd;_0x4dfda7&&this['_commandService'][_0xa91789(0x162)](_0x59e3cd[_0xa91789(0x145)]['id'],{'unitId':_0x367a95,'revision':_0x4dfda7});}));}[_0x4154e2(0x198)](_0x382432){const _0x291f83=_0x4154e2;let _0x244e57=this[_0x291f83(0x15e)]['getUnit'](_0x382432)[_0x291f83(0x1e9)]()['map'](_0x2029eb=>_0x2029eb['getSheetId']()),_0x43dbef=new _0x587180[(_0x291f83(0x1b5))](_0x382432)['id'],_0x433d5e=_0x244e57[_0x291f83(0x1de)](_0x4a299f=>new _0x587180[(_0x291f83(0x123))](_0x382432,_0x4a299f)['id']),_0x4f6441=_0x244e57[_0x291f83(0x1de)](_0x180461=>this[_0x291f83(0x110)][_0x291f83(0x11d)](_0x382432,_0x180461)[_0x291f83(0x1de)](_0x21b61f=>new _0x587180[(_0x291f83(0x217))](_0x382432,_0x180461,_0x21b61f[_0x291f83(0x18c)])['id']))[_0x291f83(0x1ff)](),_0x2a0da9=new _0x587180[(_0x291f83(0x1c1))](_0x382432)['id'];return this[_0x291f83(0x243)][_0x291f83(0x182)]([_0x43dbef,..._0x433d5e,..._0x4f6441,_0x2a0da9])['every'](_0x141daa=>!!_0x141daa[_0x291f83(0x212)]);}};_0x21f1d9=_0x52ad88([_0x370fb4(0x0,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1a7)])),_0x370fb4(0x1,_0xbfd0f8[_0x4154e2(0x197)]),_0x370fb4(0x2,_0xbfd0f8['IConfigService']),_0x370fb4(0x3,_0xbfd0f8['ICommandService']),_0x370fb4(0x4,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x5,_0xbfd0f8['IPermissionService']),_0x370fb4(0x6,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x587180[_0x4154e2(0x241)])),_0x370fb4(0x7,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x1e7)])),_0x370fb4(0x8,(0x0,_0xbfd0f8['Inject'])(_0x2861a4[_0x4154e2(0x1f7)])),_0x370fb4(0x9,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x190)]))],_0x21f1d9);let _0xa9f51f=class extends _0xbfd0f8[_0x4154e2(0x18a)]{constructor(_0xba7b=_0xe4c960,_0xa5a6b,_0x198483){const _0x44044a=_0x4154e2;super(),this[_0x44044a(0x14e)]=_0xba7b,this['_injector']=_0xa5a6b,this[_0x44044a(0x184)]=_0x198483;let {menu:_0xf29c51,..._0x14c786}=(0x0,_0xbfd0f8['merge'])({},_0xe4c960,this[_0x44044a(0x14e)]);_0xf29c51&&this[_0x44044a(0x184)][_0x44044a(0x16f)](_0x44044a(0x170),_0xf29c51,{'merge':!0x0}),this[_0x44044a(0x184)][_0x44044a(0x16f)](_0x15af09,_0x14c786),this[_0x44044a(0x14e)][_0x44044a(0x1fb)]&&this[_0x44044a(0x184)][_0x44044a(0x16f)]('UNIVER_CONTAINER_ID',this[_0x44044a(0x14e)][_0x44044a(0x1fb)]);}[_0x4154e2(0x1e4)](){const _0x34c6ae=_0x4154e2;[[_0x15e7e6,{'useClass':_0x21f1d9}],[_0x47786f]][_0x34c6ae(0x1a0)](_0x4a53d7=>this[_0x34c6ae(0x172)][_0x34c6ae(0x221)](_0x4a53d7));}[_0x4154e2(0x12a)](){const _0xa4a95e=_0x4154e2;this[_0xa4a95e(0x172)]['get'](_0x47786f);}};_0x3a41cb(_0xa9f51f,_0x4154e2(0x117),_0xbfd0f8[_0x4154e2(0x179)]['UNIVER_UNKNOWN']),_0x3a41cb(_0xa9f51f,_0x4154e2(0x1c5),_0x4154e2(0x260)),_0x3a41cb(_0xa9f51f,_0x4154e2(0x121),_0x35cf83),_0x3a41cb(_0xa9f51f,_0x4154e2(0x233),_0x5e42a6),_0xa9f51f=_0x52ad88([(0x0,_0xbfd0f8[_0x4154e2(0x125)])(_0x37ba05[_0x4154e2(0x236)]),_0x370fb4(0x1,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1e5)])),_0x370fb4(0x2,_0xbfd0f8[_0x4154e2(0x23f)])],_0xa9f51f);let _0x1b6708=class extends _0xbfd0f8['RxDisposable']{constructor(_0x10af9f,_0x325e51,_0x1a30f4,_0x588102,_0x454c31,_0x4f409f,_0x45cdf7,_0xc27917,_0x2edead,_0x55e57f,_0x4cb1de){const _0x3e3f36=_0x4154e2;super(),this[_0x3e3f36(0x1c7)]=_0x10af9f,this[_0x3e3f36(0x248)]=_0x325e51,this[_0x3e3f36(0x231)]=_0x1a30f4,this[_0x3e3f36(0x168)]=_0x588102,this[_0x3e3f36(0x265)]=_0x454c31,this[_0x3e3f36(0x225)]=_0x4f409f,this[_0x3e3f36(0x154)]=_0x45cdf7,this[_0x3e3f36(0x149)]=_0xc27917,this['_dataLoaderService']=_0x2edead,this[_0x3e3f36(0x15e)]=_0x55e57f,this[_0x3e3f36(0x1ab)]=_0x4cb1de,_0x3a41cb(this,'_revertErrorTimer',null),this['_init']();}[_0x4154e2(0x17e)](){const _0x3ce443=_0x4154e2;[_0x3a1410,_0x24e3f8][_0x3ce443(0x1a0)](_0x18fde3=>this[_0x3ce443(0x18d)]((0x0,_0xbfd0f8[_0x3ce443(0x222)])(this['_commandService'][_0x3ce443(0x1f9)](_0x18fde3)))),this[_0x3ce443(0x18d)](this[_0x3ce443(0x231)][_0x3ce443(0x108)](_0x3ce443(0x259),_0x34e793)),this[_0x3ce443(0x248)][_0x3ce443(0x167)](_0xbdfaef),this[_0x3ce443(0x18d)](this[_0x3ce443(0x1c7)]['onCommandExecuted'](async(_0x2dad9a,_0x1f9d7f)=>{const _0x245710=_0x3ce443;if(_0x2dad9a['id']===_0x59e3cd[_0x245710(0x145)]['id']){let {unitId:_0x2e3872}=_0x2dad9a['params'];this[_0x245710(0x225)][_0x245710(0x261)]({'content':this[_0x245710(0x265)]['t'](_0x245710(0x19e)),'type':_0xbb287b[_0x245710(0x1ca)]['Loading'],'duration':0x1388});let _0x59f251=this[_0x245710(0x154)]['getCollabEntity'](_0x2e3872);_0x1f9d7f!=null&&_0x1f9d7f['fromCollab']?this[_0x245710(0x119)](_0x59f251,async()=>(setTimeout(()=>window['location'][_0x245710(0x189)]()),!0x0),!0x0):this['_handleRevertAcknowledgement'](_0x59f251,async()=>{const _0x43239f=_0x245710;let _0x132dc9=this[_0x43239f(0x15e)][_0x43239f(0x1b9)](_0x59b935[_0x43239f(0x159)]),_0x3aa7ca=_0x132dc9==null?void 0x0:_0x132dc9['getActiveSheet']();if(!_0x3aa7ca)return!0x1;this['_univerInstanceService'][_0x43239f(0x160)](_0x2e3872);let _0x196d10=await this[_0x43239f(0x196)][_0x43239f(0x14d)](_0x2e3872,_0x59b935[_0x43239f(0x159)]);return _0x196d10&&_0x196d10 instanceof _0xbfd0f8[_0x43239f(0x1ed)]?(await this['_setupSubUnitSync'](_0x196d10,_0x3aa7ca[_0x43239f(0x1fe)]()),!0x0):!0x1;});}}));}[_0x4154e2(0x119)](_0x2f40c4,_0x212fd2,_0x460433=!0x1){const _0x5dbf89=_0x4154e2;let _0x297045=(0x0,_0x4876df[_0x5dbf89(0x216)])([_0x2f40c4[_0x5dbf89(0x16e)][_0x5dbf89(0x1dd)],_0x2f40c4[_0x5dbf89(0x105)]])['subscribe'](async([_0xaa878c,_0x1a29d4])=>{const _0x2464a4=_0x5dbf89;if(_0xaa878c[_0x2464a4(0x203)]===_0x59e3cd['CollaborationEvent'][_0x2464a4(0x11b)]&&(_0x1a29d4==null?void 0x0:_0x1a29d4[_0x2464a4(0x128)])===_0x1dea36[_0x2464a4(0x24c)][_0x2464a4(0x17f)]&&_0xaa878c['data'][_0x2464a4(0x176)][_0x2464a4(0x171)](_0x4f9f08=>_0x4f9f08['id']===_0x59e3cd['RevertRevisionMutation']['id'])&&await _0x212fd2()){var _0x3469c1;this[_0x2464a4(0x168)][_0x2464a4(0x1c9)](),_0x297045[_0x2464a4(0x187)](),this[_0x2464a4(0x19d)]&&clearTimeout(this[_0x2464a4(0x19d)]),await((_0x3469c1=this[_0x2464a4(0x149)])==null?void 0x0:_0x3469c1[_0x2464a4(0x21a)]());}});_0x460433&&(this[_0x5dbf89(0x19d)]=setTimeout(()=>{const _0x4b0d19=_0x5dbf89;_0x297045[_0x4b0d19(0x187)](),this[_0x4b0d19(0x225)][_0x4b0d19(0x261)]({'content':this[_0x4b0d19(0x265)]['t'](_0x4b0d19(0x254)),'type':_0xbb287b[_0x4b0d19(0x1ca)][_0x4b0d19(0x247)],'duration':0xbb8});},0x1388));}async['_setupSubUnitSync'](_0x1ec224,_0x2a647f){const _0x3a3aa0=_0x4154e2;await this[_0x3a3aa0(0x129)](_0x1ec224,_0x2a647f),_0x1ec224[_0x3a3aa0(0x1d4)][_0x3a3aa0(0x124)]((0x0,_0x4876df[_0x3a3aa0(0x1eb)])(this[_0x3a3aa0(0x1c8)]))['subscribe'](_0xc21686=>{const _0x4d6e7c=_0x3a3aa0;_0xc21686&&this[_0x4d6e7c(0x24a)](_0xc21686);}),this[_0x3a3aa0(0x1ab)]['urlChange$'][_0x3a3aa0(0x124)]((0x0,_0x4876df[_0x3a3aa0(0x1eb)])(this[_0x3a3aa0(0x1c8)]))[_0x3a3aa0(0x1a2)](()=>this[_0x3a3aa0(0x129)](_0x1ec224,_0x2a647f));}[_0x4154e2(0x24a)](_0x43926a,_0xb6a79b=!0x1){const _0x86551b=_0x4154e2;let _0x32cb6b=this[_0x86551b(0x1ab)][_0x86551b(0x20c)]('subunit');_0x43926a[_0x86551b(0x1fe)]()!==_0x32cb6b&&this[_0x86551b(0x1ab)][_0x86551b(0x204)](_0x86551b(0x1f5),_0x43926a[_0x86551b(0x1fe)](),_0xb6a79b);}async[_0x4154e2(0x129)](_0x2f4ca6,_0x2a2e30){const _0x52046e=_0x4154e2;var _0x250330;if(!_0x2a2e30||!_0x2f4ca6[_0x52046e(0x14b)](_0x2a2e30)){let _0x8f4043=_0x2f4ca6[_0x52046e(0x208)]()[0x0],_0x2cf659=_0x2f4ca6['getSheetBySheetId'](_0x8f4043);if(!_0x2cf659)return;this['_updateURLWithCurrentState'](_0x2cf659,!0x0),await this[_0x52046e(0x1c7)][_0x52046e(0x162)](_0x587180['SetWorksheetActivateCommand']['id'],{'unitId':_0x2f4ca6[_0x52046e(0x1b8)](),'subUnitId':_0x8f4043});return;}((_0x250330=_0x2f4ca6['getActiveSheet']())==null?void 0x0:_0x250330[_0x52046e(0x1fe)]())!==_0x2a2e30&&await this[_0x52046e(0x1c7)]['executeCommand'](_0x587180[_0x52046e(0x1b4)]['id'],{'unitId':_0x2f4ca6[_0x52046e(0x1b8)](),'subUnitId':_0x2a2e30});}};_0x1b6708=_0x52ad88([_0x370fb4(0x0,_0xbfd0f8[_0x4154e2(0x1fa)]),_0x370fb4(0x1,_0x2861a4['IMenuManagerService']),_0x370fb4(0x2,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x2861a4[_0x4154e2(0x10e)])),_0x370fb4(0x3,(0x0,_0xbfd0f8['Inject'])(_0x15e7e6)),_0x370fb4(0x4,(0x0,_0xbfd0f8['Inject'])(_0xbfd0f8['LocaleService'])),_0x370fb4(0x5,_0x2861a4[_0x4154e2(0x220)]),_0x370fb4(0x6,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x1dea36[_0x4154e2(0x21d)])),_0x370fb4(0x7,_0x1dea36['ILocalCacheService']),_0x370fb4(0x8,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0x1dea36['DataLoaderService'])),_0x370fb4(0x9,_0xbfd0f8[_0x4154e2(0x197)]),_0x370fb4(0xa,_0x2c91e1[_0x4154e2(0x140)])],_0x1b6708);let _0x1b9d45=class extends _0xbfd0f8['Plugin']{constructor(_0x77aa66=_0xe4c960,_0x1342c4,_0x4a12be){const _0xacd7f8=_0x4154e2;super(),this[_0xacd7f8(0x14e)]=_0x77aa66,this[_0xacd7f8(0x172)]=_0x1342c4,this['_configService']=_0x4a12be;let {menu:_0x52ffb9,..._0x35b53e}=(0x0,_0xbfd0f8[_0xacd7f8(0x1da)])({},_0xe4c960,this[_0xacd7f8(0x14e)]);_0x52ffb9&&this['_configService'][_0xacd7f8(0x16f)](_0xacd7f8(0x170),_0x52ffb9,{'merge':!0x0}),this[_0xacd7f8(0x184)][_0xacd7f8(0x16f)](_0x15af09,_0x35b53e),this['_config'][_0xacd7f8(0x1fb)]&&this[_0xacd7f8(0x184)][_0xacd7f8(0x16f)](_0x4fd513,this[_0xacd7f8(0x14e)][_0xacd7f8(0x1fb)]);}[_0x4154e2(0x1e4)](){const _0x314aa5=_0x4154e2;[[_0x15e7e6],[_0x1b6708]][_0x314aa5(0x1a0)](_0x4f2296=>this['_injector']['add'](_0x4f2296));}[_0x4154e2(0x12a)](){const _0x450c6=_0x4154e2;this[_0x450c6(0x172)]['get'](_0x1b6708);}};_0x3a41cb(_0x1b9d45,_0x4154e2(0x117),_0xbfd0f8[_0x4154e2(0x179)][_0x4154e2(0x1f3)]),_0x3a41cb(_0x1b9d45,_0x4154e2(0x1c5),'UNIVER_EDIT_HISTORY_LOADER_PLUGIN'),_0x3a41cb(_0x1b9d45,_0x4154e2(0x121),_0x35cf83),_0x3a41cb(_0x1b9d45,'version',_0x5e42a6),_0x1b9d45=_0x52ad88([(0x0,_0xbfd0f8[_0x4154e2(0x125)])(_0x37ba05[_0x4154e2(0x236)]),_0x370fb4(0x1,(0x0,_0xbfd0f8[_0x4154e2(0x166)])(_0xbfd0f8[_0x4154e2(0x1e5)])),_0x370fb4(0x2,_0xbfd0f8['IConfigService'])],_0x1b9d45),_0x3126a1[_0x4154e2(0x180)]=_0x15af09,Object['defineProperty'](_0x3126a1,_0x4154e2(0x1b0),{'enumerable':!0x0,'get':function(){return _0x15e7e6;}}),Object[_0x4154e2(0x1fc)](_0x3126a1,'MobileHistoryLoaderService',{'enumerable':!0x0,'get':function(){return _0x21f1d9;}}),_0x3126a1[_0x4154e2(0x21f)]=_0x3a1410,_0x3126a1[_0x4154e2(0x146)]=_0x4fd513,_0x3126a1['UNIVER_HISTORY_CONTAINER_ID']=_0x54dc1e,Object[_0x4154e2(0x1fc)](_0x3126a1,'UniverEditHistoryLoaderMobilePlugin',{'enumerable':!0x0,'get':function(){return _0xa9f51f;}}),Object[_0x4154e2(0x1fc)](_0x3126a1,_0x4154e2(0x133),{'enumerable':!0x0,'get':function(){return _0x1b9d45;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
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.
|
|
50
|
-
"@univerjs-pro/collaboration-client
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.
|
|
52
|
-
"@univerjs-pro/
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs-pro/sheets-chart": "0.
|
|
55
|
-
"@univerjs-pro/sheets-chart
|
|
56
|
-
"@univerjs-pro/sheets-pivot": "0.
|
|
57
|
-
"@univerjs-pro/sheets-shape": "0.
|
|
58
|
-
"@univerjs-pro/sheets-
|
|
59
|
-
"@univerjs-pro/sheets-
|
|
60
|
-
"@univerjs/core": "0.
|
|
61
|
-
"@univerjs/data-validation": "0.
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs/docs": "0.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/drawing-ui": "0.
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/
|
|
49
|
+
"@univerjs-pro/collaboration": "0.19.0",
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.19.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client-ui": "0.19.0",
|
|
52
|
+
"@univerjs-pro/license": "0.19.0",
|
|
53
|
+
"@univerjs-pro/edit-history-viewer": "0.19.0",
|
|
54
|
+
"@univerjs-pro/sheets-chart-ui": "0.19.0",
|
|
55
|
+
"@univerjs-pro/sheets-chart": "0.19.0",
|
|
56
|
+
"@univerjs-pro/sheets-pivot": "0.19.0",
|
|
57
|
+
"@univerjs-pro/sheets-shape-ui": "0.19.0",
|
|
58
|
+
"@univerjs-pro/sheets-shape": "0.19.0",
|
|
59
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.19.0",
|
|
60
|
+
"@univerjs/core": "0.19.0",
|
|
61
|
+
"@univerjs/data-validation": "0.19.0",
|
|
62
|
+
"@univerjs-pro/sheets-sparkline": "0.19.0",
|
|
63
|
+
"@univerjs/docs": "0.19.0",
|
|
64
|
+
"@univerjs/docs-ui": "0.19.0",
|
|
65
|
+
"@univerjs/drawing": "0.19.0",
|
|
66
|
+
"@univerjs/drawing-ui": "0.19.0",
|
|
67
|
+
"@univerjs/design": "0.19.0",
|
|
68
|
+
"@univerjs/engine-render": "0.19.0",
|
|
69
|
+
"@univerjs/engine-formula": "0.19.0",
|
|
70
|
+
"@univerjs/network": "0.19.0",
|
|
70
71
|
"@univerjs/protocol": "0.1.48",
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/sheets": "0.
|
|
74
|
-
"@univerjs/sheets-conditional-formatting-ui": "0.
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-data-validation": "0.
|
|
77
|
-
"@univerjs/sheets-drawing": "0.
|
|
78
|
-
"@univerjs/sheets-
|
|
79
|
-
"@univerjs/sheets-filter": "0.
|
|
80
|
-
"@univerjs/sheets-filter-ui": "0.
|
|
81
|
-
"@univerjs/sheets-formula": "0.
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-
|
|
84
|
-
"@univerjs/sheets-
|
|
85
|
-
"@univerjs/sheets-
|
|
86
|
-
"@univerjs/sheets-
|
|
87
|
-
"@univerjs/sheets-table": "0.
|
|
88
|
-
"@univerjs/ui": "0.
|
|
89
|
-
"@univerjs/sheets-ui": "0.18.0"
|
|
72
|
+
"@univerjs/sheets": "0.19.0",
|
|
73
|
+
"@univerjs/rpc": "0.19.0",
|
|
74
|
+
"@univerjs/sheets-conditional-formatting": "0.19.0",
|
|
75
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.19.0",
|
|
76
|
+
"@univerjs/sheets-data-validation-ui": "0.19.0",
|
|
77
|
+
"@univerjs/sheets-data-validation": "0.19.0",
|
|
78
|
+
"@univerjs/sheets-drawing": "0.19.0",
|
|
79
|
+
"@univerjs/sheets-drawing-ui": "0.19.0",
|
|
80
|
+
"@univerjs/sheets-filter": "0.19.0",
|
|
81
|
+
"@univerjs/sheets-filter-ui": "0.19.0",
|
|
82
|
+
"@univerjs/sheets-formula": "0.19.0",
|
|
83
|
+
"@univerjs/sheets-formula-ui": "0.19.0",
|
|
84
|
+
"@univerjs/sheets-hyper-link": "0.19.0",
|
|
85
|
+
"@univerjs/sheets-numfmt": "0.19.0",
|
|
86
|
+
"@univerjs/sheets-ui": "0.19.0",
|
|
87
|
+
"@univerjs/sheets-hyper-link-ui": "0.19.0",
|
|
88
|
+
"@univerjs/sheets-table": "0.19.0",
|
|
89
|
+
"@univerjs/ui": "0.19.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"rxjs": "7.8.2",
|
|
93
|
-
"typescript": "^
|
|
94
|
-
"vitest": "^4.1.
|
|
95
|
-
"@univerjs-infra/shared": "0.
|
|
93
|
+
"typescript": "^6.0.2",
|
|
94
|
+
"vitest": "^4.1.1",
|
|
95
|
+
"@univerjs-infra/shared": "0.19.0"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"test": "vitest run",
|