@univerjs-pro/live-share 0.12.0-nightly.202511220628 → 0.12.1-nightly.202511221011
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x25273f=_0x2d6d;(function(_0x309964,_0x2c0021){const _0x4a2027=_0x2d6d,_0x64488d=_0x309964();while(!![]){try{const _0x22176e=parseInt(_0x4a2027(0x140))/0x1*(-parseInt(_0x4a2027(0x14a))/0x2)+parseInt(_0x4a2027(0x14d))/0x3*(-parseInt(_0x4a2027(0x136))/0x4)+-parseInt(_0x4a2027(0x125))/0x5+-parseInt(_0x4a2027(0x149))/0x6+parseInt(_0x4a2027(0x127))/0x7*(parseInt(_0x4a2027(0x143))/0x8)+-parseInt(_0x4a2027(0x12c))/0x9+parseInt(_0x4a2027(0x129))/0xa;if(_0x22176e===_0x2c0021)break;else _0x64488d['push'](_0x64488d['shift']());}catch(_0x2ef181){_0x64488d['push'](_0x64488d['shift']());}}}(_0x310a,0x9e866));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x25273f(0x145)]{[_0x25273f(0x13c)](_0x5dd1ce,_0x3731a5,_0x445884,_0x4c1d52,_0x3d4bf9){const _0x5d5bb6=_0x25273f,_0x5b69da=_0x5dd1ce['get'](n[_0x5d5bb6(0x130)]),_0x40284d=_0x5dd1ce['get'](g[_0x5d5bb6(0x14e)]),_0x3062fe=_0x3731a5[_0x5d5bb6(0x12b)](),_0x3f0e19=_0x3731a5[_0x5d5bb6(0x139)](),_0x5f3627=_0x5b69da[_0x5d5bb6(0x144)](_0x3062fe);(_0x5f3627==null?void 0x0:_0x5f3627[_0x5d5bb6(0x138)]())!==n[_0x5d5bb6(0x12f)][_0x5d5bb6(0x128)]||(_0x445884['getSheetId']()!==_0x3f0e19[_0x5d5bb6(0x135)]()&&this[_0x5d5bb6(0x132)][_0x5d5bb6(0x12d)](u[_0x5d5bb6(0x14b)]['id'],{'unitId':_0x3062fe,'subUnitId':_0x445884[_0x5d5bb6(0x135)]()}),!_0x40284d['getRenderById'](_0x3062fe))||_0x3d4bf9[_0x5d5bb6(0x134)](f[_0x5d5bb6(0x13b)]['id'],{'unitId':_0x3731a5['getUnitId'](),'sheetId':_0x445884[_0x5d5bb6(0x135)](),'sheetViewStartRow':_0x4c1d52[_0x5d5bb6(0x141)],'sheetViewStartColumn':_0x4c1d52[_0x5d5bb6(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x310a(){const _0x1adda5=['FRange','startPresenting','getLiveShareStatus','startColumn','6972oYtJGS','6SSFFtL','SetWorksheetActiveOperation','FEnum','3LuepFk','IRenderManagerService','_injector','506605dvFQnf','FUniver','2569Quqeds','PRESENTING','26222680cGAauM','tryStartPresenting','getUnitId','2383209XTlndU','executeCommand','getActiveWorkbook','LiveShareStatus','LiveShareController','extend','_commandService','get','syncExecuteCommand','getSheetId','3228268zUBesK','stopPresenting','getStatus','getActiveSheet','LiveShareStatusEnum','SetScrollOperation','_initialize','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','332382wwpFCd','startRow','getId','4328oNDYYg','getLiveShareCoordinatorSync'];_0x310a=function(){return _0x1adda5;};return _0x310a();}d[_0x25273f(0x145)][_0x25273f(0x131)](w);class C extends a[_0x25273f(0x126)]{[_0x25273f(0x147)](){const _0x486672=_0x25273f;var _0x2ae095,_0x440011;const _0x3303fb=this[_0x486672(0x14f)][_0x486672(0x133)](n[_0x486672(0x130)]),_0x1ecdc1=(_0x2ae095=this[_0x486672(0x12e)]())==null?void 0x0:_0x2ae095[_0x486672(0x142)]();if(!_0x1ecdc1)throw new Error(_0x486672(0x13d));const _0x2a70a4=_0x3303fb['getLiveShareCoordinatorSync'](_0x1ecdc1);return(_0x440011=_0x2a70a4==null?void 0x0:_0x2a70a4[_0x486672(0x138)]())!=null?_0x440011:n[_0x486672(0x12f)]['IDLE'];}[_0x25273f(0x13f)](){const _0x4b23f3=_0x25273f;var _0x3b4e00;const _0xf2e146=this[_0x4b23f3(0x14f)]['get'](n[_0x4b23f3(0x130)]),_0x52df30=(_0x3b4e00=this['getActiveWorkbook']())==null?void 0x0:_0x3b4e00[_0x4b23f3(0x142)]();if(!_0x52df30)throw new Error(_0x4b23f3(0x13d));const _0x162b4b=_0xf2e146['getLiveShareCoordinatorSync'](_0x52df30);if(!_0x162b4b)throw new Error(_0x4b23f3(0x13e));_0x162b4b[_0x4b23f3(0x13f)]();}['stopFollowing'](){const _0x27d8b6=_0x25273f;var _0x11a06a;const _0x5c9535=this['_injector'][_0x27d8b6(0x133)](n['LiveShareController']),_0x3ddc7c=(_0x11a06a=this[_0x27d8b6(0x12e)]())==null?void 0x0:_0x11a06a[_0x27d8b6(0x142)]();if(!_0x3ddc7c)throw new Error('No\x20active\x20workbook\x20found.');const _0x114c73=_0x5c9535[_0x27d8b6(0x144)](_0x3ddc7c);if(!_0x114c73)throw new Error(_0x27d8b6(0x13e));_0x114c73['stopFollowing']();}[_0x25273f(0x146)](){const _0x18c7ae=_0x25273f;var _0x2b8983;const _0x26ca04=this[_0x18c7ae(0x14f)]['get'](n[_0x18c7ae(0x130)]),_0x510c66=(_0x2b8983=this['getActiveWorkbook']())==null?void 0x0:_0x2b8983[_0x18c7ae(0x142)]();if(!_0x510c66)throw new Error('No\x20active\x20workbook\x20found.');const _0x36f615=_0x26ca04[_0x18c7ae(0x144)](_0x510c66);if(!_0x36f615)throw new Error(_0x18c7ae(0x13e));_0x36f615[_0x18c7ae(0x12a)]();}[_0x25273f(0x137)](){const _0x15ac09=_0x25273f;var _0x3fbd87;const _0x472ce4=this[_0x15ac09(0x14f)]['get'](n[_0x15ac09(0x130)]),_0x4ae473=(_0x3fbd87=this[_0x15ac09(0x12e)]())==null?void 0x0:_0x3fbd87['getId']();if(!_0x4ae473)throw new Error(_0x15ac09(0x13d));const _0x2fc0a0=_0x472ce4[_0x15ac09(0x144)](_0x4ae473);if(!_0x2fc0a0)throw new Error(_0x15ac09(0x13e));_0x2fc0a0['stopPresenting']();}}a[_0x25273f(0x126)][_0x25273f(0x131)](C);function _0x2d6d(_0x10ed08,_0x46d1bc){const _0x310af7=_0x310a();return _0x2d6d=function(_0x2d6d0d,_0x4291a7){_0x2d6d0d=_0x2d6d0d-0x125;let _0x4e6b6a=_0x310af7[_0x2d6d0d];return _0x4e6b6a;},_0x2d6d(_0x10ed08,_0x46d1bc);}class L extends a[_0x25273f(0x14c)]{get[_0x25273f(0x13a)](){return n['LiveShareStatus'];}}a['FEnum']['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x280d0f=_0x2669;(function(_0x2c86e8,_0x7099e7){const _0x43e952=_0x2669,_0x2e65d1=_0x2c86e8();while(!![]){try{const _0x3340f6=-parseInt(_0x43e952(0x19a))/0x1*(-parseInt(_0x43e952(0x180))/0x2)+-parseInt(_0x43e952(0x138))/0x3+parseInt(_0x43e952(0x1ad))/0x4+-parseInt(_0x43e952(0x17b))/0x5+parseInt(_0x43e952(0x146))/0x6+-parseInt(_0x43e952(0x1d3))/0x7*(parseInt(_0x43e952(0x18d))/0x8)+-parseInt(_0x43e952(0x1c0))/0x9*(-parseInt(_0x43e952(0x1c9))/0xa);if(_0x3340f6===_0x7099e7)break;else _0x2e65d1['push'](_0x2e65d1['shift']());}catch(_0x3bbcd0){_0x2e65d1['push'](_0x2e65d1['shift']());}}}(_0x1347,0x5e873));var T=Object[_0x280d0f(0x1d5)],U=(_0x384ac0,_0xb50372,_0x9a29e7)=>_0xb50372 in _0x384ac0?T(_0x384ac0,_0xb50372,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x9a29e7}):_0x384ac0[_0xb50372]=_0x9a29e7,_=(_0x13c000,_0x3b3df8,_0x56db04)=>U(_0x13c000,typeof _0x3b3df8!='symbol'?_0x3b3df8+'':_0x3b3df8,_0x56db04);Object[_0x280d0f(0x1d5)](exports,Symbol[_0x280d0f(0x14c)],{'value':_0x280d0f(0x1e3)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x24abb5,..._0x44225b}){const _0x89e6ef=_0x280d0f,{icon:_0x8fdcc,id:_0x47c16c,className:_0x4a5a26,extend:_0x46b4a8,..._0x4a4ba8}=_0x44225b,_0x31802e=(_0x89e6ef(0x16a)+_0x47c16c+'\x20'+(_0x4a5a26||''))[_0x89e6ef(0x19d)](),_0xd6a83=v[_0x89e6ef(0x1b5)]('_'+H());return j(_0x8fdcc,''+_0x47c16c,{'defIds':_0x8fdcc[_0x89e6ef(0x174)],'idSuffix':_0xd6a83[_0x89e6ef(0x162)]},{'ref':_0x24abb5,'className':_0x31802e,..._0x4a4ba8},_0x46b4a8);}function j(_0x6535f0,_0x37e4cf,_0x532222,_0x4d495b,_0x503640){const _0x6b0c5f=_0x280d0f;return v['createElement'](_0x6535f0[_0x6b0c5f(0x1d1)],{'key':_0x37e4cf,...y(_0x6535f0,_0x532222,_0x503640),..._0x4d495b},(F(_0x6535f0,_0x532222)['children']||[])[_0x6b0c5f(0x1e2)]((_0x126f70,_0x4cebea)=>j(_0x126f70,_0x37e4cf+'-'+_0x6535f0[_0x6b0c5f(0x1d1)]+'-'+_0x4cebea,_0x532222,void 0x0,_0x503640)));}function y(_0xa0a9ae,_0x56c6a8,_0x1421d6){const _0x574d07=_0x280d0f,_0x480b74={..._0xa0a9ae[_0x574d07(0x1b0)]};_0x1421d6!=null&&_0x1421d6[_0x574d07(0x147)]&&_0x480b74[_0x574d07(0x1e6)]===_0x574d07(0x147)&&(_0x480b74[_0x574d07(0x1e6)]=_0x1421d6[_0x574d07(0x147)]),_0xa0a9ae[_0x574d07(0x1d1)]===_0x574d07(0x207)&&_0x480b74['id']&&(_0x480b74['id']=_0x480b74['id']+_0x56c6a8[_0x574d07(0x14d)]),Object[_0x574d07(0x156)](_0x480b74)[_0x574d07(0x1be)](([_0x40a1d2,_0x123a8b])=>{const _0x143f0e=_0x574d07;_0x40a1d2===_0x143f0e(0x207)&&typeof _0x123a8b==_0x143f0e(0x15d)&&(_0x480b74[_0x40a1d2]=_0x123a8b['replace'](/url\(#(.*)\)/,_0x143f0e(0x1e1)+_0x56c6a8[_0x143f0e(0x14d)]+')'));});const {defIds:_0x375983}=_0x56c6a8;return!_0x375983||_0x375983[_0x574d07(0x195)]===0x0||(_0xa0a9ae[_0x574d07(0x1d1)]===_0x574d07(0x1f5)&&_0x480b74[_0x574d07(0x209)]&&(_0x480b74['xlink:href']=_0x480b74[_0x574d07(0x209)]+_0x56c6a8['idSuffix']),Object[_0x574d07(0x156)](_0x480b74)['forEach'](([_0x5a3e02,_0x12a644])=>{const _0x237725=_0x574d07;typeof _0x12a644==_0x237725(0x15d)&&(_0x480b74[_0x5a3e02]=_0x12a644[_0x237725(0x1e5)](/url\(#(.*)\)/,_0x237725(0x1e1)+_0x56c6a8[_0x237725(0x14d)]+')'));})),_0x480b74;}function F(_0x302fbc,_0x8d399f){const _0x4bb3c7=_0x280d0f;var _0x1b7794;const {defIds:_0xa6274e}=_0x8d399f;return!_0xa6274e||_0xa6274e[_0x4bb3c7(0x195)]===0x0?_0x302fbc:_0x302fbc[_0x4bb3c7(0x1d1)]==='defs'&&((_0x1b7794=_0x302fbc[_0x4bb3c7(0x1da)])!=null&&_0x1b7794['length'])?{..._0x302fbc,'children':_0x302fbc[_0x4bb3c7(0x1da)][_0x4bb3c7(0x1e2)](_0x52bdda=>typeof _0x52bdda[_0x4bb3c7(0x1b0)]['id']==_0x4bb3c7(0x15d)&&_0xa6274e&&_0xa6274e['includes'](_0x52bdda[_0x4bb3c7(0x1b0)]['id'])?{..._0x52bdda,'attrs':{..._0x52bdda['attrs'],'id':_0x52bdda['attrs']['id']+_0x8d399f[_0x4bb3c7(0x14d)]}}:_0x52bdda)}:_0x302fbc;}function H(){const _0x50423b=_0x280d0f;return Math[_0x50423b(0x1d9)]()[_0x50423b(0x143)](0x24)[_0x50423b(0x1f3)](0x2,0x8);}x['displayName']=_0x280d0f(0x14a);const V={'tag':_0x280d0f(0x144),'attrs':{'xmlns':_0x280d0f(0x1a2),'fill':_0x280d0f(0x178),'viewBox':_0x280d0f(0x1ec),'width':_0x280d0f(0x133),'height':_0x280d0f(0x133)},'children':[{'tag':_0x280d0f(0x1a0),'attrs':{'fill':_0x280d0f(0x13f),'d':_0x280d0f(0x181)}},{'tag':_0x280d0f(0x1a0),'attrs':{'fill':'currentColor','d':_0x280d0f(0x182),'fillRule':'evenodd','clipRule':_0x280d0f(0x1fb)}}]},R=v[_0x280d0f(0x1c7)](function(_0x2c4d5d,_0x5ae915){const _0x1a66ed=_0x280d0f;return v[_0x1a66ed(0x13c)](x,Object[_0x1a66ed(0x1f6)]({},_0x2c4d5d,{'id':'live-share-icon','ref':_0x5ae915,'icon':V}));});R[_0x280d0f(0x134)]=_0x280d0f(0x131);class E extends o['Disposable']{constructor(){const _0x583f4f=_0x280d0f;super(...arguments),_(this,_0x583f4f(0x18a),new Set()),_(this,_0x583f4f(0x15b),new Set());}['registerSharedOperation'](_0x430b08){const _0x426b47=_0x280d0f;return this[_0x426b47(0x18a)][_0x426b47(0x193)](_0x430b08),o[_0x426b47(0x177)](()=>this['_sharedOperations'][_0x426b47(0x185)](_0x430b08));}[_0x280d0f(0x1fa)](_0xacd760){const _0x231c4f=_0x280d0f;return this[_0x231c4f(0x15b)][_0x231c4f(0x193)](_0xacd760),o[_0x231c4f(0x177)](()=>this[_0x231c4f(0x15b)]['delete'](_0xacd760));}[_0x280d0f(0x1f9)](_0x5a697f){const _0x3e5dbc=_0x280d0f;return this[_0x3e5dbc(0x18a)][_0x3e5dbc(0x187)](_0x5a697f);}[_0x280d0f(0x16e)](_0x30f0d8){const _0xac1422=_0x280d0f;return Array[_0xac1422(0x1b2)](this[_0xac1422(0x15b)])[_0xac1422(0x1e2)](_0x532f49=>_0x532f49(_0x30f0d8));}}var M=Object[_0x280d0f(0x151)],P=(_0xdd55ee,_0x359429,_0x4371cd,_0x157e53)=>{const _0x282314=_0x280d0f;for(var _0x4b50ae=_0x157e53>0x1?void 0x0:_0x157e53?M(_0x359429,_0x4371cd):_0x359429,_0x2aeb6a=_0xdd55ee[_0x282314(0x195)]-0x1,_0xe5ef89;_0x2aeb6a>=0x0;_0x2aeb6a--)(_0xe5ef89=_0xdd55ee[_0x2aeb6a])&&(_0x4b50ae=_0xe5ef89(_0x4b50ae)||_0x4b50ae);return _0x4b50ae;},S=(_0x15e804,_0xda37c8)=>(_0x2c5268,_0x5620dc)=>_0xda37c8(_0x2c5268,_0x5620dc,_0x15e804);exports[_0x280d0f(0x1aa)]=class extends o['RxDisposable']{constructor(_0x4542e1,_0x4cece6,_0x39d3da){const _0x1e8c5c=_0x280d0f;super(),_(this,_0x1e8c5c(0x203),new Map()),(this['_univerInstanceService']=_0x4542e1,this[_0x1e8c5c(0x1bd)]=_0x4cece6,this[_0x1e8c5c(0x1e0)]=_0x39d3da,this[_0x1e8c5c(0x1dc)]());}async[_0x280d0f(0x145)](_0x2e964e){const _0x5ca9ba=_0x280d0f;return this['_entities'][_0x5ca9ba(0x187)](_0x2e964e)||await this[_0x5ca9ba(0x204)](_0x2e964e),this['_entities'][_0x5ca9ba(0x130)](_0x2e964e);}[_0x280d0f(0x15a)](_0x2dd47a){const _0x4ede48=_0x280d0f;var _0x481262;return(_0x481262=this['_entities'][_0x4ede48(0x130)](_0x2dd47a))!=null?_0x481262:null;}[_0x280d0f(0x1dc)](){const _0x213d6d=_0x280d0f;this[_0x213d6d(0x1c5)][_0x213d6d(0x1fd)](o[_0x213d6d(0x20c)][_0x213d6d(0x1e4)])['pipe'](I[_0x213d6d(0x15e)](this[_0x213d6d(0x189)]))[_0x213d6d(0x1a7)](async _0x53ec3e=>{const _0x2ecc24=_0x213d6d,_0x8a36b9=_0x53ec3e[_0x2ecc24(0x1d6)]();this[_0x2ecc24(0x203)][_0x2ecc24(0x187)](_0x8a36b9)||this[_0x2ecc24(0x204)](_0x8a36b9);}),this['_univerInstanceService'][_0x213d6d(0x1db)](o['UniverInstanceType'][_0x213d6d(0x1e4)])[_0x213d6d(0x208)](I[_0x213d6d(0x15e)](this[_0x213d6d(0x189)]))[_0x213d6d(0x1a7)](_0x5696bc=>{const _0xe05219=_0x213d6d,_0x24ff2d=_0x5696bc[_0xe05219(0x1d6)](),_0x2bd9cd=this[_0xe05219(0x203)][_0xe05219(0x130)](_0x24ff2d);_0x2bd9cd==null||_0x2bd9cd[_0xe05219(0x1d8)]();});}async[_0x280d0f(0x204)](_0x1aaac5){const _0x1cde60=_0x280d0f,_0x2f816b=await this[_0x1cde60(0x1e0)]['requireSession'](_0x1aaac5),_0x134b5b=this[_0x1cde60(0x1bd)][_0x1cde60(0x1bf)](exports[_0x1cde60(0x1f2)],_0x1aaac5,_0x2f816b);return _0x134b5b[_0x1cde60(0x14e)](),this[_0x1cde60(0x203)]['set'](_0x1aaac5,_0x134b5b),_0x134b5b;}},exports[_0x280d0f(0x1aa)]=P([S(0x0,o[_0x280d0f(0x14b)]),S(0x1,o[_0x280d0f(0x1e7)](o['Injector'])),S(0x2,o[_0x280d0f(0x1e7)](b[_0x280d0f(0x1c8)]))],exports[_0x280d0f(0x1aa)]);var u=(_0x61be75=>(_0x61be75[_0x280d0f(0x154)]=_0x280d0f(0x1b7),_0x61be75[_0x280d0f(0x172)]=_0x280d0f(0x1ee),_0x61be75['FOLLOWING']=_0x280d0f(0x1ac),_0x61be75['NOT_FOLLOWING']=_0x280d0f(0x1cc),_0x61be75[_0x280d0f(0x15c)]='presenting',_0x61be75))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x280d0f(0x1ef)]{constructor(_0x45b741,_0x4f30d7,_0x5956f8,_0x1e72e1,_0x2ad5f2){const _0x21c1f8=_0x280d0f;super(),_(this,_0x21c1f8(0x18e),new O[(_0x21c1f8(0x19e))]('idle')),_(this,_0x21c1f8(0x1cb),this[_0x21c1f8(0x18e)][_0x21c1f8(0x166)]()),_(this,_0x21c1f8(0x1dc),!0x1),_(this,_0x21c1f8(0x1b1),null),_(this,_0x21c1f8(0x171),null),(this[_0x21c1f8(0x1b6)]=_0x45b741,this[_0x21c1f8(0x1ea)]=_0x4f30d7,this['_configService']=_0x5956f8,this['_liveShareService']=_0x1e72e1,this[_0x21c1f8(0x1d4)]=_0x2ad5f2);}get[_0x280d0f(0x1f8)](){const _0x196876=_0x280d0f;return this[_0x196876(0x18e)][_0x196876(0x159)]();}['dispose'](){const _0x15764c=_0x280d0f;var _0x471d57;(_0x471d57=this[_0x15764c(0x1b1)])==null||_0x471d57[_0x15764c(0x1d8)](),this[_0x15764c(0x18e)][_0x15764c(0x148)](_0x15764c(0x1ee)),this[_0x15764c(0x18e)][_0x15764c(0x1b8)]();}[_0x280d0f(0x194)](){const _0x31fe18=_0x280d0f;return this[_0x31fe18(0x1f8)];}[_0x280d0f(0x14e)](){const _0x254f27=_0x280d0f;this[_0x254f27(0x1dc)]||(this[_0x254f27(0x1dc)]=!0x0,this[_0x254f27(0x1ea)]['sessionStatus$'][_0x254f27(0x208)](I[_0x254f27(0x15e)](this[_0x254f27(0x189)]))[_0x254f27(0x1a7)](_0x17740f=>{const _0x2243c6=_0x254f27;switch(_0x17740f){case b[_0x2243c6(0x198)]['OFFLINE']:this[_0x2243c6(0x1df)]();break;case b['SessionStatus'][_0x2243c6(0x1a1)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x254f27(0x1b3)]['pipe'](I[_0x254f27(0x15e)](this[_0x254f27(0x189)]))['subscribe'](_0x348168=>{const _0x2110ab=_0x254f27,{eventID:_0x3f0060}=_0x348168;switch(_0x3f0060){case d[_0x2110ab(0x197)][_0x2110ab(0x1b9)]:this['_handleNewHost'](_0x348168);break;case d[_0x2110ab(0x197)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x348168);break;case d[_0x2110ab(0x197)]['LIVESHARE_TERMINATE']:this[_0x2110ab(0x1ba)]();break;case d[_0x2110ab(0x197)][_0x2110ab(0x176)]:this[_0x2110ab(0x192)](_0x348168);break;}}));}[_0x280d0f(0x188)](){const _0x9ff012=_0x280d0f;this[_0x9ff012(0x1ea)][_0x9ff012(0x142)]({'eventID':d[_0x9ff012(0x197)][_0x9ff012(0x190)],'data':{'unitID':this[_0x9ff012(0x1b6)],'userID':this['_collabSession'][_0x9ff012(0x136)]()}},this[_0x9ff012(0x1b6)]);}[_0x280d0f(0x1a3)](){const _0xb6187b=_0x280d0f;this[_0xb6187b(0x1f8)]==='presenting'&&(this[_0xb6187b(0x18e)]['next'](_0xb6187b(0x1ee)),this[_0xb6187b(0x1ea)][_0xb6187b(0x142)]({'eventID':d[_0xb6187b(0x197)][_0xb6187b(0x1d0)],'data':{'unitID':this['_unitID']}},this[_0xb6187b(0x1b6)]));}[_0x280d0f(0x1d2)](){const _0x261d41=_0x280d0f;this[_0x261d41(0x1f8)]===_0x261d41(0x1cc)&&(this[_0x261d41(0x18e)][_0x261d41(0x148)](_0x261d41(0x1ac)),this[_0x261d41(0x1c1)]());}['stopFollowing'](){const _0x414380=_0x280d0f;this['_status']===_0x414380(0x1ac)&&this[_0x414380(0x1cd)]();}[_0x280d0f(0x175)](_0x346100){const _0x2a8d6d=_0x280d0f,{presenter:_0x55cede}=_0x346100[_0x2a8d6d(0x18b)],_0x4671b8=this['_collabSession'][_0x2a8d6d(0x136)]();this[_0x2a8d6d(0x171)]=_0x55cede,_0x55cede===_0x4671b8?(this[_0x2a8d6d(0x1cd)](),this['_startPresenting']()):this[_0x2a8d6d(0x1f8)]!==_0x2a8d6d(0x1cc)&&(this[_0x2a8d6d(0x157)](),this['_startFollowing']());}[_0x280d0f(0x149)](){const _0x2fe99d=_0x280d0f,_0x514778={'eventID':d[_0x2fe99d(0x197)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2fe99d(0x1ea)]['send'](_0x514778,this[_0x2fe99d(0x1b6)]);}[_0x280d0f(0x1ba)](){const _0x5d99f7=_0x280d0f;this[_0x5d99f7(0x171)]=null,this[_0x5d99f7(0x1f8)]!==_0x5d99f7(0x16c)&&this[_0x5d99f7(0x1fc)]();}['_handleNewChangeSets'](_0x7e5bdc){const _0x5d36a4=_0x280d0f;if(this[_0x5d36a4(0x1f8)]===_0x5d36a4(0x1ac)&&this[_0x5d36a4(0x171)]===_0x7e5bdc[_0x5d36a4(0x18b)][_0x5d36a4(0x1dd)]){const _0x3e1be5=d['parseProtocolChangeset'](_0x7e5bdc['data'])[_0x5d36a4(0x1a5)][_0x5d36a4(0x14f)]()[_0x5d36a4(0x1f0)](_0x513216=>_0x513216['id']===C['InsertSheetMutation']['id']);if(_0x3e1be5){const _0x13b6cb=_0x3e1be5[_0x5d36a4(0x19f)][_0x5d36a4(0x199)],_0x35d6ce=_0x3e1be5[_0x5d36a4(0x19f)][_0x5d36a4(0x20b)]['id'];setTimeout(()=>{const _0x332688=_0x5d36a4;this[_0x332688(0x1d4)][_0x332688(0x153)](C[_0x332688(0x1a9)]['id'],{'unitId':_0x13b6cb,'subUnitId':_0x35d6ce},{'fromCollab':!0x0});});}}}[_0x280d0f(0x1ce)](){const _0x3b61f6=_0x280d0f;this[_0x3b61f6(0x18e)][_0x3b61f6(0x148)](_0x3b61f6(0x16c));const _0x560e03=new Map(),_0x30574b=this[_0x3b61f6(0x1b1)]=new o[(_0x3b61f6(0x1c2))]();_0x30574b[_0x3b61f6(0x193)](o[_0x3b61f6(0x177)](()=>{const _0x6fd4d6=_0x3b61f6;_0x560e03[_0x6fd4d6(0x1be)](_0xab95d7=>_0xab95d7[_0x6fd4d6(0x1b8)]()),_0x560e03[_0x6fd4d6(0x1bb)]();})),_0x30574b[_0x3b61f6(0x193)](this[_0x3b61f6(0x1d4)][_0x3b61f6(0x1fe)](_0x4acccc=>{const _0x25ba43=_0x3b61f6;var _0x2de424;if(_0x4acccc[_0x25ba43(0x1a4)]!==o[_0x25ba43(0x1af)]['OPERATION']||!this['_liveShareService'][_0x25ba43(0x1f9)](_0x4acccc['id']))return;const {id:_0x138cce}=_0x4acccc;let _0x22b2dc;_0x560e03['has'](_0x138cce)?_0x22b2dc=_0x560e03[_0x25ba43(0x130)](_0x138cce):(_0x22b2dc=new O[(_0x25ba43(0x1c3))](),_0x560e03[_0x25ba43(0x18f)](_0x138cce,_0x22b2dc),_0x22b2dc[_0x25ba43(0x208)](I[_0x25ba43(0x1a8)]((_0x2de424=this[_0x25ba43(0x17f)][_0x25ba43(0x201)](k))!=null?_0x2de424:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25ba43(0x1a7)](_0x8ee3c7=>{const _0x2d141f=_0x25ba43;this[_0x2d141f(0x1ea)][_0x2d141f(0x142)]({'eventID':d[_0x2d141f(0x197)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2d141f(0x1b6)],'operations':{[_0x8ee3c7['id']]:{'id':_0x8ee3c7['id'],'params':JSON[_0x2d141f(0x191)](_0x8ee3c7[_0x2d141f(0x19f)])}}}},this[_0x2d141f(0x1b6)]);})),_0x22b2dc[_0x25ba43(0x148)](_0x4acccc);})),this[_0x3b61f6(0x1f7)][_0x3b61f6(0x16e)](this['_unitID'])[_0x3b61f6(0x1be)](_0x5809a1=>this['_collabSession'][_0x3b61f6(0x142)]({'eventID':d[_0x3b61f6(0x197)][_0x3b61f6(0x16b)],'data':{'unitID':this[_0x3b61f6(0x1b6)],'operations':{[_0x5809a1['id']]:{'id':_0x5809a1['id'],'params':JSON[_0x3b61f6(0x191)](_0x5809a1[_0x3b61f6(0x19f)])}}}},this[_0x3b61f6(0x1b6)]));}[_0x280d0f(0x157)](){const _0x165144=_0x280d0f;var _0x2b8ba3;this['_status$'][_0x165144(0x148)](_0x165144(0x1ee)),(_0x2b8ba3=this[_0x165144(0x1b1)])==null||_0x2b8ba3[_0x165144(0x1d8)](),this[_0x165144(0x1b1)]=null;}[_0x280d0f(0x1c1)](){const _0x59abf2=_0x280d0f;var _0x5516af;(_0x5516af=this[_0x59abf2(0x1b1)])==null||_0x5516af[_0x59abf2(0x1d8)](),this[_0x59abf2(0x18e)][_0x59abf2(0x148)](_0x59abf2(0x1ac));}['_beIdle'](){const _0x6b9344=_0x280d0f;var _0x18ea65;this[_0x6b9344(0x18e)]['next'](_0x6b9344(0x1ee)),(_0x18ea65=this[_0x6b9344(0x1b1)])==null||_0x18ea65[_0x6b9344(0x1d8)](),this[_0x6b9344(0x1b1)]=null;}[_0x280d0f(0x1cd)](){const _0x45d9f5=_0x280d0f;var _0x28d356;this[_0x45d9f5(0x18e)]['next'](_0x45d9f5(0x1cc)),(_0x28d356=this[_0x45d9f5(0x1b1)])==null||_0x28d356[_0x45d9f5(0x1d8)]();}['_handleOperation'](_0x239481){const _0x12a7ef=_0x280d0f;if([_0x12a7ef(0x16c),_0x12a7ef(0x1cc),'offline'][_0x12a7ef(0x1ae)](this['_status'])||!_0x239481[_0x12a7ef(0x18b)][_0x12a7ef(0x200)]||_0x239481[_0x12a7ef(0x18b)][_0x12a7ef(0x200)]===this[_0x12a7ef(0x1ea)][_0x12a7ef(0x136)]())return;this[_0x12a7ef(0x1f8)]===_0x12a7ef(0x1ee)&&this[_0x12a7ef(0x1c1)]();const _0x2cfdc4=_0x239481['data'][_0x12a7ef(0x186)];Object['values'](_0x2cfdc4)[_0x12a7ef(0x1be)](_0x1820e1=>{const _0x1f2006=_0x12a7ef;this[_0x1f2006(0x1d4)][_0x1f2006(0x153)](_0x1820e1['id'],_0x1820e1[_0x1f2006(0x19f)]?JSON['parse'](_0x1820e1[_0x1f2006(0x19f)]):null,{'fromCollab':!0x0});});}[_0x280d0f(0x1df)](){const _0x8b47a4=_0x280d0f;var _0x354012;this[_0x8b47a4(0x18e)][_0x8b47a4(0x148)](_0x8b47a4(0x1b7)),(_0x354012=this[_0x8b47a4(0x1b1)])==null||_0x354012[_0x8b47a4(0x1d8)]();}[_0x280d0f(0x155)](){const _0x3480d8=_0x280d0f;this[_0x3480d8(0x18e)][_0x3480d8(0x148)](_0x3480d8(0x1ee)),this[_0x3480d8(0x149)]();}},exports[_0x280d0f(0x1f2)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x280d0f(0x1e7)](E)),S(0x4,o['ICommandService'])],exports[_0x280d0f(0x1f2)]);function $(){const _0x5c86cf=_0x280d0f,_0x243167=p['useDependency'](exports[_0x5c86cf(0x1aa)]),_0x12fe5b=p[_0x5c86cf(0x179)](o[_0x5c86cf(0x14b)]),_0x3fadc5=p[_0x5c86cf(0x170)](()=>_0x12fe5b[_0x5c86cf(0x19c)](o[_0x5c86cf(0x20c)][_0x5c86cf(0x1e4)]),void 0x0,!0x1,[]),[_0x37df18,_0x40be17]=v[_0x5c86cf(0x168)](null),[_0x344f23,_0x37eee3]=v['useState'](u[_0x5c86cf(0x172)]),_0x3d82ba=v['useRef'](null);return v['useEffect'](()=>(_0x3fadc5&&_0x243167[_0x5c86cf(0x145)](_0x3fadc5['getUnitId']())[_0x5c86cf(0x202)](_0xdd3262=>{const _0x3d1522=_0x5c86cf;_0x40be17(_0xdd3262),_0x3d82ba[_0x3d1522(0x162)]=_0xdd3262[_0x3d1522(0x1cb)]['subscribe'](_0x4e8db6=>{_0x37eee3(_0x4e8db6);});}),()=>{const _0x3987da=_0x5c86cf;var _0x11e0e8;(_0x11e0e8=_0x3d82ba[_0x3987da(0x162)])==null||_0x11e0e8[_0x3987da(0x141)](),_0x3d82ba['current']=null;}),[_0x3fadc5,_0x243167]),_0x37df18?l['jsx'](f['Dropdown'],{'align':_0x5c86cf(0x163),'disabled':_0x344f23===u[_0x5c86cf(0x154)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x344f23,'coordinator':_0x37df18}),'children':l[_0x5c86cf(0x161)](_0x5c86cf(0x132),{'className':f[_0x5c86cf(0x16d)](_0x5c86cf(0x1ca),{'univer-cursor-not-allowed':_0x344f23===u[_0x5c86cf(0x154)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x344f23!==u[_0x5c86cf(0x154)]}),'type':'button','children':l[_0x5c86cf(0x161)](R,{'className':'univer-size-4'})})}):null;}function W(_0x3342d5){const _0x2a2f1c=_0x280d0f,{status:_0x16509c,coordinator:_0x586a23}=_0x3342d5;switch(_0x16509c){case u[_0x2a2f1c(0x172)]:return l[_0x2a2f1c(0x161)](G,{'coordinator':_0x586a23});case u[_0x2a2f1c(0x1ab)]:return l[_0x2a2f1c(0x161)](B,{'coordinator':_0x586a23});case u['NOT_FOLLOWING']:return l[_0x2a2f1c(0x161)](Y,{'coordinator':_0x586a23});case u[_0x2a2f1c(0x154)]:return l[_0x2a2f1c(0x161)](J,{});case u[_0x2a2f1c(0x15c)]:return l[_0x2a2f1c(0x161)](Z,{'coordinator':_0x586a23});default:return null;}}function G(_0x4edb7c){const _0x479b1e=_0x280d0f,{coordinator:_0x335139}=_0x4edb7c;return l[_0x479b1e(0x13e)](l[_0x479b1e(0x20a)],{'children':[l[_0x479b1e(0x161)](_0x479b1e(0x1e8),{'className':_0x479b1e(0x205),'children':_0x479b1e(0x1de)}),l[_0x479b1e(0x161)](f['Button'],{'onClick':()=>_0x335139[_0x479b1e(0x188)](),'children':_0x479b1e(0x1cf)})]});}function B(_0x45acba){const _0x107bdc=_0x280d0f,{coordinator:_0x5deed1}=_0x45acba;return l[_0x107bdc(0x13e)](l[_0x107bdc(0x20a)],{'children':[l[_0x107bdc(0x161)](_0x107bdc(0x1e8),{'className':_0x107bdc(0x205),'children':_0x107bdc(0x1c6)}),l[_0x107bdc(0x161)](f['Button'],{'onClick':()=>_0x5deed1[_0x107bdc(0x1a6)](),'children':_0x107bdc(0x13d)})]});}function Y(_0x5aa503){const _0x23f241=_0x280d0f,{coordinator:_0x2cff2e}=_0x5aa503;return l['jsxs'](l[_0x23f241(0x20a)],{'children':[l[_0x23f241(0x161)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x23f241(0x1b4)}),l['jsx'](f['Button'],{'variant':_0x23f241(0x15f),'onClick':()=>_0x2cff2e[_0x23f241(0x1d2)](),'children':'Start\x20following'})]});}function Z(_0x38f215){const _0x4de3fe=_0x280d0f,{coordinator:_0x1da4e8}=_0x38f215;return l[_0x4de3fe(0x13e)](l[_0x4de3fe(0x20a)],{'children':[l[_0x4de3fe(0x161)]('div',{'className':_0x4de3fe(0x205),'children':_0x4de3fe(0x1f4)}),l[_0x4de3fe(0x161)](f[_0x4de3fe(0x139)],{'variant':_0x4de3fe(0x164),'onClick':()=>_0x1da4e8[_0x4de3fe(0x1a3)](),'children':_0x4de3fe(0x158)})]});}function _0x1347(){const _0x16e518=['getCurrentTypeOfUnit$','trim','BehaviorSubject','params','path','ONLINE','http://www.w3.org/2000/svg','stopPresenting','type','mutations','stopFollowing','subscribe','throttleTime','SetWorksheetActiveOperation','LiveShareController','FOLLOWING','following','2011244GIfAYn','includes','CommandType','attrs','_commandDisposable','from','event$','You\x27re\x20not\x20following\x20the\x20presenter','useRef','_unitID','offline','complete','LIVESHARE_NEW_HOST','_handleTerminate','clear','UniverLiveSharePlugin','_injector','forEach','createInstance','7227LPsIXl','_startFollowing','DisposableCollection','Subject','touchDependencies','_univerInstanceService','You\x27re\x20following\x20the\x20presenter','forwardRef','CollaborationSessionService','9830pOTnxG','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','status$','not-following','_stopFollowing','_startPresenting','Start','LIVESHARE_TERMINATE','tag','startFollowing','931OXHWvw','_commandService','defineProperty','getUnitId','override','dispose','random','children','getTypeOfUnitDisposed$','_init','memberID','Present\x20this\x20document','_handleOffline','_collabSessionService','url(#$1','map','Module','UNIVER_SHEET','replace','fill','Inject','div','_uiPartsService','_collabSession','Disposable','0\x200\x2017\x2017','connectInjector','idle','RxDisposable','find','UNIVER_UNKNOWN','LiveShareCoordinator','substring','You\x27re\x20presenting\x20the\x20document','use','assign','_liveShareService','_status','shouldShareOperation','registerInitialStateReporter','evenodd','_beIdle','getTypeOfUnitAdded$','onCommandExecuted','onStarting','presenter','getConfig','then','_entities','_startLiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverCollaborationClientPlugin','mask','pipe','xlink:href','Fragment','sheet','UniverInstanceType','get','LiveShareIcon','button','1em','displayName','_config','getMemberID','LiveShareStatus','2307453PqlITe','Button','IConfigService','SetZoomRatioOperation','createElement','Stop\x20following','jsxs','currentColor','IUIPartsService','unsubscribe','send','toString','svg','getLiveShareCoordinator','2320668nFdwPi','colorChannel1','next','_fetchOperations','UniverIcon','IUniverInstanceService','toStringTag','idSuffix','init','reverse','DependentOn','getOwnPropertyDescriptor','BuiltInUIPart','executeCommand','OFFLINE','_handleOnline','entries','_stopPresenting','Stop\x20presenting','getValue','getLiveShareCoordinatorSync','_reporters','PRESENTING','string','takeUntil','text','_mountLiveShare','jsx','current','end','default','registerComponent','asObservable','LiveShareService','useState','onRendered','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','clsx','getInitialStates','registerSharedOperation','useObservable','_presenter','IDLE','LiveShare','defIds','_handleNewHost','NEW_CHANGESETS','toDisposable','none','useDependency','DesktopLiveShareController','2013250lqUInB','live-share.config','Injector','symbol','_configService','2dAVCPR','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','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','HEADER_MENU','pluginName','delete','operations','has','tryStartPresenting','dispose$','_sharedOperations','data','merge','15856SESYye','_status$','set','LIVESHARE_REQUEST_HOST','stringify','_handleNewChangeSets','add','getStatus','length','disposeWithMe','CollaborationEvent','SessionStatus','unitId','143656kTNEzP','setConfig'];_0x1347=function(){return _0x16e518;};return _0x1347();}function J(){const _0x14c6fb=_0x280d0f;return l[_0x14c6fb(0x161)](l[_0x14c6fb(0x20a)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x280d0f(0x151)],z=(_0x575d46,_0x54b9b4,_0x7ef4c0,_0x3ac8bd)=>{const _0x43dc33=_0x280d0f;for(var _0x527e47=_0x3ac8bd>0x1?void 0x0:_0x3ac8bd?K(_0x54b9b4,_0x7ef4c0):_0x54b9b4,_0xc8d76c=_0x575d46[_0x43dc33(0x195)]-0x1,_0x4ab7f4;_0xc8d76c>=0x0;_0xc8d76c--)(_0x4ab7f4=_0x575d46[_0xc8d76c])&&(_0x527e47=_0x4ab7f4(_0x527e47)||_0x527e47);return _0x527e47;},L=(_0x27c26d,_0xa5ecad)=>(_0x4e52f0,_0x38dd98)=>_0xa5ecad(_0x4e52f0,_0x38dd98,_0x27c26d);exports[_0x280d0f(0x17a)]=class extends o[_0x280d0f(0x1eb)]{constructor(_0x2d3457,_0x36b536){const _0x71ab1f=_0x280d0f;super(),this[_0x71ab1f(0x1bd)]=_0x2d3457,this['_uiPartsService']=_0x36b536,this[_0x71ab1f(0x160)]();}[_0x280d0f(0x160)](){const _0x1f1e7d=_0x280d0f;this['disposeWithMe'](this[_0x1f1e7d(0x1e9)][_0x1f1e7d(0x165)](p[_0x1f1e7d(0x152)][_0x1f1e7d(0x183)],()=>p[_0x1f1e7d(0x1ed)]($,this[_0x1f1e7d(0x1bd)])));}},exports[_0x280d0f(0x17a)]=z([L(0x0,o[_0x280d0f(0x1e7)](o[_0x280d0f(0x17d)])),L(0x1,p[_0x280d0f(0x140)])],exports[_0x280d0f(0x17a)]);const Q=_0x280d0f(0x17c),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x36f09e,_0x58c188,_0x3af2c2,_0x8271d3)=>{const _0x38c9ac=_0x280d0f;for(var _0x4ba9d9=_0x8271d3>0x1?void 0x0:_0x8271d3?X(_0x58c188,_0x3af2c2):_0x58c188,_0x410442=_0x36f09e[_0x38c9ac(0x195)]-0x1,_0x32781b;_0x410442>=0x0;_0x410442--)(_0x32781b=_0x36f09e[_0x410442])&&(_0x4ba9d9=_0x32781b(_0x4ba9d9)||_0x4ba9d9);return _0x4ba9d9;},te=(_0x58f31b,_0x41653f)=>(_0x5b43bd,_0x5f4992)=>_0x41653f(_0x5b43bd,_0x5f4992,_0x58f31b);let m=class extends o['Disposable']{constructor(_0x561987){const _0x114be6=_0x280d0f;super(),this[_0x114be6(0x1f7)]=_0x561987,this[_0x114be6(0x1dc)]();}[_0x280d0f(0x1dc)](){const _0x235d2c=_0x280d0f;[D[_0x235d2c(0x13b)]['id'],D['SetScrollOperation']['id'],C[_0x235d2c(0x1a9)]['id']][_0x235d2c(0x1be)](_0x5046d0=>{const _0x4db692=_0x235d2c;this[_0x4db692(0x196)](this[_0x4db692(0x1f7)][_0x4db692(0x16f)](_0x5046d0));});}};function _0x2669(_0x3dbf18,_0x1cc6a4){const _0x134725=_0x1347();return _0x2669=function(_0x266903,_0x5018e2){_0x266903=_0x266903-0x130;let _0x5b5bc7=_0x134725[_0x266903];return _0x5b5bc7;},_0x2669(_0x3dbf18,_0x1cc6a4);}m=ee([te(0x0,o[_0x280d0f(0x1e7)](E))],m);var ie=Object[_0x280d0f(0x1d5)],se=Object[_0x280d0f(0x151)],ne=(_0x3dfc23,_0x5bc18,_0x35db24)=>_0x5bc18 in _0x3dfc23?ie(_0x3dfc23,_0x5bc18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35db24}):_0x3dfc23[_0x5bc18]=_0x35db24,re=(_0x398b96,_0x42a854,_0x3f3fad,_0xafbc4f)=>{const _0x34cacf=_0x280d0f;for(var _0x2fed33=_0xafbc4f>0x1?void 0x0:_0xafbc4f?se(_0x42a854,_0x3f3fad):_0x42a854,_0x41a69b=_0x398b96[_0x34cacf(0x195)]-0x1,_0x166ea7;_0x41a69b>=0x0;_0x41a69b--)(_0x166ea7=_0x398b96[_0x41a69b])&&(_0x2fed33=_0x166ea7(_0x2fed33)||_0x2fed33);return _0x2fed33;},N=(_0x227e91,_0x4c1c26)=>(_0xcb3332,_0xc30a8e)=>_0x4c1c26(_0xcb3332,_0xc30a8e,_0x227e91),A=(_0x4929ef,_0x4f2de3,_0x52e427)=>ne(_0x4929ef,typeof _0x4f2de3!=_0x280d0f(0x17e)?_0x4f2de3+'':_0x4f2de3,_0x52e427);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x3a5655=w,_0x39d3c2,_0x1990c0){const _0x2ee4c9=_0x280d0f;super(),this['_config']=_0x3a5655,this['_injector']=_0x39d3c2,this[_0x2ee4c9(0x17f)]=_0x1990c0;const {..._0x25534a}=o[_0x2ee4c9(0x18c)]({},w,this[_0x2ee4c9(0x135)]);this['_configService'][_0x2ee4c9(0x19b)](Q,_0x25534a);}[_0x280d0f(0x1ff)](){const _0x228002=_0x280d0f;o['registerDependencies'](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x228002(0x1aa)]],[m],[exports[_0x228002(0x17a)]]],this[_0x228002(0x135)][_0x228002(0x1d7)])),o[_0x228002(0x1c4)](this[_0x228002(0x1bd)],[[m]]);}[_0x280d0f(0x169)](){const _0x93af7f=_0x280d0f;o[_0x93af7f(0x1c4)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x280d0f(0x1bc)],_0x280d0f(0x1a4),o[_0x280d0f(0x20c)][_0x280d0f(0x1f1)]),A(exports[_0x280d0f(0x1bc)],_0x280d0f(0x184),oe),exports[_0x280d0f(0x1bc)]=re([o[_0x280d0f(0x150)](b[_0x280d0f(0x206)]),N(0x1,o['Inject'](o[_0x280d0f(0x17d)])),N(0x2,o[_0x280d0f(0x13a)])],exports[_0x280d0f(0x1bc)]),exports[_0x280d0f(0x173)]=$,exports[_0x280d0f(0x167)]=E,exports[_0x280d0f(0x137)]=u;
|
|
1
|
+
'use strict';const _0x335e3f=_0x4ce9;(function(_0x1f213b,_0x2f7dc3){const _0x13cd7e=_0x4ce9,_0x3de973=_0x1f213b();while(!![]){try{const _0x719123=-parseInt(_0x13cd7e(0x1a9))/0x1*(-parseInt(_0x13cd7e(0x190))/0x2)+parseInt(_0x13cd7e(0x1b3))/0x3*(-parseInt(_0x13cd7e(0x205))/0x4)+-parseInt(_0x13cd7e(0x1f5))/0x5+parseInt(_0x13cd7e(0x1f8))/0x6+parseInt(_0x13cd7e(0x185))/0x7+parseInt(_0x13cd7e(0x210))/0x8*(parseInt(_0x13cd7e(0x1f6))/0x9)+parseInt(_0x13cd7e(0x239))/0xa;if(_0x719123===_0x2f7dc3)break;else _0x3de973['push'](_0x3de973['shift']());}catch(_0x568a4e){_0x3de973['push'](_0x3de973['shift']());}}}(_0x55fa,0x43071));var T=Object[_0x335e3f(0x24d)],U=(_0x2cd3d3,_0x131624,_0x41c942)=>_0x131624 in _0x2cd3d3?T(_0x2cd3d3,_0x131624,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41c942}):_0x2cd3d3[_0x131624]=_0x41c942,_=(_0x37f5df,_0x4dc7da,_0x550fcb)=>U(_0x37f5df,typeof _0x4dc7da!='symbol'?_0x4dc7da+'':_0x4dc7da,_0x550fcb);Object[_0x335e3f(0x24d)](exports,Symbol[_0x335e3f(0x225)],{'value':_0x335e3f(0x1ca)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x235b61,..._0xedc5e5}){const _0x4813f1=_0x335e3f,{icon:_0x25aad0,id:_0x52807a,className:_0x5d445,extend:_0x103403,..._0x476106}=_0xedc5e5,_0x13ecf6=(_0x4813f1(0x1b6)+_0x52807a+'\x20'+(_0x5d445||''))['trim'](),_0x381514=v[_0x4813f1(0x1d2)]('_'+H());return j(_0x25aad0,''+_0x52807a,{'defIds':_0x25aad0[_0x4813f1(0x1f9)],'idSuffix':_0x381514[_0x4813f1(0x1fd)]},{'ref':_0x235b61,'className':_0x13ecf6,..._0x476106},_0x103403);}function j(_0x5aeb00,_0x273af2,_0x5edc70,_0x57df21,_0x203064){const _0x478dba=_0x335e3f;return v[_0x478dba(0x207)](_0x5aeb00['tag'],{'key':_0x273af2,...y(_0x5aeb00,_0x5edc70,_0x203064),..._0x57df21},(F(_0x5aeb00,_0x5edc70)[_0x478dba(0x1d4)]||[])[_0x478dba(0x1c7)]((_0x23f294,_0xf03b57)=>j(_0x23f294,_0x273af2+'-'+_0x5aeb00['tag']+'-'+_0xf03b57,_0x5edc70,void 0x0,_0x203064)));}function y(_0x1a3d80,_0x428fb6,_0x4bfffe){const _0x5b3ce9=_0x335e3f,_0x2bd2d2={..._0x1a3d80[_0x5b3ce9(0x23b)]};_0x4bfffe!=null&&_0x4bfffe['colorChannel1']&&_0x2bd2d2[_0x5b3ce9(0x192)]===_0x5b3ce9(0x200)&&(_0x2bd2d2[_0x5b3ce9(0x192)]=_0x4bfffe[_0x5b3ce9(0x200)]),_0x1a3d80[_0x5b3ce9(0x21b)]==='mask'&&_0x2bd2d2['id']&&(_0x2bd2d2['id']=_0x2bd2d2['id']+_0x428fb6[_0x5b3ce9(0x222)]),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4ccbb8,_0x37a7db])=>{const _0x55d601=_0x5b3ce9;_0x4ccbb8===_0x55d601(0x1d3)&&typeof _0x37a7db==_0x55d601(0x1fa)&&(_0x2bd2d2[_0x4ccbb8]=_0x37a7db[_0x55d601(0x209)](/url\(#(.*)\)/,_0x55d601(0x1d8)+_0x428fb6[_0x55d601(0x222)]+')'));});const {defIds:_0x55819d}=_0x428fb6;return!_0x55819d||_0x55819d[_0x5b3ce9(0x238)]===0x0||(_0x1a3d80[_0x5b3ce9(0x21b)]===_0x5b3ce9(0x1e2)&&_0x2bd2d2[_0x5b3ce9(0x1ed)]&&(_0x2bd2d2[_0x5b3ce9(0x1ed)]=_0x2bd2d2[_0x5b3ce9(0x1ed)]+_0x428fb6['idSuffix']),Object[_0x5b3ce9(0x1eb)](_0x2bd2d2)[_0x5b3ce9(0x1a6)](([_0x4cc2a4,_0x3a1206])=>{const _0x1408e6=_0x5b3ce9;typeof _0x3a1206==_0x1408e6(0x1fa)&&(_0x2bd2d2[_0x4cc2a4]=_0x3a1206[_0x1408e6(0x209)](/url\(#(.*)\)/,'url(#$1'+_0x428fb6[_0x1408e6(0x222)]+')'));})),_0x2bd2d2;}function F(_0x5ed592,_0x4e52a6){const _0x3065fa=_0x335e3f;var _0x51209e;const {defIds:_0xe52c6a}=_0x4e52a6;return!_0xe52c6a||_0xe52c6a['length']===0x0?_0x5ed592:_0x5ed592[_0x3065fa(0x21b)]===_0x3065fa(0x1fb)&&((_0x51209e=_0x5ed592[_0x3065fa(0x1d4)])!=null&&_0x51209e[_0x3065fa(0x238)])?{..._0x5ed592,'children':_0x5ed592['children']['map'](_0x531733=>typeof _0x531733[_0x3065fa(0x23b)]['id']==_0x3065fa(0x1fa)&&_0xe52c6a&&_0xe52c6a['includes'](_0x531733[_0x3065fa(0x23b)]['id'])?{..._0x531733,'attrs':{..._0x531733['attrs'],'id':_0x531733[_0x3065fa(0x23b)]['id']+_0x4e52a6[_0x3065fa(0x222)]}}:_0x531733)}:_0x5ed592;}function H(){const _0x4fd351=_0x335e3f;return Math[_0x4fd351(0x202)]()[_0x4fd351(0x198)](0x24)[_0x4fd351(0x1cd)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x335e3f(0x1b0),'attrs':{'xmlns':_0x335e3f(0x1f2),'fill':_0x335e3f(0x218),'viewBox':_0x335e3f(0x237),'width':_0x335e3f(0x1ef),'height':_0x335e3f(0x1ef)},'children':[{'tag':_0x335e3f(0x193),'attrs':{'fill':_0x335e3f(0x219),'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':'path','attrs':{'fill':'currentColor','d':_0x335e3f(0x1a5),'fillRule':_0x335e3f(0x20e),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x4a463e,_0x2f099c){const _0x2d9aec=_0x335e3f;return v[_0x2d9aec(0x207)](x,Object[_0x2d9aec(0x24c)]({},_0x4a463e,{'id':_0x2d9aec(0x1c2),'ref':_0x2f099c,'icon':V}));});R[_0x335e3f(0x1ea)]=_0x335e3f(0x241);class E extends o['Disposable']{constructor(){const _0x343460=_0x335e3f;super(...arguments),_(this,_0x343460(0x1ab),new Set()),_(this,_0x343460(0x20d),new Set());}['registerSharedOperation'](_0x1a9390){const _0x5b1052=_0x335e3f;return this[_0x5b1052(0x1ab)][_0x5b1052(0x1da)](_0x1a9390),o['toDisposable'](()=>this[_0x5b1052(0x1ab)][_0x5b1052(0x206)](_0x1a9390));}[_0x335e3f(0x1be)](_0x4fad4d){const _0x226551=_0x335e3f;return this[_0x226551(0x20d)][_0x226551(0x1da)](_0x4fad4d),o[_0x226551(0x1e7)](()=>this['_reporters'][_0x226551(0x206)](_0x4fad4d));}[_0x335e3f(0x20a)](_0x30dfa2){const _0x7532e1=_0x335e3f;return this[_0x7532e1(0x1ab)][_0x7532e1(0x1aa)](_0x30dfa2);}[_0x335e3f(0x242)](_0x47cdec){const _0x12d038=_0x335e3f;return Array['from'](this[_0x12d038(0x20d)])[_0x12d038(0x1c7)](_0x1d4db6=>_0x1d4db6(_0x47cdec));}}var M=Object[_0x335e3f(0x19c)],P=(_0x35f868,_0x59d011,_0x15a52c,_0x14bdef)=>{const _0x4e351f=_0x335e3f;for(var _0xb43758=_0x14bdef>0x1?void 0x0:_0x14bdef?M(_0x59d011,_0x15a52c):_0x59d011,_0x579d5f=_0x35f868[_0x4e351f(0x238)]-0x1,_0x424a98;_0x579d5f>=0x0;_0x579d5f--)(_0x424a98=_0x35f868[_0x579d5f])&&(_0xb43758=_0x424a98(_0xb43758)||_0xb43758);return _0xb43758;},S=(_0x2073e8,_0x22ebae)=>(_0x2dc02f,_0x1fc569)=>_0x22ebae(_0x2dc02f,_0x1fc569,_0x2073e8);exports[_0x335e3f(0x18c)]=class extends o[_0x335e3f(0x19b)]{constructor(_0xc2d89c,_0x49229c,_0x1b0b51){const _0x11d212=_0x335e3f;super(),_(this,_0x11d212(0x1a4),new Map()),(this[_0x11d212(0x1a0)]=_0xc2d89c,this[_0x11d212(0x1e8)]=_0x49229c,this[_0x11d212(0x23e)]=_0x1b0b51,this[_0x11d212(0x1b4)]());}async[_0x335e3f(0x1f1)](_0x26eb28){const _0x431d5f=_0x335e3f;return this['_entities'][_0x431d5f(0x1aa)](_0x26eb28)||await this[_0x431d5f(0x19a)](_0x26eb28),this[_0x431d5f(0x1a4)][_0x431d5f(0x1bd)](_0x26eb28);}[_0x335e3f(0x1a7)](_0x3224c5){var _0x2c8259;return(_0x2c8259=this['_entities']['get'](_0x3224c5))!=null?_0x2c8259:null;}[_0x335e3f(0x1b4)](){const _0x3ad4f5=_0x335e3f;this[_0x3ad4f5(0x1a0)][_0x3ad4f5(0x196)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])[_0x3ad4f5(0x201)](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))['subscribe'](async _0x2f1aee=>{const _0x44a92e=_0x3ad4f5,_0x122aa2=_0x2f1aee['getUnitId']();this[_0x44a92e(0x1a4)]['has'](_0x122aa2)||this[_0x44a92e(0x19a)](_0x122aa2);}),this['_univerInstanceService'][_0x3ad4f5(0x1d9)](o[_0x3ad4f5(0x203)][_0x3ad4f5(0x247)])['pipe'](I[_0x3ad4f5(0x21f)](this[_0x3ad4f5(0x227)]))[_0x3ad4f5(0x23f)](_0x4939c4=>{const _0x253aa5=_0x3ad4f5,_0xd0726d=_0x4939c4[_0x253aa5(0x1d5)](),_0x25f580=this[_0x253aa5(0x1a4)][_0x253aa5(0x1bd)](_0xd0726d);_0x25f580==null||_0x25f580[_0x253aa5(0x204)]();});}async[_0x335e3f(0x19a)](_0x1858e5){const _0x15ed20=_0x335e3f,_0xa54df1=await this[_0x15ed20(0x23e)][_0x15ed20(0x1e5)](_0x1858e5),_0x2ec1b5=this[_0x15ed20(0x1e8)][_0x15ed20(0x214)](exports[_0x15ed20(0x1de)],_0x1858e5,_0xa54df1);return _0x2ec1b5[_0x15ed20(0x1ac)](),this[_0x15ed20(0x1a4)][_0x15ed20(0x195)](_0x1858e5,_0x2ec1b5),_0x2ec1b5;}},exports[_0x335e3f(0x18c)]=P([S(0x0,o[_0x335e3f(0x236)]),S(0x1,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x4bc884=>(_0x4bc884[_0x335e3f(0x18b)]=_0x335e3f(0x24b),_0x4bc884['IDLE']=_0x335e3f(0x250),_0x4bc884['FOLLOWING']=_0x335e3f(0x1d0),_0x4bc884[_0x335e3f(0x1bc)]=_0x335e3f(0x1ba),_0x4bc884[_0x335e3f(0x18a)]=_0x335e3f(0x1ec),_0x4bc884))(u||{});const k=_0x335e3f(0x1ad),q=0xc8;exports[_0x335e3f(0x1de)]=class extends o['RxDisposable']{constructor(_0xe3ad91,_0x57554e,_0xb923b1,_0xa96d27,_0x5c1134){const _0xe0ece4=_0x335e3f;super(),_(this,'_status$',new O['BehaviorSubject'](_0xe0ece4(0x250))),_(this,_0xe0ece4(0x1cb),this[_0xe0ece4(0x18e)]['asObservable']()),_(this,_0xe0ece4(0x1b4),!0x1),_(this,_0xe0ece4(0x24a),null),_(this,'_presenter',null),(this[_0xe0ece4(0x1d7)]=_0xe3ad91,this[_0xe0ece4(0x1c5)]=_0x57554e,this[_0xe0ece4(0x221)]=_0xb923b1,this[_0xe0ece4(0x1c1)]=_0xa96d27,this[_0xe0ece4(0x213)]=_0x5c1134);}get[_0x335e3f(0x1bf)](){const _0x435b6f=_0x335e3f;return this['_status$'][_0x435b6f(0x1e1)]();}['dispose'](){const _0x364cd1=_0x335e3f;var _0x438aa9;(_0x438aa9=this[_0x364cd1(0x24a)])==null||_0x438aa9[_0x364cd1(0x204)](),this[_0x364cd1(0x18e)][_0x364cd1(0x251)](_0x364cd1(0x250)),this[_0x364cd1(0x18e)][_0x364cd1(0x23c)]();}['getStatus'](){return this['_status'];}[_0x335e3f(0x1ac)](){const _0x4eac70=_0x335e3f;this[_0x4eac70(0x1b4)]||(this[_0x4eac70(0x1b4)]=!0x0,this['_collabSession']['sessionStatus$'][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x3a07a5=>{const _0x560506=_0x4eac70;switch(_0x3a07a5){case b[_0x560506(0x22f)]['OFFLINE']:this[_0x560506(0x1ae)]();break;case b[_0x560506(0x22f)]['ONLINE']:this[_0x560506(0x1e0)]();break;}}),this[_0x4eac70(0x1c5)][_0x4eac70(0x1f4)][_0x4eac70(0x201)](I[_0x4eac70(0x21f)](this[_0x4eac70(0x227)]))[_0x4eac70(0x23f)](_0x1a0916=>{const _0x14d141=_0x4eac70,{eventID:_0x4094ca}=_0x1a0916;switch(_0x4094ca){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x14d141(0x248)](_0x1a0916);break;case d[_0x14d141(0x20c)][_0x14d141(0x1cc)]:this[_0x14d141(0x233)](_0x1a0916);break;case d[_0x14d141(0x20c)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this[_0x14d141(0x1dd)](_0x1a0916);break;}}));}[_0x335e3f(0x1ee)](){const _0x45a843=_0x335e3f;this[_0x45a843(0x1c5)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x45a843(0x1d7)],'userID':this[_0x45a843(0x1c5)][_0x45a843(0x1a2)]()}},this[_0x45a843(0x1d7)]);}[_0x335e3f(0x246)](){const _0x5a0e2d=_0x335e3f;this[_0x5a0e2d(0x1bf)]==='presenting'&&(this[_0x5a0e2d(0x18e)][_0x5a0e2d(0x251)](_0x5a0e2d(0x250)),this[_0x5a0e2d(0x1c5)][_0x5a0e2d(0x188)]({'eventID':d[_0x5a0e2d(0x20c)][_0x5a0e2d(0x1f0)],'data':{'unitID':this['_unitID']}},this[_0x5a0e2d(0x1d7)]));}['startFollowing'](){const _0x3877e3=_0x335e3f;this[_0x3877e3(0x1bf)]===_0x3877e3(0x1ba)&&(this['_status$']['next'](_0x3877e3(0x1d0)),this[_0x3877e3(0x215)]());}[_0x335e3f(0x244)](){const _0x394aec=_0x335e3f;this[_0x394aec(0x1bf)]===_0x394aec(0x1d0)&&this[_0x394aec(0x223)]();}[_0x335e3f(0x248)](_0x482973){const _0x1fcab6=_0x335e3f,{presenter:_0xd7bab8}=_0x482973['data'],_0x33c1b1=this[_0x1fcab6(0x1c5)]['getMemberID']();this[_0x1fcab6(0x24e)]=_0xd7bab8,_0xd7bab8===_0x33c1b1?(this[_0x1fcab6(0x223)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x1fcab6(0x215)]());}[_0x335e3f(0x1d1)](){const _0x3a75fb=_0x335e3f,_0x4d48de={'eventID':d[_0x3a75fb(0x20c)][_0x3a75fb(0x186)]};this[_0x3a75fb(0x1c5)]['send'](_0x4d48de,this[_0x3a75fb(0x1d7)]);}['_handleTerminate'](){const _0x812121=_0x335e3f;this[_0x812121(0x24e)]=null,this[_0x812121(0x1bf)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x24b0ba){const _0x5c0e1a=_0x335e3f;if(this[_0x5c0e1a(0x1bf)]==='following'&&this[_0x5c0e1a(0x24e)]===_0x24b0ba['data']['memberID']){const _0x1ddf77=d['parseProtocolChangeset'](_0x24b0ba[_0x5c0e1a(0x1b7)])['mutations']['reverse']()[_0x5c0e1a(0x1c8)](_0x37c75a=>_0x37c75a['id']===C[_0x5c0e1a(0x197)]['id']);if(_0x1ddf77){const _0x2ca69b=_0x1ddf77[_0x5c0e1a(0x21a)][_0x5c0e1a(0x1fe)],_0x489e2a=_0x1ddf77['params'][_0x5c0e1a(0x1b1)]['id'];setTimeout(()=>{const _0x15633a=_0x5c0e1a;this[_0x15633a(0x213)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ca69b,'subUnitId':_0x489e2a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x57086e=_0x335e3f;this[_0x57086e(0x18e)]['next'](_0x57086e(0x1ec));const _0x50711f=new Map(),_0x4ea4c7=this[_0x57086e(0x24a)]=new o[(_0x57086e(0x243))]();_0x4ea4c7[_0x57086e(0x1da)](o[_0x57086e(0x1e7)](()=>{const _0x15605c=_0x57086e;_0x50711f[_0x15605c(0x1a6)](_0x56436b=>_0x56436b['complete']()),_0x50711f['clear']();})),_0x4ea4c7[_0x57086e(0x1da)](this[_0x57086e(0x213)][_0x57086e(0x22a)](_0x3712c6=>{const _0x41ad4c=_0x57086e;var _0x3b04c9;if(_0x3712c6['type']!==o['CommandType'][_0x41ad4c(0x1c3)]||!this[_0x41ad4c(0x1c1)][_0x41ad4c(0x20a)](_0x3712c6['id']))return;const {id:_0x3e3221}=_0x3712c6;let _0x2a6281;_0x50711f[_0x41ad4c(0x1aa)](_0x3e3221)?_0x2a6281=_0x50711f[_0x41ad4c(0x1bd)](_0x3e3221):(_0x2a6281=new O[(_0x41ad4c(0x199))](),_0x50711f[_0x41ad4c(0x195)](_0x3e3221,_0x2a6281),_0x2a6281[_0x41ad4c(0x201)](I['throttleTime']((_0x3b04c9=this[_0x41ad4c(0x221)][_0x41ad4c(0x1f7)](k))!=null?_0x3b04c9:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x41ad4c(0x23f)](_0x333549=>{const _0x66f188=_0x41ad4c;this['_collabSession'][_0x66f188(0x188)]({'eventID':d[_0x66f188(0x20c)][_0x66f188(0x1cc)],'data':{'unitID':this[_0x66f188(0x1d7)],'operations':{[_0x333549['id']]:{'id':_0x333549['id'],'params':JSON[_0x66f188(0x230)](_0x333549[_0x66f188(0x21a)])}}}},this[_0x66f188(0x1d7)]);})),_0x2a6281[_0x41ad4c(0x251)](_0x3712c6);})),this['_liveShareService'][_0x57086e(0x242)](this[_0x57086e(0x1d7)])[_0x57086e(0x1a6)](_0x434d81=>this[_0x57086e(0x1c5)][_0x57086e(0x188)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57086e(0x1d7)],'operations':{[_0x434d81['id']]:{'id':_0x434d81['id'],'params':JSON[_0x57086e(0x230)](_0x434d81[_0x57086e(0x21a)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2f750e=_0x335e3f;var _0x12341b;this[_0x2f750e(0x18e)][_0x2f750e(0x251)](_0x2f750e(0x250)),(_0x12341b=this[_0x2f750e(0x24a)])==null||_0x12341b[_0x2f750e(0x204)](),this['_commandDisposable']=null;}[_0x335e3f(0x215)](){const _0x15f641=_0x335e3f;var _0x4da1e6;(_0x4da1e6=this[_0x15f641(0x24a)])==null||_0x4da1e6[_0x15f641(0x204)](),this[_0x15f641(0x18e)][_0x15f641(0x251)](_0x15f641(0x1d0));}[_0x335e3f(0x234)](){const _0x57f77a=_0x335e3f;var _0x534cb9;this['_status$']['next'](_0x57f77a(0x250)),(_0x534cb9=this['_commandDisposable'])==null||_0x534cb9[_0x57f77a(0x204)](),this[_0x57f77a(0x24a)]=null;}['_stopFollowing'](){const _0x9b47d1=_0x335e3f;var _0x40739e;this[_0x9b47d1(0x18e)]['next'](_0x9b47d1(0x1ba)),(_0x40739e=this[_0x9b47d1(0x24a)])==null||_0x40739e[_0x9b47d1(0x204)]();}[_0x335e3f(0x233)](_0x53c5ae){const _0x59fcd0=_0x335e3f;if([_0x59fcd0(0x1ec),_0x59fcd0(0x1ba),_0x59fcd0(0x24b)][_0x59fcd0(0x1cf)](this[_0x59fcd0(0x1bf)])||!_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]||_0x53c5ae[_0x59fcd0(0x1b7)][_0x59fcd0(0x1c6)]===this[_0x59fcd0(0x1c5)][_0x59fcd0(0x1a2)]())return;this['_status']===_0x59fcd0(0x250)&&this[_0x59fcd0(0x215)]();const _0x3cb6d8=_0x53c5ae[_0x59fcd0(0x1b7)]['operations'];Object[_0x59fcd0(0x1df)](_0x3cb6d8)[_0x59fcd0(0x1a6)](_0x460078=>{const _0x565d19=_0x59fcd0;this['_commandService'][_0x565d19(0x211)](_0x460078['id'],_0x460078[_0x565d19(0x21a)]?JSON['parse'](_0x460078['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2deeaf=_0x335e3f;var _0x1d2678;this['_status$'][_0x2deeaf(0x251)](_0x2deeaf(0x24b)),(_0x1d2678=this[_0x2deeaf(0x24a)])==null||_0x1d2678[_0x2deeaf(0x204)]();}['_handleOnline'](){const _0x45bbb7=_0x335e3f;this['_status$'][_0x45bbb7(0x251)](_0x45bbb7(0x250)),this['_fetchOperations']();}},exports[_0x335e3f(0x1de)]=P([S(0x2,o[_0x335e3f(0x24f)]),S(0x3,o[_0x335e3f(0x1b9)](E)),S(0x4,o[_0x335e3f(0x1af)])],exports[_0x335e3f(0x1de)]);function $(){const _0x465c12=_0x335e3f,_0x58c52e=p[_0x465c12(0x1a8)](exports['LiveShareController']),_0x21e304=p[_0x465c12(0x1a8)](o[_0x465c12(0x236)]),_0x4b3c32=p[_0x465c12(0x1fc)](()=>_0x21e304[_0x465c12(0x19f)](o[_0x465c12(0x203)][_0x465c12(0x247)]),void 0x0,!0x1,[]),[_0x4847f0,_0xfb3b85]=v[_0x465c12(0x1f3)](null),[_0x519532,_0x45ba0f]=v['useState'](u[_0x465c12(0x217)]),_0x522bac=v[_0x465c12(0x1d2)](null);return v[_0x465c12(0x216)](()=>(_0x4b3c32&&_0x58c52e[_0x465c12(0x1f1)](_0x4b3c32[_0x465c12(0x1d5)]())[_0x465c12(0x21e)](_0x2bfbc9=>{const _0x27481a=_0x465c12;_0xfb3b85(_0x2bfbc9),_0x522bac[_0x27481a(0x1fd)]=_0x2bfbc9['status$'][_0x27481a(0x23f)](_0x5a6bcc=>{_0x45ba0f(_0x5a6bcc);});}),()=>{const _0x1f08b1=_0x465c12;var _0xe43714;(_0xe43714=_0x522bac[_0x1f08b1(0x1fd)])==null||_0xe43714[_0x1f08b1(0x232)](),_0x522bac[_0x1f08b1(0x1fd)]=null;}),[_0x4b3c32,_0x58c52e]),_0x4847f0?l[_0x465c12(0x1c4)](f[_0x465c12(0x1c0)],{'align':_0x465c12(0x1b2),'disabled':_0x519532===u[_0x465c12(0x18b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x465c12(0x1c4)](W,{'status':_0x519532,'coordinator':_0x4847f0}),'children':l[_0x465c12(0x1c4)](_0x465c12(0x245),{'className':f['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x519532===u[_0x465c12(0x18b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x519532!==u[_0x465c12(0x18b)]}),'type':'button','children':l[_0x465c12(0x1c4)](R,{'className':_0x465c12(0x240)})})}):null;}function W(_0x4c50d7){const _0xfdbe9b=_0x335e3f,{status:_0x25dd6f,coordinator:_0x36f486}=_0x4c50d7;switch(_0x25dd6f){case u[_0xfdbe9b(0x217)]:return l[_0xfdbe9b(0x1c4)](G,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x21c)]:return l[_0xfdbe9b(0x1c4)](B,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x1bc)]:return l[_0xfdbe9b(0x1c4)](Y,{'coordinator':_0x36f486});case u[_0xfdbe9b(0x18b)]:return l[_0xfdbe9b(0x1c4)](J,{});case u[_0xfdbe9b(0x18a)]:return l[_0xfdbe9b(0x1c4)](Z,{'coordinator':_0x36f486});default:return null;}}function G(_0x45cb02){const _0x1fee8e=_0x335e3f,{coordinator:_0x42716f}=_0x45cb02;return l[_0x1fee8e(0x1ce)](l[_0x1fee8e(0x189)],{'children':[l[_0x1fee8e(0x1c4)](_0x1fee8e(0x23a),{'className':_0x1fee8e(0x22c),'children':_0x1fee8e(0x231)}),l[_0x1fee8e(0x1c4)](f[_0x1fee8e(0x228)],{'onClick':()=>_0x42716f[_0x1fee8e(0x1ee)](),'children':_0x1fee8e(0x208)})]});}function B(_0x55981c){const _0xd213d9=_0x335e3f,{coordinator:_0x2354ae}=_0x55981c;return l[_0xd213d9(0x1ce)](l[_0xd213d9(0x189)],{'children':[l[_0xd213d9(0x1c4)]('div',{'className':_0xd213d9(0x22c),'children':_0xd213d9(0x235)}),l['jsx'](f[_0xd213d9(0x228)],{'onClick':()=>_0x2354ae[_0xd213d9(0x244)](),'children':_0xd213d9(0x18f)})]});}function Y(_0x3280fd){const _0x546db4=_0x335e3f,{coordinator:_0x3dd81d}=_0x3280fd;return l[_0x546db4(0x1ce)](l[_0x546db4(0x189)],{'children':[l[_0x546db4(0x1c4)](_0x546db4(0x23a),{'className':_0x546db4(0x22c),'children':_0x546db4(0x22e)}),l[_0x546db4(0x1c4)](f[_0x546db4(0x228)],{'variant':_0x546db4(0x20b),'onClick':()=>_0x3dd81d[_0x546db4(0x212)](),'children':_0x546db4(0x1e9)})]});}function Z(_0xf03ade){const _0x2a119e=_0x335e3f,{coordinator:_0x4ef572}=_0xf03ade;return l[_0x2a119e(0x1ce)](l[_0x2a119e(0x189)],{'children':[l[_0x2a119e(0x1c4)]('div',{'className':_0x2a119e(0x22c),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2a119e(0x1c4)](f[_0x2a119e(0x228)],{'variant':_0x2a119e(0x1b8),'onClick':()=>_0x4ef572['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x55fa(){const _0x195d24=['univer-mb-3\x20univer-w-full\x20univer-text-sm','type','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','stringify','Present\x20this\x20document','unsubscribe','_handleOperation','_beIdle','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','0\x200\x2017\x2017','length','1222190NorTIN','div','attrs','complete','Disposable','_collabSessionService','subscribe','univer-size-4','LiveShareIcon','getInitialStates','DisposableCollection','stopFollowing','button','stopPresenting','UNIVER_SHEET','_handleNewHost','HEADER_MENU','_commandDisposable','offline','assign','defineProperty','_presenter','IConfigService','idle','next','UNIVER_LIVE_SHARE_PLUGIN','269871OMyEyY','LIVESHARE_FETCH_OPERATIONS','mergeOverrideWithDependencies','send','Fragment','PRESENTING','OFFLINE','LiveShareController','touchDependencies','_status$','Stop\x20following','2XOaOWc','Injector','fill','path','disposeWithMe','set','getTypeOfUnitAdded$','InsertSheetMutation','toString','Subject','_startLiveShareCoordinator','RxDisposable','getOwnPropertyDescriptor','registerSharedOperation','_config','getCurrentTypeOfUnit$','_univerInstanceService','SetWorksheetActiveOperation','getMemberID','live-share.config','_entities','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','forEach','getLiveShareCoordinatorSync','useDependency','52878RfgYDx','has','_sharedOperations','init','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','ICommandService','svg','sheet','end','3LqTQOt','_init','_uiPartsService','univerjs-icon\x20univerjs-icon-','data','default','Inject','not-following','LiveShareService','NOT_FOLLOWING','get','registerInitialStateReporter','_status','Dropdown','_liveShareService','live-share-icon','OPERATION','jsx','_collabSession','presenter','map','find','_mountLiveShare','Module','status$','LIVESHARE_OPERATION','substring','jsxs','includes','following','_fetchOperations','useRef','mask','children','getUnitId','IUIPartsService','_unitID','url(#$1','getTypeOfUnitDisposed$','add','onRendered','setConfig','_handleNewChangeSets','LiveShareCoordinator','values','_handleOnline','getValue','use','connectInjector','DesktopLiveShareController','requireSession','override','toDisposable','_injector','Start\x20following','displayName','entries','presenting','xlink:href','tryStartPresenting','1em','LIVESHARE_TERMINATE','getLiveShareCoordinator','http://www.w3.org/2000/svg','useState','event$','2585380kokgNa','423QgGqTr','getConfig','1355262tjgijb','defIds','string','defs','useObservable','current','unitId','DependentOn','colorChannel1','pipe','random','UniverInstanceType','dispose','462412YwZBKR','delete','createElement','Start','replace','shouldShareOperation','text','CollaborationEvent','_reporters','evenodd','LiveShareStatus','79608UYDaam','executeCommand','startFollowing','_commandService','createInstance','_startFollowing','useEffect','IDLE','none','currentColor','params','tag','FOLLOWING','registerDependencies','then','takeUntil','UNIVER_UNKNOWN','_configService','idSuffix','_stopFollowing','UniverCollaborationClientPlugin','toStringTag','UniverLiveSharePlugin','dispose$','Button','symbol','onCommandExecuted','merge'];_0x55fa=function(){return _0x195d24;};return _0x55fa();}function J(){const _0x2a8be5=_0x335e3f;return l[_0x2a8be5(0x1c4)](l[_0x2a8be5(0x189)],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0xbc2349,_0x5cfb31,_0x14845,_0x57fe07)=>{const _0x4db956=_0x335e3f;for(var _0x6b3eca=_0x57fe07>0x1?void 0x0:_0x57fe07?K(_0x5cfb31,_0x14845):_0x5cfb31,_0x4ed0a5=_0xbc2349[_0x4db956(0x238)]-0x1,_0x51d53c;_0x4ed0a5>=0x0;_0x4ed0a5--)(_0x51d53c=_0xbc2349[_0x4ed0a5])&&(_0x6b3eca=_0x51d53c(_0x6b3eca)||_0x6b3eca);return _0x6b3eca;},L=(_0x260c27,_0x561f40)=>(_0x328910,_0x34c874)=>_0x561f40(_0x328910,_0x34c874,_0x260c27);exports[_0x335e3f(0x1e4)]=class extends o['Disposable']{constructor(_0x3aaa2d,_0x7558f0){const _0x2c64a9=_0x335e3f;super(),this[_0x2c64a9(0x1e8)]=_0x3aaa2d,this[_0x2c64a9(0x1b5)]=_0x7558f0,this[_0x2c64a9(0x1c9)]();}[_0x335e3f(0x1c9)](){const _0x3262bc=_0x335e3f;this[_0x3262bc(0x194)](this['_uiPartsService']['registerComponent'](p['BuiltInUIPart'][_0x3262bc(0x249)],()=>p[_0x3262bc(0x1e3)]($,this['_injector'])));}},exports[_0x335e3f(0x1e4)]=z([L(0x0,o[_0x335e3f(0x1b9)](o[_0x335e3f(0x191)])),L(0x1,p[_0x335e3f(0x1d6)])],exports['DesktopLiveShareController']);const Q=_0x335e3f(0x1a3),w={};function _0x4ce9(_0x30666b,_0x4dbdb3){const _0x55fa89=_0x55fa();return _0x4ce9=function(_0x4ce91e,_0x25f808){_0x4ce91e=_0x4ce91e-0x184;let _0x3deaeb=_0x55fa89[_0x4ce91e];return _0x3deaeb;},_0x4ce9(_0x30666b,_0x4dbdb3);}var X=Object[_0x335e3f(0x19c)],ee=(_0x9b829c,_0x211765,_0x2f86a1,_0x35ef56)=>{const _0x2f7c84=_0x335e3f;for(var _0x3880ac=_0x35ef56>0x1?void 0x0:_0x35ef56?X(_0x211765,_0x2f86a1):_0x211765,_0x2bc75a=_0x9b829c[_0x2f7c84(0x238)]-0x1,_0x4ebeb8;_0x2bc75a>=0x0;_0x2bc75a--)(_0x4ebeb8=_0x9b829c[_0x2bc75a])&&(_0x3880ac=_0x4ebeb8(_0x3880ac)||_0x3880ac);return _0x3880ac;},te=(_0x52aaa0,_0x4a3d0d)=>(_0x164af9,_0x587066)=>_0x4a3d0d(_0x164af9,_0x587066,_0x52aaa0);let m=class extends o[_0x335e3f(0x23d)]{constructor(_0x1822b7){const _0x1b9fc6=_0x335e3f;super(),this[_0x1b9fc6(0x1c1)]=_0x1822b7,this[_0x1b9fc6(0x1b4)]();}[_0x335e3f(0x1b4)](){const _0xe5129c=_0x335e3f;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0xe5129c(0x1a1)]['id']][_0xe5129c(0x1a6)](_0x1ec6b2=>{const _0xfcd2b1=_0xe5129c;this[_0xfcd2b1(0x194)](this[_0xfcd2b1(0x1c1)][_0xfcd2b1(0x19d)](_0x1ec6b2));});}};m=ee([te(0x0,o[_0x335e3f(0x1b9)](E))],m);var ie=Object[_0x335e3f(0x24d)],se=Object[_0x335e3f(0x19c)],ne=(_0x15a97b,_0x22879f,_0xe90704)=>_0x22879f in _0x15a97b?ie(_0x15a97b,_0x22879f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe90704}):_0x15a97b[_0x22879f]=_0xe90704,re=(_0x14641e,_0x21ded4,_0x34a455,_0xa2339d)=>{for(var _0x443db5=_0xa2339d>0x1?void 0x0:_0xa2339d?se(_0x21ded4,_0x34a455):_0x21ded4,_0xec3245=_0x14641e['length']-0x1,_0x41ccd3;_0xec3245>=0x0;_0xec3245--)(_0x41ccd3=_0x14641e[_0xec3245])&&(_0x443db5=_0x41ccd3(_0x443db5)||_0x443db5);return _0x443db5;},N=(_0x50944c,_0xf09363)=>(_0x13b97f,_0x487bba)=>_0xf09363(_0x13b97f,_0x487bba,_0x50944c),A=(_0x3db79a,_0x206f12,_0x146558)=>ne(_0x3db79a,typeof _0x206f12!=_0x335e3f(0x229)?_0x206f12+'':_0x206f12,_0x146558);const oe=_0x335e3f(0x184);exports[_0x335e3f(0x226)]=class extends o['Plugin']{constructor(_0x6aea2=w,_0x3c87af,_0x3e8a3d){const _0x33d785=_0x335e3f;super(),this[_0x33d785(0x19e)]=_0x6aea2,this[_0x33d785(0x1e8)]=_0x3c87af,this['_configService']=_0x3e8a3d;const {..._0x4acc32}=o[_0x33d785(0x22b)]({},w,this['_config']);this[_0x33d785(0x221)][_0x33d785(0x1dc)](Q,_0x4acc32);}['onStarting'](){const _0x149383=_0x335e3f;o[_0x149383(0x21d)](this[_0x149383(0x1e8)],o[_0x149383(0x187)]([[E],[exports[_0x149383(0x18c)]],[m],[exports[_0x149383(0x1e4)]]],this['_config'][_0x149383(0x1e6)])),o[_0x149383(0x18d)](this[_0x149383(0x1e8)],[[m]]);}[_0x335e3f(0x1db)](){const _0x4483c0=_0x335e3f;o[_0x4483c0(0x18d)](this[_0x4483c0(0x1e8)],[[exports[_0x4483c0(0x1e4)]]]);}},A(exports['UniverLiveSharePlugin'],_0x335e3f(0x22d),o[_0x335e3f(0x203)][_0x335e3f(0x220)]),A(exports[_0x335e3f(0x226)],'pluginName',oe),exports[_0x335e3f(0x226)]=re([o[_0x335e3f(0x1ff)](b[_0x335e3f(0x224)]),N(0x1,o[_0x335e3f(0x1b9)](o['Injector'])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports[_0x335e3f(0x1bb)]=E,exports[_0x335e3f(0x20f)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b54dc=_0x1cda;(function(_0x4f436f,_0x5b0850){const _0x59851d=_0x1cda,_0x14bc6b=_0x4f436f();while(!![]){try{const _0xf4f163=-parseInt(_0x59851d(0x96))/0x1*(-parseInt(_0x59851d(0x9c))/0x2)+parseInt(_0x59851d(0xa8))/0x3+-parseInt(_0x59851d(0xa2))/0x4+-parseInt(_0x59851d(0x94))/0x5+parseInt(_0x59851d(0xa0))/0x6*(parseInt(_0x59851d(0x97))/0x7)+-parseInt(_0x59851d(0x98))/0x8+parseInt(_0x59851d(0xa6))/0x9*(parseInt(_0x59851d(0x90))/0xa);if(_0xf4f163===_0x5b0850)break;else _0x14bc6b['push'](_0x14bc6b['shift']());}catch(_0x2894bb){_0x14bc6b['push'](_0x14bc6b['shift']());}}}(_0x2c2f,0x8f628));import{LiveShareController as _0x360aa6,LiveShareStatus as _0x2921bd}from'@univerjs-pro/live-share';function _0x1cda(_0x4ef67,_0x42a305){const _0x2c2f4a=_0x2c2f();return _0x1cda=function(_0x1cda42,_0xc328cb){_0x1cda42=_0x1cda42-0x8f;let _0x3b7683=_0x2c2f4a[_0x1cda42];return _0x3b7683;},_0x1cda(_0x4ef67,_0x42a305);}import{IRenderManagerService as _0x5581eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x11fd11}from'@univerjs/sheets';import{SetScrollOperation as _0x5c7015}from'@univerjs/sheets-ui';import{FRange as _0x3cbc29}from'@univerjs/sheets/facade';function _0x2c2f(){const _0x3116c7=['getLiveShareCoordinatorSync','304335PxgWHE','No\x20active\x20workbook\x20found.','2865159zdHbaL','stopPresenting','startRow','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getId','PRESENTING','120dztKlf','get','getSheetId','stopFollowing','5867370MvUzGJ','startPresenting','36502znEKnM','99001iSzQyU','8612216gRnrDL','startColumn','getActiveWorkbook','getActiveSheet','46gxUSiT','extend','_commandService','_injector','396kyImME','getLiveShareStatus','1186048WyfsOC','IDLE','getStatus'];_0x2c2f=function(){return _0x3116c7;};return _0x2c2f();}import{FUniver as _0x588fcb,FEnum as _0x1789a1}from'@univerjs/core/facade';class I extends _0x3cbc29{['_initialize'](_0x42495e,_0x555848,_0x1e6493,_0x59deac,_0x19cf00){const _0x477317=_0x1cda,_0x28b36e=_0x42495e[_0x477317(0x91)](_0x360aa6),_0x31b023=_0x42495e[_0x477317(0x91)](_0x5581eb),_0x3689f5=_0x555848[_0x477317(0xab)](),_0x1873dd=_0x555848[_0x477317(0x9b)](),_0x196b83=_0x28b36e[_0x477317(0xa5)](_0x3689f5);(_0x196b83==null?void 0x0:_0x196b83['getStatus']())!==_0x2921bd[_0x477317(0x8f)]||(_0x1e6493[_0x477317(0x92)]()!==_0x1873dd[_0x477317(0x92)]()&&this[_0x477317(0x9e)]['executeCommand'](_0x11fd11['id'],{'unitId':_0x3689f5,'subUnitId':_0x1e6493['getSheetId']()}),!_0x31b023['getRenderById'](_0x3689f5))||_0x19cf00['syncExecuteCommand'](_0x5c7015['id'],{'unitId':_0x555848[_0x477317(0xab)](),'sheetId':_0x1e6493['getSheetId'](),'sheetViewStartRow':_0x59deac[_0x477317(0xaa)],'sheetViewStartColumn':_0x59deac[_0x477317(0x99)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cbc29[_0x2b54dc(0x9d)](I);class m extends _0x588fcb{[_0x2b54dc(0xa1)](){const _0x586947=_0x2b54dc;var _0x14a0d0,_0x213e21;const _0x48aa70=this['_injector'][_0x586947(0x91)](_0x360aa6),_0x8862f9=(_0x14a0d0=this['getActiveWorkbook']())==null?void 0x0:_0x14a0d0[_0x586947(0xae)]();if(!_0x8862f9)throw new Error('No\x20active\x20workbook\x20found.');const _0xda90e6=_0x48aa70[_0x586947(0xa5)](_0x8862f9);return(_0x213e21=_0xda90e6==null?void 0x0:_0xda90e6[_0x586947(0xa4)]())!=null?_0x213e21:_0x2921bd[_0x586947(0xa3)];}[_0x2b54dc(0xad)](){const _0x448248=_0x2b54dc;var _0x52c069;const _0xbf2cf6=this['_injector'][_0x448248(0x91)](_0x360aa6),_0x5b19c8=(_0x52c069=this[_0x448248(0x9a)]())==null?void 0x0:_0x52c069[_0x448248(0xae)]();if(!_0x5b19c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x10207a=_0xbf2cf6['getLiveShareCoordinatorSync'](_0x5b19c8);if(!_0x10207a)throw new Error(_0x448248(0xac));_0x10207a[_0x448248(0xad)]();}[_0x2b54dc(0x93)](){const _0xa46f10=_0x2b54dc;var _0x44023a;const _0x27e4ba=this[_0xa46f10(0x9f)][_0xa46f10(0x91)](_0x360aa6),_0x348b1=(_0x44023a=this[_0xa46f10(0x9a)]())==null?void 0x0:_0x44023a[_0xa46f10(0xae)]();if(!_0x348b1)throw new Error(_0xa46f10(0xa7));const _0x7ffa37=_0x27e4ba[_0xa46f10(0xa5)](_0x348b1);if(!_0x7ffa37)throw new Error(_0xa46f10(0xac));_0x7ffa37[_0xa46f10(0x93)]();}[_0x2b54dc(0x95)](){const _0x46ba7e=_0x2b54dc;var _0x2c680c;const _0x15ebf7=this['_injector'][_0x46ba7e(0x91)](_0x360aa6),_0x32691f=(_0x2c680c=this[_0x46ba7e(0x9a)]())==null?void 0x0:_0x2c680c[_0x46ba7e(0xae)]();if(!_0x32691f)throw new Error(_0x46ba7e(0xa7));const _0x30e3ff=_0x15ebf7[_0x46ba7e(0xa5)](_0x32691f);if(!_0x30e3ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x30e3ff['tryStartPresenting']();}[_0x2b54dc(0xa9)](){const _0x5bae7a=_0x2b54dc;var _0x595c1e;const _0x83fc3b=this[_0x5bae7a(0x9f)]['get'](_0x360aa6),_0x49148d=(_0x595c1e=this['getActiveWorkbook']())==null?void 0x0:_0x595c1e[_0x5bae7a(0xae)]();if(!_0x49148d)throw new Error(_0x5bae7a(0xa7));const _0x30450b=_0x83fc3b[_0x5bae7a(0xa5)](_0x49148d);if(!_0x30450b)throw new Error(_0x5bae7a(0xac));_0x30450b[_0x5bae7a(0xa9)]();}}_0x588fcb['extend'](m);class C extends _0x1789a1{get['LiveShareStatusEnum'](){return _0x2921bd;}}_0x1789a1['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x120a2b=_0x26b9;(function(_0x53f5f9,_0x3bafdc){const _0x2abc08=_0x26b9,_0x2ca953=_0x53f5f9();while(!![]){try{const _0xcb96f3=-parseInt(_0x2abc08(0x100))/0x1*(parseInt(_0x2abc08(0x10c))/0x2)+-parseInt(_0x2abc08(0xaa))/0x3+parseInt(_0x2abc08(0xb8))/0x4*(-parseInt(_0x2abc08(0xd8))/0x5)+-parseInt(_0x2abc08(0xba))/0x6+-parseInt(_0x2abc08(0x7a))/0x7+-parseInt(_0x2abc08(0x94))/0x8*(parseInt(_0x2abc08(0xc1))/0x9)+parseInt(_0x2abc08(0x6b))/0xa;if(_0xcb96f3===_0x3bafdc)break;else _0x2ca953['push'](_0x2ca953['shift']());}catch(_0x5bea76){_0x2ca953['push'](_0x2ca953['shift']());}}}(_0x33a5,0xe3c20));var J=Object['defineProperty'],K=(_0x5aec59,_0x13ca00,_0x4b0ae4)=>_0x13ca00 in _0x5aec59?J(_0x5aec59,_0x13ca00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0ae4}):_0x5aec59[_0x13ca00]=_0x4b0ae4,u=(_0x881185,_0x3b3059,_0x539026)=>K(_0x881185,typeof _0x3b3059!=_0x120a2b(0x101)?_0x3b3059+'':_0x3b3059,_0x539026);import{Disposable as _0x10e724,toDisposable as _0xecf4ac,IUniverInstanceService as _0x4f9501,Inject as _0x664ed,Injector as _0x401650,IConfigService as _0x2ed083,ICommandService as _0x135622,RxDisposable as _0x5c1fea,UniverInstanceType as _0x3d4707,DisposableCollection as _0x19993a,CommandType as _0x3476fb,DependentOn as _0x4f1006,Plugin as _0x59667f,merge as _0xfda1f7,registerDependencies as _0x565181,mergeOverrideWithDependencies as _0x33514b,touchDependencies as _0x13d42a}from'@univerjs/core';function _0x26b9(_0x593ca5,_0x2aaf2b){const _0x33a512=_0x33a5();return _0x26b9=function(_0x26b935,_0x346bc3){_0x26b935=_0x26b935-0x6a;let _0x36a114=_0x33a512[_0x26b935];return _0x36a114;},_0x26b9(_0x593ca5,_0x2aaf2b);}import{useDependency as _0x31a3bf,useObservable as _0x1747f3,IUIPartsService as _0x369c81,BuiltInUIPart as _0x10896f,connectInjector as _0x176107}from'@univerjs/ui';import{jsx as _0x2afce9,jsxs as _0x3b072f,Fragment as _0xe9ebfb}from'react/jsx-runtime';import{Dropdown as _0xe72b8,clsx as _0x26a9c1,Button as _0x2ce32f}from'@univerjs/design';import{useRef as _0x2d670c,createElement as _0x31ddf7,forwardRef as _0x4ebddd,useState as _0x1c978f,useEffect as _0x14c993}from'react';import{CollaborationEvent as _0x433ed7,parseProtocolChangeset as _0x289710}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x507a8b,SessionStatus as _0x2fb0b9,UniverCollaborationClientPlugin as _0x1e5f88}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x528955,SetWorksheetActiveOperation as _0x38317b}from'@univerjs/sheets';import{BehaviorSubject as _0x3ecabd,Subject as _0x5c5fdd}from'rxjs';import{takeUntil as _0xb8a7e7,throttleTime as _0x58391f}from'rxjs/operators';import{SetZoomRatioOperation as _0xefa49d,SetScrollOperation as _0x4dd920}from'@univerjs/sheets-ui';function k({ref:_0x531bb1,..._0x37f1e4}){const _0x328225=_0x120a2b,{icon:_0x791cb1,id:_0x56471c,className:_0x28298a,extend:_0x496f10,..._0x3e2e0e}=_0x37f1e4,_0x54923c=(_0x328225(0x9a)+_0x56471c+'\x20'+(_0x28298a||''))[_0x328225(0xe6)](),_0xfd9e0e=_0x2d670c('_'+Oe());return G(_0x791cb1,''+_0x56471c,{'defIds':_0x791cb1['defIds'],'idSuffix':_0xfd9e0e[_0x328225(0xc3)]},{'ref':_0x531bb1,'className':_0x54923c,..._0x3e2e0e},_0x496f10);}function G(_0x268017,_0x3c0cad,_0x4918b6,_0x5d2c6e,_0x5b4827){const _0x5ddc65=_0x120a2b;return _0x31ddf7(_0x268017[_0x5ddc65(0x8f)],{'key':_0x3c0cad,...be(_0x268017,_0x4918b6,_0x5b4827),..._0x5d2c6e},(Ee(_0x268017,_0x4918b6)[_0x5ddc65(0xf2)]||[])[_0x5ddc65(0x83)]((_0x56c7ef,_0x1031c3)=>G(_0x56c7ef,_0x3c0cad+'-'+_0x268017[_0x5ddc65(0x8f)]+'-'+_0x1031c3,_0x4918b6,void 0x0,_0x5b4827)));}function be(_0x4c63d5,_0x25f124,_0x26f969){const _0x556b5a=_0x120a2b,_0x5d28ef={..._0x4c63d5[_0x556b5a(0x90)]};_0x26f969!=null&&_0x26f969[_0x556b5a(0x10b)]&&_0x5d28ef[_0x556b5a(0xee)]==='colorChannel1'&&(_0x5d28ef[_0x556b5a(0xee)]=_0x26f969['colorChannel1']),_0x4c63d5[_0x556b5a(0x8f)]===_0x556b5a(0x9d)&&_0x5d28ef['id']&&(_0x5d28ef['id']=_0x5d28ef['id']+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x41037a,_0x377b0c])=>{const _0x38dd7f=_0x556b5a;_0x41037a===_0x38dd7f(0x9d)&&typeof _0x377b0c==_0x38dd7f(0x10a)&&(_0x5d28ef[_0x41037a]=_0x377b0c[_0x38dd7f(0x107)](/url\(#(.*)\)/,_0x38dd7f(0xda)+_0x25f124[_0x38dd7f(0xbb)]+')'));});const {defIds:_0x4eccee}=_0x25f124;return!_0x4eccee||_0x4eccee[_0x556b5a(0xa6)]===0x0||(_0x4c63d5[_0x556b5a(0x8f)]==='use'&&_0x5d28ef[_0x556b5a(0xca)]&&(_0x5d28ef[_0x556b5a(0xca)]=_0x5d28ef[_0x556b5a(0xca)]+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x3eaad4,_0x4c248f])=>{const _0x4cf940=_0x556b5a;typeof _0x4c248f==_0x4cf940(0x10a)&&(_0x5d28ef[_0x3eaad4]=_0x4c248f[_0x4cf940(0x107)](/url\(#(.*)\)/,_0x4cf940(0xda)+_0x25f124[_0x4cf940(0xbb)]+')'));})),_0x5d28ef;}function Ee(_0x31b646,_0x18c57e){const _0x40c462=_0x120a2b;var _0x3340f1;const {defIds:_0x582a67}=_0x18c57e;return!_0x582a67||_0x582a67['length']===0x0?_0x31b646:_0x31b646[_0x40c462(0x8f)]===_0x40c462(0xd9)&&((_0x3340f1=_0x31b646[_0x40c462(0xf2)])!=null&&_0x3340f1[_0x40c462(0xa6)])?{..._0x31b646,'children':_0x31b646[_0x40c462(0xf2)][_0x40c462(0x83)](_0x4f92e9=>typeof _0x4f92e9[_0x40c462(0x90)]['id']=='string'&&_0x582a67&&_0x582a67[_0x40c462(0xcb)](_0x4f92e9[_0x40c462(0x90)]['id'])?{..._0x4f92e9,'attrs':{..._0x4f92e9[_0x40c462(0x90)],'id':_0x4f92e9[_0x40c462(0x90)]['id']+_0x18c57e['idSuffix']}}:_0x4f92e9)}:_0x31b646;}function Oe(){const _0x3db730=_0x120a2b;return Math[_0x3db730(0xb6)]()['toString'](0x24)[_0x3db730(0xb5)](0x2,0x8);}k[_0x120a2b(0x77)]=_0x120a2b(0xac);const we={'tag':_0x120a2b(0xd3),'attrs':{'xmlns':_0x120a2b(0xf5),'fill':_0x120a2b(0xde),'viewBox':_0x120a2b(0xfe),'width':_0x120a2b(0xc9),'height':_0x120a2b(0xc9)},'children':[{'tag':_0x120a2b(0x106),'attrs':{'fill':'currentColor','d':_0x120a2b(0xa7)}},{'tag':_0x120a2b(0x106),'attrs':{'fill':_0x120a2b(0xc0),'d':_0x120a2b(0x6d),'fillRule':_0x120a2b(0x97),'clipRule':_0x120a2b(0x97)}}]},W=_0x4ebddd(function(_0x5c0f69,_0x3c1549){const _0x2eb2e5=_0x120a2b;return _0x31ddf7(k,Object[_0x2eb2e5(0x8e)]({},_0x5c0f69,{'id':_0x2eb2e5(0x96),'ref':_0x3c1549,'icon':we}));});W[_0x120a2b(0x77)]=_0x120a2b(0xf7);class L extends _0x10e724{constructor(){const _0x32ce2d=_0x120a2b;super(...arguments),u(this,_0x32ce2d(0xe1),new Set()),u(this,_0x32ce2d(0xec),new Set());}[_0x120a2b(0x111)](_0x2a9046){const _0x3623b2=_0x120a2b;return this[_0x3623b2(0xe1)][_0x3623b2(0x103)](_0x2a9046),_0xecf4ac(()=>this[_0x3623b2(0xe1)][_0x3623b2(0xa4)](_0x2a9046));}[_0x120a2b(0xa8)](_0x5a48f9){const _0x331f3c=_0x120a2b;return this[_0x331f3c(0xec)][_0x331f3c(0x103)](_0x5a48f9),_0xecf4ac(()=>this[_0x331f3c(0xec)][_0x331f3c(0xa4)](_0x5a48f9));}[_0x120a2b(0xf4)](_0x3584e9){const _0x14e6ac=_0x120a2b;return this[_0x14e6ac(0xe1)][_0x14e6ac(0xe5)](_0x3584e9);}['getInitialStates'](_0x4f1bc3){const _0x559b77=_0x120a2b;return Array['from'](this['_reporters'])[_0x559b77(0x83)](_0x9f0075=>_0x9f0075(_0x4f1bc3));}}var Ne=Object[_0x120a2b(0x7e)],Y=(_0x4444f4,_0x4544e7,_0x37c29d,_0x2a448f)=>{const _0x117db8=_0x120a2b;for(var _0x263a5b=_0x2a448f>0x1?void 0x0:_0x2a448f?Ne(_0x4544e7,_0x37c29d):_0x4544e7,_0x4cf82e=_0x4444f4[_0x117db8(0xa6)]-0x1,_0x5a15d2;_0x4cf82e>=0x0;_0x4cf82e--)(_0x5a15d2=_0x4444f4[_0x4cf82e])&&(_0x263a5b=_0x5a15d2(_0x263a5b)||_0x263a5b);return _0x263a5b;},_=(_0x44c7c7,_0x3ae792)=>(_0x1255c9,_0x95eb53)=>_0x3ae792(_0x1255c9,_0x95eb53,_0x44c7c7);let S=class extends _0x5c1fea{constructor(_0x49501a,_0x573dba,_0x3febec){const _0x3cda10=_0x120a2b;super(),u(this,'_entities',new Map()),(this[_0x3cda10(0xbd)]=_0x49501a,this[_0x3cda10(0xfd)]=_0x573dba,this[_0x3cda10(0xab)]=_0x3febec,this['_init']());}async['getLiveShareCoordinator'](_0x17f588){const _0x4b35ff=_0x120a2b;return this[_0x4b35ff(0xc7)][_0x4b35ff(0xe5)](_0x17f588)||await this[_0x4b35ff(0xa2)](_0x17f588),this[_0x4b35ff(0xc7)]['get'](_0x17f588);}[_0x120a2b(0x93)](_0x11211a){const _0x4bd6ff=_0x120a2b;var _0x509f44;return(_0x509f44=this['_entities'][_0x4bd6ff(0xfa)](_0x11211a))!=null?_0x509f44:null;}[_0x120a2b(0x84)](){const _0x457397=_0x120a2b;this[_0x457397(0xbd)][_0x457397(0xeb)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this[_0x457397(0x88)]))[_0x457397(0x6e)](async _0x2c725c=>{const _0x4d0ee7=_0x457397,_0x3efd52=_0x2c725c[_0x4d0ee7(0x99)]();this[_0x4d0ee7(0xc7)]['has'](_0x3efd52)||this['_startLiveShareCoordinator'](_0x3efd52);}),this[_0x457397(0xbd)][_0x457397(0x9b)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this['dispose$']))[_0x457397(0x6e)](_0xef4b1f=>{const _0x46daf=_0x457397,_0x1d0fe8=_0xef4b1f[_0x46daf(0x99)](),_0x3e173a=this[_0x46daf(0xc7)]['get'](_0x1d0fe8);_0x3e173a==null||_0x3e173a['dispose']();});}async[_0x120a2b(0xa2)](_0xdbc3d7){const _0x36237b=_0x120a2b,_0x4f8ff0=await this['_collabSessionService'][_0x36237b(0xbf)](_0xdbc3d7),_0x1f85ca=this[_0x36237b(0xfd)][_0x36237b(0x92)](N,_0xdbc3d7,_0x4f8ff0);return _0x1f85ca[_0x36237b(0xf1)](),this[_0x36237b(0xc7)][_0x36237b(0xbe)](_0xdbc3d7,_0x1f85ca),_0x1f85ca;}};S=Y([_(0x0,_0x4f9501),_(0x1,_0x664ed(_0x401650)),_(0x2,_0x664ed(_0x507a8b))],S);var c=(_0x272c8e=>(_0x272c8e[_0x120a2b(0x98)]=_0x120a2b(0xbc),_0x272c8e[_0x120a2b(0xe9)]=_0x120a2b(0x6c),_0x272c8e[_0x120a2b(0xdd)]=_0x120a2b(0xfc),_0x272c8e['NOT_FOLLOWING']=_0x120a2b(0xce),_0x272c8e[_0x120a2b(0xb1)]=_0x120a2b(0x10f),_0x272c8e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x5c1fea{constructor(_0x47990c,_0x240b24,_0x37f971,_0xe39edd,_0x349276){const _0x545f70=_0x120a2b;super(),u(this,'_status$',new _0x3ecabd('idle')),u(this,'status$',this[_0x545f70(0xb0)][_0x545f70(0xa9)]()),u(this,_0x545f70(0x84),!0x1),u(this,'_commandDisposable',null),u(this,_0x545f70(0x73),null),(this[_0x545f70(0xd1)]=_0x47990c,this['_collabSession']=_0x240b24,this[_0x545f70(0x71)]=_0x37f971,this[_0x545f70(0xaf)]=_0xe39edd,this[_0x545f70(0xed)]=_0x349276);}get[_0x120a2b(0x80)](){const _0x5d93a6=_0x120a2b;return this[_0x5d93a6(0xb0)][_0x5d93a6(0x7f)]();}[_0x120a2b(0xf3)](){const _0x318e54=_0x120a2b;var _0x5b49f3;(_0x5b49f3=this[_0x318e54(0xc5)])==null||_0x5b49f3[_0x318e54(0xf3)](),this[_0x318e54(0xb0)][_0x318e54(0xdc)](_0x318e54(0x6c)),this[_0x318e54(0xb0)][_0x318e54(0x104)]();}[_0x120a2b(0xae)](){const _0x47c849=_0x120a2b;return this[_0x47c849(0x80)];}[_0x120a2b(0xf1)](){const _0x218bae=_0x120a2b;this[_0x218bae(0x84)]||(this[_0x218bae(0x84)]=!0x0,this[_0x218bae(0x82)][_0x218bae(0xfb)][_0x218bae(0xcd)](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x2d672a=>{const _0x4ff1b8=_0x218bae;switch(_0x2d672a){case _0x2fb0b9[_0x4ff1b8(0x98)]:this['_handleOffline']();break;case _0x2fb0b9[_0x4ff1b8(0xf6)]:this[_0x4ff1b8(0x7c)]();break;}}),this[_0x218bae(0x82)]['event$']['pipe'](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x1201b9=>{const _0x4bc30d=_0x218bae,{eventID:_0x1be1cc}=_0x1201b9;switch(_0x1be1cc){case _0x433ed7[_0x4bc30d(0x95)]:this[_0x4bc30d(0x9c)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xd7)]:this[_0x4bc30d(0xdb)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xe3)]:this[_0x4bc30d(0x85)]();break;case _0x433ed7[_0x4bc30d(0x72)]:this['_handleNewChangeSets'](_0x1201b9);break;}}));}[_0x120a2b(0xcc)](){const _0x56d836=_0x120a2b;this[_0x56d836(0x82)][_0x56d836(0xc2)]({'eventID':_0x433ed7[_0x56d836(0x70)],'data':{'unitID':this[_0x56d836(0xd1)],'userID':this['_collabSession'][_0x56d836(0x7d)]()}},this[_0x56d836(0xd1)]);}[_0x120a2b(0x110)](){const _0x531d35=_0x120a2b;this[_0x531d35(0x80)]===_0x531d35(0x10f)&&(this[_0x531d35(0xb0)][_0x531d35(0xdc)](_0x531d35(0x6c)),this[_0x531d35(0x82)]['send']({'eventID':_0x433ed7['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120a2b(0xc6)](){const _0x1a29e2=_0x120a2b;this['_status']===_0x1a29e2(0xce)&&(this[_0x1a29e2(0xb0)][_0x1a29e2(0xdc)](_0x1a29e2(0xfc)),this[_0x1a29e2(0x75)]());}[_0x120a2b(0x108)](){const _0x23c3cd=_0x120a2b;this[_0x23c3cd(0x80)]===_0x23c3cd(0xfc)&&this['_stopFollowing']();}['_handleNewHost'](_0x562927){const _0x52edc2=_0x120a2b,{presenter:_0x5d017b}=_0x562927[_0x52edc2(0xcf)],_0x307e38=this[_0x52edc2(0x82)][_0x52edc2(0x7d)]();this[_0x52edc2(0x73)]=_0x5d017b,_0x5d017b===_0x307e38?(this[_0x52edc2(0xdf)](),this[_0x52edc2(0x105)]()):this[_0x52edc2(0x80)]!==_0x52edc2(0xce)&&(this[_0x52edc2(0x76)](),this[_0x52edc2(0x75)]());}[_0x120a2b(0xa0)](){const _0x4bcbc9=_0x120a2b,_0x3e186b={'eventID':_0x433ed7[_0x4bcbc9(0x87)]};this['_collabSession']['send'](_0x3e186b,this[_0x4bcbc9(0xd1)]);}[_0x120a2b(0x85)](){const _0x11c43e=_0x120a2b;this[_0x11c43e(0x73)]=null,this[_0x11c43e(0x80)]!==_0x11c43e(0x10f)&&this['_beIdle']();}[_0x120a2b(0xa3)](_0x2ead8e){const _0x530eea=_0x120a2b;if(this['_status']==='following'&&this[_0x530eea(0x73)]===_0x2ead8e[_0x530eea(0xcf)]['memberID']){const _0x496aeb=_0x289710(_0x2ead8e[_0x530eea(0xcf)])['mutations']['reverse']()[_0x530eea(0x10d)](_0x378144=>_0x378144['id']===_0x528955['id']);if(_0x496aeb){const _0x53e397=_0x496aeb['params']['unitId'],_0x2e67ba=_0x496aeb[_0x530eea(0xff)][_0x530eea(0xb2)]['id'];setTimeout(()=>{const _0x4ed03c=_0x530eea;this[_0x4ed03c(0xed)][_0x4ed03c(0x81)](_0x38317b['id'],{'unitId':_0x53e397,'subUnitId':_0x2e67ba},{'fromCollab':!0x0});});}}}[_0x120a2b(0x105)](){const _0x11aca7=_0x120a2b;this[_0x11aca7(0xb0)][_0x11aca7(0xdc)](_0x11aca7(0x10f));const _0x2a724e=new Map(),_0x3fb228=this[_0x11aca7(0xc5)]=new _0x19993a();_0x3fb228[_0x11aca7(0x103)](_0xecf4ac(()=>{const _0x4356ee=_0x11aca7;_0x2a724e[_0x4356ee(0x79)](_0x1a11b3=>_0x1a11b3[_0x4356ee(0x104)]()),_0x2a724e['clear']();})),_0x3fb228[_0x11aca7(0x103)](this['_commandService']['onCommandExecuted'](_0x3b7c5b=>{const _0xb070a=_0x11aca7;var _0x56eca9;if(_0x3b7c5b[_0xb070a(0x74)]!==_0x3476fb[_0xb070a(0x109)]||!this['_liveShareService']['shouldShareOperation'](_0x3b7c5b['id']))return;const {id:_0x4b5d25}=_0x3b7c5b;let _0x471d2d;_0x2a724e[_0xb070a(0xe5)](_0x4b5d25)?_0x471d2d=_0x2a724e[_0xb070a(0xfa)](_0x4b5d25):(_0x471d2d=new _0x5c5fdd(),_0x2a724e[_0xb070a(0xbe)](_0x4b5d25,_0x471d2d),_0x471d2d[_0xb070a(0xcd)](_0x58391f((_0x56eca9=this['_configService'][_0xb070a(0x91)](Ce))!=null?_0x56eca9:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1d3958=>{const _0x3aced7=_0xb070a;this[_0x3aced7(0x82)][_0x3aced7(0xc2)]({'eventID':_0x433ed7[_0x3aced7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d3958['id']]:{'id':_0x1d3958['id'],'params':JSON[_0x3aced7(0x7b)](_0x1d3958[_0x3aced7(0xff)])}}}},this[_0x3aced7(0xd1)]);})),_0x471d2d[_0xb070a(0xdc)](_0x3b7c5b);})),this[_0x11aca7(0xaf)][_0x11aca7(0xd4)](this['_unitID'])[_0x11aca7(0x79)](_0x5da544=>this[_0x11aca7(0x82)][_0x11aca7(0xc2)]({'eventID':_0x433ed7[_0x11aca7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5da544['id']]:{'id':_0x5da544['id'],'params':JSON[_0x11aca7(0x7b)](_0x5da544[_0x11aca7(0xff)])}}}},this[_0x11aca7(0xd1)]));}[_0x120a2b(0x76)](){const _0x342452=_0x120a2b;var _0x27bd64;this['_status$'][_0x342452(0xdc)](_0x342452(0x6c)),(_0x27bd64=this['_commandDisposable'])==null||_0x27bd64[_0x342452(0xf3)](),this[_0x342452(0xc5)]=null;}[_0x120a2b(0x75)](){const _0x436a9e=_0x120a2b;var _0x5c4981;(_0x5c4981=this[_0x436a9e(0xc5)])==null||_0x5c4981[_0x436a9e(0xf3)](),this[_0x436a9e(0xb0)][_0x436a9e(0xdc)](_0x436a9e(0xfc));}[_0x120a2b(0xd6)](){const _0x41f5c1=_0x120a2b;var _0x968e67;this[_0x41f5c1(0xb0)][_0x41f5c1(0xdc)](_0x41f5c1(0x6c)),(_0x968e67=this[_0x41f5c1(0xc5)])==null||_0x968e67[_0x41f5c1(0xf3)](),this[_0x41f5c1(0xc5)]=null;}[_0x120a2b(0xdf)](){const _0x15f675=_0x120a2b;var _0x54cb18;this[_0x15f675(0xb0)]['next']('not-following'),(_0x54cb18=this['_commandDisposable'])==null||_0x54cb18[_0x15f675(0xf3)]();}[_0x120a2b(0xdb)](_0x18daef){const _0x27d8af=_0x120a2b;if([_0x27d8af(0x10f),_0x27d8af(0xce),'offline'][_0x27d8af(0xcb)](this['_status'])||!_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]||_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]===this[_0x27d8af(0x82)]['getMemberID']())return;this[_0x27d8af(0x80)]===_0x27d8af(0x6c)&&this['_startFollowing']();const _0x399f57=_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0xe0)];Object[_0x27d8af(0xb4)](_0x399f57)['forEach'](_0x59e36c=>{const _0x48a273=_0x27d8af;this['_commandService'][_0x48a273(0x81)](_0x59e36c['id'],_0x59e36c['params']?JSON['parse'](_0x59e36c[_0x48a273(0xff)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4844ac=_0x120a2b;var _0x59e07e;this['_status$'][_0x4844ac(0xdc)]('offline'),(_0x59e07e=this[_0x4844ac(0xc5)])==null||_0x59e07e[_0x4844ac(0xf3)]();}['_handleOnline'](){const _0x1c60d5=_0x120a2b;this['_status$'][_0x1c60d5(0xdc)]('idle'),this[_0x1c60d5(0xa0)]();}};N=Y([_(0x2,_0x2ed083),_(0x3,_0x664ed(L)),_(0x4,_0x135622)],N);function Le(){const _0x463f39=_0x120a2b,_0x46a9e9=_0x31a3bf(S),_0x39a1d8=_0x31a3bf(_0x4f9501),_0x1b4d32=_0x1747f3(()=>_0x39a1d8[_0x463f39(0xb3)](_0x3d4707[_0x463f39(0xd0)]),void 0x0,!0x1,[]),[_0x19aaaa,_0x2885fb]=_0x1c978f(null),[_0x405f72,_0x44e2cb]=_0x1c978f(c[_0x463f39(0xe9)]),_0x45b225=_0x2d670c(null);return _0x14c993(()=>(_0x1b4d32&&_0x46a9e9[_0x463f39(0x6a)](_0x1b4d32[_0x463f39(0x99)]())[_0x463f39(0xa1)](_0x3c85d1=>{const _0x4eeaeb=_0x463f39;_0x2885fb(_0x3c85d1),_0x45b225['current']=_0x3c85d1[_0x4eeaeb(0x8d)][_0x4eeaeb(0x6e)](_0x40e140=>{_0x44e2cb(_0x40e140);});}),()=>{const _0x777e1e=_0x463f39;var _0x18c64d;(_0x18c64d=_0x45b225[_0x777e1e(0xc3)])==null||_0x18c64d['unsubscribe'](),_0x45b225[_0x777e1e(0xc3)]=null;}),[_0x1b4d32,_0x46a9e9]),_0x19aaaa?_0x2afce9(_0xe72b8,{'align':_0x463f39(0xc8),'disabled':_0x405f72===c[_0x463f39(0x98)],'className':_0x463f39(0xc4),'overlay':_0x2afce9(Re,{'status':_0x405f72,'coordinator':_0x19aaaa}),'children':_0x2afce9(_0x463f39(0xe2),{'className':_0x26a9c1(_0x463f39(0xa5),{'univer-cursor-not-allowed':_0x405f72===c[_0x463f39(0x98)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x405f72!==c[_0x463f39(0x98)]}),'type':_0x463f39(0xe2),'children':_0x2afce9(W,{'className':_0x463f39(0xd5)})})}):null;}function Re(_0xed9dca){const _0x158508=_0x120a2b,{status:_0x2a6a68,coordinator:_0x4c5fcb}=_0xed9dca;switch(_0x2a6a68){case c[_0x158508(0xe9)]:return _0x2afce9($e,{'coordinator':_0x4c5fcb});case c[_0x158508(0xdd)]:return _0x2afce9(xe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x8b)]:return _0x2afce9(Pe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x98)]:return _0x2afce9(Te,{});case c[_0x158508(0xb1)]:return _0x2afce9(Ae,{'coordinator':_0x4c5fcb});default:return null;}}function $e(_0x3acaff){const _0x560af8=_0x120a2b,{coordinator:_0x2308e4}=_0x3acaff;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x560af8(0xef),{'className':_0x560af8(0xe8),'children':_0x560af8(0x102)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x2308e4[_0x560af8(0xcc)](),'children':_0x560af8(0x89)})]});}function xe(_0x5bff8f){const _0x3bd514=_0x120a2b,{coordinator:_0x54bf65}=_0x5bff8f;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x3bd514(0xef),{'className':_0x3bd514(0xe8),'children':_0x3bd514(0xb7)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x54bf65[_0x3bd514(0x108)](),'children':'Stop\x20following'})]});}function Pe(_0x59df18){const _0x58873b=_0x120a2b,{coordinator:_0x47bf72}=_0x59df18;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x58873b(0xef),{'className':_0x58873b(0xe8),'children':_0x58873b(0x9e)}),_0x2afce9(_0x2ce32f,{'variant':_0x58873b(0x10e),'onClick':()=>_0x47bf72['startFollowing'](),'children':_0x58873b(0xd2)})]});}function Ae(_0x84d2bc){const _0x4de0f3=_0x120a2b,{coordinator:_0x362b06}=_0x84d2bc;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x4de0f3(0xef),{'className':_0x4de0f3(0xe8),'children':_0x4de0f3(0xe4)}),_0x2afce9(_0x2ce32f,{'variant':_0x4de0f3(0x9f),'onClick':()=>_0x362b06[_0x4de0f3(0x110)](),'children':_0x4de0f3(0x86)})]});}function Te(){return _0x2afce9(_0xe9ebfb,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x120a2b(0x7e)],He=(_0x4ae75e,_0x4376df,_0x38cf38,_0x83c59e)=>{for(var _0x1f0a87=_0x83c59e>0x1?void 0x0:_0x83c59e?Fe(_0x4376df,_0x38cf38):_0x4376df,_0x1a21a2=_0x4ae75e['length']-0x1,_0x4778cf;_0x1a21a2>=0x0;_0x1a21a2--)(_0x4778cf=_0x4ae75e[_0x1a21a2])&&(_0x1f0a87=_0x4778cf(_0x1f0a87)||_0x1f0a87);return _0x1f0a87;},A=(_0x312b5c,_0x225ce6)=>(_0x43ab94,_0x51269d)=>_0x225ce6(_0x43ab94,_0x51269d,_0x312b5c);let m=class extends _0x10e724{constructor(_0x1a62d5,_0x42bb1e){const _0x1d6151=_0x120a2b;super(),this[_0x1d6151(0xfd)]=_0x1a62d5,this[_0x1d6151(0xea)]=_0x42bb1e,this['_mountLiveShare']();}[_0x120a2b(0x8c)](){const _0x14eb27=_0x120a2b;this[_0x14eb27(0xb9)](this['_uiPartsService']['registerComponent'](_0x10896f[_0x14eb27(0xe7)],()=>_0x176107(Le,this[_0x14eb27(0xfd)])));}};m=He([A(0x0,_0x664ed(_0x401650)),A(0x1,_0x369c81)],m);const ye='live-share.config',T={};var Ue=Object[_0x120a2b(0x7e)],Ve=(_0x2bd9f4,_0xf7cd02,_0x5e5089,_0x587a76)=>{const _0x3a8b67=_0x120a2b;for(var _0x1f02c5=_0x587a76>0x1?void 0x0:_0x587a76?Ue(_0xf7cd02,_0x5e5089):_0xf7cd02,_0x48b4bd=_0x2bd9f4[_0x3a8b67(0xa6)]-0x1,_0x3ab503;_0x48b4bd>=0x0;_0x48b4bd--)(_0x3ab503=_0x2bd9f4[_0x48b4bd])&&(_0x1f02c5=_0x3ab503(_0x1f02c5)||_0x1f02c5);return _0x1f02c5;},je=(_0x40a5e9,_0x36b3a4)=>(_0x32d55d,_0x2b5845)=>_0x36b3a4(_0x32d55d,_0x2b5845,_0x40a5e9);let I=class extends _0x10e724{constructor(_0x4c9ab1){const _0x2483f0=_0x120a2b;super(),this[_0x2483f0(0xaf)]=_0x4c9ab1,this[_0x2483f0(0x84)]();}[_0x120a2b(0x84)](){[_0xefa49d['id'],_0x4dd920['id'],_0x38317b['id']]['forEach'](_0xfdcfc=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0xfdcfc));});}};I=Ve([je(0x0,_0x664ed(L))],I);var Me=Object[_0x120a2b(0x78)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x193fc4,_0x537f5e,_0x4736eb)=>_0x537f5e in _0x193fc4?Me(_0x193fc4,_0x537f5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4736eb}):_0x193fc4[_0x537f5e]=_0x4736eb,We=(_0xb6ad85,_0x570301,_0x342c8b,_0x111d4c)=>{const _0x1f5071=_0x120a2b;for(var _0x5622b5=_0x111d4c>0x1?void 0x0:_0x111d4c?ke(_0x570301,_0x342c8b):_0x570301,_0x2f76c6=_0xb6ad85[_0x1f5071(0xa6)]-0x1,_0x106e20;_0x2f76c6>=0x0;_0x2f76c6--)(_0x106e20=_0xb6ad85[_0x2f76c6])&&(_0x5622b5=_0x106e20(_0x5622b5)||_0x5622b5);return _0x5622b5;},F=(_0x2bcb6f,_0x33cfcd)=>(_0x21554f,_0x4cd5c0)=>_0x33cfcd(_0x21554f,_0x4cd5c0,_0x2bcb6f),B=(_0x20712b,_0x34edbb,_0x220a71)=>Ge(_0x20712b,typeof _0x34edbb!='symbol'?_0x34edbb+'':_0x34edbb,_0x220a71);const Ye='UNIVER_LIVE_SHARE_PLUGIN';function _0x33a5(){const _0x5782a6=['length','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','registerInitialStateReporter','asObservable','1180479wgzaGz','_collabSessionService','UniverIcon','_config','getStatus','_liveShareService','_status$','PRESENTING','sheet','getCurrentTypeOfUnit$','values','substring','random','You\x27re\x20following\x20the\x20presenter','92SToogS','disposeWithMe','2889060TmwNEm','idSuffix','offline','_univerInstanceService','set','requireSession','currentColor','236646KnKrXj','send','current','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','_commandDisposable','startFollowing','_entities','end','1em','xlink:href','includes','tryStartPresenting','pipe','not-following','data','UNIVER_SHEET','_unitID','Start\x20following','svg','getInitialStates','univer-size-4','_beIdle','LIVESHARE_OPERATION','24820PBrotd','defs','url(#$1','_handleOperation','next','FOLLOWING','none','_stopFollowing','operations','_sharedOperations','button','LIVESHARE_TERMINATE','You\x27re\x20presenting\x20the\x20document','has','trim','HEADER_MENU','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','_uiPartsService','getTypeOfUnitAdded$','_reporters','_commandService','fill','div','setConfig','init','children','dispose','shouldShareOperation','http://www.w3.org/2000/svg','ONLINE','LiveShareIcon','UNIVER_UNKNOWN','entries','get','sessionStatus$','following','_injector','0\x200\x2017\x2017','params','102977Pvsocy','symbol','Present\x20this\x20document','add','complete','_startPresenting','path','replace','stopFollowing','OPERATION','string','colorChannel1','24WjYjTh','find','text','presenting','stopPresenting','registerSharedOperation','getLiveShareCoordinator','47369070vUdLjc','idle','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','subscribe','pluginName','LIVESHARE_REQUEST_HOST','_configService','NEW_CHANGESETS','_presenter','type','_startFollowing','_stopPresenting','displayName','defineProperty','forEach','8476972eputGt','stringify','_handleOnline','getMemberID','getOwnPropertyDescriptor','getValue','_status','executeCommand','_collabSession','map','_init','_handleTerminate','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','dispose$','Start','presenter','NOT_FOLLOWING','_mountLiveShare','status$','assign','tag','attrs','getConfig','createInstance','getLiveShareCoordinatorSync','112Hvkpim','LIVESHARE_NEW_HOST','live-share-icon','evenodd','OFFLINE','getUnitId','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_handleNewHost','mask','You\x27re\x20not\x20following\x20the\x20presenter','default','_fetchOperations','then','_startLiveShareCoordinator','_handleNewChangeSets','delete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x33a5=function(){return _0x5782a6;};return _0x33a5();}let b=class extends _0x59667f{constructor(_0x21d3f9=T,_0x555017,_0x4239cb){const _0x8b7857=_0x120a2b;super(),this[_0x8b7857(0xad)]=_0x21d3f9,this[_0x8b7857(0xfd)]=_0x555017,this['_configService']=_0x4239cb;const {..._0x436cd3}=_0xfda1f7({},T,this['_config']);this[_0x8b7857(0x71)][_0x8b7857(0xf0)](ye,_0x436cd3);}['onStarting'](){const _0x543d6c=_0x120a2b;_0x565181(this[_0x543d6c(0xfd)],_0x33514b([[L],[S],[I],[m]],this[_0x543d6c(0xad)]['override'])),_0x13d42a(this[_0x543d6c(0xfd)],[[I]]);}['onRendered'](){const _0xc97bac=_0x120a2b;_0x13d42a(this[_0xc97bac(0xfd)],[[m]]);}};B(b,'type',_0x3d4707[_0x120a2b(0xf8)]),B(b,_0x120a2b(0x6f),Ye),b=We([_0x4f1006(_0x1e5f88),F(0x1,_0x664ed(_0x401650)),F(0x2,_0x2ed083)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'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':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b54dc=_0x1cda;(function(_0x4f436f,_0x5b0850){const _0x59851d=_0x1cda,_0x14bc6b=_0x4f436f();while(!![]){try{const _0xf4f163=-parseInt(_0x59851d(0x96))/0x1*(-parseInt(_0x59851d(0x9c))/0x2)+parseInt(_0x59851d(0xa8))/0x3+-parseInt(_0x59851d(0xa2))/0x4+-parseInt(_0x59851d(0x94))/0x5+parseInt(_0x59851d(0xa0))/0x6*(parseInt(_0x59851d(0x97))/0x7)+-parseInt(_0x59851d(0x98))/0x8+parseInt(_0x59851d(0xa6))/0x9*(parseInt(_0x59851d(0x90))/0xa);if(_0xf4f163===_0x5b0850)break;else _0x14bc6b['push'](_0x14bc6b['shift']());}catch(_0x2894bb){_0x14bc6b['push'](_0x14bc6b['shift']());}}}(_0x2c2f,0x8f628));import{LiveShareController as _0x360aa6,LiveShareStatus as _0x2921bd}from'@univerjs-pro/live-share';function _0x1cda(_0x4ef67,_0x42a305){const _0x2c2f4a=_0x2c2f();return _0x1cda=function(_0x1cda42,_0xc328cb){_0x1cda42=_0x1cda42-0x8f;let _0x3b7683=_0x2c2f4a[_0x1cda42];return _0x3b7683;},_0x1cda(_0x4ef67,_0x42a305);}import{IRenderManagerService as _0x5581eb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x11fd11}from'@univerjs/sheets';import{SetScrollOperation as _0x5c7015}from'@univerjs/sheets-ui';import{FRange as _0x3cbc29}from'@univerjs/sheets/facade';function _0x2c2f(){const _0x3116c7=['getLiveShareCoordinatorSync','304335PxgWHE','No\x20active\x20workbook\x20found.','2865159zdHbaL','stopPresenting','startRow','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getId','PRESENTING','120dztKlf','get','getSheetId','stopFollowing','5867370MvUzGJ','startPresenting','36502znEKnM','99001iSzQyU','8612216gRnrDL','startColumn','getActiveWorkbook','getActiveSheet','46gxUSiT','extend','_commandService','_injector','396kyImME','getLiveShareStatus','1186048WyfsOC','IDLE','getStatus'];_0x2c2f=function(){return _0x3116c7;};return _0x2c2f();}import{FUniver as _0x588fcb,FEnum as _0x1789a1}from'@univerjs/core/facade';class I extends _0x3cbc29{['_initialize'](_0x42495e,_0x555848,_0x1e6493,_0x59deac,_0x19cf00){const _0x477317=_0x1cda,_0x28b36e=_0x42495e[_0x477317(0x91)](_0x360aa6),_0x31b023=_0x42495e[_0x477317(0x91)](_0x5581eb),_0x3689f5=_0x555848[_0x477317(0xab)](),_0x1873dd=_0x555848[_0x477317(0x9b)](),_0x196b83=_0x28b36e[_0x477317(0xa5)](_0x3689f5);(_0x196b83==null?void 0x0:_0x196b83['getStatus']())!==_0x2921bd[_0x477317(0x8f)]||(_0x1e6493[_0x477317(0x92)]()!==_0x1873dd[_0x477317(0x92)]()&&this[_0x477317(0x9e)]['executeCommand'](_0x11fd11['id'],{'unitId':_0x3689f5,'subUnitId':_0x1e6493['getSheetId']()}),!_0x31b023['getRenderById'](_0x3689f5))||_0x19cf00['syncExecuteCommand'](_0x5c7015['id'],{'unitId':_0x555848[_0x477317(0xab)](),'sheetId':_0x1e6493['getSheetId'](),'sheetViewStartRow':_0x59deac[_0x477317(0xaa)],'sheetViewStartColumn':_0x59deac[_0x477317(0x99)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3cbc29[_0x2b54dc(0x9d)](I);class m extends _0x588fcb{[_0x2b54dc(0xa1)](){const _0x586947=_0x2b54dc;var _0x14a0d0,_0x213e21;const _0x48aa70=this['_injector'][_0x586947(0x91)](_0x360aa6),_0x8862f9=(_0x14a0d0=this['getActiveWorkbook']())==null?void 0x0:_0x14a0d0[_0x586947(0xae)]();if(!_0x8862f9)throw new Error('No\x20active\x20workbook\x20found.');const _0xda90e6=_0x48aa70[_0x586947(0xa5)](_0x8862f9);return(_0x213e21=_0xda90e6==null?void 0x0:_0xda90e6[_0x586947(0xa4)]())!=null?_0x213e21:_0x2921bd[_0x586947(0xa3)];}[_0x2b54dc(0xad)](){const _0x448248=_0x2b54dc;var _0x52c069;const _0xbf2cf6=this['_injector'][_0x448248(0x91)](_0x360aa6),_0x5b19c8=(_0x52c069=this[_0x448248(0x9a)]())==null?void 0x0:_0x52c069[_0x448248(0xae)]();if(!_0x5b19c8)throw new Error('No\x20active\x20workbook\x20found.');const _0x10207a=_0xbf2cf6['getLiveShareCoordinatorSync'](_0x5b19c8);if(!_0x10207a)throw new Error(_0x448248(0xac));_0x10207a[_0x448248(0xad)]();}[_0x2b54dc(0x93)](){const _0xa46f10=_0x2b54dc;var _0x44023a;const _0x27e4ba=this[_0xa46f10(0x9f)][_0xa46f10(0x91)](_0x360aa6),_0x348b1=(_0x44023a=this[_0xa46f10(0x9a)]())==null?void 0x0:_0x44023a[_0xa46f10(0xae)]();if(!_0x348b1)throw new Error(_0xa46f10(0xa7));const _0x7ffa37=_0x27e4ba[_0xa46f10(0xa5)](_0x348b1);if(!_0x7ffa37)throw new Error(_0xa46f10(0xac));_0x7ffa37[_0xa46f10(0x93)]();}[_0x2b54dc(0x95)](){const _0x46ba7e=_0x2b54dc;var _0x2c680c;const _0x15ebf7=this['_injector'][_0x46ba7e(0x91)](_0x360aa6),_0x32691f=(_0x2c680c=this[_0x46ba7e(0x9a)]())==null?void 0x0:_0x2c680c[_0x46ba7e(0xae)]();if(!_0x32691f)throw new Error(_0x46ba7e(0xa7));const _0x30e3ff=_0x15ebf7[_0x46ba7e(0xa5)](_0x32691f);if(!_0x30e3ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x30e3ff['tryStartPresenting']();}[_0x2b54dc(0xa9)](){const _0x5bae7a=_0x2b54dc;var _0x595c1e;const _0x83fc3b=this[_0x5bae7a(0x9f)]['get'](_0x360aa6),_0x49148d=(_0x595c1e=this['getActiveWorkbook']())==null?void 0x0:_0x595c1e[_0x5bae7a(0xae)]();if(!_0x49148d)throw new Error(_0x5bae7a(0xa7));const _0x30450b=_0x83fc3b[_0x5bae7a(0xa5)](_0x49148d);if(!_0x30450b)throw new Error(_0x5bae7a(0xac));_0x30450b[_0x5bae7a(0xa9)]();}}_0x588fcb['extend'](m);class C extends _0x1789a1{get['LiveShareStatusEnum'](){return _0x2921bd;}}_0x1789a1['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x120a2b=_0x26b9;(function(_0x53f5f9,_0x3bafdc){const _0x2abc08=_0x26b9,_0x2ca953=_0x53f5f9();while(!![]){try{const _0xcb96f3=-parseInt(_0x2abc08(0x100))/0x1*(parseInt(_0x2abc08(0x10c))/0x2)+-parseInt(_0x2abc08(0xaa))/0x3+parseInt(_0x2abc08(0xb8))/0x4*(-parseInt(_0x2abc08(0xd8))/0x5)+-parseInt(_0x2abc08(0xba))/0x6+-parseInt(_0x2abc08(0x7a))/0x7+-parseInt(_0x2abc08(0x94))/0x8*(parseInt(_0x2abc08(0xc1))/0x9)+parseInt(_0x2abc08(0x6b))/0xa;if(_0xcb96f3===_0x3bafdc)break;else _0x2ca953['push'](_0x2ca953['shift']());}catch(_0x5bea76){_0x2ca953['push'](_0x2ca953['shift']());}}}(_0x33a5,0xe3c20));var J=Object['defineProperty'],K=(_0x5aec59,_0x13ca00,_0x4b0ae4)=>_0x13ca00 in _0x5aec59?J(_0x5aec59,_0x13ca00,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0ae4}):_0x5aec59[_0x13ca00]=_0x4b0ae4,u=(_0x881185,_0x3b3059,_0x539026)=>K(_0x881185,typeof _0x3b3059!=_0x120a2b(0x101)?_0x3b3059+'':_0x3b3059,_0x539026);import{Disposable as _0x10e724,toDisposable as _0xecf4ac,IUniverInstanceService as _0x4f9501,Inject as _0x664ed,Injector as _0x401650,IConfigService as _0x2ed083,ICommandService as _0x135622,RxDisposable as _0x5c1fea,UniverInstanceType as _0x3d4707,DisposableCollection as _0x19993a,CommandType as _0x3476fb,DependentOn as _0x4f1006,Plugin as _0x59667f,merge as _0xfda1f7,registerDependencies as _0x565181,mergeOverrideWithDependencies as _0x33514b,touchDependencies as _0x13d42a}from'@univerjs/core';function _0x26b9(_0x593ca5,_0x2aaf2b){const _0x33a512=_0x33a5();return _0x26b9=function(_0x26b935,_0x346bc3){_0x26b935=_0x26b935-0x6a;let _0x36a114=_0x33a512[_0x26b935];return _0x36a114;},_0x26b9(_0x593ca5,_0x2aaf2b);}import{useDependency as _0x31a3bf,useObservable as _0x1747f3,IUIPartsService as _0x369c81,BuiltInUIPart as _0x10896f,connectInjector as _0x176107}from'@univerjs/ui';import{jsx as _0x2afce9,jsxs as _0x3b072f,Fragment as _0xe9ebfb}from'react/jsx-runtime';import{Dropdown as _0xe72b8,clsx as _0x26a9c1,Button as _0x2ce32f}from'@univerjs/design';import{useRef as _0x2d670c,createElement as _0x31ddf7,forwardRef as _0x4ebddd,useState as _0x1c978f,useEffect as _0x14c993}from'react';import{CollaborationEvent as _0x433ed7,parseProtocolChangeset as _0x289710}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x507a8b,SessionStatus as _0x2fb0b9,UniverCollaborationClientPlugin as _0x1e5f88}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x528955,SetWorksheetActiveOperation as _0x38317b}from'@univerjs/sheets';import{BehaviorSubject as _0x3ecabd,Subject as _0x5c5fdd}from'rxjs';import{takeUntil as _0xb8a7e7,throttleTime as _0x58391f}from'rxjs/operators';import{SetZoomRatioOperation as _0xefa49d,SetScrollOperation as _0x4dd920}from'@univerjs/sheets-ui';function k({ref:_0x531bb1,..._0x37f1e4}){const _0x328225=_0x120a2b,{icon:_0x791cb1,id:_0x56471c,className:_0x28298a,extend:_0x496f10,..._0x3e2e0e}=_0x37f1e4,_0x54923c=(_0x328225(0x9a)+_0x56471c+'\x20'+(_0x28298a||''))[_0x328225(0xe6)](),_0xfd9e0e=_0x2d670c('_'+Oe());return G(_0x791cb1,''+_0x56471c,{'defIds':_0x791cb1['defIds'],'idSuffix':_0xfd9e0e[_0x328225(0xc3)]},{'ref':_0x531bb1,'className':_0x54923c,..._0x3e2e0e},_0x496f10);}function G(_0x268017,_0x3c0cad,_0x4918b6,_0x5d2c6e,_0x5b4827){const _0x5ddc65=_0x120a2b;return _0x31ddf7(_0x268017[_0x5ddc65(0x8f)],{'key':_0x3c0cad,...be(_0x268017,_0x4918b6,_0x5b4827),..._0x5d2c6e},(Ee(_0x268017,_0x4918b6)[_0x5ddc65(0xf2)]||[])[_0x5ddc65(0x83)]((_0x56c7ef,_0x1031c3)=>G(_0x56c7ef,_0x3c0cad+'-'+_0x268017[_0x5ddc65(0x8f)]+'-'+_0x1031c3,_0x4918b6,void 0x0,_0x5b4827)));}function be(_0x4c63d5,_0x25f124,_0x26f969){const _0x556b5a=_0x120a2b,_0x5d28ef={..._0x4c63d5[_0x556b5a(0x90)]};_0x26f969!=null&&_0x26f969[_0x556b5a(0x10b)]&&_0x5d28ef[_0x556b5a(0xee)]==='colorChannel1'&&(_0x5d28ef[_0x556b5a(0xee)]=_0x26f969['colorChannel1']),_0x4c63d5[_0x556b5a(0x8f)]===_0x556b5a(0x9d)&&_0x5d28ef['id']&&(_0x5d28ef['id']=_0x5d28ef['id']+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x41037a,_0x377b0c])=>{const _0x38dd7f=_0x556b5a;_0x41037a===_0x38dd7f(0x9d)&&typeof _0x377b0c==_0x38dd7f(0x10a)&&(_0x5d28ef[_0x41037a]=_0x377b0c[_0x38dd7f(0x107)](/url\(#(.*)\)/,_0x38dd7f(0xda)+_0x25f124[_0x38dd7f(0xbb)]+')'));});const {defIds:_0x4eccee}=_0x25f124;return!_0x4eccee||_0x4eccee[_0x556b5a(0xa6)]===0x0||(_0x4c63d5[_0x556b5a(0x8f)]==='use'&&_0x5d28ef[_0x556b5a(0xca)]&&(_0x5d28ef[_0x556b5a(0xca)]=_0x5d28ef[_0x556b5a(0xca)]+_0x25f124['idSuffix']),Object[_0x556b5a(0xf9)](_0x5d28ef)[_0x556b5a(0x79)](([_0x3eaad4,_0x4c248f])=>{const _0x4cf940=_0x556b5a;typeof _0x4c248f==_0x4cf940(0x10a)&&(_0x5d28ef[_0x3eaad4]=_0x4c248f[_0x4cf940(0x107)](/url\(#(.*)\)/,_0x4cf940(0xda)+_0x25f124[_0x4cf940(0xbb)]+')'));})),_0x5d28ef;}function Ee(_0x31b646,_0x18c57e){const _0x40c462=_0x120a2b;var _0x3340f1;const {defIds:_0x582a67}=_0x18c57e;return!_0x582a67||_0x582a67['length']===0x0?_0x31b646:_0x31b646[_0x40c462(0x8f)]===_0x40c462(0xd9)&&((_0x3340f1=_0x31b646[_0x40c462(0xf2)])!=null&&_0x3340f1[_0x40c462(0xa6)])?{..._0x31b646,'children':_0x31b646[_0x40c462(0xf2)][_0x40c462(0x83)](_0x4f92e9=>typeof _0x4f92e9[_0x40c462(0x90)]['id']=='string'&&_0x582a67&&_0x582a67[_0x40c462(0xcb)](_0x4f92e9[_0x40c462(0x90)]['id'])?{..._0x4f92e9,'attrs':{..._0x4f92e9[_0x40c462(0x90)],'id':_0x4f92e9[_0x40c462(0x90)]['id']+_0x18c57e['idSuffix']}}:_0x4f92e9)}:_0x31b646;}function Oe(){const _0x3db730=_0x120a2b;return Math[_0x3db730(0xb6)]()['toString'](0x24)[_0x3db730(0xb5)](0x2,0x8);}k[_0x120a2b(0x77)]=_0x120a2b(0xac);const we={'tag':_0x120a2b(0xd3),'attrs':{'xmlns':_0x120a2b(0xf5),'fill':_0x120a2b(0xde),'viewBox':_0x120a2b(0xfe),'width':_0x120a2b(0xc9),'height':_0x120a2b(0xc9)},'children':[{'tag':_0x120a2b(0x106),'attrs':{'fill':'currentColor','d':_0x120a2b(0xa7)}},{'tag':_0x120a2b(0x106),'attrs':{'fill':_0x120a2b(0xc0),'d':_0x120a2b(0x6d),'fillRule':_0x120a2b(0x97),'clipRule':_0x120a2b(0x97)}}]},W=_0x4ebddd(function(_0x5c0f69,_0x3c1549){const _0x2eb2e5=_0x120a2b;return _0x31ddf7(k,Object[_0x2eb2e5(0x8e)]({},_0x5c0f69,{'id':_0x2eb2e5(0x96),'ref':_0x3c1549,'icon':we}));});W[_0x120a2b(0x77)]=_0x120a2b(0xf7);class L extends _0x10e724{constructor(){const _0x32ce2d=_0x120a2b;super(...arguments),u(this,_0x32ce2d(0xe1),new Set()),u(this,_0x32ce2d(0xec),new Set());}[_0x120a2b(0x111)](_0x2a9046){const _0x3623b2=_0x120a2b;return this[_0x3623b2(0xe1)][_0x3623b2(0x103)](_0x2a9046),_0xecf4ac(()=>this[_0x3623b2(0xe1)][_0x3623b2(0xa4)](_0x2a9046));}[_0x120a2b(0xa8)](_0x5a48f9){const _0x331f3c=_0x120a2b;return this[_0x331f3c(0xec)][_0x331f3c(0x103)](_0x5a48f9),_0xecf4ac(()=>this[_0x331f3c(0xec)][_0x331f3c(0xa4)](_0x5a48f9));}[_0x120a2b(0xf4)](_0x3584e9){const _0x14e6ac=_0x120a2b;return this[_0x14e6ac(0xe1)][_0x14e6ac(0xe5)](_0x3584e9);}['getInitialStates'](_0x4f1bc3){const _0x559b77=_0x120a2b;return Array['from'](this['_reporters'])[_0x559b77(0x83)](_0x9f0075=>_0x9f0075(_0x4f1bc3));}}var Ne=Object[_0x120a2b(0x7e)],Y=(_0x4444f4,_0x4544e7,_0x37c29d,_0x2a448f)=>{const _0x117db8=_0x120a2b;for(var _0x263a5b=_0x2a448f>0x1?void 0x0:_0x2a448f?Ne(_0x4544e7,_0x37c29d):_0x4544e7,_0x4cf82e=_0x4444f4[_0x117db8(0xa6)]-0x1,_0x5a15d2;_0x4cf82e>=0x0;_0x4cf82e--)(_0x5a15d2=_0x4444f4[_0x4cf82e])&&(_0x263a5b=_0x5a15d2(_0x263a5b)||_0x263a5b);return _0x263a5b;},_=(_0x44c7c7,_0x3ae792)=>(_0x1255c9,_0x95eb53)=>_0x3ae792(_0x1255c9,_0x95eb53,_0x44c7c7);let S=class extends _0x5c1fea{constructor(_0x49501a,_0x573dba,_0x3febec){const _0x3cda10=_0x120a2b;super(),u(this,'_entities',new Map()),(this[_0x3cda10(0xbd)]=_0x49501a,this[_0x3cda10(0xfd)]=_0x573dba,this[_0x3cda10(0xab)]=_0x3febec,this['_init']());}async['getLiveShareCoordinator'](_0x17f588){const _0x4b35ff=_0x120a2b;return this[_0x4b35ff(0xc7)][_0x4b35ff(0xe5)](_0x17f588)||await this[_0x4b35ff(0xa2)](_0x17f588),this[_0x4b35ff(0xc7)]['get'](_0x17f588);}[_0x120a2b(0x93)](_0x11211a){const _0x4bd6ff=_0x120a2b;var _0x509f44;return(_0x509f44=this['_entities'][_0x4bd6ff(0xfa)](_0x11211a))!=null?_0x509f44:null;}[_0x120a2b(0x84)](){const _0x457397=_0x120a2b;this[_0x457397(0xbd)][_0x457397(0xeb)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this[_0x457397(0x88)]))[_0x457397(0x6e)](async _0x2c725c=>{const _0x4d0ee7=_0x457397,_0x3efd52=_0x2c725c[_0x4d0ee7(0x99)]();this[_0x4d0ee7(0xc7)]['has'](_0x3efd52)||this['_startLiveShareCoordinator'](_0x3efd52);}),this[_0x457397(0xbd)][_0x457397(0x9b)](_0x3d4707[_0x457397(0xd0)])[_0x457397(0xcd)](_0xb8a7e7(this['dispose$']))[_0x457397(0x6e)](_0xef4b1f=>{const _0x46daf=_0x457397,_0x1d0fe8=_0xef4b1f[_0x46daf(0x99)](),_0x3e173a=this[_0x46daf(0xc7)]['get'](_0x1d0fe8);_0x3e173a==null||_0x3e173a['dispose']();});}async[_0x120a2b(0xa2)](_0xdbc3d7){const _0x36237b=_0x120a2b,_0x4f8ff0=await this['_collabSessionService'][_0x36237b(0xbf)](_0xdbc3d7),_0x1f85ca=this[_0x36237b(0xfd)][_0x36237b(0x92)](N,_0xdbc3d7,_0x4f8ff0);return _0x1f85ca[_0x36237b(0xf1)](),this[_0x36237b(0xc7)][_0x36237b(0xbe)](_0xdbc3d7,_0x1f85ca),_0x1f85ca;}};S=Y([_(0x0,_0x4f9501),_(0x1,_0x664ed(_0x401650)),_(0x2,_0x664ed(_0x507a8b))],S);var c=(_0x272c8e=>(_0x272c8e[_0x120a2b(0x98)]=_0x120a2b(0xbc),_0x272c8e[_0x120a2b(0xe9)]=_0x120a2b(0x6c),_0x272c8e[_0x120a2b(0xdd)]=_0x120a2b(0xfc),_0x272c8e['NOT_FOLLOWING']=_0x120a2b(0xce),_0x272c8e[_0x120a2b(0xb1)]=_0x120a2b(0x10f),_0x272c8e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x5c1fea{constructor(_0x47990c,_0x240b24,_0x37f971,_0xe39edd,_0x349276){const _0x545f70=_0x120a2b;super(),u(this,'_status$',new _0x3ecabd('idle')),u(this,'status$',this[_0x545f70(0xb0)][_0x545f70(0xa9)]()),u(this,_0x545f70(0x84),!0x1),u(this,'_commandDisposable',null),u(this,_0x545f70(0x73),null),(this[_0x545f70(0xd1)]=_0x47990c,this['_collabSession']=_0x240b24,this[_0x545f70(0x71)]=_0x37f971,this[_0x545f70(0xaf)]=_0xe39edd,this[_0x545f70(0xed)]=_0x349276);}get[_0x120a2b(0x80)](){const _0x5d93a6=_0x120a2b;return this[_0x5d93a6(0xb0)][_0x5d93a6(0x7f)]();}[_0x120a2b(0xf3)](){const _0x318e54=_0x120a2b;var _0x5b49f3;(_0x5b49f3=this[_0x318e54(0xc5)])==null||_0x5b49f3[_0x318e54(0xf3)](),this[_0x318e54(0xb0)][_0x318e54(0xdc)](_0x318e54(0x6c)),this[_0x318e54(0xb0)][_0x318e54(0x104)]();}[_0x120a2b(0xae)](){const _0x47c849=_0x120a2b;return this[_0x47c849(0x80)];}[_0x120a2b(0xf1)](){const _0x218bae=_0x120a2b;this[_0x218bae(0x84)]||(this[_0x218bae(0x84)]=!0x0,this[_0x218bae(0x82)][_0x218bae(0xfb)][_0x218bae(0xcd)](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x2d672a=>{const _0x4ff1b8=_0x218bae;switch(_0x2d672a){case _0x2fb0b9[_0x4ff1b8(0x98)]:this['_handleOffline']();break;case _0x2fb0b9[_0x4ff1b8(0xf6)]:this[_0x4ff1b8(0x7c)]();break;}}),this[_0x218bae(0x82)]['event$']['pipe'](_0xb8a7e7(this[_0x218bae(0x88)]))['subscribe'](_0x1201b9=>{const _0x4bc30d=_0x218bae,{eventID:_0x1be1cc}=_0x1201b9;switch(_0x1be1cc){case _0x433ed7[_0x4bc30d(0x95)]:this[_0x4bc30d(0x9c)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xd7)]:this[_0x4bc30d(0xdb)](_0x1201b9);break;case _0x433ed7[_0x4bc30d(0xe3)]:this[_0x4bc30d(0x85)]();break;case _0x433ed7[_0x4bc30d(0x72)]:this['_handleNewChangeSets'](_0x1201b9);break;}}));}[_0x120a2b(0xcc)](){const _0x56d836=_0x120a2b;this[_0x56d836(0x82)][_0x56d836(0xc2)]({'eventID':_0x433ed7[_0x56d836(0x70)],'data':{'unitID':this[_0x56d836(0xd1)],'userID':this['_collabSession'][_0x56d836(0x7d)]()}},this[_0x56d836(0xd1)]);}[_0x120a2b(0x110)](){const _0x531d35=_0x120a2b;this[_0x531d35(0x80)]===_0x531d35(0x10f)&&(this[_0x531d35(0xb0)][_0x531d35(0xdc)](_0x531d35(0x6c)),this[_0x531d35(0x82)]['send']({'eventID':_0x433ed7['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x120a2b(0xc6)](){const _0x1a29e2=_0x120a2b;this['_status']===_0x1a29e2(0xce)&&(this[_0x1a29e2(0xb0)][_0x1a29e2(0xdc)](_0x1a29e2(0xfc)),this[_0x1a29e2(0x75)]());}[_0x120a2b(0x108)](){const _0x23c3cd=_0x120a2b;this[_0x23c3cd(0x80)]===_0x23c3cd(0xfc)&&this['_stopFollowing']();}['_handleNewHost'](_0x562927){const _0x52edc2=_0x120a2b,{presenter:_0x5d017b}=_0x562927[_0x52edc2(0xcf)],_0x307e38=this[_0x52edc2(0x82)][_0x52edc2(0x7d)]();this[_0x52edc2(0x73)]=_0x5d017b,_0x5d017b===_0x307e38?(this[_0x52edc2(0xdf)](),this[_0x52edc2(0x105)]()):this[_0x52edc2(0x80)]!==_0x52edc2(0xce)&&(this[_0x52edc2(0x76)](),this[_0x52edc2(0x75)]());}[_0x120a2b(0xa0)](){const _0x4bcbc9=_0x120a2b,_0x3e186b={'eventID':_0x433ed7[_0x4bcbc9(0x87)]};this['_collabSession']['send'](_0x3e186b,this[_0x4bcbc9(0xd1)]);}[_0x120a2b(0x85)](){const _0x11c43e=_0x120a2b;this[_0x11c43e(0x73)]=null,this[_0x11c43e(0x80)]!==_0x11c43e(0x10f)&&this['_beIdle']();}[_0x120a2b(0xa3)](_0x2ead8e){const _0x530eea=_0x120a2b;if(this['_status']==='following'&&this[_0x530eea(0x73)]===_0x2ead8e[_0x530eea(0xcf)]['memberID']){const _0x496aeb=_0x289710(_0x2ead8e[_0x530eea(0xcf)])['mutations']['reverse']()[_0x530eea(0x10d)](_0x378144=>_0x378144['id']===_0x528955['id']);if(_0x496aeb){const _0x53e397=_0x496aeb['params']['unitId'],_0x2e67ba=_0x496aeb[_0x530eea(0xff)][_0x530eea(0xb2)]['id'];setTimeout(()=>{const _0x4ed03c=_0x530eea;this[_0x4ed03c(0xed)][_0x4ed03c(0x81)](_0x38317b['id'],{'unitId':_0x53e397,'subUnitId':_0x2e67ba},{'fromCollab':!0x0});});}}}[_0x120a2b(0x105)](){const _0x11aca7=_0x120a2b;this[_0x11aca7(0xb0)][_0x11aca7(0xdc)](_0x11aca7(0x10f));const _0x2a724e=new Map(),_0x3fb228=this[_0x11aca7(0xc5)]=new _0x19993a();_0x3fb228[_0x11aca7(0x103)](_0xecf4ac(()=>{const _0x4356ee=_0x11aca7;_0x2a724e[_0x4356ee(0x79)](_0x1a11b3=>_0x1a11b3[_0x4356ee(0x104)]()),_0x2a724e['clear']();})),_0x3fb228[_0x11aca7(0x103)](this['_commandService']['onCommandExecuted'](_0x3b7c5b=>{const _0xb070a=_0x11aca7;var _0x56eca9;if(_0x3b7c5b[_0xb070a(0x74)]!==_0x3476fb[_0xb070a(0x109)]||!this['_liveShareService']['shouldShareOperation'](_0x3b7c5b['id']))return;const {id:_0x4b5d25}=_0x3b7c5b;let _0x471d2d;_0x2a724e[_0xb070a(0xe5)](_0x4b5d25)?_0x471d2d=_0x2a724e[_0xb070a(0xfa)](_0x4b5d25):(_0x471d2d=new _0x5c5fdd(),_0x2a724e[_0xb070a(0xbe)](_0x4b5d25,_0x471d2d),_0x471d2d[_0xb070a(0xcd)](_0x58391f((_0x56eca9=this['_configService'][_0xb070a(0x91)](Ce))!=null?_0x56eca9:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1d3958=>{const _0x3aced7=_0xb070a;this[_0x3aced7(0x82)][_0x3aced7(0xc2)]({'eventID':_0x433ed7[_0x3aced7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d3958['id']]:{'id':_0x1d3958['id'],'params':JSON[_0x3aced7(0x7b)](_0x1d3958[_0x3aced7(0xff)])}}}},this[_0x3aced7(0xd1)]);})),_0x471d2d[_0xb070a(0xdc)](_0x3b7c5b);})),this[_0x11aca7(0xaf)][_0x11aca7(0xd4)](this['_unitID'])[_0x11aca7(0x79)](_0x5da544=>this[_0x11aca7(0x82)][_0x11aca7(0xc2)]({'eventID':_0x433ed7[_0x11aca7(0xd7)],'data':{'unitID':this['_unitID'],'operations':{[_0x5da544['id']]:{'id':_0x5da544['id'],'params':JSON[_0x11aca7(0x7b)](_0x5da544[_0x11aca7(0xff)])}}}},this[_0x11aca7(0xd1)]));}[_0x120a2b(0x76)](){const _0x342452=_0x120a2b;var _0x27bd64;this['_status$'][_0x342452(0xdc)](_0x342452(0x6c)),(_0x27bd64=this['_commandDisposable'])==null||_0x27bd64[_0x342452(0xf3)](),this[_0x342452(0xc5)]=null;}[_0x120a2b(0x75)](){const _0x436a9e=_0x120a2b;var _0x5c4981;(_0x5c4981=this[_0x436a9e(0xc5)])==null||_0x5c4981[_0x436a9e(0xf3)](),this[_0x436a9e(0xb0)][_0x436a9e(0xdc)](_0x436a9e(0xfc));}[_0x120a2b(0xd6)](){const _0x41f5c1=_0x120a2b;var _0x968e67;this[_0x41f5c1(0xb0)][_0x41f5c1(0xdc)](_0x41f5c1(0x6c)),(_0x968e67=this[_0x41f5c1(0xc5)])==null||_0x968e67[_0x41f5c1(0xf3)](),this[_0x41f5c1(0xc5)]=null;}[_0x120a2b(0xdf)](){const _0x15f675=_0x120a2b;var _0x54cb18;this[_0x15f675(0xb0)]['next']('not-following'),(_0x54cb18=this['_commandDisposable'])==null||_0x54cb18[_0x15f675(0xf3)]();}[_0x120a2b(0xdb)](_0x18daef){const _0x27d8af=_0x120a2b;if([_0x27d8af(0x10f),_0x27d8af(0xce),'offline'][_0x27d8af(0xcb)](this['_status'])||!_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]||_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0x8a)]===this[_0x27d8af(0x82)]['getMemberID']())return;this[_0x27d8af(0x80)]===_0x27d8af(0x6c)&&this['_startFollowing']();const _0x399f57=_0x18daef[_0x27d8af(0xcf)][_0x27d8af(0xe0)];Object[_0x27d8af(0xb4)](_0x399f57)['forEach'](_0x59e36c=>{const _0x48a273=_0x27d8af;this['_commandService'][_0x48a273(0x81)](_0x59e36c['id'],_0x59e36c['params']?JSON['parse'](_0x59e36c[_0x48a273(0xff)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4844ac=_0x120a2b;var _0x59e07e;this['_status$'][_0x4844ac(0xdc)]('offline'),(_0x59e07e=this[_0x4844ac(0xc5)])==null||_0x59e07e[_0x4844ac(0xf3)]();}['_handleOnline'](){const _0x1c60d5=_0x120a2b;this['_status$'][_0x1c60d5(0xdc)]('idle'),this[_0x1c60d5(0xa0)]();}};N=Y([_(0x2,_0x2ed083),_(0x3,_0x664ed(L)),_(0x4,_0x135622)],N);function Le(){const _0x463f39=_0x120a2b,_0x46a9e9=_0x31a3bf(S),_0x39a1d8=_0x31a3bf(_0x4f9501),_0x1b4d32=_0x1747f3(()=>_0x39a1d8[_0x463f39(0xb3)](_0x3d4707[_0x463f39(0xd0)]),void 0x0,!0x1,[]),[_0x19aaaa,_0x2885fb]=_0x1c978f(null),[_0x405f72,_0x44e2cb]=_0x1c978f(c[_0x463f39(0xe9)]),_0x45b225=_0x2d670c(null);return _0x14c993(()=>(_0x1b4d32&&_0x46a9e9[_0x463f39(0x6a)](_0x1b4d32[_0x463f39(0x99)]())[_0x463f39(0xa1)](_0x3c85d1=>{const _0x4eeaeb=_0x463f39;_0x2885fb(_0x3c85d1),_0x45b225['current']=_0x3c85d1[_0x4eeaeb(0x8d)][_0x4eeaeb(0x6e)](_0x40e140=>{_0x44e2cb(_0x40e140);});}),()=>{const _0x777e1e=_0x463f39;var _0x18c64d;(_0x18c64d=_0x45b225[_0x777e1e(0xc3)])==null||_0x18c64d['unsubscribe'](),_0x45b225[_0x777e1e(0xc3)]=null;}),[_0x1b4d32,_0x46a9e9]),_0x19aaaa?_0x2afce9(_0xe72b8,{'align':_0x463f39(0xc8),'disabled':_0x405f72===c[_0x463f39(0x98)],'className':_0x463f39(0xc4),'overlay':_0x2afce9(Re,{'status':_0x405f72,'coordinator':_0x19aaaa}),'children':_0x2afce9(_0x463f39(0xe2),{'className':_0x26a9c1(_0x463f39(0xa5),{'univer-cursor-not-allowed':_0x405f72===c[_0x463f39(0x98)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x405f72!==c[_0x463f39(0x98)]}),'type':_0x463f39(0xe2),'children':_0x2afce9(W,{'className':_0x463f39(0xd5)})})}):null;}function Re(_0xed9dca){const _0x158508=_0x120a2b,{status:_0x2a6a68,coordinator:_0x4c5fcb}=_0xed9dca;switch(_0x2a6a68){case c[_0x158508(0xe9)]:return _0x2afce9($e,{'coordinator':_0x4c5fcb});case c[_0x158508(0xdd)]:return _0x2afce9(xe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x8b)]:return _0x2afce9(Pe,{'coordinator':_0x4c5fcb});case c[_0x158508(0x98)]:return _0x2afce9(Te,{});case c[_0x158508(0xb1)]:return _0x2afce9(Ae,{'coordinator':_0x4c5fcb});default:return null;}}function $e(_0x3acaff){const _0x560af8=_0x120a2b,{coordinator:_0x2308e4}=_0x3acaff;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x560af8(0xef),{'className':_0x560af8(0xe8),'children':_0x560af8(0x102)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x2308e4[_0x560af8(0xcc)](),'children':_0x560af8(0x89)})]});}function xe(_0x5bff8f){const _0x3bd514=_0x120a2b,{coordinator:_0x54bf65}=_0x5bff8f;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x3bd514(0xef),{'className':_0x3bd514(0xe8),'children':_0x3bd514(0xb7)}),_0x2afce9(_0x2ce32f,{'onClick':()=>_0x54bf65[_0x3bd514(0x108)](),'children':'Stop\x20following'})]});}function Pe(_0x59df18){const _0x58873b=_0x120a2b,{coordinator:_0x47bf72}=_0x59df18;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x58873b(0xef),{'className':_0x58873b(0xe8),'children':_0x58873b(0x9e)}),_0x2afce9(_0x2ce32f,{'variant':_0x58873b(0x10e),'onClick':()=>_0x47bf72['startFollowing'](),'children':_0x58873b(0xd2)})]});}function Ae(_0x84d2bc){const _0x4de0f3=_0x120a2b,{coordinator:_0x362b06}=_0x84d2bc;return _0x3b072f(_0xe9ebfb,{'children':[_0x2afce9(_0x4de0f3(0xef),{'className':_0x4de0f3(0xe8),'children':_0x4de0f3(0xe4)}),_0x2afce9(_0x2ce32f,{'variant':_0x4de0f3(0x9f),'onClick':()=>_0x362b06[_0x4de0f3(0x110)](),'children':_0x4de0f3(0x86)})]});}function Te(){return _0x2afce9(_0xe9ebfb,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x120a2b(0x7e)],He=(_0x4ae75e,_0x4376df,_0x38cf38,_0x83c59e)=>{for(var _0x1f0a87=_0x83c59e>0x1?void 0x0:_0x83c59e?Fe(_0x4376df,_0x38cf38):_0x4376df,_0x1a21a2=_0x4ae75e['length']-0x1,_0x4778cf;_0x1a21a2>=0x0;_0x1a21a2--)(_0x4778cf=_0x4ae75e[_0x1a21a2])&&(_0x1f0a87=_0x4778cf(_0x1f0a87)||_0x1f0a87);return _0x1f0a87;},A=(_0x312b5c,_0x225ce6)=>(_0x43ab94,_0x51269d)=>_0x225ce6(_0x43ab94,_0x51269d,_0x312b5c);let m=class extends _0x10e724{constructor(_0x1a62d5,_0x42bb1e){const _0x1d6151=_0x120a2b;super(),this[_0x1d6151(0xfd)]=_0x1a62d5,this[_0x1d6151(0xea)]=_0x42bb1e,this['_mountLiveShare']();}[_0x120a2b(0x8c)](){const _0x14eb27=_0x120a2b;this[_0x14eb27(0xb9)](this['_uiPartsService']['registerComponent'](_0x10896f[_0x14eb27(0xe7)],()=>_0x176107(Le,this[_0x14eb27(0xfd)])));}};m=He([A(0x0,_0x664ed(_0x401650)),A(0x1,_0x369c81)],m);const ye='live-share.config',T={};var Ue=Object[_0x120a2b(0x7e)],Ve=(_0x2bd9f4,_0xf7cd02,_0x5e5089,_0x587a76)=>{const _0x3a8b67=_0x120a2b;for(var _0x1f02c5=_0x587a76>0x1?void 0x0:_0x587a76?Ue(_0xf7cd02,_0x5e5089):_0xf7cd02,_0x48b4bd=_0x2bd9f4[_0x3a8b67(0xa6)]-0x1,_0x3ab503;_0x48b4bd>=0x0;_0x48b4bd--)(_0x3ab503=_0x2bd9f4[_0x48b4bd])&&(_0x1f02c5=_0x3ab503(_0x1f02c5)||_0x1f02c5);return _0x1f02c5;},je=(_0x40a5e9,_0x36b3a4)=>(_0x32d55d,_0x2b5845)=>_0x36b3a4(_0x32d55d,_0x2b5845,_0x40a5e9);let I=class extends _0x10e724{constructor(_0x4c9ab1){const _0x2483f0=_0x120a2b;super(),this[_0x2483f0(0xaf)]=_0x4c9ab1,this[_0x2483f0(0x84)]();}[_0x120a2b(0x84)](){[_0xefa49d['id'],_0x4dd920['id'],_0x38317b['id']]['forEach'](_0xfdcfc=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0xfdcfc));});}};I=Ve([je(0x0,_0x664ed(L))],I);var Me=Object[_0x120a2b(0x78)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x193fc4,_0x537f5e,_0x4736eb)=>_0x537f5e in _0x193fc4?Me(_0x193fc4,_0x537f5e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4736eb}):_0x193fc4[_0x537f5e]=_0x4736eb,We=(_0xb6ad85,_0x570301,_0x342c8b,_0x111d4c)=>{const _0x1f5071=_0x120a2b;for(var _0x5622b5=_0x111d4c>0x1?void 0x0:_0x111d4c?ke(_0x570301,_0x342c8b):_0x570301,_0x2f76c6=_0xb6ad85[_0x1f5071(0xa6)]-0x1,_0x106e20;_0x2f76c6>=0x0;_0x2f76c6--)(_0x106e20=_0xb6ad85[_0x2f76c6])&&(_0x5622b5=_0x106e20(_0x5622b5)||_0x5622b5);return _0x5622b5;},F=(_0x2bcb6f,_0x33cfcd)=>(_0x21554f,_0x4cd5c0)=>_0x33cfcd(_0x21554f,_0x4cd5c0,_0x2bcb6f),B=(_0x20712b,_0x34edbb,_0x220a71)=>Ge(_0x20712b,typeof _0x34edbb!='symbol'?_0x34edbb+'':_0x34edbb,_0x220a71);const Ye='UNIVER_LIVE_SHARE_PLUGIN';function _0x33a5(){const _0x5782a6=['length','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','registerInitialStateReporter','asObservable','1180479wgzaGz','_collabSessionService','UniverIcon','_config','getStatus','_liveShareService','_status$','PRESENTING','sheet','getCurrentTypeOfUnit$','values','substring','random','You\x27re\x20following\x20the\x20presenter','92SToogS','disposeWithMe','2889060TmwNEm','idSuffix','offline','_univerInstanceService','set','requireSession','currentColor','236646KnKrXj','send','current','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','_commandDisposable','startFollowing','_entities','end','1em','xlink:href','includes','tryStartPresenting','pipe','not-following','data','UNIVER_SHEET','_unitID','Start\x20following','svg','getInitialStates','univer-size-4','_beIdle','LIVESHARE_OPERATION','24820PBrotd','defs','url(#$1','_handleOperation','next','FOLLOWING','none','_stopFollowing','operations','_sharedOperations','button','LIVESHARE_TERMINATE','You\x27re\x20presenting\x20the\x20document','has','trim','HEADER_MENU','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','_uiPartsService','getTypeOfUnitAdded$','_reporters','_commandService','fill','div','setConfig','init','children','dispose','shouldShareOperation','http://www.w3.org/2000/svg','ONLINE','LiveShareIcon','UNIVER_UNKNOWN','entries','get','sessionStatus$','following','_injector','0\x200\x2017\x2017','params','102977Pvsocy','symbol','Present\x20this\x20document','add','complete','_startPresenting','path','replace','stopFollowing','OPERATION','string','colorChannel1','24WjYjTh','find','text','presenting','stopPresenting','registerSharedOperation','getLiveShareCoordinator','47369070vUdLjc','idle','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','subscribe','pluginName','LIVESHARE_REQUEST_HOST','_configService','NEW_CHANGESETS','_presenter','type','_startFollowing','_stopPresenting','displayName','defineProperty','forEach','8476972eputGt','stringify','_handleOnline','getMemberID','getOwnPropertyDescriptor','getValue','_status','executeCommand','_collabSession','map','_init','_handleTerminate','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','dispose$','Start','presenter','NOT_FOLLOWING','_mountLiveShare','status$','assign','tag','attrs','getConfig','createInstance','getLiveShareCoordinatorSync','112Hvkpim','LIVESHARE_NEW_HOST','live-share-icon','evenodd','OFFLINE','getUnitId','univerjs-icon\x20univerjs-icon-','getTypeOfUnitDisposed$','_handleNewHost','mask','You\x27re\x20not\x20following\x20the\x20presenter','default','_fetchOperations','then','_startLiveShareCoordinator','_handleNewChangeSets','delete','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x33a5=function(){return _0x5782a6;};return _0x33a5();}let b=class extends _0x59667f{constructor(_0x21d3f9=T,_0x555017,_0x4239cb){const _0x8b7857=_0x120a2b;super(),this[_0x8b7857(0xad)]=_0x21d3f9,this[_0x8b7857(0xfd)]=_0x555017,this['_configService']=_0x4239cb;const {..._0x436cd3}=_0xfda1f7({},T,this['_config']);this[_0x8b7857(0x71)][_0x8b7857(0xf0)](ye,_0x436cd3);}['onStarting'](){const _0x543d6c=_0x120a2b;_0x565181(this[_0x543d6c(0xfd)],_0x33514b([[L],[S],[I],[m]],this[_0x543d6c(0xad)]['override'])),_0x13d42a(this[_0x543d6c(0xfd)],[[I]]);}['onRendered'](){const _0xc97bac=_0x120a2b;_0x13d42a(this[_0xc97bac(0xfd)],[[m]]);}};B(b,'type',_0x3d4707[_0x120a2b(0xf8)]),B(b,_0x120a2b(0x6f),Ye),b=We([_0x4f1006(_0x1e5f88),F(0x1,_0x664ed(_0x401650)),F(0x2,_0x2ed083)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x221811=_0x2e9a;(function(_0x153aa2,_0x53c9ad){const _0x469ad4=_0x2e9a,_0x2a42e1=_0x153aa2();while(!![]){try{const _0x5679d9=parseInt(_0x469ad4(0x134))/0x1*(parseInt(_0x469ad4(0x1b4))/0x2)+parseInt(_0x469ad4(0x150))/0x3+-parseInt(_0x469ad4(0x125))/0x4*(-parseInt(_0x469ad4(0x14d))/0x5)+-parseInt(_0x469ad4(0x15f))/0x6+-parseInt(_0x469ad4(0x187))/0x7+-parseInt(_0x469ad4(0x139))/0x8*(-parseInt(_0x469ad4(0x17d))/0x9)+-parseInt(_0x469ad4(0x165))/0xa;if(_0x5679d9===_0x53c9ad)break;else _0x2a42e1['push'](_0x2a42e1['shift']());}catch(_0x47c5ac){_0x2a42e1['push'](_0x2a42e1['shift']());}}}(_0x1745,0x81c6c));var J=Object[_0x221811(0x140)],K=(_0x54f9f1,_0x5442c9,_0x45d33c)=>_0x5442c9 in _0x54f9f1?J(_0x54f9f1,_0x5442c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45d33c}):_0x54f9f1[_0x5442c9]=_0x45d33c,u=(_0x4dda28,_0x35b8c8,_0x28d07c)=>K(_0x4dda28,typeof _0x35b8c8!=_0x221811(0x12b)?_0x35b8c8+'':_0x35b8c8,_0x28d07c);import{Disposable as _0x5584fb,toDisposable as _0x4e21f7,IUniverInstanceService as _0x34a265,Inject as _0x3b972f,Injector as _0x1e206d,IConfigService as _0x3c082e,ICommandService as _0x2a3810,RxDisposable as _0x317033,UniverInstanceType as _0x4fecd8,DisposableCollection as _0x38a87f,CommandType as _0x274666,DependentOn as _0x4ef44e,Plugin as _0x54e800,merge as _0x47f8b3,registerDependencies as _0x38128c,mergeOverrideWithDependencies as _0x28e201,touchDependencies as _0x441580}from'@univerjs/core';import{useDependency as _0x3ba771,useObservable as _0x382b15,IUIPartsService as _0x2df529,BuiltInUIPart as _0x39e9b0,connectInjector as _0x19746f}from'@univerjs/ui';import{jsx as _0x394112,jsxs as _0x35a790,Fragment as _0xf1c7f5}from'react/jsx-runtime';import{Dropdown as _0x195faf,clsx as _0x4a0fdb,Button as _0x4da62a}from'@univerjs/design';import{useRef as _0x3dea31,createElement as _0x5edcfb,forwardRef as _0x5a8e8f,useState as _0x20fc4e,useEffect as _0x300d05}from'react';import{CollaborationEvent as _0x3ec99e,parseProtocolChangeset as _0x40eca1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1839d1,SessionStatus as _0x3fee76,UniverCollaborationClientPlugin as _0x121829}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e444,SetWorksheetActiveOperation as _0x222c77}from'@univerjs/sheets';import{BehaviorSubject as _0x9a32b4,Subject as _0x4cfb70}from'rxjs';import{takeUntil as _0x3d7e87,throttleTime as _0x1bd794}from'rxjs/operators';function _0x2e9a(_0x14dfa5,_0x35b766){const _0x174502=_0x1745();return _0x2e9a=function(_0x2e9af7,_0x486621){_0x2e9af7=_0x2e9af7-0x124;let _0x1540c3=_0x174502[_0x2e9af7];return _0x1540c3;},_0x2e9a(_0x14dfa5,_0x35b766);}import{SetZoomRatioOperation as _0x3a61b7,SetScrollOperation as _0x1e8464}from'@univerjs/sheets-ui';function k({ref:_0x197e6c,..._0x5ca943}){const _0x207c92=_0x221811,{icon:_0x2f09c0,id:_0x8b262c,className:_0x17c9c3,extend:_0x24cdfe,..._0x239edd}=_0x5ca943,_0x306934=(_0x207c92(0x1ba)+_0x8b262c+'\x20'+(_0x17c9c3||''))[_0x207c92(0x169)](),_0xecd5c0=_0x3dea31('_'+Oe());return G(_0x2f09c0,''+_0x8b262c,{'defIds':_0x2f09c0['defIds'],'idSuffix':_0xecd5c0[_0x207c92(0x183)]},{'ref':_0x197e6c,'className':_0x306934,..._0x239edd},_0x24cdfe);}function G(_0x31c008,_0x3c106a,_0xedabbb,_0x5d2070,_0x3dd37a){const _0x5a8fc0=_0x221811;return _0x5edcfb(_0x31c008['tag'],{'key':_0x3c106a,...be(_0x31c008,_0xedabbb,_0x3dd37a),..._0x5d2070},(Ee(_0x31c008,_0xedabbb)['children']||[])['map']((_0x477eeb,_0x324de5)=>G(_0x477eeb,_0x3c106a+'-'+_0x31c008[_0x5a8fc0(0x18e)]+'-'+_0x324de5,_0xedabbb,void 0x0,_0x3dd37a)));}function be(_0x3b3564,_0x187141,_0x5bcc20){const _0x3e1c00=_0x221811,_0x3c1373={..._0x3b3564[_0x3e1c00(0x158)]};_0x5bcc20!=null&&_0x5bcc20[_0x3e1c00(0x17c)]&&_0x3c1373[_0x3e1c00(0x172)]==='colorChannel1'&&(_0x3c1373[_0x3e1c00(0x172)]=_0x5bcc20[_0x3e1c00(0x17c)]),_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x18f)&&_0x3c1373['id']&&(_0x3c1373['id']=_0x3c1373['id']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)[_0x3e1c00(0x13d)](([_0x3c7c5c,_0x1da6a6])=>{const _0x157bf4=_0x3e1c00;_0x3c7c5c===_0x157bf4(0x18f)&&typeof _0x1da6a6==_0x157bf4(0x192)&&(_0x3c1373[_0x3c7c5c]=_0x1da6a6[_0x157bf4(0x19f)](/url\(#(.*)\)/,_0x157bf4(0x166)+_0x187141[_0x157bf4(0x167)]+')'));});const {defIds:_0x22b32f}=_0x187141;return!_0x22b32f||_0x22b32f[_0x3e1c00(0x195)]===0x0||(_0x3b3564[_0x3e1c00(0x18e)]===_0x3e1c00(0x1cc)&&_0x3c1373[_0x3e1c00(0x1b3)]&&(_0x3c1373['xlink:href']=_0x3c1373['xlink:href']+_0x187141[_0x3e1c00(0x167)]),Object[_0x3e1c00(0x1ab)](_0x3c1373)['forEach'](([_0x33755c,_0x2297f2])=>{const _0x545bfe=_0x3e1c00;typeof _0x2297f2==_0x545bfe(0x192)&&(_0x3c1373[_0x33755c]=_0x2297f2[_0x545bfe(0x19f)](/url\(#(.*)\)/,'url(#$1'+_0x187141[_0x545bfe(0x167)]+')'));})),_0x3c1373;}function Ee(_0x5a9411,_0x19eef7){const _0x350b86=_0x221811;var _0xbb3c2e;const {defIds:_0xa3863b}=_0x19eef7;return!_0xa3863b||_0xa3863b[_0x350b86(0x195)]===0x0?_0x5a9411:_0x5a9411[_0x350b86(0x18e)]===_0x350b86(0x149)&&((_0xbb3c2e=_0x5a9411[_0x350b86(0x145)])!=null&&_0xbb3c2e[_0x350b86(0x195)])?{..._0x5a9411,'children':_0x5a9411[_0x350b86(0x145)][_0x350b86(0x141)](_0x8212e7=>typeof _0x8212e7[_0x350b86(0x158)]['id']==_0x350b86(0x192)&&_0xa3863b&&_0xa3863b[_0x350b86(0x136)](_0x8212e7[_0x350b86(0x158)]['id'])?{..._0x8212e7,'attrs':{..._0x8212e7[_0x350b86(0x158)],'id':_0x8212e7[_0x350b86(0x158)]['id']+_0x19eef7[_0x350b86(0x167)]}}:_0x8212e7)}:_0x5a9411;}function Oe(){const _0x3670fe=_0x221811;return Math[_0x3670fe(0x1c6)]()[_0x3670fe(0x142)](0x24)[_0x3670fe(0x144)](0x2,0x8);}k[_0x221811(0x1a5)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x221811(0x184),'fill':_0x221811(0x178),'viewBox':_0x221811(0x1b0),'width':'1em','height':_0x221811(0x12d)},'children':[{'tag':_0x221811(0x153),'attrs':{'fill':_0x221811(0x1ad),'d':_0x221811(0x13c)}},{'tag':_0x221811(0x153),'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':_0x221811(0x1b1),'clipRule':_0x221811(0x1b1)}}]},W=_0x5a8e8f(function(_0x20d022,_0x47731f){const _0x315b76=_0x221811;return _0x5edcfb(k,Object[_0x315b76(0x175)]({},_0x20d022,{'id':'live-share-icon','ref':_0x47731f,'icon':we}));});W[_0x221811(0x1a5)]=_0x221811(0x190);class L extends _0x5584fb{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x221811(0x1bc)](_0x5900df){const _0x5bc97f=_0x221811;return this[_0x5bc97f(0x1c8)]['add'](_0x5900df),_0x4e21f7(()=>this[_0x5bc97f(0x1c8)][_0x5bc97f(0x126)](_0x5900df));}[_0x221811(0x18d)](_0x375172){const _0x88761=_0x221811;return this[_0x88761(0x1b9)][_0x88761(0x1a9)](_0x375172),_0x4e21f7(()=>this[_0x88761(0x1b9)][_0x88761(0x126)](_0x375172));}[_0x221811(0x1a7)](_0x18d878){const _0x53d32f=_0x221811;return this[_0x53d32f(0x1c8)]['has'](_0x18d878);}['getInitialStates'](_0x5d176f){const _0x1eeed2=_0x221811;return Array[_0x1eeed2(0x1ce)](this['_reporters'])['map'](_0x2bb04e=>_0x2bb04e(_0x5d176f));}}var Ne=Object[_0x221811(0x156)],Y=(_0x287803,_0x18bfb1,_0x3a3c64,_0x95786)=>{const _0x9d8303=_0x221811;for(var _0x24231a=_0x95786>0x1?void 0x0:_0x95786?Ne(_0x18bfb1,_0x3a3c64):_0x18bfb1,_0x8d7260=_0x287803[_0x9d8303(0x195)]-0x1,_0x257dee;_0x8d7260>=0x0;_0x8d7260--)(_0x257dee=_0x287803[_0x8d7260])&&(_0x24231a=_0x257dee(_0x24231a)||_0x24231a);return _0x24231a;},_=(_0x42f5a8,_0x5bb8ea)=>(_0x5381dd,_0x3fb270)=>_0x5bb8ea(_0x5381dd,_0x3fb270,_0x42f5a8);let S=class extends _0x317033{constructor(_0x305ccb,_0x243345,_0x2d10b0){const _0x2a2f93=_0x221811;super(),u(this,_0x2a2f93(0x1be),new Map()),(this[_0x2a2f93(0x194)]=_0x305ccb,this['_injector']=_0x243345,this[_0x2a2f93(0x193)]=_0x2d10b0,this[_0x2a2f93(0x14c)]());}async['getLiveShareCoordinator'](_0x4a5180){const _0x43c5d3=_0x221811;return this[_0x43c5d3(0x1be)][_0x43c5d3(0x15e)](_0x4a5180)||await this[_0x43c5d3(0x17b)](_0x4a5180),this[_0x43c5d3(0x1be)][_0x43c5d3(0x1b5)](_0x4a5180);}[_0x221811(0x1a0)](_0x3f9228){const _0xaa81b6=_0x221811;var _0x30c53a;return(_0x30c53a=this[_0xaa81b6(0x1be)][_0xaa81b6(0x1b5)](_0x3f9228))!=null?_0x30c53a:null;}['_init'](){const _0x396051=_0x221811;this['_univerInstanceService'][_0x396051(0x127)](_0x4fecd8[_0x396051(0x1a3)])['pipe'](_0x3d7e87(this[_0x396051(0x146)]))[_0x396051(0x1bf)](async _0x342f0c=>{const _0xd58b8b=_0x396051,_0x412d57=_0x342f0c[_0xd58b8b(0x174)]();this[_0xd58b8b(0x1be)][_0xd58b8b(0x15e)](_0x412d57)||this[_0xd58b8b(0x17b)](_0x412d57);}),this[_0x396051(0x194)]['getTypeOfUnitDisposed$'](_0x4fecd8['UNIVER_SHEET'])[_0x396051(0x16d)](_0x3d7e87(this['dispose$']))[_0x396051(0x1bf)](_0x28aa88=>{const _0x503de2=_0x396051,_0x2aa132=_0x28aa88[_0x503de2(0x174)](),_0x28c133=this['_entities'][_0x503de2(0x1b5)](_0x2aa132);_0x28c133==null||_0x28c133[_0x503de2(0x177)]();});}async[_0x221811(0x17b)](_0x1586f5){const _0x21f7ba=_0x221811,_0xf8791d=await this['_collabSessionService']['requireSession'](_0x1586f5),_0x265bff=this['_injector']['createInstance'](N,_0x1586f5,_0xf8791d);return _0x265bff[_0x21f7ba(0x199)](),this[_0x21f7ba(0x1be)][_0x21f7ba(0x152)](_0x1586f5,_0x265bff),_0x265bff;}};function _0x1745(){const _0x59f379=['asObservable','180940pjanDM','delete','getTypeOfUnitAdded$','OFFLINE','mutations','_handleTerminate','symbol','Start\x20following','1em','startFollowing','unsubscribe','clear','unitId','_commandService','univer-size-4','447734GbjpvL','stringify','includes','_unitID','status$','16XTUvtF','_stopFollowing','live-share.config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','forEach','_handleOffline','UNIVER_UNKNOWN','defineProperty','map','toString','FOLLOWING','substring','children','dispose$','values','following','defs','stopPresenting','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','_init','105YpEDMh','NEW_CHANGESETS','send','2099199niqjAe','registerComponent','set','path','presenter','presenting','getOwnPropertyDescriptor','_configService','attrs','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','memberID','getLiveShareCoordinator','_config','has','1474626oNDPyu','_liveShareService','parse','offline','disposeWithMe','sessionStatus$','16891970YTWKVJ','url(#$1','idSuffix','sheet','trim','_stopPresenting','getStatus','OPERATION','pipe','button','operations','LIVESHARE_TERMINATE','_commandDisposable','fill','text','getUnitId','assign','ONLINE','dispose','none','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','_startLiveShareCoordinator','colorChannel1','1110132JRRPZH','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','then','find','data','current','http://www.w3.org/2000/svg','onCommandExecuted','You\x27re\x20not\x20following\x20the\x20presenter','2277100BSyuDF','_status$','getValue','Stop\x20following','next','_fetchOperations','registerInitialStateReporter','tag','mask','LiveShareIcon','_injector','string','_collabSessionService','_univerInstanceService','length','complete','setConfig','getConfig','init','_beIdle','params','_presenter','_status','not-following','replace','getLiveShareCoordinatorSync','IDLE','_startFollowing','UNIVER_SHEET','HEADER_MENU','displayName','pluginName','shouldShareOperation','reverse','add','executeCommand','entries','LIVESHARE_NEW_HOST','currentColor','PRESENTING','_handleOperation','0\x200\x2017\x2017','evenodd','idle','xlink:href','4seKHVT','get','You\x27re\x20following\x20the\x20presenter','onStarting','LIVESHARE_REQUEST_HOST','_reporters','univerjs-icon\x20univerjs-icon-','getMemberID','registerSharedOperation','Present\x20this\x20document','_entities','subscribe','_uiPartsService','_collabSession','_handleOnline','Start','NOT_FOLLOWING','end','random','_handleNewHost','_sharedOperations','_startPresenting','default','div','use','_handleNewChangeSets','from'];_0x1745=function(){return _0x59f379;};return _0x1745();}S=Y([_(0x0,_0x34a265),_(0x1,_0x3b972f(_0x1e206d)),_(0x2,_0x3b972f(_0x1839d1))],S);var c=(_0x4faa0d=>(_0x4faa0d[_0x221811(0x128)]=_0x221811(0x162),_0x4faa0d[_0x221811(0x1a1)]=_0x221811(0x1b2),_0x4faa0d[_0x221811(0x143)]=_0x221811(0x148),_0x4faa0d['NOT_FOLLOWING']=_0x221811(0x19e),_0x4faa0d[_0x221811(0x1ae)]=_0x221811(0x155),_0x4faa0d))(c||{});const Ce=_0x221811(0x159),De=0xc8;let N=class extends _0x317033{constructor(_0x4c19f4,_0x31c774,_0x23e67d,_0x2e7fb6,_0xfd22e8){const _0x146a8e=_0x221811;super(),u(this,_0x146a8e(0x188),new _0x9a32b4('idle')),u(this,'status$',this[_0x146a8e(0x188)][_0x146a8e(0x124)]()),u(this,'_init',!0x1),u(this,_0x146a8e(0x171),null),u(this,'_presenter',null),(this[_0x146a8e(0x137)]=_0x4c19f4,this['_collabSession']=_0x31c774,this[_0x146a8e(0x157)]=_0x23e67d,this[_0x146a8e(0x160)]=_0x2e7fb6,this[_0x146a8e(0x132)]=_0xfd22e8);}get[_0x221811(0x19d)](){const _0x51f3e1=_0x221811;return this['_status$'][_0x51f3e1(0x189)]();}[_0x221811(0x177)](){const _0x22fc4a=_0x221811;var _0x27df7a;(_0x27df7a=this[_0x22fc4a(0x171)])==null||_0x27df7a[_0x22fc4a(0x177)](),this[_0x22fc4a(0x188)][_0x22fc4a(0x18b)](_0x22fc4a(0x1b2)),this[_0x22fc4a(0x188)][_0x22fc4a(0x196)]();}[_0x221811(0x16b)](){const _0x1da97c=_0x221811;return this[_0x1da97c(0x19d)];}['init'](){const _0x5e119f=_0x221811;this[_0x5e119f(0x14c)]||(this[_0x5e119f(0x14c)]=!0x0,this['_collabSession'][_0x5e119f(0x164)][_0x5e119f(0x16d)](_0x3d7e87(this['dispose$']))['subscribe'](_0xc6020a=>{const _0x370db1=_0x5e119f;switch(_0xc6020a){case _0x3fee76[_0x370db1(0x128)]:this[_0x370db1(0x13e)]();break;case _0x3fee76[_0x370db1(0x176)]:this[_0x370db1(0x1c2)]();break;}}),this[_0x5e119f(0x1c1)]['event$'][_0x5e119f(0x16d)](_0x3d7e87(this[_0x5e119f(0x146)]))[_0x5e119f(0x1bf)](_0x240184=>{const _0x1ecede=_0x5e119f,{eventID:_0x5746fc}=_0x240184;switch(_0x5746fc){case _0x3ec99e[_0x1ecede(0x1ac)]:this[_0x1ecede(0x1c7)](_0x240184);break;case _0x3ec99e['LIVESHARE_OPERATION']:this['_handleOperation'](_0x240184);break;case _0x3ec99e[_0x1ecede(0x170)]:this[_0x1ecede(0x12a)]();break;case _0x3ec99e[_0x1ecede(0x14e)]:this[_0x1ecede(0x1cd)](_0x240184);break;}}));}['tryStartPresenting'](){const _0x365163=_0x221811;this[_0x365163(0x1c1)][_0x365163(0x14f)]({'eventID':_0x3ec99e[_0x365163(0x1b8)],'data':{'unitID':this[_0x365163(0x137)],'userID':this[_0x365163(0x1c1)][_0x365163(0x1bb)]()}},this[_0x365163(0x137)]);}[_0x221811(0x14a)](){const _0x186731=_0x221811;this[_0x186731(0x19d)]==='presenting'&&(this[_0x186731(0x188)][_0x186731(0x18b)](_0x186731(0x1b2)),this[_0x186731(0x1c1)][_0x186731(0x14f)]({'eventID':_0x3ec99e[_0x186731(0x170)],'data':{'unitID':this[_0x186731(0x137)]}},this[_0x186731(0x137)]));}[_0x221811(0x12e)](){const _0x59c1c6=_0x221811;this[_0x59c1c6(0x19d)]===_0x59c1c6(0x19e)&&(this['_status$']['next']('following'),this[_0x59c1c6(0x1a2)]());}[_0x221811(0x17f)](){const _0x3c87d7=_0x221811;this[_0x3c87d7(0x19d)]===_0x3c87d7(0x148)&&this[_0x3c87d7(0x13a)]();}[_0x221811(0x1c7)](_0x38774b){const _0x26147e=_0x221811,{presenter:_0x568de2}=_0x38774b[_0x26147e(0x182)],_0x1ee82b=this[_0x26147e(0x1c1)][_0x26147e(0x1bb)]();this[_0x26147e(0x19c)]=_0x568de2,_0x568de2===_0x1ee82b?(this[_0x26147e(0x13a)](),this[_0x26147e(0x1c9)]()):this[_0x26147e(0x19d)]!==_0x26147e(0x19e)&&(this[_0x26147e(0x16a)](),this['_startFollowing']());}[_0x221811(0x18c)](){const _0x26a97f=_0x221811,_0x4371d8={'eventID':_0x3ec99e[_0x26a97f(0x17a)]};this[_0x26a97f(0x1c1)]['send'](_0x4371d8,this[_0x26a97f(0x137)]);}[_0x221811(0x12a)](){const _0x2db4c0=_0x221811;this[_0x2db4c0(0x19c)]=null,this[_0x2db4c0(0x19d)]!==_0x2db4c0(0x155)&&this[_0x2db4c0(0x19a)]();}[_0x221811(0x1cd)](_0xab9e6a){const _0x6f32d8=_0x221811;if(this[_0x6f32d8(0x19d)]===_0x6f32d8(0x148)&&this[_0x6f32d8(0x19c)]===_0xab9e6a[_0x6f32d8(0x182)][_0x6f32d8(0x15b)]){const _0x583621=_0x40eca1(_0xab9e6a[_0x6f32d8(0x182)])[_0x6f32d8(0x129)][_0x6f32d8(0x1a8)]()[_0x6f32d8(0x181)](_0xc28a72=>_0xc28a72['id']===_0x52e444['id']);if(_0x583621){const _0x57156a=_0x583621[_0x6f32d8(0x19b)][_0x6f32d8(0x131)],_0x3ce4c3=_0x583621['params'][_0x6f32d8(0x168)]['id'];setTimeout(()=>{const _0x596f4e=_0x6f32d8;this[_0x596f4e(0x132)][_0x596f4e(0x1aa)](_0x222c77['id'],{'unitId':_0x57156a,'subUnitId':_0x3ce4c3},{'fromCollab':!0x0});});}}}[_0x221811(0x1c9)](){const _0x2db157=_0x221811;this[_0x2db157(0x188)]['next']('presenting');const _0x4200fd=new Map(),_0x48d81f=this['_commandDisposable']=new _0x38a87f();_0x48d81f[_0x2db157(0x1a9)](_0x4e21f7(()=>{const _0x584e59=_0x2db157;_0x4200fd[_0x584e59(0x13d)](_0x17bf45=>_0x17bf45['complete']()),_0x4200fd[_0x584e59(0x130)]();})),_0x48d81f[_0x2db157(0x1a9)](this['_commandService'][_0x2db157(0x185)](_0x3bcb07=>{const _0x52500f=_0x2db157;var _0x48bb29;if(_0x3bcb07['type']!==_0x274666[_0x52500f(0x16c)]||!this[_0x52500f(0x160)][_0x52500f(0x1a7)](_0x3bcb07['id']))return;const {id:_0x52ddee}=_0x3bcb07;let _0x354757;_0x4200fd[_0x52500f(0x15e)](_0x52ddee)?_0x354757=_0x4200fd[_0x52500f(0x1b5)](_0x52ddee):(_0x354757=new _0x4cfb70(),_0x4200fd[_0x52500f(0x152)](_0x52ddee,_0x354757),_0x354757[_0x52500f(0x16d)](_0x1bd794((_0x48bb29=this[_0x52500f(0x157)][_0x52500f(0x198)](Ce))!=null?_0x48bb29:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x52500f(0x1bf)](_0x9f13b9=>{const _0x1e65e7=_0x52500f;this[_0x1e65e7(0x1c1)][_0x1e65e7(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x9f13b9['id']]:{'id':_0x9f13b9['id'],'params':JSON[_0x1e65e7(0x135)](_0x9f13b9['params'])}}}},this[_0x1e65e7(0x137)]);})),_0x354757['next'](_0x3bcb07);})),this[_0x2db157(0x160)]['getInitialStates'](this[_0x2db157(0x137)])['forEach'](_0x492c05=>this[_0x2db157(0x1c1)][_0x2db157(0x14f)]({'eventID':_0x3ec99e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2db157(0x137)],'operations':{[_0x492c05['id']]:{'id':_0x492c05['id'],'params':JSON[_0x2db157(0x135)](_0x492c05['params'])}}}},this['_unitID']));}[_0x221811(0x16a)](){const _0x58f706=_0x221811;var _0x28dca8;this[_0x58f706(0x188)][_0x58f706(0x18b)](_0x58f706(0x1b2)),(_0x28dca8=this[_0x58f706(0x171)])==null||_0x28dca8[_0x58f706(0x177)](),this[_0x58f706(0x171)]=null;}['_startFollowing'](){const _0x3f181e=_0x221811;var _0x4a3511;(_0x4a3511=this[_0x3f181e(0x171)])==null||_0x4a3511['dispose'](),this[_0x3f181e(0x188)]['next']('following');}['_beIdle'](){const _0x3b987a=_0x221811;var _0x529286;this[_0x3b987a(0x188)][_0x3b987a(0x18b)](_0x3b987a(0x1b2)),(_0x529286=this['_commandDisposable'])==null||_0x529286['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xa80023=_0x221811;var _0x3265b9;this[_0xa80023(0x188)][_0xa80023(0x18b)](_0xa80023(0x19e)),(_0x3265b9=this[_0xa80023(0x171)])==null||_0x3265b9[_0xa80023(0x177)]();}[_0x221811(0x1af)](_0x2ef283){const _0x4ca27f=_0x221811;if([_0x4ca27f(0x155),_0x4ca27f(0x19e),_0x4ca27f(0x162)][_0x4ca27f(0x136)](this['_status'])||!_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]||_0x2ef283[_0x4ca27f(0x182)][_0x4ca27f(0x154)]===this[_0x4ca27f(0x1c1)][_0x4ca27f(0x1bb)]())return;this[_0x4ca27f(0x19d)]===_0x4ca27f(0x1b2)&&this['_startFollowing']();const _0xaa10b1=_0x2ef283['data'][_0x4ca27f(0x16f)];Object[_0x4ca27f(0x147)](_0xaa10b1)[_0x4ca27f(0x13d)](_0x2d211e=>{const _0x4ba9d0=_0x4ca27f;this[_0x4ba9d0(0x132)][_0x4ba9d0(0x1aa)](_0x2d211e['id'],_0x2d211e['params']?JSON[_0x4ba9d0(0x161)](_0x2d211e[_0x4ba9d0(0x19b)]):null,{'fromCollab':!0x0});});}[_0x221811(0x13e)](){const _0x36d796=_0x221811;var _0x523e3f;this['_status$'][_0x36d796(0x18b)](_0x36d796(0x162)),(_0x523e3f=this[_0x36d796(0x171)])==null||_0x523e3f['dispose']();}[_0x221811(0x1c2)](){const _0x535ff5=_0x221811;this[_0x535ff5(0x188)][_0x535ff5(0x18b)]('idle'),this[_0x535ff5(0x18c)]();}};N=Y([_(0x2,_0x3c082e),_(0x3,_0x3b972f(L)),_(0x4,_0x2a3810)],N);function Le(){const _0x43a402=_0x221811,_0x26e912=_0x3ba771(S),_0x4dce2a=_0x3ba771(_0x34a265),_0x43f15e=_0x382b15(()=>_0x4dce2a['getCurrentTypeOfUnit$'](_0x4fecd8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1a9aed,_0x1d620a]=_0x20fc4e(null),[_0x1d9dc8,_0xf37569]=_0x20fc4e(c[_0x43a402(0x1a1)]),_0x8fea30=_0x3dea31(null);return _0x300d05(()=>(_0x43f15e&&_0x26e912[_0x43a402(0x15c)](_0x43f15e[_0x43a402(0x174)]())[_0x43a402(0x180)](_0x4eba86=>{const _0x50b8d6=_0x43a402;_0x1d620a(_0x4eba86),_0x8fea30[_0x50b8d6(0x183)]=_0x4eba86[_0x50b8d6(0x138)][_0x50b8d6(0x1bf)](_0x434bf9=>{_0xf37569(_0x434bf9);});}),()=>{const _0x358f3e=_0x43a402;var _0x5b15db;(_0x5b15db=_0x8fea30['current'])==null||_0x5b15db[_0x358f3e(0x12f)](),_0x8fea30[_0x358f3e(0x183)]=null;}),[_0x43f15e,_0x26e912]),_0x1a9aed?_0x394112(_0x195faf,{'align':_0x43a402(0x1c5),'disabled':_0x1d9dc8===c[_0x43a402(0x128)],'className':_0x43a402(0x14b),'overlay':_0x394112(Re,{'status':_0x1d9dc8,'coordinator':_0x1a9aed}),'children':_0x394112(_0x43a402(0x16e),{'className':_0x4a0fdb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1d9dc8===c[_0x43a402(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d9dc8!==c[_0x43a402(0x128)]}),'type':'button','children':_0x394112(W,{'className':_0x43a402(0x133)})})}):null;}function Re(_0x379975){const _0x501bf6=_0x221811,{status:_0xf6a4ed,coordinator:_0x4f14d6}=_0x379975;switch(_0xf6a4ed){case c[_0x501bf6(0x1a1)]:return _0x394112($e,{'coordinator':_0x4f14d6});case c['FOLLOWING']:return _0x394112(xe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x1c4)]:return _0x394112(Pe,{'coordinator':_0x4f14d6});case c[_0x501bf6(0x128)]:return _0x394112(Te,{});case c['PRESENTING']:return _0x394112(Ae,{'coordinator':_0x4f14d6});default:return null;}}function $e(_0x575fa9){const _0x11beaa=_0x221811,{coordinator:_0x5b9bcf}=_0x575fa9;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x11beaa(0x1cb),{'className':_0x11beaa(0x17e),'children':_0x11beaa(0x1bd)}),_0x394112(_0x4da62a,{'onClick':()=>_0x5b9bcf['tryStartPresenting'](),'children':_0x11beaa(0x1c3)})]});}function xe(_0x36f248){const _0x28450b=_0x221811,{coordinator:_0xdf4b47}=_0x36f248;return _0x35a790(_0xf1c7f5,{'children':[_0x394112('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28450b(0x1b6)}),_0x394112(_0x4da62a,{'onClick':()=>_0xdf4b47['stopFollowing'](),'children':_0x28450b(0x18a)})]});}function Pe(_0x57f701){const _0x8b5e25=_0x221811,{coordinator:_0x1762af}=_0x57f701;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x8b5e25(0x1cb),{'className':_0x8b5e25(0x17e),'children':_0x8b5e25(0x186)}),_0x394112(_0x4da62a,{'variant':_0x8b5e25(0x173),'onClick':()=>_0x1762af[_0x8b5e25(0x12e)](),'children':_0x8b5e25(0x12c)})]});}function Ae(_0x40a8aa){const _0x294155=_0x221811,{coordinator:_0x3b2972}=_0x40a8aa;return _0x35a790(_0xf1c7f5,{'children':[_0x394112(_0x294155(0x1cb),{'className':_0x294155(0x17e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x394112(_0x4da62a,{'variant':_0x294155(0x1ca),'onClick':()=>_0x3b2972['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x394112(_0xf1c7f5,{'children':'You\x27are\x20offline.'});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x35fae4,_0x3f93b4,_0x195de5,_0x11e290)=>{for(var _0x4de847=_0x11e290>0x1?void 0x0:_0x11e290?Fe(_0x3f93b4,_0x195de5):_0x3f93b4,_0x74d76b=_0x35fae4['length']-0x1,_0x4838c4;_0x74d76b>=0x0;_0x74d76b--)(_0x4838c4=_0x35fae4[_0x74d76b])&&(_0x4de847=_0x4838c4(_0x4de847)||_0x4de847);return _0x4de847;},A=(_0x52f16e,_0x553295)=>(_0x213c39,_0x1ab16b)=>_0x553295(_0x213c39,_0x1ab16b,_0x52f16e);let m=class extends _0x5584fb{constructor(_0x28f257,_0x4c0e58){const _0x4f80ab=_0x221811;super(),this[_0x4f80ab(0x191)]=_0x28f257,this['_uiPartsService']=_0x4c0e58,this[_0x4f80ab(0x15a)]();}[_0x221811(0x15a)](){const _0x287327=_0x221811;this[_0x287327(0x163)](this[_0x287327(0x1c0)][_0x287327(0x151)](_0x39e9b0[_0x287327(0x1a4)],()=>_0x19746f(Le,this['_injector'])));}};m=He([A(0x0,_0x3b972f(_0x1e206d)),A(0x1,_0x2df529)],m);const ye=_0x221811(0x13b),T={};var Ue=Object[_0x221811(0x156)],Ve=(_0x53c3a8,_0x36fd72,_0x5468a2,_0x34abac)=>{const _0x1fab97=_0x221811;for(var _0x32abaf=_0x34abac>0x1?void 0x0:_0x34abac?Ue(_0x36fd72,_0x5468a2):_0x36fd72,_0x1f375e=_0x53c3a8[_0x1fab97(0x195)]-0x1,_0x360244;_0x1f375e>=0x0;_0x1f375e--)(_0x360244=_0x53c3a8[_0x1f375e])&&(_0x32abaf=_0x360244(_0x32abaf)||_0x32abaf);return _0x32abaf;},je=(_0x45d15b,_0x5c189b)=>(_0x498899,_0x28088e)=>_0x5c189b(_0x498899,_0x28088e,_0x45d15b);let I=class extends _0x5584fb{constructor(_0xa67071){const _0x102e26=_0x221811;super(),this['_liveShareService']=_0xa67071,this[_0x102e26(0x14c)]();}[_0x221811(0x14c)](){[_0x3a61b7['id'],_0x1e8464['id'],_0x222c77['id']]['forEach'](_0x304360=>{const _0x4c14f1=_0x2e9a;this[_0x4c14f1(0x163)](this[_0x4c14f1(0x160)][_0x4c14f1(0x1bc)](_0x304360));});}};I=Ve([je(0x0,_0x3b972f(L))],I);var Me=Object[_0x221811(0x140)],ke=Object[_0x221811(0x156)],Ge=(_0x1699ed,_0x307fac,_0x32daaf)=>_0x307fac in _0x1699ed?Me(_0x1699ed,_0x307fac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32daaf}):_0x1699ed[_0x307fac]=_0x32daaf,We=(_0x544d81,_0x5843cb,_0x32db75,_0x35fed6)=>{const _0x3a252f=_0x221811;for(var _0x1377e5=_0x35fed6>0x1?void 0x0:_0x35fed6?ke(_0x5843cb,_0x32db75):_0x5843cb,_0x44480b=_0x544d81[_0x3a252f(0x195)]-0x1,_0x380dfc;_0x44480b>=0x0;_0x44480b--)(_0x380dfc=_0x544d81[_0x44480b])&&(_0x1377e5=_0x380dfc(_0x1377e5)||_0x1377e5);return _0x1377e5;},F=(_0x2c9782,_0x36fd95)=>(_0x427cb3,_0x344910)=>_0x36fd95(_0x427cb3,_0x344910,_0x2c9782),B=(_0x4bcd0e,_0x295c7f,_0x51efd5)=>Ge(_0x4bcd0e,typeof _0x295c7f!=_0x221811(0x12b)?_0x295c7f+'':_0x295c7f,_0x51efd5);const Ye=_0x221811(0x179);let b=class extends _0x54e800{constructor(_0x4965c7=T,_0x569af8,_0x2f65de){const _0x24a8a9=_0x221811;super(),this['_config']=_0x4965c7,this[_0x24a8a9(0x191)]=_0x569af8,this[_0x24a8a9(0x157)]=_0x2f65de;const {..._0x3d493f}=_0x47f8b3({},T,this[_0x24a8a9(0x15d)]);this['_configService'][_0x24a8a9(0x197)](ye,_0x3d493f);}[_0x221811(0x1b7)](){const _0x5f01fe=_0x221811;_0x38128c(this['_injector'],_0x28e201([[L],[S],[I],[m]],this[_0x5f01fe(0x15d)]['override'])),_0x441580(this[_0x5f01fe(0x191)],[[I]]);}['onRendered'](){const _0x4ac341=_0x221811;_0x441580(this[_0x4ac341(0x191)],[[m]]);}};B(b,'type',_0x4fecd8[_0x221811(0x13f)]),B(b,_0x221811(0x1a6),Ye),b=We([_0x4ef44e(_0x121829),F(0x1,_0x3b972f(_0x1e206d)),F(0x2,_0x3c082e)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4118(_0x406fdc,_0x5da886){const _0xa21c9=_0xa21c();return _0x4118=function(_0x411889,_0x2da739){_0x411889=_0x411889-0x12e;let _0x458c22=_0xa21c9[_0x411889];return _0x458c22;},_0x4118(_0x406fdc,_0x5da886);}function _0xa21c(){const _0x3b729a=['@univerjs/core/facade','@univerjs/sheets/facade','FUniver','FRange','getActiveSheet','stopPresenting','tryStartPresenting','syncExecuteCommand','551824yaxQsM','968jmnOTJ','extend','396xbBsUa','getLiveShareCoordinatorSync','stopFollowing','function','amd','startColumn','No\x20active\x20workbook\x20found.','63MmOGLu','getActiveWorkbook','UniverProLiveShare','UniverSheetsUi','213790OVgmLB','310867JcrwaY','UniverSheetsFacade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','startFollowing','22340GHpXIj','SetScrollOperation','getSheetId','getRenderById','LiveShareController','@univerjs/sheets','IDLE','4dGUcVE','FEnum','LiveShareStatusEnum','getStatus','@univerjs/engine-render','SetWorksheetActiveOperation','UniverEngineRender','getUnitId','getId','startPresenting','812484ikuFYy','3753462SFLqmh','executeCommand','PRESENTING','LiveShareStatus','@univerjs/sheets-ui','get','getLiveShareStatus','2098911eLFCsE','261sTPzUj','_commandService','_injector'];_0xa21c=function(){return _0x3b729a;};return _0xa21c();}(function(_0xee2166,_0x4c039b){const _0x29a63b=_0x4118,_0x4387a9=_0xee2166();while(!![]){try{const _0x4e67dd=-parseInt(_0x29a63b(0x14f))/0x1*(-parseInt(_0x29a63b(0x15b))/0x2)+parseInt(_0x29a63b(0x134))/0x3+parseInt(_0x29a63b(0x141))/0x4*(parseInt(_0x29a63b(0x154))/0x5)+parseInt(_0x29a63b(0x166))/0x6+parseInt(_0x29a63b(0x14a))/0x7*(parseInt(_0x29a63b(0x140))/0x8)+parseInt(_0x29a63b(0x135))/0x9*(-parseInt(_0x29a63b(0x14e))/0xa)+-parseInt(_0x29a63b(0x143))/0xb*(parseInt(_0x29a63b(0x165))/0xc);if(_0x4e67dd===_0x4c039b)break;else _0x4387a9['push'](_0x4387a9['shift']());}catch(_0x5e1093){_0x4387a9['push'](_0x4387a9['shift']());}}}(_0xa21c,0x906cb),function(_0x296337,_0xe9d1cd){const _0x58c7a8=_0x4118;typeof exports=='object'&&typeof module<'u'?_0xe9d1cd(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x58c7a8(0x146)&&define[_0x58c7a8(0x147)]?define(['@univerjs-pro/live-share',_0x58c7a8(0x15f),_0x58c7a8(0x159),_0x58c7a8(0x131),_0x58c7a8(0x139),_0x58c7a8(0x138)],_0xe9d1cd):(_0x296337=typeof globalThis<'u'?globalThis:_0x296337||self,_0xe9d1cd(_0x296337[_0x58c7a8(0x14c)],_0x296337[_0x58c7a8(0x161)],_0x296337['UniverSheets'],_0x296337[_0x58c7a8(0x14d)],_0x296337[_0x58c7a8(0x150)],_0x296337['UniverCoreFacade']));}(this,function(_0x1eb9ca,_0x3f6a1a,_0x2f4f54,_0x51593f,_0x259d4b,_0x3e5b07){'use strict';const _0x20f96b=_0x4118;class _0x268daf extends _0x259d4b[_0x20f96b(0x13b)]{[_0x20f96b(0x152)](_0x38ea9d,_0x1d2620,_0x56578f,_0x57b0ff,_0xdd89d5){const _0x2dce06=_0x20f96b,_0x400f76=_0x38ea9d[_0x2dce06(0x132)](_0x1eb9ca['LiveShareController']),_0x855acd=_0x38ea9d[_0x2dce06(0x132)](_0x3f6a1a['IRenderManagerService']),_0x3add89=_0x1d2620[_0x2dce06(0x162)](),_0x16ef18=_0x1d2620[_0x2dce06(0x13c)](),_0x13c1d1=_0x400f76[_0x2dce06(0x144)](_0x3add89);(_0x13c1d1==null?void 0x0:_0x13c1d1[_0x2dce06(0x15e)]())!==_0x1eb9ca[_0x2dce06(0x130)][_0x2dce06(0x12f)]||(_0x56578f[_0x2dce06(0x156)]()!==_0x16ef18[_0x2dce06(0x156)]()&&this[_0x2dce06(0x136)][_0x2dce06(0x12e)](_0x2f4f54[_0x2dce06(0x160)]['id'],{'unitId':_0x3add89,'subUnitId':_0x56578f[_0x2dce06(0x156)]()}),!_0x855acd[_0x2dce06(0x157)](_0x3add89))||_0xdd89d5[_0x2dce06(0x13f)](_0x51593f[_0x2dce06(0x155)]['id'],{'unitId':_0x1d2620[_0x2dce06(0x162)](),'sheetId':_0x56578f[_0x2dce06(0x156)](),'sheetViewStartRow':_0x57b0ff['startRow'],'sheetViewStartColumn':_0x57b0ff[_0x2dce06(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x259d4b[_0x20f96b(0x13b)][_0x20f96b(0x142)](_0x268daf);class _0x5d72c2 extends _0x3e5b07[_0x20f96b(0x13a)]{[_0x20f96b(0x133)](){const _0x32a4bd=_0x20f96b;var _0x48d316,_0x4cb65b;const _0x4acfa3=this[_0x32a4bd(0x137)][_0x32a4bd(0x132)](_0x1eb9ca['LiveShareController']),_0x398e48=(_0x48d316=this[_0x32a4bd(0x14b)]())==null?void 0x0:_0x48d316[_0x32a4bd(0x163)]();if(!_0x398e48)throw new Error(_0x32a4bd(0x149));const _0x5aab5a=_0x4acfa3[_0x32a4bd(0x144)](_0x398e48);return(_0x4cb65b=_0x5aab5a==null?void 0x0:_0x5aab5a['getStatus']())!=null?_0x4cb65b:_0x1eb9ca[_0x32a4bd(0x130)][_0x32a4bd(0x15a)];}[_0x20f96b(0x153)](){const _0x36b1f3=_0x20f96b;var _0xe2e65a;const _0x154de9=this[_0x36b1f3(0x137)][_0x36b1f3(0x132)](_0x1eb9ca[_0x36b1f3(0x158)]),_0x4664b4=(_0xe2e65a=this[_0x36b1f3(0x14b)]())==null?void 0x0:_0xe2e65a[_0x36b1f3(0x163)]();if(!_0x4664b4)throw new Error(_0x36b1f3(0x149));const _0x2689ee=_0x154de9[_0x36b1f3(0x144)](_0x4664b4);if(!_0x2689ee)throw new Error(_0x36b1f3(0x151));_0x2689ee[_0x36b1f3(0x153)]();}[_0x20f96b(0x145)](){const _0x1b56af=_0x20f96b;var _0x34c32c;const _0x17722a=this[_0x1b56af(0x137)][_0x1b56af(0x132)](_0x1eb9ca[_0x1b56af(0x158)]),_0xffeb5b=(_0x34c32c=this[_0x1b56af(0x14b)]())==null?void 0x0:_0x34c32c[_0x1b56af(0x163)]();if(!_0xffeb5b)throw new Error(_0x1b56af(0x149));const _0x4faa36=_0x17722a[_0x1b56af(0x144)](_0xffeb5b);if(!_0x4faa36)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4faa36[_0x1b56af(0x145)]();}[_0x20f96b(0x164)](){const _0x38960b=_0x20f96b;var _0x5a2b5b;const _0x2f723d=this[_0x38960b(0x137)][_0x38960b(0x132)](_0x1eb9ca[_0x38960b(0x158)]),_0x437eda=(_0x5a2b5b=this[_0x38960b(0x14b)]())==null?void 0x0:_0x5a2b5b[_0x38960b(0x163)]();if(!_0x437eda)throw new Error('No\x20active\x20workbook\x20found.');const _0x1b99a9=_0x2f723d[_0x38960b(0x144)](_0x437eda);if(!_0x1b99a9)throw new Error(_0x38960b(0x151));_0x1b99a9[_0x38960b(0x13e)]();}[_0x20f96b(0x13d)](){const _0x3336b2=_0x20f96b;var _0x215e8d;const _0x20dc83=this['_injector']['get'](_0x1eb9ca[_0x3336b2(0x158)]),_0x2b5365=(_0x215e8d=this[_0x3336b2(0x14b)]())==null?void 0x0:_0x215e8d[_0x3336b2(0x163)]();if(!_0x2b5365)throw new Error(_0x3336b2(0x149));const _0x260b4=_0x20dc83['getLiveShareCoordinatorSync'](_0x2b5365);if(!_0x260b4)throw new Error(_0x3336b2(0x151));_0x260b4[_0x3336b2(0x13d)]();}}_0x3e5b07[_0x20f96b(0x13a)][_0x20f96b(0x142)](_0x5d72c2);class _0x2bba8f extends _0x3e5b07[_0x20f96b(0x15c)]{get[_0x20f96b(0x15d)](){return _0x1eb9ca['LiveShareStatus'];}}_0x3e5b07[_0x20f96b(0x15c)][_0x20f96b(0x142)](_0x2bba8f);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2c52(){const _0xffd266=['clsx','connectInjector','getConfig','SetWorksheetActiveOperation','62763ejEjvI','Dropdown','UniverDesign','evenodd','_collabSession','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','executeCommand','then','jsxs','getStatus','live-share-icon','Disposable','getUnitId','@univerjs/ui','asObservable','@univerjs-pro/collaboration-client','_stopPresenting','DisposableCollection','dispose$','get','_injector','takeUntil','Subject','UniverInstanceType','4esEyOZ','text','react/jsx-runtime','button','_handleNewChangeSets','send','delete','CollaborationEvent','clear','_univerInstanceService','Present\x20this\x20document','pipe','next','UNIVER_SHEET','sessionStatus$','symbol','@univerjs/sheets','defs','_status','_handleOffline','registerDependencies','LiveShareService','univerjs-icon\x20univerjs-icon-','1854480YiLFTE','toDisposable','UNIVER_LIVE_SHARE_PLUGIN','59832hciTtb','jsx','stringify','LIVESHARE_NEW_HOST','useDependency','_configService','26814gezcvv','forwardRef','dispose','div','873384ZxSzrQ','_sharedOperations','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','rxjs/operators','length','init','IDLE','React','http://www.w3.org/2000/svg','has','type','PRESENTING','data','LIVESHARE_OPERATION','OFFLINE','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','stopFollowing','rxjs','merge','ONLINE','ICommandService','params','toStringTag','1em','DependentOn','entries','Plugin','tag','tryStartPresenting','current','substring','UniverCore','forEach','12IEaioP','SetScrollOperation','idSuffix','SAME_OPERATION_SHARE_INTERVAL','getOwnPropertyDescriptor','UniverProCollaborationClient','UniverProLiveShare','getTypeOfUnitDisposed$','registerComponent','You\x27re\x20following\x20the\x20presenter','BehaviorSubject','override','map','HEADER_MENU','InsertSheetMutation','LIVESHARE_FETCH_OPERATIONS','string','NOT_FOLLOWING','10662784mCLsVe','presenter','Button','Fragment','url(#$1','getLiveShareCoordinator','45pKpuYu','OPERATION','Start','Stop\x20presenting','presenting','onRendered','6634420uyKshB','fill','_config','You\x27are\x20offline.','_stopFollowing','_mountLiveShare','245WjSmBx','_init','@univerjs/sheets-ui','createElement','event$','getInitialStates','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','shouldShareOperation','_presenter','_handleNewHost','@univerjs/design','end','_fetchOperations','getLiveShareCoordinatorSync','colorChannel1','_reporters','FOLLOWING','useRef','currentColor','_commandDisposable','startFollowing','_handleOperation','_unitID','You\x27re\x20presenting\x20the\x20document','requireSession','includes','following','LiveShareCoordinator','IConfigService','getMemberID','set','attrs','_status$','complete','operations','Injector','0\x200\x2017\x2017','useState','assign','Module','add','mergeOverrideWithDependencies','_startFollowing','stopPresenting','LIVESHARE_TERMINATE','svg','SessionStatus','UniverLiveSharePlugin','Inject','@univerjs/core','Stop\x20following','random','unsubscribe','_startPresenting','default','defineProperty','object','idle','_beIdle','univer-size-4','trim','UniverUi','setConfig','useEffect','IUIPartsService','mask','sheet','LiveShareIcon','You\x27re\x20not\x20following\x20the\x20presenter','UniverIcon','touchDependencies','UniverSheets','find','Start\x20following','none','_commandService','operators','live-share.config','_entities','LiveShareController','_handleOnline','NEW_CHANGESETS','UNIVER_UNKNOWN','defIds','DesktopLiveShareController','displayName','exports','createInstance','subscribe','path','offline','xlink:href','replace','4AFCuCg','BuiltInUIPart','UniverCollaborationClientPlugin','_liveShareService','pluginName','throttleTime','RxDisposable','IUniverInstanceService','_startLiveShareCoordinator','not-following','mutations'];_0x2c52=function(){return _0xffd266;};return _0x2c52();}function _0x1219(_0x2bee0b,_0x5e6781){const _0x2c52d9=_0x2c52();return _0x1219=function(_0x12192f,_0x478a7b){_0x12192f=_0x12192f-0xea;let _0x3cb6b8=_0x2c52d9[_0x12192f];return _0x3cb6b8;},_0x1219(_0x2bee0b,_0x5e6781);}(function(_0x531725,_0x3da08c){const _0x49cba7=_0x1219,_0x582fec=_0x531725();while(!![]){try{const _0x31040f=-parseInt(_0x49cba7(0x125))/0x1+parseInt(_0x49cba7(0x116))/0x2*(parseInt(_0x49cba7(0x161))/0x3)+-parseInt(_0x49cba7(0x13d))/0x4*(-parseInt(_0x49cba7(0x154))/0x5)+parseInt(_0x49cba7(0x15d))/0x6*(-parseInt(_0x49cba7(0x1a8))/0x7)+-parseInt(_0x49cba7(0x157))/0x8*(parseInt(_0x49cba7(0x19c))/0x9)+parseInt(_0x49cba7(0x1a2))/0xa+-parseInt(_0x49cba7(0x196))/0xb*(parseInt(_0x49cba7(0x184))/0xc);if(_0x31040f===_0x3da08c)break;else _0x582fec['push'](_0x582fec['shift']());}catch(_0x55ae7d){_0x582fec['push'](_0x582fec['shift']());}}}(_0x2c52,0x5f615),function(_0xdea920,_0x314c2d){const _0x1aee48=_0x1219;typeof exports==_0x1aee48(0xf1)&&typeof module<'u'?_0x314c2d(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=='function'&&define['amd']?define([_0x1aee48(0x10f),_0x1aee48(0xea),_0x1aee48(0x132),_0x1aee48(0x13f),_0x1aee48(0x1b3),'react','@univerjs-pro/collaboration',_0x1aee48(0x134),_0x1aee48(0x14d),_0x1aee48(0x174),_0x1aee48(0x166),_0x1aee48(0x1aa)],_0x314c2d):(_0xdea920=typeof globalThis<'u'?globalThis:_0xdea920||self,_0x314c2d(_0xdea920[_0x1aee48(0x18a)]={},_0xdea920[_0x1aee48(0x182)],_0xdea920[_0x1aee48(0xf6)],_0xdea920[_0x1aee48(0x16a)],_0xdea920[_0x1aee48(0x127)],_0xdea920[_0x1aee48(0x16a)],_0xdea920['UniverProCollaboration'],_0xdea920[_0x1aee48(0x189)],_0xdea920[_0x1aee48(0x100)],_0xdea920[_0x1aee48(0x174)],_0xdea920[_0x1aee48(0x174)][_0x1aee48(0x105)],_0xdea920['UniverSheetsUi']));}(this,function(_0x519f60,_0x3b8586,_0x28aa20,_0x5b8318,_0x19dd6f,_0x4fb086,_0x286a58,_0x38f205,_0x24cc03,_0x2abecc,_0x206d6a,_0x5c66b5){'use strict';const _0x49bce0=_0x1219;var _0x5453cb=Object['defineProperty'],_0xf7dd71=(_0x548b78,_0x4b38b8,_0x263865)=>_0x4b38b8 in _0x548b78?_0x5453cb(_0x548b78,_0x4b38b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x263865}):_0x548b78[_0x4b38b8]=_0x263865,_0x505fe2=(_0x4ad8c6,_0x2f6eda,_0x2e2454)=>_0xf7dd71(_0x4ad8c6,typeof _0x2f6eda!=_0x49bce0(0x14c)?_0x2f6eda+'':_0x2f6eda,_0x2e2454);function _0x4d5b0d({ref:_0x11ddc4,..._0x48ed7a}){const _0x2fc855=_0x49bce0,{icon:_0x3b6e9a,id:_0x4d693f,className:_0x3beb2f,extend:_0x5e2b9a,..._0x2d41ed}=_0x48ed7a,_0x5a29d2=(_0x2fc855(0x153)+_0x4d693f+'\x20'+(_0x3beb2f||''))[_0x2fc855(0xf5)](),_0x2a889a=_0x4fb086[_0x2fc855(0x1ba)]('_'+_0x4c5a8e());return _0x5055ff(_0x3b6e9a,''+_0x4d693f,{'defIds':_0x3b6e9a[_0x2fc855(0x10c)],'idSuffix':_0x2a889a[_0x2fc855(0x180)]},{'ref':_0x11ddc4,'className':_0x5a29d2,..._0x2d41ed},_0x5e2b9a);}function _0x5055ff(_0x332541,_0x57ade3,_0x4b31ce,_0x5333a4,_0xc347d0){const _0x4b5c41=_0x49bce0;return _0x4fb086[_0x4b5c41(0x1ab)](_0x332541[_0x4b5c41(0x17e)],{'key':_0x57ade3,..._0x44803c(_0x332541,_0x4b31ce,_0xc347d0),..._0x5333a4},(_0x41b8bb(_0x332541,_0x4b31ce)['children']||[])[_0x4b5c41(0x190)]((_0x2881c9,_0x5d38fc)=>_0x5055ff(_0x2881c9,_0x57ade3+'-'+_0x332541[_0x4b5c41(0x17e)]+'-'+_0x5d38fc,_0x4b31ce,void 0x0,_0xc347d0)));}function _0x44803c(_0x238794,_0x3b1b4c,_0x120156){const _0x5654f2=_0x49bce0,_0x20f53b={..._0x238794[_0x5654f2(0x1c8)]};_0x120156!=null&&_0x120156['colorChannel1']&&_0x20f53b['fill']===_0x5654f2(0x1b7)&&(_0x20f53b[_0x5654f2(0x1a3)]=_0x120156['colorChannel1']),_0x238794['tag']===_0x5654f2(0xfa)&&_0x20f53b['id']&&(_0x20f53b['id']=_0x20f53b['id']+_0x3b1b4c[_0x5654f2(0x186)]),Object[_0x5654f2(0x17c)](_0x20f53b)[_0x5654f2(0x183)](([_0x34e174,_0x1147ea])=>{const _0x4b2331=_0x5654f2;_0x34e174===_0x4b2331(0xfa)&&typeof _0x1147ea==_0x4b2331(0x194)&&(_0x20f53b[_0x34e174]=_0x1147ea[_0x4b2331(0x115)](/url\(#(.*)\)/,'url(#$1'+_0x3b1b4c['idSuffix']+')'));});const {defIds:_0x58c4b5}=_0x3b1b4c;return!_0x58c4b5||_0x58c4b5[_0x5654f2(0x167)]===0x0||(_0x238794[_0x5654f2(0x17e)]==='use'&&_0x20f53b[_0x5654f2(0x114)]&&(_0x20f53b[_0x5654f2(0x114)]=_0x20f53b[_0x5654f2(0x114)]+_0x3b1b4c[_0x5654f2(0x186)]),Object[_0x5654f2(0x17c)](_0x20f53b)['forEach'](([_0x1485f1,_0x310bd1])=>{const _0x3a9ba3=_0x5654f2;typeof _0x310bd1=='string'&&(_0x20f53b[_0x1485f1]=_0x310bd1['replace'](/url\(#(.*)\)/,_0x3a9ba3(0x19a)+_0x3b1b4c[_0x3a9ba3(0x186)]+')'));})),_0x20f53b;}function _0x41b8bb(_0x46f435,_0x45d017){const _0x1df71a=_0x49bce0;var _0x48b331;const {defIds:_0x186016}=_0x45d017;return!_0x186016||_0x186016['length']===0x0?_0x46f435:_0x46f435['tag']===_0x1df71a(0x14e)&&((_0x48b331=_0x46f435['children'])!=null&&_0x48b331[_0x1df71a(0x167)])?{..._0x46f435,'children':_0x46f435['children'][_0x1df71a(0x190)](_0x75ea84=>typeof _0x75ea84['attrs']['id']=='string'&&_0x186016&&_0x186016[_0x1df71a(0x1c2)](_0x75ea84[_0x1df71a(0x1c8)]['id'])?{..._0x75ea84,'attrs':{..._0x75ea84[_0x1df71a(0x1c8)],'id':_0x75ea84[_0x1df71a(0x1c8)]['id']+_0x45d017['idSuffix']}}:_0x75ea84)}:_0x46f435;}function _0x4c5a8e(){const _0x5b0d63=_0x49bce0;return Math[_0x5b0d63(0xec)]()['toString'](0x24)[_0x5b0d63(0x181)](0x2,0x8);}_0x4d5b0d[_0x49bce0(0x10e)]=_0x49bce0(0xfe);const _0x1e6db4={'tag':_0x49bce0(0x1d6),'attrs':{'xmlns':_0x49bce0(0x16b),'fill':_0x49bce0(0x103),'viewBox':_0x49bce0(0x1cd),'width':_0x49bce0(0x17a),'height':_0x49bce0(0x17a)},'children':[{'tag':_0x49bce0(0x112),'attrs':{'fill':_0x49bce0(0x1bb),'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':_0x49bce0(0x112),'attrs':{'fill':_0x49bce0(0x1bb),'d':_0x49bce0(0x12a),'fillRule':_0x49bce0(0x128),'clipRule':'evenodd'}}]},_0xcff326=_0x4fb086[_0x49bce0(0x15e)](function(_0x407ead,_0x26689a){const _0x1ae726=_0x49bce0;return _0x4fb086[_0x1ae726(0x1ab)](_0x4d5b0d,Object[_0x1ae726(0x1cf)]({},_0x407ead,{'id':_0x1ae726(0x12f),'ref':_0x26689a,'icon':_0x1e6db4}));});_0xcff326[_0x49bce0(0x10e)]=_0x49bce0(0xfc);class _0x29808c extends _0x3b8586['Disposable']{constructor(){const _0x4ed08d=_0x49bce0;super(...arguments),_0x505fe2(this,_0x4ed08d(0x162),new Set()),_0x505fe2(this,_0x4ed08d(0x1b8),new Set());}[_0x49bce0(0x163)](_0x38fefc){const _0x99910=_0x49bce0;return this['_sharedOperations'][_0x99910(0x1d1)](_0x38fefc),_0x3b8586[_0x99910(0x155)](()=>this[_0x99910(0x162)][_0x99910(0x143)](_0x38fefc));}['registerInitialStateReporter'](_0x4b1c83){const _0x19092f=_0x49bce0;return this['_reporters'][_0x19092f(0x1d1)](_0x4b1c83),_0x3b8586[_0x19092f(0x155)](()=>this[_0x19092f(0x1b8)]['delete'](_0x4b1c83));}[_0x49bce0(0x1b0)](_0x2eb8e0){const _0x5f4511=_0x49bce0;return this[_0x5f4511(0x162)][_0x5f4511(0x16c)](_0x2eb8e0);}['getInitialStates'](_0x3fb3e8){return Array['from'](this['_reporters'])['map'](_0x1432d7=>_0x1432d7(_0x3fb3e8));}}var _0x2ddd2e=Object[_0x49bce0(0x188)],_0x1fa393=(_0x355dc7,_0x28da7c,_0x8fbd0,_0x3e103f)=>{for(var _0x1e7983=_0x3e103f>0x1?void 0x0:_0x3e103f?_0x2ddd2e(_0x28da7c,_0x8fbd0):_0x28da7c,_0x48f197=_0x355dc7['length']-0x1,_0x1e9b3d;_0x48f197>=0x0;_0x48f197--)(_0x1e9b3d=_0x355dc7[_0x48f197])&&(_0x1e7983=_0x1e9b3d(_0x1e7983)||_0x1e7983);return _0x1e7983;},_0x490e9=(_0x4e2ace,_0x3d2153)=>(_0x1dac52,_0x5e8443)=>_0x3d2153(_0x1dac52,_0x5e8443,_0x4e2ace);_0x519f60[_0x49bce0(0x108)]=class extends _0x3b8586[_0x49bce0(0x11c)]{constructor(_0x2417e6,_0x3bcabd,_0x34a4ac){const _0x57f42f=_0x49bce0;super(),_0x505fe2(this,_0x57f42f(0x107),new Map()),(this[_0x57f42f(0x146)]=_0x2417e6,this[_0x57f42f(0x139)]=_0x3bcabd,this['_collabSessionService']=_0x34a4ac,this[_0x57f42f(0x1a9)]());}async[_0x49bce0(0x19b)](_0x594d66){const _0x4e5631=_0x49bce0;return this[_0x4e5631(0x107)]['has'](_0x594d66)||await this[_0x4e5631(0x11e)](_0x594d66),this['_entities'][_0x4e5631(0x138)](_0x594d66);}[_0x49bce0(0x1b6)](_0x503260){const _0x31533e=_0x49bce0;var _0x177bd3;return(_0x177bd3=this['_entities'][_0x31533e(0x138)](_0x503260))!=null?_0x177bd3:null;}['_init'](){const _0x40f07f=_0x49bce0;this[_0x40f07f(0x146)]['getTypeOfUnitAdded$'](_0x3b8586[_0x40f07f(0x13c)][_0x40f07f(0x14a)])[_0x40f07f(0x148)](_0x206d6a[_0x40f07f(0x13a)](this[_0x40f07f(0x137)]))['subscribe'](async _0x1d04aa=>{const _0x57eee9=_0x40f07f,_0x9f7c43=_0x1d04aa['getUnitId']();this[_0x57eee9(0x107)]['has'](_0x9f7c43)||this[_0x57eee9(0x11e)](_0x9f7c43);}),this[_0x40f07f(0x146)][_0x40f07f(0x18b)](_0x3b8586['UniverInstanceType'][_0x40f07f(0x14a)])[_0x40f07f(0x148)](_0x206d6a[_0x40f07f(0x13a)](this[_0x40f07f(0x137)]))[_0x40f07f(0x111)](_0xa36e9b=>{const _0x19bbd1=_0x40f07f,_0x467b67=_0xa36e9b[_0x19bbd1(0x131)](),_0x1eb0c0=this[_0x19bbd1(0x107)][_0x19bbd1(0x138)](_0x467b67);_0x1eb0c0==null||_0x1eb0c0[_0x19bbd1(0x15f)]();});}async[_0x49bce0(0x11e)](_0x12ee49){const _0x1b537a=_0x49bce0,_0x132f3c=await this['_collabSessionService'][_0x1b537a(0x1c1)](_0x12ee49),_0x4016ef=this[_0x1b537a(0x139)][_0x1b537a(0x110)](_0x519f60['LiveShareCoordinator'],_0x12ee49,_0x132f3c);return _0x4016ef[_0x1b537a(0x168)](),this[_0x1b537a(0x107)][_0x1b537a(0x1c7)](_0x12ee49,_0x4016ef),_0x4016ef;}},_0x519f60['LiveShareController']=_0x1fa393([_0x490e9(0x0,_0x3b8586[_0x49bce0(0x11d)]),_0x490e9(0x1,_0x3b8586[_0x49bce0(0x1d9)](_0x3b8586[_0x49bce0(0x1cc)])),_0x490e9(0x2,_0x3b8586['Inject'](_0x38f205['CollaborationSessionService']))],_0x519f60[_0x49bce0(0x108)]);var _0x19e733=(_0x11457d=>(_0x11457d['OFFLINE']=_0x49bce0(0x113),_0x11457d['IDLE']=_0x49bce0(0xf2),_0x11457d[_0x49bce0(0x1b9)]=_0x49bce0(0x1c3),_0x11457d[_0x49bce0(0x195)]=_0x49bce0(0x11f),_0x11457d[_0x49bce0(0x16e)]=_0x49bce0(0x1a0),_0x11457d))(_0x19e733||{});const _0x32d44f=_0x49bce0(0x187),_0x3efed1=0xc8;_0x519f60['LiveShareCoordinator']=class extends _0x3b8586[_0x49bce0(0x11c)]{constructor(_0x116022,_0x339892,_0x431aae,_0x255d44,_0x3c0162){const _0x4570a3=_0x49bce0;super(),_0x505fe2(this,_0x4570a3(0x1c9),new _0x2abecc[(_0x4570a3(0x18e))]('idle')),_0x505fe2(this,'status$',this[_0x4570a3(0x1c9)][_0x4570a3(0x133)]()),_0x505fe2(this,'_init',!0x1),_0x505fe2(this,_0x4570a3(0x1bc),null),_0x505fe2(this,_0x4570a3(0x1b1),null),(this[_0x4570a3(0x1bf)]=_0x116022,this['_collabSession']=_0x339892,this[_0x4570a3(0x15c)]=_0x431aae,this[_0x4570a3(0x119)]=_0x255d44,this[_0x4570a3(0x104)]=_0x3c0162);}get[_0x49bce0(0x14f)](){const _0x141b78=_0x49bce0;return this[_0x141b78(0x1c9)][_0x141b78(0x165)]();}[_0x49bce0(0x15f)](){const _0x3de04c=_0x49bce0;var _0x40348a;(_0x40348a=this[_0x3de04c(0x1bc)])==null||_0x40348a['dispose'](),this['_status$'][_0x3de04c(0x149)]('idle'),this['_status$'][_0x3de04c(0x1ca)]();}[_0x49bce0(0x12e)](){const _0x100d5a=_0x49bce0;return this[_0x100d5a(0x14f)];}[_0x49bce0(0x168)](){const _0x5a8489=_0x49bce0;this[_0x5a8489(0x1a9)]||(this[_0x5a8489(0x1a9)]=!0x0,this[_0x5a8489(0x129)][_0x5a8489(0x14b)][_0x5a8489(0x148)](_0x206d6a['takeUntil'](this[_0x5a8489(0x137)]))[_0x5a8489(0x111)](_0xc8137a=>{const _0x34d7b8=_0x5a8489;switch(_0xc8137a){case _0x38f205['SessionStatus'][_0x34d7b8(0x171)]:this[_0x34d7b8(0x150)]();break;case _0x38f205[_0x34d7b8(0x1d7)][_0x34d7b8(0x176)]:this[_0x34d7b8(0x109)]();break;}}),this[_0x5a8489(0x129)][_0x5a8489(0x1ac)][_0x5a8489(0x148)](_0x206d6a[_0x5a8489(0x13a)](this[_0x5a8489(0x137)]))['subscribe'](_0x3b8fd5=>{const _0x59bbf0=_0x5a8489,{eventID:_0x42bbad}=_0x3b8fd5;switch(_0x42bbad){case _0x286a58[_0x59bbf0(0x144)][_0x59bbf0(0x15a)]:this[_0x59bbf0(0x1b2)](_0x3b8fd5);break;case _0x286a58[_0x59bbf0(0x144)]['LIVESHARE_OPERATION']:this[_0x59bbf0(0x1be)](_0x3b8fd5);break;case _0x286a58['CollaborationEvent'][_0x59bbf0(0x1d5)]:this['_handleTerminate']();break;case _0x286a58[_0x59bbf0(0x144)][_0x59bbf0(0x10a)]:this[_0x59bbf0(0x141)](_0x3b8fd5);break;}}));}[_0x49bce0(0x17f)](){const _0x381948=_0x49bce0;this[_0x381948(0x129)][_0x381948(0x142)]({'eventID':_0x286a58[_0x381948(0x144)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x381948(0x1bf)],'userID':this[_0x381948(0x129)][_0x381948(0x1c6)]()}},this[_0x381948(0x1bf)]);}[_0x49bce0(0x1d4)](){const _0x1c15be=_0x49bce0;this[_0x1c15be(0x14f)]===_0x1c15be(0x1a0)&&(this[_0x1c15be(0x1c9)][_0x1c15be(0x149)](_0x1c15be(0xf2)),this[_0x1c15be(0x129)][_0x1c15be(0x142)]({'eventID':_0x286a58['CollaborationEvent'][_0x1c15be(0x1d5)],'data':{'unitID':this['_unitID']}},this[_0x1c15be(0x1bf)]));}[_0x49bce0(0x1bd)](){const _0x2080e6=_0x49bce0;this['_status']===_0x2080e6(0x11f)&&(this[_0x2080e6(0x1c9)][_0x2080e6(0x149)](_0x2080e6(0x1c3)),this[_0x2080e6(0x1d3)]());}[_0x49bce0(0x173)](){const _0x4e500f=_0x49bce0;this['_status']==='following'&&this[_0x4e500f(0x1a6)]();}['_handleNewHost'](_0x150114){const _0xbde9bd=_0x49bce0,{presenter:_0x30aaac}=_0x150114[_0xbde9bd(0x16f)],_0x487f0d=this[_0xbde9bd(0x129)][_0xbde9bd(0x1c6)]();this[_0xbde9bd(0x1b1)]=_0x30aaac,_0x30aaac===_0x487f0d?(this[_0xbde9bd(0x1a6)](),this[_0xbde9bd(0xee)]()):this[_0xbde9bd(0x14f)]!==_0xbde9bd(0x11f)&&(this['_stopPresenting'](),this[_0xbde9bd(0x1d3)]());}[_0x49bce0(0x1b5)](){const _0x553a22=_0x49bce0,_0x56f4db={'eventID':_0x286a58[_0x553a22(0x144)][_0x553a22(0x193)]};this[_0x553a22(0x129)]['send'](_0x56f4db,this[_0x553a22(0x1bf)]);}['_handleTerminate'](){const _0x2f91a6=_0x49bce0;this[_0x2f91a6(0x1b1)]=null,this[_0x2f91a6(0x14f)]!==_0x2f91a6(0x1a0)&&this[_0x2f91a6(0xf3)]();}[_0x49bce0(0x141)](_0x41a846){const _0x1d8376=_0x49bce0;if(this[_0x1d8376(0x14f)]===_0x1d8376(0x1c3)&&this[_0x1d8376(0x1b1)]===_0x41a846[_0x1d8376(0x16f)]['memberID']){const _0x26f3a6=_0x286a58['parseProtocolChangeset'](_0x41a846[_0x1d8376(0x16f)])[_0x1d8376(0x120)]['reverse']()[_0x1d8376(0x101)](_0x2930c3=>_0x2930c3['id']===_0x24cc03[_0x1d8376(0x192)]['id']);if(_0x26f3a6){const _0x17ef4a=_0x26f3a6['params']['unitId'],_0x409fff=_0x26f3a6[_0x1d8376(0x178)][_0x1d8376(0xfb)]['id'];setTimeout(()=>{const _0x1a3479=_0x1d8376;this['_commandService'][_0x1a3479(0x12b)](_0x24cc03[_0x1a3479(0x124)]['id'],{'unitId':_0x17ef4a,'subUnitId':_0x409fff},{'fromCollab':!0x0});});}}}[_0x49bce0(0xee)](){const _0x3e7806=_0x49bce0;this[_0x3e7806(0x1c9)][_0x3e7806(0x149)](_0x3e7806(0x1a0));const _0x4ecb84=new Map(),_0x222332=this['_commandDisposable']=new _0x3b8586[(_0x3e7806(0x136))]();_0x222332[_0x3e7806(0x1d1)](_0x3b8586[_0x3e7806(0x155)](()=>{const _0x5917fd=_0x3e7806;_0x4ecb84['forEach'](_0x4513de=>_0x4513de[_0x5917fd(0x1ca)]()),_0x4ecb84[_0x5917fd(0x145)]();})),_0x222332[_0x3e7806(0x1d1)](this[_0x3e7806(0x104)]['onCommandExecuted'](_0x59d941=>{const _0x1bb27a=_0x3e7806;var _0xda0066;if(_0x59d941['type']!==_0x3b8586['CommandType'][_0x1bb27a(0x19d)]||!this['_liveShareService']['shouldShareOperation'](_0x59d941['id']))return;const {id:_0x19ff7c}=_0x59d941;let _0x51e36c;_0x4ecb84[_0x1bb27a(0x16c)](_0x19ff7c)?_0x51e36c=_0x4ecb84[_0x1bb27a(0x138)](_0x19ff7c):(_0x51e36c=new _0x2abecc[(_0x1bb27a(0x13b))](),_0x4ecb84[_0x1bb27a(0x1c7)](_0x19ff7c,_0x51e36c),_0x51e36c[_0x1bb27a(0x148)](_0x206d6a[_0x1bb27a(0x11b)]((_0xda0066=this[_0x1bb27a(0x15c)][_0x1bb27a(0x123)](_0x32d44f))!=null?_0xda0066:_0x3efed1,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5ecc3c=>{const _0x61959a=_0x1bb27a;this['_collabSession']['send']({'eventID':_0x286a58[_0x61959a(0x144)][_0x61959a(0x170)],'data':{'unitID':this[_0x61959a(0x1bf)],'operations':{[_0x5ecc3c['id']]:{'id':_0x5ecc3c['id'],'params':JSON[_0x61959a(0x159)](_0x5ecc3c[_0x61959a(0x178)])}}}},this[_0x61959a(0x1bf)]);})),_0x51e36c['next'](_0x59d941);})),this['_liveShareService'][_0x3e7806(0x1ad)](this[_0x3e7806(0x1bf)])[_0x3e7806(0x183)](_0x565bab=>this['_collabSession'][_0x3e7806(0x142)]({'eventID':_0x286a58[_0x3e7806(0x144)][_0x3e7806(0x170)],'data':{'unitID':this[_0x3e7806(0x1bf)],'operations':{[_0x565bab['id']]:{'id':_0x565bab['id'],'params':JSON[_0x3e7806(0x159)](_0x565bab[_0x3e7806(0x178)])}}}},this[_0x3e7806(0x1bf)]));}[_0x49bce0(0x135)](){const _0x5ccd6e=_0x49bce0;var _0x3d7b1c;this[_0x5ccd6e(0x1c9)][_0x5ccd6e(0x149)](_0x5ccd6e(0xf2)),(_0x3d7b1c=this[_0x5ccd6e(0x1bc)])==null||_0x3d7b1c[_0x5ccd6e(0x15f)](),this[_0x5ccd6e(0x1bc)]=null;}[_0x49bce0(0x1d3)](){const _0x5c833c=_0x49bce0;var _0x26eadb;(_0x26eadb=this[_0x5c833c(0x1bc)])==null||_0x26eadb['dispose'](),this['_status$'][_0x5c833c(0x149)](_0x5c833c(0x1c3));}[_0x49bce0(0xf3)](){const _0x1472c5=_0x49bce0;var _0x21c2a5;this[_0x1472c5(0x1c9)][_0x1472c5(0x149)](_0x1472c5(0xf2)),(_0x21c2a5=this[_0x1472c5(0x1bc)])==null||_0x21c2a5[_0x1472c5(0x15f)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x3ca080=_0x49bce0;var _0x3ff734;this['_status$']['next']('not-following'),(_0x3ff734=this[_0x3ca080(0x1bc)])==null||_0x3ff734[_0x3ca080(0x15f)]();}['_handleOperation'](_0x5a2e10){const _0x5dab5a=_0x49bce0;if([_0x5dab5a(0x1a0),_0x5dab5a(0x11f),_0x5dab5a(0x113)][_0x5dab5a(0x1c2)](this[_0x5dab5a(0x14f)])||!_0x5a2e10['data'][_0x5dab5a(0x197)]||_0x5a2e10[_0x5dab5a(0x16f)][_0x5dab5a(0x197)]===this[_0x5dab5a(0x129)][_0x5dab5a(0x1c6)]())return;this[_0x5dab5a(0x14f)]===_0x5dab5a(0xf2)&&this[_0x5dab5a(0x1d3)]();const _0x437c55=_0x5a2e10['data'][_0x5dab5a(0x1cb)];Object['values'](_0x437c55)['forEach'](_0x5872ca=>{const _0x3581be=_0x5dab5a;this[_0x3581be(0x104)][_0x3581be(0x12b)](_0x5872ca['id'],_0x5872ca[_0x3581be(0x178)]?JSON['parse'](_0x5872ca[_0x3581be(0x178)]):null,{'fromCollab':!0x0});});}[_0x49bce0(0x150)](){const _0x38225d=_0x49bce0;var _0x306ecd;this[_0x38225d(0x1c9)]['next'](_0x38225d(0x113)),(_0x306ecd=this['_commandDisposable'])==null||_0x306ecd[_0x38225d(0x15f)]();}[_0x49bce0(0x109)](){const _0x299a8b=_0x49bce0;this[_0x299a8b(0x1c9)][_0x299a8b(0x149)](_0x299a8b(0xf2)),this[_0x299a8b(0x1b5)]();}},_0x519f60[_0x49bce0(0x1c4)]=_0x1fa393([_0x490e9(0x2,_0x3b8586[_0x49bce0(0x1c5)]),_0x490e9(0x3,_0x3b8586['Inject'](_0x29808c)),_0x490e9(0x4,_0x3b8586[_0x49bce0(0x177)])],_0x519f60[_0x49bce0(0x1c4)]);function _0x10db4c(){const _0x1eed3c=_0x49bce0,_0x2c5158=_0x28aa20[_0x1eed3c(0x15b)](_0x519f60['LiveShareController']),_0x7c3383=_0x28aa20[_0x1eed3c(0x15b)](_0x3b8586[_0x1eed3c(0x11d)]),_0x385453=_0x28aa20['useObservable'](()=>_0x7c3383['getCurrentTypeOfUnit$'](_0x3b8586['UniverInstanceType'][_0x1eed3c(0x14a)]),void 0x0,!0x1,[]),[_0x52ea26,_0x299f25]=_0x4fb086[_0x1eed3c(0x1ce)](null),[_0x2212d4,_0x5a9375]=_0x4fb086[_0x1eed3c(0x1ce)](_0x19e733[_0x1eed3c(0x169)]),_0xce88d5=_0x4fb086[_0x1eed3c(0x1ba)](null);return _0x4fb086[_0x1eed3c(0xf8)](()=>(_0x385453&&_0x2c5158[_0x1eed3c(0x19b)](_0x385453[_0x1eed3c(0x131)]())[_0x1eed3c(0x12c)](_0x12a2d0=>{const _0x3c47c6=_0x1eed3c;_0x299f25(_0x12a2d0),_0xce88d5[_0x3c47c6(0x180)]=_0x12a2d0['status$']['subscribe'](_0x2a9f6e=>{_0x5a9375(_0x2a9f6e);});}),()=>{const _0xd95b02=_0x1eed3c;var _0x4ea880;(_0x4ea880=_0xce88d5[_0xd95b02(0x180)])==null||_0x4ea880[_0xd95b02(0xed)](),_0xce88d5[_0xd95b02(0x180)]=null;}),[_0x385453,_0x2c5158]),_0x52ea26?_0x5b8318[_0x1eed3c(0x158)](_0x19dd6f[_0x1eed3c(0x126)],{'align':_0x1eed3c(0x1b4),'disabled':_0x2212d4===_0x19e733['OFFLINE'],'className':_0x1eed3c(0x172),'overlay':_0x5b8318[_0x1eed3c(0x158)](_0x198fea,{'status':_0x2212d4,'coordinator':_0x52ea26}),'children':_0x5b8318[_0x1eed3c(0x158)](_0x1eed3c(0x140),{'className':_0x19dd6f[_0x1eed3c(0x121)](_0x1eed3c(0x1ae),{'univer-cursor-not-allowed':_0x2212d4===_0x19e733[_0x1eed3c(0x171)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2212d4!==_0x19e733['OFFLINE']}),'type':'button','children':_0x5b8318[_0x1eed3c(0x158)](_0xcff326,{'className':_0x1eed3c(0xf4)})})}):null;}function _0x198fea(_0x42811d){const _0x1edf00=_0x49bce0,{status:_0x4e30e4,coordinator:_0x4e1b63}=_0x42811d;switch(_0x4e30e4){case _0x19e733['IDLE']:return _0x5b8318[_0x1edf00(0x158)](_0x2aa89d,{'coordinator':_0x4e1b63});case _0x19e733['FOLLOWING']:return _0x5b8318['jsx'](_0xde0470,{'coordinator':_0x4e1b63});case _0x19e733[_0x1edf00(0x195)]:return _0x5b8318[_0x1edf00(0x158)](_0x17f10b,{'coordinator':_0x4e1b63});case _0x19e733[_0x1edf00(0x171)]:return _0x5b8318['jsx'](_0x36d907,{});case _0x19e733['PRESENTING']:return _0x5b8318[_0x1edf00(0x158)](_0x25693c,{'coordinator':_0x4e1b63});default:return null;}}function _0x2aa89d(_0x122846){const _0x49844f=_0x49bce0,{coordinator:_0x6442e7}=_0x122846;return _0x5b8318['jsxs'](_0x5b8318[_0x49844f(0x199)],{'children':[_0x5b8318['jsx'](_0x49844f(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x49844f(0x147)}),_0x5b8318['jsx'](_0x19dd6f[_0x49844f(0x198)],{'onClick':()=>_0x6442e7[_0x49844f(0x17f)](),'children':_0x49844f(0x19e)})]});}function _0xde0470(_0x5ebd30){const _0x12a1a6=_0x49bce0,{coordinator:_0x226cb6}=_0x5ebd30;return _0x5b8318[_0x12a1a6(0x12d)](_0x5b8318[_0x12a1a6(0x199)],{'children':[_0x5b8318[_0x12a1a6(0x158)](_0x12a1a6(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x12a1a6(0x18d)}),_0x5b8318[_0x12a1a6(0x158)](_0x19dd6f['Button'],{'onClick':()=>_0x226cb6[_0x12a1a6(0x173)](),'children':_0x12a1a6(0xeb)})]});}function _0x17f10b(_0x3b1b64){const _0x36fbfb=_0x49bce0,{coordinator:_0xbcb08a}=_0x3b1b64;return _0x5b8318['jsxs'](_0x5b8318[_0x36fbfb(0x199)],{'children':[_0x5b8318[_0x36fbfb(0x158)](_0x36fbfb(0x160),{'className':_0x36fbfb(0x164),'children':_0x36fbfb(0xfd)}),_0x5b8318[_0x36fbfb(0x158)](_0x19dd6f[_0x36fbfb(0x198)],{'variant':_0x36fbfb(0x13e),'onClick':()=>_0xbcb08a['startFollowing'](),'children':_0x36fbfb(0x102)})]});}function _0x25693c(_0x5cc9ad){const _0x559725=_0x49bce0,{coordinator:_0x304d00}=_0x5cc9ad;return _0x5b8318[_0x559725(0x12d)](_0x5b8318['Fragment'],{'children':[_0x5b8318[_0x559725(0x158)](_0x559725(0x160),{'className':_0x559725(0x164),'children':_0x559725(0x1c0)}),_0x5b8318[_0x559725(0x158)](_0x19dd6f[_0x559725(0x198)],{'variant':_0x559725(0xef),'onClick':()=>_0x304d00[_0x559725(0x1d4)](),'children':_0x559725(0x19f)})]});}function _0x36d907(){const _0x706a38=_0x49bce0;return _0x5b8318[_0x706a38(0x158)](_0x5b8318[_0x706a38(0x199)],{'children':_0x706a38(0x1a5)});}var _0x470e15=Object[_0x49bce0(0x188)],_0xe46705=(_0x37d66b,_0x2a43d0,_0x234364,_0x4ab845)=>{for(var _0x19b742=_0x4ab845>0x1?void 0x0:_0x4ab845?_0x470e15(_0x2a43d0,_0x234364):_0x2a43d0,_0x17ecd5=_0x37d66b['length']-0x1,_0x2a0fbb;_0x17ecd5>=0x0;_0x17ecd5--)(_0x2a0fbb=_0x37d66b[_0x17ecd5])&&(_0x19b742=_0x2a0fbb(_0x19b742)||_0x19b742);return _0x19b742;},_0x195699=(_0x438e92,_0x2acd66)=>(_0x1858c3,_0x45afcd)=>_0x2acd66(_0x1858c3,_0x45afcd,_0x438e92);_0x519f60[_0x49bce0(0x10d)]=class extends _0x3b8586[_0x49bce0(0x130)]{constructor(_0x2d79e9,_0x121514){const _0x4ce287=_0x49bce0;super(),this[_0x4ce287(0x139)]=_0x2d79e9,this['_uiPartsService']=_0x121514,this[_0x4ce287(0x1a7)]();}[_0x49bce0(0x1a7)](){const _0x1b1bc8=_0x49bce0;this[_0x1b1bc8(0x1af)](this['_uiPartsService'][_0x1b1bc8(0x18c)](_0x28aa20[_0x1b1bc8(0x117)][_0x1b1bc8(0x191)],()=>_0x28aa20[_0x1b1bc8(0x122)](_0x10db4c,this[_0x1b1bc8(0x139)])));}},_0x519f60[_0x49bce0(0x10d)]=_0xe46705([_0x195699(0x0,_0x3b8586[_0x49bce0(0x1d9)](_0x3b8586[_0x49bce0(0x1cc)])),_0x195699(0x1,_0x28aa20[_0x49bce0(0xf9)])],_0x519f60[_0x49bce0(0x10d)]);const _0x34a057=_0x49bce0(0x106),_0x2c3a2e={};var _0x5dc112=Object[_0x49bce0(0x188)],_0xbda23c=(_0x5afcf2,_0x2135cb,_0x1f9a40,_0x396eda)=>{const _0xdb2d26=_0x49bce0;for(var _0x4a4aab=_0x396eda>0x1?void 0x0:_0x396eda?_0x5dc112(_0x2135cb,_0x1f9a40):_0x2135cb,_0x158acc=_0x5afcf2[_0xdb2d26(0x167)]-0x1,_0x3ce18a;_0x158acc>=0x0;_0x158acc--)(_0x3ce18a=_0x5afcf2[_0x158acc])&&(_0x4a4aab=_0x3ce18a(_0x4a4aab)||_0x4a4aab);return _0x4a4aab;},_0x3d84c7=(_0x4a0dc4,_0x3f98f6)=>(_0x3b1103,_0x41b65d)=>_0x3f98f6(_0x3b1103,_0x41b65d,_0x4a0dc4);let _0x225fb5=class extends _0x3b8586[_0x49bce0(0x130)]{constructor(_0x4397c0){const _0x391709=_0x49bce0;super(),this['_liveShareService']=_0x4397c0,this[_0x391709(0x1a9)]();}[_0x49bce0(0x1a9)](){const _0x246420=_0x49bce0;[_0x5c66b5['SetZoomRatioOperation']['id'],_0x5c66b5[_0x246420(0x185)]['id'],_0x24cc03['SetWorksheetActiveOperation']['id']][_0x246420(0x183)](_0x3117d6=>{const _0x581bea=_0x246420;this[_0x581bea(0x1af)](this[_0x581bea(0x119)]['registerSharedOperation'](_0x3117d6));});}};_0x225fb5=_0xbda23c([_0x3d84c7(0x0,_0x3b8586[_0x49bce0(0x1d9)](_0x29808c))],_0x225fb5);var _0x4d2a1e=Object[_0x49bce0(0xf0)],_0x3c45bb=Object[_0x49bce0(0x188)],_0x207512=(_0x1ea27a,_0x16d283,_0x2adfb5)=>_0x16d283 in _0x1ea27a?_0x4d2a1e(_0x1ea27a,_0x16d283,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2adfb5}):_0x1ea27a[_0x16d283]=_0x2adfb5,_0xe7da1d=(_0x131c98,_0x598543,_0xd422e2,_0x4c041d)=>{const _0x127191=_0x49bce0;for(var _0x360879=_0x4c041d>0x1?void 0x0:_0x4c041d?_0x3c45bb(_0x598543,_0xd422e2):_0x598543,_0x3d18fb=_0x131c98[_0x127191(0x167)]-0x1,_0x5624ec;_0x3d18fb>=0x0;_0x3d18fb--)(_0x5624ec=_0x131c98[_0x3d18fb])&&(_0x360879=_0x5624ec(_0x360879)||_0x360879);return _0x360879;},_0x36943a=(_0x54ec7f,_0x103949)=>(_0x27a431,_0x58c137)=>_0x103949(_0x27a431,_0x58c137,_0x54ec7f),_0x17c927=(_0x51561a,_0x2852da,_0x1cf353)=>_0x207512(_0x51561a,typeof _0x2852da!=_0x49bce0(0x14c)?_0x2852da+'':_0x2852da,_0x1cf353);const _0xf00184=_0x49bce0(0x156);_0x519f60[_0x49bce0(0x1d8)]=class extends _0x3b8586[_0x49bce0(0x17d)]{constructor(_0xddf32c=_0x2c3a2e,_0x21a0ea,_0x42bf8f){const _0x408e4b=_0x49bce0;super(),this['_config']=_0xddf32c,this[_0x408e4b(0x139)]=_0x21a0ea,this[_0x408e4b(0x15c)]=_0x42bf8f;const {..._0x7b788b}=_0x3b8586[_0x408e4b(0x175)]({},_0x2c3a2e,this[_0x408e4b(0x1a4)]);this['_configService'][_0x408e4b(0xf7)](_0x34a057,_0x7b788b);}['onStarting'](){const _0x403efe=_0x49bce0;_0x3b8586[_0x403efe(0x151)](this[_0x403efe(0x139)],_0x3b8586[_0x403efe(0x1d2)]([[_0x29808c],[_0x519f60[_0x403efe(0x108)]],[_0x225fb5],[_0x519f60[_0x403efe(0x10d)]]],this[_0x403efe(0x1a4)][_0x403efe(0x18f)])),_0x3b8586['touchDependencies'](this[_0x403efe(0x139)],[[_0x225fb5]]);}[_0x49bce0(0x1a1)](){const _0x3c37db=_0x49bce0;_0x3b8586[_0x3c37db(0xff)](this[_0x3c37db(0x139)],[[_0x519f60[_0x3c37db(0x10d)]]]);}},_0x17c927(_0x519f60[_0x49bce0(0x1d8)],_0x49bce0(0x16d),_0x3b8586['UniverInstanceType'][_0x49bce0(0x10b)]),_0x17c927(_0x519f60[_0x49bce0(0x1d8)],_0x49bce0(0x11a),_0xf00184),_0x519f60[_0x49bce0(0x1d8)]=_0xe7da1d([_0x3b8586[_0x49bce0(0x17b)](_0x38f205[_0x49bce0(0x118)]),_0x36943a(0x1,_0x3b8586['Inject'](_0x3b8586[_0x49bce0(0x1cc)])),_0x36943a(0x2,_0x3b8586[_0x49bce0(0x1c5)])],_0x519f60[_0x49bce0(0x1d8)]),_0x519f60['LiveShare']=_0x10db4c,_0x519f60[_0x49bce0(0x152)]=_0x29808c,_0x519f60['LiveShareStatus']=_0x19e733,Object[_0x49bce0(0xf0)](_0x519f60,Symbol[_0x49bce0(0x179)],{'value':_0x49bce0(0x1d0)});}));
|
|
1
|
+
function _0x5b39(){const _0x40d6f2=['LiveShareService','LiveShareIcon','_startFollowing','replace','colorChannel1','react','useRef','You\x27re\x20following\x20the\x20presenter','8904550wxNCjn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toStringTag','idSuffix','_handleOnline','DisposableCollection','includes','onStarting','_collabSessionService','useState','getInitialStates','SetWorksheetActiveOperation','mutations','connectInjector','_init','svg','path','data','Button','fill','get','_handleTerminate','attrs','presenting','current','CommandType','getTypeOfUnitAdded$','0\x200\x2017\x2017','add','UniverProCollaborationClient','_mountLiveShare','UniverInstanceType','getStatus','OFFLINE','toDisposable','_injector','LiveShareStatus','end','getOwnPropertyDescriptor','SessionStatus','_unitID','ONLINE','SetZoomRatioOperation','mask','Injector','send','IUniverInstanceService','react/jsx-runtime','2472348qUqGDB','Inject','getMemberID','Disposable','type','@univerjs/ui','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','rxjs/operators','length','offline','Dropdown','_uiPartsService','CollaborationSessionService','presenter','@univerjs-pro/collaboration','defs','tryStartPresenting','UniverCollaborationClientPlugin','Present\x20this\x20document','_handleNewHost','2594320rzfeww','createElement','_entities','subscribe','Start','Stop\x20following','init','disposeWithMe','shouldShareOperation','requireSession','_fetchOperations','jsxs','forwardRef','pluginName','_handleNewChangeSets','tag','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','text','startFollowing','unsubscribe','LIVESHARE_FETCH_OPERATIONS','dispose','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','LiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','@univerjs-pro/collaboration-client','forEach','children','LIVESHARE_OPERATION','dispose$','UniverUi','executeCommand','stopPresenting','map','complete','sessionStatus$','function','_commandDisposable','_status','React','4lOuQTe','string','not-following','following','idle','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','UNIVER_SHEET','948846zlupfN','exports','InsertSheetMutation','parseProtocolChangeset','_collabSession','getTypeOfUnitDisposed$','UniverLiveSharePlugin','@univerjs/design','http://www.w3.org/2000/svg','live-share-icon','jsx','stopFollowing','PRESENTING','BehaviorSubject','_commandService','params','CollaborationEvent','_presenter','getValue','setConfig','You\x27are\x20offline.','has','LIVESHARE_TERMINATE','NOT_FOLLOWING','takeUntil','use','getLiveShareCoordinator','_handleOffline','univer-size-4','2260384oNVuAW','IConfigService','useObservable','RxDisposable','operations','FOLLOWING','_reporters','live-share.config','_liveShareService','displayName','stringify','_univerInstanceService','entries','touchDependencies','currentColor','set','1em','SetScrollOperation','defineProperty','21ASoUSy','@univerjs/sheets','DesktopLiveShareController','ICommandService','then','unitId','OPERATION','IDLE','getUnitId','amd','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_beIdle','pipe','Start\x20following','status$','UniverProCollaboration','UniverSheetsUi','BuiltInUIPart','_config','_status$','sheet','_handleOperation','rxjs','_sharedOperations','_stopFollowing','event$','onRendered','UNIVER_LIVE_SHARE_PLUGIN','useDependency','delete','onCommandExecuted','trim','@univerjs/sheets-ui','HEADER_MENU','next','div','UniverSheets','find','object','defIds','operators','Fragment','LIVESHARE_NEW_HOST','Plugin','7722702aMYpSI','DependentOn','reverse','_configService','IUIPartsService','registerComponent','@univerjs/core','UniverIcon','UniverDesign','1747631eFyxKL','button','_stopPresenting','registerSharedOperation','NEW_CHANGESETS'];_0x5b39=function(){return _0x40d6f2;};return _0x5b39();}function _0x1903(_0x3732c3,_0x6aeb50){const _0x5b395d=_0x5b39();return _0x1903=function(_0x1903bd,_0x544756){_0x1903bd=_0x1903bd-0x6a;let _0x13767f=_0x5b395d[_0x1903bd];return _0x13767f;},_0x1903(_0x3732c3,_0x6aeb50);}(function(_0x1bfe47,_0x4ffefb){const _0x394fab=_0x1903,_0x1ff624=_0x1bfe47();while(!![]){try{const _0x3f1d4f=parseInt(_0x394fab(0x9c))/0x1+-parseInt(_0x394fab(0x117))/0x2*(parseInt(_0x394fab(0x11f))/0x3)+-parseInt(_0x394fab(0x13c))/0x4+parseInt(_0x394fab(0xa9))/0x5+parseInt(_0x394fab(0xd9))/0x6+-parseInt(_0x394fab(0x14f))/0x7*(parseInt(_0x394fab(0xee))/0x8)+-parseInt(_0x394fab(0x93))/0x9;if(_0x3f1d4f===_0x4ffefb)break;else _0x1ff624['push'](_0x1ff624['shift']());}catch(_0x29873c){_0x1ff624['push'](_0x1ff624['shift']());}}}(_0x5b39,0xdea77),function(_0x3288f9,_0x2737c8){const _0x94c6c3=_0x1903;typeof exports==_0x94c6c3(0x8d)&&typeof module<'u'?_0x2737c8(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==_0x94c6c3(0x113)&&define[_0x94c6c3(0x6e)]?define([_0x94c6c3(0x120),_0x94c6c3(0x99),_0x94c6c3(0xde),_0x94c6c3(0xd8),_0x94c6c3(0x126),_0x94c6c3(0xa6),_0x94c6c3(0xe8),_0x94c6c3(0x108),_0x94c6c3(0x150),'rxjs',_0x94c6c3(0xe1),_0x94c6c3(0x87)],_0x2737c8):(_0x3288f9=typeof globalThis<'u'?globalThis:_0x3288f9||self,_0x2737c8(_0x3288f9['UniverProLiveShare']={},_0x3288f9['UniverCore'],_0x3288f9[_0x94c6c3(0x10d)],_0x3288f9[_0x94c6c3(0x116)],_0x3288f9[_0x94c6c3(0x9b)],_0x3288f9['React'],_0x3288f9[_0x94c6c3(0x76)],_0x3288f9[_0x94c6c3(0xc6)],_0x3288f9[_0x94c6c3(0x8b)],_0x3288f9[_0x94c6c3(0x7d)],_0x3288f9['rxjs'][_0x94c6c3(0x8f)],_0x3288f9[_0x94c6c3(0x77)]));}(this,function(_0x262252,_0x3cb17c,_0x404ca8,_0x265310,_0x51144a,_0x4a444c,_0x17a8ce,_0x3c93ca,_0x4db795,_0x2edef2,_0x18ed04,_0x1ac73e){'use strict';const _0x5f25e0=_0x1903;var _0x545e73=Object['defineProperty'],_0x24ccef=(_0x2776c4,_0x474e49,_0x2d95e9)=>_0x474e49 in _0x2776c4?_0x545e73(_0x2776c4,_0x474e49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d95e9}):_0x2776c4[_0x474e49]=_0x2d95e9,_0x529b2e=(_0x33313b,_0x277aec,_0x767cf)=>_0x24ccef(_0x33313b,typeof _0x277aec!=_0x5f25e0(0xdf)?_0x277aec+'':_0x277aec,_0x767cf);function _0x2ffd11({ref:_0x2daaf6,..._0x2cdbf8}){const _0x350f1e=_0x5f25e0,{icon:_0x598827,id:_0x4bfd75,className:_0x4cbaa6,extend:_0x36e689,..._0x3d3ea1}=_0x2cdbf8,_0x4426eb=('univerjs-icon\x20univerjs-icon-'+_0x4bfd75+'\x20'+(_0x4cbaa6||''))[_0x350f1e(0x86)](),_0x1c2336=_0x4a444c['useRef']('_'+_0x3dcca3());return _0x253cfc(_0x598827,''+_0x4bfd75,{'defIds':_0x598827[_0x350f1e(0x8e)],'idSuffix':_0x1c2336['current']},{'ref':_0x2daaf6,'className':_0x4426eb,..._0x3d3ea1},_0x36e689);}function _0x253cfc(_0x451c54,_0x5576b8,_0x3923d0,_0x58b52e,_0x2ff4d0){const _0x1ce6aa=_0x5f25e0;return _0x4a444c[_0x1ce6aa(0xef)](_0x451c54[_0x1ce6aa(0xfd)],{'key':_0x5576b8,..._0x4fac99(_0x451c54,_0x3923d0,_0x2ff4d0),..._0x58b52e},(_0x3cf7fe(_0x451c54,_0x3923d0)[_0x1ce6aa(0x10a)]||[])[_0x1ce6aa(0x110)]((_0x5dab10,_0x2f74ba)=>_0x253cfc(_0x5dab10,_0x5576b8+'-'+_0x451c54[_0x1ce6aa(0xfd)]+'-'+_0x2f74ba,_0x3923d0,void 0x0,_0x2ff4d0)));}function _0x4fac99(_0x48f7a3,_0x4aadde,_0x6a4935){const _0x1c33a1=_0x5f25e0,_0x21a9a0={..._0x48f7a3[_0x1c33a1(0xbf)]};_0x6a4935!=null&&_0x6a4935[_0x1c33a1(0xa5)]&&_0x21a9a0[_0x1c33a1(0xbc)]===_0x1c33a1(0xa5)&&(_0x21a9a0[_0x1c33a1(0xbc)]=_0x6a4935[_0x1c33a1(0xa5)]),_0x48f7a3[_0x1c33a1(0xfd)]==='mask'&&_0x21a9a0['id']&&(_0x21a9a0['id']=_0x21a9a0['id']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)['forEach'](([_0x102c7f,_0x581c4f])=>{const _0x3a1cf9=_0x1c33a1;_0x102c7f===_0x3a1cf9(0xd4)&&typeof _0x581c4f=='string'&&(_0x21a9a0[_0x102c7f]=_0x581c4f[_0x3a1cf9(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde['idSuffix']+')'));});const {defIds:_0x2dfdc5}=_0x4aadde;return!_0x2dfdc5||_0x2dfdc5[_0x1c33a1(0xe2)]===0x0||(_0x48f7a3['tag']===_0x1c33a1(0x138)&&_0x21a9a0['xlink:href']&&(_0x21a9a0['xlink:href']=_0x21a9a0['xlink:href']+_0x4aadde[_0x1c33a1(0xac)]),Object[_0x1c33a1(0x148)](_0x21a9a0)[_0x1c33a1(0x109)](([_0x383783,_0x246af6])=>{const _0x6be342=_0x1c33a1;typeof _0x246af6=='string'&&(_0x21a9a0[_0x383783]=_0x246af6[_0x6be342(0xa4)](/url\(#(.*)\)/,'url(#$1'+_0x4aadde[_0x6be342(0xac)]+')'));})),_0x21a9a0;}function _0x3cf7fe(_0xa485e5,_0x2b0768){const _0x3ecfe2=_0x5f25e0;var _0x2d73ed;const {defIds:_0x331629}=_0x2b0768;return!_0x331629||_0x331629[_0x3ecfe2(0xe2)]===0x0?_0xa485e5:_0xa485e5[_0x3ecfe2(0xfd)]===_0x3ecfe2(0xe9)&&((_0x2d73ed=_0xa485e5[_0x3ecfe2(0x10a)])!=null&&_0x2d73ed['length'])?{..._0xa485e5,'children':_0xa485e5[_0x3ecfe2(0x10a)]['map'](_0xeb0ddf=>typeof _0xeb0ddf[_0x3ecfe2(0xbf)]['id']==_0x3ecfe2(0x118)&&_0x331629&&_0x331629[_0x3ecfe2(0xaf)](_0xeb0ddf[_0x3ecfe2(0xbf)]['id'])?{..._0xeb0ddf,'attrs':{..._0xeb0ddf[_0x3ecfe2(0xbf)],'id':_0xeb0ddf[_0x3ecfe2(0xbf)]['id']+_0x2b0768[_0x3ecfe2(0xac)]}}:_0xeb0ddf)}:_0xa485e5;}function _0x3dcca3(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x2ffd11[_0x5f25e0(0x145)]=_0x5f25e0(0x9a);const _0x25d6e4={'tag':_0x5f25e0(0xb8),'attrs':{'xmlns':_0x5f25e0(0x127),'fill':'none','viewBox':_0x5f25e0(0xc4),'width':_0x5f25e0(0x14c),'height':_0x5f25e0(0x14c)},'children':[{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'d':_0x5f25e0(0xfe)}},{'tag':_0x5f25e0(0xb9),'attrs':{'fill':_0x5f25e0(0x14a),'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':'evenodd'}}]},_0x591cf0=_0x4a444c[_0x5f25e0(0xfa)](function(_0x5e2075,_0x1bba69){const _0x269b51=_0x5f25e0;return _0x4a444c[_0x269b51(0xef)](_0x2ffd11,Object['assign']({},_0x5e2075,{'id':_0x269b51(0x128),'ref':_0x1bba69,'icon':_0x25d6e4}));});_0x591cf0[_0x5f25e0(0x145)]=_0x5f25e0(0xa2);class _0x426902 extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(){const _0x4546bb=_0x5f25e0;super(...arguments),_0x529b2e(this,'_sharedOperations',new Set()),_0x529b2e(this,_0x4546bb(0x142),new Set());}[_0x5f25e0(0x9f)](_0x2f1357){const _0x5d98a6=_0x5f25e0;return this[_0x5d98a6(0x7e)]['add'](_0x2f1357),_0x3cb17c[_0x5d98a6(0xcb)](()=>this[_0x5d98a6(0x7e)]['delete'](_0x2f1357));}['registerInitialStateReporter'](_0x3a605c){const _0x267f30=_0x5f25e0;return this[_0x267f30(0x142)][_0x267f30(0xc5)](_0x3a605c),_0x3cb17c[_0x267f30(0xcb)](()=>this['_reporters'][_0x267f30(0x84)](_0x3a605c));}[_0x5f25e0(0xf6)](_0x191b41){const _0x3a0218=_0x5f25e0;return this[_0x3a0218(0x7e)][_0x3a0218(0x134)](_0x191b41);}[_0x5f25e0(0xb3)](_0x5c6cbb){const _0x3ffecf=_0x5f25e0;return Array['from'](this[_0x3ffecf(0x142)])['map'](_0x245b55=>_0x245b55(_0x5c6cbb));}}var _0x1111f0=Object[_0x5f25e0(0xcf)],_0x275c2f=(_0x171ca5,_0x640c3a,_0x2f95f9,_0x4250a2)=>{const _0x41ce81=_0x5f25e0;for(var _0x290d6c=_0x4250a2>0x1?void 0x0:_0x4250a2?_0x1111f0(_0x640c3a,_0x2f95f9):_0x640c3a,_0x5ea9a0=_0x171ca5[_0x41ce81(0xe2)]-0x1,_0x1a84d3;_0x5ea9a0>=0x0;_0x5ea9a0--)(_0x1a84d3=_0x171ca5[_0x5ea9a0])&&(_0x290d6c=_0x1a84d3(_0x290d6c)||_0x290d6c);return _0x290d6c;},_0x9efa8f=(_0x54b3f7,_0x39d04f)=>(_0x5844e7,_0x2cc05e)=>_0x39d04f(_0x5844e7,_0x2cc05e,_0x54b3f7);_0x262252[_0x5f25e0(0x11d)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x43c909,_0x565fa3,_0x1010ce){const _0x469fa8=_0x5f25e0;super(),_0x529b2e(this,_0x469fa8(0xf0),new Map()),(this[_0x469fa8(0x147)]=_0x43c909,this[_0x469fa8(0xcc)]=_0x565fa3,this[_0x469fa8(0xb1)]=_0x1010ce,this[_0x469fa8(0xb7)]());}async[_0x5f25e0(0x139)](_0x3f7c31){const _0x21ba7f=_0x5f25e0;return this[_0x21ba7f(0xf0)][_0x21ba7f(0x134)](_0x3f7c31)||await this[_0x21ba7f(0x107)](_0x3f7c31),this[_0x21ba7f(0xf0)]['get'](_0x3f7c31);}['getLiveShareCoordinatorSync'](_0x1fd24a){const _0x459b4c=_0x5f25e0;var _0x1614c1;return(_0x1614c1=this['_entities'][_0x459b4c(0xbd)](_0x1fd24a))!=null?_0x1614c1:null;}[_0x5f25e0(0xb7)](){const _0x1496bb=_0x5f25e0;this[_0x1496bb(0x147)][_0x1496bb(0xc3)](_0x3cb17c['UniverInstanceType'][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04['takeUntil'](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](async _0x55605e=>{const _0x57950f=_0x1496bb,_0x4cd952=_0x55605e['getUnitId']();this[_0x57950f(0xf0)]['has'](_0x4cd952)||this[_0x57950f(0x107)](_0x4cd952);}),this['_univerInstanceService'][_0x1496bb(0x124)](_0x3cb17c[_0x1496bb(0xc8)][_0x1496bb(0x11e)])[_0x1496bb(0x73)](_0x18ed04[_0x1496bb(0x137)](this[_0x1496bb(0x10c)]))[_0x1496bb(0xf1)](_0x778022=>{const _0x4fedb5=_0x1496bb,_0xcbe6d1=_0x778022[_0x4fedb5(0x6d)](),_0x1e917e=this[_0x4fedb5(0xf0)][_0x4fedb5(0xbd)](_0xcbe6d1);_0x1e917e==null||_0x1e917e[_0x4fedb5(0x103)]();});}async[_0x5f25e0(0x107)](_0x3daba9){const _0x2b27da=_0x5f25e0,_0xd0fb72=await this['_collabSessionService'][_0x2b27da(0xf7)](_0x3daba9),_0x1d6e64=this[_0x2b27da(0xcc)]['createInstance'](_0x262252['LiveShareCoordinator'],_0x3daba9,_0xd0fb72);return _0x1d6e64['init'](),this[_0x2b27da(0xf0)]['set'](_0x3daba9,_0x1d6e64),_0x1d6e64;}},_0x262252['LiveShareController']=_0x275c2f([_0x9efa8f(0x0,_0x3cb17c[_0x5f25e0(0xd7)]),_0x9efa8f(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c['Injector'])),_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0xda)](_0x3c93ca[_0x5f25e0(0xe6)]))],_0x262252['LiveShareController']);var _0x1e5c53=(_0x2444fb=>(_0x2444fb[_0x5f25e0(0xca)]=_0x5f25e0(0xe3),_0x2444fb['IDLE']=_0x5f25e0(0x11b),_0x2444fb[_0x5f25e0(0x141)]=_0x5f25e0(0x11a),_0x2444fb[_0x5f25e0(0x136)]=_0x5f25e0(0x119),_0x2444fb[_0x5f25e0(0x12b)]=_0x5f25e0(0xc0),_0x2444fb))(_0x1e5c53||{});const _0xc62f15=_0x5f25e0(0x70),_0x456c9f=0xc8;_0x262252[_0x5f25e0(0x105)]=class extends _0x3cb17c[_0x5f25e0(0x13f)]{constructor(_0x55506b,_0x19f8cd,_0x5c1604,_0x48d011,_0x223789){const _0x3f1421=_0x5f25e0;super(),_0x529b2e(this,_0x3f1421(0x7a),new _0x2edef2[(_0x3f1421(0x12c))](_0x3f1421(0x11b))),_0x529b2e(this,_0x3f1421(0x75),this[_0x3f1421(0x7a)]['asObservable']()),_0x529b2e(this,_0x3f1421(0xb7),!0x1),_0x529b2e(this,_0x3f1421(0x114),null),_0x529b2e(this,_0x3f1421(0x130),null),(this[_0x3f1421(0xd1)]=_0x55506b,this['_collabSession']=_0x19f8cd,this[_0x3f1421(0x96)]=_0x5c1604,this['_liveShareService']=_0x48d011,this[_0x3f1421(0x12d)]=_0x223789);}get[_0x5f25e0(0x115)](){const _0x51f5ca=_0x5f25e0;return this[_0x51f5ca(0x7a)][_0x51f5ca(0x131)]();}[_0x5f25e0(0x103)](){const _0xef862=_0x5f25e0;var _0x561980;(_0x561980=this[_0xef862(0x114)])==null||_0x561980[_0xef862(0x103)](),this[_0xef862(0x7a)][_0xef862(0x89)](_0xef862(0x11b)),this[_0xef862(0x7a)][_0xef862(0x111)]();}[_0x5f25e0(0xc9)](){const _0x25c014=_0x5f25e0;return this[_0x25c014(0x115)];}[_0x5f25e0(0xf4)](){const _0x2fa4b3=_0x5f25e0;this['_init']||(this[_0x2fa4b3(0xb7)]=!0x0,this[_0x2fa4b3(0x123)][_0x2fa4b3(0x112)][_0x2fa4b3(0x73)](_0x18ed04[_0x2fa4b3(0x137)](this[_0x2fa4b3(0x10c)]))['subscribe'](_0x21f16c=>{const _0x496b86=_0x2fa4b3;switch(_0x21f16c){case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xca)]:this[_0x496b86(0x13a)]();break;case _0x3c93ca[_0x496b86(0xd0)][_0x496b86(0xd2)]:this[_0x496b86(0xad)]();break;}}),this[_0x2fa4b3(0x123)][_0x2fa4b3(0x80)][_0x2fa4b3(0x73)](_0x18ed04['takeUntil'](this[_0x2fa4b3(0x10c)]))[_0x2fa4b3(0xf1)](_0x527858=>{const _0x40a1a0=_0x2fa4b3,{eventID:_0x4ed0dd}=_0x527858;switch(_0x4ed0dd){case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x91)]:this['_handleNewHost'](_0x527858);break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0x10b)]:this[_0x40a1a0(0x7c)](_0x527858);break;case _0x17a8ce['CollaborationEvent'][_0x40a1a0(0x135)]:this['_handleTerminate']();break;case _0x17a8ce[_0x40a1a0(0x12f)][_0x40a1a0(0xa0)]:this[_0x40a1a0(0xfc)](_0x527858);break;}}));}[_0x5f25e0(0xea)](){const _0x12e5ca=_0x5f25e0;this[_0x12e5ca(0x123)]['send']({'eventID':_0x17a8ce[_0x12e5ca(0x12f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x12e5ca(0x123)][_0x12e5ca(0xdb)]()}},this[_0x12e5ca(0xd1)]);}[_0x5f25e0(0x10f)](){const _0x177e4c=_0x5f25e0;this[_0x177e4c(0x115)]==='presenting'&&(this[_0x177e4c(0x7a)][_0x177e4c(0x89)](_0x177e4c(0x11b)),this[_0x177e4c(0x123)][_0x177e4c(0xd6)]({'eventID':_0x17a8ce[_0x177e4c(0x12f)][_0x177e4c(0x135)],'data':{'unitID':this[_0x177e4c(0xd1)]}},this[_0x177e4c(0xd1)]));}[_0x5f25e0(0x100)](){const _0x41e81d=_0x5f25e0;this[_0x41e81d(0x115)]===_0x41e81d(0x119)&&(this[_0x41e81d(0x7a)]['next'](_0x41e81d(0x11a)),this[_0x41e81d(0xa3)]());}[_0x5f25e0(0x12a)](){const _0x47e287=_0x5f25e0;this[_0x47e287(0x115)]===_0x47e287(0x11a)&&this[_0x47e287(0x7f)]();}[_0x5f25e0(0xed)](_0x337006){const _0x1e9671=_0x5f25e0,{presenter:_0x39358b}=_0x337006[_0x1e9671(0xba)],_0x272292=this[_0x1e9671(0x123)][_0x1e9671(0xdb)]();this[_0x1e9671(0x130)]=_0x39358b,_0x39358b===_0x272292?(this[_0x1e9671(0x7f)](),this[_0x1e9671(0x6f)]()):this[_0x1e9671(0x115)]!==_0x1e9671(0x119)&&(this[_0x1e9671(0x9e)](),this[_0x1e9671(0xa3)]());}[_0x5f25e0(0xf8)](){const _0x5a465a=_0x5f25e0,_0x427cba={'eventID':_0x17a8ce[_0x5a465a(0x12f)][_0x5a465a(0x102)]};this[_0x5a465a(0x123)]['send'](_0x427cba,this[_0x5a465a(0xd1)]);}[_0x5f25e0(0xbe)](){const _0x1868ff=_0x5f25e0;this[_0x1868ff(0x130)]=null,this['_status']!=='presenting'&&this[_0x1868ff(0x72)]();}[_0x5f25e0(0xfc)](_0x2be0f3){const _0xf6c492=_0x5f25e0;if(this[_0xf6c492(0x115)]===_0xf6c492(0x11a)&&this[_0xf6c492(0x130)]===_0x2be0f3[_0xf6c492(0xba)]['memberID']){const _0xbf2447=_0x17a8ce[_0xf6c492(0x122)](_0x2be0f3['data'])[_0xf6c492(0xb5)][_0xf6c492(0x95)]()[_0xf6c492(0x8c)](_0x508463=>_0x508463['id']===_0x4db795[_0xf6c492(0x121)]['id']);if(_0xbf2447){const _0x599f70=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x6a)],_0x1727fc=_0xbf2447[_0xf6c492(0x12e)][_0xf6c492(0x7b)]['id'];setTimeout(()=>{const _0x4264a6=_0xf6c492;this[_0x4264a6(0x12d)][_0x4264a6(0x10e)](_0x4db795[_0x4264a6(0xb4)]['id'],{'unitId':_0x599f70,'subUnitId':_0x1727fc},{'fromCollab':!0x0});});}}}[_0x5f25e0(0x6f)](){const _0x126113=_0x5f25e0;this[_0x126113(0x7a)][_0x126113(0x89)](_0x126113(0xc0));const _0x58285c=new Map(),_0x33925f=this['_commandDisposable']=new _0x3cb17c[(_0x126113(0xae))]();_0x33925f['add'](_0x3cb17c['toDisposable'](()=>{const _0x20e771=_0x126113;_0x58285c[_0x20e771(0x109)](_0x3700ad=>_0x3700ad['complete']()),_0x58285c['clear']();})),_0x33925f[_0x126113(0xc5)](this[_0x126113(0x12d)][_0x126113(0x85)](_0x41e6c3=>{const _0x1408c2=_0x126113;var _0x2aee3e;if(_0x41e6c3[_0x1408c2(0xdd)]!==_0x3cb17c[_0x1408c2(0xc2)][_0x1408c2(0x6b)]||!this['_liveShareService'][_0x1408c2(0xf6)](_0x41e6c3['id']))return;const {id:_0x5d7b81}=_0x41e6c3;let _0x5de883;_0x58285c[_0x1408c2(0x134)](_0x5d7b81)?_0x5de883=_0x58285c['get'](_0x5d7b81):(_0x5de883=new _0x2edef2['Subject'](),_0x58285c[_0x1408c2(0x14b)](_0x5d7b81,_0x5de883),_0x5de883['pipe'](_0x18ed04['throttleTime']((_0x2aee3e=this[_0x1408c2(0x96)]['getConfig'](_0xc62f15))!=null?_0x2aee3e:_0x456c9f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1408c2(0xf1)](_0x22e384=>{const _0x34936b=_0x1408c2;this[_0x34936b(0x123)][_0x34936b(0xd6)]({'eventID':_0x17a8ce[_0x34936b(0x12f)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x34936b(0xd1)],'operations':{[_0x22e384['id']]:{'id':_0x22e384['id'],'params':JSON[_0x34936b(0x146)](_0x22e384[_0x34936b(0x12e)])}}}},this[_0x34936b(0xd1)]);})),_0x5de883[_0x1408c2(0x89)](_0x41e6c3);})),this['_liveShareService'][_0x126113(0xb3)](this[_0x126113(0xd1)])[_0x126113(0x109)](_0x5de72d=>this[_0x126113(0x123)][_0x126113(0xd6)]({'eventID':_0x17a8ce[_0x126113(0x12f)][_0x126113(0x10b)],'data':{'unitID':this[_0x126113(0xd1)],'operations':{[_0x5de72d['id']]:{'id':_0x5de72d['id'],'params':JSON[_0x126113(0x146)](_0x5de72d[_0x126113(0x12e)])}}}},this[_0x126113(0xd1)]));}[_0x5f25e0(0x9e)](){const _0x1348f3=_0x5f25e0;var _0x24f639;this[_0x1348f3(0x7a)][_0x1348f3(0x89)]('idle'),(_0x24f639=this[_0x1348f3(0x114)])==null||_0x24f639[_0x1348f3(0x103)](),this['_commandDisposable']=null;}[_0x5f25e0(0xa3)](){const _0x15f697=_0x5f25e0;var _0x9627c7;(_0x9627c7=this['_commandDisposable'])==null||_0x9627c7[_0x15f697(0x103)](),this[_0x15f697(0x7a)][_0x15f697(0x89)](_0x15f697(0x11a));}[_0x5f25e0(0x72)](){const _0x26f735=_0x5f25e0;var _0x460f6d;this[_0x26f735(0x7a)][_0x26f735(0x89)](_0x26f735(0x11b)),(_0x460f6d=this[_0x26f735(0x114)])==null||_0x460f6d[_0x26f735(0x103)](),this[_0x26f735(0x114)]=null;}['_stopFollowing'](){const _0x3703e5=_0x5f25e0;var _0x156119;this[_0x3703e5(0x7a)][_0x3703e5(0x89)](_0x3703e5(0x119)),(_0x156119=this['_commandDisposable'])==null||_0x156119['dispose']();}[_0x5f25e0(0x7c)](_0x7b4a3){const _0x8c7db6=_0x5f25e0;if(['presenting',_0x8c7db6(0x119),_0x8c7db6(0xe3)][_0x8c7db6(0xaf)](this['_status'])||!_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]||_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0xe7)]===this[_0x8c7db6(0x123)]['getMemberID']())return;this[_0x8c7db6(0x115)]===_0x8c7db6(0x11b)&&this[_0x8c7db6(0xa3)]();const _0x4c6c3b=_0x7b4a3[_0x8c7db6(0xba)][_0x8c7db6(0x140)];Object['values'](_0x4c6c3b)[_0x8c7db6(0x109)](_0x5f1862=>{const _0x314a8b=_0x8c7db6;this[_0x314a8b(0x12d)][_0x314a8b(0x10e)](_0x5f1862['id'],_0x5f1862['params']?JSON['parse'](_0x5f1862['params']):null,{'fromCollab':!0x0});});}[_0x5f25e0(0x13a)](){const _0xef360b=_0x5f25e0;var _0x4d843c;this[_0xef360b(0x7a)][_0xef360b(0x89)](_0xef360b(0xe3)),(_0x4d843c=this['_commandDisposable'])==null||_0x4d843c['dispose']();}[_0x5f25e0(0xad)](){const _0x516b71=_0x5f25e0;this[_0x516b71(0x7a)][_0x516b71(0x89)](_0x516b71(0x11b)),this[_0x516b71(0xf8)]();}},_0x262252[_0x5f25e0(0x105)]=_0x275c2f([_0x9efa8f(0x2,_0x3cb17c[_0x5f25e0(0x13d)]),_0x9efa8f(0x3,_0x3cb17c[_0x5f25e0(0xda)](_0x426902)),_0x9efa8f(0x4,_0x3cb17c[_0x5f25e0(0x152)])],_0x262252['LiveShareCoordinator']);function _0x1daf63(){const _0x429b1b=_0x5f25e0,_0x213fb6=_0x404ca8['useDependency'](_0x262252[_0x429b1b(0x11d)]),_0x182c27=_0x404ca8[_0x429b1b(0x83)](_0x3cb17c[_0x429b1b(0xd7)]),_0x5acdf2=_0x404ca8[_0x429b1b(0x13e)](()=>_0x182c27['getCurrentTypeOfUnit$'](_0x3cb17c['UniverInstanceType'][_0x429b1b(0x11e)]),void 0x0,!0x1,[]),[_0x5de0d8,_0x266787]=_0x4a444c['useState'](null),[_0x550941,_0x2688cd]=_0x4a444c[_0x429b1b(0xb2)](_0x1e5c53[_0x429b1b(0x6c)]),_0x3de193=_0x4a444c[_0x429b1b(0xa7)](null);return _0x4a444c['useEffect'](()=>(_0x5acdf2&&_0x213fb6[_0x429b1b(0x139)](_0x5acdf2[_0x429b1b(0x6d)]())[_0x429b1b(0x153)](_0xa5b34a=>{const _0x2dc0eb=_0x429b1b;_0x266787(_0xa5b34a),_0x3de193[_0x2dc0eb(0xc1)]=_0xa5b34a[_0x2dc0eb(0x75)][_0x2dc0eb(0xf1)](_0x2c3f19=>{_0x2688cd(_0x2c3f19);});}),()=>{const _0x3409d4=_0x429b1b;var _0x3ca729;(_0x3ca729=_0x3de193[_0x3409d4(0xc1)])==null||_0x3ca729[_0x3409d4(0x101)](),_0x3de193[_0x3409d4(0xc1)]=null;}),[_0x5acdf2,_0x213fb6]),_0x5de0d8?_0x265310[_0x429b1b(0x129)](_0x51144a[_0x429b1b(0xe4)],{'align':_0x429b1b(0xce),'disabled':_0x550941===_0x1e5c53[_0x429b1b(0xca)],'className':_0x429b1b(0x104),'overlay':_0x265310[_0x429b1b(0x129)](_0x5e6777,{'status':_0x550941,'coordinator':_0x5de0d8}),'children':_0x265310[_0x429b1b(0x129)](_0x429b1b(0x9d),{'className':_0x51144a['clsx'](_0x429b1b(0xaa),{'univer-cursor-not-allowed':_0x550941===_0x1e5c53['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550941!==_0x1e5c53[_0x429b1b(0xca)]}),'type':_0x429b1b(0x9d),'children':_0x265310[_0x429b1b(0x129)](_0x591cf0,{'className':_0x429b1b(0x13b)})})}):null;}function _0x5e6777(_0x3ca68a){const _0x325272=_0x5f25e0,{status:_0x2ddd4d,coordinator:_0x27e98b}=_0x3ca68a;switch(_0x2ddd4d){case _0x1e5c53[_0x325272(0x6c)]:return _0x265310[_0x325272(0x129)](_0x1a1731,{'coordinator':_0x27e98b});case _0x1e5c53['FOLLOWING']:return _0x265310['jsx'](_0x26406b,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0x136)]:return _0x265310[_0x325272(0x129)](_0x3bfb4f,{'coordinator':_0x27e98b});case _0x1e5c53[_0x325272(0xca)]:return _0x265310[_0x325272(0x129)](_0x3910b6,{});case _0x1e5c53[_0x325272(0x12b)]:return _0x265310[_0x325272(0x129)](_0x54d058,{'coordinator':_0x27e98b});default:return null;}}function _0x1a1731(_0x54d829){const _0x385a75=_0x5f25e0,{coordinator:_0x285988}=_0x54d829;return _0x265310[_0x385a75(0xf9)](_0x265310[_0x385a75(0x90)],{'children':[_0x265310[_0x385a75(0x129)](_0x385a75(0x8a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x385a75(0xec)}),_0x265310['jsx'](_0x51144a[_0x385a75(0xbb)],{'onClick':()=>_0x285988[_0x385a75(0xea)](),'children':_0x385a75(0xf2)})]});}function _0x26406b(_0x3f7e05){const _0x3dcf56=_0x5f25e0,{coordinator:_0x34cba1}=_0x3f7e05;return _0x265310['jsxs'](_0x265310[_0x3dcf56(0x90)],{'children':[_0x265310['jsx'](_0x3dcf56(0x8a),{'className':_0x3dcf56(0xe0),'children':_0x3dcf56(0xa8)}),_0x265310[_0x3dcf56(0x129)](_0x51144a['Button'],{'onClick':()=>_0x34cba1[_0x3dcf56(0x12a)](),'children':_0x3dcf56(0xf3)})]});}function _0x3bfb4f(_0x38e23d){const _0x39c2d9=_0x5f25e0,{coordinator:_0x47f112}=_0x38e23d;return _0x265310[_0x39c2d9(0xf9)](_0x265310[_0x39c2d9(0x90)],{'children':[_0x265310[_0x39c2d9(0x129)](_0x39c2d9(0x8a),{'className':_0x39c2d9(0xe0),'children':_0x39c2d9(0x11c)}),_0x265310['jsx'](_0x51144a[_0x39c2d9(0xbb)],{'variant':_0x39c2d9(0xff),'onClick':()=>_0x47f112['startFollowing'](),'children':_0x39c2d9(0x74)})]});}function _0x54d058(_0x48bda2){const _0x6a85d0=_0x5f25e0,{coordinator:_0x543e8f}=_0x48bda2;return _0x265310[_0x6a85d0(0xf9)](_0x265310[_0x6a85d0(0x90)],{'children':[_0x265310[_0x6a85d0(0x129)](_0x6a85d0(0x8a),{'className':_0x6a85d0(0xe0),'children':_0x6a85d0(0x106)}),_0x265310[_0x6a85d0(0x129)](_0x51144a[_0x6a85d0(0xbb)],{'variant':'default','onClick':()=>_0x543e8f[_0x6a85d0(0x10f)](),'children':'Stop\x20presenting'})]});}function _0x3910b6(){const _0x25e6d2=_0x5f25e0;return _0x265310[_0x25e6d2(0x129)](_0x265310['Fragment'],{'children':_0x25e6d2(0x133)});}var _0x120e70=Object['getOwnPropertyDescriptor'],_0x9aa85b=(_0x46492f,_0x529344,_0x4cd9bd,_0x5b7794)=>{const _0x23f408=_0x5f25e0;for(var _0xdc3a3d=_0x5b7794>0x1?void 0x0:_0x5b7794?_0x120e70(_0x529344,_0x4cd9bd):_0x529344,_0x3ab85b=_0x46492f[_0x23f408(0xe2)]-0x1,_0x4e291d;_0x3ab85b>=0x0;_0x3ab85b--)(_0x4e291d=_0x46492f[_0x3ab85b])&&(_0xdc3a3d=_0x4e291d(_0xdc3a3d)||_0xdc3a3d);return _0xdc3a3d;},_0x50d925=(_0x1436b2,_0x351f72)=>(_0x2acb6b,_0x18251d)=>_0x351f72(_0x2acb6b,_0x18251d,_0x1436b2);_0x262252[_0x5f25e0(0x151)]=class extends _0x3cb17c[_0x5f25e0(0xdc)]{constructor(_0x41ba22,_0x1b703f){const _0x4c132a=_0x5f25e0;super(),this[_0x4c132a(0xcc)]=_0x41ba22,this[_0x4c132a(0xe5)]=_0x1b703f,this[_0x4c132a(0xc7)]();}[_0x5f25e0(0xc7)](){const _0x432ad0=_0x5f25e0;this[_0x432ad0(0xf5)](this[_0x432ad0(0xe5)][_0x432ad0(0x98)](_0x404ca8[_0x432ad0(0x78)][_0x432ad0(0x88)],()=>_0x404ca8[_0x432ad0(0xb6)](_0x1daf63,this[_0x432ad0(0xcc)])));}},_0x262252[_0x5f25e0(0x151)]=_0x9aa85b([_0x50d925(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x50d925(0x1,_0x404ca8[_0x5f25e0(0x97)])],_0x262252[_0x5f25e0(0x151)]);const _0xafc072=_0x5f25e0(0x143),_0x4a3916={};var _0x129a62=Object[_0x5f25e0(0xcf)],_0x3820f5=(_0x1fdaf5,_0x35be0f,_0x587556,_0x2f35d2)=>{const _0x177eaf=_0x5f25e0;for(var _0x2e2116=_0x2f35d2>0x1?void 0x0:_0x2f35d2?_0x129a62(_0x35be0f,_0x587556):_0x35be0f,_0x3e90c3=_0x1fdaf5[_0x177eaf(0xe2)]-0x1,_0x4192d7;_0x3e90c3>=0x0;_0x3e90c3--)(_0x4192d7=_0x1fdaf5[_0x3e90c3])&&(_0x2e2116=_0x4192d7(_0x2e2116)||_0x2e2116);return _0x2e2116;},_0xd61be5=(_0x359691,_0x1dad63)=>(_0x23b2dd,_0x3df272)=>_0x1dad63(_0x23b2dd,_0x3df272,_0x359691);let _0x4d17a9=class extends _0x3cb17c['Disposable']{constructor(_0x8e7a53){const _0x31f3d3=_0x5f25e0;super(),this[_0x31f3d3(0x144)]=_0x8e7a53,this['_init']();}[_0x5f25e0(0xb7)](){const _0x3b361a=_0x5f25e0;[_0x1ac73e[_0x3b361a(0xd3)]['id'],_0x1ac73e[_0x3b361a(0x14d)]['id'],_0x4db795[_0x3b361a(0xb4)]['id']]['forEach'](_0xb5e7b=>{const _0xe183c=_0x3b361a;this[_0xe183c(0xf5)](this[_0xe183c(0x144)][_0xe183c(0x9f)](_0xb5e7b));});}};_0x4d17a9=_0x3820f5([_0xd61be5(0x0,_0x3cb17c[_0x5f25e0(0xda)](_0x426902))],_0x4d17a9);var _0x50f651=Object[_0x5f25e0(0x14e)],_0x214261=Object[_0x5f25e0(0xcf)],_0x4eba48=(_0x3fb559,_0x260fe7,_0x3810d9)=>_0x260fe7 in _0x3fb559?_0x50f651(_0x3fb559,_0x260fe7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3810d9}):_0x3fb559[_0x260fe7]=_0x3810d9,_0x352d85=(_0x28f9ea,_0x2719eb,_0x47b9fb,_0x30447f)=>{for(var _0x1125e8=_0x30447f>0x1?void 0x0:_0x30447f?_0x214261(_0x2719eb,_0x47b9fb):_0x2719eb,_0x416dc2=_0x28f9ea['length']-0x1,_0x39b494;_0x416dc2>=0x0;_0x416dc2--)(_0x39b494=_0x28f9ea[_0x416dc2])&&(_0x1125e8=_0x39b494(_0x1125e8)||_0x1125e8);return _0x1125e8;},_0x128a8b=(_0xe2a19c,_0x187cf7)=>(_0x455e98,_0x486dc0)=>_0x187cf7(_0x455e98,_0x486dc0,_0xe2a19c),_0x45d1f5=(_0x2a1145,_0x5f58e7,_0x1835c1)=>_0x4eba48(_0x2a1145,typeof _0x5f58e7!='symbol'?_0x5f58e7+'':_0x5f58e7,_0x1835c1);const _0x194a68=_0x5f25e0(0x82);_0x262252[_0x5f25e0(0x125)]=class extends _0x3cb17c[_0x5f25e0(0x92)]{constructor(_0x46f331=_0x4a3916,_0x235aeb,_0x322cfa){const _0x3dec22=_0x5f25e0;super(),this[_0x3dec22(0x79)]=_0x46f331,this['_injector']=_0x235aeb,this[_0x3dec22(0x96)]=_0x322cfa;const {..._0x489405}=_0x3cb17c['merge']({},_0x4a3916,this['_config']);this['_configService'][_0x3dec22(0x132)](_0xafc072,_0x489405);}[_0x5f25e0(0xb0)](){const _0x3035d8=_0x5f25e0;_0x3cb17c['registerDependencies'](this['_injector'],_0x3cb17c['mergeOverrideWithDependencies']([[_0x426902],[_0x262252[_0x3035d8(0x11d)]],[_0x4d17a9],[_0x262252[_0x3035d8(0x151)]]],this[_0x3035d8(0x79)]['override'])),_0x3cb17c[_0x3035d8(0x149)](this['_injector'],[[_0x4d17a9]]);}[_0x5f25e0(0x81)](){const _0x590da9=_0x5f25e0;_0x3cb17c[_0x590da9(0x149)](this[_0x590da9(0xcc)],[[_0x262252[_0x590da9(0x151)]]]);}},_0x45d1f5(_0x262252['UniverLiveSharePlugin'],_0x5f25e0(0xdd),_0x3cb17c[_0x5f25e0(0xc8)][_0x5f25e0(0x71)]),_0x45d1f5(_0x262252[_0x5f25e0(0x125)],_0x5f25e0(0xfb),_0x194a68),_0x262252['UniverLiveSharePlugin']=_0x352d85([_0x3cb17c[_0x5f25e0(0x94)](_0x3c93ca[_0x5f25e0(0xeb)]),_0x128a8b(0x1,_0x3cb17c[_0x5f25e0(0xda)](_0x3cb17c[_0x5f25e0(0xd5)])),_0x128a8b(0x2,_0x3cb17c[_0x5f25e0(0x13d)])],_0x262252[_0x5f25e0(0x125)]),_0x262252['LiveShare']=_0x1daf63,_0x262252[_0x5f25e0(0xa1)]=_0x426902,_0x262252[_0x5f25e0(0xcd)]=_0x1e5c53,Object[_0x5f25e0(0x14e)](_0x262252,Symbol[_0x5f25e0(0xab)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1-nightly.202511221011",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/engine-render": "0.12.
|
|
65
|
-
"@univerjs/sheets": "0.12.
|
|
66
|
-
"@univerjs/sheets-ui": "0.12.
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.1-nightly.202511221011",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.1-nightly.202511221011",
|
|
62
|
+
"@univerjs/core": "0.12.1-nightly.202511221011",
|
|
63
|
+
"@univerjs/design": "0.12.1-nightly.202511221011",
|
|
64
|
+
"@univerjs/engine-render": "0.12.1-nightly.202511221011",
|
|
65
|
+
"@univerjs/sheets": "0.12.1-nightly.202511221011",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.1-nightly.202511221011",
|
|
67
|
+
"@univerjs/ui": "0.12.1-nightly.202511221011"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.1"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|