@univerjs-pro/live-share 0.9.2-nightly.202507121606 → 0.9.2-nightly.202507141607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x2edea7=_0x48ed;(function(_0x35cd07,_0x37d6d6){var _0x5f007b=_0x48ed,_0x14e721=_0x35cd07();while(!![]){try{var _0x236cb9=parseInt(_0x5f007b(0x241))/0x1+-parseInt(_0x5f007b(0x1d7))/0x2+-parseInt(_0x5f007b(0x25f))/0x3+parseInt(_0x5f007b(0x2a1))/0x4*(parseInt(_0x5f007b(0x1e0))/0x5)+-parseInt(_0x5f007b(0x277))/0x6+-parseInt(_0x5f007b(0x26c))/0x7*(parseInt(_0x5f007b(0x24a))/0x8)+-parseInt(_0x5f007b(0x204))/0x9*(-parseInt(_0x5f007b(0x1e4))/0xa);if(_0x236cb9===_0x37d6d6)break;else _0x14e721['push'](_0x14e721['shift']());}catch(_0x1594d0){_0x14e721['push'](_0x14e721['shift']());}}}(_0x4a04,0xa196e));var U=Object[_0x2edea7(0x219)],F=(_0x517e9f,_0x1faf0b,_0x1100a6)=>_0x1faf0b in _0x517e9f?U(_0x517e9f,_0x1faf0b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1100a6}):_0x517e9f[_0x1faf0b]=_0x1100a6,v=(_0x31191b,_0x557d43,_0x18dc61)=>F(_0x31191b,typeof _0x557d43!=_0x2edea7(0x216)?_0x557d43+'':_0x557d43,_0x18dc61);Object[_0x2edea7(0x219)](exports,Symbol[_0x2edea7(0x213)],{'value':_0x2edea7(0x1f2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x2edea7(0x20e),x={};class O extends o[_0x2edea7(0x239)]{constructor(){var _0x41c328=_0x2edea7;super(...arguments),v(this,_0x41c328(0x254),new Set()),v(this,'_reporters',new Set());}[_0x2edea7(0x21b)](_0x1b1cf){var _0x325644=_0x2edea7;return this['_sharedOperations'][_0x325644(0x272)](_0x1b1cf),o['toDisposable'](()=>this[_0x325644(0x254)][_0x325644(0x24c)](_0x1b1cf));}[_0x2edea7(0x1eb)](_0x4e0381){var _0x15f998=_0x2edea7;return this[_0x15f998(0x21a)][_0x15f998(0x272)](_0x4e0381),o[_0x15f998(0x290)](()=>this[_0x15f998(0x21a)][_0x15f998(0x24c)](_0x4e0381));}[_0x2edea7(0x281)](_0x290810){var _0x59c2e7=_0x2edea7;return this['_sharedOperations'][_0x59c2e7(0x2ad)](_0x290810);}[_0x2edea7(0x210)](_0x5d1f71){var _0x2d63ed=_0x2edea7;return Array[_0x2d63ed(0x234)](this['_reporters'])['map'](_0x5d9900=>_0x5d9900(_0x5d1f71));}}var H=Object[_0x2edea7(0x24b)],V=(_0x32bff1,_0x30c453,_0x330851,_0x20cb70)=>{var _0x425bb2=_0x2edea7;for(var _0x512ed1=_0x20cb70>0x1?void 0x0:_0x20cb70?H(_0x30c453,_0x330851):_0x30c453,_0x1137e2=_0x32bff1[_0x425bb2(0x273)]-0x1,_0x44815c;_0x1137e2>=0x0;_0x1137e2--)(_0x44815c=_0x32bff1[_0x1137e2])&&(_0x512ed1=_0x44815c(_0x512ed1)||_0x512ed1);return _0x512ed1;},k=(_0x2161a3,_0x599d4e)=>(_0x44676f,_0x6fbed0)=>_0x599d4e(_0x44676f,_0x6fbed0,_0x2161a3);let E=class extends o[_0x2edea7(0x239)]{constructor(_0x3020ae){var _0x94f208=_0x2edea7;super(),this[_0x94f208(0x26a)]=_0x3020ae,this[_0x94f208(0x261)]();}[_0x2edea7(0x261)](){var _0x37dee6=_0x2edea7;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C[_0x37dee6(0x247)]['id']][_0x37dee6(0x23a)](_0x455b9e=>{var _0x291211=_0x37dee6;this[_0x291211(0x24d)](this[_0x291211(0x26a)][_0x291211(0x21b)](_0x455b9e));});}};E=V([k(0x0,o[_0x2edea7(0x215)](O))],E);var u=function(){var _0xc2cf3a=_0x2edea7;return u=Object[_0xc2cf3a(0x1db)]||function(_0x52aa20){var _0x43ac1a=_0xc2cf3a;for(var _0x2a1a9b,_0x2c7fe2=0x1,_0x5d165f=arguments[_0x43ac1a(0x273)];_0x2c7fe2<_0x5d165f;_0x2c7fe2++){_0x2a1a9b=arguments[_0x2c7fe2];for(var _0x9625e2 in _0x2a1a9b)Object[_0x43ac1a(0x253)][_0x43ac1a(0x27f)][_0x43ac1a(0x21e)](_0x2a1a9b,_0x9625e2)&&(_0x52aa20[_0x9625e2]=_0x2a1a9b[_0x9625e2]);}return _0x52aa20;},u[_0xc2cf3a(0x1da)](this,arguments);},M=function(_0x243fdd,_0x103773){var _0x48d034=_0x2edea7,_0x3c2d5c={};for(var _0x4d1f23 in _0x243fdd)Object[_0x48d034(0x253)]['hasOwnProperty']['call'](_0x243fdd,_0x4d1f23)&&_0x103773[_0x48d034(0x25b)](_0x4d1f23)<0x0&&(_0x3c2d5c[_0x4d1f23]=_0x243fdd[_0x4d1f23]);if(_0x243fdd!=null&&typeof Object[_0x48d034(0x296)]==_0x48d034(0x258)){for(var _0x282cd9=0x0,_0x4d1f23=Object[_0x48d034(0x296)](_0x243fdd);_0x282cd9<_0x4d1f23[_0x48d034(0x273)];_0x282cd9++)_0x103773[_0x48d034(0x25b)](_0x4d1f23[_0x282cd9])<0x0&&Object[_0x48d034(0x253)][_0x48d034(0x2ac)][_0x48d034(0x21e)](_0x243fdd,_0x4d1f23[_0x282cd9])&&(_0x3c2d5c[_0x4d1f23[_0x282cd9]]=_0x243fdd[_0x4d1f23[_0x282cd9]]);}return _0x3c2d5c;},j=f[_0x2edea7(0x2ab)](function(_0x442f66,_0x10792f){var _0x58f9cd=_0x2edea7,_0x7e99b9=_0x442f66[_0x58f9cd(0x270)],_0xfd99c8=_0x442f66['id'],_0x4fbbac=_0x442f66[_0x58f9cd(0x29e)],_0x3bd9fd=_0x442f66[_0x58f9cd(0x27b)],_0x28d683=M(_0x442f66,[_0x58f9cd(0x270),'id',_0x58f9cd(0x29e),'extend']),_0x3bcb2f=_0x58f9cd(0x275)['concat'](_0xfd99c8,'\x20')[_0x58f9cd(0x282)](_0x4fbbac||'')[_0x58f9cd(0x1dc)](),_0x5a9811=f['useRef']('_'[_0x58f9cd(0x282)](G()));return y(_0x7e99b9,''[_0x58f9cd(0x282)](_0xfd99c8),{'defIds':_0x7e99b9['defIds'],'idSuffix':_0x5a9811[_0x58f9cd(0x22d)]},u({'ref':_0x10792f,'className':_0x3bcb2f},_0x28d683),_0x3bd9fd);});function y(_0x5e5f7b,_0x53b5fb,_0xd72d82,_0x58c281,_0x107830){var _0x48d0b6=_0x2edea7;return f[_0x48d0b6(0x1d9)](_0x5e5f7b[_0x48d0b6(0x221)],u(u({'key':_0x53b5fb},q(_0x5e5f7b,_0xd72d82,_0x107830)),_0x58c281),(W(_0x5e5f7b,_0xd72d82)[_0x48d0b6(0x2af)]||[])[_0x48d0b6(0x218)](function(_0x1135d3,_0x19b5c2){var _0x40bdc3=_0x48d0b6;return y(_0x1135d3,''[_0x40bdc3(0x282)](_0x53b5fb,'-')[_0x40bdc3(0x282)](_0x5e5f7b['tag'],'-')[_0x40bdc3(0x282)](_0x19b5c2),_0xd72d82,void 0x0,_0x107830);}));}function q(_0xb801c2,_0x4d5860,_0x3f25a0){var _0x5a9bdd=_0x2edea7,_0x2b212a=u({},_0xb801c2[_0x5a9bdd(0x29a)]);_0x3f25a0!=null&&_0x3f25a0[_0x5a9bdd(0x1d6)]&&_0x2b212a[_0x5a9bdd(0x2a8)]===_0x5a9bdd(0x1d6)&&(_0x2b212a['fill']=_0x3f25a0[_0x5a9bdd(0x1d6)]),_0xb801c2[_0x5a9bdd(0x221)]===_0x5a9bdd(0x1e3)&&_0x2b212a['id']&&(_0x2b212a['id']=_0x2b212a['id']+_0x4d5860[_0x5a9bdd(0x233)]),Object[_0x5a9bdd(0x276)](_0x2b212a)[_0x5a9bdd(0x23a)](function(_0x5eefe2){var _0x1b8259=_0x5a9bdd,_0xd03530=_0x5eefe2[0x0],_0x25ce47=_0x5eefe2[0x1];_0xd03530===_0x1b8259(0x1e3)&&typeof _0x25ce47=='string'&&(_0x2b212a[_0xd03530]=_0x25ce47[_0x1b8259(0x29b)](/url\(#(.*)\)/,'url(#$1'[_0x1b8259(0x282)](_0x4d5860[_0x1b8259(0x233)],')')));});var _0x2b3cff=_0x4d5860['defIds'];return!_0x2b3cff||_0x2b3cff['length']===0x0||(_0xb801c2[_0x5a9bdd(0x221)]===_0x5a9bdd(0x293)&&_0x2b212a[_0x5a9bdd(0x242)]&&(_0x2b212a[_0x5a9bdd(0x242)]=_0x2b212a[_0x5a9bdd(0x242)]+_0x4d5860['idSuffix']),Object[_0x5a9bdd(0x276)](_0x2b212a)[_0x5a9bdd(0x23a)](function(_0x55c34f){var _0xcbe908=_0x5a9bdd,_0x2ddda9=_0x55c34f[0x0],_0xc63929=_0x55c34f[0x1];typeof _0xc63929==_0xcbe908(0x1fb)&&(_0x2b212a[_0x2ddda9]=_0xc63929[_0xcbe908(0x29b)](/url\(#(.*)\)/,'url(#$1'[_0xcbe908(0x282)](_0x4d5860['idSuffix'],')')));})),_0x2b212a;}function W(_0x341120,_0x47d2ae){var _0x44b707=_0x2edea7,_0x4c19e9,_0x1b8de3=_0x47d2ae[_0x44b707(0x2a4)];return!_0x1b8de3||_0x1b8de3[_0x44b707(0x273)]===0x0?_0x341120:_0x341120[_0x44b707(0x221)]==='defs'&&(!((_0x4c19e9=_0x341120[_0x44b707(0x2af)])===null||_0x4c19e9===void 0x0)&&_0x4c19e9[_0x44b707(0x273)])?u(u({},_0x341120),{'children':_0x341120['children'][_0x44b707(0x218)](function(_0x5790b7){var _0x49434d=_0x44b707;return typeof _0x5790b7[_0x49434d(0x29a)]['id']==_0x49434d(0x1fb)&&_0x1b8de3&&_0x1b8de3[_0x49434d(0x20a)](_0x5790b7[_0x49434d(0x29a)]['id'])?u(u({},_0x5790b7),{'attrs':u(u({},_0x5790b7[_0x49434d(0x29a)]),{'id':_0x5790b7[_0x49434d(0x29a)]['id']+_0x47d2ae[_0x49434d(0x233)]})}):_0x5790b7;})}):_0x341120;}function G(){var _0x16ffd6=_0x2edea7;return Math['random']()[_0x16ffd6(0x249)](0x24)[_0x16ffd6(0x265)](0x2,0x8);}j[_0x2edea7(0x267)]='UniverIcon';var B={'tag':_0x2edea7(0x21c),'attrs':{'xmlns':_0x2edea7(0x260),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2edea7(0x224),'height':'1em'},'children':[{'tag':_0x2edea7(0x263),'attrs':{'fill':_0x2edea7(0x22e),'d':_0x2edea7(0x228)}},{'tag':_0x2edea7(0x263),'attrs':{'fill':_0x2edea7(0x22e),'d':_0x2edea7(0x240),'fillRule':_0x2edea7(0x22c),'clipRule':_0x2edea7(0x22c)}}]},P=f['forwardRef'](function(_0x18ab0f,_0x4ca130){var _0x2e9347=_0x2edea7;return f[_0x2e9347(0x1d9)](j,Object[_0x2e9347(0x1db)]({},_0x18ab0f,{'id':_0x2e9347(0x229),'ref':_0x4ca130,'icon':B}));});function _0x48ed(_0x5cbfc8,_0x239a50){var _0x4a04a6=_0x4a04();return _0x48ed=function(_0x48ed2d,_0x19f5bf){_0x48ed2d=_0x48ed2d-0x1d1;var _0x362e6e=_0x4a04a6[_0x48ed2d];return _0x362e6e;},_0x48ed(_0x5cbfc8,_0x239a50);}P[_0x2edea7(0x267)]=_0x2edea7(0x23e);var Y=Object['getOwnPropertyDescriptor'],R=(_0x487923,_0x12b0e5,_0x3b949d,_0x48ab34)=>{var _0x594615=_0x2edea7;for(var _0x1d4a01=_0x48ab34>0x1?void 0x0:_0x48ab34?Y(_0x12b0e5,_0x3b949d):_0x12b0e5,_0x2e26bb=_0x487923[_0x594615(0x273)]-0x1,_0x9db1e3;_0x2e26bb>=0x0;_0x2e26bb--)(_0x9db1e3=_0x487923[_0x2e26bb])&&(_0x1d4a01=_0x9db1e3(_0x1d4a01)||_0x1d4a01);return _0x1d4a01;},S=(_0x4b8034,_0x5c65ad)=>(_0x17c804,_0x5be7ea)=>_0x5c65ad(_0x17c804,_0x5be7ea,_0x4b8034);exports['LiveShareController']=class extends o[_0x2edea7(0x207)]{constructor(_0x31580e,_0x2691e6,_0x5d5f01){var _0xecf10c=_0x2edea7;super(),v(this,_0xecf10c(0x1f4),new Map()),(this[_0xecf10c(0x28e)]=_0x31580e,this['_injector']=_0x2691e6,this[_0xecf10c(0x269)]=_0x5d5f01,this[_0xecf10c(0x261)]());}async['getLiveShareCoordinator'](_0x31ed63){var _0x2edbf3=_0x2edea7;return this['_entities'][_0x2edbf3(0x2ad)](_0x31ed63)||await this[_0x2edbf3(0x1de)](_0x31ed63),this['_entities'][_0x2edbf3(0x201)](_0x31ed63);}[_0x2edea7(0x261)](){var _0x463a03=_0x2edea7;this['_univerInstanceService'][_0x463a03(0x1d3)](o[_0x463a03(0x2a5)][_0x463a03(0x255)])[_0x463a03(0x1d1)](b['takeUntil'](this[_0x463a03(0x214)]))[_0x463a03(0x1f0)](async _0x3520da=>{var _0x50f6eb=_0x463a03;const _0x1ed859=_0x3520da[_0x50f6eb(0x28a)]();this[_0x50f6eb(0x1f4)][_0x50f6eb(0x2ad)](_0x1ed859)||this[_0x50f6eb(0x1de)](_0x1ed859);}),this[_0x463a03(0x28e)]['getTypeOfUnitDisposed$'](o[_0x463a03(0x2a5)][_0x463a03(0x255)])['pipe'](b[_0x463a03(0x22f)](this[_0x463a03(0x214)]))[_0x463a03(0x1f0)](_0x5e5607=>{var _0x2a0f15=_0x463a03;const _0x264a3a=_0x5e5607[_0x2a0f15(0x28a)](),_0x2d8729=this[_0x2a0f15(0x1f4)][_0x2a0f15(0x201)](_0x264a3a);_0x2d8729==null||_0x2d8729['dispose']();});}async[_0x2edea7(0x1de)](_0x458796){var _0x22c478=_0x2edea7;const _0x1c2814=await this[_0x22c478(0x269)][_0x22c478(0x223)](_0x458796),_0x40cca6=this[_0x22c478(0x206)][_0x22c478(0x24e)](exports[_0x22c478(0x2b0)],_0x458796,_0x1c2814);return _0x40cca6[_0x22c478(0x262)](),this[_0x22c478(0x1f4)]['set'](_0x458796,_0x40cca6),_0x40cca6;}},exports[_0x2edea7(0x284)]=R([S(0x0,o[_0x2edea7(0x208)]),S(0x1,o[_0x2edea7(0x215)](o[_0x2edea7(0x264)])),S(0x2,o[_0x2edea7(0x215)](m[_0x2edea7(0x22b)]))],exports['LiveShareController']);var h=(_0x3cd28b=>(_0x3cd28b[_0x2edea7(0x1ed)]=_0x2edea7(0x28c),_0x3cd28b[_0x2edea7(0x289)]=_0x2edea7(0x252),_0x3cd28b[_0x2edea7(0x1f9)]=_0x2edea7(0x28b),_0x3cd28b['NOT_FOLLOWING']='not-following',_0x3cd28b[_0x2edea7(0x1d8)]='presenting',_0x3cd28b))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x2edea7(0x2b0)]=class extends o[_0x2edea7(0x207)]{constructor(_0x51ac3b,_0x5d03ef,_0x384d12,_0x25880b,_0x5bb595){var _0x3ef807=_0x2edea7;super(),v(this,_0x3ef807(0x1d5),new D[(_0x3ef807(0x2b1))]('idle')),v(this,'status$',this[_0x3ef807(0x1d5)][_0x3ef807(0x28f)]()),v(this,_0x3ef807(0x261),!0x1),v(this,_0x3ef807(0x259),null),v(this,_0x3ef807(0x1d4),null),(this['_unitID']=_0x51ac3b,this[_0x3ef807(0x1e5)]=_0x5d03ef,this['_configService']=_0x384d12,this['_liveShareService']=_0x25880b,this[_0x3ef807(0x222)]=_0x5bb595);}get['_status'](){var _0x4ae8cf=_0x2edea7;return this[_0x4ae8cf(0x1d5)]['getValue']();}[_0x2edea7(0x217)](){var _0x2dbdc6=_0x2edea7,_0x4bfd32;(_0x4bfd32=this[_0x2dbdc6(0x259)])==null||_0x4bfd32[_0x2dbdc6(0x217)](),this['_status$'][_0x2dbdc6(0x295)](_0x2dbdc6(0x252)),this['_status$'][_0x2dbdc6(0x1df)]();}['init'](){var _0xbf87e1=_0x2edea7;this[_0xbf87e1(0x261)]||(this['_init']=!0x0,this[_0xbf87e1(0x1e5)][_0xbf87e1(0x1f5)][_0xbf87e1(0x1d1)](b['takeUntil'](this['dispose$']))['subscribe'](_0x1c91ba=>{var _0xafb2fe=_0xbf87e1;switch(_0x1c91ba){case m['SessionStatus'][_0xafb2fe(0x1ed)]:this[_0xafb2fe(0x25d)]();break;case m[_0xafb2fe(0x1f8)][_0xafb2fe(0x211)]:this[_0xafb2fe(0x27d)]();break;}}),this[_0xbf87e1(0x1e5)][_0xbf87e1(0x232)][_0xbf87e1(0x1d1)](b['takeUntil'](this['dispose$']))[_0xbf87e1(0x1f0)](_0x1e82d0=>{var _0xf75aaf=_0xbf87e1;const {eventID:_0xb0b01a}=_0x1e82d0;switch(_0xb0b01a){case _[_0xf75aaf(0x280)][_0xf75aaf(0x27a)]:this[_0xf75aaf(0x1fe)](_0x1e82d0);break;case _[_0xf75aaf(0x280)][_0xf75aaf(0x292)]:this[_0xf75aaf(0x23f)](_0x1e82d0);break;case _['CollaborationEvent'][_0xf75aaf(0x298)]:this[_0xf75aaf(0x23b)]();break;case _[_0xf75aaf(0x280)][_0xf75aaf(0x294)]:this[_0xf75aaf(0x235)](_0x1e82d0);break;}}));}['tryStartPresenting'](){var _0x58e805=_0x2edea7;this[_0x58e805(0x1e5)][_0x58e805(0x246)]({'eventID':_[_0x58e805(0x280)][_0x58e805(0x26e)],'data':{'unitID':this[_0x58e805(0x237)],'userID':this['_collabSession'][_0x58e805(0x1e8)]()}},this[_0x58e805(0x237)]);}[_0x2edea7(0x2ae)](){var _0x3704c7=_0x2edea7;this[_0x3704c7(0x2a3)]===_0x3704c7(0x209)&&(this[_0x3704c7(0x1d5)][_0x3704c7(0x295)](_0x3704c7(0x252)),this[_0x3704c7(0x1e5)][_0x3704c7(0x246)]({'eventID':_[_0x3704c7(0x280)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3704c7(0x237)]}},this['_unitID']));}[_0x2edea7(0x1e6)](){var _0x1bee48=_0x2edea7;this[_0x1bee48(0x2a3)]==='not-following'&&(this[_0x1bee48(0x1d5)][_0x1bee48(0x295)]('following'),this[_0x1bee48(0x230)]());}[_0x2edea7(0x283)](){var _0xd8773e=_0x2edea7;this['_status']==='following'&&this[_0xd8773e(0x1e1)]();}['_handleNewHost'](_0x35c274){var _0x40421e=_0x2edea7;const {presenter:_0x393eb6}=_0x35c274['data'],_0x16014f=this[_0x40421e(0x1e5)][_0x40421e(0x1e8)]();this[_0x40421e(0x1d4)]=_0x393eb6,_0x393eb6===_0x16014f?(this[_0x40421e(0x1e1)](),this['_startPresenting']()):this[_0x40421e(0x2a3)]!==_0x40421e(0x200)&&(this[_0x40421e(0x29f)](),this[_0x40421e(0x230)]());}[_0x2edea7(0x212)](){var _0x4bf9e9=_0x2edea7;const _0x387e23={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4bf9e9(0x1e5)][_0x4bf9e9(0x246)](_0x387e23,this[_0x4bf9e9(0x237)]);}[_0x2edea7(0x23b)](){var _0x198ccb=_0x2edea7;this['_presenter']=null,this[_0x198ccb(0x2a3)]!==_0x198ccb(0x209)&&this['_beIdle']();}[_0x2edea7(0x235)](_0x56f4a1){var _0x18d152=_0x2edea7;if(this[_0x18d152(0x2a3)]===_0x18d152(0x28b)&&this['_presenter']===_0x56f4a1[_0x18d152(0x26d)][_0x18d152(0x1ee)]){const _0x2b64e0=_[_0x18d152(0x202)](_0x56f4a1[_0x18d152(0x26d)])[_0x18d152(0x1f7)][_0x18d152(0x1ff)]()[_0x18d152(0x1fd)](_0x4c777a=>_0x4c777a['id']===C['InsertSheetMutation']['id']);if(_0x2b64e0){const _0x218529=_0x2b64e0['params']['unitId'],_0x3338ab=_0x2b64e0[_0x18d152(0x285)][_0x18d152(0x243)]['id'];setTimeout(()=>{var _0x4e77e9=_0x18d152;this[_0x4e77e9(0x222)][_0x4e77e9(0x28d)](C[_0x4e77e9(0x247)]['id'],{'unitId':_0x218529,'subUnitId':_0x3338ab},{'fromCollab':!0x0});});}}}[_0x2edea7(0x238)](){var _0x16d64b=_0x2edea7;this[_0x16d64b(0x1d5)][_0x16d64b(0x295)](_0x16d64b(0x209));const _0x130699=new Map(),_0x187ce0=this[_0x16d64b(0x259)]=new o[(_0x16d64b(0x20c))]();_0x187ce0[_0x16d64b(0x272)](o['toDisposable'](()=>{var _0x349b77=_0x16d64b;_0x130699[_0x349b77(0x23a)](_0x8e16b1=>_0x8e16b1[_0x349b77(0x1df)]()),_0x130699[_0x349b77(0x26f)]();})),_0x187ce0[_0x16d64b(0x272)](this[_0x16d64b(0x222)][_0x16d64b(0x236)](_0x51d218=>{var _0x1d16ad=_0x16d64b,_0x5c9373;if(_0x51d218[_0x1d16ad(0x205)]!==o[_0x1d16ad(0x288)][_0x1d16ad(0x1dd)]||!this[_0x1d16ad(0x26a)][_0x1d16ad(0x281)](_0x51d218['id']))return;const {id:_0x3aab7d}=_0x51d218;let _0x8a24af;_0x130699[_0x1d16ad(0x2ad)](_0x3aab7d)?_0x8a24af=_0x130699[_0x1d16ad(0x201)](_0x3aab7d):(_0x8a24af=new D[(_0x1d16ad(0x279))](),_0x130699[_0x1d16ad(0x297)](_0x3aab7d,_0x8a24af),_0x8a24af[_0x1d16ad(0x1d1)](b[_0x1d16ad(0x271)]((_0x5c9373=this['_configService']['getConfig'](Z))!=null?_0x5c9373:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d16ad(0x1f0)](_0x5866ef=>{var _0x2206fb=_0x1d16ad;this[_0x2206fb(0x1e5)][_0x2206fb(0x246)]({'eventID':_[_0x2206fb(0x280)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2206fb(0x237)],'operations':{[_0x5866ef['id']]:{'id':_0x5866ef['id'],'params':JSON['stringify'](_0x5866ef['params'])}}}},this[_0x2206fb(0x237)]);})),_0x8a24af[_0x1d16ad(0x295)](_0x51d218);})),this['_liveShareService'][_0x16d64b(0x210)](this['_unitID'])['forEach'](_0xfdb839=>this[_0x16d64b(0x1e5)]['send']({'eventID':_[_0x16d64b(0x280)][_0x16d64b(0x292)],'data':{'unitID':this[_0x16d64b(0x237)],'operations':{[_0xfdb839['id']]:{'id':_0xfdb839['id'],'params':JSON['stringify'](_0xfdb839[_0x16d64b(0x285)])}}}},this['_unitID']));}[_0x2edea7(0x29f)](){var _0x101640=_0x2edea7,_0x30afd2;this[_0x101640(0x1d5)][_0x101640(0x295)](_0x101640(0x252)),(_0x30afd2=this[_0x101640(0x259)])==null||_0x30afd2[_0x101640(0x217)](),this[_0x101640(0x259)]=null;}[_0x2edea7(0x230)](){var _0xed8620=_0x2edea7,_0x368b27;(_0x368b27=this[_0xed8620(0x259)])==null||_0x368b27[_0xed8620(0x217)](),this[_0xed8620(0x1d5)][_0xed8620(0x295)](_0xed8620(0x28b));}[_0x2edea7(0x25a)](){var _0xd592aa=_0x2edea7,_0x5861bc;this[_0xd592aa(0x1d5)][_0xd592aa(0x295)](_0xd592aa(0x252)),(_0x5861bc=this[_0xd592aa(0x259)])==null||_0x5861bc[_0xd592aa(0x217)](),this[_0xd592aa(0x259)]=null;}[_0x2edea7(0x1e1)](){var _0x2912c8=_0x2edea7,_0x12eb4b;this['_status$']['next'](_0x2912c8(0x200)),(_0x12eb4b=this[_0x2912c8(0x259)])==null||_0x12eb4b[_0x2912c8(0x217)]();}[_0x2edea7(0x23f)](_0x410d03){var _0x33c531=_0x2edea7;if([_0x33c531(0x209),_0x33c531(0x200),_0x33c531(0x28c)][_0x33c531(0x20a)](this[_0x33c531(0x2a3)])||!_0x410d03[_0x33c531(0x26d)][_0x33c531(0x2a2)]||_0x410d03['data']['presenter']===this[_0x33c531(0x1e5)][_0x33c531(0x1e8)]())return;this[_0x33c531(0x2a3)]===_0x33c531(0x252)&&this['_startFollowing']();const _0x2ddd1c=_0x410d03[_0x33c531(0x26d)][_0x33c531(0x2a7)];Object[_0x33c531(0x1d2)](_0x2ddd1c)['forEach'](_0x2b5e6b=>{var _0x4ab986=_0x33c531;this[_0x4ab986(0x222)][_0x4ab986(0x28d)](_0x2b5e6b['id'],_0x2b5e6b[_0x4ab986(0x285)]?JSON['parse'](_0x2b5e6b['params']):null,{'fromCollab':!0x0});});}[_0x2edea7(0x25d)](){var _0x238330=_0x2edea7,_0x57283c;this['_status$'][_0x238330(0x295)](_0x238330(0x28c)),(_0x57283c=this[_0x238330(0x259)])==null||_0x57283c[_0x238330(0x217)]();}[_0x2edea7(0x27d)](){var _0x5d4fc8=_0x2edea7;this['_status$'][_0x5d4fc8(0x295)](_0x5d4fc8(0x252)),this[_0x5d4fc8(0x212)]();}},exports[_0x2edea7(0x2b0)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x2edea7(0x215)](O)),S(0x4,o[_0x2edea7(0x286)])],exports[_0x2edea7(0x2b0)]);function A(){var _0x23f00e=_0x2edea7;const _0x2a36e1=p[_0x23f00e(0x2aa)](exports[_0x23f00e(0x284)]),_0x54892d=p[_0x23f00e(0x2aa)](o[_0x23f00e(0x208)]),_0x4edd92=p[_0x23f00e(0x23c)](()=>_0x54892d[_0x23f00e(0x278)](o[_0x23f00e(0x2a5)][_0x23f00e(0x255)]),void 0x0,!0x1,[]),[_0x199c6a,_0x1e0540]=f[_0x23f00e(0x1fa)](null),[_0x505272,_0x258e4d]=f[_0x23f00e(0x1fa)](h[_0x23f00e(0x289)]),_0x38f518=f[_0x23f00e(0x220)](null);return f[_0x23f00e(0x226)](()=>(_0x4edd92&&_0x2a36e1[_0x23f00e(0x299)](_0x4edd92['getUnitId']())['then'](_0x5e4eac=>{var _0x31b1ad=_0x23f00e;_0x1e0540(_0x5e4eac),_0x38f518['current']=_0x5e4eac[_0x31b1ad(0x274)][_0x31b1ad(0x1f0)](_0xb2c439=>{_0x258e4d(_0xb2c439);});}),()=>{var _0x5c26ca=_0x23f00e,_0x22c4a9;(_0x22c4a9=_0x38f518[_0x5c26ca(0x22d)])==null||_0x22c4a9[_0x5c26ca(0x248)](),_0x38f518['current']=null;}),[_0x4edd92,_0x2a36e1]),_0x199c6a?l[_0x23f00e(0x2a6)](g[_0x23f00e(0x23d)],{'align':'end','disabled':_0x505272===h['OFFLINE'],'className':_0x23f00e(0x1fc),'overlay':l[_0x23f00e(0x2a6)](K,{'status':_0x505272,'coordinator':_0x199c6a}),'children':l[_0x23f00e(0x2a6)](_0x23f00e(0x251),{'className':g[_0x23f00e(0x21f)](_0x23f00e(0x231),{'univer-cursor-not-allowed':_0x505272===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x505272!==h[_0x23f00e(0x1ed)]}),'type':_0x23f00e(0x251),'children':l[_0x23f00e(0x2a6)](P,{'className':_0x23f00e(0x227)})})}):null;}function K(_0x194ce5){var _0x51eac3=_0x2edea7;const {status:_0x5798df,coordinator:_0x2a3d81}=_0x194ce5;switch(_0x5798df){case h[_0x51eac3(0x289)]:return l[_0x51eac3(0x2a6)](z,{'coordinator':_0x2a3d81});case h[_0x51eac3(0x1f9)]:return l[_0x51eac3(0x2a6)](Q,{'coordinator':_0x2a3d81});case h[_0x51eac3(0x20b)]:return l[_0x51eac3(0x2a6)](X,{'coordinator':_0x2a3d81});case h[_0x51eac3(0x1ed)]:return l[_0x51eac3(0x2a6)](te,{});case h[_0x51eac3(0x1d8)]:return l['jsx'](ee,{'coordinator':_0x2a3d81});default:return null;}}function z(_0x10cf4a){var _0x276115=_0x2edea7;const {coordinator:_0x1cbc53}=_0x10cf4a;return l[_0x276115(0x26b)](l['Fragment'],{'children':[l[_0x276115(0x2a6)](_0x276115(0x1f3),{'className':_0x276115(0x1f6),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x276115(0x2a0)],{'onClick':()=>_0x1cbc53[_0x276115(0x1f1)](),'children':'Start'})]});}function Q(_0x27130e){var _0x142c60=_0x2edea7;const {coordinator:_0x297840}=_0x27130e;return l['jsxs'](l[_0x142c60(0x291)],{'children':[l[_0x142c60(0x2a6)](_0x142c60(0x1f3),{'className':_0x142c60(0x1f6),'children':_0x142c60(0x2a9)}),l[_0x142c60(0x2a6)](g[_0x142c60(0x2a0)],{'onClick':()=>_0x297840['stopFollowing'](),'children':_0x142c60(0x245)})]});}function X(_0x4c2f7f){var _0x913bfe=_0x2edea7;const {coordinator:_0x36b1d0}=_0x4c2f7f;return l[_0x913bfe(0x26b)](l[_0x913bfe(0x291)],{'children':[l['jsx'](_0x913bfe(0x1f3),{'className':_0x913bfe(0x1f6),'children':_0x913bfe(0x266)}),l[_0x913bfe(0x2a6)](g[_0x913bfe(0x2a0)],{'variant':_0x913bfe(0x257),'onClick':()=>_0x36b1d0[_0x913bfe(0x1e6)](),'children':'Start\x20following'})]});}function ee(_0x176872){var _0x44b745=_0x2edea7;const {coordinator:_0x89bdb4}=_0x176872;return l[_0x44b745(0x26b)](l['Fragment'],{'children':[l[_0x44b745(0x2a6)]('div',{'className':_0x44b745(0x1f6),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x44b745(0x2a6)](g[_0x44b745(0x2a0)],{'variant':_0x44b745(0x1e2),'onClick':()=>_0x89bdb4[_0x44b745(0x2ae)](),'children':'Stop\x20presenting'})]});}function te(){var _0x4d89f1=_0x2edea7;return l['jsx'](l['Fragment'],{'children':_0x4d89f1(0x1e7)});}var ie=Object[_0x2edea7(0x24b)],ne=(_0x11b45f,_0x2d0116,_0x5e8fb7,_0x21a611)=>{var _0x484343=_0x2edea7;for(var _0x4765d7=_0x21a611>0x1?void 0x0:_0x21a611?ie(_0x2d0116,_0x5e8fb7):_0x2d0116,_0x5e1bcc=_0x11b45f[_0x484343(0x273)]-0x1,_0x52fad4;_0x5e1bcc>=0x0;_0x5e1bcc--)(_0x52fad4=_0x11b45f[_0x5e1bcc])&&(_0x4765d7=_0x52fad4(_0x4765d7)||_0x4765d7);return _0x4765d7;},L=(_0x188431,_0x5b7571)=>(_0x57c385,_0x20f518)=>_0x5b7571(_0x57c385,_0x20f518,_0x188431);exports[_0x2edea7(0x29d)]=class extends o['Disposable']{constructor(_0x1f3238,_0x5b0e8d){var _0x431266=_0x2edea7;super(),this[_0x431266(0x206)]=_0x1f3238,this['_uiPartsService']=_0x5b0e8d,this['_mountLiveShare']();}[_0x2edea7(0x244)](){var _0x51476f=_0x2edea7;this[_0x51476f(0x24d)](this[_0x51476f(0x1ec)][_0x51476f(0x22a)](p[_0x51476f(0x25c)][_0x51476f(0x27c)],()=>p[_0x51476f(0x25e)](A,this[_0x51476f(0x206)])));}},exports[_0x2edea7(0x29d)]=ne([L(0x0,o[_0x2edea7(0x215)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x2edea7(0x29d)]);var re=Object[_0x2edea7(0x219)],se=Object[_0x2edea7(0x24b)],oe=(_0x10ac7f,_0x2c7f51,_0x5d3e4e)=>_0x2c7f51 in _0x10ac7f?re(_0x10ac7f,_0x2c7f51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d3e4e}):_0x10ac7f[_0x2c7f51]=_0x5d3e4e,ae=(_0x556b50,_0x1cea6a,_0x33a372,_0x3fa030)=>{var _0x1cd8b4=_0x2edea7;for(var _0x32105b=_0x3fa030>0x1?void 0x0:_0x3fa030?se(_0x1cea6a,_0x33a372):_0x1cea6a,_0xab7ccd=_0x556b50[_0x1cd8b4(0x273)]-0x1,_0x5d9c59;_0xab7ccd>=0x0;_0xab7ccd--)(_0x5d9c59=_0x556b50[_0xab7ccd])&&(_0x32105b=_0x5d9c59(_0x32105b)||_0x32105b);return _0x32105b;},N=(_0x3ac69c,_0x20ff8d)=>(_0x34d59e,_0x48a94e)=>_0x20ff8d(_0x34d59e,_0x48a94e,_0x3ac69c),T=(_0x2bc754,_0x1a1c0d,_0x4dfbfd)=>oe(_0x2bc754,typeof _0x1a1c0d!=_0x2edea7(0x216)?_0x1a1c0d+'':_0x1a1c0d,_0x4dfbfd);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x2edea7(0x20d)]=class extends o[_0x2edea7(0x21d)]{constructor(_0x392434=x,_0x3a5b7a,_0x5ba78e){var _0xfcf547=_0x2edea7;super(),this['_config']=_0x392434,this[_0xfcf547(0x206)]=_0x3a5b7a,this[_0xfcf547(0x29c)]=_0x5ba78e;const {..._0x51679b}=o['merge']({},x,this[_0xfcf547(0x1ea)]);this['_configService'][_0xfcf547(0x268)]($,_0x51679b);}[_0x2edea7(0x1e9)](){var _0x38c344=_0x2edea7;o['registerDependencies'](this['_injector'],o[_0x38c344(0x203)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x38c344(0x1ea)][_0x38c344(0x20f)])),o[_0x38c344(0x256)](this[_0x38c344(0x206)],[[E]]);}[_0x2edea7(0x225)](){var _0x543adc=_0x2edea7;o[_0x543adc(0x256)](this[_0x543adc(0x206)],[[exports[_0x543adc(0x29d)]]]);}},T(exports[_0x2edea7(0x20d)],_0x2edea7(0x205),o[_0x2edea7(0x2a5)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x2edea7(0x250),le),exports['UniverLiveSharePlugin']=ae([o[_0x2edea7(0x27e)](m[_0x2edea7(0x1ef)]),N(0x1,o['Inject'](o[_0x2edea7(0x264)])),N(0x2,o[_0x2edea7(0x24f)])],exports[_0x2edea7(0x20d)]),exports[_0x2edea7(0x287)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;function _0x4a04(){var _0x6d5075=['apply','assign','trim','OPERATION','_startLiveShareCoordinator','complete','3655GKlxlp','_stopFollowing','default','mask','10nuzwqC','_collabSession','startFollowing','You\x27are\x20offline.','getMemberID','onStarting','_config','registerInitialStateReporter','_uiPartsService','OFFLINE','memberID','UniverCollaborationClientPlugin','subscribe','tryStartPresenting','Module','div','_entities','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','mutations','SessionStatus','FOLLOWING','useState','string','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','find','_handleNewHost','reverse','not-following','get','parseProtocolChangeset','mergeOverrideWithDependencies','19229841oNKBOd','type','_injector','RxDisposable','IUniverInstanceService','presenting','includes','NOT_FOLLOWING','DisposableCollection','UniverLiveSharePlugin','live-share.config','override','getInitialStates','ONLINE','_fetchOperations','toStringTag','dispose$','Inject','symbol','dispose','map','defineProperty','_reporters','registerSharedOperation','svg','Plugin','call','clsx','useRef','tag','_commandService','requireSession','1em','onRendered','useEffect','univer-size-4','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','live-share-icon','registerComponent','CollaborationSessionService','evenodd','current','currentColor','takeUntil','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','event$','idSuffix','from','_handleNewChangeSets','onCommandExecuted','_unitID','_startPresenting','Disposable','forEach','_handleTerminate','useObservable','Dropdown','LiveShareIcon','_handleOperation','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','53902tieAFX','xlink:href','sheet','_mountLiveShare','Stop\x20following','send','SetWorksheetActiveOperation','unsubscribe','toString','184OQgclw','getOwnPropertyDescriptor','delete','disposeWithMe','createInstance','IConfigService','pluginName','button','idle','prototype','_sharedOperations','UNIVER_SHEET','touchDependencies','text','function','_commandDisposable','_beIdle','indexOf','BuiltInUIPart','_handleOffline','connectInjector','2548971jPUetm','http://www.w3.org/2000/svg','_init','init','path','Injector','substring','You\x27re\x20not\x20following\x20the\x20presenter','displayName','setConfig','_collabSessionService','_liveShareService','jsxs','277599dGxDht','data','LIVESHARE_REQUEST_HOST','clear','icon','throttleTime','add','length','status$','univerjs-icon\x20univerjs-icon-','entries','2787480ohElOi','getCurrentTypeOfUnit$','Subject','LIVESHARE_NEW_HOST','extend','HEADER_MENU','_handleOnline','DependentOn','hasOwnProperty','CollaborationEvent','shouldShareOperation','concat','stopFollowing','LiveShareController','params','ICommandService','LiveShare','CommandType','IDLE','getUnitId','following','offline','executeCommand','_univerInstanceService','asObservable','toDisposable','Fragment','LIVESHARE_OPERATION','use','NEW_CHANGESETS','next','getOwnPropertySymbols','set','LIVESHARE_TERMINATE','getLiveShareCoordinator','attrs','replace','_configService','DesktopLiveShareController','className','_stopPresenting','Button','4972xQqBUe','presenter','_status','defIds','UniverInstanceType','jsx','operations','fill','You\x27re\x20following\x20the\x20presenter','useDependency','forwardRef','propertyIsEnumerable','has','stopPresenting','children','LiveShareCoordinator','BehaviorSubject','pipe','values','getTypeOfUnitAdded$','_presenter','_status$','colorChannel1','421932msHkDb','PRESENTING','createElement'];_0x4a04=function(){return _0x6d5075;};return _0x4a04();}
1
+ 'use strict';var _0x13f3c2=_0x2ec0;(function(_0xd958d6,_0xa5806a){var _0x2110d1=_0x2ec0,_0x28d32a=_0xd958d6();while(!![]){try{var _0x3eb575=-parseInt(_0x2110d1(0x1b3))/0x1+-parseInt(_0x2110d1(0x18f))/0x2*(parseInt(_0x2110d1(0x124))/0x3)+parseInt(_0x2110d1(0x17a))/0x4+-parseInt(_0x2110d1(0x137))/0x5*(parseInt(_0x2110d1(0x174))/0x6)+parseInt(_0x2110d1(0x164))/0x7+-parseInt(_0x2110d1(0xe2))/0x8+parseInt(_0x2110d1(0x165))/0x9*(parseInt(_0x2110d1(0x185))/0xa);if(_0x3eb575===_0xa5806a)break;else _0x28d32a['push'](_0x28d32a['shift']());}catch(_0x2f15cb){_0x28d32a['push'](_0x28d32a['shift']());}}}(_0x55a2,0x8fb9a));var U=Object[_0x13f3c2(0x170)],F=(_0x509e23,_0x89d3c2,_0x1e08a5)=>_0x89d3c2 in _0x509e23?U(_0x509e23,_0x89d3c2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e08a5}):_0x509e23[_0x89d3c2]=_0x1e08a5,v=(_0x1a227e,_0x4537ad,_0x17dc1c)=>F(_0x1a227e,typeof _0x4537ad!=_0x13f3c2(0x133)?_0x4537ad+'':_0x4537ad,_0x17dc1c);Object[_0x13f3c2(0x170)](exports,Symbol[_0x13f3c2(0x161)],{'value':_0x13f3c2(0x172)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x13f3c2(0xfb),x={};class O extends o[_0x13f3c2(0x131)]{constructor(){var _0x96aed8=_0x13f3c2;super(...arguments),v(this,_0x96aed8(0x125),new Set()),v(this,'_reporters',new Set());}[_0x13f3c2(0x153)](_0x2901c9){var _0x11a5ea=_0x13f3c2;return this[_0x11a5ea(0x125)][_0x11a5ea(0x154)](_0x2901c9),o['toDisposable'](()=>this[_0x11a5ea(0x125)][_0x11a5ea(0x1a8)](_0x2901c9));}['registerInitialStateReporter'](_0x481a91){var _0x1e3c0b=_0x13f3c2;return this[_0x1e3c0b(0x121)][_0x1e3c0b(0x154)](_0x481a91),o[_0x1e3c0b(0x180)](()=>this[_0x1e3c0b(0x121)][_0x1e3c0b(0x1a8)](_0x481a91));}[_0x13f3c2(0x118)](_0xb81e7b){var _0x2776f6=_0x13f3c2;return this[_0x2776f6(0x125)][_0x2776f6(0x130)](_0xb81e7b);}['getInitialStates'](_0x49f430){var _0x35f8c7=_0x13f3c2;return Array[_0x35f8c7(0x163)](this[_0x35f8c7(0x121)])['map'](_0x549da5=>_0x549da5(_0x49f430));}}var H=Object[_0x13f3c2(0x122)],V=(_0x619aac,_0x116b9d,_0x13a5de,_0x13d9ef)=>{var _0x1d44b0=_0x13f3c2;for(var _0x259e09=_0x13d9ef>0x1?void 0x0:_0x13d9ef?H(_0x116b9d,_0x13a5de):_0x116b9d,_0x500b29=_0x619aac[_0x1d44b0(0x1ae)]-0x1,_0x4e9f2f;_0x500b29>=0x0;_0x500b29--)(_0x4e9f2f=_0x619aac[_0x500b29])&&(_0x259e09=_0x4e9f2f(_0x259e09)||_0x259e09);return _0x259e09;},k=(_0xfde3f1,_0x2d1d8d)=>(_0x20a038,_0x463197)=>_0x2d1d8d(_0x20a038,_0x463197,_0xfde3f1);let E=class extends o[_0x13f3c2(0x131)]{constructor(_0x4937f8){var _0x145ba6=_0x13f3c2;super(),this[_0x145ba6(0x191)]=_0x4937f8,this[_0x145ba6(0x17d)]();}[_0x13f3c2(0x17d)](){var _0x5d9135=_0x13f3c2;[w[_0x5d9135(0x11b)]['id'],w[_0x5d9135(0x101)]['id'],C[_0x5d9135(0xea)]['id']]['forEach'](_0x288240=>{var _0x4a11ab=_0x5d9135;this[_0x4a11ab(0xee)](this[_0x4a11ab(0x191)]['registerSharedOperation'](_0x288240));});}};E=V([k(0x0,o[_0x13f3c2(0x117)](O))],E);var u=function(){var _0x31fae8=_0x13f3c2;return u=Object[_0x31fae8(0x12d)]||function(_0x125053){var _0x14ab7a=_0x31fae8;for(var _0x1d519c,_0x3a96e5=0x1,_0x4af319=arguments['length'];_0x3a96e5<_0x4af319;_0x3a96e5++){_0x1d519c=arguments[_0x3a96e5];for(var _0x186708 in _0x1d519c)Object[_0x14ab7a(0xf0)]['hasOwnProperty'][_0x14ab7a(0x1a9)](_0x1d519c,_0x186708)&&(_0x125053[_0x186708]=_0x1d519c[_0x186708]);}return _0x125053;},u[_0x31fae8(0x13e)](this,arguments);},M=function(_0x538f56,_0x29d121){var _0x39c043=_0x13f3c2,_0x2adcdc={};for(var _0x36cdf1 in _0x538f56)Object[_0x39c043(0xf0)][_0x39c043(0xd6)][_0x39c043(0x1a9)](_0x538f56,_0x36cdf1)&&_0x29d121[_0x39c043(0x171)](_0x36cdf1)<0x0&&(_0x2adcdc[_0x36cdf1]=_0x538f56[_0x36cdf1]);if(_0x538f56!=null&&typeof Object[_0x39c043(0x17e)]==_0x39c043(0x123)){for(var _0x3546c6=0x0,_0x36cdf1=Object['getOwnPropertySymbols'](_0x538f56);_0x3546c6<_0x36cdf1[_0x39c043(0x1ae)];_0x3546c6++)_0x29d121[_0x39c043(0x171)](_0x36cdf1[_0x3546c6])<0x0&&Object[_0x39c043(0xf0)][_0x39c043(0x140)][_0x39c043(0x1a9)](_0x538f56,_0x36cdf1[_0x3546c6])&&(_0x2adcdc[_0x36cdf1[_0x3546c6]]=_0x538f56[_0x36cdf1[_0x3546c6]]);}return _0x2adcdc;},j=f[_0x13f3c2(0x166)](function(_0x3d5897,_0x1ac57e){var _0x134d68=_0x13f3c2,_0x185978=_0x3d5897[_0x134d68(0x126)],_0x309334=_0x3d5897['id'],_0x479d2c=_0x3d5897[_0x134d68(0xec)],_0x329398=_0x3d5897[_0x134d68(0x11f)],_0x22878c=M(_0x3d5897,[_0x134d68(0x126),'id',_0x134d68(0xec),_0x134d68(0x11f)]),_0x37fece=_0x134d68(0x18a)[_0x134d68(0xdf)](_0x309334,'\x20')[_0x134d68(0xdf)](_0x479d2c||'')[_0x134d68(0x19a)](),_0x24244d=f[_0x134d68(0x104)]('_'[_0x134d68(0xdf)](G()));return y(_0x185978,''[_0x134d68(0xdf)](_0x309334),{'defIds':_0x185978['defIds'],'idSuffix':_0x24244d[_0x134d68(0x134)]},u({'ref':_0x1ac57e,'className':_0x37fece},_0x22878c),_0x329398);});function y(_0x412b41,_0xc742f7,_0x3bb2f9,_0x365923,_0x12234d){var _0x57c504=_0x13f3c2;return f[_0x57c504(0x177)](_0x412b41[_0x57c504(0xce)],u(u({'key':_0xc742f7},q(_0x412b41,_0x3bb2f9,_0x12234d)),_0x365923),(W(_0x412b41,_0x3bb2f9)[_0x57c504(0x127)]||[])[_0x57c504(0xd3)](function(_0xc581a4,_0x16d3b9){var _0x4520ee=_0x57c504;return y(_0xc581a4,''[_0x4520ee(0xdf)](_0xc742f7,'-')[_0x4520ee(0xdf)](_0x412b41[_0x4520ee(0xce)],'-')[_0x4520ee(0xdf)](_0x16d3b9),_0x3bb2f9,void 0x0,_0x12234d);}));}function q(_0x2fc856,_0x6fedbc,_0x11e4cb){var _0x522ed0=_0x13f3c2,_0xae2b4e=u({},_0x2fc856[_0x522ed0(0x1a6)]);_0x11e4cb!=null&&_0x11e4cb[_0x522ed0(0x1b0)]&&_0xae2b4e['fill']===_0x522ed0(0x1b0)&&(_0xae2b4e[_0x522ed0(0x182)]=_0x11e4cb[_0x522ed0(0x1b0)]),_0x2fc856[_0x522ed0(0xce)]===_0x522ed0(0x1a0)&&_0xae2b4e['id']&&(_0xae2b4e['id']=_0xae2b4e['id']+_0x6fedbc['idSuffix']),Object[_0x522ed0(0x16c)](_0xae2b4e)['forEach'](function(_0x44a9d4){var _0x23f6fc=_0x522ed0,_0x4270f0=_0x44a9d4[0x0],_0x5a7af7=_0x44a9d4[0x1];_0x4270f0===_0x23f6fc(0x1a0)&&typeof _0x5a7af7==_0x23f6fc(0x10f)&&(_0xae2b4e[_0x4270f0]=_0x5a7af7['replace'](/url\(#(.*)\)/,_0x23f6fc(0x116)[_0x23f6fc(0xdf)](_0x6fedbc[_0x23f6fc(0xf5)],')')));});var _0x417d9b=_0x6fedbc[_0x522ed0(0xda)];return!_0x417d9b||_0x417d9b['length']===0x0||(_0x2fc856['tag']===_0x522ed0(0x186)&&_0xae2b4e[_0x522ed0(0x18c)]&&(_0xae2b4e['xlink:href']=_0xae2b4e[_0x522ed0(0x18c)]+_0x6fedbc[_0x522ed0(0xf5)]),Object[_0x522ed0(0x16c)](_0xae2b4e)[_0x522ed0(0x135)](function(_0x11dc9a){var _0x4b5e9a=_0x522ed0,_0x2abe29=_0x11dc9a[0x0],_0x38515d=_0x11dc9a[0x1];typeof _0x38515d==_0x4b5e9a(0x10f)&&(_0xae2b4e[_0x2abe29]=_0x38515d[_0x4b5e9a(0x15b)](/url\(#(.*)\)/,_0x4b5e9a(0x116)['concat'](_0x6fedbc['idSuffix'],')')));})),_0xae2b4e;}function W(_0x58ef6b,_0x378029){var _0x346655=_0x13f3c2,_0x37885e,_0x34a61a=_0x378029[_0x346655(0xda)];return!_0x34a61a||_0x34a61a[_0x346655(0x1ae)]===0x0?_0x58ef6b:_0x58ef6b[_0x346655(0xce)]===_0x346655(0x115)&&(!((_0x37885e=_0x58ef6b[_0x346655(0x127)])===null||_0x37885e===void 0x0)&&_0x37885e[_0x346655(0x1ae)])?u(u({},_0x58ef6b),{'children':_0x58ef6b['children']['map'](function(_0x5317b4){var _0x200322=_0x346655;return typeof _0x5317b4[_0x200322(0x1a6)]['id']==_0x200322(0x10f)&&_0x34a61a&&_0x34a61a['includes'](_0x5317b4[_0x200322(0x1a6)]['id'])?u(u({},_0x5317b4),{'attrs':u(u({},_0x5317b4[_0x200322(0x1a6)]),{'id':_0x5317b4[_0x200322(0x1a6)]['id']+_0x378029[_0x200322(0xf5)]})}):_0x5317b4;})}):_0x58ef6b;}function G(){var _0x1b758a=_0x13f3c2;return Math['random']()[_0x1b758a(0x13d)](0x24)[_0x1b758a(0x196)](0x2,0x8);}j['displayName']=_0x13f3c2(0xf2);function _0x2ec0(_0x2fe74c,_0x2e1a2a){var _0x55a247=_0x55a2();return _0x2ec0=function(_0x2ec082,_0x1eae65){_0x2ec082=_0x2ec082-0xcd;var _0x345e00=_0x55a247[_0x2ec082];return _0x345e00;},_0x2ec0(_0x2fe74c,_0x2e1a2a);}var B={'tag':_0x13f3c2(0x107),'attrs':{'xmlns':_0x13f3c2(0xf3),'fill':_0x13f3c2(0x109),'viewBox':_0x13f3c2(0x1b5),'width':_0x13f3c2(0x178),'height':'1em'},'children':[{'tag':_0x13f3c2(0xd4),'attrs':{'fill':_0x13f3c2(0x100),'d':_0x13f3c2(0x15f)}},{'tag':'path','attrs':{'fill':_0x13f3c2(0x100),'d':_0x13f3c2(0x173),'fillRule':_0x13f3c2(0x16f),'clipRule':_0x13f3c2(0x16f)}}]},P=f[_0x13f3c2(0x166)](function(_0x185b8b,_0x21acfc){var _0x323d38=_0x13f3c2;return f[_0x323d38(0x177)](j,Object[_0x323d38(0x12d)]({},_0x185b8b,{'id':'live-share-icon','ref':_0x21acfc,'icon':B}));});P[_0x13f3c2(0xf1)]='LiveShareIcon';function _0x55a2(){var _0xb75bcc=['prototype','displayName','UniverIcon','http://www.w3.org/2000/svg','clsx','idSuffix','registerComponent','_presenter','_fetchOperations','_handleOnline','_univerInstanceService','live-share.config','registerDependencies','LIVESHARE_TERMINATE','offline','onStarting','currentColor','SetScrollOperation','NEW_CHANGESETS','memberID','useRef','useState','stopPresenting','svg','get','none','Start\x20following','OFFLINE','text','next','touchDependencies','string','pluginName','setConfig','getMemberID','useObservable','LIVESHARE_REQUEST_HOST','defs','url(#$1','Inject','shouldShareOperation','useDependency','LiveShare','SetZoomRatioOperation','DependentOn','values','getLiveShareCoordinator','extend','clear','_reporters','getOwnPropertyDescriptor','function','669xkHkGR','_sharedOperations','icon','children','_beIdle','_stopPresenting','_commandDisposable','UNIVER_LIVE_SHARE_PLUGIN','_startPresenting','assign','sessionStatus$','UniverCollaborationClientPlugin','has','Disposable','complete','symbol','current','forEach','Present\x20this\x20document','1313450rfQmDv','_startLiveShareCoordinator','IConfigService','operations','set','_stopFollowing','toString','apply','BuiltInUIPart','propertyIsEnumerable','_collabSession','Fragment','_commandService','FOLLOWING','startFollowing','default','UniverInstanceType','unsubscribe','Subject','send','HEADER_MENU','following','SessionStatus','_handleTerminate','IUIPartsService','type','UNIVER_SHEET','idle','registerSharedOperation','add','CommandType','asObservable','tryStartPresenting','div','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','replace','useEffect','DisposableCollection','Plugin','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','init','toStringTag','dispose$','from','2064804IuxDow','9uJKCSs','forwardRef','find','_handleNewHost','parse','Stop\x20presenting','LIVESHARE_OPERATION','entries','requireSession','onCommandExecuted','evenodd','defineProperty','indexOf','Module','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','12dgEPBJ','not-following','UniverLiveSharePlugin','createElement','1em','_unitID','4108188VODnLh','_collabSessionService','data','_init','getOwnPropertySymbols','_status','toDisposable','jsx','fill','IDLE','LiveShareStatus','5569750ZioIeU','use','RxDisposable','OPERATION','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univerjs-icon\x20univerjs-icon-','unitId','xlink:href','DesktopLiveShareController','LiveShareService','1858WenIYl','presenter','_liveShareService','reverse','LIVESHARE_FETCH_OPERATIONS','_status$','_entities','substring','override','createInstance','Stop\x20following','trim','dispose','LiveShareController','mutations','Injector','getInitialStates','mask','jsxs','ICommandService','params','IUniverInstanceService','SAME_OPERATION_SHARE_INTERVAL','attrs','end','delete','call','Button','status$','getUnitId','pipe','length','getTypeOfUnitDisposed$','colorChannel1','executeCommand','PRESENTING','246114jpbwDB','InsertSheetMutation','0\x200\x2017\x2017','getValue','_handleOffline','_startFollowing','tag','NOT_FOLLOWING','event$','_config','_handleNewChangeSets','map','path','Dropdown','hasOwnProperty','CollaborationSessionService','CollaborationEvent','UNIVER_UNKNOWN','defIds','takeUntil','_uiPartsService','LiveShareCoordinator','stopFollowing','concat','BehaviorSubject','You\x27re\x20not\x20following\x20the\x20presenter','2493080qrqnYH','_handleOperation','subscribe','presenting','stringify','_injector','mergeOverrideWithDependencies','_configService','SetWorksheetActiveOperation','getTypeOfUnitAdded$','className','_mountLiveShare','disposeWithMe','button'];_0x55a2=function(){return _0xb75bcc;};return _0x55a2();}var Y=Object[_0x13f3c2(0x122)],R=(_0x557c3a,_0x1761ef,_0x2cd244,_0x21c699)=>{for(var _0x29843f=_0x21c699>0x1?void 0x0:_0x21c699?Y(_0x1761ef,_0x2cd244):_0x1761ef,_0x525738=_0x557c3a['length']-0x1,_0x390cc6;_0x525738>=0x0;_0x525738--)(_0x390cc6=_0x557c3a[_0x525738])&&(_0x29843f=_0x390cc6(_0x29843f)||_0x29843f);return _0x29843f;},S=(_0x38c5a6,_0x5ac292)=>(_0x56f7c7,_0x539c82)=>_0x5ac292(_0x56f7c7,_0x539c82,_0x38c5a6);exports[_0x13f3c2(0x19c)]=class extends o[_0x13f3c2(0x187)]{constructor(_0x456e0e,_0x3cf1e6,_0x405992){var _0x5b59e3=_0x13f3c2;super(),v(this,_0x5b59e3(0x195),new Map()),(this[_0x5b59e3(0xfa)]=_0x456e0e,this[_0x5b59e3(0xe7)]=_0x3cf1e6,this[_0x5b59e3(0x17b)]=_0x405992,this[_0x5b59e3(0x17d)]());}async[_0x13f3c2(0x11e)](_0x76ed8){var _0x3c1006=_0x13f3c2;return this['_entities'][_0x3c1006(0x130)](_0x76ed8)||await this['_startLiveShareCoordinator'](_0x76ed8),this[_0x3c1006(0x195)]['get'](_0x76ed8);}[_0x13f3c2(0x17d)](){var _0x258a2c=_0x13f3c2;this['_univerInstanceService'][_0x258a2c(0xeb)](o[_0x258a2c(0x147)][_0x258a2c(0x151)])['pipe'](b['takeUntil'](this[_0x258a2c(0x162)]))['subscribe'](async _0x26877c=>{var _0x4bed0c=_0x258a2c;const _0x28192f=_0x26877c[_0x4bed0c(0x1ac)]();this[_0x4bed0c(0x195)][_0x4bed0c(0x130)](_0x28192f)||this[_0x4bed0c(0x138)](_0x28192f);}),this['_univerInstanceService'][_0x258a2c(0x1af)](o[_0x258a2c(0x147)][_0x258a2c(0x151)])[_0x258a2c(0x1ad)](b[_0x258a2c(0xdb)](this[_0x258a2c(0x162)]))['subscribe'](_0x39f713=>{var _0x2f4054=_0x258a2c;const _0x2ed003=_0x39f713[_0x2f4054(0x1ac)](),_0x1c3cb6=this['_entities'][_0x2f4054(0x108)](_0x2ed003);_0x1c3cb6==null||_0x1c3cb6[_0x2f4054(0x19b)]();});}async[_0x13f3c2(0x138)](_0xcbbadd){var _0x23795f=_0x13f3c2;const _0x5b94f7=await this['_collabSessionService'][_0x23795f(0x16d)](_0xcbbadd),_0x5954ba=this[_0x23795f(0xe7)][_0x23795f(0x198)](exports[_0x23795f(0xdd)],_0xcbbadd,_0x5b94f7);return _0x5954ba[_0x23795f(0x160)](),this[_0x23795f(0x195)][_0x23795f(0x13b)](_0xcbbadd,_0x5954ba),_0x5954ba;}},exports[_0x13f3c2(0x19c)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x13f3c2(0x19e)])),S(0x2,o[_0x13f3c2(0x117)](m[_0x13f3c2(0xd7)]))],exports[_0x13f3c2(0x19c)]);var h=(_0x3c4e03=>(_0x3c4e03['OFFLINE']=_0x13f3c2(0xfe),_0x3c4e03[_0x13f3c2(0x183)]=_0x13f3c2(0x152),_0x3c4e03[_0x13f3c2(0x144)]=_0x13f3c2(0x14c),_0x3c4e03[_0x13f3c2(0xcf)]='not-following',_0x3c4e03[_0x13f3c2(0x1b2)]=_0x13f3c2(0xe5),_0x3c4e03))(h||{});const Z=_0x13f3c2(0x1a5),J=0xc8;exports[_0x13f3c2(0xdd)]=class extends o['RxDisposable']{constructor(_0x3305aa,_0x182af3,_0x35dd63,_0x24eafe,_0x5bbd05){var _0xb02e=_0x13f3c2;super(),v(this,_0xb02e(0x194),new D[(_0xb02e(0xe0))](_0xb02e(0x152))),v(this,_0xb02e(0x1ab),this[_0xb02e(0x194)][_0xb02e(0x156)]()),v(this,'_init',!0x1),v(this,_0xb02e(0x12a),null),v(this,_0xb02e(0xf7),null),(this[_0xb02e(0x179)]=_0x3305aa,this['_collabSession']=_0x182af3,this['_configService']=_0x35dd63,this[_0xb02e(0x191)]=_0x24eafe,this['_commandService']=_0x5bbd05);}get[_0x13f3c2(0x17f)](){var _0x44d736=_0x13f3c2;return this[_0x44d736(0x194)][_0x44d736(0x1b6)]();}['dispose'](){var _0x28bc7c=_0x13f3c2,_0x44096c;(_0x44096c=this[_0x28bc7c(0x12a)])==null||_0x44096c['dispose'](),this[_0x28bc7c(0x194)][_0x28bc7c(0x10d)]('idle'),this[_0x28bc7c(0x194)][_0x28bc7c(0x132)]();}[_0x13f3c2(0x160)](){var _0xc98174=_0x13f3c2;this['_init']||(this[_0xc98174(0x17d)]=!0x0,this[_0xc98174(0x141)][_0xc98174(0x12e)][_0xc98174(0x1ad)](b[_0xc98174(0xdb)](this[_0xc98174(0x162)]))[_0xc98174(0xe4)](_0x208a87=>{var _0x12f9e3=_0xc98174;switch(_0x208a87){case m[_0x12f9e3(0x14d)][_0x12f9e3(0x10b)]:this[_0x12f9e3(0x1b7)]();break;case m[_0x12f9e3(0x14d)]['ONLINE']:this[_0x12f9e3(0xf9)]();break;}}),this[_0xc98174(0x141)][_0xc98174(0xd0)][_0xc98174(0x1ad)](b[_0xc98174(0xdb)](this['dispose$']))[_0xc98174(0xe4)](_0x1ca09b=>{var _0x2bad71=_0xc98174;const {eventID:_0x3a2b11}=_0x1ca09b;switch(_0x3a2b11){case _[_0x2bad71(0xd8)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1ca09b);break;case _['CollaborationEvent'][_0x2bad71(0x16b)]:this[_0x2bad71(0xe3)](_0x1ca09b);break;case _[_0x2bad71(0xd8)][_0x2bad71(0xfd)]:this['_handleTerminate']();break;case _[_0x2bad71(0xd8)][_0x2bad71(0x102)]:this[_0x2bad71(0xd2)](_0x1ca09b);break;}}));}['tryStartPresenting'](){var _0x12a22e=_0x13f3c2;this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x12a22e(0x114)],'data':{'unitID':this[_0x12a22e(0x179)],'userID':this[_0x12a22e(0x141)]['getMemberID']()}},this[_0x12a22e(0x179)]);}[_0x13f3c2(0x106)](){var _0x25872f=_0x13f3c2;this[_0x25872f(0x17f)]===_0x25872f(0xe5)&&(this[_0x25872f(0x194)][_0x25872f(0x10d)](_0x25872f(0x152)),this[_0x25872f(0x141)][_0x25872f(0x14a)]({'eventID':_[_0x25872f(0xd8)][_0x25872f(0xfd)],'data':{'unitID':this['_unitID']}},this[_0x25872f(0x179)]));}[_0x13f3c2(0x145)](){var _0x2f1625=_0x13f3c2;this[_0x2f1625(0x17f)]===_0x2f1625(0x175)&&(this['_status$'][_0x2f1625(0x10d)](_0x2f1625(0x14c)),this[_0x2f1625(0xcd)]());}[_0x13f3c2(0xde)](){var _0x23711e=_0x13f3c2;this[_0x23711e(0x17f)]===_0x23711e(0x14c)&&this['_stopFollowing']();}[_0x13f3c2(0x168)](_0x5a0964){var _0x3ed743=_0x13f3c2;const {presenter:_0x5fa522}=_0x5a0964[_0x3ed743(0x17c)],_0xf32494=this[_0x3ed743(0x141)][_0x3ed743(0x112)]();this[_0x3ed743(0xf7)]=_0x5fa522,_0x5fa522===_0xf32494?(this[_0x3ed743(0x13c)](),this[_0x3ed743(0x12c)]()):this['_status']!==_0x3ed743(0x175)&&(this[_0x3ed743(0x129)](),this[_0x3ed743(0xcd)]());}[_0x13f3c2(0xf8)](){var _0x40f73a=_0x13f3c2;const _0x46ae02={'eventID':_['CollaborationEvent'][_0x40f73a(0x193)]};this[_0x40f73a(0x141)][_0x40f73a(0x14a)](_0x46ae02,this[_0x40f73a(0x179)]);}[_0x13f3c2(0x14e)](){var _0x4467a7=_0x13f3c2;this[_0x4467a7(0xf7)]=null,this[_0x4467a7(0x17f)]!==_0x4467a7(0xe5)&&this[_0x4467a7(0x128)]();}[_0x13f3c2(0xd2)](_0x512891){var _0x24d9df=_0x13f3c2;if(this[_0x24d9df(0x17f)]==='following'&&this[_0x24d9df(0xf7)]===_0x512891['data'][_0x24d9df(0x103)]){const _0x11e231=_['parseProtocolChangeset'](_0x512891[_0x24d9df(0x17c)])[_0x24d9df(0x19d)][_0x24d9df(0x192)]()[_0x24d9df(0x167)](_0x352874=>_0x352874['id']===C[_0x24d9df(0x1b4)]['id']);if(_0x11e231){const _0x1838b1=_0x11e231['params'][_0x24d9df(0x18b)],_0x32222b=_0x11e231[_0x24d9df(0x1a3)]['sheet']['id'];setTimeout(()=>{var _0x58bfa0=_0x24d9df;this[_0x58bfa0(0x143)][_0x58bfa0(0x1b1)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x1838b1,'subUnitId':_0x32222b},{'fromCollab':!0x0});});}}}[_0x13f3c2(0x12c)](){var _0x40f33d=_0x13f3c2;this['_status$']['next'](_0x40f33d(0xe5));const _0x2ed185=new Map(),_0x3b6c9a=this[_0x40f33d(0x12a)]=new o[(_0x40f33d(0x15d))]();_0x3b6c9a[_0x40f33d(0x154)](o[_0x40f33d(0x180)](()=>{var _0x2357ac=_0x40f33d;_0x2ed185[_0x2357ac(0x135)](_0x2ece0c=>_0x2ece0c['complete']()),_0x2ed185[_0x2357ac(0x120)]();})),_0x3b6c9a['add'](this[_0x40f33d(0x143)][_0x40f33d(0x16e)](_0x4bb5ee=>{var _0x3575ef=_0x40f33d,_0x384dbf;if(_0x4bb5ee[_0x3575ef(0x150)]!==o[_0x3575ef(0x155)][_0x3575ef(0x188)]||!this[_0x3575ef(0x191)][_0x3575ef(0x118)](_0x4bb5ee['id']))return;const {id:_0x5818d5}=_0x4bb5ee;let _0x21c65c;_0x2ed185['has'](_0x5818d5)?_0x21c65c=_0x2ed185[_0x3575ef(0x108)](_0x5818d5):(_0x21c65c=new D[(_0x3575ef(0x149))](),_0x2ed185['set'](_0x5818d5,_0x21c65c),_0x21c65c[_0x3575ef(0x1ad)](b['throttleTime']((_0x384dbf=this[_0x3575ef(0xe9)]['getConfig'](Z))!=null?_0x384dbf:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x424021=>{var _0x31f149=_0x3575ef;this[_0x31f149(0x141)]['send']({'eventID':_[_0x31f149(0xd8)][_0x31f149(0x16b)],'data':{'unitID':this[_0x31f149(0x179)],'operations':{[_0x424021['id']]:{'id':_0x424021['id'],'params':JSON[_0x31f149(0xe6)](_0x424021[_0x31f149(0x1a3)])}}}},this['_unitID']);})),_0x21c65c[_0x3575ef(0x10d)](_0x4bb5ee);})),this[_0x40f33d(0x191)][_0x40f33d(0x19f)](this[_0x40f33d(0x179)])['forEach'](_0x4895c4=>this['_collabSession']['send']({'eventID':_[_0x40f33d(0xd8)][_0x40f33d(0x16b)],'data':{'unitID':this[_0x40f33d(0x179)],'operations':{[_0x4895c4['id']]:{'id':_0x4895c4['id'],'params':JSON[_0x40f33d(0xe6)](_0x4895c4[_0x40f33d(0x1a3)])}}}},this[_0x40f33d(0x179)]));}[_0x13f3c2(0x129)](){var _0x10d782=_0x13f3c2,_0x28421e;this[_0x10d782(0x194)][_0x10d782(0x10d)](_0x10d782(0x152)),(_0x28421e=this[_0x10d782(0x12a)])==null||_0x28421e[_0x10d782(0x19b)](),this[_0x10d782(0x12a)]=null;}[_0x13f3c2(0xcd)](){var _0x1d0502=_0x13f3c2,_0x4b4f35;(_0x4b4f35=this[_0x1d0502(0x12a)])==null||_0x4b4f35[_0x1d0502(0x19b)](),this[_0x1d0502(0x194)][_0x1d0502(0x10d)](_0x1d0502(0x14c));}[_0x13f3c2(0x128)](){var _0x31015c=_0x13f3c2,_0x5715ac;this[_0x31015c(0x194)][_0x31015c(0x10d)](_0x31015c(0x152)),(_0x5715ac=this[_0x31015c(0x12a)])==null||_0x5715ac[_0x31015c(0x19b)](),this[_0x31015c(0x12a)]=null;}['_stopFollowing'](){var _0x593aec=_0x13f3c2,_0x433506;this['_status$'][_0x593aec(0x10d)](_0x593aec(0x175)),(_0x433506=this[_0x593aec(0x12a)])==null||_0x433506['dispose']();}['_handleOperation'](_0x6d1ff0){var _0x4d7b19=_0x13f3c2;if([_0x4d7b19(0xe5),_0x4d7b19(0x175),_0x4d7b19(0xfe)][_0x4d7b19(0x159)](this[_0x4d7b19(0x17f)])||!_0x6d1ff0[_0x4d7b19(0x17c)]['presenter']||_0x6d1ff0['data'][_0x4d7b19(0x190)]===this['_collabSession'][_0x4d7b19(0x112)]())return;this['_status']===_0x4d7b19(0x152)&&this['_startFollowing']();const _0x37f8f2=_0x6d1ff0[_0x4d7b19(0x17c)][_0x4d7b19(0x13a)];Object[_0x4d7b19(0x11d)](_0x37f8f2)[_0x4d7b19(0x135)](_0x47386e=>{var _0x1f0005=_0x4d7b19;this['_commandService']['executeCommand'](_0x47386e['id'],_0x47386e[_0x1f0005(0x1a3)]?JSON[_0x1f0005(0x169)](_0x47386e['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4c1d9f=_0x13f3c2,_0x526be8;this[_0x4c1d9f(0x194)][_0x4c1d9f(0x10d)]('offline'),(_0x526be8=this[_0x4c1d9f(0x12a)])==null||_0x526be8[_0x4c1d9f(0x19b)]();}[_0x13f3c2(0xf9)](){var _0x34f7cd=_0x13f3c2;this[_0x34f7cd(0x194)][_0x34f7cd(0x10d)](_0x34f7cd(0x152)),this[_0x34f7cd(0xf8)]();}},exports[_0x13f3c2(0xdd)]=R([S(0x2,o[_0x13f3c2(0x139)]),S(0x3,o[_0x13f3c2(0x117)](O)),S(0x4,o[_0x13f3c2(0x1a2)])],exports[_0x13f3c2(0xdd)]);function A(){var _0x26d3a8=_0x13f3c2;const _0x13f000=p[_0x26d3a8(0x119)](exports['LiveShareController']),_0x107baa=p['useDependency'](o[_0x26d3a8(0x1a4)]),_0x3cb8ec=p[_0x26d3a8(0x113)](()=>_0x107baa['getCurrentTypeOfUnit$'](o[_0x26d3a8(0x147)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1858bd,_0x330e77]=f[_0x26d3a8(0x105)](null),[_0x6cf9e3,_0x1c3dbf]=f[_0x26d3a8(0x105)](h[_0x26d3a8(0x183)]),_0x1e0663=f['useRef'](null);return f[_0x26d3a8(0x15c)](()=>(_0x3cb8ec&&_0x13f000['getLiveShareCoordinator'](_0x3cb8ec[_0x26d3a8(0x1ac)]())['then'](_0x48ac00=>{var _0x57b871=_0x26d3a8;_0x330e77(_0x48ac00),_0x1e0663['current']=_0x48ac00[_0x57b871(0x1ab)][_0x57b871(0xe4)](_0x2eb98=>{_0x1c3dbf(_0x2eb98);});}),()=>{var _0x247717=_0x26d3a8,_0x1439b2;(_0x1439b2=_0x1e0663['current'])==null||_0x1439b2[_0x247717(0x148)](),_0x1e0663[_0x247717(0x134)]=null;}),[_0x3cb8ec,_0x13f000]),_0x1858bd?l[_0x26d3a8(0x181)](g[_0x26d3a8(0xd5)],{'align':_0x26d3a8(0x1a7),'disabled':_0x6cf9e3===h[_0x26d3a8(0x10b)],'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[_0x26d3a8(0x181)](K,{'status':_0x6cf9e3,'coordinator':_0x1858bd}),'children':l['jsx'](_0x26d3a8(0xef),{'className':g[_0x26d3a8(0xf4)](_0x26d3a8(0x189),{'univer-cursor-not-allowed':_0x6cf9e3===h[_0x26d3a8(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x6cf9e3!==h[_0x26d3a8(0x10b)]}),'type':'button','children':l[_0x26d3a8(0x181)](P,{'className':'univer-size-4'})})}):null;}function K(_0x4e0d19){var _0x590818=_0x13f3c2;const {status:_0x1b2682,coordinator:_0x500568}=_0x4e0d19;switch(_0x1b2682){case h[_0x590818(0x183)]:return l[_0x590818(0x181)](z,{'coordinator':_0x500568});case h[_0x590818(0x144)]:return l['jsx'](Q,{'coordinator':_0x500568});case h[_0x590818(0xcf)]:return l[_0x590818(0x181)](X,{'coordinator':_0x500568});case h[_0x590818(0x10b)]:return l[_0x590818(0x181)](te,{});case h[_0x590818(0x1b2)]:return l[_0x590818(0x181)](ee,{'coordinator':_0x500568});default:return null;}}function z(_0x49c955){var _0x4a16f0=_0x13f3c2;const {coordinator:_0x79edf2}=_0x49c955;return l['jsxs'](l['Fragment'],{'children':[l[_0x4a16f0(0x181)](_0x4a16f0(0x158),{'className':_0x4a16f0(0x15a),'children':_0x4a16f0(0x136)}),l['jsx'](g[_0x4a16f0(0x1aa)],{'onClick':()=>_0x79edf2[_0x4a16f0(0x157)](),'children':'Start'})]});}function Q(_0x5bd013){var _0x550055=_0x13f3c2;const {coordinator:_0x313ef3}=_0x5bd013;return l[_0x550055(0x1a1)](l[_0x550055(0x142)],{'children':[l[_0x550055(0x181)](_0x550055(0x158),{'className':_0x550055(0x15a),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x550055(0x181)](g['Button'],{'onClick':()=>_0x313ef3['stopFollowing'](),'children':_0x550055(0x199)})]});}function X(_0x19371b){var _0x8347f0=_0x13f3c2;const {coordinator:_0x42364e}=_0x19371b;return l[_0x8347f0(0x1a1)](l[_0x8347f0(0x142)],{'children':[l[_0x8347f0(0x181)]('div',{'className':_0x8347f0(0x15a),'children':_0x8347f0(0xe1)}),l[_0x8347f0(0x181)](g[_0x8347f0(0x1aa)],{'variant':_0x8347f0(0x10c),'onClick':()=>_0x42364e['startFollowing'](),'children':_0x8347f0(0x10a)})]});}function ee(_0x4457a6){var _0x59ae4e=_0x13f3c2;const {coordinator:_0x5ad8f8}=_0x4457a6;return l[_0x59ae4e(0x1a1)](l[_0x59ae4e(0x142)],{'children':[l[_0x59ae4e(0x181)](_0x59ae4e(0x158),{'className':_0x59ae4e(0x15a),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x59ae4e(0x1aa)],{'variant':_0x59ae4e(0x146),'onClick':()=>_0x5ad8f8[_0x59ae4e(0x106)](),'children':_0x59ae4e(0x16a)})]});}function te(){var _0x4e789f=_0x13f3c2;return l[_0x4e789f(0x181)](l[_0x4e789f(0x142)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x13f3c2(0x122)],ne=(_0x2d0476,_0x391ee3,_0xdf06ed,_0x338f0d)=>{var _0x4bfc45=_0x13f3c2;for(var _0x3847d8=_0x338f0d>0x1?void 0x0:_0x338f0d?ie(_0x391ee3,_0xdf06ed):_0x391ee3,_0xcf084b=_0x2d0476[_0x4bfc45(0x1ae)]-0x1,_0x26d4f7;_0xcf084b>=0x0;_0xcf084b--)(_0x26d4f7=_0x2d0476[_0xcf084b])&&(_0x3847d8=_0x26d4f7(_0x3847d8)||_0x3847d8);return _0x3847d8;},L=(_0xc0ddcf,_0x18345e)=>(_0x7f0a65,_0x53d5bf)=>_0x18345e(_0x7f0a65,_0x53d5bf,_0xc0ddcf);exports[_0x13f3c2(0x18d)]=class extends o[_0x13f3c2(0x131)]{constructor(_0x19cbff,_0x47cf19){var _0xede9dc=_0x13f3c2;super(),this['_injector']=_0x19cbff,this[_0xede9dc(0xdc)]=_0x47cf19,this['_mountLiveShare']();}[_0x13f3c2(0xed)](){var _0x35d112=_0x13f3c2;this[_0x35d112(0xee)](this[_0x35d112(0xdc)][_0x35d112(0xf6)](p[_0x35d112(0x13f)][_0x35d112(0x14b)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x13f3c2(0x18d)]=ne([L(0x0,o[_0x13f3c2(0x117)](o[_0x13f3c2(0x19e)])),L(0x1,p[_0x13f3c2(0x14f)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],oe=(_0x7b6f90,_0xf57a07,_0x3da804)=>_0xf57a07 in _0x7b6f90?re(_0x7b6f90,_0xf57a07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3da804}):_0x7b6f90[_0xf57a07]=_0x3da804,ae=(_0x92e2eb,_0x176d33,_0x1d3425,_0x180e51)=>{var _0x1f7cc7=_0x13f3c2;for(var _0x36127f=_0x180e51>0x1?void 0x0:_0x180e51?se(_0x176d33,_0x1d3425):_0x176d33,_0x2519a3=_0x92e2eb[_0x1f7cc7(0x1ae)]-0x1,_0x2de9a2;_0x2519a3>=0x0;_0x2519a3--)(_0x2de9a2=_0x92e2eb[_0x2519a3])&&(_0x36127f=_0x2de9a2(_0x36127f)||_0x36127f);return _0x36127f;},N=(_0x534947,_0x413780)=>(_0x3e48ae,_0x16bd25)=>_0x413780(_0x3e48ae,_0x16bd25,_0x534947),T=(_0x1de50d,_0xbe9f0a,_0x5bb0a8)=>oe(_0x1de50d,typeof _0xbe9f0a!=_0x13f3c2(0x133)?_0xbe9f0a+'':_0xbe9f0a,_0x5bb0a8);const le=_0x13f3c2(0x12b);exports['UniverLiveSharePlugin']=class extends o[_0x13f3c2(0x15e)]{constructor(_0x31f9fd=x,_0x2ea89f,_0x446db5){var _0x1e9eae=_0x13f3c2;super(),this[_0x1e9eae(0xd1)]=_0x31f9fd,this[_0x1e9eae(0xe7)]=_0x2ea89f,this['_configService']=_0x446db5;const {..._0x1c6c77}=o['merge']({},x,this[_0x1e9eae(0xd1)]);this['_configService'][_0x1e9eae(0x111)]($,_0x1c6c77);}[_0x13f3c2(0xff)](){var _0x3f4ebd=_0x13f3c2;o[_0x3f4ebd(0xfc)](this[_0x3f4ebd(0xe7)],o[_0x3f4ebd(0xe8)]([[O],[exports[_0x3f4ebd(0x19c)]],[E],[exports['DesktopLiveShareController']]],this[_0x3f4ebd(0xd1)][_0x3f4ebd(0x197)])),o['touchDependencies'](this['_injector'],[[E]]);}['onRendered'](){var _0x3a0e17=_0x13f3c2;o[_0x3a0e17(0x10e)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x13f3c2(0x176)],_0x13f3c2(0x150),o['UniverInstanceType'][_0x13f3c2(0xd9)]),T(exports[_0x13f3c2(0x176)],_0x13f3c2(0x110),le),exports[_0x13f3c2(0x176)]=ae([o[_0x13f3c2(0x11c)](m[_0x13f3c2(0x12f)]),N(0x1,o['Inject'](o[_0x13f3c2(0x19e)])),N(0x2,o[_0x13f3c2(0x139)])],exports[_0x13f3c2(0x176)]),exports[_0x13f3c2(0x11a)]=A,exports[_0x13f3c2(0x18e)]=O,exports[_0x13f3c2(0x184)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x36f681=_0x1118;(function(_0xdb3272,_0x585b5c){var _0x1af3b9=_0x1118,_0x55dcb1=_0xdb3272();while(!![]){try{var _0x15cf64=parseInt(_0x1af3b9(0x1f8))/0x1*(parseInt(_0x1af3b9(0x1a9))/0x2)+-parseInt(_0x1af3b9(0x1af))/0x3*(-parseInt(_0x1af3b9(0x1dd))/0x4)+parseInt(_0x1af3b9(0x1aa))/0x5*(-parseInt(_0x1af3b9(0x1c5))/0x6)+-parseInt(_0x1af3b9(0x17d))/0x7*(-parseInt(_0x1af3b9(0x1bf))/0x8)+-parseInt(_0x1af3b9(0x204))/0x9*(parseInt(_0x1af3b9(0x1da))/0xa)+-parseInt(_0x1af3b9(0x1a3))/0xb+-parseInt(_0x1af3b9(0x19a))/0xc*(-parseInt(_0x1af3b9(0x1f5))/0xd);if(_0x15cf64===_0x585b5c)break;else _0x55dcb1['push'](_0x55dcb1['shift']());}catch(_0x371655){_0x55dcb1['push'](_0x55dcb1['shift']());}}}(_0x1122,0x2bf65));var q=Object['defineProperty'],z=(_0x2dc5df,_0x245c31,_0x4dc601)=>_0x245c31 in _0x2dc5df?q(_0x2dc5df,_0x245c31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dc601}):_0x2dc5df[_0x245c31]=_0x4dc601,d=(_0x3ce50a,_0x1d8e50,_0x2b5a32)=>z(_0x3ce50a,typeof _0x1d8e50!=_0x36f681(0x19d)?_0x1d8e50+'':_0x1d8e50,_0x2b5a32);import{CollaborationSessionService as _0x3cbafe,SessionStatus as _0x3733f5,UniverCollaborationClientPlugin as _0x1202e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1b9b72,toDisposable as _0x4c5635,Inject as _0x2471b9,IUniverInstanceService as _0x369fcc,Injector as _0x1fff4e,IConfigService as _0x177af0,ICommandService as _0x390976,RxDisposable as _0x353398,UniverInstanceType as _0x29b044,DisposableCollection as _0x2810df,CommandType as _0x54268d,DependentOn as _0x203d04,Plugin as _0x45d0b9,merge as _0x217915,registerDependencies as _0x5b4604,mergeOverrideWithDependencies as _0x3ed2f6,touchDependencies as _0x131646}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x599ac0,InsertSheetMutation as _0x4e20ed}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x37dc55,SetScrollOperation as _0x3fbab9}from'@univerjs/sheets-ui';import{useDependency as _0x5edaac,useObservable as _0x219c95,IUIPartsService as _0x2dedba,BuiltInUIPart as _0x1eb411,connectInjector as _0x424e91}from'@univerjs/ui';import{jsx as _0x36145d,jsxs as _0x4e0c68,Fragment as _0x37245c}from'react/jsx-runtime';import{Dropdown as _0x4d6833,clsx as _0x345b91,Button as _0x52e609}from'@univerjs/design';import{forwardRef as _0x24c7ad,useRef as _0x251313,createElement as _0x980b93,useState as _0x569d59,useEffect as _0x173568}from'react';import{CollaborationEvent as _0x18ecaa,parseProtocolChangeset as _0x21841a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2b64c8,Subject as _0x47ff72}from'rxjs';import{takeUntil as _0x521a29,throttleTime as _0x61e5a1}from'rxjs/operators';const Oe=_0x36f681(0x1bb),T={};class L extends _0x1b9b72{constructor(){var _0x1f7b95=_0x36f681;super(...arguments),d(this,_0x1f7b95(0x1e9),new Set()),d(this,_0x1f7b95(0x17c),new Set());}['registerSharedOperation'](_0xafa4ca){var _0xc7e0ea=_0x36f681;return this['_sharedOperations'][_0xc7e0ea(0x177)](_0xafa4ca),_0x4c5635(()=>this['_sharedOperations'][_0xc7e0ea(0x184)](_0xafa4ca));}[_0x36f681(0x1ac)](_0x3174a6){var _0x4dcd63=_0x36f681;return this['_reporters']['add'](_0x3174a6),_0x4c5635(()=>this[_0x4dcd63(0x17c)][_0x4dcd63(0x184)](_0x3174a6));}[_0x36f681(0x17e)](_0x771b5b){var _0x1f7f10=_0x36f681;return this[_0x1f7f10(0x1e9)]['has'](_0x771b5b);}[_0x36f681(0x1a1)](_0x12879d){var _0x2a858f=_0x36f681;return Array['from'](this[_0x2a858f(0x17c)])[_0x2a858f(0x1ce)](_0x51b88f=>_0x51b88f(_0x12879d));}}var Ee=Object[_0x36f681(0x217)],we=(_0x4c2d20,_0x1d278d,_0x384d96,_0x872cfd)=>{var _0x21ab27=_0x36f681;for(var _0xb9d887=_0x872cfd>0x1?void 0x0:_0x872cfd?Ee(_0x1d278d,_0x384d96):_0x1d278d,_0x460468=_0x4c2d20[_0x21ab27(0x1e3)]-0x1,_0x2ad69d;_0x460468>=0x0;_0x460468--)(_0x2ad69d=_0x4c2d20[_0x460468])&&(_0xb9d887=_0x2ad69d(_0xb9d887)||_0xb9d887);return _0xb9d887;},Ne=(_0x1f773e,_0x4ba6d0)=>(_0x2058cd,_0x36a488)=>_0x4ba6d0(_0x2058cd,_0x36a488,_0x1f773e);let m=class extends _0x1b9b72{constructor(_0x2ba15e){var _0x5c9ab5=_0x36f681;super(),this[_0x5c9ab5(0x193)]=_0x2ba15e,this['_init']();}[_0x36f681(0x197)](){var _0x25614f=_0x36f681;[_0x37dc55['id'],_0x3fbab9['id'],_0x599ac0['id']][_0x25614f(0x1f9)](_0x5d0fa9=>{var _0x45a782=_0x25614f;this[_0x45a782(0x1a5)](this[_0x45a782(0x193)][_0x45a782(0x1ca)](_0x5d0fa9));});}};m=we([Ne(0x0,_0x2471b9(L))],m);var c=function(){var _0x53f227=_0x36f681;return c=Object['assign']||function(_0x369089){var _0x499ee0=_0x1118;for(var _0x4a3e52,_0x124ed9=0x1,_0x4b70e2=arguments[_0x499ee0(0x1e3)];_0x124ed9<_0x4b70e2;_0x124ed9++){_0x4a3e52=arguments[_0x124ed9];for(var _0x1f2fcf in _0x4a3e52)Object[_0x499ee0(0x1fc)][_0x499ee0(0x203)][_0x499ee0(0x17f)](_0x4a3e52,_0x1f2fcf)&&(_0x369089[_0x1f2fcf]=_0x4a3e52[_0x1f2fcf]);}return _0x369089;},c[_0x53f227(0x1ef)](this,arguments);},Ce=function(_0x48ad6d,_0x39d979){var _0x4fda78=_0x36f681,_0x5bc6cc={};for(var _0x54acf9 in _0x48ad6d)Object[_0x4fda78(0x1fc)]['hasOwnProperty'][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9)&&_0x39d979[_0x4fda78(0x206)](_0x54acf9)<0x0&&(_0x5bc6cc[_0x54acf9]=_0x48ad6d[_0x54acf9]);if(_0x48ad6d!=null&&typeof Object[_0x4fda78(0x1fd)]=='function'){for(var _0x387058=0x0,_0x54acf9=Object[_0x4fda78(0x1fd)](_0x48ad6d);_0x387058<_0x54acf9['length'];_0x387058++)_0x39d979[_0x4fda78(0x206)](_0x54acf9[_0x387058])<0x0&&Object[_0x4fda78(0x1fc)][_0x4fda78(0x216)][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9[_0x387058])&&(_0x5bc6cc[_0x54acf9[_0x387058]]=_0x48ad6d[_0x54acf9[_0x387058]]);}return _0x5bc6cc;},W=_0x24c7ad(function(_0x23fa1b,_0x2f0746){var _0x3db27a=_0x36f681,_0x191b9f=_0x23fa1b[_0x3db27a(0x1a2)],_0x4597ab=_0x23fa1b['id'],_0x41c6cd=_0x23fa1b[_0x3db27a(0x218)],_0x296794=_0x23fa1b[_0x3db27a(0x1b5)],_0x1858d8=Ce(_0x23fa1b,['icon','id',_0x3db27a(0x218),'extend']),_0x374a2a=_0x3db27a(0x1e8)['concat'](_0x4597ab,'\x20')[_0x3db27a(0x1f2)](_0x41c6cd||'')[_0x3db27a(0x176)](),_0x14ad55=_0x251313('_'[_0x3db27a(0x1f2)](Le()));return Y(_0x191b9f,''[_0x3db27a(0x1f2)](_0x4597ab),{'defIds':_0x191b9f[_0x3db27a(0x1d1)],'idSuffix':_0x14ad55[_0x3db27a(0x1b3)]},c({'ref':_0x2f0746,'className':_0x374a2a},_0x1858d8),_0x296794);});function Y(_0x49165a,_0x1953fb,_0x531023,_0x33197f,_0x1d5707){var _0x47c971=_0x36f681;return _0x980b93(_0x49165a[_0x47c971(0x1f3)],c(c({'key':_0x1953fb},De(_0x49165a,_0x531023,_0x1d5707)),_0x33197f),(xe(_0x49165a,_0x531023)['children']||[])['map'](function(_0x164d4f,_0x4860bd){var _0x202e62=_0x47c971;return Y(_0x164d4f,''[_0x202e62(0x1f2)](_0x1953fb,'-')['concat'](_0x49165a[_0x202e62(0x1f3)],'-')[_0x202e62(0x1f2)](_0x4860bd),_0x531023,void 0x0,_0x1d5707);}));}function De(_0x2bd1d4,_0x3c6f7a,_0x1b0537){var _0x38bf02=_0x36f681,_0x59cc43=c({},_0x2bd1d4[_0x38bf02(0x20c)]);_0x1b0537!=null&&_0x1b0537[_0x38bf02(0x1c9)]&&_0x59cc43[_0x38bf02(0x195)]===_0x38bf02(0x1c9)&&(_0x59cc43[_0x38bf02(0x195)]=_0x1b0537['colorChannel1']),_0x2bd1d4[_0x38bf02(0x1f3)]==='mask'&&_0x59cc43['id']&&(_0x59cc43['id']=_0x59cc43['id']+_0x3c6f7a[_0x38bf02(0x21d)]),Object['entries'](_0x59cc43)[_0x38bf02(0x1f9)](function(_0x19dbc5){var _0x7e7bcc=_0x38bf02,_0xb58bed=_0x19dbc5[0x0],_0x24a488=_0x19dbc5[0x1];_0xb58bed==='mask'&&typeof _0x24a488==_0x7e7bcc(0x1cb)&&(_0x59cc43[_0xb58bed]=_0x24a488['replace'](/url\(#(.*)\)/,_0x7e7bcc(0x207)['concat'](_0x3c6f7a[_0x7e7bcc(0x21d)],')')));});var _0x4b71d9=_0x3c6f7a[_0x38bf02(0x1d1)];return!_0x4b71d9||_0x4b71d9['length']===0x0||(_0x2bd1d4['tag']==='use'&&_0x59cc43[_0x38bf02(0x1f0)]&&(_0x59cc43[_0x38bf02(0x1f0)]=_0x59cc43['xlink:href']+_0x3c6f7a[_0x38bf02(0x21d)]),Object[_0x38bf02(0x1b8)](_0x59cc43)['forEach'](function(_0x23138b){var _0x430f01=_0x38bf02,_0x316463=_0x23138b[0x0],_0x5c033f=_0x23138b[0x1];typeof _0x5c033f==_0x430f01(0x1cb)&&(_0x59cc43[_0x316463]=_0x5c033f[_0x430f01(0x1d2)](/url\(#(.*)\)/,_0x430f01(0x207)[_0x430f01(0x1f2)](_0x3c6f7a[_0x430f01(0x21d)],')')));})),_0x59cc43;}function _0x1122(){var _0x1e6afd=['_handleOnline','_presenter','requireSession','Start\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','length','_config','_handleOperation','mutations','FOLLOWING','univerjs-icon\x20univerjs-icon-','_sharedOperations','registerComponent','_status','params','offline','_handleNewHost','apply','xlink:href','reverse','concat','tag','_univerInstanceService','3641131vlkuMs','getMemberID','_handleTerminate','25oZAZVy','forEach','tryStartPresenting','executeCommand','prototype','getOwnPropertySymbols','stopFollowing','_stopPresenting','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','pipe','hasOwnProperty','4356UMgVpI','defs','indexOf','url(#$1','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','currentColor','attrs','dispose','operations','_beIdle','idle','displayName','evenodd','not-following','_fetchOperations','_handleNewChangeSets','propertyIsEnumerable','getOwnPropertyDescriptor','className','PRESENTING','1em','IDLE','substring','idSuffix','_mountLiveShare','sessionStatus$','unitId','_startPresenting','trim','add','_unitID','onCommandExecuted','getUnitId','following','_reporters','7ktKENv','shouldShareOperation','call','then','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','end','You\x27re\x20following\x20the\x20presenter','delete','UNIVER_SHEET','0\x200\x2017\x2017','status$','subscribe','_handleOffline','data','unsubscribe','createInstance','includes','presenter','set','parse','_startFollowing','_configService','_liveShareService','type','fill','init','_init','stringify','_stopFollowing','12OyRnVu','has','path','symbol','LIVESHARE_FETCH_OPERATIONS','defineProperty','LIVESHARE_NEW_HOST','getInitialStates','icon','2619463rtaDEN','_startLiveShareCoordinator','disposeWithMe','none','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','14078kmtVfM','135UFjmRC','HEADER_MENU','registerInitialStateReporter','div','NEW_CHANGESETS','11967JlOGxp','live-share-icon','find','sheet','current','button','extend','text','getLiveShareCoordinator','entries','presenting','_entities','live-share.config','send','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','967704IrAjcy','next','children','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','onRendered','_status$','20826exKgWu','assign','LIVESHARE_TERMINATE','_commandDisposable','colorChannel1','registerSharedOperation','string','_commandService','getConfig','map','http://www.w3.org/2000/svg','_collabSession','defIds','replace','get','event$','getValue','complete','svg','NOT_FOLLOWING','_injector','1510fPOdDG','onStarting','You\x27are\x20offline.','8baMzcv'];_0x1122=function(){return _0x1e6afd;};return _0x1122();}function xe(_0x53d8bf,_0x23873a){var _0x228094=_0x36f681,_0x5baf9b,_0x1e839c=_0x23873a[_0x228094(0x1d1)];return!_0x1e839c||_0x1e839c[_0x228094(0x1e3)]===0x0?_0x53d8bf:_0x53d8bf[_0x228094(0x1f3)]===_0x228094(0x205)&&(!((_0x5baf9b=_0x53d8bf['children'])===null||_0x5baf9b===void 0x0)&&_0x5baf9b['length'])?c(c({},_0x53d8bf),{'children':_0x53d8bf[_0x228094(0x1c1)][_0x228094(0x1ce)](function(_0x46dbd9){var _0x5ee158=_0x228094;return typeof _0x46dbd9[_0x5ee158(0x20c)]['id']=='string'&&_0x1e839c&&_0x1e839c[_0x5ee158(0x18d)](_0x46dbd9[_0x5ee158(0x20c)]['id'])?c(c({},_0x46dbd9),{'attrs':c(c({},_0x46dbd9[_0x5ee158(0x20c)]),{'id':_0x46dbd9[_0x5ee158(0x20c)]['id']+_0x23873a[_0x5ee158(0x21d)]})}):_0x46dbd9;})}):_0x53d8bf;}function Le(){var _0x3bd3e7=_0x36f681;return Math['random']()['toString'](0x24)[_0x3bd3e7(0x21c)](0x2,0x8);}W[_0x36f681(0x211)]='UniverIcon';var ye={'tag':_0x36f681(0x1d7),'attrs':{'xmlns':_0x36f681(0x1cf),'fill':_0x36f681(0x1a6),'viewBox':_0x36f681(0x186),'width':_0x36f681(0x21a),'height':'1em'},'children':[{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x181)}},{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x1e2),'fillRule':_0x36f681(0x212),'clipRule':_0x36f681(0x212)}}]},B=_0x24c7ad(function(_0x22b41a,_0x1668ea){var _0x1fc324=_0x36f681;return _0x980b93(W,Object[_0x1fc324(0x1c6)]({},_0x22b41a,{'id':_0x1fc324(0x1b0),'ref':_0x1668ea,'icon':ye}));});B[_0x36f681(0x211)]='LiveShareIcon';var Re=Object[_0x36f681(0x217)],Z=(_0x88aed7,_0x2f396f,_0x24c757,_0x44a7dd)=>{var _0x39d1ac=_0x36f681;for(var _0xe2cf28=_0x44a7dd>0x1?void 0x0:_0x44a7dd?Re(_0x2f396f,_0x24c757):_0x2f396f,_0x4f4bcb=_0x88aed7[_0x39d1ac(0x1e3)]-0x1,_0x333c74;_0x4f4bcb>=0x0;_0x4f4bcb--)(_0x333c74=_0x88aed7[_0x4f4bcb])&&(_0xe2cf28=_0x333c74(_0xe2cf28)||_0xe2cf28);return _0xe2cf28;},f=(_0x6f0e90,_0x1c02a3)=>(_0x4e73f5,_0x3a7dff)=>_0x1c02a3(_0x4e73f5,_0x3a7dff,_0x6f0e90);let I=class extends _0x353398{constructor(_0x1d9aea,_0x12bfa0,_0x577704){var _0x5a0892=_0x36f681;super(),d(this,'_entities',new Map()),(this[_0x5a0892(0x1f4)]=_0x1d9aea,this[_0x5a0892(0x1d9)]=_0x12bfa0,this[_0x5a0892(0x1a8)]=_0x577704,this[_0x5a0892(0x197)]());}async[_0x36f681(0x1b7)](_0x4a8765){var _0x1cc18b=_0x36f681;return this[_0x1cc18b(0x1ba)][_0x1cc18b(0x19b)](_0x4a8765)||await this[_0x1cc18b(0x1a4)](_0x4a8765),this['_entities'][_0x1cc18b(0x1d3)](_0x4a8765);}[_0x36f681(0x197)](){var _0x3a588f=_0x36f681;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x29b044['UNIVER_SHEET'])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))['subscribe'](async _0x5a6736=>{var _0x535dc0=_0x3a588f;const _0x4defc5=_0x5a6736[_0x535dc0(0x17a)]();this[_0x535dc0(0x1ba)][_0x535dc0(0x19b)](_0x4defc5)||this[_0x535dc0(0x1a4)](_0x4defc5);}),this[_0x3a588f(0x1f4)][_0x3a588f(0x208)](_0x29b044[_0x3a588f(0x185)])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))[_0x3a588f(0x188)](_0x15ea23=>{var _0x4045d1=_0x3a588f;const _0x4bef80=_0x15ea23[_0x4045d1(0x17a)](),_0x5bc5ff=this[_0x4045d1(0x1ba)][_0x4045d1(0x1d3)](_0x4bef80);_0x5bc5ff==null||_0x5bc5ff[_0x4045d1(0x20d)]();});}async[_0x36f681(0x1a4)](_0x967279){var _0xa65286=_0x36f681;const _0x1a59c3=await this['_collabSessionService'][_0xa65286(0x1e0)](_0x967279),_0x270761=this[_0xa65286(0x1d9)][_0xa65286(0x18c)](C,_0x967279,_0x1a59c3);return _0x270761[_0xa65286(0x196)](),this['_entities']['set'](_0x967279,_0x270761),_0x270761;}};I=Z([f(0x0,_0x369fcc),f(0x1,_0x2471b9(_0x1fff4e)),f(0x2,_0x2471b9(_0x3cbafe))],I);var h=(_0x59e72b=>(_0x59e72b['OFFLINE']=_0x36f681(0x1ed),_0x59e72b[_0x36f681(0x21b)]='idle',_0x59e72b[_0x36f681(0x1e7)]=_0x36f681(0x17b),_0x59e72b[_0x36f681(0x1d8)]=_0x36f681(0x213),_0x59e72b[_0x36f681(0x219)]=_0x36f681(0x1b9),_0x59e72b))(h||{});const Pe=_0x36f681(0x1a7),Ae=0xc8;let C=class extends _0x353398{constructor(_0x27bc2a,_0x300c43,_0x5d2c32,_0x91ff0c,_0x5c49fe){var _0x2c1b55=_0x36f681;super(),d(this,_0x2c1b55(0x1c4),new _0x2b64c8(_0x2c1b55(0x210))),d(this,_0x2c1b55(0x187),this[_0x2c1b55(0x1c4)]['asObservable']()),d(this,_0x2c1b55(0x197),!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x2c1b55(0x178)]=_0x27bc2a,this[_0x2c1b55(0x1d0)]=_0x300c43,this[_0x2c1b55(0x192)]=_0x5d2c32,this[_0x2c1b55(0x193)]=_0x91ff0c,this[_0x2c1b55(0x1cc)]=_0x5c49fe);}get[_0x36f681(0x1eb)](){var _0x5cc586=_0x36f681;return this[_0x5cc586(0x1c4)][_0x5cc586(0x1d5)]();}['dispose'](){var _0x4dcd6a=_0x36f681,_0x6ad419;(_0x6ad419=this['_commandDisposable'])==null||_0x6ad419['dispose'](),this[_0x4dcd6a(0x1c4)][_0x4dcd6a(0x1c0)](_0x4dcd6a(0x210)),this[_0x4dcd6a(0x1c4)]['complete']();}['init'](){var _0x31b1e6=_0x36f681;this['_init']||(this[_0x31b1e6(0x197)]=!0x0,this[_0x31b1e6(0x1d0)][_0x31b1e6(0x173)][_0x31b1e6(0x202)](_0x521a29(this[_0x31b1e6(0x1be)]))[_0x31b1e6(0x188)](_0x3abe44=>{var _0x3da701=_0x31b1e6;switch(_0x3abe44){case _0x3733f5[_0x3da701(0x20a)]:this['_handleOffline']();break;case _0x3733f5['ONLINE']:this[_0x3da701(0x1de)]();break;}}),this['_collabSession'][_0x31b1e6(0x1d4)]['pipe'](_0x521a29(this['dispose$']))['subscribe'](_0x57858c=>{var _0x900d2e=_0x31b1e6;const {eventID:_0x443a62}=_0x57858c;switch(_0x443a62){case _0x18ecaa[_0x900d2e(0x1a0)]:this['_handleNewHost'](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x200)]:this[_0x900d2e(0x1e5)](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x1c7)]:this[_0x900d2e(0x1f7)]();break;case _0x18ecaa[_0x900d2e(0x1ae)]:this[_0x900d2e(0x215)](_0x57858c);break;}}));}['tryStartPresenting'](){var _0x507e54=_0x36f681;this[_0x507e54(0x1d0)][_0x507e54(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x507e54(0x178)],'userID':this[_0x507e54(0x1d0)][_0x507e54(0x1f6)]()}},this[_0x507e54(0x178)]);}['stopPresenting'](){var _0x3e9083=_0x36f681;this[_0x3e9083(0x1eb)]==='presenting'&&(this[_0x3e9083(0x1c4)][_0x3e9083(0x1c0)](_0x3e9083(0x210)),this['_collabSession']['send']({'eventID':_0x18ecaa[_0x3e9083(0x1c7)],'data':{'unitID':this[_0x3e9083(0x178)]}},this[_0x3e9083(0x178)]));}['startFollowing'](){var _0x155cab=_0x36f681;this['_status']==='not-following'&&(this['_status$'][_0x155cab(0x1c0)](_0x155cab(0x17b)),this[_0x155cab(0x191)]());}[_0x36f681(0x1fe)](){var _0x4efe5e=_0x36f681;this['_status']===_0x4efe5e(0x17b)&&this[_0x4efe5e(0x199)]();}[_0x36f681(0x1ee)](_0x202fcc){var _0x495010=_0x36f681;const {presenter:_0x1e1588}=_0x202fcc['data'],_0x6bf872=this[_0x495010(0x1d0)][_0x495010(0x1f6)]();this[_0x495010(0x1df)]=_0x1e1588,_0x1e1588===_0x6bf872?(this[_0x495010(0x199)](),this[_0x495010(0x175)]()):this[_0x495010(0x1eb)]!==_0x495010(0x213)&&(this[_0x495010(0x1ff)](),this[_0x495010(0x191)]());}[_0x36f681(0x214)](){var _0x465eed=_0x36f681;const _0x21d037={'eventID':_0x18ecaa[_0x465eed(0x19e)]};this['_collabSession'][_0x465eed(0x1bc)](_0x21d037,this['_unitID']);}['_handleTerminate'](){var _0x984efd=_0x36f681;this['_presenter']=null,this[_0x984efd(0x1eb)]!==_0x984efd(0x1b9)&&this['_beIdle']();}['_handleNewChangeSets'](_0x58a016){var _0x2d391a=_0x36f681;if(this['_status']===_0x2d391a(0x17b)&&this[_0x2d391a(0x1df)]===_0x58a016[_0x2d391a(0x18a)]['memberID']){const _0x530453=_0x21841a(_0x58a016[_0x2d391a(0x18a)])[_0x2d391a(0x1e6)][_0x2d391a(0x1f1)]()[_0x2d391a(0x1b1)](_0x2ec1f7=>_0x2ec1f7['id']===_0x4e20ed['id']);if(_0x530453){const _0x167407=_0x530453[_0x2d391a(0x1ec)][_0x2d391a(0x174)],_0xa731e1=_0x530453['params'][_0x2d391a(0x1b2)]['id'];setTimeout(()=>{var _0x410b5c=_0x2d391a;this[_0x410b5c(0x1cc)][_0x410b5c(0x1fb)](_0x599ac0['id'],{'unitId':_0x167407,'subUnitId':_0xa731e1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x110739=_0x36f681;this[_0x110739(0x1c4)][_0x110739(0x1c0)](_0x110739(0x1b9));const _0x12c5c8=new Map(),_0x5a06cd=this[_0x110739(0x1c8)]=new _0x2810df();_0x5a06cd['add'](_0x4c5635(()=>{var _0x1c8557=_0x110739;_0x12c5c8[_0x1c8557(0x1f9)](_0x16d946=>_0x16d946[_0x1c8557(0x1d6)]()),_0x12c5c8['clear']();})),_0x5a06cd['add'](this[_0x110739(0x1cc)][_0x110739(0x179)](_0x1522fa=>{var _0x492fdd=_0x110739,_0x5a3e89;if(_0x1522fa[_0x492fdd(0x194)]!==_0x54268d['OPERATION']||!this[_0x492fdd(0x193)][_0x492fdd(0x17e)](_0x1522fa['id']))return;const {id:_0x134466}=_0x1522fa;let _0x599ab7;_0x12c5c8['has'](_0x134466)?_0x599ab7=_0x12c5c8[_0x492fdd(0x1d3)](_0x134466):(_0x599ab7=new _0x47ff72(),_0x12c5c8[_0x492fdd(0x18f)](_0x134466,_0x599ab7),_0x599ab7[_0x492fdd(0x202)](_0x61e5a1((_0x5a3e89=this[_0x492fdd(0x192)][_0x492fdd(0x1cd)](Pe))!=null?_0x5a3e89:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x492fdd(0x188)](_0x5298c0=>{var _0x4d3bfc=_0x492fdd;this['_collabSession'][_0x4d3bfc(0x1bc)]({'eventID':_0x18ecaa[_0x4d3bfc(0x200)],'data':{'unitID':this[_0x4d3bfc(0x178)],'operations':{[_0x5298c0['id']]:{'id':_0x5298c0['id'],'params':JSON[_0x4d3bfc(0x198)](_0x5298c0['params'])}}}},this[_0x4d3bfc(0x178)]);})),_0x599ab7[_0x492fdd(0x1c0)](_0x1522fa);})),this[_0x110739(0x193)][_0x110739(0x1a1)](this['_unitID'])[_0x110739(0x1f9)](_0x260bff=>this[_0x110739(0x1d0)][_0x110739(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x110739(0x178)],'operations':{[_0x260bff['id']]:{'id':_0x260bff['id'],'params':JSON[_0x110739(0x198)](_0x260bff[_0x110739(0x1ec)])}}}},this[_0x110739(0x178)]));}['_stopPresenting'](){var _0x34547e=_0x36f681,_0x2081dd;this['_status$'][_0x34547e(0x1c0)](_0x34547e(0x210)),(_0x2081dd=this['_commandDisposable'])==null||_0x2081dd[_0x34547e(0x20d)](),this[_0x34547e(0x1c8)]=null;}[_0x36f681(0x191)](){var _0x438582=_0x36f681,_0x38378e;(_0x38378e=this['_commandDisposable'])==null||_0x38378e[_0x438582(0x20d)](),this[_0x438582(0x1c4)][_0x438582(0x1c0)](_0x438582(0x17b));}[_0x36f681(0x20f)](){var _0x32684c=_0x36f681,_0x595bde;this[_0x32684c(0x1c4)][_0x32684c(0x1c0)]('idle'),(_0x595bde=this[_0x32684c(0x1c8)])==null||_0x595bde[_0x32684c(0x20d)](),this[_0x32684c(0x1c8)]=null;}[_0x36f681(0x199)](){var _0x52f7a5=_0x36f681,_0x3d317;this['_status$'][_0x52f7a5(0x1c0)]('not-following'),(_0x3d317=this['_commandDisposable'])==null||_0x3d317[_0x52f7a5(0x20d)]();}[_0x36f681(0x1e5)](_0x35b246){var _0x4f391f=_0x36f681;if([_0x4f391f(0x1b9),_0x4f391f(0x213),_0x4f391f(0x1ed)]['includes'](this[_0x4f391f(0x1eb)])||!_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x18e)]||_0x35b246['data'][_0x4f391f(0x18e)]===this[_0x4f391f(0x1d0)][_0x4f391f(0x1f6)]())return;this[_0x4f391f(0x1eb)]==='idle'&&this[_0x4f391f(0x191)]();const _0x3de8f8=_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x20e)];Object['values'](_0x3de8f8)[_0x4f391f(0x1f9)](_0x4b85ed=>{var _0x2916fc=_0x4f391f;this[_0x2916fc(0x1cc)]['executeCommand'](_0x4b85ed['id'],_0x4b85ed['params']?JSON[_0x2916fc(0x190)](_0x4b85ed['params']):null,{'fromCollab':!0x0});});}[_0x36f681(0x189)](){var _0x435422=_0x36f681,_0x32ff24;this[_0x435422(0x1c4)][_0x435422(0x1c0)](_0x435422(0x1ed)),(_0x32ff24=this['_commandDisposable'])==null||_0x32ff24[_0x435422(0x20d)]();}[_0x36f681(0x1de)](){var _0x221d05=_0x36f681;this[_0x221d05(0x1c4)][_0x221d05(0x1c0)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x177af0),f(0x3,_0x2471b9(L)),f(0x4,_0x390976)],C);function Te(){var _0x14b018=_0x36f681;const _0x196366=_0x5edaac(I),_0x4a913e=_0x5edaac(_0x369fcc),_0x318ead=_0x219c95(()=>_0x4a913e[_0x14b018(0x201)](_0x29b044['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c10d6,_0x815b5f]=_0x569d59(null),[_0x41de7d,_0x44e899]=_0x569d59(h[_0x14b018(0x21b)]),_0x18fea9=_0x251313(null);return _0x173568(()=>(_0x318ead&&_0x196366[_0x14b018(0x1b7)](_0x318ead[_0x14b018(0x17a)]())[_0x14b018(0x180)](_0x46bbc2=>{var _0x3a900a=_0x14b018;_0x815b5f(_0x46bbc2),_0x18fea9[_0x3a900a(0x1b3)]=_0x46bbc2[_0x3a900a(0x187)][_0x3a900a(0x188)](_0x29521a=>{_0x44e899(_0x29521a);});}),()=>{var _0x8dc898=_0x14b018,_0x4b30c3;(_0x4b30c3=_0x18fea9['current'])==null||_0x4b30c3[_0x8dc898(0x18b)](),_0x18fea9['current']=null;}),[_0x318ead,_0x196366]),_0x1c10d6?_0x36145d(_0x4d6833,{'align':_0x14b018(0x182),'disabled':_0x41de7d===h[_0x14b018(0x20a)],'className':_0x14b018(0x1c2),'overlay':_0x36145d($e,{'status':_0x41de7d,'coordinator':_0x1c10d6}),'children':_0x36145d(_0x14b018(0x1b4),{'className':_0x345b91('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x41de7d===h[_0x14b018(0x20a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41de7d!==h[_0x14b018(0x20a)]}),'type':_0x14b018(0x1b4),'children':_0x36145d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x3c98b9){var _0x26aba9=_0x36f681;const {status:_0x311b04,coordinator:_0x22e24c}=_0x3c98b9;switch(_0x311b04){case h[_0x26aba9(0x21b)]:return _0x36145d(Fe,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1e7)]:return _0x36145d(He,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1d8)]:return _0x36145d(je,{'coordinator':_0x22e24c});case h[_0x26aba9(0x20a)]:return _0x36145d(Ve,{});case h['PRESENTING']:return _0x36145d(Ue,{'coordinator':_0x22e24c});default:return null;}}function Fe(_0x285b92){var _0x4fba19=_0x36f681;const {coordinator:_0x330a02}=_0x285b92;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x4fba19(0x1ad),{'className':_0x4fba19(0x209),'children':'Present\x20this\x20document'}),_0x36145d(_0x52e609,{'onClick':()=>_0x330a02[_0x4fba19(0x1fa)](),'children':'Start'})]});}function He(_0x4a460e){var _0x225627=_0x36f681;const {coordinator:_0x1737a5}=_0x4a460e;return _0x4e0c68(_0x37245c,{'children':[_0x36145d('div',{'className':_0x225627(0x209),'children':_0x225627(0x183)}),_0x36145d(_0x52e609,{'onClick':()=>_0x1737a5[_0x225627(0x1fe)](),'children':'Stop\x20following'})]});}function je(_0x1870dc){var _0x23e770=_0x36f681;const {coordinator:_0x6390a1}=_0x1870dc;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x23e770(0x1ad),{'className':_0x23e770(0x209),'children':_0x23e770(0x1bd)}),_0x36145d(_0x52e609,{'variant':_0x23e770(0x1b6),'onClick':()=>_0x6390a1['startFollowing'](),'children':_0x23e770(0x1e1)})]});}function Ue(_0xdf902a){var _0x477aa0=_0x36f681;const {coordinator:_0xbd6968}=_0xdf902a;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x477aa0(0x1ad),{'className':_0x477aa0(0x209),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x36145d(_0x52e609,{'variant':'default','onClick':()=>_0xbd6968['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x25caba=_0x36f681;return _0x36145d(_0x37245c,{'children':_0x25caba(0x1dc)});}var Me=Object[_0x36f681(0x217)],ke=(_0x506371,_0xb98d2,_0x260cde,_0x2538bc)=>{for(var _0x7905a8=_0x2538bc>0x1?void 0x0:_0x2538bc?Me(_0xb98d2,_0x260cde):_0xb98d2,_0x3ffc60=_0x506371['length']-0x1,_0x4c99d0;_0x3ffc60>=0x0;_0x3ffc60--)(_0x4c99d0=_0x506371[_0x3ffc60])&&(_0x7905a8=_0x4c99d0(_0x7905a8)||_0x7905a8);return _0x7905a8;},$=(_0x522098,_0x44d5d7)=>(_0x5411a8,_0x3da77b)=>_0x44d5d7(_0x5411a8,_0x3da77b,_0x522098);let b=class extends _0x1b9b72{constructor(_0x5308ad,_0x3000d9){var _0x4bbe50=_0x36f681;super(),this['_injector']=_0x5308ad,this['_uiPartsService']=_0x3000d9,this[_0x4bbe50(0x172)]();}[_0x36f681(0x172)](){var _0x1a5a8c=_0x36f681;this[_0x1a5a8c(0x1a5)](this['_uiPartsService'][_0x1a5a8c(0x1ea)](_0x1eb411[_0x1a5a8c(0x1ab)],()=>_0x424e91(Te,this[_0x1a5a8c(0x1d9)])));}};b=ke([$(0x0,_0x2471b9(_0x1fff4e)),$(0x1,_0x2dedba)],b);var Ge=Object[_0x36f681(0x19f)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1c29af,_0x2370ab,_0x4e53f6)=>_0x2370ab in _0x1c29af?Ge(_0x1c29af,_0x2370ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e53f6}):_0x1c29af[_0x2370ab]=_0x4e53f6,Be=(_0x1cb8fe,_0x5a0f02,_0x321f17,_0x38d04e)=>{var _0x32ed12=_0x36f681;for(var _0xc91ee4=_0x38d04e>0x1?void 0x0:_0x38d04e?We(_0x5a0f02,_0x321f17):_0x5a0f02,_0x16c8c0=_0x1cb8fe[_0x32ed12(0x1e3)]-0x1,_0x48a408;_0x16c8c0>=0x0;_0x16c8c0--)(_0x48a408=_0x1cb8fe[_0x16c8c0])&&(_0xc91ee4=_0x48a408(_0xc91ee4)||_0xc91ee4);return _0xc91ee4;},F=(_0x85f717,_0x330f0b)=>(_0x3d61bf,_0xd9e91b)=>_0x330f0b(_0x3d61bf,_0xd9e91b,_0x85f717),J=(_0x2c8589,_0x2122fc,_0xed60c)=>Ye(_0x2c8589,typeof _0x2122fc!=_0x36f681(0x19d)?_0x2122fc+'':_0x2122fc,_0xed60c);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x45d0b9{constructor(_0x19cc28=T,_0x1d477a,_0x57c76a){var _0x508448=_0x36f681;super(),this[_0x508448(0x1e4)]=_0x19cc28,this['_injector']=_0x1d477a,this[_0x508448(0x192)]=_0x57c76a;const {..._0x121fe8}=_0x217915({},T,this[_0x508448(0x1e4)]);this[_0x508448(0x192)]['setConfig'](Oe,_0x121fe8);}[_0x36f681(0x1db)](){var _0x227760=_0x36f681;_0x5b4604(this['_injector'],_0x3ed2f6([[L],[I],[m],[b]],this[_0x227760(0x1e4)]['override'])),_0x131646(this['_injector'],[[m]]);}[_0x36f681(0x1c3)](){var _0xaced68=_0x36f681;_0x131646(this[_0xaced68(0x1d9)],[[b]]);}};function _0x1118(_0x311923,_0x33f539){var _0x112254=_0x1122();return _0x1118=function(_0x1118dd,_0xefd13e){_0x1118dd=_0x1118dd-0x172;var _0x3191ea=_0x112254[_0x1118dd];return _0x3191ea;},_0x1118(_0x311923,_0x33f539);}J(O,'type',_0x29b044['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x203d04(_0x1202e1),F(0x1,_0x2471b9(_0x1fff4e)),F(0x2,_0x177af0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x212a0b=_0x44be;(function(_0x1d1824,_0x33b605){var _0xebe5d4=_0x44be,_0x5b7978=_0x1d1824();while(!![]){try{var _0x19842c=parseInt(_0xebe5d4(0x20c))/0x1+-parseInt(_0xebe5d4(0x1e5))/0x2*(parseInt(_0xebe5d4(0x205))/0x3)+-parseInt(_0xebe5d4(0x1ef))/0x4*(parseInt(_0xebe5d4(0x1c2))/0x5)+-parseInt(_0xebe5d4(0x1a3))/0x6+-parseInt(_0xebe5d4(0x206))/0x7+-parseInt(_0xebe5d4(0x22d))/0x8+parseInt(_0xebe5d4(0x1f3))/0x9;if(_0x19842c===_0x33b605)break;else _0x5b7978['push'](_0x5b7978['shift']());}catch(_0x41c563){_0x5b7978['push'](_0x5b7978['shift']());}}}(_0x137c,0xef017));var q=Object[_0x212a0b(0x1ff)],z=(_0x464442,_0x3dbc1c,_0x2d7b6b)=>_0x3dbc1c in _0x464442?q(_0x464442,_0x3dbc1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d7b6b}):_0x464442[_0x3dbc1c]=_0x2d7b6b,d=(_0x50846f,_0x53dfc3,_0x11d7f8)=>z(_0x50846f,typeof _0x53dfc3!=_0x212a0b(0x1da)?_0x53dfc3+'':_0x53dfc3,_0x11d7f8);import{CollaborationSessionService as _0x3be506,SessionStatus as _0x5adc85,UniverCollaborationClientPlugin as _0x531aad}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4f9af4,toDisposable as _0x23b66d,Inject as _0x2a903a,IUniverInstanceService as _0x4da2fc,Injector as _0x34e4e4,IConfigService as _0x2927c4,ICommandService as _0x37aeb9,RxDisposable as _0x31b7cc,UniverInstanceType as _0x7d8114,DisposableCollection as _0x261b36,CommandType as _0xa4f37a,DependentOn as _0x4a9262,Plugin as _0x3f8097,merge as _0x17b2d5,registerDependencies as _0x3384be,mergeOverrideWithDependencies as _0x3f0adf,touchDependencies as _0x4a54ad}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x29ccd5,InsertSheetMutation as _0x41705c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x1385a5,SetScrollOperation as _0x4d7403}from'@univerjs/sheets-ui';import{useDependency as _0x1a5a1e,useObservable as _0x1f6a23,IUIPartsService as _0x413ddb,BuiltInUIPart as _0x85079d,connectInjector as _0x142ef7}from'@univerjs/ui';import{jsx as _0x16955c,jsxs as _0x1576d8,Fragment as _0x3cc0cd}from'react/jsx-runtime';import{Dropdown as _0x5f5212,clsx as _0x3cb570,Button as _0x592a35}from'@univerjs/design';import{forwardRef as _0x51620e,useRef as _0x6c2f7c,createElement as _0x4edc06,useState as _0x5bfc97,useEffect as _0x40254c}from'react';import{CollaborationEvent as _0xc94c04,parseProtocolChangeset as _0x8ecc71}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2693df,Subject as _0x453266}from'rxjs';import{takeUntil as _0x5982e3,throttleTime as _0x345bce}from'rxjs/operators';const Oe=_0x212a0b(0x1e7),T={};class L extends _0x4f9af4{constructor(){var _0x5899bb=_0x212a0b;super(...arguments),d(this,_0x5899bb(0x218),new Set()),d(this,'_reporters',new Set());}[_0x212a0b(0x1ac)](_0x1f3e5b){var _0x43446a=_0x212a0b;return this[_0x43446a(0x218)][_0x43446a(0x19a)](_0x1f3e5b),_0x23b66d(()=>this[_0x43446a(0x218)]['delete'](_0x1f3e5b));}[_0x212a0b(0x1f7)](_0x121531){var _0x23e1ab=_0x212a0b;return this['_reporters'][_0x23e1ab(0x19a)](_0x121531),_0x23b66d(()=>this[_0x23e1ab(0x203)][_0x23e1ab(0x1ea)](_0x121531));}[_0x212a0b(0x1f1)](_0x21f06a){var _0x1f2365=_0x212a0b;return this[_0x1f2365(0x218)][_0x1f2365(0x1f2)](_0x21f06a);}['getInitialStates'](_0x2ab30d){var _0x1a53c=_0x212a0b;return Array['from'](this[_0x1a53c(0x203)])['map'](_0x2d09c1=>_0x2d09c1(_0x2ab30d));}}var Ee=Object[_0x212a0b(0x210)],we=(_0x617c29,_0x4b4a87,_0x3d97e0,_0x2bb308)=>{for(var _0x14589b=_0x2bb308>0x1?void 0x0:_0x2bb308?Ee(_0x4b4a87,_0x3d97e0):_0x4b4a87,_0x13a5da=_0x617c29['length']-0x1,_0x2d2909;_0x13a5da>=0x0;_0x13a5da--)(_0x2d2909=_0x617c29[_0x13a5da])&&(_0x14589b=_0x2d2909(_0x14589b)||_0x14589b);return _0x14589b;},Ne=(_0x1642a9,_0x37f408)=>(_0x354045,_0x19c6aa)=>_0x37f408(_0x354045,_0x19c6aa,_0x1642a9);let m=class extends _0x4f9af4{constructor(_0x2c5fba){var _0x4d19d1=_0x212a0b;super(),this[_0x4d19d1(0x236)]=_0x2c5fba,this[_0x4d19d1(0x20a)]();}[_0x212a0b(0x20a)](){var _0xf44357=_0x212a0b;[_0x1385a5['id'],_0x4d7403['id'],_0x29ccd5['id']][_0xf44357(0x1c7)](_0x55603c=>{var _0x48d85d=_0xf44357;this['disposeWithMe'](this['_liveShareService'][_0x48d85d(0x1ac)](_0x55603c));});}};m=we([Ne(0x0,_0x2a903a(L))],m);var c=function(){var _0x3f0c33=_0x212a0b;return c=Object[_0x3f0c33(0x1db)]||function(_0x565047){var _0xa34c75=_0x3f0c33;for(var _0x37de1a,_0x1e36e8=0x1,_0x6a2d67=arguments[_0xa34c75(0x1a4)];_0x1e36e8<_0x6a2d67;_0x1e36e8++){_0x37de1a=arguments[_0x1e36e8];for(var _0x2ad968 in _0x37de1a)Object[_0xa34c75(0x1e6)][_0xa34c75(0x238)]['call'](_0x37de1a,_0x2ad968)&&(_0x565047[_0x2ad968]=_0x37de1a[_0x2ad968]);}return _0x565047;},c[_0x3f0c33(0x1d2)](this,arguments);},Ce=function(_0x4b686a,_0x2c2ee3){var _0x5d5b64=_0x212a0b,_0x414618={};for(var _0x248395 in _0x4b686a)Object[_0x5d5b64(0x1e6)][_0x5d5b64(0x238)]['call'](_0x4b686a,_0x248395)&&_0x2c2ee3[_0x5d5b64(0x1be)](_0x248395)<0x0&&(_0x414618[_0x248395]=_0x4b686a[_0x248395]);if(_0x4b686a!=null&&typeof Object[_0x5d5b64(0x21a)]==_0x5d5b64(0x1f0)){for(var _0x547299=0x0,_0x248395=Object[_0x5d5b64(0x21a)](_0x4b686a);_0x547299<_0x248395[_0x5d5b64(0x1a4)];_0x547299++)_0x2c2ee3[_0x5d5b64(0x1be)](_0x248395[_0x547299])<0x0&&Object[_0x5d5b64(0x1e6)]['propertyIsEnumerable'][_0x5d5b64(0x1d4)](_0x4b686a,_0x248395[_0x547299])&&(_0x414618[_0x248395[_0x547299]]=_0x4b686a[_0x248395[_0x547299]]);}return _0x414618;},W=_0x51620e(function(_0xeb91f5,_0x159e76){var _0x138292=_0x212a0b,_0x432af2=_0xeb91f5[_0x138292(0x1a8)],_0x2fe9d3=_0xeb91f5['id'],_0x16fb20=_0xeb91f5[_0x138292(0x19c)],_0xcfef7c=_0xeb91f5[_0x138292(0x195)],_0x2946ab=Ce(_0xeb91f5,[_0x138292(0x1a8),'id',_0x138292(0x19c),_0x138292(0x195)]),_0x122b7e=_0x138292(0x1d5)[_0x138292(0x1cb)](_0x2fe9d3,'\x20')[_0x138292(0x1cb)](_0x16fb20||'')[_0x138292(0x23f)](),_0x3236dc=_0x6c2f7c('_'[_0x138292(0x1cb)](Le()));return Y(_0x432af2,''[_0x138292(0x1cb)](_0x2fe9d3),{'defIds':_0x432af2['defIds'],'idSuffix':_0x3236dc[_0x138292(0x1c3)]},c({'ref':_0x159e76,'className':_0x122b7e},_0x2946ab),_0xcfef7c);});function Y(_0xb0f05b,_0x2172be,_0x5a504c,_0x45287f,_0x54118b){var _0x5480a8=_0x212a0b;return _0x4edc06(_0xb0f05b[_0x5480a8(0x196)],c(c({'key':_0x2172be},De(_0xb0f05b,_0x5a504c,_0x54118b)),_0x45287f),(xe(_0xb0f05b,_0x5a504c)[_0x5480a8(0x1c8)]||[])[_0x5480a8(0x23e)](function(_0x53398d,_0x437a36){var _0xb7c262=_0x5480a8;return Y(_0x53398d,''[_0xb7c262(0x1cb)](_0x2172be,'-')[_0xb7c262(0x1cb)](_0xb0f05b[_0xb7c262(0x196)],'-')['concat'](_0x437a36),_0x5a504c,void 0x0,_0x54118b);}));}function De(_0x53dc71,_0x4754e8,_0x3f51f0){var _0x3b4ba0=_0x212a0b,_0x549c72=c({},_0x53dc71[_0x3b4ba0(0x1a9)]);_0x3f51f0!=null&&_0x3f51f0[_0x3b4ba0(0x214)]&&_0x549c72['fill']===_0x3b4ba0(0x214)&&(_0x549c72[_0x3b4ba0(0x227)]=_0x3f51f0[_0x3b4ba0(0x214)]),_0x53dc71['tag']==='mask'&&_0x549c72['id']&&(_0x549c72['id']=_0x549c72['id']+_0x4754e8[_0x3b4ba0(0x1ab)]),Object[_0x3b4ba0(0x230)](_0x549c72)[_0x3b4ba0(0x1c7)](function(_0x2bdfd2){var _0x1b4fe1=_0x3b4ba0,_0x12b588=_0x2bdfd2[0x0],_0x3c3387=_0x2bdfd2[0x1];_0x12b588===_0x1b4fe1(0x1c0)&&typeof _0x3c3387==_0x1b4fe1(0x1e4)&&(_0x549c72[_0x12b588]=_0x3c3387[_0x1b4fe1(0x239)](/url\(#(.*)\)/,_0x1b4fe1(0x220)['concat'](_0x4754e8[_0x1b4fe1(0x1ab)],')')));});var _0x328c93=_0x4754e8[_0x3b4ba0(0x22a)];return!_0x328c93||_0x328c93[_0x3b4ba0(0x1a4)]===0x0||(_0x53dc71[_0x3b4ba0(0x196)]==='use'&&_0x549c72['xlink:href']&&(_0x549c72[_0x3b4ba0(0x201)]=_0x549c72[_0x3b4ba0(0x201)]+_0x4754e8[_0x3b4ba0(0x1ab)]),Object[_0x3b4ba0(0x230)](_0x549c72)[_0x3b4ba0(0x1c7)](function(_0x231c67){var _0x422ecc=_0x3b4ba0,_0x89fe2a=_0x231c67[0x0],_0x16363b=_0x231c67[0x1];typeof _0x16363b==_0x422ecc(0x1e4)&&(_0x549c72[_0x89fe2a]=_0x16363b[_0x422ecc(0x239)](/url\(#(.*)\)/,_0x422ecc(0x220)[_0x422ecc(0x1cb)](_0x4754e8[_0x422ecc(0x1ab)],')')));})),_0x549c72;}function xe(_0x544656,_0x459a36){var _0x1efb1c=_0x212a0b,_0x426489,_0x5cbd8b=_0x459a36[_0x1efb1c(0x22a)];return!_0x5cbd8b||_0x5cbd8b[_0x1efb1c(0x1a4)]===0x0?_0x544656:_0x544656[_0x1efb1c(0x196)]===_0x1efb1c(0x1de)&&(!((_0x426489=_0x544656[_0x1efb1c(0x1c8)])===null||_0x426489===void 0x0)&&_0x426489[_0x1efb1c(0x1a4)])?c(c({},_0x544656),{'children':_0x544656[_0x1efb1c(0x1c8)][_0x1efb1c(0x23e)](function(_0x4577b2){var _0x467322=_0x1efb1c;return typeof _0x4577b2[_0x467322(0x1a9)]['id']==_0x467322(0x1e4)&&_0x5cbd8b&&_0x5cbd8b[_0x467322(0x1e2)](_0x4577b2[_0x467322(0x1a9)]['id'])?c(c({},_0x4577b2),{'attrs':c(c({},_0x4577b2[_0x467322(0x1a9)]),{'id':_0x4577b2['attrs']['id']+_0x459a36[_0x467322(0x1ab)]})}):_0x4577b2;})}):_0x544656;}function _0x137c(){var _0x401d58=['live-share-icon','onCommandExecuted','concat','_fetchOperations','then','parse','not-following','stringify','default','apply','random','call','univerjs-icon\x20univerjs-icon-','You\x27re\x20following\x20the\x20presenter','evenodd','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitAdded$','symbol','assign','presenter','_handleOperation','defs','_entities','getMemberID','event$','includes','_unitID','string','116874wmPrRA','prototype','live-share.config','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','delete','_configService','params','get','dispose','746728HrMQPa','function','shouldShareOperation','has','26442225zWSnmw','displayName','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','requireSession','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','mutations','none','PRESENTING','currentColor','defineProperty','_config','xlink:href','pipe','_reporters','asObservable','57nPdUri','1576253WopNlp','getConfig','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','_init','_handleOffline','1795542GSRAkT','following','UNIVER_SHEET','unitId','getOwnPropertyDescriptor','substring','complete','Start','colorChannel1','LIVESHARE_TERMINATE','pluginName','_beIdle','_sharedOperations','send','getOwnPropertySymbols','Present\x20this\x20document','_commandDisposable','stopFollowing','0\x200\x2017\x2017','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','url(#$1','getCurrentTypeOfUnit$','button','reverse','_startPresenting','_collabSessionService','idle','fill','text','init','defIds','_handleTerminate','LIVESHARE_REQUEST_HOST','2005048CyGOcs','div','_status','entries','LIVESHARE_OPERATION','OPERATION','_stopFollowing','_stopPresenting','getLiveShareCoordinator','_liveShareService','presenting','hasOwnProperty','replace','executeCommand','Start\x20following','_injector','onRendered','map','trim','createInstance','_status$','FOLLOWING','LiveShareIcon','startFollowing','sheet','UNIVER_UNKNOWN','extend','tag','next','find','_handleNewHost','add','_handleNewChangeSets','className','tryStartPresenting','_startLiveShareCoordinator','IDLE','data','HEADER_MENU','_startFollowing','9650646hwjRrV','length','values','dispose$','univer-size-4','icon','attrs','subscribe','idSuffix','registerSharedOperation','_uiPartsService','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','getValue','1em','onStarting','OFFLINE','UniverIcon','_commandService','_mountLiveShare','type','offline','Stop\x20presenting','set','_univerInstanceService','Stop\x20following','getUnitId','_collabSession','indexOf','NEW_CHANGESETS','mask','end','15XvvSgw','current','ONLINE','status$','stopPresenting','forEach','children'];_0x137c=function(){return _0x401d58;};return _0x137c();}function Le(){var _0x59ce58=_0x212a0b;return Math[_0x59ce58(0x1d3)]()['toString'](0x24)[_0x59ce58(0x211)](0x2,0x8);}W[_0x212a0b(0x1f4)]=_0x212a0b(0x1b3);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x212a0b(0x1fc),'viewBox':_0x212a0b(0x21e),'width':'1em','height':_0x212a0b(0x1b0)},'children':[{'tag':'path','attrs':{'fill':_0x212a0b(0x1fe),'d':_0x212a0b(0x21f)}},{'tag':'path','attrs':{'fill':_0x212a0b(0x1fe),'d':_0x212a0b(0x1f5),'fillRule':_0x212a0b(0x1d7),'clipRule':_0x212a0b(0x1d7)}}]},B=_0x51620e(function(_0x33eb6c,_0x3c5cb5){var _0xcf2ef3=_0x212a0b;return _0x4edc06(W,Object[_0xcf2ef3(0x1db)]({},_0x33eb6c,{'id':_0xcf2ef3(0x1c9),'ref':_0x3c5cb5,'icon':ye}));});B['displayName']=_0x212a0b(0x243);var Re=Object[_0x212a0b(0x210)],Z=(_0x1eb63a,_0x3a6dce,_0x3edf2e,_0x52d310)=>{var _0x2329e0=_0x212a0b;for(var _0x432123=_0x52d310>0x1?void 0x0:_0x52d310?Re(_0x3a6dce,_0x3edf2e):_0x3a6dce,_0x248e67=_0x1eb63a[_0x2329e0(0x1a4)]-0x1,_0x42b225;_0x248e67>=0x0;_0x248e67--)(_0x42b225=_0x1eb63a[_0x248e67])&&(_0x432123=_0x42b225(_0x432123)||_0x432123);return _0x432123;},f=(_0x9482d7,_0x54c0b7)=>(_0x19f41d,_0x2f99d0)=>_0x54c0b7(_0x19f41d,_0x2f99d0,_0x9482d7);let I=class extends _0x31b7cc{constructor(_0x4701c5,_0x531ef9,_0x4b7e9a){var _0x378f7a=_0x212a0b;super(),d(this,_0x378f7a(0x1df),new Map()),(this[_0x378f7a(0x1ba)]=_0x4701c5,this[_0x378f7a(0x23c)]=_0x531ef9,this[_0x378f7a(0x225)]=_0x4b7e9a,this[_0x378f7a(0x20a)]());}async[_0x212a0b(0x235)](_0x39f73b){var _0x40c656=_0x212a0b;return this[_0x40c656(0x1df)][_0x40c656(0x1f2)](_0x39f73b)||await this['_startLiveShareCoordinator'](_0x39f73b),this[_0x40c656(0x1df)][_0x40c656(0x1ed)](_0x39f73b);}[_0x212a0b(0x20a)](){var _0x503487=_0x212a0b;this[_0x503487(0x1ba)][_0x503487(0x1d9)](_0x7d8114[_0x503487(0x20e)])[_0x503487(0x202)](_0x5982e3(this[_0x503487(0x1a6)]))['subscribe'](async _0xd13c10=>{var _0x1256a7=_0x503487;const _0x47b6cd=_0xd13c10[_0x1256a7(0x1bc)]();this[_0x1256a7(0x1df)]['has'](_0x47b6cd)||this[_0x1256a7(0x19e)](_0x47b6cd);}),this[_0x503487(0x1ba)]['getTypeOfUnitDisposed$'](_0x7d8114[_0x503487(0x20e)])['pipe'](_0x5982e3(this[_0x503487(0x1a6)]))[_0x503487(0x1aa)](_0x360cd1=>{var _0x17b5d9=_0x503487;const _0x38189b=_0x360cd1[_0x17b5d9(0x1bc)](),_0x2ea84c=this[_0x17b5d9(0x1df)][_0x17b5d9(0x1ed)](_0x38189b);_0x2ea84c==null||_0x2ea84c[_0x17b5d9(0x1ee)]();});}async[_0x212a0b(0x19e)](_0x13e060){var _0x49f604=_0x212a0b;const _0x454f6a=await this[_0x49f604(0x225)][_0x49f604(0x1f6)](_0x13e060),_0x51bbad=this[_0x49f604(0x23c)][_0x49f604(0x240)](C,_0x13e060,_0x454f6a);return _0x51bbad[_0x49f604(0x229)](),this[_0x49f604(0x1df)][_0x49f604(0x1b9)](_0x13e060,_0x51bbad),_0x51bbad;}};I=Z([f(0x0,_0x4da2fc),f(0x1,_0x2a903a(_0x34e4e4)),f(0x2,_0x2a903a(_0x3be506))],I);var h=(_0x4ca2b6=>(_0x4ca2b6[_0x212a0b(0x1b2)]=_0x212a0b(0x1b7),_0x4ca2b6['IDLE']=_0x212a0b(0x226),_0x4ca2b6[_0x212a0b(0x242)]=_0x212a0b(0x20d),_0x4ca2b6[_0x212a0b(0x1e9)]=_0x212a0b(0x1cf),_0x4ca2b6[_0x212a0b(0x1fd)]='presenting',_0x4ca2b6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x31b7cc{constructor(_0x1b6759,_0x11254b,_0x4d9712,_0x406d4e,_0x1b96c7){var _0x2a0541=_0x212a0b;super(),d(this,_0x2a0541(0x241),new _0x2693df(_0x2a0541(0x226))),d(this,_0x2a0541(0x1c5),this[_0x2a0541(0x241)][_0x2a0541(0x204)]()),d(this,'_init',!0x1),d(this,_0x2a0541(0x21c),null),d(this,'_presenter',null),(this[_0x2a0541(0x1e3)]=_0x1b6759,this[_0x2a0541(0x1bd)]=_0x11254b,this['_configService']=_0x4d9712,this[_0x2a0541(0x236)]=_0x406d4e,this[_0x2a0541(0x1b4)]=_0x1b96c7);}get[_0x212a0b(0x22f)](){var _0x252e24=_0x212a0b;return this['_status$'][_0x252e24(0x1af)]();}[_0x212a0b(0x1ee)](){var _0x2d6519=_0x212a0b,_0x2c79b5;(_0x2c79b5=this[_0x2d6519(0x21c)])==null||_0x2c79b5['dispose'](),this[_0x2d6519(0x241)][_0x2d6519(0x197)](_0x2d6519(0x226)),this[_0x2d6519(0x241)][_0x2d6519(0x212)]();}[_0x212a0b(0x229)](){var _0x3dba25=_0x212a0b;this['_init']||(this['_init']=!0x0,this[_0x3dba25(0x1bd)]['sessionStatus$'][_0x3dba25(0x202)](_0x5982e3(this[_0x3dba25(0x1a6)]))[_0x3dba25(0x1aa)](_0x5640f8=>{var _0x5dc5cc=_0x3dba25;switch(_0x5640f8){case _0x5adc85[_0x5dc5cc(0x1b2)]:this[_0x5dc5cc(0x20b)]();break;case _0x5adc85[_0x5dc5cc(0x1c4)]:this['_handleOnline']();break;}}),this[_0x3dba25(0x1bd)][_0x3dba25(0x1e1)][_0x3dba25(0x202)](_0x5982e3(this[_0x3dba25(0x1a6)]))[_0x3dba25(0x1aa)](_0x1d444c=>{var _0x2dd870=_0x3dba25;const {eventID:_0x10a186}=_0x1d444c;switch(_0x10a186){case _0xc94c04['LIVESHARE_NEW_HOST']:this[_0x2dd870(0x199)](_0x1d444c);break;case _0xc94c04[_0x2dd870(0x231)]:this[_0x2dd870(0x1dd)](_0x1d444c);break;case _0xc94c04[_0x2dd870(0x215)]:this[_0x2dd870(0x22b)]();break;case _0xc94c04[_0x2dd870(0x1bf)]:this[_0x2dd870(0x19b)](_0x1d444c);break;}}));}[_0x212a0b(0x19d)](){var _0x4d9de4=_0x212a0b;this[_0x4d9de4(0x1bd)][_0x4d9de4(0x219)]({'eventID':_0xc94c04[_0x4d9de4(0x22c)],'data':{'unitID':this[_0x4d9de4(0x1e3)],'userID':this['_collabSession'][_0x4d9de4(0x1e0)]()}},this[_0x4d9de4(0x1e3)]);}[_0x212a0b(0x1c6)](){var _0x552ae2=_0x212a0b;this['_status']===_0x552ae2(0x237)&&(this['_status$']['next'](_0x552ae2(0x226)),this[_0x552ae2(0x1bd)][_0x552ae2(0x219)]({'eventID':_0xc94c04['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x552ae2(0x1e3)]}},this[_0x552ae2(0x1e3)]));}[_0x212a0b(0x192)](){var _0x222255=_0x212a0b;this[_0x222255(0x22f)]===_0x222255(0x1cf)&&(this[_0x222255(0x241)]['next'](_0x222255(0x20d)),this[_0x222255(0x1a2)]());}[_0x212a0b(0x21d)](){var _0x345dfb=_0x212a0b;this[_0x345dfb(0x22f)]===_0x345dfb(0x20d)&&this[_0x345dfb(0x233)]();}[_0x212a0b(0x199)](_0xae4574){var _0x2ea2e1=_0x212a0b;const {presenter:_0x44f9f8}=_0xae4574[_0x2ea2e1(0x1a0)],_0x26c636=this[_0x2ea2e1(0x1bd)][_0x2ea2e1(0x1e0)]();this[_0x2ea2e1(0x209)]=_0x44f9f8,_0x44f9f8===_0x26c636?(this['_stopFollowing'](),this[_0x2ea2e1(0x224)]()):this[_0x2ea2e1(0x22f)]!==_0x2ea2e1(0x1cf)&&(this[_0x2ea2e1(0x234)](),this[_0x2ea2e1(0x1a2)]());}[_0x212a0b(0x1cc)](){var _0x402150=_0x212a0b;const _0x149bf6={'eventID':_0xc94c04[_0x402150(0x1d8)]};this[_0x402150(0x1bd)][_0x402150(0x219)](_0x149bf6,this[_0x402150(0x1e3)]);}[_0x212a0b(0x22b)](){var _0x13d983=_0x212a0b;this[_0x13d983(0x209)]=null,this[_0x13d983(0x22f)]!==_0x13d983(0x237)&&this[_0x13d983(0x217)]();}[_0x212a0b(0x19b)](_0x19b830){var _0x5ee52e=_0x212a0b;if(this['_status']===_0x5ee52e(0x20d)&&this[_0x5ee52e(0x209)]===_0x19b830[_0x5ee52e(0x1a0)]['memberID']){const _0x5508c4=_0x8ecc71(_0x19b830[_0x5ee52e(0x1a0)])[_0x5ee52e(0x1fb)][_0x5ee52e(0x223)]()[_0x5ee52e(0x198)](_0x2b0b16=>_0x2b0b16['id']===_0x41705c['id']);if(_0x5508c4){const _0x16175e=_0x5508c4[_0x5ee52e(0x1ec)][_0x5ee52e(0x20f)],_0x3d632d=_0x5508c4[_0x5ee52e(0x1ec)][_0x5ee52e(0x193)]['id'];setTimeout(()=>{var _0x2a7337=_0x5ee52e;this[_0x2a7337(0x1b4)][_0x2a7337(0x23a)](_0x29ccd5['id'],{'unitId':_0x16175e,'subUnitId':_0x3d632d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x6392e2=_0x212a0b;this[_0x6392e2(0x241)][_0x6392e2(0x197)](_0x6392e2(0x237));const _0x33f9d0=new Map(),_0x3c5d04=this['_commandDisposable']=new _0x261b36();_0x3c5d04[_0x6392e2(0x19a)](_0x23b66d(()=>{var _0x735454=_0x6392e2;_0x33f9d0[_0x735454(0x1c7)](_0x174dab=>_0x174dab[_0x735454(0x212)]()),_0x33f9d0['clear']();})),_0x3c5d04[_0x6392e2(0x19a)](this[_0x6392e2(0x1b4)][_0x6392e2(0x1ca)](_0x26a221=>{var _0x4b3781=_0x6392e2,_0x3f31ed;if(_0x26a221[_0x4b3781(0x1b6)]!==_0xa4f37a[_0x4b3781(0x232)]||!this[_0x4b3781(0x236)]['shouldShareOperation'](_0x26a221['id']))return;const {id:_0x210d7d}=_0x26a221;let _0x10560e;_0x33f9d0[_0x4b3781(0x1f2)](_0x210d7d)?_0x10560e=_0x33f9d0[_0x4b3781(0x1ed)](_0x210d7d):(_0x10560e=new _0x453266(),_0x33f9d0['set'](_0x210d7d,_0x10560e),_0x10560e[_0x4b3781(0x202)](_0x345bce((_0x3f31ed=this['_configService'][_0x4b3781(0x207)](Pe))!=null?_0x3f31ed:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b3781(0x1aa)](_0x5c0ae6=>{var _0x2cba69=_0x4b3781;this[_0x2cba69(0x1bd)][_0x2cba69(0x219)]({'eventID':_0xc94c04[_0x2cba69(0x231)],'data':{'unitID':this[_0x2cba69(0x1e3)],'operations':{[_0x5c0ae6['id']]:{'id':_0x5c0ae6['id'],'params':JSON[_0x2cba69(0x1d0)](_0x5c0ae6[_0x2cba69(0x1ec)])}}}},this[_0x2cba69(0x1e3)]);})),_0x10560e[_0x4b3781(0x197)](_0x26a221);})),this[_0x6392e2(0x236)]['getInitialStates'](this[_0x6392e2(0x1e3)])[_0x6392e2(0x1c7)](_0x5cfc78=>this[_0x6392e2(0x1bd)][_0x6392e2(0x219)]({'eventID':_0xc94c04[_0x6392e2(0x231)],'data':{'unitID':this[_0x6392e2(0x1e3)],'operations':{[_0x5cfc78['id']]:{'id':_0x5cfc78['id'],'params':JSON[_0x6392e2(0x1d0)](_0x5cfc78[_0x6392e2(0x1ec)])}}}},this[_0x6392e2(0x1e3)]));}[_0x212a0b(0x234)](){var _0x164d96=_0x212a0b,_0x23b601;this['_status$'][_0x164d96(0x197)]('idle'),(_0x23b601=this[_0x164d96(0x21c)])==null||_0x23b601[_0x164d96(0x1ee)](),this[_0x164d96(0x21c)]=null;}['_startFollowing'](){var _0x26c5a5=_0x212a0b,_0x3f54b2;(_0x3f54b2=this[_0x26c5a5(0x21c)])==null||_0x3f54b2[_0x26c5a5(0x1ee)](),this['_status$']['next'](_0x26c5a5(0x20d));}[_0x212a0b(0x217)](){var _0x25bc0d=_0x212a0b,_0x358b4d;this[_0x25bc0d(0x241)][_0x25bc0d(0x197)](_0x25bc0d(0x226)),(_0x358b4d=this['_commandDisposable'])==null||_0x358b4d['dispose'](),this[_0x25bc0d(0x21c)]=null;}[_0x212a0b(0x233)](){var _0x396ac3=_0x212a0b,_0x1d4439;this[_0x396ac3(0x241)][_0x396ac3(0x197)](_0x396ac3(0x1cf)),(_0x1d4439=this[_0x396ac3(0x21c)])==null||_0x1d4439[_0x396ac3(0x1ee)]();}[_0x212a0b(0x1dd)](_0x425593){var _0x1dd1b7=_0x212a0b;if([_0x1dd1b7(0x237),_0x1dd1b7(0x1cf),_0x1dd1b7(0x1b7)]['includes'](this[_0x1dd1b7(0x22f)])||!_0x425593[_0x1dd1b7(0x1a0)][_0x1dd1b7(0x1dc)]||_0x425593['data'][_0x1dd1b7(0x1dc)]===this[_0x1dd1b7(0x1bd)][_0x1dd1b7(0x1e0)]())return;this[_0x1dd1b7(0x22f)]===_0x1dd1b7(0x226)&&this[_0x1dd1b7(0x1a2)]();const _0xe3e85=_0x425593[_0x1dd1b7(0x1a0)]['operations'];Object[_0x1dd1b7(0x1a5)](_0xe3e85)[_0x1dd1b7(0x1c7)](_0x264fb8=>{var _0x375a8e=_0x1dd1b7;this[_0x375a8e(0x1b4)][_0x375a8e(0x23a)](_0x264fb8['id'],_0x264fb8[_0x375a8e(0x1ec)]?JSON[_0x375a8e(0x1ce)](_0x264fb8[_0x375a8e(0x1ec)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4916bc=_0x212a0b,_0x33473b;this[_0x4916bc(0x241)]['next'](_0x4916bc(0x1b7)),(_0x33473b=this[_0x4916bc(0x21c)])==null||_0x33473b[_0x4916bc(0x1ee)]();}['_handleOnline'](){var _0x3db648=_0x212a0b;this[_0x3db648(0x241)][_0x3db648(0x197)]('idle'),this[_0x3db648(0x1cc)]();}};C=Z([f(0x2,_0x2927c4),f(0x3,_0x2a903a(L)),f(0x4,_0x37aeb9)],C);function Te(){var _0x57b9e2=_0x212a0b;const _0xc03f0a=_0x1a5a1e(I),_0x5e80d6=_0x1a5a1e(_0x4da2fc),_0x52644b=_0x1f6a23(()=>_0x5e80d6[_0x57b9e2(0x221)](_0x7d8114[_0x57b9e2(0x20e)]),void 0x0,!0x1,[]),[_0x1963d2,_0x39ab47]=_0x5bfc97(null),[_0x113e70,_0x4c8452]=_0x5bfc97(h[_0x57b9e2(0x19f)]),_0x45712f=_0x6c2f7c(null);return _0x40254c(()=>(_0x52644b&&_0xc03f0a['getLiveShareCoordinator'](_0x52644b[_0x57b9e2(0x1bc)]())[_0x57b9e2(0x1cd)](_0x184f70=>{var _0x52ea84=_0x57b9e2;_0x39ab47(_0x184f70),_0x45712f[_0x52ea84(0x1c3)]=_0x184f70['status$']['subscribe'](_0x3ab722=>{_0x4c8452(_0x3ab722);});}),()=>{var _0x2005a4=_0x57b9e2,_0x32b99f;(_0x32b99f=_0x45712f[_0x2005a4(0x1c3)])==null||_0x32b99f['unsubscribe'](),_0x45712f[_0x2005a4(0x1c3)]=null;}),[_0x52644b,_0xc03f0a]),_0x1963d2?_0x16955c(_0x5f5212,{'align':_0x57b9e2(0x1c1),'disabled':_0x113e70===h[_0x57b9e2(0x1b2)],'className':_0x57b9e2(0x1ae),'overlay':_0x16955c($e,{'status':_0x113e70,'coordinator':_0x1963d2}),'children':_0x16955c('button',{'className':_0x3cb570('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x113e70===h[_0x57b9e2(0x1b2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x113e70!==h[_0x57b9e2(0x1b2)]}),'type':_0x57b9e2(0x222),'children':_0x16955c(B,{'className':_0x57b9e2(0x1a7)})})}):null;}function _0x44be(_0x3cca48,_0x5b866e){var _0x137c38=_0x137c();return _0x44be=function(_0x44be00,_0x37ecee){_0x44be00=_0x44be00-0x192;var _0x573d12=_0x137c38[_0x44be00];return _0x573d12;},_0x44be(_0x3cca48,_0x5b866e);}function $e(_0x13045b){var _0x4a22aa=_0x212a0b;const {status:_0x5e083e,coordinator:_0x1cd777}=_0x13045b;switch(_0x5e083e){case h[_0x4a22aa(0x19f)]:return _0x16955c(Fe,{'coordinator':_0x1cd777});case h[_0x4a22aa(0x242)]:return _0x16955c(He,{'coordinator':_0x1cd777});case h[_0x4a22aa(0x1e9)]:return _0x16955c(je,{'coordinator':_0x1cd777});case h['OFFLINE']:return _0x16955c(Ve,{});case h[_0x4a22aa(0x1fd)]:return _0x16955c(Ue,{'coordinator':_0x1cd777});default:return null;}}function Fe(_0xd57302){var _0x1166bc=_0x212a0b;const {coordinator:_0x4660e2}=_0xd57302;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c(_0x1166bc(0x22e),{'className':_0x1166bc(0x208),'children':_0x1166bc(0x21b)}),_0x16955c(_0x592a35,{'onClick':()=>_0x4660e2[_0x1166bc(0x19d)](),'children':_0x1166bc(0x213)})]});}function He(_0x431dd9){var _0x386a74=_0x212a0b;const {coordinator:_0x1bcafa}=_0x431dd9;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c(_0x386a74(0x22e),{'className':_0x386a74(0x208),'children':_0x386a74(0x1d6)}),_0x16955c(_0x592a35,{'onClick':()=>_0x1bcafa['stopFollowing'](),'children':_0x386a74(0x1bb)})]});}function je(_0x36f370){var _0x180dc4=_0x212a0b;const {coordinator:_0x3349bc}=_0x36f370;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c('div',{'className':_0x180dc4(0x208),'children':_0x180dc4(0x1f8)}),_0x16955c(_0x592a35,{'variant':_0x180dc4(0x228),'onClick':()=>_0x3349bc[_0x180dc4(0x192)](),'children':_0x180dc4(0x23b)})]});}function Ue(_0x590e30){var _0x2f9c52=_0x212a0b;const {coordinator:_0x965a2a}=_0x590e30;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c(_0x2f9c52(0x22e),{'className':_0x2f9c52(0x208),'children':_0x2f9c52(0x1fa)}),_0x16955c(_0x592a35,{'variant':_0x2f9c52(0x1d1),'onClick':()=>_0x965a2a['stopPresenting'](),'children':_0x2f9c52(0x1b8)})]});}function Ve(){var _0x1036b0=_0x212a0b;return _0x16955c(_0x3cc0cd,{'children':_0x1036b0(0x1f9)});}var Me=Object[_0x212a0b(0x210)],ke=(_0x8ad6d0,_0x4f66d4,_0x29a77b,_0x177c05)=>{var _0x3c624c=_0x212a0b;for(var _0x29e7cf=_0x177c05>0x1?void 0x0:_0x177c05?Me(_0x4f66d4,_0x29a77b):_0x4f66d4,_0x5c1da3=_0x8ad6d0[_0x3c624c(0x1a4)]-0x1,_0x25db75;_0x5c1da3>=0x0;_0x5c1da3--)(_0x25db75=_0x8ad6d0[_0x5c1da3])&&(_0x29e7cf=_0x25db75(_0x29e7cf)||_0x29e7cf);return _0x29e7cf;},$=(_0x26ee10,_0x283ef7)=>(_0x4af85a,_0x312200)=>_0x283ef7(_0x4af85a,_0x312200,_0x26ee10);let b=class extends _0x4f9af4{constructor(_0x3e8570,_0x429d54){var _0x2b8622=_0x212a0b;super(),this[_0x2b8622(0x23c)]=_0x3e8570,this[_0x2b8622(0x1ad)]=_0x429d54,this[_0x2b8622(0x1b5)]();}[_0x212a0b(0x1b5)](){var _0x5a05fd=_0x212a0b;this['disposeWithMe'](this[_0x5a05fd(0x1ad)]['registerComponent'](_0x85079d[_0x5a05fd(0x1a1)],()=>_0x142ef7(Te,this['_injector'])));}};b=ke([$(0x0,_0x2a903a(_0x34e4e4)),$(0x1,_0x413ddb)],b);var Ge=Object[_0x212a0b(0x1ff)],We=Object[_0x212a0b(0x210)],Ye=(_0x2c0fa8,_0x24c447,_0x2c5164)=>_0x24c447 in _0x2c0fa8?Ge(_0x2c0fa8,_0x24c447,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5164}):_0x2c0fa8[_0x24c447]=_0x2c5164,Be=(_0x3bbb92,_0xce751c,_0x228314,_0x59ea5b)=>{for(var _0x37771d=_0x59ea5b>0x1?void 0x0:_0x59ea5b?We(_0xce751c,_0x228314):_0xce751c,_0x295d52=_0x3bbb92['length']-0x1,_0x2af42d;_0x295d52>=0x0;_0x295d52--)(_0x2af42d=_0x3bbb92[_0x295d52])&&(_0x37771d=_0x2af42d(_0x37771d)||_0x37771d);return _0x37771d;},F=(_0x30afd8,_0x50da05)=>(_0x57a1b4,_0x3aa4ac)=>_0x50da05(_0x57a1b4,_0x3aa4ac,_0x30afd8),J=(_0x40a4dc,_0x54683b,_0x2187c4)=>Ye(_0x40a4dc,typeof _0x54683b!=_0x212a0b(0x1da)?_0x54683b+'':_0x54683b,_0x2187c4);const Ze=_0x212a0b(0x1e8);let O=class extends _0x3f8097{constructor(_0x51d8e3=T,_0xe75d49,_0x1f5d11){var _0x4f5b2c=_0x212a0b;super(),this[_0x4f5b2c(0x200)]=_0x51d8e3,this[_0x4f5b2c(0x23c)]=_0xe75d49,this[_0x4f5b2c(0x1eb)]=_0x1f5d11;const {..._0xe10da9}=_0x17b2d5({},T,this[_0x4f5b2c(0x200)]);this[_0x4f5b2c(0x1eb)]['setConfig'](Oe,_0xe10da9);}[_0x212a0b(0x1b1)](){var _0x4236df=_0x212a0b;_0x3384be(this[_0x4236df(0x23c)],_0x3f0adf([[L],[I],[m],[b]],this[_0x4236df(0x200)]['override'])),_0x4a54ad(this['_injector'],[[m]]);}[_0x212a0b(0x23d)](){var _0x5a0aa6=_0x212a0b;_0x4a54ad(this[_0x5a0aa6(0x23c)],[[b]]);}};J(O,'type',_0x7d8114[_0x212a0b(0x194)]),J(O,_0x212a0b(0x216),Ze),O=Be([_0x4a9262(_0x531aad),F(0x1,_0x2a903a(_0x34e4e4)),F(0x2,_0x2927c4)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x36f681=_0x1118;(function(_0xdb3272,_0x585b5c){var _0x1af3b9=_0x1118,_0x55dcb1=_0xdb3272();while(!![]){try{var _0x15cf64=parseInt(_0x1af3b9(0x1f8))/0x1*(parseInt(_0x1af3b9(0x1a9))/0x2)+-parseInt(_0x1af3b9(0x1af))/0x3*(-parseInt(_0x1af3b9(0x1dd))/0x4)+parseInt(_0x1af3b9(0x1aa))/0x5*(-parseInt(_0x1af3b9(0x1c5))/0x6)+-parseInt(_0x1af3b9(0x17d))/0x7*(-parseInt(_0x1af3b9(0x1bf))/0x8)+-parseInt(_0x1af3b9(0x204))/0x9*(parseInt(_0x1af3b9(0x1da))/0xa)+-parseInt(_0x1af3b9(0x1a3))/0xb+-parseInt(_0x1af3b9(0x19a))/0xc*(-parseInt(_0x1af3b9(0x1f5))/0xd);if(_0x15cf64===_0x585b5c)break;else _0x55dcb1['push'](_0x55dcb1['shift']());}catch(_0x371655){_0x55dcb1['push'](_0x55dcb1['shift']());}}}(_0x1122,0x2bf65));var q=Object['defineProperty'],z=(_0x2dc5df,_0x245c31,_0x4dc601)=>_0x245c31 in _0x2dc5df?q(_0x2dc5df,_0x245c31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dc601}):_0x2dc5df[_0x245c31]=_0x4dc601,d=(_0x3ce50a,_0x1d8e50,_0x2b5a32)=>z(_0x3ce50a,typeof _0x1d8e50!=_0x36f681(0x19d)?_0x1d8e50+'':_0x1d8e50,_0x2b5a32);import{CollaborationSessionService as _0x3cbafe,SessionStatus as _0x3733f5,UniverCollaborationClientPlugin as _0x1202e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1b9b72,toDisposable as _0x4c5635,Inject as _0x2471b9,IUniverInstanceService as _0x369fcc,Injector as _0x1fff4e,IConfigService as _0x177af0,ICommandService as _0x390976,RxDisposable as _0x353398,UniverInstanceType as _0x29b044,DisposableCollection as _0x2810df,CommandType as _0x54268d,DependentOn as _0x203d04,Plugin as _0x45d0b9,merge as _0x217915,registerDependencies as _0x5b4604,mergeOverrideWithDependencies as _0x3ed2f6,touchDependencies as _0x131646}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x599ac0,InsertSheetMutation as _0x4e20ed}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x37dc55,SetScrollOperation as _0x3fbab9}from'@univerjs/sheets-ui';import{useDependency as _0x5edaac,useObservable as _0x219c95,IUIPartsService as _0x2dedba,BuiltInUIPart as _0x1eb411,connectInjector as _0x424e91}from'@univerjs/ui';import{jsx as _0x36145d,jsxs as _0x4e0c68,Fragment as _0x37245c}from'react/jsx-runtime';import{Dropdown as _0x4d6833,clsx as _0x345b91,Button as _0x52e609}from'@univerjs/design';import{forwardRef as _0x24c7ad,useRef as _0x251313,createElement as _0x980b93,useState as _0x569d59,useEffect as _0x173568}from'react';import{CollaborationEvent as _0x18ecaa,parseProtocolChangeset as _0x21841a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2b64c8,Subject as _0x47ff72}from'rxjs';import{takeUntil as _0x521a29,throttleTime as _0x61e5a1}from'rxjs/operators';const Oe=_0x36f681(0x1bb),T={};class L extends _0x1b9b72{constructor(){var _0x1f7b95=_0x36f681;super(...arguments),d(this,_0x1f7b95(0x1e9),new Set()),d(this,_0x1f7b95(0x17c),new Set());}['registerSharedOperation'](_0xafa4ca){var _0xc7e0ea=_0x36f681;return this['_sharedOperations'][_0xc7e0ea(0x177)](_0xafa4ca),_0x4c5635(()=>this['_sharedOperations'][_0xc7e0ea(0x184)](_0xafa4ca));}[_0x36f681(0x1ac)](_0x3174a6){var _0x4dcd63=_0x36f681;return this['_reporters']['add'](_0x3174a6),_0x4c5635(()=>this[_0x4dcd63(0x17c)][_0x4dcd63(0x184)](_0x3174a6));}[_0x36f681(0x17e)](_0x771b5b){var _0x1f7f10=_0x36f681;return this[_0x1f7f10(0x1e9)]['has'](_0x771b5b);}[_0x36f681(0x1a1)](_0x12879d){var _0x2a858f=_0x36f681;return Array['from'](this[_0x2a858f(0x17c)])[_0x2a858f(0x1ce)](_0x51b88f=>_0x51b88f(_0x12879d));}}var Ee=Object[_0x36f681(0x217)],we=(_0x4c2d20,_0x1d278d,_0x384d96,_0x872cfd)=>{var _0x21ab27=_0x36f681;for(var _0xb9d887=_0x872cfd>0x1?void 0x0:_0x872cfd?Ee(_0x1d278d,_0x384d96):_0x1d278d,_0x460468=_0x4c2d20[_0x21ab27(0x1e3)]-0x1,_0x2ad69d;_0x460468>=0x0;_0x460468--)(_0x2ad69d=_0x4c2d20[_0x460468])&&(_0xb9d887=_0x2ad69d(_0xb9d887)||_0xb9d887);return _0xb9d887;},Ne=(_0x1f773e,_0x4ba6d0)=>(_0x2058cd,_0x36a488)=>_0x4ba6d0(_0x2058cd,_0x36a488,_0x1f773e);let m=class extends _0x1b9b72{constructor(_0x2ba15e){var _0x5c9ab5=_0x36f681;super(),this[_0x5c9ab5(0x193)]=_0x2ba15e,this['_init']();}[_0x36f681(0x197)](){var _0x25614f=_0x36f681;[_0x37dc55['id'],_0x3fbab9['id'],_0x599ac0['id']][_0x25614f(0x1f9)](_0x5d0fa9=>{var _0x45a782=_0x25614f;this[_0x45a782(0x1a5)](this[_0x45a782(0x193)][_0x45a782(0x1ca)](_0x5d0fa9));});}};m=we([Ne(0x0,_0x2471b9(L))],m);var c=function(){var _0x53f227=_0x36f681;return c=Object['assign']||function(_0x369089){var _0x499ee0=_0x1118;for(var _0x4a3e52,_0x124ed9=0x1,_0x4b70e2=arguments[_0x499ee0(0x1e3)];_0x124ed9<_0x4b70e2;_0x124ed9++){_0x4a3e52=arguments[_0x124ed9];for(var _0x1f2fcf in _0x4a3e52)Object[_0x499ee0(0x1fc)][_0x499ee0(0x203)][_0x499ee0(0x17f)](_0x4a3e52,_0x1f2fcf)&&(_0x369089[_0x1f2fcf]=_0x4a3e52[_0x1f2fcf]);}return _0x369089;},c[_0x53f227(0x1ef)](this,arguments);},Ce=function(_0x48ad6d,_0x39d979){var _0x4fda78=_0x36f681,_0x5bc6cc={};for(var _0x54acf9 in _0x48ad6d)Object[_0x4fda78(0x1fc)]['hasOwnProperty'][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9)&&_0x39d979[_0x4fda78(0x206)](_0x54acf9)<0x0&&(_0x5bc6cc[_0x54acf9]=_0x48ad6d[_0x54acf9]);if(_0x48ad6d!=null&&typeof Object[_0x4fda78(0x1fd)]=='function'){for(var _0x387058=0x0,_0x54acf9=Object[_0x4fda78(0x1fd)](_0x48ad6d);_0x387058<_0x54acf9['length'];_0x387058++)_0x39d979[_0x4fda78(0x206)](_0x54acf9[_0x387058])<0x0&&Object[_0x4fda78(0x1fc)][_0x4fda78(0x216)][_0x4fda78(0x17f)](_0x48ad6d,_0x54acf9[_0x387058])&&(_0x5bc6cc[_0x54acf9[_0x387058]]=_0x48ad6d[_0x54acf9[_0x387058]]);}return _0x5bc6cc;},W=_0x24c7ad(function(_0x23fa1b,_0x2f0746){var _0x3db27a=_0x36f681,_0x191b9f=_0x23fa1b[_0x3db27a(0x1a2)],_0x4597ab=_0x23fa1b['id'],_0x41c6cd=_0x23fa1b[_0x3db27a(0x218)],_0x296794=_0x23fa1b[_0x3db27a(0x1b5)],_0x1858d8=Ce(_0x23fa1b,['icon','id',_0x3db27a(0x218),'extend']),_0x374a2a=_0x3db27a(0x1e8)['concat'](_0x4597ab,'\x20')[_0x3db27a(0x1f2)](_0x41c6cd||'')[_0x3db27a(0x176)](),_0x14ad55=_0x251313('_'[_0x3db27a(0x1f2)](Le()));return Y(_0x191b9f,''[_0x3db27a(0x1f2)](_0x4597ab),{'defIds':_0x191b9f[_0x3db27a(0x1d1)],'idSuffix':_0x14ad55[_0x3db27a(0x1b3)]},c({'ref':_0x2f0746,'className':_0x374a2a},_0x1858d8),_0x296794);});function Y(_0x49165a,_0x1953fb,_0x531023,_0x33197f,_0x1d5707){var _0x47c971=_0x36f681;return _0x980b93(_0x49165a[_0x47c971(0x1f3)],c(c({'key':_0x1953fb},De(_0x49165a,_0x531023,_0x1d5707)),_0x33197f),(xe(_0x49165a,_0x531023)['children']||[])['map'](function(_0x164d4f,_0x4860bd){var _0x202e62=_0x47c971;return Y(_0x164d4f,''[_0x202e62(0x1f2)](_0x1953fb,'-')['concat'](_0x49165a[_0x202e62(0x1f3)],'-')[_0x202e62(0x1f2)](_0x4860bd),_0x531023,void 0x0,_0x1d5707);}));}function De(_0x2bd1d4,_0x3c6f7a,_0x1b0537){var _0x38bf02=_0x36f681,_0x59cc43=c({},_0x2bd1d4[_0x38bf02(0x20c)]);_0x1b0537!=null&&_0x1b0537[_0x38bf02(0x1c9)]&&_0x59cc43[_0x38bf02(0x195)]===_0x38bf02(0x1c9)&&(_0x59cc43[_0x38bf02(0x195)]=_0x1b0537['colorChannel1']),_0x2bd1d4[_0x38bf02(0x1f3)]==='mask'&&_0x59cc43['id']&&(_0x59cc43['id']=_0x59cc43['id']+_0x3c6f7a[_0x38bf02(0x21d)]),Object['entries'](_0x59cc43)[_0x38bf02(0x1f9)](function(_0x19dbc5){var _0x7e7bcc=_0x38bf02,_0xb58bed=_0x19dbc5[0x0],_0x24a488=_0x19dbc5[0x1];_0xb58bed==='mask'&&typeof _0x24a488==_0x7e7bcc(0x1cb)&&(_0x59cc43[_0xb58bed]=_0x24a488['replace'](/url\(#(.*)\)/,_0x7e7bcc(0x207)['concat'](_0x3c6f7a[_0x7e7bcc(0x21d)],')')));});var _0x4b71d9=_0x3c6f7a[_0x38bf02(0x1d1)];return!_0x4b71d9||_0x4b71d9['length']===0x0||(_0x2bd1d4['tag']==='use'&&_0x59cc43[_0x38bf02(0x1f0)]&&(_0x59cc43[_0x38bf02(0x1f0)]=_0x59cc43['xlink:href']+_0x3c6f7a[_0x38bf02(0x21d)]),Object[_0x38bf02(0x1b8)](_0x59cc43)['forEach'](function(_0x23138b){var _0x430f01=_0x38bf02,_0x316463=_0x23138b[0x0],_0x5c033f=_0x23138b[0x1];typeof _0x5c033f==_0x430f01(0x1cb)&&(_0x59cc43[_0x316463]=_0x5c033f[_0x430f01(0x1d2)](/url\(#(.*)\)/,_0x430f01(0x207)[_0x430f01(0x1f2)](_0x3c6f7a[_0x430f01(0x21d)],')')));})),_0x59cc43;}function _0x1122(){var _0x1e6afd=['_handleOnline','_presenter','requireSession','Start\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','length','_config','_handleOperation','mutations','FOLLOWING','univerjs-icon\x20univerjs-icon-','_sharedOperations','registerComponent','_status','params','offline','_handleNewHost','apply','xlink:href','reverse','concat','tag','_univerInstanceService','3641131vlkuMs','getMemberID','_handleTerminate','25oZAZVy','forEach','tryStartPresenting','executeCommand','prototype','getOwnPropertySymbols','stopFollowing','_stopPresenting','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','pipe','hasOwnProperty','4356UMgVpI','defs','indexOf','url(#$1','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','currentColor','attrs','dispose','operations','_beIdle','idle','displayName','evenodd','not-following','_fetchOperations','_handleNewChangeSets','propertyIsEnumerable','getOwnPropertyDescriptor','className','PRESENTING','1em','IDLE','substring','idSuffix','_mountLiveShare','sessionStatus$','unitId','_startPresenting','trim','add','_unitID','onCommandExecuted','getUnitId','following','_reporters','7ktKENv','shouldShareOperation','call','then','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','end','You\x27re\x20following\x20the\x20presenter','delete','UNIVER_SHEET','0\x200\x2017\x2017','status$','subscribe','_handleOffline','data','unsubscribe','createInstance','includes','presenter','set','parse','_startFollowing','_configService','_liveShareService','type','fill','init','_init','stringify','_stopFollowing','12OyRnVu','has','path','symbol','LIVESHARE_FETCH_OPERATIONS','defineProperty','LIVESHARE_NEW_HOST','getInitialStates','icon','2619463rtaDEN','_startLiveShareCoordinator','disposeWithMe','none','SAME_OPERATION_SHARE_INTERVAL','_collabSessionService','14078kmtVfM','135UFjmRC','HEADER_MENU','registerInitialStateReporter','div','NEW_CHANGESETS','11967JlOGxp','live-share-icon','find','sheet','current','button','extend','text','getLiveShareCoordinator','entries','presenting','_entities','live-share.config','send','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','967704IrAjcy','next','children','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','onRendered','_status$','20826exKgWu','assign','LIVESHARE_TERMINATE','_commandDisposable','colorChannel1','registerSharedOperation','string','_commandService','getConfig','map','http://www.w3.org/2000/svg','_collabSession','defIds','replace','get','event$','getValue','complete','svg','NOT_FOLLOWING','_injector','1510fPOdDG','onStarting','You\x27are\x20offline.','8baMzcv'];_0x1122=function(){return _0x1e6afd;};return _0x1122();}function xe(_0x53d8bf,_0x23873a){var _0x228094=_0x36f681,_0x5baf9b,_0x1e839c=_0x23873a[_0x228094(0x1d1)];return!_0x1e839c||_0x1e839c[_0x228094(0x1e3)]===0x0?_0x53d8bf:_0x53d8bf[_0x228094(0x1f3)]===_0x228094(0x205)&&(!((_0x5baf9b=_0x53d8bf['children'])===null||_0x5baf9b===void 0x0)&&_0x5baf9b['length'])?c(c({},_0x53d8bf),{'children':_0x53d8bf[_0x228094(0x1c1)][_0x228094(0x1ce)](function(_0x46dbd9){var _0x5ee158=_0x228094;return typeof _0x46dbd9[_0x5ee158(0x20c)]['id']=='string'&&_0x1e839c&&_0x1e839c[_0x5ee158(0x18d)](_0x46dbd9[_0x5ee158(0x20c)]['id'])?c(c({},_0x46dbd9),{'attrs':c(c({},_0x46dbd9[_0x5ee158(0x20c)]),{'id':_0x46dbd9[_0x5ee158(0x20c)]['id']+_0x23873a[_0x5ee158(0x21d)]})}):_0x46dbd9;})}):_0x53d8bf;}function Le(){var _0x3bd3e7=_0x36f681;return Math['random']()['toString'](0x24)[_0x3bd3e7(0x21c)](0x2,0x8);}W[_0x36f681(0x211)]='UniverIcon';var ye={'tag':_0x36f681(0x1d7),'attrs':{'xmlns':_0x36f681(0x1cf),'fill':_0x36f681(0x1a6),'viewBox':_0x36f681(0x186),'width':_0x36f681(0x21a),'height':'1em'},'children':[{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x181)}},{'tag':_0x36f681(0x19c),'attrs':{'fill':_0x36f681(0x20b),'d':_0x36f681(0x1e2),'fillRule':_0x36f681(0x212),'clipRule':_0x36f681(0x212)}}]},B=_0x24c7ad(function(_0x22b41a,_0x1668ea){var _0x1fc324=_0x36f681;return _0x980b93(W,Object[_0x1fc324(0x1c6)]({},_0x22b41a,{'id':_0x1fc324(0x1b0),'ref':_0x1668ea,'icon':ye}));});B[_0x36f681(0x211)]='LiveShareIcon';var Re=Object[_0x36f681(0x217)],Z=(_0x88aed7,_0x2f396f,_0x24c757,_0x44a7dd)=>{var _0x39d1ac=_0x36f681;for(var _0xe2cf28=_0x44a7dd>0x1?void 0x0:_0x44a7dd?Re(_0x2f396f,_0x24c757):_0x2f396f,_0x4f4bcb=_0x88aed7[_0x39d1ac(0x1e3)]-0x1,_0x333c74;_0x4f4bcb>=0x0;_0x4f4bcb--)(_0x333c74=_0x88aed7[_0x4f4bcb])&&(_0xe2cf28=_0x333c74(_0xe2cf28)||_0xe2cf28);return _0xe2cf28;},f=(_0x6f0e90,_0x1c02a3)=>(_0x4e73f5,_0x3a7dff)=>_0x1c02a3(_0x4e73f5,_0x3a7dff,_0x6f0e90);let I=class extends _0x353398{constructor(_0x1d9aea,_0x12bfa0,_0x577704){var _0x5a0892=_0x36f681;super(),d(this,'_entities',new Map()),(this[_0x5a0892(0x1f4)]=_0x1d9aea,this[_0x5a0892(0x1d9)]=_0x12bfa0,this[_0x5a0892(0x1a8)]=_0x577704,this[_0x5a0892(0x197)]());}async[_0x36f681(0x1b7)](_0x4a8765){var _0x1cc18b=_0x36f681;return this[_0x1cc18b(0x1ba)][_0x1cc18b(0x19b)](_0x4a8765)||await this[_0x1cc18b(0x1a4)](_0x4a8765),this['_entities'][_0x1cc18b(0x1d3)](_0x4a8765);}[_0x36f681(0x197)](){var _0x3a588f=_0x36f681;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x29b044['UNIVER_SHEET'])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))['subscribe'](async _0x5a6736=>{var _0x535dc0=_0x3a588f;const _0x4defc5=_0x5a6736[_0x535dc0(0x17a)]();this[_0x535dc0(0x1ba)][_0x535dc0(0x19b)](_0x4defc5)||this[_0x535dc0(0x1a4)](_0x4defc5);}),this[_0x3a588f(0x1f4)][_0x3a588f(0x208)](_0x29b044[_0x3a588f(0x185)])[_0x3a588f(0x202)](_0x521a29(this[_0x3a588f(0x1be)]))[_0x3a588f(0x188)](_0x15ea23=>{var _0x4045d1=_0x3a588f;const _0x4bef80=_0x15ea23[_0x4045d1(0x17a)](),_0x5bc5ff=this[_0x4045d1(0x1ba)][_0x4045d1(0x1d3)](_0x4bef80);_0x5bc5ff==null||_0x5bc5ff[_0x4045d1(0x20d)]();});}async[_0x36f681(0x1a4)](_0x967279){var _0xa65286=_0x36f681;const _0x1a59c3=await this['_collabSessionService'][_0xa65286(0x1e0)](_0x967279),_0x270761=this[_0xa65286(0x1d9)][_0xa65286(0x18c)](C,_0x967279,_0x1a59c3);return _0x270761[_0xa65286(0x196)](),this['_entities']['set'](_0x967279,_0x270761),_0x270761;}};I=Z([f(0x0,_0x369fcc),f(0x1,_0x2471b9(_0x1fff4e)),f(0x2,_0x2471b9(_0x3cbafe))],I);var h=(_0x59e72b=>(_0x59e72b['OFFLINE']=_0x36f681(0x1ed),_0x59e72b[_0x36f681(0x21b)]='idle',_0x59e72b[_0x36f681(0x1e7)]=_0x36f681(0x17b),_0x59e72b[_0x36f681(0x1d8)]=_0x36f681(0x213),_0x59e72b[_0x36f681(0x219)]=_0x36f681(0x1b9),_0x59e72b))(h||{});const Pe=_0x36f681(0x1a7),Ae=0xc8;let C=class extends _0x353398{constructor(_0x27bc2a,_0x300c43,_0x5d2c32,_0x91ff0c,_0x5c49fe){var _0x2c1b55=_0x36f681;super(),d(this,_0x2c1b55(0x1c4),new _0x2b64c8(_0x2c1b55(0x210))),d(this,_0x2c1b55(0x187),this[_0x2c1b55(0x1c4)]['asObservable']()),d(this,_0x2c1b55(0x197),!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x2c1b55(0x178)]=_0x27bc2a,this[_0x2c1b55(0x1d0)]=_0x300c43,this[_0x2c1b55(0x192)]=_0x5d2c32,this[_0x2c1b55(0x193)]=_0x91ff0c,this[_0x2c1b55(0x1cc)]=_0x5c49fe);}get[_0x36f681(0x1eb)](){var _0x5cc586=_0x36f681;return this[_0x5cc586(0x1c4)][_0x5cc586(0x1d5)]();}['dispose'](){var _0x4dcd6a=_0x36f681,_0x6ad419;(_0x6ad419=this['_commandDisposable'])==null||_0x6ad419['dispose'](),this[_0x4dcd6a(0x1c4)][_0x4dcd6a(0x1c0)](_0x4dcd6a(0x210)),this[_0x4dcd6a(0x1c4)]['complete']();}['init'](){var _0x31b1e6=_0x36f681;this['_init']||(this[_0x31b1e6(0x197)]=!0x0,this[_0x31b1e6(0x1d0)][_0x31b1e6(0x173)][_0x31b1e6(0x202)](_0x521a29(this[_0x31b1e6(0x1be)]))[_0x31b1e6(0x188)](_0x3abe44=>{var _0x3da701=_0x31b1e6;switch(_0x3abe44){case _0x3733f5[_0x3da701(0x20a)]:this['_handleOffline']();break;case _0x3733f5['ONLINE']:this[_0x3da701(0x1de)]();break;}}),this['_collabSession'][_0x31b1e6(0x1d4)]['pipe'](_0x521a29(this['dispose$']))['subscribe'](_0x57858c=>{var _0x900d2e=_0x31b1e6;const {eventID:_0x443a62}=_0x57858c;switch(_0x443a62){case _0x18ecaa[_0x900d2e(0x1a0)]:this['_handleNewHost'](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x200)]:this[_0x900d2e(0x1e5)](_0x57858c);break;case _0x18ecaa[_0x900d2e(0x1c7)]:this[_0x900d2e(0x1f7)]();break;case _0x18ecaa[_0x900d2e(0x1ae)]:this[_0x900d2e(0x215)](_0x57858c);break;}}));}['tryStartPresenting'](){var _0x507e54=_0x36f681;this[_0x507e54(0x1d0)][_0x507e54(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x507e54(0x178)],'userID':this[_0x507e54(0x1d0)][_0x507e54(0x1f6)]()}},this[_0x507e54(0x178)]);}['stopPresenting'](){var _0x3e9083=_0x36f681;this[_0x3e9083(0x1eb)]==='presenting'&&(this[_0x3e9083(0x1c4)][_0x3e9083(0x1c0)](_0x3e9083(0x210)),this['_collabSession']['send']({'eventID':_0x18ecaa[_0x3e9083(0x1c7)],'data':{'unitID':this[_0x3e9083(0x178)]}},this[_0x3e9083(0x178)]));}['startFollowing'](){var _0x155cab=_0x36f681;this['_status']==='not-following'&&(this['_status$'][_0x155cab(0x1c0)](_0x155cab(0x17b)),this[_0x155cab(0x191)]());}[_0x36f681(0x1fe)](){var _0x4efe5e=_0x36f681;this['_status']===_0x4efe5e(0x17b)&&this[_0x4efe5e(0x199)]();}[_0x36f681(0x1ee)](_0x202fcc){var _0x495010=_0x36f681;const {presenter:_0x1e1588}=_0x202fcc['data'],_0x6bf872=this[_0x495010(0x1d0)][_0x495010(0x1f6)]();this[_0x495010(0x1df)]=_0x1e1588,_0x1e1588===_0x6bf872?(this[_0x495010(0x199)](),this[_0x495010(0x175)]()):this[_0x495010(0x1eb)]!==_0x495010(0x213)&&(this[_0x495010(0x1ff)](),this[_0x495010(0x191)]());}[_0x36f681(0x214)](){var _0x465eed=_0x36f681;const _0x21d037={'eventID':_0x18ecaa[_0x465eed(0x19e)]};this['_collabSession'][_0x465eed(0x1bc)](_0x21d037,this['_unitID']);}['_handleTerminate'](){var _0x984efd=_0x36f681;this['_presenter']=null,this[_0x984efd(0x1eb)]!==_0x984efd(0x1b9)&&this['_beIdle']();}['_handleNewChangeSets'](_0x58a016){var _0x2d391a=_0x36f681;if(this['_status']===_0x2d391a(0x17b)&&this[_0x2d391a(0x1df)]===_0x58a016[_0x2d391a(0x18a)]['memberID']){const _0x530453=_0x21841a(_0x58a016[_0x2d391a(0x18a)])[_0x2d391a(0x1e6)][_0x2d391a(0x1f1)]()[_0x2d391a(0x1b1)](_0x2ec1f7=>_0x2ec1f7['id']===_0x4e20ed['id']);if(_0x530453){const _0x167407=_0x530453[_0x2d391a(0x1ec)][_0x2d391a(0x174)],_0xa731e1=_0x530453['params'][_0x2d391a(0x1b2)]['id'];setTimeout(()=>{var _0x410b5c=_0x2d391a;this[_0x410b5c(0x1cc)][_0x410b5c(0x1fb)](_0x599ac0['id'],{'unitId':_0x167407,'subUnitId':_0xa731e1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x110739=_0x36f681;this[_0x110739(0x1c4)][_0x110739(0x1c0)](_0x110739(0x1b9));const _0x12c5c8=new Map(),_0x5a06cd=this[_0x110739(0x1c8)]=new _0x2810df();_0x5a06cd['add'](_0x4c5635(()=>{var _0x1c8557=_0x110739;_0x12c5c8[_0x1c8557(0x1f9)](_0x16d946=>_0x16d946[_0x1c8557(0x1d6)]()),_0x12c5c8['clear']();})),_0x5a06cd['add'](this[_0x110739(0x1cc)][_0x110739(0x179)](_0x1522fa=>{var _0x492fdd=_0x110739,_0x5a3e89;if(_0x1522fa[_0x492fdd(0x194)]!==_0x54268d['OPERATION']||!this[_0x492fdd(0x193)][_0x492fdd(0x17e)](_0x1522fa['id']))return;const {id:_0x134466}=_0x1522fa;let _0x599ab7;_0x12c5c8['has'](_0x134466)?_0x599ab7=_0x12c5c8[_0x492fdd(0x1d3)](_0x134466):(_0x599ab7=new _0x47ff72(),_0x12c5c8[_0x492fdd(0x18f)](_0x134466,_0x599ab7),_0x599ab7[_0x492fdd(0x202)](_0x61e5a1((_0x5a3e89=this[_0x492fdd(0x192)][_0x492fdd(0x1cd)](Pe))!=null?_0x5a3e89:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x492fdd(0x188)](_0x5298c0=>{var _0x4d3bfc=_0x492fdd;this['_collabSession'][_0x4d3bfc(0x1bc)]({'eventID':_0x18ecaa[_0x4d3bfc(0x200)],'data':{'unitID':this[_0x4d3bfc(0x178)],'operations':{[_0x5298c0['id']]:{'id':_0x5298c0['id'],'params':JSON[_0x4d3bfc(0x198)](_0x5298c0['params'])}}}},this[_0x4d3bfc(0x178)]);})),_0x599ab7[_0x492fdd(0x1c0)](_0x1522fa);})),this[_0x110739(0x193)][_0x110739(0x1a1)](this['_unitID'])[_0x110739(0x1f9)](_0x260bff=>this[_0x110739(0x1d0)][_0x110739(0x1bc)]({'eventID':_0x18ecaa['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x110739(0x178)],'operations':{[_0x260bff['id']]:{'id':_0x260bff['id'],'params':JSON[_0x110739(0x198)](_0x260bff[_0x110739(0x1ec)])}}}},this[_0x110739(0x178)]));}['_stopPresenting'](){var _0x34547e=_0x36f681,_0x2081dd;this['_status$'][_0x34547e(0x1c0)](_0x34547e(0x210)),(_0x2081dd=this['_commandDisposable'])==null||_0x2081dd[_0x34547e(0x20d)](),this[_0x34547e(0x1c8)]=null;}[_0x36f681(0x191)](){var _0x438582=_0x36f681,_0x38378e;(_0x38378e=this['_commandDisposable'])==null||_0x38378e[_0x438582(0x20d)](),this[_0x438582(0x1c4)][_0x438582(0x1c0)](_0x438582(0x17b));}[_0x36f681(0x20f)](){var _0x32684c=_0x36f681,_0x595bde;this[_0x32684c(0x1c4)][_0x32684c(0x1c0)]('idle'),(_0x595bde=this[_0x32684c(0x1c8)])==null||_0x595bde[_0x32684c(0x20d)](),this[_0x32684c(0x1c8)]=null;}[_0x36f681(0x199)](){var _0x52f7a5=_0x36f681,_0x3d317;this['_status$'][_0x52f7a5(0x1c0)]('not-following'),(_0x3d317=this['_commandDisposable'])==null||_0x3d317[_0x52f7a5(0x20d)]();}[_0x36f681(0x1e5)](_0x35b246){var _0x4f391f=_0x36f681;if([_0x4f391f(0x1b9),_0x4f391f(0x213),_0x4f391f(0x1ed)]['includes'](this[_0x4f391f(0x1eb)])||!_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x18e)]||_0x35b246['data'][_0x4f391f(0x18e)]===this[_0x4f391f(0x1d0)][_0x4f391f(0x1f6)]())return;this[_0x4f391f(0x1eb)]==='idle'&&this[_0x4f391f(0x191)]();const _0x3de8f8=_0x35b246[_0x4f391f(0x18a)][_0x4f391f(0x20e)];Object['values'](_0x3de8f8)[_0x4f391f(0x1f9)](_0x4b85ed=>{var _0x2916fc=_0x4f391f;this[_0x2916fc(0x1cc)]['executeCommand'](_0x4b85ed['id'],_0x4b85ed['params']?JSON[_0x2916fc(0x190)](_0x4b85ed['params']):null,{'fromCollab':!0x0});});}[_0x36f681(0x189)](){var _0x435422=_0x36f681,_0x32ff24;this[_0x435422(0x1c4)][_0x435422(0x1c0)](_0x435422(0x1ed)),(_0x32ff24=this['_commandDisposable'])==null||_0x32ff24[_0x435422(0x20d)]();}[_0x36f681(0x1de)](){var _0x221d05=_0x36f681;this[_0x221d05(0x1c4)][_0x221d05(0x1c0)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x177af0),f(0x3,_0x2471b9(L)),f(0x4,_0x390976)],C);function Te(){var _0x14b018=_0x36f681;const _0x196366=_0x5edaac(I),_0x4a913e=_0x5edaac(_0x369fcc),_0x318ead=_0x219c95(()=>_0x4a913e[_0x14b018(0x201)](_0x29b044['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c10d6,_0x815b5f]=_0x569d59(null),[_0x41de7d,_0x44e899]=_0x569d59(h[_0x14b018(0x21b)]),_0x18fea9=_0x251313(null);return _0x173568(()=>(_0x318ead&&_0x196366[_0x14b018(0x1b7)](_0x318ead[_0x14b018(0x17a)]())[_0x14b018(0x180)](_0x46bbc2=>{var _0x3a900a=_0x14b018;_0x815b5f(_0x46bbc2),_0x18fea9[_0x3a900a(0x1b3)]=_0x46bbc2[_0x3a900a(0x187)][_0x3a900a(0x188)](_0x29521a=>{_0x44e899(_0x29521a);});}),()=>{var _0x8dc898=_0x14b018,_0x4b30c3;(_0x4b30c3=_0x18fea9['current'])==null||_0x4b30c3[_0x8dc898(0x18b)](),_0x18fea9['current']=null;}),[_0x318ead,_0x196366]),_0x1c10d6?_0x36145d(_0x4d6833,{'align':_0x14b018(0x182),'disabled':_0x41de7d===h[_0x14b018(0x20a)],'className':_0x14b018(0x1c2),'overlay':_0x36145d($e,{'status':_0x41de7d,'coordinator':_0x1c10d6}),'children':_0x36145d(_0x14b018(0x1b4),{'className':_0x345b91('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x41de7d===h[_0x14b018(0x20a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41de7d!==h[_0x14b018(0x20a)]}),'type':_0x14b018(0x1b4),'children':_0x36145d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x3c98b9){var _0x26aba9=_0x36f681;const {status:_0x311b04,coordinator:_0x22e24c}=_0x3c98b9;switch(_0x311b04){case h[_0x26aba9(0x21b)]:return _0x36145d(Fe,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1e7)]:return _0x36145d(He,{'coordinator':_0x22e24c});case h[_0x26aba9(0x1d8)]:return _0x36145d(je,{'coordinator':_0x22e24c});case h[_0x26aba9(0x20a)]:return _0x36145d(Ve,{});case h['PRESENTING']:return _0x36145d(Ue,{'coordinator':_0x22e24c});default:return null;}}function Fe(_0x285b92){var _0x4fba19=_0x36f681;const {coordinator:_0x330a02}=_0x285b92;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x4fba19(0x1ad),{'className':_0x4fba19(0x209),'children':'Present\x20this\x20document'}),_0x36145d(_0x52e609,{'onClick':()=>_0x330a02[_0x4fba19(0x1fa)](),'children':'Start'})]});}function He(_0x4a460e){var _0x225627=_0x36f681;const {coordinator:_0x1737a5}=_0x4a460e;return _0x4e0c68(_0x37245c,{'children':[_0x36145d('div',{'className':_0x225627(0x209),'children':_0x225627(0x183)}),_0x36145d(_0x52e609,{'onClick':()=>_0x1737a5[_0x225627(0x1fe)](),'children':'Stop\x20following'})]});}function je(_0x1870dc){var _0x23e770=_0x36f681;const {coordinator:_0x6390a1}=_0x1870dc;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x23e770(0x1ad),{'className':_0x23e770(0x209),'children':_0x23e770(0x1bd)}),_0x36145d(_0x52e609,{'variant':_0x23e770(0x1b6),'onClick':()=>_0x6390a1['startFollowing'](),'children':_0x23e770(0x1e1)})]});}function Ue(_0xdf902a){var _0x477aa0=_0x36f681;const {coordinator:_0xbd6968}=_0xdf902a;return _0x4e0c68(_0x37245c,{'children':[_0x36145d(_0x477aa0(0x1ad),{'className':_0x477aa0(0x209),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x36145d(_0x52e609,{'variant':'default','onClick':()=>_0xbd6968['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x25caba=_0x36f681;return _0x36145d(_0x37245c,{'children':_0x25caba(0x1dc)});}var Me=Object[_0x36f681(0x217)],ke=(_0x506371,_0xb98d2,_0x260cde,_0x2538bc)=>{for(var _0x7905a8=_0x2538bc>0x1?void 0x0:_0x2538bc?Me(_0xb98d2,_0x260cde):_0xb98d2,_0x3ffc60=_0x506371['length']-0x1,_0x4c99d0;_0x3ffc60>=0x0;_0x3ffc60--)(_0x4c99d0=_0x506371[_0x3ffc60])&&(_0x7905a8=_0x4c99d0(_0x7905a8)||_0x7905a8);return _0x7905a8;},$=(_0x522098,_0x44d5d7)=>(_0x5411a8,_0x3da77b)=>_0x44d5d7(_0x5411a8,_0x3da77b,_0x522098);let b=class extends _0x1b9b72{constructor(_0x5308ad,_0x3000d9){var _0x4bbe50=_0x36f681;super(),this['_injector']=_0x5308ad,this['_uiPartsService']=_0x3000d9,this[_0x4bbe50(0x172)]();}[_0x36f681(0x172)](){var _0x1a5a8c=_0x36f681;this[_0x1a5a8c(0x1a5)](this['_uiPartsService'][_0x1a5a8c(0x1ea)](_0x1eb411[_0x1a5a8c(0x1ab)],()=>_0x424e91(Te,this[_0x1a5a8c(0x1d9)])));}};b=ke([$(0x0,_0x2471b9(_0x1fff4e)),$(0x1,_0x2dedba)],b);var Ge=Object[_0x36f681(0x19f)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1c29af,_0x2370ab,_0x4e53f6)=>_0x2370ab in _0x1c29af?Ge(_0x1c29af,_0x2370ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e53f6}):_0x1c29af[_0x2370ab]=_0x4e53f6,Be=(_0x1cb8fe,_0x5a0f02,_0x321f17,_0x38d04e)=>{var _0x32ed12=_0x36f681;for(var _0xc91ee4=_0x38d04e>0x1?void 0x0:_0x38d04e?We(_0x5a0f02,_0x321f17):_0x5a0f02,_0x16c8c0=_0x1cb8fe[_0x32ed12(0x1e3)]-0x1,_0x48a408;_0x16c8c0>=0x0;_0x16c8c0--)(_0x48a408=_0x1cb8fe[_0x16c8c0])&&(_0xc91ee4=_0x48a408(_0xc91ee4)||_0xc91ee4);return _0xc91ee4;},F=(_0x85f717,_0x330f0b)=>(_0x3d61bf,_0xd9e91b)=>_0x330f0b(_0x3d61bf,_0xd9e91b,_0x85f717),J=(_0x2c8589,_0x2122fc,_0xed60c)=>Ye(_0x2c8589,typeof _0x2122fc!=_0x36f681(0x19d)?_0x2122fc+'':_0x2122fc,_0xed60c);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x45d0b9{constructor(_0x19cc28=T,_0x1d477a,_0x57c76a){var _0x508448=_0x36f681;super(),this[_0x508448(0x1e4)]=_0x19cc28,this['_injector']=_0x1d477a,this[_0x508448(0x192)]=_0x57c76a;const {..._0x121fe8}=_0x217915({},T,this[_0x508448(0x1e4)]);this[_0x508448(0x192)]['setConfig'](Oe,_0x121fe8);}[_0x36f681(0x1db)](){var _0x227760=_0x36f681;_0x5b4604(this['_injector'],_0x3ed2f6([[L],[I],[m],[b]],this[_0x227760(0x1e4)]['override'])),_0x131646(this['_injector'],[[m]]);}[_0x36f681(0x1c3)](){var _0xaced68=_0x36f681;_0x131646(this[_0xaced68(0x1d9)],[[b]]);}};function _0x1118(_0x311923,_0x33f539){var _0x112254=_0x1122();return _0x1118=function(_0x1118dd,_0xefd13e){_0x1118dd=_0x1118dd-0x172;var _0x3191ea=_0x112254[_0x1118dd];return _0x3191ea;},_0x1118(_0x311923,_0x33f539);}J(O,'type',_0x29b044['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x203d04(_0x1202e1),F(0x1,_0x2471b9(_0x1fff4e)),F(0x2,_0x177af0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x212a0b=_0x44be;(function(_0x1d1824,_0x33b605){var _0xebe5d4=_0x44be,_0x5b7978=_0x1d1824();while(!![]){try{var _0x19842c=parseInt(_0xebe5d4(0x20c))/0x1+-parseInt(_0xebe5d4(0x1e5))/0x2*(parseInt(_0xebe5d4(0x205))/0x3)+-parseInt(_0xebe5d4(0x1ef))/0x4*(parseInt(_0xebe5d4(0x1c2))/0x5)+-parseInt(_0xebe5d4(0x1a3))/0x6+-parseInt(_0xebe5d4(0x206))/0x7+-parseInt(_0xebe5d4(0x22d))/0x8+parseInt(_0xebe5d4(0x1f3))/0x9;if(_0x19842c===_0x33b605)break;else _0x5b7978['push'](_0x5b7978['shift']());}catch(_0x41c563){_0x5b7978['push'](_0x5b7978['shift']());}}}(_0x137c,0xef017));var q=Object[_0x212a0b(0x1ff)],z=(_0x464442,_0x3dbc1c,_0x2d7b6b)=>_0x3dbc1c in _0x464442?q(_0x464442,_0x3dbc1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d7b6b}):_0x464442[_0x3dbc1c]=_0x2d7b6b,d=(_0x50846f,_0x53dfc3,_0x11d7f8)=>z(_0x50846f,typeof _0x53dfc3!=_0x212a0b(0x1da)?_0x53dfc3+'':_0x53dfc3,_0x11d7f8);import{CollaborationSessionService as _0x3be506,SessionStatus as _0x5adc85,UniverCollaborationClientPlugin as _0x531aad}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4f9af4,toDisposable as _0x23b66d,Inject as _0x2a903a,IUniverInstanceService as _0x4da2fc,Injector as _0x34e4e4,IConfigService as _0x2927c4,ICommandService as _0x37aeb9,RxDisposable as _0x31b7cc,UniverInstanceType as _0x7d8114,DisposableCollection as _0x261b36,CommandType as _0xa4f37a,DependentOn as _0x4a9262,Plugin as _0x3f8097,merge as _0x17b2d5,registerDependencies as _0x3384be,mergeOverrideWithDependencies as _0x3f0adf,touchDependencies as _0x4a54ad}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x29ccd5,InsertSheetMutation as _0x41705c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x1385a5,SetScrollOperation as _0x4d7403}from'@univerjs/sheets-ui';import{useDependency as _0x1a5a1e,useObservable as _0x1f6a23,IUIPartsService as _0x413ddb,BuiltInUIPart as _0x85079d,connectInjector as _0x142ef7}from'@univerjs/ui';import{jsx as _0x16955c,jsxs as _0x1576d8,Fragment as _0x3cc0cd}from'react/jsx-runtime';import{Dropdown as _0x5f5212,clsx as _0x3cb570,Button as _0x592a35}from'@univerjs/design';import{forwardRef as _0x51620e,useRef as _0x6c2f7c,createElement as _0x4edc06,useState as _0x5bfc97,useEffect as _0x40254c}from'react';import{CollaborationEvent as _0xc94c04,parseProtocolChangeset as _0x8ecc71}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2693df,Subject as _0x453266}from'rxjs';import{takeUntil as _0x5982e3,throttleTime as _0x345bce}from'rxjs/operators';const Oe=_0x212a0b(0x1e7),T={};class L extends _0x4f9af4{constructor(){var _0x5899bb=_0x212a0b;super(...arguments),d(this,_0x5899bb(0x218),new Set()),d(this,'_reporters',new Set());}[_0x212a0b(0x1ac)](_0x1f3e5b){var _0x43446a=_0x212a0b;return this[_0x43446a(0x218)][_0x43446a(0x19a)](_0x1f3e5b),_0x23b66d(()=>this[_0x43446a(0x218)]['delete'](_0x1f3e5b));}[_0x212a0b(0x1f7)](_0x121531){var _0x23e1ab=_0x212a0b;return this['_reporters'][_0x23e1ab(0x19a)](_0x121531),_0x23b66d(()=>this[_0x23e1ab(0x203)][_0x23e1ab(0x1ea)](_0x121531));}[_0x212a0b(0x1f1)](_0x21f06a){var _0x1f2365=_0x212a0b;return this[_0x1f2365(0x218)][_0x1f2365(0x1f2)](_0x21f06a);}['getInitialStates'](_0x2ab30d){var _0x1a53c=_0x212a0b;return Array['from'](this[_0x1a53c(0x203)])['map'](_0x2d09c1=>_0x2d09c1(_0x2ab30d));}}var Ee=Object[_0x212a0b(0x210)],we=(_0x617c29,_0x4b4a87,_0x3d97e0,_0x2bb308)=>{for(var _0x14589b=_0x2bb308>0x1?void 0x0:_0x2bb308?Ee(_0x4b4a87,_0x3d97e0):_0x4b4a87,_0x13a5da=_0x617c29['length']-0x1,_0x2d2909;_0x13a5da>=0x0;_0x13a5da--)(_0x2d2909=_0x617c29[_0x13a5da])&&(_0x14589b=_0x2d2909(_0x14589b)||_0x14589b);return _0x14589b;},Ne=(_0x1642a9,_0x37f408)=>(_0x354045,_0x19c6aa)=>_0x37f408(_0x354045,_0x19c6aa,_0x1642a9);let m=class extends _0x4f9af4{constructor(_0x2c5fba){var _0x4d19d1=_0x212a0b;super(),this[_0x4d19d1(0x236)]=_0x2c5fba,this[_0x4d19d1(0x20a)]();}[_0x212a0b(0x20a)](){var _0xf44357=_0x212a0b;[_0x1385a5['id'],_0x4d7403['id'],_0x29ccd5['id']][_0xf44357(0x1c7)](_0x55603c=>{var _0x48d85d=_0xf44357;this['disposeWithMe'](this['_liveShareService'][_0x48d85d(0x1ac)](_0x55603c));});}};m=we([Ne(0x0,_0x2a903a(L))],m);var c=function(){var _0x3f0c33=_0x212a0b;return c=Object[_0x3f0c33(0x1db)]||function(_0x565047){var _0xa34c75=_0x3f0c33;for(var _0x37de1a,_0x1e36e8=0x1,_0x6a2d67=arguments[_0xa34c75(0x1a4)];_0x1e36e8<_0x6a2d67;_0x1e36e8++){_0x37de1a=arguments[_0x1e36e8];for(var _0x2ad968 in _0x37de1a)Object[_0xa34c75(0x1e6)][_0xa34c75(0x238)]['call'](_0x37de1a,_0x2ad968)&&(_0x565047[_0x2ad968]=_0x37de1a[_0x2ad968]);}return _0x565047;},c[_0x3f0c33(0x1d2)](this,arguments);},Ce=function(_0x4b686a,_0x2c2ee3){var _0x5d5b64=_0x212a0b,_0x414618={};for(var _0x248395 in _0x4b686a)Object[_0x5d5b64(0x1e6)][_0x5d5b64(0x238)]['call'](_0x4b686a,_0x248395)&&_0x2c2ee3[_0x5d5b64(0x1be)](_0x248395)<0x0&&(_0x414618[_0x248395]=_0x4b686a[_0x248395]);if(_0x4b686a!=null&&typeof Object[_0x5d5b64(0x21a)]==_0x5d5b64(0x1f0)){for(var _0x547299=0x0,_0x248395=Object[_0x5d5b64(0x21a)](_0x4b686a);_0x547299<_0x248395[_0x5d5b64(0x1a4)];_0x547299++)_0x2c2ee3[_0x5d5b64(0x1be)](_0x248395[_0x547299])<0x0&&Object[_0x5d5b64(0x1e6)]['propertyIsEnumerable'][_0x5d5b64(0x1d4)](_0x4b686a,_0x248395[_0x547299])&&(_0x414618[_0x248395[_0x547299]]=_0x4b686a[_0x248395[_0x547299]]);}return _0x414618;},W=_0x51620e(function(_0xeb91f5,_0x159e76){var _0x138292=_0x212a0b,_0x432af2=_0xeb91f5[_0x138292(0x1a8)],_0x2fe9d3=_0xeb91f5['id'],_0x16fb20=_0xeb91f5[_0x138292(0x19c)],_0xcfef7c=_0xeb91f5[_0x138292(0x195)],_0x2946ab=Ce(_0xeb91f5,[_0x138292(0x1a8),'id',_0x138292(0x19c),_0x138292(0x195)]),_0x122b7e=_0x138292(0x1d5)[_0x138292(0x1cb)](_0x2fe9d3,'\x20')[_0x138292(0x1cb)](_0x16fb20||'')[_0x138292(0x23f)](),_0x3236dc=_0x6c2f7c('_'[_0x138292(0x1cb)](Le()));return Y(_0x432af2,''[_0x138292(0x1cb)](_0x2fe9d3),{'defIds':_0x432af2['defIds'],'idSuffix':_0x3236dc[_0x138292(0x1c3)]},c({'ref':_0x159e76,'className':_0x122b7e},_0x2946ab),_0xcfef7c);});function Y(_0xb0f05b,_0x2172be,_0x5a504c,_0x45287f,_0x54118b){var _0x5480a8=_0x212a0b;return _0x4edc06(_0xb0f05b[_0x5480a8(0x196)],c(c({'key':_0x2172be},De(_0xb0f05b,_0x5a504c,_0x54118b)),_0x45287f),(xe(_0xb0f05b,_0x5a504c)[_0x5480a8(0x1c8)]||[])[_0x5480a8(0x23e)](function(_0x53398d,_0x437a36){var _0xb7c262=_0x5480a8;return Y(_0x53398d,''[_0xb7c262(0x1cb)](_0x2172be,'-')[_0xb7c262(0x1cb)](_0xb0f05b[_0xb7c262(0x196)],'-')['concat'](_0x437a36),_0x5a504c,void 0x0,_0x54118b);}));}function De(_0x53dc71,_0x4754e8,_0x3f51f0){var _0x3b4ba0=_0x212a0b,_0x549c72=c({},_0x53dc71[_0x3b4ba0(0x1a9)]);_0x3f51f0!=null&&_0x3f51f0[_0x3b4ba0(0x214)]&&_0x549c72['fill']===_0x3b4ba0(0x214)&&(_0x549c72[_0x3b4ba0(0x227)]=_0x3f51f0[_0x3b4ba0(0x214)]),_0x53dc71['tag']==='mask'&&_0x549c72['id']&&(_0x549c72['id']=_0x549c72['id']+_0x4754e8[_0x3b4ba0(0x1ab)]),Object[_0x3b4ba0(0x230)](_0x549c72)[_0x3b4ba0(0x1c7)](function(_0x2bdfd2){var _0x1b4fe1=_0x3b4ba0,_0x12b588=_0x2bdfd2[0x0],_0x3c3387=_0x2bdfd2[0x1];_0x12b588===_0x1b4fe1(0x1c0)&&typeof _0x3c3387==_0x1b4fe1(0x1e4)&&(_0x549c72[_0x12b588]=_0x3c3387[_0x1b4fe1(0x239)](/url\(#(.*)\)/,_0x1b4fe1(0x220)['concat'](_0x4754e8[_0x1b4fe1(0x1ab)],')')));});var _0x328c93=_0x4754e8[_0x3b4ba0(0x22a)];return!_0x328c93||_0x328c93[_0x3b4ba0(0x1a4)]===0x0||(_0x53dc71[_0x3b4ba0(0x196)]==='use'&&_0x549c72['xlink:href']&&(_0x549c72[_0x3b4ba0(0x201)]=_0x549c72[_0x3b4ba0(0x201)]+_0x4754e8[_0x3b4ba0(0x1ab)]),Object[_0x3b4ba0(0x230)](_0x549c72)[_0x3b4ba0(0x1c7)](function(_0x231c67){var _0x422ecc=_0x3b4ba0,_0x89fe2a=_0x231c67[0x0],_0x16363b=_0x231c67[0x1];typeof _0x16363b==_0x422ecc(0x1e4)&&(_0x549c72[_0x89fe2a]=_0x16363b[_0x422ecc(0x239)](/url\(#(.*)\)/,_0x422ecc(0x220)[_0x422ecc(0x1cb)](_0x4754e8[_0x422ecc(0x1ab)],')')));})),_0x549c72;}function xe(_0x544656,_0x459a36){var _0x1efb1c=_0x212a0b,_0x426489,_0x5cbd8b=_0x459a36[_0x1efb1c(0x22a)];return!_0x5cbd8b||_0x5cbd8b[_0x1efb1c(0x1a4)]===0x0?_0x544656:_0x544656[_0x1efb1c(0x196)]===_0x1efb1c(0x1de)&&(!((_0x426489=_0x544656[_0x1efb1c(0x1c8)])===null||_0x426489===void 0x0)&&_0x426489[_0x1efb1c(0x1a4)])?c(c({},_0x544656),{'children':_0x544656[_0x1efb1c(0x1c8)][_0x1efb1c(0x23e)](function(_0x4577b2){var _0x467322=_0x1efb1c;return typeof _0x4577b2[_0x467322(0x1a9)]['id']==_0x467322(0x1e4)&&_0x5cbd8b&&_0x5cbd8b[_0x467322(0x1e2)](_0x4577b2[_0x467322(0x1a9)]['id'])?c(c({},_0x4577b2),{'attrs':c(c({},_0x4577b2[_0x467322(0x1a9)]),{'id':_0x4577b2['attrs']['id']+_0x459a36[_0x467322(0x1ab)]})}):_0x4577b2;})}):_0x544656;}function _0x137c(){var _0x401d58=['live-share-icon','onCommandExecuted','concat','_fetchOperations','then','parse','not-following','stringify','default','apply','random','call','univerjs-icon\x20univerjs-icon-','You\x27re\x20following\x20the\x20presenter','evenodd','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitAdded$','symbol','assign','presenter','_handleOperation','defs','_entities','getMemberID','event$','includes','_unitID','string','116874wmPrRA','prototype','live-share.config','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','delete','_configService','params','get','dispose','746728HrMQPa','function','shouldShareOperation','has','26442225zWSnmw','displayName','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','requireSession','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','mutations','none','PRESENTING','currentColor','defineProperty','_config','xlink:href','pipe','_reporters','asObservable','57nPdUri','1576253WopNlp','getConfig','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','_init','_handleOffline','1795542GSRAkT','following','UNIVER_SHEET','unitId','getOwnPropertyDescriptor','substring','complete','Start','colorChannel1','LIVESHARE_TERMINATE','pluginName','_beIdle','_sharedOperations','send','getOwnPropertySymbols','Present\x20this\x20document','_commandDisposable','stopFollowing','0\x200\x2017\x2017','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','url(#$1','getCurrentTypeOfUnit$','button','reverse','_startPresenting','_collabSessionService','idle','fill','text','init','defIds','_handleTerminate','LIVESHARE_REQUEST_HOST','2005048CyGOcs','div','_status','entries','LIVESHARE_OPERATION','OPERATION','_stopFollowing','_stopPresenting','getLiveShareCoordinator','_liveShareService','presenting','hasOwnProperty','replace','executeCommand','Start\x20following','_injector','onRendered','map','trim','createInstance','_status$','FOLLOWING','LiveShareIcon','startFollowing','sheet','UNIVER_UNKNOWN','extend','tag','next','find','_handleNewHost','add','_handleNewChangeSets','className','tryStartPresenting','_startLiveShareCoordinator','IDLE','data','HEADER_MENU','_startFollowing','9650646hwjRrV','length','values','dispose$','univer-size-4','icon','attrs','subscribe','idSuffix','registerSharedOperation','_uiPartsService','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','getValue','1em','onStarting','OFFLINE','UniverIcon','_commandService','_mountLiveShare','type','offline','Stop\x20presenting','set','_univerInstanceService','Stop\x20following','getUnitId','_collabSession','indexOf','NEW_CHANGESETS','mask','end','15XvvSgw','current','ONLINE','status$','stopPresenting','forEach','children'];_0x137c=function(){return _0x401d58;};return _0x137c();}function Le(){var _0x59ce58=_0x212a0b;return Math[_0x59ce58(0x1d3)]()['toString'](0x24)[_0x59ce58(0x211)](0x2,0x8);}W[_0x212a0b(0x1f4)]=_0x212a0b(0x1b3);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x212a0b(0x1fc),'viewBox':_0x212a0b(0x21e),'width':'1em','height':_0x212a0b(0x1b0)},'children':[{'tag':'path','attrs':{'fill':_0x212a0b(0x1fe),'d':_0x212a0b(0x21f)}},{'tag':'path','attrs':{'fill':_0x212a0b(0x1fe),'d':_0x212a0b(0x1f5),'fillRule':_0x212a0b(0x1d7),'clipRule':_0x212a0b(0x1d7)}}]},B=_0x51620e(function(_0x33eb6c,_0x3c5cb5){var _0xcf2ef3=_0x212a0b;return _0x4edc06(W,Object[_0xcf2ef3(0x1db)]({},_0x33eb6c,{'id':_0xcf2ef3(0x1c9),'ref':_0x3c5cb5,'icon':ye}));});B['displayName']=_0x212a0b(0x243);var Re=Object[_0x212a0b(0x210)],Z=(_0x1eb63a,_0x3a6dce,_0x3edf2e,_0x52d310)=>{var _0x2329e0=_0x212a0b;for(var _0x432123=_0x52d310>0x1?void 0x0:_0x52d310?Re(_0x3a6dce,_0x3edf2e):_0x3a6dce,_0x248e67=_0x1eb63a[_0x2329e0(0x1a4)]-0x1,_0x42b225;_0x248e67>=0x0;_0x248e67--)(_0x42b225=_0x1eb63a[_0x248e67])&&(_0x432123=_0x42b225(_0x432123)||_0x432123);return _0x432123;},f=(_0x9482d7,_0x54c0b7)=>(_0x19f41d,_0x2f99d0)=>_0x54c0b7(_0x19f41d,_0x2f99d0,_0x9482d7);let I=class extends _0x31b7cc{constructor(_0x4701c5,_0x531ef9,_0x4b7e9a){var _0x378f7a=_0x212a0b;super(),d(this,_0x378f7a(0x1df),new Map()),(this[_0x378f7a(0x1ba)]=_0x4701c5,this[_0x378f7a(0x23c)]=_0x531ef9,this[_0x378f7a(0x225)]=_0x4b7e9a,this[_0x378f7a(0x20a)]());}async[_0x212a0b(0x235)](_0x39f73b){var _0x40c656=_0x212a0b;return this[_0x40c656(0x1df)][_0x40c656(0x1f2)](_0x39f73b)||await this['_startLiveShareCoordinator'](_0x39f73b),this[_0x40c656(0x1df)][_0x40c656(0x1ed)](_0x39f73b);}[_0x212a0b(0x20a)](){var _0x503487=_0x212a0b;this[_0x503487(0x1ba)][_0x503487(0x1d9)](_0x7d8114[_0x503487(0x20e)])[_0x503487(0x202)](_0x5982e3(this[_0x503487(0x1a6)]))['subscribe'](async _0xd13c10=>{var _0x1256a7=_0x503487;const _0x47b6cd=_0xd13c10[_0x1256a7(0x1bc)]();this[_0x1256a7(0x1df)]['has'](_0x47b6cd)||this[_0x1256a7(0x19e)](_0x47b6cd);}),this[_0x503487(0x1ba)]['getTypeOfUnitDisposed$'](_0x7d8114[_0x503487(0x20e)])['pipe'](_0x5982e3(this[_0x503487(0x1a6)]))[_0x503487(0x1aa)](_0x360cd1=>{var _0x17b5d9=_0x503487;const _0x38189b=_0x360cd1[_0x17b5d9(0x1bc)](),_0x2ea84c=this[_0x17b5d9(0x1df)][_0x17b5d9(0x1ed)](_0x38189b);_0x2ea84c==null||_0x2ea84c[_0x17b5d9(0x1ee)]();});}async[_0x212a0b(0x19e)](_0x13e060){var _0x49f604=_0x212a0b;const _0x454f6a=await this[_0x49f604(0x225)][_0x49f604(0x1f6)](_0x13e060),_0x51bbad=this[_0x49f604(0x23c)][_0x49f604(0x240)](C,_0x13e060,_0x454f6a);return _0x51bbad[_0x49f604(0x229)](),this[_0x49f604(0x1df)][_0x49f604(0x1b9)](_0x13e060,_0x51bbad),_0x51bbad;}};I=Z([f(0x0,_0x4da2fc),f(0x1,_0x2a903a(_0x34e4e4)),f(0x2,_0x2a903a(_0x3be506))],I);var h=(_0x4ca2b6=>(_0x4ca2b6[_0x212a0b(0x1b2)]=_0x212a0b(0x1b7),_0x4ca2b6['IDLE']=_0x212a0b(0x226),_0x4ca2b6[_0x212a0b(0x242)]=_0x212a0b(0x20d),_0x4ca2b6[_0x212a0b(0x1e9)]=_0x212a0b(0x1cf),_0x4ca2b6[_0x212a0b(0x1fd)]='presenting',_0x4ca2b6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x31b7cc{constructor(_0x1b6759,_0x11254b,_0x4d9712,_0x406d4e,_0x1b96c7){var _0x2a0541=_0x212a0b;super(),d(this,_0x2a0541(0x241),new _0x2693df(_0x2a0541(0x226))),d(this,_0x2a0541(0x1c5),this[_0x2a0541(0x241)][_0x2a0541(0x204)]()),d(this,'_init',!0x1),d(this,_0x2a0541(0x21c),null),d(this,'_presenter',null),(this[_0x2a0541(0x1e3)]=_0x1b6759,this[_0x2a0541(0x1bd)]=_0x11254b,this['_configService']=_0x4d9712,this[_0x2a0541(0x236)]=_0x406d4e,this[_0x2a0541(0x1b4)]=_0x1b96c7);}get[_0x212a0b(0x22f)](){var _0x252e24=_0x212a0b;return this['_status$'][_0x252e24(0x1af)]();}[_0x212a0b(0x1ee)](){var _0x2d6519=_0x212a0b,_0x2c79b5;(_0x2c79b5=this[_0x2d6519(0x21c)])==null||_0x2c79b5['dispose'](),this[_0x2d6519(0x241)][_0x2d6519(0x197)](_0x2d6519(0x226)),this[_0x2d6519(0x241)][_0x2d6519(0x212)]();}[_0x212a0b(0x229)](){var _0x3dba25=_0x212a0b;this['_init']||(this['_init']=!0x0,this[_0x3dba25(0x1bd)]['sessionStatus$'][_0x3dba25(0x202)](_0x5982e3(this[_0x3dba25(0x1a6)]))[_0x3dba25(0x1aa)](_0x5640f8=>{var _0x5dc5cc=_0x3dba25;switch(_0x5640f8){case _0x5adc85[_0x5dc5cc(0x1b2)]:this[_0x5dc5cc(0x20b)]();break;case _0x5adc85[_0x5dc5cc(0x1c4)]:this['_handleOnline']();break;}}),this[_0x3dba25(0x1bd)][_0x3dba25(0x1e1)][_0x3dba25(0x202)](_0x5982e3(this[_0x3dba25(0x1a6)]))[_0x3dba25(0x1aa)](_0x1d444c=>{var _0x2dd870=_0x3dba25;const {eventID:_0x10a186}=_0x1d444c;switch(_0x10a186){case _0xc94c04['LIVESHARE_NEW_HOST']:this[_0x2dd870(0x199)](_0x1d444c);break;case _0xc94c04[_0x2dd870(0x231)]:this[_0x2dd870(0x1dd)](_0x1d444c);break;case _0xc94c04[_0x2dd870(0x215)]:this[_0x2dd870(0x22b)]();break;case _0xc94c04[_0x2dd870(0x1bf)]:this[_0x2dd870(0x19b)](_0x1d444c);break;}}));}[_0x212a0b(0x19d)](){var _0x4d9de4=_0x212a0b;this[_0x4d9de4(0x1bd)][_0x4d9de4(0x219)]({'eventID':_0xc94c04[_0x4d9de4(0x22c)],'data':{'unitID':this[_0x4d9de4(0x1e3)],'userID':this['_collabSession'][_0x4d9de4(0x1e0)]()}},this[_0x4d9de4(0x1e3)]);}[_0x212a0b(0x1c6)](){var _0x552ae2=_0x212a0b;this['_status']===_0x552ae2(0x237)&&(this['_status$']['next'](_0x552ae2(0x226)),this[_0x552ae2(0x1bd)][_0x552ae2(0x219)]({'eventID':_0xc94c04['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x552ae2(0x1e3)]}},this[_0x552ae2(0x1e3)]));}[_0x212a0b(0x192)](){var _0x222255=_0x212a0b;this[_0x222255(0x22f)]===_0x222255(0x1cf)&&(this[_0x222255(0x241)]['next'](_0x222255(0x20d)),this[_0x222255(0x1a2)]());}[_0x212a0b(0x21d)](){var _0x345dfb=_0x212a0b;this[_0x345dfb(0x22f)]===_0x345dfb(0x20d)&&this[_0x345dfb(0x233)]();}[_0x212a0b(0x199)](_0xae4574){var _0x2ea2e1=_0x212a0b;const {presenter:_0x44f9f8}=_0xae4574[_0x2ea2e1(0x1a0)],_0x26c636=this[_0x2ea2e1(0x1bd)][_0x2ea2e1(0x1e0)]();this[_0x2ea2e1(0x209)]=_0x44f9f8,_0x44f9f8===_0x26c636?(this['_stopFollowing'](),this[_0x2ea2e1(0x224)]()):this[_0x2ea2e1(0x22f)]!==_0x2ea2e1(0x1cf)&&(this[_0x2ea2e1(0x234)](),this[_0x2ea2e1(0x1a2)]());}[_0x212a0b(0x1cc)](){var _0x402150=_0x212a0b;const _0x149bf6={'eventID':_0xc94c04[_0x402150(0x1d8)]};this[_0x402150(0x1bd)][_0x402150(0x219)](_0x149bf6,this[_0x402150(0x1e3)]);}[_0x212a0b(0x22b)](){var _0x13d983=_0x212a0b;this[_0x13d983(0x209)]=null,this[_0x13d983(0x22f)]!==_0x13d983(0x237)&&this[_0x13d983(0x217)]();}[_0x212a0b(0x19b)](_0x19b830){var _0x5ee52e=_0x212a0b;if(this['_status']===_0x5ee52e(0x20d)&&this[_0x5ee52e(0x209)]===_0x19b830[_0x5ee52e(0x1a0)]['memberID']){const _0x5508c4=_0x8ecc71(_0x19b830[_0x5ee52e(0x1a0)])[_0x5ee52e(0x1fb)][_0x5ee52e(0x223)]()[_0x5ee52e(0x198)](_0x2b0b16=>_0x2b0b16['id']===_0x41705c['id']);if(_0x5508c4){const _0x16175e=_0x5508c4[_0x5ee52e(0x1ec)][_0x5ee52e(0x20f)],_0x3d632d=_0x5508c4[_0x5ee52e(0x1ec)][_0x5ee52e(0x193)]['id'];setTimeout(()=>{var _0x2a7337=_0x5ee52e;this[_0x2a7337(0x1b4)][_0x2a7337(0x23a)](_0x29ccd5['id'],{'unitId':_0x16175e,'subUnitId':_0x3d632d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x6392e2=_0x212a0b;this[_0x6392e2(0x241)][_0x6392e2(0x197)](_0x6392e2(0x237));const _0x33f9d0=new Map(),_0x3c5d04=this['_commandDisposable']=new _0x261b36();_0x3c5d04[_0x6392e2(0x19a)](_0x23b66d(()=>{var _0x735454=_0x6392e2;_0x33f9d0[_0x735454(0x1c7)](_0x174dab=>_0x174dab[_0x735454(0x212)]()),_0x33f9d0['clear']();})),_0x3c5d04[_0x6392e2(0x19a)](this[_0x6392e2(0x1b4)][_0x6392e2(0x1ca)](_0x26a221=>{var _0x4b3781=_0x6392e2,_0x3f31ed;if(_0x26a221[_0x4b3781(0x1b6)]!==_0xa4f37a[_0x4b3781(0x232)]||!this[_0x4b3781(0x236)]['shouldShareOperation'](_0x26a221['id']))return;const {id:_0x210d7d}=_0x26a221;let _0x10560e;_0x33f9d0[_0x4b3781(0x1f2)](_0x210d7d)?_0x10560e=_0x33f9d0[_0x4b3781(0x1ed)](_0x210d7d):(_0x10560e=new _0x453266(),_0x33f9d0['set'](_0x210d7d,_0x10560e),_0x10560e[_0x4b3781(0x202)](_0x345bce((_0x3f31ed=this['_configService'][_0x4b3781(0x207)](Pe))!=null?_0x3f31ed:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b3781(0x1aa)](_0x5c0ae6=>{var _0x2cba69=_0x4b3781;this[_0x2cba69(0x1bd)][_0x2cba69(0x219)]({'eventID':_0xc94c04[_0x2cba69(0x231)],'data':{'unitID':this[_0x2cba69(0x1e3)],'operations':{[_0x5c0ae6['id']]:{'id':_0x5c0ae6['id'],'params':JSON[_0x2cba69(0x1d0)](_0x5c0ae6[_0x2cba69(0x1ec)])}}}},this[_0x2cba69(0x1e3)]);})),_0x10560e[_0x4b3781(0x197)](_0x26a221);})),this[_0x6392e2(0x236)]['getInitialStates'](this[_0x6392e2(0x1e3)])[_0x6392e2(0x1c7)](_0x5cfc78=>this[_0x6392e2(0x1bd)][_0x6392e2(0x219)]({'eventID':_0xc94c04[_0x6392e2(0x231)],'data':{'unitID':this[_0x6392e2(0x1e3)],'operations':{[_0x5cfc78['id']]:{'id':_0x5cfc78['id'],'params':JSON[_0x6392e2(0x1d0)](_0x5cfc78[_0x6392e2(0x1ec)])}}}},this[_0x6392e2(0x1e3)]));}[_0x212a0b(0x234)](){var _0x164d96=_0x212a0b,_0x23b601;this['_status$'][_0x164d96(0x197)]('idle'),(_0x23b601=this[_0x164d96(0x21c)])==null||_0x23b601[_0x164d96(0x1ee)](),this[_0x164d96(0x21c)]=null;}['_startFollowing'](){var _0x26c5a5=_0x212a0b,_0x3f54b2;(_0x3f54b2=this[_0x26c5a5(0x21c)])==null||_0x3f54b2[_0x26c5a5(0x1ee)](),this['_status$']['next'](_0x26c5a5(0x20d));}[_0x212a0b(0x217)](){var _0x25bc0d=_0x212a0b,_0x358b4d;this[_0x25bc0d(0x241)][_0x25bc0d(0x197)](_0x25bc0d(0x226)),(_0x358b4d=this['_commandDisposable'])==null||_0x358b4d['dispose'](),this[_0x25bc0d(0x21c)]=null;}[_0x212a0b(0x233)](){var _0x396ac3=_0x212a0b,_0x1d4439;this[_0x396ac3(0x241)][_0x396ac3(0x197)](_0x396ac3(0x1cf)),(_0x1d4439=this[_0x396ac3(0x21c)])==null||_0x1d4439[_0x396ac3(0x1ee)]();}[_0x212a0b(0x1dd)](_0x425593){var _0x1dd1b7=_0x212a0b;if([_0x1dd1b7(0x237),_0x1dd1b7(0x1cf),_0x1dd1b7(0x1b7)]['includes'](this[_0x1dd1b7(0x22f)])||!_0x425593[_0x1dd1b7(0x1a0)][_0x1dd1b7(0x1dc)]||_0x425593['data'][_0x1dd1b7(0x1dc)]===this[_0x1dd1b7(0x1bd)][_0x1dd1b7(0x1e0)]())return;this[_0x1dd1b7(0x22f)]===_0x1dd1b7(0x226)&&this[_0x1dd1b7(0x1a2)]();const _0xe3e85=_0x425593[_0x1dd1b7(0x1a0)]['operations'];Object[_0x1dd1b7(0x1a5)](_0xe3e85)[_0x1dd1b7(0x1c7)](_0x264fb8=>{var _0x375a8e=_0x1dd1b7;this[_0x375a8e(0x1b4)][_0x375a8e(0x23a)](_0x264fb8['id'],_0x264fb8[_0x375a8e(0x1ec)]?JSON[_0x375a8e(0x1ce)](_0x264fb8[_0x375a8e(0x1ec)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4916bc=_0x212a0b,_0x33473b;this[_0x4916bc(0x241)]['next'](_0x4916bc(0x1b7)),(_0x33473b=this[_0x4916bc(0x21c)])==null||_0x33473b[_0x4916bc(0x1ee)]();}['_handleOnline'](){var _0x3db648=_0x212a0b;this[_0x3db648(0x241)][_0x3db648(0x197)]('idle'),this[_0x3db648(0x1cc)]();}};C=Z([f(0x2,_0x2927c4),f(0x3,_0x2a903a(L)),f(0x4,_0x37aeb9)],C);function Te(){var _0x57b9e2=_0x212a0b;const _0xc03f0a=_0x1a5a1e(I),_0x5e80d6=_0x1a5a1e(_0x4da2fc),_0x52644b=_0x1f6a23(()=>_0x5e80d6[_0x57b9e2(0x221)](_0x7d8114[_0x57b9e2(0x20e)]),void 0x0,!0x1,[]),[_0x1963d2,_0x39ab47]=_0x5bfc97(null),[_0x113e70,_0x4c8452]=_0x5bfc97(h[_0x57b9e2(0x19f)]),_0x45712f=_0x6c2f7c(null);return _0x40254c(()=>(_0x52644b&&_0xc03f0a['getLiveShareCoordinator'](_0x52644b[_0x57b9e2(0x1bc)]())[_0x57b9e2(0x1cd)](_0x184f70=>{var _0x52ea84=_0x57b9e2;_0x39ab47(_0x184f70),_0x45712f[_0x52ea84(0x1c3)]=_0x184f70['status$']['subscribe'](_0x3ab722=>{_0x4c8452(_0x3ab722);});}),()=>{var _0x2005a4=_0x57b9e2,_0x32b99f;(_0x32b99f=_0x45712f[_0x2005a4(0x1c3)])==null||_0x32b99f['unsubscribe'](),_0x45712f[_0x2005a4(0x1c3)]=null;}),[_0x52644b,_0xc03f0a]),_0x1963d2?_0x16955c(_0x5f5212,{'align':_0x57b9e2(0x1c1),'disabled':_0x113e70===h[_0x57b9e2(0x1b2)],'className':_0x57b9e2(0x1ae),'overlay':_0x16955c($e,{'status':_0x113e70,'coordinator':_0x1963d2}),'children':_0x16955c('button',{'className':_0x3cb570('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x113e70===h[_0x57b9e2(0x1b2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x113e70!==h[_0x57b9e2(0x1b2)]}),'type':_0x57b9e2(0x222),'children':_0x16955c(B,{'className':_0x57b9e2(0x1a7)})})}):null;}function _0x44be(_0x3cca48,_0x5b866e){var _0x137c38=_0x137c();return _0x44be=function(_0x44be00,_0x37ecee){_0x44be00=_0x44be00-0x192;var _0x573d12=_0x137c38[_0x44be00];return _0x573d12;},_0x44be(_0x3cca48,_0x5b866e);}function $e(_0x13045b){var _0x4a22aa=_0x212a0b;const {status:_0x5e083e,coordinator:_0x1cd777}=_0x13045b;switch(_0x5e083e){case h[_0x4a22aa(0x19f)]:return _0x16955c(Fe,{'coordinator':_0x1cd777});case h[_0x4a22aa(0x242)]:return _0x16955c(He,{'coordinator':_0x1cd777});case h[_0x4a22aa(0x1e9)]:return _0x16955c(je,{'coordinator':_0x1cd777});case h['OFFLINE']:return _0x16955c(Ve,{});case h[_0x4a22aa(0x1fd)]:return _0x16955c(Ue,{'coordinator':_0x1cd777});default:return null;}}function Fe(_0xd57302){var _0x1166bc=_0x212a0b;const {coordinator:_0x4660e2}=_0xd57302;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c(_0x1166bc(0x22e),{'className':_0x1166bc(0x208),'children':_0x1166bc(0x21b)}),_0x16955c(_0x592a35,{'onClick':()=>_0x4660e2[_0x1166bc(0x19d)](),'children':_0x1166bc(0x213)})]});}function He(_0x431dd9){var _0x386a74=_0x212a0b;const {coordinator:_0x1bcafa}=_0x431dd9;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c(_0x386a74(0x22e),{'className':_0x386a74(0x208),'children':_0x386a74(0x1d6)}),_0x16955c(_0x592a35,{'onClick':()=>_0x1bcafa['stopFollowing'](),'children':_0x386a74(0x1bb)})]});}function je(_0x36f370){var _0x180dc4=_0x212a0b;const {coordinator:_0x3349bc}=_0x36f370;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c('div',{'className':_0x180dc4(0x208),'children':_0x180dc4(0x1f8)}),_0x16955c(_0x592a35,{'variant':_0x180dc4(0x228),'onClick':()=>_0x3349bc[_0x180dc4(0x192)](),'children':_0x180dc4(0x23b)})]});}function Ue(_0x590e30){var _0x2f9c52=_0x212a0b;const {coordinator:_0x965a2a}=_0x590e30;return _0x1576d8(_0x3cc0cd,{'children':[_0x16955c(_0x2f9c52(0x22e),{'className':_0x2f9c52(0x208),'children':_0x2f9c52(0x1fa)}),_0x16955c(_0x592a35,{'variant':_0x2f9c52(0x1d1),'onClick':()=>_0x965a2a['stopPresenting'](),'children':_0x2f9c52(0x1b8)})]});}function Ve(){var _0x1036b0=_0x212a0b;return _0x16955c(_0x3cc0cd,{'children':_0x1036b0(0x1f9)});}var Me=Object[_0x212a0b(0x210)],ke=(_0x8ad6d0,_0x4f66d4,_0x29a77b,_0x177c05)=>{var _0x3c624c=_0x212a0b;for(var _0x29e7cf=_0x177c05>0x1?void 0x0:_0x177c05?Me(_0x4f66d4,_0x29a77b):_0x4f66d4,_0x5c1da3=_0x8ad6d0[_0x3c624c(0x1a4)]-0x1,_0x25db75;_0x5c1da3>=0x0;_0x5c1da3--)(_0x25db75=_0x8ad6d0[_0x5c1da3])&&(_0x29e7cf=_0x25db75(_0x29e7cf)||_0x29e7cf);return _0x29e7cf;},$=(_0x26ee10,_0x283ef7)=>(_0x4af85a,_0x312200)=>_0x283ef7(_0x4af85a,_0x312200,_0x26ee10);let b=class extends _0x4f9af4{constructor(_0x3e8570,_0x429d54){var _0x2b8622=_0x212a0b;super(),this[_0x2b8622(0x23c)]=_0x3e8570,this[_0x2b8622(0x1ad)]=_0x429d54,this[_0x2b8622(0x1b5)]();}[_0x212a0b(0x1b5)](){var _0x5a05fd=_0x212a0b;this['disposeWithMe'](this[_0x5a05fd(0x1ad)]['registerComponent'](_0x85079d[_0x5a05fd(0x1a1)],()=>_0x142ef7(Te,this['_injector'])));}};b=ke([$(0x0,_0x2a903a(_0x34e4e4)),$(0x1,_0x413ddb)],b);var Ge=Object[_0x212a0b(0x1ff)],We=Object[_0x212a0b(0x210)],Ye=(_0x2c0fa8,_0x24c447,_0x2c5164)=>_0x24c447 in _0x2c0fa8?Ge(_0x2c0fa8,_0x24c447,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5164}):_0x2c0fa8[_0x24c447]=_0x2c5164,Be=(_0x3bbb92,_0xce751c,_0x228314,_0x59ea5b)=>{for(var _0x37771d=_0x59ea5b>0x1?void 0x0:_0x59ea5b?We(_0xce751c,_0x228314):_0xce751c,_0x295d52=_0x3bbb92['length']-0x1,_0x2af42d;_0x295d52>=0x0;_0x295d52--)(_0x2af42d=_0x3bbb92[_0x295d52])&&(_0x37771d=_0x2af42d(_0x37771d)||_0x37771d);return _0x37771d;},F=(_0x30afd8,_0x50da05)=>(_0x57a1b4,_0x3aa4ac)=>_0x50da05(_0x57a1b4,_0x3aa4ac,_0x30afd8),J=(_0x40a4dc,_0x54683b,_0x2187c4)=>Ye(_0x40a4dc,typeof _0x54683b!=_0x212a0b(0x1da)?_0x54683b+'':_0x54683b,_0x2187c4);const Ze=_0x212a0b(0x1e8);let O=class extends _0x3f8097{constructor(_0x51d8e3=T,_0xe75d49,_0x1f5d11){var _0x4f5b2c=_0x212a0b;super(),this[_0x4f5b2c(0x200)]=_0x51d8e3,this[_0x4f5b2c(0x23c)]=_0xe75d49,this[_0x4f5b2c(0x1eb)]=_0x1f5d11;const {..._0xe10da9}=_0x17b2d5({},T,this[_0x4f5b2c(0x200)]);this[_0x4f5b2c(0x1eb)]['setConfig'](Oe,_0xe10da9);}[_0x212a0b(0x1b1)](){var _0x4236df=_0x212a0b;_0x3384be(this[_0x4236df(0x23c)],_0x3f0adf([[L],[I],[m],[b]],this[_0x4236df(0x200)]['override'])),_0x4a54ad(this['_injector'],[[m]]);}[_0x212a0b(0x23d)](){var _0x5a0aa6=_0x212a0b;_0x4a54ad(this[_0x5a0aa6(0x23c)],[[b]]);}};J(O,'type',_0x7d8114[_0x212a0b(0x194)]),J(O,_0x212a0b(0x216),Ze),O=Be([_0x4a9262(_0x531aad),F(0x1,_0x2a903a(_0x34e4e4)),F(0x2,_0x2927c4)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3b59(_0x4bc7bc,_0x26ed54){var _0x282206=_0x2822();return _0x3b59=function(_0x3b59ac,_0x38c81b){_0x3b59ac=_0x3b59ac-0x1b9;var _0x145eb6=_0x282206[_0x3b59ac];return _0x145eb6;},_0x3b59(_0x4bc7bc,_0x26ed54);}function _0x2822(){var _0x5baa71=['type','UniverUi','_entities','children','sheet','Button','UniverLiveSharePlugin','getValue','LiveShare','_sharedOperations','UNIVER_SHEET','IDLE','set','UniverSheets','get','1843206oVWHcH','defIds','unitId','_configService','current','_fetchOperations','forwardRef','parse','14243484kAxLkQ','defineProperty','extend','@univerjs-pro/collaboration-client','onStarting','DependentOn','_commandDisposable','concat','presenter','_univerInstanceService','idSuffix','className','Stop\x20presenting','substring','_presenter','_commandService','ONLINE','executeCommand','subscribe','default','colorChannel1','live-share.config','SAME_OPERATION_SHARE_INTERVAL','LiveShareIcon','Start','includes','@univerjs/ui','281493biNgwt','LiveShareStatus','Fragment','UNIVER_UNKNOWN','createInstance','length','IUniverInstanceService','find','_stopFollowing','mutations','takeUntil','_handleOnline','stopFollowing','IConfigService','forEach','asObservable','next','toString','SetScrollOperation','UniverCore','apply','disposeWithMe','toDisposable','_init','UniverCollaborationClientPlugin','svg','prototype','univer-size-4','jsxs','40LJHjbn','_stopPresenting','following','pluginName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareService','@univerjs/sheets-ui','object','LIVESHARE_TERMINATE','none','add','DesktopLiveShareController','xlink:href','BehaviorSubject','1651030FPsnKt','_handleOperation','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','UniverSheetsUi','Dropdown','getLiveShareCoordinator','pipe','_handleNewChangeSets','ICommandService','displayName','replace','_status$','Disposable','event$','status$','CollaborationEvent','dispose$','use','getUnitId','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareCoordinator','_injector','useState','live-share-icon','_config','HEADER_MENU','stringify','SessionStatus','merge','FOLLOWING','connectInjector','div','registerDependencies','getOwnPropertyDescriptor','registerComponent','jsx','string','IUIPartsService','5741860qqsBTM','react','random','propertyIsEnumerable','map','RxDisposable','_unitID','UniverProCollaboration','clear','sessionStatus$','rxjs','BuiltInUIPart','button','trim','stopPresenting','has','_handleOffline','tryStartPresenting','UniverProLiveShare','@univerjs/core','9Zgqila','1em','idle','complete','useObservable','memberID','Module','8nnwUsi','shouldShareOperation','_handleNewHost','Inject','_startLiveShareCoordinator','clsx','end','getMemberID','useDependency','getConfig','11CxRirL','UniverIcon','_mountLiveShare','_collabSession','2zzUkuM','React','from','offline','params','url(#$1','icon','data','_handleTerminate','UniverDesign','send','reverse','defs','then','Present\x20this\x20document','UniverInstanceType','_beIdle','createElement','entries','Injector','presenting','InsertSheetMutation','_startFollowing','touchDependencies','exports','_reporters','LIVESHARE_OPERATION','OFFLINE','LiveShareController','init','_startPresenting','getOwnPropertySymbols','registerInitialStateReporter','operators','mask','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','_uiPartsService','evenodd','LIVESHARE_NEW_HOST','dispose','currentColor','operations','You\x27are\x20offline.','text','registerSharedOperation','_liveShareService','fill','hasOwnProperty','1256367VEonwn','CommandType','mergeOverrideWithDependencies','override','Plugin','react/jsx-runtime','function','useRef','call','@univerjs/sheets','_status','_collabSessionService','Stop\x20following','SetWorksheetActiveOperation','values','amd','You\x27re\x20following\x20the\x20presenter','attrs','PRESENTING','NEW_CHANGESETS','toStringTag','tag','not-following','path','5656908wRmVyX','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','indexOf'];_0x2822=function(){return _0x5baa71;};return _0x2822();}(function(_0xb7edb6,_0x42950d){var _0x579c61=_0x3b59,_0x4097f4=_0xb7edb6();while(!![]){try{var _0x594db9=parseInt(_0x579c61(0x295))/0x1*(parseInt(_0x579c61(0x217))/0x2)+-parseInt(_0x579c61(0x272))/0x3+parseInt(_0x579c61(0x209))/0x4*(parseInt(_0x579c61(0x1c8))/0x5)+-parseInt(_0x579c61(0x25f))/0x6+-parseInt(_0x579c61(0x247))/0x7*(-parseInt(_0x579c61(0x1ba))/0x8)+parseInt(_0x579c61(0x202))/0x9*(-parseInt(_0x579c61(0x1ee))/0xa)+parseInt(_0x579c61(0x213))/0xb*(parseInt(_0x579c61(0x27a))/0xc);if(_0x594db9===_0x42950d)break;else _0x4097f4['push'](_0x4097f4['shift']());}catch(_0x2b96e7){_0x4097f4['push'](_0x4097f4['shift']());}}}(_0x2822,0xda78d),function(_0x4711d6,_0x3e069a){var _0x459f39=_0x3b59;typeof exports==_0x459f39(0x1c1)&&typeof module<'u'?_0x3e069a(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x459f39(0x24d)&&define[_0x459f39(0x256)]?define([_0x459f39(0x22f),_0x459f39(0x27d),_0x459f39(0x201),_0x459f39(0x250),_0x459f39(0x1c0),_0x459f39(0x294),_0x459f39(0x24c),'@univerjs/design',_0x459f39(0x1ef),'@univerjs-pro/collaboration',_0x459f39(0x1f8),'rxjs/operators'],_0x3e069a):(_0x4711d6=typeof globalThis<'u'?globalThis:_0x4711d6||self,_0x3e069a(_0x4711d6[_0x459f39(0x200)]={},_0x4711d6['UniverProCollaborationClient'],_0x4711d6[_0x459f39(0x2a8)],_0x4711d6[_0x459f39(0x270)],_0x4711d6[_0x459f39(0x1cb)],_0x4711d6[_0x459f39(0x264)],_0x4711d6[_0x459f39(0x218)],_0x4711d6[_0x459f39(0x220)],_0x4711d6[_0x459f39(0x218)],_0x4711d6[_0x459f39(0x1f5)],_0x4711d6['rxjs'],_0x4711d6['rxjs'][_0x459f39(0x238)]));}(this,function(_0x1a4a0a,_0x5552b1,_0x5c28c4,_0x27a04e,_0x4367a5,_0xca39c1,_0x250593,_0x21c058,_0xfc3b01,_0x398bd6,_0x1be513,_0x54be16){'use strict';var _0x561235=_0x3b59;var _0x1561f0=Object['defineProperty'],_0x47c2bb=(_0xba2597,_0x47537e,_0x50333f)=>_0x47537e in _0xba2597?_0x1561f0(_0xba2597,_0x47537e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50333f}):_0xba2597[_0x47537e]=_0x50333f,_0x4387d5=(_0x5b1108,_0x227bd8,_0x1a8623)=>_0x47c2bb(_0x5b1108,typeof _0x227bd8!='symbol'?_0x227bd8+'':_0x227bd8,_0x1a8623);const _0x31cdc9=_0x561235(0x28f),_0x174068={};class _0x543b2b extends _0x5c28c4['Disposable']{constructor(){var _0x434732=_0x561235;super(...arguments),_0x4387d5(this,'_sharedOperations',new Set()),_0x4387d5(this,_0x434732(0x230),new Set());}[_0x561235(0x243)](_0x52e305){var _0x589746=_0x561235;return this[_0x589746(0x26c)][_0x589746(0x1c4)](_0x52e305),_0x5c28c4[_0x589746(0x2ab)](()=>this[_0x589746(0x26c)]['delete'](_0x52e305));}[_0x561235(0x237)](_0x25e28e){var _0x3e6f59=_0x561235;return this[_0x3e6f59(0x230)]['add'](_0x25e28e),_0x5c28c4[_0x3e6f59(0x2ab)](()=>this[_0x3e6f59(0x230)]['delete'](_0x25e28e));}['shouldShareOperation'](_0xde1e5a){var _0x13b5b5=_0x561235;return this[_0x13b5b5(0x26c)][_0x13b5b5(0x1fd)](_0xde1e5a);}['getInitialStates'](_0x265675){var _0x5a0971=_0x561235;return Array[_0x5a0971(0x219)](this[_0x5a0971(0x230)])[_0x5a0971(0x1f2)](_0x22846b=>_0x22846b(_0x265675));}}var _0x192fb7=Object[_0x561235(0x1e9)],_0x741a3c=(_0x52a820,_0x234d34,_0x10a85f,_0x5851d0)=>{for(var _0x5ad4ea=_0x5851d0>0x1?void 0x0:_0x5851d0?_0x192fb7(_0x234d34,_0x10a85f):_0x234d34,_0x587770=_0x52a820['length']-0x1,_0x512788;_0x587770>=0x0;_0x587770--)(_0x512788=_0x52a820[_0x587770])&&(_0x5ad4ea=_0x512788(_0x5ad4ea)||_0x5ad4ea);return _0x5ad4ea;},_0x4282f0=(_0x5a91ed,_0x4db43c)=>(_0x335de9,_0x4da70a)=>_0x4db43c(_0x335de9,_0x4da70a,_0x5a91ed);let _0x4e66a6=class extends _0x5c28c4[_0x561235(0x1d4)]{constructor(_0x4ed652){var _0x3fa929=_0x561235;super(),this[_0x3fa929(0x244)]=_0x4ed652,this[_0x3fa929(0x2ac)]();}['_init'](){var _0x1ff0c5=_0x561235;[_0x4367a5['SetZoomRatioOperation']['id'],_0x4367a5[_0x1ff0c5(0x2a7)]['id'],_0x27a04e[_0x1ff0c5(0x254)]['id']][_0x1ff0c5(0x2a3)](_0x59a1a2=>{var _0x4d77ea=_0x1ff0c5;this[_0x4d77ea(0x2aa)](this[_0x4d77ea(0x244)][_0x4d77ea(0x243)](_0x59a1a2));});}};_0x4e66a6=_0x741a3c([_0x4282f0(0x0,_0x5c28c4['Inject'](_0x543b2b))],_0x4e66a6);var _0x12e191=function(){var _0x20d62a=_0x561235;return _0x12e191=Object['assign']||function(_0x4b65eb){var _0x2d2a73=_0x3b59;for(var _0x35e173,_0x9fbeb6=0x1,_0x3fd299=arguments[_0x2d2a73(0x29a)];_0x9fbeb6<_0x3fd299;_0x9fbeb6++){_0x35e173=arguments[_0x9fbeb6];for(var _0x33c0f8 in _0x35e173)Object[_0x2d2a73(0x2af)][_0x2d2a73(0x246)][_0x2d2a73(0x24f)](_0x35e173,_0x33c0f8)&&(_0x4b65eb[_0x33c0f8]=_0x35e173[_0x33c0f8]);}return _0x4b65eb;},_0x12e191[_0x20d62a(0x2a9)](this,arguments);},_0x1170c4=function(_0x52bb48,_0x1a9b5c){var _0x2018e9=_0x561235,_0x25aa51={};for(var _0x563ec4 in _0x52bb48)Object[_0x2018e9(0x2af)][_0x2018e9(0x246)][_0x2018e9(0x24f)](_0x52bb48,_0x563ec4)&&_0x1a9b5c[_0x2018e9(0x262)](_0x563ec4)<0x0&&(_0x25aa51[_0x563ec4]=_0x52bb48[_0x563ec4]);if(_0x52bb48!=null&&typeof Object['getOwnPropertySymbols']==_0x2018e9(0x24d)){for(var _0x429215=0x0,_0x563ec4=Object[_0x2018e9(0x236)](_0x52bb48);_0x429215<_0x563ec4[_0x2018e9(0x29a)];_0x429215++)_0x1a9b5c[_0x2018e9(0x262)](_0x563ec4[_0x429215])<0x0&&Object[_0x2018e9(0x2af)][_0x2018e9(0x1f1)]['call'](_0x52bb48,_0x563ec4[_0x429215])&&(_0x25aa51[_0x563ec4[_0x429215]]=_0x52bb48[_0x563ec4[_0x429215]]);}return _0x25aa51;},_0x1ec2bc=_0xfc3b01[_0x561235(0x278)](function(_0x991d30,_0xcc71aa){var _0x5237a4=_0x561235,_0x51162f=_0x991d30[_0x5237a4(0x21d)],_0x1f02e3=_0x991d30['id'],_0x5a19f3=_0x991d30[_0x5237a4(0x285)],_0x9b9c28=_0x991d30[_0x5237a4(0x27c)],_0x5d00b1=_0x1170c4(_0x991d30,[_0x5237a4(0x21d),'id',_0x5237a4(0x285),_0x5237a4(0x27c)]),_0x2fefc0='univerjs-icon\x20univerjs-icon-'['concat'](_0x1f02e3,'\x20')[_0x5237a4(0x281)](_0x5a19f3||'')[_0x5237a4(0x1fb)](),_0x40565d=_0xfc3b01[_0x5237a4(0x24e)]('_'[_0x5237a4(0x281)](_0x289775()));return _0x467acc(_0x51162f,''[_0x5237a4(0x281)](_0x1f02e3),{'defIds':_0x51162f['defIds'],'idSuffix':_0x40565d[_0x5237a4(0x276)]},_0x12e191({'ref':_0xcc71aa,'className':_0x2fefc0},_0x5d00b1),_0x9b9c28);});function _0x467acc(_0x3cd299,_0xbb58de,_0xbaf9de,_0x3d0a17,_0x2d27ae){var _0x45c5d2=_0x561235;return _0xfc3b01[_0x45c5d2(0x228)](_0x3cd299[_0x45c5d2(0x25c)],_0x12e191(_0x12e191({'key':_0xbb58de},_0x59ef4f(_0x3cd299,_0xbaf9de,_0x2d27ae)),_0x3d0a17),(_0x498783(_0x3cd299,_0xbaf9de)[_0x45c5d2(0x266)]||[])['map'](function(_0x169e17,_0x1f058b){var _0x5a998a=_0x45c5d2;return _0x467acc(_0x169e17,''[_0x5a998a(0x281)](_0xbb58de,'-')['concat'](_0x3cd299['tag'],'-')[_0x5a998a(0x281)](_0x1f058b),_0xbaf9de,void 0x0,_0x2d27ae);}));}function _0x59ef4f(_0x55758f,_0x4913c2,_0x1e9fec){var _0x8dbdd6=_0x561235,_0x190214=_0x12e191({},_0x55758f[_0x8dbdd6(0x258)]);_0x1e9fec!=null&&_0x1e9fec['colorChannel1']&&_0x190214[_0x8dbdd6(0x245)]==='colorChannel1'&&(_0x190214[_0x8dbdd6(0x245)]=_0x1e9fec[_0x8dbdd6(0x28e)]),_0x55758f[_0x8dbdd6(0x25c)]===_0x8dbdd6(0x239)&&_0x190214['id']&&(_0x190214['id']=_0x190214['id']+_0x4913c2['idSuffix']),Object[_0x8dbdd6(0x229)](_0x190214)['forEach'](function(_0x520c02){var _0x18d337=_0x8dbdd6,_0x3eef79=_0x520c02[0x0],_0x4e9fa3=_0x520c02[0x1];_0x3eef79===_0x18d337(0x239)&&typeof _0x4e9fa3==_0x18d337(0x1ec)&&(_0x190214[_0x3eef79]=_0x4e9fa3[_0x18d337(0x1d2)](/url\(#(.*)\)/,_0x18d337(0x21c)['concat'](_0x4913c2[_0x18d337(0x284)],')')));});var _0x4c9f1b=_0x4913c2[_0x8dbdd6(0x273)];return!_0x4c9f1b||_0x4c9f1b[_0x8dbdd6(0x29a)]===0x0||(_0x55758f[_0x8dbdd6(0x25c)]===_0x8dbdd6(0x1d9)&&_0x190214[_0x8dbdd6(0x1c6)]&&(_0x190214[_0x8dbdd6(0x1c6)]=_0x190214[_0x8dbdd6(0x1c6)]+_0x4913c2[_0x8dbdd6(0x284)]),Object[_0x8dbdd6(0x229)](_0x190214)[_0x8dbdd6(0x2a3)](function(_0x43c709){var _0x3841d6=_0x8dbdd6,_0x3ed6d2=_0x43c709[0x0],_0x51e81a=_0x43c709[0x1];typeof _0x51e81a==_0x3841d6(0x1ec)&&(_0x190214[_0x3ed6d2]=_0x51e81a[_0x3841d6(0x1d2)](/url\(#(.*)\)/,_0x3841d6(0x21c)[_0x3841d6(0x281)](_0x4913c2['idSuffix'],')')));})),_0x190214;}function _0x498783(_0xdb8c4,_0x25583d){var _0x265532=_0x561235,_0x3017c0,_0x1bcc11=_0x25583d[_0x265532(0x273)];return!_0x1bcc11||_0x1bcc11[_0x265532(0x29a)]===0x0?_0xdb8c4:_0xdb8c4[_0x265532(0x25c)]===_0x265532(0x223)&&(!((_0x3017c0=_0xdb8c4[_0x265532(0x266)])===null||_0x3017c0===void 0x0)&&_0x3017c0['length'])?_0x12e191(_0x12e191({},_0xdb8c4),{'children':_0xdb8c4[_0x265532(0x266)][_0x265532(0x1f2)](function(_0x4251ad){var _0x1a0166=_0x265532;return typeof _0x4251ad[_0x1a0166(0x258)]['id']=='string'&&_0x1bcc11&&_0x1bcc11[_0x1a0166(0x293)](_0x4251ad[_0x1a0166(0x258)]['id'])?_0x12e191(_0x12e191({},_0x4251ad),{'attrs':_0x12e191(_0x12e191({},_0x4251ad['attrs']),{'id':_0x4251ad['attrs']['id']+_0x25583d[_0x1a0166(0x284)]})}):_0x4251ad;})}):_0xdb8c4;}function _0x289775(){var _0x77b8a3=_0x561235;return Math[_0x77b8a3(0x1f0)]()[_0x77b8a3(0x2a6)](0x24)[_0x77b8a3(0x287)](0x2,0x8);}_0x1ec2bc['displayName']=_0x561235(0x214);var _0x54f175={'tag':_0x561235(0x2ae),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x561235(0x1c3),'viewBox':'0\x200\x2017\x2017','width':_0x561235(0x203),'height':'1em'},'children':[{'tag':_0x561235(0x25e),'attrs':{'fill':_0x561235(0x23f),'d':_0x561235(0x23a)}},{'tag':_0x561235(0x25e),'attrs':{'fill':_0x561235(0x23f),'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':_0x561235(0x23c),'clipRule':_0x561235(0x23c)}}]},_0x4f37fe=_0xfc3b01[_0x561235(0x278)](function(_0x3c87a3,_0x43a0c6){var _0x4a6572=_0x561235;return _0xfc3b01[_0x4a6572(0x228)](_0x1ec2bc,Object['assign']({},_0x3c87a3,{'id':_0x4a6572(0x1df),'ref':_0x43a0c6,'icon':_0x54f175}));});_0x4f37fe[_0x561235(0x1d1)]=_0x561235(0x291);var _0x5715ad=Object[_0x561235(0x1e9)],_0x404a25=(_0x524361,_0x6e8b88,_0x1cd630,_0x5e7651)=>{var _0x2ce54a=_0x561235;for(var _0x2caff6=_0x5e7651>0x1?void 0x0:_0x5e7651?_0x5715ad(_0x6e8b88,_0x1cd630):_0x6e8b88,_0xe5c012=_0x524361[_0x2ce54a(0x29a)]-0x1,_0x4b9c88;_0xe5c012>=0x0;_0xe5c012--)(_0x4b9c88=_0x524361[_0xe5c012])&&(_0x2caff6=_0x4b9c88(_0x2caff6)||_0x2caff6);return _0x2caff6;},_0x150e52=(_0x33e0eb,_0x464dce)=>(_0x149e61,_0x3becb4)=>_0x464dce(_0x149e61,_0x3becb4,_0x33e0eb);_0x1a4a0a[_0x561235(0x233)]=class extends _0x5c28c4[_0x561235(0x1f3)]{constructor(_0x379918,_0x2455b5,_0x49b8a6){var _0x2a4f75=_0x561235;super(),_0x4387d5(this,_0x2a4f75(0x265),new Map()),(this['_univerInstanceService']=_0x379918,this[_0x2a4f75(0x1dd)]=_0x2455b5,this['_collabSessionService']=_0x49b8a6,this['_init']());}async[_0x561235(0x1cd)](_0x4df218){var _0x4cccbe=_0x561235;return this[_0x4cccbe(0x265)]['has'](_0x4df218)||await this[_0x4cccbe(0x20d)](_0x4df218),this[_0x4cccbe(0x265)]['get'](_0x4df218);}[_0x561235(0x2ac)](){var _0x2979c3=_0x561235;this[_0x2979c3(0x283)]['getTypeOfUnitAdded$'](_0x5c28c4[_0x2979c3(0x226)][_0x2979c3(0x26d)])['pipe'](_0x54be16['takeUntil'](this[_0x2979c3(0x1d8)]))['subscribe'](async _0x14cc21=>{var _0x204c16=_0x2979c3;const _0xce38e=_0x14cc21[_0x204c16(0x1da)]();this['_entities'][_0x204c16(0x1fd)](_0xce38e)||this['_startLiveShareCoordinator'](_0xce38e);}),this[_0x2979c3(0x283)]['getTypeOfUnitDisposed$'](_0x5c28c4[_0x2979c3(0x226)][_0x2979c3(0x26d)])[_0x2979c3(0x1ce)](_0x54be16[_0x2979c3(0x29f)](this[_0x2979c3(0x1d8)]))['subscribe'](_0x57592f=>{var _0x3cc159=_0x2979c3;const _0x3b3e6c=_0x57592f[_0x3cc159(0x1da)](),_0x5b4355=this[_0x3cc159(0x265)]['get'](_0x3b3e6c);_0x5b4355==null||_0x5b4355[_0x3cc159(0x23e)]();});}async['_startLiveShareCoordinator'](_0x30ab19){var _0x58ba33=_0x561235;const _0x384e64=await this[_0x58ba33(0x252)]['requireSession'](_0x30ab19),_0x596bd3=this[_0x58ba33(0x1dd)][_0x58ba33(0x299)](_0x1a4a0a[_0x58ba33(0x1dc)],_0x30ab19,_0x384e64);return _0x596bd3['init'](),this[_0x58ba33(0x265)]['set'](_0x30ab19,_0x596bd3),_0x596bd3;}},_0x1a4a0a[_0x561235(0x233)]=_0x404a25([_0x150e52(0x0,_0x5c28c4[_0x561235(0x29b)]),_0x150e52(0x1,_0x5c28c4[_0x561235(0x20c)](_0x5c28c4[_0x561235(0x22a)])),_0x150e52(0x2,_0x5c28c4[_0x561235(0x20c)](_0x5552b1['CollaborationSessionService']))],_0x1a4a0a[_0x561235(0x233)]);var _0x33435e=(_0x51b1a1=>(_0x51b1a1[_0x561235(0x232)]=_0x561235(0x21a),_0x51b1a1[_0x561235(0x26e)]='idle',_0x51b1a1[_0x561235(0x1e5)]=_0x561235(0x1bc),_0x51b1a1['NOT_FOLLOWING']='not-following',_0x51b1a1[_0x561235(0x259)]=_0x561235(0x22b),_0x51b1a1))(_0x33435e||{});const _0x2893b4=_0x561235(0x290),_0xfdb991=0xc8;_0x1a4a0a[_0x561235(0x1dc)]=class extends _0x5c28c4[_0x561235(0x1f3)]{constructor(_0x326483,_0x4f45a3,_0x192183,_0x30b2e5,_0x122213){var _0x122e15=_0x561235;super(),_0x4387d5(this,_0x122e15(0x1d3),new _0x1be513[(_0x122e15(0x1c7))](_0x122e15(0x204))),_0x4387d5(this,'status$',this['_status$'][_0x122e15(0x2a4)]()),_0x4387d5(this,_0x122e15(0x2ac),!0x1),_0x4387d5(this,_0x122e15(0x280),null),_0x4387d5(this,_0x122e15(0x288),null),(this[_0x122e15(0x1f4)]=_0x326483,this[_0x122e15(0x216)]=_0x4f45a3,this[_0x122e15(0x275)]=_0x192183,this[_0x122e15(0x244)]=_0x30b2e5,this[_0x122e15(0x289)]=_0x122213);}get[_0x561235(0x251)](){var _0x2ec58b=_0x561235;return this[_0x2ec58b(0x1d3)][_0x2ec58b(0x26a)]();}[_0x561235(0x23e)](){var _0x1750dd=_0x561235,_0xf1182d;(_0xf1182d=this[_0x1750dd(0x280)])==null||_0xf1182d['dispose'](),this[_0x1750dd(0x1d3)]['next'](_0x1750dd(0x204)),this[_0x1750dd(0x1d3)][_0x1750dd(0x205)]();}[_0x561235(0x234)](){var _0x4c49eb=_0x561235;this[_0x4c49eb(0x2ac)]||(this[_0x4c49eb(0x2ac)]=!0x0,this['_collabSession'][_0x4c49eb(0x1f7)]['pipe'](_0x54be16[_0x4c49eb(0x29f)](this[_0x4c49eb(0x1d8)]))[_0x4c49eb(0x28c)](_0x5c6527=>{var _0x2dbe85=_0x4c49eb;switch(_0x5c6527){case _0x5552b1[_0x2dbe85(0x1e3)]['OFFLINE']:this[_0x2dbe85(0x1fe)]();break;case _0x5552b1['SessionStatus'][_0x2dbe85(0x28a)]:this[_0x2dbe85(0x2a0)]();break;}}),this['_collabSession'][_0x4c49eb(0x1d5)][_0x4c49eb(0x1ce)](_0x54be16['takeUntil'](this[_0x4c49eb(0x1d8)]))[_0x4c49eb(0x28c)](_0x53b725=>{var _0x3d0477=_0x4c49eb;const {eventID:_0x2d1596}=_0x53b725;switch(_0x2d1596){case _0x398bd6['CollaborationEvent'][_0x3d0477(0x23d)]:this[_0x3d0477(0x20b)](_0x53b725);break;case _0x398bd6[_0x3d0477(0x1d7)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x53b725);break;case _0x398bd6['CollaborationEvent'][_0x3d0477(0x1c2)]:this[_0x3d0477(0x21f)]();break;case _0x398bd6['CollaborationEvent'][_0x3d0477(0x25a)]:this[_0x3d0477(0x1cf)](_0x53b725);break;}}));}[_0x561235(0x1ff)](){var _0x286d6a=_0x561235;this[_0x286d6a(0x216)][_0x286d6a(0x221)]({'eventID':_0x398bd6[_0x286d6a(0x1d7)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x286d6a(0x216)][_0x286d6a(0x210)]()}},this[_0x286d6a(0x1f4)]);}[_0x561235(0x1fc)](){var _0x336432=_0x561235;this[_0x336432(0x251)]===_0x336432(0x22b)&&(this['_status$'][_0x336432(0x2a5)](_0x336432(0x204)),this[_0x336432(0x216)]['send']({'eventID':_0x398bd6[_0x336432(0x1d7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x336432(0x1f4)]}},this[_0x336432(0x1f4)]));}['startFollowing'](){var _0x5196b6=_0x561235;this[_0x5196b6(0x251)]==='not-following'&&(this[_0x5196b6(0x1d3)][_0x5196b6(0x2a5)](_0x5196b6(0x1bc)),this[_0x5196b6(0x22d)]());}[_0x561235(0x2a1)](){var _0xa9c138=_0x561235;this['_status']==='following'&&this[_0xa9c138(0x29d)]();}[_0x561235(0x20b)](_0x2c4146){var _0x3efd57=_0x561235;const {presenter:_0x3303f0}=_0x2c4146[_0x3efd57(0x21e)],_0xdd6a84=this['_collabSession'][_0x3efd57(0x210)]();this[_0x3efd57(0x288)]=_0x3303f0,_0x3303f0===_0xdd6a84?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3efd57(0x251)]!==_0x3efd57(0x25d)&&(this['_stopPresenting'](),this[_0x3efd57(0x22d)]());}[_0x561235(0x277)](){var _0x33d67b=_0x561235;const _0x328864={'eventID':_0x398bd6[_0x33d67b(0x1d7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x33d67b(0x216)][_0x33d67b(0x221)](_0x328864,this[_0x33d67b(0x1f4)]);}[_0x561235(0x21f)](){var _0x134389=_0x561235;this[_0x134389(0x288)]=null,this[_0x134389(0x251)]!=='presenting'&&this['_beIdle']();}[_0x561235(0x1cf)](_0x43632d){var _0x1659b9=_0x561235;if(this[_0x1659b9(0x251)]==='following'&&this[_0x1659b9(0x288)]===_0x43632d[_0x1659b9(0x21e)][_0x1659b9(0x207)]){const _0x2873bb=_0x398bd6['parseProtocolChangeset'](_0x43632d[_0x1659b9(0x21e)])[_0x1659b9(0x29e)][_0x1659b9(0x222)]()[_0x1659b9(0x29c)](_0x151a9f=>_0x151a9f['id']===_0x27a04e[_0x1659b9(0x22c)]['id']);if(_0x2873bb){const _0xa8ce14=_0x2873bb[_0x1659b9(0x21b)][_0x1659b9(0x274)],_0x2923db=_0x2873bb['params'][_0x1659b9(0x267)]['id'];setTimeout(()=>{var _0x4c773f=_0x1659b9;this[_0x4c773f(0x289)][_0x4c773f(0x28b)](_0x27a04e[_0x4c773f(0x254)]['id'],{'unitId':_0xa8ce14,'subUnitId':_0x2923db},{'fromCollab':!0x0});});}}}[_0x561235(0x235)](){var _0x593e79=_0x561235;this[_0x593e79(0x1d3)][_0x593e79(0x2a5)]('presenting');const _0x4c60c2=new Map(),_0x312150=this['_commandDisposable']=new _0x5c28c4['DisposableCollection']();_0x312150[_0x593e79(0x1c4)](_0x5c28c4[_0x593e79(0x2ab)](()=>{var _0x5bb33a=_0x593e79;_0x4c60c2[_0x5bb33a(0x2a3)](_0x146896=>_0x146896['complete']()),_0x4c60c2[_0x5bb33a(0x1f6)]();})),_0x312150['add'](this[_0x593e79(0x289)]['onCommandExecuted'](_0x735674=>{var _0x4b4279=_0x593e79,_0x4df4cd;if(_0x735674[_0x4b4279(0x263)]!==_0x5c28c4[_0x4b4279(0x248)]['OPERATION']||!this[_0x4b4279(0x244)][_0x4b4279(0x20a)](_0x735674['id']))return;const {id:_0x10b419}=_0x735674;let _0x18d9e6;_0x4c60c2['has'](_0x10b419)?_0x18d9e6=_0x4c60c2[_0x4b4279(0x271)](_0x10b419):(_0x18d9e6=new _0x1be513['Subject'](),_0x4c60c2[_0x4b4279(0x26f)](_0x10b419,_0x18d9e6),_0x18d9e6[_0x4b4279(0x1ce)](_0x54be16['throttleTime']((_0x4df4cd=this[_0x4b4279(0x275)][_0x4b4279(0x212)](_0x2893b4))!=null?_0x4df4cd:_0xfdb991,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b4279(0x28c)](_0x68bb73=>{var _0x256c5a=_0x4b4279;this[_0x256c5a(0x216)][_0x256c5a(0x221)]({'eventID':_0x398bd6[_0x256c5a(0x1d7)][_0x256c5a(0x231)],'data':{'unitID':this[_0x256c5a(0x1f4)],'operations':{[_0x68bb73['id']]:{'id':_0x68bb73['id'],'params':JSON[_0x256c5a(0x1e2)](_0x68bb73[_0x256c5a(0x21b)])}}}},this[_0x256c5a(0x1f4)]);})),_0x18d9e6[_0x4b4279(0x2a5)](_0x735674);})),this[_0x593e79(0x244)]['getInitialStates'](this[_0x593e79(0x1f4)])[_0x593e79(0x2a3)](_0x155d2c=>this['_collabSession']['send']({'eventID':_0x398bd6[_0x593e79(0x1d7)][_0x593e79(0x231)],'data':{'unitID':this[_0x593e79(0x1f4)],'operations':{[_0x155d2c['id']]:{'id':_0x155d2c['id'],'params':JSON[_0x593e79(0x1e2)](_0x155d2c[_0x593e79(0x21b)])}}}},this[_0x593e79(0x1f4)]));}[_0x561235(0x1bb)](){var _0x3410f6=_0x561235,_0x549e04;this[_0x3410f6(0x1d3)][_0x3410f6(0x2a5)](_0x3410f6(0x204)),(_0x549e04=this[_0x3410f6(0x280)])==null||_0x549e04[_0x3410f6(0x23e)](),this[_0x3410f6(0x280)]=null;}[_0x561235(0x22d)](){var _0x273324=_0x561235,_0xcff34d;(_0xcff34d=this[_0x273324(0x280)])==null||_0xcff34d[_0x273324(0x23e)](),this[_0x273324(0x1d3)][_0x273324(0x2a5)](_0x273324(0x1bc));}[_0x561235(0x227)](){var _0x1ae86c=_0x561235,_0x34f60f;this['_status$'][_0x1ae86c(0x2a5)](_0x1ae86c(0x204)),(_0x34f60f=this[_0x1ae86c(0x280)])==null||_0x34f60f['dispose'](),this[_0x1ae86c(0x280)]=null;}['_stopFollowing'](){var _0x15123a=_0x561235,_0x1dbb83;this[_0x15123a(0x1d3)][_0x15123a(0x2a5)]('not-following'),(_0x1dbb83=this[_0x15123a(0x280)])==null||_0x1dbb83[_0x15123a(0x23e)]();}[_0x561235(0x1c9)](_0x5b4bd2){var _0x152e5c=_0x561235;if([_0x152e5c(0x22b),_0x152e5c(0x25d),_0x152e5c(0x21a)][_0x152e5c(0x293)](this[_0x152e5c(0x251)])||!_0x5b4bd2[_0x152e5c(0x21e)]['presenter']||_0x5b4bd2[_0x152e5c(0x21e)][_0x152e5c(0x282)]===this[_0x152e5c(0x216)][_0x152e5c(0x210)]())return;this['_status']==='idle'&&this[_0x152e5c(0x22d)]();const _0x15f1ac=_0x5b4bd2[_0x152e5c(0x21e)][_0x152e5c(0x240)];Object[_0x152e5c(0x255)](_0x15f1ac)[_0x152e5c(0x2a3)](_0x523b66=>{var _0x511840=_0x152e5c;this['_commandService'][_0x511840(0x28b)](_0x523b66['id'],_0x523b66[_0x511840(0x21b)]?JSON[_0x511840(0x279)](_0x523b66[_0x511840(0x21b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x304fc8=_0x561235,_0x2a664b;this[_0x304fc8(0x1d3)][_0x304fc8(0x2a5)]('offline'),(_0x2a664b=this[_0x304fc8(0x280)])==null||_0x2a664b[_0x304fc8(0x23e)]();}[_0x561235(0x2a0)](){var _0x23c6c8=_0x561235;this[_0x23c6c8(0x1d3)][_0x23c6c8(0x2a5)]('idle'),this['_fetchOperations']();}},_0x1a4a0a[_0x561235(0x1dc)]=_0x404a25([_0x150e52(0x2,_0x5c28c4['IConfigService']),_0x150e52(0x3,_0x5c28c4[_0x561235(0x20c)](_0x543b2b)),_0x150e52(0x4,_0x5c28c4[_0x561235(0x1d0)])],_0x1a4a0a[_0x561235(0x1dc)]);function _0xaf5b0b(){var _0x54fb0d=_0x561235;const _0x5eb00e=_0xca39c1[_0x54fb0d(0x211)](_0x1a4a0a[_0x54fb0d(0x233)]),_0x29da83=_0xca39c1[_0x54fb0d(0x211)](_0x5c28c4[_0x54fb0d(0x29b)]),_0x32c640=_0xca39c1[_0x54fb0d(0x206)](()=>_0x29da83['getCurrentTypeOfUnit$'](_0x5c28c4['UniverInstanceType'][_0x54fb0d(0x26d)]),void 0x0,!0x1,[]),[_0x33aeb1,_0x14a5d9]=_0xfc3b01[_0x54fb0d(0x1de)](null),[_0x1dea5d,_0x3d0ba3]=_0xfc3b01[_0x54fb0d(0x1de)](_0x33435e[_0x54fb0d(0x26e)]),_0xb4dd75=_0xfc3b01[_0x54fb0d(0x24e)](null);return _0xfc3b01['useEffect'](()=>(_0x32c640&&_0x5eb00e[_0x54fb0d(0x1cd)](_0x32c640[_0x54fb0d(0x1da)]())[_0x54fb0d(0x224)](_0x1d95d4=>{var _0x1259f5=_0x54fb0d;_0x14a5d9(_0x1d95d4),_0xb4dd75[_0x1259f5(0x276)]=_0x1d95d4[_0x1259f5(0x1d6)][_0x1259f5(0x28c)](_0x483c42=>{_0x3d0ba3(_0x483c42);});}),()=>{var _0x5d296f=_0x54fb0d,_0x92d4db;(_0x92d4db=_0xb4dd75['current'])==null||_0x92d4db['unsubscribe'](),_0xb4dd75[_0x5d296f(0x276)]=null;}),[_0x32c640,_0x5eb00e]),_0x33aeb1?_0x250593['jsx'](_0x21c058[_0x54fb0d(0x1cc)],{'align':_0x54fb0d(0x20f),'disabled':_0x1dea5d===_0x33435e[_0x54fb0d(0x232)],'className':_0x54fb0d(0x1ca),'overlay':_0x250593[_0x54fb0d(0x1eb)](_0x458f3d,{'status':_0x1dea5d,'coordinator':_0x33aeb1}),'children':_0x250593['jsx'](_0x54fb0d(0x1fa),{'className':_0x21c058[_0x54fb0d(0x20e)](_0x54fb0d(0x1be),{'univer-cursor-not-allowed':_0x1dea5d===_0x33435e['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1dea5d!==_0x33435e['OFFLINE']}),'type':'button','children':_0x250593[_0x54fb0d(0x1eb)](_0x4f37fe,{'className':_0x54fb0d(0x2b0)})})}):null;}function _0x458f3d(_0x4982e4){var _0x413968=_0x561235;const {status:_0x38c4da,coordinator:_0x31cd0b}=_0x4982e4;switch(_0x38c4da){case _0x33435e[_0x413968(0x26e)]:return _0x250593['jsx'](_0x482701,{'coordinator':_0x31cd0b});case _0x33435e['FOLLOWING']:return _0x250593[_0x413968(0x1eb)](_0xe88b3d,{'coordinator':_0x31cd0b});case _0x33435e['NOT_FOLLOWING']:return _0x250593[_0x413968(0x1eb)](_0x3ab17e,{'coordinator':_0x31cd0b});case _0x33435e[_0x413968(0x232)]:return _0x250593[_0x413968(0x1eb)](_0x576314,{});case _0x33435e['PRESENTING']:return _0x250593[_0x413968(0x1eb)](_0x11c86d,{'coordinator':_0x31cd0b});default:return null;}}function _0x482701(_0x39063f){var _0x428fd5=_0x561235;const {coordinator:_0x5e8b96}=_0x39063f;return _0x250593['jsxs'](_0x250593[_0x428fd5(0x297)],{'children':[_0x250593[_0x428fd5(0x1eb)](_0x428fd5(0x1e7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x428fd5(0x225)}),_0x250593[_0x428fd5(0x1eb)](_0x21c058[_0x428fd5(0x268)],{'onClick':()=>_0x5e8b96[_0x428fd5(0x1ff)](),'children':_0x428fd5(0x292)})]});}function _0xe88b3d(_0x114755){var _0x125447=_0x561235;const {coordinator:_0x2dc12c}=_0x114755;return _0x250593['jsxs'](_0x250593[_0x125447(0x297)],{'children':[_0x250593[_0x125447(0x1eb)](_0x125447(0x1e7),{'className':_0x125447(0x1db),'children':_0x125447(0x257)}),_0x250593[_0x125447(0x1eb)](_0x21c058['Button'],{'onClick':()=>_0x2dc12c[_0x125447(0x2a1)](),'children':_0x125447(0x253)})]});}function _0x3ab17e(_0x35dd8f){var _0x5b0118=_0x561235;const {coordinator:_0x465678}=_0x35dd8f;return _0x250593[_0x5b0118(0x1b9)](_0x250593[_0x5b0118(0x297)],{'children':[_0x250593[_0x5b0118(0x1eb)](_0x5b0118(0x1e7),{'className':_0x5b0118(0x1db),'children':_0x5b0118(0x260)}),_0x250593['jsx'](_0x21c058[_0x5b0118(0x268)],{'variant':_0x5b0118(0x242),'onClick':()=>_0x465678['startFollowing'](),'children':'Start\x20following'})]});}function _0x11c86d(_0x31a7a7){var _0x38cb4e=_0x561235;const {coordinator:_0x781671}=_0x31a7a7;return _0x250593[_0x38cb4e(0x1b9)](_0x250593['Fragment'],{'children':[_0x250593[_0x38cb4e(0x1eb)]('div',{'className':_0x38cb4e(0x1db),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x250593[_0x38cb4e(0x1eb)](_0x21c058[_0x38cb4e(0x268)],{'variant':_0x38cb4e(0x28d),'onClick':()=>_0x781671['stopPresenting'](),'children':_0x38cb4e(0x286)})]});}function _0x576314(){var _0x3a05ef=_0x561235;return _0x250593[_0x3a05ef(0x1eb)](_0x250593[_0x3a05ef(0x297)],{'children':_0x3a05ef(0x241)});}var _0x42ac1b=Object[_0x561235(0x1e9)],_0x4494de=(_0x371644,_0x34bcb4,_0x5ad3b2,_0x2f4501)=>{var _0x9578e4=_0x561235;for(var _0xe8ff80=_0x2f4501>0x1?void 0x0:_0x2f4501?_0x42ac1b(_0x34bcb4,_0x5ad3b2):_0x34bcb4,_0x5e8842=_0x371644[_0x9578e4(0x29a)]-0x1,_0x532478;_0x5e8842>=0x0;_0x5e8842--)(_0x532478=_0x371644[_0x5e8842])&&(_0xe8ff80=_0x532478(_0xe8ff80)||_0xe8ff80);return _0xe8ff80;},_0x2519ed=(_0x41fb31,_0x2913b7)=>(_0x4dcb1d,_0x3dddde)=>_0x2913b7(_0x4dcb1d,_0x3dddde,_0x41fb31);_0x1a4a0a[_0x561235(0x1c5)]=class extends _0x5c28c4[_0x561235(0x1d4)]{constructor(_0x15bc47,_0x297bfe){var _0x17af68=_0x561235;super(),this[_0x17af68(0x1dd)]=_0x15bc47,this['_uiPartsService']=_0x297bfe,this[_0x17af68(0x215)]();}[_0x561235(0x215)](){var _0x3fbcf8=_0x561235;this['disposeWithMe'](this[_0x3fbcf8(0x23b)][_0x3fbcf8(0x1ea)](_0xca39c1[_0x3fbcf8(0x1f9)][_0x3fbcf8(0x1e1)],()=>_0xca39c1[_0x3fbcf8(0x1e6)](_0xaf5b0b,this[_0x3fbcf8(0x1dd)])));}},_0x1a4a0a[_0x561235(0x1c5)]=_0x4494de([_0x2519ed(0x0,_0x5c28c4[_0x561235(0x20c)](_0x5c28c4[_0x561235(0x22a)])),_0x2519ed(0x1,_0xca39c1[_0x561235(0x1ed)])],_0x1a4a0a[_0x561235(0x1c5)]);var _0x3d4b34=Object[_0x561235(0x27b)],_0x33f8a4=Object['getOwnPropertyDescriptor'],_0x5eb9cb=(_0x3f180c,_0x4324a1,_0x18b74)=>_0x4324a1 in _0x3f180c?_0x3d4b34(_0x3f180c,_0x4324a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18b74}):_0x3f180c[_0x4324a1]=_0x18b74,_0x370386=(_0x386a7f,_0x57a42f,_0x2fbdf1,_0x5daf6c)=>{for(var _0x10c7d0=_0x5daf6c>0x1?void 0x0:_0x5daf6c?_0x33f8a4(_0x57a42f,_0x2fbdf1):_0x57a42f,_0x18f060=_0x386a7f['length']-0x1,_0x584254;_0x18f060>=0x0;_0x18f060--)(_0x584254=_0x386a7f[_0x18f060])&&(_0x10c7d0=_0x584254(_0x10c7d0)||_0x10c7d0);return _0x10c7d0;},_0x38382f=(_0x20482f,_0x461b0e)=>(_0x535ef8,_0x23f9a3)=>_0x461b0e(_0x535ef8,_0x23f9a3,_0x20482f),_0x190040=(_0x1d7105,_0x238be1,_0x219146)=>_0x5eb9cb(_0x1d7105,typeof _0x238be1!='symbol'?_0x238be1+'':_0x238be1,_0x219146);const _0x4aa30b='UNIVER_LIVE_SHARE_PLUGIN';_0x1a4a0a[_0x561235(0x269)]=class extends _0x5c28c4[_0x561235(0x24b)]{constructor(_0x1d16f5=_0x174068,_0x2d4a27,_0x5a69fd){var _0x23f74e=_0x561235;super(),this['_config']=_0x1d16f5,this[_0x23f74e(0x1dd)]=_0x2d4a27,this['_configService']=_0x5a69fd;const {..._0x1b7e2a}=_0x5c28c4[_0x23f74e(0x1e4)]({},_0x174068,this[_0x23f74e(0x1e0)]);this['_configService'][_0x23f74e(0x261)](_0x31cdc9,_0x1b7e2a);}[_0x561235(0x27e)](){var _0x4fc28f=_0x561235;_0x5c28c4[_0x4fc28f(0x1e8)](this[_0x4fc28f(0x1dd)],_0x5c28c4[_0x4fc28f(0x249)]([[_0x543b2b],[_0x1a4a0a['LiveShareController']],[_0x4e66a6],[_0x1a4a0a[_0x4fc28f(0x1c5)]]],this[_0x4fc28f(0x1e0)][_0x4fc28f(0x24a)])),_0x5c28c4[_0x4fc28f(0x22e)](this['_injector'],[[_0x4e66a6]]);}['onRendered'](){var _0x550f14=_0x561235;_0x5c28c4[_0x550f14(0x22e)](this[_0x550f14(0x1dd)],[[_0x1a4a0a[_0x550f14(0x1c5)]]]);}},_0x190040(_0x1a4a0a[_0x561235(0x269)],_0x561235(0x263),_0x5c28c4[_0x561235(0x226)][_0x561235(0x298)]),_0x190040(_0x1a4a0a[_0x561235(0x269)],_0x561235(0x1bd),_0x4aa30b),_0x1a4a0a['UniverLiveSharePlugin']=_0x370386([_0x5c28c4[_0x561235(0x27f)](_0x5552b1[_0x561235(0x2ad)]),_0x38382f(0x1,_0x5c28c4[_0x561235(0x20c)](_0x5c28c4[_0x561235(0x22a)])),_0x38382f(0x2,_0x5c28c4[_0x561235(0x2a2)])],_0x1a4a0a['UniverLiveSharePlugin']),_0x1a4a0a[_0x561235(0x26b)]=_0xaf5b0b,_0x1a4a0a[_0x561235(0x1bf)]=_0x543b2b,_0x1a4a0a[_0x561235(0x296)]=_0x33435e,Object['defineProperty'](_0x1a4a0a,Symbol[_0x561235(0x25b)],{'value':_0x561235(0x208)});}));
1
+ (function(_0x3ff305,_0x42f522){var _0x40ce03=_0x2d1a,_0x4996d1=_0x3ff305();while(!![]){try{var _0x5ab816=parseInt(_0x40ce03(0x143))/0x1*(-parseInt(_0x40ce03(0x1e9))/0x2)+-parseInt(_0x40ce03(0x190))/0x3+-parseInt(_0x40ce03(0x20c))/0x4*(-parseInt(_0x40ce03(0x1a7))/0x5)+-parseInt(_0x40ce03(0x17b))/0x6*(parseInt(_0x40ce03(0x1ea))/0x7)+parseInt(_0x40ce03(0x154))/0x8+parseInt(_0x40ce03(0x163))/0x9*(parseInt(_0x40ce03(0x141))/0xa)+parseInt(_0x40ce03(0x1c8))/0xb;if(_0x5ab816===_0x42f522)break;else _0x4996d1['push'](_0x4996d1['shift']());}catch(_0x3f74b2){_0x4996d1['push'](_0x4996d1['shift']());}}}(_0x3c01,0x4f23d),function(_0x25fd5d,_0x457333){var _0x3a97e7=_0x2d1a;typeof exports==_0x3a97e7(0x175)&&typeof module<'u'?_0x457333(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define(['exports',_0x3a97e7(0x206),'@univerjs/core','@univerjs/sheets',_0x3a97e7(0x21d),'@univerjs/ui',_0x3a97e7(0x139),'@univerjs/design',_0x3a97e7(0x1fe),'@univerjs-pro/collaboration',_0x3a97e7(0x1bd),_0x3a97e7(0x15e)],_0x457333):(_0x25fd5d=typeof globalThis<'u'?globalThis:_0x25fd5d||self,_0x457333(_0x25fd5d[_0x3a97e7(0x1ad)]={},_0x25fd5d[_0x3a97e7(0x210)],_0x25fd5d[_0x3a97e7(0x13c)],_0x25fd5d[_0x3a97e7(0x15d)],_0x25fd5d['UniverSheetsUi'],_0x25fd5d[_0x3a97e7(0x1e7)],_0x25fd5d[_0x3a97e7(0x226)],_0x25fd5d[_0x3a97e7(0x1ba)],_0x25fd5d[_0x3a97e7(0x226)],_0x25fd5d[_0x3a97e7(0x1fd)],_0x25fd5d[_0x3a97e7(0x1bd)],_0x25fd5d['rxjs'][_0x3a97e7(0x140)]));}(this,function(_0x4e4e10,_0x42174f,_0x569f1c,_0x5cb156,_0x42086e,_0x2d556a,_0x46172a,_0x156716,_0x1ff6c2,_0x56d983,_0x5572bd,_0x589ede){'use strict';var _0x56641d=_0x2d1a;var _0x188285=Object[_0x56641d(0x1b7)],_0x4e2810=(_0xfd0930,_0x468318,_0x27561b)=>_0x468318 in _0xfd0930?_0x188285(_0xfd0930,_0x468318,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27561b}):_0xfd0930[_0x468318]=_0x27561b,_0x43f60c=(_0x4c7252,_0x1be7ba,_0x809319)=>_0x4e2810(_0x4c7252,typeof _0x1be7ba!=_0x56641d(0x185)?_0x1be7ba+'':_0x1be7ba,_0x809319);const _0x20cd12=_0x56641d(0x20e),_0x1838b9={};class _0x43073c extends _0x569f1c['Disposable']{constructor(){var _0x21fe1d=_0x56641d;super(...arguments),_0x43f60c(this,_0x21fe1d(0x13b),new Set()),_0x43f60c(this,_0x21fe1d(0x211),new Set());}['registerSharedOperation'](_0x53c296){var _0x117b9c=_0x56641d;return this['_sharedOperations']['add'](_0x53c296),_0x569f1c['toDisposable'](()=>this['_sharedOperations'][_0x117b9c(0x198)](_0x53c296));}[_0x56641d(0x17e)](_0x5f1b0a){var _0x269b9b=_0x56641d;return this[_0x269b9b(0x211)]['add'](_0x5f1b0a),_0x569f1c[_0x269b9b(0x18e)](()=>this[_0x269b9b(0x211)][_0x269b9b(0x198)](_0x5f1b0a));}[_0x56641d(0x1d4)](_0x5bcfe7){var _0x374478=_0x56641d;return this[_0x374478(0x13b)][_0x374478(0x1a9)](_0x5bcfe7);}[_0x56641d(0x18f)](_0x5c0b49){var _0x27db49=_0x56641d;return Array[_0x27db49(0x1de)](this[_0x27db49(0x211)])['map'](_0x5eea7d=>_0x5eea7d(_0x5c0b49));}}var _0x56fd30=Object[_0x56641d(0x21b)],_0x626b63=(_0x4baa86,_0x5c7ca2,_0x1d3fb8,_0x2ce2a6)=>{var _0x88aa6b=_0x56641d;for(var _0x567315=_0x2ce2a6>0x1?void 0x0:_0x2ce2a6?_0x56fd30(_0x5c7ca2,_0x1d3fb8):_0x5c7ca2,_0x284a3b=_0x4baa86[_0x88aa6b(0x223)]-0x1,_0x3e4ffd;_0x284a3b>=0x0;_0x284a3b--)(_0x3e4ffd=_0x4baa86[_0x284a3b])&&(_0x567315=_0x3e4ffd(_0x567315)||_0x567315);return _0x567315;},_0x2f98b7=(_0x359a0c,_0x2bad8c)=>(_0x269a4d,_0x2af412)=>_0x2bad8c(_0x269a4d,_0x2af412,_0x359a0c);let _0x1d191f=class extends _0x569f1c[_0x56641d(0x17a)]{constructor(_0x365020){var _0x2ea77b=_0x56641d;super(),this[_0x2ea77b(0x1b3)]=_0x365020,this[_0x2ea77b(0x208)]();}[_0x56641d(0x208)](){var _0x532b32=_0x56641d;[_0x42086e[_0x532b32(0x1b4)]['id'],_0x42086e['SetScrollOperation']['id'],_0x5cb156[_0x532b32(0x1ed)]['id']]['forEach'](_0x547354=>{var _0xa52370=_0x532b32;this[_0xa52370(0x16f)](this[_0xa52370(0x1b3)][_0xa52370(0x19c)](_0x547354));});}};_0x1d191f=_0x626b63([_0x2f98b7(0x0,_0x569f1c[_0x56641d(0x1f8)](_0x43073c))],_0x1d191f);var _0x2ef71e=function(){var _0x55e36b=_0x56641d;return _0x2ef71e=Object[_0x55e36b(0x191)]||function(_0x102148){var _0x18360c=_0x55e36b;for(var _0xd8a560,_0x2ddd1f=0x1,_0xcb8ee7=arguments[_0x18360c(0x223)];_0x2ddd1f<_0xcb8ee7;_0x2ddd1f++){_0xd8a560=arguments[_0x2ddd1f];for(var _0x3c08e4 in _0xd8a560)Object[_0x18360c(0x17c)][_0x18360c(0x205)][_0x18360c(0x220)](_0xd8a560,_0x3c08e4)&&(_0x102148[_0x3c08e4]=_0xd8a560[_0x3c08e4]);}return _0x102148;},_0x2ef71e['apply'](this,arguments);},_0x47dc81=function(_0x58a36b,_0x316064){var _0x5e478c=_0x56641d,_0x18c8ad={};for(var _0x4243bb in _0x58a36b)Object['prototype']['hasOwnProperty'][_0x5e478c(0x220)](_0x58a36b,_0x4243bb)&&_0x316064['indexOf'](_0x4243bb)<0x0&&(_0x18c8ad[_0x4243bb]=_0x58a36b[_0x4243bb]);if(_0x58a36b!=null&&typeof Object[_0x5e478c(0x142)]=='function'){for(var _0x3cb0a3=0x0,_0x4243bb=Object[_0x5e478c(0x142)](_0x58a36b);_0x3cb0a3<_0x4243bb[_0x5e478c(0x223)];_0x3cb0a3++)_0x316064[_0x5e478c(0x14a)](_0x4243bb[_0x3cb0a3])<0x0&&Object[_0x5e478c(0x17c)][_0x5e478c(0x207)]['call'](_0x58a36b,_0x4243bb[_0x3cb0a3])&&(_0x18c8ad[_0x4243bb[_0x3cb0a3]]=_0x58a36b[_0x4243bb[_0x3cb0a3]]);}return _0x18c8ad;},_0x261f3f=_0x1ff6c2[_0x56641d(0x174)](function(_0x5920a5,_0x5988ca){var _0x3eb4e1=_0x56641d,_0x2ec9bd=_0x5920a5[_0x3eb4e1(0x1ce)],_0x3b7a38=_0x5920a5['id'],_0xf242e7=_0x5920a5['className'],_0xc42b2f=_0x5920a5[_0x3eb4e1(0x221)],_0xa55868=_0x47dc81(_0x5920a5,['icon','id',_0x3eb4e1(0x1d6),_0x3eb4e1(0x221)]),_0x124f99=_0x3eb4e1(0x193)[_0x3eb4e1(0x1c9)](_0x3b7a38,'\x20')[_0x3eb4e1(0x1c9)](_0xf242e7||'')['trim'](),_0x297f0a=_0x1ff6c2[_0x3eb4e1(0x15f)]('_'['concat'](_0x1007d8()));return _0x3c7c1b(_0x2ec9bd,''[_0x3eb4e1(0x1c9)](_0x3b7a38),{'defIds':_0x2ec9bd[_0x3eb4e1(0x188)],'idSuffix':_0x297f0a[_0x3eb4e1(0x1f5)]},_0x2ef71e({'ref':_0x5988ca,'className':_0x124f99},_0xa55868),_0xc42b2f);});function _0x3c7c1b(_0x40be4a,_0x9a861e,_0x5f544b,_0x50ba19,_0x304f01){var _0x5107e1=_0x56641d;return _0x1ff6c2[_0x5107e1(0x194)](_0x40be4a[_0x5107e1(0x1c5)],_0x2ef71e(_0x2ef71e({'key':_0x9a861e},_0x2dd6f2(_0x40be4a,_0x5f544b,_0x304f01)),_0x50ba19),(_0x5464f3(_0x40be4a,_0x5f544b)['children']||[])[_0x5107e1(0x144)](function(_0x455811,_0x581c92){var _0x345868=_0x5107e1;return _0x3c7c1b(_0x455811,''['concat'](_0x9a861e,'-')[_0x345868(0x1c9)](_0x40be4a['tag'],'-')['concat'](_0x581c92),_0x5f544b,void 0x0,_0x304f01);}));}function _0x2dd6f2(_0x3e141c,_0x16ee9a,_0x55d687){var _0x33230c=_0x56641d,_0x54582d=_0x2ef71e({},_0x3e141c[_0x33230c(0x1fb)]);_0x55d687!=null&&_0x55d687['colorChannel1']&&_0x54582d[_0x33230c(0x1ab)]===_0x33230c(0x21f)&&(_0x54582d[_0x33230c(0x1ab)]=_0x55d687[_0x33230c(0x21f)]),_0x3e141c['tag']===_0x33230c(0x13d)&&_0x54582d['id']&&(_0x54582d['id']=_0x54582d['id']+_0x16ee9a[_0x33230c(0x1b1)]),Object['entries'](_0x54582d)[_0x33230c(0x1cc)](function(_0x4dce19){var _0x3a93c9=_0x33230c,_0x1448d2=_0x4dce19[0x0],_0x19f58c=_0x4dce19[0x1];_0x1448d2===_0x3a93c9(0x13d)&&typeof _0x19f58c=='string'&&(_0x54582d[_0x1448d2]=_0x19f58c[_0x3a93c9(0x18a)](/url\(#(.*)\)/,_0x3a93c9(0x1a2)[_0x3a93c9(0x1c9)](_0x16ee9a[_0x3a93c9(0x1b1)],')')));});var _0x9cdaa1=_0x16ee9a[_0x33230c(0x188)];return!_0x9cdaa1||_0x9cdaa1[_0x33230c(0x223)]===0x0||(_0x3e141c[_0x33230c(0x1c5)]===_0x33230c(0x16e)&&_0x54582d[_0x33230c(0x19a)]&&(_0x54582d[_0x33230c(0x19a)]=_0x54582d['xlink:href']+_0x16ee9a['idSuffix']),Object['entries'](_0x54582d)[_0x33230c(0x1cc)](function(_0x21a999){var _0x107ef0=_0x33230c,_0x144bbc=_0x21a999[0x0],_0x4723b9=_0x21a999[0x1];typeof _0x4723b9==_0x107ef0(0x1ee)&&(_0x54582d[_0x144bbc]=_0x4723b9[_0x107ef0(0x18a)](/url\(#(.*)\)/,_0x107ef0(0x1a2)[_0x107ef0(0x1c9)](_0x16ee9a[_0x107ef0(0x1b1)],')')));})),_0x54582d;}function _0x5464f3(_0x104a44,_0x319020){var _0x5966b5=_0x56641d,_0x2f6250,_0x4a1cd3=_0x319020[_0x5966b5(0x188)];return!_0x4a1cd3||_0x4a1cd3[_0x5966b5(0x223)]===0x0?_0x104a44:_0x104a44[_0x5966b5(0x1c5)]===_0x5966b5(0x1e6)&&(!((_0x2f6250=_0x104a44[_0x5966b5(0x215)])===null||_0x2f6250===void 0x0)&&_0x2f6250[_0x5966b5(0x223)])?_0x2ef71e(_0x2ef71e({},_0x104a44),{'children':_0x104a44[_0x5966b5(0x215)][_0x5966b5(0x144)](function(_0xd8211f){var _0x16eaff=_0x5966b5;return typeof _0xd8211f[_0x16eaff(0x1fb)]['id']==_0x16eaff(0x1ee)&&_0x4a1cd3&&_0x4a1cd3[_0x16eaff(0x209)](_0xd8211f[_0x16eaff(0x1fb)]['id'])?_0x2ef71e(_0x2ef71e({},_0xd8211f),{'attrs':_0x2ef71e(_0x2ef71e({},_0xd8211f['attrs']),{'id':_0xd8211f['attrs']['id']+_0x319020[_0x16eaff(0x1b1)]})}):_0xd8211f;})}):_0x104a44;}function _0x1007d8(){var _0x45a9b2=_0x56641d;return Math[_0x45a9b2(0x182)]()['toString'](0x24)['substring'](0x2,0x8);}_0x261f3f['displayName']='UniverIcon';var _0x2579a4={'tag':_0x56641d(0x1f4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56641d(0x14d),'viewBox':_0x56641d(0x219),'width':_0x56641d(0x1a0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x56641d(0x1c2)}},{'tag':_0x56641d(0x1c7),'attrs':{'fill':_0x56641d(0x181),'d':_0x56641d(0x1d1),'fillRule':'evenodd','clipRule':_0x56641d(0x14c)}}]},_0x59893b=_0x1ff6c2['forwardRef'](function(_0x2934e4,_0x38159d){var _0x5d66cb=_0x56641d;return _0x1ff6c2[_0x5d66cb(0x194)](_0x261f3f,Object[_0x5d66cb(0x191)]({},_0x2934e4,{'id':'live-share-icon','ref':_0x38159d,'icon':_0x2579a4}));});_0x59893b['displayName']=_0x56641d(0x19e);var _0x4ab8ab=Object[_0x56641d(0x21b)],_0x594421=(_0x391dd0,_0x1302e3,_0x1ad3d7,_0x2ee5f3)=>{for(var _0x51df8=_0x2ee5f3>0x1?void 0x0:_0x2ee5f3?_0x4ab8ab(_0x1302e3,_0x1ad3d7):_0x1302e3,_0x556448=_0x391dd0['length']-0x1,_0x53972b;_0x556448>=0x0;_0x556448--)(_0x53972b=_0x391dd0[_0x556448])&&(_0x51df8=_0x53972b(_0x51df8)||_0x51df8);return _0x51df8;},_0x516eb2=(_0x46c850,_0x5b57c2)=>(_0x3f5ca3,_0x56aa95)=>_0x5b57c2(_0x3f5ca3,_0x56aa95,_0x46c850);_0x4e4e10['LiveShareController']=class extends _0x569f1c[_0x56641d(0x1bc)]{constructor(_0x1ab115,_0x1c756a,_0x3abef9){var _0x1fc624=_0x56641d;super(),_0x43f60c(this,_0x1fc624(0x196),new Map()),(this[_0x1fc624(0x1e1)]=_0x1ab115,this[_0x1fc624(0x1eb)]=_0x1c756a,this[_0x1fc624(0x213)]=_0x3abef9,this[_0x1fc624(0x208)]());}async['getLiveShareCoordinator'](_0x55eaa4){var _0x4fcc86=_0x56641d;return this[_0x4fcc86(0x196)][_0x4fcc86(0x1a9)](_0x55eaa4)||await this[_0x4fcc86(0x1c4)](_0x55eaa4),this['_entities'][_0x4fcc86(0x20a)](_0x55eaa4);}[_0x56641d(0x208)](){var _0x1580f3=_0x56641d;this[_0x1580f3(0x1e1)][_0x1580f3(0x1ff)](_0x569f1c[_0x1580f3(0x1a3)][_0x1580f3(0x13a)])[_0x1580f3(0x1d9)](_0x589ede[_0x1580f3(0x1af)](this[_0x1580f3(0x171)]))[_0x1580f3(0x1bf)](async _0x2a266e=>{var _0x1ab2d1=_0x1580f3;const _0x29b389=_0x2a266e[_0x1ab2d1(0x1b5)]();this['_entities']['has'](_0x29b389)||this[_0x1ab2d1(0x1c4)](_0x29b389);}),this[_0x1580f3(0x1e1)]['getTypeOfUnitDisposed$'](_0x569f1c[_0x1580f3(0x1a3)][_0x1580f3(0x13a)])[_0x1580f3(0x1d9)](_0x589ede['takeUntil'](this[_0x1580f3(0x171)]))[_0x1580f3(0x1bf)](_0x3d6662=>{var _0x1b6e93=_0x1580f3;const _0x2bb6ec=_0x3d6662[_0x1b6e93(0x1b5)](),_0x36cee3=this[_0x1b6e93(0x196)][_0x1b6e93(0x20a)](_0x2bb6ec);_0x36cee3==null||_0x36cee3[_0x1b6e93(0x155)]();});}async[_0x56641d(0x1c4)](_0xae91dc){var _0x3b2eff=_0x56641d;const _0x24a5b3=await this[_0x3b2eff(0x213)]['requireSession'](_0xae91dc),_0x3083b0=this[_0x3b2eff(0x1eb)][_0x3b2eff(0x1ac)](_0x4e4e10[_0x3b2eff(0x153)],_0xae91dc,_0x24a5b3);return _0x3083b0[_0x3b2eff(0x1e4)](),this[_0x3b2eff(0x196)][_0x3b2eff(0x1e8)](_0xae91dc,_0x3083b0),_0x3083b0;}},_0x4e4e10['LiveShareController']=_0x594421([_0x516eb2(0x0,_0x569f1c[_0x56641d(0x13e)]),_0x516eb2(0x1,_0x569f1c['Inject'](_0x569f1c[_0x56641d(0x145)])),_0x516eb2(0x2,_0x569f1c[_0x56641d(0x1f8)](_0x42174f[_0x56641d(0x16c)]))],_0x4e4e10[_0x56641d(0x165)]);var _0x40dd55=(_0xac952=>(_0xac952['OFFLINE']=_0x56641d(0x1e2),_0xac952[_0x56641d(0x16b)]=_0x56641d(0x17f),_0xac952['FOLLOWING']='following',_0xac952[_0x56641d(0x1cf)]=_0x56641d(0x1f2),_0xac952[_0x56641d(0x168)]=_0x56641d(0x15b),_0xac952))(_0x40dd55||{});const _0x3b3bc6=_0x56641d(0x21a),_0x3e01f9=0xc8;_0x4e4e10[_0x56641d(0x153)]=class extends _0x569f1c['RxDisposable']{constructor(_0x945eee,_0x529dca,_0x32ec90,_0x5df55f,_0x106744){var _0x5c6ef4=_0x56641d;super(),_0x43f60c(this,_0x5c6ef4(0x1ef),new _0x5572bd[(_0x5c6ef4(0x1a8))](_0x5c6ef4(0x17f))),_0x43f60c(this,_0x5c6ef4(0x1c1),this[_0x5c6ef4(0x1ef)][_0x5c6ef4(0x1fc)]()),_0x43f60c(this,_0x5c6ef4(0x208),!0x1),_0x43f60c(this,'_commandDisposable',null),_0x43f60c(this,_0x5c6ef4(0x156),null),(this[_0x5c6ef4(0x212)]=_0x945eee,this[_0x5c6ef4(0x159)]=_0x529dca,this[_0x5c6ef4(0x1d2)]=_0x32ec90,this[_0x5c6ef4(0x1b3)]=_0x5df55f,this[_0x5c6ef4(0x14f)]=_0x106744);}get[_0x56641d(0x1f6)](){var _0x59ec60=_0x56641d;return this[_0x59ec60(0x1ef)]['getValue']();}['dispose'](){var _0x91ccaa=_0x56641d,_0x4ca5d3;(_0x4ca5d3=this[_0x91ccaa(0x200)])==null||_0x4ca5d3[_0x91ccaa(0x155)](),this['_status$'][_0x91ccaa(0x184)]('idle'),this[_0x91ccaa(0x1ef)][_0x91ccaa(0x203)]();}['init'](){var _0x3a1af7=_0x56641d;this['_init']||(this[_0x3a1af7(0x208)]=!0x0,this['_collabSession'][_0x3a1af7(0x218)][_0x3a1af7(0x1d9)](_0x589ede[_0x3a1af7(0x1af)](this[_0x3a1af7(0x171)]))['subscribe'](_0xb62d73=>{var _0x1db3c5=_0x3a1af7;switch(_0xb62d73){case _0x42174f[_0x1db3c5(0x1d7)]['OFFLINE']:this['_handleOffline']();break;case _0x42174f[_0x1db3c5(0x1d7)][_0x1db3c5(0x1fa)]:this[_0x1db3c5(0x1c0)]();break;}}),this[_0x3a1af7(0x159)]['event$'][_0x3a1af7(0x1d9)](_0x589ede[_0x3a1af7(0x1af)](this[_0x3a1af7(0x171)]))[_0x3a1af7(0x1bf)](_0x4238ec=>{var _0x51f585=_0x3a1af7;const {eventID:_0x53e48c}=_0x4238ec;switch(_0x53e48c){case _0x56d983[_0x51f585(0x164)][_0x51f585(0x19d)]:this[_0x51f585(0x176)](_0x4238ec);break;case _0x56d983['CollaborationEvent'][_0x51f585(0x166)]:this[_0x51f585(0x1e3)](_0x4238ec);break;case _0x56d983['CollaborationEvent'][_0x51f585(0x19f)]:this['_handleTerminate']();break;case _0x56d983[_0x51f585(0x164)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4238ec);break;}}));}['tryStartPresenting'](){var _0x4fb745=_0x56641d;this['_collabSession'][_0x4fb745(0x1d0)]({'eventID':_0x56d983[_0x4fb745(0x164)][_0x4fb745(0x151)],'data':{'unitID':this[_0x4fb745(0x212)],'userID':this[_0x4fb745(0x159)][_0x4fb745(0x16d)]()}},this['_unitID']);}['stopPresenting'](){var _0x17161d=_0x56641d;this[_0x17161d(0x1f6)]===_0x17161d(0x15b)&&(this[_0x17161d(0x1ef)][_0x17161d(0x184)](_0x17161d(0x17f)),this[_0x17161d(0x159)]['send']({'eventID':_0x56d983[_0x17161d(0x164)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x17161d(0x212)]));}[_0x56641d(0x13f)](){var _0x4ff2d9=_0x56641d;this[_0x4ff2d9(0x1f6)]===_0x4ff2d9(0x1f2)&&(this[_0x4ff2d9(0x1ef)][_0x4ff2d9(0x184)]('following'),this[_0x4ff2d9(0x1be)]());}[_0x56641d(0x1a4)](){var _0x575355=_0x56641d;this[_0x575355(0x1f6)]===_0x575355(0x160)&&this['_stopFollowing']();}[_0x56641d(0x176)](_0x286133){var _0x41ff3b=_0x56641d;const {presenter:_0xe4dfcd}=_0x286133[_0x41ff3b(0x1f9)],_0x388bb7=this[_0x41ff3b(0x159)][_0x41ff3b(0x16d)]();this[_0x41ff3b(0x156)]=_0xe4dfcd,_0xe4dfcd===_0x388bb7?(this['_stopFollowing'](),this[_0x41ff3b(0x20b)]()):this[_0x41ff3b(0x1f6)]!==_0x41ff3b(0x1f2)&&(this[_0x41ff3b(0x1da)](),this[_0x41ff3b(0x1be)]());}['_fetchOperations'](){var _0x20e39e=_0x56641d;const _0x2248fb={'eventID':_0x56d983[_0x20e39e(0x164)][_0x20e39e(0x18c)]};this[_0x20e39e(0x159)][_0x20e39e(0x1d0)](_0x2248fb,this[_0x20e39e(0x212)]);}[_0x56641d(0x204)](){var _0x42b9e7=_0x56641d;this['_presenter']=null,this[_0x42b9e7(0x1f6)]!==_0x42b9e7(0x15b)&&this[_0x42b9e7(0x197)]();}[_0x56641d(0x14e)](_0x4f5def){var _0x247f7c=_0x56641d;if(this['_status']===_0x247f7c(0x160)&&this[_0x247f7c(0x156)]===_0x4f5def['data']['memberID']){const _0x120ffd=_0x56d983[_0x247f7c(0x147)](_0x4f5def[_0x247f7c(0x1f9)])['mutations'][_0x247f7c(0x20f)]()[_0x247f7c(0x1f1)](_0x4af05c=>_0x4af05c['id']===_0x5cb156[_0x247f7c(0x1aa)]['id']);if(_0x120ffd){const _0x8a3b19=_0x120ffd[_0x247f7c(0x179)]['unitId'],_0x1f3170=_0x120ffd[_0x247f7c(0x179)][_0x247f7c(0x1dc)]['id'];setTimeout(()=>{var _0x5e60ba=_0x247f7c;this[_0x5e60ba(0x14f)]['executeCommand'](_0x5cb156[_0x5e60ba(0x1ed)]['id'],{'unitId':_0x8a3b19,'subUnitId':_0x1f3170},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5860a3=_0x56641d;this['_status$'][_0x5860a3(0x184)](_0x5860a3(0x15b));const _0x47af31=new Map(),_0x5f1c2b=this[_0x5860a3(0x200)]=new _0x569f1c[(_0x5860a3(0x222))]();_0x5f1c2b[_0x5860a3(0x183)](_0x569f1c['toDisposable'](()=>{var _0x4bcb86=_0x5860a3;_0x47af31[_0x4bcb86(0x1cc)](_0x2875e4=>_0x2875e4['complete']()),_0x47af31[_0x4bcb86(0x1ae)]();})),_0x5f1c2b[_0x5860a3(0x183)](this['_commandService'][_0x5860a3(0x1d3)](_0x178853=>{var _0xe38955=_0x5860a3,_0x9d6fd3;if(_0x178853[_0xe38955(0x1f7)]!==_0x569f1c['CommandType'][_0xe38955(0x148)]||!this[_0xe38955(0x1b3)][_0xe38955(0x1d4)](_0x178853['id']))return;const {id:_0x53be74}=_0x178853;let _0xb23be9;_0x47af31['has'](_0x53be74)?_0xb23be9=_0x47af31['get'](_0x53be74):(_0xb23be9=new _0x5572bd['Subject'](),_0x47af31[_0xe38955(0x1e8)](_0x53be74,_0xb23be9),_0xb23be9[_0xe38955(0x1d9)](_0x589ede[_0xe38955(0x1a1)]((_0x9d6fd3=this[_0xe38955(0x1d2)][_0xe38955(0x17d)](_0x3b3bc6))!=null?_0x9d6fd3:_0x3e01f9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe38955(0x1bf)](_0x796d29=>{var _0xb669c2=_0xe38955;this['_collabSession'][_0xb669c2(0x1d0)]({'eventID':_0x56d983[_0xb669c2(0x164)][_0xb669c2(0x166)],'data':{'unitID':this[_0xb669c2(0x212)],'operations':{[_0x796d29['id']]:{'id':_0x796d29['id'],'params':JSON['stringify'](_0x796d29['params'])}}}},this['_unitID']);})),_0xb23be9[_0xe38955(0x184)](_0x178853);})),this['_liveShareService'][_0x5860a3(0x18f)](this['_unitID'])['forEach'](_0x5aca40=>this[_0x5860a3(0x159)][_0x5860a3(0x1d0)]({'eventID':_0x56d983[_0x5860a3(0x164)][_0x5860a3(0x166)],'data':{'unitID':this[_0x5860a3(0x212)],'operations':{[_0x5aca40['id']]:{'id':_0x5aca40['id'],'params':JSON[_0x5860a3(0x177)](_0x5aca40['params'])}}}},this[_0x5860a3(0x212)]));}[_0x56641d(0x1da)](){var _0x2f9ccf=_0x56641d,_0x222366;this['_status$'][_0x2f9ccf(0x184)](_0x2f9ccf(0x17f)),(_0x222366=this[_0x2f9ccf(0x200)])==null||_0x222366['dispose'](),this[_0x2f9ccf(0x200)]=null;}[_0x56641d(0x1be)](){var _0xfd3da6=_0x56641d,_0x5a9a7b;(_0x5a9a7b=this[_0xfd3da6(0x200)])==null||_0x5a9a7b[_0xfd3da6(0x155)](),this[_0xfd3da6(0x1ef)][_0xfd3da6(0x184)]('following');}['_beIdle'](){var _0x4dad5f=_0x56641d,_0x1d19a5;this[_0x4dad5f(0x1ef)][_0x4dad5f(0x184)]('idle'),(_0x1d19a5=this[_0x4dad5f(0x200)])==null||_0x1d19a5['dispose'](),this[_0x4dad5f(0x200)]=null;}['_stopFollowing'](){var _0x5503a8=_0x56641d,_0x344f16;this[_0x5503a8(0x1ef)][_0x5503a8(0x184)](_0x5503a8(0x1f2)),(_0x344f16=this[_0x5503a8(0x200)])==null||_0x344f16[_0x5503a8(0x155)]();}[_0x56641d(0x1e3)](_0x1147a4){var _0x10a53c=_0x56641d;if([_0x10a53c(0x15b),'not-following',_0x10a53c(0x1e2)][_0x10a53c(0x209)](this[_0x10a53c(0x1f6)])||!_0x1147a4[_0x10a53c(0x1f9)]['presenter']||_0x1147a4['data'][_0x10a53c(0x1e0)]===this[_0x10a53c(0x159)][_0x10a53c(0x16d)]())return;this[_0x10a53c(0x1f6)]===_0x10a53c(0x17f)&&this[_0x10a53c(0x1be)]();const _0x16f880=_0x1147a4[_0x10a53c(0x1f9)][_0x10a53c(0x172)];Object[_0x10a53c(0x1e5)](_0x16f880)[_0x10a53c(0x1cc)](_0x1174bc=>{var _0x462da3=_0x10a53c;this['_commandService'][_0x462da3(0x1b6)](_0x1174bc['id'],_0x1174bc[_0x462da3(0x179)]?JSON[_0x462da3(0x1c6)](_0x1174bc[_0x462da3(0x179)]):null,{'fromCollab':!0x0});});}[_0x56641d(0x180)](){var _0x3d13ec=_0x56641d,_0xf130a7;this[_0x3d13ec(0x1ef)][_0x3d13ec(0x184)](_0x3d13ec(0x1e2)),(_0xf130a7=this[_0x3d13ec(0x200)])==null||_0xf130a7[_0x3d13ec(0x155)]();}[_0x56641d(0x1c0)](){var _0x5c036b=_0x56641d;this[_0x5c036b(0x1ef)][_0x5c036b(0x184)]('idle'),this['_fetchOperations']();}},_0x4e4e10[_0x56641d(0x153)]=_0x594421([_0x516eb2(0x2,_0x569f1c['IConfigService']),_0x516eb2(0x3,_0x569f1c['Inject'](_0x43073c)),_0x516eb2(0x4,_0x569f1c[_0x56641d(0x158)])],_0x4e4e10[_0x56641d(0x153)]);function _0x441c1a(){var _0x39c9b8=_0x56641d;const _0x4a9343=_0x2d556a[_0x39c9b8(0x217)](_0x4e4e10['LiveShareController']),_0x235614=_0x2d556a[_0x39c9b8(0x217)](_0x569f1c[_0x39c9b8(0x13e)]),_0x3dd46a=_0x2d556a[_0x39c9b8(0x150)](()=>_0x235614[_0x39c9b8(0x1cd)](_0x569f1c['UniverInstanceType'][_0x39c9b8(0x13a)]),void 0x0,!0x1,[]),[_0x23bc8b,_0xb8e979]=_0x1ff6c2[_0x39c9b8(0x189)](null),[_0x1ec4f8,_0x4e26b8]=_0x1ff6c2[_0x39c9b8(0x189)](_0x40dd55[_0x39c9b8(0x16b)]),_0x5cf183=_0x1ff6c2['useRef'](null);return _0x1ff6c2['useEffect'](()=>(_0x3dd46a&&_0x4a9343[_0x39c9b8(0x178)](_0x3dd46a[_0x39c9b8(0x1b5)]())[_0x39c9b8(0x201)](_0x3baf9d=>{var _0x35cefe=_0x39c9b8;_0xb8e979(_0x3baf9d),_0x5cf183[_0x35cefe(0x1f5)]=_0x3baf9d['status$'][_0x35cefe(0x1bf)](_0x21e721=>{_0x4e26b8(_0x21e721);});}),()=>{var _0x25f02a=_0x39c9b8,_0x4b5c0f;(_0x4b5c0f=_0x5cf183['current'])==null||_0x4b5c0f['unsubscribe'](),_0x5cf183[_0x25f02a(0x1f5)]=null;}),[_0x3dd46a,_0x4a9343]),_0x23bc8b?_0x46172a[_0x39c9b8(0x202)](_0x156716[_0x39c9b8(0x16a)],{'align':_0x39c9b8(0x15a),'disabled':_0x1ec4f8===_0x40dd55['OFFLINE'],'className':_0x39c9b8(0x1b2),'overlay':_0x46172a[_0x39c9b8(0x202)](_0x1b4db5,{'status':_0x1ec4f8,'coordinator':_0x23bc8b}),'children':_0x46172a[_0x39c9b8(0x202)](_0x39c9b8(0x1a6),{'className':_0x156716[_0x39c9b8(0x1dd)](_0x39c9b8(0x1b9),{'univer-cursor-not-allowed':_0x1ec4f8===_0x40dd55[_0x39c9b8(0x167)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ec4f8!==_0x40dd55['OFFLINE']}),'type':_0x39c9b8(0x1a6),'children':_0x46172a['jsx'](_0x59893b,{'className':_0x39c9b8(0x170)})})}):null;}function _0x1b4db5(_0x108a76){var _0x4b7f2e=_0x56641d;const {status:_0x4ce974,coordinator:_0x1a4ba7}=_0x108a76;switch(_0x4ce974){case _0x40dd55['IDLE']:return _0x46172a[_0x4b7f2e(0x202)](_0x14926a,{'coordinator':_0x1a4ba7});case _0x40dd55[_0x4b7f2e(0x1b8)]:return _0x46172a[_0x4b7f2e(0x202)](_0x43baa0,{'coordinator':_0x1a4ba7});case _0x40dd55['NOT_FOLLOWING']:return _0x46172a[_0x4b7f2e(0x202)](_0x4190c8,{'coordinator':_0x1a4ba7});case _0x40dd55['OFFLINE']:return _0x46172a[_0x4b7f2e(0x202)](_0x45dc2a,{});case _0x40dd55[_0x4b7f2e(0x168)]:return _0x46172a['jsx'](_0x3dc0ae,{'coordinator':_0x1a4ba7});default:return null;}}function _0x14926a(_0x17c4ca){var _0x402524=_0x56641d;const {coordinator:_0x5b7764}=_0x17c4ca;return _0x46172a[_0x402524(0x152)](_0x46172a['Fragment'],{'children':[_0x46172a[_0x402524(0x202)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x402524(0x1ca)}),_0x46172a['jsx'](_0x156716[_0x402524(0x15c)],{'onClick':()=>_0x5b7764[_0x402524(0x19b)](),'children':_0x402524(0x14b)})]});}function _0x43baa0(_0x4eb958){var _0x4fcdf0=_0x56641d;const {coordinator:_0x473c77}=_0x4eb958;return _0x46172a['jsxs'](_0x46172a[_0x4fcdf0(0x186)],{'children':[_0x46172a['jsx'](_0x4fcdf0(0x21e),{'className':_0x4fcdf0(0x192),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x46172a['jsx'](_0x156716['Button'],{'onClick':()=>_0x473c77[_0x4fcdf0(0x1a4)](),'children':_0x4fcdf0(0x173)})]});}function _0x4190c8(_0xc24263){var _0x5c94f1=_0x56641d;const {coordinator:_0x29372d}=_0xc24263;return _0x46172a[_0x5c94f1(0x152)](_0x46172a[_0x5c94f1(0x186)],{'children':[_0x46172a[_0x5c94f1(0x202)](_0x5c94f1(0x21e),{'className':_0x5c94f1(0x192),'children':_0x5c94f1(0x1df)}),_0x46172a[_0x5c94f1(0x202)](_0x156716[_0x5c94f1(0x15c)],{'variant':_0x5c94f1(0x1c3),'onClick':()=>_0x29372d[_0x5c94f1(0x13f)](),'children':_0x5c94f1(0x214)})]});}function _0x3dc0ae(_0x3a4dff){var _0x54018d=_0x56641d;const {coordinator:_0x22ab3d}=_0x3a4dff;return _0x46172a[_0x54018d(0x152)](_0x46172a[_0x54018d(0x186)],{'children':[_0x46172a['jsx'](_0x54018d(0x21e),{'className':_0x54018d(0x192),'children':_0x54018d(0x157)}),_0x46172a[_0x54018d(0x202)](_0x156716[_0x54018d(0x15c)],{'variant':_0x54018d(0x1b0),'onClick':()=>_0x22ab3d['stopPresenting'](),'children':_0x54018d(0x161)})]});}function _0x45dc2a(){var _0x5caecd=_0x56641d;return _0x46172a[_0x5caecd(0x202)](_0x46172a[_0x5caecd(0x186)],{'children':'You\x27are\x20offline.'});}var _0x1f49ef=Object[_0x56641d(0x21b)],_0x356f27=(_0x497405,_0x686ccc,_0x381b95,_0xfcbfcb)=>{var _0x288dab=_0x56641d;for(var _0x3c8a75=_0xfcbfcb>0x1?void 0x0:_0xfcbfcb?_0x1f49ef(_0x686ccc,_0x381b95):_0x686ccc,_0x2a9c11=_0x497405[_0x288dab(0x223)]-0x1,_0x2eb68d;_0x2a9c11>=0x0;_0x2a9c11--)(_0x2eb68d=_0x497405[_0x2a9c11])&&(_0x3c8a75=_0x2eb68d(_0x3c8a75)||_0x3c8a75);return _0x3c8a75;},_0x4c62c4=(_0x448460,_0x5952e6)=>(_0x5dbcdc,_0x5de254)=>_0x5952e6(_0x5dbcdc,_0x5de254,_0x448460);_0x4e4e10[_0x56641d(0x146)]=class extends _0x569f1c[_0x56641d(0x17a)]{constructor(_0x564b2d,_0x37e0b8){var _0xd6b62d=_0x56641d;super(),this[_0xd6b62d(0x1eb)]=_0x564b2d,this['_uiPartsService']=_0x37e0b8,this[_0xd6b62d(0x1d8)]();}[_0x56641d(0x1d8)](){var _0x541a29=_0x56641d;this[_0x541a29(0x16f)](this[_0x541a29(0x224)][_0x541a29(0x169)](_0x2d556a[_0x541a29(0x1f3)]['HEADER_MENU'],()=>_0x2d556a['connectInjector'](_0x441c1a,this[_0x541a29(0x1eb)])));}},_0x4e4e10[_0x56641d(0x146)]=_0x356f27([_0x4c62c4(0x0,_0x569f1c[_0x56641d(0x1f8)](_0x569f1c[_0x56641d(0x145)])),_0x4c62c4(0x1,_0x2d556a['IUIPartsService'])],_0x4e4e10[_0x56641d(0x146)]);var _0x145382=Object[_0x56641d(0x1b7)],_0x49c216=Object[_0x56641d(0x21b)],_0x200886=(_0x487d99,_0x2fe04c,_0x37b382)=>_0x2fe04c in _0x487d99?_0x145382(_0x487d99,_0x2fe04c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37b382}):_0x487d99[_0x2fe04c]=_0x37b382,_0x587750=(_0x1efb1b,_0xe34022,_0x209a4c,_0x5d9f25)=>{for(var _0x318fbf=_0x5d9f25>0x1?void 0x0:_0x5d9f25?_0x49c216(_0xe34022,_0x209a4c):_0xe34022,_0x2a68a2=_0x1efb1b['length']-0x1,_0x315c63;_0x2a68a2>=0x0;_0x2a68a2--)(_0x315c63=_0x1efb1b[_0x2a68a2])&&(_0x318fbf=_0x315c63(_0x318fbf)||_0x318fbf);return _0x318fbf;},_0xa544d1=(_0x5078b0,_0x530ba9)=>(_0x3da872,_0x13c623)=>_0x530ba9(_0x3da872,_0x13c623,_0x5078b0),_0x432136=(_0x3b48ae,_0x197d56,_0x287453)=>_0x200886(_0x3b48ae,typeof _0x197d56!=_0x56641d(0x185)?_0x197d56+'':_0x197d56,_0x287453);const _0xda7dac=_0x56641d(0x1cb);_0x4e4e10[_0x56641d(0x1a5)]=class extends _0x569f1c[_0x56641d(0x195)]{constructor(_0x4f25a0=_0x1838b9,_0x4a63bb,_0x364071){var _0x15bf33=_0x56641d;super(),this[_0x15bf33(0x1bb)]=_0x4f25a0,this['_injector']=_0x4a63bb,this[_0x15bf33(0x1d2)]=_0x364071;const {..._0x28b205}=_0x569f1c[_0x15bf33(0x1ec)]({},_0x1838b9,this[_0x15bf33(0x1bb)]);this['_configService'][_0x15bf33(0x216)](_0x20cd12,_0x28b205);}[_0x56641d(0x1db)](){var _0x493dd3=_0x56641d;_0x569f1c['registerDependencies'](this[_0x493dd3(0x1eb)],_0x569f1c[_0x493dd3(0x20d)]([[_0x43073c],[_0x4e4e10[_0x493dd3(0x165)]],[_0x1d191f],[_0x4e4e10[_0x493dd3(0x146)]]],this[_0x493dd3(0x1bb)][_0x493dd3(0x18b)])),_0x569f1c['touchDependencies'](this[_0x493dd3(0x1eb)],[[_0x1d191f]]);}['onRendered'](){var _0x298a42=_0x56641d;_0x569f1c['touchDependencies'](this[_0x298a42(0x1eb)],[[_0x4e4e10[_0x298a42(0x146)]]]);}},_0x432136(_0x4e4e10[_0x56641d(0x1a5)],_0x56641d(0x1f7),_0x569f1c[_0x56641d(0x1a3)][_0x56641d(0x225)]),_0x432136(_0x4e4e10[_0x56641d(0x1a5)],_0x56641d(0x21c),_0xda7dac),_0x4e4e10[_0x56641d(0x1a5)]=_0x587750([_0x569f1c[_0x56641d(0x149)](_0x42174f['UniverCollaborationClientPlugin']),_0xa544d1(0x1,_0x569f1c[_0x56641d(0x1f8)](_0x569f1c[_0x56641d(0x145)])),_0xa544d1(0x2,_0x569f1c[_0x56641d(0x162)])],_0x4e4e10[_0x56641d(0x1a5)]),_0x4e4e10[_0x56641d(0x199)]=_0x441c1a,_0x4e4e10[_0x56641d(0x1f0)]=_0x43073c,_0x4e4e10[_0x56641d(0x18d)]=_0x40dd55,Object['defineProperty'](_0x4e4e10,Symbol[_0x56641d(0x1d5)],{'value':_0x56641d(0x187)});}));function _0x2d1a(_0x12bb8b,_0x56654b){var _0x3c01f9=_0x3c01();return _0x2d1a=function(_0x2d1a32,_0x4a753b){_0x2d1a32=_0x2d1a32-0x139;var _0x588da9=_0x3c01f9[_0x2d1a32];return _0x588da9;},_0x2d1a(_0x12bb8b,_0x56654b);}function _0x3c01(){var _0x29f1d4=['CollaborationEvent','LiveShareController','LIVESHARE_OPERATION','OFFLINE','PRESENTING','registerComponent','Dropdown','IDLE','CollaborationSessionService','getMemberID','use','disposeWithMe','univer-size-4','dispose$','operations','Stop\x20following','forwardRef','object','_handleNewHost','stringify','getLiveShareCoordinator','params','Disposable','174KFOpMB','prototype','getConfig','registerInitialStateReporter','idle','_handleOffline','currentColor','random','add','next','symbol','Fragment','Module','defIds','useState','replace','override','LIVESHARE_FETCH_OPERATIONS','LiveShareStatus','toDisposable','getInitialStates','1050285VrSQMT','assign','univer-mb-3\x20univer-w-full\x20univer-text-sm','univerjs-icon\x20univerjs-icon-','createElement','Plugin','_entities','_beIdle','delete','LiveShare','xlink:href','tryStartPresenting','registerSharedOperation','LIVESHARE_NEW_HOST','LiveShareIcon','LIVESHARE_TERMINATE','1em','throttleTime','url(#$1','UniverInstanceType','stopFollowing','UniverLiveSharePlugin','button','5NxvBwd','BehaviorSubject','has','InsertSheetMutation','fill','createInstance','UniverProLiveShare','clear','takeUntil','default','idSuffix','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','_liveShareService','SetZoomRatioOperation','getUnitId','executeCommand','defineProperty','FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverDesign','_config','RxDisposable','rxjs','_startFollowing','subscribe','_handleOnline','status$','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','text','_startLiveShareCoordinator','tag','parse','path','965811dPWExt','concat','Present\x20this\x20document','UNIVER_LIVE_SHARE_PLUGIN','forEach','getCurrentTypeOfUnit$','icon','NOT_FOLLOWING','send','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','_configService','onCommandExecuted','shouldShareOperation','toStringTag','className','SessionStatus','_mountLiveShare','pipe','_stopPresenting','onStarting','sheet','clsx','from','You\x27re\x20not\x20following\x20the\x20presenter','presenter','_univerInstanceService','offline','_handleOperation','init','values','defs','UniverUi','set','4ROiLRj','151893SPDCtG','_injector','merge','SetWorksheetActiveOperation','string','_status$','LiveShareService','find','not-following','BuiltInUIPart','svg','current','_status','type','Inject','data','ONLINE','attrs','asObservable','UniverProCollaboration','react','getTypeOfUnitAdded$','_commandDisposable','then','jsx','complete','_handleTerminate','hasOwnProperty','@univerjs-pro/collaboration-client','propertyIsEnumerable','_init','includes','get','_startPresenting','1501132sFhMkS','mergeOverrideWithDependencies','live-share.config','reverse','UniverProCollaborationClient','_reporters','_unitID','_collabSessionService','Start\x20following','children','setConfig','useDependency','sessionStatus$','0\x200\x2017\x2017','SAME_OPERATION_SHARE_INTERVAL','getOwnPropertyDescriptor','pluginName','@univerjs/sheets-ui','div','colorChannel1','call','extend','DisposableCollection','length','_uiPartsService','UNIVER_UNKNOWN','React','react/jsx-runtime','UNIVER_SHEET','_sharedOperations','UniverCore','mask','IUniverInstanceService','startFollowing','operators','10fvuGgP','getOwnPropertySymbols','153688jxBTDd','map','Injector','DesktopLiveShareController','parseProtocolChangeset','OPERATION','DependentOn','indexOf','Start','evenodd','none','_handleNewChangeSets','_commandService','useObservable','LIVESHARE_REQUEST_HOST','jsxs','LiveShareCoordinator','4304448juBujj','dispose','_presenter','You\x27re\x20presenting\x20the\x20document','ICommandService','_collabSession','end','presenting','Button','UniverSheets','rxjs/operators','useRef','following','Stop\x20presenting','IConfigService','5487831vSzedH'];_0x3c01=function(){return _0x29f1d4;};return _0x3c01();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.2-nightly.202507121606",
3
+ "version": "0.9.2-nightly.202507141607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.6",
50
- "@univerjs-pro/collaboration": "0.9.2-nightly.202507121606",
51
- "@univerjs/sheets": "0.9.2-nightly.202507121606",
52
- "@univerjs/core": "0.9.2-nightly.202507121606",
53
- "@univerjs/design": "0.9.2-nightly.202507121606",
54
- "@univerjs-pro/collaboration-client": "0.9.2-nightly.202507121606",
55
- "@univerjs/ui": "0.9.2-nightly.202507121606",
56
- "@univerjs/sheets-ui": "0.9.2-nightly.202507121606"
50
+ "@univerjs-pro/collaboration": "0.9.2-nightly.202507141607",
51
+ "@univerjs-pro/collaboration-client": "0.9.2-nightly.202507141607",
52
+ "@univerjs/core": "0.9.2-nightly.202507141607",
53
+ "@univerjs/sheets": "0.9.2-nightly.202507141607",
54
+ "@univerjs/sheets-ui": "0.9.2-nightly.202507141607",
55
+ "@univerjs/ui": "0.9.2-nightly.202507141607",
56
+ "@univerjs/design": "0.9.2-nightly.202507141607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.9.2",
67
- "@univerjs/protocol": "0.1.47-alpha.0"
66
+ "@univerjs/protocol": "0.1.47-alpha.0",
67
+ "@univerjs-infra/shared": "0.9.2"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",