@univerjs-pro/live-share 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x477ba9=_0xb564;(function(_0x4fe548,_0x4a0aa2){var _0x23f6fb=_0xb564,_0x44843a=_0x4fe548();while(!![]){try{var _0x35244f=-parseInt(_0x23f6fb(0x21f))/0x1+parseInt(_0x23f6fb(0x1e6))/0x2+-parseInt(_0x23f6fb(0x206))/0x3*(-parseInt(_0x23f6fb(0x1ed))/0x4)+parseInt(_0x23f6fb(0x26a))/0x5*(-parseInt(_0x23f6fb(0x267))/0x6)+parseInt(_0x23f6fb(0x225))/0x7*(parseInt(_0x23f6fb(0x28b))/0x8)+-parseInt(_0x23f6fb(0x2ad))/0x9+-parseInt(_0x23f6fb(0x208))/0xa*(-parseInt(_0x23f6fb(0x254))/0xb);if(_0x35244f===_0x4a0aa2)break;else _0x44843a['push'](_0x44843a['shift']());}catch(_0x59c742){_0x44843a['push'](_0x44843a['shift']());}}}(_0x331b,0x6e9f3));var U=Object[_0x477ba9(0x264)],F=(_0x2b7ca7,_0x4b16a0,_0x1ffb1a)=>_0x4b16a0 in _0x2b7ca7?U(_0x2b7ca7,_0x4b16a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ffb1a}):_0x2b7ca7[_0x4b16a0]=_0x1ffb1a,v=(_0x1b5bbf,_0x6293e4,_0x135e39)=>F(_0x1b5bbf,typeof _0x6293e4!='symbol'?_0x6293e4+'':_0x6293e4,_0x135e39);Object[_0x477ba9(0x264)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x3bb1d7=_0x477ba9;return u=Object[_0x3bb1d7(0x283)]||function(_0xa3b9cc){var _0x1418af=_0x3bb1d7;for(var _0x4d04ed,_0x5f3185=0x1,_0x38d54e=arguments[_0x1418af(0x1fb)];_0x5f3185<_0x38d54e;_0x5f3185++){_0x4d04ed=arguments[_0x5f3185];for(var _0x31075b in _0x4d04ed)Object[_0x1418af(0x1e5)][_0x1418af(0x240)]['call'](_0x4d04ed,_0x31075b)&&(_0xa3b9cc[_0x31075b]=_0x4d04ed[_0x31075b]);}return _0xa3b9cc;},u[_0x3bb1d7(0x1fc)](this,arguments);},$=function(_0x2d6e51,_0x1883b7){var _0x242ccf=_0x477ba9,_0x2d0248={};for(var _0x163f2d in _0x2d6e51)Object[_0x242ccf(0x1e5)][_0x242ccf(0x240)][_0x242ccf(0x246)](_0x2d6e51,_0x163f2d)&&_0x1883b7[_0x242ccf(0x23b)](_0x163f2d)<0x0&&(_0x2d0248[_0x163f2d]=_0x2d6e51[_0x163f2d]);if(_0x2d6e51!=null&&typeof Object[_0x242ccf(0x1f9)]==_0x242ccf(0x292)){for(var _0x188b1c=0x0,_0x163f2d=Object[_0x242ccf(0x1f9)](_0x2d6e51);_0x188b1c<_0x163f2d['length'];_0x188b1c++)_0x1883b7[_0x242ccf(0x23b)](_0x163f2d[_0x188b1c])<0x0&&Object[_0x242ccf(0x1e5)]['propertyIsEnumerable'][_0x242ccf(0x246)](_0x2d6e51,_0x163f2d[_0x188b1c])&&(_0x2d0248[_0x163f2d[_0x188b1c]]=_0x2d6e51[_0x163f2d[_0x188b1c]]);}return _0x2d0248;},j=f['forwardRef'](function(_0x3d5318,_0x2cf074){var _0x2fc62f=_0x477ba9,_0x373db1=_0x3d5318['icon'],_0x3ded00=_0x3d5318['id'],_0x2e337c=_0x3d5318[_0x2fc62f(0x204)],_0x3ae24d=_0x3d5318[_0x2fc62f(0x22f)],_0x5b3b50=$(_0x3d5318,[_0x2fc62f(0x24a),'id','className',_0x2fc62f(0x22f)]),_0x5b2694=_0x2fc62f(0x24c)['concat'](_0x3ded00,'\x20')['concat'](_0x2e337c||'')[_0x2fc62f(0x263)](),_0x38cfd8=f[_0x2fc62f(0x286)]('_'[_0x2fc62f(0x20e)](k()));return y(_0x373db1,''[_0x2fc62f(0x20e)](_0x3ded00),{'defIds':_0x373db1['defIds'],'idSuffix':_0x38cfd8[_0x2fc62f(0x210)]},u({'ref':_0x2cf074,'className':_0x5b2694},_0x5b3b50),_0x3ae24d);});function y(_0x5d9ba8,_0x4454d7,_0x4bab29,_0x3126a8,_0xc7a8fd){var _0x11357c=_0x477ba9;return f[_0x11357c(0x1f2)](_0x5d9ba8['tag'],u(u({'key':_0x4454d7},H(_0x5d9ba8,_0x4bab29,_0xc7a8fd)),_0x3126a8),(V(_0x5d9ba8,_0x4bab29)[_0x11357c(0x20f)]||[])[_0x11357c(0x2a0)](function(_0x53da20,_0x573733){var _0x435ec9=_0x11357c;return y(_0x53da20,''[_0x435ec9(0x20e)](_0x4454d7,'-')[_0x435ec9(0x20e)](_0x5d9ba8[_0x435ec9(0x21e)],'-')['concat'](_0x573733),_0x4bab29,void 0x0,_0xc7a8fd);}));}function H(_0x1b8946,_0x1ca9ad,_0x8eab6d){var _0x40b1da=_0x477ba9,_0x75c9b0=u({},_0x1b8946[_0x40b1da(0x20a)]);_0x8eab6d!=null&&_0x8eab6d[_0x40b1da(0x201)]&&_0x75c9b0[_0x40b1da(0x255)]===_0x40b1da(0x201)&&(_0x75c9b0[_0x40b1da(0x255)]=_0x8eab6d['colorChannel1']),_0x1b8946['tag']===_0x40b1da(0x258)&&_0x75c9b0['id']&&(_0x75c9b0['id']=_0x75c9b0['id']+_0x1ca9ad[_0x40b1da(0x2a6)]),Object[_0x40b1da(0x27c)](_0x75c9b0)[_0x40b1da(0x28e)](function(_0xb9b7e){var _0x298b1e=_0x40b1da,_0x4887c8=_0xb9b7e[0x0],_0x4731c4=_0xb9b7e[0x1];_0x4887c8==='mask'&&typeof _0x4731c4=='string'&&(_0x75c9b0[_0x4887c8]=_0x4731c4[_0x298b1e(0x253)](/url\(#(.*)\)/,_0x298b1e(0x298)[_0x298b1e(0x20e)](_0x1ca9ad[_0x298b1e(0x2a6)],')')));});var _0x30c938=_0x1ca9ad[_0x40b1da(0x289)];return!_0x30c938||_0x30c938['length']===0x0||(_0x1b8946[_0x40b1da(0x21e)]===_0x40b1da(0x1e4)&&_0x75c9b0['xlink:href']&&(_0x75c9b0[_0x40b1da(0x29a)]=_0x75c9b0[_0x40b1da(0x29a)]+_0x1ca9ad['idSuffix']),Object[_0x40b1da(0x27c)](_0x75c9b0)[_0x40b1da(0x28e)](function(_0xaa4de9){var _0x377905=_0x40b1da,_0x3a39fb=_0xaa4de9[0x0],_0x31fd55=_0xaa4de9[0x1];typeof _0x31fd55==_0x377905(0x287)&&(_0x75c9b0[_0x3a39fb]=_0x31fd55[_0x377905(0x253)](/url\(#(.*)\)/,_0x377905(0x298)['concat'](_0x1ca9ad['idSuffix'],')')));})),_0x75c9b0;}function V(_0x550d3c,_0x84847){var _0x1ecd5b=_0x477ba9,_0x244907,_0x37aa4f=_0x84847[_0x1ecd5b(0x289)];return!_0x37aa4f||_0x37aa4f['length']===0x0?_0x550d3c:_0x550d3c[_0x1ecd5b(0x21e)]==='defs'&&(!((_0x244907=_0x550d3c[_0x1ecd5b(0x20f)])===null||_0x244907===void 0x0)&&_0x244907[_0x1ecd5b(0x1fb)])?u(u({},_0x550d3c),{'children':_0x550d3c[_0x1ecd5b(0x20f)]['map'](function(_0x4cd2d6){var _0x14cacb=_0x1ecd5b;return typeof _0x4cd2d6[_0x14cacb(0x20a)]['id']==_0x14cacb(0x287)&&_0x37aa4f&&_0x37aa4f[_0x14cacb(0x262)](_0x4cd2d6[_0x14cacb(0x20a)]['id'])?u(u({},_0x4cd2d6),{'attrs':u(u({},_0x4cd2d6[_0x14cacb(0x20a)]),{'id':_0x4cd2d6['attrs']['id']+_0x84847['idSuffix']})}):_0x4cd2d6;})}):_0x550d3c;}function k(){var _0x3cc032=_0x477ba9;return Math['random']()[_0x3cc032(0x244)](0x24)[_0x3cc032(0x23c)](0x2,0x8);}j[_0x477ba9(0x297)]='UniverIcon';var M={'tag':'svg','attrs':{'xmlns':_0x477ba9(0x250),'fill':_0x477ba9(0x1e2),'viewBox':_0x477ba9(0x207),'width':'1em','height':_0x477ba9(0x1db)},'children':[{'tag':_0x477ba9(0x1fe),'attrs':{'fill':_0x477ba9(0x245),'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':_0x477ba9(0x1fe),'attrs':{'fill':_0x477ba9(0x245),'d':_0x477ba9(0x1ec),'fillRule':_0x477ba9(0x2a2),'clipRule':_0x477ba9(0x2a2)}}]},P=f[_0x477ba9(0x1d6)](function(_0x30cb51,_0x2a6828){var _0x5cca35=_0x477ba9;return f[_0x5cca35(0x1f2)](j,Object[_0x5cca35(0x283)]({},_0x30cb51,{'id':_0x5cca35(0x251),'ref':_0x2a6828,'icon':M}));});P['displayName']=_0x477ba9(0x23d);function _0xb564(_0x475951,_0x4eccfa){var _0x331bca=_0x331b();return _0xb564=function(_0xb564c9,_0x108ea3){_0xb564c9=_0xb564c9-0x1d1;var _0x2d6b52=_0x331bca[_0xb564c9];return _0x2d6b52;},_0xb564(_0x475951,_0x4eccfa);}class O extends o[_0x477ba9(0x1f3)]{constructor(){var _0x35f2aa=_0x477ba9;super(...arguments),v(this,_0x35f2aa(0x26f),new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x44a531){var _0x238bba=_0x477ba9;return this[_0x238bba(0x26f)]['add'](_0x44a531),o['toDisposable'](()=>this[_0x238bba(0x26f)][_0x238bba(0x27b)](_0x44a531));}[_0x477ba9(0x221)](_0x11285d){var _0x3f591b=_0x477ba9;return this[_0x3f591b(0x24d)]['add'](_0x11285d),o[_0x3f591b(0x22e)](()=>this['_reporters'][_0x3f591b(0x27b)](_0x11285d));}[_0x477ba9(0x213)](_0xc2227e){return this['_sharedOperations']['has'](_0xc2227e);}[_0x477ba9(0x26e)](_0x38838d){return Array['from'](this['_reporters'])['map'](_0xe53264=>_0xe53264(_0x38838d));}}var q=Object[_0x477ba9(0x237)],R=(_0x142232,_0x412e43,_0x453576,_0x272b75)=>{var _0x38b741=_0x477ba9;for(var _0x50dcaa=_0x272b75>0x1?void 0x0:_0x272b75?q(_0x412e43,_0x453576):_0x412e43,_0x5797b5=_0x142232[_0x38b741(0x1fb)]-0x1,_0x4c1fbc;_0x5797b5>=0x0;_0x5797b5--)(_0x4c1fbc=_0x142232[_0x5797b5])&&(_0x50dcaa=_0x4c1fbc(_0x50dcaa)||_0x50dcaa);return _0x50dcaa;},S=(_0x5c6d62,_0x2f01ed)=>(_0x58f2d5,_0x7d2696)=>_0x2f01ed(_0x58f2d5,_0x7d2696,_0x5c6d62);exports[_0x477ba9(0x248)]=class extends o[_0x477ba9(0x28d)]{constructor(_0x1865e2,_0x485061,_0x23cb45){var _0x27b140=_0x477ba9;super(),v(this,_0x27b140(0x224),new Map()),(this['_univerInstanceService']=_0x1865e2,this[_0x27b140(0x1dd)]=_0x485061,this[_0x27b140(0x22b)]=_0x23cb45,this['_init']());}async[_0x477ba9(0x234)](_0x594095){var _0x3ceaaf=_0x477ba9;return this[_0x3ceaaf(0x224)][_0x3ceaaf(0x21c)](_0x594095)||await this[_0x3ceaaf(0x1fa)](_0x594095),this[_0x3ceaaf(0x224)][_0x3ceaaf(0x20c)](_0x594095);}[_0x477ba9(0x216)](){var _0x31f059=_0x477ba9;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x31f059(0x2a8)]['UNIVER_SHEET'])[_0x31f059(0x294)](b['takeUntil'](this[_0x31f059(0x238)]))[_0x31f059(0x293)](async _0x5a8e3a=>{var _0x5c7b8f=_0x31f059;const _0x219391=_0x5a8e3a['getUnitId']();this['_entities'][_0x5c7b8f(0x21c)](_0x219391)||this[_0x5c7b8f(0x1fa)](_0x219391);}),this[_0x31f059(0x1dc)][_0x31f059(0x22c)](o['UniverInstanceType'][_0x31f059(0x29c)])[_0x31f059(0x294)](b[_0x31f059(0x1ee)](this[_0x31f059(0x238)]))[_0x31f059(0x293)](_0x4b7b35=>{var _0x2253a9=_0x31f059;const _0x2f621a=_0x4b7b35[_0x2253a9(0x24b)](),_0x169734=this['_entities'][_0x2253a9(0x20c)](_0x2f621a);_0x169734==null||_0x169734[_0x2253a9(0x1f5)]();});}async['_startLiveShareCoordinator'](_0x5f3f2a){var _0x76a45=_0x477ba9;const _0x23a058=await this[_0x76a45(0x22b)][_0x76a45(0x1f8)](_0x5f3f2a),_0x5cba9a=this[_0x76a45(0x1dd)][_0x76a45(0x1e3)](exports[_0x76a45(0x23e)],_0x5f3f2a,_0x23a058);return _0x5cba9a[_0x76a45(0x23f)](),this[_0x76a45(0x224)]['set'](_0x5f3f2a,_0x5cba9a),_0x5cba9a;}},exports[_0x477ba9(0x248)]=R([S(0x0,o[_0x477ba9(0x256)]),S(0x1,o['Inject'](o[_0x477ba9(0x2ae)])),S(0x2,o[_0x477ba9(0x1eb)](m[_0x477ba9(0x1ef)]))],exports[_0x477ba9(0x248)]);var h=(_0xf36fc6=>(_0xf36fc6['OFFLINE']=_0x477ba9(0x279),_0xf36fc6['IDLE']='idle',_0xf36fc6[_0x477ba9(0x1f4)]='following',_0xf36fc6[_0x477ba9(0x2b1)]=_0x477ba9(0x284),_0xf36fc6['PRESENTING']='presenting',_0xf36fc6))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x477ba9(0x23e)]=class extends o['RxDisposable']{constructor(_0x487cf8,_0x3bea45,_0x3aecda,_0x453bc9,_0x5f1fc4){var _0x31856b=_0x477ba9;super(),v(this,'_status$',new w[(_0x31856b(0x2ab))](_0x31856b(0x230))),v(this,_0x31856b(0x25d),this['_status$'][_0x31856b(0x1fd)]()),v(this,_0x31856b(0x216),!0x1),v(this,_0x31856b(0x257),null),v(this,_0x31856b(0x21d),null),(this[_0x31856b(0x200)]=_0x487cf8,this['_collabSession']=_0x3bea45,this[_0x31856b(0x265)]=_0x3aecda,this[_0x31856b(0x22d)]=_0x453bc9,this[_0x31856b(0x26c)]=_0x5f1fc4);}get[_0x477ba9(0x2a1)](){var _0x3b28cd=_0x477ba9;return this['_status$'][_0x3b28cd(0x1ea)]();}['dispose'](){var _0x23a1c1=_0x477ba9,_0x451f81;(_0x451f81=this[_0x23a1c1(0x257)])==null||_0x451f81[_0x23a1c1(0x1f5)](),this[_0x23a1c1(0x220)][_0x23a1c1(0x243)](_0x23a1c1(0x230)),this[_0x23a1c1(0x220)][_0x23a1c1(0x280)]();}['init'](){var _0x5d0690=_0x477ba9;this[_0x5d0690(0x216)]||(this[_0x5d0690(0x216)]=!0x0,this[_0x5d0690(0x2a3)][_0x5d0690(0x266)]['pipe'](b[_0x5d0690(0x1ee)](this[_0x5d0690(0x238)]))['subscribe'](_0xc44c1d=>{var _0x51eb83=_0x5d0690;switch(_0xc44c1d){case m['SessionStatus'][_0x51eb83(0x1f0)]:this[_0x51eb83(0x274)]();break;case m['SessionStatus']['ONLINE']:this[_0x51eb83(0x25b)]();break;}}),this[_0x5d0690(0x2a3)][_0x5d0690(0x270)][_0x5d0690(0x294)](b['takeUntil'](this[_0x5d0690(0x238)]))[_0x5d0690(0x293)](_0x28f52b=>{var _0x913668=_0x5d0690;const {eventID:_0x306266}=_0x28f52b;switch(_0x306266){case _[_0x913668(0x203)][_0x913668(0x1da)]:this[_0x913668(0x295)](_0x28f52b);break;case _['CollaborationEvent'][_0x913668(0x25e)]:this[_0x913668(0x212)](_0x28f52b);break;case _[_0x913668(0x203)][_0x913668(0x290)]:this[_0x913668(0x259)]();break;case _[_0x913668(0x203)][_0x913668(0x269)]:this['_handleNewChangeSets'](_0x28f52b);break;}}));}[_0x477ba9(0x296)](){var _0x585f83=_0x477ba9;this['_collabSession'][_0x585f83(0x28a)]({'eventID':_[_0x585f83(0x203)][_0x585f83(0x228)],'data':{'unitID':this[_0x585f83(0x200)],'userID':this[_0x585f83(0x2a3)][_0x585f83(0x1d8)]()}},this[_0x585f83(0x200)]);}[_0x477ba9(0x26d)](){var _0x4b7f71=_0x477ba9;this['_status']===_0x4b7f71(0x1e9)&&(this[_0x4b7f71(0x220)][_0x4b7f71(0x243)]('idle'),this['_collabSession'][_0x4b7f71(0x28a)]({'eventID':_[_0x4b7f71(0x203)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x5dcbfe=_0x477ba9;this[_0x5dcbfe(0x2a1)]===_0x5dcbfe(0x284)&&(this['_status$'][_0x5dcbfe(0x243)](_0x5dcbfe(0x21a)),this[_0x5dcbfe(0x21b)]());}[_0x477ba9(0x227)](){var _0x3d0b7f=_0x477ba9;this[_0x3d0b7f(0x2a1)]===_0x3d0b7f(0x21a)&&this['_stopFollowing']();}[_0x477ba9(0x295)](_0x5d98d9){var _0x3d8df5=_0x477ba9;const {presenter:_0x2a5796}=_0x5d98d9[_0x3d8df5(0x260)],_0x2c36e8=this[_0x3d8df5(0x2a3)][_0x3d8df5(0x1d8)]();this[_0x3d8df5(0x21d)]=_0x2a5796,_0x2a5796===_0x2c36e8?(this[_0x3d8df5(0x272)](),this[_0x3d8df5(0x217)]()):this['_status']!==_0x3d8df5(0x284)&&(this[_0x3d8df5(0x1df)](),this[_0x3d8df5(0x21b)]());}[_0x477ba9(0x2aa)](){var _0x474624=_0x477ba9;const _0x1a572d={'eventID':_['CollaborationEvent'][_0x474624(0x1e0)]};this['_collabSession']['send'](_0x1a572d,this[_0x474624(0x200)]);}['_handleTerminate'](){var _0x47ac40=_0x477ba9;this[_0x47ac40(0x21d)]=null,this[_0x47ac40(0x2a1)]!==_0x47ac40(0x1e9)&&this[_0x47ac40(0x285)]();}[_0x477ba9(0x277)](_0x223d98){var _0x456375=_0x477ba9;if(this[_0x456375(0x2a1)]===_0x456375(0x21a)&&this['_presenter']===_0x223d98['data'][_0x456375(0x23a)]){const _0x114fa2=_[_0x456375(0x241)](_0x223d98[_0x456375(0x260)])[_0x456375(0x29e)][_0x456375(0x247)]()[_0x456375(0x1d2)](_0x479024=>_0x479024['id']===C['InsertSheetMutation']['id']);if(_0x114fa2){const _0x5d24e1=_0x114fa2[_0x456375(0x235)]['unitId'],_0x34a84d=_0x114fa2[_0x456375(0x235)]['sheet']['id'];setTimeout(()=>{var _0x3eea4d=_0x456375;this['_commandService'][_0x3eea4d(0x226)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5d24e1,'subUnitId':_0x34a84d},{'fromCollab':!0x0});});}}}[_0x477ba9(0x217)](){var _0x47bbd7=_0x477ba9;this[_0x47bbd7(0x220)][_0x47bbd7(0x243)](_0x47bbd7(0x1e9));const _0x5cf54c=new Map(),_0x49cdf2=this[_0x47bbd7(0x257)]=new o[(_0x47bbd7(0x20b))]();_0x49cdf2['add'](o['toDisposable'](()=>{var _0x3ebffb=_0x47bbd7;_0x5cf54c[_0x3ebffb(0x28e)](_0x3cf1ad=>_0x3cf1ad[_0x3ebffb(0x280)]()),_0x5cf54c[_0x3ebffb(0x28c)]();})),_0x49cdf2[_0x47bbd7(0x1de)](this[_0x47bbd7(0x26c)][_0x47bbd7(0x232)](_0x41fcf6=>{var _0x2abb2a=_0x47bbd7,_0x5b28bf;if(_0x41fcf6['type']!==o['CommandType'][_0x2abb2a(0x24f)]||!this['_liveShareService']['shouldShareOperation'](_0x41fcf6['id']))return;const {id:_0x1807af}=_0x41fcf6;let _0x1def17;_0x5cf54c[_0x2abb2a(0x21c)](_0x1807af)?_0x1def17=_0x5cf54c[_0x2abb2a(0x20c)](_0x1807af):(_0x1def17=new w[(_0x2abb2a(0x28f))](),_0x5cf54c[_0x2abb2a(0x2ac)](_0x1807af,_0x1def17),_0x1def17[_0x2abb2a(0x294)](b[_0x2abb2a(0x218)]((_0x5b28bf=this[_0x2abb2a(0x265)]['getConfig'](W))!=null?_0x5b28bf:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2abb2a(0x293)](_0x21c41c=>{var _0x10a4d9=_0x2abb2a;this[_0x10a4d9(0x2a3)][_0x10a4d9(0x28a)]({'eventID':_[_0x10a4d9(0x203)][_0x10a4d9(0x25e)],'data':{'unitID':this[_0x10a4d9(0x200)],'operations':{[_0x21c41c['id']]:{'id':_0x21c41c['id'],'params':JSON[_0x10a4d9(0x29f)](_0x21c41c[_0x10a4d9(0x235)])}}}},this[_0x10a4d9(0x200)]);})),_0x1def17[_0x2abb2a(0x243)](_0x41fcf6);})),this[_0x47bbd7(0x22d)][_0x47bbd7(0x26e)](this[_0x47bbd7(0x200)])[_0x47bbd7(0x28e)](_0x2d14af=>this[_0x47bbd7(0x2a3)][_0x47bbd7(0x28a)]({'eventID':_[_0x47bbd7(0x203)][_0x47bbd7(0x25e)],'data':{'unitID':this[_0x47bbd7(0x200)],'operations':{[_0x2d14af['id']]:{'id':_0x2d14af['id'],'params':JSON[_0x47bbd7(0x29f)](_0x2d14af['params'])}}}},this[_0x47bbd7(0x200)]));}['_stopPresenting'](){var _0x54b332=_0x477ba9,_0x3be7df;this[_0x54b332(0x220)][_0x54b332(0x243)](_0x54b332(0x230)),(_0x3be7df=this[_0x54b332(0x257)])==null||_0x3be7df['dispose'](),this[_0x54b332(0x257)]=null;}['_startFollowing'](){var _0x3b7001=_0x477ba9,_0x523204;(_0x523204=this[_0x3b7001(0x257)])==null||_0x523204[_0x3b7001(0x1f5)](),this[_0x3b7001(0x220)]['next']('following');}[_0x477ba9(0x285)](){var _0x11ca10=_0x477ba9,_0x2c4337;this[_0x11ca10(0x220)][_0x11ca10(0x243)](_0x11ca10(0x230)),(_0x2c4337=this['_commandDisposable'])==null||_0x2c4337[_0x11ca10(0x1f5)](),this[_0x11ca10(0x257)]=null;}[_0x477ba9(0x272)](){var _0x378a9b=_0x477ba9,_0x2c3613;this[_0x378a9b(0x220)][_0x378a9b(0x243)](_0x378a9b(0x284)),(_0x2c3613=this['_commandDisposable'])==null||_0x2c3613['dispose']();}[_0x477ba9(0x212)](_0x506c77){var _0x154bc7=_0x477ba9;if(['presenting',_0x154bc7(0x284),_0x154bc7(0x279)][_0x154bc7(0x262)](this['_status'])||!_0x506c77[_0x154bc7(0x260)][_0x154bc7(0x223)]||_0x506c77[_0x154bc7(0x260)][_0x154bc7(0x223)]===this[_0x154bc7(0x2a3)][_0x154bc7(0x1d8)]())return;this['_status']===_0x154bc7(0x230)&&this['_startFollowing']();const _0x47c6b8=_0x506c77['data']['operations'];Object[_0x154bc7(0x20d)](_0x47c6b8)[_0x154bc7(0x28e)](_0x4ee3cb=>{var _0x1f2d78=_0x154bc7;this['_commandService']['executeCommand'](_0x4ee3cb['id'],_0x4ee3cb[_0x1f2d78(0x235)]?JSON['parse'](_0x4ee3cb[_0x1f2d78(0x235)]):null,{'fromCollab':!0x0});});}[_0x477ba9(0x274)](){var _0x390dca=_0x477ba9,_0x51b0cd;this[_0x390dca(0x220)][_0x390dca(0x243)](_0x390dca(0x279)),(_0x51b0cd=this[_0x390dca(0x257)])==null||_0x51b0cd[_0x390dca(0x1f5)]();}[_0x477ba9(0x25b)](){var _0x590914=_0x477ba9;this['_status$'][_0x590914(0x243)](_0x590914(0x230)),this[_0x590914(0x2aa)]();}},exports[_0x477ba9(0x23e)]=R([S(0x2,o[_0x477ba9(0x215)]),S(0x3,o[_0x477ba9(0x1eb)](O)),S(0x4,o[_0x477ba9(0x202)])],exports['LiveShareCoordinator']);function _0x331b(){var _0x808cbc=['registerDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forwardRef','UniverCollaborationClientPlugin','getMemberID','DesktopLiveShareController','LIVESHARE_NEW_HOST','1em','_univerInstanceService','_injector','add','_stopPresenting','LIVESHARE_FETCH_OPERATIONS','text','none','createInstance','use','prototype','1685244CQWExr','_mountLiveShare','Present\x20this\x20document','presenting','getValue','Inject','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','1573784UbQVhQ','takeUntil','CollaborationSessionService','OFFLINE','DependentOn','createElement','Disposable','FOLLOWING','dispose','registerComponent','getCurrentTypeOfUnit$','requireSession','getOwnPropertySymbols','_startLiveShareCoordinator','length','apply','asObservable','path','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','colorChannel1','ICommandService','CollaborationEvent','className','IDLE','6wzoZtC','0\x200\x2017\x2017','70hQlgjn','clsx','attrs','DisposableCollection','get','values','concat','children','current','jsx','_handleOperation','shouldShareOperation','Stop\x20following','IConfigService','_init','_startPresenting','throttleTime','HEADER_MENU','following','_startFollowing','has','_presenter','tag','289380nrjrPe','_status$','registerInitialStateReporter','useState','presenter','_entities','1167936sswBTn','executeCommand','stopFollowing','LIVESHARE_REQUEST_HOST','symbol','LiveShareService','_collabSessionService','getTypeOfUnitDisposed$','_liveShareService','toDisposable','extend','idle','You\x27are\x20offline.','onCommandExecuted','startFollowing','getLiveShareCoordinator','params','div','getOwnPropertyDescriptor','dispose$','end','memberID','indexOf','substring','LiveShareIcon','LiveShareCoordinator','init','hasOwnProperty','parseProtocolChangeset','Start','next','toString','currentColor','call','reverse','LiveShareController','Start\x20following','icon','getUnitId','univerjs-icon\x20univerjs-icon-','_reporters','_config','OPERATION','http://www.w3.org/2000/svg','live-share-icon','then','replace','403634tGkVsb','fill','IUniverInstanceService','_commandDisposable','mask','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','unsubscribe','status$','LIVESHARE_OPERATION','_uiPartsService','data','Button','includes','trim','defineProperty','_configService','sessionStatus$','1152636nOomJK','SetZoomRatioOperation','NEW_CHANGESETS','20uqRjNS','merge','_commandService','stopPresenting','getInitialStates','_sharedOperations','event$','useEffect','_stopFollowing','touchDependencies','_handleOffline','registerSharedOperation','live-share.config','_handleNewChangeSets','setConfig','offline','useObservable','delete','entries','UNIVER_UNKNOWN','mergeOverrideWithDependencies','default','complete','button','IUIPartsService','assign','not-following','_beIdle','useRef','string','onStarting','defIds','send','24JQKQyz','clear','RxDisposable','forEach','Subject','LIVESHARE_TERMINATE','PRESENTING','function','subscribe','pipe','_handleNewHost','tryStartPresenting','displayName','url(#$1','Fragment','xlink:href','SetWorksheetActiveOperation','UNIVER_SHEET','univer-size-4','mutations','stringify','map','_status','evenodd','_collabSession','type','LiveShareStatus','idSuffix','pluginName','UniverInstanceType','UniverLiveSharePlugin','_fetchOperations','BehaviorSubject','set','7884045YcEmiC','Injector','disposeWithMe','useDependency','NOT_FOLLOWING','onRendered','jsxs','find'];_0x331b=function(){return _0x808cbc;};return _0x331b();}function A(){var _0x3fb48e=_0x477ba9;const _0x20adc9=p[_0x3fb48e(0x2b0)](exports['LiveShareController']),_0xb306c8=p[_0x3fb48e(0x2b0)](o[_0x3fb48e(0x256)]),_0x484081=p[_0x3fb48e(0x27a)](()=>_0xb306c8[_0x3fb48e(0x1f7)](o[_0x3fb48e(0x2a8)][_0x3fb48e(0x29c)]),void 0x0,!0x1,[]),[_0xe8bd2a,_0x556dc1]=f[_0x3fb48e(0x222)](null),[_0x5b257a,_0x32eb7e]=f[_0x3fb48e(0x222)](h[_0x3fb48e(0x205)]),_0x1f7b68=f[_0x3fb48e(0x286)](null);return f[_0x3fb48e(0x271)](()=>(_0x484081&&_0x20adc9[_0x3fb48e(0x234)](_0x484081[_0x3fb48e(0x24b)]())[_0x3fb48e(0x252)](_0x4f94da=>{var _0x5af1c6=_0x3fb48e;_0x556dc1(_0x4f94da),_0x1f7b68[_0x5af1c6(0x210)]=_0x4f94da[_0x5af1c6(0x25d)][_0x5af1c6(0x293)](_0x176d6d=>{_0x32eb7e(_0x176d6d);});}),()=>{var _0xe15afd=_0x3fb48e,_0x4e99ec;(_0x4e99ec=_0x1f7b68['current'])==null||_0x4e99ec[_0xe15afd(0x25c)](),_0x1f7b68[_0xe15afd(0x210)]=null;}),[_0x484081,_0x20adc9]),_0xe8bd2a?l[_0x3fb48e(0x211)](g['Dropdown'],{'align':_0x3fb48e(0x239),'disabled':_0x5b257a===h[_0x3fb48e(0x1f0)],'className':_0x3fb48e(0x1d5),'overlay':l[_0x3fb48e(0x211)](B,{'status':_0x5b257a,'coordinator':_0xe8bd2a}),'children':l['jsx'](_0x3fb48e(0x281),{'className':g[_0x3fb48e(0x209)](_0x3fb48e(0x1d4),{'univer-cursor-not-allowed':_0x5b257a===h[_0x3fb48e(0x1f0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b257a!==h[_0x3fb48e(0x1f0)]}),'type':_0x3fb48e(0x281),'children':l[_0x3fb48e(0x211)](P,{'className':_0x3fb48e(0x29d)})})}):null;}function B(_0x5dc0f1){var _0x4be551=_0x477ba9;const {status:_0x25b82a,coordinator:_0x1ec372}=_0x5dc0f1;switch(_0x25b82a){case h[_0x4be551(0x205)]:return l['jsx'](Y,{'coordinator':_0x1ec372});case h['FOLLOWING']:return l[_0x4be551(0x211)](Z,{'coordinator':_0x1ec372});case h['NOT_FOLLOWING']:return l['jsx'](J,{'coordinator':_0x1ec372});case h['OFFLINE']:return l[_0x4be551(0x211)](z,{});case h[_0x4be551(0x291)]:return l['jsx'](K,{'coordinator':_0x1ec372});default:return null;}}function Y(_0x428df5){var _0x31d974=_0x477ba9;const {coordinator:_0x561d02}=_0x428df5;return l[_0x31d974(0x1d1)](l['Fragment'],{'children':[l['jsx'](_0x31d974(0x236),{'className':_0x31d974(0x1ff),'children':_0x31d974(0x1e8)}),l[_0x31d974(0x211)](g[_0x31d974(0x261)],{'onClick':()=>_0x561d02['tryStartPresenting'](),'children':_0x31d974(0x242)})]});}function Z(_0x597cba){var _0x2211f7=_0x477ba9;const {coordinator:_0x3324f7}=_0x597cba;return l[_0x2211f7(0x1d1)](l[_0x2211f7(0x299)],{'children':[l['jsx'](_0x2211f7(0x236),{'className':_0x2211f7(0x1ff),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x2211f7(0x211)](g['Button'],{'onClick':()=>_0x3324f7[_0x2211f7(0x227)](),'children':_0x2211f7(0x214)})]});}function J(_0x44bb18){var _0xb93d80=_0x477ba9;const {coordinator:_0x3a6d58}=_0x44bb18;return l[_0xb93d80(0x1d1)](l[_0xb93d80(0x299)],{'children':[l['jsx'](_0xb93d80(0x236),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0xb93d80(0x261)],{'variant':_0xb93d80(0x1e1),'onClick':()=>_0x3a6d58[_0xb93d80(0x233)](),'children':_0xb93d80(0x249)})]});}function K(_0x1c31cc){var _0x2ffba6=_0x477ba9;const {coordinator:_0x283bec}=_0x1c31cc;return l[_0x2ffba6(0x1d1)](l[_0x2ffba6(0x299)],{'children':[l[_0x2ffba6(0x211)](_0x2ffba6(0x236),{'className':_0x2ffba6(0x1ff),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2ffba6(0x211)](g[_0x2ffba6(0x261)],{'variant':_0x2ffba6(0x27f),'onClick':()=>_0x283bec['stopPresenting'](),'children':'Stop\x20presenting'})]});}function z(){var _0x33e3b9=_0x477ba9;return l[_0x33e3b9(0x211)](l['Fragment'],{'children':_0x33e3b9(0x231)});}var Q=Object[_0x477ba9(0x237)],X=(_0x3e4611,_0x49f267,_0x1f61bd,_0xfb5fd)=>{var _0xf5ff30=_0x477ba9;for(var _0x1fdea7=_0xfb5fd>0x1?void 0x0:_0xfb5fd?Q(_0x49f267,_0x1f61bd):_0x49f267,_0x277cdb=_0x3e4611[_0xf5ff30(0x1fb)]-0x1,_0x57566f;_0x277cdb>=0x0;_0x277cdb--)(_0x57566f=_0x3e4611[_0x277cdb])&&(_0x1fdea7=_0x57566f(_0x1fdea7)||_0x1fdea7);return _0x1fdea7;},x=(_0x5dc0ba,_0x4b85bd)=>(_0x20c779,_0x874176)=>_0x4b85bd(_0x20c779,_0x874176,_0x5dc0ba);exports[_0x477ba9(0x1d9)]=class extends o['Disposable']{constructor(_0x331ce6,_0x1c1dc6){var _0x247a92=_0x477ba9;super(),this[_0x247a92(0x1dd)]=_0x331ce6,this[_0x247a92(0x25f)]=_0x1c1dc6,this[_0x247a92(0x1e7)]();}[_0x477ba9(0x1e7)](){var _0x5b83ab=_0x477ba9;this[_0x5b83ab(0x2af)](this[_0x5b83ab(0x25f)][_0x5b83ab(0x1f6)](p['BuiltInUIPart'][_0x5b83ab(0x219)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x477ba9(0x1d9)]=X([x(0x0,o['Inject'](o[_0x477ba9(0x2ae)])),x(0x1,p[_0x477ba9(0x282)])],exports[_0x477ba9(0x1d9)]);const ee=_0x477ba9(0x276),L={};var te=Object['getOwnPropertyDescriptor'],ie=(_0x1ff3e9,_0x9881d0,_0x4ddfd0,_0x31e476)=>{for(var _0x17baeb=_0x31e476>0x1?void 0x0:_0x31e476?te(_0x9881d0,_0x4ddfd0):_0x9881d0,_0x2ecd48=_0x1ff3e9['length']-0x1,_0x54ffa7;_0x2ecd48>=0x0;_0x2ecd48--)(_0x54ffa7=_0x1ff3e9[_0x2ecd48])&&(_0x17baeb=_0x54ffa7(_0x17baeb)||_0x17baeb);return _0x17baeb;},ne=(_0x4f6bd1,_0x3b02c9)=>(_0x2cb4ca,_0x59644d)=>_0x3b02c9(_0x2cb4ca,_0x59644d,_0x4f6bd1);let E=class extends o[_0x477ba9(0x1f3)]{constructor(_0x5321f){var _0x54441b=_0x477ba9;super(),this['_liveShareService']=_0x5321f,this[_0x54441b(0x216)]();}[_0x477ba9(0x216)](){var _0x5267f2=_0x477ba9;[D[_0x5267f2(0x268)]['id'],D['SetScrollOperation']['id'],C[_0x5267f2(0x29b)]['id']][_0x5267f2(0x28e)](_0x28315a=>{var _0x42bdb2=_0x5267f2;this[_0x42bdb2(0x2af)](this[_0x42bdb2(0x22d)][_0x42bdb2(0x275)](_0x28315a));});}};E=ie([ne(0x0,o[_0x477ba9(0x1eb)](O))],E);var re=Object[_0x477ba9(0x264)],se=Object[_0x477ba9(0x237)],oe=(_0x17ffff,_0x27f45a,_0x26d259)=>_0x27f45a in _0x17ffff?re(_0x17ffff,_0x27f45a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d259}):_0x17ffff[_0x27f45a]=_0x26d259,ae=(_0x57e127,_0x442a12,_0x43f0f5,_0xddf9e6)=>{for(var _0x148b07=_0xddf9e6>0x1?void 0x0:_0xddf9e6?se(_0x442a12,_0x43f0f5):_0x442a12,_0x3e50c9=_0x57e127['length']-0x1,_0x1c061c;_0x3e50c9>=0x0;_0x3e50c9--)(_0x1c061c=_0x57e127[_0x3e50c9])&&(_0x148b07=_0x1c061c(_0x148b07)||_0x148b07);return _0x148b07;},N=(_0x37c0f9,_0x4ee7be)=>(_0x229233,_0x54be87)=>_0x4ee7be(_0x229233,_0x54be87,_0x37c0f9),T=(_0x253be3,_0xeee31a,_0x49db45)=>oe(_0x253be3,typeof _0xeee31a!=_0x477ba9(0x229)?_0xeee31a+'':_0xeee31a,_0x49db45);const le=_0x477ba9(0x25a);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x26d4c2=L,_0x35ac52,_0x48d00d){var _0xda57cc=_0x477ba9;super(),this[_0xda57cc(0x24e)]=_0x26d4c2,this[_0xda57cc(0x1dd)]=_0x35ac52,this[_0xda57cc(0x265)]=_0x48d00d;const {..._0x207eaf}=o[_0xda57cc(0x26b)]({},L,this['_config']);this[_0xda57cc(0x265)][_0xda57cc(0x278)](ee,_0x207eaf);}[_0x477ba9(0x288)](){var _0x51b486=_0x477ba9;o[_0x51b486(0x1d3)](this[_0x51b486(0x1dd)],o[_0x51b486(0x27e)]([[O],[exports[_0x51b486(0x248)]],[E],[exports[_0x51b486(0x1d9)]]],this[_0x51b486(0x24e)]['override'])),o[_0x51b486(0x273)](this[_0x51b486(0x1dd)],[[E]]);}[_0x477ba9(0x2b2)](){var _0x4c193f=_0x477ba9;o[_0x4c193f(0x273)](this[_0x4c193f(0x1dd)],[[exports[_0x4c193f(0x1d9)]]]);}},T(exports[_0x477ba9(0x2a9)],_0x477ba9(0x2a4),o[_0x477ba9(0x2a8)][_0x477ba9(0x27d)]),T(exports[_0x477ba9(0x2a9)],_0x477ba9(0x2a7),le),exports[_0x477ba9(0x2a9)]=ae([o[_0x477ba9(0x1f1)](m[_0x477ba9(0x1d7)]),N(0x1,o[_0x477ba9(0x1eb)](o[_0x477ba9(0x2ae)])),N(0x2,o[_0x477ba9(0x215)])],exports[_0x477ba9(0x2a9)]),exports['LiveShare']=A,exports[_0x477ba9(0x22a)]=O,exports[_0x477ba9(0x2a5)]=h;
|
|
1
|
+
'use strict';var _0x6f8def=_0x2d99;(function(_0x4cab8f,_0x3b24e0){var _0xcd93ea=_0x2d99,_0x374c37=_0x4cab8f();while(!![]){try{var _0x523820=-parseInt(_0xcd93ea(0xa1))/0x1+-parseInt(_0xcd93ea(0x136))/0x2+parseInt(_0xcd93ea(0x126))/0x3+-parseInt(_0xcd93ea(0xf7))/0x4*(-parseInt(_0xcd93ea(0x124))/0x5)+parseInt(_0xcd93ea(0xa9))/0x6+parseInt(_0xcd93ea(0xdf))/0x7+parseInt(_0xcd93ea(0x14b))/0x8;if(_0x523820===_0x3b24e0)break;else _0x374c37['push'](_0x374c37['shift']());}catch(_0x4157e2){_0x374c37['push'](_0x374c37['shift']());}}}(_0x2397,0x3b6f6));var U=Object[_0x6f8def(0xe7)],F=(_0x2c68f5,_0x1c3011,_0x5dbc2c)=>_0x1c3011 in _0x2c68f5?U(_0x2c68f5,_0x1c3011,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dbc2c}):_0x2c68f5[_0x1c3011]=_0x5dbc2c,v=(_0x327d49,_0x38c518,_0x2a3f9a)=>F(_0x327d49,typeof _0x38c518!=_0x6f8def(0x10c)?_0x38c518+'':_0x38c518,_0x2a3f9a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x6f8def(0x155)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x5f1902=_0x6f8def;return u=Object[_0x5f1902(0xe0)]||function(_0x2e681f){var _0x5db684=_0x5f1902;for(var _0xc3b82c,_0x112164=0x1,_0x454fff=arguments[_0x5db684(0x14a)];_0x112164<_0x454fff;_0x112164++){_0xc3b82c=arguments[_0x112164];for(var _0x23c51b in _0xc3b82c)Object['prototype'][_0x5db684(0xb6)]['call'](_0xc3b82c,_0x23c51b)&&(_0x2e681f[_0x23c51b]=_0xc3b82c[_0x23c51b]);}return _0x2e681f;},u['apply'](this,arguments);},$=function(_0x4ee4e1,_0x1d9e9f){var _0x477b6c=_0x6f8def,_0x224695={};for(var _0x263e92 in _0x4ee4e1)Object[_0x477b6c(0x121)][_0x477b6c(0xb6)][_0x477b6c(0xd0)](_0x4ee4e1,_0x263e92)&&_0x1d9e9f['indexOf'](_0x263e92)<0x0&&(_0x224695[_0x263e92]=_0x4ee4e1[_0x263e92]);if(_0x4ee4e1!=null&&typeof Object[_0x477b6c(0x11a)]==_0x477b6c(0xcf)){for(var _0x503955=0x0,_0x263e92=Object[_0x477b6c(0x11a)](_0x4ee4e1);_0x503955<_0x263e92['length'];_0x503955++)_0x1d9e9f[_0x477b6c(0x154)](_0x263e92[_0x503955])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4ee4e1,_0x263e92[_0x503955])&&(_0x224695[_0x263e92[_0x503955]]=_0x4ee4e1[_0x263e92[_0x503955]]);}return _0x224695;},j=f['forwardRef'](function(_0x18c267,_0x5cbaa2){var _0xf1b515=_0x6f8def,_0xf51955=_0x18c267['icon'],_0x3819b2=_0x18c267['id'],_0x27d744=_0x18c267['className'],_0x506aa5=_0x18c267[_0xf1b515(0x119)],_0x8624c0=$(_0x18c267,['icon','id',_0xf1b515(0xbe),_0xf1b515(0x119)]),_0x18023f=_0xf1b515(0xd8)[_0xf1b515(0xa7)](_0x3819b2,'\x20')['concat'](_0x27d744||'')[_0xf1b515(0xcc)](),_0x42956e=f[_0xf1b515(0x135)]('_'[_0xf1b515(0xa7)](k()));return y(_0xf51955,''['concat'](_0x3819b2),{'defIds':_0xf51955[_0xf1b515(0xed)],'idSuffix':_0x42956e[_0xf1b515(0x13a)]},u({'ref':_0x5cbaa2,'className':_0x18023f},_0x8624c0),_0x506aa5);});function y(_0x1f4285,_0x48125c,_0x47f4f4,_0x37dac8,_0xa3d5be){var _0x164a68=_0x6f8def;return f[_0x164a68(0x93)](_0x1f4285['tag'],u(u({'key':_0x48125c},H(_0x1f4285,_0x47f4f4,_0xa3d5be)),_0x37dac8),(V(_0x1f4285,_0x47f4f4)['children']||[])['map'](function(_0xc277c0,_0x4d4f9c){var _0x4d7ec7=_0x164a68;return y(_0xc277c0,''['concat'](_0x48125c,'-')['concat'](_0x1f4285[_0x4d7ec7(0xf6)],'-')['concat'](_0x4d4f9c),_0x47f4f4,void 0x0,_0xa3d5be);}));}function H(_0x18f689,_0x232e92,_0x2ab98c){var _0x5f0012=_0x6f8def,_0x22a209=u({},_0x18f689[_0x5f0012(0x145)]);_0x2ab98c!=null&&_0x2ab98c['colorChannel1']&&_0x22a209[_0x5f0012(0x133)]==='colorChannel1'&&(_0x22a209[_0x5f0012(0x133)]=_0x2ab98c[_0x5f0012(0xf0)]),_0x18f689[_0x5f0012(0xf6)]==='mask'&&_0x22a209['id']&&(_0x22a209['id']=_0x22a209['id']+_0x232e92['idSuffix']),Object[_0x5f0012(0xb9)](_0x22a209)[_0x5f0012(0xb3)](function(_0x4a8d4f){var _0x1cb32d=_0x5f0012,_0x4f0d43=_0x4a8d4f[0x0],_0x3821c7=_0x4a8d4f[0x1];_0x4f0d43===_0x1cb32d(0xeb)&&typeof _0x3821c7==_0x1cb32d(0xd1)&&(_0x22a209[_0x4f0d43]=_0x3821c7[_0x1cb32d(0x12a)](/url\(#(.*)\)/,_0x1cb32d(0xba)[_0x1cb32d(0xa7)](_0x232e92[_0x1cb32d(0xdd)],')')));});var _0x118de8=_0x232e92[_0x5f0012(0xed)];return!_0x118de8||_0x118de8[_0x5f0012(0x14a)]===0x0||(_0x18f689['tag']==='use'&&_0x22a209[_0x5f0012(0x110)]&&(_0x22a209['xlink:href']=_0x22a209['xlink:href']+_0x232e92[_0x5f0012(0xdd)]),Object['entries'](_0x22a209)['forEach'](function(_0x3d1b59){var _0x236108=_0x5f0012,_0x51debe=_0x3d1b59[0x0],_0x53c05d=_0x3d1b59[0x1];typeof _0x53c05d==_0x236108(0xd1)&&(_0x22a209[_0x51debe]=_0x53c05d[_0x236108(0x12a)](/url\(#(.*)\)/,_0x236108(0xba)['concat'](_0x232e92[_0x236108(0xdd)],')')));})),_0x22a209;}function V(_0x3b39b0,_0x30ea24){var _0xd16240=_0x6f8def,_0x39b0ea,_0x10e535=_0x30ea24[_0xd16240(0xed)];return!_0x10e535||_0x10e535['length']===0x0?_0x3b39b0:_0x3b39b0[_0xd16240(0xf6)]===_0xd16240(0x11e)&&(!((_0x39b0ea=_0x3b39b0[_0xd16240(0xcb)])===null||_0x39b0ea===void 0x0)&&_0x39b0ea['length'])?u(u({},_0x3b39b0),{'children':_0x3b39b0[_0xd16240(0xcb)]['map'](function(_0x2a1881){var _0x2fdebf=_0xd16240;return typeof _0x2a1881['attrs']['id']==_0x2fdebf(0xd1)&&_0x10e535&&_0x10e535['includes'](_0x2a1881[_0x2fdebf(0x145)]['id'])?u(u({},_0x2a1881),{'attrs':u(u({},_0x2a1881[_0x2fdebf(0x145)]),{'id':_0x2a1881['attrs']['id']+_0x30ea24[_0x2fdebf(0xdd)]})}):_0x2a1881;})}):_0x3b39b0;}function k(){var _0x384d6d=_0x6f8def;return Math[_0x384d6d(0x131)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x6f8def(0x10b)]=_0x6f8def(0x8e);var M={'tag':_0x6f8def(0x120),'attrs':{'xmlns':_0x6f8def(0x150),'fill':_0x6f8def(0x11c),'viewBox':_0x6f8def(0xbb),'width':'1em','height':_0x6f8def(0xf3)},'children':[{'tag':_0x6f8def(0xa5),'attrs':{'fill':_0x6f8def(0xbd),'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':_0x6f8def(0xa5),'attrs':{'fill':_0x6f8def(0xbd),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x6f8def(0xea)}}]},P=f[_0x6f8def(0x7f)](function(_0x12b884,_0x3042d9){var _0x48e46f=_0x6f8def;return f['createElement'](j,Object[_0x48e46f(0xe0)]({},_0x12b884,{'id':_0x48e46f(0x134),'ref':_0x3042d9,'icon':M}));});P['displayName']=_0x6f8def(0x90);function _0x2d99(_0x2603c,_0x3946e2){var _0x239782=_0x2397();return _0x2d99=function(_0x2d99ad,_0x4bf672){_0x2d99ad=_0x2d99ad-0x7f;var _0x2a9f8e=_0x239782[_0x2d99ad];return _0x2a9f8e;},_0x2d99(_0x2603c,_0x3946e2);}class O extends o['Disposable']{constructor(){var _0x3d7a0c=_0x6f8def;super(...arguments),v(this,_0x3d7a0c(0xfd),new Set()),v(this,_0x3d7a0c(0x125),new Set());}['registerSharedOperation'](_0xde64fc){var _0x4dbae5=_0x6f8def;return this[_0x4dbae5(0xfd)][_0x4dbae5(0xc9)](_0xde64fc),o['toDisposable'](()=>this[_0x4dbae5(0xfd)][_0x4dbae5(0x14c)](_0xde64fc));}[_0x6f8def(0xb0)](_0x7acb3e){var _0x2ba05e=_0x6f8def;return this['_reporters']['add'](_0x7acb3e),o['toDisposable'](()=>this[_0x2ba05e(0x125)][_0x2ba05e(0x14c)](_0x7acb3e));}[_0x6f8def(0x13e)](_0x2f5254){var _0x45042e=_0x6f8def;return this[_0x45042e(0xfd)][_0x45042e(0xb8)](_0x2f5254);}[_0x6f8def(0xe4)](_0x3d7432){var _0x35ac07=_0x6f8def;return Array[_0x35ac07(0x111)](this['_reporters'])[_0x35ac07(0x9d)](_0x56928d=>_0x56928d(_0x3d7432));}}var q=Object[_0x6f8def(0x10a)],R=(_0x58f6a8,_0x4a0c06,_0x4d0d89,_0x281afd)=>{var _0x4de7b9=_0x6f8def;for(var _0x47a87b=_0x281afd>0x1?void 0x0:_0x281afd?q(_0x4a0c06,_0x4d0d89):_0x4a0c06,_0x41ee42=_0x58f6a8[_0x4de7b9(0x14a)]-0x1,_0x35d874;_0x41ee42>=0x0;_0x41ee42--)(_0x35d874=_0x58f6a8[_0x41ee42])&&(_0x47a87b=_0x35d874(_0x47a87b)||_0x47a87b);return _0x47a87b;},S=(_0x5f2f08,_0x56d4ee)=>(_0x593932,_0x30ff4b)=>_0x56d4ee(_0x593932,_0x30ff4b,_0x5f2f08);exports[_0x6f8def(0x14f)]=class extends o[_0x6f8def(0x9b)]{constructor(_0x58af6c,_0x668276,_0x18a448){var _0x5899ac=_0x6f8def;super(),v(this,_0x5899ac(0xc8),new Map()),(this[_0x5899ac(0xb2)]=_0x58af6c,this[_0x5899ac(0xe6)]=_0x668276,this[_0x5899ac(0xc7)]=_0x18a448,this['_init']());}async[_0x6f8def(0xb5)](_0x15ab4a){var _0x571a5f=_0x6f8def;return this['_entities'][_0x571a5f(0xb8)](_0x15ab4a)||await this[_0x571a5f(0x151)](_0x15ab4a),this['_entities'][_0x571a5f(0x14e)](_0x15ab4a);}[_0x6f8def(0x148)](){var _0x247676=_0x6f8def;this['_univerInstanceService'][_0x247676(0x138)](o[_0x247676(0xab)][_0x247676(0x149)])[_0x247676(0x129)](b[_0x247676(0x140)](this[_0x247676(0x130)]))[_0x247676(0xc6)](async _0xffad19=>{var _0x49525c=_0x247676;const _0x4ddf90=_0xffad19[_0x49525c(0xfb)]();this['_entities'][_0x49525c(0xb8)](_0x4ddf90)||this[_0x49525c(0x151)](_0x4ddf90);}),this[_0x247676(0xb2)][_0x247676(0x103)](o[_0x247676(0xab)][_0x247676(0x149)])[_0x247676(0x129)](b['takeUntil'](this[_0x247676(0x130)]))[_0x247676(0xc6)](_0x4333c4=>{var _0x13a035=_0x247676;const _0x248907=_0x4333c4['getUnitId'](),_0x1e81e6=this[_0x13a035(0xc8)][_0x13a035(0x14e)](_0x248907);_0x1e81e6==null||_0x1e81e6['dispose']();});}async[_0x6f8def(0x151)](_0x25d7b2){var _0x1e8d64=_0x6f8def;const _0x3660a9=await this[_0x1e8d64(0xc7)]['requireSession'](_0x25d7b2),_0x38b3f8=this[_0x1e8d64(0xe6)][_0x1e8d64(0xac)](exports['LiveShareCoordinator'],_0x25d7b2,_0x3660a9);return _0x38b3f8[_0x1e8d64(0xd5)](),this[_0x1e8d64(0xc8)][_0x1e8d64(0x143)](_0x25d7b2,_0x38b3f8),_0x38b3f8;}},exports[_0x6f8def(0x14f)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x6f8def(0xce)](o['Injector'])),S(0x2,o[_0x6f8def(0xce)](m[_0x6f8def(0x109)]))],exports[_0x6f8def(0x14f)]);var h=(_0x399b4f=>(_0x399b4f[_0x6f8def(0xa8)]='offline',_0x399b4f[_0x6f8def(0xd4)]=_0x6f8def(0xd9),_0x399b4f[_0x6f8def(0xe9)]=_0x6f8def(0xfc),_0x399b4f[_0x6f8def(0x84)]=_0x6f8def(0x11d),_0x399b4f[_0x6f8def(0x146)]=_0x6f8def(0x132),_0x399b4f))(h||{});const W=_0x6f8def(0xf5),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0x6f8def(0x9b)]{constructor(_0x1e290d,_0x419268,_0x23960d,_0x1755f0,_0x5cde15){var _0x2b49a5=_0x6f8def;super(),v(this,_0x2b49a5(0xfa),new w[(_0x2b49a5(0x100))](_0x2b49a5(0xd9))),v(this,_0x2b49a5(0xc2),this[_0x2b49a5(0xfa)][_0x2b49a5(0xb1)]()),v(this,_0x2b49a5(0x148),!0x1),v(this,_0x2b49a5(0x147),null),v(this,_0x2b49a5(0xf1),null),(this[_0x2b49a5(0x10e)]=_0x1e290d,this[_0x2b49a5(0x8a)]=_0x419268,this['_configService']=_0x23960d,this[_0x2b49a5(0x12f)]=_0x1755f0,this[_0x2b49a5(0x139)]=_0x5cde15);}get[_0x6f8def(0x127)](){var _0x23f93f=_0x6f8def;return this[_0x23f93f(0xfa)][_0x23f93f(0xa6)]();}[_0x6f8def(0x14d)](){var _0x45183e=_0x6f8def,_0xf1e07b;(_0xf1e07b=this[_0x45183e(0x147)])==null||_0xf1e07b[_0x45183e(0x14d)](),this[_0x45183e(0xfa)]['next']('idle'),this[_0x45183e(0xfa)]['complete']();}['init'](){var _0x5d7da4=_0x6f8def;this[_0x5d7da4(0x148)]||(this[_0x5d7da4(0x148)]=!0x0,this['_collabSession'][_0x5d7da4(0xa4)][_0x5d7da4(0x129)](b[_0x5d7da4(0x140)](this[_0x5d7da4(0x130)]))[_0x5d7da4(0xc6)](_0x16776e=>{var _0x285b27=_0x5d7da4;switch(_0x16776e){case m['SessionStatus'][_0x285b27(0xa8)]:this[_0x285b27(0xd3)]();break;case m['SessionStatus'][_0x285b27(0xa3)]:this[_0x285b27(0xaa)]();break;}}),this['_collabSession'][_0x5d7da4(0xda)][_0x5d7da4(0x129)](b['takeUntil'](this[_0x5d7da4(0x130)]))['subscribe'](_0x127aa5=>{var _0x69a692=_0x5d7da4;const {eventID:_0x22be7b}=_0x127aa5;switch(_0x22be7b){case _[_0x69a692(0xc0)][_0x69a692(0x12d)]:this[_0x69a692(0xbc)](_0x127aa5);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x127aa5);break;case _['CollaborationEvent'][_0x69a692(0x11f)]:this['_handleTerminate']();break;case _[_0x69a692(0xc0)][_0x69a692(0x101)]:this[_0x69a692(0x88)](_0x127aa5);break;}}));}[_0x6f8def(0x122)](){var _0x25c976=_0x6f8def;this['_collabSession'][_0x25c976(0xae)]({'eventID':_[_0x25c976(0xc0)][_0x25c976(0xde)],'data':{'unitID':this[_0x25c976(0x10e)],'userID':this['_collabSession'][_0x25c976(0x141)]()}},this[_0x25c976(0x10e)]);}[_0x6f8def(0x108)](){var _0x45e7a0=_0x6f8def;this[_0x45e7a0(0x127)]==='presenting'&&(this[_0x45e7a0(0xfa)][_0x45e7a0(0x118)]('idle'),this['_collabSession'][_0x45e7a0(0xae)]({'eventID':_[_0x45e7a0(0xc0)][_0x45e7a0(0x11f)],'data':{'unitID':this[_0x45e7a0(0x10e)]}},this['_unitID']));}[_0x6f8def(0xd2)](){var _0x16e689=_0x6f8def;this[_0x16e689(0x127)]===_0x16e689(0x11d)&&(this[_0x16e689(0xfa)]['next'](_0x16e689(0xfc)),this[_0x16e689(0x114)]());}[_0x6f8def(0x13d)](){var _0x17a06a=_0x6f8def;this[_0x17a06a(0x127)]==='following'&&this[_0x17a06a(0x13b)]();}['_handleNewHost'](_0x3123b5){var _0x5b8470=_0x6f8def;const {presenter:_0x148f8c}=_0x3123b5[_0x5b8470(0x99)],_0xeef51=this[_0x5b8470(0x8a)]['getMemberID']();this[_0x5b8470(0xf1)]=_0x148f8c,_0x148f8c===_0xeef51?(this[_0x5b8470(0x13b)](),this[_0x5b8470(0xbf)]()):this[_0x5b8470(0x127)]!=='not-following'&&(this[_0x5b8470(0x12e)](),this[_0x5b8470(0x114)]());}[_0x6f8def(0xdb)](){var _0x4dee20=_0x6f8def;const _0x5b0677={'eventID':_[_0x4dee20(0xc0)][_0x4dee20(0xb7)]};this[_0x4dee20(0x8a)]['send'](_0x5b0677,this[_0x4dee20(0x10e)]);}[_0x6f8def(0x83)](){var _0x288b73=_0x6f8def;this[_0x288b73(0xf1)]=null,this[_0x288b73(0x127)]!==_0x288b73(0x132)&&this[_0x288b73(0xf2)]();}[_0x6f8def(0x88)](_0x49a554){var _0x34c93b=_0x6f8def;if(this['_status']===_0x34c93b(0xfc)&&this[_0x34c93b(0xf1)]===_0x49a554[_0x34c93b(0x99)]['memberID']){const _0x41ef89=_['parseProtocolChangeset'](_0x49a554['data'])[_0x34c93b(0xcd)][_0x34c93b(0x95)]()[_0x34c93b(0xf4)](_0x3cf817=>_0x3cf817['id']===C['InsertSheetMutation']['id']);if(_0x41ef89){const _0x3fb584=_0x41ef89['params'][_0x34c93b(0x128)],_0x595a26=_0x41ef89[_0x34c93b(0x102)][_0x34c93b(0x112)]['id'];setTimeout(()=>{var _0x59b6a2=_0x34c93b;this['_commandService']['executeCommand'](C[_0x59b6a2(0x137)]['id'],{'unitId':_0x3fb584,'subUnitId':_0x595a26},{'fromCollab':!0x0});});}}}[_0x6f8def(0xbf)](){var _0x42895e=_0x6f8def;this['_status$'][_0x42895e(0x118)]('presenting');const _0x172c58=new Map(),_0x3ca7dd=this[_0x42895e(0x147)]=new o['DisposableCollection']();_0x3ca7dd[_0x42895e(0xc9)](o[_0x42895e(0x142)](()=>{var _0xb19cb9=_0x42895e;_0x172c58[_0xb19cb9(0xb3)](_0x929852=>_0x929852[_0xb19cb9(0xd6)]()),_0x172c58[_0xb19cb9(0x82)]();})),_0x3ca7dd[_0x42895e(0xc9)](this[_0x42895e(0x139)][_0x42895e(0xef)](_0x25adca=>{var _0x35f3f0=_0x42895e,_0x153b2d;if(_0x25adca[_0x35f3f0(0x13c)]!==o[_0x35f3f0(0x80)][_0x35f3f0(0x92)]||!this[_0x35f3f0(0x12f)][_0x35f3f0(0x13e)](_0x25adca['id']))return;const {id:_0xcd20ae}=_0x25adca;let _0x38863e;_0x172c58[_0x35f3f0(0xb8)](_0xcd20ae)?_0x38863e=_0x172c58[_0x35f3f0(0x14e)](_0xcd20ae):(_0x38863e=new w['Subject'](),_0x172c58[_0x35f3f0(0x143)](_0xcd20ae,_0x38863e),_0x38863e['pipe'](b[_0x35f3f0(0x85)]((_0x153b2d=this[_0x35f3f0(0x115)][_0x35f3f0(0xc3)](W))!=null?_0x153b2d:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x35f3f0(0xc6)](_0x1891e1=>{var _0x226ab0=_0x35f3f0;this[_0x226ab0(0x8a)][_0x226ab0(0xae)]({'eventID':_[_0x226ab0(0xc0)][_0x226ab0(0x81)],'data':{'unitID':this[_0x226ab0(0x10e)],'operations':{[_0x1891e1['id']]:{'id':_0x1891e1['id'],'params':JSON[_0x226ab0(0xf9)](_0x1891e1[_0x226ab0(0x102)])}}}},this[_0x226ab0(0x10e)]);})),_0x38863e[_0x35f3f0(0x118)](_0x25adca);})),this[_0x42895e(0x12f)]['getInitialStates'](this['_unitID'])[_0x42895e(0xb3)](_0x30a003=>this['_collabSession'][_0x42895e(0xae)]({'eventID':_[_0x42895e(0xc0)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x42895e(0x10e)],'operations':{[_0x30a003['id']]:{'id':_0x30a003['id'],'params':JSON[_0x42895e(0xf9)](_0x30a003[_0x42895e(0x102)])}}}},this[_0x42895e(0x10e)]));}[_0x6f8def(0x12e)](){var _0x1c863d=_0x6f8def,_0x43e220;this[_0x1c863d(0xfa)][_0x1c863d(0x118)](_0x1c863d(0xd9)),(_0x43e220=this[_0x1c863d(0x147)])==null||_0x43e220[_0x1c863d(0x14d)](),this[_0x1c863d(0x147)]=null;}[_0x6f8def(0x114)](){var _0x3078bd=_0x6f8def,_0x53316e;(_0x53316e=this[_0x3078bd(0x147)])==null||_0x53316e[_0x3078bd(0x14d)](),this['_status$'][_0x3078bd(0x118)](_0x3078bd(0xfc));}[_0x6f8def(0xf2)](){var _0x340fef=_0x6f8def,_0x133b5d;this[_0x340fef(0xfa)]['next'](_0x340fef(0xd9)),(_0x133b5d=this[_0x340fef(0x147)])==null||_0x133b5d[_0x340fef(0x14d)](),this[_0x340fef(0x147)]=null;}['_stopFollowing'](){var _0x5aaed6=_0x6f8def,_0x527da5;this[_0x5aaed6(0xfa)]['next']('not-following'),(_0x527da5=this[_0x5aaed6(0x147)])==null||_0x527da5[_0x5aaed6(0x14d)]();}[_0x6f8def(0xad)](_0x5f0201){var _0x3fe001=_0x6f8def;if([_0x3fe001(0x132),_0x3fe001(0x11d),_0x3fe001(0x13f)][_0x3fe001(0x10d)](this[_0x3fe001(0x127)])||!_0x5f0201['data'][_0x3fe001(0x117)]||_0x5f0201['data'][_0x3fe001(0x117)]===this['_collabSession'][_0x3fe001(0x141)]())return;this['_status']==='idle'&&this[_0x3fe001(0x114)]();const _0xb1d6de=_0x5f0201[_0x3fe001(0x99)][_0x3fe001(0x9f)];Object[_0x3fe001(0xe3)](_0xb1d6de)[_0x3fe001(0xb3)](_0x5e062a=>{var _0x1dd890=_0x3fe001;this[_0x1dd890(0x139)][_0x1dd890(0x9c)](_0x5e062a['id'],_0x5e062a[_0x1dd890(0x102)]?JSON['parse'](_0x5e062a[_0x1dd890(0x102)]):null,{'fromCollab':!0x0});});}[_0x6f8def(0xd3)](){var _0x4cd088=_0x6f8def,_0x60a3b7;this['_status$'][_0x4cd088(0x118)](_0x4cd088(0x13f)),(_0x60a3b7=this[_0x4cd088(0x147)])==null||_0x60a3b7['dispose']();}[_0x6f8def(0xaa)](){var _0x33f642=_0x6f8def;this[_0x33f642(0xfa)][_0x33f642(0x118)]('idle'),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x6f8def(0xa2)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x1d8e22=_0x6f8def;const _0x2a3858=p[_0x1d8e22(0xe5)](exports[_0x1d8e22(0x14f)]),_0x1e1fb1=p[_0x1d8e22(0xe5)](o['IUniverInstanceService']),_0x352b51=p['useObservable'](()=>_0x1e1fb1['getCurrentTypeOfUnit$'](o[_0x1d8e22(0xab)][_0x1d8e22(0x149)]),void 0x0,!0x1,[]),[_0x580ac0,_0x26a470]=f[_0x1d8e22(0x113)](null),[_0x1f58fc,_0x32a694]=f[_0x1d8e22(0x113)](h[_0x1d8e22(0xd4)]),_0x32d3bc=f[_0x1d8e22(0x135)](null);return f['useEffect'](()=>(_0x352b51&&_0x2a3858['getLiveShareCoordinator'](_0x352b51['getUnitId']())[_0x1d8e22(0xc4)](_0x134d92=>{var _0x5e228b=_0x1d8e22;_0x26a470(_0x134d92),_0x32d3bc['current']=_0x134d92[_0x5e228b(0xc2)][_0x5e228b(0xc6)](_0x3b1259=>{_0x32a694(_0x3b1259);});}),()=>{var _0x797a62=_0x1d8e22,_0x5d800d;(_0x5d800d=_0x32d3bc[_0x797a62(0x13a)])==null||_0x5d800d['unsubscribe'](),_0x32d3bc[_0x797a62(0x13a)]=null;}),[_0x352b51,_0x2a3858]),_0x580ac0?l['jsx'](g[_0x1d8e22(0xdc)],{'align':'end','disabled':_0x1f58fc===h[_0x1d8e22(0xa8)],'className':_0x1d8e22(0x12c),'overlay':l[_0x1d8e22(0xe1)](B,{'status':_0x1f58fc,'coordinator':_0x580ac0}),'children':l['jsx'](_0x1d8e22(0x91),{'className':g[_0x1d8e22(0x8b)](_0x1d8e22(0x97),{'univer-cursor-not-allowed':_0x1f58fc===h[_0x1d8e22(0xa8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f58fc!==h['OFFLINE']}),'type':_0x1d8e22(0x91),'children':l['jsx'](P,{'className':_0x1d8e22(0x104)})})}):null;}function B(_0xf1b0f0){var _0x1e09f5=_0x6f8def;const {status:_0x497e46,coordinator:_0x43daeb}=_0xf1b0f0;switch(_0x497e46){case h['IDLE']:return l[_0x1e09f5(0xe1)](Y,{'coordinator':_0x43daeb});case h[_0x1e09f5(0xe9)]:return l['jsx'](Z,{'coordinator':_0x43daeb});case h[_0x1e09f5(0x84)]:return l[_0x1e09f5(0xe1)](J,{'coordinator':_0x43daeb});case h[_0x1e09f5(0xa8)]:return l[_0x1e09f5(0xe1)](z,{});case h[_0x1e09f5(0x146)]:return l['jsx'](K,{'coordinator':_0x43daeb});default:return null;}}function _0x2397(){var _0x26a896=['http://www.w3.org/2000/svg','_startLiveShareCoordinator','connectInjector','registerSharedOperation','indexOf','Module','forwardRef','CommandType','LIVESHARE_OPERATION','clear','_handleTerminate','NOT_FOLLOWING','throttleTime','You\x27re\x20not\x20following\x20the\x20presenter','Disposable','_handleNewChangeSets','IUIPartsService','_collabSession','clsx','merge','live-share.config','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','button','OPERATION','createElement','setConfig','reverse','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','DesktopLiveShareController','data','UniverLiveSharePlugin','RxDisposable','executeCommand','map','LiveShareStatus','operations','_mountLiveShare','450767VcnyGf','IConfigService','ONLINE','sessionStatus$','path','getValue','concat','OFFLINE','2890536EScVlU','_handleOnline','UniverInstanceType','createInstance','_handleOperation','send','UniverCollaborationClientPlugin','registerInitialStateReporter','asObservable','_univerInstanceService','forEach','touchDependencies','getLiveShareCoordinator','hasOwnProperty','LIVESHARE_FETCH_OPERATIONS','has','entries','url(#$1','0\x200\x2017\x2017','_handleNewHost','currentColor','className','_startPresenting','CollaborationEvent','LiveShareService','status$','getConfig','then','default','subscribe','_collabSessionService','_entities','add','SetZoomRatioOperation','children','trim','mutations','Inject','function','call','string','startFollowing','_handleOffline','IDLE','init','complete','You\x27re\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','idle','event$','_fetchOperations','Dropdown','idSuffix','LIVESHARE_REQUEST_HOST','970200oCWfxw','assign','jsx','jsxs','values','getInitialStates','useDependency','_injector','defineProperty','UNIVER_UNKNOWN','FOLLOWING','evenodd','mask','_uiPartsService','defIds','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','colorChannel1','_presenter','_beIdle','1em','find','SAME_OPERATION_SHARE_INTERVAL','tag','44iyhEaG','registerDependencies','stringify','_status$','getUnitId','following','_sharedOperations','LiveShare','div','BehaviorSubject','NEW_CHANGESETS','params','getTypeOfUnitDisposed$','univer-size-4','_config','Button','registerComponent','stopPresenting','CollaborationSessionService','getOwnPropertyDescriptor','displayName','symbol','includes','_unitID','Fragment','xlink:href','from','sheet','useState','_startFollowing','_configService','BuiltInUIPart','presenter','next','extend','getOwnPropertySymbols','You\x27are\x20offline.','none','not-following','defs','LIVESHARE_TERMINATE','svg','prototype','tryStartPresenting','HEADER_MENU','42915ASuIbI','_reporters','233328MrGwCQ','_status','unitId','pipe','replace','text','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_NEW_HOST','_stopPresenting','_liveShareService','dispose$','random','presenting','fill','live-share-icon','useRef','872684XIapYx','SetWorksheetActiveOperation','getTypeOfUnitAdded$','_commandService','current','_stopFollowing','type','stopFollowing','shouldShareOperation','offline','takeUntil','getMemberID','toDisposable','set','SetScrollOperation','attrs','PRESENTING','_commandDisposable','_init','UNIVER_SHEET','length','2704080TFvyxv','delete','dispose','get','LiveShareController'];_0x2397=function(){return _0x26a896;};return _0x2397();}function Y(_0x1cb1ae){var _0x612558=_0x6f8def;const {coordinator:_0x1760e4}=_0x1cb1ae;return l[_0x612558(0xe2)](l[_0x612558(0x10f)],{'children':[l[_0x612558(0xe1)](_0x612558(0xff),{'className':_0x612558(0x8f),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x612558(0x106)],{'onClick':()=>_0x1760e4['tryStartPresenting'](),'children':'Start'})]});}function Z(_0x2157ac){var _0x47f1a9=_0x6f8def;const {coordinator:_0x578ee3}=_0x2157ac;return l[_0x47f1a9(0xe2)](l[_0x47f1a9(0x10f)],{'children':[l['jsx'](_0x47f1a9(0xff),{'className':_0x47f1a9(0x8f),'children':_0x47f1a9(0xd7)}),l['jsx'](g[_0x47f1a9(0x106)],{'onClick':()=>_0x578ee3[_0x47f1a9(0x13d)](),'children':'Stop\x20following'})]});}function J(_0x4168fe){var _0x36c185=_0x6f8def;const {coordinator:_0x449042}=_0x4168fe;return l[_0x36c185(0xe2)](l[_0x36c185(0x10f)],{'children':[l[_0x36c185(0xe1)](_0x36c185(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36c185(0x86)}),l[_0x36c185(0xe1)](g['Button'],{'variant':_0x36c185(0x12b),'onClick':()=>_0x449042[_0x36c185(0xd2)](),'children':'Start\x20following'})]});}function K(_0x2a6400){var _0x25a495=_0x6f8def;const {coordinator:_0x1fbb44}=_0x2a6400;return l[_0x25a495(0xe2)](l[_0x25a495(0x10f)],{'children':[l[_0x25a495(0xe1)]('div',{'className':_0x25a495(0x8f),'children':_0x25a495(0xee)}),l[_0x25a495(0xe1)](g[_0x25a495(0x106)],{'variant':_0x25a495(0xc5),'onClick':()=>_0x1fbb44['stopPresenting'](),'children':'Stop\x20presenting'})]});}function z(){var _0x1ea6c2=_0x6f8def;return l[_0x1ea6c2(0xe1)](l[_0x1ea6c2(0x10f)],{'children':_0x1ea6c2(0x11b)});}var Q=Object[_0x6f8def(0x10a)],X=(_0x2ec1b4,_0x44aaaa,_0x3d25b8,_0x11278c)=>{var _0x1851dc=_0x6f8def;for(var _0x4930bf=_0x11278c>0x1?void 0x0:_0x11278c?Q(_0x44aaaa,_0x3d25b8):_0x44aaaa,_0x3d51fa=_0x2ec1b4[_0x1851dc(0x14a)]-0x1,_0x28fc85;_0x3d51fa>=0x0;_0x3d51fa--)(_0x28fc85=_0x2ec1b4[_0x3d51fa])&&(_0x4930bf=_0x28fc85(_0x4930bf)||_0x4930bf);return _0x4930bf;},x=(_0x5b6be,_0x2132fb)=>(_0x1c6ee8,_0x5032d8)=>_0x2132fb(_0x1c6ee8,_0x5032d8,_0x5b6be);exports[_0x6f8def(0x98)]=class extends o['Disposable']{constructor(_0x4543a8,_0x230418){var _0x1d811f=_0x6f8def;super(),this[_0x1d811f(0xe6)]=_0x4543a8,this[_0x1d811f(0xec)]=_0x230418,this[_0x1d811f(0xa0)]();}['_mountLiveShare'](){var _0x2c7afd=_0x6f8def;this[_0x2c7afd(0x96)](this[_0x2c7afd(0xec)][_0x2c7afd(0x107)](p[_0x2c7afd(0x116)][_0x2c7afd(0x123)],()=>p[_0x2c7afd(0x152)](A,this['_injector'])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x6f8def(0xce)](o['Injector'])),x(0x1,p[_0x6f8def(0x89)])],exports['DesktopLiveShareController']);const ee=_0x6f8def(0x8d),L={};var te=Object[_0x6f8def(0x10a)],ie=(_0x1751fc,_0x36e68d,_0x33b170,_0x439cd7)=>{for(var _0x306ff5=_0x439cd7>0x1?void 0x0:_0x439cd7?te(_0x36e68d,_0x33b170):_0x36e68d,_0x5dafda=_0x1751fc['length']-0x1,_0x23e1fb;_0x5dafda>=0x0;_0x5dafda--)(_0x23e1fb=_0x1751fc[_0x5dafda])&&(_0x306ff5=_0x23e1fb(_0x306ff5)||_0x306ff5);return _0x306ff5;},ne=(_0x2482f7,_0x977a61)=>(_0xfeb012,_0x2c0fa4)=>_0x977a61(_0xfeb012,_0x2c0fa4,_0x2482f7);let E=class extends o[_0x6f8def(0x87)]{constructor(_0x4476c4){var _0x420ce0=_0x6f8def;super(),this[_0x420ce0(0x12f)]=_0x4476c4,this[_0x420ce0(0x148)]();}['_init'](){var _0x19ec63=_0x6f8def;[D[_0x19ec63(0xca)]['id'],D[_0x19ec63(0x144)]['id'],C[_0x19ec63(0x137)]['id']]['forEach'](_0x4138e5=>{var _0x3a4b90=_0x19ec63;this[_0x3a4b90(0x96)](this[_0x3a4b90(0x12f)][_0x3a4b90(0x153)](_0x4138e5));});}};E=ie([ne(0x0,o[_0x6f8def(0xce)](O))],E);var re=Object[_0x6f8def(0xe7)],se=Object[_0x6f8def(0x10a)],oe=(_0x203237,_0x3249dc,_0x5e83a2)=>_0x3249dc in _0x203237?re(_0x203237,_0x3249dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e83a2}):_0x203237[_0x3249dc]=_0x5e83a2,ae=(_0x571c5e,_0x39359f,_0x171253,_0xc46087)=>{var _0x112168=_0x6f8def;for(var _0x9dbbf3=_0xc46087>0x1?void 0x0:_0xc46087?se(_0x39359f,_0x171253):_0x39359f,_0x3f1af7=_0x571c5e[_0x112168(0x14a)]-0x1,_0x2daae5;_0x3f1af7>=0x0;_0x3f1af7--)(_0x2daae5=_0x571c5e[_0x3f1af7])&&(_0x9dbbf3=_0x2daae5(_0x9dbbf3)||_0x9dbbf3);return _0x9dbbf3;},N=(_0x37e193,_0x42de0c)=>(_0x49e376,_0x54c251)=>_0x42de0c(_0x49e376,_0x54c251,_0x37e193),T=(_0x5c42a0,_0x2b2079,_0x8eff1)=>oe(_0x5c42a0,typeof _0x2b2079!=_0x6f8def(0x10c)?_0x2b2079+'':_0x2b2079,_0x8eff1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x6f8def(0x9a)]=class extends o['Plugin']{constructor(_0x226951=L,_0x466283,_0x5bea2d){var _0x2e0edc=_0x6f8def;super(),this[_0x2e0edc(0x105)]=_0x226951,this[_0x2e0edc(0xe6)]=_0x466283,this[_0x2e0edc(0x115)]=_0x5bea2d;const {..._0x55027d}=o[_0x2e0edc(0x8c)]({},L,this[_0x2e0edc(0x105)]);this[_0x2e0edc(0x115)][_0x2e0edc(0x94)](ee,_0x55027d);}['onStarting'](){var _0x58ee4d=_0x6f8def;o[_0x58ee4d(0xf8)](this['_injector'],o['mergeOverrideWithDependencies']([[O],[exports[_0x58ee4d(0x14f)]],[E],[exports[_0x58ee4d(0x98)]]],this[_0x58ee4d(0x105)]['override'])),o[_0x58ee4d(0xb4)](this[_0x58ee4d(0xe6)],[[E]]);}['onRendered'](){var _0xdedb0e=_0x6f8def;o[_0xdedb0e(0xb4)](this[_0xdedb0e(0xe6)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x6f8def(0x13c),o[_0x6f8def(0xab)][_0x6f8def(0xe8)]),T(exports[_0x6f8def(0x9a)],'pluginName',le),exports[_0x6f8def(0x9a)]=ae([o['DependentOn'](m[_0x6f8def(0xaf)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x6f8def(0xa2)])],exports[_0x6f8def(0x9a)]),exports[_0x6f8def(0xfe)]=A,exports[_0x6f8def(0xc1)]=O,exports[_0x6f8def(0x9e)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4211e9=_0x2067;(function(_0x5ccfc4,_0x3a9fbf){var _0x3257b2=_0x2067,_0x24c117=_0x5ccfc4();while(!![]){try{var _0x3b0903=parseInt(_0x3257b2(0x1c6))/0x1+parseInt(_0x3257b2(0x1eb))/0x2*(parseInt(_0x3257b2(0x1dc))/0x3)+-parseInt(_0x3257b2(0x1c7))/0x4*(-parseInt(_0x3257b2(0x232))/0x5)+parseInt(_0x3257b2(0x219))/0x6*(parseInt(_0x3257b2(0x1f3))/0x7)+-parseInt(_0x3257b2(0x1c2))/0x8*(-parseInt(_0x3257b2(0x1b1))/0x9)+parseInt(_0x3257b2(0x1e1))/0xa*(parseInt(_0x3257b2(0x1e7))/0xb)+-parseInt(_0x3257b2(0x1f7))/0xc*(parseInt(_0x3257b2(0x218))/0xd);if(_0x3b0903===_0x3a9fbf)break;else _0x24c117['push'](_0x24c117['shift']());}catch(_0x565eed){_0x24c117['push'](_0x24c117['shift']());}}}(_0x2983,0x55bb9));var q=Object[_0x4211e9(0x1a5)],z=(_0x147563,_0x35a5bf,_0x2c4d3e)=>_0x35a5bf in _0x147563?q(_0x147563,_0x35a5bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c4d3e}):_0x147563[_0x35a5bf]=_0x2c4d3e,d=(_0x258ffe,_0x4a2a0a,_0x5675f0)=>z(_0x258ffe,typeof _0x4a2a0a!=_0x4211e9(0x207)?_0x4a2a0a+'':_0x4a2a0a,_0x5675f0);import{Disposable as _0x4178b,toDisposable as _0x1905e1,IUniverInstanceService as _0x4e4916,Inject as _0x29823e,Injector as _0x4cbc28,IConfigService as _0x454454,ICommandService as _0x1f59fb,RxDisposable as _0x11260a,UniverInstanceType as _0x2e04d5,DisposableCollection as _0x30a3f7,CommandType as _0x3ef350,DependentOn as _0x462562,Plugin as _0x119c72,merge as _0x147e1f,registerDependencies as _0x16e757,mergeOverrideWithDependencies as _0x3cdfd6,touchDependencies as _0x108acc}from'@univerjs/core';import{useDependency as _0x34ce29,useObservable as _0x5eb324,IUIPartsService as _0x4b1b8f,BuiltInUIPart as _0x37ef0c,connectInjector as _0x36c2e2}from'@univerjs/ui';import{jsx as _0x478ffe,jsxs as _0x15f696,Fragment as _0xc7295}from'react/jsx-runtime';import{Dropdown as _0x3ee376,clsx as _0x3fe52f,Button as _0x2ec823}from'@univerjs/design';import{forwardRef as _0x5f09eb,useRef as _0x4b76f7,createElement as _0x4cd375,useState as _0x56e9c1,useEffect as _0x5005fd}from'react';import{CollaborationEvent as _0x5c2773,parseProtocolChangeset as _0x8769f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x11bb65,SessionStatus as _0x839685,UniverCollaborationClientPlugin as _0x7fa5df}from'@univerjs-pro/collaboration-client';function _0x2067(_0x31d6ac,_0x15ee94){var _0x298359=_0x2983();return _0x2067=function(_0x20678f,_0x28563c){_0x20678f=_0x20678f-0x189;var _0x2d6af7=_0x298359[_0x20678f];return _0x2d6af7;},_0x2067(_0x31d6ac,_0x15ee94);}import{InsertSheetMutation as _0x20e50f,SetWorksheetActiveOperation as _0x304fe7}from'@univerjs/sheets';function _0x2983(){var _0x1c9061=['_entities','currentColor','call','getOwnPropertyDescriptor','LiveShareIcon','attrs','onRendered','HEADER_MENU','disposeWithMe','svg','text','executeCommand','getLiveShareCoordinator','pipe','dispose$','38856dIMQQd','has','_stopPresenting','defs','484967vURxfJ','283708CJZbsV','LIVESHARE_TERMINATE','xlink:href','apply','Start','defIds','LIVESHARE_FETCH_OPERATIONS','forEach','get','getValue','substring','_presenter','_uiPartsService','registerInitialStateReporter','asObservable','registerComponent','unitId','use','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startLiveShareCoordinator','startFollowing','662034HHyrgZ','icon','idle','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_injector','510mNvbOF','displayName','_configService','onStarting','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','61149pHZkLE','_handleOnline','_startFollowing','You\x27are\x20offline.','2RJDogU','operations','button','init','indexOf','NOT_FOLLOWING','_collabSession','current','4921bQarlL','getTypeOfUnitAdded$','assign','_config','12APdqIF','params','send','UNIVER_SHEET','add','status$','univerjs-icon\x20univerjs-icon-','_univerInstanceService','_beIdle','Stop\x20following','url(#$1','not-following','offline','fill','_startPresenting','className','symbol','default','stopPresenting','_commandService','PRESENTING','IDLE','_mountLiveShare','shouldShareOperation','live-share.config','_collabSessionService','hasOwnProperty','function','getOwnPropertySymbols','_stopFollowing','Present\x20this\x20document','tryStartPresenting','UNIVER_UNKNOWN','20508371gwHlUD','366NiyjBD','parse','includes','pluginName','_commandDisposable','prototype','find','delete','path','subscribe','_status$','_unitID','mutations','toString','getInitialStates','length','1em','colorChannel1','children','getMemberID','_handleTerminate','getTypeOfUnitDisposed$','getUnitId','_sharedOperations','from','30GqhXQB','map','registerSharedOperation','string','0\x200\x2017\x2017','_status','UniverIcon','_liveShareService','idSuffix','type','stringify','_fetchOperations','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','set','tag','entries','Start\x20following','_handleOffline','sheet','_init','presenter','none','ONLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewHost','setConfig','complete','next','live-share-icon','You\x27re\x20presenting\x20the\x20document','presenting','div','_reporters','data','mask','univer-size-4','defineProperty','requireSession','OFFLINE','following','extend','stopFollowing','dispose','evenodd','concat','_handleOperation','LIVESHARE_REQUEST_HOST','sessionStatus$','873gRREoF','replace'];_0x2983=function(){return _0x1c9061;};return _0x2983();}import{BehaviorSubject as _0x31bb01,Subject as _0x4c84d6}from'rxjs';import{takeUntil as _0x574d5e,throttleTime as _0xee6e22}from'rxjs/operators';import{SetZoomRatioOperation as _0x4df299,SetScrollOperation as _0x346916}from'@univerjs/sheets-ui';var c=function(){var _0xaee1da=_0x4211e9;return c=Object['assign']||function(_0x40073c){var _0x41c284=_0x2067;for(var _0x582e04,_0x4e0114=0x1,_0x4a4f60=arguments[_0x41c284(0x228)];_0x4e0114<_0x4a4f60;_0x4e0114++){_0x582e04=arguments[_0x4e0114];for(var _0x409337 in _0x582e04)Object['prototype'][_0x41c284(0x211)][_0x41c284(0x1b5)](_0x582e04,_0x409337)&&(_0x40073c[_0x409337]=_0x582e04[_0x409337]);}return _0x40073c;},c[_0xaee1da(0x1ca)](this,arguments);},Oe=function(_0x3ef6e9,_0x177a3b){var _0x3e9fb3=_0x4211e9,_0x591dd9={};for(var _0x48530e in _0x3ef6e9)Object[_0x3e9fb3(0x21e)][_0x3e9fb3(0x211)][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e)&&_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e)<0x0&&(_0x591dd9[_0x48530e]=_0x3ef6e9[_0x48530e]);if(_0x3ef6e9!=null&&typeof Object['getOwnPropertySymbols']==_0x3e9fb3(0x212)){for(var _0x13f473=0x0,_0x48530e=Object[_0x3e9fb3(0x213)](_0x3ef6e9);_0x13f473<_0x48530e[_0x3e9fb3(0x228)];_0x13f473++)_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e[_0x13f473])<0x0&&Object[_0x3e9fb3(0x21e)]['propertyIsEnumerable'][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e[_0x13f473])&&(_0x591dd9[_0x48530e[_0x13f473]]=_0x3ef6e9[_0x48530e[_0x13f473]]);}return _0x591dd9;},W=_0x5f09eb(function(_0x5282cf,_0x4d8f54){var _0x39947d=_0x4211e9,_0xb26294=_0x5282cf['icon'],_0xc08dee=_0x5282cf['id'],_0x1821ed=_0x5282cf[_0x39947d(0x206)],_0x18ad76=_0x5282cf[_0x39947d(0x1a9)],_0x3d3063=Oe(_0x5282cf,[_0x39947d(0x1dd),'id',_0x39947d(0x206),_0x39947d(0x1a9)]),_0x331293=_0x39947d(0x1fd)[_0x39947d(0x1ad)](_0xc08dee,'\x20')[_0x39947d(0x1ad)](_0x1821ed||'')['trim'](),_0x596dbb=_0x4b76f7('_'['concat'](Ne()));return Y(_0xb26294,''['concat'](_0xc08dee),{'defIds':_0xb26294['defIds'],'idSuffix':_0x596dbb[_0x39947d(0x1f2)]},c({'ref':_0x4d8f54,'className':_0x331293},_0x3d3063),_0x18ad76);});function Y(_0x50e184,_0x1b46af,_0x12cf7a,_0xe0db3,_0x24f22c){var _0x218725=_0x4211e9;return _0x4cd375(_0x50e184['tag'],c(c({'key':_0x1b46af},Ee(_0x50e184,_0x12cf7a,_0x24f22c)),_0xe0db3),(we(_0x50e184,_0x12cf7a)[_0x218725(0x22b)]||[])[_0x218725(0x233)](function(_0x4805eb,_0x2477d1){var _0x4edaa0=_0x218725;return Y(_0x4805eb,''[_0x4edaa0(0x1ad)](_0x1b46af,'-')[_0x4edaa0(0x1ad)](_0x50e184[_0x4edaa0(0x18e)],'-')[_0x4edaa0(0x1ad)](_0x2477d1),_0x12cf7a,void 0x0,_0x24f22c);}));}function Ee(_0x55fab8,_0x33fce0,_0x19fa4a){var _0x47263e=_0x4211e9,_0x412574=c({},_0x55fab8[_0x47263e(0x1b8)]);_0x19fa4a!=null&&_0x19fa4a['colorChannel1']&&_0x412574[_0x47263e(0x204)]===_0x47263e(0x22a)&&(_0x412574[_0x47263e(0x204)]=_0x19fa4a[_0x47263e(0x22a)]),_0x55fab8[_0x47263e(0x18e)]==='mask'&&_0x412574['id']&&(_0x412574['id']=_0x412574['id']+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)[_0x47263e(0x1ce)](function(_0x404635){var _0x16e1ca=_0x47263e,_0x700361=_0x404635[0x0],_0x31eca8=_0x404635[0x1];_0x700361===_0x16e1ca(0x1a3)&&typeof _0x31eca8=='string'&&(_0x412574[_0x700361]=_0x31eca8[_0x16e1ca(0x1b2)](/url\(#(.*)\)/,_0x16e1ca(0x201)[_0x16e1ca(0x1ad)](_0x33fce0[_0x16e1ca(0x23a)],')')));});var _0x2859a2=_0x33fce0[_0x47263e(0x1cc)];return!_0x2859a2||_0x2859a2[_0x47263e(0x228)]===0x0||(_0x55fab8['tag']===_0x47263e(0x1d8)&&_0x412574['xlink:href']&&(_0x412574[_0x47263e(0x1c9)]=_0x412574[_0x47263e(0x1c9)]+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)['forEach'](function(_0x33d311){var _0x147b96=_0x47263e,_0x24e47f=_0x33d311[0x0],_0x3fa66c=_0x33d311[0x1];typeof _0x3fa66c==_0x147b96(0x235)&&(_0x412574[_0x24e47f]=_0x3fa66c[_0x147b96(0x1b2)](/url\(#(.*)\)/,'url(#$1'[_0x147b96(0x1ad)](_0x33fce0['idSuffix'],')')));})),_0x412574;}function we(_0x331832,_0x51a84e){var _0x588c59=_0x4211e9,_0x4eb5c0,_0x4b408b=_0x51a84e[_0x588c59(0x1cc)];return!_0x4b408b||_0x4b408b[_0x588c59(0x228)]===0x0?_0x331832:_0x331832[_0x588c59(0x18e)]===_0x588c59(0x1c5)&&(!((_0x4eb5c0=_0x331832[_0x588c59(0x22b)])===null||_0x4eb5c0===void 0x0)&&_0x4eb5c0['length'])?c(c({},_0x331832),{'children':_0x331832[_0x588c59(0x22b)][_0x588c59(0x233)](function(_0x1a0cff){var _0x26317d=_0x588c59;return typeof _0x1a0cff[_0x26317d(0x1b8)]['id']=='string'&&_0x4b408b&&_0x4b408b[_0x26317d(0x21b)](_0x1a0cff[_0x26317d(0x1b8)]['id'])?c(c({},_0x1a0cff),{'attrs':c(c({},_0x1a0cff[_0x26317d(0x1b8)]),{'id':_0x1a0cff['attrs']['id']+_0x51a84e[_0x26317d(0x23a)]})}):_0x1a0cff;})}):_0x331832;}function Ne(){var _0x3b9c11=_0x4211e9;return Math['random']()[_0x3b9c11(0x226)](0x24)[_0x3b9c11(0x1d1)](0x2,0x8);}W[_0x4211e9(0x1e2)]=_0x4211e9(0x238);var Ce={'tag':_0x4211e9(0x1bc),'attrs':{'xmlns':_0x4211e9(0x1e5),'fill':_0x4211e9(0x195),'viewBox':_0x4211e9(0x236),'width':_0x4211e9(0x229),'height':_0x4211e9(0x229)},'children':[{'tag':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'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':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'d':_0x4211e9(0x18c),'fillRule':_0x4211e9(0x1ac),'clipRule':_0x4211e9(0x1ac)}}]},B=_0x5f09eb(function(_0x231f76,_0x4eb1dd){var _0x441318=_0x4211e9;return _0x4cd375(W,Object[_0x441318(0x1f5)]({},_0x231f76,{'id':_0x441318(0x19d),'ref':_0x4eb1dd,'icon':Ce}));});B[_0x4211e9(0x1e2)]=_0x4211e9(0x1b7);class L extends _0x4178b{constructor(){var _0x1b9683=_0x4211e9;super(...arguments),d(this,_0x1b9683(0x230),new Set()),d(this,_0x1b9683(0x1a1),new Set());}[_0x4211e9(0x234)](_0x58ef9a){var _0x3f3fd7=_0x4211e9;return this[_0x3f3fd7(0x230)][_0x3f3fd7(0x1fb)](_0x58ef9a),_0x1905e1(()=>this[_0x3f3fd7(0x230)][_0x3f3fd7(0x220)](_0x58ef9a));}[_0x4211e9(0x1d4)](_0x595234){var _0x31abf9=_0x4211e9;return this[_0x31abf9(0x1a1)][_0x31abf9(0x1fb)](_0x595234),_0x1905e1(()=>this[_0x31abf9(0x1a1)]['delete'](_0x595234));}[_0x4211e9(0x20e)](_0x22296e){var _0x5a9489=_0x4211e9;return this[_0x5a9489(0x230)][_0x5a9489(0x1c3)](_0x22296e);}[_0x4211e9(0x227)](_0x3e40a3){var _0x1dbe38=_0x4211e9;return Array[_0x1dbe38(0x231)](this[_0x1dbe38(0x1a1)])[_0x1dbe38(0x233)](_0x211a6b=>_0x211a6b(_0x3e40a3));}}var De=Object[_0x4211e9(0x1b6)],Z=(_0x58e24e,_0x371f99,_0x16db68,_0x5463e0)=>{var _0x13942a=_0x4211e9;for(var _0xe8721d=_0x5463e0>0x1?void 0x0:_0x5463e0?De(_0x371f99,_0x16db68):_0x371f99,_0x26c400=_0x58e24e[_0x13942a(0x228)]-0x1,_0x356c80;_0x26c400>=0x0;_0x26c400--)(_0x356c80=_0x58e24e[_0x26c400])&&(_0xe8721d=_0x356c80(_0xe8721d)||_0xe8721d);return _0xe8721d;},f=(_0xd5c2bb,_0x45e4b6)=>(_0x5695b0,_0x8c7ef1)=>_0x45e4b6(_0x5695b0,_0x8c7ef1,_0xd5c2bb);let m=class extends _0x11260a{constructor(_0x1f7dc2,_0x35670e,_0x6d0845){var _0x5707b0=_0x4211e9;super(),d(this,_0x5707b0(0x1b3),new Map()),(this[_0x5707b0(0x1fe)]=_0x1f7dc2,this[_0x5707b0(0x1e0)]=_0x35670e,this[_0x5707b0(0x210)]=_0x6d0845,this['_init']());}async[_0x4211e9(0x1bf)](_0x5410fe){var _0x5f0379=_0x4211e9;return this[_0x5f0379(0x1b3)][_0x5f0379(0x1c3)](_0x5410fe)||await this['_startLiveShareCoordinator'](_0x5410fe),this['_entities'][_0x5f0379(0x1cf)](_0x5410fe);}['_init'](){var _0x26c467=_0x4211e9;this['_univerInstanceService'][_0x26c467(0x1f4)](_0x2e04d5['UNIVER_SHEET'])['pipe'](_0x574d5e(this[_0x26c467(0x1c1)]))[_0x26c467(0x222)](async _0x26c4f0=>{var _0x11d9de=_0x26c467;const _0x10df47=_0x26c4f0['getUnitId']();this[_0x11d9de(0x1b3)]['has'](_0x10df47)||this[_0x11d9de(0x1da)](_0x10df47);}),this[_0x26c467(0x1fe)][_0x26c467(0x22e)](_0x2e04d5[_0x26c467(0x1fa)])[_0x26c467(0x1c0)](_0x574d5e(this[_0x26c467(0x1c1)]))['subscribe'](_0x286c3f=>{var _0x397f42=_0x26c467;const _0x50a97a=_0x286c3f[_0x397f42(0x22f)](),_0x5388be=this['_entities'][_0x397f42(0x1cf)](_0x50a97a);_0x5388be==null||_0x5388be[_0x397f42(0x1ab)]();});}async['_startLiveShareCoordinator'](_0x2db63e){var _0x23b303=_0x4211e9;const _0x45be0c=await this['_collabSessionService'][_0x23b303(0x1a6)](_0x2db63e),_0x331acd=this[_0x23b303(0x1e0)]['createInstance'](C,_0x2db63e,_0x45be0c);return _0x331acd[_0x23b303(0x1ee)](),this[_0x23b303(0x1b3)][_0x23b303(0x18d)](_0x2db63e,_0x331acd),_0x331acd;}};m=Z([f(0x0,_0x4e4916),f(0x1,_0x29823e(_0x4cbc28)),f(0x2,_0x29823e(_0x11bb65))],m);var h=(_0x31cfc4=>(_0x31cfc4['OFFLINE']=_0x4211e9(0x203),_0x31cfc4['IDLE']=_0x4211e9(0x1de),_0x31cfc4['FOLLOWING']='following',_0x31cfc4[_0x4211e9(0x1f0)]=_0x4211e9(0x202),_0x31cfc4[_0x4211e9(0x20b)]='presenting',_0x31cfc4))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x11260a{constructor(_0x1138ca,_0x970feb,_0xfd094d,_0x44b456,_0x1e6448){var _0x3c0e98=_0x4211e9;super(),d(this,_0x3c0e98(0x223),new _0x31bb01(_0x3c0e98(0x1de))),d(this,_0x3c0e98(0x1fc),this[_0x3c0e98(0x223)][_0x3c0e98(0x1d5)]()),d(this,'_init',!0x1),d(this,_0x3c0e98(0x21d),null),d(this,_0x3c0e98(0x1d2),null),(this[_0x3c0e98(0x224)]=_0x1138ca,this[_0x3c0e98(0x1f1)]=_0x970feb,this[_0x3c0e98(0x1e3)]=_0xfd094d,this[_0x3c0e98(0x239)]=_0x44b456,this[_0x3c0e98(0x20a)]=_0x1e6448);}get[_0x4211e9(0x237)](){var _0x4aefb0=_0x4211e9;return this[_0x4aefb0(0x223)][_0x4aefb0(0x1d0)]();}[_0x4211e9(0x1ab)](){var _0x50d183=_0x4211e9,_0x4f82a6;(_0x4f82a6=this[_0x50d183(0x21d)])==null||_0x4f82a6[_0x50d183(0x1ab)](),this[_0x50d183(0x223)][_0x50d183(0x19c)](_0x50d183(0x1de)),this[_0x50d183(0x223)][_0x50d183(0x19b)]();}[_0x4211e9(0x1ee)](){var _0x2aa7f3=_0x4211e9;this['_init']||(this[_0x2aa7f3(0x193)]=!0x0,this[_0x2aa7f3(0x1f1)][_0x2aa7f3(0x1b0)][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))[_0x2aa7f3(0x222)](_0x12d27c=>{var _0x1d4457=_0x2aa7f3;switch(_0x12d27c){case _0x839685[_0x1d4457(0x1a7)]:this[_0x1d4457(0x191)]();break;case _0x839685[_0x1d4457(0x196)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))['subscribe'](_0x64a67=>{var _0x59c515=_0x2aa7f3;const {eventID:_0x13163f}=_0x64a67;switch(_0x13163f){case _0x5c2773['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x64a67);break;case _0x5c2773['LIVESHARE_OPERATION']:this[_0x59c515(0x1ae)](_0x64a67);break;case _0x5c2773[_0x59c515(0x1c8)]:this[_0x59c515(0x22d)]();break;case _0x5c2773['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x64a67);break;}}));}['tryStartPresenting'](){var _0x2b245b=_0x4211e9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x2b245b(0x1af)],'data':{'unitID':this[_0x2b245b(0x224)],'userID':this['_collabSession'][_0x2b245b(0x22c)]()}},this[_0x2b245b(0x224)]);}[_0x4211e9(0x209)](){var _0x146027=_0x4211e9;this[_0x146027(0x237)]==='presenting'&&(this[_0x146027(0x223)][_0x146027(0x19c)](_0x146027(0x1de)),this[_0x146027(0x1f1)][_0x146027(0x1f9)]({'eventID':_0x5c2773[_0x146027(0x1c8)],'data':{'unitID':this[_0x146027(0x224)]}},this[_0x146027(0x224)]));}['startFollowing'](){var _0x1fad91=_0x4211e9;this['_status']==='not-following'&&(this[_0x1fad91(0x223)][_0x1fad91(0x19c)]('following'),this[_0x1fad91(0x1e9)]());}[_0x4211e9(0x1aa)](){var _0x3ec898=_0x4211e9;this[_0x3ec898(0x237)]===_0x3ec898(0x1a8)&&this[_0x3ec898(0x214)]();}[_0x4211e9(0x199)](_0xeb88da){var _0xc01076=_0x4211e9;const {presenter:_0x11d950}=_0xeb88da[_0xc01076(0x1a2)],_0x1425e3=this[_0xc01076(0x1f1)][_0xc01076(0x22c)]();this[_0xc01076(0x1d2)]=_0x11d950,_0x11d950===_0x1425e3?(this[_0xc01076(0x214)](),this[_0xc01076(0x205)]()):this[_0xc01076(0x237)]!==_0xc01076(0x202)&&(this['_stopPresenting'](),this[_0xc01076(0x1e9)]());}[_0x4211e9(0x18b)](){var _0x1a20c2=_0x4211e9;const _0x597ffd={'eventID':_0x5c2773[_0x1a20c2(0x1cd)]};this[_0x1a20c2(0x1f1)][_0x1a20c2(0x1f9)](_0x597ffd,this[_0x1a20c2(0x224)]);}[_0x4211e9(0x22d)](){var _0x53fa31=_0x4211e9;this[_0x53fa31(0x1d2)]=null,this['_status']!==_0x53fa31(0x19f)&&this[_0x53fa31(0x1ff)]();}['_handleNewChangeSets'](_0x520984){var _0x3aadfb=_0x4211e9;if(this['_status']===_0x3aadfb(0x1a8)&&this[_0x3aadfb(0x1d2)]===_0x520984['data']['memberID']){const _0x4e81e4=_0x8769f7(_0x520984[_0x3aadfb(0x1a2)])[_0x3aadfb(0x225)]['reverse']()[_0x3aadfb(0x21f)](_0x48b215=>_0x48b215['id']===_0x20e50f['id']);if(_0x4e81e4){const _0x1701b5=_0x4e81e4['params'][_0x3aadfb(0x1d7)],_0x5183fd=_0x4e81e4[_0x3aadfb(0x1f8)][_0x3aadfb(0x192)]['id'];setTimeout(()=>{var _0x752db1=_0x3aadfb;this[_0x752db1(0x20a)][_0x752db1(0x1be)](_0x304fe7['id'],{'unitId':_0x1701b5,'subUnitId':_0x5183fd},{'fromCollab':!0x0});});}}}[_0x4211e9(0x205)](){var _0x5f571b=_0x4211e9;this[_0x5f571b(0x223)][_0x5f571b(0x19c)](_0x5f571b(0x19f));const _0x30229e=new Map(),_0x5e6dc5=this['_commandDisposable']=new _0x30a3f7();_0x5e6dc5[_0x5f571b(0x1fb)](_0x1905e1(()=>{var _0x304607=_0x5f571b;_0x30229e[_0x304607(0x1ce)](_0x39d2d5=>_0x39d2d5[_0x304607(0x19b)]()),_0x30229e['clear']();})),_0x5e6dc5[_0x5f571b(0x1fb)](this[_0x5f571b(0x20a)]['onCommandExecuted'](_0x50e719=>{var _0x38f1d9=_0x5f571b,_0x33ef18;if(_0x50e719[_0x38f1d9(0x189)]!==_0x3ef350['OPERATION']||!this['_liveShareService'][_0x38f1d9(0x20e)](_0x50e719['id']))return;const {id:_0x2f4eb8}=_0x50e719;let _0x422ceb;_0x30229e[_0x38f1d9(0x1c3)](_0x2f4eb8)?_0x422ceb=_0x30229e['get'](_0x2f4eb8):(_0x422ceb=new _0x4c84d6(),_0x30229e[_0x38f1d9(0x18d)](_0x2f4eb8,_0x422ceb),_0x422ceb['pipe'](_0xee6e22((_0x33ef18=this[_0x38f1d9(0x1e3)]['getConfig'](xe))!=null?_0x33ef18:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38f1d9(0x222)](_0x2513c3=>{var _0x4b29e9=_0x38f1d9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x4b29e9(0x1e6)],'data':{'unitID':this[_0x4b29e9(0x224)],'operations':{[_0x2513c3['id']]:{'id':_0x2513c3['id'],'params':JSON[_0x4b29e9(0x18a)](_0x2513c3['params'])}}}},this[_0x4b29e9(0x224)]);})),_0x422ceb[_0x38f1d9(0x19c)](_0x50e719);})),this[_0x5f571b(0x239)][_0x5f571b(0x227)](this[_0x5f571b(0x224)])[_0x5f571b(0x1ce)](_0x116247=>this[_0x5f571b(0x1f1)][_0x5f571b(0x1f9)]({'eventID':_0x5c2773['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5f571b(0x224)],'operations':{[_0x116247['id']]:{'id':_0x116247['id'],'params':JSON[_0x5f571b(0x18a)](_0x116247['params'])}}}},this[_0x5f571b(0x224)]));}[_0x4211e9(0x1c4)](){var _0xc525b4=_0x4211e9,_0x7e594e;this[_0xc525b4(0x223)][_0xc525b4(0x19c)](_0xc525b4(0x1de)),(_0x7e594e=this[_0xc525b4(0x21d)])==null||_0x7e594e[_0xc525b4(0x1ab)](),this[_0xc525b4(0x21d)]=null;}[_0x4211e9(0x1e9)](){var _0x24c625=_0x4211e9,_0x4ef12e;(_0x4ef12e=this[_0x24c625(0x21d)])==null||_0x4ef12e[_0x24c625(0x1ab)](),this['_status$'][_0x24c625(0x19c)]('following');}[_0x4211e9(0x1ff)](){var _0x4346af=_0x4211e9,_0x5463f7;this['_status$'][_0x4346af(0x19c)](_0x4346af(0x1de)),(_0x5463f7=this['_commandDisposable'])==null||_0x5463f7[_0x4346af(0x1ab)](),this[_0x4346af(0x21d)]=null;}[_0x4211e9(0x214)](){var _0x5b291d=_0x4211e9,_0x2bbf12;this['_status$'][_0x5b291d(0x19c)](_0x5b291d(0x202)),(_0x2bbf12=this['_commandDisposable'])==null||_0x2bbf12[_0x5b291d(0x1ab)]();}['_handleOperation'](_0x2e4c14){var _0x13dfb2=_0x4211e9;if(['presenting',_0x13dfb2(0x202),'offline'][_0x13dfb2(0x21b)](this['_status'])||!_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]||_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]===this['_collabSession'][_0x13dfb2(0x22c)]())return;this[_0x13dfb2(0x237)]===_0x13dfb2(0x1de)&&this[_0x13dfb2(0x1e9)]();const _0x56b58a=_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x1ec)];Object['values'](_0x56b58a)[_0x13dfb2(0x1ce)](_0x5676e4=>{var _0x43ace8=_0x13dfb2;this[_0x43ace8(0x20a)]['executeCommand'](_0x5676e4['id'],_0x5676e4[_0x43ace8(0x1f8)]?JSON[_0x43ace8(0x21a)](_0x5676e4[_0x43ace8(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4211e9(0x191)](){var _0x3e3ec6=_0x4211e9,_0x333f8b;this[_0x3e3ec6(0x223)][_0x3e3ec6(0x19c)](_0x3e3ec6(0x203)),(_0x333f8b=this[_0x3e3ec6(0x21d)])==null||_0x333f8b[_0x3e3ec6(0x1ab)]();}[_0x4211e9(0x1e8)](){var _0x851a74=_0x4211e9;this[_0x851a74(0x223)][_0x851a74(0x19c)](_0x851a74(0x1de)),this[_0x851a74(0x18b)]();}};C=Z([f(0x2,_0x454454),f(0x3,_0x29823e(L)),f(0x4,_0x1f59fb)],C);function ye(){var _0x2407f2=_0x4211e9;const _0x23995e=_0x34ce29(m),_0x1068a7=_0x34ce29(_0x4e4916),_0x24aa99=_0x5eb324(()=>_0x1068a7['getCurrentTypeOfUnit$'](_0x2e04d5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5baab2,_0x5df1cc]=_0x56e9c1(null),[_0x2557c7,_0x2a7937]=_0x56e9c1(h[_0x2407f2(0x20c)]),_0xe52120=_0x4b76f7(null);return _0x5005fd(()=>(_0x24aa99&&_0x23995e['getLiveShareCoordinator'](_0x24aa99[_0x2407f2(0x22f)]())['then'](_0x165de8=>{var _0x952f43=_0x2407f2;_0x5df1cc(_0x165de8),_0xe52120[_0x952f43(0x1f2)]=_0x165de8[_0x952f43(0x1fc)][_0x952f43(0x222)](_0xc6c851=>{_0x2a7937(_0xc6c851);});}),()=>{var _0x17518f=_0x2407f2,_0x27c3a4;(_0x27c3a4=_0xe52120[_0x17518f(0x1f2)])==null||_0x27c3a4[_0x17518f(0x197)](),_0xe52120[_0x17518f(0x1f2)]=null;}),[_0x24aa99,_0x23995e]),_0x5baab2?_0x478ffe(_0x3ee376,{'align':'end','disabled':_0x2557c7===h[_0x2407f2(0x1a7)],'className':_0x2407f2(0x1df),'overlay':_0x478ffe(Re,{'status':_0x2557c7,'coordinator':_0x5baab2}),'children':_0x478ffe(_0x2407f2(0x1ed),{'className':_0x3fe52f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2557c7===h[_0x2407f2(0x1a7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2557c7!==h[_0x2407f2(0x1a7)]}),'type':_0x2407f2(0x1ed),'children':_0x478ffe(B,{'className':_0x2407f2(0x1a4)})})}):null;}function Re(_0x28b43b){var _0x1e8385=_0x4211e9;const {status:_0x43370e,coordinator:_0x1e3176}=_0x28b43b;switch(_0x43370e){case h['IDLE']:return _0x478ffe(Pe,{'coordinator':_0x1e3176});case h['FOLLOWING']:return _0x478ffe(Ae,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1f0)]:return _0x478ffe(Te,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1a7)]:return _0x478ffe(Fe,{});case h[_0x1e8385(0x20b)]:return _0x478ffe($e,{'coordinator':_0x1e3176});default:return null;}}function Pe(_0x28ad3c){var _0x5705f2=_0x4211e9;const {coordinator:_0x35452d}=_0x28ad3c;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5705f2(0x1a0),{'className':_0x5705f2(0x1d9),'children':_0x5705f2(0x215)}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x35452d[_0x5705f2(0x216)](),'children':_0x5705f2(0x1cb)})]});}function Ae(_0x2e52cb){var _0x11a763=_0x4211e9;const {coordinator:_0x59c989}=_0x2e52cb;return _0x15f696(_0xc7295,{'children':[_0x478ffe('div',{'className':_0x11a763(0x1d9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x59c989[_0x11a763(0x1aa)](),'children':_0x11a763(0x200)})]});}function Te(_0x302eb9){var _0x5325a9=_0x4211e9;const {coordinator:_0x2e77f6}=_0x302eb9;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5325a9(0x1a0),{'className':_0x5325a9(0x1d9),'children':_0x5325a9(0x198)}),_0x478ffe(_0x2ec823,{'variant':_0x5325a9(0x1bd),'onClick':()=>_0x2e77f6[_0x5325a9(0x1db)](),'children':_0x5325a9(0x190)})]});}function $e(_0xbfdfdd){var _0x1ccb70=_0x4211e9;const {coordinator:_0x5a3578}=_0xbfdfdd;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x1ccb70(0x1a0),{'className':_0x1ccb70(0x1d9),'children':_0x1ccb70(0x19e)}),_0x478ffe(_0x2ec823,{'variant':_0x1ccb70(0x208),'onClick':()=>_0x5a3578[_0x1ccb70(0x209)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x2689e4=_0x4211e9;return _0x478ffe(_0xc7295,{'children':_0x2689e4(0x1ea)});}var He=Object[_0x4211e9(0x1b6)],je=(_0x5e2ab2,_0x108636,_0x1a0910,_0x3bf9b8)=>{var _0x4fcc65=_0x4211e9;for(var _0x588d08=_0x3bf9b8>0x1?void 0x0:_0x3bf9b8?He(_0x108636,_0x1a0910):_0x108636,_0x30d11c=_0x5e2ab2[_0x4fcc65(0x228)]-0x1,_0x2d6263;_0x30d11c>=0x0;_0x30d11c--)(_0x2d6263=_0x5e2ab2[_0x30d11c])&&(_0x588d08=_0x2d6263(_0x588d08)||_0x588d08);return _0x588d08;},T=(_0x648934,_0x410285)=>(_0x584ae5,_0x193f02)=>_0x410285(_0x584ae5,_0x193f02,_0x648934);let I=class extends _0x4178b{constructor(_0x10a498,_0x30fc7b){var _0x1b4d22=_0x4211e9;super(),this['_injector']=_0x10a498,this['_uiPartsService']=_0x30fc7b,this[_0x1b4d22(0x20d)]();}[_0x4211e9(0x20d)](){var _0x1108ff=_0x4211e9;this[_0x1108ff(0x1bb)](this[_0x1108ff(0x1d3)][_0x1108ff(0x1d6)](_0x37ef0c[_0x1108ff(0x1ba)],()=>_0x36c2e2(ye,this[_0x1108ff(0x1e0)])));}};I=je([T(0x0,_0x29823e(_0x4cbc28)),T(0x1,_0x4b1b8f)],I);const Ue=_0x4211e9(0x20f),$={};var Ve=Object[_0x4211e9(0x1b6)],Me=(_0x365cb2,_0x32fad2,_0x596884,_0x1a7da2)=>{var _0x3c2b21=_0x4211e9;for(var _0x35b54e=_0x1a7da2>0x1?void 0x0:_0x1a7da2?Ve(_0x32fad2,_0x596884):_0x32fad2,_0x16574b=_0x365cb2[_0x3c2b21(0x228)]-0x1,_0x1c2e71;_0x16574b>=0x0;_0x16574b--)(_0x1c2e71=_0x365cb2[_0x16574b])&&(_0x35b54e=_0x1c2e71(_0x35b54e)||_0x35b54e);return _0x35b54e;},ke=(_0x195866,_0x37d115)=>(_0xd4ffa3,_0x4ee49f)=>_0x37d115(_0xd4ffa3,_0x4ee49f,_0x195866);let b=class extends _0x4178b{constructor(_0x150931){var _0xb9ac09=_0x4211e9;super(),this[_0xb9ac09(0x239)]=_0x150931,this[_0xb9ac09(0x193)]();}['_init'](){var _0x18a05e=_0x4211e9;[_0x4df299['id'],_0x346916['id'],_0x304fe7['id']][_0x18a05e(0x1ce)](_0x310109=>{var _0x2326f=_0x18a05e;this[_0x2326f(0x1bb)](this['_liveShareService'][_0x2326f(0x234)](_0x310109));});}};b=Me([ke(0x0,_0x29823e(L))],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3216d4,_0x33da56,_0x3cb493)=>_0x33da56 in _0x3216d4?Ge(_0x3216d4,_0x33da56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb493}):_0x3216d4[_0x33da56]=_0x3cb493,Be=(_0x4d11cf,_0x48d827,_0x2eacd9,_0x56d5dd)=>{var _0x659cb7=_0x4211e9;for(var _0x534d68=_0x56d5dd>0x1?void 0x0:_0x56d5dd?We(_0x48d827,_0x2eacd9):_0x48d827,_0x4f18fe=_0x4d11cf[_0x659cb7(0x228)]-0x1,_0x75b698;_0x4f18fe>=0x0;_0x4f18fe--)(_0x75b698=_0x4d11cf[_0x4f18fe])&&(_0x534d68=_0x75b698(_0x534d68)||_0x534d68);return _0x534d68;},F=(_0x5721ca,_0x5500bb)=>(_0x1b7fae,_0x2e5217)=>_0x5500bb(_0x1b7fae,_0x2e5217,_0x5721ca),J=(_0x4948a8,_0x2e1311,_0x1c3400)=>Ye(_0x4948a8,typeof _0x2e1311!=_0x4211e9(0x207)?_0x2e1311+'':_0x2e1311,_0x1c3400);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x119c72{constructor(_0x542dab=$,_0x6edcd4,_0x125cb8){var _0xbe4892=_0x4211e9;super(),this['_config']=_0x542dab,this[_0xbe4892(0x1e0)]=_0x6edcd4,this['_configService']=_0x125cb8;const {..._0x2f92a2}=_0x147e1f({},$,this['_config']);this[_0xbe4892(0x1e3)][_0xbe4892(0x19a)](Ue,_0x2f92a2);}[_0x4211e9(0x1e4)](){var _0x5c78c5=_0x4211e9;_0x16e757(this['_injector'],_0x3cdfd6([[L],[m],[b],[I]],this[_0x5c78c5(0x1f6)]['override'])),_0x108acc(this[_0x5c78c5(0x1e0)],[[b]]);}[_0x4211e9(0x1b9)](){var _0x22bc9e=_0x4211e9;_0x108acc(this[_0x22bc9e(0x1e0)],[[I]]);}};J(O,_0x4211e9(0x189),_0x2e04d5[_0x4211e9(0x217)]),J(O,_0x4211e9(0x21c),Ze),O=Be([_0x462562(_0x7fa5df),F(0x1,_0x29823e(_0x4cbc28)),F(0x2,_0x454454)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0xa07ab4=_0x178e;(function(_0x480754,_0x3be388){var _0x4a7549=_0x178e,_0x2fc041=_0x480754();while(!![]){try{var _0x156529=parseInt(_0x4a7549(0x109))/0x1*(parseInt(_0x4a7549(0x111))/0x2)+-parseInt(_0x4a7549(0xfc))/0x3*(parseInt(_0x4a7549(0x9c))/0x4)+-parseInt(_0x4a7549(0x90))/0x5+parseInt(_0x4a7549(0xaf))/0x6*(-parseInt(_0x4a7549(0xb0))/0x7)+-parseInt(_0x4a7549(0x112))/0x8*(-parseInt(_0x4a7549(0x123))/0x9)+-parseInt(_0x4a7549(0xe0))/0xa+parseInt(_0x4a7549(0xe1))/0xb;if(_0x156529===_0x3be388)break;else _0x2fc041['push'](_0x2fc041['shift']());}catch(_0x4076fc){_0x2fc041['push'](_0x2fc041['shift']());}}}(_0x185c,0x9922c));var q=Object[_0xa07ab4(0x86)],z=(_0x43f17a,_0xf41fd5,_0x342756)=>_0xf41fd5 in _0x43f17a?q(_0x43f17a,_0xf41fd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x342756}):_0x43f17a[_0xf41fd5]=_0x342756,d=(_0x3e8aab,_0x5f198a,_0x1e8cd6)=>z(_0x3e8aab,typeof _0x5f198a!=_0xa07ab4(0x10e)?_0x5f198a+'':_0x5f198a,_0x1e8cd6);import{Disposable as _0x1e6e0c,toDisposable as _0x5182ea,IUniverInstanceService as _0x1607da,Inject as _0x354fd2,Injector as _0x4a1d22,IConfigService as _0x5b22d7,ICommandService as _0x5e2b20,RxDisposable as _0x25f604,UniverInstanceType as _0x511684,DisposableCollection as _0x5dbdb9,CommandType as _0x3ece4a,DependentOn as _0x26a32a,Plugin as _0x347543,merge as _0x579cd2,registerDependencies as _0x5d09aa,mergeOverrideWithDependencies as _0x378502,touchDependencies as _0x5c5361}from'@univerjs/core';import{useDependency as _0x56de89,useObservable as _0x338148,IUIPartsService as _0x1708ce,BuiltInUIPart as _0x1cc547,connectInjector as _0x53741c}from'@univerjs/ui';import{jsx as _0x1261c7,jsxs as _0x54d46f,Fragment as _0x1d6819}from'react/jsx-runtime';import{Dropdown as _0x247715,clsx as _0x2c649c,Button as _0x1aa6e9}from'@univerjs/design';import{forwardRef as _0x39c36a,useRef as _0x105803,createElement as _0x301253,useState as _0x2b8a00,useEffect as _0x9070dc}from'react';import{CollaborationEvent as _0x4646a8,parseProtocolChangeset as _0x29dff5}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bb6ab,SessionStatus as _0x3f3bf1,UniverCollaborationClientPlugin as _0xc10544}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3659ed,SetWorksheetActiveOperation as _0xa53257}from'@univerjs/sheets';function _0x185c(){var _0x328187=['displayName','next','You\x27are\x20offline.','_entities','440214YMiehn','49qUNlNQ','div','Start','hasOwnProperty','UNIVER_SHEET','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','toString','LiveShareIcon','defIds','map','presenting','stopPresenting','_commandDisposable','_status','_configService','registerComponent','add','not-following','getMemberID','complete','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','subscribe','univer-size-4','trim','_liveShareService','getCurrentTypeOfUnit$','_presenter','type','LIVESHARE_NEW_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','_startPresenting','NEW_CHANGESETS','OFFLINE','shouldShareOperation','following','disposeWithMe','clear','icon','_init','getOwnPropertySymbols','1em','prototype','_handleNewChangeSets','PRESENTING','default','8922870Hggmie','15726359yciAuk','concat','evenodd','_stopFollowing','_startFollowing','_handleOnline','_config','_handleOperation','unitId','stringify','_sharedOperations','setConfig','params','random','status$','colorChannel1','values','univerjs-icon\x20univerjs-icon-','You\x27re\x20presenting\x20the\x20document','requireSession','fill','pipe','memberID','end','unsubscribe','entries','_univerInstanceService','3OyDMyk','0\x200\x2017\x2017','getLiveShareCoordinator','string','extend','apply','live-share-icon','http://www.w3.org/2000/svg','_injector','ONLINE','registerInitialStateReporter','currentColor','current','68388TDanxJ','has','attrs','FOLLOWING','tryStartPresenting','symbol','_status$','indexOf','22XJMXXC','8jRUmtE','from','_collabSessionService','idle','tag','LIVESHARE_TERMINATE','className','_commandService','onRendered','dispose','asObservable','use','offline','executeCommand','stopFollowing','mask','length','6241608QTXNZm','find','dispose$','children','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','getInitialStates','mutations','live-share.config','delete','getConfig','_handleTerminate','_reporters','HEADER_MENU','then','set','_unitID','Start\x20following','defineProperty','onCommandExecuted','registerSharedOperation','getUnitId','includes','forEach','propertyIsEnumerable','path','presenter','operations','274180szcHJS','call','idSuffix','onStarting','_beIdle','get','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','defs','send','_collabSession','You\x27re\x20following\x20the\x20presenter','3149996wcEpKJ','replace','xlink:href','override','LIVESHARE_OPERATION','_mountLiveShare','_uiPartsService','OPERATION','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','_startLiveShareCoordinator','createInstance','sessionStatus$','assign','data'];_0x185c=function(){return _0x328187;};return _0x185c();}import{BehaviorSubject as _0x45b7bf,Subject as _0x14606f}from'rxjs';import{takeUntil as _0x172f19,throttleTime as _0x4451f8}from'rxjs/operators';import{SetZoomRatioOperation as _0x5d01a1,SetScrollOperation as _0x125601}from'@univerjs/sheets-ui';var c=function(){var _0x150579=_0xa07ab4;return c=Object[_0x150579(0xa9)]||function(_0x2bd269){var _0x1eac49=_0x150579;for(var _0x57abd0,_0x22eb1f=0x1,_0x4cd473=arguments[_0x1eac49(0x122)];_0x22eb1f<_0x4cd473;_0x22eb1f++){_0x57abd0=arguments[_0x22eb1f];for(var _0x38c76b in _0x57abd0)Object[_0x1eac49(0xdc)][_0x1eac49(0xb3)]['call'](_0x57abd0,_0x38c76b)&&(_0x2bd269[_0x38c76b]=_0x57abd0[_0x38c76b]);}return _0x2bd269;},c[_0x150579(0x101)](this,arguments);},Oe=function(_0x2695d2,_0x3d40b1){var _0x4d578f=_0xa07ab4,_0x1c987b={};for(var _0x412b47 in _0x2695d2)Object[_0x4d578f(0xdc)][_0x4d578f(0xb3)][_0x4d578f(0x91)](_0x2695d2,_0x412b47)&&_0x3d40b1[_0x4d578f(0x110)](_0x412b47)<0x0&&(_0x1c987b[_0x412b47]=_0x2695d2[_0x412b47]);if(_0x2695d2!=null&&typeof Object[_0x4d578f(0xda)]=='function'){for(var _0x1c00d6=0x0,_0x412b47=Object[_0x4d578f(0xda)](_0x2695d2);_0x1c00d6<_0x412b47[_0x4d578f(0x122)];_0x1c00d6++)_0x3d40b1['indexOf'](_0x412b47[_0x1c00d6])<0x0&&Object[_0x4d578f(0xdc)][_0x4d578f(0x8c)][_0x4d578f(0x91)](_0x2695d2,_0x412b47[_0x1c00d6])&&(_0x1c987b[_0x412b47[_0x1c00d6]]=_0x2695d2[_0x412b47[_0x1c00d6]]);}return _0x1c987b;},W=_0x39c36a(function(_0x7799a,_0x55085b){var _0x22c85b=_0xa07ab4,_0x4e97d1=_0x7799a[_0x22c85b(0xd8)],_0x10df0e=_0x7799a['id'],_0x18ae91=_0x7799a['className'],_0x4025dc=_0x7799a[_0x22c85b(0x100)],_0x5aebe1=Oe(_0x7799a,[_0x22c85b(0xd8),'id',_0x22c85b(0x118),_0x22c85b(0x100)]),_0x56e8f0=_0x22c85b(0xf2)[_0x22c85b(0xe2)](_0x10df0e,'\x20')[_0x22c85b(0xe2)](_0x18ae91||'')[_0x22c85b(0xc9)](),_0x37b1f6=_0x105803('_'['concat'](Ne()));return Y(_0x4e97d1,''['concat'](_0x10df0e),{'defIds':_0x4e97d1[_0x22c85b(0xb9)],'idSuffix':_0x37b1f6[_0x22c85b(0x108)]},c({'ref':_0x55085b,'className':_0x56e8f0},_0x5aebe1),_0x4025dc);});function Y(_0x1405bc,_0x71b8e2,_0x4e8e82,_0x43c2e5,_0x176f8f){var _0x489221=_0xa07ab4;return _0x301253(_0x1405bc[_0x489221(0x116)],c(c({'key':_0x71b8e2},Ee(_0x1405bc,_0x4e8e82,_0x176f8f)),_0x43c2e5),(we(_0x1405bc,_0x4e8e82)[_0x489221(0x126)]||[])[_0x489221(0xba)](function(_0x26be3f,_0x50f368){var _0x4a7bf8=_0x489221;return Y(_0x26be3f,''[_0x4a7bf8(0xe2)](_0x71b8e2,'-')[_0x4a7bf8(0xe2)](_0x1405bc['tag'],'-')[_0x4a7bf8(0xe2)](_0x50f368),_0x4e8e82,void 0x0,_0x176f8f);}));}function Ee(_0x23366f,_0x92b96b,_0x4380b9){var _0x3f63a1=_0xa07ab4,_0x5f0c85=c({},_0x23366f['attrs']);_0x4380b9!=null&&_0x4380b9[_0x3f63a1(0xf0)]&&_0x5f0c85[_0x3f63a1(0xf5)]===_0x3f63a1(0xf0)&&(_0x5f0c85[_0x3f63a1(0xf5)]=_0x4380b9[_0x3f63a1(0xf0)]),_0x23366f['tag']===_0x3f63a1(0x121)&&_0x5f0c85['id']&&(_0x5f0c85['id']=_0x5f0c85['id']+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)['forEach'](function(_0x59063c){var _0x21380c=_0x3f63a1,_0x18c68f=_0x59063c[0x0],_0x121a36=_0x59063c[0x1];_0x18c68f===_0x21380c(0x121)&&typeof _0x121a36=='string'&&(_0x5f0c85[_0x18c68f]=_0x121a36[_0x21380c(0x9d)](/url\(#(.*)\)/,_0x21380c(0x128)[_0x21380c(0xe2)](_0x92b96b[_0x21380c(0x92)],')')));});var _0x4b9124=_0x92b96b[_0x3f63a1(0xb9)];return!_0x4b9124||_0x4b9124['length']===0x0||(_0x23366f[_0x3f63a1(0x116)]===_0x3f63a1(0x11d)&&_0x5f0c85[_0x3f63a1(0x9e)]&&(_0x5f0c85[_0x3f63a1(0x9e)]=_0x5f0c85[_0x3f63a1(0x9e)]+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)[_0x3f63a1(0x8b)](function(_0xfb87aa){var _0x51ac30=_0x3f63a1,_0x5985e7=_0xfb87aa[0x0],_0x1e2b58=_0xfb87aa[0x1];typeof _0x1e2b58=='string'&&(_0x5f0c85[_0x5985e7]=_0x1e2b58['replace'](/url\(#(.*)\)/,'url(#$1'[_0x51ac30(0xe2)](_0x92b96b[_0x51ac30(0x92)],')')));})),_0x5f0c85;}function we(_0x3ccbfb,_0x1eef2c){var _0x4d0b3b=_0xa07ab4,_0x9fdb6a,_0x32a12a=_0x1eef2c[_0x4d0b3b(0xb9)];return!_0x32a12a||_0x32a12a['length']===0x0?_0x3ccbfb:_0x3ccbfb['tag']===_0x4d0b3b(0x98)&&(!((_0x9fdb6a=_0x3ccbfb[_0x4d0b3b(0x126)])===null||_0x9fdb6a===void 0x0)&&_0x9fdb6a[_0x4d0b3b(0x122)])?c(c({},_0x3ccbfb),{'children':_0x3ccbfb['children'][_0x4d0b3b(0xba)](function(_0x2ebaaa){var _0x2e59db=_0x4d0b3b;return typeof _0x2ebaaa[_0x2e59db(0x10b)]['id']==_0x2e59db(0xff)&&_0x32a12a&&_0x32a12a[_0x2e59db(0x8a)](_0x2ebaaa[_0x2e59db(0x10b)]['id'])?c(c({},_0x2ebaaa),{'attrs':c(c({},_0x2ebaaa['attrs']),{'id':_0x2ebaaa[_0x2e59db(0x10b)]['id']+_0x1eef2c['idSuffix']})}):_0x2ebaaa;})}):_0x3ccbfb;}function Ne(){var _0x2c7211=_0xa07ab4;return Math[_0x2c7211(0xee)]()[_0x2c7211(0xb7)](0x24)['substring'](0x2,0x8);}W[_0xa07ab4(0xab)]='UniverIcon';var Ce={'tag':_0xa07ab4(0xd0),'attrs':{'xmlns':_0xa07ab4(0x103),'fill':'none','viewBox':_0xa07ab4(0xfd),'width':_0xa07ab4(0xdb),'height':_0xa07ab4(0xdb)},'children':[{'tag':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0xe3),'clipRule':'evenodd'}}]},B=_0x39c36a(function(_0xe0d440,_0x206471){var _0x5d88f4=_0xa07ab4;return _0x301253(W,Object[_0x5d88f4(0xa9)]({},_0xe0d440,{'id':_0x5d88f4(0x102),'ref':_0x206471,'icon':Ce}));});B['displayName']=_0xa07ab4(0xb8);class L extends _0x1e6e0c{constructor(){var _0x1cdf2e=_0xa07ab4;super(...arguments),d(this,_0x1cdf2e(0xeb),new Set()),d(this,_0x1cdf2e(0x80),new Set());}[_0xa07ab4(0x88)](_0x3dd6fe){var _0xd2220=_0xa07ab4;return this[_0xd2220(0xeb)][_0xd2220(0xc1)](_0x3dd6fe),_0x5182ea(()=>this[_0xd2220(0xeb)]['delete'](_0x3dd6fe));}[_0xa07ab4(0x106)](_0x5ead55){var _0x1e73a0=_0xa07ab4;return this[_0x1e73a0(0x80)]['add'](_0x5ead55),_0x5182ea(()=>this[_0x1e73a0(0x80)][_0x1e73a0(0x7d)](_0x5ead55));}[_0xa07ab4(0xd4)](_0x47a6b2){var _0xb4dda1=_0xa07ab4;return this[_0xb4dda1(0xeb)][_0xb4dda1(0x10a)](_0x47a6b2);}[_0xa07ab4(0x129)](_0x33279a){var _0x2fe9c9=_0xa07ab4;return Array[_0x2fe9c9(0x113)](this[_0x2fe9c9(0x80)])[_0x2fe9c9(0xba)](_0x2da1ca=>_0x2da1ca(_0x33279a));}}var De=Object[_0xa07ab4(0xb5)],Z=(_0x45573c,_0x31e072,_0x2bdd12,_0x1be060)=>{for(var _0x251bbc=_0x1be060>0x1?void 0x0:_0x1be060?De(_0x31e072,_0x2bdd12):_0x31e072,_0x2e1bc0=_0x45573c['length']-0x1,_0x213241;_0x2e1bc0>=0x0;_0x2e1bc0--)(_0x213241=_0x45573c[_0x2e1bc0])&&(_0x251bbc=_0x213241(_0x251bbc)||_0x251bbc);return _0x251bbc;},f=(_0x1cb94e,_0x5daaa0)=>(_0x4f76c9,_0x895511)=>_0x5daaa0(_0x4f76c9,_0x895511,_0x1cb94e);let m=class extends _0x25f604{constructor(_0x28678a,_0x5bdf3c,_0x1d2c01){var _0x42849b=_0xa07ab4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x28678a,this[_0x42849b(0x104)]=_0x5bdf3c,this[_0x42849b(0x114)]=_0x1d2c01,this[_0x42849b(0xd9)]());}async[_0xa07ab4(0xfe)](_0x41aea6){var _0x18ba81=_0xa07ab4;return this[_0x18ba81(0xae)]['has'](_0x41aea6)||await this[_0x18ba81(0xa6)](_0x41aea6),this[_0x18ba81(0xae)][_0x18ba81(0x95)](_0x41aea6);}[_0xa07ab4(0xd9)](){var _0x1b88bb=_0xa07ab4;this[_0x1b88bb(0xfb)][_0x1b88bb(0xc5)](_0x511684['UNIVER_SHEET'])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](async _0x19f8e2=>{var _0xb3b5ea=_0x1b88bb;const _0x6f1295=_0x19f8e2['getUnitId']();this[_0xb3b5ea(0xae)]['has'](_0x6f1295)||this['_startLiveShareCoordinator'](_0x6f1295);}),this[_0x1b88bb(0xfb)]['getTypeOfUnitDisposed$'](_0x511684[_0x1b88bb(0xb4)])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](_0x18f75f=>{var _0x1cae7=_0x1b88bb;const _0x156d91=_0x18f75f[_0x1cae7(0x89)](),_0x2b30ee=this[_0x1cae7(0xae)][_0x1cae7(0x95)](_0x156d91);_0x2b30ee==null||_0x2b30ee['dispose']();});}async[_0xa07ab4(0xa6)](_0xf7a04e){var _0x1d65a8=_0xa07ab4;const _0x43cfdb=await this[_0x1d65a8(0x114)][_0x1d65a8(0xf4)](_0xf7a04e),_0x102fca=this[_0x1d65a8(0x104)][_0x1d65a8(0xa7)](C,_0xf7a04e,_0x43cfdb);return _0x102fca['init'](),this['_entities'][_0x1d65a8(0x83)](_0xf7a04e,_0x102fca),_0x102fca;}};m=Z([f(0x0,_0x1607da),f(0x1,_0x354fd2(_0x4a1d22)),f(0x2,_0x354fd2(_0x3bb6ab))],m);var h=(_0x467b57=>(_0x467b57[_0xa07ab4(0xd3)]='offline',_0x467b57['IDLE']=_0xa07ab4(0x115),_0x467b57['FOLLOWING']=_0xa07ab4(0xd5),_0x467b57['NOT_FOLLOWING']=_0xa07ab4(0xc2),_0x467b57[_0xa07ab4(0xde)]=_0xa07ab4(0xbb),_0x467b57))(h||{});const xe=_0xa07ab4(0xa4),Le=0xc8;let C=class extends _0x25f604{constructor(_0x318000,_0x4062bd,_0x5cb229,_0x35e5ad,_0x34c708){var _0x4cca25=_0xa07ab4;super(),d(this,_0x4cca25(0x10f),new _0x45b7bf(_0x4cca25(0x115))),d(this,'status$',this[_0x4cca25(0x10f)][_0x4cca25(0x11c)]()),d(this,_0x4cca25(0xd9),!0x1),d(this,_0x4cca25(0xbd),null),d(this,_0x4cca25(0xcc),null),(this[_0x4cca25(0x84)]=_0x318000,this[_0x4cca25(0x9a)]=_0x4062bd,this[_0x4cca25(0xbf)]=_0x5cb229,this['_liveShareService']=_0x35e5ad,this['_commandService']=_0x34c708);}get[_0xa07ab4(0xbe)](){return this['_status$']['getValue']();}[_0xa07ab4(0x11b)](){var _0x3b59a7=_0xa07ab4,_0x3400a7;(_0x3400a7=this['_commandDisposable'])==null||_0x3400a7['dispose'](),this[_0x3b59a7(0x10f)][_0x3b59a7(0xac)]('idle'),this['_status$'][_0x3b59a7(0xc4)]();}['init'](){var _0x165e43=_0xa07ab4;this[_0x165e43(0xd9)]||(this[_0x165e43(0xd9)]=!0x0,this['_collabSession'][_0x165e43(0xa8)][_0x165e43(0xf6)](_0x172f19(this['dispose$']))[_0x165e43(0xc7)](_0xdff43=>{var _0x536c3c=_0x165e43;switch(_0xdff43){case _0x3f3bf1[_0x536c3c(0xd3)]:this['_handleOffline']();break;case _0x3f3bf1[_0x536c3c(0x105)]:this[_0x536c3c(0xe6)]();break;}}),this[_0x165e43(0x9a)]['event$'][_0x165e43(0xf6)](_0x172f19(this[_0x165e43(0x125)]))[_0x165e43(0xc7)](_0x365957=>{var _0x48dfc8=_0x165e43;const {eventID:_0x5342b0}=_0x365957;switch(_0x5342b0){case _0x4646a8[_0x48dfc8(0xce)]:this['_handleNewHost'](_0x365957);break;case _0x4646a8[_0x48dfc8(0xa0)]:this[_0x48dfc8(0xe8)](_0x365957);break;case _0x4646a8[_0x48dfc8(0x117)]:this[_0x48dfc8(0x7f)]();break;case _0x4646a8[_0x48dfc8(0xd2)]:this[_0x48dfc8(0xdd)](_0x365957);break;}}));}[_0xa07ab4(0x10d)](){var _0x2274e7=_0xa07ab4;this[_0x2274e7(0x9a)][_0x2274e7(0x99)]({'eventID':_0x4646a8[_0x2274e7(0xb6)],'data':{'unitID':this[_0x2274e7(0x84)],'userID':this[_0x2274e7(0x9a)][_0x2274e7(0xc3)]()}},this['_unitID']);}[_0xa07ab4(0xbc)](){var _0x5bfb15=_0xa07ab4;this[_0x5bfb15(0xbe)]===_0x5bfb15(0xbb)&&(this[_0x5bfb15(0x10f)][_0x5bfb15(0xac)](_0x5bfb15(0x115)),this['_collabSession'][_0x5bfb15(0x99)]({'eventID':_0x4646a8[_0x5bfb15(0x117)],'data':{'unitID':this[_0x5bfb15(0x84)]}},this[_0x5bfb15(0x84)]));}['startFollowing'](){var _0x3b9604=_0xa07ab4;this['_status']==='not-following'&&(this[_0x3b9604(0x10f)]['next']('following'),this[_0x3b9604(0xe5)]());}[_0xa07ab4(0x120)](){var _0x1e7c40=_0xa07ab4;this[_0x1e7c40(0xbe)]===_0x1e7c40(0xd5)&&this['_stopFollowing']();}['_handleNewHost'](_0x4cf4c3){var _0x45573f=_0xa07ab4;const {presenter:_0x2e9ebf}=_0x4cf4c3[_0x45573f(0xaa)],_0x1d1319=this[_0x45573f(0x9a)][_0x45573f(0xc3)]();this[_0x45573f(0xcc)]=_0x2e9ebf,_0x2e9ebf===_0x1d1319?(this['_stopFollowing'](),this[_0x45573f(0xd1)]()):this[_0x45573f(0xbe)]!==_0x45573f(0xc2)&&(this[_0x45573f(0xa5)](),this['_startFollowing']());}[_0xa07ab4(0x97)](){var _0x33bd98=_0xa07ab4;const _0x24f319={'eventID':_0x4646a8[_0x33bd98(0x96)]};this[_0x33bd98(0x9a)][_0x33bd98(0x99)](_0x24f319,this[_0x33bd98(0x84)]);}[_0xa07ab4(0x7f)](){var _0x3973bb=_0xa07ab4;this[_0x3973bb(0xcc)]=null,this[_0x3973bb(0xbe)]!==_0x3973bb(0xbb)&&this[_0x3973bb(0x94)]();}[_0xa07ab4(0xdd)](_0x281780){var _0xa4fc=_0xa07ab4;if(this['_status']===_0xa4fc(0xd5)&&this[_0xa4fc(0xcc)]===_0x281780['data'][_0xa4fc(0xf7)]){const _0x2942d8=_0x29dff5(_0x281780['data'])[_0xa4fc(0x12a)]['reverse']()[_0xa4fc(0x124)](_0x4e86c5=>_0x4e86c5['id']===_0x3659ed['id']);if(_0x2942d8){const _0x2d9ed6=_0x2942d8[_0xa4fc(0xed)][_0xa4fc(0xe9)],_0x512640=_0x2942d8[_0xa4fc(0xed)]['sheet']['id'];setTimeout(()=>{var _0x2018c2=_0xa4fc;this[_0x2018c2(0x119)][_0x2018c2(0x11f)](_0xa53257['id'],{'unitId':_0x2d9ed6,'subUnitId':_0x512640},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf844b=_0xa07ab4;this[_0xf844b(0x10f)][_0xf844b(0xac)]('presenting');const _0x4bc36b=new Map(),_0x44e209=this['_commandDisposable']=new _0x5dbdb9();_0x44e209['add'](_0x5182ea(()=>{var _0xaaf85c=_0xf844b;_0x4bc36b[_0xaaf85c(0x8b)](_0x3334b4=>_0x3334b4[_0xaaf85c(0xc4)]()),_0x4bc36b[_0xaaf85c(0xd7)]();})),_0x44e209['add'](this['_commandService'][_0xf844b(0x87)](_0x1518a2=>{var _0x594594=_0xf844b,_0x450fcc;if(_0x1518a2[_0x594594(0xcd)]!==_0x3ece4a[_0x594594(0xa3)]||!this[_0x594594(0xca)][_0x594594(0xd4)](_0x1518a2['id']))return;const {id:_0x417f60}=_0x1518a2;let _0x52a748;_0x4bc36b[_0x594594(0x10a)](_0x417f60)?_0x52a748=_0x4bc36b['get'](_0x417f60):(_0x52a748=new _0x14606f(),_0x4bc36b[_0x594594(0x83)](_0x417f60,_0x52a748),_0x52a748[_0x594594(0xf6)](_0x4451f8((_0x450fcc=this[_0x594594(0xbf)][_0x594594(0x7e)](xe))!=null?_0x450fcc:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x594594(0xc7)](_0x4325a9=>{var _0x422250=_0x594594;this[_0x422250(0x9a)][_0x422250(0x99)]({'eventID':_0x4646a8[_0x422250(0xa0)],'data':{'unitID':this[_0x422250(0x84)],'operations':{[_0x4325a9['id']]:{'id':_0x4325a9['id'],'params':JSON[_0x422250(0xea)](_0x4325a9[_0x422250(0xed)])}}}},this[_0x422250(0x84)]);})),_0x52a748[_0x594594(0xac)](_0x1518a2);})),this[_0xf844b(0xca)][_0xf844b(0x129)](this[_0xf844b(0x84)])[_0xf844b(0x8b)](_0x5b788f=>this[_0xf844b(0x9a)][_0xf844b(0x99)]({'eventID':_0x4646a8[_0xf844b(0xa0)],'data':{'unitID':this['_unitID'],'operations':{[_0x5b788f['id']]:{'id':_0x5b788f['id'],'params':JSON[_0xf844b(0xea)](_0x5b788f[_0xf844b(0xed)])}}}},this[_0xf844b(0x84)]));}[_0xa07ab4(0xa5)](){var _0x5b800=_0xa07ab4,_0x120f0a;this[_0x5b800(0x10f)][_0x5b800(0xac)]('idle'),(_0x120f0a=this[_0x5b800(0xbd)])==null||_0x120f0a['dispose'](),this[_0x5b800(0xbd)]=null;}[_0xa07ab4(0xe5)](){var _0x41cf93=_0xa07ab4,_0x47769c;(_0x47769c=this[_0x41cf93(0xbd)])==null||_0x47769c[_0x41cf93(0x11b)](),this[_0x41cf93(0x10f)][_0x41cf93(0xac)](_0x41cf93(0xd5));}[_0xa07ab4(0x94)](){var _0x8fe525=_0xa07ab4,_0x33e42e;this['_status$']['next']('idle'),(_0x33e42e=this[_0x8fe525(0xbd)])==null||_0x33e42e[_0x8fe525(0x11b)](),this[_0x8fe525(0xbd)]=null;}[_0xa07ab4(0xe4)](){var _0x318c5b=_0xa07ab4,_0x2c6242;this[_0x318c5b(0x10f)][_0x318c5b(0xac)](_0x318c5b(0xc2)),(_0x2c6242=this[_0x318c5b(0xbd)])==null||_0x2c6242['dispose']();}[_0xa07ab4(0xe8)](_0x19978b){var _0x3d834e=_0xa07ab4;if([_0x3d834e(0xbb),_0x3d834e(0xc2),_0x3d834e(0x11e)][_0x3d834e(0x8a)](this[_0x3d834e(0xbe)])||!_0x19978b['data'][_0x3d834e(0x8e)]||_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8e)]===this[_0x3d834e(0x9a)][_0x3d834e(0xc3)]())return;this[_0x3d834e(0xbe)]===_0x3d834e(0x115)&&this[_0x3d834e(0xe5)]();const _0x19ef71=_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8f)];Object[_0x3d834e(0xf1)](_0x19ef71)[_0x3d834e(0x8b)](_0x110c98=>{var _0x5b1e1d=_0x3d834e;this[_0x5b1e1d(0x119)][_0x5b1e1d(0x11f)](_0x110c98['id'],_0x110c98[_0x5b1e1d(0xed)]?JSON['parse'](_0x110c98[_0x5b1e1d(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3e0014=_0xa07ab4,_0x289b76;this[_0x3e0014(0x10f)][_0x3e0014(0xac)](_0x3e0014(0x11e)),(_0x289b76=this[_0x3e0014(0xbd)])==null||_0x289b76['dispose']();}['_handleOnline'](){var _0x30a49c=_0xa07ab4;this[_0x30a49c(0x10f)][_0x30a49c(0xac)](_0x30a49c(0x115)),this[_0x30a49c(0x97)]();}};function _0x178e(_0x298759,_0x6dc9e2){var _0x185cf4=_0x185c();return _0x178e=function(_0x178e3d,_0x51b00f){_0x178e3d=_0x178e3d-0x7c;var _0x4e23a9=_0x185cf4[_0x178e3d];return _0x4e23a9;},_0x178e(_0x298759,_0x6dc9e2);}C=Z([f(0x2,_0x5b22d7),f(0x3,_0x354fd2(L)),f(0x4,_0x5e2b20)],C);function ye(){var _0x39fdd3=_0xa07ab4;const _0x274c48=_0x56de89(m),_0x472348=_0x56de89(_0x1607da),_0x19d5aa=_0x338148(()=>_0x472348[_0x39fdd3(0xcb)](_0x511684[_0x39fdd3(0xb4)]),void 0x0,!0x1,[]),[_0x57168d,_0x50a3b5]=_0x2b8a00(null),[_0x4215d9,_0x2328a8]=_0x2b8a00(h['IDLE']),_0x1bce20=_0x105803(null);return _0x9070dc(()=>(_0x19d5aa&&_0x274c48[_0x39fdd3(0xfe)](_0x19d5aa[_0x39fdd3(0x89)]())[_0x39fdd3(0x82)](_0x287e5f=>{var _0x279349=_0x39fdd3;_0x50a3b5(_0x287e5f),_0x1bce20[_0x279349(0x108)]=_0x287e5f[_0x279349(0xef)][_0x279349(0xc7)](_0x312799=>{_0x2328a8(_0x312799);});}),()=>{var _0x33ace2=_0x39fdd3,_0x3541a2;(_0x3541a2=_0x1bce20['current'])==null||_0x3541a2[_0x33ace2(0xf9)](),_0x1bce20[_0x33ace2(0x108)]=null;}),[_0x19d5aa,_0x274c48]),_0x57168d?_0x1261c7(_0x247715,{'align':_0x39fdd3(0xf8),'disabled':_0x4215d9===h[_0x39fdd3(0xd3)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1261c7(Re,{'status':_0x4215d9,'coordinator':_0x57168d}),'children':_0x1261c7('button',{'className':_0x2c649c(_0x39fdd3(0xc6),{'univer-cursor-not-allowed':_0x4215d9===h[_0x39fdd3(0xd3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4215d9!==h[_0x39fdd3(0xd3)]}),'type':'button','children':_0x1261c7(B,{'className':_0x39fdd3(0xc8)})})}):null;}function Re(_0x2ef4df){var _0x15b51b=_0xa07ab4;const {status:_0x5d9824,coordinator:_0x8b4e2}=_0x2ef4df;switch(_0x5d9824){case h['IDLE']:return _0x1261c7(Pe,{'coordinator':_0x8b4e2});case h[_0x15b51b(0x10c)]:return _0x1261c7(Ae,{'coordinator':_0x8b4e2});case h['NOT_FOLLOWING']:return _0x1261c7(Te,{'coordinator':_0x8b4e2});case h[_0x15b51b(0xd3)]:return _0x1261c7(Fe,{});case h[_0x15b51b(0xde)]:return _0x1261c7($e,{'coordinator':_0x8b4e2});default:return null;}}function Pe(_0x10f656){var _0x1b9d31=_0xa07ab4;const {coordinator:_0x203683}=_0x10f656;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7('div',{'className':_0x1b9d31(0xcf),'children':'Present\x20this\x20document'}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x203683['tryStartPresenting'](),'children':_0x1b9d31(0xb2)})]});}function Ae(_0xafae98){var _0x31c86d=_0xa07ab4;const {coordinator:_0x2db713}=_0xafae98;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x31c86d(0xb1),{'className':_0x31c86d(0xcf),'children':_0x31c86d(0x9b)}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x2db713['stopFollowing'](),'children':'Stop\x20following'})]});}function Te(_0x5787d7){var _0x422377=_0xa07ab4;const {coordinator:_0x3e4254}=_0x5787d7;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x422377(0xb1),{'className':_0x422377(0xcf),'children':_0x422377(0x127)}),_0x1261c7(_0x1aa6e9,{'variant':'text','onClick':()=>_0x3e4254['startFollowing'](),'children':_0x422377(0x85)})]});}function $e(_0xf4d894){var _0xb0606d=_0xa07ab4;const {coordinator:_0x1b1240}=_0xf4d894;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0xb0606d(0xb1),{'className':_0xb0606d(0xcf),'children':_0xb0606d(0xf3)}),_0x1261c7(_0x1aa6e9,{'variant':_0xb0606d(0xdf),'onClick':()=>_0x1b1240[_0xb0606d(0xbc)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x41a040=_0xa07ab4;return _0x1261c7(_0x1d6819,{'children':_0x41a040(0xad)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4d9063,_0x38f8f0,_0x5c86e1,_0x418055)=>{var _0x1213f2=_0xa07ab4;for(var _0x42041c=_0x418055>0x1?void 0x0:_0x418055?He(_0x38f8f0,_0x5c86e1):_0x38f8f0,_0x3ca7e0=_0x4d9063[_0x1213f2(0x122)]-0x1,_0xb0720b;_0x3ca7e0>=0x0;_0x3ca7e0--)(_0xb0720b=_0x4d9063[_0x3ca7e0])&&(_0x42041c=_0xb0720b(_0x42041c)||_0x42041c);return _0x42041c;},T=(_0x205f3b,_0x2a5079)=>(_0x3356bd,_0x3136dd)=>_0x2a5079(_0x3356bd,_0x3136dd,_0x205f3b);let I=class extends _0x1e6e0c{constructor(_0x789904,_0x5acc14){var _0x3c8a33=_0xa07ab4;super(),this['_injector']=_0x789904,this[_0x3c8a33(0xa2)]=_0x5acc14,this[_0x3c8a33(0xa1)]();}[_0xa07ab4(0xa1)](){var _0x1e4653=_0xa07ab4;this[_0x1e4653(0xd6)](this[_0x1e4653(0xa2)][_0x1e4653(0xc0)](_0x1cc547[_0x1e4653(0x81)],()=>_0x53741c(ye,this[_0x1e4653(0x104)])));}};I=je([T(0x0,_0x354fd2(_0x4a1d22)),T(0x1,_0x1708ce)],I);const Ue=_0xa07ab4(0x7c),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x211de8,_0x2e7dc5,_0x2e394e,_0x5d87dc)=>{var _0x4d3201=_0xa07ab4;for(var _0x4d0d87=_0x5d87dc>0x1?void 0x0:_0x5d87dc?Ve(_0x2e7dc5,_0x2e394e):_0x2e7dc5,_0x5ccf96=_0x211de8[_0x4d3201(0x122)]-0x1,_0x3fd658;_0x5ccf96>=0x0;_0x5ccf96--)(_0x3fd658=_0x211de8[_0x5ccf96])&&(_0x4d0d87=_0x3fd658(_0x4d0d87)||_0x4d0d87);return _0x4d0d87;},ke=(_0x2fae15,_0x36c2fc)=>(_0x48073b,_0x16ad73)=>_0x36c2fc(_0x48073b,_0x16ad73,_0x2fae15);let b=class extends _0x1e6e0c{constructor(_0x51383c){var _0x55ea64=_0xa07ab4;super(),this[_0x55ea64(0xca)]=_0x51383c,this['_init']();}['_init'](){var _0x47f9f3=_0xa07ab4;[_0x5d01a1['id'],_0x125601['id'],_0xa53257['id']][_0x47f9f3(0x8b)](_0x39a2be=>{var _0x466e1f=_0x47f9f3;this['disposeWithMe'](this[_0x466e1f(0xca)][_0x466e1f(0x88)](_0x39a2be));});}};b=Me([ke(0x0,_0x354fd2(L))],b);var Ge=Object['defineProperty'],We=Object[_0xa07ab4(0xb5)],Ye=(_0x4248a2,_0x3eb4a0,_0x365260)=>_0x3eb4a0 in _0x4248a2?Ge(_0x4248a2,_0x3eb4a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x365260}):_0x4248a2[_0x3eb4a0]=_0x365260,Be=(_0x3ec746,_0x1d4613,_0x1d9cec,_0x902c04)=>{var _0x29b92c=_0xa07ab4;for(var _0x1b3ff2=_0x902c04>0x1?void 0x0:_0x902c04?We(_0x1d4613,_0x1d9cec):_0x1d4613,_0x2abc79=_0x3ec746[_0x29b92c(0x122)]-0x1,_0xe3a45a;_0x2abc79>=0x0;_0x2abc79--)(_0xe3a45a=_0x3ec746[_0x2abc79])&&(_0x1b3ff2=_0xe3a45a(_0x1b3ff2)||_0x1b3ff2);return _0x1b3ff2;},F=(_0x42a9b3,_0x5e752f)=>(_0x5a4f15,_0x11df23)=>_0x5e752f(_0x5a4f15,_0x11df23,_0x42a9b3),J=(_0x17e7ef,_0x370436,_0x3e7278)=>Ye(_0x17e7ef,typeof _0x370436!=_0xa07ab4(0x10e)?_0x370436+'':_0x370436,_0x3e7278);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x347543{constructor(_0x4f220b=$,_0x1aeab9,_0x273722){var _0x5a0d2d=_0xa07ab4;super(),this['_config']=_0x4f220b,this[_0x5a0d2d(0x104)]=_0x1aeab9,this[_0x5a0d2d(0xbf)]=_0x273722;const {..._0x2af60c}=_0x579cd2({},$,this['_config']);this[_0x5a0d2d(0xbf)][_0x5a0d2d(0xec)](Ue,_0x2af60c);}[_0xa07ab4(0x93)](){var _0x21a1a5=_0xa07ab4;_0x5d09aa(this[_0x21a1a5(0x104)],_0x378502([[L],[m],[b],[I]],this[_0x21a1a5(0xe7)][_0x21a1a5(0x9f)])),_0x5c5361(this['_injector'],[[b]]);}[_0xa07ab4(0x11a)](){_0x5c5361(this['_injector'],[[I]]);}};J(O,_0xa07ab4(0xcd),_0x511684['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x26a32a(_0xc10544),F(0x1,_0x354fd2(_0x4a1d22)),F(0x2,_0x5b22d7)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4211e9=_0x2067;(function(_0x5ccfc4,_0x3a9fbf){var _0x3257b2=_0x2067,_0x24c117=_0x5ccfc4();while(!![]){try{var _0x3b0903=parseInt(_0x3257b2(0x1c6))/0x1+parseInt(_0x3257b2(0x1eb))/0x2*(parseInt(_0x3257b2(0x1dc))/0x3)+-parseInt(_0x3257b2(0x1c7))/0x4*(-parseInt(_0x3257b2(0x232))/0x5)+parseInt(_0x3257b2(0x219))/0x6*(parseInt(_0x3257b2(0x1f3))/0x7)+-parseInt(_0x3257b2(0x1c2))/0x8*(-parseInt(_0x3257b2(0x1b1))/0x9)+parseInt(_0x3257b2(0x1e1))/0xa*(parseInt(_0x3257b2(0x1e7))/0xb)+-parseInt(_0x3257b2(0x1f7))/0xc*(parseInt(_0x3257b2(0x218))/0xd);if(_0x3b0903===_0x3a9fbf)break;else _0x24c117['push'](_0x24c117['shift']());}catch(_0x565eed){_0x24c117['push'](_0x24c117['shift']());}}}(_0x2983,0x55bb9));var q=Object[_0x4211e9(0x1a5)],z=(_0x147563,_0x35a5bf,_0x2c4d3e)=>_0x35a5bf in _0x147563?q(_0x147563,_0x35a5bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c4d3e}):_0x147563[_0x35a5bf]=_0x2c4d3e,d=(_0x258ffe,_0x4a2a0a,_0x5675f0)=>z(_0x258ffe,typeof _0x4a2a0a!=_0x4211e9(0x207)?_0x4a2a0a+'':_0x4a2a0a,_0x5675f0);import{Disposable as _0x4178b,toDisposable as _0x1905e1,IUniverInstanceService as _0x4e4916,Inject as _0x29823e,Injector as _0x4cbc28,IConfigService as _0x454454,ICommandService as _0x1f59fb,RxDisposable as _0x11260a,UniverInstanceType as _0x2e04d5,DisposableCollection as _0x30a3f7,CommandType as _0x3ef350,DependentOn as _0x462562,Plugin as _0x119c72,merge as _0x147e1f,registerDependencies as _0x16e757,mergeOverrideWithDependencies as _0x3cdfd6,touchDependencies as _0x108acc}from'@univerjs/core';import{useDependency as _0x34ce29,useObservable as _0x5eb324,IUIPartsService as _0x4b1b8f,BuiltInUIPart as _0x37ef0c,connectInjector as _0x36c2e2}from'@univerjs/ui';import{jsx as _0x478ffe,jsxs as _0x15f696,Fragment as _0xc7295}from'react/jsx-runtime';import{Dropdown as _0x3ee376,clsx as _0x3fe52f,Button as _0x2ec823}from'@univerjs/design';import{forwardRef as _0x5f09eb,useRef as _0x4b76f7,createElement as _0x4cd375,useState as _0x56e9c1,useEffect as _0x5005fd}from'react';import{CollaborationEvent as _0x5c2773,parseProtocolChangeset as _0x8769f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x11bb65,SessionStatus as _0x839685,UniverCollaborationClientPlugin as _0x7fa5df}from'@univerjs-pro/collaboration-client';function _0x2067(_0x31d6ac,_0x15ee94){var _0x298359=_0x2983();return _0x2067=function(_0x20678f,_0x28563c){_0x20678f=_0x20678f-0x189;var _0x2d6af7=_0x298359[_0x20678f];return _0x2d6af7;},_0x2067(_0x31d6ac,_0x15ee94);}import{InsertSheetMutation as _0x20e50f,SetWorksheetActiveOperation as _0x304fe7}from'@univerjs/sheets';function _0x2983(){var _0x1c9061=['_entities','currentColor','call','getOwnPropertyDescriptor','LiveShareIcon','attrs','onRendered','HEADER_MENU','disposeWithMe','svg','text','executeCommand','getLiveShareCoordinator','pipe','dispose$','38856dIMQQd','has','_stopPresenting','defs','484967vURxfJ','283708CJZbsV','LIVESHARE_TERMINATE','xlink:href','apply','Start','defIds','LIVESHARE_FETCH_OPERATIONS','forEach','get','getValue','substring','_presenter','_uiPartsService','registerInitialStateReporter','asObservable','registerComponent','unitId','use','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startLiveShareCoordinator','startFollowing','662034HHyrgZ','icon','idle','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_injector','510mNvbOF','displayName','_configService','onStarting','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','61149pHZkLE','_handleOnline','_startFollowing','You\x27are\x20offline.','2RJDogU','operations','button','init','indexOf','NOT_FOLLOWING','_collabSession','current','4921bQarlL','getTypeOfUnitAdded$','assign','_config','12APdqIF','params','send','UNIVER_SHEET','add','status$','univerjs-icon\x20univerjs-icon-','_univerInstanceService','_beIdle','Stop\x20following','url(#$1','not-following','offline','fill','_startPresenting','className','symbol','default','stopPresenting','_commandService','PRESENTING','IDLE','_mountLiveShare','shouldShareOperation','live-share.config','_collabSessionService','hasOwnProperty','function','getOwnPropertySymbols','_stopFollowing','Present\x20this\x20document','tryStartPresenting','UNIVER_UNKNOWN','20508371gwHlUD','366NiyjBD','parse','includes','pluginName','_commandDisposable','prototype','find','delete','path','subscribe','_status$','_unitID','mutations','toString','getInitialStates','length','1em','colorChannel1','children','getMemberID','_handleTerminate','getTypeOfUnitDisposed$','getUnitId','_sharedOperations','from','30GqhXQB','map','registerSharedOperation','string','0\x200\x2017\x2017','_status','UniverIcon','_liveShareService','idSuffix','type','stringify','_fetchOperations','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','set','tag','entries','Start\x20following','_handleOffline','sheet','_init','presenter','none','ONLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewHost','setConfig','complete','next','live-share-icon','You\x27re\x20presenting\x20the\x20document','presenting','div','_reporters','data','mask','univer-size-4','defineProperty','requireSession','OFFLINE','following','extend','stopFollowing','dispose','evenodd','concat','_handleOperation','LIVESHARE_REQUEST_HOST','sessionStatus$','873gRREoF','replace'];_0x2983=function(){return _0x1c9061;};return _0x2983();}import{BehaviorSubject as _0x31bb01,Subject as _0x4c84d6}from'rxjs';import{takeUntil as _0x574d5e,throttleTime as _0xee6e22}from'rxjs/operators';import{SetZoomRatioOperation as _0x4df299,SetScrollOperation as _0x346916}from'@univerjs/sheets-ui';var c=function(){var _0xaee1da=_0x4211e9;return c=Object['assign']||function(_0x40073c){var _0x41c284=_0x2067;for(var _0x582e04,_0x4e0114=0x1,_0x4a4f60=arguments[_0x41c284(0x228)];_0x4e0114<_0x4a4f60;_0x4e0114++){_0x582e04=arguments[_0x4e0114];for(var _0x409337 in _0x582e04)Object['prototype'][_0x41c284(0x211)][_0x41c284(0x1b5)](_0x582e04,_0x409337)&&(_0x40073c[_0x409337]=_0x582e04[_0x409337]);}return _0x40073c;},c[_0xaee1da(0x1ca)](this,arguments);},Oe=function(_0x3ef6e9,_0x177a3b){var _0x3e9fb3=_0x4211e9,_0x591dd9={};for(var _0x48530e in _0x3ef6e9)Object[_0x3e9fb3(0x21e)][_0x3e9fb3(0x211)][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e)&&_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e)<0x0&&(_0x591dd9[_0x48530e]=_0x3ef6e9[_0x48530e]);if(_0x3ef6e9!=null&&typeof Object['getOwnPropertySymbols']==_0x3e9fb3(0x212)){for(var _0x13f473=0x0,_0x48530e=Object[_0x3e9fb3(0x213)](_0x3ef6e9);_0x13f473<_0x48530e[_0x3e9fb3(0x228)];_0x13f473++)_0x177a3b[_0x3e9fb3(0x1ef)](_0x48530e[_0x13f473])<0x0&&Object[_0x3e9fb3(0x21e)]['propertyIsEnumerable'][_0x3e9fb3(0x1b5)](_0x3ef6e9,_0x48530e[_0x13f473])&&(_0x591dd9[_0x48530e[_0x13f473]]=_0x3ef6e9[_0x48530e[_0x13f473]]);}return _0x591dd9;},W=_0x5f09eb(function(_0x5282cf,_0x4d8f54){var _0x39947d=_0x4211e9,_0xb26294=_0x5282cf['icon'],_0xc08dee=_0x5282cf['id'],_0x1821ed=_0x5282cf[_0x39947d(0x206)],_0x18ad76=_0x5282cf[_0x39947d(0x1a9)],_0x3d3063=Oe(_0x5282cf,[_0x39947d(0x1dd),'id',_0x39947d(0x206),_0x39947d(0x1a9)]),_0x331293=_0x39947d(0x1fd)[_0x39947d(0x1ad)](_0xc08dee,'\x20')[_0x39947d(0x1ad)](_0x1821ed||'')['trim'](),_0x596dbb=_0x4b76f7('_'['concat'](Ne()));return Y(_0xb26294,''['concat'](_0xc08dee),{'defIds':_0xb26294['defIds'],'idSuffix':_0x596dbb[_0x39947d(0x1f2)]},c({'ref':_0x4d8f54,'className':_0x331293},_0x3d3063),_0x18ad76);});function Y(_0x50e184,_0x1b46af,_0x12cf7a,_0xe0db3,_0x24f22c){var _0x218725=_0x4211e9;return _0x4cd375(_0x50e184['tag'],c(c({'key':_0x1b46af},Ee(_0x50e184,_0x12cf7a,_0x24f22c)),_0xe0db3),(we(_0x50e184,_0x12cf7a)[_0x218725(0x22b)]||[])[_0x218725(0x233)](function(_0x4805eb,_0x2477d1){var _0x4edaa0=_0x218725;return Y(_0x4805eb,''[_0x4edaa0(0x1ad)](_0x1b46af,'-')[_0x4edaa0(0x1ad)](_0x50e184[_0x4edaa0(0x18e)],'-')[_0x4edaa0(0x1ad)](_0x2477d1),_0x12cf7a,void 0x0,_0x24f22c);}));}function Ee(_0x55fab8,_0x33fce0,_0x19fa4a){var _0x47263e=_0x4211e9,_0x412574=c({},_0x55fab8[_0x47263e(0x1b8)]);_0x19fa4a!=null&&_0x19fa4a['colorChannel1']&&_0x412574[_0x47263e(0x204)]===_0x47263e(0x22a)&&(_0x412574[_0x47263e(0x204)]=_0x19fa4a[_0x47263e(0x22a)]),_0x55fab8[_0x47263e(0x18e)]==='mask'&&_0x412574['id']&&(_0x412574['id']=_0x412574['id']+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)[_0x47263e(0x1ce)](function(_0x404635){var _0x16e1ca=_0x47263e,_0x700361=_0x404635[0x0],_0x31eca8=_0x404635[0x1];_0x700361===_0x16e1ca(0x1a3)&&typeof _0x31eca8=='string'&&(_0x412574[_0x700361]=_0x31eca8[_0x16e1ca(0x1b2)](/url\(#(.*)\)/,_0x16e1ca(0x201)[_0x16e1ca(0x1ad)](_0x33fce0[_0x16e1ca(0x23a)],')')));});var _0x2859a2=_0x33fce0[_0x47263e(0x1cc)];return!_0x2859a2||_0x2859a2[_0x47263e(0x228)]===0x0||(_0x55fab8['tag']===_0x47263e(0x1d8)&&_0x412574['xlink:href']&&(_0x412574[_0x47263e(0x1c9)]=_0x412574[_0x47263e(0x1c9)]+_0x33fce0[_0x47263e(0x23a)]),Object[_0x47263e(0x18f)](_0x412574)['forEach'](function(_0x33d311){var _0x147b96=_0x47263e,_0x24e47f=_0x33d311[0x0],_0x3fa66c=_0x33d311[0x1];typeof _0x3fa66c==_0x147b96(0x235)&&(_0x412574[_0x24e47f]=_0x3fa66c[_0x147b96(0x1b2)](/url\(#(.*)\)/,'url(#$1'[_0x147b96(0x1ad)](_0x33fce0['idSuffix'],')')));})),_0x412574;}function we(_0x331832,_0x51a84e){var _0x588c59=_0x4211e9,_0x4eb5c0,_0x4b408b=_0x51a84e[_0x588c59(0x1cc)];return!_0x4b408b||_0x4b408b[_0x588c59(0x228)]===0x0?_0x331832:_0x331832[_0x588c59(0x18e)]===_0x588c59(0x1c5)&&(!((_0x4eb5c0=_0x331832[_0x588c59(0x22b)])===null||_0x4eb5c0===void 0x0)&&_0x4eb5c0['length'])?c(c({},_0x331832),{'children':_0x331832[_0x588c59(0x22b)][_0x588c59(0x233)](function(_0x1a0cff){var _0x26317d=_0x588c59;return typeof _0x1a0cff[_0x26317d(0x1b8)]['id']=='string'&&_0x4b408b&&_0x4b408b[_0x26317d(0x21b)](_0x1a0cff[_0x26317d(0x1b8)]['id'])?c(c({},_0x1a0cff),{'attrs':c(c({},_0x1a0cff[_0x26317d(0x1b8)]),{'id':_0x1a0cff['attrs']['id']+_0x51a84e[_0x26317d(0x23a)]})}):_0x1a0cff;})}):_0x331832;}function Ne(){var _0x3b9c11=_0x4211e9;return Math['random']()[_0x3b9c11(0x226)](0x24)[_0x3b9c11(0x1d1)](0x2,0x8);}W[_0x4211e9(0x1e2)]=_0x4211e9(0x238);var Ce={'tag':_0x4211e9(0x1bc),'attrs':{'xmlns':_0x4211e9(0x1e5),'fill':_0x4211e9(0x195),'viewBox':_0x4211e9(0x236),'width':_0x4211e9(0x229),'height':_0x4211e9(0x229)},'children':[{'tag':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'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':_0x4211e9(0x221),'attrs':{'fill':_0x4211e9(0x1b4),'d':_0x4211e9(0x18c),'fillRule':_0x4211e9(0x1ac),'clipRule':_0x4211e9(0x1ac)}}]},B=_0x5f09eb(function(_0x231f76,_0x4eb1dd){var _0x441318=_0x4211e9;return _0x4cd375(W,Object[_0x441318(0x1f5)]({},_0x231f76,{'id':_0x441318(0x19d),'ref':_0x4eb1dd,'icon':Ce}));});B[_0x4211e9(0x1e2)]=_0x4211e9(0x1b7);class L extends _0x4178b{constructor(){var _0x1b9683=_0x4211e9;super(...arguments),d(this,_0x1b9683(0x230),new Set()),d(this,_0x1b9683(0x1a1),new Set());}[_0x4211e9(0x234)](_0x58ef9a){var _0x3f3fd7=_0x4211e9;return this[_0x3f3fd7(0x230)][_0x3f3fd7(0x1fb)](_0x58ef9a),_0x1905e1(()=>this[_0x3f3fd7(0x230)][_0x3f3fd7(0x220)](_0x58ef9a));}[_0x4211e9(0x1d4)](_0x595234){var _0x31abf9=_0x4211e9;return this[_0x31abf9(0x1a1)][_0x31abf9(0x1fb)](_0x595234),_0x1905e1(()=>this[_0x31abf9(0x1a1)]['delete'](_0x595234));}[_0x4211e9(0x20e)](_0x22296e){var _0x5a9489=_0x4211e9;return this[_0x5a9489(0x230)][_0x5a9489(0x1c3)](_0x22296e);}[_0x4211e9(0x227)](_0x3e40a3){var _0x1dbe38=_0x4211e9;return Array[_0x1dbe38(0x231)](this[_0x1dbe38(0x1a1)])[_0x1dbe38(0x233)](_0x211a6b=>_0x211a6b(_0x3e40a3));}}var De=Object[_0x4211e9(0x1b6)],Z=(_0x58e24e,_0x371f99,_0x16db68,_0x5463e0)=>{var _0x13942a=_0x4211e9;for(var _0xe8721d=_0x5463e0>0x1?void 0x0:_0x5463e0?De(_0x371f99,_0x16db68):_0x371f99,_0x26c400=_0x58e24e[_0x13942a(0x228)]-0x1,_0x356c80;_0x26c400>=0x0;_0x26c400--)(_0x356c80=_0x58e24e[_0x26c400])&&(_0xe8721d=_0x356c80(_0xe8721d)||_0xe8721d);return _0xe8721d;},f=(_0xd5c2bb,_0x45e4b6)=>(_0x5695b0,_0x8c7ef1)=>_0x45e4b6(_0x5695b0,_0x8c7ef1,_0xd5c2bb);let m=class extends _0x11260a{constructor(_0x1f7dc2,_0x35670e,_0x6d0845){var _0x5707b0=_0x4211e9;super(),d(this,_0x5707b0(0x1b3),new Map()),(this[_0x5707b0(0x1fe)]=_0x1f7dc2,this[_0x5707b0(0x1e0)]=_0x35670e,this[_0x5707b0(0x210)]=_0x6d0845,this['_init']());}async[_0x4211e9(0x1bf)](_0x5410fe){var _0x5f0379=_0x4211e9;return this[_0x5f0379(0x1b3)][_0x5f0379(0x1c3)](_0x5410fe)||await this['_startLiveShareCoordinator'](_0x5410fe),this['_entities'][_0x5f0379(0x1cf)](_0x5410fe);}['_init'](){var _0x26c467=_0x4211e9;this['_univerInstanceService'][_0x26c467(0x1f4)](_0x2e04d5['UNIVER_SHEET'])['pipe'](_0x574d5e(this[_0x26c467(0x1c1)]))[_0x26c467(0x222)](async _0x26c4f0=>{var _0x11d9de=_0x26c467;const _0x10df47=_0x26c4f0['getUnitId']();this[_0x11d9de(0x1b3)]['has'](_0x10df47)||this[_0x11d9de(0x1da)](_0x10df47);}),this[_0x26c467(0x1fe)][_0x26c467(0x22e)](_0x2e04d5[_0x26c467(0x1fa)])[_0x26c467(0x1c0)](_0x574d5e(this[_0x26c467(0x1c1)]))['subscribe'](_0x286c3f=>{var _0x397f42=_0x26c467;const _0x50a97a=_0x286c3f[_0x397f42(0x22f)](),_0x5388be=this['_entities'][_0x397f42(0x1cf)](_0x50a97a);_0x5388be==null||_0x5388be[_0x397f42(0x1ab)]();});}async['_startLiveShareCoordinator'](_0x2db63e){var _0x23b303=_0x4211e9;const _0x45be0c=await this['_collabSessionService'][_0x23b303(0x1a6)](_0x2db63e),_0x331acd=this[_0x23b303(0x1e0)]['createInstance'](C,_0x2db63e,_0x45be0c);return _0x331acd[_0x23b303(0x1ee)](),this[_0x23b303(0x1b3)][_0x23b303(0x18d)](_0x2db63e,_0x331acd),_0x331acd;}};m=Z([f(0x0,_0x4e4916),f(0x1,_0x29823e(_0x4cbc28)),f(0x2,_0x29823e(_0x11bb65))],m);var h=(_0x31cfc4=>(_0x31cfc4['OFFLINE']=_0x4211e9(0x203),_0x31cfc4['IDLE']=_0x4211e9(0x1de),_0x31cfc4['FOLLOWING']='following',_0x31cfc4[_0x4211e9(0x1f0)]=_0x4211e9(0x202),_0x31cfc4[_0x4211e9(0x20b)]='presenting',_0x31cfc4))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x11260a{constructor(_0x1138ca,_0x970feb,_0xfd094d,_0x44b456,_0x1e6448){var _0x3c0e98=_0x4211e9;super(),d(this,_0x3c0e98(0x223),new _0x31bb01(_0x3c0e98(0x1de))),d(this,_0x3c0e98(0x1fc),this[_0x3c0e98(0x223)][_0x3c0e98(0x1d5)]()),d(this,'_init',!0x1),d(this,_0x3c0e98(0x21d),null),d(this,_0x3c0e98(0x1d2),null),(this[_0x3c0e98(0x224)]=_0x1138ca,this[_0x3c0e98(0x1f1)]=_0x970feb,this[_0x3c0e98(0x1e3)]=_0xfd094d,this[_0x3c0e98(0x239)]=_0x44b456,this[_0x3c0e98(0x20a)]=_0x1e6448);}get[_0x4211e9(0x237)](){var _0x4aefb0=_0x4211e9;return this[_0x4aefb0(0x223)][_0x4aefb0(0x1d0)]();}[_0x4211e9(0x1ab)](){var _0x50d183=_0x4211e9,_0x4f82a6;(_0x4f82a6=this[_0x50d183(0x21d)])==null||_0x4f82a6[_0x50d183(0x1ab)](),this[_0x50d183(0x223)][_0x50d183(0x19c)](_0x50d183(0x1de)),this[_0x50d183(0x223)][_0x50d183(0x19b)]();}[_0x4211e9(0x1ee)](){var _0x2aa7f3=_0x4211e9;this['_init']||(this[_0x2aa7f3(0x193)]=!0x0,this[_0x2aa7f3(0x1f1)][_0x2aa7f3(0x1b0)][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))[_0x2aa7f3(0x222)](_0x12d27c=>{var _0x1d4457=_0x2aa7f3;switch(_0x12d27c){case _0x839685[_0x1d4457(0x1a7)]:this[_0x1d4457(0x191)]();break;case _0x839685[_0x1d4457(0x196)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x2aa7f3(0x1c0)](_0x574d5e(this[_0x2aa7f3(0x1c1)]))['subscribe'](_0x64a67=>{var _0x59c515=_0x2aa7f3;const {eventID:_0x13163f}=_0x64a67;switch(_0x13163f){case _0x5c2773['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x64a67);break;case _0x5c2773['LIVESHARE_OPERATION']:this[_0x59c515(0x1ae)](_0x64a67);break;case _0x5c2773[_0x59c515(0x1c8)]:this[_0x59c515(0x22d)]();break;case _0x5c2773['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x64a67);break;}}));}['tryStartPresenting'](){var _0x2b245b=_0x4211e9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x2b245b(0x1af)],'data':{'unitID':this[_0x2b245b(0x224)],'userID':this['_collabSession'][_0x2b245b(0x22c)]()}},this[_0x2b245b(0x224)]);}[_0x4211e9(0x209)](){var _0x146027=_0x4211e9;this[_0x146027(0x237)]==='presenting'&&(this[_0x146027(0x223)][_0x146027(0x19c)](_0x146027(0x1de)),this[_0x146027(0x1f1)][_0x146027(0x1f9)]({'eventID':_0x5c2773[_0x146027(0x1c8)],'data':{'unitID':this[_0x146027(0x224)]}},this[_0x146027(0x224)]));}['startFollowing'](){var _0x1fad91=_0x4211e9;this['_status']==='not-following'&&(this[_0x1fad91(0x223)][_0x1fad91(0x19c)]('following'),this[_0x1fad91(0x1e9)]());}[_0x4211e9(0x1aa)](){var _0x3ec898=_0x4211e9;this[_0x3ec898(0x237)]===_0x3ec898(0x1a8)&&this[_0x3ec898(0x214)]();}[_0x4211e9(0x199)](_0xeb88da){var _0xc01076=_0x4211e9;const {presenter:_0x11d950}=_0xeb88da[_0xc01076(0x1a2)],_0x1425e3=this[_0xc01076(0x1f1)][_0xc01076(0x22c)]();this[_0xc01076(0x1d2)]=_0x11d950,_0x11d950===_0x1425e3?(this[_0xc01076(0x214)](),this[_0xc01076(0x205)]()):this[_0xc01076(0x237)]!==_0xc01076(0x202)&&(this['_stopPresenting'](),this[_0xc01076(0x1e9)]());}[_0x4211e9(0x18b)](){var _0x1a20c2=_0x4211e9;const _0x597ffd={'eventID':_0x5c2773[_0x1a20c2(0x1cd)]};this[_0x1a20c2(0x1f1)][_0x1a20c2(0x1f9)](_0x597ffd,this[_0x1a20c2(0x224)]);}[_0x4211e9(0x22d)](){var _0x53fa31=_0x4211e9;this[_0x53fa31(0x1d2)]=null,this['_status']!==_0x53fa31(0x19f)&&this[_0x53fa31(0x1ff)]();}['_handleNewChangeSets'](_0x520984){var _0x3aadfb=_0x4211e9;if(this['_status']===_0x3aadfb(0x1a8)&&this[_0x3aadfb(0x1d2)]===_0x520984['data']['memberID']){const _0x4e81e4=_0x8769f7(_0x520984[_0x3aadfb(0x1a2)])[_0x3aadfb(0x225)]['reverse']()[_0x3aadfb(0x21f)](_0x48b215=>_0x48b215['id']===_0x20e50f['id']);if(_0x4e81e4){const _0x1701b5=_0x4e81e4['params'][_0x3aadfb(0x1d7)],_0x5183fd=_0x4e81e4[_0x3aadfb(0x1f8)][_0x3aadfb(0x192)]['id'];setTimeout(()=>{var _0x752db1=_0x3aadfb;this[_0x752db1(0x20a)][_0x752db1(0x1be)](_0x304fe7['id'],{'unitId':_0x1701b5,'subUnitId':_0x5183fd},{'fromCollab':!0x0});});}}}[_0x4211e9(0x205)](){var _0x5f571b=_0x4211e9;this[_0x5f571b(0x223)][_0x5f571b(0x19c)](_0x5f571b(0x19f));const _0x30229e=new Map(),_0x5e6dc5=this['_commandDisposable']=new _0x30a3f7();_0x5e6dc5[_0x5f571b(0x1fb)](_0x1905e1(()=>{var _0x304607=_0x5f571b;_0x30229e[_0x304607(0x1ce)](_0x39d2d5=>_0x39d2d5[_0x304607(0x19b)]()),_0x30229e['clear']();})),_0x5e6dc5[_0x5f571b(0x1fb)](this[_0x5f571b(0x20a)]['onCommandExecuted'](_0x50e719=>{var _0x38f1d9=_0x5f571b,_0x33ef18;if(_0x50e719[_0x38f1d9(0x189)]!==_0x3ef350['OPERATION']||!this['_liveShareService'][_0x38f1d9(0x20e)](_0x50e719['id']))return;const {id:_0x2f4eb8}=_0x50e719;let _0x422ceb;_0x30229e[_0x38f1d9(0x1c3)](_0x2f4eb8)?_0x422ceb=_0x30229e['get'](_0x2f4eb8):(_0x422ceb=new _0x4c84d6(),_0x30229e[_0x38f1d9(0x18d)](_0x2f4eb8,_0x422ceb),_0x422ceb['pipe'](_0xee6e22((_0x33ef18=this[_0x38f1d9(0x1e3)]['getConfig'](xe))!=null?_0x33ef18:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38f1d9(0x222)](_0x2513c3=>{var _0x4b29e9=_0x38f1d9;this['_collabSession']['send']({'eventID':_0x5c2773[_0x4b29e9(0x1e6)],'data':{'unitID':this[_0x4b29e9(0x224)],'operations':{[_0x2513c3['id']]:{'id':_0x2513c3['id'],'params':JSON[_0x4b29e9(0x18a)](_0x2513c3['params'])}}}},this[_0x4b29e9(0x224)]);})),_0x422ceb[_0x38f1d9(0x19c)](_0x50e719);})),this[_0x5f571b(0x239)][_0x5f571b(0x227)](this[_0x5f571b(0x224)])[_0x5f571b(0x1ce)](_0x116247=>this[_0x5f571b(0x1f1)][_0x5f571b(0x1f9)]({'eventID':_0x5c2773['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5f571b(0x224)],'operations':{[_0x116247['id']]:{'id':_0x116247['id'],'params':JSON[_0x5f571b(0x18a)](_0x116247['params'])}}}},this[_0x5f571b(0x224)]));}[_0x4211e9(0x1c4)](){var _0xc525b4=_0x4211e9,_0x7e594e;this[_0xc525b4(0x223)][_0xc525b4(0x19c)](_0xc525b4(0x1de)),(_0x7e594e=this[_0xc525b4(0x21d)])==null||_0x7e594e[_0xc525b4(0x1ab)](),this[_0xc525b4(0x21d)]=null;}[_0x4211e9(0x1e9)](){var _0x24c625=_0x4211e9,_0x4ef12e;(_0x4ef12e=this[_0x24c625(0x21d)])==null||_0x4ef12e[_0x24c625(0x1ab)](),this['_status$'][_0x24c625(0x19c)]('following');}[_0x4211e9(0x1ff)](){var _0x4346af=_0x4211e9,_0x5463f7;this['_status$'][_0x4346af(0x19c)](_0x4346af(0x1de)),(_0x5463f7=this['_commandDisposable'])==null||_0x5463f7[_0x4346af(0x1ab)](),this[_0x4346af(0x21d)]=null;}[_0x4211e9(0x214)](){var _0x5b291d=_0x4211e9,_0x2bbf12;this['_status$'][_0x5b291d(0x19c)](_0x5b291d(0x202)),(_0x2bbf12=this['_commandDisposable'])==null||_0x2bbf12[_0x5b291d(0x1ab)]();}['_handleOperation'](_0x2e4c14){var _0x13dfb2=_0x4211e9;if(['presenting',_0x13dfb2(0x202),'offline'][_0x13dfb2(0x21b)](this['_status'])||!_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]||_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x194)]===this['_collabSession'][_0x13dfb2(0x22c)]())return;this[_0x13dfb2(0x237)]===_0x13dfb2(0x1de)&&this[_0x13dfb2(0x1e9)]();const _0x56b58a=_0x2e4c14[_0x13dfb2(0x1a2)][_0x13dfb2(0x1ec)];Object['values'](_0x56b58a)[_0x13dfb2(0x1ce)](_0x5676e4=>{var _0x43ace8=_0x13dfb2;this[_0x43ace8(0x20a)]['executeCommand'](_0x5676e4['id'],_0x5676e4[_0x43ace8(0x1f8)]?JSON[_0x43ace8(0x21a)](_0x5676e4[_0x43ace8(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4211e9(0x191)](){var _0x3e3ec6=_0x4211e9,_0x333f8b;this[_0x3e3ec6(0x223)][_0x3e3ec6(0x19c)](_0x3e3ec6(0x203)),(_0x333f8b=this[_0x3e3ec6(0x21d)])==null||_0x333f8b[_0x3e3ec6(0x1ab)]();}[_0x4211e9(0x1e8)](){var _0x851a74=_0x4211e9;this[_0x851a74(0x223)][_0x851a74(0x19c)](_0x851a74(0x1de)),this[_0x851a74(0x18b)]();}};C=Z([f(0x2,_0x454454),f(0x3,_0x29823e(L)),f(0x4,_0x1f59fb)],C);function ye(){var _0x2407f2=_0x4211e9;const _0x23995e=_0x34ce29(m),_0x1068a7=_0x34ce29(_0x4e4916),_0x24aa99=_0x5eb324(()=>_0x1068a7['getCurrentTypeOfUnit$'](_0x2e04d5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5baab2,_0x5df1cc]=_0x56e9c1(null),[_0x2557c7,_0x2a7937]=_0x56e9c1(h[_0x2407f2(0x20c)]),_0xe52120=_0x4b76f7(null);return _0x5005fd(()=>(_0x24aa99&&_0x23995e['getLiveShareCoordinator'](_0x24aa99[_0x2407f2(0x22f)]())['then'](_0x165de8=>{var _0x952f43=_0x2407f2;_0x5df1cc(_0x165de8),_0xe52120[_0x952f43(0x1f2)]=_0x165de8[_0x952f43(0x1fc)][_0x952f43(0x222)](_0xc6c851=>{_0x2a7937(_0xc6c851);});}),()=>{var _0x17518f=_0x2407f2,_0x27c3a4;(_0x27c3a4=_0xe52120[_0x17518f(0x1f2)])==null||_0x27c3a4[_0x17518f(0x197)](),_0xe52120[_0x17518f(0x1f2)]=null;}),[_0x24aa99,_0x23995e]),_0x5baab2?_0x478ffe(_0x3ee376,{'align':'end','disabled':_0x2557c7===h[_0x2407f2(0x1a7)],'className':_0x2407f2(0x1df),'overlay':_0x478ffe(Re,{'status':_0x2557c7,'coordinator':_0x5baab2}),'children':_0x478ffe(_0x2407f2(0x1ed),{'className':_0x3fe52f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2557c7===h[_0x2407f2(0x1a7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2557c7!==h[_0x2407f2(0x1a7)]}),'type':_0x2407f2(0x1ed),'children':_0x478ffe(B,{'className':_0x2407f2(0x1a4)})})}):null;}function Re(_0x28b43b){var _0x1e8385=_0x4211e9;const {status:_0x43370e,coordinator:_0x1e3176}=_0x28b43b;switch(_0x43370e){case h['IDLE']:return _0x478ffe(Pe,{'coordinator':_0x1e3176});case h['FOLLOWING']:return _0x478ffe(Ae,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1f0)]:return _0x478ffe(Te,{'coordinator':_0x1e3176});case h[_0x1e8385(0x1a7)]:return _0x478ffe(Fe,{});case h[_0x1e8385(0x20b)]:return _0x478ffe($e,{'coordinator':_0x1e3176});default:return null;}}function Pe(_0x28ad3c){var _0x5705f2=_0x4211e9;const {coordinator:_0x35452d}=_0x28ad3c;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5705f2(0x1a0),{'className':_0x5705f2(0x1d9),'children':_0x5705f2(0x215)}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x35452d[_0x5705f2(0x216)](),'children':_0x5705f2(0x1cb)})]});}function Ae(_0x2e52cb){var _0x11a763=_0x4211e9;const {coordinator:_0x59c989}=_0x2e52cb;return _0x15f696(_0xc7295,{'children':[_0x478ffe('div',{'className':_0x11a763(0x1d9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x478ffe(_0x2ec823,{'onClick':()=>_0x59c989[_0x11a763(0x1aa)](),'children':_0x11a763(0x200)})]});}function Te(_0x302eb9){var _0x5325a9=_0x4211e9;const {coordinator:_0x2e77f6}=_0x302eb9;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x5325a9(0x1a0),{'className':_0x5325a9(0x1d9),'children':_0x5325a9(0x198)}),_0x478ffe(_0x2ec823,{'variant':_0x5325a9(0x1bd),'onClick':()=>_0x2e77f6[_0x5325a9(0x1db)](),'children':_0x5325a9(0x190)})]});}function $e(_0xbfdfdd){var _0x1ccb70=_0x4211e9;const {coordinator:_0x5a3578}=_0xbfdfdd;return _0x15f696(_0xc7295,{'children':[_0x478ffe(_0x1ccb70(0x1a0),{'className':_0x1ccb70(0x1d9),'children':_0x1ccb70(0x19e)}),_0x478ffe(_0x2ec823,{'variant':_0x1ccb70(0x208),'onClick':()=>_0x5a3578[_0x1ccb70(0x209)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x2689e4=_0x4211e9;return _0x478ffe(_0xc7295,{'children':_0x2689e4(0x1ea)});}var He=Object[_0x4211e9(0x1b6)],je=(_0x5e2ab2,_0x108636,_0x1a0910,_0x3bf9b8)=>{var _0x4fcc65=_0x4211e9;for(var _0x588d08=_0x3bf9b8>0x1?void 0x0:_0x3bf9b8?He(_0x108636,_0x1a0910):_0x108636,_0x30d11c=_0x5e2ab2[_0x4fcc65(0x228)]-0x1,_0x2d6263;_0x30d11c>=0x0;_0x30d11c--)(_0x2d6263=_0x5e2ab2[_0x30d11c])&&(_0x588d08=_0x2d6263(_0x588d08)||_0x588d08);return _0x588d08;},T=(_0x648934,_0x410285)=>(_0x584ae5,_0x193f02)=>_0x410285(_0x584ae5,_0x193f02,_0x648934);let I=class extends _0x4178b{constructor(_0x10a498,_0x30fc7b){var _0x1b4d22=_0x4211e9;super(),this['_injector']=_0x10a498,this['_uiPartsService']=_0x30fc7b,this[_0x1b4d22(0x20d)]();}[_0x4211e9(0x20d)](){var _0x1108ff=_0x4211e9;this[_0x1108ff(0x1bb)](this[_0x1108ff(0x1d3)][_0x1108ff(0x1d6)](_0x37ef0c[_0x1108ff(0x1ba)],()=>_0x36c2e2(ye,this[_0x1108ff(0x1e0)])));}};I=je([T(0x0,_0x29823e(_0x4cbc28)),T(0x1,_0x4b1b8f)],I);const Ue=_0x4211e9(0x20f),$={};var Ve=Object[_0x4211e9(0x1b6)],Me=(_0x365cb2,_0x32fad2,_0x596884,_0x1a7da2)=>{var _0x3c2b21=_0x4211e9;for(var _0x35b54e=_0x1a7da2>0x1?void 0x0:_0x1a7da2?Ve(_0x32fad2,_0x596884):_0x32fad2,_0x16574b=_0x365cb2[_0x3c2b21(0x228)]-0x1,_0x1c2e71;_0x16574b>=0x0;_0x16574b--)(_0x1c2e71=_0x365cb2[_0x16574b])&&(_0x35b54e=_0x1c2e71(_0x35b54e)||_0x35b54e);return _0x35b54e;},ke=(_0x195866,_0x37d115)=>(_0xd4ffa3,_0x4ee49f)=>_0x37d115(_0xd4ffa3,_0x4ee49f,_0x195866);let b=class extends _0x4178b{constructor(_0x150931){var _0xb9ac09=_0x4211e9;super(),this[_0xb9ac09(0x239)]=_0x150931,this[_0xb9ac09(0x193)]();}['_init'](){var _0x18a05e=_0x4211e9;[_0x4df299['id'],_0x346916['id'],_0x304fe7['id']][_0x18a05e(0x1ce)](_0x310109=>{var _0x2326f=_0x18a05e;this[_0x2326f(0x1bb)](this['_liveShareService'][_0x2326f(0x234)](_0x310109));});}};b=Me([ke(0x0,_0x29823e(L))],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3216d4,_0x33da56,_0x3cb493)=>_0x33da56 in _0x3216d4?Ge(_0x3216d4,_0x33da56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb493}):_0x3216d4[_0x33da56]=_0x3cb493,Be=(_0x4d11cf,_0x48d827,_0x2eacd9,_0x56d5dd)=>{var _0x659cb7=_0x4211e9;for(var _0x534d68=_0x56d5dd>0x1?void 0x0:_0x56d5dd?We(_0x48d827,_0x2eacd9):_0x48d827,_0x4f18fe=_0x4d11cf[_0x659cb7(0x228)]-0x1,_0x75b698;_0x4f18fe>=0x0;_0x4f18fe--)(_0x75b698=_0x4d11cf[_0x4f18fe])&&(_0x534d68=_0x75b698(_0x534d68)||_0x534d68);return _0x534d68;},F=(_0x5721ca,_0x5500bb)=>(_0x1b7fae,_0x2e5217)=>_0x5500bb(_0x1b7fae,_0x2e5217,_0x5721ca),J=(_0x4948a8,_0x2e1311,_0x1c3400)=>Ye(_0x4948a8,typeof _0x2e1311!=_0x4211e9(0x207)?_0x2e1311+'':_0x2e1311,_0x1c3400);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x119c72{constructor(_0x542dab=$,_0x6edcd4,_0x125cb8){var _0xbe4892=_0x4211e9;super(),this['_config']=_0x542dab,this[_0xbe4892(0x1e0)]=_0x6edcd4,this['_configService']=_0x125cb8;const {..._0x2f92a2}=_0x147e1f({},$,this['_config']);this[_0xbe4892(0x1e3)][_0xbe4892(0x19a)](Ue,_0x2f92a2);}[_0x4211e9(0x1e4)](){var _0x5c78c5=_0x4211e9;_0x16e757(this['_injector'],_0x3cdfd6([[L],[m],[b],[I]],this[_0x5c78c5(0x1f6)]['override'])),_0x108acc(this[_0x5c78c5(0x1e0)],[[b]]);}[_0x4211e9(0x1b9)](){var _0x22bc9e=_0x4211e9;_0x108acc(this[_0x22bc9e(0x1e0)],[[I]]);}};J(O,_0x4211e9(0x189),_0x2e04d5[_0x4211e9(0x217)]),J(O,_0x4211e9(0x21c),Ze),O=Be([_0x462562(_0x7fa5df),F(0x1,_0x29823e(_0x4cbc28)),F(0x2,_0x454454)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0xa07ab4=_0x178e;(function(_0x480754,_0x3be388){var _0x4a7549=_0x178e,_0x2fc041=_0x480754();while(!![]){try{var _0x156529=parseInt(_0x4a7549(0x109))/0x1*(parseInt(_0x4a7549(0x111))/0x2)+-parseInt(_0x4a7549(0xfc))/0x3*(parseInt(_0x4a7549(0x9c))/0x4)+-parseInt(_0x4a7549(0x90))/0x5+parseInt(_0x4a7549(0xaf))/0x6*(-parseInt(_0x4a7549(0xb0))/0x7)+-parseInt(_0x4a7549(0x112))/0x8*(-parseInt(_0x4a7549(0x123))/0x9)+-parseInt(_0x4a7549(0xe0))/0xa+parseInt(_0x4a7549(0xe1))/0xb;if(_0x156529===_0x3be388)break;else _0x2fc041['push'](_0x2fc041['shift']());}catch(_0x4076fc){_0x2fc041['push'](_0x2fc041['shift']());}}}(_0x185c,0x9922c));var q=Object[_0xa07ab4(0x86)],z=(_0x43f17a,_0xf41fd5,_0x342756)=>_0xf41fd5 in _0x43f17a?q(_0x43f17a,_0xf41fd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x342756}):_0x43f17a[_0xf41fd5]=_0x342756,d=(_0x3e8aab,_0x5f198a,_0x1e8cd6)=>z(_0x3e8aab,typeof _0x5f198a!=_0xa07ab4(0x10e)?_0x5f198a+'':_0x5f198a,_0x1e8cd6);import{Disposable as _0x1e6e0c,toDisposable as _0x5182ea,IUniverInstanceService as _0x1607da,Inject as _0x354fd2,Injector as _0x4a1d22,IConfigService as _0x5b22d7,ICommandService as _0x5e2b20,RxDisposable as _0x25f604,UniverInstanceType as _0x511684,DisposableCollection as _0x5dbdb9,CommandType as _0x3ece4a,DependentOn as _0x26a32a,Plugin as _0x347543,merge as _0x579cd2,registerDependencies as _0x5d09aa,mergeOverrideWithDependencies as _0x378502,touchDependencies as _0x5c5361}from'@univerjs/core';import{useDependency as _0x56de89,useObservable as _0x338148,IUIPartsService as _0x1708ce,BuiltInUIPart as _0x1cc547,connectInjector as _0x53741c}from'@univerjs/ui';import{jsx as _0x1261c7,jsxs as _0x54d46f,Fragment as _0x1d6819}from'react/jsx-runtime';import{Dropdown as _0x247715,clsx as _0x2c649c,Button as _0x1aa6e9}from'@univerjs/design';import{forwardRef as _0x39c36a,useRef as _0x105803,createElement as _0x301253,useState as _0x2b8a00,useEffect as _0x9070dc}from'react';import{CollaborationEvent as _0x4646a8,parseProtocolChangeset as _0x29dff5}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bb6ab,SessionStatus as _0x3f3bf1,UniverCollaborationClientPlugin as _0xc10544}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3659ed,SetWorksheetActiveOperation as _0xa53257}from'@univerjs/sheets';function _0x185c(){var _0x328187=['displayName','next','You\x27are\x20offline.','_entities','440214YMiehn','49qUNlNQ','div','Start','hasOwnProperty','UNIVER_SHEET','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','toString','LiveShareIcon','defIds','map','presenting','stopPresenting','_commandDisposable','_status','_configService','registerComponent','add','not-following','getMemberID','complete','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','subscribe','univer-size-4','trim','_liveShareService','getCurrentTypeOfUnit$','_presenter','type','LIVESHARE_NEW_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','_startPresenting','NEW_CHANGESETS','OFFLINE','shouldShareOperation','following','disposeWithMe','clear','icon','_init','getOwnPropertySymbols','1em','prototype','_handleNewChangeSets','PRESENTING','default','8922870Hggmie','15726359yciAuk','concat','evenodd','_stopFollowing','_startFollowing','_handleOnline','_config','_handleOperation','unitId','stringify','_sharedOperations','setConfig','params','random','status$','colorChannel1','values','univerjs-icon\x20univerjs-icon-','You\x27re\x20presenting\x20the\x20document','requireSession','fill','pipe','memberID','end','unsubscribe','entries','_univerInstanceService','3OyDMyk','0\x200\x2017\x2017','getLiveShareCoordinator','string','extend','apply','live-share-icon','http://www.w3.org/2000/svg','_injector','ONLINE','registerInitialStateReporter','currentColor','current','68388TDanxJ','has','attrs','FOLLOWING','tryStartPresenting','symbol','_status$','indexOf','22XJMXXC','8jRUmtE','from','_collabSessionService','idle','tag','LIVESHARE_TERMINATE','className','_commandService','onRendered','dispose','asObservable','use','offline','executeCommand','stopFollowing','mask','length','6241608QTXNZm','find','dispose$','children','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','getInitialStates','mutations','live-share.config','delete','getConfig','_handleTerminate','_reporters','HEADER_MENU','then','set','_unitID','Start\x20following','defineProperty','onCommandExecuted','registerSharedOperation','getUnitId','includes','forEach','propertyIsEnumerable','path','presenter','operations','274180szcHJS','call','idSuffix','onStarting','_beIdle','get','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','defs','send','_collabSession','You\x27re\x20following\x20the\x20presenter','3149996wcEpKJ','replace','xlink:href','override','LIVESHARE_OPERATION','_mountLiveShare','_uiPartsService','OPERATION','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','_startLiveShareCoordinator','createInstance','sessionStatus$','assign','data'];_0x185c=function(){return _0x328187;};return _0x185c();}import{BehaviorSubject as _0x45b7bf,Subject as _0x14606f}from'rxjs';import{takeUntil as _0x172f19,throttleTime as _0x4451f8}from'rxjs/operators';import{SetZoomRatioOperation as _0x5d01a1,SetScrollOperation as _0x125601}from'@univerjs/sheets-ui';var c=function(){var _0x150579=_0xa07ab4;return c=Object[_0x150579(0xa9)]||function(_0x2bd269){var _0x1eac49=_0x150579;for(var _0x57abd0,_0x22eb1f=0x1,_0x4cd473=arguments[_0x1eac49(0x122)];_0x22eb1f<_0x4cd473;_0x22eb1f++){_0x57abd0=arguments[_0x22eb1f];for(var _0x38c76b in _0x57abd0)Object[_0x1eac49(0xdc)][_0x1eac49(0xb3)]['call'](_0x57abd0,_0x38c76b)&&(_0x2bd269[_0x38c76b]=_0x57abd0[_0x38c76b]);}return _0x2bd269;},c[_0x150579(0x101)](this,arguments);},Oe=function(_0x2695d2,_0x3d40b1){var _0x4d578f=_0xa07ab4,_0x1c987b={};for(var _0x412b47 in _0x2695d2)Object[_0x4d578f(0xdc)][_0x4d578f(0xb3)][_0x4d578f(0x91)](_0x2695d2,_0x412b47)&&_0x3d40b1[_0x4d578f(0x110)](_0x412b47)<0x0&&(_0x1c987b[_0x412b47]=_0x2695d2[_0x412b47]);if(_0x2695d2!=null&&typeof Object[_0x4d578f(0xda)]=='function'){for(var _0x1c00d6=0x0,_0x412b47=Object[_0x4d578f(0xda)](_0x2695d2);_0x1c00d6<_0x412b47[_0x4d578f(0x122)];_0x1c00d6++)_0x3d40b1['indexOf'](_0x412b47[_0x1c00d6])<0x0&&Object[_0x4d578f(0xdc)][_0x4d578f(0x8c)][_0x4d578f(0x91)](_0x2695d2,_0x412b47[_0x1c00d6])&&(_0x1c987b[_0x412b47[_0x1c00d6]]=_0x2695d2[_0x412b47[_0x1c00d6]]);}return _0x1c987b;},W=_0x39c36a(function(_0x7799a,_0x55085b){var _0x22c85b=_0xa07ab4,_0x4e97d1=_0x7799a[_0x22c85b(0xd8)],_0x10df0e=_0x7799a['id'],_0x18ae91=_0x7799a['className'],_0x4025dc=_0x7799a[_0x22c85b(0x100)],_0x5aebe1=Oe(_0x7799a,[_0x22c85b(0xd8),'id',_0x22c85b(0x118),_0x22c85b(0x100)]),_0x56e8f0=_0x22c85b(0xf2)[_0x22c85b(0xe2)](_0x10df0e,'\x20')[_0x22c85b(0xe2)](_0x18ae91||'')[_0x22c85b(0xc9)](),_0x37b1f6=_0x105803('_'['concat'](Ne()));return Y(_0x4e97d1,''['concat'](_0x10df0e),{'defIds':_0x4e97d1[_0x22c85b(0xb9)],'idSuffix':_0x37b1f6[_0x22c85b(0x108)]},c({'ref':_0x55085b,'className':_0x56e8f0},_0x5aebe1),_0x4025dc);});function Y(_0x1405bc,_0x71b8e2,_0x4e8e82,_0x43c2e5,_0x176f8f){var _0x489221=_0xa07ab4;return _0x301253(_0x1405bc[_0x489221(0x116)],c(c({'key':_0x71b8e2},Ee(_0x1405bc,_0x4e8e82,_0x176f8f)),_0x43c2e5),(we(_0x1405bc,_0x4e8e82)[_0x489221(0x126)]||[])[_0x489221(0xba)](function(_0x26be3f,_0x50f368){var _0x4a7bf8=_0x489221;return Y(_0x26be3f,''[_0x4a7bf8(0xe2)](_0x71b8e2,'-')[_0x4a7bf8(0xe2)](_0x1405bc['tag'],'-')[_0x4a7bf8(0xe2)](_0x50f368),_0x4e8e82,void 0x0,_0x176f8f);}));}function Ee(_0x23366f,_0x92b96b,_0x4380b9){var _0x3f63a1=_0xa07ab4,_0x5f0c85=c({},_0x23366f['attrs']);_0x4380b9!=null&&_0x4380b9[_0x3f63a1(0xf0)]&&_0x5f0c85[_0x3f63a1(0xf5)]===_0x3f63a1(0xf0)&&(_0x5f0c85[_0x3f63a1(0xf5)]=_0x4380b9[_0x3f63a1(0xf0)]),_0x23366f['tag']===_0x3f63a1(0x121)&&_0x5f0c85['id']&&(_0x5f0c85['id']=_0x5f0c85['id']+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)['forEach'](function(_0x59063c){var _0x21380c=_0x3f63a1,_0x18c68f=_0x59063c[0x0],_0x121a36=_0x59063c[0x1];_0x18c68f===_0x21380c(0x121)&&typeof _0x121a36=='string'&&(_0x5f0c85[_0x18c68f]=_0x121a36[_0x21380c(0x9d)](/url\(#(.*)\)/,_0x21380c(0x128)[_0x21380c(0xe2)](_0x92b96b[_0x21380c(0x92)],')')));});var _0x4b9124=_0x92b96b[_0x3f63a1(0xb9)];return!_0x4b9124||_0x4b9124['length']===0x0||(_0x23366f[_0x3f63a1(0x116)]===_0x3f63a1(0x11d)&&_0x5f0c85[_0x3f63a1(0x9e)]&&(_0x5f0c85[_0x3f63a1(0x9e)]=_0x5f0c85[_0x3f63a1(0x9e)]+_0x92b96b[_0x3f63a1(0x92)]),Object[_0x3f63a1(0xfa)](_0x5f0c85)[_0x3f63a1(0x8b)](function(_0xfb87aa){var _0x51ac30=_0x3f63a1,_0x5985e7=_0xfb87aa[0x0],_0x1e2b58=_0xfb87aa[0x1];typeof _0x1e2b58=='string'&&(_0x5f0c85[_0x5985e7]=_0x1e2b58['replace'](/url\(#(.*)\)/,'url(#$1'[_0x51ac30(0xe2)](_0x92b96b[_0x51ac30(0x92)],')')));})),_0x5f0c85;}function we(_0x3ccbfb,_0x1eef2c){var _0x4d0b3b=_0xa07ab4,_0x9fdb6a,_0x32a12a=_0x1eef2c[_0x4d0b3b(0xb9)];return!_0x32a12a||_0x32a12a['length']===0x0?_0x3ccbfb:_0x3ccbfb['tag']===_0x4d0b3b(0x98)&&(!((_0x9fdb6a=_0x3ccbfb[_0x4d0b3b(0x126)])===null||_0x9fdb6a===void 0x0)&&_0x9fdb6a[_0x4d0b3b(0x122)])?c(c({},_0x3ccbfb),{'children':_0x3ccbfb['children'][_0x4d0b3b(0xba)](function(_0x2ebaaa){var _0x2e59db=_0x4d0b3b;return typeof _0x2ebaaa[_0x2e59db(0x10b)]['id']==_0x2e59db(0xff)&&_0x32a12a&&_0x32a12a[_0x2e59db(0x8a)](_0x2ebaaa[_0x2e59db(0x10b)]['id'])?c(c({},_0x2ebaaa),{'attrs':c(c({},_0x2ebaaa['attrs']),{'id':_0x2ebaaa[_0x2e59db(0x10b)]['id']+_0x1eef2c['idSuffix']})}):_0x2ebaaa;})}):_0x3ccbfb;}function Ne(){var _0x2c7211=_0xa07ab4;return Math[_0x2c7211(0xee)]()[_0x2c7211(0xb7)](0x24)['substring'](0x2,0x8);}W[_0xa07ab4(0xab)]='UniverIcon';var Ce={'tag':_0xa07ab4(0xd0),'attrs':{'xmlns':_0xa07ab4(0x103),'fill':'none','viewBox':_0xa07ab4(0xfd),'width':_0xa07ab4(0xdb),'height':_0xa07ab4(0xdb)},'children':[{'tag':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0x8d),'attrs':{'fill':_0xa07ab4(0x107),'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':_0xa07ab4(0xe3),'clipRule':'evenodd'}}]},B=_0x39c36a(function(_0xe0d440,_0x206471){var _0x5d88f4=_0xa07ab4;return _0x301253(W,Object[_0x5d88f4(0xa9)]({},_0xe0d440,{'id':_0x5d88f4(0x102),'ref':_0x206471,'icon':Ce}));});B['displayName']=_0xa07ab4(0xb8);class L extends _0x1e6e0c{constructor(){var _0x1cdf2e=_0xa07ab4;super(...arguments),d(this,_0x1cdf2e(0xeb),new Set()),d(this,_0x1cdf2e(0x80),new Set());}[_0xa07ab4(0x88)](_0x3dd6fe){var _0xd2220=_0xa07ab4;return this[_0xd2220(0xeb)][_0xd2220(0xc1)](_0x3dd6fe),_0x5182ea(()=>this[_0xd2220(0xeb)]['delete'](_0x3dd6fe));}[_0xa07ab4(0x106)](_0x5ead55){var _0x1e73a0=_0xa07ab4;return this[_0x1e73a0(0x80)]['add'](_0x5ead55),_0x5182ea(()=>this[_0x1e73a0(0x80)][_0x1e73a0(0x7d)](_0x5ead55));}[_0xa07ab4(0xd4)](_0x47a6b2){var _0xb4dda1=_0xa07ab4;return this[_0xb4dda1(0xeb)][_0xb4dda1(0x10a)](_0x47a6b2);}[_0xa07ab4(0x129)](_0x33279a){var _0x2fe9c9=_0xa07ab4;return Array[_0x2fe9c9(0x113)](this[_0x2fe9c9(0x80)])[_0x2fe9c9(0xba)](_0x2da1ca=>_0x2da1ca(_0x33279a));}}var De=Object[_0xa07ab4(0xb5)],Z=(_0x45573c,_0x31e072,_0x2bdd12,_0x1be060)=>{for(var _0x251bbc=_0x1be060>0x1?void 0x0:_0x1be060?De(_0x31e072,_0x2bdd12):_0x31e072,_0x2e1bc0=_0x45573c['length']-0x1,_0x213241;_0x2e1bc0>=0x0;_0x2e1bc0--)(_0x213241=_0x45573c[_0x2e1bc0])&&(_0x251bbc=_0x213241(_0x251bbc)||_0x251bbc);return _0x251bbc;},f=(_0x1cb94e,_0x5daaa0)=>(_0x4f76c9,_0x895511)=>_0x5daaa0(_0x4f76c9,_0x895511,_0x1cb94e);let m=class extends _0x25f604{constructor(_0x28678a,_0x5bdf3c,_0x1d2c01){var _0x42849b=_0xa07ab4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x28678a,this[_0x42849b(0x104)]=_0x5bdf3c,this[_0x42849b(0x114)]=_0x1d2c01,this[_0x42849b(0xd9)]());}async[_0xa07ab4(0xfe)](_0x41aea6){var _0x18ba81=_0xa07ab4;return this[_0x18ba81(0xae)]['has'](_0x41aea6)||await this[_0x18ba81(0xa6)](_0x41aea6),this[_0x18ba81(0xae)][_0x18ba81(0x95)](_0x41aea6);}[_0xa07ab4(0xd9)](){var _0x1b88bb=_0xa07ab4;this[_0x1b88bb(0xfb)][_0x1b88bb(0xc5)](_0x511684['UNIVER_SHEET'])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](async _0x19f8e2=>{var _0xb3b5ea=_0x1b88bb;const _0x6f1295=_0x19f8e2['getUnitId']();this[_0xb3b5ea(0xae)]['has'](_0x6f1295)||this['_startLiveShareCoordinator'](_0x6f1295);}),this[_0x1b88bb(0xfb)]['getTypeOfUnitDisposed$'](_0x511684[_0x1b88bb(0xb4)])[_0x1b88bb(0xf6)](_0x172f19(this[_0x1b88bb(0x125)]))[_0x1b88bb(0xc7)](_0x18f75f=>{var _0x1cae7=_0x1b88bb;const _0x156d91=_0x18f75f[_0x1cae7(0x89)](),_0x2b30ee=this[_0x1cae7(0xae)][_0x1cae7(0x95)](_0x156d91);_0x2b30ee==null||_0x2b30ee['dispose']();});}async[_0xa07ab4(0xa6)](_0xf7a04e){var _0x1d65a8=_0xa07ab4;const _0x43cfdb=await this[_0x1d65a8(0x114)][_0x1d65a8(0xf4)](_0xf7a04e),_0x102fca=this[_0x1d65a8(0x104)][_0x1d65a8(0xa7)](C,_0xf7a04e,_0x43cfdb);return _0x102fca['init'](),this['_entities'][_0x1d65a8(0x83)](_0xf7a04e,_0x102fca),_0x102fca;}};m=Z([f(0x0,_0x1607da),f(0x1,_0x354fd2(_0x4a1d22)),f(0x2,_0x354fd2(_0x3bb6ab))],m);var h=(_0x467b57=>(_0x467b57[_0xa07ab4(0xd3)]='offline',_0x467b57['IDLE']=_0xa07ab4(0x115),_0x467b57['FOLLOWING']=_0xa07ab4(0xd5),_0x467b57['NOT_FOLLOWING']=_0xa07ab4(0xc2),_0x467b57[_0xa07ab4(0xde)]=_0xa07ab4(0xbb),_0x467b57))(h||{});const xe=_0xa07ab4(0xa4),Le=0xc8;let C=class extends _0x25f604{constructor(_0x318000,_0x4062bd,_0x5cb229,_0x35e5ad,_0x34c708){var _0x4cca25=_0xa07ab4;super(),d(this,_0x4cca25(0x10f),new _0x45b7bf(_0x4cca25(0x115))),d(this,'status$',this[_0x4cca25(0x10f)][_0x4cca25(0x11c)]()),d(this,_0x4cca25(0xd9),!0x1),d(this,_0x4cca25(0xbd),null),d(this,_0x4cca25(0xcc),null),(this[_0x4cca25(0x84)]=_0x318000,this[_0x4cca25(0x9a)]=_0x4062bd,this[_0x4cca25(0xbf)]=_0x5cb229,this['_liveShareService']=_0x35e5ad,this['_commandService']=_0x34c708);}get[_0xa07ab4(0xbe)](){return this['_status$']['getValue']();}[_0xa07ab4(0x11b)](){var _0x3b59a7=_0xa07ab4,_0x3400a7;(_0x3400a7=this['_commandDisposable'])==null||_0x3400a7['dispose'](),this[_0x3b59a7(0x10f)][_0x3b59a7(0xac)]('idle'),this['_status$'][_0x3b59a7(0xc4)]();}['init'](){var _0x165e43=_0xa07ab4;this[_0x165e43(0xd9)]||(this[_0x165e43(0xd9)]=!0x0,this['_collabSession'][_0x165e43(0xa8)][_0x165e43(0xf6)](_0x172f19(this['dispose$']))[_0x165e43(0xc7)](_0xdff43=>{var _0x536c3c=_0x165e43;switch(_0xdff43){case _0x3f3bf1[_0x536c3c(0xd3)]:this['_handleOffline']();break;case _0x3f3bf1[_0x536c3c(0x105)]:this[_0x536c3c(0xe6)]();break;}}),this[_0x165e43(0x9a)]['event$'][_0x165e43(0xf6)](_0x172f19(this[_0x165e43(0x125)]))[_0x165e43(0xc7)](_0x365957=>{var _0x48dfc8=_0x165e43;const {eventID:_0x5342b0}=_0x365957;switch(_0x5342b0){case _0x4646a8[_0x48dfc8(0xce)]:this['_handleNewHost'](_0x365957);break;case _0x4646a8[_0x48dfc8(0xa0)]:this[_0x48dfc8(0xe8)](_0x365957);break;case _0x4646a8[_0x48dfc8(0x117)]:this[_0x48dfc8(0x7f)]();break;case _0x4646a8[_0x48dfc8(0xd2)]:this[_0x48dfc8(0xdd)](_0x365957);break;}}));}[_0xa07ab4(0x10d)](){var _0x2274e7=_0xa07ab4;this[_0x2274e7(0x9a)][_0x2274e7(0x99)]({'eventID':_0x4646a8[_0x2274e7(0xb6)],'data':{'unitID':this[_0x2274e7(0x84)],'userID':this[_0x2274e7(0x9a)][_0x2274e7(0xc3)]()}},this['_unitID']);}[_0xa07ab4(0xbc)](){var _0x5bfb15=_0xa07ab4;this[_0x5bfb15(0xbe)]===_0x5bfb15(0xbb)&&(this[_0x5bfb15(0x10f)][_0x5bfb15(0xac)](_0x5bfb15(0x115)),this['_collabSession'][_0x5bfb15(0x99)]({'eventID':_0x4646a8[_0x5bfb15(0x117)],'data':{'unitID':this[_0x5bfb15(0x84)]}},this[_0x5bfb15(0x84)]));}['startFollowing'](){var _0x3b9604=_0xa07ab4;this['_status']==='not-following'&&(this[_0x3b9604(0x10f)]['next']('following'),this[_0x3b9604(0xe5)]());}[_0xa07ab4(0x120)](){var _0x1e7c40=_0xa07ab4;this[_0x1e7c40(0xbe)]===_0x1e7c40(0xd5)&&this['_stopFollowing']();}['_handleNewHost'](_0x4cf4c3){var _0x45573f=_0xa07ab4;const {presenter:_0x2e9ebf}=_0x4cf4c3[_0x45573f(0xaa)],_0x1d1319=this[_0x45573f(0x9a)][_0x45573f(0xc3)]();this[_0x45573f(0xcc)]=_0x2e9ebf,_0x2e9ebf===_0x1d1319?(this['_stopFollowing'](),this[_0x45573f(0xd1)]()):this[_0x45573f(0xbe)]!==_0x45573f(0xc2)&&(this[_0x45573f(0xa5)](),this['_startFollowing']());}[_0xa07ab4(0x97)](){var _0x33bd98=_0xa07ab4;const _0x24f319={'eventID':_0x4646a8[_0x33bd98(0x96)]};this[_0x33bd98(0x9a)][_0x33bd98(0x99)](_0x24f319,this[_0x33bd98(0x84)]);}[_0xa07ab4(0x7f)](){var _0x3973bb=_0xa07ab4;this[_0x3973bb(0xcc)]=null,this[_0x3973bb(0xbe)]!==_0x3973bb(0xbb)&&this[_0x3973bb(0x94)]();}[_0xa07ab4(0xdd)](_0x281780){var _0xa4fc=_0xa07ab4;if(this['_status']===_0xa4fc(0xd5)&&this[_0xa4fc(0xcc)]===_0x281780['data'][_0xa4fc(0xf7)]){const _0x2942d8=_0x29dff5(_0x281780['data'])[_0xa4fc(0x12a)]['reverse']()[_0xa4fc(0x124)](_0x4e86c5=>_0x4e86c5['id']===_0x3659ed['id']);if(_0x2942d8){const _0x2d9ed6=_0x2942d8[_0xa4fc(0xed)][_0xa4fc(0xe9)],_0x512640=_0x2942d8[_0xa4fc(0xed)]['sheet']['id'];setTimeout(()=>{var _0x2018c2=_0xa4fc;this[_0x2018c2(0x119)][_0x2018c2(0x11f)](_0xa53257['id'],{'unitId':_0x2d9ed6,'subUnitId':_0x512640},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf844b=_0xa07ab4;this[_0xf844b(0x10f)][_0xf844b(0xac)]('presenting');const _0x4bc36b=new Map(),_0x44e209=this['_commandDisposable']=new _0x5dbdb9();_0x44e209['add'](_0x5182ea(()=>{var _0xaaf85c=_0xf844b;_0x4bc36b[_0xaaf85c(0x8b)](_0x3334b4=>_0x3334b4[_0xaaf85c(0xc4)]()),_0x4bc36b[_0xaaf85c(0xd7)]();})),_0x44e209['add'](this['_commandService'][_0xf844b(0x87)](_0x1518a2=>{var _0x594594=_0xf844b,_0x450fcc;if(_0x1518a2[_0x594594(0xcd)]!==_0x3ece4a[_0x594594(0xa3)]||!this[_0x594594(0xca)][_0x594594(0xd4)](_0x1518a2['id']))return;const {id:_0x417f60}=_0x1518a2;let _0x52a748;_0x4bc36b[_0x594594(0x10a)](_0x417f60)?_0x52a748=_0x4bc36b['get'](_0x417f60):(_0x52a748=new _0x14606f(),_0x4bc36b[_0x594594(0x83)](_0x417f60,_0x52a748),_0x52a748[_0x594594(0xf6)](_0x4451f8((_0x450fcc=this[_0x594594(0xbf)][_0x594594(0x7e)](xe))!=null?_0x450fcc:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x594594(0xc7)](_0x4325a9=>{var _0x422250=_0x594594;this[_0x422250(0x9a)][_0x422250(0x99)]({'eventID':_0x4646a8[_0x422250(0xa0)],'data':{'unitID':this[_0x422250(0x84)],'operations':{[_0x4325a9['id']]:{'id':_0x4325a9['id'],'params':JSON[_0x422250(0xea)](_0x4325a9[_0x422250(0xed)])}}}},this[_0x422250(0x84)]);})),_0x52a748[_0x594594(0xac)](_0x1518a2);})),this[_0xf844b(0xca)][_0xf844b(0x129)](this[_0xf844b(0x84)])[_0xf844b(0x8b)](_0x5b788f=>this[_0xf844b(0x9a)][_0xf844b(0x99)]({'eventID':_0x4646a8[_0xf844b(0xa0)],'data':{'unitID':this['_unitID'],'operations':{[_0x5b788f['id']]:{'id':_0x5b788f['id'],'params':JSON[_0xf844b(0xea)](_0x5b788f[_0xf844b(0xed)])}}}},this[_0xf844b(0x84)]));}[_0xa07ab4(0xa5)](){var _0x5b800=_0xa07ab4,_0x120f0a;this[_0x5b800(0x10f)][_0x5b800(0xac)]('idle'),(_0x120f0a=this[_0x5b800(0xbd)])==null||_0x120f0a['dispose'](),this[_0x5b800(0xbd)]=null;}[_0xa07ab4(0xe5)](){var _0x41cf93=_0xa07ab4,_0x47769c;(_0x47769c=this[_0x41cf93(0xbd)])==null||_0x47769c[_0x41cf93(0x11b)](),this[_0x41cf93(0x10f)][_0x41cf93(0xac)](_0x41cf93(0xd5));}[_0xa07ab4(0x94)](){var _0x8fe525=_0xa07ab4,_0x33e42e;this['_status$']['next']('idle'),(_0x33e42e=this[_0x8fe525(0xbd)])==null||_0x33e42e[_0x8fe525(0x11b)](),this[_0x8fe525(0xbd)]=null;}[_0xa07ab4(0xe4)](){var _0x318c5b=_0xa07ab4,_0x2c6242;this[_0x318c5b(0x10f)][_0x318c5b(0xac)](_0x318c5b(0xc2)),(_0x2c6242=this[_0x318c5b(0xbd)])==null||_0x2c6242['dispose']();}[_0xa07ab4(0xe8)](_0x19978b){var _0x3d834e=_0xa07ab4;if([_0x3d834e(0xbb),_0x3d834e(0xc2),_0x3d834e(0x11e)][_0x3d834e(0x8a)](this[_0x3d834e(0xbe)])||!_0x19978b['data'][_0x3d834e(0x8e)]||_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8e)]===this[_0x3d834e(0x9a)][_0x3d834e(0xc3)]())return;this[_0x3d834e(0xbe)]===_0x3d834e(0x115)&&this[_0x3d834e(0xe5)]();const _0x19ef71=_0x19978b[_0x3d834e(0xaa)][_0x3d834e(0x8f)];Object[_0x3d834e(0xf1)](_0x19ef71)[_0x3d834e(0x8b)](_0x110c98=>{var _0x5b1e1d=_0x3d834e;this[_0x5b1e1d(0x119)][_0x5b1e1d(0x11f)](_0x110c98['id'],_0x110c98[_0x5b1e1d(0xed)]?JSON['parse'](_0x110c98[_0x5b1e1d(0xed)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3e0014=_0xa07ab4,_0x289b76;this[_0x3e0014(0x10f)][_0x3e0014(0xac)](_0x3e0014(0x11e)),(_0x289b76=this[_0x3e0014(0xbd)])==null||_0x289b76['dispose']();}['_handleOnline'](){var _0x30a49c=_0xa07ab4;this[_0x30a49c(0x10f)][_0x30a49c(0xac)](_0x30a49c(0x115)),this[_0x30a49c(0x97)]();}};function _0x178e(_0x298759,_0x6dc9e2){var _0x185cf4=_0x185c();return _0x178e=function(_0x178e3d,_0x51b00f){_0x178e3d=_0x178e3d-0x7c;var _0x4e23a9=_0x185cf4[_0x178e3d];return _0x4e23a9;},_0x178e(_0x298759,_0x6dc9e2);}C=Z([f(0x2,_0x5b22d7),f(0x3,_0x354fd2(L)),f(0x4,_0x5e2b20)],C);function ye(){var _0x39fdd3=_0xa07ab4;const _0x274c48=_0x56de89(m),_0x472348=_0x56de89(_0x1607da),_0x19d5aa=_0x338148(()=>_0x472348[_0x39fdd3(0xcb)](_0x511684[_0x39fdd3(0xb4)]),void 0x0,!0x1,[]),[_0x57168d,_0x50a3b5]=_0x2b8a00(null),[_0x4215d9,_0x2328a8]=_0x2b8a00(h['IDLE']),_0x1bce20=_0x105803(null);return _0x9070dc(()=>(_0x19d5aa&&_0x274c48[_0x39fdd3(0xfe)](_0x19d5aa[_0x39fdd3(0x89)]())[_0x39fdd3(0x82)](_0x287e5f=>{var _0x279349=_0x39fdd3;_0x50a3b5(_0x287e5f),_0x1bce20[_0x279349(0x108)]=_0x287e5f[_0x279349(0xef)][_0x279349(0xc7)](_0x312799=>{_0x2328a8(_0x312799);});}),()=>{var _0x33ace2=_0x39fdd3,_0x3541a2;(_0x3541a2=_0x1bce20['current'])==null||_0x3541a2[_0x33ace2(0xf9)](),_0x1bce20[_0x33ace2(0x108)]=null;}),[_0x19d5aa,_0x274c48]),_0x57168d?_0x1261c7(_0x247715,{'align':_0x39fdd3(0xf8),'disabled':_0x4215d9===h[_0x39fdd3(0xd3)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1261c7(Re,{'status':_0x4215d9,'coordinator':_0x57168d}),'children':_0x1261c7('button',{'className':_0x2c649c(_0x39fdd3(0xc6),{'univer-cursor-not-allowed':_0x4215d9===h[_0x39fdd3(0xd3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4215d9!==h[_0x39fdd3(0xd3)]}),'type':'button','children':_0x1261c7(B,{'className':_0x39fdd3(0xc8)})})}):null;}function Re(_0x2ef4df){var _0x15b51b=_0xa07ab4;const {status:_0x5d9824,coordinator:_0x8b4e2}=_0x2ef4df;switch(_0x5d9824){case h['IDLE']:return _0x1261c7(Pe,{'coordinator':_0x8b4e2});case h[_0x15b51b(0x10c)]:return _0x1261c7(Ae,{'coordinator':_0x8b4e2});case h['NOT_FOLLOWING']:return _0x1261c7(Te,{'coordinator':_0x8b4e2});case h[_0x15b51b(0xd3)]:return _0x1261c7(Fe,{});case h[_0x15b51b(0xde)]:return _0x1261c7($e,{'coordinator':_0x8b4e2});default:return null;}}function Pe(_0x10f656){var _0x1b9d31=_0xa07ab4;const {coordinator:_0x203683}=_0x10f656;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7('div',{'className':_0x1b9d31(0xcf),'children':'Present\x20this\x20document'}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x203683['tryStartPresenting'](),'children':_0x1b9d31(0xb2)})]});}function Ae(_0xafae98){var _0x31c86d=_0xa07ab4;const {coordinator:_0x2db713}=_0xafae98;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x31c86d(0xb1),{'className':_0x31c86d(0xcf),'children':_0x31c86d(0x9b)}),_0x1261c7(_0x1aa6e9,{'onClick':()=>_0x2db713['stopFollowing'](),'children':'Stop\x20following'})]});}function Te(_0x5787d7){var _0x422377=_0xa07ab4;const {coordinator:_0x3e4254}=_0x5787d7;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0x422377(0xb1),{'className':_0x422377(0xcf),'children':_0x422377(0x127)}),_0x1261c7(_0x1aa6e9,{'variant':'text','onClick':()=>_0x3e4254['startFollowing'](),'children':_0x422377(0x85)})]});}function $e(_0xf4d894){var _0xb0606d=_0xa07ab4;const {coordinator:_0x1b1240}=_0xf4d894;return _0x54d46f(_0x1d6819,{'children':[_0x1261c7(_0xb0606d(0xb1),{'className':_0xb0606d(0xcf),'children':_0xb0606d(0xf3)}),_0x1261c7(_0x1aa6e9,{'variant':_0xb0606d(0xdf),'onClick':()=>_0x1b1240[_0xb0606d(0xbc)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x41a040=_0xa07ab4;return _0x1261c7(_0x1d6819,{'children':_0x41a040(0xad)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4d9063,_0x38f8f0,_0x5c86e1,_0x418055)=>{var _0x1213f2=_0xa07ab4;for(var _0x42041c=_0x418055>0x1?void 0x0:_0x418055?He(_0x38f8f0,_0x5c86e1):_0x38f8f0,_0x3ca7e0=_0x4d9063[_0x1213f2(0x122)]-0x1,_0xb0720b;_0x3ca7e0>=0x0;_0x3ca7e0--)(_0xb0720b=_0x4d9063[_0x3ca7e0])&&(_0x42041c=_0xb0720b(_0x42041c)||_0x42041c);return _0x42041c;},T=(_0x205f3b,_0x2a5079)=>(_0x3356bd,_0x3136dd)=>_0x2a5079(_0x3356bd,_0x3136dd,_0x205f3b);let I=class extends _0x1e6e0c{constructor(_0x789904,_0x5acc14){var _0x3c8a33=_0xa07ab4;super(),this['_injector']=_0x789904,this[_0x3c8a33(0xa2)]=_0x5acc14,this[_0x3c8a33(0xa1)]();}[_0xa07ab4(0xa1)](){var _0x1e4653=_0xa07ab4;this[_0x1e4653(0xd6)](this[_0x1e4653(0xa2)][_0x1e4653(0xc0)](_0x1cc547[_0x1e4653(0x81)],()=>_0x53741c(ye,this[_0x1e4653(0x104)])));}};I=je([T(0x0,_0x354fd2(_0x4a1d22)),T(0x1,_0x1708ce)],I);const Ue=_0xa07ab4(0x7c),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x211de8,_0x2e7dc5,_0x2e394e,_0x5d87dc)=>{var _0x4d3201=_0xa07ab4;for(var _0x4d0d87=_0x5d87dc>0x1?void 0x0:_0x5d87dc?Ve(_0x2e7dc5,_0x2e394e):_0x2e7dc5,_0x5ccf96=_0x211de8[_0x4d3201(0x122)]-0x1,_0x3fd658;_0x5ccf96>=0x0;_0x5ccf96--)(_0x3fd658=_0x211de8[_0x5ccf96])&&(_0x4d0d87=_0x3fd658(_0x4d0d87)||_0x4d0d87);return _0x4d0d87;},ke=(_0x2fae15,_0x36c2fc)=>(_0x48073b,_0x16ad73)=>_0x36c2fc(_0x48073b,_0x16ad73,_0x2fae15);let b=class extends _0x1e6e0c{constructor(_0x51383c){var _0x55ea64=_0xa07ab4;super(),this[_0x55ea64(0xca)]=_0x51383c,this['_init']();}['_init'](){var _0x47f9f3=_0xa07ab4;[_0x5d01a1['id'],_0x125601['id'],_0xa53257['id']][_0x47f9f3(0x8b)](_0x39a2be=>{var _0x466e1f=_0x47f9f3;this['disposeWithMe'](this[_0x466e1f(0xca)][_0x466e1f(0x88)](_0x39a2be));});}};b=Me([ke(0x0,_0x354fd2(L))],b);var Ge=Object['defineProperty'],We=Object[_0xa07ab4(0xb5)],Ye=(_0x4248a2,_0x3eb4a0,_0x365260)=>_0x3eb4a0 in _0x4248a2?Ge(_0x4248a2,_0x3eb4a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x365260}):_0x4248a2[_0x3eb4a0]=_0x365260,Be=(_0x3ec746,_0x1d4613,_0x1d9cec,_0x902c04)=>{var _0x29b92c=_0xa07ab4;for(var _0x1b3ff2=_0x902c04>0x1?void 0x0:_0x902c04?We(_0x1d4613,_0x1d9cec):_0x1d4613,_0x2abc79=_0x3ec746[_0x29b92c(0x122)]-0x1,_0xe3a45a;_0x2abc79>=0x0;_0x2abc79--)(_0xe3a45a=_0x3ec746[_0x2abc79])&&(_0x1b3ff2=_0xe3a45a(_0x1b3ff2)||_0x1b3ff2);return _0x1b3ff2;},F=(_0x42a9b3,_0x5e752f)=>(_0x5a4f15,_0x11df23)=>_0x5e752f(_0x5a4f15,_0x11df23,_0x42a9b3),J=(_0x17e7ef,_0x370436,_0x3e7278)=>Ye(_0x17e7ef,typeof _0x370436!=_0xa07ab4(0x10e)?_0x370436+'':_0x370436,_0x3e7278);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x347543{constructor(_0x4f220b=$,_0x1aeab9,_0x273722){var _0x5a0d2d=_0xa07ab4;super(),this['_config']=_0x4f220b,this[_0x5a0d2d(0x104)]=_0x1aeab9,this[_0x5a0d2d(0xbf)]=_0x273722;const {..._0x2af60c}=_0x579cd2({},$,this['_config']);this[_0x5a0d2d(0xbf)][_0x5a0d2d(0xec)](Ue,_0x2af60c);}[_0xa07ab4(0x93)](){var _0x21a1a5=_0xa07ab4;_0x5d09aa(this[_0x21a1a5(0x104)],_0x378502([[L],[m],[b],[I]],this[_0x21a1a5(0xe7)][_0x21a1a5(0x9f)])),_0x5c5361(this['_injector'],[[b]]);}[_0xa07ab4(0x11a)](){_0x5c5361(this['_injector'],[[I]]);}};J(O,_0xa07ab4(0xcd),_0x511684['UNIVER_UNKNOWN']),J(O,'pluginName',Ze),O=Be([_0x26a32a(_0xc10544),F(0x1,_0x354fd2(_0x4a1d22)),F(0x2,_0x5b22d7)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x46f719,_0x1e7ed2){var _0x3d4df8=_0x374a,_0x3c98f7=_0x46f719();while(!![]){try{var _0x455eb7=-parseInt(_0x3d4df8(0x18c))/0x1+parseInt(_0x3d4df8(0x16e))/0x2*(-parseInt(_0x3d4df8(0x192))/0x3)+-parseInt(_0x3d4df8(0x1fd))/0x4+-parseInt(_0x3d4df8(0x1ec))/0x5+-parseInt(_0x3d4df8(0x20a))/0x6*(-parseInt(_0x3d4df8(0x20b))/0x7)+parseInt(_0x3d4df8(0x202))/0x8+parseInt(_0x3d4df8(0x14b))/0x9;if(_0x455eb7===_0x1e7ed2)break;else _0x3c98f7['push'](_0x3c98f7['shift']());}catch(_0x5dd231){_0x3c98f7['push'](_0x3c98f7['shift']());}}}(_0x4085,0x7119a),function(_0x3435e7,_0x3687db){var _0x429910=_0x374a;typeof exports==_0x429910(0x183)&&typeof module<'u'?_0x3687db(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x429910(0x1fc)&&define[_0x429910(0x154)]?define([_0x429910(0x1d2),'@univerjs/core','@univerjs/ui','react/jsx-runtime','@univerjs/design','react','@univerjs-pro/collaboration',_0x429910(0x15b),_0x429910(0x1d4),'rxjs','rxjs/operators',_0x429910(0x1eb)],_0x3687db):(_0x3435e7=typeof globalThis<'u'?globalThis:_0x3435e7||self,_0x3687db(_0x3435e7[_0x429910(0x1a1)]={},_0x3435e7['UniverCore'],_0x3435e7['UniverUi'],_0x3435e7[_0x429910(0x200)],_0x3435e7[_0x429910(0x169)],_0x3435e7[_0x429910(0x200)],_0x3435e7[_0x429910(0x1ba)],_0x3435e7['UniverProCollaborationClient'],_0x3435e7[_0x429910(0x19d)],_0x3435e7[_0x429910(0x204)],_0x3435e7[_0x429910(0x204)][_0x429910(0x198)],_0x3435e7['UniverSheetsUi']));}(this,function(_0x282286,_0x524989,_0xd5901c,_0x21ee2b,_0x465bfe,_0x5b3961,_0x8a958e,_0x3dd07c,_0x3d486b,_0x58d28b,_0x3c7193,_0x318462){'use strict';var _0x12c4cc=_0x374a;var _0x1ff26c=Object[_0x12c4cc(0x179)],_0x2d5bb7=(_0x557203,_0x4de28f,_0x2a2b55)=>_0x4de28f in _0x557203?_0x1ff26c(_0x557203,_0x4de28f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a2b55}):_0x557203[_0x4de28f]=_0x2a2b55,_0x58f4cc=(_0x57839a,_0x458f66,_0x1eea5b)=>_0x2d5bb7(_0x57839a,typeof _0x458f66!=_0x12c4cc(0x1cb)?_0x458f66+'':_0x458f66,_0x1eea5b),_0x41c143=function(){var _0x52cb8e=_0x12c4cc;return _0x41c143=Object[_0x52cb8e(0x188)]||function(_0xfe8914){var _0x121f2f=_0x52cb8e;for(var _0x119e92,_0x38efdd=0x1,_0x533022=arguments[_0x121f2f(0x135)];_0x38efdd<_0x533022;_0x38efdd++){_0x119e92=arguments[_0x38efdd];for(var _0x24789f in _0x119e92)Object[_0x121f2f(0x1ad)][_0x121f2f(0x126)][_0x121f2f(0x160)](_0x119e92,_0x24789f)&&(_0xfe8914[_0x24789f]=_0x119e92[_0x24789f]);}return _0xfe8914;},_0x41c143[_0x52cb8e(0x141)](this,arguments);},_0x298b17=function(_0x4e8b9c,_0x214b68){var _0x2e9b6f=_0x12c4cc,_0x2a4e97={};for(var _0x1c008c in _0x4e8b9c)Object[_0x2e9b6f(0x1ad)][_0x2e9b6f(0x126)][_0x2e9b6f(0x160)](_0x4e8b9c,_0x1c008c)&&_0x214b68[_0x2e9b6f(0x16c)](_0x1c008c)<0x0&&(_0x2a4e97[_0x1c008c]=_0x4e8b9c[_0x1c008c]);if(_0x4e8b9c!=null&&typeof Object[_0x2e9b6f(0x182)]==_0x2e9b6f(0x1fc)){for(var _0x546e13=0x0,_0x1c008c=Object[_0x2e9b6f(0x182)](_0x4e8b9c);_0x546e13<_0x1c008c['length'];_0x546e13++)_0x214b68[_0x2e9b6f(0x16c)](_0x1c008c[_0x546e13])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x2e9b6f(0x160)](_0x4e8b9c,_0x1c008c[_0x546e13])&&(_0x2a4e97[_0x1c008c[_0x546e13]]=_0x4e8b9c[_0x1c008c[_0x546e13]]);}return _0x2a4e97;},_0x12dc84=_0x5b3961[_0x12c4cc(0x175)](function(_0x114d02,_0x16d92d){var _0x5e235a=_0x12c4cc,_0x2d0941=_0x114d02['icon'],_0x4dd0bf=_0x114d02['id'],_0x27a424=_0x114d02[_0x5e235a(0x1ef)],_0x2e5eeb=_0x114d02['extend'],_0x5002a2=_0x298b17(_0x114d02,[_0x5e235a(0x134),'id',_0x5e235a(0x1ef),_0x5e235a(0x17f)]),_0x525b='univerjs-icon\x20univerjs-icon-'[_0x5e235a(0x145)](_0x4dd0bf,'\x20')[_0x5e235a(0x145)](_0x27a424||'')[_0x5e235a(0x1d8)](),_0x3859a2=_0x5b3961['useRef']('_'['concat'](_0x144408()));return _0x33af4a(_0x2d0941,''[_0x5e235a(0x145)](_0x4dd0bf),{'defIds':_0x2d0941[_0x5e235a(0x184)],'idSuffix':_0x3859a2[_0x5e235a(0x148)]},_0x41c143({'ref':_0x16d92d,'className':_0x525b},_0x5002a2),_0x2e5eeb);});function _0x33af4a(_0x17812d,_0x5e73a1,_0x421c76,_0xf0b8b0,_0x5d211e){var _0x5a2d24=_0x12c4cc;return _0x5b3961[_0x5a2d24(0x12d)](_0x17812d['tag'],_0x41c143(_0x41c143({'key':_0x5e73a1},_0xb55774(_0x17812d,_0x421c76,_0x5d211e)),_0xf0b8b0),(_0x7cf50b(_0x17812d,_0x421c76)[_0x5a2d24(0x158)]||[])[_0x5a2d24(0x17d)](function(_0x43183f,_0x5e4813){var _0x469548=_0x5a2d24;return _0x33af4a(_0x43183f,''['concat'](_0x5e73a1,'-')[_0x469548(0x145)](_0x17812d[_0x469548(0x1f6)],'-')['concat'](_0x5e4813),_0x421c76,void 0x0,_0x5d211e);}));}function _0xb55774(_0x41c9a1,_0x195b8c,_0x2c502f){var _0x37b5b2=_0x12c4cc,_0x408979=_0x41c143({},_0x41c9a1[_0x37b5b2(0x193)]);_0x2c502f!=null&&_0x2c502f[_0x37b5b2(0x1b6)]&&_0x408979[_0x37b5b2(0x1a7)]===_0x37b5b2(0x1b6)&&(_0x408979[_0x37b5b2(0x1a7)]=_0x2c502f[_0x37b5b2(0x1b6)]),_0x41c9a1[_0x37b5b2(0x1f6)]==='mask'&&_0x408979['id']&&(_0x408979['id']=_0x408979['id']+_0x195b8c[_0x37b5b2(0x1e8)]),Object[_0x37b5b2(0x176)](_0x408979)['forEach'](function(_0x30fa3f){var _0x10e9f7=_0x37b5b2,_0x386971=_0x30fa3f[0x0],_0x1458f4=_0x30fa3f[0x1];_0x386971===_0x10e9f7(0x1a6)&&typeof _0x1458f4==_0x10e9f7(0x1c9)&&(_0x408979[_0x386971]=_0x1458f4[_0x10e9f7(0x206)](/url\(#(.*)\)/,_0x10e9f7(0x1c1)[_0x10e9f7(0x145)](_0x195b8c[_0x10e9f7(0x1e8)],')')));});var _0x1abe3b=_0x195b8c[_0x37b5b2(0x184)];return!_0x1abe3b||_0x1abe3b[_0x37b5b2(0x135)]===0x0||(_0x41c9a1['tag']===_0x37b5b2(0x163)&&_0x408979[_0x37b5b2(0x1bf)]&&(_0x408979[_0x37b5b2(0x1bf)]=_0x408979[_0x37b5b2(0x1bf)]+_0x195b8c[_0x37b5b2(0x1e8)]),Object['entries'](_0x408979)[_0x37b5b2(0x1e5)](function(_0x5732f9){var _0x1048f2=_0x37b5b2,_0x532cf2=_0x5732f9[0x0],_0x256bf0=_0x5732f9[0x1];typeof _0x256bf0=='string'&&(_0x408979[_0x532cf2]=_0x256bf0[_0x1048f2(0x206)](/url\(#(.*)\)/,_0x1048f2(0x1c1)[_0x1048f2(0x145)](_0x195b8c['idSuffix'],')')));})),_0x408979;}function _0x7cf50b(_0x5e3c16,_0x4dbfb2){var _0xf4763b=_0x12c4cc,_0x4f22a6,_0x3828e6=_0x4dbfb2['defIds'];return!_0x3828e6||_0x3828e6[_0xf4763b(0x135)]===0x0?_0x5e3c16:_0x5e3c16[_0xf4763b(0x1f6)]===_0xf4763b(0x1ca)&&(!((_0x4f22a6=_0x5e3c16[_0xf4763b(0x158)])===null||_0x4f22a6===void 0x0)&&_0x4f22a6[_0xf4763b(0x135)])?_0x41c143(_0x41c143({},_0x5e3c16),{'children':_0x5e3c16[_0xf4763b(0x158)][_0xf4763b(0x17d)](function(_0x175b02){var _0x1f90eb=_0xf4763b;return typeof _0x175b02['attrs']['id']==_0x1f90eb(0x1c9)&&_0x3828e6&&_0x3828e6[_0x1f90eb(0x170)](_0x175b02[_0x1f90eb(0x193)]['id'])?_0x41c143(_0x41c143({},_0x175b02),{'attrs':_0x41c143(_0x41c143({},_0x175b02[_0x1f90eb(0x193)]),{'id':_0x175b02[_0x1f90eb(0x193)]['id']+_0x4dbfb2['idSuffix']})}):_0x175b02;})}):_0x5e3c16;}function _0x144408(){var _0x34a54e=_0x12c4cc;return Math[_0x34a54e(0x1db)]()['toString'](0x24)[_0x34a54e(0x17a)](0x2,0x8);}_0x12dc84[_0x12c4cc(0x1ff)]=_0x12c4cc(0x19a);var _0x47a4b2={'tag':_0x12c4cc(0x18a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x12c4cc(0x172),'width':_0x12c4cc(0x1bb),'height':_0x12c4cc(0x1bb)},'children':[{'tag':_0x12c4cc(0x209),'attrs':{'fill':_0x12c4cc(0x1b8),'d':_0x12c4cc(0x197)}},{'tag':_0x12c4cc(0x209),'attrs':{'fill':_0x12c4cc(0x1b8),'d':_0x12c4cc(0x1de),'fillRule':_0x12c4cc(0x1aa),'clipRule':'evenodd'}}]},_0x41be7c=_0x5b3961[_0x12c4cc(0x175)](function(_0x16655a,_0x11db49){var _0x1b6018=_0x12c4cc;return _0x5b3961[_0x1b6018(0x12d)](_0x12dc84,Object['assign']({},_0x16655a,{'id':_0x1b6018(0x181),'ref':_0x11db49,'icon':_0x47a4b2}));});_0x41be7c['displayName']=_0x12c4cc(0x1be);class _0x547385 extends _0x524989['Disposable']{constructor(){var _0xbdf609=_0x12c4cc;super(...arguments),_0x58f4cc(this,'_sharedOperations',new Set()),_0x58f4cc(this,_0xbdf609(0x1ab),new Set());}[_0x12c4cc(0x156)](_0x307040){var _0x3c0094=_0x12c4cc;return this[_0x3c0094(0x1a9)][_0x3c0094(0x1dd)](_0x307040),_0x524989[_0x3c0094(0x185)](()=>this[_0x3c0094(0x1a9)][_0x3c0094(0x143)](_0x307040));}[_0x12c4cc(0x14d)](_0x3f8b28){var _0x980e0b=_0x12c4cc;return this[_0x980e0b(0x1ab)][_0x980e0b(0x1dd)](_0x3f8b28),_0x524989[_0x980e0b(0x185)](()=>this['_reporters'][_0x980e0b(0x143)](_0x3f8b28));}['shouldShareOperation'](_0x285e00){var _0x50993f=_0x12c4cc;return this[_0x50993f(0x1a9)][_0x50993f(0x173)](_0x285e00);}[_0x12c4cc(0x1c7)](_0x5266bd){var _0x560ecf=_0x12c4cc;return Array[_0x560ecf(0x20f)](this[_0x560ecf(0x1ab)])['map'](_0x6e3ce4=>_0x6e3ce4(_0x5266bd));}}var _0x20bff3=Object[_0x12c4cc(0x1d3)],_0x56e072=(_0x28922c,_0x1166f8,_0x3990b,_0x5417fa)=>{var _0x7b3388=_0x12c4cc;for(var _0x241821=_0x5417fa>0x1?void 0x0:_0x5417fa?_0x20bff3(_0x1166f8,_0x3990b):_0x1166f8,_0x2c1796=_0x28922c[_0x7b3388(0x135)]-0x1,_0x5d38d0;_0x2c1796>=0x0;_0x2c1796--)(_0x5d38d0=_0x28922c[_0x2c1796])&&(_0x241821=_0x5d38d0(_0x241821)||_0x241821);return _0x241821;},_0x59f97e=(_0x1c0a25,_0x5edf5f)=>(_0x4e60fd,_0x416bcf)=>_0x5edf5f(_0x4e60fd,_0x416bcf,_0x1c0a25);_0x282286[_0x12c4cc(0x1ed)]=class extends _0x524989[_0x12c4cc(0x164)]{constructor(_0x541c11,_0x489d2a,_0xe48490){var _0x306747=_0x12c4cc;super(),_0x58f4cc(this,_0x306747(0x19f),new Map()),(this[_0x306747(0x20d)]=_0x541c11,this['_injector']=_0x489d2a,this['_collabSessionService']=_0xe48490,this['_init']());}async['getLiveShareCoordinator'](_0x54a3f6){var _0x583ba1=_0x12c4cc;return this['_entities'][_0x583ba1(0x173)](_0x54a3f6)||await this[_0x583ba1(0x1b3)](_0x54a3f6),this[_0x583ba1(0x19f)][_0x583ba1(0x1f1)](_0x54a3f6);}['_init'](){var _0x7fcec9=_0x12c4cc;this[_0x7fcec9(0x20d)][_0x7fcec9(0x1c0)](_0x524989['UniverInstanceType'][_0x7fcec9(0x1a3)])[_0x7fcec9(0x127)](_0x3c7193[_0x7fcec9(0x1c5)](this['dispose$']))[_0x7fcec9(0x13a)](async _0x1ecef2=>{var _0x591d34=_0x7fcec9;const _0x4d5454=_0x1ecef2['getUnitId']();this[_0x591d34(0x19f)][_0x591d34(0x173)](_0x4d5454)||this['_startLiveShareCoordinator'](_0x4d5454);}),this[_0x7fcec9(0x20d)]['getTypeOfUnitDisposed$'](_0x524989[_0x7fcec9(0x1cd)][_0x7fcec9(0x1a3)])[_0x7fcec9(0x127)](_0x3c7193['takeUntil'](this[_0x7fcec9(0x137)]))[_0x7fcec9(0x13a)](_0x1cc028=>{var _0x2e046c=_0x7fcec9;const _0x31a67b=_0x1cc028[_0x2e046c(0x144)](),_0x6bcee2=this[_0x2e046c(0x19f)][_0x2e046c(0x1f1)](_0x31a67b);_0x6bcee2==null||_0x6bcee2['dispose']();});}async[_0x12c4cc(0x1b3)](_0x335f27){var _0x5e66f4=_0x12c4cc;const _0x3a86f4=await this['_collabSessionService'][_0x5e66f4(0x1a4)](_0x335f27),_0x1c9384=this[_0x5e66f4(0x208)][_0x5e66f4(0x1bc)](_0x282286[_0x5e66f4(0x1b5)],_0x335f27,_0x3a86f4);return _0x1c9384[_0x5e66f4(0x16a)](),this[_0x5e66f4(0x19f)]['set'](_0x335f27,_0x1c9384),_0x1c9384;}},_0x282286[_0x12c4cc(0x1ed)]=_0x56e072([_0x59f97e(0x0,_0x524989['IUniverInstanceService']),_0x59f97e(0x1,_0x524989[_0x12c4cc(0x16f)](_0x524989['Injector'])),_0x59f97e(0x2,_0x524989[_0x12c4cc(0x16f)](_0x3dd07c[_0x12c4cc(0x1f7)]))],_0x282286['LiveShareController']);var _0x55d2a7=(_0x350c46=>(_0x350c46[_0x12c4cc(0x151)]=_0x12c4cc(0x178),_0x350c46[_0x12c4cc(0x162)]='idle',_0x350c46[_0x12c4cc(0x1fb)]=_0x12c4cc(0x1cf),_0x350c46[_0x12c4cc(0x18b)]=_0x12c4cc(0x1af),_0x350c46[_0x12c4cc(0x1e9)]=_0x12c4cc(0x1e4),_0x350c46))(_0x55d2a7||{});const _0x177749=_0x12c4cc(0x194),_0x387356=0xc8;_0x282286[_0x12c4cc(0x1b5)]=class extends _0x524989['RxDisposable']{constructor(_0x40b26f,_0x1fc2a1,_0x20d0a5,_0x50f042,_0x379521){var _0x4602c7=_0x12c4cc;super(),_0x58f4cc(this,'_status$',new _0x58d28b[(_0x4602c7(0x1fa))](_0x4602c7(0x15c))),_0x58f4cc(this,_0x4602c7(0x149),this[_0x4602c7(0x1b9)][_0x4602c7(0x205)]()),_0x58f4cc(this,_0x4602c7(0x1d5),!0x1),_0x58f4cc(this,_0x4602c7(0x13d),null),_0x58f4cc(this,_0x4602c7(0x20c),null),(this[_0x4602c7(0x1b7)]=_0x40b26f,this[_0x4602c7(0x13c)]=_0x1fc2a1,this[_0x4602c7(0x1a5)]=_0x20d0a5,this[_0x4602c7(0x12b)]=_0x50f042,this[_0x4602c7(0x1d6)]=_0x379521);}get['_status'](){var _0x2bbe83=_0x12c4cc;return this['_status$'][_0x2bbe83(0x1f9)]();}[_0x12c4cc(0x17b)](){var _0x4511c2=_0x12c4cc,_0x2444d3;(_0x2444d3=this[_0x4511c2(0x13d)])==null||_0x2444d3[_0x4511c2(0x17b)](),this[_0x4511c2(0x1b9)][_0x4511c2(0x142)](_0x4511c2(0x15c)),this[_0x4511c2(0x1b9)][_0x4511c2(0x1ea)]();}[_0x12c4cc(0x16a)](){var _0x75e1d2=_0x12c4cc;this[_0x75e1d2(0x1d5)]||(this[_0x75e1d2(0x1d5)]=!0x0,this[_0x75e1d2(0x13c)]['sessionStatus$'][_0x75e1d2(0x127)](_0x3c7193[_0x75e1d2(0x1c5)](this[_0x75e1d2(0x137)]))[_0x75e1d2(0x13a)](_0x45fabc=>{var _0x47d1c8=_0x75e1d2;switch(_0x45fabc){case _0x3dd07c[_0x47d1c8(0x1ce)][_0x47d1c8(0x151)]:this['_handleOffline']();break;case _0x3dd07c[_0x47d1c8(0x1ce)][_0x47d1c8(0x1b4)]:this[_0x47d1c8(0x12e)]();break;}}),this['_collabSession'][_0x75e1d2(0x1b0)][_0x75e1d2(0x127)](_0x3c7193[_0x75e1d2(0x1c5)](this[_0x75e1d2(0x137)]))['subscribe'](_0x338bba=>{var _0x32a0e5=_0x75e1d2;const {eventID:_0xa948a1}=_0x338bba;switch(_0xa948a1){case _0x8a958e['CollaborationEvent'][_0x32a0e5(0x1e0)]:this[_0x32a0e5(0x1fe)](_0x338bba);break;case _0x8a958e['CollaborationEvent'][_0x32a0e5(0x168)]:this[_0x32a0e5(0x1f5)](_0x338bba);break;case _0x8a958e['CollaborationEvent'][_0x32a0e5(0x155)]:this[_0x32a0e5(0x1e1)]();break;case _0x8a958e[_0x32a0e5(0x167)][_0x32a0e5(0x140)]:this['_handleNewChangeSets'](_0x338bba);break;}}));}[_0x12c4cc(0x1c8)](){var _0x168d01=_0x12c4cc;this[_0x168d01(0x13c)][_0x168d01(0x15d)]({'eventID':_0x8a958e[_0x168d01(0x167)][_0x168d01(0x174)],'data':{'unitID':this[_0x168d01(0x1b7)],'userID':this[_0x168d01(0x13c)][_0x168d01(0x131)]()}},this[_0x168d01(0x1b7)]);}[_0x12c4cc(0x14f)](){var _0x29f26c=_0x12c4cc;this[_0x29f26c(0x1e6)]===_0x29f26c(0x1e4)&&(this[_0x29f26c(0x1b9)][_0x29f26c(0x142)](_0x29f26c(0x15c)),this[_0x29f26c(0x13c)]['send']({'eventID':_0x8a958e[_0x29f26c(0x167)][_0x29f26c(0x155)],'data':{'unitID':this['_unitID']}},this[_0x29f26c(0x1b7)]));}[_0x12c4cc(0x129)](){var _0x4e5a75=_0x12c4cc;this['_status']===_0x4e5a75(0x1af)&&(this[_0x4e5a75(0x1b9)]['next'](_0x4e5a75(0x1cf)),this[_0x4e5a75(0x1cc)]());}[_0x12c4cc(0x1f3)](){var _0x1be8fa=_0x12c4cc;this[_0x1be8fa(0x1e6)]===_0x1be8fa(0x1cf)&&this[_0x1be8fa(0x189)]();}['_handleNewHost'](_0x17aab2){var _0x43642b=_0x12c4cc;const {presenter:_0x57dfcc}=_0x17aab2[_0x43642b(0x15e)],_0x476352=this[_0x43642b(0x13c)][_0x43642b(0x131)]();this[_0x43642b(0x20c)]=_0x57dfcc,_0x57dfcc===_0x476352?(this['_stopFollowing'](),this[_0x43642b(0x211)]()):this['_status']!=='not-following'&&(this[_0x43642b(0x12c)](),this[_0x43642b(0x1cc)]());}['_fetchOperations'](){var _0x4d5202=_0x12c4cc;const _0x4ed123={'eventID':_0x8a958e[_0x4d5202(0x167)][_0x4d5202(0x1ee)]};this[_0x4d5202(0x13c)]['send'](_0x4ed123,this[_0x4d5202(0x1b7)]);}[_0x12c4cc(0x1e1)](){var _0x4295c3=_0x12c4cc;this[_0x4295c3(0x20c)]=null,this[_0x4295c3(0x1e6)]!==_0x4295c3(0x1e4)&&this[_0x4295c3(0x1c6)]();}['_handleNewChangeSets'](_0x1b68c4){var _0x55a92e=_0x12c4cc;if(this[_0x55a92e(0x1e6)]===_0x55a92e(0x1cf)&&this[_0x55a92e(0x20c)]===_0x1b68c4[_0x55a92e(0x15e)]['memberID']){const _0x3fbabd=_0x8a958e[_0x55a92e(0x19b)](_0x1b68c4[_0x55a92e(0x15e)])['mutations'][_0x55a92e(0x187)]()[_0x55a92e(0x1f0)](_0xe992a4=>_0xe992a4['id']===_0x3d486b[_0x55a92e(0x195)]['id']);if(_0x3fbabd){const _0x254dff=_0x3fbabd[_0x55a92e(0x18f)][_0x55a92e(0x1c3)],_0x37a55d=_0x3fbabd[_0x55a92e(0x18f)][_0x55a92e(0x1f4)]['id'];setTimeout(()=>{var _0x115fdc=_0x55a92e;this[_0x115fdc(0x1d6)][_0x115fdc(0x147)](_0x3d486b[_0x115fdc(0x17e)]['id'],{'unitId':_0x254dff,'subUnitId':_0x37a55d},{'fromCollab':!0x0});});}}}[_0x12c4cc(0x211)](){var _0x59f092=_0x12c4cc;this[_0x59f092(0x1b9)][_0x59f092(0x142)](_0x59f092(0x1e4));const _0x3d8b24=new Map(),_0x5f14e1=this['_commandDisposable']=new _0x524989[(_0x59f092(0x177))]();_0x5f14e1[_0x59f092(0x1dd)](_0x524989[_0x59f092(0x185)](()=>{var _0x2facaf=_0x59f092;_0x3d8b24[_0x2facaf(0x1e5)](_0x125f45=>_0x125f45[_0x2facaf(0x1ea)]()),_0x3d8b24[_0x2facaf(0x203)]();})),_0x5f14e1['add'](this[_0x59f092(0x1d6)][_0x59f092(0x171)](_0x16a171=>{var _0x5a8fa1=_0x59f092,_0x5126e0;if(_0x16a171[_0x5a8fa1(0x138)]!==_0x524989[_0x5a8fa1(0x1e3)]['OPERATION']||!this[_0x5a8fa1(0x12b)][_0x5a8fa1(0x13b)](_0x16a171['id']))return;const {id:_0x3bd8e9}=_0x16a171;let _0x296514;_0x3d8b24[_0x5a8fa1(0x173)](_0x3bd8e9)?_0x296514=_0x3d8b24[_0x5a8fa1(0x1f1)](_0x3bd8e9):(_0x296514=new _0x58d28b[(_0x5a8fa1(0x136))](),_0x3d8b24[_0x5a8fa1(0x1d7)](_0x3bd8e9,_0x296514),_0x296514[_0x5a8fa1(0x127)](_0x3c7193[_0x5a8fa1(0x213)]((_0x5126e0=this[_0x5a8fa1(0x1a5)][_0x5a8fa1(0x139)](_0x177749))!=null?_0x5126e0:_0x387356,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a8fa1(0x13a)](_0x2c207c=>{var _0x483298=_0x5a8fa1;this[_0x483298(0x13c)]['send']({'eventID':_0x8a958e['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2c207c['id']]:{'id':_0x2c207c['id'],'params':JSON[_0x483298(0x157)](_0x2c207c[_0x483298(0x18f)])}}}},this[_0x483298(0x1b7)]);})),_0x296514[_0x5a8fa1(0x142)](_0x16a171);})),this[_0x59f092(0x12b)]['getInitialStates'](this['_unitID'])[_0x59f092(0x1e5)](_0x2c094e=>this[_0x59f092(0x13c)]['send']({'eventID':_0x8a958e['CollaborationEvent'][_0x59f092(0x168)],'data':{'unitID':this[_0x59f092(0x1b7)],'operations':{[_0x2c094e['id']]:{'id':_0x2c094e['id'],'params':JSON['stringify'](_0x2c094e[_0x59f092(0x18f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x316c75=_0x12c4cc,_0x26c32a;this['_status$'][_0x316c75(0x142)]('idle'),(_0x26c32a=this[_0x316c75(0x13d)])==null||_0x26c32a[_0x316c75(0x17b)](),this[_0x316c75(0x13d)]=null;}['_startFollowing'](){var _0x3d5fc3=_0x12c4cc,_0x566c72;(_0x566c72=this['_commandDisposable'])==null||_0x566c72[_0x3d5fc3(0x17b)](),this[_0x3d5fc3(0x1b9)]['next'](_0x3d5fc3(0x1cf));}[_0x12c4cc(0x1c6)](){var _0x5a2d06=_0x12c4cc,_0x277fcb;this['_status$'][_0x5a2d06(0x142)](_0x5a2d06(0x15c)),(_0x277fcb=this['_commandDisposable'])==null||_0x277fcb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5e496e=_0x12c4cc,_0x321d21;this['_status$'][_0x5e496e(0x142)](_0x5e496e(0x1af)),(_0x321d21=this[_0x5e496e(0x13d)])==null||_0x321d21[_0x5e496e(0x17b)]();}[_0x12c4cc(0x1f5)](_0x4ea859){var _0x29eb9c=_0x12c4cc;if([_0x29eb9c(0x1e4),_0x29eb9c(0x1af),_0x29eb9c(0x178)]['includes'](this[_0x29eb9c(0x1e6)])||!_0x4ea859[_0x29eb9c(0x15e)][_0x29eb9c(0x1b2)]||_0x4ea859['data'][_0x29eb9c(0x1b2)]===this[_0x29eb9c(0x13c)][_0x29eb9c(0x131)]())return;this[_0x29eb9c(0x1e6)]===_0x29eb9c(0x15c)&&this[_0x29eb9c(0x1cc)]();const _0xf320c=_0x4ea859['data'][_0x29eb9c(0x166)];Object[_0x29eb9c(0x159)](_0xf320c)[_0x29eb9c(0x1e5)](_0x37c002=>{var _0x4f0924=_0x29eb9c;this[_0x4f0924(0x1d6)][_0x4f0924(0x147)](_0x37c002['id'],_0x37c002[_0x4f0924(0x18f)]?JSON[_0x4f0924(0x186)](_0x37c002[_0x4f0924(0x18f)]):null,{'fromCollab':!0x0});});}[_0x12c4cc(0x1c2)](){var _0x3e049c=_0x12c4cc,_0x2f6a95;this[_0x3e049c(0x1b9)][_0x3e049c(0x142)](_0x3e049c(0x178)),(_0x2f6a95=this[_0x3e049c(0x13d)])==null||_0x2f6a95[_0x3e049c(0x17b)]();}[_0x12c4cc(0x12e)](){var _0x2abb29=_0x12c4cc;this[_0x2abb29(0x1b9)]['next'](_0x2abb29(0x15c)),this[_0x2abb29(0x130)]();}},_0x282286[_0x12c4cc(0x1b5)]=_0x56e072([_0x59f97e(0x2,_0x524989[_0x12c4cc(0x146)]),_0x59f97e(0x3,_0x524989[_0x12c4cc(0x16f)](_0x547385)),_0x59f97e(0x4,_0x524989[_0x12c4cc(0x133)])],_0x282286[_0x12c4cc(0x1b5)]);function _0x441bf1(){var _0x200863=_0x12c4cc;const _0x4f6ba5=_0xd5901c[_0x200863(0x1bd)](_0x282286['LiveShareController']),_0x1d7323=_0xd5901c[_0x200863(0x1bd)](_0x524989[_0x200863(0x1da)]),_0x1ba249=_0xd5901c[_0x200863(0x17c)](()=>_0x1d7323['getCurrentTypeOfUnit$'](_0x524989['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x384749,_0x48a0d3]=_0x5b3961[_0x200863(0x1e7)](null),[_0x52fdee,_0xe499af]=_0x5b3961[_0x200863(0x1e7)](_0x55d2a7[_0x200863(0x162)]),_0x14188c=_0x5b3961[_0x200863(0x1a0)](null);return _0x5b3961[_0x200863(0x13e)](()=>(_0x1ba249&&_0x4f6ba5['getLiveShareCoordinator'](_0x1ba249[_0x200863(0x144)]())['then'](_0x17ffda=>{var _0x24e530=_0x200863;_0x48a0d3(_0x17ffda),_0x14188c[_0x24e530(0x148)]=_0x17ffda[_0x24e530(0x149)][_0x24e530(0x13a)](_0x14a35a=>{_0xe499af(_0x14a35a);});}),()=>{var _0x23c8a6=_0x200863,_0x19dbff;(_0x19dbff=_0x14188c[_0x23c8a6(0x148)])==null||_0x19dbff[_0x23c8a6(0x150)](),_0x14188c['current']=null;}),[_0x1ba249,_0x4f6ba5]),_0x384749?_0x21ee2b[_0x200863(0x1e2)](_0x465bfe['Dropdown'],{'align':_0x200863(0x1ac),'disabled':_0x52fdee===_0x55d2a7[_0x200863(0x151)],'className':_0x200863(0x16b),'overlay':_0x21ee2b[_0x200863(0x1e2)](_0x41b7d8,{'status':_0x52fdee,'coordinator':_0x384749}),'children':_0x21ee2b[_0x200863(0x1e2)](_0x200863(0x1d1),{'className':_0x465bfe[_0x200863(0x191)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x52fdee===_0x55d2a7[_0x200863(0x151)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52fdee!==_0x55d2a7[_0x200863(0x151)]}),'type':'button','children':_0x21ee2b['jsx'](_0x41be7c,{'className':_0x200863(0x1c4)})})}):null;}function _0x41b7d8(_0xb53f89){var _0x4761f6=_0x12c4cc;const {status:_0x52589a,coordinator:_0x56d825}=_0xb53f89;switch(_0x52589a){case _0x55d2a7[_0x4761f6(0x162)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0x33869f,{'coordinator':_0x56d825});case _0x55d2a7[_0x4761f6(0x1fb)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0x7bbb85,{'coordinator':_0x56d825});case _0x55d2a7[_0x4761f6(0x18b)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0xf90dcc,{'coordinator':_0x56d825});case _0x55d2a7[_0x4761f6(0x151)]:return _0x21ee2b['jsx'](_0x510b6f,{});case _0x55d2a7[_0x4761f6(0x1e9)]:return _0x21ee2b[_0x4761f6(0x1e2)](_0x4adfb0,{'coordinator':_0x56d825});default:return null;}}function _0x33869f(_0x454ea7){var _0x4e7846=_0x12c4cc;const {coordinator:_0x52b322}=_0x454ea7;return _0x21ee2b[_0x4e7846(0x153)](_0x21ee2b[_0x4e7846(0x14e)],{'children':[_0x21ee2b['jsx'](_0x4e7846(0x14c),{'className':_0x4e7846(0x18d),'children':_0x4e7846(0x13f)}),_0x21ee2b[_0x4e7846(0x1e2)](_0x465bfe[_0x4e7846(0x1ae)],{'onClick':()=>_0x52b322[_0x4e7846(0x1c8)](),'children':'Start'})]});}function _0x7bbb85(_0x40dbd0){var _0x1dca65=_0x12c4cc;const {coordinator:_0x7502f3}=_0x40dbd0;return _0x21ee2b['jsxs'](_0x21ee2b[_0x1dca65(0x14e)],{'children':[_0x21ee2b['jsx'](_0x1dca65(0x14c),{'className':_0x1dca65(0x18d),'children':_0x1dca65(0x1d9)}),_0x21ee2b[_0x1dca65(0x1e2)](_0x465bfe[_0x1dca65(0x1ae)],{'onClick':()=>_0x7502f3[_0x1dca65(0x1f3)](),'children':_0x1dca65(0x207)})]});}function _0xf90dcc(_0x3a738c){var _0x38d11d=_0x12c4cc;const {coordinator:_0x21b0b6}=_0x3a738c;return _0x21ee2b[_0x38d11d(0x153)](_0x21ee2b[_0x38d11d(0x14e)],{'children':[_0x21ee2b['jsx'](_0x38d11d(0x14c),{'className':_0x38d11d(0x18d),'children':_0x38d11d(0x1a2)}),_0x21ee2b[_0x38d11d(0x1e2)](_0x465bfe['Button'],{'variant':'text','onClick':()=>_0x21b0b6[_0x38d11d(0x129)](),'children':'Start\x20following'})]});}function _0x4adfb0(_0x2f5d5d){var _0x5196d0=_0x12c4cc;const {coordinator:_0x5d39da}=_0x2f5d5d;return _0x21ee2b[_0x5196d0(0x153)](_0x21ee2b[_0x5196d0(0x14e)],{'children':[_0x21ee2b[_0x5196d0(0x1e2)](_0x5196d0(0x14c),{'className':_0x5196d0(0x18d),'children':_0x5196d0(0x1f8)}),_0x21ee2b[_0x5196d0(0x1e2)](_0x465bfe[_0x5196d0(0x1ae)],{'variant':_0x5196d0(0x1df),'onClick':()=>_0x5d39da['stopPresenting'](),'children':_0x5196d0(0x201)})]});}function _0x510b6f(){var _0x331107=_0x12c4cc;return _0x21ee2b[_0x331107(0x1e2)](_0x21ee2b[_0x331107(0x14e)],{'children':_0x331107(0x1a8)});}var _0x18649e=Object['getOwnPropertyDescriptor'],_0x140fc5=(_0x271d4c,_0x1ac5fd,_0x1d8502,_0x223376)=>{var _0x5c08f3=_0x12c4cc;for(var _0xf307a6=_0x223376>0x1?void 0x0:_0x223376?_0x18649e(_0x1ac5fd,_0x1d8502):_0x1ac5fd,_0x9ed6d8=_0x271d4c[_0x5c08f3(0x135)]-0x1,_0x3a4909;_0x9ed6d8>=0x0;_0x9ed6d8--)(_0x3a4909=_0x271d4c[_0x9ed6d8])&&(_0xf307a6=_0x3a4909(_0xf307a6)||_0xf307a6);return _0xf307a6;},_0x2d31bf=(_0x441b89,_0x3e478b)=>(_0x36f205,_0x16abeb)=>_0x3e478b(_0x36f205,_0x16abeb,_0x441b89);_0x282286[_0x12c4cc(0x20e)]=class extends _0x524989['Disposable']{constructor(_0x36bad1,_0x2d6aa6){var _0x362357=_0x12c4cc;super(),this[_0x362357(0x208)]=_0x36bad1,this[_0x362357(0x16d)]=_0x2d6aa6,this[_0x362357(0x1dc)]();}[_0x12c4cc(0x1dc)](){var _0x51ecaf=_0x12c4cc;this[_0x51ecaf(0x128)](this['_uiPartsService'][_0x51ecaf(0x1d0)](_0xd5901c[_0x51ecaf(0x18e)]['HEADER_MENU'],()=>_0xd5901c[_0x51ecaf(0x214)](_0x441bf1,this[_0x51ecaf(0x208)])));}},_0x282286['DesktopLiveShareController']=_0x140fc5([_0x2d31bf(0x0,_0x524989[_0x12c4cc(0x16f)](_0x524989[_0x12c4cc(0x190)])),_0x2d31bf(0x1,_0xd5901c[_0x12c4cc(0x199)])],_0x282286[_0x12c4cc(0x20e)]);const _0x55a5ae='live-share.config',_0x395352={};var _0x53e952=Object['getOwnPropertyDescriptor'],_0x311606=(_0x5a3bcd,_0x46b5c2,_0x3a3e67,_0x551e4a)=>{var _0x2d0ef0=_0x12c4cc;for(var _0x1b448c=_0x551e4a>0x1?void 0x0:_0x551e4a?_0x53e952(_0x46b5c2,_0x3a3e67):_0x46b5c2,_0x2b5d07=_0x5a3bcd[_0x2d0ef0(0x135)]-0x1,_0x29522b;_0x2b5d07>=0x0;_0x2b5d07--)(_0x29522b=_0x5a3bcd[_0x2b5d07])&&(_0x1b448c=_0x29522b(_0x1b448c)||_0x1b448c);return _0x1b448c;},_0x5532d1=(_0x208565,_0x52fd14)=>(_0x57c725,_0x394c7d)=>_0x52fd14(_0x57c725,_0x394c7d,_0x208565);let _0x59079a=class extends _0x524989[_0x12c4cc(0x1b1)]{constructor(_0x4234e0){var _0x50d4d3=_0x12c4cc;super(),this['_liveShareService']=_0x4234e0,this[_0x50d4d3(0x1d5)]();}[_0x12c4cc(0x1d5)](){var _0x29afc4=_0x12c4cc;[_0x318462['SetZoomRatioOperation']['id'],_0x318462[_0x29afc4(0x210)]['id'],_0x3d486b[_0x29afc4(0x17e)]['id']][_0x29afc4(0x1e5)](_0x170dba=>{var _0x1a4653=_0x29afc4;this[_0x1a4653(0x128)](this[_0x1a4653(0x12b)][_0x1a4653(0x156)](_0x170dba));});}};_0x59079a=_0x311606([_0x5532d1(0x0,_0x524989[_0x12c4cc(0x16f)](_0x547385))],_0x59079a);var _0x594f33=Object['defineProperty'],_0x23a5ea=Object[_0x12c4cc(0x1d3)],_0x53e256=(_0x5984e0,_0x461da7,_0x41c117)=>_0x461da7 in _0x5984e0?_0x594f33(_0x5984e0,_0x461da7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c117}):_0x5984e0[_0x461da7]=_0x41c117,_0x2569ff=(_0x2a0f33,_0x51f44f,_0x1e0b9b,_0x174427)=>{for(var _0x2873d1=_0x174427>0x1?void 0x0:_0x174427?_0x23a5ea(_0x51f44f,_0x1e0b9b):_0x51f44f,_0x577664=_0x2a0f33['length']-0x1,_0x98c0f;_0x577664>=0x0;_0x577664--)(_0x98c0f=_0x2a0f33[_0x577664])&&(_0x2873d1=_0x98c0f(_0x2873d1)||_0x2873d1);return _0x2873d1;},_0x22e388=(_0x20a730,_0x59269e)=>(_0x195073,_0x3cd1b4)=>_0x59269e(_0x195073,_0x3cd1b4,_0x20a730),_0x52ad69=(_0x56577b,_0x104fca,_0x3c3dca)=>_0x53e256(_0x56577b,typeof _0x104fca!=_0x12c4cc(0x1cb)?_0x104fca+'':_0x104fca,_0x3c3dca);const _0x4baebc='UNIVER_LIVE_SHARE_PLUGIN';_0x282286['UniverLiveSharePlugin']=class extends _0x524989[_0x12c4cc(0x15f)]{constructor(_0x3e29c5=_0x395352,_0x5d9a75,_0x3466e2){var _0x7a8663=_0x12c4cc;super(),this[_0x7a8663(0x19c)]=_0x3e29c5,this[_0x7a8663(0x208)]=_0x5d9a75,this[_0x7a8663(0x1a5)]=_0x3466e2;const {..._0x86e51d}=_0x524989['merge']({},_0x395352,this[_0x7a8663(0x19c)]);this['_configService'][_0x7a8663(0x12a)](_0x55a5ae,_0x86e51d);}['onStarting'](){var _0x29cd33=_0x12c4cc;_0x524989[_0x29cd33(0x152)](this[_0x29cd33(0x208)],_0x524989['mergeOverrideWithDependencies']([[_0x547385],[_0x282286[_0x29cd33(0x1ed)]],[_0x59079a],[_0x282286[_0x29cd33(0x20e)]]],this[_0x29cd33(0x19c)][_0x29cd33(0x165)])),_0x524989['touchDependencies'](this[_0x29cd33(0x208)],[[_0x59079a]]);}[_0x12c4cc(0x161)](){var _0x1d5b1c=_0x12c4cc;_0x524989[_0x1d5b1c(0x14a)](this[_0x1d5b1c(0x208)],[[_0x282286[_0x1d5b1c(0x20e)]]]);}},_0x52ad69(_0x282286[_0x12c4cc(0x180)],'type',_0x524989['UniverInstanceType'][_0x12c4cc(0x19e)]),_0x52ad69(_0x282286[_0x12c4cc(0x180)],_0x12c4cc(0x196),_0x4baebc),_0x282286[_0x12c4cc(0x180)]=_0x2569ff([_0x524989[_0x12c4cc(0x15a)](_0x3dd07c['UniverCollaborationClientPlugin']),_0x22e388(0x1,_0x524989[_0x12c4cc(0x16f)](_0x524989['Injector'])),_0x22e388(0x2,_0x524989[_0x12c4cc(0x146)])],_0x282286[_0x12c4cc(0x180)]),_0x282286[_0x12c4cc(0x1f2)]=_0x441bf1,_0x282286[_0x12c4cc(0x12f)]=_0x547385,_0x282286[_0x12c4cc(0x132)]=_0x55d2a7,Object[_0x12c4cc(0x179)](_0x282286,Symbol[_0x12c4cc(0x212)],{'value':'Module'});}));function _0x374a(_0xfa316f,_0x419e50){var _0x4085c5=_0x4085();return _0x374a=function(_0x374a87,_0x38333f){_0x374a87=_0x374a87-0x126;var _0x1a136c=_0x4085c5[_0x374a87];return _0x1a136c;},_0x374a(_0xfa316f,_0x419e50);}function _0x4085(){var _0x45c096=['Stop\x20following','_injector','path','546UQyCGM','6181OIuXKm','_presenter','_univerInstanceService','DesktopLiveShareController','from','SetScrollOperation','_startPresenting','toStringTag','throttleTime','connectInjector','hasOwnProperty','pipe','disposeWithMe','startFollowing','setConfig','_liveShareService','_stopPresenting','createElement','_handleOnline','LiveShareService','_fetchOperations','getMemberID','LiveShareStatus','ICommandService','icon','length','Subject','dispose$','type','getConfig','subscribe','shouldShareOperation','_collabSession','_commandDisposable','useEffect','Present\x20this\x20document','NEW_CHANGESETS','apply','next','delete','getUnitId','concat','IConfigService','executeCommand','current','status$','touchDependencies','14667120oMQpQZ','div','registerInitialStateReporter','Fragment','stopPresenting','unsubscribe','OFFLINE','registerDependencies','jsxs','amd','LIVESHARE_TERMINATE','registerSharedOperation','stringify','children','values','DependentOn','@univerjs-pro/collaboration-client','idle','send','data','Plugin','call','onRendered','IDLE','use','RxDisposable','override','operations','CollaborationEvent','LIVESHARE_OPERATION','UniverDesign','init','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','indexOf','_uiPartsService','690994HYNmci','Inject','includes','onCommandExecuted','0\x200\x2017\x2017','has','LIVESHARE_REQUEST_HOST','forwardRef','entries','DisposableCollection','offline','defineProperty','substring','dispose','useObservable','map','SetWorksheetActiveOperation','extend','UniverLiveSharePlugin','live-share-icon','getOwnPropertySymbols','object','defIds','toDisposable','parse','reverse','assign','_stopFollowing','svg','NOT_FOLLOWING','256428hpOByG','univer-mb-3\x20univer-w-full\x20univer-text-sm','BuiltInUIPart','params','Injector','clsx','3aOMAgD','attrs','SAME_OPERATION_SHARE_INTERVAL','InsertSheetMutation','pluginName','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','operators','IUIPartsService','UniverIcon','parseProtocolChangeset','_config','UniverSheets','UNIVER_UNKNOWN','_entities','useRef','UniverProLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_SHEET','requireSession','_configService','mask','fill','You\x27are\x20offline.','_sharedOperations','evenodd','_reporters','end','prototype','Button','not-following','event$','Disposable','presenter','_startLiveShareCoordinator','ONLINE','LiveShareCoordinator','colorChannel1','_unitID','currentColor','_status$','UniverProCollaboration','1em','createInstance','useDependency','LiveShareIcon','xlink:href','getTypeOfUnitAdded$','url(#$1','_handleOffline','unitId','univer-size-4','takeUntil','_beIdle','getInitialStates','tryStartPresenting','string','defs','symbol','_startFollowing','UniverInstanceType','SessionStatus','following','registerComponent','button','exports','getOwnPropertyDescriptor','@univerjs/sheets','_init','_commandService','set','trim','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','random','_mountLiveShare','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','default','LIVESHARE_NEW_HOST','_handleTerminate','jsx','CommandType','presenting','forEach','_status','useState','idSuffix','PRESENTING','complete','@univerjs/sheets-ui','4058390xJuZWE','LiveShareController','LIVESHARE_FETCH_OPERATIONS','className','find','get','LiveShare','stopFollowing','sheet','_handleOperation','tag','CollaborationSessionService','You\x27re\x20presenting\x20the\x20document','getValue','BehaviorSubject','FOLLOWING','function','3013988wuPRxd','_handleNewHost','displayName','React','Stop\x20presenting','7362600xeJLgb','clear','rxjs','asObservable','replace'];_0x4085=function(){return _0x45c096;};return _0x4085();}
|
|
1
|
+
function _0x4ff5(){var _0x88c4b4=['univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','symbol','dispose$','8014686BlZAuO','Plugin','react','getLiveShareCoordinator','concat','end','tryStartPresenting','getOwnPropertyDescriptor','You\x27are\x20offline.','_configService','toString','_stopPresenting','takeUntil','Start','UniverCore','CommandType','has','createInstance','send','disposeWithMe','1em','UNIVER_LIVE_SHARE_PLUGIN','_injector','params','replace','Dropdown','_uiPartsService','@univerjs-pro/collaboration-client','toDisposable','_unitID','CollaborationSessionService','Stop\x20presenting','_commandService','UniverProCollaborationClient','FOLLOWING','LiveShareCoordinator','registerComponent','getCurrentTypeOfUnit$','executeCommand','data','values','onRendered','override','LIVESHARE_OPERATION','2796104vkFGKX','_status','_startLiveShareCoordinator','from','Fragment','operations','delete','_entities','UNIVER_SHEET','current','then','none','12cZiCwH','default','jsx','_fetchOperations','getMemberID','_status$','Module','not-following','IConfigService','DesktopLiveShareController','prototype','includes','children','_handleOnline','SetWorksheetActiveOperation','_handleTerminate','SetScrollOperation','map','ICommandService','react/jsx-runtime','Inject','init','connectInjector','_startFollowing','getUnitId','presenter','_collabSession','parse','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','entries','ONLINE','onCommandExecuted','call','onStarting','add','RxDisposable','string','UniverSheetsUi','InsertSheetMutation','_presenter','amd','UniverUi','stringify','SAME_OPERATION_SHARE_INTERVAL','BuiltInUIPart','button','@univerjs/sheets','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','193910aaORvR','IDLE','You\x27re\x20presenting\x20the\x20document','LiveShareController','513fAktli','clear','univer-size-4','extend','offline','displayName','setConfig','LIVESHARE_NEW_HOST','_liveShareService','registerSharedOperation','length','UniverSheets','UniverDesign','_config','http://www.w3.org/2000/svg','UniverProCollaboration','fill','BehaviorSubject','Injector','idSuffix','text','useObservable','substring','forEach','useState','svg','parseProtocolChangeset','url(#$1','startFollowing','getOwnPropertySymbols','LIVESHARE_REQUEST_HOST','assign','_univerInstanceService','stopPresenting','status$','pluginName','sheet','_beIdle','colorChannel1','DisposableCollection','toStringTag','@univerjs-pro/collaboration','LiveShare','React','merge','_reporters','icon','_handleOffline','attrs','_handleNewChangeSets','jsxs','UniverInstanceType','LIVESHARE_TERMINATE','200JcmIqW','getTypeOfUnitDisposed$','41712pjBbPZ','touchDependencies','PRESENTING','OFFLINE','tag','CollaborationEvent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','className','UNIVER_UNKNOWN','IUIPartsService','clsx','mutations','shouldShareOperation','Subject','presenting','Present\x20this\x20document','LiveShareService','throttleTime','set','_init','5971700nzdNQT','dispose','UniverIcon','div','@univerjs/ui','getInitialStates','UniverCollaborationClientPlugin','UniverLiveSharePlugin','indexOf','LiveShareStatus','You\x27re\x20not\x20following\x20the\x20presenter','event$','defIds','LiveShareIcon','Button','exports','1760370TfCpgz','_sharedOperations','stopFollowing','mask','propertyIsEnumerable','_handleOperation','sessionStatus$','asObservable','DependentOn','createElement','Start\x20following','next','useEffect','UniverProLiveShare','Disposable','_commandDisposable','useRef','reverse','pipe','idle','subscribe','rxjs','following','hasOwnProperty','currentColor','evenodd','_mountLiveShare','type','useDependency','random','xlink:href','NOT_FOLLOWING','forwardRef','SessionStatus','_stopFollowing','requireSession','HEADER_MENU','574198bszDlr','@univerjs/sheets-ui','get','function','_startPresenting','live-share-icon','defineProperty'];_0x4ff5=function(){return _0x88c4b4;};return _0x4ff5();}function _0x16b0(_0xd5dd04,_0x814365){var _0x4ff517=_0x4ff5();return _0x16b0=function(_0x16b091,_0x2f7e59){_0x16b091=_0x16b091-0xdb;var _0x1551ce=_0x4ff517[_0x16b091];return _0x1551ce;},_0x16b0(_0xd5dd04,_0x814365);}(function(_0x4936bd,_0x519c64){var _0x893867=_0x16b0,_0x35be00=_0x4936bd();while(!![]){try{var _0x4380b0=-parseInt(_0x893867(0x10c))/0x1+parseInt(_0x893867(0x1b8))/0x2*(parseInt(_0x893867(0x1ba))/0x3)+parseInt(_0x893867(0x14e))/0x4*(-parseInt(_0x893867(0xe7))/0x5)+parseInt(_0x893867(0x116))/0x6+-parseInt(_0x893867(0x1ce))/0x7+-parseInt(_0x893867(0x142))/0x8+parseInt(_0x893867(0x183))/0x9*(parseInt(_0x893867(0x17f))/0xa);if(_0x4380b0===_0x519c64)break;else _0x35be00['push'](_0x35be00['shift']());}catch(_0x2bb81f){_0x35be00['push'](_0x35be00['shift']());}}}(_0x4ff5,0xf3c23),function(_0x25e1bd,_0x33eb05){var _0x3ba8e7=_0x16b0;typeof exports=='object'&&typeof module<'u'?_0x33eb05(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3ba8e7(0x10f)&&define[_0x3ba8e7(0x177)]?define([_0x3ba8e7(0xe6),'@univerjs/core',_0x3ba8e7(0xdb),_0x3ba8e7(0x161),'@univerjs/design',_0x3ba8e7(0x118),_0x3ba8e7(0x1ac),_0x3ba8e7(0x131),_0x3ba8e7(0x17d),'rxjs','rxjs/operators',_0x3ba8e7(0x10d)],_0x33eb05):(_0x25e1bd=typeof globalThis<'u'?globalThis:_0x25e1bd||self,_0x33eb05(_0x25e1bd[_0x3ba8e7(0xf4)]={},_0x25e1bd[_0x3ba8e7(0x124)],_0x25e1bd[_0x3ba8e7(0x178)],_0x25e1bd[_0x3ba8e7(0x1ae)],_0x25e1bd[_0x3ba8e7(0x18f)],_0x25e1bd[_0x3ba8e7(0x1ae)],_0x25e1bd[_0x3ba8e7(0x192)],_0x25e1bd[_0x3ba8e7(0x137)],_0x25e1bd[_0x3ba8e7(0x18e)],_0x25e1bd[_0x3ba8e7(0xfc)],_0x25e1bd[_0x3ba8e7(0xfc)]['operators'],_0x25e1bd[_0x3ba8e7(0x174)]));}(this,function(_0x522538,_0xf8ec0e,_0x31f6ab,_0x416ab0,_0x49e7d0,_0x29224a,_0xc7154f,_0x45ba65,_0xa2e87a,_0x4da23e,_0x5c1744,_0x12c958){'use strict';var _0x5b55f7=_0x16b0;var _0x4b8764=Object[_0x5b55f7(0x112)],_0x3c2c91=(_0x22b945,_0x3c3d0d,_0x3c331e)=>_0x3c3d0d in _0x22b945?_0x4b8764(_0x22b945,_0x3c3d0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c331e}):_0x22b945[_0x3c3d0d]=_0x3c331e,_0x548323=(_0x1c8bb9,_0x2f6745,_0x629984)=>_0x3c2c91(_0x1c8bb9,typeof _0x2f6745!=_0x5b55f7(0x114)?_0x2f6745+'':_0x2f6745,_0x629984),_0x10ea58=function(){var _0x48ef38=_0x5b55f7;return _0x10ea58=Object[_0x48ef38(0x1a2)]||function(_0xb8b48b){var _0x5d8d8d=_0x48ef38;for(var _0x56ea21,_0x78b5a=0x1,_0x3f5ff4=arguments[_0x5d8d8d(0x18d)];_0x78b5a<_0x3f5ff4;_0x78b5a++){_0x56ea21=arguments[_0x78b5a];for(var _0x4e0d7e in _0x56ea21)Object[_0x5d8d8d(0x158)]['hasOwnProperty'][_0x5d8d8d(0x16f)](_0x56ea21,_0x4e0d7e)&&(_0xb8b48b[_0x4e0d7e]=_0x56ea21[_0x4e0d7e]);}return _0xb8b48b;},_0x10ea58['apply'](this,arguments);},_0x5b1629=function(_0x2f6c7d,_0x1d45fc){var _0x16253a=_0x5b55f7,_0x463957={};for(var _0x48e669 in _0x2f6c7d)Object['prototype'][_0x16253a(0xfe)][_0x16253a(0x16f)](_0x2f6c7d,_0x48e669)&&_0x1d45fc[_0x16253a(0xdf)](_0x48e669)<0x0&&(_0x463957[_0x48e669]=_0x2f6c7d[_0x48e669]);if(_0x2f6c7d!=null&&typeof Object[_0x16253a(0x1a0)]=='function'){for(var _0x12f0a8=0x0,_0x48e669=Object['getOwnPropertySymbols'](_0x2f6c7d);_0x12f0a8<_0x48e669[_0x16253a(0x18d)];_0x12f0a8++)_0x1d45fc[_0x16253a(0xdf)](_0x48e669[_0x12f0a8])<0x0&&Object[_0x16253a(0x158)][_0x16253a(0xeb)][_0x16253a(0x16f)](_0x2f6c7d,_0x48e669[_0x12f0a8])&&(_0x463957[_0x48e669[_0x12f0a8]]=_0x2f6c7d[_0x48e669[_0x12f0a8]]);}return _0x463957;},_0x398f51=_0x29224a[_0x5b55f7(0x107)](function(_0x345349,_0x4a170c){var _0x4d375a=_0x5b55f7,_0x4243d3=_0x345349[_0x4d375a(0x1b1)],_0x10bd51=_0x345349['id'],_0x4040bc=_0x345349[_0x4d375a(0x1c1)],_0x3d1e32=_0x345349[_0x4d375a(0x186)],_0x8bcae1=_0x5b1629(_0x345349,[_0x4d375a(0x1b1),'id',_0x4d375a(0x1c1),'extend']),_0x2e89af='univerjs-icon\x20univerjs-icon-'[_0x4d375a(0x11a)](_0x10bd51,'\x20')['concat'](_0x4040bc||'')['trim'](),_0x76969=_0x29224a['useRef']('_'[_0x4d375a(0x11a)](_0x16963c()));return _0x2b6589(_0x4243d3,''[_0x4d375a(0x11a)](_0x10bd51),{'defIds':_0x4243d3[_0x4d375a(0xe3)],'idSuffix':_0x76969[_0x4d375a(0x14b)]},_0x10ea58({'ref':_0x4a170c,'className':_0x2e89af},_0x8bcae1),_0x3d1e32);});function _0x2b6589(_0x5e92fd,_0x5a4b66,_0x2f0a4d,_0x3a959b,_0x465c2c){var _0x487c36=_0x5b55f7;return _0x29224a[_0x487c36(0xf0)](_0x5e92fd[_0x487c36(0x1be)],_0x10ea58(_0x10ea58({'key':_0x5a4b66},_0x4d377a(_0x5e92fd,_0x2f0a4d,_0x465c2c)),_0x3a959b),(_0x3a3af8(_0x5e92fd,_0x2f0a4d)['children']||[])[_0x487c36(0x15f)](function(_0x1e2798,_0x322494){var _0x52eea3=_0x487c36;return _0x2b6589(_0x1e2798,''[_0x52eea3(0x11a)](_0x5a4b66,'-')[_0x52eea3(0x11a)](_0x5e92fd[_0x52eea3(0x1be)],'-')['concat'](_0x322494),_0x2f0a4d,void 0x0,_0x465c2c);}));}function _0x4d377a(_0x580f22,_0x182b89,_0x19a403){var _0x44e515=_0x5b55f7,_0x4747cc=_0x10ea58({},_0x580f22[_0x44e515(0x1b3)]);_0x19a403!=null&&_0x19a403[_0x44e515(0x1a9)]&&_0x4747cc[_0x44e515(0x193)]==='colorChannel1'&&(_0x4747cc[_0x44e515(0x193)]=_0x19a403[_0x44e515(0x1a9)]),_0x580f22['tag']==='mask'&&_0x4747cc['id']&&(_0x4747cc['id']=_0x4747cc['id']+_0x182b89['idSuffix']),Object[_0x44e515(0x16c)](_0x4747cc)[_0x44e515(0x19a)](function(_0x464da9){var _0x2e33f6=_0x44e515,_0x8d0a59=_0x464da9[0x0],_0x33a84e=_0x464da9[0x1];_0x8d0a59===_0x2e33f6(0xea)&&typeof _0x33a84e==_0x2e33f6(0x173)&&(_0x4747cc[_0x8d0a59]=_0x33a84e[_0x2e33f6(0x12e)](/url\(#(.*)\)/,_0x2e33f6(0x19e)[_0x2e33f6(0x11a)](_0x182b89['idSuffix'],')')));});var _0x4605e9=_0x182b89[_0x44e515(0xe3)];return!_0x4605e9||_0x4605e9['length']===0x0||(_0x580f22[_0x44e515(0x1be)]==='use'&&_0x4747cc[_0x44e515(0x105)]&&(_0x4747cc[_0x44e515(0x105)]=_0x4747cc[_0x44e515(0x105)]+_0x182b89[_0x44e515(0x196)]),Object[_0x44e515(0x16c)](_0x4747cc)[_0x44e515(0x19a)](function(_0x21e6b9){var _0x32a3e5=_0x44e515,_0x4b9930=_0x21e6b9[0x0],_0x24a4ef=_0x21e6b9[0x1];typeof _0x24a4ef==_0x32a3e5(0x173)&&(_0x4747cc[_0x4b9930]=_0x24a4ef[_0x32a3e5(0x12e)](/url\(#(.*)\)/,_0x32a3e5(0x19e)[_0x32a3e5(0x11a)](_0x182b89['idSuffix'],')')));})),_0x4747cc;}function _0x3a3af8(_0x1d8df5,_0x246a05){var _0xc401f9=_0x5b55f7,_0x48045c,_0x28e3b0=_0x246a05[_0xc401f9(0xe3)];return!_0x28e3b0||_0x28e3b0[_0xc401f9(0x18d)]===0x0?_0x1d8df5:_0x1d8df5[_0xc401f9(0x1be)]==='defs'&&(!((_0x48045c=_0x1d8df5[_0xc401f9(0x15a)])===null||_0x48045c===void 0x0)&&_0x48045c['length'])?_0x10ea58(_0x10ea58({},_0x1d8df5),{'children':_0x1d8df5[_0xc401f9(0x15a)][_0xc401f9(0x15f)](function(_0x2332cd){var _0x628c19=_0xc401f9;return typeof _0x2332cd[_0x628c19(0x1b3)]['id']==_0x628c19(0x173)&&_0x28e3b0&&_0x28e3b0[_0x628c19(0x159)](_0x2332cd[_0x628c19(0x1b3)]['id'])?_0x10ea58(_0x10ea58({},_0x2332cd),{'attrs':_0x10ea58(_0x10ea58({},_0x2332cd['attrs']),{'id':_0x2332cd[_0x628c19(0x1b3)]['id']+_0x246a05[_0x628c19(0x196)]})}):_0x2332cd;})}):_0x1d8df5;}function _0x16963c(){var _0x299960=_0x5b55f7;return Math[_0x299960(0x104)]()[_0x299960(0x120)](0x24)[_0x299960(0x199)](0x2,0x8);}_0x398f51[_0x5b55f7(0x188)]=_0x5b55f7(0x1d0);var _0x255373={'tag':_0x5b55f7(0x19c),'attrs':{'xmlns':_0x5b55f7(0x191),'fill':_0x5b55f7(0x14d),'viewBox':'0\x200\x2017\x2017','width':_0x5b55f7(0x12a),'height':_0x5b55f7(0x12a)},'children':[{'tag':'path','attrs':{'fill':_0x5b55f7(0xff),'d':_0x5b55f7(0x17e)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x5b55f7(0x100)}}]},_0x10893e=_0x29224a[_0x5b55f7(0x107)](function(_0x322d80,_0x49bfef){var _0x129116=_0x5b55f7;return _0x29224a[_0x129116(0xf0)](_0x398f51,Object[_0x129116(0x1a2)]({},_0x322d80,{'id':_0x129116(0x111),'ref':_0x49bfef,'icon':_0x255373}));});_0x10893e[_0x5b55f7(0x188)]=_0x5b55f7(0xe4);class _0x8835ce extends _0xf8ec0e[_0x5b55f7(0xf5)]{constructor(){var _0xfa3d6c=_0x5b55f7;super(...arguments),_0x548323(this,_0xfa3d6c(0xe8),new Set()),_0x548323(this,_0xfa3d6c(0x1b0),new Set());}[_0x5b55f7(0x18c)](_0x18194d){var _0x4f7f05=_0x5b55f7;return this['_sharedOperations']['add'](_0x18194d),_0xf8ec0e[_0x4f7f05(0x132)](()=>this[_0x4f7f05(0xe8)][_0x4f7f05(0x148)](_0x18194d));}['registerInitialStateReporter'](_0x3c55c4){var _0x3df834=_0x5b55f7;return this[_0x3df834(0x1b0)]['add'](_0x3c55c4),_0xf8ec0e[_0x3df834(0x132)](()=>this[_0x3df834(0x1b0)][_0x3df834(0x148)](_0x3c55c4));}[_0x5b55f7(0x1c6)](_0x585a4b){var _0x369da5=_0x5b55f7;return this['_sharedOperations'][_0x369da5(0x126)](_0x585a4b);}['getInitialStates'](_0x22a279){var _0x20a341=_0x5b55f7;return Array[_0x20a341(0x145)](this[_0x20a341(0x1b0)])[_0x20a341(0x15f)](_0x1b164d=>_0x1b164d(_0x22a279));}}var _0x511c31=Object[_0x5b55f7(0x11d)],_0x11fc1f=(_0x4fd90d,_0x26af9f,_0x1275dd,_0xd7ff7f)=>{var _0x456a2c=_0x5b55f7;for(var _0x190914=_0xd7ff7f>0x1?void 0x0:_0xd7ff7f?_0x511c31(_0x26af9f,_0x1275dd):_0x26af9f,_0x4fc0c7=_0x4fd90d[_0x456a2c(0x18d)]-0x1,_0x4f7a48;_0x4fc0c7>=0x0;_0x4fc0c7--)(_0x4f7a48=_0x4fd90d[_0x4fc0c7])&&(_0x190914=_0x4f7a48(_0x190914)||_0x190914);return _0x190914;},_0x1a772e=(_0x585e5f,_0x2080af)=>(_0xcd65e1,_0x5ae038)=>_0x2080af(_0xcd65e1,_0x5ae038,_0x585e5f);_0x522538['LiveShareController']=class extends _0xf8ec0e[_0x5b55f7(0x172)]{constructor(_0x561ee,_0x194733,_0xcb1479){var _0x55c06f=_0x5b55f7;super(),_0x548323(this,'_entities',new Map()),(this[_0x55c06f(0x1a3)]=_0x561ee,this[_0x55c06f(0x12c)]=_0x194733,this['_collabSessionService']=_0xcb1479,this[_0x55c06f(0x1cd)]());}async['getLiveShareCoordinator'](_0x1a0fad){var _0x4ce554=_0x5b55f7;return this[_0x4ce554(0x149)][_0x4ce554(0x126)](_0x1a0fad)||await this[_0x4ce554(0x144)](_0x1a0fad),this[_0x4ce554(0x149)]['get'](_0x1a0fad);}[_0x5b55f7(0x1cd)](){var _0x319871=_0x5b55f7;this[_0x319871(0x1a3)]['getTypeOfUnitAdded$'](_0xf8ec0e[_0x319871(0x1b6)][_0x319871(0x14a)])[_0x319871(0xf9)](_0x5c1744[_0x319871(0x122)](this[_0x319871(0x115)]))[_0x319871(0xfb)](async _0x437134=>{var _0x3593b2=_0x319871;const _0x5dae77=_0x437134[_0x3593b2(0x166)]();this[_0x3593b2(0x149)]['has'](_0x5dae77)||this[_0x3593b2(0x144)](_0x5dae77);}),this[_0x319871(0x1a3)][_0x319871(0x1b9)](_0xf8ec0e[_0x319871(0x1b6)][_0x319871(0x14a)])[_0x319871(0xf9)](_0x5c1744['takeUntil'](this['dispose$']))[_0x319871(0xfb)](_0x48001a=>{var _0x5e7117=_0x319871;const _0x5b0c3a=_0x48001a['getUnitId'](),_0x54e2b3=this[_0x5e7117(0x149)][_0x5e7117(0x10e)](_0x5b0c3a);_0x54e2b3==null||_0x54e2b3['dispose']();});}async[_0x5b55f7(0x144)](_0x40258c){var _0x82643b=_0x5b55f7;const _0x3a7d3a=await this['_collabSessionService'][_0x82643b(0x10a)](_0x40258c),_0x3ac7ee=this[_0x82643b(0x12c)][_0x82643b(0x127)](_0x522538[_0x82643b(0x139)],_0x40258c,_0x3a7d3a);return _0x3ac7ee[_0x82643b(0x163)](),this[_0x82643b(0x149)][_0x82643b(0x1cc)](_0x40258c,_0x3ac7ee),_0x3ac7ee;}},_0x522538['LiveShareController']=_0x11fc1f([_0x1a772e(0x0,_0xf8ec0e['IUniverInstanceService']),_0x1a772e(0x1,_0xf8ec0e[_0x5b55f7(0x162)](_0xf8ec0e[_0x5b55f7(0x195)])),_0x1a772e(0x2,_0xf8ec0e[_0x5b55f7(0x162)](_0x45ba65[_0x5b55f7(0x134)]))],_0x522538[_0x5b55f7(0x182)]);var _0x194364=(_0xc73830=>(_0xc73830[_0x5b55f7(0x1bd)]='offline',_0xc73830[_0x5b55f7(0x180)]=_0x5b55f7(0xfa),_0xc73830[_0x5b55f7(0x138)]=_0x5b55f7(0xfd),_0xc73830[_0x5b55f7(0x106)]=_0x5b55f7(0x155),_0xc73830[_0x5b55f7(0x1bc)]='presenting',_0xc73830))(_0x194364||{});const _0x115f1c=_0x5b55f7(0x17a),_0x57f0a9=0xc8;_0x522538[_0x5b55f7(0x139)]=class extends _0xf8ec0e[_0x5b55f7(0x172)]{constructor(_0x1c79f0,_0x26a68f,_0x477f84,_0xeae7a0,_0x21682a){var _0x6dc632=_0x5b55f7;super(),_0x548323(this,_0x6dc632(0x153),new _0x4da23e[(_0x6dc632(0x194))](_0x6dc632(0xfa))),_0x548323(this,_0x6dc632(0x1a5),this[_0x6dc632(0x153)][_0x6dc632(0xee)]()),_0x548323(this,_0x6dc632(0x1cd),!0x1),_0x548323(this,'_commandDisposable',null),_0x548323(this,_0x6dc632(0x176),null),(this['_unitID']=_0x1c79f0,this[_0x6dc632(0x168)]=_0x26a68f,this[_0x6dc632(0x11f)]=_0x477f84,this[_0x6dc632(0x18b)]=_0xeae7a0,this['_commandService']=_0x21682a);}get[_0x5b55f7(0x143)](){return this['_status$']['getValue']();}['dispose'](){var _0x185a86=_0x5b55f7,_0x467938;(_0x467938=this[_0x185a86(0xf6)])==null||_0x467938[_0x185a86(0x1cf)](),this[_0x185a86(0x153)]['next'](_0x185a86(0xfa)),this[_0x185a86(0x153)]['complete']();}[_0x5b55f7(0x163)](){var _0x3c4bea=_0x5b55f7;this[_0x3c4bea(0x1cd)]||(this[_0x3c4bea(0x1cd)]=!0x0,this[_0x3c4bea(0x168)][_0x3c4bea(0xed)][_0x3c4bea(0xf9)](_0x5c1744[_0x3c4bea(0x122)](this[_0x3c4bea(0x115)]))[_0x3c4bea(0xfb)](_0x36717f=>{var _0x4978e5=_0x3c4bea;switch(_0x36717f){case _0x45ba65['SessionStatus'][_0x4978e5(0x1bd)]:this[_0x4978e5(0x1b2)]();break;case _0x45ba65[_0x4978e5(0x108)][_0x4978e5(0x16d)]:this[_0x4978e5(0x15b)]();break;}}),this[_0x3c4bea(0x168)][_0x3c4bea(0xe2)][_0x3c4bea(0xf9)](_0x5c1744[_0x3c4bea(0x122)](this['dispose$']))['subscribe'](_0x5b3fde=>{var _0x3147fa=_0x3c4bea;const {eventID:_0x313a1f}=_0x5b3fde;switch(_0x313a1f){case _0xc7154f[_0x3147fa(0x1bf)][_0x3147fa(0x18a)]:this['_handleNewHost'](_0x5b3fde);break;case _0xc7154f[_0x3147fa(0x1bf)][_0x3147fa(0x141)]:this[_0x3147fa(0xec)](_0x5b3fde);break;case _0xc7154f['CollaborationEvent'][_0x3147fa(0x1b7)]:this[_0x3147fa(0x15d)]();break;case _0xc7154f[_0x3147fa(0x1bf)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5b3fde);break;}}));}[_0x5b55f7(0x11c)](){var _0x51056f=_0x5b55f7;this[_0x51056f(0x168)][_0x51056f(0x128)]({'eventID':_0xc7154f[_0x51056f(0x1bf)][_0x51056f(0x1a1)],'data':{'unitID':this[_0x51056f(0x133)],'userID':this[_0x51056f(0x168)]['getMemberID']()}},this[_0x51056f(0x133)]);}[_0x5b55f7(0x1a4)](){var _0x494e19=_0x5b55f7;this[_0x494e19(0x143)]===_0x494e19(0x1c8)&&(this[_0x494e19(0x153)][_0x494e19(0xf2)](_0x494e19(0xfa)),this[_0x494e19(0x168)][_0x494e19(0x128)]({'eventID':_0xc7154f[_0x494e19(0x1bf)][_0x494e19(0x1b7)],'data':{'unitID':this[_0x494e19(0x133)]}},this[_0x494e19(0x133)]));}[_0x5b55f7(0x19f)](){var _0x56d388=_0x5b55f7;this[_0x56d388(0x143)]===_0x56d388(0x155)&&(this[_0x56d388(0x153)][_0x56d388(0xf2)](_0x56d388(0xfd)),this['_startFollowing']());}[_0x5b55f7(0xe9)](){var _0x3cf936=_0x5b55f7;this[_0x3cf936(0x143)]===_0x3cf936(0xfd)&&this[_0x3cf936(0x109)]();}['_handleNewHost'](_0x284f30){var _0x3c1f0a=_0x5b55f7;const {presenter:_0x40e06d}=_0x284f30[_0x3c1f0a(0x13d)],_0x543f2=this['_collabSession'][_0x3c1f0a(0x152)]();this[_0x3c1f0a(0x176)]=_0x40e06d,_0x40e06d===_0x543f2?(this[_0x3c1f0a(0x109)](),this[_0x3c1f0a(0x110)]()):this[_0x3c1f0a(0x143)]!==_0x3c1f0a(0x155)&&(this[_0x3c1f0a(0x121)](),this[_0x3c1f0a(0x165)]());}[_0x5b55f7(0x151)](){var _0x2c7e47=_0x5b55f7;const _0x4c6b61={'eventID':_0xc7154f['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x2c7e47(0x168)][_0x2c7e47(0x128)](_0x4c6b61,this['_unitID']);}[_0x5b55f7(0x15d)](){var _0x1a9234=_0x5b55f7;this[_0x1a9234(0x176)]=null,this['_status']!==_0x1a9234(0x1c8)&&this[_0x1a9234(0x1a8)]();}[_0x5b55f7(0x1b4)](_0x289a31){var _0x4abd3d=_0x5b55f7;if(this[_0x4abd3d(0x143)]===_0x4abd3d(0xfd)&&this[_0x4abd3d(0x176)]===_0x289a31[_0x4abd3d(0x13d)]['memberID']){const _0x3647f3=_0xc7154f[_0x4abd3d(0x19d)](_0x289a31['data'])[_0x4abd3d(0x1c5)][_0x4abd3d(0xf8)]()['find'](_0x1dbaed=>_0x1dbaed['id']===_0xa2e87a[_0x4abd3d(0x175)]['id']);if(_0x3647f3){const _0x490ffc=_0x3647f3[_0x4abd3d(0x12d)]['unitId'],_0xac0444=_0x3647f3[_0x4abd3d(0x12d)][_0x4abd3d(0x1a7)]['id'];setTimeout(()=>{var _0x408ed2=_0x4abd3d;this['_commandService']['executeCommand'](_0xa2e87a[_0x408ed2(0x15c)]['id'],{'unitId':_0x490ffc,'subUnitId':_0xac0444},{'fromCollab':!0x0});});}}}[_0x5b55f7(0x110)](){var _0x1241a3=_0x5b55f7;this[_0x1241a3(0x153)][_0x1241a3(0xf2)](_0x1241a3(0x1c8));const _0x14a816=new Map(),_0x6553f6=this[_0x1241a3(0xf6)]=new _0xf8ec0e[(_0x1241a3(0x1aa))]();_0x6553f6['add'](_0xf8ec0e[_0x1241a3(0x132)](()=>{var _0x28d78f=_0x1241a3;_0x14a816[_0x28d78f(0x19a)](_0x1aaca3=>_0x1aaca3['complete']()),_0x14a816[_0x28d78f(0x184)]();})),_0x6553f6[_0x1241a3(0x171)](this[_0x1241a3(0x136)][_0x1241a3(0x16e)](_0x5f0aee=>{var _0xfbb0ce=_0x1241a3,_0x909685;if(_0x5f0aee[_0xfbb0ce(0x102)]!==_0xf8ec0e[_0xfbb0ce(0x125)]['OPERATION']||!this[_0xfbb0ce(0x18b)][_0xfbb0ce(0x1c6)](_0x5f0aee['id']))return;const {id:_0x597b19}=_0x5f0aee;let _0x85bf5a;_0x14a816[_0xfbb0ce(0x126)](_0x597b19)?_0x85bf5a=_0x14a816[_0xfbb0ce(0x10e)](_0x597b19):(_0x85bf5a=new _0x4da23e[(_0xfbb0ce(0x1c7))](),_0x14a816[_0xfbb0ce(0x1cc)](_0x597b19,_0x85bf5a),_0x85bf5a[_0xfbb0ce(0xf9)](_0x5c1744[_0xfbb0ce(0x1cb)]((_0x909685=this['_configService']['getConfig'](_0x115f1c))!=null?_0x909685:_0x57f0a9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfbb0ce(0xfb)](_0x5c4f19=>{var _0x528894=_0xfbb0ce;this[_0x528894(0x168)][_0x528894(0x128)]({'eventID':_0xc7154f['CollaborationEvent'][_0x528894(0x141)],'data':{'unitID':this[_0x528894(0x133)],'operations':{[_0x5c4f19['id']]:{'id':_0x5c4f19['id'],'params':JSON[_0x528894(0x179)](_0x5c4f19[_0x528894(0x12d)])}}}},this[_0x528894(0x133)]);})),_0x85bf5a[_0xfbb0ce(0xf2)](_0x5f0aee);})),this[_0x1241a3(0x18b)][_0x1241a3(0xdc)](this[_0x1241a3(0x133)])[_0x1241a3(0x19a)](_0x636fc0=>this[_0x1241a3(0x168)][_0x1241a3(0x128)]({'eventID':_0xc7154f[_0x1241a3(0x1bf)][_0x1241a3(0x141)],'data':{'unitID':this[_0x1241a3(0x133)],'operations':{[_0x636fc0['id']]:{'id':_0x636fc0['id'],'params':JSON[_0x1241a3(0x179)](_0x636fc0[_0x1241a3(0x12d)])}}}},this[_0x1241a3(0x133)]));}[_0x5b55f7(0x121)](){var _0x4bf1ca=_0x5b55f7,_0x2c9538;this[_0x4bf1ca(0x153)]['next'](_0x4bf1ca(0xfa)),(_0x2c9538=this[_0x4bf1ca(0xf6)])==null||_0x2c9538[_0x4bf1ca(0x1cf)](),this[_0x4bf1ca(0xf6)]=null;}[_0x5b55f7(0x165)](){var _0x296745=_0x5b55f7,_0x502f5f;(_0x502f5f=this[_0x296745(0xf6)])==null||_0x502f5f[_0x296745(0x1cf)](),this['_status$']['next'](_0x296745(0xfd));}[_0x5b55f7(0x1a8)](){var _0x33ae85=_0x5b55f7,_0x49be9e;this[_0x33ae85(0x153)][_0x33ae85(0xf2)](_0x33ae85(0xfa)),(_0x49be9e=this['_commandDisposable'])==null||_0x49be9e['dispose'](),this[_0x33ae85(0xf6)]=null;}[_0x5b55f7(0x109)](){var _0x440af4=_0x5b55f7,_0x4e93fa;this[_0x440af4(0x153)]['next'](_0x440af4(0x155)),(_0x4e93fa=this[_0x440af4(0xf6)])==null||_0x4e93fa['dispose']();}[_0x5b55f7(0xec)](_0x3b75c4){var _0x3f4119=_0x5b55f7;if([_0x3f4119(0x1c8),_0x3f4119(0x155),_0x3f4119(0x187)]['includes'](this[_0x3f4119(0x143)])||!_0x3b75c4[_0x3f4119(0x13d)][_0x3f4119(0x167)]||_0x3b75c4[_0x3f4119(0x13d)][_0x3f4119(0x167)]===this[_0x3f4119(0x168)][_0x3f4119(0x152)]())return;this[_0x3f4119(0x143)]==='idle'&&this[_0x3f4119(0x165)]();const _0x268947=_0x3b75c4[_0x3f4119(0x13d)][_0x3f4119(0x147)];Object[_0x3f4119(0x13e)](_0x268947)[_0x3f4119(0x19a)](_0x5b48b5=>{var _0x3402a1=_0x3f4119;this[_0x3402a1(0x136)][_0x3402a1(0x13c)](_0x5b48b5['id'],_0x5b48b5['params']?JSON[_0x3402a1(0x169)](_0x5b48b5[_0x3402a1(0x12d)]):null,{'fromCollab':!0x0});});}[_0x5b55f7(0x1b2)](){var _0x4515f1=_0x5b55f7,_0x211a24;this[_0x4515f1(0x153)][_0x4515f1(0xf2)](_0x4515f1(0x187)),(_0x211a24=this[_0x4515f1(0xf6)])==null||_0x211a24[_0x4515f1(0x1cf)]();}['_handleOnline'](){var _0x14e5d8=_0x5b55f7;this[_0x14e5d8(0x153)][_0x14e5d8(0xf2)](_0x14e5d8(0xfa)),this[_0x14e5d8(0x151)]();}},_0x522538[_0x5b55f7(0x139)]=_0x11fc1f([_0x1a772e(0x2,_0xf8ec0e[_0x5b55f7(0x156)]),_0x1a772e(0x3,_0xf8ec0e[_0x5b55f7(0x162)](_0x8835ce)),_0x1a772e(0x4,_0xf8ec0e[_0x5b55f7(0x160)])],_0x522538[_0x5b55f7(0x139)]);function _0x1d93e9(){var _0x4efe96=_0x5b55f7;const _0x547794=_0x31f6ab[_0x4efe96(0x103)](_0x522538[_0x4efe96(0x182)]),_0x5b4e92=_0x31f6ab[_0x4efe96(0x103)](_0xf8ec0e[_0x4efe96(0x16a)]),_0x3ea376=_0x31f6ab[_0x4efe96(0x198)](()=>_0x5b4e92[_0x4efe96(0x13b)](_0xf8ec0e['UniverInstanceType'][_0x4efe96(0x14a)]),void 0x0,!0x1,[]),[_0x493fe8,_0x5a9f38]=_0x29224a[_0x4efe96(0x19b)](null),[_0x47d342,_0x3d7cfc]=_0x29224a[_0x4efe96(0x19b)](_0x194364[_0x4efe96(0x180)]),_0x1e247a=_0x29224a[_0x4efe96(0xf7)](null);return _0x29224a[_0x4efe96(0xf3)](()=>(_0x3ea376&&_0x547794[_0x4efe96(0x119)](_0x3ea376[_0x4efe96(0x166)]())[_0x4efe96(0x14c)](_0x544516=>{var _0x3fa166=_0x4efe96;_0x5a9f38(_0x544516),_0x1e247a['current']=_0x544516['status$'][_0x3fa166(0xfb)](_0x3c4f10=>{_0x3d7cfc(_0x3c4f10);});}),()=>{var _0x1c70d3=_0x4efe96,_0x12c45d;(_0x12c45d=_0x1e247a['current'])==null||_0x12c45d['unsubscribe'](),_0x1e247a[_0x1c70d3(0x14b)]=null;}),[_0x3ea376,_0x547794]),_0x493fe8?_0x416ab0[_0x4efe96(0x150)](_0x49e7d0[_0x4efe96(0x12f)],{'align':_0x4efe96(0x11b),'disabled':_0x47d342===_0x194364[_0x4efe96(0x1bd)],'className':_0x4efe96(0x113),'overlay':_0x416ab0[_0x4efe96(0x150)](_0xcf476d,{'status':_0x47d342,'coordinator':_0x493fe8}),'children':_0x416ab0[_0x4efe96(0x150)](_0x4efe96(0x17c),{'className':_0x49e7d0[_0x4efe96(0x1c4)](_0x4efe96(0x1c0),{'univer-cursor-not-allowed':_0x47d342===_0x194364[_0x4efe96(0x1bd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47d342!==_0x194364['OFFLINE']}),'type':_0x4efe96(0x17c),'children':_0x416ab0[_0x4efe96(0x150)](_0x10893e,{'className':_0x4efe96(0x185)})})}):null;}function _0xcf476d(_0x52e503){var _0x1a9828=_0x5b55f7;const {status:_0x6cb31,coordinator:_0x47a563}=_0x52e503;switch(_0x6cb31){case _0x194364[_0x1a9828(0x180)]:return _0x416ab0['jsx'](_0x118586,{'coordinator':_0x47a563});case _0x194364[_0x1a9828(0x138)]:return _0x416ab0[_0x1a9828(0x150)](_0x1a43af,{'coordinator':_0x47a563});case _0x194364[_0x1a9828(0x106)]:return _0x416ab0[_0x1a9828(0x150)](_0xed9a99,{'coordinator':_0x47a563});case _0x194364[_0x1a9828(0x1bd)]:return _0x416ab0['jsx'](_0x357e25,{});case _0x194364['PRESENTING']:return _0x416ab0['jsx'](_0x1f4fd1,{'coordinator':_0x47a563});default:return null;}}function _0x118586(_0x589b52){var _0x5a2142=_0x5b55f7;const {coordinator:_0x4018fd}=_0x589b52;return _0x416ab0[_0x5a2142(0x1b5)](_0x416ab0[_0x5a2142(0x146)],{'children':[_0x416ab0[_0x5a2142(0x150)](_0x5a2142(0x1d1),{'className':_0x5a2142(0x16b),'children':_0x5a2142(0x1c9)}),_0x416ab0['jsx'](_0x49e7d0['Button'],{'onClick':()=>_0x4018fd[_0x5a2142(0x11c)](),'children':_0x5a2142(0x123)})]});}function _0x1a43af(_0xa0d1d){var _0x1e855e=_0x5b55f7;const {coordinator:_0x14ce0e}=_0xa0d1d;return _0x416ab0[_0x1e855e(0x1b5)](_0x416ab0[_0x1e855e(0x146)],{'children':[_0x416ab0[_0x1e855e(0x150)](_0x1e855e(0x1d1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x416ab0[_0x1e855e(0x150)](_0x49e7d0[_0x1e855e(0xe5)],{'onClick':()=>_0x14ce0e[_0x1e855e(0xe9)](),'children':'Stop\x20following'})]});}function _0xed9a99(_0x1b351f){var _0x2f9c95=_0x5b55f7;const {coordinator:_0x41d5b5}=_0x1b351f;return _0x416ab0['jsxs'](_0x416ab0[_0x2f9c95(0x146)],{'children':[_0x416ab0[_0x2f9c95(0x150)](_0x2f9c95(0x1d1),{'className':_0x2f9c95(0x16b),'children':_0x2f9c95(0xe1)}),_0x416ab0['jsx'](_0x49e7d0[_0x2f9c95(0xe5)],{'variant':_0x2f9c95(0x197),'onClick':()=>_0x41d5b5[_0x2f9c95(0x19f)](),'children':_0x2f9c95(0xf1)})]});}function _0x1f4fd1(_0x30cfcf){var _0x413830=_0x5b55f7;const {coordinator:_0x11d18f}=_0x30cfcf;return _0x416ab0[_0x413830(0x1b5)](_0x416ab0[_0x413830(0x146)],{'children':[_0x416ab0['jsx'](_0x413830(0x1d1),{'className':_0x413830(0x16b),'children':_0x413830(0x181)}),_0x416ab0[_0x413830(0x150)](_0x49e7d0[_0x413830(0xe5)],{'variant':_0x413830(0x14f),'onClick':()=>_0x11d18f['stopPresenting'](),'children':_0x413830(0x135)})]});}function _0x357e25(){var _0x5a0bd7=_0x5b55f7;return _0x416ab0[_0x5a0bd7(0x150)](_0x416ab0[_0x5a0bd7(0x146)],{'children':_0x5a0bd7(0x11e)});}var _0x1db670=Object[_0x5b55f7(0x11d)],_0x39496a=(_0x5b4297,_0x1e0bf9,_0x3b46fc,_0xc18698)=>{for(var _0x2322c2=_0xc18698>0x1?void 0x0:_0xc18698?_0x1db670(_0x1e0bf9,_0x3b46fc):_0x1e0bf9,_0x4f0d82=_0x5b4297['length']-0x1,_0x38321b;_0x4f0d82>=0x0;_0x4f0d82--)(_0x38321b=_0x5b4297[_0x4f0d82])&&(_0x2322c2=_0x38321b(_0x2322c2)||_0x2322c2);return _0x2322c2;},_0x3af9d6=(_0x3571d0,_0x2244f6)=>(_0x3b3b41,_0x5e07ab)=>_0x2244f6(_0x3b3b41,_0x5e07ab,_0x3571d0);_0x522538[_0x5b55f7(0x157)]=class extends _0xf8ec0e['Disposable']{constructor(_0x5d13c4,_0x39cd7b){var _0x61b858=_0x5b55f7;super(),this[_0x61b858(0x12c)]=_0x5d13c4,this[_0x61b858(0x130)]=_0x39cd7b,this[_0x61b858(0x101)]();}[_0x5b55f7(0x101)](){var _0x757a1c=_0x5b55f7;this[_0x757a1c(0x129)](this[_0x757a1c(0x130)][_0x757a1c(0x13a)](_0x31f6ab[_0x757a1c(0x17b)][_0x757a1c(0x10b)],()=>_0x31f6ab[_0x757a1c(0x164)](_0x1d93e9,this['_injector'])));}},_0x522538[_0x5b55f7(0x157)]=_0x39496a([_0x3af9d6(0x0,_0xf8ec0e[_0x5b55f7(0x162)](_0xf8ec0e['Injector'])),_0x3af9d6(0x1,_0x31f6ab[_0x5b55f7(0x1c3)])],_0x522538[_0x5b55f7(0x157)]);const _0x1df8bb='live-share.config',_0x46336f={};var _0x51c168=Object[_0x5b55f7(0x11d)],_0xf3a7af=(_0x22d9e1,_0x3f7e1c,_0x1edd9b,_0x199cb5)=>{var _0xfeac87=_0x5b55f7;for(var _0x19919b=_0x199cb5>0x1?void 0x0:_0x199cb5?_0x51c168(_0x3f7e1c,_0x1edd9b):_0x3f7e1c,_0x1f5cfb=_0x22d9e1[_0xfeac87(0x18d)]-0x1,_0x594dab;_0x1f5cfb>=0x0;_0x1f5cfb--)(_0x594dab=_0x22d9e1[_0x1f5cfb])&&(_0x19919b=_0x594dab(_0x19919b)||_0x19919b);return _0x19919b;},_0x5a9f80=(_0x212ac4,_0x3432cd)=>(_0x3fac2b,_0x1395b7)=>_0x3432cd(_0x3fac2b,_0x1395b7,_0x212ac4);let _0x266dc2=class extends _0xf8ec0e['Disposable']{constructor(_0xce3e03){var _0x52ee9=_0x5b55f7;super(),this['_liveShareService']=_0xce3e03,this[_0x52ee9(0x1cd)]();}[_0x5b55f7(0x1cd)](){var _0x48215a=_0x5b55f7;[_0x12c958['SetZoomRatioOperation']['id'],_0x12c958[_0x48215a(0x15e)]['id'],_0xa2e87a[_0x48215a(0x15c)]['id']][_0x48215a(0x19a)](_0x19bae2=>{var _0x1f266d=_0x48215a;this[_0x1f266d(0x129)](this[_0x1f266d(0x18b)][_0x1f266d(0x18c)](_0x19bae2));});}};_0x266dc2=_0xf3a7af([_0x5a9f80(0x0,_0xf8ec0e[_0x5b55f7(0x162)](_0x8835ce))],_0x266dc2);var _0x35b15d=Object[_0x5b55f7(0x112)],_0x34846b=Object[_0x5b55f7(0x11d)],_0x65ca97=(_0x10aaec,_0x413cfc,_0x825a54)=>_0x413cfc in _0x10aaec?_0x35b15d(_0x10aaec,_0x413cfc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x825a54}):_0x10aaec[_0x413cfc]=_0x825a54,_0x5b705d=(_0x40fd0b,_0x24d6fc,_0x4bd82d,_0x5c15e1)=>{for(var _0x1414c8=_0x5c15e1>0x1?void 0x0:_0x5c15e1?_0x34846b(_0x24d6fc,_0x4bd82d):_0x24d6fc,_0x2e3bff=_0x40fd0b['length']-0x1,_0x315bb4;_0x2e3bff>=0x0;_0x2e3bff--)(_0x315bb4=_0x40fd0b[_0x2e3bff])&&(_0x1414c8=_0x315bb4(_0x1414c8)||_0x1414c8);return _0x1414c8;},_0x29ddce=(_0x44a59f,_0xce505)=>(_0x1fb770,_0x59250c)=>_0xce505(_0x1fb770,_0x59250c,_0x44a59f),_0x114001=(_0xdcf6db,_0x16967f,_0xbb0d66)=>_0x65ca97(_0xdcf6db,typeof _0x16967f!=_0x5b55f7(0x114)?_0x16967f+'':_0x16967f,_0xbb0d66);const _0x57b05c=_0x5b55f7(0x12b);_0x522538[_0x5b55f7(0xde)]=class extends _0xf8ec0e[_0x5b55f7(0x117)]{constructor(_0x1d286f=_0x46336f,_0x566302,_0x2022ca){var _0xd846ee=_0x5b55f7;super(),this[_0xd846ee(0x190)]=_0x1d286f,this['_injector']=_0x566302,this[_0xd846ee(0x11f)]=_0x2022ca;const {..._0x5828e9}=_0xf8ec0e[_0xd846ee(0x1af)]({},_0x46336f,this['_config']);this[_0xd846ee(0x11f)][_0xd846ee(0x189)](_0x1df8bb,_0x5828e9);}[_0x5b55f7(0x170)](){var _0x226876=_0x5b55f7;_0xf8ec0e['registerDependencies'](this[_0x226876(0x12c)],_0xf8ec0e['mergeOverrideWithDependencies']([[_0x8835ce],[_0x522538[_0x226876(0x182)]],[_0x266dc2],[_0x522538[_0x226876(0x157)]]],this[_0x226876(0x190)][_0x226876(0x140)])),_0xf8ec0e[_0x226876(0x1bb)](this[_0x226876(0x12c)],[[_0x266dc2]]);}[_0x5b55f7(0x13f)](){var _0x4716d2=_0x5b55f7;_0xf8ec0e[_0x4716d2(0x1bb)](this[_0x4716d2(0x12c)],[[_0x522538[_0x4716d2(0x157)]]]);}},_0x114001(_0x522538[_0x5b55f7(0xde)],_0x5b55f7(0x102),_0xf8ec0e[_0x5b55f7(0x1b6)][_0x5b55f7(0x1c2)]),_0x114001(_0x522538[_0x5b55f7(0xde)],_0x5b55f7(0x1a6),_0x57b05c),_0x522538[_0x5b55f7(0xde)]=_0x5b705d([_0xf8ec0e[_0x5b55f7(0xef)](_0x45ba65[_0x5b55f7(0xdd)]),_0x29ddce(0x1,_0xf8ec0e['Inject'](_0xf8ec0e[_0x5b55f7(0x195)])),_0x29ddce(0x2,_0xf8ec0e[_0x5b55f7(0x156)])],_0x522538['UniverLiveSharePlugin']),_0x522538[_0x5b55f7(0x1ad)]=_0x1d93e9,_0x522538[_0x5b55f7(0x1ca)]=_0x8835ce,_0x522538[_0x5b55f7(0xe0)]=_0x194364,Object[_0x5b55f7(0x112)](_0x522538,Symbol[_0x5b55f7(0x1ab)],{'value':_0x5b55f7(0x154)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,25 +46,25 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.4.
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
52
|
-
"@univerjs/core": "0.10.
|
|
53
|
-
"@univerjs/design": "0.10.
|
|
54
|
-
"@univerjs/sheets": "0.10.
|
|
55
|
-
"@univerjs/ui": "0.10.
|
|
56
|
-
"@univerjs/
|
|
49
|
+
"@univerjs/icons": "^0.4.7",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.7",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.7",
|
|
52
|
+
"@univerjs/core": "0.10.7",
|
|
53
|
+
"@univerjs/design": "0.10.7",
|
|
54
|
+
"@univerjs/sheets": "0.10.7",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.7",
|
|
56
|
+
"@univerjs/ui": "0.10.7"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
60
60
|
"react": "18.3.1",
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
|
-
"typescript": "^5.
|
|
63
|
+
"typescript": "^5.9.2",
|
|
64
64
|
"vite": "^7.1.3",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
66
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
+
"@univerjs-infra/shared": "0.10.7"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|