@univerjs-pro/live-share 0.6.2 → 0.6.3-nightly.202503051607
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/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x3a192d=_0x4f91;(function(_0x5411fb,_0x26644e){var _0x1ecdb0=_0x4f91,_0x280724=_0x5411fb();while(!![]){try{var _0x36695d=parseInt(_0x1ecdb0(0x23a))/0x1*(parseInt(_0x1ecdb0(0x267))/0x2)+-parseInt(_0x1ecdb0(0x2a2))/0x3+parseInt(_0x1ecdb0(0x1b7))/0x4+-parseInt(_0x1ecdb0(0x1e8))/0x5+-parseInt(_0x1ecdb0(0x280))/0x6*(-parseInt(_0x1ecdb0(0x223))/0x7)+-parseInt(_0x1ecdb0(0x24e))/0x8+parseInt(_0x1ecdb0(0x21b))/0x9;if(_0x36695d===_0x26644e)break;else _0x280724['push'](_0x280724['shift']());}catch(_0x388771){_0x280724['push'](_0x280724['shift']());}}}(_0x103c,0xde3cc));var U=Object[_0x3a192d(0x285)],F=(_0x2ef2ed,_0x2fa3f8,_0xfa5479)=>_0x2fa3f8 in _0x2ef2ed?U(_0x2ef2ed,_0x2fa3f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfa5479}):_0x2ef2ed[_0x2fa3f8]=_0xfa5479,v=(_0x7b45cf,_0x54931e,_0x20f93a)=>F(_0x7b45cf,typeof _0x54931e!=_0x3a192d(0x213)?_0x54931e+'':_0x54931e,_0x20f93a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x3a192d(0x1c8)});const m=require(_0x3a192d(0x1f3)),o=require(_0x3a192d(0x1e6)),C=require(_0x3a192d(0x252)),D=require('@univerjs/sheets-ui'),p=require(_0x3a192d(0x287)),l=require(_0x3a192d(0x28f)),g=require(_0x3a192d(0x237)),f=require(_0x3a192d(0x204)),_=require(_0x3a192d(0x1db)),L=require(_0x3a192d(0x2a3)),b=require(_0x3a192d(0x255)),$=_0x3a192d(0x20a),x={};class E extends o[_0x3a192d(0x1f7)]{constructor(){var _0x295325=_0x3a192d;super(...arguments),v(this,_0x295325(0x1c5),new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x3e16b3){var _0xc324=_0x3a192d;return this[_0xc324(0x1c5)][_0xc324(0x28d)](_0x3e16b3),o[_0xc324(0x26b)](()=>this[_0xc324(0x1c5)][_0xc324(0x292)](_0x3e16b3));}['registerInitialStateReporter'](_0x26053e){var _0x16c402=_0x3a192d;return this[_0x16c402(0x1c7)]['add'](_0x26053e),o[_0x16c402(0x26b)](()=>this['_reporters'][_0x16c402(0x292)](_0x26053e));}[_0x3a192d(0x1ee)](_0x422524){var _0x1fcd26=_0x3a192d;return this[_0x1fcd26(0x1c5)][_0x1fcd26(0x228)](_0x422524);}[_0x3a192d(0x23b)](_0x2be3e6){var _0x3c1553=_0x3a192d;return Array[_0x3c1553(0x1d7)](this['_reporters'])[_0x3c1553(0x288)](_0x2d875e=>_0x2d875e(_0x2be3e6));}}var H=Object[_0x3a192d(0x211)],V=(_0x2565a1,_0x728c1c,_0xeb9027,_0x2411ac)=>{var _0xc9c1d=_0x3a192d;for(var _0x40dcf5=_0x2411ac>0x1?void 0x0:_0x2411ac?H(_0x728c1c,_0xeb9027):_0x728c1c,_0x1294cd=_0x2565a1[_0xc9c1d(0x22a)]-0x1,_0x443231;_0x1294cd>=0x0;_0x1294cd--)(_0x443231=_0x2565a1[_0x1294cd])&&(_0x40dcf5=_0x443231(_0x40dcf5)||_0x40dcf5);return _0x40dcf5;},k=(_0x251dfe,_0x35d6be)=>(_0xa7e35,_0x4ae885)=>_0x35d6be(_0xa7e35,_0x4ae885,_0x251dfe);let O=class extends o['Disposable']{constructor(_0x4bcdd9){var _0x66471c=_0x3a192d;super(),this[_0x66471c(0x234)]=_0x4bcdd9,this[_0x66471c(0x1de)]();}[_0x3a192d(0x1de)](){var _0x4c23db=_0x3a192d;[D['SetZoomRatioOperation']['id'],D[_0x4c23db(0x209)]['id'],C[_0x4c23db(0x296)]['id']][_0x4c23db(0x274)](_0x77d1f0=>{var _0x23c5d8=_0x4c23db;this[_0x23c5d8(0x242)](this[_0x23c5d8(0x234)][_0x23c5d8(0x29b)](_0x77d1f0));});}};function _0x4f91(_0x52a13c,_0x30b3ae){var _0x103c90=_0x103c();return _0x4f91=function(_0x4f9155,_0x43af35){_0x4f9155=_0x4f9155-0x1b3;var _0x44ea80=_0x103c90[_0x4f9155];return _0x44ea80;},_0x4f91(_0x52a13c,_0x30b3ae);}O=V([k(0x0,o[_0x3a192d(0x1bd)](E))],O);var u=function(){var _0x118b9a=_0x3a192d;return u=Object[_0x118b9a(0x27f)]||function(_0x491881){var _0x5907c9=_0x118b9a;for(var _0x3ecc6d,_0x42b97f=0x1,_0x541900=arguments['length'];_0x42b97f<_0x541900;_0x42b97f++){_0x3ecc6d=arguments[_0x42b97f];for(var _0x970b2b in _0x3ecc6d)Object[_0x5907c9(0x224)][_0x5907c9(0x22d)][_0x5907c9(0x1c3)](_0x3ecc6d,_0x970b2b)&&(_0x491881[_0x970b2b]=_0x3ecc6d[_0x970b2b]);}return _0x491881;},u['apply'](this,arguments);},M=function(_0x327285,_0x195ee6){var _0x3d3836=_0x3a192d,_0x58592c={};for(var _0x3ba8b9 in _0x327285)Object[_0x3d3836(0x224)][_0x3d3836(0x22d)][_0x3d3836(0x1c3)](_0x327285,_0x3ba8b9)&&_0x195ee6['indexOf'](_0x3ba8b9)<0x0&&(_0x58592c[_0x3ba8b9]=_0x327285[_0x3ba8b9]);if(_0x327285!=null&&typeof Object['getOwnPropertySymbols']==_0x3d3836(0x1c4)){for(var _0x517ecf=0x0,_0x3ba8b9=Object['getOwnPropertySymbols'](_0x327285);_0x517ecf<_0x3ba8b9[_0x3d3836(0x22a)];_0x517ecf++)_0x195ee6[_0x3d3836(0x226)](_0x3ba8b9[_0x517ecf])<0x0&&Object[_0x3d3836(0x224)][_0x3d3836(0x1e3)][_0x3d3836(0x1c3)](_0x327285,_0x3ba8b9[_0x517ecf])&&(_0x58592c[_0x3ba8b9[_0x517ecf]]=_0x327285[_0x3ba8b9[_0x517ecf]]);}return _0x58592c;},j=f[_0x3a192d(0x26f)](function(_0x4763ca,_0x1a0be8){var _0x5a2889=_0x3a192d,_0x4037ed=_0x4763ca[_0x5a2889(0x210)],_0x268ed2=_0x4763ca['id'],_0x368a8a=_0x4763ca[_0x5a2889(0x1d8)],_0x194d0f=_0x4763ca['extend'],_0x3d4c29=M(_0x4763ca,[_0x5a2889(0x210),'id','className',_0x5a2889(0x26a)]),_0x9c2660=_0x5a2889(0x26d)[_0x5a2889(0x21e)](_0x268ed2,'\x20')[_0x5a2889(0x21e)](_0x368a8a||'')['trim'](),_0x2e4a03=f[_0x5a2889(0x257)]('_'[_0x5a2889(0x21e)](G()));return y(_0x4037ed,''[_0x5a2889(0x21e)](_0x268ed2),{'defIds':_0x4037ed[_0x5a2889(0x231)],'idSuffix':_0x2e4a03[_0x5a2889(0x1fc)]},u({'ref':_0x1a0be8,'className':_0x9c2660},_0x3d4c29),_0x194d0f);});function y(_0x5d5455,_0x10aa61,_0x300a84,_0x2f893c,_0x576927){var _0x27f150=_0x3a192d;return f[_0x27f150(0x20e)](_0x5d5455[_0x27f150(0x253)],u(u({'key':_0x10aa61},q(_0x5d5455,_0x300a84,_0x576927)),_0x2f893c),(W(_0x5d5455,_0x300a84)['children']||[])['map'](function(_0x1d8d3e,_0x5ec4f2){var _0x18d8d0=_0x27f150;return y(_0x1d8d3e,''[_0x18d8d0(0x21e)](_0x10aa61,'-')[_0x18d8d0(0x21e)](_0x5d5455[_0x18d8d0(0x253)],'-')[_0x18d8d0(0x21e)](_0x5ec4f2),_0x300a84,void 0x0,_0x576927);}));}function q(_0x18b8fb,_0x19227e,_0xbde3d6){var _0xc8bf09=_0x3a192d,_0x17eb91=u({},_0x18b8fb[_0xc8bf09(0x27b)]);_0xbde3d6!=null&&_0xbde3d6[_0xc8bf09(0x221)]&&_0x17eb91[_0xc8bf09(0x1bb)]==='colorChannel1'&&(_0x17eb91[_0xc8bf09(0x1bb)]=_0xbde3d6[_0xc8bf09(0x221)]),_0x18b8fb['tag']==='mask'&&_0x17eb91['id']&&(_0x17eb91['id']=_0x17eb91['id']+_0x19227e['idSuffix']),Object[_0xc8bf09(0x1cc)](_0x17eb91)[_0xc8bf09(0x274)](function(_0x5a4909){var _0x413ae6=_0xc8bf09,_0x52b056=_0x5a4909[0x0],_0x3b5274=_0x5a4909[0x1];_0x52b056===_0x413ae6(0x276)&&typeof _0x3b5274==_0x413ae6(0x256)&&(_0x17eb91[_0x52b056]=_0x3b5274[_0x413ae6(0x1b5)](/url\(#(.*)\)/,_0x413ae6(0x1ff)['concat'](_0x19227e['idSuffix'],')')));});var _0x468da6=_0x19227e[_0xc8bf09(0x231)];return!_0x468da6||_0x468da6['length']===0x0||(_0x18b8fb[_0xc8bf09(0x253)]===_0xc8bf09(0x24d)&&_0x17eb91[_0xc8bf09(0x262)]&&(_0x17eb91['xlink:href']=_0x17eb91['xlink:href']+_0x19227e['idSuffix']),Object[_0xc8bf09(0x1cc)](_0x17eb91)['forEach'](function(_0x55149c){var _0x6f2a68=_0xc8bf09,_0x47ecd9=_0x55149c[0x0],_0x116326=_0x55149c[0x1];typeof _0x116326=='string'&&(_0x17eb91[_0x47ecd9]=_0x116326[_0x6f2a68(0x1b5)](/url\(#(.*)\)/,_0x6f2a68(0x1ff)[_0x6f2a68(0x21e)](_0x19227e[_0x6f2a68(0x225)],')')));})),_0x17eb91;}function W(_0x25276d,_0x4dc711){var _0x132056=_0x3a192d,_0x4d34d4,_0x2a620d=_0x4dc711['defIds'];return!_0x2a620d||_0x2a620d['length']===0x0?_0x25276d:_0x25276d[_0x132056(0x253)]===_0x132056(0x29c)&&(!((_0x4d34d4=_0x25276d[_0x132056(0x214)])===null||_0x4d34d4===void 0x0)&&_0x4d34d4['length'])?u(u({},_0x25276d),{'children':_0x25276d[_0x132056(0x214)][_0x132056(0x288)](function(_0x2691f2){var _0x1a4e71=_0x132056;return typeof _0x2691f2[_0x1a4e71(0x27b)]['id']==_0x1a4e71(0x256)&&_0x2a620d&&_0x2a620d[_0x1a4e71(0x226)](_0x2691f2[_0x1a4e71(0x27b)]['id'])>-0x1?u(u({},_0x2691f2),{'attrs':u(u({},_0x2691f2[_0x1a4e71(0x27b)]),{'id':_0x2691f2['attrs']['id']+_0x4dc711[_0x1a4e71(0x225)]})}):_0x2691f2;})}):_0x25276d;}function G(){var _0x23855e=_0x3a192d;return Math[_0x23855e(0x1c1)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x3a192d(0x208)]=_0x3a192d(0x21a);var B={'tag':_0x3a192d(0x1fb),'attrs':{'fill':_0x3a192d(0x1be),'viewBox':_0x3a192d(0x266),'width':_0x3a192d(0x205),'height':_0x3a192d(0x205)},'children':[{'tag':_0x3a192d(0x25d),'attrs':{'fill':_0x3a192d(0x28c),'d':_0x3a192d(0x20b)}},{'tag':_0x3a192d(0x25d),'attrs':{'fill':'currentColor','d':_0x3a192d(0x25f),'fillRule':'evenodd','clipRule':_0x3a192d(0x27e)}}]},P=f[_0x3a192d(0x26f)](function(_0x1ac32c,_0x1d169){var _0x2d46a9=_0x3a192d;return f[_0x2d46a9(0x20e)](j,Object['assign']({},_0x1ac32c,{'id':_0x2d46a9(0x263),'ref':_0x1d169,'icon':B}));});P[_0x3a192d(0x208)]='LiveShareSingle';var Y=Object[_0x3a192d(0x211)],R=(_0x57e197,_0x114d22,_0x3b6a70,_0x1360d7)=>{var _0x1230fe=_0x3a192d;for(var _0x4a8c40=_0x1360d7>0x1?void 0x0:_0x1360d7?Y(_0x114d22,_0x3b6a70):_0x114d22,_0x415e39=_0x57e197[_0x1230fe(0x22a)]-0x1,_0x22b62e;_0x415e39>=0x0;_0x415e39--)(_0x22b62e=_0x57e197[_0x415e39])&&(_0x4a8c40=_0x22b62e(_0x4a8c40)||_0x4a8c40);return _0x4a8c40;},S=(_0x309b6d,_0x3bcdff)=>(_0x21b62f,_0x4d1c28)=>_0x3bcdff(_0x21b62f,_0x4d1c28,_0x309b6d);exports['LiveShareController']=class extends o[_0x3a192d(0x220)]{constructor(_0x555f8c,_0x19bbb3,_0x184510){var _0x375316=_0x3a192d;super(),v(this,_0x375316(0x261),new Map()),(this[_0x375316(0x282)]=_0x555f8c,this['_injector']=_0x19bbb3,this[_0x375316(0x277)]=_0x184510,this[_0x375316(0x1de)]());}async['getLiveShareCoordinator'](_0x43de3c){var _0x1fd30a=_0x3a192d;return this[_0x1fd30a(0x261)][_0x1fd30a(0x228)](_0x43de3c)||await this[_0x1fd30a(0x249)](_0x43de3c),this[_0x1fd30a(0x261)][_0x1fd30a(0x29d)](_0x43de3c);}['_init'](){var _0x2e06c1=_0x3a192d;this[_0x2e06c1(0x282)][_0x2e06c1(0x229)](o[_0x2e06c1(0x23f)][_0x2e06c1(0x1d5)])[_0x2e06c1(0x273)](b['takeUntil'](this['dispose$']))[_0x2e06c1(0x283)](async _0x38fa22=>{var _0x5d65ee=_0x2e06c1;const _0x5eef6c=_0x38fa22[_0x5d65ee(0x22e)]();this[_0x5d65ee(0x261)][_0x5d65ee(0x228)](_0x5eef6c)||this[_0x5d65ee(0x249)](_0x5eef6c);}),this[_0x2e06c1(0x282)]['getTypeOfUnitDisposed$'](o[_0x2e06c1(0x23f)][_0x2e06c1(0x1d5)])[_0x2e06c1(0x273)](b['takeUntil'](this[_0x2e06c1(0x202)]))[_0x2e06c1(0x283)](_0x53d6b2=>{var _0x215f83=_0x2e06c1;const _0x203916=_0x53d6b2[_0x215f83(0x22e)](),_0x7637eb=this[_0x215f83(0x261)][_0x215f83(0x29d)](_0x203916);_0x7637eb==null||_0x7637eb[_0x215f83(0x1c2)]();});}async[_0x3a192d(0x249)](_0x4b9c9f){var _0x5c3822=_0x3a192d;const _0xa0a70b=await this[_0x5c3822(0x277)][_0x5c3822(0x295)](_0x4b9c9f),_0x16b668=this[_0x5c3822(0x1ce)]['createInstance'](exports[_0x5c3822(0x1ed)],_0x4b9c9f,_0xa0a70b);return _0x16b668[_0x5c3822(0x278)](),this[_0x5c3822(0x261)][_0x5c3822(0x239)](_0x4b9c9f,_0x16b668),_0x16b668;}},exports[_0x3a192d(0x23d)]=R([S(0x0,o[_0x3a192d(0x290)]),S(0x1,o[_0x3a192d(0x1bd)](o['Injector'])),S(0x2,o[_0x3a192d(0x1bd)](m[_0x3a192d(0x1e7)]))],exports[_0x3a192d(0x23d)]);var h=(_0x53259d=>(_0x53259d[_0x3a192d(0x286)]=_0x3a192d(0x1ea),_0x53259d[_0x3a192d(0x20c)]='idle',_0x53259d[_0x3a192d(0x272)]='following',_0x53259d[_0x3a192d(0x1bf)]=_0x3a192d(0x235),_0x53259d[_0x3a192d(0x22f)]=_0x3a192d(0x293),_0x53259d))(h||{});const z=_0x3a192d(0x1dc),Z=0xc8;exports[_0x3a192d(0x1ed)]=class extends o['RxDisposable']{constructor(_0x2fb964,_0x3e6558,_0x2eee6c,_0x4b7e6c,_0x4a490c){var _0x2a3853=_0x3a192d;super(),v(this,_0x2a3853(0x2a1),new L[(_0x2a3853(0x1da))](_0x2a3853(0x269))),v(this,_0x2a3853(0x291),this[_0x2a3853(0x2a1)][_0x2a3853(0x1b4)]()),v(this,'_init',!0x1),v(this,_0x2a3853(0x1dd),null),v(this,_0x2a3853(0x27d),null),(this[_0x2a3853(0x20f)]=_0x2fb964,this['_collabSession']=_0x3e6558,this[_0x2a3853(0x222)]=_0x2eee6c,this[_0x2a3853(0x234)]=_0x4b7e6c,this[_0x2a3853(0x1e1)]=_0x4a490c);}get[_0x3a192d(0x230)](){var _0x45d9ba=_0x3a192d;return this[_0x45d9ba(0x2a1)][_0x45d9ba(0x21f)]();}[_0x3a192d(0x1c2)](){var _0xa194d0=_0x3a192d,_0x8bf2a2;(_0x8bf2a2=this[_0xa194d0(0x1dd)])==null||_0x8bf2a2[_0xa194d0(0x1c2)](),this[_0xa194d0(0x2a1)][_0xa194d0(0x1e5)](_0xa194d0(0x269)),this['_status$']['complete']();}[_0x3a192d(0x278)](){var _0x4d3106=_0x3a192d;this['_init']||(this[_0x4d3106(0x1de)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4d3106(0x273)](b[_0x4d3106(0x215)](this[_0x4d3106(0x202)]))['subscribe'](_0xb842a6=>{var _0x3ca812=_0x4d3106;switch(_0xb842a6){case m[_0x3ca812(0x1b9)][_0x3ca812(0x286)]:this[_0x3ca812(0x1f5)]();break;case m[_0x3ca812(0x1b9)][_0x3ca812(0x254)]:this['_handleOnline']();break;}}),this[_0x4d3106(0x1d6)][_0x4d3106(0x1df)][_0x4d3106(0x273)](b['takeUntil'](this[_0x4d3106(0x202)]))[_0x4d3106(0x283)](_0x5d7242=>{var _0x40ea2e=_0x4d3106;const {eventID:_0x148f99}=_0x5d7242;switch(_0x148f99){case _['CollaborationEvent'][_0x40ea2e(0x1d2)]:this[_0x40ea2e(0x29e)](_0x5d7242);break;case _['CollaborationEvent'][_0x40ea2e(0x245)]:this[_0x40ea2e(0x251)](_0x5d7242);break;case _[_0x40ea2e(0x265)][_0x40ea2e(0x218)]:this[_0x40ea2e(0x203)]();break;case _[_0x40ea2e(0x265)][_0x40ea2e(0x207)]:this[_0x40ea2e(0x258)](_0x5d7242);break;}}));}[_0x3a192d(0x1b8)](){var _0xbbe822=_0x3a192d;this[_0xbbe822(0x1d6)][_0xbbe822(0x1cb)]({'eventID':_[_0xbbe822(0x265)][_0xbbe822(0x1b6)],'data':{'unitID':this[_0xbbe822(0x20f)],'userID':this[_0xbbe822(0x1d6)][_0xbbe822(0x2a0)]()}},this[_0xbbe822(0x20f)]);}[_0x3a192d(0x29f)](){var _0x26b4e0=_0x3a192d;this[_0x26b4e0(0x230)]===_0x26b4e0(0x293)&&(this[_0x26b4e0(0x2a1)]['next'](_0x26b4e0(0x269)),this[_0x26b4e0(0x1d6)][_0x26b4e0(0x1cb)]({'eventID':_[_0x26b4e0(0x265)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x26b4e0(0x20f)]}},this[_0x26b4e0(0x20f)]));}[_0x3a192d(0x206)](){var _0x46cd0b=_0x3a192d;this['_status']===_0x46cd0b(0x235)&&(this[_0x46cd0b(0x2a1)][_0x46cd0b(0x1e5)](_0x46cd0b(0x1ef)),this[_0x46cd0b(0x1cf)]());}[_0x3a192d(0x24b)](){var _0x2aae68=_0x3a192d;this[_0x2aae68(0x230)]===_0x2aae68(0x1ef)&&this['_stopFollowing']();}[_0x3a192d(0x29e)](_0x2c4d0b){var _0x4d5abd=_0x3a192d;const {presenter:_0x2e5c73}=_0x2c4d0b['data'],_0x507df4=this['_collabSession'][_0x4d5abd(0x2a0)]();this[_0x4d5abd(0x27d)]=_0x2e5c73,_0x2e5c73===_0x507df4?(this[_0x4d5abd(0x270)](),this[_0x4d5abd(0x297)]()):this[_0x4d5abd(0x230)]!==_0x4d5abd(0x235)&&(this['_stopPresenting'](),this[_0x4d5abd(0x1cf)]());}['_fetchOperations'](){var _0x528c68=_0x3a192d;const _0x4b672d={'eventID':_[_0x528c68(0x265)][_0x528c68(0x299)]};this['_collabSession'][_0x528c68(0x1cb)](_0x4b672d,this['_unitID']);}[_0x3a192d(0x203)](){var _0x3ca8c6=_0x3a192d;this[_0x3ca8c6(0x27d)]=null,this['_status']!==_0x3ca8c6(0x293)&&this['_beIdle']();}[_0x3a192d(0x258)](_0x3426cc){var _0x311ff3=_0x3a192d;if(this[_0x311ff3(0x230)]===_0x311ff3(0x1ef)&&this[_0x311ff3(0x27d)]===_0x3426cc['data'][_0x311ff3(0x236)]){const _0x117620=_[_0x311ff3(0x29a)](_0x3426cc['data'])[_0x311ff3(0x1f2)][_0x311ff3(0x1fd)]()[_0x311ff3(0x22c)](_0x174f82=>_0x174f82['id']===C[_0x311ff3(0x294)]['id']);if(_0x117620){const _0x2dc504=_0x117620['params'][_0x311ff3(0x1d0)],_0x24ffec=_0x117620['params'][_0x311ff3(0x1f6)]['id'];setTimeout(()=>{var _0x100f8d=_0x311ff3;this[_0x100f8d(0x1e1)][_0x100f8d(0x25c)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2dc504,'subUnitId':_0x24ffec},{'fromCollab':!0x0});});}}}[_0x3a192d(0x297)](){var _0x41db45=_0x3a192d;this[_0x41db45(0x2a1)][_0x41db45(0x1e5)](_0x41db45(0x293));const _0x58916d=new Map(),_0x5a2dee=this[_0x41db45(0x1dd)]=new o[(_0x41db45(0x260))]();_0x5a2dee[_0x41db45(0x28d)](o[_0x41db45(0x26b)](()=>{var _0x2f0800=_0x41db45;_0x58916d[_0x2f0800(0x274)](_0x4ccad1=>_0x4ccad1[_0x2f0800(0x24c)]()),_0x58916d[_0x2f0800(0x1d9)]();})),_0x5a2dee[_0x41db45(0x28d)](this[_0x41db45(0x1e1)][_0x41db45(0x271)](_0x508a0d=>{var _0x4f53be=_0x41db45,_0x853e40;if(_0x508a0d[_0x4f53be(0x217)]!==o[_0x4f53be(0x212)][_0x4f53be(0x20d)]||!this[_0x4f53be(0x234)][_0x4f53be(0x1ee)](_0x508a0d['id']))return;const {id:_0x28b9d5}=_0x508a0d;let _0x454bcf;_0x58916d[_0x4f53be(0x228)](_0x28b9d5)?_0x454bcf=_0x58916d[_0x4f53be(0x29d)](_0x28b9d5):(_0x454bcf=new L[(_0x4f53be(0x268))](),_0x58916d[_0x4f53be(0x239)](_0x28b9d5,_0x454bcf),_0x454bcf[_0x4f53be(0x273)](b['throttleTime']((_0x853e40=this['_configService'][_0x4f53be(0x281)](z))!=null?_0x853e40:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f53be(0x283)](_0xc1d288=>{var _0x599701=_0x4f53be;this['_collabSession'][_0x599701(0x1cb)]({'eventID':_[_0x599701(0x265)][_0x599701(0x245)],'data':{'unitID':this[_0x599701(0x20f)],'operations':{[_0xc1d288['id']]:{'id':_0xc1d288['id'],'params':JSON[_0x599701(0x25a)](_0xc1d288[_0x599701(0x23e)])}}}},this[_0x599701(0x20f)]);})),_0x454bcf[_0x4f53be(0x1e5)](_0x508a0d);})),this['_liveShareService'][_0x41db45(0x23b)](this['_unitID'])[_0x41db45(0x274)](_0x342779=>this[_0x41db45(0x1d6)]['send']({'eventID':_['CollaborationEvent'][_0x41db45(0x245)],'data':{'unitID':this[_0x41db45(0x20f)],'operations':{[_0x342779['id']]:{'id':_0x342779['id'],'params':JSON[_0x41db45(0x25a)](_0x342779[_0x41db45(0x23e)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5e0f67=_0x3a192d,_0x5a70fe;this[_0x5e0f67(0x2a1)][_0x5e0f67(0x1e5)](_0x5e0f67(0x269)),(_0x5a70fe=this['_commandDisposable'])==null||_0x5a70fe['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x4bab22=_0x3a192d,_0x5b3e93;(_0x5b3e93=this['_commandDisposable'])==null||_0x5b3e93[_0x4bab22(0x1c2)](),this[_0x4bab22(0x2a1)][_0x4bab22(0x1e5)](_0x4bab22(0x1ef));}[_0x3a192d(0x246)](){var _0x3d10c5=_0x3a192d,_0x5e86be;this[_0x3d10c5(0x2a1)][_0x3d10c5(0x1e5)](_0x3d10c5(0x269)),(_0x5e86be=this[_0x3d10c5(0x1dd)])==null||_0x5e86be['dispose'](),this['_commandDisposable']=null;}[_0x3a192d(0x270)](){var _0x3c69a9=_0x3a192d,_0x2cd326;this[_0x3c69a9(0x2a1)][_0x3c69a9(0x1e5)](_0x3c69a9(0x235)),(_0x2cd326=this[_0x3c69a9(0x1dd)])==null||_0x2cd326[_0x3c69a9(0x1c2)]();}['_handleOperation'](_0x546b56){var _0x13088d=_0x3a192d;if(['presenting',_0x13088d(0x235),_0x13088d(0x1ea)]['includes'](this['_status'])||!_0x546b56[_0x13088d(0x227)][_0x13088d(0x21c)]||_0x546b56[_0x13088d(0x227)]['presenter']===this['_collabSession'][_0x13088d(0x2a0)]())return;this[_0x13088d(0x230)]===_0x13088d(0x269)&&this[_0x13088d(0x1cf)]();const _0x4b0a5f=_0x546b56[_0x13088d(0x227)][_0x13088d(0x1c9)];Object['values'](_0x4b0a5f)[_0x13088d(0x274)](_0xcd01be=>{var _0x153b78=_0x13088d;this[_0x153b78(0x1e1)]['executeCommand'](_0xcd01be['id'],_0xcd01be[_0x153b78(0x23e)]?JSON['parse'](_0xcd01be[_0x153b78(0x23e)]):null,{'fromCollab':!0x0});});}[_0x3a192d(0x1f5)](){var _0x1566a4=_0x3a192d,_0x33c723;this['_status$']['next'](_0x1566a4(0x1ea)),(_0x33c723=this[_0x1566a4(0x1dd)])==null||_0x33c723[_0x1566a4(0x1c2)]();}[_0x3a192d(0x1e9)](){var _0x125420=_0x3a192d;this[_0x125420(0x2a1)][_0x125420(0x1e5)](_0x125420(0x269)),this[_0x125420(0x200)]();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o[_0x3a192d(0x1bd)](E)),S(0x4,o[_0x3a192d(0x26c)])],exports[_0x3a192d(0x1ed)]);function A(){var _0x18d538=_0x3a192d;const _0x278675=p[_0x18d538(0x22b)](exports[_0x18d538(0x23d)]),_0x39f023=p['useDependency'](o['IUniverInstanceService']),_0x36462a=p[_0x18d538(0x25e)](()=>_0x39f023[_0x18d538(0x28a)](o[_0x18d538(0x23f)][_0x18d538(0x1d5)]),void 0x0,!0x1,[]),[_0x2a8fef,_0x22bb43]=f[_0x18d538(0x24f)](null),[_0x220341,_0x18b06c]=f[_0x18d538(0x24f)](h[_0x18d538(0x20c)]),_0x43ba2d=f[_0x18d538(0x257)](null);return f['useEffect'](()=>(_0x36462a&&_0x278675[_0x18d538(0x27c)](_0x36462a['getUnitId']())[_0x18d538(0x1f4)](_0x3e0ad9=>{var _0x1e0aa5=_0x18d538;_0x22bb43(_0x3e0ad9),_0x43ba2d[_0x1e0aa5(0x1fc)]=_0x3e0ad9['status$']['subscribe'](_0x5636e7=>{_0x18b06c(_0x5636e7);});}),()=>{var _0x2b312d=_0x18d538,_0x76c617;(_0x76c617=_0x43ba2d[_0x2b312d(0x1fc)])==null||_0x76c617[_0x2b312d(0x27a)](),_0x43ba2d['current']=null;}),[_0x36462a,_0x278675]),_0x2a8fef?l[_0x18d538(0x241)](g[_0x18d538(0x259)],{'align':_0x18d538(0x1fa),'disabled':_0x220341===h[_0x18d538(0x286)],'className':_0x18d538(0x1cd),'overlay':l[_0x18d538(0x241)](J,{'status':_0x220341,'coordinator':_0x2a8fef}),'children':l[_0x18d538(0x241)]('button',{'className':g[_0x18d538(0x1c0)](_0x18d538(0x238),{'univer-cursor-not-allowed':_0x220341===h[_0x18d538(0x286)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x220341!==h[_0x18d538(0x286)]}),'type':_0x18d538(0x1b3),'children':l[_0x18d538(0x241)](P,{'className':_0x18d538(0x244)})})}):null;}function _0x103c(){var _0x233fdf=['useState','mergeOverrideWithDependencies','_handleOperation','@univerjs/sheets','tag','ONLINE','rxjs/operators','string','useRef','_handleNewChangeSets','Dropdown','stringify','registerComponent','executeCommand','path','useObservable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','DisposableCollection','_entities','xlink:href','live-share-single','default','CollaborationEvent','0\x200\x2017\x2017','166766bnrEBK','Subject','idle','extend','toDisposable','ICommandService','univerjs-icon\x20univerjs-icon-','Stop\x20following','forwardRef','_stopFollowing','onCommandExecuted','FOLLOWING','pipe','forEach','connectInjector','mask','_collabSessionService','init','Plugin','unsubscribe','attrs','getLiveShareCoordinator','_presenter','evenodd','assign','6fGnCJM','getConfig','_univerInstanceService','subscribe','You\x27re\x20presenting\x20the\x20document','defineProperty','OFFLINE','@univerjs/ui','map','override','getCurrentTypeOfUnit$','jsxs','currentColor','add','Present\x20this\x20document','react/jsx-runtime','IUniverInstanceService','status$','delete','presenting','InsertSheetMutation','requireSession','SetWorksheetActiveOperation','_startPresenting','_mountLiveShare','LIVESHARE_FETCH_OPERATIONS','parseProtocolChangeset','registerSharedOperation','defs','get','_handleNewHost','stopPresenting','getMemberID','_status$','3003738fZWMEj','rxjs','button','asObservable','replace','LIVESHARE_REQUEST_HOST','4441336VSXVFO','tryStartPresenting','SessionStatus','onStarting','fill','touchDependencies','Inject','none','NOT_FOLLOWING','clsx','random','dispose','call','function','_sharedOperations','merge','_reporters','Module','operations','You\x27re\x20not\x20following\x20the\x20presenter','send','entries','\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','_injector','_startFollowing','unitId','Injector','LIVESHARE_NEW_HOST','text','div','UNIVER_SHEET','_collabSession','from','className','clear','BehaviorSubject','@univerjs-pro/collaboration','SAME_OPERATION_SHARE_INTERVAL','_commandDisposable','_init','event$','_config','_commandService','_uiPartsService','propertyIsEnumerable','IUIPartsService','next','@univerjs/core','CollaborationSessionService','3836655PInKgI','_handleOnline','offline','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','LiveShareStatus','LiveShareCoordinator','shouldShareOperation','following','DesktopLiveShareController','You\x27re\x20following\x20the\x20presenter','mutations','@univerjs-pro/collaboration-client','then','_handleOffline','sheet','Disposable','UNIVER_UNKNOWN','Fragment','end','svg','current','reverse','Button','url(#$1','_fetchOperations','pluginName','dispose$','_handleTerminate','react','1em','startFollowing','NEW_CHANGESETS','displayName','SetScrollOperation','live-share.config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','IDLE','OPERATION','createElement','_unitID','icon','getOwnPropertyDescriptor','CommandType','symbol','children','takeUntil','UniverCollaborationClientPlugin','type','LIVESHARE_TERMINATE','UniverLiveSharePlugin','UniverIcon','6608151bAKeXX','presenter','Start\x20following','concat','getValue','RxDisposable','colorChannel1','_configService','5289767dKDvII','prototype','idSuffix','indexOf','data','has','getTypeOfUnitAdded$','length','useDependency','find','hasOwnProperty','getUnitId','PRESENTING','_status','defIds','small','DependentOn','_liveShareService','not-following','memberID','@univerjs/design','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','set','1UUWrJK','getInitialStates','HEADER_MENU','LiveShareController','params','UniverInstanceType','onRendered','jsx','disposeWithMe','Start','univer-size-4','LIVESHARE_OPERATION','_beIdle','LiveShare','You\x27are\x20offline.','_startLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','stopFollowing','complete','use','38208uiFOxh'];_0x103c=function(){return _0x233fdf;};return _0x103c();}function J(_0x5a7e5c){var _0x22fc06=_0x3a192d;const {status:_0x166387,coordinator:_0x1e483a}=_0x5a7e5c;switch(_0x166387){case h[_0x22fc06(0x20c)]:return l['jsx'](K,{'coordinator':_0x1e483a});case h['FOLLOWING']:return l[_0x22fc06(0x241)](Q,{'coordinator':_0x1e483a});case h[_0x22fc06(0x1bf)]:return l[_0x22fc06(0x241)](X,{'coordinator':_0x1e483a});case h[_0x22fc06(0x286)]:return l['jsx'](te,{});case h[_0x22fc06(0x22f)]:return l[_0x22fc06(0x241)](ee,{'coordinator':_0x1e483a});default:return null;}}function K(_0xf9788f){var _0xbd7046=_0x3a192d;const {coordinator:_0x3d1202}=_0xf9788f;return l[_0xbd7046(0x28b)](l[_0xbd7046(0x1f9)],{'children':[l[_0xbd7046(0x241)](_0xbd7046(0x1d4),{'className':_0xbd7046(0x1eb),'children':_0xbd7046(0x28e)}),l[_0xbd7046(0x241)](g['Button'],{'size':_0xbd7046(0x232),'type':_0xbd7046(0x264),'onClick':()=>_0x3d1202['tryStartPresenting'](),'children':_0xbd7046(0x243)})]});}function Q(_0xcc1eae){var _0x215846=_0x3a192d;const {coordinator:_0x56d873}=_0xcc1eae;return l[_0x215846(0x28b)](l[_0x215846(0x1f9)],{'children':[l['jsx'](_0x215846(0x1d4),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x215846(0x1f1)}),l['jsx'](g[_0x215846(0x1fe)],{'size':_0x215846(0x232),'type':'default','onClick':()=>_0x56d873['stopFollowing'](),'children':_0x215846(0x26e)})]});}function X(_0x3b9710){var _0x9fa2c4=_0x3a192d;const {coordinator:_0x322b91}=_0x3b9710;return l[_0x9fa2c4(0x28b)](l[_0x9fa2c4(0x1f9)],{'children':[l['jsx'](_0x9fa2c4(0x1d4),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x9fa2c4(0x1ca)}),l[_0x9fa2c4(0x241)](g[_0x9fa2c4(0x1fe)],{'size':'small','type':_0x9fa2c4(0x1d3),'onClick':()=>_0x322b91[_0x9fa2c4(0x206)](),'children':_0x9fa2c4(0x21d)})]});}function ee(_0x477789){var _0x5d95e6=_0x3a192d;const {coordinator:_0x1a06f6}=_0x477789;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x5d95e6(0x1d4),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5d95e6(0x284)}),l[_0x5d95e6(0x241)](g[_0x5d95e6(0x1fe)],{'size':_0x5d95e6(0x232),'type':_0x5d95e6(0x264),'onClick':()=>_0x1a06f6[_0x5d95e6(0x29f)](),'children':'Stop\x20presenting'})]});}function te(){var _0xea080=_0x3a192d;return l[_0xea080(0x241)](l[_0xea080(0x1f9)],{'children':_0xea080(0x248)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x38e978,_0x483f1f,_0x47d660,_0x4e4c15)=>{var _0x240832=_0x3a192d;for(var _0x56ea5b=_0x4e4c15>0x1?void 0x0:_0x4e4c15?ie(_0x483f1f,_0x47d660):_0x483f1f,_0x117e5f=_0x38e978[_0x240832(0x22a)]-0x1,_0x2c0873;_0x117e5f>=0x0;_0x117e5f--)(_0x2c0873=_0x38e978[_0x117e5f])&&(_0x56ea5b=_0x2c0873(_0x56ea5b)||_0x56ea5b);return _0x56ea5b;},N=(_0x561a1e,_0x24bc4e)=>(_0x11978f,_0x4c05c1)=>_0x24bc4e(_0x11978f,_0x4c05c1,_0x561a1e);exports[_0x3a192d(0x1f0)]=class extends o[_0x3a192d(0x1f7)]{constructor(_0x1d0645,_0x3dcbad){var _0x5bface=_0x3a192d;super(),this[_0x5bface(0x1ce)]=_0x1d0645,this['_uiPartsService']=_0x3dcbad,this[_0x5bface(0x298)]();}['_mountLiveShare'](){var _0x369a0b=_0x3a192d;this[_0x369a0b(0x242)](this[_0x369a0b(0x1e2)][_0x369a0b(0x25b)](p['BuiltInUIPart'][_0x369a0b(0x23c)],()=>p[_0x369a0b(0x275)](A,this[_0x369a0b(0x1ce)])));}},exports[_0x3a192d(0x1f0)]=ne([N(0x0,o[_0x3a192d(0x1bd)](o[_0x3a192d(0x1d1)])),N(0x1,p[_0x3a192d(0x1e4)])],exports[_0x3a192d(0x1f0)]);var re=Object[_0x3a192d(0x285)],se=Object[_0x3a192d(0x211)],oe=(_0x23f260,_0x4fd5f4,_0x14fb37)=>_0x4fd5f4 in _0x23f260?re(_0x23f260,_0x4fd5f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14fb37}):_0x23f260[_0x4fd5f4]=_0x14fb37,ae=(_0x48f6dd,_0x4fdc9b,_0x1da3a1,_0x47306d)=>{var _0x317275=_0x3a192d;for(var _0x4b4a53=_0x47306d>0x1?void 0x0:_0x47306d?se(_0x4fdc9b,_0x1da3a1):_0x4fdc9b,_0x5f17ec=_0x48f6dd[_0x317275(0x22a)]-0x1,_0x378bb6;_0x5f17ec>=0x0;_0x5f17ec--)(_0x378bb6=_0x48f6dd[_0x5f17ec])&&(_0x4b4a53=_0x378bb6(_0x4b4a53)||_0x4b4a53);return _0x4b4a53;},w=(_0x70bf72,_0x17d1cf)=>(_0x46f58b,_0xa4384c)=>_0x17d1cf(_0x46f58b,_0xa4384c,_0x70bf72),T=(_0x466748,_0x34133f,_0x34f1ab)=>oe(_0x466748,typeof _0x34133f!=_0x3a192d(0x213)?_0x34133f+'':_0x34133f,_0x34f1ab);const le=_0x3a192d(0x24a);exports[_0x3a192d(0x219)]=class extends o[_0x3a192d(0x279)]{constructor(_0xa42fe0=x,_0x3506e2,_0x3b73b1){var _0x39a9a7=_0x3a192d;super(),this[_0x39a9a7(0x1e0)]=_0xa42fe0,this[_0x39a9a7(0x1ce)]=_0x3506e2,this['_configService']=_0x3b73b1;const {..._0x356a95}=o[_0x39a9a7(0x1c6)]({},x,this[_0x39a9a7(0x1e0)]);this[_0x39a9a7(0x222)]['setConfig']($,_0x356a95);}[_0x3a192d(0x1ba)](){var _0x418658=_0x3a192d;o['registerDependencies'](this[_0x418658(0x1ce)],o[_0x418658(0x250)]([[E],[exports[_0x418658(0x23d)]],[O],[exports[_0x418658(0x1f0)]]],this[_0x418658(0x1e0)][_0x418658(0x289)])),o[_0x418658(0x1bc)](this['_injector'],[[O]]);}[_0x3a192d(0x240)](){var _0x1da864=_0x3a192d;o[_0x1da864(0x1bc)](this[_0x1da864(0x1ce)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x3a192d(0x219)],_0x3a192d(0x217),o[_0x3a192d(0x23f)][_0x3a192d(0x1f8)]),T(exports['UniverLiveSharePlugin'],_0x3a192d(0x201),le),exports[_0x3a192d(0x219)]=ae([o[_0x3a192d(0x233)](m[_0x3a192d(0x216)]),w(0x1,o[_0x3a192d(0x1bd)](o[_0x3a192d(0x1d1)])),w(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x3a192d(0x247)]=A,exports['LiveShareService']=E,exports[_0x3a192d(0x1ec)]=h;
|
|
1
|
+
'use strict';var _0x3166d8=_0x628e;(function(_0x536d0d,_0x16aee8){var _0x35e721=_0x628e,_0x1d7c10=_0x536d0d();while(!![]){try{var _0x4ab10e=parseInt(_0x35e721(0x24d))/0x1*(-parseInt(_0x35e721(0x268))/0x2)+parseInt(_0x35e721(0x1f8))/0x3+parseInt(_0x35e721(0x244))/0x4*(-parseInt(_0x35e721(0x1e5))/0x5)+parseInt(_0x35e721(0x207))/0x6+-parseInt(_0x35e721(0x1fb))/0x7*(parseInt(_0x35e721(0x1bf))/0x8)+-parseInt(_0x35e721(0x27f))/0x9*(parseInt(_0x35e721(0x1e8))/0xa)+parseInt(_0x35e721(0x1cf))/0xb;if(_0x4ab10e===_0x16aee8)break;else _0x1d7c10['push'](_0x1d7c10['shift']());}catch(_0x23c550){_0x1d7c10['push'](_0x1d7c10['shift']());}}}(_0x169d,0x27379));var U=Object[_0x3166d8(0x260)],F=(_0x94cd1c,_0x4c3ca9,_0x165c62)=>_0x4c3ca9 in _0x94cd1c?U(_0x94cd1c,_0x4c3ca9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x165c62}):_0x94cd1c[_0x4c3ca9]=_0x165c62,v=(_0x27bc70,_0x1226d1,_0x49e395)=>F(_0x27bc70,typeof _0x1226d1!='symbol'?_0x1226d1+'':_0x1226d1,_0x49e395);Object['defineProperty'](exports,Symbol[_0x3166d8(0x222)],{'value':'Module'});const m=require(_0x3166d8(0x1c9)),o=require(_0x3166d8(0x1f9)),C=require(_0x3166d8(0x22b)),D=require(_0x3166d8(0x253)),p=require(_0x3166d8(0x25b)),l=require('react/jsx-runtime'),g=require(_0x3166d8(0x1ce)),f=require(_0x3166d8(0x241)),_=require(_0x3166d8(0x287)),L=require(_0x3166d8(0x1e3)),b=require(_0x3166d8(0x21e)),$='live-share.config',x={};class E extends o[_0x3166d8(0x23d)]{constructor(){var _0x5404f5=_0x3166d8;super(...arguments),v(this,_0x5404f5(0x1e2),new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x529c74){var _0x3a71fc=_0x3166d8;return this['_sharedOperations'][_0x3a71fc(0x26d)](_0x529c74),o[_0x3a71fc(0x1e9)](()=>this[_0x3a71fc(0x1e2)][_0x3a71fc(0x23e)](_0x529c74));}[_0x3166d8(0x219)](_0x440ba6){var _0x19cf11=_0x3166d8;return this[_0x19cf11(0x282)][_0x19cf11(0x26d)](_0x440ba6),o[_0x19cf11(0x1e9)](()=>this[_0x19cf11(0x282)][_0x19cf11(0x23e)](_0x440ba6));}[_0x3166d8(0x28f)](_0x1e6cde){var _0x312dd9=_0x3166d8;return this[_0x312dd9(0x1e2)][_0x312dd9(0x210)](_0x1e6cde);}[_0x3166d8(0x1d2)](_0x2cfcf3){var _0xed70a8=_0x3166d8;return Array[_0xed70a8(0x266)](this['_reporters'])[_0xed70a8(0x1fa)](_0x345f31=>_0x345f31(_0x2cfcf3));}}var H=Object[_0x3166d8(0x278)],V=(_0x4502ea,_0x318e98,_0x19a70d,_0x283f0f)=>{var _0x26cbb1=_0x3166d8;for(var _0x2f9d4f=_0x283f0f>0x1?void 0x0:_0x283f0f?H(_0x318e98,_0x19a70d):_0x318e98,_0x3539bb=_0x4502ea[_0x26cbb1(0x273)]-0x1,_0x13e849;_0x3539bb>=0x0;_0x3539bb--)(_0x13e849=_0x4502ea[_0x3539bb])&&(_0x2f9d4f=_0x13e849(_0x2f9d4f)||_0x2f9d4f);return _0x2f9d4f;},k=(_0x5d79ab,_0x2a8bcc)=>(_0x42307f,_0x6b0e59)=>_0x2a8bcc(_0x42307f,_0x6b0e59,_0x5d79ab);let O=class extends o[_0x3166d8(0x23d)]{constructor(_0x328983){var _0x5ee1fa=_0x3166d8;super(),this[_0x5ee1fa(0x298)]=_0x328983,this[_0x5ee1fa(0x1ee)]();}[_0x3166d8(0x1ee)](){var _0x1c295d=_0x3166d8;[D[_0x1c295d(0x202)]['id'],D['SetScrollOperation']['id'],C[_0x1c295d(0x1b9)]['id']]['forEach'](_0x4a67ff=>{var _0x4da98f=_0x1c295d;this[_0x4da98f(0x26c)](this[_0x4da98f(0x298)]['registerSharedOperation'](_0x4a67ff));});}};O=V([k(0x0,o[_0x3166d8(0x22f)](E))],O);var u=function(){var _0x30fd0f=_0x3166d8;return u=Object['assign']||function(_0x32531d){var _0x98a4e0=_0x628e;for(var _0x5015d2,_0x5414d6=0x1,_0x57775e=arguments['length'];_0x5414d6<_0x57775e;_0x5414d6++){_0x5015d2=arguments[_0x5414d6];for(var _0x4136e5 in _0x5015d2)Object[_0x98a4e0(0x259)][_0x98a4e0(0x25e)]['call'](_0x5015d2,_0x4136e5)&&(_0x32531d[_0x4136e5]=_0x5015d2[_0x4136e5]);}return _0x32531d;},u[_0x30fd0f(0x247)](this,arguments);},M=function(_0x45ebe8,_0x18ebb8){var _0x47188c=_0x3166d8,_0x1eb504={};for(var _0x248014 in _0x45ebe8)Object['prototype'][_0x47188c(0x25e)][_0x47188c(0x274)](_0x45ebe8,_0x248014)&&_0x18ebb8[_0x47188c(0x21f)](_0x248014)<0x0&&(_0x1eb504[_0x248014]=_0x45ebe8[_0x248014]);if(_0x45ebe8!=null&&typeof Object[_0x47188c(0x235)]==_0x47188c(0x26f)){for(var _0x156021=0x0,_0x248014=Object[_0x47188c(0x235)](_0x45ebe8);_0x156021<_0x248014['length'];_0x156021++)_0x18ebb8[_0x47188c(0x21f)](_0x248014[_0x156021])<0x0&&Object[_0x47188c(0x259)]['propertyIsEnumerable'][_0x47188c(0x274)](_0x45ebe8,_0x248014[_0x156021])&&(_0x1eb504[_0x248014[_0x156021]]=_0x45ebe8[_0x248014[_0x156021]]);}return _0x1eb504;},j=f[_0x3166d8(0x1ff)](function(_0x31ab4f,_0x522b7d){var _0x4479cb=_0x3166d8,_0x31a6f5=_0x31ab4f['icon'],_0x29ff9f=_0x31ab4f['id'],_0x3000a9=_0x31ab4f[_0x4479cb(0x27b)],_0x113e2f=_0x31ab4f[_0x4479cb(0x22a)],_0xade0eb=M(_0x31ab4f,[_0x4479cb(0x26e),'id',_0x4479cb(0x27b),_0x4479cb(0x22a)]),_0x3a88df=_0x4479cb(0x1f1)[_0x4479cb(0x28b)](_0x29ff9f,'\x20')['concat'](_0x3000a9||'')[_0x4479cb(0x224)](),_0x3932f7=f[_0x4479cb(0x24c)]('_'[_0x4479cb(0x28b)](G()));return y(_0x31a6f5,''['concat'](_0x29ff9f),{'defIds':_0x31a6f5[_0x4479cb(0x21b)],'idSuffix':_0x3932f7[_0x4479cb(0x258)]},u({'ref':_0x522b7d,'className':_0x3a88df},_0xade0eb),_0x113e2f);});function y(_0x1bbaeb,_0x18771d,_0xa77c86,_0x3d5bbc,_0x2d8864){var _0x47838f=_0x3166d8;return f[_0x47838f(0x1be)](_0x1bbaeb[_0x47838f(0x28a)],u(u({'key':_0x18771d},q(_0x1bbaeb,_0xa77c86,_0x2d8864)),_0x3d5bbc),(W(_0x1bbaeb,_0xa77c86)[_0x47838f(0x201)]||[])[_0x47838f(0x1fa)](function(_0x48d4f5,_0x230350){var _0x5356d3=_0x47838f;return y(_0x48d4f5,''[_0x5356d3(0x28b)](_0x18771d,'-')[_0x5356d3(0x28b)](_0x1bbaeb[_0x5356d3(0x28a)],'-')[_0x5356d3(0x28b)](_0x230350),_0xa77c86,void 0x0,_0x2d8864);}));}function q(_0x13de17,_0x50e650,_0x1d18e5){var _0x119100=_0x3166d8,_0x25ede9=u({},_0x13de17['attrs']);_0x1d18e5!=null&&_0x1d18e5['colorChannel1']&&_0x25ede9[_0x119100(0x1bd)]==='colorChannel1'&&(_0x25ede9[_0x119100(0x1bd)]=_0x1d18e5[_0x119100(0x25c)]),_0x13de17[_0x119100(0x28a)]==='mask'&&_0x25ede9['id']&&(_0x25ede9['id']=_0x25ede9['id']+_0x50e650['idSuffix']),Object[_0x119100(0x1de)](_0x25ede9)['forEach'](function(_0x16dcd7){var _0x22a48f=_0x119100,_0x399a91=_0x16dcd7[0x0],_0x26e8b1=_0x16dcd7[0x1];_0x399a91===_0x22a48f(0x279)&&typeof _0x26e8b1=='string'&&(_0x25ede9[_0x399a91]=_0x26e8b1[_0x22a48f(0x29e)](/url\(#(.*)\)/,_0x22a48f(0x203)[_0x22a48f(0x28b)](_0x50e650['idSuffix'],')')));});var _0x5540cb=_0x50e650[_0x119100(0x21b)];return!_0x5540cb||_0x5540cb[_0x119100(0x273)]===0x0||(_0x13de17[_0x119100(0x28a)]===_0x119100(0x1d5)&&_0x25ede9[_0x119100(0x2a3)]&&(_0x25ede9['xlink:href']=_0x25ede9[_0x119100(0x2a3)]+_0x50e650['idSuffix']),Object['entries'](_0x25ede9)[_0x119100(0x1c5)](function(_0xec19a2){var _0x3de762=_0x119100,_0x1c2a17=_0xec19a2[0x0],_0x3c0a6a=_0xec19a2[0x1];typeof _0x3c0a6a=='string'&&(_0x25ede9[_0x1c2a17]=_0x3c0a6a[_0x3de762(0x29e)](/url\(#(.*)\)/,'url(#$1'[_0x3de762(0x28b)](_0x50e650[_0x3de762(0x293)],')')));})),_0x25ede9;}function W(_0x5474f8,_0x385807){var _0x1beee3=_0x3166d8,_0x3b78d2,_0x15ff7d=_0x385807[_0x1beee3(0x21b)];return!_0x15ff7d||_0x15ff7d[_0x1beee3(0x273)]===0x0?_0x5474f8:_0x5474f8[_0x1beee3(0x28a)]===_0x1beee3(0x1f7)&&(!((_0x3b78d2=_0x5474f8['children'])===null||_0x3b78d2===void 0x0)&&_0x3b78d2['length'])?u(u({},_0x5474f8),{'children':_0x5474f8[_0x1beee3(0x201)][_0x1beee3(0x1fa)](function(_0x4bbd63){var _0x558190=_0x1beee3;return typeof _0x4bbd63[_0x558190(0x1f3)]['id']==_0x558190(0x1d1)&&_0x15ff7d&&_0x15ff7d[_0x558190(0x21f)](_0x4bbd63[_0x558190(0x1f3)]['id'])>-0x1?u(u({},_0x4bbd63),{'attrs':u(u({},_0x4bbd63[_0x558190(0x1f3)]),{'id':_0x4bbd63[_0x558190(0x1f3)]['id']+_0x385807[_0x558190(0x293)]})}):_0x4bbd63;})}):_0x5474f8;}function G(){var _0x215845=_0x3166d8;return Math[_0x215845(0x237)]()['toString'](0x24)[_0x215845(0x217)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3166d8(0x223),'width':'1em','height':_0x3166d8(0x285)},'children':[{'tag':_0x3166d8(0x281),'attrs':{'fill':_0x3166d8(0x296),'d':_0x3166d8(0x238)}},{'tag':_0x3166d8(0x281),'attrs':{'fill':_0x3166d8(0x296),'d':_0x3166d8(0x28c),'fillRule':_0x3166d8(0x1d0),'clipRule':_0x3166d8(0x1d0)}}]},P=f[_0x3166d8(0x1ff)](function(_0x5da593,_0x5a1ec5){var _0x3bf176=_0x3166d8;return f['createElement'](j,Object[_0x3bf176(0x1bb)]({},_0x5da593,{'id':_0x3bf176(0x294),'ref':_0x5a1ec5,'icon':B}));});P[_0x3166d8(0x1e7)]=_0x3166d8(0x1c4);var Y=Object[_0x3166d8(0x278)],R=(_0x4e0a08,_0x3d1a88,_0x41a431,_0x25c3b0)=>{var _0x1796b5=_0x3166d8;for(var _0x434ce4=_0x25c3b0>0x1?void 0x0:_0x25c3b0?Y(_0x3d1a88,_0x41a431):_0x3d1a88,_0x36c727=_0x4e0a08[_0x1796b5(0x273)]-0x1,_0x42b42a;_0x36c727>=0x0;_0x36c727--)(_0x42b42a=_0x4e0a08[_0x36c727])&&(_0x434ce4=_0x42b42a(_0x434ce4)||_0x434ce4);return _0x434ce4;},S=(_0x4f18fa,_0x5c8a7d)=>(_0x298195,_0x52ad25)=>_0x5c8a7d(_0x298195,_0x52ad25,_0x4f18fa);exports[_0x3166d8(0x1f6)]=class extends o[_0x3166d8(0x1eb)]{constructor(_0x1a4566,_0x3146dd,_0x56adfe){var _0x50e18b=_0x3166d8;super(),v(this,_0x50e18b(0x231),new Map()),(this[_0x50e18b(0x228)]=_0x1a4566,this[_0x50e18b(0x1c2)]=_0x3146dd,this[_0x50e18b(0x254)]=_0x56adfe,this['_init']());}async[_0x3166d8(0x1db)](_0x29cdb2){var _0x431fa6=_0x3166d8;return this[_0x431fa6(0x231)][_0x431fa6(0x210)](_0x29cdb2)||await this['_startLiveShareCoordinator'](_0x29cdb2),this['_entities']['get'](_0x29cdb2);}[_0x3166d8(0x1ee)](){var _0x5e3402=_0x3166d8;this[_0x5e3402(0x228)]['getTypeOfUnitAdded$'](o[_0x5e3402(0x239)]['UNIVER_SHEET'])[_0x5e3402(0x1d4)](b[_0x5e3402(0x270)](this[_0x5e3402(0x265)]))['subscribe'](async _0x1a6d01=>{var _0x96842f=_0x5e3402;const _0x4dc2d1=_0x1a6d01['getUnitId']();this[_0x96842f(0x231)][_0x96842f(0x210)](_0x4dc2d1)||this[_0x96842f(0x1e6)](_0x4dc2d1);}),this[_0x5e3402(0x228)]['getTypeOfUnitDisposed$'](o[_0x5e3402(0x239)]['UNIVER_SHEET'])[_0x5e3402(0x1d4)](b[_0x5e3402(0x270)](this[_0x5e3402(0x265)]))[_0x5e3402(0x26b)](_0x1b8242=>{var _0x46dfca=_0x5e3402;const _0x4ccfee=_0x1b8242['getUnitId'](),_0x403d47=this[_0x46dfca(0x231)][_0x46dfca(0x292)](_0x4ccfee);_0x403d47==null||_0x403d47['dispose']();});}async[_0x3166d8(0x1e6)](_0xfc013d){var _0x2d83de=_0x3166d8;const _0xe0408e=await this['_collabSessionService'][_0x2d83de(0x251)](_0xfc013d),_0x45be75=this[_0x2d83de(0x1c2)][_0x2d83de(0x28d)](exports[_0x2d83de(0x1e4)],_0xfc013d,_0xe0408e);return _0x45be75[_0x2d83de(0x27e)](),this[_0x2d83de(0x231)][_0x2d83de(0x262)](_0xfc013d,_0x45be75),_0x45be75;}},exports[_0x3166d8(0x1f6)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x3166d8(0x22f)](o['Injector'])),S(0x2,o[_0x3166d8(0x22f)](m[_0x3166d8(0x261)]))],exports['LiveShareController']);var h=(_0x20ec69=>(_0x20ec69[_0x3166d8(0x280)]=_0x3166d8(0x29d),_0x20ec69[_0x3166d8(0x20d)]=_0x3166d8(0x24a),_0x20ec69['FOLLOWING']=_0x3166d8(0x29c),_0x20ec69[_0x3166d8(0x245)]='not-following',_0x20ec69[_0x3166d8(0x20c)]='presenting',_0x20ec69))(h||{});function _0x628e(_0x51e651,_0x3951e6){var _0x169df7=_0x169d();return _0x628e=function(_0x628e85,_0x459f38){_0x628e85=_0x628e85-0x1b9;var _0x52d795=_0x169df7[_0x628e85];return _0x52d795;},_0x628e(_0x51e651,_0x3951e6);}const z=_0x3166d8(0x263),Z=0xc8;exports[_0x3166d8(0x1e4)]=class extends o[_0x3166d8(0x1eb)]{constructor(_0x62df54,_0x46bad3,_0x4d4a67,_0x456f56,_0x21955d){var _0x1067ec=_0x3166d8;super(),v(this,_0x1067ec(0x22c),new L[(_0x1067ec(0x271))](_0x1067ec(0x24a))),v(this,_0x1067ec(0x243),this['_status$'][_0x1067ec(0x22d)]()),v(this,'_init',!0x1),v(this,_0x1067ec(0x255),null),v(this,_0x1067ec(0x288),null),(this[_0x1067ec(0x1ec)]=_0x62df54,this[_0x1067ec(0x1ea)]=_0x46bad3,this[_0x1067ec(0x1fc)]=_0x4d4a67,this['_liveShareService']=_0x456f56,this[_0x1067ec(0x27a)]=_0x21955d);}get[_0x3166d8(0x1fd)](){var _0x2e7cd3=_0x3166d8;return this[_0x2e7cd3(0x22c)][_0x2e7cd3(0x2a0)]();}[_0x3166d8(0x221)](){var _0x113cdc=_0x3166d8,_0x39bad9;(_0x39bad9=this['_commandDisposable'])==null||_0x39bad9['dispose'](),this[_0x113cdc(0x22c)][_0x113cdc(0x1c6)](_0x113cdc(0x24a)),this[_0x113cdc(0x22c)][_0x113cdc(0x227)]();}['init'](){var _0x538ca3=_0x3166d8;this[_0x538ca3(0x1ee)]||(this[_0x538ca3(0x1ee)]=!0x0,this[_0x538ca3(0x1ea)][_0x538ca3(0x1d3)][_0x538ca3(0x1d4)](b[_0x538ca3(0x270)](this[_0x538ca3(0x265)]))[_0x538ca3(0x26b)](_0x1fb0a4=>{var _0x10fdfd=_0x538ca3;switch(_0x1fb0a4){case m['SessionStatus']['OFFLINE']:this[_0x10fdfd(0x1cd)]();break;case m[_0x10fdfd(0x26a)]['ONLINE']:this[_0x10fdfd(0x29b)]();break;}}),this[_0x538ca3(0x1ea)][_0x538ca3(0x20b)][_0x538ca3(0x1d4)](b[_0x538ca3(0x270)](this[_0x538ca3(0x265)]))['subscribe'](_0x1cbcb5=>{var _0x59d94f=_0x538ca3;const {eventID:_0x5cfa3a}=_0x1cbcb5;switch(_0x5cfa3a){case _[_0x59d94f(0x29f)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1cbcb5);break;case _[_0x59d94f(0x29f)][_0x59d94f(0x240)]:this[_0x59d94f(0x23b)](_0x1cbcb5);break;case _[_0x59d94f(0x29f)][_0x59d94f(0x1cb)]:this[_0x59d94f(0x1d6)]();break;case _[_0x59d94f(0x29f)][_0x59d94f(0x24e)]:this['_handleNewChangeSets'](_0x1cbcb5);break;}}));}['tryStartPresenting'](){var _0x5a2e32=_0x3166d8;this[_0x5a2e32(0x1ea)][_0x5a2e32(0x1c8)]({'eventID':_[_0x5a2e32(0x29f)][_0x5a2e32(0x216)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a2e32(0x1dd)]()}},this['_unitID']);}['stopPresenting'](){var _0x47bc71=_0x3166d8;this[_0x47bc71(0x1fd)]===_0x47bc71(0x275)&&(this[_0x47bc71(0x22c)]['next'](_0x47bc71(0x24a)),this[_0x47bc71(0x1ea)][_0x47bc71(0x1c8)]({'eventID':_['CollaborationEvent'][_0x47bc71(0x1cb)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3166d8(0x212)](){var _0x3c453d=_0x3166d8;this[_0x3c453d(0x1fd)]==='not-following'&&(this[_0x3c453d(0x22c)][_0x3c453d(0x1c6)]('following'),this[_0x3c453d(0x220)]());}[_0x3166d8(0x1fe)](){var _0xe6d000=_0x3166d8;this[_0xe6d000(0x1fd)]===_0xe6d000(0x29c)&&this[_0xe6d000(0x20f)]();}[_0x3166d8(0x1ca)](_0x4ae919){var _0x213291=_0x3166d8;const {presenter:_0x435965}=_0x4ae919['data'],_0x5daea1=this[_0x213291(0x1ea)][_0x213291(0x1dd)]();this[_0x213291(0x288)]=_0x435965,_0x435965===_0x5daea1?(this[_0x213291(0x20f)](),this['_startPresenting']()):this[_0x213291(0x1fd)]!==_0x213291(0x205)&&(this[_0x213291(0x290)](),this[_0x213291(0x220)]());}['_fetchOperations'](){var _0x271ac9=_0x3166d8;const _0x8ec0b1={'eventID':_[_0x271ac9(0x29f)][_0x271ac9(0x1df)]};this['_collabSession']['send'](_0x8ec0b1,this[_0x271ac9(0x1ec)]);}[_0x3166d8(0x1d6)](){var _0x4f5905=_0x3166d8;this[_0x4f5905(0x288)]=null,this[_0x4f5905(0x1fd)]!=='presenting'&&this[_0x4f5905(0x1bc)]();}[_0x3166d8(0x269)](_0x267e77){var _0x442878=_0x3166d8;if(this['_status']===_0x442878(0x29c)&&this[_0x442878(0x288)]===_0x267e77[_0x442878(0x211)]['memberID']){const _0xf01283=_['parseProtocolChangeset'](_0x267e77[_0x442878(0x211)])[_0x442878(0x24f)][_0x442878(0x1dc)]()[_0x442878(0x257)](_0x4d07e2=>_0x4d07e2['id']===C[_0x442878(0x2a2)]['id']);if(_0xf01283){const _0x3ef2c8=_0xf01283[_0x442878(0x232)][_0x442878(0x1f0)],_0x40b8a6=_0xf01283[_0x442878(0x232)]['sheet']['id'];setTimeout(()=>{var _0x154d19=_0x442878;this[_0x154d19(0x27a)][_0x154d19(0x225)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3ef2c8,'subUnitId':_0x40b8a6},{'fromCollab':!0x0});});}}}[_0x3166d8(0x226)](){var _0x503788=_0x3166d8;this['_status$'][_0x503788(0x1c6)](_0x503788(0x275));const _0x1312d8=new Map(),_0x2dd272=this[_0x503788(0x255)]=new o[(_0x503788(0x276))]();_0x2dd272['add'](o['toDisposable'](()=>{var _0x4a361f=_0x503788;_0x1312d8[_0x4a361f(0x1c5)](_0x3cbcb1=>_0x3cbcb1[_0x4a361f(0x227)]()),_0x1312d8[_0x4a361f(0x21c)]();})),_0x2dd272[_0x503788(0x26d)](this['_commandService'][_0x503788(0x1ed)](_0xc31ba5=>{var _0x5e3ea2=_0x503788,_0x26f8d3;if(_0xc31ba5['type']!==o['CommandType'][_0x5e3ea2(0x264)]||!this['_liveShareService']['shouldShareOperation'](_0xc31ba5['id']))return;const {id:_0xad046b}=_0xc31ba5;let _0x46f00c;_0x1312d8['has'](_0xad046b)?_0x46f00c=_0x1312d8[_0x5e3ea2(0x292)](_0xad046b):(_0x46f00c=new L[(_0x5e3ea2(0x28e))](),_0x1312d8[_0x5e3ea2(0x262)](_0xad046b,_0x46f00c),_0x46f00c[_0x5e3ea2(0x1d4)](b['throttleTime']((_0x26f8d3=this[_0x5e3ea2(0x1fc)][_0x5e3ea2(0x214)](z))!=null?_0x26f8d3:Z,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e3ea2(0x26b)](_0x40482f=>{var _0x5c7ae1=_0x5e3ea2;this['_collabSession']['send']({'eventID':_[_0x5c7ae1(0x29f)][_0x5c7ae1(0x240)],'data':{'unitID':this[_0x5c7ae1(0x1ec)],'operations':{[_0x40482f['id']]:{'id':_0x40482f['id'],'params':JSON['stringify'](_0x40482f[_0x5c7ae1(0x232)])}}}},this[_0x5c7ae1(0x1ec)]);})),_0x46f00c['next'](_0xc31ba5);})),this[_0x503788(0x298)][_0x503788(0x1d2)](this[_0x503788(0x1ec)])[_0x503788(0x1c5)](_0xb2143f=>this[_0x503788(0x1ea)][_0x503788(0x1c8)]({'eventID':_[_0x503788(0x29f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xb2143f['id']]:{'id':_0xb2143f['id'],'params':JSON['stringify'](_0xb2143f[_0x503788(0x232)])}}}},this[_0x503788(0x1ec)]));}[_0x3166d8(0x290)](){var _0xcc04bb=_0x3166d8,_0x19ded0;this['_status$'][_0xcc04bb(0x1c6)](_0xcc04bb(0x24a)),(_0x19ded0=this['_commandDisposable'])==null||_0x19ded0[_0xcc04bb(0x221)](),this[_0xcc04bb(0x255)]=null;}[_0x3166d8(0x220)](){var _0x400d9b=_0x3166d8,_0x4835fe;(_0x4835fe=this['_commandDisposable'])==null||_0x4835fe[_0x400d9b(0x221)](),this[_0x400d9b(0x22c)][_0x400d9b(0x1c6)]('following');}[_0x3166d8(0x1bc)](){var _0x276303=_0x3166d8,_0x4e77d7;this[_0x276303(0x22c)]['next'](_0x276303(0x24a)),(_0x4e77d7=this[_0x276303(0x255)])==null||_0x4e77d7['dispose'](),this[_0x276303(0x255)]=null;}['_stopFollowing'](){var _0x1d05c2=_0x3166d8,_0x51b4a0;this['_status$'][_0x1d05c2(0x1c6)](_0x1d05c2(0x205)),(_0x51b4a0=this[_0x1d05c2(0x255)])==null||_0x51b4a0[_0x1d05c2(0x221)]();}[_0x3166d8(0x23b)](_0x1f882d){var _0x2119bc=_0x3166d8;if(['presenting',_0x2119bc(0x205),_0x2119bc(0x29d)][_0x2119bc(0x233)](this['_status'])||!_0x1f882d['data']['presenter']||_0x1f882d[_0x2119bc(0x211)][_0x2119bc(0x250)]===this[_0x2119bc(0x1ea)]['getMemberID']())return;this[_0x2119bc(0x1fd)]==='idle'&&this[_0x2119bc(0x220)]();const _0x588b73=_0x1f882d[_0x2119bc(0x211)]['operations'];Object[_0x2119bc(0x213)](_0x588b73)['forEach'](_0x1a7ebf=>{var _0x2e11b8=_0x2119bc;this[_0x2e11b8(0x27a)]['executeCommand'](_0x1a7ebf['id'],_0x1a7ebf[_0x2e11b8(0x232)]?JSON[_0x2e11b8(0x1ba)](_0x1a7ebf[_0x2e11b8(0x232)]):null,{'fromCollab':!0x0});});}[_0x3166d8(0x1cd)](){var _0x36907e=_0x3166d8,_0x196e43;this[_0x36907e(0x22c)][_0x36907e(0x1c6)](_0x36907e(0x29d)),(_0x196e43=this[_0x36907e(0x255)])==null||_0x196e43[_0x36907e(0x221)]();}[_0x3166d8(0x29b)](){var _0x5bf698=_0x3166d8;this[_0x5bf698(0x22c)]['next'](_0x5bf698(0x24a)),this[_0x5bf698(0x297)]();}},exports[_0x3166d8(0x1e4)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x3166d8(0x22f)](E)),S(0x4,o[_0x3166d8(0x24b)])],exports[_0x3166d8(0x1e4)]);function A(){var _0x32f48e=_0x3166d8;const _0x2572be=p[_0x32f48e(0x23f)](exports['LiveShareController']),_0x5e9aa1=p[_0x32f48e(0x23f)](o['IUniverInstanceService']),_0x258e0a=p['useObservable'](()=>_0x5e9aa1[_0x32f48e(0x2a4)](o[_0x32f48e(0x239)][_0x32f48e(0x283)]),void 0x0,!0x1,[]),[_0x40df6c,_0x19a0c2]=f['useState'](null),[_0x410f4f,_0x17a8e7]=f[_0x32f48e(0x25d)](h[_0x32f48e(0x20d)]),_0x2e2349=f[_0x32f48e(0x24c)](null);return f[_0x32f48e(0x204)](()=>(_0x258e0a&&_0x2572be[_0x32f48e(0x1db)](_0x258e0a[_0x32f48e(0x1da)]())['then'](_0x459437=>{var _0x539ed0=_0x32f48e;_0x19a0c2(_0x459437),_0x2e2349['current']=_0x459437[_0x539ed0(0x243)][_0x539ed0(0x26b)](_0x5d7a23=>{_0x17a8e7(_0x5d7a23);});}),()=>{var _0x50a4fd=_0x32f48e,_0x3962a0;(_0x3962a0=_0x2e2349['current'])==null||_0x3962a0['unsubscribe'](),_0x2e2349[_0x50a4fd(0x258)]=null;}),[_0x258e0a,_0x2572be]),_0x40df6c?l[_0x32f48e(0x289)](g[_0x32f48e(0x1f5)],{'align':_0x32f48e(0x20a),'disabled':_0x410f4f===h['OFFLINE'],'className':_0x32f48e(0x1ef),'overlay':l[_0x32f48e(0x289)](J,{'status':_0x410f4f,'coordinator':_0x40df6c}),'children':l[_0x32f48e(0x289)](_0x32f48e(0x215),{'className':g[_0x32f48e(0x1d7)](_0x32f48e(0x1cc),{'univer-cursor-not-allowed':_0x410f4f===h[_0x32f48e(0x280)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x410f4f!==h[_0x32f48e(0x280)]}),'type':_0x32f48e(0x215),'children':l['jsx'](P,{'className':_0x32f48e(0x272)})})}):null;}function J(_0x3b8b29){var _0x53d55c=_0x3166d8;const {status:_0x42ba1e,coordinator:_0x169f8f}=_0x3b8b29;switch(_0x42ba1e){case h[_0x53d55c(0x20d)]:return l[_0x53d55c(0x289)](K,{'coordinator':_0x169f8f});case h[_0x53d55c(0x23c)]:return l[_0x53d55c(0x289)](Q,{'coordinator':_0x169f8f});case h[_0x53d55c(0x245)]:return l['jsx'](X,{'coordinator':_0x169f8f});case h[_0x53d55c(0x280)]:return l[_0x53d55c(0x289)](te,{});case h[_0x53d55c(0x20c)]:return l[_0x53d55c(0x289)](ee,{'coordinator':_0x169f8f});default:return null;}}function K(_0x42bdc5){var _0x460af1=_0x3166d8;const {coordinator:_0x3c0654}=_0x42bdc5;return l[_0x460af1(0x1c7)](l[_0x460af1(0x1f4)],{'children':[l[_0x460af1(0x289)](_0x460af1(0x25a),{'className':_0x460af1(0x234),'children':_0x460af1(0x236)}),l['jsx'](g['Button'],{'size':_0x460af1(0x1e0),'type':_0x460af1(0x284),'onClick':()=>_0x3c0654[_0x460af1(0x25f)](),'children':'Start'})]});}function Q(_0x47b753){var _0x4e4046=_0x3166d8;const {coordinator:_0x2103cc}=_0x47b753;return l[_0x4e4046(0x1c7)](l[_0x4e4046(0x1f4)],{'children':[l[_0x4e4046(0x289)](_0x4e4046(0x25a),{'className':_0x4e4046(0x234),'children':_0x4e4046(0x21d)}),l[_0x4e4046(0x289)](g[_0x4e4046(0x208)],{'size':_0x4e4046(0x1e0),'type':_0x4e4046(0x284),'onClick':()=>_0x2103cc['stopFollowing'](),'children':_0x4e4046(0x27d)})]});}function X(_0x25d407){var _0x5670c7=_0x3166d8;const {coordinator:_0x584100}=_0x25d407;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x5670c7(0x25a),{'className':_0x5670c7(0x234),'children':_0x5670c7(0x267)}),l[_0x5670c7(0x289)](g[_0x5670c7(0x208)],{'size':_0x5670c7(0x1e0),'type':_0x5670c7(0x229),'onClick':()=>_0x584100['startFollowing'](),'children':_0x5670c7(0x1c1)})]});}function ee(_0x207876){var _0x15822f=_0x3166d8;const {coordinator:_0x6062e1}=_0x207876;return l[_0x15822f(0x1c7)](l[_0x15822f(0x1f4)],{'children':[l[_0x15822f(0x289)]('div',{'className':_0x15822f(0x234),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x15822f(0x208)],{'size':_0x15822f(0x1e0),'type':_0x15822f(0x284),'onClick':()=>_0x6062e1[_0x15822f(0x200)](),'children':'Stop\x20presenting'})]});}function te(){var _0x4e6501=_0x3166d8;return l['jsx'](l[_0x4e6501(0x1f4)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x3166d8(0x278)],ne=(_0x399398,_0x120431,_0x43c1c9,_0x5370e5)=>{for(var _0x11b982=_0x5370e5>0x1?void 0x0:_0x5370e5?ie(_0x120431,_0x43c1c9):_0x120431,_0x57a8e6=_0x399398['length']-0x1,_0x450a89;_0x57a8e6>=0x0;_0x57a8e6--)(_0x450a89=_0x399398[_0x57a8e6])&&(_0x11b982=_0x450a89(_0x11b982)||_0x11b982);return _0x11b982;},N=(_0x5badf6,_0x3f7fe6)=>(_0x30a65f,_0x594c9b)=>_0x3f7fe6(_0x30a65f,_0x594c9b,_0x5badf6);exports[_0x3166d8(0x2a1)]=class extends o[_0x3166d8(0x23d)]{constructor(_0x139d20,_0x460602){var _0x2a3c62=_0x3166d8;super(),this[_0x2a3c62(0x1c2)]=_0x139d20,this[_0x2a3c62(0x23a)]=_0x460602,this['_mountLiveShare']();}[_0x3166d8(0x22e)](){var _0x3d2b1e=_0x3166d8;this[_0x3d2b1e(0x26c)](this[_0x3d2b1e(0x23a)][_0x3d2b1e(0x256)](p['BuiltInUIPart'][_0x3d2b1e(0x21a)],()=>p[_0x3d2b1e(0x1e1)](A,this[_0x3d2b1e(0x1c2)])));}},exports[_0x3166d8(0x2a1)]=ne([N(0x0,o[_0x3166d8(0x22f)](o['Injector'])),N(0x1,p[_0x3166d8(0x218)])],exports[_0x3166d8(0x2a1)]);var re=Object[_0x3166d8(0x260)],se=Object['getOwnPropertyDescriptor'],oe=(_0x2285d7,_0x389205,_0x129ec8)=>_0x389205 in _0x2285d7?re(_0x2285d7,_0x389205,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x129ec8}):_0x2285d7[_0x389205]=_0x129ec8,ae=(_0x49fe1c,_0x482c95,_0x30981f,_0x2508f6)=>{var _0x4b72db=_0x3166d8;for(var _0x1b964e=_0x2508f6>0x1?void 0x0:_0x2508f6?se(_0x482c95,_0x30981f):_0x482c95,_0x375ab7=_0x49fe1c[_0x4b72db(0x273)]-0x1,_0x278c87;_0x375ab7>=0x0;_0x375ab7--)(_0x278c87=_0x49fe1c[_0x375ab7])&&(_0x1b964e=_0x278c87(_0x1b964e)||_0x1b964e);return _0x1b964e;},w=(_0x4f8aa1,_0x314a3)=>(_0x3b6868,_0x3df45c)=>_0x314a3(_0x3b6868,_0x3df45c,_0x4f8aa1),T=(_0xfae58b,_0x422b63,_0x372b3f)=>oe(_0xfae58b,typeof _0x422b63!=_0x3166d8(0x29a)?_0x422b63+'':_0x422b63,_0x372b3f);function _0x169d(){var _0x2ede75=['xlink:href','getCurrentTypeOfUnit$','SetWorksheetActiveOperation','parse','assign','_beIdle','fill','createElement','33160TquwXS','LiveShare','Start\x20following','_injector','type','LiveShareSingle','forEach','next','jsxs','send','@univerjs-pro/collaboration-client','_handleNewHost','LIVESHARE_TERMINATE','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOffline','@univerjs/design','7876627TXIkgx','evenodd','string','getInitialStates','sessionStatus$','pipe','use','_handleTerminate','clsx','onRendered','touchDependencies','getUnitId','getLiveShareCoordinator','reverse','getMemberID','entries','LIVESHARE_FETCH_OPERATIONS','small','connectInjector','_sharedOperations','rxjs','LiveShareCoordinator','55ZdQQLX','_startLiveShareCoordinator','displayName','10MZXkDV','toDisposable','_collabSession','RxDisposable','_unitID','onCommandExecuted','_init','\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','unitId','univerjs-icon\x20univerjs-icon-','LiveShareService','attrs','Fragment','Dropdown','LiveShareController','defs','189954TFzNeo','@univerjs/core','map','476SkklLD','_configService','_status','stopFollowing','forwardRef','stopPresenting','children','SetZoomRatioOperation','url(#$1','useEffect','not-following','_config','1926648ozUKUX','Button','merge','end','event$','PRESENTING','IDLE','UniverCollaborationClientPlugin','_stopFollowing','has','data','startFollowing','values','getConfig','button','LIVESHARE_REQUEST_HOST','substring','IUIPartsService','registerInitialStateReporter','HEADER_MENU','defIds','clear','You\x27re\x20following\x20the\x20presenter','rxjs/operators','indexOf','_startFollowing','dispose','toStringTag','0\x200\x2017\x2017','trim','executeCommand','_startPresenting','complete','_univerInstanceService','text','extend','@univerjs/sheets','_status$','asObservable','_mountLiveShare','Inject','DependentOn','_entities','params','includes','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','getOwnPropertySymbols','Present\x20this\x20document','random','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','UniverInstanceType','_uiPartsService','_handleOperation','FOLLOWING','Disposable','delete','useDependency','LIVESHARE_OPERATION','react','mergeOverrideWithDependencies','status$','111988zCjBOV','NOT_FOLLOWING','Injector','apply','setConfig','UniverLiveSharePlugin','idle','ICommandService','useRef','6EEVtuc','NEW_CHANGESETS','mutations','presenter','requireSession','UNIVER_UNKNOWN','@univerjs/sheets-ui','_collabSessionService','_commandDisposable','registerComponent','find','current','prototype','div','@univerjs/ui','colorChannel1','useState','hasOwnProperty','tryStartPresenting','defineProperty','CollaborationSessionService','set','SAME_OPERATION_SHARE_INTERVAL','OPERATION','dispose$','from','You\x27re\x20not\x20following\x20the\x20presenter','98508GmRCKV','_handleNewChangeSets','SessionStatus','subscribe','disposeWithMe','add','icon','function','takeUntil','BehaviorSubject','univer-size-4','length','call','presenting','DisposableCollection','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertyDescriptor','mask','_commandService','className','Plugin','Stop\x20following','init','490491gzQEAx','OFFLINE','path','_reporters','UNIVER_SHEET','default','1em','pluginName','@univerjs-pro/collaboration','_presenter','jsx','tag','concat','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','createInstance','Subject','shouldShareOperation','_stopPresenting','override','get','idSuffix','live-share-single','LiveShareStatus','currentColor','_fetchOperations','_liveShareService','IConfigService','symbol','_handleOnline','following','offline','replace','CollaborationEvent','getValue','DesktopLiveShareController','InsertSheetMutation'];_0x169d=function(){return _0x2ede75;};return _0x169d();}const le=_0x3166d8(0x277);exports['UniverLiveSharePlugin']=class extends o[_0x3166d8(0x27c)]{constructor(_0x4fdda8=x,_0xcad3db,_0x528e96){var _0x528551=_0x3166d8;super(),this[_0x528551(0x206)]=_0x4fdda8,this[_0x528551(0x1c2)]=_0xcad3db,this['_configService']=_0x528e96;const {..._0x20d0f3}=o[_0x528551(0x209)]({},x,this[_0x528551(0x206)]);this[_0x528551(0x1fc)][_0x528551(0x248)]($,_0x20d0f3);}['onStarting'](){var _0x145cee=_0x3166d8;o['registerDependencies'](this['_injector'],o[_0x145cee(0x242)]([[E],[exports[_0x145cee(0x1f6)]],[O],[exports[_0x145cee(0x2a1)]]],this[_0x145cee(0x206)][_0x145cee(0x291)])),o[_0x145cee(0x1d9)](this[_0x145cee(0x1c2)],[[O]]);}[_0x3166d8(0x1d8)](){var _0x513962=_0x3166d8;o[_0x513962(0x1d9)](this[_0x513962(0x1c2)],[[exports[_0x513962(0x2a1)]]]);}},T(exports['UniverLiveSharePlugin'],_0x3166d8(0x1c3),o[_0x3166d8(0x239)][_0x3166d8(0x252)]),T(exports[_0x3166d8(0x249)],_0x3166d8(0x286),le),exports['UniverLiveSharePlugin']=ae([o[_0x3166d8(0x230)](m[_0x3166d8(0x20e)]),w(0x1,o[_0x3166d8(0x22f)](o[_0x3166d8(0x246)])),w(0x2,o[_0x3166d8(0x299)])],exports[_0x3166d8(0x249)]),exports[_0x3166d8(0x1c0)]=A,exports[_0x3166d8(0x1f2)]=E,exports[_0x3166d8(0x295)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x41a3(){var _0x484ead=['pipe','defineProperty','add','You\x27re\x20not\x20following\x20the\x20presenter','createInstance','You\x27re\x20presenting\x20the\x20document','3293807BvvOBL','icon','params','subscribe','_startPresenting','path','_sharedOperations','get','LIVESHARE_NEW_HOST','HEADER_MENU','reverse','getUnitId','_stopPresenting','getInitialStates','UniverIcon','stopPresenting','currentColor','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation','complete','init','OFFLINE','Present\x20this\x20document','disposeWithMe','_fetchOperations','defs','clear','status$','SAME_OPERATION_SHARE_INTERVAL','event$','_handleNewHost','xlink:href','_injector','NOT_FOLLOWING','_unitID','executeCommand','univerjs-icon\x20univerjs-icon-','idle','mutations','setConfig','colorChannel1','live-share.config','set','small','map','sheet','assign','presenter','svg','call','children','_stopFollowing','\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','concat','memberID','pluginName','LIVESHARE_OPERATION','LIVESHARE_TERMINATE','6lgErqy','4384xTqoqq','registerInitialStateReporter','getMemberID','offline','_entities','indexOf','_handleNewChangeSets','_handleTerminate','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_commandService','_startFollowing','length','data','_status','FOLLOWING','_handleOffline','316107elNOGT','prototype','random','1em','2977570EDcwph','dispose','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UNIVER_UNKNOWN','current','Start','mask','3682742MWmqif','stopFollowing','evenodd','attrs','delete','apply','_handleOnline','getCurrentTypeOfUnit$','text','onStarting','forEach','UNIVER_SHEET','toString','_beIdle','_configService','PRESENTING','ONLINE','next','use','_status$','Start\x20following','extend','startFollowing','_collabSessionService','tag','button','_init','asObservable','465fWPLoQ','defIds','replace','find','You\x27are\x20offline.','unsubscribe','string','1337600QLDlxo','following','LIVESHARE_REQUEST_HOST','fill','_config','override','_liveShareService','registerComponent','getValue','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','className','1YrhCpZ','default','getConfig','955914ysyWVi','_collabSession','url(#$1','not-following','tryStartPresenting','propertyIsEnumerable','_handleOperation','displayName','end','none','_presenter','_startLiveShareCoordinator','trim','Stop\x20presenting','_commandDisposable','parse','getTypeOfUnitAdded$','_univerInstanceService','idSuffix','send','32Ddsfbx','entries','function','symbol','IDLE','type','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','has','hasOwnProperty','getOwnPropertyDescriptor','OPERATION','div','stringify','requireSession','_reporters','dispose$','getLiveShareCoordinator','presenting','0\x200\x2017\x2017','_mountLiveShare'];_0x41a3=function(){return _0x484ead;};return _0x41a3();}var _0x4a69f6=_0x2912;(function(_0x1db2f2,_0x538def){var _0x6ba1c4=_0x2912,_0x4289ba=_0x1db2f2();while(!![]){try{var _0x4d20eb=parseInt(_0x6ba1c4(0x121))/0x1*(-parseInt(_0x6ba1c4(0x124))/0x2)+parseInt(_0x6ba1c4(0x10f))/0x3*(-parseInt(_0x6ba1c4(0x18e))/0x4)+parseInt(_0x6ba1c4(0x116))/0x5+-parseInt(_0x6ba1c4(0x18d))/0x6*(-parseInt(_0x6ba1c4(0x1a9))/0x7)+parseInt(_0x6ba1c4(0x138))/0x8*(parseInt(_0x6ba1c4(0x19e))/0x9)+-parseInt(_0x6ba1c4(0x1a2))/0xa+parseInt(_0x6ba1c4(0x153))/0xb;if(_0x4d20eb===_0x538def)break;else _0x4289ba['push'](_0x4289ba['shift']());}catch(_0x1ae1c7){_0x4289ba['push'](_0x4289ba['shift']());}}}(_0x41a3,0x464d9));var K=Object['defineProperty'],q=(_0x3843b0,_0x4e1272,_0x41704e)=>_0x4e1272 in _0x3843b0?K(_0x3843b0,_0x4e1272,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41704e}):_0x3843b0[_0x4e1272]=_0x41704e,d=(_0x19d739,_0x596eda,_0x47b7e1)=>q(_0x19d739,typeof _0x596eda!=_0x4a69f6(0x13b)?_0x596eda+'':_0x596eda,_0x47b7e1);import{CollaborationSessionService as _0xfc0bb3,SessionStatus as _0x4bf3e0,UniverCollaborationClientPlugin as _0x3edd76}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2fa40e,toDisposable as _0x3f342e,Inject as _0x8484e9,IUniverInstanceService as _0xc2b65,Injector as _0x5d8ce1,IConfigService as _0x188fe0,ICommandService as _0x463354,RxDisposable as _0x47e7fa,UniverInstanceType as _0x4a9552,DisposableCollection as _0x2c24cd,CommandType as _0x3a789e,DependentOn as _0x2e2c93,Plugin as _0x3c932d,merge as _0x4daac5,registerDependencies as _0x3c990c,mergeOverrideWithDependencies as _0x4cd782,touchDependencies as _0x19385d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x42bb0a,InsertSheetMutation as _0x18824f}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x143fd8,SetScrollOperation as _0xb6b7fe}from'@univerjs/sheets-ui';import{useDependency as _0x4742f9,useObservable as _0x24728a,IUIPartsService as _0x104e79,BuiltInUIPart as _0x2f4ea4,connectInjector as _0x404d33}from'@univerjs/ui';import{jsx as _0x52eb38,jsxs as _0x496f23,Fragment as _0xc42ccf}from'react/jsx-runtime';import{Dropdown as _0x143a4e,clsx as _0x3012a3,Button as _0x52c29f}from'@univerjs/design';import{forwardRef as _0x43da6d,useRef as _0x334388,createElement as _0x52ca00,useState as _0x91fffa,useEffect as _0x20f818}from'react';import{CollaborationEvent as _0x555c9e,parseProtocolChangeset as _0xadc162}from'@univerjs-pro/collaboration';function _0x2912(_0x3ddad0,_0x26edc0){var _0x41a38f=_0x41a3();return _0x2912=function(_0x29122b,_0x136b0f){_0x29122b=_0x29122b-0xfb;var _0x544a1f=_0x41a38f[_0x29122b];return _0x544a1f;},_0x2912(_0x3ddad0,_0x26edc0);}import{BehaviorSubject as _0x41340c,Subject as _0x27f79a}from'rxjs';import{takeUntil as _0x282817,throttleTime as _0x3891e9}from'rxjs/operators';const Oe=_0x4a69f6(0x17c),T={};class x extends _0x2fa40e{constructor(){var _0x53bb9a=_0x4a69f6;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x53bb9a(0x147),new Set());}['registerSharedOperation'](_0x1e85ad){var _0x279f5f=_0x4a69f6;return this[_0x279f5f(0x159)][_0x279f5f(0x14f)](_0x1e85ad),_0x3f342e(()=>this['_sharedOperations'][_0x279f5f(0x1ad)](_0x1e85ad));}[_0x4a69f6(0x18f)](_0x57bc58){var _0x3293b4=_0x4a69f6;return this[_0x3293b4(0x147)][_0x3293b4(0x14f)](_0x57bc58),_0x3f342e(()=>this[_0x3293b4(0x147)][_0x3293b4(0x1ad)](_0x57bc58));}[_0x4a69f6(0x165)](_0x4d9e11){var _0x1346f4=_0x4a69f6;return this[_0x1346f4(0x159)][_0x1346f4(0x140)](_0x4d9e11);}[_0x4a69f6(0x160)](_0x15c2bb){var _0x31cf0e=_0x4a69f6;return Array['from'](this['_reporters'])[_0x31cf0e(0x17f)](_0x3cc256=>_0x3cc256(_0x15c2bb));}}var Ee=Object[_0x4a69f6(0x142)],Ne=(_0xd56cad,_0x3d0df7,_0x9de261,_0x55af0d)=>{var _0x105f59=_0x4a69f6;for(var _0x3b22b3=_0x55af0d>0x1?void 0x0:_0x55af0d?Ee(_0x3d0df7,_0x9de261):_0x3d0df7,_0x2042df=_0xd56cad[_0x105f59(0x199)]-0x1,_0xc9fe67;_0x2042df>=0x0;_0x2042df--)(_0xc9fe67=_0xd56cad[_0x2042df])&&(_0x3b22b3=_0xc9fe67(_0x3b22b3)||_0x3b22b3);return _0x3b22b3;},we=(_0x51a32b,_0x18f4b8)=>(_0x361ce8,_0x2dfe38)=>_0x18f4b8(_0x361ce8,_0x2dfe38,_0x51a32b);let m=class extends _0x2fa40e{constructor(_0x5ac2ad){var _0x531824=_0x4a69f6;super(),this[_0x531824(0x11c)]=_0x5ac2ad,this[_0x531824(0x10d)]();}[_0x4a69f6(0x10d)](){var _0x171bdd=_0x4a69f6;[_0x143fd8['id'],_0xb6b7fe['id'],_0x42bb0a['id']][_0x171bdd(0xfd)](_0x162057=>{var _0x15fa89=_0x171bdd;this['disposeWithMe'](this[_0x15fa89(0x11c)]['registerSharedOperation'](_0x162057));});}};m=Ne([we(0x0,_0x8484e9(x))],m);var c=function(){var _0x4a6a7e=_0x4a69f6;return c=Object[_0x4a6a7e(0x181)]||function(_0xa0388d){var _0x23d30b=_0x4a6a7e;for(var _0x21f590,_0x20232d=0x1,_0x574fbe=arguments[_0x23d30b(0x199)];_0x20232d<_0x574fbe;_0x20232d++){_0x21f590=arguments[_0x20232d];for(var _0x6cb838 in _0x21f590)Object[_0x23d30b(0x19f)][_0x23d30b(0x141)][_0x23d30b(0x184)](_0x21f590,_0x6cb838)&&(_0xa0388d[_0x6cb838]=_0x21f590[_0x6cb838]);}return _0xa0388d;},c[_0x4a6a7e(0x1ae)](this,arguments);},Ce=function(_0x4294d9,_0x433b61){var _0x4e01d8=_0x4a69f6,_0x55851d={};for(var _0x16dc92 in _0x4294d9)Object[_0x4e01d8(0x19f)][_0x4e01d8(0x141)][_0x4e01d8(0x184)](_0x4294d9,_0x16dc92)&&_0x433b61[_0x4e01d8(0x193)](_0x16dc92)<0x0&&(_0x55851d[_0x16dc92]=_0x4294d9[_0x16dc92]);if(_0x4294d9!=null&&typeof Object['getOwnPropertySymbols']==_0x4e01d8(0x13a)){for(var _0x5312f8=0x0,_0x16dc92=Object['getOwnPropertySymbols'](_0x4294d9);_0x5312f8<_0x16dc92[_0x4e01d8(0x199)];_0x5312f8++)_0x433b61[_0x4e01d8(0x193)](_0x16dc92[_0x5312f8])<0x0&&Object[_0x4e01d8(0x19f)][_0x4e01d8(0x129)][_0x4e01d8(0x184)](_0x4294d9,_0x16dc92[_0x5312f8])&&(_0x55851d[_0x16dc92[_0x5312f8]]=_0x4294d9[_0x16dc92[_0x5312f8]]);}return _0x55851d;},W=_0x43da6d(function(_0x4a6cc4,_0x2fa661){var _0x355cfe=_0x4a69f6,_0x2f123d=_0x4a6cc4[_0x355cfe(0x154)],_0x232cfb=_0x4a6cc4['id'],_0x31107d=_0x4a6cc4['className'],_0x20fa62=_0x4a6cc4[_0x355cfe(0x108)],_0x772c4d=Ce(_0x4a6cc4,[_0x355cfe(0x154),'id',_0x355cfe(0x120),_0x355cfe(0x108)]),_0x3698d8=_0x355cfe(0x177)['concat'](_0x232cfb,'\x20')[_0x355cfe(0x188)](_0x31107d||'')[_0x355cfe(0x130)](),_0x331658=_0x334388('_'[_0x355cfe(0x188)](xe()));return Y(_0x2f123d,''[_0x355cfe(0x188)](_0x232cfb),{'defIds':_0x2f123d['defIds'],'idSuffix':_0x331658[_0x355cfe(0x1a6)]},c({'ref':_0x2fa661,'className':_0x3698d8},_0x772c4d),_0x20fa62);});function Y(_0x165c9d,_0x4328c1,_0x35685f,_0x19065d,_0x6a6298){var _0x4de3c8=_0x4a69f6;return _0x52ca00(_0x165c9d[_0x4de3c8(0x10b)],c(c({'key':_0x4328c1},De(_0x165c9d,_0x35685f,_0x6a6298)),_0x19065d),(Le(_0x165c9d,_0x35685f)[_0x4de3c8(0x185)]||[])[_0x4de3c8(0x17f)](function(_0x37f38b,_0x67663f){var _0x5d07fa=_0x4de3c8;return Y(_0x37f38b,''[_0x5d07fa(0x188)](_0x4328c1,'-')[_0x5d07fa(0x188)](_0x165c9d['tag'],'-')[_0x5d07fa(0x188)](_0x67663f),_0x35685f,void 0x0,_0x6a6298);}));}function De(_0x56f428,_0xf6dc55,_0x3cf147){var _0x4f406f=_0x4a69f6,_0x150a08=c({},_0x56f428['attrs']);_0x3cf147!=null&&_0x3cf147[_0x4f406f(0x17b)]&&_0x150a08[_0x4f406f(0x119)]==='colorChannel1'&&(_0x150a08[_0x4f406f(0x119)]=_0x3cf147['colorChannel1']),_0x56f428[_0x4f406f(0x10b)]===_0x4f406f(0x1a8)&&_0x150a08['id']&&(_0x150a08['id']=_0x150a08['id']+_0xf6dc55[_0x4f406f(0x136)]),Object[_0x4f406f(0x139)](_0x150a08)[_0x4f406f(0xfd)](function(_0x1e4b6a){var _0x545a41=_0x4f406f,_0x27d5cc=_0x1e4b6a[0x0],_0x134aeb=_0x1e4b6a[0x1];_0x27d5cc==='mask'&&typeof _0x134aeb==_0x545a41(0x115)&&(_0x150a08[_0x27d5cc]=_0x134aeb[_0x545a41(0x111)](/url\(#(.*)\)/,_0x545a41(0x126)[_0x545a41(0x188)](_0xf6dc55['idSuffix'],')')));});var _0x325358=_0xf6dc55[_0x4f406f(0x110)];return!_0x325358||_0x325358['length']===0x0||(_0x56f428['tag']===_0x4f406f(0x105)&&_0x150a08[_0x4f406f(0x172)]&&(_0x150a08[_0x4f406f(0x172)]=_0x150a08[_0x4f406f(0x172)]+_0xf6dc55['idSuffix']),Object[_0x4f406f(0x139)](_0x150a08)[_0x4f406f(0xfd)](function(_0x4913a2){var _0x173ca2=_0x4f406f,_0x136b91=_0x4913a2[0x0],_0x2d1d5f=_0x4913a2[0x1];typeof _0x2d1d5f==_0x173ca2(0x115)&&(_0x150a08[_0x136b91]=_0x2d1d5f[_0x173ca2(0x111)](/url\(#(.*)\)/,_0x173ca2(0x126)['concat'](_0xf6dc55['idSuffix'],')')));})),_0x150a08;}function Le(_0x1f682a,_0x107de2){var _0x10ee75=_0x4a69f6,_0x38b822,_0x22a29c=_0x107de2['defIds'];return!_0x22a29c||_0x22a29c[_0x10ee75(0x199)]===0x0?_0x1f682a:_0x1f682a[_0x10ee75(0x10b)]===_0x10ee75(0x16c)&&(!((_0x38b822=_0x1f682a[_0x10ee75(0x185)])===null||_0x38b822===void 0x0)&&_0x38b822[_0x10ee75(0x199)])?c(c({},_0x1f682a),{'children':_0x1f682a[_0x10ee75(0x185)][_0x10ee75(0x17f)](function(_0xd257a8){var _0x465fbf=_0x10ee75;return typeof _0xd257a8[_0x465fbf(0x1ac)]['id']==_0x465fbf(0x115)&&_0x22a29c&&_0x22a29c[_0x465fbf(0x193)](_0xd257a8[_0x465fbf(0x1ac)]['id'])>-0x1?c(c({},_0xd257a8),{'attrs':c(c({},_0xd257a8[_0x465fbf(0x1ac)]),{'id':_0xd257a8['attrs']['id']+_0x107de2[_0x465fbf(0x136)]})}):_0xd257a8;})}):_0x1f682a;}function xe(){var _0x37d1a0=_0x4a69f6;return Math[_0x37d1a0(0x1a0)]()[_0x37d1a0(0xff)](0x24)['substring'](0x2,0x8);}W[_0x4a69f6(0x12b)]=_0x4a69f6(0x161);var ye={'tag':_0x4a69f6(0x183),'attrs':{'fill':_0x4a69f6(0x12d),'viewBox':_0x4a69f6(0x14b),'width':_0x4a69f6(0x1a1),'height':_0x4a69f6(0x1a1)},'children':[{'tag':_0x4a69f6(0x158),'attrs':{'fill':_0x4a69f6(0x163),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4a69f6(0x158),'attrs':{'fill':_0x4a69f6(0x163),'d':_0x4a69f6(0x1a4),'fillRule':_0x4a69f6(0x1ab),'clipRule':_0x4a69f6(0x1ab)}}]},z=_0x43da6d(function(_0x10b54c,_0x1745d1){var _0x325729=_0x4a69f6;return _0x52ca00(W,Object[_0x325729(0x181)]({},_0x10b54c,{'id':'live-share-single','ref':_0x1745d1,'icon':ye}));});z[_0x4a69f6(0x12b)]='LiveShareSingle';var Re=Object[_0x4a69f6(0x142)],B=(_0x2d989f,_0x54792a,_0x949987,_0x759626)=>{var _0x285eed=_0x4a69f6;for(var _0x2e7d2=_0x759626>0x1?void 0x0:_0x759626?Re(_0x54792a,_0x949987):_0x54792a,_0x3b2701=_0x2d989f[_0x285eed(0x199)]-0x1,_0x3fe6d6;_0x3b2701>=0x0;_0x3b2701--)(_0x3fe6d6=_0x2d989f[_0x3b2701])&&(_0x2e7d2=_0x3fe6d6(_0x2e7d2)||_0x2e7d2);return _0x2e7d2;},f=(_0x45be91,_0x3b797d)=>(_0x5d9141,_0x3ed45a)=>_0x3b797d(_0x5d9141,_0x3ed45a,_0x45be91);let I=class extends _0x47e7fa{constructor(_0x179e6a,_0x4d8b49,_0x1a3f4f){var _0x1e387a=_0x4a69f6;super(),d(this,'_entities',new Map()),(this[_0x1e387a(0x135)]=_0x179e6a,this['_injector']=_0x4d8b49,this[_0x1e387a(0x10a)]=_0x1a3f4f,this[_0x1e387a(0x10d)]());}async[_0x4a69f6(0x149)](_0xec2c8a){var _0x209cfe=_0x4a69f6;return this[_0x209cfe(0x192)][_0x209cfe(0x140)](_0xec2c8a)||await this[_0x209cfe(0x12f)](_0xec2c8a),this[_0x209cfe(0x192)]['get'](_0xec2c8a);}[_0x4a69f6(0x10d)](){var _0x12cd0a=_0x4a69f6;this[_0x12cd0a(0x135)][_0x12cd0a(0x134)](_0x4a9552[_0x12cd0a(0xfe)])[_0x12cd0a(0x14d)](_0x282817(this[_0x12cd0a(0x148)]))[_0x12cd0a(0x156)](async _0x456aa4=>{var _0x31a11d=_0x12cd0a;const _0x47c4b4=_0x456aa4['getUnitId']();this[_0x31a11d(0x192)][_0x31a11d(0x140)](_0x47c4b4)||this[_0x31a11d(0x12f)](_0x47c4b4);}),this[_0x12cd0a(0x135)]['getTypeOfUnitDisposed$'](_0x4a9552['UNIVER_SHEET'])[_0x12cd0a(0x14d)](_0x282817(this['dispose$']))[_0x12cd0a(0x156)](_0xbd3221=>{var _0xde5467=_0x12cd0a;const _0x25ec0f=_0xbd3221[_0xde5467(0x15e)](),_0xc51cc4=this['_entities']['get'](_0x25ec0f);_0xc51cc4==null||_0xc51cc4[_0xde5467(0x1a3)]();});}async[_0x4a69f6(0x12f)](_0x3def40){var _0xaf6692=_0x4a69f6;const _0x608f45=await this['_collabSessionService'][_0xaf6692(0x146)](_0x3def40),_0xbb2c7c=this[_0xaf6692(0x173)][_0xaf6692(0x151)](C,_0x3def40,_0x608f45);return _0xbb2c7c['init'](),this[_0xaf6692(0x192)][_0xaf6692(0x17d)](_0x3def40,_0xbb2c7c),_0xbb2c7c;}};I=B([f(0x0,_0xc2b65),f(0x1,_0x8484e9(_0x5d8ce1)),f(0x2,_0x8484e9(_0xfc0bb3))],I);var h=(_0x714bc3=>(_0x714bc3[_0x4a69f6(0x168)]='offline',_0x714bc3[_0x4a69f6(0x13c)]=_0x4a69f6(0x178),_0x714bc3[_0x4a69f6(0x19c)]=_0x4a69f6(0x117),_0x714bc3[_0x4a69f6(0x174)]=_0x4a69f6(0x127),_0x714bc3[_0x4a69f6(0x102)]=_0x4a69f6(0x14a),_0x714bc3))(h||{});const Pe=_0x4a69f6(0x16f),Ae=0xc8;let C=class extends _0x47e7fa{constructor(_0x3a3952,_0x4ae04a,_0x45420b,_0x1ff698,_0x3beac6){var _0x5f2a95=_0x4a69f6;super(),d(this,_0x5f2a95(0x106),new _0x41340c(_0x5f2a95(0x178))),d(this,_0x5f2a95(0x16e),this['_status$'][_0x5f2a95(0x10e)]()),d(this,_0x5f2a95(0x10d),!0x1),d(this,_0x5f2a95(0x132),null),d(this,_0x5f2a95(0x12e),null),(this['_unitID']=_0x3a3952,this[_0x5f2a95(0x125)]=_0x4ae04a,this['_configService']=_0x45420b,this['_liveShareService']=_0x1ff698,this[_0x5f2a95(0x197)]=_0x3beac6);}get['_status'](){var _0x34453e=_0x4a69f6;return this['_status$'][_0x34453e(0x11e)]();}[_0x4a69f6(0x1a3)](){var _0x216f6f=_0x4a69f6,_0x104758;(_0x104758=this[_0x216f6f(0x132)])==null||_0x104758['dispose'](),this[_0x216f6f(0x106)][_0x216f6f(0x104)](_0x216f6f(0x178)),this[_0x216f6f(0x106)][_0x216f6f(0x166)]();}[_0x4a69f6(0x167)](){var _0x5116fa=_0x4a69f6;this[_0x5116fa(0x10d)]||(this[_0x5116fa(0x10d)]=!0x0,this[_0x5116fa(0x125)]['sessionStatus$'][_0x5116fa(0x14d)](_0x282817(this[_0x5116fa(0x148)]))[_0x5116fa(0x156)](_0x40579d=>{var _0xb77fe0=_0x5116fa;switch(_0x40579d){case _0x4bf3e0[_0xb77fe0(0x168)]:this[_0xb77fe0(0x19d)]();break;case _0x4bf3e0[_0xb77fe0(0x103)]:this['_handleOnline']();break;}}),this[_0x5116fa(0x125)][_0x5116fa(0x170)]['pipe'](_0x282817(this['dispose$']))['subscribe'](_0x108281=>{var _0x1677de=_0x5116fa;const {eventID:_0x51cde3}=_0x108281;switch(_0x51cde3){case _0x555c9e[_0x1677de(0x15b)]:this['_handleNewHost'](_0x108281);break;case _0x555c9e[_0x1677de(0x18b)]:this[_0x1677de(0x12a)](_0x108281);break;case _0x555c9e[_0x1677de(0x18c)]:this['_handleTerminate']();break;case _0x555c9e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x108281);break;}}));}[_0x4a69f6(0x128)](){var _0xc74263=_0x4a69f6;this['_collabSession'][_0xc74263(0x137)]({'eventID':_0x555c9e[_0xc74263(0x118)],'data':{'unitID':this[_0xc74263(0x175)],'userID':this[_0xc74263(0x125)]['getMemberID']()}},this[_0xc74263(0x175)]);}[_0x4a69f6(0x162)](){var _0x17e6ba=_0x4a69f6;this[_0x17e6ba(0x19b)]===_0x17e6ba(0x14a)&&(this['_status$'][_0x17e6ba(0x104)](_0x17e6ba(0x178)),this[_0x17e6ba(0x125)][_0x17e6ba(0x137)]({'eventID':_0x555c9e[_0x17e6ba(0x18c)],'data':{'unitID':this[_0x17e6ba(0x175)]}},this[_0x17e6ba(0x175)]));}[_0x4a69f6(0x109)](){var _0x1ca3ed=_0x4a69f6;this[_0x1ca3ed(0x19b)]===_0x1ca3ed(0x127)&&(this[_0x1ca3ed(0x106)][_0x1ca3ed(0x104)](_0x1ca3ed(0x117)),this[_0x1ca3ed(0x198)]());}[_0x4a69f6(0x1aa)](){var _0x3c225e=_0x4a69f6;this[_0x3c225e(0x19b)]===_0x3c225e(0x117)&&this[_0x3c225e(0x186)]();}[_0x4a69f6(0x171)](_0x3d2880){var _0x204594=_0x4a69f6;const {presenter:_0x366557}=_0x3d2880[_0x204594(0x19a)],_0x57123e=this[_0x204594(0x125)][_0x204594(0x190)]();this[_0x204594(0x12e)]=_0x366557,_0x366557===_0x57123e?(this[_0x204594(0x186)](),this[_0x204594(0x157)]()):this['_status']!==_0x204594(0x127)&&(this['_stopPresenting'](),this[_0x204594(0x198)]());}[_0x4a69f6(0x16b)](){var _0x323de4=_0x4a69f6;const _0x581860={'eventID':_0x555c9e[_0x323de4(0x164)]};this[_0x323de4(0x125)][_0x323de4(0x137)](_0x581860,this[_0x323de4(0x175)]);}[_0x4a69f6(0x195)](){var _0x2bb494=_0x4a69f6;this[_0x2bb494(0x12e)]=null,this[_0x2bb494(0x19b)]!==_0x2bb494(0x14a)&&this[_0x2bb494(0x100)]();}[_0x4a69f6(0x194)](_0x505e26){var _0x392aba=_0x4a69f6;if(this[_0x392aba(0x19b)]===_0x392aba(0x117)&&this[_0x392aba(0x12e)]===_0x505e26[_0x392aba(0x19a)][_0x392aba(0x189)]){const _0x38e39c=_0xadc162(_0x505e26[_0x392aba(0x19a)])[_0x392aba(0x179)][_0x392aba(0x15d)]()[_0x392aba(0x112)](_0x4f90de=>_0x4f90de['id']===_0x18824f['id']);if(_0x38e39c){const _0x4f3f39=_0x38e39c[_0x392aba(0x155)]['unitId'],_0x30bcec=_0x38e39c[_0x392aba(0x155)][_0x392aba(0x180)]['id'];setTimeout(()=>{var _0x5b8867=_0x392aba;this[_0x5b8867(0x197)][_0x5b8867(0x176)](_0x42bb0a['id'],{'unitId':_0x4f3f39,'subUnitId':_0x30bcec},{'fromCollab':!0x0});});}}}[_0x4a69f6(0x157)](){var _0x582da7=_0x4a69f6;this[_0x582da7(0x106)]['next'](_0x582da7(0x14a));const _0x5529bb=new Map(),_0x4f63fd=this[_0x582da7(0x132)]=new _0x2c24cd();_0x4f63fd[_0x582da7(0x14f)](_0x3f342e(()=>{var _0x591114=_0x582da7;_0x5529bb[_0x591114(0xfd)](_0x73dde7=>_0x73dde7['complete']()),_0x5529bb[_0x591114(0x16d)]();})),_0x4f63fd[_0x582da7(0x14f)](this[_0x582da7(0x197)]['onCommandExecuted'](_0x5706a8=>{var _0x22ec3b=_0x582da7,_0x4a0773;if(_0x5706a8['type']!==_0x3a789e[_0x22ec3b(0x143)]||!this['_liveShareService'][_0x22ec3b(0x165)](_0x5706a8['id']))return;const {id:_0x47e0fb}=_0x5706a8;let _0x24d415;_0x5529bb[_0x22ec3b(0x140)](_0x47e0fb)?_0x24d415=_0x5529bb[_0x22ec3b(0x15a)](_0x47e0fb):(_0x24d415=new _0x27f79a(),_0x5529bb['set'](_0x47e0fb,_0x24d415),_0x24d415[_0x22ec3b(0x14d)](_0x3891e9((_0x4a0773=this['_configService'][_0x22ec3b(0x123)](Pe))!=null?_0x4a0773:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22ec3b(0x156)](_0x47f30e=>{var _0x112b0e=_0x22ec3b;this[_0x112b0e(0x125)][_0x112b0e(0x137)]({'eventID':_0x555c9e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x112b0e(0x175)],'operations':{[_0x47f30e['id']]:{'id':_0x47f30e['id'],'params':JSON[_0x112b0e(0x145)](_0x47f30e[_0x112b0e(0x155)])}}}},this[_0x112b0e(0x175)]);})),_0x24d415[_0x22ec3b(0x104)](_0x5706a8);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x582da7(0xfd)](_0x2a83cc=>this[_0x582da7(0x125)][_0x582da7(0x137)]({'eventID':_0x555c9e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x582da7(0x175)],'operations':{[_0x2a83cc['id']]:{'id':_0x2a83cc['id'],'params':JSON[_0x582da7(0x145)](_0x2a83cc[_0x582da7(0x155)])}}}},this[_0x582da7(0x175)]));}[_0x4a69f6(0x15f)](){var _0x22e2b7=_0x4a69f6,_0x52928d;this[_0x22e2b7(0x106)][_0x22e2b7(0x104)](_0x22e2b7(0x178)),(_0x52928d=this['_commandDisposable'])==null||_0x52928d[_0x22e2b7(0x1a3)](),this['_commandDisposable']=null;}[_0x4a69f6(0x198)](){var _0x4a846b=_0x4a69f6,_0x593397;(_0x593397=this['_commandDisposable'])==null||_0x593397[_0x4a846b(0x1a3)](),this['_status$']['next'](_0x4a846b(0x117));}[_0x4a69f6(0x100)](){var _0x4a1d91=_0x4a69f6,_0x55a1cf;this[_0x4a1d91(0x106)]['next'](_0x4a1d91(0x178)),(_0x55a1cf=this[_0x4a1d91(0x132)])==null||_0x55a1cf[_0x4a1d91(0x1a3)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x1c5a23=_0x4a69f6,_0x28c7d4;this[_0x1c5a23(0x106)]['next']('not-following'),(_0x28c7d4=this[_0x1c5a23(0x132)])==null||_0x28c7d4[_0x1c5a23(0x1a3)]();}[_0x4a69f6(0x12a)](_0x8ba2ea){var _0xb2271=_0x4a69f6;if([_0xb2271(0x14a),_0xb2271(0x127),_0xb2271(0x191)]['includes'](this['_status'])||!_0x8ba2ea['data']['presenter']||_0x8ba2ea[_0xb2271(0x19a)][_0xb2271(0x182)]===this[_0xb2271(0x125)][_0xb2271(0x190)]())return;this[_0xb2271(0x19b)]===_0xb2271(0x178)&&this['_startFollowing']();const _0x2eb0f5=_0x8ba2ea['data']['operations'];Object['values'](_0x2eb0f5)[_0xb2271(0xfd)](_0x384d77=>{var _0x2770ec=_0xb2271;this[_0x2770ec(0x197)][_0x2770ec(0x176)](_0x384d77['id'],_0x384d77[_0x2770ec(0x155)]?JSON[_0x2770ec(0x133)](_0x384d77[_0x2770ec(0x155)]):null,{'fromCollab':!0x0});});}[_0x4a69f6(0x19d)](){var _0x3d04a4=_0x4a69f6,_0x256b32;this['_status$'][_0x3d04a4(0x104)](_0x3d04a4(0x191)),(_0x256b32=this['_commandDisposable'])==null||_0x256b32[_0x3d04a4(0x1a3)]();}[_0x4a69f6(0x1af)](){var _0x3faa76=_0x4a69f6;this[_0x3faa76(0x106)][_0x3faa76(0x104)](_0x3faa76(0x178)),this[_0x3faa76(0x16b)]();}};C=B([f(0x2,_0x188fe0),f(0x3,_0x8484e9(x)),f(0x4,_0x463354)],C);function Te(){var _0x73e74d=_0x4a69f6;const _0x40a951=_0x4742f9(I),_0x592192=_0x4742f9(_0xc2b65),_0x473905=_0x24728a(()=>_0x592192[_0x73e74d(0x1b0)](_0x4a9552[_0x73e74d(0xfe)]),void 0x0,!0x1,[]),[_0xa498b9,_0x530847]=_0x91fffa(null),[_0x22f5d5,_0x148aee]=_0x91fffa(h[_0x73e74d(0x13c)]),_0x96a914=_0x334388(null);return _0x20f818(()=>(_0x473905&&_0x40a951[_0x73e74d(0x149)](_0x473905[_0x73e74d(0x15e)]())['then'](_0x1c4a9d=>{var _0x4c633f=_0x73e74d;_0x530847(_0x1c4a9d),_0x96a914[_0x4c633f(0x1a6)]=_0x1c4a9d['status$'][_0x4c633f(0x156)](_0x4c2703=>{_0x148aee(_0x4c2703);});}),()=>{var _0x6b0e51=_0x73e74d,_0x47ba25;(_0x47ba25=_0x96a914[_0x6b0e51(0x1a6)])==null||_0x47ba25[_0x6b0e51(0x114)](),_0x96a914[_0x6b0e51(0x1a6)]=null;}),[_0x473905,_0x40a951]),_0xa498b9?_0x52eb38(_0x143a4e,{'align':_0x73e74d(0x12c),'disabled':_0x22f5d5===h[_0x73e74d(0x168)],'className':_0x73e74d(0x187),'overlay':_0x52eb38($e,{'status':_0x22f5d5,'coordinator':_0xa498b9}),'children':_0x52eb38('button',{'className':_0x3012a3(_0x73e74d(0x196),{'univer-cursor-not-allowed':_0x22f5d5===h[_0x73e74d(0x168)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22f5d5!==h[_0x73e74d(0x168)]}),'type':_0x73e74d(0x10c),'children':_0x52eb38(z,{'className':'univer-size-4'})})}):null;}function $e(_0x166ad9){var _0xf650b6=_0x4a69f6;const {status:_0x39a2f8,coordinator:_0x1b1976}=_0x166ad9;switch(_0x39a2f8){case h['IDLE']:return _0x52eb38(Fe,{'coordinator':_0x1b1976});case h[_0xf650b6(0x19c)]:return _0x52eb38(He,{'coordinator':_0x1b1976});case h[_0xf650b6(0x174)]:return _0x52eb38(je,{'coordinator':_0x1b1976});case h['OFFLINE']:return _0x52eb38(Ve,{});case h[_0xf650b6(0x102)]:return _0x52eb38(Ue,{'coordinator':_0x1b1976});default:return null;}}function Fe(_0x3bae03){var _0x1654cb=_0x4a69f6;const {coordinator:_0x43598d}=_0x3bae03;return _0x496f23(_0xc42ccf,{'children':[_0x52eb38(_0x1654cb(0x144),{'className':_0x1654cb(0x11f),'children':_0x1654cb(0x169)}),_0x52eb38(_0x52c29f,{'size':_0x1654cb(0x17e),'type':_0x1654cb(0x122),'onClick':()=>_0x43598d[_0x1654cb(0x128)](),'children':_0x1654cb(0x1a7)})]});}function He(_0x37962d){var _0x570fac=_0x4a69f6;const {coordinator:_0x2a3ae6}=_0x37962d;return _0x496f23(_0xc42ccf,{'children':[_0x52eb38('div',{'className':_0x570fac(0x11f),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x52eb38(_0x52c29f,{'size':_0x570fac(0x17e),'type':_0x570fac(0x122),'onClick':()=>_0x2a3ae6[_0x570fac(0x1aa)](),'children':'Stop\x20following'})]});}function je(_0x5b1ae1){var _0x3c7588=_0x4a69f6;const {coordinator:_0x1cea76}=_0x5b1ae1;return _0x496f23(_0xc42ccf,{'children':[_0x52eb38(_0x3c7588(0x144),{'className':_0x3c7588(0x11f),'children':_0x3c7588(0x150)}),_0x52eb38(_0x52c29f,{'size':_0x3c7588(0x17e),'type':_0x3c7588(0xfb),'onClick':()=>_0x1cea76[_0x3c7588(0x109)](),'children':_0x3c7588(0x107)})]});}function Ue(_0x51abaa){var _0x5ed4e5=_0x4a69f6;const {coordinator:_0x18f283}=_0x51abaa;return _0x496f23(_0xc42ccf,{'children':[_0x52eb38(_0x5ed4e5(0x144),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5ed4e5(0x152)}),_0x52eb38(_0x52c29f,{'size':_0x5ed4e5(0x17e),'type':_0x5ed4e5(0x122),'onClick':()=>_0x18f283[_0x5ed4e5(0x162)](),'children':_0x5ed4e5(0x131)})]});}function Ve(){var _0x2f0005=_0x4a69f6;return _0x52eb38(_0xc42ccf,{'children':_0x2f0005(0x113)});}var Me=Object[_0x4a69f6(0x142)],ke=(_0x2556b1,_0x3a20f1,_0x4b04a6,_0x4e2403)=>{for(var _0x343306=_0x4e2403>0x1?void 0x0:_0x4e2403?Me(_0x3a20f1,_0x4b04a6):_0x3a20f1,_0x574a71=_0x2556b1['length']-0x1,_0x483549;_0x574a71>=0x0;_0x574a71--)(_0x483549=_0x2556b1[_0x574a71])&&(_0x343306=_0x483549(_0x343306)||_0x343306);return _0x343306;},$=(_0x389ffe,_0x42dee2)=>(_0x1f8f65,_0x301d87)=>_0x42dee2(_0x1f8f65,_0x301d87,_0x389ffe);let b=class extends _0x2fa40e{constructor(_0x404631,_0x52c40b){var _0x37efae=_0x4a69f6;super(),this[_0x37efae(0x173)]=_0x404631,this[_0x37efae(0x13f)]=_0x52c40b,this['_mountLiveShare']();}[_0x4a69f6(0x14c)](){var _0x5834db=_0x4a69f6;this[_0x5834db(0x16a)](this['_uiPartsService'][_0x5834db(0x11d)](_0x2f4ea4[_0x5834db(0x15c)],()=>_0x404d33(Te,this[_0x5834db(0x173)])));}};b=ke([$(0x0,_0x8484e9(_0x5d8ce1)),$(0x1,_0x104e79)],b);var Ge=Object[_0x4a69f6(0x14e)],We=Object[_0x4a69f6(0x142)],Ye=(_0xd6cb8,_0x593dad,_0x4de11a)=>_0x593dad in _0xd6cb8?Ge(_0xd6cb8,_0x593dad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4de11a}):_0xd6cb8[_0x593dad]=_0x4de11a,ze=(_0x454b77,_0x332e47,_0x2fc28b,_0x41efbf)=>{for(var _0x5b76c1=_0x41efbf>0x1?void 0x0:_0x41efbf?We(_0x332e47,_0x2fc28b):_0x332e47,_0xeb0212=_0x454b77['length']-0x1,_0x2f1bcc;_0xeb0212>=0x0;_0xeb0212--)(_0x2f1bcc=_0x454b77[_0xeb0212])&&(_0x5b76c1=_0x2f1bcc(_0x5b76c1)||_0x5b76c1);return _0x5b76c1;},F=(_0x5c2a9e,_0x1d1fb3)=>(_0x2ef72c,_0x404980)=>_0x1d1fb3(_0x2ef72c,_0x404980,_0x5c2a9e),Z=(_0x2a8035,_0x14bf33,_0x4a88c3)=>Ye(_0x2a8035,typeof _0x14bf33!=_0x4a69f6(0x13b)?_0x14bf33+'':_0x14bf33,_0x4a88c3);const Be=_0x4a69f6(0x13e);let O=class extends _0x3c932d{constructor(_0x53c7be=T,_0xf0254f,_0xa2844b){var _0x54f218=_0x4a69f6;super(),this[_0x54f218(0x11a)]=_0x53c7be,this[_0x54f218(0x173)]=_0xf0254f,this[_0x54f218(0x101)]=_0xa2844b;const {..._0x5f4e02}=_0x4daac5({},T,this[_0x54f218(0x11a)]);this['_configService'][_0x54f218(0x17a)](Oe,_0x5f4e02);}[_0x4a69f6(0xfc)](){var _0x4cf377=_0x4a69f6;_0x3c990c(this[_0x4cf377(0x173)],_0x4cd782([[x],[I],[m],[b]],this['_config'][_0x4cf377(0x11b)])),_0x19385d(this['_injector'],[[m]]);}['onRendered'](){var _0x47855b=_0x4a69f6;_0x19385d(this[_0x47855b(0x173)],[[b]]);}};Z(O,_0x4a69f6(0x13d),_0x4a9552[_0x4a69f6(0x1a5)]),Z(O,_0x4a69f6(0x18a),Be),O=ze([_0x2e2c93(_0x3edd76),F(0x1,_0x8484e9(_0x5d8ce1)),F(0x2,_0x188fe0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x3e45b7=_0x47ab;(function(_0x3d4110,_0x31c95f){var _0x2b2917=_0x47ab,_0x2b92f4=_0x3d4110();while(!![]){try{var _0x54a1b9=-parseInt(_0x2b2917(0x12e))/0x1+-parseInt(_0x2b2917(0x142))/0x2+parseInt(_0x2b2917(0xeb))/0x3+-parseInt(_0x2b2917(0x147))/0x4*(-parseInt(_0x2b2917(0xfa))/0x5)+-parseInt(_0x2b2917(0xf8))/0x6+parseInt(_0x2b2917(0xd2))/0x7*(-parseInt(_0x2b2917(0xad))/0x8)+-parseInt(_0x2b2917(0xfe))/0x9*(-parseInt(_0x2b2917(0xcb))/0xa);if(_0x54a1b9===_0x31c95f)break;else _0x2b92f4['push'](_0x2b92f4['shift']());}catch(_0x30e775){_0x2b92f4['push'](_0x2b92f4['shift']());}}}(_0x3717,0x3c3ec));var K=Object['defineProperty'],q=(_0x4f7fe2,_0x24f71a,_0x5d9e8f)=>_0x24f71a in _0x4f7fe2?K(_0x4f7fe2,_0x24f71a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d9e8f}):_0x4f7fe2[_0x24f71a]=_0x5d9e8f,d=(_0x540b01,_0x1f0f96,_0x3e025a)=>q(_0x540b01,typeof _0x1f0f96!=_0x3e45b7(0xc7)?_0x1f0f96+'':_0x1f0f96,_0x3e025a);import{CollaborationSessionService as _0x2a2f83,SessionStatus as _0x3a9c72,UniverCollaborationClientPlugin as _0x303a11}from'@univerjs-pro/collaboration-client';import{Disposable as _0xdaec98,toDisposable as _0x116f41,Inject as _0x2f4086,IUniverInstanceService as _0x28fccf,Injector as _0x560825,IConfigService as _0x9f8486,ICommandService as _0x254d5c,RxDisposable as _0x107445,UniverInstanceType as _0x29ebc3,DisposableCollection as _0x26df93,CommandType as _0x144faf,DependentOn as _0x18fcd3,Plugin as _0x9743b0,merge as _0x427f31,registerDependencies as _0x46fd1d,mergeOverrideWithDependencies as _0x5739f4,touchDependencies as _0x454bd6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3fc08a,InsertSheetMutation as _0x44d4d9}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xd3dbbd,SetScrollOperation as _0x477976}from'@univerjs/sheets-ui';import{useDependency as _0x393858,useObservable as _0x25cc83,IUIPartsService as _0xc0def6,BuiltInUIPart as _0x335c7c,connectInjector as _0x49388b}from'@univerjs/ui';import{jsx as _0x180c41,jsxs as _0x13d4b9,Fragment as _0x57e8f0}from'react/jsx-runtime';import{Dropdown as _0x186175,clsx as _0x3bb5ab,Button as _0x44d8e6}from'@univerjs/design';import{forwardRef as _0x4e64d3,useRef as _0x4cae2e,createElement as _0x11428c,useState as _0x241cbf,useEffect as _0x42ec8c}from'react';import{CollaborationEvent as _0x18b6b9,parseProtocolChangeset as _0x5ad6bd}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x13000c,Subject as _0x23d9b2}from'rxjs';import{takeUntil as _0x5de08f,throttleTime as _0x53ba5f}from'rxjs/operators';const Oe=_0x3e45b7(0x143),T={};class x extends _0xdaec98{constructor(){var _0x27c610=_0x3e45b7;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x27c610(0x112),new Set());}[_0x3e45b7(0xd7)](_0xfb4bc){var _0x3e1de8=_0x3e45b7;return this[_0x3e1de8(0x11e)][_0x3e1de8(0xb5)](_0xfb4bc),_0x116f41(()=>this[_0x3e1de8(0x11e)][_0x3e1de8(0xc2)](_0xfb4bc));}[_0x3e45b7(0xe2)](_0x4ae6bd){var _0x300d9d=_0x3e45b7;return this[_0x300d9d(0x112)][_0x300d9d(0xb5)](_0x4ae6bd),_0x116f41(()=>this['_reporters'][_0x300d9d(0xc2)](_0x4ae6bd));}[_0x3e45b7(0x114)](_0x1ffec1){var _0x521b57=_0x3e45b7;return this[_0x521b57(0x11e)][_0x521b57(0xdc)](_0x1ffec1);}[_0x3e45b7(0xdb)](_0x55c493){var _0x27d6be=_0x3e45b7;return Array[_0x27d6be(0xc8)](this[_0x27d6be(0x112)])[_0x27d6be(0xa8)](_0x512293=>_0x512293(_0x55c493));}}var Ee=Object[_0x3e45b7(0xc9)],Ne=(_0x3ed32f,_0x4dda7b,_0x2971b2,_0x4dbc1b)=>{var _0x45b526=_0x3e45b7;for(var _0x483944=_0x4dbc1b>0x1?void 0x0:_0x4dbc1b?Ee(_0x4dda7b,_0x2971b2):_0x4dda7b,_0x20d81a=_0x3ed32f[_0x45b526(0xd6)]-0x1,_0x35b6e1;_0x20d81a>=0x0;_0x20d81a--)(_0x35b6e1=_0x3ed32f[_0x20d81a])&&(_0x483944=_0x35b6e1(_0x483944)||_0x483944);return _0x483944;},we=(_0x149109,_0x1c2448)=>(_0x4b3d2a,_0x15fd86)=>_0x1c2448(_0x4b3d2a,_0x15fd86,_0x149109);let m=class extends _0xdaec98{constructor(_0x138412){var _0x21b7f2=_0x3e45b7;super(),this[_0x21b7f2(0xb0)]=_0x138412,this[_0x21b7f2(0x11a)]();}[_0x3e45b7(0x11a)](){var _0x4d24b0=_0x3e45b7;[_0xd3dbbd['id'],_0x477976['id'],_0x3fc08a['id']][_0x4d24b0(0xde)](_0xd03e70=>{var _0x4c792e=_0x4d24b0;this[_0x4c792e(0xee)](this['_liveShareService'][_0x4c792e(0xd7)](_0xd03e70));});}};m=Ne([we(0x0,_0x2f4086(x))],m);var c=function(){var _0x519738=_0x3e45b7;return c=Object[_0x519738(0xb7)]||function(_0x41788c){var _0x6192f2=_0x519738;for(var _0x43d660,_0x123178=0x1,_0x25a38b=arguments[_0x6192f2(0xd6)];_0x123178<_0x25a38b;_0x123178++){_0x43d660=arguments[_0x123178];for(var _0x2ffbe1 in _0x43d660)Object[_0x6192f2(0xe5)][_0x6192f2(0xa4)]['call'](_0x43d660,_0x2ffbe1)&&(_0x41788c[_0x2ffbe1]=_0x43d660[_0x2ffbe1]);}return _0x41788c;},c[_0x519738(0x13d)](this,arguments);},Ce=function(_0x4c3dc1,_0x545d38){var _0x1b0159=_0x3e45b7,_0x482a1d={};for(var _0x1fd266 in _0x4c3dc1)Object['prototype'][_0x1b0159(0xa4)]['call'](_0x4c3dc1,_0x1fd266)&&_0x545d38[_0x1b0159(0x148)](_0x1fd266)<0x0&&(_0x482a1d[_0x1fd266]=_0x4c3dc1[_0x1fd266]);if(_0x4c3dc1!=null&&typeof Object[_0x1b0159(0x9c)]==_0x1b0159(0xa2)){for(var _0x5437de=0x0,_0x1fd266=Object[_0x1b0159(0x9c)](_0x4c3dc1);_0x5437de<_0x1fd266[_0x1b0159(0xd6)];_0x5437de++)_0x545d38[_0x1b0159(0x148)](_0x1fd266[_0x5437de])<0x0&&Object[_0x1b0159(0xe5)][_0x1b0159(0xdf)]['call'](_0x4c3dc1,_0x1fd266[_0x5437de])&&(_0x482a1d[_0x1fd266[_0x5437de]]=_0x4c3dc1[_0x1fd266[_0x5437de]]);}return _0x482a1d;},W=_0x4e64d3(function(_0x388de1,_0x1fe2ee){var _0x1df3c6=_0x3e45b7,_0xe878cc=_0x388de1[_0x1df3c6(0x141)],_0x25c115=_0x388de1['id'],_0x27aaad=_0x388de1['className'],_0x40e78f=_0x388de1['extend'],_0x327798=Ce(_0x388de1,[_0x1df3c6(0x141),'id','className',_0x1df3c6(0xb9)]),_0x2d7f0f=_0x1df3c6(0x13f)[_0x1df3c6(0x140)](_0x25c115,'\x20')[_0x1df3c6(0x140)](_0x27aaad||'')[_0x1df3c6(0xaf)](),_0x38b391=_0x4cae2e('_'['concat'](xe()));return Y(_0xe878cc,''['concat'](_0x25c115),{'defIds':_0xe878cc[_0x1df3c6(0x122)],'idSuffix':_0x38b391[_0x1df3c6(0xec)]},c({'ref':_0x1fe2ee,'className':_0x2d7f0f},_0x327798),_0x40e78f);});function Y(_0x4333d4,_0x30da47,_0x186eb3,_0x7a76ac,_0x1a9131){var _0x5c1adb=_0x3e45b7;return _0x11428c(_0x4333d4[_0x5c1adb(0x132)],c(c({'key':_0x30da47},De(_0x4333d4,_0x186eb3,_0x1a9131)),_0x7a76ac),(Le(_0x4333d4,_0x186eb3)[_0x5c1adb(0xba)]||[])[_0x5c1adb(0xa8)](function(_0x14d0f6,_0x483aef){var _0x3cfba5=_0x5c1adb;return Y(_0x14d0f6,''[_0x3cfba5(0x140)](_0x30da47,'-')['concat'](_0x4333d4[_0x3cfba5(0x132)],'-')[_0x3cfba5(0x140)](_0x483aef),_0x186eb3,void 0x0,_0x1a9131);}));}function De(_0x149d55,_0x31812b,_0x8f7c5c){var _0x426b7b=_0x3e45b7,_0x121199=c({},_0x149d55[_0x426b7b(0xe4)]);_0x8f7c5c!=null&&_0x8f7c5c[_0x426b7b(0xed)]&&_0x121199[_0x426b7b(0xf3)]==='colorChannel1'&&(_0x121199['fill']=_0x8f7c5c[_0x426b7b(0xed)]),_0x149d55['tag']===_0x426b7b(0x109)&&_0x121199['id']&&(_0x121199['id']=_0x121199['id']+_0x31812b[_0x426b7b(0xe6)]),Object[_0x426b7b(0x115)](_0x121199)[_0x426b7b(0xde)](function(_0x50964f){var _0x285906=_0x426b7b,_0x4fa4af=_0x50964f[0x0],_0xaf1872=_0x50964f[0x1];_0x4fa4af===_0x285906(0x109)&&typeof _0xaf1872==_0x285906(0x14d)&&(_0x121199[_0x4fa4af]=_0xaf1872[_0x285906(0x9d)](/url\(#(.*)\)/,_0x285906(0xc3)[_0x285906(0x140)](_0x31812b[_0x285906(0xe6)],')')));});var _0x53d713=_0x31812b['defIds'];return!_0x53d713||_0x53d713[_0x426b7b(0xd6)]===0x0||(_0x149d55[_0x426b7b(0x132)]==='use'&&_0x121199[_0x426b7b(0x117)]&&(_0x121199[_0x426b7b(0x117)]=_0x121199[_0x426b7b(0x117)]+_0x31812b['idSuffix']),Object[_0x426b7b(0x115)](_0x121199)['forEach'](function(_0x2b36db){var _0x27f74d=_0x426b7b,_0x54b0ef=_0x2b36db[0x0],_0x53e60f=_0x2b36db[0x1];typeof _0x53e60f==_0x27f74d(0x14d)&&(_0x121199[_0x54b0ef]=_0x53e60f[_0x27f74d(0x9d)](/url\(#(.*)\)/,'url(#$1'[_0x27f74d(0x140)](_0x31812b['idSuffix'],')')));})),_0x121199;}function Le(_0x598f5a,_0x13deb1){var _0x526dc1=_0x3e45b7,_0x51f2c8,_0x4b1d8b=_0x13deb1[_0x526dc1(0x122)];return!_0x4b1d8b||_0x4b1d8b[_0x526dc1(0xd6)]===0x0?_0x598f5a:_0x598f5a[_0x526dc1(0x132)]===_0x526dc1(0x106)&&(!((_0x51f2c8=_0x598f5a[_0x526dc1(0xba)])===null||_0x51f2c8===void 0x0)&&_0x51f2c8[_0x526dc1(0xd6)])?c(c({},_0x598f5a),{'children':_0x598f5a['children']['map'](function(_0xdd292){var _0x253dd6=_0x526dc1;return typeof _0xdd292[_0x253dd6(0xe4)]['id']==_0x253dd6(0x14d)&&_0x4b1d8b&&_0x4b1d8b[_0x253dd6(0x148)](_0xdd292[_0x253dd6(0xe4)]['id'])>-0x1?c(c({},_0xdd292),{'attrs':c(c({},_0xdd292[_0x253dd6(0xe4)]),{'id':_0xdd292[_0x253dd6(0xe4)]['id']+_0x13deb1[_0x253dd6(0xe6)]})}):_0xdd292;})}):_0x598f5a;}function xe(){var _0x1b7b60=_0x3e45b7;return Math[_0x1b7b60(0xcc)]()['toString'](0x24)[_0x1b7b60(0x9b)](0x2,0x8);}W[_0x3e45b7(0xd1)]='UniverIcon';var ye={'tag':'svg','attrs':{'fill':_0x3e45b7(0xf9),'viewBox':'0\x200\x2017\x2017','width':_0x3e45b7(0xd3),'height':_0x3e45b7(0xd3)},'children':[{'tag':_0x3e45b7(0x10b),'attrs':{'fill':'currentColor','d':_0x3e45b7(0x100)}},{'tag':_0x3e45b7(0x10b),'attrs':{'fill':_0x3e45b7(0xf6),'d':_0x3e45b7(0xaa),'fillRule':_0x3e45b7(0x144),'clipRule':_0x3e45b7(0x144)}}]},z=_0x4e64d3(function(_0x4389b4,_0x403393){var _0x40b07b=_0x3e45b7;return _0x11428c(W,Object['assign']({},_0x4389b4,{'id':_0x40b07b(0x126),'ref':_0x403393,'icon':ye}));});z['displayName']=_0x3e45b7(0x13e);var Re=Object[_0x3e45b7(0xc9)],B=(_0x460b2d,_0x37d71d,_0x1cdb8a,_0x112290)=>{var _0x26d55a=_0x3e45b7;for(var _0x5be282=_0x112290>0x1?void 0x0:_0x112290?Re(_0x37d71d,_0x1cdb8a):_0x37d71d,_0x78f029=_0x460b2d[_0x26d55a(0xd6)]-0x1,_0x258c06;_0x78f029>=0x0;_0x78f029--)(_0x258c06=_0x460b2d[_0x78f029])&&(_0x5be282=_0x258c06(_0x5be282)||_0x5be282);return _0x5be282;},f=(_0x360fad,_0x4db2ee)=>(_0x5bb26d,_0x244ea5)=>_0x4db2ee(_0x5bb26d,_0x244ea5,_0x360fad);let I=class extends _0x107445{constructor(_0xc42f27,_0x1e9d15,_0x1ec147){var _0x48ce43=_0x3e45b7;super(),d(this,_0x48ce43(0xb6),new Map()),(this[_0x48ce43(0xe7)]=_0xc42f27,this[_0x48ce43(0x13a)]=_0x1e9d15,this[_0x48ce43(0xd4)]=_0x1ec147,this[_0x48ce43(0x11a)]());}async[_0x3e45b7(0x102)](_0x531d84){var _0x36f9e7=_0x3e45b7;return this[_0x36f9e7(0xb6)][_0x36f9e7(0xdc)](_0x531d84)||await this['_startLiveShareCoordinator'](_0x531d84),this[_0x36f9e7(0xb6)][_0x36f9e7(0x133)](_0x531d84);}[_0x3e45b7(0x11a)](){var _0x36ca9a=_0x3e45b7;this[_0x36ca9a(0xe7)]['getTypeOfUnitAdded$'](_0x29ebc3[_0x36ca9a(0xae)])[_0x36ca9a(0xfc)](_0x5de08f(this[_0x36ca9a(0x120)]))[_0x36ca9a(0xe8)](async _0x44ed5e=>{var _0x482d7f=_0x36ca9a;const _0x5de206=_0x44ed5e[_0x482d7f(0xbf)]();this[_0x482d7f(0xb6)][_0x482d7f(0xdc)](_0x5de206)||this['_startLiveShareCoordinator'](_0x5de206);}),this[_0x36ca9a(0xe7)][_0x36ca9a(0xbb)](_0x29ebc3[_0x36ca9a(0xae)])[_0x36ca9a(0xfc)](_0x5de08f(this[_0x36ca9a(0x120)]))[_0x36ca9a(0xe8)](_0x3f1a88=>{var _0x4d72b2=_0x36ca9a;const _0x396064=_0x3f1a88[_0x4d72b2(0xbf)](),_0x360b86=this[_0x4d72b2(0xb6)][_0x4d72b2(0x133)](_0x396064);_0x360b86==null||_0x360b86[_0x4d72b2(0x145)]();});}async['_startLiveShareCoordinator'](_0x3c285b){var _0xc48ae0=_0x3e45b7;const _0x575603=await this[_0xc48ae0(0xd4)][_0xc48ae0(0x129)](_0x3c285b),_0x494af7=this[_0xc48ae0(0x13a)]['createInstance'](C,_0x3c285b,_0x575603);return _0x494af7[_0xc48ae0(0xa0)](),this['_entities'][_0xc48ae0(0x10d)](_0x3c285b,_0x494af7),_0x494af7;}};I=B([f(0x0,_0x28fccf),f(0x1,_0x2f4086(_0x560825)),f(0x2,_0x2f4086(_0x2a2f83))],I);var h=(_0x5d3727=>(_0x5d3727[_0x3e45b7(0x104)]='offline',_0x5d3727[_0x3e45b7(0xd8)]=_0x3e45b7(0xfd),_0x5d3727[_0x3e45b7(0xef)]=_0x3e45b7(0xf1),_0x5d3727[_0x3e45b7(0xd0)]=_0x3e45b7(0x99),_0x5d3727[_0x3e45b7(0x13c)]='presenting',_0x5d3727))(h||{});const Pe=_0x3e45b7(0x108),Ae=0xc8;let C=class extends _0x107445{constructor(_0x4f7708,_0x4e960e,_0x12c6ac,_0x4735d0,_0x70b6f7){var _0x2f84f1=_0x3e45b7;super(),d(this,_0x2f84f1(0x130),new _0x13000c('idle')),d(this,_0x2f84f1(0x10c),this['_status$'][_0x2f84f1(0xc0)]()),d(this,_0x2f84f1(0x11a),!0x1),d(this,_0x2f84f1(0x14c),null),d(this,_0x2f84f1(0xf2),null),(this['_unitID']=_0x4f7708,this[_0x2f84f1(0x12d)]=_0x4e960e,this[_0x2f84f1(0x149)]=_0x12c6ac,this[_0x2f84f1(0xb0)]=_0x4735d0,this[_0x2f84f1(0x113)]=_0x70b6f7);}get[_0x3e45b7(0x125)](){var _0x4f8d5f=_0x3e45b7;return this[_0x4f8d5f(0x130)][_0x4f8d5f(0x116)]();}[_0x3e45b7(0x145)](){var _0xb7a58a=_0x3e45b7,_0x1cccec;(_0x1cccec=this[_0xb7a58a(0x14c)])==null||_0x1cccec['dispose'](),this[_0xb7a58a(0x130)][_0xb7a58a(0xf5)](_0xb7a58a(0xfd)),this['_status$'][_0xb7a58a(0x12b)]();}[_0x3e45b7(0xa0)](){var _0x5c921c=_0x3e45b7;this[_0x5c921c(0x11a)]||(this[_0x5c921c(0x11a)]=!0x0,this[_0x5c921c(0x12d)][_0x5c921c(0xa5)][_0x5c921c(0xfc)](_0x5de08f(this[_0x5c921c(0x120)]))[_0x5c921c(0xe8)](_0x1d2f96=>{var _0x2e1aa1=_0x5c921c;switch(_0x1d2f96){case _0x3a9c72[_0x2e1aa1(0x104)]:this[_0x2e1aa1(0xdd)]();break;case _0x3a9c72[_0x2e1aa1(0x10a)]:this[_0x2e1aa1(0x11c)]();break;}}),this[_0x5c921c(0x12d)][_0x5c921c(0xc1)]['pipe'](_0x5de08f(this[_0x5c921c(0x120)]))[_0x5c921c(0xe8)](_0x17aec1=>{var _0x41a067=_0x5c921c;const {eventID:_0x323b56}=_0x17aec1;switch(_0x323b56){case _0x18b6b9[_0x41a067(0x14a)]:this[_0x41a067(0xc4)](_0x17aec1);break;case _0x18b6b9[_0x41a067(0x13b)]:this[_0x41a067(0x136)](_0x17aec1);break;case _0x18b6b9[_0x41a067(0x11f)]:this[_0x41a067(0x12c)]();break;case _0x18b6b9[_0x41a067(0xc6)]:this[_0x41a067(0x127)](_0x17aec1);break;}}));}[_0x3e45b7(0xb1)](){var _0x34c1d2=_0x3e45b7;this[_0x34c1d2(0x12d)][_0x34c1d2(0x11d)]({'eventID':_0x18b6b9[_0x34c1d2(0x10f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x34c1d2(0x118)]()}},this[_0x34c1d2(0x137)]);}[_0x3e45b7(0x9e)](){var _0xa5d82d=_0x3e45b7;this[_0xa5d82d(0x125)]===_0xa5d82d(0xa7)&&(this['_status$'][_0xa5d82d(0xf5)](_0xa5d82d(0xfd)),this['_collabSession'][_0xa5d82d(0x11d)]({'eventID':_0x18b6b9[_0xa5d82d(0x11f)],'data':{'unitID':this['_unitID']}},this[_0xa5d82d(0x137)]));}[_0x3e45b7(0x10e)](){var _0x483c48=_0x3e45b7;this[_0x483c48(0x125)]===_0x483c48(0x99)&&(this[_0x483c48(0x130)][_0x483c48(0xf5)](_0x483c48(0xf1)),this[_0x483c48(0xa3)]());}[_0x3e45b7(0xca)](){var _0x5e5ccc=_0x3e45b7;this[_0x5e5ccc(0x125)]===_0x5e5ccc(0xf1)&&this['_stopFollowing']();}['_handleNewHost'](_0x1883b1){var _0x52c8ff=_0x3e45b7;const {presenter:_0x3da788}=_0x1883b1[_0x52c8ff(0xff)],_0x434864=this[_0x52c8ff(0x12d)][_0x52c8ff(0x118)]();this[_0x52c8ff(0xf2)]=_0x3da788,_0x3da788===_0x434864?(this[_0x52c8ff(0x135)](),this[_0x52c8ff(0xe0)]()):this[_0x52c8ff(0x125)]!=='not-following'&&(this[_0x52c8ff(0xbc)](),this['_startFollowing']());}['_fetchOperations'](){var _0x2b3dde=_0x3e45b7;const _0x5dbac6={'eventID':_0x18b6b9[_0x2b3dde(0xda)]};this[_0x2b3dde(0x12d)][_0x2b3dde(0x11d)](_0x5dbac6,this[_0x2b3dde(0x137)]);}[_0x3e45b7(0x12c)](){var _0x1333c7=_0x3e45b7;this[_0x1333c7(0xf2)]=null,this[_0x1333c7(0x125)]!=='presenting'&&this['_beIdle']();}[_0x3e45b7(0x127)](_0xa381dd){var _0x3dd38f=_0x3e45b7;if(this['_status']===_0x3dd38f(0xf1)&&this['_presenter']===_0xa381dd[_0x3dd38f(0xff)]['memberID']){const _0xcd5a6c=_0x5ad6bd(_0xa381dd[_0x3dd38f(0xff)])['mutations'][_0x3dd38f(0xc5)]()[_0x3dd38f(0x103)](_0x5cd1a3=>_0x5cd1a3['id']===_0x44d4d9['id']);if(_0xcd5a6c){const _0x4c3ed7=_0xcd5a6c['params']['unitId'],_0x2859e2=_0xcd5a6c['params'][_0x3dd38f(0xcd)]['id'];setTimeout(()=>{var _0x26cc53=_0x3dd38f;this[_0x26cc53(0x113)][_0x26cc53(0x107)](_0x3fc08a['id'],{'unitId':_0x4c3ed7,'subUnitId':_0x2859e2},{'fromCollab':!0x0});});}}}[_0x3e45b7(0xe0)](){var _0x495df9=_0x3e45b7;this[_0x495df9(0x130)]['next'](_0x495df9(0xa7));const _0x264544=new Map(),_0x4186d8=this[_0x495df9(0x14c)]=new _0x26df93();_0x4186d8['add'](_0x116f41(()=>{var _0x1b56bd=_0x495df9;_0x264544[_0x1b56bd(0xde)](_0x28c374=>_0x28c374['complete']()),_0x264544[_0x1b56bd(0x12a)]();})),_0x4186d8[_0x495df9(0xb5)](this['_commandService'][_0x495df9(0xe9)](_0x2c475c=>{var _0x407171=_0x495df9,_0x1201c0;if(_0x2c475c[_0x407171(0xb3)]!==_0x144faf[_0x407171(0xf7)]||!this[_0x407171(0xb0)][_0x407171(0x114)](_0x2c475c['id']))return;const {id:_0x2ae548}=_0x2c475c;let _0x54cd66;_0x264544[_0x407171(0xdc)](_0x2ae548)?_0x54cd66=_0x264544[_0x407171(0x133)](_0x2ae548):(_0x54cd66=new _0x23d9b2(),_0x264544[_0x407171(0x10d)](_0x2ae548,_0x54cd66),_0x54cd66[_0x407171(0xfc)](_0x53ba5f((_0x1201c0=this[_0x407171(0x149)]['getConfig'](Pe))!=null?_0x1201c0:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x407171(0xe8)](_0x2f666e=>{var _0x3c0bf9=_0x407171;this[_0x3c0bf9(0x12d)]['send']({'eventID':_0x18b6b9[_0x3c0bf9(0x13b)],'data':{'unitID':this[_0x3c0bf9(0x137)],'operations':{[_0x2f666e['id']]:{'id':_0x2f666e['id'],'params':JSON[_0x3c0bf9(0x131)](_0x2f666e[_0x3c0bf9(0xab)])}}}},this[_0x3c0bf9(0x137)]);})),_0x54cd66[_0x407171(0xf5)](_0x2c475c);})),this[_0x495df9(0xb0)][_0x495df9(0xdb)](this[_0x495df9(0x137)])[_0x495df9(0xde)](_0x1752bf=>this['_collabSession'][_0x495df9(0x11d)]({'eventID':_0x18b6b9[_0x495df9(0x13b)],'data':{'unitID':this['_unitID'],'operations':{[_0x1752bf['id']]:{'id':_0x1752bf['id'],'params':JSON[_0x495df9(0x131)](_0x1752bf[_0x495df9(0xab)])}}}},this[_0x495df9(0x137)]));}[_0x3e45b7(0xbc)](){var _0x3a11cb=_0x3e45b7,_0x154e32;this[_0x3a11cb(0x130)][_0x3a11cb(0xf5)](_0x3a11cb(0xfd)),(_0x154e32=this[_0x3a11cb(0x14c)])==null||_0x154e32[_0x3a11cb(0x145)](),this[_0x3a11cb(0x14c)]=null;}[_0x3e45b7(0xa3)](){var _0x2590db=_0x3e45b7,_0x42880c;(_0x42880c=this[_0x2590db(0x14c)])==null||_0x42880c[_0x2590db(0x145)](),this['_status$'][_0x2590db(0xf5)](_0x2590db(0xf1));}['_beIdle'](){var _0x1b6508=_0x3e45b7,_0xf22e74;this[_0x1b6508(0x130)][_0x1b6508(0xf5)]('idle'),(_0xf22e74=this[_0x1b6508(0x14c)])==null||_0xf22e74['dispose'](),this[_0x1b6508(0x14c)]=null;}['_stopFollowing'](){var _0x166d48=_0x3e45b7,_0xb0d56b;this[_0x166d48(0x130)][_0x166d48(0xf5)]('not-following'),(_0xb0d56b=this['_commandDisposable'])==null||_0xb0d56b['dispose']();}[_0x3e45b7(0x136)](_0x30369a){var _0x16c953=_0x3e45b7;if([_0x16c953(0xa7),_0x16c953(0x99),_0x16c953(0x14b)][_0x16c953(0x9f)](this[_0x16c953(0x125)])||!_0x30369a['data']['presenter']||_0x30369a[_0x16c953(0xff)][_0x16c953(0xbd)]===this[_0x16c953(0x12d)][_0x16c953(0x118)]())return;this[_0x16c953(0x125)]===_0x16c953(0xfd)&&this[_0x16c953(0xa3)]();const _0x575acf=_0x30369a['data'][_0x16c953(0xfb)];Object[_0x16c953(0x139)](_0x575acf)[_0x16c953(0xde)](_0x2e95f9=>{var _0x5ad781=_0x16c953;this[_0x5ad781(0x113)]['executeCommand'](_0x2e95f9['id'],_0x2e95f9[_0x5ad781(0xab)]?JSON[_0x5ad781(0x119)](_0x2e95f9['params']):null,{'fromCollab':!0x0});});}[_0x3e45b7(0xdd)](){var _0x5b6e6b=_0x3e45b7,_0x344d2c;this[_0x5b6e6b(0x130)][_0x5b6e6b(0xf5)](_0x5b6e6b(0x14b)),(_0x344d2c=this[_0x5b6e6b(0x14c)])==null||_0x344d2c[_0x5b6e6b(0x145)]();}[_0x3e45b7(0x11c)](){var _0x8b4a50=_0x3e45b7;this[_0x8b4a50(0x130)][_0x8b4a50(0xf5)](_0x8b4a50(0xfd)),this[_0x8b4a50(0x138)]();}};C=B([f(0x2,_0x9f8486),f(0x3,_0x2f4086(x)),f(0x4,_0x254d5c)],C);function Te(){var _0x157c6e=_0x3e45b7;const _0x555c9a=_0x393858(I),_0x15f73f=_0x393858(_0x28fccf),_0x398ca2=_0x25cc83(()=>_0x15f73f[_0x157c6e(0xce)](_0x29ebc3[_0x157c6e(0xae)]),void 0x0,!0x1,[]),[_0x5226dd,_0x5df062]=_0x241cbf(null),[_0x482188,_0x141c00]=_0x241cbf(h[_0x157c6e(0xd8)]),_0x5bb4e1=_0x4cae2e(null);return _0x42ec8c(()=>(_0x398ca2&&_0x555c9a[_0x157c6e(0x102)](_0x398ca2[_0x157c6e(0xbf)]())[_0x157c6e(0x134)](_0x28047c=>{var _0x1a0ce2=_0x157c6e;_0x5df062(_0x28047c),_0x5bb4e1[_0x1a0ce2(0xec)]=_0x28047c[_0x1a0ce2(0x10c)][_0x1a0ce2(0xe8)](_0x5570ed=>{_0x141c00(_0x5570ed);});}),()=>{var _0x3ba425=_0x157c6e,_0x50920d;(_0x50920d=_0x5bb4e1[_0x3ba425(0xec)])==null||_0x50920d['unsubscribe'](),_0x5bb4e1[_0x3ba425(0xec)]=null;}),[_0x398ca2,_0x555c9a]),_0x5226dd?_0x180c41(_0x186175,{'align':_0x157c6e(0x123),'disabled':_0x482188===h['OFFLINE'],'className':_0x157c6e(0x111),'overlay':_0x180c41($e,{'status':_0x482188,'coordinator':_0x5226dd}),'children':_0x180c41('button',{'className':_0x3bb5ab(_0x157c6e(0x146),{'univer-cursor-not-allowed':_0x482188===h[_0x157c6e(0x104)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x482188!==h[_0x157c6e(0x104)]}),'type':_0x157c6e(0xf4),'children':_0x180c41(z,{'className':_0x157c6e(0xb4)})})}):null;}function $e(_0x434714){var _0x5b8bab=_0x3e45b7;const {status:_0x211b85,coordinator:_0x24a92d}=_0x434714;switch(_0x211b85){case h[_0x5b8bab(0xd8)]:return _0x180c41(Fe,{'coordinator':_0x24a92d});case h[_0x5b8bab(0xef)]:return _0x180c41(He,{'coordinator':_0x24a92d});case h['NOT_FOLLOWING']:return _0x180c41(je,{'coordinator':_0x24a92d});case h['OFFLINE']:return _0x180c41(Ve,{});case h[_0x5b8bab(0x13c)]:return _0x180c41(Ue,{'coordinator':_0x24a92d});default:return null;}}function _0x3717(){var _0x404afb=['path','status$','set','startFollowing','LIVESHARE_REQUEST_HOST','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','\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','_reporters','_commandService','shouldShareOperation','entries','getValue','xlink:href','getMemberID','parse','_init','_uiPartsService','_handleOnline','send','_sharedOperations','LIVESHARE_TERMINATE','dispose$','Present\x20this\x20document','defIds','end','div','_status','live-share-single','_handleNewChangeSets','_config','requireSession','clear','complete','_handleTerminate','_collabSession','190257hXxPKl','pluginName','_status$','stringify','tag','get','then','_stopFollowing','_handleOperation','_unitID','_fetchOperations','values','_injector','LIVESHARE_OPERATION','PRESENTING','apply','LiveShareSingle','univerjs-icon\x20univerjs-icon-','concat','icon','960802OugUZA','live-share.config','evenodd','dispose','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','787928rhfLlj','indexOf','_configService','LIVESHARE_NEW_HOST','offline','_commandDisposable','string','not-following','You\x27re\x20presenting\x20the\x20document','substring','getOwnPropertySymbols','replace','stopPresenting','includes','init','text','function','_startFollowing','hasOwnProperty','sessionStatus$','registerComponent','presenting','map','onStarting','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','params','setConfig','8GYaGmT','UNIVER_SHEET','trim','_liveShareService','tryStartPresenting','Start\x20following','type','univer-size-4','add','_entities','assign','_mountLiveShare','extend','children','getTypeOfUnitDisposed$','_stopPresenting','presenter','UNIVER_UNKNOWN','getUnitId','asObservable','event$','delete','url(#$1','_handleNewHost','reverse','NEW_CHANGESETS','symbol','from','getOwnPropertyDescriptor','stopFollowing','21190rqmbZb','random','sheet','getCurrentTypeOfUnit$','default','NOT_FOLLOWING','displayName','707406oLLTqn','1em','_collabSessionService','defineProperty','length','registerSharedOperation','IDLE','override','LIVESHARE_FETCH_OPERATIONS','getInitialStates','has','_handleOffline','forEach','propertyIsEnumerable','_startPresenting','You\x27are\x20offline.','registerInitialStateReporter','Start','attrs','prototype','idSuffix','_univerInstanceService','subscribe','onCommandExecuted','Stop\x20following','425790NshJQg','current','colorChannel1','disposeWithMe','FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','following','_presenter','fill','button','next','currentColor','OPERATION','2648298FbQFTO','none','5OBFQvc','operations','pipe','idle','4761HuBmsZ','data','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','You\x27re\x20not\x20following\x20the\x20presenter','getLiveShareCoordinator','find','OFFLINE','small','defs','executeCommand','SAME_OPERATION_SHARE_INTERVAL','mask','ONLINE'];_0x3717=function(){return _0x404afb;};return _0x3717();}function Fe(_0x1ced72){var _0x151184=_0x3e45b7;const {coordinator:_0x692d64}=_0x1ced72;return _0x13d4b9(_0x57e8f0,{'children':[_0x180c41(_0x151184(0x124),{'className':_0x151184(0x110),'children':_0x151184(0x121)}),_0x180c41(_0x44d8e6,{'size':_0x151184(0x105),'type':_0x151184(0xcf),'onClick':()=>_0x692d64[_0x151184(0xb1)](),'children':_0x151184(0xe3)})]});}function He(_0x2ce8d6){var _0x54a3d8=_0x3e45b7;const {coordinator:_0xcb84ce}=_0x2ce8d6;return _0x13d4b9(_0x57e8f0,{'children':[_0x180c41('div',{'className':_0x54a3d8(0x110),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x180c41(_0x44d8e6,{'size':_0x54a3d8(0x105),'type':_0x54a3d8(0xcf),'onClick':()=>_0xcb84ce[_0x54a3d8(0xca)](),'children':_0x54a3d8(0xea)})]});}function je(_0x3f5d52){var _0x308bc9=_0x3e45b7;const {coordinator:_0x3b4761}=_0x3f5d52;return _0x13d4b9(_0x57e8f0,{'children':[_0x180c41(_0x308bc9(0x124),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x308bc9(0x101)}),_0x180c41(_0x44d8e6,{'size':_0x308bc9(0x105),'type':_0x308bc9(0xa1),'onClick':()=>_0x3b4761[_0x308bc9(0x10e)](),'children':_0x308bc9(0xb2)})]});}function Ue(_0x15e4c3){var _0x599bc9=_0x3e45b7;const {coordinator:_0x10d6e4}=_0x15e4c3;return _0x13d4b9(_0x57e8f0,{'children':[_0x180c41(_0x599bc9(0x124),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x599bc9(0x9a)}),_0x180c41(_0x44d8e6,{'size':'small','type':'default','onClick':()=>_0x10d6e4['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x36cb0f=_0x3e45b7;return _0x180c41(_0x57e8f0,{'children':_0x36cb0f(0xe1)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x10159b,_0xad7a81,_0x58bd26,_0x2b4a65)=>{var _0x15cb61=_0x3e45b7;for(var _0x5adf96=_0x2b4a65>0x1?void 0x0:_0x2b4a65?Me(_0xad7a81,_0x58bd26):_0xad7a81,_0xbbfb7c=_0x10159b[_0x15cb61(0xd6)]-0x1,_0x4b7e64;_0xbbfb7c>=0x0;_0xbbfb7c--)(_0x4b7e64=_0x10159b[_0xbbfb7c])&&(_0x5adf96=_0x4b7e64(_0x5adf96)||_0x5adf96);return _0x5adf96;},$=(_0x2dcd09,_0x480343)=>(_0x15eccb,_0x5a08dd)=>_0x480343(_0x15eccb,_0x5a08dd,_0x2dcd09);let b=class extends _0xdaec98{constructor(_0x1b7ffc,_0x304918){var _0x38b980=_0x3e45b7;super(),this[_0x38b980(0x13a)]=_0x1b7ffc,this[_0x38b980(0x11b)]=_0x304918,this[_0x38b980(0xb8)]();}[_0x3e45b7(0xb8)](){var _0x31d11c=_0x3e45b7;this['disposeWithMe'](this[_0x31d11c(0x11b)][_0x31d11c(0xa6)](_0x335c7c['HEADER_MENU'],()=>_0x49388b(Te,this[_0x31d11c(0x13a)])));}};b=ke([$(0x0,_0x2f4086(_0x560825)),$(0x1,_0xc0def6)],b);var Ge=Object[_0x3e45b7(0xd5)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x26bb41,_0x64fa2d,_0x3a5fdf)=>_0x64fa2d in _0x26bb41?Ge(_0x26bb41,_0x64fa2d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a5fdf}):_0x26bb41[_0x64fa2d]=_0x3a5fdf,ze=(_0x185978,_0x588eae,_0x5e1092,_0x2a29c0)=>{var _0x2e0fce=_0x3e45b7;for(var _0x50cfe0=_0x2a29c0>0x1?void 0x0:_0x2a29c0?We(_0x588eae,_0x5e1092):_0x588eae,_0x5ef23d=_0x185978[_0x2e0fce(0xd6)]-0x1,_0xd18c4f;_0x5ef23d>=0x0;_0x5ef23d--)(_0xd18c4f=_0x185978[_0x5ef23d])&&(_0x50cfe0=_0xd18c4f(_0x50cfe0)||_0x50cfe0);return _0x50cfe0;},F=(_0x26164c,_0x338063)=>(_0x1f609b,_0x22e167)=>_0x338063(_0x1f609b,_0x22e167,_0x26164c),Z=(_0x158257,_0x5c28fa,_0x32cfef)=>Ye(_0x158257,typeof _0x5c28fa!=_0x3e45b7(0xc7)?_0x5c28fa+'':_0x5c28fa,_0x32cfef);const Be=_0x3e45b7(0xf0);let O=class extends _0x9743b0{constructor(_0x21b573=T,_0x3ef9ce,_0x8930d8){var _0x3c916f=_0x3e45b7;super(),this['_config']=_0x21b573,this[_0x3c916f(0x13a)]=_0x3ef9ce,this[_0x3c916f(0x149)]=_0x8930d8;const {..._0x331495}=_0x427f31({},T,this[_0x3c916f(0x128)]);this[_0x3c916f(0x149)][_0x3c916f(0xac)](Oe,_0x331495);}[_0x3e45b7(0xa9)](){var _0x407e78=_0x3e45b7;_0x46fd1d(this[_0x407e78(0x13a)],_0x5739f4([[x],[I],[m],[b]],this[_0x407e78(0x128)][_0x407e78(0xd9)])),_0x454bd6(this[_0x407e78(0x13a)],[[m]]);}['onRendered'](){var _0x40b616=_0x3e45b7;_0x454bd6(this[_0x40b616(0x13a)],[[b]]);}};function _0x47ab(_0x101aba,_0x4b04e5){var _0x3717e9=_0x3717();return _0x47ab=function(_0x47abc5,_0x519575){_0x47abc5=_0x47abc5-0x99;var _0x162112=_0x3717e9[_0x47abc5];return _0x162112;},_0x47ab(_0x101aba,_0x4b04e5);}Z(O,'type',_0x29ebc3[_0x3e45b7(0xbe)]),Z(O,_0x3e45b7(0x12f),Be),O=ze([_0x18fcd3(_0x303a11),F(0x1,_0x2f4086(_0x560825)),F(0x2,_0x9f8486)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,x as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1e32a2,_0x45e888){var _0x23d14b=_0x5a9a,_0xcae9b=_0x1e32a2();while(!![]){try{var _0x2b0e98=parseInt(_0x23d14b(0x270))/0x1+-parseInt(_0x23d14b(0x2bc))/0x2+parseInt(_0x23d14b(0x250))/0x3*(-parseInt(_0x23d14b(0x208))/0x4)+parseInt(_0x23d14b(0x1f4))/0x5+parseInt(_0x23d14b(0x1d3))/0x6*(-parseInt(_0x23d14b(0x28e))/0x7)+parseInt(_0x23d14b(0x257))/0x8+parseInt(_0x23d14b(0x22d))/0x9;if(_0x2b0e98===_0x45e888)break;else _0xcae9b['push'](_0xcae9b['shift']());}catch(_0x10d9f3){_0xcae9b['push'](_0xcae9b['shift']());}}}(_0x4b0b,0x2a55d),function(_0x397456,_0x5a8d24){var _0x361c5d=_0x5a9a;typeof exports==_0x361c5d(0x280)&&typeof module<'u'?_0x5a8d24(exports,require(_0x361c5d(0x251)),require(_0x361c5d(0x279)),require(_0x361c5d(0x1dc)),require(_0x361c5d(0x1ff)),require(_0x361c5d(0x24b)),require('react/jsx-runtime'),require(_0x361c5d(0x27d)),require('react'),require(_0x361c5d(0x1cd)),require(_0x361c5d(0x2a7)),require(_0x361c5d(0x274))):typeof define==_0x361c5d(0x29f)&&define[_0x361c5d(0x28d)]?define([_0x361c5d(0x20a),_0x361c5d(0x251),_0x361c5d(0x279),_0x361c5d(0x1dc),_0x361c5d(0x1ff),_0x361c5d(0x24b),_0x361c5d(0x27e),_0x361c5d(0x27d),_0x361c5d(0x211),_0x361c5d(0x1cd),_0x361c5d(0x2a7),_0x361c5d(0x274)],_0x5a8d24):(_0x397456=typeof globalThis<'u'?globalThis:_0x397456||self,_0x5a8d24(_0x397456['UniverProLiveShare']={},_0x397456[_0x361c5d(0x236)],_0x397456[_0x361c5d(0x2a3)],_0x397456[_0x361c5d(0x20b)],_0x397456[_0x361c5d(0x1c6)],_0x397456[_0x361c5d(0x253)],_0x397456[_0x361c5d(0x226)],_0x397456['UniverDesign'],_0x397456[_0x361c5d(0x226)],_0x397456[_0x361c5d(0x231)],_0x397456[_0x361c5d(0x2a7)],_0x397456[_0x361c5d(0x2a7)][_0x361c5d(0x27f)]));}(this,function(_0x5363a4,_0x381a11,_0x437405,_0x5c601e,_0x52cf18,_0xad327c,_0x23b906,_0x582406,_0x271b81,_0x2e0c6d,_0xdcc746,_0x20da4b){'use strict';var _0x3eb520=_0x5a9a;var _0x2e945a=Object['defineProperty'],_0x5f0c79=(_0x3270d7,_0x30eee5,_0x1d9199)=>_0x30eee5 in _0x3270d7?_0x2e945a(_0x3270d7,_0x30eee5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d9199}):_0x3270d7[_0x30eee5]=_0x1d9199,_0x475d44=(_0x27e222,_0x9721af,_0x2e61c7)=>_0x5f0c79(_0x27e222,typeof _0x9721af!=_0x3eb520(0x2ba)?_0x9721af+'':_0x9721af,_0x2e61c7);const _0x3e3326=_0x3eb520(0x2b7),_0x3081e8={};class _0x35a285 extends _0x437405['Disposable']{constructor(){var _0x1be8bc=_0x3eb520;super(...arguments),_0x475d44(this,'_sharedOperations',new Set()),_0x475d44(this,_0x1be8bc(0x1d5),new Set());}[_0x3eb520(0x1f3)](_0x4d4ece){var _0x3b6646=_0x3eb520;return this[_0x3b6646(0x21d)]['add'](_0x4d4ece),_0x437405[_0x3b6646(0x1d8)](()=>this[_0x3b6646(0x21d)][_0x3b6646(0x262)](_0x4d4ece));}['registerInitialStateReporter'](_0x116230){var _0x2a4c8c=_0x3eb520;return this[_0x2a4c8c(0x1d5)][_0x2a4c8c(0x246)](_0x116230),_0x437405[_0x2a4c8c(0x1d8)](()=>this[_0x2a4c8c(0x1d5)]['delete'](_0x116230));}[_0x3eb520(0x1e0)](_0x34aa3c){var _0x1d8349=_0x3eb520;return this[_0x1d8349(0x21d)][_0x1d8349(0x214)](_0x34aa3c);}[_0x3eb520(0x1f7)](_0x3c60b6){var _0x6846e2=_0x3eb520;return Array[_0x6846e2(0x203)](this[_0x6846e2(0x1d5)])['map'](_0x3bc9cb=>_0x3bc9cb(_0x3c60b6));}}var _0x1c980c=Object[_0x3eb520(0x1da)],_0x4a7f13=(_0x171d08,_0x557049,_0x5835b2,_0x586ade)=>{var _0x73e850=_0x3eb520;for(var _0x4f85b5=_0x586ade>0x1?void 0x0:_0x586ade?_0x1c980c(_0x557049,_0x5835b2):_0x557049,_0x50af40=_0x171d08[_0x73e850(0x1d4)]-0x1,_0x204ff8;_0x50af40>=0x0;_0x50af40--)(_0x204ff8=_0x171d08[_0x50af40])&&(_0x4f85b5=_0x204ff8(_0x4f85b5)||_0x4f85b5);return _0x4f85b5;},_0x519916=(_0x3d1326,_0xc3780d)=>(_0x4cb475,_0x131cfb)=>_0xc3780d(_0x4cb475,_0x131cfb,_0x3d1326);let _0x49bd6f=class extends _0x437405[_0x3eb520(0x26c)]{constructor(_0x2711c8){var _0x2f7234=_0x3eb520;super(),this[_0x2f7234(0x1c7)]=_0x2711c8,this['_init']();}['_init'](){var _0x125f4e=_0x3eb520;[_0x52cf18[_0x125f4e(0x227)]['id'],_0x52cf18['SetScrollOperation']['id'],_0x5c601e['SetWorksheetActiveOperation']['id']][_0x125f4e(0x239)](_0x236ffa=>{var _0x3df992=_0x125f4e;this[_0x3df992(0x1c5)](this[_0x3df992(0x1c7)]['registerSharedOperation'](_0x236ffa));});}};_0x49bd6f=_0x4a7f13([_0x519916(0x0,_0x437405[_0x3eb520(0x1de)](_0x35a285))],_0x49bd6f);var _0x42e3d5=function(){var _0xc421a8=_0x3eb520;return _0x42e3d5=Object[_0xc421a8(0x276)]||function(_0x40bfee){var _0x12d9dc=_0xc421a8;for(var _0x5abd19,_0x3b4eb2=0x1,_0x587b8e=arguments[_0x12d9dc(0x1d4)];_0x3b4eb2<_0x587b8e;_0x3b4eb2++){_0x5abd19=arguments[_0x3b4eb2];for(var _0x4b53a6 in _0x5abd19)Object[_0x12d9dc(0x2aa)][_0x12d9dc(0x225)][_0x12d9dc(0x2b4)](_0x5abd19,_0x4b53a6)&&(_0x40bfee[_0x4b53a6]=_0x5abd19[_0x4b53a6]);}return _0x40bfee;},_0x42e3d5[_0xc421a8(0x230)](this,arguments);},_0x4dbda0=function(_0xa6cef3,_0x33a7f3){var _0x6e1532=_0x3eb520,_0x2c230a={};for(var _0x19b7af in _0xa6cef3)Object['prototype']['hasOwnProperty']['call'](_0xa6cef3,_0x19b7af)&&_0x33a7f3[_0x6e1532(0x243)](_0x19b7af)<0x0&&(_0x2c230a[_0x19b7af]=_0xa6cef3[_0x19b7af]);if(_0xa6cef3!=null&&typeof Object[_0x6e1532(0x26d)]==_0x6e1532(0x29f)){for(var _0x47bbd8=0x0,_0x19b7af=Object['getOwnPropertySymbols'](_0xa6cef3);_0x47bbd8<_0x19b7af[_0x6e1532(0x1d4)];_0x47bbd8++)_0x33a7f3[_0x6e1532(0x243)](_0x19b7af[_0x47bbd8])<0x0&&Object[_0x6e1532(0x2aa)][_0x6e1532(0x201)][_0x6e1532(0x2b4)](_0xa6cef3,_0x19b7af[_0x47bbd8])&&(_0x2c230a[_0x19b7af[_0x47bbd8]]=_0xa6cef3[_0x19b7af[_0x47bbd8]]);}return _0x2c230a;},_0x3b7bb6=_0x271b81[_0x3eb520(0x1eb)](function(_0x3472c7,_0xb5e22d){var _0x5736ab=_0x3eb520,_0x35eccc=_0x3472c7[_0x5736ab(0x286)],_0x34c900=_0x3472c7['id'],_0x530561=_0x3472c7[_0x5736ab(0x21b)],_0x152041=_0x3472c7[_0x5736ab(0x21f)],_0x4e75a1=_0x4dbda0(_0x3472c7,['icon','id',_0x5736ab(0x21b),_0x5736ab(0x21f)]),_0x3bd6c3=_0x5736ab(0x25a)['concat'](_0x34c900,'\x20')['concat'](_0x530561||'')[_0x5736ab(0x248)](),_0x51a41c=_0x271b81[_0x5736ab(0x24a)]('_'[_0x5736ab(0x1c8)](_0x378f25()));return _0x6be5b3(_0x35eccc,''['concat'](_0x34c900),{'defIds':_0x35eccc[_0x5736ab(0x1ca)],'idSuffix':_0x51a41c[_0x5736ab(0x1e5)]},_0x42e3d5({'ref':_0xb5e22d,'className':_0x3bd6c3},_0x4e75a1),_0x152041);});function _0x6be5b3(_0x490ee9,_0x46525d,_0x898b99,_0x8ec3d2,_0x23d42d){var _0x1632cf=_0x3eb520;return _0x271b81[_0x1632cf(0x256)](_0x490ee9[_0x1632cf(0x265)],_0x42e3d5(_0x42e3d5({'key':_0x46525d},_0x235de3(_0x490ee9,_0x898b99,_0x23d42d)),_0x8ec3d2),(_0x29992f(_0x490ee9,_0x898b99)[_0x1632cf(0x24d)]||[])[_0x1632cf(0x290)](function(_0x165620,_0x1db528){var _0x5ef748=_0x1632cf;return _0x6be5b3(_0x165620,''[_0x5ef748(0x1c8)](_0x46525d,'-')[_0x5ef748(0x1c8)](_0x490ee9[_0x5ef748(0x265)],'-')[_0x5ef748(0x1c8)](_0x1db528),_0x898b99,void 0x0,_0x23d42d);}));}function _0x235de3(_0x148d4f,_0x45cc80,_0x12e78a){var _0x10e41d=_0x3eb520,_0xeafb2d=_0x42e3d5({},_0x148d4f[_0x10e41d(0x264)]);_0x12e78a!=null&&_0x12e78a[_0x10e41d(0x22f)]&&_0xeafb2d[_0x10e41d(0x28b)]==='colorChannel1'&&(_0xeafb2d[_0x10e41d(0x28b)]=_0x12e78a[_0x10e41d(0x22f)]),_0x148d4f[_0x10e41d(0x265)]==='mask'&&_0xeafb2d['id']&&(_0xeafb2d['id']=_0xeafb2d['id']+_0x45cc80['idSuffix']),Object[_0x10e41d(0x1e4)](_0xeafb2d)['forEach'](function(_0x3b9eb2){var _0x2e44c8=_0x10e41d,_0x27f454=_0x3b9eb2[0x0],_0x5dc6b0=_0x3b9eb2[0x1];_0x27f454===_0x2e44c8(0x2ab)&&typeof _0x5dc6b0=='string'&&(_0xeafb2d[_0x27f454]=_0x5dc6b0[_0x2e44c8(0x1e9)](/url\(#(.*)\)/,_0x2e44c8(0x263)[_0x2e44c8(0x1c8)](_0x45cc80[_0x2e44c8(0x287)],')')));});var _0x48eb63=_0x45cc80[_0x10e41d(0x1ca)];return!_0x48eb63||_0x48eb63[_0x10e41d(0x1d4)]===0x0||(_0x148d4f['tag']===_0x10e41d(0x23d)&&_0xeafb2d[_0x10e41d(0x275)]&&(_0xeafb2d[_0x10e41d(0x275)]=_0xeafb2d[_0x10e41d(0x275)]+_0x45cc80['idSuffix']),Object[_0x10e41d(0x1e4)](_0xeafb2d)['forEach'](function(_0x348487){var _0x118a5a=_0x10e41d,_0x16113c=_0x348487[0x0],_0x1bc8e5=_0x348487[0x1];typeof _0x1bc8e5==_0x118a5a(0x1cc)&&(_0xeafb2d[_0x16113c]=_0x1bc8e5[_0x118a5a(0x1e9)](/url\(#(.*)\)/,'url(#$1'[_0x118a5a(0x1c8)](_0x45cc80[_0x118a5a(0x287)],')')));})),_0xeafb2d;}function _0x29992f(_0x5045f1,_0x40a377){var _0x1b6126=_0x3eb520,_0xc5236b,_0x3d7d95=_0x40a377[_0x1b6126(0x1ca)];return!_0x3d7d95||_0x3d7d95[_0x1b6126(0x1d4)]===0x0?_0x5045f1:_0x5045f1[_0x1b6126(0x265)]===_0x1b6126(0x1fb)&&(!((_0xc5236b=_0x5045f1[_0x1b6126(0x24d)])===null||_0xc5236b===void 0x0)&&_0xc5236b[_0x1b6126(0x1d4)])?_0x42e3d5(_0x42e3d5({},_0x5045f1),{'children':_0x5045f1['children'][_0x1b6126(0x290)](function(_0x32e642){var _0xe36b08=_0x1b6126;return typeof _0x32e642['attrs']['id']==_0xe36b08(0x1cc)&&_0x3d7d95&&_0x3d7d95[_0xe36b08(0x243)](_0x32e642[_0xe36b08(0x264)]['id'])>-0x1?_0x42e3d5(_0x42e3d5({},_0x32e642),{'attrs':_0x42e3d5(_0x42e3d5({},_0x32e642[_0xe36b08(0x264)]),{'id':_0x32e642['attrs']['id']+_0x40a377['idSuffix']})}):_0x32e642;})}):_0x5045f1;}function _0x378f25(){var _0x3c0c7c=_0x3eb520;return Math[_0x3c0c7c(0x1fa)]()['toString'](0x24)['substring'](0x2,0x8);}_0x3b7bb6[_0x3eb520(0x281)]=_0x3eb520(0x25f);var _0x447ff2={'tag':'svg','attrs':{'fill':_0x3eb520(0x1ee),'viewBox':_0x3eb520(0x273),'width':_0x3eb520(0x2b8),'height':_0x3eb520(0x2b8)},'children':[{'tag':_0x3eb520(0x2bb),'attrs':{'fill':_0x3eb520(0x20c),'d':_0x3eb520(0x26b)}},{'tag':_0x3eb520(0x2bb),'attrs':{'fill':'currentColor','d':_0x3eb520(0x247),'fillRule':_0x3eb520(0x1ed),'clipRule':_0x3eb520(0x1ed)}}]},_0x10a1ab=_0x271b81[_0x3eb520(0x1eb)](function(_0x1cd3b9,_0x249bab){var _0x61b7e2=_0x3eb520;return _0x271b81[_0x61b7e2(0x256)](_0x3b7bb6,Object[_0x61b7e2(0x276)]({},_0x1cd3b9,{'id':_0x61b7e2(0x213),'ref':_0x249bab,'icon':_0x447ff2}));});_0x10a1ab[_0x3eb520(0x281)]=_0x3eb520(0x1db);var _0x3a72d2=Object[_0x3eb520(0x1da)],_0x4ea0c5=(_0x2b24c8,_0x3e7272,_0x24aeb9,_0x519b0b)=>{var _0x57b43b=_0x3eb520;for(var _0x4482d2=_0x519b0b>0x1?void 0x0:_0x519b0b?_0x3a72d2(_0x3e7272,_0x24aeb9):_0x3e7272,_0xb7c0b9=_0x2b24c8[_0x57b43b(0x1d4)]-0x1,_0x122502;_0xb7c0b9>=0x0;_0xb7c0b9--)(_0x122502=_0x2b24c8[_0xb7c0b9])&&(_0x4482d2=_0x122502(_0x4482d2)||_0x4482d2);return _0x4482d2;},_0x3cf2f4=(_0x2c053e,_0x4e5b4c)=>(_0x51e379,_0x322f5f)=>_0x4e5b4c(_0x51e379,_0x322f5f,_0x2c053e);_0x5363a4[_0x3eb520(0x26f)]=class extends _0x437405['RxDisposable']{constructor(_0x2bd096,_0x2e52bc,_0x1dec8d){var _0x3ee6e=_0x3eb520;super(),_0x475d44(this,_0x3ee6e(0x223),new Map()),(this[_0x3ee6e(0x1fe)]=_0x2bd096,this[_0x3ee6e(0x1d1)]=_0x2e52bc,this['_collabSessionService']=_0x1dec8d,this[_0x3ee6e(0x1d0)]());}async[_0x3eb520(0x2a8)](_0x43adba){var _0x2ce429=_0x3eb520;return this[_0x2ce429(0x223)][_0x2ce429(0x214)](_0x43adba)||await this[_0x2ce429(0x295)](_0x43adba),this['_entities']['get'](_0x43adba);}[_0x3eb520(0x1d0)](){var _0xbea095=_0x3eb520;this[_0xbea095(0x1fe)]['getTypeOfUnitAdded$'](_0x437405[_0xbea095(0x215)]['UNIVER_SHEET'])[_0xbea095(0x28f)](_0x20da4b[_0xbea095(0x1c9)](this['dispose$']))[_0xbea095(0x1ea)](async _0x29d742=>{var _0x570b57=_0xbea095;const _0x4b907d=_0x29d742[_0x570b57(0x28c)]();this[_0x570b57(0x223)]['has'](_0x4b907d)||this['_startLiveShareCoordinator'](_0x4b907d);}),this[_0xbea095(0x1fe)][_0xbea095(0x20e)](_0x437405['UniverInstanceType'][_0xbea095(0x260)])['pipe'](_0x20da4b['takeUntil'](this[_0xbea095(0x2b9)]))[_0xbea095(0x1ea)](_0xb8cad7=>{var _0x338e95=_0xbea095;const _0x30c009=_0xb8cad7[_0x338e95(0x28c)](),_0x5c1f43=this[_0x338e95(0x223)]['get'](_0x30c009);_0x5c1f43==null||_0x5c1f43['dispose']();});}async[_0x3eb520(0x295)](_0x5ac32a){var _0x2a9b4f=_0x3eb520;const _0x213b27=await this[_0x2a9b4f(0x202)][_0x2a9b4f(0x218)](_0x5ac32a),_0x1438fb=this[_0x2a9b4f(0x1d1)]['createInstance'](_0x5363a4[_0x2a9b4f(0x297)],_0x5ac32a,_0x213b27);return _0x1438fb[_0x2a9b4f(0x26e)](),this[_0x2a9b4f(0x223)]['set'](_0x5ac32a,_0x1438fb),_0x1438fb;}},_0x5363a4[_0x3eb520(0x26f)]=_0x4ea0c5([_0x3cf2f4(0x0,_0x437405[_0x3eb520(0x217)]),_0x3cf2f4(0x1,_0x437405[_0x3eb520(0x1de)](_0x437405[_0x3eb520(0x267)])),_0x3cf2f4(0x2,_0x437405[_0x3eb520(0x1de)](_0x381a11['CollaborationSessionService']))],_0x5363a4[_0x3eb520(0x26f)]);var _0x4687c0=(_0x3599c7=>(_0x3599c7[_0x3eb520(0x234)]=_0x3eb520(0x241),_0x3599c7[_0x3eb520(0x1fd)]='idle',_0x3599c7[_0x3eb520(0x22b)]='following',_0x3599c7[_0x3eb520(0x232)]='not-following',_0x3599c7[_0x3eb520(0x1f9)]=_0x3eb520(0x2a0),_0x3599c7))(_0x4687c0||{});const _0x48b36e=_0x3eb520(0x27b),_0x2af27f=0xc8;_0x5363a4['LiveShareCoordinator']=class extends _0x437405[_0x3eb520(0x1d9)]{constructor(_0x350b29,_0x1cac25,_0x2f76a2,_0x549028,_0x4b63da){var _0x396a1a=_0x3eb520;super(),_0x475d44(this,_0x396a1a(0x269),new _0xdcc746['BehaviorSubject']('idle')),_0x475d44(this,_0x396a1a(0x23f),this[_0x396a1a(0x269)][_0x396a1a(0x277)]()),_0x475d44(this,_0x396a1a(0x1d0),!0x1),_0x475d44(this,_0x396a1a(0x27c),null),_0x475d44(this,'_presenter',null),(this[_0x396a1a(0x255)]=_0x350b29,this[_0x396a1a(0x268)]=_0x1cac25,this[_0x396a1a(0x24c)]=_0x2f76a2,this[_0x396a1a(0x1c7)]=_0x549028,this['_commandService']=_0x4b63da);}get[_0x3eb520(0x25d)](){var _0x397d29=_0x3eb520;return this[_0x397d29(0x269)][_0x397d29(0x1e8)]();}['dispose'](){var _0x31ca59=_0x3eb520,_0x4e58b5;(_0x4e58b5=this['_commandDisposable'])==null||_0x4e58b5['dispose'](),this[_0x31ca59(0x269)][_0x31ca59(0x258)](_0x31ca59(0x235)),this[_0x31ca59(0x269)][_0x31ca59(0x229)]();}['init'](){var _0x799bd7=_0x3eb520;this[_0x799bd7(0x1d0)]||(this[_0x799bd7(0x1d0)]=!0x0,this[_0x799bd7(0x268)][_0x799bd7(0x292)][_0x799bd7(0x28f)](_0x20da4b['takeUntil'](this[_0x799bd7(0x2b9)]))[_0x799bd7(0x1ea)](_0x58f739=>{var _0x496d25=_0x799bd7;switch(_0x58f739){case _0x381a11[_0x496d25(0x1e1)]['OFFLINE']:this[_0x496d25(0x252)]();break;case _0x381a11[_0x496d25(0x1e1)][_0x496d25(0x23e)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x799bd7(0x21c)][_0x799bd7(0x28f)](_0x20da4b[_0x799bd7(0x1c9)](this[_0x799bd7(0x2b9)]))[_0x799bd7(0x1ea)](_0x48b1a7=>{var _0x3d100e=_0x799bd7;const {eventID:_0x5ed4ee}=_0x48b1a7;switch(_0x5ed4ee){case _0x2e0c6d['CollaborationEvent'][_0x3d100e(0x2a1)]:this['_handleNewHost'](_0x48b1a7);break;case _0x2e0c6d[_0x3d100e(0x22e)][_0x3d100e(0x2b2)]:this['_handleOperation'](_0x48b1a7);break;case _0x2e0c6d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3d100e(0x271)]();break;case _0x2e0c6d[_0x3d100e(0x22e)][_0x3d100e(0x2a4)]:this['_handleNewChangeSets'](_0x48b1a7);break;}}));}[_0x3eb520(0x29d)](){var _0x55532c=_0x3eb520;this[_0x55532c(0x268)][_0x55532c(0x1fc)]({'eventID':_0x2e0c6d[_0x55532c(0x22e)][_0x55532c(0x298)],'data':{'unitID':this[_0x55532c(0x255)],'userID':this[_0x55532c(0x268)][_0x55532c(0x1d7)]()}},this['_unitID']);}[_0x3eb520(0x221)](){var _0x4da71a=_0x3eb520;this['_status']==='presenting'&&(this['_status$'][_0x4da71a(0x258)]('idle'),this[_0x4da71a(0x268)][_0x4da71a(0x1fc)]({'eventID':_0x2e0c6d[_0x4da71a(0x22e)][_0x4da71a(0x216)],'data':{'unitID':this[_0x4da71a(0x255)]}},this[_0x4da71a(0x255)]));}['startFollowing'](){var _0x293175=_0x3eb520;this['_status']===_0x293175(0x24f)&&(this[_0x293175(0x269)][_0x293175(0x258)](_0x293175(0x291)),this[_0x293175(0x249)]());}[_0x3eb520(0x2af)](){var _0x5c78c6=_0x3eb520;this[_0x5c78c6(0x25d)]===_0x5c78c6(0x291)&&this[_0x5c78c6(0x21a)]();}['_handleNewHost'](_0x21adfa){var _0x5815c8=_0x3eb520;const {presenter:_0x1a820d}=_0x21adfa['data'],_0x2dd28d=this[_0x5815c8(0x268)]['getMemberID']();this[_0x5815c8(0x2a5)]=_0x1a820d,_0x1a820d===_0x2dd28d?(this[_0x5815c8(0x21a)](),this[_0x5815c8(0x2b5)]()):this[_0x5815c8(0x25d)]!==_0x5815c8(0x24f)&&(this[_0x5815c8(0x220)](),this[_0x5815c8(0x249)]());}[_0x3eb520(0x1d2)](){var _0x4662a9=_0x3eb520;const _0x2317a9={'eventID':_0x2e0c6d[_0x4662a9(0x22e)][_0x4662a9(0x272)]};this[_0x4662a9(0x268)][_0x4662a9(0x1fc)](_0x2317a9,this[_0x4662a9(0x255)]);}[_0x3eb520(0x271)](){var _0x3e0062=_0x3eb520;this[_0x3e0062(0x2a5)]=null,this[_0x3e0062(0x25d)]!==_0x3e0062(0x2a0)&&this[_0x3e0062(0x1ce)]();}['_handleNewChangeSets'](_0x812c64){var _0x4d43f9=_0x3eb520;if(this[_0x4d43f9(0x25d)]===_0x4d43f9(0x291)&&this['_presenter']===_0x812c64['data'][_0x4d43f9(0x266)]){const _0x29fbab=_0x2e0c6d['parseProtocolChangeset'](_0x812c64[_0x4d43f9(0x219)])[_0x4d43f9(0x254)][_0x4d43f9(0x25e)]()[_0x4d43f9(0x1ec)](_0x2eeafa=>_0x2eeafa['id']===_0x5c601e[_0x4d43f9(0x29e)]['id']);if(_0x29fbab){const _0x90feba=_0x29fbab[_0x4d43f9(0x282)][_0x4d43f9(0x21e)],_0x40e465=_0x29fbab[_0x4d43f9(0x282)][_0x4d43f9(0x2a2)]['id'];setTimeout(()=>{var _0x5326c4=_0x4d43f9;this['_commandService'][_0x5326c4(0x244)](_0x5c601e[_0x5326c4(0x210)]['id'],{'unitId':_0x90feba,'subUnitId':_0x40e465},{'fromCollab':!0x0});});}}}[_0x3eb520(0x2b5)](){var _0x364d54=_0x3eb520;this[_0x364d54(0x269)][_0x364d54(0x258)]('presenting');const _0x1ae3d6=new Map(),_0xeecee4=this[_0x364d54(0x27c)]=new _0x437405[(_0x364d54(0x20d))]();_0xeecee4['add'](_0x437405[_0x364d54(0x1d8)](()=>{var _0x233e84=_0x364d54;_0x1ae3d6[_0x233e84(0x239)](_0x39b7bc=>_0x39b7bc['complete']()),_0x1ae3d6[_0x233e84(0x259)]();})),_0xeecee4[_0x364d54(0x246)](this[_0x364d54(0x245)]['onCommandExecuted'](_0x278176=>{var _0x5c4394=_0x364d54,_0x5939f6;if(_0x278176[_0x5c4394(0x261)]!==_0x437405[_0x5c4394(0x242)][_0x5c4394(0x228)]||!this[_0x5c4394(0x1c7)][_0x5c4394(0x1e0)](_0x278176['id']))return;const {id:_0x3c6f5b}=_0x278176;let _0x27a12f;_0x1ae3d6[_0x5c4394(0x214)](_0x3c6f5b)?_0x27a12f=_0x1ae3d6[_0x5c4394(0x205)](_0x3c6f5b):(_0x27a12f=new _0xdcc746[(_0x5c4394(0x1f6))](),_0x1ae3d6['set'](_0x3c6f5b,_0x27a12f),_0x27a12f[_0x5c4394(0x28f)](_0x20da4b[_0x5c4394(0x1f0)]((_0x5939f6=this[_0x5c4394(0x24c)][_0x5c4394(0x29a)](_0x48b36e))!=null?_0x5939f6:_0x2af27f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c4394(0x1ea)](_0x2908e9=>{var _0x2eb35f=_0x5c4394;this['_collabSession'][_0x2eb35f(0x1fc)]({'eventID':_0x2e0c6d[_0x2eb35f(0x22e)][_0x2eb35f(0x2b2)],'data':{'unitID':this[_0x2eb35f(0x255)],'operations':{[_0x2908e9['id']]:{'id':_0x2908e9['id'],'params':JSON[_0x2eb35f(0x240)](_0x2908e9[_0x2eb35f(0x282)])}}}},this[_0x2eb35f(0x255)]);})),_0x27a12f['next'](_0x278176);})),this['_liveShareService']['getInitialStates'](this[_0x364d54(0x255)])['forEach'](_0xaf2408=>this[_0x364d54(0x268)][_0x364d54(0x1fc)]({'eventID':_0x2e0c6d[_0x364d54(0x22e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x364d54(0x255)],'operations':{[_0xaf2408['id']]:{'id':_0xaf2408['id'],'params':JSON[_0x364d54(0x240)](_0xaf2408[_0x364d54(0x282)])}}}},this[_0x364d54(0x255)]));}[_0x3eb520(0x220)](){var _0x38dbdf=_0x3eb520,_0x524c31;this['_status$'][_0x38dbdf(0x258)](_0x38dbdf(0x235)),(_0x524c31=this[_0x38dbdf(0x27c)])==null||_0x524c31[_0x38dbdf(0x1e3)](),this[_0x38dbdf(0x27c)]=null;}[_0x3eb520(0x249)](){var _0x5dfada=_0x3eb520,_0x5e0b15;(_0x5e0b15=this[_0x5dfada(0x27c)])==null||_0x5e0b15[_0x5dfada(0x1e3)](),this[_0x5dfada(0x269)][_0x5dfada(0x258)](_0x5dfada(0x291));}[_0x3eb520(0x1ce)](){var _0x2471cd=_0x3eb520,_0x2874f8;this[_0x2471cd(0x269)][_0x2471cd(0x258)](_0x2471cd(0x235)),(_0x2874f8=this['_commandDisposable'])==null||_0x2874f8[_0x2471cd(0x1e3)](),this[_0x2471cd(0x27c)]=null;}[_0x3eb520(0x21a)](){var _0x23fbd9=_0x3eb520,_0x55a098;this[_0x23fbd9(0x269)]['next']('not-following'),(_0x55a098=this['_commandDisposable'])==null||_0x55a098[_0x23fbd9(0x1e3)]();}[_0x3eb520(0x1ef)](_0x4208c8){var _0x358540=_0x3eb520;if([_0x358540(0x2a0),'not-following',_0x358540(0x241)][_0x358540(0x212)](this[_0x358540(0x25d)])||!_0x4208c8[_0x358540(0x219)][_0x358540(0x2b0)]||_0x4208c8['data']['presenter']===this[_0x358540(0x268)][_0x358540(0x1d7)]())return;this['_status']==='idle'&&this[_0x358540(0x249)]();const _0x4450f8=_0x4208c8[_0x358540(0x219)][_0x358540(0x28a)];Object[_0x358540(0x22a)](_0x4450f8)[_0x358540(0x239)](_0x4113ad=>{var _0x2cd751=_0x358540;this[_0x2cd751(0x245)][_0x2cd751(0x244)](_0x4113ad['id'],_0x4113ad[_0x2cd751(0x282)]?JSON['parse'](_0x4113ad['params']):null,{'fromCollab':!0x0});});}[_0x3eb520(0x252)](){var _0x29ca40=_0x3eb520,_0x381c50;this[_0x29ca40(0x269)]['next'](_0x29ca40(0x241)),(_0x381c50=this[_0x29ca40(0x27c)])==null||_0x381c50[_0x29ca40(0x1e3)]();}['_handleOnline'](){var _0x1f8094=_0x3eb520;this[_0x1f8094(0x269)]['next'](_0x1f8094(0x235)),this[_0x1f8094(0x1d2)]();}},_0x5363a4['LiveShareCoordinator']=_0x4ea0c5([_0x3cf2f4(0x2,_0x437405[_0x3eb520(0x285)]),_0x3cf2f4(0x3,_0x437405['Inject'](_0x35a285)),_0x3cf2f4(0x4,_0x437405['ICommandService'])],_0x5363a4['LiveShareCoordinator']);function _0x152abc(){var _0x4e5386=_0x3eb520;const _0x1d9d43=_0xad327c[_0x4e5386(0x26a)](_0x5363a4[_0x4e5386(0x26f)]),_0x4419ad=_0xad327c[_0x4e5386(0x26a)](_0x437405[_0x4e5386(0x217)]),_0x14a182=_0xad327c[_0x4e5386(0x2a6)](()=>_0x4419ad['getCurrentTypeOfUnit$'](_0x437405[_0x4e5386(0x215)][_0x4e5386(0x260)]),void 0x0,!0x1,[]),[_0x3c4b0b,_0x2f191d]=_0x271b81['useState'](null),[_0x1cdfd0,_0x1cf9bb]=_0x271b81[_0x4e5386(0x2b1)](_0x4687c0[_0x4e5386(0x1fd)]),_0x35c855=_0x271b81[_0x4e5386(0x24a)](null);return _0x271b81['useEffect'](()=>(_0x14a182&&_0x1d9d43[_0x4e5386(0x2a8)](_0x14a182[_0x4e5386(0x28c)]())[_0x4e5386(0x2b6)](_0x2f4164=>{var _0x4d530f=_0x4e5386;_0x2f191d(_0x2f4164),_0x35c855[_0x4d530f(0x1e5)]=_0x2f4164['status$']['subscribe'](_0x1ad504=>{_0x1cf9bb(_0x1ad504);});}),()=>{var _0x3b8ba2=_0x4e5386,_0x4957c9;(_0x4957c9=_0x35c855[_0x3b8ba2(0x1e5)])==null||_0x4957c9['unsubscribe'](),_0x35c855['current']=null;}),[_0x14a182,_0x1d9d43]),_0x3c4b0b?_0x23b906['jsx'](_0x582406[_0x4e5386(0x289)],{'align':_0x4e5386(0x2a9),'disabled':_0x1cdfd0===_0x4687c0[_0x4e5386(0x234)],'className':_0x4e5386(0x224),'overlay':_0x23b906[_0x4e5386(0x207)](_0x720052,{'status':_0x1cdfd0,'coordinator':_0x3c4b0b}),'children':_0x23b906[_0x4e5386(0x207)](_0x4e5386(0x209),{'className':_0x582406[_0x4e5386(0x1dd)](_0x4e5386(0x1f5),{'univer-cursor-not-allowed':_0x1cdfd0===_0x4687c0[_0x4e5386(0x234)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1cdfd0!==_0x4687c0[_0x4e5386(0x234)]}),'type':_0x4e5386(0x209),'children':_0x23b906[_0x4e5386(0x207)](_0x10a1ab,{'className':_0x4e5386(0x23a)})})}):null;}function _0x720052(_0x1a0fce){var _0x362cab=_0x3eb520;const {status:_0x2f64f9,coordinator:_0x5a5856}=_0x1a0fce;switch(_0x2f64f9){case _0x4687c0['IDLE']:return _0x23b906['jsx'](_0x597ed1,{'coordinator':_0x5a5856});case _0x4687c0[_0x362cab(0x22b)]:return _0x23b906[_0x362cab(0x207)](_0x4ce03d,{'coordinator':_0x5a5856});case _0x4687c0['NOT_FOLLOWING']:return _0x23b906['jsx'](_0x298e4e,{'coordinator':_0x5a5856});case _0x4687c0[_0x362cab(0x234)]:return _0x23b906['jsx'](_0x1ee873,{});case _0x4687c0['PRESENTING']:return _0x23b906['jsx'](_0x3b4cd1,{'coordinator':_0x5a5856});default:return null;}}function _0x597ed1(_0x33a361){var _0xe8714a=_0x3eb520;const {coordinator:_0x3b8cf6}=_0x33a361;return _0x23b906[_0xe8714a(0x1e7)](_0x23b906[_0xe8714a(0x296)],{'children':[_0x23b906[_0xe8714a(0x207)]('div',{'className':_0xe8714a(0x294),'children':_0xe8714a(0x23c)}),_0x23b906[_0xe8714a(0x207)](_0x582406[_0xe8714a(0x27a)],{'size':'small','type':'default','onClick':()=>_0x3b8cf6[_0xe8714a(0x29d)](),'children':_0xe8714a(0x293)})]});}function _0x4ce03d(_0x2f9dec){var _0x16c9f7=_0x3eb520;const {coordinator:_0x385a50}=_0x2f9dec;return _0x23b906[_0x16c9f7(0x1e7)](_0x23b906[_0x16c9f7(0x296)],{'children':[_0x23b906[_0x16c9f7(0x207)](_0x16c9f7(0x1e2),{'className':_0x16c9f7(0x294),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x23b906[_0x16c9f7(0x207)](_0x582406[_0x16c9f7(0x27a)],{'size':'small','type':_0x16c9f7(0x2ad),'onClick':()=>_0x385a50['stopFollowing'](),'children':_0x16c9f7(0x237)})]});}function _0x298e4e(_0x2113ef){var _0x555e3b=_0x3eb520;const {coordinator:_0xe2ec82}=_0x2113ef;return _0x23b906[_0x555e3b(0x1e7)](_0x23b906['Fragment'],{'children':[_0x23b906[_0x555e3b(0x207)](_0x555e3b(0x1e2),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x555e3b(0x299)}),_0x23b906['jsx'](_0x582406[_0x555e3b(0x27a)],{'size':_0x555e3b(0x238),'type':_0x555e3b(0x1cb),'onClick':()=>_0xe2ec82['startFollowing'](),'children':_0x555e3b(0x2b3)})]});}function _0x3b4cd1(_0x2ab427){var _0x27eb93=_0x3eb520;const {coordinator:_0xc3e08f}=_0x2ab427;return _0x23b906[_0x27eb93(0x1e7)](_0x23b906[_0x27eb93(0x296)],{'children':[_0x23b906[_0x27eb93(0x207)](_0x27eb93(0x1e2),{'className':_0x27eb93(0x294),'children':_0x27eb93(0x23b)}),_0x23b906['jsx'](_0x582406[_0x27eb93(0x27a)],{'size':_0x27eb93(0x238),'type':_0x27eb93(0x2ad),'onClick':()=>_0xc3e08f[_0x27eb93(0x221)](),'children':_0x27eb93(0x278)})]});}function _0x1ee873(){var _0x47ad03=_0x3eb520;return _0x23b906['jsx'](_0x23b906[_0x47ad03(0x296)],{'children':'You\x27are\x20offline.'});}var _0x189553=Object[_0x3eb520(0x1da)],_0x327a90=(_0x30c433,_0x730be2,_0x599cc4,_0x319bb6)=>{var _0x364d0e=_0x3eb520;for(var _0x432fb4=_0x319bb6>0x1?void 0x0:_0x319bb6?_0x189553(_0x730be2,_0x599cc4):_0x730be2,_0xc8f3b1=_0x30c433[_0x364d0e(0x1d4)]-0x1,_0x55ff5c;_0xc8f3b1>=0x0;_0xc8f3b1--)(_0x55ff5c=_0x30c433[_0xc8f3b1])&&(_0x432fb4=_0x55ff5c(_0x432fb4)||_0x432fb4);return _0x432fb4;},_0x25d556=(_0x1fe5fc,_0x4df993)=>(_0x180e91,_0x4f40c2)=>_0x4df993(_0x180e91,_0x4f40c2,_0x1fe5fc);_0x5363a4[_0x3eb520(0x20f)]=class extends _0x437405[_0x3eb520(0x26c)]{constructor(_0x436045,_0x2dc3ef){var _0x1d4f80=_0x3eb520;super(),this['_injector']=_0x436045,this[_0x1d4f80(0x204)]=_0x2dc3ef,this['_mountLiveShare']();}[_0x3eb520(0x24e)](){var _0x5c6ed9=_0x3eb520;this['disposeWithMe'](this[_0x5c6ed9(0x204)][_0x5c6ed9(0x29b)](_0xad327c[_0x5c6ed9(0x222)]['HEADER_MENU'],()=>_0xad327c[_0x5c6ed9(0x206)](_0x152abc,this[_0x5c6ed9(0x1d1)])));}},_0x5363a4[_0x3eb520(0x20f)]=_0x327a90([_0x25d556(0x0,_0x437405[_0x3eb520(0x1de)](_0x437405[_0x3eb520(0x267)])),_0x25d556(0x1,_0xad327c[_0x3eb520(0x2ac)])],_0x5363a4[_0x3eb520(0x20f)]);var _0x13dcc5=Object[_0x3eb520(0x233)],_0x515e49=Object[_0x3eb520(0x1da)],_0x50b515=(_0x18b86b,_0x2c380b,_0x104e64)=>_0x2c380b in _0x18b86b?_0x13dcc5(_0x18b86b,_0x2c380b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104e64}):_0x18b86b[_0x2c380b]=_0x104e64,_0x307e13=(_0x3d10c6,_0x1aa1e4,_0x51ab11,_0x1a2dff)=>{for(var _0x95c942=_0x1a2dff>0x1?void 0x0:_0x1a2dff?_0x515e49(_0x1aa1e4,_0x51ab11):_0x1aa1e4,_0x2995c2=_0x3d10c6['length']-0x1,_0x558f4a;_0x2995c2>=0x0;_0x2995c2--)(_0x558f4a=_0x3d10c6[_0x2995c2])&&(_0x95c942=_0x558f4a(_0x95c942)||_0x95c942);return _0x95c942;},_0x1bfb42=(_0x1b4d18,_0x27c103)=>(_0x11e443,_0x23c041)=>_0x27c103(_0x11e443,_0x23c041,_0x1b4d18),_0x2bbb07=(_0x549c94,_0xb998d4,_0x36f3c8)=>_0x50b515(_0x549c94,typeof _0xb998d4!=_0x3eb520(0x2ba)?_0xb998d4+'':_0xb998d4,_0x36f3c8);const _0x221101=_0x3eb520(0x25b);_0x5363a4[_0x3eb520(0x29c)]=class extends _0x437405[_0x3eb520(0x1d6)]{constructor(_0x37e0ac=_0x3081e8,_0x441653,_0x3d0480){var _0x93e2f7=_0x3eb520;super(),this[_0x93e2f7(0x2ae)]=_0x37e0ac,this[_0x93e2f7(0x1d1)]=_0x441653,this[_0x93e2f7(0x24c)]=_0x3d0480;const {..._0x46f549}=_0x437405[_0x93e2f7(0x1cf)]({},_0x3081e8,this[_0x93e2f7(0x2ae)]);this['_configService'][_0x93e2f7(0x22c)](_0x3e3326,_0x46f549);}['onStarting'](){var _0x590191=_0x3eb520;_0x437405[_0x590191(0x1df)](this[_0x590191(0x1d1)],_0x437405[_0x590191(0x1f8)]([[_0x35a285],[_0x5363a4['LiveShareController']],[_0x49bd6f],[_0x5363a4[_0x590191(0x20f)]]],this[_0x590191(0x2ae)]['override'])),_0x437405[_0x590191(0x284)](this[_0x590191(0x1d1)],[[_0x49bd6f]]);}[_0x3eb520(0x1f1)](){var _0x4c59b2=_0x3eb520;_0x437405[_0x4c59b2(0x284)](this[_0x4c59b2(0x1d1)],[[_0x5363a4[_0x4c59b2(0x20f)]]]);}},_0x2bbb07(_0x5363a4[_0x3eb520(0x29c)],_0x3eb520(0x261),_0x437405[_0x3eb520(0x215)][_0x3eb520(0x200)]),_0x2bbb07(_0x5363a4['UniverLiveSharePlugin'],_0x3eb520(0x288),_0x221101),_0x5363a4['UniverLiveSharePlugin']=_0x307e13([_0x437405['DependentOn'](_0x381a11[_0x3eb520(0x1e6)]),_0x1bfb42(0x1,_0x437405[_0x3eb520(0x1de)](_0x437405[_0x3eb520(0x267)])),_0x1bfb42(0x2,_0x437405[_0x3eb520(0x285)])],_0x5363a4[_0x3eb520(0x29c)]),_0x5363a4['LiveShare']=_0x152abc,_0x5363a4['LiveShareService']=_0x35a285,_0x5363a4[_0x3eb520(0x1f2)]=_0x4687c0,Object[_0x3eb520(0x233)](_0x5363a4,Symbol[_0x3eb520(0x25c)],{'value':_0x3eb520(0x283)});}));function _0x5a9a(_0x40d0e2,_0x3cdcc9){var _0x4b0b84=_0x4b0b();return _0x5a9a=function(_0x5a9a0e,_0x3697d7){_0x5a9a0e=_0x5a9a0e-0x1c5;var _0x1e1cf6=_0x4b0b84[_0x5a9a0e];return _0x1e1cf6;},_0x5a9a(_0x40d0e2,_0x3cdcc9);}function _0x4b0b(){var _0x5a9fcf=['univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Subject','getInitialStates','mergeOverrideWithDependencies','PRESENTING','random','defs','send','IDLE','_univerInstanceService','@univerjs/sheets-ui','UNIVER_UNKNOWN','propertyIsEnumerable','_collabSessionService','from','_uiPartsService','get','connectInjector','jsx','114020crVzMb','button','exports','UniverSheets','currentColor','DisposableCollection','getTypeOfUnitDisposed$','DesktopLiveShareController','SetWorksheetActiveOperation','react','includes','live-share-single','has','UniverInstanceType','LIVESHARE_TERMINATE','IUniverInstanceService','requireSession','data','_stopFollowing','className','event$','_sharedOperations','unitId','extend','_stopPresenting','stopPresenting','BuiltInUIPart','_entities','\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','hasOwnProperty','React','SetZoomRatioOperation','OPERATION','complete','values','FOLLOWING','setConfig','2245464CUJUrn','CollaborationEvent','colorChannel1','apply','UniverProCollaboration','NOT_FOLLOWING','defineProperty','OFFLINE','idle','UniverProCollaborationClient','Stop\x20following','small','forEach','univer-size-4','You\x27re\x20presenting\x20the\x20document','Present\x20this\x20document','use','ONLINE','status$','stringify','offline','CommandType','indexOf','executeCommand','_commandService','add','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','trim','_startFollowing','useRef','@univerjs/ui','_configService','children','_mountLiveShare','not-following','3tzGqRx','@univerjs-pro/collaboration-client','_handleOffline','UniverUi','mutations','_unitID','createElement','2517008fxFgpM','next','clear','univerjs-icon\x20univerjs-icon-','UNIVER_LIVE_SHARE_PLUGIN','toStringTag','_status','reverse','UniverIcon','UNIVER_SHEET','type','delete','url(#$1','attrs','tag','memberID','Injector','_collabSession','_status$','useDependency','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','Disposable','getOwnPropertySymbols','init','LiveShareController','75766DuIxsi','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','rxjs/operators','xlink:href','assign','asObservable','Stop\x20presenting','@univerjs/core','Button','SAME_OPERATION_SHARE_INTERVAL','_commandDisposable','@univerjs/design','react/jsx-runtime','operators','object','displayName','params','Module','touchDependencies','IConfigService','icon','idSuffix','pluginName','Dropdown','operations','fill','getUnitId','amd','15484UGIOIq','pipe','map','following','sessionStatus$','Start','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','_startLiveShareCoordinator','Fragment','LiveShareCoordinator','LIVESHARE_REQUEST_HOST','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','registerComponent','UniverLiveSharePlugin','tryStartPresenting','InsertSheetMutation','function','presenting','LIVESHARE_NEW_HOST','sheet','UniverCore','NEW_CHANGESETS','_presenter','useObservable','rxjs','getLiveShareCoordinator','end','prototype','mask','IUIPartsService','default','_config','stopFollowing','presenter','useState','LIVESHARE_OPERATION','Start\x20following','call','_startPresenting','then','live-share.config','1em','dispose$','symbol','path','664718YFDfmo','disposeWithMe','UniverSheetsUi','_liveShareService','concat','takeUntil','defIds','text','string','@univerjs-pro/collaboration','_beIdle','merge','_init','_injector','_fetchOperations','780evuBoU','length','_reporters','Plugin','getMemberID','toDisposable','RxDisposable','getOwnPropertyDescriptor','LiveShareSingle','@univerjs/sheets','clsx','Inject','registerDependencies','shouldShareOperation','SessionStatus','div','dispose','entries','current','UniverCollaborationClientPlugin','jsxs','getValue','replace','subscribe','forwardRef','find','evenodd','none','_handleOperation','throttleTime','onRendered','LiveShareStatus','registerSharedOperation','909705xzQUqU'];_0x4b0b=function(){return _0x5a9fcf;};return _0x4b0b();}
|
|
1
|
+
function _0x2642(){var _0x3bbe75=['asObservable','react/jsx-runtime','dispose','_collabSessionService','React','params','mutations','hasOwnProperty','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','createElement','getTypeOfUnitAdded$','_status','tag','following','status$','@univerjs/sheets','forwardRef','type','live-share-single','map','getOwnPropertySymbols','_config','_presenter','stopPresenting','DisposableCollection','Inject','entries','UniverProCollaborationClient','svg','url(#$1','IDLE','pipe','Module','getUnitId','current','UniverProCollaboration','_collabSession','_handleOffline','getCurrentTypeOfUnit$','extend','NEW_CHANGESETS','_reporters','DependentOn','add','idSuffix','LIVESHARE_OPERATION','_configService','Subject','concat','SetWorksheetActiveOperation','useState','set','not-following','63633QjTtBL','UniverLiveSharePlugin','defIds','has','@univerjs-pro/collaboration-client','914424kXUELB','send','shouldShareOperation','FOLLOWING','button','registerInitialStateReporter','LiveShareController','UniverProLiveShare','displayName','LiveShareStatus','sessionStatus$','_sharedOperations','mergeOverrideWithDependencies','delete','reverse','You\x27re\x20not\x20following\x20the\x20presenter','sheet','IUIPartsService','_commandDisposable','_liveShareService','_handleOnline','_handleNewHost','_handleTerminate','idle','@univerjs/ui','call','function','amd','Button','Stop\x20following','ONLINE','4761239xAgbdv','68YPKywu','BehaviorSubject','registerSharedOperation','subscribe','Injector','exports','18907448Dzkbxx','find','propertyIsEnumerable','complete','Start\x20following','_fetchOperations','live-share.config','presenting','Plugin','_commandService','useDependency','getConfig','onRendered','unsubscribe','OPERATION','_init','icon','attrs','override','throttleTime','UniverDesign','default','clsx','colorChannel1','_uiPartsService','dispose$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','from','univerjs-icon\x20univerjs-icon-','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','indexOf','LiveShareCoordinator','trim','xlink:href','connectInjector','event$','toStringTag','_stopPresenting','symbol','IConfigService','operations','get','_startLiveShareCoordinator','CommandType','4422772uddSXZ','_mountLiveShare','PRESENTING','toString','presenter','_stopFollowing','LiveShareSingle','forEach','pluginName','clear','registerDependencies','executeCommand','stringify','HEADER_MENU','offline','_univerInstanceService','getTypeOfUnitDisposed$','Disposable','LiveShareService','SetZoomRatioOperation','_handleOperation','use','UniverCollaborationClientPlugin','UniverUi','getInitialStates','LIVESHARE_FETCH_OPERATIONS','onStarting','0\x200\x2017\x2017','useObservable','_status$','getOwnPropertyDescriptor','toDisposable','LiveShare','evenodd','startFollowing','parseProtocolChangeset','string','SessionStatus','disposeWithMe','fill','random','Fragment','IUniverInstanceService','LIVESHARE_TERMINATE','memberID','includes','UniverSheets','Stop\x20presenting','prototype','@univerjs/design','useEffect','data','OFFLINE','rxjs','NOT_FOLLOWING','small','text','1em','_startPresenting','replace','merge','5630810VkgWgy','jsx','getMemberID','UNIVER_UNKNOWN','takeUntil','DesktopLiveShareController','univer-size-4','setConfig','4626984NlidDu','\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','Present\x20this\x20document','defineProperty','tryStartPresenting','@univerjs/sheets-ui','_handleNewChangeSets','_entities','SAME_OPERATION_SHARE_INTERVAL','next','UniverSheetsUi','You\x27re\x20presenting\x20the\x20document','className','BuiltInUIPart','LIVESHARE_NEW_HOST','operators','RxDisposable','length','_injector','init','div','UniverInstanceType','_startFollowing','univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','UNIVER_SHEET','useRef','jsxs','currentColor','then','react','children','mask','_unitID'];_0x2642=function(){return _0x3bbe75;};return _0x2642();}function _0x170c(_0x38b3cb,_0x9bb29){var _0x264254=_0x2642();return _0x170c=function(_0x170c62,_0x5d3570){_0x170c62=_0x170c62-0x115;var _0x320d05=_0x264254[_0x170c62];return _0x320d05;},_0x170c(_0x38b3cb,_0x9bb29);}(function(_0x2bbf30,_0x116232){var _0x32116c=_0x170c,_0x54151e=_0x2bbf30();while(!![]){try{var _0x3395a6=-parseInt(_0x32116c(0x206))/0x1+-parseInt(_0x32116c(0x132))/0x2*(parseInt(_0x32116c(0x201))/0x3)+parseInt(_0x32116c(0x166))/0x4+-parseInt(_0x32116c(0x1a3))/0x5+-parseInt(_0x32116c(0x1ab))/0x6+parseInt(_0x32116c(0x131))/0x7+parseInt(_0x32116c(0x138))/0x8;if(_0x3395a6===_0x116232)break;else _0x54151e['push'](_0x54151e['shift']());}catch(_0x54a0da){_0x54151e['push'](_0x54151e['shift']());}}}(_0x2642,0x967b9),function(_0x1bebbb,_0x3cf699){var _0xe9e2a0=_0x170c;typeof exports=='object'&&typeof module<'u'?_0x3cf699(exports,require(_0xe9e2a0(0x205)),require('@univerjs/core'),require(_0xe9e2a0(0x1db)),require(_0xe9e2a0(0x1b0)),require(_0xe9e2a0(0x12a)),require(_0xe9e2a0(0x1cd)),require(_0xe9e2a0(0x197)),require(_0xe9e2a0(0x1c8)),require('@univerjs-pro/collaboration'),require(_0xe9e2a0(0x19b)),require('rxjs/operators')):typeof define=='function'&&define[_0xe9e2a0(0x12d)]?define([_0xe9e2a0(0x137),'@univerjs-pro/collaboration-client','@univerjs/core',_0xe9e2a0(0x1db),_0xe9e2a0(0x1b0),_0xe9e2a0(0x12a),_0xe9e2a0(0x1cd),_0xe9e2a0(0x197),_0xe9e2a0(0x1c8),'@univerjs-pro/collaboration',_0xe9e2a0(0x19b),'rxjs/operators'],_0x3cf699):(_0x1bebbb=typeof globalThis<'u'?globalThis:_0x1bebbb||self,_0x3cf699(_0x1bebbb[_0xe9e2a0(0x119)]={},_0x1bebbb[_0xe9e2a0(0x1e7)],_0x1bebbb['UniverCore'],_0x1bebbb[_0xe9e2a0(0x194)],_0x1bebbb[_0xe9e2a0(0x1b5)],_0x1bebbb[_0xe9e2a0(0x17d)],_0x1bebbb[_0xe9e2a0(0x1d0)],_0x1bebbb[_0xe9e2a0(0x14c)],_0x1bebbb['React'],_0x1bebbb[_0xe9e2a0(0x1ef)],_0x1bebbb[_0xe9e2a0(0x19b)],_0x1bebbb[_0xe9e2a0(0x19b)][_0xe9e2a0(0x1ba)]));}(this,function(_0x193141,_0x1b0fa0,_0x37b171,_0xf9f62d,_0x515b6a,_0x934a3f,_0x4c6baf,_0x139814,_0x1d08c5,_0x333fa4,_0xcdd4ec,_0x997ee4){'use strict';var _0x5584b0=_0x170c;var _0x17b1e4=Object[_0x5584b0(0x1ae)],_0x30756b=(_0x5b994e,_0x1d221e,_0x7b9690)=>_0x1d221e in _0x5b994e?_0x17b1e4(_0x5b994e,_0x1d221e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7b9690}):_0x5b994e[_0x1d221e]=_0x7b9690,_0x2643f3=(_0x1b44e0,_0x3a4077,_0x312d8c)=>_0x30756b(_0x1b44e0,typeof _0x3a4077!=_0x5584b0(0x160)?_0x3a4077+'':_0x3a4077,_0x312d8c);const _0x2e5554=_0x5584b0(0x13e),_0x1a46e4={};class _0x36e21e extends _0x37b171[_0x5584b0(0x177)]{constructor(){var _0x30fe92=_0x5584b0;super(...arguments),_0x2643f3(this,_0x30fe92(0x11d),new Set()),_0x2643f3(this,_0x30fe92(0x1f5),new Set());}['registerSharedOperation'](_0x2c7c95){var _0xe75d79=_0x5584b0;return this[_0xe75d79(0x11d)][_0xe75d79(0x1f7)](_0x2c7c95),_0x37b171[_0xe75d79(0x185)](()=>this[_0xe75d79(0x11d)][_0xe75d79(0x11f)](_0x2c7c95));}[_0x5584b0(0x117)](_0x307825){var _0x2d39dc=_0x5584b0;return this[_0x2d39dc(0x1f5)][_0x2d39dc(0x1f7)](_0x307825),_0x37b171['toDisposable'](()=>this[_0x2d39dc(0x1f5)]['delete'](_0x307825));}[_0x5584b0(0x208)](_0x1b285f){var _0x41c827=_0x5584b0;return this[_0x41c827(0x11d)]['has'](_0x1b285f);}['getInitialStates'](_0x3b7786){var _0x5b8d3a=_0x5584b0;return Array[_0x5b8d3a(0x153)](this[_0x5b8d3a(0x1f5)])[_0x5b8d3a(0x1df)](_0x108d83=>_0x108d83(_0x3b7786));}}var _0x23501a=Object[_0x5584b0(0x184)],_0x47dcab=(_0x35ca00,_0x22fcd3,_0x466400,_0x490454)=>{var _0x2cde91=_0x5584b0;for(var _0x37a4bb=_0x490454>0x1?void 0x0:_0x490454?_0x23501a(_0x22fcd3,_0x466400):_0x22fcd3,_0x6d3ee3=_0x35ca00[_0x2cde91(0x1bc)]-0x1,_0x3c6cd4;_0x6d3ee3>=0x0;_0x6d3ee3--)(_0x3c6cd4=_0x35ca00[_0x6d3ee3])&&(_0x37a4bb=_0x3c6cd4(_0x37a4bb)||_0x37a4bb);return _0x37a4bb;},_0x575c4e=(_0xf3969d,_0x109cf6)=>(_0x58c537,_0x3381c5)=>_0x109cf6(_0x58c537,_0x3381c5,_0xf3969d);let _0x486a9e=class extends _0x37b171[_0x5584b0(0x177)]{constructor(_0x488662){var _0x2a0d80=_0x5584b0;super(),this[_0x2a0d80(0x125)]=_0x488662,this[_0x2a0d80(0x147)]();}[_0x5584b0(0x147)](){var _0x2b3c98=_0x5584b0;[_0x515b6a[_0x2b3c98(0x179)]['id'],_0x515b6a['SetScrollOperation']['id'],_0xf9f62d['SetWorksheetActiveOperation']['id']][_0x2b3c98(0x16d)](_0x3fcaac=>{var _0x260a12=_0x2b3c98;this[_0x260a12(0x18c)](this[_0x260a12(0x125)][_0x260a12(0x134)](_0x3fcaac));});}};_0x486a9e=_0x47dcab([_0x575c4e(0x0,_0x37b171[_0x5584b0(0x1e5)](_0x36e21e))],_0x486a9e);var _0x192199=function(){return _0x192199=Object['assign']||function(_0xa1105d){var _0x25c33c=_0x170c;for(var _0x54f545,_0x44b50a=0x1,_0x598e05=arguments[_0x25c33c(0x1bc)];_0x44b50a<_0x598e05;_0x44b50a++){_0x54f545=arguments[_0x44b50a];for(var _0x5d5a27 in _0x54f545)Object['prototype'][_0x25c33c(0x1d3)]['call'](_0x54f545,_0x5d5a27)&&(_0xa1105d[_0x5d5a27]=_0x54f545[_0x5d5a27]);}return _0xa1105d;},_0x192199['apply'](this,arguments);},_0x4dc182=function(_0x1c8875,_0x21d7bf){var _0x53183a=_0x5584b0,_0x3d509d={};for(var _0x45d9d4 in _0x1c8875)Object[_0x53183a(0x196)][_0x53183a(0x1d3)][_0x53183a(0x12b)](_0x1c8875,_0x45d9d4)&&_0x21d7bf[_0x53183a(0x158)](_0x45d9d4)<0x0&&(_0x3d509d[_0x45d9d4]=_0x1c8875[_0x45d9d4]);if(_0x1c8875!=null&&typeof Object[_0x53183a(0x1e0)]==_0x53183a(0x12c)){for(var _0x58554c=0x0,_0x45d9d4=Object[_0x53183a(0x1e0)](_0x1c8875);_0x58554c<_0x45d9d4[_0x53183a(0x1bc)];_0x58554c++)_0x21d7bf['indexOf'](_0x45d9d4[_0x58554c])<0x0&&Object[_0x53183a(0x196)][_0x53183a(0x13a)][_0x53183a(0x12b)](_0x1c8875,_0x45d9d4[_0x58554c])&&(_0x3d509d[_0x45d9d4[_0x58554c]]=_0x1c8875[_0x45d9d4[_0x58554c]]);}return _0x3d509d;},_0x4f47cd=_0x1d08c5[_0x5584b0(0x1dc)](function(_0x3ceadb,_0xaefbac){var _0x1ee517=_0x5584b0,_0x3d6cff=_0x3ceadb[_0x1ee517(0x148)],_0x346ae0=_0x3ceadb['id'],_0x5d3448=_0x3ceadb['className'],_0xaad5d=_0x3ceadb[_0x1ee517(0x1f3)],_0x3a550c=_0x4dc182(_0x3ceadb,[_0x1ee517(0x148),'id',_0x1ee517(0x1b7),'extend']),_0x11b25e=_0x1ee517(0x154)['concat'](_0x346ae0,'\x20')[_0x1ee517(0x1fc)](_0x5d3448||'')[_0x1ee517(0x15a)](),_0x3554ef=_0x1d08c5[_0x1ee517(0x1c4)]('_'[_0x1ee517(0x1fc)](_0x409379()));return _0x23b267(_0x3d6cff,''[_0x1ee517(0x1fc)](_0x346ae0),{'defIds':_0x3d6cff[_0x1ee517(0x203)],'idSuffix':_0x3554ef[_0x1ee517(0x1ee)]},_0x192199({'ref':_0xaefbac,'className':_0x11b25e},_0x3a550c),_0xaad5d);});function _0x23b267(_0x4a5c5d,_0x15c0c0,_0x3034d1,_0x111474,_0x14960a){var _0x17b73c=_0x5584b0;return _0x1d08c5[_0x17b73c(0x1d5)](_0x4a5c5d[_0x17b73c(0x1d8)],_0x192199(_0x192199({'key':_0x15c0c0},_0x2195db(_0x4a5c5d,_0x3034d1,_0x14960a)),_0x111474),(_0xc77392(_0x4a5c5d,_0x3034d1)[_0x17b73c(0x1c9)]||[])[_0x17b73c(0x1df)](function(_0x1b31f9,_0x3bff67){var _0x5cbbc0=_0x17b73c;return _0x23b267(_0x1b31f9,''[_0x5cbbc0(0x1fc)](_0x15c0c0,'-')['concat'](_0x4a5c5d['tag'],'-')[_0x5cbbc0(0x1fc)](_0x3bff67),_0x3034d1,void 0x0,_0x14960a);}));}function _0x2195db(_0x450632,_0x26962a,_0x8444bd){var _0x5d9c65=_0x5584b0,_0x50f324=_0x192199({},_0x450632[_0x5d9c65(0x149)]);_0x8444bd!=null&&_0x8444bd[_0x5d9c65(0x14f)]&&_0x50f324[_0x5d9c65(0x18d)]==='colorChannel1'&&(_0x50f324['fill']=_0x8444bd[_0x5d9c65(0x14f)]),_0x450632[_0x5d9c65(0x1d8)]===_0x5d9c65(0x1ca)&&_0x50f324['id']&&(_0x50f324['id']=_0x50f324['id']+_0x26962a['idSuffix']),Object[_0x5d9c65(0x1e6)](_0x50f324)[_0x5d9c65(0x16d)](function(_0x56d994){var _0x2ecade=_0x5d9c65,_0x193e0a=_0x56d994[0x0],_0x4761fa=_0x56d994[0x1];_0x193e0a===_0x2ecade(0x1ca)&&typeof _0x4761fa==_0x2ecade(0x18a)&&(_0x50f324[_0x193e0a]=_0x4761fa[_0x2ecade(0x1a1)](/url\(#(.*)\)/,_0x2ecade(0x1e9)[_0x2ecade(0x1fc)](_0x26962a['idSuffix'],')')));});var _0x31b81e=_0x26962a[_0x5d9c65(0x203)];return!_0x31b81e||_0x31b81e['length']===0x0||(_0x450632[_0x5d9c65(0x1d8)]===_0x5d9c65(0x17b)&&_0x50f324[_0x5d9c65(0x15b)]&&(_0x50f324[_0x5d9c65(0x15b)]=_0x50f324['xlink:href']+_0x26962a[_0x5d9c65(0x1f8)]),Object[_0x5d9c65(0x1e6)](_0x50f324)[_0x5d9c65(0x16d)](function(_0x4db832){var _0x207f47=_0x5d9c65,_0x577410=_0x4db832[0x0],_0x5d2075=_0x4db832[0x1];typeof _0x5d2075==_0x207f47(0x18a)&&(_0x50f324[_0x577410]=_0x5d2075[_0x207f47(0x1a1)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x26962a[_0x207f47(0x1f8)],')')));})),_0x50f324;}function _0xc77392(_0xd8f754,_0x50dad0){var _0x5e9e7e=_0x5584b0,_0x41ad38,_0x428d8a=_0x50dad0[_0x5e9e7e(0x203)];return!_0x428d8a||_0x428d8a['length']===0x0?_0xd8f754:_0xd8f754[_0x5e9e7e(0x1d8)]==='defs'&&(!((_0x41ad38=_0xd8f754[_0x5e9e7e(0x1c9)])===null||_0x41ad38===void 0x0)&&_0x41ad38[_0x5e9e7e(0x1bc)])?_0x192199(_0x192199({},_0xd8f754),{'children':_0xd8f754[_0x5e9e7e(0x1c9)]['map'](function(_0xe4abaf){var _0x26d680=_0x5e9e7e;return typeof _0xe4abaf[_0x26d680(0x149)]['id']==_0x26d680(0x18a)&&_0x428d8a&&_0x428d8a[_0x26d680(0x158)](_0xe4abaf[_0x26d680(0x149)]['id'])>-0x1?_0x192199(_0x192199({},_0xe4abaf),{'attrs':_0x192199(_0x192199({},_0xe4abaf[_0x26d680(0x149)]),{'id':_0xe4abaf[_0x26d680(0x149)]['id']+_0x50dad0[_0x26d680(0x1f8)]})}):_0xe4abaf;})}):_0xd8f754;}function _0x409379(){var _0x160e49=_0x5584b0;return Math[_0x160e49(0x18e)]()[_0x160e49(0x169)](0x24)['substring'](0x2,0x8);}_0x4f47cd[_0x5584b0(0x11a)]='UniverIcon';var _0x4e171c={'tag':_0x5584b0(0x1e8),'attrs':{'fill':'none','viewBox':_0x5584b0(0x181),'width':'1em','height':_0x5584b0(0x19f)},'children':[{'tag':'path','attrs':{'fill':_0x5584b0(0x1c6),'d':_0x5584b0(0x152)}},{'tag':'path','attrs':{'fill':_0x5584b0(0x1c6),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5584b0(0x187),'clipRule':_0x5584b0(0x187)}}]},_0x32eb3f=_0x1d08c5[_0x5584b0(0x1dc)](function(_0x19039e,_0x57ee3c){var _0x13508e=_0x5584b0;return _0x1d08c5['createElement'](_0x4f47cd,Object['assign']({},_0x19039e,{'id':_0x13508e(0x1de),'ref':_0x57ee3c,'icon':_0x4e171c}));});_0x32eb3f['displayName']=_0x5584b0(0x16c);var _0x39d6f9=Object['getOwnPropertyDescriptor'],_0x5a00e8=(_0x2dbc7f,_0x1ff21e,_0x4e81fe,_0x4e0fc9)=>{var _0x5d78bd=_0x5584b0;for(var _0xf99bc8=_0x4e0fc9>0x1?void 0x0:_0x4e0fc9?_0x39d6f9(_0x1ff21e,_0x4e81fe):_0x1ff21e,_0x19a901=_0x2dbc7f[_0x5d78bd(0x1bc)]-0x1,_0x3e9444;_0x19a901>=0x0;_0x19a901--)(_0x3e9444=_0x2dbc7f[_0x19a901])&&(_0xf99bc8=_0x3e9444(_0xf99bc8)||_0xf99bc8);return _0xf99bc8;},_0x376feb=(_0x4a8fcf,_0x3787f3)=>(_0x440776,_0x352082)=>_0x3787f3(_0x440776,_0x352082,_0x4a8fcf);_0x193141['LiveShareController']=class extends _0x37b171[_0x5584b0(0x1bb)]{constructor(_0x352996,_0x1a5c4e,_0x151fd2){var _0x2032e5=_0x5584b0;super(),_0x2643f3(this,_0x2032e5(0x1b2),new Map()),(this['_univerInstanceService']=_0x352996,this[_0x2032e5(0x1bd)]=_0x1a5c4e,this[_0x2032e5(0x1cf)]=_0x151fd2,this[_0x2032e5(0x147)]());}async['getLiveShareCoordinator'](_0x3014d8){var _0x1a1cd6=_0x5584b0;return this['_entities'][_0x1a1cd6(0x204)](_0x3014d8)||await this[_0x1a1cd6(0x164)](_0x3014d8),this[_0x1a1cd6(0x1b2)][_0x1a1cd6(0x163)](_0x3014d8);}[_0x5584b0(0x147)](){var _0x47e101=_0x5584b0;this[_0x47e101(0x175)][_0x47e101(0x1d6)](_0x37b171[_0x47e101(0x1c0)]['UNIVER_SHEET'])[_0x47e101(0x1eb)](_0x997ee4['takeUntil'](this[_0x47e101(0x151)]))[_0x47e101(0x135)](async _0x34253d=>{var _0x1d9994=_0x47e101;const _0x13e24d=_0x34253d[_0x1d9994(0x1ed)]();this[_0x1d9994(0x1b2)][_0x1d9994(0x204)](_0x13e24d)||this[_0x1d9994(0x164)](_0x13e24d);}),this['_univerInstanceService'][_0x47e101(0x176)](_0x37b171['UniverInstanceType'][_0x47e101(0x1c3)])['pipe'](_0x997ee4[_0x47e101(0x1a7)](this['dispose$']))['subscribe'](_0x376464=>{var _0x36e091=_0x47e101;const _0x196e9f=_0x376464['getUnitId'](),_0x67adba=this['_entities']['get'](_0x196e9f);_0x67adba==null||_0x67adba[_0x36e091(0x1ce)]();});}async[_0x5584b0(0x164)](_0x3fab29){var _0x2aa656=_0x5584b0;const _0xeef9ed=await this[_0x2aa656(0x1cf)]['requireSession'](_0x3fab29),_0x348984=this[_0x2aa656(0x1bd)]['createInstance'](_0x193141[_0x2aa656(0x159)],_0x3fab29,_0xeef9ed);return _0x348984[_0x2aa656(0x1be)](),this[_0x2aa656(0x1b2)][_0x2aa656(0x1ff)](_0x3fab29,_0x348984),_0x348984;}},_0x193141[_0x5584b0(0x118)]=_0x5a00e8([_0x376feb(0x0,_0x37b171[_0x5584b0(0x190)]),_0x376feb(0x1,_0x37b171[_0x5584b0(0x1e5)](_0x37b171[_0x5584b0(0x136)])),_0x376feb(0x2,_0x37b171[_0x5584b0(0x1e5)](_0x1b0fa0['CollaborationSessionService']))],_0x193141[_0x5584b0(0x118)]);var _0x5a1d09=(_0x310568=>(_0x310568[_0x5584b0(0x19a)]=_0x5584b0(0x174),_0x310568[_0x5584b0(0x1ea)]='idle',_0x310568[_0x5584b0(0x115)]=_0x5584b0(0x1d9),_0x310568[_0x5584b0(0x19c)]='not-following',_0x310568[_0x5584b0(0x168)]=_0x5584b0(0x13f),_0x310568))(_0x5a1d09||{});const _0x41eba2=_0x5584b0(0x1b3),_0x8febd4=0xc8;_0x193141[_0x5584b0(0x159)]=class extends _0x37b171[_0x5584b0(0x1bb)]{constructor(_0x5e8f30,_0x5be4e1,_0x20e940,_0x162fb8,_0x5852d7){var _0x260dac=_0x5584b0;super(),_0x2643f3(this,_0x260dac(0x183),new _0xcdd4ec[(_0x260dac(0x133))](_0x260dac(0x129))),_0x2643f3(this,_0x260dac(0x1da),this[_0x260dac(0x183)][_0x260dac(0x1cc)]()),_0x2643f3(this,'_init',!0x1),_0x2643f3(this,_0x260dac(0x124),null),_0x2643f3(this,_0x260dac(0x1e2),null),(this['_unitID']=_0x5e8f30,this[_0x260dac(0x1f0)]=_0x5be4e1,this['_configService']=_0x20e940,this['_liveShareService']=_0x162fb8,this[_0x260dac(0x141)]=_0x5852d7);}get[_0x5584b0(0x1d7)](){var _0x4ba031=_0x5584b0;return this[_0x4ba031(0x183)]['getValue']();}[_0x5584b0(0x1ce)](){var _0x574846=_0x5584b0,_0x5e2d8b;(_0x5e2d8b=this[_0x574846(0x124)])==null||_0x5e2d8b[_0x574846(0x1ce)](),this[_0x574846(0x183)]['next']('idle'),this['_status$'][_0x574846(0x13b)]();}[_0x5584b0(0x1be)](){var _0x5a0036=_0x5584b0;this[_0x5a0036(0x147)]||(this['_init']=!0x0,this[_0x5a0036(0x1f0)][_0x5a0036(0x11c)][_0x5a0036(0x1eb)](_0x997ee4[_0x5a0036(0x1a7)](this['dispose$']))[_0x5a0036(0x135)](_0x221ec7=>{var _0x1ad737=_0x5a0036;switch(_0x221ec7){case _0x1b0fa0['SessionStatus'][_0x1ad737(0x19a)]:this[_0x1ad737(0x1f1)]();break;case _0x1b0fa0[_0x1ad737(0x18b)][_0x1ad737(0x130)]:this[_0x1ad737(0x126)]();break;}}),this[_0x5a0036(0x1f0)][_0x5a0036(0x15d)][_0x5a0036(0x1eb)](_0x997ee4[_0x5a0036(0x1a7)](this[_0x5a0036(0x151)]))[_0x5a0036(0x135)](_0xc749e2=>{var _0x481650=_0x5a0036;const {eventID:_0x18e322}=_0xc749e2;switch(_0x18e322){case _0x333fa4['CollaborationEvent'][_0x481650(0x1b9)]:this[_0x481650(0x127)](_0xc749e2);break;case _0x333fa4[_0x481650(0x155)][_0x481650(0x1f9)]:this[_0x481650(0x17a)](_0xc749e2);break;case _0x333fa4[_0x481650(0x155)][_0x481650(0x191)]:this[_0x481650(0x128)]();break;case _0x333fa4[_0x481650(0x155)][_0x481650(0x1f4)]:this[_0x481650(0x1b1)](_0xc749e2);break;}}));}[_0x5584b0(0x1af)](){var _0x54ff07=_0x5584b0;this['_collabSession'][_0x54ff07(0x207)]({'eventID':_0x333fa4[_0x54ff07(0x155)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x54ff07(0x1cb)],'userID':this['_collabSession'][_0x54ff07(0x1a5)]()}},this['_unitID']);}[_0x5584b0(0x1e3)](){var _0x2c7336=_0x5584b0;this[_0x2c7336(0x1d7)]===_0x2c7336(0x13f)&&(this['_status$'][_0x2c7336(0x1b4)]('idle'),this[_0x2c7336(0x1f0)][_0x2c7336(0x207)]({'eventID':_0x333fa4[_0x2c7336(0x155)][_0x2c7336(0x191)],'data':{'unitID':this[_0x2c7336(0x1cb)]}},this[_0x2c7336(0x1cb)]));}[_0x5584b0(0x188)](){var _0x25b9f7=_0x5584b0;this[_0x25b9f7(0x1d7)]==='not-following'&&(this[_0x25b9f7(0x183)][_0x25b9f7(0x1b4)](_0x25b9f7(0x1d9)),this[_0x25b9f7(0x1c1)]());}['stopFollowing'](){var _0x211351=_0x5584b0;this[_0x211351(0x1d7)]===_0x211351(0x1d9)&&this[_0x211351(0x16b)]();}['_handleNewHost'](_0x45a437){var _0x4fd1c9=_0x5584b0;const {presenter:_0x5e1f22}=_0x45a437[_0x4fd1c9(0x199)],_0x4f8dcc=this[_0x4fd1c9(0x1f0)][_0x4fd1c9(0x1a5)]();this[_0x4fd1c9(0x1e2)]=_0x5e1f22,_0x5e1f22===_0x4f8dcc?(this[_0x4fd1c9(0x16b)](),this[_0x4fd1c9(0x1a0)]()):this[_0x4fd1c9(0x1d7)]!==_0x4fd1c9(0x200)&&(this[_0x4fd1c9(0x15f)](),this[_0x4fd1c9(0x1c1)]());}[_0x5584b0(0x13d)](){var _0x178bde=_0x5584b0;const _0x254be0={'eventID':_0x333fa4[_0x178bde(0x155)][_0x178bde(0x17f)]};this[_0x178bde(0x1f0)][_0x178bde(0x207)](_0x254be0,this[_0x178bde(0x1cb)]);}[_0x5584b0(0x128)](){var _0x9ea7ce=_0x5584b0;this[_0x9ea7ce(0x1e2)]=null,this[_0x9ea7ce(0x1d7)]!==_0x9ea7ce(0x13f)&&this['_beIdle']();}[_0x5584b0(0x1b1)](_0x9891c7){var _0x2b3e61=_0x5584b0;if(this['_status']===_0x2b3e61(0x1d9)&&this['_presenter']===_0x9891c7['data'][_0x2b3e61(0x192)]){const _0x3a14eb=_0x333fa4[_0x2b3e61(0x189)](_0x9891c7[_0x2b3e61(0x199)])[_0x2b3e61(0x1d2)][_0x2b3e61(0x120)]()[_0x2b3e61(0x139)](_0x4107ff=>_0x4107ff['id']===_0xf9f62d['InsertSheetMutation']['id']);if(_0x3a14eb){const _0x2c53e7=_0x3a14eb[_0x2b3e61(0x1d1)]['unitId'],_0x41f574=_0x3a14eb[_0x2b3e61(0x1d1)][_0x2b3e61(0x122)]['id'];setTimeout(()=>{var _0x3f01d5=_0x2b3e61;this[_0x3f01d5(0x141)][_0x3f01d5(0x171)](_0xf9f62d[_0x3f01d5(0x1fd)]['id'],{'unitId':_0x2c53e7,'subUnitId':_0x41f574},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x413681=_0x5584b0;this[_0x413681(0x183)]['next'](_0x413681(0x13f));const _0x2b04d7=new Map(),_0x3e1eae=this[_0x413681(0x124)]=new _0x37b171[(_0x413681(0x1e4))]();_0x3e1eae[_0x413681(0x1f7)](_0x37b171[_0x413681(0x185)](()=>{var _0x12b318=_0x413681;_0x2b04d7['forEach'](_0x4b4413=>_0x4b4413[_0x12b318(0x13b)]()),_0x2b04d7[_0x12b318(0x16f)]();})),_0x3e1eae[_0x413681(0x1f7)](this['_commandService']['onCommandExecuted'](_0xdf58eb=>{var _0x35922a=_0x413681,_0x199658;if(_0xdf58eb['type']!==_0x37b171[_0x35922a(0x165)][_0x35922a(0x146)]||!this[_0x35922a(0x125)][_0x35922a(0x208)](_0xdf58eb['id']))return;const {id:_0x5aae3a}=_0xdf58eb;let _0x5e8eb8;_0x2b04d7[_0x35922a(0x204)](_0x5aae3a)?_0x5e8eb8=_0x2b04d7[_0x35922a(0x163)](_0x5aae3a):(_0x5e8eb8=new _0xcdd4ec[(_0x35922a(0x1fb))](),_0x2b04d7[_0x35922a(0x1ff)](_0x5aae3a,_0x5e8eb8),_0x5e8eb8[_0x35922a(0x1eb)](_0x997ee4[_0x35922a(0x14b)]((_0x199658=this[_0x35922a(0x1fa)][_0x35922a(0x143)](_0x41eba2))!=null?_0x199658:_0x8febd4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x35922a(0x135)](_0x5d02da=>{var _0x23ee90=_0x35922a;this[_0x23ee90(0x1f0)][_0x23ee90(0x207)]({'eventID':_0x333fa4[_0x23ee90(0x155)][_0x23ee90(0x1f9)],'data':{'unitID':this[_0x23ee90(0x1cb)],'operations':{[_0x5d02da['id']]:{'id':_0x5d02da['id'],'params':JSON[_0x23ee90(0x172)](_0x5d02da['params'])}}}},this[_0x23ee90(0x1cb)]);})),_0x5e8eb8['next'](_0xdf58eb);})),this[_0x413681(0x125)][_0x413681(0x17e)](this[_0x413681(0x1cb)])[_0x413681(0x16d)](_0x3c39d8=>this[_0x413681(0x1f0)][_0x413681(0x207)]({'eventID':_0x333fa4[_0x413681(0x155)][_0x413681(0x1f9)],'data':{'unitID':this[_0x413681(0x1cb)],'operations':{[_0x3c39d8['id']]:{'id':_0x3c39d8['id'],'params':JSON['stringify'](_0x3c39d8['params'])}}}},this[_0x413681(0x1cb)]));}['_stopPresenting'](){var _0x2bdab8=_0x5584b0,_0x208222;this[_0x2bdab8(0x183)][_0x2bdab8(0x1b4)](_0x2bdab8(0x129)),(_0x208222=this[_0x2bdab8(0x124)])==null||_0x208222[_0x2bdab8(0x1ce)](),this[_0x2bdab8(0x124)]=null;}[_0x5584b0(0x1c1)](){var _0x27e587=_0x5584b0,_0x540c1a;(_0x540c1a=this[_0x27e587(0x124)])==null||_0x540c1a[_0x27e587(0x1ce)](),this[_0x27e587(0x183)]['next']('following');}['_beIdle'](){var _0xbfd9d1=_0x5584b0,_0x50e223;this[_0xbfd9d1(0x183)][_0xbfd9d1(0x1b4)](_0xbfd9d1(0x129)),(_0x50e223=this['_commandDisposable'])==null||_0x50e223[_0xbfd9d1(0x1ce)](),this[_0xbfd9d1(0x124)]=null;}[_0x5584b0(0x16b)](){var _0x5dca90=_0x5584b0,_0x5365d1;this['_status$'][_0x5dca90(0x1b4)]('not-following'),(_0x5365d1=this[_0x5dca90(0x124)])==null||_0x5365d1['dispose']();}[_0x5584b0(0x17a)](_0x423974){var _0x242152=_0x5584b0;if([_0x242152(0x13f),_0x242152(0x200),_0x242152(0x174)][_0x242152(0x193)](this[_0x242152(0x1d7)])||!_0x423974['data'][_0x242152(0x16a)]||_0x423974['data']['presenter']===this['_collabSession'][_0x242152(0x1a5)]())return;this[_0x242152(0x1d7)]===_0x242152(0x129)&&this[_0x242152(0x1c1)]();const _0x50fd61=_0x423974[_0x242152(0x199)][_0x242152(0x162)];Object['values'](_0x50fd61)[_0x242152(0x16d)](_0x198b1b=>{var _0x4b4ac6=_0x242152;this[_0x4b4ac6(0x141)]['executeCommand'](_0x198b1b['id'],_0x198b1b['params']?JSON['parse'](_0x198b1b[_0x4b4ac6(0x1d1)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x473dc7=_0x5584b0,_0x319b08;this[_0x473dc7(0x183)]['next'](_0x473dc7(0x174)),(_0x319b08=this[_0x473dc7(0x124)])==null||_0x319b08['dispose']();}[_0x5584b0(0x126)](){var _0x572324=_0x5584b0;this[_0x572324(0x183)]['next'](_0x572324(0x129)),this[_0x572324(0x13d)]();}},_0x193141[_0x5584b0(0x159)]=_0x5a00e8([_0x376feb(0x2,_0x37b171[_0x5584b0(0x161)]),_0x376feb(0x3,_0x37b171[_0x5584b0(0x1e5)](_0x36e21e)),_0x376feb(0x4,_0x37b171['ICommandService'])],_0x193141[_0x5584b0(0x159)]);function _0x212227(){var _0xb1cec5=_0x5584b0;const _0x3b1dd7=_0x934a3f['useDependency'](_0x193141[_0xb1cec5(0x118)]),_0xe9430a=_0x934a3f[_0xb1cec5(0x142)](_0x37b171['IUniverInstanceService']),_0x126a3b=_0x934a3f[_0xb1cec5(0x182)](()=>_0xe9430a[_0xb1cec5(0x1f2)](_0x37b171[_0xb1cec5(0x1c0)][_0xb1cec5(0x1c3)]),void 0x0,!0x1,[]),[_0x26f504,_0x1dc97c]=_0x1d08c5[_0xb1cec5(0x1fe)](null),[_0x43d906,_0x2b4ac6]=_0x1d08c5['useState'](_0x5a1d09[_0xb1cec5(0x1ea)]),_0x2233e3=_0x1d08c5['useRef'](null);return _0x1d08c5[_0xb1cec5(0x198)](()=>(_0x126a3b&&_0x3b1dd7['getLiveShareCoordinator'](_0x126a3b[_0xb1cec5(0x1ed)]())[_0xb1cec5(0x1c7)](_0x22b62a=>{var _0x3caa4b=_0xb1cec5;_0x1dc97c(_0x22b62a),_0x2233e3['current']=_0x22b62a[_0x3caa4b(0x1da)][_0x3caa4b(0x135)](_0x262cb2=>{_0x2b4ac6(_0x262cb2);});}),()=>{var _0x484ac1=_0xb1cec5,_0x380c77;(_0x380c77=_0x2233e3[_0x484ac1(0x1ee)])==null||_0x380c77[_0x484ac1(0x145)](),_0x2233e3[_0x484ac1(0x1ee)]=null;}),[_0x126a3b,_0x3b1dd7]),_0x26f504?_0x4c6baf[_0xb1cec5(0x1a4)](_0x139814['Dropdown'],{'align':'end','disabled':_0x43d906===_0x5a1d09[_0xb1cec5(0x19a)],'className':_0xb1cec5(0x1ac),'overlay':_0x4c6baf[_0xb1cec5(0x1a4)](_0x324464,{'status':_0x43d906,'coordinator':_0x26f504}),'children':_0x4c6baf['jsx'](_0xb1cec5(0x116),{'className':_0x139814[_0xb1cec5(0x14e)](_0xb1cec5(0x1d4),{'univer-cursor-not-allowed':_0x43d906===_0x5a1d09['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x43d906!==_0x5a1d09[_0xb1cec5(0x19a)]}),'type':_0xb1cec5(0x116),'children':_0x4c6baf[_0xb1cec5(0x1a4)](_0x32eb3f,{'className':_0xb1cec5(0x1a9)})})}):null;}function _0x324464(_0x62e4c){var _0x3d6c00=_0x5584b0;const {status:_0x1ed2a2,coordinator:_0x138b24}=_0x62e4c;switch(_0x1ed2a2){case _0x5a1d09[_0x3d6c00(0x1ea)]:return _0x4c6baf[_0x3d6c00(0x1a4)](_0x327d73,{'coordinator':_0x138b24});case _0x5a1d09[_0x3d6c00(0x115)]:return _0x4c6baf['jsx'](_0x6b2b70,{'coordinator':_0x138b24});case _0x5a1d09[_0x3d6c00(0x19c)]:return _0x4c6baf[_0x3d6c00(0x1a4)](_0x49225b,{'coordinator':_0x138b24});case _0x5a1d09[_0x3d6c00(0x19a)]:return _0x4c6baf[_0x3d6c00(0x1a4)](_0x150387,{});case _0x5a1d09[_0x3d6c00(0x168)]:return _0x4c6baf[_0x3d6c00(0x1a4)](_0x9d8c37,{'coordinator':_0x138b24});default:return null;}}function _0x327d73(_0xda7876){var _0x41bb74=_0x5584b0;const {coordinator:_0x4108ec}=_0xda7876;return _0x4c6baf[_0x41bb74(0x1c5)](_0x4c6baf[_0x41bb74(0x18f)],{'children':[_0x4c6baf[_0x41bb74(0x1a4)](_0x41bb74(0x1bf),{'className':_0x41bb74(0x1c2),'children':_0x41bb74(0x1ad)}),_0x4c6baf[_0x41bb74(0x1a4)](_0x139814[_0x41bb74(0x12e)],{'size':'small','type':_0x41bb74(0x14d),'onClick':()=>_0x4108ec[_0x41bb74(0x1af)](),'children':'Start'})]});}function _0x6b2b70(_0x315003){var _0x373159=_0x5584b0;const {coordinator:_0x14395c}=_0x315003;return _0x4c6baf[_0x373159(0x1c5)](_0x4c6baf[_0x373159(0x18f)],{'children':[_0x4c6baf[_0x373159(0x1a4)]('div',{'className':_0x373159(0x1c2),'children':_0x373159(0x156)}),_0x4c6baf[_0x373159(0x1a4)](_0x139814['Button'],{'size':'small','type':_0x373159(0x14d),'onClick':()=>_0x14395c['stopFollowing'](),'children':_0x373159(0x12f)})]});}function _0x49225b(_0x5ecd21){var _0x5a1bab=_0x5584b0;const {coordinator:_0xbcf137}=_0x5ecd21;return _0x4c6baf[_0x5a1bab(0x1c5)](_0x4c6baf[_0x5a1bab(0x18f)],{'children':[_0x4c6baf[_0x5a1bab(0x1a4)](_0x5a1bab(0x1bf),{'className':'univer-block\x20univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5a1bab(0x121)}),_0x4c6baf[_0x5a1bab(0x1a4)](_0x139814[_0x5a1bab(0x12e)],{'size':'small','type':_0x5a1bab(0x19e),'onClick':()=>_0xbcf137[_0x5a1bab(0x188)](),'children':_0x5a1bab(0x13c)})]});}function _0x9d8c37(_0x30c9a1){var _0x5a528c=_0x5584b0;const {coordinator:_0x535655}=_0x30c9a1;return _0x4c6baf['jsxs'](_0x4c6baf[_0x5a528c(0x18f)],{'children':[_0x4c6baf['jsx'](_0x5a528c(0x1bf),{'className':_0x5a528c(0x1c2),'children':_0x5a528c(0x1b6)}),_0x4c6baf[_0x5a528c(0x1a4)](_0x139814[_0x5a528c(0x12e)],{'size':_0x5a528c(0x19d),'type':_0x5a528c(0x14d),'onClick':()=>_0x535655['stopPresenting'](),'children':_0x5a528c(0x195)})]});}function _0x150387(){var _0x947ac4=_0x5584b0;return _0x4c6baf[_0x947ac4(0x1a4)](_0x4c6baf[_0x947ac4(0x18f)],{'children':'You\x27are\x20offline.'});}var _0x424c7d=Object[_0x5584b0(0x184)],_0x401037=(_0x237fd4,_0x39668f,_0x19decd,_0x548a1e)=>{var _0x370f5a=_0x5584b0;for(var _0x5ee701=_0x548a1e>0x1?void 0x0:_0x548a1e?_0x424c7d(_0x39668f,_0x19decd):_0x39668f,_0x49a0c2=_0x237fd4[_0x370f5a(0x1bc)]-0x1,_0x14cd56;_0x49a0c2>=0x0;_0x49a0c2--)(_0x14cd56=_0x237fd4[_0x49a0c2])&&(_0x5ee701=_0x14cd56(_0x5ee701)||_0x5ee701);return _0x5ee701;},_0x2a4b14=(_0x30633f,_0xc1f234)=>(_0x715d6a,_0x4bd036)=>_0xc1f234(_0x715d6a,_0x4bd036,_0x30633f);_0x193141[_0x5584b0(0x1a8)]=class extends _0x37b171['Disposable']{constructor(_0x5defa4,_0x4ba93a){var _0xb48260=_0x5584b0;super(),this['_injector']=_0x5defa4,this[_0xb48260(0x150)]=_0x4ba93a,this[_0xb48260(0x167)]();}[_0x5584b0(0x167)](){var _0x460cf4=_0x5584b0;this[_0x460cf4(0x18c)](this['_uiPartsService']['registerComponent'](_0x934a3f[_0x460cf4(0x1b8)][_0x460cf4(0x173)],()=>_0x934a3f[_0x460cf4(0x15c)](_0x212227,this['_injector'])));}},_0x193141[_0x5584b0(0x1a8)]=_0x401037([_0x2a4b14(0x0,_0x37b171[_0x5584b0(0x1e5)](_0x37b171[_0x5584b0(0x136)])),_0x2a4b14(0x1,_0x934a3f[_0x5584b0(0x123)])],_0x193141['DesktopLiveShareController']);var _0x351651=Object['defineProperty'],_0x1cb455=Object[_0x5584b0(0x184)],_0x3016f5=(_0x1e142b,_0x308a27,_0xccb4be)=>_0x308a27 in _0x1e142b?_0x351651(_0x1e142b,_0x308a27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xccb4be}):_0x1e142b[_0x308a27]=_0xccb4be,_0x2e1a71=(_0x4a5c42,_0x16655b,_0x4a0118,_0xb3f3c0)=>{var _0xe9107=_0x5584b0;for(var _0x515ef4=_0xb3f3c0>0x1?void 0x0:_0xb3f3c0?_0x1cb455(_0x16655b,_0x4a0118):_0x16655b,_0xdbdf96=_0x4a5c42[_0xe9107(0x1bc)]-0x1,_0x5335f0;_0xdbdf96>=0x0;_0xdbdf96--)(_0x5335f0=_0x4a5c42[_0xdbdf96])&&(_0x515ef4=_0x5335f0(_0x515ef4)||_0x515ef4);return _0x515ef4;},_0x174404=(_0x1d21e8,_0x38c721)=>(_0x2c07b6,_0x27272d)=>_0x38c721(_0x2c07b6,_0x27272d,_0x1d21e8),_0x192a6d=(_0x56e86b,_0x12632b,_0x56111e)=>_0x3016f5(_0x56e86b,typeof _0x12632b!=_0x5584b0(0x160)?_0x12632b+'':_0x12632b,_0x56111e);const _0x12d8fe=_0x5584b0(0x157);_0x193141[_0x5584b0(0x202)]=class extends _0x37b171[_0x5584b0(0x140)]{constructor(_0xf68eed=_0x1a46e4,_0x56ff8c,_0xbe24b){var _0x34d364=_0x5584b0;super(),this[_0x34d364(0x1e1)]=_0xf68eed,this[_0x34d364(0x1bd)]=_0x56ff8c,this[_0x34d364(0x1fa)]=_0xbe24b;const {..._0x22318f}=_0x37b171[_0x34d364(0x1a2)]({},_0x1a46e4,this['_config']);this['_configService'][_0x34d364(0x1aa)](_0x2e5554,_0x22318f);}[_0x5584b0(0x180)](){var _0x4cce8a=_0x5584b0;_0x37b171[_0x4cce8a(0x170)](this[_0x4cce8a(0x1bd)],_0x37b171[_0x4cce8a(0x11e)]([[_0x36e21e],[_0x193141['LiveShareController']],[_0x486a9e],[_0x193141[_0x4cce8a(0x1a8)]]],this['_config'][_0x4cce8a(0x14a)])),_0x37b171['touchDependencies'](this['_injector'],[[_0x486a9e]]);}[_0x5584b0(0x144)](){var _0xeee8b7=_0x5584b0;_0x37b171['touchDependencies'](this[_0xeee8b7(0x1bd)],[[_0x193141[_0xeee8b7(0x1a8)]]]);}},_0x192a6d(_0x193141[_0x5584b0(0x202)],_0x5584b0(0x1dd),_0x37b171['UniverInstanceType'][_0x5584b0(0x1a6)]),_0x192a6d(_0x193141[_0x5584b0(0x202)],_0x5584b0(0x16e),_0x12d8fe),_0x193141[_0x5584b0(0x202)]=_0x2e1a71([_0x37b171[_0x5584b0(0x1f6)](_0x1b0fa0[_0x5584b0(0x17c)]),_0x174404(0x1,_0x37b171['Inject'](_0x37b171[_0x5584b0(0x136)])),_0x174404(0x2,_0x37b171[_0x5584b0(0x161)])],_0x193141[_0x5584b0(0x202)]),_0x193141[_0x5584b0(0x186)]=_0x212227,_0x193141[_0x5584b0(0x178)]=_0x36e21e,_0x193141[_0x5584b0(0x11b)]=_0x5a1d09,Object[_0x5584b0(0x1ae)](_0x193141,Symbol[_0x5584b0(0x15e)],{'value':_0x5584b0(0x1ec)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3-nightly.202503051607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,22 +47,22 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.2.20",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.6.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets-ui": "0.6.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.6.3-nightly.202503051607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.6.3-nightly.202503051607",
|
|
52
|
+
"@univerjs/design": "0.6.3-nightly.202503051607",
|
|
53
|
+
"@univerjs/sheets-ui": "0.6.3-nightly.202503051607",
|
|
54
|
+
"@univerjs/core": "0.6.3-nightly.202503051607",
|
|
55
|
+
"@univerjs/sheets": "0.6.3-nightly.202503051607",
|
|
56
|
+
"@univerjs/ui": "0.6.3-nightly.202503051607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"react": "18.3.1",
|
|
60
60
|
"rxjs": "^7.8.1",
|
|
61
61
|
"tailwindcss": "^3.4.17",
|
|
62
|
-
"typescript": "^5.
|
|
62
|
+
"typescript": "^5.8.2",
|
|
63
63
|
"vite": "^6.2.0",
|
|
64
64
|
"vitest": "^3.0.7",
|
|
65
|
-
"@univerjs-infra/shared": "0.6.
|
|
65
|
+
"@univerjs-infra/shared": "0.6.3",
|
|
66
66
|
"@univerjs/protocol": "0.1.44-alpha.3"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|