@univerjs-pro/live-share 0.10.8 → 0.10.9-nightly.202509260614
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x50ae10=_0x1df8;(function(_0x5bba48,_0x540185){var _0x568cbf=_0x1df8,_0x2612ee=_0x5bba48();while(!![]){try{var _0x299e2f=-parseInt(_0x568cbf(0x1c9))/0x1+-parseInt(_0x568cbf(0x23e))/0x2+parseInt(_0x568cbf(0x21e))/0x3*(-parseInt(_0x568cbf(0x287))/0x4)+-parseInt(_0x568cbf(0x20f))/0x5+-parseInt(_0x568cbf(0x252))/0x6+-parseInt(_0x568cbf(0x201))/0x7*(parseInt(_0x568cbf(0x258))/0x8)+-parseInt(_0x568cbf(0x200))/0x9*(-parseInt(_0x568cbf(0x2a4))/0xa);if(_0x299e2f===_0x540185)break;else _0x2612ee['push'](_0x2612ee['shift']());}catch(_0x5cd59f){_0x2612ee['push'](_0x2612ee['shift']());}}}(_0x1e6f,0x361f9));function _0x1df8(_0x56b914,_0x4bc513){var _0x1e6f29=_0x1e6f();return _0x1df8=function(_0x1df876,_0x484784){_0x1df876=_0x1df876-0x1c7;var _0x2780d8=_0x1e6f29[_0x1df876];return _0x2780d8;},_0x1df8(_0x56b914,_0x4bc513);}var U=Object[_0x50ae10(0x270)],F=(_0x583dcd,_0x5a6021,_0x297659)=>_0x5a6021 in _0x583dcd?U(_0x583dcd,_0x5a6021,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297659}):_0x583dcd[_0x5a6021]=_0x297659,v=(_0x5cebda,_0x259052,_0x3a9a5c)=>F(_0x5cebda,typeof _0x259052!=_0x50ae10(0x20e)?_0x259052+'':_0x259052,_0x3a9a5c);Object[_0x50ae10(0x270)](exports,Symbol[_0x50ae10(0x257)],{'value':_0x50ae10(0x226)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x23ce55=_0x50ae10;return u=Object[_0x23ce55(0x217)]||function(_0x19cea5){var _0x5d321b=_0x23ce55;for(var _0xfac2fd,_0x37b72d=0x1,_0x2b593e=arguments[_0x5d321b(0x276)];_0x37b72d<_0x2b593e;_0x37b72d++){_0xfac2fd=arguments[_0x37b72d];for(var _0x2759e0 in _0xfac2fd)Object[_0x5d321b(0x20c)][_0x5d321b(0x284)]['call'](_0xfac2fd,_0x2759e0)&&(_0x19cea5[_0x2759e0]=_0xfac2fd[_0x2759e0]);}return _0x19cea5;},u['apply'](this,arguments);},$=function(_0x5ab1b6,_0xb8c946){var _0x345617=_0x50ae10,_0x134a0b={};for(var _0x577ea7 in _0x5ab1b6)Object[_0x345617(0x20c)][_0x345617(0x284)][_0x345617(0x1d6)](_0x5ab1b6,_0x577ea7)&&_0xb8c946[_0x345617(0x23a)](_0x577ea7)<0x0&&(_0x134a0b[_0x577ea7]=_0x5ab1b6[_0x577ea7]);if(_0x5ab1b6!=null&&typeof Object[_0x345617(0x1eb)]==_0x345617(0x218)){for(var _0x53fce6=0x0,_0x577ea7=Object[_0x345617(0x1eb)](_0x5ab1b6);_0x53fce6<_0x577ea7['length'];_0x53fce6++)_0xb8c946['indexOf'](_0x577ea7[_0x53fce6])<0x0&&Object[_0x345617(0x20c)][_0x345617(0x1f6)][_0x345617(0x1d6)](_0x5ab1b6,_0x577ea7[_0x53fce6])&&(_0x134a0b[_0x577ea7[_0x53fce6]]=_0x5ab1b6[_0x577ea7[_0x53fce6]]);}return _0x134a0b;},j=f['forwardRef'](function(_0x211bb6,_0x119251){var _0xc47219=_0x50ae10,_0x4ca573=_0x211bb6['icon'],_0x2b2460=_0x211bb6['id'],_0x55014e=_0x211bb6[_0xc47219(0x245)],_0x2eb36d=_0x211bb6[_0xc47219(0x293)],_0x464fa4=$(_0x211bb6,[_0xc47219(0x1d2),'id',_0xc47219(0x245),'extend']),_0x573402='univerjs-icon\x20univerjs-icon-'[_0xc47219(0x1fc)](_0x2b2460,'\x20')[_0xc47219(0x1fc)](_0x55014e||'')[_0xc47219(0x236)](),_0x14c9d5=f[_0xc47219(0x233)]('_'['concat'](k()));return y(_0x4ca573,''[_0xc47219(0x1fc)](_0x2b2460),{'defIds':_0x4ca573[_0xc47219(0x24b)],'idSuffix':_0x14c9d5[_0xc47219(0x1ed)]},u({'ref':_0x119251,'className':_0x573402},_0x464fa4),_0x2eb36d);});function y(_0xb9b260,_0x3695b2,_0x20cadc,_0x1a8c72,_0x4fe143){var _0xe35448=_0x50ae10;return f['createElement'](_0xb9b260['tag'],u(u({'key':_0x3695b2},H(_0xb9b260,_0x20cadc,_0x4fe143)),_0x1a8c72),(V(_0xb9b260,_0x20cadc)['children']||[])[_0xe35448(0x29c)](function(_0xf67a03,_0x4b6a7f){var _0x409694=_0xe35448;return y(_0xf67a03,''[_0x409694(0x1fc)](_0x3695b2,'-')[_0x409694(0x1fc)](_0xb9b260[_0x409694(0x234)],'-')['concat'](_0x4b6a7f),_0x20cadc,void 0x0,_0x4fe143);}));}function H(_0x22f453,_0x108da3,_0x25e6b8){var _0x478dfe=_0x50ae10,_0x42eb53=u({},_0x22f453[_0x478dfe(0x25a)]);_0x25e6b8!=null&&_0x25e6b8[_0x478dfe(0x279)]&&_0x42eb53[_0x478dfe(0x1ef)]==='colorChannel1'&&(_0x42eb53[_0x478dfe(0x1ef)]=_0x25e6b8[_0x478dfe(0x279)]),_0x22f453[_0x478dfe(0x234)]===_0x478dfe(0x296)&&_0x42eb53['id']&&(_0x42eb53['id']=_0x42eb53['id']+_0x108da3[_0x478dfe(0x1db)]),Object['entries'](_0x42eb53)[_0x478dfe(0x26d)](function(_0x18841e){var _0x2c8254=_0x478dfe,_0x64e460=_0x18841e[0x0],_0x24dee3=_0x18841e[0x1];_0x64e460==='mask'&&typeof _0x24dee3==_0x2c8254(0x291)&&(_0x42eb53[_0x64e460]=_0x24dee3[_0x2c8254(0x29d)](/url\(#(.*)\)/,_0x2c8254(0x1e1)['concat'](_0x108da3['idSuffix'],')')));});var _0x413a9c=_0x108da3[_0x478dfe(0x24b)];return!_0x413a9c||_0x413a9c[_0x478dfe(0x276)]===0x0||(_0x22f453[_0x478dfe(0x234)]===_0x478dfe(0x24c)&&_0x42eb53['xlink:href']&&(_0x42eb53[_0x478dfe(0x280)]=_0x42eb53[_0x478dfe(0x280)]+_0x108da3[_0x478dfe(0x1db)]),Object[_0x478dfe(0x29b)](_0x42eb53)[_0x478dfe(0x26d)](function(_0x21e1e6){var _0x2c4d0b=_0x478dfe,_0xb5f9c4=_0x21e1e6[0x0],_0x33e6ff=_0x21e1e6[0x1];typeof _0x33e6ff==_0x2c4d0b(0x291)&&(_0x42eb53[_0xb5f9c4]=_0x33e6ff[_0x2c4d0b(0x29d)](/url\(#(.*)\)/,'url(#$1'[_0x2c4d0b(0x1fc)](_0x108da3[_0x2c4d0b(0x1db)],')')));})),_0x42eb53;}function V(_0x57a169,_0x481e2d){var _0x54070c=_0x50ae10,_0x395a68,_0x5dc7a3=_0x481e2d['defIds'];return!_0x5dc7a3||_0x5dc7a3[_0x54070c(0x276)]===0x0?_0x57a169:_0x57a169[_0x54070c(0x234)]===_0x54070c(0x205)&&(!((_0x395a68=_0x57a169['children'])===null||_0x395a68===void 0x0)&&_0x395a68[_0x54070c(0x276)])?u(u({},_0x57a169),{'children':_0x57a169[_0x54070c(0x22a)]['map'](function(_0x5e989c){var _0x3cdf40=_0x54070c;return typeof _0x5e989c[_0x3cdf40(0x25a)]['id']=='string'&&_0x5dc7a3&&_0x5dc7a3[_0x3cdf40(0x1f2)](_0x5e989c[_0x3cdf40(0x25a)]['id'])?u(u({},_0x5e989c),{'attrs':u(u({},_0x5e989c[_0x3cdf40(0x25a)]),{'id':_0x5e989c[_0x3cdf40(0x25a)]['id']+_0x481e2d[_0x3cdf40(0x1db)]})}):_0x5e989c;})}):_0x57a169;}function k(){var _0x2e7237=_0x50ae10;return Math['random']()[_0x2e7237(0x243)](0x24)[_0x2e7237(0x26e)](0x2,0x8);}j[_0x50ae10(0x253)]=_0x50ae10(0x216);var M={'tag':_0x50ae10(0x294),'attrs':{'xmlns':_0x50ae10(0x26b),'fill':_0x50ae10(0x24f),'viewBox':_0x50ae10(0x21b),'width':_0x50ae10(0x25e),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x50ae10(0x1cc),'d':_0x50ae10(0x1f1)}},{'tag':_0x50ae10(0x225),'attrs':{'fill':_0x50ae10(0x1cc),'d':_0x50ae10(0x1d7),'fillRule':'evenodd','clipRule':_0x50ae10(0x27d)}}]},P=f[_0x50ae10(0x2a2)](function(_0x104581,_0x53d9c8){var _0x5cb923=_0x50ae10;return f['createElement'](j,Object['assign']({},_0x104581,{'id':_0x5cb923(0x220),'ref':_0x53d9c8,'icon':M}));});P['displayName']=_0x50ae10(0x289);class O extends o[_0x50ae10(0x24a)]{constructor(){var _0x2aef76=_0x50ae10;super(...arguments),v(this,_0x2aef76(0x1df),new Set()),v(this,_0x2aef76(0x22c),new Set());}[_0x50ae10(0x250)](_0x4da4a0){var _0x257888=_0x50ae10;return this[_0x257888(0x1df)]['add'](_0x4da4a0),o[_0x257888(0x232)](()=>this[_0x257888(0x1df)][_0x257888(0x1dc)](_0x4da4a0));}[_0x50ae10(0x1d9)](_0x23b3d0){var _0x45fb78=_0x50ae10;return this[_0x45fb78(0x22c)][_0x45fb78(0x266)](_0x23b3d0),o['toDisposable'](()=>this['_reporters'][_0x45fb78(0x1dc)](_0x23b3d0));}[_0x50ae10(0x1f3)](_0x35c25e){var _0x272e9a=_0x50ae10;return this[_0x272e9a(0x1df)][_0x272e9a(0x256)](_0x35c25e);}[_0x50ae10(0x213)](_0x199478){var _0x2b22ee=_0x50ae10;return Array[_0x2b22ee(0x2a1)](this[_0x2b22ee(0x22c)])[_0x2b22ee(0x29c)](_0x47404c=>_0x47404c(_0x199478));}}var q=Object[_0x50ae10(0x28e)],R=(_0x1beb7a,_0x1b18b1,_0x3dc938,_0x215b37)=>{var _0x1b9d07=_0x50ae10;for(var _0x247d8e=_0x215b37>0x1?void 0x0:_0x215b37?q(_0x1b18b1,_0x3dc938):_0x1b18b1,_0x38ba8=_0x1beb7a[_0x1b9d07(0x276)]-0x1,_0x147221;_0x38ba8>=0x0;_0x38ba8--)(_0x147221=_0x1beb7a[_0x38ba8])&&(_0x247d8e=_0x147221(_0x247d8e)||_0x247d8e);return _0x247d8e;},S=(_0x1265c6,_0xc97aff)=>(_0x2d4140,_0x33ec86)=>_0xc97aff(_0x2d4140,_0x33ec86,_0x1265c6);exports[_0x50ae10(0x1f8)]=class extends o[_0x50ae10(0x22e)]{constructor(_0x528b1a,_0x476d83,_0x570d9b){var _0x30a2b8=_0x50ae10;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x528b1a,this[_0x30a2b8(0x28b)]=_0x476d83,this['_collabSessionService']=_0x570d9b,this[_0x30a2b8(0x26c)]());}async[_0x50ae10(0x1ea)](_0x1295c2){var _0x399287=_0x50ae10;return this[_0x399287(0x1e8)]['has'](_0x1295c2)||await this[_0x399287(0x242)](_0x1295c2),this[_0x399287(0x1e8)][_0x399287(0x259)](_0x1295c2);}[_0x50ae10(0x26c)](){var _0x39acef=_0x50ae10;this[_0x39acef(0x230)]['getTypeOfUnitAdded$'](o[_0x39acef(0x1d3)][_0x39acef(0x282)])['pipe'](b[_0x39acef(0x27c)](this[_0x39acef(0x297)]))[_0x39acef(0x241)](async _0x281585=>{var _0x4c59e8=_0x39acef;const _0xe28db6=_0x281585['getUnitId']();this[_0x4c59e8(0x1e8)][_0x4c59e8(0x256)](_0xe28db6)||this[_0x4c59e8(0x242)](_0xe28db6);}),this[_0x39acef(0x230)][_0x39acef(0x1d8)](o[_0x39acef(0x1d3)][_0x39acef(0x282)])[_0x39acef(0x246)](b[_0x39acef(0x27c)](this[_0x39acef(0x297)]))[_0x39acef(0x241)](_0x1a82d0=>{var _0x21a1ec=_0x39acef;const _0x3cc165=_0x1a82d0[_0x21a1ec(0x1c8)](),_0x55b180=this['_entities'][_0x21a1ec(0x259)](_0x3cc165);_0x55b180==null||_0x55b180[_0x21a1ec(0x1e5)]();});}async[_0x50ae10(0x242)](_0x28efb){var _0x3886c9=_0x50ae10;const _0x1ea7ec=await this[_0x3886c9(0x263)][_0x3886c9(0x1d0)](_0x28efb),_0x3677be=this[_0x3886c9(0x28b)][_0x3886c9(0x269)](exports['LiveShareCoordinator'],_0x28efb,_0x1ea7ec);return _0x3677be[_0x3886c9(0x20b)](),this[_0x3886c9(0x1e8)][_0x3886c9(0x27e)](_0x28efb,_0x3677be),_0x3677be;}},exports[_0x50ae10(0x1f8)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x50ae10(0x285)](o[_0x50ae10(0x260)])),S(0x2,o[_0x50ae10(0x285)](m['CollaborationSessionService']))],exports[_0x50ae10(0x1f8)]);var h=(_0x267b26=>(_0x267b26[_0x50ae10(0x292)]=_0x50ae10(0x1e7),_0x267b26[_0x50ae10(0x228)]=_0x50ae10(0x29a),_0x267b26[_0x50ae10(0x271)]='following',_0x267b26[_0x50ae10(0x290)]=_0x50ae10(0x204),_0x267b26[_0x50ae10(0x295)]='presenting',_0x267b26))(h||{});const W=_0x50ae10(0x262),G=0xc8;exports[_0x50ae10(0x278)]=class extends o['RxDisposable']{constructor(_0x4ce72b,_0x4aaee2,_0x5a2b07,_0x5764d7,_0x5d8d27){var _0x517e98=_0x50ae10;super(),v(this,_0x517e98(0x23f),new w['BehaviorSubject'](_0x517e98(0x29a))),v(this,_0x517e98(0x22b),this['_status$'][_0x517e98(0x1cf)]()),v(this,_0x517e98(0x26c),!0x1),v(this,_0x517e98(0x1ec),null),v(this,_0x517e98(0x25b),null),(this[_0x517e98(0x1fd)]=_0x4ce72b,this['_collabSession']=_0x4aaee2,this['_configService']=_0x5a2b07,this[_0x517e98(0x1e3)]=_0x5764d7,this[_0x517e98(0x210)]=_0x5d8d27);}get[_0x50ae10(0x248)](){var _0x3fd4b1=_0x50ae10;return this['_status$'][_0x3fd4b1(0x24e)]();}[_0x50ae10(0x1e5)](){var _0x69f7fb=_0x50ae10,_0x1ccca8;(_0x1ccca8=this[_0x69f7fb(0x1ec)])==null||_0x1ccca8[_0x69f7fb(0x1e5)](),this[_0x69f7fb(0x23f)][_0x69f7fb(0x23b)]('idle'),this[_0x69f7fb(0x23f)][_0x69f7fb(0x27b)]();}[_0x50ae10(0x20b)](){var _0x32a388=_0x50ae10;this[_0x32a388(0x26c)]||(this['_init']=!0x0,this[_0x32a388(0x298)][_0x32a388(0x1fa)]['pipe'](b[_0x32a388(0x27c)](this['dispose$']))['subscribe'](_0x230ef2=>{var _0x1038c7=_0x32a388;switch(_0x230ef2){case m[_0x1038c7(0x212)]['OFFLINE']:this['_handleOffline']();break;case m[_0x1038c7(0x212)][_0x1038c7(0x29e)]:this['_handleOnline']();break;}}),this[_0x32a388(0x298)][_0x32a388(0x274)][_0x32a388(0x246)](b[_0x32a388(0x27c)](this[_0x32a388(0x297)]))['subscribe'](_0x22e2ae=>{var _0x2cd896=_0x32a388;const {eventID:_0x2f3375}=_0x22e2ae;switch(_0x2f3375){case _[_0x2cd896(0x255)][_0x2cd896(0x273)]:this[_0x2cd896(0x207)](_0x22e2ae);break;case _['CollaborationEvent'][_0x2cd896(0x224)]:this[_0x2cd896(0x1fe)](_0x22e2ae);break;case _[_0x2cd896(0x255)]['LIVESHARE_TERMINATE']:this[_0x2cd896(0x22f)]();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this[_0x2cd896(0x20d)](_0x22e2ae);break;}}));}[_0x50ae10(0x203)](){var _0x15179a=_0x50ae10;this['_collabSession'][_0x15179a(0x1dd)]({'eventID':_['CollaborationEvent'][_0x15179a(0x1e6)],'data':{'unitID':this[_0x15179a(0x1fd)],'userID':this[_0x15179a(0x298)][_0x15179a(0x299)]()}},this[_0x15179a(0x1fd)]);}[_0x50ae10(0x268)](){var _0x1ffc31=_0x50ae10;this['_status']===_0x1ffc31(0x235)&&(this[_0x1ffc31(0x23f)][_0x1ffc31(0x23b)](_0x1ffc31(0x29a)),this[_0x1ffc31(0x298)][_0x1ffc31(0x1dd)]({'eventID':_['CollaborationEvent'][_0x1ffc31(0x223)],'data':{'unitID':this['_unitID']}},this[_0x1ffc31(0x1fd)]));}['startFollowing'](){var _0x12df99=_0x50ae10;this[_0x12df99(0x248)]===_0x12df99(0x204)&&(this[_0x12df99(0x23f)][_0x12df99(0x23b)]('following'),this[_0x12df99(0x1d5)]());}[_0x50ae10(0x1ce)](){var _0x435551=_0x50ae10;this[_0x435551(0x248)]===_0x435551(0x1ca)&&this[_0x435551(0x28a)]();}[_0x50ae10(0x207)](_0x4911ae){var _0x49e9cc=_0x50ae10;const {presenter:_0x2ea564}=_0x4911ae['data'],_0x2fa916=this[_0x49e9cc(0x298)][_0x49e9cc(0x299)]();this[_0x49e9cc(0x25b)]=_0x2ea564,_0x2ea564===_0x2fa916?(this['_stopFollowing'](),this[_0x49e9cc(0x202)]()):this[_0x49e9cc(0x248)]!==_0x49e9cc(0x204)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x50ae10(0x1f7)](){var _0x5da79f=_0x50ae10;const _0x8abbf3={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x5da79f(0x298)][_0x5da79f(0x1dd)](_0x8abbf3,this[_0x5da79f(0x1fd)]);}[_0x50ae10(0x22f)](){var _0x1c9110=_0x50ae10;this[_0x1c9110(0x25b)]=null,this['_status']!==_0x1c9110(0x235)&&this[_0x1c9110(0x2a3)]();}[_0x50ae10(0x20d)](_0x3bb2a6){var _0x51fb31=_0x50ae10;if(this[_0x51fb31(0x248)]==='following'&&this[_0x51fb31(0x25b)]===_0x3bb2a6['data'][_0x51fb31(0x267)]){const _0x52fd68=_['parseProtocolChangeset'](_0x3bb2a6[_0x51fb31(0x221)])['mutations'][_0x51fb31(0x244)]()[_0x51fb31(0x25d)](_0x14f81c=>_0x14f81c['id']===C[_0x51fb31(0x20a)]['id']);if(_0x52fd68){const _0x30e806=_0x52fd68[_0x51fb31(0x1f5)][_0x51fb31(0x29f)],_0x553b14=_0x52fd68[_0x51fb31(0x1f5)][_0x51fb31(0x28d)]['id'];setTimeout(()=>{var _0x592c0b=_0x51fb31;this[_0x592c0b(0x210)]['executeCommand'](C[_0x592c0b(0x286)]['id'],{'unitId':_0x30e806,'subUnitId':_0x553b14},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xad57e6=_0x50ae10;this[_0xad57e6(0x23f)][_0xad57e6(0x23b)](_0xad57e6(0x235));const _0x523564=new Map(),_0x4e59bf=this[_0xad57e6(0x1ec)]=new o[(_0xad57e6(0x231))]();_0x4e59bf[_0xad57e6(0x266)](o[_0xad57e6(0x232)](()=>{var _0x4289f7=_0xad57e6;_0x523564[_0x4289f7(0x26d)](_0x5d1a34=>_0x5d1a34['complete']()),_0x523564[_0x4289f7(0x1de)]();})),_0x4e59bf[_0xad57e6(0x266)](this['_commandService'][_0xad57e6(0x1fb)](_0x4451e0=>{var _0x16bc21=_0xad57e6,_0x2ba382;if(_0x4451e0[_0x16bc21(0x229)]!==o['CommandType'][_0x16bc21(0x249)]||!this[_0x16bc21(0x1e3)]['shouldShareOperation'](_0x4451e0['id']))return;const {id:_0x38b8fc}=_0x4451e0;let _0x567fcf;_0x523564[_0x16bc21(0x256)](_0x38b8fc)?_0x567fcf=_0x523564[_0x16bc21(0x259)](_0x38b8fc):(_0x567fcf=new w['Subject'](),_0x523564['set'](_0x38b8fc,_0x567fcf),_0x567fcf[_0x16bc21(0x246)](b['throttleTime']((_0x2ba382=this[_0x16bc21(0x2a5)][_0x16bc21(0x237)](W))!=null?_0x2ba382:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x16bc21(0x241)](_0x2c5a20=>{var _0x38841b=_0x16bc21;this[_0x38841b(0x298)][_0x38841b(0x1dd)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x38841b(0x1fd)],'operations':{[_0x2c5a20['id']]:{'id':_0x2c5a20['id'],'params':JSON[_0x38841b(0x23c)](_0x2c5a20['params'])}}}},this[_0x38841b(0x1fd)]);})),_0x567fcf['next'](_0x4451e0);})),this[_0xad57e6(0x1e3)]['getInitialStates'](this[_0xad57e6(0x1fd)])['forEach'](_0x5d536c=>this['_collabSession'][_0xad57e6(0x1dd)]({'eventID':_['CollaborationEvent'][_0xad57e6(0x224)],'data':{'unitID':this[_0xad57e6(0x1fd)],'operations':{[_0x5d536c['id']]:{'id':_0x5d536c['id'],'params':JSON[_0xad57e6(0x23c)](_0x5d536c[_0xad57e6(0x1f5)])}}}},this[_0xad57e6(0x1fd)]));}[_0x50ae10(0x275)](){var _0x19a10f=_0x50ae10,_0x2e4a65;this[_0x19a10f(0x23f)]['next'](_0x19a10f(0x29a)),(_0x2e4a65=this['_commandDisposable'])==null||_0x2e4a65['dispose'](),this[_0x19a10f(0x1ec)]=null;}[_0x50ae10(0x1d5)](){var _0x3a37e5=_0x50ae10,_0x306ed7;(_0x306ed7=this[_0x3a37e5(0x1ec)])==null||_0x306ed7[_0x3a37e5(0x1e5)](),this[_0x3a37e5(0x23f)][_0x3a37e5(0x23b)](_0x3a37e5(0x1ca));}[_0x50ae10(0x2a3)](){var _0x30407c=_0x50ae10,_0x4926e1;this[_0x30407c(0x23f)]['next'](_0x30407c(0x29a)),(_0x4926e1=this[_0x30407c(0x1ec)])==null||_0x4926e1[_0x30407c(0x1e5)](),this['_commandDisposable']=null;}[_0x50ae10(0x28a)](){var _0x49018f=_0x50ae10,_0x249873;this['_status$'][_0x49018f(0x23b)]('not-following'),(_0x249873=this[_0x49018f(0x1ec)])==null||_0x249873[_0x49018f(0x1e5)]();}[_0x50ae10(0x1fe)](_0x52d9bf){var _0x42a5a1=_0x50ae10;if(['presenting',_0x42a5a1(0x204),_0x42a5a1(0x1e7)]['includes'](this[_0x42a5a1(0x248)])||!_0x52d9bf[_0x42a5a1(0x221)][_0x42a5a1(0x208)]||_0x52d9bf[_0x42a5a1(0x221)]['presenter']===this[_0x42a5a1(0x298)][_0x42a5a1(0x299)]())return;this[_0x42a5a1(0x248)]==='idle'&&this[_0x42a5a1(0x1d5)]();const _0x5920e8=_0x52d9bf[_0x42a5a1(0x221)][_0x42a5a1(0x283)];Object['values'](_0x5920e8)['forEach'](_0x2d2994=>{var _0x2b0303=_0x42a5a1;this[_0x2b0303(0x210)][_0x2b0303(0x288)](_0x2d2994['id'],_0x2d2994[_0x2b0303(0x1f5)]?JSON[_0x2b0303(0x264)](_0x2d2994['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x6762ab=_0x50ae10,_0x3f406d;this['_status$'][_0x6762ab(0x23b)](_0x6762ab(0x1e7)),(_0x3f406d=this['_commandDisposable'])==null||_0x3f406d[_0x6762ab(0x1e5)]();}[_0x50ae10(0x25f)](){var _0x31e14=_0x50ae10;this[_0x31e14(0x23f)][_0x31e14(0x23b)](_0x31e14(0x29a)),this[_0x31e14(0x1f7)]();}},exports[_0x50ae10(0x278)]=R([S(0x2,o[_0x50ae10(0x239)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x50ae10(0x24d)])],exports['LiveShareCoordinator']);function A(){var _0x37a1cc=_0x50ae10;const _0x11fed2=p['useDependency'](exports['LiveShareController']),_0x1da677=p['useDependency'](o[_0x37a1cc(0x26f)]),_0x3f64e3=p['useObservable'](()=>_0x1da677[_0x37a1cc(0x1e0)](o[_0x37a1cc(0x1d3)][_0x37a1cc(0x282)]),void 0x0,!0x1,[]),[_0x440939,_0x3c1b67]=f[_0x37a1cc(0x214)](null),[_0x5da2da,_0x1ab7b3]=f[_0x37a1cc(0x214)](h[_0x37a1cc(0x228)]),_0x5c74cf=f[_0x37a1cc(0x233)](null);return f['useEffect'](()=>(_0x3f64e3&&_0x11fed2[_0x37a1cc(0x1ea)](_0x3f64e3[_0x37a1cc(0x1c8)]())['then'](_0x332c36=>{var _0x4fdb30=_0x37a1cc;_0x3c1b67(_0x332c36),_0x5c74cf['current']=_0x332c36[_0x4fdb30(0x22b)]['subscribe'](_0x1a0333=>{_0x1ab7b3(_0x1a0333);});}),()=>{var _0x540f73=_0x37a1cc,_0x39fe9a;(_0x39fe9a=_0x5c74cf['current'])==null||_0x39fe9a[_0x540f73(0x1ff)](),_0x5c74cf[_0x540f73(0x1ed)]=null;}),[_0x3f64e3,_0x11fed2]),_0x440939?l[_0x37a1cc(0x1f9)](g['Dropdown'],{'align':_0x37a1cc(0x219),'disabled':_0x5da2da===h[_0x37a1cc(0x292)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x37a1cc(0x1f9)](B,{'status':_0x5da2da,'coordinator':_0x440939}),'children':l['jsx'](_0x37a1cc(0x1f0),{'className':g['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5da2da===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5da2da!==h[_0x37a1cc(0x292)]}),'type':_0x37a1cc(0x1f0),'children':l[_0x37a1cc(0x1f9)](P,{'className':_0x37a1cc(0x209)})})}):null;}function B(_0x337aa9){var _0x48995e=_0x50ae10;const {status:_0x39c09d,coordinator:_0x57924b}=_0x337aa9;switch(_0x39c09d){case h[_0x48995e(0x228)]:return l[_0x48995e(0x1f9)](Y,{'coordinator':_0x57924b});case h[_0x48995e(0x271)]:return l[_0x48995e(0x1f9)](Z,{'coordinator':_0x57924b});case h[_0x48995e(0x290)]:return l[_0x48995e(0x1f9)](J,{'coordinator':_0x57924b});case h[_0x48995e(0x292)]:return l[_0x48995e(0x1f9)](z,{});case h[_0x48995e(0x295)]:return l[_0x48995e(0x1f9)](K,{'coordinator':_0x57924b});default:return null;}}function Y(_0x16b231){var _0xa1f9b9=_0x50ae10;const {coordinator:_0x5c1c10}=_0x16b231;return l[_0xa1f9b9(0x254)](l[_0xa1f9b9(0x25c)],{'children':[l[_0xa1f9b9(0x1f9)]('div',{'className':_0xa1f9b9(0x206),'children':'Present\x20this\x20document'}),l[_0xa1f9b9(0x1f9)](g[_0xa1f9b9(0x261)],{'onClick':()=>_0x5c1c10[_0xa1f9b9(0x203)](),'children':_0xa1f9b9(0x1ee)})]});}function Z(_0x270f77){var _0x3be067=_0x50ae10;const {coordinator:_0x136f6b}=_0x270f77;return l[_0x3be067(0x254)](l[_0x3be067(0x25c)],{'children':[l[_0x3be067(0x1f9)]('div',{'className':_0x3be067(0x206),'children':_0x3be067(0x1cb)}),l[_0x3be067(0x1f9)](g['Button'],{'onClick':()=>_0x136f6b[_0x3be067(0x1ce)](),'children':_0x3be067(0x21d)})]});}function J(_0x2e2836){var _0x22dd87=_0x50ae10;const {coordinator:_0x35b7b4}=_0x2e2836;return l[_0x22dd87(0x254)](l['Fragment'],{'children':[l[_0x22dd87(0x1f9)](_0x22dd87(0x265),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x22dd87(0x215)}),l[_0x22dd87(0x1f9)](g[_0x22dd87(0x261)],{'variant':_0x22dd87(0x22d),'onClick':()=>_0x35b7b4[_0x22dd87(0x27f)](),'children':'Start\x20following'})]});}function K(_0x45e7b8){var _0x19d69d=_0x50ae10;const {coordinator:_0x85d4b2}=_0x45e7b8;return l['jsxs'](l[_0x19d69d(0x25c)],{'children':[l['jsx'](_0x19d69d(0x265),{'className':_0x19d69d(0x206),'children':_0x19d69d(0x28c)}),l[_0x19d69d(0x1f9)](g[_0x19d69d(0x261)],{'variant':_0x19d69d(0x28f),'onClick':()=>_0x85d4b2[_0x19d69d(0x268)](),'children':_0x19d69d(0x1c7)})]});}function z(){var _0x2889a0=_0x50ae10;return l[_0x2889a0(0x1f9)](l[_0x2889a0(0x25c)],{'children':_0x2889a0(0x281)});}var Q=Object[_0x50ae10(0x28e)],X=(_0x27a13c,_0x1ce6f0,_0xc4867a,_0xdbcf2)=>{var _0x34e4ac=_0x50ae10;for(var _0x2fce9a=_0xdbcf2>0x1?void 0x0:_0xdbcf2?Q(_0x1ce6f0,_0xc4867a):_0x1ce6f0,_0x2f9158=_0x27a13c[_0x34e4ac(0x276)]-0x1,_0x321e44;_0x2f9158>=0x0;_0x2f9158--)(_0x321e44=_0x27a13c[_0x2f9158])&&(_0x2fce9a=_0x321e44(_0x2fce9a)||_0x2fce9a);return _0x2fce9a;},x=(_0x4ae75d,_0x1fe0ec)=>(_0x9d1fab,_0x4eaf12)=>_0x1fe0ec(_0x9d1fab,_0x4eaf12,_0x4ae75d);function _0x1e6f(){var _0x4f72e3=['dispose$','_collabSession','getMemberID','idle','entries','map','replace','ONLINE','unitId','DesktopLiveShareController','from','forwardRef','_beIdle','719330ywCGnE','_configService','Stop\x20presenting','getUnitId','13913xCCADS','following','You\x27re\x20following\x20the\x20presenter','currentColor','registerComponent','stopFollowing','asObservable','requireSession','UNIVER_LIVE_SHARE_PLUGIN','icon','UniverInstanceType','disposeWithMe','_startFollowing','call','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','getTypeOfUnitDisposed$','registerInitialStateReporter','SetZoomRatioOperation','idSuffix','delete','send','clear','_sharedOperations','getCurrentTypeOfUnit$','url(#$1','pluginName','_liveShareService','_uiPartsService','dispose','LIVESHARE_REQUEST_HOST','offline','_entities','_mountLiveShare','getLiveShareCoordinator','getOwnPropertySymbols','_commandDisposable','current','Start','fill','button','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','includes','shouldShareOperation','BuiltInUIPart','params','propertyIsEnumerable','_fetchOperations','LiveShareController','jsx','sessionStatus$','onCommandExecuted','concat','_unitID','_handleOperation','unsubscribe','153awFGAN','7IBYQRD','_startPresenting','tryStartPresenting','not-following','defs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','presenter','univer-size-4','InsertSheetMutation','init','prototype','_handleNewChangeSets','symbol','1821960FJHxfx','_commandService','connectInjector','SessionStatus','getInitialStates','useState','You\x27re\x20not\x20following\x20the\x20presenter','UniverIcon','assign','function','end','LiveShareService','0\x200\x2017\x2017','UniverCollaborationClientPlugin','Stop\x20following','18otvPbs','live-share.config','live-share-icon','data','mergeOverrideWithDependencies','LIVESHARE_TERMINATE','LIVESHARE_OPERATION','path','Module','UniverLiveSharePlugin','IDLE','type','children','status$','_reporters','text','RxDisposable','_handleTerminate','_univerInstanceService','DisposableCollection','toDisposable','useRef','tag','presenting','trim','getConfig','_config','IConfigService','indexOf','next','stringify','UNIVER_UNKNOWN','254790bzYTTw','_status$','onStarting','subscribe','_startLiveShareCoordinator','toString','reverse','className','pipe','IUIPartsService','_status','OPERATION','Disposable','defIds','use','ICommandService','getValue','none','registerSharedOperation','override','749106jegGFf','displayName','jsxs','CollaborationEvent','has','toStringTag','2617208BjhfzT','get','attrs','_presenter','Fragment','find','1em','_handleOnline','Injector','Button','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','parse','div','add','memberID','stopPresenting','createInstance','DependentOn','http://www.w3.org/2000/svg','_init','forEach','substring','IUniverInstanceService','defineProperty','FOLLOWING','setConfig','LIVESHARE_NEW_HOST','event$','_stopPresenting','length','registerDependencies','LiveShareCoordinator','colorChannel1','merge','complete','takeUntil','evenodd','set','startFollowing','xlink:href','You\x27are\x20offline.','UNIVER_SHEET','operations','hasOwnProperty','Inject','SetWorksheetActiveOperation','28980fAVSOb','executeCommand','LiveShareIcon','_stopFollowing','_injector','You\x27re\x20presenting\x20the\x20document','sheet','getOwnPropertyDescriptor','default','NOT_FOLLOWING','string','OFFLINE','extend','svg','PRESENTING','mask'];_0x1e6f=function(){return _0x4f72e3;};return _0x1e6f();}exports[_0x50ae10(0x2a0)]=class extends o[_0x50ae10(0x24a)]{constructor(_0x44b6b0,_0xcd38c7){var _0x2efec1=_0x50ae10;super(),this[_0x2efec1(0x28b)]=_0x44b6b0,this[_0x2efec1(0x1e4)]=_0xcd38c7,this['_mountLiveShare']();}[_0x50ae10(0x1e9)](){var _0x1ed2a9=_0x50ae10;this[_0x1ed2a9(0x1d4)](this[_0x1ed2a9(0x1e4)][_0x1ed2a9(0x1cd)](p[_0x1ed2a9(0x1f4)]['HEADER_MENU'],()=>p[_0x1ed2a9(0x211)](A,this['_injector'])));}},exports[_0x50ae10(0x2a0)]=X([x(0x0,o[_0x50ae10(0x285)](o[_0x50ae10(0x260)])),x(0x1,p[_0x50ae10(0x247)])],exports['DesktopLiveShareController']);const ee=_0x50ae10(0x21f),L={};var te=Object[_0x50ae10(0x28e)],ie=(_0xce1ad,_0x52416c,_0x2f26fb,_0x5d896a)=>{var _0x4420cb=_0x50ae10;for(var _0x120c28=_0x5d896a>0x1?void 0x0:_0x5d896a?te(_0x52416c,_0x2f26fb):_0x52416c,_0x287a39=_0xce1ad[_0x4420cb(0x276)]-0x1,_0x43887a;_0x287a39>=0x0;_0x287a39--)(_0x43887a=_0xce1ad[_0x287a39])&&(_0x120c28=_0x43887a(_0x120c28)||_0x120c28);return _0x120c28;},ne=(_0x1188a0,_0x6a01e6)=>(_0x3f4870,_0x2bf184)=>_0x6a01e6(_0x3f4870,_0x2bf184,_0x1188a0);let E=class extends o[_0x50ae10(0x24a)]{constructor(_0x464dc9){var _0x4e335c=_0x50ae10;super(),this[_0x4e335c(0x1e3)]=_0x464dc9,this[_0x4e335c(0x26c)]();}[_0x50ae10(0x26c)](){var _0x547ced=_0x50ae10;[D[_0x547ced(0x1da)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x424467=>{var _0x12bffd=_0x547ced;this[_0x12bffd(0x1d4)](this[_0x12bffd(0x1e3)][_0x12bffd(0x250)](_0x424467));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x50ae10(0x270)],se=Object[_0x50ae10(0x28e)],oe=(_0x210060,_0x31a341,_0x1ac721)=>_0x31a341 in _0x210060?re(_0x210060,_0x31a341,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ac721}):_0x210060[_0x31a341]=_0x1ac721,ae=(_0x5a1144,_0x185857,_0x2fc20d,_0x4e84f1)=>{var _0x37283d=_0x50ae10;for(var _0x43e0dd=_0x4e84f1>0x1?void 0x0:_0x4e84f1?se(_0x185857,_0x2fc20d):_0x185857,_0x326fed=_0x5a1144[_0x37283d(0x276)]-0x1,_0x3525da;_0x326fed>=0x0;_0x326fed--)(_0x3525da=_0x5a1144[_0x326fed])&&(_0x43e0dd=_0x3525da(_0x43e0dd)||_0x43e0dd);return _0x43e0dd;},N=(_0x48c3d6,_0x1795a0)=>(_0x5e7f85,_0xfa3a6a)=>_0x1795a0(_0x5e7f85,_0xfa3a6a,_0x48c3d6),T=(_0xc281c9,_0x31fe8f,_0x586f40)=>oe(_0xc281c9,typeof _0x31fe8f!=_0x50ae10(0x20e)?_0x31fe8f+'':_0x31fe8f,_0x586f40);const le=_0x50ae10(0x1d1);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x39e2c5=L,_0x2ee9b5,_0x4ed9f0){var _0x41df9c=_0x50ae10;super(),this['_config']=_0x39e2c5,this['_injector']=_0x2ee9b5,this[_0x41df9c(0x2a5)]=_0x4ed9f0;const {..._0x5cce44}=o[_0x41df9c(0x27a)]({},L,this[_0x41df9c(0x238)]);this[_0x41df9c(0x2a5)][_0x41df9c(0x272)](ee,_0x5cce44);}[_0x50ae10(0x240)](){var _0xca8d2a=_0x50ae10;o[_0xca8d2a(0x277)](this['_injector'],o[_0xca8d2a(0x222)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0xca8d2a(0x238)][_0xca8d2a(0x251)])),o['touchDependencies'](this['_injector'],[[E]]);}['onRendered'](){var _0x4348a2=_0x50ae10;o['touchDependencies'](this[_0x4348a2(0x28b)],[[exports[_0x4348a2(0x2a0)]]]);}},T(exports[_0x50ae10(0x227)],_0x50ae10(0x229),o[_0x50ae10(0x1d3)][_0x50ae10(0x23d)]),T(exports['UniverLiveSharePlugin'],_0x50ae10(0x1e2),le),exports[_0x50ae10(0x227)]=ae([o[_0x50ae10(0x26a)](m[_0x50ae10(0x21c)]),N(0x1,o[_0x50ae10(0x285)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x50ae10(0x227)]),exports['LiveShare']=A,exports[_0x50ae10(0x21a)]=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';function _0x4ac0(){var _0x14a0f5=['useRef','className','Module','SAME_OPERATION_SHARE_INTERVAL','substring','then','not-following','propertyIsEnumerable','delete','47869lMNNAp','next','add','send','getInitialStates','_collabSession','getCurrentTypeOfUnit$','text','132444NQAaCZ','mask','toString','BuiltInUIPart','IUIPartsService','symbol','merge','_init','evenodd','icon','call','Start','throttleTime','url(#$1','apply','getTypeOfUnitDisposed$','indexOf','operations','SessionStatus','memberID','LiveShareIcon','concat','presenter','includes','Stop\x20following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','155352yXnPKD','assign','random','_configService','values','onRendered','_uiPartsService','_reporters','IUniverInstanceService','parse','NOT_FOLLOWING','data','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','pluginName','SetZoomRatioOperation','replace','toDisposable','setConfig','svg','890mNpSXy','IConfigService','forwardRef','dispose','from','status$','onCommandExecuted','RxDisposable','LiveShareService','stringify','_collabSessionService','attrs','_handleOnline','function','length','dispose$','defineProperty','LiveShareController','6uYWTMU','registerComponent','_liveShareService','ONLINE','subscribe','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','_handleOperation','_beIdle','clear','UniverIcon','UNIVER_UNKNOWN','2713172piRnUz','registerSharedOperation','useDependency','getConfig','trim','_startFollowing','Fragment','useState','NEW_CHANGESETS','_commandService','_status','pipe','DesktopLiveShareController','_config','prototype','live-share.config','params','getUnitId','registerDependencies','defIds','You\x27re\x20presenting\x20the\x20document','Inject','init','ICommandService','_commandDisposable','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','Stop\x20presenting','_stopPresenting','tag','clsx','mergeOverrideWithDependencies','_univerInstanceService','onStarting','1983030xTHQqk','idSuffix','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','disposeWithMe','univer-size-4','_startLiveShareCoordinator','jsx','Plugin','getValue','event$','idle','InsertSheetMutation','string','unsubscribe','getOwnPropertyDescriptor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','2326376WcnLSl','_fetchOperations','_mountLiveShare','_handleOffline','UniverInstanceType','takeUntil','displayName','FOLLOWING','Injector','asObservable','CollaborationSessionService','PRESENTING','_stopFollowing','stopPresenting','_handleTerminate','1844470WHPLSn','startFollowing','LiveShareStatus','getLiveShareCoordinator','current','has','_status$','children','LIVESHARE_REQUEST_HOST','DisposableCollection','HEADER_MENU','path','UNIVER_SHEET','1em','useObservable','_sharedOperations','touchDependencies','div','8CJOmAf','SetWorksheetActiveOperation','Disposable','_startPresenting','stopFollowing','end','_injector','useEffect','offline','executeCommand','LIVESHARE_NEW_HOST','getOwnPropertySymbols','CommandType','IDLE','colorChannel1','presenting','Dropdown','OFFLINE','parseProtocolChangeset','reverse','forEach','jsxs','UniverLiveSharePlugin','fill','_entities','SetScrollOperation','requireSession','createInstance','map','currentColor','override','BehaviorSubject','get','default','0\x200\x2017\x2017','connectInjector','LiveShareCoordinator','shouldShareOperation','hasOwnProperty','LIVESHARE_TERMINATE','tryStartPresenting','toStringTag','createElement','xlink:href','LIVESHARE_OPERATION'];_0x4ac0=function(){return _0x14a0f5;};return _0x4ac0();}var _0xf84885=_0x4667;(function(_0x1f199c,_0x3d0d52){var _0x1ffdf4=_0x4667,_0x6f0b3e=_0x1f199c();while(!![]){try{var _0x3fe5cd=-parseInt(_0x1ffdf4(0x1f4))/0x1*(parseInt(_0x1ffdf4(0x23c))/0x2)+parseInt(_0x1ffdf4(0x216))/0x3*(-parseInt(_0x1ffdf4(0x1be))/0x4)+-parseInt(_0x1ffdf4(0x1ac))/0x5+-parseInt(_0x1ffdf4(0x18c))/0x6+-parseInt(_0x1ffdf4(0x248))/0x7+parseInt(_0x1ffdf4(0x19d))/0x8+-parseInt(_0x1ffdf4(0x1fc))/0x9*(-parseInt(_0x1ffdf4(0x22a))/0xa);if(_0x3fe5cd===_0x3d0d52)break;else _0x6f0b3e['push'](_0x6f0b3e['shift']());}catch(_0x56fe62){_0x6f0b3e['push'](_0x6f0b3e['shift']());}}}(_0x4ac0,0x4106f));var U=Object[_0xf84885(0x23a)],F=(_0x3d0f9d,_0x355a93,_0x3290b2)=>_0x355a93 in _0x3d0f9d?U(_0x3d0f9d,_0x355a93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3290b2}):_0x3d0f9d[_0x355a93]=_0x3290b2,v=(_0x1a1dff,_0x4ad229,_0xf283d4)=>F(_0x1a1dff,typeof _0x4ad229!=_0xf84885(0x201)?_0x4ad229+'':_0x4ad229,_0xf283d4);Object[_0xf84885(0x23a)](exports,Symbol[_0xf84885(0x1e7)],{'value':_0xf84885(0x1ed)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x21fd81=_0xf84885;return u=Object['assign']||function(_0x11c6b2){var _0x21e598=_0x4667;for(var _0x420751,_0x1cb06f=0x1,_0x3d2826=arguments[_0x21e598(0x238)];_0x1cb06f<_0x3d2826;_0x1cb06f++){_0x420751=arguments[_0x1cb06f];for(var _0x1e2a01 in _0x420751)Object['prototype'][_0x21e598(0x1e4)][_0x21e598(0x206)](_0x420751,_0x1e2a01)&&(_0x11c6b2[_0x1e2a01]=_0x420751[_0x1e2a01]);}return _0x11c6b2;},u[_0x21fd81(0x20a)](this,arguments);},$=function(_0x48134f,_0x416295){var _0x405224=_0xf84885,_0x21b7ad={};for(var _0x521531 in _0x48134f)Object[_0x405224(0x256)][_0x405224(0x1e4)][_0x405224(0x206)](_0x48134f,_0x521531)&&_0x416295[_0x405224(0x20c)](_0x521531)<0x0&&(_0x21b7ad[_0x521531]=_0x48134f[_0x521531]);if(_0x48134f!=null&&typeof Object[_0x405224(0x1c9)]==_0x405224(0x237)){for(var _0x1c650a=0x0,_0x521531=Object[_0x405224(0x1c9)](_0x48134f);_0x1c650a<_0x521531['length'];_0x1c650a++)_0x416295[_0x405224(0x20c)](_0x521531[_0x1c650a])<0x0&&Object[_0x405224(0x256)][_0x405224(0x1f2)]['call'](_0x48134f,_0x521531[_0x1c650a])&&(_0x21b7ad[_0x521531[_0x1c650a]]=_0x48134f[_0x521531[_0x1c650a]]);}return _0x21b7ad;},j=f['forwardRef'](function(_0x4a7288,_0x565f0a){var _0x16ba9a=_0xf84885,_0x4dd202=_0x4a7288[_0x16ba9a(0x205)],_0x35af30=_0x4a7288['id'],_0x45c6d5=_0x4a7288[_0x16ba9a(0x1ec)],_0x95e99a=_0x4a7288['extend'],_0x13446=$(_0x4a7288,[_0x16ba9a(0x205),'id',_0x16ba9a(0x1ec),'extend']),_0x92993f='univerjs-icon\x20univerjs-icon-'[_0x16ba9a(0x211)](_0x35af30,'\x20')[_0x16ba9a(0x211)](_0x45c6d5||'')[_0x16ba9a(0x24c)](),_0x17b55a=f[_0x16ba9a(0x1eb)]('_'[_0x16ba9a(0x211)](k()));return y(_0x4dd202,''[_0x16ba9a(0x211)](_0x35af30),{'defIds':_0x4dd202[_0x16ba9a(0x25b)],'idSuffix':_0x17b55a['current']},u({'ref':_0x565f0a,'className':_0x92993f},_0x13446),_0x95e99a);});function y(_0x1353a1,_0x3c4d81,_0x3dd3c2,_0xa58752,_0x5b0727){var _0x2af0a3=_0xf84885;return f[_0x2af0a3(0x1e8)](_0x1353a1[_0x2af0a3(0x187)],u(u({'key':_0x3c4d81},H(_0x1353a1,_0x3dd3c2,_0x5b0727)),_0xa58752),(V(_0x1353a1,_0x3dd3c2)['children']||[])[_0x2af0a3(0x1da)](function(_0x5e34d7,_0x37c639){var _0x57b47f=_0x2af0a3;return y(_0x5e34d7,''[_0x57b47f(0x211)](_0x3c4d81,'-')[_0x57b47f(0x211)](_0x1353a1[_0x57b47f(0x187)],'-')[_0x57b47f(0x211)](_0x37c639),_0x3dd3c2,void 0x0,_0x5b0727);}));}function H(_0x22f894,_0x2b44ba,_0x2f912b){var _0x808b05=_0xf84885,_0x16ee4a=u({},_0x22f894[_0x808b05(0x235)]);_0x2f912b!=null&&_0x2f912b[_0x808b05(0x1cc)]&&_0x16ee4a[_0x808b05(0x1d5)]==='colorChannel1'&&(_0x16ee4a[_0x808b05(0x1d5)]=_0x2f912b[_0x808b05(0x1cc)]),_0x22f894[_0x808b05(0x187)]==='mask'&&_0x16ee4a['id']&&(_0x16ee4a['id']=_0x16ee4a['id']+_0x2b44ba['idSuffix']),Object['entries'](_0x16ee4a)[_0x808b05(0x1d2)](function(_0x17725f){var _0xa37a26=_0x808b05,_0x4adfb7=_0x17725f[0x0],_0xbdd908=_0x17725f[0x1];_0x4adfb7===_0xa37a26(0x1fd)&&typeof _0xbdd908==_0xa37a26(0x199)&&(_0x16ee4a[_0x4adfb7]=_0xbdd908[_0xa37a26(0x226)](/url\(#(.*)\)/,_0xa37a26(0x209)[_0xa37a26(0x211)](_0x2b44ba[_0xa37a26(0x18d)],')')));});var _0x5eccb0=_0x2b44ba[_0x808b05(0x25b)];return!_0x5eccb0||_0x5eccb0[_0x808b05(0x238)]===0x0||(_0x22f894[_0x808b05(0x187)]==='use'&&_0x16ee4a[_0x808b05(0x1e9)]&&(_0x16ee4a['xlink:href']=_0x16ee4a[_0x808b05(0x1e9)]+_0x2b44ba[_0x808b05(0x18d)]),Object['entries'](_0x16ee4a)[_0x808b05(0x1d2)](function(_0x2b41d3){var _0x1d5d98=_0x808b05,_0x18dc2f=_0x2b41d3[0x0],_0x348e36=_0x2b41d3[0x1];typeof _0x348e36==_0x1d5d98(0x199)&&(_0x16ee4a[_0x18dc2f]=_0x348e36[_0x1d5d98(0x226)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2b44ba['idSuffix'],')')));})),_0x16ee4a;}function V(_0x200073,_0x5c54f4){var _0x5e1b2f=_0xf84885,_0x472c06,_0x1a8d3a=_0x5c54f4[_0x5e1b2f(0x25b)];return!_0x1a8d3a||_0x1a8d3a['length']===0x0?_0x200073:_0x200073[_0x5e1b2f(0x187)]==='defs'&&(!((_0x472c06=_0x200073['children'])===null||_0x472c06===void 0x0)&&_0x472c06['length'])?u(u({},_0x200073),{'children':_0x200073[_0x5e1b2f(0x1b3)][_0x5e1b2f(0x1da)](function(_0x414575){var _0x1bda78=_0x5e1b2f;return typeof _0x414575[_0x1bda78(0x235)]['id']==_0x1bda78(0x199)&&_0x1a8d3a&&_0x1a8d3a[_0x1bda78(0x213)](_0x414575[_0x1bda78(0x235)]['id'])?u(u({},_0x414575),{'attrs':u(u({},_0x414575['attrs']),{'id':_0x414575[_0x1bda78(0x235)]['id']+_0x5c54f4[_0x1bda78(0x18d)]})}):_0x414575;})}):_0x200073;}function k(){var _0x474768=_0xf84885;return Math[_0x474768(0x218)]()[_0x474768(0x1fe)](0x24)[_0x474768(0x1ef)](0x2,0x8);}j['displayName']=_0xf84885(0x246);var M={'tag':_0xf84885(0x229),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xf84885(0x1e0),'width':_0xf84885(0x1b9),'height':_0xf84885(0x1b9)},'children':[{'tag':_0xf84885(0x1b7),'attrs':{'fill':_0xf84885(0x1db),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0xf84885(0x1b7),'attrs':{'fill':_0xf84885(0x1db),'d':_0xf84885(0x215),'fillRule':_0xf84885(0x204),'clipRule':'evenodd'}}]},P=f[_0xf84885(0x22c)](function(_0x5bb17f,_0x2189b1){var _0x40044f=_0xf84885;return f[_0x40044f(0x1e8)](j,Object[_0x40044f(0x217)]({},_0x5bb17f,{'id':'live-share-icon','ref':_0x2189b1,'icon':M}));});P[_0xf84885(0x1a3)]=_0xf84885(0x210);class O extends o[_0xf84885(0x1c0)]{constructor(){var _0x30c28d=_0xf84885;super(...arguments),v(this,_0x30c28d(0x1bb),new Set()),v(this,_0x30c28d(0x21d),new Set());}[_0xf84885(0x249)](_0x428788){var _0xfd6b84=_0xf84885;return this[_0xfd6b84(0x1bb)][_0xfd6b84(0x1f6)](_0x428788),o[_0xfd6b84(0x227)](()=>this[_0xfd6b84(0x1bb)][_0xfd6b84(0x1f3)](_0x428788));}['registerInitialStateReporter'](_0x4c91ee){var _0xd1867a=_0xf84885;return this[_0xd1867a(0x21d)][_0xd1867a(0x1f6)](_0x4c91ee),o['toDisposable'](()=>this[_0xd1867a(0x21d)][_0xd1867a(0x1f3)](_0x4c91ee));}[_0xf84885(0x1e3)](_0x389710){var _0x7e869c=_0xf84885;return this[_0x7e869c(0x1bb)][_0x7e869c(0x1b1)](_0x389710);}[_0xf84885(0x1f8)](_0x16418f){var _0x1e89d9=_0xf84885;return Array[_0x1e89d9(0x22e)](this[_0x1e89d9(0x21d)])[_0x1e89d9(0x1da)](_0x17e750=>_0x17e750(_0x16418f));}}var q=Object[_0xf84885(0x19b)],R=(_0x2410a2,_0x26ff2f,_0xc16a17,_0x2c6915)=>{var _0x817d2d=_0xf84885;for(var _0x287c0d=_0x2c6915>0x1?void 0x0:_0x2c6915?q(_0x26ff2f,_0xc16a17):_0x26ff2f,_0x4a9d00=_0x2410a2[_0x817d2d(0x238)]-0x1,_0x3f5717;_0x4a9d00>=0x0;_0x4a9d00--)(_0x3f5717=_0x2410a2[_0x4a9d00])&&(_0x287c0d=_0x3f5717(_0x287c0d)||_0x287c0d);return _0x287c0d;},S=(_0x122687,_0x1044cc)=>(_0x53399b,_0x1e71e5)=>_0x1044cc(_0x53399b,_0x1e71e5,_0x122687);exports['LiveShareController']=class extends o[_0xf84885(0x231)]{constructor(_0x124f2d,_0x36f88e,_0x9d1f37){var _0x57c847=_0xf84885;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x124f2d,this[_0x57c847(0x1c4)]=_0x36f88e,this[_0x57c847(0x234)]=_0x9d1f37,this[_0x57c847(0x203)]());}async[_0xf84885(0x1af)](_0xf3bcc7){var _0x470d51=_0xf84885;return this[_0x470d51(0x1d6)][_0x470d51(0x1b1)](_0xf3bcc7)||await this[_0x470d51(0x192)](_0xf3bcc7),this[_0x470d51(0x1d6)][_0x470d51(0x1de)](_0xf3bcc7);}[_0xf84885(0x203)](){var _0x10ea59=_0xf84885;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x10ea59(0x1b8)])['pipe'](b[_0x10ea59(0x1a2)](this[_0x10ea59(0x239)]))['subscribe'](async _0x48f3ad=>{var _0x28afa5=_0x10ea59;const _0xb8a3b5=_0x48f3ad[_0x28afa5(0x259)]();this['_entities'][_0x28afa5(0x1b1)](_0xb8a3b5)||this[_0x28afa5(0x192)](_0xb8a3b5);}),this[_0x10ea59(0x18a)][_0x10ea59(0x20b)](o[_0x10ea59(0x1a1)]['UNIVER_SHEET'])[_0x10ea59(0x253)](b['takeUntil'](this[_0x10ea59(0x239)]))[_0x10ea59(0x240)](_0x29e472=>{var _0x5cb30c=_0x10ea59;const _0x153523=_0x29e472[_0x5cb30c(0x259)](),_0x296ae7=this[_0x5cb30c(0x1d6)][_0x5cb30c(0x1de)](_0x153523);_0x296ae7==null||_0x296ae7[_0x5cb30c(0x22d)]();});}async['_startLiveShareCoordinator'](_0x53b3d1){var _0x3aa09a=_0xf84885;const _0x46eb38=await this[_0x3aa09a(0x234)][_0x3aa09a(0x1d8)](_0x53b3d1),_0x174f0a=this[_0x3aa09a(0x1c4)][_0x3aa09a(0x1d9)](exports['LiveShareCoordinator'],_0x53b3d1,_0x46eb38);return _0x174f0a[_0x3aa09a(0x25e)](),this['_entities']['set'](_0x53b3d1,_0x174f0a),_0x174f0a;}},exports[_0xf84885(0x23b)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0xf84885(0x25d)](o['Injector'])),S(0x2,o[_0xf84885(0x25d)](m[_0xf84885(0x1a7)]))],exports[_0xf84885(0x23b)]);var h=(_0x30af4a=>(_0x30af4a[_0xf84885(0x1cf)]=_0xf84885(0x1c6),_0x30af4a['IDLE']=_0xf84885(0x197),_0x30af4a[_0xf84885(0x1a4)]=_0xf84885(0x182),_0x30af4a['NOT_FOLLOWING']='not-following',_0x30af4a['PRESENTING']=_0xf84885(0x1cd),_0x30af4a))(h||{});const W=_0xf84885(0x1ee),G=0xc8;exports[_0xf84885(0x1e2)]=class extends o[_0xf84885(0x231)]{constructor(_0x6682f6,_0xb01278,_0x258e02,_0x5236cb,_0x1c8eb1){var _0x640ea1=_0xf84885;super(),v(this,_0x640ea1(0x1b2),new w[(_0x640ea1(0x1dd))](_0x640ea1(0x197))),v(this,'status$',this[_0x640ea1(0x1b2)][_0x640ea1(0x1a6)]()),v(this,_0x640ea1(0x203),!0x1),v(this,_0x640ea1(0x181),null),v(this,_0x640ea1(0x242),null),(this[_0x640ea1(0x223)]=_0x6682f6,this[_0x640ea1(0x1f9)]=_0xb01278,this[_0x640ea1(0x219)]=_0x258e02,this[_0x640ea1(0x23e)]=_0x5236cb,this[_0x640ea1(0x251)]=_0x1c8eb1);}get[_0xf84885(0x252)](){var _0x162783=_0xf84885;return this[_0x162783(0x1b2)][_0x162783(0x195)]();}[_0xf84885(0x22d)](){var _0x58a2b1=_0xf84885,_0x4949fa;(_0x4949fa=this['_commandDisposable'])==null||_0x4949fa[_0x58a2b1(0x22d)](),this[_0x58a2b1(0x1b2)][_0x58a2b1(0x1f5)](_0x58a2b1(0x197)),this['_status$']['complete']();}[_0xf84885(0x25e)](){var _0x4b9ffe=_0xf84885;this['_init']||(this[_0x4b9ffe(0x203)]=!0x0,this[_0x4b9ffe(0x1f9)]['sessionStatus$'][_0x4b9ffe(0x253)](b[_0x4b9ffe(0x1a2)](this[_0x4b9ffe(0x239)]))[_0x4b9ffe(0x240)](_0x3fd182=>{var _0x2e1b0f=_0x4b9ffe;switch(_0x3fd182){case m[_0x2e1b0f(0x20e)][_0x2e1b0f(0x1cf)]:this[_0x2e1b0f(0x1a0)]();break;case m[_0x2e1b0f(0x20e)][_0x2e1b0f(0x23f)]:this['_handleOnline']();break;}}),this[_0x4b9ffe(0x1f9)][_0x4b9ffe(0x196)][_0x4b9ffe(0x253)](b[_0x4b9ffe(0x1a2)](this[_0x4b9ffe(0x239)]))[_0x4b9ffe(0x240)](_0x1f94a1=>{var _0x525732=_0x4b9ffe;const {eventID:_0x234f81}=_0x1f94a1;switch(_0x234f81){case _['CollaborationEvent'][_0x525732(0x1c8)]:this['_handleNewHost'](_0x1f94a1);break;case _['CollaborationEvent'][_0x525732(0x1ea)]:this[_0x525732(0x243)](_0x1f94a1);break;case _['CollaborationEvent'][_0x525732(0x1e5)]:this[_0x525732(0x1ab)]();break;case _['CollaborationEvent'][_0x525732(0x250)]:this['_handleNewChangeSets'](_0x1f94a1);break;}}));}[_0xf84885(0x1e6)](){var _0xfa521a=_0xf84885;this[_0xfa521a(0x1f9)][_0xfa521a(0x1f7)]({'eventID':_[_0xfa521a(0x18e)][_0xfa521a(0x1b4)],'data':{'unitID':this[_0xfa521a(0x223)],'userID':this['_collabSession']['getMemberID']()}},this[_0xfa521a(0x223)]);}[_0xf84885(0x1aa)](){var _0x113d82=_0xf84885;this[_0x113d82(0x252)]===_0x113d82(0x1cd)&&(this[_0x113d82(0x1b2)][_0x113d82(0x1f5)]('idle'),this[_0x113d82(0x1f9)][_0x113d82(0x1f7)]({'eventID':_[_0x113d82(0x18e)][_0x113d82(0x1e5)],'data':{'unitID':this['_unitID']}},this[_0x113d82(0x223)]));}[_0xf84885(0x1ad)](){var _0x27006a=_0xf84885;this[_0x27006a(0x252)]==='not-following'&&(this[_0x27006a(0x1b2)]['next']('following'),this['_startFollowing']());}[_0xf84885(0x1c2)](){var _0x4c28af=_0xf84885;this[_0x4c28af(0x252)]===_0x4c28af(0x182)&&this[_0x4c28af(0x1a9)]();}['_handleNewHost'](_0x3cee08){var _0x3b1f5b=_0xf84885;const {presenter:_0x2f2cfa}=_0x3cee08[_0x3b1f5b(0x221)],_0x3c2f33=this[_0x3b1f5b(0x1f9)]['getMemberID']();this[_0x3b1f5b(0x242)]=_0x2f2cfa,_0x2f2cfa===_0x3c2f33?(this['_stopFollowing'](),this[_0x3b1f5b(0x1c1)]()):this[_0x3b1f5b(0x252)]!==_0x3b1f5b(0x1f1)&&(this[_0x3b1f5b(0x186)](),this[_0x3b1f5b(0x24d)]());}[_0xf84885(0x19e)](){var _0x124c75=_0xf84885;const _0x198826={'eventID':_[_0x124c75(0x18e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x198826,this[_0x124c75(0x223)]);}[_0xf84885(0x1ab)](){var _0x118d85=_0xf84885;this[_0x118d85(0x242)]=null,this['_status']!==_0x118d85(0x1cd)&&this[_0x118d85(0x244)]();}['_handleNewChangeSets'](_0x2f8de7){var _0x3747f7=_0xf84885;if(this['_status']===_0x3747f7(0x182)&&this[_0x3747f7(0x242)]===_0x2f8de7['data'][_0x3747f7(0x20f)]){const _0x466243=_[_0x3747f7(0x1d0)](_0x2f8de7[_0x3747f7(0x221)])['mutations'][_0x3747f7(0x1d1)]()['find'](_0x3c7897=>_0x3c7897['id']===C[_0x3747f7(0x198)]['id']);if(_0x466243){const _0x546b29=_0x466243[_0x3747f7(0x258)]['unitId'],_0x3ad1b7=_0x466243[_0x3747f7(0x258)]['sheet']['id'];setTimeout(()=>{var _0xe520d=_0x3747f7;this[_0xe520d(0x251)][_0xe520d(0x1c7)](C[_0xe520d(0x1bf)]['id'],{'unitId':_0x546b29,'subUnitId':_0x3ad1b7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xdfd6d=_0xf84885;this[_0xdfd6d(0x1b2)][_0xdfd6d(0x1f5)]('presenting');const _0x1766fd=new Map(),_0x440ae5=this['_commandDisposable']=new o[(_0xdfd6d(0x1b5))]();_0x440ae5['add'](o[_0xdfd6d(0x227)](()=>{var _0xb852a6=_0xdfd6d;_0x1766fd['forEach'](_0x5c6ba6=>_0x5c6ba6['complete']()),_0x1766fd[_0xb852a6(0x245)]();})),_0x440ae5[_0xdfd6d(0x1f6)](this['_commandService'][_0xdfd6d(0x230)](_0x118b33=>{var _0x1213be=_0xdfd6d,_0x3a147d;if(_0x118b33['type']!==o[_0x1213be(0x1ca)]['OPERATION']||!this[_0x1213be(0x23e)][_0x1213be(0x1e3)](_0x118b33['id']))return;const {id:_0x8a29d3}=_0x118b33;let _0x851465;_0x1766fd[_0x1213be(0x1b1)](_0x8a29d3)?_0x851465=_0x1766fd['get'](_0x8a29d3):(_0x851465=new w['Subject'](),_0x1766fd['set'](_0x8a29d3,_0x851465),_0x851465[_0x1213be(0x253)](b[_0x1213be(0x208)]((_0x3a147d=this['_configService'][_0x1213be(0x24b)](W))!=null?_0x3a147d:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52adc8=>{var _0x3258a9=_0x1213be;this['_collabSession'][_0x3258a9(0x1f7)]({'eventID':_[_0x3258a9(0x18e)][_0x3258a9(0x1ea)],'data':{'unitID':this[_0x3258a9(0x223)],'operations':{[_0x52adc8['id']]:{'id':_0x52adc8['id'],'params':JSON[_0x3258a9(0x233)](_0x52adc8[_0x3258a9(0x258)])}}}},this[_0x3258a9(0x223)]);})),_0x851465['next'](_0x118b33);})),this[_0xdfd6d(0x23e)]['getInitialStates'](this[_0xdfd6d(0x223)])['forEach'](_0xa2f423=>this[_0xdfd6d(0x1f9)][_0xdfd6d(0x1f7)]({'eventID':_['CollaborationEvent'][_0xdfd6d(0x1ea)],'data':{'unitID':this[_0xdfd6d(0x223)],'operations':{[_0xa2f423['id']]:{'id':_0xa2f423['id'],'params':JSON[_0xdfd6d(0x233)](_0xa2f423[_0xdfd6d(0x258)])}}}},this['_unitID']));}[_0xf84885(0x186)](){var _0x42de7f=_0xf84885,_0x314f9d;this[_0x42de7f(0x1b2)]['next'](_0x42de7f(0x197)),(_0x314f9d=this['_commandDisposable'])==null||_0x314f9d[_0x42de7f(0x22d)](),this[_0x42de7f(0x181)]=null;}['_startFollowing'](){var _0x10803e=_0xf84885,_0x12e902;(_0x12e902=this[_0x10803e(0x181)])==null||_0x12e902[_0x10803e(0x22d)](),this['_status$'][_0x10803e(0x1f5)]('following');}['_beIdle'](){var _0x28e7ac=_0xf84885,_0x5a2bf2;this[_0x28e7ac(0x1b2)][_0x28e7ac(0x1f5)](_0x28e7ac(0x197)),(_0x5a2bf2=this[_0x28e7ac(0x181)])==null||_0x5a2bf2[_0x28e7ac(0x22d)](),this[_0x28e7ac(0x181)]=null;}[_0xf84885(0x1a9)](){var _0x296238=_0xf84885,_0x5c2a79;this[_0x296238(0x1b2)][_0x296238(0x1f5)](_0x296238(0x1f1)),(_0x5c2a79=this[_0x296238(0x181)])==null||_0x5c2a79[_0x296238(0x22d)]();}[_0xf84885(0x243)](_0x25afe4){var _0x43324f=_0xf84885;if([_0x43324f(0x1cd),_0x43324f(0x1f1),_0x43324f(0x1c6)][_0x43324f(0x213)](this['_status'])||!_0x25afe4[_0x43324f(0x221)][_0x43324f(0x212)]||_0x25afe4['data'][_0x43324f(0x212)]===this[_0x43324f(0x1f9)]['getMemberID']())return;this[_0x43324f(0x252)]==='idle'&&this[_0x43324f(0x24d)]();const _0x2a2964=_0x25afe4[_0x43324f(0x221)][_0x43324f(0x20d)];Object[_0x43324f(0x21a)](_0x2a2964)[_0x43324f(0x1d2)](_0x1fecbf=>{var _0x27c725=_0x43324f;this[_0x27c725(0x251)]['executeCommand'](_0x1fecbf['id'],_0x1fecbf[_0x27c725(0x258)]?JSON[_0x27c725(0x21f)](_0x1fecbf['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3f36d5=_0xf84885,_0x578f6e;this['_status$']['next'](_0x3f36d5(0x1c6)),(_0x578f6e=this[_0x3f36d5(0x181)])==null||_0x578f6e[_0x3f36d5(0x22d)]();}[_0xf84885(0x236)](){var _0x4e78d1=_0xf84885;this['_status$'][_0x4e78d1(0x1f5)](_0x4e78d1(0x197)),this[_0x4e78d1(0x19e)]();}},exports[_0xf84885(0x1e2)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0xf84885(0x25d)](O)),S(0x4,o[_0xf84885(0x25f)])],exports[_0xf84885(0x1e2)]);function A(){var _0x58b100=_0xf84885;const _0x165ff2=p[_0x58b100(0x24a)](exports[_0x58b100(0x23b)]),_0x119e9a=p[_0x58b100(0x24a)](o[_0x58b100(0x21e)]),_0x24d1d3=p[_0x58b100(0x1ba)](()=>_0x119e9a[_0x58b100(0x1fa)](o[_0x58b100(0x1a1)][_0x58b100(0x1b8)]),void 0x0,!0x1,[]),[_0x23c052,_0x4e6905]=f[_0x58b100(0x24f)](null),[_0x3b579b,_0x4685bc]=f['useState'](h['IDLE']),_0x45e7e9=f[_0x58b100(0x1eb)](null);return f[_0x58b100(0x1c5)](()=>(_0x24d1d3&&_0x165ff2[_0x58b100(0x1af)](_0x24d1d3[_0x58b100(0x259)]())[_0x58b100(0x1f0)](_0x5b5145=>{var _0x58a3a1=_0x58b100;_0x4e6905(_0x5b5145),_0x45e7e9[_0x58a3a1(0x1b0)]=_0x5b5145[_0x58a3a1(0x22f)][_0x58a3a1(0x240)](_0x518bc1=>{_0x4685bc(_0x518bc1);});}),()=>{var _0x335a1d=_0x58b100,_0x4c4323;(_0x4c4323=_0x45e7e9['current'])==null||_0x4c4323[_0x335a1d(0x19a)](),_0x45e7e9[_0x335a1d(0x1b0)]=null;}),[_0x24d1d3,_0x165ff2]),_0x23c052?l[_0x58b100(0x193)](g[_0x58b100(0x1ce)],{'align':_0x58b100(0x1c3),'disabled':_0x3b579b===h[_0x58b100(0x1cf)],'className':_0x58b100(0x222),'overlay':l['jsx'](B,{'status':_0x3b579b,'coordinator':_0x23c052}),'children':l[_0x58b100(0x193)]('button',{'className':g[_0x58b100(0x188)](_0x58b100(0x19c),{'univer-cursor-not-allowed':_0x3b579b===h[_0x58b100(0x1cf)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b579b!==h[_0x58b100(0x1cf)]}),'type':'button','children':l[_0x58b100(0x193)](P,{'className':_0x58b100(0x191)})})}):null;}function B(_0x44b226){var _0x9b007=_0xf84885;const {status:_0x738e0b,coordinator:_0x58f577}=_0x44b226;switch(_0x738e0b){case h[_0x9b007(0x1cb)]:return l[_0x9b007(0x193)](Y,{'coordinator':_0x58f577});case h[_0x9b007(0x1a4)]:return l[_0x9b007(0x193)](Z,{'coordinator':_0x58f577});case h[_0x9b007(0x220)]:return l['jsx'](J,{'coordinator':_0x58f577});case h['OFFLINE']:return l['jsx'](z,{});case h[_0x9b007(0x1a8)]:return l[_0x9b007(0x193)](K,{'coordinator':_0x58f577});default:return null;}}function Y(_0x7744f7){var _0x377259=_0xf84885;const {coordinator:_0x35b89f}=_0x7744f7;return l[_0x377259(0x1d3)](l[_0x377259(0x24e)],{'children':[l[_0x377259(0x193)](_0x377259(0x1bd),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](g[_0x377259(0x184)],{'onClick':()=>_0x35b89f['tryStartPresenting'](),'children':_0x377259(0x207)})]});}function Z(_0x584dd7){var _0x1ff399=_0xf84885;const {coordinator:_0x4dba4c}=_0x584dd7;return l[_0x1ff399(0x1d3)](l[_0x1ff399(0x24e)],{'children':[l[_0x1ff399(0x193)](_0x1ff399(0x1bd),{'className':_0x1ff399(0x183),'children':_0x1ff399(0x18f)}),l[_0x1ff399(0x193)](g['Button'],{'onClick':()=>_0x4dba4c[_0x1ff399(0x1c2)](),'children':_0x1ff399(0x214)})]});}function J(_0x22138c){var _0x221fb8=_0xf84885;const {coordinator:_0x148fe7}=_0x22138c;return l[_0x221fb8(0x1d3)](l['Fragment'],{'children':[l[_0x221fb8(0x193)](_0x221fb8(0x1bd),{'className':_0x221fb8(0x183),'children':_0x221fb8(0x241)}),l[_0x221fb8(0x193)](g['Button'],{'variant':_0x221fb8(0x1fb),'onClick':()=>_0x148fe7['startFollowing'](),'children':'Start\x20following'})]});}function K(_0x499997){var _0x3d351c=_0xf84885;const {coordinator:_0x1174de}=_0x499997;return l['jsxs'](l[_0x3d351c(0x24e)],{'children':[l[_0x3d351c(0x193)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d351c(0x25c)}),l['jsx'](g[_0x3d351c(0x184)],{'variant':_0x3d351c(0x1df),'onClick':()=>_0x1174de[_0x3d351c(0x1aa)](),'children':_0x3d351c(0x185)})]});}function z(){return l['jsx'](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0xf84885(0x19b)],X=(_0x1bc7cf,_0x51d810,_0x106f1e,_0x5681eb)=>{for(var _0x2a135a=_0x5681eb>0x1?void 0x0:_0x5681eb?Q(_0x51d810,_0x106f1e):_0x51d810,_0x4e509b=_0x1bc7cf['length']-0x1,_0x38e9eb;_0x4e509b>=0x0;_0x4e509b--)(_0x38e9eb=_0x1bc7cf[_0x4e509b])&&(_0x2a135a=_0x38e9eb(_0x2a135a)||_0x2a135a);return _0x2a135a;},x=(_0x2bee7d,_0x450830)=>(_0x3f4c6f,_0x1a4feb)=>_0x450830(_0x3f4c6f,_0x1a4feb,_0x2bee7d);exports[_0xf84885(0x254)]=class extends o[_0xf84885(0x1c0)]{constructor(_0x17c157,_0x23f4dd){var _0x57d1c4=_0xf84885;super(),this['_injector']=_0x17c157,this[_0x57d1c4(0x21c)]=_0x23f4dd,this[_0x57d1c4(0x19f)]();}[_0xf84885(0x19f)](){var _0x2b1833=_0xf84885;this[_0x2b1833(0x190)](this[_0x2b1833(0x21c)][_0x2b1833(0x23d)](p[_0x2b1833(0x1ff)][_0x2b1833(0x1b6)],()=>p[_0x2b1833(0x1e1)](A,this[_0x2b1833(0x1c4)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o['Injector'])),x(0x1,p[_0xf84885(0x200)])],exports[_0xf84885(0x254)]);function _0x4667(_0x33dd7f,_0x339d9e){var _0x4ac01f=_0x4ac0();return _0x4667=function(_0x466776,_0x4e7fef){_0x466776=_0x466776-0x181;var _0x392ffd=_0x4ac01f[_0x466776];return _0x392ffd;},_0x4667(_0x33dd7f,_0x339d9e);}const ee=_0xf84885(0x257),L={};var te=Object[_0xf84885(0x19b)],ie=(_0x40e4d9,_0x1c4bda,_0x86134,_0x1e9a66)=>{var _0x2db270=_0xf84885;for(var _0xccc074=_0x1e9a66>0x1?void 0x0:_0x1e9a66?te(_0x1c4bda,_0x86134):_0x1c4bda,_0x44297b=_0x40e4d9[_0x2db270(0x238)]-0x1,_0x37996c;_0x44297b>=0x0;_0x44297b--)(_0x37996c=_0x40e4d9[_0x44297b])&&(_0xccc074=_0x37996c(_0xccc074)||_0xccc074);return _0xccc074;},ne=(_0x4c221a,_0x1e42cb)=>(_0x385f9a,_0x1043f0)=>_0x1e42cb(_0x385f9a,_0x1043f0,_0x4c221a);let E=class extends o[_0xf84885(0x1c0)]{constructor(_0x155558){var _0x1f00a2=_0xf84885;super(),this[_0x1f00a2(0x23e)]=_0x155558,this['_init']();}[_0xf84885(0x203)](){var _0x138c6c=_0xf84885;[D[_0x138c6c(0x225)]['id'],D[_0x138c6c(0x1d7)]['id'],C[_0x138c6c(0x1bf)]['id']]['forEach'](_0x3b1840=>{var _0x212cab=_0x138c6c;this[_0x212cab(0x190)](this[_0x212cab(0x23e)][_0x212cab(0x249)](_0x3b1840));});}};E=ie([ne(0x0,o[_0xf84885(0x25d)](O))],E);var re=Object[_0xf84885(0x23a)],se=Object[_0xf84885(0x19b)],oe=(_0x26a6b4,_0x258a45,_0x531035)=>_0x258a45 in _0x26a6b4?re(_0x26a6b4,_0x258a45,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531035}):_0x26a6b4[_0x258a45]=_0x531035,ae=(_0x1818e7,_0x1c93a1,_0x327dbf,_0x503a8f)=>{var _0x61d33f=_0xf84885;for(var _0x10c774=_0x503a8f>0x1?void 0x0:_0x503a8f?se(_0x1c93a1,_0x327dbf):_0x1c93a1,_0x464489=_0x1818e7[_0x61d33f(0x238)]-0x1,_0x15f29b;_0x464489>=0x0;_0x464489--)(_0x15f29b=_0x1818e7[_0x464489])&&(_0x10c774=_0x15f29b(_0x10c774)||_0x10c774);return _0x10c774;},N=(_0x24b90b,_0x18af8e)=>(_0x22daa6,_0x1cba3a)=>_0x18af8e(_0x22daa6,_0x1cba3a,_0x24b90b),T=(_0x4ac954,_0x22045c,_0x5164ad)=>oe(_0x4ac954,typeof _0x22045c!=_0xf84885(0x201)?_0x22045c+'':_0x22045c,_0x5164ad);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0xf84885(0x194)]{constructor(_0xfbb4b5=L,_0x15d5f4,_0x499a4a){var _0x44ef37=_0xf84885;super(),this[_0x44ef37(0x255)]=_0xfbb4b5,this['_injector']=_0x15d5f4,this[_0x44ef37(0x219)]=_0x499a4a;const {..._0x37fd4f}=o[_0x44ef37(0x202)]({},L,this['_config']);this[_0x44ef37(0x219)][_0x44ef37(0x228)](ee,_0x37fd4f);}[_0xf84885(0x18b)](){var _0x148d76=_0xf84885;o[_0x148d76(0x25a)](this[_0x148d76(0x1c4)],o[_0x148d76(0x189)]([[O],[exports[_0x148d76(0x23b)]],[E],[exports[_0x148d76(0x254)]]],this[_0x148d76(0x255)][_0x148d76(0x1dc)])),o[_0x148d76(0x1bc)](this[_0x148d76(0x1c4)],[[E]]);}[_0xf84885(0x21b)](){var _0x1226f8=_0xf84885;o[_0x1226f8(0x1bc)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0xf84885(0x1d4)],'type',o[_0xf84885(0x1a1)][_0xf84885(0x247)]),T(exports['UniverLiveSharePlugin'],_0xf84885(0x224),le),exports[_0xf84885(0x1d4)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0xf84885(0x25d)](o[_0xf84885(0x1a5)])),N(0x2,o[_0xf84885(0x22b)])],exports[_0xf84885(0x1d4)]),exports['LiveShare']=A,exports[_0xf84885(0x232)]=O,exports[_0xf84885(0x1ae)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x87e7bd=_0x3379;function _0x124e(){var _0x457754=['PRESENTING','getInitialStates','Present\x20this\x20document','OPERATION','stopFollowing','33433930hmcKIr','subscribe','_unitID','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','16gWsjnx','complete','_univerInstanceService','next','stopPresenting','Start','includes','unsubscribe','_fetchOperations','random','function','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_entities','evenodd','UNIVER_UNKNOWN','send','_reporters','live-share-icon','OFFLINE','button','defs','displayName','Stop\x20following','NEW_CHANGESETS','_stopFollowing','div','_status','presenting','status$','not-following','_handleNewChangeSets','apply','LiveShareIcon','_injector','toString','FOLLOWING','getConfig','clear','registerInitialStateReporter','_sharedOperations','indexOf','844320sZZxBK','hasOwnProperty','text','_collabSessionService','url(#$1','NOT_FOLLOWING','set','mask','_configService','ONLINE','registerSharedOperation','_mountLiveShare','offline','reverse','getValue','values','params','_liveShareService','has','createInstance','propertyIsEnumerable','get','You\x27are\x20offline.','_uiPartsService','attrs','icon','LIVESHARE_NEW_HOST','getUnitId','call','substring','then','shouldShareOperation','className','length','presenter','from','_status$','tryStartPresenting','getLiveShareCoordinator','init','onRendered','defineProperty','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','tag','9OYZUqF','mutations','svg','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','1904742SOBnvJ','extend','defIds','_init','_startPresenting','_handleTerminate','none','SAME_OPERATION_SHARE_INTERVAL','idle','xlink:href','_handleOnline','current','data','event$','registerComponent','assign','idSuffix','IDLE','_handleOperation','dispose','546363BXZXMN','getCurrentTypeOfUnit$','asObservable','LIVESHARE_REQUEST_HOST','type','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','replace','1em','getOwnPropertySymbols','_presenter','parse','You\x27re\x20following\x20the\x20presenter','string','4079928ByTSUG','UNIVER_SHEET','LIVESHARE_OPERATION','forEach','2577759Sjtvji','memberID','_startLiveShareCoordinator','colorChannel1','unitId','map','_config','entries','getOwnPropertyDescriptor','Start\x20following','startFollowing','0\x200\x2017\x2017','prototype','end','path','getMemberID','children','add','_commandDisposable','requireSession','getTypeOfUnitDisposed$','following','dispose$','_commandService','_collabSession','disposeWithMe','onCommandExecuted','_handleNewHost','concat','_startFollowing','executeCommand','symbol','_handleOffline','sheet','35dbqWfV','sessionStatus$','currentColor','1279015bjbUrO','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-'];_0x124e=function(){return _0x457754;};return _0x124e();}(function(_0x57e37c,_0x24e089){var _0x2358d8=_0x3379,_0x2a2100=_0x57e37c();while(!![]){try{var _0x19de2f=-parseInt(_0x2358d8(0x11c))/0x1+parseInt(_0x2358d8(0x108))/0x2+-parseInt(_0x2358d8(0x12f))/0x3+parseInt(_0x2358d8(0x161))/0x4*(-parseInt(_0x2358d8(0x154))/0x5)+-parseInt(_0x2358d8(0x12b))/0x6+parseInt(_0x2358d8(0x151))/0x7*(-parseInt(_0x2358d8(0x18b))/0x8)+parseInt(_0x2358d8(0x103))/0x9*(parseInt(_0x2358d8(0x15d))/0xa);if(_0x19de2f===_0x24e089)break;else _0x2a2100['push'](_0x2a2100['shift']());}catch(_0x505c17){_0x2a2100['push'](_0x2a2100['shift']());}}}(_0x124e,0xa0f30));var q=Object[_0x87e7bd(0xfe)],z=(_0x14c8cc,_0x3fe82f,_0x4323b8)=>_0x3fe82f in _0x14c8cc?q(_0x14c8cc,_0x3fe82f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4323b8}):_0x14c8cc[_0x3fe82f]=_0x4323b8,d=(_0x1c6f70,_0x1a4afa,_0x31dd20)=>z(_0x1c6f70,typeof _0x1a4afa!=_0x87e7bd(0x14e)?_0x1a4afa+'':_0x1a4afa,_0x31dd20);import{Disposable as _0x19c8be,toDisposable as _0x81af47,IUniverInstanceService as _0x5d694e,Inject as _0x45d391,Injector as _0x39e533,IConfigService as _0x29a479,ICommandService as _0x5c7d54,RxDisposable as _0x1913a8,UniverInstanceType as _0x5e035c,DisposableCollection as _0x36d5d8,CommandType as _0x4d09fc,DependentOn as _0x269804,Plugin as _0x220379,merge as _0x5e860a,registerDependencies as _0x38944b,mergeOverrideWithDependencies as _0x3197e4,touchDependencies as _0x6f9452}from'@univerjs/core';import{useDependency as _0xed083e,useObservable as _0x4b2582,IUIPartsService as _0x5a0914,BuiltInUIPart as _0x5a42fd,connectInjector as _0x29c103}from'@univerjs/ui';import{jsx as _0x5985f9,jsxs as _0x516a75,Fragment as _0x4e17f3}from'react/jsx-runtime';import{Dropdown as _0x5653ff,clsx as _0x4a2c58,Button as _0x279d25}from'@univerjs/design';import{forwardRef as _0x2ed7c1,useRef as _0x195bcf,createElement as _0x11ad3e,useState as _0x50f1f1,useEffect as _0x38f5f5}from'react';import{CollaborationEvent as _0x242775,parseProtocolChangeset as _0x5eafd3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x224f92,SessionStatus as _0xd3e62f,UniverCollaborationClientPlugin as _0x2acd5c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3ee211,SetWorksheetActiveOperation as _0xc428b2}from'@univerjs/sheets';import{BehaviorSubject as _0x7d2638,Subject as _0x43807e}from'rxjs';import{takeUntil as _0x384156,throttleTime as _0x431766}from'rxjs/operators';import{SetZoomRatioOperation as _0x2ccbe4,SetScrollOperation as _0x42b170}from'@univerjs/sheets-ui';var c=function(){var _0x4367d7=_0x87e7bd;return c=Object[_0x4367d7(0x117)]||function(_0x1cbc0a){var _0x64be38=_0x4367d7;for(var _0x3614aa,_0x321983=0x1,_0x1fca85=arguments[_0x64be38(0xf6)];_0x321983<_0x1fca85;_0x321983++){_0x3614aa=arguments[_0x321983];for(var _0x24dee0 in _0x3614aa)Object[_0x64be38(0x13b)]['hasOwnProperty'][_0x64be38(0xf1)](_0x3614aa,_0x24dee0)&&(_0x1cbc0a[_0x24dee0]=_0x3614aa[_0x24dee0]);}return _0x1cbc0a;},c[_0x4367d7(0x181)](this,arguments);},Oe=function(_0xae060d,_0x4773ba){var _0x37fc28=_0x87e7bd,_0x527e81={};for(var _0x5a3e44 in _0xae060d)Object[_0x37fc28(0x13b)][_0x37fc28(0x18c)][_0x37fc28(0xf1)](_0xae060d,_0x5a3e44)&&_0x4773ba[_0x37fc28(0x18a)](_0x5a3e44)<0x0&&(_0x527e81[_0x5a3e44]=_0xae060d[_0x5a3e44]);if(_0xae060d!=null&&typeof Object[_0x37fc28(0x126)]==_0x37fc28(0x16b)){for(var _0x40f338=0x0,_0x5a3e44=Object[_0x37fc28(0x126)](_0xae060d);_0x40f338<_0x5a3e44[_0x37fc28(0xf6)];_0x40f338++)_0x4773ba['indexOf'](_0x5a3e44[_0x40f338])<0x0&&Object['prototype'][_0x37fc28(0xe9)][_0x37fc28(0xf1)](_0xae060d,_0x5a3e44[_0x40f338])&&(_0x527e81[_0x5a3e44[_0x40f338]]=_0xae060d[_0x5a3e44[_0x40f338]]);}return _0x527e81;},W=_0x2ed7c1(function(_0x4e5879,_0x38d6d3){var _0x2f93fe=_0x87e7bd,_0x4bd87e=_0x4e5879[_0x2f93fe(0xee)],_0x2be15d=_0x4e5879['id'],_0x377002=_0x4e5879['className'],_0x63b336=_0x4e5879[_0x2f93fe(0x109)],_0x560f72=Oe(_0x4e5879,[_0x2f93fe(0xee),'id',_0x2f93fe(0xf5),_0x2f93fe(0x109)]),_0x1dc4c7=_0x2f93fe(0x157)[_0x2f93fe(0x14b)](_0x2be15d,'\x20')[_0x2f93fe(0x14b)](_0x377002||'')['trim'](),_0x2aba1a=_0x195bcf('_'[_0x2f93fe(0x14b)](Ne()));return Y(_0x4bd87e,''[_0x2f93fe(0x14b)](_0x2be15d),{'defIds':_0x4bd87e[_0x2f93fe(0x10a)],'idSuffix':_0x2aba1a['current']},c({'ref':_0x38d6d3,'className':_0x1dc4c7},_0x560f72),_0x63b336);});function Y(_0x38ef95,_0x24e56b,_0x40049e,_0x363598,_0x4b3cc8){var _0x51e577=_0x87e7bd;return _0x11ad3e(_0x38ef95[_0x51e577(0x102)],c(c({'key':_0x24e56b},Ee(_0x38ef95,_0x40049e,_0x4b3cc8)),_0x363598),(we(_0x38ef95,_0x40049e)[_0x51e577(0x13f)]||[])['map'](function(_0x44a3a4,_0x48f8ed){var _0x36ab42=_0x51e577;return Y(_0x44a3a4,''[_0x36ab42(0x14b)](_0x24e56b,'-')[_0x36ab42(0x14b)](_0x38ef95[_0x36ab42(0x102)],'-')[_0x36ab42(0x14b)](_0x48f8ed),_0x40049e,void 0x0,_0x4b3cc8);}));}function Ee(_0x196d30,_0x4b86eb,_0x3e4203){var _0x4e3620=_0x87e7bd,_0x12f9c3=c({},_0x196d30['attrs']);_0x3e4203!=null&&_0x3e4203[_0x4e3620(0x132)]&&_0x12f9c3[_0x4e3620(0x107)]===_0x4e3620(0x132)&&(_0x12f9c3[_0x4e3620(0x107)]=_0x3e4203[_0x4e3620(0x132)]),_0x196d30[_0x4e3620(0x102)]===_0x4e3620(0x192)&&_0x12f9c3['id']&&(_0x12f9c3['id']=_0x12f9c3['id']+_0x4b86eb[_0x4e3620(0x118)]),Object[_0x4e3620(0x136)](_0x12f9c3)[_0x4e3620(0x12e)](function(_0x52acfa){var _0x582e18=_0x4e3620,_0x1d2edb=_0x52acfa[0x0],_0x59ae12=_0x52acfa[0x1];_0x1d2edb==='mask'&&typeof _0x59ae12==_0x582e18(0x12a)&&(_0x12f9c3[_0x1d2edb]=_0x59ae12[_0x582e18(0x124)](/url\(#(.*)\)/,_0x582e18(0x18f)[_0x582e18(0x14b)](_0x4b86eb[_0x582e18(0x118)],')')));});var _0xe791d=_0x4b86eb[_0x4e3620(0x10a)];return!_0xe791d||_0xe791d[_0x4e3620(0xf6)]===0x0||(_0x196d30['tag']==='use'&&_0x12f9c3[_0x4e3620(0x111)]&&(_0x12f9c3[_0x4e3620(0x111)]=_0x12f9c3['xlink:href']+_0x4b86eb[_0x4e3620(0x118)]),Object[_0x4e3620(0x136)](_0x12f9c3)['forEach'](function(_0x52d571){var _0x3e0a99=_0x4e3620,_0xa02f90=_0x52d571[0x0],_0x1068c4=_0x52d571[0x1];typeof _0x1068c4==_0x3e0a99(0x12a)&&(_0x12f9c3[_0xa02f90]=_0x1068c4[_0x3e0a99(0x124)](/url\(#(.*)\)/,_0x3e0a99(0x18f)[_0x3e0a99(0x14b)](_0x4b86eb[_0x3e0a99(0x118)],')')));})),_0x12f9c3;}function we(_0x5ca70e,_0x18e157){var _0x1482cb=_0x87e7bd,_0x10fc42,_0x5bb4d4=_0x18e157['defIds'];return!_0x5bb4d4||_0x5bb4d4['length']===0x0?_0x5ca70e:_0x5ca70e[_0x1482cb(0x102)]===_0x1482cb(0x176)&&(!((_0x10fc42=_0x5ca70e[_0x1482cb(0x13f)])===null||_0x10fc42===void 0x0)&&_0x10fc42[_0x1482cb(0xf6)])?c(c({},_0x5ca70e),{'children':_0x5ca70e[_0x1482cb(0x13f)][_0x1482cb(0x134)](function(_0x313d89){var _0x5d4ce8=_0x1482cb;return typeof _0x313d89['attrs']['id']==_0x5d4ce8(0x12a)&&_0x5bb4d4&&_0x5bb4d4[_0x5d4ce8(0x167)](_0x313d89[_0x5d4ce8(0xed)]['id'])?c(c({},_0x313d89),{'attrs':c(c({},_0x313d89[_0x5d4ce8(0xed)]),{'id':_0x313d89[_0x5d4ce8(0xed)]['id']+_0x18e157[_0x5d4ce8(0x118)]})}):_0x313d89;})}):_0x5ca70e;}function Ne(){var _0x1d9056=_0x87e7bd;return Math[_0x1d9056(0x16a)]()[_0x1d9056(0x184)](0x24)[_0x1d9056(0xf2)](0x2,0x8);}W[_0x87e7bd(0x177)]='UniverIcon';var Ce={'tag':_0x87e7bd(0x105),'attrs':{'xmlns':_0x87e7bd(0x155),'fill':_0x87e7bd(0x10e),'viewBox':_0x87e7bd(0x13a),'width':_0x87e7bd(0x125),'height':_0x87e7bd(0x125)},'children':[{'tag':_0x87e7bd(0x13d),'attrs':{'fill':'currentColor','d':_0x87e7bd(0x160)}},{'tag':_0x87e7bd(0x13d),'attrs':{'fill':_0x87e7bd(0x153),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x87e7bd(0x16f)}}]},B=_0x2ed7c1(function(_0x2e1af3,_0x356cad){var _0x1a02dc=_0x87e7bd;return _0x11ad3e(W,Object[_0x1a02dc(0x117)]({},_0x2e1af3,{'id':_0x1a02dc(0x173),'ref':_0x356cad,'icon':Ce}));});B[_0x87e7bd(0x177)]=_0x87e7bd(0x182);function _0x3379(_0x46dc63,_0x5332b4){var _0x124e71=_0x124e();return _0x3379=function(_0x3379e1,_0x5c82f7){_0x3379e1=_0x3379e1-0xde;var _0x42730d=_0x124e71[_0x3379e1];return _0x42730d;},_0x3379(_0x46dc63,_0x5332b4);}class L extends _0x19c8be{constructor(){var _0x5e8456=_0x87e7bd;super(...arguments),d(this,_0x5e8456(0x189),new Set()),d(this,_0x5e8456(0x172),new Set());}[_0x87e7bd(0xdf)](_0x2753f5){var _0x557dd2=_0x87e7bd;return this[_0x557dd2(0x189)]['add'](_0x2753f5),_0x81af47(()=>this[_0x557dd2(0x189)]['delete'](_0x2753f5));}[_0x87e7bd(0x188)](_0x1bbbbf){var _0x10a9f5=_0x87e7bd;return this[_0x10a9f5(0x172)][_0x10a9f5(0x140)](_0x1bbbbf),_0x81af47(()=>this['_reporters']['delete'](_0x1bbbbf));}[_0x87e7bd(0xf4)](_0x43b9d6){var _0x18649b=_0x87e7bd;return this[_0x18649b(0x189)]['has'](_0x43b9d6);}[_0x87e7bd(0x159)](_0x5e7d31){var _0x3904a7=_0x87e7bd;return Array[_0x3904a7(0xf8)](this[_0x3904a7(0x172)])[_0x3904a7(0x134)](_0x2b6d02=>_0x2b6d02(_0x5e7d31));}}var De=Object[_0x87e7bd(0x137)],Z=(_0x1bde03,_0x46bd20,_0x5a4efa,_0x18557b)=>{var _0x3904bb=_0x87e7bd;for(var _0x419c2b=_0x18557b>0x1?void 0x0:_0x18557b?De(_0x46bd20,_0x5a4efa):_0x46bd20,_0x57b8cd=_0x1bde03[_0x3904bb(0xf6)]-0x1,_0xd55095;_0x57b8cd>=0x0;_0x57b8cd--)(_0xd55095=_0x1bde03[_0x57b8cd])&&(_0x419c2b=_0xd55095(_0x419c2b)||_0x419c2b);return _0x419c2b;},f=(_0x537c41,_0xfbab33)=>(_0x25fc34,_0x159da6)=>_0xfbab33(_0x25fc34,_0x159da6,_0x537c41);let m=class extends _0x1913a8{constructor(_0x5b4289,_0x49e954,_0x421c49){var _0x377895=_0x87e7bd;super(),d(this,_0x377895(0x16e),new Map()),(this[_0x377895(0x163)]=_0x5b4289,this[_0x377895(0x183)]=_0x49e954,this[_0x377895(0x18e)]=_0x421c49,this['_init']());}async[_0x87e7bd(0xfb)](_0x18febf){var _0x1422d2=_0x87e7bd;return this[_0x1422d2(0x16e)][_0x1422d2(0xe7)](_0x18febf)||await this['_startLiveShareCoordinator'](_0x18febf),this[_0x1422d2(0x16e)][_0x1422d2(0xea)](_0x18febf);}[_0x87e7bd(0x10b)](){var _0x2c7b5d=_0x87e7bd;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5e035c['UNIVER_SHEET'])[_0x2c7b5d(0x101)](_0x384156(this[_0x2c7b5d(0x145)]))['subscribe'](async _0x2d5fed=>{var _0x3cd683=_0x2c7b5d;const _0x488226=_0x2d5fed[_0x3cd683(0xf0)]();this[_0x3cd683(0x16e)][_0x3cd683(0xe7)](_0x488226)||this[_0x3cd683(0x131)](_0x488226);}),this['_univerInstanceService'][_0x2c7b5d(0x143)](_0x5e035c[_0x2c7b5d(0x12c)])['pipe'](_0x384156(this[_0x2c7b5d(0x145)]))[_0x2c7b5d(0x15e)](_0x374e72=>{var _0x476909=_0x2c7b5d;const _0xacccb0=_0x374e72[_0x476909(0xf0)](),_0x5ba182=this[_0x476909(0x16e)][_0x476909(0xea)](_0xacccb0);_0x5ba182==null||_0x5ba182['dispose']();});}async['_startLiveShareCoordinator'](_0x4c962d){var _0x4b4740=_0x87e7bd;const _0x2073eb=await this[_0x4b4740(0x18e)][_0x4b4740(0x142)](_0x4c962d),_0x3f92d9=this[_0x4b4740(0x183)][_0x4b4740(0xe8)](C,_0x4c962d,_0x2073eb);return _0x3f92d9[_0x4b4740(0xfc)](),this['_entities'][_0x4b4740(0x191)](_0x4c962d,_0x3f92d9),_0x3f92d9;}};m=Z([f(0x0,_0x5d694e),f(0x1,_0x45d391(_0x39e533)),f(0x2,_0x45d391(_0x224f92))],m);var h=(_0x493f6a=>(_0x493f6a[_0x87e7bd(0x174)]=_0x87e7bd(0xe1),_0x493f6a[_0x87e7bd(0x119)]=_0x87e7bd(0x110),_0x493f6a[_0x87e7bd(0x185)]=_0x87e7bd(0x144),_0x493f6a[_0x87e7bd(0x190)]=_0x87e7bd(0x17f),_0x493f6a[_0x87e7bd(0x158)]=_0x87e7bd(0x17d),_0x493f6a))(h||{});const xe=_0x87e7bd(0x10f),Le=0xc8;let C=class extends _0x1913a8{constructor(_0x12ed7b,_0x595404,_0x2b0c0d,_0x5c5a3a,_0x4f7a53){var _0x4c79f9=_0x87e7bd;super(),d(this,'_status$',new _0x7d2638(_0x4c79f9(0x110))),d(this,_0x4c79f9(0x17e),this['_status$'][_0x4c79f9(0x11e)]()),d(this,'_init',!0x1),d(this,_0x4c79f9(0x141),null),d(this,_0x4c79f9(0x127),null),(this[_0x4c79f9(0x15f)]=_0x12ed7b,this['_collabSession']=_0x595404,this[_0x4c79f9(0x193)]=_0x2b0c0d,this[_0x4c79f9(0xe6)]=_0x5c5a3a,this[_0x4c79f9(0x146)]=_0x4f7a53);}get[_0x87e7bd(0x17c)](){var _0x4997c2=_0x87e7bd;return this[_0x4997c2(0xf9)][_0x4997c2(0xe3)]();}[_0x87e7bd(0x11b)](){var _0x3b3a10=_0x87e7bd,_0x2b0cbf;(_0x2b0cbf=this['_commandDisposable'])==null||_0x2b0cbf[_0x3b3a10(0x11b)](),this[_0x3b3a10(0xf9)][_0x3b3a10(0x164)](_0x3b3a10(0x110)),this['_status$'][_0x3b3a10(0x162)]();}['init'](){var _0xd2eb56=_0x87e7bd;this['_init']||(this[_0xd2eb56(0x10b)]=!0x0,this['_collabSession'][_0xd2eb56(0x152)]['pipe'](_0x384156(this[_0xd2eb56(0x145)]))[_0xd2eb56(0x15e)](_0x5ba771=>{var _0x1c1a13=_0xd2eb56;switch(_0x5ba771){case _0xd3e62f[_0x1c1a13(0x174)]:this[_0x1c1a13(0x14f)]();break;case _0xd3e62f[_0x1c1a13(0xde)]:this[_0x1c1a13(0x112)]();break;}}),this[_0xd2eb56(0x147)][_0xd2eb56(0x115)][_0xd2eb56(0x101)](_0x384156(this['dispose$']))['subscribe'](_0x451af7=>{var _0x1042ed=_0xd2eb56;const {eventID:_0x38e161}=_0x451af7;switch(_0x38e161){case _0x242775[_0x1042ed(0xef)]:this['_handleNewHost'](_0x451af7);break;case _0x242775['LIVESHARE_OPERATION']:this['_handleOperation'](_0x451af7);break;case _0x242775['LIVESHARE_TERMINATE']:this[_0x1042ed(0x10d)]();break;case _0x242775[_0x1042ed(0x179)]:this[_0x1042ed(0x180)](_0x451af7);break;}}));}[_0x87e7bd(0xfa)](){var _0x1d064d=_0x87e7bd;this[_0x1d064d(0x147)][_0x1d064d(0x171)]({'eventID':_0x242775[_0x1d064d(0x11f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1d064d(0x13e)]()}},this[_0x1d064d(0x15f)]);}[_0x87e7bd(0x165)](){var _0x1a5131=_0x87e7bd;this[_0x1a5131(0x17c)]===_0x1a5131(0x17d)&&(this[_0x1a5131(0xf9)][_0x1a5131(0x164)](_0x1a5131(0x110)),this[_0x1a5131(0x147)][_0x1a5131(0x171)]({'eventID':_0x242775['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1a5131(0x15f)]}},this[_0x1a5131(0x15f)]));}['startFollowing'](){var _0xf7bc80=_0x87e7bd;this[_0xf7bc80(0x17c)]==='not-following'&&(this['_status$']['next'](_0xf7bc80(0x144)),this[_0xf7bc80(0x14c)]());}[_0x87e7bd(0x15c)](){var _0x24ba1d=_0x87e7bd;this[_0x24ba1d(0x17c)]===_0x24ba1d(0x144)&&this[_0x24ba1d(0x17a)]();}[_0x87e7bd(0x14a)](_0x4cb73e){var _0x425e85=_0x87e7bd;const {presenter:_0x5f77e}=_0x4cb73e['data'],_0x152a48=this[_0x425e85(0x147)][_0x425e85(0x13e)]();this[_0x425e85(0x127)]=_0x5f77e,_0x5f77e===_0x152a48?(this[_0x425e85(0x17a)](),this[_0x425e85(0x10c)]()):this[_0x425e85(0x17c)]!==_0x425e85(0x17f)&&(this['_stopPresenting'](),this[_0x425e85(0x14c)]());}[_0x87e7bd(0x169)](){var _0x75a545=_0x87e7bd;const _0x8e5a6c={'eventID':_0x242775['LIVESHARE_FETCH_OPERATIONS']};this[_0x75a545(0x147)]['send'](_0x8e5a6c,this[_0x75a545(0x15f)]);}['_handleTerminate'](){var _0x395830=_0x87e7bd;this[_0x395830(0x127)]=null,this[_0x395830(0x17c)]!==_0x395830(0x17d)&&this[_0x395830(0x121)]();}[_0x87e7bd(0x180)](_0xe69c86){var _0x107d41=_0x87e7bd;if(this[_0x107d41(0x17c)]==='following'&&this['_presenter']===_0xe69c86[_0x107d41(0x114)][_0x107d41(0x130)]){const _0x4e8f84=_0x5eafd3(_0xe69c86[_0x107d41(0x114)])[_0x107d41(0x104)][_0x107d41(0xe2)]()['find'](_0x7f011=>_0x7f011['id']===_0x3ee211['id']);if(_0x4e8f84){const _0x11f8bb=_0x4e8f84[_0x107d41(0xe5)][_0x107d41(0x133)],_0x4f6f3e=_0x4e8f84[_0x107d41(0xe5)][_0x107d41(0x150)]['id'];setTimeout(()=>{var _0xd59301=_0x107d41;this[_0xd59301(0x146)][_0xd59301(0x14d)](_0xc428b2['id'],{'unitId':_0x11f8bb,'subUnitId':_0x4f6f3e},{'fromCollab':!0x0});});}}}[_0x87e7bd(0x10c)](){var _0x327107=_0x87e7bd;this['_status$'][_0x327107(0x164)](_0x327107(0x17d));const _0x12b8fb=new Map(),_0x349860=this[_0x327107(0x141)]=new _0x36d5d8();_0x349860['add'](_0x81af47(()=>{var _0xfcdd50=_0x327107;_0x12b8fb[_0xfcdd50(0x12e)](_0x173472=>_0x173472['complete']()),_0x12b8fb[_0xfcdd50(0x187)]();})),_0x349860[_0x327107(0x140)](this[_0x327107(0x146)][_0x327107(0x149)](_0x4b79d4=>{var _0xca97ae=_0x327107,_0x54194c;if(_0x4b79d4[_0xca97ae(0x120)]!==_0x4d09fc[_0xca97ae(0x15b)]||!this['_liveShareService'][_0xca97ae(0xf4)](_0x4b79d4['id']))return;const {id:_0x505f80}=_0x4b79d4;let _0x2cf956;_0x12b8fb[_0xca97ae(0xe7)](_0x505f80)?_0x2cf956=_0x12b8fb[_0xca97ae(0xea)](_0x505f80):(_0x2cf956=new _0x43807e(),_0x12b8fb[_0xca97ae(0x191)](_0x505f80,_0x2cf956),_0x2cf956['pipe'](_0x431766((_0x54194c=this[_0xca97ae(0x193)][_0xca97ae(0x186)](xe))!=null?_0x54194c:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xca97ae(0x15e)](_0x3cdee1=>{var _0x494e54=_0xca97ae;this[_0x494e54(0x147)][_0x494e54(0x171)]({'eventID':_0x242775[_0x494e54(0x12d)],'data':{'unitID':this[_0x494e54(0x15f)],'operations':{[_0x3cdee1['id']]:{'id':_0x3cdee1['id'],'params':JSON['stringify'](_0x3cdee1[_0x494e54(0xe5)])}}}},this[_0x494e54(0x15f)]);})),_0x2cf956['next'](_0x4b79d4);})),this['_liveShareService'][_0x327107(0x159)](this['_unitID'])['forEach'](_0x4978bf=>this[_0x327107(0x147)]['send']({'eventID':_0x242775[_0x327107(0x12d)],'data':{'unitID':this[_0x327107(0x15f)],'operations':{[_0x4978bf['id']]:{'id':_0x4978bf['id'],'params':JSON['stringify'](_0x4978bf[_0x327107(0xe5)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x370202=_0x87e7bd,_0x1ce392;this['_status$'][_0x370202(0x164)]('idle'),(_0x1ce392=this['_commandDisposable'])==null||_0x1ce392['dispose'](),this[_0x370202(0x141)]=null;}[_0x87e7bd(0x14c)](){var _0x5eea5c=_0x87e7bd,_0x136a1c;(_0x136a1c=this['_commandDisposable'])==null||_0x136a1c[_0x5eea5c(0x11b)](),this['_status$']['next'](_0x5eea5c(0x144));}[_0x87e7bd(0x121)](){var _0x13b903=_0x87e7bd,_0x2905ba;this[_0x13b903(0xf9)][_0x13b903(0x164)](_0x13b903(0x110)),(_0x2905ba=this[_0x13b903(0x141)])==null||_0x2905ba[_0x13b903(0x11b)](),this[_0x13b903(0x141)]=null;}[_0x87e7bd(0x17a)](){var _0x48121d=_0x87e7bd,_0x2646e9;this[_0x48121d(0xf9)]['next'](_0x48121d(0x17f)),(_0x2646e9=this[_0x48121d(0x141)])==null||_0x2646e9['dispose']();}[_0x87e7bd(0x11a)](_0x213a22){var _0x324958=_0x87e7bd;if([_0x324958(0x17d),_0x324958(0x17f),_0x324958(0xe1)]['includes'](this['_status'])||!_0x213a22[_0x324958(0x114)][_0x324958(0xf7)]||_0x213a22[_0x324958(0x114)]['presenter']===this[_0x324958(0x147)][_0x324958(0x13e)]())return;this[_0x324958(0x17c)]===_0x324958(0x110)&&this['_startFollowing']();const _0x20283e=_0x213a22[_0x324958(0x114)]['operations'];Object[_0x324958(0xe4)](_0x20283e)[_0x324958(0x12e)](_0x1f4267=>{var _0x2daa9b=_0x324958;this[_0x2daa9b(0x146)][_0x2daa9b(0x14d)](_0x1f4267['id'],_0x1f4267[_0x2daa9b(0xe5)]?JSON[_0x2daa9b(0x128)](_0x1f4267[_0x2daa9b(0xe5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x54c021=_0x87e7bd,_0x742009;this['_status$'][_0x54c021(0x164)]('offline'),(_0x742009=this[_0x54c021(0x141)])==null||_0x742009[_0x54c021(0x11b)]();}[_0x87e7bd(0x112)](){var _0x1c9be2=_0x87e7bd;this[_0x1c9be2(0xf9)]['next'](_0x1c9be2(0x110)),this['_fetchOperations']();}};C=Z([f(0x2,_0x29a479),f(0x3,_0x45d391(L)),f(0x4,_0x5c7d54)],C);function ye(){var _0x4b3703=_0x87e7bd;const _0x33be24=_0xed083e(m),_0x582070=_0xed083e(_0x5d694e),_0x5e7467=_0x4b2582(()=>_0x582070[_0x4b3703(0x11d)](_0x5e035c[_0x4b3703(0x12c)]),void 0x0,!0x1,[]),[_0x44349a,_0x213177]=_0x50f1f1(null),[_0x59f19f,_0x5944c2]=_0x50f1f1(h['IDLE']),_0x3ed56a=_0x195bcf(null);return _0x38f5f5(()=>(_0x5e7467&&_0x33be24[_0x4b3703(0xfb)](_0x5e7467[_0x4b3703(0xf0)]())[_0x4b3703(0xf3)](_0xefe1af=>{var _0x36b570=_0x4b3703;_0x213177(_0xefe1af),_0x3ed56a[_0x36b570(0x113)]=_0xefe1af['status$'][_0x36b570(0x15e)](_0x29eedd=>{_0x5944c2(_0x29eedd);});}),()=>{var _0x3987ac=_0x4b3703,_0x765528;(_0x765528=_0x3ed56a[_0x3987ac(0x113)])==null||_0x765528[_0x3987ac(0x168)](),_0x3ed56a['current']=null;}),[_0x5e7467,_0x33be24]),_0x44349a?_0x5985f9(_0x5653ff,{'align':_0x4b3703(0x13c),'disabled':_0x59f19f===h['OFFLINE'],'className':_0x4b3703(0x16d),'overlay':_0x5985f9(Re,{'status':_0x59f19f,'coordinator':_0x44349a}),'children':_0x5985f9(_0x4b3703(0x175),{'className':_0x4a2c58(_0x4b3703(0x106),{'univer-cursor-not-allowed':_0x59f19f===h[_0x4b3703(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59f19f!==h[_0x4b3703(0x174)]}),'type':'button','children':_0x5985f9(B,{'className':_0x4b3703(0x123)})})}):null;}function Re(_0x53f697){var _0x1defa0=_0x87e7bd;const {status:_0x97595b,coordinator:_0x447169}=_0x53f697;switch(_0x97595b){case h[_0x1defa0(0x119)]:return _0x5985f9(Pe,{'coordinator':_0x447169});case h[_0x1defa0(0x185)]:return _0x5985f9(Ae,{'coordinator':_0x447169});case h[_0x1defa0(0x190)]:return _0x5985f9(Te,{'coordinator':_0x447169});case h['OFFLINE']:return _0x5985f9(Fe,{});case h[_0x1defa0(0x158)]:return _0x5985f9($e,{'coordinator':_0x447169});default:return null;}}function Pe(_0x11ea70){var _0xfcf126=_0x87e7bd;const {coordinator:_0x17cd47}=_0x11ea70;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xfcf126(0x15a)}),_0x5985f9(_0x279d25,{'onClick':()=>_0x17cd47[_0xfcf126(0xfa)](),'children':_0xfcf126(0x166)})]});}function Ae(_0xd8fe19){var _0x48d6bf=_0x87e7bd;const {coordinator:_0x2d99f8}=_0xd8fe19;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9('div',{'className':_0x48d6bf(0x100),'children':_0x48d6bf(0x129)}),_0x5985f9(_0x279d25,{'onClick':()=>_0x2d99f8[_0x48d6bf(0x15c)](),'children':_0x48d6bf(0x178)})]});}function Te(_0x30d9b5){var _0x1af825=_0x87e7bd;const {coordinator:_0x3efe60}=_0x30d9b5;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9(_0x1af825(0x17b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5985f9(_0x279d25,{'variant':_0x1af825(0x18d),'onClick':()=>_0x3efe60[_0x1af825(0x139)](),'children':_0x1af825(0x138)})]});}function $e(_0x5574aa){var _0x2f01ea=_0x87e7bd;const {coordinator:_0x94562e}=_0x5574aa;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9(_0x2f01ea(0x17b),{'className':_0x2f01ea(0x100),'children':_0x2f01ea(0x156)}),_0x5985f9(_0x279d25,{'variant':'default','onClick':()=>_0x94562e[_0x2f01ea(0x165)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x30c058=_0x87e7bd;return _0x5985f9(_0x4e17f3,{'children':_0x30c058(0xeb)});}var He=Object[_0x87e7bd(0x137)],je=(_0x219721,_0x261360,_0x116076,_0x3925e7)=>{var _0x458433=_0x87e7bd;for(var _0x2616eb=_0x3925e7>0x1?void 0x0:_0x3925e7?He(_0x261360,_0x116076):_0x261360,_0x58bec2=_0x219721[_0x458433(0xf6)]-0x1,_0x2b6468;_0x58bec2>=0x0;_0x58bec2--)(_0x2b6468=_0x219721[_0x58bec2])&&(_0x2616eb=_0x2b6468(_0x2616eb)||_0x2616eb);return _0x2616eb;},T=(_0x257753,_0x1d98fb)=>(_0x4b23fd,_0x21019c)=>_0x1d98fb(_0x4b23fd,_0x21019c,_0x257753);let I=class extends _0x19c8be{constructor(_0x1d23a4,_0x407529){var _0x51a7d7=_0x87e7bd;super(),this[_0x51a7d7(0x183)]=_0x1d23a4,this[_0x51a7d7(0xec)]=_0x407529,this[_0x51a7d7(0xe0)]();}['_mountLiveShare'](){var _0x43a856=_0x87e7bd;this[_0x43a856(0x148)](this['_uiPartsService'][_0x43a856(0x116)](_0x5a42fd['HEADER_MENU'],()=>_0x29c103(ye,this['_injector'])));}};I=je([T(0x0,_0x45d391(_0x39e533)),T(0x1,_0x5a0914)],I);const Ue='live-share.config',$={};var Ve=Object[_0x87e7bd(0x137)],Me=(_0x256942,_0x410cdc,_0x8240c8,_0x224840)=>{for(var _0x52d8d8=_0x224840>0x1?void 0x0:_0x224840?Ve(_0x410cdc,_0x8240c8):_0x410cdc,_0x55a9e6=_0x256942['length']-0x1,_0x2a75fa;_0x55a9e6>=0x0;_0x55a9e6--)(_0x2a75fa=_0x256942[_0x55a9e6])&&(_0x52d8d8=_0x2a75fa(_0x52d8d8)||_0x52d8d8);return _0x52d8d8;},ke=(_0x170db5,_0x29f7e6)=>(_0x2308f1,_0x5eb4d5)=>_0x29f7e6(_0x2308f1,_0x5eb4d5,_0x170db5);let b=class extends _0x19c8be{constructor(_0x5e018d){var _0x4e45c1=_0x87e7bd;super(),this['_liveShareService']=_0x5e018d,this[_0x4e45c1(0x10b)]();}[_0x87e7bd(0x10b)](){var _0x56c231=_0x87e7bd;[_0x2ccbe4['id'],_0x42b170['id'],_0xc428b2['id']][_0x56c231(0x12e)](_0x2c7cda=>{var _0x44afcd=_0x56c231;this[_0x44afcd(0x148)](this['_liveShareService'][_0x44afcd(0xdf)](_0x2c7cda));});}};b=Me([ke(0x0,_0x45d391(L))],b);var Ge=Object[_0x87e7bd(0xfe)],We=Object[_0x87e7bd(0x137)],Ye=(_0x53016e,_0x5042a2,_0x67eacb)=>_0x5042a2 in _0x53016e?Ge(_0x53016e,_0x5042a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x67eacb}):_0x53016e[_0x5042a2]=_0x67eacb,Be=(_0x47de0f,_0x4d9908,_0x309cf4,_0x38a0a1)=>{var _0x463bcd=_0x87e7bd;for(var _0xa75960=_0x38a0a1>0x1?void 0x0:_0x38a0a1?We(_0x4d9908,_0x309cf4):_0x4d9908,_0x1083c1=_0x47de0f[_0x463bcd(0xf6)]-0x1,_0x3888b2;_0x1083c1>=0x0;_0x1083c1--)(_0x3888b2=_0x47de0f[_0x1083c1])&&(_0xa75960=_0x3888b2(_0xa75960)||_0xa75960);return _0xa75960;},F=(_0x38c8f9,_0x1631a0)=>(_0x347f8a,_0x55ab5b)=>_0x1631a0(_0x347f8a,_0x55ab5b,_0x38c8f9),J=(_0x2a00f2,_0x21d823,_0x32bfd7)=>Ye(_0x2a00f2,typeof _0x21d823!='symbol'?_0x21d823+'':_0x21d823,_0x32bfd7);const Ze=_0x87e7bd(0x122);let O=class extends _0x220379{constructor(_0x5200f7=$,_0xb30d5c,_0x8bbc30){var _0x69269=_0x87e7bd;super(),this[_0x69269(0x135)]=_0x5200f7,this[_0x69269(0x183)]=_0xb30d5c,this[_0x69269(0x193)]=_0x8bbc30;const {..._0x4981ab}=_0x5e860a({},$,this[_0x69269(0x135)]);this[_0x69269(0x193)]['setConfig'](Ue,_0x4981ab);}[_0x87e7bd(0xff)](){var _0x5249f5=_0x87e7bd;_0x38944b(this['_injector'],_0x3197e4([[L],[m],[b],[I]],this[_0x5249f5(0x135)][_0x5249f5(0x16c)])),_0x6f9452(this[_0x5249f5(0x183)],[[b]]);}[_0x87e7bd(0xfd)](){_0x6f9452(this['_injector'],[[I]]);}};J(O,_0x87e7bd(0x120),_0x5e035c[_0x87e7bd(0x170)]),J(O,'pluginName',Ze),O=Be([_0x269804(_0x2acd5c),F(0x1,_0x45d391(_0x39e533)),F(0x2,_0x29a479)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x36f017=_0xde17;(function(_0xcac48b,_0x172d45){var _0x289873=_0xde17,_0x41bf4f=_0xcac48b();while(!![]){try{var _0x338b47=parseInt(_0x289873(0x22e))/0x1+parseInt(_0x289873(0x26b))/0x2*(-parseInt(_0x289873(0x1df))/0x3)+parseInt(_0x289873(0x1da))/0x4+-parseInt(_0x289873(0x1bd))/0x5+parseInt(_0x289873(0x1d0))/0x6*(-parseInt(_0x289873(0x245))/0x7)+parseInt(_0x289873(0x240))/0x8*(parseInt(_0x289873(0x1c7))/0x9)+-parseInt(_0x289873(0x1dc))/0xa;if(_0x338b47===_0x172d45)break;else _0x41bf4f['push'](_0x41bf4f['shift']());}catch(_0x1d81f4){_0x41bf4f['push'](_0x41bf4f['shift']());}}}(_0x237f,0xac0db));var q=Object[_0x36f017(0x1d5)],z=(_0x4bf46c,_0xb1213e,_0x2aff38)=>_0xb1213e in _0x4bf46c?q(_0x4bf46c,_0xb1213e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aff38}):_0x4bf46c[_0xb1213e]=_0x2aff38,d=(_0x38a0e8,_0x299499,_0x9e8ed5)=>z(_0x38a0e8,typeof _0x299499!=_0x36f017(0x1f6)?_0x299499+'':_0x299499,_0x9e8ed5);import{Disposable as _0x1921d4,toDisposable as _0x363c38,IUniverInstanceService as _0x3f3fb4,Inject as _0x3b82a6,Injector as _0x11e997,IConfigService as _0x2ade0c,ICommandService as _0x5b1a08,RxDisposable as _0xdfd2c9,UniverInstanceType as _0x3488c4,DisposableCollection as _0x432129,CommandType as _0x55283a,DependentOn as _0x3c9495,Plugin as _0x1c42d2,merge as _0x3fdcd0,registerDependencies as _0x29e73f,mergeOverrideWithDependencies as _0x5e60eb,touchDependencies as _0x184d91}from'@univerjs/core';import{useDependency as _0x57a76c,useObservable as _0x28c88f,IUIPartsService as _0x3c6a2e,BuiltInUIPart as _0x4db87a,connectInjector as _0x518bf9}from'@univerjs/ui';import{jsx as _0x36e838,jsxs as _0x5ddc08,Fragment as _0x10e248}from'react/jsx-runtime';import{Dropdown as _0x1eee21,clsx as _0x28accc,Button as _0x564e8c}from'@univerjs/design';import{forwardRef as _0x49863e,useRef as _0xeec105,createElement as _0xb83fdd,useState as _0x49d219,useEffect as _0x2e558b}from'react';import{CollaborationEvent as _0x33da1b,parseProtocolChangeset as _0x35401c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x28485c,SessionStatus as _0x593165,UniverCollaborationClientPlugin as _0x2e766a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xdd3b8d,SetWorksheetActiveOperation as _0x541ec2}from'@univerjs/sheets';import{BehaviorSubject as _0x34eac5,Subject as _0x9375f3}from'rxjs';import{takeUntil as _0xc1bed8,throttleTime as _0x4b7434}from'rxjs/operators';import{SetZoomRatioOperation as _0x17d0cb,SetScrollOperation as _0x43d03b}from'@univerjs/sheets-ui';var c=function(){var _0x1adb03=_0x36f017;return c=Object[_0x1adb03(0x1d2)]||function(_0x2e490c){var _0xb6bce9=_0x1adb03;for(var _0x5ed74c,_0x545095=0x1,_0x2cdad7=arguments['length'];_0x545095<_0x2cdad7;_0x545095++){_0x5ed74c=arguments[_0x545095];for(var _0x227c8f in _0x5ed74c)Object[_0xb6bce9(0x20b)]['hasOwnProperty'][_0xb6bce9(0x232)](_0x5ed74c,_0x227c8f)&&(_0x2e490c[_0x227c8f]=_0x5ed74c[_0x227c8f]);}return _0x2e490c;},c['apply'](this,arguments);},Oe=function(_0x285852,_0x4be77d){var _0x43b9d7=_0x36f017,_0x4cf2a8={};for(var _0x5d3a62 in _0x285852)Object[_0x43b9d7(0x20b)][_0x43b9d7(0x1fb)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62)&&_0x4be77d['indexOf'](_0x5d3a62)<0x0&&(_0x4cf2a8[_0x5d3a62]=_0x285852[_0x5d3a62]);if(_0x285852!=null&&typeof Object[_0x43b9d7(0x210)]==_0x43b9d7(0x1cf)){for(var _0x58bcf8=0x0,_0x5d3a62=Object[_0x43b9d7(0x210)](_0x285852);_0x58bcf8<_0x5d3a62[_0x43b9d7(0x211)];_0x58bcf8++)_0x4be77d[_0x43b9d7(0x200)](_0x5d3a62[_0x58bcf8])<0x0&&Object[_0x43b9d7(0x20b)][_0x43b9d7(0x258)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62[_0x58bcf8])&&(_0x4cf2a8[_0x5d3a62[_0x58bcf8]]=_0x285852[_0x5d3a62[_0x58bcf8]]);}return _0x4cf2a8;},W=_0x49863e(function(_0x140002,_0x29b62c){var _0x1f316a=_0x36f017,_0x3f0948=_0x140002['icon'],_0x16ffee=_0x140002['id'],_0x3be45d=_0x140002[_0x1f316a(0x231)],_0x4ce05d=_0x140002[_0x1f316a(0x1eb)],_0x19e407=Oe(_0x140002,[_0x1f316a(0x1e4),'id',_0x1f316a(0x231),_0x1f316a(0x1eb)]),_0x5d6c39=_0x1f316a(0x25c)[_0x1f316a(0x1b9)](_0x16ffee,'\x20')[_0x1f316a(0x1b9)](_0x3be45d||'')[_0x1f316a(0x25f)](),_0x6daf92=_0xeec105('_'['concat'](Ne()));return Y(_0x3f0948,''['concat'](_0x16ffee),{'defIds':_0x3f0948['defIds'],'idSuffix':_0x6daf92['current']},c({'ref':_0x29b62c,'className':_0x5d6c39},_0x19e407),_0x4ce05d);});function Y(_0x3b16cf,_0x1bbdb3,_0x5844dd,_0x476478,_0x4c9543){var _0x250ff0=_0x36f017;return _0xb83fdd(_0x3b16cf['tag'],c(c({'key':_0x1bbdb3},Ee(_0x3b16cf,_0x5844dd,_0x4c9543)),_0x476478),(we(_0x3b16cf,_0x5844dd)[_0x250ff0(0x264)]||[])['map'](function(_0x128f71,_0x5a417d){var _0x345d98=_0x250ff0;return Y(_0x128f71,''[_0x345d98(0x1b9)](_0x1bbdb3,'-')[_0x345d98(0x1b9)](_0x3b16cf['tag'],'-')['concat'](_0x5a417d),_0x5844dd,void 0x0,_0x4c9543);}));}function Ee(_0x3aa95f,_0x56f229,_0x48e478){var _0x3484e3=_0x36f017,_0x16e0d6=c({},_0x3aa95f[_0x3484e3(0x218)]);_0x48e478!=null&&_0x48e478[_0x3484e3(0x23c)]&&_0x16e0d6['fill']===_0x3484e3(0x23c)&&(_0x16e0d6[_0x3484e3(0x255)]=_0x48e478['colorChannel1']),_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x252)&&_0x16e0d6['id']&&(_0x16e0d6['id']=_0x16e0d6['id']+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f28e3){var _0x38e353=_0x3484e3,_0x3ccf23=_0x3f28e3[0x0],_0x15e967=_0x3f28e3[0x1];_0x3ccf23===_0x38e353(0x252)&&typeof _0x15e967==_0x38e353(0x241)&&(_0x16e0d6[_0x3ccf23]=_0x15e967[_0x38e353(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x38e353(0x1b9)](_0x56f229[_0x38e353(0x249)],')')));});var _0x1e2cf7=_0x56f229[_0x3484e3(0x1c5)];return!_0x1e2cf7||_0x1e2cf7['length']===0x0||(_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x259)&&_0x16e0d6[_0x3484e3(0x205)]&&(_0x16e0d6[_0x3484e3(0x205)]=_0x16e0d6[_0x3484e3(0x205)]+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f7d54){var _0x1686a0=_0x3484e3,_0x5a02e4=_0x3f7d54[0x0],_0x4c247b=_0x3f7d54[0x1];typeof _0x4c247b==_0x1686a0(0x241)&&(_0x16e0d6[_0x5a02e4]=_0x4c247b['replace'](/url\(#(.*)\)/,_0x1686a0(0x1c3)['concat'](_0x56f229['idSuffix'],')')));})),_0x16e0d6;}function we(_0x16b127,_0x1522ad){var _0x252079=_0x36f017,_0x4d6756,_0x6111ef=_0x1522ad['defIds'];return!_0x6111ef||_0x6111ef[_0x252079(0x211)]===0x0?_0x16b127:_0x16b127[_0x252079(0x1cb)]===_0x252079(0x221)&&(!((_0x4d6756=_0x16b127['children'])===null||_0x4d6756===void 0x0)&&_0x4d6756['length'])?c(c({},_0x16b127),{'children':_0x16b127[_0x252079(0x264)][_0x252079(0x1d9)](function(_0x52287a){var _0x2b7973=_0x252079;return typeof _0x52287a[_0x2b7973(0x218)]['id']=='string'&&_0x6111ef&&_0x6111ef[_0x2b7973(0x21e)](_0x52287a[_0x2b7973(0x218)]['id'])?c(c({},_0x52287a),{'attrs':c(c({},_0x52287a[_0x2b7973(0x218)]),{'id':_0x52287a[_0x2b7973(0x218)]['id']+_0x1522ad[_0x2b7973(0x249)]})}):_0x52287a;})}):_0x16b127;}function Ne(){var _0x5e6acc=_0x36f017;return Math['random']()[_0x5e6acc(0x247)](0x24)[_0x5e6acc(0x1c1)](0x2,0x8);}W[_0x36f017(0x1d1)]='UniverIcon';var Ce={'tag':_0x36f017(0x254),'attrs':{'xmlns':_0x36f017(0x1bf),'fill':_0x36f017(0x1cc),'viewBox':_0x36f017(0x1f5),'width':_0x36f017(0x1b7),'height':_0x36f017(0x1b7)},'children':[{'tag':_0x36f017(0x251),'attrs':{'fill':_0x36f017(0x1d3),'d':_0x36f017(0x203)}},{'tag':'path','attrs':{'fill':_0x36f017(0x1d3),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x36f017(0x268),'clipRule':'evenodd'}}]},B=_0x49863e(function(_0xd3acb0,_0x3c2a13){var _0x12eb01=_0x36f017;return _0xb83fdd(W,Object[_0x12eb01(0x1d2)]({},_0xd3acb0,{'id':'live-share-icon','ref':_0x3c2a13,'icon':Ce}));});B['displayName']=_0x36f017(0x213);class L extends _0x1921d4{constructor(){var _0x472517=_0x36f017;super(...arguments),d(this,_0x472517(0x25a),new Set()),d(this,_0x472517(0x269),new Set());}[_0x36f017(0x1ba)](_0x2df393){var _0x2f8243=_0x36f017;return this[_0x2f8243(0x25a)][_0x2f8243(0x23d)](_0x2df393),_0x363c38(()=>this[_0x2f8243(0x25a)][_0x2f8243(0x1bb)](_0x2df393));}[_0x36f017(0x23f)](_0x195f86){var _0x2420a9=_0x36f017;return this['_reporters'][_0x2420a9(0x23d)](_0x195f86),_0x363c38(()=>this[_0x2420a9(0x269)][_0x2420a9(0x1bb)](_0x195f86));}[_0x36f017(0x23b)](_0x51df3a){var _0x3e410b=_0x36f017;return this[_0x3e410b(0x25a)]['has'](_0x51df3a);}[_0x36f017(0x1cd)](_0xf827d9){var _0x16202c=_0x36f017;return Array[_0x16202c(0x21f)](this[_0x16202c(0x269)])[_0x16202c(0x1d9)](_0x444bb9=>_0x444bb9(_0xf827d9));}}var De=Object[_0x36f017(0x20c)],Z=(_0xa9bc40,_0x298351,_0x249e54,_0x26d69e)=>{var _0x538142=_0x36f017;for(var _0x4af965=_0x26d69e>0x1?void 0x0:_0x26d69e?De(_0x298351,_0x249e54):_0x298351,_0x3adbe4=_0xa9bc40[_0x538142(0x211)]-0x1,_0x55b2c9;_0x3adbe4>=0x0;_0x3adbe4--)(_0x55b2c9=_0xa9bc40[_0x3adbe4])&&(_0x4af965=_0x55b2c9(_0x4af965)||_0x4af965);return _0x4af965;},f=(_0x316b48,_0x16d6cd)=>(_0x165a57,_0x6e667d)=>_0x16d6cd(_0x165a57,_0x6e667d,_0x316b48);function _0x237f(){var _0x52d027=['presenter','xlink:href','ONLINE','type','PRESENTING','IDLE','button','prototype','getOwnPropertyDescriptor','Stop\x20following','_handleNewChangeSets','init','getOwnPropertySymbols','length','_beIdle','LiveShareIcon','onCommandExecuted','live-share.config','_unitID','replace','attrs','default','_presenter','OPERATION','_liveShareService','unitId','includes','from','setConfig','defs','end','has','executeCommand','stringify','parse','_univerInstanceService','dispose','onRendered','forEach','params','override','You\x27are\x20offline.','590919cKpoQM','send','_commandService','className','call','_fetchOperations','asObservable','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','_commandDisposable','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','div','shouldShareOperation','colorChannel1','add','idle','registerInitialStateReporter','4400ByQvPR','string','NEW_CHANGESETS','_handleTerminate','get','177457OwesLY','_status','toString','pluginName','idSuffix','following','complete','offline','stopPresenting','dispose$','_stopFollowing','LIVESHARE_TERMINATE','path','mask','status$','svg','fill','You\x27re\x20presenting\x20the\x20document','_stopPresenting','propertyIsEnumerable','use','_sharedOperations','_collabSession','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','trim','subscribe','next','OFFLINE','mutations','children','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','values','evenodd','_reporters','disposeWithMe','134pknacZ','1em','event$','concat','registerSharedOperation','delete','not-following','684730RbGSvS','text','http://www.w3.org/2000/svg','current','substring','clear','url(#$1','getTypeOfUnitAdded$','defIds','_uiPartsService','20250hKPpCu','entries','_status$','registerComponent','tag','none','getInitialStates','then','function','114LfraSY','displayName','assign','currentColor','getTypeOfUnitDisposed$','defineProperty','_injector','_configService','LIVESHARE_FETCH_OPERATIONS','map','3522632lkOwvs','Start','6600540VmDRYr','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','set','32493wDhdvG','getUnitId','UNIVER_SHEET','pipe','onStarting','icon','Present\x20this\x20document','tryStartPresenting','sheet','data','_startFollowing','getMemberID','extend','_handleNewHost','getLiveShareCoordinator','_handleOnline','LIVESHARE_NEW_HOST','_mountLiveShare','_entities','memberID','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','symbol','univer-size-4','_startLiveShareCoordinator','_config','startFollowing','hasOwnProperty','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_init','FOLLOWING','indexOf','HEADER_MENU','getCurrentTypeOfUnit$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'];_0x237f=function(){return _0x52d027;};return _0x237f();}let m=class extends _0xdfd2c9{constructor(_0x54836d,_0x56e546,_0x306dbe){var _0x14ed57=_0x36f017;super(),d(this,_0x14ed57(0x1f1),new Map()),(this[_0x14ed57(0x227)]=_0x54836d,this['_injector']=_0x56e546,this['_collabSessionService']=_0x306dbe,this[_0x14ed57(0x1fe)]());}async[_0x36f017(0x1ed)](_0x4c8b1a){var _0x2b5ff3=_0x36f017;return this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x223)](_0x4c8b1a)||await this[_0x2b5ff3(0x1f8)](_0x4c8b1a),this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x244)](_0x4c8b1a);}[_0x36f017(0x1fe)](){var _0x4d075c=_0x36f017;this[_0x4d075c(0x227)][_0x4d075c(0x1c4)](_0x3488c4['UNIVER_SHEET'])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](async _0x19b151=>{var _0x4ecd04=_0x4d075c;const _0x5b2b43=_0x19b151[_0x4ecd04(0x1e0)]();this[_0x4ecd04(0x1f1)][_0x4ecd04(0x223)](_0x5b2b43)||this[_0x4ecd04(0x1f8)](_0x5b2b43);}),this['_univerInstanceService'][_0x4d075c(0x1d4)](_0x3488c4[_0x4d075c(0x1e1)])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](_0x22d5f7=>{var _0x58a968=_0x4d075c;const _0x169255=_0x22d5f7[_0x58a968(0x1e0)](),_0x3fe5bd=this[_0x58a968(0x1f1)][_0x58a968(0x244)](_0x169255);_0x3fe5bd==null||_0x3fe5bd[_0x58a968(0x228)]();});}async[_0x36f017(0x1f8)](_0xdb4d1b){var _0x1d039c=_0x36f017;const _0x17fcda=await this['_collabSessionService']['requireSession'](_0xdb4d1b),_0x11cf26=this[_0x1d039c(0x1d6)]['createInstance'](C,_0xdb4d1b,_0x17fcda);return _0x11cf26[_0x1d039c(0x20f)](),this[_0x1d039c(0x1f1)][_0x1d039c(0x1de)](_0xdb4d1b,_0x11cf26),_0x11cf26;}};m=Z([f(0x0,_0x3f3fb4),f(0x1,_0x3b82a6(_0x11e997)),f(0x2,_0x3b82a6(_0x28485c))],m);var h=(_0x26ccc0=>(_0x26ccc0[_0x36f017(0x262)]='offline',_0x26ccc0[_0x36f017(0x209)]=_0x36f017(0x23e),_0x26ccc0[_0x36f017(0x1ff)]=_0x36f017(0x24a),_0x26ccc0[_0x36f017(0x236)]=_0x36f017(0x1bc),_0x26ccc0['PRESENTING']=_0x36f017(0x25e),_0x26ccc0))(h||{});const xe=_0x36f017(0x1fc),Le=0xc8;let C=class extends _0xdfd2c9{constructor(_0x4a4d2e,_0x2c1aa0,_0x1dfa73,_0x325da8,_0x14c4f4){var _0x1e1eb5=_0x36f017;super(),d(this,_0x1e1eb5(0x1c9),new _0x34eac5(_0x1e1eb5(0x23e))),d(this,_0x1e1eb5(0x253),this[_0x1e1eb5(0x1c9)][_0x1e1eb5(0x234)]()),d(this,'_init',!0x1),d(this,_0x1e1eb5(0x237),null),d(this,_0x1e1eb5(0x21a),null),(this['_unitID']=_0x4a4d2e,this[_0x1e1eb5(0x25b)]=_0x2c1aa0,this[_0x1e1eb5(0x1d7)]=_0x1dfa73,this[_0x1e1eb5(0x21c)]=_0x325da8,this[_0x1e1eb5(0x230)]=_0x14c4f4);}get[_0x36f017(0x246)](){return this['_status$']['getValue']();}['dispose'](){var _0x27192a=_0x36f017,_0x4c5a36;(_0x4c5a36=this[_0x27192a(0x237)])==null||_0x4c5a36[_0x27192a(0x228)](),this[_0x27192a(0x1c9)][_0x27192a(0x261)](_0x27192a(0x23e)),this[_0x27192a(0x1c9)][_0x27192a(0x24b)]();}[_0x36f017(0x20f)](){var _0x1e040b=_0x36f017;this[_0x1e040b(0x1fe)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0xc1bed8(this[_0x1e040b(0x24e)]))[_0x1e040b(0x260)](_0x4f4e4c=>{var _0x443822=_0x1e040b;switch(_0x4f4e4c){case _0x593165[_0x443822(0x262)]:this['_handleOffline']();break;case _0x593165[_0x443822(0x206)]:this[_0x443822(0x1ee)]();break;}}),this['_collabSession'][_0x1e040b(0x1b8)][_0x1e040b(0x1e2)](_0xc1bed8(this[_0x1e040b(0x24e)]))['subscribe'](_0x177773=>{var _0x42f088=_0x1e040b;const {eventID:_0x4323e4}=_0x177773;switch(_0x4323e4){case _0x33da1b[_0x42f088(0x1ef)]:this[_0x42f088(0x1ec)](_0x177773);break;case _0x33da1b[_0x42f088(0x25d)]:this['_handleOperation'](_0x177773);break;case _0x33da1b[_0x42f088(0x250)]:this[_0x42f088(0x243)]();break;case _0x33da1b[_0x42f088(0x242)]:this[_0x42f088(0x20e)](_0x177773);break;}}));}['tryStartPresenting'](){var _0x2471d2=_0x36f017;this[_0x2471d2(0x25b)][_0x2471d2(0x22f)]({'eventID':_0x33da1b[_0x2471d2(0x1f3)],'data':{'unitID':this[_0x2471d2(0x216)],'userID':this[_0x2471d2(0x25b)][_0x2471d2(0x1ea)]()}},this[_0x2471d2(0x216)]);}[_0x36f017(0x24d)](){var _0x1238ee=_0x36f017;this[_0x1238ee(0x246)]===_0x1238ee(0x25e)&&(this['_status$'][_0x1238ee(0x261)](_0x1238ee(0x23e)),this[_0x1238ee(0x25b)][_0x1238ee(0x22f)]({'eventID':_0x33da1b['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1238ee(0x216)]}},this[_0x1238ee(0x216)]));}[_0x36f017(0x1fa)](){var _0x46066f=_0x36f017;this[_0x46066f(0x246)]===_0x46066f(0x1bc)&&(this[_0x46066f(0x1c9)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x493f87=_0x36f017;this[_0x493f87(0x246)]===_0x493f87(0x24a)&&this[_0x493f87(0x24f)]();}['_handleNewHost'](_0x1d1022){var _0x21e974=_0x36f017;const {presenter:_0x588e21}=_0x1d1022[_0x21e974(0x1e8)],_0x3114ad=this[_0x21e974(0x25b)][_0x21e974(0x1ea)]();this[_0x21e974(0x21a)]=_0x588e21,_0x588e21===_0x3114ad?(this[_0x21e974(0x24f)](),this['_startPresenting']()):this[_0x21e974(0x246)]!=='not-following'&&(this[_0x21e974(0x257)](),this['_startFollowing']());}['_fetchOperations'](){var _0xb4962b=_0x36f017;const _0x4eb71a={'eventID':_0x33da1b[_0xb4962b(0x1d8)]};this[_0xb4962b(0x25b)][_0xb4962b(0x22f)](_0x4eb71a,this[_0xb4962b(0x216)]);}[_0x36f017(0x243)](){var _0x1a391e=_0x36f017;this['_presenter']=null,this['_status']!==_0x1a391e(0x25e)&&this[_0x1a391e(0x212)]();}[_0x36f017(0x20e)](_0x33a4c8){var _0x2b0abf=_0x36f017;if(this[_0x2b0abf(0x246)]===_0x2b0abf(0x24a)&&this[_0x2b0abf(0x21a)]===_0x33a4c8['data'][_0x2b0abf(0x1f2)]){const _0x147bd7=_0x35401c(_0x33a4c8[_0x2b0abf(0x1e8)])[_0x2b0abf(0x263)]['reverse']()['find'](_0x4e130c=>_0x4e130c['id']===_0xdd3b8d['id']);if(_0x147bd7){const _0x159c1a=_0x147bd7['params'][_0x2b0abf(0x21d)],_0xd73be7=_0x147bd7[_0x2b0abf(0x22b)][_0x2b0abf(0x1e7)]['id'];setTimeout(()=>{var _0x4abac8=_0x2b0abf;this[_0x4abac8(0x230)][_0x4abac8(0x224)](_0x541ec2['id'],{'unitId':_0x159c1a,'subUnitId':_0xd73be7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5f92b2=_0x36f017;this[_0x5f92b2(0x1c9)]['next'](_0x5f92b2(0x25e));const _0x7c7424=new Map(),_0x587980=this[_0x5f92b2(0x237)]=new _0x432129();_0x587980['add'](_0x363c38(()=>{var _0x9e7eda=_0x5f92b2;_0x7c7424['forEach'](_0x38f085=>_0x38f085[_0x9e7eda(0x24b)]()),_0x7c7424[_0x9e7eda(0x1c2)]();})),_0x587980['add'](this[_0x5f92b2(0x230)][_0x5f92b2(0x214)](_0x273122=>{var _0x421400=_0x5f92b2,_0x1bf6e5;if(_0x273122[_0x421400(0x207)]!==_0x55283a[_0x421400(0x21b)]||!this[_0x421400(0x21c)][_0x421400(0x23b)](_0x273122['id']))return;const {id:_0x1dbf36}=_0x273122;let _0x1867d9;_0x7c7424[_0x421400(0x223)](_0x1dbf36)?_0x1867d9=_0x7c7424[_0x421400(0x244)](_0x1dbf36):(_0x1867d9=new _0x9375f3(),_0x7c7424[_0x421400(0x1de)](_0x1dbf36,_0x1867d9),_0x1867d9['pipe'](_0x4b7434((_0x1bf6e5=this['_configService']['getConfig'](xe))!=null?_0x1bf6e5:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x421400(0x260)](_0x2796c9=>{var _0x2fa187=_0x421400;this[_0x2fa187(0x25b)][_0x2fa187(0x22f)]({'eventID':_0x33da1b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa187(0x216)],'operations':{[_0x2796c9['id']]:{'id':_0x2796c9['id'],'params':JSON[_0x2fa187(0x225)](_0x2796c9['params'])}}}},this[_0x2fa187(0x216)]);})),_0x1867d9[_0x421400(0x261)](_0x273122);})),this['_liveShareService'][_0x5f92b2(0x1cd)](this['_unitID'])[_0x5f92b2(0x22a)](_0x5c3aa3=>this[_0x5f92b2(0x25b)]['send']({'eventID':_0x33da1b[_0x5f92b2(0x25d)],'data':{'unitID':this[_0x5f92b2(0x216)],'operations':{[_0x5c3aa3['id']]:{'id':_0x5c3aa3['id'],'params':JSON[_0x5f92b2(0x225)](_0x5c3aa3[_0x5f92b2(0x22b)])}}}},this[_0x5f92b2(0x216)]));}[_0x36f017(0x257)](){var _0x538659=_0x36f017,_0x338918;this[_0x538659(0x1c9)][_0x538659(0x261)](_0x538659(0x23e)),(_0x338918=this[_0x538659(0x237)])==null||_0x338918[_0x538659(0x228)](),this['_commandDisposable']=null;}[_0x36f017(0x1e9)](){var _0x318f74=_0x36f017,_0x520939;(_0x520939=this['_commandDisposable'])==null||_0x520939[_0x318f74(0x228)](),this[_0x318f74(0x1c9)][_0x318f74(0x261)](_0x318f74(0x24a));}[_0x36f017(0x212)](){var _0x4088bd=_0x36f017,_0x307b78;this[_0x4088bd(0x1c9)][_0x4088bd(0x261)](_0x4088bd(0x23e)),(_0x307b78=this[_0x4088bd(0x237)])==null||_0x307b78[_0x4088bd(0x228)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5dd3ee=_0x36f017,_0x3062cd;this['_status$'][_0x5dd3ee(0x261)]('not-following'),(_0x3062cd=this[_0x5dd3ee(0x237)])==null||_0x3062cd[_0x5dd3ee(0x228)]();}[_0x36f017(0x265)](_0x229996){var _0x8aa3b=_0x36f017;if([_0x8aa3b(0x25e),_0x8aa3b(0x1bc),_0x8aa3b(0x24c)][_0x8aa3b(0x21e)](this[_0x8aa3b(0x246)])||!_0x229996[_0x8aa3b(0x1e8)][_0x8aa3b(0x204)]||_0x229996['data'][_0x8aa3b(0x204)]===this['_collabSession'][_0x8aa3b(0x1ea)]())return;this['_status']===_0x8aa3b(0x23e)&&this[_0x8aa3b(0x1e9)]();const _0x26b22a=_0x229996['data']['operations'];Object[_0x8aa3b(0x267)](_0x26b22a)[_0x8aa3b(0x22a)](_0x41b2e5=>{var _0x58138c=_0x8aa3b;this[_0x58138c(0x230)][_0x58138c(0x224)](_0x41b2e5['id'],_0x41b2e5['params']?JSON[_0x58138c(0x226)](_0x41b2e5[_0x58138c(0x22b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x674581=_0x36f017,_0x1c721b;this[_0x674581(0x1c9)]['next'](_0x674581(0x24c)),(_0x1c721b=this[_0x674581(0x237)])==null||_0x1c721b[_0x674581(0x228)]();}[_0x36f017(0x1ee)](){var _0x2e3b5c=_0x36f017;this[_0x2e3b5c(0x1c9)][_0x2e3b5c(0x261)](_0x2e3b5c(0x23e)),this[_0x2e3b5c(0x233)]();}};function _0xde17(_0x321364,_0x57333e){var _0x237f96=_0x237f();return _0xde17=function(_0xde17d,_0xf28e72){_0xde17d=_0xde17d-0x1b7;var _0x4406a2=_0x237f96[_0xde17d];return _0x4406a2;},_0xde17(_0x321364,_0x57333e);}C=Z([f(0x2,_0x2ade0c),f(0x3,_0x3b82a6(L)),f(0x4,_0x5b1a08)],C);function ye(){var _0x49446f=_0x36f017;const _0x7597a9=_0x57a76c(m),_0x3a5aaf=_0x57a76c(_0x3f3fb4),_0x413b7a=_0x28c88f(()=>_0x3a5aaf[_0x49446f(0x202)](_0x3488c4[_0x49446f(0x1e1)]),void 0x0,!0x1,[]),[_0x47c4c7,_0x1922a1]=_0x49d219(null),[_0x15d68f,_0x1e6260]=_0x49d219(h[_0x49446f(0x209)]),_0x1bf422=_0xeec105(null);return _0x2e558b(()=>(_0x413b7a&&_0x7597a9[_0x49446f(0x1ed)](_0x413b7a['getUnitId']())[_0x49446f(0x1ce)](_0x1e8e88=>{var _0x25ecbf=_0x49446f;_0x1922a1(_0x1e8e88),_0x1bf422[_0x25ecbf(0x1c0)]=_0x1e8e88[_0x25ecbf(0x253)]['subscribe'](_0x24b5e2=>{_0x1e6260(_0x24b5e2);});}),()=>{var _0xebf658=_0x49446f,_0x30f78b;(_0x30f78b=_0x1bf422[_0xebf658(0x1c0)])==null||_0x30f78b['unsubscribe'](),_0x1bf422[_0xebf658(0x1c0)]=null;}),[_0x413b7a,_0x7597a9]),_0x47c4c7?_0x36e838(_0x1eee21,{'align':_0x49446f(0x222),'disabled':_0x15d68f===h[_0x49446f(0x262)],'className':_0x49446f(0x1dd),'overlay':_0x36e838(Re,{'status':_0x15d68f,'coordinator':_0x47c4c7}),'children':_0x36e838(_0x49446f(0x20a),{'className':_0x28accc(_0x49446f(0x1f4),{'univer-cursor-not-allowed':_0x15d68f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15d68f!==h['OFFLINE']}),'type':'button','children':_0x36e838(B,{'className':_0x49446f(0x1f7)})})}):null;}function Re(_0x142e45){var _0x1f880a=_0x36f017;const {status:_0x3626be,coordinator:_0x1fcb92}=_0x142e45;switch(_0x3626be){case h['IDLE']:return _0x36e838(Pe,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x1ff)]:return _0x36e838(Ae,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x236)]:return _0x36e838(Te,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x262)]:return _0x36e838(Fe,{});case h[_0x1f880a(0x208)]:return _0x36e838($e,{'coordinator':_0x1fcb92});default:return null;}}function Pe(_0x4fab17){var _0x49e46f=_0x36f017;const {coordinator:_0x2cdd39}=_0x4fab17;return _0x5ddc08(_0x10e248,{'children':[_0x36e838('div',{'className':_0x49e46f(0x266),'children':_0x49e46f(0x1e5)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x2cdd39[_0x49e46f(0x1e6)](),'children':_0x49e46f(0x1db)})]});}function Ae(_0x89f442){var _0x2170e4=_0x36f017;const {coordinator:_0x48390b}=_0x89f442;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2170e4(0x23a),{'className':_0x2170e4(0x266),'children':_0x2170e4(0x235)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x48390b['stopFollowing'](),'children':_0x2170e4(0x20d)})]});}function Te(_0x29f184){var _0x2d6a4a=_0x36f017;const {coordinator:_0x1b70a0}=_0x29f184;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2d6a4a(0x23a),{'className':_0x2d6a4a(0x266),'children':_0x2d6a4a(0x239)}),_0x36e838(_0x564e8c,{'variant':_0x2d6a4a(0x1be),'onClick':()=>_0x1b70a0[_0x2d6a4a(0x1fa)](),'children':'Start\x20following'})]});}function $e(_0x47991e){var _0x4a4bdb=_0x36f017;const {coordinator:_0x1e5ec1}=_0x47991e;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x4a4bdb(0x23a),{'className':_0x4a4bdb(0x266),'children':_0x4a4bdb(0x256)}),_0x36e838(_0x564e8c,{'variant':_0x4a4bdb(0x219),'onClick':()=>_0x1e5ec1[_0x4a4bdb(0x24d)](),'children':_0x4a4bdb(0x238)})]});}function Fe(){var _0x5685cf=_0x36f017;return _0x36e838(_0x10e248,{'children':_0x5685cf(0x22d)});}var He=Object[_0x36f017(0x20c)],je=(_0x564edb,_0x4c8839,_0x2db3c0,_0x5bff78)=>{for(var _0x4491a2=_0x5bff78>0x1?void 0x0:_0x5bff78?He(_0x4c8839,_0x2db3c0):_0x4c8839,_0x30d74a=_0x564edb['length']-0x1,_0x349018;_0x30d74a>=0x0;_0x30d74a--)(_0x349018=_0x564edb[_0x30d74a])&&(_0x4491a2=_0x349018(_0x4491a2)||_0x4491a2);return _0x4491a2;},T=(_0x4ee606,_0x55ee6c)=>(_0x5f022d,_0x2e0e92)=>_0x55ee6c(_0x5f022d,_0x2e0e92,_0x4ee606);let I=class extends _0x1921d4{constructor(_0x3f9f5f,_0x2c7932){var _0x13c02f=_0x36f017;super(),this[_0x13c02f(0x1d6)]=_0x3f9f5f,this[_0x13c02f(0x1c6)]=_0x2c7932,this[_0x13c02f(0x1f0)]();}[_0x36f017(0x1f0)](){var _0x3f47ee=_0x36f017;this['disposeWithMe'](this[_0x3f47ee(0x1c6)][_0x3f47ee(0x1ca)](_0x4db87a[_0x3f47ee(0x201)],()=>_0x518bf9(ye,this[_0x3f47ee(0x1d6)])));}};I=je([T(0x0,_0x3b82a6(_0x11e997)),T(0x1,_0x3c6a2e)],I);const Ue=_0x36f017(0x215),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x514688,_0x36d2be,_0x4223c8,_0x540ba4)=>{var _0xdb5efb=_0x36f017;for(var _0x4e489a=_0x540ba4>0x1?void 0x0:_0x540ba4?Ve(_0x36d2be,_0x4223c8):_0x36d2be,_0x513e1f=_0x514688[_0xdb5efb(0x211)]-0x1,_0x4ca992;_0x513e1f>=0x0;_0x513e1f--)(_0x4ca992=_0x514688[_0x513e1f])&&(_0x4e489a=_0x4ca992(_0x4e489a)||_0x4e489a);return _0x4e489a;},ke=(_0x40b66d,_0xd0b1b9)=>(_0x4724d7,_0x10ed8d)=>_0xd0b1b9(_0x4724d7,_0x10ed8d,_0x40b66d);let b=class extends _0x1921d4{constructor(_0x25c18f){var _0x18875a=_0x36f017;super(),this[_0x18875a(0x21c)]=_0x25c18f,this['_init']();}['_init'](){[_0x17d0cb['id'],_0x43d03b['id'],_0x541ec2['id']]['forEach'](_0x9f46d7=>{var _0x21b0fa=_0xde17;this[_0x21b0fa(0x26a)](this[_0x21b0fa(0x21c)]['registerSharedOperation'](_0x9f46d7));});}};b=Me([ke(0x0,_0x3b82a6(L))],b);var Ge=Object[_0x36f017(0x1d5)],We=Object[_0x36f017(0x20c)],Ye=(_0x23d052,_0x18803a,_0x1ae5c9)=>_0x18803a in _0x23d052?Ge(_0x23d052,_0x18803a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae5c9}):_0x23d052[_0x18803a]=_0x1ae5c9,Be=(_0xece216,_0x45f951,_0x59ab6f,_0x2b89ac)=>{var _0x27d4b4=_0x36f017;for(var _0x428ec4=_0x2b89ac>0x1?void 0x0:_0x2b89ac?We(_0x45f951,_0x59ab6f):_0x45f951,_0x100709=_0xece216[_0x27d4b4(0x211)]-0x1,_0x482983;_0x100709>=0x0;_0x100709--)(_0x482983=_0xece216[_0x100709])&&(_0x428ec4=_0x482983(_0x428ec4)||_0x428ec4);return _0x428ec4;},F=(_0x17dbcc,_0x15d582)=>(_0x5639c8,_0x4f64fe)=>_0x15d582(_0x5639c8,_0x4f64fe,_0x17dbcc),J=(_0x186778,_0x2e2554,_0x4cea52)=>Ye(_0x186778,typeof _0x2e2554!=_0x36f017(0x1f6)?_0x2e2554+'':_0x2e2554,_0x4cea52);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c42d2{constructor(_0x3a181e=$,_0x41e95f,_0xf09914){var _0x356bbe=_0x36f017;super(),this[_0x356bbe(0x1f9)]=_0x3a181e,this[_0x356bbe(0x1d6)]=_0x41e95f,this['_configService']=_0xf09914;const {..._0x531b46}=_0x3fdcd0({},$,this['_config']);this[_0x356bbe(0x1d7)][_0x356bbe(0x220)](Ue,_0x531b46);}[_0x36f017(0x1e3)](){var _0x170eda=_0x36f017;_0x29e73f(this['_injector'],_0x5e60eb([[L],[m],[b],[I]],this['_config'][_0x170eda(0x22c)])),_0x184d91(this[_0x170eda(0x1d6)],[[b]]);}[_0x36f017(0x229)](){var _0x4a7004=_0x36f017;_0x184d91(this[_0x4a7004(0x1d6)],[[I]]);}};J(O,_0x36f017(0x207),_0x3488c4[_0x36f017(0x1fd)]),J(O,_0x36f017(0x248),Ze),O=Be([_0x3c9495(_0x2e766a),F(0x1,_0x3b82a6(_0x11e997)),F(0x2,_0x2ade0c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x87e7bd=_0x3379;function _0x124e(){var _0x457754=['PRESENTING','getInitialStates','Present\x20this\x20document','OPERATION','stopFollowing','33433930hmcKIr','subscribe','_unitID','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','16gWsjnx','complete','_univerInstanceService','next','stopPresenting','Start','includes','unsubscribe','_fetchOperations','random','function','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_entities','evenodd','UNIVER_UNKNOWN','send','_reporters','live-share-icon','OFFLINE','button','defs','displayName','Stop\x20following','NEW_CHANGESETS','_stopFollowing','div','_status','presenting','status$','not-following','_handleNewChangeSets','apply','LiveShareIcon','_injector','toString','FOLLOWING','getConfig','clear','registerInitialStateReporter','_sharedOperations','indexOf','844320sZZxBK','hasOwnProperty','text','_collabSessionService','url(#$1','NOT_FOLLOWING','set','mask','_configService','ONLINE','registerSharedOperation','_mountLiveShare','offline','reverse','getValue','values','params','_liveShareService','has','createInstance','propertyIsEnumerable','get','You\x27are\x20offline.','_uiPartsService','attrs','icon','LIVESHARE_NEW_HOST','getUnitId','call','substring','then','shouldShareOperation','className','length','presenter','from','_status$','tryStartPresenting','getLiveShareCoordinator','init','onRendered','defineProperty','onStarting','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','tag','9OYZUqF','mutations','svg','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','1904742SOBnvJ','extend','defIds','_init','_startPresenting','_handleTerminate','none','SAME_OPERATION_SHARE_INTERVAL','idle','xlink:href','_handleOnline','current','data','event$','registerComponent','assign','idSuffix','IDLE','_handleOperation','dispose','546363BXZXMN','getCurrentTypeOfUnit$','asObservable','LIVESHARE_REQUEST_HOST','type','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','replace','1em','getOwnPropertySymbols','_presenter','parse','You\x27re\x20following\x20the\x20presenter','string','4079928ByTSUG','UNIVER_SHEET','LIVESHARE_OPERATION','forEach','2577759Sjtvji','memberID','_startLiveShareCoordinator','colorChannel1','unitId','map','_config','entries','getOwnPropertyDescriptor','Start\x20following','startFollowing','0\x200\x2017\x2017','prototype','end','path','getMemberID','children','add','_commandDisposable','requireSession','getTypeOfUnitDisposed$','following','dispose$','_commandService','_collabSession','disposeWithMe','onCommandExecuted','_handleNewHost','concat','_startFollowing','executeCommand','symbol','_handleOffline','sheet','35dbqWfV','sessionStatus$','currentColor','1279015bjbUrO','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-'];_0x124e=function(){return _0x457754;};return _0x124e();}(function(_0x57e37c,_0x24e089){var _0x2358d8=_0x3379,_0x2a2100=_0x57e37c();while(!![]){try{var _0x19de2f=-parseInt(_0x2358d8(0x11c))/0x1+parseInt(_0x2358d8(0x108))/0x2+-parseInt(_0x2358d8(0x12f))/0x3+parseInt(_0x2358d8(0x161))/0x4*(-parseInt(_0x2358d8(0x154))/0x5)+-parseInt(_0x2358d8(0x12b))/0x6+parseInt(_0x2358d8(0x151))/0x7*(-parseInt(_0x2358d8(0x18b))/0x8)+parseInt(_0x2358d8(0x103))/0x9*(parseInt(_0x2358d8(0x15d))/0xa);if(_0x19de2f===_0x24e089)break;else _0x2a2100['push'](_0x2a2100['shift']());}catch(_0x505c17){_0x2a2100['push'](_0x2a2100['shift']());}}}(_0x124e,0xa0f30));var q=Object[_0x87e7bd(0xfe)],z=(_0x14c8cc,_0x3fe82f,_0x4323b8)=>_0x3fe82f in _0x14c8cc?q(_0x14c8cc,_0x3fe82f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4323b8}):_0x14c8cc[_0x3fe82f]=_0x4323b8,d=(_0x1c6f70,_0x1a4afa,_0x31dd20)=>z(_0x1c6f70,typeof _0x1a4afa!=_0x87e7bd(0x14e)?_0x1a4afa+'':_0x1a4afa,_0x31dd20);import{Disposable as _0x19c8be,toDisposable as _0x81af47,IUniverInstanceService as _0x5d694e,Inject as _0x45d391,Injector as _0x39e533,IConfigService as _0x29a479,ICommandService as _0x5c7d54,RxDisposable as _0x1913a8,UniverInstanceType as _0x5e035c,DisposableCollection as _0x36d5d8,CommandType as _0x4d09fc,DependentOn as _0x269804,Plugin as _0x220379,merge as _0x5e860a,registerDependencies as _0x38944b,mergeOverrideWithDependencies as _0x3197e4,touchDependencies as _0x6f9452}from'@univerjs/core';import{useDependency as _0xed083e,useObservable as _0x4b2582,IUIPartsService as _0x5a0914,BuiltInUIPart as _0x5a42fd,connectInjector as _0x29c103}from'@univerjs/ui';import{jsx as _0x5985f9,jsxs as _0x516a75,Fragment as _0x4e17f3}from'react/jsx-runtime';import{Dropdown as _0x5653ff,clsx as _0x4a2c58,Button as _0x279d25}from'@univerjs/design';import{forwardRef as _0x2ed7c1,useRef as _0x195bcf,createElement as _0x11ad3e,useState as _0x50f1f1,useEffect as _0x38f5f5}from'react';import{CollaborationEvent as _0x242775,parseProtocolChangeset as _0x5eafd3}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x224f92,SessionStatus as _0xd3e62f,UniverCollaborationClientPlugin as _0x2acd5c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3ee211,SetWorksheetActiveOperation as _0xc428b2}from'@univerjs/sheets';import{BehaviorSubject as _0x7d2638,Subject as _0x43807e}from'rxjs';import{takeUntil as _0x384156,throttleTime as _0x431766}from'rxjs/operators';import{SetZoomRatioOperation as _0x2ccbe4,SetScrollOperation as _0x42b170}from'@univerjs/sheets-ui';var c=function(){var _0x4367d7=_0x87e7bd;return c=Object[_0x4367d7(0x117)]||function(_0x1cbc0a){var _0x64be38=_0x4367d7;for(var _0x3614aa,_0x321983=0x1,_0x1fca85=arguments[_0x64be38(0xf6)];_0x321983<_0x1fca85;_0x321983++){_0x3614aa=arguments[_0x321983];for(var _0x24dee0 in _0x3614aa)Object[_0x64be38(0x13b)]['hasOwnProperty'][_0x64be38(0xf1)](_0x3614aa,_0x24dee0)&&(_0x1cbc0a[_0x24dee0]=_0x3614aa[_0x24dee0]);}return _0x1cbc0a;},c[_0x4367d7(0x181)](this,arguments);},Oe=function(_0xae060d,_0x4773ba){var _0x37fc28=_0x87e7bd,_0x527e81={};for(var _0x5a3e44 in _0xae060d)Object[_0x37fc28(0x13b)][_0x37fc28(0x18c)][_0x37fc28(0xf1)](_0xae060d,_0x5a3e44)&&_0x4773ba[_0x37fc28(0x18a)](_0x5a3e44)<0x0&&(_0x527e81[_0x5a3e44]=_0xae060d[_0x5a3e44]);if(_0xae060d!=null&&typeof Object[_0x37fc28(0x126)]==_0x37fc28(0x16b)){for(var _0x40f338=0x0,_0x5a3e44=Object[_0x37fc28(0x126)](_0xae060d);_0x40f338<_0x5a3e44[_0x37fc28(0xf6)];_0x40f338++)_0x4773ba['indexOf'](_0x5a3e44[_0x40f338])<0x0&&Object['prototype'][_0x37fc28(0xe9)][_0x37fc28(0xf1)](_0xae060d,_0x5a3e44[_0x40f338])&&(_0x527e81[_0x5a3e44[_0x40f338]]=_0xae060d[_0x5a3e44[_0x40f338]]);}return _0x527e81;},W=_0x2ed7c1(function(_0x4e5879,_0x38d6d3){var _0x2f93fe=_0x87e7bd,_0x4bd87e=_0x4e5879[_0x2f93fe(0xee)],_0x2be15d=_0x4e5879['id'],_0x377002=_0x4e5879['className'],_0x63b336=_0x4e5879[_0x2f93fe(0x109)],_0x560f72=Oe(_0x4e5879,[_0x2f93fe(0xee),'id',_0x2f93fe(0xf5),_0x2f93fe(0x109)]),_0x1dc4c7=_0x2f93fe(0x157)[_0x2f93fe(0x14b)](_0x2be15d,'\x20')[_0x2f93fe(0x14b)](_0x377002||'')['trim'](),_0x2aba1a=_0x195bcf('_'[_0x2f93fe(0x14b)](Ne()));return Y(_0x4bd87e,''[_0x2f93fe(0x14b)](_0x2be15d),{'defIds':_0x4bd87e[_0x2f93fe(0x10a)],'idSuffix':_0x2aba1a['current']},c({'ref':_0x38d6d3,'className':_0x1dc4c7},_0x560f72),_0x63b336);});function Y(_0x38ef95,_0x24e56b,_0x40049e,_0x363598,_0x4b3cc8){var _0x51e577=_0x87e7bd;return _0x11ad3e(_0x38ef95[_0x51e577(0x102)],c(c({'key':_0x24e56b},Ee(_0x38ef95,_0x40049e,_0x4b3cc8)),_0x363598),(we(_0x38ef95,_0x40049e)[_0x51e577(0x13f)]||[])['map'](function(_0x44a3a4,_0x48f8ed){var _0x36ab42=_0x51e577;return Y(_0x44a3a4,''[_0x36ab42(0x14b)](_0x24e56b,'-')[_0x36ab42(0x14b)](_0x38ef95[_0x36ab42(0x102)],'-')[_0x36ab42(0x14b)](_0x48f8ed),_0x40049e,void 0x0,_0x4b3cc8);}));}function Ee(_0x196d30,_0x4b86eb,_0x3e4203){var _0x4e3620=_0x87e7bd,_0x12f9c3=c({},_0x196d30['attrs']);_0x3e4203!=null&&_0x3e4203[_0x4e3620(0x132)]&&_0x12f9c3[_0x4e3620(0x107)]===_0x4e3620(0x132)&&(_0x12f9c3[_0x4e3620(0x107)]=_0x3e4203[_0x4e3620(0x132)]),_0x196d30[_0x4e3620(0x102)]===_0x4e3620(0x192)&&_0x12f9c3['id']&&(_0x12f9c3['id']=_0x12f9c3['id']+_0x4b86eb[_0x4e3620(0x118)]),Object[_0x4e3620(0x136)](_0x12f9c3)[_0x4e3620(0x12e)](function(_0x52acfa){var _0x582e18=_0x4e3620,_0x1d2edb=_0x52acfa[0x0],_0x59ae12=_0x52acfa[0x1];_0x1d2edb==='mask'&&typeof _0x59ae12==_0x582e18(0x12a)&&(_0x12f9c3[_0x1d2edb]=_0x59ae12[_0x582e18(0x124)](/url\(#(.*)\)/,_0x582e18(0x18f)[_0x582e18(0x14b)](_0x4b86eb[_0x582e18(0x118)],')')));});var _0xe791d=_0x4b86eb[_0x4e3620(0x10a)];return!_0xe791d||_0xe791d[_0x4e3620(0xf6)]===0x0||(_0x196d30['tag']==='use'&&_0x12f9c3[_0x4e3620(0x111)]&&(_0x12f9c3[_0x4e3620(0x111)]=_0x12f9c3['xlink:href']+_0x4b86eb[_0x4e3620(0x118)]),Object[_0x4e3620(0x136)](_0x12f9c3)['forEach'](function(_0x52d571){var _0x3e0a99=_0x4e3620,_0xa02f90=_0x52d571[0x0],_0x1068c4=_0x52d571[0x1];typeof _0x1068c4==_0x3e0a99(0x12a)&&(_0x12f9c3[_0xa02f90]=_0x1068c4[_0x3e0a99(0x124)](/url\(#(.*)\)/,_0x3e0a99(0x18f)[_0x3e0a99(0x14b)](_0x4b86eb[_0x3e0a99(0x118)],')')));})),_0x12f9c3;}function we(_0x5ca70e,_0x18e157){var _0x1482cb=_0x87e7bd,_0x10fc42,_0x5bb4d4=_0x18e157['defIds'];return!_0x5bb4d4||_0x5bb4d4['length']===0x0?_0x5ca70e:_0x5ca70e[_0x1482cb(0x102)]===_0x1482cb(0x176)&&(!((_0x10fc42=_0x5ca70e[_0x1482cb(0x13f)])===null||_0x10fc42===void 0x0)&&_0x10fc42[_0x1482cb(0xf6)])?c(c({},_0x5ca70e),{'children':_0x5ca70e[_0x1482cb(0x13f)][_0x1482cb(0x134)](function(_0x313d89){var _0x5d4ce8=_0x1482cb;return typeof _0x313d89['attrs']['id']==_0x5d4ce8(0x12a)&&_0x5bb4d4&&_0x5bb4d4[_0x5d4ce8(0x167)](_0x313d89[_0x5d4ce8(0xed)]['id'])?c(c({},_0x313d89),{'attrs':c(c({},_0x313d89[_0x5d4ce8(0xed)]),{'id':_0x313d89[_0x5d4ce8(0xed)]['id']+_0x18e157[_0x5d4ce8(0x118)]})}):_0x313d89;})}):_0x5ca70e;}function Ne(){var _0x1d9056=_0x87e7bd;return Math[_0x1d9056(0x16a)]()[_0x1d9056(0x184)](0x24)[_0x1d9056(0xf2)](0x2,0x8);}W[_0x87e7bd(0x177)]='UniverIcon';var Ce={'tag':_0x87e7bd(0x105),'attrs':{'xmlns':_0x87e7bd(0x155),'fill':_0x87e7bd(0x10e),'viewBox':_0x87e7bd(0x13a),'width':_0x87e7bd(0x125),'height':_0x87e7bd(0x125)},'children':[{'tag':_0x87e7bd(0x13d),'attrs':{'fill':'currentColor','d':_0x87e7bd(0x160)}},{'tag':_0x87e7bd(0x13d),'attrs':{'fill':_0x87e7bd(0x153),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x87e7bd(0x16f)}}]},B=_0x2ed7c1(function(_0x2e1af3,_0x356cad){var _0x1a02dc=_0x87e7bd;return _0x11ad3e(W,Object[_0x1a02dc(0x117)]({},_0x2e1af3,{'id':_0x1a02dc(0x173),'ref':_0x356cad,'icon':Ce}));});B[_0x87e7bd(0x177)]=_0x87e7bd(0x182);function _0x3379(_0x46dc63,_0x5332b4){var _0x124e71=_0x124e();return _0x3379=function(_0x3379e1,_0x5c82f7){_0x3379e1=_0x3379e1-0xde;var _0x42730d=_0x124e71[_0x3379e1];return _0x42730d;},_0x3379(_0x46dc63,_0x5332b4);}class L extends _0x19c8be{constructor(){var _0x5e8456=_0x87e7bd;super(...arguments),d(this,_0x5e8456(0x189),new Set()),d(this,_0x5e8456(0x172),new Set());}[_0x87e7bd(0xdf)](_0x2753f5){var _0x557dd2=_0x87e7bd;return this[_0x557dd2(0x189)]['add'](_0x2753f5),_0x81af47(()=>this[_0x557dd2(0x189)]['delete'](_0x2753f5));}[_0x87e7bd(0x188)](_0x1bbbbf){var _0x10a9f5=_0x87e7bd;return this[_0x10a9f5(0x172)][_0x10a9f5(0x140)](_0x1bbbbf),_0x81af47(()=>this['_reporters']['delete'](_0x1bbbbf));}[_0x87e7bd(0xf4)](_0x43b9d6){var _0x18649b=_0x87e7bd;return this[_0x18649b(0x189)]['has'](_0x43b9d6);}[_0x87e7bd(0x159)](_0x5e7d31){var _0x3904a7=_0x87e7bd;return Array[_0x3904a7(0xf8)](this[_0x3904a7(0x172)])[_0x3904a7(0x134)](_0x2b6d02=>_0x2b6d02(_0x5e7d31));}}var De=Object[_0x87e7bd(0x137)],Z=(_0x1bde03,_0x46bd20,_0x5a4efa,_0x18557b)=>{var _0x3904bb=_0x87e7bd;for(var _0x419c2b=_0x18557b>0x1?void 0x0:_0x18557b?De(_0x46bd20,_0x5a4efa):_0x46bd20,_0x57b8cd=_0x1bde03[_0x3904bb(0xf6)]-0x1,_0xd55095;_0x57b8cd>=0x0;_0x57b8cd--)(_0xd55095=_0x1bde03[_0x57b8cd])&&(_0x419c2b=_0xd55095(_0x419c2b)||_0x419c2b);return _0x419c2b;},f=(_0x537c41,_0xfbab33)=>(_0x25fc34,_0x159da6)=>_0xfbab33(_0x25fc34,_0x159da6,_0x537c41);let m=class extends _0x1913a8{constructor(_0x5b4289,_0x49e954,_0x421c49){var _0x377895=_0x87e7bd;super(),d(this,_0x377895(0x16e),new Map()),(this[_0x377895(0x163)]=_0x5b4289,this[_0x377895(0x183)]=_0x49e954,this[_0x377895(0x18e)]=_0x421c49,this['_init']());}async[_0x87e7bd(0xfb)](_0x18febf){var _0x1422d2=_0x87e7bd;return this[_0x1422d2(0x16e)][_0x1422d2(0xe7)](_0x18febf)||await this['_startLiveShareCoordinator'](_0x18febf),this[_0x1422d2(0x16e)][_0x1422d2(0xea)](_0x18febf);}[_0x87e7bd(0x10b)](){var _0x2c7b5d=_0x87e7bd;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5e035c['UNIVER_SHEET'])[_0x2c7b5d(0x101)](_0x384156(this[_0x2c7b5d(0x145)]))['subscribe'](async _0x2d5fed=>{var _0x3cd683=_0x2c7b5d;const _0x488226=_0x2d5fed[_0x3cd683(0xf0)]();this[_0x3cd683(0x16e)][_0x3cd683(0xe7)](_0x488226)||this[_0x3cd683(0x131)](_0x488226);}),this['_univerInstanceService'][_0x2c7b5d(0x143)](_0x5e035c[_0x2c7b5d(0x12c)])['pipe'](_0x384156(this[_0x2c7b5d(0x145)]))[_0x2c7b5d(0x15e)](_0x374e72=>{var _0x476909=_0x2c7b5d;const _0xacccb0=_0x374e72[_0x476909(0xf0)](),_0x5ba182=this[_0x476909(0x16e)][_0x476909(0xea)](_0xacccb0);_0x5ba182==null||_0x5ba182['dispose']();});}async['_startLiveShareCoordinator'](_0x4c962d){var _0x4b4740=_0x87e7bd;const _0x2073eb=await this[_0x4b4740(0x18e)][_0x4b4740(0x142)](_0x4c962d),_0x3f92d9=this[_0x4b4740(0x183)][_0x4b4740(0xe8)](C,_0x4c962d,_0x2073eb);return _0x3f92d9[_0x4b4740(0xfc)](),this['_entities'][_0x4b4740(0x191)](_0x4c962d,_0x3f92d9),_0x3f92d9;}};m=Z([f(0x0,_0x5d694e),f(0x1,_0x45d391(_0x39e533)),f(0x2,_0x45d391(_0x224f92))],m);var h=(_0x493f6a=>(_0x493f6a[_0x87e7bd(0x174)]=_0x87e7bd(0xe1),_0x493f6a[_0x87e7bd(0x119)]=_0x87e7bd(0x110),_0x493f6a[_0x87e7bd(0x185)]=_0x87e7bd(0x144),_0x493f6a[_0x87e7bd(0x190)]=_0x87e7bd(0x17f),_0x493f6a[_0x87e7bd(0x158)]=_0x87e7bd(0x17d),_0x493f6a))(h||{});const xe=_0x87e7bd(0x10f),Le=0xc8;let C=class extends _0x1913a8{constructor(_0x12ed7b,_0x595404,_0x2b0c0d,_0x5c5a3a,_0x4f7a53){var _0x4c79f9=_0x87e7bd;super(),d(this,'_status$',new _0x7d2638(_0x4c79f9(0x110))),d(this,_0x4c79f9(0x17e),this['_status$'][_0x4c79f9(0x11e)]()),d(this,'_init',!0x1),d(this,_0x4c79f9(0x141),null),d(this,_0x4c79f9(0x127),null),(this[_0x4c79f9(0x15f)]=_0x12ed7b,this['_collabSession']=_0x595404,this[_0x4c79f9(0x193)]=_0x2b0c0d,this[_0x4c79f9(0xe6)]=_0x5c5a3a,this[_0x4c79f9(0x146)]=_0x4f7a53);}get[_0x87e7bd(0x17c)](){var _0x4997c2=_0x87e7bd;return this[_0x4997c2(0xf9)][_0x4997c2(0xe3)]();}[_0x87e7bd(0x11b)](){var _0x3b3a10=_0x87e7bd,_0x2b0cbf;(_0x2b0cbf=this['_commandDisposable'])==null||_0x2b0cbf[_0x3b3a10(0x11b)](),this[_0x3b3a10(0xf9)][_0x3b3a10(0x164)](_0x3b3a10(0x110)),this['_status$'][_0x3b3a10(0x162)]();}['init'](){var _0xd2eb56=_0x87e7bd;this['_init']||(this[_0xd2eb56(0x10b)]=!0x0,this['_collabSession'][_0xd2eb56(0x152)]['pipe'](_0x384156(this[_0xd2eb56(0x145)]))[_0xd2eb56(0x15e)](_0x5ba771=>{var _0x1c1a13=_0xd2eb56;switch(_0x5ba771){case _0xd3e62f[_0x1c1a13(0x174)]:this[_0x1c1a13(0x14f)]();break;case _0xd3e62f[_0x1c1a13(0xde)]:this[_0x1c1a13(0x112)]();break;}}),this[_0xd2eb56(0x147)][_0xd2eb56(0x115)][_0xd2eb56(0x101)](_0x384156(this['dispose$']))['subscribe'](_0x451af7=>{var _0x1042ed=_0xd2eb56;const {eventID:_0x38e161}=_0x451af7;switch(_0x38e161){case _0x242775[_0x1042ed(0xef)]:this['_handleNewHost'](_0x451af7);break;case _0x242775['LIVESHARE_OPERATION']:this['_handleOperation'](_0x451af7);break;case _0x242775['LIVESHARE_TERMINATE']:this[_0x1042ed(0x10d)]();break;case _0x242775[_0x1042ed(0x179)]:this[_0x1042ed(0x180)](_0x451af7);break;}}));}[_0x87e7bd(0xfa)](){var _0x1d064d=_0x87e7bd;this[_0x1d064d(0x147)][_0x1d064d(0x171)]({'eventID':_0x242775[_0x1d064d(0x11f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1d064d(0x13e)]()}},this[_0x1d064d(0x15f)]);}[_0x87e7bd(0x165)](){var _0x1a5131=_0x87e7bd;this[_0x1a5131(0x17c)]===_0x1a5131(0x17d)&&(this[_0x1a5131(0xf9)][_0x1a5131(0x164)](_0x1a5131(0x110)),this[_0x1a5131(0x147)][_0x1a5131(0x171)]({'eventID':_0x242775['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1a5131(0x15f)]}},this[_0x1a5131(0x15f)]));}['startFollowing'](){var _0xf7bc80=_0x87e7bd;this[_0xf7bc80(0x17c)]==='not-following'&&(this['_status$']['next'](_0xf7bc80(0x144)),this[_0xf7bc80(0x14c)]());}[_0x87e7bd(0x15c)](){var _0x24ba1d=_0x87e7bd;this[_0x24ba1d(0x17c)]===_0x24ba1d(0x144)&&this[_0x24ba1d(0x17a)]();}[_0x87e7bd(0x14a)](_0x4cb73e){var _0x425e85=_0x87e7bd;const {presenter:_0x5f77e}=_0x4cb73e['data'],_0x152a48=this[_0x425e85(0x147)][_0x425e85(0x13e)]();this[_0x425e85(0x127)]=_0x5f77e,_0x5f77e===_0x152a48?(this[_0x425e85(0x17a)](),this[_0x425e85(0x10c)]()):this[_0x425e85(0x17c)]!==_0x425e85(0x17f)&&(this['_stopPresenting'](),this[_0x425e85(0x14c)]());}[_0x87e7bd(0x169)](){var _0x75a545=_0x87e7bd;const _0x8e5a6c={'eventID':_0x242775['LIVESHARE_FETCH_OPERATIONS']};this[_0x75a545(0x147)]['send'](_0x8e5a6c,this[_0x75a545(0x15f)]);}['_handleTerminate'](){var _0x395830=_0x87e7bd;this[_0x395830(0x127)]=null,this[_0x395830(0x17c)]!==_0x395830(0x17d)&&this[_0x395830(0x121)]();}[_0x87e7bd(0x180)](_0xe69c86){var _0x107d41=_0x87e7bd;if(this[_0x107d41(0x17c)]==='following'&&this['_presenter']===_0xe69c86[_0x107d41(0x114)][_0x107d41(0x130)]){const _0x4e8f84=_0x5eafd3(_0xe69c86[_0x107d41(0x114)])[_0x107d41(0x104)][_0x107d41(0xe2)]()['find'](_0x7f011=>_0x7f011['id']===_0x3ee211['id']);if(_0x4e8f84){const _0x11f8bb=_0x4e8f84[_0x107d41(0xe5)][_0x107d41(0x133)],_0x4f6f3e=_0x4e8f84[_0x107d41(0xe5)][_0x107d41(0x150)]['id'];setTimeout(()=>{var _0xd59301=_0x107d41;this[_0xd59301(0x146)][_0xd59301(0x14d)](_0xc428b2['id'],{'unitId':_0x11f8bb,'subUnitId':_0x4f6f3e},{'fromCollab':!0x0});});}}}[_0x87e7bd(0x10c)](){var _0x327107=_0x87e7bd;this['_status$'][_0x327107(0x164)](_0x327107(0x17d));const _0x12b8fb=new Map(),_0x349860=this[_0x327107(0x141)]=new _0x36d5d8();_0x349860['add'](_0x81af47(()=>{var _0xfcdd50=_0x327107;_0x12b8fb[_0xfcdd50(0x12e)](_0x173472=>_0x173472['complete']()),_0x12b8fb[_0xfcdd50(0x187)]();})),_0x349860[_0x327107(0x140)](this[_0x327107(0x146)][_0x327107(0x149)](_0x4b79d4=>{var _0xca97ae=_0x327107,_0x54194c;if(_0x4b79d4[_0xca97ae(0x120)]!==_0x4d09fc[_0xca97ae(0x15b)]||!this['_liveShareService'][_0xca97ae(0xf4)](_0x4b79d4['id']))return;const {id:_0x505f80}=_0x4b79d4;let _0x2cf956;_0x12b8fb[_0xca97ae(0xe7)](_0x505f80)?_0x2cf956=_0x12b8fb[_0xca97ae(0xea)](_0x505f80):(_0x2cf956=new _0x43807e(),_0x12b8fb[_0xca97ae(0x191)](_0x505f80,_0x2cf956),_0x2cf956['pipe'](_0x431766((_0x54194c=this[_0xca97ae(0x193)][_0xca97ae(0x186)](xe))!=null?_0x54194c:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xca97ae(0x15e)](_0x3cdee1=>{var _0x494e54=_0xca97ae;this[_0x494e54(0x147)][_0x494e54(0x171)]({'eventID':_0x242775[_0x494e54(0x12d)],'data':{'unitID':this[_0x494e54(0x15f)],'operations':{[_0x3cdee1['id']]:{'id':_0x3cdee1['id'],'params':JSON['stringify'](_0x3cdee1[_0x494e54(0xe5)])}}}},this[_0x494e54(0x15f)]);})),_0x2cf956['next'](_0x4b79d4);})),this['_liveShareService'][_0x327107(0x159)](this['_unitID'])['forEach'](_0x4978bf=>this[_0x327107(0x147)]['send']({'eventID':_0x242775[_0x327107(0x12d)],'data':{'unitID':this[_0x327107(0x15f)],'operations':{[_0x4978bf['id']]:{'id':_0x4978bf['id'],'params':JSON['stringify'](_0x4978bf[_0x327107(0xe5)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x370202=_0x87e7bd,_0x1ce392;this['_status$'][_0x370202(0x164)]('idle'),(_0x1ce392=this['_commandDisposable'])==null||_0x1ce392['dispose'](),this[_0x370202(0x141)]=null;}[_0x87e7bd(0x14c)](){var _0x5eea5c=_0x87e7bd,_0x136a1c;(_0x136a1c=this['_commandDisposable'])==null||_0x136a1c[_0x5eea5c(0x11b)](),this['_status$']['next'](_0x5eea5c(0x144));}[_0x87e7bd(0x121)](){var _0x13b903=_0x87e7bd,_0x2905ba;this[_0x13b903(0xf9)][_0x13b903(0x164)](_0x13b903(0x110)),(_0x2905ba=this[_0x13b903(0x141)])==null||_0x2905ba[_0x13b903(0x11b)](),this[_0x13b903(0x141)]=null;}[_0x87e7bd(0x17a)](){var _0x48121d=_0x87e7bd,_0x2646e9;this[_0x48121d(0xf9)]['next'](_0x48121d(0x17f)),(_0x2646e9=this[_0x48121d(0x141)])==null||_0x2646e9['dispose']();}[_0x87e7bd(0x11a)](_0x213a22){var _0x324958=_0x87e7bd;if([_0x324958(0x17d),_0x324958(0x17f),_0x324958(0xe1)]['includes'](this['_status'])||!_0x213a22[_0x324958(0x114)][_0x324958(0xf7)]||_0x213a22[_0x324958(0x114)]['presenter']===this[_0x324958(0x147)][_0x324958(0x13e)]())return;this[_0x324958(0x17c)]===_0x324958(0x110)&&this['_startFollowing']();const _0x20283e=_0x213a22[_0x324958(0x114)]['operations'];Object[_0x324958(0xe4)](_0x20283e)[_0x324958(0x12e)](_0x1f4267=>{var _0x2daa9b=_0x324958;this[_0x2daa9b(0x146)][_0x2daa9b(0x14d)](_0x1f4267['id'],_0x1f4267[_0x2daa9b(0xe5)]?JSON[_0x2daa9b(0x128)](_0x1f4267[_0x2daa9b(0xe5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x54c021=_0x87e7bd,_0x742009;this['_status$'][_0x54c021(0x164)]('offline'),(_0x742009=this[_0x54c021(0x141)])==null||_0x742009[_0x54c021(0x11b)]();}[_0x87e7bd(0x112)](){var _0x1c9be2=_0x87e7bd;this[_0x1c9be2(0xf9)]['next'](_0x1c9be2(0x110)),this['_fetchOperations']();}};C=Z([f(0x2,_0x29a479),f(0x3,_0x45d391(L)),f(0x4,_0x5c7d54)],C);function ye(){var _0x4b3703=_0x87e7bd;const _0x33be24=_0xed083e(m),_0x582070=_0xed083e(_0x5d694e),_0x5e7467=_0x4b2582(()=>_0x582070[_0x4b3703(0x11d)](_0x5e035c[_0x4b3703(0x12c)]),void 0x0,!0x1,[]),[_0x44349a,_0x213177]=_0x50f1f1(null),[_0x59f19f,_0x5944c2]=_0x50f1f1(h['IDLE']),_0x3ed56a=_0x195bcf(null);return _0x38f5f5(()=>(_0x5e7467&&_0x33be24[_0x4b3703(0xfb)](_0x5e7467[_0x4b3703(0xf0)]())[_0x4b3703(0xf3)](_0xefe1af=>{var _0x36b570=_0x4b3703;_0x213177(_0xefe1af),_0x3ed56a[_0x36b570(0x113)]=_0xefe1af['status$'][_0x36b570(0x15e)](_0x29eedd=>{_0x5944c2(_0x29eedd);});}),()=>{var _0x3987ac=_0x4b3703,_0x765528;(_0x765528=_0x3ed56a[_0x3987ac(0x113)])==null||_0x765528[_0x3987ac(0x168)](),_0x3ed56a['current']=null;}),[_0x5e7467,_0x33be24]),_0x44349a?_0x5985f9(_0x5653ff,{'align':_0x4b3703(0x13c),'disabled':_0x59f19f===h['OFFLINE'],'className':_0x4b3703(0x16d),'overlay':_0x5985f9(Re,{'status':_0x59f19f,'coordinator':_0x44349a}),'children':_0x5985f9(_0x4b3703(0x175),{'className':_0x4a2c58(_0x4b3703(0x106),{'univer-cursor-not-allowed':_0x59f19f===h[_0x4b3703(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59f19f!==h[_0x4b3703(0x174)]}),'type':'button','children':_0x5985f9(B,{'className':_0x4b3703(0x123)})})}):null;}function Re(_0x53f697){var _0x1defa0=_0x87e7bd;const {status:_0x97595b,coordinator:_0x447169}=_0x53f697;switch(_0x97595b){case h[_0x1defa0(0x119)]:return _0x5985f9(Pe,{'coordinator':_0x447169});case h[_0x1defa0(0x185)]:return _0x5985f9(Ae,{'coordinator':_0x447169});case h[_0x1defa0(0x190)]:return _0x5985f9(Te,{'coordinator':_0x447169});case h['OFFLINE']:return _0x5985f9(Fe,{});case h[_0x1defa0(0x158)]:return _0x5985f9($e,{'coordinator':_0x447169});default:return null;}}function Pe(_0x11ea70){var _0xfcf126=_0x87e7bd;const {coordinator:_0x17cd47}=_0x11ea70;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xfcf126(0x15a)}),_0x5985f9(_0x279d25,{'onClick':()=>_0x17cd47[_0xfcf126(0xfa)](),'children':_0xfcf126(0x166)})]});}function Ae(_0xd8fe19){var _0x48d6bf=_0x87e7bd;const {coordinator:_0x2d99f8}=_0xd8fe19;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9('div',{'className':_0x48d6bf(0x100),'children':_0x48d6bf(0x129)}),_0x5985f9(_0x279d25,{'onClick':()=>_0x2d99f8[_0x48d6bf(0x15c)](),'children':_0x48d6bf(0x178)})]});}function Te(_0x30d9b5){var _0x1af825=_0x87e7bd;const {coordinator:_0x3efe60}=_0x30d9b5;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9(_0x1af825(0x17b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5985f9(_0x279d25,{'variant':_0x1af825(0x18d),'onClick':()=>_0x3efe60[_0x1af825(0x139)](),'children':_0x1af825(0x138)})]});}function $e(_0x5574aa){var _0x2f01ea=_0x87e7bd;const {coordinator:_0x94562e}=_0x5574aa;return _0x516a75(_0x4e17f3,{'children':[_0x5985f9(_0x2f01ea(0x17b),{'className':_0x2f01ea(0x100),'children':_0x2f01ea(0x156)}),_0x5985f9(_0x279d25,{'variant':'default','onClick':()=>_0x94562e[_0x2f01ea(0x165)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x30c058=_0x87e7bd;return _0x5985f9(_0x4e17f3,{'children':_0x30c058(0xeb)});}var He=Object[_0x87e7bd(0x137)],je=(_0x219721,_0x261360,_0x116076,_0x3925e7)=>{var _0x458433=_0x87e7bd;for(var _0x2616eb=_0x3925e7>0x1?void 0x0:_0x3925e7?He(_0x261360,_0x116076):_0x261360,_0x58bec2=_0x219721[_0x458433(0xf6)]-0x1,_0x2b6468;_0x58bec2>=0x0;_0x58bec2--)(_0x2b6468=_0x219721[_0x58bec2])&&(_0x2616eb=_0x2b6468(_0x2616eb)||_0x2616eb);return _0x2616eb;},T=(_0x257753,_0x1d98fb)=>(_0x4b23fd,_0x21019c)=>_0x1d98fb(_0x4b23fd,_0x21019c,_0x257753);let I=class extends _0x19c8be{constructor(_0x1d23a4,_0x407529){var _0x51a7d7=_0x87e7bd;super(),this[_0x51a7d7(0x183)]=_0x1d23a4,this[_0x51a7d7(0xec)]=_0x407529,this[_0x51a7d7(0xe0)]();}['_mountLiveShare'](){var _0x43a856=_0x87e7bd;this[_0x43a856(0x148)](this['_uiPartsService'][_0x43a856(0x116)](_0x5a42fd['HEADER_MENU'],()=>_0x29c103(ye,this['_injector'])));}};I=je([T(0x0,_0x45d391(_0x39e533)),T(0x1,_0x5a0914)],I);const Ue='live-share.config',$={};var Ve=Object[_0x87e7bd(0x137)],Me=(_0x256942,_0x410cdc,_0x8240c8,_0x224840)=>{for(var _0x52d8d8=_0x224840>0x1?void 0x0:_0x224840?Ve(_0x410cdc,_0x8240c8):_0x410cdc,_0x55a9e6=_0x256942['length']-0x1,_0x2a75fa;_0x55a9e6>=0x0;_0x55a9e6--)(_0x2a75fa=_0x256942[_0x55a9e6])&&(_0x52d8d8=_0x2a75fa(_0x52d8d8)||_0x52d8d8);return _0x52d8d8;},ke=(_0x170db5,_0x29f7e6)=>(_0x2308f1,_0x5eb4d5)=>_0x29f7e6(_0x2308f1,_0x5eb4d5,_0x170db5);let b=class extends _0x19c8be{constructor(_0x5e018d){var _0x4e45c1=_0x87e7bd;super(),this['_liveShareService']=_0x5e018d,this[_0x4e45c1(0x10b)]();}[_0x87e7bd(0x10b)](){var _0x56c231=_0x87e7bd;[_0x2ccbe4['id'],_0x42b170['id'],_0xc428b2['id']][_0x56c231(0x12e)](_0x2c7cda=>{var _0x44afcd=_0x56c231;this[_0x44afcd(0x148)](this['_liveShareService'][_0x44afcd(0xdf)](_0x2c7cda));});}};b=Me([ke(0x0,_0x45d391(L))],b);var Ge=Object[_0x87e7bd(0xfe)],We=Object[_0x87e7bd(0x137)],Ye=(_0x53016e,_0x5042a2,_0x67eacb)=>_0x5042a2 in _0x53016e?Ge(_0x53016e,_0x5042a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x67eacb}):_0x53016e[_0x5042a2]=_0x67eacb,Be=(_0x47de0f,_0x4d9908,_0x309cf4,_0x38a0a1)=>{var _0x463bcd=_0x87e7bd;for(var _0xa75960=_0x38a0a1>0x1?void 0x0:_0x38a0a1?We(_0x4d9908,_0x309cf4):_0x4d9908,_0x1083c1=_0x47de0f[_0x463bcd(0xf6)]-0x1,_0x3888b2;_0x1083c1>=0x0;_0x1083c1--)(_0x3888b2=_0x47de0f[_0x1083c1])&&(_0xa75960=_0x3888b2(_0xa75960)||_0xa75960);return _0xa75960;},F=(_0x38c8f9,_0x1631a0)=>(_0x347f8a,_0x55ab5b)=>_0x1631a0(_0x347f8a,_0x55ab5b,_0x38c8f9),J=(_0x2a00f2,_0x21d823,_0x32bfd7)=>Ye(_0x2a00f2,typeof _0x21d823!='symbol'?_0x21d823+'':_0x21d823,_0x32bfd7);const Ze=_0x87e7bd(0x122);let O=class extends _0x220379{constructor(_0x5200f7=$,_0xb30d5c,_0x8bbc30){var _0x69269=_0x87e7bd;super(),this[_0x69269(0x135)]=_0x5200f7,this[_0x69269(0x183)]=_0xb30d5c,this[_0x69269(0x193)]=_0x8bbc30;const {..._0x4981ab}=_0x5e860a({},$,this[_0x69269(0x135)]);this[_0x69269(0x193)]['setConfig'](Ue,_0x4981ab);}[_0x87e7bd(0xff)](){var _0x5249f5=_0x87e7bd;_0x38944b(this['_injector'],_0x3197e4([[L],[m],[b],[I]],this[_0x5249f5(0x135)][_0x5249f5(0x16c)])),_0x6f9452(this[_0x5249f5(0x183)],[[b]]);}[_0x87e7bd(0xfd)](){_0x6f9452(this['_injector'],[[I]]);}};J(O,_0x87e7bd(0x120),_0x5e035c[_0x87e7bd(0x170)]),J(O,'pluginName',Ze),O=Be([_0x269804(_0x2acd5c),F(0x1,_0x45d391(_0x39e533)),F(0x2,_0x29a479)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x36f017=_0xde17;(function(_0xcac48b,_0x172d45){var _0x289873=_0xde17,_0x41bf4f=_0xcac48b();while(!![]){try{var _0x338b47=parseInt(_0x289873(0x22e))/0x1+parseInt(_0x289873(0x26b))/0x2*(-parseInt(_0x289873(0x1df))/0x3)+parseInt(_0x289873(0x1da))/0x4+-parseInt(_0x289873(0x1bd))/0x5+parseInt(_0x289873(0x1d0))/0x6*(-parseInt(_0x289873(0x245))/0x7)+parseInt(_0x289873(0x240))/0x8*(parseInt(_0x289873(0x1c7))/0x9)+-parseInt(_0x289873(0x1dc))/0xa;if(_0x338b47===_0x172d45)break;else _0x41bf4f['push'](_0x41bf4f['shift']());}catch(_0x1d81f4){_0x41bf4f['push'](_0x41bf4f['shift']());}}}(_0x237f,0xac0db));var q=Object[_0x36f017(0x1d5)],z=(_0x4bf46c,_0xb1213e,_0x2aff38)=>_0xb1213e in _0x4bf46c?q(_0x4bf46c,_0xb1213e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aff38}):_0x4bf46c[_0xb1213e]=_0x2aff38,d=(_0x38a0e8,_0x299499,_0x9e8ed5)=>z(_0x38a0e8,typeof _0x299499!=_0x36f017(0x1f6)?_0x299499+'':_0x299499,_0x9e8ed5);import{Disposable as _0x1921d4,toDisposable as _0x363c38,IUniverInstanceService as _0x3f3fb4,Inject as _0x3b82a6,Injector as _0x11e997,IConfigService as _0x2ade0c,ICommandService as _0x5b1a08,RxDisposable as _0xdfd2c9,UniverInstanceType as _0x3488c4,DisposableCollection as _0x432129,CommandType as _0x55283a,DependentOn as _0x3c9495,Plugin as _0x1c42d2,merge as _0x3fdcd0,registerDependencies as _0x29e73f,mergeOverrideWithDependencies as _0x5e60eb,touchDependencies as _0x184d91}from'@univerjs/core';import{useDependency as _0x57a76c,useObservable as _0x28c88f,IUIPartsService as _0x3c6a2e,BuiltInUIPart as _0x4db87a,connectInjector as _0x518bf9}from'@univerjs/ui';import{jsx as _0x36e838,jsxs as _0x5ddc08,Fragment as _0x10e248}from'react/jsx-runtime';import{Dropdown as _0x1eee21,clsx as _0x28accc,Button as _0x564e8c}from'@univerjs/design';import{forwardRef as _0x49863e,useRef as _0xeec105,createElement as _0xb83fdd,useState as _0x49d219,useEffect as _0x2e558b}from'react';import{CollaborationEvent as _0x33da1b,parseProtocolChangeset as _0x35401c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x28485c,SessionStatus as _0x593165,UniverCollaborationClientPlugin as _0x2e766a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xdd3b8d,SetWorksheetActiveOperation as _0x541ec2}from'@univerjs/sheets';import{BehaviorSubject as _0x34eac5,Subject as _0x9375f3}from'rxjs';import{takeUntil as _0xc1bed8,throttleTime as _0x4b7434}from'rxjs/operators';import{SetZoomRatioOperation as _0x17d0cb,SetScrollOperation as _0x43d03b}from'@univerjs/sheets-ui';var c=function(){var _0x1adb03=_0x36f017;return c=Object[_0x1adb03(0x1d2)]||function(_0x2e490c){var _0xb6bce9=_0x1adb03;for(var _0x5ed74c,_0x545095=0x1,_0x2cdad7=arguments['length'];_0x545095<_0x2cdad7;_0x545095++){_0x5ed74c=arguments[_0x545095];for(var _0x227c8f in _0x5ed74c)Object[_0xb6bce9(0x20b)]['hasOwnProperty'][_0xb6bce9(0x232)](_0x5ed74c,_0x227c8f)&&(_0x2e490c[_0x227c8f]=_0x5ed74c[_0x227c8f]);}return _0x2e490c;},c['apply'](this,arguments);},Oe=function(_0x285852,_0x4be77d){var _0x43b9d7=_0x36f017,_0x4cf2a8={};for(var _0x5d3a62 in _0x285852)Object[_0x43b9d7(0x20b)][_0x43b9d7(0x1fb)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62)&&_0x4be77d['indexOf'](_0x5d3a62)<0x0&&(_0x4cf2a8[_0x5d3a62]=_0x285852[_0x5d3a62]);if(_0x285852!=null&&typeof Object[_0x43b9d7(0x210)]==_0x43b9d7(0x1cf)){for(var _0x58bcf8=0x0,_0x5d3a62=Object[_0x43b9d7(0x210)](_0x285852);_0x58bcf8<_0x5d3a62[_0x43b9d7(0x211)];_0x58bcf8++)_0x4be77d[_0x43b9d7(0x200)](_0x5d3a62[_0x58bcf8])<0x0&&Object[_0x43b9d7(0x20b)][_0x43b9d7(0x258)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62[_0x58bcf8])&&(_0x4cf2a8[_0x5d3a62[_0x58bcf8]]=_0x285852[_0x5d3a62[_0x58bcf8]]);}return _0x4cf2a8;},W=_0x49863e(function(_0x140002,_0x29b62c){var _0x1f316a=_0x36f017,_0x3f0948=_0x140002['icon'],_0x16ffee=_0x140002['id'],_0x3be45d=_0x140002[_0x1f316a(0x231)],_0x4ce05d=_0x140002[_0x1f316a(0x1eb)],_0x19e407=Oe(_0x140002,[_0x1f316a(0x1e4),'id',_0x1f316a(0x231),_0x1f316a(0x1eb)]),_0x5d6c39=_0x1f316a(0x25c)[_0x1f316a(0x1b9)](_0x16ffee,'\x20')[_0x1f316a(0x1b9)](_0x3be45d||'')[_0x1f316a(0x25f)](),_0x6daf92=_0xeec105('_'['concat'](Ne()));return Y(_0x3f0948,''['concat'](_0x16ffee),{'defIds':_0x3f0948['defIds'],'idSuffix':_0x6daf92['current']},c({'ref':_0x29b62c,'className':_0x5d6c39},_0x19e407),_0x4ce05d);});function Y(_0x3b16cf,_0x1bbdb3,_0x5844dd,_0x476478,_0x4c9543){var _0x250ff0=_0x36f017;return _0xb83fdd(_0x3b16cf['tag'],c(c({'key':_0x1bbdb3},Ee(_0x3b16cf,_0x5844dd,_0x4c9543)),_0x476478),(we(_0x3b16cf,_0x5844dd)[_0x250ff0(0x264)]||[])['map'](function(_0x128f71,_0x5a417d){var _0x345d98=_0x250ff0;return Y(_0x128f71,''[_0x345d98(0x1b9)](_0x1bbdb3,'-')[_0x345d98(0x1b9)](_0x3b16cf['tag'],'-')['concat'](_0x5a417d),_0x5844dd,void 0x0,_0x4c9543);}));}function Ee(_0x3aa95f,_0x56f229,_0x48e478){var _0x3484e3=_0x36f017,_0x16e0d6=c({},_0x3aa95f[_0x3484e3(0x218)]);_0x48e478!=null&&_0x48e478[_0x3484e3(0x23c)]&&_0x16e0d6['fill']===_0x3484e3(0x23c)&&(_0x16e0d6[_0x3484e3(0x255)]=_0x48e478['colorChannel1']),_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x252)&&_0x16e0d6['id']&&(_0x16e0d6['id']=_0x16e0d6['id']+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f28e3){var _0x38e353=_0x3484e3,_0x3ccf23=_0x3f28e3[0x0],_0x15e967=_0x3f28e3[0x1];_0x3ccf23===_0x38e353(0x252)&&typeof _0x15e967==_0x38e353(0x241)&&(_0x16e0d6[_0x3ccf23]=_0x15e967[_0x38e353(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x38e353(0x1b9)](_0x56f229[_0x38e353(0x249)],')')));});var _0x1e2cf7=_0x56f229[_0x3484e3(0x1c5)];return!_0x1e2cf7||_0x1e2cf7['length']===0x0||(_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x259)&&_0x16e0d6[_0x3484e3(0x205)]&&(_0x16e0d6[_0x3484e3(0x205)]=_0x16e0d6[_0x3484e3(0x205)]+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f7d54){var _0x1686a0=_0x3484e3,_0x5a02e4=_0x3f7d54[0x0],_0x4c247b=_0x3f7d54[0x1];typeof _0x4c247b==_0x1686a0(0x241)&&(_0x16e0d6[_0x5a02e4]=_0x4c247b['replace'](/url\(#(.*)\)/,_0x1686a0(0x1c3)['concat'](_0x56f229['idSuffix'],')')));})),_0x16e0d6;}function we(_0x16b127,_0x1522ad){var _0x252079=_0x36f017,_0x4d6756,_0x6111ef=_0x1522ad['defIds'];return!_0x6111ef||_0x6111ef[_0x252079(0x211)]===0x0?_0x16b127:_0x16b127[_0x252079(0x1cb)]===_0x252079(0x221)&&(!((_0x4d6756=_0x16b127['children'])===null||_0x4d6756===void 0x0)&&_0x4d6756['length'])?c(c({},_0x16b127),{'children':_0x16b127[_0x252079(0x264)][_0x252079(0x1d9)](function(_0x52287a){var _0x2b7973=_0x252079;return typeof _0x52287a[_0x2b7973(0x218)]['id']=='string'&&_0x6111ef&&_0x6111ef[_0x2b7973(0x21e)](_0x52287a[_0x2b7973(0x218)]['id'])?c(c({},_0x52287a),{'attrs':c(c({},_0x52287a[_0x2b7973(0x218)]),{'id':_0x52287a[_0x2b7973(0x218)]['id']+_0x1522ad[_0x2b7973(0x249)]})}):_0x52287a;})}):_0x16b127;}function Ne(){var _0x5e6acc=_0x36f017;return Math['random']()[_0x5e6acc(0x247)](0x24)[_0x5e6acc(0x1c1)](0x2,0x8);}W[_0x36f017(0x1d1)]='UniverIcon';var Ce={'tag':_0x36f017(0x254),'attrs':{'xmlns':_0x36f017(0x1bf),'fill':_0x36f017(0x1cc),'viewBox':_0x36f017(0x1f5),'width':_0x36f017(0x1b7),'height':_0x36f017(0x1b7)},'children':[{'tag':_0x36f017(0x251),'attrs':{'fill':_0x36f017(0x1d3),'d':_0x36f017(0x203)}},{'tag':'path','attrs':{'fill':_0x36f017(0x1d3),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x36f017(0x268),'clipRule':'evenodd'}}]},B=_0x49863e(function(_0xd3acb0,_0x3c2a13){var _0x12eb01=_0x36f017;return _0xb83fdd(W,Object[_0x12eb01(0x1d2)]({},_0xd3acb0,{'id':'live-share-icon','ref':_0x3c2a13,'icon':Ce}));});B['displayName']=_0x36f017(0x213);class L extends _0x1921d4{constructor(){var _0x472517=_0x36f017;super(...arguments),d(this,_0x472517(0x25a),new Set()),d(this,_0x472517(0x269),new Set());}[_0x36f017(0x1ba)](_0x2df393){var _0x2f8243=_0x36f017;return this[_0x2f8243(0x25a)][_0x2f8243(0x23d)](_0x2df393),_0x363c38(()=>this[_0x2f8243(0x25a)][_0x2f8243(0x1bb)](_0x2df393));}[_0x36f017(0x23f)](_0x195f86){var _0x2420a9=_0x36f017;return this['_reporters'][_0x2420a9(0x23d)](_0x195f86),_0x363c38(()=>this[_0x2420a9(0x269)][_0x2420a9(0x1bb)](_0x195f86));}[_0x36f017(0x23b)](_0x51df3a){var _0x3e410b=_0x36f017;return this[_0x3e410b(0x25a)]['has'](_0x51df3a);}[_0x36f017(0x1cd)](_0xf827d9){var _0x16202c=_0x36f017;return Array[_0x16202c(0x21f)](this[_0x16202c(0x269)])[_0x16202c(0x1d9)](_0x444bb9=>_0x444bb9(_0xf827d9));}}var De=Object[_0x36f017(0x20c)],Z=(_0xa9bc40,_0x298351,_0x249e54,_0x26d69e)=>{var _0x538142=_0x36f017;for(var _0x4af965=_0x26d69e>0x1?void 0x0:_0x26d69e?De(_0x298351,_0x249e54):_0x298351,_0x3adbe4=_0xa9bc40[_0x538142(0x211)]-0x1,_0x55b2c9;_0x3adbe4>=0x0;_0x3adbe4--)(_0x55b2c9=_0xa9bc40[_0x3adbe4])&&(_0x4af965=_0x55b2c9(_0x4af965)||_0x4af965);return _0x4af965;},f=(_0x316b48,_0x16d6cd)=>(_0x165a57,_0x6e667d)=>_0x16d6cd(_0x165a57,_0x6e667d,_0x316b48);function _0x237f(){var _0x52d027=['presenter','xlink:href','ONLINE','type','PRESENTING','IDLE','button','prototype','getOwnPropertyDescriptor','Stop\x20following','_handleNewChangeSets','init','getOwnPropertySymbols','length','_beIdle','LiveShareIcon','onCommandExecuted','live-share.config','_unitID','replace','attrs','default','_presenter','OPERATION','_liveShareService','unitId','includes','from','setConfig','defs','end','has','executeCommand','stringify','parse','_univerInstanceService','dispose','onRendered','forEach','params','override','You\x27are\x20offline.','590919cKpoQM','send','_commandService','className','call','_fetchOperations','asObservable','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','_commandDisposable','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','div','shouldShareOperation','colorChannel1','add','idle','registerInitialStateReporter','4400ByQvPR','string','NEW_CHANGESETS','_handleTerminate','get','177457OwesLY','_status','toString','pluginName','idSuffix','following','complete','offline','stopPresenting','dispose$','_stopFollowing','LIVESHARE_TERMINATE','path','mask','status$','svg','fill','You\x27re\x20presenting\x20the\x20document','_stopPresenting','propertyIsEnumerable','use','_sharedOperations','_collabSession','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','trim','subscribe','next','OFFLINE','mutations','children','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','values','evenodd','_reporters','disposeWithMe','134pknacZ','1em','event$','concat','registerSharedOperation','delete','not-following','684730RbGSvS','text','http://www.w3.org/2000/svg','current','substring','clear','url(#$1','getTypeOfUnitAdded$','defIds','_uiPartsService','20250hKPpCu','entries','_status$','registerComponent','tag','none','getInitialStates','then','function','114LfraSY','displayName','assign','currentColor','getTypeOfUnitDisposed$','defineProperty','_injector','_configService','LIVESHARE_FETCH_OPERATIONS','map','3522632lkOwvs','Start','6600540VmDRYr','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','set','32493wDhdvG','getUnitId','UNIVER_SHEET','pipe','onStarting','icon','Present\x20this\x20document','tryStartPresenting','sheet','data','_startFollowing','getMemberID','extend','_handleNewHost','getLiveShareCoordinator','_handleOnline','LIVESHARE_NEW_HOST','_mountLiveShare','_entities','memberID','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','symbol','univer-size-4','_startLiveShareCoordinator','_config','startFollowing','hasOwnProperty','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_init','FOLLOWING','indexOf','HEADER_MENU','getCurrentTypeOfUnit$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'];_0x237f=function(){return _0x52d027;};return _0x237f();}let m=class extends _0xdfd2c9{constructor(_0x54836d,_0x56e546,_0x306dbe){var _0x14ed57=_0x36f017;super(),d(this,_0x14ed57(0x1f1),new Map()),(this[_0x14ed57(0x227)]=_0x54836d,this['_injector']=_0x56e546,this['_collabSessionService']=_0x306dbe,this[_0x14ed57(0x1fe)]());}async[_0x36f017(0x1ed)](_0x4c8b1a){var _0x2b5ff3=_0x36f017;return this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x223)](_0x4c8b1a)||await this[_0x2b5ff3(0x1f8)](_0x4c8b1a),this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x244)](_0x4c8b1a);}[_0x36f017(0x1fe)](){var _0x4d075c=_0x36f017;this[_0x4d075c(0x227)][_0x4d075c(0x1c4)](_0x3488c4['UNIVER_SHEET'])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](async _0x19b151=>{var _0x4ecd04=_0x4d075c;const _0x5b2b43=_0x19b151[_0x4ecd04(0x1e0)]();this[_0x4ecd04(0x1f1)][_0x4ecd04(0x223)](_0x5b2b43)||this[_0x4ecd04(0x1f8)](_0x5b2b43);}),this['_univerInstanceService'][_0x4d075c(0x1d4)](_0x3488c4[_0x4d075c(0x1e1)])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](_0x22d5f7=>{var _0x58a968=_0x4d075c;const _0x169255=_0x22d5f7[_0x58a968(0x1e0)](),_0x3fe5bd=this[_0x58a968(0x1f1)][_0x58a968(0x244)](_0x169255);_0x3fe5bd==null||_0x3fe5bd[_0x58a968(0x228)]();});}async[_0x36f017(0x1f8)](_0xdb4d1b){var _0x1d039c=_0x36f017;const _0x17fcda=await this['_collabSessionService']['requireSession'](_0xdb4d1b),_0x11cf26=this[_0x1d039c(0x1d6)]['createInstance'](C,_0xdb4d1b,_0x17fcda);return _0x11cf26[_0x1d039c(0x20f)](),this[_0x1d039c(0x1f1)][_0x1d039c(0x1de)](_0xdb4d1b,_0x11cf26),_0x11cf26;}};m=Z([f(0x0,_0x3f3fb4),f(0x1,_0x3b82a6(_0x11e997)),f(0x2,_0x3b82a6(_0x28485c))],m);var h=(_0x26ccc0=>(_0x26ccc0[_0x36f017(0x262)]='offline',_0x26ccc0[_0x36f017(0x209)]=_0x36f017(0x23e),_0x26ccc0[_0x36f017(0x1ff)]=_0x36f017(0x24a),_0x26ccc0[_0x36f017(0x236)]=_0x36f017(0x1bc),_0x26ccc0['PRESENTING']=_0x36f017(0x25e),_0x26ccc0))(h||{});const xe=_0x36f017(0x1fc),Le=0xc8;let C=class extends _0xdfd2c9{constructor(_0x4a4d2e,_0x2c1aa0,_0x1dfa73,_0x325da8,_0x14c4f4){var _0x1e1eb5=_0x36f017;super(),d(this,_0x1e1eb5(0x1c9),new _0x34eac5(_0x1e1eb5(0x23e))),d(this,_0x1e1eb5(0x253),this[_0x1e1eb5(0x1c9)][_0x1e1eb5(0x234)]()),d(this,'_init',!0x1),d(this,_0x1e1eb5(0x237),null),d(this,_0x1e1eb5(0x21a),null),(this['_unitID']=_0x4a4d2e,this[_0x1e1eb5(0x25b)]=_0x2c1aa0,this[_0x1e1eb5(0x1d7)]=_0x1dfa73,this[_0x1e1eb5(0x21c)]=_0x325da8,this[_0x1e1eb5(0x230)]=_0x14c4f4);}get[_0x36f017(0x246)](){return this['_status$']['getValue']();}['dispose'](){var _0x27192a=_0x36f017,_0x4c5a36;(_0x4c5a36=this[_0x27192a(0x237)])==null||_0x4c5a36[_0x27192a(0x228)](),this[_0x27192a(0x1c9)][_0x27192a(0x261)](_0x27192a(0x23e)),this[_0x27192a(0x1c9)][_0x27192a(0x24b)]();}[_0x36f017(0x20f)](){var _0x1e040b=_0x36f017;this[_0x1e040b(0x1fe)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0xc1bed8(this[_0x1e040b(0x24e)]))[_0x1e040b(0x260)](_0x4f4e4c=>{var _0x443822=_0x1e040b;switch(_0x4f4e4c){case _0x593165[_0x443822(0x262)]:this['_handleOffline']();break;case _0x593165[_0x443822(0x206)]:this[_0x443822(0x1ee)]();break;}}),this['_collabSession'][_0x1e040b(0x1b8)][_0x1e040b(0x1e2)](_0xc1bed8(this[_0x1e040b(0x24e)]))['subscribe'](_0x177773=>{var _0x42f088=_0x1e040b;const {eventID:_0x4323e4}=_0x177773;switch(_0x4323e4){case _0x33da1b[_0x42f088(0x1ef)]:this[_0x42f088(0x1ec)](_0x177773);break;case _0x33da1b[_0x42f088(0x25d)]:this['_handleOperation'](_0x177773);break;case _0x33da1b[_0x42f088(0x250)]:this[_0x42f088(0x243)]();break;case _0x33da1b[_0x42f088(0x242)]:this[_0x42f088(0x20e)](_0x177773);break;}}));}['tryStartPresenting'](){var _0x2471d2=_0x36f017;this[_0x2471d2(0x25b)][_0x2471d2(0x22f)]({'eventID':_0x33da1b[_0x2471d2(0x1f3)],'data':{'unitID':this[_0x2471d2(0x216)],'userID':this[_0x2471d2(0x25b)][_0x2471d2(0x1ea)]()}},this[_0x2471d2(0x216)]);}[_0x36f017(0x24d)](){var _0x1238ee=_0x36f017;this[_0x1238ee(0x246)]===_0x1238ee(0x25e)&&(this['_status$'][_0x1238ee(0x261)](_0x1238ee(0x23e)),this[_0x1238ee(0x25b)][_0x1238ee(0x22f)]({'eventID':_0x33da1b['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1238ee(0x216)]}},this[_0x1238ee(0x216)]));}[_0x36f017(0x1fa)](){var _0x46066f=_0x36f017;this[_0x46066f(0x246)]===_0x46066f(0x1bc)&&(this[_0x46066f(0x1c9)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x493f87=_0x36f017;this[_0x493f87(0x246)]===_0x493f87(0x24a)&&this[_0x493f87(0x24f)]();}['_handleNewHost'](_0x1d1022){var _0x21e974=_0x36f017;const {presenter:_0x588e21}=_0x1d1022[_0x21e974(0x1e8)],_0x3114ad=this[_0x21e974(0x25b)][_0x21e974(0x1ea)]();this[_0x21e974(0x21a)]=_0x588e21,_0x588e21===_0x3114ad?(this[_0x21e974(0x24f)](),this['_startPresenting']()):this[_0x21e974(0x246)]!=='not-following'&&(this[_0x21e974(0x257)](),this['_startFollowing']());}['_fetchOperations'](){var _0xb4962b=_0x36f017;const _0x4eb71a={'eventID':_0x33da1b[_0xb4962b(0x1d8)]};this[_0xb4962b(0x25b)][_0xb4962b(0x22f)](_0x4eb71a,this[_0xb4962b(0x216)]);}[_0x36f017(0x243)](){var _0x1a391e=_0x36f017;this['_presenter']=null,this['_status']!==_0x1a391e(0x25e)&&this[_0x1a391e(0x212)]();}[_0x36f017(0x20e)](_0x33a4c8){var _0x2b0abf=_0x36f017;if(this[_0x2b0abf(0x246)]===_0x2b0abf(0x24a)&&this[_0x2b0abf(0x21a)]===_0x33a4c8['data'][_0x2b0abf(0x1f2)]){const _0x147bd7=_0x35401c(_0x33a4c8[_0x2b0abf(0x1e8)])[_0x2b0abf(0x263)]['reverse']()['find'](_0x4e130c=>_0x4e130c['id']===_0xdd3b8d['id']);if(_0x147bd7){const _0x159c1a=_0x147bd7['params'][_0x2b0abf(0x21d)],_0xd73be7=_0x147bd7[_0x2b0abf(0x22b)][_0x2b0abf(0x1e7)]['id'];setTimeout(()=>{var _0x4abac8=_0x2b0abf;this[_0x4abac8(0x230)][_0x4abac8(0x224)](_0x541ec2['id'],{'unitId':_0x159c1a,'subUnitId':_0xd73be7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5f92b2=_0x36f017;this[_0x5f92b2(0x1c9)]['next'](_0x5f92b2(0x25e));const _0x7c7424=new Map(),_0x587980=this[_0x5f92b2(0x237)]=new _0x432129();_0x587980['add'](_0x363c38(()=>{var _0x9e7eda=_0x5f92b2;_0x7c7424['forEach'](_0x38f085=>_0x38f085[_0x9e7eda(0x24b)]()),_0x7c7424[_0x9e7eda(0x1c2)]();})),_0x587980['add'](this[_0x5f92b2(0x230)][_0x5f92b2(0x214)](_0x273122=>{var _0x421400=_0x5f92b2,_0x1bf6e5;if(_0x273122[_0x421400(0x207)]!==_0x55283a[_0x421400(0x21b)]||!this[_0x421400(0x21c)][_0x421400(0x23b)](_0x273122['id']))return;const {id:_0x1dbf36}=_0x273122;let _0x1867d9;_0x7c7424[_0x421400(0x223)](_0x1dbf36)?_0x1867d9=_0x7c7424[_0x421400(0x244)](_0x1dbf36):(_0x1867d9=new _0x9375f3(),_0x7c7424[_0x421400(0x1de)](_0x1dbf36,_0x1867d9),_0x1867d9['pipe'](_0x4b7434((_0x1bf6e5=this['_configService']['getConfig'](xe))!=null?_0x1bf6e5:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x421400(0x260)](_0x2796c9=>{var _0x2fa187=_0x421400;this[_0x2fa187(0x25b)][_0x2fa187(0x22f)]({'eventID':_0x33da1b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa187(0x216)],'operations':{[_0x2796c9['id']]:{'id':_0x2796c9['id'],'params':JSON[_0x2fa187(0x225)](_0x2796c9['params'])}}}},this[_0x2fa187(0x216)]);})),_0x1867d9[_0x421400(0x261)](_0x273122);})),this['_liveShareService'][_0x5f92b2(0x1cd)](this['_unitID'])[_0x5f92b2(0x22a)](_0x5c3aa3=>this[_0x5f92b2(0x25b)]['send']({'eventID':_0x33da1b[_0x5f92b2(0x25d)],'data':{'unitID':this[_0x5f92b2(0x216)],'operations':{[_0x5c3aa3['id']]:{'id':_0x5c3aa3['id'],'params':JSON[_0x5f92b2(0x225)](_0x5c3aa3[_0x5f92b2(0x22b)])}}}},this[_0x5f92b2(0x216)]));}[_0x36f017(0x257)](){var _0x538659=_0x36f017,_0x338918;this[_0x538659(0x1c9)][_0x538659(0x261)](_0x538659(0x23e)),(_0x338918=this[_0x538659(0x237)])==null||_0x338918[_0x538659(0x228)](),this['_commandDisposable']=null;}[_0x36f017(0x1e9)](){var _0x318f74=_0x36f017,_0x520939;(_0x520939=this['_commandDisposable'])==null||_0x520939[_0x318f74(0x228)](),this[_0x318f74(0x1c9)][_0x318f74(0x261)](_0x318f74(0x24a));}[_0x36f017(0x212)](){var _0x4088bd=_0x36f017,_0x307b78;this[_0x4088bd(0x1c9)][_0x4088bd(0x261)](_0x4088bd(0x23e)),(_0x307b78=this[_0x4088bd(0x237)])==null||_0x307b78[_0x4088bd(0x228)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5dd3ee=_0x36f017,_0x3062cd;this['_status$'][_0x5dd3ee(0x261)]('not-following'),(_0x3062cd=this[_0x5dd3ee(0x237)])==null||_0x3062cd[_0x5dd3ee(0x228)]();}[_0x36f017(0x265)](_0x229996){var _0x8aa3b=_0x36f017;if([_0x8aa3b(0x25e),_0x8aa3b(0x1bc),_0x8aa3b(0x24c)][_0x8aa3b(0x21e)](this[_0x8aa3b(0x246)])||!_0x229996[_0x8aa3b(0x1e8)][_0x8aa3b(0x204)]||_0x229996['data'][_0x8aa3b(0x204)]===this['_collabSession'][_0x8aa3b(0x1ea)]())return;this['_status']===_0x8aa3b(0x23e)&&this[_0x8aa3b(0x1e9)]();const _0x26b22a=_0x229996['data']['operations'];Object[_0x8aa3b(0x267)](_0x26b22a)[_0x8aa3b(0x22a)](_0x41b2e5=>{var _0x58138c=_0x8aa3b;this[_0x58138c(0x230)][_0x58138c(0x224)](_0x41b2e5['id'],_0x41b2e5['params']?JSON[_0x58138c(0x226)](_0x41b2e5[_0x58138c(0x22b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x674581=_0x36f017,_0x1c721b;this[_0x674581(0x1c9)]['next'](_0x674581(0x24c)),(_0x1c721b=this[_0x674581(0x237)])==null||_0x1c721b[_0x674581(0x228)]();}[_0x36f017(0x1ee)](){var _0x2e3b5c=_0x36f017;this[_0x2e3b5c(0x1c9)][_0x2e3b5c(0x261)](_0x2e3b5c(0x23e)),this[_0x2e3b5c(0x233)]();}};function _0xde17(_0x321364,_0x57333e){var _0x237f96=_0x237f();return _0xde17=function(_0xde17d,_0xf28e72){_0xde17d=_0xde17d-0x1b7;var _0x4406a2=_0x237f96[_0xde17d];return _0x4406a2;},_0xde17(_0x321364,_0x57333e);}C=Z([f(0x2,_0x2ade0c),f(0x3,_0x3b82a6(L)),f(0x4,_0x5b1a08)],C);function ye(){var _0x49446f=_0x36f017;const _0x7597a9=_0x57a76c(m),_0x3a5aaf=_0x57a76c(_0x3f3fb4),_0x413b7a=_0x28c88f(()=>_0x3a5aaf[_0x49446f(0x202)](_0x3488c4[_0x49446f(0x1e1)]),void 0x0,!0x1,[]),[_0x47c4c7,_0x1922a1]=_0x49d219(null),[_0x15d68f,_0x1e6260]=_0x49d219(h[_0x49446f(0x209)]),_0x1bf422=_0xeec105(null);return _0x2e558b(()=>(_0x413b7a&&_0x7597a9[_0x49446f(0x1ed)](_0x413b7a['getUnitId']())[_0x49446f(0x1ce)](_0x1e8e88=>{var _0x25ecbf=_0x49446f;_0x1922a1(_0x1e8e88),_0x1bf422[_0x25ecbf(0x1c0)]=_0x1e8e88[_0x25ecbf(0x253)]['subscribe'](_0x24b5e2=>{_0x1e6260(_0x24b5e2);});}),()=>{var _0xebf658=_0x49446f,_0x30f78b;(_0x30f78b=_0x1bf422[_0xebf658(0x1c0)])==null||_0x30f78b['unsubscribe'](),_0x1bf422[_0xebf658(0x1c0)]=null;}),[_0x413b7a,_0x7597a9]),_0x47c4c7?_0x36e838(_0x1eee21,{'align':_0x49446f(0x222),'disabled':_0x15d68f===h[_0x49446f(0x262)],'className':_0x49446f(0x1dd),'overlay':_0x36e838(Re,{'status':_0x15d68f,'coordinator':_0x47c4c7}),'children':_0x36e838(_0x49446f(0x20a),{'className':_0x28accc(_0x49446f(0x1f4),{'univer-cursor-not-allowed':_0x15d68f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15d68f!==h['OFFLINE']}),'type':'button','children':_0x36e838(B,{'className':_0x49446f(0x1f7)})})}):null;}function Re(_0x142e45){var _0x1f880a=_0x36f017;const {status:_0x3626be,coordinator:_0x1fcb92}=_0x142e45;switch(_0x3626be){case h['IDLE']:return _0x36e838(Pe,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x1ff)]:return _0x36e838(Ae,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x236)]:return _0x36e838(Te,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x262)]:return _0x36e838(Fe,{});case h[_0x1f880a(0x208)]:return _0x36e838($e,{'coordinator':_0x1fcb92});default:return null;}}function Pe(_0x4fab17){var _0x49e46f=_0x36f017;const {coordinator:_0x2cdd39}=_0x4fab17;return _0x5ddc08(_0x10e248,{'children':[_0x36e838('div',{'className':_0x49e46f(0x266),'children':_0x49e46f(0x1e5)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x2cdd39[_0x49e46f(0x1e6)](),'children':_0x49e46f(0x1db)})]});}function Ae(_0x89f442){var _0x2170e4=_0x36f017;const {coordinator:_0x48390b}=_0x89f442;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2170e4(0x23a),{'className':_0x2170e4(0x266),'children':_0x2170e4(0x235)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x48390b['stopFollowing'](),'children':_0x2170e4(0x20d)})]});}function Te(_0x29f184){var _0x2d6a4a=_0x36f017;const {coordinator:_0x1b70a0}=_0x29f184;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2d6a4a(0x23a),{'className':_0x2d6a4a(0x266),'children':_0x2d6a4a(0x239)}),_0x36e838(_0x564e8c,{'variant':_0x2d6a4a(0x1be),'onClick':()=>_0x1b70a0[_0x2d6a4a(0x1fa)](),'children':'Start\x20following'})]});}function $e(_0x47991e){var _0x4a4bdb=_0x36f017;const {coordinator:_0x1e5ec1}=_0x47991e;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x4a4bdb(0x23a),{'className':_0x4a4bdb(0x266),'children':_0x4a4bdb(0x256)}),_0x36e838(_0x564e8c,{'variant':_0x4a4bdb(0x219),'onClick':()=>_0x1e5ec1[_0x4a4bdb(0x24d)](),'children':_0x4a4bdb(0x238)})]});}function Fe(){var _0x5685cf=_0x36f017;return _0x36e838(_0x10e248,{'children':_0x5685cf(0x22d)});}var He=Object[_0x36f017(0x20c)],je=(_0x564edb,_0x4c8839,_0x2db3c0,_0x5bff78)=>{for(var _0x4491a2=_0x5bff78>0x1?void 0x0:_0x5bff78?He(_0x4c8839,_0x2db3c0):_0x4c8839,_0x30d74a=_0x564edb['length']-0x1,_0x349018;_0x30d74a>=0x0;_0x30d74a--)(_0x349018=_0x564edb[_0x30d74a])&&(_0x4491a2=_0x349018(_0x4491a2)||_0x4491a2);return _0x4491a2;},T=(_0x4ee606,_0x55ee6c)=>(_0x5f022d,_0x2e0e92)=>_0x55ee6c(_0x5f022d,_0x2e0e92,_0x4ee606);let I=class extends _0x1921d4{constructor(_0x3f9f5f,_0x2c7932){var _0x13c02f=_0x36f017;super(),this[_0x13c02f(0x1d6)]=_0x3f9f5f,this[_0x13c02f(0x1c6)]=_0x2c7932,this[_0x13c02f(0x1f0)]();}[_0x36f017(0x1f0)](){var _0x3f47ee=_0x36f017;this['disposeWithMe'](this[_0x3f47ee(0x1c6)][_0x3f47ee(0x1ca)](_0x4db87a[_0x3f47ee(0x201)],()=>_0x518bf9(ye,this[_0x3f47ee(0x1d6)])));}};I=je([T(0x0,_0x3b82a6(_0x11e997)),T(0x1,_0x3c6a2e)],I);const Ue=_0x36f017(0x215),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x514688,_0x36d2be,_0x4223c8,_0x540ba4)=>{var _0xdb5efb=_0x36f017;for(var _0x4e489a=_0x540ba4>0x1?void 0x0:_0x540ba4?Ve(_0x36d2be,_0x4223c8):_0x36d2be,_0x513e1f=_0x514688[_0xdb5efb(0x211)]-0x1,_0x4ca992;_0x513e1f>=0x0;_0x513e1f--)(_0x4ca992=_0x514688[_0x513e1f])&&(_0x4e489a=_0x4ca992(_0x4e489a)||_0x4e489a);return _0x4e489a;},ke=(_0x40b66d,_0xd0b1b9)=>(_0x4724d7,_0x10ed8d)=>_0xd0b1b9(_0x4724d7,_0x10ed8d,_0x40b66d);let b=class extends _0x1921d4{constructor(_0x25c18f){var _0x18875a=_0x36f017;super(),this[_0x18875a(0x21c)]=_0x25c18f,this['_init']();}['_init'](){[_0x17d0cb['id'],_0x43d03b['id'],_0x541ec2['id']]['forEach'](_0x9f46d7=>{var _0x21b0fa=_0xde17;this[_0x21b0fa(0x26a)](this[_0x21b0fa(0x21c)]['registerSharedOperation'](_0x9f46d7));});}};b=Me([ke(0x0,_0x3b82a6(L))],b);var Ge=Object[_0x36f017(0x1d5)],We=Object[_0x36f017(0x20c)],Ye=(_0x23d052,_0x18803a,_0x1ae5c9)=>_0x18803a in _0x23d052?Ge(_0x23d052,_0x18803a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae5c9}):_0x23d052[_0x18803a]=_0x1ae5c9,Be=(_0xece216,_0x45f951,_0x59ab6f,_0x2b89ac)=>{var _0x27d4b4=_0x36f017;for(var _0x428ec4=_0x2b89ac>0x1?void 0x0:_0x2b89ac?We(_0x45f951,_0x59ab6f):_0x45f951,_0x100709=_0xece216[_0x27d4b4(0x211)]-0x1,_0x482983;_0x100709>=0x0;_0x100709--)(_0x482983=_0xece216[_0x100709])&&(_0x428ec4=_0x482983(_0x428ec4)||_0x428ec4);return _0x428ec4;},F=(_0x17dbcc,_0x15d582)=>(_0x5639c8,_0x4f64fe)=>_0x15d582(_0x5639c8,_0x4f64fe,_0x17dbcc),J=(_0x186778,_0x2e2554,_0x4cea52)=>Ye(_0x186778,typeof _0x2e2554!=_0x36f017(0x1f6)?_0x2e2554+'':_0x2e2554,_0x4cea52);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c42d2{constructor(_0x3a181e=$,_0x41e95f,_0xf09914){var _0x356bbe=_0x36f017;super(),this[_0x356bbe(0x1f9)]=_0x3a181e,this[_0x356bbe(0x1d6)]=_0x41e95f,this['_configService']=_0xf09914;const {..._0x531b46}=_0x3fdcd0({},$,this['_config']);this[_0x356bbe(0x1d7)][_0x356bbe(0x220)](Ue,_0x531b46);}[_0x36f017(0x1e3)](){var _0x170eda=_0x36f017;_0x29e73f(this['_injector'],_0x5e60eb([[L],[m],[b],[I]],this['_config'][_0x170eda(0x22c)])),_0x184d91(this[_0x170eda(0x1d6)],[[b]]);}[_0x36f017(0x229)](){var _0x4a7004=_0x36f017;_0x184d91(this[_0x4a7004(0x1d6)],[[I]]);}};J(O,_0x36f017(0x207),_0x3488c4[_0x36f017(0x1fd)]),J(O,_0x36f017(0x248),Ze),O=Be([_0x3c9495(_0x2e766a),F(0x1,_0x3b82a6(_0x11e997)),F(0x2,_0x2ade0c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x394302,_0x45c664){var _0xd074c2=_0x27a7,_0x3667c4=_0x394302();while(!![]){try{var _0x188e74=parseInt(_0xd074c2(0x14f))/0x1+parseInt(_0xd074c2(0x173))/0x2+parseInt(_0xd074c2(0x1ac))/0x3+-parseInt(_0xd074c2(0x1eb))/0x4+-parseInt(_0xd074c2(0x209))/0x5+-parseInt(_0xd074c2(0x195))/0x6+parseInt(_0xd074c2(0x1d5))/0x7;if(_0x188e74===_0x45c664)break;else _0x3667c4['push'](_0x3667c4['shift']());}catch(_0x2b2a37){_0x3667c4['push'](_0x3667c4['shift']());}}}(_0x413c,0xa8308),function(_0x39f95d,_0x2abd8e){var _0x197359=_0x27a7;typeof exports==_0x197359(0x22f)&&typeof module<'u'?_0x2abd8e(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x197359(0x15d)&&define['amd']?define([_0x197359(0x19b),_0x197359(0x17e),_0x197359(0x1e7),_0x197359(0x1ad),'@univerjs/design',_0x197359(0x219),'@univerjs-pro/collaboration',_0x197359(0x222),'@univerjs/sheets',_0x197359(0x17c),_0x197359(0x1cc),_0x197359(0x1af)],_0x2abd8e):(_0x39f95d=typeof globalThis<'u'?globalThis:_0x39f95d||self,_0x2abd8e(_0x39f95d[_0x197359(0x223)]={},_0x39f95d[_0x197359(0x150)],_0x39f95d[_0x197359(0x149)],_0x39f95d[_0x197359(0x1b4)],_0x39f95d[_0x197359(0x21d)],_0x39f95d['React'],_0x39f95d[_0x197359(0x1e5)],_0x39f95d[_0x197359(0x14c)],_0x39f95d[_0x197359(0x187)],_0x39f95d[_0x197359(0x17c)],_0x39f95d[_0x197359(0x17c)][_0x197359(0x161)],_0x39f95d[_0x197359(0x20c)]));}(this,function(_0x5eb3e2,_0x11ff56,_0x2f9b0f,_0x170145,_0x407a82,_0x3aa59f,_0x1565ac,_0x57ea71,_0x251a99,_0x370b73,_0x346c1b,_0x2f0fc5){'use strict';var _0x54dc2b=_0x27a7;var _0x460437=Object[_0x54dc2b(0x1d1)],_0x343ebf=(_0x1dec01,_0x48f2f9,_0x5aa4fb)=>_0x48f2f9 in _0x1dec01?_0x460437(_0x1dec01,_0x48f2f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5aa4fb}):_0x1dec01[_0x48f2f9]=_0x5aa4fb,_0x3c0df3=(_0xd09ca3,_0x11d36d,_0x12d337)=>_0x343ebf(_0xd09ca3,typeof _0x11d36d!=_0x54dc2b(0x144)?_0x11d36d+'':_0x11d36d,_0x12d337),_0x3c151a=function(){return _0x3c151a=Object['assign']||function(_0x13dc28){var _0x3dde3c=_0x27a7;for(var _0x55d6a1,_0x958f33=0x1,_0x3464a9=arguments[_0x3dde3c(0x1c5)];_0x958f33<_0x3464a9;_0x958f33++){_0x55d6a1=arguments[_0x958f33];for(var _0x6fcfc in _0x55d6a1)Object[_0x3dde3c(0x1f3)][_0x3dde3c(0x189)][_0x3dde3c(0x1cf)](_0x55d6a1,_0x6fcfc)&&(_0x13dc28[_0x6fcfc]=_0x55d6a1[_0x6fcfc]);}return _0x13dc28;},_0x3c151a['apply'](this,arguments);},_0x214849=function(_0x127436,_0x482d1f){var _0x50d3a2=_0x54dc2b,_0x505556={};for(var _0x5794ed in _0x127436)Object[_0x50d3a2(0x1f3)]['hasOwnProperty'][_0x50d3a2(0x1cf)](_0x127436,_0x5794ed)&&_0x482d1f[_0x50d3a2(0x15e)](_0x5794ed)<0x0&&(_0x505556[_0x5794ed]=_0x127436[_0x5794ed]);if(_0x127436!=null&&typeof Object[_0x50d3a2(0x204)]=='function'){for(var _0x5d0349=0x0,_0x5794ed=Object[_0x50d3a2(0x204)](_0x127436);_0x5d0349<_0x5794ed['length'];_0x5d0349++)_0x482d1f['indexOf'](_0x5794ed[_0x5d0349])<0x0&&Object[_0x50d3a2(0x1f3)][_0x50d3a2(0x169)][_0x50d3a2(0x1cf)](_0x127436,_0x5794ed[_0x5d0349])&&(_0x505556[_0x5794ed[_0x5d0349]]=_0x127436[_0x5794ed[_0x5d0349]]);}return _0x505556;},_0x169c36=_0x3aa59f[_0x54dc2b(0x180)](function(_0x512be9,_0x4d29ab){var _0xd71124=_0x54dc2b,_0x111532=_0x512be9['icon'],_0x2dfba5=_0x512be9['id'],_0x3e7fb9=_0x512be9[_0xd71124(0x1b5)],_0x3488cd=_0x512be9[_0xd71124(0x1f0)],_0x88fdcb=_0x214849(_0x512be9,[_0xd71124(0x22d),'id',_0xd71124(0x1b5),'extend']),_0x513463=_0xd71124(0x1d2)[_0xd71124(0x214)](_0x2dfba5,'\x20')[_0xd71124(0x214)](_0x3e7fb9||'')[_0xd71124(0x200)](),_0x4fa558=_0x3aa59f[_0xd71124(0x1f9)]('_'[_0xd71124(0x214)](_0x5dab63()));return _0x5c18f1(_0x111532,''['concat'](_0x2dfba5),{'defIds':_0x111532['defIds'],'idSuffix':_0x4fa558[_0xd71124(0x1b2)]},_0x3c151a({'ref':_0x4d29ab,'className':_0x513463},_0x88fdcb),_0x3488cd);});function _0x5c18f1(_0x40fa5a,_0x1d5cb0,_0x380109,_0x4f1dbf,_0x583d4c){var _0x181fed=_0x54dc2b;return _0x3aa59f[_0x181fed(0x1ea)](_0x40fa5a['tag'],_0x3c151a(_0x3c151a({'key':_0x1d5cb0},_0x37e82f(_0x40fa5a,_0x380109,_0x583d4c)),_0x4f1dbf),(_0x1070ed(_0x40fa5a,_0x380109)[_0x181fed(0x182)]||[])['map'](function(_0x388ee5,_0x148f85){var _0x2de8ea=_0x181fed;return _0x5c18f1(_0x388ee5,''[_0x2de8ea(0x214)](_0x1d5cb0,'-')[_0x2de8ea(0x214)](_0x40fa5a[_0x2de8ea(0x140)],'-')['concat'](_0x148f85),_0x380109,void 0x0,_0x583d4c);}));}function _0x37e82f(_0xc0eaa6,_0x243401,_0x149c3b){var _0x1bc573=_0x54dc2b,_0x31e349=_0x3c151a({},_0xc0eaa6['attrs']);_0x149c3b!=null&&_0x149c3b[_0x1bc573(0x1fa)]&&_0x31e349[_0x1bc573(0x1f7)]===_0x1bc573(0x1fa)&&(_0x31e349[_0x1bc573(0x1f7)]=_0x149c3b[_0x1bc573(0x1fa)]),_0xc0eaa6['tag']===_0x1bc573(0x197)&&_0x31e349['id']&&(_0x31e349['id']=_0x31e349['id']+_0x243401[_0x1bc573(0x159)]),Object[_0x1bc573(0x1b0)](_0x31e349)[_0x1bc573(0x20b)](function(_0xf41090){var _0x54d8a5=_0x1bc573,_0x496795=_0xf41090[0x0],_0x6e047f=_0xf41090[0x1];_0x496795===_0x54d8a5(0x197)&&typeof _0x6e047f=='string'&&(_0x31e349[_0x496795]=_0x6e047f['replace'](/url\(#(.*)\)/,_0x54d8a5(0x1bf)['concat'](_0x243401['idSuffix'],')')));});var _0x3bdddf=_0x243401[_0x1bc573(0x208)];return!_0x3bdddf||_0x3bdddf[_0x1bc573(0x1c5)]===0x0||(_0xc0eaa6[_0x1bc573(0x140)]===_0x1bc573(0x1e2)&&_0x31e349[_0x1bc573(0x1ab)]&&(_0x31e349[_0x1bc573(0x1ab)]=_0x31e349[_0x1bc573(0x1ab)]+_0x243401[_0x1bc573(0x159)]),Object['entries'](_0x31e349)['forEach'](function(_0x5342b5){var _0x8157a6=_0x1bc573,_0xc58724=_0x5342b5[0x0],_0xcfea1=_0x5342b5[0x1];typeof _0xcfea1==_0x8157a6(0x1e4)&&(_0x31e349[_0xc58724]=_0xcfea1[_0x8157a6(0x1db)](/url\(#(.*)\)/,'url(#$1'[_0x8157a6(0x214)](_0x243401[_0x8157a6(0x159)],')')));})),_0x31e349;}function _0x1070ed(_0x806b4c,_0x311c28){var _0x5d35f7=_0x54dc2b,_0x2d0021,_0x338e2e=_0x311c28[_0x5d35f7(0x208)];return!_0x338e2e||_0x338e2e[_0x5d35f7(0x1c5)]===0x0?_0x806b4c:_0x806b4c[_0x5d35f7(0x140)]===_0x5d35f7(0x145)&&(!((_0x2d0021=_0x806b4c[_0x5d35f7(0x182)])===null||_0x2d0021===void 0x0)&&_0x2d0021[_0x5d35f7(0x1c5)])?_0x3c151a(_0x3c151a({},_0x806b4c),{'children':_0x806b4c[_0x5d35f7(0x182)][_0x5d35f7(0x1a2)](function(_0xa44832){var _0x5147e5=_0x5d35f7;return typeof _0xa44832[_0x5147e5(0x199)]['id']==_0x5147e5(0x1e4)&&_0x338e2e&&_0x338e2e[_0x5147e5(0x18b)](_0xa44832[_0x5147e5(0x199)]['id'])?_0x3c151a(_0x3c151a({},_0xa44832),{'attrs':_0x3c151a(_0x3c151a({},_0xa44832[_0x5147e5(0x199)]),{'id':_0xa44832[_0x5147e5(0x199)]['id']+_0x311c28[_0x5147e5(0x159)]})}):_0xa44832;})}):_0x806b4c;}function _0x5dab63(){var _0x789d79=_0x54dc2b;return Math[_0x789d79(0x1d7)]()[_0x789d79(0x1d8)](0x24)[_0x789d79(0x14d)](0x2,0x8);}_0x169c36[_0x54dc2b(0x1ba)]=_0x54dc2b(0x21f);var _0x59f4c4={'tag':_0x54dc2b(0x176),'attrs':{'xmlns':_0x54dc2b(0x19a),'fill':'none','viewBox':_0x54dc2b(0x1a6),'width':_0x54dc2b(0x168),'height':_0x54dc2b(0x168)},'children':[{'tag':_0x54dc2b(0x16e),'attrs':{'fill':'currentColor','d':_0x54dc2b(0x1e0)}},{'tag':_0x54dc2b(0x16e),'attrs':{'fill':_0x54dc2b(0x1fb),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x54dc2b(0x188),'clipRule':_0x54dc2b(0x188)}}]},_0x2edc9b=_0x3aa59f['forwardRef'](function(_0x4332cc,_0x2c3581){var _0x2da3e5=_0x54dc2b;return _0x3aa59f[_0x2da3e5(0x1ea)](_0x169c36,Object[_0x2da3e5(0x1d3)]({},_0x4332cc,{'id':_0x2da3e5(0x16d),'ref':_0x2c3581,'icon':_0x59f4c4}));});_0x2edc9b[_0x54dc2b(0x1ba)]=_0x54dc2b(0x155);class _0x56afd8 extends _0x11ff56[_0x54dc2b(0x20d)]{constructor(){var _0x158900=_0x54dc2b;super(...arguments),_0x3c0df3(this,_0x158900(0x14b),new Set()),_0x3c0df3(this,_0x158900(0x191),new Set());}[_0x54dc2b(0x1b9)](_0x1c2722){var _0x14c16f=_0x54dc2b;return this[_0x14c16f(0x14b)][_0x14c16f(0x16f)](_0x1c2722),_0x11ff56['toDisposable'](()=>this[_0x14c16f(0x14b)][_0x14c16f(0x220)](_0x1c2722));}[_0x54dc2b(0x1be)](_0x3b7ec8){var _0x4dab3e=_0x54dc2b;return this[_0x4dab3e(0x191)][_0x4dab3e(0x16f)](_0x3b7ec8),_0x11ff56[_0x4dab3e(0x210)](()=>this[_0x4dab3e(0x191)]['delete'](_0x3b7ec8));}[_0x54dc2b(0x15b)](_0x388c1c){var _0x494b38=_0x54dc2b;return this[_0x494b38(0x14b)]['has'](_0x388c1c);}[_0x54dc2b(0x205)](_0x32a3b6){var _0x5e6b63=_0x54dc2b;return Array[_0x5e6b63(0x1f5)](this[_0x5e6b63(0x191)])['map'](_0x2e075e=>_0x2e075e(_0x32a3b6));}}var _0x5550d5=Object[_0x54dc2b(0x215)],_0xf9ec19=(_0xdccbfc,_0x1252a7,_0x9f8197,_0x3048c9)=>{var _0x2cce28=_0x54dc2b;for(var _0x2cb4e7=_0x3048c9>0x1?void 0x0:_0x3048c9?_0x5550d5(_0x1252a7,_0x9f8197):_0x1252a7,_0x5b1764=_0xdccbfc[_0x2cce28(0x1c5)]-0x1,_0x23110c;_0x5b1764>=0x0;_0x5b1764--)(_0x23110c=_0xdccbfc[_0x5b1764])&&(_0x2cb4e7=_0x23110c(_0x2cb4e7)||_0x2cb4e7);return _0x2cb4e7;},_0x3dd9ea=(_0x5b2413,_0x407f09)=>(_0x5b3bda,_0x57c97c)=>_0x407f09(_0x5b3bda,_0x57c97c,_0x5b2413);_0x5eb3e2[_0x54dc2b(0x183)]=class extends _0x11ff56[_0x54dc2b(0x18d)]{constructor(_0x5d2b6c,_0x26cb91,_0x46db3a){var _0x24008c=_0x54dc2b;super(),_0x3c0df3(this,_0x24008c(0x1c7),new Map()),(this[_0x24008c(0x20f)]=_0x5d2b6c,this[_0x24008c(0x15f)]=_0x26cb91,this[_0x24008c(0x19c)]=_0x46db3a,this[_0x24008c(0x1e9)]());}async[_0x54dc2b(0x1a3)](_0x3318bc){var _0x3bb5ba=_0x54dc2b;return this['_entities']['has'](_0x3318bc)||await this['_startLiveShareCoordinator'](_0x3318bc),this['_entities'][_0x3bb5ba(0x1aa)](_0x3318bc);}[_0x54dc2b(0x1e9)](){var _0x174a51=_0x54dc2b;this[_0x174a51(0x20f)][_0x174a51(0x226)](_0x11ff56[_0x174a51(0x1c3)][_0x174a51(0x1a7)])[_0x174a51(0x1c4)](_0x346c1b[_0x174a51(0x17f)](this['dispose$']))['subscribe'](async _0x26657b=>{var _0x278818=_0x174a51;const _0x1c816b=_0x26657b[_0x278818(0x148)]();this[_0x278818(0x1c7)][_0x278818(0x1c2)](_0x1c816b)||this[_0x278818(0x141)](_0x1c816b);}),this[_0x174a51(0x20f)][_0x174a51(0x1da)](_0x11ff56['UniverInstanceType'][_0x174a51(0x1a7)])['pipe'](_0x346c1b[_0x174a51(0x17f)](this['dispose$']))[_0x174a51(0x212)](_0x4ad3c2=>{var _0x2b0176=_0x174a51;const _0x3eaf0d=_0x4ad3c2[_0x2b0176(0x148)](),_0x1c2b96=this[_0x2b0176(0x1c7)]['get'](_0x3eaf0d);_0x1c2b96==null||_0x1c2b96[_0x2b0176(0x211)]();});}async['_startLiveShareCoordinator'](_0x2ad7dd){var _0x15b1ea=_0x54dc2b;const _0x2ae7ee=await this['_collabSessionService']['requireSession'](_0x2ad7dd),_0x4568a0=this['_injector']['createInstance'](_0x5eb3e2[_0x15b1ea(0x1c9)],_0x2ad7dd,_0x2ae7ee);return _0x4568a0['init'](),this[_0x15b1ea(0x1c7)][_0x15b1ea(0x18f)](_0x2ad7dd,_0x4568a0),_0x4568a0;}},_0x5eb3e2[_0x54dc2b(0x183)]=_0xf9ec19([_0x3dd9ea(0x0,_0x11ff56[_0x54dc2b(0x1ce)]),_0x3dd9ea(0x1,_0x11ff56[_0x54dc2b(0x22a)](_0x11ff56[_0x54dc2b(0x175)])),_0x3dd9ea(0x2,_0x11ff56[_0x54dc2b(0x22a)](_0x57ea71['CollaborationSessionService']))],_0x5eb3e2[_0x54dc2b(0x183)]);var _0x38e620=(_0x2b7f6a=>(_0x2b7f6a['OFFLINE']='offline',_0x2b7f6a[_0x54dc2b(0x152)]=_0x54dc2b(0x177),_0x2b7f6a['FOLLOWING']=_0x54dc2b(0x1bb),_0x2b7f6a[_0x54dc2b(0x1d0)]='not-following',_0x2b7f6a[_0x54dc2b(0x1f8)]=_0x54dc2b(0x157),_0x2b7f6a))(_0x38e620||{});const _0x2fde12='SAME_OPERATION_SHARE_INTERVAL',_0x2fb2c8=0xc8;_0x5eb3e2[_0x54dc2b(0x1c9)]=class extends _0x11ff56['RxDisposable']{constructor(_0xcf348,_0x3dedc2,_0x18faba,_0x24a8db,_0xa31a68){var _0x161ae3=_0x54dc2b;super(),_0x3c0df3(this,_0x161ae3(0x18c),new _0x370b73[(_0x161ae3(0x1a9))](_0x161ae3(0x177))),_0x3c0df3(this,_0x161ae3(0x230),this['_status$']['asObservable']()),_0x3c0df3(this,_0x161ae3(0x1e9),!0x1),_0x3c0df3(this,'_commandDisposable',null),_0x3c0df3(this,_0x161ae3(0x165),null),(this[_0x161ae3(0x178)]=_0xcf348,this['_collabSession']=_0x3dedc2,this['_configService']=_0x18faba,this[_0x161ae3(0x1dc)]=_0x24a8db,this[_0x161ae3(0x203)]=_0xa31a68);}get[_0x54dc2b(0x167)](){var _0x13c02b=_0x54dc2b;return this[_0x13c02b(0x18c)][_0x13c02b(0x1e8)]();}[_0x54dc2b(0x211)](){var _0x19c66c=_0x54dc2b,_0x4ee1fb;(_0x4ee1fb=this[_0x19c66c(0x225)])==null||_0x4ee1fb[_0x19c66c(0x211)](),this[_0x19c66c(0x18c)][_0x19c66c(0x202)]('idle'),this[_0x19c66c(0x18c)][_0x19c66c(0x16a)]();}[_0x54dc2b(0x1fe)](){var _0x2230a2=_0x54dc2b;this[_0x2230a2(0x1e9)]||(this[_0x2230a2(0x1e9)]=!0x0,this[_0x2230a2(0x20a)][_0x2230a2(0x181)]['pipe'](_0x346c1b[_0x2230a2(0x17f)](this[_0x2230a2(0x216)]))[_0x2230a2(0x212)](_0x4cc9ba=>{var _0x16f361=_0x2230a2;switch(_0x4cc9ba){case _0x57ea71[_0x16f361(0x17b)][_0x16f361(0x184)]:this[_0x16f361(0x1c6)]();break;case _0x57ea71[_0x16f361(0x17b)][_0x16f361(0x1c0)]:this['_handleOnline']();break;}}),this[_0x2230a2(0x20a)][_0x2230a2(0x163)][_0x2230a2(0x1c4)](_0x346c1b[_0x2230a2(0x17f)](this[_0x2230a2(0x216)]))[_0x2230a2(0x212)](_0x401a2f=>{var _0x5626a4=_0x2230a2;const {eventID:_0x4e44b5}=_0x401a2f;switch(_0x4e44b5){case _0x1565ac[_0x5626a4(0x19d)][_0x5626a4(0x172)]:this[_0x5626a4(0x146)](_0x401a2f);break;case _0x1565ac[_0x5626a4(0x19d)]['LIVESHARE_OPERATION']:this[_0x5626a4(0x1de)](_0x401a2f);break;case _0x1565ac['CollaborationEvent'][_0x5626a4(0x154)]:this[_0x5626a4(0x1b7)]();break;case _0x1565ac[_0x5626a4(0x19d)]['NEW_CHANGESETS']:this[_0x5626a4(0x1cd)](_0x401a2f);break;}}));}['tryStartPresenting'](){var _0x34bbff=_0x54dc2b;this['_collabSession'][_0x34bbff(0x1dd)]({'eventID':_0x1565ac[_0x34bbff(0x19d)][_0x34bbff(0x229)],'data':{'unitID':this[_0x34bbff(0x178)],'userID':this[_0x34bbff(0x20a)][_0x34bbff(0x142)]()}},this['_unitID']);}[_0x54dc2b(0x1a1)](){var _0x19b2a3=_0x54dc2b;this[_0x19b2a3(0x167)]===_0x19b2a3(0x157)&&(this[_0x19b2a3(0x18c)]['next'](_0x19b2a3(0x177)),this['_collabSession'][_0x19b2a3(0x1dd)]({'eventID':_0x1565ac[_0x19b2a3(0x19d)][_0x19b2a3(0x154)],'data':{'unitID':this[_0x19b2a3(0x178)]}},this[_0x19b2a3(0x178)]));}[_0x54dc2b(0x16b)](){var _0x5964c0=_0x54dc2b;this['_status']===_0x5964c0(0x1fd)&&(this[_0x5964c0(0x18c)]['next'](_0x5964c0(0x1bb)),this[_0x5964c0(0x19e)]());}['stopFollowing'](){var _0x4834fb=_0x54dc2b;this['_status']===_0x4834fb(0x1bb)&&this['_stopFollowing']();}[_0x54dc2b(0x146)](_0x91ea1f){var _0x5cd128=_0x54dc2b;const {presenter:_0x1fa8ca}=_0x91ea1f[_0x5cd128(0x221)],_0x99fa36=this['_collabSession'][_0x5cd128(0x142)]();this[_0x5cd128(0x165)]=_0x1fa8ca,_0x1fa8ca===_0x99fa36?(this[_0x5cd128(0x1ef)](),this[_0x5cd128(0x143)]()):this[_0x5cd128(0x167)]!==_0x5cd128(0x1fd)&&(this[_0x5cd128(0x1a5)](),this[_0x5cd128(0x19e)]());}[_0x54dc2b(0x1ca)](){var _0x5ed1a8=_0x54dc2b;const _0x415522={'eventID':_0x1565ac[_0x5ed1a8(0x19d)][_0x5ed1a8(0x1ed)]};this[_0x5ed1a8(0x20a)][_0x5ed1a8(0x1dd)](_0x415522,this[_0x5ed1a8(0x178)]);}[_0x54dc2b(0x1b7)](){var _0x195c84=_0x54dc2b;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x195c84(0x170)]();}[_0x54dc2b(0x1cd)](_0x3cb188){var _0x35a634=_0x54dc2b;if(this[_0x35a634(0x167)]===_0x35a634(0x1bb)&&this[_0x35a634(0x165)]===_0x3cb188[_0x35a634(0x221)][_0x35a634(0x1e3)]){const _0x2827b6=_0x1565ac['parseProtocolChangeset'](_0x3cb188['data'])['mutations'][_0x35a634(0x1b3)]()[_0x35a634(0x206)](_0x3abf8b=>_0x3abf8b['id']===_0x251a99['InsertSheetMutation']['id']);if(_0x2827b6){const _0x3fabdd=_0x2827b6[_0x35a634(0x14a)][_0x35a634(0x21a)],_0xbbf8b4=_0x2827b6[_0x35a634(0x14a)][_0x35a634(0x164)]['id'];setTimeout(()=>{var _0x3c364f=_0x35a634;this['_commandService'][_0x3c364f(0x1f1)](_0x251a99[_0x3c364f(0x224)]['id'],{'unitId':_0x3fabdd,'subUnitId':_0xbbf8b4},{'fromCollab':!0x0});});}}}[_0x54dc2b(0x143)](){var _0x35ed89=_0x54dc2b;this[_0x35ed89(0x18c)][_0x35ed89(0x202)](_0x35ed89(0x157));const _0x541425=new Map(),_0x8d37a4=this[_0x35ed89(0x225)]=new _0x11ff56[(_0x35ed89(0x228))]();_0x8d37a4[_0x35ed89(0x16f)](_0x11ff56[_0x35ed89(0x210)](()=>{var _0x4a75a6=_0x35ed89;_0x541425[_0x4a75a6(0x20b)](_0x4115ca=>_0x4115ca[_0x4a75a6(0x16a)]()),_0x541425['clear']();})),_0x8d37a4[_0x35ed89(0x16f)](this[_0x35ed89(0x203)][_0x35ed89(0x207)](_0x25774f=>{var _0x2f46fc=_0x35ed89,_0x19162f;if(_0x25774f[_0x2f46fc(0x1ee)]!==_0x11ff56[_0x2f46fc(0x153)][_0x2f46fc(0x1d9)]||!this[_0x2f46fc(0x1dc)][_0x2f46fc(0x15b)](_0x25774f['id']))return;const {id:_0x4cc910}=_0x25774f;let _0x525cb2;_0x541425[_0x2f46fc(0x1c2)](_0x4cc910)?_0x525cb2=_0x541425[_0x2f46fc(0x1aa)](_0x4cc910):(_0x525cb2=new _0x370b73[(_0x2f46fc(0x17d))](),_0x541425['set'](_0x4cc910,_0x525cb2),_0x525cb2[_0x2f46fc(0x1c4)](_0x346c1b['throttleTime']((_0x19162f=this[_0x2f46fc(0x201)][_0x2f46fc(0x151)](_0x2fde12))!=null?_0x19162f:_0x2fb2c8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f46fc(0x212)](_0x10e9e9=>{var _0x49f76b=_0x2f46fc;this[_0x49f76b(0x20a)][_0x49f76b(0x1dd)]({'eventID':_0x1565ac[_0x49f76b(0x19d)][_0x49f76b(0x179)],'data':{'unitID':this[_0x49f76b(0x178)],'operations':{[_0x10e9e9['id']]:{'id':_0x10e9e9['id'],'params':JSON['stringify'](_0x10e9e9[_0x49f76b(0x14a)])}}}},this[_0x49f76b(0x178)]);})),_0x525cb2[_0x2f46fc(0x202)](_0x25774f);})),this[_0x35ed89(0x1dc)][_0x35ed89(0x205)](this[_0x35ed89(0x178)])['forEach'](_0x6f58b3=>this[_0x35ed89(0x20a)][_0x35ed89(0x1dd)]({'eventID':_0x1565ac[_0x35ed89(0x19d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x35ed89(0x178)],'operations':{[_0x6f58b3['id']]:{'id':_0x6f58b3['id'],'params':JSON[_0x35ed89(0x1a8)](_0x6f58b3[_0x35ed89(0x14a)])}}}},this[_0x35ed89(0x178)]));}[_0x54dc2b(0x1a5)](){var _0x383ed3=_0x54dc2b,_0x24c648;this[_0x383ed3(0x18c)][_0x383ed3(0x202)](_0x383ed3(0x177)),(_0x24c648=this[_0x383ed3(0x225)])==null||_0x24c648['dispose'](),this[_0x383ed3(0x225)]=null;}[_0x54dc2b(0x19e)](){var _0x3acba3=_0x54dc2b,_0x53ec49;(_0x53ec49=this[_0x3acba3(0x225)])==null||_0x53ec49['dispose'](),this[_0x3acba3(0x18c)]['next'](_0x3acba3(0x1bb));}[_0x54dc2b(0x170)](){var _0x334982=_0x54dc2b,_0x2d0809;this['_status$'][_0x334982(0x202)]('idle'),(_0x2d0809=this['_commandDisposable'])==null||_0x2d0809[_0x334982(0x211)](),this['_commandDisposable']=null;}[_0x54dc2b(0x1ef)](){var _0x3bac37=_0x54dc2b,_0x54ac91;this[_0x3bac37(0x18c)][_0x3bac37(0x202)](_0x3bac37(0x1fd)),(_0x54ac91=this['_commandDisposable'])==null||_0x54ac91[_0x3bac37(0x211)]();}[_0x54dc2b(0x1de)](_0x15d4e9){var _0x4972ae=_0x54dc2b;if([_0x4972ae(0x157),_0x4972ae(0x1fd),_0x4972ae(0x15a)][_0x4972ae(0x18b)](this['_status'])||!_0x15d4e9['data'][_0x4972ae(0x156)]||_0x15d4e9['data'][_0x4972ae(0x156)]===this[_0x4972ae(0x20a)][_0x4972ae(0x142)]())return;this[_0x4972ae(0x167)]===_0x4972ae(0x177)&&this[_0x4972ae(0x19e)]();const _0xc60192=_0x15d4e9[_0x4972ae(0x221)]['operations'];Object['values'](_0xc60192)['forEach'](_0x42057b=>{var _0x3a878f=_0x4972ae;this['_commandService'][_0x3a878f(0x1f1)](_0x42057b['id'],_0x42057b[_0x3a878f(0x14a)]?JSON[_0x3a878f(0x227)](_0x42057b[_0x3a878f(0x14a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x183111=_0x54dc2b,_0x52ef0a;this[_0x183111(0x18c)][_0x183111(0x202)](_0x183111(0x15a)),(_0x52ef0a=this[_0x183111(0x225)])==null||_0x52ef0a[_0x183111(0x211)]();}[_0x54dc2b(0x1bc)](){var _0x73ce9d=_0x54dc2b;this[_0x73ce9d(0x18c)]['next'](_0x73ce9d(0x177)),this[_0x73ce9d(0x1ca)]();}},_0x5eb3e2[_0x54dc2b(0x1c9)]=_0xf9ec19([_0x3dd9ea(0x2,_0x11ff56[_0x54dc2b(0x194)]),_0x3dd9ea(0x3,_0x11ff56[_0x54dc2b(0x22a)](_0x56afd8)),_0x3dd9ea(0x4,_0x11ff56['ICommandService'])],_0x5eb3e2['LiveShareCoordinator']);function _0x416f79(){var _0x10aaca=_0x54dc2b;const _0x30a90f=_0x2f9b0f[_0x10aaca(0x21b)](_0x5eb3e2[_0x10aaca(0x183)]),_0x2b96b5=_0x2f9b0f[_0x10aaca(0x21b)](_0x11ff56[_0x10aaca(0x1ce)]),_0x32ebec=_0x2f9b0f[_0x10aaca(0x18e)](()=>_0x2b96b5[_0x10aaca(0x17a)](_0x11ff56[_0x10aaca(0x1c3)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5fc494,_0x4b6f5b]=_0x3aa59f[_0x10aaca(0x1f4)](null),[_0x5ab640,_0x48400d]=_0x3aa59f[_0x10aaca(0x1f4)](_0x38e620[_0x10aaca(0x152)]),_0x59c64e=_0x3aa59f['useRef'](null);return _0x3aa59f[_0x10aaca(0x16c)](()=>(_0x32ebec&&_0x30a90f[_0x10aaca(0x1a3)](_0x32ebec[_0x10aaca(0x148)]())[_0x10aaca(0x147)](_0x173ba9=>{var _0x172424=_0x10aaca;_0x4b6f5b(_0x173ba9),_0x59c64e[_0x172424(0x1b2)]=_0x173ba9[_0x172424(0x230)]['subscribe'](_0x164f89=>{_0x48400d(_0x164f89);});}),()=>{var _0x318d7a=_0x10aaca,_0x2788ea;(_0x2788ea=_0x59c64e['current'])==null||_0x2788ea['unsubscribe'](),_0x59c64e[_0x318d7a(0x1b2)]=null;}),[_0x32ebec,_0x30a90f]),_0x5fc494?_0x170145['jsx'](_0x407a82[_0x10aaca(0x190)],{'align':_0x10aaca(0x22c),'disabled':_0x5ab640===_0x38e620['OFFLINE'],'className':_0x10aaca(0x1e1),'overlay':_0x170145[_0x10aaca(0x1b6)](_0x5530a0,{'status':_0x5ab640,'coordinator':_0x5fc494}),'children':_0x170145[_0x10aaca(0x1b6)](_0x10aaca(0x1ae),{'className':_0x407a82[_0x10aaca(0x171)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5ab640===_0x38e620[_0x10aaca(0x184)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ab640!==_0x38e620[_0x10aaca(0x184)]}),'type':_0x10aaca(0x1ae),'children':_0x170145[_0x10aaca(0x1b6)](_0x2edc9b,{'className':_0x10aaca(0x218)})})}):null;}function _0x5530a0(_0x595c84){var _0x1e55f3=_0x54dc2b;const {status:_0xe8823d,coordinator:_0x272e2d}=_0x595c84;switch(_0xe8823d){case _0x38e620[_0x1e55f3(0x152)]:return _0x170145[_0x1e55f3(0x1b6)](_0x2a12b2,{'coordinator':_0x272e2d});case _0x38e620[_0x1e55f3(0x160)]:return _0x170145[_0x1e55f3(0x1b6)](_0x409714,{'coordinator':_0x272e2d});case _0x38e620[_0x1e55f3(0x1d0)]:return _0x170145[_0x1e55f3(0x1b6)](_0x5d2967,{'coordinator':_0x272e2d});case _0x38e620['OFFLINE']:return _0x170145[_0x1e55f3(0x1b6)](_0x51cb0e,{});case _0x38e620[_0x1e55f3(0x1f8)]:return _0x170145[_0x1e55f3(0x1b6)](_0x41fb42,{'coordinator':_0x272e2d});default:return null;}}function _0x2a12b2(_0x1624f8){var _0x279d13=_0x54dc2b;const {coordinator:_0x4b5dc3}=_0x1624f8;return _0x170145[_0x279d13(0x1b1)](_0x170145[_0x279d13(0x217)],{'children':[_0x170145[_0x279d13(0x1b6)](_0x279d13(0x192),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x279d13(0x1cb)}),_0x170145[_0x279d13(0x1b6)](_0x407a82[_0x279d13(0x19f)],{'onClick':()=>_0x4b5dc3['tryStartPresenting'](),'children':'Start'})]});}function _0x409714(_0x219877){var _0x300166=_0x54dc2b;const {coordinator:_0xb961b1}=_0x219877;return _0x170145[_0x300166(0x1b1)](_0x170145['Fragment'],{'children':[_0x170145['jsx'](_0x300166(0x192),{'className':_0x300166(0x1c1),'children':_0x300166(0x166)}),_0x170145[_0x300166(0x1b6)](_0x407a82[_0x300166(0x19f)],{'onClick':()=>_0xb961b1['stopFollowing'](),'children':_0x300166(0x186)})]});}function _0x5d2967(_0x1fa39f){var _0x4d95f9=_0x54dc2b;const {coordinator:_0x28fb47}=_0x1fa39f;return _0x170145[_0x4d95f9(0x1b1)](_0x170145[_0x4d95f9(0x217)],{'children':[_0x170145['jsx'](_0x4d95f9(0x192),{'className':_0x4d95f9(0x1c1),'children':_0x4d95f9(0x196)}),_0x170145['jsx'](_0x407a82[_0x4d95f9(0x19f)],{'variant':'text','onClick':()=>_0x28fb47[_0x4d95f9(0x16b)](),'children':_0x4d95f9(0x1d6)})]});}function _0x41fb42(_0x4bc1e6){var _0x39ded1=_0x54dc2b;const {coordinator:_0x5bd7b1}=_0x4bc1e6;return _0x170145[_0x39ded1(0x1b1)](_0x170145[_0x39ded1(0x217)],{'children':[_0x170145[_0x39ded1(0x1b6)](_0x39ded1(0x192),{'className':_0x39ded1(0x1c1),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x170145[_0x39ded1(0x1b6)](_0x407a82[_0x39ded1(0x19f)],{'variant':'default','onClick':()=>_0x5bd7b1['stopPresenting'](),'children':_0x39ded1(0x22b)})]});}function _0x51cb0e(){var _0x4859d4=_0x54dc2b;return _0x170145[_0x4859d4(0x1b6)](_0x170145[_0x4859d4(0x217)],{'children':_0x4859d4(0x193)});}var _0x1a5488=Object[_0x54dc2b(0x215)],_0x3fb18c=(_0x232318,_0x201ce5,_0x1a0b9e,_0x42f9a3)=>{var _0x538e45=_0x54dc2b;for(var _0x1613dc=_0x42f9a3>0x1?void 0x0:_0x42f9a3?_0x1a5488(_0x201ce5,_0x1a0b9e):_0x201ce5,_0x1ecd8f=_0x232318[_0x538e45(0x1c5)]-0x1,_0x24fe4f;_0x1ecd8f>=0x0;_0x1ecd8f--)(_0x24fe4f=_0x232318[_0x1ecd8f])&&(_0x1613dc=_0x24fe4f(_0x1613dc)||_0x1613dc);return _0x1613dc;},_0x127e8c=(_0x5a145d,_0x485c01)=>(_0x4a8d98,_0x4a8280)=>_0x485c01(_0x4a8d98,_0x4a8280,_0x5a145d);_0x5eb3e2[_0x54dc2b(0x162)]=class extends _0x11ff56[_0x54dc2b(0x20d)]{constructor(_0x3613de,_0xc66d24){var _0x4c3af4=_0x54dc2b;super(),this[_0x4c3af4(0x15f)]=_0x3613de,this[_0x4c3af4(0x1fc)]=_0xc66d24,this['_mountLiveShare']();}[_0x54dc2b(0x1d4)](){var _0x475bca=_0x54dc2b;this[_0x475bca(0x22e)](this['_uiPartsService'][_0x475bca(0x1a4)](_0x2f9b0f[_0x475bca(0x231)]['HEADER_MENU'],()=>_0x2f9b0f[_0x475bca(0x1b8)](_0x416f79,this[_0x475bca(0x15f)])));}},_0x5eb3e2['DesktopLiveShareController']=_0x3fb18c([_0x127e8c(0x0,_0x11ff56[_0x54dc2b(0x22a)](_0x11ff56[_0x54dc2b(0x175)])),_0x127e8c(0x1,_0x2f9b0f[_0x54dc2b(0x1bd)])],_0x5eb3e2['DesktopLiveShareController']);const _0x2db28f=_0x54dc2b(0x21c),_0x1f752a={};var _0x41b4e4=Object[_0x54dc2b(0x215)],_0x1149fe=(_0x2b7673,_0x4b77af,_0x2cd042,_0x13e74c)=>{var _0x1442df=_0x54dc2b;for(var _0x51d1ad=_0x13e74c>0x1?void 0x0:_0x13e74c?_0x41b4e4(_0x4b77af,_0x2cd042):_0x4b77af,_0x1b21dc=_0x2b7673[_0x1442df(0x1c5)]-0x1,_0x1ffe9e;_0x1b21dc>=0x0;_0x1b21dc--)(_0x1ffe9e=_0x2b7673[_0x1b21dc])&&(_0x51d1ad=_0x1ffe9e(_0x51d1ad)||_0x51d1ad);return _0x51d1ad;},_0x271b54=(_0x3d9a87,_0x52932f)=>(_0xd900a1,_0x354545)=>_0x52932f(_0xd900a1,_0x354545,_0x3d9a87);let _0x2a6707=class extends _0x11ff56[_0x54dc2b(0x20d)]{constructor(_0x48b973){var _0x7e2f31=_0x54dc2b;super(),this['_liveShareService']=_0x48b973,this[_0x7e2f31(0x1e9)]();}[_0x54dc2b(0x1e9)](){var _0xbc1eb3=_0x54dc2b;[_0x2f0fc5[_0xbc1eb3(0x1df)]['id'],_0x2f0fc5[_0xbc1eb3(0x213)]['id'],_0x251a99[_0xbc1eb3(0x224)]['id']][_0xbc1eb3(0x20b)](_0x5329ec=>{var _0x1e4136=_0xbc1eb3;this[_0x1e4136(0x22e)](this[_0x1e4136(0x1dc)][_0x1e4136(0x1b9)](_0x5329ec));});}};_0x2a6707=_0x1149fe([_0x271b54(0x0,_0x11ff56[_0x54dc2b(0x22a)](_0x56afd8))],_0x2a6707);var _0x50b464=Object[_0x54dc2b(0x1d1)],_0x453893=Object[_0x54dc2b(0x215)],_0x2eaec6=(_0xc91ef7,_0x901c68,_0x1d5738)=>_0x901c68 in _0xc91ef7?_0x50b464(_0xc91ef7,_0x901c68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5738}):_0xc91ef7[_0x901c68]=_0x1d5738,_0x53185f=(_0x46c72e,_0x3418b9,_0x1648a1,_0x27b891)=>{for(var _0x5cb7df=_0x27b891>0x1?void 0x0:_0x27b891?_0x453893(_0x3418b9,_0x1648a1):_0x3418b9,_0x4f6cb8=_0x46c72e['length']-0x1,_0x4355aa;_0x4f6cb8>=0x0;_0x4f6cb8--)(_0x4355aa=_0x46c72e[_0x4f6cb8])&&(_0x5cb7df=_0x4355aa(_0x5cb7df)||_0x5cb7df);return _0x5cb7df;},_0x5c397c=(_0x433ed5,_0x222f19)=>(_0x4ea4cc,_0x2b7695)=>_0x222f19(_0x4ea4cc,_0x2b7695,_0x433ed5),_0x220247=(_0x232680,_0x3cf4f5,_0x34707f)=>_0x2eaec6(_0x232680,typeof _0x3cf4f5!='symbol'?_0x3cf4f5+'':_0x3cf4f5,_0x34707f);const _0x42108f=_0x54dc2b(0x1c8);_0x5eb3e2['UniverLiveSharePlugin']=class extends _0x11ff56['Plugin']{constructor(_0x573376=_0x1f752a,_0x185c99,_0x58d0d0){var _0xe9bdf4=_0x54dc2b;super(),this[_0xe9bdf4(0x14e)]=_0x573376,this[_0xe9bdf4(0x15f)]=_0x185c99,this[_0xe9bdf4(0x201)]=_0x58d0d0;const {..._0x3c14d6}=_0x11ff56[_0xe9bdf4(0x174)]({},_0x1f752a,this['_config']);this[_0xe9bdf4(0x201)][_0xe9bdf4(0x21e)](_0x2db28f,_0x3c14d6);}[_0x54dc2b(0x20e)](){var _0x135bc0=_0x54dc2b;_0x11ff56[_0x135bc0(0x1ff)](this['_injector'],_0x11ff56[_0x135bc0(0x1f2)]([[_0x56afd8],[_0x5eb3e2[_0x135bc0(0x183)]],[_0x2a6707],[_0x5eb3e2['DesktopLiveShareController']]],this['_config']['override'])),_0x11ff56[_0x135bc0(0x158)](this[_0x135bc0(0x15f)],[[_0x2a6707]]);}[_0x54dc2b(0x15c)](){var _0x481f73=_0x54dc2b;_0x11ff56[_0x481f73(0x158)](this[_0x481f73(0x15f)],[[_0x5eb3e2[_0x481f73(0x162)]]]);}},_0x220247(_0x5eb3e2[_0x54dc2b(0x1ec)],_0x54dc2b(0x1ee),_0x11ff56[_0x54dc2b(0x1c3)]['UNIVER_UNKNOWN']),_0x220247(_0x5eb3e2[_0x54dc2b(0x1ec)],_0x54dc2b(0x1e6),_0x42108f),_0x5eb3e2['UniverLiveSharePlugin']=_0x53185f([_0x11ff56['DependentOn'](_0x57ea71[_0x54dc2b(0x198)]),_0x5c397c(0x1,_0x11ff56[_0x54dc2b(0x22a)](_0x11ff56[_0x54dc2b(0x175)])),_0x5c397c(0x2,_0x11ff56['IConfigService'])],_0x5eb3e2[_0x54dc2b(0x1ec)]),_0x5eb3e2['LiveShare']=_0x416f79,_0x5eb3e2[_0x54dc2b(0x1a0)]=_0x56afd8,_0x5eb3e2[_0x54dc2b(0x18a)]=_0x38e620,Object[_0x54dc2b(0x1d1)](_0x5eb3e2,Symbol[_0x54dc2b(0x1f6)],{'value':_0x54dc2b(0x185)});}));function _0x27a7(_0x11d0ef,_0x11c1f8){var _0x413c8d=_0x413c();return _0x27a7=function(_0x27a78f,_0x221561){_0x27a78f=_0x27a78f-0x140;var _0x196482=_0x413c8d[_0x27a78f];return _0x196482;},_0x27a7(_0x11d0ef,_0x11c1f8);}function _0x413c(){var _0x10d277=['_univerInstanceService','toDisposable','dispose','subscribe','SetScrollOperation','concat','getOwnPropertyDescriptor','dispose$','Fragment','univer-size-4','react','unitId','useDependency','live-share.config','UniverDesign','setConfig','UniverIcon','delete','data','@univerjs-pro/collaboration-client','UniverProLiveShare','SetWorksheetActiveOperation','_commandDisposable','getTypeOfUnitAdded$','parse','DisposableCollection','LIVESHARE_REQUEST_HOST','Inject','Stop\x20presenting','end','icon','disposeWithMe','object','status$','BuiltInUIPart','tag','_startLiveShareCoordinator','getMemberID','_startPresenting','symbol','defs','_handleNewHost','then','getUnitId','UniverUi','params','_sharedOperations','UniverProCollaborationClient','substring','_config','364550cQoKhl','UniverCore','getConfig','IDLE','CommandType','LIVESHARE_TERMINATE','LiveShareIcon','presenter','presenting','touchDependencies','idSuffix','offline','shouldShareOperation','onRendered','function','indexOf','_injector','FOLLOWING','operators','DesktopLiveShareController','event$','sheet','_presenter','You\x27re\x20following\x20the\x20presenter','_status','1em','propertyIsEnumerable','complete','startFollowing','useEffect','live-share-icon','path','add','_beIdle','clsx','LIVESHARE_NEW_HOST','1451576LxuCsf','merge','Injector','svg','idle','_unitID','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','SessionStatus','rxjs','Subject','@univerjs/core','takeUntil','forwardRef','sessionStatus$','children','LiveShareController','OFFLINE','Module','Stop\x20following','UniverSheets','evenodd','hasOwnProperty','LiveShareStatus','includes','_status$','RxDisposable','useObservable','set','Dropdown','_reporters','div','You\x27are\x20offline.','IConfigService','7232970bZOwJg','You\x27re\x20not\x20following\x20the\x20presenter','mask','UniverCollaborationClientPlugin','attrs','http://www.w3.org/2000/svg','exports','_collabSessionService','CollaborationEvent','_startFollowing','Button','LiveShareService','stopPresenting','map','getLiveShareCoordinator','registerComponent','_stopPresenting','0\x200\x2017\x2017','UNIVER_SHEET','stringify','BehaviorSubject','get','xlink:href','2947932CGsNLl','react/jsx-runtime','button','@univerjs/sheets-ui','entries','jsxs','current','reverse','React','className','jsx','_handleTerminate','connectInjector','registerSharedOperation','displayName','following','_handleOnline','IUIPartsService','registerInitialStateReporter','url(#$1','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','UniverInstanceType','pipe','length','_handleOffline','_entities','UNIVER_LIVE_SHARE_PLUGIN','LiveShareCoordinator','_fetchOperations','Present\x20this\x20document','rxjs/operators','_handleNewChangeSets','IUniverInstanceService','call','NOT_FOLLOWING','defineProperty','univerjs-icon\x20univerjs-icon-','assign','_mountLiveShare','11772369IMKwsH','Start\x20following','random','toString','OPERATION','getTypeOfUnitDisposed$','replace','_liveShareService','send','_handleOperation','SetZoomRatioOperation','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','use','memberID','string','UniverProCollaboration','pluginName','@univerjs/ui','getValue','_init','createElement','2777372ekzHEu','UniverLiveSharePlugin','LIVESHARE_FETCH_OPERATIONS','type','_stopFollowing','extend','executeCommand','mergeOverrideWithDependencies','prototype','useState','from','toStringTag','fill','PRESENTING','useRef','colorChannel1','currentColor','_uiPartsService','not-following','init','registerDependencies','trim','_configService','next','_commandService','getOwnPropertySymbols','getInitialStates','find','onCommandExecuted','defIds','5830035qJdAAG','_collabSession','forEach','UniverSheetsUi','Disposable','onStarting'];_0x413c=function(){return _0x10d277;};return _0x413c();}
|
|
1
|
+
function _0x4550(){var _0x22b084=['registerDependencies','indexOf','registerInitialStateReporter','get','colorChannel1','1694YBbRbK','_startPresenting','path','_unitID','tryStartPresenting','has','_handleNewHost','type','LiveShareService','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','dispose','_injector','_mountLiveShare','useState','UniverCollaborationClientPlugin','requireSession','getConfig','setConfig','CollaborationSessionService','UNIVER_SHEET','pipe','onRendered','parse','ICommandService','UniverLiveSharePlugin','2YYLKCd','defIds','xlink:href','button','_uiPartsService','registerComponent','mask','@univerjs/ui','currentColor','includes','stringify','idle','_collabSession','Button','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_NEW_HOST','getTypeOfUnitAdded$','getOwnPropertyDescriptor','UniverSheets','_handleOffline','FOLLOWING','useEffect','stopPresenting','UniverProCollaborationClient','SetWorksheetActiveOperation','entries','DependentOn','jsx','idSuffix','571605BVclAA','live-share.config','1em','connectInjector','http://www.w3.org/2000/svg','none','_handleOnline','LiveShareCoordinator','current','forwardRef','set','assign','object','startFollowing','NOT_FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','className','_status','LiveShare','CollaborationEvent','DisposableCollection','IDLE','LiveShareController','displayName','Subject','defineProperty','createInstance','_univerInstanceService','_handleTerminate','univerjs-icon\x20univerjs-icon-','3254031OInQLU','getCurrentTypeOfUnit$','@univerjs/sheets','toDisposable','_collabSessionService','618nXTKfu','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','from','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','@univerjs/sheets-ui','evenodd','data','IConfigService','UniverIcon','_entities','getTypeOfUnitDisposed$','takeUntil','UniverInstanceType','function','forEach','1385984gdyLpz','children','SetZoomRatioOperation','send','icon','unsubscribe','prototype','attrs','sessionStatus$','_stopFollowing','_init','offline','React','Dropdown','exports','end','_fetchOperations','operators','CommandType','You\x27re\x20following\x20the\x20presenter','_presenter','SetScrollOperation','shouldShareOperation','symbol','reverse','BuiltInUIPart','following','div','107385pOYfjM','call','length','univer-size-4','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','getValue','getLiveShareCoordinator','not-following','922060TegIou','ONLINE','map','Plugin','touchDependencies','apply','@univerjs-pro/collaboration-client','Start','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenting','UniverProCollaboration','IUIPartsService','merge','replace','mergeOverrideWithDependencies','fill','LIVESHARE_TERMINATE','getInitialStates','getOwnPropertySymbols','toString','LIVESHARE_OPERATION','subscribe','Disposable','getMemberID','IUniverInstanceService','NEW_CHANGESETS','You\x27are\x20offline.','sheet','_sharedOperations','Inject','UniverCore','useDependency','_liveShareService','Start\x20following','Injector','dispose$','mutations','_configService','add','operations','react/jsx-runtime','substring','override','Stop\x20following','_status$','stopFollowing','_commandService','_startLiveShareCoordinator','hasOwnProperty','find','_commandDisposable','onCommandExecuted','LiveShareIcon','memberID','concat','tag','url(#$1','asObservable','DesktopLiveShareController','UniverUi','presenter','init','pluginName','You\x27re\x20presenting\x20the\x20document','extend','unitId','defs','use','clear','amd','svg','_stopPresenting','status$','PRESENTING','throttleTime','_reporters','complete','RxDisposable','useRef','_startFollowing','string','disposeWithMe','38685qZTEQM','jsxs','getUnitId','Fragment','next','rxjs','clsx','OFFLINE','values','SessionStatus','@univerjs-pro/collaboration','params','useObservable','SAME_OPERATION_SHARE_INTERVAL','LiveShareStatus'];_0x4550=function(){return _0x22b084;};return _0x4550();}function _0x3c46(_0x29024a,_0xfbd0dc){var _0x4550af=_0x4550();return _0x3c46=function(_0x3c46c7,_0x3d080e){_0x3c46c7=_0x3c46c7-0x161;var _0x364579=_0x4550af[_0x3c46c7];return _0x364579;},_0x3c46(_0x29024a,_0xfbd0dc);}(function(_0x20e880,_0x179150){var _0x2f0f6c=_0x3c46,_0x16ab48=_0x20e880();while(!![]){try{var _0x429f6c=parseInt(_0x2f0f6c(0x1d8))/0x1+parseInt(_0x2f0f6c(0x206))/0x2*(parseInt(_0x2f0f6c(0x17c))/0x3)+-parseInt(_0x2f0f6c(0x186))/0x4+parseInt(_0x2f0f6c(0x223))/0x5+-parseInt(_0x2f0f6c(0x246))/0x6*(parseInt(_0x2f0f6c(0x1ec))/0x7)+-parseInt(_0x2f0f6c(0x257))/0x8+parseInt(_0x2f0f6c(0x241))/0x9;if(_0x429f6c===_0x179150)break;else _0x16ab48['push'](_0x16ab48['shift']());}catch(_0xc2f830){_0x16ab48['push'](_0x16ab48['shift']());}}}(_0x4550,0x1db47),function(_0x23e4d0,_0x28cd0f){var _0x30aae4=_0x3c46;typeof exports==_0x30aae4(0x22f)&&typeof module<'u'?_0x28cd0f(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x30aae4(0x1cb)]?define([_0x30aae4(0x16e),'@univerjs/core',_0x30aae4(0x20d),_0x30aae4(0x1ae),'@univerjs/design','react',_0x30aae4(0x1e2),_0x30aae4(0x18c),_0x30aae4(0x243),_0x30aae4(0x1dd),'rxjs/operators',_0x30aae4(0x24c)],_0x28cd0f):(_0x23e4d0=typeof globalThis<'u'?globalThis:_0x23e4d0||self,_0x28cd0f(_0x23e4d0['UniverProLiveShare']={},_0x23e4d0[_0x30aae4(0x1a4)],_0x23e4d0[_0x30aae4(0x1c1)],_0x23e4d0[_0x30aae4(0x16c)],_0x23e4d0['UniverDesign'],_0x23e4d0[_0x30aae4(0x16c)],_0x23e4d0[_0x30aae4(0x190)],_0x23e4d0[_0x30aae4(0x21d)],_0x23e4d0[_0x30aae4(0x218)],_0x23e4d0[_0x30aae4(0x1dd)],_0x23e4d0[_0x30aae4(0x1dd)][_0x30aae4(0x171)],_0x23e4d0['UniverSheetsUi']));}(this,function(_0x32a878,_0x2c8af3,_0x4d4b38,_0x40ffe6,_0x5146f0,_0x23d454,_0x1eba64,_0x127d70,_0x1da1f3,_0xecde77,_0x3751a1,_0x333091){'use strict';var _0x2c2793=_0x3c46;var _0x511974=Object[_0x2c2793(0x23c)],_0xdfdd4e=(_0x22b6ba,_0x432bd8,_0x685ad4)=>_0x432bd8 in _0x22b6ba?_0x511974(_0x22b6ba,_0x432bd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x685ad4}):_0x22b6ba[_0x432bd8]=_0x685ad4,_0x286e4a=(_0xe7151f,_0x1e954f,_0x56a9dc)=>_0xdfdd4e(_0xe7151f,typeof _0x1e954f!='symbol'?_0x1e954f+'':_0x1e954f,_0x56a9dc),_0x418ded=function(){var _0x30f905=_0x2c2793;return _0x418ded=Object[_0x30f905(0x22e)]||function(_0x15af9a){var _0x2fea05=_0x30f905;for(var _0x1bed8a,_0x3d7a56=0x1,_0x3343db=arguments[_0x2fea05(0x17e)];_0x3d7a56<_0x3343db;_0x3d7a56++){_0x1bed8a=arguments[_0x3d7a56];for(var _0x3144a5 in _0x1bed8a)Object[_0x2fea05(0x166)][_0x2fea05(0x1b6)][_0x2fea05(0x17d)](_0x1bed8a,_0x3144a5)&&(_0x15af9a[_0x3144a5]=_0x1bed8a[_0x3144a5]);}return _0x15af9a;},_0x418ded[_0x30f905(0x18b)](this,arguments);},_0x474e90=function(_0x10a1cd,_0x56e093){var _0x30cab0=_0x2c2793,_0x554730={};for(var _0xae10cc in _0x10a1cd)Object[_0x30cab0(0x166)][_0x30cab0(0x1b6)][_0x30cab0(0x17d)](_0x10a1cd,_0xae10cc)&&_0x56e093[_0x30cab0(0x1e8)](_0xae10cc)<0x0&&(_0x554730[_0xae10cc]=_0x10a1cd[_0xae10cc]);if(_0x10a1cd!=null&&typeof Object[_0x30cab0(0x198)]==_0x30cab0(0x255)){for(var _0x325ecc=0x0,_0xae10cc=Object[_0x30cab0(0x198)](_0x10a1cd);_0x325ecc<_0xae10cc[_0x30cab0(0x17e)];_0x325ecc++)_0x56e093[_0x30cab0(0x1e8)](_0xae10cc[_0x325ecc])<0x0&&Object[_0x30cab0(0x166)]['propertyIsEnumerable'][_0x30cab0(0x17d)](_0x10a1cd,_0xae10cc[_0x325ecc])&&(_0x554730[_0xae10cc[_0x325ecc]]=_0x10a1cd[_0xae10cc[_0x325ecc]]);}return _0x554730;},_0x161414=_0x23d454[_0x2c2793(0x22c)](function(_0x3de263,_0x4a788f){var _0x3033b0=_0x2c2793,_0x26d41a=_0x3de263['icon'],_0x410fd2=_0x3de263['id'],_0xe8b479=_0x3de263[_0x3033b0(0x233)],_0x597c40=_0x3de263['extend'],_0x2d8ec5=_0x474e90(_0x3de263,[_0x3033b0(0x164),'id',_0x3033b0(0x233),_0x3033b0(0x1c6)]),_0x587495=_0x3033b0(0x240)[_0x3033b0(0x1bc)](_0x410fd2,'\x20')['concat'](_0xe8b479||'')['trim'](),_0x29ffb6=_0x23d454[_0x3033b0(0x1d4)]('_'['concat'](_0x14dda9()));return _0xa79dd6(_0x26d41a,''[_0x3033b0(0x1bc)](_0x410fd2),{'defIds':_0x26d41a[_0x3033b0(0x207)],'idSuffix':_0x29ffb6['current']},_0x418ded({'ref':_0x4a788f,'className':_0x587495},_0x2d8ec5),_0x597c40);});function _0xa79dd6(_0x1c1d01,_0x1e62be,_0x2454b7,_0x6da599,_0x4fbe80){var _0x22ee19=_0x2c2793;return _0x23d454['createElement'](_0x1c1d01['tag'],_0x418ded(_0x418ded({'key':_0x1e62be},_0xff37b3(_0x1c1d01,_0x2454b7,_0x4fbe80)),_0x6da599),(_0xcea881(_0x1c1d01,_0x2454b7)[_0x22ee19(0x161)]||[])['map'](function(_0x5d02f2,_0x2f5b19){var _0x94309a=_0x22ee19;return _0xa79dd6(_0x5d02f2,''[_0x94309a(0x1bc)](_0x1e62be,'-')[_0x94309a(0x1bc)](_0x1c1d01[_0x94309a(0x1bd)],'-')[_0x94309a(0x1bc)](_0x2f5b19),_0x2454b7,void 0x0,_0x4fbe80);}));}function _0xff37b3(_0x33c1df,_0x3d1656,_0x884dff){var _0x431722=_0x2c2793,_0x44c86d=_0x418ded({},_0x33c1df[_0x431722(0x167)]);_0x884dff!=null&&_0x884dff['colorChannel1']&&_0x44c86d[_0x431722(0x195)]===_0x431722(0x1eb)&&(_0x44c86d[_0x431722(0x195)]=_0x884dff[_0x431722(0x1eb)]),_0x33c1df[_0x431722(0x1bd)]===_0x431722(0x20c)&&_0x44c86d['id']&&(_0x44c86d['id']=_0x44c86d['id']+_0x3d1656[_0x431722(0x222)]),Object['entries'](_0x44c86d)[_0x431722(0x256)](function(_0x4e78d4){var _0x49bd4e=_0x431722,_0x49a000=_0x4e78d4[0x0],_0x36a33b=_0x4e78d4[0x1];_0x49a000===_0x49bd4e(0x20c)&&typeof _0x36a33b=='string'&&(_0x44c86d[_0x49a000]=_0x36a33b[_0x49bd4e(0x193)](/url\(#(.*)\)/,_0x49bd4e(0x1be)[_0x49bd4e(0x1bc)](_0x3d1656[_0x49bd4e(0x222)],')')));});var _0x44aaf2=_0x3d1656['defIds'];return!_0x44aaf2||_0x44aaf2[_0x431722(0x17e)]===0x0||(_0x33c1df['tag']===_0x431722(0x1c9)&&_0x44c86d[_0x431722(0x208)]&&(_0x44c86d['xlink:href']=_0x44c86d[_0x431722(0x208)]+_0x3d1656[_0x431722(0x222)]),Object[_0x431722(0x21f)](_0x44c86d)[_0x431722(0x256)](function(_0x124f83){var _0x58c4bd=_0x431722,_0x51481b=_0x124f83[0x0],_0x32dc75=_0x124f83[0x1];typeof _0x32dc75=='string'&&(_0x44c86d[_0x51481b]=_0x32dc75[_0x58c4bd(0x193)](/url\(#(.*)\)/,_0x58c4bd(0x1be)['concat'](_0x3d1656['idSuffix'],')')));})),_0x44c86d;}function _0xcea881(_0x4c95fc,_0x51f806){var _0x54ced4=_0x2c2793,_0x13bc25,_0x2088b1=_0x51f806[_0x54ced4(0x207)];return!_0x2088b1||_0x2088b1[_0x54ced4(0x17e)]===0x0?_0x4c95fc:_0x4c95fc['tag']===_0x54ced4(0x1c8)&&(!((_0x13bc25=_0x4c95fc[_0x54ced4(0x161)])===null||_0x13bc25===void 0x0)&&_0x13bc25[_0x54ced4(0x17e)])?_0x418ded(_0x418ded({},_0x4c95fc),{'children':_0x4c95fc['children'][_0x54ced4(0x188)](function(_0x57a327){var _0x31cb79=_0x54ced4;return typeof _0x57a327[_0x31cb79(0x167)]['id']==_0x31cb79(0x1d6)&&_0x2088b1&&_0x2088b1[_0x31cb79(0x20f)](_0x57a327[_0x31cb79(0x167)]['id'])?_0x418ded(_0x418ded({},_0x57a327),{'attrs':_0x418ded(_0x418ded({},_0x57a327[_0x31cb79(0x167)]),{'id':_0x57a327['attrs']['id']+_0x51f806['idSuffix']})}):_0x57a327;})}):_0x4c95fc;}function _0x14dda9(){var _0x419d78=_0x2c2793;return Math['random']()[_0x419d78(0x199)](0x24)[_0x419d78(0x1af)](0x2,0x8);}_0x161414[_0x2c2793(0x23a)]=_0x2c2793(0x250);var _0x50952a={'tag':_0x2c2793(0x1cc),'attrs':{'xmlns':_0x2c2793(0x227),'fill':_0x2c2793(0x228),'viewBox':_0x2c2793(0x24a),'width':'1em','height':_0x2c2793(0x225)},'children':[{'tag':_0x2c2793(0x1ee),'attrs':{'fill':'currentColor','d':_0x2c2793(0x248)}},{'tag':_0x2c2793(0x1ee),'attrs':{'fill':_0x2c2793(0x20e),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x2c2793(0x24d),'clipRule':_0x2c2793(0x24d)}}]},_0x4badc6=_0x23d454[_0x2c2793(0x22c)](function(_0xd3daf1,_0x5985b4){var _0x51b084=_0x2c2793;return _0x23d454['createElement'](_0x161414,Object[_0x51b084(0x22e)]({},_0xd3daf1,{'id':'live-share-icon','ref':_0x5985b4,'icon':_0x50952a}));});_0x4badc6[_0x2c2793(0x23a)]=_0x2c2793(0x1ba);class _0x5d6275 extends _0x2c8af3['Disposable']{constructor(){super(...arguments),_0x286e4a(this,'_sharedOperations',new Set()),_0x286e4a(this,'_reporters',new Set());}[_0x2c2793(0x180)](_0x5d9f38){var _0x21c1e4=_0x2c2793;return this['_sharedOperations'][_0x21c1e4(0x1ac)](_0x5d9f38),_0x2c8af3['toDisposable'](()=>this[_0x21c1e4(0x1a2)]['delete'](_0x5d9f38));}[_0x2c2793(0x1e9)](_0xe63079){var _0x39b1d2=_0x2c2793;return this[_0x39b1d2(0x1d1)][_0x39b1d2(0x1ac)](_0xe63079),_0x2c8af3[_0x39b1d2(0x244)](()=>this[_0x39b1d2(0x1d1)]['delete'](_0xe63079));}['shouldShareOperation'](_0x166d1a){var _0x23a0e3=_0x2c2793;return this['_sharedOperations'][_0x23a0e3(0x1f1)](_0x166d1a);}['getInitialStates'](_0x29c4c3){var _0x1ea60c=_0x2c2793;return Array[_0x1ea60c(0x249)](this[_0x1ea60c(0x1d1)])[_0x1ea60c(0x188)](_0x58c84c=>_0x58c84c(_0x29c4c3));}}var _0x148477=Object[_0x2c2793(0x217)],_0x2f2cde=(_0x72ce62,_0x162207,_0xb54b50,_0x160be9)=>{var _0x3e4635=_0x2c2793;for(var _0x3036dd=_0x160be9>0x1?void 0x0:_0x160be9?_0x148477(_0x162207,_0xb54b50):_0x162207,_0x511779=_0x72ce62[_0x3e4635(0x17e)]-0x1,_0x1f3480;_0x511779>=0x0;_0x511779--)(_0x1f3480=_0x72ce62[_0x511779])&&(_0x3036dd=_0x1f3480(_0x3036dd)||_0x3036dd);return _0x3036dd;},_0x579d97=(_0x15d373,_0x5d83ad)=>(_0x411492,_0x4a0d57)=>_0x5d83ad(_0x411492,_0x4a0d57,_0x15d373);_0x32a878[_0x2c2793(0x239)]=class extends _0x2c8af3[_0x2c2793(0x1d3)]{constructor(_0x5af2d3,_0x261ca1,_0x1ea5d8){var _0x4f9126=_0x2c2793;super(),_0x286e4a(this,_0x4f9126(0x251),new Map()),(this['_univerInstanceService']=_0x5af2d3,this[_0x4f9126(0x1f8)]=_0x261ca1,this['_collabSessionService']=_0x1ea5d8,this[_0x4f9126(0x16a)]());}async[_0x2c2793(0x184)](_0x43714c){var _0x150afc=_0x2c2793;return this[_0x150afc(0x251)][_0x150afc(0x1f1)](_0x43714c)||await this[_0x150afc(0x1b5)](_0x43714c),this[_0x150afc(0x251)]['get'](_0x43714c);}['_init'](){var _0x41bd93=_0x2c2793;this[_0x41bd93(0x23e)][_0x41bd93(0x216)](_0x2c8af3['UniverInstanceType'][_0x41bd93(0x200)])['pipe'](_0x3751a1['takeUntil'](this['dispose$']))[_0x41bd93(0x19b)](async _0x157281=>{var _0xf677c9=_0x41bd93;const _0x34eefc=_0x157281[_0xf677c9(0x1da)]();this[_0xf677c9(0x251)]['has'](_0x34eefc)||this['_startLiveShareCoordinator'](_0x34eefc);}),this[_0x41bd93(0x23e)][_0x41bd93(0x252)](_0x2c8af3[_0x41bd93(0x254)][_0x41bd93(0x200)])[_0x41bd93(0x201)](_0x3751a1[_0x41bd93(0x253)](this[_0x41bd93(0x1a9)]))[_0x41bd93(0x19b)](_0x542700=>{var _0x5b0ed9=_0x41bd93;const _0x397f19=_0x542700[_0x5b0ed9(0x1da)](),_0x335670=this[_0x5b0ed9(0x251)][_0x5b0ed9(0x1ea)](_0x397f19);_0x335670==null||_0x335670[_0x5b0ed9(0x1f7)]();});}async[_0x2c2793(0x1b5)](_0x469024){var _0x136522=_0x2c2793;const _0x26e4e4=await this[_0x136522(0x245)][_0x136522(0x1fc)](_0x469024),_0x26bb5a=this['_injector'][_0x136522(0x23d)](_0x32a878[_0x136522(0x22a)],_0x469024,_0x26e4e4);return _0x26bb5a[_0x136522(0x1c3)](),this[_0x136522(0x251)]['set'](_0x469024,_0x26bb5a),_0x26bb5a;}},_0x32a878[_0x2c2793(0x239)]=_0x2f2cde([_0x579d97(0x0,_0x2c8af3[_0x2c2793(0x19e)]),_0x579d97(0x1,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3[_0x2c2793(0x1a8)])),_0x579d97(0x2,_0x2c8af3[_0x2c2793(0x1a3)](_0x127d70[_0x2c2793(0x1ff)]))],_0x32a878[_0x2c2793(0x239)]);var _0xaeaf5=(_0x1d0ef1=>(_0x1d0ef1[_0x2c2793(0x1df)]='offline',_0x1d0ef1[_0x2c2793(0x238)]=_0x2c2793(0x211),_0x1d0ef1['FOLLOWING']='following',_0x1d0ef1[_0x2c2793(0x231)]=_0x2c2793(0x185),_0x1d0ef1[_0x2c2793(0x1cf)]=_0x2c2793(0x18f),_0x1d0ef1))(_0xaeaf5||{});const _0x544074=_0x2c2793(0x1e5),_0x474865=0xc8;_0x32a878[_0x2c2793(0x22a)]=class extends _0x2c8af3[_0x2c2793(0x1d3)]{constructor(_0x46ed68,_0x1095ac,_0x3a6d7b,_0x1304b0,_0x1f96ff){var _0x2659e4=_0x2c2793;super(),_0x286e4a(this,_0x2659e4(0x1b2),new _0xecde77['BehaviorSubject'](_0x2659e4(0x211))),_0x286e4a(this,_0x2659e4(0x1ce),this['_status$'][_0x2659e4(0x1bf)]()),_0x286e4a(this,_0x2659e4(0x16a),!0x1),_0x286e4a(this,'_commandDisposable',null),_0x286e4a(this,_0x2659e4(0x174),null),(this[_0x2659e4(0x1ef)]=_0x46ed68,this[_0x2659e4(0x212)]=_0x1095ac,this[_0x2659e4(0x1ab)]=_0x3a6d7b,this[_0x2659e4(0x1a6)]=_0x1304b0,this[_0x2659e4(0x1b4)]=_0x1f96ff);}get[_0x2c2793(0x234)](){var _0x57adbf=_0x2c2793;return this[_0x57adbf(0x1b2)][_0x57adbf(0x183)]();}[_0x2c2793(0x1f7)](){var _0x29834d=_0x2c2793,_0x470570;(_0x470570=this[_0x29834d(0x1b8)])==null||_0x470570[_0x29834d(0x1f7)](),this['_status$'][_0x29834d(0x1dc)](_0x29834d(0x211)),this[_0x29834d(0x1b2)][_0x29834d(0x1d2)]();}[_0x2c2793(0x1c3)](){var _0x53840f=_0x2c2793;this[_0x53840f(0x16a)]||(this[_0x53840f(0x16a)]=!0x0,this[_0x53840f(0x212)][_0x53840f(0x168)][_0x53840f(0x201)](_0x3751a1[_0x53840f(0x253)](this[_0x53840f(0x1a9)]))['subscribe'](_0x23f916=>{var _0x467491=_0x53840f;switch(_0x23f916){case _0x127d70[_0x467491(0x1e1)]['OFFLINE']:this[_0x467491(0x219)]();break;case _0x127d70[_0x467491(0x1e1)][_0x467491(0x187)]:this[_0x467491(0x229)]();break;}}),this[_0x53840f(0x212)]['event$'][_0x53840f(0x201)](_0x3751a1[_0x53840f(0x253)](this[_0x53840f(0x1a9)]))['subscribe'](_0x43b1bd=>{var _0x24e50e=_0x53840f;const {eventID:_0x2b0d84}=_0x43b1bd;switch(_0x2b0d84){case _0x1eba64['CollaborationEvent'][_0x24e50e(0x215)]:this[_0x24e50e(0x1f2)](_0x43b1bd);break;case _0x1eba64[_0x24e50e(0x236)][_0x24e50e(0x19a)]:this['_handleOperation'](_0x43b1bd);break;case _0x1eba64['CollaborationEvent'][_0x24e50e(0x196)]:this[_0x24e50e(0x23f)]();break;case _0x1eba64[_0x24e50e(0x236)][_0x24e50e(0x19f)]:this[_0x24e50e(0x182)](_0x43b1bd);break;}}));}['tryStartPresenting'](){var _0x67d239=_0x2c2793;this[_0x67d239(0x212)][_0x67d239(0x163)]({'eventID':_0x1eba64[_0x67d239(0x236)][_0x67d239(0x24b)],'data':{'unitID':this[_0x67d239(0x1ef)],'userID':this[_0x67d239(0x212)][_0x67d239(0x19d)]()}},this[_0x67d239(0x1ef)]);}[_0x2c2793(0x21c)](){var _0x203f54=_0x2c2793;this['_status']===_0x203f54(0x18f)&&(this['_status$'][_0x203f54(0x1dc)](_0x203f54(0x211)),this[_0x203f54(0x212)][_0x203f54(0x163)]({'eventID':_0x1eba64['CollaborationEvent'][_0x203f54(0x196)],'data':{'unitID':this[_0x203f54(0x1ef)]}},this[_0x203f54(0x1ef)]));}[_0x2c2793(0x230)](){var _0x3317e5=_0x2c2793;this[_0x3317e5(0x234)]===_0x3317e5(0x185)&&(this[_0x3317e5(0x1b2)][_0x3317e5(0x1dc)](_0x3317e5(0x17a)),this[_0x3317e5(0x1d5)]());}[_0x2c2793(0x1b3)](){var _0x953c78=_0x2c2793;this[_0x953c78(0x234)]==='following'&&this[_0x953c78(0x169)]();}[_0x2c2793(0x1f2)](_0x54f52c){var _0x2e6174=_0x2c2793;const {presenter:_0x5640ca}=_0x54f52c['data'],_0x1607ba=this[_0x2e6174(0x212)][_0x2e6174(0x19d)]();this[_0x2e6174(0x174)]=_0x5640ca,_0x5640ca===_0x1607ba?(this[_0x2e6174(0x169)](),this['_startPresenting']()):this[_0x2e6174(0x234)]!=='not-following'&&(this[_0x2e6174(0x1cd)](),this[_0x2e6174(0x1d5)]());}[_0x2c2793(0x170)](){var _0x46f092=_0x2c2793;const _0x564e2a={'eventID':_0x1eba64[_0x46f092(0x236)][_0x46f092(0x214)]};this['_collabSession']['send'](_0x564e2a,this[_0x46f092(0x1ef)]);}['_handleTerminate'](){var _0x268359=_0x2c2793;this[_0x268359(0x174)]=null,this[_0x268359(0x234)]!==_0x268359(0x18f)&&this['_beIdle']();}[_0x2c2793(0x182)](_0xa6d6e1){var _0x355f40=_0x2c2793;if(this[_0x355f40(0x234)]===_0x355f40(0x17a)&&this[_0x355f40(0x174)]===_0xa6d6e1[_0x355f40(0x24e)][_0x355f40(0x1bb)]){const _0x3cdee9=_0x1eba64['parseProtocolChangeset'](_0xa6d6e1[_0x355f40(0x24e)])[_0x355f40(0x1aa)][_0x355f40(0x178)]()[_0x355f40(0x1b7)](_0x21ef5c=>_0x21ef5c['id']===_0x1da1f3['InsertSheetMutation']['id']);if(_0x3cdee9){const _0x4f619a=_0x3cdee9[_0x355f40(0x1e3)][_0x355f40(0x1c7)],_0x27ac91=_0x3cdee9[_0x355f40(0x1e3)][_0x355f40(0x1a1)]['id'];setTimeout(()=>{var _0x2bb284=_0x355f40;this[_0x2bb284(0x1b4)]['executeCommand'](_0x1da1f3[_0x2bb284(0x21e)]['id'],{'unitId':_0x4f619a,'subUnitId':_0x27ac91},{'fromCollab':!0x0});});}}}[_0x2c2793(0x1ed)](){var _0x2f40c4=_0x2c2793;this[_0x2f40c4(0x1b2)]['next'](_0x2f40c4(0x18f));const _0x355317=new Map(),_0x32d52a=this[_0x2f40c4(0x1b8)]=new _0x2c8af3[(_0x2f40c4(0x237))]();_0x32d52a[_0x2f40c4(0x1ac)](_0x2c8af3['toDisposable'](()=>{var _0x1d0d9a=_0x2f40c4;_0x355317[_0x1d0d9a(0x256)](_0x567c0b=>_0x567c0b['complete']()),_0x355317[_0x1d0d9a(0x1ca)]();})),_0x32d52a[_0x2f40c4(0x1ac)](this['_commandService'][_0x2f40c4(0x1b9)](_0x2f6f45=>{var _0x285799=_0x2f40c4,_0x2c3ddc;if(_0x2f6f45[_0x285799(0x1f3)]!==_0x2c8af3[_0x285799(0x172)]['OPERATION']||!this[_0x285799(0x1a6)][_0x285799(0x176)](_0x2f6f45['id']))return;const {id:_0x19d386}=_0x2f6f45;let _0x170b54;_0x355317[_0x285799(0x1f1)](_0x19d386)?_0x170b54=_0x355317[_0x285799(0x1ea)](_0x19d386):(_0x170b54=new _0xecde77[(_0x285799(0x23b))](),_0x355317[_0x285799(0x22d)](_0x19d386,_0x170b54),_0x170b54[_0x285799(0x201)](_0x3751a1[_0x285799(0x1d0)]((_0x2c3ddc=this[_0x285799(0x1ab)][_0x285799(0x1fd)](_0x544074))!=null?_0x2c3ddc:_0x474865,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x285799(0x19b)](_0xfeca05=>{var _0x39edc2=_0x285799;this[_0x39edc2(0x212)]['send']({'eventID':_0x1eba64['CollaborationEvent'][_0x39edc2(0x19a)],'data':{'unitID':this[_0x39edc2(0x1ef)],'operations':{[_0xfeca05['id']]:{'id':_0xfeca05['id'],'params':JSON[_0x39edc2(0x210)](_0xfeca05[_0x39edc2(0x1e3)])}}}},this['_unitID']);})),_0x170b54[_0x285799(0x1dc)](_0x2f6f45);})),this[_0x2f40c4(0x1a6)][_0x2f40c4(0x197)](this[_0x2f40c4(0x1ef)])['forEach'](_0x259f88=>this[_0x2f40c4(0x212)]['send']({'eventID':_0x1eba64[_0x2f40c4(0x236)][_0x2f40c4(0x19a)],'data':{'unitID':this[_0x2f40c4(0x1ef)],'operations':{[_0x259f88['id']]:{'id':_0x259f88['id'],'params':JSON[_0x2f40c4(0x210)](_0x259f88[_0x2f40c4(0x1e3)])}}}},this[_0x2f40c4(0x1ef)]));}['_stopPresenting'](){var _0x14b322=_0x2c2793,_0x400d8c;this[_0x14b322(0x1b2)][_0x14b322(0x1dc)](_0x14b322(0x211)),(_0x400d8c=this[_0x14b322(0x1b8)])==null||_0x400d8c[_0x14b322(0x1f7)](),this[_0x14b322(0x1b8)]=null;}[_0x2c2793(0x1d5)](){var _0x11147a=_0x2c2793,_0x387d30;(_0x387d30=this[_0x11147a(0x1b8)])==null||_0x387d30[_0x11147a(0x1f7)](),this[_0x11147a(0x1b2)]['next']('following');}[_0x2c2793(0x1f5)](){var _0x24ed81=_0x2c2793,_0x529961;this[_0x24ed81(0x1b2)]['next'](_0x24ed81(0x211)),(_0x529961=this['_commandDisposable'])==null||_0x529961['dispose'](),this[_0x24ed81(0x1b8)]=null;}['_stopFollowing'](){var _0x11261a=_0x2c2793,_0xa358;this['_status$'][_0x11261a(0x1dc)](_0x11261a(0x185)),(_0xa358=this[_0x11261a(0x1b8)])==null||_0xa358[_0x11261a(0x1f7)]();}['_handleOperation'](_0x23d5f3){var _0x340b0f=_0x2c2793;if([_0x340b0f(0x18f),_0x340b0f(0x185),'offline'][_0x340b0f(0x20f)](this[_0x340b0f(0x234)])||!_0x23d5f3[_0x340b0f(0x24e)][_0x340b0f(0x1c2)]||_0x23d5f3['data'][_0x340b0f(0x1c2)]===this[_0x340b0f(0x212)][_0x340b0f(0x19d)]())return;this[_0x340b0f(0x234)]==='idle'&&this[_0x340b0f(0x1d5)]();const _0x2087e0=_0x23d5f3['data'][_0x340b0f(0x1ad)];Object[_0x340b0f(0x1e0)](_0x2087e0)[_0x340b0f(0x256)](_0x442b85=>{var _0x48587f=_0x340b0f;this[_0x48587f(0x1b4)]['executeCommand'](_0x442b85['id'],_0x442b85[_0x48587f(0x1e3)]?JSON[_0x48587f(0x203)](_0x442b85[_0x48587f(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x2c2793(0x219)](){var _0x56fda8=_0x2c2793,_0x3aaf0e;this[_0x56fda8(0x1b2)][_0x56fda8(0x1dc)](_0x56fda8(0x16b)),(_0x3aaf0e=this[_0x56fda8(0x1b8)])==null||_0x3aaf0e[_0x56fda8(0x1f7)]();}['_handleOnline'](){var _0x1f7485=_0x2c2793;this[_0x1f7485(0x1b2)][_0x1f7485(0x1dc)]('idle'),this[_0x1f7485(0x170)]();}},_0x32a878['LiveShareCoordinator']=_0x2f2cde([_0x579d97(0x2,_0x2c8af3['IConfigService']),_0x579d97(0x3,_0x2c8af3['Inject'](_0x5d6275)),_0x579d97(0x4,_0x2c8af3[_0x2c2793(0x204)])],_0x32a878[_0x2c2793(0x22a)]);function _0x37e2be(){var _0x3637b1=_0x2c2793;const _0x337136=_0x4d4b38[_0x3637b1(0x1a5)](_0x32a878[_0x3637b1(0x239)]),_0x1a1daa=_0x4d4b38[_0x3637b1(0x1a5)](_0x2c8af3[_0x3637b1(0x19e)]),_0x4c1de6=_0x4d4b38[_0x3637b1(0x1e4)](()=>_0x1a1daa[_0x3637b1(0x242)](_0x2c8af3[_0x3637b1(0x254)][_0x3637b1(0x200)]),void 0x0,!0x1,[]),[_0x38c30a,_0x3b32f6]=_0x23d454[_0x3637b1(0x1fa)](null),[_0x59850c,_0x3464e8]=_0x23d454['useState'](_0xaeaf5['IDLE']),_0x477489=_0x23d454[_0x3637b1(0x1d4)](null);return _0x23d454[_0x3637b1(0x21b)](()=>(_0x4c1de6&&_0x337136['getLiveShareCoordinator'](_0x4c1de6[_0x3637b1(0x1da)]())['then'](_0x21beef=>{var _0x49f329=_0x3637b1;_0x3b32f6(_0x21beef),_0x477489[_0x49f329(0x22b)]=_0x21beef[_0x49f329(0x1ce)][_0x49f329(0x19b)](_0x5eb205=>{_0x3464e8(_0x5eb205);});}),()=>{var _0x310c2f=_0x3637b1,_0x1bc307;(_0x1bc307=_0x477489['current'])==null||_0x1bc307[_0x310c2f(0x165)](),_0x477489[_0x310c2f(0x22b)]=null;}),[_0x4c1de6,_0x337136]),_0x38c30a?_0x40ffe6[_0x3637b1(0x221)](_0x5146f0[_0x3637b1(0x16d)],{'align':_0x3637b1(0x16f),'disabled':_0x59850c===_0xaeaf5['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x40ffe6['jsx'](_0x5c3011,{'status':_0x59850c,'coordinator':_0x38c30a}),'children':_0x40ffe6['jsx'](_0x3637b1(0x209),{'className':_0x5146f0[_0x3637b1(0x1de)](_0x3637b1(0x18e),{'univer-cursor-not-allowed':_0x59850c===_0xaeaf5[_0x3637b1(0x1df)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59850c!==_0xaeaf5['OFFLINE']}),'type':'button','children':_0x40ffe6[_0x3637b1(0x221)](_0x4badc6,{'className':_0x3637b1(0x17f)})})}):null;}function _0x5c3011(_0x3fc40a){var _0x40f798=_0x2c2793;const {status:_0x3e8f71,coordinator:_0x19f620}=_0x3fc40a;switch(_0x3e8f71){case _0xaeaf5[_0x40f798(0x238)]:return _0x40ffe6['jsx'](_0x1c4365,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x21a)]:return _0x40ffe6[_0x40f798(0x221)](_0xe47d35,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x231)]:return _0x40ffe6[_0x40f798(0x221)](_0x33c3aa,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x1df)]:return _0x40ffe6[_0x40f798(0x221)](_0x2602af,{});case _0xaeaf5['PRESENTING']:return _0x40ffe6['jsx'](_0x1d339b,{'coordinator':_0x19f620});default:return null;}}function _0x1c4365(_0x5c9618){var _0x25087a=_0x2c2793;const {coordinator:_0xf02bae}=_0x5c9618;return _0x40ffe6[_0x25087a(0x1d9)](_0x40ffe6[_0x25087a(0x1db)],{'children':[_0x40ffe6['jsx'](_0x25087a(0x17b),{'className':_0x25087a(0x181),'children':'Present\x20this\x20document'}),_0x40ffe6[_0x25087a(0x221)](_0x5146f0[_0x25087a(0x213)],{'onClick':()=>_0xf02bae[_0x25087a(0x1f0)](),'children':_0x25087a(0x18d)})]});}function _0xe47d35(_0x4cfea6){var _0x21a28d=_0x2c2793;const {coordinator:_0x4752c4}=_0x4cfea6;return _0x40ffe6[_0x21a28d(0x1d9)](_0x40ffe6[_0x21a28d(0x1db)],{'children':[_0x40ffe6['jsx']('div',{'className':_0x21a28d(0x181),'children':_0x21a28d(0x173)}),_0x40ffe6[_0x21a28d(0x221)](_0x5146f0[_0x21a28d(0x213)],{'onClick':()=>_0x4752c4['stopFollowing'](),'children':_0x21a28d(0x1b1)})]});}function _0x33c3aa(_0x2de73a){var _0x4150a0=_0x2c2793;const {coordinator:_0x41e509}=_0x2de73a;return _0x40ffe6['jsxs'](_0x40ffe6[_0x4150a0(0x1db)],{'children':[_0x40ffe6[_0x4150a0(0x221)](_0x4150a0(0x17b),{'className':_0x4150a0(0x181),'children':_0x4150a0(0x232)}),_0x40ffe6[_0x4150a0(0x221)](_0x5146f0[_0x4150a0(0x213)],{'variant':'text','onClick':()=>_0x41e509[_0x4150a0(0x230)](),'children':_0x4150a0(0x1a7)})]});}function _0x1d339b(_0x222bc0){var _0x75f8c8=_0x2c2793;const {coordinator:_0x11e6c3}=_0x222bc0;return _0x40ffe6[_0x75f8c8(0x1d9)](_0x40ffe6[_0x75f8c8(0x1db)],{'children':[_0x40ffe6[_0x75f8c8(0x221)]('div',{'className':_0x75f8c8(0x181),'children':_0x75f8c8(0x1c5)}),_0x40ffe6['jsx'](_0x5146f0[_0x75f8c8(0x213)],{'variant':'default','onClick':()=>_0x11e6c3[_0x75f8c8(0x21c)](),'children':'Stop\x20presenting'})]});}function _0x2602af(){var _0x32dcd9=_0x2c2793;return _0x40ffe6[_0x32dcd9(0x221)](_0x40ffe6[_0x32dcd9(0x1db)],{'children':_0x32dcd9(0x1a0)});}var _0x5aa230=Object[_0x2c2793(0x217)],_0x55be43=(_0x2ea555,_0x229a53,_0x1a87b2,_0x452041)=>{for(var _0x1ab57c=_0x452041>0x1?void 0x0:_0x452041?_0x5aa230(_0x229a53,_0x1a87b2):_0x229a53,_0x188007=_0x2ea555['length']-0x1,_0x38a135;_0x188007>=0x0;_0x188007--)(_0x38a135=_0x2ea555[_0x188007])&&(_0x1ab57c=_0x38a135(_0x1ab57c)||_0x1ab57c);return _0x1ab57c;},_0x4749f0=(_0x44cd9f,_0x408ce2)=>(_0x286e42,_0x280e14)=>_0x408ce2(_0x286e42,_0x280e14,_0x44cd9f);_0x32a878[_0x2c2793(0x1c0)]=class extends _0x2c8af3[_0x2c2793(0x19c)]{constructor(_0x58d333,_0x397945){var _0x45d5e1=_0x2c2793;super(),this[_0x45d5e1(0x1f8)]=_0x58d333,this[_0x45d5e1(0x20a)]=_0x397945,this[_0x45d5e1(0x1f9)]();}['_mountLiveShare'](){var _0x256bbe=_0x2c2793;this['disposeWithMe'](this['_uiPartsService'][_0x256bbe(0x20b)](_0x4d4b38[_0x256bbe(0x179)]['HEADER_MENU'],()=>_0x4d4b38[_0x256bbe(0x226)](_0x37e2be,this[_0x256bbe(0x1f8)])));}},_0x32a878[_0x2c2793(0x1c0)]=_0x55be43([_0x4749f0(0x0,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3['Injector'])),_0x4749f0(0x1,_0x4d4b38[_0x2c2793(0x191)])],_0x32a878[_0x2c2793(0x1c0)]);const _0xca509e=_0x2c2793(0x224),_0xd1f8cb={};var _0x3537e4=Object['getOwnPropertyDescriptor'],_0x229cfc=(_0x41e0ef,_0x238a83,_0x51d9b9,_0x3217ad)=>{var _0x54172d=_0x2c2793;for(var _0x14f191=_0x3217ad>0x1?void 0x0:_0x3217ad?_0x3537e4(_0x238a83,_0x51d9b9):_0x238a83,_0x43d9b3=_0x41e0ef[_0x54172d(0x17e)]-0x1,_0x485275;_0x43d9b3>=0x0;_0x43d9b3--)(_0x485275=_0x41e0ef[_0x43d9b3])&&(_0x14f191=_0x485275(_0x14f191)||_0x14f191);return _0x14f191;},_0x1c26b8=(_0x26258d,_0x58def9)=>(_0x432941,_0x3cc716)=>_0x58def9(_0x432941,_0x3cc716,_0x26258d);let _0x6ad54a=class extends _0x2c8af3[_0x2c2793(0x19c)]{constructor(_0x56f8fa){var _0x3d9cbe=_0x2c2793;super(),this['_liveShareService']=_0x56f8fa,this[_0x3d9cbe(0x16a)]();}[_0x2c2793(0x16a)](){var _0x38fb3b=_0x2c2793;[_0x333091[_0x38fb3b(0x162)]['id'],_0x333091[_0x38fb3b(0x175)]['id'],_0x1da1f3['SetWorksheetActiveOperation']['id']][_0x38fb3b(0x256)](_0x5f068e=>{var _0xb6879b=_0x38fb3b;this[_0xb6879b(0x1d7)](this[_0xb6879b(0x1a6)][_0xb6879b(0x180)](_0x5f068e));});}};_0x6ad54a=_0x229cfc([_0x1c26b8(0x0,_0x2c8af3[_0x2c2793(0x1a3)](_0x5d6275))],_0x6ad54a);var _0x1acc7e=Object[_0x2c2793(0x23c)],_0x1ed973=Object[_0x2c2793(0x217)],_0x1f13ad=(_0x3f6bf7,_0x47fab4,_0x252fc5)=>_0x47fab4 in _0x3f6bf7?_0x1acc7e(_0x3f6bf7,_0x47fab4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x252fc5}):_0x3f6bf7[_0x47fab4]=_0x252fc5,_0x476756=(_0x553e20,_0xae586,_0x1096fd,_0x563c14)=>{var _0x13d2c5=_0x2c2793;for(var _0x1c5a46=_0x563c14>0x1?void 0x0:_0x563c14?_0x1ed973(_0xae586,_0x1096fd):_0xae586,_0x33e0d6=_0x553e20[_0x13d2c5(0x17e)]-0x1,_0x3a6042;_0x33e0d6>=0x0;_0x33e0d6--)(_0x3a6042=_0x553e20[_0x33e0d6])&&(_0x1c5a46=_0x3a6042(_0x1c5a46)||_0x1c5a46);return _0x1c5a46;},_0x2a6d6a=(_0x30820e,_0x425147)=>(_0x49fea1,_0x21cae1)=>_0x425147(_0x49fea1,_0x21cae1,_0x30820e),_0x43ebd5=(_0x46aa04,_0x4f030b,_0x377098)=>_0x1f13ad(_0x46aa04,typeof _0x4f030b!=_0x2c2793(0x177)?_0x4f030b+'':_0x4f030b,_0x377098);const _0x570e7c=_0x2c2793(0x1f6);_0x32a878[_0x2c2793(0x205)]=class extends _0x2c8af3[_0x2c2793(0x189)]{constructor(_0x2e2ffc=_0xd1f8cb,_0x1ccefd,_0x1eda2c){var _0x275508=_0x2c2793;super(),this['_config']=_0x2e2ffc,this['_injector']=_0x1ccefd,this[_0x275508(0x1ab)]=_0x1eda2c;const {..._0x28e074}=_0x2c8af3[_0x275508(0x192)]({},_0xd1f8cb,this['_config']);this[_0x275508(0x1ab)][_0x275508(0x1fe)](_0xca509e,_0x28e074);}['onStarting'](){var _0x280b84=_0x2c2793;_0x2c8af3[_0x280b84(0x1e7)](this[_0x280b84(0x1f8)],_0x2c8af3[_0x280b84(0x194)]([[_0x5d6275],[_0x32a878[_0x280b84(0x239)]],[_0x6ad54a],[_0x32a878['DesktopLiveShareController']]],this['_config'][_0x280b84(0x1b0)])),_0x2c8af3[_0x280b84(0x18a)](this[_0x280b84(0x1f8)],[[_0x6ad54a]]);}[_0x2c2793(0x202)](){var _0x191e45=_0x2c2793;_0x2c8af3['touchDependencies'](this[_0x191e45(0x1f8)],[[_0x32a878['DesktopLiveShareController']]]);}},_0x43ebd5(_0x32a878['UniverLiveSharePlugin'],_0x2c2793(0x1f3),_0x2c8af3[_0x2c2793(0x254)][_0x2c2793(0x247)]),_0x43ebd5(_0x32a878[_0x2c2793(0x205)],_0x2c2793(0x1c4),_0x570e7c),_0x32a878[_0x2c2793(0x205)]=_0x476756([_0x2c8af3[_0x2c2793(0x220)](_0x127d70[_0x2c2793(0x1fb)]),_0x2a6d6a(0x1,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3[_0x2c2793(0x1a8)])),_0x2a6d6a(0x2,_0x2c8af3[_0x2c2793(0x24f)])],_0x32a878[_0x2c2793(0x205)]),_0x32a878[_0x2c2793(0x235)]=_0x37e2be,_0x32a878[_0x2c2793(0x1f4)]=_0x5d6275,_0x32a878[_0x2c2793(0x1e6)]=_0xaeaf5,Object[_0x2c2793(0x23c)](_0x32a878,Symbol['toStringTag'],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9-nightly.202509260614",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.4.
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.10.
|
|
56
|
-
"@univerjs/
|
|
49
|
+
"@univerjs/icons": "^0.4.8",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.9-nightly.202509260614",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.9-nightly.202509260614",
|
|
52
|
+
"@univerjs/core": "0.10.9-nightly.202509260614",
|
|
53
|
+
"@univerjs/design": "0.10.9-nightly.202509260614",
|
|
54
|
+
"@univerjs/ui": "0.10.9-nightly.202509260614",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.9-nightly.202509260614",
|
|
56
|
+
"@univerjs/sheets": "0.10.9-nightly.202509260614"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.9.2",
|
|
64
64
|
"vite": "^7.1.3",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.10.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.9",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|