@univerjs-pro/edit-history-loader 0.15.0-insiders.20260110-48b77c8 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +38 -38
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xe0b3af=_0x2e35;(function(_0x3c63f0,_0x5776ea){const _0x29b972=_0x2e35,_0x6384ad=_0x3c63f0();while(!![]){try{const _0x293305=parseInt(_0x29b972(0x20e))/0x1+-parseInt(_0x29b972(0x29a))/0x2+-parseInt(_0x29b972(0x284))/0x3*(-parseInt(_0x29b972(0x1f2))/0x4)+parseInt(_0x29b972(0x250))/0x5*(parseInt(_0x29b972(0x287))/0x6)+parseInt(_0x29b972(0x20b))/0x7*(parseInt(_0x29b972(0x2a1))/0x8)+parseInt(_0x29b972(0x2be))/0x9+-parseInt(_0x29b972(0x26a))/0xa;if(_0x293305===_0x5776ea)break;else _0x6384ad['push'](_0x6384ad['shift']());}catch(_0x5a855c){_0x6384ad['push'](_0x6384ad['shift']());}}}(_0x3e10,0x848ed));var A=Object['defineProperty'],F=(_0x1dc1d2,_0x322b62,_0x2aa182)=>_0x322b62 in _0x1dc1d2?A(_0x1dc1d2,_0x322b62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aa182}):_0x1dc1d2[_0x322b62]=_0x2aa182,_=(_0x1dfea9,_0x126001,_0x5d73eb)=>F(_0x1dfea9,typeof _0x126001!='symbol'?_0x126001+'':_0x126001,_0x5d73eb);Object[_0xe0b3af(0x2c0)](exports,Symbol[_0xe0b3af(0x266)],{'value':_0xe0b3af(0x261)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),p=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),O=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),B=require('@univerjs/data-validation'),z=require('@univerjs/docs'),Z=require('@univerjs/docs-ui'),N=require('@univerjs/drawing'),J=require('@univerjs/drawing-ui'),Q=require('@univerjs/engine-formula'),X=require('@univerjs/engine-render'),ee=require('@univerjs/network'),R=require('@univerjs/rpc'),ie=require('@univerjs/sheets-conditional-formatting'),te=require('@univerjs/sheets-conditional-formatting-ui'),re=require('@univerjs/sheets-data-validation'),ne=require('@univerjs/sheets-data-validation-ui'),se=require('@univerjs/sheets-drawing'),oe=require('@univerjs/sheets-drawing-ui'),ae=require('@univerjs/sheets-filter'),ce=require('@univerjs/sheets-filter-ui'),le=require('@univerjs/sheets-formula'),ue=require('@univerjs/sheets-formula-ui'),he=require('@univerjs/sheets-hyper-link'),ge=require('@univerjs/sheets-hyper-link-ui'),ve=require('@univerjs/sheets-numfmt'),k=require('@univerjs/sheets-ui'),b='edit-history-loader.config',T={};function D({ref:_0x5af925,..._0x26b65e}){const _0x163cf2=_0xe0b3af,{icon:_0x1ecd95,id:_0x316174,className:_0x43f6b9,extend:_0x1cd989,..._0x3e4185}=_0x26b65e,_0x3fce73=(_0x163cf2(0x267)+_0x316174+'\x20'+(_0x43f6b9||''))['trim'](),_0x19d052=U[_0x163cf2(0x224)]('_'+Se());return q(_0x1ecd95,''+_0x316174,{'defIds':_0x1ecd95['defIds'],'idSuffix':_0x19d052['current']},{'ref':_0x5af925,'className':_0x3fce73,..._0x3e4185},_0x1cd989);}function q(_0x55fbb3,_0x55a9cd,_0x52b7a3,_0x1c4a95,_0x288678){const _0x26d7f4=_0xe0b3af;return U[_0x26d7f4(0x21f)](_0x55fbb3['tag'],{'key':_0x55a9cd,...de(_0x55fbb3,_0x52b7a3,_0x288678),..._0x1c4a95},(_e(_0x55fbb3,_0x52b7a3)[_0x26d7f4(0x2c3)]||[])[_0x26d7f4(0x2b8)]((_0x5e58f1,_0x357684)=>q(_0x5e58f1,_0x55a9cd+'-'+_0x55fbb3[_0x26d7f4(0x260)]+'-'+_0x357684,_0x52b7a3,void 0x0,_0x288678)));}function de(_0x1be174,_0x2d10fc,_0x1f3efa){const _0x11325d=_0xe0b3af,_0x426b85={..._0x1be174[_0x11325d(0x2ce)]};_0x1f3efa!=null&&_0x1f3efa['colorChannel1']&&_0x426b85['fill']==='colorChannel1'&&(_0x426b85[_0x11325d(0x2ae)]=_0x1f3efa[_0x11325d(0x1f4)]),_0x1be174[_0x11325d(0x260)]==='mask'&&_0x426b85['id']&&(_0x426b85['id']=_0x426b85['id']+_0x2d10fc['idSuffix']),Object[_0x11325d(0x236)](_0x426b85)[_0x11325d(0x1e3)](([_0x435210,_0x104a01])=>{const _0xe52928=_0x11325d;_0x435210===_0xe52928(0x1ea)&&typeof _0x104a01==_0xe52928(0x2b4)&&(_0x426b85[_0x435210]=_0x104a01['replace'](/url\(#(.*)\)/,_0xe52928(0x259)+_0x2d10fc['idSuffix']+')'));});const {defIds:_0xda4efc}=_0x2d10fc;return!_0xda4efc||_0xda4efc[_0x11325d(0x25a)]===0x0||(_0x1be174['tag']==='use'&&_0x426b85[_0x11325d(0x231)]&&(_0x426b85[_0x11325d(0x231)]=_0x426b85[_0x11325d(0x231)]+_0x2d10fc[_0x11325d(0x1e6)]),Object['entries'](_0x426b85)['forEach'](([_0x257ba2,_0x27c783])=>{const _0x199b08=_0x11325d;typeof _0x27c783==_0x199b08(0x2b4)&&(_0x426b85[_0x257ba2]=_0x27c783[_0x199b08(0x2c2)](/url\(#(.*)\)/,'url(#$1'+_0x2d10fc[_0x199b08(0x1e6)]+')'));})),_0x426b85;}function _e(_0x399e41,_0x25cce8){const _0xf4bab9=_0xe0b3af;var _0x57fe65;const {defIds:_0xdbca38}=_0x25cce8;return!_0xdbca38||_0xdbca38['length']===0x0?_0x399e41:_0x399e41[_0xf4bab9(0x260)]===_0xf4bab9(0x21c)&&((_0x57fe65=_0x399e41[_0xf4bab9(0x2c3)])!=null&&_0x57fe65[_0xf4bab9(0x25a)])?{..._0x399e41,'children':_0x399e41['children'][_0xf4bab9(0x2b8)](_0x49e0db=>typeof _0x49e0db[_0xf4bab9(0x2ce)]['id']=='string'&&_0xdbca38&&_0xdbca38[_0xf4bab9(0x246)](_0x49e0db[_0xf4bab9(0x2ce)]['id'])?{..._0x49e0db,'attrs':{..._0x49e0db[_0xf4bab9(0x2ce)],'id':_0x49e0db[_0xf4bab9(0x2ce)]['id']+_0x25cce8[_0xf4bab9(0x1e6)]}}:_0x49e0db)}:_0x399e41;}function Se(){const _0x1896fd=_0xe0b3af;return Math['random']()[_0x1896fd(0x207)](0x24)[_0x1896fd(0x1f3)](0x2,0x8);}D['displayName']=_0xe0b3af(0x27a);const me={'tag':_0xe0b3af(0x2a8),'attrs':{'xmlns':_0xe0b3af(0x248),'fill':_0xe0b3af(0x23f),'viewBox':_0xe0b3af(0x205),'width':_0xe0b3af(0x2ca),'height':_0xe0b3af(0x2ca)},'children':[{'tag':'g','attrs':{'fill':_0xe0b3af(0x202),'clipPath':_0xe0b3af(0x24f)},'children':[{'tag':_0xe0b3af(0x203),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':'path','attrs':{'d':_0xe0b3af(0x2c7)}}]},{'tag':_0xe0b3af(0x21c),'attrs':{},'children':[{'tag':_0xe0b3af(0x2cc),'attrs':{'id':_0xe0b3af(0x249)},'children':[{'tag':_0xe0b3af(0x203),'attrs':{'fill':_0xe0b3af(0x1e2),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['history-icon_clip0_907_281']},$=U[_0xe0b3af(0x286)](function(_0x15a11d,_0x5e7c04){const _0x14517e=_0xe0b3af;return U[_0x14517e(0x21f)](D,Object[_0x14517e(0x293)]({},_0x15a11d,{'id':_0x14517e(0x1f1),'ref':_0x5e7c04,'icon':me}));});$['displayName']=_0xe0b3af(0x1ed);var ye=Object[_0xe0b3af(0x298)],pe=(_0x50cc82,_0x48cef1,_0x55bd75,_0x12ba94)=>{const _0x1a350f=_0xe0b3af;for(var _0x4c6b68=_0x12ba94>0x1?void 0x0:_0x12ba94?ye(_0x48cef1,_0x55bd75):_0x48cef1,_0x17e9d5=_0x50cc82[_0x1a350f(0x25a)]-0x1,_0x4ee2bc;_0x17e9d5>=0x0;_0x17e9d5--)(_0x4ee2bc=_0x50cc82[_0x17e9d5])&&(_0x4c6b68=_0x4ee2bc(_0x4c6b68)||_0x4c6b68);return _0x4c6b68;},g=(_0x2ea8f5,_0xb677b1)=>(_0x594de1,_0x335147)=>_0xb677b1(_0x594de1,_0x335147,_0x2ea8f5);const fe=_0xe0b3af(0x281),H=_0xe0b3af(0x2b5),y='univer-history-container';function _0x2e35(_0xc1280a,_0x3cc2d5){_0xc1280a=_0xc1280a-0x1df;const _0x3e1030=_0x3e10();let _0x2e352d=_0x3e1030[_0xc1280a];return _0x2e352d;}exports['HistoryLoaderService']=class extends o['Disposable']{constructor(_0x4ee217,_0x1ee3c4,_0x1bdbad,_0x4102be,_0x2eec72,_0x417fe7,_0x27daaa,_0x40848e,_0x4c82b7,_0x116cb5){const _0x306f6b=_0xe0b3af;super(),_(this,'_historyUniver$',new O[(_0x306f6b(0x262))](null)),_(this,_0x306f6b(0x292),this[_0x306f6b(0x29c)][_0x306f6b(0x1f7)]()),_(this,'_disposableCollection',new o[(_0x306f6b(0x22e))]()),_(this,_0x306f6b(0x279),new Map()),(this['_localeService']=_0x4ee217,this[_0x306f6b(0x2a7)]=_0x1ee3c4,this['_configService']=_0x1bdbad,this[_0x306f6b(0x21a)]=_0x4102be,this['_messageService']=_0x2eec72,this[_0x306f6b(0x2a3)]=_0x417fe7,this[_0x306f6b(0x26d)]=_0x27daaa,this[_0x306f6b(0x221)]=_0x40848e,this[_0x306f6b(0x25d)]=_0x4c82b7,this[_0x306f6b(0x230)]=_0x116cb5,this[_0x306f6b(0x24a)]());}get[_0xe0b3af(0x243)](){const _0x2e8179=_0xe0b3af;return this[_0x2e8179(0x29c)][_0x2e8179(0x1fe)];}[_0xe0b3af(0x24a)](){const _0x1837c3=_0xe0b3af;this[_0x1837c3(0x2a6)](),this[_0x1837c3(0x2a5)]();}[_0xe0b3af(0x2a6)](){const _0xf55250=_0xe0b3af;var _0x3612c7;const _0x565817=(_0x3612c7=this['_configService'][_0xf55250(0x208)](H))!=null?_0x3612c7:fe,_0x3582c7=document['getElementById'](_0x565817);if(!_0x3582c7)return;const _0x5cc06d=document[_0xf55250(0x21f)](_0xf55250(0x288));_0x5cc06d['id']=y,_0x5cc06d['dataset'][_0xf55250(0x2c5)]=_0xf55250(0x282),_0x5cc06d['style'][_0xf55250(0x1ec)]=_0xf55250(0x1ef),_0x5cc06d['style'][_0xf55250(0x238)]='0',_0x5cc06d[_0xf55250(0x2ac)][_0xf55250(0x223)]='0',_0x5cc06d['style'][_0xf55250(0x29f)]=_0xf55250(0x2cb),_0x5cc06d[_0xf55250(0x2ac)]['height']='100%',_0x5cc06d['style']['zIndex']='1000',_0x5cc06d[_0xf55250(0x2ac)][_0xf55250(0x275)]=_0xf55250(0x23f),_0x3582c7['appendChild'](_0x5cc06d);}['_initPlugins'](){const _0x5102a7=_0xe0b3af;var _0xfe6edb,_0xce154,_0x1fd5da,_0x50b28e;[[X[_0x5102a7(0x1f9)]],[h[_0x5102a7(0x20c)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x5102a7(0x2b3)],null]]}],[ee[_0x5102a7(0x26e)]],[N[_0x5102a7(0x232)],{'override':[[N[_0x5102a7(0x206)],null]]}],[z[_0x5102a7(0x277)],{'hasScroll':!0x1}],[Z['UniverDocsUIPlugin']],[ve[_0x5102a7(0x1f5)]],[d[_0x5102a7(0x28f)],{'notExecuteFormula':!0x0}],[k['UniverSheetsUIPlugin']],[le[_0x5102a7(0x1df)]],[ue['UniverSheetsFormulaUIPlugin']],[C[_0x5102a7(0x2a0)]],[ae[_0x5102a7(0x24d)]],[ce[_0x5102a7(0x24e)]],[ie[_0x5102a7(0x21b)]],[te['UniverSheetsConditionalFormattingUIPlugin']],[he[_0x5102a7(0x247)]],[ge[_0x5102a7(0x29b)]],[B[_0x5102a7(0x2a4)]],[re['UniverSheetsDataValidationPlugin']],[ne[_0x5102a7(0x2bb)]],[Q[_0x5102a7(0x28a)],{'notExecuteFormula':!0x0}],[R[_0x5102a7(0x256)],{'workerURL':(_0xce154=(_0xfe6edb=this[_0x5102a7(0x255)][_0x5102a7(0x208)](R[_0x5102a7(0x1eb)]))==null?void 0x0:_0xfe6edb[_0x5102a7(0x25c)])!=null?_0xce154:_0x5102a7(0x294)}],[J[_0x5102a7(0x274)]],[se[_0x5102a7(0x204)]],[oe[_0x5102a7(0x2b6)]],[K[_0x5102a7(0x299)]],[W[_0x5102a7(0x295)]],[V[_0x5102a7(0x209)]],[G[_0x5102a7(0x234)]],[Y['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[m['UniverEditHistoryViewerPlugin'],{'historyListServerUrl':(_0x1fd5da=this[_0x5102a7(0x255)][_0x5102a7(0x208)](b))==null?void 0x0:_0x1fd5da[_0x5102a7(0x1e9)],'historyPanelComponentKey':(_0x50b28e=this[_0x5102a7(0x255)][_0x5102a7(0x208)](b))==null?void 0x0:_0x50b28e[_0x5102a7(0x1e5)]}]][_0x5102a7(0x1e3)](([_0x46e971,_0x1da274])=>this[_0x5102a7(0x233)](_0x46e971,_0x1da274));}['dispose'](){const _0x39929d=_0xe0b3af;super[_0x39929d(0x26b)](),this[_0x39929d(0x2d0)](),this[_0x39929d(0x279)][_0x39929d(0x214)]();}['registerPlugin'](_0x534574,_0x542bd3,_0x4da492){const _0x3f5c47=_0xe0b3af;if(this[_0x3f5c47(0x279)]['has'](_0x534574[_0x3f5c47(0x22b)])&&!_0x4da492)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x534574[_0x3f5c47(0x22b)]+_0x3f5c47(0x20d));this['_pluginMap'][_0x3f5c47(0x2bc)](_0x534574[_0x3f5c47(0x22b)],[_0x534574,_0x542bd3]);}[_0xe0b3af(0x27f)](){const _0x2516b7=_0xe0b3af;return Array['from'](this[_0x2516b7(0x279)][_0x2516b7(0x212)]());}[_0xe0b3af(0x235)](_0x6c8dc5){const _0xb82c38=_0xe0b3af,_0x44eb98=document[_0xb82c38(0x1ff)](y);_0x44eb98&&(_0x44eb98['style']['display']=_0xb82c38(0x22a),this[_0xb82c38(0x254)](_0x6c8dc5,y));}[_0xe0b3af(0x2d0)](){const _0x18bc92=_0xe0b3af;var _0x3e7a74;this[_0x18bc92(0x26f)]['dispose'](),(_0x3e7a74=this[_0x18bc92(0x243)])==null||_0x3e7a74[_0x18bc92(0x26b)](),this[_0x18bc92(0x29c)][_0x18bc92(0x24c)](null);const _0xa301d5=document['getElementById'](y);_0xa301d5&&(_0xa301d5['style'][_0x18bc92(0x275)]='none');}[_0xe0b3af(0x254)](_0xd02fdf,_0x34182f){const _0x109783=_0xe0b3af;if(this[_0x109783(0x243)])return;const _0x2012fa=new o[(_0x109783(0x218))]({'locales':{[this[_0x109783(0x297)][_0x109783(0x283)]()]:this[_0x109783(0x297)]['getLocales']()},'override':[[o[_0x109783(0x2bd)],{'useClass':p[_0x109783(0x2c8)]}]]}),_0x3f08e5=_0x2012fa['__getInjector']();this['disposeWithMe'](this['_themeService'][_0x109783(0x2b0)][_0x109783(0x2c9)](_0x1386a2=>{const _0x5f41b4=_0x109783;_0x3f08e5[_0x5f41b4(0x285)](o['ThemeService'])[_0x5f41b4(0x201)](_0x1386a2);})),this[_0x109783(0x239)](this[_0x109783(0x230)]['currentTheme$'][_0x109783(0x2c9)](_0x32321e=>{const _0x350768=_0x109783;_0x3f08e5['get'](o[_0x350768(0x272)])[_0x350768(0x251)](_0x32321e);})),_0x3f08e5[_0x109783(0x285)](o[_0x109783(0x1e8)])['setLocale'](this['_localeService'][_0x109783(0x283)]()),_0x3f08e5[_0x109783(0x285)](o[_0x109783(0x2cd)])['setConfig'](p[_0x109783(0x20a)],this[_0x109783(0x255)]['getConfig'](p[_0x109783(0x20a)]));const _0x12be76=this['_configService'][_0x109783(0x208)](L[_0x109783(0x2b2)]);_0x12be76&&_0x2012fa['registerPlugin'](L[_0x109783(0x23b)],{'license':_0x12be76['ls']}),this[_0x109783(0x279)][_0x109783(0x1e3)](([_0x5c50fd,_0x17f7a1])=>{_0x2012fa['registerPlugin'](_0x5c50fd,_0x17f7a1);}),_0x3f08e5[_0x109783(0x1fa)](_0x5f02f9=>{const _0x301dac=_0x109783;this[_0x301dac(0x280)](_0x5f02f9,_0xd02fdf);}),this[_0x109783(0x29c)][_0x109783(0x24c)](_0x2012fa);const _0x3a77d5=_0x3f08e5[_0x109783(0x285)](m[_0x109783(0x210)]),_0x3b4e30=this[_0x109783(0x257)](_0xd02fdf);_0x3a77d5['triggerLoadVersions'](_0xd02fdf,_0x34182f,_0x3b4e30);}[_0xe0b3af(0x280)](_0xcb1280,_0x1c2b63){const _0x328fa3=_0xe0b3af,_0x3f2387=_0xcb1280['get'](m[_0x328fa3(0x210)]);this[_0x328fa3(0x26f)]['add'](_0x3f2387['status$'][_0x328fa3(0x2c9)](_0x20c626=>{const _0x58b5e8=_0x328fa3;switch(_0x20c626){case m['HistoryModeStatus'][_0x58b5e8(0x27b)]:this[_0x58b5e8(0x221)][_0x58b5e8(0x268)](),this[_0x58b5e8(0x25d)][_0x58b5e8(0x2cf)]();break;case m[_0x58b5e8(0x226)][_0x58b5e8(0x229)]:this['_commandService'][_0x58b5e8(0x2ab)](j['id']),this[_0x58b5e8(0x2d0)]();break;case m[_0x58b5e8(0x226)]['Error']:this[_0x58b5e8(0x2d0)](),this[_0x58b5e8(0x23a)][_0x58b5e8(0x1e4)]({'content':this['_localeService']['t'](_0x58b5e8(0x29e)),'type':P[_0x58b5e8(0x2ba)][_0x58b5e8(0x28e)],'duration':0xbb8});break;}})),this[_0x328fa3(0x26f)][_0x328fa3(0x1ee)](_0x3f2387[_0x328fa3(0x1e0)][_0x328fa3(0x2c9)](async _0x293ccf=>{const _0x3e7526=_0x328fa3;_0x293ccf&&this[_0x3e7526(0x21a)][_0x3e7526(0x2ab)](C[_0x3e7526(0x211)]['id'],{'unitId':_0x1c2b63,'revision':_0x293ccf});}));}['_checkCanRevert'](_0xccaa94){const _0x3d24ef=_0xe0b3af,_0x3ac573=this[_0x3d24ef(0x2a7)][_0x3d24ef(0x2b7)](_0xccaa94)[_0x3d24ef(0x1e7)]()[_0x3d24ef(0x2b8)](_0x4b30f9=>_0x4b30f9[_0x3d24ef(0x225)]()),_0x12d620=new d[(_0x3d24ef(0x2a9))](_0xccaa94)['id'],_0xfd8235=_0x3ac573[_0x3d24ef(0x2b8)](_0x292ea5=>new d[(_0x3d24ef(0x25e))](_0xccaa94,_0x292ea5)['id']),_0x22d944=_0x3ac573[_0x3d24ef(0x2b8)](_0x2427b4=>this['_selectionProtectionRuleModel'][_0x3d24ef(0x258)](_0xccaa94,_0x2427b4)[_0x3d24ef(0x2b8)](_0x2b0059=>new d['RangeProtectionPermissionEditPoint'](_0xccaa94,_0x2427b4,_0x2b0059[_0x3d24ef(0x1fb)])['id']))[_0x3d24ef(0x2c6)](),_0x4ea02b=new d[(_0x3d24ef(0x240))](_0xccaa94)['id'];return this[_0x3d24ef(0x2a3)][_0x3d24ef(0x28c)]([_0x12d620,..._0xfd8235,..._0x22d944,_0x4ea02b])['every'](_0x258d4a=>!!_0x258d4a['value']);}},exports[_0xe0b3af(0x2aa)]=pe([g(0x0,o[_0xe0b3af(0x270)](o[_0xe0b3af(0x1e8)])),g(0x1,o['IUniverInstanceService']),g(0x2,o['IConfigService']),g(0x3,o[_0xe0b3af(0x253)]),g(0x4,h[_0xe0b3af(0x217)]),g(0x5,o[_0xe0b3af(0x21d)]),g(0x6,o['Inject'](d[_0xe0b3af(0x244)])),g(0x7,o[_0xe0b3af(0x270)](h[_0xe0b3af(0x2b3)])),g(0x8,o[_0xe0b3af(0x270)](h[_0xe0b3af(0x242)])),g(0x9,o['Inject'](o[_0xe0b3af(0x272)]))],exports[_0xe0b3af(0x2aa)]);const M={'id':_0xe0b3af(0x1f8),'type':o[_0xe0b3af(0x2a2)][_0xe0b3af(0x2b1)],'handler':_0x511098=>{const _0x1377ff=_0xe0b3af,_0x40baa3=_0x511098[_0x1377ff(0x285)](exports[_0x1377ff(0x2aa)]),_0x284de9=_0x511098[_0x1377ff(0x285)](o[_0x1377ff(0x23e)]),{unitId:_0x10bc92}=d[_0x1377ff(0x220)](_0x284de9)||{};return _0x10bc92?(_0x40baa3[_0x1377ff(0x235)](_0x10bc92),!0x0):!0x1;}},j={'id':_0xe0b3af(0x2af),'type':o[_0xe0b3af(0x2a2)][_0xe0b3af(0x2b1)],'handler':()=>!0x0};function Ce(_0x4bb591){const _0x3d3253=_0xe0b3af;return{'id':M['id'],'type':h[_0x3d3253(0x1f0)]['BUTTON'],'icon':_0x3d3253(0x1ed),'tooltip':_0x3d3253(0x276),'hidden$':h[_0x3d3253(0x263)](_0x4bb591,o['UniverInstanceType']['UNIVER_SHEET']),'disabled$':k[_0x3d3253(0x216)](_0x4bb591,{'workbookTypes':[d[_0x3d3253(0x2a9)],d[_0x3d3253(0x23c)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3e10(){const _0x6f7d48=['_selectionProtectionRuleModel','UniverNetworkPlugin','_disposableCollection','Inject','editHistory.panel.revertFailed','ThemeService','toDisposable','UniverDrawingUIPlugin','display','editHistory.panel.title','UniverDocsPlugin','location','_pluginMap','UniverIcon','Entered','onSteady','_revertErrorTimer','combineLatest','getAllPlugins','_initListener','univer-container','history-container','getCurrentLocale','3BxKJqM','get','forwardRef','5523996rFWqeu','div','_collaborationController','UniverFormulaEnginePlugin','CollaborationController','composePermission','CollaborationEvent','Error','UniverSheetsPlugin','data','UNIVER_UNKNOWN','historyUniver$','assign','./worker.js','UniverSheetSparklineUIPlugin','register','_localeService','getOwnPropertyDescriptor','UniverSheetSparklinePlugin','556916vIUwMo','UniverSheetsHyperLinkUIPlugin','_historyUniver$','merge','editHistory.panel.listFetchError','width','UniverCollaborationPlugin','7416WEiufQ','CommandType','_permissionService','UniverDataValidationPlugin','_initPlugins','_initContainer','_univerInstanceService','svg','WorkbookEditablePermission','HistoryLoaderService','executeCommand','style','_historyManagerService','fill','univer.operation.exit-edit-history','darkMode$','OPERATION','LS_CONFIG_KEY','IDialogService','string','UNIVER_CONTAINER_ID','UniverSheetsDrawingUIPlugin','getUnit','map','unsubscribe','MessageType','UniverSheetsDataValidationUIPlugin','set','IAuthzIoService','7751646CIAhFp','exhaustSavingTask','defineProperty','_injector','replace','children','CollaborationStatus','uComp','flat','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','AuthzIoHttpService','subscribe','1em','100%','clipPath','IConfigService','attrs','close','unMountHistoryContent','UniverSheetsFormulaPlugin','revertRevision$','UniverInstanceType','white','forEach','show','historyPanelComponentKey','idSuffix','getSheets','LocaleService','historyListServerUrl','mask','PLUGIN_CONFIG_KEY_MAIN_THREAD','position','HistoryIcon','add','absolute','MenuItemType','history-icon','1953356UJHwYj','substring','colorChannel1','UniverSheetsNumfmtPlugin','UniverEditHistoryLoaderPlugin','asObservable','univer.operation.toggle-edit-history','UniverRenderEnginePlugin','invoke','permissionId','Loading','getCollabEntity','value','getElementById','state$','setDarkMode','currentColor','path','UniverSheetsDrawingPlugin','0\x200\x2016\x2016','IImageIoService','toString','getConfig','UniverSheetsChartPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','1071pbptuZ','UniverUIPlugin','\x20has\x20been\x20registered.','498788GfrhCz','OTHERS','HistoryManagerService','RevertRevisionMutation','values','Injector','clear','event$','getCurrentRangeDisable$','IMessageService','Univer','eventID','_commandService','UniverSheetsConditionalFormattingPlugin','defs','IPermissionService','Plugin','createElement','getSheetCommandTarget','_dialogService','params','left','useRef','getSheetId','HistoryModeStatus','mergeMenu','_menuManagerService','Exited','block','pluginName','CHANGESET_ACK','session','DisposableCollection','reload','_themeService','xlink:href','UniverDrawingPlugin','registerPlugin','UniverSheetsChartUIPlugin','mountHistoryContent','entries','registerCommand','top','disposeWithMe','_messageService','UniverLicensePlugin','WorkbookViewHistoryPermission','setConfig','IUniverInstanceService','none','WorkbookRecoverHistoryPermission','IMenuManagerService','ISidebarService','historyUniver','RangeProtectionRuleModel','RibbonStartGroup','includes','UniverSheetsHyperLinkPlugin','http://www.w3.org/2000/svg','history-icon_clip0_907_281','_init','_componentManager','next','UniverSheetsFilterPlugin','UniverSheetsFilterUIPlugin','url(#history-icon_clip0_907_281)','5hJZVGY','setTheme','SYNCED','ICommandService','_initUniver','_configService','UniverRPCMainThreadPlugin','_checkCanRevert','getSubunitRuleList','url(#$1','length','_localCacheService','workerURL','_sidebarService','WorksheetEditPermission','onCommandExecuted','tag','Module','BehaviorSubject','getMenuHiddenObservable','editHistory.panel.reverting','RxDisposable','toStringTag','univerjs-icon\x20univerjs-icon-','closeAll','_config','20895030ypKmVj','dispose','univerContainerId'];_0x3e10=function(){return _0x6f7d48;};return _0x3e10();}const Ie={[h[_0xe0b3af(0x245)][_0xe0b3af(0x20f)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Ce}}};var Ue=Object[_0xe0b3af(0x298)],Ee=(_0x94722e,_0x4182df,_0x4944cd,_0x30204c)=>{const _0x14bd5b=_0xe0b3af;for(var _0x13ce86=_0x30204c>0x1?void 0x0:_0x30204c?Ue(_0x4182df,_0x4944cd):_0x4182df,_0x1024ee=_0x94722e[_0x14bd5b(0x25a)]-0x1,_0x12c06b;_0x1024ee>=0x0;_0x1024ee--)(_0x12c06b=_0x94722e[_0x1024ee])&&(_0x13ce86=_0x12c06b(_0x13ce86)||_0x13ce86);return _0x13ce86;},S=(_0xc04fc3,_0x27b0fb)=>(_0x10966a,_0x5b5961)=>_0x27b0fb(_0x10966a,_0x5b5961,_0xc04fc3);let E=class extends o[_0xe0b3af(0x265)]{constructor(_0x480142,_0x463319,_0xccf003,_0x178258,_0x3c010e,_0x2eeebf,_0x579148,_0x440a03){const _0x58d7d9=_0xe0b3af;super(),_(this,'_revertErrorTimer',null),(this[_0x58d7d9(0x21a)]=_0x480142,this[_0x58d7d9(0x228)]=_0x463319,this[_0x58d7d9(0x24b)]=_0xccf003,this[_0x58d7d9(0x2ad)]=_0x178258,this['_localeService']=_0x3c010e,this[_0x58d7d9(0x23a)]=_0x2eeebf,this[_0x58d7d9(0x289)]=_0x579148,this[_0x58d7d9(0x25b)]=_0x440a03,this[_0x58d7d9(0x24a)]());}['_init'](){const _0x4bc972=_0xe0b3af;[M,j][_0x4bc972(0x1e3)](_0x1083aa=>this[_0x4bc972(0x239)](o[_0x4bc972(0x273)](this[_0x4bc972(0x21a)][_0x4bc972(0x237)](_0x1083aa)))),this['disposeWithMe'](this[_0x4bc972(0x24b)][_0x4bc972(0x296)](_0x4bc972(0x1ed),$)),this[_0x4bc972(0x228)][_0x4bc972(0x227)](Ie),this['disposeWithMe'](this[_0x4bc972(0x21a)][_0x4bc972(0x25f)](_0x57007d=>{const _0x3040d4=_0x4bc972;if(_0x57007d['id']===C[_0x3040d4(0x211)]['id']){this[_0x3040d4(0x23a)][_0x3040d4(0x1e4)]({'content':this[_0x3040d4(0x297)]['t'](_0x3040d4(0x264)),'type':P[_0x3040d4(0x2ba)][_0x3040d4(0x1fc)],'duration':0x1388});const {unitId:_0x5159ae}=_0x57007d[_0x3040d4(0x222)],_0x4bad8f=this[_0x3040d4(0x289)][_0x3040d4(0x1fd)](_0x5159ae),_0x236d8d=O[_0x3040d4(0x27e)]([_0x4bad8f[_0x3040d4(0x22d)][_0x3040d4(0x215)],_0x4bad8f[_0x3040d4(0x200)]])['subscribe'](async([_0x33007a,_0x23f92d])=>{const _0x4e76a8=_0x3040d4;var _0xcb43b2;_0x33007a[_0x4e76a8(0x219)]===C[_0x4e76a8(0x28d)][_0x4e76a8(0x22c)]&&(_0x23f92d==null?void 0x0:_0x23f92d['status'])===p[_0x4e76a8(0x2c4)][_0x4e76a8(0x252)]&&_0x33007a[_0x4e76a8(0x290)]['mutations']['some'](_0x464fc9=>_0x464fc9['id']===C[_0x4e76a8(0x211)]['id'])&&(this[_0x4e76a8(0x2ad)][_0x4e76a8(0x2d0)](),_0x236d8d[_0x4e76a8(0x2b9)](),this['_revertErrorTimer']&&clearTimeout(this[_0x4e76a8(0x27d)]),await((_0xcb43b2=this[_0x4e76a8(0x25b)])==null?void 0x0:_0xcb43b2[_0x4e76a8(0x2bf)]()),setTimeout(()=>window[_0x4e76a8(0x278)][_0x4e76a8(0x22f)]()));});this[_0x3040d4(0x27d)]=setTimeout(()=>{const _0x192bca=_0x3040d4;_0x236d8d['unsubscribe'](),this['_messageService'][_0x192bca(0x1e4)]({'content':this['_localeService']['t'](_0x192bca(0x271)),'type':P[_0x192bca(0x2ba)][_0x192bca(0x28e)],'duration':0xbb8});},0x1388);}}));}};E=Ee([S(0x0,o[_0xe0b3af(0x253)]),S(0x1,h[_0xe0b3af(0x241)]),S(0x2,o[_0xe0b3af(0x270)](h['ComponentManager'])),S(0x3,o[_0xe0b3af(0x270)](exports[_0xe0b3af(0x2aa)])),S(0x4,o['Inject'](o[_0xe0b3af(0x1e8)])),S(0x5,h[_0xe0b3af(0x217)]),S(0x6,o[_0xe0b3af(0x270)](p[_0xe0b3af(0x28b)])),S(0x7,p['ILocalCacheService'])],E);var Pe=Object['getOwnPropertyDescriptor'],be=(_0x3a3218,_0x24cea7,_0x72c269,_0x46c9eb)=>{const _0x49bf36=_0xe0b3af;for(var _0x11a771=_0x46c9eb>0x1?void 0x0:_0x46c9eb?Pe(_0x24cea7,_0x72c269):_0x24cea7,_0x347499=_0x3a3218[_0x49bf36(0x25a)]-0x1,_0x1cdb04;_0x347499>=0x0;_0x347499--)(_0x1cdb04=_0x3a3218[_0x347499])&&(_0x11a771=_0x1cdb04(_0x11a771)||_0x11a771);return _0x11a771;},w=(_0x3af561,_0x253c9a)=>(_0x426af4,_0x40bcca)=>_0x253c9a(_0x426af4,_0x40bcca,_0x3af561);const He='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var I;exports[_0xe0b3af(0x1f6)]=(I=class extends o[_0xe0b3af(0x21e)]{constructor(_0x53de8b=T,_0x39b893,_0x14ec1c){const _0x396a1a=_0xe0b3af;super(),this[_0x396a1a(0x269)]=_0x53de8b,this[_0x396a1a(0x2c1)]=_0x39b893,this[_0x396a1a(0x255)]=_0x14ec1c;const {menu:_0x1bb5fb,..._0x15846e}=o[_0x396a1a(0x29d)]({},T,this[_0x396a1a(0x269)]);_0x1bb5fb&&this[_0x396a1a(0x255)][_0x396a1a(0x23d)]('menu',_0x1bb5fb,{'merge':!0x0}),this['_configService'][_0x396a1a(0x23d)](b,_0x15846e),this[_0x396a1a(0x269)][_0x396a1a(0x26c)]&&this[_0x396a1a(0x255)][_0x396a1a(0x23d)](H,this[_0x396a1a(0x269)]['univerContainerId']);}['onStarting'](){const _0x119ac2=_0xe0b3af;[[exports['HistoryLoaderService']],[E]][_0x119ac2(0x1e3)](_0x7dd8d8=>this[_0x119ac2(0x2c1)][_0x119ac2(0x1ee)](_0x7dd8d8));}[_0xe0b3af(0x27c)](){const _0x3719b7=_0xe0b3af;this[_0x3719b7(0x2c1)][_0x3719b7(0x285)](E);}},_(I,'type',o[_0xe0b3af(0x1e1)][_0xe0b3af(0x291)]),_(I,_0xe0b3af(0x22b),He),I),exports[_0xe0b3af(0x1f6)]=be([w(0x1,o['Inject'](o[_0xe0b3af(0x213)])),w(0x2,o[_0xe0b3af(0x2cd)])],exports[_0xe0b3af(0x1f6)]),exports['UNIVER_CONTAINER_ID_KEY']=H,exports['UNIVER_HISTORY_CONTAINER_ID']=y;
|
|
1
|
+
'use strict';const _0x4d7814=_0x1d00;(function(_0x13af7a,_0x234e49){const _0x5ad344=_0x1d00,_0x5754bb=_0x13af7a();while(!![]){try{const _0x3af134=parseInt(_0x5ad344(0x13f))/0x1+-parseInt(_0x5ad344(0xaa))/0x2+parseInt(_0x5ad344(0x12b))/0x3*(-parseInt(_0x5ad344(0xad))/0x4)+parseInt(_0x5ad344(0xf4))/0x5+parseInt(_0x5ad344(0x81))/0x6+parseInt(_0x5ad344(0x78))/0x7+parseInt(_0x5ad344(0xb8))/0x8*(-parseInt(_0x5ad344(0x15c))/0x9);if(_0x3af134===_0x234e49)break;else _0x5754bb['push'](_0x5754bb['shift']());}catch(_0x23fe0c){_0x5754bb['push'](_0x5754bb['shift']());}}}(_0x49a2,0x8d14a));var A=Object[_0x4d7814(0xc0)],F=(_0x522f13,_0x226f00,_0x172f5b)=>_0x226f00 in _0x522f13?A(_0x522f13,_0x226f00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x172f5b}):_0x522f13[_0x226f00]=_0x172f5b,_=(_0x2f88e4,_0x507f78,_0x48234c)=>F(_0x2f88e4,typeof _0x507f78!=_0x4d7814(0x132)?_0x507f78+'':_0x507f78,_0x48234c);Object[_0x4d7814(0xc0)](exports,Symbol[_0x4d7814(0xb0)],{'value':_0x4d7814(0xab)});const o=require('@univerjs/core'),C=require('@univerjs-pro/collaboration'),p=require('@univerjs-pro/collaboration-client'),P=require('@univerjs/design'),U=require('react'),h=require('@univerjs/ui'),O=require('rxjs'),d=require('@univerjs/sheets'),m=require('@univerjs-pro/edit-history-viewer'),L=require('@univerjs-pro/license'),V=require('@univerjs-pro/sheets-chart'),G=require('@univerjs-pro/sheets-chart-ui'),Y=require('@univerjs-pro/sheets-pivot'),K=require('@univerjs-pro/sheets-sparkline'),W=require('@univerjs-pro/sheets-sparkline-ui'),B=require('@univerjs/data-validation'),z=require('@univerjs/docs'),Z=require('@univerjs/docs-ui'),N=require('@univerjs/drawing'),J=require('@univerjs/drawing-ui'),Q=require('@univerjs/engine-formula'),X=require('@univerjs/engine-render'),ee=require('@univerjs/network'),R=require('@univerjs/rpc'),ie=require('@univerjs/sheets-conditional-formatting'),te=require('@univerjs/sheets-conditional-formatting-ui'),re=require('@univerjs/sheets-data-validation'),ne=require('@univerjs/sheets-data-validation-ui'),se=require('@univerjs/sheets-drawing'),oe=require('@univerjs/sheets-drawing-ui'),ae=require('@univerjs/sheets-filter'),ce=require('@univerjs/sheets-filter-ui'),le=require('@univerjs/sheets-formula'),ue=require('@univerjs/sheets-formula-ui'),he=require('@univerjs/sheets-hyper-link'),ge=require('@univerjs/sheets-hyper-link-ui'),ve=require('@univerjs/sheets-numfmt'),k=require('@univerjs/sheets-ui'),b=_0x4d7814(0xd0),T={};function D({ref:_0x3d8a10,..._0x1bf58d}){const _0x227b01=_0x4d7814,{icon:_0x107556,id:_0x14ca93,className:_0xbce1da,extend:_0x1f8d77,..._0x479346}=_0x1bf58d,_0x3cf8eb=(_0x227b01(0x158)+_0x14ca93+'\x20'+(_0xbce1da||''))['trim'](),_0x286df9=U[_0x227b01(0x12d)]('_'+Se());return q(_0x107556,''+_0x14ca93,{'defIds':_0x107556[_0x227b01(0x72)],'idSuffix':_0x286df9[_0x227b01(0x6c)]},{'ref':_0x3d8a10,'className':_0x3cf8eb,..._0x479346},_0x1f8d77);}function q(_0x1f88fd,_0x5cdbc2,_0x1a58c1,_0x328a73,_0xfad674){const _0x27d708=_0x4d7814;return U['createElement'](_0x1f88fd[_0x27d708(0x130)],{'key':_0x5cdbc2,...de(_0x1f88fd,_0x1a58c1,_0xfad674),..._0x328a73},(_e(_0x1f88fd,_0x1a58c1)['children']||[])[_0x27d708(0x118)]((_0x36c601,_0x100cc0)=>q(_0x36c601,_0x5cdbc2+'-'+_0x1f88fd['tag']+'-'+_0x100cc0,_0x1a58c1,void 0x0,_0xfad674)));}function de(_0x56e386,_0x10362a,_0x3d489c){const _0x53baf5=_0x4d7814,_0x4f1541={..._0x56e386[_0x53baf5(0x101)]};_0x3d489c!=null&&_0x3d489c['colorChannel1']&&_0x4f1541[_0x53baf5(0xcb)]===_0x53baf5(0x99)&&(_0x4f1541[_0x53baf5(0xcb)]=_0x3d489c[_0x53baf5(0x99)]),_0x56e386[_0x53baf5(0x130)]===_0x53baf5(0xbc)&&_0x4f1541['id']&&(_0x4f1541['id']=_0x4f1541['id']+_0x10362a[_0x53baf5(0xeb)]),Object['entries'](_0x4f1541)[_0x53baf5(0xe1)](([_0x32ab5e,_0x112f3b])=>{const _0x4941a0=_0x53baf5;_0x32ab5e==='mask'&&typeof _0x112f3b==_0x4941a0(0x9d)&&(_0x4f1541[_0x32ab5e]=_0x112f3b[_0x4941a0(0x68)](/url\(#(.*)\)/,_0x4941a0(0x14b)+_0x10362a[_0x4941a0(0xeb)]+')'));});const {defIds:_0x15cf77}=_0x10362a;return!_0x15cf77||_0x15cf77[_0x53baf5(0xe5)]===0x0||(_0x56e386['tag']===_0x53baf5(0x6d)&&_0x4f1541['xlink:href']&&(_0x4f1541[_0x53baf5(0x124)]=_0x4f1541[_0x53baf5(0x124)]+_0x10362a[_0x53baf5(0xeb)]),Object['entries'](_0x4f1541)[_0x53baf5(0xe1)](([_0x3b47e9,_0x415786])=>{const _0x42e00b=_0x53baf5;typeof _0x415786==_0x42e00b(0x9d)&&(_0x4f1541[_0x3b47e9]=_0x415786['replace'](/url\(#(.*)\)/,_0x42e00b(0x14b)+_0x10362a[_0x42e00b(0xeb)]+')'));})),_0x4f1541;}function _0x1d00(_0x28ccbe,_0x41053b){_0x28ccbe=_0x28ccbe-0x68;const _0x49a282=_0x49a2();let _0x1d00e8=_0x49a282[_0x28ccbe];return _0x1d00e8;}function _e(_0x3f0f0b,_0x327f40){const _0x3cb1b0=_0x4d7814;var _0x586639;const {defIds:_0x5b0bfb}=_0x327f40;return!_0x5b0bfb||_0x5b0bfb[_0x3cb1b0(0xe5)]===0x0?_0x3f0f0b:_0x3f0f0b[_0x3cb1b0(0x130)]==='defs'&&((_0x586639=_0x3f0f0b['children'])!=null&&_0x586639['length'])?{..._0x3f0f0b,'children':_0x3f0f0b[_0x3cb1b0(0xc7)][_0x3cb1b0(0x118)](_0x36494d=>typeof _0x36494d[_0x3cb1b0(0x101)]['id']=='string'&&_0x5b0bfb&&_0x5b0bfb[_0x3cb1b0(0x79)](_0x36494d[_0x3cb1b0(0x101)]['id'])?{..._0x36494d,'attrs':{..._0x36494d[_0x3cb1b0(0x101)],'id':_0x36494d[_0x3cb1b0(0x101)]['id']+_0x327f40['idSuffix']}}:_0x36494d)}:_0x3f0f0b;}function Se(){const _0x5617a3=_0x4d7814;return Math[_0x5617a3(0x11a)]()[_0x5617a3(0xae)](0x24)[_0x5617a3(0x155)](0x2,0x8);}function _0x49a2(){const _0x5b76f6=['UniverUIPlugin','mask','setTheme','DisposableCollection','onCommandExecuted','defineProperty','UniverSheetsConditionalFormattingUIPlugin','registerPlugin','[HistoryLoaderService]:\x20Plugin\x20','display','editHistory.panel.title','defs','children','IMenuManagerService','UniverDrawingUIPlugin','getOwnPropertyDescriptor','fill','getCollabEntity','UniverSheetsPivotTablePlugin','_menuManagerService','UNIVER_CONTAINER_ID','edit-history-loader.config','UniverSheetSparklinePlugin','_historyManagerService','displayName','_componentManager','pluginName','WorkbookEditablePermission','invoke','UniverDocsUIPlugin','BUTTON','createElement','_univerInstanceService','UniverSheetsUIPlugin','ISidebarService','BehaviorSubject','executeCommand','_initListener','forEach','IAuthzIoService','HistoryIcon','url(#history-icon_clip0_907_281)','length','status$','IConfigService','HistoryModeStatus','getSheets','event$','idSuffix','getCurrentLocale','getMenuHiddenObservable','combineLatest','assign','IImageIoService','next','_commandService','univerContainerId','4591135aoPUfh','UniverSheetsConditionalFormattingPlugin','1000','UniverRPCMainThreadPlugin','Disposable','subscribe','_localeService','setConfig','_pluginMap','_revertErrorTimer','svg','UniverEditHistoryViewerPlugin','AuthzIoHttpService','attrs','location','add','UniverDocsPlugin','clear','top','UniverSheetsFormulaUIPlugin','path','position','WorkbookRecoverHistoryPermission','getConfig','getSheetCommandTarget','univer-container','editHistory.panel.reverting','UniverSheetsDataValidationUIPlugin','UniverSheetsHyperLinkPlugin','div','UniverInstanceType','getElementById','appendChild','setLocale','CollaborationController','state$','map','Entered','random','LocaleService','mergeMenu','show','Plugin','MenuItemType','_permissionService','\x20has\x20been\x20registered.','CollaborationStatus','disposeWithMe','xlink:href','has','none','M0\x200H16V16H0z','http://www.w3.org/2000/svg','univer.operation.toggle-edit-history','history-icon_clip0_907_281','13629fbBwJq','clipPath','useRef','OTHERS','history-container','tag','_selectionProtectionRuleModel','symbol','WorkbookViewHistoryPermission','close','editHistory.panel.listFetchError','menu','getUnit','_collaborationController','UNIVER_HISTORY_CONTAINER_ID','Injector','UniverCollaborationPlugin','some','HistoryManagerService','_configService','1124382REaKjv','onStarting','height','historyPanelComponentKey','IUniverInstanceService','getSheetId','LS_CONFIG_KEY','UniverDataValidationPlugin','SYNCED','setDarkMode','unMountHistoryContent','session','url(#$1','historyUniver$','UniverSheetSparklineUIPlugin','currentTheme$','UniverNetworkPlugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','UniverEditHistoryLoaderPlugin','__getInjector','getCurrentRangeDisable$','substring','merge','_injector','univerjs-icon\x20univerjs-icon-','dataset','_initPlugins','eventID','14842899heAWlJ','getAllPlugins','get','_initUniver','_checkCanRevert','UniverDrawingPlugin','replace','_historyUniver$','permissionId','mutations','current','use','IDialogService','reload','register','HistoryLoaderService','defIds','Error','./worker.js','UniverSheetsDrawingPlugin','dispose','status','1290443crZDRt','includes','UniverSheetsDrawingUIPlugin','type','RibbonStartGroup','zIndex','UniverSheetsHyperLinkUIPlugin','from','unsubscribe','2007006NkaniG','white','UNIVER_SHEET','UniverIcon','_messageService','UniverSheetsFilterPlugin','_dialogService','exhaustSavingTask','CollaborationEvent','IPermissionService','style','value','1em','historyUniver','left','width','params','triggerLoadVersions','_localCacheService','history-icon','onSteady','RevertRevisionMutation','UniverSheetsChartUIPlugin','values','colorChannel1','workerURL','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','asObservable','string','MessageType','_config','historyListServerUrl','closeAll','UniverFormulaEnginePlugin','ICommandService','registerCommand','UniverSheetsFormulaPlugin','_init','_sidebarService','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','editHistory.panel.revertFailed','641506IQcGJQ','Module','_disposableCollection','12LiPbTm','toString','ThemeService','toStringTag','CommandType','100%','toDisposable','univer-history-container','UniverSheetsNumfmtPlugin','PLUGIN_CONFIG_KEY_MAIN_THREAD','mountHistoryContent','8qJDCxB','IMessageService','currentColor'];_0x49a2=function(){return _0x5b76f6;};return _0x49a2();}D['displayName']=_0x4d7814(0x84);const me={'tag':_0x4d7814(0xfe),'attrs':{'xmlns':_0x4d7814(0x128),'fill':_0x4d7814(0x126),'viewBox':'0\x200\x2016\x2016','width':_0x4d7814(0x8d),'height':_0x4d7814(0x8d)},'children':[{'tag':'g','attrs':{'fill':_0x4d7814(0xba),'clipPath':_0x4d7814(0xe4)},'children':[{'tag':_0x4d7814(0x108),'attrs':{'d':'M4.45388\x204.14989H3.52896C4.61144\x202.8939\x206.21319\x202.0999\x207.9999\x202.0999C11.2584\x202.0999\x2013.8999\x204.74142\x2013.8999\x207.9999C13.8999\x2011.2584\x2011.2584\x2013.8999\x207.9999\x2013.8999C4.74142\x2013.8999\x202.0999\x2011.2584\x202.0999\x207.9999C2.0999\x207.66853\x201.83127\x207.3999\x201.4999\x207.3999C1.16853\x207.3999\x200.899902\x207.66853\x200.899902\x207.9999C0.899902\x2011.9211\x204.07868\x2015.0999\x207.9999\x2015.0999C11.9211\x2015.0999\x2015.0999\x2011.9211\x2015.0999\x207.9999C15.0999\x204.07868\x2011.9211\x200.899902\x207.9999\x200.899902C5.88709\x200.899902\x203.9903\x201.82298\x202.69023\x203.28636V2.38625C2.69023\x202.05488\x202.42161\x201.78625\x202.09023\x201.78625C1.75886\x201.78625\x201.49023\x202.05488\x201.49023\x202.38625V4.74989C1.49023\x205.08126\x201.75886\x205.34989\x202.09023\x205.34989H4.45388C4.78525\x205.34989\x205.05388\x205.08126\x205.05388\x204.74989C5.05388\x204.41851\x204.78525\x204.14989\x204.45388\x204.14989Z'}},{'tag':_0x4d7814(0x108),'attrs':{'d':_0x4d7814(0xa8)}}]},{'tag':_0x4d7814(0xc6),'attrs':{},'children':[{'tag':_0x4d7814(0x12c),'attrs':{'id':_0x4d7814(0x12a)},'children':[{'tag':'path','attrs':{'fill':_0x4d7814(0x82),'d':_0x4d7814(0x127)}}]}]}],'defIds':[_0x4d7814(0x12a)]},$=U['forwardRef'](function(_0x47c448,_0x3a1500){const _0x21a3d7=_0x4d7814;return U[_0x21a3d7(0xda)](D,Object[_0x21a3d7(0xef)]({},_0x47c448,{'id':_0x21a3d7(0x94),'ref':_0x3a1500,'icon':me}));});$[_0x4d7814(0xd3)]=_0x4d7814(0xe3);var ye=Object[_0x4d7814(0xca)],pe=(_0x55b380,_0xd6ecb,_0x407471,_0x4a7d9a)=>{const _0x3ca149=_0x4d7814;for(var _0x5c5d2b=_0x4a7d9a>0x1?void 0x0:_0x4a7d9a?ye(_0xd6ecb,_0x407471):_0xd6ecb,_0x1fdae4=_0x55b380[_0x3ca149(0xe5)]-0x1,_0x422248;_0x1fdae4>=0x0;_0x1fdae4--)(_0x422248=_0x55b380[_0x1fdae4])&&(_0x5c5d2b=_0x422248(_0x5c5d2b)||_0x5c5d2b);return _0x5c5d2b;},g=(_0x4f39ee,_0x2df61c)=>(_0x1b5dc0,_0x1f2bd4)=>_0x2df61c(_0x1b5dc0,_0x1f2bd4,_0x4f39ee);const fe=_0x4d7814(0x10d),H=_0x4d7814(0xcf),y=_0x4d7814(0xb4);exports[_0x4d7814(0x71)]=class extends o[_0x4d7814(0xf8)]{constructor(_0x6ea25b,_0x2b5599,_0x2ac3ae,_0xf48d55,_0x21f18a,_0x3816c9,_0x1328d6,_0x515f60,_0x552cee,_0x165d4e){const _0x18e716=_0x4d7814;super(),_(this,_0x18e716(0x69),new O[(_0x18e716(0xde))](null)),_(this,_0x18e716(0x14c),this['_historyUniver$'][_0x18e716(0x9c)]()),_(this,'_disposableCollection',new o[(_0x18e716(0xbe))]()),_(this,_0x18e716(0xfc),new Map()),(this[_0x18e716(0xfa)]=_0x6ea25b,this[_0x18e716(0xdb)]=_0x2b5599,this[_0x18e716(0x13e)]=_0x2ac3ae,this[_0x18e716(0xf2)]=_0xf48d55,this[_0x18e716(0x85)]=_0x21f18a,this[_0x18e716(0x120)]=_0x3816c9,this[_0x18e716(0x131)]=_0x1328d6,this['_dialogService']=_0x515f60,this[_0x18e716(0xa7)]=_0x552cee,this['_themeService']=_0x165d4e,this[_0x18e716(0xa6)]());}get[_0x4d7814(0x8e)](){const _0x46d12a=_0x4d7814;return this['_historyUniver$'][_0x46d12a(0x8c)];}[_0x4d7814(0xa6)](){const _0x4f12da=_0x4d7814;this['_initContainer'](),this[_0x4f12da(0x15a)]();}['_initContainer'](){const _0x35349f=_0x4d7814;var _0x5605f9;const _0x44d675=(_0x5605f9=this['_configService'][_0x35349f(0x10b)](H))!=null?_0x5605f9:fe,_0x166911=document['getElementById'](_0x44d675);if(!_0x166911)return;const _0x3a3007=document[_0x35349f(0xda)](_0x35349f(0x111));_0x3a3007['id']=y,_0x3a3007[_0x35349f(0x159)]['uComp']=_0x35349f(0x12f),_0x3a3007['style'][_0x35349f(0x109)]='absolute',_0x3a3007[_0x35349f(0x8b)][_0x35349f(0x106)]='0',_0x3a3007[_0x35349f(0x8b)][_0x35349f(0x8f)]='0',_0x3a3007[_0x35349f(0x8b)][_0x35349f(0x90)]=_0x35349f(0xb2),_0x3a3007['style'][_0x35349f(0x141)]=_0x35349f(0xb2),_0x3a3007['style'][_0x35349f(0x7d)]=_0x35349f(0xf6),_0x3a3007[_0x35349f(0x8b)][_0x35349f(0xc4)]=_0x35349f(0x126),_0x166911[_0x35349f(0x114)](_0x3a3007);}[_0x4d7814(0x15a)](){const _0x138df0=_0x4d7814;var _0xe3ce22,_0x29b73f,_0x55a6e6,_0x5e1186;[[X['UniverRenderEnginePlugin']],[h[_0x138df0(0xbb)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[h[_0x138df0(0x6e)],null]]}],[ee[_0x138df0(0x14f)]],[N[_0x138df0(0x161)],{'override':[[N[_0x138df0(0xf0)],null]]}],[z[_0x138df0(0x104)],{'hasScroll':!0x1}],[Z[_0x138df0(0xd8)]],[ve[_0x138df0(0xb5)]],[d['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[k[_0x138df0(0xdc)]],[le[_0x138df0(0xa5)]],[ue[_0x138df0(0x107)]],[C[_0x138df0(0x13b)]],[ae[_0x138df0(0x86)]],[ce['UniverSheetsFilterUIPlugin']],[ie[_0x138df0(0xf5)]],[te[_0x138df0(0xc1)]],[he[_0x138df0(0x110)]],[ge[_0x138df0(0x7e)]],[B[_0x138df0(0x146)]],[re['UniverSheetsDataValidationPlugin']],[ne[_0x138df0(0x10f)]],[Q[_0x138df0(0xa2)],{'notExecuteFormula':!0x0}],[R[_0x138df0(0xf7)],{'workerURL':(_0x29b73f=(_0xe3ce22=this[_0x138df0(0x13e)][_0x138df0(0x10b)](R[_0x138df0(0xb6)]))==null?void 0x0:_0xe3ce22[_0x138df0(0x9a)])!=null?_0x29b73f:_0x138df0(0x74)}],[J[_0x138df0(0xc9)]],[se[_0x138df0(0x75)]],[oe[_0x138df0(0x7a)]],[K[_0x138df0(0xd1)]],[W[_0x138df0(0x14d)]],[V['UniverSheetsChartPlugin']],[G[_0x138df0(0x97)]],[Y[_0x138df0(0xcd)],{'notExecuteFormula':!0x0}],[m[_0x138df0(0xff)],{'historyListServerUrl':(_0x55a6e6=this[_0x138df0(0x13e)]['getConfig'](b))==null?void 0x0:_0x55a6e6[_0x138df0(0xa0)],'historyPanelComponentKey':(_0x5e1186=this[_0x138df0(0x13e)]['getConfig'](b))==null?void 0x0:_0x5e1186[_0x138df0(0x142)]}]][_0x138df0(0xe1)](([_0x1cee4a,_0x2581f3])=>this[_0x138df0(0xc2)](_0x1cee4a,_0x2581f3));}['dispose'](){const _0x321cf2=_0x4d7814;super[_0x321cf2(0x76)](),this[_0x321cf2(0x149)](),this[_0x321cf2(0xfc)][_0x321cf2(0x105)]();}['registerPlugin'](_0x3240c6,_0x2d0745,_0xb519b8){const _0x5d38ea=_0x4d7814;if(this[_0x5d38ea(0xfc)][_0x5d38ea(0x125)](_0x3240c6[_0x5d38ea(0xd5)])&&!_0xb519b8)throw new Error(_0x5d38ea(0xc3)+_0x3240c6['pluginName']+_0x5d38ea(0x121));this[_0x5d38ea(0xfc)]['set'](_0x3240c6['pluginName'],[_0x3240c6,_0x2d0745]);}[_0x4d7814(0x15d)](){const _0x38c540=_0x4d7814;return Array[_0x38c540(0x7f)](this['_pluginMap'][_0x38c540(0x98)]());}[_0x4d7814(0xb7)](_0x44cc7d){const _0x1501e7=_0x4d7814,_0x3b0911=document[_0x1501e7(0x113)](y);_0x3b0911&&(_0x3b0911[_0x1501e7(0x8b)][_0x1501e7(0xc4)]='block',this[_0x1501e7(0x15f)](_0x44cc7d,y));}['unMountHistoryContent'](){const _0x48fcd9=_0x4d7814;var _0x1634e6;this[_0x48fcd9(0xac)]['dispose'](),(_0x1634e6=this[_0x48fcd9(0x8e)])==null||_0x1634e6[_0x48fcd9(0x76)](),this[_0x48fcd9(0x69)]['next'](null);const _0x360048=document[_0x48fcd9(0x113)](y);_0x360048&&(_0x360048[_0x48fcd9(0x8b)][_0x48fcd9(0xc4)]=_0x48fcd9(0x126));}[_0x4d7814(0x15f)](_0x4f1004,_0x3f5595){const _0xcfb2a0=_0x4d7814;if(this[_0xcfb2a0(0x8e)])return;const _0xdeb662=new o['Univer']({'locales':{[this[_0xcfb2a0(0xfa)][_0xcfb2a0(0xec)]()]:this['_localeService']['getLocales']()},'override':[[o[_0xcfb2a0(0xe2)],{'useClass':p[_0xcfb2a0(0x100)]}]]}),_0x54fc50=_0xdeb662[_0xcfb2a0(0x153)]();this[_0xcfb2a0(0x123)](this['_themeService']['darkMode$'][_0xcfb2a0(0xf9)](_0x3a5e01=>{const _0x426ba1=_0xcfb2a0;_0x54fc50['get'](o['ThemeService'])[_0x426ba1(0x148)](_0x3a5e01);})),this[_0xcfb2a0(0x123)](this['_themeService'][_0xcfb2a0(0x14e)][_0xcfb2a0(0xf9)](_0x2d6702=>{const _0x228cff=_0xcfb2a0;_0x54fc50[_0x228cff(0x15e)](o[_0x228cff(0xaf)])[_0x228cff(0xbd)](_0x2d6702);})),_0x54fc50[_0xcfb2a0(0x15e)](o['LocaleService'])[_0xcfb2a0(0x115)](this['_localeService']['getCurrentLocale']()),_0x54fc50[_0xcfb2a0(0x15e)](o[_0xcfb2a0(0xe7)])[_0xcfb2a0(0xfb)](p[_0xcfb2a0(0x150)],this[_0xcfb2a0(0x13e)]['getConfig'](p[_0xcfb2a0(0x150)]));const _0x19f731=this['_configService']['getConfig'](L[_0xcfb2a0(0x145)]);_0x19f731&&_0xdeb662[_0xcfb2a0(0xc2)](L['UniverLicensePlugin'],{'license':_0x19f731['ls']}),this[_0xcfb2a0(0xfc)][_0xcfb2a0(0xe1)](([_0x1f8b23,_0x1aa43e])=>{const _0x485905=_0xcfb2a0;_0xdeb662[_0x485905(0xc2)](_0x1f8b23,_0x1aa43e);}),_0x54fc50[_0xcfb2a0(0xd7)](_0x9b423e=>{const _0x175352=_0xcfb2a0;this[_0x175352(0xe0)](_0x9b423e,_0x4f1004);}),this['_historyUniver$'][_0xcfb2a0(0xf1)](_0xdeb662);const _0x36938c=_0x54fc50[_0xcfb2a0(0x15e)](m[_0xcfb2a0(0x13d)]),_0x3d2d87=this[_0xcfb2a0(0x160)](_0x4f1004);_0x36938c[_0xcfb2a0(0x92)](_0x4f1004,_0x3f5595,_0x3d2d87);}[_0x4d7814(0xe0)](_0x78f440,_0x5b88ad){const _0x3f89c2=_0x4d7814,_0x11cc9f=_0x78f440[_0x3f89c2(0x15e)](m[_0x3f89c2(0x13d)]);this[_0x3f89c2(0xac)][_0x3f89c2(0x103)](_0x11cc9f[_0x3f89c2(0xe6)][_0x3f89c2(0xf9)](_0x1cd567=>{const _0x2040ce=_0x3f89c2;switch(_0x1cd567){case m[_0x2040ce(0xe8)][_0x2040ce(0x119)]:this[_0x2040ce(0x87)][_0x2040ce(0xa1)](),this['_sidebarService'][_0x2040ce(0x134)]();break;case m[_0x2040ce(0xe8)]['Exited']:this[_0x2040ce(0xf2)][_0x2040ce(0xdf)](j['id']),this['unMountHistoryContent']();break;case m['HistoryModeStatus'][_0x2040ce(0x73)]:this[_0x2040ce(0x149)](),this['_messageService']['show']({'content':this[_0x2040ce(0xfa)]['t'](_0x2040ce(0x135)),'type':P[_0x2040ce(0x9e)][_0x2040ce(0x73)],'duration':0xbb8});break;}})),this[_0x3f89c2(0xac)][_0x3f89c2(0x103)](_0x11cc9f['revertRevision$'][_0x3f89c2(0xf9)](async _0x42eb3b=>{const _0x2a7c78=_0x3f89c2;_0x42eb3b&&this[_0x2a7c78(0xf2)][_0x2a7c78(0xdf)](C[_0x2a7c78(0x96)]['id'],{'unitId':_0x5b88ad,'revision':_0x42eb3b});}));}['_checkCanRevert'](_0x1d71ca){const _0x5c5bff=_0x4d7814,_0x75eafb=this[_0x5c5bff(0xdb)][_0x5c5bff(0x137)](_0x1d71ca)[_0x5c5bff(0xe9)]()[_0x5c5bff(0x118)](_0x137940=>_0x137940[_0x5c5bff(0x144)]()),_0xdae376=new d[(_0x5c5bff(0xd6))](_0x1d71ca)['id'],_0x16d6c4=_0x75eafb[_0x5c5bff(0x118)](_0x113c63=>new d['WorksheetEditPermission'](_0x1d71ca,_0x113c63)['id']),_0x14f19b=_0x75eafb[_0x5c5bff(0x118)](_0xe658c5=>this[_0x5c5bff(0x131)]['getSubunitRuleList'](_0x1d71ca,_0xe658c5)[_0x5c5bff(0x118)](_0x4a2759=>new d['RangeProtectionPermissionEditPoint'](_0x1d71ca,_0xe658c5,_0x4a2759[_0x5c5bff(0x6a)])['id']))['flat'](),_0x5ae535=new d[(_0x5c5bff(0x10a))](_0x1d71ca)['id'];return this[_0x5c5bff(0x120)]['composePermission']([_0xdae376,..._0x16d6c4,..._0x14f19b,_0x5ae535])['every'](_0x525838=>!!_0x525838[_0x5c5bff(0x8c)]);}},exports[_0x4d7814(0x71)]=pe([g(0x0,o['Inject'](o[_0x4d7814(0x11b)])),g(0x1,o['IUniverInstanceService']),g(0x2,o[_0x4d7814(0xe7)]),g(0x3,o[_0x4d7814(0xa3)]),g(0x4,h[_0x4d7814(0xb9)]),g(0x5,o[_0x4d7814(0x8a)]),g(0x6,o[_0x4d7814(0x151)](d['RangeProtectionRuleModel'])),g(0x7,o[_0x4d7814(0x151)](h[_0x4d7814(0x6e)])),g(0x8,o['Inject'](h[_0x4d7814(0xdd)])),g(0x9,o[_0x4d7814(0x151)](o[_0x4d7814(0xaf)]))],exports['HistoryLoaderService']);const M={'id':_0x4d7814(0x129),'type':o[_0x4d7814(0xb1)]['OPERATION'],'handler':_0x8fb49c=>{const _0x294799=_0x4d7814,_0x5b8f70=_0x8fb49c['get'](exports[_0x294799(0x71)]),_0x4c8304=_0x8fb49c[_0x294799(0x15e)](o[_0x294799(0x143)]),{unitId:_0x845cd4}=d[_0x294799(0x10c)](_0x4c8304)||{};return _0x845cd4?(_0x5b8f70[_0x294799(0xb7)](_0x845cd4),!0x0):!0x1;}},j={'id':'univer.operation.exit-edit-history','type':o['CommandType']['OPERATION'],'handler':()=>!0x0};function Ce(_0x3fd82f){const _0x582434=_0x4d7814;return{'id':M['id'],'type':h[_0x582434(0x11f)][_0x582434(0xd9)],'icon':_0x582434(0xe3),'tooltip':_0x582434(0xc5),'hidden$':h[_0x582434(0xed)](_0x3fd82f,o['UniverInstanceType'][_0x582434(0x83)]),'disabled$':k[_0x582434(0x154)](_0x3fd82f,{'workbookTypes':[d[_0x582434(0xd6)],d[_0x582434(0x133)]],'worksheetTypes':[],'rangeTypes':[]})};}const Ie={[h[_0x4d7814(0x7c)][_0x4d7814(0x12e)]]:{[M['id']]:{'order':0.2,'menuItemFactory':Ce}}};var Ue=Object['getOwnPropertyDescriptor'],Ee=(_0x420e23,_0x3d3b14,_0x509a6e,_0x382119)=>{for(var _0x2c4dd7=_0x382119>0x1?void 0x0:_0x382119?Ue(_0x3d3b14,_0x509a6e):_0x3d3b14,_0x435bbe=_0x420e23['length']-0x1,_0x530503;_0x435bbe>=0x0;_0x435bbe--)(_0x530503=_0x420e23[_0x435bbe])&&(_0x2c4dd7=_0x530503(_0x2c4dd7)||_0x2c4dd7);return _0x2c4dd7;},S=(_0x1a0a33,_0x1e5124)=>(_0xafb04c,_0x2abfc8)=>_0x1e5124(_0xafb04c,_0x2abfc8,_0x1a0a33);let E=class extends o['RxDisposable']{constructor(_0x4f786c,_0xf9af7a,_0x53da82,_0x626c82,_0x1abd28,_0x449dd6,_0x4e9de7,_0x2cb1bc){const _0x12847b=_0x4d7814;super(),_(this,_0x12847b(0xfd),null),(this[_0x12847b(0xf2)]=_0x4f786c,this[_0x12847b(0xce)]=_0xf9af7a,this[_0x12847b(0xd4)]=_0x53da82,this[_0x12847b(0xd2)]=_0x626c82,this['_localeService']=_0x1abd28,this[_0x12847b(0x85)]=_0x449dd6,this['_collaborationController']=_0x4e9de7,this[_0x12847b(0x93)]=_0x2cb1bc,this[_0x12847b(0xa6)]());}['_init'](){const _0x3f6058=_0x4d7814;[M,j][_0x3f6058(0xe1)](_0x3b74ed=>this[_0x3f6058(0x123)](o[_0x3f6058(0xb3)](this[_0x3f6058(0xf2)][_0x3f6058(0xa4)](_0x3b74ed)))),this[_0x3f6058(0x123)](this[_0x3f6058(0xd4)][_0x3f6058(0x70)](_0x3f6058(0xe3),$)),this[_0x3f6058(0xce)][_0x3f6058(0x11c)](Ie),this[_0x3f6058(0x123)](this['_commandService'][_0x3f6058(0xbf)](_0x3fcd9f=>{const _0x13bce5=_0x3f6058;if(_0x3fcd9f['id']===C[_0x13bce5(0x96)]['id']){this[_0x13bce5(0x85)][_0x13bce5(0x11d)]({'content':this[_0x13bce5(0xfa)]['t'](_0x13bce5(0x10e)),'type':P[_0x13bce5(0x9e)]['Loading'],'duration':0x1388});const {unitId:_0xb83b7}=_0x3fcd9f[_0x13bce5(0x91)],_0xae7299=this[_0x13bce5(0x138)][_0x13bce5(0xcc)](_0xb83b7),_0x40051b=O[_0x13bce5(0xee)]([_0xae7299[_0x13bce5(0x14a)][_0x13bce5(0xea)],_0xae7299[_0x13bce5(0x117)]])[_0x13bce5(0xf9)](async([_0x87c40f,_0x1cf289])=>{const _0x431565=_0x13bce5;var _0x459246;_0x87c40f[_0x431565(0x15b)]===C[_0x431565(0x89)]['CHANGESET_ACK']&&(_0x1cf289==null?void 0x0:_0x1cf289[_0x431565(0x77)])===p[_0x431565(0x122)][_0x431565(0x147)]&&_0x87c40f['data'][_0x431565(0x6b)][_0x431565(0x13c)](_0xcbfdbb=>_0xcbfdbb['id']===C[_0x431565(0x96)]['id'])&&(this[_0x431565(0xd2)][_0x431565(0x149)](),_0x40051b[_0x431565(0x80)](),this[_0x431565(0xfd)]&&clearTimeout(this[_0x431565(0xfd)]),await((_0x459246=this['_localCacheService'])==null?void 0x0:_0x459246[_0x431565(0x88)]()),setTimeout(()=>window[_0x431565(0x102)][_0x431565(0x6f)]()));});this[_0x13bce5(0xfd)]=setTimeout(()=>{const _0x3927ec=_0x13bce5;_0x40051b[_0x3927ec(0x80)](),this[_0x3927ec(0x85)][_0x3927ec(0x11d)]({'content':this[_0x3927ec(0xfa)]['t'](_0x3927ec(0xa9)),'type':P[_0x3927ec(0x9e)][_0x3927ec(0x73)],'duration':0xbb8});},0x1388);}}));}};E=Ee([S(0x0,o[_0x4d7814(0xa3)]),S(0x1,h[_0x4d7814(0xc8)]),S(0x2,o[_0x4d7814(0x151)](h['ComponentManager'])),S(0x3,o[_0x4d7814(0x151)](exports[_0x4d7814(0x71)])),S(0x4,o[_0x4d7814(0x151)](o[_0x4d7814(0x11b)])),S(0x5,h[_0x4d7814(0xb9)]),S(0x6,o[_0x4d7814(0x151)](p[_0x4d7814(0x116)])),S(0x7,p['ILocalCacheService'])],E);var Pe=Object[_0x4d7814(0xca)],be=(_0x5078e9,_0x2f30b3,_0x52d595,_0x22073b)=>{const _0x5acb9e=_0x4d7814;for(var _0x527554=_0x22073b>0x1?void 0x0:_0x22073b?Pe(_0x2f30b3,_0x52d595):_0x2f30b3,_0x351f10=_0x5078e9[_0x5acb9e(0xe5)]-0x1,_0x3bb130;_0x351f10>=0x0;_0x351f10--)(_0x3bb130=_0x5078e9[_0x351f10])&&(_0x527554=_0x3bb130(_0x527554)||_0x527554);return _0x527554;},w=(_0x48f859,_0x48a9fa)=>(_0x532ce6,_0x440bc0)=>_0x48a9fa(_0x532ce6,_0x440bc0,_0x48f859);const He=_0x4d7814(0x9b);var I;exports[_0x4d7814(0x152)]=(I=class extends o[_0x4d7814(0x11e)]{constructor(_0x32c3ff=T,_0x2f2a3e,_0x1e007a){const _0x4c6e2a=_0x4d7814;super(),this['_config']=_0x32c3ff,this['_injector']=_0x2f2a3e,this[_0x4c6e2a(0x13e)]=_0x1e007a;const {menu:_0x256324,..._0x131ed9}=o[_0x4c6e2a(0x156)]({},T,this['_config']);_0x256324&&this[_0x4c6e2a(0x13e)][_0x4c6e2a(0xfb)](_0x4c6e2a(0x136),_0x256324,{'merge':!0x0}),this['_configService']['setConfig'](b,_0x131ed9),this[_0x4c6e2a(0x9f)][_0x4c6e2a(0xf3)]&&this[_0x4c6e2a(0x13e)][_0x4c6e2a(0xfb)](H,this[_0x4c6e2a(0x9f)][_0x4c6e2a(0xf3)]);}[_0x4d7814(0x140)](){const _0x50afa6=_0x4d7814;[[exports[_0x50afa6(0x71)]],[E]]['forEach'](_0x4d16cd=>this[_0x50afa6(0x157)][_0x50afa6(0x103)](_0x4d16cd));}[_0x4d7814(0x95)](){const _0x5cfb68=_0x4d7814;this[_0x5cfb68(0x157)][_0x5cfb68(0x15e)](E);}},_(I,_0x4d7814(0x7b),o[_0x4d7814(0x112)]['UNIVER_UNKNOWN']),_(I,'pluginName',He),I),exports[_0x4d7814(0x152)]=be([w(0x1,o[_0x4d7814(0x151)](o[_0x4d7814(0x13a)])),w(0x2,o['IConfigService'])],exports['UniverEditHistoryLoaderPlugin']),exports['UNIVER_CONTAINER_ID_KEY']=H,exports[_0x4d7814(0x139)]=y;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x28d4a4=_0x5c8e;(function(_0xa20acb,_0x5ed8c9){const _0x3bfad2=_0x5c8e,_0x29810d=_0xa20acb();while(!![]){try{const _0x8217fe=parseInt(_0x3bfad2(0xb4))/0x1+-parseInt(_0x3bfad2(0x113))/0x2+parseInt(_0x3bfad2(0x9b))/0x3*(-parseInt(_0x3bfad2(0x10b))/0x4)+-parseInt(_0x3bfad2(0xa0))/0x5+parseInt(_0x3bfad2(0x9e))/0x6+parseInt(_0x3bfad2(0x8c))/0x7+parseInt(_0x3bfad2(0x10e))/0x8*(parseInt(_0x3bfad2(0xb5))/0x9);if(_0x8217fe===_0x5ed8c9)break;else _0x29810d['push'](_0x29810d['shift']());}catch(_0x450c1e){_0x29810d['push'](_0x29810d['shift']());}}}(_0x1c47,0x67f3b));var Y=Object['defineProperty'],B=(_0x2c97d4,_0x1acba2,_0x11b547)=>_0x1acba2 in _0x2c97d4?Y(_0x2c97d4,_0x1acba2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11b547}):_0x2c97d4[_0x1acba2]=_0x11b547,g=(_0x4ce485,_0x941cc,_0x5ae1b2)=>B(_0x4ce485,typeof _0x941cc!='symbol'?_0x941cc+'':_0x941cc,_0x5ae1b2);import{Inject as _0x46c454,LocaleService as _0xc7137,IUniverInstanceService as _0x17dea0,IConfigService as _0x2527f1,ICommandService as _0x4ccfc6,IPermissionService as _0x1691d8,ThemeService as _0x4a0048,Disposable as _0x11f04e,DisposableCollection as _0x1096e7,Univer as _0x2b206b,IAuthzIoService as _0x36ad80,CommandType as _0x176ea2,UniverInstanceType as _0x1b48a5,RxDisposable as _0x547c6d,toDisposable as _0x1ec54e,Plugin as _0x324003,merge as _0x242ed3,Injector as _0xaa3bc2}from'@univerjs/core';import{UniverCollaborationPlugin as _0x593c16,RevertRevisionMutation as _0x20ea47,CollaborationEvent as _0x442c5e}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x381e88,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e6ad0,CollaborationController as _0x348bd1,ILocalCacheService as _0x8b9c29,CollaborationStatus as _0x1b925f}from'@univerjs-pro/collaboration-client';import{MessageType as _0x17d5cd}from'@univerjs/design';import{useRef as _0x4c0168,createElement as _0x4ad07b,forwardRef as _0x46c5f0}from'react';import{IMessageService as _0x3ba77a,IDialogService as _0x5b349c,ISidebarService as _0xaa3e4d,UniverUIPlugin as _0x17bb2b,getMenuHiddenObservable as _0x2af65c,MenuItemType as _0x2f263a,RibbonStartGroup as _0x157b79,IMenuManagerService as _0x29ebf4,ComponentManager as _0x24ca35}from'@univerjs/ui';import{BehaviorSubject as _0x394d58,combineLatest as _0x501715}from'rxjs';import{RangeProtectionRuleModel as _0x467927,UniverSheetsPlugin as _0x13bd3e,WorkbookEditablePermission as _0x1c1798,WorksheetEditPermission as _0xf0f0c1,RangeProtectionPermissionEditPoint as _0x2bb7d9,WorkbookRecoverHistoryPermission as _0x4f1e7d,getSheetCommandTarget as _0x293682,WorkbookViewHistoryPermission as _0x435260}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x1d2ee2,HistoryManagerService as _0x77b50a,HistoryModeStatus as _0x347aa0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3bf7c0,UniverLicensePlugin as _0x53e7a7}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x291ecb}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x1786fc}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x37e050}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x30b9d4}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x364408}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1b0993}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x7a73da}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x4c0c75}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x38a33c,IImageIoService as _0x321682}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x2801b8}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x40c6c2}from'@univerjs/engine-formula';function _0x5c8e(_0x22d724,_0x235b93){_0x22d724=_0x22d724-0x88;const _0x1c4735=_0x1c47();let _0x5c8e32=_0x1c4735[_0x22d724];return _0x5c8e32;}import{UniverRenderEnginePlugin as _0x35a05d}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x5ca7ac}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x48d937,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x5e32c6}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x1a43ef}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x286bab}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x65aeff}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x126307}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x3d69d5}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x368aac}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3f0407}from'@univerjs/sheets-filter';function _0x1c47(){const _0x3b41be=['_disposableCollection','left','_config','OTHERS','length','colorChannel1','UNIVER_CONTAINER_ID','SYNCED','CHANGESET_ACK','next','100%','historyListServerUrl','replace','M0\x200H16V16H0z','getSubunitRuleList','getCurrentLocale','type','setTheme','asObservable','_permissionService','unMountHistoryContent','_sidebarService','disposeWithMe','_localCacheService','defIds','univerContainerId','_injector','editHistory.panel.listFetchError','darkMode$','univerjs-icon\x20univerjs-icon-','getConfig','1000','attrs','Loading','mutations','substring','xlink:href','_configService','onSteady','exhaustSavingTask','2189084vTlQud','url(#$1','some','1558936ntVBPr','BUTTON','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','setConfig','height','1071480kMSSve','svg','Error','appendChild','clear','style','Exited','show','closeAll','_messageService','dispose','_componentManager','triggerLoadVersions','none','get','children','map','tag','_localeService','mountHistoryContent','position','_historyManagerService','absolute','random','every','currentColor','setDarkMode','includes','./worker.js','_commandService','status','2138157QhvgBb','univer.operation.exit-edit-history','getElementById','displayName','editHistory.panel.title','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','getAllPlugins','\x20has\x20been\x20registered.','UNIVER_SHEET','_initListener','_checkCanRevert','assign','getUnit','unsubscribe','clipPath','3tfgXXt','_pluginMap','invoke','4802442GjVjvY','HistoryIcon','2990585krRyGJ','history-container','display','univer-history-container','UNIVER_UNKNOWN','_historyUniver$','from','menu','defs','getOwnPropertyDescriptor','UniverIcon','history-icon_clip0_907_281','onCommandExecuted','path','workerURL','1em','uComp','composePermission','event$','_menuManagerService','26722nsNLgd','45BqvuSa','flat','getSheetId','_univerInstanceService','forEach','entries','toString','[HistoryLoaderService]:\x20Plugin\x20','onStarting','_initContainer','historyPanelComponentKey','Entered','add','_initUniver','OPERATION','_themeService','has','_init','dataset','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','history-icon','getCollabEntity','values','createElement','setLocale','historyUniver','executeCommand','historyUniver$','currentTheme$','subscribe','location','mask','pluginName','_dialogService','session','value','register','string','idSuffix','_revertErrorTimer','getSheets','0\x200\x2016\x2016','fill','registerPlugin','width','registerCommand'];_0x1c47=function(){return _0x3b41be;};return _0x1c47();}import{UniverSheetsFilterUIPlugin as _0x12cab8}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x40fd4d}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x15b5be}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x142267}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x1d13f8}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3e1f23}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0xcbf460,getCurrentRangeDisable$ as _0x210efd}from'@univerjs/sheets-ui';const U='edit-history-loader.config',N={};function F({ref:_0x5d5e23,..._0x22b364}){const _0x4fca1c=_0x5c8e,{icon:_0x56ca74,id:_0x124470,className:_0x31115d,extend:_0x512a91,..._0x2fd60f}=_0x22b364,_0x2ddf61=(_0x4fca1c(0x100)+_0x124470+'\x20'+(_0x31115d||''))['trim'](),_0xd2fa37=_0x4c0168('_'+hi());return j(_0x56ca74,''+_0x124470,{'defIds':_0x56ca74[_0x4fca1c(0xfb)],'idSuffix':_0xd2fa37['current']},{'ref':_0x5d5e23,'className':_0x2ddf61,..._0x2fd60f},_0x512a91);}function j(_0x45965e,_0x259cc2,_0x16b2d7,_0x56a5c6,_0x20f682){const _0x1ea226=_0x5c8e;return _0x4ad07b(_0x45965e[_0x1ea226(0x124)],{'key':_0x259cc2,...ci(_0x45965e,_0x16b2d7,_0x20f682),..._0x56a5c6},(li(_0x45965e,_0x16b2d7)[_0x1ea226(0x122)]||[])['map']((_0x57c4c1,_0x402207)=>j(_0x57c4c1,_0x259cc2+'-'+_0x45965e['tag']+'-'+_0x402207,_0x16b2d7,void 0x0,_0x20f682)));}function ci(_0xf67526,_0x51448b,_0x306829){const _0x5dbf5c=_0x5c8e,_0x37ba52={..._0xf67526[_0x5dbf5c(0x103)]};_0x306829!=null&&_0x306829[_0x5dbf5c(0xe8)]&&_0x37ba52[_0x5dbf5c(0xdf)]==='colorChannel1'&&(_0x37ba52['fill']=_0x306829[_0x5dbf5c(0xe8)]),_0xf67526[_0x5dbf5c(0x124)]===_0x5dbf5c(0xd4)&&_0x37ba52['id']&&(_0x37ba52['id']=_0x37ba52['id']+_0x51448b['idSuffix']),Object[_0x5dbf5c(0xba)](_0x37ba52)[_0x5dbf5c(0xb9)](([_0x3ce3f2,_0x479c6b])=>{const _0xa83f1=_0x5dbf5c;_0x3ce3f2===_0xa83f1(0xd4)&&typeof _0x479c6b==_0xa83f1(0xda)&&(_0x37ba52[_0x3ce3f2]=_0x479c6b['replace'](/url\(#(.*)\)/,_0xa83f1(0x10c)+_0x51448b['idSuffix']+')'));});const {defIds:_0x39c9b2}=_0x51448b;return!_0x39c9b2||_0x39c9b2[_0x5dbf5c(0xe7)]===0x0||(_0xf67526[_0x5dbf5c(0x124)]==='use'&&_0x37ba52[_0x5dbf5c(0x107)]&&(_0x37ba52[_0x5dbf5c(0x107)]=_0x37ba52[_0x5dbf5c(0x107)]+_0x51448b[_0x5dbf5c(0xdb)]),Object[_0x5dbf5c(0xba)](_0x37ba52)[_0x5dbf5c(0xb9)](([_0x3e267b,_0x2371cc])=>{const _0xdb788c=_0x5dbf5c;typeof _0x2371cc==_0xdb788c(0xda)&&(_0x37ba52[_0x3e267b]=_0x2371cc[_0xdb788c(0xef)](/url\(#(.*)\)/,_0xdb788c(0x10c)+_0x51448b[_0xdb788c(0xdb)]+')'));})),_0x37ba52;}function li(_0x311ed4,_0x60dfa8){const _0x33d4e3=_0x5c8e;var _0x214074;const {defIds:_0x30f4cd}=_0x60dfa8;return!_0x30f4cd||_0x30f4cd['length']===0x0?_0x311ed4:_0x311ed4[_0x33d4e3(0x124)]===_0x33d4e3(0xa8)&&((_0x214074=_0x311ed4['children'])!=null&&_0x214074[_0x33d4e3(0xe7)])?{..._0x311ed4,'children':_0x311ed4[_0x33d4e3(0x122)][_0x33d4e3(0x123)](_0x3ef261=>typeof _0x3ef261[_0x33d4e3(0x103)]['id']=='string'&&_0x30f4cd&&_0x30f4cd[_0x33d4e3(0x88)](_0x3ef261[_0x33d4e3(0x103)]['id'])?{..._0x3ef261,'attrs':{..._0x3ef261['attrs'],'id':_0x3ef261[_0x33d4e3(0x103)]['id']+_0x60dfa8['idSuffix']}}:_0x3ef261)}:_0x311ed4;}function hi(){const _0x2ee01b=_0x5c8e;return Math[_0x2ee01b(0x12a)]()[_0x2ee01b(0xbb)](0x24)[_0x2ee01b(0x106)](0x2,0x8);}F[_0x28d4a4(0x8f)]=_0x28d4a4(0xaa);const ui={'tag':_0x28d4a4(0x114),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x28d4a4(0x120),'viewBox':_0x28d4a4(0xde),'width':_0x28d4a4(0xaf),'height':_0x28d4a4(0xaf)},'children':[{'tag':'g','attrs':{'fill':_0x28d4a4(0x12c),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x28d4a4(0xad),'attrs':{'d':_0x28d4a4(0xc8)}},{'tag':_0x28d4a4(0xad),'attrs':{'d':_0x28d4a4(0x91)}}]},{'tag':_0x28d4a4(0xa8),'attrs':{},'children':[{'tag':_0x28d4a4(0x9a),'attrs':{'id':_0x28d4a4(0xab)},'children':[{'tag':_0x28d4a4(0xad),'attrs':{'fill':'white','d':_0x28d4a4(0xf0)}}]}]}],'defIds':[_0x28d4a4(0xab)]},V=_0x46c5f0(function(_0x2271dd,_0x2b6b85){const _0x41ab15=_0x28d4a4;return _0x4ad07b(F,Object[_0x41ab15(0x97)]({},_0x2271dd,{'id':_0x41ab15(0xc9),'ref':_0x2b6b85,'icon':ui}));});V[_0x28d4a4(0x8f)]=_0x28d4a4(0x9f);var gi=Object[_0x28d4a4(0xa9)],mi=(_0x203aae,_0x3e28c1,_0x1fa66c,_0x33c5bb)=>{const _0x33334b=_0x28d4a4;for(var _0x17cb9a=_0x33c5bb>0x1?void 0x0:_0x33c5bb?gi(_0x3e28c1,_0x1fa66c):_0x3e28c1,_0x5b8868=_0x203aae[_0x33334b(0xe7)]-0x1,_0x378b7f;_0x5b8868>=0x0;_0x5b8868--)(_0x378b7f=_0x203aae[_0x5b8868])&&(_0x17cb9a=_0x378b7f(_0x17cb9a)||_0x17cb9a);return _0x17cb9a;},l=(_0x5680bc,_0x3c5de2)=>(_0x509c51,_0x10a95f)=>_0x3c5de2(_0x509c51,_0x10a95f,_0x5680bc);const vi='univer-container',G=_0x28d4a4(0xe9),d=_0x28d4a4(0xa3);let f=class extends _0x11f04e{constructor(_0x239923,_0x2bb964,_0x2b0f1e,_0xb12896,_0xb3abc,_0x5f0628,_0x3bb5fb,_0x5e681d,_0xa90086,_0x182a4f){const _0x4191ba=_0x28d4a4;super(),g(this,_0x4191ba(0xa5),new _0x394d58(null)),g(this,_0x4191ba(0xd0),this[_0x4191ba(0xa5)][_0x4191ba(0xf5)]()),g(this,'_disposableCollection',new _0x1096e7()),g(this,_0x4191ba(0x9c),new Map()),(this[_0x4191ba(0x125)]=_0x239923,this[_0x4191ba(0xb8)]=_0x2bb964,this['_configService']=_0x2b0f1e,this[_0x4191ba(0x8a)]=_0xb12896,this[_0x4191ba(0x11c)]=_0xb3abc,this['_permissionService']=_0x5f0628,this['_selectionProtectionRuleModel']=_0x3bb5fb,this[_0x4191ba(0xd6)]=_0x5e681d,this[_0x4191ba(0xf8)]=_0xa90086,this[_0x4191ba(0xc4)]=_0x182a4f,this['_init']());}get[_0x28d4a4(0xce)](){const _0x58ef6e=_0x28d4a4;return this[_0x58ef6e(0xa5)][_0x58ef6e(0xd8)];}['_init'](){const _0xd2abc6=_0x28d4a4;this[_0xd2abc6(0xbe)](),this['_initPlugins']();}['_initContainer'](){const _0x1f10d9=_0x28d4a4;var _0x392213;const _0x2357ee=(_0x392213=this['_configService'][_0x1f10d9(0x101)](G))!=null?_0x392213:vi,_0x43106b=document['getElementById'](_0x2357ee);if(!_0x43106b)return;const _0x205fb4=document[_0x1f10d9(0xcc)]('div');_0x205fb4['id']=d,_0x205fb4[_0x1f10d9(0xc7)][_0x1f10d9(0xb0)]=_0x1f10d9(0xa1),_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0x127)]=_0x1f10d9(0x129),_0x205fb4['style']['top']='0',_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0xe4)]='0',_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0xe1)]=_0x1f10d9(0xed),_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0x112)]=_0x1f10d9(0xed),_0x205fb4['style']['zIndex']=_0x1f10d9(0x102),_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0xa2)]='none',_0x43106b[_0x1f10d9(0x116)](_0x205fb4);}['_initPlugins'](){const _0x10a8df=_0x28d4a4;var _0x545121,_0x10d904,_0x390833,_0xa85fc9;[[_0x35a05d],[_0x17bb2b,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5b349c,null]]}],[_0x5ca7ac],[_0x38a33c,{'override':[[_0x321682,null]]}],[_0x7a73da,{'hasScroll':!0x1}],[_0x4c0c75],[_0x3e1f23],[_0x13bd3e,{'notExecuteFormula':!0x0}],[_0xcbf460],[_0x40fd4d],[_0x15b5be],[_0x593c16],[_0x3f0407],[_0x12cab8],[_0x1a43ef],[_0x286bab],[_0x142267],[_0x1d13f8],[_0x1b0993],[_0x65aeff],[_0x126307],[_0x40c6c2,{'notExecuteFormula':!0x0}],[_0x48d937,{'workerURL':(_0x10d904=(_0x545121=this[_0x10a8df(0x108)][_0x10a8df(0x101)](_0x5e32c6))==null?void 0x0:_0x545121[_0x10a8df(0xae)])!=null?_0x10d904:_0x10a8df(0x89)}],[_0x2801b8],[_0x3d69d5],[_0x368aac],[_0x30b9d4],[_0x364408],[_0x291ecb],[_0x1786fc],[_0x37e050,{'notExecuteFormula':!0x0}],[_0x1d2ee2,{'historyListServerUrl':(_0x390833=this[_0x10a8df(0x108)]['getConfig'](U))==null?void 0x0:_0x390833[_0x10a8df(0xee)],'historyPanelComponentKey':(_0xa85fc9=this[_0x10a8df(0x108)][_0x10a8df(0x101)](U))==null?void 0x0:_0xa85fc9[_0x10a8df(0xbf)]}]][_0x10a8df(0xb9)](([_0x1de15b,_0x2fc96b])=>this[_0x10a8df(0xe0)](_0x1de15b,_0x2fc96b));}[_0x28d4a4(0x11d)](){const _0xf73889=_0x28d4a4;super[_0xf73889(0x11d)](),this[_0xf73889(0xf7)](),this[_0xf73889(0x9c)][_0xf73889(0x117)]();}[_0x28d4a4(0xe0)](_0x535e76,_0x3d2448,_0xce846b){const _0x111bcc=_0x28d4a4;if(this[_0x111bcc(0x9c)][_0x111bcc(0xc5)](_0x535e76['pluginName'])&&!_0xce846b)throw new Error(_0x111bcc(0xbc)+_0x535e76[_0x111bcc(0xd5)]+_0x111bcc(0x93));this[_0x111bcc(0x9c)]['set'](_0x535e76[_0x111bcc(0xd5)],[_0x535e76,_0x3d2448]);}[_0x28d4a4(0x92)](){const _0x389a7f=_0x28d4a4;return Array[_0x389a7f(0xa6)](this[_0x389a7f(0x9c)][_0x389a7f(0xcb)]());}['mountHistoryContent'](_0x493fdb){const _0xaf6bc7=_0x28d4a4,_0x20b451=document[_0xaf6bc7(0x8e)](d);_0x20b451&&(_0x20b451[_0xaf6bc7(0x118)][_0xaf6bc7(0xa2)]='block',this['_initUniver'](_0x493fdb,d));}[_0x28d4a4(0xf7)](){const _0x543c9f=_0x28d4a4;var _0x16fb1a;this[_0x543c9f(0xe3)][_0x543c9f(0x11d)](),(_0x16fb1a=this['historyUniver'])==null||_0x16fb1a[_0x543c9f(0x11d)](),this[_0x543c9f(0xa5)][_0x543c9f(0xec)](null);const _0xba592a=document['getElementById'](d);_0xba592a&&(_0xba592a[_0x543c9f(0x118)]['display']=_0x543c9f(0x120));}[_0x28d4a4(0xc2)](_0x4d4396,_0xd8bca0){const _0x50993b=_0x28d4a4;if(this[_0x50993b(0xce)])return;const _0x3e0206=new _0x2b206b({'locales':{[this[_0x50993b(0x125)][_0x50993b(0xf2)]()]:this['_localeService']['getLocales']()},'override':[[_0x36ad80,{'useClass':_0x381e88}]]}),_0x81318b=_0x3e0206['__getInjector']();this[_0x50993b(0xf9)](this[_0x50993b(0xc4)][_0x50993b(0xff)]['subscribe'](_0x4cba3b=>{const _0x4f0508=_0x50993b;_0x81318b[_0x4f0508(0x121)](_0x4a0048)[_0x4f0508(0x12d)](_0x4cba3b);})),this[_0x50993b(0xf9)](this[_0x50993b(0xc4)][_0x50993b(0xd1)]['subscribe'](_0x4d0fc5=>{const _0x1cd7e3=_0x50993b;_0x81318b[_0x1cd7e3(0x121)](_0x4a0048)[_0x1cd7e3(0xf4)](_0x4d0fc5);})),_0x81318b[_0x50993b(0x121)](_0xc7137)[_0x50993b(0xcd)](this[_0x50993b(0x125)][_0x50993b(0xf2)]()),_0x81318b[_0x50993b(0x121)](_0x2527f1)[_0x50993b(0x111)](_0x5e6ad0,this['_configService']['getConfig'](_0x5e6ad0));const _0x1c551c=this[_0x50993b(0x108)]['getConfig'](_0x3bf7c0);_0x1c551c&&_0x3e0206[_0x50993b(0xe0)](_0x53e7a7,{'license':_0x1c551c['ls']}),this['_pluginMap'][_0x50993b(0xb9)](([_0x50d0ef,_0x59ea28])=>{_0x3e0206['registerPlugin'](_0x50d0ef,_0x59ea28);}),_0x81318b[_0x50993b(0x9d)](_0x1ff49c=>{const _0x18e5a1=_0x50993b;this[_0x18e5a1(0x95)](_0x1ff49c,_0x4d4396);}),this['_historyUniver$'][_0x50993b(0xec)](_0x3e0206);const _0x5c2e0c=_0x81318b[_0x50993b(0x121)](_0x77b50a),_0x5352ce=this[_0x50993b(0x96)](_0x4d4396);_0x5c2e0c[_0x50993b(0x11f)](_0x4d4396,_0xd8bca0,_0x5352ce);}[_0x28d4a4(0x95)](_0x55e9d7,_0x5ae2de){const _0x402e0a=_0x28d4a4,_0x543871=_0x55e9d7['get'](_0x77b50a);this[_0x402e0a(0xe3)][_0x402e0a(0xc1)](_0x543871['status$'][_0x402e0a(0xd2)](_0x41e95a=>{const _0x15b472=_0x402e0a;switch(_0x41e95a){case _0x347aa0[_0x15b472(0xc0)]:this[_0x15b472(0xd6)][_0x15b472(0x11b)](),this[_0x15b472(0xf8)]['close']();break;case _0x347aa0[_0x15b472(0x119)]:this[_0x15b472(0x8a)][_0x15b472(0xcf)](W['id']),this[_0x15b472(0xf7)]();break;case _0x347aa0['Error']:this['unMountHistoryContent'](),this[_0x15b472(0x11c)][_0x15b472(0x11a)]({'content':this['_localeService']['t'](_0x15b472(0xfe)),'type':_0x17d5cd[_0x15b472(0x115)],'duration':0xbb8});break;}})),this[_0x402e0a(0xe3)]['add'](_0x543871['revertRevision$'][_0x402e0a(0xd2)](async _0x2aa8fb=>{const _0x4807a2=_0x402e0a;_0x2aa8fb&&this[_0x4807a2(0x8a)][_0x4807a2(0xcf)](_0x20ea47['id'],{'unitId':_0x5ae2de,'revision':_0x2aa8fb});}));}[_0x28d4a4(0x96)](_0x5be7c5){const _0x3e039c=_0x28d4a4,_0x5f464d=this['_univerInstanceService'][_0x3e039c(0x98)](_0x5be7c5)[_0x3e039c(0xdd)]()[_0x3e039c(0x123)](_0x42d919=>_0x42d919[_0x3e039c(0xb7)]()),_0x498594=new _0x1c1798(_0x5be7c5)['id'],_0x2a76a6=_0x5f464d['map'](_0x572138=>new _0xf0f0c1(_0x5be7c5,_0x572138)['id']),_0x12e2e8=_0x5f464d[_0x3e039c(0x123)](_0x59a247=>this['_selectionProtectionRuleModel'][_0x3e039c(0xf1)](_0x5be7c5,_0x59a247)[_0x3e039c(0x123)](_0x5b9b26=>new _0x2bb7d9(_0x5be7c5,_0x59a247,_0x5b9b26['permissionId'])['id']))[_0x3e039c(0xb6)](),_0x164c8f=new _0x4f1e7d(_0x5be7c5)['id'];return this[_0x3e039c(0xf6)][_0x3e039c(0xb1)]([_0x498594,..._0x2a76a6,..._0x12e2e8,_0x164c8f])[_0x3e039c(0x12b)](_0x2382ce=>!!_0x2382ce[_0x3e039c(0xd8)]);}};f=mi([l(0x0,_0x46c454(_0xc7137)),l(0x1,_0x17dea0),l(0x2,_0x2527f1),l(0x3,_0x4ccfc6),l(0x4,_0x3ba77a),l(0x5,_0x1691d8),l(0x6,_0x46c454(_0x467927)),l(0x7,_0x46c454(_0x5b349c)),l(0x8,_0x46c454(_0xaa3e4d)),l(0x9,_0x46c454(_0x4a0048))],f);const b={'id':'univer.operation.toggle-edit-history','type':_0x176ea2['OPERATION'],'handler':_0x2949bd=>{const _0x479e73=_0x28d4a4,_0x4617fc=_0x2949bd['get'](f),_0x2ec64c=_0x2949bd[_0x479e73(0x121)](_0x17dea0),{unitId:_0x3c67d7}=_0x293682(_0x2ec64c)||{};return _0x3c67d7?(_0x4617fc[_0x479e73(0x126)](_0x3c67d7),!0x0):!0x1;}},W={'id':_0x28d4a4(0x8d),'type':_0x176ea2[_0x28d4a4(0xc3)],'handler':()=>!0x0};function di(_0x3f3435){const _0x114f7c=_0x28d4a4;return{'id':b['id'],'type':_0x2f263a[_0x114f7c(0x10f)],'icon':'HistoryIcon','tooltip':_0x114f7c(0x90),'hidden$':_0x2af65c(_0x3f3435,_0x1b48a5[_0x114f7c(0x94)]),'disabled$':_0x210efd(_0x3f3435,{'workbookTypes':[_0x1c1798,_0x435260],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x157b79[_0x28d4a4(0xe6)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x28d4a4(0xa9)],pi=(_0x11aafb,_0x380052,_0xebeded,_0x452fa1)=>{for(var _0x3e4b1d=_0x452fa1>0x1?void 0x0:_0x452fa1?_i(_0x380052,_0xebeded):_0x380052,_0x400990=_0x11aafb['length']-0x1,_0x35abc2;_0x400990>=0x0;_0x400990--)(_0x35abc2=_0x11aafb[_0x400990])&&(_0x3e4b1d=_0x35abc2(_0x3e4b1d)||_0x3e4b1d);return _0x3e4b1d;},m=(_0x32d021,_0x4f2c81)=>(_0x2c838a,_0x20cf8a)=>_0x4f2c81(_0x2c838a,_0x20cf8a,_0x32d021);let p=class extends _0x547c6d{constructor(_0x530373,_0x5e072e,_0x29aea0,_0x2e88c1,_0x5e34a9,_0x3801c2,_0xced7cf,_0x36c3db){const _0x3d3fea=_0x28d4a4;super(),g(this,_0x3d3fea(0xdc),null),(this[_0x3d3fea(0x8a)]=_0x530373,this[_0x3d3fea(0xb3)]=_0x5e072e,this[_0x3d3fea(0x11e)]=_0x29aea0,this['_historyManagerService']=_0x2e88c1,this[_0x3d3fea(0x125)]=_0x5e34a9,this[_0x3d3fea(0x11c)]=_0x3801c2,this['_collaborationController']=_0xced7cf,this['_localCacheService']=_0x36c3db,this[_0x3d3fea(0xc6)]());}[_0x28d4a4(0xc6)](){const _0x446eed=_0x28d4a4;[b,W]['forEach'](_0xc95f15=>this[_0x446eed(0xf9)](_0x1ec54e(this[_0x446eed(0x8a)][_0x446eed(0xe2)](_0xc95f15)))),this[_0x446eed(0xf9)](this[_0x446eed(0x11e)][_0x446eed(0xd9)](_0x446eed(0x9f),V)),this[_0x446eed(0xb3)]['mergeMenu'](fi),this['disposeWithMe'](this[_0x446eed(0x8a)][_0x446eed(0xac)](_0x19adb2=>{const _0x1987a1=_0x446eed;if(_0x19adb2['id']===_0x20ea47['id']){this[_0x1987a1(0x11c)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x17d5cd[_0x1987a1(0x104)],'duration':0x1388});const {unitId:_0x50c5a5}=_0x19adb2['params'],_0x613d47=this['_collaborationController'][_0x1987a1(0xca)](_0x50c5a5),_0x271c2c=_0x501715([_0x613d47[_0x1987a1(0xd7)][_0x1987a1(0xb2)],_0x613d47['state$']])['subscribe'](async([_0x27f8b7,_0x5409ac])=>{const _0x212156=_0x1987a1;var _0x2714d0;_0x27f8b7['eventID']===_0x442c5e[_0x212156(0xeb)]&&(_0x5409ac==null?void 0x0:_0x5409ac[_0x212156(0x8b)])===_0x1b925f[_0x212156(0xea)]&&_0x27f8b7['data'][_0x212156(0x105)][_0x212156(0x10d)](_0x8549e2=>_0x8549e2['id']===_0x20ea47['id'])&&(this[_0x212156(0x128)][_0x212156(0xf7)](),_0x271c2c[_0x212156(0x99)](),this[_0x212156(0xdc)]&&clearTimeout(this[_0x212156(0xdc)]),await((_0x2714d0=this[_0x212156(0xfa)])==null?void 0x0:_0x2714d0[_0x212156(0x10a)]()),setTimeout(()=>window[_0x212156(0xd3)]['reload']()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x1ef59c=_0x1987a1;_0x271c2c[_0x1ef59c(0x99)](),this[_0x1ef59c(0x11c)]['show']({'content':this[_0x1ef59c(0x125)]['t']('editHistory.panel.revertFailed'),'type':_0x17d5cd[_0x1ef59c(0x115)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x4ccfc6),m(0x1,_0x29ebf4),m(0x2,_0x46c454(_0x24ca35)),m(0x3,_0x46c454(f)),m(0x4,_0x46c454(_0xc7137)),m(0x5,_0x3ba77a),m(0x6,_0x46c454(_0x348bd1)),m(0x7,_0x8b9c29)],p);var Si=Object[_0x28d4a4(0xa9)],Ci=(_0x2f66cd,_0x463f0f,_0x4ee4f9,_0x3934c6)=>{const _0x130797=_0x28d4a4;for(var _0x659e95=_0x3934c6>0x1?void 0x0:_0x3934c6?Si(_0x463f0f,_0x4ee4f9):_0x463f0f,_0x44ff86=_0x2f66cd[_0x130797(0xe7)]-0x1,_0x496283;_0x44ff86>=0x0;_0x44ff86--)(_0x496283=_0x2f66cd[_0x44ff86])&&(_0x659e95=_0x496283(_0x659e95)||_0x659e95);return _0x659e95;},R=(_0x1b7c0a,_0x15342d)=>(_0x40201d,_0x404e1a)=>_0x15342d(_0x40201d,_0x404e1a,_0x1b7c0a);const yi=_0x28d4a4(0x110);var _;let H=(_=class extends _0x324003{constructor(_0x17db0e=N,_0x5f431a,_0x48bda2){const _0x3a7349=_0x28d4a4;super(),this[_0x3a7349(0xe5)]=_0x17db0e,this[_0x3a7349(0xfd)]=_0x5f431a,this[_0x3a7349(0x108)]=_0x48bda2;const {menu:_0x388914,..._0x248c32}=_0x242ed3({},N,this[_0x3a7349(0xe5)]);_0x388914&&this['_configService'][_0x3a7349(0x111)](_0x3a7349(0xa7),_0x388914,{'merge':!0x0}),this[_0x3a7349(0x108)][_0x3a7349(0x111)](U,_0x248c32),this[_0x3a7349(0xe5)][_0x3a7349(0xfc)]&&this[_0x3a7349(0x108)][_0x3a7349(0x111)](G,this['_config']['univerContainerId']);}[_0x28d4a4(0xbd)](){const _0x435ecd=_0x28d4a4;[[f],[p]][_0x435ecd(0xb9)](_0x15d24d=>this['_injector'][_0x435ecd(0xc1)](_0x15d24d));}[_0x28d4a4(0x109)](){const _0x2aeb7d=_0x28d4a4;this[_0x2aeb7d(0xfd)][_0x2aeb7d(0x121)](p);}},g(_,_0x28d4a4(0xf3),_0x1b48a5[_0x28d4a4(0xa4)]),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0x46c454(_0xaa3bc2)),R(0x2,_0x2527f1)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x2de113=_0x5d0b;(function(_0x1c6782,_0x73d585){const _0x8adae1=_0x5d0b,_0x122289=_0x1c6782();while(!![]){try{const _0x1166b6=parseInt(_0x8adae1(0x222))/0x1+-parseInt(_0x8adae1(0x23f))/0x2*(-parseInt(_0x8adae1(0x296))/0x3)+-parseInt(_0x8adae1(0x232))/0x4+-parseInt(_0x8adae1(0x260))/0x5+parseInt(_0x8adae1(0x298))/0x6+parseInt(_0x8adae1(0x295))/0x7+parseInt(_0x8adae1(0x244))/0x8;if(_0x1166b6===_0x73d585)break;else _0x122289['push'](_0x122289['shift']());}catch(_0x53c4ab){_0x122289['push'](_0x122289['shift']());}}}(_0x2838,0x2aee6));var Y=Object[_0x2de113(0x1ff)],B=(_0xc925a5,_0x3ac1a9,_0x39cd2a)=>_0x3ac1a9 in _0xc925a5?Y(_0xc925a5,_0x3ac1a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39cd2a}):_0xc925a5[_0x3ac1a9]=_0x39cd2a,g=(_0x42e09a,_0x57ad11,_0x45681e)=>B(_0x42e09a,typeof _0x57ad11!=_0x2de113(0x255)?_0x57ad11+'':_0x57ad11,_0x45681e);import{Inject as _0x5cc2a3,LocaleService as _0x3b3f40,IUniverInstanceService as _0x33d5fa,IConfigService as _0x126263,ICommandService as _0x40431d,IPermissionService as _0x24bb5e,ThemeService as _0x5d70a0,Disposable as _0x211543,DisposableCollection as _0x5a628b,Univer as _0x273ca0,IAuthzIoService as _0x4013aa,CommandType as _0x3247c7,UniverInstanceType as _0x574692,RxDisposable as _0xdc68f5,toDisposable as _0x4f70d0,Plugin as _0x15ae03,merge as _0x2eb275,Injector as _0x1a7a2a}from'@univerjs/core';import{UniverCollaborationPlugin as _0x527b45,RevertRevisionMutation as _0x5b4f38,CollaborationEvent as _0x1f856b}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x46acb8,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5746c2,CollaborationController as _0x103138,ILocalCacheService as _0x577194,CollaborationStatus as _0x1dcc62}from'@univerjs-pro/collaboration-client';import{MessageType as _0x2ec489}from'@univerjs/design';import{useRef as _0x73ef6,createElement as _0x1269ef,forwardRef as _0x29e737}from'react';import{IMessageService as _0x25a351,IDialogService as _0x5f4123,ISidebarService as _0x167942,UniverUIPlugin as _0x5f544f,getMenuHiddenObservable as _0x163745,MenuItemType as _0x38ef6f,RibbonStartGroup as _0x2efcdc,IMenuManagerService as _0x249b00,ComponentManager as _0x978bba}from'@univerjs/ui';import{BehaviorSubject as _0x295e57,combineLatest as _0x3c91c4}from'rxjs';import{RangeProtectionRuleModel as _0x48a700,UniverSheetsPlugin as _0x49fea5,WorkbookEditablePermission as _0xf18c79,WorksheetEditPermission as _0x48bb0c,RangeProtectionPermissionEditPoint as _0x22bcd0,WorkbookRecoverHistoryPermission as _0xeb478c,getSheetCommandTarget as _0x222e70,WorkbookViewHistoryPermission as _0x1d2c5c}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x79aed5,HistoryManagerService as _0x40fb4f,HistoryModeStatus as _0x8c8cc4}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4fe4ab,UniverLicensePlugin as _0x29294f}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x5c0776}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x279100}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x3343b3}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x48ad0e}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5c2ab8}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x2c6b15}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x172140}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x2880d3}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x455b2d,IImageIoService as _0x39ac0c}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x208345}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0xaf25e}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48afa7}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x1ffa11}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x354a61,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x49a70e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3c7549}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4099d1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x50d894}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x55d161}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x2a0d26}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2e19b6}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3549bc}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1f02de}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x2c38f2}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x56ebe9}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x53c1ed}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x3efa97}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x352b5d}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x22c44a,getCurrentRangeDisable$ as _0x3dbe19}from'@univerjs/sheets-ui';const U=_0x2de113(0x25c),N={};function F({ref:_0x2b0e65,..._0x3ae743}){const _0x1c14cd=_0x2de113,{icon:_0x9d6632,id:_0x73a585,className:_0x51f4ba,extend:_0x3281bf,..._0x2deaf2}=_0x3ae743,_0x40cc3d=(_0x1c14cd(0x224)+_0x73a585+'\x20'+(_0x51f4ba||''))[_0x1c14cd(0x299)](),_0x42f9f2=_0x73ef6('_'+hi());return j(_0x9d6632,''+_0x73a585,{'defIds':_0x9d6632[_0x1c14cd(0x1f7)],'idSuffix':_0x42f9f2[_0x1c14cd(0x269)]},{'ref':_0x2b0e65,'className':_0x40cc3d,..._0x2deaf2},_0x3281bf);}function j(_0x493e8b,_0x4af4a4,_0x41d20e,_0xfca14f,_0xcc026f){const _0x4ab1d0=_0x2de113;return _0x1269ef(_0x493e8b[_0x4ab1d0(0x286)],{'key':_0x4af4a4,...ci(_0x493e8b,_0x41d20e,_0xcc026f),..._0xfca14f},(li(_0x493e8b,_0x41d20e)[_0x4ab1d0(0x226)]||[])['map']((_0x513ed8,_0x505865)=>j(_0x513ed8,_0x4af4a4+'-'+_0x493e8b[_0x4ab1d0(0x286)]+'-'+_0x505865,_0x41d20e,void 0x0,_0xcc026f)));}function ci(_0x3ac60c,_0x582a5a,_0x1cd0ec){const _0x4e604a=_0x2de113,_0x359fa8={..._0x3ac60c[_0x4e604a(0x282)]};_0x1cd0ec!=null&&_0x1cd0ec['colorChannel1']&&_0x359fa8['fill']===_0x4e604a(0x251)&&(_0x359fa8[_0x4e604a(0x223)]=_0x1cd0ec[_0x4e604a(0x251)]),_0x3ac60c[_0x4e604a(0x286)]===_0x4e604a(0x29d)&&_0x359fa8['id']&&(_0x359fa8['id']=_0x359fa8['id']+_0x582a5a[_0x4e604a(0x218)]),Object['entries'](_0x359fa8)[_0x4e604a(0x250)](([_0x5e2b3f,_0x126fec])=>{const _0x2b0f63=_0x4e604a;_0x5e2b3f==='mask'&&typeof _0x126fec==_0x2b0f63(0x290)&&(_0x359fa8[_0x5e2b3f]=_0x126fec['replace'](/url\(#(.*)\)/,'url(#$1'+_0x582a5a[_0x2b0f63(0x218)]+')'));});const {defIds:_0x5252de}=_0x582a5a;return!_0x5252de||_0x5252de[_0x4e604a(0x23d)]===0x0||(_0x3ac60c[_0x4e604a(0x286)]==='use'&&_0x359fa8[_0x4e604a(0x20f)]&&(_0x359fa8[_0x4e604a(0x20f)]=_0x359fa8[_0x4e604a(0x20f)]+_0x582a5a[_0x4e604a(0x218)]),Object[_0x4e604a(0x252)](_0x359fa8)[_0x4e604a(0x250)](([_0x4b36b7,_0x4a87a7])=>{const _0x4cce07=_0x4e604a;typeof _0x4a87a7==_0x4cce07(0x290)&&(_0x359fa8[_0x4b36b7]=_0x4a87a7[_0x4cce07(0x228)](/url\(#(.*)\)/,_0x4cce07(0x284)+_0x582a5a[_0x4cce07(0x218)]+')'));})),_0x359fa8;}function _0x5d0b(_0x4d9021,_0x8baf1a){_0x4d9021=_0x4d9021-0x1f4;const _0x2838d9=_0x2838();let _0x5d0b4b=_0x2838d9[_0x4d9021];return _0x5d0b4b;}function li(_0x1a18d2,_0x4c2fec){const _0x21086b=_0x2de113;var _0x5cb609;const {defIds:_0x155c4b}=_0x4c2fec;return!_0x155c4b||_0x155c4b['length']===0x0?_0x1a18d2:_0x1a18d2[_0x21086b(0x286)]===_0x21086b(0x210)&&((_0x5cb609=_0x1a18d2[_0x21086b(0x226)])!=null&&_0x5cb609['length'])?{..._0x1a18d2,'children':_0x1a18d2[_0x21086b(0x226)][_0x21086b(0x29c)](_0x174f52=>typeof _0x174f52[_0x21086b(0x282)]['id']==_0x21086b(0x290)&&_0x155c4b&&_0x155c4b[_0x21086b(0x21d)](_0x174f52['attrs']['id'])?{..._0x174f52,'attrs':{..._0x174f52['attrs'],'id':_0x174f52[_0x21086b(0x282)]['id']+_0x4c2fec['idSuffix']}}:_0x174f52)}:_0x1a18d2;}function hi(){const _0x121159=_0x2de113;return Math['random']()[_0x121159(0x1fd)](0x24)[_0x121159(0x219)](0x2,0x8);}function _0x2838(){const _0x5003b9=['triggerLoadVersions','pluginName','historyListServerUrl','_initContainer','\x20has\x20been\x20registered.','univer-history-container','_config','currentColor','_messageService','100%','register','mergeMenu','attrs','history-icon_clip0_907_281','url(#$1','getConfig','tag','_disposableCollection','div','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','dispose','_initPlugins','onStarting','left','HistoryIcon','_menuManagerService','string','values','add','historyUniver','getSheets','1818803HbmBHJ','267585WpEsdY','onCommandExecuted','549432bWnWCp','trim','darkMode$','./worker.js','map','mask','historyUniver$','style','show','editHistory.panel.reverting','_revertErrorTimer','_localCacheService','getOwnPropertyDescriptor','invoke','uComp','defIds','reload','url(#history-icon_clip0_907_281)','path','Entered','setLocale','toString','_historyUniver$','defineProperty','executeCommand','svg','composePermission','_initListener','disposeWithMe','UNIVER_UNKNOWN','currentTheme$','set','none','display','1000','getAllPlugins','params','absolute','type','xlink:href','defs','_pluginMap','editHistory.panel.revertFailed','eventID','_univerInstanceService','SYNCED','position','_injector','idSuffix','substring','_permissionService','_initUniver','_componentManager','includes','onSteady','mutations','createElement','setTheme','26309neiBFJ','fill','univerjs-icon\x20univerjs-icon-','_commandService','children','exhaustSavingTask','replace','_init','editHistory.panel.title','displayName','http://www.w3.org/2000/svg','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','unMountHistoryContent','_localeService','UniverIcon','state$','1140412MQRJTU','_checkCanRevert','revertRevision$','univer.operation.exit-edit-history','from','registerPlugin','univer.operation.toggle-edit-history','_historyManagerService','top','OPERATION','data','length','getCurrentLocale','2OXJXuY','width','CHANGESET_ACK','UNIVER_CONTAINER_ID','M0\x200H16V16H0z','1757256htdHZM','workerURL','flat','Error','get','_configService','getElementById','location','appendChild','getSubunitRuleList','clipPath','1em','forEach','colorChannel1','entries','getLocales','height','symbol','getSheetId','subscribe','0\x200\x2016\x2016','event$','history-container','_themeService','edit-history-loader.config','value','assign','every','1128065QnukVN','white','getCollabEntity','_dialogService','mountHistoryContent','[HistoryLoaderService]:\x20Plugin\x20','registerCommand','setConfig','editHistory.panel.listFetchError','current','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','__getInjector','dataset','Loading','BUTTON','permissionId','getUnit','next','_selectionProtectionRuleModel','zIndex','unsubscribe','_collaborationController'];_0x2838=function(){return _0x5003b9;};return _0x2838();}F['displayName']=_0x2de113(0x230);const ui={'tag':_0x2de113(0x201),'attrs':{'xmlns':_0x2de113(0x22c),'fill':_0x2de113(0x208),'viewBox':_0x2de113(0x258),'width':_0x2de113(0x24f),'height':_0x2de113(0x24f)},'children':[{'tag':'g','attrs':{'fill':_0x2de113(0x27d),'clipPath':_0x2de113(0x1f9)},'children':[{'tag':'path','attrs':{'d':_0x2de113(0x22d)}},{'tag':_0x2de113(0x1fa),'attrs':{'d':_0x2de113(0x26a)}}]},{'tag':_0x2de113(0x210),'attrs':{},'children':[{'tag':_0x2de113(0x24e),'attrs':{'id':_0x2de113(0x283)},'children':[{'tag':_0x2de113(0x1fa),'attrs':{'fill':_0x2de113(0x261),'d':_0x2de113(0x243)}}]}]}],'defIds':['history-icon_clip0_907_281']},V=_0x29e737(function(_0x33caed,_0x3d7a75){const _0x58cec9=_0x2de113;return _0x1269ef(F,Object[_0x58cec9(0x25e)]({},_0x33caed,{'id':'history-icon','ref':_0x3d7a75,'icon':ui}));});V[_0x2de113(0x22b)]=_0x2de113(0x28e);var gi=Object[_0x2de113(0x1f4)],mi=(_0x572f42,_0x2c5a3c,_0x39ec4f,_0x2346a2)=>{const _0x5fdc5d=_0x2de113;for(var _0x5b6aef=_0x2346a2>0x1?void 0x0:_0x2346a2?gi(_0x2c5a3c,_0x39ec4f):_0x2c5a3c,_0x1e5a7b=_0x572f42[_0x5fdc5d(0x23d)]-0x1,_0x15b44c;_0x1e5a7b>=0x0;_0x1e5a7b--)(_0x15b44c=_0x572f42[_0x1e5a7b])&&(_0x5b6aef=_0x15b44c(_0x5b6aef)||_0x5b6aef);return _0x5b6aef;},l=(_0x2c13c9,_0x34aaf9)=>(_0x27464d,_0x271282)=>_0x34aaf9(_0x27464d,_0x271282,_0x2c13c9);const vi='univer-container',G=_0x2de113(0x242),d=_0x2de113(0x27b);let f=class extends _0x211543{constructor(_0x547dbd,_0x51b9e8,_0x5cac0d,_0x5a3fc6,_0x1e798a,_0x5a60cf,_0x4fee9d,_0x47cb3a,_0x45ee9c,_0x2bb391){const _0x2d06b5=_0x2de113;super(),g(this,'_historyUniver$',new _0x295e57(null)),g(this,_0x2d06b5(0x29e),this[_0x2d06b5(0x1fe)]['asObservable']()),g(this,'_disposableCollection',new _0x5a628b()),g(this,_0x2d06b5(0x211),new Map()),(this[_0x2d06b5(0x22f)]=_0x547dbd,this['_univerInstanceService']=_0x51b9e8,this[_0x2d06b5(0x249)]=_0x5cac0d,this[_0x2d06b5(0x225)]=_0x5a3fc6,this[_0x2d06b5(0x27e)]=_0x1e798a,this[_0x2d06b5(0x21a)]=_0x5a60cf,this[_0x2d06b5(0x272)]=_0x4fee9d,this[_0x2d06b5(0x263)]=_0x47cb3a,this['_sidebarService']=_0x45ee9c,this['_themeService']=_0x2bb391,this['_init']());}get[_0x2de113(0x293)](){const _0xa2c942=_0x2de113;return this[_0xa2c942(0x1fe)][_0xa2c942(0x25d)];}[_0x2de113(0x229)](){const _0x3cc99a=_0x2de113;this['_initContainer'](),this[_0x3cc99a(0x28b)]();}[_0x2de113(0x279)](){const _0x53873e=_0x2de113;var _0x34fdee;const _0x630e14=(_0x34fdee=this[_0x53873e(0x249)]['getConfig'](G))!=null?_0x34fdee:vi,_0x1ba639=document[_0x53873e(0x24a)](_0x630e14);if(!_0x1ba639)return;const _0x1e2d7b=document[_0x53873e(0x220)](_0x53873e(0x288));_0x1e2d7b['id']=d,_0x1e2d7b[_0x53873e(0x26c)][_0x53873e(0x1f6)]=_0x53873e(0x25a),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x216)]=_0x53873e(0x20d),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x23a)]='0',_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x28d)]='0',_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x240)]=_0x53873e(0x27f),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x254)]=_0x53873e(0x27f),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x273)]=_0x53873e(0x20a),_0x1e2d7b['style']['display']=_0x53873e(0x208),_0x1ba639[_0x53873e(0x24c)](_0x1e2d7b);}[_0x2de113(0x28b)](){const _0x3e73f4=_0x2de113;var _0x2c19f5,_0x1100ca,_0x28fb98,_0xf1ced0;[[_0x48afa7],[_0x5f544f,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5f4123,null]]}],[_0x1ffa11],[_0x455b2d,{'override':[[_0x39ac0c,null]]}],[_0x172140,{'hasScroll':!0x1}],[_0x2880d3],[_0x352b5d],[_0x49fea5,{'notExecuteFormula':!0x0}],[_0x22c44a],[_0x2c38f2],[_0x56ebe9],[_0x527b45],[_0x3549bc],[_0x1f02de],[_0x3c7549],[_0x4099d1],[_0x53c1ed],[_0x3efa97],[_0x2c6b15],[_0x50d894],[_0x55d161],[_0xaf25e,{'notExecuteFormula':!0x0}],[_0x354a61,{'workerURL':(_0x1100ca=(_0x2c19f5=this['_configService'][_0x3e73f4(0x285)](_0x49a70e))==null?void 0x0:_0x2c19f5[_0x3e73f4(0x245)])!=null?_0x1100ca:_0x3e73f4(0x29b)}],[_0x208345],[_0x2a0d26],[_0x2e19b6],[_0x48ad0e],[_0x5c2ab8],[_0x5c0776],[_0x279100],[_0x3343b3,{'notExecuteFormula':!0x0}],[_0x79aed5,{'historyListServerUrl':(_0x28fb98=this[_0x3e73f4(0x249)][_0x3e73f4(0x285)](U))==null?void 0x0:_0x28fb98[_0x3e73f4(0x278)],'historyPanelComponentKey':(_0xf1ced0=this[_0x3e73f4(0x249)][_0x3e73f4(0x285)](U))==null?void 0x0:_0xf1ced0['historyPanelComponentKey']}]][_0x3e73f4(0x250)](([_0x354308,_0xcce010])=>this[_0x3e73f4(0x237)](_0x354308,_0xcce010));}[_0x2de113(0x28a)](){const _0x5c451b=_0x2de113;super[_0x5c451b(0x28a)](),this['unMountHistoryContent'](),this[_0x5c451b(0x211)]['clear']();}[_0x2de113(0x237)](_0x318714,_0xf4e93f,_0x3e6f65){const _0x580b86=_0x2de113;if(this['_pluginMap']['has'](_0x318714[_0x580b86(0x277)])&&!_0x3e6f65)throw new Error(_0x580b86(0x265)+_0x318714[_0x580b86(0x277)]+_0x580b86(0x27a));this[_0x580b86(0x211)][_0x580b86(0x207)](_0x318714['pluginName'],[_0x318714,_0xf4e93f]);}[_0x2de113(0x20b)](){const _0x221321=_0x2de113;return Array[_0x221321(0x236)](this[_0x221321(0x211)][_0x221321(0x291)]());}['mountHistoryContent'](_0x532a3e){const _0x1467f5=_0x2de113,_0x5af558=document[_0x1467f5(0x24a)](d);_0x5af558&&(_0x5af558[_0x1467f5(0x29f)]['display']='block',this[_0x1467f5(0x21b)](_0x532a3e,d));}['unMountHistoryContent'](){const _0x255781=_0x2de113;var _0x1522ff;this['_disposableCollection']['dispose'](),(_0x1522ff=this[_0x255781(0x293)])==null||_0x1522ff[_0x255781(0x28a)](),this['_historyUniver$'][_0x255781(0x271)](null);const _0x42ccc6=document['getElementById'](d);_0x42ccc6&&(_0x42ccc6[_0x255781(0x29f)][_0x255781(0x209)]=_0x255781(0x208));}[_0x2de113(0x21b)](_0x50f391,_0x762071){const _0x409698=_0x2de113;if(this['historyUniver'])return;const _0x1d216e=new _0x273ca0({'locales':{[this['_localeService'][_0x409698(0x23e)]()]:this[_0x409698(0x22f)][_0x409698(0x253)]()},'override':[[_0x4013aa,{'useClass':_0x46acb8}]]}),_0x309d27=_0x1d216e[_0x409698(0x26b)]();this['disposeWithMe'](this[_0x409698(0x25b)][_0x409698(0x29a)]['subscribe'](_0x5d71d5=>{const _0x43a1c2=_0x409698;_0x309d27[_0x43a1c2(0x248)](_0x5d70a0)['setDarkMode'](_0x5d71d5);})),this['disposeWithMe'](this[_0x409698(0x25b)][_0x409698(0x206)][_0x409698(0x257)](_0x2f95b8=>{const _0x2daeae=_0x409698;_0x309d27[_0x2daeae(0x248)](_0x5d70a0)[_0x2daeae(0x221)](_0x2f95b8);})),_0x309d27[_0x409698(0x248)](_0x3b3f40)[_0x409698(0x1fc)](this[_0x409698(0x22f)][_0x409698(0x23e)]()),_0x309d27['get'](_0x126263)[_0x409698(0x267)](_0x5746c2,this[_0x409698(0x249)][_0x409698(0x285)](_0x5746c2));const _0x59a29c=this[_0x409698(0x249)][_0x409698(0x285)](_0x4fe4ab);_0x59a29c&&_0x1d216e['registerPlugin'](_0x29294f,{'license':_0x59a29c['ls']}),this[_0x409698(0x211)][_0x409698(0x250)](([_0x58f93e,_0x2fe0bc])=>{_0x1d216e['registerPlugin'](_0x58f93e,_0x2fe0bc);}),_0x309d27[_0x409698(0x1f5)](_0x22e232=>{this['_initListener'](_0x22e232,_0x50f391);}),this['_historyUniver$']['next'](_0x1d216e);const _0x271e79=_0x309d27[_0x409698(0x248)](_0x40fb4f),_0x43681b=this['_checkCanRevert'](_0x50f391);_0x271e79[_0x409698(0x276)](_0x50f391,_0x762071,_0x43681b);}[_0x2de113(0x203)](_0x3c179b,_0x359f70){const _0x587ac4=_0x2de113,_0x356603=_0x3c179b['get'](_0x40fb4f);this[_0x587ac4(0x287)][_0x587ac4(0x292)](_0x356603['status$'][_0x587ac4(0x257)](_0x445bb6=>{const _0x5152cb=_0x587ac4;switch(_0x445bb6){case _0x8c8cc4[_0x5152cb(0x1fb)]:this[_0x5152cb(0x263)]['closeAll'](),this['_sidebarService']['close']();break;case _0x8c8cc4['Exited']:this[_0x5152cb(0x225)][_0x5152cb(0x200)](W['id']),this[_0x5152cb(0x22e)]();break;case _0x8c8cc4[_0x5152cb(0x247)]:this[_0x5152cb(0x22e)](),this[_0x5152cb(0x27e)][_0x5152cb(0x2a0)]({'content':this[_0x5152cb(0x22f)]['t'](_0x5152cb(0x268)),'type':_0x2ec489[_0x5152cb(0x247)],'duration':0xbb8});break;}})),this[_0x587ac4(0x287)][_0x587ac4(0x292)](_0x356603[_0x587ac4(0x234)]['subscribe'](async _0x2f14e2=>{_0x2f14e2&&this['_commandService']['executeCommand'](_0x5b4f38['id'],{'unitId':_0x359f70,'revision':_0x2f14e2});}));}[_0x2de113(0x233)](_0x58cd62){const _0x169035=_0x2de113,_0x3418f1=this[_0x169035(0x214)][_0x169035(0x270)](_0x58cd62)[_0x169035(0x294)]()['map'](_0x292c31=>_0x292c31[_0x169035(0x256)]()),_0x59e435=new _0xf18c79(_0x58cd62)['id'],_0x40c33a=_0x3418f1[_0x169035(0x29c)](_0x3abc8f=>new _0x48bb0c(_0x58cd62,_0x3abc8f)['id']),_0x12adb8=_0x3418f1[_0x169035(0x29c)](_0x79fcbf=>this[_0x169035(0x272)][_0x169035(0x24d)](_0x58cd62,_0x79fcbf)['map'](_0x3fc849=>new _0x22bcd0(_0x58cd62,_0x79fcbf,_0x3fc849[_0x169035(0x26f)])['id']))[_0x169035(0x246)](),_0x602ae9=new _0xeb478c(_0x58cd62)['id'];return this[_0x169035(0x21a)][_0x169035(0x202)]([_0x59e435,..._0x40c33a,..._0x12adb8,_0x602ae9])[_0x169035(0x25f)](_0x4aca44=>!!_0x4aca44['value']);}};f=mi([l(0x0,_0x5cc2a3(_0x3b3f40)),l(0x1,_0x33d5fa),l(0x2,_0x126263),l(0x3,_0x40431d),l(0x4,_0x25a351),l(0x5,_0x24bb5e),l(0x6,_0x5cc2a3(_0x48a700)),l(0x7,_0x5cc2a3(_0x5f4123)),l(0x8,_0x5cc2a3(_0x167942)),l(0x9,_0x5cc2a3(_0x5d70a0))],f);const b={'id':_0x2de113(0x238),'type':_0x3247c7[_0x2de113(0x23b)],'handler':_0x4bcb83=>{const _0x41dd06=_0x2de113,_0x573bbc=_0x4bcb83[_0x41dd06(0x248)](f),_0x511671=_0x4bcb83[_0x41dd06(0x248)](_0x33d5fa),{unitId:_0x45f026}=_0x222e70(_0x511671)||{};return _0x45f026?(_0x573bbc[_0x41dd06(0x264)](_0x45f026),!0x0):!0x1;}},W={'id':_0x2de113(0x235),'type':_0x3247c7['OPERATION'],'handler':()=>!0x0};function di(_0x1f4a81){const _0x3377c5=_0x2de113;return{'id':b['id'],'type':_0x38ef6f[_0x3377c5(0x26e)],'icon':'HistoryIcon','tooltip':_0x3377c5(0x22a),'hidden$':_0x163745(_0x1f4a81,_0x574692['UNIVER_SHEET']),'disabled$':_0x3dbe19(_0x1f4a81,{'workbookTypes':[_0xf18c79,_0x1d2c5c],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x2efcdc['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object['getOwnPropertyDescriptor'],pi=(_0x419a6b,_0x4a134b,_0x4abcc3,_0x3b0b60)=>{const _0x474aaa=_0x2de113;for(var _0x4473a4=_0x3b0b60>0x1?void 0x0:_0x3b0b60?_i(_0x4a134b,_0x4abcc3):_0x4a134b,_0x55a66c=_0x419a6b[_0x474aaa(0x23d)]-0x1,_0x1565ed;_0x55a66c>=0x0;_0x55a66c--)(_0x1565ed=_0x419a6b[_0x55a66c])&&(_0x4473a4=_0x1565ed(_0x4473a4)||_0x4473a4);return _0x4473a4;},m=(_0x5c596f,_0x2ff0c8)=>(_0xe34b39,_0x2a62af)=>_0x2ff0c8(_0xe34b39,_0x2a62af,_0x5c596f);let p=class extends _0xdc68f5{constructor(_0xb9b840,_0x2b52cb,_0x274c10,_0x3f63f4,_0x6a4d8f,_0x5ccf97,_0x2df311,_0x161194){const _0x5d850e=_0x2de113;super(),g(this,_0x5d850e(0x2a2),null),(this[_0x5d850e(0x225)]=_0xb9b840,this[_0x5d850e(0x28f)]=_0x2b52cb,this['_componentManager']=_0x274c10,this[_0x5d850e(0x239)]=_0x3f63f4,this[_0x5d850e(0x22f)]=_0x6a4d8f,this['_messageService']=_0x5ccf97,this[_0x5d850e(0x275)]=_0x2df311,this[_0x5d850e(0x2a3)]=_0x161194,this[_0x5d850e(0x229)]());}['_init'](){const _0x51587f=_0x2de113;[b,W][_0x51587f(0x250)](_0x180fe3=>this[_0x51587f(0x204)](_0x4f70d0(this['_commandService'][_0x51587f(0x266)](_0x180fe3)))),this[_0x51587f(0x204)](this[_0x51587f(0x21c)][_0x51587f(0x280)](_0x51587f(0x28e),V)),this[_0x51587f(0x28f)][_0x51587f(0x281)](fi),this[_0x51587f(0x204)](this[_0x51587f(0x225)][_0x51587f(0x297)](_0x55a725=>{const _0x419565=_0x51587f;if(_0x55a725['id']===_0x5b4f38['id']){this[_0x419565(0x27e)][_0x419565(0x2a0)]({'content':this[_0x419565(0x22f)]['t'](_0x419565(0x2a1)),'type':_0x2ec489[_0x419565(0x26d)],'duration':0x1388});const {unitId:_0x1302fc}=_0x55a725[_0x419565(0x20c)],_0x517c8e=this[_0x419565(0x275)][_0x419565(0x262)](_0x1302fc),_0x18668e=_0x3c91c4([_0x517c8e['session'][_0x419565(0x259)],_0x517c8e[_0x419565(0x231)]])[_0x419565(0x257)](async([_0x5ab687,_0x752862])=>{const _0x33750b=_0x419565;var _0x54a0ca;_0x5ab687[_0x33750b(0x213)]===_0x1f856b[_0x33750b(0x241)]&&(_0x752862==null?void 0x0:_0x752862['status'])===_0x1dcc62[_0x33750b(0x215)]&&_0x5ab687[_0x33750b(0x23c)][_0x33750b(0x21f)]['some'](_0x4c670a=>_0x4c670a['id']===_0x5b4f38['id'])&&(this[_0x33750b(0x239)][_0x33750b(0x22e)](),_0x18668e[_0x33750b(0x274)](),this[_0x33750b(0x2a2)]&&clearTimeout(this['_revertErrorTimer']),await((_0x54a0ca=this[_0x33750b(0x2a3)])==null?void 0x0:_0x54a0ca[_0x33750b(0x227)]()),setTimeout(()=>window[_0x33750b(0x24b)][_0x33750b(0x1f8)]()));});this[_0x419565(0x2a2)]=setTimeout(()=>{const _0x542a02=_0x419565;_0x18668e[_0x542a02(0x274)](),this[_0x542a02(0x27e)][_0x542a02(0x2a0)]({'content':this[_0x542a02(0x22f)]['t'](_0x542a02(0x212)),'type':_0x2ec489[_0x542a02(0x247)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x40431d),m(0x1,_0x249b00),m(0x2,_0x5cc2a3(_0x978bba)),m(0x3,_0x5cc2a3(f)),m(0x4,_0x5cc2a3(_0x3b3f40)),m(0x5,_0x25a351),m(0x6,_0x5cc2a3(_0x103138)),m(0x7,_0x577194)],p);var Si=Object[_0x2de113(0x1f4)],Ci=(_0x5de638,_0x366e95,_0x4829b6,_0x40654f)=>{const _0x39abb3=_0x2de113;for(var _0x59b5ab=_0x40654f>0x1?void 0x0:_0x40654f?Si(_0x366e95,_0x4829b6):_0x366e95,_0x35175d=_0x5de638[_0x39abb3(0x23d)]-0x1,_0x589988;_0x35175d>=0x0;_0x35175d--)(_0x589988=_0x5de638[_0x35175d])&&(_0x59b5ab=_0x589988(_0x59b5ab)||_0x59b5ab);return _0x59b5ab;},R=(_0x44e531,_0x328634)=>(_0xa66c66,_0x372388)=>_0x328634(_0xa66c66,_0x372388,_0x44e531);const yi=_0x2de113(0x289);var _;let H=(_=class extends _0x15ae03{constructor(_0x100031=N,_0x5a68d2,_0x63a3d4){const _0x1e8fca=_0x2de113;super(),this[_0x1e8fca(0x27c)]=_0x100031,this['_injector']=_0x5a68d2,this[_0x1e8fca(0x249)]=_0x63a3d4;const {menu:_0x5626bb,..._0x34063f}=_0x2eb275({},N,this[_0x1e8fca(0x27c)]);_0x5626bb&&this[_0x1e8fca(0x249)][_0x1e8fca(0x267)]('menu',_0x5626bb,{'merge':!0x0}),this[_0x1e8fca(0x249)][_0x1e8fca(0x267)](U,_0x34063f),this['_config']['univerContainerId']&&this[_0x1e8fca(0x249)]['setConfig'](G,this[_0x1e8fca(0x27c)]['univerContainerId']);}[_0x2de113(0x28c)](){const _0x380400=_0x2de113;[[f],[p]][_0x380400(0x250)](_0x498b03=>this[_0x380400(0x217)]['add'](_0x498b03));}[_0x2de113(0x21e)](){const _0x494a0c=_0x2de113;this[_0x494a0c(0x217)][_0x494a0c(0x248)](p);}},g(_,_0x2de113(0x20e),_0x574692[_0x2de113(0x205)]),g(_,_0x2de113(0x277),yi),_);H=Ci([R(0x1,_0x5cc2a3(_0x1a7a2a)),R(0x2,_0x126263)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x28d4a4=_0x5c8e;(function(_0xa20acb,_0x5ed8c9){const _0x3bfad2=_0x5c8e,_0x29810d=_0xa20acb();while(!![]){try{const _0x8217fe=parseInt(_0x3bfad2(0xb4))/0x1+-parseInt(_0x3bfad2(0x113))/0x2+parseInt(_0x3bfad2(0x9b))/0x3*(-parseInt(_0x3bfad2(0x10b))/0x4)+-parseInt(_0x3bfad2(0xa0))/0x5+parseInt(_0x3bfad2(0x9e))/0x6+parseInt(_0x3bfad2(0x8c))/0x7+parseInt(_0x3bfad2(0x10e))/0x8*(parseInt(_0x3bfad2(0xb5))/0x9);if(_0x8217fe===_0x5ed8c9)break;else _0x29810d['push'](_0x29810d['shift']());}catch(_0x450c1e){_0x29810d['push'](_0x29810d['shift']());}}}(_0x1c47,0x67f3b));var Y=Object['defineProperty'],B=(_0x2c97d4,_0x1acba2,_0x11b547)=>_0x1acba2 in _0x2c97d4?Y(_0x2c97d4,_0x1acba2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11b547}):_0x2c97d4[_0x1acba2]=_0x11b547,g=(_0x4ce485,_0x941cc,_0x5ae1b2)=>B(_0x4ce485,typeof _0x941cc!='symbol'?_0x941cc+'':_0x941cc,_0x5ae1b2);import{Inject as _0x46c454,LocaleService as _0xc7137,IUniverInstanceService as _0x17dea0,IConfigService as _0x2527f1,ICommandService as _0x4ccfc6,IPermissionService as _0x1691d8,ThemeService as _0x4a0048,Disposable as _0x11f04e,DisposableCollection as _0x1096e7,Univer as _0x2b206b,IAuthzIoService as _0x36ad80,CommandType as _0x176ea2,UniverInstanceType as _0x1b48a5,RxDisposable as _0x547c6d,toDisposable as _0x1ec54e,Plugin as _0x324003,merge as _0x242ed3,Injector as _0xaa3bc2}from'@univerjs/core';import{UniverCollaborationPlugin as _0x593c16,RevertRevisionMutation as _0x20ea47,CollaborationEvent as _0x442c5e}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x381e88,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e6ad0,CollaborationController as _0x348bd1,ILocalCacheService as _0x8b9c29,CollaborationStatus as _0x1b925f}from'@univerjs-pro/collaboration-client';import{MessageType as _0x17d5cd}from'@univerjs/design';import{useRef as _0x4c0168,createElement as _0x4ad07b,forwardRef as _0x46c5f0}from'react';import{IMessageService as _0x3ba77a,IDialogService as _0x5b349c,ISidebarService as _0xaa3e4d,UniverUIPlugin as _0x17bb2b,getMenuHiddenObservable as _0x2af65c,MenuItemType as _0x2f263a,RibbonStartGroup as _0x157b79,IMenuManagerService as _0x29ebf4,ComponentManager as _0x24ca35}from'@univerjs/ui';import{BehaviorSubject as _0x394d58,combineLatest as _0x501715}from'rxjs';import{RangeProtectionRuleModel as _0x467927,UniverSheetsPlugin as _0x13bd3e,WorkbookEditablePermission as _0x1c1798,WorksheetEditPermission as _0xf0f0c1,RangeProtectionPermissionEditPoint as _0x2bb7d9,WorkbookRecoverHistoryPermission as _0x4f1e7d,getSheetCommandTarget as _0x293682,WorkbookViewHistoryPermission as _0x435260}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x1d2ee2,HistoryManagerService as _0x77b50a,HistoryModeStatus as _0x347aa0}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x3bf7c0,UniverLicensePlugin as _0x53e7a7}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x291ecb}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x1786fc}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x37e050}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x30b9d4}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x364408}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x1b0993}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x7a73da}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x4c0c75}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x38a33c,IImageIoService as _0x321682}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x2801b8}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x40c6c2}from'@univerjs/engine-formula';function _0x5c8e(_0x22d724,_0x235b93){_0x22d724=_0x22d724-0x88;const _0x1c4735=_0x1c47();let _0x5c8e32=_0x1c4735[_0x22d724];return _0x5c8e32;}import{UniverRenderEnginePlugin as _0x35a05d}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x5ca7ac}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x48d937,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x5e32c6}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x1a43ef}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x286bab}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x65aeff}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x126307}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x3d69d5}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x368aac}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3f0407}from'@univerjs/sheets-filter';function _0x1c47(){const _0x3b41be=['_disposableCollection','left','_config','OTHERS','length','colorChannel1','UNIVER_CONTAINER_ID','SYNCED','CHANGESET_ACK','next','100%','historyListServerUrl','replace','M0\x200H16V16H0z','getSubunitRuleList','getCurrentLocale','type','setTheme','asObservable','_permissionService','unMountHistoryContent','_sidebarService','disposeWithMe','_localCacheService','defIds','univerContainerId','_injector','editHistory.panel.listFetchError','darkMode$','univerjs-icon\x20univerjs-icon-','getConfig','1000','attrs','Loading','mutations','substring','xlink:href','_configService','onSteady','exhaustSavingTask','2189084vTlQud','url(#$1','some','1558936ntVBPr','BUTTON','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','setConfig','height','1071480kMSSve','svg','Error','appendChild','clear','style','Exited','show','closeAll','_messageService','dispose','_componentManager','triggerLoadVersions','none','get','children','map','tag','_localeService','mountHistoryContent','position','_historyManagerService','absolute','random','every','currentColor','setDarkMode','includes','./worker.js','_commandService','status','2138157QhvgBb','univer.operation.exit-edit-history','getElementById','displayName','editHistory.panel.title','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','getAllPlugins','\x20has\x20been\x20registered.','UNIVER_SHEET','_initListener','_checkCanRevert','assign','getUnit','unsubscribe','clipPath','3tfgXXt','_pluginMap','invoke','4802442GjVjvY','HistoryIcon','2990585krRyGJ','history-container','display','univer-history-container','UNIVER_UNKNOWN','_historyUniver$','from','menu','defs','getOwnPropertyDescriptor','UniverIcon','history-icon_clip0_907_281','onCommandExecuted','path','workerURL','1em','uComp','composePermission','event$','_menuManagerService','26722nsNLgd','45BqvuSa','flat','getSheetId','_univerInstanceService','forEach','entries','toString','[HistoryLoaderService]:\x20Plugin\x20','onStarting','_initContainer','historyPanelComponentKey','Entered','add','_initUniver','OPERATION','_themeService','has','_init','dataset','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','history-icon','getCollabEntity','values','createElement','setLocale','historyUniver','executeCommand','historyUniver$','currentTheme$','subscribe','location','mask','pluginName','_dialogService','session','value','register','string','idSuffix','_revertErrorTimer','getSheets','0\x200\x2016\x2016','fill','registerPlugin','width','registerCommand'];_0x1c47=function(){return _0x3b41be;};return _0x1c47();}import{UniverSheetsFilterUIPlugin as _0x12cab8}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x40fd4d}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x15b5be}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x142267}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x1d13f8}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x3e1f23}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0xcbf460,getCurrentRangeDisable$ as _0x210efd}from'@univerjs/sheets-ui';const U='edit-history-loader.config',N={};function F({ref:_0x5d5e23,..._0x22b364}){const _0x4fca1c=_0x5c8e,{icon:_0x56ca74,id:_0x124470,className:_0x31115d,extend:_0x512a91,..._0x2fd60f}=_0x22b364,_0x2ddf61=(_0x4fca1c(0x100)+_0x124470+'\x20'+(_0x31115d||''))['trim'](),_0xd2fa37=_0x4c0168('_'+hi());return j(_0x56ca74,''+_0x124470,{'defIds':_0x56ca74[_0x4fca1c(0xfb)],'idSuffix':_0xd2fa37['current']},{'ref':_0x5d5e23,'className':_0x2ddf61,..._0x2fd60f},_0x512a91);}function j(_0x45965e,_0x259cc2,_0x16b2d7,_0x56a5c6,_0x20f682){const _0x1ea226=_0x5c8e;return _0x4ad07b(_0x45965e[_0x1ea226(0x124)],{'key':_0x259cc2,...ci(_0x45965e,_0x16b2d7,_0x20f682),..._0x56a5c6},(li(_0x45965e,_0x16b2d7)[_0x1ea226(0x122)]||[])['map']((_0x57c4c1,_0x402207)=>j(_0x57c4c1,_0x259cc2+'-'+_0x45965e['tag']+'-'+_0x402207,_0x16b2d7,void 0x0,_0x20f682)));}function ci(_0xf67526,_0x51448b,_0x306829){const _0x5dbf5c=_0x5c8e,_0x37ba52={..._0xf67526[_0x5dbf5c(0x103)]};_0x306829!=null&&_0x306829[_0x5dbf5c(0xe8)]&&_0x37ba52[_0x5dbf5c(0xdf)]==='colorChannel1'&&(_0x37ba52['fill']=_0x306829[_0x5dbf5c(0xe8)]),_0xf67526[_0x5dbf5c(0x124)]===_0x5dbf5c(0xd4)&&_0x37ba52['id']&&(_0x37ba52['id']=_0x37ba52['id']+_0x51448b['idSuffix']),Object[_0x5dbf5c(0xba)](_0x37ba52)[_0x5dbf5c(0xb9)](([_0x3ce3f2,_0x479c6b])=>{const _0xa83f1=_0x5dbf5c;_0x3ce3f2===_0xa83f1(0xd4)&&typeof _0x479c6b==_0xa83f1(0xda)&&(_0x37ba52[_0x3ce3f2]=_0x479c6b['replace'](/url\(#(.*)\)/,_0xa83f1(0x10c)+_0x51448b['idSuffix']+')'));});const {defIds:_0x39c9b2}=_0x51448b;return!_0x39c9b2||_0x39c9b2[_0x5dbf5c(0xe7)]===0x0||(_0xf67526[_0x5dbf5c(0x124)]==='use'&&_0x37ba52[_0x5dbf5c(0x107)]&&(_0x37ba52[_0x5dbf5c(0x107)]=_0x37ba52[_0x5dbf5c(0x107)]+_0x51448b[_0x5dbf5c(0xdb)]),Object[_0x5dbf5c(0xba)](_0x37ba52)[_0x5dbf5c(0xb9)](([_0x3e267b,_0x2371cc])=>{const _0xdb788c=_0x5dbf5c;typeof _0x2371cc==_0xdb788c(0xda)&&(_0x37ba52[_0x3e267b]=_0x2371cc[_0xdb788c(0xef)](/url\(#(.*)\)/,_0xdb788c(0x10c)+_0x51448b[_0xdb788c(0xdb)]+')'));})),_0x37ba52;}function li(_0x311ed4,_0x60dfa8){const _0x33d4e3=_0x5c8e;var _0x214074;const {defIds:_0x30f4cd}=_0x60dfa8;return!_0x30f4cd||_0x30f4cd['length']===0x0?_0x311ed4:_0x311ed4[_0x33d4e3(0x124)]===_0x33d4e3(0xa8)&&((_0x214074=_0x311ed4['children'])!=null&&_0x214074[_0x33d4e3(0xe7)])?{..._0x311ed4,'children':_0x311ed4[_0x33d4e3(0x122)][_0x33d4e3(0x123)](_0x3ef261=>typeof _0x3ef261[_0x33d4e3(0x103)]['id']=='string'&&_0x30f4cd&&_0x30f4cd[_0x33d4e3(0x88)](_0x3ef261[_0x33d4e3(0x103)]['id'])?{..._0x3ef261,'attrs':{..._0x3ef261['attrs'],'id':_0x3ef261[_0x33d4e3(0x103)]['id']+_0x60dfa8['idSuffix']}}:_0x3ef261)}:_0x311ed4;}function hi(){const _0x2ee01b=_0x5c8e;return Math[_0x2ee01b(0x12a)]()[_0x2ee01b(0xbb)](0x24)[_0x2ee01b(0x106)](0x2,0x8);}F[_0x28d4a4(0x8f)]=_0x28d4a4(0xaa);const ui={'tag':_0x28d4a4(0x114),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x28d4a4(0x120),'viewBox':_0x28d4a4(0xde),'width':_0x28d4a4(0xaf),'height':_0x28d4a4(0xaf)},'children':[{'tag':'g','attrs':{'fill':_0x28d4a4(0x12c),'clipPath':'url(#history-icon_clip0_907_281)'},'children':[{'tag':_0x28d4a4(0xad),'attrs':{'d':_0x28d4a4(0xc8)}},{'tag':_0x28d4a4(0xad),'attrs':{'d':_0x28d4a4(0x91)}}]},{'tag':_0x28d4a4(0xa8),'attrs':{},'children':[{'tag':_0x28d4a4(0x9a),'attrs':{'id':_0x28d4a4(0xab)},'children':[{'tag':_0x28d4a4(0xad),'attrs':{'fill':'white','d':_0x28d4a4(0xf0)}}]}]}],'defIds':[_0x28d4a4(0xab)]},V=_0x46c5f0(function(_0x2271dd,_0x2b6b85){const _0x41ab15=_0x28d4a4;return _0x4ad07b(F,Object[_0x41ab15(0x97)]({},_0x2271dd,{'id':_0x41ab15(0xc9),'ref':_0x2b6b85,'icon':ui}));});V[_0x28d4a4(0x8f)]=_0x28d4a4(0x9f);var gi=Object[_0x28d4a4(0xa9)],mi=(_0x203aae,_0x3e28c1,_0x1fa66c,_0x33c5bb)=>{const _0x33334b=_0x28d4a4;for(var _0x17cb9a=_0x33c5bb>0x1?void 0x0:_0x33c5bb?gi(_0x3e28c1,_0x1fa66c):_0x3e28c1,_0x5b8868=_0x203aae[_0x33334b(0xe7)]-0x1,_0x378b7f;_0x5b8868>=0x0;_0x5b8868--)(_0x378b7f=_0x203aae[_0x5b8868])&&(_0x17cb9a=_0x378b7f(_0x17cb9a)||_0x17cb9a);return _0x17cb9a;},l=(_0x5680bc,_0x3c5de2)=>(_0x509c51,_0x10a95f)=>_0x3c5de2(_0x509c51,_0x10a95f,_0x5680bc);const vi='univer-container',G=_0x28d4a4(0xe9),d=_0x28d4a4(0xa3);let f=class extends _0x11f04e{constructor(_0x239923,_0x2bb964,_0x2b0f1e,_0xb12896,_0xb3abc,_0x5f0628,_0x3bb5fb,_0x5e681d,_0xa90086,_0x182a4f){const _0x4191ba=_0x28d4a4;super(),g(this,_0x4191ba(0xa5),new _0x394d58(null)),g(this,_0x4191ba(0xd0),this[_0x4191ba(0xa5)][_0x4191ba(0xf5)]()),g(this,'_disposableCollection',new _0x1096e7()),g(this,_0x4191ba(0x9c),new Map()),(this[_0x4191ba(0x125)]=_0x239923,this[_0x4191ba(0xb8)]=_0x2bb964,this['_configService']=_0x2b0f1e,this[_0x4191ba(0x8a)]=_0xb12896,this[_0x4191ba(0x11c)]=_0xb3abc,this['_permissionService']=_0x5f0628,this['_selectionProtectionRuleModel']=_0x3bb5fb,this[_0x4191ba(0xd6)]=_0x5e681d,this[_0x4191ba(0xf8)]=_0xa90086,this[_0x4191ba(0xc4)]=_0x182a4f,this['_init']());}get[_0x28d4a4(0xce)](){const _0x58ef6e=_0x28d4a4;return this[_0x58ef6e(0xa5)][_0x58ef6e(0xd8)];}['_init'](){const _0xd2abc6=_0x28d4a4;this[_0xd2abc6(0xbe)](),this['_initPlugins']();}['_initContainer'](){const _0x1f10d9=_0x28d4a4;var _0x392213;const _0x2357ee=(_0x392213=this['_configService'][_0x1f10d9(0x101)](G))!=null?_0x392213:vi,_0x43106b=document['getElementById'](_0x2357ee);if(!_0x43106b)return;const _0x205fb4=document[_0x1f10d9(0xcc)]('div');_0x205fb4['id']=d,_0x205fb4[_0x1f10d9(0xc7)][_0x1f10d9(0xb0)]=_0x1f10d9(0xa1),_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0x127)]=_0x1f10d9(0x129),_0x205fb4['style']['top']='0',_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0xe4)]='0',_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0xe1)]=_0x1f10d9(0xed),_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0x112)]=_0x1f10d9(0xed),_0x205fb4['style']['zIndex']=_0x1f10d9(0x102),_0x205fb4[_0x1f10d9(0x118)][_0x1f10d9(0xa2)]='none',_0x43106b[_0x1f10d9(0x116)](_0x205fb4);}['_initPlugins'](){const _0x10a8df=_0x28d4a4;var _0x545121,_0x10d904,_0x390833,_0xa85fc9;[[_0x35a05d],[_0x17bb2b,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5b349c,null]]}],[_0x5ca7ac],[_0x38a33c,{'override':[[_0x321682,null]]}],[_0x7a73da,{'hasScroll':!0x1}],[_0x4c0c75],[_0x3e1f23],[_0x13bd3e,{'notExecuteFormula':!0x0}],[_0xcbf460],[_0x40fd4d],[_0x15b5be],[_0x593c16],[_0x3f0407],[_0x12cab8],[_0x1a43ef],[_0x286bab],[_0x142267],[_0x1d13f8],[_0x1b0993],[_0x65aeff],[_0x126307],[_0x40c6c2,{'notExecuteFormula':!0x0}],[_0x48d937,{'workerURL':(_0x10d904=(_0x545121=this[_0x10a8df(0x108)][_0x10a8df(0x101)](_0x5e32c6))==null?void 0x0:_0x545121[_0x10a8df(0xae)])!=null?_0x10d904:_0x10a8df(0x89)}],[_0x2801b8],[_0x3d69d5],[_0x368aac],[_0x30b9d4],[_0x364408],[_0x291ecb],[_0x1786fc],[_0x37e050,{'notExecuteFormula':!0x0}],[_0x1d2ee2,{'historyListServerUrl':(_0x390833=this[_0x10a8df(0x108)]['getConfig'](U))==null?void 0x0:_0x390833[_0x10a8df(0xee)],'historyPanelComponentKey':(_0xa85fc9=this[_0x10a8df(0x108)][_0x10a8df(0x101)](U))==null?void 0x0:_0xa85fc9[_0x10a8df(0xbf)]}]][_0x10a8df(0xb9)](([_0x1de15b,_0x2fc96b])=>this[_0x10a8df(0xe0)](_0x1de15b,_0x2fc96b));}[_0x28d4a4(0x11d)](){const _0xf73889=_0x28d4a4;super[_0xf73889(0x11d)](),this[_0xf73889(0xf7)](),this[_0xf73889(0x9c)][_0xf73889(0x117)]();}[_0x28d4a4(0xe0)](_0x535e76,_0x3d2448,_0xce846b){const _0x111bcc=_0x28d4a4;if(this[_0x111bcc(0x9c)][_0x111bcc(0xc5)](_0x535e76['pluginName'])&&!_0xce846b)throw new Error(_0x111bcc(0xbc)+_0x535e76[_0x111bcc(0xd5)]+_0x111bcc(0x93));this[_0x111bcc(0x9c)]['set'](_0x535e76[_0x111bcc(0xd5)],[_0x535e76,_0x3d2448]);}[_0x28d4a4(0x92)](){const _0x389a7f=_0x28d4a4;return Array[_0x389a7f(0xa6)](this[_0x389a7f(0x9c)][_0x389a7f(0xcb)]());}['mountHistoryContent'](_0x493fdb){const _0xaf6bc7=_0x28d4a4,_0x20b451=document[_0xaf6bc7(0x8e)](d);_0x20b451&&(_0x20b451[_0xaf6bc7(0x118)][_0xaf6bc7(0xa2)]='block',this['_initUniver'](_0x493fdb,d));}[_0x28d4a4(0xf7)](){const _0x543c9f=_0x28d4a4;var _0x16fb1a;this[_0x543c9f(0xe3)][_0x543c9f(0x11d)](),(_0x16fb1a=this['historyUniver'])==null||_0x16fb1a[_0x543c9f(0x11d)](),this[_0x543c9f(0xa5)][_0x543c9f(0xec)](null);const _0xba592a=document['getElementById'](d);_0xba592a&&(_0xba592a[_0x543c9f(0x118)]['display']=_0x543c9f(0x120));}[_0x28d4a4(0xc2)](_0x4d4396,_0xd8bca0){const _0x50993b=_0x28d4a4;if(this[_0x50993b(0xce)])return;const _0x3e0206=new _0x2b206b({'locales':{[this[_0x50993b(0x125)][_0x50993b(0xf2)]()]:this['_localeService']['getLocales']()},'override':[[_0x36ad80,{'useClass':_0x381e88}]]}),_0x81318b=_0x3e0206['__getInjector']();this[_0x50993b(0xf9)](this[_0x50993b(0xc4)][_0x50993b(0xff)]['subscribe'](_0x4cba3b=>{const _0x4f0508=_0x50993b;_0x81318b[_0x4f0508(0x121)](_0x4a0048)[_0x4f0508(0x12d)](_0x4cba3b);})),this[_0x50993b(0xf9)](this[_0x50993b(0xc4)][_0x50993b(0xd1)]['subscribe'](_0x4d0fc5=>{const _0x1cd7e3=_0x50993b;_0x81318b[_0x1cd7e3(0x121)](_0x4a0048)[_0x1cd7e3(0xf4)](_0x4d0fc5);})),_0x81318b[_0x50993b(0x121)](_0xc7137)[_0x50993b(0xcd)](this[_0x50993b(0x125)][_0x50993b(0xf2)]()),_0x81318b[_0x50993b(0x121)](_0x2527f1)[_0x50993b(0x111)](_0x5e6ad0,this['_configService']['getConfig'](_0x5e6ad0));const _0x1c551c=this[_0x50993b(0x108)]['getConfig'](_0x3bf7c0);_0x1c551c&&_0x3e0206[_0x50993b(0xe0)](_0x53e7a7,{'license':_0x1c551c['ls']}),this['_pluginMap'][_0x50993b(0xb9)](([_0x50d0ef,_0x59ea28])=>{_0x3e0206['registerPlugin'](_0x50d0ef,_0x59ea28);}),_0x81318b[_0x50993b(0x9d)](_0x1ff49c=>{const _0x18e5a1=_0x50993b;this[_0x18e5a1(0x95)](_0x1ff49c,_0x4d4396);}),this['_historyUniver$'][_0x50993b(0xec)](_0x3e0206);const _0x5c2e0c=_0x81318b[_0x50993b(0x121)](_0x77b50a),_0x5352ce=this[_0x50993b(0x96)](_0x4d4396);_0x5c2e0c[_0x50993b(0x11f)](_0x4d4396,_0xd8bca0,_0x5352ce);}[_0x28d4a4(0x95)](_0x55e9d7,_0x5ae2de){const _0x402e0a=_0x28d4a4,_0x543871=_0x55e9d7['get'](_0x77b50a);this[_0x402e0a(0xe3)][_0x402e0a(0xc1)](_0x543871['status$'][_0x402e0a(0xd2)](_0x41e95a=>{const _0x15b472=_0x402e0a;switch(_0x41e95a){case _0x347aa0[_0x15b472(0xc0)]:this[_0x15b472(0xd6)][_0x15b472(0x11b)](),this[_0x15b472(0xf8)]['close']();break;case _0x347aa0[_0x15b472(0x119)]:this[_0x15b472(0x8a)][_0x15b472(0xcf)](W['id']),this[_0x15b472(0xf7)]();break;case _0x347aa0['Error']:this['unMountHistoryContent'](),this[_0x15b472(0x11c)][_0x15b472(0x11a)]({'content':this['_localeService']['t'](_0x15b472(0xfe)),'type':_0x17d5cd[_0x15b472(0x115)],'duration':0xbb8});break;}})),this[_0x402e0a(0xe3)]['add'](_0x543871['revertRevision$'][_0x402e0a(0xd2)](async _0x2aa8fb=>{const _0x4807a2=_0x402e0a;_0x2aa8fb&&this[_0x4807a2(0x8a)][_0x4807a2(0xcf)](_0x20ea47['id'],{'unitId':_0x5ae2de,'revision':_0x2aa8fb});}));}[_0x28d4a4(0x96)](_0x5be7c5){const _0x3e039c=_0x28d4a4,_0x5f464d=this['_univerInstanceService'][_0x3e039c(0x98)](_0x5be7c5)[_0x3e039c(0xdd)]()[_0x3e039c(0x123)](_0x42d919=>_0x42d919[_0x3e039c(0xb7)]()),_0x498594=new _0x1c1798(_0x5be7c5)['id'],_0x2a76a6=_0x5f464d['map'](_0x572138=>new _0xf0f0c1(_0x5be7c5,_0x572138)['id']),_0x12e2e8=_0x5f464d[_0x3e039c(0x123)](_0x59a247=>this['_selectionProtectionRuleModel'][_0x3e039c(0xf1)](_0x5be7c5,_0x59a247)[_0x3e039c(0x123)](_0x5b9b26=>new _0x2bb7d9(_0x5be7c5,_0x59a247,_0x5b9b26['permissionId'])['id']))[_0x3e039c(0xb6)](),_0x164c8f=new _0x4f1e7d(_0x5be7c5)['id'];return this[_0x3e039c(0xf6)][_0x3e039c(0xb1)]([_0x498594,..._0x2a76a6,..._0x12e2e8,_0x164c8f])[_0x3e039c(0x12b)](_0x2382ce=>!!_0x2382ce[_0x3e039c(0xd8)]);}};f=mi([l(0x0,_0x46c454(_0xc7137)),l(0x1,_0x17dea0),l(0x2,_0x2527f1),l(0x3,_0x4ccfc6),l(0x4,_0x3ba77a),l(0x5,_0x1691d8),l(0x6,_0x46c454(_0x467927)),l(0x7,_0x46c454(_0x5b349c)),l(0x8,_0x46c454(_0xaa3e4d)),l(0x9,_0x46c454(_0x4a0048))],f);const b={'id':'univer.operation.toggle-edit-history','type':_0x176ea2['OPERATION'],'handler':_0x2949bd=>{const _0x479e73=_0x28d4a4,_0x4617fc=_0x2949bd['get'](f),_0x2ec64c=_0x2949bd[_0x479e73(0x121)](_0x17dea0),{unitId:_0x3c67d7}=_0x293682(_0x2ec64c)||{};return _0x3c67d7?(_0x4617fc[_0x479e73(0x126)](_0x3c67d7),!0x0):!0x1;}},W={'id':_0x28d4a4(0x8d),'type':_0x176ea2[_0x28d4a4(0xc3)],'handler':()=>!0x0};function di(_0x3f3435){const _0x114f7c=_0x28d4a4;return{'id':b['id'],'type':_0x2f263a[_0x114f7c(0x10f)],'icon':'HistoryIcon','tooltip':_0x114f7c(0x90),'hidden$':_0x2af65c(_0x3f3435,_0x1b48a5[_0x114f7c(0x94)]),'disabled$':_0x210efd(_0x3f3435,{'workbookTypes':[_0x1c1798,_0x435260],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x157b79[_0x28d4a4(0xe6)]]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object[_0x28d4a4(0xa9)],pi=(_0x11aafb,_0x380052,_0xebeded,_0x452fa1)=>{for(var _0x3e4b1d=_0x452fa1>0x1?void 0x0:_0x452fa1?_i(_0x380052,_0xebeded):_0x380052,_0x400990=_0x11aafb['length']-0x1,_0x35abc2;_0x400990>=0x0;_0x400990--)(_0x35abc2=_0x11aafb[_0x400990])&&(_0x3e4b1d=_0x35abc2(_0x3e4b1d)||_0x3e4b1d);return _0x3e4b1d;},m=(_0x32d021,_0x4f2c81)=>(_0x2c838a,_0x20cf8a)=>_0x4f2c81(_0x2c838a,_0x20cf8a,_0x32d021);let p=class extends _0x547c6d{constructor(_0x530373,_0x5e072e,_0x29aea0,_0x2e88c1,_0x5e34a9,_0x3801c2,_0xced7cf,_0x36c3db){const _0x3d3fea=_0x28d4a4;super(),g(this,_0x3d3fea(0xdc),null),(this[_0x3d3fea(0x8a)]=_0x530373,this[_0x3d3fea(0xb3)]=_0x5e072e,this[_0x3d3fea(0x11e)]=_0x29aea0,this['_historyManagerService']=_0x2e88c1,this[_0x3d3fea(0x125)]=_0x5e34a9,this[_0x3d3fea(0x11c)]=_0x3801c2,this['_collaborationController']=_0xced7cf,this['_localCacheService']=_0x36c3db,this[_0x3d3fea(0xc6)]());}[_0x28d4a4(0xc6)](){const _0x446eed=_0x28d4a4;[b,W]['forEach'](_0xc95f15=>this[_0x446eed(0xf9)](_0x1ec54e(this[_0x446eed(0x8a)][_0x446eed(0xe2)](_0xc95f15)))),this[_0x446eed(0xf9)](this[_0x446eed(0x11e)][_0x446eed(0xd9)](_0x446eed(0x9f),V)),this[_0x446eed(0xb3)]['mergeMenu'](fi),this['disposeWithMe'](this[_0x446eed(0x8a)][_0x446eed(0xac)](_0x19adb2=>{const _0x1987a1=_0x446eed;if(_0x19adb2['id']===_0x20ea47['id']){this[_0x1987a1(0x11c)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x17d5cd[_0x1987a1(0x104)],'duration':0x1388});const {unitId:_0x50c5a5}=_0x19adb2['params'],_0x613d47=this['_collaborationController'][_0x1987a1(0xca)](_0x50c5a5),_0x271c2c=_0x501715([_0x613d47[_0x1987a1(0xd7)][_0x1987a1(0xb2)],_0x613d47['state$']])['subscribe'](async([_0x27f8b7,_0x5409ac])=>{const _0x212156=_0x1987a1;var _0x2714d0;_0x27f8b7['eventID']===_0x442c5e[_0x212156(0xeb)]&&(_0x5409ac==null?void 0x0:_0x5409ac[_0x212156(0x8b)])===_0x1b925f[_0x212156(0xea)]&&_0x27f8b7['data'][_0x212156(0x105)][_0x212156(0x10d)](_0x8549e2=>_0x8549e2['id']===_0x20ea47['id'])&&(this[_0x212156(0x128)][_0x212156(0xf7)](),_0x271c2c[_0x212156(0x99)](),this[_0x212156(0xdc)]&&clearTimeout(this[_0x212156(0xdc)]),await((_0x2714d0=this[_0x212156(0xfa)])==null?void 0x0:_0x2714d0[_0x212156(0x10a)]()),setTimeout(()=>window[_0x212156(0xd3)]['reload']()));});this['_revertErrorTimer']=setTimeout(()=>{const _0x1ef59c=_0x1987a1;_0x271c2c[_0x1ef59c(0x99)](),this[_0x1ef59c(0x11c)]['show']({'content':this[_0x1ef59c(0x125)]['t']('editHistory.panel.revertFailed'),'type':_0x17d5cd[_0x1ef59c(0x115)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x4ccfc6),m(0x1,_0x29ebf4),m(0x2,_0x46c454(_0x24ca35)),m(0x3,_0x46c454(f)),m(0x4,_0x46c454(_0xc7137)),m(0x5,_0x3ba77a),m(0x6,_0x46c454(_0x348bd1)),m(0x7,_0x8b9c29)],p);var Si=Object[_0x28d4a4(0xa9)],Ci=(_0x2f66cd,_0x463f0f,_0x4ee4f9,_0x3934c6)=>{const _0x130797=_0x28d4a4;for(var _0x659e95=_0x3934c6>0x1?void 0x0:_0x3934c6?Si(_0x463f0f,_0x4ee4f9):_0x463f0f,_0x44ff86=_0x2f66cd[_0x130797(0xe7)]-0x1,_0x496283;_0x44ff86>=0x0;_0x44ff86--)(_0x496283=_0x2f66cd[_0x44ff86])&&(_0x659e95=_0x496283(_0x659e95)||_0x659e95);return _0x659e95;},R=(_0x1b7c0a,_0x15342d)=>(_0x40201d,_0x404e1a)=>_0x15342d(_0x40201d,_0x404e1a,_0x1b7c0a);const yi=_0x28d4a4(0x110);var _;let H=(_=class extends _0x324003{constructor(_0x17db0e=N,_0x5f431a,_0x48bda2){const _0x3a7349=_0x28d4a4;super(),this[_0x3a7349(0xe5)]=_0x17db0e,this[_0x3a7349(0xfd)]=_0x5f431a,this[_0x3a7349(0x108)]=_0x48bda2;const {menu:_0x388914,..._0x248c32}=_0x242ed3({},N,this[_0x3a7349(0xe5)]);_0x388914&&this['_configService'][_0x3a7349(0x111)](_0x3a7349(0xa7),_0x388914,{'merge':!0x0}),this[_0x3a7349(0x108)][_0x3a7349(0x111)](U,_0x248c32),this[_0x3a7349(0xe5)][_0x3a7349(0xfc)]&&this[_0x3a7349(0x108)][_0x3a7349(0x111)](G,this['_config']['univerContainerId']);}[_0x28d4a4(0xbd)](){const _0x435ecd=_0x28d4a4;[[f],[p]][_0x435ecd(0xb9)](_0x15d24d=>this['_injector'][_0x435ecd(0xc1)](_0x15d24d));}[_0x28d4a4(0x109)](){const _0x2aeb7d=_0x28d4a4;this[_0x2aeb7d(0xfd)][_0x2aeb7d(0x121)](p);}},g(_,_0x28d4a4(0xf3),_0x1b48a5[_0x28d4a4(0xa4)]),g(_,'pluginName',yi),_);H=Ci([R(0x1,_0x46c454(_0xaa3bc2)),R(0x2,_0x2527f1)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
const _0x2de113=_0x5d0b;(function(_0x1c6782,_0x73d585){const _0x8adae1=_0x5d0b,_0x122289=_0x1c6782();while(!![]){try{const _0x1166b6=parseInt(_0x8adae1(0x222))/0x1+-parseInt(_0x8adae1(0x23f))/0x2*(-parseInt(_0x8adae1(0x296))/0x3)+-parseInt(_0x8adae1(0x232))/0x4+-parseInt(_0x8adae1(0x260))/0x5+parseInt(_0x8adae1(0x298))/0x6+parseInt(_0x8adae1(0x295))/0x7+parseInt(_0x8adae1(0x244))/0x8;if(_0x1166b6===_0x73d585)break;else _0x122289['push'](_0x122289['shift']());}catch(_0x53c4ab){_0x122289['push'](_0x122289['shift']());}}}(_0x2838,0x2aee6));var Y=Object[_0x2de113(0x1ff)],B=(_0xc925a5,_0x3ac1a9,_0x39cd2a)=>_0x3ac1a9 in _0xc925a5?Y(_0xc925a5,_0x3ac1a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39cd2a}):_0xc925a5[_0x3ac1a9]=_0x39cd2a,g=(_0x42e09a,_0x57ad11,_0x45681e)=>B(_0x42e09a,typeof _0x57ad11!=_0x2de113(0x255)?_0x57ad11+'':_0x57ad11,_0x45681e);import{Inject as _0x5cc2a3,LocaleService as _0x3b3f40,IUniverInstanceService as _0x33d5fa,IConfigService as _0x126263,ICommandService as _0x40431d,IPermissionService as _0x24bb5e,ThemeService as _0x5d70a0,Disposable as _0x211543,DisposableCollection as _0x5a628b,Univer as _0x273ca0,IAuthzIoService as _0x4013aa,CommandType as _0x3247c7,UniverInstanceType as _0x574692,RxDisposable as _0xdc68f5,toDisposable as _0x4f70d0,Plugin as _0x15ae03,merge as _0x2eb275,Injector as _0x1a7a2a}from'@univerjs/core';import{UniverCollaborationPlugin as _0x527b45,RevertRevisionMutation as _0x5b4f38,CollaborationEvent as _0x1f856b}from'@univerjs-pro/collaboration';import{AuthzIoHttpService as _0x46acb8,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5746c2,CollaborationController as _0x103138,ILocalCacheService as _0x577194,CollaborationStatus as _0x1dcc62}from'@univerjs-pro/collaboration-client';import{MessageType as _0x2ec489}from'@univerjs/design';import{useRef as _0x73ef6,createElement as _0x1269ef,forwardRef as _0x29e737}from'react';import{IMessageService as _0x25a351,IDialogService as _0x5f4123,ISidebarService as _0x167942,UniverUIPlugin as _0x5f544f,getMenuHiddenObservable as _0x163745,MenuItemType as _0x38ef6f,RibbonStartGroup as _0x2efcdc,IMenuManagerService as _0x249b00,ComponentManager as _0x978bba}from'@univerjs/ui';import{BehaviorSubject as _0x295e57,combineLatest as _0x3c91c4}from'rxjs';import{RangeProtectionRuleModel as _0x48a700,UniverSheetsPlugin as _0x49fea5,WorkbookEditablePermission as _0xf18c79,WorksheetEditPermission as _0x48bb0c,RangeProtectionPermissionEditPoint as _0x22bcd0,WorkbookRecoverHistoryPermission as _0xeb478c,getSheetCommandTarget as _0x222e70,WorkbookViewHistoryPermission as _0x1d2c5c}from'@univerjs/sheets';import{UniverEditHistoryViewerPlugin as _0x79aed5,HistoryManagerService as _0x40fb4f,HistoryModeStatus as _0x8c8cc4}from'@univerjs-pro/edit-history-viewer';import{LS_CONFIG_KEY as _0x4fe4ab,UniverLicensePlugin as _0x29294f}from'@univerjs-pro/license';import{UniverSheetsChartPlugin as _0x5c0776}from'@univerjs-pro/sheets-chart';import{UniverSheetsChartUIPlugin as _0x279100}from'@univerjs-pro/sheets-chart-ui';import{UniverSheetsPivotTablePlugin as _0x3343b3}from'@univerjs-pro/sheets-pivot';import{UniverSheetSparklinePlugin as _0x48ad0e}from'@univerjs-pro/sheets-sparkline';import{UniverSheetSparklineUIPlugin as _0x5c2ab8}from'@univerjs-pro/sheets-sparkline-ui';import{UniverDataValidationPlugin as _0x2c6b15}from'@univerjs/data-validation';import{UniverDocsPlugin as _0x172140}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x2880d3}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x455b2d,IImageIoService as _0x39ac0c}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x208345}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0xaf25e}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x48afa7}from'@univerjs/engine-render';import{UniverNetworkPlugin as _0x1ffa11}from'@univerjs/network';import{UniverRPCMainThreadPlugin as _0x354a61,PLUGIN_CONFIG_KEY_MAIN_THREAD as _0x49a70e}from'@univerjs/rpc';import{UniverSheetsConditionalFormattingPlugin as _0x3c7549}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4099d1}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x50d894}from'@univerjs/sheets-data-validation';import{UniverSheetsDataValidationUIPlugin as _0x55d161}from'@univerjs/sheets-data-validation-ui';import{UniverSheetsDrawingPlugin as _0x2a0d26}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0x2e19b6}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x3549bc}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1f02de}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x2c38f2}from'@univerjs/sheets-formula';import{UniverSheetsFormulaUIPlugin as _0x56ebe9}from'@univerjs/sheets-formula-ui';import{UniverSheetsHyperLinkPlugin as _0x53c1ed}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x3efa97}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x352b5d}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x22c44a,getCurrentRangeDisable$ as _0x3dbe19}from'@univerjs/sheets-ui';const U=_0x2de113(0x25c),N={};function F({ref:_0x2b0e65,..._0x3ae743}){const _0x1c14cd=_0x2de113,{icon:_0x9d6632,id:_0x73a585,className:_0x51f4ba,extend:_0x3281bf,..._0x2deaf2}=_0x3ae743,_0x40cc3d=(_0x1c14cd(0x224)+_0x73a585+'\x20'+(_0x51f4ba||''))[_0x1c14cd(0x299)](),_0x42f9f2=_0x73ef6('_'+hi());return j(_0x9d6632,''+_0x73a585,{'defIds':_0x9d6632[_0x1c14cd(0x1f7)],'idSuffix':_0x42f9f2[_0x1c14cd(0x269)]},{'ref':_0x2b0e65,'className':_0x40cc3d,..._0x2deaf2},_0x3281bf);}function j(_0x493e8b,_0x4af4a4,_0x41d20e,_0xfca14f,_0xcc026f){const _0x4ab1d0=_0x2de113;return _0x1269ef(_0x493e8b[_0x4ab1d0(0x286)],{'key':_0x4af4a4,...ci(_0x493e8b,_0x41d20e,_0xcc026f),..._0xfca14f},(li(_0x493e8b,_0x41d20e)[_0x4ab1d0(0x226)]||[])['map']((_0x513ed8,_0x505865)=>j(_0x513ed8,_0x4af4a4+'-'+_0x493e8b[_0x4ab1d0(0x286)]+'-'+_0x505865,_0x41d20e,void 0x0,_0xcc026f)));}function ci(_0x3ac60c,_0x582a5a,_0x1cd0ec){const _0x4e604a=_0x2de113,_0x359fa8={..._0x3ac60c[_0x4e604a(0x282)]};_0x1cd0ec!=null&&_0x1cd0ec['colorChannel1']&&_0x359fa8['fill']===_0x4e604a(0x251)&&(_0x359fa8[_0x4e604a(0x223)]=_0x1cd0ec[_0x4e604a(0x251)]),_0x3ac60c[_0x4e604a(0x286)]===_0x4e604a(0x29d)&&_0x359fa8['id']&&(_0x359fa8['id']=_0x359fa8['id']+_0x582a5a[_0x4e604a(0x218)]),Object['entries'](_0x359fa8)[_0x4e604a(0x250)](([_0x5e2b3f,_0x126fec])=>{const _0x2b0f63=_0x4e604a;_0x5e2b3f==='mask'&&typeof _0x126fec==_0x2b0f63(0x290)&&(_0x359fa8[_0x5e2b3f]=_0x126fec['replace'](/url\(#(.*)\)/,'url(#$1'+_0x582a5a[_0x2b0f63(0x218)]+')'));});const {defIds:_0x5252de}=_0x582a5a;return!_0x5252de||_0x5252de[_0x4e604a(0x23d)]===0x0||(_0x3ac60c[_0x4e604a(0x286)]==='use'&&_0x359fa8[_0x4e604a(0x20f)]&&(_0x359fa8[_0x4e604a(0x20f)]=_0x359fa8[_0x4e604a(0x20f)]+_0x582a5a[_0x4e604a(0x218)]),Object[_0x4e604a(0x252)](_0x359fa8)[_0x4e604a(0x250)](([_0x4b36b7,_0x4a87a7])=>{const _0x4cce07=_0x4e604a;typeof _0x4a87a7==_0x4cce07(0x290)&&(_0x359fa8[_0x4b36b7]=_0x4a87a7[_0x4cce07(0x228)](/url\(#(.*)\)/,_0x4cce07(0x284)+_0x582a5a[_0x4cce07(0x218)]+')'));})),_0x359fa8;}function _0x5d0b(_0x4d9021,_0x8baf1a){_0x4d9021=_0x4d9021-0x1f4;const _0x2838d9=_0x2838();let _0x5d0b4b=_0x2838d9[_0x4d9021];return _0x5d0b4b;}function li(_0x1a18d2,_0x4c2fec){const _0x21086b=_0x2de113;var _0x5cb609;const {defIds:_0x155c4b}=_0x4c2fec;return!_0x155c4b||_0x155c4b['length']===0x0?_0x1a18d2:_0x1a18d2[_0x21086b(0x286)]===_0x21086b(0x210)&&((_0x5cb609=_0x1a18d2[_0x21086b(0x226)])!=null&&_0x5cb609['length'])?{..._0x1a18d2,'children':_0x1a18d2[_0x21086b(0x226)][_0x21086b(0x29c)](_0x174f52=>typeof _0x174f52[_0x21086b(0x282)]['id']==_0x21086b(0x290)&&_0x155c4b&&_0x155c4b[_0x21086b(0x21d)](_0x174f52['attrs']['id'])?{..._0x174f52,'attrs':{..._0x174f52['attrs'],'id':_0x174f52[_0x21086b(0x282)]['id']+_0x4c2fec['idSuffix']}}:_0x174f52)}:_0x1a18d2;}function hi(){const _0x121159=_0x2de113;return Math['random']()[_0x121159(0x1fd)](0x24)[_0x121159(0x219)](0x2,0x8);}function _0x2838(){const _0x5003b9=['triggerLoadVersions','pluginName','historyListServerUrl','_initContainer','\x20has\x20been\x20registered.','univer-history-container','_config','currentColor','_messageService','100%','register','mergeMenu','attrs','history-icon_clip0_907_281','url(#$1','getConfig','tag','_disposableCollection','div','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','dispose','_initPlugins','onStarting','left','HistoryIcon','_menuManagerService','string','values','add','historyUniver','getSheets','1818803HbmBHJ','267585WpEsdY','onCommandExecuted','549432bWnWCp','trim','darkMode$','./worker.js','map','mask','historyUniver$','style','show','editHistory.panel.reverting','_revertErrorTimer','_localCacheService','getOwnPropertyDescriptor','invoke','uComp','defIds','reload','url(#history-icon_clip0_907_281)','path','Entered','setLocale','toString','_historyUniver$','defineProperty','executeCommand','svg','composePermission','_initListener','disposeWithMe','UNIVER_UNKNOWN','currentTheme$','set','none','display','1000','getAllPlugins','params','absolute','type','xlink:href','defs','_pluginMap','editHistory.panel.revertFailed','eventID','_univerInstanceService','SYNCED','position','_injector','idSuffix','substring','_permissionService','_initUniver','_componentManager','includes','onSteady','mutations','createElement','setTheme','26309neiBFJ','fill','univerjs-icon\x20univerjs-icon-','_commandService','children','exhaustSavingTask','replace','_init','editHistory.panel.title','displayName','http://www.w3.org/2000/svg','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','unMountHistoryContent','_localeService','UniverIcon','state$','1140412MQRJTU','_checkCanRevert','revertRevision$','univer.operation.exit-edit-history','from','registerPlugin','univer.operation.toggle-edit-history','_historyManagerService','top','OPERATION','data','length','getCurrentLocale','2OXJXuY','width','CHANGESET_ACK','UNIVER_CONTAINER_ID','M0\x200H16V16H0z','1757256htdHZM','workerURL','flat','Error','get','_configService','getElementById','location','appendChild','getSubunitRuleList','clipPath','1em','forEach','colorChannel1','entries','getLocales','height','symbol','getSheetId','subscribe','0\x200\x2016\x2016','event$','history-container','_themeService','edit-history-loader.config','value','assign','every','1128065QnukVN','white','getCollabEntity','_dialogService','mountHistoryContent','[HistoryLoaderService]:\x20Plugin\x20','registerCommand','setConfig','editHistory.panel.listFetchError','current','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','__getInjector','dataset','Loading','BUTTON','permissionId','getUnit','next','_selectionProtectionRuleModel','zIndex','unsubscribe','_collaborationController'];_0x2838=function(){return _0x5003b9;};return _0x2838();}F['displayName']=_0x2de113(0x230);const ui={'tag':_0x2de113(0x201),'attrs':{'xmlns':_0x2de113(0x22c),'fill':_0x2de113(0x208),'viewBox':_0x2de113(0x258),'width':_0x2de113(0x24f),'height':_0x2de113(0x24f)},'children':[{'tag':'g','attrs':{'fill':_0x2de113(0x27d),'clipPath':_0x2de113(0x1f9)},'children':[{'tag':'path','attrs':{'d':_0x2de113(0x22d)}},{'tag':_0x2de113(0x1fa),'attrs':{'d':_0x2de113(0x26a)}}]},{'tag':_0x2de113(0x210),'attrs':{},'children':[{'tag':_0x2de113(0x24e),'attrs':{'id':_0x2de113(0x283)},'children':[{'tag':_0x2de113(0x1fa),'attrs':{'fill':_0x2de113(0x261),'d':_0x2de113(0x243)}}]}]}],'defIds':['history-icon_clip0_907_281']},V=_0x29e737(function(_0x33caed,_0x3d7a75){const _0x58cec9=_0x2de113;return _0x1269ef(F,Object[_0x58cec9(0x25e)]({},_0x33caed,{'id':'history-icon','ref':_0x3d7a75,'icon':ui}));});V[_0x2de113(0x22b)]=_0x2de113(0x28e);var gi=Object[_0x2de113(0x1f4)],mi=(_0x572f42,_0x2c5a3c,_0x39ec4f,_0x2346a2)=>{const _0x5fdc5d=_0x2de113;for(var _0x5b6aef=_0x2346a2>0x1?void 0x0:_0x2346a2?gi(_0x2c5a3c,_0x39ec4f):_0x2c5a3c,_0x1e5a7b=_0x572f42[_0x5fdc5d(0x23d)]-0x1,_0x15b44c;_0x1e5a7b>=0x0;_0x1e5a7b--)(_0x15b44c=_0x572f42[_0x1e5a7b])&&(_0x5b6aef=_0x15b44c(_0x5b6aef)||_0x5b6aef);return _0x5b6aef;},l=(_0x2c13c9,_0x34aaf9)=>(_0x27464d,_0x271282)=>_0x34aaf9(_0x27464d,_0x271282,_0x2c13c9);const vi='univer-container',G=_0x2de113(0x242),d=_0x2de113(0x27b);let f=class extends _0x211543{constructor(_0x547dbd,_0x51b9e8,_0x5cac0d,_0x5a3fc6,_0x1e798a,_0x5a60cf,_0x4fee9d,_0x47cb3a,_0x45ee9c,_0x2bb391){const _0x2d06b5=_0x2de113;super(),g(this,'_historyUniver$',new _0x295e57(null)),g(this,_0x2d06b5(0x29e),this[_0x2d06b5(0x1fe)]['asObservable']()),g(this,'_disposableCollection',new _0x5a628b()),g(this,_0x2d06b5(0x211),new Map()),(this[_0x2d06b5(0x22f)]=_0x547dbd,this['_univerInstanceService']=_0x51b9e8,this[_0x2d06b5(0x249)]=_0x5cac0d,this[_0x2d06b5(0x225)]=_0x5a3fc6,this[_0x2d06b5(0x27e)]=_0x1e798a,this[_0x2d06b5(0x21a)]=_0x5a60cf,this[_0x2d06b5(0x272)]=_0x4fee9d,this[_0x2d06b5(0x263)]=_0x47cb3a,this['_sidebarService']=_0x45ee9c,this['_themeService']=_0x2bb391,this['_init']());}get[_0x2de113(0x293)](){const _0xa2c942=_0x2de113;return this[_0xa2c942(0x1fe)][_0xa2c942(0x25d)];}[_0x2de113(0x229)](){const _0x3cc99a=_0x2de113;this['_initContainer'](),this[_0x3cc99a(0x28b)]();}[_0x2de113(0x279)](){const _0x53873e=_0x2de113;var _0x34fdee;const _0x630e14=(_0x34fdee=this[_0x53873e(0x249)]['getConfig'](G))!=null?_0x34fdee:vi,_0x1ba639=document[_0x53873e(0x24a)](_0x630e14);if(!_0x1ba639)return;const _0x1e2d7b=document[_0x53873e(0x220)](_0x53873e(0x288));_0x1e2d7b['id']=d,_0x1e2d7b[_0x53873e(0x26c)][_0x53873e(0x1f6)]=_0x53873e(0x25a),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x216)]=_0x53873e(0x20d),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x23a)]='0',_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x28d)]='0',_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x240)]=_0x53873e(0x27f),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x254)]=_0x53873e(0x27f),_0x1e2d7b[_0x53873e(0x29f)][_0x53873e(0x273)]=_0x53873e(0x20a),_0x1e2d7b['style']['display']=_0x53873e(0x208),_0x1ba639[_0x53873e(0x24c)](_0x1e2d7b);}[_0x2de113(0x28b)](){const _0x3e73f4=_0x2de113;var _0x2c19f5,_0x1100ca,_0x28fb98,_0xf1ced0;[[_0x48afa7],[_0x5f544f,{'container':d,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x5f4123,null]]}],[_0x1ffa11],[_0x455b2d,{'override':[[_0x39ac0c,null]]}],[_0x172140,{'hasScroll':!0x1}],[_0x2880d3],[_0x352b5d],[_0x49fea5,{'notExecuteFormula':!0x0}],[_0x22c44a],[_0x2c38f2],[_0x56ebe9],[_0x527b45],[_0x3549bc],[_0x1f02de],[_0x3c7549],[_0x4099d1],[_0x53c1ed],[_0x3efa97],[_0x2c6b15],[_0x50d894],[_0x55d161],[_0xaf25e,{'notExecuteFormula':!0x0}],[_0x354a61,{'workerURL':(_0x1100ca=(_0x2c19f5=this['_configService'][_0x3e73f4(0x285)](_0x49a70e))==null?void 0x0:_0x2c19f5[_0x3e73f4(0x245)])!=null?_0x1100ca:_0x3e73f4(0x29b)}],[_0x208345],[_0x2a0d26],[_0x2e19b6],[_0x48ad0e],[_0x5c2ab8],[_0x5c0776],[_0x279100],[_0x3343b3,{'notExecuteFormula':!0x0}],[_0x79aed5,{'historyListServerUrl':(_0x28fb98=this[_0x3e73f4(0x249)][_0x3e73f4(0x285)](U))==null?void 0x0:_0x28fb98[_0x3e73f4(0x278)],'historyPanelComponentKey':(_0xf1ced0=this[_0x3e73f4(0x249)][_0x3e73f4(0x285)](U))==null?void 0x0:_0xf1ced0['historyPanelComponentKey']}]][_0x3e73f4(0x250)](([_0x354308,_0xcce010])=>this[_0x3e73f4(0x237)](_0x354308,_0xcce010));}[_0x2de113(0x28a)](){const _0x5c451b=_0x2de113;super[_0x5c451b(0x28a)](),this['unMountHistoryContent'](),this[_0x5c451b(0x211)]['clear']();}[_0x2de113(0x237)](_0x318714,_0xf4e93f,_0x3e6f65){const _0x580b86=_0x2de113;if(this['_pluginMap']['has'](_0x318714[_0x580b86(0x277)])&&!_0x3e6f65)throw new Error(_0x580b86(0x265)+_0x318714[_0x580b86(0x277)]+_0x580b86(0x27a));this[_0x580b86(0x211)][_0x580b86(0x207)](_0x318714['pluginName'],[_0x318714,_0xf4e93f]);}[_0x2de113(0x20b)](){const _0x221321=_0x2de113;return Array[_0x221321(0x236)](this[_0x221321(0x211)][_0x221321(0x291)]());}['mountHistoryContent'](_0x532a3e){const _0x1467f5=_0x2de113,_0x5af558=document[_0x1467f5(0x24a)](d);_0x5af558&&(_0x5af558[_0x1467f5(0x29f)]['display']='block',this[_0x1467f5(0x21b)](_0x532a3e,d));}['unMountHistoryContent'](){const _0x255781=_0x2de113;var _0x1522ff;this['_disposableCollection']['dispose'](),(_0x1522ff=this[_0x255781(0x293)])==null||_0x1522ff[_0x255781(0x28a)](),this['_historyUniver$'][_0x255781(0x271)](null);const _0x42ccc6=document['getElementById'](d);_0x42ccc6&&(_0x42ccc6[_0x255781(0x29f)][_0x255781(0x209)]=_0x255781(0x208));}[_0x2de113(0x21b)](_0x50f391,_0x762071){const _0x409698=_0x2de113;if(this['historyUniver'])return;const _0x1d216e=new _0x273ca0({'locales':{[this['_localeService'][_0x409698(0x23e)]()]:this[_0x409698(0x22f)][_0x409698(0x253)]()},'override':[[_0x4013aa,{'useClass':_0x46acb8}]]}),_0x309d27=_0x1d216e[_0x409698(0x26b)]();this['disposeWithMe'](this[_0x409698(0x25b)][_0x409698(0x29a)]['subscribe'](_0x5d71d5=>{const _0x43a1c2=_0x409698;_0x309d27[_0x43a1c2(0x248)](_0x5d70a0)['setDarkMode'](_0x5d71d5);})),this['disposeWithMe'](this[_0x409698(0x25b)][_0x409698(0x206)][_0x409698(0x257)](_0x2f95b8=>{const _0x2daeae=_0x409698;_0x309d27[_0x2daeae(0x248)](_0x5d70a0)[_0x2daeae(0x221)](_0x2f95b8);})),_0x309d27[_0x409698(0x248)](_0x3b3f40)[_0x409698(0x1fc)](this[_0x409698(0x22f)][_0x409698(0x23e)]()),_0x309d27['get'](_0x126263)[_0x409698(0x267)](_0x5746c2,this[_0x409698(0x249)][_0x409698(0x285)](_0x5746c2));const _0x59a29c=this[_0x409698(0x249)][_0x409698(0x285)](_0x4fe4ab);_0x59a29c&&_0x1d216e['registerPlugin'](_0x29294f,{'license':_0x59a29c['ls']}),this[_0x409698(0x211)][_0x409698(0x250)](([_0x58f93e,_0x2fe0bc])=>{_0x1d216e['registerPlugin'](_0x58f93e,_0x2fe0bc);}),_0x309d27[_0x409698(0x1f5)](_0x22e232=>{this['_initListener'](_0x22e232,_0x50f391);}),this['_historyUniver$']['next'](_0x1d216e);const _0x271e79=_0x309d27[_0x409698(0x248)](_0x40fb4f),_0x43681b=this['_checkCanRevert'](_0x50f391);_0x271e79[_0x409698(0x276)](_0x50f391,_0x762071,_0x43681b);}[_0x2de113(0x203)](_0x3c179b,_0x359f70){const _0x587ac4=_0x2de113,_0x356603=_0x3c179b['get'](_0x40fb4f);this[_0x587ac4(0x287)][_0x587ac4(0x292)](_0x356603['status$'][_0x587ac4(0x257)](_0x445bb6=>{const _0x5152cb=_0x587ac4;switch(_0x445bb6){case _0x8c8cc4[_0x5152cb(0x1fb)]:this[_0x5152cb(0x263)]['closeAll'](),this['_sidebarService']['close']();break;case _0x8c8cc4['Exited']:this[_0x5152cb(0x225)][_0x5152cb(0x200)](W['id']),this[_0x5152cb(0x22e)]();break;case _0x8c8cc4[_0x5152cb(0x247)]:this[_0x5152cb(0x22e)](),this[_0x5152cb(0x27e)][_0x5152cb(0x2a0)]({'content':this[_0x5152cb(0x22f)]['t'](_0x5152cb(0x268)),'type':_0x2ec489[_0x5152cb(0x247)],'duration':0xbb8});break;}})),this[_0x587ac4(0x287)][_0x587ac4(0x292)](_0x356603[_0x587ac4(0x234)]['subscribe'](async _0x2f14e2=>{_0x2f14e2&&this['_commandService']['executeCommand'](_0x5b4f38['id'],{'unitId':_0x359f70,'revision':_0x2f14e2});}));}[_0x2de113(0x233)](_0x58cd62){const _0x169035=_0x2de113,_0x3418f1=this[_0x169035(0x214)][_0x169035(0x270)](_0x58cd62)[_0x169035(0x294)]()['map'](_0x292c31=>_0x292c31[_0x169035(0x256)]()),_0x59e435=new _0xf18c79(_0x58cd62)['id'],_0x40c33a=_0x3418f1[_0x169035(0x29c)](_0x3abc8f=>new _0x48bb0c(_0x58cd62,_0x3abc8f)['id']),_0x12adb8=_0x3418f1[_0x169035(0x29c)](_0x79fcbf=>this[_0x169035(0x272)][_0x169035(0x24d)](_0x58cd62,_0x79fcbf)['map'](_0x3fc849=>new _0x22bcd0(_0x58cd62,_0x79fcbf,_0x3fc849[_0x169035(0x26f)])['id']))[_0x169035(0x246)](),_0x602ae9=new _0xeb478c(_0x58cd62)['id'];return this[_0x169035(0x21a)][_0x169035(0x202)]([_0x59e435,..._0x40c33a,..._0x12adb8,_0x602ae9])[_0x169035(0x25f)](_0x4aca44=>!!_0x4aca44['value']);}};f=mi([l(0x0,_0x5cc2a3(_0x3b3f40)),l(0x1,_0x33d5fa),l(0x2,_0x126263),l(0x3,_0x40431d),l(0x4,_0x25a351),l(0x5,_0x24bb5e),l(0x6,_0x5cc2a3(_0x48a700)),l(0x7,_0x5cc2a3(_0x5f4123)),l(0x8,_0x5cc2a3(_0x167942)),l(0x9,_0x5cc2a3(_0x5d70a0))],f);const b={'id':_0x2de113(0x238),'type':_0x3247c7[_0x2de113(0x23b)],'handler':_0x4bcb83=>{const _0x41dd06=_0x2de113,_0x573bbc=_0x4bcb83[_0x41dd06(0x248)](f),_0x511671=_0x4bcb83[_0x41dd06(0x248)](_0x33d5fa),{unitId:_0x45f026}=_0x222e70(_0x511671)||{};return _0x45f026?(_0x573bbc[_0x41dd06(0x264)](_0x45f026),!0x0):!0x1;}},W={'id':_0x2de113(0x235),'type':_0x3247c7['OPERATION'],'handler':()=>!0x0};function di(_0x1f4a81){const _0x3377c5=_0x2de113;return{'id':b['id'],'type':_0x38ef6f[_0x3377c5(0x26e)],'icon':'HistoryIcon','tooltip':_0x3377c5(0x22a),'hidden$':_0x163745(_0x1f4a81,_0x574692['UNIVER_SHEET']),'disabled$':_0x3dbe19(_0x1f4a81,{'workbookTypes':[_0xf18c79,_0x1d2c5c],'worksheetTypes':[],'rangeTypes':[]})};}const fi={[_0x2efcdc['OTHERS']]:{[b['id']]:{'order':0.2,'menuItemFactory':di}}};var _i=Object['getOwnPropertyDescriptor'],pi=(_0x419a6b,_0x4a134b,_0x4abcc3,_0x3b0b60)=>{const _0x474aaa=_0x2de113;for(var _0x4473a4=_0x3b0b60>0x1?void 0x0:_0x3b0b60?_i(_0x4a134b,_0x4abcc3):_0x4a134b,_0x55a66c=_0x419a6b[_0x474aaa(0x23d)]-0x1,_0x1565ed;_0x55a66c>=0x0;_0x55a66c--)(_0x1565ed=_0x419a6b[_0x55a66c])&&(_0x4473a4=_0x1565ed(_0x4473a4)||_0x4473a4);return _0x4473a4;},m=(_0x5c596f,_0x2ff0c8)=>(_0xe34b39,_0x2a62af)=>_0x2ff0c8(_0xe34b39,_0x2a62af,_0x5c596f);let p=class extends _0xdc68f5{constructor(_0xb9b840,_0x2b52cb,_0x274c10,_0x3f63f4,_0x6a4d8f,_0x5ccf97,_0x2df311,_0x161194){const _0x5d850e=_0x2de113;super(),g(this,_0x5d850e(0x2a2),null),(this[_0x5d850e(0x225)]=_0xb9b840,this[_0x5d850e(0x28f)]=_0x2b52cb,this['_componentManager']=_0x274c10,this[_0x5d850e(0x239)]=_0x3f63f4,this[_0x5d850e(0x22f)]=_0x6a4d8f,this['_messageService']=_0x5ccf97,this[_0x5d850e(0x275)]=_0x2df311,this[_0x5d850e(0x2a3)]=_0x161194,this[_0x5d850e(0x229)]());}['_init'](){const _0x51587f=_0x2de113;[b,W][_0x51587f(0x250)](_0x180fe3=>this[_0x51587f(0x204)](_0x4f70d0(this['_commandService'][_0x51587f(0x266)](_0x180fe3)))),this[_0x51587f(0x204)](this[_0x51587f(0x21c)][_0x51587f(0x280)](_0x51587f(0x28e),V)),this[_0x51587f(0x28f)][_0x51587f(0x281)](fi),this[_0x51587f(0x204)](this[_0x51587f(0x225)][_0x51587f(0x297)](_0x55a725=>{const _0x419565=_0x51587f;if(_0x55a725['id']===_0x5b4f38['id']){this[_0x419565(0x27e)][_0x419565(0x2a0)]({'content':this[_0x419565(0x22f)]['t'](_0x419565(0x2a1)),'type':_0x2ec489[_0x419565(0x26d)],'duration':0x1388});const {unitId:_0x1302fc}=_0x55a725[_0x419565(0x20c)],_0x517c8e=this[_0x419565(0x275)][_0x419565(0x262)](_0x1302fc),_0x18668e=_0x3c91c4([_0x517c8e['session'][_0x419565(0x259)],_0x517c8e[_0x419565(0x231)]])[_0x419565(0x257)](async([_0x5ab687,_0x752862])=>{const _0x33750b=_0x419565;var _0x54a0ca;_0x5ab687[_0x33750b(0x213)]===_0x1f856b[_0x33750b(0x241)]&&(_0x752862==null?void 0x0:_0x752862['status'])===_0x1dcc62[_0x33750b(0x215)]&&_0x5ab687[_0x33750b(0x23c)][_0x33750b(0x21f)]['some'](_0x4c670a=>_0x4c670a['id']===_0x5b4f38['id'])&&(this[_0x33750b(0x239)][_0x33750b(0x22e)](),_0x18668e[_0x33750b(0x274)](),this[_0x33750b(0x2a2)]&&clearTimeout(this['_revertErrorTimer']),await((_0x54a0ca=this[_0x33750b(0x2a3)])==null?void 0x0:_0x54a0ca[_0x33750b(0x227)]()),setTimeout(()=>window[_0x33750b(0x24b)][_0x33750b(0x1f8)]()));});this[_0x419565(0x2a2)]=setTimeout(()=>{const _0x542a02=_0x419565;_0x18668e[_0x542a02(0x274)](),this[_0x542a02(0x27e)][_0x542a02(0x2a0)]({'content':this[_0x542a02(0x22f)]['t'](_0x542a02(0x212)),'type':_0x2ec489[_0x542a02(0x247)],'duration':0xbb8});},0x1388);}}));}};p=pi([m(0x0,_0x40431d),m(0x1,_0x249b00),m(0x2,_0x5cc2a3(_0x978bba)),m(0x3,_0x5cc2a3(f)),m(0x4,_0x5cc2a3(_0x3b3f40)),m(0x5,_0x25a351),m(0x6,_0x5cc2a3(_0x103138)),m(0x7,_0x577194)],p);var Si=Object[_0x2de113(0x1f4)],Ci=(_0x5de638,_0x366e95,_0x4829b6,_0x40654f)=>{const _0x39abb3=_0x2de113;for(var _0x59b5ab=_0x40654f>0x1?void 0x0:_0x40654f?Si(_0x366e95,_0x4829b6):_0x366e95,_0x35175d=_0x5de638[_0x39abb3(0x23d)]-0x1,_0x589988;_0x35175d>=0x0;_0x35175d--)(_0x589988=_0x5de638[_0x35175d])&&(_0x59b5ab=_0x589988(_0x59b5ab)||_0x59b5ab);return _0x59b5ab;},R=(_0x44e531,_0x328634)=>(_0xa66c66,_0x372388)=>_0x328634(_0xa66c66,_0x372388,_0x44e531);const yi=_0x2de113(0x289);var _;let H=(_=class extends _0x15ae03{constructor(_0x100031=N,_0x5a68d2,_0x63a3d4){const _0x1e8fca=_0x2de113;super(),this[_0x1e8fca(0x27c)]=_0x100031,this['_injector']=_0x5a68d2,this[_0x1e8fca(0x249)]=_0x63a3d4;const {menu:_0x5626bb,..._0x34063f}=_0x2eb275({},N,this[_0x1e8fca(0x27c)]);_0x5626bb&&this[_0x1e8fca(0x249)][_0x1e8fca(0x267)]('menu',_0x5626bb,{'merge':!0x0}),this[_0x1e8fca(0x249)][_0x1e8fca(0x267)](U,_0x34063f),this['_config']['univerContainerId']&&this[_0x1e8fca(0x249)]['setConfig'](G,this[_0x1e8fca(0x27c)]['univerContainerId']);}[_0x2de113(0x28c)](){const _0x380400=_0x2de113;[[f],[p]][_0x380400(0x250)](_0x498b03=>this[_0x380400(0x217)]['add'](_0x498b03));}[_0x2de113(0x21e)](){const _0x494a0c=_0x2de113;this[_0x494a0c(0x217)][_0x494a0c(0x248)](p);}},g(_,_0x2de113(0x20e),_0x574692[_0x2de113(0x205)]),g(_,_0x2de113(0x277),yi),_);H=Ci([R(0x1,_0x5cc2a3(_0x1a7a2a)),R(0x2,_0x126263)],H);export{f as HistoryLoaderService,G as UNIVER_CONTAINER_ID_KEY,d as UNIVER_HISTORY_CONTAINER_ID,H as UniverEditHistoryLoaderPlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x50ff(_0xf48a79,_0x39bbd1){_0xf48a79=_0xf48a79-0x96;const _0x18f43a=_0x18f4();let _0x50ff11=_0x18f43a[_0xf48a79];return _0x50ff11;}(function(_0x3cb1d8,_0x292bc4){const _0x15edc2=_0x50ff,_0x3732a5=_0x3cb1d8();while(!![]){try{const _0x21e4e7=parseInt(_0x15edc2(0x10c))/0x1*(-parseInt(_0x15edc2(0xa6))/0x2)+-parseInt(_0x15edc2(0xf8))/0x3+-parseInt(_0x15edc2(0xcf))/0x4*(-parseInt(_0x15edc2(0x14d))/0x5)+-parseInt(_0x15edc2(0xa4))/0x6*(parseInt(_0x15edc2(0xf7))/0x7)+parseInt(_0x15edc2(0x19e))/0x8*(-parseInt(_0x15edc2(0x1a8))/0x9)+-parseInt(_0x15edc2(0xb9))/0xa*(-parseInt(_0x15edc2(0x140))/0xb)+-parseInt(_0x15edc2(0xac))/0xc*(-parseInt(_0x15edc2(0xc2))/0xd);if(_0x21e4e7===_0x292bc4)break;else _0x3732a5['push'](_0x3732a5['shift']());}catch(_0x460798){_0x3732a5['push'](_0x3732a5['shift']());}}}(_0x18f4,0x4610d),function(_0x412cb6,_0x488e15){const _0x353265=_0x50ff;typeof exports==_0x353265(0x184)&&typeof module<'u'?_0x488e15(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define==_0x353265(0x15e)&&define[_0x353265(0x18f)]?define([_0x353265(0x165),_0x353265(0x19d),_0x353265(0xd6),'@univerjs-pro/collaboration-client',_0x353265(0x112),_0x353265(0x127),'@univerjs/ui',_0x353265(0x18e),_0x353265(0x1c0),'@univerjs-pro/edit-history-viewer',_0x353265(0xe1),_0x353265(0xc7),'@univerjs-pro/sheets-chart-ui','@univerjs-pro/sheets-pivot',_0x353265(0x12f),_0x353265(0xaa),'@univerjs/data-validation',_0x353265(0xb2),_0x353265(0x1c7),_0x353265(0xc3),_0x353265(0xcc),'@univerjs/engine-formula','@univerjs/engine-render',_0x353265(0x1cd),_0x353265(0xff),_0x353265(0x132),_0x353265(0x145),'@univerjs/sheets-data-validation',_0x353265(0xe6),_0x353265(0x13c),_0x353265(0x152),_0x353265(0xe2),'@univerjs/sheets-filter-ui',_0x353265(0x97),_0x353265(0x188),_0x353265(0x18a),_0x353265(0x150),_0x353265(0x1bc),_0x353265(0xa1)],_0x488e15):(_0x412cb6=typeof globalThis<'u'?globalThis:_0x412cb6||self,_0x488e15(_0x412cb6[_0x353265(0x1a5)]={},_0x412cb6[_0x353265(0xd5)],_0x412cb6[_0x353265(0x178)],_0x412cb6['UniverProCollaborationClient'],_0x412cb6[_0x353265(0x1ac)],_0x412cb6[_0x353265(0x182)],_0x412cb6[_0x353265(0x1cb)],_0x412cb6[_0x353265(0x18e)],_0x412cb6[_0x353265(0x15c)],_0x412cb6[_0x353265(0x107)],_0x412cb6[_0x353265(0xc4)],_0x412cb6[_0x353265(0x117)],_0x412cb6[_0x353265(0xee)],_0x412cb6['UniverProSheetsPivot'],_0x412cb6[_0x353265(0x13a)],_0x412cb6[_0x353265(0x108)],_0x412cb6[_0x353265(0x113)],_0x412cb6[_0x353265(0x121)],_0x412cb6['UniverDocsUi'],_0x412cb6[_0x353265(0xd8)],_0x412cb6[_0x353265(0x147)],_0x412cb6[_0x353265(0x199)],_0x412cb6[_0x353265(0x19f)],_0x412cb6['UniverNetwork'],_0x412cb6[_0x353265(0x189)],_0x412cb6[_0x353265(0x1af)],_0x412cb6['UniverSheetsConditionalFormattingUi'],_0x412cb6[_0x353265(0x12c)],_0x412cb6[_0x353265(0x1cc)],_0x412cb6[_0x353265(0x142)],_0x412cb6[_0x353265(0xef)],_0x412cb6[_0x353265(0x1a1)],_0x412cb6[_0x353265(0xb7)],_0x412cb6[_0x353265(0x1a2)],_0x412cb6[_0x353265(0x10e)],_0x412cb6[_0x353265(0xa2)],_0x412cb6[_0x353265(0x106)],_0x412cb6[_0x353265(0xba)],_0x412cb6[_0x353265(0xe9)]));}(this,function(_0x499ea8,_0x552bc0,_0x2becc8,_0x4066ae,_0x2b93b4,_0x3ee021,_0x32ea1f,_0x5cbe1b,_0x2bdedc,_0x287bf5,_0xc29e25,_0x5a7077,_0x3930dc,_0x4a4663,_0x92e78a,_0x28efd3,_0x5a8ca2,_0x103434,_0x139240,_0x280d59,_0xc13d65,_0x4c5781,_0x3901d7,_0x5db487,_0x15c2e0,_0x39df8d,_0x337a74,_0x435448,_0x47d510,_0x3284fa,_0x2e002c,_0x45da5c,_0x2798c5,_0x28a065,_0x31c5b8,_0xa14e19,_0x2fb780,_0xd494b1,_0x5bae2b){'use strict';const _0x37a0ed=_0x50ff;var _0x5d9183=Object[_0x37a0ed(0x1b8)],_0x2340db=(_0x3ab77b,_0x4e8c9d,_0x1e0fef)=>_0x4e8c9d in _0x3ab77b?_0x5d9183(_0x3ab77b,_0x4e8c9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e0fef}):_0x3ab77b[_0x4e8c9d]=_0x1e0fef,_0x4bf57e=(_0x3c19c6,_0xb0e27a,_0x1c3a4a)=>_0x2340db(_0x3c19c6,typeof _0xb0e27a!=_0x37a0ed(0xec)?_0xb0e27a+'':_0xb0e27a,_0x1c3a4a),_0x429c68;const _0x4b7dc5=_0x37a0ed(0x109),_0x111fb7={};function _0x1ad9a0({ref:_0x45e39f,..._0x369c30}){const _0xe9dbe9=_0x37a0ed,{icon:_0x226685,id:_0x12ad87,className:_0x30fe87,extend:_0xe0b7ce,..._0x1b5043}=_0x369c30,_0x362b8c=(_0xe9dbe9(0x1b4)+_0x12ad87+'\x20'+(_0x30fe87||''))[_0xe9dbe9(0xf5)](),_0x5154d2=_0x3ee021[_0xe9dbe9(0x143)]('_'+_0x2a20ac());return _0x549a3e(_0x226685,''+_0x12ad87,{'defIds':_0x226685[_0xe9dbe9(0x149)],'idSuffix':_0x5154d2[_0xe9dbe9(0x1c1)]},{'ref':_0x45e39f,'className':_0x362b8c,..._0x1b5043},_0xe0b7ce);}function _0x549a3e(_0x219968,_0x5d0c19,_0xb459cb,_0x3c12df,_0xe7f1b9){const _0x533594=_0x37a0ed;return _0x3ee021[_0x533594(0x96)](_0x219968[_0x533594(0xd9)],{'key':_0x5d0c19,..._0x4b1af6(_0x219968,_0xb459cb,_0xe7f1b9),..._0x3c12df},(_0x4e33a8(_0x219968,_0xb459cb)[_0x533594(0x172)]||[])[_0x533594(0x105)]((_0x3a8cd4,_0x18aec2)=>_0x549a3e(_0x3a8cd4,_0x5d0c19+'-'+_0x219968[_0x533594(0xd9)]+'-'+_0x18aec2,_0xb459cb,void 0x0,_0xe7f1b9)));}function _0x4b1af6(_0x416ea6,_0x4ec526,_0x59cc09){const _0x530f62=_0x37a0ed,_0x2610d8={..._0x416ea6[_0x530f62(0xc8)]};_0x59cc09!=null&&_0x59cc09['colorChannel1']&&_0x2610d8[_0x530f62(0x122)]===_0x530f62(0xbf)&&(_0x2610d8['fill']=_0x59cc09['colorChannel1']),_0x416ea6[_0x530f62(0xd9)]===_0x530f62(0xc1)&&_0x2610d8['id']&&(_0x2610d8['id']=_0x2610d8['id']+_0x4ec526[_0x530f62(0x14a)]),Object[_0x530f62(0xaf)](_0x2610d8)[_0x530f62(0x139)](([_0x5d2d2d,_0x2ecf5d])=>{const _0x268a0c=_0x530f62;_0x5d2d2d===_0x268a0c(0xc1)&&typeof _0x2ecf5d=='string'&&(_0x2610d8[_0x5d2d2d]=_0x2ecf5d[_0x268a0c(0x179)](/url\(#(.*)\)/,_0x268a0c(0xed)+_0x4ec526['idSuffix']+')'));});const {defIds:_0x4b103c}=_0x4ec526;return!_0x4b103c||_0x4b103c[_0x530f62(0xc0)]===0x0||(_0x416ea6[_0x530f62(0xd9)]==='use'&&_0x2610d8[_0x530f62(0x135)]&&(_0x2610d8['xlink:href']=_0x2610d8['xlink:href']+_0x4ec526[_0x530f62(0x14a)]),Object['entries'](_0x2610d8)[_0x530f62(0x139)](([_0x5d81d5,_0x1fd315])=>{const _0xfdcf0=_0x530f62;typeof _0x1fd315==_0xfdcf0(0x1ae)&&(_0x2610d8[_0x5d81d5]=_0x1fd315[_0xfdcf0(0x179)](/url\(#(.*)\)/,_0xfdcf0(0xed)+_0x4ec526['idSuffix']+')'));})),_0x2610d8;}function _0x4e33a8(_0xc6833b,_0x3e4bc1){const _0x3f561e=_0x37a0ed;var _0x43f5ea;const {defIds:_0x4f097f}=_0x3e4bc1;return!_0x4f097f||_0x4f097f['length']===0x0?_0xc6833b:_0xc6833b[_0x3f561e(0xd9)]==='defs'&&((_0x43f5ea=_0xc6833b[_0x3f561e(0x172)])!=null&&_0x43f5ea[_0x3f561e(0xc0)])?{..._0xc6833b,'children':_0xc6833b[_0x3f561e(0x172)][_0x3f561e(0x105)](_0x2dbb6f=>typeof _0x2dbb6f[_0x3f561e(0xc8)]['id']==_0x3f561e(0x1ae)&&_0x4f097f&&_0x4f097f['includes'](_0x2dbb6f[_0x3f561e(0xc8)]['id'])?{..._0x2dbb6f,'attrs':{..._0x2dbb6f['attrs'],'id':_0x2dbb6f['attrs']['id']+_0x3e4bc1['idSuffix']}}:_0x2dbb6f)}:_0xc6833b;}function _0x2a20ac(){const _0x1e5d16=_0x37a0ed;return Math[_0x1e5d16(0x191)]()[_0x1e5d16(0x1b1)](0x24)[_0x1e5d16(0x157)](0x2,0x8);}_0x1ad9a0[_0x37a0ed(0x1bf)]=_0x37a0ed(0x19a);const _0x4f99c9={'tag':_0x37a0ed(0x167),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x37a0ed(0x13d),'viewBox':'0\x200\x2016\x2016','width':_0x37a0ed(0x175),'height':_0x37a0ed(0x175)},'children':[{'tag':'g','attrs':{'fill':_0x37a0ed(0x17e),'clipPath':_0x37a0ed(0x9a)},'children':[{'tag':_0x37a0ed(0x16d),'attrs':{'d':_0x37a0ed(0x15b)}},{'tag':_0x37a0ed(0x16d),'attrs':{'d':_0x37a0ed(0x9f)}}]},{'tag':_0x37a0ed(0x164),'attrs':{},'children':[{'tag':_0x37a0ed(0xd3),'attrs':{'id':'history-icon_clip0_907_281'},'children':[{'tag':'path','attrs':{'fill':_0x37a0ed(0xfc),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x37a0ed(0xd0)]},_0x39ba41=_0x3ee021[_0x37a0ed(0xcd)](function(_0x55f7cc,_0x421d40){const _0x4d7abe=_0x37a0ed;return _0x3ee021[_0x4d7abe(0x96)](_0x1ad9a0,Object[_0x4d7abe(0x11e)]({},_0x55f7cc,{'id':_0x4d7abe(0xb8),'ref':_0x421d40,'icon':_0x4f99c9}));});_0x39ba41[_0x37a0ed(0x1bf)]='HistoryIcon';var _0x511308=Object[_0x37a0ed(0x1ad)],_0x2d8b27=(_0xbb4dbb,_0x4951e7,_0x5c4d62,_0xfd5cb9)=>{const _0x2e960e=_0x37a0ed;for(var _0x5be450=_0xfd5cb9>0x1?void 0x0:_0xfd5cb9?_0x511308(_0x4951e7,_0x5c4d62):_0x4951e7,_0x4af3aa=_0xbb4dbb[_0x2e960e(0xc0)]-0x1,_0x42f515;_0x4af3aa>=0x0;_0x4af3aa--)(_0x42f515=_0xbb4dbb[_0x4af3aa])&&(_0x5be450=_0x42f515(_0x5be450)||_0x5be450);return _0x5be450;},_0x2984e8=(_0x53a3ac,_0x2e9987)=>(_0x5aa92b,_0x1da039)=>_0x2e9987(_0x5aa92b,_0x1da039,_0x53a3ac);const _0x3f5aeb=_0x37a0ed(0x173),_0x333531=_0x37a0ed(0x1ab),_0x3c86af=_0x37a0ed(0xbb);_0x499ea8[_0x37a0ed(0x131)]=class extends _0x552bc0['Disposable']{constructor(_0x5380cb,_0x11c787,_0x3fd705,_0x157cb4,_0x4b651c,_0x1b62bb,_0x3c9d94,_0x6f937d,_0x13ceab,_0x12ae5b){const _0x42b13f=_0x37a0ed;super(),_0x4bf57e(this,_0x42b13f(0xb6),new _0x5cbe1b['BehaviorSubject'](null)),_0x4bf57e(this,_0x42b13f(0xe0),this[_0x42b13f(0xb6)][_0x42b13f(0x13e)]()),_0x4bf57e(this,'_disposableCollection',new _0x552bc0[(_0x42b13f(0x162))]()),_0x4bf57e(this,'_pluginMap',new Map()),(this['_localeService']=_0x5380cb,this[_0x42b13f(0xe3)]=_0x11c787,this[_0x42b13f(0x1c5)]=_0x3fd705,this[_0x42b13f(0x17a)]=_0x157cb4,this['_messageService']=_0x4b651c,this['_permissionService']=_0x1b62bb,this[_0x42b13f(0x17d)]=_0x3c9d94,this[_0x42b13f(0xbe)]=_0x6f937d,this[_0x42b13f(0x11f)]=_0x13ceab,this[_0x42b13f(0x12d)]=_0x12ae5b,this[_0x42b13f(0x115)]());}get[_0x37a0ed(0xfa)](){const _0xe9fc8d=_0x37a0ed;return this[_0xe9fc8d(0xb6)][_0xe9fc8d(0xab)];}['_init'](){const _0x2dc47f=_0x37a0ed;this[_0x2dc47f(0x98)](),this[_0x2dc47f(0x176)]();}[_0x37a0ed(0x98)](){const _0x480182=_0x37a0ed;var _0x43c918;const _0x37fac7=(_0x43c918=this['_configService'][_0x480182(0x1ce)](_0x333531))!=null?_0x43c918:_0x3f5aeb,_0x44b910=document[_0x480182(0xf2)](_0x37fac7);if(!_0x44b910)return;const _0x534303=document[_0x480182(0x96)](_0x480182(0xc9));_0x534303['id']=_0x3c86af,_0x534303[_0x480182(0xf1)][_0x480182(0x186)]='history-container',_0x534303['style']['position']='absolute',_0x534303[_0x480182(0x1c3)][_0x480182(0xb4)]='0',_0x534303[_0x480182(0x1c3)][_0x480182(0x15a)]='0',_0x534303[_0x480182(0x1c3)][_0x480182(0xeb)]='100%',_0x534303[_0x480182(0x1c3)][_0x480182(0x198)]=_0x480182(0xa9),_0x534303[_0x480182(0x1c3)][_0x480182(0xe4)]=_0x480182(0x16c),_0x534303[_0x480182(0x1c3)][_0x480182(0xb1)]=_0x480182(0x13d),_0x44b910['appendChild'](_0x534303);}[_0x37a0ed(0x176)](){const _0x559556=_0x37a0ed;var _0x4dc349,_0x5cc537,_0x5c2e2c,_0x1df7b5;[[_0x3901d7[_0x559556(0x13b)]],[_0x32ea1f[_0x559556(0x12b)],{'container':_0x3c86af,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x32ea1f[_0x559556(0x183)],null]]}],[_0x5db487[_0x559556(0xfe)]],[_0x280d59[_0x559556(0x1b7)],{'override':[[_0x280d59[_0x559556(0x1aa)],null]]}],[_0x103434['UniverDocsPlugin'],{'hasScroll':!0x1}],[_0x139240['UniverDocsUIPlugin']],[_0xd494b1[_0x559556(0x1c6)]],[_0x2bdedc[_0x559556(0x13f)],{'notExecuteFormula':!0x0}],[_0x5bae2b[_0x559556(0x119)]],[_0x28a065[_0x559556(0x1bb)]],[_0x31c5b8['UniverSheetsFormulaUIPlugin']],[_0x2becc8[_0x559556(0x1b0)]],[_0x45da5c[_0x559556(0xfd)]],[_0x2798c5[_0x559556(0x18b)]],[_0x39df8d[_0x559556(0x114)]],[_0x337a74[_0x559556(0x18d)]],[_0xa14e19[_0x559556(0x104)]],[_0x2fb780[_0x559556(0x14f)]],[_0x5a8ca2[_0x559556(0xa8)]],[_0x435448[_0x559556(0x11d)]],[_0x47d510[_0x559556(0x12e)]],[_0x4c5781['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x15c2e0[_0x559556(0x125)],{'workerURL':(_0x5cc537=(_0x4dc349=this[_0x559556(0x1c5)][_0x559556(0x1ce)](_0x15c2e0[_0x559556(0x154)]))==null?void 0x0:_0x4dc349[_0x559556(0x148)])!=null?_0x5cc537:_0x559556(0x11b)}],[_0xc13d65['UniverDrawingUIPlugin']],[_0x3284fa[_0x559556(0x9b)]],[_0x2e002c[_0x559556(0x156)]],[_0x92e78a[_0x559556(0x163)]],[_0x28efd3[_0x559556(0x17b)]],[_0x5a7077[_0x559556(0x144)]],[_0x3930dc[_0x559556(0xf4)]],[_0x4a4663[_0x559556(0xe5)],{'notExecuteFormula':!0x0}],[_0x287bf5[_0x559556(0x155)],{'historyListServerUrl':(_0x5c2e2c=this[_0x559556(0x1c5)]['getConfig'](_0x4b7dc5))==null?void 0x0:_0x5c2e2c[_0x559556(0x133)],'historyPanelComponentKey':(_0x1df7b5=this[_0x559556(0x1c5)][_0x559556(0x1ce)](_0x4b7dc5))==null?void 0x0:_0x1df7b5[_0x559556(0x193)]}]][_0x559556(0x139)](([_0x58b364,_0x32dec2])=>this[_0x559556(0x12a)](_0x58b364,_0x32dec2));}[_0x37a0ed(0x1b3)](){const _0x12ee02=_0x37a0ed;super[_0x12ee02(0x1b3)](),this[_0x12ee02(0x151)](),this[_0x12ee02(0x129)][_0x12ee02(0x160)]();}[_0x37a0ed(0x12a)](_0x40a63d,_0x2c8caa,_0x270036){const _0x2f9b81=_0x37a0ed;if(this[_0x2f9b81(0x129)][_0x2f9b81(0x14b)](_0x40a63d[_0x2f9b81(0x136)])&&!_0x270036)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x40a63d[_0x2f9b81(0x136)]+_0x2f9b81(0x100));this[_0x2f9b81(0x129)]['set'](_0x40a63d[_0x2f9b81(0x136)],[_0x40a63d,_0x2c8caa]);}[_0x37a0ed(0xcb)](){const _0x4d2db4=_0x37a0ed;return Array[_0x4d2db4(0x153)](this[_0x4d2db4(0x129)][_0x4d2db4(0x195)]());}['mountHistoryContent'](_0x23aa65){const _0x4ffb05=_0x37a0ed,_0x855776=document['getElementById'](_0x3c86af);_0x855776&&(_0x855776[_0x4ffb05(0x1c3)]['display']=_0x4ffb05(0x177),this['_initUniver'](_0x23aa65,_0x3c86af));}[_0x37a0ed(0x151)](){const _0x173673=_0x37a0ed;var _0x31d436;this['_disposableCollection'][_0x173673(0x1b3)](),(_0x31d436=this[_0x173673(0xfa)])==null||_0x31d436[_0x173673(0x1b3)](),this[_0x173673(0xb6)][_0x173673(0x181)](null);const _0x2170bd=document[_0x173673(0xf2)](_0x3c86af);_0x2170bd&&(_0x2170bd[_0x173673(0x1c3)][_0x173673(0xb1)]=_0x173673(0x13d));}[_0x37a0ed(0x17c)](_0x2871f2,_0x10993d){const _0x1d51dc=_0x37a0ed;if(this[_0x1d51dc(0xfa)])return;const _0x5b929e=new _0x552bc0[(_0x1d51dc(0x102))]({'locales':{[this[_0x1d51dc(0x19c)][_0x1d51dc(0xf3)]()]:this[_0x1d51dc(0x19c)][_0x1d51dc(0xbd)]()},'override':[[_0x552bc0['IAuthzIoService'],{'useClass':_0x4066ae[_0x1d51dc(0x166)]}]]}),_0x3f92f7=_0x5b929e[_0x1d51dc(0x141)]();this[_0x1d51dc(0xde)](this['_themeService'][_0x1d51dc(0x116)][_0x1d51dc(0x19b)](_0x4af4fd=>{const _0x3c4f8f=_0x1d51dc;_0x3f92f7['get'](_0x552bc0['ThemeService'])[_0x3c4f8f(0x9e)](_0x4af4fd);})),this[_0x1d51dc(0xde)](this[_0x1d51dc(0x12d)][_0x1d51dc(0x1b5)]['subscribe'](_0x5a867b=>{const _0x2eb13c=_0x1d51dc;_0x3f92f7['get'](_0x552bc0[_0x2eb13c(0xd7)])['setTheme'](_0x5a867b);})),_0x3f92f7[_0x1d51dc(0x1c4)](_0x552bc0[_0x1d51dc(0xb3)])[_0x1d51dc(0x187)](this[_0x1d51dc(0x19c)]['getCurrentLocale']()),_0x3f92f7['get'](_0x552bc0[_0x1d51dc(0x16b)])[_0x1d51dc(0x126)](_0x4066ae[_0x1d51dc(0xdf)],this[_0x1d51dc(0x1c5)][_0x1d51dc(0x1ce)](_0x4066ae[_0x1d51dc(0xdf)]));const _0x453e05=this[_0x1d51dc(0x1c5)][_0x1d51dc(0x1ce)](_0xc29e25[_0x1d51dc(0x137)]);_0x453e05&&_0x5b929e['registerPlugin'](_0xc29e25[_0x1d51dc(0xa0)],{'license':_0x453e05['ls']}),this[_0x1d51dc(0x129)][_0x1d51dc(0x139)](([_0x33e9b0,_0x37ed8d])=>{const _0x3d9c08=_0x1d51dc;_0x5b929e[_0x3d9c08(0x12a)](_0x33e9b0,_0x37ed8d);}),_0x3f92f7[_0x1d51dc(0xf0)](_0x22c3bc=>{const _0x368380=_0x1d51dc;this[_0x368380(0xd1)](_0x22c3bc,_0x2871f2);}),this['_historyUniver$']['next'](_0x5b929e);const _0x515bf2=_0x3f92f7[_0x1d51dc(0x1c4)](_0x287bf5['HistoryManagerService']),_0x392fb5=this[_0x1d51dc(0x138)](_0x2871f2);_0x515bf2[_0x1d51dc(0x101)](_0x2871f2,_0x10993d,_0x392fb5);}[_0x37a0ed(0xd1)](_0x17f743,_0x51dbba){const _0x186b1a=_0x37a0ed,_0x18d1f8=_0x17f743[_0x186b1a(0x1c4)](_0x287bf5[_0x186b1a(0x99)]);this[_0x186b1a(0xe8)]['add'](_0x18d1f8[_0x186b1a(0x18c)][_0x186b1a(0x19b)](_0x5325ac=>{const _0x5aa00e=_0x186b1a;switch(_0x5325ac){case _0x287bf5[_0x5aa00e(0x158)][_0x5aa00e(0xc5)]:this[_0x5aa00e(0xbe)]['closeAll'](),this[_0x5aa00e(0x11f)]['close']();break;case _0x287bf5['HistoryModeStatus']['Exited']:this[_0x5aa00e(0x17a)]['executeCommand'](_0x3bd5b2['id']),this[_0x5aa00e(0x151)]();break;case _0x287bf5['HistoryModeStatus'][_0x5aa00e(0x1b9)]:this['unMountHistoryContent'](),this[_0x5aa00e(0xdd)]['show']({'content':this[_0x5aa00e(0x19c)]['t'](_0x5aa00e(0xda)),'type':_0x2b93b4[_0x5aa00e(0xe7)][_0x5aa00e(0x1b9)],'duration':0xbb8});break;}})),this[_0x186b1a(0xe8)][_0x186b1a(0x14e)](_0x18d1f8['revertRevision$'][_0x186b1a(0x19b)](async _0x2c5a53=>{const _0x8c582b=_0x186b1a;_0x2c5a53&&this[_0x8c582b(0x17a)]['executeCommand'](_0x2becc8['RevertRevisionMutation']['id'],{'unitId':_0x51dbba,'revision':_0x2c5a53});}));}[_0x37a0ed(0x138)](_0x387c9e){const _0x59e178=_0x37a0ed,_0x1716d9=this[_0x59e178(0xe3)][_0x59e178(0x10b)](_0x387c9e)[_0x59e178(0x1c8)]()['map'](_0x30621c=>_0x30621c['getSheetId']()),_0x4480d9=new _0x2bdedc[(_0x59e178(0xa3))](_0x387c9e)['id'],_0xff3002=_0x1716d9[_0x59e178(0x105)](_0x25a2c6=>new _0x2bdedc[(_0x59e178(0x192))](_0x387c9e,_0x25a2c6)['id']),_0x44341e=_0x1716d9[_0x59e178(0x105)](_0x137f2d=>this[_0x59e178(0x17d)][_0x59e178(0x14c)](_0x387c9e,_0x137f2d)[_0x59e178(0x105)](_0x5223ac=>new _0x2bdedc[(_0x59e178(0x123))](_0x387c9e,_0x137f2d,_0x5223ac[_0x59e178(0xce)])['id']))['flat'](),_0x162362=new _0x2bdedc['WorkbookRecoverHistoryPermission'](_0x387c9e)['id'];return this[_0x59e178(0x1b6)][_0x59e178(0x1a3)]([_0x4480d9,..._0xff3002,..._0x44341e,_0x162362])['every'](_0x564fb1=>!!_0x564fb1[_0x59e178(0xab)]);}},_0x499ea8[_0x37a0ed(0x131)]=_0x2d8b27([_0x2984e8(0x0,_0x552bc0[_0x37a0ed(0xf6)](_0x552bc0[_0x37a0ed(0xb3)])),_0x2984e8(0x1,_0x552bc0[_0x37a0ed(0xdb)]),_0x2984e8(0x2,_0x552bc0[_0x37a0ed(0x16b)]),_0x2984e8(0x3,_0x552bc0[_0x37a0ed(0x174)]),_0x2984e8(0x4,_0x32ea1f['IMessageService']),_0x2984e8(0x5,_0x552bc0[_0x37a0ed(0xb5)]),_0x2984e8(0x6,_0x552bc0['Inject'](_0x2bdedc[_0x37a0ed(0xea)])),_0x2984e8(0x7,_0x552bc0[_0x37a0ed(0xf6)](_0x32ea1f['IDialogService'])),_0x2984e8(0x8,_0x552bc0['Inject'](_0x32ea1f[_0x37a0ed(0x168)])),_0x2984e8(0x9,_0x552bc0[_0x37a0ed(0xf6)](_0x552bc0[_0x37a0ed(0xd7)]))],_0x499ea8['HistoryLoaderService']);const _0x2a1679={'id':'univer.operation.toggle-edit-history','type':_0x552bc0[_0x37a0ed(0xf9)]['OPERATION'],'handler':_0x3e4228=>{const _0x467d52=_0x37a0ed,_0x3685dd=_0x3e4228[_0x467d52(0x1c4)](_0x499ea8['HistoryLoaderService']),_0x342f2c=_0x3e4228[_0x467d52(0x1c4)](_0x552bc0['IUniverInstanceService']),{unitId:_0x47e002}=_0x2bdedc[_0x467d52(0x110)](_0x342f2c)||{};return _0x47e002?(_0x3685dd['mountHistoryContent'](_0x47e002),!0x0):!0x1;}},_0x3bd5b2={'id':_0x37a0ed(0x169),'type':_0x552bc0['CommandType'][_0x37a0ed(0x171)],'handler':()=>!0x0};function _0x597e0e(_0xee41cd){const _0x3af300=_0x37a0ed;return{'id':_0x2a1679['id'],'type':_0x32ea1f[_0x3af300(0x1ba)]['BUTTON'],'icon':_0x3af300(0x16a),'tooltip':_0x3af300(0x9c),'hidden$':_0x32ea1f[_0x3af300(0x1a9)](_0xee41cd,_0x552bc0[_0x3af300(0x196)][_0x3af300(0xd4)]),'disabled$':_0x5bae2b[_0x3af300(0x16f)](_0xee41cd,{'workbookTypes':[_0x2bdedc[_0x3af300(0xa3)],_0x2bdedc['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x5cc95a={[_0x32ea1f[_0x37a0ed(0xad)][_0x37a0ed(0x197)]]:{[_0x2a1679['id']]:{'order':0.2,'menuItemFactory':_0x597e0e}}};var _0x4c337a=Object['getOwnPropertyDescriptor'],_0x16e034=(_0x48ebef,_0x55ac50,_0x1ce722,_0x4bc321)=>{const _0x12d4a4=_0x37a0ed;for(var _0x1b1e24=_0x4bc321>0x1?void 0x0:_0x4bc321?_0x4c337a(_0x55ac50,_0x1ce722):_0x55ac50,_0x485439=_0x48ebef[_0x12d4a4(0xc0)]-0x1,_0xb62637;_0x485439>=0x0;_0x485439--)(_0xb62637=_0x48ebef[_0x485439])&&(_0x1b1e24=_0xb62637(_0x1b1e24)||_0x1b1e24);return _0x1b1e24;},_0x46deab=(_0x4d53a8,_0x5ce502)=>(_0x55be1a,_0x1e20d8)=>_0x5ce502(_0x55be1a,_0x1e20d8,_0x4d53a8);let _0x4f6ba7=class extends _0x552bc0[_0x37a0ed(0x1c2)]{constructor(_0x3267ce,_0x267a5e,_0xd91a1c,_0xfef625,_0x35410d,_0x5d7949,_0x449cf1,_0x3e6ef7){const _0x1d7210=_0x37a0ed;super(),_0x4bf57e(this,_0x1d7210(0x10a),null),(this[_0x1d7210(0x17a)]=_0x3267ce,this[_0x1d7210(0x1ca)]=_0x267a5e,this['_componentManager']=_0xd91a1c,this[_0x1d7210(0x1c9)]=_0xfef625,this[_0x1d7210(0x19c)]=_0x35410d,this['_messageService']=_0x5d7949,this['_collaborationController']=_0x449cf1,this[_0x1d7210(0x190)]=_0x3e6ef7,this['_init']());}['_init'](){const _0x4d5199=_0x37a0ed;[_0x2a1679,_0x3bd5b2]['forEach'](_0x145c84=>this[_0x4d5199(0xde)](_0x552bc0[_0x4d5199(0xc6)](this[_0x4d5199(0x17a)][_0x4d5199(0x11a)](_0x145c84)))),this[_0x4d5199(0xde)](this[_0x4d5199(0xdc)][_0x4d5199(0xbc)]('HistoryIcon',_0x39ba41)),this[_0x4d5199(0x1ca)][_0x4d5199(0x103)](_0x5cc95a),this[_0x4d5199(0xde)](this[_0x4d5199(0x17a)]['onCommandExecuted'](_0x272269=>{const _0x532ae1=_0x4d5199;if(_0x272269['id']===_0x2becc8[_0x532ae1(0x1a7)]['id']){this[_0x532ae1(0xdd)][_0x532ae1(0xfb)]({'content':this[_0x532ae1(0x19c)]['t']('editHistory.panel.reverting'),'type':_0x2b93b4[_0x532ae1(0xe7)]['Loading'],'duration':0x1388});const {unitId:_0x53630c}=_0x272269[_0x532ae1(0x120)],_0x276aaf=this[_0x532ae1(0x1a4)][_0x532ae1(0x180)](_0x53630c),_0x24bdba=_0x5cbe1b[_0x532ae1(0x17f)]([_0x276aaf[_0x532ae1(0x1be)][_0x532ae1(0xae)],_0x276aaf['state$']])[_0x532ae1(0x19b)](async([_0x2ef913,_0x3f6ba1])=>{const _0x538414=_0x532ae1;var _0x2e3d89;_0x2ef913['eventID']===_0x2becc8[_0x538414(0x170)][_0x538414(0x128)]&&(_0x3f6ba1==null?void 0x0:_0x3f6ba1['status'])===_0x4066ae[_0x538414(0x1bd)][_0x538414(0x194)]&&_0x2ef913[_0x538414(0x161)][_0x538414(0xa7)][_0x538414(0x124)](_0xc38cd8=>_0xc38cd8['id']===_0x2becc8[_0x538414(0x1a7)]['id'])&&(this['_historyManagerService'][_0x538414(0x151)](),_0x24bdba[_0x538414(0x11c)](),this[_0x538414(0x10a)]&&clearTimeout(this['_revertErrorTimer']),await((_0x2e3d89=this[_0x538414(0x190)])==null?void 0x0:_0x2e3d89[_0x538414(0xca)]()),setTimeout(()=>window[_0x538414(0x185)][_0x538414(0xb0)]()));});this[_0x532ae1(0x10a)]=setTimeout(()=>{const _0x27132f=_0x532ae1;_0x24bdba[_0x27132f(0x11c)](),this[_0x27132f(0xdd)][_0x27132f(0xfb)]({'content':this[_0x27132f(0x19c)]['t']('editHistory.panel.revertFailed'),'type':_0x2b93b4[_0x27132f(0xe7)][_0x27132f(0x1b9)],'duration':0xbb8});},0x1388);}}));}};_0x4f6ba7=_0x16e034([_0x46deab(0x0,_0x552bc0['ICommandService']),_0x46deab(0x1,_0x32ea1f[_0x37a0ed(0x10d)]),_0x46deab(0x2,_0x552bc0[_0x37a0ed(0xf6)](_0x32ea1f[_0x37a0ed(0x1b2)])),_0x46deab(0x3,_0x552bc0[_0x37a0ed(0xf6)](_0x499ea8[_0x37a0ed(0x131)])),_0x46deab(0x4,_0x552bc0[_0x37a0ed(0xf6)](_0x552bc0[_0x37a0ed(0xb3)])),_0x46deab(0x5,_0x32ea1f['IMessageService']),_0x46deab(0x6,_0x552bc0[_0x37a0ed(0xf6)](_0x4066ae['CollaborationController'])),_0x46deab(0x7,_0x4066ae[_0x37a0ed(0x10f)])],_0x4f6ba7);var _0x4ed9a2=Object['getOwnPropertyDescriptor'],_0x283792=(_0x3aaf49,_0x2880e3,_0x37758c,_0x2ca88e)=>{for(var _0xea87bc=_0x2ca88e>0x1?void 0x0:_0x2ca88e?_0x4ed9a2(_0x2880e3,_0x37758c):_0x2880e3,_0x27a8d2=_0x3aaf49['length']-0x1,_0x1f3345;_0x27a8d2>=0x0;_0x27a8d2--)(_0x1f3345=_0x3aaf49[_0x27a8d2])&&(_0xea87bc=_0x1f3345(_0xea87bc)||_0xea87bc);return _0xea87bc;},_0x4f04f4=(_0x42a9e9,_0x349908)=>(_0x2f9ae3,_0x585258)=>_0x349908(_0x2f9ae3,_0x585258,_0x42a9e9);const _0x5641f6='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';_0x499ea8[_0x37a0ed(0xd2)]=(_0x429c68=class extends _0x552bc0[_0x37a0ed(0x15f)]{constructor(_0x541dba=_0x111fb7,_0xb59a8a,_0x51acd3){const _0x38f59e=_0x37a0ed;super(),this[_0x38f59e(0x9d)]=_0x541dba,this[_0x38f59e(0x1a0)]=_0xb59a8a,this[_0x38f59e(0x1c5)]=_0x51acd3;const {menu:_0x592394,..._0x3002eb}=_0x552bc0[_0x38f59e(0x134)]({},_0x111fb7,this[_0x38f59e(0x9d)]);_0x592394&&this[_0x38f59e(0x1c5)][_0x38f59e(0x126)](_0x38f59e(0x130),_0x592394,{'merge':!0x0}),this['_configService'][_0x38f59e(0x126)](_0x4b7dc5,_0x3002eb),this['_config'][_0x38f59e(0xa5)]&&this[_0x38f59e(0x1c5)][_0x38f59e(0x126)](_0x333531,this[_0x38f59e(0x9d)]['univerContainerId']);}[_0x37a0ed(0x15d)](){const _0x1c409e=_0x37a0ed;[[_0x499ea8[_0x1c409e(0x131)]],[_0x4f6ba7]]['forEach'](_0x261071=>this[_0x1c409e(0x1a0)][_0x1c409e(0x14e)](_0x261071));}['onSteady'](){const _0x40016f=_0x37a0ed;this[_0x40016f(0x1a0)][_0x40016f(0x1c4)](_0x4f6ba7);}},_0x4bf57e(_0x429c68,_0x37a0ed(0x1a6),_0x552bc0[_0x37a0ed(0x196)][_0x37a0ed(0x111)]),_0x4bf57e(_0x429c68,_0x37a0ed(0x136),_0x5641f6),_0x429c68),_0x499ea8[_0x37a0ed(0xd2)]=_0x283792([_0x4f04f4(0x1,_0x552bc0[_0x37a0ed(0xf6)](_0x552bc0['Injector'])),_0x4f04f4(0x2,_0x552bc0[_0x37a0ed(0x16b)])],_0x499ea8['UniverEditHistoryLoaderPlugin']),_0x499ea8[_0x37a0ed(0x16e)]=_0x333531,_0x499ea8[_0x37a0ed(0x159)]=_0x3c86af,Object['defineProperty'](_0x499ea8,Symbol[_0x37a0ed(0x118)],{'value':_0x37a0ed(0x146)});}));function _0x18f4(){const _0x3d4085=['4058226fuFIeZ','getMenuHiddenObservable','IImageIoService','UNIVER_CONTAINER_ID','UniverDesign','getOwnPropertyDescriptor','string','UniverSheetsConditionalFormatting','UniverCollaborationPlugin','toString','ComponentManager','dispose','univerjs-icon\x20univerjs-icon-','currentTheme$','_permissionService','UniverDrawingPlugin','defineProperty','Error','MenuItemType','UniverSheetsFormulaPlugin','@univerjs/sheets-numfmt','CollaborationStatus','session','displayName','@univerjs/sheets','current','RxDisposable','style','get','_configService','UniverSheetsNumfmtPlugin','@univerjs/docs-ui','getSheets','_historyManagerService','_menuManagerService','UniverUi','UniverSheetsDataValidationUi','@univerjs/network','getConfig','createElement','@univerjs/sheets-formula','_initContainer','HistoryManagerService','url(#history-icon_clip0_907_281)','UniverSheetsDrawingPlugin','editHistory.panel.title','_config','setDarkMode','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','UniverLicensePlugin','@univerjs/sheets-ui','UniverSheetsHyperLink','WorkbookEditablePermission','114396cgejSO','univerContainerId','417604VocopA','mutations','UniverDataValidationPlugin','100%','@univerjs-pro/sheets-sparkline-ui','value','50304cJktWC','RibbonStartGroup','event$','entries','reload','display','@univerjs/docs','LocaleService','top','IPermissionService','_historyUniver$','UniverSheetsFilterUi','history-icon','188450Nmapxg','UniverSheetsNumfmt','univer-history-container','register','getLocales','_dialogService','colorChannel1','length','mask','5057PAbwJi','@univerjs/drawing','UniverProLicense','Entered','toDisposable','@univerjs-pro/sheets-chart','attrs','div','exhaustSavingTask','getAllPlugins','@univerjs/drawing-ui','forwardRef','permissionId','1024184eGsvAw','history-icon_clip0_907_281','_initListener','UniverEditHistoryLoaderPlugin','clipPath','UNIVER_SHEET','UniverCore','@univerjs-pro/collaboration','ThemeService','UniverDrawing','tag','editHistory.panel.listFetchError','IUniverInstanceService','_componentManager','_messageService','disposeWithMe','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','historyUniver$','@univerjs-pro/license','@univerjs/sheets-filter','_univerInstanceService','zIndex','UniverSheetsPivotTablePlugin','@univerjs/sheets-data-validation-ui','MessageType','_disposableCollection','UniverSheetsUi','RangeProtectionRuleModel','width','symbol','url(#$1','UniverProSheetsChartUi','UniverSheetsDrawingUi','invoke','dataset','getElementById','getCurrentLocale','UniverSheetsChartUIPlugin','trim','Inject','105cwquLF','1392246cxqEAx','CommandType','historyUniver','show','white','UniverSheetsFilterPlugin','UniverNetworkPlugin','@univerjs/rpc','\x20has\x20been\x20registered.','triggerLoadVersions','Univer','mergeMenu','UniverSheetsHyperLinkPlugin','map','UniverSheetsHyperLinkUi','UniverProEditHistoryViewer','UniverProSheetsSparklineUi','edit-history-loader.config','_revertErrorTimer','getUnit','2pVeFFz','IMenuManagerService','UniverSheetsFormulaUi','ILocalCacheService','getSheetCommandTarget','UNIVER_UNKNOWN','@univerjs/design','UniverDataValidation','UniverSheetsConditionalFormattingPlugin','_init','darkMode$','UniverProSheetsChart','toStringTag','UniverSheetsUIPlugin','registerCommand','./worker.js','unsubscribe','UniverSheetsDataValidationPlugin','assign','_sidebarService','params','UniverDocs','fill','RangeProtectionPermissionEditPoint','some','UniverRPCMainThreadPlugin','setConfig','react','CHANGESET_ACK','_pluginMap','registerPlugin','UniverUIPlugin','UniverSheetsDataValidation','_themeService','UniverSheetsDataValidationUIPlugin','@univerjs-pro/sheets-sparkline','menu','HistoryLoaderService','@univerjs/sheets-conditional-formatting','historyListServerUrl','merge','xlink:href','pluginName','LS_CONFIG_KEY','_checkCanRevert','forEach','UniverProSheetsSparkline','UniverRenderEnginePlugin','@univerjs/sheets-drawing','none','asObservable','UniverSheetsPlugin','11OxnXjp','__getInjector','UniverSheetsDrawing','useRef','UniverSheetsChartPlugin','@univerjs/sheets-conditional-formatting-ui','Module','UniverDrawingUi','workerURL','defIds','idSuffix','has','getSubunitRuleList','5bAnolD','add','UniverSheetsHyperLinkUIPlugin','@univerjs/sheets-hyper-link-ui','unMountHistoryContent','@univerjs/sheets-drawing-ui','from','PLUGIN_CONFIG_KEY_MAIN_THREAD','UniverEditHistoryViewerPlugin','UniverSheetsDrawingUIPlugin','substring','HistoryModeStatus','UNIVER_HISTORY_CONTAINER_ID','left','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','UniverSheets','onStarting','function','Plugin','clear','data','DisposableCollection','UniverSheetSparklinePlugin','defs','exports','AuthzIoHttpService','svg','ISidebarService','univer.operation.exit-edit-history','HistoryIcon','IConfigService','1000','path','UNIVER_CONTAINER_ID_KEY','getCurrentRangeDisable$','CollaborationEvent','OPERATION','children','univer-container','ICommandService','1em','_initPlugins','block','UniverProCollaboration','replace','_commandService','UniverSheetSparklineUIPlugin','_initUniver','_selectionProtectionRuleModel','currentColor','combineLatest','getCollabEntity','next','React','IDialogService','object','location','uComp','setLocale','@univerjs/sheets-formula-ui','UniverRpc','@univerjs/sheets-hyper-link','UniverSheetsFilterUIPlugin','status$','UniverSheetsConditionalFormattingUIPlugin','rxjs','amd','_localCacheService','random','WorksheetEditPermission','historyPanelComponentKey','SYNCED','values','UniverInstanceType','OTHERS','height','UniverEngineFormula','UniverIcon','subscribe','_localeService','@univerjs/core','8IbAION','UniverEngineRender','_injector','UniverSheetsFilter','UniverSheetsFormula','composePermission','_collaborationController','UniverProEditHistoryLoader','type','RevertRevisionMutation'];_0x18f4=function(){return _0x3d4085;};return _0x18f4();}
|
|
1
|
+
function _0x1634(_0x37788d,_0x40f6d1){_0x37788d=_0x37788d-0x15e;const _0x4491b2=_0x4491();let _0x1634dd=_0x4491b2[_0x37788d];return _0x1634dd;}(function(_0x2f0849,_0x5c057c){const _0x3287e2=_0x1634,_0x2cfa8c=_0x2f0849();while(!![]){try{const _0x2dd5c9=-parseInt(_0x3287e2(0x214))/0x1+parseInt(_0x3287e2(0x253))/0x2+-parseInt(_0x3287e2(0x212))/0x3*(parseInt(_0x3287e2(0x1e8))/0x4)+parseInt(_0x3287e2(0x1f8))/0x5+parseInt(_0x3287e2(0x19a))/0x6*(-parseInt(_0x3287e2(0x1b8))/0x7)+parseInt(_0x3287e2(0x187))/0x8+-parseInt(_0x3287e2(0x17c))/0x9*(parseInt(_0x3287e2(0x235))/0xa);if(_0x2dd5c9===_0x5c057c)break;else _0x2cfa8c['push'](_0x2cfa8c['shift']());}catch(_0x1902c3){_0x2cfa8c['push'](_0x2cfa8c['shift']());}}}(_0x4491,0xeefdc),function(_0x20534c,_0x2fac90){const _0x286f88=_0x1634;typeof exports==_0x286f88(0x22a)&&typeof module<'u'?_0x2fac90(exports,require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/design'),require('react'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/sheets'),require('@univerjs-pro/edit-history-viewer'),require('@univerjs-pro/license'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-chart-ui'),require('@univerjs-pro/sheets-pivot'),require('@univerjs-pro/sheets-sparkline'),require('@univerjs-pro/sheets-sparkline-ui'),require('@univerjs/data-validation'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs/drawing-ui'),require('@univerjs/engine-formula'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/rpc'),require('@univerjs/sheets-conditional-formatting'),require('@univerjs/sheets-conditional-formatting-ui'),require('@univerjs/sheets-data-validation'),require('@univerjs/sheets-data-validation-ui'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets-drawing-ui'),require('@univerjs/sheets-filter'),require('@univerjs/sheets-filter-ui'),require('@univerjs/sheets-formula'),require('@univerjs/sheets-formula-ui'),require('@univerjs/sheets-hyper-link'),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require('@univerjs/sheets-ui')):typeof define==_0x286f88(0x25d)&&define[_0x286f88(0x200)]?define([_0x286f88(0x243),_0x286f88(0x24a),_0x286f88(0x23b),_0x286f88(0x1b4),_0x286f88(0x1da),'react',_0x286f88(0x19e),'rxjs',_0x286f88(0x249),_0x286f88(0x1a9),_0x286f88(0x228),'@univerjs-pro/sheets-chart',_0x286f88(0x1c2),_0x286f88(0x1ce),_0x286f88(0x1ca),_0x286f88(0x265),_0x286f88(0x1a0),_0x286f88(0x1f2),_0x286f88(0x188),'@univerjs/drawing','@univerjs/drawing-ui','@univerjs/engine-formula',_0x286f88(0x23d),_0x286f88(0x1f6),_0x286f88(0x215),_0x286f88(0x1f7),_0x286f88(0x181),_0x286f88(0x27c),_0x286f88(0x202),_0x286f88(0x1d6),'@univerjs/sheets-drawing-ui',_0x286f88(0x19f),_0x286f88(0x1b3),'@univerjs/sheets-formula','@univerjs/sheets-formula-ui',_0x286f88(0x1f3),_0x286f88(0x22c),'@univerjs/sheets-numfmt',_0x286f88(0x1c5)],_0x2fac90):(_0x20534c=typeof globalThis<'u'?globalThis:_0x20534c||self,_0x2fac90(_0x20534c['UniverProEditHistoryLoader']={},_0x20534c[_0x286f88(0x1d1)],_0x20534c[_0x286f88(0x1fc)],_0x20534c[_0x286f88(0x1fa)],_0x20534c[_0x286f88(0x231)],_0x20534c['React'],_0x20534c['UniverUi'],_0x20534c['rxjs'],_0x20534c[_0x286f88(0x260)],_0x20534c[_0x286f88(0x1a1)],_0x20534c[_0x286f88(0x1df)],_0x20534c[_0x286f88(0x165)],_0x20534c[_0x286f88(0x168)],_0x20534c[_0x286f88(0x16a)],_0x20534c['UniverProSheetsSparkline'],_0x20534c[_0x286f88(0x162)],_0x20534c['UniverDataValidation'],_0x20534c['UniverDocs'],_0x20534c[_0x286f88(0x223)],_0x20534c['UniverDrawing'],_0x20534c['UniverDrawingUi'],_0x20534c['UniverEngineFormula'],_0x20534c['UniverEngineRender'],_0x20534c['UniverNetwork'],_0x20534c[_0x286f88(0x15f)],_0x20534c['UniverSheetsConditionalFormatting'],_0x20534c['UniverSheetsConditionalFormattingUi'],_0x20534c[_0x286f88(0x1c3)],_0x20534c['UniverSheetsDataValidationUi'],_0x20534c[_0x286f88(0x201)],_0x20534c[_0x286f88(0x19d)],_0x20534c[_0x286f88(0x211)],_0x20534c[_0x286f88(0x246)],_0x20534c['UniverSheetsFormula'],_0x20534c['UniverSheetsFormulaUi'],_0x20534c[_0x286f88(0x221)],_0x20534c[_0x286f88(0x251)],_0x20534c[_0x286f88(0x1fe)],_0x20534c['UniverSheetsUi']));}(this,function(_0x53361a,_0x3bf210,_0x5106b9,_0x59273f,_0x25e598,_0x37f071,_0x13d107,_0x3e7fcc,_0x315646,_0x201f6f,_0x6d5198,_0x16089a,_0x5b5d7b,_0x5993d7,_0x46bb70,_0x281f89,_0x3e4bfc,_0x2f2080,_0x1315ef,_0x823394,_0x58c9a5,_0x598398,_0x2b1f58,_0x4d8b21,_0x42e200,_0x4d274b,_0x57f681,_0x228643,_0x52b4cf,_0x506630,_0x3bdc0e,_0x756d7d,_0x3dd2b8,_0x380bd7,_0x45f4ae,_0x5e63c4,_0x115423,_0x1abda6,_0x3f9977){'use strict';const _0x57e15c=_0x1634;var _0x5c66b6=Object['defineProperty'],_0x20d750=(_0x1ae0c2,_0x5a8c21,_0x2534a3)=>_0x5a8c21 in _0x1ae0c2?_0x5c66b6(_0x1ae0c2,_0x5a8c21,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2534a3}):_0x1ae0c2[_0x5a8c21]=_0x2534a3,_0x119b3c=(_0x16c283,_0x2ff75c,_0x40686a)=>_0x20d750(_0x16c283,typeof _0x2ff75c!='symbol'?_0x2ff75c+'':_0x2ff75c,_0x40686a),_0x2f61f2;const _0x3cee16=_0x57e15c(0x1d7),_0x522f05={};function _0x35ce2({ref:_0x56fe77,..._0x578114}){const _0x28e209=_0x57e15c,{icon:_0x5881f0,id:_0x1ec9f7,className:_0xdf1865,extend:_0xc84bed,..._0xb78cde}=_0x578114,_0x32056e=('univerjs-icon\x20univerjs-icon-'+_0x1ec9f7+'\x20'+(_0xdf1865||''))[_0x28e209(0x220)](),_0x329b5b=_0x37f071[_0x28e209(0x1d3)]('_'+_0x4923c2());return _0x59125a(_0x5881f0,''+_0x1ec9f7,{'defIds':_0x5881f0['defIds'],'idSuffix':_0x329b5b[_0x28e209(0x195)]},{'ref':_0x56fe77,'className':_0x32056e,..._0xb78cde},_0xc84bed);}function _0x59125a(_0x3a024d,_0x3d0ee9,_0x5427a7,_0x21508f,_0x121eca){const _0x17f320=_0x57e15c;return _0x37f071[_0x17f320(0x18a)](_0x3a024d[_0x17f320(0x1ba)],{'key':_0x3d0ee9,..._0xace96c(_0x3a024d,_0x5427a7,_0x121eca),..._0x21508f},(_0x1f262b(_0x3a024d,_0x5427a7)[_0x17f320(0x238)]||[])[_0x17f320(0x18c)]((_0x138cb4,_0x46913d)=>_0x59125a(_0x138cb4,_0x3d0ee9+'-'+_0x3a024d[_0x17f320(0x1ba)]+'-'+_0x46913d,_0x5427a7,void 0x0,_0x121eca)));}function _0xace96c(_0x3a62e4,_0x23e3b4,_0x49dea0){const _0x1bfe8b=_0x57e15c,_0x1d833f={..._0x3a62e4['attrs']};_0x49dea0!=null&&_0x49dea0[_0x1bfe8b(0x1f5)]&&_0x1d833f[_0x1bfe8b(0x17a)]===_0x1bfe8b(0x1f5)&&(_0x1d833f[_0x1bfe8b(0x17a)]=_0x49dea0['colorChannel1']),_0x3a62e4[_0x1bfe8b(0x1ba)]===_0x1bfe8b(0x1e3)&&_0x1d833f['id']&&(_0x1d833f['id']=_0x1d833f['id']+_0x23e3b4['idSuffix']),Object['entries'](_0x1d833f)[_0x1bfe8b(0x192)](([_0x28c9d3,_0x283d8d])=>{const _0x1956dc=_0x1bfe8b;_0x28c9d3===_0x1956dc(0x1e3)&&typeof _0x283d8d==_0x1956dc(0x1eb)&&(_0x1d833f[_0x28c9d3]=_0x283d8d[_0x1956dc(0x229)](/url\(#(.*)\)/,_0x1956dc(0x22b)+_0x23e3b4[_0x1956dc(0x16e)]+')'));});const {defIds:_0x1ae8da}=_0x23e3b4;return!_0x1ae8da||_0x1ae8da['length']===0x0||(_0x3a62e4[_0x1bfe8b(0x1ba)]==='use'&&_0x1d833f[_0x1bfe8b(0x1ac)]&&(_0x1d833f[_0x1bfe8b(0x1ac)]=_0x1d833f[_0x1bfe8b(0x1ac)]+_0x23e3b4[_0x1bfe8b(0x16e)]),Object['entries'](_0x1d833f)['forEach'](([_0x170dd9,_0x304168])=>{const _0x27bbd8=_0x1bfe8b;typeof _0x304168=='string'&&(_0x1d833f[_0x170dd9]=_0x304168[_0x27bbd8(0x229)](/url\(#(.*)\)/,_0x27bbd8(0x22b)+_0x23e3b4[_0x27bbd8(0x16e)]+')'));})),_0x1d833f;}function _0x1f262b(_0x43a008,_0x302e73){const _0x390a92=_0x57e15c;var _0x321e4a;const {defIds:_0x53f277}=_0x302e73;return!_0x53f277||_0x53f277[_0x390a92(0x1a8)]===0x0?_0x43a008:_0x43a008[_0x390a92(0x1ba)]===_0x390a92(0x263)&&((_0x321e4a=_0x43a008[_0x390a92(0x238)])!=null&&_0x321e4a[_0x390a92(0x1a8)])?{..._0x43a008,'children':_0x43a008[_0x390a92(0x238)][_0x390a92(0x18c)](_0x30cb15=>typeof _0x30cb15['attrs']['id']=='string'&&_0x53f277&&_0x53f277[_0x390a92(0x1bf)](_0x30cb15[_0x390a92(0x1ae)]['id'])?{..._0x30cb15,'attrs':{..._0x30cb15[_0x390a92(0x1ae)],'id':_0x30cb15[_0x390a92(0x1ae)]['id']+_0x302e73[_0x390a92(0x16e)]}}:_0x30cb15)}:_0x43a008;}function _0x4923c2(){const _0x49b22d=_0x57e15c;return Math[_0x49b22d(0x21a)]()[_0x49b22d(0x258)](0x24)['substring'](0x2,0x8);}_0x35ce2[_0x57e15c(0x1e5)]='UniverIcon';const _0x50796d={'tag':_0x57e15c(0x226),'attrs':{'xmlns':_0x57e15c(0x17e),'fill':_0x57e15c(0x227),'viewBox':_0x57e15c(0x241),'width':_0x57e15c(0x222),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x57e15c(0x27f)},'children':[{'tag':_0x57e15c(0x16d),'attrs':{'d':_0x57e15c(0x16f)}},{'tag':_0x57e15c(0x16d),'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':_0x57e15c(0x263),'attrs':{},'children':[{'tag':_0x57e15c(0x271),'attrs':{'id':_0x57e15c(0x1e2)},'children':[{'tag':_0x57e15c(0x16d),'attrs':{'fill':_0x57e15c(0x219),'d':_0x57e15c(0x24f)}}]}]}],'defIds':[_0x57e15c(0x1e2)]},_0x3925b3=_0x37f071[_0x57e15c(0x276)](function(_0x29e0dd,_0x4a4a09){const _0x4f6077=_0x57e15c;return _0x37f071[_0x4f6077(0x18a)](_0x35ce2,Object[_0x4f6077(0x21b)]({},_0x29e0dd,{'id':_0x4f6077(0x268),'ref':_0x4a4a09,'icon':_0x50796d}));});_0x3925b3[_0x57e15c(0x1e5)]=_0x57e15c(0x24d);var _0x226b0e=Object[_0x57e15c(0x180)],_0x2db5ca=(_0x53c2b5,_0x105dbf,_0x2e11a3,_0x53d635)=>{const _0x4d9a27=_0x57e15c;for(var _0x3121b4=_0x53d635>0x1?void 0x0:_0x53d635?_0x226b0e(_0x105dbf,_0x2e11a3):_0x105dbf,_0x31a4a9=_0x53c2b5[_0x4d9a27(0x1a8)]-0x1,_0x56f30e;_0x31a4a9>=0x0;_0x31a4a9--)(_0x56f30e=_0x53c2b5[_0x31a4a9])&&(_0x3121b4=_0x56f30e(_0x3121b4)||_0x3121b4);return _0x3121b4;},_0x42cd5c=(_0x128fcc,_0x2b5fe1)=>(_0x422169,_0x5120c9)=>_0x2b5fe1(_0x422169,_0x5120c9,_0x128fcc);const _0x25be6b=_0x57e15c(0x193),_0x53391d=_0x57e15c(0x18b),_0x308315='univer-history-container';_0x53361a[_0x57e15c(0x1b0)]=class extends _0x3bf210[_0x57e15c(0x27b)]{constructor(_0x27b6c3,_0x1cc201,_0x29572,_0x4504c9,_0x28efd3,_0x36fdfd,_0x59815d,_0x1856ad,_0x1661e6,_0xf2d8fa){const _0x1f2951=_0x57e15c;super(),_0x119b3c(this,_0x1f2951(0x1b2),new _0x3e7fcc[(_0x1f2951(0x203))](null)),_0x119b3c(this,'historyUniver$',this[_0x1f2951(0x1b2)][_0x1f2951(0x1a3)]()),_0x119b3c(this,_0x1f2951(0x161),new _0x3bf210[(_0x1f2951(0x1e0))]()),_0x119b3c(this,_0x1f2951(0x269),new Map()),(this[_0x1f2951(0x245)]=_0x27b6c3,this[_0x1f2951(0x234)]=_0x1cc201,this[_0x1f2951(0x18f)]=_0x29572,this[_0x1f2951(0x277)]=_0x4504c9,this[_0x1f2951(0x177)]=_0x28efd3,this[_0x1f2951(0x1cb)]=_0x36fdfd,this['_selectionProtectionRuleModel']=_0x59815d,this['_dialogService']=_0x1856ad,this[_0x1f2951(0x1be)]=_0x1661e6,this[_0x1f2951(0x1d9)]=_0xf2d8fa,this[_0x1f2951(0x24c)]());}get[_0x57e15c(0x197)](){const _0x37f7f1=_0x57e15c;return this[_0x37f7f1(0x1b2)][_0x37f7f1(0x278)];}[_0x57e15c(0x24c)](){const _0x575c38=_0x57e15c;this[_0x575c38(0x1ff)](),this['_initPlugins']();}[_0x57e15c(0x1ff)](){const _0x42237f=_0x57e15c;var _0x573615;const _0x2bba46=(_0x573615=this[_0x42237f(0x18f)][_0x42237f(0x198)](_0x53391d))!=null?_0x573615:_0x25be6b,_0x365fd1=document[_0x42237f(0x284)](_0x2bba46);if(!_0x365fd1)return;const _0x5ab0ac=document[_0x42237f(0x18a)](_0x42237f(0x25a));_0x5ab0ac['id']=_0x308315,_0x5ab0ac[_0x42237f(0x176)][_0x42237f(0x1fb)]='history-container',_0x5ab0ac['style'][_0x42237f(0x281)]='absolute',_0x5ab0ac['style'][_0x42237f(0x1c0)]='0',_0x5ab0ac['style']['left']='0',_0x5ab0ac['style'][_0x42237f(0x179)]='100%',_0x5ab0ac[_0x42237f(0x1ea)]['height']=_0x42237f(0x186),_0x5ab0ac['style'][_0x42237f(0x205)]=_0x42237f(0x1c6),_0x5ab0ac[_0x42237f(0x1ea)]['display']=_0x42237f(0x227),_0x365fd1[_0x42237f(0x216)](_0x5ab0ac);}[_0x57e15c(0x1ad)](){const _0x3f1e27=_0x57e15c;var _0x1317f3,_0x5edab4,_0x27c80d,_0x27b667;[[_0x2b1f58[_0x3f1e27(0x206)]],[_0x13d107[_0x3f1e27(0x1b6)],{'container':_0x308315,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x13d107[_0x3f1e27(0x244)],null]]}],[_0x4d8b21[_0x3f1e27(0x23c)]],[_0x823394[_0x3f1e27(0x218)],{'override':[[_0x823394[_0x3f1e27(0x1ab)],null]]}],[_0x2f2080[_0x3f1e27(0x264)],{'hasScroll':!0x1}],[_0x1315ef[_0x3f1e27(0x256)]],[_0x1abda6[_0x3f1e27(0x1d5)]],[_0x315646['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[_0x3f9977[_0x3f1e27(0x282)]],[_0x380bd7[_0x3f1e27(0x1e1)]],[_0x45f4ae[_0x3f1e27(0x20d)]],[_0x5106b9['UniverCollaborationPlugin']],[_0x756d7d[_0x3f1e27(0x1c9)]],[_0x3dd2b8[_0x3f1e27(0x21e)]],[_0x4d274b[_0x3f1e27(0x164)]],[_0x57f681['UniverSheetsConditionalFormattingUIPlugin']],[_0x5e63c4[_0x3f1e27(0x1b9)]],[_0x115423[_0x3f1e27(0x273)]],[_0x3e4bfc[_0x3f1e27(0x15e)]],[_0x228643[_0x3f1e27(0x252)]],[_0x52b4cf[_0x3f1e27(0x1c4)]],[_0x598398[_0x3f1e27(0x242)],{'notExecuteFormula':!0x0}],[_0x42e200[_0x3f1e27(0x1b5)],{'workerURL':(_0x5edab4=(_0x1317f3=this['_configService'][_0x3f1e27(0x198)](_0x42e200[_0x3f1e27(0x1de)]))==null?void 0x0:_0x1317f3['workerURL'])!=null?_0x5edab4:_0x3f1e27(0x23e)}],[_0x58c9a5[_0x3f1e27(0x257)]],[_0x506630[_0x3f1e27(0x172)]],[_0x3bdc0e['UniverSheetsDrawingUIPlugin']],[_0x46bb70[_0x3f1e27(0x21c)]],[_0x281f89[_0x3f1e27(0x285)]],[_0x16089a['UniverSheetsChartPlugin']],[_0x5b5d7b[_0x3f1e27(0x1f9)]],[_0x5993d7[_0x3f1e27(0x1bc)],{'notExecuteFormula':!0x0}],[_0x201f6f[_0x3f1e27(0x1c1)],{'historyListServerUrl':(_0x27c80d=this[_0x3f1e27(0x18f)][_0x3f1e27(0x198)](_0x3cee16))==null?void 0x0:_0x27c80d[_0x3f1e27(0x1c8)],'historyPanelComponentKey':(_0x27b667=this[_0x3f1e27(0x18f)][_0x3f1e27(0x198)](_0x3cee16))==null?void 0x0:_0x27b667[_0x3f1e27(0x1ef)]}]]['forEach'](([_0x637287,_0x3ea9d4])=>this[_0x3f1e27(0x272)](_0x637287,_0x3ea9d4));}[_0x57e15c(0x26e)](){const _0x1e9e97=_0x57e15c;super[_0x1e9e97(0x26e)](),this[_0x1e9e97(0x20c)](),this['_pluginMap'][_0x1e9e97(0x208)]();}[_0x57e15c(0x272)](_0x1ec79a,_0x4c1e8b,_0x107875){const _0x28249e=_0x57e15c;if(this[_0x28249e(0x269)]['has'](_0x1ec79a[_0x28249e(0x259)])&&!_0x107875)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1ec79a[_0x28249e(0x259)]+_0x28249e(0x1a4));this['_pluginMap'][_0x28249e(0x196)](_0x1ec79a['pluginName'],[_0x1ec79a,_0x4c1e8b]);}[_0x57e15c(0x26b)](){const _0x500594=_0x57e15c;return Array[_0x500594(0x1f4)](this[_0x500594(0x269)][_0x500594(0x240)]());}[_0x57e15c(0x270)](_0x180e70){const _0x14514d=_0x57e15c,_0x4584b5=document[_0x14514d(0x284)](_0x308315);_0x4584b5&&(_0x4584b5['style'][_0x14514d(0x17d)]=_0x14514d(0x1bd),this[_0x14514d(0x261)](_0x180e70,_0x308315));}[_0x57e15c(0x20c)](){const _0x15bfec=_0x57e15c;var _0x1c3e5b;this[_0x15bfec(0x161)][_0x15bfec(0x26e)](),(_0x1c3e5b=this[_0x15bfec(0x197)])==null||_0x1c3e5b[_0x15bfec(0x26e)](),this[_0x15bfec(0x1b2)][_0x15bfec(0x255)](null);const _0x4118f2=document['getElementById'](_0x308315);_0x4118f2&&(_0x4118f2[_0x15bfec(0x1ea)]['display']=_0x15bfec(0x227));}[_0x57e15c(0x261)](_0x11818e,_0x3d86a7){const _0xa75fd6=_0x57e15c;if(this[_0xa75fd6(0x197)])return;const _0x181f78=new _0x3bf210[(_0xa75fd6(0x279))]({'locales':{[this['_localeService']['getCurrentLocale']()]:this['_localeService']['getLocales']()},'override':[[_0x3bf210[_0xa75fd6(0x185)],{'useClass':_0x59273f[_0xa75fd6(0x274)]}]]}),_0x103183=_0x181f78['__getInjector']();this[_0xa75fd6(0x1a6)](this[_0xa75fd6(0x1d9)][_0xa75fd6(0x1db)][_0xa75fd6(0x213)](_0x126967=>{const _0x179df9=_0xa75fd6;_0x103183[_0x179df9(0x1d0)](_0x3bf210[_0x179df9(0x1d4)])[_0x179df9(0x173)](_0x126967);})),this[_0xa75fd6(0x1a6)](this[_0xa75fd6(0x1d9)][_0xa75fd6(0x1e9)]['subscribe'](_0x5ea76a=>{const _0x55b855=_0xa75fd6;_0x103183[_0x55b855(0x1d0)](_0x3bf210['ThemeService'])[_0x55b855(0x20f)](_0x5ea76a);})),_0x103183['get'](_0x3bf210['LocaleService'])[_0xa75fd6(0x237)](this[_0xa75fd6(0x245)][_0xa75fd6(0x17b)]()),_0x103183[_0xa75fd6(0x1d0)](_0x3bf210[_0xa75fd6(0x171)])[_0xa75fd6(0x25c)](_0x59273f[_0xa75fd6(0x178)],this[_0xa75fd6(0x18f)][_0xa75fd6(0x198)](_0x59273f[_0xa75fd6(0x178)]));const _0x58e81b=this[_0xa75fd6(0x18f)][_0xa75fd6(0x198)](_0x6d5198[_0xa75fd6(0x1d8)]);_0x58e81b&&_0x181f78[_0xa75fd6(0x272)](_0x6d5198[_0xa75fd6(0x169)],{'license':_0x58e81b['ls']}),this[_0xa75fd6(0x269)][_0xa75fd6(0x192)](([_0x25a612,_0x187e87])=>{const _0x45683f=_0xa75fd6;_0x181f78[_0x45683f(0x272)](_0x25a612,_0x187e87);}),_0x103183[_0xa75fd6(0x182)](_0x4e3d60=>{const _0x136f65=_0xa75fd6;this[_0x136f65(0x1b7)](_0x4e3d60,_0x11818e);}),this[_0xa75fd6(0x1b2)][_0xa75fd6(0x255)](_0x181f78);const _0x568065=_0x103183[_0xa75fd6(0x1d0)](_0x201f6f[_0xa75fd6(0x22d)]),_0x2ecdb9=this[_0xa75fd6(0x233)](_0x11818e);_0x568065['triggerLoadVersions'](_0x11818e,_0x3d86a7,_0x2ecdb9);}[_0x57e15c(0x1b7)](_0x52cd7c,_0x25b25a){const _0x192623=_0x57e15c,_0x5ac5c1=_0x52cd7c[_0x192623(0x1d0)](_0x201f6f[_0x192623(0x22d)]);this[_0x192623(0x161)][_0x192623(0x262)](_0x5ac5c1[_0x192623(0x19c)]['subscribe'](_0x478224=>{const _0x4a8a22=_0x192623;switch(_0x478224){case _0x201f6f[_0x4a8a22(0x266)][_0x4a8a22(0x1a7)]:this['_dialogService'][_0x4a8a22(0x236)](),this[_0x4a8a22(0x1be)][_0x4a8a22(0x19b)]();break;case _0x201f6f[_0x4a8a22(0x266)]['Exited']:this[_0x4a8a22(0x277)][_0x4a8a22(0x1e6)](_0x1732cf['id']),this[_0x4a8a22(0x20c)]();break;case _0x201f6f[_0x4a8a22(0x266)][_0x4a8a22(0x275)]:this[_0x4a8a22(0x20c)](),this[_0x4a8a22(0x177)][_0x4a8a22(0x22f)]({'content':this[_0x4a8a22(0x245)]['t']('editHistory.panel.listFetchError'),'type':_0x25e598[_0x4a8a22(0x1bb)]['Error'],'duration':0xbb8});break;}})),this[_0x192623(0x161)][_0x192623(0x262)](_0x5ac5c1[_0x192623(0x163)][_0x192623(0x213)](async _0x337df8=>{const _0x338c2f=_0x192623;_0x337df8&&this[_0x338c2f(0x277)][_0x338c2f(0x1e6)](_0x5106b9[_0x338c2f(0x16c)]['id'],{'unitId':_0x25b25a,'revision':_0x337df8});}));}[_0x57e15c(0x233)](_0x1232bd){const _0x2b1e2e=_0x57e15c,_0x47e210=this[_0x2b1e2e(0x234)]['getUnit'](_0x1232bd)['getSheets']()['map'](_0x4dd92d=>_0x4dd92d[_0x2b1e2e(0x247)]()),_0x5aaba9=new _0x315646[(_0x2b1e2e(0x239))](_0x1232bd)['id'],_0x310729=_0x47e210[_0x2b1e2e(0x18c)](_0x41e6ed=>new _0x315646[(_0x2b1e2e(0x18d))](_0x1232bd,_0x41e6ed)['id']),_0x107402=_0x47e210[_0x2b1e2e(0x18c)](_0x2a7188=>this[_0x2b1e2e(0x17f)][_0x2b1e2e(0x25f)](_0x1232bd,_0x2a7188)[_0x2b1e2e(0x18c)](_0x5e1b39=>new _0x315646[(_0x2b1e2e(0x26a))](_0x1232bd,_0x2a7188,_0x5e1b39[_0x2b1e2e(0x20a)])['id']))[_0x2b1e2e(0x21f)](),_0x4d2097=new _0x315646[(_0x2b1e2e(0x191))](_0x1232bd)['id'];return this[_0x2b1e2e(0x1cb)][_0x2b1e2e(0x167)]([_0x5aaba9,..._0x310729,..._0x107402,_0x4d2097])[_0x2b1e2e(0x1ec)](_0xf48300=>!!_0xf48300[_0x2b1e2e(0x278)]);}},_0x53361a[_0x57e15c(0x1b0)]=_0x2db5ca([_0x42cd5c(0x0,_0x3bf210['Inject'](_0x3bf210[_0x57e15c(0x204)])),_0x42cd5c(0x1,_0x3bf210[_0x57e15c(0x20b)]),_0x42cd5c(0x2,_0x3bf210[_0x57e15c(0x171)]),_0x42cd5c(0x3,_0x3bf210['ICommandService']),_0x42cd5c(0x4,_0x13d107[_0x57e15c(0x250)]),_0x42cd5c(0x5,_0x3bf210[_0x57e15c(0x16b)]),_0x42cd5c(0x6,_0x3bf210['Inject'](_0x315646[_0x57e15c(0x190)])),_0x42cd5c(0x7,_0x3bf210[_0x57e15c(0x283)](_0x13d107[_0x57e15c(0x244)])),_0x42cd5c(0x8,_0x3bf210[_0x57e15c(0x283)](_0x13d107[_0x57e15c(0x280)])),_0x42cd5c(0x9,_0x3bf210['Inject'](_0x3bf210[_0x57e15c(0x1d4)]))],_0x53361a['HistoryLoaderService']);const _0x4a8523={'id':_0x57e15c(0x224),'type':_0x3bf210['CommandType']['OPERATION'],'handler':_0x517822=>{const _0x5bec6a=_0x57e15c,_0x3a707b=_0x517822[_0x5bec6a(0x1d0)](_0x53361a['HistoryLoaderService']),_0x5a956d=_0x517822[_0x5bec6a(0x1d0)](_0x3bf210['IUniverInstanceService']),{unitId:_0x4eb4df}=_0x315646[_0x5bec6a(0x27a)](_0x5a956d)||{};return _0x4eb4df?(_0x3a707b[_0x5bec6a(0x270)](_0x4eb4df),!0x0):!0x1;}},_0x1732cf={'id':_0x57e15c(0x25e),'type':_0x3bf210[_0x57e15c(0x1cc)][_0x57e15c(0x199)],'handler':()=>!0x0};function _0x36f9b5(_0x1af6dc){const _0x12287c=_0x57e15c;return{'id':_0x4a8523['id'],'type':_0x13d107[_0x12287c(0x1af)][_0x12287c(0x210)],'icon':_0x12287c(0x24d),'tooltip':_0x12287c(0x27e),'hidden$':_0x13d107[_0x12287c(0x1a2)](_0x1af6dc,_0x3bf210[_0x12287c(0x1fd)][_0x12287c(0x248)]),'disabled$':_0x3f9977[_0x12287c(0x230)](_0x1af6dc,{'workbookTypes':[_0x315646[_0x12287c(0x239)],_0x315646['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x28a95b={[_0x13d107[_0x57e15c(0x23f)]['OTHERS']]:{[_0x4a8523['id']]:{'order':0.2,'menuItemFactory':_0x36f9b5}}};var _0x437009=Object['getOwnPropertyDescriptor'],_0x3366fc=(_0x5db901,_0x34dac4,_0x8b0fb8,_0x1161b3)=>{const _0x11fbda=_0x57e15c;for(var _0x54a0a6=_0x1161b3>0x1?void 0x0:_0x1161b3?_0x437009(_0x34dac4,_0x8b0fb8):_0x34dac4,_0x113e0b=_0x5db901[_0x11fbda(0x1a8)]-0x1,_0x1c1ee9;_0x113e0b>=0x0;_0x113e0b--)(_0x1c1ee9=_0x5db901[_0x113e0b])&&(_0x54a0a6=_0x1c1ee9(_0x54a0a6)||_0x54a0a6);return _0x54a0a6;},_0x60fba2=(_0x160473,_0x1297a6)=>(_0x49203d,_0x2a2268)=>_0x1297a6(_0x49203d,_0x2a2268,_0x160473);let _0x47e9e7=class extends _0x3bf210['RxDisposable']{constructor(_0x5aff3c,_0x2f9a95,_0x18f6ff,_0x276e0a,_0x2899c9,_0x4c1d0e,_0x21494f,_0x480019){const _0x5f1b1a=_0x57e15c;super(),_0x119b3c(this,_0x5f1b1a(0x194),null),(this[_0x5f1b1a(0x277)]=_0x5aff3c,this[_0x5f1b1a(0x184)]=_0x2f9a95,this['_componentManager']=_0x18f6ff,this[_0x5f1b1a(0x1dc)]=_0x276e0a,this[_0x5f1b1a(0x245)]=_0x2899c9,this['_messageService']=_0x4c1d0e,this[_0x5f1b1a(0x1f0)]=_0x21494f,this[_0x5f1b1a(0x217)]=_0x480019,this[_0x5f1b1a(0x24c)]());}[_0x57e15c(0x24c)](){const _0x7f1f92=_0x57e15c;[_0x4a8523,_0x1732cf][_0x7f1f92(0x192)](_0x38f4dc=>this[_0x7f1f92(0x1a6)](_0x3bf210[_0x7f1f92(0x1c7)](this['_commandService'][_0x7f1f92(0x27d)](_0x38f4dc)))),this[_0x7f1f92(0x1a6)](this[_0x7f1f92(0x21d)]['register'](_0x7f1f92(0x24d),_0x3925b3)),this[_0x7f1f92(0x184)][_0x7f1f92(0x22e)](_0x28a95b),this[_0x7f1f92(0x1a6)](this[_0x7f1f92(0x277)]['onCommandExecuted'](_0x156a5d=>{const _0x3612b4=_0x7f1f92;if(_0x156a5d['id']===_0x5106b9[_0x3612b4(0x16c)]['id']){this[_0x3612b4(0x177)][_0x3612b4(0x22f)]({'content':this[_0x3612b4(0x245)]['t'](_0x3612b4(0x1cf)),'type':_0x25e598[_0x3612b4(0x1bb)][_0x3612b4(0x225)],'duration':0x1388});const {unitId:_0x2a5fa4}=_0x156a5d['params'],_0x57808b=this[_0x3612b4(0x1f0)][_0x3612b4(0x1f1)](_0x2a5fa4),_0x484323=_0x3e7fcc[_0x3612b4(0x25b)]([_0x57808b['session'][_0x3612b4(0x166)],_0x57808b['state$']])[_0x3612b4(0x213)](async([_0x8b028d,_0x1d285f])=>{const _0x3ec953=_0x3612b4;var _0x3f755a;_0x8b028d[_0x3ec953(0x1b1)]===_0x5106b9[_0x3ec953(0x1cd)][_0x3ec953(0x160)]&&(_0x1d285f==null?void 0x0:_0x1d285f[_0x3ec953(0x1ed)])===_0x59273f[_0x3ec953(0x26d)]['SYNCED']&&_0x8b028d[_0x3ec953(0x1d2)]['mutations']['some'](_0x1d209b=>_0x1d209b['id']===_0x5106b9[_0x3ec953(0x16c)]['id'])&&(this[_0x3ec953(0x1dc)][_0x3ec953(0x20c)](),_0x484323[_0x3ec953(0x1dd)](),this['_revertErrorTimer']&&clearTimeout(this[_0x3ec953(0x194)]),await((_0x3f755a=this[_0x3ec953(0x217)])==null?void 0x0:_0x3f755a['exhaustSavingTask']()),setTimeout(()=>window[_0x3ec953(0x23a)][_0x3ec953(0x174)]()));});this[_0x3612b4(0x194)]=setTimeout(()=>{const _0x146278=_0x3612b4;_0x484323[_0x146278(0x1dd)](),this[_0x146278(0x177)][_0x146278(0x22f)]({'content':this[_0x146278(0x245)]['t'](_0x146278(0x26c)),'type':_0x25e598[_0x146278(0x1bb)][_0x146278(0x275)],'duration':0xbb8});},0x1388);}}));}};_0x47e9e7=_0x3366fc([_0x60fba2(0x0,_0x3bf210['ICommandService']),_0x60fba2(0x1,_0x13d107[_0x57e15c(0x189)]),_0x60fba2(0x2,_0x3bf210[_0x57e15c(0x283)](_0x13d107[_0x57e15c(0x175)])),_0x60fba2(0x3,_0x3bf210['Inject'](_0x53361a[_0x57e15c(0x1b0)])),_0x60fba2(0x4,_0x3bf210[_0x57e15c(0x283)](_0x3bf210[_0x57e15c(0x204)])),_0x60fba2(0x5,_0x13d107['IMessageService']),_0x60fba2(0x6,_0x3bf210['Inject'](_0x59273f[_0x57e15c(0x26f)])),_0x60fba2(0x7,_0x59273f[_0x57e15c(0x1e4)])],_0x47e9e7);var _0x561d57=Object[_0x57e15c(0x180)],_0x1dbc42=(_0x5a555f,_0xd94e7c,_0x54fa49,_0x7ad8d6)=>{const _0x381981=_0x57e15c;for(var _0x24bb64=_0x7ad8d6>0x1?void 0x0:_0x7ad8d6?_0x561d57(_0xd94e7c,_0x54fa49):_0xd94e7c,_0x21b9e7=_0x5a555f[_0x381981(0x1a8)]-0x1,_0x2a3a0d;_0x21b9e7>=0x0;_0x21b9e7--)(_0x2a3a0d=_0x5a555f[_0x21b9e7])&&(_0x24bb64=_0x2a3a0d(_0x24bb64)||_0x24bb64);return _0x24bb64;},_0x58f4ad=(_0x4ba6c9,_0x4ef5a2)=>(_0x57b1ec,_0x53e245)=>_0x4ef5a2(_0x57b1ec,_0x53e245,_0x4ba6c9);const _0x46b4a5=_0x57e15c(0x183);_0x53361a[_0x57e15c(0x1a5)]=(_0x2f61f2=class extends _0x3bf210[_0x57e15c(0x24b)]{constructor(_0xb2929e=_0x522f05,_0x56bb18,_0x50a248){const _0x41fc49=_0x57e15c;super(),this['_config']=_0xb2929e,this[_0x41fc49(0x170)]=_0x56bb18,this[_0x41fc49(0x18f)]=_0x50a248;const {menu:_0x67f2dd,..._0x125bda}=_0x3bf210[_0x41fc49(0x20e)]({},_0x522f05,this['_config']);_0x67f2dd&&this[_0x41fc49(0x18f)][_0x41fc49(0x25c)]('menu',_0x67f2dd,{'merge':!0x0}),this[_0x41fc49(0x18f)][_0x41fc49(0x25c)](_0x3cee16,_0x125bda),this['_config']['univerContainerId']&&this['_configService']['setConfig'](_0x53391d,this[_0x41fc49(0x207)][_0x41fc49(0x1e7)]);}[_0x57e15c(0x209)](){const _0x1cac60=_0x57e15c;[[_0x53361a['HistoryLoaderService']],[_0x47e9e7]][_0x1cac60(0x192)](_0x3c4725=>this[_0x1cac60(0x170)]['add'](_0x3c4725));}[_0x57e15c(0x232)](){const _0x488ace=_0x57e15c;this[_0x488ace(0x170)][_0x488ace(0x1d0)](_0x47e9e7);}},_0x119b3c(_0x2f61f2,_0x57e15c(0x18e),_0x3bf210[_0x57e15c(0x1fd)]['UNIVER_UNKNOWN']),_0x119b3c(_0x2f61f2,_0x57e15c(0x259),_0x46b4a5),_0x2f61f2),_0x53361a[_0x57e15c(0x1a5)]=_0x1dbc42([_0x58f4ad(0x1,_0x3bf210['Inject'](_0x3bf210[_0x57e15c(0x24e)])),_0x58f4ad(0x2,_0x3bf210['IConfigService'])],_0x53361a[_0x57e15c(0x1a5)]),_0x53361a['UNIVER_CONTAINER_ID_KEY']=_0x53391d,_0x53361a[_0x57e15c(0x267)]=_0x308315,Object[_0x57e15c(0x254)](_0x53361a,Symbol[_0x57e15c(0x1ee)],{'value':_0x57e15c(0x1aa)});}));function _0x4491(){const _0x1c690a=['OPERATION','244440OTBVGl','close','status$','UniverSheetsDrawingUi','@univerjs/ui','@univerjs/sheets-filter','@univerjs/data-validation','UniverProEditHistoryViewer','getMenuHiddenObservable','asObservable','\x20has\x20been\x20registered.','UniverEditHistoryLoaderPlugin','disposeWithMe','Entered','length','@univerjs-pro/edit-history-viewer','Module','IImageIoService','xlink:href','_initPlugins','attrs','MenuItemType','HistoryLoaderService','eventID','_historyUniver$','@univerjs/sheets-filter-ui','@univerjs-pro/collaboration-client','UniverRPCMainThreadPlugin','UniverUIPlugin','_initListener','105sgKBZV','UniverSheetsHyperLinkPlugin','tag','MessageType','UniverSheetsPivotTablePlugin','block','_sidebarService','includes','top','UniverEditHistoryViewerPlugin','@univerjs-pro/sheets-chart-ui','UniverSheetsDataValidation','UniverSheetsDataValidationUIPlugin','@univerjs/sheets-ui','1000','toDisposable','historyListServerUrl','UniverSheetsFilterPlugin','@univerjs-pro/sheets-sparkline','_permissionService','CommandType','CollaborationEvent','@univerjs-pro/sheets-pivot','editHistory.panel.reverting','get','UniverCore','data','useRef','ThemeService','UniverSheetsNumfmtPlugin','@univerjs/sheets-drawing','edit-history-loader.config','LS_CONFIG_KEY','_themeService','@univerjs/design','darkMode$','_historyManagerService','unsubscribe','PLUGIN_CONFIG_KEY_MAIN_THREAD','UniverProLicense','DisposableCollection','UniverSheetsFormulaPlugin','history-icon_clip0_907_281','mask','ILocalCacheService','displayName','executeCommand','univerContainerId','243992PRCIab','currentTheme$','style','string','every','status','toStringTag','historyPanelComponentKey','_collaborationController','getCollabEntity','@univerjs/docs','@univerjs/sheets-hyper-link','from','colorChannel1','@univerjs/network','@univerjs/sheets-conditional-formatting','7923385MIaAfH','UniverSheetsChartUIPlugin','UniverProCollaborationClient','uComp','UniverProCollaboration','UniverInstanceType','UniverSheetsNumfmt','_initContainer','amd','UniverSheetsDrawing','@univerjs/sheets-data-validation-ui','BehaviorSubject','LocaleService','zIndex','UniverRenderEnginePlugin','_config','clear','onStarting','permissionId','IUniverInstanceService','unMountHistoryContent','UniverSheetsFormulaUIPlugin','merge','setTheme','BUTTON','UniverSheetsFilter','57tVQrLl','subscribe','1202171IMYTBy','@univerjs/rpc','appendChild','_localCacheService','UniverDrawingPlugin','white','random','assign','UniverSheetSparklinePlugin','_componentManager','UniverSheetsFilterUIPlugin','flat','trim','UniverSheetsHyperLink','1em','UniverDocsUi','univer.operation.toggle-edit-history','Loading','svg','none','@univerjs-pro/license','replace','object','url(#$1','@univerjs/sheets-hyper-link-ui','HistoryManagerService','mergeMenu','show','getCurrentRangeDisable$','UniverDesign','onSteady','_checkCanRevert','_univerInstanceService','70TVoVSt','closeAll','setLocale','children','WorkbookEditablePermission','location','@univerjs-pro/collaboration','UniverNetworkPlugin','@univerjs/engine-render','./worker.js','RibbonStartGroup','values','0\x200\x2016\x2016','UniverFormulaEnginePlugin','exports','IDialogService','_localeService','UniverSheetsFilterUi','getSheetId','UNIVER_SHEET','@univerjs/sheets','@univerjs/core','Plugin','_init','HistoryIcon','Injector','M0\x200H16V16H0z','IMessageService','UniverSheetsHyperLinkUi','UniverSheetsDataValidationPlugin','2914044OgqGhX','defineProperty','next','UniverDocsUIPlugin','UniverDrawingUIPlugin','toString','pluginName','div','combineLatest','setConfig','function','univer.operation.exit-edit-history','getSubunitRuleList','UniverSheets','_initUniver','add','defs','UniverDocsPlugin','@univerjs-pro/sheets-sparkline-ui','HistoryModeStatus','UNIVER_HISTORY_CONTAINER_ID','history-icon','_pluginMap','RangeProtectionPermissionEditPoint','getAllPlugins','editHistory.panel.revertFailed','CollaborationStatus','dispose','CollaborationController','mountHistoryContent','clipPath','registerPlugin','UniverSheetsHyperLinkUIPlugin','AuthzIoHttpService','Error','forwardRef','_commandService','value','Univer','getSheetCommandTarget','Disposable','@univerjs/sheets-data-validation','registerCommand','editHistory.panel.title','url(#history-icon_clip0_907_281)','ISidebarService','position','UniverSheetsUIPlugin','Inject','getElementById','UniverSheetSparklineUIPlugin','UniverDataValidationPlugin','UniverRpc','CHANGESET_ACK','_disposableCollection','UniverProSheetsSparklineUi','revertRevision$','UniverSheetsConditionalFormattingPlugin','UniverProSheetsChart','event$','composePermission','UniverProSheetsChartUi','UniverLicensePlugin','UniverProSheetsPivot','IPermissionService','RevertRevisionMutation','path','idSuffix','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','_injector','IConfigService','UniverSheetsDrawingPlugin','setDarkMode','reload','ComponentManager','dataset','_messageService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','width','fill','getCurrentLocale','10341ewAPZc','display','http://www.w3.org/2000/svg','_selectionProtectionRuleModel','getOwnPropertyDescriptor','@univerjs/sheets-conditional-formatting-ui','invoke','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','_menuManagerService','IAuthzIoService','100%','7339880RQgTIG','@univerjs/docs-ui','IMenuManagerService','createElement','UNIVER_CONTAINER_ID','map','WorksheetEditPermission','type','_configService','RangeProtectionRuleModel','WorkbookRecoverHistoryPermission','forEach','univer-container','_revertErrorTimer','current','set','historyUniver','getConfig'];_0x4491=function(){return _0x1c690a;};return _0x4491();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,42 +47,42 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^1.1.1",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.15.
|
|
51
|
-
"@univerjs-pro/edit-history-viewer": "0.15.
|
|
52
|
-
"@univerjs-pro/collaboration
|
|
53
|
-
"@univerjs-pro/
|
|
54
|
-
"@univerjs-pro/sheets-chart": "0.15.
|
|
55
|
-
"@univerjs-pro/sheets-
|
|
56
|
-
"@univerjs-pro/
|
|
57
|
-
"@univerjs-pro/sheets-sparkline": "0.15.
|
|
58
|
-
"@univerjs-pro/sheets-sparkline
|
|
59
|
-
"@univerjs/core": "0.15.
|
|
60
|
-
"@univerjs/data-validation": "0.15.
|
|
61
|
-
"@univerjs/docs": "0.15.
|
|
62
|
-
"@univerjs/design": "0.15.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/drawing
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
68
|
-
"@univerjs/rpc": "0.15.
|
|
69
|
-
"@univerjs/
|
|
70
|
-
"@univerjs/sheets": "0.15.
|
|
71
|
-
"@univerjs/sheets-conditional-formatting": "0.15.
|
|
72
|
-
"@univerjs/sheets-
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-drawing": "0.15.
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-filter": "0.15.
|
|
78
|
-
"@univerjs/sheets-filter-ui": "0.15.
|
|
79
|
-
"@univerjs/sheets-formula
|
|
80
|
-
"@univerjs/sheets-hyper-link": "0.15.
|
|
81
|
-
"@univerjs/sheets-
|
|
82
|
-
"@univerjs/sheets-
|
|
83
|
-
"@univerjs/sheets-
|
|
84
|
-
"@univerjs/
|
|
85
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.15.1",
|
|
51
|
+
"@univerjs-pro/edit-history-viewer": "0.15.1",
|
|
52
|
+
"@univerjs-pro/collaboration": "0.15.1",
|
|
53
|
+
"@univerjs-pro/sheets-chart": "0.15.1",
|
|
54
|
+
"@univerjs-pro/sheets-chart-ui": "0.15.1",
|
|
55
|
+
"@univerjs-pro/sheets-pivot": "0.15.1",
|
|
56
|
+
"@univerjs-pro/license": "0.15.1",
|
|
57
|
+
"@univerjs-pro/sheets-sparkline-ui": "0.15.1",
|
|
58
|
+
"@univerjs-pro/sheets-sparkline": "0.15.1",
|
|
59
|
+
"@univerjs/core": "0.15.1",
|
|
60
|
+
"@univerjs/data-validation": "0.15.1",
|
|
61
|
+
"@univerjs/docs": "0.15.1",
|
|
62
|
+
"@univerjs/design": "0.15.1",
|
|
63
|
+
"@univerjs/docs-ui": "0.15.1",
|
|
64
|
+
"@univerjs/drawing": "0.15.1",
|
|
65
|
+
"@univerjs/engine-formula": "0.15.1",
|
|
66
|
+
"@univerjs/drawing-ui": "0.15.1",
|
|
67
|
+
"@univerjs/engine-render": "0.15.1",
|
|
68
|
+
"@univerjs/rpc": "0.15.1",
|
|
69
|
+
"@univerjs/network": "0.15.1",
|
|
70
|
+
"@univerjs/sheets": "0.15.1",
|
|
71
|
+
"@univerjs/sheets-conditional-formatting": "0.15.1",
|
|
72
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.15.1",
|
|
73
|
+
"@univerjs/sheets-data-validation-ui": "0.15.1",
|
|
74
|
+
"@univerjs/sheets-drawing-ui": "0.15.1",
|
|
75
|
+
"@univerjs/sheets-drawing": "0.15.1",
|
|
76
|
+
"@univerjs/sheets-data-validation": "0.15.1",
|
|
77
|
+
"@univerjs/sheets-filter": "0.15.1",
|
|
78
|
+
"@univerjs/sheets-filter-ui": "0.15.1",
|
|
79
|
+
"@univerjs/sheets-formula": "0.15.1",
|
|
80
|
+
"@univerjs/sheets-hyper-link": "0.15.1",
|
|
81
|
+
"@univerjs/sheets-hyper-link-ui": "0.15.1",
|
|
82
|
+
"@univerjs/sheets-ui": "0.15.1",
|
|
83
|
+
"@univerjs/sheets-formula-ui": "0.15.1",
|
|
84
|
+
"@univerjs/ui": "0.15.1",
|
|
85
|
+
"@univerjs/sheets-numfmt": "0.15.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"react": "18.3.1",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"typescript": "^5.9.3",
|
|
91
91
|
"vite": "^7.3.1",
|
|
92
92
|
"vitest": "^4.0.16",
|
|
93
|
-
"@univerjs-infra/shared": "0.15.
|
|
93
|
+
"@univerjs-infra/shared": "0.15.1"
|
|
94
94
|
},
|
|
95
95
|
"scripts": {
|
|
96
96
|
"test": "vitest run",
|