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

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 _0x20f77f=_0x1b7f;(function(_0x3a5285,_0x1e6011){var _0x15a767=_0x1b7f,_0x32b1a4=_0x3a5285();while(!![]){try{var _0x5a2586=-parseInt(_0x15a767(0x243))/0x1*(parseInt(_0x15a767(0x186))/0x2)+parseInt(_0x15a767(0x192))/0x3*(parseInt(_0x15a767(0x1e2))/0x4)+parseInt(_0x15a767(0x208))/0x5*(-parseInt(_0x15a767(0x24d))/0x6)+-parseInt(_0x15a767(0x245))/0x7*(parseInt(_0x15a767(0x1cd))/0x8)+parseInt(_0x15a767(0x1a8))/0x9*(parseInt(_0x15a767(0x180))/0xa)+parseInt(_0x15a767(0x214))/0xb+-parseInt(_0x15a767(0x20d))/0xc*(parseInt(_0x15a767(0x185))/0xd);if(_0x5a2586===_0x1e6011)break;else _0x32b1a4['push'](_0x32b1a4['shift']());}catch(_0x195037){_0x32b1a4['push'](_0x32b1a4['shift']());}}}(_0x4be6,0xb3e0b));var U=Object[_0x20f77f(0x217)],F=(_0x4abc33,_0x3a2460,_0x489760)=>_0x3a2460 in _0x4abc33?U(_0x4abc33,_0x3a2460,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x489760}):_0x4abc33[_0x3a2460]=_0x489760,v=(_0xae1cf4,_0x23ba6a,_0x2e650f)=>F(_0xae1cf4,typeof _0x23ba6a!=_0x20f77f(0x1f7)?_0x23ba6a+'':_0x23ba6a,_0x2e650f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x20f77f(0x1b8)});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'),$=_0x20f77f(0x1dc),x={};class O extends o[_0x20f77f(0x1ab)]{constructor(){var _0x1794d3=_0x20f77f;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x1794d3(0x18b),new Set());}[_0x20f77f(0x21c)](_0x1f622e){var _0x348bfe=_0x20f77f;return this['_sharedOperations'][_0x348bfe(0x1ba)](_0x1f622e),o[_0x348bfe(0x20b)](()=>this[_0x348bfe(0x209)][_0x348bfe(0x247)](_0x1f622e));}[_0x20f77f(0x17e)](_0x369556){var _0x4aabf0=_0x20f77f;return this[_0x4aabf0(0x18b)][_0x4aabf0(0x1ba)](_0x369556),o[_0x4aabf0(0x20b)](()=>this[_0x4aabf0(0x18b)][_0x4aabf0(0x247)](_0x369556));}[_0x20f77f(0x1e3)](_0x14c2c4){var _0x16b7ca=_0x20f77f;return this[_0x16b7ca(0x209)][_0x16b7ca(0x1a4)](_0x14c2c4);}[_0x20f77f(0x1cc)](_0x34954b){var _0x29baf9=_0x20f77f;return Array[_0x29baf9(0x1a5)](this['_reporters'])[_0x29baf9(0x232)](_0x305169=>_0x305169(_0x34954b));}}function _0x4be6(){var _0x54f017=['69CsPPFD','_entities','attrs','unsubscribe','pipe','_handleOperation','clsx','children','LIVESHARE_REQUEST_HOST','operations','string','LIVESHARE_OPERATION','jsx','DisposableCollection','univerjs-icon\x20univerjs-icon-','connectInjector','_collabSession','unitId','has','from','get','registerDependencies','279AMbrSE','next','_config','Disposable','colorChannel1','createElement','touchDependencies','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','startFollowing','IUniverInstanceService','following','default','getTypeOfUnitDisposed$','NEW_CHANGESETS','univer-size-4','stopFollowing','Module','_status$','add','jsxs','UNIVER_SHEET','complete','RxDisposable','getConfig','requireSession','tryStartPresenting','setConfig','ONLINE','registerComponent','getOwnPropertyDescriptor','idle','toString','LIVESHARE_TERMINATE','forwardRef','LiveShareController','override','getInitialStates','24ETuMtQ','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','url(#$1','values','dispose','IConfigService','reverse','stopPresenting','PRESENTING','length','presenter','send','SetWorksheetActiveOperation','_stopPresenting','replace','live-share.config','button','getCurrentTypeOfUnit$','params','SetScrollOperation','useDependency','156532APrtAE','shouldShareOperation','Start\x20following','getMemberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','prototype','_startFollowing','useRef','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','BehaviorSubject','_uiPartsService','UniverInstanceType','_startLiveShareCoordinator','mutations','propertyIsEnumerable','1em','xlink:href','path','SetZoomRatioOperation','symbol','_handleTerminate','concat','_mountLiveShare','pluginName','event$','You\x27are\x20offline.','useState','ICommandService','FOLLOWING','then','current','_beIdle','_handleNewHost','forEach','icon','getLiveShareCoordinator','25BrXwCo','_sharedOperations','fill','toDisposable','HEADER_MENU','12KhHNAj','_stopFollowing','_presenter','stringify','Plugin','Button','Stop\x20presenting','14978777WQjOTc','IUIPartsService','_configService','defineProperty','LiveShareStatus','text','_handleOnline','getUnitId','registerSharedOperation','substring','displayName','set','dispose$','status$','_univerInstanceService','getOwnPropertySymbols','LiveShareService','idSuffix','_collabSessionService','defIds','IDLE','_init','asObservable','_handleNewChangeSets','svg','getValue','Dropdown','DesktopLiveShareController','DependentOn','NOT_FOLLOWING','map','find','UniverLiveSharePlugin','OFFLINE','LiveShareIcon','executeCommand','SessionStatus','none','useEffect','CollaborationEvent','trim','offline','_liveShareService','subscribe','not-following','currentColor','Fragment','1QsGEir','LiveShareCoordinator','1968981EdkiEF','indexOf','delete','_status','CommandType','disposeWithMe','tag','apply','331164FRRnyC','data','createInstance','type','evenodd','call','includes','clear','use','onRendered','className','div','_commandService','function','You\x27re\x20presenting\x20the\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20following','sessionStatus$','_fetchOperations','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','222880bzrFzJ','mask','assign','_handleOffline','Start','2500979FgqxiU','1807426xMptTI','throttleTime','LIVESHARE_FETCH_OPERATIONS','_commandDisposable','Subject','_reporters','presenting','Injector','UniverCollaborationClientPlugin','_injector','_unitID','Inject'];_0x4be6=function(){return _0x54f017;};return _0x4be6();}function _0x1b7f(_0x54377e,_0x443aef){var _0x4be652=_0x4be6();return _0x1b7f=function(_0x1b7f40,_0x532456){_0x1b7f40=_0x1b7f40-0x16c;var _0x2d8874=_0x4be652[_0x1b7f40];return _0x2d8874;},_0x1b7f(_0x54377e,_0x443aef);}var H=Object['getOwnPropertyDescriptor'],V=(_0x4f1f1a,_0x30c1bc,_0x3810c5,_0x33dffd)=>{for(var _0x31d2df=_0x33dffd>0x1?void 0x0:_0x33dffd?H(_0x30c1bc,_0x3810c5):_0x30c1bc,_0x4ec991=_0x4f1f1a['length']-0x1,_0x41dfd2;_0x4ec991>=0x0;_0x4ec991--)(_0x41dfd2=_0x4f1f1a[_0x4ec991])&&(_0x31d2df=_0x41dfd2(_0x31d2df)||_0x31d2df);return _0x31d2df;},k=(_0x573920,_0x34c4bf)=>(_0x50a78c,_0x5a6bf3)=>_0x34c4bf(_0x50a78c,_0x5a6bf3,_0x573920);let E=class extends o[_0x20f77f(0x1ab)]{constructor(_0x28ffe4){var _0x4f548b=_0x20f77f;super(),this[_0x4f548b(0x23e)]=_0x28ffe4,this[_0x4f548b(0x229)]();}[_0x20f77f(0x229)](){var _0x2a8898=_0x20f77f;[w[_0x2a8898(0x1f6)]['id'],w[_0x2a8898(0x1e0)]['id'],C[_0x2a8898(0x1d9)]['id']]['forEach'](_0x30f970=>{var _0x586bb7=_0x2a8898;this[_0x586bb7(0x24a)](this[_0x586bb7(0x23e)][_0x586bb7(0x21c)](_0x30f970));});}};E=V([k(0x0,o[_0x20f77f(0x191)](O))],E);var u=function(){var _0x410266=_0x20f77f;return u=Object[_0x410266(0x182)]||function(_0x21a324){var _0x22bce2=_0x410266;for(var _0x6e28a,_0x43817b=0x1,_0x1d488=arguments['length'];_0x43817b<_0x1d488;_0x43817b++){_0x6e28a=arguments[_0x43817b];for(var _0x14e1cf in _0x6e28a)Object[_0x22bce2(0x1e7)]['hasOwnProperty']['call'](_0x6e28a,_0x14e1cf)&&(_0x21a324[_0x14e1cf]=_0x6e28a[_0x14e1cf]);}return _0x21a324;},u[_0x410266(0x24c)](this,arguments);},M=function(_0x356070,_0x46f7c2){var _0x4bd03d=_0x20f77f,_0x315d83={};for(var _0x16195b in _0x356070)Object[_0x4bd03d(0x1e7)]['hasOwnProperty'][_0x4bd03d(0x170)](_0x356070,_0x16195b)&&_0x46f7c2[_0x4bd03d(0x246)](_0x16195b)<0x0&&(_0x315d83[_0x16195b]=_0x356070[_0x16195b]);if(_0x356070!=null&&typeof Object[_0x4bd03d(0x223)]==_0x4bd03d(0x178)){for(var _0x5155b7=0x0,_0x16195b=Object[_0x4bd03d(0x223)](_0x356070);_0x5155b7<_0x16195b[_0x4bd03d(0x1d6)];_0x5155b7++)_0x46f7c2[_0x4bd03d(0x246)](_0x16195b[_0x5155b7])<0x0&&Object[_0x4bd03d(0x1e7)][_0x4bd03d(0x1f2)][_0x4bd03d(0x170)](_0x356070,_0x16195b[_0x5155b7])&&(_0x315d83[_0x16195b[_0x5155b7]]=_0x356070[_0x16195b[_0x5155b7]]);}return _0x315d83;},j=f[_0x20f77f(0x1c9)](function(_0x2a0e90,_0xfc010a){var _0x43656e=_0x20f77f,_0x3a65d3=_0x2a0e90['icon'],_0x315571=_0x2a0e90['id'],_0x36feef=_0x2a0e90[_0x43656e(0x175)],_0x447c0a=_0x2a0e90['extend'],_0x459b4a=M(_0x2a0e90,[_0x43656e(0x206),'id',_0x43656e(0x175),'extend']),_0x230b35=_0x43656e(0x1a0)['concat'](_0x315571,'\x20')[_0x43656e(0x1f9)](_0x36feef||'')[_0x43656e(0x23c)](),_0x198358=f[_0x43656e(0x1e9)]('_'['concat'](G()));return y(_0x3a65d3,''[_0x43656e(0x1f9)](_0x315571),{'defIds':_0x3a65d3[_0x43656e(0x227)],'idSuffix':_0x198358[_0x43656e(0x202)]},u({'ref':_0xfc010a,'className':_0x230b35},_0x459b4a),_0x447c0a);});function y(_0x473ef8,_0x131b1b,_0x2d7d96,_0x2bbf15,_0x34c30e){var _0x519d2a=_0x20f77f;return f[_0x519d2a(0x1ad)](_0x473ef8[_0x519d2a(0x24b)],u(u({'key':_0x131b1b},q(_0x473ef8,_0x2d7d96,_0x34c30e)),_0x2bbf15),(W(_0x473ef8,_0x2d7d96)[_0x519d2a(0x199)]||[])[_0x519d2a(0x232)](function(_0x291133,_0x4b6aa8){var _0x4d2094=_0x519d2a;return y(_0x291133,''[_0x4d2094(0x1f9)](_0x131b1b,'-')['concat'](_0x473ef8[_0x4d2094(0x24b)],'-')['concat'](_0x4b6aa8),_0x2d7d96,void 0x0,_0x34c30e);}));}function q(_0x228bcb,_0x52b4e1,_0x5eb0bc){var _0x26d706=_0x20f77f,_0x446ff5=u({},_0x228bcb[_0x26d706(0x194)]);_0x5eb0bc!=null&&_0x5eb0bc['colorChannel1']&&_0x446ff5[_0x26d706(0x20a)]===_0x26d706(0x1ac)&&(_0x446ff5[_0x26d706(0x20a)]=_0x5eb0bc[_0x26d706(0x1ac)]),_0x228bcb['tag']===_0x26d706(0x181)&&_0x446ff5['id']&&(_0x446ff5['id']=_0x446ff5['id']+_0x52b4e1[_0x26d706(0x225)]),Object['entries'](_0x446ff5)['forEach'](function(_0x3ff004){var _0x4ce611=_0x26d706,_0x1b3a67=_0x3ff004[0x0],_0x395d04=_0x3ff004[0x1];_0x1b3a67==='mask'&&typeof _0x395d04==_0x4ce611(0x19c)&&(_0x446ff5[_0x1b3a67]=_0x395d04[_0x4ce611(0x1db)](/url\(#(.*)\)/,'url(#$1'[_0x4ce611(0x1f9)](_0x52b4e1[_0x4ce611(0x225)],')')));});var _0xc4ad14=_0x52b4e1[_0x26d706(0x227)];return!_0xc4ad14||_0xc4ad14[_0x26d706(0x1d6)]===0x0||(_0x228bcb[_0x26d706(0x24b)]===_0x26d706(0x173)&&_0x446ff5[_0x26d706(0x1f4)]&&(_0x446ff5['xlink:href']=_0x446ff5['xlink:href']+_0x52b4e1[_0x26d706(0x225)]),Object['entries'](_0x446ff5)['forEach'](function(_0x2fb58b){var _0x23fcd9=_0x26d706,_0x5537a5=_0x2fb58b[0x0],_0x382658=_0x2fb58b[0x1];typeof _0x382658=='string'&&(_0x446ff5[_0x5537a5]=_0x382658['replace'](/url\(#(.*)\)/,_0x23fcd9(0x1cf)[_0x23fcd9(0x1f9)](_0x52b4e1[_0x23fcd9(0x225)],')')));})),_0x446ff5;}function W(_0x863e81,_0x1fcdfa){var _0x5d3a03=_0x20f77f,_0xd4b5a5,_0x347584=_0x1fcdfa['defIds'];return!_0x347584||_0x347584[_0x5d3a03(0x1d6)]===0x0?_0x863e81:_0x863e81[_0x5d3a03(0x24b)]==='defs'&&(!((_0xd4b5a5=_0x863e81['children'])===null||_0xd4b5a5===void 0x0)&&_0xd4b5a5[_0x5d3a03(0x1d6)])?u(u({},_0x863e81),{'children':_0x863e81['children'][_0x5d3a03(0x232)](function(_0x380fa3){var _0x52599e=_0x5d3a03;return typeof _0x380fa3[_0x52599e(0x194)]['id']==_0x52599e(0x19c)&&_0x347584&&_0x347584['includes'](_0x380fa3[_0x52599e(0x194)]['id'])?u(u({},_0x380fa3),{'attrs':u(u({},_0x380fa3['attrs']),{'id':_0x380fa3[_0x52599e(0x194)]['id']+_0x1fcdfa[_0x52599e(0x225)]})}):_0x380fa3;})}):_0x863e81;}function G(){var _0x26238a=_0x20f77f;return Math['random']()[_0x26238a(0x1c7)](0x24)[_0x26238a(0x21d)](0x2,0x8);}j[_0x20f77f(0x21e)]='UniverIcon';var B={'tag':_0x20f77f(0x22c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x20f77f(0x239),'viewBox':'0\x200\x2017\x2017','width':_0x20f77f(0x1f3),'height':_0x20f77f(0x1f3)},'children':[{'tag':_0x20f77f(0x1f5),'attrs':{'fill':_0x20f77f(0x241),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x20f77f(0x1f5),'attrs':{'fill':_0x20f77f(0x241),'d':_0x20f77f(0x1ce),'fillRule':_0x20f77f(0x16f),'clipRule':_0x20f77f(0x16f)}}]},P=f[_0x20f77f(0x1c9)](function(_0x2fd2e2,_0x56017c){var _0x49c495=_0x20f77f;return f[_0x49c495(0x1ad)](j,Object[_0x49c495(0x182)]({},_0x2fd2e2,{'id':'live-share-icon','ref':_0x56017c,'icon':B}));});P['displayName']=_0x20f77f(0x236);var Y=Object[_0x20f77f(0x1c5)],R=(_0xdbe7cc,_0x51d904,_0x2e8717,_0x1c2454)=>{var _0x489fbd=_0x20f77f;for(var _0x502c5e=_0x1c2454>0x1?void 0x0:_0x1c2454?Y(_0x51d904,_0x2e8717):_0x51d904,_0x1b968a=_0xdbe7cc[_0x489fbd(0x1d6)]-0x1,_0x116aa4;_0x1b968a>=0x0;_0x1b968a--)(_0x116aa4=_0xdbe7cc[_0x1b968a])&&(_0x502c5e=_0x116aa4(_0x502c5e)||_0x502c5e);return _0x502c5e;},S=(_0x160db5,_0x23cb17)=>(_0x1ae045,_0x49f0f5)=>_0x23cb17(_0x1ae045,_0x49f0f5,_0x160db5);exports[_0x20f77f(0x1ca)]=class extends o['RxDisposable']{constructor(_0x38ac6c,_0x1da9df,_0x5aa1f4){var _0x540c4f=_0x20f77f;super(),v(this,_0x540c4f(0x193),new Map()),(this[_0x540c4f(0x222)]=_0x38ac6c,this[_0x540c4f(0x18f)]=_0x1da9df,this[_0x540c4f(0x226)]=_0x5aa1f4,this[_0x540c4f(0x229)]());}async['getLiveShareCoordinator'](_0x210f53){var _0x1ca1b7=_0x20f77f;return this[_0x1ca1b7(0x193)][_0x1ca1b7(0x1a4)](_0x210f53)||await this['_startLiveShareCoordinator'](_0x210f53),this[_0x1ca1b7(0x193)][_0x1ca1b7(0x1a6)](_0x210f53);}[_0x20f77f(0x229)](){var _0x180836=_0x20f77f;this[_0x180836(0x222)]['getTypeOfUnitAdded$'](o[_0x180836(0x1ef)][_0x180836(0x1bc)])['pipe'](b['takeUntil'](this[_0x180836(0x220)]))[_0x180836(0x23f)](async _0x417852=>{var _0x268f74=_0x180836;const _0x4b196b=_0x417852['getUnitId']();this[_0x268f74(0x193)][_0x268f74(0x1a4)](_0x4b196b)||this[_0x268f74(0x1f0)](_0x4b196b);}),this['_univerInstanceService'][_0x180836(0x1b4)](o['UniverInstanceType'][_0x180836(0x1bc)])[_0x180836(0x196)](b['takeUntil'](this['dispose$']))[_0x180836(0x23f)](_0xfa9ee6=>{var _0xf37b75=_0x180836;const _0x339c21=_0xfa9ee6[_0xf37b75(0x21b)](),_0x4500b4=this['_entities'][_0xf37b75(0x1a6)](_0x339c21);_0x4500b4==null||_0x4500b4[_0xf37b75(0x1d1)]();});}async[_0x20f77f(0x1f0)](_0x1bd5d8){var _0x55c7c0=_0x20f77f;const _0x3e978b=await this['_collabSessionService'][_0x55c7c0(0x1c0)](_0x1bd5d8),_0xfb13b1=this['_injector'][_0x55c7c0(0x16d)](exports[_0x55c7c0(0x244)],_0x1bd5d8,_0x3e978b);return _0xfb13b1['init'](),this['_entities'][_0x55c7c0(0x21f)](_0x1bd5d8,_0xfb13b1),_0xfb13b1;}},exports[_0x20f77f(0x1ca)]=R([S(0x0,o[_0x20f77f(0x1b1)]),S(0x1,o['Inject'](o[_0x20f77f(0x18d)])),S(0x2,o[_0x20f77f(0x191)](m['CollaborationSessionService']))],exports[_0x20f77f(0x1ca)]);var h=(_0x7ffbc=>(_0x7ffbc['OFFLINE']=_0x20f77f(0x23d),_0x7ffbc[_0x20f77f(0x228)]=_0x20f77f(0x1c6),_0x7ffbc[_0x20f77f(0x200)]='following',_0x7ffbc[_0x20f77f(0x231)]=_0x20f77f(0x240),_0x7ffbc[_0x20f77f(0x1d5)]=_0x20f77f(0x18c),_0x7ffbc))(h||{});const Z=_0x20f77f(0x1eb),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x20f77f(0x1be)]{constructor(_0x4f7617,_0x23c5ab,_0x4fe7bb,_0x1b0134,_0x477b45){var _0x3b0c6a=_0x20f77f;super(),v(this,_0x3b0c6a(0x1b9),new D[(_0x3b0c6a(0x1ed))](_0x3b0c6a(0x1c6))),v(this,_0x3b0c6a(0x221),this[_0x3b0c6a(0x1b9)][_0x3b0c6a(0x22a)]()),v(this,'_init',!0x1),v(this,_0x3b0c6a(0x189),null),v(this,_0x3b0c6a(0x20f),null),(this[_0x3b0c6a(0x190)]=_0x4f7617,this[_0x3b0c6a(0x1a2)]=_0x23c5ab,this[_0x3b0c6a(0x216)]=_0x4fe7bb,this['_liveShareService']=_0x1b0134,this[_0x3b0c6a(0x177)]=_0x477b45);}get['_status'](){var _0x21803f=_0x20f77f;return this[_0x21803f(0x1b9)][_0x21803f(0x22d)]();}['dispose'](){var _0x393a12=_0x20f77f,_0x3941eb;(_0x3941eb=this[_0x393a12(0x189)])==null||_0x3941eb[_0x393a12(0x1d1)](),this['_status$']['next'](_0x393a12(0x1c6)),this[_0x393a12(0x1b9)][_0x393a12(0x1bd)]();}['init'](){var _0x32fd27=_0x20f77f;this[_0x32fd27(0x229)]||(this['_init']=!0x0,this['_collabSession'][_0x32fd27(0x17c)]['pipe'](b['takeUntil'](this[_0x32fd27(0x220)]))[_0x32fd27(0x23f)](_0x1e0f42=>{var _0x27ae07=_0x32fd27;switch(_0x1e0f42){case m[_0x27ae07(0x238)]['OFFLINE']:this[_0x27ae07(0x183)]();break;case m[_0x27ae07(0x238)][_0x27ae07(0x1c3)]:this[_0x27ae07(0x21a)]();break;}}),this[_0x32fd27(0x1a2)][_0x32fd27(0x1fc)]['pipe'](b['takeUntil'](this[_0x32fd27(0x220)]))[_0x32fd27(0x23f)](_0x13c504=>{var _0x57decd=_0x32fd27;const {eventID:_0x1027d0}=_0x13c504;switch(_0x1027d0){case _[_0x57decd(0x23b)]['LIVESHARE_NEW_HOST']:this[_0x57decd(0x204)](_0x13c504);break;case _[_0x57decd(0x23b)][_0x57decd(0x19d)]:this['_handleOperation'](_0x13c504);break;case _[_0x57decd(0x23b)][_0x57decd(0x1c8)]:this[_0x57decd(0x1f8)]();break;case _[_0x57decd(0x23b)][_0x57decd(0x1b5)]:this['_handleNewChangeSets'](_0x13c504);break;}}));}[_0x20f77f(0x1c1)](){var _0x57d127=_0x20f77f;this[_0x57d127(0x1a2)]['send']({'eventID':_[_0x57d127(0x23b)][_0x57d127(0x19a)],'data':{'unitID':this['_unitID'],'userID':this[_0x57d127(0x1a2)][_0x57d127(0x1e5)]()}},this[_0x57d127(0x190)]);}[_0x20f77f(0x1d4)](){var _0x5c27c2=_0x20f77f;this[_0x5c27c2(0x248)]==='presenting'&&(this[_0x5c27c2(0x1b9)][_0x5c27c2(0x1a9)]('idle'),this[_0x5c27c2(0x1a2)][_0x5c27c2(0x1d8)]({'eventID':_[_0x5c27c2(0x23b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x5c27c2(0x190)]));}['startFollowing'](){var _0xe3b63a=_0x20f77f;this[_0xe3b63a(0x248)]===_0xe3b63a(0x240)&&(this[_0xe3b63a(0x1b9)]['next'](_0xe3b63a(0x1b2)),this[_0xe3b63a(0x1e8)]());}['stopFollowing'](){var _0x1d120c=_0x20f77f;this[_0x1d120c(0x248)]===_0x1d120c(0x1b2)&&this[_0x1d120c(0x20e)]();}[_0x20f77f(0x204)](_0x2dccfe){var _0x413cf7=_0x20f77f;const {presenter:_0xeae000}=_0x2dccfe[_0x413cf7(0x16c)],_0x1fd875=this[_0x413cf7(0x1a2)][_0x413cf7(0x1e5)]();this[_0x413cf7(0x20f)]=_0xeae000,_0xeae000===_0x1fd875?(this[_0x413cf7(0x20e)](),this[_0x413cf7(0x1ea)]()):this['_status']!==_0x413cf7(0x240)&&(this['_stopPresenting'](),this[_0x413cf7(0x1e8)]());}[_0x20f77f(0x17d)](){var _0x10dac2=_0x20f77f;const _0x4f2291={'eventID':_[_0x10dac2(0x23b)][_0x10dac2(0x188)]};this[_0x10dac2(0x1a2)][_0x10dac2(0x1d8)](_0x4f2291,this[_0x10dac2(0x190)]);}[_0x20f77f(0x1f8)](){var _0x4dae33=_0x20f77f;this[_0x4dae33(0x20f)]=null,this[_0x4dae33(0x248)]!==_0x4dae33(0x18c)&&this[_0x4dae33(0x203)]();}[_0x20f77f(0x22b)](_0x32393b){var _0x3f5cb6=_0x20f77f;if(this[_0x3f5cb6(0x248)]==='following'&&this[_0x3f5cb6(0x20f)]===_0x32393b[_0x3f5cb6(0x16c)]['memberID']){const _0x3ae34b=_['parseProtocolChangeset'](_0x32393b[_0x3f5cb6(0x16c)])[_0x3f5cb6(0x1f1)][_0x3f5cb6(0x1d3)]()[_0x3f5cb6(0x233)](_0x9bc1a2=>_0x9bc1a2['id']===C['InsertSheetMutation']['id']);if(_0x3ae34b){const _0x6c1ad8=_0x3ae34b[_0x3f5cb6(0x1df)][_0x3f5cb6(0x1a3)],_0xbe922f=_0x3ae34b['params']['sheet']['id'];setTimeout(()=>{var _0x4f54f6=_0x3f5cb6;this['_commandService'][_0x4f54f6(0x237)](C[_0x4f54f6(0x1d9)]['id'],{'unitId':_0x6c1ad8,'subUnitId':_0xbe922f},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2049a0=_0x20f77f;this[_0x2049a0(0x1b9)][_0x2049a0(0x1a9)](_0x2049a0(0x18c));const _0x182e42=new Map(),_0x126aaa=this[_0x2049a0(0x189)]=new o[(_0x2049a0(0x19f))]();_0x126aaa['add'](o[_0x2049a0(0x20b)](()=>{var _0x2a7d87=_0x2049a0;_0x182e42[_0x2a7d87(0x205)](_0xb5c46=>_0xb5c46[_0x2a7d87(0x1bd)]()),_0x182e42[_0x2a7d87(0x172)]();})),_0x126aaa['add'](this[_0x2049a0(0x177)][_0x2049a0(0x1ec)](_0x5c3e93=>{var _0x285f7e=_0x2049a0,_0x3f9aca;if(_0x5c3e93[_0x285f7e(0x16e)]!==o[_0x285f7e(0x249)]['OPERATION']||!this[_0x285f7e(0x23e)][_0x285f7e(0x1e3)](_0x5c3e93['id']))return;const {id:_0x5ab581}=_0x5c3e93;let _0x1443d8;_0x182e42['has'](_0x5ab581)?_0x1443d8=_0x182e42['get'](_0x5ab581):(_0x1443d8=new D[(_0x285f7e(0x18a))](),_0x182e42['set'](_0x5ab581,_0x1443d8),_0x1443d8[_0x285f7e(0x196)](b[_0x285f7e(0x187)]((_0x3f9aca=this[_0x285f7e(0x216)][_0x285f7e(0x1bf)](Z))!=null?_0x3f9aca:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x285f7e(0x23f)](_0x7fb16a=>{var _0x2669b4=_0x285f7e;this['_collabSession'][_0x2669b4(0x1d8)]({'eventID':_[_0x2669b4(0x23b)][_0x2669b4(0x19d)],'data':{'unitID':this[_0x2669b4(0x190)],'operations':{[_0x7fb16a['id']]:{'id':_0x7fb16a['id'],'params':JSON[_0x2669b4(0x210)](_0x7fb16a[_0x2669b4(0x1df)])}}}},this['_unitID']);})),_0x1443d8[_0x285f7e(0x1a9)](_0x5c3e93);})),this[_0x2049a0(0x23e)][_0x2049a0(0x1cc)](this[_0x2049a0(0x190)])[_0x2049a0(0x205)](_0xc59eca=>this['_collabSession'][_0x2049a0(0x1d8)]({'eventID':_['CollaborationEvent'][_0x2049a0(0x19d)],'data':{'unitID':this['_unitID'],'operations':{[_0xc59eca['id']]:{'id':_0xc59eca['id'],'params':JSON[_0x2049a0(0x210)](_0xc59eca[_0x2049a0(0x1df)])}}}},this[_0x2049a0(0x190)]));}[_0x20f77f(0x1da)](){var _0x2bd443=_0x20f77f,_0x2f0a0b;this[_0x2bd443(0x1b9)][_0x2bd443(0x1a9)](_0x2bd443(0x1c6)),(_0x2f0a0b=this[_0x2bd443(0x189)])==null||_0x2f0a0b[_0x2bd443(0x1d1)](),this[_0x2bd443(0x189)]=null;}[_0x20f77f(0x1e8)](){var _0x42b0c8=_0x20f77f,_0x76f2b9;(_0x76f2b9=this[_0x42b0c8(0x189)])==null||_0x76f2b9['dispose'](),this['_status$'][_0x42b0c8(0x1a9)]('following');}[_0x20f77f(0x203)](){var _0x4512a4=_0x20f77f,_0x3af148;this[_0x4512a4(0x1b9)][_0x4512a4(0x1a9)](_0x4512a4(0x1c6)),(_0x3af148=this[_0x4512a4(0x189)])==null||_0x3af148['dispose'](),this['_commandDisposable']=null;}[_0x20f77f(0x20e)](){var _0x2353ad=_0x20f77f,_0x582971;this[_0x2353ad(0x1b9)][_0x2353ad(0x1a9)](_0x2353ad(0x240)),(_0x582971=this[_0x2353ad(0x189)])==null||_0x582971[_0x2353ad(0x1d1)]();}[_0x20f77f(0x197)](_0x16f318){var _0x21fcdc=_0x20f77f;if([_0x21fcdc(0x18c),_0x21fcdc(0x240),'offline'][_0x21fcdc(0x171)](this['_status'])||!_0x16f318['data'][_0x21fcdc(0x1d7)]||_0x16f318['data'][_0x21fcdc(0x1d7)]===this['_collabSession'][_0x21fcdc(0x1e5)]())return;this['_status']===_0x21fcdc(0x1c6)&&this[_0x21fcdc(0x1e8)]();const _0x8dc4a=_0x16f318[_0x21fcdc(0x16c)][_0x21fcdc(0x19b)];Object[_0x21fcdc(0x1d0)](_0x8dc4a)[_0x21fcdc(0x205)](_0xd86919=>{var _0x1573e9=_0x21fcdc;this[_0x1573e9(0x177)]['executeCommand'](_0xd86919['id'],_0xd86919[_0x1573e9(0x1df)]?JSON['parse'](_0xd86919[_0x1573e9(0x1df)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x276c6c=_0x20f77f,_0x2b4844;this['_status$'][_0x276c6c(0x1a9)](_0x276c6c(0x23d)),(_0x2b4844=this[_0x276c6c(0x189)])==null||_0x2b4844[_0x276c6c(0x1d1)]();}[_0x20f77f(0x21a)](){var _0x5cefb8=_0x20f77f;this['_status$'][_0x5cefb8(0x1a9)](_0x5cefb8(0x1c6)),this[_0x5cefb8(0x17d)]();}},exports[_0x20f77f(0x244)]=R([S(0x2,o[_0x20f77f(0x1d2)]),S(0x3,o[_0x20f77f(0x191)](O)),S(0x4,o[_0x20f77f(0x1ff)])],exports[_0x20f77f(0x244)]);function A(){var _0xd63eff=_0x20f77f;const _0x50c37b=p[_0xd63eff(0x1e1)](exports[_0xd63eff(0x1ca)]),_0x5b7ada=p[_0xd63eff(0x1e1)](o[_0xd63eff(0x1b1)]),_0x4f7067=p['useObservable'](()=>_0x5b7ada[_0xd63eff(0x1de)](o[_0xd63eff(0x1ef)][_0xd63eff(0x1bc)]),void 0x0,!0x1,[]),[_0x21782a,_0x23bfaf]=f[_0xd63eff(0x1fe)](null),[_0x451e4b,_0x8f1187]=f['useState'](h[_0xd63eff(0x228)]),_0x274d2e=f[_0xd63eff(0x1e9)](null);return f[_0xd63eff(0x23a)](()=>(_0x4f7067&&_0x50c37b[_0xd63eff(0x207)](_0x4f7067[_0xd63eff(0x21b)]())[_0xd63eff(0x201)](_0x12b3e8=>{var _0x36a5e6=_0xd63eff;_0x23bfaf(_0x12b3e8),_0x274d2e[_0x36a5e6(0x202)]=_0x12b3e8[_0x36a5e6(0x221)][_0x36a5e6(0x23f)](_0x5df409=>{_0x8f1187(_0x5df409);});}),()=>{var _0x1bed1f=_0xd63eff,_0x4f7e0a;(_0x4f7e0a=_0x274d2e[_0x1bed1f(0x202)])==null||_0x4f7e0a[_0x1bed1f(0x195)](),_0x274d2e[_0x1bed1f(0x202)]=null;}),[_0x4f7067,_0x50c37b]),_0x21782a?l['jsx'](g[_0xd63eff(0x22e)],{'align':'end','disabled':_0x451e4b===h['OFFLINE'],'className':_0xd63eff(0x1af),'overlay':l[_0xd63eff(0x19e)](K,{'status':_0x451e4b,'coordinator':_0x21782a}),'children':l[_0xd63eff(0x19e)](_0xd63eff(0x1dd),{'className':g[_0xd63eff(0x198)](_0xd63eff(0x17a),{'univer-cursor-not-allowed':_0x451e4b===h[_0xd63eff(0x235)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x451e4b!==h[_0xd63eff(0x235)]}),'type':'button','children':l['jsx'](P,{'className':_0xd63eff(0x1b6)})})}):null;}function K(_0x43dd19){var _0x1d03cf=_0x20f77f;const {status:_0x6dcdf7,coordinator:_0x432135}=_0x43dd19;switch(_0x6dcdf7){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x432135});case h[_0x1d03cf(0x200)]:return l['jsx'](Q,{'coordinator':_0x432135});case h[_0x1d03cf(0x231)]:return l[_0x1d03cf(0x19e)](X,{'coordinator':_0x432135});case h[_0x1d03cf(0x235)]:return l[_0x1d03cf(0x19e)](te,{});case h['PRESENTING']:return l[_0x1d03cf(0x19e)](ee,{'coordinator':_0x432135});default:return null;}}function z(_0x4002cd){var _0x4c7120=_0x20f77f;const {coordinator:_0x7ba35c}=_0x4002cd;return l[_0x4c7120(0x1bb)](l[_0x4c7120(0x242)],{'children':[l['jsx']('div',{'className':_0x4c7120(0x1e6),'children':'Present\x20this\x20document'}),l[_0x4c7120(0x19e)](g[_0x4c7120(0x212)],{'onClick':()=>_0x7ba35c[_0x4c7120(0x1c1)](),'children':_0x4c7120(0x184)})]});}function Q(_0x5a2cb2){var _0x151fc2=_0x20f77f;const {coordinator:_0x436525}=_0x5a2cb2;return l[_0x151fc2(0x1bb)](l['Fragment'],{'children':[l[_0x151fc2(0x19e)](_0x151fc2(0x176),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x151fc2(0x19e)](g[_0x151fc2(0x212)],{'onClick':()=>_0x436525[_0x151fc2(0x1b7)](),'children':_0x151fc2(0x17b)})]});}function X(_0x1b819b){var _0x9af77c=_0x20f77f;const {coordinator:_0xdb1533}=_0x1b819b;return l[_0x9af77c(0x1bb)](l['Fragment'],{'children':[l[_0x9af77c(0x19e)]('div',{'className':_0x9af77c(0x1e6),'children':_0x9af77c(0x17f)}),l[_0x9af77c(0x19e)](g[_0x9af77c(0x212)],{'variant':_0x9af77c(0x219),'onClick':()=>_0xdb1533[_0x9af77c(0x1b0)](),'children':_0x9af77c(0x1e4)})]});}function ee(_0x4e28e7){var _0x1bfaa3=_0x20f77f;const {coordinator:_0x4caf88}=_0x4e28e7;return l[_0x1bfaa3(0x1bb)](l['Fragment'],{'children':[l[_0x1bfaa3(0x19e)](_0x1bfaa3(0x176),{'className':_0x1bfaa3(0x1e6),'children':_0x1bfaa3(0x179)}),l['jsx'](g[_0x1bfaa3(0x212)],{'variant':_0x1bfaa3(0x1b3),'onClick':()=>_0x4caf88[_0x1bfaa3(0x1d4)](),'children':_0x1bfaa3(0x213)})]});}function te(){var _0x49c150=_0x20f77f;return l[_0x49c150(0x19e)](l[_0x49c150(0x242)],{'children':_0x49c150(0x1fd)});}var ie=Object[_0x20f77f(0x1c5)],ne=(_0x59d104,_0x5bc030,_0x330d74,_0x5e4d19)=>{var _0x213f70=_0x20f77f;for(var _0x5dc67f=_0x5e4d19>0x1?void 0x0:_0x5e4d19?ie(_0x5bc030,_0x330d74):_0x5bc030,_0x560a02=_0x59d104[_0x213f70(0x1d6)]-0x1,_0x417751;_0x560a02>=0x0;_0x560a02--)(_0x417751=_0x59d104[_0x560a02])&&(_0x5dc67f=_0x417751(_0x5dc67f)||_0x5dc67f);return _0x5dc67f;},L=(_0x106812,_0x57fd64)=>(_0x24b2e4,_0x12670a)=>_0x57fd64(_0x24b2e4,_0x12670a,_0x106812);exports[_0x20f77f(0x22f)]=class extends o[_0x20f77f(0x1ab)]{constructor(_0x4740e,_0x113843){var _0xa971d7=_0x20f77f;super(),this[_0xa971d7(0x18f)]=_0x4740e,this[_0xa971d7(0x1ee)]=_0x113843,this[_0xa971d7(0x1fa)]();}['_mountLiveShare'](){var _0x245f41=_0x20f77f;this['disposeWithMe'](this[_0x245f41(0x1ee)][_0x245f41(0x1c4)](p['BuiltInUIPart'][_0x245f41(0x20c)],()=>p[_0x245f41(0x1a1)](A,this['_injector'])));}},exports[_0x20f77f(0x22f)]=ne([L(0x0,o[_0x20f77f(0x191)](o[_0x20f77f(0x18d)])),L(0x1,p[_0x20f77f(0x215)])],exports[_0x20f77f(0x22f)]);var re=Object[_0x20f77f(0x217)],se=Object[_0x20f77f(0x1c5)],oe=(_0x456041,_0x103de4,_0x9f4423)=>_0x103de4 in _0x456041?re(_0x456041,_0x103de4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9f4423}):_0x456041[_0x103de4]=_0x9f4423,ae=(_0xee0e2e,_0x10289e,_0x36f1d4,_0x212f02)=>{var _0x1d7e9d=_0x20f77f;for(var _0x44fcfa=_0x212f02>0x1?void 0x0:_0x212f02?se(_0x10289e,_0x36f1d4):_0x10289e,_0x16ea1e=_0xee0e2e[_0x1d7e9d(0x1d6)]-0x1,_0x145cce;_0x16ea1e>=0x0;_0x16ea1e--)(_0x145cce=_0xee0e2e[_0x16ea1e])&&(_0x44fcfa=_0x145cce(_0x44fcfa)||_0x44fcfa);return _0x44fcfa;},N=(_0x37dfdd,_0x5cb37f)=>(_0x442f96,_0x44627a)=>_0x5cb37f(_0x442f96,_0x44627a,_0x37dfdd),T=(_0x552fcf,_0x5e284d,_0x57953e)=>oe(_0x552fcf,typeof _0x5e284d!=_0x20f77f(0x1f7)?_0x5e284d+'':_0x5e284d,_0x57953e);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x20f77f(0x234)]=class extends o[_0x20f77f(0x211)]{constructor(_0x27c27e=x,_0x313a73,_0x341d34){var _0x1c19b3=_0x20f77f;super(),this[_0x1c19b3(0x1aa)]=_0x27c27e,this[_0x1c19b3(0x18f)]=_0x313a73,this[_0x1c19b3(0x216)]=_0x341d34;const {..._0x5764b0}=o['merge']({},x,this[_0x1c19b3(0x1aa)]);this[_0x1c19b3(0x216)][_0x1c19b3(0x1c2)]($,_0x5764b0);}['onStarting'](){var _0xffe0e0=_0x20f77f;o[_0xffe0e0(0x1a7)](this[_0xffe0e0(0x18f)],o['mergeOverrideWithDependencies']([[O],[exports[_0xffe0e0(0x1ca)]],[E],[exports['DesktopLiveShareController']]],this[_0xffe0e0(0x1aa)][_0xffe0e0(0x1cb)])),o[_0xffe0e0(0x1ae)](this['_injector'],[[E]]);}[_0x20f77f(0x174)](){var _0x6708ca=_0x20f77f;o[_0x6708ca(0x1ae)](this[_0x6708ca(0x18f)],[[exports[_0x6708ca(0x22f)]]]);}},T(exports['UniverLiveSharePlugin'],_0x20f77f(0x16e),o[_0x20f77f(0x1ef)]['UNIVER_UNKNOWN']),T(exports[_0x20f77f(0x234)],_0x20f77f(0x1fb),le),exports[_0x20f77f(0x234)]=ae([o[_0x20f77f(0x230)](m[_0x20f77f(0x18e)]),N(0x1,o[_0x20f77f(0x191)](o[_0x20f77f(0x18d)])),N(0x2,o[_0x20f77f(0x1d2)])],exports[_0x20f77f(0x234)]),exports['LiveShare']=A,exports[_0x20f77f(0x224)]=O,exports[_0x20f77f(0x218)]=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 _0xa9c041=_0x186a;(function(_0x2e9c0f,_0x21b7c5){var _0x1aa77d=_0x186a,_0x502f74=_0x2e9c0f();while(!![]){try{var _0x1ef9f8=parseInt(_0x1aa77d(0x178))/0x1*(-parseInt(_0x1aa77d(0x1da))/0x2)+-parseInt(_0x1aa77d(0x18b))/0x3+-parseInt(_0x1aa77d(0x217))/0x4*(-parseInt(_0x1aa77d(0x21e))/0x5)+parseInt(_0x1aa77d(0x1ae))/0x6*(-parseInt(_0x1aa77d(0x20b))/0x7)+parseInt(_0x1aa77d(0x1ac))/0x8+parseInt(_0x1aa77d(0x198))/0x9*(parseInt(_0x1aa77d(0x202))/0xa)+parseInt(_0x1aa77d(0x186))/0xb*(parseInt(_0x1aa77d(0x20e))/0xc);if(_0x1ef9f8===_0x21b7c5)break;else _0x502f74['push'](_0x502f74['shift']());}catch(_0x342a92){_0x502f74['push'](_0x502f74['shift']());}}}(_0x472c,0xde3bb));var q=Object[_0xa9c041(0x1ea)],z=(_0x3342c3,_0x56ae4e,_0x556b95)=>_0x56ae4e in _0x3342c3?q(_0x3342c3,_0x56ae4e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556b95}):_0x3342c3[_0x56ae4e]=_0x556b95,d=(_0x6e01f9,_0x4d754f,_0x20c8e1)=>z(_0x6e01f9,typeof _0x4d754f!=_0xa9c041(0x1a6)?_0x4d754f+'':_0x4d754f,_0x20c8e1);import{CollaborationSessionService as _0x2b1a5d,SessionStatus as _0x1f6429,UniverCollaborationClientPlugin as _0x386e00}from'@univerjs-pro/collaboration-client';import{Disposable as _0xd9f3e0,toDisposable as _0x27ee7b,Inject as _0x5e03cc,IUniverInstanceService as _0x7f0db1,Injector as _0x249d07,IConfigService as _0x55ad57,ICommandService as _0x1dedf5,RxDisposable as _0x3677c5,UniverInstanceType as _0x2647b1,DisposableCollection as _0x748a72,CommandType as _0x167122,DependentOn as _0x21db47,Plugin as _0x3e037f,merge as _0x48fed9,registerDependencies as _0x414f55,mergeOverrideWithDependencies as _0x4fa646,touchDependencies as _0x1f4650}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3d020f,InsertSheetMutation as _0x407e46}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5c8f08,SetScrollOperation as _0x2dc64b}from'@univerjs/sheets-ui';import{useDependency as _0x23bfac,useObservable as _0x517777,IUIPartsService as _0x677b9,BuiltInUIPart as _0x15986a,connectInjector as _0x312e3a}from'@univerjs/ui';import{jsx as _0x3b2b63,jsxs as _0x125a74,Fragment as _0x5814ff}from'react/jsx-runtime';import{Dropdown as _0x3506b3,clsx as _0x342bd2,Button as _0x3499cb}from'@univerjs/design';import{forwardRef as _0x51724d,useRef as _0x1273b1,createElement as _0xab46f3,useState as _0x46401a,useEffect as _0x17e005}from'react';import{CollaborationEvent as _0x1a5668,parseProtocolChangeset as _0x230d26}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x529a62,Subject as _0x3fc41b}from'rxjs';import{takeUntil as _0x1521c0,throttleTime as _0x4f9c62}from'rxjs/operators';const Oe=_0xa9c041(0x1ed),T={};class L extends _0xd9f3e0{constructor(){var _0x20eabd=_0xa9c041;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x20eabd(0x221),new Set());}[_0xa9c041(0x19a)](_0x511c85){var _0x16c7cf=_0xa9c041;return this[_0x16c7cf(0x1db)][_0x16c7cf(0x214)](_0x511c85),_0x27ee7b(()=>this[_0x16c7cf(0x1db)][_0x16c7cf(0x1a0)](_0x511c85));}[_0xa9c041(0x1d5)](_0x414c86){var _0x31142d=_0xa9c041;return this[_0x31142d(0x221)][_0x31142d(0x214)](_0x414c86),_0x27ee7b(()=>this[_0x31142d(0x221)][_0x31142d(0x1a0)](_0x414c86));}[_0xa9c041(0x1ee)](_0x389424){var _0x3cf523=_0xa9c041;return this[_0x3cf523(0x1db)][_0x3cf523(0x1a5)](_0x389424);}[_0xa9c041(0x1b6)](_0x46c67f){var _0x5b2d44=_0xa9c041;return Array[_0x5b2d44(0x1d9)](this[_0x5b2d44(0x221)])[_0x5b2d44(0x1a8)](_0x418691=>_0x418691(_0x46c67f));}}var Ee=Object[_0xa9c041(0x224)],we=(_0x3937fa,_0x5f39b6,_0x4998a3,_0xd76d5f)=>{for(var _0x30a911=_0xd76d5f>0x1?void 0x0:_0xd76d5f?Ee(_0x5f39b6,_0x4998a3):_0x5f39b6,_0x4121cf=_0x3937fa['length']-0x1,_0x13f9c3;_0x4121cf>=0x0;_0x4121cf--)(_0x13f9c3=_0x3937fa[_0x4121cf])&&(_0x30a911=_0x13f9c3(_0x30a911)||_0x30a911);return _0x30a911;},Ne=(_0xfaf85c,_0xaf2494)=>(_0x2c5739,_0x377ec7)=>_0xaf2494(_0x2c5739,_0x377ec7,_0xfaf85c);let m=class extends _0xd9f3e0{constructor(_0x2019f2){var _0x1d5ccb=_0xa9c041;super(),this[_0x1d5ccb(0x201)]=_0x2019f2,this[_0x1d5ccb(0x18a)]();}[_0xa9c041(0x18a)](){var _0x5e2bd9=_0xa9c041;[_0x5c8f08['id'],_0x2dc64b['id'],_0x3d020f['id']][_0x5e2bd9(0x1eb)](_0x496100=>{var _0x1f286e=_0x5e2bd9;this[_0x1f286e(0x1ce)](this['_liveShareService'][_0x1f286e(0x19a)](_0x496100));});}};m=we([Ne(0x0,_0x5e03cc(L))],m);var c=function(){var _0x3fc923=_0xa9c041;return c=Object[_0x3fc923(0x1ec)]||function(_0x476738){var _0x1305a4=_0x3fc923;for(var _0x5856d6,_0x3e73e9=0x1,_0x29e948=arguments['length'];_0x3e73e9<_0x29e948;_0x3e73e9++){_0x5856d6=arguments[_0x3e73e9];for(var _0x39804f in _0x5856d6)Object[_0x1305a4(0x1fd)]['hasOwnProperty'][_0x1305a4(0x194)](_0x5856d6,_0x39804f)&&(_0x476738[_0x39804f]=_0x5856d6[_0x39804f]);}return _0x476738;},c[_0x3fc923(0x21d)](this,arguments);},Ce=function(_0x3097a5,_0x2f35e5){var _0xf4a4fc=_0xa9c041,_0x2fc64e={};for(var _0x33f3f9 in _0x3097a5)Object[_0xf4a4fc(0x1fd)][_0xf4a4fc(0x193)][_0xf4a4fc(0x194)](_0x3097a5,_0x33f3f9)&&_0x2f35e5['indexOf'](_0x33f3f9)<0x0&&(_0x2fc64e[_0x33f3f9]=_0x3097a5[_0x33f3f9]);if(_0x3097a5!=null&&typeof Object[_0xf4a4fc(0x1d0)]==_0xf4a4fc(0x1dd)){for(var _0x117ed3=0x0,_0x33f3f9=Object['getOwnPropertySymbols'](_0x3097a5);_0x117ed3<_0x33f3f9[_0xf4a4fc(0x1cb)];_0x117ed3++)_0x2f35e5[_0xf4a4fc(0x1ba)](_0x33f3f9[_0x117ed3])<0x0&&Object[_0xf4a4fc(0x1fd)]['propertyIsEnumerable']['call'](_0x3097a5,_0x33f3f9[_0x117ed3])&&(_0x2fc64e[_0x33f3f9[_0x117ed3]]=_0x3097a5[_0x33f3f9[_0x117ed3]]);}return _0x2fc64e;},W=_0x51724d(function(_0x3fe20d,_0x2fbdc3){var _0x35fd1f=_0xa9c041,_0x517861=_0x3fe20d[_0x35fd1f(0x1dc)],_0x1f4a38=_0x3fe20d['id'],_0x386e6f=_0x3fe20d[_0x35fd1f(0x212)],_0x466d1c=_0x3fe20d[_0x35fd1f(0x1a7)],_0x2f6f0c=Ce(_0x3fe20d,[_0x35fd1f(0x1dc),'id',_0x35fd1f(0x212),_0x35fd1f(0x1a7)]),_0x3b7021='univerjs-icon\x20univerjs-icon-'['concat'](_0x1f4a38,'\x20')[_0x35fd1f(0x181)](_0x386e6f||'')[_0x35fd1f(0x220)](),_0x5a4de5=_0x1273b1('_'['concat'](Le()));return Y(_0x517861,''[_0x35fd1f(0x181)](_0x1f4a38),{'defIds':_0x517861['defIds'],'idSuffix':_0x5a4de5[_0x35fd1f(0x222)]},c({'ref':_0x2fbdc3,'className':_0x3b7021},_0x2f6f0c),_0x466d1c);});function Y(_0x65494f,_0x2419f3,_0x27f7fd,_0x3f2ef3,_0x3c36ea){var _0x4221bf=_0xa9c041;return _0xab46f3(_0x65494f[_0x4221bf(0x1e0)],c(c({'key':_0x2419f3},De(_0x65494f,_0x27f7fd,_0x3c36ea)),_0x3f2ef3),(xe(_0x65494f,_0x27f7fd)[_0x4221bf(0x20d)]||[])[_0x4221bf(0x1a8)](function(_0x3ffb03,_0x521c6f){return Y(_0x3ffb03,''['concat'](_0x2419f3,'-')['concat'](_0x65494f['tag'],'-')['concat'](_0x521c6f),_0x27f7fd,void 0x0,_0x3c36ea);}));}function De(_0x333192,_0x14585c,_0x5a88e6){var _0x5c06f9=_0xa9c041,_0x3146ca=c({},_0x333192[_0x5c06f9(0x1d2)]);_0x5a88e6!=null&&_0x5a88e6['colorChannel1']&&_0x3146ca[_0x5c06f9(0x210)]==='colorChannel1'&&(_0x3146ca[_0x5c06f9(0x210)]=_0x5a88e6['colorChannel1']),_0x333192[_0x5c06f9(0x1e0)]==='mask'&&_0x3146ca['id']&&(_0x3146ca['id']=_0x3146ca['id']+_0x14585c['idSuffix']),Object[_0x5c06f9(0x21a)](_0x3146ca)[_0x5c06f9(0x1eb)](function(_0x488e87){var _0x3ee7ee=_0x5c06f9,_0xffbbac=_0x488e87[0x0],_0x48d09b=_0x488e87[0x1];_0xffbbac===_0x3ee7ee(0x21c)&&typeof _0x48d09b==_0x3ee7ee(0x185)&&(_0x3146ca[_0xffbbac]=_0x48d09b['replace'](/url\(#(.*)\)/,_0x3ee7ee(0x1b1)[_0x3ee7ee(0x181)](_0x14585c[_0x3ee7ee(0x1b5)],')')));});var _0x11290c=_0x14585c[_0x5c06f9(0x187)];return!_0x11290c||_0x11290c[_0x5c06f9(0x1cb)]===0x0||(_0x333192[_0x5c06f9(0x1e0)]===_0x5c06f9(0x229)&&_0x3146ca[_0x5c06f9(0x1e2)]&&(_0x3146ca[_0x5c06f9(0x1e2)]=_0x3146ca['xlink:href']+_0x14585c[_0x5c06f9(0x1b5)]),Object[_0x5c06f9(0x21a)](_0x3146ca)[_0x5c06f9(0x1eb)](function(_0x483b80){var _0x13b4f6=_0x5c06f9,_0x57af92=_0x483b80[0x0],_0x3d33ed=_0x483b80[0x1];typeof _0x3d33ed==_0x13b4f6(0x185)&&(_0x3146ca[_0x57af92]=_0x3d33ed[_0x13b4f6(0x219)](/url\(#(.*)\)/,_0x13b4f6(0x1b1)['concat'](_0x14585c[_0x13b4f6(0x1b5)],')')));})),_0x3146ca;}function xe(_0x15ac97,_0x231212){var _0x431ce2=_0xa9c041,_0x2b5e94,_0x2ce1ea=_0x231212[_0x431ce2(0x187)];return!_0x2ce1ea||_0x2ce1ea[_0x431ce2(0x1cb)]===0x0?_0x15ac97:_0x15ac97[_0x431ce2(0x1e0)]===_0x431ce2(0x22e)&&(!((_0x2b5e94=_0x15ac97['children'])===null||_0x2b5e94===void 0x0)&&_0x2b5e94['length'])?c(c({},_0x15ac97),{'children':_0x15ac97[_0x431ce2(0x20d)]['map'](function(_0x38a842){var _0x52ab4e=_0x431ce2;return typeof _0x38a842[_0x52ab4e(0x1d2)]['id']==_0x52ab4e(0x185)&&_0x2ce1ea&&_0x2ce1ea[_0x52ab4e(0x17b)](_0x38a842[_0x52ab4e(0x1d2)]['id'])?c(c({},_0x38a842),{'attrs':c(c({},_0x38a842[_0x52ab4e(0x1d2)]),{'id':_0x38a842[_0x52ab4e(0x1d2)]['id']+_0x231212[_0x52ab4e(0x1b5)]})}):_0x38a842;})}):_0x15ac97;}function Le(){var _0x227702=_0xa9c041;return Math[_0x227702(0x1c0)]()[_0x227702(0x183)](0x24)[_0x227702(0x1e5)](0x2,0x8);}W[_0xa9c041(0x18d)]=_0xa9c041(0x19b);var ye={'tag':_0xa9c041(0x1a4),'attrs':{'xmlns':_0xa9c041(0x1c1),'fill':'none','viewBox':_0xa9c041(0x1e7),'width':_0xa9c041(0x1b4),'height':'1em'},'children':[{'tag':_0xa9c041(0x1b7),'attrs':{'fill':_0xa9c041(0x223),'d':_0xa9c041(0x19c)}},{'tag':_0xa9c041(0x1b7),'attrs':{'fill':'currentColor','d':_0xa9c041(0x1b9),'fillRule':_0xa9c041(0x1b0),'clipRule':_0xa9c041(0x1b0)}}]},B=_0x51724d(function(_0x58ee0c,_0x1aa1d5){var _0x459223=_0xa9c041;return _0xab46f3(W,Object[_0x459223(0x1ec)]({},_0x58ee0c,{'id':'live-share-icon','ref':_0x1aa1d5,'icon':ye}));});B[_0xa9c041(0x18d)]='LiveShareIcon';var Re=Object[_0xa9c041(0x224)],Z=(_0x332fa8,_0x4b7a3b,_0x18fc5c,_0x55f128)=>{var _0x47df60=_0xa9c041;for(var _0x367e06=_0x55f128>0x1?void 0x0:_0x55f128?Re(_0x4b7a3b,_0x18fc5c):_0x4b7a3b,_0x17f9fc=_0x332fa8[_0x47df60(0x1cb)]-0x1,_0x5c3a9e;_0x17f9fc>=0x0;_0x17f9fc--)(_0x5c3a9e=_0x332fa8[_0x17f9fc])&&(_0x367e06=_0x5c3a9e(_0x367e06)||_0x367e06);return _0x367e06;},f=(_0x59f36c,_0x6531dc)=>(_0x1431dd,_0x1aac1f)=>_0x6531dc(_0x1431dd,_0x1aac1f,_0x59f36c);let I=class extends _0x3677c5{constructor(_0x50f7c7,_0x5c665a,_0x5b4930){var _0x1486a8=_0xa9c041;super(),d(this,_0x1486a8(0x1ef),new Map()),(this[_0x1486a8(0x182)]=_0x50f7c7,this[_0x1486a8(0x18e)]=_0x5c665a,this['_collabSessionService']=_0x5b4930,this[_0x1486a8(0x18a)]());}async['getLiveShareCoordinator'](_0x211398){var _0x492931=_0xa9c041;return this['_entities'][_0x492931(0x1a5)](_0x211398)||await this[_0x492931(0x22b)](_0x211398),this[_0x492931(0x1ef)]['get'](_0x211398);}[_0xa9c041(0x18a)](){var _0x519fc9=_0xa9c041;this[_0x519fc9(0x182)][_0x519fc9(0x1c6)](_0x2647b1[_0x519fc9(0x192)])['pipe'](_0x1521c0(this[_0x519fc9(0x209)]))[_0x519fc9(0x19e)](async _0x268967=>{var _0x341891=_0x519fc9;const _0x497726=_0x268967[_0x341891(0x1f4)]();this['_entities'][_0x341891(0x1a5)](_0x497726)||this[_0x341891(0x22b)](_0x497726);}),this[_0x519fc9(0x182)][_0x519fc9(0x22d)](_0x2647b1['UNIVER_SHEET'])['pipe'](_0x1521c0(this[_0x519fc9(0x209)]))[_0x519fc9(0x19e)](_0x405571=>{var _0x2ae6a6=_0x519fc9;const _0x50ee1b=_0x405571['getUnitId'](),_0x3d8ff5=this[_0x2ae6a6(0x1ef)][_0x2ae6a6(0x200)](_0x50ee1b);_0x3d8ff5==null||_0x3d8ff5[_0x2ae6a6(0x1bb)]();});}async[_0xa9c041(0x22b)](_0x28c9d1){var _0x132e53=_0xa9c041;const _0x4177a2=await this[_0x132e53(0x1c5)][_0x132e53(0x1bf)](_0x28c9d1),_0x1f5c2c=this[_0x132e53(0x18e)][_0x132e53(0x203)](C,_0x28c9d1,_0x4177a2);return _0x1f5c2c[_0x132e53(0x191)](),this[_0x132e53(0x1ef)][_0x132e53(0x17c)](_0x28c9d1,_0x1f5c2c),_0x1f5c2c;}};I=Z([f(0x0,_0x7f0db1),f(0x1,_0x5e03cc(_0x249d07)),f(0x2,_0x5e03cc(_0x2b1a5d))],I);var h=(_0x17ae14=>(_0x17ae14[_0xa9c041(0x1c9)]='offline',_0x17ae14['IDLE']=_0xa9c041(0x213),_0x17ae14[_0xa9c041(0x17d)]=_0xa9c041(0x1c7),_0x17ae14[_0xa9c041(0x18f)]=_0xa9c041(0x22c),_0x17ae14[_0xa9c041(0x1f6)]='presenting',_0x17ae14))(h||{});const Pe=_0xa9c041(0x206),Ae=0xc8;let C=class extends _0x3677c5{constructor(_0x4fc0e9,_0x520bad,_0x16bafd,_0x40a4fd,_0x3bf16c){var _0x39bdd8=_0xa9c041;super(),d(this,_0x39bdd8(0x1d4),new _0x529a62(_0x39bdd8(0x213))),d(this,_0x39bdd8(0x1a3),this['_status$'][_0x39bdd8(0x20f)]()),d(this,_0x39bdd8(0x18a),!0x1),d(this,_0x39bdd8(0x1fa),null),d(this,_0x39bdd8(0x1f1),null),(this[_0x39bdd8(0x1aa)]=_0x4fc0e9,this[_0x39bdd8(0x1fe)]=_0x520bad,this['_configService']=_0x16bafd,this[_0x39bdd8(0x201)]=_0x40a4fd,this[_0x39bdd8(0x1b3)]=_0x3bf16c);}get[_0xa9c041(0x189)](){var _0x464c46=_0xa9c041;return this[_0x464c46(0x1d4)][_0x464c46(0x1de)]();}[_0xa9c041(0x1bb)](){var _0x5b1b93=_0xa9c041,_0x524ec6;(_0x524ec6=this[_0x5b1b93(0x1fa)])==null||_0x524ec6[_0x5b1b93(0x1bb)](),this[_0x5b1b93(0x1d4)]['next'](_0x5b1b93(0x213)),this[_0x5b1b93(0x1d4)][_0x5b1b93(0x179)]();}[_0xa9c041(0x191)](){var _0x54a4d9=_0xa9c041;this['_init']||(this[_0x54a4d9(0x18a)]=!0x0,this[_0x54a4d9(0x1fe)][_0x54a4d9(0x1f8)][_0x54a4d9(0x17f)](_0x1521c0(this['dispose$']))[_0x54a4d9(0x19e)](_0x535a63=>{var _0x4f0b95=_0x54a4d9;switch(_0x535a63){case _0x1f6429[_0x4f0b95(0x1c9)]:this[_0x4f0b95(0x1a9)]();break;case _0x1f6429[_0x4f0b95(0x1e3)]:this[_0x4f0b95(0x19f)]();break;}}),this[_0x54a4d9(0x1fe)][_0x54a4d9(0x1cd)]['pipe'](_0x1521c0(this[_0x54a4d9(0x209)]))['subscribe'](_0x566962=>{var _0x4d1b7b=_0x54a4d9;const {eventID:_0x4e05e4}=_0x566962;switch(_0x4e05e4){case _0x1a5668[_0x4d1b7b(0x18c)]:this[_0x4d1b7b(0x20a)](_0x566962);break;case _0x1a5668[_0x4d1b7b(0x1e8)]:this[_0x4d1b7b(0x1e6)](_0x566962);break;case _0x1a5668[_0x4d1b7b(0x1d6)]:this[_0x4d1b7b(0x190)]();break;case _0x1a5668[_0x4d1b7b(0x1f3)]:this[_0x4d1b7b(0x1c8)](_0x566962);break;}}));}['tryStartPresenting'](){var _0x3cb9b3=_0xa9c041;this[_0x3cb9b3(0x1fe)][_0x3cb9b3(0x1fc)]({'eventID':_0x1a5668[_0x3cb9b3(0x1f9)],'data':{'unitID':this[_0x3cb9b3(0x1aa)],'userID':this['_collabSession'][_0x3cb9b3(0x226)]()}},this[_0x3cb9b3(0x1aa)]);}[_0xa9c041(0x211)](){var _0x31c873=_0xa9c041;this['_status']===_0x31c873(0x1d7)&&(this['_status$']['next'](_0x31c873(0x213)),this[_0x31c873(0x1fe)][_0x31c873(0x1fc)]({'eventID':_0x1a5668['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x31c873(0x1aa)]));}[_0xa9c041(0x1c3)](){var _0x32c746=_0xa9c041;this['_status']==='not-following'&&(this[_0x32c746(0x1d4)][_0x32c746(0x216)](_0x32c746(0x1c7)),this[_0x32c746(0x1a2)]());}['stopFollowing'](){var _0x4e42cd=_0xa9c041;this[_0x4e42cd(0x189)]===_0x4e42cd(0x1c7)&&this[_0x4e42cd(0x1ff)]();}[_0xa9c041(0x20a)](_0x1365b8){var _0x4d9239=_0xa9c041;const {presenter:_0x44db97}=_0x1365b8[_0x4d9239(0x204)],_0x50c499=this[_0x4d9239(0x1fe)]['getMemberID']();this[_0x4d9239(0x1f1)]=_0x44db97,_0x44db97===_0x50c499?(this['_stopFollowing'](),this[_0x4d9239(0x1e9)]()):this[_0x4d9239(0x189)]!==_0x4d9239(0x22c)&&(this[_0x4d9239(0x196)](),this['_startFollowing']());}[_0xa9c041(0x1e4)](){var _0x4cb7b2=_0xa9c041;const _0x17995b={'eventID':_0x1a5668[_0x4cb7b2(0x205)]};this['_collabSession']['send'](_0x17995b,this[_0x4cb7b2(0x1aa)]);}[_0xa9c041(0x190)](){var _0x4bc0fb=_0xa9c041;this[_0x4bc0fb(0x1f1)]=null,this['_status']!==_0x4bc0fb(0x1d7)&&this[_0x4bc0fb(0x1be)]();}[_0xa9c041(0x1c8)](_0x46a64e){var _0x18e5a4=_0xa9c041;if(this['_status']===_0x18e5a4(0x1c7)&&this['_presenter']===_0x46a64e[_0x18e5a4(0x204)][_0x18e5a4(0x21b)]){const _0x1a8fb6=_0x230d26(_0x46a64e[_0x18e5a4(0x204)])['mutations']['reverse']()[_0x18e5a4(0x215)](_0x68ba62=>_0x68ba62['id']===_0x407e46['id']);if(_0x1a8fb6){const _0x30ced6=_0x1a8fb6[_0x18e5a4(0x227)]['unitId'],_0x17187c=_0x1a8fb6[_0x18e5a4(0x227)]['sheet']['id'];setTimeout(()=>{var _0x33a838=_0x18e5a4;this['_commandService'][_0x33a838(0x22a)](_0x3d020f['id'],{'unitId':_0x30ced6,'subUnitId':_0x17187c},{'fromCollab':!0x0});});}}}[_0xa9c041(0x1e9)](){var _0x444124=_0xa9c041;this[_0x444124(0x1d4)][_0x444124(0x216)](_0x444124(0x1d7));const _0x3a81af=new Map(),_0x55ffd8=this[_0x444124(0x1fa)]=new _0x748a72();_0x55ffd8[_0x444124(0x214)](_0x27ee7b(()=>{var _0x3c8f4b=_0x444124;_0x3a81af[_0x3c8f4b(0x1eb)](_0x1bf0b0=>_0x1bf0b0[_0x3c8f4b(0x179)]()),_0x3a81af[_0x3c8f4b(0x1ca)]();})),_0x55ffd8['add'](this[_0x444124(0x1b3)]['onCommandExecuted'](_0x219234=>{var _0x351ef2=_0x444124,_0x1fbd6a;if(_0x219234[_0x351ef2(0x197)]!==_0x167122['OPERATION']||!this[_0x351ef2(0x201)][_0x351ef2(0x1ee)](_0x219234['id']))return;const {id:_0x20e36d}=_0x219234;let _0xdeff50;_0x3a81af[_0x351ef2(0x1a5)](_0x20e36d)?_0xdeff50=_0x3a81af[_0x351ef2(0x200)](_0x20e36d):(_0xdeff50=new _0x3fc41b(),_0x3a81af['set'](_0x20e36d,_0xdeff50),_0xdeff50[_0x351ef2(0x17f)](_0x4f9c62((_0x1fbd6a=this['_configService'][_0x351ef2(0x1b2)](Pe))!=null?_0x1fbd6a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x351ef2(0x19e)](_0x13351f=>{var _0x75037f=_0x351ef2;this[_0x75037f(0x1fe)][_0x75037f(0x1fc)]({'eventID':_0x1a5668[_0x75037f(0x1e8)],'data':{'unitID':this[_0x75037f(0x1aa)],'operations':{[_0x13351f['id']]:{'id':_0x13351f['id'],'params':JSON[_0x75037f(0x1d8)](_0x13351f[_0x75037f(0x227)])}}}},this[_0x75037f(0x1aa)]);})),_0xdeff50[_0x351ef2(0x216)](_0x219234);})),this[_0x444124(0x201)][_0x444124(0x1b6)](this['_unitID'])[_0x444124(0x1eb)](_0xf86aee=>this['_collabSession'][_0x444124(0x1fc)]({'eventID':_0x1a5668[_0x444124(0x1e8)],'data':{'unitID':this[_0x444124(0x1aa)],'operations':{[_0xf86aee['id']]:{'id':_0xf86aee['id'],'params':JSON['stringify'](_0xf86aee[_0x444124(0x227)])}}}},this[_0x444124(0x1aa)]));}[_0xa9c041(0x196)](){var _0x5e4874=_0xa9c041,_0x242069;this[_0x5e4874(0x1d4)][_0x5e4874(0x216)](_0x5e4874(0x213)),(_0x242069=this[_0x5e4874(0x1fa)])==null||_0x242069['dispose'](),this[_0x5e4874(0x1fa)]=null;}['_startFollowing'](){var _0x9136e6=_0xa9c041,_0x17008c;(_0x17008c=this['_commandDisposable'])==null||_0x17008c[_0x9136e6(0x1bb)](),this[_0x9136e6(0x1d4)][_0x9136e6(0x216)](_0x9136e6(0x1c7));}[_0xa9c041(0x1be)](){var _0x5ac48f=_0xa9c041,_0x24c78f;this['_status$'][_0x5ac48f(0x216)]('idle'),(_0x24c78f=this[_0x5ac48f(0x1fa)])==null||_0x24c78f[_0x5ac48f(0x1bb)](),this['_commandDisposable']=null;}[_0xa9c041(0x1ff)](){var _0x46c2c3=_0xa9c041,_0x2095a1;this[_0x46c2c3(0x1d4)][_0x46c2c3(0x216)]('not-following'),(_0x2095a1=this['_commandDisposable'])==null||_0x2095a1[_0x46c2c3(0x1bb)]();}['_handleOperation'](_0x4a4d73){var _0x35fb6a=_0xa9c041;if([_0x35fb6a(0x1d7),_0x35fb6a(0x22c),_0x35fb6a(0x1c4)][_0x35fb6a(0x17b)](this[_0x35fb6a(0x189)])||!_0x4a4d73[_0x35fb6a(0x204)][_0x35fb6a(0x225)]||_0x4a4d73[_0x35fb6a(0x204)][_0x35fb6a(0x225)]===this['_collabSession'][_0x35fb6a(0x226)]())return;this[_0x35fb6a(0x189)]===_0x35fb6a(0x213)&&this['_startFollowing']();const _0x5aa578=_0x4a4d73[_0x35fb6a(0x204)][_0x35fb6a(0x184)];Object[_0x35fb6a(0x1cc)](_0x5aa578)[_0x35fb6a(0x1eb)](_0x11dbe3=>{var _0x2426db=_0x35fb6a;this[_0x2426db(0x1b3)][_0x2426db(0x22a)](_0x11dbe3['id'],_0x11dbe3[_0x2426db(0x227)]?JSON[_0x2426db(0x218)](_0x11dbe3[_0x2426db(0x227)]):null,{'fromCollab':!0x0});});}[_0xa9c041(0x1a9)](){var _0x5ec356=_0xa9c041,_0x322274;this[_0x5ec356(0x1d4)][_0x5ec356(0x216)](_0x5ec356(0x1c4)),(_0x322274=this[_0x5ec356(0x1fa)])==null||_0x322274[_0x5ec356(0x1bb)]();}['_handleOnline'](){var _0x2a2b52=_0xa9c041;this[_0x2a2b52(0x1d4)][_0x2a2b52(0x216)]('idle'),this[_0x2a2b52(0x1e4)]();}};C=Z([f(0x2,_0x55ad57),f(0x3,_0x5e03cc(L)),f(0x4,_0x1dedf5)],C);function Te(){var _0x5a25e5=_0xa9c041;const _0x55b0b5=_0x23bfac(I),_0x26310b=_0x23bfac(_0x7f0db1),_0x515e19=_0x517777(()=>_0x26310b[_0x5a25e5(0x1af)](_0x2647b1[_0x5a25e5(0x192)]),void 0x0,!0x1,[]),[_0x4228bf,_0x22a836]=_0x46401a(null),[_0x54872f,_0x2ed7c3]=_0x46401a(h[_0x5a25e5(0x21f)]),_0x3e027f=_0x1273b1(null);return _0x17e005(()=>(_0x515e19&&_0x55b0b5[_0x5a25e5(0x1ad)](_0x515e19[_0x5a25e5(0x1f4)]())[_0x5a25e5(0x1f0)](_0xef4b73=>{var _0x5649e1=_0x5a25e5;_0x22a836(_0xef4b73),_0x3e027f['current']=_0xef4b73[_0x5649e1(0x1a3)]['subscribe'](_0x7c3a0=>{_0x2ed7c3(_0x7c3a0);});}),()=>{var _0x3d32f9=_0x5a25e5,_0x353280;(_0x353280=_0x3e027f['current'])==null||_0x353280['unsubscribe'](),_0x3e027f[_0x3d32f9(0x222)]=null;}),[_0x515e19,_0x55b0b5]),_0x4228bf?_0x3b2b63(_0x3506b3,{'align':_0x5a25e5(0x19d),'disabled':_0x54872f===h[_0x5a25e5(0x1c9)],'className':_0x5a25e5(0x188),'overlay':_0x3b2b63($e,{'status':_0x54872f,'coordinator':_0x4228bf}),'children':_0x3b2b63(_0x5a25e5(0x195),{'className':_0x342bd2(_0x5a25e5(0x17a),{'univer-cursor-not-allowed':_0x54872f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54872f!==h[_0x5a25e5(0x1c9)]}),'type':_0x5a25e5(0x195),'children':_0x3b2b63(B,{'className':_0x5a25e5(0x180)})})}):null;}function $e(_0x321d6a){var _0x3ad137=_0xa9c041;const {status:_0x33412d,coordinator:_0x3bb82b}=_0x321d6a;switch(_0x33412d){case h['IDLE']:return _0x3b2b63(Fe,{'coordinator':_0x3bb82b});case h['FOLLOWING']:return _0x3b2b63(He,{'coordinator':_0x3bb82b});case h[_0x3ad137(0x18f)]:return _0x3b2b63(je,{'coordinator':_0x3bb82b});case h['OFFLINE']:return _0x3b2b63(Ve,{});case h['PRESENTING']:return _0x3b2b63(Ue,{'coordinator':_0x3bb82b});default:return null;}}function Fe(_0x1b517a){var _0x1f903a=_0xa9c041;const {coordinator:_0x32668a}=_0x1b517a;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63(_0x1f903a(0x1e1),{'className':_0x1f903a(0x228),'children':'Present\x20this\x20document'}),_0x3b2b63(_0x3499cb,{'onClick':()=>_0x32668a['tryStartPresenting'](),'children':_0x1f903a(0x1fb)})]});}function He(_0x2ed61b){var _0x222880=_0xa9c041;const {coordinator:_0x6826d}=_0x2ed61b;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63('div',{'className':_0x222880(0x228),'children':_0x222880(0x1bd)}),_0x3b2b63(_0x3499cb,{'onClick':()=>_0x6826d[_0x222880(0x1f7)](),'children':_0x222880(0x1bc)})]});}function je(_0xa631fb){var _0x251bd9=_0xa9c041;const {coordinator:_0x45aae0}=_0xa631fb;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63('div',{'className':_0x251bd9(0x228),'children':_0x251bd9(0x208)}),_0x3b2b63(_0x3499cb,{'variant':'text','onClick':()=>_0x45aae0[_0x251bd9(0x1c3)](),'children':_0x251bd9(0x1c2)})]});}function Ue(_0x7018c3){var _0xbb4084=_0xa9c041;const {coordinator:_0x303150}=_0x7018c3;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63(_0xbb4084(0x1e1),{'className':_0xbb4084(0x228),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2b63(_0x3499cb,{'variant':_0xbb4084(0x1b8),'onClick':()=>_0x303150[_0xbb4084(0x211)](),'children':_0xbb4084(0x1ab)})]});}function Ve(){var _0x114227=_0xa9c041;return _0x3b2b63(_0x5814ff,{'children':_0x114227(0x1a1)});}var Me=Object[_0xa9c041(0x224)],ke=(_0x4c35aa,_0x14af1d,_0x4b97a3,_0x48534c)=>{var _0x4505b4=_0xa9c041;for(var _0x2442d7=_0x48534c>0x1?void 0x0:_0x48534c?Me(_0x14af1d,_0x4b97a3):_0x14af1d,_0x29b363=_0x4c35aa[_0x4505b4(0x1cb)]-0x1,_0xe58990;_0x29b363>=0x0;_0x29b363--)(_0xe58990=_0x4c35aa[_0x29b363])&&(_0x2442d7=_0xe58990(_0x2442d7)||_0x2442d7);return _0x2442d7;},$=(_0x3446a0,_0xa90b73)=>(_0xd80845,_0xcb46f9)=>_0xa90b73(_0xd80845,_0xcb46f9,_0x3446a0);let b=class extends _0xd9f3e0{constructor(_0x4f05ae,_0x1d4186){var _0x4efdb4=_0xa9c041;super(),this[_0x4efdb4(0x18e)]=_0x4f05ae,this[_0x4efdb4(0x1f2)]=_0x1d4186,this[_0x4efdb4(0x199)]();}[_0xa9c041(0x199)](){var _0xe32682=_0xa9c041;this[_0xe32682(0x1ce)](this['_uiPartsService'][_0xe32682(0x1cf)](_0x15986a[_0xe32682(0x1df)],()=>_0x312e3a(Te,this[_0xe32682(0x18e)])));}};b=ke([$(0x0,_0x5e03cc(_0x249d07)),$(0x1,_0x677b9)],b);function _0x472c(){var _0x5792d6=['replace','entries','memberID','mask','apply','1505870hNQhVF','IDLE','trim','_reporters','current','currentColor','getOwnPropertyDescriptor','presenter','getMemberID','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','use','executeCommand','_startLiveShareCoordinator','not-following','getTypeOfUnitDisposed$','defs','1nAWexn','complete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','set','FOLLOWING','onStarting','pipe','univer-size-4','concat','_univerInstanceService','toString','operations','string','33kgksdf','defIds','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','_status','_init','2912799QAfczu','LIVESHARE_NEW_HOST','displayName','_injector','NOT_FOLLOWING','_handleTerminate','init','UNIVER_SHEET','hasOwnProperty','call','button','_stopPresenting','type','963ZTpwnf','_mountLiveShare','registerSharedOperation','UniverIcon','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','subscribe','_handleOnline','delete','You\x27are\x20offline.','_startFollowing','status$','svg','has','symbol','extend','map','_handleOffline','_unitID','Stop\x20presenting','10084680dHXqqk','getLiveShareCoordinator','1266CTYRoz','getCurrentTypeOfUnit$','evenodd','url(#$1','getConfig','_commandService','1em','idSuffix','getInitialStates','path','default','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','indexOf','dispose','Stop\x20following','You\x27re\x20following\x20the\x20presenter','_beIdle','requireSession','random','http://www.w3.org/2000/svg','Start\x20following','startFollowing','offline','_collabSessionService','getTypeOfUnitAdded$','following','_handleNewChangeSets','OFFLINE','clear','length','values','event$','disposeWithMe','registerComponent','getOwnPropertySymbols','onRendered','attrs','_config','_status$','registerInitialStateReporter','LIVESHARE_TERMINATE','presenting','stringify','from','3241342bRdWXV','_sharedOperations','icon','function','getValue','HEADER_MENU','tag','div','xlink:href','ONLINE','_fetchOperations','substring','_handleOperation','0\x200\x2017\x2017','LIVESHARE_OPERATION','_startPresenting','defineProperty','forEach','assign','live-share.config','shouldShareOperation','_entities','then','_presenter','_uiPartsService','NEW_CHANGESETS','getUnitId','setConfig','PRESENTING','stopFollowing','sessionStatus$','LIVESHARE_REQUEST_HOST','_commandDisposable','Start','send','prototype','_collabSession','_stopFollowing','get','_liveShareService','69310qXjXLA','createInstance','data','LIVESHARE_FETCH_OPERATIONS','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','_handleNewHost','749gAhMIE','_configService','children','4884288zdgLWM','asObservable','fill','stopPresenting','className','idle','add','find','next','4xsJyRO','parse'];_0x472c=function(){return _0x5792d6;};return _0x472c();}function _0x186a(_0x5ca346,_0x9b1ad8){var _0x472c64=_0x472c();return _0x186a=function(_0x186a35,_0x5418da){_0x186a35=_0x186a35-0x178;var _0x2421ff=_0x472c64[_0x186a35];return _0x2421ff;},_0x186a(_0x5ca346,_0x9b1ad8);}var Ge=Object[_0xa9c041(0x1ea)],We=Object[_0xa9c041(0x224)],Ye=(_0x3ea0a5,_0x1672a6,_0x2dfb9d)=>_0x1672a6 in _0x3ea0a5?Ge(_0x3ea0a5,_0x1672a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dfb9d}):_0x3ea0a5[_0x1672a6]=_0x2dfb9d,Be=(_0x5bff06,_0x1c5c8,_0x195d32,_0x1d1349)=>{for(var _0x4bf29d=_0x1d1349>0x1?void 0x0:_0x1d1349?We(_0x1c5c8,_0x195d32):_0x1c5c8,_0x3c91e6=_0x5bff06['length']-0x1,_0x451e28;_0x3c91e6>=0x0;_0x3c91e6--)(_0x451e28=_0x5bff06[_0x3c91e6])&&(_0x4bf29d=_0x451e28(_0x4bf29d)||_0x4bf29d);return _0x4bf29d;},F=(_0x51683f,_0x2742c2)=>(_0x13e59a,_0x264dfe)=>_0x2742c2(_0x13e59a,_0x264dfe,_0x51683f),J=(_0x4dc4cd,_0x45b7e4,_0x339720)=>Ye(_0x4dc4cd,typeof _0x45b7e4!=_0xa9c041(0x1a6)?_0x45b7e4+'':_0x45b7e4,_0x339720);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x3e037f{constructor(_0x55d4ab=T,_0x279942,_0x123347){var _0x22f638=_0xa9c041;super(),this[_0x22f638(0x1d3)]=_0x55d4ab,this[_0x22f638(0x18e)]=_0x279942,this[_0x22f638(0x20c)]=_0x123347;const {..._0xaa7402}=_0x48fed9({},T,this[_0x22f638(0x1d3)]);this['_configService'][_0x22f638(0x1f5)](Oe,_0xaa7402);}[_0xa9c041(0x17e)](){var _0x5c26b6=_0xa9c041;_0x414f55(this['_injector'],_0x4fa646([[L],[I],[m],[b]],this[_0x5c26b6(0x1d3)]['override'])),_0x1f4650(this[_0x5c26b6(0x18e)],[[m]]);}[_0xa9c041(0x1d1)](){_0x1f4650(this['_injector'],[[b]]);}};J(O,_0xa9c041(0x197),_0x2647b1[_0xa9c041(0x207)]),J(O,'pluginName',Ze),O=Be([_0x21db47(_0x386e00),F(0x1,_0x5e03cc(_0x249d07)),F(0x2,_0x55ad57)],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 _0xa9c041=_0x186a;(function(_0x2e9c0f,_0x21b7c5){var _0x1aa77d=_0x186a,_0x502f74=_0x2e9c0f();while(!![]){try{var _0x1ef9f8=parseInt(_0x1aa77d(0x178))/0x1*(-parseInt(_0x1aa77d(0x1da))/0x2)+-parseInt(_0x1aa77d(0x18b))/0x3+-parseInt(_0x1aa77d(0x217))/0x4*(-parseInt(_0x1aa77d(0x21e))/0x5)+parseInt(_0x1aa77d(0x1ae))/0x6*(-parseInt(_0x1aa77d(0x20b))/0x7)+parseInt(_0x1aa77d(0x1ac))/0x8+parseInt(_0x1aa77d(0x198))/0x9*(parseInt(_0x1aa77d(0x202))/0xa)+parseInt(_0x1aa77d(0x186))/0xb*(parseInt(_0x1aa77d(0x20e))/0xc);if(_0x1ef9f8===_0x21b7c5)break;else _0x502f74['push'](_0x502f74['shift']());}catch(_0x342a92){_0x502f74['push'](_0x502f74['shift']());}}}(_0x472c,0xde3bb));var q=Object[_0xa9c041(0x1ea)],z=(_0x3342c3,_0x56ae4e,_0x556b95)=>_0x56ae4e in _0x3342c3?q(_0x3342c3,_0x56ae4e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556b95}):_0x3342c3[_0x56ae4e]=_0x556b95,d=(_0x6e01f9,_0x4d754f,_0x20c8e1)=>z(_0x6e01f9,typeof _0x4d754f!=_0xa9c041(0x1a6)?_0x4d754f+'':_0x4d754f,_0x20c8e1);import{CollaborationSessionService as _0x2b1a5d,SessionStatus as _0x1f6429,UniverCollaborationClientPlugin as _0x386e00}from'@univerjs-pro/collaboration-client';import{Disposable as _0xd9f3e0,toDisposable as _0x27ee7b,Inject as _0x5e03cc,IUniverInstanceService as _0x7f0db1,Injector as _0x249d07,IConfigService as _0x55ad57,ICommandService as _0x1dedf5,RxDisposable as _0x3677c5,UniverInstanceType as _0x2647b1,DisposableCollection as _0x748a72,CommandType as _0x167122,DependentOn as _0x21db47,Plugin as _0x3e037f,merge as _0x48fed9,registerDependencies as _0x414f55,mergeOverrideWithDependencies as _0x4fa646,touchDependencies as _0x1f4650}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3d020f,InsertSheetMutation as _0x407e46}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5c8f08,SetScrollOperation as _0x2dc64b}from'@univerjs/sheets-ui';import{useDependency as _0x23bfac,useObservable as _0x517777,IUIPartsService as _0x677b9,BuiltInUIPart as _0x15986a,connectInjector as _0x312e3a}from'@univerjs/ui';import{jsx as _0x3b2b63,jsxs as _0x125a74,Fragment as _0x5814ff}from'react/jsx-runtime';import{Dropdown as _0x3506b3,clsx as _0x342bd2,Button as _0x3499cb}from'@univerjs/design';import{forwardRef as _0x51724d,useRef as _0x1273b1,createElement as _0xab46f3,useState as _0x46401a,useEffect as _0x17e005}from'react';import{CollaborationEvent as _0x1a5668,parseProtocolChangeset as _0x230d26}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x529a62,Subject as _0x3fc41b}from'rxjs';import{takeUntil as _0x1521c0,throttleTime as _0x4f9c62}from'rxjs/operators';const Oe=_0xa9c041(0x1ed),T={};class L extends _0xd9f3e0{constructor(){var _0x20eabd=_0xa9c041;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x20eabd(0x221),new Set());}[_0xa9c041(0x19a)](_0x511c85){var _0x16c7cf=_0xa9c041;return this[_0x16c7cf(0x1db)][_0x16c7cf(0x214)](_0x511c85),_0x27ee7b(()=>this[_0x16c7cf(0x1db)][_0x16c7cf(0x1a0)](_0x511c85));}[_0xa9c041(0x1d5)](_0x414c86){var _0x31142d=_0xa9c041;return this[_0x31142d(0x221)][_0x31142d(0x214)](_0x414c86),_0x27ee7b(()=>this[_0x31142d(0x221)][_0x31142d(0x1a0)](_0x414c86));}[_0xa9c041(0x1ee)](_0x389424){var _0x3cf523=_0xa9c041;return this[_0x3cf523(0x1db)][_0x3cf523(0x1a5)](_0x389424);}[_0xa9c041(0x1b6)](_0x46c67f){var _0x5b2d44=_0xa9c041;return Array[_0x5b2d44(0x1d9)](this[_0x5b2d44(0x221)])[_0x5b2d44(0x1a8)](_0x418691=>_0x418691(_0x46c67f));}}var Ee=Object[_0xa9c041(0x224)],we=(_0x3937fa,_0x5f39b6,_0x4998a3,_0xd76d5f)=>{for(var _0x30a911=_0xd76d5f>0x1?void 0x0:_0xd76d5f?Ee(_0x5f39b6,_0x4998a3):_0x5f39b6,_0x4121cf=_0x3937fa['length']-0x1,_0x13f9c3;_0x4121cf>=0x0;_0x4121cf--)(_0x13f9c3=_0x3937fa[_0x4121cf])&&(_0x30a911=_0x13f9c3(_0x30a911)||_0x30a911);return _0x30a911;},Ne=(_0xfaf85c,_0xaf2494)=>(_0x2c5739,_0x377ec7)=>_0xaf2494(_0x2c5739,_0x377ec7,_0xfaf85c);let m=class extends _0xd9f3e0{constructor(_0x2019f2){var _0x1d5ccb=_0xa9c041;super(),this[_0x1d5ccb(0x201)]=_0x2019f2,this[_0x1d5ccb(0x18a)]();}[_0xa9c041(0x18a)](){var _0x5e2bd9=_0xa9c041;[_0x5c8f08['id'],_0x2dc64b['id'],_0x3d020f['id']][_0x5e2bd9(0x1eb)](_0x496100=>{var _0x1f286e=_0x5e2bd9;this[_0x1f286e(0x1ce)](this['_liveShareService'][_0x1f286e(0x19a)](_0x496100));});}};m=we([Ne(0x0,_0x5e03cc(L))],m);var c=function(){var _0x3fc923=_0xa9c041;return c=Object[_0x3fc923(0x1ec)]||function(_0x476738){var _0x1305a4=_0x3fc923;for(var _0x5856d6,_0x3e73e9=0x1,_0x29e948=arguments['length'];_0x3e73e9<_0x29e948;_0x3e73e9++){_0x5856d6=arguments[_0x3e73e9];for(var _0x39804f in _0x5856d6)Object[_0x1305a4(0x1fd)]['hasOwnProperty'][_0x1305a4(0x194)](_0x5856d6,_0x39804f)&&(_0x476738[_0x39804f]=_0x5856d6[_0x39804f]);}return _0x476738;},c[_0x3fc923(0x21d)](this,arguments);},Ce=function(_0x3097a5,_0x2f35e5){var _0xf4a4fc=_0xa9c041,_0x2fc64e={};for(var _0x33f3f9 in _0x3097a5)Object[_0xf4a4fc(0x1fd)][_0xf4a4fc(0x193)][_0xf4a4fc(0x194)](_0x3097a5,_0x33f3f9)&&_0x2f35e5['indexOf'](_0x33f3f9)<0x0&&(_0x2fc64e[_0x33f3f9]=_0x3097a5[_0x33f3f9]);if(_0x3097a5!=null&&typeof Object[_0xf4a4fc(0x1d0)]==_0xf4a4fc(0x1dd)){for(var _0x117ed3=0x0,_0x33f3f9=Object['getOwnPropertySymbols'](_0x3097a5);_0x117ed3<_0x33f3f9[_0xf4a4fc(0x1cb)];_0x117ed3++)_0x2f35e5[_0xf4a4fc(0x1ba)](_0x33f3f9[_0x117ed3])<0x0&&Object[_0xf4a4fc(0x1fd)]['propertyIsEnumerable']['call'](_0x3097a5,_0x33f3f9[_0x117ed3])&&(_0x2fc64e[_0x33f3f9[_0x117ed3]]=_0x3097a5[_0x33f3f9[_0x117ed3]]);}return _0x2fc64e;},W=_0x51724d(function(_0x3fe20d,_0x2fbdc3){var _0x35fd1f=_0xa9c041,_0x517861=_0x3fe20d[_0x35fd1f(0x1dc)],_0x1f4a38=_0x3fe20d['id'],_0x386e6f=_0x3fe20d[_0x35fd1f(0x212)],_0x466d1c=_0x3fe20d[_0x35fd1f(0x1a7)],_0x2f6f0c=Ce(_0x3fe20d,[_0x35fd1f(0x1dc),'id',_0x35fd1f(0x212),_0x35fd1f(0x1a7)]),_0x3b7021='univerjs-icon\x20univerjs-icon-'['concat'](_0x1f4a38,'\x20')[_0x35fd1f(0x181)](_0x386e6f||'')[_0x35fd1f(0x220)](),_0x5a4de5=_0x1273b1('_'['concat'](Le()));return Y(_0x517861,''[_0x35fd1f(0x181)](_0x1f4a38),{'defIds':_0x517861['defIds'],'idSuffix':_0x5a4de5[_0x35fd1f(0x222)]},c({'ref':_0x2fbdc3,'className':_0x3b7021},_0x2f6f0c),_0x466d1c);});function Y(_0x65494f,_0x2419f3,_0x27f7fd,_0x3f2ef3,_0x3c36ea){var _0x4221bf=_0xa9c041;return _0xab46f3(_0x65494f[_0x4221bf(0x1e0)],c(c({'key':_0x2419f3},De(_0x65494f,_0x27f7fd,_0x3c36ea)),_0x3f2ef3),(xe(_0x65494f,_0x27f7fd)[_0x4221bf(0x20d)]||[])[_0x4221bf(0x1a8)](function(_0x3ffb03,_0x521c6f){return Y(_0x3ffb03,''['concat'](_0x2419f3,'-')['concat'](_0x65494f['tag'],'-')['concat'](_0x521c6f),_0x27f7fd,void 0x0,_0x3c36ea);}));}function De(_0x333192,_0x14585c,_0x5a88e6){var _0x5c06f9=_0xa9c041,_0x3146ca=c({},_0x333192[_0x5c06f9(0x1d2)]);_0x5a88e6!=null&&_0x5a88e6['colorChannel1']&&_0x3146ca[_0x5c06f9(0x210)]==='colorChannel1'&&(_0x3146ca[_0x5c06f9(0x210)]=_0x5a88e6['colorChannel1']),_0x333192[_0x5c06f9(0x1e0)]==='mask'&&_0x3146ca['id']&&(_0x3146ca['id']=_0x3146ca['id']+_0x14585c['idSuffix']),Object[_0x5c06f9(0x21a)](_0x3146ca)[_0x5c06f9(0x1eb)](function(_0x488e87){var _0x3ee7ee=_0x5c06f9,_0xffbbac=_0x488e87[0x0],_0x48d09b=_0x488e87[0x1];_0xffbbac===_0x3ee7ee(0x21c)&&typeof _0x48d09b==_0x3ee7ee(0x185)&&(_0x3146ca[_0xffbbac]=_0x48d09b['replace'](/url\(#(.*)\)/,_0x3ee7ee(0x1b1)[_0x3ee7ee(0x181)](_0x14585c[_0x3ee7ee(0x1b5)],')')));});var _0x11290c=_0x14585c[_0x5c06f9(0x187)];return!_0x11290c||_0x11290c[_0x5c06f9(0x1cb)]===0x0||(_0x333192[_0x5c06f9(0x1e0)]===_0x5c06f9(0x229)&&_0x3146ca[_0x5c06f9(0x1e2)]&&(_0x3146ca[_0x5c06f9(0x1e2)]=_0x3146ca['xlink:href']+_0x14585c[_0x5c06f9(0x1b5)]),Object[_0x5c06f9(0x21a)](_0x3146ca)[_0x5c06f9(0x1eb)](function(_0x483b80){var _0x13b4f6=_0x5c06f9,_0x57af92=_0x483b80[0x0],_0x3d33ed=_0x483b80[0x1];typeof _0x3d33ed==_0x13b4f6(0x185)&&(_0x3146ca[_0x57af92]=_0x3d33ed[_0x13b4f6(0x219)](/url\(#(.*)\)/,_0x13b4f6(0x1b1)['concat'](_0x14585c[_0x13b4f6(0x1b5)],')')));})),_0x3146ca;}function xe(_0x15ac97,_0x231212){var _0x431ce2=_0xa9c041,_0x2b5e94,_0x2ce1ea=_0x231212[_0x431ce2(0x187)];return!_0x2ce1ea||_0x2ce1ea[_0x431ce2(0x1cb)]===0x0?_0x15ac97:_0x15ac97[_0x431ce2(0x1e0)]===_0x431ce2(0x22e)&&(!((_0x2b5e94=_0x15ac97['children'])===null||_0x2b5e94===void 0x0)&&_0x2b5e94['length'])?c(c({},_0x15ac97),{'children':_0x15ac97[_0x431ce2(0x20d)]['map'](function(_0x38a842){var _0x52ab4e=_0x431ce2;return typeof _0x38a842[_0x52ab4e(0x1d2)]['id']==_0x52ab4e(0x185)&&_0x2ce1ea&&_0x2ce1ea[_0x52ab4e(0x17b)](_0x38a842[_0x52ab4e(0x1d2)]['id'])?c(c({},_0x38a842),{'attrs':c(c({},_0x38a842[_0x52ab4e(0x1d2)]),{'id':_0x38a842[_0x52ab4e(0x1d2)]['id']+_0x231212[_0x52ab4e(0x1b5)]})}):_0x38a842;})}):_0x15ac97;}function Le(){var _0x227702=_0xa9c041;return Math[_0x227702(0x1c0)]()[_0x227702(0x183)](0x24)[_0x227702(0x1e5)](0x2,0x8);}W[_0xa9c041(0x18d)]=_0xa9c041(0x19b);var ye={'tag':_0xa9c041(0x1a4),'attrs':{'xmlns':_0xa9c041(0x1c1),'fill':'none','viewBox':_0xa9c041(0x1e7),'width':_0xa9c041(0x1b4),'height':'1em'},'children':[{'tag':_0xa9c041(0x1b7),'attrs':{'fill':_0xa9c041(0x223),'d':_0xa9c041(0x19c)}},{'tag':_0xa9c041(0x1b7),'attrs':{'fill':'currentColor','d':_0xa9c041(0x1b9),'fillRule':_0xa9c041(0x1b0),'clipRule':_0xa9c041(0x1b0)}}]},B=_0x51724d(function(_0x58ee0c,_0x1aa1d5){var _0x459223=_0xa9c041;return _0xab46f3(W,Object[_0x459223(0x1ec)]({},_0x58ee0c,{'id':'live-share-icon','ref':_0x1aa1d5,'icon':ye}));});B[_0xa9c041(0x18d)]='LiveShareIcon';var Re=Object[_0xa9c041(0x224)],Z=(_0x332fa8,_0x4b7a3b,_0x18fc5c,_0x55f128)=>{var _0x47df60=_0xa9c041;for(var _0x367e06=_0x55f128>0x1?void 0x0:_0x55f128?Re(_0x4b7a3b,_0x18fc5c):_0x4b7a3b,_0x17f9fc=_0x332fa8[_0x47df60(0x1cb)]-0x1,_0x5c3a9e;_0x17f9fc>=0x0;_0x17f9fc--)(_0x5c3a9e=_0x332fa8[_0x17f9fc])&&(_0x367e06=_0x5c3a9e(_0x367e06)||_0x367e06);return _0x367e06;},f=(_0x59f36c,_0x6531dc)=>(_0x1431dd,_0x1aac1f)=>_0x6531dc(_0x1431dd,_0x1aac1f,_0x59f36c);let I=class extends _0x3677c5{constructor(_0x50f7c7,_0x5c665a,_0x5b4930){var _0x1486a8=_0xa9c041;super(),d(this,_0x1486a8(0x1ef),new Map()),(this[_0x1486a8(0x182)]=_0x50f7c7,this[_0x1486a8(0x18e)]=_0x5c665a,this['_collabSessionService']=_0x5b4930,this[_0x1486a8(0x18a)]());}async['getLiveShareCoordinator'](_0x211398){var _0x492931=_0xa9c041;return this['_entities'][_0x492931(0x1a5)](_0x211398)||await this[_0x492931(0x22b)](_0x211398),this[_0x492931(0x1ef)]['get'](_0x211398);}[_0xa9c041(0x18a)](){var _0x519fc9=_0xa9c041;this[_0x519fc9(0x182)][_0x519fc9(0x1c6)](_0x2647b1[_0x519fc9(0x192)])['pipe'](_0x1521c0(this[_0x519fc9(0x209)]))[_0x519fc9(0x19e)](async _0x268967=>{var _0x341891=_0x519fc9;const _0x497726=_0x268967[_0x341891(0x1f4)]();this['_entities'][_0x341891(0x1a5)](_0x497726)||this[_0x341891(0x22b)](_0x497726);}),this[_0x519fc9(0x182)][_0x519fc9(0x22d)](_0x2647b1['UNIVER_SHEET'])['pipe'](_0x1521c0(this[_0x519fc9(0x209)]))[_0x519fc9(0x19e)](_0x405571=>{var _0x2ae6a6=_0x519fc9;const _0x50ee1b=_0x405571['getUnitId'](),_0x3d8ff5=this[_0x2ae6a6(0x1ef)][_0x2ae6a6(0x200)](_0x50ee1b);_0x3d8ff5==null||_0x3d8ff5[_0x2ae6a6(0x1bb)]();});}async[_0xa9c041(0x22b)](_0x28c9d1){var _0x132e53=_0xa9c041;const _0x4177a2=await this[_0x132e53(0x1c5)][_0x132e53(0x1bf)](_0x28c9d1),_0x1f5c2c=this[_0x132e53(0x18e)][_0x132e53(0x203)](C,_0x28c9d1,_0x4177a2);return _0x1f5c2c[_0x132e53(0x191)](),this[_0x132e53(0x1ef)][_0x132e53(0x17c)](_0x28c9d1,_0x1f5c2c),_0x1f5c2c;}};I=Z([f(0x0,_0x7f0db1),f(0x1,_0x5e03cc(_0x249d07)),f(0x2,_0x5e03cc(_0x2b1a5d))],I);var h=(_0x17ae14=>(_0x17ae14[_0xa9c041(0x1c9)]='offline',_0x17ae14['IDLE']=_0xa9c041(0x213),_0x17ae14[_0xa9c041(0x17d)]=_0xa9c041(0x1c7),_0x17ae14[_0xa9c041(0x18f)]=_0xa9c041(0x22c),_0x17ae14[_0xa9c041(0x1f6)]='presenting',_0x17ae14))(h||{});const Pe=_0xa9c041(0x206),Ae=0xc8;let C=class extends _0x3677c5{constructor(_0x4fc0e9,_0x520bad,_0x16bafd,_0x40a4fd,_0x3bf16c){var _0x39bdd8=_0xa9c041;super(),d(this,_0x39bdd8(0x1d4),new _0x529a62(_0x39bdd8(0x213))),d(this,_0x39bdd8(0x1a3),this['_status$'][_0x39bdd8(0x20f)]()),d(this,_0x39bdd8(0x18a),!0x1),d(this,_0x39bdd8(0x1fa),null),d(this,_0x39bdd8(0x1f1),null),(this[_0x39bdd8(0x1aa)]=_0x4fc0e9,this[_0x39bdd8(0x1fe)]=_0x520bad,this['_configService']=_0x16bafd,this[_0x39bdd8(0x201)]=_0x40a4fd,this[_0x39bdd8(0x1b3)]=_0x3bf16c);}get[_0xa9c041(0x189)](){var _0x464c46=_0xa9c041;return this[_0x464c46(0x1d4)][_0x464c46(0x1de)]();}[_0xa9c041(0x1bb)](){var _0x5b1b93=_0xa9c041,_0x524ec6;(_0x524ec6=this[_0x5b1b93(0x1fa)])==null||_0x524ec6[_0x5b1b93(0x1bb)](),this[_0x5b1b93(0x1d4)]['next'](_0x5b1b93(0x213)),this[_0x5b1b93(0x1d4)][_0x5b1b93(0x179)]();}[_0xa9c041(0x191)](){var _0x54a4d9=_0xa9c041;this['_init']||(this[_0x54a4d9(0x18a)]=!0x0,this[_0x54a4d9(0x1fe)][_0x54a4d9(0x1f8)][_0x54a4d9(0x17f)](_0x1521c0(this['dispose$']))[_0x54a4d9(0x19e)](_0x535a63=>{var _0x4f0b95=_0x54a4d9;switch(_0x535a63){case _0x1f6429[_0x4f0b95(0x1c9)]:this[_0x4f0b95(0x1a9)]();break;case _0x1f6429[_0x4f0b95(0x1e3)]:this[_0x4f0b95(0x19f)]();break;}}),this[_0x54a4d9(0x1fe)][_0x54a4d9(0x1cd)]['pipe'](_0x1521c0(this[_0x54a4d9(0x209)]))['subscribe'](_0x566962=>{var _0x4d1b7b=_0x54a4d9;const {eventID:_0x4e05e4}=_0x566962;switch(_0x4e05e4){case _0x1a5668[_0x4d1b7b(0x18c)]:this[_0x4d1b7b(0x20a)](_0x566962);break;case _0x1a5668[_0x4d1b7b(0x1e8)]:this[_0x4d1b7b(0x1e6)](_0x566962);break;case _0x1a5668[_0x4d1b7b(0x1d6)]:this[_0x4d1b7b(0x190)]();break;case _0x1a5668[_0x4d1b7b(0x1f3)]:this[_0x4d1b7b(0x1c8)](_0x566962);break;}}));}['tryStartPresenting'](){var _0x3cb9b3=_0xa9c041;this[_0x3cb9b3(0x1fe)][_0x3cb9b3(0x1fc)]({'eventID':_0x1a5668[_0x3cb9b3(0x1f9)],'data':{'unitID':this[_0x3cb9b3(0x1aa)],'userID':this['_collabSession'][_0x3cb9b3(0x226)]()}},this[_0x3cb9b3(0x1aa)]);}[_0xa9c041(0x211)](){var _0x31c873=_0xa9c041;this['_status']===_0x31c873(0x1d7)&&(this['_status$']['next'](_0x31c873(0x213)),this[_0x31c873(0x1fe)][_0x31c873(0x1fc)]({'eventID':_0x1a5668['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x31c873(0x1aa)]));}[_0xa9c041(0x1c3)](){var _0x32c746=_0xa9c041;this['_status']==='not-following'&&(this[_0x32c746(0x1d4)][_0x32c746(0x216)](_0x32c746(0x1c7)),this[_0x32c746(0x1a2)]());}['stopFollowing'](){var _0x4e42cd=_0xa9c041;this[_0x4e42cd(0x189)]===_0x4e42cd(0x1c7)&&this[_0x4e42cd(0x1ff)]();}[_0xa9c041(0x20a)](_0x1365b8){var _0x4d9239=_0xa9c041;const {presenter:_0x44db97}=_0x1365b8[_0x4d9239(0x204)],_0x50c499=this[_0x4d9239(0x1fe)]['getMemberID']();this[_0x4d9239(0x1f1)]=_0x44db97,_0x44db97===_0x50c499?(this['_stopFollowing'](),this[_0x4d9239(0x1e9)]()):this[_0x4d9239(0x189)]!==_0x4d9239(0x22c)&&(this[_0x4d9239(0x196)](),this['_startFollowing']());}[_0xa9c041(0x1e4)](){var _0x4cb7b2=_0xa9c041;const _0x17995b={'eventID':_0x1a5668[_0x4cb7b2(0x205)]};this['_collabSession']['send'](_0x17995b,this[_0x4cb7b2(0x1aa)]);}[_0xa9c041(0x190)](){var _0x4bc0fb=_0xa9c041;this[_0x4bc0fb(0x1f1)]=null,this['_status']!==_0x4bc0fb(0x1d7)&&this[_0x4bc0fb(0x1be)]();}[_0xa9c041(0x1c8)](_0x46a64e){var _0x18e5a4=_0xa9c041;if(this['_status']===_0x18e5a4(0x1c7)&&this['_presenter']===_0x46a64e[_0x18e5a4(0x204)][_0x18e5a4(0x21b)]){const _0x1a8fb6=_0x230d26(_0x46a64e[_0x18e5a4(0x204)])['mutations']['reverse']()[_0x18e5a4(0x215)](_0x68ba62=>_0x68ba62['id']===_0x407e46['id']);if(_0x1a8fb6){const _0x30ced6=_0x1a8fb6[_0x18e5a4(0x227)]['unitId'],_0x17187c=_0x1a8fb6[_0x18e5a4(0x227)]['sheet']['id'];setTimeout(()=>{var _0x33a838=_0x18e5a4;this['_commandService'][_0x33a838(0x22a)](_0x3d020f['id'],{'unitId':_0x30ced6,'subUnitId':_0x17187c},{'fromCollab':!0x0});});}}}[_0xa9c041(0x1e9)](){var _0x444124=_0xa9c041;this[_0x444124(0x1d4)][_0x444124(0x216)](_0x444124(0x1d7));const _0x3a81af=new Map(),_0x55ffd8=this[_0x444124(0x1fa)]=new _0x748a72();_0x55ffd8[_0x444124(0x214)](_0x27ee7b(()=>{var _0x3c8f4b=_0x444124;_0x3a81af[_0x3c8f4b(0x1eb)](_0x1bf0b0=>_0x1bf0b0[_0x3c8f4b(0x179)]()),_0x3a81af[_0x3c8f4b(0x1ca)]();})),_0x55ffd8['add'](this[_0x444124(0x1b3)]['onCommandExecuted'](_0x219234=>{var _0x351ef2=_0x444124,_0x1fbd6a;if(_0x219234[_0x351ef2(0x197)]!==_0x167122['OPERATION']||!this[_0x351ef2(0x201)][_0x351ef2(0x1ee)](_0x219234['id']))return;const {id:_0x20e36d}=_0x219234;let _0xdeff50;_0x3a81af[_0x351ef2(0x1a5)](_0x20e36d)?_0xdeff50=_0x3a81af[_0x351ef2(0x200)](_0x20e36d):(_0xdeff50=new _0x3fc41b(),_0x3a81af['set'](_0x20e36d,_0xdeff50),_0xdeff50[_0x351ef2(0x17f)](_0x4f9c62((_0x1fbd6a=this['_configService'][_0x351ef2(0x1b2)](Pe))!=null?_0x1fbd6a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x351ef2(0x19e)](_0x13351f=>{var _0x75037f=_0x351ef2;this[_0x75037f(0x1fe)][_0x75037f(0x1fc)]({'eventID':_0x1a5668[_0x75037f(0x1e8)],'data':{'unitID':this[_0x75037f(0x1aa)],'operations':{[_0x13351f['id']]:{'id':_0x13351f['id'],'params':JSON[_0x75037f(0x1d8)](_0x13351f[_0x75037f(0x227)])}}}},this[_0x75037f(0x1aa)]);})),_0xdeff50[_0x351ef2(0x216)](_0x219234);})),this[_0x444124(0x201)][_0x444124(0x1b6)](this['_unitID'])[_0x444124(0x1eb)](_0xf86aee=>this['_collabSession'][_0x444124(0x1fc)]({'eventID':_0x1a5668[_0x444124(0x1e8)],'data':{'unitID':this[_0x444124(0x1aa)],'operations':{[_0xf86aee['id']]:{'id':_0xf86aee['id'],'params':JSON['stringify'](_0xf86aee[_0x444124(0x227)])}}}},this[_0x444124(0x1aa)]));}[_0xa9c041(0x196)](){var _0x5e4874=_0xa9c041,_0x242069;this[_0x5e4874(0x1d4)][_0x5e4874(0x216)](_0x5e4874(0x213)),(_0x242069=this[_0x5e4874(0x1fa)])==null||_0x242069['dispose'](),this[_0x5e4874(0x1fa)]=null;}['_startFollowing'](){var _0x9136e6=_0xa9c041,_0x17008c;(_0x17008c=this['_commandDisposable'])==null||_0x17008c[_0x9136e6(0x1bb)](),this[_0x9136e6(0x1d4)][_0x9136e6(0x216)](_0x9136e6(0x1c7));}[_0xa9c041(0x1be)](){var _0x5ac48f=_0xa9c041,_0x24c78f;this['_status$'][_0x5ac48f(0x216)]('idle'),(_0x24c78f=this[_0x5ac48f(0x1fa)])==null||_0x24c78f[_0x5ac48f(0x1bb)](),this['_commandDisposable']=null;}[_0xa9c041(0x1ff)](){var _0x46c2c3=_0xa9c041,_0x2095a1;this[_0x46c2c3(0x1d4)][_0x46c2c3(0x216)]('not-following'),(_0x2095a1=this['_commandDisposable'])==null||_0x2095a1[_0x46c2c3(0x1bb)]();}['_handleOperation'](_0x4a4d73){var _0x35fb6a=_0xa9c041;if([_0x35fb6a(0x1d7),_0x35fb6a(0x22c),_0x35fb6a(0x1c4)][_0x35fb6a(0x17b)](this[_0x35fb6a(0x189)])||!_0x4a4d73[_0x35fb6a(0x204)][_0x35fb6a(0x225)]||_0x4a4d73[_0x35fb6a(0x204)][_0x35fb6a(0x225)]===this['_collabSession'][_0x35fb6a(0x226)]())return;this[_0x35fb6a(0x189)]===_0x35fb6a(0x213)&&this['_startFollowing']();const _0x5aa578=_0x4a4d73[_0x35fb6a(0x204)][_0x35fb6a(0x184)];Object[_0x35fb6a(0x1cc)](_0x5aa578)[_0x35fb6a(0x1eb)](_0x11dbe3=>{var _0x2426db=_0x35fb6a;this[_0x2426db(0x1b3)][_0x2426db(0x22a)](_0x11dbe3['id'],_0x11dbe3[_0x2426db(0x227)]?JSON[_0x2426db(0x218)](_0x11dbe3[_0x2426db(0x227)]):null,{'fromCollab':!0x0});});}[_0xa9c041(0x1a9)](){var _0x5ec356=_0xa9c041,_0x322274;this[_0x5ec356(0x1d4)][_0x5ec356(0x216)](_0x5ec356(0x1c4)),(_0x322274=this[_0x5ec356(0x1fa)])==null||_0x322274[_0x5ec356(0x1bb)]();}['_handleOnline'](){var _0x2a2b52=_0xa9c041;this[_0x2a2b52(0x1d4)][_0x2a2b52(0x216)]('idle'),this[_0x2a2b52(0x1e4)]();}};C=Z([f(0x2,_0x55ad57),f(0x3,_0x5e03cc(L)),f(0x4,_0x1dedf5)],C);function Te(){var _0x5a25e5=_0xa9c041;const _0x55b0b5=_0x23bfac(I),_0x26310b=_0x23bfac(_0x7f0db1),_0x515e19=_0x517777(()=>_0x26310b[_0x5a25e5(0x1af)](_0x2647b1[_0x5a25e5(0x192)]),void 0x0,!0x1,[]),[_0x4228bf,_0x22a836]=_0x46401a(null),[_0x54872f,_0x2ed7c3]=_0x46401a(h[_0x5a25e5(0x21f)]),_0x3e027f=_0x1273b1(null);return _0x17e005(()=>(_0x515e19&&_0x55b0b5[_0x5a25e5(0x1ad)](_0x515e19[_0x5a25e5(0x1f4)]())[_0x5a25e5(0x1f0)](_0xef4b73=>{var _0x5649e1=_0x5a25e5;_0x22a836(_0xef4b73),_0x3e027f['current']=_0xef4b73[_0x5649e1(0x1a3)]['subscribe'](_0x7c3a0=>{_0x2ed7c3(_0x7c3a0);});}),()=>{var _0x3d32f9=_0x5a25e5,_0x353280;(_0x353280=_0x3e027f['current'])==null||_0x353280['unsubscribe'](),_0x3e027f[_0x3d32f9(0x222)]=null;}),[_0x515e19,_0x55b0b5]),_0x4228bf?_0x3b2b63(_0x3506b3,{'align':_0x5a25e5(0x19d),'disabled':_0x54872f===h[_0x5a25e5(0x1c9)],'className':_0x5a25e5(0x188),'overlay':_0x3b2b63($e,{'status':_0x54872f,'coordinator':_0x4228bf}),'children':_0x3b2b63(_0x5a25e5(0x195),{'className':_0x342bd2(_0x5a25e5(0x17a),{'univer-cursor-not-allowed':_0x54872f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54872f!==h[_0x5a25e5(0x1c9)]}),'type':_0x5a25e5(0x195),'children':_0x3b2b63(B,{'className':_0x5a25e5(0x180)})})}):null;}function $e(_0x321d6a){var _0x3ad137=_0xa9c041;const {status:_0x33412d,coordinator:_0x3bb82b}=_0x321d6a;switch(_0x33412d){case h['IDLE']:return _0x3b2b63(Fe,{'coordinator':_0x3bb82b});case h['FOLLOWING']:return _0x3b2b63(He,{'coordinator':_0x3bb82b});case h[_0x3ad137(0x18f)]:return _0x3b2b63(je,{'coordinator':_0x3bb82b});case h['OFFLINE']:return _0x3b2b63(Ve,{});case h['PRESENTING']:return _0x3b2b63(Ue,{'coordinator':_0x3bb82b});default:return null;}}function Fe(_0x1b517a){var _0x1f903a=_0xa9c041;const {coordinator:_0x32668a}=_0x1b517a;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63(_0x1f903a(0x1e1),{'className':_0x1f903a(0x228),'children':'Present\x20this\x20document'}),_0x3b2b63(_0x3499cb,{'onClick':()=>_0x32668a['tryStartPresenting'](),'children':_0x1f903a(0x1fb)})]});}function He(_0x2ed61b){var _0x222880=_0xa9c041;const {coordinator:_0x6826d}=_0x2ed61b;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63('div',{'className':_0x222880(0x228),'children':_0x222880(0x1bd)}),_0x3b2b63(_0x3499cb,{'onClick':()=>_0x6826d[_0x222880(0x1f7)](),'children':_0x222880(0x1bc)})]});}function je(_0xa631fb){var _0x251bd9=_0xa9c041;const {coordinator:_0x45aae0}=_0xa631fb;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63('div',{'className':_0x251bd9(0x228),'children':_0x251bd9(0x208)}),_0x3b2b63(_0x3499cb,{'variant':'text','onClick':()=>_0x45aae0[_0x251bd9(0x1c3)](),'children':_0x251bd9(0x1c2)})]});}function Ue(_0x7018c3){var _0xbb4084=_0xa9c041;const {coordinator:_0x303150}=_0x7018c3;return _0x125a74(_0x5814ff,{'children':[_0x3b2b63(_0xbb4084(0x1e1),{'className':_0xbb4084(0x228),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2b63(_0x3499cb,{'variant':_0xbb4084(0x1b8),'onClick':()=>_0x303150[_0xbb4084(0x211)](),'children':_0xbb4084(0x1ab)})]});}function Ve(){var _0x114227=_0xa9c041;return _0x3b2b63(_0x5814ff,{'children':_0x114227(0x1a1)});}var Me=Object[_0xa9c041(0x224)],ke=(_0x4c35aa,_0x14af1d,_0x4b97a3,_0x48534c)=>{var _0x4505b4=_0xa9c041;for(var _0x2442d7=_0x48534c>0x1?void 0x0:_0x48534c?Me(_0x14af1d,_0x4b97a3):_0x14af1d,_0x29b363=_0x4c35aa[_0x4505b4(0x1cb)]-0x1,_0xe58990;_0x29b363>=0x0;_0x29b363--)(_0xe58990=_0x4c35aa[_0x29b363])&&(_0x2442d7=_0xe58990(_0x2442d7)||_0x2442d7);return _0x2442d7;},$=(_0x3446a0,_0xa90b73)=>(_0xd80845,_0xcb46f9)=>_0xa90b73(_0xd80845,_0xcb46f9,_0x3446a0);let b=class extends _0xd9f3e0{constructor(_0x4f05ae,_0x1d4186){var _0x4efdb4=_0xa9c041;super(),this[_0x4efdb4(0x18e)]=_0x4f05ae,this[_0x4efdb4(0x1f2)]=_0x1d4186,this[_0x4efdb4(0x199)]();}[_0xa9c041(0x199)](){var _0xe32682=_0xa9c041;this[_0xe32682(0x1ce)](this['_uiPartsService'][_0xe32682(0x1cf)](_0x15986a[_0xe32682(0x1df)],()=>_0x312e3a(Te,this[_0xe32682(0x18e)])));}};b=ke([$(0x0,_0x5e03cc(_0x249d07)),$(0x1,_0x677b9)],b);function _0x472c(){var _0x5792d6=['replace','entries','memberID','mask','apply','1505870hNQhVF','IDLE','trim','_reporters','current','currentColor','getOwnPropertyDescriptor','presenter','getMemberID','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','use','executeCommand','_startLiveShareCoordinator','not-following','getTypeOfUnitDisposed$','defs','1nAWexn','complete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','set','FOLLOWING','onStarting','pipe','univer-size-4','concat','_univerInstanceService','toString','operations','string','33kgksdf','defIds','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','_status','_init','2912799QAfczu','LIVESHARE_NEW_HOST','displayName','_injector','NOT_FOLLOWING','_handleTerminate','init','UNIVER_SHEET','hasOwnProperty','call','button','_stopPresenting','type','963ZTpwnf','_mountLiveShare','registerSharedOperation','UniverIcon','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','subscribe','_handleOnline','delete','You\x27are\x20offline.','_startFollowing','status$','svg','has','symbol','extend','map','_handleOffline','_unitID','Stop\x20presenting','10084680dHXqqk','getLiveShareCoordinator','1266CTYRoz','getCurrentTypeOfUnit$','evenodd','url(#$1','getConfig','_commandService','1em','idSuffix','getInitialStates','path','default','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','indexOf','dispose','Stop\x20following','You\x27re\x20following\x20the\x20presenter','_beIdle','requireSession','random','http://www.w3.org/2000/svg','Start\x20following','startFollowing','offline','_collabSessionService','getTypeOfUnitAdded$','following','_handleNewChangeSets','OFFLINE','clear','length','values','event$','disposeWithMe','registerComponent','getOwnPropertySymbols','onRendered','attrs','_config','_status$','registerInitialStateReporter','LIVESHARE_TERMINATE','presenting','stringify','from','3241342bRdWXV','_sharedOperations','icon','function','getValue','HEADER_MENU','tag','div','xlink:href','ONLINE','_fetchOperations','substring','_handleOperation','0\x200\x2017\x2017','LIVESHARE_OPERATION','_startPresenting','defineProperty','forEach','assign','live-share.config','shouldShareOperation','_entities','then','_presenter','_uiPartsService','NEW_CHANGESETS','getUnitId','setConfig','PRESENTING','stopFollowing','sessionStatus$','LIVESHARE_REQUEST_HOST','_commandDisposable','Start','send','prototype','_collabSession','_stopFollowing','get','_liveShareService','69310qXjXLA','createInstance','data','LIVESHARE_FETCH_OPERATIONS','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','_handleNewHost','749gAhMIE','_configService','children','4884288zdgLWM','asObservable','fill','stopPresenting','className','idle','add','find','next','4xsJyRO','parse'];_0x472c=function(){return _0x5792d6;};return _0x472c();}function _0x186a(_0x5ca346,_0x9b1ad8){var _0x472c64=_0x472c();return _0x186a=function(_0x186a35,_0x5418da){_0x186a35=_0x186a35-0x178;var _0x2421ff=_0x472c64[_0x186a35];return _0x2421ff;},_0x186a(_0x5ca346,_0x9b1ad8);}var Ge=Object[_0xa9c041(0x1ea)],We=Object[_0xa9c041(0x224)],Ye=(_0x3ea0a5,_0x1672a6,_0x2dfb9d)=>_0x1672a6 in _0x3ea0a5?Ge(_0x3ea0a5,_0x1672a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dfb9d}):_0x3ea0a5[_0x1672a6]=_0x2dfb9d,Be=(_0x5bff06,_0x1c5c8,_0x195d32,_0x1d1349)=>{for(var _0x4bf29d=_0x1d1349>0x1?void 0x0:_0x1d1349?We(_0x1c5c8,_0x195d32):_0x1c5c8,_0x3c91e6=_0x5bff06['length']-0x1,_0x451e28;_0x3c91e6>=0x0;_0x3c91e6--)(_0x451e28=_0x5bff06[_0x3c91e6])&&(_0x4bf29d=_0x451e28(_0x4bf29d)||_0x4bf29d);return _0x4bf29d;},F=(_0x51683f,_0x2742c2)=>(_0x13e59a,_0x264dfe)=>_0x2742c2(_0x13e59a,_0x264dfe,_0x51683f),J=(_0x4dc4cd,_0x45b7e4,_0x339720)=>Ye(_0x4dc4cd,typeof _0x45b7e4!=_0xa9c041(0x1a6)?_0x45b7e4+'':_0x45b7e4,_0x339720);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x3e037f{constructor(_0x55d4ab=T,_0x279942,_0x123347){var _0x22f638=_0xa9c041;super(),this[_0x22f638(0x1d3)]=_0x55d4ab,this[_0x22f638(0x18e)]=_0x279942,this[_0x22f638(0x20c)]=_0x123347;const {..._0xaa7402}=_0x48fed9({},T,this[_0x22f638(0x1d3)]);this['_configService'][_0x22f638(0x1f5)](Oe,_0xaa7402);}[_0xa9c041(0x17e)](){var _0x5c26b6=_0xa9c041;_0x414f55(this['_injector'],_0x4fa646([[L],[I],[m],[b]],this[_0x5c26b6(0x1d3)]['override'])),_0x1f4650(this[_0x5c26b6(0x18e)],[[m]]);}[_0xa9c041(0x1d1)](){_0x1f4650(this['_injector'],[[b]]);}};J(O,_0xa9c041(0x197),_0x2647b1[_0xa9c041(0x207)]),J(O,'pluginName',Ze),O=Be([_0x21db47(_0x386e00),F(0x1,_0x5e03cc(_0x249d07)),F(0x2,_0x55ad57)],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 _0x30b3(_0x1236d7,_0x5c9075){var _0x1d0423=_0x1d04();return _0x30b3=function(_0x30b376,_0x490239){_0x30b376=_0x30b376-0x65;var _0x2faa77=_0x1d0423[_0x30b376];return _0x2faa77;},_0x30b3(_0x1236d7,_0x5c9075);}function _0x1d04(){var _0x3d5e1b=['from','createElement','Dropdown','_startLiveShareCoordinator','_status','SAME_OPERATION_SHARE_INTERVAL','getOwnPropertyDescriptor','toDisposable','presenting','sessionStatus$','div','onCommandExecuted','Fragment','setConfig','next','function','_unitID','mutations','Button','registerInitialStateReporter','IUIPartsService','_beIdle','PRESENTING','_stopPresenting','subscribe','OFFLINE','3VYOkAB','includes','tag','useRef','text','symbol','getCurrentTypeOfUnit$','@univerjs/ui','_status$','_liveShareService','dispose$','getOwnPropertySymbols','IUniverInstanceService','current','NEW_CHANGESETS','useEffect','jsx','trim','button','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','pipe','@univerjs/design','univer-size-4','1593046chWvvy','_mountLiveShare','_handleOperation','DisposableCollection','registerSharedOperation','_startPresenting','1265204odNJIG','substring','_reporters','following','stringify','sheet','colorChannel1','ICommandService','Plugin','UniverProCollaboration','dispose','BehaviorSubject','IConfigService','1798512mFAVLP','reverse','You\x27are\x20offline.','Inject','ONLINE','operations','getMemberID','getUnitId','url(#$1','startFollowing','mergeOverrideWithDependencies','map','_uiPartsService','getInitialStates','displayName','Present\x20this\x20document','LiveShareController','LiveShareIcon','createInstance','assign','_sharedOperations','react','1em','@univerjs-pro/collaboration-client','concat','presenter','not-following','_commandService','Injector','event$','path','UniverInstanceType','attrs','You\x27re\x20presenting\x20the\x20document','20999358SLicPx','toString','_handleTerminate','_collabSession','delete','pluginName','className','RxDisposable','hasOwnProperty','SetScrollOperation','UniverSheetsUi','FOLLOWING','params','UniverCore','idle','call','univerjs-icon\x20univerjs-icon-','use','DesktopLiveShareController','status$','onStarting','LiveShareService','_handleNewChangeSets','get','disposeWithMe','useState','add','useObservable','_univerInstanceService','forEach','then','LiveShareStatus','parseProtocolChangeset','unsubscribe','apply','string','live-share.config','_config','_startFollowing','@univerjs/core','UniverProCollaborationClient','children','UniverUi','NOT_FOLLOWING','getConfig','14usOoGP','defIds','LiveShareCoordinator','currentColor','data','touchDependencies','xlink:href','991158eYrBoB','connectInjector','executeCommand','exports','_injector','object','CollaborationEvent','mask','_collabSessionService','amd','_stopFollowing','Disposable','length','offline','rxjs/operators','idSuffix','defineProperty','2151966gQzygQ','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','entries','jsxs','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','_entities','values','CollaborationSessionService','UniverProLiveShare','svg','none','tryStartPresenting','asObservable','init','getTypeOfUnitAdded$','stopPresenting','icon','send','_handleOnline','has','SetWorksheetActiveOperation','LIVESHARE_NEW_HOST','rxjs','LIVESHARE_OPERATION','set','UniverCollaborationClientPlugin','forwardRef','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','getValue','stopFollowing','prototype','UniverSheets','end','unitId','You\x27re\x20not\x20following\x20the\x20presenter','useDependency','_fetchOperations','_presenter','shouldShareOperation','getTypeOfUnitDisposed$','live-share-icon','replace','6172795PEBsiu','_commandDisposable','requireSession','IDLE','UniverLiveSharePlugin','takeUntil','fill','evenodd','_init','find','onRendered','_configService','merge','react/jsx-runtime','type'];_0x1d04=function(){return _0x3d5e1b;};return _0x1d04();}(function(_0x236ddf,_0x5a8703){var _0x123509=_0x30b3,_0x501dc9=_0x236ddf();while(!![]){try{var _0x356c7b=-parseInt(_0x123509(0x80))/0x1+parseInt(_0x123509(0xe9))/0x2+parseInt(_0x123509(0x69))/0x3*(parseInt(_0x123509(0x86))/0x4)+-parseInt(_0x123509(0x127))/0x5+-parseInt(_0x123509(0xfa))/0x6*(-parseInt(_0x123509(0xe2))/0x7)+-parseInt(_0x123509(0x93))/0x8+parseInt(_0x123509(0xb5))/0x9;if(_0x356c7b===_0x5a8703)break;else _0x501dc9['push'](_0x501dc9['shift']());}catch(_0x45f018){_0x501dc9['push'](_0x501dc9['shift']());}}}(_0x1d04,0xc5c3d),function(_0x152441,_0x3164f2){var _0x2a15f9=_0x30b3;typeof exports==_0x2a15f9(0xee)&&typeof module<'u'?_0x3164f2(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==_0x2a15f9(0x145)&&define[_0x2a15f9(0xf2)]?define([_0x2a15f9(0xec),_0x2a15f9(0xaa),_0x2a15f9(0xdc),'@univerjs/sheets','@univerjs/sheets-ui',_0x2a15f9(0x70),_0x2a15f9(0x134),_0x2a15f9(0x7e),_0x2a15f9(0xa8),'@univerjs-pro/collaboration','rxjs',_0x2a15f9(0xf7)],_0x3164f2):(_0x152441=typeof globalThis<'u'?globalThis:_0x152441||self,_0x3164f2(_0x152441[_0x2a15f9(0x104)]={},_0x152441[_0x2a15f9(0xdd)],_0x152441[_0x2a15f9(0xc2)],_0x152441[_0x2a15f9(0x11c)],_0x152441[_0x2a15f9(0xbf)],_0x152441[_0x2a15f9(0xdf)],_0x152441['React'],_0x152441['UniverDesign'],_0x152441['React'],_0x152441[_0x2a15f9(0x8f)],_0x152441[_0x2a15f9(0x112)],_0x152441[_0x2a15f9(0x112)]['operators']));}(this,function(_0x992e75,_0x407bf9,_0x2a0659,_0x5c4bb,_0x4b8534,_0x54f9f5,_0x2e1246,_0x376dc6,_0x1c9c10,_0x5f26fd,_0x35b864,_0x473306){'use strict';var _0x394e51=_0x30b3;var _0x3b6e70=Object[_0x394e51(0xf9)],_0x522c0a=(_0x49ddc0,_0x531dff,_0x5f2501)=>_0x531dff in _0x49ddc0?_0x3b6e70(_0x49ddc0,_0x531dff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f2501}):_0x49ddc0[_0x531dff]=_0x5f2501,_0x4fcd73=(_0x4d9c73,_0x3c557a,_0x20305f)=>_0x522c0a(_0x4d9c73,typeof _0x3c557a!=_0x394e51(0x6e)?_0x3c557a+'':_0x3c557a,_0x20305f);const _0x46623b=_0x394e51(0xd9),_0x472ae3={};class _0x124238 extends _0x2a0659[_0x394e51(0xf4)]{constructor(){var _0x7d5e73=_0x394e51;super(...arguments),_0x4fcd73(this,'_sharedOperations',new Set()),_0x4fcd73(this,_0x7d5e73(0x88),new Set());}[_0x394e51(0x84)](_0x45b076){var _0x44e757=_0x394e51;return this[_0x44e757(0xa7)][_0x44e757(0xcf)](_0x45b076),_0x2a0659[_0x44e757(0x13d)](()=>this[_0x44e757(0xa7)][_0x44e757(0xb9)](_0x45b076));}[_0x394e51(0x149)](_0x10a6dc){var _0x4e8346=_0x394e51;return this[_0x4e8346(0x88)]['add'](_0x10a6dc),_0x2a0659[_0x4e8346(0x13d)](()=>this['_reporters'][_0x4e8346(0xb9)](_0x10a6dc));}[_0x394e51(0x123)](_0x1a2edf){var _0x4614f8=_0x394e51;return this[_0x4614f8(0xa7)][_0x4614f8(0x10f)](_0x1a2edf);}[_0x394e51(0xa0)](_0x586578){var _0x274251=_0x394e51;return Array[_0x274251(0x136)](this[_0x274251(0x88)])['map'](_0x4e8bfd=>_0x4e8bfd(_0x586578));}}var _0x2af4cb=Object[_0x394e51(0x13c)],_0x37a8d6=(_0x339a1f,_0x48d3be,_0x2259dd,_0x474e2c)=>{for(var _0x5b31fe=_0x474e2c>0x1?void 0x0:_0x474e2c?_0x2af4cb(_0x48d3be,_0x2259dd):_0x48d3be,_0x3c9658=_0x339a1f['length']-0x1,_0x45c360;_0x3c9658>=0x0;_0x3c9658--)(_0x45c360=_0x339a1f[_0x3c9658])&&(_0x5b31fe=_0x45c360(_0x5b31fe)||_0x5b31fe);return _0x5b31fe;},_0x21d9c8=(_0x19b41c,_0x5f56ea)=>(_0x1b13a,_0x4cfbe8)=>_0x5f56ea(_0x1b13a,_0x4cfbe8,_0x19b41c);let _0x546892=class extends _0x2a0659[_0x394e51(0xf4)]{constructor(_0x3d75f0){var _0x569cfc=_0x394e51;super(),this[_0x569cfc(0x72)]=_0x3d75f0,this[_0x569cfc(0x12f)]();}[_0x394e51(0x12f)](){var _0x5d26c6=_0x394e51;[_0x4b8534['SetZoomRatioOperation']['id'],_0x4b8534[_0x5d26c6(0xbe)]['id'],_0x5c4bb[_0x5d26c6(0x110)]['id']][_0x5d26c6(0xd2)](_0x3c956a=>{var _0x1f8aa3=_0x5d26c6;this[_0x1f8aa3(0xcd)](this[_0x1f8aa3(0x72)][_0x1f8aa3(0x84)](_0x3c956a));});}};_0x546892=_0x37a8d6([_0x21d9c8(0x0,_0x2a0659[_0x394e51(0x96)](_0x124238))],_0x546892);var _0x48c753=function(){var _0x5d84c7=_0x394e51;return _0x48c753=Object[_0x5d84c7(0xa6)]||function(_0x5a03be){var _0x21b853=_0x5d84c7;for(var _0x2d1b94,_0x365e63=0x1,_0x4a1f1b=arguments[_0x21b853(0xf5)];_0x365e63<_0x4a1f1b;_0x365e63++){_0x2d1b94=arguments[_0x365e63];for(var _0x3a17f6 in _0x2d1b94)Object[_0x21b853(0x11b)]['hasOwnProperty'][_0x21b853(0xc4)](_0x2d1b94,_0x3a17f6)&&(_0x5a03be[_0x3a17f6]=_0x2d1b94[_0x3a17f6]);}return _0x5a03be;},_0x48c753[_0x5d84c7(0xd7)](this,arguments);},_0x3e3044=function(_0x127adb,_0x3e9a01){var _0x6d6823=_0x394e51,_0x47469c={};for(var _0x4efd33 in _0x127adb)Object[_0x6d6823(0x11b)][_0x6d6823(0xbd)][_0x6d6823(0xc4)](_0x127adb,_0x4efd33)&&_0x3e9a01['indexOf'](_0x4efd33)<0x0&&(_0x47469c[_0x4efd33]=_0x127adb[_0x4efd33]);if(_0x127adb!=null&&typeof Object['getOwnPropertySymbols']==_0x6d6823(0x145)){for(var _0x44cacf=0x0,_0x4efd33=Object[_0x6d6823(0x74)](_0x127adb);_0x44cacf<_0x4efd33[_0x6d6823(0xf5)];_0x44cacf++)_0x3e9a01['indexOf'](_0x4efd33[_0x44cacf])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x6d6823(0xc4)](_0x127adb,_0x4efd33[_0x44cacf])&&(_0x47469c[_0x4efd33[_0x44cacf]]=_0x127adb[_0x4efd33[_0x44cacf]]);}return _0x47469c;},_0x52a317=_0x1c9c10[_0x394e51(0x116)](function(_0x12ba41,_0x5dbeca){var _0x481f54=_0x394e51,_0x199fe2=_0x12ba41[_0x481f54(0x10c)],_0x49503f=_0x12ba41['id'],_0x39a6a8=_0x12ba41[_0x481f54(0xbb)],_0x472b6e=_0x12ba41['extend'],_0x3269bd=_0x3e3044(_0x12ba41,['icon','id',_0x481f54(0xbb),'extend']),_0x5379de=_0x481f54(0xc5)[_0x481f54(0xab)](_0x49503f,'\x20')[_0x481f54(0xab)](_0x39a6a8||'')[_0x481f54(0x7a)](),_0x2f93b3=_0x1c9c10[_0x481f54(0x6c)]('_'[_0x481f54(0xab)](_0x17b610()));return _0x14cd9a(_0x199fe2,''['concat'](_0x49503f),{'defIds':_0x199fe2[_0x481f54(0xe3)],'idSuffix':_0x2f93b3['current']},_0x48c753({'ref':_0x5dbeca,'className':_0x5379de},_0x3269bd),_0x472b6e);});function _0x14cd9a(_0x460c3e,_0x5fe1bc,_0x3507b5,_0x273f4,_0x90ea5f){var _0x8775c5=_0x394e51;return _0x1c9c10[_0x8775c5(0x137)](_0x460c3e[_0x8775c5(0x6b)],_0x48c753(_0x48c753({'key':_0x5fe1bc},_0x107225(_0x460c3e,_0x3507b5,_0x90ea5f)),_0x273f4),(_0x391c12(_0x460c3e,_0x3507b5)[_0x8775c5(0xde)]||[])[_0x8775c5(0x9e)](function(_0x2f494d,_0x3ff651){var _0x3172a2=_0x8775c5;return _0x14cd9a(_0x2f494d,''[_0x3172a2(0xab)](_0x5fe1bc,'-')[_0x3172a2(0xab)](_0x460c3e['tag'],'-')['concat'](_0x3ff651),_0x3507b5,void 0x0,_0x90ea5f);}));}function _0x107225(_0x4767c9,_0x26ba23,_0x3b8402){var _0x179221=_0x394e51,_0x163353=_0x48c753({},_0x4767c9[_0x179221(0xb3)]);_0x3b8402!=null&&_0x3b8402[_0x179221(0x8c)]&&_0x163353[_0x179221(0x12d)]===_0x179221(0x8c)&&(_0x163353['fill']=_0x3b8402[_0x179221(0x8c)]),_0x4767c9[_0x179221(0x6b)]===_0x179221(0xf0)&&_0x163353['id']&&(_0x163353['id']=_0x163353['id']+_0x26ba23['idSuffix']),Object[_0x179221(0xfe)](_0x163353)[_0x179221(0xd2)](function(_0x4fe925){var _0x3d85fc=_0x179221,_0x33749e=_0x4fe925[0x0],_0x5c8a89=_0x4fe925[0x1];_0x33749e==='mask'&&typeof _0x5c8a89=='string'&&(_0x163353[_0x33749e]=_0x5c8a89['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3d85fc(0xab)](_0x26ba23[_0x3d85fc(0xf8)],')')));});var _0x3fd5de=_0x26ba23[_0x179221(0xe3)];return!_0x3fd5de||_0x3fd5de[_0x179221(0xf5)]===0x0||(_0x4767c9[_0x179221(0x6b)]===_0x179221(0xc6)&&_0x163353[_0x179221(0xe8)]&&(_0x163353[_0x179221(0xe8)]=_0x163353['xlink:href']+_0x26ba23[_0x179221(0xf8)]),Object['entries'](_0x163353)[_0x179221(0xd2)](function(_0x2e1e78){var _0x4819aa=_0x179221,_0x37f126=_0x2e1e78[0x0],_0x4bd7f0=_0x2e1e78[0x1];typeof _0x4bd7f0=='string'&&(_0x163353[_0x37f126]=_0x4bd7f0[_0x4819aa(0x126)](/url\(#(.*)\)/,_0x4819aa(0x9b)[_0x4819aa(0xab)](_0x26ba23[_0x4819aa(0xf8)],')')));})),_0x163353;}function _0x391c12(_0x4a0792,_0x5205fe){var _0x23a7ea=_0x394e51,_0x5ad613,_0x54504d=_0x5205fe[_0x23a7ea(0xe3)];return!_0x54504d||_0x54504d[_0x23a7ea(0xf5)]===0x0?_0x4a0792:_0x4a0792['tag']==='defs'&&(!((_0x5ad613=_0x4a0792[_0x23a7ea(0xde)])===null||_0x5ad613===void 0x0)&&_0x5ad613[_0x23a7ea(0xf5)])?_0x48c753(_0x48c753({},_0x4a0792),{'children':_0x4a0792[_0x23a7ea(0xde)][_0x23a7ea(0x9e)](function(_0x57ac8a){var _0x1b98e8=_0x23a7ea;return typeof _0x57ac8a['attrs']['id']==_0x1b98e8(0xd8)&&_0x54504d&&_0x54504d[_0x1b98e8(0x6a)](_0x57ac8a[_0x1b98e8(0xb3)]['id'])?_0x48c753(_0x48c753({},_0x57ac8a),{'attrs':_0x48c753(_0x48c753({},_0x57ac8a['attrs']),{'id':_0x57ac8a[_0x1b98e8(0xb3)]['id']+_0x5205fe[_0x1b98e8(0xf8)]})}):_0x57ac8a;})}):_0x4a0792;}function _0x17b610(){var _0x359338=_0x394e51;return Math['random']()[_0x359338(0xb6)](0x24)[_0x359338(0x87)](0x2,0x8);}_0x52a317[_0x394e51(0xa1)]='UniverIcon';var _0x1ac2ce={'tag':_0x394e51(0x105),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x394e51(0x106),'viewBox':_0x394e51(0xfd),'width':_0x394e51(0xa9),'height':_0x394e51(0xa9)},'children':[{'tag':_0x394e51(0xb1),'attrs':{'fill':_0x394e51(0xe5),'d':_0x394e51(0x100)}},{'tag':_0x394e51(0xb1),'attrs':{'fill':_0x394e51(0xe5),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x394e51(0x12e)}}]},_0x2511d2=_0x1c9c10[_0x394e51(0x116)](function(_0x2ce0e9,_0x4dcc1a){var _0x355071=_0x394e51;return _0x1c9c10[_0x355071(0x137)](_0x52a317,Object[_0x355071(0xa6)]({},_0x2ce0e9,{'id':_0x355071(0x125),'ref':_0x4dcc1a,'icon':_0x1ac2ce}));});_0x2511d2[_0x394e51(0xa1)]=_0x394e51(0xa4);var _0xca530b=Object[_0x394e51(0x13c)],_0x3ab89e=(_0x5b0594,_0x337e7e,_0x481b0d,_0x21c0e4)=>{for(var _0x59596c=_0x21c0e4>0x1?void 0x0:_0x21c0e4?_0xca530b(_0x337e7e,_0x481b0d):_0x337e7e,_0x24a255=_0x5b0594['length']-0x1,_0x21555c;_0x24a255>=0x0;_0x24a255--)(_0x21555c=_0x5b0594[_0x24a255])&&(_0x59596c=_0x21555c(_0x59596c)||_0x59596c);return _0x59596c;},_0x273b8f=(_0x1949b5,_0x178aae)=>(_0x16f794,_0x11bea9)=>_0x178aae(_0x16f794,_0x11bea9,_0x1949b5);_0x992e75[_0x394e51(0xa3)]=class extends _0x2a0659[_0x394e51(0xbc)]{constructor(_0xdbf924,_0x53fafd,_0x3d0b22){var _0x10d0cd=_0x394e51;super(),_0x4fcd73(this,'_entities',new Map()),(this[_0x10d0cd(0xd1)]=_0xdbf924,this[_0x10d0cd(0xed)]=_0x53fafd,this['_collabSessionService']=_0x3d0b22,this[_0x10d0cd(0x12f)]());}async['getLiveShareCoordinator'](_0x168972){var _0x2043a1=_0x394e51;return this[_0x2043a1(0x101)][_0x2043a1(0x10f)](_0x168972)||await this[_0x2043a1(0x139)](_0x168972),this[_0x2043a1(0x101)][_0x2043a1(0xcc)](_0x168972);}['_init'](){var _0x23cec9=_0x394e51;this[_0x23cec9(0xd1)][_0x23cec9(0x10a)](_0x2a0659[_0x23cec9(0xb2)]['UNIVER_SHEET'])[_0x23cec9(0x7d)](_0x473306[_0x23cec9(0x12c)](this[_0x23cec9(0x73)]))[_0x23cec9(0x67)](async _0x2bf557=>{var _0x356553=_0x23cec9;const _0x5dd1b0=_0x2bf557[_0x356553(0x9a)]();this[_0x356553(0x101)][_0x356553(0x10f)](_0x5dd1b0)||this[_0x356553(0x139)](_0x5dd1b0);}),this[_0x23cec9(0xd1)][_0x23cec9(0x124)](_0x2a0659['UniverInstanceType'][_0x23cec9(0x118)])[_0x23cec9(0x7d)](_0x473306[_0x23cec9(0x12c)](this[_0x23cec9(0x73)]))[_0x23cec9(0x67)](_0x1aa5a2=>{var _0x3bdccc=_0x23cec9;const _0x29ee13=_0x1aa5a2[_0x3bdccc(0x9a)](),_0x52de0d=this[_0x3bdccc(0x101)][_0x3bdccc(0xcc)](_0x29ee13);_0x52de0d==null||_0x52de0d[_0x3bdccc(0x90)]();});}async[_0x394e51(0x139)](_0x500cc1){var _0x5916f2=_0x394e51;const _0xf0adc9=await this[_0x5916f2(0xf1)][_0x5916f2(0x129)](_0x500cc1),_0x248e17=this[_0x5916f2(0xed)][_0x5916f2(0xa5)](_0x992e75[_0x5916f2(0xe4)],_0x500cc1,_0xf0adc9);return _0x248e17[_0x5916f2(0x109)](),this['_entities'][_0x5916f2(0x114)](_0x500cc1,_0x248e17),_0x248e17;}},_0x992e75[_0x394e51(0xa3)]=_0x3ab89e([_0x273b8f(0x0,_0x2a0659[_0x394e51(0x75)]),_0x273b8f(0x1,_0x2a0659[_0x394e51(0x96)](_0x2a0659['Injector'])),_0x273b8f(0x2,_0x2a0659['Inject'](_0x407bf9[_0x394e51(0x103)]))],_0x992e75[_0x394e51(0xa3)]);var _0x54f2b0=(_0x2cdc66=>(_0x2cdc66[_0x394e51(0x68)]=_0x394e51(0xf6),_0x2cdc66['IDLE']=_0x394e51(0xc3),_0x2cdc66[_0x394e51(0xc0)]=_0x394e51(0x89),_0x2cdc66['NOT_FOLLOWING']='not-following',_0x2cdc66['PRESENTING']='presenting',_0x2cdc66))(_0x54f2b0||{});const _0x5db3f3=_0x394e51(0x13b),_0x3c6b0e=0xc8;_0x992e75[_0x394e51(0xe4)]=class extends _0x2a0659[_0x394e51(0xbc)]{constructor(_0x272b1a,_0x1dc3db,_0x4b57ed,_0x2b2c99,_0x490617){var _0x5a06d0=_0x394e51;super(),_0x4fcd73(this,_0x5a06d0(0x71),new _0x35b864[(_0x5a06d0(0x91))]('idle')),_0x4fcd73(this,_0x5a06d0(0xc8),this['_status$'][_0x5a06d0(0x108)]()),_0x4fcd73(this,_0x5a06d0(0x12f),!0x1),_0x4fcd73(this,_0x5a06d0(0x128),null),_0x4fcd73(this,_0x5a06d0(0x122),null),(this['_unitID']=_0x272b1a,this[_0x5a06d0(0xb8)]=_0x1dc3db,this[_0x5a06d0(0x132)]=_0x4b57ed,this['_liveShareService']=_0x2b2c99,this[_0x5a06d0(0xae)]=_0x490617);}get[_0x394e51(0x13a)](){var _0x32520d=_0x394e51;return this[_0x32520d(0x71)][_0x32520d(0x119)]();}[_0x394e51(0x90)](){var _0x49252a=_0x394e51,_0x1f7ad1;(_0x1f7ad1=this[_0x49252a(0x128)])==null||_0x1f7ad1[_0x49252a(0x90)](),this[_0x49252a(0x71)][_0x49252a(0x144)](_0x49252a(0xc3)),this[_0x49252a(0x71)]['complete']();}[_0x394e51(0x109)](){var _0x482463=_0x394e51;this[_0x482463(0x12f)]||(this[_0x482463(0x12f)]=!0x0,this['_collabSession'][_0x482463(0x13f)][_0x482463(0x7d)](_0x473306[_0x482463(0x12c)](this['dispose$']))[_0x482463(0x67)](_0x48cbc=>{var _0x55cea1=_0x482463;switch(_0x48cbc){case _0x407bf9['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x407bf9['SessionStatus'][_0x55cea1(0x97)]:this[_0x55cea1(0x10e)]();break;}}),this[_0x482463(0xb8)][_0x482463(0xb0)][_0x482463(0x7d)](_0x473306['takeUntil'](this[_0x482463(0x73)]))[_0x482463(0x67)](_0x404772=>{var _0x2fbb21=_0x482463;const {eventID:_0x581a2d}=_0x404772;switch(_0x581a2d){case _0x5f26fd[_0x2fbb21(0xef)][_0x2fbb21(0x111)]:this['_handleNewHost'](_0x404772);break;case _0x5f26fd[_0x2fbb21(0xef)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x404772);break;case _0x5f26fd[_0x2fbb21(0xef)]['LIVESHARE_TERMINATE']:this[_0x2fbb21(0xb7)]();break;case _0x5f26fd['CollaborationEvent'][_0x2fbb21(0x77)]:this[_0x2fbb21(0xcb)](_0x404772);break;}}));}[_0x394e51(0x107)](){var _0x115cff=_0x394e51;this[_0x115cff(0xb8)][_0x115cff(0x10d)]({'eventID':_0x5f26fd[_0x115cff(0xef)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x115cff(0xb8)][_0x115cff(0x99)]()}},this['_unitID']);}['stopPresenting'](){var _0x49b585=_0x394e51;this[_0x49b585(0x13a)]===_0x49b585(0x13e)&&(this[_0x49b585(0x71)][_0x49b585(0x144)]('idle'),this['_collabSession'][_0x49b585(0x10d)]({'eventID':_0x5f26fd[_0x49b585(0xef)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x49b585(0x146)]}},this['_unitID']));}['startFollowing'](){var _0x352b65=_0x394e51;this[_0x352b65(0x13a)]===_0x352b65(0xad)&&(this['_status$'][_0x352b65(0x144)](_0x352b65(0x89)),this[_0x352b65(0xdb)]());}['stopFollowing'](){var _0x506953=_0x394e51;this[_0x506953(0x13a)]===_0x506953(0x89)&&this[_0x506953(0xf3)]();}['_handleNewHost'](_0x5196b6){var _0x331e6d=_0x394e51;const {presenter:_0x62ff8b}=_0x5196b6[_0x331e6d(0xe6)],_0x2af089=this[_0x331e6d(0xb8)][_0x331e6d(0x99)]();this[_0x331e6d(0x122)]=_0x62ff8b,_0x62ff8b===_0x2af089?(this[_0x331e6d(0xf3)](),this[_0x331e6d(0x85)]()):this[_0x331e6d(0x13a)]!==_0x331e6d(0xad)&&(this[_0x331e6d(0x66)](),this[_0x331e6d(0xdb)]());}[_0x394e51(0x121)](){var _0xe11ea4=_0x394e51;const _0x949a7={'eventID':_0x5f26fd[_0xe11ea4(0xef)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0xe11ea4(0x10d)](_0x949a7,this[_0xe11ea4(0x146)]);}[_0x394e51(0xb7)](){var _0x2b6dbf=_0x394e51;this[_0x2b6dbf(0x122)]=null,this['_status']!==_0x2b6dbf(0x13e)&&this[_0x2b6dbf(0x14b)]();}[_0x394e51(0xcb)](_0x421cce){var _0x22cf8f=_0x394e51;if(this[_0x22cf8f(0x13a)]===_0x22cf8f(0x89)&&this[_0x22cf8f(0x122)]===_0x421cce[_0x22cf8f(0xe6)]['memberID']){const _0x1c1c9f=_0x5f26fd[_0x22cf8f(0xd5)](_0x421cce[_0x22cf8f(0xe6)])[_0x22cf8f(0x147)][_0x22cf8f(0x94)]()[_0x22cf8f(0x130)](_0x2a6582=>_0x2a6582['id']===_0x5c4bb['InsertSheetMutation']['id']);if(_0x1c1c9f){const _0x3d8251=_0x1c1c9f[_0x22cf8f(0xc1)][_0x22cf8f(0x11e)],_0x5f25a6=_0x1c1c9f[_0x22cf8f(0xc1)][_0x22cf8f(0x8b)]['id'];setTimeout(()=>{var _0x1d5670=_0x22cf8f;this[_0x1d5670(0xae)][_0x1d5670(0xeb)](_0x5c4bb['SetWorksheetActiveOperation']['id'],{'unitId':_0x3d8251,'subUnitId':_0x5f25a6},{'fromCollab':!0x0});});}}}[_0x394e51(0x85)](){var _0x547249=_0x394e51;this['_status$'][_0x547249(0x144)](_0x547249(0x13e));const _0x3262ba=new Map(),_0x15b5f0=this['_commandDisposable']=new _0x2a0659[(_0x547249(0x83))]();_0x15b5f0[_0x547249(0xcf)](_0x2a0659[_0x547249(0x13d)](()=>{_0x3262ba['forEach'](_0x1b37cb=>_0x1b37cb['complete']()),_0x3262ba['clear']();})),_0x15b5f0[_0x547249(0xcf)](this[_0x547249(0xae)][_0x547249(0x141)](_0x4727e3=>{var _0x569fed=_0x547249,_0x5c6eed;if(_0x4727e3[_0x569fed(0x135)]!==_0x2a0659['CommandType']['OPERATION']||!this[_0x569fed(0x72)]['shouldShareOperation'](_0x4727e3['id']))return;const {id:_0x390fac}=_0x4727e3;let _0x344a38;_0x3262ba['has'](_0x390fac)?_0x344a38=_0x3262ba[_0x569fed(0xcc)](_0x390fac):(_0x344a38=new _0x35b864['Subject'](),_0x3262ba[_0x569fed(0x114)](_0x390fac,_0x344a38),_0x344a38[_0x569fed(0x7d)](_0x473306['throttleTime']((_0x5c6eed=this[_0x569fed(0x132)][_0x569fed(0xe1)](_0x5db3f3))!=null?_0x5c6eed:_0x3c6b0e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x569fed(0x67)](_0x237406=>{var _0x5ea677=_0x569fed;this[_0x5ea677(0xb8)][_0x5ea677(0x10d)]({'eventID':_0x5f26fd['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5ea677(0x146)],'operations':{[_0x237406['id']]:{'id':_0x237406['id'],'params':JSON['stringify'](_0x237406[_0x5ea677(0xc1)])}}}},this['_unitID']);})),_0x344a38['next'](_0x4727e3);})),this[_0x547249(0x72)][_0x547249(0xa0)](this['_unitID'])[_0x547249(0xd2)](_0x32f36f=>this['_collabSession']['send']({'eventID':_0x5f26fd[_0x547249(0xef)][_0x547249(0x113)],'data':{'unitID':this['_unitID'],'operations':{[_0x32f36f['id']]:{'id':_0x32f36f['id'],'params':JSON[_0x547249(0x8a)](_0x32f36f[_0x547249(0xc1)])}}}},this[_0x547249(0x146)]));}[_0x394e51(0x66)](){var _0x125eaf=_0x394e51,_0x27a412;this[_0x125eaf(0x71)][_0x125eaf(0x144)]('idle'),(_0x27a412=this[_0x125eaf(0x128)])==null||_0x27a412[_0x125eaf(0x90)](),this[_0x125eaf(0x128)]=null;}[_0x394e51(0xdb)](){var _0x5d9217=_0x394e51,_0x389c04;(_0x389c04=this['_commandDisposable'])==null||_0x389c04[_0x5d9217(0x90)](),this[_0x5d9217(0x71)][_0x5d9217(0x144)](_0x5d9217(0x89));}[_0x394e51(0x14b)](){var _0x5eccbc=_0x394e51,_0x3f8827;this[_0x5eccbc(0x71)]['next'](_0x5eccbc(0xc3)),(_0x3f8827=this[_0x5eccbc(0x128)])==null||_0x3f8827[_0x5eccbc(0x90)](),this[_0x5eccbc(0x128)]=null;}['_stopFollowing'](){var _0x47f44d=_0x394e51,_0x4770a4;this['_status$'][_0x47f44d(0x144)](_0x47f44d(0xad)),(_0x4770a4=this['_commandDisposable'])==null||_0x4770a4[_0x47f44d(0x90)]();}[_0x394e51(0x82)](_0x5eff13){var _0x504fc1=_0x394e51;if(['presenting',_0x504fc1(0xad),_0x504fc1(0xf6)][_0x504fc1(0x6a)](this[_0x504fc1(0x13a)])||!_0x5eff13[_0x504fc1(0xe6)]['presenter']||_0x5eff13[_0x504fc1(0xe6)][_0x504fc1(0xac)]===this[_0x504fc1(0xb8)][_0x504fc1(0x99)]())return;this[_0x504fc1(0x13a)]==='idle'&&this[_0x504fc1(0xdb)]();const _0x54f2cd=_0x5eff13[_0x504fc1(0xe6)][_0x504fc1(0x98)];Object[_0x504fc1(0x102)](_0x54f2cd)['forEach'](_0x2510be=>{var _0x446c02=_0x504fc1;this[_0x446c02(0xae)][_0x446c02(0xeb)](_0x2510be['id'],_0x2510be[_0x446c02(0xc1)]?JSON['parse'](_0x2510be[_0x446c02(0xc1)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5a1782=_0x394e51,_0x330384;this[_0x5a1782(0x71)][_0x5a1782(0x144)]('offline'),(_0x330384=this[_0x5a1782(0x128)])==null||_0x330384[_0x5a1782(0x90)]();}['_handleOnline'](){var _0x498ba0=_0x394e51;this['_status$']['next'](_0x498ba0(0xc3)),this[_0x498ba0(0x121)]();}},_0x992e75[_0x394e51(0xe4)]=_0x3ab89e([_0x273b8f(0x2,_0x2a0659[_0x394e51(0x92)]),_0x273b8f(0x3,_0x2a0659['Inject'](_0x124238)),_0x273b8f(0x4,_0x2a0659[_0x394e51(0x8d)])],_0x992e75['LiveShareCoordinator']);function _0x228226(){var _0x55ac0a=_0x394e51;const _0x1556f7=_0x54f9f5[_0x55ac0a(0x120)](_0x992e75[_0x55ac0a(0xa3)]),_0x16af9c=_0x54f9f5[_0x55ac0a(0x120)](_0x2a0659['IUniverInstanceService']),_0x1b5ab8=_0x54f9f5[_0x55ac0a(0xd0)](()=>_0x16af9c[_0x55ac0a(0x6f)](_0x2a0659[_0x55ac0a(0xb2)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x9e7ba0,_0x103a09]=_0x1c9c10[_0x55ac0a(0xce)](null),[_0x154bd9,_0x4031af]=_0x1c9c10[_0x55ac0a(0xce)](_0x54f2b0[_0x55ac0a(0x12a)]),_0x1a216a=_0x1c9c10[_0x55ac0a(0x6c)](null);return _0x1c9c10[_0x55ac0a(0x78)](()=>(_0x1b5ab8&&_0x1556f7['getLiveShareCoordinator'](_0x1b5ab8[_0x55ac0a(0x9a)]())[_0x55ac0a(0xd3)](_0x3c727d=>{var _0x1d0d2b=_0x55ac0a;_0x103a09(_0x3c727d),_0x1a216a[_0x1d0d2b(0x76)]=_0x3c727d[_0x1d0d2b(0xc8)]['subscribe'](_0x49b856=>{_0x4031af(_0x49b856);});}),()=>{var _0x5d73fd=_0x55ac0a,_0x51beed;(_0x51beed=_0x1a216a['current'])==null||_0x51beed[_0x5d73fd(0xd6)](),_0x1a216a['current']=null;}),[_0x1b5ab8,_0x1556f7]),_0x9e7ba0?_0x2e1246[_0x55ac0a(0x79)](_0x376dc6[_0x55ac0a(0x138)],{'align':_0x55ac0a(0x11d),'disabled':_0x154bd9===_0x54f2b0[_0x55ac0a(0x68)],'className':_0x55ac0a(0x7c),'overlay':_0x2e1246[_0x55ac0a(0x79)](_0x3e3ce5,{'status':_0x154bd9,'coordinator':_0x9e7ba0}),'children':_0x2e1246['jsx'](_0x55ac0a(0x7b),{'className':_0x376dc6['clsx'](_0x55ac0a(0xfc),{'univer-cursor-not-allowed':_0x154bd9===_0x54f2b0[_0x55ac0a(0x68)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x154bd9!==_0x54f2b0[_0x55ac0a(0x68)]}),'type':_0x55ac0a(0x7b),'children':_0x2e1246['jsx'](_0x2511d2,{'className':_0x55ac0a(0x7f)})})}):null;}function _0x3e3ce5(_0x46c878){var _0x3292e5=_0x394e51;const {status:_0x2ae28e,coordinator:_0x145f80}=_0x46c878;switch(_0x2ae28e){case _0x54f2b0['IDLE']:return _0x2e1246[_0x3292e5(0x79)](_0x13aec3,{'coordinator':_0x145f80});case _0x54f2b0['FOLLOWING']:return _0x2e1246[_0x3292e5(0x79)](_0x10ccd3,{'coordinator':_0x145f80});case _0x54f2b0[_0x3292e5(0xe0)]:return _0x2e1246[_0x3292e5(0x79)](_0x50ed54,{'coordinator':_0x145f80});case _0x54f2b0[_0x3292e5(0x68)]:return _0x2e1246[_0x3292e5(0x79)](_0x9a664f,{});case _0x54f2b0[_0x3292e5(0x65)]:return _0x2e1246[_0x3292e5(0x79)](_0x3743c9,{'coordinator':_0x145f80});default:return null;}}function _0x13aec3(_0x5e8f0d){var _0x3ad1d9=_0x394e51;const {coordinator:_0xf4964b}=_0x5e8f0d;return _0x2e1246[_0x3ad1d9(0xff)](_0x2e1246['Fragment'],{'children':[_0x2e1246[_0x3ad1d9(0x79)](_0x3ad1d9(0x140),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ad1d9(0xa2)}),_0x2e1246['jsx'](_0x376dc6['Button'],{'onClick':()=>_0xf4964b['tryStartPresenting'](),'children':'Start'})]});}function _0x10ccd3(_0x566dbe){var _0x519c49=_0x394e51;const {coordinator:_0xa4e200}=_0x566dbe;return _0x2e1246['jsxs'](_0x2e1246[_0x519c49(0x142)],{'children':[_0x2e1246[_0x519c49(0x79)]('div',{'className':_0x519c49(0xfb),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1246[_0x519c49(0x79)](_0x376dc6[_0x519c49(0x148)],{'onClick':()=>_0xa4e200[_0x519c49(0x11a)](),'children':'Stop\x20following'})]});}function _0x50ed54(_0x5dd2ee){var _0x315adb=_0x394e51;const {coordinator:_0x314025}=_0x5dd2ee;return _0x2e1246['jsxs'](_0x2e1246[_0x315adb(0x142)],{'children':[_0x2e1246[_0x315adb(0x79)](_0x315adb(0x140),{'className':_0x315adb(0xfb),'children':_0x315adb(0x11f)}),_0x2e1246['jsx'](_0x376dc6[_0x315adb(0x148)],{'variant':_0x315adb(0x6d),'onClick':()=>_0x314025[_0x315adb(0x9c)](),'children':'Start\x20following'})]});}function _0x3743c9(_0x3ed888){var _0x46ce2e=_0x394e51;const {coordinator:_0x133467}=_0x3ed888;return _0x2e1246[_0x46ce2e(0xff)](_0x2e1246[_0x46ce2e(0x142)],{'children':[_0x2e1246[_0x46ce2e(0x79)](_0x46ce2e(0x140),{'className':_0x46ce2e(0xfb),'children':_0x46ce2e(0xb4)}),_0x2e1246['jsx'](_0x376dc6[_0x46ce2e(0x148)],{'variant':'default','onClick':()=>_0x133467[_0x46ce2e(0x10b)](),'children':'Stop\x20presenting'})]});}function _0x9a664f(){var _0x5aab87=_0x394e51;return _0x2e1246[_0x5aab87(0x79)](_0x2e1246['Fragment'],{'children':_0x5aab87(0x95)});}var _0x5ad4db=Object[_0x394e51(0x13c)],_0x53b715=(_0x8453d3,_0x46699e,_0x244d7d,_0x16b17b)=>{var _0x1b0ea7=_0x394e51;for(var _0x390d8e=_0x16b17b>0x1?void 0x0:_0x16b17b?_0x5ad4db(_0x46699e,_0x244d7d):_0x46699e,_0x13cdff=_0x8453d3[_0x1b0ea7(0xf5)]-0x1,_0x2837f5;_0x13cdff>=0x0;_0x13cdff--)(_0x2837f5=_0x8453d3[_0x13cdff])&&(_0x390d8e=_0x2837f5(_0x390d8e)||_0x390d8e);return _0x390d8e;},_0x7cc5a0=(_0x43e728,_0x292760)=>(_0xb20b9a,_0x243367)=>_0x292760(_0xb20b9a,_0x243367,_0x43e728);_0x992e75[_0x394e51(0xc7)]=class extends _0x2a0659[_0x394e51(0xf4)]{constructor(_0x2b0d77,_0x61aa38){var _0x5e42f3=_0x394e51;super(),this[_0x5e42f3(0xed)]=_0x2b0d77,this[_0x5e42f3(0x9f)]=_0x61aa38,this['_mountLiveShare']();}[_0x394e51(0x81)](){var _0x5b82de=_0x394e51;this['disposeWithMe'](this[_0x5b82de(0x9f)]['registerComponent'](_0x54f9f5['BuiltInUIPart']['HEADER_MENU'],()=>_0x54f9f5[_0x5b82de(0xea)](_0x228226,this['_injector'])));}},_0x992e75['DesktopLiveShareController']=_0x53b715([_0x7cc5a0(0x0,_0x2a0659[_0x394e51(0x96)](_0x2a0659['Injector'])),_0x7cc5a0(0x1,_0x54f9f5[_0x394e51(0x14a)])],_0x992e75[_0x394e51(0xc7)]);var _0x1d8feb=Object[_0x394e51(0xf9)],_0x470637=Object[_0x394e51(0x13c)],_0x12f2ef=(_0x4cae02,_0x3b7092,_0x451a5b)=>_0x3b7092 in _0x4cae02?_0x1d8feb(_0x4cae02,_0x3b7092,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x451a5b}):_0x4cae02[_0x3b7092]=_0x451a5b,_0x445d1a=(_0x42a792,_0x55f28d,_0x3ac0e9,_0x3451a4)=>{var _0x5779cb=_0x394e51;for(var _0x4e6093=_0x3451a4>0x1?void 0x0:_0x3451a4?_0x470637(_0x55f28d,_0x3ac0e9):_0x55f28d,_0x1b2b2d=_0x42a792[_0x5779cb(0xf5)]-0x1,_0x149370;_0x1b2b2d>=0x0;_0x1b2b2d--)(_0x149370=_0x42a792[_0x1b2b2d])&&(_0x4e6093=_0x149370(_0x4e6093)||_0x4e6093);return _0x4e6093;},_0x46956c=(_0x513158,_0x1761c0)=>(_0x24650e,_0xb76bb)=>_0x1761c0(_0x24650e,_0xb76bb,_0x513158),_0x2e00ab=(_0x29dd41,_0x31a3b8,_0x2de58e)=>_0x12f2ef(_0x29dd41,typeof _0x31a3b8!=_0x394e51(0x6e)?_0x31a3b8+'':_0x31a3b8,_0x2de58e);const _0x1fe39b=_0x394e51(0x117);_0x992e75[_0x394e51(0x12b)]=class extends _0x2a0659[_0x394e51(0x8e)]{constructor(_0x1226f8=_0x472ae3,_0x12ac64,_0x3bfa95){var _0x14d5c1=_0x394e51;super(),this[_0x14d5c1(0xda)]=_0x1226f8,this[_0x14d5c1(0xed)]=_0x12ac64,this['_configService']=_0x3bfa95;const {..._0x29d1ad}=_0x2a0659[_0x14d5c1(0x133)]({},_0x472ae3,this[_0x14d5c1(0xda)]);this[_0x14d5c1(0x132)][_0x14d5c1(0x143)](_0x46623b,_0x29d1ad);}[_0x394e51(0xc9)](){var _0x5c1f39=_0x394e51;_0x2a0659['registerDependencies'](this[_0x5c1f39(0xed)],_0x2a0659[_0x5c1f39(0x9d)]([[_0x124238],[_0x992e75[_0x5c1f39(0xa3)]],[_0x546892],[_0x992e75[_0x5c1f39(0xc7)]]],this['_config']['override'])),_0x2a0659['touchDependencies'](this[_0x5c1f39(0xed)],[[_0x546892]]);}[_0x394e51(0x131)](){var _0x106cf0=_0x394e51;_0x2a0659[_0x106cf0(0xe7)](this['_injector'],[[_0x992e75[_0x106cf0(0xc7)]]]);}},_0x2e00ab(_0x992e75[_0x394e51(0x12b)],_0x394e51(0x135),_0x2a0659['UniverInstanceType']['UNIVER_UNKNOWN']),_0x2e00ab(_0x992e75[_0x394e51(0x12b)],_0x394e51(0xba),_0x1fe39b),_0x992e75[_0x394e51(0x12b)]=_0x445d1a([_0x2a0659['DependentOn'](_0x407bf9[_0x394e51(0x115)]),_0x46956c(0x1,_0x2a0659[_0x394e51(0x96)](_0x2a0659[_0x394e51(0xaf)])),_0x46956c(0x2,_0x2a0659[_0x394e51(0x92)])],_0x992e75[_0x394e51(0x12b)]),_0x992e75['LiveShare']=_0x228226,_0x992e75[_0x394e51(0xca)]=_0x124238,_0x992e75[_0x394e51(0xd4)]=_0x54f2b0,Object['defineProperty'](_0x992e75,Symbol['toStringTag'],{'value':'Module'});}));
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.202507131606",
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-client": "0.9.2-nightly.202507131606",
51
+ "@univerjs-pro/collaboration": "0.9.2-nightly.202507131606",
52
+ "@univerjs/design": "0.9.2-nightly.202507131606",
53
+ "@univerjs/core": "0.9.2-nightly.202507131606",
54
+ "@univerjs/ui": "0.9.2-nightly.202507131606",
55
+ "@univerjs/sheets": "0.9.2-nightly.202507131606",
56
+ "@univerjs/sheets-ui": "0.9.2-nightly.202507131606"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",