@univerjs-pro/edit-history-loader 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1eec14=_0x3794;(function(_0x328b53,_0x28af39){var _0x93f28=_0x3794,_0x4973da=_0x328b53();while(!![]){try{var _0x17447c=-parseInt(_0x93f28(0x134))/0x1*(parseInt(_0x93f28(0xf6))/0x2)+parseInt(_0x93f28(0x182))/0x3+-parseInt(_0x93f28(0x171))/0x4+parseInt(_0x93f28(0x137))/0x5+-parseInt(_0x93f28(0x1c3))/0x6*(-parseInt(_0x93f28(0x10a))/0x7)+parseInt(_0x93f28(0x17c))/0x8+parseInt(_0x93f28(0x157))/0x9;if(_0x17447c===_0x28af39)break;else _0x4973da['push'](_0x4973da['shift']());}catch(_0x20f466){_0x4973da['push'](_0x4973da['shift']());}}}(_0x59cb,0xdf399));var D=Object[_0x1eec14(0x10b)],j=(_0x57700a,_0x14c158,_0xe7d638)=>_0x14c158 in _0x57700a?D(_0x57700a,_0x14c158,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe7d638}):_0x57700a[_0x14c158]=_0xe7d638,f=(_0xd548cc,_0x3ba21a,_0x366093)=>j(_0xd548cc,typeof _0x3ba21a!=_0x1eec14(0x15e)?_0x3ba21a+'':_0x3ba21a,_0x366093);Object[_0x1eec14(0x10b)](exports,Symbol[_0x1eec14(0xfe)],{'value':_0x1eec14(0x143)});const s=require(_0x1eec14(0x11e)),P=require(_0x1eec14(0x1ad)),q=require('@univerjs/docs'),x=require(_0x1eec14(0x14c)),k=require(_0x1eec14(0x111)),h=require(_0x1eec14(0x13b)),O=require(_0x1eec14(0x107)),v=require('@univerjs/ui'),S=require('@univerjs-pro/edit-history-viewer'),p=require('@univerjs-pro/collaboration'),F=require(_0x1eec14(0x12c)),V=require(_0x1eec14(0x18f)),A=require(_0x1eec14(0x180)),$=require(_0x1eec14(0x165)),W=require(_0x1eec14(0x19e)),Y=require(_0x1eec14(0x1a0)),B=require(_0x1eec14(0x1b6)),G=require(_0x1eec14(0x1b5)),K=require(_0x1eec14(0x16e)),z=require(_0x1eec14(0x139)),Z=require(_0x1eec14(0x1ae)),J=require('@univerjs/sheets-data-validation'),Q=require(_0x1eec14(0x152)),X=require(_0x1eec14(0x181)),ee=require('@univerjs/sheets-drawing'),H=require(_0x1eec14(0x102)),ie=require('@univerjs-pro/sheets-pivot'),E=require(_0x1eec14(0x151)),te=require(_0x1eec14(0x1aa)),C=require(_0x1eec14(0x1a7));var re=Object['defineProperty'],ne=Object[_0x1eec14(0x1c7)],oe=(_0x2e916a,_0x80649b,_0x572d91,_0x7618c3)=>{var _0x43b82e=_0x1eec14;for(var _0x241bb8=_0x7618c3>0x1?void 0x0:_0x7618c3?ne(_0x80649b,_0x572d91):_0x80649b,_0x297834=_0x2e916a[_0x43b82e(0x183)]-0x1,_0x4e151b;_0x297834>=0x0;_0x297834--)(_0x4e151b=_0x2e916a[_0x297834])&&(_0x241bb8=(_0x7618c3?_0x4e151b(_0x80649b,_0x572d91,_0x241bb8):_0x4e151b(_0x241bb8))||_0x241bb8);return _0x7618c3&&_0x241bb8&&re(_0x80649b,_0x572d91,_0x241bb8),_0x241bb8;},d=(_0x47366b,_0x5d05ab)=>(_0x143b55,_0x1808d5)=>_0x5d05ab(_0x143b55,_0x1808d5,_0x47366b);const se=_0x1eec14(0x118),U=_0x1eec14(0x1c6),y=_0x1eec14(0x1bb);exports[_0x1eec14(0x17d)]=class extends s[_0x1eec14(0x100)]{constructor(_0x37d34c,_0x2d9fe8,_0x213986,_0x200eca,_0x526a0e,_0x420de5,_0x210470,_0x3b6f4b,_0x51440e){var _0x197f8c=_0x1eec14;super(),f(this,_0x197f8c(0x192),null),f(this,_0x197f8c(0x1a3),new s[(_0x197f8c(0x1d5))]()),f(this,'_pluginMap',new Map()),(this[_0x197f8c(0x1c9)]=_0x37d34c,this['_univerInstanceService']=_0x2d9fe8,this[_0x197f8c(0x168)]=_0x213986,this[_0x197f8c(0x156)]=_0x200eca,this[_0x197f8c(0x1b0)]=_0x526a0e,this[_0x197f8c(0x145)]=_0x420de5,this[_0x197f8c(0x178)]=_0x210470,this['_dialogService']=_0x3b6f4b,this[_0x197f8c(0x185)]=_0x51440e,this[_0x197f8c(0xee)]());}['_init'](){var _0x5d386a=_0x1eec14;this[_0x5d386a(0xf4)](),this[_0x5d386a(0x1a4)]();}[_0x1eec14(0xf4)](){var _0x55d088=_0x1eec14,_0xe42a28;const _0x117240=(_0xe42a28=this['_configService'][_0x55d088(0x1e4)](U))!=null?_0xe42a28:se,_0x4c20cf=document[_0x55d088(0x142)](_0x117240);if(!_0x4c20cf)return;const _0x45e78a=document[_0x55d088(0x19c)](_0x55d088(0x176));_0x45e78a['id']=y,_0x45e78a[_0x55d088(0x16d)]['position']=_0x55d088(0x104),_0x45e78a[_0x55d088(0x16d)]['top']='0',_0x45e78a[_0x55d088(0x16d)]['left']='0',_0x45e78a[_0x55d088(0x16d)][_0x55d088(0x14f)]=_0x55d088(0x11a),_0x45e78a[_0x55d088(0x16d)][_0x55d088(0x103)]='100%',_0x45e78a['style']['zIndex']=_0x55d088(0x13f),_0x45e78a[_0x55d088(0x16d)][_0x55d088(0xf1)]='none',_0x4c20cf[_0x55d088(0x1db)](_0x45e78a);}[_0x1eec14(0x1a4)](){var _0x4432bf=_0x1eec14;[[H[_0x4432bf(0x170)],{'override':[[H[_0x4432bf(0x1a1)],null]]}],[q[_0x4432bf(0xfc)],{'hasScroll':!0x1}],[x[_0x4432bf(0x12a)]],[k[_0x4432bf(0x1d7)]],[v[_0x4432bf(0x17e)],{'container':y,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[v['IDialogService'],null]]}],[h[_0x4432bf(0x154)],{'notExecuteFormula':!0x0}],[O[_0x4432bf(0x1c8)]],[p[_0x4432bf(0x141)]],[F[_0x4432bf(0xea)]],[V['UniverSheetsFilterUIPlugin']],[A['UniverSheetsConditionalFormattingPlugin']],[$[_0x4432bf(0x136)]],[W['UniverSheetsHyperLinkPlugin']],[Y[_0x4432bf(0x10d)]],[B['UniverDataValidationPlugin']],[J[_0x4432bf(0x1c1)]],[G[_0x4432bf(0x164)]],[z[_0x4432bf(0x194)],{'notExecuteFormula':!0x0}],[K['UniverSheetsFormulaPlugin']],[Z[_0x4432bf(0xef)],{'workerURL':_0x4432bf(0x1be)}],[Q[_0x4432bf(0x1bf)]],[ee[_0x4432bf(0x1ac)]],[X['UniverSheetsDrawingUIPlugin']],[ie[_0x4432bf(0x1dc)],{'notExecuteFormula':!0x0}],[S[_0x4432bf(0x1da)]]]['forEach'](([_0x5719c1,_0x10ad07])=>this[_0x4432bf(0x18e)](_0x5719c1,_0x10ad07));}[_0x1eec14(0x11d)](){var _0x32d1ff=_0x1eec14;super['dispose'](),this[_0x32d1ff(0xf5)](),this[_0x32d1ff(0xff)][_0x32d1ff(0x13a)]();}[_0x1eec14(0x18e)](_0x1f5007,_0x1ff1a6,_0x67707e){var _0xceed25=_0x1eec14;if(this[_0xceed25(0xff)][_0xceed25(0x1b3)](_0x1f5007[_0xceed25(0x1c4)])&&!_0x67707e)throw new Error(_0xceed25(0x19d)+_0x1f5007['pluginName']+_0xceed25(0x12e));this['_pluginMap'][_0xceed25(0x163)](_0x1f5007[_0xceed25(0x1c4)],[_0x1f5007,_0x1ff1a6]);}[_0x1eec14(0x173)](){var _0x586775=_0x1eec14;return Array['from'](this[_0x586775(0xff)][_0x586775(0x179)]());}[_0x1eec14(0x11c)](_0x5c925){var _0x5410d2=_0x1eec14;const _0x178849=document[_0x5410d2(0x142)](y);_0x178849&&(_0x178849[_0x5410d2(0x16d)][_0x5410d2(0xf1)]=_0x5410d2(0xf3),this[_0x5410d2(0x131)](_0x5c925,y));}[_0x1eec14(0xf5)](){var _0x20f8eb=_0x1eec14,_0x744d83;this['_disposableCollection'][_0x20f8eb(0x11d)](),(_0x744d83=this['_historyUniver'])==null||_0x744d83[_0x20f8eb(0x11d)](),this[_0x20f8eb(0x192)]=null;const _0x1b5d85=document[_0x20f8eb(0x142)](y);_0x1b5d85&&(_0x1b5d85[_0x20f8eb(0x16d)][_0x20f8eb(0xf1)]='none');}[_0x1eec14(0x131)](_0x2ab10c,_0x502823){var _0x3da272=_0x1eec14;if(this[_0x3da272(0x192)])return;const _0x340f36=new s['Univer']({'theme':P[_0x3da272(0x15a)],'locales':{[this[_0x3da272(0x1c9)][_0x3da272(0x14b)]()]:this['_localeService'][_0x3da272(0x19a)]()},'override':[[s[_0x3da272(0x110)],null]]});this['_historyUniver']=_0x340f36;const _0x1ed70d=_0x340f36[_0x3da272(0x126)]();_0x1ed70d[_0x3da272(0x1b4)](s[_0x3da272(0x1e7)])['setLocale'](this[_0x3da272(0x1c9)][_0x3da272(0x14b)]()),this['_pluginMap'][_0x3da272(0x114)](([_0x2ef683,_0x112ec9])=>{var _0x5ba777=_0x3da272;_0x340f36[_0x5ba777(0x18e)](_0x2ef683,_0x112ec9);}),_0x1ed70d[_0x3da272(0xe8)](_0x26482e=>{var _0x2214a2=_0x3da272;this[_0x2214a2(0x115)](_0x26482e,_0x2ab10c),this['_initMessageService'](_0x26482e,this[_0x2214a2(0x1b0)]);});const _0x4ecf41=_0x1ed70d[_0x3da272(0x1b4)](S[_0x3da272(0x144)]),_0x28ce4a=this[_0x3da272(0x133)](_0x2ab10c);_0x4ecf41[_0x3da272(0x1c0)](_0x2ab10c,_0x502823,_0x28ce4a);}['_initListener'](_0x5bdae4,_0x2fae2a){var _0x1e5d7e=_0x1eec14;const _0x31d3e7=_0x5bdae4[_0x1e5d7e(0x1b4)](S[_0x1e5d7e(0x144)]);this[_0x1e5d7e(0x1a3)][_0x1e5d7e(0x196)](_0x31d3e7[_0x1e5d7e(0x160)][_0x1e5d7e(0x16f)](_0x45c035=>{var _0x321ef5=_0x1e5d7e;switch(_0x45c035){case S[_0x321ef5(0x1a9)][_0x321ef5(0x18d)]:this[_0x321ef5(0x1a8)]['closeAll'](),this[_0x321ef5(0x185)][_0x321ef5(0x116)]();break;case S[_0x321ef5(0x1a9)][_0x321ef5(0x10f)]:this[_0x321ef5(0xf5)]();break;case S[_0x321ef5(0x1a9)][_0x321ef5(0x1cf)]:this[_0x321ef5(0xf5)](),this[_0x321ef5(0x1b0)]['show']({'content':this[_0x321ef5(0x1c9)]['t']('editHistory.panel.listFetchError'),'type':P['MessageType'][_0x321ef5(0x1cf)],'duration':0xbb8});break;}})),this['_disposableCollection']['add'](_0x31d3e7[_0x1e5d7e(0x128)]['subscribe'](async _0x2f3134=>{var _0x3541f1=_0x1e5d7e;_0x2f3134&&this[_0x3541f1(0x156)][_0x3541f1(0x1a6)](p[_0x3541f1(0x172)]['id'],{'unitId':_0x2fae2a,'revision':_0x2f3134});}));}[_0x1eec14(0x190)](_0x4613f0,_0x38d808){var _0x4d489d=_0x1eec14;const _0x1cc912=_0x4613f0['get'](v[_0x4d489d(0x158)]),_0x54d0bf=_0x38d808[_0x4d489d(0x123)]();_0x54d0bf&&_0x1cc912[_0x4d489d(0x1de)](_0x54d0bf);}[_0x1eec14(0x133)](_0x296b2f){var _0x11242e=_0x1eec14;const _0x3cf9c2=this[_0x11242e(0x1a5)][_0x11242e(0x18b)](_0x296b2f)['getSheets']()[_0x11242e(0x1dd)](_0x5abbb9=>_0x5abbb9[_0x11242e(0x121)]()),_0x3e2105=new h[(_0x11242e(0x1c5))](_0x296b2f)['id'],_0x58593d=_0x3cf9c2[_0x11242e(0x1dd)](_0x3204a7=>new h[(_0x11242e(0xeb))](_0x296b2f,_0x3204a7)['id']),_0x309897=_0x3cf9c2[_0x11242e(0x1dd)](_0x401793=>this[_0x11242e(0x178)][_0x11242e(0xfd)](_0x296b2f,_0x401793)['map'](_0x5022be=>new h[(_0x11242e(0xfb))](_0x296b2f,_0x401793,_0x5022be['permissionId'])['id']))['flat'](),_0xe57a8a=new h[(_0x11242e(0x161))](_0x296b2f)['id'];return this['_permissionService'][_0x11242e(0x15f)]([_0x3e2105,..._0x58593d,..._0x309897,_0xe57a8a])[_0x11242e(0x1bc)](_0x20221b=>!!_0x20221b[_0x11242e(0x120)]);}},exports['HistoryLoaderService']=oe([s['OnLifecycle'](s['LifecycleStages'][_0x1eec14(0x16a)],exports[_0x1eec14(0x17d)]),d(0x0,s[_0x1eec14(0x175)](s['LocaleService'])),d(0x1,s[_0x1eec14(0x15d)]),d(0x2,s['IConfigService']),d(0x3,s[_0x1eec14(0x109)]),d(0x4,v[_0x1eec14(0x158)]),d(0x5,s[_0x1eec14(0x1d9)]),d(0x6,s[_0x1eec14(0x175)](h[_0x1eec14(0xf0)])),d(0x7,s[_0x1eec14(0x175)](v[_0x1eec14(0x108)])),d(0x8,s['Inject'](v[_0x1eec14(0x1d4)]))],exports[_0x1eec14(0x17d)]);var u=function(){var _0x599d89=_0x1eec14;return u=Object['assign']||function(_0x5553ec){var _0xf2df08=_0x3794;for(var _0x6298dc,_0x3ab12b=0x1,_0x573478=arguments[_0xf2df08(0x183)];_0x3ab12b<_0x573478;_0x3ab12b++){_0x6298dc=arguments[_0x3ab12b];for(var _0x5e7851 in _0x6298dc)Object[_0xf2df08(0x1b2)][_0xf2df08(0x1b9)][_0xf2df08(0x138)](_0x6298dc,_0x5e7851)&&(_0x5553ec[_0x5e7851]=_0x6298dc[_0x5e7851]);}return _0x5553ec;},u[_0x599d89(0x10c)](this,arguments);},ae=function(_0x281f7f,_0x3a4688){var _0x59a202=_0x1eec14,_0x4cc5bb={};for(var _0x57c8a3 in _0x281f7f)Object[_0x59a202(0x1b2)]['hasOwnProperty']['call'](_0x281f7f,_0x57c8a3)&&_0x3a4688[_0x59a202(0x105)](_0x57c8a3)<0x0&&(_0x4cc5bb[_0x57c8a3]=_0x281f7f[_0x57c8a3]);if(_0x281f7f!=null&&typeof Object[_0x59a202(0x1a2)]==_0x59a202(0x13e)){for(var _0x50e65e=0x0,_0x57c8a3=Object[_0x59a202(0x1a2)](_0x281f7f);_0x50e65e<_0x57c8a3[_0x59a202(0x183)];_0x50e65e++)_0x3a4688[_0x59a202(0x105)](_0x57c8a3[_0x50e65e])<0x0&&Object[_0x59a202(0x1b2)][_0x59a202(0x1c2)][_0x59a202(0x138)](_0x281f7f,_0x57c8a3[_0x50e65e])&&(_0x4cc5bb[_0x57c8a3[_0x50e65e]]=_0x281f7f[_0x57c8a3[_0x50e65e]]);}return _0x4cc5bb;},w=C[_0x1eec14(0x1d0)](function(_0x59e58c,_0x5bec55){var _0x55d804=_0x1eec14,_0x916c7f=_0x59e58c['icon'],_0x167de7=_0x59e58c['id'],_0x56708c=_0x59e58c[_0x55d804(0xf9)],_0x1f5340=_0x59e58c['extend'],_0x3989de=ae(_0x59e58c,[_0x55d804(0xf2),'id',_0x55d804(0xf9),'extend']),_0x592cc9=_0x55d804(0x16b)['concat'](_0x167de7,'\x20')[_0x55d804(0xe9)](_0x56708c||'')[_0x55d804(0x1d3)](),_0x57e5e1=C[_0x55d804(0x101)]('_'[_0x55d804(0xe9)](ue()));return L(_0x916c7f,''[_0x55d804(0xe9)](_0x167de7),{'defIds':_0x916c7f['defIds'],'idSuffix':_0x57e5e1[_0x55d804(0x122)]},u({'ref':_0x5bec55,'className':_0x592cc9},_0x3989de),_0x1f5340);});function L(_0x141dbe,_0x357261,_0x463e9e,_0x569f6f,_0x499559){var _0x256d98=_0x1eec14;return C[_0x256d98(0x19c)](_0x141dbe['tag'],u(u({'key':_0x357261},ce(_0x141dbe,_0x463e9e,_0x499559)),_0x569f6f),(le(_0x141dbe,_0x463e9e)[_0x256d98(0x147)]||[])[_0x256d98(0x1dd)](function(_0xd35b05,_0x489bd7){var _0x5ee7cc=_0x256d98;return L(_0xd35b05,''[_0x5ee7cc(0xe9)](_0x357261,'-')[_0x5ee7cc(0xe9)](_0x141dbe[_0x5ee7cc(0x17b)],'-')['concat'](_0x489bd7),_0x463e9e,void 0x0,_0x499559);}));}function ce(_0x32159a,_0xb0f6c6,_0x40746b){var _0x44e050=_0x1eec14,_0x4c59e6=u({},_0x32159a['attrs']);_0x40746b!=null&&_0x40746b[_0x44e050(0x14e)]&&_0x4c59e6[_0x44e050(0x17a)]===_0x44e050(0x14e)&&(_0x4c59e6[_0x44e050(0x17a)]=_0x40746b[_0x44e050(0x14e)]);var _0x586e5b=_0xb0f6c6[_0x44e050(0xe6)];return!_0x586e5b||_0x586e5b[_0x44e050(0x183)]===0x0||(_0x32159a['tag']===_0x44e050(0x197)&&_0x4c59e6[_0x44e050(0x125)]&&(_0x4c59e6[_0x44e050(0x125)]=_0x4c59e6[_0x44e050(0x125)]+_0xb0f6c6['idSuffix']),Object[_0x44e050(0x19b)](_0x4c59e6)['forEach'](function(_0x452eb1){var _0x5b3750=_0x44e050,_0x46284d=_0x452eb1[0x0],_0x2a7132=_0x452eb1[0x1];typeof _0x2a7132==_0x5b3750(0x1e0)&&(_0x4c59e6[_0x46284d]=_0x2a7132[_0x5b3750(0x193)](/url\(#(.*)\)/,'url(#$1'[_0x5b3750(0xe9)](_0xb0f6c6['idSuffix'],')')));})),_0x4c59e6;}function le(_0x127521,_0x1e255f){var _0xc1a22f=_0x1eec14,_0x12c31a,_0x13ae01=_0x1e255f[_0xc1a22f(0xe6)];return!_0x13ae01||_0x13ae01['length']===0x0?_0x127521:_0x127521[_0xc1a22f(0x17b)]==='defs'&&(!((_0x12c31a=_0x127521[_0xc1a22f(0x147)])===null||_0x12c31a===void 0x0)&&_0x12c31a[_0xc1a22f(0x183)])?u(u({},_0x127521),{'children':_0x127521[_0xc1a22f(0x147)][_0xc1a22f(0x1dd)](function(_0x1757a0){var _0x537b9c=_0xc1a22f;return typeof _0x1757a0['attrs']['id']==_0x537b9c(0x1e0)&&_0x13ae01&&_0x13ae01[_0x537b9c(0x105)](_0x1757a0['attrs']['id'])>-0x1?u(u({},_0x1757a0),{'attrs':u(u({},_0x1757a0[_0x537b9c(0x169)]),{'id':_0x1757a0[_0x537b9c(0x169)]['id']+_0x1e255f[_0x537b9c(0x13d)]})}):_0x1757a0;})}):_0x127521;}function ue(){var _0x478dbe=_0x1eec14;return Math[_0x478dbe(0x1e1)]()[_0x478dbe(0xfa)](0x24)[_0x478dbe(0x1d6)](0x2,0x8);}w[_0x1eec14(0x1b1)]=_0x1eec14(0x191);var ve={'tag':'svg','attrs':{'fill':'none','viewBox':_0x1eec14(0x188),'width':_0x1eec14(0x18a),'height':'1em'},'children':[{'tag':'g','attrs':{'fill':_0x1eec14(0x113),'clipPath':'url(#history-single_clip0_907_281)'},'children':[{'tag':_0x1eec14(0xe5),'attrs':{'d':_0x1eec14(0xe7)}},{'tag':_0x1eec14(0xe5),'attrs':{'d':'M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z'}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1eec14(0xf8),'attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x1eec14(0xe5),'attrs':{'fill':_0x1eec14(0x10e),'d':_0x1eec14(0x11b)}}]}]}],'defIds':[_0x1eec14(0x106)]},N=C[_0x1eec14(0x1d0)](function(_0x4581af,_0x2fd28c){var _0x580b79=_0x1eec14;return C[_0x580b79(0x19c)](w,Object[_0x580b79(0x17f)]({},_0x4581af,{'id':_0x580b79(0x112),'ref':_0x2fd28c,'icon':ve}));});N[_0x1eec14(0x1b1)]='HistorySingle';const M={'id':'univer.operation.toggle-edit-history','type':s[_0x1eec14(0x12b)][_0x1eec14(0x1df)],'handler':_0x2cf215=>{var _0x425bea=_0x1eec14;const _0x16fc6e=_0x2cf215[_0x425bea(0x1b4)](exports['HistoryLoaderService']),_0x47b7b2=_0x2cf215[_0x425bea(0x1b4)](s['IUniverInstanceService']),{unitId:_0x37436f}=h[_0x425bea(0x13c)](_0x47b7b2)||{};return _0x37436f?(_0x16fc6e[_0x425bea(0x11c)](_0x37436f),!0x0):!0x1;}},T=_0x1eec14(0x135);function ge(_0x2b5939){var _0x4f00bb=_0x1eec14;return{'id':M['id'],'type':v[_0x4f00bb(0x148)][_0x4f00bb(0x195)],'icon':T,'tooltip':_0x4f00bb(0x149),'hidden$':v[_0x4f00bb(0x153)](_0x2b5939,s[_0x4f00bb(0x119)][_0x4f00bb(0x150)]),'disabled$':O[_0x4f00bb(0x1d1)](_0x2b5939,{'workbookTypes':[h[_0x4f00bb(0x1c5)],h[_0x4f00bb(0x1af)]],'worksheetTypes':[],'rangeTypes':[]})};}function _0x3794(_0x5cf1c2,_0x18a655){var _0x59cb99=_0x59cb();return _0x3794=function(_0x37945d,_0x3d7eec){_0x37945d=_0x37945d-0xe5;var _0x17dc4f=_0x59cb99[_0x37945d];return _0x17dc4f;},_0x3794(_0x5cf1c2,_0x18a655);}const de={[v['RibbonStartGroup'][_0x1eec14(0x14a)]]:{[M['id']]:{'order':0x0,'menuItemFactory':ge}}};var he=Object[_0x1eec14(0x10b)],_e=Object['getOwnPropertyDescriptor'],fe=(_0xc3a671,_0x1b62c5,_0xee28ad,_0x2eb6de)=>{var _0x308674=_0x1eec14;for(var _0x185ea6=_0x2eb6de>0x1?void 0x0:_0x2eb6de?_e(_0x1b62c5,_0xee28ad):_0x1b62c5,_0x35cdd3=_0xc3a671[_0x308674(0x183)]-0x1,_0x1218ee;_0x35cdd3>=0x0;_0x35cdd3--)(_0x1218ee=_0xc3a671[_0x35cdd3])&&(_0x185ea6=(_0x2eb6de?_0x1218ee(_0x1b62c5,_0xee28ad,_0x185ea6):_0x1218ee(_0x185ea6))||_0x185ea6);return _0x2eb6de&&_0x185ea6&&he(_0x1b62c5,_0xee28ad,_0x185ea6),_0x185ea6;},_=(_0x3d6fe4,_0x3146b9)=>(_0x3e4809,_0x10365b)=>_0x3146b9(_0x3e4809,_0x10365b,_0x3d6fe4);let b=class extends s['RxDisposable']{constructor(_0x18e3de,_0x533101,_0x188fb6,_0x584b38,_0x3cf395,_0x2bffc7,_0x154222,_0xfc11a7){var _0x2a5103=_0x1eec14;super(),f(this,_0x2a5103(0x1e6),null),(this[_0x2a5103(0x156)]=_0x18e3de,this[_0x2a5103(0x199)]=_0x533101,this[_0x2a5103(0x11f)]=_0x188fb6,this['_historyManagerService']=_0x584b38,this[_0x2a5103(0x1c9)]=_0x3cf395,this[_0x2a5103(0x1b0)]=_0x2bffc7,this[_0x2a5103(0x184)]=_0x154222,this[_0x2a5103(0x18c)]=_0xfc11a7,this['_init']());}[_0x1eec14(0xee)](){var _0x9d3c3a=_0x1eec14;[M][_0x9d3c3a(0x114)](_0x1b917d=>this['disposeWithMe'](s[_0x9d3c3a(0x1ab)](this[_0x9d3c3a(0x156)][_0x9d3c3a(0x19f)](_0x1b917d)))),this['disposeWithMe'](this['_componentManager'][_0x9d3c3a(0x1ba)](T,N)),this[_0x9d3c3a(0x199)][_0x9d3c3a(0x162)](de),this[_0x9d3c3a(0x1ce)](this['_commandService'][_0x9d3c3a(0x167)](_0x308b44=>{var _0x3d043f=_0x9d3c3a;if(_0x308b44['id']===p['RevertRevisionMutation']['id']){this[_0x3d043f(0x1b0)][_0x3d043f(0x1e3)]({'content':this['_localeService']['t'](_0x3d043f(0x1ca)),'type':P[_0x3d043f(0x177)][_0x3d043f(0x187)],'duration':0x1388});const {unitId:_0x57c917}=_0x308b44[_0x3d043f(0x15b)],_0x5aa2f0=this[_0x3d043f(0x184)][_0x3d043f(0x15c)](_0x57c917),_0x813c98=te['combineLatest']([_0x5aa2f0['session'][_0x3d043f(0x1d2)],_0x5aa2f0[_0x3d043f(0x146)]])[_0x3d043f(0x16f)](async([_0x5f0da3,_0x337a2c])=>{var _0x1767e9=_0x3d043f;_0x5f0da3[_0x1767e9(0x127)]===p['CollaborationEvent'][_0x1767e9(0x1e2)]&&(_0x337a2c==null?void 0x0:_0x337a2c[_0x1767e9(0x1d8)])===E[_0x1767e9(0x155)][_0x1767e9(0x1b8)]&&_0x5f0da3[_0x1767e9(0x174)][_0x1767e9(0x159)][_0x1767e9(0x1cc)](_0x5be7e9=>_0x5be7e9['id']===p['RevertRevisionMutation']['id'])&&(this[_0x1767e9(0x117)][_0x1767e9(0xf5)](),_0x813c98[_0x1767e9(0xed)](),this[_0x1767e9(0x1e6)]&&clearTimeout(this[_0x1767e9(0x1e6)]),await this[_0x1767e9(0x18c)]['exhaustSavingTask'](),setTimeout(()=>window[_0x1767e9(0x12f)][_0x1767e9(0x16c)]()));});this[_0x3d043f(0x1e6)]=setTimeout(()=>{var _0x21c2f5=_0x3d043f;_0x813c98[_0x21c2f5(0xed)](),this[_0x21c2f5(0x1b0)][_0x21c2f5(0x1e3)]({'content':this[_0x21c2f5(0x1c9)]['t'](_0x21c2f5(0x166)),'type':P['MessageType']['Error'],'duration':0xbb8});},0x1388);}}));}};b=fe([s['OnLifecycle'](s[_0x1eec14(0x124)][_0x1eec14(0x16a)],b),_(0x0,s[_0x1eec14(0x109)]),_(0x1,v[_0x1eec14(0x189)]),_(0x2,s[_0x1eec14(0x175)](v[_0x1eec14(0x14d)])),_(0x3,s['Inject'](exports['HistoryLoaderService'])),_(0x4,s['Inject'](s[_0x1eec14(0x1e7)])),_(0x5,v[_0x1eec14(0x158)]),_(0x6,s[_0x1eec14(0x175)](E[_0x1eec14(0x129)])),_(0x7,s['Inject'](E[_0x1eec14(0x130)]))],b);const Se=_0x1eec14(0x1cd),ye={};var me=Object[_0x1eec14(0x10b)],pe=Object['getOwnPropertyDescriptor'],Ce=(_0x447e69,_0x283576,_0x36ae87,_0x19d881)=>{var _0x3993cb=_0x1eec14;for(var _0x27b6d2=_0x19d881>0x1?void 0x0:_0x19d881?pe(_0x283576,_0x36ae87):_0x283576,_0x34c5d3=_0x447e69[_0x3993cb(0x183)]-0x1,_0x3e1064;_0x34c5d3>=0x0;_0x34c5d3--)(_0x3e1064=_0x447e69[_0x34c5d3])&&(_0x27b6d2=(_0x19d881?_0x3e1064(_0x283576,_0x36ae87,_0x27b6d2):_0x3e1064(_0x27b6d2))||_0x27b6d2);return _0x19d881&&_0x27b6d2&&me(_0x283576,_0x36ae87,_0x27b6d2),_0x27b6d2;},R=(_0x4f7d0e,_0x2f0161)=>(_0x2596c5,_0x7bf10a)=>_0x2f0161(_0x2596c5,_0x7bf10a,_0x4f7d0e);const Ie='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var I;exports['UniverEditHistoryLoaderPlugin']=(I=class extends s[_0x1eec14(0x198)]{constructor(_0x1494aa=ye,_0x2a2ef0,_0x52815f){var _0x417917=_0x1eec14;super(),this[_0x417917(0x12d)]=_0x1494aa,this[_0x417917(0x132)]=_0x2a2ef0,this[_0x417917(0x168)]=_0x52815f;const {menu:_0x327754,..._0x36f589}=this['_config'];_0x327754&&this[_0x417917(0x168)][_0x417917(0x1e5)]('menu',_0x327754,{'merge':!0x0}),this[_0x417917(0x168)][_0x417917(0x1e5)](Se,_0x36f589),this[_0x417917(0x12d)][_0x417917(0x1cb)]&&this[_0x417917(0x168)][_0x417917(0x1e5)](U,this['_config'][_0x417917(0x1cb)]);}[_0x1eec14(0xec)](){var _0xada0f4=_0x1eec14;[[exports[_0xada0f4(0x17d)]],[b]][_0xada0f4(0x114)](_0x4278a3=>this[_0xada0f4(0x132)]['add'](_0x4278a3));}},f(I,_0x1eec14(0x1bd),s[_0x1eec14(0x119)][_0x1eec14(0x140)]),f(I,_0x1eec14(0x1c4),Ie),I),exports['UniverEditHistoryLoaderPlugin']=Ce([R(0x1,s[_0x1eec14(0x175)](s[_0x1eec14(0x186)])),R(0x2,s[_0x1eec14(0xf7)])],exports['UniverEditHistoryLoaderPlugin']),exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x1eec14(0x1b7)]=y;function _0x59cb(){var _0x386f04=['393428MyCJNr','defineProperty','apply','UniverSheetsHyperLinkUIPlugin','#fff','Exited','IAuthzIoService','@univerjs/engine-render','history-single','currentColor','forEach','_initListener','close','_historyManagerService','univer-container','UniverInstanceType','100%','M0\x200H16V16H0z','mountHistoryContent','dispose','@univerjs/core','_componentManager','value','getSheetId','current','getContainer','LifecycleStages','xlink:href','__getInjector','eventID','revertRevision$','CollaborationController','UniverDocsUIPlugin','CommandType','@univerjs/sheets-filter','_config','\x20has\x20been\x20registered.','location','LocalCacheService','_initUniver','_injector','_checkCanRevert','770306jWENQw','HistorySingle','UniverSheetsConditionalFormattingUIPlugin','2103425EVyfAm','call','@univerjs/engine-formula','clear','@univerjs/sheets','getSheetCommandTarget','idSuffix','function','1000','UNIVER_UNKNOWN','UniverCollaborationPlugin','getElementById','Module','HistoryManagerService','_permissionService','state$','children','MenuItemType','editHistory.panel.title','OTHERS','getCurrentLocale','@univerjs/docs-ui','ComponentManager','colorChannel1','width','UNIVER_SHEET','@univerjs-pro/collaboration-client','@univerjs/drawing-ui','getMenuHiddenObservable','UniverSheetsPlugin','CollaborationStatus','_commandService','13129515KDHTfi','IMessageService','mutations','greenTheme','params','getCollabEntity','IUniverInstanceService','symbol','composePermission','status$','WorkbookRecoverHistoryPermission','mergeMenu','set','UniverSheetsNumfmtPlugin','@univerjs/sheets-conditional-formatting-ui','editHistory.panel.revertFailed','onCommandExecuted','_configService','attrs','Steady','univerjs-icon\x20univerjs-icon-','reload','style','@univerjs/sheets-formula','subscribe','UniverDrawingPlugin','6293432KDicAj','RevertRevisionMutation','getAllPlugins','data','Inject','div','MessageType','_selectionProtectionRuleModel','values','fill','tag','1894464cgPfXw','HistoryLoaderService','UniverUIPlugin','assign','@univerjs/sheets-conditional-formatting','@univerjs/sheets-drawing-ui','3543957zgFSsb','length','_collaborationController','_sidebarService','Injector','Loading','0\x200\x2016\x2016','IMenuManagerService','1em','getUnit','_localCacheService','Entered','registerPlugin','@univerjs/sheets-filter-ui','_initMessageService','UniverIcon','_historyUniver','replace','UniverFormulaEnginePlugin','BUTTON','add','use','Plugin','_menuManagerService','getLocales','entries','createElement','[HistoryLoaderService]:\x20Plugin\x20','@univerjs/sheets-hyper-link','registerCommand','@univerjs/sheets-hyper-link-ui','IImageIoService','getOwnPropertySymbols','_disposableCollection','_initPlugins','_univerInstanceService','executeCommand','react','_dialogService','HistoryModeStatus','rxjs','toDisposable','UniverSheetsDrawingPlugin','@univerjs/design','@univerjs/rpc','WorkbookViewHistoryPermission','_messageService','displayName','prototype','has','get','@univerjs/sheets-numfmt','@univerjs/data-validation','UNIVER_HISTORY_CONTAINER_ID','SYNCED','hasOwnProperty','register','univer-history-container','every','type','./worker.js','UniverDrawingUIPlugin','triggerLoadVersions','UniverSheetsDataValidationPlugin','propertyIsEnumerable','78vdOJJG','pluginName','WorkbookEditablePermission','UNIVER_CONTAINER_ID','getOwnPropertyDescriptor','UniverSheetsUIPlugin','_localeService','editHistory.panel.reverting','univerContainerId','some','edit-history-loader.config','disposeWithMe','Error','forwardRef','getCurrentRangeDisable$','event$','trim','ISidebarService','DisposableCollection','substring','UniverRenderEnginePlugin','status','IPermissionService','UniverEditHistoryViewerPlugin','appendChild','UniverSheetsPivotTablePlugin','map','setContainer','OPERATION','string','random','CHANGESET_ACK','show','getConfig','setConfig','_revertErrorTimer','LocaleService','path','defIds','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','invoke','concat','UniverSheetsFilterPlugin','WorksheetEditPermission','onStarting','unsubscribe','_init','UniverRPCMainThreadPlugin','RangeProtectionRuleModel','display','icon','block','_initContainer','unMountHistoryContent','4eqiZAd','IConfigService','clipPath','className','toString','RangeProtectionPermissionEditPoint','UniverDocsPlugin','getSubunitRuleList','toStringTag','_pluginMap','Disposable','useRef','@univerjs/drawing','height','absolute','indexOf','history-single_clip0_907_281','@univerjs/sheets-ui','IDialogService','ICommandService'];_0x59cb=function(){return _0x386f04;};return _0x59cb();}
|
|
1
|
+
'use strict';var _0x2aa8a2=_0x4ced;(function(_0x3ebdba,_0x298382){var _0x2c6f9f=_0x4ced,_0x3b17c5=_0x3ebdba();while(!![]){try{var _0x494aab=parseInt(_0x2c6f9f(0x121))/0x1+-parseInt(_0x2c6f9f(0x11c))/0x2*(-parseInt(_0x2c6f9f(0x19a))/0x3)+parseInt(_0x2c6f9f(0x142))/0x4*(-parseInt(_0x2c6f9f(0x139))/0x5)+parseInt(_0x2c6f9f(0x15a))/0x6*(-parseInt(_0x2c6f9f(0x1ae))/0x7)+-parseInt(_0x2c6f9f(0xc0))/0x8+parseInt(_0x2c6f9f(0x17a))/0x9*(parseInt(_0x2c6f9f(0x193))/0xa)+parseInt(_0x2c6f9f(0x14b))/0xb*(parseInt(_0x2c6f9f(0xf2))/0xc);if(_0x494aab===_0x298382)break;else _0x3b17c5['push'](_0x3b17c5['shift']());}catch(_0x41b0f9){_0x3b17c5['push'](_0x3b17c5['shift']());}}}(_0x3472,0x1ca34));function _0x4ced(_0xf83f36,_0x1c45cf){var _0x347264=_0x3472();return _0x4ced=function(_0x4ced82,_0x546fa8){_0x4ced82=_0x4ced82-0xbc;var _0x28f99a=_0x347264[_0x4ced82];return _0x28f99a;},_0x4ced(_0xf83f36,_0x1c45cf);}var q=Object[_0x2aa8a2(0xde)],x=(_0x58c6b3,_0x54fa7c,_0x5b2136)=>_0x54fa7c in _0x58c6b3?q(_0x58c6b3,_0x54fa7c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b2136}):_0x58c6b3[_0x54fa7c]=_0x5b2136,S=(_0x150432,_0x4aa221,_0x59cd2e)=>x(_0x150432,typeof _0x4aa221!='symbol'?_0x4aa221+'':_0x4aa221,_0x59cd2e);Object[_0x2aa8a2(0xde)](exports,Symbol[_0x2aa8a2(0x11b)],{'value':'Module'});const s=require(_0x2aa8a2(0x10a)),k=require(_0x2aa8a2(0xfa)),P=require('@univerjs/design'),V=require('@univerjs/docs'),F=require('@univerjs/docs-ui'),H=require(_0x2aa8a2(0x10b)),A=require(_0x2aa8a2(0xcc)),$=require(_0x2aa8a2(0xe7)),Y=require(_0x2aa8a2(0x15f)),W=require(_0x2aa8a2(0x14c)),h=require(_0x2aa8a2(0x194)),K=require(_0x2aa8a2(0x1a9)),B=require('@univerjs/sheets-conditional-formatting-ui'),G=require(_0x2aa8a2(0x111)),z=require(_0x2aa8a2(0x137)),Z=require(_0x2aa8a2(0x128)),J=require('@univerjs/sheets-filter'),Q=require(_0x2aa8a2(0xfc)),X=require('@univerjs/sheets-formula'),ee=require(_0x2aa8a2(0x168)),ie=require(_0x2aa8a2(0x1ab)),te=require(_0x2aa8a2(0x14d)),O=require(_0x2aa8a2(0x15c)),g=require(_0x2aa8a2(0x160)),p=require(_0x2aa8a2(0xe4)),C=require(_0x2aa8a2(0x163)),y=require(_0x2aa8a2(0x149)),re=require(_0x2aa8a2(0x148)),ne=require('rxjs'),I=require(_0x2aa8a2(0x106)),L=_0x2aa8a2(0x13c),oe={};var se=Object['defineProperty'],ae=Object[_0x2aa8a2(0xf6)],ce=(_0x1a708c,_0x17e15e,_0x25a065,_0x53371c)=>{var _0x47e165=_0x2aa8a2;for(var _0x211048=_0x53371c>0x1?void 0x0:_0x53371c?ae(_0x17e15e,_0x25a065):_0x17e15e,_0x233976=_0x1a708c[_0x47e165(0x1ac)]-0x1,_0x5ca9f8;_0x233976>=0x0;_0x233976--)(_0x5ca9f8=_0x1a708c[_0x233976])&&(_0x211048=(_0x53371c?_0x5ca9f8(_0x17e15e,_0x25a065,_0x211048):_0x5ca9f8(_0x211048))||_0x211048);return _0x53371c&&_0x211048&&se(_0x17e15e,_0x25a065,_0x211048),_0x211048;},d=(_0x5d6f79,_0x20df87)=>(_0xe716dd,_0x46adb1)=>_0x20df87(_0xe716dd,_0x46adb1,_0x5d6f79);const le=_0x2aa8a2(0x176),U=_0x2aa8a2(0xef),m=_0x2aa8a2(0x162);exports[_0x2aa8a2(0x113)]=class extends s[_0x2aa8a2(0x1a4)]{constructor(_0x53ba0b,_0x3bd618,_0x25affe,_0x438538,_0xba803b,_0x3dc614,_0x24d0ca,_0x1203a4,_0x17c4b9){var _0x116e39=_0x2aa8a2;super(),S(this,_0x116e39(0xfe),null),S(this,_0x116e39(0xd5),new s[(_0x116e39(0x116))]()),S(this,_0x116e39(0xf0),new Map()),(this[_0x116e39(0x13e)]=_0x53ba0b,this[_0x116e39(0x1a8)]=_0x3bd618,this[_0x116e39(0x112)]=_0x25affe,this[_0x116e39(0xd9)]=_0x438538,this[_0x116e39(0x11d)]=_0xba803b,this[_0x116e39(0x192)]=_0x3dc614,this[_0x116e39(0xd0)]=_0x24d0ca,this[_0x116e39(0xcf)]=_0x1203a4,this[_0x116e39(0x114)]=_0x17c4b9,this['_init']());}[_0x2aa8a2(0x167)](){var _0x27a6a3=_0x2aa8a2;this[_0x27a6a3(0x100)](),this['_initPlugins']();}[_0x2aa8a2(0x100)](){var _0x5c4e1d=_0x2aa8a2,_0x1e613e;const _0x4f4577=(_0x1e613e=this[_0x5c4e1d(0x112)][_0x5c4e1d(0x154)](U))!=null?_0x1e613e:le,_0x148996=document[_0x5c4e1d(0x17f)](_0x4f4577);if(!_0x148996)return;const _0x5118cf=document[_0x5c4e1d(0xf1)](_0x5c4e1d(0x187));_0x5118cf['id']=m,_0x5118cf['style'][_0x5c4e1d(0xdd)]=_0x5c4e1d(0xca),_0x5118cf[_0x5c4e1d(0x15e)][_0x5c4e1d(0x1aa)]='0',_0x5118cf[_0x5c4e1d(0x15e)]['left']='0',_0x5118cf[_0x5c4e1d(0x15e)][_0x5c4e1d(0x133)]='100%',_0x5118cf[_0x5c4e1d(0x15e)]['height']=_0x5c4e1d(0x138),_0x5118cf[_0x5c4e1d(0x15e)][_0x5c4e1d(0x110)]=_0x5c4e1d(0xc4),_0x5118cf[_0x5c4e1d(0x15e)][_0x5c4e1d(0xbd)]=_0x5c4e1d(0x1a0),_0x148996[_0x5c4e1d(0x170)](_0x5118cf);}[_0x2aa8a2(0x12f)](){var _0x1cfb80=_0x2aa8a2,_0x3ff62c;[[H[_0x1cfb80(0x174)],{'override':[[H[_0x1cfb80(0x134)],null]]}],[V[_0x1cfb80(0xc6)],{'hasScroll':!0x1}],[F['UniverDocsUIPlugin']],[Y[_0x1cfb80(0x18e)]],[g['UniverUIPlugin'],{'container':m,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[g[_0x1cfb80(0x118)],null]]}],[h['UniverSheetsPlugin'],{'notExecuteFormula':!0x0}],[O[_0x1cfb80(0x12a)]],[p['UniverCollaborationPlugin']],[J[_0x1cfb80(0x130)]],[Q['UniverSheetsFilterUIPlugin']],[K[_0x1cfb80(0x14e)]],[B[_0x1cfb80(0xd8)]],[ee[_0x1cfb80(0x19f)]],[ie[_0x1cfb80(0x16d)]],[k['UniverDataValidationPlugin']],[G[_0x1cfb80(0xc2)]],[te['UniverSheetsNumfmtPlugin']],[$['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[X[_0x1cfb80(0xf8)]],[W[_0x1cfb80(0x182)],{'workerURL':_0x1cfb80(0xbe)}],[A[_0x1cfb80(0x188)]],[z[_0x1cfb80(0x16f)]],[Z[_0x1cfb80(0x191)]],[re['UniverSheetsPivotTablePlugin'],{'notExecuteFormula':!0x0}],[y[_0x1cfb80(0x109)],{'historyListServerUrl':(_0x3ff62c=this['_configService'][_0x1cfb80(0x154)](L))==null?void 0x0:_0x3ff62c[_0x1cfb80(0x169)]}]][_0x1cfb80(0x186)](([_0x193b35,_0x6f1d1d])=>this[_0x1cfb80(0x183)](_0x193b35,_0x6f1d1d));}[_0x2aa8a2(0x1a2)](){var _0xe3e50a=_0x2aa8a2;super[_0xe3e50a(0x1a2)](),this['unMountHistoryContent'](),this[_0xe3e50a(0xf0)][_0xe3e50a(0x1b4)]();}[_0x2aa8a2(0x183)](_0x2546aa,_0x3e5575,_0x1b56ca){var _0x2f2e3f=_0x2aa8a2;if(this[_0x2f2e3f(0xf0)][_0x2f2e3f(0x120)](_0x2546aa['pluginName'])&&!_0x1b56ca)throw new Error(_0x2f2e3f(0xc8)+_0x2546aa[_0x2f2e3f(0x156)]+'\x20has\x20been\x20registered.');this[_0x2f2e3f(0xf0)]['set'](_0x2546aa[_0x2f2e3f(0x156)],[_0x2546aa,_0x3e5575]);}[_0x2aa8a2(0x12b)](){var _0x3698d6=_0x2aa8a2;return Array[_0x3698d6(0x18d)](this['_pluginMap']['values']());}[_0x2aa8a2(0x1b3)](_0x3a3ea9){var _0x4fa9e4=_0x2aa8a2;const _0x39a9b3=document['getElementById'](m);_0x39a9b3&&(_0x39a9b3[_0x4fa9e4(0x15e)][_0x4fa9e4(0xbd)]='block',this[_0x4fa9e4(0x144)](_0x3a3ea9,m));}[_0x2aa8a2(0xd1)](){var _0x19a7f4=_0x2aa8a2,_0x387343;this[_0x19a7f4(0xd5)][_0x19a7f4(0x1a2)](),(_0x387343=this[_0x19a7f4(0xfe)])==null||_0x387343['dispose'](),this[_0x19a7f4(0xfe)]=null;const _0x223732=document[_0x19a7f4(0x17f)](m);_0x223732&&(_0x223732['style'][_0x19a7f4(0xbd)]=_0x19a7f4(0x1a0));}[_0x2aa8a2(0x144)](_0x3b8448,_0x47aa27){var _0x2a3566=_0x2aa8a2;if(this[_0x2a3566(0xfe)])return;const _0x595f94=new s[(_0x2a3566(0x17b))]({'theme':P[_0x2a3566(0x17c)],'locales':{[this['_localeService'][_0x2a3566(0x185)]()]:this['_localeService'][_0x2a3566(0x1a5)]()},'override':[[s[_0x2a3566(0x146)],null]]});this[_0x2a3566(0xfe)]=_0x595f94;const _0xe37cca=_0x595f94[_0x2a3566(0xf5)]();_0xe37cca[_0x2a3566(0x131)](s[_0x2a3566(0x17d)])[_0x2a3566(0x105)](this[_0x2a3566(0x13e)][_0x2a3566(0x185)]()),_0xe37cca[_0x2a3566(0x131)](s[_0x2a3566(0xd4)])[_0x2a3566(0x190)](C[_0x2a3566(0x132)],this['_configService'][_0x2a3566(0x154)](C[_0x2a3566(0x132)])),this[_0x2a3566(0xf0)][_0x2a3566(0x186)](([_0x27d1b6,_0x1c96c8])=>{var _0x4f3513=_0x2a3566;_0x595f94[_0x4f3513(0x183)](_0x27d1b6,_0x1c96c8);}),_0xe37cca[_0x2a3566(0x145)](_0x2fdc18=>{var _0x4b3e4d=_0x2a3566;this[_0x4b3e4d(0x189)](_0x2fdc18,_0x3b8448),this['_initMessageService'](_0x2fdc18,this[_0x4b3e4d(0x11d)]);});const _0x4931d6=_0xe37cca[_0x2a3566(0x131)](y[_0x2a3566(0xd6)]),_0x1e3001=this[_0x2a3566(0xe5)](_0x3b8448);_0x4931d6[_0x2a3566(0x1a1)](_0x3b8448,_0x47aa27,_0x1e3001);}[_0x2aa8a2(0x189)](_0x39e388,_0x210a49){var _0x48b344=_0x2aa8a2;const _0x42ad48=_0x39e388['get'](y[_0x48b344(0xd6)]);this[_0x48b344(0xd5)][_0x48b344(0x177)](_0x42ad48['status$']['subscribe'](_0x19488e=>{var _0x5d2af3=_0x48b344;switch(_0x19488e){case y['HistoryModeStatus'][_0x5d2af3(0x125)]:this[_0x5d2af3(0xcf)][_0x5d2af3(0x103)](),this[_0x5d2af3(0x114)]['close']();break;case y['HistoryModeStatus'][_0x5d2af3(0x122)]:this[_0x5d2af3(0xd1)]();break;case y[_0x5d2af3(0xe2)]['Error']:this['unMountHistoryContent'](),this[_0x5d2af3(0x11d)][_0x5d2af3(0x180)]({'content':this[_0x5d2af3(0x13e)]['t']('editHistory.panel.listFetchError'),'type':P[_0x5d2af3(0xd2)][_0x5d2af3(0x181)],'duration':0xbb8});break;}})),this[_0x48b344(0xd5)]['add'](_0x42ad48[_0x48b344(0x166)][_0x48b344(0x147)](async _0x471c9f=>{var _0x5f16dd=_0x48b344;_0x471c9f&&this[_0x5f16dd(0xd9)][_0x5f16dd(0xf9)](p[_0x5f16dd(0x171)]['id'],{'unitId':_0x210a49,'revision':_0x471c9f});}));}[_0x2aa8a2(0xc1)](_0x2a8e51,_0x45a4fb){var _0x911882=_0x2aa8a2;const _0x585f05=_0x2a8e51[_0x911882(0x131)](g['IMessageService']),_0x5ace54=_0x45a4fb[_0x911882(0x165)]();_0x5ace54&&_0x585f05[_0x911882(0xe6)](_0x5ace54);}[_0x2aa8a2(0xe5)](_0x4287e9){var _0x41f7bf=_0x2aa8a2;const _0x34d75a=this[_0x41f7bf(0x1a8)]['getUnit'](_0x4287e9)[_0x41f7bf(0xe8)]()[_0x41f7bf(0x153)](_0x29dd25=>_0x29dd25['getSheetId']()),_0x47f617=new h[(_0x41f7bf(0x124))](_0x4287e9)['id'],_0x57c3e9=_0x34d75a['map'](_0x34f105=>new h['WorksheetEditPermission'](_0x4287e9,_0x34f105)['id']),_0x407450=_0x34d75a[_0x41f7bf(0x153)](_0x4c9ae1=>this[_0x41f7bf(0xd0)][_0x41f7bf(0x1b2)](_0x4287e9,_0x4c9ae1)[_0x41f7bf(0x153)](_0x49b11c=>new h[(_0x41f7bf(0x16a))](_0x4287e9,_0x4c9ae1,_0x49b11c[_0x41f7bf(0xfb)])['id']))[_0x41f7bf(0xf7)](),_0x46fee8=new h['WorkbookRecoverHistoryPermission'](_0x4287e9)['id'];return this[_0x41f7bf(0x192)]['composePermission']([_0x47f617,..._0x57c3e9,..._0x407450,_0x46fee8])['every'](_0x5d8891=>!!_0x5d8891[_0x41f7bf(0xe1)]);}},exports['HistoryLoaderService']=ce([s['OnLifecycle'](s['LifecycleStages']['Steady'],exports[_0x2aa8a2(0x113)]),d(0x0,s[_0x2aa8a2(0x10c)](s[_0x2aa8a2(0x17d)])),d(0x1,s[_0x2aa8a2(0x126)]),d(0x2,s[_0x2aa8a2(0xd4)]),d(0x3,s[_0x2aa8a2(0x10d)]),d(0x4,g[_0x2aa8a2(0x18f)]),d(0x5,s['IPermissionService']),d(0x6,s['Inject'](h[_0x2aa8a2(0x198)])),d(0x7,s['Inject'](g[_0x2aa8a2(0x118)])),d(0x8,s[_0x2aa8a2(0x10c)](g[_0x2aa8a2(0xc7)]))],exports['HistoryLoaderService']);var u=function(){var _0x562e3c=_0x2aa8a2;return u=Object[_0x562e3c(0x13a)]||function(_0xa6c164){var _0xf9cae6=_0x562e3c;for(var _0x24051c,_0x5a695b=0x1,_0x59099f=arguments[_0xf9cae6(0x1ac)];_0x5a695b<_0x59099f;_0x5a695b++){_0x24051c=arguments[_0x5a695b];for(var _0x5103e4 in _0x24051c)Object[_0xf9cae6(0x136)][_0xf9cae6(0x119)][_0xf9cae6(0x12c)](_0x24051c,_0x5103e4)&&(_0xa6c164[_0x5103e4]=_0x24051c[_0x5103e4]);}return _0xa6c164;},u[_0x562e3c(0xff)](this,arguments);},ue=function(_0x1bb17e,_0x1e164c){var _0x52abfd=_0x2aa8a2,_0x283e7f={};for(var _0x5f3a07 in _0x1bb17e)Object[_0x52abfd(0x136)][_0x52abfd(0x119)][_0x52abfd(0x12c)](_0x1bb17e,_0x5f3a07)&&_0x1e164c[_0x52abfd(0x13d)](_0x5f3a07)<0x0&&(_0x283e7f[_0x5f3a07]=_0x1bb17e[_0x5f3a07]);if(_0x1bb17e!=null&&typeof Object[_0x52abfd(0x157)]==_0x52abfd(0xc5)){for(var _0x5e6d45=0x0,_0x5f3a07=Object[_0x52abfd(0x157)](_0x1bb17e);_0x5e6d45<_0x5f3a07[_0x52abfd(0x1ac)];_0x5e6d45++)_0x1e164c['indexOf'](_0x5f3a07[_0x5e6d45])<0x0&&Object['prototype'][_0x52abfd(0x159)]['call'](_0x1bb17e,_0x5f3a07[_0x5e6d45])&&(_0x283e7f[_0x5f3a07[_0x5e6d45]]=_0x1bb17e[_0x5f3a07[_0x5e6d45]]);}return _0x283e7f;},w=I[_0x2aa8a2(0x161)](function(_0x3fbd4f,_0xdd7e50){var _0x1cf6be=_0x2aa8a2,_0xb1a198=_0x3fbd4f[_0x1cf6be(0xdf)],_0x3fff30=_0x3fbd4f['id'],_0x3fb527=_0x3fbd4f[_0x1cf6be(0xd7)],_0x2847a8=_0x3fbd4f[_0x1cf6be(0x13b)],_0x185b0d=ue(_0x3fbd4f,[_0x1cf6be(0xdf),'id',_0x1cf6be(0xd7),_0x1cf6be(0x13b)]),_0x10470c=_0x1cf6be(0x172)['concat'](_0x3fff30,'\x20')[_0x1cf6be(0x19c)](_0x3fb527||'')[_0x1cf6be(0x17e)](),_0x37b030=I[_0x1cf6be(0x129)]('_'['concat'](de()));return N(_0xb1a198,''[_0x1cf6be(0x19c)](_0x3fff30),{'defIds':_0xb1a198[_0x1cf6be(0x107)],'idSuffix':_0x37b030[_0x1cf6be(0x150)]},u({'ref':_0xdd7e50,'className':_0x10470c},_0x185b0d),_0x2847a8);});function N(_0x35059d,_0x2e62cb,_0x2a9e6c,_0x40d456,_0x46b6ee){var _0x46a83a=_0x2aa8a2;return I[_0x46a83a(0xf1)](_0x35059d[_0x46a83a(0x15b)],u(u({'key':_0x2e62cb},ge(_0x35059d,_0x2a9e6c,_0x46b6ee)),_0x40d456),(ve(_0x35059d,_0x2a9e6c)[_0x46a83a(0xeb)]||[])[_0x46a83a(0x153)](function(_0x1cf16f,_0x5b2f94){var _0xbbc3db=_0x46a83a;return N(_0x1cf16f,''[_0xbbc3db(0x19c)](_0x2e62cb,'-')[_0xbbc3db(0x19c)](_0x35059d['tag'],'-')[_0xbbc3db(0x19c)](_0x5b2f94),_0x2a9e6c,void 0x0,_0x46b6ee);}));}function ge(_0x135e0a,_0x29646c,_0x26bf8e){var _0xed802c=_0x2aa8a2,_0x183660=u({},_0x135e0a[_0xed802c(0x10e)]);_0x26bf8e!=null&&_0x26bf8e[_0xed802c(0x18c)]&&_0x183660[_0xed802c(0x108)]==='colorChannel1'&&(_0x183660[_0xed802c(0x108)]=_0x26bf8e['colorChannel1']);var _0x537372=_0x29646c['defIds'];return!_0x537372||_0x537372[_0xed802c(0x1ac)]===0x0||(_0x135e0a[_0xed802c(0x15b)]===_0xed802c(0xcb)&&_0x183660['xlink:href']&&(_0x183660[_0xed802c(0xf3)]=_0x183660['xlink:href']+_0x29646c[_0xed802c(0x140)]),Object[_0xed802c(0x1a6)](_0x183660)[_0xed802c(0x186)](function(_0x46fb9e){var _0x2a7cc3=_0xed802c,_0x4d8fcf=_0x46fb9e[0x0],_0x27b06b=_0x46fb9e[0x1];typeof _0x27b06b==_0x2a7cc3(0xce)&&(_0x183660[_0x4d8fcf]=_0x27b06b['replace'](/url\(#(.*)\)/,_0x2a7cc3(0xe0)['concat'](_0x29646c[_0x2a7cc3(0x140)],')')));})),_0x183660;}function ve(_0x3c0c9e,_0x27b3ec){var _0x8135fc=_0x2aa8a2,_0x315079,_0x352fbc=_0x27b3ec[_0x8135fc(0x107)];return!_0x352fbc||_0x352fbc['length']===0x0?_0x3c0c9e:_0x3c0c9e['tag']===_0x8135fc(0xec)&&(!((_0x315079=_0x3c0c9e[_0x8135fc(0xeb)])===null||_0x315079===void 0x0)&&_0x315079[_0x8135fc(0x1ac)])?u(u({},_0x3c0c9e),{'children':_0x3c0c9e[_0x8135fc(0xeb)]['map'](function(_0x458959){var _0x386ed9=_0x8135fc;return typeof _0x458959[_0x386ed9(0x10e)]['id']=='string'&&_0x352fbc&&_0x352fbc[_0x386ed9(0x13d)](_0x458959[_0x386ed9(0x10e)]['id'])>-0x1?u(u({},_0x458959),{'attrs':u(u({},_0x458959[_0x386ed9(0x10e)]),{'id':_0x458959['attrs']['id']+_0x27b3ec[_0x386ed9(0x140)]})}):_0x458959;})}):_0x3c0c9e;}function de(){var _0xd9d85f=_0x2aa8a2;return Math['random']()[_0xd9d85f(0x197)](0x24)[_0xd9d85f(0xc9)](0x2,0x8);}w[_0x2aa8a2(0x19b)]=_0x2aa8a2(0x155);var he={'tag':_0x2aa8a2(0x127),'attrs':{'fill':_0x2aa8a2(0x1a0),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x2aa8a2(0x16e)},'children':[{'tag':_0x2aa8a2(0x13f),'attrs':{'d':_0x2aa8a2(0x152)}},{'tag':'path','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':_0x2aa8a2(0xec),'attrs':{},'children':[{'tag':_0x2aa8a2(0x18b),'attrs':{'id':_0x2aa8a2(0x123)},'children':[{'tag':_0x2aa8a2(0x13f),'attrs':{'fill':_0x2aa8a2(0x104),'d':_0x2aa8a2(0x184)}}]}]}],'defIds':[_0x2aa8a2(0x123)]},T=I['forwardRef'](function(_0x1023c1,_0x25326a){var _0x3d63bf=_0x2aa8a2;return I[_0x3d63bf(0xf1)](w,Object[_0x3d63bf(0x13a)]({},_0x1023c1,{'id':_0x3d63bf(0x178),'ref':_0x25326a,'icon':he}));});T[_0x2aa8a2(0x19b)]=_0x2aa8a2(0xcd);const R={'id':'univer.operation.toggle-edit-history','type':s[_0x2aa8a2(0xdc)][_0x2aa8a2(0xfd)],'handler':_0x20c870=>{var _0x58aeac=_0x2aa8a2;const _0x1553bc=_0x20c870['get'](exports[_0x58aeac(0x113)]),_0x370d6f=_0x20c870['get'](s['IUniverInstanceService']),{unitId:_0x294155}=h['getSheetCommandTarget'](_0x370d6f)||{};return _0x294155?(_0x1553bc[_0x58aeac(0x1b3)](_0x294155),!0x0):!0x1;}},D=_0x2aa8a2(0xcd);function _e(_0x45371d){var _0x21110b=_0x2aa8a2;return{'id':R['id'],'type':g['MenuItemType'][_0x21110b(0xc3)],'icon':D,'tooltip':'editHistory.panel.title','hidden$':g[_0x21110b(0xbf)](_0x45371d,s[_0x21110b(0x14f)][_0x21110b(0xed)]),'disabled$':O['getCurrentRangeDisable$'](_0x45371d,{'workbookTypes':[h[_0x21110b(0x124)],h[_0x21110b(0x164)]],'worksheetTypes':[],'rangeTypes':[]})};}const fe={[g[_0x2aa8a2(0x117)][_0x2aa8a2(0x1af)]]:{[R['id']]:{'order':0x0,'menuItemFactory':_e}}};function _0x3472(){var _0x61895c=['88195gZguTB','assign','extend','edit-history-loader.config','indexOf','_localeService','path','idSuffix','params','40gEoCqW','_localCacheService','_initUniver','invoke','IAuthzIoService','subscribe','@univerjs-pro/sheets-pivot','@univerjs-pro/edit-history-viewer','UNIVER_HISTORY_CONTAINER_ID','3112549oyrKBi','@univerjs/rpc','@univerjs/sheets-numfmt','UniverSheetsConditionalFormattingPlugin','UniverInstanceType','current','LifecycleStages','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','map','getConfig','UniverIcon','pluginName','getOwnPropertySymbols','OnLifecycle','propertyIsEnumerable','6oRojcT','tag','@univerjs/sheets-ui','univerContainerId','style','@univerjs/engine-render','@univerjs/ui','forwardRef','univer-history-container','@univerjs-pro/collaboration-client','WorkbookViewHistoryPermission','getContainer','revertRevision$','_init','@univerjs/sheets-hyper-link','historyListServerUrl','RangeProtectionPermissionEditPoint','exhaustSavingTask','_componentManager','UniverSheetsHyperLinkUIPlugin','url(#history-single_clip0_907_281)','UniverSheetsDrawingPlugin','appendChild','RevertRevisionMutation','univerjs-icon\x20univerjs-icon-','UniverEditHistoryLoaderPlugin','UniverDrawingPlugin','event$','univer-container','add','history-single','unsubscribe','45YKkBmk','Univer','greenTheme','LocaleService','trim','getElementById','show','Error','UniverRPCMainThreadPlugin','registerPlugin','M0\x200H16V16H0z','getCurrentLocale','forEach','div','UniverDrawingUIPlugin','_initListener','data','clipPath','colorChannel1','from','UniverRenderEnginePlugin','IMessageService','setConfig','UniverSheetsDrawingUIPlugin','_permissionService','15180tXOOqQ','@univerjs/sheets','menu','type','toString','RangeProtectionRuleModel','_menuManagerService','2091bZHqBF','displayName','concat','RxDisposable','editHistory.panel.reverting','UniverSheetsHyperLinkPlugin','none','triggerLoadVersions','dispose','_injector','Disposable','getLocales','entries','CollaborationController','_univerInstanceService','@univerjs/sheets-conditional-formatting','top','@univerjs/sheets-hyper-link-ui','length','mergeMenu','1210307RFMDTC','OTHERS','location','editHistory.panel.revertFailed','getSubunitRuleList','mountHistoryContent','clear','toDisposable','display','./worker.js','getMenuHiddenObservable','1592680cavjHe','_initMessageService','UniverSheetsDataValidationPlugin','BUTTON','1000','function','UniverDocsPlugin','ISidebarService','[HistoryLoaderService]:\x20Plugin\x20','substring','absolute','use','@univerjs/drawing-ui','HistorySingle','string','_dialogService','_selectionProtectionRuleModel','unMountHistoryContent','MessageType','disposeWithMe','IConfigService','_disposableCollection','HistoryManagerService','className','UniverSheetsConditionalFormattingUIPlugin','_commandService','Loading','Steady','CommandType','position','defineProperty','icon','url(#$1','value','HistoryModeStatus','IMenuManagerService','@univerjs-pro/collaboration','_checkCanRevert','setContainer','@univerjs/engine-formula','getSheets','_collaborationController','_config','children','defs','UNIVER_SHEET','CollaborationStatus','UNIVER_CONTAINER_ID','_pluginMap','createElement','12tXXNGY','xlink:href','getCollabEntity','__getInjector','getOwnPropertyDescriptor','flat','UniverSheetsFormulaPlugin','executeCommand','@univerjs/data-validation','permissionId','@univerjs/sheets-filter-ui','OPERATION','_historyUniver','apply','_initContainer','_revertErrorTimer','Injector','closeAll','#fff','setLocale','react','defIds','fill','UniverEditHistoryViewerPlugin','@univerjs/core','@univerjs/drawing','Inject','ICommandService','attrs','onStarting','zIndex','@univerjs/sheets-data-validation','_configService','HistoryLoaderService','_sidebarService','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','DisposableCollection','RibbonStartGroup','IDialogService','hasOwnProperty','ComponentManager','toStringTag','450XeEyvN','_messageService','state$','reload','has','218302ZUWNtl','Exited','history-single_clip0_907_281','WorkbookEditablePermission','Entered','IUniverInstanceService','svg','@univerjs/sheets-drawing-ui','useRef','UniverSheetsUIPlugin','getAllPlugins','call','status','SYNCED','_initPlugins','UniverSheetsFilterPlugin','get','SNAPSHOT_SERVER_URL_KEY','width','IImageIoService','eventID','prototype','@univerjs/sheets-drawing','100%'];_0x3472=function(){return _0x61895c;};return _0x3472();}var Se=Object['defineProperty'],ye=Object[_0x2aa8a2(0xf6)],me=(_0x57c580,_0x232968,_0x1b8e80,_0x2efa6d)=>{var _0xb6f6e9=_0x2aa8a2;for(var _0x49b4aa=_0x2efa6d>0x1?void 0x0:_0x2efa6d?ye(_0x232968,_0x1b8e80):_0x232968,_0x236973=_0x57c580[_0xb6f6e9(0x1ac)]-0x1,_0x52d45b;_0x236973>=0x0;_0x236973--)(_0x52d45b=_0x57c580[_0x236973])&&(_0x49b4aa=(_0x2efa6d?_0x52d45b(_0x232968,_0x1b8e80,_0x49b4aa):_0x52d45b(_0x49b4aa))||_0x49b4aa);return _0x2efa6d&&_0x49b4aa&&Se(_0x232968,_0x1b8e80,_0x49b4aa),_0x49b4aa;},f=(_0x5830ed,_0x3457af)=>(_0x14c8c4,_0x2457fe)=>_0x3457af(_0x14c8c4,_0x2457fe,_0x5830ed);let b=class extends s[_0x2aa8a2(0x19d)]{constructor(_0x585136,_0x3ee0d6,_0x844834,_0x50c126,_0x4f9d13,_0x2e36bf,_0x269110,_0x23a547){var _0xd9d183=_0x2aa8a2;super(),S(this,_0xd9d183(0x101),null),(this['_commandService']=_0x585136,this[_0xd9d183(0x199)]=_0x3ee0d6,this[_0xd9d183(0x16c)]=_0x844834,this['_historyManagerService']=_0x50c126,this[_0xd9d183(0x13e)]=_0x4f9d13,this['_messageService']=_0x2e36bf,this[_0xd9d183(0xe9)]=_0x269110,this[_0xd9d183(0x143)]=_0x23a547,this[_0xd9d183(0x167)]());}[_0x2aa8a2(0x167)](){var _0x6f2350=_0x2aa8a2;[R][_0x6f2350(0x186)](_0x7d1438=>this[_0x6f2350(0xd3)](s[_0x6f2350(0xbc)](this[_0x6f2350(0xd9)]['registerCommand'](_0x7d1438)))),this[_0x6f2350(0xd3)](this['_componentManager']['register'](D,T)),this[_0x6f2350(0x199)][_0x6f2350(0x1ad)](fe),this[_0x6f2350(0xd3)](this['_commandService']['onCommandExecuted'](_0x1421a4=>{var _0x2d2ffe=_0x6f2350;if(_0x1421a4['id']===p['RevertRevisionMutation']['id']){this[_0x2d2ffe(0x11d)][_0x2d2ffe(0x180)]({'content':this['_localeService']['t'](_0x2d2ffe(0x19e)),'type':P[_0x2d2ffe(0xd2)][_0x2d2ffe(0xda)],'duration':0x1388});const {unitId:_0x28c699}=_0x1421a4[_0x2d2ffe(0x141)],_0x1e32af=this['_collaborationController'][_0x2d2ffe(0xf4)](_0x28c699),_0x3c6c71=ne['combineLatest']([_0x1e32af['session'][_0x2d2ffe(0x175)],_0x1e32af[_0x2d2ffe(0x11e)]])[_0x2d2ffe(0x147)](async([_0x268285,_0x2b7c1c])=>{var _0x53d1b2=_0x2d2ffe;_0x268285[_0x53d1b2(0x135)]===p['CollaborationEvent']['CHANGESET_ACK']&&(_0x2b7c1c==null?void 0x0:_0x2b7c1c[_0x53d1b2(0x12d)])===C[_0x53d1b2(0xee)][_0x53d1b2(0x12e)]&&_0x268285[_0x53d1b2(0x18a)]['mutations']['some'](_0x37fab0=>_0x37fab0['id']===p['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x53d1b2(0xd1)](),_0x3c6c71[_0x53d1b2(0x179)](),this[_0x53d1b2(0x101)]&&clearTimeout(this[_0x53d1b2(0x101)]),await this[_0x53d1b2(0x143)][_0x53d1b2(0x16b)](),setTimeout(()=>window[_0x53d1b2(0x1b0)][_0x53d1b2(0x11f)]()));});this[_0x2d2ffe(0x101)]=setTimeout(()=>{var _0x1ef4bc=_0x2d2ffe;_0x3c6c71['unsubscribe'](),this['_messageService']['show']({'content':this['_localeService']['t'](_0x1ef4bc(0x1b1)),'type':P['MessageType'][_0x1ef4bc(0x181)],'duration':0xbb8});},0x1388);}}));}};b=me([s[_0x2aa8a2(0x158)](s[_0x2aa8a2(0x151)][_0x2aa8a2(0xdb)],b),f(0x0,s[_0x2aa8a2(0x10d)]),f(0x1,g[_0x2aa8a2(0xe3)]),f(0x2,s[_0x2aa8a2(0x10c)](g[_0x2aa8a2(0x11a)])),f(0x3,s[_0x2aa8a2(0x10c)](exports[_0x2aa8a2(0x113)])),f(0x4,s['Inject'](s[_0x2aa8a2(0x17d)])),f(0x5,g[_0x2aa8a2(0x18f)]),f(0x6,s[_0x2aa8a2(0x10c)](C[_0x2aa8a2(0x1a7)])),f(0x7,s[_0x2aa8a2(0x10c)](C['LocalCacheService']))],b);var pe=Object[_0x2aa8a2(0xde)],Ce=Object[_0x2aa8a2(0xf6)],Ie=(_0x574f15,_0x485df3,_0x4e09bc,_0x304718)=>{for(var _0x519fef=_0x304718>0x1?void 0x0:_0x304718?Ce(_0x485df3,_0x4e09bc):_0x485df3,_0x585b20=_0x574f15['length']-0x1,_0x3561bb;_0x585b20>=0x0;_0x585b20--)(_0x3561bb=_0x574f15[_0x585b20])&&(_0x519fef=(_0x304718?_0x3561bb(_0x485df3,_0x4e09bc,_0x519fef):_0x3561bb(_0x519fef))||_0x519fef);return _0x304718&&_0x519fef&&pe(_0x485df3,_0x4e09bc,_0x519fef),_0x519fef;},M=(_0x1844f5,_0x5033b5)=>(_0x393d18,_0x33de5d)=>_0x5033b5(_0x393d18,_0x33de5d,_0x1844f5);const Ee=_0x2aa8a2(0x115);var E;exports[_0x2aa8a2(0x173)]=(E=class extends s['Plugin']{constructor(_0x3ac2af=oe,_0x40d090,_0x3e3e1d){var _0x2525a7=_0x2aa8a2;super(),this[_0x2525a7(0xea)]=_0x3ac2af,this[_0x2525a7(0x1a3)]=_0x40d090,this[_0x2525a7(0x112)]=_0x3e3e1d;const {menu:_0x421be9,..._0x31dc89}=this['_config'];_0x421be9&&this[_0x2525a7(0x112)]['setConfig'](_0x2525a7(0x195),_0x421be9,{'merge':!0x0}),this[_0x2525a7(0x112)]['setConfig'](L,_0x31dc89),this[_0x2525a7(0xea)][_0x2525a7(0x15d)]&&this[_0x2525a7(0x112)][_0x2525a7(0x190)](U,this['_config'][_0x2525a7(0x15d)]);}[_0x2aa8a2(0x10f)](){var _0x5c36e1=_0x2aa8a2;[[exports[_0x5c36e1(0x113)]],[b]][_0x5c36e1(0x186)](_0x5659c5=>this['_injector'][_0x5c36e1(0x177)](_0x5659c5));}},S(E,_0x2aa8a2(0x196),s[_0x2aa8a2(0x14f)]['UNIVER_UNKNOWN']),S(E,_0x2aa8a2(0x156),Ee),E),exports[_0x2aa8a2(0x173)]=Ie([M(0x1,s[_0x2aa8a2(0x10c)](s[_0x2aa8a2(0x102)])),M(0x2,s['IConfigService'])],exports[_0x2aa8a2(0x173)]),exports['UNIVER_CONTAINER_ID_KEY']=U,exports[_0x2aa8a2(0x14a)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4970b7=_0x2cd9;(function(_0x5b314a,_0x1f0de6){var _0x3a0376=_0x2cd9,_0x16d944=_0x5b314a();while(!![]){try{var _0x6f21c3=parseInt(_0x3a0376(0x1be))/0x1+-parseInt(_0x3a0376(0x13d))/0x2*(-parseInt(_0x3a0376(0x1ae))/0x3)+parseInt(_0x3a0376(0x14d))/0x4*(parseInt(_0x3a0376(0x170))/0x5)+parseInt(_0x3a0376(0x1ce))/0x6+parseInt(_0x3a0376(0x1b7))/0x7*(parseInt(_0x3a0376(0x1ca))/0x8)+-parseInt(_0x3a0376(0x19a))/0x9+parseInt(_0x3a0376(0x188))/0xa*(-parseInt(_0x3a0376(0x1af))/0xb);if(_0x6f21c3===_0x1f0de6)break;else _0x16d944['push'](_0x16d944['shift']());}catch(_0x49bb7b){_0x16d944['push'](_0x16d944['shift']());}}}(_0x8c75,0x7b265));var W=Object['defineProperty'],B=(_0x4e497f,_0xc724f5,_0x59bfc4)=>_0xc724f5 in _0x4e497f?W(_0x4e497f,_0xc724f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59bfc4}):_0x4e497f[_0xc724f5]=_0x59bfc4,h=(_0x1ecd97,_0x1e87c9,_0x17d5d4)=>B(_0x1ecd97,typeof _0x1e87c9!='symbol'?_0x1e87c9+'':_0x1e87c9,_0x17d5d4);import{Disposable as _0x1471bb,DisposableCollection as _0x432a57,Univer as _0x59fa74,IAuthzIoService as _0x31aedd,LocaleService as _0x3d1009,OnLifecycle as _0x460e8a,LifecycleStages as _0x23a0cc,Inject as _0x280249,IUniverInstanceService as _0x1937eb,IConfigService as _0x2c59bd,ICommandService as _0x27925d,IPermissionService as _0xce6c6c,CommandType as _0x4c9f51,UniverInstanceType as _0x5672fb,RxDisposable as _0x4f50f1,toDisposable as _0x194792,Plugin as _0x365bb3,Injector as _0x175cc7}from'@univerjs/core';import{greenTheme as _0x7d7b2b,MessageType as _0x5d78cc}from'@univerjs/design';import{UniverDocsPlugin as _0x45b195}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x441932}from'@univerjs/docs-ui';import{UniverRenderEnginePlugin as _0x10e72b}from'@univerjs/engine-render';import{WorkbookEditablePermission as _0x439433,WorksheetEditPermission as _0x3e8d65,RangeProtectionPermissionEditPoint as _0x56ba19,WorkbookRecoverHistoryPermission as _0x43e7a7,RangeProtectionRuleModel as _0x4bb93c,UniverSheetsPlugin as _0x2ccc31,getSheetCommandTarget as _0x586d83,WorkbookViewHistoryPermission as _0x3075cf}from'@univerjs/sheets';import{UniverSheetsUIPlugin as _0x29b21d,getCurrentRangeDisable$ as _0x54e7ff}from'@univerjs/sheets-ui';import{IMessageService as _0x599fbd,IDialogService as _0x577917,ISidebarService as _0x516ee7,UniverUIPlugin as _0x4ce0f9,MenuItemType as _0x43915f,getMenuHiddenObservable as _0x550f72,RibbonStartGroup as _0x141424,ComponentManager as _0x2fdb75,IMenuManagerService as _0x1d981e}from'@univerjs/ui';import{HistoryManagerService as _0x5e36f9,HistoryModeStatus as _0x2ff83b,UniverEditHistoryViewerPlugin as _0x5a163c}from'@univerjs-pro/edit-history-viewer';import{RevertRevisionMutation as _0xe4a3d3,UniverCollaborationPlugin as _0x4a4937,CollaborationEvent as _0x17b55e}from'@univerjs-pro/collaboration';import{UniverSheetsFilterPlugin as _0x3d8380}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x1e082a}from'@univerjs/sheets-filter-ui';import{UniverSheetsConditionalFormattingPlugin as _0x478b98}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x4eb6f5}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsHyperLinkPlugin as _0x1f0ff9}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x285d4c}from'@univerjs/sheets-hyper-link-ui';import{UniverDataValidationPlugin as _0x3d3d58}from'@univerjs/data-validation';import{UniverSheetsNumfmtPlugin as _0x4fabee}from'@univerjs/sheets-numfmt';import{UniverSheetsFormulaPlugin as _0x2b5c15}from'@univerjs/sheets-formula';import{UniverFormulaEnginePlugin as _0x417aa7}from'@univerjs/engine-formula';import{UniverRPCMainThreadPlugin as _0x3d7d1a}from'@univerjs/rpc';import{UniverSheetsDataValidationPlugin as _0x42794a}from'@univerjs/sheets-data-validation';import{UniverDrawingUIPlugin as _0x4140ed}from'@univerjs/drawing-ui';import{UniverSheetsDrawingUIPlugin as _0x12177b}from'@univerjs/sheets-drawing-ui';function _0x2cd9(_0x14275b,_0x16cf3c){var _0x8c7547=_0x8c75();return _0x2cd9=function(_0x2cd951,_0xb8e0c6){_0x2cd951=_0x2cd951-0x138;var _0x393218=_0x8c7547[_0x2cd951];return _0x393218;},_0x2cd9(_0x14275b,_0x16cf3c);}import{UniverSheetsDrawingPlugin as _0x303af0}from'@univerjs/sheets-drawing';import{UniverDrawingPlugin as _0xe1364f,IImageIoService as _0x5a01dc}from'@univerjs/drawing';import{UniverSheetsPivotTablePlugin as _0x5a6dc0}from'@univerjs-pro/sheets-pivot';import{CollaborationStatus as _0x48020b,CollaborationController as _0xe36b6e,LocalCacheService as _0x304175}from'@univerjs-pro/collaboration-client';import{combineLatest as _0x308004}from'rxjs';import{forwardRef as _0x491713,useRef as _0x3b5b75,createElement as _0x290907}from'react';var Ke=Object[_0x4970b7(0x15b)],ze=Object[_0x4970b7(0x161)],Ze=(_0x581f16,_0x5ad332,_0x537779,_0x516bce)=>{var _0x93bdc5=_0x4970b7;for(var _0xf80fa=_0x516bce>0x1?void 0x0:_0x516bce?ze(_0x5ad332,_0x537779):_0x5ad332,_0xd1594d=_0x581f16[_0x93bdc5(0x167)]-0x1,_0x545bb3;_0xd1594d>=0x0;_0xd1594d--)(_0x545bb3=_0x581f16[_0xd1594d])&&(_0xf80fa=(_0x516bce?_0x545bb3(_0x5ad332,_0x537779,_0xf80fa):_0x545bb3(_0xf80fa))||_0xf80fa);return _0x516bce&&_0xf80fa&&Ke(_0x5ad332,_0x537779,_0xf80fa),_0xf80fa;},g=(_0x1bbb9b,_0x4a4ca1)=>(_0xb19772,_0x53fed2)=>_0x4a4ca1(_0xb19772,_0x53fed2,_0x1bbb9b);const qe=_0x4970b7(0x1cb),k=_0x4970b7(0x164),f='univer-history-container';let d=class extends _0x1471bb{constructor(_0x2eb88f,_0x442c3a,_0x3414d2,_0x43411f,_0x46dd69,_0x44e164,_0x495a7c,_0x5ba3ab,_0x5d1019){var _0x5e69af=_0x4970b7;super(),h(this,'_historyUniver',null),h(this,'_disposableCollection',new _0x432a57()),h(this,'_pluginMap',new Map()),(this[_0x5e69af(0x1ab)]=_0x2eb88f,this[_0x5e69af(0x1cc)]=_0x442c3a,this[_0x5e69af(0x1c1)]=_0x3414d2,this[_0x5e69af(0x1d2)]=_0x43411f,this[_0x5e69af(0x173)]=_0x46dd69,this['_permissionService']=_0x44e164,this[_0x5e69af(0x1bb)]=_0x495a7c,this[_0x5e69af(0x157)]=_0x5ba3ab,this[_0x5e69af(0x15e)]=_0x5d1019,this['_init']());}['_init'](){var _0x3dc9cb=_0x4970b7;this[_0x3dc9cb(0x1ac)](),this['_initPlugins']();}['_initContainer'](){var _0x97c30f=_0x4970b7,_0x5ecb77;const _0x37f755=(_0x5ecb77=this[_0x97c30f(0x1c1)][_0x97c30f(0x16c)](k))!=null?_0x5ecb77:qe,_0x4097c5=document[_0x97c30f(0x181)](_0x37f755);if(!_0x4097c5)return;const _0x2d4b7f=document[_0x97c30f(0x15d)](_0x97c30f(0x1a5));_0x2d4b7f['id']=f,_0x2d4b7f[_0x97c30f(0x14a)]['position']=_0x97c30f(0x190),_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x1b3)]='0',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x1a9)]='0',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x142)]=_0x97c30f(0x189),_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x160)]='100%',_0x2d4b7f[_0x97c30f(0x14a)][_0x97c30f(0x144)]='1000',_0x2d4b7f['style'][_0x97c30f(0x151)]='none',_0x4097c5['appendChild'](_0x2d4b7f);}[_0x4970b7(0x1b5)](){var _0x40ed06=_0x4970b7;[[_0xe1364f,{'override':[[_0x5a01dc,null]]}],[_0x45b195,{'hasScroll':!0x1}],[_0x441932],[_0x10e72b],[_0x4ce0f9,{'container':f,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x577917,null]]}],[_0x2ccc31,{'notExecuteFormula':!0x0}],[_0x29b21d],[_0x4a4937],[_0x3d8380],[_0x1e082a],[_0x478b98],[_0x4eb6f5],[_0x1f0ff9],[_0x285d4c],[_0x3d3d58],[_0x42794a],[_0x4fabee],[_0x417aa7,{'notExecuteFormula':!0x0}],[_0x2b5c15],[_0x3d7d1a,{'workerURL':_0x40ed06(0x1b9)}],[_0x4140ed],[_0x303af0],[_0x12177b],[_0x5a6dc0,{'notExecuteFormula':!0x0}],[_0x5a163c]]['forEach'](([_0x1db85b,_0x2feec1])=>this['registerPlugin'](_0x1db85b,_0x2feec1));}[_0x4970b7(0x1a1)](){var _0x1e6b61=_0x4970b7;super[_0x1e6b61(0x1a1)](),this[_0x1e6b61(0x149)](),this[_0x1e6b61(0x1a3)]['clear']();}['registerPlugin'](_0x4dda2a,_0x2fcda4,_0x486511){var _0x2c9696=_0x4970b7;if(this['_pluginMap'][_0x2c9696(0x1a0)](_0x4dda2a[_0x2c9696(0x176)])&&!_0x486511)throw new Error(_0x2c9696(0x148)+_0x4dda2a[_0x2c9696(0x176)]+_0x2c9696(0x1b1));this['_pluginMap'][_0x2c9696(0x1c8)](_0x4dda2a[_0x2c9696(0x176)],[_0x4dda2a,_0x2fcda4]);}['getAllPlugins'](){var _0x128e83=_0x4970b7;return Array[_0x128e83(0x168)](this[_0x128e83(0x1a3)][_0x128e83(0x1c4)]());}[_0x4970b7(0x178)](_0xd4396){var _0x272b7d=_0x4970b7;const _0x6c0eb=document[_0x272b7d(0x181)](f);_0x6c0eb&&(_0x6c0eb[_0x272b7d(0x14a)][_0x272b7d(0x151)]=_0x272b7d(0x1a6),this[_0x272b7d(0x1b4)](_0xd4396,f));}['unMountHistoryContent'](){var _0x382771=_0x4970b7,_0x49428a;this[_0x382771(0x18d)][_0x382771(0x1a1)](),(_0x49428a=this[_0x382771(0x163)])==null||_0x49428a[_0x382771(0x1a1)](),this[_0x382771(0x163)]=null;const _0x5538ad=document[_0x382771(0x181)](f);_0x5538ad&&(_0x5538ad[_0x382771(0x14a)][_0x382771(0x151)]=_0x382771(0x145));}[_0x4970b7(0x1b4)](_0x53d08c,_0x36a7dc){var _0x3ff92f=_0x4970b7;if(this[_0x3ff92f(0x163)])return;const _0x2a6df9=new _0x59fa74({'theme':_0x7d7b2b,'locales':{[this['_localeService'][_0x3ff92f(0x139)]()]:this['_localeService'][_0x3ff92f(0x154)]()},'override':[[_0x31aedd,null]]});this[_0x3ff92f(0x163)]=_0x2a6df9;const _0x10958a=_0x2a6df9[_0x3ff92f(0x1cd)]();_0x10958a[_0x3ff92f(0x19e)](_0x3d1009)[_0x3ff92f(0x141)](this[_0x3ff92f(0x1ab)][_0x3ff92f(0x139)]()),this[_0x3ff92f(0x1a3)][_0x3ff92f(0x19c)](([_0x9518b7,_0x5928e2])=>{_0x2a6df9['registerPlugin'](_0x9518b7,_0x5928e2);}),_0x10958a[_0x3ff92f(0x196)](_0x8faa22=>{var _0x53d715=_0x3ff92f;this[_0x53d715(0x1a4)](_0x8faa22,_0x53d08c),this[_0x53d715(0x14b)](_0x8faa22,this[_0x53d715(0x173)]);});const _0x237fbd=_0x10958a[_0x3ff92f(0x19e)](_0x5e36f9),_0x34a9e5=this[_0x3ff92f(0x1d7)](_0x53d08c);_0x237fbd[_0x3ff92f(0x17b)](_0x53d08c,_0x36a7dc,_0x34a9e5);}[_0x4970b7(0x1a4)](_0x1b6d9d,_0x17b351){var _0x5e5e21=_0x4970b7;const _0x44c829=_0x1b6d9d[_0x5e5e21(0x19e)](_0x5e36f9);this['_disposableCollection'][_0x5e5e21(0x1b0)](_0x44c829['status$'][_0x5e5e21(0x14e)](_0x2ec5ae=>{var _0x12899f=_0x5e5e21;switch(_0x2ec5ae){case _0x2ff83b[_0x12899f(0x1ba)]:this[_0x12899f(0x157)][_0x12899f(0x198)](),this[_0x12899f(0x15e)]['close']();break;case _0x2ff83b[_0x12899f(0x158)]:this['unMountHistoryContent']();break;case _0x2ff83b[_0x12899f(0x1bd)]:this[_0x12899f(0x149)](),this[_0x12899f(0x173)][_0x12899f(0x19b)]({'content':this[_0x12899f(0x1ab)]['t']('editHistory.panel.listFetchError'),'type':_0x5d78cc[_0x12899f(0x1bd)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x5e5e21(0x1b0)](_0x44c829['revertRevision$'][_0x5e5e21(0x14e)](async _0x247be3=>{var _0x1e3b58=_0x5e5e21;_0x247be3&&this[_0x1e3b58(0x1d2)]['executeCommand'](_0xe4a3d3['id'],{'unitId':_0x17b351,'revision':_0x247be3});}));}[_0x4970b7(0x14b)](_0x14ebb8,_0x21cbb9){var _0x2df20e=_0x4970b7;const _0x1535ee=_0x14ebb8[_0x2df20e(0x19e)](_0x599fbd),_0x4210d8=_0x21cbb9['getContainer']();_0x4210d8&&_0x1535ee[_0x2df20e(0x150)](_0x4210d8);}[_0x4970b7(0x1d7)](_0x167a3d){var _0x4060af=_0x4970b7;const _0x57e0ed=this[_0x4060af(0x1cc)][_0x4060af(0x186)](_0x167a3d)[_0x4060af(0x171)]()[_0x4060af(0x1b6)](_0x4c04e8=>_0x4c04e8['getSheetId']()),_0x17d41b=new _0x439433(_0x167a3d)['id'],_0xdcf447=_0x57e0ed[_0x4060af(0x1b6)](_0xcf604d=>new _0x3e8d65(_0x167a3d,_0xcf604d)['id']),_0x559953=_0x57e0ed['map'](_0x4e769c=>this[_0x4060af(0x1bb)][_0x4060af(0x177)](_0x167a3d,_0x4e769c)[_0x4060af(0x1b6)](_0x65da59=>new _0x56ba19(_0x167a3d,_0x4e769c,_0x65da59[_0x4060af(0x13a)])['id']))[_0x4060af(0x197)](),_0x535c94=new _0x43e7a7(_0x167a3d)['id'];return this[_0x4060af(0x1bc)][_0x4060af(0x1c2)]([_0x17d41b,..._0xdcf447,..._0x559953,_0x535c94])[_0x4060af(0x1bf)](_0x31eec7=>!!_0x31eec7[_0x4060af(0x193)]);}};d=Ze([_0x460e8a(_0x23a0cc['Steady'],d),g(0x0,_0x280249(_0x3d1009)),g(0x1,_0x1937eb),g(0x2,_0x2c59bd),g(0x3,_0x27925d),g(0x4,_0x599fbd),g(0x5,_0xce6c6c),g(0x6,_0x280249(_0x4bb93c)),g(0x7,_0x280249(_0x577917)),g(0x8,_0x280249(_0x516ee7))],d);var l=function(){var _0x231275=_0x4970b7;return l=Object[_0x231275(0x1c9)]||function(_0xd05d3a){var _0x329041=_0x231275;for(var _0x3cef0a,_0x3b9aab=0x1,_0x457466=arguments['length'];_0x3b9aab<_0x457466;_0x3b9aab++){_0x3cef0a=arguments[_0x3b9aab];for(var _0x38c3e7 in _0x3cef0a)Object[_0x329041(0x1a2)][_0x329041(0x1d4)][_0x329041(0x146)](_0x3cef0a,_0x38c3e7)&&(_0xd05d3a[_0x38c3e7]=_0x3cef0a[_0x38c3e7]);}return _0xd05d3a;},l[_0x231275(0x18a)](this,arguments);},Je=function(_0x2a3065,_0x3a284b){var _0xa1840a=_0x4970b7,_0x9ef911={};for(var _0x2a5e43 in _0x2a3065)Object['prototype']['hasOwnProperty']['call'](_0x2a3065,_0x2a5e43)&&_0x3a284b[_0xa1840a(0x172)](_0x2a5e43)<0x0&&(_0x9ef911[_0x2a5e43]=_0x2a3065[_0x2a5e43]);if(_0x2a3065!=null&&typeof Object[_0xa1840a(0x147)]==_0xa1840a(0x1cf)){for(var _0x4a665a=0x0,_0x2a5e43=Object[_0xa1840a(0x147)](_0x2a3065);_0x4a665a<_0x2a5e43['length'];_0x4a665a++)_0x3a284b[_0xa1840a(0x172)](_0x2a5e43[_0x4a665a])<0x0&&Object['prototype'][_0xa1840a(0x175)]['call'](_0x2a3065,_0x2a5e43[_0x4a665a])&&(_0x9ef911[_0x2a5e43[_0x4a665a]]=_0x2a3065[_0x2a5e43[_0x4a665a]]);}return _0x9ef911;},$=_0x491713(function(_0x1b0459,_0x14af8e){var _0x1310a0=_0x4970b7,_0x2aa954=_0x1b0459[_0x1310a0(0x16b)],_0x5d4be7=_0x1b0459['id'],_0x2cb521=_0x1b0459['className'],_0xa31387=_0x1b0459[_0x1310a0(0x1b8)],_0x21ac0b=Je(_0x1b0459,[_0x1310a0(0x16b),'id',_0x1310a0(0x13f),_0x1310a0(0x1b8)]),_0x43d164=_0x1310a0(0x143)[_0x1310a0(0x14c)](_0x5d4be7,'\x20')[_0x1310a0(0x14c)](_0x2cb521||'')[_0x1310a0(0x15a)](),_0x4fb978=_0x3b5b75('_'[_0x1310a0(0x14c)](ei()));return A(_0x2aa954,''[_0x1310a0(0x14c)](_0x5d4be7),{'defIds':_0x2aa954['defIds'],'idSuffix':_0x4fb978[_0x1310a0(0x1d6)]},l({'ref':_0x14af8e,'className':_0x43d164},_0x21ac0b),_0xa31387);});function A(_0x44a7a7,_0x3d79b0,_0x4c8f51,_0x3a5a49,_0x5715e8){var _0x320a15=_0x4970b7;return _0x290907(_0x44a7a7[_0x320a15(0x199)],l(l({'key':_0x3d79b0},Qe(_0x44a7a7,_0x4c8f51,_0x5715e8)),_0x3a5a49),(Xe(_0x44a7a7,_0x4c8f51)['children']||[])['map'](function(_0x368016,_0x1b918d){var _0xfd2248=_0x320a15;return A(_0x368016,''[_0xfd2248(0x14c)](_0x3d79b0,'-')[_0xfd2248(0x14c)](_0x44a7a7['tag'],'-')['concat'](_0x1b918d),_0x4c8f51,void 0x0,_0x5715e8);}));}function Qe(_0x2d7c44,_0x4165fe,_0x52ed6a){var _0x5eaef4=_0x4970b7,_0xde3226=l({},_0x2d7c44[_0x5eaef4(0x1d3)]);_0x52ed6a!=null&&_0x52ed6a['colorChannel1']&&_0xde3226[_0x5eaef4(0x17a)]===_0x5eaef4(0x13c)&&(_0xde3226['fill']=_0x52ed6a[_0x5eaef4(0x13c)]);var _0x1d1106=_0x4165fe[_0x5eaef4(0x183)];return!_0x1d1106||_0x1d1106[_0x5eaef4(0x167)]===0x0||(_0x2d7c44[_0x5eaef4(0x199)]===_0x5eaef4(0x169)&&_0xde3226[_0x5eaef4(0x184)]&&(_0xde3226[_0x5eaef4(0x184)]=_0xde3226[_0x5eaef4(0x184)]+_0x4165fe[_0x5eaef4(0x18f)]),Object[_0x5eaef4(0x138)](_0xde3226)[_0x5eaef4(0x19c)](function(_0x451cfd){var _0x1247fe=_0x5eaef4,_0x2b0331=_0x451cfd[0x0],_0x11a99f=_0x451cfd[0x1];typeof _0x11a99f=='string'&&(_0xde3226[_0x2b0331]=_0x11a99f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1247fe(0x14c)](_0x4165fe[_0x1247fe(0x18f)],')')));})),_0xde3226;}function Xe(_0x2028dd,_0x53c028){var _0x3a8132=_0x4970b7,_0x8686aa,_0x1f8158=_0x53c028['defIds'];return!_0x1f8158||_0x1f8158[_0x3a8132(0x167)]===0x0?_0x2028dd:_0x2028dd[_0x3a8132(0x199)]===_0x3a8132(0x1c5)&&(!((_0x8686aa=_0x2028dd[_0x3a8132(0x15c)])===null||_0x8686aa===void 0x0)&&_0x8686aa[_0x3a8132(0x167)])?l(l({},_0x2028dd),{'children':_0x2028dd[_0x3a8132(0x15c)][_0x3a8132(0x1b6)](function(_0x1295ab){var _0x2293a9=_0x3a8132;return typeof _0x1295ab[_0x2293a9(0x1d3)]['id']==_0x2293a9(0x187)&&_0x1f8158&&_0x1f8158[_0x2293a9(0x172)](_0x1295ab[_0x2293a9(0x1d3)]['id'])>-0x1?l(l({},_0x1295ab),{'attrs':l(l({},_0x1295ab[_0x2293a9(0x1d3)]),{'id':_0x1295ab[_0x2293a9(0x1d3)]['id']+_0x53c028[_0x2293a9(0x18f)]})}):_0x1295ab;})}):_0x2028dd;}function ei(){var _0x49fe4a=_0x4970b7;return Math['random']()[_0x49fe4a(0x18b)](0x24)['substring'](0x2,0x8);}$['displayName']='UniverIcon';var ii={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4970b7(0x185),'width':_0x4970b7(0x1aa),'height':_0x4970b7(0x1aa)},'children':[{'tag':'g','attrs':{'fill':_0x4970b7(0x16d),'clipPath':_0x4970b7(0x14f)},'children':[{'tag':_0x4970b7(0x182),'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':_0x4970b7(0x182),'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':_0x4970b7(0x1c5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'history-single_clip0_907_281'},'children':[{'tag':_0x4970b7(0x182),'attrs':{'fill':_0x4970b7(0x1a7),'d':_0x4970b7(0x1c6)}}]}]}],'defIds':[_0x4970b7(0x19d)]},F=_0x491713(function(_0x32ab0d,_0x515489){return _0x290907($,Object['assign']({},_0x32ab0d,{'id':'history-single','ref':_0x515489,'icon':ii}));});F[_0x4970b7(0x156)]=_0x4970b7(0x13b);const P={'id':_0x4970b7(0x1d8),'type':_0x4c9f51['OPERATION'],'handler':_0x462f87=>{var _0x535622=_0x4970b7;const _0x320612=_0x462f87[_0x535622(0x19e)](d),_0x310cb5=_0x462f87[_0x535622(0x19e)](_0x1937eb),{unitId:_0x2af1ce}=_0x586d83(_0x310cb5)||{};return _0x2af1ce?(_0x320612['mountHistoryContent'](_0x2af1ce),!0x0):!0x1;}},V=_0x4970b7(0x13b);function _0x8c75(){var _0x10dd18=['_checkCanRevert','univer.operation.toggle-edit-history','entries','getCurrentLocale','permissionId','HistorySingle','colorChannel1','134IZoOmW','UNIVER_SHEET','className','SYNCED','setLocale','width','univerjs-icon\x20univerjs-icon-','zIndex','none','call','getOwnPropertySymbols','[HistoryLoaderService]:\x20Plugin\x20','unMountHistoryContent','style','_initMessageService','concat','137996VXeKlB','subscribe','url(#history-single_clip0_907_281)','setContainer','display','state$','exhaustSavingTask','getLocales','mutations','displayName','_dialogService','Exited','editHistory.panel.revertFailed','trim','defineProperty','children','createElement','_sidebarService','_historyManagerService','height','getOwnPropertyDescriptor','reload','_historyUniver','UNIVER_CONTAINER_ID','editHistory.panel.title','menu','length','from','use','_config','icon','getConfig','currentColor','params','_init','120lCzrKC','getSheets','indexOf','_messageService','BUTTON','propertyIsEnumerable','pluginName','getSubunitRuleList','mountHistoryContent','OTHERS','fill','triggerLoadVersions','univerContainerId','data','status','_componentManager','unsubscribe','getElementById','path','defIds','xlink:href','0\x200\x2016\x2016','getUnit','string','1090VBchgu','100%','apply','toString','location','_disposableCollection','onStarting','idSuffix','absolute','_localCacheService','setConfig','value','disposeWithMe','event$','invoke','flat','closeAll','tag','8228538NktLdf','show','forEach','history-single_clip0_907_281','get','some','has','dispose','prototype','_pluginMap','_initListener','div','block','#fff','edit-history-loader.config','left','1em','_localeService','_initContainer','session','7437gIKiNA','218548VXpkiS','add','\x20has\x20been\x20registered.','Steady','top','_initUniver','_initPlugins','map','7hRMKIG','extend','./worker.js','Entered','_selectionProtectionRuleModel','_permissionService','Error','827989ATADlD','every','_revertErrorTimer','_configService','composePermission','getCollabEntity','values','defs','M0\x200H16V16H0z','_injector','set','assign','7356088BvTcNR','univer-container','_univerInstanceService','__getInjector','5056476zXWjrg','function','_menuManagerService','_collaborationController','_commandService','attrs','hasOwnProperty','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','current'];_0x8c75=function(){return _0x10dd18;};return _0x8c75();}function ti(_0x5d56b9){var _0x436ae6=_0x4970b7;return{'id':P['id'],'type':_0x43915f[_0x436ae6(0x174)],'icon':V,'tooltip':_0x436ae6(0x165),'hidden$':_0x550f72(_0x5d56b9,_0x5672fb[_0x436ae6(0x13e)]),'disabled$':_0x54e7ff(_0x5d56b9,{'workbookTypes':[_0x439433,_0x3075cf],'worksheetTypes':[],'rangeTypes':[]})};}const ri={[_0x141424[_0x4970b7(0x179)]]:{[P['id']]:{'order':0x0,'menuItemFactory':ti}}};var ni=Object[_0x4970b7(0x15b)],oi=Object[_0x4970b7(0x161)],si=(_0x5380f2,_0x3d3f38,_0x461956,_0x4d78d4)=>{for(var _0x40d43a=_0x4d78d4>0x1?void 0x0:_0x4d78d4?oi(_0x3d3f38,_0x461956):_0x3d3f38,_0x537d8f=_0x5380f2['length']-0x1,_0x3652b4;_0x537d8f>=0x0;_0x537d8f--)(_0x3652b4=_0x5380f2[_0x537d8f])&&(_0x40d43a=(_0x4d78d4?_0x3652b4(_0x3d3f38,_0x461956,_0x40d43a):_0x3652b4(_0x40d43a))||_0x40d43a);return _0x4d78d4&&_0x40d43a&&ni(_0x3d3f38,_0x461956,_0x40d43a),_0x40d43a;},v=(_0x17b550,_0x2c26c4)=>(_0x4714bb,_0xd03363)=>_0x2c26c4(_0x4714bb,_0xd03363,_0x17b550);let p=class extends _0x4f50f1{constructor(_0x40c5bd,_0x1acfa0,_0x591b3f,_0x3178da,_0x513336,_0x60f8bc,_0x8d22fb,_0x2f5f29){var _0x5e6d80=_0x4970b7;super(),h(this,_0x5e6d80(0x1c0),null),(this[_0x5e6d80(0x1d2)]=_0x40c5bd,this[_0x5e6d80(0x1d0)]=_0x1acfa0,this[_0x5e6d80(0x17f)]=_0x591b3f,this[_0x5e6d80(0x15f)]=_0x3178da,this[_0x5e6d80(0x1ab)]=_0x513336,this[_0x5e6d80(0x173)]=_0x60f8bc,this[_0x5e6d80(0x1d1)]=_0x8d22fb,this[_0x5e6d80(0x191)]=_0x2f5f29,this['_init']());}[_0x4970b7(0x16f)](){var _0x507acf=_0x4970b7;[P][_0x507acf(0x19c)](_0x38ddd0=>this[_0x507acf(0x194)](_0x194792(this[_0x507acf(0x1d2)]['registerCommand'](_0x38ddd0)))),this[_0x507acf(0x194)](this[_0x507acf(0x17f)]['register'](V,F)),this[_0x507acf(0x1d0)]['mergeMenu'](ri),this[_0x507acf(0x194)](this[_0x507acf(0x1d2)]['onCommandExecuted'](_0x33c1df=>{var _0x346cfc=_0x507acf;if(_0x33c1df['id']===_0xe4a3d3['id']){this[_0x346cfc(0x173)]['show']({'content':this['_localeService']['t']('editHistory.panel.reverting'),'type':_0x5d78cc['Loading'],'duration':0x1388});const {unitId:_0x451c77}=_0x33c1df[_0x346cfc(0x16e)],_0x276a99=this[_0x346cfc(0x1d1)][_0x346cfc(0x1c3)](_0x451c77),_0x662d2f=_0x308004([_0x276a99[_0x346cfc(0x1ad)][_0x346cfc(0x195)],_0x276a99[_0x346cfc(0x152)]])[_0x346cfc(0x14e)](async([_0x10de73,_0x331c07])=>{var _0x3e3a99=_0x346cfc;_0x10de73['eventID']===_0x17b55e['CHANGESET_ACK']&&(_0x331c07==null?void 0x0:_0x331c07[_0x3e3a99(0x17e)])===_0x48020b[_0x3e3a99(0x140)]&&_0x10de73[_0x3e3a99(0x17d)][_0x3e3a99(0x155)][_0x3e3a99(0x19f)](_0x835d02=>_0x835d02['id']===_0xe4a3d3['id'])&&(this[_0x3e3a99(0x15f)][_0x3e3a99(0x149)](),_0x662d2f[_0x3e3a99(0x180)](),this[_0x3e3a99(0x1c0)]&&clearTimeout(this[_0x3e3a99(0x1c0)]),await this[_0x3e3a99(0x191)][_0x3e3a99(0x153)](),setTimeout(()=>window[_0x3e3a99(0x18c)][_0x3e3a99(0x162)]()));});this['_revertErrorTimer']=setTimeout(()=>{var _0x28b39e=_0x346cfc;_0x662d2f[_0x28b39e(0x180)](),this['_messageService']['show']({'content':this[_0x28b39e(0x1ab)]['t'](_0x28b39e(0x159)),'type':_0x5d78cc[_0x28b39e(0x1bd)],'duration':0xbb8});},0x1388);}}));}};p=si([_0x460e8a(_0x23a0cc[_0x4970b7(0x1b2)],p),v(0x0,_0x27925d),v(0x1,_0x1d981e),v(0x2,_0x280249(_0x2fdb75)),v(0x3,_0x280249(d)),v(0x4,_0x280249(_0x3d1009)),v(0x5,_0x599fbd),v(0x6,_0x280249(_0xe36b6e)),v(0x7,_0x280249(_0x304175))],p);const ai=_0x4970b7(0x1a8),ci={};var li=Object[_0x4970b7(0x15b)],ui=Object[_0x4970b7(0x161)],gi=(_0x32032e,_0x15664a,_0x499620,_0x50785e)=>{var _0x13d17b=_0x4970b7;for(var _0x2a2c8e=_0x50785e>0x1?void 0x0:_0x50785e?ui(_0x15664a,_0x499620):_0x15664a,_0x2ae49d=_0x32032e[_0x13d17b(0x167)]-0x1,_0x277266;_0x2ae49d>=0x0;_0x2ae49d--)(_0x277266=_0x32032e[_0x2ae49d])&&(_0x2a2c8e=(_0x50785e?_0x277266(_0x15664a,_0x499620,_0x2a2c8e):_0x277266(_0x2a2c8e))||_0x2a2c8e);return _0x50785e&&_0x2a2c8e&&li(_0x15664a,_0x499620,_0x2a2c8e),_0x2a2c8e;},U=(_0x1b5b01,_0xd9ddd8)=>(_0x1973a9,_0x40d9a3)=>_0xd9ddd8(_0x1973a9,_0x40d9a3,_0x1b5b01);const vi=_0x4970b7(0x1d5);var _;let M=(_=class extends _0x365bb3{constructor(_0x273a28=ci,_0x5e0369,_0x5328f0){var _0x1f94dd=_0x4970b7;super(),this[_0x1f94dd(0x16a)]=_0x273a28,this[_0x1f94dd(0x1c7)]=_0x5e0369,this[_0x1f94dd(0x1c1)]=_0x5328f0;const {menu:_0x39a5ee,..._0x15a817}=this['_config'];_0x39a5ee&&this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](_0x1f94dd(0x166),_0x39a5ee,{'merge':!0x0}),this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](ai,_0x15a817),this[_0x1f94dd(0x16a)]['univerContainerId']&&this[_0x1f94dd(0x1c1)][_0x1f94dd(0x192)](k,this[_0x1f94dd(0x16a)][_0x1f94dd(0x17c)]);}[_0x4970b7(0x18e)](){var _0x501982=_0x4970b7;[[d],[p]]['forEach'](_0x1fa4c5=>this[_0x501982(0x1c7)]['add'](_0x1fa4c5));}},h(_,'type',_0x5672fb['UNIVER_UNKNOWN']),h(_,_0x4970b7(0x176),vi),_);M=gi([U(0x1,_0x280249(_0x175cc7)),U(0x2,_0x2c59bd)],M);export{d as HistoryLoaderService,k as UNIVER_CONTAINER_ID_KEY,f as UNIVER_HISTORY_CONTAINER_ID,M as UniverEditHistoryLoaderPlugin};
|
|
1
|
+
var _0x2c1c65=_0x4856;(function(_0x5406a4,_0x25d374){var _0x1f92e6=_0x4856,_0x5c61f6=_0x5406a4();while(!![]){try{var _0x1e2de1=-parseInt(_0x1f92e6(0x18b))/0x1+parseInt(_0x1f92e6(0x216))/0x2*(parseInt(_0x1f92e6(0x1a4))/0x3)+-parseInt(_0x1f92e6(0x1e4))/0x4+-parseInt(_0x1f92e6(0x21b))/0x5+-parseInt(_0x1f92e6(0x1f4))/0x6+parseInt(_0x1f92e6(0x209))/0x7+parseInt(_0x1f92e6(0x1a1))/0x8;if(_0x1e2de1===_0x25d374)break;else _0x5c61f6['push'](_0x5c61f6['shift']());}catch(_0x342c3f){_0x5c61f6['push'](_0x5c61f6['shift']());}}}(_0x1a0d,0xac2df));var G=Object[_0x2c1c65(0x202)],K=(_0x8f753d,_0x291688,_0x25e7a3)=>_0x291688 in _0x8f753d?G(_0x8f753d,_0x291688,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25e7a3}):_0x8f753d[_0x291688]=_0x25e7a3,d=(_0x30a718,_0x5ae101,_0x2b5e27)=>K(_0x30a718,typeof _0x5ae101!=_0x2c1c65(0x22a)?_0x5ae101+'':_0x5ae101,_0x2b5e27);import{Disposable as _0x17f1c4,DisposableCollection as _0x59f159,Univer as _0x9e01b3,IAuthzIoService as _0xe642bc,LocaleService as _0x4cb3ef,IConfigService as _0x13f896,OnLifecycle as _0x444294,LifecycleStages as _0x2dd76a,Inject as _0x25f146,IUniverInstanceService as _0x4d5371,ICommandService as _0x580ab2,IPermissionService as _0x31dfb8,CommandType as _0x290249,UniverInstanceType as _0x191b9f,RxDisposable as _0x297ffb,toDisposable as _0x52bc3b,Plugin as _0x5cedfc,Injector as _0x2b8534}from'@univerjs/core';import{UniverDataValidationPlugin as _0x101fe8}from'@univerjs/data-validation';import{greenTheme as _0x47b8df,MessageType as _0x36d14a}from'@univerjs/design';import{UniverDocsPlugin as _0x9db39}from'@univerjs/docs';import{UniverDocsUIPlugin as _0x252514}from'@univerjs/docs-ui';import{UniverDrawingPlugin as _0x5e983c,IImageIoService as _0x54123c}from'@univerjs/drawing';import{UniverDrawingUIPlugin as _0x4684c6}from'@univerjs/drawing-ui';import{UniverFormulaEnginePlugin as _0x4b21a2}from'@univerjs/engine-formula';import{UniverRenderEnginePlugin as _0x1afc17}from'@univerjs/engine-render';import{UniverRPCMainThreadPlugin as _0x19aff6}from'@univerjs/rpc';import{UniverSheetsPlugin as _0x9c72f,WorkbookEditablePermission as _0x5b9f95,WorksheetEditPermission as _0x575cf3,RangeProtectionPermissionEditPoint as _0x2a28dd,WorkbookRecoverHistoryPermission as _0x1c331b,RangeProtectionRuleModel as _0x1156c4,getSheetCommandTarget as _0x23a78c,WorkbookViewHistoryPermission as _0x2edf69}from'@univerjs/sheets';function _0x1a0d(){var _0x39d77e=['toString','1562661UZIPzP','setContainer','left','current','univer.operation.toggle-edit-history','entries','_permissionService','closeAll','CHANGESET_ACK','subscribe','get','session','reload','mountHistoryContent','M8.28291\x205.16293C8.28295\x204.83156\x208.01435\x204.5629\x207.68298\x204.56287C7.35161\x204.56283\x207.08295\x204.83143\x207.08291\x205.1628L7.08252\x208.63494C7.0825\x208.79881\x207.1495\x208.95555\x207.26796\x209.06877L9.70073\x2011.3939C9.94029\x2011.6228\x2010.3201\x2011.6142\x2010.549\x2011.3747C10.778\x2011.1351\x2010.7694\x2010.7553\x2010.5298\x2010.5263L8.28255\x208.37852L8.28291\x205.16293Z','_historyUniver','UniverIcon','univerContainerId','_localeService','close','params','url(#history-single_clip0_907_281)','M0\x200H16V16H0z','registerCommand','exhaustSavingTask','forEach','from','substring','_selectionProtectionRuleModel','./worker.js','_commandService','colorChannel1','UNIVER_SHEET','_init','pluginName','data','children','getLocales','_messageService','_disposableCollection','univer-container','_univerInstanceService','univer-history-container','getElementById','height','position','getOwnPropertyDescriptor','use','fill','_collaborationController','_pluginMap','_configService','absolute','flat','_checkCanRevert','OTHERS','icon','width','concat','path','_revertErrorTimer','composePermission','revertRevision$','_initListener','4539236DltVYP','BUTTON','getUnit','trim','0\x200\x2016\x2016','disposeWithMe','1000','random','div','_initContainer','prototype','clipPath','#fff','assign','defIds','1em','2124954WiGaDD','map','getCurrentLocale','_config','tag','_componentManager','idSuffix','editHistory.panel.title','createElement','Entered','HistorySingle','has','_injector','defs','defineProperty','every','getConfig','svg','none','attrs','extend','5647250vBJYrk','eventID','univerjs-icon\x20univerjs-icon-','values','clear','_localCacheService','_dialogService','getSheets','indexOf','function','display','call','dispose','2GXFfAl','getAllPlugins','add','setConfig','_historyManagerService','2921720sMfVRP','OPERATION','triggerLoadVersions','permissionId','invoke','100%','apply','registerPlugin','string','\x20has\x20been\x20registered.','appendChild','event$','Exited','_menuManagerService','edit-history-loader.config','symbol','location','menu','getContainer','top','mutations','some','style','__getInjector','[HistoryLoaderService]:\x20Plugin\x20','Steady','url(#$1','_sidebarService','getOwnPropertySymbols','xlink:href','getSheetId','register','history-single_clip0_907_281','1182782Yvevfs','displayName','state$','Error','replace','length','SYNCED','mergeMenu','show','getSubunitRuleList','block','type','unMountHistoryContent','history-single','_initMessageService','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','Loading','set','getCollabEntity','_initPlugins','unsubscribe','hasOwnProperty','21069632triIxq','className'];_0x1a0d=function(){return _0x39d77e;};return _0x1a0d();}import{UniverSheetsConditionalFormattingPlugin as _0x3ee6a1}from'@univerjs/sheets-conditional-formatting';import{UniverSheetsConditionalFormattingUIPlugin as _0x44882b}from'@univerjs/sheets-conditional-formatting-ui';import{UniverSheetsDataValidationPlugin as _0x469927}from'@univerjs/sheets-data-validation';import{UniverSheetsDrawingPlugin as _0x136cc6}from'@univerjs/sheets-drawing';import{UniverSheetsDrawingUIPlugin as _0xec195c}from'@univerjs/sheets-drawing-ui';import{UniverSheetsFilterPlugin as _0x4f5667}from'@univerjs/sheets-filter';import{UniverSheetsFilterUIPlugin as _0x4d915d}from'@univerjs/sheets-filter-ui';import{UniverSheetsFormulaPlugin as _0x1a041b}from'@univerjs/sheets-formula';import{UniverSheetsHyperLinkPlugin as _0x48872c}from'@univerjs/sheets-hyper-link';import{UniverSheetsHyperLinkUIPlugin as _0x5073b7}from'@univerjs/sheets-hyper-link-ui';import{UniverSheetsNumfmtPlugin as _0x57d681}from'@univerjs/sheets-numfmt';import{UniverSheetsUIPlugin as _0x39cabd,getCurrentRangeDisable$ as _0x330173}from'@univerjs/sheets-ui';import{UniverUIPlugin as _0x777906,IDialogService as _0x24db1f,IMessageService as _0x264b82,ISidebarService as _0x3a8f9d,MenuItemType as _0x534d44,getMenuHiddenObservable as _0x48c92f,RibbonStartGroup as _0x24549f,ComponentManager as _0x3dee78,IMenuManagerService as _0xeb71e9}from'@univerjs/ui';import{UniverCollaborationPlugin as _0xb2d97d,RevertRevisionMutation as _0x55f3ad,CollaborationEvent as _0x49243c}from'@univerjs-pro/collaboration';import{SNAPSHOT_SERVER_URL_KEY as _0x3c4e8c,CollaborationStatus as _0x3a5f27,CollaborationController as _0x4b3585,LocalCacheService as _0x43013e}from'@univerjs-pro/collaboration-client';import{UniverEditHistoryViewerPlugin as _0x5e3ec4,HistoryManagerService as _0x43e6a9,HistoryModeStatus as _0x192c93}from'@univerjs-pro/edit-history-viewer';import{UniverSheetsPivotTablePlugin as _0x427329}from'@univerjs-pro/sheets-pivot';import{combineLatest as _0x5a6473}from'rxjs';import{forwardRef as _0x24b0e4,useRef as _0x3f4542,createElement as _0x3bafdd}from'react';const A=_0x2c1c65(0x229),qe={};var Je=Object['defineProperty'],Qe=Object['getOwnPropertyDescriptor'],Xe=(_0x5be68f,_0x47ec48,_0x3366ea,_0x3b3131)=>{for(var _0x42123b=_0x3b3131>0x1?void 0x0:_0x3b3131?Qe(_0x47ec48,_0x3366ea):_0x47ec48,_0x134045=_0x5be68f['length']-0x1,_0x19eaae;_0x134045>=0x0;_0x134045--)(_0x19eaae=_0x5be68f[_0x134045])&&(_0x42123b=(_0x3b3131?_0x19eaae(_0x47ec48,_0x3366ea,_0x42123b):_0x19eaae(_0x42123b))||_0x42123b);return _0x3b3131&&_0x42123b&&Je(_0x47ec48,_0x3366ea,_0x42123b),_0x42123b;},g=(_0x36f2fb,_0x449945)=>(_0x1a35ff,_0x19c461)=>_0x449945(_0x1a35ff,_0x19c461,_0x36f2fb);const ei=_0x2c1c65(0x1cc),$='UNIVER_CONTAINER_ID',m=_0x2c1c65(0x1ce);let f=class extends _0x17f1c4{constructor(_0xdea5be,_0x596ec9,_0x27666e,_0x81e46e,_0x54f218,_0x5e3014,_0xb5bb0b,_0x2d6646,_0x1250de){var _0x422232=_0x2c1c65;super(),d(this,_0x422232(0x1b3),null),d(this,_0x422232(0x1cb),new _0x59f159()),d(this,_0x422232(0x1d6),new Map()),(this[_0x422232(0x1b6)]=_0xdea5be,this[_0x422232(0x1cd)]=_0x596ec9,this[_0x422232(0x1d7)]=_0x27666e,this[_0x422232(0x1c2)]=_0x81e46e,this[_0x422232(0x1ca)]=_0x54f218,this['_permissionService']=_0x5e3014,this[_0x422232(0x1c0)]=_0xb5bb0b,this[_0x422232(0x20f)]=_0x2d6646,this[_0x422232(0x185)]=_0x1250de,this[_0x422232(0x1c5)]());}[_0x2c1c65(0x1c5)](){var _0x2e3c2a=_0x2c1c65;this[_0x2e3c2a(0x1ed)](),this['_initPlugins']();}[_0x2c1c65(0x1ed)](){var _0x55bec1=_0x2c1c65,_0x53c8df;const _0x534870=(_0x53c8df=this[_0x55bec1(0x1d7)][_0x55bec1(0x204)]($))!=null?_0x53c8df:ei,_0xae7f3b=document[_0x55bec1(0x1cf)](_0x534870);if(!_0xae7f3b)return;const _0x95e366=document[_0x55bec1(0x1fc)](_0x55bec1(0x1ec));_0x95e366['id']=m,_0x95e366['style'][_0x55bec1(0x1d1)]=_0x55bec1(0x1d8),_0x95e366[_0x55bec1(0x180)][_0x55bec1(0x17d)]='0',_0x95e366[_0x55bec1(0x180)][_0x55bec1(0x1a6)]='0',_0x95e366[_0x55bec1(0x180)][_0x55bec1(0x1dd)]=_0x55bec1(0x220),_0x95e366['style'][_0x55bec1(0x1d0)]='100%',_0x95e366[_0x55bec1(0x180)]['zIndex']=_0x55bec1(0x1ea),_0x95e366[_0x55bec1(0x180)][_0x55bec1(0x213)]=_0x55bec1(0x206),_0xae7f3b[_0x55bec1(0x225)](_0x95e366);}[_0x2c1c65(0x19e)](){var _0x1325f4=_0x2c1c65,_0x15f6ef;[[_0x5e983c,{'override':[[_0x54123c,null]]}],[_0x9db39,{'hasScroll':!0x1}],[_0x252514],[_0x1afc17],[_0x777906,{'container':m,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x24db1f,null]]}],[_0x9c72f,{'notExecuteFormula':!0x0}],[_0x39cabd],[_0xb2d97d],[_0x4f5667],[_0x4d915d],[_0x3ee6a1],[_0x44882b],[_0x48872c],[_0x5073b7],[_0x101fe8],[_0x469927],[_0x57d681],[_0x4b21a2,{'notExecuteFormula':!0x0}],[_0x1a041b],[_0x19aff6,{'workerURL':_0x1325f4(0x1c1)}],[_0x4684c6],[_0x136cc6],[_0xec195c],[_0x427329,{'notExecuteFormula':!0x0}],[_0x5e3ec4,{'historyListServerUrl':(_0x15f6ef=this['_configService'][_0x1325f4(0x204)](A))==null?void 0x0:_0x15f6ef['historyListServerUrl']}]][_0x1325f4(0x1bd)](([_0x309c4b,_0x181585])=>this[_0x1325f4(0x222)](_0x309c4b,_0x181585));}[_0x2c1c65(0x215)](){var _0xd68175=_0x2c1c65;super[_0xd68175(0x215)](),this[_0xd68175(0x197)](),this[_0xd68175(0x1d6)][_0xd68175(0x20d)]();}[_0x2c1c65(0x222)](_0x2e1b04,_0x414eed,_0x4e31af){var _0x5a70ca=_0x2c1c65;if(this['_pluginMap'][_0x5a70ca(0x1ff)](_0x2e1b04['pluginName'])&&!_0x4e31af)throw new Error(_0x5a70ca(0x182)+_0x2e1b04['pluginName']+_0x5a70ca(0x224));this[_0x5a70ca(0x1d6)][_0x5a70ca(0x19c)](_0x2e1b04['pluginName'],[_0x2e1b04,_0x414eed]);}[_0x2c1c65(0x217)](){var _0x60392a=_0x2c1c65;return Array[_0x60392a(0x1be)](this[_0x60392a(0x1d6)][_0x60392a(0x20c)]());}[_0x2c1c65(0x1b1)](_0x793d51){var _0x28bbb2=_0x2c1c65;const _0x4b9a3e=document[_0x28bbb2(0x1cf)](m);_0x4b9a3e&&(_0x4b9a3e[_0x28bbb2(0x180)][_0x28bbb2(0x213)]=_0x28bbb2(0x195),this['_initUniver'](_0x793d51,m));}[_0x2c1c65(0x197)](){var _0x3a8c61=_0x2c1c65,_0x249898;this[_0x3a8c61(0x1cb)][_0x3a8c61(0x215)](),(_0x249898=this[_0x3a8c61(0x1b3)])==null||_0x249898[_0x3a8c61(0x215)](),this[_0x3a8c61(0x1b3)]=null;const _0x40e3f3=document['getElementById'](m);_0x40e3f3&&(_0x40e3f3[_0x3a8c61(0x180)][_0x3a8c61(0x213)]=_0x3a8c61(0x206));}['_initUniver'](_0x12afd1,_0x1ef9e3){var _0x37db39=_0x2c1c65;if(this[_0x37db39(0x1b3)])return;const _0x40bded=new _0x9e01b3({'theme':_0x47b8df,'locales':{[this['_localeService'][_0x37db39(0x1f6)]()]:this[_0x37db39(0x1b6)][_0x37db39(0x1c9)]()},'override':[[_0xe642bc,null]]});this[_0x37db39(0x1b3)]=_0x40bded;const _0x66c05b=_0x40bded[_0x37db39(0x181)]();_0x66c05b[_0x37db39(0x1ae)](_0x4cb3ef)['setLocale'](this['_localeService']['getCurrentLocale']()),_0x66c05b[_0x37db39(0x1ae)](_0x13f896)[_0x37db39(0x219)](_0x3c4e8c,this[_0x37db39(0x1d7)]['getConfig'](_0x3c4e8c)),this[_0x37db39(0x1d6)]['forEach'](([_0x4e379f,_0x2dd046])=>{var _0x2dfa17=_0x37db39;_0x40bded[_0x2dfa17(0x222)](_0x4e379f,_0x2dd046);}),_0x66c05b[_0x37db39(0x21f)](_0x5306de=>{var _0x4dc8bb=_0x37db39;this['_initListener'](_0x5306de,_0x12afd1),this[_0x4dc8bb(0x199)](_0x5306de,this[_0x4dc8bb(0x1ca)]);});const _0x21a734=_0x66c05b[_0x37db39(0x1ae)](_0x43e6a9),_0x1c9c83=this['_checkCanRevert'](_0x12afd1);_0x21a734[_0x37db39(0x21d)](_0x12afd1,_0x1ef9e3,_0x1c9c83);}[_0x2c1c65(0x1e3)](_0x49a1fd,_0x4292f2){var _0x122a80=_0x2c1c65;const _0x5cb328=_0x49a1fd[_0x122a80(0x1ae)](_0x43e6a9);this['_disposableCollection'][_0x122a80(0x218)](_0x5cb328['status$']['subscribe'](_0x1b985f=>{var _0x4ab010=_0x122a80;switch(_0x1b985f){case _0x192c93[_0x4ab010(0x1fd)]:this[_0x4ab010(0x20f)][_0x4ab010(0x1ab)](),this[_0x4ab010(0x185)][_0x4ab010(0x1b7)]();break;case _0x192c93[_0x4ab010(0x227)]:this['unMountHistoryContent']();break;case _0x192c93[_0x4ab010(0x18e)]:this[_0x4ab010(0x197)](),this[_0x4ab010(0x1ca)][_0x4ab010(0x193)]({'content':this[_0x4ab010(0x1b6)]['t']('editHistory.panel.listFetchError'),'type':_0x36d14a[_0x4ab010(0x18e)],'duration':0xbb8});break;}})),this[_0x122a80(0x1cb)][_0x122a80(0x218)](_0x5cb328[_0x122a80(0x1e2)][_0x122a80(0x1ad)](async _0x58f5a9=>{_0x58f5a9&&this['_commandService']['executeCommand'](_0x55f3ad['id'],{'unitId':_0x4292f2,'revision':_0x58f5a9});}));}[_0x2c1c65(0x199)](_0x5e56f0,_0x5b8a68){var _0x16e484=_0x2c1c65;const _0x273a63=_0x5e56f0[_0x16e484(0x1ae)](_0x264b82),_0x149718=_0x5b8a68[_0x16e484(0x17c)]();_0x149718&&_0x273a63[_0x16e484(0x1a5)](_0x149718);}[_0x2c1c65(0x1da)](_0x139566){var _0x497a22=_0x2c1c65;const _0x512dc3=this[_0x497a22(0x1cd)][_0x497a22(0x1e6)](_0x139566)[_0x497a22(0x210)]()[_0x497a22(0x1f5)](_0x2eadb8=>_0x2eadb8[_0x497a22(0x188)]()),_0x3f3545=new _0x5b9f95(_0x139566)['id'],_0x219b93=_0x512dc3['map'](_0x367f1a=>new _0x575cf3(_0x139566,_0x367f1a)['id']),_0x585819=_0x512dc3[_0x497a22(0x1f5)](_0x30a807=>this[_0x497a22(0x1c0)][_0x497a22(0x194)](_0x139566,_0x30a807)[_0x497a22(0x1f5)](_0x354d81=>new _0x2a28dd(_0x139566,_0x30a807,_0x354d81[_0x497a22(0x21e)])['id']))[_0x497a22(0x1d9)](),_0x190f7c=new _0x1c331b(_0x139566)['id'];return this[_0x497a22(0x1aa)][_0x497a22(0x1e1)]([_0x3f3545,..._0x219b93,..._0x585819,_0x190f7c])[_0x497a22(0x203)](_0x394328=>!!_0x394328['value']);}};f=Xe([_0x444294(_0x2dd76a[_0x2c1c65(0x183)],f),g(0x0,_0x25f146(_0x4cb3ef)),g(0x1,_0x4d5371),g(0x2,_0x13f896),g(0x3,_0x580ab2),g(0x4,_0x264b82),g(0x5,_0x31dfb8),g(0x6,_0x25f146(_0x1156c4)),g(0x7,_0x25f146(_0x24db1f)),g(0x8,_0x25f146(_0x3a8f9d))],f);var l=function(){var _0x47e61f=_0x2c1c65;return l=Object[_0x47e61f(0x1f1)]||function(_0x3e6af5){var _0x50d641=_0x47e61f;for(var _0x4443d0,_0x510e0a=0x1,_0x345a9f=arguments['length'];_0x510e0a<_0x345a9f;_0x510e0a++){_0x4443d0=arguments[_0x510e0a];for(var _0x40b7b7 in _0x4443d0)Object[_0x50d641(0x1ee)][_0x50d641(0x1a0)]['call'](_0x4443d0,_0x40b7b7)&&(_0x3e6af5[_0x40b7b7]=_0x4443d0[_0x40b7b7]);}return _0x3e6af5;},l[_0x47e61f(0x221)](this,arguments);},ii=function(_0x549a19,_0x73e17d){var _0x1a42ac=_0x2c1c65,_0x494acc={};for(var _0x4be25a in _0x549a19)Object[_0x1a42ac(0x1ee)]['hasOwnProperty'][_0x1a42ac(0x214)](_0x549a19,_0x4be25a)&&_0x73e17d[_0x1a42ac(0x211)](_0x4be25a)<0x0&&(_0x494acc[_0x4be25a]=_0x549a19[_0x4be25a]);if(_0x549a19!=null&&typeof Object[_0x1a42ac(0x186)]==_0x1a42ac(0x212)){for(var _0x2587b0=0x0,_0x4be25a=Object[_0x1a42ac(0x186)](_0x549a19);_0x2587b0<_0x4be25a[_0x1a42ac(0x190)];_0x2587b0++)_0x73e17d[_0x1a42ac(0x211)](_0x4be25a[_0x2587b0])<0x0&&Object[_0x1a42ac(0x1ee)]['propertyIsEnumerable'][_0x1a42ac(0x214)](_0x549a19,_0x4be25a[_0x2587b0])&&(_0x494acc[_0x4be25a[_0x2587b0]]=_0x549a19[_0x4be25a[_0x2587b0]]);}return _0x494acc;},V=_0x24b0e4(function(_0x473cd2,_0x256efc){var _0x4c120f=_0x2c1c65,_0xbe8732=_0x473cd2[_0x4c120f(0x1dc)],_0x25fcd4=_0x473cd2['id'],_0x1956d1=_0x473cd2[_0x4c120f(0x1a2)],_0xc85bc3=_0x473cd2[_0x4c120f(0x208)],_0xd1283a=ii(_0x473cd2,['icon','id',_0x4c120f(0x1a2),'extend']),_0x293c6d=_0x4c120f(0x20b)[_0x4c120f(0x1de)](_0x25fcd4,'\x20')[_0x4c120f(0x1de)](_0x1956d1||'')[_0x4c120f(0x1e7)](),_0x8b7936=_0x3f4542('_'['concat'](ni()));return F(_0xbe8732,''[_0x4c120f(0x1de)](_0x25fcd4),{'defIds':_0xbe8732['defIds'],'idSuffix':_0x8b7936[_0x4c120f(0x1a7)]},l({'ref':_0x256efc,'className':_0x293c6d},_0xd1283a),_0xc85bc3);});function F(_0x4bbf85,_0xedcae5,_0x4af76c,_0x3638da,_0x29273f){var _0x5b2ebb=_0x2c1c65;return _0x3bafdd(_0x4bbf85[_0x5b2ebb(0x1f8)],l(l({'key':_0xedcae5},ti(_0x4bbf85,_0x4af76c,_0x29273f)),_0x3638da),(ri(_0x4bbf85,_0x4af76c)['children']||[])['map'](function(_0x171ef5,_0x511c72){var _0x3c3a77=_0x5b2ebb;return F(_0x171ef5,''[_0x3c3a77(0x1de)](_0xedcae5,'-')[_0x3c3a77(0x1de)](_0x4bbf85[_0x3c3a77(0x1f8)],'-')[_0x3c3a77(0x1de)](_0x511c72),_0x4af76c,void 0x0,_0x29273f);}));}function ti(_0x3df8b7,_0x1eee75,_0x380a82){var _0x31d27f=_0x2c1c65,_0x32dc72=l({},_0x3df8b7[_0x31d27f(0x207)]);_0x380a82!=null&&_0x380a82[_0x31d27f(0x1c3)]&&_0x32dc72[_0x31d27f(0x1d4)]===_0x31d27f(0x1c3)&&(_0x32dc72[_0x31d27f(0x1d4)]=_0x380a82[_0x31d27f(0x1c3)]);var _0x2fa74c=_0x1eee75[_0x31d27f(0x1f2)];return!_0x2fa74c||_0x2fa74c[_0x31d27f(0x190)]===0x0||(_0x3df8b7[_0x31d27f(0x1f8)]===_0x31d27f(0x1d3)&&_0x32dc72[_0x31d27f(0x187)]&&(_0x32dc72[_0x31d27f(0x187)]=_0x32dc72[_0x31d27f(0x187)]+_0x1eee75[_0x31d27f(0x1fa)]),Object[_0x31d27f(0x1a9)](_0x32dc72)[_0x31d27f(0x1bd)](function(_0x544b8d){var _0x140e91=_0x31d27f,_0x14838b=_0x544b8d[0x0],_0x4b5d5f=_0x544b8d[0x1];typeof _0x4b5d5f==_0x140e91(0x223)&&(_0x32dc72[_0x14838b]=_0x4b5d5f[_0x140e91(0x18f)](/url\(#(.*)\)/,_0x140e91(0x184)['concat'](_0x1eee75['idSuffix'],')')));})),_0x32dc72;}function ri(_0x5d7dd4,_0xbc56f7){var _0x1dd62e=_0x2c1c65,_0x35c01a,_0x1e40b1=_0xbc56f7['defIds'];return!_0x1e40b1||_0x1e40b1['length']===0x0?_0x5d7dd4:_0x5d7dd4[_0x1dd62e(0x1f8)]===_0x1dd62e(0x201)&&(!((_0x35c01a=_0x5d7dd4[_0x1dd62e(0x1c8)])===null||_0x35c01a===void 0x0)&&_0x35c01a[_0x1dd62e(0x190)])?l(l({},_0x5d7dd4),{'children':_0x5d7dd4[_0x1dd62e(0x1c8)]['map'](function(_0x2955de){var _0x5dd16f=_0x1dd62e;return typeof _0x2955de[_0x5dd16f(0x207)]['id']=='string'&&_0x1e40b1&&_0x1e40b1[_0x5dd16f(0x211)](_0x2955de[_0x5dd16f(0x207)]['id'])>-0x1?l(l({},_0x2955de),{'attrs':l(l({},_0x2955de[_0x5dd16f(0x207)]),{'id':_0x2955de[_0x5dd16f(0x207)]['id']+_0xbc56f7[_0x5dd16f(0x1fa)]})}):_0x2955de;})}):_0x5d7dd4;}function ni(){var _0x9be40f=_0x2c1c65;return Math[_0x9be40f(0x1eb)]()[_0x9be40f(0x1a3)](0x24)[_0x9be40f(0x1bf)](0x2,0x8);}V[_0x2c1c65(0x18c)]=_0x2c1c65(0x1b4);var oi={'tag':_0x2c1c65(0x205),'attrs':{'fill':_0x2c1c65(0x206),'viewBox':_0x2c1c65(0x1e8),'width':_0x2c1c65(0x1f3),'height':_0x2c1c65(0x1f3)},'children':[{'tag':'g','attrs':{'fill':'currentColor','clipPath':_0x2c1c65(0x1b9)},'children':[{'tag':_0x2c1c65(0x1df),'attrs':{'d':_0x2c1c65(0x19a)}},{'tag':'path','attrs':{'d':_0x2c1c65(0x1b2)}}]},{'tag':_0x2c1c65(0x201),'attrs':{},'children':[{'tag':_0x2c1c65(0x1ef),'attrs':{'id':_0x2c1c65(0x18a)},'children':[{'tag':'path','attrs':{'fill':_0x2c1c65(0x1f0),'d':_0x2c1c65(0x1ba)}}]}]}],'defIds':[_0x2c1c65(0x18a)]},W=_0x24b0e4(function(_0x37b64e,_0x2295ac){var _0x367e8d=_0x2c1c65;return _0x3bafdd(V,Object['assign']({},_0x37b64e,{'id':_0x367e8d(0x198),'ref':_0x2295ac,'icon':oi}));});function _0x4856(_0xd37fe9,_0x31c6f4){var _0x1a0dc3=_0x1a0d();return _0x4856=function(_0x485649,_0x29331c){_0x485649=_0x485649-0x17a;var _0x16096b=_0x1a0dc3[_0x485649];return _0x16096b;},_0x4856(_0xd37fe9,_0x31c6f4);}W[_0x2c1c65(0x18c)]='HistorySingle';const E={'id':_0x2c1c65(0x1a8),'type':_0x290249[_0x2c1c65(0x21c)],'handler':_0x346c38=>{var _0x5101f0=_0x2c1c65;const _0x5404ad=_0x346c38[_0x5101f0(0x1ae)](f),_0x3bdc9e=_0x346c38['get'](_0x4d5371),{unitId:_0x275b3e}=_0x23a78c(_0x3bdc9e)||{};return _0x275b3e?(_0x5404ad['mountHistoryContent'](_0x275b3e),!0x0):!0x1;}},Y=_0x2c1c65(0x1fe);function si(_0x50cea3){var _0x14647b=_0x2c1c65;return{'id':E['id'],'type':_0x534d44[_0x14647b(0x1e5)],'icon':Y,'tooltip':_0x14647b(0x1fb),'hidden$':_0x48c92f(_0x50cea3,_0x191b9f[_0x14647b(0x1c4)]),'disabled$':_0x330173(_0x50cea3,{'workbookTypes':[_0x5b9f95,_0x2edf69],'worksheetTypes':[],'rangeTypes':[]})};}const ai={[_0x24549f[_0x2c1c65(0x1db)]]:{[E['id']]:{'order':0x0,'menuItemFactory':si}}};var ci=Object[_0x2c1c65(0x202)],li=Object[_0x2c1c65(0x1d2)],ui=(_0x4b9671,_0x1bf625,_0x1c9bdc,_0x580026)=>{for(var _0x2950ba=_0x580026>0x1?void 0x0:_0x580026?li(_0x1bf625,_0x1c9bdc):_0x1bf625,_0x2e2305=_0x4b9671['length']-0x1,_0x56d780;_0x2e2305>=0x0;_0x2e2305--)(_0x56d780=_0x4b9671[_0x2e2305])&&(_0x2950ba=(_0x580026?_0x56d780(_0x1bf625,_0x1c9bdc,_0x2950ba):_0x56d780(_0x2950ba))||_0x2950ba);return _0x580026&&_0x2950ba&&ci(_0x1bf625,_0x1c9bdc,_0x2950ba),_0x2950ba;},h=(_0x1e96b3,_0x32614b)=>(_0xa5a9f1,_0x5cc8b6)=>_0x32614b(_0xa5a9f1,_0x5cc8b6,_0x1e96b3);let p=class extends _0x297ffb{constructor(_0x4380ec,_0x3fac1b,_0x2bf25f,_0x97a035,_0x3c85b5,_0x1162d3,_0x3362ac,_0x1516eb){var _0x119350=_0x2c1c65;super(),d(this,_0x119350(0x1e0),null),(this[_0x119350(0x1c2)]=_0x4380ec,this[_0x119350(0x228)]=_0x3fac1b,this[_0x119350(0x1f9)]=_0x2bf25f,this[_0x119350(0x21a)]=_0x97a035,this[_0x119350(0x1b6)]=_0x3c85b5,this['_messageService']=_0x1162d3,this[_0x119350(0x1d5)]=_0x3362ac,this[_0x119350(0x20e)]=_0x1516eb,this['_init']());}[_0x2c1c65(0x1c5)](){var _0x2885c0=_0x2c1c65;[E][_0x2885c0(0x1bd)](_0xfde38f=>this[_0x2885c0(0x1e9)](_0x52bc3b(this['_commandService'][_0x2885c0(0x1bb)](_0xfde38f)))),this[_0x2885c0(0x1e9)](this[_0x2885c0(0x1f9)][_0x2885c0(0x189)](Y,W)),this[_0x2885c0(0x228)][_0x2885c0(0x192)](ai),this[_0x2885c0(0x1e9)](this[_0x2885c0(0x1c2)]['onCommandExecuted'](_0xb705a0=>{var _0x5c6b0d=_0x2885c0;if(_0xb705a0['id']===_0x55f3ad['id']){this[_0x5c6b0d(0x1ca)]['show']({'content':this[_0x5c6b0d(0x1b6)]['t']('editHistory.panel.reverting'),'type':_0x36d14a[_0x5c6b0d(0x19b)],'duration':0x1388});const {unitId:_0x538300}=_0xb705a0[_0x5c6b0d(0x1b8)],_0x189dd0=this[_0x5c6b0d(0x1d5)][_0x5c6b0d(0x19d)](_0x538300),_0x236641=_0x5a6473([_0x189dd0[_0x5c6b0d(0x1af)][_0x5c6b0d(0x226)],_0x189dd0[_0x5c6b0d(0x18d)]])[_0x5c6b0d(0x1ad)](async([_0x258a47,_0x330f92])=>{var _0x254fcf=_0x5c6b0d;_0x258a47[_0x254fcf(0x20a)]===_0x49243c[_0x254fcf(0x1ac)]&&(_0x330f92==null?void 0x0:_0x330f92['status'])===_0x3a5f27[_0x254fcf(0x191)]&&_0x258a47[_0x254fcf(0x1c7)][_0x254fcf(0x17e)][_0x254fcf(0x17f)](_0x2cb41e=>_0x2cb41e['id']===_0x55f3ad['id'])&&(this[_0x254fcf(0x21a)][_0x254fcf(0x197)](),_0x236641[_0x254fcf(0x19f)](),this[_0x254fcf(0x1e0)]&&clearTimeout(this['_revertErrorTimer']),await this['_localCacheService'][_0x254fcf(0x1bc)](),setTimeout(()=>window[_0x254fcf(0x17a)][_0x254fcf(0x1b0)]()));});this[_0x5c6b0d(0x1e0)]=setTimeout(()=>{var _0x538810=_0x5c6b0d;_0x236641[_0x538810(0x19f)](),this[_0x538810(0x1ca)][_0x538810(0x193)]({'content':this['_localeService']['t']('editHistory.panel.revertFailed'),'type':_0x36d14a[_0x538810(0x18e)],'duration':0xbb8});},0x1388);}}));}};p=ui([_0x444294(_0x2dd76a[_0x2c1c65(0x183)],p),h(0x0,_0x580ab2),h(0x1,_0xeb71e9),h(0x2,_0x25f146(_0x3dee78)),h(0x3,_0x25f146(f)),h(0x4,_0x25f146(_0x4cb3ef)),h(0x5,_0x264b82),h(0x6,_0x25f146(_0x4b3585)),h(0x7,_0x25f146(_0x43013e))],p);var gi=Object[_0x2c1c65(0x202)],vi=Object[_0x2c1c65(0x1d2)],hi=(_0x448e22,_0x3a00cf,_0x192db2,_0x543c8b)=>{var _0x59e027=_0x2c1c65;for(var _0x3437d4=_0x543c8b>0x1?void 0x0:_0x543c8b?vi(_0x3a00cf,_0x192db2):_0x3a00cf,_0x37e103=_0x448e22[_0x59e027(0x190)]-0x1,_0x30a923;_0x37e103>=0x0;_0x37e103--)(_0x30a923=_0x448e22[_0x37e103])&&(_0x3437d4=(_0x543c8b?_0x30a923(_0x3a00cf,_0x192db2,_0x3437d4):_0x30a923(_0x3437d4))||_0x3437d4);return _0x543c8b&&_0x3437d4&&gi(_0x3a00cf,_0x192db2,_0x3437d4),_0x3437d4;},O=(_0x35d2fd,_0x261bc8)=>(_0x14b90f,_0x2e88f3)=>_0x261bc8(_0x14b90f,_0x2e88f3,_0x35d2fd);const di='UNIVER_EDIT_HISTORY_LOADER_PLUGIN';var _;let R=(_=class extends _0x5cedfc{constructor(_0x230ca3=qe,_0x54ed0c,_0x50063f){var _0x583c50=_0x2c1c65;super(),this[_0x583c50(0x1f7)]=_0x230ca3,this[_0x583c50(0x200)]=_0x54ed0c,this['_configService']=_0x50063f;const {menu:_0x406b74,..._0xaa0d47}=this[_0x583c50(0x1f7)];_0x406b74&&this[_0x583c50(0x1d7)]['setConfig'](_0x583c50(0x17b),_0x406b74,{'merge':!0x0}),this['_configService'][_0x583c50(0x219)](A,_0xaa0d47),this['_config'][_0x583c50(0x1b5)]&&this[_0x583c50(0x1d7)][_0x583c50(0x219)]($,this[_0x583c50(0x1f7)][_0x583c50(0x1b5)]);}['onStarting'](){var _0x5e833f=_0x2c1c65;[[f],[p]][_0x5e833f(0x1bd)](_0xe50dc8=>this[_0x5e833f(0x200)][_0x5e833f(0x218)](_0xe50dc8));}},d(_,_0x2c1c65(0x196),_0x191b9f['UNIVER_UNKNOWN']),d(_,_0x2c1c65(0x1c6),di),_);R=hi([O(0x1,_0x25f146(_0x2b8534)),O(0x2,_0x13f896)],R);export{f as HistoryLoaderService,$ as UNIVER_CONTAINER_ID_KEY,m as UNIVER_HISTORY_CONTAINER_ID,R as UniverEditHistoryLoaderPlugin};
|
|
@@ -4,5 +4,10 @@ export declare const configSymbol: unique symbol;
|
|
|
4
4
|
export interface IUniverEditHistoryLoaderConfig {
|
|
5
5
|
menu?: MenuConfig;
|
|
6
6
|
univerContainerId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @description The server url of the history list
|
|
9
|
+
* @default ''
|
|
10
|
+
*/
|
|
11
|
+
historyListServerUrl?: string;
|
|
7
12
|
}
|
|
8
13
|
export declare const defaultPluginConfig: IUniverEditHistoryLoaderConfig;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
1
|
import { IUniverEditHistoryLoaderConfig } from './controllers/config.schema';
|
|
2
|
+
import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
export declare class UniverEditHistoryLoaderPlugin extends Plugin {
|
|
4
4
|
private readonly _config;
|
|
5
5
|
protected _injector: Injector;
|
|
@@ -23,7 +23,7 @@ export declare class HistoryLoaderService extends Disposable {
|
|
|
23
23
|
private _initPlugins;
|
|
24
24
|
dispose(): void;
|
|
25
25
|
registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
|
|
26
|
-
getAllPlugins(): [ctor: PluginCtor, config:
|
|
26
|
+
getAllPlugins(): [ctor: PluginCtor, config: object | undefined][];
|
|
27
27
|
mountHistoryContent(unitId: string): void;
|
|
28
28
|
unMountHistoryContent(): void;
|
|
29
29
|
private _initUniver;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3196(){var _0x33c144=['@univerjs/core','close','permissionId','clipPath','concat','UniverSheetsConditionalFormattingUIPlugin','_init','_historyManagerService','@univerjs-pro/sheets-pivot','@univerjs/engine-formula','@univerjs/drawing-ui','_univerInstanceService','OPERATION','@univerjs/docs','6RxjZjo','substring','history-single_clip0_907_281','UNIVER_CONTAINER_ID','_injector','@univerjs/rpc','UNIVER_SHEET','url(#history-single_clip0_907_281)','getSheetCommandTarget','toString','defineProperty','position','unsubscribe','RangeProtectionRuleModel','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','mountHistoryContent','status$','@univerjs/sheets-conditional-formatting-ui','every','createElement','getContainer','HistoryModeStatus','UniverDocsUi','disposeWithMe','editHistory.panel.revertFailed','Steady','getLocales','svg','current','ComponentManager','object','getMenuHiddenObservable','_messageService','@univerjs/sheets-hyper-link','HistoryLoaderService','OnLifecycle','UniverSheetsFilterPlugin','from','location','UniverSheetsConditionalFormattingUi','Univer','UniverSheetsConditionalFormatting','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','@univerjs/sheets-numfmt','IPermissionService','@univerjs/sheets','some','_disposableCollection','register','UniverRpc','Error','@univerjs/docs-ui','@univerjs/sheets-drawing-ui','@univerjs/sheets-filter','@univerjs/sheets-data-validation','IDialogService','1388616jjUuPL','greenTheme','@univerjs/drawing','11glhvZT','15868nnkwua','CollaborationEvent','_checkCanRevert','@univerjs/sheets-hyper-link-ui','IMenuManagerService','LifecycleStages','state$','RevertRevisionMutation','flat','editHistory.panel.reverting','children','entries','UniverDataValidationPlugin','1653245GYWlds','_sidebarService','1959xLfbrd','UniverSheetsDrawing','onCommandExecuted','CollaborationController','UniverDocs','displayName','UniverDesign','path','552mMUAyQ','params','div','edit-history-loader.config','_pluginMap','923103WIDIql','_initMessageService','pluginName','string','getOwnPropertyDescriptor','fill','IUniverInstanceService','getSheetId','top','get','colorChannel1','getCurrentLocale','invoke','ICommandService','has','UNIVER_HISTORY_CONTAINER_ID','call','left','_configService','UniverSheetsDataValidation','toDisposable','UniverFormulaEnginePlugin','UniverSheetsDrawingPlugin','trim','type','registerPlugin','value','@univerjs/engine-render','getAllPlugins','M0\x200H16V16H0z','\x20has\x20been\x20registered.','currentColor','Inject','_localCacheService','CollaborationStatus','block','replace','UniverIcon','UniverSheetsDrawingUIPlugin','UniverSheetsHyperLinkUIPlugin','event$','UniverSheetsPlugin','hasOwnProperty','Module','Disposable','2573144yrALPS','UniverEngineFormula','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','closeAll','univer-history-container','1em','display','RibbonStartGroup','0\x200\x2016\x2016','@univerjs-pro/edit-history-viewer','forwardRef','UniverSheetsFilterUIPlugin','UniverDrawing','12eOYpuM','@univerjs-pro/collaboration-client','@univerjs-pro/collaboration','@univerjs/sheets-conditional-formatting','indexOf','editHistory.panel.listFetchError','url(#$1','registerCommand','UniverSheetsUIPlugin','rxjs','getElementById','WorksheetEditPermission','@univerjs/sheets-ui','Entered','Exited','_historyUniver','_initPlugins','use','data','UniverSheetsHyperLinkPlugin','React','univer-container','UniverDrawingUIPlugin','@univerjs/ui','setConfig','defs','UniverEditHistoryLoaderPlugin','assign','WorkbookEditablePermission','@univerjs/design','_dialogService','show','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','xlink:href','onStarting','BUTTON','getOwnPropertySymbols','IConfigService','map','function','IAuthzIoService','set','editHistory.panel.title','random','idSuffix','@univerjs/data-validation','_permissionService','defIds','menu','mutations','forEach','MessageType','getSubunitRuleList','length','_selectionProtectionRuleModel','subscribe','__getInjector','_commandService','IMessageService','unMountHistoryContent','UniverEditHistoryViewer','react','_initListener','triggerLoadVersions','@univerjs/sheets-filter-ui','univerContainerId','UniverUi','_config','_initUniver','ISidebarService','UniverDocsPlugin','./worker.js','UniverCore','UniverSheetsPivotTablePlugin','_revertErrorTimer','4949030MpEiUd','UniverInstanceType','amd','prototype','extend','UniverSheetsPivot','toStringTag','RangeProtectionPermissionEditPoint','_localeService','tag','style','UniverDocsUIPlugin','#fff','add','UniverSheetsFormula','_componentManager','SYNCED','Injector','LocaleService','_menuManagerService','@univerjs/sheets-formula','dispose','DisposableCollection','propertyIsEnumerable','@univerjs/sheets-drawing','history-single','getConfig','HistorySingle','getUnit','getCurrentRangeDisable$','_initContainer','UniverDrawingUi','attrs','none','getSheets','icon','className','getCollabEntity','UniverDataValidation','appendChild','100%'];_0x3196=function(){return _0x33c144;};return _0x3196();}function _0x116e(_0x1729bb,_0x3d83e3){var _0x319629=_0x3196();return _0x116e=function(_0x116ec7,_0x206008){_0x116ec7=_0x116ec7-0x1b4;var _0x3b1b7d=_0x319629[_0x116ec7];return _0x3b1b7d;},_0x116e(_0x1729bb,_0x3d83e3);}(function(_0x565712,_0x238b54){var _0x2249f1=_0x116e,_0x58c033=_0x565712();while(!![]){try{var _0x5ee110=-parseInt(_0x2249f1(0x263))/0x1*(-parseInt(_0x2249f1(0x2b9))/0x2)+-parseInt(_0x2249f1(0x272))/0x3*(-parseInt(_0x2249f1(0x27a))/0x4)+parseInt(_0x2249f1(0x270))/0x5*(parseInt(_0x2249f1(0x226))/0x6)+parseInt(_0x2249f1(0x2ac))/0x7+-parseInt(_0x2249f1(0x25f))/0x8+parseInt(_0x2249f1(0x27f))/0x9+parseInt(_0x2249f1(0x1ef))/0xa*(-parseInt(_0x2249f1(0x262))/0xb);if(_0x5ee110===_0x238b54)break;else _0x58c033['push'](_0x58c033['shift']());}catch(_0x650d3d){_0x58c033['push'](_0x58c033['shift']());}}}(_0x3196,0x4d8d2),function(_0x3c9559,_0x5730d7){var _0x390a7a=_0x116e;typeof exports==_0x390a7a(0x244)&&typeof module<'u'?_0x5730d7(exports,require('@univerjs/core'),require(_0x390a7a(0x1c1)),require(_0x390a7a(0x225)),require(_0x390a7a(0x25a)),require(_0x390a7a(0x29a)),require(_0x390a7a(0x254)),require('@univerjs/sheets-ui'),require(_0x390a7a(0x1bb)),require('@univerjs-pro/edit-history-viewer'),require(_0x390a7a(0x2bb)),require(_0x390a7a(0x25c)),require(_0x390a7a(0x1e4)),require(_0x390a7a(0x2bc)),require(_0x390a7a(0x237)),require(_0x390a7a(0x247)),require(_0x390a7a(0x266)),require(_0x390a7a(0x1d1)),require(_0x390a7a(0x252)),require(_0x390a7a(0x203)),require(_0x390a7a(0x221)),require(_0x390a7a(0x22b)),require(_0x390a7a(0x25d)),require(_0x390a7a(0x222)),require(_0x390a7a(0x25b)),require('@univerjs/sheets-drawing'),require(_0x390a7a(0x261)),require(_0x390a7a(0x220)),require(_0x390a7a(0x2ba)),require(_0x390a7a(0x2c2)),require('react')):typeof define=='function'&&define[_0x390a7a(0x1f1)]?define(['exports',_0x390a7a(0x218),_0x390a7a(0x1c1),'@univerjs/docs',_0x390a7a(0x25a),_0x390a7a(0x29a),_0x390a7a(0x254),_0x390a7a(0x2c5),_0x390a7a(0x1bb),_0x390a7a(0x2b5),_0x390a7a(0x2bb),_0x390a7a(0x25c),_0x390a7a(0x1e4),_0x390a7a(0x2bc),_0x390a7a(0x237),_0x390a7a(0x247),_0x390a7a(0x266),_0x390a7a(0x1d1),_0x390a7a(0x252),'@univerjs/sheets-formula',_0x390a7a(0x221),_0x390a7a(0x22b),_0x390a7a(0x25d),_0x390a7a(0x222),_0x390a7a(0x25b),_0x390a7a(0x207),'@univerjs/drawing',_0x390a7a(0x220),'@univerjs-pro/collaboration-client',_0x390a7a(0x2c2),_0x390a7a(0x1e1)],_0x5730d7):(_0x3c9559=typeof globalThis<'u'?globalThis:_0x3c9559||self,_0x5730d7(_0x3c9559['UniverEditHistoryLoader']={},_0x3c9559[_0x390a7a(0x1ec)],_0x3c9559[_0x390a7a(0x278)],_0x3c9559[_0x390a7a(0x276)],_0x3c9559[_0x390a7a(0x23c)],_0x3c9559['UniverEngineRender'],_0x3c9559['UniverSheets'],_0x3c9559['UniverSheetsUi'],_0x3c9559[_0x390a7a(0x1e6)],_0x3c9559[_0x390a7a(0x1e0)],_0x3c9559['UniverCollaboration'],_0x3c9559['UniverSheetsFilter'],_0x3c9559['UniverSheetsFilterUi'],_0x3c9559[_0x390a7a(0x24f)],_0x3c9559[_0x390a7a(0x24d)],_0x3c9559['UniverSheetsHyperLink'],_0x3c9559['UniverSheetsHyperLinkUi'],_0x3c9559[_0x390a7a(0x215)],_0x3c9559['UniverSheetsNumfmt'],_0x3c9559[_0x390a7a(0x1fd)],_0x3c9559[_0x390a7a(0x2ad)],_0x3c9559[_0x390a7a(0x258)],_0x3c9559[_0x390a7a(0x292)],_0x3c9559[_0x390a7a(0x20e)],_0x3c9559['UniverSheetsDrawingUi'],_0x3c9559[_0x390a7a(0x273)],_0x3c9559[_0x390a7a(0x2b8)],_0x3c9559[_0x390a7a(0x1f4)],_0x3c9559['UniverCollaborationClient'],_0x3c9559['rxjs'],_0x3c9559[_0x390a7a(0x1b8)]));}(this,function(_0x21e81b,_0x14f4a1,_0x45cf1a,_0x454fff,_0x38c3d5,_0x5ac3a7,_0x229b1b,_0x9d3c7e,_0x2c7b66,_0x2aabb2,_0x41bc8b,_0x3d62c9,_0xdc4841,_0x304f37,_0x30aafc,_0x3d0c61,_0x1d868e,_0xe60e46,_0x324636,_0x20165a,_0x1a91c1,_0x2b5aad,_0x483430,_0x207c4c,_0x474b5b,_0x4d7a94,_0x27cb0c,_0x1a7b70,_0x32757e,_0x3c3e06,_0x36dd65){'use strict';var _0x5c9f45=_0x116e;var _0x394a76=Object['defineProperty'],_0x4acae6=(_0x1b0bca,_0x40d1e7,_0x54e247)=>_0x40d1e7 in _0x1b0bca?_0x394a76(_0x1b0bca,_0x40d1e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54e247}):_0x1b0bca[_0x40d1e7]=_0x54e247,_0x3f91ca=(_0x119981,_0x3571e2,_0x42ad32)=>_0x4acae6(_0x119981,typeof _0x3571e2!='symbol'?_0x3571e2+'':_0x3571e2,_0x42ad32),_0x3d1118,_0x3af885=Object[_0x5c9f45(0x230)],_0x27f6fb=Object['getOwnPropertyDescriptor'],_0xf5d5f6=(_0x26986f,_0x3ff624,_0x251815,_0x311a56)=>{for(var _0x33dbd4=_0x311a56>0x1?void 0x0:_0x311a56?_0x27f6fb(_0x3ff624,_0x251815):_0x3ff624,_0x453f99=_0x26986f['length']-0x1,_0x1e2b3e;_0x453f99>=0x0;_0x453f99--)(_0x1e2b3e=_0x26986f[_0x453f99])&&(_0x33dbd4=(_0x311a56?_0x1e2b3e(_0x3ff624,_0x251815,_0x33dbd4):_0x1e2b3e(_0x33dbd4))||_0x33dbd4);return _0x311a56&&_0x33dbd4&&_0x3af885(_0x3ff624,_0x251815,_0x33dbd4),_0x33dbd4;},_0x360ab7=(_0x514573,_0x5b94ef)=>(_0x2e8923,_0x275094)=>_0x5b94ef(_0x2e8923,_0x275094,_0x514573);const _0x47938b=_0x5c9f45(0x1b9),_0x59ed65=_0x5c9f45(0x229),_0x200ecd=_0x5c9f45(0x2b0);_0x21e81b[_0x5c9f45(0x248)]=class extends _0x14f4a1[_0x5c9f45(0x2ab)]{constructor(_0x24d155,_0x5a7937,_0x5d0962,_0x129a11,_0x5f2b8c,_0x12443e,_0x4f74c7,_0x50b8fc,_0x63ab0){var _0x456e32=_0x5c9f45;super(),_0x3f91ca(this,'_historyUniver',null),_0x3f91ca(this,_0x456e32(0x256),new _0x14f4a1[(_0x456e32(0x205))]()),_0x3f91ca(this,'_pluginMap',new Map()),(this['_localeService']=_0x24d155,this[_0x456e32(0x223)]=_0x5a7937,this[_0x456e32(0x291)]=_0x5d0962,this[_0x456e32(0x1dd)]=_0x129a11,this[_0x456e32(0x246)]=_0x5f2b8c,this[_0x456e32(0x1d2)]=_0x12443e,this['_selectionProtectionRuleModel']=_0x4f74c7,this[_0x456e32(0x1c2)]=_0x50b8fc,this[_0x456e32(0x271)]=_0x63ab0,this[_0x456e32(0x21e)]());}['_init'](){var _0x3861aa=_0x5c9f45;this[_0x3861aa(0x20d)](),this['_initPlugins']();}[_0x5c9f45(0x20d)](){var _0x3e7a6d=_0x5c9f45,_0x13cbc3;const _0x530073=(_0x13cbc3=this[_0x3e7a6d(0x291)][_0x3e7a6d(0x209)](_0x59ed65))!=null?_0x13cbc3:_0x47938b,_0x51eb7b=document[_0x3e7a6d(0x2c3)](_0x530073);if(!_0x51eb7b)return;const _0x366496=document[_0x3e7a6d(0x239)](_0x3e7a6d(0x27c));_0x366496['id']=_0x200ecd,_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x231)]='absolute',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x287)]='0',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x290)]='0',_0x366496[_0x3e7a6d(0x1f9)]['width']=_0x3e7a6d(0x217),_0x366496['style']['height']='100%',_0x366496[_0x3e7a6d(0x1f9)]['zIndex']='1000',_0x366496[_0x3e7a6d(0x1f9)][_0x3e7a6d(0x2b2)]=_0x3e7a6d(0x210),_0x51eb7b[_0x3e7a6d(0x216)](_0x366496);}[_0x5c9f45(0x1b4)](){var _0x209714=_0x5c9f45;[[_0x27cb0c['UniverDrawingPlugin'],{'override':[[_0x27cb0c['IImageIoService'],null]]}],[_0x454fff[_0x209714(0x1ea)],{'hasScroll':!0x1}],[_0x38c3d5[_0x209714(0x1fa)]],[_0x5ac3a7['UniverRenderEnginePlugin']],[_0x2c7b66['UniverUIPlugin'],{'container':_0x200ecd,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x2c7b66[_0x209714(0x25e)],null]]}],[_0x229b1b[_0x209714(0x2a8)],{'notExecuteFormula':!0x0}],[_0x9d3c7e[_0x209714(0x2c1)]],[_0x41bc8b['UniverCollaborationPlugin']],[_0x3d62c9[_0x209714(0x24a)]],[_0xdc4841[_0x209714(0x2b7)]],[_0x304f37['UniverSheetsConditionalFormattingPlugin']],[_0x30aafc[_0x209714(0x21d)]],[_0x3d0c61[_0x209714(0x1b7)]],[_0x1d868e[_0x209714(0x2a6)]],[_0xe60e46[_0x209714(0x26f)]],[_0x483430['UniverSheetsDataValidationPlugin']],[_0x324636['UniverSheetsNumfmtPlugin']],[_0x1a91c1[_0x209714(0x294)],{'notExecuteFormula':!0x0}],[_0x20165a['UniverSheetsFormulaPlugin']],[_0x2b5aad['UniverRPCMainThreadPlugin'],{'workerURL':_0x209714(0x1eb)}],[_0x207c4c[_0x209714(0x1ba)]],[_0x4d7a94[_0x209714(0x295)]],[_0x474b5b[_0x209714(0x2a5)]],[_0x1a7b70[_0x209714(0x1ed)],{'notExecuteFormula':!0x0}],[_0x2aabb2['UniverEditHistoryViewerPlugin']]]['forEach'](([_0x5e7b92,_0x5efecc])=>this['registerPlugin'](_0x5e7b92,_0x5efecc));}[_0x5c9f45(0x204)](){var _0x229533=_0x5c9f45;super[_0x229533(0x204)](),this[_0x229533(0x1df)](),this[_0x229533(0x27e)]['clear']();}[_0x5c9f45(0x298)](_0x1002cc,_0x46509b,_0x2ecd26){var _0x447b1f=_0x5c9f45;if(this[_0x447b1f(0x27e)][_0x447b1f(0x28d)](_0x1002cc['pluginName'])&&!_0x2ecd26)throw new Error('[HistoryLoaderService]:\x20Plugin\x20'+_0x1002cc[_0x447b1f(0x281)]+_0x447b1f(0x29d));this[_0x447b1f(0x27e)][_0x447b1f(0x1cd)](_0x1002cc[_0x447b1f(0x281)],[_0x1002cc,_0x46509b]);}[_0x5c9f45(0x29b)](){var _0x1673ab=_0x5c9f45;return Array[_0x1673ab(0x24b)](this[_0x1673ab(0x27e)]['values']());}[_0x5c9f45(0x235)](_0x1f0a1c){var _0x17a2c9=_0x5c9f45;const _0x4f37e8=document[_0x17a2c9(0x2c3)](_0x200ecd);_0x4f37e8&&(_0x4f37e8[_0x17a2c9(0x1f9)]['display']=_0x17a2c9(0x2a2),this[_0x17a2c9(0x1e8)](_0x1f0a1c,_0x200ecd));}[_0x5c9f45(0x1df)](){var _0x13bcaf=_0x5c9f45,_0x4f131a;this[_0x13bcaf(0x256)][_0x13bcaf(0x204)](),(_0x4f131a=this[_0x13bcaf(0x2c8)])==null||_0x4f131a['dispose'](),this['_historyUniver']=null;const _0x522c1a=document['getElementById'](_0x200ecd);_0x522c1a&&(_0x522c1a[_0x13bcaf(0x1f9)][_0x13bcaf(0x2b2)]=_0x13bcaf(0x210));}[_0x5c9f45(0x1e8)](_0x339e47,_0x2da20b){var _0x23d056=_0x5c9f45;if(this['_historyUniver'])return;const _0x4edb2e=new _0x14f4a1[(_0x23d056(0x24e))]({'theme':_0x45cf1a[_0x23d056(0x260)],'locales':{[this[_0x23d056(0x1f7)][_0x23d056(0x28a)]()]:this[_0x23d056(0x1f7)][_0x23d056(0x240)]()},'override':[[_0x14f4a1[_0x23d056(0x1cc)],null]]});this[_0x23d056(0x2c8)]=_0x4edb2e;const _0x5e514f=_0x4edb2e[_0x23d056(0x1dc)]();_0x5e514f[_0x23d056(0x288)](_0x14f4a1[_0x23d056(0x201)])['setLocale'](this[_0x23d056(0x1f7)]['getCurrentLocale']()),this['_pluginMap'][_0x23d056(0x1d6)](([_0xb4fd2f,_0x5171fb])=>{var _0x1b7c66=_0x23d056;_0x4edb2e[_0x1b7c66(0x298)](_0xb4fd2f,_0x5171fb);}),_0x5e514f[_0x23d056(0x28b)](_0x34c86e=>{var _0x3739f9=_0x23d056;this[_0x3739f9(0x1e2)](_0x34c86e,_0x339e47),this[_0x3739f9(0x280)](_0x34c86e,this[_0x3739f9(0x246)]);});const _0x22f301=_0x5e514f[_0x23d056(0x288)](_0x2aabb2['HistoryManagerService']),_0x6de89b=this['_checkCanRevert'](_0x339e47);_0x22f301[_0x23d056(0x1e3)](_0x339e47,_0x2da20b,_0x6de89b);}['_initListener'](_0xdc8862,_0x182955){var _0x531c77=_0x5c9f45;const _0x343cbc=_0xdc8862[_0x531c77(0x288)](_0x2aabb2['HistoryManagerService']);this['_disposableCollection']['add'](_0x343cbc[_0x531c77(0x236)]['subscribe'](_0x8e95f0=>{var _0x15a8c4=_0x531c77;switch(_0x8e95f0){case _0x2aabb2['HistoryModeStatus'][_0x15a8c4(0x2c6)]:this[_0x15a8c4(0x1c2)][_0x15a8c4(0x2af)](),this['_sidebarService'][_0x15a8c4(0x219)]();break;case _0x2aabb2[_0x15a8c4(0x23b)][_0x15a8c4(0x2c7)]:this['unMountHistoryContent']();break;case _0x2aabb2[_0x15a8c4(0x23b)][_0x15a8c4(0x259)]:this['unMountHistoryContent'](),this['_messageService'][_0x15a8c4(0x1c3)]({'content':this[_0x15a8c4(0x1f7)]['t'](_0x15a8c4(0x2be)),'type':_0x45cf1a[_0x15a8c4(0x1d7)][_0x15a8c4(0x259)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x531c77(0x1fc)](_0x343cbc['revertRevision$'][_0x531c77(0x1db)](async _0x3bcdb5=>{var _0x3b11fe=_0x531c77;_0x3bcdb5&&this[_0x3b11fe(0x1dd)]['executeCommand'](_0x41bc8b[_0x3b11fe(0x26a)]['id'],{'unitId':_0x182955,'revision':_0x3bcdb5});}));}[_0x5c9f45(0x280)](_0x2d0b7f,_0x194b7e){var _0x3be16b=_0x5c9f45;const _0x13ec3f=_0x2d0b7f['get'](_0x2c7b66[_0x3be16b(0x1de)]),_0x14014f=_0x194b7e[_0x3be16b(0x23a)]();_0x14014f&&_0x13ec3f['setContainer'](_0x14014f);}[_0x5c9f45(0x265)](_0x3fb76e){var _0x3e007d=_0x5c9f45;const _0x4e36fb=this[_0x3e007d(0x223)][_0x3e007d(0x20b)](_0x3fb76e)[_0x3e007d(0x211)]()[_0x3e007d(0x1ca)](_0x12edda=>_0x12edda[_0x3e007d(0x286)]()),_0x724a4c=new _0x229b1b[(_0x3e007d(0x1c0))](_0x3fb76e)['id'],_0x1e3d91=_0x4e36fb[_0x3e007d(0x1ca)](_0x313d5e=>new _0x229b1b[(_0x3e007d(0x2c4))](_0x3fb76e,_0x313d5e)['id']),_0x259af8=_0x4e36fb[_0x3e007d(0x1ca)](_0x46f6ac=>this[_0x3e007d(0x1da)][_0x3e007d(0x1d8)](_0x3fb76e,_0x46f6ac)[_0x3e007d(0x1ca)](_0x3739f0=>new _0x229b1b[(_0x3e007d(0x1f6))](_0x3fb76e,_0x46f6ac,_0x3739f0[_0x3e007d(0x21a)])['id']))[_0x3e007d(0x26b)](),_0x3362e6=new _0x229b1b['WorkbookRecoverHistoryPermission'](_0x3fb76e)['id'];return this[_0x3e007d(0x1d2)]['composePermission']([_0x724a4c,..._0x1e3d91,..._0x259af8,_0x3362e6])[_0x3e007d(0x238)](_0x288fca=>!!_0x288fca[_0x3e007d(0x299)]);}},_0x21e81b[_0x5c9f45(0x248)]=_0xf5d5f6([_0x14f4a1[_0x5c9f45(0x249)](_0x14f4a1['LifecycleStages'][_0x5c9f45(0x23f)],_0x21e81b[_0x5c9f45(0x248)]),_0x360ab7(0x0,_0x14f4a1[_0x5c9f45(0x29f)](_0x14f4a1[_0x5c9f45(0x201)])),_0x360ab7(0x1,_0x14f4a1[_0x5c9f45(0x285)]),_0x360ab7(0x2,_0x14f4a1['IConfigService']),_0x360ab7(0x3,_0x14f4a1[_0x5c9f45(0x28c)]),_0x360ab7(0x4,_0x2c7b66[_0x5c9f45(0x1de)]),_0x360ab7(0x5,_0x14f4a1[_0x5c9f45(0x253)]),_0x360ab7(0x6,_0x14f4a1['Inject'](_0x229b1b[_0x5c9f45(0x233)])),_0x360ab7(0x7,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x25e)])),_0x360ab7(0x8,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x1e9)]))],_0x21e81b['HistoryLoaderService']);var _0x1e7edf=function(){var _0x5119be=_0x5c9f45;return _0x1e7edf=Object[_0x5119be(0x1bf)]||function(_0x5c396d){var _0x473c72=_0x5119be;for(var _0xe5581d,_0x98b8dd=0x1,_0x56b3db=arguments[_0x473c72(0x1d9)];_0x98b8dd<_0x56b3db;_0x98b8dd++){_0xe5581d=arguments[_0x98b8dd];for(var _0x1e9f20 in _0xe5581d)Object[_0x473c72(0x1f2)][_0x473c72(0x2a9)][_0x473c72(0x28f)](_0xe5581d,_0x1e9f20)&&(_0x5c396d[_0x1e9f20]=_0xe5581d[_0x1e9f20]);}return _0x5c396d;},_0x1e7edf['apply'](this,arguments);},_0x3bf354=function(_0x20961a,_0xc5c901){var _0x2f0b11=_0x5c9f45,_0x3bf290={};for(var _0x99cf5b in _0x20961a)Object[_0x2f0b11(0x1f2)][_0x2f0b11(0x2a9)][_0x2f0b11(0x28f)](_0x20961a,_0x99cf5b)&&_0xc5c901['indexOf'](_0x99cf5b)<0x0&&(_0x3bf290[_0x99cf5b]=_0x20961a[_0x99cf5b]);if(_0x20961a!=null&&typeof Object['getOwnPropertySymbols']==_0x2f0b11(0x1cb)){for(var _0x52e81f=0x0,_0x99cf5b=Object[_0x2f0b11(0x1c8)](_0x20961a);_0x52e81f<_0x99cf5b[_0x2f0b11(0x1d9)];_0x52e81f++)_0xc5c901[_0x2f0b11(0x2bd)](_0x99cf5b[_0x52e81f])<0x0&&Object['prototype'][_0x2f0b11(0x206)][_0x2f0b11(0x28f)](_0x20961a,_0x99cf5b[_0x52e81f])&&(_0x3bf290[_0x99cf5b[_0x52e81f]]=_0x20961a[_0x99cf5b[_0x52e81f]]);}return _0x3bf290;},_0x312453=_0x36dd65[_0x5c9f45(0x2b6)](function(_0x565b96,_0x3e3dbc){var _0x4e5096=_0x5c9f45,_0x34e07d=_0x565b96[_0x4e5096(0x212)],_0x51a001=_0x565b96['id'],_0x448e0d=_0x565b96[_0x4e5096(0x213)],_0x40c2ef=_0x565b96[_0x4e5096(0x1f3)],_0x24be18=_0x3bf354(_0x565b96,[_0x4e5096(0x212),'id',_0x4e5096(0x213),'extend']),_0x366f49=_0x4e5096(0x250)[_0x4e5096(0x21c)](_0x51a001,'\x20')[_0x4e5096(0x21c)](_0x448e0d||'')[_0x4e5096(0x296)](),_0x4b5414=_0x36dd65['useRef']('_'[_0x4e5096(0x21c)](_0x3b39e3()));return _0x4e04c5(_0x34e07d,''[_0x4e5096(0x21c)](_0x51a001),{'defIds':_0x34e07d[_0x4e5096(0x1d3)],'idSuffix':_0x4b5414[_0x4e5096(0x242)]},_0x1e7edf({'ref':_0x3e3dbc,'className':_0x366f49},_0x24be18),_0x40c2ef);});function _0x4e04c5(_0x135446,_0x2dc9d9,_0x5d26d2,_0x25e987,_0x30add7){var _0x4af8ab=_0x5c9f45;return _0x36dd65[_0x4af8ab(0x239)](_0x135446[_0x4af8ab(0x1f8)],_0x1e7edf(_0x1e7edf({'key':_0x2dc9d9},_0x5d21e1(_0x135446,_0x5d26d2,_0x30add7)),_0x25e987),(_0x250be3(_0x135446,_0x5d26d2)['children']||[])[_0x4af8ab(0x1ca)](function(_0xeff3cf,_0x552bae){var _0x456afe=_0x4af8ab;return _0x4e04c5(_0xeff3cf,''[_0x456afe(0x21c)](_0x2dc9d9,'-')[_0x456afe(0x21c)](_0x135446[_0x456afe(0x1f8)],'-')[_0x456afe(0x21c)](_0x552bae),_0x5d26d2,void 0x0,_0x30add7);}));}function _0x5d21e1(_0x46b800,_0x1fcf89,_0x348ccb){var _0x4ffdaa=_0x5c9f45,_0x5582a6=_0x1e7edf({},_0x46b800['attrs']);_0x348ccb!=null&&_0x348ccb[_0x4ffdaa(0x289)]&&_0x5582a6[_0x4ffdaa(0x284)]===_0x4ffdaa(0x289)&&(_0x5582a6[_0x4ffdaa(0x284)]=_0x348ccb[_0x4ffdaa(0x289)]);var _0x5f336a=_0x1fcf89[_0x4ffdaa(0x1d3)];return!_0x5f336a||_0x5f336a[_0x4ffdaa(0x1d9)]===0x0||(_0x46b800[_0x4ffdaa(0x1f8)]===_0x4ffdaa(0x1b5)&&_0x5582a6[_0x4ffdaa(0x1c5)]&&(_0x5582a6[_0x4ffdaa(0x1c5)]=_0x5582a6[_0x4ffdaa(0x1c5)]+_0x1fcf89[_0x4ffdaa(0x1d0)]),Object[_0x4ffdaa(0x26e)](_0x5582a6)[_0x4ffdaa(0x1d6)](function(_0x537db5){var _0x5a9b12=_0x4ffdaa,_0x200f08=_0x537db5[0x0],_0x242fff=_0x537db5[0x1];typeof _0x242fff==_0x5a9b12(0x282)&&(_0x5582a6[_0x200f08]=_0x242fff[_0x5a9b12(0x2a3)](/url\(#(.*)\)/,_0x5a9b12(0x2bf)[_0x5a9b12(0x21c)](_0x1fcf89[_0x5a9b12(0x1d0)],')')));})),_0x5582a6;}function _0x250be3(_0x2a6d44,_0x29ad8c){var _0x3bdc68=_0x5c9f45,_0x408831,_0x3393c9=_0x29ad8c['defIds'];return!_0x3393c9||_0x3393c9[_0x3bdc68(0x1d9)]===0x0?_0x2a6d44:_0x2a6d44[_0x3bdc68(0x1f8)]===_0x3bdc68(0x1bd)&&(!((_0x408831=_0x2a6d44[_0x3bdc68(0x26d)])===null||_0x408831===void 0x0)&&_0x408831[_0x3bdc68(0x1d9)])?_0x1e7edf(_0x1e7edf({},_0x2a6d44),{'children':_0x2a6d44[_0x3bdc68(0x26d)][_0x3bdc68(0x1ca)](function(_0x867bb5){var _0x5ac29e=_0x3bdc68;return typeof _0x867bb5[_0x5ac29e(0x20f)]['id']==_0x5ac29e(0x282)&&_0x3393c9&&_0x3393c9[_0x5ac29e(0x2bd)](_0x867bb5[_0x5ac29e(0x20f)]['id'])>-0x1?_0x1e7edf(_0x1e7edf({},_0x867bb5),{'attrs':_0x1e7edf(_0x1e7edf({},_0x867bb5['attrs']),{'id':_0x867bb5['attrs']['id']+_0x29ad8c[_0x5ac29e(0x1d0)]})}):_0x867bb5;})}):_0x2a6d44;}function _0x3b39e3(){var _0xedbd22=_0x5c9f45;return Math[_0xedbd22(0x1cf)]()[_0xedbd22(0x22f)](0x24)[_0xedbd22(0x227)](0x2,0x8);}_0x312453[_0x5c9f45(0x277)]=_0x5c9f45(0x2a4);var _0x464c32={'tag':_0x5c9f45(0x241),'attrs':{'fill':'none','viewBox':_0x5c9f45(0x2b4),'width':_0x5c9f45(0x2b1),'height':_0x5c9f45(0x2b1)},'children':[{'tag':'g','attrs':{'fill':_0x5c9f45(0x29e),'clipPath':_0x5c9f45(0x22d)},'children':[{'tag':_0x5c9f45(0x279),'attrs':{'d':_0x5c9f45(0x234)}},{'tag':_0x5c9f45(0x279),'attrs':{'d':_0x5c9f45(0x2ae)}}]},{'tag':_0x5c9f45(0x1bd),'attrs':{},'children':[{'tag':_0x5c9f45(0x21b),'attrs':{'id':_0x5c9f45(0x228)},'children':[{'tag':'path','attrs':{'fill':_0x5c9f45(0x1fb),'d':_0x5c9f45(0x29c)}}]}]}],'defIds':['history-single_clip0_907_281']},_0x292456=_0x36dd65[_0x5c9f45(0x2b6)](function(_0x285db7,_0x1c108b){var _0x56dc3c=_0x5c9f45;return _0x36dd65[_0x56dc3c(0x239)](_0x312453,Object[_0x56dc3c(0x1bf)]({},_0x285db7,{'id':_0x56dc3c(0x208),'ref':_0x1c108b,'icon':_0x464c32}));});_0x292456[_0x5c9f45(0x277)]=_0x5c9f45(0x20a);const _0x198998={'id':'univer.operation.toggle-edit-history','type':_0x14f4a1['CommandType'][_0x5c9f45(0x224)],'handler':_0x18e25f=>{var _0x3ccdba=_0x5c9f45;const _0x29c906=_0x18e25f[_0x3ccdba(0x288)](_0x21e81b['HistoryLoaderService']),_0x19db3e=_0x18e25f['get'](_0x14f4a1['IUniverInstanceService']),{unitId:_0x387b0b}=_0x229b1b[_0x3ccdba(0x22e)](_0x19db3e)||{};return _0x387b0b?(_0x29c906[_0x3ccdba(0x235)](_0x387b0b),!0x0):!0x1;}},_0x1eb6de=_0x5c9f45(0x20a);function _0x3c2cae(_0x342c2a){var _0x173f32=_0x5c9f45;return{'id':_0x198998['id'],'type':_0x2c7b66['MenuItemType'][_0x173f32(0x1c7)],'icon':_0x1eb6de,'tooltip':_0x173f32(0x1ce),'hidden$':_0x2c7b66[_0x173f32(0x245)](_0x342c2a,_0x14f4a1[_0x173f32(0x1f0)][_0x173f32(0x22c)]),'disabled$':_0x9d3c7e[_0x173f32(0x20c)](_0x342c2a,{'workbookTypes':[_0x229b1b['WorkbookEditablePermission'],_0x229b1b['WorkbookViewHistoryPermission']],'worksheetTypes':[],'rangeTypes':[]})};}const _0x418a53={[_0x2c7b66[_0x5c9f45(0x2b3)]['OTHERS']]:{[_0x198998['id']]:{'order':0x0,'menuItemFactory':_0x3c2cae}}};var _0x143e53=Object[_0x5c9f45(0x230)],_0x24d4cc=Object['getOwnPropertyDescriptor'],_0xe908ce=(_0x4115ba,_0x549289,_0x201188,_0x4c22d4)=>{var _0x2c6d17=_0x5c9f45;for(var _0x3e44d8=_0x4c22d4>0x1?void 0x0:_0x4c22d4?_0x24d4cc(_0x549289,_0x201188):_0x549289,_0x347d8d=_0x4115ba[_0x2c6d17(0x1d9)]-0x1,_0x22745a;_0x347d8d>=0x0;_0x347d8d--)(_0x22745a=_0x4115ba[_0x347d8d])&&(_0x3e44d8=(_0x4c22d4?_0x22745a(_0x549289,_0x201188,_0x3e44d8):_0x22745a(_0x3e44d8))||_0x3e44d8);return _0x4c22d4&&_0x3e44d8&&_0x143e53(_0x549289,_0x201188,_0x3e44d8),_0x3e44d8;},_0x539e2e=(_0x278fbd,_0x2d04f9)=>(_0x580097,_0x5df13a)=>_0x2d04f9(_0x580097,_0x5df13a,_0x278fbd);let _0x21935f=class extends _0x14f4a1['RxDisposable']{constructor(_0x495c51,_0x4e04f1,_0x26cf98,_0x596bc6,_0x2d28ec,_0x28e6e9,_0x3e8615,_0x4602d7){var _0x1b4243=_0x5c9f45;super(),_0x3f91ca(this,'_revertErrorTimer',null),(this[_0x1b4243(0x1dd)]=_0x495c51,this[_0x1b4243(0x202)]=_0x4e04f1,this[_0x1b4243(0x1fe)]=_0x26cf98,this[_0x1b4243(0x21f)]=_0x596bc6,this[_0x1b4243(0x1f7)]=_0x2d28ec,this[_0x1b4243(0x246)]=_0x28e6e9,this['_collaborationController']=_0x3e8615,this['_localCacheService']=_0x4602d7,this[_0x1b4243(0x21e)]());}[_0x5c9f45(0x21e)](){var _0x59915d=_0x5c9f45;[_0x198998][_0x59915d(0x1d6)](_0x1f56ff=>this[_0x59915d(0x23d)](_0x14f4a1[_0x59915d(0x293)](this[_0x59915d(0x1dd)][_0x59915d(0x2c0)](_0x1f56ff)))),this[_0x59915d(0x23d)](this[_0x59915d(0x1fe)][_0x59915d(0x257)](_0x1eb6de,_0x292456)),this['_menuManagerService']['mergeMenu'](_0x418a53),this['disposeWithMe'](this[_0x59915d(0x1dd)][_0x59915d(0x274)](_0x549cec=>{var _0x780019=_0x59915d;if(_0x549cec['id']===_0x41bc8b[_0x780019(0x26a)]['id']){this['_messageService'][_0x780019(0x1c3)]({'content':this[_0x780019(0x1f7)]['t'](_0x780019(0x26c)),'type':_0x45cf1a[_0x780019(0x1d7)]['Loading'],'duration':0x1388});const {unitId:_0x1e01ab}=_0x549cec[_0x780019(0x27b)],_0x537d15=this['_collaborationController'][_0x780019(0x214)](_0x1e01ab),_0x409610=_0x3c3e06['combineLatest']([_0x537d15['session'][_0x780019(0x2a7)],_0x537d15[_0x780019(0x269)]])[_0x780019(0x1db)](async([_0x4c2c49,_0x3d80ca])=>{var _0x24ad84=_0x780019;_0x4c2c49['eventID']===_0x41bc8b[_0x24ad84(0x264)]['CHANGESET_ACK']&&(_0x3d80ca==null?void 0x0:_0x3d80ca['status'])===_0x32757e[_0x24ad84(0x2a1)][_0x24ad84(0x1ff)]&&_0x4c2c49[_0x24ad84(0x1b6)][_0x24ad84(0x1d5)][_0x24ad84(0x255)](_0x4a87f6=>_0x4a87f6['id']===_0x41bc8b['RevertRevisionMutation']['id'])&&(this['_historyManagerService'][_0x24ad84(0x1df)](),_0x409610[_0x24ad84(0x232)](),this[_0x24ad84(0x1ee)]&&clearTimeout(this[_0x24ad84(0x1ee)]),await this[_0x24ad84(0x2a0)]['exhaustSavingTask'](),setTimeout(()=>window[_0x24ad84(0x24c)]['reload']()));});this[_0x780019(0x1ee)]=setTimeout(()=>{var _0x553975=_0x780019;_0x409610[_0x553975(0x232)](),this[_0x553975(0x246)][_0x553975(0x1c3)]({'content':this[_0x553975(0x1f7)]['t'](_0x553975(0x23e)),'type':_0x45cf1a[_0x553975(0x1d7)]['Error'],'duration':0xbb8});},0x1388);}}));}};_0x21935f=_0xe908ce([_0x14f4a1[_0x5c9f45(0x249)](_0x14f4a1[_0x5c9f45(0x268)]['Steady'],_0x21935f),_0x539e2e(0x0,_0x14f4a1[_0x5c9f45(0x28c)]),_0x539e2e(0x1,_0x2c7b66[_0x5c9f45(0x267)]),_0x539e2e(0x2,_0x14f4a1[_0x5c9f45(0x29f)](_0x2c7b66[_0x5c9f45(0x243)])),_0x539e2e(0x3,_0x14f4a1[_0x5c9f45(0x29f)](_0x21e81b[_0x5c9f45(0x248)])),_0x539e2e(0x4,_0x14f4a1['Inject'](_0x14f4a1[_0x5c9f45(0x201)])),_0x539e2e(0x5,_0x2c7b66[_0x5c9f45(0x1de)]),_0x539e2e(0x6,_0x14f4a1[_0x5c9f45(0x29f)](_0x32757e[_0x5c9f45(0x275)])),_0x539e2e(0x7,_0x14f4a1[_0x5c9f45(0x29f)](_0x32757e['LocalCacheService']))],_0x21935f);const _0x2c05d9=_0x5c9f45(0x27d),_0x450150={};var _0x147c7e=Object['defineProperty'],_0x2e3fc7=Object[_0x5c9f45(0x283)],_0x2414f6=(_0x5e2feb,_0x2f1832,_0x5d7919,_0x5e9c4c)=>{for(var _0xa5a914=_0x5e9c4c>0x1?void 0x0:_0x5e9c4c?_0x2e3fc7(_0x2f1832,_0x5d7919):_0x2f1832,_0x54efda=_0x5e2feb['length']-0x1,_0x5c6ba4;_0x54efda>=0x0;_0x54efda--)(_0x5c6ba4=_0x5e2feb[_0x54efda])&&(_0xa5a914=(_0x5e9c4c?_0x5c6ba4(_0x2f1832,_0x5d7919,_0xa5a914):_0x5c6ba4(_0xa5a914))||_0xa5a914);return _0x5e9c4c&&_0xa5a914&&_0x147c7e(_0x2f1832,_0x5d7919,_0xa5a914),_0xa5a914;},_0xeceecf=(_0x5cf4a1,_0x2d9086)=>(_0x1e868e,_0x58c823)=>_0x2d9086(_0x1e868e,_0x58c823,_0x5cf4a1);const _0x33e712=_0x5c9f45(0x1c4);_0x21e81b['UniverEditHistoryLoaderPlugin']=(_0x3d1118=class extends _0x14f4a1['Plugin']{constructor(_0x56c089=_0x450150,_0x30dcd1,_0xab2cc9){var _0x192a74=_0x5c9f45;super(),this[_0x192a74(0x1e7)]=_0x56c089,this['_injector']=_0x30dcd1,this[_0x192a74(0x291)]=_0xab2cc9;const {menu:_0x2e6a56,..._0x4e3311}=this[_0x192a74(0x1e7)];_0x2e6a56&&this[_0x192a74(0x291)][_0x192a74(0x1bc)](_0x192a74(0x1d4),_0x2e6a56,{'merge':!0x0}),this[_0x192a74(0x291)][_0x192a74(0x1bc)](_0x2c05d9,_0x4e3311),this[_0x192a74(0x1e7)][_0x192a74(0x1e5)]&&this[_0x192a74(0x291)]['setConfig'](_0x59ed65,this[_0x192a74(0x1e7)]['univerContainerId']);}[_0x5c9f45(0x1c6)](){var _0x1ed5e1=_0x5c9f45;[[_0x21e81b[_0x1ed5e1(0x248)]],[_0x21935f]][_0x1ed5e1(0x1d6)](_0x297aca=>this[_0x1ed5e1(0x22a)][_0x1ed5e1(0x1fc)](_0x297aca));}},_0x3f91ca(_0x3d1118,_0x5c9f45(0x297),_0x14f4a1[_0x5c9f45(0x1f0)][_0x5c9f45(0x251)]),_0x3f91ca(_0x3d1118,_0x5c9f45(0x281),_0x33e712),_0x3d1118),_0x21e81b[_0x5c9f45(0x1be)]=_0x2414f6([_0xeceecf(0x1,_0x14f4a1[_0x5c9f45(0x29f)](_0x14f4a1[_0x5c9f45(0x200)])),_0xeceecf(0x2,_0x14f4a1[_0x5c9f45(0x1c9)])],_0x21e81b['UniverEditHistoryLoaderPlugin']),_0x21e81b['UNIVER_CONTAINER_ID_KEY']=_0x59ed65,_0x21e81b[_0x5c9f45(0x28e)]=_0x200ecd,Object['defineProperty'](_0x21e81b,Symbol[_0x5c9f45(0x1f5)],{'value':_0x5c9f45(0x2aa)});}));
|
|
1
|
+
function _0x4d89(_0x3a34c9,_0x1649ec){var _0x28f5b7=_0x28f5();return _0x4d89=function(_0x4d8912,_0x555099){_0x4d8912=_0x4d8912-0x16c;var _0x41bb72=_0x28f5b7[_0x4d8912];return _0x41bb72;},_0x4d89(_0x3a34c9,_0x1649ec);}function _0x28f5(){var _0x3623e2=['Univer','@univerjs/sheets-drawing','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','ICommandService','879858qfxKtk','RevertRevisionMutation','UniverDocsUi','getElementById','exports','registerPlugin','UniverSheetsDataValidation','@univerjs/sheets-conditional-formatting','univerjs-icon\x20univerjs-icon-','CollaborationController','UNIVER_CONTAINER_ID','zIndex','@univerjs-pro/sheets-pivot','toStringTag','@univerjs/sheets-conditional-formatting-ui','width','UniverRpc','_initPlugins','event$','MessageType','UniverSheetsDrawingPlugin','register','@univerjs/data-validation','_revertErrorTimer','UNIVER_SHEET','show','@univerjs/sheets-data-validation','mountHistoryContent','UniverSheetsHyperLinkUIPlugin','editHistory.panel.revertFailed','_historyManagerService','6009048BIrAlR','0\x200\x2016\x2016','1000','getConfig','@univerjs/sheets-filter','IDialogService','UNIVER_HISTORY_CONTAINER_ID','onStarting','UniverSheetsUIPlugin','toString','UniverSheetsUi','exhaustSavingTask','_init','forwardRef','_initContainer','@univerjs/drawing-ui','_selectionProtectionRuleModel','icon','UniverDocs','./worker.js','UniverEditHistoryLoader','@univerjs-pro/collaboration','IUniverInstanceService','_collaborationController','session','MenuItemType','getCurrentLocale','@univerjs/drawing','__getInjector','className','react','UniverCollaboration','UniverSheetsFilter','ISidebarService','children','length','univer.operation.toggle-edit-history','_configService','_localCacheService','menu','toDisposable','getOwnPropertySymbols','@univerjs/sheets-formula','createElement','useRef','setContainer','UniverInstanceType','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','UniverCollaborationPlugin','combineLatest','status$','greenTheme','ComponentManager','history-single','UniverEditHistoryViewer','LocalCacheService','UniverRPCMainThreadPlugin','UniverSheets','defs','Loading','substring','univer-history-container','@univerjs/sheets-hyper-link','_menuManagerService','@univerjs-pro/edit-history-viewer','@univerjs/sheets-filter-ui','RangeProtectionRuleModel','flat','UniverSheetsConditionalFormattingUIPlugin','editHistory.panel.title','Module','path','WorksheetEditPermission','UniverEditHistoryLoaderPlugin','rxjs','@univerjs/docs-ui','IMenuManagerService','#fff','revertRevision$','value','@univerjs/rpc','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','subscribe','928502seVoUW','_messageService','UniverSheetsNumfmtPlugin','some','Exited','type','IConfigService','@univerjs/engine-formula','url(#history-single_clip0_907_281)','_permissionService','WorkbookEditablePermission','UniverSheetsConditionalFormatting','Entered','UniverDocsPlugin','IAuthzIoService','CHANGESET_ACK','indexOf','HistorySingle','100%','Inject','pluginName','UniverSheetsHyperLinkPlugin','idSuffix','displayName','@univerjs/design','@univerjs/sheets-drawing-ui','composePermission','UniverEditHistoryViewerPlugin','UniverSheetsDataValidationPlugin','currentColor','unMountHistoryContent','1em','@univerjs/docs','@univerjs/sheets','height','_disposableCollection','WorkbookViewHistoryPermission','UNIVER_EDIT_HISTORY_LOADER_PLUGIN','@univerjs/sheets-ui','unsubscribe','_dialogService','UniverSheetsDrawing','getContainer','setConfig','params','_historyUniver','data','CollaborationEvent','call','propertyIsEnumerable','reload','get','block','IPermissionService','SNAPSHOT_SERVER_URL_KEY','Disposable','@univerjs/sheets-numfmt','UniverSheetsFormula','attrs','history-single_clip0_907_281','112SSbFIU','HistoryModeStatus','Error','_initUniver','getLocales','current','getCollabEntity','RangeProtectionPermissionEditPoint','add','@univerjs/ui','assign','RxDisposable','hasOwnProperty','UNIVER_CONTAINER_ID_KEY','UniverSheetsPlugin','univer-container','_sidebarService','concat','OPERATION','left','UniverUIPlugin','OnLifecycle','UniverDrawingUi','permissionId','from','UniverSheetsConditionalFormattingPlugin','getUnit','@univerjs/engine-render','random','LocaleService','Plugin','_pluginMap','UniverEngineFormula','tag','setLocale','_commandService','defIds','defineProperty','_config','edit-history-loader.config','has','univerContainerId','UniverCollaborationClient','UniverDrawingPlugin','appendChild','mutations','React','_univerInstanceService','IMessageService','forEach','close','object','dispose','UniverSheetsFormulaPlugin','colorChannel1','location','\x20has\x20been\x20registered.','UniverSheetsDrawingUIPlugin','fill','UniverSheetsNumfmt','disposeWithMe','triggerLoadVersions','HistoryLoaderService','2418640aUvPIg','UniverSheetsDrawingUi','map','_checkCanRevert','HistoryManagerService','_componentManager','21203760HZxiDQ','@univerjs/sheets-hyper-link-ui','UniverIcon','UniverDesign','editHistory.panel.reverting','UniverRenderEnginePlugin','LifecycleStages','UniverSheetsFilterUIPlugin','style','invoke','prototype','getSubunitRuleList','UniverCore','apply','mergeMenu','[HistoryLoaderService]:\x20Plugin\x20','svg','function','CommandType','UniverDrawing','display','xlink:href','_localeService','UniverSheetsConditionalFormattingUi','UniverSheetsFilterPlugin','UniverSheetsPivotTablePlugin','_initMessageService','4509963bdpmTo','2540eOJONt','absolute','@univerjs/core','getSheets','none','url(#$1','historyListServerUrl','values','_injector','BUTTON'];_0x28f5=function(){return _0x3623e2;};return _0x28f5();}(function(_0x2f1394,_0x30673b){var _0x250828=_0x4d89,_0x589ca8=_0x2f1394();while(!![]){try{var _0x3a83d8=parseInt(_0x250828(0x1c8))/0x1+parseInt(_0x250828(0x23b))/0x2+parseInt(_0x250828(0x1b9))/0x3+parseInt(_0x250828(0x277))/0x4*(-parseInt(_0x250828(0x1ba))/0x5)+parseInt(_0x250828(0x1e7))/0x6+-parseInt(_0x250828(0x198))/0x7+-parseInt(_0x250828(0x19e))/0x8;if(_0x3a83d8===_0x30673b)break;else _0x589ca8['push'](_0x589ca8['shift']());}catch(_0xf91990){_0x589ca8['push'](_0x589ca8['shift']());}}}(_0x28f5,0xccc44),function(_0x212649,_0x2705b5){var _0x51e63b=_0x4d89;typeof exports==_0x51e63b(0x18c)&&typeof module<'u'?_0x2705b5(exports,require(_0x51e63b(0x1bc)),require('@univerjs/data-validation'),require(_0x51e63b(0x253)),require(_0x51e63b(0x25b)),require(_0x51e63b(0x232)),require(_0x51e63b(0x202)),require(_0x51e63b(0x1f6)),require(_0x51e63b(0x242)),require('@univerjs/engine-render'),require(_0x51e63b(0x237)),require(_0x51e63b(0x25c)),require(_0x51e63b(0x1cf)),require(_0x51e63b(0x1d6)),require('@univerjs/sheets-data-validation'),require(_0x51e63b(0x1c5)),require(_0x51e63b(0x254)),require(_0x51e63b(0x1eb)),require(_0x51e63b(0x228)),require(_0x51e63b(0x211)),require(_0x51e63b(0x225)),require('@univerjs/sheets-hyper-link-ui'),require('@univerjs/sheets-numfmt'),require(_0x51e63b(0x261)),require(_0x51e63b(0x280)),require(_0x51e63b(0x1fc)),require(_0x51e63b(0x238)),require(_0x51e63b(0x227)),require('@univerjs-pro/sheets-pivot'),require(_0x51e63b(0x231)),require(_0x51e63b(0x205))):typeof define==_0x51e63b(0x1af)&&define['amd']?define([_0x51e63b(0x1cc),'@univerjs/core',_0x51e63b(0x1de),_0x51e63b(0x253),_0x51e63b(0x25b),_0x51e63b(0x232),_0x51e63b(0x202),_0x51e63b(0x1f6),'@univerjs/engine-formula',_0x51e63b(0x174),_0x51e63b(0x237),_0x51e63b(0x25c),_0x51e63b(0x1cf),_0x51e63b(0x1d6),_0x51e63b(0x1e2),_0x51e63b(0x1c5),'@univerjs/sheets-drawing-ui','@univerjs/sheets-filter',_0x51e63b(0x228),_0x51e63b(0x211),_0x51e63b(0x225),_0x51e63b(0x19f),_0x51e63b(0x273),_0x51e63b(0x261),_0x51e63b(0x280),_0x51e63b(0x1fc),_0x51e63b(0x238),_0x51e63b(0x227),_0x51e63b(0x1d4),_0x51e63b(0x231),_0x51e63b(0x205)],_0x2705b5):(_0x212649=typeof globalThis<'u'?globalThis:_0x212649||self,_0x2705b5(_0x212649[_0x51e63b(0x1fb)]={},_0x212649[_0x51e63b(0x1aa)],_0x212649['UniverDataValidation'],_0x212649[_0x51e63b(0x1a1)],_0x212649[_0x51e63b(0x1f9)],_0x212649[_0x51e63b(0x1ca)],_0x212649[_0x51e63b(0x1b1)],_0x212649[_0x51e63b(0x16f)],_0x212649[_0x51e63b(0x179)],_0x212649['UniverEngineRender'],_0x212649[_0x51e63b(0x1d8)],_0x212649[_0x51e63b(0x220)],_0x212649[_0x51e63b(0x246)],_0x212649[_0x51e63b(0x1b5)],_0x212649[_0x51e63b(0x1ce)],_0x212649[_0x51e63b(0x264)],_0x212649[_0x51e63b(0x199)],_0x212649[_0x51e63b(0x207)],_0x212649['UniverSheetsFilterUi'],_0x212649[_0x51e63b(0x274)],_0x212649['UniverSheetsHyperLink'],_0x212649['UniverSheetsHyperLinkUi'],_0x212649[_0x51e63b(0x194)],_0x212649[_0x51e63b(0x1f1)],_0x212649['UniverUi'],_0x212649[_0x51e63b(0x206)],_0x212649[_0x51e63b(0x183)],_0x212649[_0x51e63b(0x21d)],_0x212649['UniverSheetsPivot'],_0x212649[_0x51e63b(0x231)],_0x212649[_0x51e63b(0x187)]));}(this,function(_0x7022aa,_0xe28b6f,_0x9fe2b2,_0x30aa98,_0x3e38a7,_0x51447d,_0x5962ec,_0x238d94,_0x15cc33,_0x219cc6,_0x7ffc6d,_0x12da06,_0x8ecbe3,_0x55702b,_0x3fe90d,_0x57ab5a,_0x326a1e,_0x2e04e8,_0x35cac6,_0x8be260,_0x3f8069,_0x378eee,_0x1b9396,_0x599b6b,_0x133b31,_0x4b74b9,_0x4b2ddc,_0x3e3850,_0x29b351,_0x52704d,_0x28c3bc){'use strict';var _0x242ecd=_0x4d89;var _0x18e625=Object['defineProperty'],_0x39fddb=(_0x25ea5f,_0x22e5c4,_0x2d4427)=>_0x22e5c4 in _0x25ea5f?_0x18e625(_0x25ea5f,_0x22e5c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d4427}):_0x25ea5f[_0x22e5c4]=_0x2d4427,_0x5da916=(_0x383444,_0x25f1a4,_0x3384b9)=>_0x39fddb(_0x383444,typeof _0x25f1a4!='symbol'?_0x25f1a4+'':_0x25f1a4,_0x3384b9),_0x317e64;const _0x23b76a=_0x242ecd(0x180),_0xca49c1={};var _0x440319=Object['defineProperty'],_0x43a2f8=Object[_0x242ecd(0x239)],_0x45ba3c=(_0x3878e2,_0x268ed3,_0x3b9093,_0x48035b)=>{var _0x3d9ce8=_0x242ecd;for(var _0x408e8a=_0x48035b>0x1?void 0x0:_0x48035b?_0x43a2f8(_0x268ed3,_0x3b9093):_0x268ed3,_0x563a8d=_0x3878e2[_0x3d9ce8(0x20a)]-0x1,_0x377606;_0x563a8d>=0x0;_0x563a8d--)(_0x377606=_0x3878e2[_0x563a8d])&&(_0x408e8a=(_0x48035b?_0x377606(_0x268ed3,_0x3b9093,_0x408e8a):_0x377606(_0x408e8a))||_0x408e8a);return _0x48035b&&_0x408e8a&&_0x440319(_0x268ed3,_0x3b9093,_0x408e8a),_0x408e8a;},_0x40e71c=(_0x84485e,_0x26761f)=>(_0x421d4c,_0x48c5bc)=>_0x26761f(_0x421d4c,_0x48c5bc,_0x84485e);const _0x42cbde=_0x242ecd(0x286),_0x5c568a=_0x242ecd(0x1d2),_0x4e12a6=_0x242ecd(0x224);_0x7022aa[_0x242ecd(0x197)]=class extends _0xe28b6f[_0x242ecd(0x272)]{constructor(_0x4b6254,_0x2583ed,_0x380ee5,_0x13961b,_0x4db218,_0x47c79b,_0x35b3b6,_0x466727,_0x57702c){var _0xf25773=_0x242ecd;super(),_0x5da916(this,_0xf25773(0x268),null),_0x5da916(this,_0xf25773(0x25e),new _0xe28b6f['DisposableCollection']()),_0x5da916(this,'_pluginMap',new Map()),(this[_0xf25773(0x1b4)]=_0x4b6254,this[_0xf25773(0x188)]=_0x2583ed,this['_configService']=_0x380ee5,this[_0xf25773(0x17c)]=_0x13961b,this['_messageService']=_0x4db218,this[_0xf25773(0x244)]=_0x47c79b,this[_0xf25773(0x1f7)]=_0x35b3b6,this['_dialogService']=_0x466727,this[_0xf25773(0x287)]=_0x57702c,this[_0xf25773(0x1f3)]());}[_0x242ecd(0x1f3)](){var _0x509f09=_0x242ecd;this[_0x509f09(0x1f5)](),this[_0x509f09(0x1d9)]();}['_initContainer'](){var _0xc07adc=_0x242ecd,_0x161eb0;const _0x233ba6=(_0x161eb0=this[_0xc07adc(0x20c)][_0xc07adc(0x1ea)](_0x5c568a))!=null?_0x161eb0:_0x42cbde,_0x5abc5b=document[_0xc07adc(0x1cb)](_0x233ba6);if(!_0x5abc5b)return;const _0x4631b0=document[_0xc07adc(0x212)]('div');_0x4631b0['id']=_0x4e12a6,_0x4631b0['style']['position']=_0xc07adc(0x1bb),_0x4631b0[_0xc07adc(0x1a6)]['top']='0',_0x4631b0[_0xc07adc(0x1a6)][_0xc07adc(0x16c)]='0',_0x4631b0['style'][_0xc07adc(0x1d7)]=_0xc07adc(0x24d),_0x4631b0[_0xc07adc(0x1a6)][_0xc07adc(0x25d)]=_0xc07adc(0x24d),_0x4631b0['style'][_0xc07adc(0x1d3)]=_0xc07adc(0x1e9),_0x4631b0['style'][_0xc07adc(0x1b2)]='none',_0x5abc5b[_0xc07adc(0x185)](_0x4631b0);}['_initPlugins'](){var _0x4f73cd=_0x242ecd,_0x971760;[[_0x5962ec[_0x4f73cd(0x184)],{'override':[[_0x5962ec['IImageIoService'],null]]}],[_0x3e38a7[_0x4f73cd(0x248)],{'hasScroll':!0x1}],[_0x51447d['UniverDocsUIPlugin']],[_0x219cc6[_0x4f73cd(0x1a3)]],[_0x133b31[_0x4f73cd(0x16d)],{'container':_0x4e12a6,'header':!0x0,'toolbar':!0x1,'footer':!0x0,'contextMenu':!0x1,'override':[[_0x133b31[_0x4f73cd(0x1ec)],null]]}],[_0x12da06[_0x4f73cd(0x285)],{'notExecuteFormula':!0x0}],[_0x599b6b[_0x4f73cd(0x1ef)]],[_0x4b74b9[_0x4f73cd(0x217)]],[_0x2e04e8[_0x4f73cd(0x1b6)]],[_0x35cac6[_0x4f73cd(0x1a5)]],[_0x8ecbe3[_0x4f73cd(0x172)]],[_0x55702b[_0x4f73cd(0x22b)]],[_0x3f8069[_0x4f73cd(0x250)]],[_0x378eee[_0x4f73cd(0x1e4)]],[_0x9fe2b2['UniverDataValidationPlugin']],[_0x3fe90d[_0x4f73cd(0x257)]],[_0x1b9396[_0x4f73cd(0x23d)]],[_0x15cc33['UniverFormulaEnginePlugin'],{'notExecuteFormula':!0x0}],[_0x8be260[_0x4f73cd(0x18e)]],[_0x7ffc6d[_0x4f73cd(0x21f)],{'workerURL':_0x4f73cd(0x1fa)}],[_0x238d94['UniverDrawingUIPlugin']],[_0x57ab5a[_0x4f73cd(0x1dc)]],[_0x326a1e[_0x4f73cd(0x192)]],[_0x29b351[_0x4f73cd(0x1b7)],{'notExecuteFormula':!0x0}],[_0x3e3850[_0x4f73cd(0x256)],{'historyListServerUrl':(_0x971760=this['_configService'][_0x4f73cd(0x1ea)](_0x23b76a))==null?void 0x0:_0x971760[_0x4f73cd(0x1c0)]}]][_0x4f73cd(0x18a)](([_0x155181,_0x180d7b])=>this[_0x4f73cd(0x1cd)](_0x155181,_0x180d7b));}[_0x242ecd(0x18d)](){var _0x5734c4=_0x242ecd;super[_0x5734c4(0x18d)](),this[_0x5734c4(0x259)](),this[_0x5734c4(0x178)]['clear']();}[_0x242ecd(0x1cd)](_0x308dff,_0x248f6f,_0x497d61){var _0x337e38=_0x242ecd;if(this[_0x337e38(0x178)][_0x337e38(0x181)](_0x308dff['pluginName'])&&!_0x497d61)throw new Error(_0x337e38(0x1ad)+_0x308dff[_0x337e38(0x24f)]+_0x337e38(0x191));this[_0x337e38(0x178)]['set'](_0x308dff[_0x337e38(0x24f)],[_0x308dff,_0x248f6f]);}['getAllPlugins'](){var _0x751773=_0x242ecd;return Array[_0x751773(0x171)](this[_0x751773(0x178)][_0x751773(0x1c1)]());}[_0x242ecd(0x1e3)](_0x527827){var _0x11d9bb=_0x242ecd;const _0x159b55=document[_0x11d9bb(0x1cb)](_0x4e12a6);_0x159b55&&(_0x159b55['style']['display']=_0x11d9bb(0x26f),this['_initUniver'](_0x527827,_0x4e12a6));}[_0x242ecd(0x259)](){var _0x1a92f8=_0x242ecd,_0x24727a;this[_0x1a92f8(0x25e)]['dispose'](),(_0x24727a=this[_0x1a92f8(0x268)])==null||_0x24727a['dispose'](),this['_historyUniver']=null;const _0x10cbea=document[_0x1a92f8(0x1cb)](_0x4e12a6);_0x10cbea&&(_0x10cbea[_0x1a92f8(0x1a6)][_0x1a92f8(0x1b2)]=_0x1a92f8(0x1be));}[_0x242ecd(0x27a)](_0x4cb4bd,_0x30cf23){var _0x2c5118=_0x242ecd;if(this[_0x2c5118(0x268)])return;const _0x1f8288=new _0xe28b6f[(_0x2c5118(0x1c4))]({'theme':_0x30aa98[_0x2c5118(0x21a)],'locales':{[this[_0x2c5118(0x1b4)][_0x2c5118(0x201)]()]:this[_0x2c5118(0x1b4)][_0x2c5118(0x27b)]()},'override':[[_0xe28b6f[_0x2c5118(0x249)],null]]});this[_0x2c5118(0x268)]=_0x1f8288;const _0x27daef=_0x1f8288[_0x2c5118(0x203)]();_0x27daef['get'](_0xe28b6f[_0x2c5118(0x176)])[_0x2c5118(0x17b)](this[_0x2c5118(0x1b4)][_0x2c5118(0x201)]()),_0x27daef[_0x2c5118(0x26e)](_0xe28b6f[_0x2c5118(0x241)])[_0x2c5118(0x266)](_0x4b2ddc[_0x2c5118(0x271)],this[_0x2c5118(0x20c)][_0x2c5118(0x1ea)](_0x4b2ddc[_0x2c5118(0x271)])),this[_0x2c5118(0x178)][_0x2c5118(0x18a)](([_0x421d11,_0x33ee8a])=>{var _0x1abbe2=_0x2c5118;_0x1f8288[_0x1abbe2(0x1cd)](_0x421d11,_0x33ee8a);}),_0x27daef[_0x2c5118(0x1a7)](_0x213795=>{var _0x2e3edf=_0x2c5118;this['_initListener'](_0x213795,_0x4cb4bd),this[_0x2e3edf(0x1b8)](_0x213795,this[_0x2e3edf(0x23c)]);});const _0x27a05f=_0x27daef[_0x2c5118(0x26e)](_0x3e3850['HistoryManagerService']),_0x204f18=this[_0x2c5118(0x19b)](_0x4cb4bd);_0x27a05f[_0x2c5118(0x196)](_0x4cb4bd,_0x30cf23,_0x204f18);}['_initListener'](_0x45b9f0,_0x4a40ee){var _0x52e242=_0x242ecd;const _0x3bae6e=_0x45b9f0[_0x52e242(0x26e)](_0x3e3850[_0x52e242(0x19c)]);this[_0x52e242(0x25e)][_0x52e242(0x27f)](_0x3bae6e[_0x52e242(0x219)][_0x52e242(0x23a)](_0x4742ce=>{var _0x4334ea=_0x52e242;switch(_0x4742ce){case _0x3e3850[_0x4334ea(0x278)][_0x4334ea(0x247)]:this[_0x4334ea(0x263)]['closeAll'](),this[_0x4334ea(0x287)][_0x4334ea(0x18b)]();break;case _0x3e3850[_0x4334ea(0x278)][_0x4334ea(0x23f)]:this[_0x4334ea(0x259)]();break;case _0x3e3850[_0x4334ea(0x278)][_0x4334ea(0x279)]:this['unMountHistoryContent'](),this[_0x4334ea(0x23c)]['show']({'content':this['_localeService']['t']('editHistory.panel.listFetchError'),'type':_0x30aa98[_0x4334ea(0x1db)][_0x4334ea(0x279)],'duration':0xbb8});break;}})),this['_disposableCollection'][_0x52e242(0x27f)](_0x3bae6e[_0x52e242(0x235)][_0x52e242(0x23a)](async _0x5a1839=>{var _0x5acba0=_0x52e242;_0x5a1839&&this[_0x5acba0(0x17c)]['executeCommand'](_0x4b74b9['RevertRevisionMutation']['id'],{'unitId':_0x4a40ee,'revision':_0x5a1839});}));}[_0x242ecd(0x1b8)](_0x345889,_0x116695){var _0x4f6adc=_0x242ecd;const _0x307614=_0x345889[_0x4f6adc(0x26e)](_0x133b31[_0x4f6adc(0x189)]),_0x43353e=_0x116695[_0x4f6adc(0x265)]();_0x43353e&&_0x307614[_0x4f6adc(0x214)](_0x43353e);}[_0x242ecd(0x19b)](_0x42ba2e){var _0x24a952=_0x242ecd;const _0x328bee=this[_0x24a952(0x188)][_0x24a952(0x173)](_0x42ba2e)[_0x24a952(0x1bd)]()[_0x24a952(0x19a)](_0xc32e6e=>_0xc32e6e['getSheetId']()),_0x3d9a9f=new _0x12da06[(_0x24a952(0x245))](_0x42ba2e)['id'],_0x369b2c=_0x328bee[_0x24a952(0x19a)](_0x1b5277=>new _0x12da06[(_0x24a952(0x22f))](_0x42ba2e,_0x1b5277)['id']),_0x2e7fa2=_0x328bee[_0x24a952(0x19a)](_0x20e7fd=>this['_selectionProtectionRuleModel'][_0x24a952(0x1a9)](_0x42ba2e,_0x20e7fd)[_0x24a952(0x19a)](_0x24056d=>new _0x12da06[(_0x24a952(0x27e))](_0x42ba2e,_0x20e7fd,_0x24056d[_0x24a952(0x170)])['id']))[_0x24a952(0x22a)](),_0x4d072d=new _0x12da06['WorkbookRecoverHistoryPermission'](_0x42ba2e)['id'];return this['_permissionService'][_0x24a952(0x255)]([_0x3d9a9f,..._0x369b2c,..._0x2e7fa2,_0x4d072d])['every'](_0x2c320f=>!!_0x2c320f[_0x24a952(0x236)]);}},_0x7022aa['HistoryLoaderService']=_0x45ba3c([_0xe28b6f['OnLifecycle'](_0xe28b6f[_0x242ecd(0x1a4)]['Steady'],_0x7022aa['HistoryLoaderService']),_0x40e71c(0x0,_0xe28b6f[_0x242ecd(0x24e)](_0xe28b6f[_0x242ecd(0x176)])),_0x40e71c(0x1,_0xe28b6f[_0x242ecd(0x1fd)]),_0x40e71c(0x2,_0xe28b6f[_0x242ecd(0x241)]),_0x40e71c(0x3,_0xe28b6f[_0x242ecd(0x1c7)]),_0x40e71c(0x4,_0x133b31[_0x242ecd(0x189)]),_0x40e71c(0x5,_0xe28b6f[_0x242ecd(0x270)]),_0x40e71c(0x6,_0xe28b6f[_0x242ecd(0x24e)](_0x12da06[_0x242ecd(0x229)])),_0x40e71c(0x7,_0xe28b6f['Inject'](_0x133b31[_0x242ecd(0x1ec)])),_0x40e71c(0x8,_0xe28b6f[_0x242ecd(0x24e)](_0x133b31[_0x242ecd(0x208)]))],_0x7022aa[_0x242ecd(0x197)]);var _0x10e4fd=function(){var _0x5597d0=_0x242ecd;return _0x10e4fd=Object[_0x5597d0(0x281)]||function(_0x566dc2){var _0x85992e=_0x5597d0;for(var _0x2d3e13,_0x433e6a=0x1,_0x2df9eb=arguments[_0x85992e(0x20a)];_0x433e6a<_0x2df9eb;_0x433e6a++){_0x2d3e13=arguments[_0x433e6a];for(var _0x129cb5 in _0x2d3e13)Object[_0x85992e(0x1a8)][_0x85992e(0x283)][_0x85992e(0x26b)](_0x2d3e13,_0x129cb5)&&(_0x566dc2[_0x129cb5]=_0x2d3e13[_0x129cb5]);}return _0x566dc2;},_0x10e4fd[_0x5597d0(0x1ab)](this,arguments);},_0xbd4630=function(_0x1a4851,_0x4739cd){var _0x545afb=_0x242ecd,_0x320d12={};for(var _0x3cdcaf in _0x1a4851)Object[_0x545afb(0x1a8)][_0x545afb(0x283)][_0x545afb(0x26b)](_0x1a4851,_0x3cdcaf)&&_0x4739cd[_0x545afb(0x24b)](_0x3cdcaf)<0x0&&(_0x320d12[_0x3cdcaf]=_0x1a4851[_0x3cdcaf]);if(_0x1a4851!=null&&typeof Object[_0x545afb(0x210)]==_0x545afb(0x1af)){for(var _0x142169=0x0,_0x3cdcaf=Object[_0x545afb(0x210)](_0x1a4851);_0x142169<_0x3cdcaf[_0x545afb(0x20a)];_0x142169++)_0x4739cd[_0x545afb(0x24b)](_0x3cdcaf[_0x142169])<0x0&&Object[_0x545afb(0x1a8)][_0x545afb(0x26c)][_0x545afb(0x26b)](_0x1a4851,_0x3cdcaf[_0x142169])&&(_0x320d12[_0x3cdcaf[_0x142169]]=_0x1a4851[_0x3cdcaf[_0x142169]]);}return _0x320d12;},_0x2a4265=_0x28c3bc[_0x242ecd(0x1f4)](function(_0x4524d8,_0x4595ee){var _0x417eaf=_0x242ecd,_0xb844bf=_0x4524d8[_0x417eaf(0x1f8)],_0x21e8cf=_0x4524d8['id'],_0x532d77=_0x4524d8[_0x417eaf(0x204)],_0x1f20a3=_0x4524d8['extend'],_0x3fa244=_0xbd4630(_0x4524d8,[_0x417eaf(0x1f8),'id','className','extend']),_0x246adf=_0x417eaf(0x1d0)['concat'](_0x21e8cf,'\x20')[_0x417eaf(0x288)](_0x532d77||'')['trim'](),_0x19e218=_0x28c3bc[_0x417eaf(0x213)]('_'['concat'](_0x5d7e5c()));return _0x3addce(_0xb844bf,''[_0x417eaf(0x288)](_0x21e8cf),{'defIds':_0xb844bf[_0x417eaf(0x17d)],'idSuffix':_0x19e218[_0x417eaf(0x27c)]},_0x10e4fd({'ref':_0x4595ee,'className':_0x246adf},_0x3fa244),_0x1f20a3);});function _0x3addce(_0x403b3e,_0x3c3815,_0x4465cc,_0x3cc471,_0x2d7c74){var _0x4ec4bb=_0x242ecd;return _0x28c3bc['createElement'](_0x403b3e[_0x4ec4bb(0x17a)],_0x10e4fd(_0x10e4fd({'key':_0x3c3815},_0x35fe03(_0x403b3e,_0x4465cc,_0x2d7c74)),_0x3cc471),(_0xa43e3d(_0x403b3e,_0x4465cc)['children']||[])[_0x4ec4bb(0x19a)](function(_0x5bc6ef,_0x54cd70){var _0x4bbd91=_0x4ec4bb;return _0x3addce(_0x5bc6ef,''[_0x4bbd91(0x288)](_0x3c3815,'-')['concat'](_0x403b3e[_0x4bbd91(0x17a)],'-')[_0x4bbd91(0x288)](_0x54cd70),_0x4465cc,void 0x0,_0x2d7c74);}));}function _0x35fe03(_0x1558e4,_0x5299f6,_0x8d2a50){var _0x5e0f41=_0x242ecd,_0x1a35ae=_0x10e4fd({},_0x1558e4['attrs']);_0x8d2a50!=null&&_0x8d2a50[_0x5e0f41(0x18f)]&&_0x1a35ae[_0x5e0f41(0x193)]===_0x5e0f41(0x18f)&&(_0x1a35ae[_0x5e0f41(0x193)]=_0x8d2a50[_0x5e0f41(0x18f)]);var _0x505de2=_0x5299f6['defIds'];return!_0x505de2||_0x505de2[_0x5e0f41(0x20a)]===0x0||(_0x1558e4[_0x5e0f41(0x17a)]==='use'&&_0x1a35ae[_0x5e0f41(0x1b3)]&&(_0x1a35ae[_0x5e0f41(0x1b3)]=_0x1a35ae[_0x5e0f41(0x1b3)]+_0x5299f6[_0x5e0f41(0x251)]),Object['entries'](_0x1a35ae)[_0x5e0f41(0x18a)](function(_0x55cb16){var _0x147a44=_0x5e0f41,_0x386b70=_0x55cb16[0x0],_0x44e292=_0x55cb16[0x1];typeof _0x44e292=='string'&&(_0x1a35ae[_0x386b70]=_0x44e292['replace'](/url\(#(.*)\)/,_0x147a44(0x1bf)['concat'](_0x5299f6[_0x147a44(0x251)],')')));})),_0x1a35ae;}function _0xa43e3d(_0xe47540,_0x381ed9){var _0x2c253f=_0x242ecd,_0x4496b9,_0x2e2f2c=_0x381ed9[_0x2c253f(0x17d)];return!_0x2e2f2c||_0x2e2f2c[_0x2c253f(0x20a)]===0x0?_0xe47540:_0xe47540[_0x2c253f(0x17a)]===_0x2c253f(0x221)&&(!((_0x4496b9=_0xe47540[_0x2c253f(0x209)])===null||_0x4496b9===void 0x0)&&_0x4496b9['length'])?_0x10e4fd(_0x10e4fd({},_0xe47540),{'children':_0xe47540[_0x2c253f(0x209)]['map'](function(_0x1d54de){var _0x159ea7=_0x2c253f;return typeof _0x1d54de[_0x159ea7(0x275)]['id']=='string'&&_0x2e2f2c&&_0x2e2f2c[_0x159ea7(0x24b)](_0x1d54de['attrs']['id'])>-0x1?_0x10e4fd(_0x10e4fd({},_0x1d54de),{'attrs':_0x10e4fd(_0x10e4fd({},_0x1d54de[_0x159ea7(0x275)]),{'id':_0x1d54de[_0x159ea7(0x275)]['id']+_0x381ed9[_0x159ea7(0x251)]})}):_0x1d54de;})}):_0xe47540;}function _0x5d7e5c(){var _0x4fd3a5=_0x242ecd;return Math[_0x4fd3a5(0x175)]()[_0x4fd3a5(0x1f0)](0x24)[_0x4fd3a5(0x223)](0x2,0x8);}_0x2a4265[_0x242ecd(0x252)]=_0x242ecd(0x1a0);var _0x5f50b3={'tag':_0x242ecd(0x1ae),'attrs':{'fill':_0x242ecd(0x1be),'viewBox':_0x242ecd(0x1e8),'width':_0x242ecd(0x25a),'height':_0x242ecd(0x25a)},'children':[{'tag':'g','attrs':{'fill':_0x242ecd(0x258),'clipPath':_0x242ecd(0x243)},'children':[{'tag':_0x242ecd(0x22e),'attrs':{'d':_0x242ecd(0x216)}},{'tag':_0x242ecd(0x22e),'attrs':{'d':_0x242ecd(0x1c6)}}]},{'tag':_0x242ecd(0x221),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x242ecd(0x276)},'children':[{'tag':_0x242ecd(0x22e),'attrs':{'fill':_0x242ecd(0x234),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x242ecd(0x276)]},_0x249dbc=_0x28c3bc[_0x242ecd(0x1f4)](function(_0x271b2c,_0x4f336c){var _0x3c0b31=_0x242ecd;return _0x28c3bc[_0x3c0b31(0x212)](_0x2a4265,Object[_0x3c0b31(0x281)]({},_0x271b2c,{'id':_0x3c0b31(0x21c),'ref':_0x4f336c,'icon':_0x5f50b3}));});_0x249dbc[_0x242ecd(0x252)]=_0x242ecd(0x24c);const _0x13a82f={'id':_0x242ecd(0x20b),'type':_0xe28b6f[_0x242ecd(0x1b0)][_0x242ecd(0x289)],'handler':_0x139712=>{var _0x5043b5=_0x242ecd;const _0x6e3cd8=_0x139712[_0x5043b5(0x26e)](_0x7022aa[_0x5043b5(0x197)]),_0x3085e0=_0x139712[_0x5043b5(0x26e)](_0xe28b6f[_0x5043b5(0x1fd)]),{unitId:_0x1f8d29}=_0x12da06['getSheetCommandTarget'](_0x3085e0)||{};return _0x1f8d29?(_0x6e3cd8[_0x5043b5(0x1e3)](_0x1f8d29),!0x0):!0x1;}},_0x48b136=_0x242ecd(0x24c);function _0x582039(_0x10f2b8){var _0x582ece=_0x242ecd;return{'id':_0x13a82f['id'],'type':_0x133b31[_0x582ece(0x200)][_0x582ece(0x1c3)],'icon':_0x48b136,'tooltip':_0x582ece(0x22c),'hidden$':_0x133b31['getMenuHiddenObservable'](_0x10f2b8,_0xe28b6f[_0x582ece(0x215)][_0x582ece(0x1e0)]),'disabled$':_0x599b6b['getCurrentRangeDisable$'](_0x10f2b8,{'workbookTypes':[_0x12da06[_0x582ece(0x245)],_0x12da06[_0x582ece(0x25f)]],'worksheetTypes':[],'rangeTypes':[]})};}const _0x1f30cd={[_0x133b31['RibbonStartGroup']['OTHERS']]:{[_0x13a82f['id']]:{'order':0x0,'menuItemFactory':_0x582039}}};var _0x4df29d=Object[_0x242ecd(0x17e)],_0x11f3f9=Object[_0x242ecd(0x239)],_0x1fd3f9=(_0x4b9331,_0x422810,_0x19610a,_0xd2a860)=>{var _0x508644=_0x242ecd;for(var _0x20d8fa=_0xd2a860>0x1?void 0x0:_0xd2a860?_0x11f3f9(_0x422810,_0x19610a):_0x422810,_0x2129a5=_0x4b9331[_0x508644(0x20a)]-0x1,_0x29c265;_0x2129a5>=0x0;_0x2129a5--)(_0x29c265=_0x4b9331[_0x2129a5])&&(_0x20d8fa=(_0xd2a860?_0x29c265(_0x422810,_0x19610a,_0x20d8fa):_0x29c265(_0x20d8fa))||_0x20d8fa);return _0xd2a860&&_0x20d8fa&&_0x4df29d(_0x422810,_0x19610a,_0x20d8fa),_0x20d8fa;},_0x4b7969=(_0x497f23,_0x67eb4a)=>(_0x4b4a29,_0x3ac593)=>_0x67eb4a(_0x4b4a29,_0x3ac593,_0x497f23);let _0xa4ef24=class extends _0xe28b6f[_0x242ecd(0x282)]{constructor(_0x223c15,_0x3797cd,_0x514763,_0x3c5eac,_0x50b05f,_0x2cfa1e,_0x162b26,_0x50ab0e){var _0x2a079a=_0x242ecd;super(),_0x5da916(this,_0x2a079a(0x1df),null),(this[_0x2a079a(0x17c)]=_0x223c15,this[_0x2a079a(0x226)]=_0x3797cd,this['_componentManager']=_0x514763,this[_0x2a079a(0x1e6)]=_0x3c5eac,this[_0x2a079a(0x1b4)]=_0x50b05f,this[_0x2a079a(0x23c)]=_0x2cfa1e,this[_0x2a079a(0x1fe)]=_0x162b26,this[_0x2a079a(0x20d)]=_0x50ab0e,this[_0x2a079a(0x1f3)]());}['_init'](){var _0x339f47=_0x242ecd;[_0x13a82f][_0x339f47(0x18a)](_0x535116=>this[_0x339f47(0x195)](_0xe28b6f[_0x339f47(0x20f)](this[_0x339f47(0x17c)]['registerCommand'](_0x535116)))),this[_0x339f47(0x195)](this[_0x339f47(0x19d)][_0x339f47(0x1dd)](_0x48b136,_0x249dbc)),this[_0x339f47(0x226)][_0x339f47(0x1ac)](_0x1f30cd),this['disposeWithMe'](this[_0x339f47(0x17c)]['onCommandExecuted'](_0x20251a=>{var _0x38cf3f=_0x339f47;if(_0x20251a['id']===_0x4b74b9[_0x38cf3f(0x1c9)]['id']){this[_0x38cf3f(0x23c)][_0x38cf3f(0x1e1)]({'content':this[_0x38cf3f(0x1b4)]['t'](_0x38cf3f(0x1a2)),'type':_0x30aa98[_0x38cf3f(0x1db)][_0x38cf3f(0x222)],'duration':0x1388});const {unitId:_0x4208a2}=_0x20251a[_0x38cf3f(0x267)],_0x3c814f=this[_0x38cf3f(0x1fe)][_0x38cf3f(0x27d)](_0x4208a2),_0xeb4e97=_0x52704d[_0x38cf3f(0x218)]([_0x3c814f[_0x38cf3f(0x1ff)][_0x38cf3f(0x1da)],_0x3c814f['state$']])[_0x38cf3f(0x23a)](async([_0x2cc6a9,_0x565c03])=>{var _0x519963=_0x38cf3f;_0x2cc6a9['eventID']===_0x4b74b9[_0x519963(0x26a)][_0x519963(0x24a)]&&(_0x565c03==null?void 0x0:_0x565c03['status'])===_0x4b2ddc['CollaborationStatus']['SYNCED']&&_0x2cc6a9[_0x519963(0x269)][_0x519963(0x186)][_0x519963(0x23e)](_0x48596c=>_0x48596c['id']===_0x4b74b9[_0x519963(0x1c9)]['id'])&&(this[_0x519963(0x1e6)][_0x519963(0x259)](),_0xeb4e97[_0x519963(0x262)](),this[_0x519963(0x1df)]&&clearTimeout(this[_0x519963(0x1df)]),await this['_localCacheService'][_0x519963(0x1f2)](),setTimeout(()=>window[_0x519963(0x190)][_0x519963(0x26d)]()));});this['_revertErrorTimer']=setTimeout(()=>{var _0x8cb559=_0x38cf3f;_0xeb4e97[_0x8cb559(0x262)](),this[_0x8cb559(0x23c)][_0x8cb559(0x1e1)]({'content':this[_0x8cb559(0x1b4)]['t'](_0x8cb559(0x1e5)),'type':_0x30aa98[_0x8cb559(0x1db)][_0x8cb559(0x279)],'duration':0xbb8});},0x1388);}}));}};_0xa4ef24=_0x1fd3f9([_0xe28b6f[_0x242ecd(0x16e)](_0xe28b6f['LifecycleStages']['Steady'],_0xa4ef24),_0x4b7969(0x0,_0xe28b6f[_0x242ecd(0x1c7)]),_0x4b7969(0x1,_0x133b31[_0x242ecd(0x233)]),_0x4b7969(0x2,_0xe28b6f[_0x242ecd(0x24e)](_0x133b31[_0x242ecd(0x21b)])),_0x4b7969(0x3,_0xe28b6f[_0x242ecd(0x24e)](_0x7022aa[_0x242ecd(0x197)])),_0x4b7969(0x4,_0xe28b6f['Inject'](_0xe28b6f[_0x242ecd(0x176)])),_0x4b7969(0x5,_0x133b31[_0x242ecd(0x189)]),_0x4b7969(0x6,_0xe28b6f[_0x242ecd(0x24e)](_0x4b2ddc[_0x242ecd(0x1d1)])),_0x4b7969(0x7,_0xe28b6f[_0x242ecd(0x24e)](_0x4b2ddc[_0x242ecd(0x21e)]))],_0xa4ef24);var _0x4dcb13=Object[_0x242ecd(0x17e)],_0x59fa9a=Object[_0x242ecd(0x239)],_0x3ad09e=(_0x19bdaf,_0x44eb5c,_0x4d3dec,_0x21c97b)=>{var _0x4f418e=_0x242ecd;for(var _0x301cc0=_0x21c97b>0x1?void 0x0:_0x21c97b?_0x59fa9a(_0x44eb5c,_0x4d3dec):_0x44eb5c,_0x5bcdad=_0x19bdaf[_0x4f418e(0x20a)]-0x1,_0x48b093;_0x5bcdad>=0x0;_0x5bcdad--)(_0x48b093=_0x19bdaf[_0x5bcdad])&&(_0x301cc0=(_0x21c97b?_0x48b093(_0x44eb5c,_0x4d3dec,_0x301cc0):_0x48b093(_0x301cc0))||_0x301cc0);return _0x21c97b&&_0x301cc0&&_0x4dcb13(_0x44eb5c,_0x4d3dec,_0x301cc0),_0x301cc0;},_0x4492c0=(_0x80eac7,_0x16d56d)=>(_0x4dca58,_0x5bafe1)=>_0x16d56d(_0x4dca58,_0x5bafe1,_0x80eac7);const _0x3bccde=_0x242ecd(0x260);_0x7022aa['UniverEditHistoryLoaderPlugin']=(_0x317e64=class extends _0xe28b6f[_0x242ecd(0x177)]{constructor(_0x297732=_0xca49c1,_0x569b54,_0x2e945b){var _0x252e77=_0x242ecd;super(),this[_0x252e77(0x17f)]=_0x297732,this[_0x252e77(0x1c2)]=_0x569b54,this[_0x252e77(0x20c)]=_0x2e945b;const {menu:_0x3953f0,..._0x21970e}=this[_0x252e77(0x17f)];_0x3953f0&&this[_0x252e77(0x20c)]['setConfig'](_0x252e77(0x20e),_0x3953f0,{'merge':!0x0}),this[_0x252e77(0x20c)][_0x252e77(0x266)](_0x23b76a,_0x21970e),this['_config'][_0x252e77(0x182)]&&this[_0x252e77(0x20c)][_0x252e77(0x266)](_0x5c568a,this[_0x252e77(0x17f)][_0x252e77(0x182)]);}[_0x242ecd(0x1ee)](){var _0x5c0a1d=_0x242ecd;[[_0x7022aa[_0x5c0a1d(0x197)]],[_0xa4ef24]][_0x5c0a1d(0x18a)](_0x32e933=>this[_0x5c0a1d(0x1c2)]['add'](_0x32e933));}},_0x5da916(_0x317e64,_0x242ecd(0x240),_0xe28b6f[_0x242ecd(0x215)]['UNIVER_UNKNOWN']),_0x5da916(_0x317e64,_0x242ecd(0x24f),_0x3bccde),_0x317e64),_0x7022aa['UniverEditHistoryLoaderPlugin']=_0x3ad09e([_0x4492c0(0x1,_0xe28b6f['Inject'](_0xe28b6f['Injector'])),_0x4492c0(0x2,_0xe28b6f[_0x242ecd(0x241)])],_0x7022aa[_0x242ecd(0x230)]),_0x7022aa[_0x242ecd(0x284)]=_0x5c568a,_0x7022aa[_0x242ecd(0x1ed)]=_0x4e12a6,Object[_0x242ecd(0x17e)](_0x7022aa,Symbol[_0x242ecd(0x1d5)],{'value':_0x242ecd(0x22d)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/edit-history-loader",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet edit history loader",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -48,74 +48,74 @@
|
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
|
50
50
|
"rxjs": ">=7.0.0",
|
|
51
|
-
"@univerjs-pro/collaboration": "0.2.
|
|
52
|
-
"@univerjs-pro/collaboration-client": "0.2.
|
|
53
|
-
"@univerjs-pro/edit-history-viewer": "0.2.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
59
|
-
"@univerjs/
|
|
60
|
-
"@univerjs/
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/engine-formula": "0.2.
|
|
63
|
-
"@univerjs/engine-render": "0.2.
|
|
64
|
-
"@univerjs/rpc": "0.2.
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/sheets-conditional-formatting-ui": "0.2.
|
|
67
|
-
"@univerjs/sheets": "0.2.
|
|
68
|
-
"@univerjs/sheets-data-validation": "0.2.
|
|
69
|
-
"@univerjs/sheets-drawing": "0.2.
|
|
70
|
-
"@univerjs/sheets-
|
|
71
|
-
"@univerjs/sheets-
|
|
72
|
-
"@univerjs/sheets-
|
|
73
|
-
"@univerjs/sheets-
|
|
74
|
-
"@univerjs/sheets-
|
|
75
|
-
"@univerjs/sheets-
|
|
76
|
-
"@univerjs/sheets-
|
|
77
|
-
"@univerjs/sheets-ui": "0.2.
|
|
78
|
-
"@univerjs/ui": "0.2.
|
|
51
|
+
"@univerjs-pro/collaboration": "0.2.15",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.2.15",
|
|
53
|
+
"@univerjs-pro/edit-history-viewer": "0.2.15",
|
|
54
|
+
"@univerjs-pro/sheets-pivot": "0.2.15",
|
|
55
|
+
"@univerjs/core": "0.2.15",
|
|
56
|
+
"@univerjs/design": "0.2.15",
|
|
57
|
+
"@univerjs/data-validation": "0.2.15",
|
|
58
|
+
"@univerjs/docs": "0.2.15",
|
|
59
|
+
"@univerjs/drawing": "0.2.15",
|
|
60
|
+
"@univerjs/docs-ui": "0.2.15",
|
|
61
|
+
"@univerjs/drawing-ui": "0.2.15",
|
|
62
|
+
"@univerjs/engine-formula": "0.2.15",
|
|
63
|
+
"@univerjs/engine-render": "0.2.15",
|
|
64
|
+
"@univerjs/rpc": "0.2.15",
|
|
65
|
+
"@univerjs/sheets": "0.2.15",
|
|
66
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.2.15",
|
|
67
|
+
"@univerjs/sheets-conditional-formatting": "0.2.15",
|
|
68
|
+
"@univerjs/sheets-data-validation": "0.2.15",
|
|
69
|
+
"@univerjs/sheets-drawing": "0.2.15",
|
|
70
|
+
"@univerjs/sheets-filter": "0.2.15",
|
|
71
|
+
"@univerjs/sheets-drawing-ui": "0.2.15",
|
|
72
|
+
"@univerjs/sheets-formula": "0.2.15",
|
|
73
|
+
"@univerjs/sheets-hyper-link-ui": "0.2.15",
|
|
74
|
+
"@univerjs/sheets-filter-ui": "0.2.15",
|
|
75
|
+
"@univerjs/sheets-numfmt": "0.2.15",
|
|
76
|
+
"@univerjs/sheets-hyper-link": "0.2.15",
|
|
77
|
+
"@univerjs/sheets-ui": "0.2.15",
|
|
78
|
+
"@univerjs/ui": "0.2.15"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@univerjs/icons": "^0.1.78",
|
|
82
|
-
"@univerjs-pro/collaboration
|
|
83
|
-
"@univerjs-pro/
|
|
84
|
-
"@univerjs-pro/
|
|
85
|
-
"@univerjs/data-validation": "0.2.
|
|
86
|
-
"@univerjs/
|
|
87
|
-
"@univerjs/
|
|
88
|
-
"@univerjs/core": "0.2.
|
|
89
|
-
"@univerjs/
|
|
90
|
-
"@univerjs/
|
|
91
|
-
"@univerjs/
|
|
82
|
+
"@univerjs-pro/collaboration": "0.2.15",
|
|
83
|
+
"@univerjs-pro/edit-history-viewer": "0.2.15",
|
|
84
|
+
"@univerjs-pro/collaboration-client": "0.2.15",
|
|
85
|
+
"@univerjs/data-validation": "0.2.15",
|
|
86
|
+
"@univerjs/docs": "0.2.15",
|
|
87
|
+
"@univerjs/design": "0.2.15",
|
|
88
|
+
"@univerjs/core": "0.2.15",
|
|
89
|
+
"@univerjs/drawing": "0.2.15",
|
|
90
|
+
"@univerjs/drawing-ui": "0.2.15",
|
|
91
|
+
"@univerjs/engine-formula": "0.2.15",
|
|
92
|
+
"@univerjs/engine-render": "0.2.15",
|
|
92
93
|
"@univerjs/protocol": "0.1.39-alpha.15",
|
|
93
|
-
"@univerjs/
|
|
94
|
-
"@univerjs/rpc": "0.2.
|
|
95
|
-
"@univerjs/sheets": "0.2.
|
|
96
|
-
"@univerjs/
|
|
97
|
-
"@univerjs/sheets-
|
|
98
|
-
"@univerjs/sheets-
|
|
99
|
-
"@univerjs/sheets-
|
|
100
|
-
"@univerjs/sheets-filter": "0.2.
|
|
101
|
-
"@univerjs/sheets-
|
|
102
|
-
"@univerjs/sheets-
|
|
103
|
-
"@univerjs/sheets-
|
|
104
|
-
"@univerjs/sheets-
|
|
105
|
-
"@univerjs/sheets-
|
|
106
|
-
"@univerjs/sheets-
|
|
107
|
-
"@univerjs/
|
|
108
|
-
"@univerjs/ui": "0.2.
|
|
109
|
-
"@univerjs/sheets-ui": "0.2.13"
|
|
94
|
+
"@univerjs/docs-ui": "0.2.15",
|
|
95
|
+
"@univerjs/rpc": "0.2.15",
|
|
96
|
+
"@univerjs/sheets": "0.2.15",
|
|
97
|
+
"@univerjs/sheets-conditional-formatting": "0.2.15",
|
|
98
|
+
"@univerjs/sheets-data-validation": "0.2.15",
|
|
99
|
+
"@univerjs/sheets-conditional-formatting-ui": "0.2.15",
|
|
100
|
+
"@univerjs/sheets-filter": "0.2.15",
|
|
101
|
+
"@univerjs/sheets-filter-ui": "0.2.15",
|
|
102
|
+
"@univerjs/sheets-drawing-ui": "0.2.15",
|
|
103
|
+
"@univerjs/sheets-formula": "0.2.15",
|
|
104
|
+
"@univerjs/sheets-drawing": "0.2.15",
|
|
105
|
+
"@univerjs/sheets-hyper-link": "0.2.15",
|
|
106
|
+
"@univerjs/sheets-hyper-link-ui": "0.2.15",
|
|
107
|
+
"@univerjs/sheets-numfmt": "0.2.15",
|
|
108
|
+
"@univerjs/ui": "0.2.15",
|
|
109
|
+
"@univerjs/sheets-ui": "0.2.15"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@types/react": "^18.3.5",
|
|
113
113
|
"react": "18.3.1",
|
|
114
114
|
"rxjs": "^7.8.1",
|
|
115
115
|
"typescript": "^5.6.2",
|
|
116
|
-
"vite": "^5.4.
|
|
117
|
-
"vitest": "^2.0
|
|
118
|
-
"@univerjs-infra/shared": "0.2.
|
|
116
|
+
"vite": "^5.4.5",
|
|
117
|
+
"vitest": "^2.1.0",
|
|
118
|
+
"@univerjs-infra/shared": "0.2.15"
|
|
119
119
|
},
|
|
120
120
|
"univerSpace": {
|
|
121
121
|
".": {
|