@univerjs-pro/live-share 0.23.0 → 0.24.0

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 CHANGED
@@ -1 +1 @@
1
- const _0x8aa14=_0x4a91;(function(_0x2026e0,_0x290fbe){const _0xef1d6c=_0x4a91,_0x37dcd5=_0x2026e0();while(!![]){try{const _0x3bacee=-parseInt(_0xef1d6c(0x106))/0x1+parseInt(_0xef1d6c(0xf1))/0x2*(-parseInt(_0xef1d6c(0x108))/0x3)+parseInt(_0xef1d6c(0xfe))/0x4+parseInt(_0xef1d6c(0x109))/0x5*(-parseInt(_0xef1d6c(0x10f))/0x6)+parseInt(_0xef1d6c(0x100))/0x7+parseInt(_0xef1d6c(0x107))/0x8*(-parseInt(_0xef1d6c(0xf8))/0x9)+parseInt(_0xef1d6c(0xf7))/0xa;if(_0x3bacee===_0x290fbe)break;else _0x37dcd5['push'](_0x37dcd5['shift']());}catch(_0x11c35c){_0x37dcd5['push'](_0x37dcd5['shift']());}}}(_0x1b01,0x645d4));function _0x4a91(_0x52f9a2,_0x2ff015){_0x52f9a2=_0x52f9a2-0xe7;const _0x1b0198=_0x1b01();let _0x4a91d9=_0x1b0198[_0x52f9a2];return _0x4a91d9;}let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x5278b8){'@babel/helpers - typeof';const _0x3d7acc=_0x4a91;return r=typeof Symbol==_0x3d7acc(0xf5)&&typeof Symbol[_0x3d7acc(0xfb)]==_0x3d7acc(0xf2)?function(_0x1f7b0b){return typeof _0x1f7b0b;}:function(_0x517f2a){const _0x1ff661=_0x3d7acc;return _0x517f2a&&typeof Symbol==_0x1ff661(0xf5)&&_0x517f2a['constructor']===Symbol&&_0x517f2a!==Symbol['prototype']?_0x1ff661(0xf2):typeof _0x517f2a;},r(_0x5278b8);}function i(_0x1ccc24,_0x48f462){const _0x2cbd9c=_0x4a91;if(r(_0x1ccc24)!=_0x2cbd9c(0xfa)||!_0x1ccc24)return _0x1ccc24;var _0x57df43=_0x1ccc24[Symbol['toPrimitive']];if(_0x57df43!==void 0x0){var _0x1e2be8=_0x57df43[_0x2cbd9c(0xf4)](_0x1ccc24,_0x48f462||_0x2cbd9c(0xee));if(r(_0x1e2be8)!=_0x2cbd9c(0xfa))return _0x1e2be8;throw TypeError(_0x2cbd9c(0xe8));}return(_0x48f462==='string'?String:Number)(_0x1ccc24);}function a(_0x11203){const _0x133609=_0x4a91;var _0x463bc0=i(_0x11203,_0x133609(0xf9));return r(_0x463bc0)==_0x133609(0xf2)?_0x463bc0:_0x463bc0+'';}function _0x1b01(){const _0x25dd62=['startFollowing','stopFollowing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_SHEET','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareStatus','FEnum','default','_injector','IUniverInstanceService','106KAjqGK','symbol','getUnitId','call','function','tryStartPresenting','9403570vivkkx','45wHMtMG','string','object','iterator','get','startPresenting','2138592DxyXBJ','extend','3025190sYEjAF','LiveShareStatusEnum','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','getStatus','_liveShareController','238830FQOJjK','832072ZAvhAP','38091qBvXPO','321335LRyAsB','stopPresenting','_initialize','getCurrentUnitOfType','defineProperty','getLiveShareStatus','6UyRmNi','LiveShareController','FUniver'];_0x1b01=function(){return _0x25dd62;};return _0x1b01();}function o(_0x4aef7d,_0x363e6c,_0x571e56){const _0x3a2dfe=_0x4a91;return(_0x363e6c=a(_0x363e6c))in _0x4aef7d?Object[_0x3a2dfe(0x10d)](_0x4aef7d,_0x363e6c,{'value':_0x571e56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4aef7d[_0x363e6c]=_0x571e56,_0x4aef7d;}var s=class extends n[_0x8aa14(0x111)]{constructor(..._0x370392){const _0x43776a=_0x8aa14;super(..._0x370392),o(this,_0x43776a(0x105),void 0x0);}[_0x8aa14(0x10b)](_0x2d2534){const _0x1faf41=_0x8aa14;this['_liveShareController']=_0x2d2534[_0x1faf41(0xfc)](e[_0x1faf41(0x110)]);}[_0x8aa14(0x10e)](){const _0x547fa0=_0x8aa14;var _0x35582d;let _0x21067=this[_0x547fa0(0xef)]['get'](t['IUniverInstanceService'])[_0x547fa0(0x10c)](t['UniverInstanceType'][_0x547fa0(0xe9)]);if(!_0x21067)throw Error(_0x547fa0(0x103));let _0x5439b1=_0x21067['getUnitId'](),_0x125e9f=this[_0x547fa0(0x105)]['getLiveShareCoordinatorSync'](_0x5439b1);return(_0x35582d=_0x125e9f==null?void 0x0:_0x125e9f[_0x547fa0(0x104)]())==null?e[_0x547fa0(0xec)]['IDLE']:_0x35582d;}['startFollowing'](){const _0x560e43=_0x8aa14;let _0x1dce19=this[_0x560e43(0xef)][_0x560e43(0xfc)](t[_0x560e43(0xf0)])[_0x560e43(0x10c)](t['UniverInstanceType'][_0x560e43(0xe9)]);if(!_0x1dce19)throw Error('No\x20active\x20workbook\x20found.');let _0xfd495f=_0x1dce19['getUnitId'](),_0x53603a=this['_liveShareController'][_0x560e43(0x102)](_0xfd495f);if(!_0x53603a)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x53603a[_0x560e43(0x112)]();}[_0x8aa14(0xe7)](){const _0x23b40c=_0x8aa14;let _0x45c47f=this[_0x23b40c(0xef)][_0x23b40c(0xfc)](t['IUniverInstanceService'])[_0x23b40c(0x10c)](t[_0x23b40c(0xea)]['UNIVER_SHEET']);if(!_0x45c47f)throw Error(_0x23b40c(0x103));let _0x30a403=_0x45c47f[_0x23b40c(0xf3)](),_0x30f87c=this[_0x23b40c(0x105)][_0x23b40c(0x102)](_0x30a403);if(!_0x30f87c)throw Error(_0x23b40c(0xeb));_0x30f87c['stopFollowing']();}[_0x8aa14(0xfd)](){const _0x3d4c63=_0x8aa14;let _0x179ce2=this[_0x3d4c63(0xef)][_0x3d4c63(0xfc)](t['IUniverInstanceService'])[_0x3d4c63(0x10c)](t['UniverInstanceType'][_0x3d4c63(0xe9)]);if(!_0x179ce2)throw Error(_0x3d4c63(0x103));let _0x2df96c=_0x179ce2[_0x3d4c63(0xf3)](),_0x371d6d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x2df96c);if(!_0x371d6d)throw Error(_0x3d4c63(0xeb));_0x371d6d[_0x3d4c63(0xf6)]();}[_0x8aa14(0x10a)](){const _0x476525=_0x8aa14;let _0x2ba5bd=this[_0x476525(0xef)]['get'](t['IUniverInstanceService'])[_0x476525(0x10c)](t['UniverInstanceType'][_0x476525(0xe9)]);if(!_0x2ba5bd)throw Error('No\x20active\x20workbook\x20found.');let _0x390a31=_0x2ba5bd['getUnitId'](),_0x2698af=this[_0x476525(0x105)]['getLiveShareCoordinatorSync'](_0x390a31);if(!_0x2698af)throw Error(_0x476525(0xeb));_0x2698af[_0x476525(0x10a)]();}};n[_0x8aa14(0x111)][_0x8aa14(0xff)](s);var c=class extends n[_0x8aa14(0xed)]{get[_0x8aa14(0x101)](){const _0x57c4df=_0x8aa14;return e[_0x57c4df(0xec)];}};n[_0x8aa14(0xed)][_0x8aa14(0xff)](c);
1
+ const _0x28f2c8=_0x1823;(function(_0xf6ed73,_0xf5635a){const _0x15b64d=_0x1823,_0x23c071=_0xf6ed73();while(!![]){try{const _0x3fb603=-parseInt(_0x15b64d(0xc8))/0x1+parseInt(_0x15b64d(0xc6))/0x2*(-parseInt(_0x15b64d(0xde))/0x3)+parseInt(_0x15b64d(0xc5))/0x4*(parseInt(_0x15b64d(0xdd))/0x5)+parseInt(_0x15b64d(0xbe))/0x6*(-parseInt(_0x15b64d(0xcd))/0x7)+-parseInt(_0x15b64d(0xc3))/0x8*(-parseInt(_0x15b64d(0xcb))/0x9)+parseInt(_0x15b64d(0xd5))/0xa+parseInt(_0x15b64d(0xd8))/0xb*(-parseInt(_0x15b64d(0xe3))/0xc);if(_0x3fb603===_0xf5635a)break;else _0x23c071['push'](_0x23c071['shift']());}catch(_0x5d37ac){_0x23c071['push'](_0x23c071['shift']());}}}(_0xc32e,0xb9a3a));let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x26b705){'@babel/helpers - typeof';const _0x6b3e=_0x1823;return r=typeof Symbol==_0x6b3e(0xbf)&&typeof Symbol['iterator']==_0x6b3e(0xdf)?function(_0x31ac7b){return typeof _0x31ac7b;}:function(_0x7fe6ce){const _0x324556=_0x6b3e;return _0x7fe6ce&&typeof Symbol==_0x324556(0xbf)&&_0x7fe6ce['constructor']===Symbol&&_0x7fe6ce!==Symbol[_0x324556(0xd9)]?_0x324556(0xdf):typeof _0x7fe6ce;},r(_0x26b705);}function i(_0x190c5c,_0x20d7d6){const _0x2113c1=_0x1823;if(r(_0x190c5c)!=_0x2113c1(0xd6)||!_0x190c5c)return _0x190c5c;var _0x5957d8=_0x190c5c[Symbol['toPrimitive']];if(_0x5957d8!==void 0x0){var _0x1d96fa=_0x5957d8[_0x2113c1(0xe0)](_0x190c5c,_0x20d7d6||'default');if(r(_0x1d96fa)!=_0x2113c1(0xd6))return _0x1d96fa;throw TypeError(_0x2113c1(0xc7));}return(_0x20d7d6==='string'?String:Number)(_0x190c5c);}function a(_0x1f4286){const _0x33bed9=_0x1823;var _0x5f0a41=i(_0x1f4286,_0x33bed9(0xc0));return r(_0x5f0a41)=='symbol'?_0x5f0a41:_0x5f0a41+'';}function _0xc32e(){const _0x165687=['UniverInstanceType','getLiveShareCoordinatorSync','9621840XIHtzC','getCurrentUnitOfType','796VUZYiZ','2yTQlNP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','147188gxqZCf','getUnitId','FUniver','9RzyQpS','tryStartPresenting','14aDXhKO','getStatus','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','stopFollowing','FEnum','IUniverInstanceService','7371910SJpUED','object','LiveShareController','1738ULobCN','prototype','startFollowing','startPresenting','_liveShareController','32070MqmjkD','3364653zTAByY','symbol','call','_injector','LiveShareStatusEnum','65832MbBHoY','get','UNIVER_SHEET','961206IZuWOl','function','string'];_0xc32e=function(){return _0x165687;};return _0xc32e();}function o(_0x4ef7f7,_0xc52784,_0x1fd6cf){return(_0xc52784=a(_0xc52784))in _0x4ef7f7?Object['defineProperty'](_0x4ef7f7,_0xc52784,{'value':_0x1fd6cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ef7f7[_0xc52784]=_0x1fd6cf,_0x4ef7f7;}var s=class extends n['FUniver']{constructor(..._0x104bec){super(..._0x104bec),o(this,'_liveShareController',void 0x0);}['_initialize'](_0x5346f6){const _0x30b8fe=_0x1823;this[_0x30b8fe(0xdc)]=_0x5346f6[_0x30b8fe(0xe4)](e[_0x30b8fe(0xd7)]);}['getLiveShareStatus'](){const _0x3d2ffc=_0x1823;var _0x3b5b1b;let _0x5445cd=this[_0x3d2ffc(0xe1)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x3d2ffc(0xe5)]);if(!_0x5445cd)throw Error(_0x3d2ffc(0xcf));let _0x38d33a=_0x5445cd['getUnitId'](),_0x22bc28=this[_0x3d2ffc(0xdc)][_0x3d2ffc(0xc2)](_0x38d33a);return(_0x3b5b1b=_0x22bc28==null?void 0x0:_0x22bc28[_0x3d2ffc(0xce)]())==null?e['LiveShareStatus']['IDLE']:_0x3b5b1b;}[_0x28f2c8(0xda)](){const _0x3447f0=_0x28f2c8;let _0x126b26=this[_0x3447f0(0xe1)]['get'](t[_0x3447f0(0xd4)])[_0x3447f0(0xc4)](t[_0x3447f0(0xc1)]['UNIVER_SHEET']);if(!_0x126b26)throw Error(_0x3447f0(0xcf));let _0x4a3b91=_0x126b26[_0x3447f0(0xc9)](),_0x42676d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4a3b91);if(!_0x42676d)throw Error(_0x3447f0(0xd0));_0x42676d['startFollowing']();}[_0x28f2c8(0xd2)](){const _0x46acc9=_0x28f2c8;let _0xb67893=this[_0x46acc9(0xe1)]['get'](t[_0x46acc9(0xd4)])[_0x46acc9(0xc4)](t[_0x46acc9(0xc1)]['UNIVER_SHEET']);if(!_0xb67893)throw Error(_0x46acc9(0xcf));let _0x23ae2f=_0xb67893[_0x46acc9(0xc9)](),_0x45d3d0=this[_0x46acc9(0xdc)][_0x46acc9(0xc2)](_0x23ae2f);if(!_0x45d3d0)throw Error(_0x46acc9(0xd0));_0x45d3d0[_0x46acc9(0xd2)]();}[_0x28f2c8(0xdb)](){const _0x4f9f84=_0x28f2c8;let _0x172e8b=this['_injector']['get'](t[_0x4f9f84(0xd4)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x4f9f84(0xe5)]);if(!_0x172e8b)throw Error(_0x4f9f84(0xcf));let _0x5127ad=_0x172e8b['getUnitId'](),_0x5e8543=this[_0x4f9f84(0xdc)][_0x4f9f84(0xc2)](_0x5127ad);if(!_0x5e8543)throw Error(_0x4f9f84(0xd0));_0x5e8543[_0x4f9f84(0xcc)]();}[_0x28f2c8(0xd1)](){const _0x36df87=_0x28f2c8;let _0x4c51db=this['_injector'][_0x36df87(0xe4)](t[_0x36df87(0xd4)])[_0x36df87(0xc4)](t[_0x36df87(0xc1)][_0x36df87(0xe5)]);if(!_0x4c51db)throw Error(_0x36df87(0xcf));let _0x5543c5=_0x4c51db[_0x36df87(0xc9)](),_0x45816c=this[_0x36df87(0xdc)]['getLiveShareCoordinatorSync'](_0x5543c5);if(!_0x45816c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x45816c[_0x36df87(0xd1)]();}};n[_0x28f2c8(0xca)]['extend'](s);function _0x1823(_0x49e153,_0x2eb3bd){_0x49e153=_0x49e153-0xbe;const _0xc32e83=_0xc32e();let _0x182366=_0xc32e83[_0x49e153];return _0x182366;}var c=class extends n[_0x28f2c8(0xd3)]{get[_0x28f2c8(0xe2)](){return e['LiveShareStatus'];}};n['FEnum']['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ad569=_0x1de6;(function(_0x5eb7bc,_0x362090){const _0x4f0536=_0x1de6,_0x5dfbff=_0x5eb7bc();while(!![]){try{const _0x4115d9=parseInt(_0x4f0536(0x212))/0x1*(-parseInt(_0x4f0536(0x20b))/0x2)+-parseInt(_0x4f0536(0x27d))/0x3+parseInt(_0x4f0536(0x26d))/0x4*(-parseInt(_0x4f0536(0x201))/0x5)+-parseInt(_0x4f0536(0x290))/0x6*(parseInt(_0x4f0536(0x291))/0x7)+parseInt(_0x4f0536(0x215))/0x8+-parseInt(_0x4f0536(0x1f9))/0x9*(parseInt(_0x4f0536(0x20c))/0xa)+parseInt(_0x4f0536(0x1cf))/0xb;if(_0x4115d9===_0x362090)break;else _0x5dfbff['push'](_0x5dfbff['shift']());}catch(_0x1de494){_0x5dfbff['push'](_0x5dfbff['shift']());}}}(_0xb178,0x861cb),Object[_0x1ad569(0x1d3)](exports,Symbol[_0x1ad569(0x208)],{'value':_0x1ad569(0x203)}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function f(_0x1b5c11){'@babel/helpers - typeof';const _0x17fd71=_0x1ad569;return f=typeof Symbol=='function'&&typeof Symbol[_0x17fd71(0x20d)]=='symbol'?function(_0x10f71c){return typeof _0x10f71c;}:function(_0x236208){const _0x31b389=_0x17fd71;return _0x236208&&typeof Symbol=='function'&&_0x236208[_0x31b389(0x234)]===Symbol&&_0x236208!==Symbol[_0x31b389(0x27e)]?_0x31b389(0x27f):typeof _0x236208;},f(_0x1b5c11);}function p(_0x27051e,_0x1bea6a){const _0x416e69=_0x1ad569;if(f(_0x27051e)!=_0x416e69(0x261)||!_0x27051e)return _0x27051e;var _0x39b38e=_0x27051e[Symbol[_0x416e69(0x274)]];if(_0x39b38e!==void 0x0){var _0x1b5477=_0x39b38e['call'](_0x27051e,_0x1bea6a||_0x416e69(0x1da));if(f(_0x1b5477)!=_0x416e69(0x261))return _0x1b5477;throw TypeError(_0x416e69(0x23f));}return(_0x1bea6a===_0x416e69(0x28a)?String:Number)(_0x27051e);}function m(_0x541983){const _0x57f1bf=_0x1ad569;var _0x45e64e=p(_0x541983,_0x57f1bf(0x28a));return f(_0x45e64e)==_0x57f1bf(0x27f)?_0x45e64e:_0x45e64e+'';}function h(_0x255e9b,_0xf75fc4,_0x5e1ae4){const _0x2661d0=_0x1ad569;return(_0xf75fc4=m(_0xf75fc4))in _0x255e9b?Object[_0x2661d0(0x1d3)](_0x255e9b,_0xf75fc4,{'value':_0x5e1ae4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x255e9b[_0xf75fc4]=_0x5e1ae4,_0x255e9b;}var g=class extends e[_0x1ad569(0x281)]{constructor(..._0x1aedb1){const _0x152872=_0x1ad569;super(..._0x1aedb1),h(this,_0x152872(0x231),new Set()),h(this,_0x152872(0x1e7),new Set());}[_0x1ad569(0x251)](_0x53e99c){const _0x407533=_0x1ad569;return this[_0x407533(0x231)][_0x407533(0x254)](_0x53e99c),(0x0,e[_0x407533(0x21e)])(()=>this['_sharedOperations'][_0x407533(0x226)](_0x53e99c));}[_0x1ad569(0x229)](_0x541a2e){const _0x4be466=_0x1ad569;return this[_0x4be466(0x1e7)][_0x4be466(0x254)](_0x541a2e),(0x0,e[_0x4be466(0x21e)])(()=>this[_0x4be466(0x1e7)]['delete'](_0x541a2e));}[_0x1ad569(0x237)](_0xce98dc){const _0x54da42=_0x1ad569;return this[_0x54da42(0x231)][_0x54da42(0x21d)](_0xce98dc);}[_0x1ad569(0x241)](_0x1f32f0){const _0x2e35e8=_0x1ad569;return Array[_0x2e35e8(0x269)](this[_0x2e35e8(0x1e7)])['map'](_0x2ec88f=>_0x2ec88f(_0x1f32f0));}};function _(_0x358479,_0x5914a8){return function(_0xc58062,_0x5598a2){_0x5914a8(_0xc58062,_0x5598a2,_0x358479);};}function v(_0x596658,_0x5862c9,_0x99bd9e,_0x62a41f){const _0x2191f0=_0x1ad569;var _0x81732c=arguments[_0x2191f0(0x23b)],_0x313d82=_0x81732c<0x3?_0x5862c9:_0x62a41f===null?_0x62a41f=Object[_0x2191f0(0x1fe)](_0x5862c9,_0x99bd9e):_0x62a41f,_0x1c0e3e;if(typeof Reflect=='object'&&typeof Reflect[_0x2191f0(0x23d)]==_0x2191f0(0x268))_0x313d82=Reflect[_0x2191f0(0x23d)](_0x596658,_0x5862c9,_0x99bd9e,_0x62a41f);else{for(var _0x4c9e8e=_0x596658[_0x2191f0(0x23b)]-0x1;_0x4c9e8e>=0x0;_0x4c9e8e--)(_0x1c0e3e=_0x596658[_0x4c9e8e])&&(_0x313d82=(_0x81732c<0x3?_0x1c0e3e(_0x313d82):_0x81732c>0x3?_0x1c0e3e(_0x5862c9,_0x99bd9e,_0x313d82):_0x1c0e3e(_0x5862c9,_0x99bd9e))||_0x313d82);}return _0x81732c>0x3&&_0x313d82&&Object[_0x2191f0(0x1d3)](_0x5862c9,_0x99bd9e,_0x313d82),_0x313d82;}let y=class extends e[_0x1ad569(0x223)]{constructor(_0x5f292e,_0x9a276a,_0xbcad77){const _0x1107e8=_0x1ad569;super(),this['_univerInstanceService']=_0x5f292e,this['_injector']=_0x9a276a,this[_0x1107e8(0x270)]=_0xbcad77,h(this,_0x1107e8(0x1d7),new Map()),this[_0x1107e8(0x209)]();}async['getLiveShareCoordinator'](_0x5650c5){const _0x559a65=_0x1ad569;return this['_entities'][_0x559a65(0x21d)](_0x5650c5)||await this['_startLiveShareCoordinator'](_0x5650c5),this[_0x559a65(0x1d7)][_0x559a65(0x24e)](_0x5650c5);}[_0x1ad569(0x277)](_0x26ffc7){const _0x4f8f0a=_0x1ad569;var _0x6a913d;return(_0x6a913d=this[_0x4f8f0a(0x1d7)][_0x4f8f0a(0x24e)](_0x26ffc7))==null?null:_0x6a913d;}[_0x1ad569(0x209)](){const _0xd47e66=_0x1ad569;this[_0xd47e66(0x1f0)][_0xd47e66(0x1fc)](e[_0xd47e66(0x217)][_0xd47e66(0x21a)])[_0xd47e66(0x287)]((0x0,l['takeUntil'])(this[_0xd47e66(0x210)]))['subscribe'](async _0x1e93a6=>{const _0x44c8d6=_0xd47e66;let _0x42f5a5=_0x1e93a6[_0x44c8d6(0x264)][_0x44c8d6(0x280)]();this['_entities'][_0x44c8d6(0x21d)](_0x42f5a5)||this[_0x44c8d6(0x249)](_0x42f5a5);}),this[_0xd47e66(0x1f0)][_0xd47e66(0x272)](e[_0xd47e66(0x217)][_0xd47e66(0x21a)])['pipe']((0x0,l[_0xd47e66(0x1d0)])(this[_0xd47e66(0x210)]))[_0xd47e66(0x247)](_0x56ecf5=>{const _0x4f9139=_0xd47e66;let _0x4c68b5=_0x56ecf5[_0x4f9139(0x280)](),_0x186b0c=this[_0x4f9139(0x1d7)]['get'](_0x4c68b5);_0x186b0c==null||_0x186b0c[_0x4f9139(0x26c)]();});}async[_0x1ad569(0x249)](_0x20160d){const _0x2b36db=_0x1ad569;let _0x2dfacd=await this[_0x2b36db(0x270)][_0x2b36db(0x255)](_0x20160d),_0xc92dfa=this['_injector'][_0x2b36db(0x24c)](x,_0x20160d,_0x2dfacd);return _0xc92dfa[_0x2b36db(0x266)](),this[_0x2b36db(0x1d7)][_0x2b36db(0x273)](_0x20160d,_0xc92dfa),_0xc92dfa;}};y=v([_(0x0,e[_0x1ad569(0x22a)]),_(0x1,(0x0,e[_0x1ad569(0x22f)])(e[_0x1ad569(0x1f2)])),_(0x2,(0x0,e[_0x1ad569(0x22f)])(o[_0x1ad569(0x1ef)]))],y);let b=function(_0x164e2e){const _0x2dfc54=_0x1ad569;return _0x164e2e[_0x2dfc54(0x1fd)]=_0x2dfc54(0x271),_0x164e2e[_0x2dfc54(0x1e2)]=_0x2dfc54(0x22c),_0x164e2e[_0x2dfc54(0x232)]='following',_0x164e2e[_0x2dfc54(0x292)]=_0x2dfc54(0x26e),_0x164e2e[_0x2dfc54(0x22e)]='presenting',_0x164e2e;}({}),x=class extends e[_0x1ad569(0x223)]{get[_0x1ad569(0x259)](){const _0x5cc90f=_0x1ad569;return this[_0x5cc90f(0x242)][_0x5cc90f(0x23a)]();}constructor(_0x52513c,_0x1837e7,_0x167c89,_0x1445af,_0x14fd4a){const _0x25f146=_0x1ad569;super(),this[_0x25f146(0x288)]=_0x52513c,this[_0x25f146(0x283)]=_0x1837e7,this[_0x25f146(0x1e1)]=_0x167c89,this[_0x25f146(0x21c)]=_0x1445af,this[_0x25f146(0x1e3)]=_0x14fd4a,h(this,'_status$',new c[(_0x25f146(0x28b))]('idle')),h(this,'status$',this['_status$']['asObservable']()),h(this,_0x25f146(0x209),!0x1),h(this,_0x25f146(0x205),null),h(this,_0x25f146(0x28e),null);}['dispose'](){const _0x250844=_0x1ad569;var _0x239237;(_0x239237=this['_commandDisposable'])==null||_0x239237['dispose'](),this[_0x250844(0x242)][_0x250844(0x218)](_0x250844(0x22c)),this[_0x250844(0x242)][_0x250844(0x285)]();}['getStatus'](){const _0x1fc20b=_0x1ad569;return this[_0x1fc20b(0x259)];}[_0x1ad569(0x266)](){const _0x1d72e2=_0x1ad569;this[_0x1d72e2(0x209)]||(this[_0x1d72e2(0x209)]=!0x0,this[_0x1d72e2(0x283)][_0x1d72e2(0x265)][_0x1d72e2(0x287)]((0x0,l[_0x1d72e2(0x1d0)])(this[_0x1d72e2(0x210)]))[_0x1d72e2(0x247)](_0xb90481=>{const _0x586a74=_0x1d72e2;switch(_0xb90481){case o[_0x586a74(0x1ed)][_0x586a74(0x1fd)]:this[_0x586a74(0x224)]();break;case o[_0x586a74(0x1ed)][_0x586a74(0x23c)]:this[_0x586a74(0x1eb)]();break;default:}}),this['_collabSession'][_0x1d72e2(0x216)][_0x1d72e2(0x287)]((0x0,l[_0x1d72e2(0x1d0)])(this['dispose$']))[_0x1d72e2(0x247)](_0x3e7691=>{const _0x1f0856=_0x1d72e2;let {eventID:_0xb858a0}=_0x3e7691;switch(_0xb858a0){case a[_0x1f0856(0x220)][_0x1f0856(0x1ec)]:this[_0x1f0856(0x1d1)](_0x3e7691);break;case a[_0x1f0856(0x220)][_0x1f0856(0x278)]:this[_0x1f0856(0x1db)](_0x3e7691);break;case a[_0x1f0856(0x220)][_0x1f0856(0x22d)]:this[_0x1f0856(0x206)]();break;case a[_0x1f0856(0x220)]['NEW_CHANGESETS']:this[_0x1f0856(0x1df)](_0x3e7691);break;default:}}));}[_0x1ad569(0x28c)](){const _0x5ec63e=_0x1ad569;this[_0x5ec63e(0x283)]['send']({'eventID':a['CollaborationEvent'][_0x5ec63e(0x1fa)],'data':{'unitID':this[_0x5ec63e(0x288)],'userID':this['_collabSession'][_0x5ec63e(0x1d8)]()}},this[_0x5ec63e(0x288)]);}['stopPresenting'](){const _0x573d22=_0x1ad569;this[_0x573d22(0x259)]===_0x573d22(0x253)&&(this[_0x573d22(0x242)][_0x573d22(0x218)](_0x573d22(0x22c)),this[_0x573d22(0x283)][_0x573d22(0x239)]({'eventID':a['CollaborationEvent'][_0x573d22(0x22d)],'data':{'unitID':this[_0x573d22(0x288)]}},this['_unitID']));}[_0x1ad569(0x262)](){const _0x3fbd96=_0x1ad569;this[_0x3fbd96(0x259)]===_0x3fbd96(0x26e)&&(this[_0x3fbd96(0x242)][_0x3fbd96(0x218)]('following'),this[_0x3fbd96(0x263)]());}[_0x1ad569(0x1ea)](){const _0x2a2b78=_0x1ad569;this[_0x2a2b78(0x259)]==='following'&&this[_0x2a2b78(0x26b)]();}[_0x1ad569(0x1d1)](_0x219751){const _0x26d4ca=_0x1ad569;let {presenter:_0x2a350e}=_0x219751[_0x26d4ca(0x1e0)],_0x5a14ec=this[_0x26d4ca(0x283)][_0x26d4ca(0x1d8)]();this[_0x26d4ca(0x28e)]=_0x2a350e,_0x2a350e===_0x5a14ec?(this[_0x26d4ca(0x26b)](),this[_0x26d4ca(0x1d6)]()):this[_0x26d4ca(0x259)]!==_0x26d4ca(0x26e)&&(this['_stopPresenting'](),this[_0x26d4ca(0x263)]());}[_0x1ad569(0x22b)](){const _0x3dec9b=_0x1ad569;let _0x38ba1d={'eventID':a[_0x3dec9b(0x220)][_0x3dec9b(0x207)]};this[_0x3dec9b(0x283)]['send'](_0x38ba1d,this['_unitID']);}['_handleTerminate'](){const _0x21bba3=_0x1ad569;this[_0x21bba3(0x28e)]=null,this['_status']!==_0x21bba3(0x253)&&this[_0x21bba3(0x24b)]();}[_0x1ad569(0x1df)](_0x8afc7a){const _0x2be6ea=_0x1ad569;if(this[_0x2be6ea(0x259)]===_0x2be6ea(0x28f)&&this[_0x2be6ea(0x28e)]===_0x8afc7a[_0x2be6ea(0x1e0)][_0x2be6ea(0x25d)]){let _0x274ffb=(0x0,a['parseProtocolChangeset'])(_0x8afc7a[_0x2be6ea(0x1e0)])[_0x2be6ea(0x1f1)][_0x2be6ea(0x202)]()[_0x2be6ea(0x213)](_0x3451c5=>_0x3451c5['id']===s[_0x2be6ea(0x25c)]['id']);if(_0x274ffb){let _0x3bbcfe=_0x274ffb['params'][_0x2be6ea(0x258)],_0x24cebe=_0x274ffb['params'][_0x2be6ea(0x286)]['id'];setTimeout(()=>{const _0x5ba575=_0x2be6ea;this[_0x5ba575(0x1e3)][_0x5ba575(0x24f)](s[_0x5ba575(0x1e5)]['id'],{'unitId':_0x3bbcfe,'subUnitId':_0x24cebe},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x89dd23=_0x1ad569;this[_0x89dd23(0x242)]['next']('presenting');let _0x241164=new Map(),_0x506ee6=this['_commandDisposable']=new e['DisposableCollection']();_0x506ee6[_0x89dd23(0x254)]((0x0,e[_0x89dd23(0x21e)])(()=>{const _0x4f7b79=_0x89dd23;_0x241164[_0x4f7b79(0x284)](_0x571b3b=>_0x571b3b['complete']()),_0x241164['clear']();})),_0x506ee6[_0x89dd23(0x254)](this[_0x89dd23(0x1e3)][_0x89dd23(0x1f8)](_0x16aa45=>{const _0xa42ae8=_0x89dd23;if(_0x16aa45[_0xa42ae8(0x204)]!==e[_0xa42ae8(0x25f)][_0xa42ae8(0x233)]||!this['_liveShareService'][_0xa42ae8(0x237)](_0x16aa45['id']))return;let {id:_0x468c40}=_0x16aa45,_0x37f3b4;if(_0x241164['has'](_0x468c40))_0x37f3b4=_0x241164[_0xa42ae8(0x24e)](_0x468c40);else{var _0x1bcdf6;_0x37f3b4=new c['Subject'](),_0x241164[_0xa42ae8(0x273)](_0x468c40,_0x37f3b4),_0x37f3b4[_0xa42ae8(0x287)]((0x0,l[_0xa42ae8(0x225)])((_0x1bcdf6=this[_0xa42ae8(0x1e1)][_0xa42ae8(0x24a)](_0xa42ae8(0x243)))==null?0xc8:_0x1bcdf6,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa42ae8(0x247)](_0x24c94d=>{const _0x4a7aaf=_0xa42ae8;this[_0x4a7aaf(0x283)][_0x4a7aaf(0x239)]({'eventID':a[_0x4a7aaf(0x220)][_0x4a7aaf(0x278)],'data':{'unitID':this['_unitID'],'operations':{[_0x24c94d['id']]:{'id':_0x24c94d['id'],'params':JSON[_0x4a7aaf(0x256)](_0x24c94d[_0x4a7aaf(0x25a)])}}}},this['_unitID']);});}_0x37f3b4[_0xa42ae8(0x218)](_0x16aa45);})),this[_0x89dd23(0x21c)]['getInitialStates'](this[_0x89dd23(0x288)])[_0x89dd23(0x284)](_0x563aff=>this[_0x89dd23(0x283)]['send']({'eventID':a[_0x89dd23(0x220)][_0x89dd23(0x278)],'data':{'unitID':this['_unitID'],'operations':{[_0x563aff['id']]:{'id':_0x563aff['id'],'params':JSON[_0x89dd23(0x256)](_0x563aff['params'])}}}},this['_unitID']));}[_0x1ad569(0x20a)](){const _0x2364b3=_0x1ad569;var _0x30a912;this['_status$'][_0x2364b3(0x218)]('idle'),(_0x30a912=this['_commandDisposable'])==null||_0x30a912[_0x2364b3(0x26c)](),this[_0x2364b3(0x205)]=null;}['_startFollowing'](){const _0x1ca7e3=_0x1ad569;var _0x48f0ad;(_0x48f0ad=this[_0x1ca7e3(0x205)])==null||_0x48f0ad[_0x1ca7e3(0x26c)](),this['_status$'][_0x1ca7e3(0x218)](_0x1ca7e3(0x28f));}[_0x1ad569(0x24b)](){const _0x452c89=_0x1ad569;var _0x3e83ad;this[_0x452c89(0x242)][_0x452c89(0x218)](_0x452c89(0x22c)),(_0x3e83ad=this[_0x452c89(0x205)])==null||_0x3e83ad[_0x452c89(0x26c)](),this['_commandDisposable']=null;}[_0x1ad569(0x26b)](){const _0x2a13ff=_0x1ad569;var _0x1f1e61;this['_status$'][_0x2a13ff(0x218)](_0x2a13ff(0x26e)),(_0x1f1e61=this[_0x2a13ff(0x205)])==null||_0x1f1e61[_0x2a13ff(0x26c)]();}[_0x1ad569(0x1db)](_0x5e6712){const _0xff2482=_0x1ad569;if([_0xff2482(0x253),_0xff2482(0x26e),_0xff2482(0x271)][_0xff2482(0x257)](this[_0xff2482(0x259)])||!_0x5e6712[_0xff2482(0x1e0)]['presenter']||_0x5e6712[_0xff2482(0x1e0)][_0xff2482(0x221)]===this[_0xff2482(0x283)][_0xff2482(0x1d8)]())return;this['_status']==='idle'&&this[_0xff2482(0x263)]();let _0x4dd101=_0x5e6712[_0xff2482(0x1e0)][_0xff2482(0x250)];Object[_0xff2482(0x1dc)](_0x4dd101)['forEach'](_0x2988c9=>{const _0x3f0471=_0xff2482;this[_0x3f0471(0x1e3)]['executeCommand'](_0x2988c9['id'],_0x2988c9[_0x3f0471(0x25a)]?JSON[_0x3f0471(0x1d5)](_0x2988c9[_0x3f0471(0x25a)]):null,{'fromCollab':!0x0});});}[_0x1ad569(0x224)](){const _0x3d3f61=_0x1ad569;var _0x61b969;this[_0x3d3f61(0x242)][_0x3d3f61(0x218)](_0x3d3f61(0x271)),(_0x61b969=this[_0x3d3f61(0x205)])==null||_0x61b969['dispose']();}[_0x1ad569(0x1eb)](){const _0x51ad78=_0x1ad569;this[_0x51ad78(0x242)][_0x51ad78(0x218)](_0x51ad78(0x22c)),this['_fetchOperations']();}};x=v([_(0x2,e[_0x1ad569(0x276)]),_(0x3,(0x0,e[_0x1ad569(0x22f)])(g)),_(0x4,e['ICommandService'])],x);function S(){const _0x4fb8c7=_0x1ad569;let _0x5dc4de=(0x0,t[_0x4fb8c7(0x21f)])(y),_0x4492fd=(0x0,t[_0x4fb8c7(0x21f)])(e['IUniverInstanceService']),_0x36faf0=(0x0,t[_0x4fb8c7(0x21b)])(()=>_0x4492fd[_0x4fb8c7(0x214)](e[_0x4fb8c7(0x217)][_0x4fb8c7(0x21a)]),void 0x0,!0x1,[]),[_0x3326b9,_0x4bbf5e]=(0x0,i[_0x4fb8c7(0x275)])(null),[_0x521451,_0x428c20]=(0x0,i[_0x4fb8c7(0x275)])(_0x4fb8c7(0x22c)),_0x100dc5=(0x0,i[_0x4fb8c7(0x1e4)])(null);return(0x0,i[_0x4fb8c7(0x267)])(()=>(_0x36faf0&&_0x5dc4de[_0x4fb8c7(0x1fb)](_0x36faf0[_0x4fb8c7(0x280)]())['then'](_0x1affa9=>{const _0x48bffb=_0x4fb8c7;_0x4bbf5e(_0x1affa9),_0x100dc5[_0x48bffb(0x23e)]=_0x1affa9[_0x48bffb(0x27c)][_0x48bffb(0x247)](_0x1db954=>{_0x428c20(_0x1db954);});}),()=>{const _0xe77d35=_0x4fb8c7;var _0x279c69;(_0x279c69=_0x100dc5[_0xe77d35(0x23e)])==null||_0x279c69[_0xe77d35(0x289)](),_0x100dc5[_0xe77d35(0x23e)]=null;}),[_0x36faf0,_0x5dc4de]),_0x3326b9?(0x0,u[_0x4fb8c7(0x222)])(n[_0x4fb8c7(0x1f3)],{'align':_0x4fb8c7(0x260),'disabled':_0x521451==='offline','className':_0x4fb8c7(0x1f7),'overlay':(0x0,u['jsx'])(C,{'status':_0x521451,'coordinator':_0x3326b9}),'children':(0x0,u[_0x4fb8c7(0x222)])('button',{'className':(0x0,n[_0x4fb8c7(0x228)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x521451==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x521451!=='offline'}),'type':_0x4fb8c7(0x1cd),'children':(0x0,u['jsx'])(r[_0x4fb8c7(0x1f6)],{'className':_0x4fb8c7(0x1e6)})})}):null;}function C(_0x4bef37){const _0x383efe=_0x1ad569;let {status:_0x360bb6,coordinator:_0x399b55}=_0x4bef37;switch(_0x360bb6){case _0x383efe(0x22c):return(0x0,u[_0x383efe(0x222)])(w,{'coordinator':_0x399b55});case _0x383efe(0x28f):return(0x0,u[_0x383efe(0x222)])(T,{'coordinator':_0x399b55});case _0x383efe(0x26e):return(0x0,u[_0x383efe(0x222)])(E,{'coordinator':_0x399b55});case _0x383efe(0x271):return(0x0,u[_0x383efe(0x222)])(O,{});case _0x383efe(0x253):return(0x0,u[_0x383efe(0x222)])(D,{'coordinator':_0x399b55});default:return null;}}function w(_0x3bae0a){const _0x20e185=_0x1ad569;let {coordinator:_0x2212c6}=_0x3bae0a;return(0x0,u['jsxs'])(u[_0x20e185(0x26a)],{'children':[(0x0,u[_0x20e185(0x222)])(_0x20e185(0x1ff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x20e185(0x1e8)}),(0x0,u[_0x20e185(0x222)])(n[_0x20e185(0x240)],{'onClick':()=>_0x2212c6[_0x20e185(0x28c)](),'children':_0x20e185(0x1d9)})]});}function T(_0x45931f){const _0x4c3793=_0x1ad569;let {coordinator:_0x28f4db}=_0x45931f;return(0x0,u[_0x4c3793(0x27b)])(u[_0x4c3793(0x26a)],{'children':[(0x0,u['jsx'])(_0x4c3793(0x1ff),{'className':_0x4c3793(0x1de),'children':_0x4c3793(0x1ee)}),(0x0,u[_0x4c3793(0x222)])(n[_0x4c3793(0x240)],{'onClick':()=>_0x28f4db[_0x4c3793(0x1ea)](),'children':_0x4c3793(0x244)})]});}function E(_0x1ac8cb){const _0x26e859=_0x1ad569;let {coordinator:_0x5500ff}=_0x1ac8cb;return(0x0,u['jsxs'])(u[_0x26e859(0x26a)],{'children':[(0x0,u['jsx'])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x26e859(0x1d4)}),(0x0,u['jsx'])(n[_0x26e859(0x240)],{'variant':'text','onClick':()=>_0x5500ff[_0x26e859(0x262)](),'children':_0x26e859(0x20f)})]});}function D(_0x35c66e){const _0x25c918=_0x1ad569;let {coordinator:_0x5b2d13}=_0x35c66e;return(0x0,u[_0x25c918(0x27b)])(u[_0x25c918(0x26a)],{'children':[(0x0,u['jsx'])(_0x25c918(0x1ff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x25c918(0x1d2)}),(0x0,u[_0x25c918(0x222)])(n[_0x25c918(0x240)],{'variant':_0x25c918(0x1da),'onClick':()=>_0x5b2d13[_0x25c918(0x211)](),'children':'Stop\x20presenting'})]});}function O(){const _0x4efc73=_0x1ad569;return(0x0,u[_0x4efc73(0x222)])(u[_0x4efc73(0x26a)],{'children':'You\x27are\x20offline.'});}let k=class extends e[_0x1ad569(0x281)]{constructor(_0x4950bb,_0x48f7d6){const _0x40f9f2=_0x1ad569;super(),this[_0x40f9f2(0x1cc)]=_0x4950bb,this[_0x40f9f2(0x20e)]=_0x48f7d6,this[_0x40f9f2(0x219)]();}[_0x1ad569(0x219)](){const _0x12578a=_0x1ad569;this['disposeWithMe'](this[_0x12578a(0x20e)][_0x12578a(0x293)](t['BuiltInUIPart'][_0x12578a(0x1ce)],()=>(0x0,t['connectInjector'])(S,this['_injector'])));}};function _0xb178(){const _0x387b34=['type','_commandDisposable','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','toStringTag','_init','_stopPresenting','165014ffLptF','10eHKNFU','iterator','_uiPartsService','Start\x20following','dispose$','stopPresenting','3qgGkzV','find','getCurrentTypeOfUnit$','4333784BBPbuq','event$','UniverInstanceType','next','_mountLiveShare','UNIVER_SHEET','useObservable','_liveShareService','has','toDisposable','useDependency','CollaborationEvent','presenter','jsx','RxDisposable','_handleOffline','throttleTime','delete','packageName','clsx','registerInitialStateReporter','IUniverInstanceService','_fetchOperations','idle','LIVESHARE_TERMINATE','PRESENTING','Inject','0.23.0','_sharedOperations','FOLLOWING','OPERATION','constructor','override','SetScrollOperation','shouldShareOperation','UNIVER_LIVE_SHARE_PLUGIN','send','getValue','length','ONLINE','decorate','current','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Button','getInitialStates','_status$','SAME_OPERATION_SHARE_INTERVAL','Stop\x20following','onRendered','IUIPartsService','subscribe','LiveShare','_startLiveShareCoordinator','getConfig','_beIdle','createInstance','UniverLiveSharePlugin','get','executeCommand','operations','registerSharedOperation','DependentOn','presenting','add','requireSession','stringify','includes','unitId','_status','params','pluginName','InsertSheetMutation','memberID','UniverCollaborationClientPlugin','CommandType','end','object','startFollowing','_startFollowing','unit','sessionStatus$','init','useEffect','function','from','Fragment','_stopFollowing','dispose','6884hWxEFM','not-following','touchDependencies','_collabSessionService','offline','getTypeOfUnitDisposed$','set','toPrimitive','useState','IConfigService','getLiveShareCoordinatorSync','LIVESHARE_OPERATION','setConfig','registerDependencies','jsxs','status$','451902nSXHQW','prototype','symbol','getUnitId','Disposable','_config','_collabSession','forEach','complete','sheet','pipe','_unitID','unsubscribe','string','BehaviorSubject','tryStartPresenting','DesktopLiveShareController','_presenter','following','54sFYUFW','209209UXgvIz','NOT_FOLLOWING','registerComponent','_injector','button','HEADER_MENU','20099794WvWTAd','takeUntil','_handleNewHost','You\x27re\x20presenting\x20the\x20document','defineProperty','You\x27re\x20not\x20following\x20the\x20presenter','parse','_startPresenting','_entities','getMemberID','Start','default','_handleOperation','values','LiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','data','_configService','IDLE','_commandService','useRef','SetWorksheetActiveOperation','univer-size-4','_reporters','Present\x20this\x20document','merge','stopFollowing','_handleOnline','LIVESHARE_NEW_HOST','SessionStatus','You\x27re\x20following\x20the\x20presenter','CollaborationSessionService','_univerInstanceService','mutations','Injector','Dropdown','LiveShareService','live-share.config','LiveShareIcon','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','onCommandExecuted','5989257obwxrs','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','getTypeOfUnitAdded$','OFFLINE','getOwnPropertyDescriptor','div','SetZoomRatioOperation','1415kzbVnk','reverse','Module'];_0xb178=function(){return _0x387b34;};return _0xb178();}k=v([_(0x0,(0x0,e[_0x1ad569(0x22f)])(e[_0x1ad569(0x1f2)])),_(0x1,t[_0x1ad569(0x246)])],k);var A='@univerjs-pro/live-share',j=_0x1ad569(0x230);const M=_0x1ad569(0x1f5);Symbol(M);const N={};let P=class extends e[_0x1ad569(0x281)]{constructor(_0x3d2bf3){const _0x37bbcd=_0x1ad569;super(),this[_0x37bbcd(0x21c)]=_0x3d2bf3,this[_0x37bbcd(0x209)]();}[_0x1ad569(0x209)](){const _0x54a214=_0x1ad569;[d[_0x54a214(0x200)]['id'],d[_0x54a214(0x236)]['id'],s[_0x54a214(0x1e5)]['id']][_0x54a214(0x284)](_0x2e190f=>{const _0x9d501a=_0x54a214;this['disposeWithMe'](this[_0x9d501a(0x21c)][_0x9d501a(0x251)](_0x2e190f));});}};function _0x1de6(_0x47bbc8,_0x2530eb){_0x47bbc8=_0x47bbc8-0x1cc;const _0xb1788f=_0xb178();let _0x1de6ec=_0xb1788f[_0x47bbc8];return _0x1de6ec;}P=v([_(0x0,(0x0,e['Inject'])(g))],P);let F=class extends e['Plugin']{constructor(_0x116fb2=N,_0x107cc4,_0xd66e53){const _0xa3c8fc=_0x1ad569;super(),this[_0xa3c8fc(0x282)]=_0x116fb2,this[_0xa3c8fc(0x1cc)]=_0x107cc4,this['_configService']=_0xd66e53;let {..._0x49f4f0}=(0x0,e[_0xa3c8fc(0x1e9)])({},N,this['_config']);this['_configService'][_0xa3c8fc(0x279)](M,_0x49f4f0);}['onStarting'](){const _0xc356d8=_0x1ad569;(0x0,e[_0xc356d8(0x27a)])(this[_0xc356d8(0x1cc)],(0x0,e['mergeOverrideWithDependencies'])([[g],[y],[P],[k]],this[_0xc356d8(0x282)][_0xc356d8(0x235)])),(0x0,e[_0xc356d8(0x26f)])(this[_0xc356d8(0x1cc)],[[P]]);}[_0x1ad569(0x245)](){const _0x9644bb=_0x1ad569;(0x0,e['touchDependencies'])(this[_0x9644bb(0x1cc)],[[k]]);}};h(F,_0x1ad569(0x204),e['UniverInstanceType']['UNIVER_UNKNOWN']),h(F,_0x1ad569(0x25b),_0x1ad569(0x238)),h(F,_0x1ad569(0x227),A),h(F,'version',j),F=v([(0x0,e[_0x1ad569(0x252)])(o[_0x1ad569(0x25e)]),_(0x1,(0x0,e[_0x1ad569(0x22f)])(e[_0x1ad569(0x1f2)])),_(0x2,e[_0x1ad569(0x276)])],F),Object[_0x1ad569(0x1d3)](exports,_0x1ad569(0x28d),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x1ad569(0x248)]=S,Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,_0x1ad569(0x1dd),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x1ad569(0x1f4)]=g,exports['LiveShareStatus']=b,Object['defineProperty'](exports,_0x1ad569(0x24d),{'enumerable':!0x0,'get':function(){return F;}});
1
+ const _0x533ef0=_0x219b;(function(_0x519167,_0x9ec045){const _0x19fb52=_0x219b,_0x592149=_0x519167();while(!![]){try{const _0x57c773=-parseInt(_0x19fb52(0x125))/0x1*(-parseInt(_0x19fb52(0xa4))/0x2)+parseInt(_0x19fb52(0x85))/0x3+-parseInt(_0x19fb52(0xea))/0x4*(parseInt(_0x19fb52(0xa8))/0x5)+parseInt(_0x19fb52(0x133))/0x6+parseInt(_0x19fb52(0xa6))/0x7*(parseInt(_0x19fb52(0x138))/0x8)+-parseInt(_0x19fb52(0x96))/0x9+parseInt(_0x19fb52(0xa5))/0xa*(-parseInt(_0x19fb52(0x11b))/0xb);if(_0x57c773===_0x9ec045)break;else _0x592149['push'](_0x592149['shift']());}catch(_0x56bd7f){_0x592149['push'](_0x592149['shift']());}}}(_0x5411,0x8b7c4),Object[_0x533ef0(0x97)](exports,Symbol[_0x533ef0(0xaa)],{'value':_0x533ef0(0x127)}));let e=require(`@univerjs/core`),t=require(`@univerjs/ui`),n=require(`@univerjs/design`),r=require(`@univerjs/icons`),i=require(`react`),a=require(`@univerjs-pro/collaboration`),o=require(`@univerjs-pro/collaboration-client`),s=require(`@univerjs/sheets`),c=require(`rxjs`),l=require(`rxjs/operators`),u=require(`react/jsx-runtime`),d=require(`@univerjs/sheets-ui`);function _0x5411(){const _0x485f31=['toPrimitive','forEach','get','LIVESHARE_FETCH_OPERATIONS','set','36eIJFRi','4924970qyLhMM','2192197FsVwvw','getCurrentTypeOfUnit$','5YKAGSB','HEADER_MENU','toStringTag','button','LiveShareCoordinator','UNIVER_SHEET','ICommandService','LiveShareService','_liveShareService','UniverInstanceType','has','mutations','_collabSession','useObservable','SetZoomRatioOperation','InsertSheetMutation','Plugin','packageName','touchDependencies','not-following','stopPresenting','default','_stopPresenting','_presenter','current','dispose$','toDisposable','dispose','map','symbol','function','getMemberID','useDependency','LiveShareController','SessionStatus','PRESENTING','getValue','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','SetWorksheetActiveOperation','delete','send','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','add','_startFollowing','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','LiveShareStatus','length','OFFLINE','params','_collabSessionService','DesktopLiveShareController','call','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','_mountLiveShare','IConfigService','You\x27are\x20offline.','then','_config','_beIdle','SAME_OPERATION_SHARE_INTERVAL','_startPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','3200476pNmDjj','Subject','unitId','asObservable','UniverCollaborationClientPlugin','jsx','getTypeOfUnitDisposed$','0.24.0','subscribe','Stop\x20presenting','onStarting','_sharedOperations','Dropdown','OPERATION','object','_commandDisposable','LIVESHARE_OPERATION','_handleOperation','_reporters','disposeWithMe','UNIVER_UNKNOWN','data','connectInjector','registerSharedOperation','jsxs','createInstance','getUnitId','useRef','unsubscribe','NOT_FOLLOWING','mergeOverrideWithDependencies','text','div','CollaborationSessionService','RxDisposable','_stopFollowing','You\x27re\x20following\x20the\x20presenter','unit','event$','registerComponent','_unitID','presenter','getTypeOfUnitAdded$','merge','ONLINE','complete','registerDependencies','BehaviorSubject','_injector','11ycOqhn','IUIPartsService','live-share.config','string','_handleTerminate','presenting','_configService','DisposableCollection','CollaborationEvent','getInitialStates','32919qSbmIT','_status','Module','_status$','prototype','getLiveShareCoordinatorSync','status$','tryStartPresenting','startFollowing','takeUntil','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','includes','find','3107370wFaVvg','decorate','offline','clsx','_commandService','8VwjiaF','pipe','_handleOffline','executeCommand','following','SetScrollOperation','Button','FOLLOWING','from','requireSession','idle','Inject','IUniverInstanceService','shouldShareOperation','onCommandExecuted','clear','@univerjs-pro/live-share','Fragment','_uiPartsService','registerInitialStateReporter','_startLiveShareCoordinator','NEW_CHANGESETS','LIVESHARE_TERMINATE','iterator','_handleNewHost','getLiveShareCoordinator','stringify','type','_init','1381107euUECu','_fetchOperations','parseProtocolChangeset','You\x27re\x20not\x20following\x20the\x20presenter','constructor','end','operations','useEffect','Start','throttleTime','Disposable','next','Injector','_entities','_univerInstanceService','Stop\x20following','useState','180261heOpMT','defineProperty','stopFollowing','init','_handleOnline','memberID','onRendered','CommandType','getConfig'];_0x5411=function(){return _0x485f31;};return _0x5411();}function f(_0x52e5d7){'@babel/helpers - typeof';const _0x3a6e42=_0x533ef0;return f=typeof Symbol==_0x3a6e42(0xc6)&&typeof Symbol[_0x3a6e42(0x7f)]==_0x3a6e42(0xc5)?function(_0x5afbbd){return typeof _0x5afbbd;}:function(_0x91c131){const _0x30aba9=_0x3a6e42;return _0x91c131&&typeof Symbol==_0x30aba9(0xc6)&&_0x91c131[_0x30aba9(0x89)]===Symbol&&_0x91c131!==Symbol[_0x30aba9(0x129)]?_0x30aba9(0xc5):typeof _0x91c131;},f(_0x52e5d7);}function p(_0x2f14d9,_0xb4db8a){const _0x54095e=_0x533ef0;if(f(_0x2f14d9)!='object'||!_0x2f14d9)return _0x2f14d9;var _0x1fed19=_0x2f14d9[Symbol[_0x54095e(0x9f)]];if(_0x1fed19!==void 0x0){var _0x2b24e1=_0x1fed19[_0x54095e(0xdd)](_0x2f14d9,_0xb4db8a||_0x54095e(0xbd));if(f(_0x2b24e1)!=_0x54095e(0xf8))return _0x2b24e1;throw TypeError(_0x54095e(0xd2));}return(_0xb4db8a===_0x54095e(0x11e)?String:Number)(_0x2f14d9);}function m(_0xa6ee1){const _0x19bb36=_0x533ef0;var _0x2db95e=p(_0xa6ee1,_0x19bb36(0x11e));return f(_0x2db95e)==_0x19bb36(0xc5)?_0x2db95e:_0x2db95e+'';}function h(_0x4da490,_0x28eac5,_0x47b0a7){return(_0x28eac5=m(_0x28eac5))in _0x4da490?Object['defineProperty'](_0x4da490,_0x28eac5,{'value':_0x47b0a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4da490[_0x28eac5]=_0x47b0a7,_0x4da490;}var g=class extends e[_0x533ef0(0x8f)]{constructor(..._0x3b7608){super(..._0x3b7608),h(this,'_sharedOperations',new Set()),h(this,'_reporters',new Set());}[_0x533ef0(0x101)](_0x42aa08){const _0x2c0280=_0x533ef0;return this[_0x2c0280(0xf5)][_0x2c0280(0xd3)](_0x42aa08),(0x0,e[_0x2c0280(0xc2)])(()=>this['_sharedOperations'][_0x2c0280(0xd0)](_0x42aa08));}[_0x533ef0(0x7b)](_0x5a9f4b){const _0x56a09a=_0x533ef0;return this[_0x56a09a(0xfc)][_0x56a09a(0xd3)](_0x5a9f4b),(0x0,e['toDisposable'])(()=>this[_0x56a09a(0xfc)]['delete'](_0x5a9f4b));}[_0x533ef0(0x75)](_0x1b8186){const _0x39b6c2=_0x533ef0;return this['_sharedOperations'][_0x39b6c2(0xb2)](_0x1b8186);}['getInitialStates'](_0x1ba842){const _0x81906b=_0x533ef0;return Array[_0x81906b(0x140)](this[_0x81906b(0xfc)])[_0x81906b(0xc4)](_0x2b10f9=>_0x2b10f9(_0x1ba842));}};function _(_0x1ce259,_0x46224b){return function(_0x1b6234,_0x122a97){_0x46224b(_0x1b6234,_0x122a97,_0x1ce259);};}function v(_0x5f195f,_0x2bcbb3,_0x78ecad,_0x10f505){const _0x17187b=_0x533ef0;var _0x4155f8=arguments[_0x17187b(0xd8)],_0x200f60=_0x4155f8<0x3?_0x2bcbb3:_0x10f505===null?_0x10f505=Object[_0x17187b(0xde)](_0x2bcbb3,_0x78ecad):_0x10f505,_0x3b48b0;if(typeof Reflect==_0x17187b(0xf8)&&typeof Reflect[_0x17187b(0x134)]==_0x17187b(0xc6))_0x200f60=Reflect[_0x17187b(0x134)](_0x5f195f,_0x2bcbb3,_0x78ecad,_0x10f505);else{for(var _0x3d5a6e=_0x5f195f[_0x17187b(0xd8)]-0x1;_0x3d5a6e>=0x0;_0x3d5a6e--)(_0x3b48b0=_0x5f195f[_0x3d5a6e])&&(_0x200f60=(_0x4155f8<0x3?_0x3b48b0(_0x200f60):_0x4155f8>0x3?_0x3b48b0(_0x2bcbb3,_0x78ecad,_0x200f60):_0x3b48b0(_0x2bcbb3,_0x78ecad))||_0x200f60);}return _0x4155f8>0x3&&_0x200f60&&Object[_0x17187b(0x97)](_0x2bcbb3,_0x78ecad,_0x200f60),_0x200f60;}let y=class extends e['RxDisposable']{constructor(_0x1def8b,_0x4055b9,_0x5cd14c){const _0x5551e8=_0x533ef0;super(),this['_univerInstanceService']=_0x1def8b,this['_injector']=_0x4055b9,this[_0x5551e8(0xdb)]=_0x5cd14c,h(this,_0x5551e8(0x92),new Map()),this[_0x5551e8(0x84)]();}async['getLiveShareCoordinator'](_0x40c90f){const _0x490cc8=_0x533ef0;return this['_entities'][_0x490cc8(0xb2)](_0x40c90f)||await this[_0x490cc8(0x7c)](_0x40c90f),this[_0x490cc8(0x92)][_0x490cc8(0xa1)](_0x40c90f);}[_0x533ef0(0x12a)](_0x4af140){const _0x50716f=_0x533ef0;var _0x38aa3e;return(_0x38aa3e=this[_0x50716f(0x92)][_0x50716f(0xa1)](_0x4af140))==null?null:_0x38aa3e;}[_0x533ef0(0x84)](){const _0x117ab6=_0x533ef0;this[_0x117ab6(0x93)][_0x117ab6(0x114)](e[_0x117ab6(0xb1)][_0x117ab6(0xad)])['pipe']((0x0,l[_0x117ab6(0x12e)])(this[_0x117ab6(0xc1)]))[_0x117ab6(0xf2)](async _0x3b70e6=>{const _0x3c005b=_0x117ab6;let _0x4994fa=_0x3b70e6[_0x3c005b(0x10f)][_0x3c005b(0x104)]();this['_entities'][_0x3c005b(0xb2)](_0x4994fa)||this[_0x3c005b(0x7c)](_0x4994fa);}),this[_0x117ab6(0x93)][_0x117ab6(0xf0)](e['UniverInstanceType'][_0x117ab6(0xad)])[_0x117ab6(0x139)]((0x0,l[_0x117ab6(0x12e)])(this[_0x117ab6(0xc1)]))['subscribe'](_0x3bf702=>{const _0xa7c665=_0x117ab6;let _0x3e0fad=_0x3bf702['getUnitId'](),_0x23464b=this['_entities'][_0xa7c665(0xa1)](_0x3e0fad);_0x23464b==null||_0x23464b[_0xa7c665(0xc3)]();});}async[_0x533ef0(0x7c)](_0x46e47d){const _0x10c69c=_0x533ef0;let _0x4945ae=await this['_collabSessionService'][_0x10c69c(0x141)](_0x46e47d),_0x1b6d07=this[_0x10c69c(0x11a)][_0x10c69c(0x103)](x,_0x46e47d,_0x4945ae);return _0x1b6d07[_0x10c69c(0x99)](),this[_0x10c69c(0x92)][_0x10c69c(0xa3)](_0x46e47d,_0x1b6d07),_0x1b6d07;}};y=v([_(0x0,e[_0x533ef0(0x144)]),_(0x1,(0x0,e[_0x533ef0(0x143)])(e['Injector'])),_(0x2,(0x0,e[_0x533ef0(0x143)])(o[_0x533ef0(0x10b)]))],y);let b=function(_0x5787cf){const _0x2c8f18=_0x533ef0;return _0x5787cf[_0x2c8f18(0xd9)]=_0x2c8f18(0x135),_0x5787cf[_0x2c8f18(0xe9)]=_0x2c8f18(0x142),_0x5787cf[_0x2c8f18(0x13f)]=_0x2c8f18(0x13c),_0x5787cf[_0x2c8f18(0x107)]=_0x2c8f18(0xbb),_0x5787cf[_0x2c8f18(0xcb)]=_0x2c8f18(0x120),_0x5787cf;}({}),x=class extends e[_0x533ef0(0x10c)]{get['_status'](){const _0x40b21a=_0x533ef0;return this['_status$'][_0x40b21a(0xcc)]();}constructor(_0x100a46,_0x131377,_0x1fec7d,_0x17d7ae,_0x2fccbb){const _0x2c6792=_0x533ef0;super(),this[_0x2c6792(0x112)]=_0x100a46,this[_0x2c6792(0xb4)]=_0x131377,this[_0x2c6792(0x121)]=_0x1fec7d,this[_0x2c6792(0xb0)]=_0x17d7ae,this[_0x2c6792(0x137)]=_0x2fccbb,h(this,_0x2c6792(0x128),new c[(_0x2c6792(0x119))](_0x2c6792(0x142))),h(this,'status$',this[_0x2c6792(0x128)][_0x2c6792(0xed)]()),h(this,'_init',!0x1),h(this,_0x2c6792(0xf9),null),h(this,_0x2c6792(0xbf),null);}[_0x533ef0(0xc3)](){const _0x2218f3=_0x533ef0;var _0x246f32;(_0x246f32=this['_commandDisposable'])==null||_0x246f32[_0x2218f3(0xc3)](),this[_0x2218f3(0x128)][_0x2218f3(0x90)](_0x2218f3(0x142)),this[_0x2218f3(0x128)][_0x2218f3(0x117)]();}['getStatus'](){const _0x137b52=_0x533ef0;return this[_0x137b52(0x126)];}[_0x533ef0(0x99)](){const _0xa29356=_0x533ef0;this[_0xa29356(0x84)]||(this[_0xa29356(0x84)]=!0x0,this[_0xa29356(0xb4)][_0xa29356(0xce)][_0xa29356(0x139)]((0x0,l[_0xa29356(0x12e)])(this[_0xa29356(0xc1)]))[_0xa29356(0xf2)](_0x4e44a6=>{const _0x32c583=_0xa29356;switch(_0x4e44a6){case o[_0x32c583(0xca)][_0x32c583(0xd9)]:this['_handleOffline']();break;case o[_0x32c583(0xca)][_0x32c583(0x116)]:this['_handleOnline']();break;default:}}),this[_0xa29356(0xb4)][_0xa29356(0x110)][_0xa29356(0x139)]((0x0,l[_0xa29356(0x12e)])(this[_0xa29356(0xc1)]))[_0xa29356(0xf2)](_0x55e901=>{const _0x203af4=_0xa29356;let {eventID:_0x522ea7}=_0x55e901;switch(_0x522ea7){case a[_0x203af4(0x123)][_0x203af4(0xdf)]:this[_0x203af4(0x80)](_0x55e901);break;case a[_0x203af4(0x123)][_0x203af4(0xfa)]:this[_0x203af4(0xfb)](_0x55e901);break;case a[_0x203af4(0x123)][_0x203af4(0x7e)]:this[_0x203af4(0x11f)]();break;case a[_0x203af4(0x123)][_0x203af4(0x7d)]:this[_0x203af4(0x130)](_0x55e901);break;default:}}));}[_0x533ef0(0x12c)](){const _0x4467f7=_0x533ef0;this['_collabSession'][_0x4467f7(0xd1)]({'eventID':a[_0x4467f7(0x123)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4467f7(0x112)],'userID':this['_collabSession']['getMemberID']()}},this[_0x4467f7(0x112)]);}[_0x533ef0(0xbc)](){const _0x19aa95=_0x533ef0;this[_0x19aa95(0x126)]===_0x19aa95(0x120)&&(this['_status$'][_0x19aa95(0x90)](_0x19aa95(0x142)),this[_0x19aa95(0xb4)][_0x19aa95(0xd1)]({'eventID':a[_0x19aa95(0x123)][_0x19aa95(0x7e)],'data':{'unitID':this[_0x19aa95(0x112)]}},this[_0x19aa95(0x112)]));}[_0x533ef0(0x12d)](){const _0xa06b12=_0x533ef0;this[_0xa06b12(0x126)]===_0xa06b12(0xbb)&&(this[_0xa06b12(0x128)][_0xa06b12(0x90)](_0xa06b12(0x13c)),this[_0xa06b12(0xd4)]());}[_0x533ef0(0x98)](){const _0x498f21=_0x533ef0;this[_0x498f21(0x126)]===_0x498f21(0x13c)&&this[_0x498f21(0x10d)]();}[_0x533ef0(0x80)](_0x27d367){const _0x37b81b=_0x533ef0;let {presenter:_0x28b365}=_0x27d367['data'],_0xc0cdb3=this[_0x37b81b(0xb4)][_0x37b81b(0xc7)]();this[_0x37b81b(0xbf)]=_0x28b365,_0x28b365===_0xc0cdb3?(this[_0x37b81b(0x10d)](),this[_0x37b81b(0xe7)]()):this['_status']!=='not-following'&&(this[_0x37b81b(0xbe)](),this[_0x37b81b(0xd4)]());}[_0x533ef0(0x86)](){const _0x27309c=_0x533ef0;let _0x86524e={'eventID':a[_0x27309c(0x123)][_0x27309c(0xa2)]};this[_0x27309c(0xb4)][_0x27309c(0xd1)](_0x86524e,this[_0x27309c(0x112)]);}[_0x533ef0(0x11f)](){const _0x8e4505=_0x533ef0;this[_0x8e4505(0xbf)]=null,this['_status']!==_0x8e4505(0x120)&&this[_0x8e4505(0xe5)]();}[_0x533ef0(0x130)](_0x5dac58){const _0x515b18=_0x533ef0;if(this[_0x515b18(0x126)]===_0x515b18(0x13c)&&this[_0x515b18(0xbf)]===_0x5dac58['data'][_0x515b18(0x9b)]){let _0x10fc60=(0x0,a[_0x515b18(0x87)])(_0x5dac58[_0x515b18(0xff)])[_0x515b18(0xb3)]['reverse']()[_0x515b18(0x132)](_0x1d45a3=>_0x1d45a3['id']===s[_0x515b18(0xb7)]['id']);if(_0x10fc60){let _0x2bf77b=_0x10fc60[_0x515b18(0xda)][_0x515b18(0xec)],_0xb5080f=_0x10fc60[_0x515b18(0xda)]['sheet']['id'];setTimeout(()=>{const _0x37f2e5=_0x515b18;this['_commandService'][_0x37f2e5(0x13b)](s['SetWorksheetActiveOperation']['id'],{'unitId':_0x2bf77b,'subUnitId':_0xb5080f},{'fromCollab':!0x0});});}}}[_0x533ef0(0xe7)](){const _0x41965b=_0x533ef0;var _0x247822;(_0x247822=this[_0x41965b(0xf9)])==null||_0x247822[_0x41965b(0xc3)](),this[_0x41965b(0x128)][_0x41965b(0x90)](_0x41965b(0x120));let _0x15c502=new Map(),_0x5a4345=this[_0x41965b(0xf9)]=new e[(_0x41965b(0x122))]();_0x5a4345['add']((0x0,e[_0x41965b(0xc2)])(()=>{const _0x30c190=_0x41965b;_0x15c502[_0x30c190(0xa0)](({subject:_0x3ea0ac,subscription:_0x45a97e})=>{const _0x26ab60=_0x30c190;_0x45a97e[_0x26ab60(0x106)](),_0x3ea0ac[_0x26ab60(0x117)]();}),_0x15c502[_0x30c190(0x77)]();})),_0x5a4345['add'](this[_0x41965b(0x137)][_0x41965b(0x76)](_0x5da1d0=>{const _0x28d0ab=_0x41965b;if(_0x5da1d0[_0x28d0ab(0x83)]!==e[_0x28d0ab(0x9d)][_0x28d0ab(0xf7)]||!this['_liveShareService'][_0x28d0ab(0x75)](_0x5da1d0['id']))return;let {id:_0x124f94}=_0x5da1d0,_0x4e5306;if(_0x15c502[_0x28d0ab(0xb2)](_0x124f94))_0x4e5306=_0x15c502['get'](_0x124f94)['subject'];else{var _0x2647d8;_0x4e5306=new c[(_0x28d0ab(0xeb))]();let _0x430876=_0x4e5306[_0x28d0ab(0x139)]((0x0,l[_0x28d0ab(0x8e)])((_0x2647d8=this[_0x28d0ab(0x121)][_0x28d0ab(0x9e)](_0x28d0ab(0xe6)))==null?0xc8:_0x2647d8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x28d0ab(0xf2)](_0x581b7f=>{const _0x5d4b78=_0x28d0ab;this[_0x5d4b78(0xb4)][_0x5d4b78(0xd1)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d4b78(0x112)],'operations':{[_0x581b7f['id']]:{'id':_0x581b7f['id'],'params':JSON[_0x5d4b78(0x82)](_0x581b7f[_0x5d4b78(0xda)])}}}},this[_0x5d4b78(0x112)]);});_0x15c502['set'](_0x124f94,{'subject':_0x4e5306,'subscription':_0x430876});}_0x4e5306[_0x28d0ab(0x90)](_0x5da1d0);})),this['_liveShareService'][_0x41965b(0x124)](this[_0x41965b(0x112)])[_0x41965b(0xa0)](_0x5c1dc7=>this[_0x41965b(0xb4)]['send']({'eventID':a['CollaborationEvent'][_0x41965b(0xfa)],'data':{'unitID':this[_0x41965b(0x112)],'operations':{[_0x5c1dc7['id']]:{'id':_0x5c1dc7['id'],'params':JSON[_0x41965b(0x82)](_0x5c1dc7[_0x41965b(0xda)])}}}},this[_0x41965b(0x112)]));}[_0x533ef0(0xbe)](){const _0x5c9f8c=_0x533ef0;var _0x40b809;this[_0x5c9f8c(0x128)]['next']('idle'),(_0x40b809=this[_0x5c9f8c(0xf9)])==null||_0x40b809[_0x5c9f8c(0xc3)](),this[_0x5c9f8c(0xf9)]=null;}['_startFollowing'](){const _0x5abe3a=_0x533ef0;var _0x4206f3;(_0x4206f3=this[_0x5abe3a(0xf9)])==null||_0x4206f3['dispose'](),this[_0x5abe3a(0x128)][_0x5abe3a(0x90)]('following');}[_0x533ef0(0xe5)](){const _0x51b3f5=_0x533ef0;var _0x34c456;this[_0x51b3f5(0x128)][_0x51b3f5(0x90)]('idle'),(_0x34c456=this['_commandDisposable'])==null||_0x34c456[_0x51b3f5(0xc3)](),this['_commandDisposable']=null;}[_0x533ef0(0x10d)](){const _0x1bb28c=_0x533ef0;var _0x12118f;this[_0x1bb28c(0x128)][_0x1bb28c(0x90)](_0x1bb28c(0xbb)),(_0x12118f=this[_0x1bb28c(0xf9)])==null||_0x12118f[_0x1bb28c(0xc3)]();}[_0x533ef0(0xfb)](_0x57c833){const _0xd966aa=_0x533ef0;if([_0xd966aa(0x120),_0xd966aa(0xbb),_0xd966aa(0x135)][_0xd966aa(0x131)](this[_0xd966aa(0x126)])||!_0x57c833['data'][_0xd966aa(0x113)]||_0x57c833[_0xd966aa(0xff)][_0xd966aa(0x113)]===this[_0xd966aa(0xb4)][_0xd966aa(0xc7)]())return;this[_0xd966aa(0x126)]==='idle'&&this[_0xd966aa(0xd4)]();let _0x184532=_0x57c833[_0xd966aa(0xff)][_0xd966aa(0x8b)];Object['values'](_0x184532)[_0xd966aa(0xa0)](_0x69678b=>{const _0x10b080=_0xd966aa;this[_0x10b080(0x137)][_0x10b080(0x13b)](_0x69678b['id'],_0x69678b[_0x10b080(0xda)]?JSON['parse'](_0x69678b[_0x10b080(0xda)]):null,{'fromCollab':!0x0});});}[_0x533ef0(0x13a)](){const _0x4e81f5=_0x533ef0;var _0x2fd860;this[_0x4e81f5(0x128)][_0x4e81f5(0x90)](_0x4e81f5(0x135)),(_0x2fd860=this[_0x4e81f5(0xf9)])==null||_0x2fd860[_0x4e81f5(0xc3)]();}[_0x533ef0(0x9a)](){const _0x2fc600=_0x533ef0;this['_status$'][_0x2fc600(0x90)](_0x2fc600(0x142)),this['_fetchOperations']();}};x=v([_(0x2,e['IConfigService']),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e[_0x533ef0(0xae)])],x);function _0x219b(_0x1b55e1,_0x5a5e8b){_0x1b55e1=_0x1b55e1-0x75;const _0x54114d=_0x5411();let _0x219bdd=_0x54114d[_0x1b55e1];return _0x219bdd;}function S(){const _0x441272=_0x533ef0;let _0x55d2b3=(0x0,t['useDependency'])(y),_0x183daa=(0x0,t[_0x441272(0xc8)])(e[_0x441272(0x144)]),_0x525189=(0x0,t[_0x441272(0xb5)])(()=>_0x183daa[_0x441272(0xa7)](e[_0x441272(0xb1)][_0x441272(0xad)]),void 0x0,!0x1,[]),[_0x1517e0,_0x2f374e]=(0x0,i['useState'])(null),[_0x39750b,_0x4c8844]=(0x0,i[_0x441272(0x95)])('idle'),_0x360c35=(0x0,i[_0x441272(0x105)])(null);return(0x0,i[_0x441272(0x8c)])(()=>(_0x525189&&_0x55d2b3[_0x441272(0x81)](_0x525189[_0x441272(0x104)]())[_0x441272(0xe3)](_0x4d63ea=>{const _0x37bcea=_0x441272;_0x2f374e(_0x4d63ea),_0x360c35[_0x37bcea(0xc0)]=_0x4d63ea[_0x37bcea(0x12b)][_0x37bcea(0xf2)](_0x3b2fbd=>{_0x4c8844(_0x3b2fbd);});}),()=>{const _0x982ce6=_0x441272;var _0x50f7e9;(_0x50f7e9=_0x360c35[_0x982ce6(0xc0)])==null||_0x50f7e9['unsubscribe'](),_0x360c35[_0x982ce6(0xc0)]=null;}),[_0x525189,_0x55d2b3]),_0x1517e0?(0x0,u[_0x441272(0xef)])(n[_0x441272(0xf6)],{'align':_0x441272(0x8a),'disabled':_0x39750b==='offline','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':(0x0,u[_0x441272(0xef)])(C,{'status':_0x39750b,'coordinator':_0x1517e0}),'children':(0x0,u[_0x441272(0xef)])(_0x441272(0xab),{'className':(0x0,n[_0x441272(0x136)])(_0x441272(0xe8),{'univer-cursor-not-allowed':_0x39750b===_0x441272(0x135),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39750b!=='offline'}),'type':_0x441272(0xab),'children':(0x0,u[_0x441272(0xef)])(r['LiveShareIcon'],{'className':'univer-size-4'})})}):null;}function C(_0x1df82c){const _0xc1d989=_0x533ef0;let {status:_0x4436cd,coordinator:_0x4a9930}=_0x1df82c;switch(_0x4436cd){case _0xc1d989(0x142):return(0x0,u[_0xc1d989(0xef)])(w,{'coordinator':_0x4a9930});case'following':return(0x0,u[_0xc1d989(0xef)])(T,{'coordinator':_0x4a9930});case _0xc1d989(0xbb):return(0x0,u[_0xc1d989(0xef)])(E,{'coordinator':_0x4a9930});case _0xc1d989(0x135):return(0x0,u[_0xc1d989(0xef)])(O,{});case _0xc1d989(0x120):return(0x0,u[_0xc1d989(0xef)])(D,{'coordinator':_0x4a9930});default:return null;}}function w(_0x3994a7){const _0x102329=_0x533ef0;let {coordinator:_0x549316}=_0x3994a7;return(0x0,u[_0x102329(0x102)])(u[_0x102329(0x79)],{'children':[(0x0,u[_0x102329(0xef)])(_0x102329(0x10a),{'className':_0x102329(0x12f),'children':_0x102329(0xd5)}),(0x0,u[_0x102329(0xef)])(n[_0x102329(0x13e)],{'onClick':()=>_0x549316['tryStartPresenting'](),'children':_0x102329(0x8d)})]});}function T(_0x5eccf5){const _0x14032a=_0x533ef0;let {coordinator:_0x6bca05}=_0x5eccf5;return(0x0,u[_0x14032a(0x102)])(u[_0x14032a(0x79)],{'children':[(0x0,u[_0x14032a(0xef)])(_0x14032a(0x10a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x14032a(0x10e)}),(0x0,u[_0x14032a(0xef)])(n['Button'],{'onClick':()=>_0x6bca05[_0x14032a(0x98)](),'children':_0x14032a(0x94)})]});}function E(_0x173b51){const _0x2a4a92=_0x533ef0;let {coordinator:_0x585eb2}=_0x173b51;return(0x0,u[_0x2a4a92(0x102)])(u[_0x2a4a92(0x79)],{'children':[(0x0,u[_0x2a4a92(0xef)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a4a92(0x88)}),(0x0,u[_0x2a4a92(0xef)])(n[_0x2a4a92(0x13e)],{'variant':_0x2a4a92(0x109),'onClick':()=>_0x585eb2[_0x2a4a92(0x12d)](),'children':'Start\x20following'})]});}function D(_0x142394){const _0x430585=_0x533ef0;let {coordinator:_0x33b42c}=_0x142394;return(0x0,u['jsxs'])(u['Fragment'],{'children':[(0x0,u[_0x430585(0xef)])(_0x430585(0x10a),{'className':_0x430585(0x12f),'children':_0x430585(0xd6)}),(0x0,u['jsx'])(n['Button'],{'variant':_0x430585(0xbd),'onClick':()=>_0x33b42c[_0x430585(0xbc)](),'children':_0x430585(0xf3)})]});}function O(){const _0x526aa6=_0x533ef0;return(0x0,u[_0x526aa6(0xef)])(u[_0x526aa6(0x79)],{'children':_0x526aa6(0xe2)});}let k=class extends e[_0x533ef0(0x8f)]{constructor(_0x5bc13f,_0x3d553e){const _0xbcc56e=_0x533ef0;super(),this[_0xbcc56e(0x11a)]=_0x5bc13f,this[_0xbcc56e(0x7a)]=_0x3d553e,this[_0xbcc56e(0xe0)]();}[_0x533ef0(0xe0)](){const _0x320699=_0x533ef0;this[_0x320699(0xfd)](this['_uiPartsService'][_0x320699(0x111)](t['BuiltInUIPart'][_0x320699(0xa9)],()=>(0x0,t[_0x320699(0x100)])(S,this[_0x320699(0x11a)])));}};k=v([_(0x0,(0x0,e[_0x533ef0(0x143)])(e[_0x533ef0(0x91)])),_(0x1,t[_0x533ef0(0x11c)])],k);var A=_0x533ef0(0x78),j=_0x533ef0(0xf1);const M=_0x533ef0(0x11d);Symbol(M);const N={};let P=class extends e[_0x533ef0(0x8f)]{constructor(_0x503620){const _0x2fd352=_0x533ef0;super(),this['_liveShareService']=_0x503620,this[_0x2fd352(0x84)]();}[_0x533ef0(0x84)](){const _0x4c4586=_0x533ef0;[d[_0x4c4586(0xb6)]['id'],d[_0x4c4586(0x13d)]['id'],s[_0x4c4586(0xcf)]['id']][_0x4c4586(0xa0)](_0x205b13=>{const _0x4bf294=_0x4c4586;this['disposeWithMe'](this[_0x4bf294(0xb0)][_0x4bf294(0x101)](_0x205b13));});}};P=v([_(0x0,(0x0,e[_0x533ef0(0x143)])(g))],P);let F=class extends e[_0x533ef0(0xb8)]{constructor(_0x4c87f0=N,_0x2af784,_0x3201d2){const _0x23dd47=_0x533ef0;super(),this[_0x23dd47(0xe4)]=_0x4c87f0,this[_0x23dd47(0x11a)]=_0x2af784,this[_0x23dd47(0x121)]=_0x3201d2;let {..._0x5ecf54}=(0x0,e[_0x23dd47(0x115)])({},N,this[_0x23dd47(0xe4)]);this[_0x23dd47(0x121)]['setConfig'](M,_0x5ecf54);}[_0x533ef0(0xf4)](){const _0x17b33d=_0x533ef0;(0x0,e[_0x17b33d(0x118)])(this[_0x17b33d(0x11a)],(0x0,e[_0x17b33d(0x108)])([[g],[y],[P],[k]],this[_0x17b33d(0xe4)]['override'])),(0x0,e[_0x17b33d(0xba)])(this['_injector'],[[P]]);}[_0x533ef0(0x9c)](){const _0x7eeab=_0x533ef0;(0x0,e[_0x7eeab(0xba)])(this[_0x7eeab(0x11a)],[[k]]);}};h(F,_0x533ef0(0x83),e[_0x533ef0(0xb1)][_0x533ef0(0xfe)]),h(F,'pluginName',_0x533ef0(0xcd)),h(F,_0x533ef0(0xb9),A),h(F,'version',j),F=v([(0x0,e['DependentOn'])(o[_0x533ef0(0xee)]),_(0x1,(0x0,e['Inject'])(e[_0x533ef0(0x91)])),_(0x2,e[_0x533ef0(0xe1)])],F),Object[_0x533ef0(0x97)](exports,_0x533ef0(0xdc),{'enumerable':!0x0,'get':function(){return k;}}),exports['LiveShare']=S,Object[_0x533ef0(0x97)](exports,_0x533ef0(0xc9),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x533ef0(0x97)](exports,_0x533ef0(0xac),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x533ef0(0xaf)]=g,exports[_0x533ef0(0xd7)]=b,Object[_0x533ef0(0x97)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return F;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b2793=_0xfb7e;function _0x2c5b(){const _0x3e0a9b=['3017034IkGHGY','217cqbwht','getStatus','330968eyFqaa','call','_liveShareController','No\x20active\x20workbook\x20found.','25818NbfjtG','UNIVER_SHEET','_injector','startPresenting','getCurrentUnitOfType','283806ThXkUl','constructor','1945ocvhKN','default','327324oUaYST','stopPresenting','getLiveShareStatus','getLiveShareCoordinatorSync','get','1340126yuXMoq','tryStartPresenting','symbol','function','270PYSTYI','477GumFMJ','_initialize','startFollowing','1023QSlcJG','14596STYEhl','prototype','extend','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUnitId','iterator','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE','string','stopFollowing'];_0x2c5b=function(){return _0x3e0a9b;};return _0x2c5b();}(function(_0xc6e297,_0x387d01){const _0x5b1b04=_0xfb7e,_0x3d036b=_0xc6e297();while(!![]){try{const _0x34f92b=-parseInt(_0x5b1b04(0x1df))/0x1+parseInt(_0x5b1b04(0x1f3))/0x2+-parseInt(_0x5b1b04(0x1e4))/0x3*(parseInt(_0x5b1b04(0x1e8))/0x4)+-parseInt(_0x5b1b04(0x1d8))/0x5*(-parseInt(_0x5b1b04(0x1fa))/0x6)+parseInt(_0x5b1b04(0x1f4))/0x7*(parseInt(_0x5b1b04(0x1f6))/0x8)+-parseInt(_0x5b1b04(0x1d6))/0x9*(-parseInt(_0x5b1b04(0x1e3))/0xa)+-parseInt(_0x5b1b04(0x1e7))/0xb*(parseInt(_0x5b1b04(0x1da))/0xc);if(_0x34f92b===_0x387d01)break;else _0x3d036b['push'](_0x3d036b['shift']());}catch(_0x222e32){_0x3d036b['push'](_0x3d036b['shift']());}}}(_0x2c5b,0xd1c59));import{LiveShareController as _0xef4ec4,LiveShareStatus as _0x3acb3b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0xcb238d,UniverInstanceType as _0x29e678}from'@univerjs/core';function _0xfb7e(_0x56337f,_0x22fb1a){_0x56337f=_0x56337f-0x1d3;const _0x2c5b12=_0x2c5b();let _0xfb7ebc=_0x2c5b12[_0x56337f];return _0xfb7ebc;}import{FEnum as _0x4164bf,FUniver as _0x82965a}from'@univerjs/core/facade';function o(_0x13af00){'@babel/helpers - typeof';const _0x35659d=_0xfb7e;return o=typeof Symbol==_0x35659d(0x1e2)&&typeof Symbol[_0x35659d(0x1ee)]=='symbol'?function(_0x33c036){return typeof _0x33c036;}:function(_0x355214){const _0x392fa6=_0x35659d;return _0x355214&&typeof Symbol==_0x392fa6(0x1e2)&&_0x355214[_0x392fa6(0x1d7)]===Symbol&&_0x355214!==Symbol[_0x392fa6(0x1e9)]?_0x392fa6(0x1e1):typeof _0x355214;},o(_0x13af00);}function s(_0x4ee508,_0x227648){const _0x49533c=_0xfb7e;if(o(_0x4ee508)!='object'||!_0x4ee508)return _0x4ee508;var _0x26682a=_0x4ee508[Symbol[_0x49533c(0x1eb)]];if(_0x26682a!==void 0x0){var _0x386776=_0x26682a[_0x49533c(0x1f7)](_0x4ee508,_0x227648||_0x49533c(0x1d9));if(o(_0x386776)!='object')return _0x386776;throw TypeError(_0x49533c(0x1ec));}return(_0x227648===_0x49533c(0x1f1)?String:Number)(_0x4ee508);}function c(_0x412104){const _0x4edc78=_0xfb7e;var _0x3fc70b=s(_0x412104,_0x4edc78(0x1f1));return o(_0x3fc70b)==_0x4edc78(0x1e1)?_0x3fc70b:_0x3fc70b+'';}function l(_0x404db2,_0x5dc862,_0x47c5d9){return(_0x5dc862=c(_0x5dc862))in _0x404db2?Object['defineProperty'](_0x404db2,_0x5dc862,{'value':_0x47c5d9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x404db2[_0x5dc862]=_0x47c5d9,_0x404db2;}var u=class extends _0x82965a{constructor(..._0x454747){const _0x59e190=_0xfb7e;super(..._0x454747),l(this,_0x59e190(0x1f8),void 0x0);}[_0x2b2793(0x1e5)](_0xcbb598){const _0xd09ac9=_0x2b2793;this[_0xd09ac9(0x1f8)]=_0xcbb598[_0xd09ac9(0x1de)](_0xef4ec4);}[_0x2b2793(0x1dc)](){const _0x4152e9=_0x2b2793;var _0x1bee29;let _0x59b522=this['_injector'][_0x4152e9(0x1de)](_0xcb238d)[_0x4152e9(0x1d5)](_0x29e678['UNIVER_SHEET']);if(!_0x59b522)throw Error(_0x4152e9(0x1f9));let _0x5e84f4=_0x59b522[_0x4152e9(0x1ed)](),_0x8c4df1=this[_0x4152e9(0x1f8)][_0x4152e9(0x1dd)](_0x5e84f4);return(_0x1bee29=_0x8c4df1==null?void 0x0:_0x8c4df1[_0x4152e9(0x1f5)]())==null?_0x3acb3b[_0x4152e9(0x1f0)]:_0x1bee29;}[_0x2b2793(0x1e6)](){const _0x5095aa=_0x2b2793;let _0x33636b=this[_0x5095aa(0x1d3)][_0x5095aa(0x1de)](_0xcb238d)[_0x5095aa(0x1d5)](_0x29e678[_0x5095aa(0x1fb)]);if(!_0x33636b)throw Error(_0x5095aa(0x1f9));let _0x158f25=_0x33636b[_0x5095aa(0x1ed)](),_0x45d0a1=this[_0x5095aa(0x1f8)]['getLiveShareCoordinatorSync'](_0x158f25);if(!_0x45d0a1)throw Error(_0x5095aa(0x1ef));_0x45d0a1['startFollowing']();}['stopFollowing'](){const _0x7b297=_0x2b2793;let _0x4870c1=this['_injector'][_0x7b297(0x1de)](_0xcb238d)[_0x7b297(0x1d5)](_0x29e678['UNIVER_SHEET']);if(!_0x4870c1)throw Error(_0x7b297(0x1f9));let _0x405d70=_0x4870c1[_0x7b297(0x1ed)](),_0x4809a1=this[_0x7b297(0x1f8)][_0x7b297(0x1dd)](_0x405d70);if(!_0x4809a1)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4809a1[_0x7b297(0x1f2)]();}[_0x2b2793(0x1d4)](){const _0x126d9f=_0x2b2793;let _0x3611e9=this['_injector'][_0x126d9f(0x1de)](_0xcb238d)[_0x126d9f(0x1d5)](_0x29e678[_0x126d9f(0x1fb)]);if(!_0x3611e9)throw Error('No\x20active\x20workbook\x20found.');let _0x3102aa=_0x3611e9[_0x126d9f(0x1ed)](),_0x3fc61d=this['_liveShareController'][_0x126d9f(0x1dd)](_0x3102aa);if(!_0x3fc61d)throw Error(_0x126d9f(0x1ef));_0x3fc61d[_0x126d9f(0x1e0)]();}[_0x2b2793(0x1db)](){const _0x3d92e2=_0x2b2793;let _0x48364c=this['_injector']['get'](_0xcb238d)[_0x3d92e2(0x1d5)](_0x29e678[_0x3d92e2(0x1fb)]);if(!_0x48364c)throw Error('No\x20active\x20workbook\x20found.');let _0xa08bc=_0x48364c[_0x3d92e2(0x1ed)](),_0x59c961=this['_liveShareController'][_0x3d92e2(0x1dd)](_0xa08bc);if(!_0x59c961)throw Error(_0x3d92e2(0x1ef));_0x59c961['stopPresenting']();}};_0x82965a[_0x2b2793(0x1ea)](u);var d=class extends _0x4164bf{get['LiveShareStatusEnum'](){return _0x3acb3b;}};_0x4164bf[_0x2b2793(0x1ea)](d);export{};
1
+ const _0x2b99c4=_0x4127;(function(_0x2dfac7,_0x46956c){const _0x1a42af=_0x4127,_0x41c05f=_0x2dfac7();while(!![]){try{const _0x4ceb61=-parseInt(_0x1a42af(0x92))/0x1*(-parseInt(_0x1a42af(0x85))/0x2)+parseInt(_0x1a42af(0x8e))/0x3*(parseInt(_0x1a42af(0x7d))/0x4)+-parseInt(_0x1a42af(0x98))/0x5+-parseInt(_0x1a42af(0x81))/0x6+-parseInt(_0x1a42af(0x95))/0x7+parseInt(_0x1a42af(0x99))/0x8*(-parseInt(_0x1a42af(0x88))/0x9)+parseInt(_0x1a42af(0x96))/0xa*(parseInt(_0x1a42af(0x76))/0xb);if(_0x4ceb61===_0x46956c)break;else _0x41c05f['push'](_0x41c05f['shift']());}catch(_0x400780){_0x41c05f['push'](_0x41c05f['shift']());}}}(_0x375d,0xbe311));import{LiveShareController as _0x5c080e,LiveShareStatus as _0x393b86}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x466ade,UniverInstanceType as _0x43acff}from'@univerjs/core';import{FEnum as _0x454fcc,FUniver as _0x2bb1ef}from'@univerjs/core/facade';function o(_0x58a6c6){'@babel/helpers - typeof';const _0x26b32f=_0x4127;return o=typeof Symbol==_0x26b32f(0x7c)&&typeof Symbol['iterator']=='symbol'?function(_0x2e8053){return typeof _0x2e8053;}:function(_0x2d2e15){const _0x327a45=_0x26b32f;return _0x2d2e15&&typeof Symbol=='function'&&_0x2d2e15[_0x327a45(0x8a)]===Symbol&&_0x2d2e15!==Symbol['prototype']?_0x327a45(0x86):typeof _0x2d2e15;},o(_0x58a6c6);}function s(_0x3195ec,_0x443e48){const _0x55f6f6=_0x4127;if(o(_0x3195ec)!=_0x55f6f6(0x78)||!_0x3195ec)return _0x3195ec;var _0x454f8f=_0x3195ec[Symbol[_0x55f6f6(0x7f)]];if(_0x454f8f!==void 0x0){var _0x55cdfc=_0x454f8f[_0x55f6f6(0x90)](_0x3195ec,_0x443e48||_0x55f6f6(0x83));if(o(_0x55cdfc)!=_0x55f6f6(0x78))return _0x55cdfc;throw TypeError(_0x55f6f6(0x9b));}return(_0x443e48===_0x55f6f6(0x8c)?String:Number)(_0x3195ec);}function c(_0x454972){const _0xcabb6b=_0x4127;var _0x50cb51=s(_0x454972,_0xcabb6b(0x8c));return o(_0x50cb51)==_0xcabb6b(0x86)?_0x50cb51:_0x50cb51+'';}function _0x4127(_0x2f3811,_0x2300e9){_0x2f3811=_0x2f3811-0x74;const _0x375dc6=_0x375d();let _0x4127c5=_0x375dc6[_0x2f3811];return _0x4127c5;}function l(_0x3d215d,_0x170832,_0x411da9){const _0x4c8e2d=_0x4127;return(_0x170832=c(_0x170832))in _0x3d215d?Object[_0x4c8e2d(0x8d)](_0x3d215d,_0x170832,{'value':_0x411da9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d215d[_0x170832]=_0x411da9,_0x3d215d;}var u=class extends _0x2bb1ef{constructor(..._0x24f388){super(..._0x24f388),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x516b54){const _0x3334c6=_0x4127;this[_0x3334c6(0x75)]=_0x516b54[_0x3334c6(0x79)](_0x5c080e);}[_0x2b99c4(0x7b)](){const _0x156764=_0x2b99c4;var _0x22b1d4;let _0x394362=this['_injector'][_0x156764(0x79)](_0x466ade)['getCurrentUnitOfType'](_0x43acff[_0x156764(0x84)]);if(!_0x394362)throw Error(_0x156764(0x87));let _0x18ee74=_0x394362[_0x156764(0x82)](),_0x24aa04=this[_0x156764(0x75)][_0x156764(0x7e)](_0x18ee74);return(_0x22b1d4=_0x24aa04==null?void 0x0:_0x24aa04[_0x156764(0x80)]())==null?_0x393b86[_0x156764(0x9a)]:_0x22b1d4;}[_0x2b99c4(0x89)](){const _0x382580=_0x2b99c4;let _0x3a4637=this['_injector']['get'](_0x466ade)[_0x382580(0x77)](_0x43acff[_0x382580(0x84)]);if(!_0x3a4637)throw Error(_0x382580(0x87));let _0x5a63c3=_0x3a4637[_0x382580(0x82)](),_0x544cdf=this[_0x382580(0x75)][_0x382580(0x7e)](_0x5a63c3);if(!_0x544cdf)throw Error(_0x382580(0x8b));_0x544cdf[_0x382580(0x89)]();}[_0x2b99c4(0x7a)](){const _0x10e062=_0x2b99c4;let _0x2bb08d=this[_0x10e062(0x8f)][_0x10e062(0x79)](_0x466ade)[_0x10e062(0x77)](_0x43acff['UNIVER_SHEET']);if(!_0x2bb08d)throw Error(_0x10e062(0x87));let _0xaf535=_0x2bb08d[_0x10e062(0x82)](),_0x313a6b=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xaf535);if(!_0x313a6b)throw Error(_0x10e062(0x8b));_0x313a6b[_0x10e062(0x7a)]();}[_0x2b99c4(0x94)](){const _0x1063f5=_0x2b99c4;let _0x9ccbb8=this[_0x1063f5(0x8f)][_0x1063f5(0x79)](_0x466ade)[_0x1063f5(0x77)](_0x43acff[_0x1063f5(0x84)]);if(!_0x9ccbb8)throw Error('No\x20active\x20workbook\x20found.');let _0x8cb53=_0x9ccbb8[_0x1063f5(0x82)](),_0xd37551=this['_liveShareController'][_0x1063f5(0x7e)](_0x8cb53);if(!_0xd37551)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd37551[_0x1063f5(0x97)]();}[_0x2b99c4(0x93)](){const _0x1aa385=_0x2b99c4;let _0x17f76c=this[_0x1aa385(0x8f)][_0x1aa385(0x79)](_0x466ade)[_0x1aa385(0x77)](_0x43acff[_0x1aa385(0x84)]);if(!_0x17f76c)throw Error('No\x20active\x20workbook\x20found.');let _0x1f4350=_0x17f76c[_0x1aa385(0x82)](),_0x18a7ee=this[_0x1aa385(0x75)][_0x1aa385(0x7e)](_0x1f4350);if(!_0x18a7ee)throw Error(_0x1aa385(0x8b));_0x18a7ee['stopPresenting']();}};function _0x375d(){const _0x57ef33=['7015505MxDMzB','440088rxADDv','IDLE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','_liveShareController','121VKiDZH','getCurrentUnitOfType','object','get','stopFollowing','getLiveShareStatus','function','192IIMkuk','getLiveShareCoordinatorSync','toPrimitive','getStatus','2151228BBzvqQ','getUnitId','default','UNIVER_SHEET','401818ykiyVb','symbol','No\x20active\x20workbook\x20found.','54fPVGWF','startFollowing','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','defineProperty','78753FJEMfP','_injector','call','extend','3kCEKYF','stopPresenting','startPresenting','4151203XPisOI','1455440IjoCew','tryStartPresenting'];_0x375d=function(){return _0x57ef33;};return _0x375d();}_0x2bb1ef[_0x2b99c4(0x91)](u);var d=class extends _0x454fcc{get[_0x2b99c4(0x74)](){return _0x393b86;}};_0x454fcc[_0x2b99c4(0x91)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ceb6f=_0xf242;(function(_0x3b1cf9,_0x30260b){const _0x5cd423=_0xf242,_0x347ef9=_0x3b1cf9();while(!![]){try{const _0x471c79=parseInt(_0x5cd423(0x1f5))/0x1+-parseInt(_0x5cd423(0x19d))/0x2+-parseInt(_0x5cd423(0x1db))/0x3+-parseInt(_0x5cd423(0x189))/0x4*(parseInt(_0x5cd423(0x1c7))/0x5)+parseInt(_0x5cd423(0x1ae))/0x6*(parseInt(_0x5cd423(0x184))/0x7)+parseInt(_0x5cd423(0x1a9))/0x8+-parseInt(_0x5cd423(0x210))/0x9;if(_0x471c79===_0x30260b)break;else _0x347ef9['push'](_0x347ef9['shift']());}catch(_0xb63a8a){_0x347ef9['push'](_0x347ef9['shift']());}}}(_0x3ce7,0x8734e));import{CommandType as _0x13e285,DependentOn as _0x99e981,Disposable as _0x49320b,DisposableCollection as _0x5a4b9d,ICommandService as _0x2b3864,IConfigService as _0x2bf9f3,IUniverInstanceService as _0x43e007,Inject as _0x478c03,Injector as _0x31717f,Plugin as _0x58c46d,RxDisposable as _0x49b881,UniverInstanceType as _0xaf5923,merge as _0x3d1d44,mergeOverrideWithDependencies as _0x352515,registerDependencies as _0x25e916,toDisposable as _0x5e1636,touchDependencies as _0x837966}from'@univerjs/core';import{BuiltInUIPart as _0x6407ff,IUIPartsService as _0x5acf09,connectInjector as _0x17807b,useDependency as _0x5d2936,useObservable as _0x4b13c5}from'@univerjs/ui';import{Button as _0x45d162,Dropdown as _0x5e1365,clsx as _0x21aa0f}from'@univerjs/design';import{LiveShareIcon as _0xee1e9c}from'@univerjs/icons';import{useEffect as _0x37bb14,useRef as _0x54f12e,useState as _0x2cbf33}from'react';import{CollaborationEvent as _0xc2fe54,parseProtocolChangeset as _0x5a7fff}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x11c673,SessionStatus as _0x51afad,UniverCollaborationClientPlugin as _0x558de1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x598b51,SetWorksheetActiveOperation as _0x1a55e4}from'@univerjs/sheets';import{BehaviorSubject as _0x35a652,Subject as _0x1eeb39}from'rxjs';import{takeUntil as _0x1df922,throttleTime as _0xdaccc4}from'rxjs/operators';import{Fragment as _0x75d924,jsx as _0xad4a0d,jsxs as _0x1069d8}from'react/jsx-runtime';import{SetScrollOperation as _0x541869,SetZoomRatioOperation as _0x4c9a92}from'@univerjs/sheets-ui';function L(_0x502970){'@babel/helpers - typeof';const _0x5e7438=_0xf242;return L=typeof Symbol==_0x5e7438(0x1aa)&&typeof Symbol['iterator']=='symbol'?function(_0x3b1ddb){return typeof _0x3b1ddb;}:function(_0xa315e9){const _0x37421e=_0x5e7438;return _0xa315e9&&typeof Symbol==_0x37421e(0x1aa)&&_0xa315e9[_0x37421e(0x1a8)]===Symbol&&_0xa315e9!==Symbol[_0x37421e(0x200)]?_0x37421e(0x208):typeof _0xa315e9;},L(_0x502970);}function R(_0x2069b4,_0x5afd55){const _0x50ac9c=_0xf242;if(L(_0x2069b4)!=_0x50ac9c(0x1f1)||!_0x2069b4)return _0x2069b4;var _0x310f51=_0x2069b4[Symbol[_0x50ac9c(0x1c5)]];if(_0x310f51!==void 0x0){var _0x2d0ef7=_0x310f51[_0x50ac9c(0x1d8)](_0x2069b4,_0x5afd55||_0x50ac9c(0x19e));if(L(_0x2d0ef7)!='object')return _0x2d0ef7;throw TypeError(_0x50ac9c(0x191));}return(_0x5afd55===_0x50ac9c(0x1be)?String:Number)(_0x2069b4);}function z(_0x29aedc){const _0xbb8dea=_0xf242;var _0x31cee0=R(_0x29aedc,_0xbb8dea(0x1be));return L(_0x31cee0)==_0xbb8dea(0x208)?_0x31cee0:_0x31cee0+'';}function B(_0x3adf98,_0x508364,_0x13822a){return(_0x508364=z(_0x508364))in _0x3adf98?Object['defineProperty'](_0x3adf98,_0x508364,{'value':_0x13822a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3adf98[_0x508364]=_0x13822a,_0x3adf98;}var V=class extends _0x49320b{constructor(..._0x1f2c5b){const _0x3edb34=_0xf242;super(..._0x1f2c5b),B(this,_0x3edb34(0x18e),new Set()),B(this,_0x3edb34(0x1cd),new Set());}[_0x1ceb6f(0x1d0)](_0x430b44){const _0x1dc732=_0x1ceb6f;return this[_0x1dc732(0x18e)][_0x1dc732(0x1fc)](_0x430b44),_0x5e1636(()=>this[_0x1dc732(0x18e)]['delete'](_0x430b44));}[_0x1ceb6f(0x1f4)](_0x30dbb3){const _0x38abe2=_0x1ceb6f;return this[_0x38abe2(0x1cd)]['add'](_0x30dbb3),_0x5e1636(()=>this[_0x38abe2(0x1cd)][_0x38abe2(0x1af)](_0x30dbb3));}[_0x1ceb6f(0x190)](_0x291aa3){const _0x11880e=_0x1ceb6f;return this['_sharedOperations'][_0x11880e(0x20a)](_0x291aa3);}['getInitialStates'](_0x2e5ee0){const _0x350403=_0x1ceb6f;return Array[_0x350403(0x187)](this['_reporters'])[_0x350403(0x19a)](_0x4cafe1=>_0x4cafe1(_0x2e5ee0));}};function H(_0x44db13,_0x1922eb){return function(_0x51f62f,_0xd9aa90){_0x1922eb(_0x51f62f,_0xd9aa90,_0x44db13);};}function U(_0x5c3ad2,_0x17ec96,_0xb7a8f3,_0x5e3061){const _0x124f31=_0x1ceb6f;var _0x25e8d9=arguments[_0x124f31(0x211)],_0x542298=_0x25e8d9<0x3?_0x17ec96:_0x5e3061===null?_0x5e3061=Object[_0x124f31(0x204)](_0x17ec96,_0xb7a8f3):_0x5e3061,_0x421246;if(typeof Reflect==_0x124f31(0x1f1)&&typeof Reflect[_0x124f31(0x1e8)]==_0x124f31(0x1aa))_0x542298=Reflect['decorate'](_0x5c3ad2,_0x17ec96,_0xb7a8f3,_0x5e3061);else{for(var _0x5b963c=_0x5c3ad2['length']-0x1;_0x5b963c>=0x0;_0x5b963c--)(_0x421246=_0x5c3ad2[_0x5b963c])&&(_0x542298=(_0x25e8d9<0x3?_0x421246(_0x542298):_0x25e8d9>0x3?_0x421246(_0x17ec96,_0xb7a8f3,_0x542298):_0x421246(_0x17ec96,_0xb7a8f3))||_0x542298);}return _0x25e8d9>0x3&&_0x542298&&Object[_0x124f31(0x1ad)](_0x17ec96,_0xb7a8f3,_0x542298),_0x542298;}let W=class extends _0x49b881{constructor(_0x4d23df,_0xf7099a,_0x4edc27){const _0x35bdfa=_0x1ceb6f;super(),this[_0x35bdfa(0x195)]=_0x4d23df,this[_0x35bdfa(0x1ab)]=_0xf7099a,this['_collabSessionService']=_0x4edc27,B(this,_0x35bdfa(0x1ff),new Map()),this[_0x35bdfa(0x1fd)]();}async[_0x1ceb6f(0x1de)](_0x58f453){const _0xd25627=_0x1ceb6f;return this[_0xd25627(0x1ff)][_0xd25627(0x20a)](_0x58f453)||await this['_startLiveShareCoordinator'](_0x58f453),this[_0xd25627(0x1ff)][_0xd25627(0x1a6)](_0x58f453);}['getLiveShareCoordinatorSync'](_0x234adb){const _0x1a5a96=_0x1ceb6f;var _0x28268e;return(_0x28268e=this[_0x1a5a96(0x1ff)][_0x1a5a96(0x1a6)](_0x234adb))==null?null:_0x28268e;}[_0x1ceb6f(0x1fd)](){const _0xb8758d=_0x1ceb6f;this[_0xb8758d(0x195)][_0xb8758d(0x18d)](_0xaf5923['UNIVER_SHEET'])['pipe'](_0x1df922(this['dispose$']))[_0xb8758d(0x1ec)](async _0x1377fe=>{const _0x1b1a24=_0xb8758d;let _0xae6b80=_0x1377fe[_0x1b1a24(0x1fa)][_0x1b1a24(0x194)]();this[_0x1b1a24(0x1ff)][_0x1b1a24(0x20a)](_0xae6b80)||this[_0x1b1a24(0x199)](_0xae6b80);}),this[_0xb8758d(0x195)][_0xb8758d(0x1a4)](_0xaf5923[_0xb8758d(0x1f6)])[_0xb8758d(0x180)](_0x1df922(this[_0xb8758d(0x19f)]))[_0xb8758d(0x1ec)](_0x270781=>{const _0x1c37d0=_0xb8758d;let _0x30907c=_0x270781[_0x1c37d0(0x194)](),_0x580051=this[_0x1c37d0(0x1ff)][_0x1c37d0(0x1a6)](_0x30907c);_0x580051==null||_0x580051['dispose']();});}async[_0x1ceb6f(0x199)](_0x3b7753){const _0xe28cad=_0x1ceb6f;let _0x1ea5d5=await this[_0xe28cad(0x1fe)]['requireSession'](_0x3b7753),_0x2ce62f=this[_0xe28cad(0x1ab)][_0xe28cad(0x1e4)](K,_0x3b7753,_0x1ea5d5);return _0x2ce62f[_0xe28cad(0x1ed)](),this[_0xe28cad(0x1ff)][_0xe28cad(0x1c8)](_0x3b7753,_0x2ce62f),_0x2ce62f;}};W=U([H(0x0,_0x43e007),H(0x1,_0x478c03(_0x31717f)),H(0x2,_0x478c03(_0x11c673))],W);let G=function(_0x77396e){const _0xe15eaa=_0x1ceb6f;return _0x77396e[_0xe15eaa(0x1a3)]=_0xe15eaa(0x1a1),_0x77396e[_0xe15eaa(0x183)]='idle',_0x77396e[_0xe15eaa(0x17f)]=_0xe15eaa(0x1b1),_0x77396e[_0xe15eaa(0x1c0)]=_0xe15eaa(0x186),_0x77396e['PRESENTING']=_0xe15eaa(0x1f3),_0x77396e;}({}),K=class extends _0x49b881{get[_0x1ceb6f(0x1b3)](){const _0x334a44=_0x1ceb6f;return this[_0x334a44(0x1da)][_0x334a44(0x1cf)]();}constructor(_0x1dd1ec,_0x2aa674,_0x37d1d3,_0x37f69,_0x1ac378){const _0x368346=_0x1ceb6f;super(),this[_0x368346(0x1eb)]=_0x1dd1ec,this[_0x368346(0x209)]=_0x2aa674,this[_0x368346(0x1dc)]=_0x37d1d3,this[_0x368346(0x1d4)]=_0x37f69,this['_commandService']=_0x1ac378,B(this,'_status$',new _0x35a652('idle')),B(this,_0x368346(0x1dd),this['_status$'][_0x368346(0x1bc)]()),B(this,_0x368346(0x1fd),!0x1),B(this,'_commandDisposable',null),B(this,_0x368346(0x19b),null);}[_0x1ceb6f(0x1e3)](){const _0x5b274e=_0x1ceb6f;var _0x5bdca0;(_0x5bdca0=this['_commandDisposable'])==null||_0x5bdca0[_0x5b274e(0x1e3)](),this[_0x5b274e(0x1da)]['next'](_0x5b274e(0x20f)),this[_0x5b274e(0x1da)]['complete']();}[_0x1ceb6f(0x1d5)](){const _0x79685d=_0x1ceb6f;return this[_0x79685d(0x1b3)];}[_0x1ceb6f(0x1ed)](){const _0x194672=_0x1ceb6f;this[_0x194672(0x1fd)]||(this['_init']=!0x0,this[_0x194672(0x209)]['sessionStatus$'][_0x194672(0x180)](_0x1df922(this['dispose$']))['subscribe'](_0x407ac0=>{const _0x3c2b3d=_0x194672;switch(_0x407ac0){case _0x51afad[_0x3c2b3d(0x1a3)]:this[_0x3c2b3d(0x18b)]();break;case _0x51afad[_0x3c2b3d(0x1e1)]:this[_0x3c2b3d(0x1f0)]();break;default:}}),this['_collabSession'][_0x194672(0x1b5)]['pipe'](_0x1df922(this[_0x194672(0x19f)]))[_0x194672(0x1ec)](_0x5c331f=>{const _0x3fd5f6=_0x194672;let {eventID:_0x3c949c}=_0x5c331f;switch(_0x3c949c){case _0xc2fe54[_0x3fd5f6(0x1bd)]:this[_0x3fd5f6(0x1ee)](_0x5c331f);break;case _0xc2fe54[_0x3fd5f6(0x193)]:this[_0x3fd5f6(0x192)](_0x5c331f);break;case _0xc2fe54['LIVESHARE_TERMINATE']:this[_0x3fd5f6(0x20b)]();break;case _0xc2fe54['NEW_CHANGESETS']:this[_0x3fd5f6(0x1e0)](_0x5c331f);break;default:}}));}[_0x1ceb6f(0x182)](){const _0x28fb1e=_0x1ceb6f;this['_collabSession'][_0x28fb1e(0x1cc)]({'eventID':_0xc2fe54[_0x28fb1e(0x1bf)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x28fb1e(0x19c)]()}},this[_0x28fb1e(0x1eb)]);}[_0x1ceb6f(0x1ca)](){const _0x3de99b=_0x1ceb6f;this[_0x3de99b(0x1b3)]==='presenting'&&(this['_status$'][_0x3de99b(0x20e)](_0x3de99b(0x20f)),this['_collabSession'][_0x3de99b(0x1cc)]({'eventID':_0xc2fe54[_0x3de99b(0x1ba)],'data':{'unitID':this['_unitID']}},this[_0x3de99b(0x1eb)]));}[_0x1ceb6f(0x1c4)](){const _0x40cb96=_0x1ceb6f;this[_0x40cb96(0x1b3)]===_0x40cb96(0x186)&&(this['_status$']['next'](_0x40cb96(0x1b1)),this['_startFollowing']());}['stopFollowing'](){const _0xcab73e=_0x1ceb6f;this[_0xcab73e(0x1b3)]==='following'&&this[_0xcab73e(0x1e9)]();}[_0x1ceb6f(0x1ee)](_0x4c1081){const _0x18fbe8=_0x1ceb6f;let {presenter:_0x5e21aa}=_0x4c1081[_0x18fbe8(0x1a2)],_0x502fa2=this['_collabSession']['getMemberID']();this[_0x18fbe8(0x19b)]=_0x5e21aa,_0x5e21aa===_0x502fa2?(this[_0x18fbe8(0x1e9)](),this[_0x18fbe8(0x1b0)]()):this[_0x18fbe8(0x1b3)]!==_0x18fbe8(0x186)&&(this[_0x18fbe8(0x181)](),this[_0x18fbe8(0x1ea)]());}['_fetchOperations'](){const _0x260a89=_0x1ceb6f;let _0x3382bd={'eventID':_0xc2fe54[_0x260a89(0x197)]};this[_0x260a89(0x209)]['send'](_0x3382bd,this['_unitID']);}[_0x1ceb6f(0x20b)](){const _0x589cf1=_0x1ceb6f;this[_0x589cf1(0x19b)]=null,this[_0x589cf1(0x1b3)]!==_0x589cf1(0x1f3)&&this[_0x589cf1(0x1ef)]();}[_0x1ceb6f(0x1e0)](_0x14366f){const _0x1a2853=_0x1ceb6f;if(this[_0x1a2853(0x1b3)]===_0x1a2853(0x1b1)&&this[_0x1a2853(0x19b)]===_0x14366f['data'][_0x1a2853(0x18c)]){let _0x94eb8f=_0x5a7fff(_0x14366f[_0x1a2853(0x1a2)])[_0x1a2853(0x203)][_0x1a2853(0x1c6)]()[_0x1a2853(0x1e7)](_0x5a1039=>_0x5a1039['id']===_0x598b51['id']);if(_0x94eb8f){let _0x324519=_0x94eb8f[_0x1a2853(0x1e5)]['unitId'],_0x4328e5=_0x94eb8f[_0x1a2853(0x1e5)][_0x1a2853(0x198)]['id'];setTimeout(()=>{const _0x263a83=_0x1a2853;this[_0x263a83(0x1b6)]['executeCommand'](_0x1a55e4['id'],{'unitId':_0x324519,'subUnitId':_0x4328e5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4b602c=_0x1ceb6f;this['_status$'][_0x4b602c(0x20e)]('presenting');let _0x47970d=new Map(),_0x39934c=this[_0x4b602c(0x18a)]=new _0x5a4b9d();_0x39934c[_0x4b602c(0x1fc)](_0x5e1636(()=>{const _0x1eebd4=_0x4b602c;_0x47970d['forEach'](_0x4c7567=>_0x4c7567[_0x1eebd4(0x185)]()),_0x47970d['clear']();})),_0x39934c[_0x4b602c(0x1fc)](this[_0x4b602c(0x1b6)]['onCommandExecuted'](_0x540a7b=>{const _0x1c5ae6=_0x4b602c;if(_0x540a7b['type']!==_0x13e285[_0x1c5ae6(0x1f7)]||!this[_0x1c5ae6(0x1d4)][_0x1c5ae6(0x190)](_0x540a7b['id']))return;let {id:_0x4812b3}=_0x540a7b,_0x4ddf37;if(_0x47970d[_0x1c5ae6(0x20a)](_0x4812b3))_0x4ddf37=_0x47970d[_0x1c5ae6(0x1a6)](_0x4812b3);else{var _0x413c59;_0x4ddf37=new _0x1eeb39(),_0x47970d[_0x1c5ae6(0x1c8)](_0x4812b3,_0x4ddf37),_0x4ddf37[_0x1c5ae6(0x180)](_0xdaccc4((_0x413c59=this[_0x1c5ae6(0x1dc)][_0x1c5ae6(0x1fb)](_0x1c5ae6(0x1d7)))==null?0xc8:_0x413c59,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1c5ae6(0x1ec)](_0x14ad6a=>{const _0x4dd93f=_0x1c5ae6;this[_0x4dd93f(0x209)][_0x4dd93f(0x1cc)]({'eventID':_0xc2fe54[_0x4dd93f(0x193)],'data':{'unitID':this['_unitID'],'operations':{[_0x14ad6a['id']]:{'id':_0x14ad6a['id'],'params':JSON[_0x4dd93f(0x213)](_0x14ad6a[_0x4dd93f(0x1e5)])}}}},this[_0x4dd93f(0x1eb)]);});}_0x4ddf37[_0x1c5ae6(0x20e)](_0x540a7b);})),this[_0x4b602c(0x1d4)]['getInitialStates'](this[_0x4b602c(0x1eb)])['forEach'](_0xe1d573=>this[_0x4b602c(0x209)][_0x4b602c(0x1cc)]({'eventID':_0xc2fe54['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xe1d573['id']]:{'id':_0xe1d573['id'],'params':JSON[_0x4b602c(0x213)](_0xe1d573[_0x4b602c(0x1e5)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2440e6=_0x1ceb6f;var _0x383198;this['_status$'][_0x2440e6(0x20e)](_0x2440e6(0x20f)),(_0x383198=this[_0x2440e6(0x18a)])==null||_0x383198[_0x2440e6(0x1e3)](),this[_0x2440e6(0x18a)]=null;}['_startFollowing'](){const _0x2ca64a=_0x1ceb6f;var _0x46f4ed;(_0x46f4ed=this[_0x2ca64a(0x18a)])==null||_0x46f4ed[_0x2ca64a(0x1e3)](),this[_0x2ca64a(0x1da)][_0x2ca64a(0x20e)](_0x2ca64a(0x1b1));}[_0x1ceb6f(0x1ef)](){const _0x94429b=_0x1ceb6f;var _0x120fc9;this[_0x94429b(0x1da)]['next']('idle'),(_0x120fc9=this[_0x94429b(0x18a)])==null||_0x120fc9[_0x94429b(0x1e3)](),this[_0x94429b(0x18a)]=null;}[_0x1ceb6f(0x1e9)](){const _0x36a280=_0x1ceb6f;var _0x2b043b;this[_0x36a280(0x1da)][_0x36a280(0x20e)](_0x36a280(0x186)),(_0x2b043b=this[_0x36a280(0x18a)])==null||_0x2b043b['dispose']();}['_handleOperation'](_0x5649d3){const _0x31f62d=_0x1ceb6f;if([_0x31f62d(0x1f3),_0x31f62d(0x186),_0x31f62d(0x1a1)][_0x31f62d(0x1b9)](this[_0x31f62d(0x1b3)])||!_0x5649d3[_0x31f62d(0x1a2)][_0x31f62d(0x1c1)]||_0x5649d3[_0x31f62d(0x1a2)][_0x31f62d(0x1c1)]===this[_0x31f62d(0x209)][_0x31f62d(0x19c)]())return;this[_0x31f62d(0x1b3)]===_0x31f62d(0x20f)&&this[_0x31f62d(0x1ea)]();let _0x2f400a=_0x5649d3[_0x31f62d(0x1a2)][_0x31f62d(0x1b7)];Object['values'](_0x2f400a)[_0x31f62d(0x1e6)](_0x5768a7=>{const _0x1c4057=_0x31f62d;this[_0x1c4057(0x1b6)][_0x1c4057(0x1d3)](_0x5768a7['id'],_0x5768a7[_0x1c4057(0x1e5)]?JSON[_0x1c4057(0x1df)](_0x5768a7[_0x1c4057(0x1e5)]):null,{'fromCollab':!0x0});});}[_0x1ceb6f(0x18b)](){const _0x5bb17a=_0x1ceb6f;var _0x3c7e05;this['_status$'][_0x5bb17a(0x20e)](_0x5bb17a(0x1a1)),(_0x3c7e05=this[_0x5bb17a(0x18a)])==null||_0x3c7e05[_0x5bb17a(0x1e3)]();}[_0x1ceb6f(0x1f0)](){const _0x1d3745=_0x1ceb6f;this[_0x1d3745(0x1da)][_0x1d3745(0x20e)](_0x1d3745(0x20f)),this[_0x1d3745(0x1b4)]();}};K=U([H(0x2,_0x2bf9f3),H(0x3,_0x478c03(V)),H(0x4,_0x2b3864)],K);function q(){const _0x567b6b=_0x1ceb6f;let _0x247b4f=_0x5d2936(W),_0x46cb69=_0x5d2936(_0x43e007),_0x4fa823=_0x4b13c5(()=>_0x46cb69['getCurrentTypeOfUnit$'](_0xaf5923[_0x567b6b(0x1f6)]),void 0x0,!0x1,[]),[_0x4eb670,_0x1c81c0]=_0x2cbf33(null),[_0x21ed0c,_0x30b9d0]=_0x2cbf33(_0x567b6b(0x20f)),_0x3d2ca8=_0x54f12e(null);return _0x37bb14(()=>(_0x4fa823&&_0x247b4f[_0x567b6b(0x1de)](_0x4fa823[_0x567b6b(0x194)]())[_0x567b6b(0x1cb)](_0x7d2909=>{const _0x55c766=_0x567b6b;_0x1c81c0(_0x7d2909),_0x3d2ca8[_0x55c766(0x20c)]=_0x7d2909[_0x55c766(0x1dd)][_0x55c766(0x1ec)](_0x2a4b2e=>{_0x30b9d0(_0x2a4b2e);});}),()=>{const _0x3e2956=_0x567b6b;var _0x5eaf64;(_0x5eaf64=_0x3d2ca8[_0x3e2956(0x20c)])==null||_0x5eaf64[_0x3e2956(0x1ac)](),_0x3d2ca8[_0x3e2956(0x20c)]=null;}),[_0x4fa823,_0x247b4f]),_0x4eb670?_0xad4a0d(_0x5e1365,{'align':_0x567b6b(0x207),'disabled':_0x21ed0c==='offline','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':_0xad4a0d(ce,{'status':_0x21ed0c,'coordinator':_0x4eb670}),'children':_0xad4a0d(_0x567b6b(0x1b2),{'className':_0x21aa0f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x21ed0c===_0x567b6b(0x1a1),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed0c!==_0x567b6b(0x1a1)}),'type':_0x567b6b(0x1b2),'children':_0xad4a0d(_0xee1e9c,{'className':_0x567b6b(0x20d)})})}):null;}function ce(_0x3f732b){const _0x434c63=_0x1ceb6f;let {status:_0x3757e9,coordinator:_0x221a76}=_0x3f732b;switch(_0x3757e9){case'idle':return _0xad4a0d(le,{'coordinator':_0x221a76});case _0x434c63(0x1b1):return _0xad4a0d(ue,{'coordinator':_0x221a76});case _0x434c63(0x186):return _0xad4a0d(de,{'coordinator':_0x221a76});case _0x434c63(0x1a1):return _0xad4a0d(fe,{});case _0x434c63(0x1f3):return _0xad4a0d(J,{'coordinator':_0x221a76});default:return null;}}function le(_0x28f13f){const _0x5b2181=_0x1ceb6f;let {coordinator:_0xb9e5e6}=_0x28f13f;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d(_0x5b2181(0x1c3),{'className':_0x5b2181(0x1bb),'children':_0x5b2181(0x206)}),_0xad4a0d(_0x45d162,{'onClick':()=>_0xb9e5e6[_0x5b2181(0x182)](),'children':_0x5b2181(0x1e2)})]});}function ue(_0x4d09ce){const _0x4df3d4=_0x1ceb6f;let {coordinator:_0x53cf08}=_0x4d09ce;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d(_0x4df3d4(0x1c3),{'className':_0x4df3d4(0x1bb),'children':'You\x27re\x20following\x20the\x20presenter'}),_0xad4a0d(_0x45d162,{'onClick':()=>_0x53cf08[_0x4df3d4(0x202)](),'children':'Stop\x20following'})]});}function de(_0xc72e3b){const _0x1315a3=_0x1ceb6f;let {coordinator:_0x15d306}=_0xc72e3b;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d(_0x1315a3(0x1c3),{'className':_0x1315a3(0x1bb),'children':_0x1315a3(0x1b8)}),_0xad4a0d(_0x45d162,{'variant':'text','onClick':()=>_0x15d306[_0x1315a3(0x1c4)](),'children':_0x1315a3(0x1a0)})]});}function J(_0x5342fa){const _0x3306e0=_0x1ceb6f;let {coordinator:_0x37559e}=_0x5342fa;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d('div',{'className':_0x3306e0(0x1bb),'children':_0x3306e0(0x1f9)}),_0xad4a0d(_0x45d162,{'variant':_0x3306e0(0x19e),'onClick':()=>_0x37559e[_0x3306e0(0x1ca)](),'children':_0x3306e0(0x188)})]});}function fe(){return _0xad4a0d(_0x75d924,{'children':'You\x27are\x20offline.'});}let Y=class extends _0x49320b{constructor(_0x5c830e,_0x4f1d59){const _0x338185=_0x1ceb6f;super(),this[_0x338185(0x1ab)]=_0x5c830e,this[_0x338185(0x1a7)]=_0x4f1d59,this[_0x338185(0x1f8)]();}['_mountLiveShare'](){const _0x31eaca=_0x1ceb6f;this[_0x31eaca(0x1c9)](this[_0x31eaca(0x1a7)][_0x31eaca(0x1c2)](_0x6407ff[_0x31eaca(0x1d2)],()=>_0x17807b(q,this[_0x31eaca(0x1ab)])));}};Y=U([H(0x0,_0x478c03(_0x31717f)),H(0x1,_0x5acf09)],Y);var pe=_0x1ceb6f(0x201),me=_0x1ceb6f(0x1d9);const X='live-share.config';function _0x3ce7(){const _0x9766b3=['unsubscribe','defineProperty','3126822YEJWkH','delete','_startPresenting','following','button','_status','_fetchOperations','event$','_commandService','operations','You\x27re\x20not\x20following\x20the\x20presenter','includes','LIVESHARE_TERMINATE','univer-mb-3\x20univer-w-full\x20univer-text-sm','asObservable','LIVESHARE_NEW_HOST','string','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','presenter','registerComponent','div','startFollowing','toPrimitive','reverse','205JEKNVA','set','disposeWithMe','stopPresenting','then','send','_reporters','UNIVER_LIVE_SHARE_PLUGIN','getValue','registerSharedOperation','_config','HEADER_MENU','executeCommand','_liveShareService','getStatus','onStarting','SAME_OPERATION_SHARE_INTERVAL','call','0.23.0','_status$','2067648bqWgrF','_configService','status$','getLiveShareCoordinator','parse','_handleNewChangeSets','ONLINE','Start','dispose','createInstance','params','forEach','find','decorate','_stopFollowing','_startFollowing','_unitID','subscribe','init','_handleNewHost','_beIdle','_handleOnline','object','version','presenting','registerInitialStateReporter','684373AblLeV','UNIVER_SHEET','OPERATION','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','unit','getConfig','add','_init','_collabSessionService','_entities','prototype','@univerjs-pro/live-share','stopFollowing','mutations','getOwnPropertyDescriptor','setConfig','Present\x20this\x20document','end','symbol','_collabSession','has','_handleTerminate','current','univer-size-4','next','idle','1574982uqdikN','length','override','stringify','FOLLOWING','pipe','_stopPresenting','tryStartPresenting','IDLE','7rCuqgV','complete','not-following','from','Stop\x20presenting','1776ZGruRQ','_commandDisposable','_handleOffline','memberID','getTypeOfUnitAdded$','_sharedOperations','packageName','shouldShareOperation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_handleOperation','LIVESHARE_OPERATION','getUnitId','_univerInstanceService','UNIVER_UNKNOWN','LIVESHARE_FETCH_OPERATIONS','sheet','_startLiveShareCoordinator','map','_presenter','getMemberID','1558000Drjjlm','default','dispose$','Start\x20following','offline','data','OFFLINE','getTypeOfUnitDisposed$','type','get','_uiPartsService','constructor','8077712blRRbK','function','_injector'];_0x3ce7=function(){return _0x9766b3;};return _0x3ce7();}Symbol(X);const Z={};let Q=class extends _0x49320b{constructor(_0x58079a){const _0x5893d8=_0x1ceb6f;super(),this[_0x5893d8(0x1d4)]=_0x58079a,this[_0x5893d8(0x1fd)]();}[_0x1ceb6f(0x1fd)](){const _0xf05b41=_0x1ceb6f;[_0x4c9a92['id'],_0x541869['id'],_0x1a55e4['id']][_0xf05b41(0x1e6)](_0x5db70b=>{const _0x35f844=_0xf05b41;this[_0x35f844(0x1c9)](this['_liveShareService'][_0x35f844(0x1d0)](_0x5db70b));});}};Q=U([H(0x0,_0x478c03(V))],Q);let $=class extends _0x58c46d{constructor(_0x13d814=Z,_0x9c8449,_0x5652e4){const _0x17b114=_0x1ceb6f;super(),this[_0x17b114(0x1d1)]=_0x13d814,this[_0x17b114(0x1ab)]=_0x9c8449,this['_configService']=_0x5652e4;let {..._0x407d63}=_0x3d1d44({},Z,this[_0x17b114(0x1d1)]);this[_0x17b114(0x1dc)][_0x17b114(0x205)](X,_0x407d63);}[_0x1ceb6f(0x1d6)](){const _0x2564f4=_0x1ceb6f;_0x25e916(this[_0x2564f4(0x1ab)],_0x352515([[V],[W],[Q],[Y]],this['_config'][_0x2564f4(0x212)])),_0x837966(this[_0x2564f4(0x1ab)],[[Q]]);}['onRendered'](){_0x837966(this['_injector'],[[Y]]);}};B($,_0x1ceb6f(0x1a5),_0xaf5923[_0x1ceb6f(0x196)]),B($,'pluginName',_0x1ceb6f(0x1ce)),B($,_0x1ceb6f(0x18f),pe),B($,_0x1ceb6f(0x1f2),me),$=U([_0x99e981(_0x558de1),H(0x1,_0x478c03(_0x31717f)),H(0x2,_0x2bf9f3)],$);function _0xf242(_0x5731db,_0x1bd9c2){_0x5731db=_0x5731db-0x17f;const _0x3ce787=_0x3ce7();let _0xf2426e=_0x3ce787[_0x5731db];return _0xf2426e;}export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x483488=_0x45b7;(function(_0x481774,_0x480832){const _0x4f141c=_0x45b7,_0xffc8be=_0x481774();while(!![]){try{const _0x464732=parseInt(_0x4f141c(0xef))/0x1+-parseInt(_0x4f141c(0x124))/0x2+parseInt(_0x4f141c(0x139))/0x3*(parseInt(_0x4f141c(0x123))/0x4)+parseInt(_0x4f141c(0x14f))/0x5*(-parseInt(_0x4f141c(0x119))/0x6)+parseInt(_0x4f141c(0x13b))/0x7+-parseInt(_0x4f141c(0x154))/0x8*(parseInt(_0x4f141c(0xf3))/0x9)+-parseInt(_0x4f141c(0x137))/0xa*(-parseInt(_0x4f141c(0x159))/0xb);if(_0x464732===_0x480832)break;else _0xffc8be['push'](_0xffc8be['shift']());}catch(_0x5a7e78){_0xffc8be['push'](_0xffc8be['shift']());}}}(_0x2fbf,0x8a5d2));import{CommandType as _0x458c45,DependentOn as _0x1240ac,Disposable as _0x25821d,DisposableCollection as _0x11b478,ICommandService as _0x24a679,IConfigService as _0x5bd473,IUniverInstanceService as _0x463264,Inject as _0x519b70,Injector as _0x1f8563,Plugin as _0x2e5f28,RxDisposable as _0x1dffe0,UniverInstanceType as _0x443dc4,merge as _0x2e9292,mergeOverrideWithDependencies as _0x13dc50,registerDependencies as _0x1030c8,toDisposable as _0xaaab04,touchDependencies as _0x56c0e1}from'@univerjs/core';import{BuiltInUIPart as _0x4a5288,IUIPartsService as _0xc74574,connectInjector as _0x39d05e,useDependency as _0x128025,useObservable as _0x407d3e}from'@univerjs/ui';import{Button as _0x21c6a6,Dropdown as _0x451c05,clsx as _0x3a2015}from'@univerjs/design';function _0x45b7(_0x312e5c,_0x320410){_0x312e5c=_0x312e5c-0xdb;const _0x2fbfc8=_0x2fbf();let _0x45b719=_0x2fbfc8[_0x312e5c];return _0x45b719;}import{LiveShareIcon as _0x1525d7}from'@univerjs/icons';import{useEffect as _0x34b418,useRef as _0x523753,useState as _0x2329c2}from'react';import{CollaborationEvent as _0x275d1f,parseProtocolChangeset as _0xaf2f9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59fd96,SessionStatus as _0xa36ca2,UniverCollaborationClientPlugin as _0x422184}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x594abb,SetWorksheetActiveOperation as _0x3e5ed1}from'@univerjs/sheets';import{BehaviorSubject as _0x4db554,Subject as _0x3e2cca}from'rxjs';import{takeUntil as _0xa626ba,throttleTime as _0x255e38}from'rxjs/operators';import{Fragment as _0x508d28,jsx as _0x2658fa,jsxs as _0x30d109}from'react/jsx-runtime';import{SetScrollOperation as _0x354a42,SetZoomRatioOperation as _0x33a400}from'@univerjs/sheets-ui';function L(_0x3f3d6e){'@babel/helpers - typeof';const _0x4e6e03=_0x45b7;return L=typeof Symbol==_0x4e6e03(0x10e)&&typeof Symbol[_0x4e6e03(0x12a)]==_0x4e6e03(0x109)?function(_0x32bbb2){return typeof _0x32bbb2;}:function(_0x189f7d){const _0x30815f=_0x4e6e03;return _0x189f7d&&typeof Symbol==_0x30815f(0x10e)&&_0x189f7d['constructor']===Symbol&&_0x189f7d!==Symbol[_0x30815f(0x107)]?_0x30815f(0x109):typeof _0x189f7d;},L(_0x3f3d6e);}function R(_0x3b740f,_0x3edc40){const _0x3ce480=_0x45b7;if(L(_0x3b740f)!=_0x3ce480(0x14c)||!_0x3b740f)return _0x3b740f;var _0x3bf1a4=_0x3b740f[Symbol[_0x3ce480(0xe7)]];if(_0x3bf1a4!==void 0x0){var _0x134a5f=_0x3bf1a4[_0x3ce480(0x143)](_0x3b740f,_0x3edc40||_0x3ce480(0xeb));if(L(_0x134a5f)!=_0x3ce480(0x14c))return _0x134a5f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3edc40===_0x3ce480(0x162)?String:Number)(_0x3b740f);}function z(_0x412bea){const _0x12b1b8=_0x45b7;var _0x17cfec=R(_0x412bea,_0x12b1b8(0x162));return L(_0x17cfec)=='symbol'?_0x17cfec:_0x17cfec+'';}function B(_0x20a5f2,_0x2c7e78,_0x3b0dc5){const _0x42ca67=_0x45b7;return(_0x2c7e78=z(_0x2c7e78))in _0x20a5f2?Object[_0x42ca67(0x140)](_0x20a5f2,_0x2c7e78,{'value':_0x3b0dc5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a5f2[_0x2c7e78]=_0x3b0dc5,_0x20a5f2;}var V=class extends _0x25821d{constructor(..._0x1cf08b){const _0x167e1c=_0x45b7;super(..._0x1cf08b),B(this,_0x167e1c(0x105),new Set()),B(this,_0x167e1c(0x11e),new Set());}[_0x483488(0xe5)](_0x214e18){const _0x50e9f8=_0x483488;return this[_0x50e9f8(0x105)][_0x50e9f8(0x163)](_0x214e18),_0xaaab04(()=>this[_0x50e9f8(0x105)][_0x50e9f8(0x164)](_0x214e18));}[_0x483488(0xf8)](_0x3fe0dc){const _0x457405=_0x483488;return this['_reporters'][_0x457405(0x163)](_0x3fe0dc),_0xaaab04(()=>this[_0x457405(0x11e)][_0x457405(0x164)](_0x3fe0dc));}[_0x483488(0x160)](_0x4bf672){const _0x3a52de=_0x483488;return this[_0x3a52de(0x105)]['has'](_0x4bf672);}['getInitialStates'](_0x1e90c1){const _0x36408f=_0x483488;return Array['from'](this['_reporters'])[_0x36408f(0x135)](_0x20a44e=>_0x20a44e(_0x1e90c1));}};function H(_0x2f9d8e,_0x5d4695){return function(_0x881661,_0x5cd344){_0x5d4695(_0x881661,_0x5cd344,_0x2f9d8e);};}function U(_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1){const _0x562a82=_0x483488;var _0x495527=arguments[_0x562a82(0x152)],_0x4410d1=_0x495527<0x3?_0x1af699:_0x1ec3e1===null?_0x1ec3e1=Object['getOwnPropertyDescriptor'](_0x1af699,_0x2e9d79):_0x1ec3e1,_0x2803a5;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x562a82(0x10e))_0x4410d1=Reflect['decorate'](_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1);else{for(var _0xe3b8d=_0x247ab9[_0x562a82(0x152)]-0x1;_0xe3b8d>=0x0;_0xe3b8d--)(_0x2803a5=_0x247ab9[_0xe3b8d])&&(_0x4410d1=(_0x495527<0x3?_0x2803a5(_0x4410d1):_0x495527>0x3?_0x2803a5(_0x1af699,_0x2e9d79,_0x4410d1):_0x2803a5(_0x1af699,_0x2e9d79))||_0x4410d1);}return _0x495527>0x3&&_0x4410d1&&Object[_0x562a82(0x140)](_0x1af699,_0x2e9d79,_0x4410d1),_0x4410d1;}let W=class extends _0x1dffe0{constructor(_0x3cbb6b,_0x2853c9,_0x476c88){const _0x22e720=_0x483488;super(),this[_0x22e720(0x10d)]=_0x3cbb6b,this[_0x22e720(0x12e)]=_0x2853c9,this['_collabSessionService']=_0x476c88,B(this,_0x22e720(0x11d),new Map()),this[_0x22e720(0x15a)]();}async[_0x483488(0x117)](_0xba2a9){const _0x305924=_0x483488;return this[_0x305924(0x11d)][_0x305924(0x13c)](_0xba2a9)||await this['_startLiveShareCoordinator'](_0xba2a9),this['_entities']['get'](_0xba2a9);}[_0x483488(0xfd)](_0x471bca){const _0x1b40ee=_0x483488;var _0x4cf63b;return(_0x4cf63b=this[_0x1b40ee(0x11d)][_0x1b40ee(0x10a)](_0x471bca))==null?null:_0x4cf63b;}[_0x483488(0x15a)](){const _0x5bec5e=_0x483488;this['_univerInstanceService'][_0x5bec5e(0x165)](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))['subscribe'](async _0x315cf7=>{const _0x1c642f=_0x5bec5e;let _0x2a2abc=_0x315cf7['unit'][_0x1c642f(0xf7)]();this[_0x1c642f(0x11d)][_0x1c642f(0x13c)](_0x2a2abc)||this[_0x1c642f(0x12d)](_0x2a2abc);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))[_0x5bec5e(0x11f)](_0x418e3d=>{const _0x3df8c6=_0x5bec5e;let _0x5c9eda=_0x418e3d['getUnitId'](),_0x1dec7a=this[_0x3df8c6(0x11d)][_0x3df8c6(0x10a)](_0x5c9eda);_0x1dec7a==null||_0x1dec7a[_0x3df8c6(0x113)]();});}async[_0x483488(0x12d)](_0x518bed){const _0x3bc783=_0x483488;let _0x4be529=await this[_0x3bc783(0x112)]['requireSession'](_0x518bed),_0x5e329d=this['_injector']['createInstance'](K,_0x518bed,_0x4be529);return _0x5e329d[_0x3bc783(0x120)](),this[_0x3bc783(0x11d)][_0x3bc783(0xdf)](_0x518bed,_0x5e329d),_0x5e329d;}};W=U([H(0x0,_0x463264),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x519b70(_0x59fd96))],W);let G=function(_0x3cece8){const _0x316e52=_0x483488;return _0x3cece8[_0x316e52(0x14d)]=_0x316e52(0x115),_0x3cece8[_0x316e52(0xf1)]=_0x316e52(0xdd),_0x3cece8[_0x316e52(0xdb)]='following',_0x3cece8['NOT_FOLLOWING']=_0x316e52(0x11a),_0x3cece8[_0x316e52(0x108)]=_0x316e52(0xe6),_0x3cece8;}({}),K=class extends _0x1dffe0{get['_status'](){const _0x44f4c2=_0x483488;return this[_0x44f4c2(0x134)]['getValue']();}constructor(_0x42e687,_0x1f02ea,_0x4a0697,_0x2e5516,_0x328a2a){const _0x3ade14=_0x483488;super(),this['_unitID']=_0x42e687,this[_0x3ade14(0x104)]=_0x1f02ea,this['_configService']=_0x4a0697,this[_0x3ade14(0xfb)]=_0x2e5516,this[_0x3ade14(0x130)]=_0x328a2a,B(this,_0x3ade14(0x134),new _0x4db554(_0x3ade14(0xdd))),B(this,'status$',this[_0x3ade14(0x134)][_0x3ade14(0x129)]()),B(this,_0x3ade14(0x15a),!0x1),B(this,'_commandDisposable',null),B(this,'_presenter',null);}['dispose'](){const _0x731e6a=_0x483488;var _0x3d4fd0;(_0x3d4fd0=this[_0x731e6a(0x12b)])==null||_0x3d4fd0[_0x731e6a(0x113)](),this[_0x731e6a(0x134)][_0x731e6a(0x15b)](_0x731e6a(0xdd)),this[_0x731e6a(0x134)][_0x731e6a(0x14e)]();}[_0x483488(0x13a)](){return this['_status'];}[_0x483488(0x120)](){const _0x486997=_0x483488;this['_init']||(this[_0x486997(0x15a)]=!0x0,this[_0x486997(0x104)]['sessionStatus$'][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x5abeab=>{const _0x5860ad=_0x486997;switch(_0x5abeab){case _0xa36ca2[_0x5860ad(0x14d)]:this[_0x5860ad(0x151)]();break;case _0xa36ca2[_0x5860ad(0x11b)]:this[_0x5860ad(0x11c)]();break;default:}}),this[_0x486997(0x104)][_0x486997(0x142)][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x3e8753=>{const _0x2726e0=_0x486997;let {eventID:_0x15297d}=_0x3e8753;switch(_0x15297d){case _0x275d1f[_0x2726e0(0x126)]:this[_0x2726e0(0x16e)](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x148)]:this['_handleOperation'](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x12c)]:this['_handleTerminate']();break;case _0x275d1f[_0x2726e0(0x14a)]:this[_0x2726e0(0x16c)](_0x3e8753);break;default:}}));}[_0x483488(0xff)](){const _0x6e80e2=_0x483488;this[_0x6e80e2(0x104)][_0x6e80e2(0xf5)]({'eventID':_0x275d1f[_0x6e80e2(0x133)],'data':{'unitID':this['_unitID'],'userID':this[_0x6e80e2(0x104)][_0x6e80e2(0x121)]()}},this[_0x6e80e2(0xed)]);}[_0x483488(0x136)](){const _0x51a89a=_0x483488;this['_status']===_0x51a89a(0xe6)&&(this['_status$'][_0x51a89a(0x15b)](_0x51a89a(0xdd)),this['_collabSession'][_0x51a89a(0xf5)]({'eventID':_0x275d1f[_0x51a89a(0x12c)],'data':{'unitID':this[_0x51a89a(0xed)]}},this[_0x51a89a(0xed)]));}[_0x483488(0x155)](){const _0x1cd148=_0x483488;this[_0x1cd148(0x150)]===_0x1cd148(0x11a)&&(this['_status$'][_0x1cd148(0x15b)](_0x1cd148(0x167)),this[_0x1cd148(0x153)]());}['stopFollowing'](){const _0x267338=_0x483488;this[_0x267338(0x150)]===_0x267338(0x167)&&this['_stopFollowing']();}[_0x483488(0x16e)](_0x29354a){const _0x5a8e73=_0x483488;let {presenter:_0x31d773}=_0x29354a[_0x5a8e73(0x15e)],_0x1f914f=this['_collabSession']['getMemberID']();this[_0x5a8e73(0x138)]=_0x31d773,_0x31d773===_0x1f914f?(this[_0x5a8e73(0x10c)](),this['_startPresenting']()):this[_0x5a8e73(0x150)]!=='not-following'&&(this[_0x5a8e73(0x13e)](),this[_0x5a8e73(0x153)]());}['_fetchOperations'](){const _0x18e6a8=_0x483488;let _0x1647ab={'eventID':_0x275d1f[_0x18e6a8(0xee)]};this[_0x18e6a8(0x104)][_0x18e6a8(0xf5)](_0x1647ab,this[_0x18e6a8(0xed)]);}[_0x483488(0x16d)](){const _0x4546c6=_0x483488;this[_0x4546c6(0x138)]=null,this[_0x4546c6(0x150)]!=='presenting'&&this[_0x4546c6(0x169)]();}[_0x483488(0x16c)](_0x33cf5b){const _0x42f3f9=_0x483488;if(this['_status']===_0x42f3f9(0x167)&&this[_0x42f3f9(0x138)]===_0x33cf5b[_0x42f3f9(0x15e)][_0x42f3f9(0x125)]){let _0x335687=_0xaf2f9c(_0x33cf5b[_0x42f3f9(0x15e)])[_0x42f3f9(0xf6)][_0x42f3f9(0x116)]()[_0x42f3f9(0x15f)](_0x230023=>_0x230023['id']===_0x594abb['id']);if(_0x335687){let _0xb62741=_0x335687[_0x42f3f9(0x10b)][_0x42f3f9(0x13d)],_0x3122d2=_0x335687['params'][_0x42f3f9(0x168)]['id'];setTimeout(()=>{const _0x584661=_0x42f3f9;this['_commandService'][_0x584661(0x15d)](_0x3e5ed1['id'],{'unitId':_0xb62741,'subUnitId':_0x3122d2},{'fromCollab':!0x0});});}}}[_0x483488(0x103)](){const _0x5d974b=_0x483488;var _0x411ec8;(_0x411ec8=this[_0x5d974b(0x12b)])==null||_0x411ec8['dispose'](),this[_0x5d974b(0x134)][_0x5d974b(0x15b)](_0x5d974b(0xe6));let _0x5616b2=new Map(),_0x1bda74=this[_0x5d974b(0x12b)]=new _0x11b478();_0x1bda74['add'](_0xaaab04(()=>{const _0x5070a4=_0x5d974b;_0x5616b2[_0x5070a4(0xfa)](({subject:_0x5024d8,subscription:_0x11f265})=>{const _0x2be60c=_0x5070a4;_0x11f265[_0x2be60c(0x102)](),_0x5024d8[_0x2be60c(0x14e)]();}),_0x5616b2[_0x5070a4(0x149)]();})),_0x1bda74[_0x5d974b(0x163)](this[_0x5d974b(0x130)][_0x5d974b(0x101)](_0x19c86c=>{const _0x37efbf=_0x5d974b;if(_0x19c86c[_0x37efbf(0x118)]!==_0x458c45[_0x37efbf(0x156)]||!this[_0x37efbf(0xfb)][_0x37efbf(0x160)](_0x19c86c['id']))return;let {id:_0x3bc3e4}=_0x19c86c,_0x1536eb;if(_0x5616b2[_0x37efbf(0x13c)](_0x3bc3e4))_0x1536eb=_0x5616b2[_0x37efbf(0x10a)](_0x3bc3e4)[_0x37efbf(0x15c)];else{var _0x1ed284;_0x1536eb=new _0x3e2cca();let _0x59c8e4=_0x1536eb[_0x37efbf(0xfc)](_0x255e38((_0x1ed284=this[_0x37efbf(0x122)][_0x37efbf(0xe2)](_0x37efbf(0xe4)))==null?0xc8:_0x1ed284,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37efbf(0x11f)](_0x4deaca=>{const _0xd4647e=_0x37efbf;this[_0xd4647e(0x104)][_0xd4647e(0xf5)]({'eventID':_0x275d1f[_0xd4647e(0x148)],'data':{'unitID':this[_0xd4647e(0xed)],'operations':{[_0x4deaca['id']]:{'id':_0x4deaca['id'],'params':JSON[_0xd4647e(0x158)](_0x4deaca[_0xd4647e(0x10b)])}}}},this['_unitID']);});_0x5616b2['set'](_0x3bc3e4,{'subject':_0x1536eb,'subscription':_0x59c8e4});}_0x1536eb[_0x37efbf(0x15b)](_0x19c86c);})),this['_liveShareService'][_0x5d974b(0x170)](this[_0x5d974b(0xed)])[_0x5d974b(0xfa)](_0x54979c=>this[_0x5d974b(0x104)]['send']({'eventID':_0x275d1f[_0x5d974b(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x54979c['id']]:{'id':_0x54979c['id'],'params':JSON[_0x5d974b(0x158)](_0x54979c['params'])}}}},this[_0x5d974b(0xed)]));}[_0x483488(0x13e)](){const _0x2525ec=_0x483488;var _0x4117b0;this[_0x2525ec(0x134)][_0x2525ec(0x15b)]('idle'),(_0x4117b0=this[_0x2525ec(0x12b)])==null||_0x4117b0[_0x2525ec(0x113)](),this['_commandDisposable']=null;}[_0x483488(0x153)](){const _0x56837e=_0x483488;var _0x1e68b0;(_0x1e68b0=this[_0x56837e(0x12b)])==null||_0x1e68b0[_0x56837e(0x113)](),this[_0x56837e(0x134)]['next'](_0x56837e(0x167));}[_0x483488(0x169)](){const _0x51a6df=_0x483488;var _0x2ec300;this[_0x51a6df(0x134)][_0x51a6df(0x15b)](_0x51a6df(0xdd)),(_0x2ec300=this['_commandDisposable'])==null||_0x2ec300[_0x51a6df(0x113)](),this[_0x51a6df(0x12b)]=null;}['_stopFollowing'](){const _0x126668=_0x483488;var _0x5bc21a;this[_0x126668(0x134)]['next'](_0x126668(0x11a)),(_0x5bc21a=this[_0x126668(0x12b)])==null||_0x5bc21a[_0x126668(0x113)]();}['_handleOperation'](_0x1fb62c){const _0x14d5a8=_0x483488;if([_0x14d5a8(0xe6),_0x14d5a8(0x11a),'offline'][_0x14d5a8(0xe0)](this[_0x14d5a8(0x150)])||!_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0xf4)]||_0x1fb62c['data'][_0x14d5a8(0xf4)]===this[_0x14d5a8(0x104)][_0x14d5a8(0x121)]())return;this['_status']===_0x14d5a8(0xdd)&&this[_0x14d5a8(0x153)]();let _0x4ca9de=_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0x157)];Object[_0x14d5a8(0x146)](_0x4ca9de)[_0x14d5a8(0xfa)](_0x45965c=>{const _0x13ff50=_0x14d5a8;this[_0x13ff50(0x130)][_0x13ff50(0x15d)](_0x45965c['id'],_0x45965c['params']?JSON[_0x13ff50(0x13f)](_0x45965c[_0x13ff50(0x10b)]):null,{'fromCollab':!0x0});});}[_0x483488(0x151)](){const _0x23845e=_0x483488;var _0x3aaad9;this[_0x23845e(0x134)][_0x23845e(0x15b)](_0x23845e(0x115)),(_0x3aaad9=this['_commandDisposable'])==null||_0x3aaad9[_0x23845e(0x113)]();}[_0x483488(0x11c)](){const _0x59d97b=_0x483488;this[_0x59d97b(0x134)]['next'](_0x59d97b(0xdd)),this[_0x59d97b(0x10f)]();}};K=U([H(0x2,_0x5bd473),H(0x3,_0x519b70(V)),H(0x4,_0x24a679)],K);function q(){const _0x45a13d=_0x483488;let _0x2df76a=_0x128025(W),_0x1baac4=_0x128025(_0x463264),_0xf2afa0=_0x407d3e(()=>_0x1baac4[_0x45a13d(0xde)](_0x443dc4[_0x45a13d(0x145)]),void 0x0,!0x1,[]),[_0x14f53a,_0x3595ab]=_0x2329c2(null),[_0x111ced,_0x19a5ad]=_0x2329c2(_0x45a13d(0xdd)),_0x59c95f=_0x523753(null);return _0x34b418(()=>(_0xf2afa0&&_0x2df76a['getLiveShareCoordinator'](_0xf2afa0[_0x45a13d(0xf7)]())[_0x45a13d(0x114)](_0x33b041=>{const _0x93cd89=_0x45a13d;_0x3595ab(_0x33b041),_0x59c95f[_0x93cd89(0x14b)]=_0x33b041['status$'][_0x93cd89(0x11f)](_0x11dc9f=>{_0x19a5ad(_0x11dc9f);});}),()=>{const _0x4c84f4=_0x45a13d;var _0x596fb7;(_0x596fb7=_0x59c95f[_0x4c84f4(0x14b)])==null||_0x596fb7[_0x4c84f4(0x102)](),_0x59c95f['current']=null;}),[_0xf2afa0,_0x2df76a]),_0x14f53a?_0x2658fa(_0x451c05,{'align':'end','disabled':_0x111ced===_0x45a13d(0x115),'className':_0x45a13d(0xe1),'overlay':_0x2658fa(ce,{'status':_0x111ced,'coordinator':_0x14f53a}),'children':_0x2658fa('button',{'className':_0x3a2015(_0x45a13d(0xf0),{'univer-cursor-not-allowed':_0x111ced===_0x45a13d(0x115),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x111ced!==_0x45a13d(0x115)}),'type':_0x45a13d(0xdc),'children':_0x2658fa(_0x1525d7,{'className':_0x45a13d(0x110)})})}):null;}function ce(_0x28c8f9){const _0x4e566d=_0x483488;let {status:_0x16a352,coordinator:_0xf0b1bb}=_0x28c8f9;switch(_0x16a352){case _0x4e566d(0xdd):return _0x2658fa(le,{'coordinator':_0xf0b1bb});case'following':return _0x2658fa(ue,{'coordinator':_0xf0b1bb});case _0x4e566d(0x11a):return _0x2658fa(de,{'coordinator':_0xf0b1bb});case'offline':return _0x2658fa(fe,{});case _0x4e566d(0xe6):return _0x2658fa(J,{'coordinator':_0xf0b1bb});default:return null;}}function le(_0x80a58a){const _0x5c7c45=_0x483488;let {coordinator:_0x2b3845}=_0x80a58a;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0x5c7c45(0x132),{'className':_0x5c7c45(0x161),'children':'Present\x20this\x20document'}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x2b3845[_0x5c7c45(0xff)](),'children':_0x5c7c45(0x147)})]});}function ue(_0x564e8f){const _0x35a5b8=_0x483488;let {coordinator:_0x827031}=_0x564e8f;return _0x30d109(_0x508d28,{'children':[_0x2658fa('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35a5b8(0xfe)}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x827031['stopFollowing'](),'children':_0x35a5b8(0x16b)})]});}function de(_0x170b55){const _0xe1606c=_0x483488;let {coordinator:_0x5d22ad}=_0x170b55;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xe1606c(0x132),{'className':_0xe1606c(0x161),'children':_0xe1606c(0xe8)}),_0x2658fa(_0x21c6a6,{'variant':'text','onClick':()=>_0x5d22ad[_0xe1606c(0x155)](),'children':_0xe1606c(0x128)})]});}function J(_0x41b798){const _0xf5eb1c=_0x483488;let {coordinator:_0x4b5f83}=_0x41b798;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xf5eb1c(0x132),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2658fa(_0x21c6a6,{'variant':_0xf5eb1c(0xeb),'onClick':()=>_0x4b5f83[_0xf5eb1c(0x136)](),'children':'Stop\x20presenting'})]});}function fe(){const _0x205204=_0x483488;return _0x2658fa(_0x508d28,{'children':_0x205204(0x100)});}let Y=class extends _0x25821d{constructor(_0x3dd031,_0x5530ac){const _0x2ecf5b=_0x483488;super(),this['_injector']=_0x3dd031,this[_0x2ecf5b(0xf2)]=_0x5530ac,this[_0x2ecf5b(0x141)]();}[_0x483488(0x141)](){const _0x55b9ce=_0x483488;this[_0x55b9ce(0x111)](this[_0x55b9ce(0xf2)][_0x55b9ce(0x12f)](_0x4a5288['HEADER_MENU'],()=>_0x39d05e(q,this['_injector'])));}};Y=U([H(0x0,_0x519b70(_0x1f8563)),H(0x1,_0xc74574)],Y);function _0x2fbf(){const _0x2ba42e=['getLiveShareCoordinatorSync','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','You\x27are\x20offline.','onCommandExecuted','unsubscribe','_startPresenting','_collabSession','_sharedOperations','live-share.config','prototype','PRESENTING','symbol','get','params','_stopFollowing','_univerInstanceService','function','_fetchOperations','univer-size-4','disposeWithMe','_collabSessionService','dispose','then','offline','reverse','getLiveShareCoordinator','type','241356LZzSiW','not-following','ONLINE','_handleOnline','_entities','_reporters','subscribe','init','getMemberID','_configService','8FUhaIk','1259034iWvHjx','memberID','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','Start\x20following','asObservable','iterator','_commandDisposable','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_injector','registerComponent','_commandService','override','div','LIVESHARE_REQUEST_HOST','_status$','map','stopPresenting','10TGKNyK','_presenter','710367ZMnfss','getStatus','2394672ADlDof','has','unitId','_stopPresenting','parse','defineProperty','_mountLiveShare','event$','call','0.24.0','UNIVER_SHEET','values','Start','LIVESHARE_OPERATION','clear','NEW_CHANGESETS','current','object','OFFLINE','complete','100FeflZT','_status','_handleOffline','length','_startFollowing','5891592nXfPay','startFollowing','OPERATION','operations','stringify','10360471ofBdeE','_init','next','subject','executeCommand','data','find','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','add','delete','getTypeOfUnitAdded$','pluginName','following','sheet','_beIdle','packageName','Stop\x20following','_handleNewChangeSets','_handleTerminate','_handleNewHost','version','getInitialStates','FOLLOWING','button','idle','getCurrentTypeOfUnit$','set','includes','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','getConfig','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','presenting','toPrimitive','You\x27re\x20not\x20following\x20the\x20presenter','_config','setConfig','default','onRendered','_unitID','LIVESHARE_FETCH_OPERATIONS','979689diOGji','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','_uiPartsService','9lyjQpA','presenter','send','mutations','getUnitId','registerInitialStateReporter','dispose$','forEach','_liveShareService','pipe'];_0x2fbf=function(){return _0x2ba42e;};return _0x2fbf();}var pe=_0x483488(0x127),me=_0x483488(0x144);const X=_0x483488(0x106);Symbol(X);const Z={};let Q=class extends _0x25821d{constructor(_0x3f2a6e){const _0x452524=_0x483488;super(),this['_liveShareService']=_0x3f2a6e,this[_0x452524(0x15a)]();}[_0x483488(0x15a)](){[_0x33a400['id'],_0x354a42['id'],_0x3e5ed1['id']]['forEach'](_0x3ba871=>{const _0x198c4e=_0x45b7;this[_0x198c4e(0x111)](this['_liveShareService'][_0x198c4e(0xe5)](_0x3ba871));});}};Q=U([H(0x0,_0x519b70(V))],Q);let $=class extends _0x2e5f28{constructor(_0x5747a0=Z,_0x50d166,_0x268d60){const _0x16de18=_0x483488;super(),this['_config']=_0x5747a0,this[_0x16de18(0x12e)]=_0x50d166,this['_configService']=_0x268d60;let {..._0x1b2174}=_0x2e9292({},Z,this[_0x16de18(0xe9)]);this[_0x16de18(0x122)][_0x16de18(0xea)](X,_0x1b2174);}['onStarting'](){const _0x5d4903=_0x483488;_0x1030c8(this[_0x5d4903(0x12e)],_0x13dc50([[V],[W],[Q],[Y]],this[_0x5d4903(0xe9)][_0x5d4903(0x131)])),_0x56c0e1(this[_0x5d4903(0x12e)],[[Q]]);}[_0x483488(0xec)](){const _0x8b73ab=_0x483488;_0x56c0e1(this[_0x8b73ab(0x12e)],[[Y]]);}};B($,_0x483488(0x118),_0x443dc4[_0x483488(0xe3)]),B($,_0x483488(0x166),'UNIVER_LIVE_SHARE_PLUGIN'),B($,_0x483488(0x16a),pe),B($,_0x483488(0x16f),me),$=U([_0x1240ac(_0x422184),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x5bd473)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2b2793=_0xfb7e;function _0x2c5b(){const _0x3e0a9b=['3017034IkGHGY','217cqbwht','getStatus','330968eyFqaa','call','_liveShareController','No\x20active\x20workbook\x20found.','25818NbfjtG','UNIVER_SHEET','_injector','startPresenting','getCurrentUnitOfType','283806ThXkUl','constructor','1945ocvhKN','default','327324oUaYST','stopPresenting','getLiveShareStatus','getLiveShareCoordinatorSync','get','1340126yuXMoq','tryStartPresenting','symbol','function','270PYSTYI','477GumFMJ','_initialize','startFollowing','1023QSlcJG','14596STYEhl','prototype','extend','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getUnitId','iterator','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IDLE','string','stopFollowing'];_0x2c5b=function(){return _0x3e0a9b;};return _0x2c5b();}(function(_0xc6e297,_0x387d01){const _0x5b1b04=_0xfb7e,_0x3d036b=_0xc6e297();while(!![]){try{const _0x34f92b=-parseInt(_0x5b1b04(0x1df))/0x1+parseInt(_0x5b1b04(0x1f3))/0x2+-parseInt(_0x5b1b04(0x1e4))/0x3*(parseInt(_0x5b1b04(0x1e8))/0x4)+-parseInt(_0x5b1b04(0x1d8))/0x5*(-parseInt(_0x5b1b04(0x1fa))/0x6)+parseInt(_0x5b1b04(0x1f4))/0x7*(parseInt(_0x5b1b04(0x1f6))/0x8)+-parseInt(_0x5b1b04(0x1d6))/0x9*(-parseInt(_0x5b1b04(0x1e3))/0xa)+-parseInt(_0x5b1b04(0x1e7))/0xb*(parseInt(_0x5b1b04(0x1da))/0xc);if(_0x34f92b===_0x387d01)break;else _0x3d036b['push'](_0x3d036b['shift']());}catch(_0x222e32){_0x3d036b['push'](_0x3d036b['shift']());}}}(_0x2c5b,0xd1c59));import{LiveShareController as _0xef4ec4,LiveShareStatus as _0x3acb3b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0xcb238d,UniverInstanceType as _0x29e678}from'@univerjs/core';function _0xfb7e(_0x56337f,_0x22fb1a){_0x56337f=_0x56337f-0x1d3;const _0x2c5b12=_0x2c5b();let _0xfb7ebc=_0x2c5b12[_0x56337f];return _0xfb7ebc;}import{FEnum as _0x4164bf,FUniver as _0x82965a}from'@univerjs/core/facade';function o(_0x13af00){'@babel/helpers - typeof';const _0x35659d=_0xfb7e;return o=typeof Symbol==_0x35659d(0x1e2)&&typeof Symbol[_0x35659d(0x1ee)]=='symbol'?function(_0x33c036){return typeof _0x33c036;}:function(_0x355214){const _0x392fa6=_0x35659d;return _0x355214&&typeof Symbol==_0x392fa6(0x1e2)&&_0x355214[_0x392fa6(0x1d7)]===Symbol&&_0x355214!==Symbol[_0x392fa6(0x1e9)]?_0x392fa6(0x1e1):typeof _0x355214;},o(_0x13af00);}function s(_0x4ee508,_0x227648){const _0x49533c=_0xfb7e;if(o(_0x4ee508)!='object'||!_0x4ee508)return _0x4ee508;var _0x26682a=_0x4ee508[Symbol[_0x49533c(0x1eb)]];if(_0x26682a!==void 0x0){var _0x386776=_0x26682a[_0x49533c(0x1f7)](_0x4ee508,_0x227648||_0x49533c(0x1d9));if(o(_0x386776)!='object')return _0x386776;throw TypeError(_0x49533c(0x1ec));}return(_0x227648===_0x49533c(0x1f1)?String:Number)(_0x4ee508);}function c(_0x412104){const _0x4edc78=_0xfb7e;var _0x3fc70b=s(_0x412104,_0x4edc78(0x1f1));return o(_0x3fc70b)==_0x4edc78(0x1e1)?_0x3fc70b:_0x3fc70b+'';}function l(_0x404db2,_0x5dc862,_0x47c5d9){return(_0x5dc862=c(_0x5dc862))in _0x404db2?Object['defineProperty'](_0x404db2,_0x5dc862,{'value':_0x47c5d9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x404db2[_0x5dc862]=_0x47c5d9,_0x404db2;}var u=class extends _0x82965a{constructor(..._0x454747){const _0x59e190=_0xfb7e;super(..._0x454747),l(this,_0x59e190(0x1f8),void 0x0);}[_0x2b2793(0x1e5)](_0xcbb598){const _0xd09ac9=_0x2b2793;this[_0xd09ac9(0x1f8)]=_0xcbb598[_0xd09ac9(0x1de)](_0xef4ec4);}[_0x2b2793(0x1dc)](){const _0x4152e9=_0x2b2793;var _0x1bee29;let _0x59b522=this['_injector'][_0x4152e9(0x1de)](_0xcb238d)[_0x4152e9(0x1d5)](_0x29e678['UNIVER_SHEET']);if(!_0x59b522)throw Error(_0x4152e9(0x1f9));let _0x5e84f4=_0x59b522[_0x4152e9(0x1ed)](),_0x8c4df1=this[_0x4152e9(0x1f8)][_0x4152e9(0x1dd)](_0x5e84f4);return(_0x1bee29=_0x8c4df1==null?void 0x0:_0x8c4df1[_0x4152e9(0x1f5)]())==null?_0x3acb3b[_0x4152e9(0x1f0)]:_0x1bee29;}[_0x2b2793(0x1e6)](){const _0x5095aa=_0x2b2793;let _0x33636b=this[_0x5095aa(0x1d3)][_0x5095aa(0x1de)](_0xcb238d)[_0x5095aa(0x1d5)](_0x29e678[_0x5095aa(0x1fb)]);if(!_0x33636b)throw Error(_0x5095aa(0x1f9));let _0x158f25=_0x33636b[_0x5095aa(0x1ed)](),_0x45d0a1=this[_0x5095aa(0x1f8)]['getLiveShareCoordinatorSync'](_0x158f25);if(!_0x45d0a1)throw Error(_0x5095aa(0x1ef));_0x45d0a1['startFollowing']();}['stopFollowing'](){const _0x7b297=_0x2b2793;let _0x4870c1=this['_injector'][_0x7b297(0x1de)](_0xcb238d)[_0x7b297(0x1d5)](_0x29e678['UNIVER_SHEET']);if(!_0x4870c1)throw Error(_0x7b297(0x1f9));let _0x405d70=_0x4870c1[_0x7b297(0x1ed)](),_0x4809a1=this[_0x7b297(0x1f8)][_0x7b297(0x1dd)](_0x405d70);if(!_0x4809a1)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4809a1[_0x7b297(0x1f2)]();}[_0x2b2793(0x1d4)](){const _0x126d9f=_0x2b2793;let _0x3611e9=this['_injector'][_0x126d9f(0x1de)](_0xcb238d)[_0x126d9f(0x1d5)](_0x29e678[_0x126d9f(0x1fb)]);if(!_0x3611e9)throw Error('No\x20active\x20workbook\x20found.');let _0x3102aa=_0x3611e9[_0x126d9f(0x1ed)](),_0x3fc61d=this['_liveShareController'][_0x126d9f(0x1dd)](_0x3102aa);if(!_0x3fc61d)throw Error(_0x126d9f(0x1ef));_0x3fc61d[_0x126d9f(0x1e0)]();}[_0x2b2793(0x1db)](){const _0x3d92e2=_0x2b2793;let _0x48364c=this['_injector']['get'](_0xcb238d)[_0x3d92e2(0x1d5)](_0x29e678[_0x3d92e2(0x1fb)]);if(!_0x48364c)throw Error('No\x20active\x20workbook\x20found.');let _0xa08bc=_0x48364c[_0x3d92e2(0x1ed)](),_0x59c961=this['_liveShareController'][_0x3d92e2(0x1dd)](_0xa08bc);if(!_0x59c961)throw Error(_0x3d92e2(0x1ef));_0x59c961['stopPresenting']();}};_0x82965a[_0x2b2793(0x1ea)](u);var d=class extends _0x4164bf{get['LiveShareStatusEnum'](){return _0x3acb3b;}};_0x4164bf[_0x2b2793(0x1ea)](d);export{};
1
+ const _0x2b99c4=_0x4127;(function(_0x2dfac7,_0x46956c){const _0x1a42af=_0x4127,_0x41c05f=_0x2dfac7();while(!![]){try{const _0x4ceb61=-parseInt(_0x1a42af(0x92))/0x1*(-parseInt(_0x1a42af(0x85))/0x2)+parseInt(_0x1a42af(0x8e))/0x3*(parseInt(_0x1a42af(0x7d))/0x4)+-parseInt(_0x1a42af(0x98))/0x5+-parseInt(_0x1a42af(0x81))/0x6+-parseInt(_0x1a42af(0x95))/0x7+parseInt(_0x1a42af(0x99))/0x8*(-parseInt(_0x1a42af(0x88))/0x9)+parseInt(_0x1a42af(0x96))/0xa*(parseInt(_0x1a42af(0x76))/0xb);if(_0x4ceb61===_0x46956c)break;else _0x41c05f['push'](_0x41c05f['shift']());}catch(_0x400780){_0x41c05f['push'](_0x41c05f['shift']());}}}(_0x375d,0xbe311));import{LiveShareController as _0x5c080e,LiveShareStatus as _0x393b86}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x466ade,UniverInstanceType as _0x43acff}from'@univerjs/core';import{FEnum as _0x454fcc,FUniver as _0x2bb1ef}from'@univerjs/core/facade';function o(_0x58a6c6){'@babel/helpers - typeof';const _0x26b32f=_0x4127;return o=typeof Symbol==_0x26b32f(0x7c)&&typeof Symbol['iterator']=='symbol'?function(_0x2e8053){return typeof _0x2e8053;}:function(_0x2d2e15){const _0x327a45=_0x26b32f;return _0x2d2e15&&typeof Symbol=='function'&&_0x2d2e15[_0x327a45(0x8a)]===Symbol&&_0x2d2e15!==Symbol['prototype']?_0x327a45(0x86):typeof _0x2d2e15;},o(_0x58a6c6);}function s(_0x3195ec,_0x443e48){const _0x55f6f6=_0x4127;if(o(_0x3195ec)!=_0x55f6f6(0x78)||!_0x3195ec)return _0x3195ec;var _0x454f8f=_0x3195ec[Symbol[_0x55f6f6(0x7f)]];if(_0x454f8f!==void 0x0){var _0x55cdfc=_0x454f8f[_0x55f6f6(0x90)](_0x3195ec,_0x443e48||_0x55f6f6(0x83));if(o(_0x55cdfc)!=_0x55f6f6(0x78))return _0x55cdfc;throw TypeError(_0x55f6f6(0x9b));}return(_0x443e48===_0x55f6f6(0x8c)?String:Number)(_0x3195ec);}function c(_0x454972){const _0xcabb6b=_0x4127;var _0x50cb51=s(_0x454972,_0xcabb6b(0x8c));return o(_0x50cb51)==_0xcabb6b(0x86)?_0x50cb51:_0x50cb51+'';}function _0x4127(_0x2f3811,_0x2300e9){_0x2f3811=_0x2f3811-0x74;const _0x375dc6=_0x375d();let _0x4127c5=_0x375dc6[_0x2f3811];return _0x4127c5;}function l(_0x3d215d,_0x170832,_0x411da9){const _0x4c8e2d=_0x4127;return(_0x170832=c(_0x170832))in _0x3d215d?Object[_0x4c8e2d(0x8d)](_0x3d215d,_0x170832,{'value':_0x411da9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d215d[_0x170832]=_0x411da9,_0x3d215d;}var u=class extends _0x2bb1ef{constructor(..._0x24f388){super(..._0x24f388),l(this,'_liveShareController',void 0x0);}['_initialize'](_0x516b54){const _0x3334c6=_0x4127;this[_0x3334c6(0x75)]=_0x516b54[_0x3334c6(0x79)](_0x5c080e);}[_0x2b99c4(0x7b)](){const _0x156764=_0x2b99c4;var _0x22b1d4;let _0x394362=this['_injector'][_0x156764(0x79)](_0x466ade)['getCurrentUnitOfType'](_0x43acff[_0x156764(0x84)]);if(!_0x394362)throw Error(_0x156764(0x87));let _0x18ee74=_0x394362[_0x156764(0x82)](),_0x24aa04=this[_0x156764(0x75)][_0x156764(0x7e)](_0x18ee74);return(_0x22b1d4=_0x24aa04==null?void 0x0:_0x24aa04[_0x156764(0x80)]())==null?_0x393b86[_0x156764(0x9a)]:_0x22b1d4;}[_0x2b99c4(0x89)](){const _0x382580=_0x2b99c4;let _0x3a4637=this['_injector']['get'](_0x466ade)[_0x382580(0x77)](_0x43acff[_0x382580(0x84)]);if(!_0x3a4637)throw Error(_0x382580(0x87));let _0x5a63c3=_0x3a4637[_0x382580(0x82)](),_0x544cdf=this[_0x382580(0x75)][_0x382580(0x7e)](_0x5a63c3);if(!_0x544cdf)throw Error(_0x382580(0x8b));_0x544cdf[_0x382580(0x89)]();}[_0x2b99c4(0x7a)](){const _0x10e062=_0x2b99c4;let _0x2bb08d=this[_0x10e062(0x8f)][_0x10e062(0x79)](_0x466ade)[_0x10e062(0x77)](_0x43acff['UNIVER_SHEET']);if(!_0x2bb08d)throw Error(_0x10e062(0x87));let _0xaf535=_0x2bb08d[_0x10e062(0x82)](),_0x313a6b=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xaf535);if(!_0x313a6b)throw Error(_0x10e062(0x8b));_0x313a6b[_0x10e062(0x7a)]();}[_0x2b99c4(0x94)](){const _0x1063f5=_0x2b99c4;let _0x9ccbb8=this[_0x1063f5(0x8f)][_0x1063f5(0x79)](_0x466ade)[_0x1063f5(0x77)](_0x43acff[_0x1063f5(0x84)]);if(!_0x9ccbb8)throw Error('No\x20active\x20workbook\x20found.');let _0x8cb53=_0x9ccbb8[_0x1063f5(0x82)](),_0xd37551=this['_liveShareController'][_0x1063f5(0x7e)](_0x8cb53);if(!_0xd37551)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd37551[_0x1063f5(0x97)]();}[_0x2b99c4(0x93)](){const _0x1aa385=_0x2b99c4;let _0x17f76c=this[_0x1aa385(0x8f)][_0x1aa385(0x79)](_0x466ade)[_0x1aa385(0x77)](_0x43acff[_0x1aa385(0x84)]);if(!_0x17f76c)throw Error('No\x20active\x20workbook\x20found.');let _0x1f4350=_0x17f76c[_0x1aa385(0x82)](),_0x18a7ee=this[_0x1aa385(0x75)][_0x1aa385(0x7e)](_0x1f4350);if(!_0x18a7ee)throw Error(_0x1aa385(0x8b));_0x18a7ee['stopPresenting']();}};function _0x375d(){const _0x57ef33=['7015505MxDMzB','440088rxADDv','IDLE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','_liveShareController','121VKiDZH','getCurrentUnitOfType','object','get','stopFollowing','getLiveShareStatus','function','192IIMkuk','getLiveShareCoordinatorSync','toPrimitive','getStatus','2151228BBzvqQ','getUnitId','default','UNIVER_SHEET','401818ykiyVb','symbol','No\x20active\x20workbook\x20found.','54fPVGWF','startFollowing','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','string','defineProperty','78753FJEMfP','_injector','call','extend','3kCEKYF','stopPresenting','startPresenting','4151203XPisOI','1455440IjoCew','tryStartPresenting'];_0x375d=function(){return _0x57ef33;};return _0x375d();}_0x2bb1ef[_0x2b99c4(0x91)](u);var d=class extends _0x454fcc{get[_0x2b99c4(0x74)](){return _0x393b86;}};_0x454fcc[_0x2b99c4(0x91)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ceb6f=_0xf242;(function(_0x3b1cf9,_0x30260b){const _0x5cd423=_0xf242,_0x347ef9=_0x3b1cf9();while(!![]){try{const _0x471c79=parseInt(_0x5cd423(0x1f5))/0x1+-parseInt(_0x5cd423(0x19d))/0x2+-parseInt(_0x5cd423(0x1db))/0x3+-parseInt(_0x5cd423(0x189))/0x4*(parseInt(_0x5cd423(0x1c7))/0x5)+parseInt(_0x5cd423(0x1ae))/0x6*(parseInt(_0x5cd423(0x184))/0x7)+parseInt(_0x5cd423(0x1a9))/0x8+-parseInt(_0x5cd423(0x210))/0x9;if(_0x471c79===_0x30260b)break;else _0x347ef9['push'](_0x347ef9['shift']());}catch(_0xb63a8a){_0x347ef9['push'](_0x347ef9['shift']());}}}(_0x3ce7,0x8734e));import{CommandType as _0x13e285,DependentOn as _0x99e981,Disposable as _0x49320b,DisposableCollection as _0x5a4b9d,ICommandService as _0x2b3864,IConfigService as _0x2bf9f3,IUniverInstanceService as _0x43e007,Inject as _0x478c03,Injector as _0x31717f,Plugin as _0x58c46d,RxDisposable as _0x49b881,UniverInstanceType as _0xaf5923,merge as _0x3d1d44,mergeOverrideWithDependencies as _0x352515,registerDependencies as _0x25e916,toDisposable as _0x5e1636,touchDependencies as _0x837966}from'@univerjs/core';import{BuiltInUIPart as _0x6407ff,IUIPartsService as _0x5acf09,connectInjector as _0x17807b,useDependency as _0x5d2936,useObservable as _0x4b13c5}from'@univerjs/ui';import{Button as _0x45d162,Dropdown as _0x5e1365,clsx as _0x21aa0f}from'@univerjs/design';import{LiveShareIcon as _0xee1e9c}from'@univerjs/icons';import{useEffect as _0x37bb14,useRef as _0x54f12e,useState as _0x2cbf33}from'react';import{CollaborationEvent as _0xc2fe54,parseProtocolChangeset as _0x5a7fff}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x11c673,SessionStatus as _0x51afad,UniverCollaborationClientPlugin as _0x558de1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x598b51,SetWorksheetActiveOperation as _0x1a55e4}from'@univerjs/sheets';import{BehaviorSubject as _0x35a652,Subject as _0x1eeb39}from'rxjs';import{takeUntil as _0x1df922,throttleTime as _0xdaccc4}from'rxjs/operators';import{Fragment as _0x75d924,jsx as _0xad4a0d,jsxs as _0x1069d8}from'react/jsx-runtime';import{SetScrollOperation as _0x541869,SetZoomRatioOperation as _0x4c9a92}from'@univerjs/sheets-ui';function L(_0x502970){'@babel/helpers - typeof';const _0x5e7438=_0xf242;return L=typeof Symbol==_0x5e7438(0x1aa)&&typeof Symbol['iterator']=='symbol'?function(_0x3b1ddb){return typeof _0x3b1ddb;}:function(_0xa315e9){const _0x37421e=_0x5e7438;return _0xa315e9&&typeof Symbol==_0x37421e(0x1aa)&&_0xa315e9[_0x37421e(0x1a8)]===Symbol&&_0xa315e9!==Symbol[_0x37421e(0x200)]?_0x37421e(0x208):typeof _0xa315e9;},L(_0x502970);}function R(_0x2069b4,_0x5afd55){const _0x50ac9c=_0xf242;if(L(_0x2069b4)!=_0x50ac9c(0x1f1)||!_0x2069b4)return _0x2069b4;var _0x310f51=_0x2069b4[Symbol[_0x50ac9c(0x1c5)]];if(_0x310f51!==void 0x0){var _0x2d0ef7=_0x310f51[_0x50ac9c(0x1d8)](_0x2069b4,_0x5afd55||_0x50ac9c(0x19e));if(L(_0x2d0ef7)!='object')return _0x2d0ef7;throw TypeError(_0x50ac9c(0x191));}return(_0x5afd55===_0x50ac9c(0x1be)?String:Number)(_0x2069b4);}function z(_0x29aedc){const _0xbb8dea=_0xf242;var _0x31cee0=R(_0x29aedc,_0xbb8dea(0x1be));return L(_0x31cee0)==_0xbb8dea(0x208)?_0x31cee0:_0x31cee0+'';}function B(_0x3adf98,_0x508364,_0x13822a){return(_0x508364=z(_0x508364))in _0x3adf98?Object['defineProperty'](_0x3adf98,_0x508364,{'value':_0x13822a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3adf98[_0x508364]=_0x13822a,_0x3adf98;}var V=class extends _0x49320b{constructor(..._0x1f2c5b){const _0x3edb34=_0xf242;super(..._0x1f2c5b),B(this,_0x3edb34(0x18e),new Set()),B(this,_0x3edb34(0x1cd),new Set());}[_0x1ceb6f(0x1d0)](_0x430b44){const _0x1dc732=_0x1ceb6f;return this[_0x1dc732(0x18e)][_0x1dc732(0x1fc)](_0x430b44),_0x5e1636(()=>this[_0x1dc732(0x18e)]['delete'](_0x430b44));}[_0x1ceb6f(0x1f4)](_0x30dbb3){const _0x38abe2=_0x1ceb6f;return this[_0x38abe2(0x1cd)]['add'](_0x30dbb3),_0x5e1636(()=>this[_0x38abe2(0x1cd)][_0x38abe2(0x1af)](_0x30dbb3));}[_0x1ceb6f(0x190)](_0x291aa3){const _0x11880e=_0x1ceb6f;return this['_sharedOperations'][_0x11880e(0x20a)](_0x291aa3);}['getInitialStates'](_0x2e5ee0){const _0x350403=_0x1ceb6f;return Array[_0x350403(0x187)](this['_reporters'])[_0x350403(0x19a)](_0x4cafe1=>_0x4cafe1(_0x2e5ee0));}};function H(_0x44db13,_0x1922eb){return function(_0x51f62f,_0xd9aa90){_0x1922eb(_0x51f62f,_0xd9aa90,_0x44db13);};}function U(_0x5c3ad2,_0x17ec96,_0xb7a8f3,_0x5e3061){const _0x124f31=_0x1ceb6f;var _0x25e8d9=arguments[_0x124f31(0x211)],_0x542298=_0x25e8d9<0x3?_0x17ec96:_0x5e3061===null?_0x5e3061=Object[_0x124f31(0x204)](_0x17ec96,_0xb7a8f3):_0x5e3061,_0x421246;if(typeof Reflect==_0x124f31(0x1f1)&&typeof Reflect[_0x124f31(0x1e8)]==_0x124f31(0x1aa))_0x542298=Reflect['decorate'](_0x5c3ad2,_0x17ec96,_0xb7a8f3,_0x5e3061);else{for(var _0x5b963c=_0x5c3ad2['length']-0x1;_0x5b963c>=0x0;_0x5b963c--)(_0x421246=_0x5c3ad2[_0x5b963c])&&(_0x542298=(_0x25e8d9<0x3?_0x421246(_0x542298):_0x25e8d9>0x3?_0x421246(_0x17ec96,_0xb7a8f3,_0x542298):_0x421246(_0x17ec96,_0xb7a8f3))||_0x542298);}return _0x25e8d9>0x3&&_0x542298&&Object[_0x124f31(0x1ad)](_0x17ec96,_0xb7a8f3,_0x542298),_0x542298;}let W=class extends _0x49b881{constructor(_0x4d23df,_0xf7099a,_0x4edc27){const _0x35bdfa=_0x1ceb6f;super(),this[_0x35bdfa(0x195)]=_0x4d23df,this[_0x35bdfa(0x1ab)]=_0xf7099a,this['_collabSessionService']=_0x4edc27,B(this,_0x35bdfa(0x1ff),new Map()),this[_0x35bdfa(0x1fd)]();}async[_0x1ceb6f(0x1de)](_0x58f453){const _0xd25627=_0x1ceb6f;return this[_0xd25627(0x1ff)][_0xd25627(0x20a)](_0x58f453)||await this['_startLiveShareCoordinator'](_0x58f453),this[_0xd25627(0x1ff)][_0xd25627(0x1a6)](_0x58f453);}['getLiveShareCoordinatorSync'](_0x234adb){const _0x1a5a96=_0x1ceb6f;var _0x28268e;return(_0x28268e=this[_0x1a5a96(0x1ff)][_0x1a5a96(0x1a6)](_0x234adb))==null?null:_0x28268e;}[_0x1ceb6f(0x1fd)](){const _0xb8758d=_0x1ceb6f;this[_0xb8758d(0x195)][_0xb8758d(0x18d)](_0xaf5923['UNIVER_SHEET'])['pipe'](_0x1df922(this['dispose$']))[_0xb8758d(0x1ec)](async _0x1377fe=>{const _0x1b1a24=_0xb8758d;let _0xae6b80=_0x1377fe[_0x1b1a24(0x1fa)][_0x1b1a24(0x194)]();this[_0x1b1a24(0x1ff)][_0x1b1a24(0x20a)](_0xae6b80)||this[_0x1b1a24(0x199)](_0xae6b80);}),this[_0xb8758d(0x195)][_0xb8758d(0x1a4)](_0xaf5923[_0xb8758d(0x1f6)])[_0xb8758d(0x180)](_0x1df922(this[_0xb8758d(0x19f)]))[_0xb8758d(0x1ec)](_0x270781=>{const _0x1c37d0=_0xb8758d;let _0x30907c=_0x270781[_0x1c37d0(0x194)](),_0x580051=this[_0x1c37d0(0x1ff)][_0x1c37d0(0x1a6)](_0x30907c);_0x580051==null||_0x580051['dispose']();});}async[_0x1ceb6f(0x199)](_0x3b7753){const _0xe28cad=_0x1ceb6f;let _0x1ea5d5=await this[_0xe28cad(0x1fe)]['requireSession'](_0x3b7753),_0x2ce62f=this[_0xe28cad(0x1ab)][_0xe28cad(0x1e4)](K,_0x3b7753,_0x1ea5d5);return _0x2ce62f[_0xe28cad(0x1ed)](),this[_0xe28cad(0x1ff)][_0xe28cad(0x1c8)](_0x3b7753,_0x2ce62f),_0x2ce62f;}};W=U([H(0x0,_0x43e007),H(0x1,_0x478c03(_0x31717f)),H(0x2,_0x478c03(_0x11c673))],W);let G=function(_0x77396e){const _0xe15eaa=_0x1ceb6f;return _0x77396e[_0xe15eaa(0x1a3)]=_0xe15eaa(0x1a1),_0x77396e[_0xe15eaa(0x183)]='idle',_0x77396e[_0xe15eaa(0x17f)]=_0xe15eaa(0x1b1),_0x77396e[_0xe15eaa(0x1c0)]=_0xe15eaa(0x186),_0x77396e['PRESENTING']=_0xe15eaa(0x1f3),_0x77396e;}({}),K=class extends _0x49b881{get[_0x1ceb6f(0x1b3)](){const _0x334a44=_0x1ceb6f;return this[_0x334a44(0x1da)][_0x334a44(0x1cf)]();}constructor(_0x1dd1ec,_0x2aa674,_0x37d1d3,_0x37f69,_0x1ac378){const _0x368346=_0x1ceb6f;super(),this[_0x368346(0x1eb)]=_0x1dd1ec,this[_0x368346(0x209)]=_0x2aa674,this[_0x368346(0x1dc)]=_0x37d1d3,this[_0x368346(0x1d4)]=_0x37f69,this['_commandService']=_0x1ac378,B(this,'_status$',new _0x35a652('idle')),B(this,_0x368346(0x1dd),this['_status$'][_0x368346(0x1bc)]()),B(this,_0x368346(0x1fd),!0x1),B(this,'_commandDisposable',null),B(this,_0x368346(0x19b),null);}[_0x1ceb6f(0x1e3)](){const _0x5b274e=_0x1ceb6f;var _0x5bdca0;(_0x5bdca0=this['_commandDisposable'])==null||_0x5bdca0[_0x5b274e(0x1e3)](),this[_0x5b274e(0x1da)]['next'](_0x5b274e(0x20f)),this[_0x5b274e(0x1da)]['complete']();}[_0x1ceb6f(0x1d5)](){const _0x79685d=_0x1ceb6f;return this[_0x79685d(0x1b3)];}[_0x1ceb6f(0x1ed)](){const _0x194672=_0x1ceb6f;this[_0x194672(0x1fd)]||(this['_init']=!0x0,this[_0x194672(0x209)]['sessionStatus$'][_0x194672(0x180)](_0x1df922(this['dispose$']))['subscribe'](_0x407ac0=>{const _0x3c2b3d=_0x194672;switch(_0x407ac0){case _0x51afad[_0x3c2b3d(0x1a3)]:this[_0x3c2b3d(0x18b)]();break;case _0x51afad[_0x3c2b3d(0x1e1)]:this[_0x3c2b3d(0x1f0)]();break;default:}}),this['_collabSession'][_0x194672(0x1b5)]['pipe'](_0x1df922(this[_0x194672(0x19f)]))[_0x194672(0x1ec)](_0x5c331f=>{const _0x3fd5f6=_0x194672;let {eventID:_0x3c949c}=_0x5c331f;switch(_0x3c949c){case _0xc2fe54[_0x3fd5f6(0x1bd)]:this[_0x3fd5f6(0x1ee)](_0x5c331f);break;case _0xc2fe54[_0x3fd5f6(0x193)]:this[_0x3fd5f6(0x192)](_0x5c331f);break;case _0xc2fe54['LIVESHARE_TERMINATE']:this[_0x3fd5f6(0x20b)]();break;case _0xc2fe54['NEW_CHANGESETS']:this[_0x3fd5f6(0x1e0)](_0x5c331f);break;default:}}));}[_0x1ceb6f(0x182)](){const _0x28fb1e=_0x1ceb6f;this['_collabSession'][_0x28fb1e(0x1cc)]({'eventID':_0xc2fe54[_0x28fb1e(0x1bf)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x28fb1e(0x19c)]()}},this[_0x28fb1e(0x1eb)]);}[_0x1ceb6f(0x1ca)](){const _0x3de99b=_0x1ceb6f;this[_0x3de99b(0x1b3)]==='presenting'&&(this['_status$'][_0x3de99b(0x20e)](_0x3de99b(0x20f)),this['_collabSession'][_0x3de99b(0x1cc)]({'eventID':_0xc2fe54[_0x3de99b(0x1ba)],'data':{'unitID':this['_unitID']}},this[_0x3de99b(0x1eb)]));}[_0x1ceb6f(0x1c4)](){const _0x40cb96=_0x1ceb6f;this[_0x40cb96(0x1b3)]===_0x40cb96(0x186)&&(this['_status$']['next'](_0x40cb96(0x1b1)),this['_startFollowing']());}['stopFollowing'](){const _0xcab73e=_0x1ceb6f;this[_0xcab73e(0x1b3)]==='following'&&this[_0xcab73e(0x1e9)]();}[_0x1ceb6f(0x1ee)](_0x4c1081){const _0x18fbe8=_0x1ceb6f;let {presenter:_0x5e21aa}=_0x4c1081[_0x18fbe8(0x1a2)],_0x502fa2=this['_collabSession']['getMemberID']();this[_0x18fbe8(0x19b)]=_0x5e21aa,_0x5e21aa===_0x502fa2?(this[_0x18fbe8(0x1e9)](),this[_0x18fbe8(0x1b0)]()):this[_0x18fbe8(0x1b3)]!==_0x18fbe8(0x186)&&(this[_0x18fbe8(0x181)](),this[_0x18fbe8(0x1ea)]());}['_fetchOperations'](){const _0x260a89=_0x1ceb6f;let _0x3382bd={'eventID':_0xc2fe54[_0x260a89(0x197)]};this[_0x260a89(0x209)]['send'](_0x3382bd,this['_unitID']);}[_0x1ceb6f(0x20b)](){const _0x589cf1=_0x1ceb6f;this[_0x589cf1(0x19b)]=null,this[_0x589cf1(0x1b3)]!==_0x589cf1(0x1f3)&&this[_0x589cf1(0x1ef)]();}[_0x1ceb6f(0x1e0)](_0x14366f){const _0x1a2853=_0x1ceb6f;if(this[_0x1a2853(0x1b3)]===_0x1a2853(0x1b1)&&this[_0x1a2853(0x19b)]===_0x14366f['data'][_0x1a2853(0x18c)]){let _0x94eb8f=_0x5a7fff(_0x14366f[_0x1a2853(0x1a2)])[_0x1a2853(0x203)][_0x1a2853(0x1c6)]()[_0x1a2853(0x1e7)](_0x5a1039=>_0x5a1039['id']===_0x598b51['id']);if(_0x94eb8f){let _0x324519=_0x94eb8f[_0x1a2853(0x1e5)]['unitId'],_0x4328e5=_0x94eb8f[_0x1a2853(0x1e5)][_0x1a2853(0x198)]['id'];setTimeout(()=>{const _0x263a83=_0x1a2853;this[_0x263a83(0x1b6)]['executeCommand'](_0x1a55e4['id'],{'unitId':_0x324519,'subUnitId':_0x4328e5},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4b602c=_0x1ceb6f;this['_status$'][_0x4b602c(0x20e)]('presenting');let _0x47970d=new Map(),_0x39934c=this[_0x4b602c(0x18a)]=new _0x5a4b9d();_0x39934c[_0x4b602c(0x1fc)](_0x5e1636(()=>{const _0x1eebd4=_0x4b602c;_0x47970d['forEach'](_0x4c7567=>_0x4c7567[_0x1eebd4(0x185)]()),_0x47970d['clear']();})),_0x39934c[_0x4b602c(0x1fc)](this[_0x4b602c(0x1b6)]['onCommandExecuted'](_0x540a7b=>{const _0x1c5ae6=_0x4b602c;if(_0x540a7b['type']!==_0x13e285[_0x1c5ae6(0x1f7)]||!this[_0x1c5ae6(0x1d4)][_0x1c5ae6(0x190)](_0x540a7b['id']))return;let {id:_0x4812b3}=_0x540a7b,_0x4ddf37;if(_0x47970d[_0x1c5ae6(0x20a)](_0x4812b3))_0x4ddf37=_0x47970d[_0x1c5ae6(0x1a6)](_0x4812b3);else{var _0x413c59;_0x4ddf37=new _0x1eeb39(),_0x47970d[_0x1c5ae6(0x1c8)](_0x4812b3,_0x4ddf37),_0x4ddf37[_0x1c5ae6(0x180)](_0xdaccc4((_0x413c59=this[_0x1c5ae6(0x1dc)][_0x1c5ae6(0x1fb)](_0x1c5ae6(0x1d7)))==null?0xc8:_0x413c59,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1c5ae6(0x1ec)](_0x14ad6a=>{const _0x4dd93f=_0x1c5ae6;this[_0x4dd93f(0x209)][_0x4dd93f(0x1cc)]({'eventID':_0xc2fe54[_0x4dd93f(0x193)],'data':{'unitID':this['_unitID'],'operations':{[_0x14ad6a['id']]:{'id':_0x14ad6a['id'],'params':JSON[_0x4dd93f(0x213)](_0x14ad6a[_0x4dd93f(0x1e5)])}}}},this[_0x4dd93f(0x1eb)]);});}_0x4ddf37[_0x1c5ae6(0x20e)](_0x540a7b);})),this[_0x4b602c(0x1d4)]['getInitialStates'](this[_0x4b602c(0x1eb)])['forEach'](_0xe1d573=>this[_0x4b602c(0x209)][_0x4b602c(0x1cc)]({'eventID':_0xc2fe54['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xe1d573['id']]:{'id':_0xe1d573['id'],'params':JSON[_0x4b602c(0x213)](_0xe1d573[_0x4b602c(0x1e5)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2440e6=_0x1ceb6f;var _0x383198;this['_status$'][_0x2440e6(0x20e)](_0x2440e6(0x20f)),(_0x383198=this[_0x2440e6(0x18a)])==null||_0x383198[_0x2440e6(0x1e3)](),this[_0x2440e6(0x18a)]=null;}['_startFollowing'](){const _0x2ca64a=_0x1ceb6f;var _0x46f4ed;(_0x46f4ed=this[_0x2ca64a(0x18a)])==null||_0x46f4ed[_0x2ca64a(0x1e3)](),this[_0x2ca64a(0x1da)][_0x2ca64a(0x20e)](_0x2ca64a(0x1b1));}[_0x1ceb6f(0x1ef)](){const _0x94429b=_0x1ceb6f;var _0x120fc9;this[_0x94429b(0x1da)]['next']('idle'),(_0x120fc9=this[_0x94429b(0x18a)])==null||_0x120fc9[_0x94429b(0x1e3)](),this[_0x94429b(0x18a)]=null;}[_0x1ceb6f(0x1e9)](){const _0x36a280=_0x1ceb6f;var _0x2b043b;this[_0x36a280(0x1da)][_0x36a280(0x20e)](_0x36a280(0x186)),(_0x2b043b=this[_0x36a280(0x18a)])==null||_0x2b043b['dispose']();}['_handleOperation'](_0x5649d3){const _0x31f62d=_0x1ceb6f;if([_0x31f62d(0x1f3),_0x31f62d(0x186),_0x31f62d(0x1a1)][_0x31f62d(0x1b9)](this[_0x31f62d(0x1b3)])||!_0x5649d3[_0x31f62d(0x1a2)][_0x31f62d(0x1c1)]||_0x5649d3[_0x31f62d(0x1a2)][_0x31f62d(0x1c1)]===this[_0x31f62d(0x209)][_0x31f62d(0x19c)]())return;this[_0x31f62d(0x1b3)]===_0x31f62d(0x20f)&&this[_0x31f62d(0x1ea)]();let _0x2f400a=_0x5649d3[_0x31f62d(0x1a2)][_0x31f62d(0x1b7)];Object['values'](_0x2f400a)[_0x31f62d(0x1e6)](_0x5768a7=>{const _0x1c4057=_0x31f62d;this[_0x1c4057(0x1b6)][_0x1c4057(0x1d3)](_0x5768a7['id'],_0x5768a7[_0x1c4057(0x1e5)]?JSON[_0x1c4057(0x1df)](_0x5768a7[_0x1c4057(0x1e5)]):null,{'fromCollab':!0x0});});}[_0x1ceb6f(0x18b)](){const _0x5bb17a=_0x1ceb6f;var _0x3c7e05;this['_status$'][_0x5bb17a(0x20e)](_0x5bb17a(0x1a1)),(_0x3c7e05=this[_0x5bb17a(0x18a)])==null||_0x3c7e05[_0x5bb17a(0x1e3)]();}[_0x1ceb6f(0x1f0)](){const _0x1d3745=_0x1ceb6f;this[_0x1d3745(0x1da)][_0x1d3745(0x20e)](_0x1d3745(0x20f)),this[_0x1d3745(0x1b4)]();}};K=U([H(0x2,_0x2bf9f3),H(0x3,_0x478c03(V)),H(0x4,_0x2b3864)],K);function q(){const _0x567b6b=_0x1ceb6f;let _0x247b4f=_0x5d2936(W),_0x46cb69=_0x5d2936(_0x43e007),_0x4fa823=_0x4b13c5(()=>_0x46cb69['getCurrentTypeOfUnit$'](_0xaf5923[_0x567b6b(0x1f6)]),void 0x0,!0x1,[]),[_0x4eb670,_0x1c81c0]=_0x2cbf33(null),[_0x21ed0c,_0x30b9d0]=_0x2cbf33(_0x567b6b(0x20f)),_0x3d2ca8=_0x54f12e(null);return _0x37bb14(()=>(_0x4fa823&&_0x247b4f[_0x567b6b(0x1de)](_0x4fa823[_0x567b6b(0x194)]())[_0x567b6b(0x1cb)](_0x7d2909=>{const _0x55c766=_0x567b6b;_0x1c81c0(_0x7d2909),_0x3d2ca8[_0x55c766(0x20c)]=_0x7d2909[_0x55c766(0x1dd)][_0x55c766(0x1ec)](_0x2a4b2e=>{_0x30b9d0(_0x2a4b2e);});}),()=>{const _0x3e2956=_0x567b6b;var _0x5eaf64;(_0x5eaf64=_0x3d2ca8[_0x3e2956(0x20c)])==null||_0x5eaf64[_0x3e2956(0x1ac)](),_0x3d2ca8[_0x3e2956(0x20c)]=null;}),[_0x4fa823,_0x247b4f]),_0x4eb670?_0xad4a0d(_0x5e1365,{'align':_0x567b6b(0x207),'disabled':_0x21ed0c==='offline','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':_0xad4a0d(ce,{'status':_0x21ed0c,'coordinator':_0x4eb670}),'children':_0xad4a0d(_0x567b6b(0x1b2),{'className':_0x21aa0f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x21ed0c===_0x567b6b(0x1a1),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed0c!==_0x567b6b(0x1a1)}),'type':_0x567b6b(0x1b2),'children':_0xad4a0d(_0xee1e9c,{'className':_0x567b6b(0x20d)})})}):null;}function ce(_0x3f732b){const _0x434c63=_0x1ceb6f;let {status:_0x3757e9,coordinator:_0x221a76}=_0x3f732b;switch(_0x3757e9){case'idle':return _0xad4a0d(le,{'coordinator':_0x221a76});case _0x434c63(0x1b1):return _0xad4a0d(ue,{'coordinator':_0x221a76});case _0x434c63(0x186):return _0xad4a0d(de,{'coordinator':_0x221a76});case _0x434c63(0x1a1):return _0xad4a0d(fe,{});case _0x434c63(0x1f3):return _0xad4a0d(J,{'coordinator':_0x221a76});default:return null;}}function le(_0x28f13f){const _0x5b2181=_0x1ceb6f;let {coordinator:_0xb9e5e6}=_0x28f13f;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d(_0x5b2181(0x1c3),{'className':_0x5b2181(0x1bb),'children':_0x5b2181(0x206)}),_0xad4a0d(_0x45d162,{'onClick':()=>_0xb9e5e6[_0x5b2181(0x182)](),'children':_0x5b2181(0x1e2)})]});}function ue(_0x4d09ce){const _0x4df3d4=_0x1ceb6f;let {coordinator:_0x53cf08}=_0x4d09ce;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d(_0x4df3d4(0x1c3),{'className':_0x4df3d4(0x1bb),'children':'You\x27re\x20following\x20the\x20presenter'}),_0xad4a0d(_0x45d162,{'onClick':()=>_0x53cf08[_0x4df3d4(0x202)](),'children':'Stop\x20following'})]});}function de(_0xc72e3b){const _0x1315a3=_0x1ceb6f;let {coordinator:_0x15d306}=_0xc72e3b;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d(_0x1315a3(0x1c3),{'className':_0x1315a3(0x1bb),'children':_0x1315a3(0x1b8)}),_0xad4a0d(_0x45d162,{'variant':'text','onClick':()=>_0x15d306[_0x1315a3(0x1c4)](),'children':_0x1315a3(0x1a0)})]});}function J(_0x5342fa){const _0x3306e0=_0x1ceb6f;let {coordinator:_0x37559e}=_0x5342fa;return _0x1069d8(_0x75d924,{'children':[_0xad4a0d('div',{'className':_0x3306e0(0x1bb),'children':_0x3306e0(0x1f9)}),_0xad4a0d(_0x45d162,{'variant':_0x3306e0(0x19e),'onClick':()=>_0x37559e[_0x3306e0(0x1ca)](),'children':_0x3306e0(0x188)})]});}function fe(){return _0xad4a0d(_0x75d924,{'children':'You\x27are\x20offline.'});}let Y=class extends _0x49320b{constructor(_0x5c830e,_0x4f1d59){const _0x338185=_0x1ceb6f;super(),this[_0x338185(0x1ab)]=_0x5c830e,this[_0x338185(0x1a7)]=_0x4f1d59,this[_0x338185(0x1f8)]();}['_mountLiveShare'](){const _0x31eaca=_0x1ceb6f;this[_0x31eaca(0x1c9)](this[_0x31eaca(0x1a7)][_0x31eaca(0x1c2)](_0x6407ff[_0x31eaca(0x1d2)],()=>_0x17807b(q,this[_0x31eaca(0x1ab)])));}};Y=U([H(0x0,_0x478c03(_0x31717f)),H(0x1,_0x5acf09)],Y);var pe=_0x1ceb6f(0x201),me=_0x1ceb6f(0x1d9);const X='live-share.config';function _0x3ce7(){const _0x9766b3=['unsubscribe','defineProperty','3126822YEJWkH','delete','_startPresenting','following','button','_status','_fetchOperations','event$','_commandService','operations','You\x27re\x20not\x20following\x20the\x20presenter','includes','LIVESHARE_TERMINATE','univer-mb-3\x20univer-w-full\x20univer-text-sm','asObservable','LIVESHARE_NEW_HOST','string','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','presenter','registerComponent','div','startFollowing','toPrimitive','reverse','205JEKNVA','set','disposeWithMe','stopPresenting','then','send','_reporters','UNIVER_LIVE_SHARE_PLUGIN','getValue','registerSharedOperation','_config','HEADER_MENU','executeCommand','_liveShareService','getStatus','onStarting','SAME_OPERATION_SHARE_INTERVAL','call','0.23.0','_status$','2067648bqWgrF','_configService','status$','getLiveShareCoordinator','parse','_handleNewChangeSets','ONLINE','Start','dispose','createInstance','params','forEach','find','decorate','_stopFollowing','_startFollowing','_unitID','subscribe','init','_handleNewHost','_beIdle','_handleOnline','object','version','presenting','registerInitialStateReporter','684373AblLeV','UNIVER_SHEET','OPERATION','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','unit','getConfig','add','_init','_collabSessionService','_entities','prototype','@univerjs-pro/live-share','stopFollowing','mutations','getOwnPropertyDescriptor','setConfig','Present\x20this\x20document','end','symbol','_collabSession','has','_handleTerminate','current','univer-size-4','next','idle','1574982uqdikN','length','override','stringify','FOLLOWING','pipe','_stopPresenting','tryStartPresenting','IDLE','7rCuqgV','complete','not-following','from','Stop\x20presenting','1776ZGruRQ','_commandDisposable','_handleOffline','memberID','getTypeOfUnitAdded$','_sharedOperations','packageName','shouldShareOperation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_handleOperation','LIVESHARE_OPERATION','getUnitId','_univerInstanceService','UNIVER_UNKNOWN','LIVESHARE_FETCH_OPERATIONS','sheet','_startLiveShareCoordinator','map','_presenter','getMemberID','1558000Drjjlm','default','dispose$','Start\x20following','offline','data','OFFLINE','getTypeOfUnitDisposed$','type','get','_uiPartsService','constructor','8077712blRRbK','function','_injector'];_0x3ce7=function(){return _0x9766b3;};return _0x3ce7();}Symbol(X);const Z={};let Q=class extends _0x49320b{constructor(_0x58079a){const _0x5893d8=_0x1ceb6f;super(),this[_0x5893d8(0x1d4)]=_0x58079a,this[_0x5893d8(0x1fd)]();}[_0x1ceb6f(0x1fd)](){const _0xf05b41=_0x1ceb6f;[_0x4c9a92['id'],_0x541869['id'],_0x1a55e4['id']][_0xf05b41(0x1e6)](_0x5db70b=>{const _0x35f844=_0xf05b41;this[_0x35f844(0x1c9)](this['_liveShareService'][_0x35f844(0x1d0)](_0x5db70b));});}};Q=U([H(0x0,_0x478c03(V))],Q);let $=class extends _0x58c46d{constructor(_0x13d814=Z,_0x9c8449,_0x5652e4){const _0x17b114=_0x1ceb6f;super(),this[_0x17b114(0x1d1)]=_0x13d814,this[_0x17b114(0x1ab)]=_0x9c8449,this['_configService']=_0x5652e4;let {..._0x407d63}=_0x3d1d44({},Z,this[_0x17b114(0x1d1)]);this[_0x17b114(0x1dc)][_0x17b114(0x205)](X,_0x407d63);}[_0x1ceb6f(0x1d6)](){const _0x2564f4=_0x1ceb6f;_0x25e916(this[_0x2564f4(0x1ab)],_0x352515([[V],[W],[Q],[Y]],this['_config'][_0x2564f4(0x212)])),_0x837966(this[_0x2564f4(0x1ab)],[[Q]]);}['onRendered'](){_0x837966(this['_injector'],[[Y]]);}};B($,_0x1ceb6f(0x1a5),_0xaf5923[_0x1ceb6f(0x196)]),B($,'pluginName',_0x1ceb6f(0x1ce)),B($,_0x1ceb6f(0x18f),pe),B($,_0x1ceb6f(0x1f2),me),$=U([_0x99e981(_0x558de1),H(0x1,_0x478c03(_0x31717f)),H(0x2,_0x2bf9f3)],$);function _0xf242(_0x5731db,_0x1bd9c2){_0x5731db=_0x5731db-0x17f;const _0x3ce787=_0x3ce7();let _0xf2426e=_0x3ce787[_0x5731db];return _0xf2426e;}export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x483488=_0x45b7;(function(_0x481774,_0x480832){const _0x4f141c=_0x45b7,_0xffc8be=_0x481774();while(!![]){try{const _0x464732=parseInt(_0x4f141c(0xef))/0x1+-parseInt(_0x4f141c(0x124))/0x2+parseInt(_0x4f141c(0x139))/0x3*(parseInt(_0x4f141c(0x123))/0x4)+parseInt(_0x4f141c(0x14f))/0x5*(-parseInt(_0x4f141c(0x119))/0x6)+parseInt(_0x4f141c(0x13b))/0x7+-parseInt(_0x4f141c(0x154))/0x8*(parseInt(_0x4f141c(0xf3))/0x9)+-parseInt(_0x4f141c(0x137))/0xa*(-parseInt(_0x4f141c(0x159))/0xb);if(_0x464732===_0x480832)break;else _0xffc8be['push'](_0xffc8be['shift']());}catch(_0x5a7e78){_0xffc8be['push'](_0xffc8be['shift']());}}}(_0x2fbf,0x8a5d2));import{CommandType as _0x458c45,DependentOn as _0x1240ac,Disposable as _0x25821d,DisposableCollection as _0x11b478,ICommandService as _0x24a679,IConfigService as _0x5bd473,IUniverInstanceService as _0x463264,Inject as _0x519b70,Injector as _0x1f8563,Plugin as _0x2e5f28,RxDisposable as _0x1dffe0,UniverInstanceType as _0x443dc4,merge as _0x2e9292,mergeOverrideWithDependencies as _0x13dc50,registerDependencies as _0x1030c8,toDisposable as _0xaaab04,touchDependencies as _0x56c0e1}from'@univerjs/core';import{BuiltInUIPart as _0x4a5288,IUIPartsService as _0xc74574,connectInjector as _0x39d05e,useDependency as _0x128025,useObservable as _0x407d3e}from'@univerjs/ui';import{Button as _0x21c6a6,Dropdown as _0x451c05,clsx as _0x3a2015}from'@univerjs/design';function _0x45b7(_0x312e5c,_0x320410){_0x312e5c=_0x312e5c-0xdb;const _0x2fbfc8=_0x2fbf();let _0x45b719=_0x2fbfc8[_0x312e5c];return _0x45b719;}import{LiveShareIcon as _0x1525d7}from'@univerjs/icons';import{useEffect as _0x34b418,useRef as _0x523753,useState as _0x2329c2}from'react';import{CollaborationEvent as _0x275d1f,parseProtocolChangeset as _0xaf2f9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59fd96,SessionStatus as _0xa36ca2,UniverCollaborationClientPlugin as _0x422184}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x594abb,SetWorksheetActiveOperation as _0x3e5ed1}from'@univerjs/sheets';import{BehaviorSubject as _0x4db554,Subject as _0x3e2cca}from'rxjs';import{takeUntil as _0xa626ba,throttleTime as _0x255e38}from'rxjs/operators';import{Fragment as _0x508d28,jsx as _0x2658fa,jsxs as _0x30d109}from'react/jsx-runtime';import{SetScrollOperation as _0x354a42,SetZoomRatioOperation as _0x33a400}from'@univerjs/sheets-ui';function L(_0x3f3d6e){'@babel/helpers - typeof';const _0x4e6e03=_0x45b7;return L=typeof Symbol==_0x4e6e03(0x10e)&&typeof Symbol[_0x4e6e03(0x12a)]==_0x4e6e03(0x109)?function(_0x32bbb2){return typeof _0x32bbb2;}:function(_0x189f7d){const _0x30815f=_0x4e6e03;return _0x189f7d&&typeof Symbol==_0x30815f(0x10e)&&_0x189f7d['constructor']===Symbol&&_0x189f7d!==Symbol[_0x30815f(0x107)]?_0x30815f(0x109):typeof _0x189f7d;},L(_0x3f3d6e);}function R(_0x3b740f,_0x3edc40){const _0x3ce480=_0x45b7;if(L(_0x3b740f)!=_0x3ce480(0x14c)||!_0x3b740f)return _0x3b740f;var _0x3bf1a4=_0x3b740f[Symbol[_0x3ce480(0xe7)]];if(_0x3bf1a4!==void 0x0){var _0x134a5f=_0x3bf1a4[_0x3ce480(0x143)](_0x3b740f,_0x3edc40||_0x3ce480(0xeb));if(L(_0x134a5f)!=_0x3ce480(0x14c))return _0x134a5f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3edc40===_0x3ce480(0x162)?String:Number)(_0x3b740f);}function z(_0x412bea){const _0x12b1b8=_0x45b7;var _0x17cfec=R(_0x412bea,_0x12b1b8(0x162));return L(_0x17cfec)=='symbol'?_0x17cfec:_0x17cfec+'';}function B(_0x20a5f2,_0x2c7e78,_0x3b0dc5){const _0x42ca67=_0x45b7;return(_0x2c7e78=z(_0x2c7e78))in _0x20a5f2?Object[_0x42ca67(0x140)](_0x20a5f2,_0x2c7e78,{'value':_0x3b0dc5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20a5f2[_0x2c7e78]=_0x3b0dc5,_0x20a5f2;}var V=class extends _0x25821d{constructor(..._0x1cf08b){const _0x167e1c=_0x45b7;super(..._0x1cf08b),B(this,_0x167e1c(0x105),new Set()),B(this,_0x167e1c(0x11e),new Set());}[_0x483488(0xe5)](_0x214e18){const _0x50e9f8=_0x483488;return this[_0x50e9f8(0x105)][_0x50e9f8(0x163)](_0x214e18),_0xaaab04(()=>this[_0x50e9f8(0x105)][_0x50e9f8(0x164)](_0x214e18));}[_0x483488(0xf8)](_0x3fe0dc){const _0x457405=_0x483488;return this['_reporters'][_0x457405(0x163)](_0x3fe0dc),_0xaaab04(()=>this[_0x457405(0x11e)][_0x457405(0x164)](_0x3fe0dc));}[_0x483488(0x160)](_0x4bf672){const _0x3a52de=_0x483488;return this[_0x3a52de(0x105)]['has'](_0x4bf672);}['getInitialStates'](_0x1e90c1){const _0x36408f=_0x483488;return Array['from'](this['_reporters'])[_0x36408f(0x135)](_0x20a44e=>_0x20a44e(_0x1e90c1));}};function H(_0x2f9d8e,_0x5d4695){return function(_0x881661,_0x5cd344){_0x5d4695(_0x881661,_0x5cd344,_0x2f9d8e);};}function U(_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1){const _0x562a82=_0x483488;var _0x495527=arguments[_0x562a82(0x152)],_0x4410d1=_0x495527<0x3?_0x1af699:_0x1ec3e1===null?_0x1ec3e1=Object['getOwnPropertyDescriptor'](_0x1af699,_0x2e9d79):_0x1ec3e1,_0x2803a5;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x562a82(0x10e))_0x4410d1=Reflect['decorate'](_0x247ab9,_0x1af699,_0x2e9d79,_0x1ec3e1);else{for(var _0xe3b8d=_0x247ab9[_0x562a82(0x152)]-0x1;_0xe3b8d>=0x0;_0xe3b8d--)(_0x2803a5=_0x247ab9[_0xe3b8d])&&(_0x4410d1=(_0x495527<0x3?_0x2803a5(_0x4410d1):_0x495527>0x3?_0x2803a5(_0x1af699,_0x2e9d79,_0x4410d1):_0x2803a5(_0x1af699,_0x2e9d79))||_0x4410d1);}return _0x495527>0x3&&_0x4410d1&&Object[_0x562a82(0x140)](_0x1af699,_0x2e9d79,_0x4410d1),_0x4410d1;}let W=class extends _0x1dffe0{constructor(_0x3cbb6b,_0x2853c9,_0x476c88){const _0x22e720=_0x483488;super(),this[_0x22e720(0x10d)]=_0x3cbb6b,this[_0x22e720(0x12e)]=_0x2853c9,this['_collabSessionService']=_0x476c88,B(this,_0x22e720(0x11d),new Map()),this[_0x22e720(0x15a)]();}async[_0x483488(0x117)](_0xba2a9){const _0x305924=_0x483488;return this[_0x305924(0x11d)][_0x305924(0x13c)](_0xba2a9)||await this['_startLiveShareCoordinator'](_0xba2a9),this['_entities']['get'](_0xba2a9);}[_0x483488(0xfd)](_0x471bca){const _0x1b40ee=_0x483488;var _0x4cf63b;return(_0x4cf63b=this[_0x1b40ee(0x11d)][_0x1b40ee(0x10a)](_0x471bca))==null?null:_0x4cf63b;}[_0x483488(0x15a)](){const _0x5bec5e=_0x483488;this['_univerInstanceService'][_0x5bec5e(0x165)](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))['subscribe'](async _0x315cf7=>{const _0x1c642f=_0x5bec5e;let _0x2a2abc=_0x315cf7['unit'][_0x1c642f(0xf7)]();this[_0x1c642f(0x11d)][_0x1c642f(0x13c)](_0x2a2abc)||this[_0x1c642f(0x12d)](_0x2a2abc);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x443dc4[_0x5bec5e(0x145)])[_0x5bec5e(0xfc)](_0xa626ba(this[_0x5bec5e(0xf9)]))[_0x5bec5e(0x11f)](_0x418e3d=>{const _0x3df8c6=_0x5bec5e;let _0x5c9eda=_0x418e3d['getUnitId'](),_0x1dec7a=this[_0x3df8c6(0x11d)][_0x3df8c6(0x10a)](_0x5c9eda);_0x1dec7a==null||_0x1dec7a[_0x3df8c6(0x113)]();});}async[_0x483488(0x12d)](_0x518bed){const _0x3bc783=_0x483488;let _0x4be529=await this[_0x3bc783(0x112)]['requireSession'](_0x518bed),_0x5e329d=this['_injector']['createInstance'](K,_0x518bed,_0x4be529);return _0x5e329d[_0x3bc783(0x120)](),this[_0x3bc783(0x11d)][_0x3bc783(0xdf)](_0x518bed,_0x5e329d),_0x5e329d;}};W=U([H(0x0,_0x463264),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x519b70(_0x59fd96))],W);let G=function(_0x3cece8){const _0x316e52=_0x483488;return _0x3cece8[_0x316e52(0x14d)]=_0x316e52(0x115),_0x3cece8[_0x316e52(0xf1)]=_0x316e52(0xdd),_0x3cece8[_0x316e52(0xdb)]='following',_0x3cece8['NOT_FOLLOWING']=_0x316e52(0x11a),_0x3cece8[_0x316e52(0x108)]=_0x316e52(0xe6),_0x3cece8;}({}),K=class extends _0x1dffe0{get['_status'](){const _0x44f4c2=_0x483488;return this[_0x44f4c2(0x134)]['getValue']();}constructor(_0x42e687,_0x1f02ea,_0x4a0697,_0x2e5516,_0x328a2a){const _0x3ade14=_0x483488;super(),this['_unitID']=_0x42e687,this[_0x3ade14(0x104)]=_0x1f02ea,this['_configService']=_0x4a0697,this[_0x3ade14(0xfb)]=_0x2e5516,this[_0x3ade14(0x130)]=_0x328a2a,B(this,_0x3ade14(0x134),new _0x4db554(_0x3ade14(0xdd))),B(this,'status$',this[_0x3ade14(0x134)][_0x3ade14(0x129)]()),B(this,_0x3ade14(0x15a),!0x1),B(this,'_commandDisposable',null),B(this,'_presenter',null);}['dispose'](){const _0x731e6a=_0x483488;var _0x3d4fd0;(_0x3d4fd0=this[_0x731e6a(0x12b)])==null||_0x3d4fd0[_0x731e6a(0x113)](),this[_0x731e6a(0x134)][_0x731e6a(0x15b)](_0x731e6a(0xdd)),this[_0x731e6a(0x134)][_0x731e6a(0x14e)]();}[_0x483488(0x13a)](){return this['_status'];}[_0x483488(0x120)](){const _0x486997=_0x483488;this['_init']||(this[_0x486997(0x15a)]=!0x0,this[_0x486997(0x104)]['sessionStatus$'][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x5abeab=>{const _0x5860ad=_0x486997;switch(_0x5abeab){case _0xa36ca2[_0x5860ad(0x14d)]:this[_0x5860ad(0x151)]();break;case _0xa36ca2[_0x5860ad(0x11b)]:this[_0x5860ad(0x11c)]();break;default:}}),this[_0x486997(0x104)][_0x486997(0x142)][_0x486997(0xfc)](_0xa626ba(this[_0x486997(0xf9)]))['subscribe'](_0x3e8753=>{const _0x2726e0=_0x486997;let {eventID:_0x15297d}=_0x3e8753;switch(_0x15297d){case _0x275d1f[_0x2726e0(0x126)]:this[_0x2726e0(0x16e)](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x148)]:this['_handleOperation'](_0x3e8753);break;case _0x275d1f[_0x2726e0(0x12c)]:this['_handleTerminate']();break;case _0x275d1f[_0x2726e0(0x14a)]:this[_0x2726e0(0x16c)](_0x3e8753);break;default:}}));}[_0x483488(0xff)](){const _0x6e80e2=_0x483488;this[_0x6e80e2(0x104)][_0x6e80e2(0xf5)]({'eventID':_0x275d1f[_0x6e80e2(0x133)],'data':{'unitID':this['_unitID'],'userID':this[_0x6e80e2(0x104)][_0x6e80e2(0x121)]()}},this[_0x6e80e2(0xed)]);}[_0x483488(0x136)](){const _0x51a89a=_0x483488;this['_status']===_0x51a89a(0xe6)&&(this['_status$'][_0x51a89a(0x15b)](_0x51a89a(0xdd)),this['_collabSession'][_0x51a89a(0xf5)]({'eventID':_0x275d1f[_0x51a89a(0x12c)],'data':{'unitID':this[_0x51a89a(0xed)]}},this[_0x51a89a(0xed)]));}[_0x483488(0x155)](){const _0x1cd148=_0x483488;this[_0x1cd148(0x150)]===_0x1cd148(0x11a)&&(this['_status$'][_0x1cd148(0x15b)](_0x1cd148(0x167)),this[_0x1cd148(0x153)]());}['stopFollowing'](){const _0x267338=_0x483488;this[_0x267338(0x150)]===_0x267338(0x167)&&this['_stopFollowing']();}[_0x483488(0x16e)](_0x29354a){const _0x5a8e73=_0x483488;let {presenter:_0x31d773}=_0x29354a[_0x5a8e73(0x15e)],_0x1f914f=this['_collabSession']['getMemberID']();this[_0x5a8e73(0x138)]=_0x31d773,_0x31d773===_0x1f914f?(this[_0x5a8e73(0x10c)](),this['_startPresenting']()):this[_0x5a8e73(0x150)]!=='not-following'&&(this[_0x5a8e73(0x13e)](),this[_0x5a8e73(0x153)]());}['_fetchOperations'](){const _0x18e6a8=_0x483488;let _0x1647ab={'eventID':_0x275d1f[_0x18e6a8(0xee)]};this[_0x18e6a8(0x104)][_0x18e6a8(0xf5)](_0x1647ab,this[_0x18e6a8(0xed)]);}[_0x483488(0x16d)](){const _0x4546c6=_0x483488;this[_0x4546c6(0x138)]=null,this[_0x4546c6(0x150)]!=='presenting'&&this[_0x4546c6(0x169)]();}[_0x483488(0x16c)](_0x33cf5b){const _0x42f3f9=_0x483488;if(this['_status']===_0x42f3f9(0x167)&&this[_0x42f3f9(0x138)]===_0x33cf5b[_0x42f3f9(0x15e)][_0x42f3f9(0x125)]){let _0x335687=_0xaf2f9c(_0x33cf5b[_0x42f3f9(0x15e)])[_0x42f3f9(0xf6)][_0x42f3f9(0x116)]()[_0x42f3f9(0x15f)](_0x230023=>_0x230023['id']===_0x594abb['id']);if(_0x335687){let _0xb62741=_0x335687[_0x42f3f9(0x10b)][_0x42f3f9(0x13d)],_0x3122d2=_0x335687['params'][_0x42f3f9(0x168)]['id'];setTimeout(()=>{const _0x584661=_0x42f3f9;this['_commandService'][_0x584661(0x15d)](_0x3e5ed1['id'],{'unitId':_0xb62741,'subUnitId':_0x3122d2},{'fromCollab':!0x0});});}}}[_0x483488(0x103)](){const _0x5d974b=_0x483488;var _0x411ec8;(_0x411ec8=this[_0x5d974b(0x12b)])==null||_0x411ec8['dispose'](),this[_0x5d974b(0x134)][_0x5d974b(0x15b)](_0x5d974b(0xe6));let _0x5616b2=new Map(),_0x1bda74=this[_0x5d974b(0x12b)]=new _0x11b478();_0x1bda74['add'](_0xaaab04(()=>{const _0x5070a4=_0x5d974b;_0x5616b2[_0x5070a4(0xfa)](({subject:_0x5024d8,subscription:_0x11f265})=>{const _0x2be60c=_0x5070a4;_0x11f265[_0x2be60c(0x102)](),_0x5024d8[_0x2be60c(0x14e)]();}),_0x5616b2[_0x5070a4(0x149)]();})),_0x1bda74[_0x5d974b(0x163)](this[_0x5d974b(0x130)][_0x5d974b(0x101)](_0x19c86c=>{const _0x37efbf=_0x5d974b;if(_0x19c86c[_0x37efbf(0x118)]!==_0x458c45[_0x37efbf(0x156)]||!this[_0x37efbf(0xfb)][_0x37efbf(0x160)](_0x19c86c['id']))return;let {id:_0x3bc3e4}=_0x19c86c,_0x1536eb;if(_0x5616b2[_0x37efbf(0x13c)](_0x3bc3e4))_0x1536eb=_0x5616b2[_0x37efbf(0x10a)](_0x3bc3e4)[_0x37efbf(0x15c)];else{var _0x1ed284;_0x1536eb=new _0x3e2cca();let _0x59c8e4=_0x1536eb[_0x37efbf(0xfc)](_0x255e38((_0x1ed284=this[_0x37efbf(0x122)][_0x37efbf(0xe2)](_0x37efbf(0xe4)))==null?0xc8:_0x1ed284,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37efbf(0x11f)](_0x4deaca=>{const _0xd4647e=_0x37efbf;this[_0xd4647e(0x104)][_0xd4647e(0xf5)]({'eventID':_0x275d1f[_0xd4647e(0x148)],'data':{'unitID':this[_0xd4647e(0xed)],'operations':{[_0x4deaca['id']]:{'id':_0x4deaca['id'],'params':JSON[_0xd4647e(0x158)](_0x4deaca[_0xd4647e(0x10b)])}}}},this['_unitID']);});_0x5616b2['set'](_0x3bc3e4,{'subject':_0x1536eb,'subscription':_0x59c8e4});}_0x1536eb[_0x37efbf(0x15b)](_0x19c86c);})),this['_liveShareService'][_0x5d974b(0x170)](this[_0x5d974b(0xed)])[_0x5d974b(0xfa)](_0x54979c=>this[_0x5d974b(0x104)]['send']({'eventID':_0x275d1f[_0x5d974b(0x148)],'data':{'unitID':this['_unitID'],'operations':{[_0x54979c['id']]:{'id':_0x54979c['id'],'params':JSON[_0x5d974b(0x158)](_0x54979c['params'])}}}},this[_0x5d974b(0xed)]));}[_0x483488(0x13e)](){const _0x2525ec=_0x483488;var _0x4117b0;this[_0x2525ec(0x134)][_0x2525ec(0x15b)]('idle'),(_0x4117b0=this[_0x2525ec(0x12b)])==null||_0x4117b0[_0x2525ec(0x113)](),this['_commandDisposable']=null;}[_0x483488(0x153)](){const _0x56837e=_0x483488;var _0x1e68b0;(_0x1e68b0=this[_0x56837e(0x12b)])==null||_0x1e68b0[_0x56837e(0x113)](),this[_0x56837e(0x134)]['next'](_0x56837e(0x167));}[_0x483488(0x169)](){const _0x51a6df=_0x483488;var _0x2ec300;this[_0x51a6df(0x134)][_0x51a6df(0x15b)](_0x51a6df(0xdd)),(_0x2ec300=this['_commandDisposable'])==null||_0x2ec300[_0x51a6df(0x113)](),this[_0x51a6df(0x12b)]=null;}['_stopFollowing'](){const _0x126668=_0x483488;var _0x5bc21a;this[_0x126668(0x134)]['next'](_0x126668(0x11a)),(_0x5bc21a=this[_0x126668(0x12b)])==null||_0x5bc21a[_0x126668(0x113)]();}['_handleOperation'](_0x1fb62c){const _0x14d5a8=_0x483488;if([_0x14d5a8(0xe6),_0x14d5a8(0x11a),'offline'][_0x14d5a8(0xe0)](this[_0x14d5a8(0x150)])||!_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0xf4)]||_0x1fb62c['data'][_0x14d5a8(0xf4)]===this[_0x14d5a8(0x104)][_0x14d5a8(0x121)]())return;this['_status']===_0x14d5a8(0xdd)&&this[_0x14d5a8(0x153)]();let _0x4ca9de=_0x1fb62c[_0x14d5a8(0x15e)][_0x14d5a8(0x157)];Object[_0x14d5a8(0x146)](_0x4ca9de)[_0x14d5a8(0xfa)](_0x45965c=>{const _0x13ff50=_0x14d5a8;this[_0x13ff50(0x130)][_0x13ff50(0x15d)](_0x45965c['id'],_0x45965c['params']?JSON[_0x13ff50(0x13f)](_0x45965c[_0x13ff50(0x10b)]):null,{'fromCollab':!0x0});});}[_0x483488(0x151)](){const _0x23845e=_0x483488;var _0x3aaad9;this[_0x23845e(0x134)][_0x23845e(0x15b)](_0x23845e(0x115)),(_0x3aaad9=this['_commandDisposable'])==null||_0x3aaad9[_0x23845e(0x113)]();}[_0x483488(0x11c)](){const _0x59d97b=_0x483488;this[_0x59d97b(0x134)]['next'](_0x59d97b(0xdd)),this[_0x59d97b(0x10f)]();}};K=U([H(0x2,_0x5bd473),H(0x3,_0x519b70(V)),H(0x4,_0x24a679)],K);function q(){const _0x45a13d=_0x483488;let _0x2df76a=_0x128025(W),_0x1baac4=_0x128025(_0x463264),_0xf2afa0=_0x407d3e(()=>_0x1baac4[_0x45a13d(0xde)](_0x443dc4[_0x45a13d(0x145)]),void 0x0,!0x1,[]),[_0x14f53a,_0x3595ab]=_0x2329c2(null),[_0x111ced,_0x19a5ad]=_0x2329c2(_0x45a13d(0xdd)),_0x59c95f=_0x523753(null);return _0x34b418(()=>(_0xf2afa0&&_0x2df76a['getLiveShareCoordinator'](_0xf2afa0[_0x45a13d(0xf7)]())[_0x45a13d(0x114)](_0x33b041=>{const _0x93cd89=_0x45a13d;_0x3595ab(_0x33b041),_0x59c95f[_0x93cd89(0x14b)]=_0x33b041['status$'][_0x93cd89(0x11f)](_0x11dc9f=>{_0x19a5ad(_0x11dc9f);});}),()=>{const _0x4c84f4=_0x45a13d;var _0x596fb7;(_0x596fb7=_0x59c95f[_0x4c84f4(0x14b)])==null||_0x596fb7[_0x4c84f4(0x102)](),_0x59c95f['current']=null;}),[_0xf2afa0,_0x2df76a]),_0x14f53a?_0x2658fa(_0x451c05,{'align':'end','disabled':_0x111ced===_0x45a13d(0x115),'className':_0x45a13d(0xe1),'overlay':_0x2658fa(ce,{'status':_0x111ced,'coordinator':_0x14f53a}),'children':_0x2658fa('button',{'className':_0x3a2015(_0x45a13d(0xf0),{'univer-cursor-not-allowed':_0x111ced===_0x45a13d(0x115),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x111ced!==_0x45a13d(0x115)}),'type':_0x45a13d(0xdc),'children':_0x2658fa(_0x1525d7,{'className':_0x45a13d(0x110)})})}):null;}function ce(_0x28c8f9){const _0x4e566d=_0x483488;let {status:_0x16a352,coordinator:_0xf0b1bb}=_0x28c8f9;switch(_0x16a352){case _0x4e566d(0xdd):return _0x2658fa(le,{'coordinator':_0xf0b1bb});case'following':return _0x2658fa(ue,{'coordinator':_0xf0b1bb});case _0x4e566d(0x11a):return _0x2658fa(de,{'coordinator':_0xf0b1bb});case'offline':return _0x2658fa(fe,{});case _0x4e566d(0xe6):return _0x2658fa(J,{'coordinator':_0xf0b1bb});default:return null;}}function le(_0x80a58a){const _0x5c7c45=_0x483488;let {coordinator:_0x2b3845}=_0x80a58a;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0x5c7c45(0x132),{'className':_0x5c7c45(0x161),'children':'Present\x20this\x20document'}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x2b3845[_0x5c7c45(0xff)](),'children':_0x5c7c45(0x147)})]});}function ue(_0x564e8f){const _0x35a5b8=_0x483488;let {coordinator:_0x827031}=_0x564e8f;return _0x30d109(_0x508d28,{'children':[_0x2658fa('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x35a5b8(0xfe)}),_0x2658fa(_0x21c6a6,{'onClick':()=>_0x827031['stopFollowing'](),'children':_0x35a5b8(0x16b)})]});}function de(_0x170b55){const _0xe1606c=_0x483488;let {coordinator:_0x5d22ad}=_0x170b55;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xe1606c(0x132),{'className':_0xe1606c(0x161),'children':_0xe1606c(0xe8)}),_0x2658fa(_0x21c6a6,{'variant':'text','onClick':()=>_0x5d22ad[_0xe1606c(0x155)](),'children':_0xe1606c(0x128)})]});}function J(_0x41b798){const _0xf5eb1c=_0x483488;let {coordinator:_0x4b5f83}=_0x41b798;return _0x30d109(_0x508d28,{'children':[_0x2658fa(_0xf5eb1c(0x132),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2658fa(_0x21c6a6,{'variant':_0xf5eb1c(0xeb),'onClick':()=>_0x4b5f83[_0xf5eb1c(0x136)](),'children':'Stop\x20presenting'})]});}function fe(){const _0x205204=_0x483488;return _0x2658fa(_0x508d28,{'children':_0x205204(0x100)});}let Y=class extends _0x25821d{constructor(_0x3dd031,_0x5530ac){const _0x2ecf5b=_0x483488;super(),this['_injector']=_0x3dd031,this[_0x2ecf5b(0xf2)]=_0x5530ac,this[_0x2ecf5b(0x141)]();}[_0x483488(0x141)](){const _0x55b9ce=_0x483488;this[_0x55b9ce(0x111)](this[_0x55b9ce(0xf2)][_0x55b9ce(0x12f)](_0x4a5288['HEADER_MENU'],()=>_0x39d05e(q,this['_injector'])));}};Y=U([H(0x0,_0x519b70(_0x1f8563)),H(0x1,_0xc74574)],Y);function _0x2fbf(){const _0x2ba42e=['getLiveShareCoordinatorSync','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','You\x27are\x20offline.','onCommandExecuted','unsubscribe','_startPresenting','_collabSession','_sharedOperations','live-share.config','prototype','PRESENTING','symbol','get','params','_stopFollowing','_univerInstanceService','function','_fetchOperations','univer-size-4','disposeWithMe','_collabSessionService','dispose','then','offline','reverse','getLiveShareCoordinator','type','241356LZzSiW','not-following','ONLINE','_handleOnline','_entities','_reporters','subscribe','init','getMemberID','_configService','8FUhaIk','1259034iWvHjx','memberID','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','Start\x20following','asObservable','iterator','_commandDisposable','LIVESHARE_TERMINATE','_startLiveShareCoordinator','_injector','registerComponent','_commandService','override','div','LIVESHARE_REQUEST_HOST','_status$','map','stopPresenting','10TGKNyK','_presenter','710367ZMnfss','getStatus','2394672ADlDof','has','unitId','_stopPresenting','parse','defineProperty','_mountLiveShare','event$','call','0.24.0','UNIVER_SHEET','values','Start','LIVESHARE_OPERATION','clear','NEW_CHANGESETS','current','object','OFFLINE','complete','100FeflZT','_status','_handleOffline','length','_startFollowing','5891592nXfPay','startFollowing','OPERATION','operations','stringify','10360471ofBdeE','_init','next','subject','executeCommand','data','find','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','string','add','delete','getTypeOfUnitAdded$','pluginName','following','sheet','_beIdle','packageName','Stop\x20following','_handleNewChangeSets','_handleTerminate','_handleNewHost','version','getInitialStates','FOLLOWING','button','idle','getCurrentTypeOfUnit$','set','includes','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','getConfig','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','presenting','toPrimitive','You\x27re\x20not\x20following\x20the\x20presenter','_config','setConfig','default','onRendered','_unitID','LIVESHARE_FETCH_OPERATIONS','979689diOGji','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','_uiPartsService','9lyjQpA','presenter','send','mutations','getUnitId','registerInitialStateReporter','dispose$','forEach','_liveShareService','pipe'];_0x2fbf=function(){return _0x2ba42e;};return _0x2fbf();}var pe=_0x483488(0x127),me=_0x483488(0x144);const X=_0x483488(0x106);Symbol(X);const Z={};let Q=class extends _0x25821d{constructor(_0x3f2a6e){const _0x452524=_0x483488;super(),this['_liveShareService']=_0x3f2a6e,this[_0x452524(0x15a)]();}[_0x483488(0x15a)](){[_0x33a400['id'],_0x354a42['id'],_0x3e5ed1['id']]['forEach'](_0x3ba871=>{const _0x198c4e=_0x45b7;this[_0x198c4e(0x111)](this['_liveShareService'][_0x198c4e(0xe5)](_0x3ba871));});}};Q=U([H(0x0,_0x519b70(V))],Q);let $=class extends _0x2e5f28{constructor(_0x5747a0=Z,_0x50d166,_0x268d60){const _0x16de18=_0x483488;super(),this['_config']=_0x5747a0,this[_0x16de18(0x12e)]=_0x50d166,this['_configService']=_0x268d60;let {..._0x1b2174}=_0x2e9292({},Z,this[_0x16de18(0xe9)]);this[_0x16de18(0x122)][_0x16de18(0xea)](X,_0x1b2174);}['onStarting'](){const _0x5d4903=_0x483488;_0x1030c8(this[_0x5d4903(0x12e)],_0x13dc50([[V],[W],[Q],[Y]],this[_0x5d4903(0xe9)][_0x5d4903(0x131)])),_0x56c0e1(this[_0x5d4903(0x12e)],[[Q]]);}[_0x483488(0xec)](){const _0x8b73ab=_0x483488;_0x56c0e1(this[_0x8b73ab(0x12e)],[[Y]]);}};B($,_0x483488(0x118),_0x443dc4[_0x483488(0xe3)]),B($,_0x483488(0x166),'UNIVER_LIVE_SHARE_PLUGIN'),B($,_0x483488(0x16a),pe),B($,_0x483488(0x16f),me),$=U([_0x1240ac(_0x422184),H(0x1,_0x519b70(_0x1f8563)),H(0x2,_0x5bd473)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5e43(_0x593043,_0x379233){_0x593043=_0x593043-0x6a;const _0x3081ce=_0x3081();let _0x5e43c2=_0x3081ce[_0x593043];return _0x5e43c2;}(function(_0x2a399f,_0x5ef4f0){const _0x912fe2=_0x5e43,_0x5c3a38=_0x2a399f();while(!![]){try{const _0xfd9e0d=parseInt(_0x912fe2(0x77))/0x1+parseInt(_0x912fe2(0x7f))/0x2*(-parseInt(_0x912fe2(0x96))/0x3)+parseInt(_0x912fe2(0x93))/0x4*(parseInt(_0x912fe2(0x9a))/0x5)+parseInt(_0x912fe2(0x78))/0x6+parseInt(_0x912fe2(0x72))/0x7*(-parseInt(_0x912fe2(0x8f))/0x8)+-parseInt(_0x912fe2(0x70))/0x9*(parseInt(_0x912fe2(0x6f))/0xa)+-parseInt(_0x912fe2(0x92))/0xb*(-parseInt(_0x912fe2(0x97))/0xc);if(_0xfd9e0d===_0x5ef4f0)break;else _0x5c3a38['push'](_0x5c3a38['shift']());}catch(_0x1e24e2){_0x5c3a38['push'](_0x5c3a38['shift']());}}}(_0x3081,0x9df86),function(_0x15816d,_0x3f5f17){const _0x2adc4c=_0x5e43;typeof exports==_0x2adc4c(0x76)&&typeof module<'u'?_0x3f5f17(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define=='function'&&define[_0x2adc4c(0x6e)]?define(['@univerjs-pro/live-share',_0x2adc4c(0x90),_0x2adc4c(0x80)],_0x3f5f17):(_0x15816d=typeof globalThis<'u'?globalThis:_0x15816d||self,_0x3f5f17(_0x15816d[_0x2adc4c(0x7a)],_0x15816d[_0x2adc4c(0x6b)],_0x15816d[_0x2adc4c(0x8d)]));}(this,function(_0x33ed06,_0x3b0af1,_0x533c7d){const _0x534531=_0x5e43;function _0x6d4ca0(_0x500653){'@babel/helpers - typeof';const _0x372c7a=_0x5e43;return _0x6d4ca0=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x372c7a(0x7e)?function(_0x22f3a3){return typeof _0x22f3a3;}:function(_0x19c040){const _0x231d1f=_0x372c7a;return _0x19c040&&typeof Symbol=='function'&&_0x19c040[_0x231d1f(0x71)]===Symbol&&_0x19c040!==Symbol[_0x231d1f(0x7d)]?'symbol':typeof _0x19c040;},_0x6d4ca0(_0x500653);}function _0x21adc7(_0x28047c,_0x42c118){const _0x186233=_0x5e43;if(_0x6d4ca0(_0x28047c)!=_0x186233(0x76)||!_0x28047c)return _0x28047c;var _0x2188bb=_0x28047c[Symbol[_0x186233(0x88)]];if(_0x2188bb!==void 0x0){var _0x50d6e3=_0x2188bb[_0x186233(0x79)](_0x28047c,_0x42c118||'default');if(_0x6d4ca0(_0x50d6e3)!=_0x186233(0x76))return _0x50d6e3;throw TypeError(_0x186233(0x83));}return(_0x42c118===_0x186233(0x85)?String:Number)(_0x28047c);}function _0x420ac2(_0x1f0bc3){const _0x52de8e=_0x5e43;var _0xa0c81c=_0x21adc7(_0x1f0bc3,_0x52de8e(0x85));return _0x6d4ca0(_0xa0c81c)==_0x52de8e(0x7e)?_0xa0c81c:_0xa0c81c+'';}function _0x2df539(_0x5c4c7e,_0x436dac,_0x2e24f6){const _0x3d21a4=_0x5e43;return(_0x436dac=_0x420ac2(_0x436dac))in _0x5c4c7e?Object[_0x3d21a4(0x87)](_0x5c4c7e,_0x436dac,{'value':_0x2e24f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c4c7e[_0x436dac]=_0x2e24f6,_0x5c4c7e;}var _0x3a34c3=class extends _0x533c7d[_0x534531(0x95)]{constructor(..._0x8e2701){super(..._0x8e2701),_0x2df539(this,'_liveShareController',void 0x0);}[_0x534531(0x99)](_0x3f3adc){const _0x156b59=_0x534531;this[_0x156b59(0x6d)]=_0x3f3adc['get'](_0x33ed06[_0x156b59(0x8b)]);}[_0x534531(0x89)](){const _0x11ede1=_0x534531;var _0x59c6a5;let _0x12edcd=this[_0x11ede1(0x7b)][_0x11ede1(0x81)](_0x3b0af1['IUniverInstanceService'])[_0x11ede1(0x82)](_0x3b0af1[_0x11ede1(0x98)][_0x11ede1(0x74)]);if(!_0x12edcd)throw Error('No\x20active\x20workbook\x20found.');let _0x5812d6=_0x12edcd[_0x11ede1(0x91)](),_0x51f5fb=this[_0x11ede1(0x6d)][_0x11ede1(0x6a)](_0x5812d6);return(_0x59c6a5=_0x51f5fb==null?void 0x0:_0x51f5fb[_0x11ede1(0x8c)]())==null?_0x33ed06[_0x11ede1(0x75)][_0x11ede1(0x6c)]:_0x59c6a5;}['startFollowing'](){const _0x47cdd5=_0x534531;let _0x2b3393=this[_0x47cdd5(0x7b)][_0x47cdd5(0x81)](_0x3b0af1[_0x47cdd5(0x8a)])['getCurrentUnitOfType'](_0x3b0af1[_0x47cdd5(0x98)][_0x47cdd5(0x74)]);if(!_0x2b3393)throw Error(_0x47cdd5(0x8e));let _0x4c179d=_0x2b3393[_0x47cdd5(0x91)](),_0x2b01e4=this[_0x47cdd5(0x6d)][_0x47cdd5(0x6a)](_0x4c179d);if(!_0x2b01e4)throw Error(_0x47cdd5(0x73));_0x2b01e4['startFollowing']();}[_0x534531(0x7c)](){const _0x4f14c5=_0x534531;let _0x55209d=this[_0x4f14c5(0x7b)][_0x4f14c5(0x81)](_0x3b0af1[_0x4f14c5(0x8a)])[_0x4f14c5(0x82)](_0x3b0af1[_0x4f14c5(0x98)]['UNIVER_SHEET']);if(!_0x55209d)throw Error(_0x4f14c5(0x8e));let _0x288f57=_0x55209d[_0x4f14c5(0x91)](),_0xf9330=this['_liveShareController'][_0x4f14c5(0x6a)](_0x288f57);if(!_0xf9330)throw Error(_0x4f14c5(0x73));_0xf9330[_0x4f14c5(0x7c)]();}['startPresenting'](){const _0x1553d1=_0x534531;let _0x443aed=this[_0x1553d1(0x7b)]['get'](_0x3b0af1[_0x1553d1(0x8a)])[_0x1553d1(0x82)](_0x3b0af1[_0x1553d1(0x98)][_0x1553d1(0x74)]);if(!_0x443aed)throw Error(_0x1553d1(0x8e));let _0x2661dd=_0x443aed[_0x1553d1(0x91)](),_0x4b392d=this['_liveShareController'][_0x1553d1(0x6a)](_0x2661dd);if(!_0x4b392d)throw Error(_0x1553d1(0x73));_0x4b392d['tryStartPresenting']();}[_0x534531(0x84)](){const _0x2fbf72=_0x534531;let _0x23eace=this[_0x2fbf72(0x7b)]['get'](_0x3b0af1['IUniverInstanceService'])[_0x2fbf72(0x82)](_0x3b0af1['UniverInstanceType']['UNIVER_SHEET']);if(!_0x23eace)throw Error(_0x2fbf72(0x8e));let _0x4ea665=_0x23eace[_0x2fbf72(0x91)](),_0x1a50d5=this[_0x2fbf72(0x6d)][_0x2fbf72(0x6a)](_0x4ea665);if(!_0x1a50d5)throw Error(_0x2fbf72(0x73));_0x1a50d5[_0x2fbf72(0x84)]();}};_0x533c7d[_0x534531(0x95)][_0x534531(0x86)](_0x3a34c3);var _0x1dabb0=class extends _0x533c7d[_0x534531(0x94)]{get['LiveShareStatusEnum'](){const _0x47622b=_0x534531;return _0x33ed06[_0x47622b(0x75)];}};_0x533c7d['FEnum'][_0x534531(0x86)](_0x1dabb0);}));function _0x3081(){const _0xdd2333=['UniverInstanceType','_initialize','330FaeMXn','getLiveShareCoordinatorSync','UniverCore','IDLE','_liveShareController','amd','380910hpuPpx','72WRMoXV','constructor','6999181phuldp','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','LiveShareStatus','object','1046600lgfihA','4876710cjRfCd','call','UniverProLiveShare','_injector','stopFollowing','prototype','symbol','342666ZdtTjx','@univerjs/core/facade','get','getCurrentUnitOfType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','stopPresenting','string','extend','defineProperty','toPrimitive','getLiveShareStatus','IUniverInstanceService','LiveShareController','getStatus','UniverCoreFacade','No\x20active\x20workbook\x20found.','8YXMAhj','@univerjs/core','getUnitId','3904714OkZvwf','24868ccZWoQ','FEnum','FUniver','18XTfrjI','24ztcssv'];_0x3081=function(){return _0xdd2333;};return _0x3081();}
1
+ function _0xd62a(_0x2f4ad8,_0x2fcfd4){_0x2f4ad8=_0x2f4ad8-0x1b4;const _0x27959f=_0x2795();let _0xd62a2b=_0x27959f[_0x2f4ad8];return _0xd62a2b;}(function(_0x21a71e,_0x2fd725){const _0x3fb078=_0xd62a,_0x48445c=_0x21a71e();while(!![]){try{const _0x4e761a=parseInt(_0x3fb078(0x1d9))/0x1+-parseInt(_0x3fb078(0x1dd))/0x2*(-parseInt(_0x3fb078(0x1d1))/0x3)+parseInt(_0x3fb078(0x1bb))/0x4+-parseInt(_0x3fb078(0x1d6))/0x5+-parseInt(_0x3fb078(0x1c0))/0x6*(parseInt(_0x3fb078(0x1cf))/0x7)+-parseInt(_0x3fb078(0x1b6))/0x8*(-parseInt(_0x3fb078(0x1ba))/0x9)+parseInt(_0x3fb078(0x1e2))/0xa*(-parseInt(_0x3fb078(0x1da))/0xb);if(_0x4e761a===_0x2fd725)break;else _0x48445c['push'](_0x48445c['shift']());}catch(_0x413239){_0x48445c['push'](_0x48445c['shift']());}}}(_0x2795,0xd7f65),function(_0x452cb7,_0x403cae){const _0x2c7568=_0xd62a;typeof exports=='object'&&typeof module<'u'?_0x403cae(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define==_0x2c7568(0x1e0)&&define['amd']?define([_0x2c7568(0x1d7),'@univerjs/core',_0x2c7568(0x1b4)],_0x403cae):(_0x452cb7=typeof globalThis<'u'?globalThis:_0x452cb7||self,_0x403cae(_0x452cb7[_0x2c7568(0x1c2)],_0x452cb7['UniverCore'],_0x452cb7['UniverCoreFacade']));}(this,function(_0x4e038d,_0x3819ef,_0x5e3b9f){const _0x1dcc1c=_0xd62a;function _0xe8b7ba(_0x5531a5){'@babel/helpers - typeof';const _0x148c5f=_0xd62a;return _0xe8b7ba=typeof Symbol==_0x148c5f(0x1e0)&&typeof Symbol[_0x148c5f(0x1c5)]==_0x148c5f(0x1b8)?function(_0x499793){return typeof _0x499793;}:function(_0x4ef2e6){const _0x258a1e=_0x148c5f;return _0x4ef2e6&&typeof Symbol=='function'&&_0x4ef2e6[_0x258a1e(0x1c1)]===Symbol&&_0x4ef2e6!==Symbol['prototype']?_0x258a1e(0x1b8):typeof _0x4ef2e6;},_0xe8b7ba(_0x5531a5);}function _0x22aa94(_0x561976,_0x34c6c8){const _0x2ad17d=_0xd62a;if(_0xe8b7ba(_0x561976)!=_0x2ad17d(0x1cd)||!_0x561976)return _0x561976;var _0x1423a5=_0x561976[Symbol[_0x2ad17d(0x1c7)]];if(_0x1423a5!==void 0x0){var _0x321cc0=_0x1423a5[_0x2ad17d(0x1ca)](_0x561976,_0x34c6c8||_0x2ad17d(0x1d8));if(_0xe8b7ba(_0x321cc0)!='object')return _0x321cc0;throw TypeError(_0x2ad17d(0x1c4));}return(_0x34c6c8===_0x2ad17d(0x1e1)?String:Number)(_0x561976);}function _0x203bc6(_0x2e641e){const _0x2dc885=_0xd62a;var _0x139805=_0x22aa94(_0x2e641e,_0x2dc885(0x1e1));return _0xe8b7ba(_0x139805)==_0x2dc885(0x1b8)?_0x139805:_0x139805+'';}function _0x26374c(_0x86b270,_0x83ba6b,_0x540358){const _0xeae346=_0xd62a;return(_0x83ba6b=_0x203bc6(_0x83ba6b))in _0x86b270?Object[_0xeae346(0x1c6)](_0x86b270,_0x83ba6b,{'value':_0x540358,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x86b270[_0x83ba6b]=_0x540358,_0x86b270;}var _0x239062=class extends _0x5e3b9f[_0x1dcc1c(0x1c9)]{constructor(..._0x4f262d){super(..._0x4f262d),_0x26374c(this,'_liveShareController',void 0x0);}[_0x1dcc1c(0x1b7)](_0x16eb08){const _0x1c682b=_0x1dcc1c;this[_0x1c682b(0x1d0)]=_0x16eb08[_0x1c682b(0x1bc)](_0x4e038d[_0x1c682b(0x1ce)]);}['getLiveShareStatus'](){const _0x4c686f=_0x1dcc1c;var _0x3de2df;let _0x33bbaa=this['_injector'][_0x4c686f(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x4c686f(0x1c8)](_0x3819ef[_0x4c686f(0x1bd)][_0x4c686f(0x1bf)]);if(!_0x33bbaa)throw Error('No\x20active\x20workbook\x20found.');let _0x231aed=_0x33bbaa['getUnitId'](),_0x42e5b7=this[_0x4c686f(0x1d0)][_0x4c686f(0x1db)](_0x231aed);return(_0x3de2df=_0x42e5b7==null?void 0x0:_0x42e5b7['getStatus']())==null?_0x4e038d[_0x4c686f(0x1dc)][_0x4c686f(0x1b9)]:_0x3de2df;}['startFollowing'](){const _0x133bd2=_0x1dcc1c;let _0x20bbeb=this[_0x133bd2(0x1d3)][_0x133bd2(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x133bd2(0x1c8)](_0x3819ef[_0x133bd2(0x1bd)][_0x133bd2(0x1bf)]);if(!_0x20bbeb)throw Error(_0x133bd2(0x1c3));let _0x5664ea=_0x20bbeb[_0x133bd2(0x1d4)](),_0x48494b=this[_0x133bd2(0x1d0)][_0x133bd2(0x1db)](_0x5664ea);if(!_0x48494b)throw Error(_0x133bd2(0x1be));_0x48494b[_0x133bd2(0x1d2)]();}[_0x1dcc1c(0x1cc)](){const _0x114b7f=_0x1dcc1c;let _0x5b5264=this['_injector']['get'](_0x3819ef[_0x114b7f(0x1df)])[_0x114b7f(0x1c8)](_0x3819ef[_0x114b7f(0x1bd)][_0x114b7f(0x1bf)]);if(!_0x5b5264)throw Error('No\x20active\x20workbook\x20found.');let _0x275233=_0x5b5264[_0x114b7f(0x1d4)](),_0x3d19af=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x275233);if(!_0x3d19af)throw Error(_0x114b7f(0x1be));_0x3d19af[_0x114b7f(0x1cc)]();}[_0x1dcc1c(0x1de)](){const _0x84a286=_0x1dcc1c;let _0x16ff7f=this[_0x84a286(0x1d3)][_0x84a286(0x1bc)](_0x3819ef[_0x84a286(0x1df)])[_0x84a286(0x1c8)](_0x3819ef['UniverInstanceType'][_0x84a286(0x1bf)]);if(!_0x16ff7f)throw Error(_0x84a286(0x1c3));let _0x5cba26=_0x16ff7f[_0x84a286(0x1d4)](),_0x438276=this[_0x84a286(0x1d0)]['getLiveShareCoordinatorSync'](_0x5cba26);if(!_0x438276)throw Error(_0x84a286(0x1be));_0x438276['tryStartPresenting']();}['stopPresenting'](){const _0x315151=_0x1dcc1c;let _0x1afaa4=this[_0x315151(0x1d3)][_0x315151(0x1bc)](_0x3819ef['IUniverInstanceService'])[_0x315151(0x1c8)](_0x3819ef['UniverInstanceType'][_0x315151(0x1bf)]);if(!_0x1afaa4)throw Error(_0x315151(0x1c3));let _0xbe8335=_0x1afaa4['getUnitId'](),_0x55cf02=this['_liveShareController'][_0x315151(0x1db)](_0xbe8335);if(!_0x55cf02)throw Error(_0x315151(0x1be));_0x55cf02[_0x315151(0x1b5)]();}};_0x5e3b9f['FUniver'][_0x1dcc1c(0x1d5)](_0x239062);var _0x2d2dae=class extends _0x5e3b9f['FEnum']{get['LiveShareStatusEnum'](){const _0x20e890=_0x1dcc1c;return _0x4e038d[_0x20e890(0x1dc)];}};_0x5e3b9f[_0x1dcc1c(0x1cb)]['extend'](_0x2d2dae);}));function _0x2795(){const _0x41ad21=['FEnum','stopFollowing','object','LiveShareController','9597wrQtBS','_liveShareController','9KYOyDI','startFollowing','_injector','getUnitId','extend','5698365FaIxkc','@univerjs-pro/live-share','default','1179565tlvRoo','26233702vTEuPc','getLiveShareCoordinatorSync','LiveShareStatus','856846MXLBSF','startPresenting','IUniverInstanceService','function','string','10CDnwad','@univerjs/core/facade','stopPresenting','1432pjOMLl','_initialize','symbol','IDLE','80613QSJNlP','1764328rewkOo','get','UniverInstanceType','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','438Fofxfh','constructor','UniverProLiveShare','No\x20active\x20workbook\x20found.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','defineProperty','toPrimitive','getCurrentUnitOfType','FUniver','call'];_0x2795=function(){return _0x41ad21;};return _0x2795();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x9b74(_0x8cd209,_0xf4143d){_0x8cd209=_0x8cd209-0x1b0;const _0x4c89f6=_0x4c89();let _0x9b7447=_0x4c89f6[_0x8cd209];return _0x9b7447;}(function(_0x76ea52,_0x1ece5f){const _0x25d8e0=_0x9b74,_0x1671a5=_0x76ea52();while(!![]){try{const _0x38cdba=parseInt(_0x25d8e0(0x285))/0x1+parseInt(_0x25d8e0(0x1eb))/0x2*(-parseInt(_0x25d8e0(0x28a))/0x3)+parseInt(_0x25d8e0(0x1c7))/0x4+parseInt(_0x25d8e0(0x236))/0x5+-parseInt(_0x25d8e0(0x1d1))/0x6+-parseInt(_0x25d8e0(0x27d))/0x7+parseInt(_0x25d8e0(0x29d))/0x8*(parseInt(_0x25d8e0(0x1f8))/0x9);if(_0x38cdba===_0x1ece5f)break;else _0x1671a5['push'](_0x1671a5['shift']());}catch(_0x2fab15){_0x1671a5['push'](_0x1671a5['shift']());}}}(_0x4c89,0x9fac0),function(_0x41eef2,_0x1e7f2b){const _0x299852=_0x9b74;typeof exports=='object'&&typeof module<'u'?_0x1e7f2b(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define[_0x299852(0x1cb)]?define([_0x299852(0x256),'@univerjs/core',_0x299852(0x1d8),_0x299852(0x295),_0x299852(0x234),'@univerjs-pro/collaboration',_0x299852(0x20c),'@univerjs/sheets','rxjs',_0x299852(0x276),_0x299852(0x254),_0x299852(0x22c)],_0x1e7f2b):(_0x41eef2=typeof globalThis<'u'?globalThis:_0x41eef2||self,_0x1e7f2b(_0x41eef2[_0x299852(0x284)]={},_0x41eef2[_0x299852(0x252)],_0x41eef2[_0x299852(0x22b)],_0x41eef2[_0x299852(0x221)],_0x41eef2[_0x299852(0x24f)],_0x41eef2[_0x299852(0x27f)],_0x41eef2[_0x299852(0x1be)],_0x41eef2[_0x299852(0x241)],_0x41eef2[_0x299852(0x299)],_0x41eef2[_0x299852(0x299)]['operators'],_0x41eef2[_0x299852(0x24f)],_0x41eef2[_0x299852(0x23d)]));}(this,function(_0x4e4a2f,_0x5ae707,_0x2ed889,_0x3d407a,_0xf28294,_0x239a2b,_0x129209,_0x2a0efe,_0x3fc28c,_0x4a1579,_0x18fca3,_0x4dfcb2){const _0x5c98f5=_0x9b74;Object[_0x5c98f5(0x1b5)](_0x4e4a2f,Symbol[_0x5c98f5(0x20d)],{'value':_0x5c98f5(0x245)});function _0x49492d({ref:_0x1c61e2,..._0x1a1cef}){const _0x9015f0=_0x5c98f5;let {icon:_0x1cac06,id:_0x370f4f,className:_0x1cd756,extend:_0x33fe0e,..._0x505765}=_0x1a1cef,_0x1da149=('univerjs-icon\x20univerjs-icon-'+_0x370f4f+'\x20'+(_0x1cd756||''))['trim'](),_0xe0a9fd=(0x0,_0xf28294[_0x9015f0(0x1e4)])('_'+_0x578b0b());return _0x43c442(_0x1cac06,''+_0x370f4f,{'defIds':_0x1cac06[_0x9015f0(0x25d)],'idSuffix':_0xe0a9fd[_0x9015f0(0x24e)]},{'ref':_0x1c61e2,'className':_0x1da149,..._0x505765},_0x33fe0e);}function _0x43c442(_0x537c0d,_0x415a0f,_0x5f2d1e,_0x534f2f,_0x589e91){const _0x20a829=_0x5c98f5;return(0x0,_0xf28294['createElement'])(_0x537c0d[_0x20a829(0x1bb)],{'key':_0x415a0f,..._0x58f57d(_0x537c0d,_0x5f2d1e,_0x589e91),..._0x534f2f},(_0x53ae2f(_0x537c0d,_0x5f2d1e)[_0x20a829(0x28f)]||[])[_0x20a829(0x1f6)]((_0x86568,_0x541886)=>_0x43c442(_0x86568,_0x415a0f+'-'+_0x537c0d[_0x20a829(0x1bb)]+'-'+_0x541886,_0x5f2d1e,void 0x0,_0x589e91)));}function _0x58f57d(_0x1b8acc,_0x47fb26,_0x23a8f8){const _0x5ae72f=_0x5c98f5;let _0x43dae2={..._0x1b8acc[_0x5ae72f(0x273)]};_0x23a8f8!=null&&_0x23a8f8['colorChannel1']&&_0x43dae2[_0x5ae72f(0x1c2)]===_0x5ae72f(0x22a)&&(_0x43dae2[_0x5ae72f(0x1c2)]=_0x23a8f8[_0x5ae72f(0x22a)]),_0x1b8acc[_0x5ae72f(0x1bb)]===_0x5ae72f(0x227)&&_0x43dae2['id']&&(_0x43dae2['id']+=_0x47fb26['idSuffix']),Object[_0x5ae72f(0x1f2)](_0x43dae2)[_0x5ae72f(0x278)](([_0x1b2e3a,_0x473e11])=>{const _0x3a1121=_0x5ae72f;_0x1b2e3a===_0x3a1121(0x227)&&typeof _0x473e11==_0x3a1121(0x21c)&&(_0x43dae2[_0x1b2e3a]=_0x473e11['replace'](/url\(#(.*)\)/,'url(#$1'+_0x47fb26[_0x3a1121(0x204)]+')'));});let {defIds:_0x258fd1}=_0x47fb26;return!_0x258fd1||_0x258fd1[_0x5ae72f(0x24b)]===0x0?_0x43dae2:(_0x1b8acc[_0x5ae72f(0x1bb)]===_0x5ae72f(0x286)&&_0x43dae2['xlink:href']&&(_0x43dae2[_0x5ae72f(0x232)]+=_0x47fb26[_0x5ae72f(0x204)]),Object[_0x5ae72f(0x1f2)](_0x43dae2)[_0x5ae72f(0x278)](([_0x4eba33,_0x265cea])=>{const _0x1e522a=_0x5ae72f;typeof _0x265cea==_0x1e522a(0x21c)&&(_0x43dae2[_0x4eba33]=_0x265cea[_0x1e522a(0x1e6)](/url\(#(.*)\)/,_0x1e522a(0x23f)+_0x47fb26[_0x1e522a(0x204)]+')'));}),_0x43dae2);}function _0x53ae2f(_0x435d55,_0x3ce31d){const _0x561780=_0x5c98f5;var _0x2febd4;let {defIds:_0x3ac296}=_0x3ce31d;return!_0x3ac296||_0x3ac296[_0x561780(0x24b)]===0x0?_0x435d55:_0x435d55[_0x561780(0x1bb)]===_0x561780(0x255)&&(_0x2febd4=_0x435d55[_0x561780(0x28f)])!=null&&_0x2febd4[_0x561780(0x24b)]?{..._0x435d55,'children':_0x435d55[_0x561780(0x28f)][_0x561780(0x1f6)](_0x13df97=>typeof _0x13df97['attrs']['id']==_0x561780(0x21c)&&_0x3ac296&&_0x3ac296[_0x561780(0x1f5)](_0x13df97[_0x561780(0x273)]['id'])?{..._0x13df97,'attrs':{..._0x13df97['attrs'],'id':_0x13df97[_0x561780(0x273)]['id']+_0x3ce31d[_0x561780(0x204)]}}:_0x13df97)}:_0x435d55;}function _0x578b0b(){const _0x1dcb9f=_0x5c98f5;return Math['random']()[_0x1dcb9f(0x1c6)](0x24)[_0x1dcb9f(0x214)](0x2,0x8);}_0x49492d[_0x5c98f5(0x1f0)]=_0x5c98f5(0x28b);let _0x1753ac={'tag':_0x5c98f5(0x209),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5c98f5(0x1d3),'viewBox':_0x5c98f5(0x25c),'width':_0x5c98f5(0x24c),'height':_0x5c98f5(0x24c)},'children':[{'tag':_0x5c98f5(0x1d4),'attrs':{'fill':_0x5c98f5(0x21e),'d':_0x5c98f5(0x1b1)}},{'tag':_0x5c98f5(0x1d4),'attrs':{'fill':'currentColor','d':_0x5c98f5(0x1c3),'fillRule':_0x5c98f5(0x1b2),'clipRule':'evenodd'}}]},_0x3fbf87=(0x0,_0xf28294[_0x5c98f5(0x1f1)])(function(_0xf10d33,_0xac0b17){const _0x190eee=_0x5c98f5;return(0x0,_0xf28294[_0x190eee(0x2a0)])(_0x49492d,Object[_0x190eee(0x290)]({},_0xf10d33,{'id':'live-share-icon','ref':_0xac0b17,'icon':_0x1753ac}));});_0x3fbf87[_0x5c98f5(0x1f0)]=_0x5c98f5(0x26e);function _0x4ef533(_0x22e384){'@babel/helpers - typeof';const _0x56b250=_0x5c98f5;return _0x4ef533=typeof Symbol==_0x56b250(0x21b)&&typeof Symbol['iterator']==_0x56b250(0x2a2)?function(_0xa2d0b2){return typeof _0xa2d0b2;}:function(_0x29ee1a){const _0x3a2163=_0x56b250;return _0x29ee1a&&typeof Symbol==_0x3a2163(0x21b)&&_0x29ee1a[_0x3a2163(0x1d6)]===Symbol&&_0x29ee1a!==Symbol[_0x3a2163(0x1f3)]?_0x3a2163(0x2a2):typeof _0x29ee1a;},_0x4ef533(_0x22e384);}function _0x3b005c(_0x187add,_0xdbf888){const _0xe845be=_0x5c98f5;if(_0x4ef533(_0x187add)!='object'||!_0x187add)return _0x187add;var _0x5c1c51=_0x187add[Symbol[_0xe845be(0x1d5)]];if(_0x5c1c51!==void 0x0){var _0x1c7e1f=_0x5c1c51['call'](_0x187add,_0xdbf888||'default');if(_0x4ef533(_0x1c7e1f)!=_0xe845be(0x200))return _0x1c7e1f;throw TypeError(_0xe845be(0x22d));}return(_0xdbf888==='string'?String:Number)(_0x187add);}function _0x276f24(_0x39fb3c){const _0x5adec2=_0x5c98f5;var _0x33ecf3=_0x3b005c(_0x39fb3c,_0x5adec2(0x21c));return _0x4ef533(_0x33ecf3)==_0x5adec2(0x2a2)?_0x33ecf3:_0x33ecf3+'';}function _0x7c97b8(_0x1a992d,_0x12a648,_0x24a50b){return(_0x12a648=_0x276f24(_0x12a648))in _0x1a992d?Object['defineProperty'](_0x1a992d,_0x12a648,{'value':_0x24a50b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a992d[_0x12a648]=_0x24a50b,_0x1a992d;}var _0x3e09a7=class extends _0x5ae707[_0x5c98f5(0x248)]{constructor(..._0x13e939){const _0x3f17ba=_0x5c98f5;super(..._0x13e939),_0x7c97b8(this,'_sharedOperations',new Set()),_0x7c97b8(this,_0x3f17ba(0x27a),new Set());}[_0x5c98f5(0x212)](_0x11d2f1){const _0xb5b577=_0x5c98f5;return this[_0xb5b577(0x243)][_0xb5b577(0x1da)](_0x11d2f1),(0x0,_0x5ae707[_0xb5b577(0x23e)])(()=>this[_0xb5b577(0x243)][_0xb5b577(0x259)](_0x11d2f1));}['registerInitialStateReporter'](_0x56bfd0){const _0x5c0498=_0x5c98f5;return this[_0x5c0498(0x27a)][_0x5c0498(0x1da)](_0x56bfd0),(0x0,_0x5ae707['toDisposable'])(()=>this['_reporters']['delete'](_0x56bfd0));}[_0x5c98f5(0x263)](_0x3b7265){const _0x1af28b=_0x5c98f5;return this[_0x1af28b(0x243)][_0x1af28b(0x264)](_0x3b7265);}[_0x5c98f5(0x288)](_0x36a04a){const _0x5a98e4=_0x5c98f5;return Array['from'](this[_0x5a98e4(0x27a)])[_0x5a98e4(0x1f6)](_0x34b1d7=>_0x34b1d7(_0x36a04a));}};function _0x3eddd2(_0x3658ee,_0x483b9c){return function(_0x40a4b1,_0x3568ea){_0x483b9c(_0x40a4b1,_0x3568ea,_0x3658ee);};}function _0x593bc6(_0x37d3d5,_0x106efa,_0x477fec,_0x4cc902){const _0x5de9e8=_0x5c98f5;var _0x207c9c=arguments[_0x5de9e8(0x24b)],_0x43af94=_0x207c9c<0x3?_0x106efa:_0x4cc902===null?_0x4cc902=Object['getOwnPropertyDescriptor'](_0x106efa,_0x477fec):_0x4cc902,_0x258d43;if(typeof Reflect==_0x5de9e8(0x200)&&typeof Reflect[_0x5de9e8(0x219)]==_0x5de9e8(0x21b))_0x43af94=Reflect[_0x5de9e8(0x219)](_0x37d3d5,_0x106efa,_0x477fec,_0x4cc902);else{for(var _0x300dda=_0x37d3d5['length']-0x1;_0x300dda>=0x0;_0x300dda--)(_0x258d43=_0x37d3d5[_0x300dda])&&(_0x43af94=(_0x207c9c<0x3?_0x258d43(_0x43af94):_0x207c9c>0x3?_0x258d43(_0x106efa,_0x477fec,_0x43af94):_0x258d43(_0x106efa,_0x477fec))||_0x43af94);}return _0x207c9c>0x3&&_0x43af94&&Object[_0x5de9e8(0x1b5)](_0x106efa,_0x477fec,_0x43af94),_0x43af94;}let _0x415065=class extends _0x5ae707[_0x5c98f5(0x231)]{constructor(_0x326a58,_0x1a31b9,_0x377f84){const _0x1fd765=_0x5c98f5;super(),this['_univerInstanceService']=_0x326a58,this[_0x1fd765(0x258)]=_0x1a31b9,this[_0x1fd765(0x24d)]=_0x377f84,_0x7c97b8(this,_0x1fd765(0x261),new Map()),this[_0x1fd765(0x1b3)]();}async[_0x5c98f5(0x268)](_0x162a73){const _0x254148=_0x5c98f5;return this[_0x254148(0x261)][_0x254148(0x264)](_0x162a73)||await this['_startLiveShareCoordinator'](_0x162a73),this[_0x254148(0x261)][_0x254148(0x1cd)](_0x162a73);}[_0x5c98f5(0x277)](_0x4aaa5d){const _0xfc9465=_0x5c98f5;var _0x207f8f;return(_0x207f8f=this[_0xfc9465(0x261)][_0xfc9465(0x1cd)](_0x4aaa5d))==null?null:_0x207f8f;}[_0x5c98f5(0x1b3)](){const _0x1623dc=_0x5c98f5;this[_0x1623dc(0x298)][_0x1623dc(0x1cc)](_0x5ae707[_0x1623dc(0x1e8)][_0x1623dc(0x25a)])[_0x1623dc(0x203)]((0x0,_0x4a1579['takeUntil'])(this[_0x1623dc(0x274)]))[_0x1623dc(0x280)](async _0x19b26f=>{const _0x26aff3=_0x1623dc;let _0x4e6752=_0x19b26f[_0x26aff3(0x2a1)][_0x26aff3(0x282)]();this[_0x26aff3(0x261)]['has'](_0x4e6752)||this['_startLiveShareCoordinator'](_0x4e6752);}),this[_0x1623dc(0x298)][_0x1623dc(0x246)](_0x5ae707[_0x1623dc(0x1e8)][_0x1623dc(0x25a)])['pipe']((0x0,_0x4a1579['takeUntil'])(this['dispose$']))[_0x1623dc(0x280)](_0x494d65=>{const _0x4ee163=_0x1623dc;let _0x2a50d0=_0x494d65[_0x4ee163(0x282)](),_0x1ffb35=this[_0x4ee163(0x261)][_0x4ee163(0x1cd)](_0x2a50d0);_0x1ffb35==null||_0x1ffb35['dispose']();});}async[_0x5c98f5(0x1e5)](_0x5cb1fb){const _0x37c152=_0x5c98f5;let _0x14f67f=await this[_0x37c152(0x24d)][_0x37c152(0x223)](_0x5cb1fb),_0x4acae5=this[_0x37c152(0x258)][_0x37c152(0x250)](_0x5bdc3e,_0x5cb1fb,_0x14f67f);return _0x4acae5['init'](),this[_0x37c152(0x261)]['set'](_0x5cb1fb,_0x4acae5),_0x4acae5;}};_0x415065=_0x593bc6([_0x3eddd2(0x0,_0x5ae707['IUniverInstanceService']),_0x3eddd2(0x1,(0x0,_0x5ae707[_0x5c98f5(0x1e9)])(_0x5ae707[_0x5c98f5(0x297)])),_0x3eddd2(0x2,(0x0,_0x5ae707['Inject'])(_0x129209['CollaborationSessionService']))],_0x415065);let _0x185f83=function(_0x46ba3f){const _0x1eee61=_0x5c98f5;return _0x46ba3f[_0x1eee61(0x287)]=_0x1eee61(0x23c),_0x46ba3f[_0x1eee61(0x233)]=_0x1eee61(0x27b),_0x46ba3f[_0x1eee61(0x1cf)]='following',_0x46ba3f[_0x1eee61(0x1ef)]=_0x1eee61(0x201),_0x46ba3f[_0x1eee61(0x1c5)]=_0x1eee61(0x1e7),_0x46ba3f;}({}),_0x5bdc3e=class extends _0x5ae707['RxDisposable']{get[_0x5c98f5(0x291)](){const _0x20ed4f=_0x5c98f5;return this[_0x20ed4f(0x25b)][_0x20ed4f(0x216)]();}constructor(_0x1a0e3a,_0x2122f8,_0x105297,_0x179b0b,_0x2c8f35){const _0x1c338c=_0x5c98f5;super(),this['_unitID']=_0x1a0e3a,this[_0x1c338c(0x205)]=_0x2122f8,this[_0x1c338c(0x253)]=_0x105297,this[_0x1c338c(0x267)]=_0x179b0b,this[_0x1c338c(0x1d0)]=_0x2c8f35,_0x7c97b8(this,_0x1c338c(0x25b),new _0x3fc28c[(_0x1c338c(0x25e))](_0x1c338c(0x27b))),_0x7c97b8(this,_0x1c338c(0x218),this[_0x1c338c(0x25b)][_0x1c338c(0x1b8)]()),_0x7c97b8(this,'_init',!0x1),_0x7c97b8(this,_0x1c338c(0x21f),null),_0x7c97b8(this,_0x1c338c(0x293),null);}[_0x5c98f5(0x1ba)](){const _0x1b8ffc=_0x5c98f5;var _0x194379;(_0x194379=this[_0x1b8ffc(0x21f)])==null||_0x194379[_0x1b8ffc(0x1ba)](),this[_0x1b8ffc(0x25b)][_0x1b8ffc(0x1f7)]('idle'),this['_status$']['complete']();}['getStatus'](){const _0x3e2e9d=_0x5c98f5;return this[_0x3e2e9d(0x291)];}[_0x5c98f5(0x211)](){const _0x167b76=_0x5c98f5;this[_0x167b76(0x1b3)]||(this[_0x167b76(0x1b3)]=!0x0,this[_0x167b76(0x205)][_0x167b76(0x1c8)][_0x167b76(0x203)]((0x0,_0x4a1579['takeUntil'])(this[_0x167b76(0x274)]))['subscribe'](_0x3dc0c6=>{const _0x61386d=_0x167b76;switch(_0x3dc0c6){case _0x129209[_0x61386d(0x1b0)][_0x61386d(0x287)]:this[_0x61386d(0x29b)]();break;case _0x129209[_0x61386d(0x1b0)][_0x61386d(0x1dd)]:this[_0x61386d(0x228)]();break;default:}}),this[_0x167b76(0x205)]['event$'][_0x167b76(0x203)]((0x0,_0x4a1579[_0x167b76(0x1b4)])(this[_0x167b76(0x274)]))[_0x167b76(0x280)](_0x18438f=>{const _0x5a57a1=_0x167b76;let {eventID:_0xb1a5e1}=_0x18438f;switch(_0xb1a5e1){case _0x239a2b[_0x5a57a1(0x21d)]['LIVESHARE_NEW_HOST']:this[_0x5a57a1(0x27c)](_0x18438f);break;case _0x239a2b[_0x5a57a1(0x21d)][_0x5a57a1(0x237)]:this[_0x5a57a1(0x210)](_0x18438f);break;case _0x239a2b['CollaborationEvent'][_0x5a57a1(0x1ec)]:this[_0x5a57a1(0x1ea)]();break;case _0x239a2b[_0x5a57a1(0x21d)][_0x5a57a1(0x270)]:this[_0x5a57a1(0x24a)](_0x18438f);break;default:}}));}[_0x5c98f5(0x1f9)](){const _0x2df77d=_0x5c98f5;this[_0x2df77d(0x205)]['send']({'eventID':_0x239a2b[_0x2df77d(0x21d)][_0x2df77d(0x262)],'data':{'unitID':this[_0x2df77d(0x220)],'userID':this[_0x2df77d(0x205)][_0x2df77d(0x296)]()}},this[_0x2df77d(0x220)]);}['stopPresenting'](){const _0x244090=_0x5c98f5;this['_status']===_0x244090(0x1e7)&&(this[_0x244090(0x25b)][_0x244090(0x1f7)]('idle'),this[_0x244090(0x205)][_0x244090(0x279)]({'eventID':_0x239a2b[_0x244090(0x21d)][_0x244090(0x1ec)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x5c98f5(0x247)](){const _0x4297b3=_0x5c98f5;this[_0x4297b3(0x291)]==='not-following'&&(this[_0x4297b3(0x25b)][_0x4297b3(0x1f7)](_0x4297b3(0x20b)),this[_0x4297b3(0x1c0)]());}['stopFollowing'](){const _0x4048a3=_0x5c98f5;this['_status']===_0x4048a3(0x20b)&&this[_0x4048a3(0x294)]();}[_0x5c98f5(0x27c)](_0x50fa97){const _0x3fffae=_0x5c98f5;let {presenter:_0x183d4c}=_0x50fa97[_0x3fffae(0x272)],_0x38842d=this['_collabSession']['getMemberID']();this['_presenter']=_0x183d4c,_0x183d4c===_0x38842d?(this[_0x3fffae(0x294)](),this[_0x3fffae(0x257)]()):this[_0x3fffae(0x291)]!==_0x3fffae(0x201)&&(this[_0x3fffae(0x20a)](),this[_0x3fffae(0x1c0)]());}[_0x5c98f5(0x20f)](){const _0x85e9e8=_0x5c98f5;let _0x264bde={'eventID':_0x239a2b[_0x85e9e8(0x21d)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x85e9e8(0x279)](_0x264bde,this[_0x85e9e8(0x220)]);}[_0x5c98f5(0x1ea)](){const _0x52892e=_0x5c98f5;this[_0x52892e(0x293)]=null,this[_0x52892e(0x291)]!==_0x52892e(0x1e7)&&this[_0x52892e(0x206)]();}[_0x5c98f5(0x24a)](_0x3f3522){const _0x832945=_0x5c98f5;if(this[_0x832945(0x291)]===_0x832945(0x20b)&&this[_0x832945(0x293)]===_0x3f3522[_0x832945(0x272)][_0x832945(0x21a)]){let _0x4a87f6=(0x0,_0x239a2b['parseProtocolChangeset'])(_0x3f3522[_0x832945(0x272)])[_0x832945(0x271)][_0x832945(0x1bd)]()[_0x832945(0x1ff)](_0x45c91e=>_0x45c91e['id']===_0x2a0efe[_0x832945(0x240)]['id']);if(_0x4a87f6){let _0x1fd559=_0x4a87f6[_0x832945(0x213)][_0x832945(0x26b)],_0x2fffe1=_0x4a87f6['params'][_0x832945(0x1e0)]['id'];setTimeout(()=>{const _0xbef459=_0x832945;this[_0xbef459(0x1d0)]['executeCommand'](_0x2a0efe['SetWorksheetActiveOperation']['id'],{'unitId':_0x1fd559,'subUnitId':_0x2fffe1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1a9587=_0x5c98f5;this[_0x1a9587(0x25b)][_0x1a9587(0x1f7)](_0x1a9587(0x1e7));let _0x450d67=new Map(),_0x2bad12=this[_0x1a9587(0x21f)]=new _0x5ae707['DisposableCollection']();_0x2bad12[_0x1a9587(0x1da)]((0x0,_0x5ae707[_0x1a9587(0x23e)])(()=>{const _0x180cef=_0x1a9587;_0x450d67['forEach'](_0x45796a=>_0x45796a['complete']()),_0x450d67[_0x180cef(0x1c1)]();})),_0x2bad12[_0x1a9587(0x1da)](this[_0x1a9587(0x1d0)][_0x1a9587(0x29c)](_0x308221=>{const _0x2e8edf=_0x1a9587;if(_0x308221[_0x2e8edf(0x275)]!==_0x5ae707[_0x2e8edf(0x225)][_0x2e8edf(0x217)]||!this['_liveShareService'][_0x2e8edf(0x263)](_0x308221['id']))return;let {id:_0x16fe3e}=_0x308221,_0x2d6577;if(_0x450d67[_0x2e8edf(0x264)](_0x16fe3e))_0x2d6577=_0x450d67[_0x2e8edf(0x1cd)](_0x16fe3e);else{var _0x47b9f8;_0x2d6577=new _0x3fc28c[(_0x2e8edf(0x28d))](),_0x450d67['set'](_0x16fe3e,_0x2d6577),_0x2d6577[_0x2e8edf(0x203)]((0x0,_0x4a1579[_0x2e8edf(0x215)])((_0x47b9f8=this[_0x2e8edf(0x253)][_0x2e8edf(0x230)](_0x2e8edf(0x29f)))==null?0xc8:_0x47b9f8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e8edf(0x280)](_0x4f41e7=>{const _0x2f1034=_0x2e8edf;this[_0x2f1034(0x205)][_0x2f1034(0x279)]({'eventID':_0x239a2b['CollaborationEvent'][_0x2f1034(0x237)],'data':{'unitID':this[_0x2f1034(0x220)],'operations':{[_0x4f41e7['id']]:{'id':_0x4f41e7['id'],'params':JSON['stringify'](_0x4f41e7[_0x2f1034(0x213)])}}}},this[_0x2f1034(0x220)]);});}_0x2d6577[_0x2e8edf(0x1f7)](_0x308221);})),this['_liveShareService'][_0x1a9587(0x288)](this[_0x1a9587(0x220)])[_0x1a9587(0x278)](_0x2e04a8=>this[_0x1a9587(0x205)][_0x1a9587(0x279)]({'eventID':_0x239a2b[_0x1a9587(0x21d)][_0x1a9587(0x237)],'data':{'unitID':this['_unitID'],'operations':{[_0x2e04a8['id']]:{'id':_0x2e04a8['id'],'params':JSON[_0x1a9587(0x1c9)](_0x2e04a8[_0x1a9587(0x213)])}}}},this[_0x1a9587(0x220)]));}[_0x5c98f5(0x20a)](){const _0x59bd93=_0x5c98f5;var _0x32285c;this[_0x59bd93(0x25b)][_0x59bd93(0x1f7)](_0x59bd93(0x27b)),(_0x32285c=this[_0x59bd93(0x21f)])==null||_0x32285c['dispose'](),this[_0x59bd93(0x21f)]=null;}[_0x5c98f5(0x1c0)](){const _0x371fd7=_0x5c98f5;var _0x218e03;(_0x218e03=this[_0x371fd7(0x21f)])==null||_0x218e03[_0x371fd7(0x1ba)](),this['_status$'][_0x371fd7(0x1f7)](_0x371fd7(0x20b));}[_0x5c98f5(0x206)](){const _0x5c9d7e=_0x5c98f5;var _0x11d6d5;this['_status$']['next']('idle'),(_0x11d6d5=this[_0x5c9d7e(0x21f)])==null||_0x11d6d5[_0x5c9d7e(0x1ba)](),this[_0x5c9d7e(0x21f)]=null;}[_0x5c98f5(0x294)](){const _0x3a5ba5=_0x5c98f5;var _0x236e04;this[_0x3a5ba5(0x25b)][_0x3a5ba5(0x1f7)](_0x3a5ba5(0x201)),(_0x236e04=this[_0x3a5ba5(0x21f)])==null||_0x236e04['dispose']();}[_0x5c98f5(0x210)](_0x184aa6){const _0x4eb7c8=_0x5c98f5;if([_0x4eb7c8(0x1e7),_0x4eb7c8(0x201),'offline']['includes'](this[_0x4eb7c8(0x291)])||!_0x184aa6['data'][_0x4eb7c8(0x1fb)]||_0x184aa6[_0x4eb7c8(0x272)][_0x4eb7c8(0x1fb)]===this[_0x4eb7c8(0x205)][_0x4eb7c8(0x296)]())return;this['_status']===_0x4eb7c8(0x27b)&&this[_0x4eb7c8(0x1c0)]();let _0x148e2d=_0x184aa6[_0x4eb7c8(0x272)][_0x4eb7c8(0x29a)];Object['values'](_0x148e2d)['forEach'](_0x356efb=>{const _0x63b3d4=_0x4eb7c8;this[_0x63b3d4(0x1d0)][_0x63b3d4(0x1ed)](_0x356efb['id'],_0x356efb[_0x63b3d4(0x213)]?JSON[_0x63b3d4(0x249)](_0x356efb[_0x63b3d4(0x213)]):null,{'fromCollab':!0x0});});}[_0x5c98f5(0x29b)](){const _0x49c77e=_0x5c98f5;var _0x3dd96c;this[_0x49c77e(0x25b)][_0x49c77e(0x1f7)](_0x49c77e(0x23c)),(_0x3dd96c=this[_0x49c77e(0x21f)])==null||_0x3dd96c[_0x49c77e(0x1ba)]();}['_handleOnline'](){const _0x128230=_0x5c98f5;this[_0x128230(0x25b)][_0x128230(0x1f7)](_0x128230(0x27b)),this[_0x128230(0x20f)]();}};_0x5bdc3e=_0x593bc6([_0x3eddd2(0x2,_0x5ae707[_0x5c98f5(0x1ee)]),_0x3eddd2(0x3,(0x0,_0x5ae707[_0x5c98f5(0x1e9)])(_0x3e09a7)),_0x3eddd2(0x4,_0x5ae707[_0x5c98f5(0x22f)])],_0x5bdc3e);function _0x56a574(){const _0x7a153=_0x5c98f5;let _0x2377ab=(0x0,_0x2ed889['useDependency'])(_0x415065),_0x2257e2=(0x0,_0x2ed889[_0x7a153(0x242)])(_0x5ae707[_0x7a153(0x26c)]),_0xeee352=(0x0,_0x2ed889[_0x7a153(0x292)])(()=>_0x2257e2[_0x7a153(0x229)](_0x5ae707[_0x7a153(0x1e8)][_0x7a153(0x25a)]),void 0x0,!0x1,[]),[_0x28be18,_0x45dfd3]=(0x0,_0xf28294[_0x7a153(0x222)])(null),[_0x5ce0e1,_0x5246b7]=(0x0,_0xf28294[_0x7a153(0x222)])(_0x7a153(0x27b)),_0x33b795=(0x0,_0xf28294[_0x7a153(0x1e4)])(null);return(0x0,_0xf28294['useEffect'])(()=>(_0xeee352&&_0x2377ab[_0x7a153(0x268)](_0xeee352[_0x7a153(0x282)]())[_0x7a153(0x23b)](_0x599272=>{const _0x1bfbea=_0x7a153;_0x45dfd3(_0x599272),_0x33b795[_0x1bfbea(0x24e)]=_0x599272[_0x1bfbea(0x218)]['subscribe'](_0x30da9e=>{_0x5246b7(_0x30da9e);});}),()=>{const _0x22686a=_0x7a153;var _0x18999a;(_0x18999a=_0x33b795[_0x22686a(0x24e)])==null||_0x18999a[_0x22686a(0x1ca)](),_0x33b795[_0x22686a(0x24e)]=null;}),[_0xeee352,_0x2377ab]),_0x28be18?(0x0,_0x18fca3[_0x7a153(0x289)])(_0x3d407a[_0x7a153(0x260)],{'align':_0x7a153(0x26f),'disabled':_0x5ce0e1===_0x7a153(0x23c),'className':_0x7a153(0x1c4),'overlay':(0x0,_0x18fca3[_0x7a153(0x289)])(_0x119ae0,{'status':_0x5ce0e1,'coordinator':_0x28be18}),'children':(0x0,_0x18fca3[_0x7a153(0x289)])(_0x7a153(0x251),{'className':(0x0,_0x3d407a['clsx'])(_0x7a153(0x29e),{'univer-cursor-not-allowed':_0x5ce0e1===_0x7a153(0x23c),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ce0e1!==_0x7a153(0x23c)}),'type':'button','children':(0x0,_0x18fca3['jsx'])(_0x3fbf87,{'className':_0x7a153(0x1de)})})}):null;}function _0x119ae0(_0x3c418a){const _0xf7393a=_0x5c98f5;let {status:_0x405049,coordinator:_0x5ce4ca}=_0x3c418a;switch(_0x405049){case _0xf7393a(0x27b):return(0x0,_0x18fca3['jsx'])(_0x489aee,{'coordinator':_0x5ce4ca});case _0xf7393a(0x20b):return(0x0,_0x18fca3[_0xf7393a(0x289)])(_0x78cc08,{'coordinator':_0x5ce4ca});case _0xf7393a(0x201):return(0x0,_0x18fca3[_0xf7393a(0x289)])(_0x415b1c,{'coordinator':_0x5ce4ca});case _0xf7393a(0x23c):return(0x0,_0x18fca3['jsx'])(_0x32d18f,{});case _0xf7393a(0x1e7):return(0x0,_0x18fca3['jsx'])(_0x5aebfc,{'coordinator':_0x5ce4ca});default:return null;}}function _0x489aee(_0x1ccdf0){const _0x11f75b=_0x5c98f5;let {coordinator:_0x17463a}=_0x1ccdf0;return(0x0,_0x18fca3[_0x11f75b(0x1bf)])(_0x18fca3[_0x11f75b(0x1e1)],{'children':[(0x0,_0x18fca3[_0x11f75b(0x289)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),(0x0,_0x18fca3['jsx'])(_0x3d407a[_0x11f75b(0x269)],{'onClick':()=>_0x17463a[_0x11f75b(0x1f9)](),'children':_0x11f75b(0x1b9)})]});}function _0x78cc08(_0x5c186d){const _0x516cde=_0x5c98f5;let {coordinator:_0x149834}=_0x5c186d;return(0x0,_0x18fca3[_0x516cde(0x1bf)])(_0x18fca3[_0x516cde(0x1e1)],{'children':[(0x0,_0x18fca3[_0x516cde(0x289)])(_0x516cde(0x207),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x18fca3[_0x516cde(0x289)])(_0x3d407a[_0x516cde(0x269)],{'onClick':()=>_0x149834[_0x516cde(0x1db)](),'children':_0x516cde(0x226)})]});}function _0x415b1c(_0x473e53){const _0x1fe7dd=_0x5c98f5;let {coordinator:_0x547643}=_0x473e53;return(0x0,_0x18fca3[_0x1fe7dd(0x1bf)])(_0x18fca3[_0x1fe7dd(0x1e1)],{'children':[(0x0,_0x18fca3[_0x1fe7dd(0x289)])(_0x1fe7dd(0x207),{'className':_0x1fe7dd(0x1fd),'children':_0x1fe7dd(0x1bc)}),(0x0,_0x18fca3['jsx'])(_0x3d407a[_0x1fe7dd(0x269)],{'variant':'text','onClick':()=>_0x547643[_0x1fe7dd(0x247)](),'children':_0x1fe7dd(0x26d)})]});}function _0x5aebfc(_0x5ed024){const _0x2fac2a=_0x5c98f5;let {coordinator:_0x276697}=_0x5ed024;return(0x0,_0x18fca3[_0x2fac2a(0x1bf)])(_0x18fca3[_0x2fac2a(0x1e1)],{'children':[(0x0,_0x18fca3[_0x2fac2a(0x289)])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2fac2a(0x224)}),(0x0,_0x18fca3[_0x2fac2a(0x289)])(_0x3d407a[_0x2fac2a(0x269)],{'variant':_0x2fac2a(0x1fa),'onClick':()=>_0x276697[_0x2fac2a(0x1fc)](),'children':_0x2fac2a(0x281)})]});}function _0x32d18f(){const _0x47d311=_0x5c98f5;return(0x0,_0x18fca3[_0x47d311(0x289)])(_0x18fca3[_0x47d311(0x1e1)],{'children':_0x47d311(0x266)});}let _0x4da1fa=class extends _0x5ae707[_0x5c98f5(0x248)]{constructor(_0x40ee3b,_0x560625){const _0x1012fe=_0x5c98f5;super(),this[_0x1012fe(0x258)]=_0x40ee3b,this[_0x1012fe(0x22e)]=_0x560625,this[_0x1012fe(0x25f)]();}[_0x5c98f5(0x25f)](){const _0x10682d=_0x5c98f5;this['disposeWithMe'](this[_0x10682d(0x22e)][_0x10682d(0x265)](_0x2ed889['BuiltInUIPart'][_0x10682d(0x1f4)],()=>(0x0,_0x2ed889[_0x10682d(0x23a)])(_0x56a574,this[_0x10682d(0x258)])));}};_0x4da1fa=_0x593bc6([_0x3eddd2(0x0,(0x0,_0x5ae707[_0x5c98f5(0x1e9)])(_0x5ae707[_0x5c98f5(0x297)])),_0x3eddd2(0x1,_0x2ed889['IUIPartsService'])],_0x4da1fa);var _0x1b8fcb=_0x5c98f5(0x1ce),_0x18a64c=_0x5c98f5(0x28c);let _0x23eb58=_0x5c98f5(0x27e);Symbol(_0x23eb58);let _0x3083b3={},_0x363ec5=class extends _0x5ae707[_0x5c98f5(0x248)]{constructor(_0x6cf1e1){super(),this['_liveShareService']=_0x6cf1e1,this['_init']();}[_0x5c98f5(0x1b3)](){const _0x51f881=_0x5c98f5;[_0x4dfcb2[_0x51f881(0x1d9)]['id'],_0x4dfcb2['SetScrollOperation']['id'],_0x2a0efe['SetWorksheetActiveOperation']['id']][_0x51f881(0x278)](_0x26e3d9=>{const _0x40820b=_0x51f881;this['disposeWithMe'](this[_0x40820b(0x267)][_0x40820b(0x212)](_0x26e3d9));});}};_0x363ec5=_0x593bc6([_0x3eddd2(0x0,(0x0,_0x5ae707[_0x5c98f5(0x1e9)])(_0x3e09a7))],_0x363ec5);let _0x43c871=class extends _0x5ae707[_0x5c98f5(0x28e)]{constructor(_0x13bf33=_0x3083b3,_0x5a2dd,_0x1b6644){const _0x254c0d=_0x5c98f5;super(),this['_config']=_0x13bf33,this[_0x254c0d(0x258)]=_0x5a2dd,this['_configService']=_0x1b6644;let {..._0x775949}=(0x0,_0x5ae707[_0x254c0d(0x1df)])({},_0x3083b3,this[_0x254c0d(0x1d7)]);this['_configService'][_0x254c0d(0x26a)](_0x23eb58,_0x775949);}['onStarting'](){const _0xd09b19=_0x5c98f5;(0x0,_0x5ae707[_0xd09b19(0x1e2)])(this[_0xd09b19(0x258)],(0x0,_0x5ae707[_0xd09b19(0x239)])([[_0x3e09a7],[_0x415065],[_0x363ec5],[_0x4da1fa]],this['_config'][_0xd09b19(0x244)])),(0x0,_0x5ae707[_0xd09b19(0x1dc)])(this[_0xd09b19(0x258)],[[_0x363ec5]]);}[_0x5c98f5(0x1fe)](){const _0x488a27=_0x5c98f5;(0x0,_0x5ae707[_0x488a27(0x1dc)])(this[_0x488a27(0x258)],[[_0x4da1fa]]);}};_0x7c97b8(_0x43c871,'type',_0x5ae707[_0x5c98f5(0x1e8)]['UNIVER_UNKNOWN']),_0x7c97b8(_0x43c871,_0x5c98f5(0x1b6),_0x5c98f5(0x1e3)),_0x7c97b8(_0x43c871,_0x5c98f5(0x1b7),_0x1b8fcb),_0x7c97b8(_0x43c871,_0x5c98f5(0x235),_0x18a64c),_0x43c871=_0x593bc6([(0x0,_0x5ae707[_0x5c98f5(0x238)])(_0x129209['UniverCollaborationClientPlugin']),_0x3eddd2(0x1,(0x0,_0x5ae707['Inject'])(_0x5ae707[_0x5c98f5(0x297)])),_0x3eddd2(0x2,_0x5ae707['IConfigService'])],_0x43c871),Object[_0x5c98f5(0x1b5)](_0x4e4a2f,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x4da1fa;}}),_0x4e4a2f[_0x5c98f5(0x283)]=_0x56a574,Object[_0x5c98f5(0x1b5)](_0x4e4a2f,_0x5c98f5(0x202),{'enumerable':!0x0,'get':function(){return _0x415065;}}),Object['defineProperty'](_0x4e4a2f,_0x5c98f5(0x208),{'enumerable':!0x0,'get':function(){return _0x5bdc3e;}}),_0x4e4a2f[_0x5c98f5(0x1d2)]=_0x3e09a7,_0x4e4a2f[_0x5c98f5(0x20e)]=_0x185f83,Object[_0x5c98f5(0x1b5)](_0x4e4a2f,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return _0x43c871;}});}));function _0x4c89(){const _0x32bd28=['_stopFollowing','@univerjs/design','getMemberID','Injector','_univerInstanceService','rxjs','operations','_handleOffline','onCommandExecuted','8JsEzKI','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','createElement','unit','symbol','SessionStatus','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','evenodd','_init','takeUntil','defineProperty','pluginName','packageName','asObservable','Start','dispose','tag','You\x27re\x20not\x20following\x20the\x20presenter','reverse','UniverProCollaborationClient','jsxs','_startFollowing','clear','fill','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','univer-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','PRESENTING','toString','3268984zHfIXb','sessionStatus$','stringify','unsubscribe','amd','getTypeOfUnitAdded$','get','@univerjs-pro/live-share','FOLLOWING','_commandService','6009270iCOIam','LiveShareService','none','path','toPrimitive','constructor','_config','@univerjs/ui','SetZoomRatioOperation','add','stopFollowing','touchDependencies','ONLINE','univer-size-4','merge','sheet','Fragment','registerDependencies','UNIVER_LIVE_SHARE_PLUGIN','useRef','_startLiveShareCoordinator','replace','presenting','UniverInstanceType','Inject','_handleTerminate','3046xtUrOm','LIVESHARE_TERMINATE','executeCommand','IConfigService','NOT_FOLLOWING','displayName','forwardRef','entries','prototype','HEADER_MENU','includes','map','next','7094781oxbiwX','tryStartPresenting','default','presenter','stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','onRendered','find','object','not-following','LiveShareController','pipe','idSuffix','_collabSession','_beIdle','div','LiveShareCoordinator','svg','_stopPresenting','following','@univerjs-pro/collaboration-client','toStringTag','LiveShareStatus','_fetchOperations','_handleOperation','init','registerSharedOperation','params','substring','throttleTime','getValue','OPERATION','status$','decorate','memberID','function','string','CollaborationEvent','currentColor','_commandDisposable','_unitID','UniverDesign','useState','requireSession','You\x27re\x20presenting\x20the\x20document','CommandType','Stop\x20following','mask','_handleOnline','getCurrentTypeOfUnit$','colorChannel1','UniverUi','@univerjs/sheets-ui','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_uiPartsService','ICommandService','getConfig','RxDisposable','xlink:href','IDLE','react','version','1125220worUPJ','LIVESHARE_OPERATION','DependentOn','mergeOverrideWithDependencies','connectInjector','then','offline','UniverSheetsUi','toDisposable','url(#$1','InsertSheetMutation','UniverSheets','useDependency','_sharedOperations','override','Module','getTypeOfUnitDisposed$','startFollowing','Disposable','parse','_handleNewChangeSets','length','1em','_collabSessionService','current','React','createInstance','button','UniverCore','_configService','react/jsx-runtime','defs','exports','_startPresenting','_injector','delete','UNIVER_SHEET','_status$','0\x200\x2017\x2017','defIds','BehaviorSubject','_mountLiveShare','Dropdown','_entities','LIVESHARE_REQUEST_HOST','shouldShareOperation','has','registerComponent','You\x27are\x20offline.','_liveShareService','getLiveShareCoordinator','Button','setConfig','unitId','IUniverInstanceService','Start\x20following','LiveShareIcon','end','NEW_CHANGESETS','mutations','data','attrs','dispose$','type','rxjs/operators','getLiveShareCoordinatorSync','forEach','send','_reporters','idle','_handleNewHost','94395VTCHnz','live-share.config','UniverProCollaboration','subscribe','Stop\x20presenting','getUnitId','LiveShare','UniverProLiveShare','1101014JUlRgS','use','OFFLINE','getInitialStates','jsx','2487TytkGX','UniverIcon','0.23.0','Subject','Plugin','children','assign','_status','useObservable','_presenter'];_0x4c89=function(){return _0x32bd28;};return _0x4c89();}
1
+ function _0x10d9(){const _0x43b98a=['SessionStatus','length','registerInitialStateReporter','_handleOperation','live-share.config','_commandService','_handleNewChangeSets','0.24.0','data','ICommandService','_presenter','_mountLiveShare','evenodd','operators','Present\x20this\x20document','_fetchOperations','SetScrollOperation','function','stringify','Button','getTypeOfUnitAdded$','BehaviorSubject','LiveShareCoordinator','forEach','Disposable','init','CollaborationEvent','useState','4026129LRmJUN','_liveShareService','getInitialStates','get','108941dTxMCp','prototype','merge','IUniverInstanceService','toString','forwardRef','_collabSession','93vTEnxH','_unitID','12vBOOEM','entries','react/jsx-runtime','url(#$1','jsxs','UniverSheets','object','LIVESHARE_OPERATION','currentColor','_beIdle','_status$','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','executeCommand','UNIVER_UNKNOWN','packageName','Dropdown','xlink:href','call','trim','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','not-following','_handleOnline','next','live-share-icon','dispose','presenting','mask','decorate','_stopFollowing','DesktopLiveShareController','set','_init','add','unit','offline','toPrimitive','params','stopFollowing','parse','@univerjs/sheets-ui','toDisposable','useRef','_sharedOperations','UniverLiveSharePlugin','rxjs','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','27mGGsbz','defineProperty','LiveShare','You\x27re\x20following\x20the\x20presenter','getMemberID','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','UNIVER_SHEET','idSuffix','getStatus','638341sMOsok','onCommandExecuted','4985hwTqIU','send','default','override','Stop\x20following','attrs','IConfigService','1805968IoqChr','stopPresenting','use','registerDependencies','Module','getUnitId','Start\x20following','onRendered','UNIVER_LIVE_SHARE_PLUGIN','subscribe','SetWorksheetActiveOperation','path','SetZoomRatioOperation','getLiveShareCoordinatorSync','1658DaArSX','LiveShareIcon','RxDisposable','pipe','_uiPartsService','1em','string','LiveShareController','children','_handleNewHost','symbol','registerComponent','connectInjector','@univerjs/ui','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','_startPresenting','then','constructor','UniverSheetsUi','tag','following','UniverInstanceType','Injector','You\x27re\x20not\x20following\x20the\x20presenter','654yYiQDa','disposeWithMe','0\x200\x2017\x2017','shouldShareOperation','parseProtocolChangeset','event$','_status','clear','_entities','none','CommandType','_handleTerminate','requireSession','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','registerSharedOperation','touchDependencies','_handleOffline','has','_injector','assign','NEW_CHANGESETS','LiveShareService','end','map','unsubscribe','UniverUi','40NUweWr','UniverIcon','_commandDisposable','createElement','getCurrentTypeOfUnit$','asObservable','defIds','getLiveShareCoordinator','fill','@univerjs/design','jsx','Start','OPERATION','Plugin','_collabSessionService','onStarting','_stopPresenting','takeUntil','idle','UniverCollaborationClientPlugin','presenter','type','startFollowing','@univerjs-pro/collaboration','FOLLOWING','CollaborationSessionService','Inject','version','React','useDependency','_config','button','replace','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','useObservable','_reporters','Stop\x20presenting','throttleTime','LIVESHARE_TERMINATE','_startFollowing','1340JFokgb','div','DisposableCollection','defs','7561788QISCdE','sheet','useEffect','tryStartPresenting','_configService','delete','LiveShareStatus','pluginName','substring','iterator','exports','current','displayName','dispose$','Fragment','sessionStatus$'];_0x10d9=function(){return _0x43b98a;};return _0x10d9();}function _0x2c0c(_0x2ce9b9,_0x548b59){_0x2ce9b9=_0x2ce9b9-0x76;const _0x10d9f8=_0x10d9();let _0x2c0cb8=_0x10d9f8[_0x2ce9b9];return _0x2c0cb8;}(function(_0x5da03d,_0x47ec24){const _0x354a19=_0x2c0c,_0x33bffc=_0x5da03d();while(!![]){try{const _0x343bad=-parseInt(_0x354a19(0xfb))/0x1*(-parseInt(_0x354a19(0x14f))/0x2)+-parseInt(_0x354a19(0xf0))/0x3+parseInt(_0x354a19(0xc0))/0x4*(parseInt(_0x354a19(0x13a))/0x5)+parseInt(_0x354a19(0x7d))/0x6*(parseInt(_0x354a19(0xf4))/0x7)+parseInt(_0x354a19(0x141))/0x8*(-parseInt(_0x354a19(0x12d))/0x9)+parseInt(_0x354a19(0x97))/0xa*(parseInt(_0x354a19(0x138))/0xb)+-parseInt(_0x354a19(0xfd))/0xc*(-parseInt(_0x354a19(0xc4))/0xd);if(_0x343bad===_0x47ec24)break;else _0x33bffc['push'](_0x33bffc['shift']());}catch(_0x184fbf){_0x33bffc['push'](_0x33bffc['shift']());}}}(_0x10d9,0xdc35a),function(_0x4c9447,_0x6fbc39){const _0x297b64=_0x2c0c;typeof exports==_0x297b64(0x103)&&typeof module<'u'?_0x6fbc39(exports,require(`@univerjs/core`),require(`@univerjs/ui`),require(`@univerjs/design`),require(`react`),require(`@univerjs-pro/collaboration`),require(`@univerjs-pro/collaboration-client`),require(`@univerjs/sheets`),require(`rxjs`),require(`rxjs/operators`),require(`react/jsx-runtime`),require(`@univerjs/sheets-ui`)):typeof define=='function'&&define['amd']?define([_0x297b64(0xce),'@univerjs/core',_0x297b64(0x15c),_0x297b64(0xa0),'react',_0x297b64(0xae),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x297b64(0x12a),'rxjs/operators',_0x297b64(0xff),_0x297b64(0x125)],_0x6fbc39):(_0x4c9447=typeof globalThis<'u'?globalThis:_0x4c9447||self,_0x6fbc39(_0x4c9447['UniverProLiveShare']={},_0x4c9447['UniverCore'],_0x4c9447[_0x297b64(0x96)],_0x4c9447['UniverDesign'],_0x4c9447[_0x297b64(0xb3)],_0x4c9447['UniverProCollaboration'],_0x4c9447['UniverProCollaborationClient'],_0x4c9447[_0x297b64(0x102)],_0x4c9447[_0x297b64(0x12a)],_0x4c9447[_0x297b64(0x12a)][_0x297b64(0xe1)],_0x4c9447['React'],_0x4c9447[_0x297b64(0x77)]));}(this,function(_0x2f6fda,_0x3c016e,_0x113560,_0x23d37f,_0x5a8e64,_0x4a8d26,_0x30522a,_0x34724b,_0x553695,_0x33501d,_0x51b0f1,_0x169f6f){const _0x924102=_0x2c0c;Object['defineProperty'](_0x2f6fda,Symbol['toStringTag'],{'value':_0x924102(0x145)});function _0x394b8({ref:_0xb48a4b,..._0x4dbbce}){const _0x44ed82=_0x924102;let {icon:_0x4b2b66,id:_0x4b584c,className:_0x1077c6,extend:_0x4e84ca,..._0x2981e8}=_0x4dbbce,_0x3e1839=(_0x44ed82(0x12c)+_0x4b584c+'\x20'+(_0x1077c6||''))[_0x44ed82(0x10f)](),_0x15332f=(0x0,_0x5a8e64[_0x44ed82(0x127)])('_'+_0x3ced9b());return _0x36fb21(_0x4b2b66,''+_0x4b584c,{'defIds':_0x4b2b66[_0x44ed82(0x9d)],'idSuffix':_0x15332f['current']},{'ref':_0xb48a4b,'className':_0x3e1839,..._0x2981e8},_0x4e84ca);}function _0x36fb21(_0x237d03,_0x4f57d1,_0x107e5c,_0x1b4cb5,_0x54750d){const _0x5e4477=_0x924102;return(0x0,_0x5a8e64[_0x5e4477(0x9a)])(_0x237d03[_0x5e4477(0x78)],{'key':_0x4f57d1,..._0x17acfa(_0x237d03,_0x107e5c,_0x54750d),..._0x1b4cb5},(_0x139ba4(_0x237d03,_0x107e5c)[_0x5e4477(0x157)]||[])[_0x5e4477(0x94)]((_0x21f501,_0x1d8d77)=>_0x36fb21(_0x21f501,_0x4f57d1+'-'+_0x237d03[_0x5e4477(0x78)]+'-'+_0x1d8d77,_0x107e5c,void 0x0,_0x54750d)));}function _0x17acfa(_0xaf745c,_0x4fae74,_0x329079){const _0x5dedce=_0x924102;let _0x3a429e={..._0xaf745c[_0x5dedce(0x13f)]};_0x329079!=null&&_0x329079['colorChannel1']&&_0x3a429e[_0x5dedce(0x9f)]==='colorChannel1'&&(_0x3a429e['fill']=_0x329079['colorChannel1']),_0xaf745c[_0x5dedce(0x78)]===_0x5dedce(0x118)&&_0x3a429e['id']&&(_0x3a429e['id']+=_0x4fae74['idSuffix']),Object[_0x5dedce(0xfe)](_0x3a429e)[_0x5dedce(0xeb)](([_0x35a096,_0x2bb1a1])=>{const _0x1853c7=_0x5dedce;_0x35a096===_0x1853c7(0x118)&&typeof _0x2bb1a1==_0x1853c7(0x155)&&(_0x3a429e[_0x35a096]=_0x2bb1a1[_0x1853c7(0xb7)](/url\(#(.*)\)/,_0x1853c7(0x100)+_0x4fae74[_0x1853c7(0x136)]+')'));});let {defIds:_0xa514c9}=_0x4fae74;return!_0xa514c9||_0xa514c9['length']===0x0?_0x3a429e:(_0xaf745c[_0x5dedce(0x78)]===_0x5dedce(0x143)&&_0x3a429e[_0x5dedce(0x10d)]&&(_0x3a429e['xlink:href']+=_0x4fae74[_0x5dedce(0x136)]),Object[_0x5dedce(0xfe)](_0x3a429e)[_0x5dedce(0xeb)](([_0x409c9c,_0x581041])=>{const _0x1ccbc2=_0x5dedce;typeof _0x581041==_0x1ccbc2(0x155)&&(_0x3a429e[_0x409c9c]=_0x581041[_0x1ccbc2(0xb7)](/url\(#(.*)\)/,'url(#$1'+_0x4fae74[_0x1ccbc2(0x136)]+')'));}),_0x3a429e);}function _0x139ba4(_0x4119d5,_0x1e0758){const _0x14f14d=_0x924102;var _0x44dbd1;let {defIds:_0x4d7f1b}=_0x1e0758;return!_0x4d7f1b||_0x4d7f1b[_0x14f14d(0xd5)]===0x0?_0x4119d5:_0x4119d5[_0x14f14d(0x78)]===_0x14f14d(0xc3)&&(_0x44dbd1=_0x4119d5[_0x14f14d(0x157)])!=null&&_0x44dbd1[_0x14f14d(0xd5)]?{..._0x4119d5,'children':_0x4119d5[_0x14f14d(0x157)][_0x14f14d(0x94)](_0x361a50=>typeof _0x361a50['attrs']['id']=='string'&&_0x4d7f1b&&_0x4d7f1b[_0x14f14d(0x132)](_0x361a50[_0x14f14d(0x13f)]['id'])?{..._0x361a50,'attrs':{..._0x361a50['attrs'],'id':_0x361a50[_0x14f14d(0x13f)]['id']+_0x1e0758[_0x14f14d(0x136)]}}:_0x361a50)}:_0x4119d5;}function _0x3ced9b(){const _0x5830fe=_0x924102;return Math['random']()[_0x5830fe(0xf8)](0x24)[_0x5830fe(0xcc)](0x2,0x8);}_0x394b8[_0x924102(0xd0)]=_0x924102(0x98);let _0x268c37={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x924102(0x86),'viewBox':_0x924102(0x7f),'width':_0x924102(0x154),'height':_0x924102(0x154)},'children':[{'tag':_0x924102(0x14c),'attrs':{'fill':_0x924102(0x105),'d':_0x924102(0x8a)}},{'tag':_0x924102(0x14c),'attrs':{'fill':_0x924102(0x105),'d':_0x924102(0x15d),'fillRule':_0x924102(0xe0),'clipRule':_0x924102(0xe0)}}]},_0x2761b1=(0x0,_0x5a8e64[_0x924102(0xf9)])(function(_0x9c6fad,_0x4ff907){const _0x26d6f7=_0x924102;return(0x0,_0x5a8e64[_0x26d6f7(0x9a)])(_0x394b8,Object[_0x26d6f7(0x90)]({},_0x9c6fad,{'id':_0x26d6f7(0x115),'ref':_0x4ff907,'icon':_0x268c37}));});_0x2761b1[_0x924102(0xd0)]=_0x924102(0x150);function _0x9cf620(_0x29db50){'@babel/helpers - typeof';const _0x1c742a=_0x924102;return _0x9cf620=typeof Symbol=='function'&&typeof Symbol[_0x1c742a(0xcd)]==_0x1c742a(0x159)?function(_0x5a82a){return typeof _0x5a82a;}:function(_0x50778a){const _0x5c0a1d=_0x1c742a;return _0x50778a&&typeof Symbol=='function'&&_0x50778a[_0x5c0a1d(0x76)]===Symbol&&_0x50778a!==Symbol[_0x5c0a1d(0xf5)]?'symbol':typeof _0x50778a;},_0x9cf620(_0x29db50);}function _0x23bf01(_0xace39,_0x576619){const _0x290e4a=_0x924102;if(_0x9cf620(_0xace39)!=_0x290e4a(0x103)||!_0xace39)return _0xace39;var _0x587e69=_0xace39[Symbol[_0x290e4a(0x121)]];if(_0x587e69!==void 0x0){var _0x59b269=_0x587e69[_0x290e4a(0x10e)](_0xace39,_0x576619||_0x290e4a(0x13c));if(_0x9cf620(_0x59b269)!=_0x290e4a(0x103))return _0x59b269;throw TypeError(_0x290e4a(0xb9));}return(_0x576619===_0x290e4a(0x155)?String:Number)(_0xace39);}function _0x1652cb(_0x55e944){const _0x126d03=_0x924102;var _0x564450=_0x23bf01(_0x55e944,_0x126d03(0x155));return _0x9cf620(_0x564450)==_0x126d03(0x159)?_0x564450:_0x564450+'';}function _0x31e8bf(_0x15f795,_0x1f5a29,_0x51cc8e){const _0x2e6156=_0x924102;return(_0x1f5a29=_0x1652cb(_0x1f5a29))in _0x15f795?Object[_0x2e6156(0x12e)](_0x15f795,_0x1f5a29,{'value':_0x51cc8e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f795[_0x1f5a29]=_0x51cc8e,_0x15f795;}var _0x3075f=class extends _0x3c016e[_0x924102(0xec)]{constructor(..._0x2694e9){const _0x551776=_0x924102;super(..._0x2694e9),_0x31e8bf(this,_0x551776(0x128),new Set()),_0x31e8bf(this,_0x551776(0xbb),new Set());}[_0x924102(0x8b)](_0x1eaf3e){const _0x59d3b0=_0x924102;return this[_0x59d3b0(0x128)][_0x59d3b0(0x11e)](_0x1eaf3e),(0x0,_0x3c016e[_0x59d3b0(0x126)])(()=>this[_0x59d3b0(0x128)][_0x59d3b0(0xc9)](_0x1eaf3e));}[_0x924102(0xd6)](_0x2d1423){const _0x1924ed=_0x924102;return this[_0x1924ed(0xbb)][_0x1924ed(0x11e)](_0x2d1423),(0x0,_0x3c016e[_0x1924ed(0x126)])(()=>this[_0x1924ed(0xbb)][_0x1924ed(0xc9)](_0x2d1423));}[_0x924102(0x80)](_0x22bc7e){const _0x40c243=_0x924102;return this[_0x40c243(0x128)][_0x40c243(0x8e)](_0x22bc7e);}[_0x924102(0xf2)](_0x4fa45e){const _0xab5dfa=_0x924102;return Array['from'](this[_0xab5dfa(0xbb)])['map'](_0x355627=>_0x355627(_0x4fa45e));}};function _0x25d98d(_0x45c098,_0x9baaad){return function(_0x1d791c,_0x51b694){_0x9baaad(_0x1d791c,_0x51b694,_0x45c098);};}function _0x3eb2da(_0x18e01f,_0xfd139e,_0x10b092,_0x548024){const _0x30df27=_0x924102;var _0x34ce20=arguments[_0x30df27(0xd5)],_0x486de6=_0x34ce20<0x3?_0xfd139e:_0x548024===null?_0x548024=Object['getOwnPropertyDescriptor'](_0xfd139e,_0x10b092):_0x548024,_0xb93fad;if(typeof Reflect==_0x30df27(0x103)&&typeof Reflect[_0x30df27(0x119)]==_0x30df27(0xe5))_0x486de6=Reflect[_0x30df27(0x119)](_0x18e01f,_0xfd139e,_0x10b092,_0x548024);else{for(var _0x4f934b=_0x18e01f[_0x30df27(0xd5)]-0x1;_0x4f934b>=0x0;_0x4f934b--)(_0xb93fad=_0x18e01f[_0x4f934b])&&(_0x486de6=(_0x34ce20<0x3?_0xb93fad(_0x486de6):_0x34ce20>0x3?_0xb93fad(_0xfd139e,_0x10b092,_0x486de6):_0xb93fad(_0xfd139e,_0x10b092))||_0x486de6);}return _0x34ce20>0x3&&_0x486de6&&Object['defineProperty'](_0xfd139e,_0x10b092,_0x486de6),_0x486de6;}let _0x4924bc=class extends _0x3c016e[_0x924102(0x151)]{constructor(_0x41ad4d,_0x241a5e,_0x74c85a){const _0x48a1ef=_0x924102;super(),this['_univerInstanceService']=_0x41ad4d,this[_0x48a1ef(0x8f)]=_0x241a5e,this['_collabSessionService']=_0x74c85a,_0x31e8bf(this,_0x48a1ef(0x85),new Map()),this['_init']();}async[_0x924102(0x9e)](_0x3eccfc){const _0x3565df=_0x924102;return this[_0x3565df(0x85)]['has'](_0x3eccfc)||await this[_0x3565df(0x12b)](_0x3eccfc),this[_0x3565df(0x85)][_0x3565df(0xf3)](_0x3eccfc);}[_0x924102(0x14e)](_0x94e78c){const _0x495d0a=_0x924102;var _0x5a1153;return(_0x5a1153=this['_entities'][_0x495d0a(0xf3)](_0x94e78c))==null?null:_0x5a1153;}[_0x924102(0x11d)](){const _0x440794=_0x924102;this['_univerInstanceService'][_0x440794(0xe8)](_0x3c016e[_0x440794(0x7a)][_0x440794(0x135)])[_0x440794(0x152)]((0x0,_0x33501d[_0x440794(0xa8)])(this['dispose$']))[_0x440794(0x14a)](async _0x4d1f96=>{const _0x3dafa9=_0x440794;let _0x596e19=_0x4d1f96[_0x3dafa9(0x11f)]['getUnitId']();this[_0x3dafa9(0x85)][_0x3dafa9(0x8e)](_0x596e19)||this[_0x3dafa9(0x12b)](_0x596e19);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3c016e[_0x440794(0x7a)][_0x440794(0x135)])[_0x440794(0x152)]((0x0,_0x33501d['takeUntil'])(this[_0x440794(0xd1)]))[_0x440794(0x14a)](_0x4d74ad=>{const _0x57d4cb=_0x440794;let _0x13e517=_0x4d74ad[_0x57d4cb(0x146)](),_0x33e58b=this[_0x57d4cb(0x85)][_0x57d4cb(0xf3)](_0x13e517);_0x33e58b==null||_0x33e58b['dispose']();});}async['_startLiveShareCoordinator'](_0x5ef7b7){const _0x46a621=_0x924102;let _0x531b04=await this[_0x46a621(0xa5)][_0x46a621(0x89)](_0x5ef7b7),_0x4a09f9=this['_injector']['createInstance'](_0x5a421d,_0x5ef7b7,_0x531b04);return _0x4a09f9[_0x46a621(0xed)](),this['_entities'][_0x46a621(0x11c)](_0x5ef7b7,_0x4a09f9),_0x4a09f9;}};_0x4924bc=_0x3eb2da([_0x25d98d(0x0,_0x3c016e[_0x924102(0xf7)]),_0x25d98d(0x1,(0x0,_0x3c016e['Inject'])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x2,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x30522a[_0x924102(0xb0)]))],_0x4924bc);let _0x375343=function(_0x5e0336){const _0x2672c8=_0x924102;return _0x5e0336['OFFLINE']=_0x2672c8(0x120),_0x5e0336['IDLE']=_0x2672c8(0xa9),_0x5e0336[_0x2672c8(0xaf)]=_0x2672c8(0x79),_0x5e0336['NOT_FOLLOWING']=_0x2672c8(0x112),_0x5e0336[_0x2672c8(0x134)]=_0x2672c8(0x117),_0x5e0336;}({}),_0x5a421d=class extends _0x3c016e[_0x924102(0x151)]{get[_0x924102(0x83)](){const _0x5da228=_0x924102;return this[_0x5da228(0x107)]['getValue']();}constructor(_0x599fe1,_0x3c8156,_0xad8895,_0x19d0bb,_0x402fe1){const _0x14a805=_0x924102;super(),this['_unitID']=_0x599fe1,this[_0x14a805(0xfa)]=_0x3c8156,this[_0x14a805(0xc8)]=_0xad8895,this['_liveShareService']=_0x19d0bb,this['_commandService']=_0x402fe1,_0x31e8bf(this,_0x14a805(0x107),new _0x553695[(_0x14a805(0xe9))]('idle')),_0x31e8bf(this,'status$',this[_0x14a805(0x107)][_0x14a805(0x9c)]()),_0x31e8bf(this,_0x14a805(0x11d),!0x1),_0x31e8bf(this,_0x14a805(0x99),null),_0x31e8bf(this,_0x14a805(0xde),null);}[_0x924102(0x116)](){const _0xfbcb13=_0x924102;var _0x25799a;(_0x25799a=this['_commandDisposable'])==null||_0x25799a[_0xfbcb13(0x116)](),this[_0xfbcb13(0x107)][_0xfbcb13(0x114)](_0xfbcb13(0xa9)),this[_0xfbcb13(0x107)]['complete']();}[_0x924102(0x137)](){const _0x5950e5=_0x924102;return this[_0x5950e5(0x83)];}[_0x924102(0xed)](){const _0x59931c=_0x924102;this[_0x59931c(0x11d)]||(this[_0x59931c(0x11d)]=!0x0,this['_collabSession'][_0x59931c(0xd3)][_0x59931c(0x152)]((0x0,_0x33501d[_0x59931c(0xa8)])(this[_0x59931c(0xd1)]))[_0x59931c(0x14a)](_0x13224b=>{const _0x230904=_0x59931c;switch(_0x13224b){case _0x30522a['SessionStatus']['OFFLINE']:this[_0x230904(0x8d)]();break;case _0x30522a[_0x230904(0xd4)]['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x59931c(0xfa)][_0x59931c(0x82)][_0x59931c(0x152)]((0x0,_0x33501d[_0x59931c(0xa8)])(this[_0x59931c(0xd1)]))[_0x59931c(0x14a)](_0x581c3a=>{const _0x3b1d60=_0x59931c;let {eventID:_0x3eee49}=_0x581c3a;switch(_0x3eee49){case _0x4a8d26[_0x3b1d60(0xee)]['LIVESHARE_NEW_HOST']:this[_0x3b1d60(0x158)](_0x581c3a);break;case _0x4a8d26[_0x3b1d60(0xee)][_0x3b1d60(0x104)]:this[_0x3b1d60(0xd7)](_0x581c3a);break;case _0x4a8d26['CollaborationEvent'][_0x3b1d60(0xbe)]:this[_0x3b1d60(0x88)]();break;case _0x4a8d26[_0x3b1d60(0xee)][_0x3b1d60(0x91)]:this[_0x3b1d60(0xda)](_0x581c3a);break;default:}}));}[_0x924102(0xc7)](){const _0x4236b2=_0x924102;this[_0x4236b2(0xfa)][_0x4236b2(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4236b2(0xfc)],'userID':this[_0x4236b2(0xfa)][_0x4236b2(0x131)]()}},this[_0x4236b2(0xfc)]);}[_0x924102(0x142)](){const _0xb56225=_0x924102;this[_0xb56225(0x83)]===_0xb56225(0x117)&&(this[_0xb56225(0x107)][_0xb56225(0x114)](_0xb56225(0xa9)),this['_collabSession'][_0xb56225(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xb56225(0xfc)]));}['startFollowing'](){const _0x5190cc=_0x924102;this['_status']==='not-following'&&(this['_status$'][_0x5190cc(0x114)](_0x5190cc(0x79)),this['_startFollowing']());}['stopFollowing'](){const _0x260c48=_0x924102;this[_0x260c48(0x83)]==='following'&&this[_0x260c48(0x11a)]();}[_0x924102(0x158)](_0x373297){const _0x560ba4=_0x924102;let {presenter:_0x3ae13b}=_0x373297[_0x560ba4(0xdc)],_0x488fc0=this[_0x560ba4(0xfa)][_0x560ba4(0x131)]();this['_presenter']=_0x3ae13b,_0x3ae13b===_0x488fc0?(this[_0x560ba4(0x11a)](),this[_0x560ba4(0x15e)]()):this['_status']!==_0x560ba4(0x112)&&(this[_0x560ba4(0xa7)](),this[_0x560ba4(0xbf)]());}[_0x924102(0xe3)](){const _0x5ff033=_0x924102;let _0x5bc304={'eventID':_0x4a8d26[_0x5ff033(0xee)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5ff033(0xfa)][_0x5ff033(0x13b)](_0x5bc304,this[_0x5ff033(0xfc)]);}[_0x924102(0x88)](){const _0x5440d7=_0x924102;this[_0x5440d7(0xde)]=null,this['_status']!==_0x5440d7(0x117)&&this[_0x5440d7(0x106)]();}[_0x924102(0xda)](_0x43e790){const _0x42577e=_0x924102;if(this[_0x42577e(0x83)]===_0x42577e(0x79)&&this['_presenter']===_0x43e790[_0x42577e(0xdc)]['memberID']){let _0x550068=(0x0,_0x4a8d26[_0x42577e(0x81)])(_0x43e790[_0x42577e(0xdc)])['mutations']['reverse']()['find'](_0x18dcfd=>_0x18dcfd['id']===_0x34724b[_0x42577e(0x110)]['id']);if(_0x550068){let _0x497fc1=_0x550068[_0x42577e(0x122)]['unitId'],_0x213528=_0x550068[_0x42577e(0x122)][_0x42577e(0xc5)]['id'];setTimeout(()=>{const _0x42ccce=_0x42577e;this[_0x42ccce(0xd9)]['executeCommand'](_0x34724b[_0x42ccce(0x14b)]['id'],{'unitId':_0x497fc1,'subUnitId':_0x213528},{'fromCollab':!0x0});});}}}[_0x924102(0x15e)](){const _0x4e2b43=_0x924102;var _0x56f8b3;(_0x56f8b3=this[_0x4e2b43(0x99)])==null||_0x56f8b3[_0x4e2b43(0x116)](),this[_0x4e2b43(0x107)]['next'](_0x4e2b43(0x117));let _0x19a312=new Map(),_0x24a182=this[_0x4e2b43(0x99)]=new _0x3c016e[(_0x4e2b43(0xc2))]();_0x24a182['add']((0x0,_0x3c016e[_0x4e2b43(0x126)])(()=>{const _0x3cf00c=_0x4e2b43;_0x19a312[_0x3cf00c(0xeb)](({subject:_0x2cdbca,subscription:_0xca6308})=>{_0xca6308['unsubscribe'](),_0x2cdbca['complete']();}),_0x19a312[_0x3cf00c(0x84)]();})),_0x24a182[_0x4e2b43(0x11e)](this[_0x4e2b43(0xd9)][_0x4e2b43(0x139)](_0x53186d=>{const _0x3ce9a7=_0x4e2b43;if(_0x53186d[_0x3ce9a7(0xac)]!==_0x3c016e[_0x3ce9a7(0x87)][_0x3ce9a7(0xa3)]||!this[_0x3ce9a7(0xf1)]['shouldShareOperation'](_0x53186d['id']))return;let {id:_0x39a2fc}=_0x53186d,_0x29a90c;if(_0x19a312[_0x3ce9a7(0x8e)](_0x39a2fc))_0x29a90c=_0x19a312['get'](_0x39a2fc)['subject'];else{var _0x255426;_0x29a90c=new _0x553695['Subject']();let _0x1bf701=_0x29a90c[_0x3ce9a7(0x152)]((0x0,_0x33501d[_0x3ce9a7(0xbd)])((_0x255426=this[_0x3ce9a7(0xc8)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x255426,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ce9a7(0x14a)](_0x47a845=>{const _0x9bc62d=_0x3ce9a7;this[_0x9bc62d(0xfa)]['send']({'eventID':_0x4a8d26[_0x9bc62d(0xee)][_0x9bc62d(0x104)],'data':{'unitID':this['_unitID'],'operations':{[_0x47a845['id']]:{'id':_0x47a845['id'],'params':JSON[_0x9bc62d(0xe6)](_0x47a845[_0x9bc62d(0x122)])}}}},this[_0x9bc62d(0xfc)]);});_0x19a312[_0x3ce9a7(0x11c)](_0x39a2fc,{'subject':_0x29a90c,'subscription':_0x1bf701});}_0x29a90c['next'](_0x53186d);})),this[_0x4e2b43(0xf1)]['getInitialStates'](this['_unitID'])['forEach'](_0x1d29fe=>this[_0x4e2b43(0xfa)][_0x4e2b43(0x13b)]({'eventID':_0x4a8d26['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e2b43(0xfc)],'operations':{[_0x1d29fe['id']]:{'id':_0x1d29fe['id'],'params':JSON['stringify'](_0x1d29fe[_0x4e2b43(0x122)])}}}},this[_0x4e2b43(0xfc)]));}['_stopPresenting'](){const _0x30d520=_0x924102;var _0x9f4538;this[_0x30d520(0x107)][_0x30d520(0x114)]('idle'),(_0x9f4538=this['_commandDisposable'])==null||_0x9f4538[_0x30d520(0x116)](),this[_0x30d520(0x99)]=null;}[_0x924102(0xbf)](){const _0x26a5d2=_0x924102;var _0x27d13b;(_0x27d13b=this['_commandDisposable'])==null||_0x27d13b[_0x26a5d2(0x116)](),this[_0x26a5d2(0x107)]['next'](_0x26a5d2(0x79));}[_0x924102(0x106)](){const _0x1b433f=_0x924102;var _0x4bcf84;this[_0x1b433f(0x107)][_0x1b433f(0x114)]('idle'),(_0x4bcf84=this[_0x1b433f(0x99)])==null||_0x4bcf84[_0x1b433f(0x116)](),this[_0x1b433f(0x99)]=null;}[_0x924102(0x11a)](){const _0x1807c0=_0x924102;var _0x45bfa3;this[_0x1807c0(0x107)]['next'](_0x1807c0(0x112)),(_0x45bfa3=this[_0x1807c0(0x99)])==null||_0x45bfa3[_0x1807c0(0x116)]();}[_0x924102(0xd7)](_0x46d297){const _0x5eb990=_0x924102;if(['presenting','not-following',_0x5eb990(0x120)][_0x5eb990(0x132)](this['_status'])||!_0x46d297['data'][_0x5eb990(0xab)]||_0x46d297[_0x5eb990(0xdc)][_0x5eb990(0xab)]===this[_0x5eb990(0xfa)]['getMemberID']())return;this[_0x5eb990(0x83)]===_0x5eb990(0xa9)&&this[_0x5eb990(0xbf)]();let _0x66467=_0x46d297[_0x5eb990(0xdc)]['operations'];Object['values'](_0x66467)[_0x5eb990(0xeb)](_0x41fb2c=>{const _0x3e9f2a=_0x5eb990;this[_0x3e9f2a(0xd9)][_0x3e9f2a(0x109)](_0x41fb2c['id'],_0x41fb2c[_0x3e9f2a(0x122)]?JSON[_0x3e9f2a(0x124)](_0x41fb2c['params']):null,{'fromCollab':!0x0});});}[_0x924102(0x8d)](){const _0x1c41ba=_0x924102;var _0x3207c4;this[_0x1c41ba(0x107)][_0x1c41ba(0x114)](_0x1c41ba(0x120)),(_0x3207c4=this[_0x1c41ba(0x99)])==null||_0x3207c4['dispose']();}[_0x924102(0x113)](){const _0x5030e6=_0x924102;this[_0x5030e6(0x107)][_0x5030e6(0x114)](_0x5030e6(0xa9)),this[_0x5030e6(0xe3)]();}};_0x5a421d=_0x3eb2da([_0x25d98d(0x2,_0x3c016e[_0x924102(0x140)]),_0x25d98d(0x3,(0x0,_0x3c016e['Inject'])(_0x3075f)),_0x25d98d(0x4,_0x3c016e[_0x924102(0xdd)])],_0x5a421d);function _0x4a1d7b(){const _0x5d7654=_0x924102;let _0x2f4018=(0x0,_0x113560[_0x5d7654(0xb4)])(_0x4924bc),_0x3ccbb9=(0x0,_0x113560[_0x5d7654(0xb4)])(_0x3c016e[_0x5d7654(0xf7)]),_0x24b40b=(0x0,_0x113560[_0x5d7654(0xba)])(()=>_0x3ccbb9[_0x5d7654(0x9b)](_0x3c016e['UniverInstanceType'][_0x5d7654(0x135)]),void 0x0,!0x1,[]),[_0x258c4e,_0x1edfdc]=(0x0,_0x5a8e64[_0x5d7654(0xef)])(null),[_0x256938,_0xc09e51]=(0x0,_0x5a8e64['useState'])(_0x5d7654(0xa9)),_0x124953=(0x0,_0x5a8e64['useRef'])(null);return(0x0,_0x5a8e64[_0x5d7654(0xc6)])(()=>(_0x24b40b&&_0x2f4018[_0x5d7654(0x9e)](_0x24b40b['getUnitId']())[_0x5d7654(0x15f)](_0x10d93d=>{const _0x3928c0=_0x5d7654;_0x1edfdc(_0x10d93d),_0x124953[_0x3928c0(0xcf)]=_0x10d93d['status$']['subscribe'](_0x8d9d40=>{_0xc09e51(_0x8d9d40);});}),()=>{const _0x8a02ca=_0x5d7654;var _0x598740;(_0x598740=_0x124953[_0x8a02ca(0xcf)])==null||_0x598740[_0x8a02ca(0x95)](),_0x124953['current']=null;}),[_0x24b40b,_0x2f4018]),_0x258c4e?(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x23d37f[_0x5d7654(0x10c)],{'align':_0x5d7654(0x93),'disabled':_0x256938===_0x5d7654(0x120),'className':_0x5d7654(0x108),'overlay':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x4fb0b2,{'status':_0x256938,'coordinator':_0x258c4e}),'children':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x5d7654(0xb6),{'className':(0x0,_0x23d37f['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x256938===_0x5d7654(0x120),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x256938!==_0x5d7654(0x120)}),'type':_0x5d7654(0xb6),'children':(0x0,_0x51b0f1[_0x5d7654(0xa1)])(_0x2761b1,{'className':'univer-size-4'})})}):null;}function _0x4fb0b2(_0x119d1b){const _0xe274ee=_0x924102;let {status:_0x7b69de,coordinator:_0x3091e7}=_0x119d1b;switch(_0x7b69de){case _0xe274ee(0xa9):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x48ae08,{'coordinator':_0x3091e7});case _0xe274ee(0x79):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x3a3d52,{'coordinator':_0x3091e7});case _0xe274ee(0x112):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x2ac329,{'coordinator':_0x3091e7});case'offline':return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x5038cb,{});case _0xe274ee(0x117):return(0x0,_0x51b0f1[_0xe274ee(0xa1)])(_0x31107b,{'coordinator':_0x3091e7});default:return null;}}function _0x48ae08(_0x50591){const _0x4b5379=_0x924102;let {coordinator:_0x3fa9f9}=_0x50591;return(0x0,_0x51b0f1[_0x4b5379(0x101)])(_0x51b0f1[_0x4b5379(0xd2)],{'children':[(0x0,_0x51b0f1[_0x4b5379(0xa1)])('div',{'className':_0x4b5379(0x133),'children':_0x4b5379(0xe2)}),(0x0,_0x51b0f1[_0x4b5379(0xa1)])(_0x23d37f[_0x4b5379(0xe7)],{'onClick':()=>_0x3fa9f9['tryStartPresenting'](),'children':_0x4b5379(0xa2)})]});}function _0x3a3d52(_0x1834d0){const _0x32f3d4=_0x924102;let {coordinator:_0x3e5323}=_0x1834d0;return(0x0,_0x51b0f1['jsxs'])(_0x51b0f1[_0x32f3d4(0xd2)],{'children':[(0x0,_0x51b0f1[_0x32f3d4(0xa1)])(_0x32f3d4(0xc1),{'className':_0x32f3d4(0x133),'children':_0x32f3d4(0x130)}),(0x0,_0x51b0f1[_0x32f3d4(0xa1)])(_0x23d37f['Button'],{'onClick':()=>_0x3e5323[_0x32f3d4(0x123)](),'children':_0x32f3d4(0x13e)})]});}function _0x2ac329(_0x8c4204){const _0x355eeb=_0x924102;let {coordinator:_0x1664be}=_0x8c4204;return(0x0,_0x51b0f1[_0x355eeb(0x101)])(_0x51b0f1[_0x355eeb(0xd2)],{'children':[(0x0,_0x51b0f1[_0x355eeb(0xa1)])(_0x355eeb(0xc1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x355eeb(0x7c)}),(0x0,_0x51b0f1['jsx'])(_0x23d37f[_0x355eeb(0xe7)],{'variant':'text','onClick':()=>_0x1664be[_0x355eeb(0xad)](),'children':_0x355eeb(0x147)})]});}function _0x31107b(_0x2fb9dd){const _0x3b748d=_0x924102;let {coordinator:_0x1b73b1}=_0x2fb9dd;return(0x0,_0x51b0f1[_0x3b748d(0x101)])(_0x51b0f1[_0x3b748d(0xd2)],{'children':[(0x0,_0x51b0f1[_0x3b748d(0xa1)])('div',{'className':_0x3b748d(0x133),'children':_0x3b748d(0x111)}),(0x0,_0x51b0f1[_0x3b748d(0xa1)])(_0x23d37f[_0x3b748d(0xe7)],{'variant':'default','onClick':()=>_0x1b73b1[_0x3b748d(0x142)](),'children':_0x3b748d(0xbc)})]});}function _0x5038cb(){const _0x20b225=_0x924102;return(0x0,_0x51b0f1[_0x20b225(0xa1)])(_0x51b0f1[_0x20b225(0xd2)],{'children':'You\x27are\x20offline.'});}let _0x10c363=class extends _0x3c016e['Disposable']{constructor(_0x5d3bb9,_0x5e1829){const _0x9fa777=_0x924102;super(),this[_0x9fa777(0x8f)]=_0x5d3bb9,this[_0x9fa777(0x153)]=_0x5e1829,this[_0x9fa777(0xdf)]();}[_0x924102(0xdf)](){const _0xac5113=_0x924102;this[_0xac5113(0x7e)](this[_0xac5113(0x153)][_0xac5113(0x15a)](_0x113560['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x113560[_0xac5113(0x15b)])(_0x4a1d7b,this[_0xac5113(0x8f)])));}};_0x10c363=_0x3eb2da([_0x25d98d(0x0,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x1,_0x113560['IUIPartsService'])],_0x10c363);var _0x43d756='@univerjs-pro/live-share',_0x4a54ab=_0x924102(0xdb);let _0x4139ca=_0x924102(0xd8);Symbol(_0x4139ca);let _0x480e7a={},_0x5db4e9=class extends _0x3c016e['Disposable']{constructor(_0x3710c3){const _0x31ef28=_0x924102;super(),this[_0x31ef28(0xf1)]=_0x3710c3,this[_0x31ef28(0x11d)]();}[_0x924102(0x11d)](){const _0xb06a5a=_0x924102;[_0x169f6f[_0xb06a5a(0x14d)]['id'],_0x169f6f[_0xb06a5a(0xe4)]['id'],_0x34724b[_0xb06a5a(0x14b)]['id']][_0xb06a5a(0xeb)](_0x150cbc=>{const _0xb085e1=_0xb06a5a;this[_0xb085e1(0x7e)](this[_0xb085e1(0xf1)][_0xb085e1(0x8b)](_0x150cbc));});}};_0x5db4e9=_0x3eb2da([_0x25d98d(0x0,(0x0,_0x3c016e['Inject'])(_0x3075f))],_0x5db4e9);let _0x52157e=class extends _0x3c016e[_0x924102(0xa4)]{constructor(_0x1f6f7=_0x480e7a,_0x2c18ec,_0x2f9a6a){const _0x1fb7e5=_0x924102;super(),this['_config']=_0x1f6f7,this[_0x1fb7e5(0x8f)]=_0x2c18ec,this['_configService']=_0x2f9a6a;let {..._0x240167}=(0x0,_0x3c016e[_0x1fb7e5(0xf6)])({},_0x480e7a,this[_0x1fb7e5(0xb5)]);this[_0x1fb7e5(0xc8)][_0x1fb7e5(0xb8)](_0x4139ca,_0x240167);}[_0x924102(0xa6)](){const _0x2653aa=_0x924102;(0x0,_0x3c016e[_0x2653aa(0x144)])(this['_injector'],(0x0,_0x3c016e['mergeOverrideWithDependencies'])([[_0x3075f],[_0x4924bc],[_0x5db4e9],[_0x10c363]],this[_0x2653aa(0xb5)][_0x2653aa(0x13d)])),(0x0,_0x3c016e[_0x2653aa(0x8c)])(this[_0x2653aa(0x8f)],[[_0x5db4e9]]);}[_0x924102(0x148)](){(0x0,_0x3c016e['touchDependencies'])(this['_injector'],[[_0x10c363]]);}};_0x31e8bf(_0x52157e,'type',_0x3c016e[_0x924102(0x7a)][_0x924102(0x10a)]),_0x31e8bf(_0x52157e,_0x924102(0xcb),_0x924102(0x149)),_0x31e8bf(_0x52157e,_0x924102(0x10b),_0x43d756),_0x31e8bf(_0x52157e,_0x924102(0xb2),_0x4a54ab),_0x52157e=_0x3eb2da([(0x0,_0x3c016e['DependentOn'])(_0x30522a[_0x924102(0xaa)]),_0x25d98d(0x1,(0x0,_0x3c016e[_0x924102(0xb1)])(_0x3c016e[_0x924102(0x7b)])),_0x25d98d(0x2,_0x3c016e[_0x924102(0x140)])],_0x52157e),Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x11b),{'enumerable':!0x0,'get':function(){return _0x10c363;}}),_0x2f6fda[_0x924102(0x12f)]=_0x4a1d7b,Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x156),{'enumerable':!0x0,'get':function(){return _0x4924bc;}}),Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0xea),{'enumerable':!0x0,'get':function(){return _0x5a421d;}}),_0x2f6fda[_0x924102(0x92)]=_0x3075f,_0x2f6fda[_0x924102(0xca)]=_0x375343,Object[_0x924102(0x12e)](_0x2f6fda,_0x924102(0x129),{'enumerable':!0x0,'get':function(){return _0x52157e;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -62,24 +62,24 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "^1.1.1",
66
- "@univerjs-pro/collaboration": "0.23.0",
67
- "@univerjs-pro/collaboration-client": "0.23.0",
68
- "@univerjs/core": "0.23.0",
69
- "@univerjs/sheets": "0.23.0",
70
- "@univerjs/design": "0.23.0",
71
- "@univerjs/sheets-ui": "0.23.0",
72
- "@univerjs/ui": "0.23.0"
65
+ "@univerjs/icons": "1.4.0",
66
+ "@univerjs-pro/collaboration": "0.24.0",
67
+ "@univerjs-pro/collaboration-client": "0.24.0",
68
+ "@univerjs/core": "0.24.0",
69
+ "@univerjs/sheets-ui": "0.24.0",
70
+ "@univerjs/design": "0.24.0",
71
+ "@univerjs/sheets": "0.24.0",
72
+ "@univerjs/ui": "0.24.0"
73
73
  },
74
74
  "devDependencies": {
75
- "postcss": "^8.5.10",
75
+ "postcss": "^8.5.14",
76
76
  "react": "18.3.1",
77
77
  "rxjs": "7.8.2",
78
78
  "tailwindcss": "^3.4.17",
79
79
  "typescript": "^6.0.3",
80
- "vitest": "^4.1.4",
81
- "@univerjs-infra/shared": "0.23.0",
82
- "@univerjs/protocol": "0.23.0"
80
+ "vitest": "^4.1.6",
81
+ "@univerjs-infra/shared": "0.24.0",
82
+ "@univerjs/protocol": "0.24.0"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",