@univerjs-pro/live-share 0.6.10-nightly.202504101607 → 0.6.10-nightly.202504121606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x8f5fe7=_0x3f7a;(function(_0x5583f2,_0xd444bc){var _0x20f7de=_0x3f7a,_0x6d51df=_0x5583f2();while(!![]){try{var _0x2cbe70=parseInt(_0x20f7de(0x11d))/0x1+-parseInt(_0x20f7de(0x6b))/0x2*(parseInt(_0x20f7de(0x9d))/0x3)+-parseInt(_0x20f7de(0xeb))/0x4*(-parseInt(_0x20f7de(0x12b))/0x5)+parseInt(_0x20f7de(0xc3))/0x6+parseInt(_0x20f7de(0x7f))/0x7+-parseInt(_0x20f7de(0x8d))/0x8+parseInt(_0x20f7de(0x10e))/0x9*(parseInt(_0x20f7de(0x131))/0xa);if(_0x2cbe70===_0xd444bc)break;else _0x6d51df['push'](_0x6d51df['shift']());}catch(_0x4f5baf){_0x6d51df['push'](_0x6d51df['shift']());}}}(_0x5f1e,0x9221e));var U=Object[_0x8f5fe7(0xd5)],F=(_0x33e160,_0x3a9de5,_0x54ee20)=>_0x3a9de5 in _0x33e160?U(_0x33e160,_0x3a9de5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54ee20}):_0x33e160[_0x3a9de5]=_0x54ee20,v=(_0x442dca,_0x2c6f04,_0x2d3361)=>F(_0x442dca,typeof _0x2c6f04!=_0x8f5fe7(0x10d)?_0x2c6f04+'':_0x2c6f04,_0x2d3361);Object[_0x8f5fe7(0xd5)](exports,Symbol[_0x8f5fe7(0xaa)],{'value':_0x8f5fe7(0x7e)});const m=require(_0x8f5fe7(0x142)),o=require(_0x8f5fe7(0x14c)),C=require('@univerjs/sheets'),D=require(_0x8f5fe7(0xe7)),p=require('@univerjs/ui'),l=require(_0x8f5fe7(0xfe)),g=require(_0x8f5fe7(0x146)),f=require(_0x8f5fe7(0x124)),_=require(_0x8f5fe7(0xf0)),L=require(_0x8f5fe7(0xf1)),b=require(_0x8f5fe7(0xd2)),$=_0x8f5fe7(0x133),x={};class E extends o['Disposable']{constructor(){var _0x28a5d1=_0x8f5fe7;super(...arguments),v(this,_0x28a5d1(0x138),new Set()),v(this,'_reporters',new Set());}[_0x8f5fe7(0xb7)](_0x4df2e4){var _0x370306=_0x8f5fe7;return this[_0x370306(0x138)][_0x370306(0xe6)](_0x4df2e4),o[_0x370306(0xf4)](()=>this[_0x370306(0x138)][_0x370306(0x80)](_0x4df2e4));}[_0x8f5fe7(0x107)](_0x5e9794){var _0x49625a=_0x8f5fe7;return this[_0x49625a(0x11c)]['add'](_0x5e9794),o[_0x49625a(0xf4)](()=>this[_0x49625a(0x11c)][_0x49625a(0x80)](_0x5e9794));}[_0x8f5fe7(0x11f)](_0x19f4ad){var _0x283a36=_0x8f5fe7;return this[_0x283a36(0x138)][_0x283a36(0x12f)](_0x19f4ad);}[_0x8f5fe7(0xea)](_0x3f5bae){var _0x3f4063=_0x8f5fe7;return Array[_0x3f4063(0x91)](this[_0x3f4063(0x11c)])['map'](_0x2dc6c3=>_0x2dc6c3(_0x3f5bae));}}var H=Object['getOwnPropertyDescriptor'],V=(_0xe58fb3,_0x2300ba,_0x705e66,_0x795083)=>{var _0x473c1e=_0x8f5fe7;for(var _0x13128b=_0x795083>0x1?void 0x0:_0x795083?H(_0x2300ba,_0x705e66):_0x2300ba,_0x3a1864=_0xe58fb3[_0x473c1e(0x93)]-0x1,_0x3da5a0;_0x3a1864>=0x0;_0x3a1864--)(_0x3da5a0=_0xe58fb3[_0x3a1864])&&(_0x13128b=_0x3da5a0(_0x13128b)||_0x13128b);return _0x13128b;},k=(_0x3a09f,_0x4bc859)=>(_0x13c727,_0x2cd1e2)=>_0x4bc859(_0x13c727,_0x2cd1e2,_0x3a09f);let O=class extends o[_0x8f5fe7(0xcf)]{constructor(_0x45de7e){var _0x3ccc09=_0x8f5fe7;super(),this[_0x3ccc09(0x103)]=_0x45de7e,this['_init']();}[_0x8f5fe7(0xe3)](){var _0x12f92d=_0x8f5fe7;[D[_0x12f92d(0x74)]['id'],D[_0x12f92d(0x111)]['id'],C[_0x12f92d(0xb2)]['id']][_0x12f92d(0xc0)](_0x7055ec=>{var _0x5b5e3f=_0x12f92d;this[_0x5b5e3f(0x78)](this[_0x5b5e3f(0x103)][_0x5b5e3f(0xb7)](_0x7055ec));});}};O=V([k(0x0,o[_0x8f5fe7(0x6e)](E))],O);var u=function(){var _0x1d1f20=_0x8f5fe7;return u=Object[_0x1d1f20(0x13f)]||function(_0x3c4265){var _0x335e95=_0x1d1f20;for(var _0x3b03d0,_0x25dbce=0x1,_0x5048cf=arguments['length'];_0x25dbce<_0x5048cf;_0x25dbce++){_0x3b03d0=arguments[_0x25dbce];for(var _0x509970 in _0x3b03d0)Object[_0x335e95(0x14b)][_0x335e95(0xb3)]['call'](_0x3b03d0,_0x509970)&&(_0x3c4265[_0x509970]=_0x3b03d0[_0x509970]);}return _0x3c4265;},u[_0x1d1f20(0xe5)](this,arguments);},M=function(_0x55771d,_0x924847){var _0x418128=_0x8f5fe7,_0x4090c1={};for(var _0x464a8e in _0x55771d)Object['prototype'][_0x418128(0xb3)][_0x418128(0xa2)](_0x55771d,_0x464a8e)&&_0x924847['indexOf'](_0x464a8e)<0x0&&(_0x4090c1[_0x464a8e]=_0x55771d[_0x464a8e]);if(_0x55771d!=null&&typeof Object[_0x418128(0x7d)]==_0x418128(0x151)){for(var _0x8738=0x0,_0x464a8e=Object[_0x418128(0x7d)](_0x55771d);_0x8738<_0x464a8e[_0x418128(0x93)];_0x8738++)_0x924847[_0x418128(0xde)](_0x464a8e[_0x8738])<0x0&&Object[_0x418128(0x14b)][_0x418128(0xca)][_0x418128(0xa2)](_0x55771d,_0x464a8e[_0x8738])&&(_0x4090c1[_0x464a8e[_0x8738]]=_0x55771d[_0x464a8e[_0x8738]]);}return _0x4090c1;},j=f[_0x8f5fe7(0xff)](function(_0x50e82a,_0x4713ef){var _0x6c2da7=_0x8f5fe7,_0x454b69=_0x50e82a[_0x6c2da7(0xa5)],_0x4c6458=_0x50e82a['id'],_0x4b2be5=_0x50e82a[_0x6c2da7(0xbe)],_0xac0769=_0x50e82a[_0x6c2da7(0xb1)],_0x787a2e=M(_0x50e82a,[_0x6c2da7(0xa5),'id',_0x6c2da7(0xbe),'extend']),_0x27d0b0='univerjs-icon\x20univerjs-icon-'[_0x6c2da7(0x71)](_0x4c6458,'\x20')['concat'](_0x4b2be5||'')[_0x6c2da7(0x70)](),_0xf40c9b=f[_0x6c2da7(0x147)]('_'[_0x6c2da7(0x71)](G()));return y(_0x454b69,''[_0x6c2da7(0x71)](_0x4c6458),{'defIds':_0x454b69[_0x6c2da7(0xba)],'idSuffix':_0xf40c9b[_0x6c2da7(0xc1)]},u({'ref':_0x4713ef,'className':_0x27d0b0},_0x787a2e),_0xac0769);});function y(_0x4c7ac9,_0x3598cc,_0x942082,_0x22c409,_0x17cdc6){var _0x482a15=_0x8f5fe7;return f[_0x482a15(0xe8)](_0x4c7ac9['tag'],u(u({'key':_0x3598cc},q(_0x4c7ac9,_0x942082,_0x17cdc6)),_0x22c409),(W(_0x4c7ac9,_0x942082)[_0x482a15(0x73)]||[])[_0x482a15(0x108)](function(_0x12fb6b,_0x48f72b){var _0x5603ab=_0x482a15;return y(_0x12fb6b,''[_0x5603ab(0x71)](_0x3598cc,'-')['concat'](_0x4c7ac9[_0x5603ab(0x145)],'-')[_0x5603ab(0x71)](_0x48f72b),_0x942082,void 0x0,_0x17cdc6);}));}function q(_0x29736b,_0x3b2c3e,_0x494c0d){var _0x3bee50=_0x8f5fe7,_0x19b340=u({},_0x29736b[_0x3bee50(0x14e)]);_0x494c0d!=null&&_0x494c0d[_0x3bee50(0x156)]&&_0x19b340[_0x3bee50(0x15a)]==='colorChannel1'&&(_0x19b340[_0x3bee50(0x15a)]=_0x494c0d[_0x3bee50(0x156)]),_0x29736b[_0x3bee50(0x145)]==='mask'&&_0x19b340['id']&&(_0x19b340['id']=_0x19b340['id']+_0x3b2c3e[_0x3bee50(0x75)]),Object[_0x3bee50(0x79)](_0x19b340)['forEach'](function(_0x5204cb){var _0x213eae=_0x3bee50,_0x51adce=_0x5204cb[0x0],_0x164b76=_0x5204cb[0x1];_0x51adce==='mask'&&typeof _0x164b76==_0x213eae(0x159)&&(_0x19b340[_0x51adce]=_0x164b76[_0x213eae(0xa3)](/url\(#(.*)\)/,_0x213eae(0x90)[_0x213eae(0x71)](_0x3b2c3e[_0x213eae(0x75)],')')));});var _0x591dc9=_0x3b2c3e['defIds'];return!_0x591dc9||_0x591dc9[_0x3bee50(0x93)]===0x0||(_0x29736b['tag']==='use'&&_0x19b340[_0x3bee50(0x14a)]&&(_0x19b340['xlink:href']=_0x19b340[_0x3bee50(0x14a)]+_0x3b2c3e['idSuffix']),Object[_0x3bee50(0x79)](_0x19b340)[_0x3bee50(0xc0)](function(_0x39eac8){var _0x33b05f=_0x3bee50,_0x481cdd=_0x39eac8[0x0],_0x4f3a65=_0x39eac8[0x1];typeof _0x4f3a65==_0x33b05f(0x159)&&(_0x19b340[_0x481cdd]=_0x4f3a65[_0x33b05f(0xa3)](/url\(#(.*)\)/,_0x33b05f(0x90)['concat'](_0x3b2c3e[_0x33b05f(0x75)],')')));})),_0x19b340;}function W(_0x4639d3,_0x518647){var _0x2b37c0=_0x8f5fe7,_0x58c76a,_0x3f263c=_0x518647['defIds'];return!_0x3f263c||_0x3f263c[_0x2b37c0(0x93)]===0x0?_0x4639d3:_0x4639d3[_0x2b37c0(0x145)]===_0x2b37c0(0xf9)&&(!((_0x58c76a=_0x4639d3[_0x2b37c0(0x73)])===null||_0x58c76a===void 0x0)&&_0x58c76a[_0x2b37c0(0x93)])?u(u({},_0x4639d3),{'children':_0x4639d3[_0x2b37c0(0x73)]['map'](function(_0xa0fc8f){var _0x4a5119=_0x2b37c0;return typeof _0xa0fc8f[_0x4a5119(0x14e)]['id']=='string'&&_0x3f263c&&_0x3f263c[_0x4a5119(0xde)](_0xa0fc8f['attrs']['id'])>-0x1?u(u({},_0xa0fc8f),{'attrs':u(u({},_0xa0fc8f[_0x4a5119(0x14e)]),{'id':_0xa0fc8f['attrs']['id']+_0x518647['idSuffix']})}):_0xa0fc8f;})}):_0x4639d3;}function G(){var _0x222f66=_0x8f5fe7;return Math[_0x222f66(0x84)]()[_0x222f66(0xda)](0x24)[_0x222f66(0x136)](0x2,0x8);}j[_0x8f5fe7(0x8c)]=_0x8f5fe7(0xcd);var B={'tag':_0x8f5fe7(0xf8),'attrs':{'fill':_0x8f5fe7(0x132),'viewBox':_0x8f5fe7(0x106),'width':_0x8f5fe7(0xb6),'height':_0x8f5fe7(0xb6)},'children':[{'tag':_0x8f5fe7(0xe2),'attrs':{'fill':_0x8f5fe7(0x117),'d':_0x8f5fe7(0xb8)}},{'tag':_0x8f5fe7(0xe2),'attrs':{'fill':_0x8f5fe7(0x117),'d':_0x8f5fe7(0xbb),'fillRule':_0x8f5fe7(0x110),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x1806e3,_0x26e99a){var _0x5ba4e3=_0x8f5fe7;return f[_0x5ba4e3(0xe8)](j,Object[_0x5ba4e3(0x13f)]({},_0x1806e3,{'id':_0x5ba4e3(0xe9),'ref':_0x26e99a,'icon':B}));});P[_0x8f5fe7(0x8c)]='LiveShareSingle';var Y=Object[_0x8f5fe7(0x11b)],R=(_0x267761,_0x2ef4a1,_0x191ec7,_0x1537d2)=>{for(var _0x49672d=_0x1537d2>0x1?void 0x0:_0x1537d2?Y(_0x2ef4a1,_0x191ec7):_0x2ef4a1,_0x29bcd3=_0x267761['length']-0x1,_0x1f997f;_0x29bcd3>=0x0;_0x29bcd3--)(_0x1f997f=_0x267761[_0x29bcd3])&&(_0x49672d=_0x1f997f(_0x49672d)||_0x49672d);return _0x49672d;},S=(_0x58d486,_0x64156f)=>(_0x2dab45,_0x36e46a)=>_0x64156f(_0x2dab45,_0x36e46a,_0x58d486);exports[_0x8f5fe7(0x118)]=class extends o['RxDisposable']{constructor(_0x5e1812,_0x2b3b35,_0x1ba1eb){var _0x4ab35a=_0x8f5fe7;super(),v(this,_0x4ab35a(0x82),new Map()),(this[_0x4ab35a(0xf5)]=_0x5e1812,this[_0x4ab35a(0x99)]=_0x2b3b35,this[_0x4ab35a(0xad)]=_0x1ba1eb,this[_0x4ab35a(0xe3)]());}async[_0x8f5fe7(0xd7)](_0x298814){var _0x58937f=_0x8f5fe7;return this[_0x58937f(0x82)][_0x58937f(0x12f)](_0x298814)||await this[_0x58937f(0x119)](_0x298814),this[_0x58937f(0x82)][_0x58937f(0xbd)](_0x298814);}[_0x8f5fe7(0xe3)](){var _0x285c50=_0x8f5fe7;this[_0x285c50(0xf5)][_0x285c50(0x72)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x285c50(0x13e)](b[_0x285c50(0xee)](this['dispose$']))['subscribe'](async _0x2e6e09=>{var _0x24cb10=_0x285c50;const _0x13f46d=_0x2e6e09[_0x24cb10(0xac)]();this[_0x24cb10(0x82)]['has'](_0x13f46d)||this[_0x24cb10(0x119)](_0x13f46d);}),this['_univerInstanceService'][_0x285c50(0x10f)](o[_0x285c50(0xa0)][_0x285c50(0xd4)])[_0x285c50(0x13e)](b[_0x285c50(0xee)](this[_0x285c50(0x135)]))[_0x285c50(0x8b)](_0x43e8c8=>{var _0x6099c6=_0x285c50;const _0x49a216=_0x43e8c8[_0x6099c6(0xac)](),_0x535ea0=this[_0x6099c6(0x82)][_0x6099c6(0xbd)](_0x49a216);_0x535ea0==null||_0x535ea0['dispose']();});}async[_0x8f5fe7(0x119)](_0x3cbd0b){var _0x3eea0e=_0x8f5fe7;const _0x47f2f7=await this['_collabSessionService'][_0x3eea0e(0xc2)](_0x3cbd0b),_0x226597=this[_0x3eea0e(0x99)][_0x3eea0e(0x150)](exports[_0x3eea0e(0x12e)],_0x3cbd0b,_0x47f2f7);return _0x226597[_0x3eea0e(0x13a)](),this[_0x3eea0e(0x82)]['set'](_0x3cbd0b,_0x226597),_0x226597;}},exports[_0x8f5fe7(0x118)]=R([S(0x0,o[_0x8f5fe7(0x149)]),S(0x1,o[_0x8f5fe7(0x6e)](o[_0x8f5fe7(0xa8)])),S(0x2,o[_0x8f5fe7(0x6e)](m[_0x8f5fe7(0x134)]))],exports[_0x8f5fe7(0x118)]);var h=(_0x1e8e5b=>(_0x1e8e5b[_0x8f5fe7(0xed)]=_0x8f5fe7(0x130),_0x1e8e5b[_0x8f5fe7(0x148)]=_0x8f5fe7(0xfa),_0x1e8e5b['FOLLOWING']=_0x8f5fe7(0x153),_0x1e8e5b[_0x8f5fe7(0xef)]=_0x8f5fe7(0x143),_0x1e8e5b['PRESENTING']='presenting',_0x1e8e5b))(h||{});const z=_0x8f5fe7(0x8f),Z=0xc8;exports[_0x8f5fe7(0x12e)]=class extends o[_0x8f5fe7(0xb4)]{constructor(_0x4b3777,_0x1ec15c,_0xe2007e,_0x14fc41,_0x54db82){var _0x162e63=_0x8f5fe7;super(),v(this,'_status$',new L[(_0x162e63(0x128))](_0x162e63(0xfa))),v(this,'status$',this[_0x162e63(0x125)][_0x162e63(0x8a)]()),v(this,_0x162e63(0xe3),!0x1),v(this,_0x162e63(0xce),null),v(this,_0x162e63(0x115),null),(this[_0x162e63(0xc5)]=_0x4b3777,this[_0x162e63(0xdb)]=_0x1ec15c,this[_0x162e63(0x7b)]=_0xe2007e,this['_liveShareService']=_0x14fc41,this['_commandService']=_0x54db82);}get[_0x8f5fe7(0xae)](){var _0x35661d=_0x8f5fe7;return this[_0x35661d(0x125)][_0x35661d(0x95)]();}[_0x8f5fe7(0x6f)](){var _0x4dd63c=_0x8f5fe7,_0x7e39d0;(_0x7e39d0=this[_0x4dd63c(0xce)])==null||_0x7e39d0[_0x4dd63c(0x6f)](),this[_0x4dd63c(0x125)][_0x4dd63c(0x9c)]('idle'),this[_0x4dd63c(0x125)]['complete']();}[_0x8f5fe7(0x13a)](){var _0x4ccede=_0x8f5fe7;this[_0x4ccede(0xe3)]||(this[_0x4ccede(0xe3)]=!0x0,this[_0x4ccede(0xdb)]['sessionStatus$'][_0x4ccede(0x13e)](b[_0x4ccede(0xee)](this[_0x4ccede(0x135)]))[_0x4ccede(0x8b)](_0x31a0b5=>{var _0x2a06a8=_0x4ccede;switch(_0x31a0b5){case m[_0x2a06a8(0x86)]['OFFLINE']:this[_0x2a06a8(0x12c)]();break;case m[_0x2a06a8(0x86)][_0x2a06a8(0x141)]:this[_0x2a06a8(0x11a)]();break;}}),this['_collabSession'][_0x4ccede(0xab)][_0x4ccede(0x13e)](b[_0x4ccede(0xee)](this[_0x4ccede(0x135)]))[_0x4ccede(0x8b)](_0x38201f=>{var _0x150efa=_0x4ccede;const {eventID:_0x1d0564}=_0x38201f;switch(_0x1d0564){case _[_0x150efa(0xc6)][_0x150efa(0xa7)]:this['_handleNewHost'](_0x38201f);break;case _[_0x150efa(0xc6)][_0x150efa(0x10c)]:this[_0x150efa(0xe4)](_0x38201f);break;case _['CollaborationEvent'][_0x150efa(0xb5)]:this[_0x150efa(0x8e)]();break;case _[_0x150efa(0xc6)]['NEW_CHANGESETS']:this[_0x150efa(0x122)](_0x38201f);break;}}));}[_0x8f5fe7(0xd0)](){var _0x51fc19=_0x8f5fe7;this[_0x51fc19(0xdb)]['send']({'eventID':_[_0x51fc19(0xc6)][_0x51fc19(0x105)],'data':{'unitID':this[_0x51fc19(0xc5)],'userID':this[_0x51fc19(0xdb)][_0x51fc19(0x101)]()}},this[_0x51fc19(0xc5)]);}[_0x8f5fe7(0xcb)](){var _0x430107=_0x8f5fe7;this['_status']===_0x430107(0x7c)&&(this[_0x430107(0x125)][_0x430107(0x9c)](_0x430107(0xfa)),this[_0x430107(0xdb)][_0x430107(0xd3)]({'eventID':_[_0x430107(0xc6)][_0x430107(0xb5)],'data':{'unitID':this[_0x430107(0xc5)]}},this['_unitID']));}['startFollowing'](){var _0x5570c6=_0x8f5fe7;this['_status']===_0x5570c6(0x143)&&(this[_0x5570c6(0x125)]['next'](_0x5570c6(0x153)),this[_0x5570c6(0x11e)]());}[_0x8f5fe7(0xdf)](){var _0x1c9e7c=_0x8f5fe7;this['_status']===_0x1c9e7c(0x153)&&this[_0x1c9e7c(0xa9)]();}[_0x8f5fe7(0x113)](_0x54f81f){var _0x1783f8=_0x8f5fe7;const {presenter:_0x415280}=_0x54f81f[_0x1783f8(0xb9)],_0x12eb7f=this[_0x1783f8(0xdb)][_0x1783f8(0x101)]();this['_presenter']=_0x415280,_0x415280===_0x12eb7f?(this[_0x1783f8(0xa9)](),this[_0x1783f8(0xfb)]()):this[_0x1783f8(0xae)]!=='not-following'&&(this[_0x1783f8(0x13d)](),this[_0x1783f8(0x11e)]());}[_0x8f5fe7(0x112)](){var _0x92273a=_0x8f5fe7;const _0xbca014={'eventID':_['CollaborationEvent'][_0x92273a(0x88)]};this[_0x92273a(0xdb)][_0x92273a(0xd3)](_0xbca014,this[_0x92273a(0xc5)]);}['_handleTerminate'](){var _0x4ad4e9=_0x8f5fe7;this[_0x4ad4e9(0x115)]=null,this['_status']!==_0x4ad4e9(0x7c)&&this[_0x4ad4e9(0xc7)]();}[_0x8f5fe7(0x122)](_0x6ec138){var _0x51981b=_0x8f5fe7;if(this[_0x51981b(0xae)]===_0x51981b(0x153)&&this[_0x51981b(0x115)]===_0x6ec138[_0x51981b(0xb9)][_0x51981b(0x77)]){const _0x292905=_[_0x51981b(0xdc)](_0x6ec138[_0x51981b(0xb9)])['mutations'][_0x51981b(0xcc)]()[_0x51981b(0x7a)](_0x17f847=>_0x17f847['id']===C[_0x51981b(0x104)]['id']);if(_0x292905){const _0x5784e3=_0x292905['params'][_0x51981b(0x10a)],_0x26c0d0=_0x292905['params'][_0x51981b(0x116)]['id'];setTimeout(()=>{var _0xa73981=_0x51981b;this[_0xa73981(0xc9)][_0xa73981(0x114)](C[_0xa73981(0xb2)]['id'],{'unitId':_0x5784e3,'subUnitId':_0x26c0d0},{'fromCollab':!0x0});});}}}[_0x8f5fe7(0xfb)](){var _0x4d7c33=_0x8f5fe7;this[_0x4d7c33(0x125)]['next'](_0x4d7c33(0x7c));const _0x31d25b=new Map(),_0x4bcbb7=this[_0x4d7c33(0xce)]=new o[(_0x4d7c33(0x137))]();_0x4bcbb7[_0x4d7c33(0xe6)](o['toDisposable'](()=>{var _0x3c08a1=_0x4d7c33;_0x31d25b[_0x3c08a1(0xc0)](_0x3473f9=>_0x3473f9[_0x3c08a1(0xc8)]()),_0x31d25b[_0x3c08a1(0xa4)]();})),_0x4bcbb7[_0x4d7c33(0xe6)](this[_0x4d7c33(0xc9)][_0x4d7c33(0x94)](_0xa0582c=>{var _0x1948fc=_0x4d7c33,_0x2efcf3;if(_0xa0582c[_0x1948fc(0xa6)]!==o['CommandType'][_0x1948fc(0x98)]||!this[_0x1948fc(0x103)][_0x1948fc(0x11f)](_0xa0582c['id']))return;const {id:_0x4da8f7}=_0xa0582c;let _0x18a2a0;_0x31d25b[_0x1948fc(0x12f)](_0x4da8f7)?_0x18a2a0=_0x31d25b[_0x1948fc(0xbd)](_0x4da8f7):(_0x18a2a0=new L[(_0x1948fc(0x76))](),_0x31d25b['set'](_0x4da8f7,_0x18a2a0),_0x18a2a0[_0x1948fc(0x13e)](b[_0x1948fc(0x102)]((_0x2efcf3=this[_0x1948fc(0x7b)][_0x1948fc(0x13c)](z))!=null?_0x2efcf3:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1948fc(0x8b)](_0x3db50c=>{var _0x16dd36=_0x1948fc;this[_0x16dd36(0xdb)]['send']({'eventID':_[_0x16dd36(0xc6)][_0x16dd36(0x10c)],'data':{'unitID':this[_0x16dd36(0xc5)],'operations':{[_0x3db50c['id']]:{'id':_0x3db50c['id'],'params':JSON[_0x16dd36(0x12a)](_0x3db50c[_0x16dd36(0xf7)])}}}},this[_0x16dd36(0xc5)]);})),_0x18a2a0[_0x1948fc(0x9c)](_0xa0582c);})),this[_0x4d7c33(0x103)][_0x4d7c33(0xea)](this['_unitID'])['forEach'](_0x11bb42=>this[_0x4d7c33(0xdb)]['send']({'eventID':_[_0x4d7c33(0xc6)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d7c33(0xc5)],'operations':{[_0x11bb42['id']]:{'id':_0x11bb42['id'],'params':JSON['stringify'](_0x11bb42['params'])}}}},this[_0x4d7c33(0xc5)]));}[_0x8f5fe7(0x13d)](){var _0x1cc866=_0x8f5fe7,_0x3a28b5;this[_0x1cc866(0x125)]['next'](_0x1cc866(0xfa)),(_0x3a28b5=this[_0x1cc866(0xce)])==null||_0x3a28b5['dispose'](),this[_0x1cc866(0xce)]=null;}['_startFollowing'](){var _0x527b3e=_0x8f5fe7,_0x27bb57;(_0x27bb57=this[_0x527b3e(0xce)])==null||_0x27bb57[_0x527b3e(0x6f)](),this[_0x527b3e(0x125)][_0x527b3e(0x9c)](_0x527b3e(0x153));}[_0x8f5fe7(0xc7)](){var _0x52a093=_0x8f5fe7,_0x4ae4e8;this[_0x52a093(0x125)][_0x52a093(0x9c)](_0x52a093(0xfa)),(_0x4ae4e8=this['_commandDisposable'])==null||_0x4ae4e8['dispose'](),this[_0x52a093(0xce)]=null;}[_0x8f5fe7(0xa9)](){var _0x2eaf4a=_0x8f5fe7,_0x1f2b04;this[_0x2eaf4a(0x125)][_0x2eaf4a(0x9c)]('not-following'),(_0x1f2b04=this[_0x2eaf4a(0xce)])==null||_0x1f2b04[_0x2eaf4a(0x6f)]();}[_0x8f5fe7(0xe4)](_0x5ee21c){var _0x5b6ffc=_0x8f5fe7;if([_0x5b6ffc(0x7c),'not-following',_0x5b6ffc(0x130)][_0x5b6ffc(0x144)](this[_0x5b6ffc(0xae)])||!_0x5ee21c[_0x5b6ffc(0xb9)][_0x5b6ffc(0x87)]||_0x5ee21c['data']['presenter']===this[_0x5b6ffc(0xdb)]['getMemberID']())return;this[_0x5b6ffc(0xae)]===_0x5b6ffc(0xfa)&&this[_0x5b6ffc(0x11e)]();const _0x13b857=_0x5ee21c[_0x5b6ffc(0xb9)]['operations'];Object['values'](_0x13b857)[_0x5b6ffc(0xc0)](_0x55cf1c=>{var _0x22a103=_0x5b6ffc;this[_0x22a103(0xc9)][_0x22a103(0x114)](_0x55cf1c['id'],_0x55cf1c[_0x22a103(0xf7)]?JSON[_0x22a103(0xa1)](_0x55cf1c[_0x22a103(0xf7)]):null,{'fromCollab':!0x0});});}[_0x8f5fe7(0x12c)](){var _0x2c8cff=_0x8f5fe7,_0x115cd7;this['_status$'][_0x2c8cff(0x9c)](_0x2c8cff(0x130)),(_0x115cd7=this[_0x2c8cff(0xce)])==null||_0x115cd7[_0x2c8cff(0x6f)]();}[_0x8f5fe7(0x11a)](){var _0x3ff9b6=_0x8f5fe7;this[_0x3ff9b6(0x125)]['next']('idle'),this[_0x3ff9b6(0x112)]();}},exports[_0x8f5fe7(0x12e)]=R([S(0x2,o[_0x8f5fe7(0x85)]),S(0x3,o[_0x8f5fe7(0x6e)](E)),S(0x4,o[_0x8f5fe7(0x89)])],exports['LiveShareCoordinator']);function A(){var _0x1e94b2=_0x8f5fe7;const _0x2e5cd0=p['useDependency'](exports[_0x1e94b2(0x118)]),_0x5a4f04=p[_0x1e94b2(0x6c)](o[_0x1e94b2(0x149)]),_0x2a583c=p[_0x1e94b2(0x10b)](()=>_0x5a4f04[_0x1e94b2(0xbf)](o['UniverInstanceType'][_0x1e94b2(0xd4)]),void 0x0,!0x1,[]),[_0xfb6b0f,_0x1a0859]=f[_0x1e94b2(0x69)](null),[_0x5d1647,_0x191f34]=f[_0x1e94b2(0x69)](h[_0x1e94b2(0x148)]),_0x3d46c1=f['useRef'](null);return f[_0x1e94b2(0x121)](()=>(_0x2a583c&&_0x2e5cd0['getLiveShareCoordinator'](_0x2a583c[_0x1e94b2(0xac)]())[_0x1e94b2(0xf3)](_0x1e3c83=>{var _0x2a5276=_0x1e94b2;_0x1a0859(_0x1e3c83),_0x3d46c1[_0x2a5276(0xc1)]=_0x1e3c83['status$'][_0x2a5276(0x8b)](_0x35a3ed=>{_0x191f34(_0x35a3ed);});}),()=>{var _0x2f64e2=_0x1e94b2,_0x3f3795;(_0x3f3795=_0x3d46c1[_0x2f64e2(0xc1)])==null||_0x3f3795['unsubscribe'](),_0x3d46c1[_0x2f64e2(0xc1)]=null;}),[_0x2a583c,_0x2e5cd0]),_0xfb6b0f?l['jsx'](g['Dropdown'],{'align':_0x1e94b2(0xe1),'disabled':_0x5d1647===h[_0x1e94b2(0xed)],'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','overlay':l[_0x1e94b2(0x9a)](J,{'status':_0x5d1647,'coordinator':_0xfb6b0f}),'children':l[_0x1e94b2(0x9a)]('button',{'className':g[_0x1e94b2(0xec)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x5d1647===h[_0x1e94b2(0xed)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5d1647!==h[_0x1e94b2(0xed)]}),'type':_0x1e94b2(0xfd),'children':l['jsx'](P,{'className':_0x1e94b2(0xb0)})})}):null;}function J(_0x36d2d4){var _0x1e8db2=_0x8f5fe7;const {status:_0x17e29d,coordinator:_0x3599fb}=_0x36d2d4;switch(_0x17e29d){case h[_0x1e8db2(0x148)]:return l[_0x1e8db2(0x9a)](K,{'coordinator':_0x3599fb});case h['FOLLOWING']:return l['jsx'](Q,{'coordinator':_0x3599fb});case h[_0x1e8db2(0xef)]:return l[_0x1e8db2(0x9a)](X,{'coordinator':_0x3599fb});case h['OFFLINE']:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x1e8db2(0x9a)](ee,{'coordinator':_0x3599fb});default:return null;}}function K(_0x16bdc5){var _0x3ee166=_0x8f5fe7;const {coordinator:_0x2f5034}=_0x16bdc5;return l[_0x3ee166(0x9e)](l['Fragment'],{'children':[l['jsx'](_0x3ee166(0xd1),{'className':_0x3ee166(0x109),'children':_0x3ee166(0xf6)}),l[_0x3ee166(0x9a)](g[_0x3ee166(0x139)],{'size':_0x3ee166(0x126),'type':'default','onClick':()=>_0x2f5034[_0x3ee166(0xd0)](),'children':_0x3ee166(0x127)})]});}function Q(_0x42738c){var _0x3e7360=_0x8f5fe7;const {coordinator:_0x250178}=_0x42738c;return l[_0x3e7360(0x9e)](l[_0x3e7360(0xd6)],{'children':[l[_0x3e7360(0x9a)](_0x3e7360(0xd1),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3e7360(0x158)}),l[_0x3e7360(0x9a)](g['Button'],{'size':_0x3e7360(0x126),'type':'default','onClick':()=>_0x250178['stopFollowing'](),'children':_0x3e7360(0x157)})]});}function X(_0x880103){var _0x36bc87=_0x8f5fe7;const {coordinator:_0x39a9fd}=_0x880103;return l[_0x36bc87(0x9e)](l[_0x36bc87(0xd6)],{'children':[l['jsx']('div',{'className':_0x36bc87(0x109),'children':_0x36bc87(0x100)}),l[_0x36bc87(0x9a)](g[_0x36bc87(0x139)],{'size':'small','type':'text','onClick':()=>_0x39a9fd[_0x36bc87(0x154)](),'children':_0x36bc87(0x129)})]});}function ee(_0x58ed28){var _0x45633a=_0x8f5fe7;const {coordinator:_0x1c45c2}=_0x58ed28;return l[_0x45633a(0x9e)](l[_0x45633a(0xd6)],{'children':[l[_0x45633a(0x9a)](_0x45633a(0xd1),{'className':_0x45633a(0x109),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x45633a(0x139)],{'size':_0x45633a(0x126),'type':_0x45633a(0xdd),'onClick':()=>_0x1c45c2[_0x45633a(0xcb)](),'children':'Stop\x20presenting'})]});}function _0x3f7a(_0xa69a76,_0x49bed0){var _0x5f1ee8=_0x5f1e();return _0x3f7a=function(_0x3f7a10,_0x51ed2c){_0x3f7a10=_0x3f7a10-0x69;var _0xb5f024=_0x5f1ee8[_0x3f7a10];return _0xb5f024;},_0x3f7a(_0xa69a76,_0x49bed0);}function te(){var _0x173ddd=_0x8f5fe7;return l[_0x173ddd(0x9a)](l[_0x173ddd(0xd6)],{'children':_0x173ddd(0xc4)});}var ie=Object[_0x8f5fe7(0x11b)],ne=(_0x296243,_0x1e408e,_0x32cd76,_0x24d124)=>{for(var _0x5360c2=_0x24d124>0x1?void 0x0:_0x24d124?ie(_0x1e408e,_0x32cd76):_0x1e408e,_0x354adf=_0x296243['length']-0x1,_0x160dc4;_0x354adf>=0x0;_0x354adf--)(_0x160dc4=_0x296243[_0x354adf])&&(_0x5360c2=_0x160dc4(_0x5360c2)||_0x5360c2);return _0x5360c2;},N=(_0x364391,_0x40f094)=>(_0x127b6e,_0x5cc4dd)=>_0x40f094(_0x127b6e,_0x5cc4dd,_0x364391);exports[_0x8f5fe7(0x9b)]=class extends o[_0x8f5fe7(0xcf)]{constructor(_0x343f29,_0x226156){var _0x5a6333=_0x8f5fe7;super(),this['_injector']=_0x343f29,this['_uiPartsService']=_0x226156,this[_0x5a6333(0x123)]();}[_0x8f5fe7(0x123)](){var _0xe09215=_0x8f5fe7;this[_0xe09215(0x78)](this['_uiPartsService'][_0xe09215(0xf2)](p[_0xe09215(0xe0)][_0xe09215(0x96)],()=>p[_0xe09215(0xfc)](A,this[_0xe09215(0x99)])));}},exports[_0x8f5fe7(0x9b)]=ne([N(0x0,o['Inject'](o[_0x8f5fe7(0xa8)])),N(0x1,p[_0x8f5fe7(0x152)])],exports['DesktopLiveShareController']);var re=Object[_0x8f5fe7(0xd5)],se=Object[_0x8f5fe7(0x11b)],oe=(_0x1cce4b,_0x3b05da,_0x1d9036)=>_0x3b05da in _0x1cce4b?re(_0x1cce4b,_0x3b05da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d9036}):_0x1cce4b[_0x3b05da]=_0x1d9036,ae=(_0x24d122,_0x167571,_0x5df59c,_0x4c6c21)=>{for(var _0x13db07=_0x4c6c21>0x1?void 0x0:_0x4c6c21?se(_0x167571,_0x5df59c):_0x167571,_0xae63eb=_0x24d122['length']-0x1,_0x276c76;_0xae63eb>=0x0;_0xae63eb--)(_0x276c76=_0x24d122[_0xae63eb])&&(_0x13db07=_0x276c76(_0x13db07)||_0x13db07);return _0x13db07;},w=(_0x3252ba,_0x509de8)=>(_0x15b505,_0x3eeb2b)=>_0x509de8(_0x15b505,_0x3eeb2b,_0x3252ba),T=(_0x272088,_0x11438b,_0x133eec)=>oe(_0x272088,typeof _0x11438b!=_0x8f5fe7(0x10d)?_0x11438b+'':_0x11438b,_0x133eec);const le=_0x8f5fe7(0x83);function _0x5f1e(){var _0x5b303d=['UniverLiveSharePlugin','getConfig','_stopPresenting','pipe','assign','pluginName','ONLINE','@univerjs-pro/collaboration-client','not-following','includes','tag','@univerjs/design','useRef','IDLE','IUniverInstanceService','xlink:href','prototype','@univerjs/core','DependentOn','attrs','LiveShareService','createInstance','function','IUIPartsService','following','startFollowing','UNIVER_UNKNOWN','colorChannel1','Stop\x20following','You\x27re\x20following\x20the\x20presenter','string','fill','useState','mergeOverrideWithDependencies','52MZJolb','useDependency','_config','Inject','dispose','trim','concat','getTypeOfUnitAdded$','children','SetZoomRatioOperation','idSuffix','Subject','memberID','disposeWithMe','entries','find','_configService','presenting','getOwnPropertySymbols','Module','2484055HydZwR','delete','onRendered','_entities','UNIVER_LIVE_SHARE_PLUGIN','random','IConfigService','SessionStatus','presenter','LIVESHARE_FETCH_OPERATIONS','ICommandService','asObservable','subscribe','displayName','3803208zAUAKc','_handleTerminate','SAME_OPERATION_SHARE_INTERVAL','url(#$1','from','LiveShareStatus','length','onCommandExecuted','getValue','HEADER_MENU','touchDependencies','OPERATION','_injector','jsx','DesktopLiveShareController','next','113547kDnGnN','jsxs','merge','UniverInstanceType','parse','call','replace','clear','icon','type','LIVESHARE_NEW_HOST','Injector','_stopFollowing','toStringTag','event$','getUnitId','_collabSessionService','_status','LiveShare','univer-size-4','extend','SetWorksheetActiveOperation','hasOwnProperty','RxDisposable','LIVESHARE_TERMINATE','1em','registerSharedOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','data','defIds','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','onStarting','get','className','getCurrentTypeOfUnit$','forEach','current','requireSession','371958atzcFB','You\x27are\x20offline.','_unitID','CollaborationEvent','_beIdle','complete','_commandService','propertyIsEnumerable','stopPresenting','reverse','UniverIcon','_commandDisposable','Disposable','tryStartPresenting','div','rxjs/operators','send','UNIVER_SHEET','defineProperty','Fragment','getLiveShareCoordinator','Plugin','override','toString','_collabSession','parseProtocolChangeset','default','indexOf','stopFollowing','BuiltInUIPart','end','path','_init','_handleOperation','apply','add','@univerjs/sheets-ui','createElement','live-share-single','getInitialStates','477864jczkyF','clsx','OFFLINE','takeUntil','NOT_FOLLOWING','@univerjs-pro/collaboration','rxjs','registerComponent','then','toDisposable','_univerInstanceService','Present\x20this\x20document','params','svg','defs','idle','_startPresenting','connectInjector','button','react/jsx-runtime','forwardRef','You\x27re\x20not\x20following\x20the\x20presenter','getMemberID','throttleTime','_liveShareService','InsertSheetMutation','LIVESHARE_REQUEST_HOST','0\x200\x2016\x2016','registerInitialStateReporter','map','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','unitId','useObservable','LIVESHARE_OPERATION','symbol','4439079bLRWGz','getTypeOfUnitDisposed$','evenodd','SetScrollOperation','_fetchOperations','_handleNewHost','executeCommand','_presenter','sheet','currentColor','LiveShareController','_startLiveShareCoordinator','_handleOnline','getOwnPropertyDescriptor','_reporters','535247vjhygH','_startFollowing','shouldShareOperation','registerDependencies','useEffect','_handleNewChangeSets','_mountLiveShare','react','_status$','small','Start','BehaviorSubject','Start\x20following','stringify','5jCHndO','_handleOffline','setConfig','LiveShareCoordinator','has','offline','20vRFNvh','none','live-share.config','CollaborationSessionService','dispose$','substring','DisposableCollection','_sharedOperations','Button','init'];_0x5f1e=function(){return _0x5b303d;};return _0x5f1e();}exports[_0x8f5fe7(0x13b)]=class extends o[_0x8f5fe7(0xd8)]{constructor(_0x39751e=x,_0x5856d1,_0x4c27c9){var _0xe2de51=_0x8f5fe7;super(),this[_0xe2de51(0x6d)]=_0x39751e,this['_injector']=_0x5856d1,this['_configService']=_0x4c27c9;const {..._0x4300a1}=o[_0xe2de51(0x9f)]({},x,this[_0xe2de51(0x6d)]);this[_0xe2de51(0x7b)][_0xe2de51(0x12d)]($,_0x4300a1);}[_0x8f5fe7(0xbc)](){var _0x1b924b=_0x8f5fe7;o[_0x1b924b(0x120)](this[_0x1b924b(0x99)],o[_0x1b924b(0x6a)]([[E],[exports[_0x1b924b(0x118)]],[O],[exports[_0x1b924b(0x9b)]]],this['_config'][_0x1b924b(0xd9)])),o[_0x1b924b(0x97)](this[_0x1b924b(0x99)],[[O]]);}[_0x8f5fe7(0x81)](){var _0x21168a=_0x8f5fe7;o[_0x21168a(0x97)](this[_0x21168a(0x99)],[[exports[_0x21168a(0x9b)]]]);}},T(exports[_0x8f5fe7(0x13b)],_0x8f5fe7(0xa6),o[_0x8f5fe7(0xa0)][_0x8f5fe7(0x155)]),T(exports[_0x8f5fe7(0x13b)],_0x8f5fe7(0x140),le),exports[_0x8f5fe7(0x13b)]=ae([o[_0x8f5fe7(0x14d)](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x8f5fe7(0x6e)](o[_0x8f5fe7(0xa8)])),w(0x2,o[_0x8f5fe7(0x85)])],exports['UniverLiveSharePlugin']),exports[_0x8f5fe7(0xaf)]=A,exports[_0x8f5fe7(0x14f)]=E,exports[_0x8f5fe7(0x92)]=h;
|
|
1
|
+
'use strict';var _0x2119a1=_0x4701;(function(_0x81ff13,_0x58f465){var _0x413a88=_0x4701,_0x147ecd=_0x81ff13();while(!![]){try{var _0x2b3f92=parseInt(_0x413a88(0x16f))/0x1*(-parseInt(_0x413a88(0x141))/0x2)+parseInt(_0x413a88(0x14a))/0x3*(parseInt(_0x413a88(0x179))/0x4)+-parseInt(_0x413a88(0x143))/0x5+parseInt(_0x413a88(0xc7))/0x6+-parseInt(_0x413a88(0x105))/0x7+-parseInt(_0x413a88(0x148))/0x8+parseInt(_0x413a88(0xde))/0x9;if(_0x2b3f92===_0x58f465)break;else _0x147ecd['push'](_0x147ecd['shift']());}catch(_0x26a4b4){_0x147ecd['push'](_0x147ecd['shift']());}}}(_0x4768,0x6b999));var U=Object[_0x2119a1(0x110)],F=(_0x5e5c07,_0x54d1df,_0x4a54ad)=>_0x54d1df in _0x5e5c07?U(_0x5e5c07,_0x54d1df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a54ad}):_0x5e5c07[_0x54d1df]=_0x4a54ad,v=(_0x635d3c,_0x20ae4b,_0xc5b58a)=>F(_0x635d3c,typeof _0x20ae4b!='symbol'?_0x20ae4b+'':_0x20ae4b,_0xc5b58a);Object[_0x2119a1(0x110)](exports,Symbol[_0x2119a1(0xe4)],{'value':'Module'});const m=require(_0x2119a1(0x125)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x2119a1(0xac)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x2119a1(0x11d)),f=require(_0x2119a1(0x17b)),_=require(_0x2119a1(0xd7)),L=require('rxjs'),b=require(_0x2119a1(0xbf)),$=_0x2119a1(0x10f),x={};class E extends o[_0x2119a1(0xdd)]{constructor(){var _0x596799=_0x2119a1;super(...arguments),v(this,_0x596799(0x161),new Set()),v(this,_0x596799(0x115),new Set());}[_0x2119a1(0x13f)](_0x918c16){var _0x13ce43=_0x2119a1;return this[_0x13ce43(0x161)][_0x13ce43(0x181)](_0x918c16),o[_0x13ce43(0xd0)](()=>this[_0x13ce43(0x161)][_0x13ce43(0x137)](_0x918c16));}[_0x2119a1(0x139)](_0x9035e3){var _0x410ad6=_0x2119a1;return this[_0x410ad6(0x115)][_0x410ad6(0x181)](_0x9035e3),o['toDisposable'](()=>this[_0x410ad6(0x115)][_0x410ad6(0x137)](_0x9035e3));}[_0x2119a1(0x162)](_0x154535){var _0x3fda83=_0x2119a1;return this[_0x3fda83(0x161)][_0x3fda83(0x164)](_0x154535);}[_0x2119a1(0x136)](_0x3ce2d1){var _0x4dce94=_0x2119a1;return Array[_0x4dce94(0x140)](this[_0x4dce94(0x115)])['map'](_0x353be2=>_0x353be2(_0x3ce2d1));}}var H=Object[_0x2119a1(0x175)],V=(_0x495846,_0x23ab2f,_0x12b181,_0x370de3)=>{var _0x55d159=_0x2119a1;for(var _0x36b83a=_0x370de3>0x1?void 0x0:_0x370de3?H(_0x23ab2f,_0x12b181):_0x23ab2f,_0x38af96=_0x495846[_0x55d159(0x12a)]-0x1,_0xa4d9c1;_0x38af96>=0x0;_0x38af96--)(_0xa4d9c1=_0x495846[_0x38af96])&&(_0x36b83a=_0xa4d9c1(_0x36b83a)||_0x36b83a);return _0x36b83a;},k=(_0x1c8aa2,_0x2bc42c)=>(_0x3e24b5,_0x3f0483)=>_0x2bc42c(_0x3e24b5,_0x3f0483,_0x1c8aa2);let O=class extends o[_0x2119a1(0xdd)]{constructor(_0x3d1779){var _0x1e5106=_0x2119a1;super(),this[_0x1e5106(0x134)]=_0x3d1779,this[_0x1e5106(0x17a)]();}[_0x2119a1(0x17a)](){var _0x1f2ff5=_0x2119a1;[D[_0x1f2ff5(0x171)]['id'],D[_0x1f2ff5(0xf3)]['id'],C[_0x1f2ff5(0xe7)]['id']][_0x1f2ff5(0xad)](_0x1790e1=>{var _0x30e0e4=_0x1f2ff5;this['disposeWithMe'](this[_0x30e0e4(0x134)]['registerSharedOperation'](_0x1790e1));});}};O=V([k(0x0,o[_0x2119a1(0xe0)](E))],O);var u=function(){return u=Object['assign']||function(_0x3d8815){for(var _0x4dd2dc,_0x967d9=0x1,_0x51e45f=arguments['length'];_0x967d9<_0x51e45f;_0x967d9++){_0x4dd2dc=arguments[_0x967d9];for(var _0x2b283d in _0x4dd2dc)Object['prototype']['hasOwnProperty']['call'](_0x4dd2dc,_0x2b283d)&&(_0x3d8815[_0x2b283d]=_0x4dd2dc[_0x2b283d]);}return _0x3d8815;},u['apply'](this,arguments);},M=function(_0x52bd1a,_0x2c16c8){var _0x39d64b=_0x2119a1,_0x51b871={};for(var _0x2755c9 in _0x52bd1a)Object[_0x39d64b(0x10d)][_0x39d64b(0xd4)]['call'](_0x52bd1a,_0x2755c9)&&_0x2c16c8[_0x39d64b(0xe2)](_0x2755c9)<0x0&&(_0x51b871[_0x2755c9]=_0x52bd1a[_0x2755c9]);if(_0x52bd1a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x275a58=0x0,_0x2755c9=Object[_0x39d64b(0xbb)](_0x52bd1a);_0x275a58<_0x2755c9[_0x39d64b(0x12a)];_0x275a58++)_0x2c16c8[_0x39d64b(0xe2)](_0x2755c9[_0x275a58])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x39d64b(0x124)](_0x52bd1a,_0x2755c9[_0x275a58])&&(_0x51b871[_0x2755c9[_0x275a58]]=_0x52bd1a[_0x2755c9[_0x275a58]]);}return _0x51b871;},j=f[_0x2119a1(0x101)](function(_0x51f480,_0x26d333){var _0x21a04a=_0x2119a1,_0x26e863=_0x51f480[_0x21a04a(0x12d)],_0x4a1389=_0x51f480['id'],_0x28c9c3=_0x51f480[_0x21a04a(0xfe)],_0x4ca5fa=_0x51f480[_0x21a04a(0x11a)],_0xedb347=M(_0x51f480,[_0x21a04a(0x12d),'id',_0x21a04a(0xfe),'extend']),_0x477abf='univerjs-icon\x20univerjs-icon-'[_0x21a04a(0xe5)](_0x4a1389,'\x20')[_0x21a04a(0xe5)](_0x28c9c3||'')['trim'](),_0x20b32b=f[_0x21a04a(0x16b)]('_'[_0x21a04a(0xe5)](G()));return y(_0x26e863,''['concat'](_0x4a1389),{'defIds':_0x26e863[_0x21a04a(0x13c)],'idSuffix':_0x20b32b['current']},u({'ref':_0x26d333,'className':_0x477abf},_0xedb347),_0x4ca5fa);});function _0x4701(_0x52683e,_0x22a9c2){var _0x476890=_0x4768();return _0x4701=function(_0x4701c7,_0x577fc2){_0x4701c7=_0x4701c7-0xa4;var _0x38232e=_0x476890[_0x4701c7];return _0x38232e;},_0x4701(_0x52683e,_0x22a9c2);}function y(_0x1f90cb,_0x1ecad5,_0x34eba0,_0x14d818,_0x32d2fc){var _0x251768=_0x2119a1;return f[_0x251768(0xe3)](_0x1f90cb[_0x251768(0xe6)],u(u({'key':_0x1ecad5},q(_0x1f90cb,_0x34eba0,_0x32d2fc)),_0x14d818),(W(_0x1f90cb,_0x34eba0)[_0x251768(0x135)]||[])[_0x251768(0xb3)](function(_0x5125d6,_0x4b7567){var _0x43f3fd=_0x251768;return y(_0x5125d6,''['concat'](_0x1ecad5,'-')['concat'](_0x1f90cb['tag'],'-')[_0x43f3fd(0xe5)](_0x4b7567),_0x34eba0,void 0x0,_0x32d2fc);}));}function q(_0x5ef2e1,_0x132308,_0xcc6fa3){var _0x14f789=_0x2119a1,_0x42cf91=u({},_0x5ef2e1['attrs']);_0xcc6fa3!=null&&_0xcc6fa3[_0x14f789(0x159)]&&_0x42cf91['fill']===_0x14f789(0x159)&&(_0x42cf91[_0x14f789(0xdb)]=_0xcc6fa3['colorChannel1']),_0x5ef2e1[_0x14f789(0xe6)]===_0x14f789(0x123)&&_0x42cf91['id']&&(_0x42cf91['id']=_0x42cf91['id']+_0x132308[_0x14f789(0x174)]),Object[_0x14f789(0x118)](_0x42cf91)[_0x14f789(0xad)](function(_0x4831d4){var _0x64ae7b=_0x14f789,_0x469819=_0x4831d4[0x0],_0x34a5b7=_0x4831d4[0x1];_0x469819==='mask'&&typeof _0x34a5b7==_0x64ae7b(0x108)&&(_0x42cf91[_0x469819]=_0x34a5b7['replace'](/url\(#(.*)\)/,_0x64ae7b(0xc9)[_0x64ae7b(0xe5)](_0x132308[_0x64ae7b(0x174)],')')));});var _0x26ae18=_0x132308[_0x14f789(0x13c)];return!_0x26ae18||_0x26ae18[_0x14f789(0x12a)]===0x0||(_0x5ef2e1['tag']===_0x14f789(0x114)&&_0x42cf91[_0x14f789(0x17c)]&&(_0x42cf91[_0x14f789(0x17c)]=_0x42cf91[_0x14f789(0x17c)]+_0x132308['idSuffix']),Object[_0x14f789(0x118)](_0x42cf91)[_0x14f789(0xad)](function(_0x2eb0c6){var _0x889e82=_0x14f789,_0x11cbc6=_0x2eb0c6[0x0],_0x2475ee=_0x2eb0c6[0x1];typeof _0x2475ee==_0x889e82(0x108)&&(_0x42cf91[_0x11cbc6]=_0x2475ee['replace'](/url\(#(.*)\)/,'url(#$1'[_0x889e82(0xe5)](_0x132308[_0x889e82(0x174)],')')));})),_0x42cf91;}function W(_0x2dbe37,_0x81b65f){var _0x3889b5=_0x2119a1,_0x1785ff,_0x4e1d7f=_0x81b65f['defIds'];return!_0x4e1d7f||_0x4e1d7f[_0x3889b5(0x12a)]===0x0?_0x2dbe37:_0x2dbe37[_0x3889b5(0xe6)]===_0x3889b5(0x180)&&(!((_0x1785ff=_0x2dbe37[_0x3889b5(0x135)])===null||_0x1785ff===void 0x0)&&_0x1785ff[_0x3889b5(0x12a)])?u(u({},_0x2dbe37),{'children':_0x2dbe37[_0x3889b5(0x135)][_0x3889b5(0xb3)](function(_0x33bf33){var _0x4953d9=_0x3889b5;return typeof _0x33bf33[_0x4953d9(0x10e)]['id']==_0x4953d9(0x108)&&_0x4e1d7f&&_0x4e1d7f[_0x4953d9(0xe2)](_0x33bf33[_0x4953d9(0x10e)]['id'])>-0x1?u(u({},_0x33bf33),{'attrs':u(u({},_0x33bf33['attrs']),{'id':_0x33bf33[_0x4953d9(0x10e)]['id']+_0x81b65f[_0x4953d9(0x174)]})}):_0x33bf33;})}):_0x2dbe37;}function G(){var _0x46b19e=_0x2119a1;return Math[_0x46b19e(0x127)]()['toString'](0x24)[_0x46b19e(0x133)](0x2,0x8);}j[_0x2119a1(0xc2)]=_0x2119a1(0x163);var B={'tag':'svg','attrs':{'fill':_0x2119a1(0xfc),'viewBox':_0x2119a1(0xae),'width':_0x2119a1(0x189),'height':'1em'},'children':[{'tag':_0x2119a1(0x152),'attrs':{'fill':_0x2119a1(0xb0),'d':_0x2119a1(0xf8)}},{'tag':_0x2119a1(0x152),'attrs':{'fill':_0x2119a1(0xb0),'d':_0x2119a1(0xc5),'fillRule':_0x2119a1(0x15a),'clipRule':_0x2119a1(0x15a)}}]},P=f[_0x2119a1(0x101)](function(_0x5949ff,_0x1b9511){var _0x213db8=_0x2119a1;return f[_0x213db8(0xe3)](j,Object[_0x213db8(0x12b)]({},_0x5949ff,{'id':_0x213db8(0x178),'ref':_0x1b9511,'icon':B}));});P[_0x2119a1(0xc2)]=_0x2119a1(0xc6);var Y=Object['getOwnPropertyDescriptor'],R=(_0x1661b2,_0xad563d,_0x468311,_0x265c70)=>{for(var _0x816d90=_0x265c70>0x1?void 0x0:_0x265c70?Y(_0xad563d,_0x468311):_0xad563d,_0x13e420=_0x1661b2['length']-0x1,_0x4d10a9;_0x13e420>=0x0;_0x13e420--)(_0x4d10a9=_0x1661b2[_0x13e420])&&(_0x816d90=_0x4d10a9(_0x816d90)||_0x816d90);return _0x816d90;},S=(_0x363c1e,_0x27289f)=>(_0x21c1ef,_0x45527c)=>_0x27289f(_0x21c1ef,_0x45527c,_0x363c1e);exports['LiveShareController']=class extends o[_0x2119a1(0xbd)]{constructor(_0x53b0cd,_0x333336,_0x1da278){var _0x40ba63=_0x2119a1;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x53b0cd,this[_0x40ba63(0xdf)]=_0x333336,this[_0x40ba63(0x12e)]=_0x1da278,this[_0x40ba63(0x17a)]());}async[_0x2119a1(0xec)](_0x225710){var _0x39d83c=_0x2119a1;return this[_0x39d83c(0x146)]['has'](_0x225710)||await this[_0x39d83c(0x17e)](_0x225710),this[_0x39d83c(0x146)]['get'](_0x225710);}[_0x2119a1(0x17a)](){var _0x3a157e=_0x2119a1;this[_0x3a157e(0xf9)][_0x3a157e(0xe8)](o[_0x3a157e(0xd3)][_0x3a157e(0xda)])[_0x3a157e(0xcc)](b['takeUntil'](this[_0x3a157e(0x187)]))[_0x3a157e(0x117)](async _0x2c7e1a=>{var _0x2cae77=_0x3a157e;const _0x3feb6c=_0x2c7e1a[_0x2cae77(0x119)]();this['_entities'][_0x2cae77(0x164)](_0x3feb6c)||this[_0x2cae77(0x17e)](_0x3feb6c);}),this[_0x3a157e(0xf9)][_0x3a157e(0xb8)](o[_0x3a157e(0xd3)][_0x3a157e(0xda)])['pipe'](b[_0x3a157e(0x186)](this['dispose$']))[_0x3a157e(0x117)](_0x5c693c=>{var _0x47ec21=_0x3a157e;const _0x234bfb=_0x5c693c['getUnitId'](),_0x497303=this['_entities'][_0x47ec21(0xbc)](_0x234bfb);_0x497303==null||_0x497303['dispose']();});}async[_0x2119a1(0x17e)](_0x3a37c7){var _0x25a5b9=_0x2119a1;const _0x3785bc=await this['_collabSessionService'][_0x25a5b9(0xe1)](_0x3a37c7),_0x3f93ea=this['_injector']['createInstance'](exports['LiveShareCoordinator'],_0x3a37c7,_0x3785bc);return _0x3f93ea[_0x25a5b9(0xee)](),this['_entities'][_0x25a5b9(0xaf)](_0x3a37c7,_0x3f93ea),_0x3f93ea;}},exports['LiveShareController']=R([S(0x0,o[_0x2119a1(0x130)]),S(0x1,o[_0x2119a1(0xe0)](o['Injector'])),S(0x2,o[_0x2119a1(0xe0)](m[_0x2119a1(0xf7)]))],exports[_0x2119a1(0xb4)]);function _0x4768(){var _0x32b0c1=['indexOf','createElement','toStringTag','concat','tag','SetWorksheetActiveOperation','getTypeOfUnitAdded$','_unitID','send','SessionStatus','getLiveShareCoordinator','Start','init','DisposableCollection','find','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','useObservable','SetScrollOperation','ONLINE','You\x27re\x20presenting\x20the\x20document','next','CollaborationSessionService','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_univerInstanceService','clsx','div','none','UNIVER_UNKNOWN','className','jsx','LIVESHARE_REQUEST_HOST','forwardRef','idle','univer-size-4','default','112623JBAbQy','includes','button','string','getMemberID','LiveShareService','You\x27re\x20not\x20following\x20the\x20presenter','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','attrs','live-share.config','defineProperty','PRESENTING','OFFLINE','end','use','_reporters','onRendered','subscribe','entries','getUnitId','extend','Fragment','clear','@univerjs/design','unsubscribe','_configService','UniverLiveSharePlugin','_stopPresenting','dispose','mask','call','@univerjs-pro/collaboration-client','IDLE','random','useState','_startFollowing','length','assign','getValue','icon','_collabSessionService','registerDependencies','IUniverInstanceService','disposeWithMe','_uiPartsService','substring','_liveShareService','children','getInitialStates','delete','not-following','registerInitialStateReporter','LiveShare','_handleOperation','defIds','_config','asObservable','registerSharedOperation','from','560FugqCa','stringify','2610665hFjcKA','LiveShareCoordinator','_commandService','_entities','_status','52384vIbApK','data','186RfXalA','getConfig','parse','useEffect','mutations','_handleOnline','_beIdle','LIVESHARE_FETCH_OPERATIONS','path','You\x27are\x20offline.','following','presenting','_handleNewChangeSets','type','sessionStatus$','colorChannel1','evenodd','tryStartPresenting','startFollowing','values','CollaborationEvent','unitId','Button','_sharedOperations','shouldShareOperation','UniverIcon','has','Plugin','_startPresenting','Start\x20following','_handleNewHost','IConfigService','throttleTime','useRef','You\x27re\x20following\x20the\x20presenter','stopPresenting','_mountLiveShare','320IMSXqz','onCommandExecuted','SetZoomRatioOperation','NOT_FOLLOWING','parseProtocolChangeset','idSuffix','getOwnPropertyDescriptor','_commandDisposable','getCurrentTypeOfUnit$','live-share-single','18112gxgSwe','_init','react','xlink:href','Dropdown','_startLiveShareCoordinator','connectInjector','defs','add','SAME_OPERATION_SHARE_INTERVAL','_collabSession','DependentOn','operations','takeUntil','dispose$','_stopFollowing','1em','Present\x20this\x20document','CommandType','FOLLOWING','DesktopLiveShareController','InsertSheetMutation','touchDependencies','Subject','OPERATION','@univerjs/sheets-ui','forEach','0\x200\x2016\x2016','set','currentColor','UniverCollaborationClientPlugin','status$','map','LiveShareController','Injector','stopFollowing','useDependency','getTypeOfUnitDisposed$','_fetchOperations','symbol','getOwnPropertySymbols','get','RxDisposable','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','rxjs/operators','_status$','complete','displayName','LIVESHARE_OPERATION','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','LiveShareSingle','3450024JoAOxX','_presenter','url(#$1','presenter','params','pipe','small','current','LiveShareStatus','toDisposable','jsxs','offline','UniverInstanceType','hasOwnProperty','onStarting','_handleTerminate','@univerjs-pro/collaboration','IUIPartsService','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','fill','BehaviorSubject','Disposable','1974231vKtkww','_injector','Inject','requireSession'];_0x4768=function(){return _0x32b0c1;};return _0x4768();}var h=(_0x321384=>(_0x321384[_0x2119a1(0x112)]=_0x2119a1(0xd2),_0x321384['IDLE']=_0x2119a1(0x102),_0x321384[_0x2119a1(0xa6)]=_0x2119a1(0x154),_0x321384[_0x2119a1(0x172)]=_0x2119a1(0x138),_0x321384[_0x2119a1(0x111)]='presenting',_0x321384))(h||{});const z=_0x2119a1(0x182),Z=0xc8;exports[_0x2119a1(0x144)]=class extends o[_0x2119a1(0xbd)]{constructor(_0x5023d0,_0x142872,_0x3bcd6f,_0x354725,_0x1d5f2e){var _0x259e47=_0x2119a1;super(),v(this,'_status$',new L[(_0x259e47(0xdc))](_0x259e47(0x102))),v(this,_0x259e47(0xb2),this[_0x259e47(0xc0)][_0x259e47(0x13e)]()),v(this,_0x259e47(0x17a),!0x1),v(this,_0x259e47(0x176),null),v(this,'_presenter',null),(this[_0x259e47(0xe9)]=_0x5023d0,this[_0x259e47(0x183)]=_0x142872,this[_0x259e47(0x11f)]=_0x3bcd6f,this[_0x259e47(0x134)]=_0x354725,this['_commandService']=_0x1d5f2e);}get[_0x2119a1(0x147)](){var _0x2fc0a6=_0x2119a1;return this[_0x2fc0a6(0xc0)][_0x2fc0a6(0x12c)]();}[_0x2119a1(0x122)](){var _0x31536f=_0x2119a1,_0x56a06f;(_0x56a06f=this[_0x31536f(0x176)])==null||_0x56a06f[_0x31536f(0x122)](),this[_0x31536f(0xc0)][_0x31536f(0xf6)](_0x31536f(0x102)),this[_0x31536f(0xc0)][_0x31536f(0xc1)]();}['init'](){var _0x5ccdfd=_0x2119a1;this[_0x5ccdfd(0x17a)]||(this[_0x5ccdfd(0x17a)]=!0x0,this['_collabSession'][_0x5ccdfd(0x158)][_0x5ccdfd(0xcc)](b[_0x5ccdfd(0x186)](this['dispose$']))[_0x5ccdfd(0x117)](_0x3a9780=>{var _0x59cfd0=_0x5ccdfd;switch(_0x3a9780){case m[_0x59cfd0(0xeb)][_0x59cfd0(0x112)]:this[_0x59cfd0(0xc4)]();break;case m['SessionStatus'][_0x59cfd0(0xf4)]:this[_0x59cfd0(0x14f)]();break;}}),this['_collabSession']['event$'][_0x5ccdfd(0xcc)](b[_0x5ccdfd(0x186)](this['dispose$']))[_0x5ccdfd(0x117)](_0x2db858=>{var _0x1975f6=_0x5ccdfd;const {eventID:_0x199a66}=_0x2db858;switch(_0x199a66){case _[_0x1975f6(0x15e)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2db858);break;case _[_0x1975f6(0x15e)][_0x1975f6(0xc3)]:this[_0x1975f6(0x13b)](_0x2db858);break;case _[_0x1975f6(0x15e)]['LIVESHARE_TERMINATE']:this[_0x1975f6(0xd6)]();break;case _[_0x1975f6(0x15e)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x2db858);break;}}));}[_0x2119a1(0x15b)](){var _0x1cd92b=_0x2119a1;this['_collabSession'][_0x1cd92b(0xea)]({'eventID':_['CollaborationEvent'][_0x1cd92b(0x100)],'data':{'unitID':this[_0x1cd92b(0xe9)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1cd92b(0xe9)]);}[_0x2119a1(0x16d)](){var _0x2b7f2a=_0x2119a1;this[_0x2b7f2a(0x147)]===_0x2b7f2a(0x155)&&(this['_status$'][_0x2b7f2a(0xf6)]('idle'),this[_0x2b7f2a(0x183)][_0x2b7f2a(0xea)]({'eventID':_[_0x2b7f2a(0x15e)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2b7f2a(0xe9)]}},this[_0x2b7f2a(0xe9)]));}[_0x2119a1(0x15c)](){var _0x4741b5=_0x2119a1;this[_0x4741b5(0x147)]==='not-following'&&(this[_0x4741b5(0xc0)][_0x4741b5(0xf6)]('following'),this[_0x4741b5(0x129)]());}[_0x2119a1(0xb6)](){var _0x767257=_0x2119a1;this['_status']===_0x767257(0x154)&&this[_0x767257(0x188)]();}[_0x2119a1(0x168)](_0x28df8c){var _0x3d79ba=_0x2119a1;const {presenter:_0xe43f36}=_0x28df8c[_0x3d79ba(0x149)],_0xb5125d=this['_collabSession'][_0x3d79ba(0x109)]();this[_0x3d79ba(0xc8)]=_0xe43f36,_0xe43f36===_0xb5125d?(this[_0x3d79ba(0x188)](),this[_0x3d79ba(0x166)]()):this['_status']!==_0x3d79ba(0x138)&&(this['_stopPresenting'](),this[_0x3d79ba(0x129)]());}[_0x2119a1(0xb9)](){var _0x5848bc=_0x2119a1;const _0x49d306={'eventID':_[_0x5848bc(0x15e)][_0x5848bc(0x151)]};this[_0x5848bc(0x183)]['send'](_0x49d306,this[_0x5848bc(0xe9)]);}[_0x2119a1(0xd6)](){var _0x53d74b=_0x2119a1;this[_0x53d74b(0xc8)]=null,this[_0x53d74b(0x147)]!=='presenting'&&this['_beIdle']();}[_0x2119a1(0x156)](_0x30ecce){var _0x2b6ce1=_0x2119a1;if(this[_0x2b6ce1(0x147)]===_0x2b6ce1(0x154)&&this[_0x2b6ce1(0xc8)]===_0x30ecce['data']['memberID']){const _0x3f7462=_[_0x2b6ce1(0x173)](_0x30ecce['data'])[_0x2b6ce1(0x14e)]['reverse']()[_0x2b6ce1(0xf0)](_0x71ef6b=>_0x71ef6b['id']===C[_0x2b6ce1(0xa8)]['id']);if(_0x3f7462){const _0x2e8c85=_0x3f7462[_0x2b6ce1(0xcb)][_0x2b6ce1(0x15f)],_0x48900d=_0x3f7462[_0x2b6ce1(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x3cae4a=_0x2b6ce1;this[_0x3cae4a(0x145)]['executeCommand'](C[_0x3cae4a(0xe7)]['id'],{'unitId':_0x2e8c85,'subUnitId':_0x48900d},{'fromCollab':!0x0});});}}}[_0x2119a1(0x166)](){var _0x526796=_0x2119a1;this[_0x526796(0xc0)]['next'](_0x526796(0x155));const _0x5df5a3=new Map(),_0x4a3111=this[_0x526796(0x176)]=new o[(_0x526796(0xef))]();_0x4a3111[_0x526796(0x181)](o[_0x526796(0xd0)](()=>{var _0x2fef21=_0x526796;_0x5df5a3[_0x2fef21(0xad)](_0x3754c6=>_0x3754c6[_0x2fef21(0xc1)]()),_0x5df5a3[_0x2fef21(0x11c)]();})),_0x4a3111[_0x526796(0x181)](this['_commandService'][_0x526796(0x170)](_0x5bafb0=>{var _0x1988ff=_0x526796,_0x4d05ac;if(_0x5bafb0[_0x1988ff(0x157)]!==o[_0x1988ff(0xa5)][_0x1988ff(0xab)]||!this[_0x1988ff(0x134)][_0x1988ff(0x162)](_0x5bafb0['id']))return;const {id:_0xb3ccc2}=_0x5bafb0;let _0x2424ca;_0x5df5a3[_0x1988ff(0x164)](_0xb3ccc2)?_0x2424ca=_0x5df5a3[_0x1988ff(0xbc)](_0xb3ccc2):(_0x2424ca=new L[(_0x1988ff(0xaa))](),_0x5df5a3[_0x1988ff(0xaf)](_0xb3ccc2,_0x2424ca),_0x2424ca['pipe'](b[_0x1988ff(0x16a)]((_0x4d05ac=this[_0x1988ff(0x11f)][_0x1988ff(0x14b)](z))!=null?_0x4d05ac:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1988ff(0x117)](_0x472e61=>{var _0x11ddd1=_0x1988ff;this['_collabSession'][_0x11ddd1(0xea)]({'eventID':_['CollaborationEvent'][_0x11ddd1(0xc3)],'data':{'unitID':this['_unitID'],'operations':{[_0x472e61['id']]:{'id':_0x472e61['id'],'params':JSON[_0x11ddd1(0x142)](_0x472e61[_0x11ddd1(0xcb)])}}}},this[_0x11ddd1(0xe9)]);})),_0x2424ca[_0x1988ff(0xf6)](_0x5bafb0);})),this[_0x526796(0x134)]['getInitialStates'](this[_0x526796(0xe9)])[_0x526796(0xad)](_0x29871b=>this[_0x526796(0x183)][_0x526796(0xea)]({'eventID':_[_0x526796(0x15e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x526796(0xe9)],'operations':{[_0x29871b['id']]:{'id':_0x29871b['id'],'params':JSON[_0x526796(0x142)](_0x29871b['params'])}}}},this[_0x526796(0xe9)]));}[_0x2119a1(0x121)](){var _0x400a53=_0x2119a1,_0x2013a2;this[_0x400a53(0xc0)][_0x400a53(0xf6)](_0x400a53(0x102)),(_0x2013a2=this[_0x400a53(0x176)])==null||_0x2013a2[_0x400a53(0x122)](),this['_commandDisposable']=null;}[_0x2119a1(0x129)](){var _0x1335df=_0x2119a1,_0x4886f1;(_0x4886f1=this['_commandDisposable'])==null||_0x4886f1['dispose'](),this[_0x1335df(0xc0)][_0x1335df(0xf6)](_0x1335df(0x154));}[_0x2119a1(0x150)](){var _0x376f11=_0x2119a1,_0x38968d;this[_0x376f11(0xc0)][_0x376f11(0xf6)]('idle'),(_0x38968d=this[_0x376f11(0x176)])==null||_0x38968d['dispose'](),this['_commandDisposable']=null;}[_0x2119a1(0x188)](){var _0x2b0eae=_0x2119a1,_0x27a6aa;this[_0x2b0eae(0xc0)]['next'](_0x2b0eae(0x138)),(_0x27a6aa=this[_0x2b0eae(0x176)])==null||_0x27a6aa[_0x2b0eae(0x122)]();}[_0x2119a1(0x13b)](_0x179a16){var _0x1565a1=_0x2119a1;if([_0x1565a1(0x155),_0x1565a1(0x138),_0x1565a1(0xd2)][_0x1565a1(0x106)](this[_0x1565a1(0x147)])||!_0x179a16[_0x1565a1(0x149)][_0x1565a1(0xca)]||_0x179a16[_0x1565a1(0x149)][_0x1565a1(0xca)]===this[_0x1565a1(0x183)][_0x1565a1(0x109)]())return;this[_0x1565a1(0x147)]===_0x1565a1(0x102)&&this[_0x1565a1(0x129)]();const _0x1c64ba=_0x179a16['data'][_0x1565a1(0x185)];Object[_0x1565a1(0x15d)](_0x1c64ba)[_0x1565a1(0xad)](_0x1c7f17=>{var _0x2f49ae=_0x1565a1;this['_commandService']['executeCommand'](_0x1c7f17['id'],_0x1c7f17[_0x2f49ae(0xcb)]?JSON[_0x2f49ae(0x14c)](_0x1c7f17['params']):null,{'fromCollab':!0x0});});}[_0x2119a1(0xc4)](){var _0x3554b3=_0x2119a1,_0x32826c;this[_0x3554b3(0xc0)][_0x3554b3(0xf6)]('offline'),(_0x32826c=this['_commandDisposable'])==null||_0x32826c[_0x3554b3(0x122)]();}['_handleOnline'](){var _0x203e2d=_0x2119a1;this['_status$'][_0x203e2d(0xf6)]('idle'),this[_0x203e2d(0xb9)]();}},exports[_0x2119a1(0x144)]=R([S(0x2,o[_0x2119a1(0x169)]),S(0x3,o[_0x2119a1(0xe0)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x3960aa=_0x2119a1;const _0x39417c=p['useDependency'](exports[_0x3960aa(0xb4)]),_0x56306f=p[_0x3960aa(0xb7)](o[_0x3960aa(0x130)]),_0x4e2f72=p[_0x3960aa(0xf2)](()=>_0x56306f[_0x3960aa(0x177)](o[_0x3960aa(0xd3)][_0x3960aa(0xda)]),void 0x0,!0x1,[]),[_0x1c9013,_0xf8c1d1]=f['useState'](null),[_0x456fc9,_0x345b82]=f[_0x3960aa(0x128)](h['IDLE']),_0x314a2e=f[_0x3960aa(0x16b)](null);return f[_0x3960aa(0x14d)](()=>(_0x4e2f72&&_0x39417c[_0x3960aa(0xec)](_0x4e2f72[_0x3960aa(0x119)]())['then'](_0x265efe=>{var _0x12119e=_0x3960aa;_0xf8c1d1(_0x265efe),_0x314a2e['current']=_0x265efe['status$'][_0x12119e(0x117)](_0x190119=>{_0x345b82(_0x190119);});}),()=>{var _0x39ec05=_0x3960aa,_0x572074;(_0x572074=_0x314a2e[_0x39ec05(0xce)])==null||_0x572074[_0x39ec05(0x11e)](),_0x314a2e['current']=null;}),[_0x4e2f72,_0x39417c]),_0x1c9013?l['jsx'](g[_0x3960aa(0x17d)],{'align':_0x3960aa(0x113),'disabled':_0x456fc9===h[_0x3960aa(0x112)],'className':_0x3960aa(0x10c),'overlay':l[_0x3960aa(0xff)](J,{'status':_0x456fc9,'coordinator':_0x1c9013}),'children':l[_0x3960aa(0xff)](_0x3960aa(0x107),{'className':g[_0x3960aa(0xfa)](_0x3960aa(0xf1),{'univer-cursor-not-allowed':_0x456fc9===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x456fc9!==h[_0x3960aa(0x112)]}),'type':'button','children':l[_0x3960aa(0xff)](P,{'className':_0x3960aa(0x103)})})}):null;}function J(_0x1b2fef){var _0x2194c5=_0x2119a1;const {status:_0x2f9034,coordinator:_0x24d61c}=_0x1b2fef;switch(_0x2f9034){case h[_0x2194c5(0x126)]:return l['jsx'](K,{'coordinator':_0x24d61c});case h[_0x2194c5(0xa6)]:return l['jsx'](Q,{'coordinator':_0x24d61c});case h[_0x2194c5(0x172)]:return l['jsx'](X,{'coordinator':_0x24d61c});case h[_0x2194c5(0x112)]:return l[_0x2194c5(0xff)](te,{});case h[_0x2194c5(0x111)]:return l[_0x2194c5(0xff)](ee,{'coordinator':_0x24d61c});default:return null;}}function K(_0x51df1){var _0x239d72=_0x2119a1;const {coordinator:_0x202660}=_0x51df1;return l[_0x239d72(0xd1)](l[_0x239d72(0x11b)],{'children':[l['jsx']('div',{'className':_0x239d72(0xbe),'children':_0x239d72(0xa4)}),l[_0x239d72(0xff)](g[_0x239d72(0x160)],{'size':'small','type':_0x239d72(0x104),'onClick':()=>_0x202660[_0x239d72(0x15b)](),'children':_0x239d72(0xed)})]});}function Q(_0x319510){var _0xce581=_0x2119a1;const {coordinator:_0x2054e5}=_0x319510;return l[_0xce581(0xd1)](l['Fragment'],{'children':[l[_0xce581(0xff)](_0xce581(0xfb),{'className':_0xce581(0xbe),'children':_0xce581(0x16c)}),l[_0xce581(0xff)](g['Button'],{'size':_0xce581(0xcd),'type':_0xce581(0x104),'onClick':()=>_0x2054e5[_0xce581(0xb6)](),'children':'Stop\x20following'})]});}function X(_0x619323){var _0x415c5f=_0x2119a1;const {coordinator:_0x1923d9}=_0x619323;return l[_0x415c5f(0xd1)](l[_0x415c5f(0x11b)],{'children':[l[_0x415c5f(0xff)](_0x415c5f(0xfb),{'className':_0x415c5f(0xbe),'children':_0x415c5f(0x10b)}),l[_0x415c5f(0xff)](g['Button'],{'size':_0x415c5f(0xcd),'type':'text','onClick':()=>_0x1923d9['startFollowing'](),'children':_0x415c5f(0x167)})]});}function ee(_0x4e5ee8){var _0x28632c=_0x2119a1;const {coordinator:_0x275528}=_0x4e5ee8;return l[_0x28632c(0xd1)](l[_0x28632c(0x11b)],{'children':[l['jsx'](_0x28632c(0xfb),{'className':_0x28632c(0xbe),'children':_0x28632c(0xf5)}),l[_0x28632c(0xff)](g[_0x28632c(0x160)],{'size':'small','type':_0x28632c(0x104),'onClick':()=>_0x275528[_0x28632c(0x16d)](),'children':'Stop\x20presenting'})]});}function te(){var _0x415207=_0x2119a1;return l[_0x415207(0xff)](l['Fragment'],{'children':_0x415207(0x153)});}var ie=Object[_0x2119a1(0x175)],ne=(_0x45ee71,_0x1760da,_0x1e819c,_0x235380)=>{for(var _0x2b9524=_0x235380>0x1?void 0x0:_0x235380?ie(_0x1760da,_0x1e819c):_0x1760da,_0x2105c6=_0x45ee71['length']-0x1,_0x53b49d;_0x2105c6>=0x0;_0x2105c6--)(_0x53b49d=_0x45ee71[_0x2105c6])&&(_0x2b9524=_0x53b49d(_0x2b9524)||_0x2b9524);return _0x2b9524;},N=(_0x5599c9,_0x44b1ca)=>(_0x4b17f1,_0xbef493)=>_0x44b1ca(_0x4b17f1,_0xbef493,_0x5599c9);exports['DesktopLiveShareController']=class extends o[_0x2119a1(0xdd)]{constructor(_0x2321f8,_0x128f50){var _0x8cf462=_0x2119a1;super(),this[_0x8cf462(0xdf)]=_0x2321f8,this[_0x8cf462(0x132)]=_0x128f50,this[_0x8cf462(0x16e)]();}[_0x2119a1(0x16e)](){var _0x2dd622=_0x2119a1;this[_0x2dd622(0x131)](this[_0x2dd622(0x132)]['registerComponent'](p['BuiltInUIPart']['HEADER_MENU'],()=>p[_0x2dd622(0x17f)](A,this[_0x2dd622(0xdf)])));}},exports[_0x2119a1(0xa7)]=ne([N(0x0,o[_0x2119a1(0xe0)](o[_0x2119a1(0xb5)])),N(0x1,p[_0x2119a1(0xd8)])],exports[_0x2119a1(0xa7)]);var re=Object['defineProperty'],se=Object[_0x2119a1(0x175)],oe=(_0x213314,_0x51f921,_0x50e3a0)=>_0x51f921 in _0x213314?re(_0x213314,_0x51f921,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50e3a0}):_0x213314[_0x51f921]=_0x50e3a0,ae=(_0x3cbe55,_0x295aa3,_0x4ba027,_0x41aa84)=>{var _0x2ad61b=_0x2119a1;for(var _0x369ebe=_0x41aa84>0x1?void 0x0:_0x41aa84?se(_0x295aa3,_0x4ba027):_0x295aa3,_0x4624d8=_0x3cbe55[_0x2ad61b(0x12a)]-0x1,_0x5a456c;_0x4624d8>=0x0;_0x4624d8--)(_0x5a456c=_0x3cbe55[_0x4624d8])&&(_0x369ebe=_0x5a456c(_0x369ebe)||_0x369ebe);return _0x369ebe;},w=(_0x70bb66,_0x5f0a14)=>(_0x39a996,_0x30b817)=>_0x5f0a14(_0x39a996,_0x30b817,_0x70bb66),T=(_0x363a0b,_0x1c82f8,_0x417111)=>oe(_0x363a0b,typeof _0x1c82f8!=_0x2119a1(0xba)?_0x1c82f8+'':_0x1c82f8,_0x417111);const le=_0x2119a1(0xd9);exports[_0x2119a1(0x120)]=class extends o[_0x2119a1(0x165)]{constructor(_0x2a0b02=x,_0xbbda60,_0x5033db){var _0xf71014=_0x2119a1;super(),this[_0xf71014(0x13d)]=_0x2a0b02,this[_0xf71014(0xdf)]=_0xbbda60,this['_configService']=_0x5033db;const {..._0x4d6033}=o['merge']({},x,this['_config']);this[_0xf71014(0x11f)]['setConfig']($,_0x4d6033);}[_0x2119a1(0xd5)](){var _0x3f71d1=_0x2119a1;o[_0x3f71d1(0x12f)](this[_0x3f71d1(0xdf)],o['mergeOverrideWithDependencies']([[E],[exports[_0x3f71d1(0xb4)]],[O],[exports[_0x3f71d1(0xa7)]]],this[_0x3f71d1(0x13d)]['override'])),o[_0x3f71d1(0xa9)](this[_0x3f71d1(0xdf)],[[O]]);}[_0x2119a1(0x116)](){var _0x38e2ab=_0x2119a1;o[_0x38e2ab(0xa9)](this[_0x38e2ab(0xdf)],[[exports[_0x38e2ab(0xa7)]]]);}},T(exports['UniverLiveSharePlugin'],_0x2119a1(0x157),o['UniverInstanceType'][_0x2119a1(0xfd)]),T(exports[_0x2119a1(0x120)],'pluginName',le),exports[_0x2119a1(0x120)]=ae([o[_0x2119a1(0x184)](m[_0x2119a1(0xb1)]),w(0x1,o[_0x2119a1(0xe0)](o[_0x2119a1(0xb5)])),w(0x2,o[_0x2119a1(0x169)])],exports['UniverLiveSharePlugin']),exports[_0x2119a1(0x13a)]=A,exports[_0x2119a1(0x10a)]=E,exports[_0x2119a1(0xcf)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1d053e=_0x4d17;(function(_0xc214d3,_0x264060){var _0x2879aa=_0x4d17,_0x3e4b19=_0xc214d3();while(!![]){try{var _0x5c5e57=-parseInt(_0x2879aa(0x131))/0x1*(-parseInt(_0x2879aa(0xbe))/0x2)+parseInt(_0x2879aa(0xce))/0x3*(parseInt(_0x2879aa(0x11c))/0x4)+parseInt(_0x2879aa(0x167))/0x5*(parseInt(_0x2879aa(0x12e))/0x6)+parseInt(_0x2879aa(0x142))/0x7*(-parseInt(_0x2879aa(0xf9))/0x8)+-parseInt(_0x2879aa(0x16b))/0x9+parseInt(_0x2879aa(0xd7))/0xa*(parseInt(_0x2879aa(0x12d))/0xb)+parseInt(_0x2879aa(0xeb))/0xc;if(_0x5c5e57===_0x264060)break;else _0x3e4b19['push'](_0x3e4b19['shift']());}catch(_0x33a3c4){_0x3e4b19['push'](_0x3e4b19['shift']());}}}(_0x5f41,0xb0e81));var K=Object[_0x1d053e(0x16a)],q=(_0x308ba8,_0x509df3,_0xddaf17)=>_0x509df3 in _0x308ba8?K(_0x308ba8,_0x509df3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xddaf17}):_0x308ba8[_0x509df3]=_0xddaf17,d=(_0x31ff92,_0x3ba2e7,_0x381279)=>q(_0x31ff92,typeof _0x3ba2e7!=_0x1d053e(0x10e)?_0x3ba2e7+'':_0x3ba2e7,_0x381279);import{CollaborationSessionService as _0x2a0b5a,SessionStatus as _0x4447c3,UniverCollaborationClientPlugin as _0x5f42ba}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4b77c6,toDisposable as _0x47659c,Inject as _0x4ee71d,IUniverInstanceService as _0x1622ae,Injector as _0x139bab,IConfigService as _0x1bc4f5,ICommandService as _0x24effd,RxDisposable as _0x592a67,UniverInstanceType as _0x56ea93,DisposableCollection as _0x596020,CommandType as _0x453c3d,DependentOn as _0x3361d3,Plugin as _0x5711ad,merge as _0x121527,registerDependencies as _0x4da2ae,mergeOverrideWithDependencies as _0x910ba,touchDependencies as _0x45c617}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x6fecbc,InsertSheetMutation as _0x4ec1f3}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x19e69a,SetScrollOperation as _0xc7b3fd}from'@univerjs/sheets-ui';import{useDependency as _0x142198,useObservable as _0x314f30,IUIPartsService as _0x35c429,BuiltInUIPart as _0x5735d2,connectInjector as _0x210e7c}from'@univerjs/ui';import{jsx as _0x9861a0,jsxs as _0x5eb8c2,Fragment as _0x436476}from'react/jsx-runtime';import{Dropdown as _0x418940,clsx as _0x7fed82,Button as _0x457bae}from'@univerjs/design';import{forwardRef as _0x4425b9,useRef as _0x18d4f6,createElement as _0x367f2f,useState as _0x30c52d,useEffect as _0x53fe9e}from'react';import{CollaborationEvent as _0x572764,parseProtocolChangeset as _0xd6a569}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2d97bb,Subject as _0x154b7a}from'rxjs';import{takeUntil as _0x56e73d,throttleTime as _0x523d8b}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0x4b77c6{constructor(){var _0x4319fb=_0x1d053e;super(...arguments),d(this,_0x4319fb(0x163),new Set()),d(this,_0x4319fb(0x124),new Set());}[_0x1d053e(0xde)](_0x59987d){var _0x4a1dc4=_0x1d053e;return this[_0x4a1dc4(0x163)][_0x4a1dc4(0x169)](_0x59987d),_0x47659c(()=>this[_0x4a1dc4(0x163)][_0x4a1dc4(0x122)](_0x59987d));}[_0x1d053e(0x145)](_0x3cfab4){var _0x31558a=_0x1d053e;return this['_reporters'][_0x31558a(0x169)](_0x3cfab4),_0x47659c(()=>this[_0x31558a(0x124)][_0x31558a(0x122)](_0x3cfab4));}[_0x1d053e(0x14a)](_0x11f398){var _0x1369a3=_0x1d053e;return this[_0x1369a3(0x163)][_0x1369a3(0xf6)](_0x11f398);}['getInitialStates'](_0x2e18bb){var _0x4d8c95=_0x1d053e;return Array[_0x4d8c95(0x12c)](this[_0x4d8c95(0x124)])[_0x4d8c95(0x10f)](_0x16fab9=>_0x16fab9(_0x2e18bb));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x55af85,_0x4da1a5,_0x33bb54,_0x492438)=>{var _0x5ed736=_0x1d053e;for(var _0x1c923b=_0x492438>0x1?void 0x0:_0x492438?Ee(_0x4da1a5,_0x33bb54):_0x4da1a5,_0x5874e7=_0x55af85[_0x5ed736(0x161)]-0x1,_0x3bd2dd;_0x5874e7>=0x0;_0x5874e7--)(_0x3bd2dd=_0x55af85[_0x5874e7])&&(_0x1c923b=_0x3bd2dd(_0x1c923b)||_0x1c923b);return _0x1c923b;},Ne=(_0x53be87,_0x44cdf6)=>(_0x1d8384,_0xee6b4a)=>_0x44cdf6(_0x1d8384,_0xee6b4a,_0x53be87);let m=class extends _0x4b77c6{constructor(_0x1d884f){var _0x33bc9e=_0x1d053e;super(),this[_0x33bc9e(0xd1)]=_0x1d884f,this[_0x33bc9e(0x10a)]();}[_0x1d053e(0x10a)](){var _0x41c601=_0x1d053e;[_0x19e69a['id'],_0xc7b3fd['id'],_0x6fecbc['id']][_0x41c601(0xfc)](_0x19ecb9=>{var _0x562456=_0x41c601;this[_0x562456(0xf4)](this[_0x562456(0xd1)][_0x562456(0xde)](_0x19ecb9));});}};m=Ce([Ne(0x0,_0x4ee71d(x))],m);var c=function(){var _0x438eff=_0x1d053e;return c=Object[_0x438eff(0xc6)]||function(_0x2951e1){var _0x34115c=_0x438eff;for(var _0x24dee6,_0x3322a8=0x1,_0x5c3204=arguments['length'];_0x3322a8<_0x5c3204;_0x3322a8++){_0x24dee6=arguments[_0x3322a8];for(var _0x4f87f5 in _0x24dee6)Object[_0x34115c(0xd8)][_0x34115c(0x11e)][_0x34115c(0x100)](_0x24dee6,_0x4f87f5)&&(_0x2951e1[_0x4f87f5]=_0x24dee6[_0x4f87f5]);}return _0x2951e1;},c[_0x438eff(0x15e)](this,arguments);},we=function(_0x4d2279,_0x514c2a){var _0x27f258=_0x1d053e,_0x5c01f7={};for(var _0x44dbe1 in _0x4d2279)Object[_0x27f258(0xd8)][_0x27f258(0x11e)][_0x27f258(0x100)](_0x4d2279,_0x44dbe1)&&_0x514c2a['indexOf'](_0x44dbe1)<0x0&&(_0x5c01f7[_0x44dbe1]=_0x4d2279[_0x44dbe1]);if(_0x4d2279!=null&&typeof Object[_0x27f258(0xe4)]==_0x27f258(0xf5)){for(var _0x42e2b2=0x0,_0x44dbe1=Object[_0x27f258(0xe4)](_0x4d2279);_0x42e2b2<_0x44dbe1[_0x27f258(0x161)];_0x42e2b2++)_0x514c2a['indexOf'](_0x44dbe1[_0x42e2b2])<0x0&&Object[_0x27f258(0xd8)][_0x27f258(0x153)][_0x27f258(0x100)](_0x4d2279,_0x44dbe1[_0x42e2b2])&&(_0x5c01f7[_0x44dbe1[_0x42e2b2]]=_0x4d2279[_0x44dbe1[_0x42e2b2]]);}return _0x5c01f7;},W=_0x4425b9(function(_0x569fc5,_0x50ae02){var _0x2f638c=_0x1d053e,_0x7db7ad=_0x569fc5['icon'],_0x43c685=_0x569fc5['id'],_0x314185=_0x569fc5[_0x2f638c(0x129)],_0x4cb010=_0x569fc5['extend'],_0x32ee2b=we(_0x569fc5,['icon','id',_0x2f638c(0x129),_0x2f638c(0x108)]),_0x3c8d22='univerjs-icon\x20univerjs-icon-'[_0x2f638c(0x106)](_0x43c685,'\x20')['concat'](_0x314185||'')[_0x2f638c(0xcf)](),_0x4ecfb2=_0x18d4f6('_'['concat'](xe()));return Y(_0x7db7ad,''[_0x2f638c(0x106)](_0x43c685),{'defIds':_0x7db7ad[_0x2f638c(0x132)],'idSuffix':_0x4ecfb2[_0x2f638c(0x13c)]},c({'ref':_0x50ae02,'className':_0x3c8d22},_0x32ee2b),_0x4cb010);});function Y(_0x90c328,_0x41b639,_0x2231ca,_0x40a4f5,_0x50751f){var _0x17cd07=_0x1d053e;return _0x367f2f(_0x90c328['tag'],c(c({'key':_0x41b639},De(_0x90c328,_0x2231ca,_0x50751f)),_0x40a4f5),(Le(_0x90c328,_0x2231ca)[_0x17cd07(0xbc)]||[])[_0x17cd07(0x10f)](function(_0x24bde4,_0x43c3ae){var _0x139493=_0x17cd07;return Y(_0x24bde4,''[_0x139493(0x106)](_0x41b639,'-')[_0x139493(0x106)](_0x90c328['tag'],'-')[_0x139493(0x106)](_0x43c3ae),_0x2231ca,void 0x0,_0x50751f);}));}function De(_0x5ec61c,_0x36d212,_0xa117cb){var _0x829740=_0x1d053e,_0x1d2a24=c({},_0x5ec61c[_0x829740(0x136)]);_0xa117cb!=null&&_0xa117cb[_0x829740(0x15b)]&&_0x1d2a24[_0x829740(0x156)]==='colorChannel1'&&(_0x1d2a24[_0x829740(0x156)]=_0xa117cb[_0x829740(0x15b)]),_0x5ec61c['tag']===_0x829740(0x15f)&&_0x1d2a24['id']&&(_0x1d2a24['id']=_0x1d2a24['id']+_0x36d212[_0x829740(0x121)]),Object['entries'](_0x1d2a24)[_0x829740(0xfc)](function(_0x25c6f1){var _0x5d9679=_0x829740,_0x47ad25=_0x25c6f1[0x0],_0x14fa60=_0x25c6f1[0x1];_0x47ad25===_0x5d9679(0x15f)&&typeof _0x14fa60==_0x5d9679(0xfb)&&(_0x1d2a24[_0x47ad25]=_0x14fa60[_0x5d9679(0x104)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x36d212[_0x5d9679(0x121)],')')));});var _0x3ce0b7=_0x36d212[_0x829740(0x132)];return!_0x3ce0b7||_0x3ce0b7[_0x829740(0x161)]===0x0||(_0x5ec61c[_0x829740(0xcd)]==='use'&&_0x1d2a24[_0x829740(0x15d)]&&(_0x1d2a24[_0x829740(0x15d)]=_0x1d2a24[_0x829740(0x15d)]+_0x36d212[_0x829740(0x121)]),Object[_0x829740(0x107)](_0x1d2a24)[_0x829740(0xfc)](function(_0x3642ab){var _0x2853f4=_0x829740,_0x45854f=_0x3642ab[0x0],_0x5997af=_0x3642ab[0x1];typeof _0x5997af=='string'&&(_0x1d2a24[_0x45854f]=_0x5997af[_0x2853f4(0x104)](/url\(#(.*)\)/,'url(#$1'[_0x2853f4(0x106)](_0x36d212[_0x2853f4(0x121)],')')));})),_0x1d2a24;}function Le(_0x3b9110,_0x43bf62){var _0x5933c6=_0x1d053e,_0x1718dc,_0x1b32d4=_0x43bf62[_0x5933c6(0x132)];return!_0x1b32d4||_0x1b32d4[_0x5933c6(0x161)]===0x0?_0x3b9110:_0x3b9110[_0x5933c6(0xcd)]===_0x5933c6(0x117)&&(!((_0x1718dc=_0x3b9110[_0x5933c6(0xbc)])===null||_0x1718dc===void 0x0)&&_0x1718dc[_0x5933c6(0x161)])?c(c({},_0x3b9110),{'children':_0x3b9110['children']['map'](function(_0x3a1cd6){var _0x4fdfa9=_0x5933c6;return typeof _0x3a1cd6[_0x4fdfa9(0x136)]['id']==_0x4fdfa9(0xfb)&&_0x1b32d4&&_0x1b32d4[_0x4fdfa9(0x14e)](_0x3a1cd6[_0x4fdfa9(0x136)]['id'])>-0x1?c(c({},_0x3a1cd6),{'attrs':c(c({},_0x3a1cd6[_0x4fdfa9(0x136)]),{'id':_0x3a1cd6[_0x4fdfa9(0x136)]['id']+_0x43bf62[_0x4fdfa9(0x121)]})}):_0x3a1cd6;})}):_0x3b9110;}function xe(){var _0x3b4a2e=_0x1d053e;return Math[_0x3b4a2e(0xe9)]()['toString'](0x24)[_0x3b4a2e(0x123)](0x2,0x8);}W[_0x1d053e(0x159)]='UniverIcon';var ye={'tag':'svg','attrs':{'fill':_0x1d053e(0xc9),'viewBox':'0\x200\x2016\x2016','width':_0x1d053e(0x12f),'height':_0x1d053e(0x12f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x1d053e(0x164),'attrs':{'fill':_0x1d053e(0xd5),'d':_0x1d053e(0x13e),'fillRule':_0x1d053e(0x165),'clipRule':_0x1d053e(0x165)}}]},z=_0x4425b9(function(_0x4c4260,_0x5820d3){var _0x43a510=_0x1d053e;return _0x367f2f(W,Object[_0x43a510(0xc6)]({},_0x4c4260,{'id':'live-share-single','ref':_0x5820d3,'icon':ye}));});z['displayName']=_0x1d053e(0xda);var Re=Object[_0x1d053e(0x102)],B=(_0x1b81e9,_0x3d9e77,_0x4cf181,_0x55318d)=>{var _0x404ea6=_0x1d053e;for(var _0x3c1bb9=_0x55318d>0x1?void 0x0:_0x55318d?Re(_0x3d9e77,_0x4cf181):_0x3d9e77,_0x298634=_0x1b81e9[_0x404ea6(0x161)]-0x1,_0x4c1828;_0x298634>=0x0;_0x298634--)(_0x4c1828=_0x1b81e9[_0x298634])&&(_0x3c1bb9=_0x4c1828(_0x3c1bb9)||_0x3c1bb9);return _0x3c1bb9;},f=(_0x581829,_0x2189dc)=>(_0x24b58d,_0x5dc610)=>_0x2189dc(_0x24b58d,_0x5dc610,_0x581829);let I=class extends _0x592a67{constructor(_0x42a280,_0x2baca1,_0x40cb9c){var _0x5d87c1=_0x1d053e;super(),d(this,_0x5d87c1(0xcb),new Map()),(this['_univerInstanceService']=_0x42a280,this[_0x5d87c1(0x140)]=_0x2baca1,this[_0x5d87c1(0x10d)]=_0x40cb9c,this['_init']());}async['getLiveShareCoordinator'](_0x1583f5){var _0x4d7822=_0x1d053e;return this[_0x4d7822(0xcb)][_0x4d7822(0xf6)](_0x1583f5)||await this[_0x4d7822(0x162)](_0x1583f5),this['_entities']['get'](_0x1583f5);}[_0x1d053e(0x10a)](){var _0x3019a5=_0x1d053e;this[_0x3019a5(0xc7)]['getTypeOfUnitAdded$'](_0x56ea93[_0x3019a5(0x130)])[_0x3019a5(0xef)](_0x56e73d(this[_0x3019a5(0xff)]))[_0x3019a5(0xe7)](async _0x400210=>{var _0x4a51eb=_0x3019a5;const _0x5ca978=_0x400210[_0x4a51eb(0x127)]();this['_entities'][_0x4a51eb(0xf6)](_0x5ca978)||this['_startLiveShareCoordinator'](_0x5ca978);}),this['_univerInstanceService'][_0x3019a5(0x13b)](_0x56ea93[_0x3019a5(0x130)])['pipe'](_0x56e73d(this[_0x3019a5(0xff)]))['subscribe'](_0x51ab89=>{var _0x99e31f=_0x3019a5;const _0x17304c=_0x51ab89['getUnitId'](),_0x34eb0f=this[_0x99e31f(0xcb)][_0x99e31f(0x13d)](_0x17304c);_0x34eb0f==null||_0x34eb0f[_0x99e31f(0x120)]();});}async[_0x1d053e(0x162)](_0x11af06){var _0x295698=_0x1d053e;const _0x2be9a2=await this[_0x295698(0x10d)][_0x295698(0xee)](_0x11af06),_0x5cfad6=this['_injector'][_0x295698(0x125)](w,_0x11af06,_0x2be9a2);return _0x5cfad6[_0x295698(0xdd)](),this[_0x295698(0xcb)]['set'](_0x11af06,_0x5cfad6),_0x5cfad6;}};I=B([f(0x0,_0x1622ae),f(0x1,_0x4ee71d(_0x139bab)),f(0x2,_0x4ee71d(_0x2a0b5a))],I);var h=(_0x22524c=>(_0x22524c['OFFLINE']=_0x1d053e(0xfd),_0x22524c['IDLE']=_0x1d053e(0xf3),_0x22524c[_0x1d053e(0xc4)]='following',_0x22524c[_0x1d053e(0x151)]='not-following',_0x22524c[_0x1d053e(0xd2)]=_0x1d053e(0x16e),_0x22524c))(h||{});const Pe=_0x1d053e(0xe6),Ae=0xc8;let w=class extends _0x592a67{constructor(_0x128340,_0x3fa777,_0x3c24a8,_0x1f28bd,_0x5ec0d2){var _0x348a2b=_0x1d053e;super(),d(this,'_status$',new _0x2d97bb(_0x348a2b(0xf3))),d(this,_0x348a2b(0x134),this['_status$'][_0x348a2b(0xe5)]()),d(this,'_init',!0x1),d(this,_0x348a2b(0xd9),null),d(this,_0x348a2b(0x119),null),(this[_0x348a2b(0x126)]=_0x128340,this[_0x348a2b(0xc8)]=_0x3fa777,this['_configService']=_0x3c24a8,this['_liveShareService']=_0x1f28bd,this['_commandService']=_0x5ec0d2);}get[_0x1d053e(0xc0)](){var _0x201781=_0x1d053e;return this['_status$'][_0x201781(0x101)]();}[_0x1d053e(0x120)](){var _0x3a8ad7=_0x1d053e,_0x1073fe;(_0x1073fe=this['_commandDisposable'])==null||_0x1073fe[_0x3a8ad7(0x120)](),this[_0x3a8ad7(0x110)][_0x3a8ad7(0x11f)](_0x3a8ad7(0xf3)),this[_0x3a8ad7(0x110)][_0x3a8ad7(0xc1)]();}['init'](){var _0x5c9ecb=_0x1d053e;this[_0x5c9ecb(0x10a)]||(this['_init']=!0x0,this[_0x5c9ecb(0xc8)]['sessionStatus$']['pipe'](_0x56e73d(this['dispose$']))[_0x5c9ecb(0xe7)](_0x33a4ed=>{var _0x5f4007=_0x5c9ecb;switch(_0x33a4ed){case _0x4447c3['OFFLINE']:this[_0x5f4007(0xdf)]();break;case _0x4447c3[_0x5f4007(0x12a)]:this[_0x5f4007(0xea)]();break;}}),this['_collabSession'][_0x5c9ecb(0x11b)]['pipe'](_0x56e73d(this[_0x5c9ecb(0xff)]))[_0x5c9ecb(0xe7)](_0x14429e=>{var _0x45e64f=_0x5c9ecb;const {eventID:_0x39770d}=_0x14429e;switch(_0x39770d){case _0x572764[_0x45e64f(0xc2)]:this[_0x45e64f(0x103)](_0x14429e);break;case _0x572764[_0x45e64f(0xf7)]:this['_handleOperation'](_0x14429e);break;case _0x572764['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x572764[_0x45e64f(0xf1)]:this[_0x45e64f(0x13a)](_0x14429e);break;}}));}['tryStartPresenting'](){var _0x430ea0=_0x1d053e;this[_0x430ea0(0xc8)][_0x430ea0(0xd4)]({'eventID':_0x572764[_0x430ea0(0x139)],'data':{'unitID':this[_0x430ea0(0x126)],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x1d053e(0xed)](){var _0x49cbb6=_0x1d053e;this[_0x49cbb6(0xc0)]==='presenting'&&(this[_0x49cbb6(0x110)][_0x49cbb6(0x11f)](_0x49cbb6(0xf3)),this['_collabSession']['send']({'eventID':_0x572764[_0x49cbb6(0x10b)],'data':{'unitID':this[_0x49cbb6(0x126)]}},this[_0x49cbb6(0x126)]));}[_0x1d053e(0x109)](){var _0x4a1a75=_0x1d053e;this[_0x4a1a75(0xc0)]==='not-following'&&(this[_0x4a1a75(0x110)][_0x4a1a75(0x11f)]('following'),this[_0x4a1a75(0xf8)]());}[_0x1d053e(0x154)](){var _0x567324=_0x1d053e;this[_0x567324(0xc0)]===_0x567324(0xfe)&&this[_0x567324(0xe3)]();}[_0x1d053e(0x103)](_0x332220){var _0x33420f=_0x1d053e;const {presenter:_0x36184e}=_0x332220['data'],_0x434b13=this['_collabSession'][_0x33420f(0xc5)]();this['_presenter']=_0x36184e,_0x36184e===_0x434b13?(this[_0x33420f(0xe3)](),this[_0x33420f(0xdb)]()):this[_0x33420f(0xc0)]!=='not-following'&&(this[_0x33420f(0x148)](),this[_0x33420f(0xf8)]());}[_0x1d053e(0x133)](){var _0x5ed814=_0x1d053e;const _0x3aca41={'eventID':_0x572764['LIVESHARE_FETCH_OPERATIONS']};this[_0x5ed814(0xc8)][_0x5ed814(0xd4)](_0x3aca41,this[_0x5ed814(0x126)]);}[_0x1d053e(0xf0)](){var _0x742a2c=_0x1d053e;this[_0x742a2c(0x119)]=null,this['_status']!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x28afd4){var _0x27b335=_0x1d053e;if(this[_0x27b335(0xc0)]===_0x27b335(0xfe)&&this[_0x27b335(0x119)]===_0x28afd4[_0x27b335(0xca)][_0x27b335(0x112)]){const _0x5676dd=_0xd6a569(_0x28afd4[_0x27b335(0xca)])[_0x27b335(0x152)][_0x27b335(0x16f)]()[_0x27b335(0x143)](_0x2c5c4a=>_0x2c5c4a['id']===_0x4ec1f3['id']);if(_0x5676dd){const _0x43ae3a=_0x5676dd[_0x27b335(0x170)][_0x27b335(0x16d)],_0x1ffe2b=_0x5676dd['params'][_0x27b335(0x14d)]['id'];setTimeout(()=>{var _0x128dca=_0x27b335;this[_0x128dca(0x15c)]['executeCommand'](_0x6fecbc['id'],{'unitId':_0x43ae3a,'subUnitId':_0x1ffe2b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a4df6=_0x1d053e;this[_0x3a4df6(0x110)][_0x3a4df6(0x11f)](_0x3a4df6(0x16e));const _0x5a3172=new Map(),_0xc45e8c=this['_commandDisposable']=new _0x596020();_0xc45e8c['add'](_0x47659c(()=>{var _0x41ad82=_0x3a4df6;_0x5a3172[_0x41ad82(0xfc)](_0x38d0ce=>_0x38d0ce[_0x41ad82(0xc1)]()),_0x5a3172[_0x41ad82(0x128)]();})),_0xc45e8c['add'](this['_commandService']['onCommandExecuted'](_0x7c1d50=>{var _0x59387e=_0x3a4df6,_0x499efd;if(_0x7c1d50[_0x59387e(0xe1)]!==_0x453c3d[_0x59387e(0x144)]||!this['_liveShareService'][_0x59387e(0x14a)](_0x7c1d50['id']))return;const {id:_0x33c85d}=_0x7c1d50;let _0x1957bc;_0x5a3172[_0x59387e(0xf6)](_0x33c85d)?_0x1957bc=_0x5a3172[_0x59387e(0x13d)](_0x33c85d):(_0x1957bc=new _0x154b7a(),_0x5a3172[_0x59387e(0x150)](_0x33c85d,_0x1957bc),_0x1957bc[_0x59387e(0xef)](_0x523d8b((_0x499efd=this[_0x59387e(0x141)][_0x59387e(0xf2)](Pe))!=null?_0x499efd:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x300031=>{var _0x53b43a=_0x59387e;this['_collabSession'][_0x53b43a(0xd4)]({'eventID':_0x572764[_0x53b43a(0xf7)],'data':{'unitID':this[_0x53b43a(0x126)],'operations':{[_0x300031['id']]:{'id':_0x300031['id'],'params':JSON[_0x53b43a(0xc3)](_0x300031[_0x53b43a(0x170)])}}}},this[_0x53b43a(0x126)]);})),_0x1957bc[_0x59387e(0x11f)](_0x7c1d50);})),this[_0x3a4df6(0xd1)][_0x3a4df6(0xd3)](this[_0x3a4df6(0x126)])[_0x3a4df6(0xfc)](_0x47d311=>this[_0x3a4df6(0xc8)][_0x3a4df6(0xd4)]({'eventID':_0x572764[_0x3a4df6(0xf7)],'data':{'unitID':this[_0x3a4df6(0x126)],'operations':{[_0x47d311['id']]:{'id':_0x47d311['id'],'params':JSON[_0x3a4df6(0xc3)](_0x47d311[_0x3a4df6(0x170)])}}}},this['_unitID']));}[_0x1d053e(0x148)](){var _0xf05077=_0x1d053e,_0x283470;this[_0xf05077(0x110)][_0xf05077(0x11f)](_0xf05077(0xf3)),(_0x283470=this[_0xf05077(0xd9)])==null||_0x283470[_0xf05077(0x120)](),this[_0xf05077(0xd9)]=null;}['_startFollowing'](){var _0x49c326=_0x1d053e,_0x3e78ed;(_0x3e78ed=this[_0x49c326(0xd9)])==null||_0x3e78ed[_0x49c326(0x120)](),this['_status$'][_0x49c326(0x11f)](_0x49c326(0xfe));}[_0x1d053e(0xd6)](){var _0x20b500=_0x1d053e,_0x447bae;this['_status$']['next'](_0x20b500(0xf3)),(_0x447bae=this[_0x20b500(0xd9)])==null||_0x447bae[_0x20b500(0x120)](),this[_0x20b500(0xd9)]=null;}[_0x1d053e(0xe3)](){var _0x2d7c64=_0x1d053e,_0x160357;this['_status$'][_0x2d7c64(0x11f)](_0x2d7c64(0x113)),(_0x160357=this[_0x2d7c64(0xd9)])==null||_0x160357[_0x2d7c64(0x120)]();}[_0x1d053e(0xe8)](_0x2e4c00){var _0xc2cec1=_0x1d053e;if([_0xc2cec1(0x16e),'not-following','offline']['includes'](this[_0xc2cec1(0xc0)])||!_0x2e4c00[_0xc2cec1(0xca)][_0xc2cec1(0x155)]||_0x2e4c00[_0xc2cec1(0xca)][_0xc2cec1(0x155)]===this[_0xc2cec1(0xc8)]['getMemberID']())return;this[_0xc2cec1(0xc0)]===_0xc2cec1(0xf3)&&this[_0xc2cec1(0xf8)]();const _0x5deb45=_0x2e4c00[_0xc2cec1(0xca)]['operations'];Object[_0xc2cec1(0x115)](_0x5deb45)[_0xc2cec1(0xfc)](_0x459903=>{var _0x1b1e3b=_0xc2cec1;this[_0x1b1e3b(0x15c)]['executeCommand'](_0x459903['id'],_0x459903[_0x1b1e3b(0x170)]?JSON[_0x1b1e3b(0x137)](_0x459903[_0x1b1e3b(0x170)]):null,{'fromCollab':!0x0});});}[_0x1d053e(0xdf)](){var _0x327e9f=_0x1d053e,_0x4b0154;this[_0x327e9f(0x110)][_0x327e9f(0x11f)](_0x327e9f(0xfd)),(_0x4b0154=this['_commandDisposable'])==null||_0x4b0154[_0x327e9f(0x120)]();}[_0x1d053e(0xea)](){var _0x32e8fa=_0x1d053e;this[_0x32e8fa(0x110)][_0x32e8fa(0x11f)]('idle'),this[_0x32e8fa(0x133)]();}};w=B([f(0x2,_0x1bc4f5),f(0x3,_0x4ee71d(x)),f(0x4,_0x24effd)],w);function _0x5f41(){var _0x3a491c=['getConfig','idle','disposeWithMe','function','has','LIVESHARE_OPERATION','_startFollowing','8IXyNyv','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','string','forEach','offline','following','dispose$','call','getValue','getOwnPropertyDescriptor','_handleNewHost','replace','OFFLINE','concat','entries','extend','startFollowing','_init','LIVESHARE_TERMINATE','text','_collabSessionService','symbol','map','_status$','Stop\x20presenting','memberID','not-following','UNIVER_UNKNOWN','values','tryStartPresenting','defs','_config','_presenter','You\x27re\x20following\x20the\x20presenter','event$','4xrigds','Start','hasOwnProperty','next','dispose','idSuffix','delete','substring','_reporters','createInstance','_unitID','getUnitId','clear','className','ONLINE','_uiPartsService','from','21692TxHljG','3929340oXoPyU','1em','UNIVER_SHEET','95zpCorn','defIds','_fetchOperations','status$','getCurrentTypeOfUnit$','attrs','parse','default','LIVESHARE_REQUEST_HOST','_handleNewChangeSets','getTypeOfUnitDisposed$','current','get','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','setConfig','_injector','_configService','6174238NyXQfn','find','OPERATION','registerInitialStateReporter','div','Present\x20this\x20document','_stopPresenting','registerComponent','shouldShareOperation','HEADER_MENU','pluginName','sheet','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','set','NOT_FOLLOWING','mutations','propertyIsEnumerable','stopFollowing','presenter','fill','onStarting','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','displayName','override','colorChannel1','_commandService','xlink:href','apply','mask','univer-size-4','length','_startLiveShareCoordinator','_sharedOperations','path','evenodd','IDLE','5JoWIOt','You\x27are\x20offline.','add','defineProperty','8922843AdpBsF','end','unitId','presenting','reverse','params','children','Start\x20following','10952rzUmdp','button','_status','complete','LIVESHARE_NEW_HOST','stringify','FOLLOWING','getMemberID','assign','_univerInstanceService','_collabSession','none','data','_entities','_mountLiveShare','tag','326442GIjyXA','trim','then','_liveShareService','PRESENTING','getInitialStates','send','currentColor','_beIdle','1900yKtgzS','prototype','_commandDisposable','LiveShareSingle','_startPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','init','registerSharedOperation','_handleOffline','unsubscribe','type','UNIVER_LIVE_SHARE_PLUGIN','_stopFollowing','getOwnPropertySymbols','asObservable','SAME_OPERATION_SHARE_INTERVAL','subscribe','_handleOperation','random','_handleOnline','11273592umQWfc','small','stopPresenting','requireSession','pipe','_handleTerminate','NEW_CHANGESETS'];_0x5f41=function(){return _0x3a491c;};return _0x5f41();}function Te(){var _0x169a1e=_0x1d053e;const _0x5bad14=_0x142198(I),_0x479761=_0x142198(_0x1622ae),_0x1326b4=_0x314f30(()=>_0x479761[_0x169a1e(0x135)](_0x56ea93[_0x169a1e(0x130)]),void 0x0,!0x1,[]),[_0x2fb69c,_0x1f76d8]=_0x30c52d(null),[_0x447378,_0x394795]=_0x30c52d(h[_0x169a1e(0x166)]),_0x350841=_0x18d4f6(null);return _0x53fe9e(()=>(_0x1326b4&&_0x5bad14['getLiveShareCoordinator'](_0x1326b4[_0x169a1e(0x127)]())[_0x169a1e(0xd0)](_0x4b87c9=>{var _0x1ee1c6=_0x169a1e;_0x1f76d8(_0x4b87c9),_0x350841['current']=_0x4b87c9[_0x1ee1c6(0x134)][_0x1ee1c6(0xe7)](_0x17dc02=>{_0x394795(_0x17dc02);});}),()=>{var _0xb84955=_0x169a1e,_0x4d32ab;(_0x4d32ab=_0x350841[_0xb84955(0x13c)])==null||_0x4d32ab[_0xb84955(0xe0)](),_0x350841[_0xb84955(0x13c)]=null;}),[_0x1326b4,_0x5bad14]),_0x2fb69c?_0x9861a0(_0x418940,{'align':_0x169a1e(0x16c),'disabled':_0x447378===h[_0x169a1e(0x105)],'className':_0x169a1e(0xfa),'overlay':_0x9861a0($e,{'status':_0x447378,'coordinator':_0x2fb69c}),'children':_0x9861a0(_0x169a1e(0xbf),{'className':_0x7fed82(_0x169a1e(0xdc),{'univer-cursor-not-allowed':_0x447378===h[_0x169a1e(0x105)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x447378!==h[_0x169a1e(0x105)]}),'type':_0x169a1e(0xbf),'children':_0x9861a0(z,{'className':_0x169a1e(0x160)})})}):null;}function $e(_0x3cf291){var _0x390119=_0x1d053e;const {status:_0x58cc8a,coordinator:_0x5ded4e}=_0x3cf291;switch(_0x58cc8a){case h['IDLE']:return _0x9861a0(Fe,{'coordinator':_0x5ded4e});case h['FOLLOWING']:return _0x9861a0(He,{'coordinator':_0x5ded4e});case h[_0x390119(0x151)]:return _0x9861a0(je,{'coordinator':_0x5ded4e});case h[_0x390119(0x105)]:return _0x9861a0(Ve,{});case h[_0x390119(0xd2)]:return _0x9861a0(Ue,{'coordinator':_0x5ded4e});default:return null;}}function Fe(_0x3dd305){var _0x55d0bb=_0x1d053e;const {coordinator:_0x4b0dbd}=_0x3dd305;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0('div',{'className':_0x55d0bb(0x158),'children':_0x55d0bb(0x147)}),_0x9861a0(_0x457bae,{'size':_0x55d0bb(0xec),'type':_0x55d0bb(0x138),'onClick':()=>_0x4b0dbd[_0x55d0bb(0x116)](),'children':_0x55d0bb(0x11d)})]});}function He(_0x27c1e4){var _0x3b18a0=_0x1d053e;const {coordinator:_0x4c5cce}=_0x27c1e4;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3b18a0(0x11a)}),_0x9861a0(_0x457bae,{'size':_0x3b18a0(0xec),'type':_0x3b18a0(0x138),'onClick':()=>_0x4c5cce[_0x3b18a0(0x154)](),'children':'Stop\x20following'})]});}function je(_0x45bb26){var _0x307bfc=_0x1d053e;const {coordinator:_0x157854}=_0x45bb26;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0(_0x307bfc(0x146),{'className':_0x307bfc(0x158),'children':_0x307bfc(0x14f)}),_0x9861a0(_0x457bae,{'size':_0x307bfc(0xec),'type':_0x307bfc(0x10c),'onClick':()=>_0x157854['startFollowing'](),'children':_0x307bfc(0xbd)})]});}function _0x4d17(_0x1655b7,_0x50c247){var _0x5f41af=_0x5f41();return _0x4d17=function(_0x4d176a,_0x52582d){_0x4d176a=_0x4d176a-0xbc;var _0xab839e=_0x5f41af[_0x4d176a];return _0xab839e;},_0x4d17(_0x1655b7,_0x50c247);}function Ue(_0x6dee70){var _0x42ce23=_0x1d053e;const {coordinator:_0x489328}=_0x6dee70;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0('div',{'className':_0x42ce23(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x9861a0(_0x457bae,{'size':_0x42ce23(0xec),'type':_0x42ce23(0x138),'onClick':()=>_0x489328[_0x42ce23(0xed)](),'children':_0x42ce23(0x111)})]});}function Ve(){var _0x2be840=_0x1d053e;return _0x9861a0(_0x436476,{'children':_0x2be840(0x168)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x3b9a35,_0x4816f7,_0x23d5d5,_0x32c046)=>{var _0x49d84b=_0x1d053e;for(var _0x459311=_0x32c046>0x1?void 0x0:_0x32c046?Me(_0x4816f7,_0x23d5d5):_0x4816f7,_0x48e7a2=_0x3b9a35[_0x49d84b(0x161)]-0x1,_0x427d78;_0x48e7a2>=0x0;_0x48e7a2--)(_0x427d78=_0x3b9a35[_0x48e7a2])&&(_0x459311=_0x427d78(_0x459311)||_0x459311);return _0x459311;},$=(_0x4a666f,_0x16a120)=>(_0x49c2a4,_0x33282c)=>_0x16a120(_0x49c2a4,_0x33282c,_0x4a666f);let b=class extends _0x4b77c6{constructor(_0x59845b,_0x4b8425){var _0x18b649=_0x1d053e;super(),this[_0x18b649(0x140)]=_0x59845b,this[_0x18b649(0x12b)]=_0x4b8425,this[_0x18b649(0xcc)]();}['_mountLiveShare'](){var _0x2c1c75=_0x1d053e;this['disposeWithMe'](this[_0x2c1c75(0x12b)][_0x2c1c75(0x149)](_0x5735d2[_0x2c1c75(0x14b)],()=>_0x210e7c(Te,this[_0x2c1c75(0x140)])));}};b=ke([$(0x0,_0x4ee71d(_0x139bab)),$(0x1,_0x35c429)],b);var Ge=Object[_0x1d053e(0x16a)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x4f6150,_0x5aee6e,_0x5917cf)=>_0x5aee6e in _0x4f6150?Ge(_0x4f6150,_0x5aee6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5917cf}):_0x4f6150[_0x5aee6e]=_0x5917cf,ze=(_0x127390,_0x389f77,_0x2dce03,_0x1e2b66)=>{for(var _0x4f3dfc=_0x1e2b66>0x1?void 0x0:_0x1e2b66?We(_0x389f77,_0x2dce03):_0x389f77,_0x34116a=_0x127390['length']-0x1,_0x229568;_0x34116a>=0x0;_0x34116a--)(_0x229568=_0x127390[_0x34116a])&&(_0x4f3dfc=_0x229568(_0x4f3dfc)||_0x4f3dfc);return _0x4f3dfc;},F=(_0x22b4b2,_0x5efb86)=>(_0x275aa3,_0x224fcf)=>_0x5efb86(_0x275aa3,_0x224fcf,_0x22b4b2),Z=(_0x406349,_0x2a403c,_0x172992)=>Ye(_0x406349,typeof _0x2a403c!=_0x1d053e(0x10e)?_0x2a403c+'':_0x2a403c,_0x172992);const Be=_0x1d053e(0xe2);let O=class extends _0x5711ad{constructor(_0x1ed351=T,_0x3ee9ba,_0x5763f9){var _0x5316e8=_0x1d053e;super(),this[_0x5316e8(0x118)]=_0x1ed351,this[_0x5316e8(0x140)]=_0x3ee9ba,this[_0x5316e8(0x141)]=_0x5763f9;const {..._0x3dd705}=_0x121527({},T,this['_config']);this[_0x5316e8(0x141)][_0x5316e8(0x13f)](Oe,_0x3dd705);}[_0x1d053e(0x157)](){var _0x23757f=_0x1d053e;_0x4da2ae(this[_0x23757f(0x140)],_0x910ba([[x],[I],[m],[b]],this[_0x23757f(0x118)][_0x23757f(0x15a)])),_0x45c617(this['_injector'],[[m]]);}['onRendered'](){_0x45c617(this['_injector'],[[b]]);}};Z(O,_0x1d053e(0xe1),_0x56ea93[_0x1d053e(0x114)]),Z(O,_0x1d053e(0x14c),Be),O=ze([_0x3361d3(_0x5f42ba),F(0x1,_0x4ee71d(_0x139bab)),F(0x2,_0x1bc4f5)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x8742f7=_0x53dc;(function(_0x3d326b,_0x5bef99){var _0x130371=_0x53dc,_0x286ef8=_0x3d326b();while(!![]){try{var _0x3549c8=-parseInt(_0x130371(0x13b))/0x1+parseInt(_0x130371(0x1d7))/0x2*(parseInt(_0x130371(0x17b))/0x3)+-parseInt(_0x130371(0x19e))/0x4+parseInt(_0x130371(0x1d9))/0x5*(parseInt(_0x130371(0x168))/0x6)+parseInt(_0x130371(0x171))/0x7*(parseInt(_0x130371(0x140))/0x8)+parseInt(_0x130371(0x1cc))/0x9*(-parseInt(_0x130371(0x17a))/0xa)+-parseInt(_0x130371(0x1dc))/0xb;if(_0x3549c8===_0x5bef99)break;else _0x286ef8['push'](_0x286ef8['shift']());}catch(_0x523879){_0x286ef8['push'](_0x286ef8['shift']());}}}(_0x52ca,0x7b2bf));function _0x53dc(_0x449068,_0x41f8a8){var _0x52ca2f=_0x52ca();return _0x53dc=function(_0x53dcdf,_0x33ea38){_0x53dcdf=_0x53dcdf-0x13a;var _0x2023e8=_0x52ca2f[_0x53dcdf];return _0x2023e8;},_0x53dc(_0x449068,_0x41f8a8);}var K=Object[_0x8742f7(0x15e)],q=(_0xd04437,_0x4a748d,_0x37037d)=>_0x4a748d in _0xd04437?K(_0xd04437,_0x4a748d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37037d}):_0xd04437[_0x4a748d]=_0x37037d,d=(_0x569de6,_0x368b68,_0x5f11d6)=>q(_0x569de6,typeof _0x368b68!='symbol'?_0x368b68+'':_0x368b68,_0x5f11d6);import{CollaborationSessionService as _0x331b9c,SessionStatus as _0x4648a8,UniverCollaborationClientPlugin as _0x43bc81}from'@univerjs-pro/collaboration-client';import{Disposable as _0x369ecc,toDisposable as _0x1af99f,Inject as _0xf62884,IUniverInstanceService as _0xca97d6,Injector as _0x4e61f3,IConfigService as _0x4decb3,ICommandService as _0x4f5d4f,RxDisposable as _0x293990,UniverInstanceType as _0x5de484,DisposableCollection as _0xc54da7,CommandType as _0x7ddbcc,DependentOn as _0x39d2b0,Plugin as _0x385f17,merge as _0xa0c0ca,registerDependencies as _0x4d9515,mergeOverrideWithDependencies as _0x16b2d9,touchDependencies as _0x22019d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3ae193,InsertSheetMutation as _0x1c5a73}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5e6c7c,SetScrollOperation as _0xc328d6}from'@univerjs/sheets-ui';import{useDependency as _0x51d529,useObservable as _0x3ebf7a,IUIPartsService as _0x141036,BuiltInUIPart as _0x2df6c9,connectInjector as _0x408ef4}from'@univerjs/ui';import{jsx as _0x16d666,jsxs as _0x418bde,Fragment as _0x19dc14}from'react/jsx-runtime';function _0x52ca(){var _0x3b9c14=['_startLiveShareCoordinator','getOwnPropertyDescriptor','3004606bzrfAD','_uiPartsService','icon','getOwnPropertySymbols','LIVESHARE_REQUEST_HOST','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','forEach','concat','params','live-share-single','memberID','startFollowing','_fetchOperations','onCommandExecuted','data','get','extend','_mountLiveShare','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','382599nOGYgS','1em','createInstance','_stopFollowing','send','24TyNbpS','LIVESHARE_TERMINATE','getUnitId','defs','_startPresenting','unsubscribe','clear','init','_presenter','_beIdle','NEW_CHANGESETS','stringify','hasOwnProperty','disposeWithMe','random','_config','_univerInstanceService','pluginName','presenting','tag','current','executeCommand','event$','Start\x20following','getMemberID','_status','stopFollowing','propertyIsEnumerable','prototype','NOT_FOLLOWING','defineProperty','call','setConfig','next','subscribe','small','following','sheet','length','presenter','105906ZJbuky','_handleTerminate','HEADER_MENU','getLiveShareCoordinator','_startFollowing','colorChannel1','fill','svg','idle','1951579MIATiw','ONLINE','IDLE','type','You\x27re\x20following\x20the\x20presenter','set','override','shouldShareOperation','use','600jkfHnW','110283ZXmuRt','find','dispose','_liveShareService','getTypeOfUnitDisposed$','from','SAME_OPERATION_SHARE_INTERVAL','trim','Present\x20this\x20document','OPERATION','xlink:href','has','LIVESHARE_FETCH_OPERATIONS','displayName','PRESENTING','getCurrentTypeOfUnit$','_injector','status$','offline','LIVESHARE_OPERATION','complete','map','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','_handleOperation','_collabSessionService','currentColor','UNIVER_UNKNOWN','attrs','then','idSuffix','registerInitialStateReporter','_init','string','mask','LiveShareSingle','2174024Ccusup','_entities','OFFLINE','parse','end','includes','pipe','none','You\x27are\x20offline.','Start','unitId','replace','text','sessionStatus$','getTypeOfUnitAdded$','stopPresenting','_sharedOperations','evenodd','_status$','path','toString','values','_handleNewChangeSets','url(#$1','substring','_commandDisposable','_commandService','default','univerjs-icon\x20univerjs-icon-','_reporters','defIds','tryStartPresenting','children','_collabSession','operations','not-following','delete','add','apply','FOLLOWING','UNIVER_SHEET','function','registerComponent','dispose$','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','54333TSJRJM','_handleOnline','_unitID','reverse','Stop\x20presenting','indexOf','_stopPresenting','div','_configService','entries','_handleOffline','16stJYsF','requireSession','265PbTAdZ'];_0x52ca=function(){return _0x3b9c14;};return _0x52ca();}import{Dropdown as _0x16e236,clsx as _0x106395,Button as _0x282005}from'@univerjs/design';import{forwardRef as _0x3bafd9,useRef as _0x23a14e,createElement as _0x2f9dd5,useState as _0x22401c,useEffect as _0x2f606b}from'react';import{CollaborationEvent as _0x13c64f,parseProtocolChangeset as _0x2e8c2e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x501098,Subject as _0x16f0ef}from'rxjs';import{takeUntil as _0x319dce,throttleTime as _0x1e2b8b}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0x369ecc{constructor(){var _0x42d463=_0x8742f7;super(...arguments),d(this,_0x42d463(0x1ae),new Set()),d(this,_0x42d463(0x1bb),new Set());}[_0x8742f7(0x1cb)](_0x19f595){var _0x2b6bd0=_0x8742f7;return this[_0x2b6bd0(0x1ae)]['add'](_0x19f595),_0x1af99f(()=>this['_sharedOperations'][_0x2b6bd0(0x1c2)](_0x19f595));}[_0x8742f7(0x199)](_0x153ba6){var _0x14c8be=_0x8742f7;return this[_0x14c8be(0x1bb)]['add'](_0x153ba6),_0x1af99f(()=>this[_0x14c8be(0x1bb)][_0x14c8be(0x1c2)](_0x153ba6));}[_0x8742f7(0x178)](_0x1347a3){var _0x507a45=_0x8742f7;return this[_0x507a45(0x1ae)][_0x507a45(0x186)](_0x1347a3);}['getInitialStates'](_0x49f952){var _0x41e3d6=_0x8742f7;return Array[_0x41e3d6(0x180)](this[_0x41e3d6(0x1bb)])['map'](_0x402914=>_0x402914(_0x49f952));}}var Ee=Object[_0x8742f7(0x1db)],Ce=(_0x2a76fb,_0x468207,_0x229074,_0x369446)=>{var _0x4f3b43=_0x8742f7;for(var _0x1b9a09=_0x369446>0x1?void 0x0:_0x369446?Ee(_0x468207,_0x229074):_0x468207,_0x9c6c89=_0x2a76fb[_0x4f3b43(0x166)]-0x1,_0x3dba34;_0x9c6c89>=0x0;_0x9c6c89--)(_0x3dba34=_0x2a76fb[_0x9c6c89])&&(_0x1b9a09=_0x3dba34(_0x1b9a09)||_0x1b9a09);return _0x1b9a09;},Ne=(_0x212aae,_0x10aa53)=>(_0x3c91e5,_0x48264b)=>_0x10aa53(_0x3c91e5,_0x48264b,_0x212aae);let m=class extends _0x369ecc{constructor(_0x20ac7a){var _0x2aa01c=_0x8742f7;super(),this['_liveShareService']=_0x20ac7a,this[_0x2aa01c(0x19a)]();}['_init'](){[_0x5e6c7c['id'],_0xc328d6['id'],_0x3ae193['id']]['forEach'](_0xcef429=>{var _0x5ce74d=_0x53dc;this[_0x5ce74d(0x14d)](this[_0x5ce74d(0x17e)][_0x5ce74d(0x1cb)](_0xcef429));});}};m=Ce([Ne(0x0,_0xf62884(x))],m);var c=function(){var _0x27eb66=_0x8742f7;return c=Object['assign']||function(_0x59045f){var _0x393b82=_0x53dc;for(var _0x14a0ee,_0xab3eb1=0x1,_0x3c5f46=arguments['length'];_0xab3eb1<_0x3c5f46;_0xab3eb1++){_0x14a0ee=arguments[_0xab3eb1];for(var _0x1cf2ad in _0x14a0ee)Object['prototype'][_0x393b82(0x14c)][_0x393b82(0x15f)](_0x14a0ee,_0x1cf2ad)&&(_0x59045f[_0x1cf2ad]=_0x14a0ee[_0x1cf2ad]);}return _0x59045f;},c[_0x27eb66(0x1c4)](this,arguments);},we=function(_0x2eb3aa,_0x1e7a46){var _0x5316fa=_0x8742f7,_0x5137a9={};for(var _0xc7d57d in _0x2eb3aa)Object[_0x5316fa(0x15c)][_0x5316fa(0x14c)][_0x5316fa(0x15f)](_0x2eb3aa,_0xc7d57d)&&_0x1e7a46[_0x5316fa(0x1d1)](_0xc7d57d)<0x0&&(_0x5137a9[_0xc7d57d]=_0x2eb3aa[_0xc7d57d]);if(_0x2eb3aa!=null&&typeof Object[_0x5316fa(0x1df)]==_0x5316fa(0x1c7)){for(var _0x5ed8ec=0x0,_0xc7d57d=Object[_0x5316fa(0x1df)](_0x2eb3aa);_0x5ed8ec<_0xc7d57d['length'];_0x5ed8ec++)_0x1e7a46[_0x5316fa(0x1d1)](_0xc7d57d[_0x5ed8ec])<0x0&&Object[_0x5316fa(0x15c)][_0x5316fa(0x15b)][_0x5316fa(0x15f)](_0x2eb3aa,_0xc7d57d[_0x5ed8ec])&&(_0x5137a9[_0xc7d57d[_0x5ed8ec]]=_0x2eb3aa[_0xc7d57d[_0x5ed8ec]]);}return _0x5137a9;},W=_0x3bafd9(function(_0x405171,_0x14dad5){var _0x297685=_0x8742f7,_0x206c3d=_0x405171[_0x297685(0x1de)],_0x2b562c=_0x405171['id'],_0x4b52c3=_0x405171['className'],_0x283f1d=_0x405171[_0x297685(0x1ec)],_0x12be0e=we(_0x405171,[_0x297685(0x1de),'id','className',_0x297685(0x1ec)]),_0x2375cf=_0x297685(0x1ba)['concat'](_0x2b562c,'\x20')[_0x297685(0x1e3)](_0x4b52c3||'')[_0x297685(0x182)](),_0xd2253e=_0x23a14e('_'[_0x297685(0x1e3)](xe()));return Y(_0x206c3d,''[_0x297685(0x1e3)](_0x2b562c),{'defIds':_0x206c3d[_0x297685(0x1bc)],'idSuffix':_0xd2253e[_0x297685(0x154)]},c({'ref':_0x14dad5,'className':_0x2375cf},_0x12be0e),_0x283f1d);});function Y(_0x3d183b,_0xcc06d,_0x125a55,_0x17bf72,_0x200930){var _0x1338e5=_0x8742f7;return _0x2f9dd5(_0x3d183b[_0x1338e5(0x153)],c(c({'key':_0xcc06d},De(_0x3d183b,_0x125a55,_0x200930)),_0x17bf72),(Le(_0x3d183b,_0x125a55)[_0x1338e5(0x1be)]||[])[_0x1338e5(0x190)](function(_0x481d2d,_0x45b9ca){var _0x6cd25=_0x1338e5;return Y(_0x481d2d,''[_0x6cd25(0x1e3)](_0xcc06d,'-')[_0x6cd25(0x1e3)](_0x3d183b['tag'],'-')['concat'](_0x45b9ca),_0x125a55,void 0x0,_0x200930);}));}function De(_0x1d202a,_0xc09e5a,_0x1c7fca){var _0x28b4e1=_0x8742f7,_0x3d3c76=c({},_0x1d202a[_0x28b4e1(0x196)]);_0x1c7fca!=null&&_0x1c7fca[_0x28b4e1(0x16d)]&&_0x3d3c76['fill']===_0x28b4e1(0x16d)&&(_0x3d3c76[_0x28b4e1(0x16e)]=_0x1c7fca[_0x28b4e1(0x16d)]),_0x1d202a[_0x28b4e1(0x153)]===_0x28b4e1(0x19c)&&_0x3d3c76['id']&&(_0x3d3c76['id']=_0x3d3c76['id']+_0xc09e5a[_0x28b4e1(0x198)]),Object[_0x28b4e1(0x1d5)](_0x3d3c76)[_0x28b4e1(0x1e2)](function(_0x5075a1){var _0x5ca24f=_0x28b4e1,_0x42159d=_0x5075a1[0x0],_0x441c7f=_0x5075a1[0x1];_0x42159d==='mask'&&typeof _0x441c7f==_0x5ca24f(0x19b)&&(_0x3d3c76[_0x42159d]=_0x441c7f[_0x5ca24f(0x1a9)](/url\(#(.*)\)/,_0x5ca24f(0x1b5)[_0x5ca24f(0x1e3)](_0xc09e5a[_0x5ca24f(0x198)],')')));});var _0x39c5c6=_0xc09e5a[_0x28b4e1(0x1bc)];return!_0x39c5c6||_0x39c5c6[_0x28b4e1(0x166)]===0x0||(_0x1d202a[_0x28b4e1(0x153)]===_0x28b4e1(0x179)&&_0x3d3c76[_0x28b4e1(0x185)]&&(_0x3d3c76['xlink:href']=_0x3d3c76['xlink:href']+_0xc09e5a[_0x28b4e1(0x198)]),Object[_0x28b4e1(0x1d5)](_0x3d3c76)[_0x28b4e1(0x1e2)](function(_0xc10881){var _0x1020f8=_0x28b4e1,_0x319bb0=_0xc10881[0x0],_0x58ad05=_0xc10881[0x1];typeof _0x58ad05=='string'&&(_0x3d3c76[_0x319bb0]=_0x58ad05['replace'](/url\(#(.*)\)/,_0x1020f8(0x1b5)[_0x1020f8(0x1e3)](_0xc09e5a['idSuffix'],')')));})),_0x3d3c76;}function Le(_0x1cc2ba,_0x5c9e12){var _0x1ce41d=_0x8742f7,_0xb0b94b,_0x1ddaa5=_0x5c9e12[_0x1ce41d(0x1bc)];return!_0x1ddaa5||_0x1ddaa5['length']===0x0?_0x1cc2ba:_0x1cc2ba[_0x1ce41d(0x153)]===_0x1ce41d(0x143)&&(!((_0xb0b94b=_0x1cc2ba[_0x1ce41d(0x1be)])===null||_0xb0b94b===void 0x0)&&_0xb0b94b['length'])?c(c({},_0x1cc2ba),{'children':_0x1cc2ba[_0x1ce41d(0x1be)][_0x1ce41d(0x190)](function(_0x56db7c){var _0x4bc75e=_0x1ce41d;return typeof _0x56db7c[_0x4bc75e(0x196)]['id']=='string'&&_0x1ddaa5&&_0x1ddaa5[_0x4bc75e(0x1d1)](_0x56db7c['attrs']['id'])>-0x1?c(c({},_0x56db7c),{'attrs':c(c({},_0x56db7c['attrs']),{'id':_0x56db7c[_0x4bc75e(0x196)]['id']+_0x5c9e12[_0x4bc75e(0x198)]})}):_0x56db7c;})}):_0x1cc2ba;}function xe(){var _0x472104=_0x8742f7;return Math[_0x472104(0x14e)]()[_0x472104(0x1b2)](0x24)[_0x472104(0x1b6)](0x2,0x8);}W[_0x8742f7(0x188)]='UniverIcon';var ye={'tag':_0x8742f7(0x16f),'attrs':{'fill':_0x8742f7(0x1a5),'viewBox':'0\x200\x2016\x2016','width':_0x8742f7(0x13c),'height':_0x8742f7(0x13c)},'children':[{'tag':_0x8742f7(0x1b1),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x8742f7(0x1b1),'attrs':{'fill':_0x8742f7(0x194),'d':_0x8742f7(0x1e1),'fillRule':_0x8742f7(0x1af),'clipRule':_0x8742f7(0x1af)}}]},z=_0x3bafd9(function(_0x45741f,_0x359736){var _0x436d94=_0x8742f7;return _0x2f9dd5(W,Object['assign']({},_0x45741f,{'id':_0x436d94(0x1e5),'ref':_0x359736,'icon':ye}));});z['displayName']=_0x8742f7(0x19d);var Re=Object['getOwnPropertyDescriptor'],B=(_0x57fa0c,_0x1c8429,_0x1d601f,_0x5db215)=>{for(var _0x5b2cb5=_0x5db215>0x1?void 0x0:_0x5db215?Re(_0x1c8429,_0x1d601f):_0x1c8429,_0x571437=_0x57fa0c['length']-0x1,_0x3e195c;_0x571437>=0x0;_0x571437--)(_0x3e195c=_0x57fa0c[_0x571437])&&(_0x5b2cb5=_0x3e195c(_0x5b2cb5)||_0x5b2cb5);return _0x5b2cb5;},f=(_0x2dc453,_0x24478a)=>(_0x28ab6e,_0x53ab0e)=>_0x24478a(_0x28ab6e,_0x53ab0e,_0x2dc453);let I=class extends _0x293990{constructor(_0x23ec7b,_0x392f9c,_0x3d46a7){var _0x2a87aa=_0x8742f7;super(),d(this,_0x2a87aa(0x19f),new Map()),(this[_0x2a87aa(0x150)]=_0x23ec7b,this[_0x2a87aa(0x18b)]=_0x392f9c,this[_0x2a87aa(0x193)]=_0x3d46a7,this[_0x2a87aa(0x19a)]());}async[_0x8742f7(0x16b)](_0x493e69){var _0x53c128=_0x8742f7;return this[_0x53c128(0x19f)][_0x53c128(0x186)](_0x493e69)||await this[_0x53c128(0x1da)](_0x493e69),this['_entities']['get'](_0x493e69);}[_0x8742f7(0x19a)](){var _0xb32d2c=_0x8742f7;this[_0xb32d2c(0x150)][_0xb32d2c(0x1ac)](_0x5de484[_0xb32d2c(0x1c6)])[_0xb32d2c(0x1a4)](_0x319dce(this[_0xb32d2c(0x1c9)]))[_0xb32d2c(0x162)](async _0xa5e844=>{var _0x42f9fc=_0xb32d2c;const _0xd45fae=_0xa5e844['getUnitId']();this[_0x42f9fc(0x19f)]['has'](_0xd45fae)||this['_startLiveShareCoordinator'](_0xd45fae);}),this[_0xb32d2c(0x150)][_0xb32d2c(0x17f)](_0x5de484[_0xb32d2c(0x1c6)])[_0xb32d2c(0x1a4)](_0x319dce(this[_0xb32d2c(0x1c9)]))[_0xb32d2c(0x162)](_0x1475f4=>{var _0x418f84=_0xb32d2c;const _0xea7117=_0x1475f4[_0x418f84(0x142)](),_0x466769=this[_0x418f84(0x19f)]['get'](_0xea7117);_0x466769==null||_0x466769[_0x418f84(0x17d)]();});}async[_0x8742f7(0x1da)](_0x45f2b6){var _0x2caec2=_0x8742f7;const _0x53caea=await this[_0x2caec2(0x193)][_0x2caec2(0x1d8)](_0x45f2b6),_0x56ad12=this['_injector'][_0x2caec2(0x13d)](w,_0x45f2b6,_0x53caea);return _0x56ad12[_0x2caec2(0x147)](),this[_0x2caec2(0x19f)][_0x2caec2(0x176)](_0x45f2b6,_0x56ad12),_0x56ad12;}};I=B([f(0x0,_0xca97d6),f(0x1,_0xf62884(_0x4e61f3)),f(0x2,_0xf62884(_0x331b9c))],I);var h=(_0x5dcb35=>(_0x5dcb35[_0x8742f7(0x1a0)]=_0x8742f7(0x18d),_0x5dcb35[_0x8742f7(0x173)]=_0x8742f7(0x170),_0x5dcb35[_0x8742f7(0x1c5)]='following',_0x5dcb35['NOT_FOLLOWING']=_0x8742f7(0x1c1),_0x5dcb35[_0x8742f7(0x189)]=_0x8742f7(0x152),_0x5dcb35))(h||{});const Pe=_0x8742f7(0x181),Ae=0xc8;let w=class extends _0x293990{constructor(_0xa3c7b3,_0x485e06,_0x29dced,_0x25d78d,_0x15583c){var _0x2c170b=_0x8742f7;super(),d(this,_0x2c170b(0x1b0),new _0x501098('idle')),d(this,_0x2c170b(0x18c),this[_0x2c170b(0x1b0)]['asObservable']()),d(this,_0x2c170b(0x19a),!0x1),d(this,_0x2c170b(0x1b7),null),d(this,_0x2c170b(0x148),null),(this['_unitID']=_0xa3c7b3,this['_collabSession']=_0x485e06,this['_configService']=_0x29dced,this['_liveShareService']=_0x25d78d,this[_0x2c170b(0x1b8)]=_0x15583c);}get[_0x8742f7(0x159)](){var _0x5b6d1a=_0x8742f7;return this[_0x5b6d1a(0x1b0)]['getValue']();}[_0x8742f7(0x17d)](){var _0xe41fc5=_0x8742f7,_0x295da9;(_0x295da9=this[_0xe41fc5(0x1b7)])==null||_0x295da9[_0xe41fc5(0x17d)](),this['_status$']['next'](_0xe41fc5(0x170)),this[_0xe41fc5(0x1b0)][_0xe41fc5(0x18f)]();}[_0x8742f7(0x147)](){var _0x99246a=_0x8742f7;this[_0x99246a(0x19a)]||(this[_0x99246a(0x19a)]=!0x0,this[_0x99246a(0x1bf)][_0x99246a(0x1ab)][_0x99246a(0x1a4)](_0x319dce(this[_0x99246a(0x1c9)]))[_0x99246a(0x162)](_0x363f1c=>{var _0x5c5e1c=_0x99246a;switch(_0x363f1c){case _0x4648a8['OFFLINE']:this['_handleOffline']();break;case _0x4648a8[_0x5c5e1c(0x172)]:this[_0x5c5e1c(0x1cd)]();break;}}),this[_0x99246a(0x1bf)][_0x99246a(0x156)][_0x99246a(0x1a4)](_0x319dce(this['dispose$']))[_0x99246a(0x162)](_0x3f1d70=>{var _0x54126c=_0x99246a;const {eventID:_0x570f99}=_0x3f1d70;switch(_0x570f99){case _0x13c64f['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x3f1d70);break;case _0x13c64f[_0x54126c(0x18e)]:this['_handleOperation'](_0x3f1d70);break;case _0x13c64f[_0x54126c(0x141)]:this[_0x54126c(0x169)]();break;case _0x13c64f[_0x54126c(0x14a)]:this[_0x54126c(0x1b4)](_0x3f1d70);break;}}));}[_0x8742f7(0x1bd)](){var _0x660578=_0x8742f7;this[_0x660578(0x1bf)][_0x660578(0x13f)]({'eventID':_0x13c64f[_0x660578(0x1e0)],'data':{'unitID':this[_0x660578(0x1ce)],'userID':this[_0x660578(0x1bf)]['getMemberID']()}},this['_unitID']);}[_0x8742f7(0x1ad)](){var _0x4ced18=_0x8742f7;this[_0x4ced18(0x159)]===_0x4ced18(0x152)&&(this[_0x4ced18(0x1b0)][_0x4ced18(0x161)](_0x4ced18(0x170)),this[_0x4ced18(0x1bf)][_0x4ced18(0x13f)]({'eventID':_0x13c64f[_0x4ced18(0x141)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x8742f7(0x1e7)](){var _0x1859d4=_0x8742f7;this[_0x1859d4(0x159)]===_0x1859d4(0x1c1)&&(this['_status$'][_0x1859d4(0x161)]('following'),this['_startFollowing']());}[_0x8742f7(0x15a)](){var _0x4419cb=_0x8742f7;this[_0x4419cb(0x159)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x281ab3){var _0x29b079=_0x8742f7;const {presenter:_0x179f76}=_0x281ab3[_0x29b079(0x1ea)],_0x2b08e0=this['_collabSession'][_0x29b079(0x158)]();this[_0x29b079(0x148)]=_0x179f76,_0x179f76===_0x2b08e0?(this['_stopFollowing'](),this[_0x29b079(0x144)]()):this[_0x29b079(0x159)]!==_0x29b079(0x1c1)&&(this[_0x29b079(0x1d2)](),this[_0x29b079(0x16c)]());}['_fetchOperations'](){var _0x1157bc=_0x8742f7;const _0x2dcf1e={'eventID':_0x13c64f[_0x1157bc(0x187)]};this[_0x1157bc(0x1bf)]['send'](_0x2dcf1e,this[_0x1157bc(0x1ce)]);}[_0x8742f7(0x169)](){var _0x49c523=_0x8742f7;this['_presenter']=null,this[_0x49c523(0x159)]!=='presenting'&&this['_beIdle']();}[_0x8742f7(0x1b4)](_0x21cf15){var _0xffd60c=_0x8742f7;if(this[_0xffd60c(0x159)]===_0xffd60c(0x164)&&this[_0xffd60c(0x148)]===_0x21cf15['data'][_0xffd60c(0x1e6)]){const _0x52443c=_0x2e8c2e(_0x21cf15[_0xffd60c(0x1ea)])['mutations'][_0xffd60c(0x1cf)]()[_0xffd60c(0x17c)](_0x2eed78=>_0x2eed78['id']===_0x1c5a73['id']);if(_0x52443c){const _0x8c4204=_0x52443c[_0xffd60c(0x1e4)][_0xffd60c(0x1a8)],_0x459b60=_0x52443c[_0xffd60c(0x1e4)][_0xffd60c(0x165)]['id'];setTimeout(()=>{var _0x113d02=_0xffd60c;this[_0x113d02(0x1b8)]['executeCommand'](_0x3ae193['id'],{'unitId':_0x8c4204,'subUnitId':_0x459b60},{'fromCollab':!0x0});});}}}[_0x8742f7(0x144)](){var _0x3d93f4=_0x8742f7;this['_status$']['next'](_0x3d93f4(0x152));const _0x2d5364=new Map(),_0x1d7519=this[_0x3d93f4(0x1b7)]=new _0xc54da7();_0x1d7519['add'](_0x1af99f(()=>{var _0x1506aa=_0x3d93f4;_0x2d5364['forEach'](_0x1ac09d=>_0x1ac09d['complete']()),_0x2d5364[_0x1506aa(0x146)]();})),_0x1d7519[_0x3d93f4(0x1c3)](this[_0x3d93f4(0x1b8)][_0x3d93f4(0x1e9)](_0x2e43ca=>{var _0x45f7be=_0x3d93f4,_0x5d87f8;if(_0x2e43ca['type']!==_0x7ddbcc[_0x45f7be(0x184)]||!this[_0x45f7be(0x17e)][_0x45f7be(0x178)](_0x2e43ca['id']))return;const {id:_0x2484ba}=_0x2e43ca;let _0x1ac489;_0x2d5364['has'](_0x2484ba)?_0x1ac489=_0x2d5364[_0x45f7be(0x1eb)](_0x2484ba):(_0x1ac489=new _0x16f0ef(),_0x2d5364[_0x45f7be(0x176)](_0x2484ba,_0x1ac489),_0x1ac489['pipe'](_0x1e2b8b((_0x5d87f8=this[_0x45f7be(0x1d4)]['getConfig'](Pe))!=null?_0x5d87f8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x45f7be(0x162)](_0x3ae66f=>{var _0x189148=_0x45f7be;this[_0x189148(0x1bf)]['send']({'eventID':_0x13c64f[_0x189148(0x18e)],'data':{'unitID':this[_0x189148(0x1ce)],'operations':{[_0x3ae66f['id']]:{'id':_0x3ae66f['id'],'params':JSON[_0x189148(0x14b)](_0x3ae66f[_0x189148(0x1e4)])}}}},this['_unitID']);})),_0x1ac489[_0x45f7be(0x161)](_0x2e43ca);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x3d93f4(0x1e2)](_0x26d9fc=>this[_0x3d93f4(0x1bf)][_0x3d93f4(0x13f)]({'eventID':_0x13c64f[_0x3d93f4(0x18e)],'data':{'unitID':this[_0x3d93f4(0x1ce)],'operations':{[_0x26d9fc['id']]:{'id':_0x26d9fc['id'],'params':JSON[_0x3d93f4(0x14b)](_0x26d9fc['params'])}}}},this[_0x3d93f4(0x1ce)]));}['_stopPresenting'](){var _0x5d2038=_0x8742f7,_0x30fac3;this[_0x5d2038(0x1b0)]['next'](_0x5d2038(0x170)),(_0x30fac3=this[_0x5d2038(0x1b7)])==null||_0x30fac3[_0x5d2038(0x17d)](),this['_commandDisposable']=null;}[_0x8742f7(0x16c)](){var _0x3a0329=_0x8742f7,_0x14796b;(_0x14796b=this['_commandDisposable'])==null||_0x14796b['dispose'](),this[_0x3a0329(0x1b0)][_0x3a0329(0x161)](_0x3a0329(0x164));}[_0x8742f7(0x149)](){var _0x2b7410=_0x8742f7,_0x2d7e90;this[_0x2b7410(0x1b0)][_0x2b7410(0x161)](_0x2b7410(0x170)),(_0x2d7e90=this[_0x2b7410(0x1b7)])==null||_0x2d7e90[_0x2b7410(0x17d)](),this[_0x2b7410(0x1b7)]=null;}[_0x8742f7(0x13e)](){var _0x1de7c1=_0x8742f7,_0x45598f;this[_0x1de7c1(0x1b0)][_0x1de7c1(0x161)](_0x1de7c1(0x1c1)),(_0x45598f=this['_commandDisposable'])==null||_0x45598f['dispose']();}[_0x8742f7(0x192)](_0x46fc74){var _0x3f3d95=_0x8742f7;if([_0x3f3d95(0x152),'not-following',_0x3f3d95(0x18d)][_0x3f3d95(0x1a3)](this[_0x3f3d95(0x159)])||!_0x46fc74[_0x3f3d95(0x1ea)][_0x3f3d95(0x167)]||_0x46fc74[_0x3f3d95(0x1ea)][_0x3f3d95(0x167)]===this[_0x3f3d95(0x1bf)]['getMemberID']())return;this['_status']==='idle'&&this[_0x3f3d95(0x16c)]();const _0xa2b986=_0x46fc74['data'][_0x3f3d95(0x1c0)];Object[_0x3f3d95(0x1b3)](_0xa2b986)[_0x3f3d95(0x1e2)](_0x15f79c=>{var _0x16c3a1=_0x3f3d95;this['_commandService'][_0x16c3a1(0x155)](_0x15f79c['id'],_0x15f79c['params']?JSON[_0x16c3a1(0x1a1)](_0x15f79c[_0x16c3a1(0x1e4)]):null,{'fromCollab':!0x0});});}[_0x8742f7(0x1d6)](){var _0x3f264f=_0x8742f7,_0x3f8de0;this['_status$']['next'](_0x3f264f(0x18d)),(_0x3f8de0=this[_0x3f264f(0x1b7)])==null||_0x3f8de0[_0x3f264f(0x17d)]();}[_0x8742f7(0x1cd)](){var _0x5c7740=_0x8742f7;this[_0x5c7740(0x1b0)][_0x5c7740(0x161)](_0x5c7740(0x170)),this[_0x5c7740(0x1e8)]();}};w=B([f(0x2,_0x4decb3),f(0x3,_0xf62884(x)),f(0x4,_0x4f5d4f)],w);function Te(){var _0x15dafd=_0x8742f7;const _0x421b2a=_0x51d529(I),_0x2a2c21=_0x51d529(_0xca97d6),_0x231e73=_0x3ebf7a(()=>_0x2a2c21[_0x15dafd(0x18a)](_0x5de484[_0x15dafd(0x1c6)]),void 0x0,!0x1,[]),[_0x5b3468,_0x4efaba]=_0x22401c(null),[_0x5f587c,_0x30b91a]=_0x22401c(h[_0x15dafd(0x173)]),_0x33f440=_0x23a14e(null);return _0x2f606b(()=>(_0x231e73&&_0x421b2a[_0x15dafd(0x16b)](_0x231e73[_0x15dafd(0x142)]())[_0x15dafd(0x197)](_0x13d635=>{_0x4efaba(_0x13d635),_0x33f440['current']=_0x13d635['status$']['subscribe'](_0x202309=>{_0x30b91a(_0x202309);});}),()=>{var _0x44d454=_0x15dafd,_0x40485a;(_0x40485a=_0x33f440[_0x44d454(0x154)])==null||_0x40485a[_0x44d454(0x145)](),_0x33f440[_0x44d454(0x154)]=null;}),[_0x231e73,_0x421b2a]),_0x5b3468?_0x16d666(_0x16e236,{'align':_0x15dafd(0x1a2),'disabled':_0x5f587c===h[_0x15dafd(0x1a0)],'className':_0x15dafd(0x13a),'overlay':_0x16d666($e,{'status':_0x5f587c,'coordinator':_0x5b3468}),'children':_0x16d666('button',{'className':_0x106395(_0x15dafd(0x1ee),{'univer-cursor-not-allowed':_0x5f587c===h[_0x15dafd(0x1a0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f587c!==h[_0x15dafd(0x1a0)]}),'type':'button','children':_0x16d666(z,{'className':'univer-size-4'})})}):null;}function $e(_0x3c23d0){var _0x60b4eb=_0x8742f7;const {status:_0x1660db,coordinator:_0x404a2e}=_0x3c23d0;switch(_0x1660db){case h[_0x60b4eb(0x173)]:return _0x16d666(Fe,{'coordinator':_0x404a2e});case h[_0x60b4eb(0x1c5)]:return _0x16d666(He,{'coordinator':_0x404a2e});case h[_0x60b4eb(0x15d)]:return _0x16d666(je,{'coordinator':_0x404a2e});case h['OFFLINE']:return _0x16d666(Ve,{});case h[_0x60b4eb(0x189)]:return _0x16d666(Ue,{'coordinator':_0x404a2e});default:return null;}}function Fe(_0x19b5f2){var _0x3b9985=_0x8742f7;const {coordinator:_0x1fb3f0}=_0x19b5f2;return _0x418bde(_0x19dc14,{'children':[_0x16d666(_0x3b9985(0x1d3),{'className':_0x3b9985(0x191),'children':_0x3b9985(0x183)}),_0x16d666(_0x282005,{'size':_0x3b9985(0x163),'type':_0x3b9985(0x1b9),'onClick':()=>_0x1fb3f0[_0x3b9985(0x1bd)](),'children':_0x3b9985(0x1a7)})]});}function He(_0x4fa68d){var _0x3271aa=_0x8742f7;const {coordinator:_0x3256c0}=_0x4fa68d;return _0x418bde(_0x19dc14,{'children':[_0x16d666(_0x3271aa(0x1d3),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3271aa(0x175)}),_0x16d666(_0x282005,{'size':_0x3271aa(0x163),'type':_0x3271aa(0x1b9),'onClick':()=>_0x3256c0['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x399662){var _0x42f63d=_0x8742f7;const {coordinator:_0x577c91}=_0x399662;return _0x418bde(_0x19dc14,{'children':[_0x16d666(_0x42f63d(0x1d3),{'className':_0x42f63d(0x191),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x16d666(_0x282005,{'size':_0x42f63d(0x163),'type':_0x42f63d(0x1aa),'onClick':()=>_0x577c91[_0x42f63d(0x1e7)](),'children':_0x42f63d(0x157)})]});}function Ue(_0x399c34){var _0x4e9507=_0x8742f7;const {coordinator:_0x25643c}=_0x399c34;return _0x418bde(_0x19dc14,{'children':[_0x16d666('div',{'className':_0x4e9507(0x191),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x16d666(_0x282005,{'size':_0x4e9507(0x163),'type':_0x4e9507(0x1b9),'onClick':()=>_0x25643c[_0x4e9507(0x1ad)](),'children':_0x4e9507(0x1d0)})]});}function Ve(){var _0x11fa86=_0x8742f7;return _0x16d666(_0x19dc14,{'children':_0x11fa86(0x1a6)});}var Me=Object[_0x8742f7(0x1db)],ke=(_0xce5900,_0x3eb6db,_0x42aed6,_0x568cdd)=>{var _0x3f8e1a=_0x8742f7;for(var _0x2016ee=_0x568cdd>0x1?void 0x0:_0x568cdd?Me(_0x3eb6db,_0x42aed6):_0x3eb6db,_0x43002b=_0xce5900[_0x3f8e1a(0x166)]-0x1,_0x1e4980;_0x43002b>=0x0;_0x43002b--)(_0x1e4980=_0xce5900[_0x43002b])&&(_0x2016ee=_0x1e4980(_0x2016ee)||_0x2016ee);return _0x2016ee;},$=(_0x4b223e,_0x31bbb4)=>(_0x25c0b6,_0x272819)=>_0x31bbb4(_0x25c0b6,_0x272819,_0x4b223e);let b=class extends _0x369ecc{constructor(_0x41081f,_0x23e604){var _0x138c93=_0x8742f7;super(),this[_0x138c93(0x18b)]=_0x41081f,this[_0x138c93(0x1dd)]=_0x23e604,this[_0x138c93(0x1ed)]();}[_0x8742f7(0x1ed)](){var _0x2270de=_0x8742f7;this[_0x2270de(0x14d)](this[_0x2270de(0x1dd)][_0x2270de(0x1c8)](_0x2df6c9[_0x2270de(0x16a)],()=>_0x408ef4(Te,this[_0x2270de(0x18b)])));}};b=ke([$(0x0,_0xf62884(_0x4e61f3)),$(0x1,_0x141036)],b);var Ge=Object['defineProperty'],We=Object[_0x8742f7(0x1db)],Ye=(_0xc5e19d,_0x5d86de,_0x329d6e)=>_0x5d86de in _0xc5e19d?Ge(_0xc5e19d,_0x5d86de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x329d6e}):_0xc5e19d[_0x5d86de]=_0x329d6e,ze=(_0x30a52c,_0x2b3cf4,_0x2aa981,_0x301662)=>{var _0x33c277=_0x8742f7;for(var _0x40a316=_0x301662>0x1?void 0x0:_0x301662?We(_0x2b3cf4,_0x2aa981):_0x2b3cf4,_0x3a46fa=_0x30a52c[_0x33c277(0x166)]-0x1,_0x1cd372;_0x3a46fa>=0x0;_0x3a46fa--)(_0x1cd372=_0x30a52c[_0x3a46fa])&&(_0x40a316=_0x1cd372(_0x40a316)||_0x40a316);return _0x40a316;},F=(_0x35fa27,_0x37acbe)=>(_0x306c70,_0x3fea8b)=>_0x37acbe(_0x306c70,_0x3fea8b,_0x35fa27),Z=(_0x6230e3,_0x38864d,_0x53888b)=>Ye(_0x6230e3,typeof _0x38864d!='symbol'?_0x38864d+'':_0x38864d,_0x53888b);const Be=_0x8742f7(0x1ca);let O=class extends _0x385f17{constructor(_0x549bf1=T,_0x1b4514,_0x56fcf0){var _0x3fd293=_0x8742f7;super(),this[_0x3fd293(0x14f)]=_0x549bf1,this['_injector']=_0x1b4514,this[_0x3fd293(0x1d4)]=_0x56fcf0;const {..._0x1a8961}=_0xa0c0ca({},T,this[_0x3fd293(0x14f)]);this[_0x3fd293(0x1d4)][_0x3fd293(0x160)](Oe,_0x1a8961);}['onStarting'](){var _0x26bd1a=_0x8742f7;_0x4d9515(this['_injector'],_0x16b2d9([[x],[I],[m],[b]],this['_config'][_0x26bd1a(0x177)])),_0x22019d(this[_0x26bd1a(0x18b)],[[m]]);}['onRendered'](){_0x22019d(this['_injector'],[[b]]);}};Z(O,_0x8742f7(0x174),_0x5de484[_0x8742f7(0x195)]),Z(O,_0x8742f7(0x151),Be),O=ze([_0x39d2b0(_0x43bc81),F(0x1,_0xf62884(_0x4e61f3)),F(0x2,_0x4decb3)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1d053e=_0x4d17;(function(_0xc214d3,_0x264060){var _0x2879aa=_0x4d17,_0x3e4b19=_0xc214d3();while(!![]){try{var _0x5c5e57=-parseInt(_0x2879aa(0x131))/0x1*(-parseInt(_0x2879aa(0xbe))/0x2)+parseInt(_0x2879aa(0xce))/0x3*(parseInt(_0x2879aa(0x11c))/0x4)+parseInt(_0x2879aa(0x167))/0x5*(parseInt(_0x2879aa(0x12e))/0x6)+parseInt(_0x2879aa(0x142))/0x7*(-parseInt(_0x2879aa(0xf9))/0x8)+-parseInt(_0x2879aa(0x16b))/0x9+parseInt(_0x2879aa(0xd7))/0xa*(parseInt(_0x2879aa(0x12d))/0xb)+parseInt(_0x2879aa(0xeb))/0xc;if(_0x5c5e57===_0x264060)break;else _0x3e4b19['push'](_0x3e4b19['shift']());}catch(_0x33a3c4){_0x3e4b19['push'](_0x3e4b19['shift']());}}}(_0x5f41,0xb0e81));var K=Object[_0x1d053e(0x16a)],q=(_0x308ba8,_0x509df3,_0xddaf17)=>_0x509df3 in _0x308ba8?K(_0x308ba8,_0x509df3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xddaf17}):_0x308ba8[_0x509df3]=_0xddaf17,d=(_0x31ff92,_0x3ba2e7,_0x381279)=>q(_0x31ff92,typeof _0x3ba2e7!=_0x1d053e(0x10e)?_0x3ba2e7+'':_0x3ba2e7,_0x381279);import{CollaborationSessionService as _0x2a0b5a,SessionStatus as _0x4447c3,UniverCollaborationClientPlugin as _0x5f42ba}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4b77c6,toDisposable as _0x47659c,Inject as _0x4ee71d,IUniverInstanceService as _0x1622ae,Injector as _0x139bab,IConfigService as _0x1bc4f5,ICommandService as _0x24effd,RxDisposable as _0x592a67,UniverInstanceType as _0x56ea93,DisposableCollection as _0x596020,CommandType as _0x453c3d,DependentOn as _0x3361d3,Plugin as _0x5711ad,merge as _0x121527,registerDependencies as _0x4da2ae,mergeOverrideWithDependencies as _0x910ba,touchDependencies as _0x45c617}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x6fecbc,InsertSheetMutation as _0x4ec1f3}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x19e69a,SetScrollOperation as _0xc7b3fd}from'@univerjs/sheets-ui';import{useDependency as _0x142198,useObservable as _0x314f30,IUIPartsService as _0x35c429,BuiltInUIPart as _0x5735d2,connectInjector as _0x210e7c}from'@univerjs/ui';import{jsx as _0x9861a0,jsxs as _0x5eb8c2,Fragment as _0x436476}from'react/jsx-runtime';import{Dropdown as _0x418940,clsx as _0x7fed82,Button as _0x457bae}from'@univerjs/design';import{forwardRef as _0x4425b9,useRef as _0x18d4f6,createElement as _0x367f2f,useState as _0x30c52d,useEffect as _0x53fe9e}from'react';import{CollaborationEvent as _0x572764,parseProtocolChangeset as _0xd6a569}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2d97bb,Subject as _0x154b7a}from'rxjs';import{takeUntil as _0x56e73d,throttleTime as _0x523d8b}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0x4b77c6{constructor(){var _0x4319fb=_0x1d053e;super(...arguments),d(this,_0x4319fb(0x163),new Set()),d(this,_0x4319fb(0x124),new Set());}[_0x1d053e(0xde)](_0x59987d){var _0x4a1dc4=_0x1d053e;return this[_0x4a1dc4(0x163)][_0x4a1dc4(0x169)](_0x59987d),_0x47659c(()=>this[_0x4a1dc4(0x163)][_0x4a1dc4(0x122)](_0x59987d));}[_0x1d053e(0x145)](_0x3cfab4){var _0x31558a=_0x1d053e;return this['_reporters'][_0x31558a(0x169)](_0x3cfab4),_0x47659c(()=>this[_0x31558a(0x124)][_0x31558a(0x122)](_0x3cfab4));}[_0x1d053e(0x14a)](_0x11f398){var _0x1369a3=_0x1d053e;return this[_0x1369a3(0x163)][_0x1369a3(0xf6)](_0x11f398);}['getInitialStates'](_0x2e18bb){var _0x4d8c95=_0x1d053e;return Array[_0x4d8c95(0x12c)](this[_0x4d8c95(0x124)])[_0x4d8c95(0x10f)](_0x16fab9=>_0x16fab9(_0x2e18bb));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x55af85,_0x4da1a5,_0x33bb54,_0x492438)=>{var _0x5ed736=_0x1d053e;for(var _0x1c923b=_0x492438>0x1?void 0x0:_0x492438?Ee(_0x4da1a5,_0x33bb54):_0x4da1a5,_0x5874e7=_0x55af85[_0x5ed736(0x161)]-0x1,_0x3bd2dd;_0x5874e7>=0x0;_0x5874e7--)(_0x3bd2dd=_0x55af85[_0x5874e7])&&(_0x1c923b=_0x3bd2dd(_0x1c923b)||_0x1c923b);return _0x1c923b;},Ne=(_0x53be87,_0x44cdf6)=>(_0x1d8384,_0xee6b4a)=>_0x44cdf6(_0x1d8384,_0xee6b4a,_0x53be87);let m=class extends _0x4b77c6{constructor(_0x1d884f){var _0x33bc9e=_0x1d053e;super(),this[_0x33bc9e(0xd1)]=_0x1d884f,this[_0x33bc9e(0x10a)]();}[_0x1d053e(0x10a)](){var _0x41c601=_0x1d053e;[_0x19e69a['id'],_0xc7b3fd['id'],_0x6fecbc['id']][_0x41c601(0xfc)](_0x19ecb9=>{var _0x562456=_0x41c601;this[_0x562456(0xf4)](this[_0x562456(0xd1)][_0x562456(0xde)](_0x19ecb9));});}};m=Ce([Ne(0x0,_0x4ee71d(x))],m);var c=function(){var _0x438eff=_0x1d053e;return c=Object[_0x438eff(0xc6)]||function(_0x2951e1){var _0x34115c=_0x438eff;for(var _0x24dee6,_0x3322a8=0x1,_0x5c3204=arguments['length'];_0x3322a8<_0x5c3204;_0x3322a8++){_0x24dee6=arguments[_0x3322a8];for(var _0x4f87f5 in _0x24dee6)Object[_0x34115c(0xd8)][_0x34115c(0x11e)][_0x34115c(0x100)](_0x24dee6,_0x4f87f5)&&(_0x2951e1[_0x4f87f5]=_0x24dee6[_0x4f87f5]);}return _0x2951e1;},c[_0x438eff(0x15e)](this,arguments);},we=function(_0x4d2279,_0x514c2a){var _0x27f258=_0x1d053e,_0x5c01f7={};for(var _0x44dbe1 in _0x4d2279)Object[_0x27f258(0xd8)][_0x27f258(0x11e)][_0x27f258(0x100)](_0x4d2279,_0x44dbe1)&&_0x514c2a['indexOf'](_0x44dbe1)<0x0&&(_0x5c01f7[_0x44dbe1]=_0x4d2279[_0x44dbe1]);if(_0x4d2279!=null&&typeof Object[_0x27f258(0xe4)]==_0x27f258(0xf5)){for(var _0x42e2b2=0x0,_0x44dbe1=Object[_0x27f258(0xe4)](_0x4d2279);_0x42e2b2<_0x44dbe1[_0x27f258(0x161)];_0x42e2b2++)_0x514c2a['indexOf'](_0x44dbe1[_0x42e2b2])<0x0&&Object[_0x27f258(0xd8)][_0x27f258(0x153)][_0x27f258(0x100)](_0x4d2279,_0x44dbe1[_0x42e2b2])&&(_0x5c01f7[_0x44dbe1[_0x42e2b2]]=_0x4d2279[_0x44dbe1[_0x42e2b2]]);}return _0x5c01f7;},W=_0x4425b9(function(_0x569fc5,_0x50ae02){var _0x2f638c=_0x1d053e,_0x7db7ad=_0x569fc5['icon'],_0x43c685=_0x569fc5['id'],_0x314185=_0x569fc5[_0x2f638c(0x129)],_0x4cb010=_0x569fc5['extend'],_0x32ee2b=we(_0x569fc5,['icon','id',_0x2f638c(0x129),_0x2f638c(0x108)]),_0x3c8d22='univerjs-icon\x20univerjs-icon-'[_0x2f638c(0x106)](_0x43c685,'\x20')['concat'](_0x314185||'')[_0x2f638c(0xcf)](),_0x4ecfb2=_0x18d4f6('_'['concat'](xe()));return Y(_0x7db7ad,''[_0x2f638c(0x106)](_0x43c685),{'defIds':_0x7db7ad[_0x2f638c(0x132)],'idSuffix':_0x4ecfb2[_0x2f638c(0x13c)]},c({'ref':_0x50ae02,'className':_0x3c8d22},_0x32ee2b),_0x4cb010);});function Y(_0x90c328,_0x41b639,_0x2231ca,_0x40a4f5,_0x50751f){var _0x17cd07=_0x1d053e;return _0x367f2f(_0x90c328['tag'],c(c({'key':_0x41b639},De(_0x90c328,_0x2231ca,_0x50751f)),_0x40a4f5),(Le(_0x90c328,_0x2231ca)[_0x17cd07(0xbc)]||[])[_0x17cd07(0x10f)](function(_0x24bde4,_0x43c3ae){var _0x139493=_0x17cd07;return Y(_0x24bde4,''[_0x139493(0x106)](_0x41b639,'-')[_0x139493(0x106)](_0x90c328['tag'],'-')[_0x139493(0x106)](_0x43c3ae),_0x2231ca,void 0x0,_0x50751f);}));}function De(_0x5ec61c,_0x36d212,_0xa117cb){var _0x829740=_0x1d053e,_0x1d2a24=c({},_0x5ec61c[_0x829740(0x136)]);_0xa117cb!=null&&_0xa117cb[_0x829740(0x15b)]&&_0x1d2a24[_0x829740(0x156)]==='colorChannel1'&&(_0x1d2a24[_0x829740(0x156)]=_0xa117cb[_0x829740(0x15b)]),_0x5ec61c['tag']===_0x829740(0x15f)&&_0x1d2a24['id']&&(_0x1d2a24['id']=_0x1d2a24['id']+_0x36d212[_0x829740(0x121)]),Object['entries'](_0x1d2a24)[_0x829740(0xfc)](function(_0x25c6f1){var _0x5d9679=_0x829740,_0x47ad25=_0x25c6f1[0x0],_0x14fa60=_0x25c6f1[0x1];_0x47ad25===_0x5d9679(0x15f)&&typeof _0x14fa60==_0x5d9679(0xfb)&&(_0x1d2a24[_0x47ad25]=_0x14fa60[_0x5d9679(0x104)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x36d212[_0x5d9679(0x121)],')')));});var _0x3ce0b7=_0x36d212[_0x829740(0x132)];return!_0x3ce0b7||_0x3ce0b7[_0x829740(0x161)]===0x0||(_0x5ec61c[_0x829740(0xcd)]==='use'&&_0x1d2a24[_0x829740(0x15d)]&&(_0x1d2a24[_0x829740(0x15d)]=_0x1d2a24[_0x829740(0x15d)]+_0x36d212[_0x829740(0x121)]),Object[_0x829740(0x107)](_0x1d2a24)[_0x829740(0xfc)](function(_0x3642ab){var _0x2853f4=_0x829740,_0x45854f=_0x3642ab[0x0],_0x5997af=_0x3642ab[0x1];typeof _0x5997af=='string'&&(_0x1d2a24[_0x45854f]=_0x5997af[_0x2853f4(0x104)](/url\(#(.*)\)/,'url(#$1'[_0x2853f4(0x106)](_0x36d212[_0x2853f4(0x121)],')')));})),_0x1d2a24;}function Le(_0x3b9110,_0x43bf62){var _0x5933c6=_0x1d053e,_0x1718dc,_0x1b32d4=_0x43bf62[_0x5933c6(0x132)];return!_0x1b32d4||_0x1b32d4[_0x5933c6(0x161)]===0x0?_0x3b9110:_0x3b9110[_0x5933c6(0xcd)]===_0x5933c6(0x117)&&(!((_0x1718dc=_0x3b9110[_0x5933c6(0xbc)])===null||_0x1718dc===void 0x0)&&_0x1718dc[_0x5933c6(0x161)])?c(c({},_0x3b9110),{'children':_0x3b9110['children']['map'](function(_0x3a1cd6){var _0x4fdfa9=_0x5933c6;return typeof _0x3a1cd6[_0x4fdfa9(0x136)]['id']==_0x4fdfa9(0xfb)&&_0x1b32d4&&_0x1b32d4[_0x4fdfa9(0x14e)](_0x3a1cd6[_0x4fdfa9(0x136)]['id'])>-0x1?c(c({},_0x3a1cd6),{'attrs':c(c({},_0x3a1cd6[_0x4fdfa9(0x136)]),{'id':_0x3a1cd6[_0x4fdfa9(0x136)]['id']+_0x43bf62[_0x4fdfa9(0x121)]})}):_0x3a1cd6;})}):_0x3b9110;}function xe(){var _0x3b4a2e=_0x1d053e;return Math[_0x3b4a2e(0xe9)]()['toString'](0x24)[_0x3b4a2e(0x123)](0x2,0x8);}W[_0x1d053e(0x159)]='UniverIcon';var ye={'tag':'svg','attrs':{'fill':_0x1d053e(0xc9),'viewBox':'0\x200\x2016\x2016','width':_0x1d053e(0x12f),'height':_0x1d053e(0x12f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x1d053e(0x164),'attrs':{'fill':_0x1d053e(0xd5),'d':_0x1d053e(0x13e),'fillRule':_0x1d053e(0x165),'clipRule':_0x1d053e(0x165)}}]},z=_0x4425b9(function(_0x4c4260,_0x5820d3){var _0x43a510=_0x1d053e;return _0x367f2f(W,Object[_0x43a510(0xc6)]({},_0x4c4260,{'id':'live-share-single','ref':_0x5820d3,'icon':ye}));});z['displayName']=_0x1d053e(0xda);var Re=Object[_0x1d053e(0x102)],B=(_0x1b81e9,_0x3d9e77,_0x4cf181,_0x55318d)=>{var _0x404ea6=_0x1d053e;for(var _0x3c1bb9=_0x55318d>0x1?void 0x0:_0x55318d?Re(_0x3d9e77,_0x4cf181):_0x3d9e77,_0x298634=_0x1b81e9[_0x404ea6(0x161)]-0x1,_0x4c1828;_0x298634>=0x0;_0x298634--)(_0x4c1828=_0x1b81e9[_0x298634])&&(_0x3c1bb9=_0x4c1828(_0x3c1bb9)||_0x3c1bb9);return _0x3c1bb9;},f=(_0x581829,_0x2189dc)=>(_0x24b58d,_0x5dc610)=>_0x2189dc(_0x24b58d,_0x5dc610,_0x581829);let I=class extends _0x592a67{constructor(_0x42a280,_0x2baca1,_0x40cb9c){var _0x5d87c1=_0x1d053e;super(),d(this,_0x5d87c1(0xcb),new Map()),(this['_univerInstanceService']=_0x42a280,this[_0x5d87c1(0x140)]=_0x2baca1,this[_0x5d87c1(0x10d)]=_0x40cb9c,this['_init']());}async['getLiveShareCoordinator'](_0x1583f5){var _0x4d7822=_0x1d053e;return this[_0x4d7822(0xcb)][_0x4d7822(0xf6)](_0x1583f5)||await this[_0x4d7822(0x162)](_0x1583f5),this['_entities']['get'](_0x1583f5);}[_0x1d053e(0x10a)](){var _0x3019a5=_0x1d053e;this[_0x3019a5(0xc7)]['getTypeOfUnitAdded$'](_0x56ea93[_0x3019a5(0x130)])[_0x3019a5(0xef)](_0x56e73d(this[_0x3019a5(0xff)]))[_0x3019a5(0xe7)](async _0x400210=>{var _0x4a51eb=_0x3019a5;const _0x5ca978=_0x400210[_0x4a51eb(0x127)]();this['_entities'][_0x4a51eb(0xf6)](_0x5ca978)||this['_startLiveShareCoordinator'](_0x5ca978);}),this['_univerInstanceService'][_0x3019a5(0x13b)](_0x56ea93[_0x3019a5(0x130)])['pipe'](_0x56e73d(this[_0x3019a5(0xff)]))['subscribe'](_0x51ab89=>{var _0x99e31f=_0x3019a5;const _0x17304c=_0x51ab89['getUnitId'](),_0x34eb0f=this[_0x99e31f(0xcb)][_0x99e31f(0x13d)](_0x17304c);_0x34eb0f==null||_0x34eb0f[_0x99e31f(0x120)]();});}async[_0x1d053e(0x162)](_0x11af06){var _0x295698=_0x1d053e;const _0x2be9a2=await this[_0x295698(0x10d)][_0x295698(0xee)](_0x11af06),_0x5cfad6=this['_injector'][_0x295698(0x125)](w,_0x11af06,_0x2be9a2);return _0x5cfad6[_0x295698(0xdd)](),this[_0x295698(0xcb)]['set'](_0x11af06,_0x5cfad6),_0x5cfad6;}};I=B([f(0x0,_0x1622ae),f(0x1,_0x4ee71d(_0x139bab)),f(0x2,_0x4ee71d(_0x2a0b5a))],I);var h=(_0x22524c=>(_0x22524c['OFFLINE']=_0x1d053e(0xfd),_0x22524c['IDLE']=_0x1d053e(0xf3),_0x22524c[_0x1d053e(0xc4)]='following',_0x22524c[_0x1d053e(0x151)]='not-following',_0x22524c[_0x1d053e(0xd2)]=_0x1d053e(0x16e),_0x22524c))(h||{});const Pe=_0x1d053e(0xe6),Ae=0xc8;let w=class extends _0x592a67{constructor(_0x128340,_0x3fa777,_0x3c24a8,_0x1f28bd,_0x5ec0d2){var _0x348a2b=_0x1d053e;super(),d(this,'_status$',new _0x2d97bb(_0x348a2b(0xf3))),d(this,_0x348a2b(0x134),this['_status$'][_0x348a2b(0xe5)]()),d(this,'_init',!0x1),d(this,_0x348a2b(0xd9),null),d(this,_0x348a2b(0x119),null),(this[_0x348a2b(0x126)]=_0x128340,this[_0x348a2b(0xc8)]=_0x3fa777,this['_configService']=_0x3c24a8,this['_liveShareService']=_0x1f28bd,this['_commandService']=_0x5ec0d2);}get[_0x1d053e(0xc0)](){var _0x201781=_0x1d053e;return this['_status$'][_0x201781(0x101)]();}[_0x1d053e(0x120)](){var _0x3a8ad7=_0x1d053e,_0x1073fe;(_0x1073fe=this['_commandDisposable'])==null||_0x1073fe[_0x3a8ad7(0x120)](),this[_0x3a8ad7(0x110)][_0x3a8ad7(0x11f)](_0x3a8ad7(0xf3)),this[_0x3a8ad7(0x110)][_0x3a8ad7(0xc1)]();}['init'](){var _0x5c9ecb=_0x1d053e;this[_0x5c9ecb(0x10a)]||(this['_init']=!0x0,this[_0x5c9ecb(0xc8)]['sessionStatus$']['pipe'](_0x56e73d(this['dispose$']))[_0x5c9ecb(0xe7)](_0x33a4ed=>{var _0x5f4007=_0x5c9ecb;switch(_0x33a4ed){case _0x4447c3['OFFLINE']:this[_0x5f4007(0xdf)]();break;case _0x4447c3[_0x5f4007(0x12a)]:this[_0x5f4007(0xea)]();break;}}),this['_collabSession'][_0x5c9ecb(0x11b)]['pipe'](_0x56e73d(this[_0x5c9ecb(0xff)]))[_0x5c9ecb(0xe7)](_0x14429e=>{var _0x45e64f=_0x5c9ecb;const {eventID:_0x39770d}=_0x14429e;switch(_0x39770d){case _0x572764[_0x45e64f(0xc2)]:this[_0x45e64f(0x103)](_0x14429e);break;case _0x572764[_0x45e64f(0xf7)]:this['_handleOperation'](_0x14429e);break;case _0x572764['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x572764[_0x45e64f(0xf1)]:this[_0x45e64f(0x13a)](_0x14429e);break;}}));}['tryStartPresenting'](){var _0x430ea0=_0x1d053e;this[_0x430ea0(0xc8)][_0x430ea0(0xd4)]({'eventID':_0x572764[_0x430ea0(0x139)],'data':{'unitID':this[_0x430ea0(0x126)],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x1d053e(0xed)](){var _0x49cbb6=_0x1d053e;this[_0x49cbb6(0xc0)]==='presenting'&&(this[_0x49cbb6(0x110)][_0x49cbb6(0x11f)](_0x49cbb6(0xf3)),this['_collabSession']['send']({'eventID':_0x572764[_0x49cbb6(0x10b)],'data':{'unitID':this[_0x49cbb6(0x126)]}},this[_0x49cbb6(0x126)]));}[_0x1d053e(0x109)](){var _0x4a1a75=_0x1d053e;this[_0x4a1a75(0xc0)]==='not-following'&&(this[_0x4a1a75(0x110)][_0x4a1a75(0x11f)]('following'),this[_0x4a1a75(0xf8)]());}[_0x1d053e(0x154)](){var _0x567324=_0x1d053e;this[_0x567324(0xc0)]===_0x567324(0xfe)&&this[_0x567324(0xe3)]();}[_0x1d053e(0x103)](_0x332220){var _0x33420f=_0x1d053e;const {presenter:_0x36184e}=_0x332220['data'],_0x434b13=this['_collabSession'][_0x33420f(0xc5)]();this['_presenter']=_0x36184e,_0x36184e===_0x434b13?(this[_0x33420f(0xe3)](),this[_0x33420f(0xdb)]()):this[_0x33420f(0xc0)]!=='not-following'&&(this[_0x33420f(0x148)](),this[_0x33420f(0xf8)]());}[_0x1d053e(0x133)](){var _0x5ed814=_0x1d053e;const _0x3aca41={'eventID':_0x572764['LIVESHARE_FETCH_OPERATIONS']};this[_0x5ed814(0xc8)][_0x5ed814(0xd4)](_0x3aca41,this[_0x5ed814(0x126)]);}[_0x1d053e(0xf0)](){var _0x742a2c=_0x1d053e;this[_0x742a2c(0x119)]=null,this['_status']!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x28afd4){var _0x27b335=_0x1d053e;if(this[_0x27b335(0xc0)]===_0x27b335(0xfe)&&this[_0x27b335(0x119)]===_0x28afd4[_0x27b335(0xca)][_0x27b335(0x112)]){const _0x5676dd=_0xd6a569(_0x28afd4[_0x27b335(0xca)])[_0x27b335(0x152)][_0x27b335(0x16f)]()[_0x27b335(0x143)](_0x2c5c4a=>_0x2c5c4a['id']===_0x4ec1f3['id']);if(_0x5676dd){const _0x43ae3a=_0x5676dd[_0x27b335(0x170)][_0x27b335(0x16d)],_0x1ffe2b=_0x5676dd['params'][_0x27b335(0x14d)]['id'];setTimeout(()=>{var _0x128dca=_0x27b335;this[_0x128dca(0x15c)]['executeCommand'](_0x6fecbc['id'],{'unitId':_0x43ae3a,'subUnitId':_0x1ffe2b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a4df6=_0x1d053e;this[_0x3a4df6(0x110)][_0x3a4df6(0x11f)](_0x3a4df6(0x16e));const _0x5a3172=new Map(),_0xc45e8c=this['_commandDisposable']=new _0x596020();_0xc45e8c['add'](_0x47659c(()=>{var _0x41ad82=_0x3a4df6;_0x5a3172[_0x41ad82(0xfc)](_0x38d0ce=>_0x38d0ce[_0x41ad82(0xc1)]()),_0x5a3172[_0x41ad82(0x128)]();})),_0xc45e8c['add'](this['_commandService']['onCommandExecuted'](_0x7c1d50=>{var _0x59387e=_0x3a4df6,_0x499efd;if(_0x7c1d50[_0x59387e(0xe1)]!==_0x453c3d[_0x59387e(0x144)]||!this['_liveShareService'][_0x59387e(0x14a)](_0x7c1d50['id']))return;const {id:_0x33c85d}=_0x7c1d50;let _0x1957bc;_0x5a3172[_0x59387e(0xf6)](_0x33c85d)?_0x1957bc=_0x5a3172[_0x59387e(0x13d)](_0x33c85d):(_0x1957bc=new _0x154b7a(),_0x5a3172[_0x59387e(0x150)](_0x33c85d,_0x1957bc),_0x1957bc[_0x59387e(0xef)](_0x523d8b((_0x499efd=this[_0x59387e(0x141)][_0x59387e(0xf2)](Pe))!=null?_0x499efd:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x300031=>{var _0x53b43a=_0x59387e;this['_collabSession'][_0x53b43a(0xd4)]({'eventID':_0x572764[_0x53b43a(0xf7)],'data':{'unitID':this[_0x53b43a(0x126)],'operations':{[_0x300031['id']]:{'id':_0x300031['id'],'params':JSON[_0x53b43a(0xc3)](_0x300031[_0x53b43a(0x170)])}}}},this[_0x53b43a(0x126)]);})),_0x1957bc[_0x59387e(0x11f)](_0x7c1d50);})),this[_0x3a4df6(0xd1)][_0x3a4df6(0xd3)](this[_0x3a4df6(0x126)])[_0x3a4df6(0xfc)](_0x47d311=>this[_0x3a4df6(0xc8)][_0x3a4df6(0xd4)]({'eventID':_0x572764[_0x3a4df6(0xf7)],'data':{'unitID':this[_0x3a4df6(0x126)],'operations':{[_0x47d311['id']]:{'id':_0x47d311['id'],'params':JSON[_0x3a4df6(0xc3)](_0x47d311[_0x3a4df6(0x170)])}}}},this['_unitID']));}[_0x1d053e(0x148)](){var _0xf05077=_0x1d053e,_0x283470;this[_0xf05077(0x110)][_0xf05077(0x11f)](_0xf05077(0xf3)),(_0x283470=this[_0xf05077(0xd9)])==null||_0x283470[_0xf05077(0x120)](),this[_0xf05077(0xd9)]=null;}['_startFollowing'](){var _0x49c326=_0x1d053e,_0x3e78ed;(_0x3e78ed=this[_0x49c326(0xd9)])==null||_0x3e78ed[_0x49c326(0x120)](),this['_status$'][_0x49c326(0x11f)](_0x49c326(0xfe));}[_0x1d053e(0xd6)](){var _0x20b500=_0x1d053e,_0x447bae;this['_status$']['next'](_0x20b500(0xf3)),(_0x447bae=this[_0x20b500(0xd9)])==null||_0x447bae[_0x20b500(0x120)](),this[_0x20b500(0xd9)]=null;}[_0x1d053e(0xe3)](){var _0x2d7c64=_0x1d053e,_0x160357;this['_status$'][_0x2d7c64(0x11f)](_0x2d7c64(0x113)),(_0x160357=this[_0x2d7c64(0xd9)])==null||_0x160357[_0x2d7c64(0x120)]();}[_0x1d053e(0xe8)](_0x2e4c00){var _0xc2cec1=_0x1d053e;if([_0xc2cec1(0x16e),'not-following','offline']['includes'](this[_0xc2cec1(0xc0)])||!_0x2e4c00[_0xc2cec1(0xca)][_0xc2cec1(0x155)]||_0x2e4c00[_0xc2cec1(0xca)][_0xc2cec1(0x155)]===this[_0xc2cec1(0xc8)]['getMemberID']())return;this[_0xc2cec1(0xc0)]===_0xc2cec1(0xf3)&&this[_0xc2cec1(0xf8)]();const _0x5deb45=_0x2e4c00[_0xc2cec1(0xca)]['operations'];Object[_0xc2cec1(0x115)](_0x5deb45)[_0xc2cec1(0xfc)](_0x459903=>{var _0x1b1e3b=_0xc2cec1;this[_0x1b1e3b(0x15c)]['executeCommand'](_0x459903['id'],_0x459903[_0x1b1e3b(0x170)]?JSON[_0x1b1e3b(0x137)](_0x459903[_0x1b1e3b(0x170)]):null,{'fromCollab':!0x0});});}[_0x1d053e(0xdf)](){var _0x327e9f=_0x1d053e,_0x4b0154;this[_0x327e9f(0x110)][_0x327e9f(0x11f)](_0x327e9f(0xfd)),(_0x4b0154=this['_commandDisposable'])==null||_0x4b0154[_0x327e9f(0x120)]();}[_0x1d053e(0xea)](){var _0x32e8fa=_0x1d053e;this[_0x32e8fa(0x110)][_0x32e8fa(0x11f)]('idle'),this[_0x32e8fa(0x133)]();}};w=B([f(0x2,_0x1bc4f5),f(0x3,_0x4ee71d(x)),f(0x4,_0x24effd)],w);function _0x5f41(){var _0x3a491c=['getConfig','idle','disposeWithMe','function','has','LIVESHARE_OPERATION','_startFollowing','8IXyNyv','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','string','forEach','offline','following','dispose$','call','getValue','getOwnPropertyDescriptor','_handleNewHost','replace','OFFLINE','concat','entries','extend','startFollowing','_init','LIVESHARE_TERMINATE','text','_collabSessionService','symbol','map','_status$','Stop\x20presenting','memberID','not-following','UNIVER_UNKNOWN','values','tryStartPresenting','defs','_config','_presenter','You\x27re\x20following\x20the\x20presenter','event$','4xrigds','Start','hasOwnProperty','next','dispose','idSuffix','delete','substring','_reporters','createInstance','_unitID','getUnitId','clear','className','ONLINE','_uiPartsService','from','21692TxHljG','3929340oXoPyU','1em','UNIVER_SHEET','95zpCorn','defIds','_fetchOperations','status$','getCurrentTypeOfUnit$','attrs','parse','default','LIVESHARE_REQUEST_HOST','_handleNewChangeSets','getTypeOfUnitDisposed$','current','get','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','setConfig','_injector','_configService','6174238NyXQfn','find','OPERATION','registerInitialStateReporter','div','Present\x20this\x20document','_stopPresenting','registerComponent','shouldShareOperation','HEADER_MENU','pluginName','sheet','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','set','NOT_FOLLOWING','mutations','propertyIsEnumerable','stopFollowing','presenter','fill','onStarting','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','displayName','override','colorChannel1','_commandService','xlink:href','apply','mask','univer-size-4','length','_startLiveShareCoordinator','_sharedOperations','path','evenodd','IDLE','5JoWIOt','You\x27are\x20offline.','add','defineProperty','8922843AdpBsF','end','unitId','presenting','reverse','params','children','Start\x20following','10952rzUmdp','button','_status','complete','LIVESHARE_NEW_HOST','stringify','FOLLOWING','getMemberID','assign','_univerInstanceService','_collabSession','none','data','_entities','_mountLiveShare','tag','326442GIjyXA','trim','then','_liveShareService','PRESENTING','getInitialStates','send','currentColor','_beIdle','1900yKtgzS','prototype','_commandDisposable','LiveShareSingle','_startPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','init','registerSharedOperation','_handleOffline','unsubscribe','type','UNIVER_LIVE_SHARE_PLUGIN','_stopFollowing','getOwnPropertySymbols','asObservable','SAME_OPERATION_SHARE_INTERVAL','subscribe','_handleOperation','random','_handleOnline','11273592umQWfc','small','stopPresenting','requireSession','pipe','_handleTerminate','NEW_CHANGESETS'];_0x5f41=function(){return _0x3a491c;};return _0x5f41();}function Te(){var _0x169a1e=_0x1d053e;const _0x5bad14=_0x142198(I),_0x479761=_0x142198(_0x1622ae),_0x1326b4=_0x314f30(()=>_0x479761[_0x169a1e(0x135)](_0x56ea93[_0x169a1e(0x130)]),void 0x0,!0x1,[]),[_0x2fb69c,_0x1f76d8]=_0x30c52d(null),[_0x447378,_0x394795]=_0x30c52d(h[_0x169a1e(0x166)]),_0x350841=_0x18d4f6(null);return _0x53fe9e(()=>(_0x1326b4&&_0x5bad14['getLiveShareCoordinator'](_0x1326b4[_0x169a1e(0x127)]())[_0x169a1e(0xd0)](_0x4b87c9=>{var _0x1ee1c6=_0x169a1e;_0x1f76d8(_0x4b87c9),_0x350841['current']=_0x4b87c9[_0x1ee1c6(0x134)][_0x1ee1c6(0xe7)](_0x17dc02=>{_0x394795(_0x17dc02);});}),()=>{var _0xb84955=_0x169a1e,_0x4d32ab;(_0x4d32ab=_0x350841[_0xb84955(0x13c)])==null||_0x4d32ab[_0xb84955(0xe0)](),_0x350841[_0xb84955(0x13c)]=null;}),[_0x1326b4,_0x5bad14]),_0x2fb69c?_0x9861a0(_0x418940,{'align':_0x169a1e(0x16c),'disabled':_0x447378===h[_0x169a1e(0x105)],'className':_0x169a1e(0xfa),'overlay':_0x9861a0($e,{'status':_0x447378,'coordinator':_0x2fb69c}),'children':_0x9861a0(_0x169a1e(0xbf),{'className':_0x7fed82(_0x169a1e(0xdc),{'univer-cursor-not-allowed':_0x447378===h[_0x169a1e(0x105)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x447378!==h[_0x169a1e(0x105)]}),'type':_0x169a1e(0xbf),'children':_0x9861a0(z,{'className':_0x169a1e(0x160)})})}):null;}function $e(_0x3cf291){var _0x390119=_0x1d053e;const {status:_0x58cc8a,coordinator:_0x5ded4e}=_0x3cf291;switch(_0x58cc8a){case h['IDLE']:return _0x9861a0(Fe,{'coordinator':_0x5ded4e});case h['FOLLOWING']:return _0x9861a0(He,{'coordinator':_0x5ded4e});case h[_0x390119(0x151)]:return _0x9861a0(je,{'coordinator':_0x5ded4e});case h[_0x390119(0x105)]:return _0x9861a0(Ve,{});case h[_0x390119(0xd2)]:return _0x9861a0(Ue,{'coordinator':_0x5ded4e});default:return null;}}function Fe(_0x3dd305){var _0x55d0bb=_0x1d053e;const {coordinator:_0x4b0dbd}=_0x3dd305;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0('div',{'className':_0x55d0bb(0x158),'children':_0x55d0bb(0x147)}),_0x9861a0(_0x457bae,{'size':_0x55d0bb(0xec),'type':_0x55d0bb(0x138),'onClick':()=>_0x4b0dbd[_0x55d0bb(0x116)](),'children':_0x55d0bb(0x11d)})]});}function He(_0x27c1e4){var _0x3b18a0=_0x1d053e;const {coordinator:_0x4c5cce}=_0x27c1e4;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0('div',{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3b18a0(0x11a)}),_0x9861a0(_0x457bae,{'size':_0x3b18a0(0xec),'type':_0x3b18a0(0x138),'onClick':()=>_0x4c5cce[_0x3b18a0(0x154)](),'children':'Stop\x20following'})]});}function je(_0x45bb26){var _0x307bfc=_0x1d053e;const {coordinator:_0x157854}=_0x45bb26;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0(_0x307bfc(0x146),{'className':_0x307bfc(0x158),'children':_0x307bfc(0x14f)}),_0x9861a0(_0x457bae,{'size':_0x307bfc(0xec),'type':_0x307bfc(0x10c),'onClick':()=>_0x157854['startFollowing'](),'children':_0x307bfc(0xbd)})]});}function _0x4d17(_0x1655b7,_0x50c247){var _0x5f41af=_0x5f41();return _0x4d17=function(_0x4d176a,_0x52582d){_0x4d176a=_0x4d176a-0xbc;var _0xab839e=_0x5f41af[_0x4d176a];return _0xab839e;},_0x4d17(_0x1655b7,_0x50c247);}function Ue(_0x6dee70){var _0x42ce23=_0x1d053e;const {coordinator:_0x489328}=_0x6dee70;return _0x5eb8c2(_0x436476,{'children':[_0x9861a0('div',{'className':_0x42ce23(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x9861a0(_0x457bae,{'size':_0x42ce23(0xec),'type':_0x42ce23(0x138),'onClick':()=>_0x489328[_0x42ce23(0xed)](),'children':_0x42ce23(0x111)})]});}function Ve(){var _0x2be840=_0x1d053e;return _0x9861a0(_0x436476,{'children':_0x2be840(0x168)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x3b9a35,_0x4816f7,_0x23d5d5,_0x32c046)=>{var _0x49d84b=_0x1d053e;for(var _0x459311=_0x32c046>0x1?void 0x0:_0x32c046?Me(_0x4816f7,_0x23d5d5):_0x4816f7,_0x48e7a2=_0x3b9a35[_0x49d84b(0x161)]-0x1,_0x427d78;_0x48e7a2>=0x0;_0x48e7a2--)(_0x427d78=_0x3b9a35[_0x48e7a2])&&(_0x459311=_0x427d78(_0x459311)||_0x459311);return _0x459311;},$=(_0x4a666f,_0x16a120)=>(_0x49c2a4,_0x33282c)=>_0x16a120(_0x49c2a4,_0x33282c,_0x4a666f);let b=class extends _0x4b77c6{constructor(_0x59845b,_0x4b8425){var _0x18b649=_0x1d053e;super(),this[_0x18b649(0x140)]=_0x59845b,this[_0x18b649(0x12b)]=_0x4b8425,this[_0x18b649(0xcc)]();}['_mountLiveShare'](){var _0x2c1c75=_0x1d053e;this['disposeWithMe'](this[_0x2c1c75(0x12b)][_0x2c1c75(0x149)](_0x5735d2[_0x2c1c75(0x14b)],()=>_0x210e7c(Te,this[_0x2c1c75(0x140)])));}};b=ke([$(0x0,_0x4ee71d(_0x139bab)),$(0x1,_0x35c429)],b);var Ge=Object[_0x1d053e(0x16a)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x4f6150,_0x5aee6e,_0x5917cf)=>_0x5aee6e in _0x4f6150?Ge(_0x4f6150,_0x5aee6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5917cf}):_0x4f6150[_0x5aee6e]=_0x5917cf,ze=(_0x127390,_0x389f77,_0x2dce03,_0x1e2b66)=>{for(var _0x4f3dfc=_0x1e2b66>0x1?void 0x0:_0x1e2b66?We(_0x389f77,_0x2dce03):_0x389f77,_0x34116a=_0x127390['length']-0x1,_0x229568;_0x34116a>=0x0;_0x34116a--)(_0x229568=_0x127390[_0x34116a])&&(_0x4f3dfc=_0x229568(_0x4f3dfc)||_0x4f3dfc);return _0x4f3dfc;},F=(_0x22b4b2,_0x5efb86)=>(_0x275aa3,_0x224fcf)=>_0x5efb86(_0x275aa3,_0x224fcf,_0x22b4b2),Z=(_0x406349,_0x2a403c,_0x172992)=>Ye(_0x406349,typeof _0x2a403c!=_0x1d053e(0x10e)?_0x2a403c+'':_0x2a403c,_0x172992);const Be=_0x1d053e(0xe2);let O=class extends _0x5711ad{constructor(_0x1ed351=T,_0x3ee9ba,_0x5763f9){var _0x5316e8=_0x1d053e;super(),this[_0x5316e8(0x118)]=_0x1ed351,this[_0x5316e8(0x140)]=_0x3ee9ba,this[_0x5316e8(0x141)]=_0x5763f9;const {..._0x3dd705}=_0x121527({},T,this['_config']);this[_0x5316e8(0x141)][_0x5316e8(0x13f)](Oe,_0x3dd705);}[_0x1d053e(0x157)](){var _0x23757f=_0x1d053e;_0x4da2ae(this[_0x23757f(0x140)],_0x910ba([[x],[I],[m],[b]],this[_0x23757f(0x118)][_0x23757f(0x15a)])),_0x45c617(this['_injector'],[[m]]);}['onRendered'](){_0x45c617(this['_injector'],[[b]]);}};Z(O,_0x1d053e(0xe1),_0x56ea93[_0x1d053e(0x114)]),Z(O,_0x1d053e(0x14c),Be),O=ze([_0x3361d3(_0x5f42ba),F(0x1,_0x4ee71d(_0x139bab)),F(0x2,_0x1bc4f5)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x8742f7=_0x53dc;(function(_0x3d326b,_0x5bef99){var _0x130371=_0x53dc,_0x286ef8=_0x3d326b();while(!![]){try{var _0x3549c8=-parseInt(_0x130371(0x13b))/0x1+parseInt(_0x130371(0x1d7))/0x2*(parseInt(_0x130371(0x17b))/0x3)+-parseInt(_0x130371(0x19e))/0x4+parseInt(_0x130371(0x1d9))/0x5*(parseInt(_0x130371(0x168))/0x6)+parseInt(_0x130371(0x171))/0x7*(parseInt(_0x130371(0x140))/0x8)+parseInt(_0x130371(0x1cc))/0x9*(-parseInt(_0x130371(0x17a))/0xa)+-parseInt(_0x130371(0x1dc))/0xb;if(_0x3549c8===_0x5bef99)break;else _0x286ef8['push'](_0x286ef8['shift']());}catch(_0x523879){_0x286ef8['push'](_0x286ef8['shift']());}}}(_0x52ca,0x7b2bf));function _0x53dc(_0x449068,_0x41f8a8){var _0x52ca2f=_0x52ca();return _0x53dc=function(_0x53dcdf,_0x33ea38){_0x53dcdf=_0x53dcdf-0x13a;var _0x2023e8=_0x52ca2f[_0x53dcdf];return _0x2023e8;},_0x53dc(_0x449068,_0x41f8a8);}var K=Object[_0x8742f7(0x15e)],q=(_0xd04437,_0x4a748d,_0x37037d)=>_0x4a748d in _0xd04437?K(_0xd04437,_0x4a748d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37037d}):_0xd04437[_0x4a748d]=_0x37037d,d=(_0x569de6,_0x368b68,_0x5f11d6)=>q(_0x569de6,typeof _0x368b68!='symbol'?_0x368b68+'':_0x368b68,_0x5f11d6);import{CollaborationSessionService as _0x331b9c,SessionStatus as _0x4648a8,UniverCollaborationClientPlugin as _0x43bc81}from'@univerjs-pro/collaboration-client';import{Disposable as _0x369ecc,toDisposable as _0x1af99f,Inject as _0xf62884,IUniverInstanceService as _0xca97d6,Injector as _0x4e61f3,IConfigService as _0x4decb3,ICommandService as _0x4f5d4f,RxDisposable as _0x293990,UniverInstanceType as _0x5de484,DisposableCollection as _0xc54da7,CommandType as _0x7ddbcc,DependentOn as _0x39d2b0,Plugin as _0x385f17,merge as _0xa0c0ca,registerDependencies as _0x4d9515,mergeOverrideWithDependencies as _0x16b2d9,touchDependencies as _0x22019d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3ae193,InsertSheetMutation as _0x1c5a73}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5e6c7c,SetScrollOperation as _0xc328d6}from'@univerjs/sheets-ui';import{useDependency as _0x51d529,useObservable as _0x3ebf7a,IUIPartsService as _0x141036,BuiltInUIPart as _0x2df6c9,connectInjector as _0x408ef4}from'@univerjs/ui';import{jsx as _0x16d666,jsxs as _0x418bde,Fragment as _0x19dc14}from'react/jsx-runtime';function _0x52ca(){var _0x3b9c14=['_startLiveShareCoordinator','getOwnPropertyDescriptor','3004606bzrfAD','_uiPartsService','icon','getOwnPropertySymbols','LIVESHARE_REQUEST_HOST','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','forEach','concat','params','live-share-single','memberID','startFollowing','_fetchOperations','onCommandExecuted','data','get','extend','_mountLiveShare','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','382599nOGYgS','1em','createInstance','_stopFollowing','send','24TyNbpS','LIVESHARE_TERMINATE','getUnitId','defs','_startPresenting','unsubscribe','clear','init','_presenter','_beIdle','NEW_CHANGESETS','stringify','hasOwnProperty','disposeWithMe','random','_config','_univerInstanceService','pluginName','presenting','tag','current','executeCommand','event$','Start\x20following','getMemberID','_status','stopFollowing','propertyIsEnumerable','prototype','NOT_FOLLOWING','defineProperty','call','setConfig','next','subscribe','small','following','sheet','length','presenter','105906ZJbuky','_handleTerminate','HEADER_MENU','getLiveShareCoordinator','_startFollowing','colorChannel1','fill','svg','idle','1951579MIATiw','ONLINE','IDLE','type','You\x27re\x20following\x20the\x20presenter','set','override','shouldShareOperation','use','600jkfHnW','110283ZXmuRt','find','dispose','_liveShareService','getTypeOfUnitDisposed$','from','SAME_OPERATION_SHARE_INTERVAL','trim','Present\x20this\x20document','OPERATION','xlink:href','has','LIVESHARE_FETCH_OPERATIONS','displayName','PRESENTING','getCurrentTypeOfUnit$','_injector','status$','offline','LIVESHARE_OPERATION','complete','map','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','_handleOperation','_collabSessionService','currentColor','UNIVER_UNKNOWN','attrs','then','idSuffix','registerInitialStateReporter','_init','string','mask','LiveShareSingle','2174024Ccusup','_entities','OFFLINE','parse','end','includes','pipe','none','You\x27are\x20offline.','Start','unitId','replace','text','sessionStatus$','getTypeOfUnitAdded$','stopPresenting','_sharedOperations','evenodd','_status$','path','toString','values','_handleNewChangeSets','url(#$1','substring','_commandDisposable','_commandService','default','univerjs-icon\x20univerjs-icon-','_reporters','defIds','tryStartPresenting','children','_collabSession','operations','not-following','delete','add','apply','FOLLOWING','UNIVER_SHEET','function','registerComponent','dispose$','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','54333TSJRJM','_handleOnline','_unitID','reverse','Stop\x20presenting','indexOf','_stopPresenting','div','_configService','entries','_handleOffline','16stJYsF','requireSession','265PbTAdZ'];_0x52ca=function(){return _0x3b9c14;};return _0x52ca();}import{Dropdown as _0x16e236,clsx as _0x106395,Button as _0x282005}from'@univerjs/design';import{forwardRef as _0x3bafd9,useRef as _0x23a14e,createElement as _0x2f9dd5,useState as _0x22401c,useEffect as _0x2f606b}from'react';import{CollaborationEvent as _0x13c64f,parseProtocolChangeset as _0x2e8c2e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x501098,Subject as _0x16f0ef}from'rxjs';import{takeUntil as _0x319dce,throttleTime as _0x1e2b8b}from'rxjs/operators';const Oe='live-share.config',T={};class x extends _0x369ecc{constructor(){var _0x42d463=_0x8742f7;super(...arguments),d(this,_0x42d463(0x1ae),new Set()),d(this,_0x42d463(0x1bb),new Set());}[_0x8742f7(0x1cb)](_0x19f595){var _0x2b6bd0=_0x8742f7;return this[_0x2b6bd0(0x1ae)]['add'](_0x19f595),_0x1af99f(()=>this['_sharedOperations'][_0x2b6bd0(0x1c2)](_0x19f595));}[_0x8742f7(0x199)](_0x153ba6){var _0x14c8be=_0x8742f7;return this[_0x14c8be(0x1bb)]['add'](_0x153ba6),_0x1af99f(()=>this[_0x14c8be(0x1bb)][_0x14c8be(0x1c2)](_0x153ba6));}[_0x8742f7(0x178)](_0x1347a3){var _0x507a45=_0x8742f7;return this[_0x507a45(0x1ae)][_0x507a45(0x186)](_0x1347a3);}['getInitialStates'](_0x49f952){var _0x41e3d6=_0x8742f7;return Array[_0x41e3d6(0x180)](this[_0x41e3d6(0x1bb)])['map'](_0x402914=>_0x402914(_0x49f952));}}var Ee=Object[_0x8742f7(0x1db)],Ce=(_0x2a76fb,_0x468207,_0x229074,_0x369446)=>{var _0x4f3b43=_0x8742f7;for(var _0x1b9a09=_0x369446>0x1?void 0x0:_0x369446?Ee(_0x468207,_0x229074):_0x468207,_0x9c6c89=_0x2a76fb[_0x4f3b43(0x166)]-0x1,_0x3dba34;_0x9c6c89>=0x0;_0x9c6c89--)(_0x3dba34=_0x2a76fb[_0x9c6c89])&&(_0x1b9a09=_0x3dba34(_0x1b9a09)||_0x1b9a09);return _0x1b9a09;},Ne=(_0x212aae,_0x10aa53)=>(_0x3c91e5,_0x48264b)=>_0x10aa53(_0x3c91e5,_0x48264b,_0x212aae);let m=class extends _0x369ecc{constructor(_0x20ac7a){var _0x2aa01c=_0x8742f7;super(),this['_liveShareService']=_0x20ac7a,this[_0x2aa01c(0x19a)]();}['_init'](){[_0x5e6c7c['id'],_0xc328d6['id'],_0x3ae193['id']]['forEach'](_0xcef429=>{var _0x5ce74d=_0x53dc;this[_0x5ce74d(0x14d)](this[_0x5ce74d(0x17e)][_0x5ce74d(0x1cb)](_0xcef429));});}};m=Ce([Ne(0x0,_0xf62884(x))],m);var c=function(){var _0x27eb66=_0x8742f7;return c=Object['assign']||function(_0x59045f){var _0x393b82=_0x53dc;for(var _0x14a0ee,_0xab3eb1=0x1,_0x3c5f46=arguments['length'];_0xab3eb1<_0x3c5f46;_0xab3eb1++){_0x14a0ee=arguments[_0xab3eb1];for(var _0x1cf2ad in _0x14a0ee)Object['prototype'][_0x393b82(0x14c)][_0x393b82(0x15f)](_0x14a0ee,_0x1cf2ad)&&(_0x59045f[_0x1cf2ad]=_0x14a0ee[_0x1cf2ad]);}return _0x59045f;},c[_0x27eb66(0x1c4)](this,arguments);},we=function(_0x2eb3aa,_0x1e7a46){var _0x5316fa=_0x8742f7,_0x5137a9={};for(var _0xc7d57d in _0x2eb3aa)Object[_0x5316fa(0x15c)][_0x5316fa(0x14c)][_0x5316fa(0x15f)](_0x2eb3aa,_0xc7d57d)&&_0x1e7a46[_0x5316fa(0x1d1)](_0xc7d57d)<0x0&&(_0x5137a9[_0xc7d57d]=_0x2eb3aa[_0xc7d57d]);if(_0x2eb3aa!=null&&typeof Object[_0x5316fa(0x1df)]==_0x5316fa(0x1c7)){for(var _0x5ed8ec=0x0,_0xc7d57d=Object[_0x5316fa(0x1df)](_0x2eb3aa);_0x5ed8ec<_0xc7d57d['length'];_0x5ed8ec++)_0x1e7a46[_0x5316fa(0x1d1)](_0xc7d57d[_0x5ed8ec])<0x0&&Object[_0x5316fa(0x15c)][_0x5316fa(0x15b)][_0x5316fa(0x15f)](_0x2eb3aa,_0xc7d57d[_0x5ed8ec])&&(_0x5137a9[_0xc7d57d[_0x5ed8ec]]=_0x2eb3aa[_0xc7d57d[_0x5ed8ec]]);}return _0x5137a9;},W=_0x3bafd9(function(_0x405171,_0x14dad5){var _0x297685=_0x8742f7,_0x206c3d=_0x405171[_0x297685(0x1de)],_0x2b562c=_0x405171['id'],_0x4b52c3=_0x405171['className'],_0x283f1d=_0x405171[_0x297685(0x1ec)],_0x12be0e=we(_0x405171,[_0x297685(0x1de),'id','className',_0x297685(0x1ec)]),_0x2375cf=_0x297685(0x1ba)['concat'](_0x2b562c,'\x20')[_0x297685(0x1e3)](_0x4b52c3||'')[_0x297685(0x182)](),_0xd2253e=_0x23a14e('_'[_0x297685(0x1e3)](xe()));return Y(_0x206c3d,''[_0x297685(0x1e3)](_0x2b562c),{'defIds':_0x206c3d[_0x297685(0x1bc)],'idSuffix':_0xd2253e[_0x297685(0x154)]},c({'ref':_0x14dad5,'className':_0x2375cf},_0x12be0e),_0x283f1d);});function Y(_0x3d183b,_0xcc06d,_0x125a55,_0x17bf72,_0x200930){var _0x1338e5=_0x8742f7;return _0x2f9dd5(_0x3d183b[_0x1338e5(0x153)],c(c({'key':_0xcc06d},De(_0x3d183b,_0x125a55,_0x200930)),_0x17bf72),(Le(_0x3d183b,_0x125a55)[_0x1338e5(0x1be)]||[])[_0x1338e5(0x190)](function(_0x481d2d,_0x45b9ca){var _0x6cd25=_0x1338e5;return Y(_0x481d2d,''[_0x6cd25(0x1e3)](_0xcc06d,'-')[_0x6cd25(0x1e3)](_0x3d183b['tag'],'-')['concat'](_0x45b9ca),_0x125a55,void 0x0,_0x200930);}));}function De(_0x1d202a,_0xc09e5a,_0x1c7fca){var _0x28b4e1=_0x8742f7,_0x3d3c76=c({},_0x1d202a[_0x28b4e1(0x196)]);_0x1c7fca!=null&&_0x1c7fca[_0x28b4e1(0x16d)]&&_0x3d3c76['fill']===_0x28b4e1(0x16d)&&(_0x3d3c76[_0x28b4e1(0x16e)]=_0x1c7fca[_0x28b4e1(0x16d)]),_0x1d202a[_0x28b4e1(0x153)]===_0x28b4e1(0x19c)&&_0x3d3c76['id']&&(_0x3d3c76['id']=_0x3d3c76['id']+_0xc09e5a[_0x28b4e1(0x198)]),Object[_0x28b4e1(0x1d5)](_0x3d3c76)[_0x28b4e1(0x1e2)](function(_0x5075a1){var _0x5ca24f=_0x28b4e1,_0x42159d=_0x5075a1[0x0],_0x441c7f=_0x5075a1[0x1];_0x42159d==='mask'&&typeof _0x441c7f==_0x5ca24f(0x19b)&&(_0x3d3c76[_0x42159d]=_0x441c7f[_0x5ca24f(0x1a9)](/url\(#(.*)\)/,_0x5ca24f(0x1b5)[_0x5ca24f(0x1e3)](_0xc09e5a[_0x5ca24f(0x198)],')')));});var _0x39c5c6=_0xc09e5a[_0x28b4e1(0x1bc)];return!_0x39c5c6||_0x39c5c6[_0x28b4e1(0x166)]===0x0||(_0x1d202a[_0x28b4e1(0x153)]===_0x28b4e1(0x179)&&_0x3d3c76[_0x28b4e1(0x185)]&&(_0x3d3c76['xlink:href']=_0x3d3c76['xlink:href']+_0xc09e5a[_0x28b4e1(0x198)]),Object[_0x28b4e1(0x1d5)](_0x3d3c76)[_0x28b4e1(0x1e2)](function(_0xc10881){var _0x1020f8=_0x28b4e1,_0x319bb0=_0xc10881[0x0],_0x58ad05=_0xc10881[0x1];typeof _0x58ad05=='string'&&(_0x3d3c76[_0x319bb0]=_0x58ad05['replace'](/url\(#(.*)\)/,_0x1020f8(0x1b5)[_0x1020f8(0x1e3)](_0xc09e5a['idSuffix'],')')));})),_0x3d3c76;}function Le(_0x1cc2ba,_0x5c9e12){var _0x1ce41d=_0x8742f7,_0xb0b94b,_0x1ddaa5=_0x5c9e12[_0x1ce41d(0x1bc)];return!_0x1ddaa5||_0x1ddaa5['length']===0x0?_0x1cc2ba:_0x1cc2ba[_0x1ce41d(0x153)]===_0x1ce41d(0x143)&&(!((_0xb0b94b=_0x1cc2ba[_0x1ce41d(0x1be)])===null||_0xb0b94b===void 0x0)&&_0xb0b94b['length'])?c(c({},_0x1cc2ba),{'children':_0x1cc2ba[_0x1ce41d(0x1be)][_0x1ce41d(0x190)](function(_0x56db7c){var _0x4bc75e=_0x1ce41d;return typeof _0x56db7c[_0x4bc75e(0x196)]['id']=='string'&&_0x1ddaa5&&_0x1ddaa5[_0x4bc75e(0x1d1)](_0x56db7c['attrs']['id'])>-0x1?c(c({},_0x56db7c),{'attrs':c(c({},_0x56db7c['attrs']),{'id':_0x56db7c[_0x4bc75e(0x196)]['id']+_0x5c9e12[_0x4bc75e(0x198)]})}):_0x56db7c;})}):_0x1cc2ba;}function xe(){var _0x472104=_0x8742f7;return Math[_0x472104(0x14e)]()[_0x472104(0x1b2)](0x24)[_0x472104(0x1b6)](0x2,0x8);}W[_0x8742f7(0x188)]='UniverIcon';var ye={'tag':_0x8742f7(0x16f),'attrs':{'fill':_0x8742f7(0x1a5),'viewBox':'0\x200\x2016\x2016','width':_0x8742f7(0x13c),'height':_0x8742f7(0x13c)},'children':[{'tag':_0x8742f7(0x1b1),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x8742f7(0x1b1),'attrs':{'fill':_0x8742f7(0x194),'d':_0x8742f7(0x1e1),'fillRule':_0x8742f7(0x1af),'clipRule':_0x8742f7(0x1af)}}]},z=_0x3bafd9(function(_0x45741f,_0x359736){var _0x436d94=_0x8742f7;return _0x2f9dd5(W,Object['assign']({},_0x45741f,{'id':_0x436d94(0x1e5),'ref':_0x359736,'icon':ye}));});z['displayName']=_0x8742f7(0x19d);var Re=Object['getOwnPropertyDescriptor'],B=(_0x57fa0c,_0x1c8429,_0x1d601f,_0x5db215)=>{for(var _0x5b2cb5=_0x5db215>0x1?void 0x0:_0x5db215?Re(_0x1c8429,_0x1d601f):_0x1c8429,_0x571437=_0x57fa0c['length']-0x1,_0x3e195c;_0x571437>=0x0;_0x571437--)(_0x3e195c=_0x57fa0c[_0x571437])&&(_0x5b2cb5=_0x3e195c(_0x5b2cb5)||_0x5b2cb5);return _0x5b2cb5;},f=(_0x2dc453,_0x24478a)=>(_0x28ab6e,_0x53ab0e)=>_0x24478a(_0x28ab6e,_0x53ab0e,_0x2dc453);let I=class extends _0x293990{constructor(_0x23ec7b,_0x392f9c,_0x3d46a7){var _0x2a87aa=_0x8742f7;super(),d(this,_0x2a87aa(0x19f),new Map()),(this[_0x2a87aa(0x150)]=_0x23ec7b,this[_0x2a87aa(0x18b)]=_0x392f9c,this[_0x2a87aa(0x193)]=_0x3d46a7,this[_0x2a87aa(0x19a)]());}async[_0x8742f7(0x16b)](_0x493e69){var _0x53c128=_0x8742f7;return this[_0x53c128(0x19f)][_0x53c128(0x186)](_0x493e69)||await this[_0x53c128(0x1da)](_0x493e69),this['_entities']['get'](_0x493e69);}[_0x8742f7(0x19a)](){var _0xb32d2c=_0x8742f7;this[_0xb32d2c(0x150)][_0xb32d2c(0x1ac)](_0x5de484[_0xb32d2c(0x1c6)])[_0xb32d2c(0x1a4)](_0x319dce(this[_0xb32d2c(0x1c9)]))[_0xb32d2c(0x162)](async _0xa5e844=>{var _0x42f9fc=_0xb32d2c;const _0xd45fae=_0xa5e844['getUnitId']();this[_0x42f9fc(0x19f)]['has'](_0xd45fae)||this['_startLiveShareCoordinator'](_0xd45fae);}),this[_0xb32d2c(0x150)][_0xb32d2c(0x17f)](_0x5de484[_0xb32d2c(0x1c6)])[_0xb32d2c(0x1a4)](_0x319dce(this[_0xb32d2c(0x1c9)]))[_0xb32d2c(0x162)](_0x1475f4=>{var _0x418f84=_0xb32d2c;const _0xea7117=_0x1475f4[_0x418f84(0x142)](),_0x466769=this[_0x418f84(0x19f)]['get'](_0xea7117);_0x466769==null||_0x466769[_0x418f84(0x17d)]();});}async[_0x8742f7(0x1da)](_0x45f2b6){var _0x2caec2=_0x8742f7;const _0x53caea=await this[_0x2caec2(0x193)][_0x2caec2(0x1d8)](_0x45f2b6),_0x56ad12=this['_injector'][_0x2caec2(0x13d)](w,_0x45f2b6,_0x53caea);return _0x56ad12[_0x2caec2(0x147)](),this[_0x2caec2(0x19f)][_0x2caec2(0x176)](_0x45f2b6,_0x56ad12),_0x56ad12;}};I=B([f(0x0,_0xca97d6),f(0x1,_0xf62884(_0x4e61f3)),f(0x2,_0xf62884(_0x331b9c))],I);var h=(_0x5dcb35=>(_0x5dcb35[_0x8742f7(0x1a0)]=_0x8742f7(0x18d),_0x5dcb35[_0x8742f7(0x173)]=_0x8742f7(0x170),_0x5dcb35[_0x8742f7(0x1c5)]='following',_0x5dcb35['NOT_FOLLOWING']=_0x8742f7(0x1c1),_0x5dcb35[_0x8742f7(0x189)]=_0x8742f7(0x152),_0x5dcb35))(h||{});const Pe=_0x8742f7(0x181),Ae=0xc8;let w=class extends _0x293990{constructor(_0xa3c7b3,_0x485e06,_0x29dced,_0x25d78d,_0x15583c){var _0x2c170b=_0x8742f7;super(),d(this,_0x2c170b(0x1b0),new _0x501098('idle')),d(this,_0x2c170b(0x18c),this[_0x2c170b(0x1b0)]['asObservable']()),d(this,_0x2c170b(0x19a),!0x1),d(this,_0x2c170b(0x1b7),null),d(this,_0x2c170b(0x148),null),(this['_unitID']=_0xa3c7b3,this['_collabSession']=_0x485e06,this['_configService']=_0x29dced,this['_liveShareService']=_0x25d78d,this[_0x2c170b(0x1b8)]=_0x15583c);}get[_0x8742f7(0x159)](){var _0x5b6d1a=_0x8742f7;return this[_0x5b6d1a(0x1b0)]['getValue']();}[_0x8742f7(0x17d)](){var _0xe41fc5=_0x8742f7,_0x295da9;(_0x295da9=this[_0xe41fc5(0x1b7)])==null||_0x295da9[_0xe41fc5(0x17d)](),this['_status$']['next'](_0xe41fc5(0x170)),this[_0xe41fc5(0x1b0)][_0xe41fc5(0x18f)]();}[_0x8742f7(0x147)](){var _0x99246a=_0x8742f7;this[_0x99246a(0x19a)]||(this[_0x99246a(0x19a)]=!0x0,this[_0x99246a(0x1bf)][_0x99246a(0x1ab)][_0x99246a(0x1a4)](_0x319dce(this[_0x99246a(0x1c9)]))[_0x99246a(0x162)](_0x363f1c=>{var _0x5c5e1c=_0x99246a;switch(_0x363f1c){case _0x4648a8['OFFLINE']:this['_handleOffline']();break;case _0x4648a8[_0x5c5e1c(0x172)]:this[_0x5c5e1c(0x1cd)]();break;}}),this[_0x99246a(0x1bf)][_0x99246a(0x156)][_0x99246a(0x1a4)](_0x319dce(this['dispose$']))[_0x99246a(0x162)](_0x3f1d70=>{var _0x54126c=_0x99246a;const {eventID:_0x570f99}=_0x3f1d70;switch(_0x570f99){case _0x13c64f['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x3f1d70);break;case _0x13c64f[_0x54126c(0x18e)]:this['_handleOperation'](_0x3f1d70);break;case _0x13c64f[_0x54126c(0x141)]:this[_0x54126c(0x169)]();break;case _0x13c64f[_0x54126c(0x14a)]:this[_0x54126c(0x1b4)](_0x3f1d70);break;}}));}[_0x8742f7(0x1bd)](){var _0x660578=_0x8742f7;this[_0x660578(0x1bf)][_0x660578(0x13f)]({'eventID':_0x13c64f[_0x660578(0x1e0)],'data':{'unitID':this[_0x660578(0x1ce)],'userID':this[_0x660578(0x1bf)]['getMemberID']()}},this['_unitID']);}[_0x8742f7(0x1ad)](){var _0x4ced18=_0x8742f7;this[_0x4ced18(0x159)]===_0x4ced18(0x152)&&(this[_0x4ced18(0x1b0)][_0x4ced18(0x161)](_0x4ced18(0x170)),this[_0x4ced18(0x1bf)][_0x4ced18(0x13f)]({'eventID':_0x13c64f[_0x4ced18(0x141)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x8742f7(0x1e7)](){var _0x1859d4=_0x8742f7;this[_0x1859d4(0x159)]===_0x1859d4(0x1c1)&&(this['_status$'][_0x1859d4(0x161)]('following'),this['_startFollowing']());}[_0x8742f7(0x15a)](){var _0x4419cb=_0x8742f7;this[_0x4419cb(0x159)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x281ab3){var _0x29b079=_0x8742f7;const {presenter:_0x179f76}=_0x281ab3[_0x29b079(0x1ea)],_0x2b08e0=this['_collabSession'][_0x29b079(0x158)]();this[_0x29b079(0x148)]=_0x179f76,_0x179f76===_0x2b08e0?(this['_stopFollowing'](),this[_0x29b079(0x144)]()):this[_0x29b079(0x159)]!==_0x29b079(0x1c1)&&(this[_0x29b079(0x1d2)](),this[_0x29b079(0x16c)]());}['_fetchOperations'](){var _0x1157bc=_0x8742f7;const _0x2dcf1e={'eventID':_0x13c64f[_0x1157bc(0x187)]};this[_0x1157bc(0x1bf)]['send'](_0x2dcf1e,this[_0x1157bc(0x1ce)]);}[_0x8742f7(0x169)](){var _0x49c523=_0x8742f7;this['_presenter']=null,this[_0x49c523(0x159)]!=='presenting'&&this['_beIdle']();}[_0x8742f7(0x1b4)](_0x21cf15){var _0xffd60c=_0x8742f7;if(this[_0xffd60c(0x159)]===_0xffd60c(0x164)&&this[_0xffd60c(0x148)]===_0x21cf15['data'][_0xffd60c(0x1e6)]){const _0x52443c=_0x2e8c2e(_0x21cf15[_0xffd60c(0x1ea)])['mutations'][_0xffd60c(0x1cf)]()[_0xffd60c(0x17c)](_0x2eed78=>_0x2eed78['id']===_0x1c5a73['id']);if(_0x52443c){const _0x8c4204=_0x52443c[_0xffd60c(0x1e4)][_0xffd60c(0x1a8)],_0x459b60=_0x52443c[_0xffd60c(0x1e4)][_0xffd60c(0x165)]['id'];setTimeout(()=>{var _0x113d02=_0xffd60c;this[_0x113d02(0x1b8)]['executeCommand'](_0x3ae193['id'],{'unitId':_0x8c4204,'subUnitId':_0x459b60},{'fromCollab':!0x0});});}}}[_0x8742f7(0x144)](){var _0x3d93f4=_0x8742f7;this['_status$']['next'](_0x3d93f4(0x152));const _0x2d5364=new Map(),_0x1d7519=this[_0x3d93f4(0x1b7)]=new _0xc54da7();_0x1d7519['add'](_0x1af99f(()=>{var _0x1506aa=_0x3d93f4;_0x2d5364['forEach'](_0x1ac09d=>_0x1ac09d['complete']()),_0x2d5364[_0x1506aa(0x146)]();})),_0x1d7519[_0x3d93f4(0x1c3)](this[_0x3d93f4(0x1b8)][_0x3d93f4(0x1e9)](_0x2e43ca=>{var _0x45f7be=_0x3d93f4,_0x5d87f8;if(_0x2e43ca['type']!==_0x7ddbcc[_0x45f7be(0x184)]||!this[_0x45f7be(0x17e)][_0x45f7be(0x178)](_0x2e43ca['id']))return;const {id:_0x2484ba}=_0x2e43ca;let _0x1ac489;_0x2d5364['has'](_0x2484ba)?_0x1ac489=_0x2d5364[_0x45f7be(0x1eb)](_0x2484ba):(_0x1ac489=new _0x16f0ef(),_0x2d5364[_0x45f7be(0x176)](_0x2484ba,_0x1ac489),_0x1ac489['pipe'](_0x1e2b8b((_0x5d87f8=this[_0x45f7be(0x1d4)]['getConfig'](Pe))!=null?_0x5d87f8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x45f7be(0x162)](_0x3ae66f=>{var _0x189148=_0x45f7be;this[_0x189148(0x1bf)]['send']({'eventID':_0x13c64f[_0x189148(0x18e)],'data':{'unitID':this[_0x189148(0x1ce)],'operations':{[_0x3ae66f['id']]:{'id':_0x3ae66f['id'],'params':JSON[_0x189148(0x14b)](_0x3ae66f[_0x189148(0x1e4)])}}}},this['_unitID']);})),_0x1ac489[_0x45f7be(0x161)](_0x2e43ca);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x3d93f4(0x1e2)](_0x26d9fc=>this[_0x3d93f4(0x1bf)][_0x3d93f4(0x13f)]({'eventID':_0x13c64f[_0x3d93f4(0x18e)],'data':{'unitID':this[_0x3d93f4(0x1ce)],'operations':{[_0x26d9fc['id']]:{'id':_0x26d9fc['id'],'params':JSON[_0x3d93f4(0x14b)](_0x26d9fc['params'])}}}},this[_0x3d93f4(0x1ce)]));}['_stopPresenting'](){var _0x5d2038=_0x8742f7,_0x30fac3;this[_0x5d2038(0x1b0)]['next'](_0x5d2038(0x170)),(_0x30fac3=this[_0x5d2038(0x1b7)])==null||_0x30fac3[_0x5d2038(0x17d)](),this['_commandDisposable']=null;}[_0x8742f7(0x16c)](){var _0x3a0329=_0x8742f7,_0x14796b;(_0x14796b=this['_commandDisposable'])==null||_0x14796b['dispose'](),this[_0x3a0329(0x1b0)][_0x3a0329(0x161)](_0x3a0329(0x164));}[_0x8742f7(0x149)](){var _0x2b7410=_0x8742f7,_0x2d7e90;this[_0x2b7410(0x1b0)][_0x2b7410(0x161)](_0x2b7410(0x170)),(_0x2d7e90=this[_0x2b7410(0x1b7)])==null||_0x2d7e90[_0x2b7410(0x17d)](),this[_0x2b7410(0x1b7)]=null;}[_0x8742f7(0x13e)](){var _0x1de7c1=_0x8742f7,_0x45598f;this[_0x1de7c1(0x1b0)][_0x1de7c1(0x161)](_0x1de7c1(0x1c1)),(_0x45598f=this['_commandDisposable'])==null||_0x45598f['dispose']();}[_0x8742f7(0x192)](_0x46fc74){var _0x3f3d95=_0x8742f7;if([_0x3f3d95(0x152),'not-following',_0x3f3d95(0x18d)][_0x3f3d95(0x1a3)](this[_0x3f3d95(0x159)])||!_0x46fc74[_0x3f3d95(0x1ea)][_0x3f3d95(0x167)]||_0x46fc74[_0x3f3d95(0x1ea)][_0x3f3d95(0x167)]===this[_0x3f3d95(0x1bf)]['getMemberID']())return;this['_status']==='idle'&&this[_0x3f3d95(0x16c)]();const _0xa2b986=_0x46fc74['data'][_0x3f3d95(0x1c0)];Object[_0x3f3d95(0x1b3)](_0xa2b986)[_0x3f3d95(0x1e2)](_0x15f79c=>{var _0x16c3a1=_0x3f3d95;this['_commandService'][_0x16c3a1(0x155)](_0x15f79c['id'],_0x15f79c['params']?JSON[_0x16c3a1(0x1a1)](_0x15f79c[_0x16c3a1(0x1e4)]):null,{'fromCollab':!0x0});});}[_0x8742f7(0x1d6)](){var _0x3f264f=_0x8742f7,_0x3f8de0;this['_status$']['next'](_0x3f264f(0x18d)),(_0x3f8de0=this[_0x3f264f(0x1b7)])==null||_0x3f8de0[_0x3f264f(0x17d)]();}[_0x8742f7(0x1cd)](){var _0x5c7740=_0x8742f7;this[_0x5c7740(0x1b0)][_0x5c7740(0x161)](_0x5c7740(0x170)),this[_0x5c7740(0x1e8)]();}};w=B([f(0x2,_0x4decb3),f(0x3,_0xf62884(x)),f(0x4,_0x4f5d4f)],w);function Te(){var _0x15dafd=_0x8742f7;const _0x421b2a=_0x51d529(I),_0x2a2c21=_0x51d529(_0xca97d6),_0x231e73=_0x3ebf7a(()=>_0x2a2c21[_0x15dafd(0x18a)](_0x5de484[_0x15dafd(0x1c6)]),void 0x0,!0x1,[]),[_0x5b3468,_0x4efaba]=_0x22401c(null),[_0x5f587c,_0x30b91a]=_0x22401c(h[_0x15dafd(0x173)]),_0x33f440=_0x23a14e(null);return _0x2f606b(()=>(_0x231e73&&_0x421b2a[_0x15dafd(0x16b)](_0x231e73[_0x15dafd(0x142)]())[_0x15dafd(0x197)](_0x13d635=>{_0x4efaba(_0x13d635),_0x33f440['current']=_0x13d635['status$']['subscribe'](_0x202309=>{_0x30b91a(_0x202309);});}),()=>{var _0x44d454=_0x15dafd,_0x40485a;(_0x40485a=_0x33f440[_0x44d454(0x154)])==null||_0x40485a[_0x44d454(0x145)](),_0x33f440[_0x44d454(0x154)]=null;}),[_0x231e73,_0x421b2a]),_0x5b3468?_0x16d666(_0x16e236,{'align':_0x15dafd(0x1a2),'disabled':_0x5f587c===h[_0x15dafd(0x1a0)],'className':_0x15dafd(0x13a),'overlay':_0x16d666($e,{'status':_0x5f587c,'coordinator':_0x5b3468}),'children':_0x16d666('button',{'className':_0x106395(_0x15dafd(0x1ee),{'univer-cursor-not-allowed':_0x5f587c===h[_0x15dafd(0x1a0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f587c!==h[_0x15dafd(0x1a0)]}),'type':'button','children':_0x16d666(z,{'className':'univer-size-4'})})}):null;}function $e(_0x3c23d0){var _0x60b4eb=_0x8742f7;const {status:_0x1660db,coordinator:_0x404a2e}=_0x3c23d0;switch(_0x1660db){case h[_0x60b4eb(0x173)]:return _0x16d666(Fe,{'coordinator':_0x404a2e});case h[_0x60b4eb(0x1c5)]:return _0x16d666(He,{'coordinator':_0x404a2e});case h[_0x60b4eb(0x15d)]:return _0x16d666(je,{'coordinator':_0x404a2e});case h['OFFLINE']:return _0x16d666(Ve,{});case h[_0x60b4eb(0x189)]:return _0x16d666(Ue,{'coordinator':_0x404a2e});default:return null;}}function Fe(_0x19b5f2){var _0x3b9985=_0x8742f7;const {coordinator:_0x1fb3f0}=_0x19b5f2;return _0x418bde(_0x19dc14,{'children':[_0x16d666(_0x3b9985(0x1d3),{'className':_0x3b9985(0x191),'children':_0x3b9985(0x183)}),_0x16d666(_0x282005,{'size':_0x3b9985(0x163),'type':_0x3b9985(0x1b9),'onClick':()=>_0x1fb3f0[_0x3b9985(0x1bd)](),'children':_0x3b9985(0x1a7)})]});}function He(_0x4fa68d){var _0x3271aa=_0x8742f7;const {coordinator:_0x3256c0}=_0x4fa68d;return _0x418bde(_0x19dc14,{'children':[_0x16d666(_0x3271aa(0x1d3),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3271aa(0x175)}),_0x16d666(_0x282005,{'size':_0x3271aa(0x163),'type':_0x3271aa(0x1b9),'onClick':()=>_0x3256c0['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x399662){var _0x42f63d=_0x8742f7;const {coordinator:_0x577c91}=_0x399662;return _0x418bde(_0x19dc14,{'children':[_0x16d666(_0x42f63d(0x1d3),{'className':_0x42f63d(0x191),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x16d666(_0x282005,{'size':_0x42f63d(0x163),'type':_0x42f63d(0x1aa),'onClick':()=>_0x577c91[_0x42f63d(0x1e7)](),'children':_0x42f63d(0x157)})]});}function Ue(_0x399c34){var _0x4e9507=_0x8742f7;const {coordinator:_0x25643c}=_0x399c34;return _0x418bde(_0x19dc14,{'children':[_0x16d666('div',{'className':_0x4e9507(0x191),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x16d666(_0x282005,{'size':_0x4e9507(0x163),'type':_0x4e9507(0x1b9),'onClick':()=>_0x25643c[_0x4e9507(0x1ad)](),'children':_0x4e9507(0x1d0)})]});}function Ve(){var _0x11fa86=_0x8742f7;return _0x16d666(_0x19dc14,{'children':_0x11fa86(0x1a6)});}var Me=Object[_0x8742f7(0x1db)],ke=(_0xce5900,_0x3eb6db,_0x42aed6,_0x568cdd)=>{var _0x3f8e1a=_0x8742f7;for(var _0x2016ee=_0x568cdd>0x1?void 0x0:_0x568cdd?Me(_0x3eb6db,_0x42aed6):_0x3eb6db,_0x43002b=_0xce5900[_0x3f8e1a(0x166)]-0x1,_0x1e4980;_0x43002b>=0x0;_0x43002b--)(_0x1e4980=_0xce5900[_0x43002b])&&(_0x2016ee=_0x1e4980(_0x2016ee)||_0x2016ee);return _0x2016ee;},$=(_0x4b223e,_0x31bbb4)=>(_0x25c0b6,_0x272819)=>_0x31bbb4(_0x25c0b6,_0x272819,_0x4b223e);let b=class extends _0x369ecc{constructor(_0x41081f,_0x23e604){var _0x138c93=_0x8742f7;super(),this[_0x138c93(0x18b)]=_0x41081f,this[_0x138c93(0x1dd)]=_0x23e604,this[_0x138c93(0x1ed)]();}[_0x8742f7(0x1ed)](){var _0x2270de=_0x8742f7;this[_0x2270de(0x14d)](this[_0x2270de(0x1dd)][_0x2270de(0x1c8)](_0x2df6c9[_0x2270de(0x16a)],()=>_0x408ef4(Te,this[_0x2270de(0x18b)])));}};b=ke([$(0x0,_0xf62884(_0x4e61f3)),$(0x1,_0x141036)],b);var Ge=Object['defineProperty'],We=Object[_0x8742f7(0x1db)],Ye=(_0xc5e19d,_0x5d86de,_0x329d6e)=>_0x5d86de in _0xc5e19d?Ge(_0xc5e19d,_0x5d86de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x329d6e}):_0xc5e19d[_0x5d86de]=_0x329d6e,ze=(_0x30a52c,_0x2b3cf4,_0x2aa981,_0x301662)=>{var _0x33c277=_0x8742f7;for(var _0x40a316=_0x301662>0x1?void 0x0:_0x301662?We(_0x2b3cf4,_0x2aa981):_0x2b3cf4,_0x3a46fa=_0x30a52c[_0x33c277(0x166)]-0x1,_0x1cd372;_0x3a46fa>=0x0;_0x3a46fa--)(_0x1cd372=_0x30a52c[_0x3a46fa])&&(_0x40a316=_0x1cd372(_0x40a316)||_0x40a316);return _0x40a316;},F=(_0x35fa27,_0x37acbe)=>(_0x306c70,_0x3fea8b)=>_0x37acbe(_0x306c70,_0x3fea8b,_0x35fa27),Z=(_0x6230e3,_0x38864d,_0x53888b)=>Ye(_0x6230e3,typeof _0x38864d!='symbol'?_0x38864d+'':_0x38864d,_0x53888b);const Be=_0x8742f7(0x1ca);let O=class extends _0x385f17{constructor(_0x549bf1=T,_0x1b4514,_0x56fcf0){var _0x3fd293=_0x8742f7;super(),this[_0x3fd293(0x14f)]=_0x549bf1,this['_injector']=_0x1b4514,this[_0x3fd293(0x1d4)]=_0x56fcf0;const {..._0x1a8961}=_0xa0c0ca({},T,this[_0x3fd293(0x14f)]);this[_0x3fd293(0x1d4)][_0x3fd293(0x160)](Oe,_0x1a8961);}['onStarting'](){var _0x26bd1a=_0x8742f7;_0x4d9515(this['_injector'],_0x16b2d9([[x],[I],[m],[b]],this['_config'][_0x26bd1a(0x177)])),_0x22019d(this[_0x26bd1a(0x18b)],[[m]]);}['onRendered'](){_0x22019d(this['_injector'],[[b]]);}};Z(O,_0x8742f7(0x174),_0x5de484[_0x8742f7(0x195)]),Z(O,_0x8742f7(0x151),Be),O=ze([_0x39d2b0(_0x43bc81),F(0x1,_0xf62884(_0x4e61f3)),F(0x2,_0x4decb3)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3772(_0x274134,_0x934d5f){var _0x3effee=_0x3eff();return _0x3772=function(_0x3772be,_0x11cdb8){_0x3772be=_0x3772be-0x1a5;var _0x25fa2b=_0x3effee[_0x3772be];return _0x25fa2b;},_0x3772(_0x274134,_0x934d5f);}(function(_0x14ecc7,_0x429ba2){var _0x3d719a=_0x3772,_0x3b6452=_0x14ecc7();while(!![]){try{var _0x2d15b9=parseInt(_0x3d719a(0x1d4))/0x1*(-parseInt(_0x3d719a(0x1ea))/0x2)+-parseInt(_0x3d719a(0x288))/0x3*(parseInt(_0x3d719a(0x21d))/0x4)+-parseInt(_0x3d719a(0x26e))/0x5*(-parseInt(_0x3d719a(0x249))/0x6)+-parseInt(_0x3d719a(0x1c9))/0x7*(-parseInt(_0x3d719a(0x22d))/0x8)+-parseInt(_0x3d719a(0x24c))/0x9+parseInt(_0x3d719a(0x23a))/0xa*(-parseInt(_0x3d719a(0x1e6))/0xb)+-parseInt(_0x3d719a(0x220))/0xc*(-parseInt(_0x3d719a(0x1e0))/0xd);if(_0x2d15b9===_0x429ba2)break;else _0x3b6452['push'](_0x3b6452['shift']());}catch(_0x12d3fd){_0x3b6452['push'](_0x3b6452['shift']());}}}(_0x3eff,0x92f04),function(_0x2f5e89,_0x519080){var _0x2b629e=_0x3772;typeof exports==_0x2b629e(0x269)&&typeof module<'u'?_0x519080(exports,require(_0x2b629e(0x27f)),require(_0x2b629e(0x23e)),require(_0x2b629e(0x1f8)),require('@univerjs/sheets-ui'),require(_0x2b629e(0x1a7)),require('react/jsx-runtime'),require(_0x2b629e(0x24f)),require(_0x2b629e(0x1b3)),require(_0x2b629e(0x22b)),require('rxjs'),require(_0x2b629e(0x211))):typeof define==_0x2b629e(0x252)&&define[_0x2b629e(0x1db)]?define([_0x2b629e(0x1aa),'@univerjs-pro/collaboration-client',_0x2b629e(0x23e),_0x2b629e(0x1f8),'@univerjs/sheets-ui',_0x2b629e(0x1a7),'react/jsx-runtime',_0x2b629e(0x24f),_0x2b629e(0x1b3),_0x2b629e(0x22b),_0x2b629e(0x24b),_0x2b629e(0x211)],_0x519080):(_0x2f5e89=typeof globalThis<'u'?globalThis:_0x2f5e89||self,_0x519080(_0x2f5e89[_0x2b629e(0x1b8)]={},_0x2f5e89[_0x2b629e(0x1ca)],_0x2f5e89[_0x2b629e(0x265)],_0x2f5e89['UniverSheets'],_0x2f5e89[_0x2b629e(0x25a)],_0x2f5e89[_0x2b629e(0x1b9)],_0x2f5e89[_0x2b629e(0x218)],_0x2f5e89[_0x2b629e(0x1bc)],_0x2f5e89[_0x2b629e(0x218)],_0x2f5e89[_0x2b629e(0x22a)],_0x2f5e89[_0x2b629e(0x24b)],_0x2f5e89[_0x2b629e(0x24b)][_0x2b629e(0x292)]));}(this,function(_0x938182,_0x313195,_0x503a1a,_0x423a5e,_0x209345,_0x1cf7c4,_0x545877,_0x58f2a9,_0x1b99cf,_0x4a0249,_0xd0e3de,_0xe4c191){'use strict';var _0x55ca6d=_0x3772;var _0x2e738a=Object[_0x55ca6d(0x1fc)],_0x5f4c75=(_0xaaa2b5,_0x263e6f,_0xf6d8de)=>_0x263e6f in _0xaaa2b5?_0x2e738a(_0xaaa2b5,_0x263e6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf6d8de}):_0xaaa2b5[_0x263e6f]=_0xf6d8de,_0x13361e=(_0x486589,_0x572095,_0xa21771)=>_0x5f4c75(_0x486589,typeof _0x572095!=_0x55ca6d(0x1c5)?_0x572095+'':_0x572095,_0xa21771);const _0x152a8b=_0x55ca6d(0x1dc),_0x3f9320={};class _0xd56bd0 extends _0x503a1a[_0x55ca6d(0x281)]{constructor(){var _0x17d7c3=_0x55ca6d;super(...arguments),_0x13361e(this,_0x17d7c3(0x23f),new Set()),_0x13361e(this,_0x17d7c3(0x287),new Set());}[_0x55ca6d(0x1e2)](_0x16d2c6){var _0x2eb58c=_0x55ca6d;return this[_0x2eb58c(0x23f)]['add'](_0x16d2c6),_0x503a1a[_0x2eb58c(0x248)](()=>this['_sharedOperations'][_0x2eb58c(0x1ba)](_0x16d2c6));}['registerInitialStateReporter'](_0x59f062){var _0x213bb0=_0x55ca6d;return this['_reporters']['add'](_0x59f062),_0x503a1a[_0x213bb0(0x248)](()=>this[_0x213bb0(0x287)][_0x213bb0(0x1ba)](_0x59f062));}[_0x55ca6d(0x20d)](_0xa0c69c){var _0xcb1101=_0x55ca6d;return this[_0xcb1101(0x23f)][_0xcb1101(0x25f)](_0xa0c69c);}[_0x55ca6d(0x201)](_0xa42c0b){var _0x2eccde=_0x55ca6d;return Array[_0x2eccde(0x1ee)](this[_0x2eccde(0x287)])['map'](_0x42ca76=>_0x42ca76(_0xa42c0b));}}var _0x57cf2d=Object[_0x55ca6d(0x1cf)],_0x20bc9a=(_0x51f18b,_0x4fbc76,_0x192fd4,_0x3476b8)=>{var _0x41f5e4=_0x55ca6d;for(var _0x2d648f=_0x3476b8>0x1?void 0x0:_0x3476b8?_0x57cf2d(_0x4fbc76,_0x192fd4):_0x4fbc76,_0x27d0db=_0x51f18b[_0x41f5e4(0x203)]-0x1,_0x41eb90;_0x27d0db>=0x0;_0x27d0db--)(_0x41eb90=_0x51f18b[_0x27d0db])&&(_0x2d648f=_0x41eb90(_0x2d648f)||_0x2d648f);return _0x2d648f;},_0x285031=(_0x5a5138,_0x33375a)=>(_0x1cab5a,_0x5707e2)=>_0x33375a(_0x1cab5a,_0x5707e2,_0x5a5138);let _0x460eba=class extends _0x503a1a['Disposable']{constructor(_0x284392){var _0x1f068a=_0x55ca6d;super(),this[_0x1f068a(0x28a)]=_0x284392,this[_0x1f068a(0x221)]();}['_init'](){var _0x4fbbd7=_0x55ca6d;[_0x209345[_0x4fbbd7(0x291)]['id'],_0x209345[_0x4fbbd7(0x28b)]['id'],_0x423a5e[_0x4fbbd7(0x222)]['id']]['forEach'](_0x3fcb11=>{var _0x1b748b=_0x4fbbd7;this[_0x1b748b(0x28c)](this[_0x1b748b(0x28a)][_0x1b748b(0x1e2)](_0x3fcb11));});}};_0x460eba=_0x20bc9a([_0x285031(0x0,_0x503a1a['Inject'](_0xd56bd0))],_0x460eba);var _0x388209=function(){var _0x216a8a=_0x55ca6d;return _0x388209=Object[_0x216a8a(0x1c1)]||function(_0x474837){var _0x524429=_0x216a8a;for(var _0x4746d0,_0x42c83d=0x1,_0x1bdb6d=arguments[_0x524429(0x203)];_0x42c83d<_0x1bdb6d;_0x42c83d++){_0x4746d0=arguments[_0x42c83d];for(var _0x4ed4e2 in _0x4746d0)Object[_0x524429(0x23b)][_0x524429(0x236)][_0x524429(0x1d2)](_0x4746d0,_0x4ed4e2)&&(_0x474837[_0x4ed4e2]=_0x4746d0[_0x4ed4e2]);}return _0x474837;},_0x388209[_0x216a8a(0x263)](this,arguments);},_0x4fdcb5=function(_0x288db2,_0x3b13d3){var _0xc7fbc2=_0x55ca6d,_0x2a79ad={};for(var _0x27e110 in _0x288db2)Object[_0xc7fbc2(0x23b)]['hasOwnProperty'][_0xc7fbc2(0x1d2)](_0x288db2,_0x27e110)&&_0x3b13d3[_0xc7fbc2(0x1cc)](_0x27e110)<0x0&&(_0x2a79ad[_0x27e110]=_0x288db2[_0x27e110]);if(_0x288db2!=null&&typeof Object[_0xc7fbc2(0x1d8)]==_0xc7fbc2(0x252)){for(var _0x2b7b77=0x0,_0x27e110=Object[_0xc7fbc2(0x1d8)](_0x288db2);_0x2b7b77<_0x27e110[_0xc7fbc2(0x203)];_0x2b7b77++)_0x3b13d3[_0xc7fbc2(0x1cc)](_0x27e110[_0x2b7b77])<0x0&&Object[_0xc7fbc2(0x23b)][_0xc7fbc2(0x1a9)][_0xc7fbc2(0x1d2)](_0x288db2,_0x27e110[_0x2b7b77])&&(_0x2a79ad[_0x27e110[_0x2b7b77]]=_0x288db2[_0x27e110[_0x2b7b77]]);}return _0x2a79ad;},_0x1fb083=_0x1b99cf['forwardRef'](function(_0x4a4768,_0x5137a3){var _0x2e943c=_0x55ca6d,_0x17f7f8=_0x4a4768['icon'],_0x19cc5e=_0x4a4768['id'],_0x33fc19=_0x4a4768[_0x2e943c(0x232)],_0x3aaa89=_0x4a4768[_0x2e943c(0x1bd)],_0x4ed024=_0x4fdcb5(_0x4a4768,[_0x2e943c(0x21b),'id',_0x2e943c(0x232),_0x2e943c(0x1bd)]),_0x470e53=_0x2e943c(0x294)[_0x2e943c(0x246)](_0x19cc5e,'\x20')['concat'](_0x33fc19||'')['trim'](),_0x5593c6=_0x1b99cf[_0x2e943c(0x204)]('_'[_0x2e943c(0x246)](_0x439aff()));return _0x4cf792(_0x17f7f8,''[_0x2e943c(0x246)](_0x19cc5e),{'defIds':_0x17f7f8['defIds'],'idSuffix':_0x5593c6[_0x2e943c(0x244)]},_0x388209({'ref':_0x5137a3,'className':_0x470e53},_0x4ed024),_0x3aaa89);});function _0x4cf792(_0x13c130,_0x413c02,_0x4605b4,_0x5e5a84,_0x3988a8){var _0x4653ec=_0x55ca6d;return _0x1b99cf[_0x4653ec(0x279)](_0x13c130[_0x4653ec(0x22f)],_0x388209(_0x388209({'key':_0x413c02},_0x54f22b(_0x13c130,_0x4605b4,_0x3988a8)),_0x5e5a84),(_0x443607(_0x13c130,_0x4605b4)['children']||[])['map'](function(_0x15cbfe,_0xf7fa67){var _0x33e863=_0x4653ec;return _0x4cf792(_0x15cbfe,''[_0x33e863(0x246)](_0x413c02,'-')[_0x33e863(0x246)](_0x13c130[_0x33e863(0x22f)],'-')[_0x33e863(0x246)](_0xf7fa67),_0x4605b4,void 0x0,_0x3988a8);}));}function _0x54f22b(_0x4b8832,_0x39c116,_0x21bb9e){var _0x751917=_0x55ca6d,_0x110440=_0x388209({},_0x4b8832[_0x751917(0x1fd)]);_0x21bb9e!=null&&_0x21bb9e['colorChannel1']&&_0x110440[_0x751917(0x1e1)]===_0x751917(0x1be)&&(_0x110440[_0x751917(0x1e1)]=_0x21bb9e[_0x751917(0x1be)]),_0x4b8832[_0x751917(0x22f)]===_0x751917(0x250)&&_0x110440['id']&&(_0x110440['id']=_0x110440['id']+_0x39c116['idSuffix']),Object[_0x751917(0x1f7)](_0x110440)[_0x751917(0x22c)](function(_0x2c16b0){var _0x324b90=_0x751917,_0x5958db=_0x2c16b0[0x0],_0x15d7f8=_0x2c16b0[0x1];_0x5958db===_0x324b90(0x250)&&typeof _0x15d7f8==_0x324b90(0x259)&&(_0x110440[_0x5958db]=_0x15d7f8[_0x324b90(0x239)](/url\(#(.*)\)/,_0x324b90(0x235)[_0x324b90(0x246)](_0x39c116[_0x324b90(0x290)],')')));});var _0x413374=_0x39c116[_0x751917(0x24d)];return!_0x413374||_0x413374[_0x751917(0x203)]===0x0||(_0x4b8832[_0x751917(0x22f)]===_0x751917(0x27d)&&_0x110440[_0x751917(0x282)]&&(_0x110440[_0x751917(0x282)]=_0x110440[_0x751917(0x282)]+_0x39c116[_0x751917(0x290)]),Object['entries'](_0x110440)[_0x751917(0x22c)](function(_0x1ff0c4){var _0x323164=_0x751917,_0x516fa7=_0x1ff0c4[0x0],_0x43d5ad=_0x1ff0c4[0x1];typeof _0x43d5ad==_0x323164(0x259)&&(_0x110440[_0x516fa7]=_0x43d5ad[_0x323164(0x239)](/url\(#(.*)\)/,_0x323164(0x235)['concat'](_0x39c116[_0x323164(0x290)],')')));})),_0x110440;}function _0x443607(_0x3fd154,_0x2a12e1){var _0x257a29=_0x55ca6d,_0x146107,_0x554919=_0x2a12e1[_0x257a29(0x24d)];return!_0x554919||_0x554919[_0x257a29(0x203)]===0x0?_0x3fd154:_0x3fd154[_0x257a29(0x22f)]==='defs'&&(!((_0x146107=_0x3fd154['children'])===null||_0x146107===void 0x0)&&_0x146107[_0x257a29(0x203)])?_0x388209(_0x388209({},_0x3fd154),{'children':_0x3fd154[_0x257a29(0x280)]['map'](function(_0x33be95){var _0x3de75e=_0x257a29;return typeof _0x33be95[_0x3de75e(0x1fd)]['id']==_0x3de75e(0x259)&&_0x554919&&_0x554919[_0x3de75e(0x1cc)](_0x33be95[_0x3de75e(0x1fd)]['id'])>-0x1?_0x388209(_0x388209({},_0x33be95),{'attrs':_0x388209(_0x388209({},_0x33be95[_0x3de75e(0x1fd)]),{'id':_0x33be95['attrs']['id']+_0x2a12e1[_0x3de75e(0x290)]})}):_0x33be95;})}):_0x3fd154;}function _0x439aff(){var _0xcd7c85=_0x55ca6d;return Math[_0xcd7c85(0x21f)]()['toString'](0x24)[_0xcd7c85(0x210)](0x2,0x8);}_0x1fb083['displayName']='UniverIcon';var _0x4e50fe={'tag':_0x55ca6d(0x1f0),'attrs':{'fill':'none','viewBox':_0x55ca6d(0x1a8),'width':_0x55ca6d(0x25b),'height':_0x55ca6d(0x25b)},'children':[{'tag':_0x55ca6d(0x1df),'attrs':{'fill':_0x55ca6d(0x274),'d':_0x55ca6d(0x26b)}},{'tag':_0x55ca6d(0x1df),'attrs':{'fill':_0x55ca6d(0x274),'d':_0x55ca6d(0x1a6),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x238a87=_0x1b99cf['forwardRef'](function(_0x1747c2,_0x324735){var _0x1dbe60=_0x55ca6d;return _0x1b99cf[_0x1dbe60(0x279)](_0x1fb083,Object[_0x1dbe60(0x1c1)]({},_0x1747c2,{'id':_0x1dbe60(0x1b7),'ref':_0x324735,'icon':_0x4e50fe}));});_0x238a87['displayName']=_0x55ca6d(0x26c);var _0x1484fd=Object['getOwnPropertyDescriptor'],_0x604b9a=(_0x3b2475,_0x115ecc,_0x5ede61,_0x1230a8)=>{var _0x289930=_0x55ca6d;for(var _0x47977b=_0x1230a8>0x1?void 0x0:_0x1230a8?_0x1484fd(_0x115ecc,_0x5ede61):_0x115ecc,_0x4a1717=_0x3b2475[_0x289930(0x203)]-0x1,_0x571cfc;_0x4a1717>=0x0;_0x4a1717--)(_0x571cfc=_0x3b2475[_0x4a1717])&&(_0x47977b=_0x571cfc(_0x47977b)||_0x47977b);return _0x47977b;},_0x1449f1=(_0xd81c6f,_0x5b81f7)=>(_0x5c0dd3,_0x37a97a)=>_0x5b81f7(_0x5c0dd3,_0x37a97a,_0xd81c6f);_0x938182['LiveShareController']=class extends _0x503a1a[_0x55ca6d(0x1af)]{constructor(_0x44f638,_0x269ba3,_0x70c765){var _0x830ef2=_0x55ca6d;super(),_0x13361e(this,_0x830ef2(0x268),new Map()),(this[_0x830ef2(0x27b)]=_0x44f638,this[_0x830ef2(0x20a)]=_0x269ba3,this['_collabSessionService']=_0x70c765,this[_0x830ef2(0x221)]());}async[_0x55ca6d(0x26a)](_0x575682){var _0xc0b734=_0x55ca6d;return this[_0xc0b734(0x268)]['has'](_0x575682)||await this[_0xc0b734(0x24a)](_0x575682),this['_entities']['get'](_0x575682);}[_0x55ca6d(0x221)](){var _0x5b7cf8=_0x55ca6d;this[_0x5b7cf8(0x27b)]['getTypeOfUnitAdded$'](_0x503a1a['UniverInstanceType'][_0x5b7cf8(0x1b0)])[_0x5b7cf8(0x1ff)](_0xe4c191['takeUntil'](this[_0x5b7cf8(0x1c2)]))[_0x5b7cf8(0x1b1)](async _0x5c7a47=>{var _0x2f07a7=_0x5b7cf8;const _0x5cbcb3=_0x5c7a47[_0x2f07a7(0x1f3)]();this['_entities'][_0x2f07a7(0x25f)](_0x5cbcb3)||this[_0x2f07a7(0x24a)](_0x5cbcb3);}),this[_0x5b7cf8(0x27b)][_0x5b7cf8(0x28f)](_0x503a1a[_0x5b7cf8(0x1ac)][_0x5b7cf8(0x1b0)])[_0x5b7cf8(0x1ff)](_0xe4c191[_0x5b7cf8(0x23c)](this[_0x5b7cf8(0x1c2)]))[_0x5b7cf8(0x1b1)](_0xbf56e2=>{var _0x30eb68=_0x5b7cf8;const _0x3bd44f=_0xbf56e2[_0x30eb68(0x1f3)](),_0x529e22=this[_0x30eb68(0x268)][_0x30eb68(0x26d)](_0x3bd44f);_0x529e22==null||_0x529e22[_0x30eb68(0x1ae)]();});}async[_0x55ca6d(0x24a)](_0x66c32){var _0x36da74=_0x55ca6d;const _0x583c8a=await this[_0x36da74(0x25d)][_0x36da74(0x28e)](_0x66c32),_0x2f59ce=this[_0x36da74(0x20a)][_0x36da74(0x262)](_0x938182[_0x36da74(0x1c0)],_0x66c32,_0x583c8a);return _0x2f59ce[_0x36da74(0x21c)](),this[_0x36da74(0x268)]['set'](_0x66c32,_0x2f59ce),_0x2f59ce;}},_0x938182['LiveShareController']=_0x604b9a([_0x1449f1(0x0,_0x503a1a[_0x55ca6d(0x227)]),_0x1449f1(0x1,_0x503a1a[_0x55ca6d(0x272)](_0x503a1a[_0x55ca6d(0x20f)])),_0x1449f1(0x2,_0x503a1a[_0x55ca6d(0x272)](_0x313195[_0x55ca6d(0x1e8)]))],_0x938182['LiveShareController']);var _0x3753e3=(_0x4bad7c=>(_0x4bad7c['OFFLINE']=_0x55ca6d(0x22e),_0x4bad7c['IDLE']=_0x55ca6d(0x219),_0x4bad7c['FOLLOWING']=_0x55ca6d(0x245),_0x4bad7c['NOT_FOLLOWING']='not-following',_0x4bad7c['PRESENTING']=_0x55ca6d(0x1e9),_0x4bad7c))(_0x3753e3||{});const _0x9a649a=_0x55ca6d(0x251),_0x523802=0xc8;_0x938182[_0x55ca6d(0x1c0)]=class extends _0x503a1a[_0x55ca6d(0x1af)]{constructor(_0x445304,_0x1c1c89,_0xb16a07,_0x5b302a,_0x698aac){var _0xac2a80=_0x55ca6d;super(),_0x13361e(this,_0xac2a80(0x200),new _0xd0e3de['BehaviorSubject'](_0xac2a80(0x219))),_0x13361e(this,_0xac2a80(0x277),this[_0xac2a80(0x200)][_0xac2a80(0x1c7)]()),_0x13361e(this,_0xac2a80(0x221),!0x1),_0x13361e(this,_0xac2a80(0x1f2),null),_0x13361e(this,_0xac2a80(0x230),null),(this[_0xac2a80(0x275)]=_0x445304,this[_0xac2a80(0x1b4)]=_0x1c1c89,this[_0xac2a80(0x215)]=_0xb16a07,this['_liveShareService']=_0x5b302a,this[_0xac2a80(0x229)]=_0x698aac);}get[_0x55ca6d(0x212)](){var _0x63e10d=_0x55ca6d;return this['_status$'][_0x63e10d(0x214)]();}[_0x55ca6d(0x1ae)](){var _0x4675f6=_0x55ca6d,_0x11f6d7;(_0x11f6d7=this[_0x4675f6(0x1f2)])==null||_0x11f6d7[_0x4675f6(0x1ae)](),this[_0x4675f6(0x200)]['next'](_0x4675f6(0x219)),this[_0x4675f6(0x200)][_0x4675f6(0x205)]();}[_0x55ca6d(0x21c)](){var _0x245e92=_0x55ca6d;this[_0x245e92(0x221)]||(this[_0x245e92(0x221)]=!0x0,this[_0x245e92(0x1b4)]['sessionStatus$'][_0x245e92(0x1ff)](_0xe4c191[_0x245e92(0x23c)](this[_0x245e92(0x1c2)]))[_0x245e92(0x1b1)](_0x5f20a9=>{var _0x57918a=_0x245e92;switch(_0x5f20a9){case _0x313195['SessionStatus'][_0x57918a(0x1f9)]:this[_0x57918a(0x264)]();break;case _0x313195[_0x57918a(0x1b6)]['ONLINE']:this[_0x57918a(0x271)]();break;}}),this[_0x245e92(0x1b4)][_0x245e92(0x27e)][_0x245e92(0x1ff)](_0xe4c191[_0x245e92(0x23c)](this[_0x245e92(0x1c2)]))[_0x245e92(0x1b1)](_0x15abca=>{var _0x190b83=_0x245e92;const {eventID:_0x517ec8}=_0x15abca;switch(_0x517ec8){case _0x4a0249[_0x190b83(0x1a5)][_0x190b83(0x1fb)]:this[_0x190b83(0x242)](_0x15abca);break;case _0x4a0249[_0x190b83(0x1a5)][_0x190b83(0x27a)]:this[_0x190b83(0x1e4)](_0x15abca);break;case _0x4a0249[_0x190b83(0x1a5)]['LIVESHARE_TERMINATE']:this[_0x190b83(0x1cb)]();break;case _0x4a0249['CollaborationEvent'][_0x190b83(0x243)]:this[_0x190b83(0x1b5)](_0x15abca);break;}}));}['tryStartPresenting'](){var _0x20fc00=_0x55ca6d;this[_0x20fc00(0x1b4)]['send']({'eventID':_0x4a0249[_0x20fc00(0x1a5)][_0x20fc00(0x1fe)],'data':{'unitID':this[_0x20fc00(0x275)],'userID':this['_collabSession'][_0x20fc00(0x1de)]()}},this[_0x20fc00(0x275)]);}[_0x55ca6d(0x1d0)](){var _0x41e978=_0x55ca6d;this[_0x41e978(0x212)]===_0x41e978(0x1e9)&&(this[_0x41e978(0x200)][_0x41e978(0x1d1)]('idle'),this[_0x41e978(0x1b4)][_0x41e978(0x258)]({'eventID':_0x4a0249['CollaborationEvent'][_0x41e978(0x24e)],'data':{'unitID':this[_0x41e978(0x275)]}},this[_0x41e978(0x275)]));}['startFollowing'](){var _0x4d511c=_0x55ca6d;this[_0x4d511c(0x212)]===_0x4d511c(0x1f6)&&(this[_0x4d511c(0x200)][_0x4d511c(0x1d1)](_0x4d511c(0x245)),this[_0x4d511c(0x26f)]());}['stopFollowing'](){var _0xcae495=_0x55ca6d;this[_0xcae495(0x212)]===_0xcae495(0x245)&&this[_0xcae495(0x1f4)]();}[_0x55ca6d(0x242)](_0x36635a){var _0x2a2cad=_0x55ca6d;const {presenter:_0x507c5b}=_0x36635a['data'],_0x5c1ede=this[_0x2a2cad(0x1b4)][_0x2a2cad(0x1de)]();this[_0x2a2cad(0x230)]=_0x507c5b,_0x507c5b===_0x5c1ede?(this[_0x2a2cad(0x1f4)](),this[_0x2a2cad(0x255)]()):this[_0x2a2cad(0x212)]!==_0x2a2cad(0x1f6)&&(this[_0x2a2cad(0x1b2)](),this[_0x2a2cad(0x26f)]());}[_0x55ca6d(0x1ef)](){var _0x258b60=_0x55ca6d;const _0x4648bb={'eventID':_0x4a0249['CollaborationEvent'][_0x258b60(0x233)]};this[_0x258b60(0x1b4)]['send'](_0x4648bb,this[_0x258b60(0x275)]);}['_handleTerminate'](){var _0x443400=_0x55ca6d;this[_0x443400(0x230)]=null,this[_0x443400(0x212)]!==_0x443400(0x1e9)&&this['_beIdle']();}[_0x55ca6d(0x1b5)](_0x3f605b){var _0x31257f=_0x55ca6d;if(this[_0x31257f(0x212)]===_0x31257f(0x245)&&this['_presenter']===_0x3f605b[_0x31257f(0x207)][_0x31257f(0x1e7)]){const _0x746bfd=_0x4a0249[_0x31257f(0x241)](_0x3f605b['data'])[_0x31257f(0x217)]['reverse']()['find'](_0x583465=>_0x583465['id']===_0x423a5e[_0x31257f(0x1ad)]['id']);if(_0x746bfd){const _0x57ace0=_0x746bfd[_0x31257f(0x228)]['unitId'],_0x2bf12b=_0x746bfd[_0x31257f(0x228)]['sheet']['id'];setTimeout(()=>{var _0x1377d4=_0x31257f;this[_0x1377d4(0x229)]['executeCommand'](_0x423a5e[_0x1377d4(0x222)]['id'],{'unitId':_0x57ace0,'subUnitId':_0x2bf12b},{'fromCollab':!0x0});});}}}[_0x55ca6d(0x255)](){var _0xcb3984=_0x55ca6d;this[_0xcb3984(0x200)][_0xcb3984(0x1d1)](_0xcb3984(0x1e9));const _0x56eded=new Map(),_0xae1b73=this[_0xcb3984(0x1f2)]=new _0x503a1a[(_0xcb3984(0x1eb))]();_0xae1b73[_0xcb3984(0x1c6)](_0x503a1a[_0xcb3984(0x248)](()=>{var _0x4628e2=_0xcb3984;_0x56eded[_0x4628e2(0x22c)](_0x59dcad=>_0x59dcad[_0x4628e2(0x205)]()),_0x56eded[_0x4628e2(0x1d7)]();})),_0xae1b73[_0xcb3984(0x1c6)](this['_commandService'][_0xcb3984(0x25e)](_0x53a51a=>{var _0x5b35c9=_0xcb3984,_0x451c5c;if(_0x53a51a[_0x5b35c9(0x240)]!==_0x503a1a[_0x5b35c9(0x286)]['OPERATION']||!this['_liveShareService'][_0x5b35c9(0x20d)](_0x53a51a['id']))return;const {id:_0x2352e9}=_0x53a51a;let _0x4a35bf;_0x56eded[_0x5b35c9(0x25f)](_0x2352e9)?_0x4a35bf=_0x56eded[_0x5b35c9(0x26d)](_0x2352e9):(_0x4a35bf=new _0xd0e3de[(_0x5b35c9(0x1ce))](),_0x56eded['set'](_0x2352e9,_0x4a35bf),_0x4a35bf[_0x5b35c9(0x1ff)](_0xe4c191[_0x5b35c9(0x1da)]((_0x451c5c=this[_0x5b35c9(0x215)][_0x5b35c9(0x256)](_0x9a649a))!=null?_0x451c5c:_0x523802,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5b35c9(0x1b1)](_0x1e7960=>{var _0x19e5c8=_0x5b35c9;this[_0x19e5c8(0x1b4)][_0x19e5c8(0x258)]({'eventID':_0x4a0249[_0x19e5c8(0x1a5)][_0x19e5c8(0x27a)],'data':{'unitID':this[_0x19e5c8(0x275)],'operations':{[_0x1e7960['id']]:{'id':_0x1e7960['id'],'params':JSON['stringify'](_0x1e7960[_0x19e5c8(0x228)])}}}},this[_0x19e5c8(0x275)]);})),_0x4a35bf['next'](_0x53a51a);})),this[_0xcb3984(0x28a)][_0xcb3984(0x201)](this['_unitID'])[_0xcb3984(0x22c)](_0x17b258=>this['_collabSession']['send']({'eventID':_0x4a0249[_0xcb3984(0x1a5)][_0xcb3984(0x27a)],'data':{'unitID':this[_0xcb3984(0x275)],'operations':{[_0x17b258['id']]:{'id':_0x17b258['id'],'params':JSON[_0xcb3984(0x261)](_0x17b258[_0xcb3984(0x228)])}}}},this['_unitID']));}[_0x55ca6d(0x1b2)](){var _0x1a9fe6=_0x55ca6d,_0x5e9fab;this[_0x1a9fe6(0x200)][_0x1a9fe6(0x1d1)](_0x1a9fe6(0x219)),(_0x5e9fab=this['_commandDisposable'])==null||_0x5e9fab['dispose'](),this[_0x1a9fe6(0x1f2)]=null;}[_0x55ca6d(0x26f)](){var _0x4dfa2e=_0x55ca6d,_0x669f5a;(_0x669f5a=this[_0x4dfa2e(0x1f2)])==null||_0x669f5a['dispose'](),this[_0x4dfa2e(0x200)][_0x4dfa2e(0x1d1)]('following');}[_0x55ca6d(0x224)](){var _0x579814=_0x55ca6d,_0x5e69dd;this['_status$'][_0x579814(0x1d1)](_0x579814(0x219)),(_0x5e69dd=this[_0x579814(0x1f2)])==null||_0x5e69dd[_0x579814(0x1ae)](),this['_commandDisposable']=null;}[_0x55ca6d(0x1f4)](){var _0x121e90=_0x55ca6d,_0x18e7b3;this['_status$']['next']('not-following'),(_0x18e7b3=this[_0x121e90(0x1f2)])==null||_0x18e7b3['dispose']();}['_handleOperation'](_0x33cdc7){var _0x5516ce=_0x55ca6d;if([_0x5516ce(0x1e9),_0x5516ce(0x1f6),_0x5516ce(0x22e)]['includes'](this['_status'])||!_0x33cdc7['data'][_0x5516ce(0x1c4)]||_0x33cdc7[_0x5516ce(0x207)][_0x5516ce(0x1c4)]===this[_0x5516ce(0x1b4)][_0x5516ce(0x1de)]())return;this[_0x5516ce(0x212)]===_0x5516ce(0x219)&&this[_0x5516ce(0x26f)]();const _0x5d5fed=_0x33cdc7[_0x5516ce(0x207)]['operations'];Object['values'](_0x5d5fed)[_0x5516ce(0x22c)](_0x3c2454=>{var _0x2b268e=_0x5516ce;this[_0x2b268e(0x229)][_0x2b268e(0x284)](_0x3c2454['id'],_0x3c2454[_0x2b268e(0x228)]?JSON[_0x2b268e(0x208)](_0x3c2454[_0x2b268e(0x228)]):null,{'fromCollab':!0x0});});}[_0x55ca6d(0x264)](){var _0x4bcdf4=_0x55ca6d,_0x14de07;this[_0x4bcdf4(0x200)][_0x4bcdf4(0x1d1)](_0x4bcdf4(0x22e)),(_0x14de07=this[_0x4bcdf4(0x1f2)])==null||_0x14de07[_0x4bcdf4(0x1ae)]();}[_0x55ca6d(0x271)](){var _0x45feb1=_0x55ca6d;this[_0x45feb1(0x200)][_0x45feb1(0x1d1)](_0x45feb1(0x219)),this[_0x45feb1(0x1ef)]();}},_0x938182[_0x55ca6d(0x1c0)]=_0x604b9a([_0x1449f1(0x2,_0x503a1a[_0x55ca6d(0x225)]),_0x1449f1(0x3,_0x503a1a['Inject'](_0xd56bd0)),_0x1449f1(0x4,_0x503a1a[_0x55ca6d(0x260)])],_0x938182['LiveShareCoordinator']);function _0x450a68(){var _0x22e8f1=_0x55ca6d;const _0x33d1ef=_0x1cf7c4[_0x22e8f1(0x206)](_0x938182['LiveShareController']),_0x53c31f=_0x1cf7c4['useDependency'](_0x503a1a[_0x22e8f1(0x227)]),_0x1f22c8=_0x1cf7c4[_0x22e8f1(0x270)](()=>_0x53c31f['getCurrentTypeOfUnit$'](_0x503a1a[_0x22e8f1(0x1ac)][_0x22e8f1(0x1b0)]),void 0x0,!0x1,[]),[_0x4e1985,_0x23e0f9]=_0x1b99cf[_0x22e8f1(0x28d)](null),[_0x1dc21a,_0x2274dd]=_0x1b99cf['useState'](_0x3753e3['IDLE']),_0xb223f=_0x1b99cf[_0x22e8f1(0x204)](null);return _0x1b99cf[_0x22e8f1(0x1c3)](()=>(_0x1f22c8&&_0x33d1ef[_0x22e8f1(0x26a)](_0x1f22c8['getUnitId']())[_0x22e8f1(0x1f1)](_0x5ebae1=>{var _0x380b7b=_0x22e8f1;_0x23e0f9(_0x5ebae1),_0xb223f[_0x380b7b(0x244)]=_0x5ebae1[_0x380b7b(0x277)][_0x380b7b(0x1b1)](_0x5b3bad=>{_0x2274dd(_0x5b3bad);});}),()=>{var _0x994724=_0x22e8f1,_0x5f50e3;(_0x5f50e3=_0xb223f[_0x994724(0x244)])==null||_0x5f50e3['unsubscribe'](),_0xb223f[_0x994724(0x244)]=null;}),[_0x1f22c8,_0x33d1ef]),_0x4e1985?_0x545877['jsx'](_0x58f2a9[_0x22e8f1(0x1c8)],{'align':'end','disabled':_0x1dc21a===_0x3753e3[_0x22e8f1(0x1f9)],'className':_0x22e8f1(0x267),'overlay':_0x545877[_0x22e8f1(0x253)](_0x5594c9,{'status':_0x1dc21a,'coordinator':_0x4e1985}),'children':_0x545877[_0x22e8f1(0x253)](_0x22e8f1(0x273),{'className':_0x58f2a9[_0x22e8f1(0x20c)](_0x22e8f1(0x209),{'univer-cursor-not-allowed':_0x1dc21a===_0x3753e3['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1dc21a!==_0x3753e3[_0x22e8f1(0x1f9)]}),'type':_0x22e8f1(0x273),'children':_0x545877[_0x22e8f1(0x253)](_0x238a87,{'className':_0x22e8f1(0x27c)})})}):null;}function _0x5594c9(_0x247bbc){var _0x558e3f=_0x55ca6d;const {status:_0x4e884f,coordinator:_0x17eb7f}=_0x247bbc;switch(_0x4e884f){case _0x3753e3[_0x558e3f(0x1ab)]:return _0x545877['jsx'](_0x3a7ad9,{'coordinator':_0x17eb7f});case _0x3753e3[_0x558e3f(0x1ec)]:return _0x545877[_0x558e3f(0x253)](_0x2eb605,{'coordinator':_0x17eb7f});case _0x3753e3['NOT_FOLLOWING']:return _0x545877[_0x558e3f(0x253)](_0x14e45d,{'coordinator':_0x17eb7f});case _0x3753e3[_0x558e3f(0x1f9)]:return _0x545877[_0x558e3f(0x253)](_0x1faafa,{});case _0x3753e3[_0x558e3f(0x1e3)]:return _0x545877[_0x558e3f(0x253)](_0x43acf6,{'coordinator':_0x17eb7f});default:return null;}}function _0x3a7ad9(_0x557fb2){var _0x4d8203=_0x55ca6d;const {coordinator:_0x2a5285}=_0x557fb2;return _0x545877[_0x4d8203(0x289)](_0x545877[_0x4d8203(0x1d3)],{'children':[_0x545877[_0x4d8203(0x253)]('div',{'className':_0x4d8203(0x237),'children':_0x4d8203(0x276)}),_0x545877[_0x4d8203(0x253)](_0x58f2a9[_0x4d8203(0x1f5)],{'size':_0x4d8203(0x213),'type':'default','onClick':()=>_0x2a5285['tryStartPresenting'](),'children':'Start'})]});}function _0x2eb605(_0x37950f){var _0x108c61=_0x55ca6d;const {coordinator:_0x2d1eb0}=_0x37950f;return _0x545877['jsxs'](_0x545877[_0x108c61(0x1d3)],{'children':[_0x545877[_0x108c61(0x253)](_0x108c61(0x247),{'className':_0x108c61(0x237),'children':_0x108c61(0x20b)}),_0x545877[_0x108c61(0x253)](_0x58f2a9[_0x108c61(0x1f5)],{'size':'small','type':_0x108c61(0x285),'onClick':()=>_0x2d1eb0['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x14e45d(_0x5ba6a0){var _0x17dd66=_0x55ca6d;const {coordinator:_0x53c12d}=_0x5ba6a0;return _0x545877[_0x17dd66(0x289)](_0x545877[_0x17dd66(0x1d3)],{'children':[_0x545877[_0x17dd66(0x253)]('div',{'className':_0x17dd66(0x237),'children':_0x17dd66(0x1bf)}),_0x545877[_0x17dd66(0x253)](_0x58f2a9['Button'],{'size':_0x17dd66(0x213),'type':_0x17dd66(0x1d5),'onClick':()=>_0x53c12d[_0x17dd66(0x278)](),'children':'Start\x20following'})]});}function _0x43acf6(_0x285a8b){var _0x3499f5=_0x55ca6d;const {coordinator:_0x92d13e}=_0x285a8b;return _0x545877[_0x3499f5(0x289)](_0x545877['Fragment'],{'children':[_0x545877[_0x3499f5(0x253)](_0x3499f5(0x247),{'className':_0x3499f5(0x237),'children':_0x3499f5(0x20e)}),_0x545877[_0x3499f5(0x253)](_0x58f2a9['Button'],{'size':_0x3499f5(0x213),'type':'default','onClick':()=>_0x92d13e['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x1faafa(){var _0x2a9ba1=_0x55ca6d;return _0x545877[_0x2a9ba1(0x253)](_0x545877[_0x2a9ba1(0x1d3)],{'children':'You\x27are\x20offline.'});}var _0x385cb1=Object[_0x55ca6d(0x1cf)],_0x5b233e=(_0x4f5e6e,_0x33a04b,_0x1bee48,_0x2e51bd)=>{var _0x29756f=_0x55ca6d;for(var _0x3ae667=_0x2e51bd>0x1?void 0x0:_0x2e51bd?_0x385cb1(_0x33a04b,_0x1bee48):_0x33a04b,_0x215954=_0x4f5e6e[_0x29756f(0x203)]-0x1,_0x3c39d5;_0x215954>=0x0;_0x215954--)(_0x3c39d5=_0x4f5e6e[_0x215954])&&(_0x3ae667=_0x3c39d5(_0x3ae667)||_0x3ae667);return _0x3ae667;},_0x5cb1b2=(_0x3d9b8a,_0x223f4e)=>(_0x1c9cc5,_0x4ed7e1)=>_0x223f4e(_0x1c9cc5,_0x4ed7e1,_0x3d9b8a);_0x938182[_0x55ca6d(0x23d)]=class extends _0x503a1a[_0x55ca6d(0x281)]{constructor(_0x43ed42,_0x127cb3){var _0x6d431f=_0x55ca6d;super(),this['_injector']=_0x43ed42,this['_uiPartsService']=_0x127cb3,this[_0x6d431f(0x223)]();}[_0x55ca6d(0x223)](){var _0x46a751=_0x55ca6d;this['disposeWithMe'](this[_0x46a751(0x254)][_0x46a751(0x1d6)](_0x1cf7c4['BuiltInUIPart'][_0x46a751(0x234)],()=>_0x1cf7c4[_0x46a751(0x1bb)](_0x450a68,this['_injector'])));}},_0x938182[_0x55ca6d(0x23d)]=_0x5b233e([_0x5cb1b2(0x0,_0x503a1a[_0x55ca6d(0x272)](_0x503a1a[_0x55ca6d(0x20f)])),_0x5cb1b2(0x1,_0x1cf7c4['IUIPartsService'])],_0x938182[_0x55ca6d(0x23d)]);var _0x2356e4=Object['defineProperty'],_0x2f8eaa=Object[_0x55ca6d(0x1cf)],_0x1b86aa=(_0x112f9c,_0x26447a,_0x4d7819)=>_0x26447a in _0x112f9c?_0x2356e4(_0x112f9c,_0x26447a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7819}):_0x112f9c[_0x26447a]=_0x4d7819,_0xb93cee=(_0x2c7c53,_0x3d0bb4,_0x1c95fb,_0x577f5c)=>{var _0xed5d0a=_0x55ca6d;for(var _0x353fa2=_0x577f5c>0x1?void 0x0:_0x577f5c?_0x2f8eaa(_0x3d0bb4,_0x1c95fb):_0x3d0bb4,_0x26ceaa=_0x2c7c53[_0xed5d0a(0x203)]-0x1,_0x4fdf62;_0x26ceaa>=0x0;_0x26ceaa--)(_0x4fdf62=_0x2c7c53[_0x26ceaa])&&(_0x353fa2=_0x4fdf62(_0x353fa2)||_0x353fa2);return _0x353fa2;},_0x143dd2=(_0x35c212,_0x414c40)=>(_0x2301e3,_0x573484)=>_0x414c40(_0x2301e3,_0x573484,_0x35c212),_0x2d68b6=(_0xe379d2,_0x44f84e,_0x3dd1e8)=>_0x1b86aa(_0xe379d2,typeof _0x44f84e!=_0x55ca6d(0x1c5)?_0x44f84e+'':_0x44f84e,_0x3dd1e8);const _0xc6b0fd=_0x55ca6d(0x1dd);_0x938182['UniverLiveSharePlugin']=class extends _0x503a1a[_0x55ca6d(0x257)]{constructor(_0xa2e048=_0x3f9320,_0x5c7ad7,_0x182927){var _0x569c51=_0x55ca6d;super(),this[_0x569c51(0x266)]=_0xa2e048,this['_injector']=_0x5c7ad7,this[_0x569c51(0x215)]=_0x182927;const {..._0x5b1a44}=_0x503a1a[_0x569c51(0x238)]({},_0x3f9320,this[_0x569c51(0x266)]);this['_configService'][_0x569c51(0x202)](_0x152a8b,_0x5b1a44);}[_0x55ca6d(0x231)](){var _0x1624b3=_0x55ca6d;_0x503a1a[_0x1624b3(0x295)](this[_0x1624b3(0x20a)],_0x503a1a[_0x1624b3(0x21a)]([[_0xd56bd0],[_0x938182['LiveShareController']],[_0x460eba],[_0x938182[_0x1624b3(0x23d)]]],this[_0x1624b3(0x266)][_0x1624b3(0x1d9)])),_0x503a1a[_0x1624b3(0x1fa)](this['_injector'],[[_0x460eba]]);}[_0x55ca6d(0x1cd)](){var _0x155fe9=_0x55ca6d;_0x503a1a[_0x155fe9(0x1fa)](this[_0x155fe9(0x20a)],[[_0x938182['DesktopLiveShareController']]]);}},_0x2d68b6(_0x938182[_0x55ca6d(0x21e)],_0x55ca6d(0x240),_0x503a1a[_0x55ca6d(0x1ac)][_0x55ca6d(0x1e5)]),_0x2d68b6(_0x938182[_0x55ca6d(0x21e)],_0x55ca6d(0x25c),_0xc6b0fd),_0x938182[_0x55ca6d(0x21e)]=_0xb93cee([_0x503a1a[_0x55ca6d(0x293)](_0x313195[_0x55ca6d(0x1ed)]),_0x143dd2(0x1,_0x503a1a[_0x55ca6d(0x272)](_0x503a1a[_0x55ca6d(0x20f)])),_0x143dd2(0x2,_0x503a1a[_0x55ca6d(0x225)])],_0x938182[_0x55ca6d(0x21e)]),_0x938182[_0x55ca6d(0x283)]=_0x450a68,_0x938182['LiveShareService']=_0xd56bd0,_0x938182[_0x55ca6d(0x216)]=_0x3753e3,Object['defineProperty'](_0x938182,Symbol['toStringTag'],{'value':_0x55ca6d(0x226)});}));function _0x3eff(){var _0x4a7cb9=['prototype','takeUntil','DesktopLiveShareController','@univerjs/core','_sharedOperations','type','parseProtocolChangeset','_handleNewHost','NEW_CHANGESETS','current','following','concat','div','toDisposable','18faZlJe','_startLiveShareCoordinator','rxjs','1250253DiVUsz','defIds','LIVESHARE_TERMINATE','@univerjs/design','mask','SAME_OPERATION_SHARE_INTERVAL','function','jsx','_uiPartsService','_startPresenting','getConfig','Plugin','send','string','UniverSheetsUi','1em','pluginName','_collabSessionService','onCommandExecuted','has','ICommandService','stringify','createInstance','apply','_handleOffline','UniverCore','_config','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_entities','object','getLiveShareCoordinator','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','LiveShareSingle','get','315045mIwlTO','_startFollowing','useObservable','_handleOnline','Inject','button','currentColor','_unitID','Present\x20this\x20document','status$','startFollowing','createElement','LIVESHARE_OPERATION','_univerInstanceService','univer-size-4','use','event$','@univerjs-pro/collaboration-client','children','Disposable','xlink:href','LiveShare','executeCommand','default','CommandType','_reporters','2130vpPKwP','jsxs','_liveShareService','SetScrollOperation','disposeWithMe','useState','requireSession','getTypeOfUnitDisposed$','idSuffix','SetZoomRatioOperation','operators','DependentOn','univerjs-icon\x20univerjs-icon-','registerDependencies','CollaborationEvent','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','@univerjs/ui','0\x200\x2016\x2016','propertyIsEnumerable','exports','IDLE','UniverInstanceType','InsertSheetMutation','dispose','RxDisposable','UNIVER_SHEET','subscribe','_stopPresenting','react','_collabSession','_handleNewChangeSets','SessionStatus','live-share-single','UniverProLiveShare','UniverUi','delete','connectInjector','UniverDesign','extend','colorChannel1','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareCoordinator','assign','dispose$','useEffect','presenter','symbol','add','asObservable','Dropdown','951524FppphA','UniverProCollaborationClient','_handleTerminate','indexOf','onRendered','Subject','getOwnPropertyDescriptor','stopPresenting','next','call','Fragment','55101brlGer','text','registerComponent','clear','getOwnPropertySymbols','override','throttleTime','amd','live-share.config','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','path','2353WPJiEh','fill','registerSharedOperation','PRESENTING','_handleOperation','UNIVER_UNKNOWN','1611082RGUnCh','memberID','CollaborationSessionService','presenting','22eQxuTo','DisposableCollection','FOLLOWING','UniverCollaborationClientPlugin','from','_fetchOperations','svg','then','_commandDisposable','getUnitId','_stopFollowing','Button','not-following','entries','@univerjs/sheets','OFFLINE','touchDependencies','LIVESHARE_NEW_HOST','defineProperty','attrs','LIVESHARE_REQUEST_HOST','pipe','_status$','getInitialStates','setConfig','length','useRef','complete','useDependency','data','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_injector','You\x27re\x20following\x20the\x20presenter','clsx','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','Injector','substring','rxjs/operators','_status','small','getValue','_configService','LiveShareStatus','mutations','React','idle','mergeOverrideWithDependencies','icon','init','6056PXuDYd','UniverLiveSharePlugin','random','188268KNjuQw','_init','SetWorksheetActiveOperation','_mountLiveShare','_beIdle','IConfigService','Module','IUniverInstanceService','params','_commandService','UniverProCollaboration','@univerjs-pro/collaboration','forEach','16ZdBHeE','offline','tag','_presenter','onStarting','className','LIVESHARE_FETCH_OPERATIONS','HEADER_MENU','url(#$1','hasOwnProperty','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','merge','replace','60uZyEEB'];_0x3eff=function(){return _0x4a7cb9;};return _0x3eff();}
|
|
1
|
+
function _0x73a0(){var _0x331ece=['asObservable','_commandDisposable','getUnitId','type','Inject','operators','button','apply','getCurrentTypeOfUnit$','IUniverInstanceService','BehaviorSubject','_handleOffline','complete','toDisposable','shouldShareOperation','getConfig','connectInjector','_handleNewHost','live-share.config','attrs','_unitID','UniverInstanceType','UniverSheetsUi','@univerjs/sheets','InsertSheetMutation','SetScrollOperation','onStarting','_status','UNIVER_UNKNOWN','parse','div','idle','LiveShare','react/jsx-runtime','LIVESHARE_OPERATION','dispose$','@univerjs/core','React','useObservable','touchDependencies','fill','xlink:href','243jbFElw','_fetchOperations','LiveShareController','getTypeOfUnitAdded$','71044PuhGmJ','@univerjs/ui','@univerjs/design','UNIVER_SHEET','following','forEach','UniverLiveSharePlugin','add','forwardRef','sheet','pipe','stopPresenting','Fragment','_liveShareService','throttleTime','_reporters','Injector','UniverUi','_commandService','replace','call','dispose','Module','UniverProCollaborationClient','set','FOLLOWING','4GZtSYM','icon','react','_startFollowing','defIds','14faWMPR','LiveShareService','presenter','colorChannel1','IDLE','rxjs/operators','getOwnPropertySymbols','operations','getValue','_sharedOperations','default','getInitialStates','getMemberID','symbol','NEW_CHANGESETS','find','children','values','displayName','_status$','You\x27re\x20following\x20the\x20presenter','data','SetZoomRatioOperation','evenodd','getLiveShareCoordinator','has','NOT_FOLLOWING','LiveShareSingle','getTypeOfUnitDisposed$','_injector','661955QOEfVy','registerComponent','DesktopLiveShareController','_init','univerjs-icon\x20univerjs-icon-','memberID','_stopFollowing','object','jsx','useEffect','svg','use','10997004fYmNTX','SetWorksheetActiveOperation','useDependency','HEADER_MENU','toString','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','UniverSheets','offline','extend','stopFollowing','3480JMDUgj','small','defineProperty','jsxs','@univerjs/sheets-ui','Start','Disposable','className','sessionStatus$','LiveShareCoordinator','function','LIVESHARE_NEW_HOST','clsx','_uiPartsService','setConfig','string','1356752JXPlYr','_entities','prototype','You\x27re\x20presenting\x20the\x20document','_configService','next','tryStartPresenting','_handleNewChangeSets','concat','createElement','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900/90\x20univer-text-white\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UniverCore','send','UniverCollaborationClientPlugin','createInstance','unitId','path','none','OFFLINE','_collabSessionService','713956VXvadu','idSuffix','get','from','assign','disposeWithMe','You\x27are\x20offline.','_handleTerminate','LIVESHARE_REQUEST_HOST','Dropdown','startFollowing','url(#$1','DependentOn','SAME_OPERATION_SHARE_INTERVAL','entries','pluginName','UniverIcon','Present\x20this\x20document','IConfigService','subscribe','0\x200\x2016\x2016','current','amd','takeUntil','indexOf','1269rkOjzY','_startPresenting','live-share-single','_collabSession','@univerjs-pro/collaboration','CollaborationSessionService','hasOwnProperty','_beIdle','propertyIsEnumerable','RxDisposable','not-following','33vdGQCF','LIVESHARE_FETCH_OPERATIONS','substring','_stopPresenting','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverProCollaboration','presenting','mask','executeCommand','_univerInstanceService','ONLINE','@univerjs-pro/collaboration-client','registerDependencies','ICommandService','map','useRef','delete','Subject','exports','_handleOnline','useState','_presenter','getOwnPropertyDescriptor','trim','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','_config','DisposableCollection','tag','init','currentColor','rxjs','6083082CyOCAp','params','SessionStatus','_startLiveShareCoordinator','reverse','status$','Button','LIVESHARE_TERMINATE','merge','_mountLiveShare','length','CollaborationEvent'];_0x73a0=function(){return _0x331ece;};return _0x73a0();}function _0x4e48(_0x4f47cf,_0x143369){var _0x73a0c8=_0x73a0();return _0x4e48=function(_0x4e48c5,_0x1a18ba){_0x4e48c5=_0x4e48c5-0xaa;var _0x26cfed=_0x73a0c8[_0x4e48c5];return _0x26cfed;},_0x4e48(_0x4f47cf,_0x143369);}(function(_0x895b5d,_0x1c234e){var _0x5dcb8c=_0x4e48,_0x2a218a=_0x895b5d();while(!![]){try{var _0x1964bc=-parseInt(_0x5dcb8c(0x14a))/0x1*(parseInt(_0x5dcb8c(0xed))/0x2)+parseInt(_0x5dcb8c(0xcf))/0x3*(-parseInt(_0x5dcb8c(0xd3))/0x4)+parseInt(_0x5dcb8c(0x110))/0x5+parseInt(_0x5dcb8c(0x18d))/0x6+parseInt(_0x5dcb8c(0xf2))/0x7*(-parseInt(_0x5dcb8c(0x136))/0x8)+-parseInt(_0x5dcb8c(0x163))/0x9*(-parseInt(_0x5dcb8c(0x126))/0xa)+parseInt(_0x5dcb8c(0x16e))/0xb*(parseInt(_0x5dcb8c(0x11c))/0xc);if(_0x1964bc===_0x1c234e)break;else _0x2a218a['push'](_0x2a218a['shift']());}catch(_0x1c7fba){_0x2a218a['push'](_0x2a218a['shift']());}}}(_0x73a0,0xb4600),function(_0x5b04d2,_0x112d6f){var _0x33758d=_0x4e48;typeof exports==_0x33758d(0x117)&&typeof module<'u'?_0x112d6f(exports,require(_0x33758d(0x179)),require(_0x33758d(0xc9)),require(_0x33758d(0xbc)),require(_0x33758d(0x12a)),require(_0x33758d(0xd4)),require(_0x33758d(0xc6)),require(_0x33758d(0xd5)),require('react'),require(_0x33758d(0x167)),require(_0x33758d(0x18c)),require('rxjs/operators')):typeof define=='function'&&define[_0x33758d(0x160)]?define([_0x33758d(0x180),_0x33758d(0x179),_0x33758d(0xc9),'@univerjs/sheets','@univerjs/sheets-ui',_0x33758d(0xd4),_0x33758d(0xc6),_0x33758d(0xd5),_0x33758d(0xef),_0x33758d(0x167),_0x33758d(0x18c),_0x33758d(0xf7)],_0x112d6f):(_0x5b04d2=typeof globalThis<'u'?globalThis:_0x5b04d2||self,_0x112d6f(_0x5b04d2['UniverProLiveShare']={},_0x5b04d2[_0x33758d(0xea)],_0x5b04d2[_0x33758d(0x141)],_0x5b04d2[_0x33758d(0x122)],_0x5b04d2[_0x33758d(0xbb)],_0x5b04d2[_0x33758d(0xe4)],_0x5b04d2[_0x33758d(0xca)],_0x5b04d2['UniverDesign'],_0x5b04d2[_0x33758d(0xca)],_0x5b04d2[_0x33758d(0x173)],_0x5b04d2['rxjs'],_0x5b04d2[_0x33758d(0x18c)][_0x33758d(0xaa)]));}(this,function(_0xea719a,_0x508c4a,_0x391235,_0x3ecb8a,_0x4beba5,_0xfd19b1,_0x32bf3b,_0x2eabc9,_0x20e7b9,_0x491fea,_0x10ec66,_0x1136e7){'use strict';var _0x4290dc=_0x4e48;var _0x3fe0e4=Object['defineProperty'],_0x3c1696=(_0x431795,_0x36a667,_0x1d57b3)=>_0x36a667 in _0x431795?_0x3fe0e4(_0x431795,_0x36a667,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d57b3}):_0x431795[_0x36a667]=_0x1d57b3,_0x576b4a=(_0xf5a1be,_0x506de9,_0x2b34d6)=>_0x3c1696(_0xf5a1be,typeof _0x506de9!=_0x4290dc(0xff)?_0x506de9+'':_0x506de9,_0x2b34d6);const _0x8bead5=_0x4290dc(0xb7),_0x4b2a94={};class _0x297142 extends _0x391235['Disposable']{constructor(){super(...arguments),_0x576b4a(this,'_sharedOperations',new Set()),_0x576b4a(this,'_reporters',new Set());}['registerSharedOperation'](_0x5b1ff3){var _0x1520a9=_0x4290dc;return this['_sharedOperations'][_0x1520a9(0xda)](_0x5b1ff3),_0x391235[_0x1520a9(0xb2)](()=>this[_0x1520a9(0xfb)][_0x1520a9(0x17e)](_0x5b1ff3));}['registerInitialStateReporter'](_0x5bbcd1){var _0x9ef3bd=_0x4290dc;return this[_0x9ef3bd(0xe2)]['add'](_0x5bbcd1),_0x391235[_0x9ef3bd(0xb2)](()=>this[_0x9ef3bd(0xe2)]['delete'](_0x5bbcd1));}[_0x4290dc(0xb3)](_0x3e5118){var _0x2ce0c2=_0x4290dc;return this['_sharedOperations'][_0x2ce0c2(0x10b)](_0x3e5118);}[_0x4290dc(0xfd)](_0x898f7d){var _0x4f987d=_0x4290dc;return Array[_0x4f987d(0x14d)](this[_0x4f987d(0xe2)])[_0x4f987d(0x17c)](_0x5e6b26=>_0x5e6b26(_0x898f7d));}}var _0x178947=Object[_0x4290dc(0x184)],_0x13e15a=(_0xf47ac,_0x503817,_0x3464ab,_0x24ecde)=>{var _0x22d1c2=_0x4290dc;for(var _0x399dc9=_0x24ecde>0x1?void 0x0:_0x24ecde?_0x178947(_0x503817,_0x3464ab):_0x503817,_0x15ea64=_0xf47ac[_0x22d1c2(0x197)]-0x1,_0xc6cb6c;_0x15ea64>=0x0;_0x15ea64--)(_0xc6cb6c=_0xf47ac[_0x15ea64])&&(_0x399dc9=_0xc6cb6c(_0x399dc9)||_0x399dc9);return _0x399dc9;},_0x31fbac=(_0x313228,_0x384a69)=>(_0x1e4db5,_0x12db07)=>_0x384a69(_0x1e4db5,_0x12db07,_0x313228);let _0x377a39=class extends _0x391235[_0x4290dc(0x12c)]{constructor(_0x4126d2){var _0x2ea852=_0x4290dc;super(),this[_0x2ea852(0xe0)]=_0x4126d2,this[_0x2ea852(0x113)]();}[_0x4290dc(0x113)](){var _0x529692=_0x4290dc;[_0x4beba5[_0x529692(0x108)]['id'],_0x4beba5[_0x529692(0xbe)]['id'],_0x3ecb8a[_0x529692(0x11d)]['id']][_0x529692(0xd8)](_0x465015=>{var _0x48a6b0=_0x529692;this[_0x48a6b0(0x14f)](this[_0x48a6b0(0xe0)]['registerSharedOperation'](_0x465015));});}};_0x377a39=_0x13e15a([_0x31fbac(0x0,_0x391235['Inject'](_0x297142))],_0x377a39);var _0x3f4820=function(){var _0x49bb2c=_0x4290dc;return _0x3f4820=Object[_0x49bb2c(0x14e)]||function(_0x14a207){var _0x38123a=_0x49bb2c;for(var _0x2ff6da,_0x15b096=0x1,_0x164059=arguments['length'];_0x15b096<_0x164059;_0x15b096++){_0x2ff6da=arguments[_0x15b096];for(var _0x1f3d6e in _0x2ff6da)Object[_0x38123a(0x138)]['hasOwnProperty'][_0x38123a(0xe7)](_0x2ff6da,_0x1f3d6e)&&(_0x14a207[_0x1f3d6e]=_0x2ff6da[_0x1f3d6e]);}return _0x14a207;},_0x3f4820[_0x49bb2c(0xac)](this,arguments);},_0x29626f=function(_0x71fbb2,_0x48becb){var _0x1c4f16=_0x4290dc,_0x1d3849={};for(var _0x8d00cf in _0x71fbb2)Object['prototype'][_0x1c4f16(0x169)]['call'](_0x71fbb2,_0x8d00cf)&&_0x48becb[_0x1c4f16(0x162)](_0x8d00cf)<0x0&&(_0x1d3849[_0x8d00cf]=_0x71fbb2[_0x8d00cf]);if(_0x71fbb2!=null&&typeof Object[_0x1c4f16(0xf8)]==_0x1c4f16(0x130)){for(var _0x6cdd00=0x0,_0x8d00cf=Object[_0x1c4f16(0xf8)](_0x71fbb2);_0x6cdd00<_0x8d00cf[_0x1c4f16(0x197)];_0x6cdd00++)_0x48becb['indexOf'](_0x8d00cf[_0x6cdd00])<0x0&&Object[_0x1c4f16(0x138)][_0x1c4f16(0x16b)][_0x1c4f16(0xe7)](_0x71fbb2,_0x8d00cf[_0x6cdd00])&&(_0x1d3849[_0x8d00cf[_0x6cdd00]]=_0x71fbb2[_0x8d00cf[_0x6cdd00]]);}return _0x1d3849;},_0x4552de=_0x20e7b9[_0x4290dc(0xdb)](function(_0x4effec,_0x36b158){var _0x3e87f2=_0x4290dc,_0xa23a87=_0x4effec[_0x3e87f2(0xee)],_0x3ef938=_0x4effec['id'],_0x322048=_0x4effec['className'],_0x55a069=_0x4effec[_0x3e87f2(0x124)],_0x270899=_0x29626f(_0x4effec,[_0x3e87f2(0xee),'id',_0x3e87f2(0x12d),'extend']),_0x51ed45=_0x3e87f2(0x114)[_0x3e87f2(0x13e)](_0x3ef938,'\x20')[_0x3e87f2(0x13e)](_0x322048||'')[_0x3e87f2(0x185)](),_0x1d0ee9=_0x20e7b9[_0x3e87f2(0x17d)]('_'[_0x3e87f2(0x13e)](_0x118bc6()));return _0x2bd61c(_0xa23a87,''['concat'](_0x3ef938),{'defIds':_0xa23a87[_0x3e87f2(0xf1)],'idSuffix':_0x1d0ee9[_0x3e87f2(0x15f)]},_0x3f4820({'ref':_0x36b158,'className':_0x51ed45},_0x270899),_0x55a069);});function _0x2bd61c(_0x1e4e27,_0x16bad6,_0x35a5a2,_0x31b091,_0x59997b){var _0x573518=_0x4290dc;return _0x20e7b9[_0x573518(0x13f)](_0x1e4e27[_0x573518(0x189)],_0x3f4820(_0x3f4820({'key':_0x16bad6},_0x2aa8b6(_0x1e4e27,_0x35a5a2,_0x59997b)),_0x31b091),(_0x27dbaf(_0x1e4e27,_0x35a5a2)[_0x573518(0x102)]||[])[_0x573518(0x17c)](function(_0x2a0946,_0x158ba4){var _0x56b9ca=_0x573518;return _0x2bd61c(_0x2a0946,''['concat'](_0x16bad6,'-')[_0x56b9ca(0x13e)](_0x1e4e27[_0x56b9ca(0x189)],'-')[_0x56b9ca(0x13e)](_0x158ba4),_0x35a5a2,void 0x0,_0x59997b);}));}function _0x2aa8b6(_0x3a1581,_0x17b823,_0x11fa03){var _0x48ce03=_0x4290dc,_0x51aeab=_0x3f4820({},_0x3a1581[_0x48ce03(0xb8)]);_0x11fa03!=null&&_0x11fa03[_0x48ce03(0xf5)]&&_0x51aeab[_0x48ce03(0xcd)]===_0x48ce03(0xf5)&&(_0x51aeab[_0x48ce03(0xcd)]=_0x11fa03[_0x48ce03(0xf5)]),_0x3a1581['tag']===_0x48ce03(0x175)&&_0x51aeab['id']&&(_0x51aeab['id']=_0x51aeab['id']+_0x17b823[_0x48ce03(0x14b)]),Object['entries'](_0x51aeab)[_0x48ce03(0xd8)](function(_0x5dbb80){var _0x3405ef=_0x48ce03,_0x4f6587=_0x5dbb80[0x0],_0xbfb3f7=_0x5dbb80[0x1];_0x4f6587===_0x3405ef(0x175)&&typeof _0xbfb3f7=='string'&&(_0x51aeab[_0x4f6587]=_0xbfb3f7['replace'](/url\(#(.*)\)/,_0x3405ef(0x155)[_0x3405ef(0x13e)](_0x17b823[_0x3405ef(0x14b)],')')));});var _0x66ef6b=_0x17b823[_0x48ce03(0xf1)];return!_0x66ef6b||_0x66ef6b[_0x48ce03(0x197)]===0x0||(_0x3a1581[_0x48ce03(0x189)]===_0x48ce03(0x11b)&&_0x51aeab[_0x48ce03(0xce)]&&(_0x51aeab[_0x48ce03(0xce)]=_0x51aeab[_0x48ce03(0xce)]+_0x17b823['idSuffix']),Object[_0x48ce03(0x158)](_0x51aeab)[_0x48ce03(0xd8)](function(_0x59d763){var _0x2df575=_0x48ce03,_0x27a51e=_0x59d763[0x0],_0x5cfd4b=_0x59d763[0x1];typeof _0x5cfd4b==_0x2df575(0x135)&&(_0x51aeab[_0x27a51e]=_0x5cfd4b[_0x2df575(0xe6)](/url\(#(.*)\)/,'url(#$1'[_0x2df575(0x13e)](_0x17b823[_0x2df575(0x14b)],')')));})),_0x51aeab;}function _0x27dbaf(_0x1ff49f,_0x42cdee){var _0x2d9ee3=_0x4290dc,_0x362ab1,_0x365e55=_0x42cdee[_0x2d9ee3(0xf1)];return!_0x365e55||_0x365e55[_0x2d9ee3(0x197)]===0x0?_0x1ff49f:_0x1ff49f[_0x2d9ee3(0x189)]==='defs'&&(!((_0x362ab1=_0x1ff49f['children'])===null||_0x362ab1===void 0x0)&&_0x362ab1[_0x2d9ee3(0x197)])?_0x3f4820(_0x3f4820({},_0x1ff49f),{'children':_0x1ff49f[_0x2d9ee3(0x102)][_0x2d9ee3(0x17c)](function(_0x4a1c9b){var _0x45727f=_0x2d9ee3;return typeof _0x4a1c9b[_0x45727f(0xb8)]['id']==_0x45727f(0x135)&&_0x365e55&&_0x365e55[_0x45727f(0x162)](_0x4a1c9b[_0x45727f(0xb8)]['id'])>-0x1?_0x3f4820(_0x3f4820({},_0x4a1c9b),{'attrs':_0x3f4820(_0x3f4820({},_0x4a1c9b[_0x45727f(0xb8)]),{'id':_0x4a1c9b[_0x45727f(0xb8)]['id']+_0x42cdee['idSuffix']})}):_0x4a1c9b;})}):_0x1ff49f;}function _0x118bc6(){var _0x509fcd=_0x4290dc;return Math['random']()[_0x509fcd(0x120)](0x24)[_0x509fcd(0x170)](0x2,0x8);}_0x4552de['displayName']=_0x4290dc(0x15a);var _0x1b8d8f={'tag':_0x4290dc(0x11a),'attrs':{'fill':_0x4290dc(0x147),'viewBox':_0x4290dc(0x15e),'width':'1em','height':'1em'},'children':[{'tag':_0x4290dc(0x146),'attrs':{'fill':_0x4290dc(0x18b),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x4290dc(0x186),'fillRule':'evenodd','clipRule':_0x4290dc(0x109)}}]},_0x5318e8=_0x20e7b9[_0x4290dc(0xdb)](function(_0x28048b,_0x62801a){var _0x14eefc=_0x4290dc;return _0x20e7b9[_0x14eefc(0x13f)](_0x4552de,Object['assign']({},_0x28048b,{'id':_0x14eefc(0x165),'ref':_0x62801a,'icon':_0x1b8d8f}));});_0x5318e8[_0x4290dc(0x104)]=_0x4290dc(0x10d);var _0x36cd4d=Object['getOwnPropertyDescriptor'],_0xa9d15e=(_0x2addf5,_0x1f1fbd,_0xe85a3e,_0x5d48e5)=>{var _0x52adb3=_0x4290dc;for(var _0x1f724d=_0x5d48e5>0x1?void 0x0:_0x5d48e5?_0x36cd4d(_0x1f1fbd,_0xe85a3e):_0x1f1fbd,_0x49d0cd=_0x2addf5[_0x52adb3(0x197)]-0x1,_0x5b55d4;_0x49d0cd>=0x0;_0x49d0cd--)(_0x5b55d4=_0x2addf5[_0x49d0cd])&&(_0x1f724d=_0x5b55d4(_0x1f724d)||_0x1f724d);return _0x1f724d;},_0x188e72=(_0x4715d0,_0x2c5a23)=>(_0x583af0,_0x294b47)=>_0x2c5a23(_0x583af0,_0x294b47,_0x4715d0);_0xea719a['LiveShareController']=class extends _0x391235[_0x4290dc(0x16c)]{constructor(_0x50b0ee,_0x1ba1a6,_0x146495){var _0x555b62=_0x4290dc;super(),_0x576b4a(this,_0x555b62(0x137),new Map()),(this['_univerInstanceService']=_0x50b0ee,this[_0x555b62(0x10f)]=_0x1ba1a6,this[_0x555b62(0x149)]=_0x146495,this['_init']());}async[_0x4290dc(0x10a)](_0x564b38){var _0x12c18d=_0x4290dc;return this[_0x12c18d(0x137)][_0x12c18d(0x10b)](_0x564b38)||await this[_0x12c18d(0x190)](_0x564b38),this['_entities']['get'](_0x564b38);}['_init'](){var _0x2654af=_0x4290dc;this['_univerInstanceService'][_0x2654af(0xd2)](_0x391235[_0x2654af(0xba)][_0x2654af(0xd6)])[_0x2654af(0xdd)](_0x1136e7[_0x2654af(0x161)](this[_0x2654af(0xc8)]))[_0x2654af(0x15d)](async _0x3f4781=>{var _0x5d375a=_0x2654af;const _0x3fe5f8=_0x3f4781[_0x5d375a(0x19b)]();this[_0x5d375a(0x137)][_0x5d375a(0x10b)](_0x3fe5f8)||this[_0x5d375a(0x190)](_0x3fe5f8);}),this[_0x2654af(0x177)][_0x2654af(0x10e)](_0x391235[_0x2654af(0xba)][_0x2654af(0xd6)])['pipe'](_0x1136e7[_0x2654af(0x161)](this['dispose$']))['subscribe'](_0x4184a4=>{var _0x10db6b=_0x2654af;const _0x597c1b=_0x4184a4[_0x10db6b(0x19b)](),_0x1c24d2=this['_entities'][_0x10db6b(0x14c)](_0x597c1b);_0x1c24d2==null||_0x1c24d2[_0x10db6b(0xe8)]();});}async[_0x4290dc(0x190)](_0x5f19c7){var _0x2b9a08=_0x4290dc;const _0x42fbcb=await this[_0x2b9a08(0x149)]['requireSession'](_0x5f19c7),_0x16b346=this[_0x2b9a08(0x10f)][_0x2b9a08(0x144)](_0xea719a[_0x2b9a08(0x12f)],_0x5f19c7,_0x42fbcb);return _0x16b346['init'](),this['_entities'][_0x2b9a08(0xeb)](_0x5f19c7,_0x16b346),_0x16b346;}},_0xea719a[_0x4290dc(0xd1)]=_0xa9d15e([_0x188e72(0x0,_0x391235[_0x4290dc(0xae)]),_0x188e72(0x1,_0x391235[_0x4290dc(0x19d)](_0x391235[_0x4290dc(0xe3)])),_0x188e72(0x2,_0x391235[_0x4290dc(0x19d)](_0x508c4a[_0x4290dc(0x168)]))],_0xea719a['LiveShareController']);var _0x136753=(_0x24580e=>(_0x24580e['OFFLINE']=_0x4290dc(0x123),_0x24580e['IDLE']=_0x4290dc(0xc4),_0x24580e[_0x4290dc(0xec)]=_0x4290dc(0xd7),_0x24580e['NOT_FOLLOWING']=_0x4290dc(0x16d),_0x24580e['PRESENTING']=_0x4290dc(0x174),_0x24580e))(_0x136753||{});const _0x889121=_0x4290dc(0x157),_0x56c845=0xc8;_0xea719a[_0x4290dc(0x12f)]=class extends _0x391235[_0x4290dc(0x16c)]{constructor(_0x45848d,_0x43c621,_0x167f5f,_0x3edf9d,_0x1109d8){var _0x349cc4=_0x4290dc;super(),_0x576b4a(this,_0x349cc4(0x105),new _0x10ec66[(_0x349cc4(0xaf))](_0x349cc4(0xc4))),_0x576b4a(this,_0x349cc4(0x192),this[_0x349cc4(0x105)][_0x349cc4(0x199)]()),_0x576b4a(this,_0x349cc4(0x113),!0x1),_0x576b4a(this,_0x349cc4(0x19a),null),_0x576b4a(this,_0x349cc4(0x183),null),(this[_0x349cc4(0xb9)]=_0x45848d,this[_0x349cc4(0x166)]=_0x43c621,this[_0x349cc4(0x13a)]=_0x167f5f,this['_liveShareService']=_0x3edf9d,this[_0x349cc4(0xe5)]=_0x1109d8);}get[_0x4290dc(0xc0)](){var _0x106001=_0x4290dc;return this[_0x106001(0x105)][_0x106001(0xfa)]();}['dispose'](){var _0x39abcc=_0x4290dc,_0xe6d20;(_0xe6d20=this[_0x39abcc(0x19a)])==null||_0xe6d20[_0x39abcc(0xe8)](),this[_0x39abcc(0x105)][_0x39abcc(0x13b)](_0x39abcc(0xc4)),this[_0x39abcc(0x105)]['complete']();}[_0x4290dc(0x18a)](){var _0x3737e9=_0x4290dc;this[_0x3737e9(0x113)]||(this[_0x3737e9(0x113)]=!0x0,this[_0x3737e9(0x166)][_0x3737e9(0x12e)][_0x3737e9(0xdd)](_0x1136e7[_0x3737e9(0x161)](this['dispose$']))['subscribe'](_0x3fcf05=>{var _0x513eff=_0x3737e9;switch(_0x3fcf05){case _0x508c4a[_0x513eff(0x18f)]['OFFLINE']:this[_0x513eff(0xb0)]();break;case _0x508c4a[_0x513eff(0x18f)][_0x513eff(0x178)]:this[_0x513eff(0x181)]();break;}}),this[_0x3737e9(0x166)]['event$']['pipe'](_0x1136e7[_0x3737e9(0x161)](this[_0x3737e9(0xc8)]))[_0x3737e9(0x15d)](_0xce9e55=>{var _0x390f79=_0x3737e9;const {eventID:_0x16784f}=_0xce9e55;switch(_0x16784f){case _0x491fea[_0x390f79(0x198)][_0x390f79(0x131)]:this[_0x390f79(0xb6)](_0xce9e55);break;case _0x491fea[_0x390f79(0x198)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0xce9e55);break;case _0x491fea['CollaborationEvent'][_0x390f79(0x194)]:this[_0x390f79(0x151)]();break;case _0x491fea[_0x390f79(0x198)][_0x390f79(0x100)]:this[_0x390f79(0x13d)](_0xce9e55);break;}}));}[_0x4290dc(0x13c)](){var _0x3a6d59=_0x4290dc;this[_0x3a6d59(0x166)][_0x3a6d59(0x142)]({'eventID':_0x491fea[_0x3a6d59(0x198)][_0x3a6d59(0x152)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x3a6d59(0xfe)]()}},this[_0x3a6d59(0xb9)]);}['stopPresenting'](){var _0x141477=_0x4290dc;this['_status']===_0x141477(0x174)&&(this[_0x141477(0x105)][_0x141477(0x13b)](_0x141477(0xc4)),this['_collabSession'][_0x141477(0x142)]({'eventID':_0x491fea[_0x141477(0x198)][_0x141477(0x194)],'data':{'unitID':this[_0x141477(0xb9)]}},this[_0x141477(0xb9)]));}['startFollowing'](){var _0x1116b1=_0x4290dc;this['_status']===_0x1116b1(0x16d)&&(this[_0x1116b1(0x105)]['next'](_0x1116b1(0xd7)),this[_0x1116b1(0xf0)]());}[_0x4290dc(0x125)](){var _0x392d1c=_0x4290dc;this['_status']===_0x392d1c(0xd7)&&this[_0x392d1c(0x116)]();}[_0x4290dc(0xb6)](_0x561a4a){var _0x3b1961=_0x4290dc;const {presenter:_0x16e9e7}=_0x561a4a['data'],_0x1f5b4d=this[_0x3b1961(0x166)]['getMemberID']();this[_0x3b1961(0x183)]=_0x16e9e7,_0x16e9e7===_0x1f5b4d?(this[_0x3b1961(0x116)](),this[_0x3b1961(0x164)]()):this[_0x3b1961(0xc0)]!==_0x3b1961(0x16d)&&(this[_0x3b1961(0x171)](),this[_0x3b1961(0xf0)]());}[_0x4290dc(0xd0)](){var _0x46f91f=_0x4290dc;const _0x2d4a38={'eventID':_0x491fea['CollaborationEvent'][_0x46f91f(0x16f)]};this[_0x46f91f(0x166)][_0x46f91f(0x142)](_0x2d4a38,this[_0x46f91f(0xb9)]);}[_0x4290dc(0x151)](){var _0xa57871=_0x4290dc;this[_0xa57871(0x183)]=null,this[_0xa57871(0xc0)]!==_0xa57871(0x174)&&this[_0xa57871(0x16a)]();}['_handleNewChangeSets'](_0x10b75b){var _0x541b58=_0x4290dc;if(this['_status']===_0x541b58(0xd7)&&this[_0x541b58(0x183)]===_0x10b75b['data'][_0x541b58(0x115)]){const _0x297e0f=_0x491fea['parseProtocolChangeset'](_0x10b75b[_0x541b58(0x107)])['mutations'][_0x541b58(0x191)]()[_0x541b58(0x101)](_0x4e5130=>_0x4e5130['id']===_0x3ecb8a[_0x541b58(0xbd)]['id']);if(_0x297e0f){const _0x298e37=_0x297e0f[_0x541b58(0x18e)][_0x541b58(0x145)],_0x3334fa=_0x297e0f[_0x541b58(0x18e)][_0x541b58(0xdc)]['id'];setTimeout(()=>{var _0x3495c0=_0x541b58;this[_0x3495c0(0xe5)][_0x3495c0(0x176)](_0x3ecb8a[_0x3495c0(0x11d)]['id'],{'unitId':_0x298e37,'subUnitId':_0x3334fa},{'fromCollab':!0x0});});}}}[_0x4290dc(0x164)](){var _0x31f5ac=_0x4290dc;this[_0x31f5ac(0x105)][_0x31f5ac(0x13b)](_0x31f5ac(0x174));const _0xc13ba5=new Map(),_0x3731c8=this[_0x31f5ac(0x19a)]=new _0x391235[(_0x31f5ac(0x188))]();_0x3731c8['add'](_0x391235[_0x31f5ac(0xb2)](()=>{var _0x5e6a2e=_0x31f5ac;_0xc13ba5['forEach'](_0x40e729=>_0x40e729[_0x5e6a2e(0xb1)]()),_0xc13ba5['clear']();})),_0x3731c8[_0x31f5ac(0xda)](this[_0x31f5ac(0xe5)]['onCommandExecuted'](_0x4050eb=>{var _0x2cdca3=_0x31f5ac,_0x4b1a26;if(_0x4050eb[_0x2cdca3(0x19c)]!==_0x391235['CommandType']['OPERATION']||!this['_liveShareService'][_0x2cdca3(0xb3)](_0x4050eb['id']))return;const {id:_0x378741}=_0x4050eb;let _0x155e02;_0xc13ba5[_0x2cdca3(0x10b)](_0x378741)?_0x155e02=_0xc13ba5[_0x2cdca3(0x14c)](_0x378741):(_0x155e02=new _0x10ec66[(_0x2cdca3(0x17f))](),_0xc13ba5[_0x2cdca3(0xeb)](_0x378741,_0x155e02),_0x155e02[_0x2cdca3(0xdd)](_0x1136e7[_0x2cdca3(0xe1)]((_0x4b1a26=this[_0x2cdca3(0x13a)][_0x2cdca3(0xb4)](_0x889121))!=null?_0x4b1a26:_0x56c845,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2cdca3(0x15d)](_0x3c6d1c=>{var _0x36427f=_0x2cdca3;this[_0x36427f(0x166)]['send']({'eventID':_0x491fea[_0x36427f(0x198)][_0x36427f(0xc7)],'data':{'unitID':this[_0x36427f(0xb9)],'operations':{[_0x3c6d1c['id']]:{'id':_0x3c6d1c['id'],'params':JSON['stringify'](_0x3c6d1c[_0x36427f(0x18e)])}}}},this[_0x36427f(0xb9)]);})),_0x155e02['next'](_0x4050eb);})),this[_0x31f5ac(0xe0)][_0x31f5ac(0xfd)](this[_0x31f5ac(0xb9)])[_0x31f5ac(0xd8)](_0x28502a=>this[_0x31f5ac(0x166)][_0x31f5ac(0x142)]({'eventID':_0x491fea['CollaborationEvent'][_0x31f5ac(0xc7)],'data':{'unitID':this[_0x31f5ac(0xb9)],'operations':{[_0x28502a['id']]:{'id':_0x28502a['id'],'params':JSON['stringify'](_0x28502a['params'])}}}},this[_0x31f5ac(0xb9)]));}[_0x4290dc(0x171)](){var _0xba6e9=_0x4290dc,_0x51da94;this[_0xba6e9(0x105)]['next'](_0xba6e9(0xc4)),(_0x51da94=this[_0xba6e9(0x19a)])==null||_0x51da94[_0xba6e9(0xe8)](),this['_commandDisposable']=null;}[_0x4290dc(0xf0)](){var _0xa5051d=_0x4290dc,_0x5bd230;(_0x5bd230=this[_0xa5051d(0x19a)])==null||_0x5bd230[_0xa5051d(0xe8)](),this['_status$']['next'](_0xa5051d(0xd7));}['_beIdle'](){var _0x5e7d20=_0x4290dc,_0x4d5214;this[_0x5e7d20(0x105)][_0x5e7d20(0x13b)](_0x5e7d20(0xc4)),(_0x4d5214=this[_0x5e7d20(0x19a)])==null||_0x4d5214[_0x5e7d20(0xe8)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0xae6c03=_0x4290dc,_0x1603b1;this[_0xae6c03(0x105)]['next']('not-following'),(_0x1603b1=this[_0xae6c03(0x19a)])==null||_0x1603b1[_0xae6c03(0xe8)]();}['_handleOperation'](_0x406287){var _0x30c9e5=_0x4290dc;if([_0x30c9e5(0x174),_0x30c9e5(0x16d),_0x30c9e5(0x123)]['includes'](this[_0x30c9e5(0xc0)])||!_0x406287['data'][_0x30c9e5(0xf4)]||_0x406287[_0x30c9e5(0x107)][_0x30c9e5(0xf4)]===this[_0x30c9e5(0x166)][_0x30c9e5(0xfe)]())return;this[_0x30c9e5(0xc0)]==='idle'&&this[_0x30c9e5(0xf0)]();const _0x53712f=_0x406287[_0x30c9e5(0x107)][_0x30c9e5(0xf9)];Object[_0x30c9e5(0x103)](_0x53712f)['forEach'](_0x3451b0=>{var _0x3a9c4b=_0x30c9e5;this[_0x3a9c4b(0xe5)][_0x3a9c4b(0x176)](_0x3451b0['id'],_0x3451b0['params']?JSON[_0x3a9c4b(0xc2)](_0x3451b0[_0x3a9c4b(0x18e)]):null,{'fromCollab':!0x0});});}[_0x4290dc(0xb0)](){var _0x377c09=_0x4290dc,_0xb144b5;this[_0x377c09(0x105)][_0x377c09(0x13b)](_0x377c09(0x123)),(_0xb144b5=this['_commandDisposable'])==null||_0xb144b5[_0x377c09(0xe8)]();}[_0x4290dc(0x181)](){var _0x59c5a3=_0x4290dc;this[_0x59c5a3(0x105)][_0x59c5a3(0x13b)]('idle'),this[_0x59c5a3(0xd0)]();}},_0xea719a[_0x4290dc(0x12f)]=_0xa9d15e([_0x188e72(0x2,_0x391235[_0x4290dc(0x15c)]),_0x188e72(0x3,_0x391235['Inject'](_0x297142)),_0x188e72(0x4,_0x391235[_0x4290dc(0x17b)])],_0xea719a[_0x4290dc(0x12f)]);function _0x3ff6d2(){var _0x3a0558=_0x4290dc;const _0x5dc976=_0xfd19b1[_0x3a0558(0x11e)](_0xea719a[_0x3a0558(0xd1)]),_0x95c5a2=_0xfd19b1[_0x3a0558(0x11e)](_0x391235[_0x3a0558(0xae)]),_0xf57a44=_0xfd19b1[_0x3a0558(0xcb)](()=>_0x95c5a2[_0x3a0558(0xad)](_0x391235[_0x3a0558(0xba)][_0x3a0558(0xd6)]),void 0x0,!0x1,[]),[_0x3ea4ab,_0x4e6e20]=_0x20e7b9[_0x3a0558(0x182)](null),[_0x47a397,_0x123298]=_0x20e7b9['useState'](_0x136753[_0x3a0558(0xf6)]),_0x2142be=_0x20e7b9[_0x3a0558(0x17d)](null);return _0x20e7b9[_0x3a0558(0x119)](()=>(_0xf57a44&&_0x5dc976[_0x3a0558(0x10a)](_0xf57a44[_0x3a0558(0x19b)]())['then'](_0x12f7cf=>{var _0x5dee77=_0x3a0558;_0x4e6e20(_0x12f7cf),_0x2142be['current']=_0x12f7cf[_0x5dee77(0x192)][_0x5dee77(0x15d)](_0x363555=>{_0x123298(_0x363555);});}),()=>{var _0x402635=_0x3a0558,_0x3847b9;(_0x3847b9=_0x2142be[_0x402635(0x15f)])==null||_0x3847b9['unsubscribe'](),_0x2142be[_0x402635(0x15f)]=null;}),[_0xf57a44,_0x5dc976]),_0x3ea4ab?_0x32bf3b[_0x3a0558(0x118)](_0x2eabc9[_0x3a0558(0x153)],{'align':'end','disabled':_0x47a397===_0x136753[_0x3a0558(0x148)],'className':_0x3a0558(0x140),'overlay':_0x32bf3b[_0x3a0558(0x118)](_0x1c1faf,{'status':_0x47a397,'coordinator':_0x3ea4ab}),'children':_0x32bf3b['jsx'](_0x3a0558(0xab),{'className':_0x2eabc9[_0x3a0558(0x132)](_0x3a0558(0x121),{'univer-cursor-not-allowed':_0x47a397===_0x136753['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47a397!==_0x136753[_0x3a0558(0x148)]}),'type':'button','children':_0x32bf3b['jsx'](_0x5318e8,{'className':'univer-size-4'})})}):null;}function _0x1c1faf(_0x3531a9){var _0x51ced0=_0x4290dc;const {status:_0x397955,coordinator:_0x2dfb4a}=_0x3531a9;switch(_0x397955){case _0x136753[_0x51ced0(0xf6)]:return _0x32bf3b[_0x51ced0(0x118)](_0x3b5e53,{'coordinator':_0x2dfb4a});case _0x136753['FOLLOWING']:return _0x32bf3b[_0x51ced0(0x118)](_0x1a2528,{'coordinator':_0x2dfb4a});case _0x136753[_0x51ced0(0x10c)]:return _0x32bf3b['jsx'](_0x1b49b1,{'coordinator':_0x2dfb4a});case _0x136753[_0x51ced0(0x148)]:return _0x32bf3b[_0x51ced0(0x118)](_0xdca1f,{});case _0x136753['PRESENTING']:return _0x32bf3b[_0x51ced0(0x118)](_0x38d7f3,{'coordinator':_0x2dfb4a});default:return null;}}function _0x3b5e53(_0x5357c5){var _0x5a0a99=_0x4290dc;const {coordinator:_0x566955}=_0x5357c5;return _0x32bf3b['jsxs'](_0x32bf3b[_0x5a0a99(0xdf)],{'children':[_0x32bf3b[_0x5a0a99(0x118)](_0x5a0a99(0xc3),{'className':_0x5a0a99(0x172),'children':_0x5a0a99(0x15b)}),_0x32bf3b[_0x5a0a99(0x118)](_0x2eabc9[_0x5a0a99(0x193)],{'size':_0x5a0a99(0x127),'type':_0x5a0a99(0xfc),'onClick':()=>_0x566955['tryStartPresenting'](),'children':_0x5a0a99(0x12b)})]});}function _0x1a2528(_0x788a34){var _0x4068ce=_0x4290dc;const {coordinator:_0x305588}=_0x788a34;return _0x32bf3b[_0x4068ce(0x129)](_0x32bf3b[_0x4068ce(0xdf)],{'children':[_0x32bf3b[_0x4068ce(0x118)](_0x4068ce(0xc3),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4068ce(0x106)}),_0x32bf3b['jsx'](_0x2eabc9[_0x4068ce(0x193)],{'size':_0x4068ce(0x127),'type':_0x4068ce(0xfc),'onClick':()=>_0x305588[_0x4068ce(0x125)](),'children':'Stop\x20following'})]});}function _0x1b49b1(_0x3f6981){var _0x460e65=_0x4290dc;const {coordinator:_0x573d8d}=_0x3f6981;return _0x32bf3b['jsxs'](_0x32bf3b[_0x460e65(0xdf)],{'children':[_0x32bf3b[_0x460e65(0x118)](_0x460e65(0xc3),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x32bf3b['jsx'](_0x2eabc9['Button'],{'size':'small','type':'text','onClick':()=>_0x573d8d[_0x460e65(0x154)](),'children':'Start\x20following'})]});}function _0x38d7f3(_0x2c6ea6){var _0x40c42c=_0x4290dc;const {coordinator:_0xf057ce}=_0x2c6ea6;return _0x32bf3b[_0x40c42c(0x129)](_0x32bf3b[_0x40c42c(0xdf)],{'children':[_0x32bf3b['jsx'](_0x40c42c(0xc3),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x40c42c(0x139)}),_0x32bf3b['jsx'](_0x2eabc9[_0x40c42c(0x193)],{'size':'small','type':_0x40c42c(0xfc),'onClick':()=>_0xf057ce[_0x40c42c(0xde)](),'children':'Stop\x20presenting'})]});}function _0xdca1f(){var _0x17feb5=_0x4290dc;return _0x32bf3b[_0x17feb5(0x118)](_0x32bf3b[_0x17feb5(0xdf)],{'children':_0x17feb5(0x150)});}var _0x336501=Object['getOwnPropertyDescriptor'],_0x9ad686=(_0x251bc1,_0xe7f3fa,_0x2cb272,_0x20c840)=>{var _0x264393=_0x4290dc;for(var _0x441990=_0x20c840>0x1?void 0x0:_0x20c840?_0x336501(_0xe7f3fa,_0x2cb272):_0xe7f3fa,_0x5524ea=_0x251bc1[_0x264393(0x197)]-0x1,_0x11dfb5;_0x5524ea>=0x0;_0x5524ea--)(_0x11dfb5=_0x251bc1[_0x5524ea])&&(_0x441990=_0x11dfb5(_0x441990)||_0x441990);return _0x441990;},_0x2e331a=(_0x604505,_0x3bda2d)=>(_0x285e59,_0x2bc8f5)=>_0x3bda2d(_0x285e59,_0x2bc8f5,_0x604505);_0xea719a[_0x4290dc(0x112)]=class extends _0x391235[_0x4290dc(0x12c)]{constructor(_0x3941ca,_0x5c6088){var _0x2faa32=_0x4290dc;super(),this[_0x2faa32(0x10f)]=_0x3941ca,this[_0x2faa32(0x133)]=_0x5c6088,this['_mountLiveShare']();}[_0x4290dc(0x196)](){var _0x1662d8=_0x4290dc;this[_0x1662d8(0x14f)](this[_0x1662d8(0x133)][_0x1662d8(0x111)](_0xfd19b1['BuiltInUIPart'][_0x1662d8(0x11f)],()=>_0xfd19b1[_0x1662d8(0xb5)](_0x3ff6d2,this[_0x1662d8(0x10f)])));}},_0xea719a[_0x4290dc(0x112)]=_0x9ad686([_0x2e331a(0x0,_0x391235['Inject'](_0x391235[_0x4290dc(0xe3)])),_0x2e331a(0x1,_0xfd19b1['IUIPartsService'])],_0xea719a[_0x4290dc(0x112)]);var _0x2a0ca6=Object['defineProperty'],_0x4f16d9=Object[_0x4290dc(0x184)],_0x5e7903=(_0x4d2c6e,_0x454bdb,_0x6fe9b2)=>_0x454bdb in _0x4d2c6e?_0x2a0ca6(_0x4d2c6e,_0x454bdb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6fe9b2}):_0x4d2c6e[_0x454bdb]=_0x6fe9b2,_0x5cf899=(_0x1def4a,_0x30c4db,_0x5045d4,_0x12598e)=>{var _0xe4e725=_0x4290dc;for(var _0x57765c=_0x12598e>0x1?void 0x0:_0x12598e?_0x4f16d9(_0x30c4db,_0x5045d4):_0x30c4db,_0x84399d=_0x1def4a[_0xe4e725(0x197)]-0x1,_0x392635;_0x84399d>=0x0;_0x84399d--)(_0x392635=_0x1def4a[_0x84399d])&&(_0x57765c=_0x392635(_0x57765c)||_0x57765c);return _0x57765c;},_0x1e3637=(_0x2b2d7c,_0x11be53)=>(_0x21611b,_0xe759fa)=>_0x11be53(_0x21611b,_0xe759fa,_0x2b2d7c),_0x24ba17=(_0x408033,_0x374ac6,_0x2fe77f)=>_0x5e7903(_0x408033,typeof _0x374ac6!='symbol'?_0x374ac6+'':_0x374ac6,_0x2fe77f);const _0x25ccf3='UNIVER_LIVE_SHARE_PLUGIN';_0xea719a['UniverLiveSharePlugin']=class extends _0x391235['Plugin']{constructor(_0x22cbd0=_0x4b2a94,_0x43e4bc,_0x59b3ca){var _0x2312b0=_0x4290dc;super(),this['_config']=_0x22cbd0,this[_0x2312b0(0x10f)]=_0x43e4bc,this[_0x2312b0(0x13a)]=_0x59b3ca;const {..._0x35e994}=_0x391235[_0x2312b0(0x195)]({},_0x4b2a94,this[_0x2312b0(0x187)]);this['_configService'][_0x2312b0(0x134)](_0x8bead5,_0x35e994);}[_0x4290dc(0xbf)](){var _0x52eb01=_0x4290dc;_0x391235[_0x52eb01(0x17a)](this['_injector'],_0x391235['mergeOverrideWithDependencies']([[_0x297142],[_0xea719a['LiveShareController']],[_0x377a39],[_0xea719a[_0x52eb01(0x112)]]],this['_config']['override'])),_0x391235[_0x52eb01(0xcc)](this['_injector'],[[_0x377a39]]);}['onRendered'](){var _0x2f4257=_0x4290dc;_0x391235[_0x2f4257(0xcc)](this[_0x2f4257(0x10f)],[[_0xea719a['DesktopLiveShareController']]]);}},_0x24ba17(_0xea719a[_0x4290dc(0xd9)],_0x4290dc(0x19c),_0x391235['UniverInstanceType'][_0x4290dc(0xc1)]),_0x24ba17(_0xea719a[_0x4290dc(0xd9)],_0x4290dc(0x159),_0x25ccf3),_0xea719a[_0x4290dc(0xd9)]=_0x5cf899([_0x391235[_0x4290dc(0x156)](_0x508c4a[_0x4290dc(0x143)]),_0x1e3637(0x1,_0x391235[_0x4290dc(0x19d)](_0x391235[_0x4290dc(0xe3)])),_0x1e3637(0x2,_0x391235[_0x4290dc(0x15c)])],_0xea719a[_0x4290dc(0xd9)]),_0xea719a[_0x4290dc(0xc5)]=_0x3ff6d2,_0xea719a[_0x4290dc(0xf3)]=_0x297142,_0xea719a['LiveShareStatus']=_0x136753,Object[_0x4290dc(0x128)](_0xea719a,Symbol['toStringTag'],{'value':_0x4290dc(0xe9)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.6.10-nightly.
|
|
3
|
+
"version": "0.6.10-nightly.202504121606",
|
|
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.2.35",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.6.10-nightly.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.6.10-nightly.202504121606",
|
|
51
|
+
"@univerjs/core": "0.6.10-nightly.202504121606",
|
|
52
|
+
"@univerjs/sheets-ui": "0.6.10-nightly.202504121606",
|
|
53
|
+
"@univerjs/design": "0.6.10-nightly.202504121606",
|
|
54
|
+
"@univerjs/ui": "0.6.10-nightly.202504121606",
|
|
55
|
+
"@univerjs/sheets": "0.6.10-nightly.202504121606",
|
|
56
|
+
"@univerjs-pro/collaboration": "0.6.10-nightly.202504121606"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"react": "18.3.1",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"typescript": "^5.8.3",
|
|
63
63
|
"vite": "^6.2.6",
|
|
64
64
|
"vitest": "^3.1.1",
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs
|
|
65
|
+
"@univerjs-infra/shared": "0.6.10-alpha.0",
|
|
66
|
+
"@univerjs/protocol": "0.1.46-alpha.3"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"test": "vitest run",
|