@univerjs-pro/live-share 0.25.0 → 0.25.2

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 _0x3435a7=_0x3ee2;function _0x51ee(){const _0xa57e18=['_initialize','tryStartPresenting','stopPresenting','function','29697460gxGUNK','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','getStatus','extend','2476080jYzury','toPrimitive','stopFollowing','getLiveShareCoordinatorSync','9FtCUWi','_liveShareController','get','call','LiveShareStatus','8854447GcybYF','_injector','No\x20active\x20workbook\x20found.','2184360ofmKLP','getCurrentUnitOfType','2LABFih','IDLE','2095716DTeKLG','FEnum','2773305xZcqYF','LiveShareStatusEnum','startFollowing','getLiveShareStatus','prototype','constructor','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverInstanceType','IUniverInstanceService','object','getUnitId','1054731zUfRsv','symbol','defineProperty','4CwAWwV','default','FUniver','UNIVER_SHEET'];_0x51ee=function(){return _0xa57e18;};return _0x51ee();}function _0x3ee2(_0x46e39e,_0xfe525e){_0x46e39e=_0x46e39e-0xa7;const _0x51ee3d=_0x51ee();let _0x3ee2ba=_0x51ee3d[_0x46e39e];return _0x3ee2ba;}(function(_0x117cdb,_0xba6027){const _0xceda41=_0x3ee2,_0x3545ec=_0x117cdb();while(!![]){try{const _0xd34ef9=parseInt(_0xceda41(0xbe))/0x1*(parseInt(_0xceda41(0xaf))/0x2)+-parseInt(_0xceda41(0xb3))/0x3*(-parseInt(_0xceda41(0xc1))/0x4)+parseInt(_0xceda41(0xad))/0x5+parseInt(_0xceda41(0xb1))/0x6+parseInt(_0xceda41(0xaa))/0x7+-parseInt(_0xceda41(0xce))/0x8+parseInt(_0xceda41(0xd2))/0x9*(-parseInt(_0xceda41(0xc9))/0xa);if(_0xd34ef9===_0xba6027)break;else _0x3545ec['push'](_0x3545ec['shift']());}catch(_0x48e518){_0x3545ec['push'](_0x3545ec['shift']());}}}(_0x51ee,0xb758d));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x451629){'@babel/helpers - typeof';const _0x2361a0=_0x3ee2;return r=typeof Symbol==_0x2361a0(0xc8)&&typeof Symbol['iterator']==_0x2361a0(0xbf)?function(_0x54b983){return typeof _0x54b983;}:function(_0x36fff6){const _0x26a333=_0x2361a0;return _0x36fff6&&typeof Symbol==_0x26a333(0xc8)&&_0x36fff6[_0x26a333(0xb8)]===Symbol&&_0x36fff6!==Symbol[_0x26a333(0xb7)]?'symbol':typeof _0x36fff6;},r(_0x451629);}function i(_0x100897,_0x378d73){const _0xa73ed3=_0x3ee2;if(r(_0x100897)!=_0xa73ed3(0xbc)||!_0x100897)return _0x100897;var _0x238940=_0x100897[Symbol[_0xa73ed3(0xcf)]];if(_0x238940!==void 0x0){var _0xb92468=_0x238940[_0xa73ed3(0xa8)](_0x100897,_0x378d73||_0xa73ed3(0xc2));if(r(_0xb92468)!=_0xa73ed3(0xbc))return _0xb92468;throw TypeError(_0xa73ed3(0xca));}return(_0x378d73===_0xa73ed3(0xcb)?String:Number)(_0x100897);}function a(_0x15e560){const _0x4b593c=_0x3ee2;var _0x2ff35d=i(_0x15e560,_0x4b593c(0xcb));return r(_0x2ff35d)==_0x4b593c(0xbf)?_0x2ff35d:_0x2ff35d+'';}function o(_0x1447de,_0x12010a,_0x2140f4){const _0x2898ad=_0x3ee2;return(_0x12010a=a(_0x12010a))in _0x1447de?Object[_0x2898ad(0xc0)](_0x1447de,_0x12010a,{'value':_0x2140f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1447de[_0x12010a]=_0x2140f4,_0x1447de;}var s=class extends n[_0x3435a7(0xc3)]{constructor(..._0x1c09b3){super(..._0x1c09b3),o(this,'_liveShareController',void 0x0);}[_0x3435a7(0xc5)](_0x371076){this['_liveShareController']=_0x371076['get'](e['LiveShareController']);}[_0x3435a7(0xb6)](){const _0x2107db=_0x3435a7;var _0x219124;let _0x4c01c8=this[_0x2107db(0xab)][_0x2107db(0xa7)](t[_0x2107db(0xbb)])['getCurrentUnitOfType'](t[_0x2107db(0xba)][_0x2107db(0xc4)]);if(!_0x4c01c8)throw Error(_0x2107db(0xac));let _0x231db6=_0x4c01c8[_0x2107db(0xbd)](),_0x44af3a=this[_0x2107db(0xd3)]['getLiveShareCoordinatorSync'](_0x231db6);return(_0x219124=_0x44af3a==null?void 0x0:_0x44af3a[_0x2107db(0xcc)]())==null?e[_0x2107db(0xa9)][_0x2107db(0xb0)]:_0x219124;}[_0x3435a7(0xb5)](){const _0xa63f96=_0x3435a7;let _0x3a6961=this['_injector']['get'](t[_0xa63f96(0xbb)])[_0xa63f96(0xae)](t[_0xa63f96(0xba)][_0xa63f96(0xc4)]);if(!_0x3a6961)throw Error(_0xa63f96(0xac));let _0x32eb5a=_0x3a6961[_0xa63f96(0xbd)](),_0x1030c3=this[_0xa63f96(0xd3)]['getLiveShareCoordinatorSync'](_0x32eb5a);if(!_0x1030c3)throw Error(_0xa63f96(0xb9));_0x1030c3[_0xa63f96(0xb5)]();}['stopFollowing'](){const _0x3969cc=_0x3435a7;let _0xb2873d=this['_injector'][_0x3969cc(0xa7)](t[_0x3969cc(0xbb)])[_0x3969cc(0xae)](t[_0x3969cc(0xba)][_0x3969cc(0xc4)]);if(!_0xb2873d)throw Error('No\x20active\x20workbook\x20found.');let _0x59a9f9=_0xb2873d[_0x3969cc(0xbd)](),_0x116e3d=this[_0x3969cc(0xd3)]['getLiveShareCoordinatorSync'](_0x59a9f9);if(!_0x116e3d)throw Error(_0x3969cc(0xb9));_0x116e3d[_0x3969cc(0xd0)]();}['startPresenting'](){const _0x5f4087=_0x3435a7;let _0x3398f2=this['_injector']['get'](t[_0x5f4087(0xbb)])[_0x5f4087(0xae)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x3398f2)throw Error(_0x5f4087(0xac));let _0x425ac9=_0x3398f2[_0x5f4087(0xbd)](),_0x3b8b59=this['_liveShareController'][_0x5f4087(0xd1)](_0x425ac9);if(!_0x3b8b59)throw Error(_0x5f4087(0xb9));_0x3b8b59[_0x5f4087(0xc6)]();}[_0x3435a7(0xc7)](){const _0x1aa77d=_0x3435a7;let _0x2f6373=this['_injector'][_0x1aa77d(0xa7)](t['IUniverInstanceService'])[_0x1aa77d(0xae)](t[_0x1aa77d(0xba)][_0x1aa77d(0xc4)]);if(!_0x2f6373)throw Error('No\x20active\x20workbook\x20found.');let _0x275701=_0x2f6373[_0x1aa77d(0xbd)](),_0xf06c86=this[_0x1aa77d(0xd3)]['getLiveShareCoordinatorSync'](_0x275701);if(!_0xf06c86)throw Error(_0x1aa77d(0xb9));_0xf06c86[_0x1aa77d(0xc7)]();}};n[_0x3435a7(0xc3)][_0x3435a7(0xcd)](s);var c=class extends n[_0x3435a7(0xb2)]{get[_0x3435a7(0xb4)](){return e['LiveShareStatus'];}};n['FEnum'][_0x3435a7(0xcd)](c);
1
+ const _0x3f36eb=_0x4965;(function(_0x11b93e,_0x424f16){const _0x4946b7=_0x4965,_0x1963ab=_0x11b93e();while(!![]){try{const _0x3b4b8d=parseInt(_0x4946b7(0xcf))/0x1*(parseInt(_0x4946b7(0xc5))/0x2)+-parseInt(_0x4946b7(0xd5))/0x3*(parseInt(_0x4946b7(0xd9))/0x4)+-parseInt(_0x4946b7(0xd2))/0x5*(-parseInt(_0x4946b7(0xc7))/0x6)+-parseInt(_0x4946b7(0xd6))/0x7+-parseInt(_0x4946b7(0xdd))/0x8*(parseInt(_0x4946b7(0xd0))/0x9)+-parseInt(_0x4946b7(0xc6))/0xa*(-parseInt(_0x4946b7(0xd1))/0xb)+parseInt(_0x4946b7(0xbd))/0xc;if(_0x3b4b8d===_0x424f16)break;else _0x1963ab['push'](_0x1963ab['shift']());}catch(_0x1462b7){_0x1963ab['push'](_0x1963ab['shift']());}}}(_0x25a5,0xbe679));function _0x25a5(){const _0x1c40b4=['3368729ZLPwgH','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','561424cvMNut','UNIVER_SHEET','extend','getStatus','2440ycJBth','symbol','startFollowing','toPrimitive','_injector','string','prototype','FEnum','FUniver','LiveShareController','_initialize','getCurrentUnitOfType','29755416Pzucyw','_liveShareController','object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareStatus','get','constructor','IDLE','2IsAGia','1443230KPLoWX','2370LZwAJM','iterator','UniverInstanceType','call','getLiveShareCoordinatorSync','stopFollowing','No\x20active\x20workbook\x20found.','stopPresenting','832882GTSdej','37458qdcIjK','11kmsnSQ','4265WgrcXZ','IUniverInstanceService','getUnitId','27pFpDQD'];_0x25a5=function(){return _0x1c40b4;};return _0x25a5();}let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x79b084){'@babel/helpers - typeof';const _0x367476=_0x4965;return r=typeof Symbol==_0x367476(0xd7)&&typeof Symbol[_0x367476(0xc8)]==_0x367476(0xde)?function(_0x5f5325){return typeof _0x5f5325;}:function(_0x783dc8){const _0x3c8a95=_0x367476;return _0x783dc8&&typeof Symbol==_0x3c8a95(0xd7)&&_0x783dc8[_0x3c8a95(0xc3)]===Symbol&&_0x783dc8!==Symbol[_0x3c8a95(0xe3)]?'symbol':typeof _0x783dc8;},r(_0x79b084);}function i(_0x4fc191,_0x19c761){const _0xaf1d97=_0x4965;if(r(_0x4fc191)!=_0xaf1d97(0xbf)||!_0x4fc191)return _0x4fc191;var _0x4833ea=_0x4fc191[Symbol[_0xaf1d97(0xe0)]];if(_0x4833ea!==void 0x0){var _0x71b408=_0x4833ea[_0xaf1d97(0xca)](_0x4fc191,_0x19c761||'default');if(r(_0x71b408)!=_0xaf1d97(0xbf))return _0x71b408;throw TypeError(_0xaf1d97(0xd8));}return(_0x19c761===_0xaf1d97(0xe2)?String:Number)(_0x4fc191);}function a(_0xa79dd2){const _0x10b0f4=_0x4965;var _0x3216a9=i(_0xa79dd2,'string');return r(_0x3216a9)==_0x10b0f4(0xde)?_0x3216a9:_0x3216a9+'';}function o(_0x4d37ed,_0x5ba36d,_0x3d3335){return(_0x5ba36d=a(_0x5ba36d))in _0x4d37ed?Object['defineProperty'](_0x4d37ed,_0x5ba36d,{'value':_0x3d3335,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d37ed[_0x5ba36d]=_0x3d3335,_0x4d37ed;}var s=class extends n[_0x3f36eb(0xb9)]{constructor(..._0x3a00ad){const _0x230aa3=_0x3f36eb;super(..._0x3a00ad),o(this,_0x230aa3(0xbe),void 0x0);}[_0x3f36eb(0xbb)](_0x543aa2){const _0x3ba084=_0x3f36eb;this['_liveShareController']=_0x543aa2[_0x3ba084(0xc2)](e[_0x3ba084(0xba)]);}['getLiveShareStatus'](){const _0x3d6c41=_0x3f36eb;var _0x4922f7;let _0x569407=this['_injector']['get'](t[_0x3d6c41(0xd3)])[_0x3d6c41(0xbc)](t[_0x3d6c41(0xc9)]['UNIVER_SHEET']);if(!_0x569407)throw Error(_0x3d6c41(0xcd));let _0x485c23=_0x569407[_0x3d6c41(0xd4)](),_0x56d42f=this[_0x3d6c41(0xbe)]['getLiveShareCoordinatorSync'](_0x485c23);return(_0x4922f7=_0x56d42f==null?void 0x0:_0x56d42f[_0x3d6c41(0xdc)]())==null?e[_0x3d6c41(0xc1)][_0x3d6c41(0xc4)]:_0x4922f7;}[_0x3f36eb(0xdf)](){const _0x1ef158=_0x3f36eb;let _0x4da2d1=this[_0x1ef158(0xe1)][_0x1ef158(0xc2)](t[_0x1ef158(0xd3)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x1ef158(0xda)]);if(!_0x4da2d1)throw Error(_0x1ef158(0xcd));let _0x8b8f2e=_0x4da2d1[_0x1ef158(0xd4)](),_0x3dac73=this[_0x1ef158(0xbe)][_0x1ef158(0xcb)](_0x8b8f2e);if(!_0x3dac73)throw Error(_0x1ef158(0xc0));_0x3dac73['startFollowing']();}[_0x3f36eb(0xcc)](){const _0xd116af=_0x3f36eb;let _0x23941c=this[_0xd116af(0xe1)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t[_0xd116af(0xc9)]['UNIVER_SHEET']);if(!_0x23941c)throw Error(_0xd116af(0xcd));let _0x21166d=_0x23941c[_0xd116af(0xd4)](),_0x5e9370=this[_0xd116af(0xbe)][_0xd116af(0xcb)](_0x21166d);if(!_0x5e9370)throw Error(_0xd116af(0xc0));_0x5e9370[_0xd116af(0xcc)]();}['startPresenting'](){const _0x4a59a3=_0x3f36eb;let _0x28ca24=this[_0x4a59a3(0xe1)][_0x4a59a3(0xc2)](t[_0x4a59a3(0xd3)])[_0x4a59a3(0xbc)](t[_0x4a59a3(0xc9)][_0x4a59a3(0xda)]);if(!_0x28ca24)throw Error('No\x20active\x20workbook\x20found.');let _0x1e5637=_0x28ca24[_0x4a59a3(0xd4)](),_0x55c782=this['_liveShareController'][_0x4a59a3(0xcb)](_0x1e5637);if(!_0x55c782)throw Error(_0x4a59a3(0xc0));_0x55c782['tryStartPresenting']();}['stopPresenting'](){const _0x40e5ae=_0x3f36eb;let _0x300472=this['_injector']['get'](t[_0x40e5ae(0xd3)])[_0x40e5ae(0xbc)](t[_0x40e5ae(0xc9)][_0x40e5ae(0xda)]);if(!_0x300472)throw Error(_0x40e5ae(0xcd));let _0x2ffe28=_0x300472[_0x40e5ae(0xd4)](),_0x5aeaf9=this[_0x40e5ae(0xbe)]['getLiveShareCoordinatorSync'](_0x2ffe28);if(!_0x5aeaf9)throw Error(_0x40e5ae(0xc0));_0x5aeaf9[_0x40e5ae(0xce)]();}};n[_0x3f36eb(0xb9)][_0x3f36eb(0xdb)](s);var c=class extends n[_0x3f36eb(0xb8)]{get['LiveShareStatusEnum'](){const _0x5d378f=_0x3f36eb;return e[_0x5d378f(0xc1)];}};function _0x4965(_0x32e122,_0x5ba9f5){_0x32e122=_0x32e122-0xb8;const _0x25a5e8=_0x25a5();let _0x496570=_0x25a5e8[_0x32e122];return _0x496570;}n[_0x3f36eb(0xb8)][_0x3f36eb(0xdb)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4acaa3=_0x5b02;(function(_0x120672,_0x2fa7f8){const _0x4b33f3=_0x5b02,_0x5cc22f=_0x120672();while(!![]){try{const _0x427277=parseInt(_0x4b33f3(0x1e5))/0x1*(-parseInt(_0x4b33f3(0x266))/0x2)+parseInt(_0x4b33f3(0x234))/0x3+-parseInt(_0x4b33f3(0x22d))/0x4*(parseInt(_0x4b33f3(0x1e2))/0x5)+parseInt(_0x4b33f3(0x28d))/0x6+parseInt(_0x4b33f3(0x1d8))/0x7*(parseInt(_0x4b33f3(0x293))/0x8)+parseInt(_0x4b33f3(0x211))/0x9+-parseInt(_0x4b33f3(0x273))/0xa*(parseInt(_0x4b33f3(0x209))/0xb);if(_0x427277===_0x2fa7f8)break;else _0x5cc22f['push'](_0x5cc22f['shift']());}catch(_0x11bcf6){_0x5cc22f['push'](_0x5cc22f['shift']());}}}(_0x3643,0x19999),Object[_0x4acaa3(0x1e7)](exports,Symbol[_0x4acaa3(0x229)],{'value':_0x4acaa3(0x22b)}));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(_0x4b5305){'@babel/helpers - typeof';const _0x2e96b2=_0x4acaa3;return f=typeof Symbol=='function'&&typeof Symbol[_0x2e96b2(0x201)]==_0x2e96b2(0x21c)?function(_0x81aa1c){return typeof _0x81aa1c;}:function(_0x3a34a5){const _0x204e84=_0x2e96b2;return _0x3a34a5&&typeof Symbol==_0x204e84(0x204)&&_0x3a34a5['constructor']===Symbol&&_0x3a34a5!==Symbol[_0x204e84(0x256)]?_0x204e84(0x21c):typeof _0x3a34a5;},f(_0x4b5305);}function p(_0x42efe8,_0x56dc0a){const _0x16c897=_0x4acaa3;if(f(_0x42efe8)!=_0x16c897(0x271)||!_0x42efe8)return _0x42efe8;var _0x352573=_0x42efe8[Symbol[_0x16c897(0x270)]];if(_0x352573!==void 0x0){var _0x330261=_0x352573[_0x16c897(0x1f8)](_0x42efe8,_0x56dc0a||'default');if(f(_0x330261)!=_0x16c897(0x271))return _0x330261;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x56dc0a===_0x16c897(0x216)?String:Number)(_0x42efe8);}function m(_0x3ef79f){const _0xa770b8=_0x4acaa3;var _0x2c5b8a=p(_0x3ef79f,_0xa770b8(0x216));return f(_0x2c5b8a)==_0xa770b8(0x21c)?_0x2c5b8a:_0x2c5b8a+'';}function h(_0x30edcb,_0x466013,_0x10708b){const _0x3f802f=_0x4acaa3;return(_0x466013=m(_0x466013))in _0x30edcb?Object[_0x3f802f(0x1e7)](_0x30edcb,_0x466013,{'value':_0x10708b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30edcb[_0x466013]=_0x10708b,_0x30edcb;}var g=class extends e[_0x4acaa3(0x239)]{constructor(..._0x2524d4){const _0x3bc63b=_0x4acaa3;super(..._0x2524d4),h(this,_0x3bc63b(0x20b),new Set()),h(this,_0x3bc63b(0x29f),new Set());}[_0x4acaa3(0x23a)](_0x4dfffd){const _0x14033d=_0x4acaa3;return this['_sharedOperations'][_0x14033d(0x29c)](_0x4dfffd),(0x0,e['toDisposable'])(()=>this[_0x14033d(0x20b)]['delete'](_0x4dfffd));}[_0x4acaa3(0x238)](_0x33a03a){const _0x46c887=_0x4acaa3;return this[_0x46c887(0x29f)][_0x46c887(0x29c)](_0x33a03a),(0x0,e[_0x46c887(0x1f5)])(()=>this[_0x46c887(0x29f)][_0x46c887(0x230)](_0x33a03a));}[_0x4acaa3(0x217)](_0x3de22c){const _0x204496=_0x4acaa3;return this[_0x204496(0x20b)][_0x204496(0x235)](_0x3de22c);}[_0x4acaa3(0x23f)](_0x375f60){const _0x4953dd=_0x4acaa3;return Array['from'](this[_0x4953dd(0x29f)])[_0x4953dd(0x1fd)](_0x19bf7b=>_0x19bf7b(_0x375f60));}};function _(_0x5b0a4f,_0x469069){return function(_0x515d13,_0x26425d){_0x469069(_0x515d13,_0x26425d,_0x5b0a4f);};}function v(_0x5b610a,_0x2d6387,_0x13f019,_0x472ebf){const _0x14c5e1=_0x4acaa3;var _0x2b8f9d=arguments[_0x14c5e1(0x1db)],_0x5e0518=_0x2b8f9d<0x3?_0x2d6387:_0x472ebf===null?_0x472ebf=Object[_0x14c5e1(0x263)](_0x2d6387,_0x13f019):_0x472ebf,_0x405157;if(typeof Reflect=='object'&&typeof Reflect[_0x14c5e1(0x268)]==_0x14c5e1(0x204))_0x5e0518=Reflect[_0x14c5e1(0x268)](_0x5b610a,_0x2d6387,_0x13f019,_0x472ebf);else{for(var _0x51f661=_0x5b610a[_0x14c5e1(0x1db)]-0x1;_0x51f661>=0x0;_0x51f661--)(_0x405157=_0x5b610a[_0x51f661])&&(_0x5e0518=(_0x2b8f9d<0x3?_0x405157(_0x5e0518):_0x2b8f9d>0x3?_0x405157(_0x2d6387,_0x13f019,_0x5e0518):_0x405157(_0x2d6387,_0x13f019))||_0x5e0518);}return _0x2b8f9d>0x3&&_0x5e0518&&Object[_0x14c5e1(0x1e7)](_0x2d6387,_0x13f019,_0x5e0518),_0x5e0518;}let y=class extends e['RxDisposable']{constructor(_0x1ec186,_0x4029ef,_0x4746f5){const _0x84d29d=_0x4acaa3;super(),this[_0x84d29d(0x265)]=_0x1ec186,this[_0x84d29d(0x27e)]=_0x4029ef,this[_0x84d29d(0x26b)]=_0x4746f5,h(this,'_entities',new Map()),this[_0x84d29d(0x24a)]();}async['getLiveShareCoordinator'](_0x9297bd){const _0x5079d0=_0x4acaa3;return this[_0x5079d0(0x21b)][_0x5079d0(0x235)](_0x9297bd)||await this['_startLiveShareCoordinator'](_0x9297bd),this[_0x5079d0(0x21b)][_0x5079d0(0x22a)](_0x9297bd);}[_0x4acaa3(0x25d)](_0x40da64){const _0x380f59=_0x4acaa3;var _0x25cd81;return(_0x25cd81=this[_0x380f59(0x21b)][_0x380f59(0x22a)](_0x40da64))==null?null:_0x25cd81;}['_init'](){const _0x4a3dcc=_0x4acaa3;this['_univerInstanceService'][_0x4a3dcc(0x1e0)](e[_0x4a3dcc(0x20d)][_0x4a3dcc(0x1ff)])['pipe']((0x0,l[_0x4a3dcc(0x299)])(this[_0x4a3dcc(0x240)]))[_0x4a3dcc(0x20f)](async _0x23cf0f=>{const _0x24ee8f=_0x4a3dcc;let _0x57f37b=_0x23cf0f[_0x24ee8f(0x202)]['getUnitId']();this[_0x24ee8f(0x21b)][_0x24ee8f(0x235)](_0x57f37b)||this['_startLiveShareCoordinator'](_0x57f37b);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](e[_0x4a3dcc(0x20d)]['UNIVER_SHEET'])[_0x4a3dcc(0x277)]((0x0,l[_0x4a3dcc(0x299)])(this[_0x4a3dcc(0x240)]))['subscribe'](_0x306967=>{const _0x105a74=_0x4a3dcc;let _0x4fb7fb=_0x306967[_0x105a74(0x24f)](),_0x451546=this[_0x105a74(0x21b)][_0x105a74(0x22a)](_0x4fb7fb);_0x451546==null||_0x451546[_0x105a74(0x280)]();});}async[_0x4acaa3(0x26e)](_0x5912d9){const _0x22ef98=_0x4acaa3;let _0x3544af=await this[_0x22ef98(0x26b)]['requireSession'](_0x5912d9),_0x5388f8=this[_0x22ef98(0x27e)][_0x22ef98(0x28e)](x,_0x5912d9,_0x3544af);return _0x5388f8['init'](),this['_entities'][_0x22ef98(0x246)](_0x5912d9,_0x5388f8),_0x5388f8;}};y=v([_(0x0,e[_0x4acaa3(0x27f)]),_(0x1,(0x0,e['Inject'])(e[_0x4acaa3(0x215)])),_(0x2,(0x0,e[_0x4acaa3(0x1ec)])(o[_0x4acaa3(0x24c)]))],y);let b=function(_0x2c45eb){const _0x522cb6=_0x4acaa3;return _0x2c45eb[_0x522cb6(0x286)]=_0x522cb6(0x1ea),_0x2c45eb[_0x522cb6(0x244)]=_0x522cb6(0x1fb),_0x2c45eb[_0x522cb6(0x1e1)]=_0x522cb6(0x1f9),_0x2c45eb[_0x522cb6(0x243)]=_0x522cb6(0x21d),_0x2c45eb[_0x522cb6(0x1f0)]=_0x522cb6(0x287),_0x2c45eb;}({}),x=class extends e[_0x4acaa3(0x255)]{get[_0x4acaa3(0x298)](){const _0x8d9abf=_0x4acaa3;return this[_0x8d9abf(0x1da)][_0x8d9abf(0x282)]();}constructor(_0x53212d,_0x1753d7,_0x220fc7,_0xb8d36a,_0x3893ce){const _0x193446=_0x4acaa3;super(),this['_unitID']=_0x53212d,this[_0x193446(0x222)]=_0x1753d7,this[_0x193446(0x21a)]=_0x220fc7,this[_0x193446(0x259)]=_0xb8d36a,this[_0x193446(0x22e)]=_0x3893ce,h(this,_0x193446(0x1da),new c[(_0x193446(0x214))]('idle')),h(this,_0x193446(0x249),this['_status$'][_0x193446(0x250)]()),h(this,_0x193446(0x24a),!0x1),h(this,_0x193446(0x226),null),h(this,'_presenter',null);}[_0x4acaa3(0x280)](){const _0x2d1771=_0x4acaa3;var _0x59e400;(_0x59e400=this['_commandDisposable'])==null||_0x59e400[_0x2d1771(0x280)](),this[_0x2d1771(0x1da)][_0x2d1771(0x28a)]('idle'),this['_status$'][_0x2d1771(0x281)]();}[_0x4acaa3(0x23d)](){const _0x4eced2=_0x4acaa3;return this[_0x4eced2(0x298)];}[_0x4acaa3(0x225)](){const _0x2630fd=_0x4acaa3;this['_init']||(this[_0x2630fd(0x24a)]=!0x0,this[_0x2630fd(0x222)][_0x2630fd(0x20c)][_0x2630fd(0x277)]((0x0,l[_0x2630fd(0x299)])(this[_0x2630fd(0x240)]))[_0x2630fd(0x20f)](_0x1f2f87=>{const _0x42a9a6=_0x2630fd;switch(_0x1f2f87){case o[_0x42a9a6(0x27a)][_0x42a9a6(0x286)]:this['_handleOffline']();break;case o[_0x42a9a6(0x27a)][_0x42a9a6(0x26a)]:this[_0x42a9a6(0x24b)]();break;default:}}),this[_0x2630fd(0x222)][_0x2630fd(0x23e)]['pipe']((0x0,l[_0x2630fd(0x299)])(this[_0x2630fd(0x240)]))[_0x2630fd(0x20f)](_0x106fd6=>{const _0x15fa9f=_0x2630fd;let {eventID:_0x1339bf}=_0x106fd6;switch(_0x1339bf){case a[_0x15fa9f(0x278)][_0x15fa9f(0x26c)]:this[_0x15fa9f(0x207)](_0x106fd6);break;case a[_0x15fa9f(0x278)][_0x15fa9f(0x237)]:this[_0x15fa9f(0x267)](_0x106fd6);break;case a[_0x15fa9f(0x278)]['LIVESHARE_TERMINATE']:this[_0x15fa9f(0x1fe)]();break;case a[_0x15fa9f(0x278)][_0x15fa9f(0x247)]:this[_0x15fa9f(0x251)](_0x106fd6);break;default:}}));}['tryStartPresenting'](){const _0x101315=_0x4acaa3;this[_0x101315(0x222)][_0x101315(0x1e9)]({'eventID':a[_0x101315(0x278)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x101315(0x269)],'userID':this[_0x101315(0x222)][_0x101315(0x1f7)]()}},this[_0x101315(0x269)]);}[_0x4acaa3(0x1ef)](){const _0xfa9dac=_0x4acaa3;this['_status']===_0xfa9dac(0x287)&&(this['_status$'][_0xfa9dac(0x28a)](_0xfa9dac(0x1fb)),this[_0xfa9dac(0x222)]['send']({'eventID':a['CollaborationEvent'][_0xfa9dac(0x252)],'data':{'unitID':this[_0xfa9dac(0x269)]}},this[_0xfa9dac(0x269)]));}[_0x4acaa3(0x1e3)](){const _0x3b1a9c=_0x4acaa3;this[_0x3b1a9c(0x298)]==='not-following'&&(this['_status$']['next'](_0x3b1a9c(0x1f9)),this[_0x3b1a9c(0x28f)]());}[_0x4acaa3(0x1dd)](){const _0x496610=_0x4acaa3;this[_0x496610(0x298)]===_0x496610(0x1f9)&&this[_0x496610(0x1f6)]();}[_0x4acaa3(0x207)](_0x20a70c){const _0xfc54d7=_0x4acaa3;let {presenter:_0x102316}=_0x20a70c[_0xfc54d7(0x22f)],_0x46cbad=this[_0xfc54d7(0x222)]['getMemberID']();this['_presenter']=_0x102316,_0x102316===_0x46cbad?(this[_0xfc54d7(0x1f6)](),this[_0xfc54d7(0x220)]()):this['_status']!=='not-following'&&(this[_0xfc54d7(0x212)](),this[_0xfc54d7(0x28f)]());}[_0x4acaa3(0x203)](){const _0x44d071=_0x4acaa3;let _0x3cb6d8={'eventID':a[_0x44d071(0x278)][_0x44d071(0x200)]};this[_0x44d071(0x222)][_0x44d071(0x1e9)](_0x3cb6d8,this[_0x44d071(0x269)]);}[_0x4acaa3(0x1fe)](){const _0x39b9f1=_0x4acaa3;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x39b9f1(0x227)]();}['_handleNewChangeSets'](_0x4b73e2){const _0x5341b9=_0x4acaa3;if(this[_0x5341b9(0x298)]==='following'&&this[_0x5341b9(0x21e)]===_0x4b73e2['data'][_0x5341b9(0x253)]){let _0x205ea9=(0x0,a[_0x5341b9(0x208)])(_0x4b73e2['data'])[_0x5341b9(0x1d9)][_0x5341b9(0x228)]()[_0x5341b9(0x260)](_0xbf3d4b=>_0xbf3d4b['id']===s[_0x5341b9(0x1dc)]['id']);if(_0x205ea9){let _0x23917c=_0x205ea9['params']['unitId'],_0x27c8b4=_0x205ea9[_0x5341b9(0x1ed)][_0x5341b9(0x213)]['id'];setTimeout(()=>{const _0x351654=_0x5341b9;this[_0x351654(0x22e)][_0x351654(0x22c)](s['SetWorksheetActiveOperation']['id'],{'unitId':_0x23917c,'subUnitId':_0x27c8b4},{'fromCollab':!0x0});});}}}[_0x4acaa3(0x220)](){const _0xbe7972=_0x4acaa3;var _0x4435ca;(_0x4435ca=this[_0xbe7972(0x226)])==null||_0x4435ca[_0xbe7972(0x280)](),this[_0xbe7972(0x1da)][_0xbe7972(0x28a)](_0xbe7972(0x287));let _0x14e01f=new Map(),_0xa6319e=this['_commandDisposable']=new e[(_0xbe7972(0x231))]();_0xa6319e[_0xbe7972(0x29c)]((0x0,e[_0xbe7972(0x1f5)])(()=>{const _0x167c80=_0xbe7972;_0x14e01f[_0x167c80(0x205)](({subject:_0x3139f2,subscription:_0x323c94})=>{const _0x24e3a3=_0x167c80;_0x323c94[_0x24e3a3(0x25b)](),_0x3139f2[_0x24e3a3(0x281)]();}),_0x14e01f['clear']();})),_0xa6319e[_0xbe7972(0x29c)](this[_0xbe7972(0x22e)][_0xbe7972(0x25f)](_0xa44d94=>{const _0x101836=_0xbe7972;if(_0xa44d94[_0x101836(0x276)]!==e['CommandType'][_0x101836(0x29e)]||!this['_liveShareService'][_0x101836(0x217)](_0xa44d94['id']))return;let {id:_0x6aaffb}=_0xa44d94,_0x43d25c;if(_0x14e01f[_0x101836(0x235)](_0x6aaffb))_0x43d25c=_0x14e01f['get'](_0x6aaffb)[_0x101836(0x26f)];else{var _0x2a1a60;_0x43d25c=new c[(_0x101836(0x275))]();let _0x22b2bf=_0x43d25c[_0x101836(0x277)]((0x0,l[_0x101836(0x1de)])((_0x2a1a60=this[_0x101836(0x21a)][_0x101836(0x262)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a1a60,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x101836(0x20f)](_0x3a507a=>{const _0x10febb=_0x101836;this[_0x10febb(0x222)]['send']({'eventID':a['CollaborationEvent'][_0x10febb(0x237)],'data':{'unitID':this[_0x10febb(0x269)],'operations':{[_0x3a507a['id']]:{'id':_0x3a507a['id'],'params':JSON[_0x10febb(0x24d)](_0x3a507a[_0x10febb(0x1ed)])}}}},this[_0x10febb(0x269)]);});_0x14e01f[_0x101836(0x246)](_0x6aaffb,{'subject':_0x43d25c,'subscription':_0x22b2bf});}_0x43d25c[_0x101836(0x28a)](_0xa44d94);})),this[_0xbe7972(0x259)][_0xbe7972(0x23f)](this[_0xbe7972(0x269)])['forEach'](_0x323432=>this[_0xbe7972(0x222)]['send']({'eventID':a['CollaborationEvent'][_0xbe7972(0x237)],'data':{'unitID':this['_unitID'],'operations':{[_0x323432['id']]:{'id':_0x323432['id'],'params':JSON[_0xbe7972(0x24d)](_0x323432['params'])}}}},this['_unitID']));}[_0x4acaa3(0x212)](){const _0x495720=_0x4acaa3;var _0x419aba;this[_0x495720(0x1da)][_0x495720(0x28a)](_0x495720(0x1fb)),(_0x419aba=this[_0x495720(0x226)])==null||_0x419aba[_0x495720(0x280)](),this[_0x495720(0x226)]=null;}[_0x4acaa3(0x28f)](){const _0x5128cc=_0x4acaa3;var _0x5a1922;(_0x5a1922=this['_commandDisposable'])==null||_0x5a1922[_0x5128cc(0x280)](),this['_status$'][_0x5128cc(0x28a)](_0x5128cc(0x1f9));}[_0x4acaa3(0x227)](){const _0x1cc1e8=_0x4acaa3;var _0x17eef7;this[_0x1cc1e8(0x1da)][_0x1cc1e8(0x28a)](_0x1cc1e8(0x1fb)),(_0x17eef7=this[_0x1cc1e8(0x226)])==null||_0x17eef7[_0x1cc1e8(0x280)](),this['_commandDisposable']=null;}[_0x4acaa3(0x1f6)](){const _0x1f3a5d=_0x4acaa3;var _0x339ab7;this[_0x1f3a5d(0x1da)]['next'](_0x1f3a5d(0x21d)),(_0x339ab7=this['_commandDisposable'])==null||_0x339ab7[_0x1f3a5d(0x280)]();}['_handleOperation'](_0x462c80){const _0x553d6c=_0x4acaa3;if([_0x553d6c(0x287),_0x553d6c(0x21d),_0x553d6c(0x1ea)][_0x553d6c(0x291)](this['_status'])||!_0x462c80[_0x553d6c(0x22f)][_0x553d6c(0x27c)]||_0x462c80[_0x553d6c(0x22f)][_0x553d6c(0x27c)]===this['_collabSession'][_0x553d6c(0x1f7)]())return;this[_0x553d6c(0x298)]===_0x553d6c(0x1fb)&&this[_0x553d6c(0x28f)]();let _0x24f0ec=_0x462c80['data'][_0x553d6c(0x2a0)];Object[_0x553d6c(0x245)](_0x24f0ec)[_0x553d6c(0x205)](_0x331561=>{const _0x34645d=_0x553d6c;this[_0x34645d(0x22e)][_0x34645d(0x22c)](_0x331561['id'],_0x331561[_0x34645d(0x1ed)]?JSON[_0x34645d(0x1f3)](_0x331561['params']):null,{'fromCollab':!0x0});});}[_0x4acaa3(0x1fc)](){const _0x15b5ca=_0x4acaa3;var _0x569659;this['_status$'][_0x15b5ca(0x28a)](_0x15b5ca(0x1ea)),(_0x569659=this[_0x15b5ca(0x226)])==null||_0x569659[_0x15b5ca(0x280)]();}['_handleOnline'](){const _0xe8aaaa=_0x4acaa3;this['_status$'][_0xe8aaaa(0x28a)](_0xe8aaaa(0x1fb)),this[_0xe8aaaa(0x203)]();}};x=v([_(0x2,e[_0x4acaa3(0x274)]),_(0x3,(0x0,e[_0x4acaa3(0x1ec)])(g)),_(0x4,e[_0x4acaa3(0x297)])],x);function S(){const _0x4d0a2b=_0x4acaa3;let _0x5dc89f=(0x0,t['useDependency'])(y),_0x479d0d=(0x0,t[_0x4d0a2b(0x28b)])(e[_0x4d0a2b(0x27f)]),_0x39843f=(0x0,t[_0x4d0a2b(0x27d)])(()=>_0x479d0d[_0x4d0a2b(0x23c)](e[_0x4d0a2b(0x20d)][_0x4d0a2b(0x1ff)]),void 0x0,!0x1,[]),[_0x2d6999,_0x20c610]=(0x0,i['useState'])(null),[_0x101bd4,_0x4de317]=(0x0,i[_0x4d0a2b(0x25a)])(_0x4d0a2b(0x1fb)),_0x1143d1=(0x0,i[_0x4d0a2b(0x233)])(null);return(0x0,i['useEffect'])(()=>(_0x39843f&&_0x5dc89f[_0x4d0a2b(0x257)](_0x39843f['getUnitId']())[_0x4d0a2b(0x29b)](_0xcf86af=>{const _0x5b3bdb=_0x4d0a2b;_0x20c610(_0xcf86af),_0x1143d1['current']=_0xcf86af[_0x5b3bdb(0x249)][_0x5b3bdb(0x20f)](_0x3a4676=>{_0x4de317(_0x3a4676);});}),()=>{const _0xef44e5=_0x4d0a2b;var _0x13c9bd;(_0x13c9bd=_0x1143d1[_0xef44e5(0x210)])==null||_0x13c9bd[_0xef44e5(0x25b)](),_0x1143d1[_0xef44e5(0x210)]=null;}),[_0x39843f,_0x5dc89f]),_0x2d6999?(0x0,u['jsx'])(n[_0x4d0a2b(0x219)],{'align':_0x4d0a2b(0x27b),'disabled':_0x101bd4==='offline','className':_0x4d0a2b(0x29d),'overlay':(0x0,u['jsx'])(C,{'status':_0x101bd4,'coordinator':_0x2d6999}),'children':(0x0,u[_0x4d0a2b(0x248)])(_0x4d0a2b(0x25e),{'className':(0x0,n[_0x4d0a2b(0x289)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x101bd4===_0x4d0a2b(0x1ea),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x101bd4!==_0x4d0a2b(0x1ea)}),'type':'button','children':(0x0,u[_0x4d0a2b(0x248)])(r['LiveShareIcon'],{'className':_0x4d0a2b(0x241)})})}):null;}function C(_0x33c229){const _0x18b969=_0x4acaa3;let {status:_0x53f376,coordinator:_0x17466e}=_0x33c229;switch(_0x53f376){case _0x18b969(0x1fb):return(0x0,u[_0x18b969(0x248)])(w,{'coordinator':_0x17466e});case'following':return(0x0,u[_0x18b969(0x248)])(T,{'coordinator':_0x17466e});case _0x18b969(0x21d):return(0x0,u[_0x18b969(0x248)])(E,{'coordinator':_0x17466e});case'offline':return(0x0,u['jsx'])(O,{});case _0x18b969(0x287):return(0x0,u[_0x18b969(0x248)])(D,{'coordinator':_0x17466e});default:return null;}}function w(_0x5e8da6){const _0x2f9877=_0x4acaa3;let {coordinator:_0x57714f}=_0x5e8da6;return(0x0,u[_0x2f9877(0x254)])(u[_0x2f9877(0x1eb)],{'children':[(0x0,u[_0x2f9877(0x248)])(_0x2f9877(0x283),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f9877(0x224)}),(0x0,u[_0x2f9877(0x248)])(n[_0x2f9877(0x1e6)],{'onClick':()=>_0x57714f[_0x2f9877(0x1ee)](),'children':'Start'})]});}function T(_0x2b9156){const _0x5ce81a=_0x4acaa3;let {coordinator:_0x11749e}=_0x2b9156;return(0x0,u['jsxs'])(u[_0x5ce81a(0x1eb)],{'children':[(0x0,u[_0x5ce81a(0x248)])('div',{'className':_0x5ce81a(0x288),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x5ce81a(0x248)])(n[_0x5ce81a(0x1e6)],{'onClick':()=>_0x11749e[_0x5ce81a(0x1dd)](),'children':_0x5ce81a(0x28c)})]});}function E(_0x4c4f2f){const _0x5501d6=_0x4acaa3;let {coordinator:_0x44cd2a}=_0x4c4f2f;return(0x0,u[_0x5501d6(0x254)])(u[_0x5501d6(0x1eb)],{'children':[(0x0,u['jsx'])(_0x5501d6(0x283),{'className':_0x5501d6(0x288),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x5501d6(0x248)])(n[_0x5501d6(0x1e6)],{'variant':_0x5501d6(0x29a),'onClick':()=>_0x44cd2a['startFollowing'](),'children':_0x5501d6(0x24e)})]});}function D(_0x3b470b){const _0x4798e7=_0x4acaa3;let {coordinator:_0x154ed9}=_0x3b470b;return(0x0,u[_0x4798e7(0x254)])(u[_0x4798e7(0x1eb)],{'children':[(0x0,u[_0x4798e7(0x248)])(_0x4798e7(0x283),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u['jsx'])(n['Button'],{'variant':_0x4798e7(0x25c),'onClick':()=>_0x154ed9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function O(){const _0x4bd962=_0x4acaa3;return(0x0,u['jsx'])(u[_0x4bd962(0x1eb)],{'children':_0x4bd962(0x20a)});}let k=class extends e[_0x4acaa3(0x239)]{constructor(_0x54e0f3,_0x242333){const _0x5b8a38=_0x4acaa3;super(),this[_0x5b8a38(0x27e)]=_0x54e0f3,this[_0x5b8a38(0x21f)]=_0x242333,this[_0x5b8a38(0x232)]();}[_0x4acaa3(0x232)](){const _0x1aa8cd=_0x4acaa3;this[_0x1aa8cd(0x1df)](this[_0x1aa8cd(0x21f)][_0x1aa8cd(0x1f4)](t[_0x1aa8cd(0x20e)][_0x1aa8cd(0x279)],()=>(0x0,t[_0x1aa8cd(0x295)])(S,this[_0x1aa8cd(0x27e)])));}};k=v([_(0x0,(0x0,e[_0x4acaa3(0x1ec)])(e[_0x4acaa3(0x215)])),_(0x1,t[_0x4acaa3(0x1e4)])],k);function _0x5b02(_0x4907e6,_0x88bb96){_0x4907e6=_0x4907e6-0x1d8;const _0x3643e9=_0x3643();let _0x5b02c2=_0x3643e9[_0x4907e6];return _0x5b02c2;}var A=_0x4acaa3(0x26d),j=_0x4acaa3(0x264);const M={};let N=class extends e[_0x4acaa3(0x239)]{constructor(_0x2bd133){const _0xc9de70=_0x4acaa3;super(),this[_0xc9de70(0x259)]=_0x2bd133,this['_init']();}[_0x4acaa3(0x24a)](){const _0x17c658=_0x4acaa3;[d[_0x17c658(0x296)]['id'],d[_0x17c658(0x284)]['id'],s[_0x17c658(0x1fa)]['id']][_0x17c658(0x205)](_0x317fb7=>{const _0x39e163=_0x17c658;this[_0x39e163(0x1df)](this['_liveShareService'][_0x39e163(0x23a)](_0x317fb7));});}};function _0x3643(){const _0x1eb325=['Subject','type','pipe','CollaborationEvent','HEADER_MENU','SessionStatus','end','presenter','useObservable','_injector','IUniverInstanceService','dispose','complete','getValue','div','SetScrollOperation','_config','OFFLINE','presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','clsx','next','useDependency','Stop\x20following','977118rZuCHU','createInstance','_startFollowing','LiveShareStatus','includes','pluginName','8xVpHny','touchDependencies','connectInjector','SetZoomRatioOperation','ICommandService','_status','takeUntil','text','then','add','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','OPERATION','_reporters','operations','551831PRKgyw','mutations','_status$','length','InsertSheetMutation','stopFollowing','throttleTime','disposeWithMe','getTypeOfUnitAdded$','FOLLOWING','15dFvrbI','startFollowing','IUIPartsService','34ApzWBe','Button','defineProperty','mergeOverrideWithDependencies','send','offline','Fragment','Inject','params','tryStartPresenting','stopPresenting','PRESENTING','LiveShareCoordinator','registerDependencies','parse','registerComponent','toDisposable','_stopFollowing','getMemberID','call','following','SetWorksheetActiveOperation','idle','_handleOffline','map','_handleTerminate','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','iterator','unit','_fetchOperations','function','forEach','live-share.config','_handleNewHost','parseProtocolChangeset','11WoRBgS','You\x27are\x20offline.','_sharedOperations','sessionStatus$','UniverInstanceType','BuiltInUIPart','subscribe','current','947223pJMSyd','_stopPresenting','sheet','BehaviorSubject','Injector','string','shouldShareOperation','merge','Dropdown','_configService','_entities','symbol','not-following','_presenter','_uiPartsService','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','_collabSession','DesktopLiveShareController','Present\x20this\x20document','init','_commandDisposable','_beIdle','reverse','toStringTag','get','Module','executeCommand','196796pCCftN','_commandService','data','delete','DisposableCollection','_mountLiveShare','useRef','32337qXuwim','has','UniverLiveSharePlugin','LIVESHARE_OPERATION','registerInitialStateReporter','Disposable','registerSharedOperation','LiveShareService','getCurrentTypeOfUnit$','getStatus','event$','getInitialStates','dispose$','univer-size-4','LiveShareController','NOT_FOLLOWING','IDLE','values','set','NEW_CHANGESETS','jsx','status$','_init','_handleOnline','CollaborationSessionService','stringify','Start\x20following','getUnitId','asObservable','_handleNewChangeSets','LIVESHARE_TERMINATE','memberID','jsxs','RxDisposable','prototype','getLiveShareCoordinator','LiveShare','_liveShareService','useState','unsubscribe','default','getLiveShareCoordinatorSync','button','onCommandExecuted','find','UniverCollaborationClientPlugin','getConfig','getOwnPropertyDescriptor','0.25.0','_univerInstanceService','1506aHwFax','_handleOperation','decorate','_unitID','ONLINE','_collabSessionService','LIVESHARE_NEW_HOST','@univerjs-pro/live-share','_startLiveShareCoordinator','subject','toPrimitive','object','packageName','796560Engxff','IConfigService'];_0x3643=function(){return _0x1eb325;};return _0x3643();}N=v([_(0x0,(0x0,e[_0x4acaa3(0x1ec)])(g))],N);let P=class extends e['Plugin']{constructor(_0x23f7a4=M,_0x1236d2,_0x4de6e6){const _0x4391e1=_0x4acaa3;super(),this[_0x4391e1(0x285)]=_0x23f7a4,this[_0x4391e1(0x27e)]=_0x1236d2,this['_configService']=_0x4de6e6;let {..._0x517457}=(0x0,e[_0x4391e1(0x218)])({},M,this[_0x4391e1(0x285)]);this[_0x4391e1(0x21a)]['setConfig'](_0x4391e1(0x206),_0x517457);}['onStarting'](){const _0x4754e4=_0x4acaa3;(0x0,e[_0x4754e4(0x1f2)])(this['_injector'],(0x0,e[_0x4754e4(0x1e8)])([[g],[y],[N],[k]],this['_config']['override'])),(0x0,e[_0x4754e4(0x294)])(this[_0x4754e4(0x27e)],[[N]]);}['onRendered'](){const _0x369608=_0x4acaa3;(0x0,e[_0x369608(0x294)])(this[_0x369608(0x27e)],[[k]]);}};h(P,_0x4acaa3(0x276),e['UniverInstanceType']['UNIVER_UNKNOWN']),h(P,_0x4acaa3(0x292),_0x4acaa3(0x221)),h(P,_0x4acaa3(0x272),A),h(P,'version',j),P=v([(0x0,e['DependentOn'])(o[_0x4acaa3(0x261)]),_(0x1,(0x0,e['Inject'])(e[_0x4acaa3(0x215)])),_(0x2,e[_0x4acaa3(0x274)])],P),Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x223),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4acaa3(0x258)]=S,Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x242),{'enumerable':!0x0,'get':function(){return y;}}),Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x1f1),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x4acaa3(0x23b)]=g,exports[_0x4acaa3(0x290)]=b,Object[_0x4acaa3(0x1e7)](exports,_0x4acaa3(0x236),{'enumerable':!0x0,'get':function(){return P;}});
1
+ const _0x37f72d=_0x146a;function _0x285d(){const _0x1680be=['clsx','InsertSheetMutation','_startFollowing','LiveShareService','dispose','stopFollowing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinatorSync','live-share.config','current','726OvneaL','parseProtocolChangeset','UNIVER_LIVE_SHARE_PLUGIN','send','clear','_entities','registerSharedOperation','1410332vtmNyZ','stringify','registerInitialStateReporter','data','_sharedOperations','LiveShareStatus','LIVESHARE_NEW_HOST','472beLZnq','getValue','Dropdown','symbol','21837TJrQDS','UNIVER_SHEET','default','setConfig','values','OFFLINE','_handleOffline','add','_fetchOperations','offline','_commandService','univer-size-4','sheet','CommandType','_init','presenter','presenting','CollaborationSessionService','object','getInitialStates','LiveShareController','DesktopLiveShareController','6REzQpU','onStarting','2ANPjnr','_collabSession','decorate','You\x27re\x20following\x20the\x20presenter','_commandDisposable','Start','iterator','version','startFollowing','ICommandService','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','status$','defineProperty','mutations','8230092xfaJUs','12344hIyYIx','_handleOperation','executeCommand','map','event$','unit','getStatus','stopPresenting','_stopPresenting','get','NEW_CHANGESETS','0.25.2','not-following','OPERATION','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation','div','_handleNewHost','@univerjs-pro/live-share','_status$','Inject','onRendered','throttleTime','Disposable','SAME_OPERATION_SHARE_INTERVAL','SetWorksheetActiveOperation','LiveShareIcon','1958435orgEjY','asObservable','getTypeOfUnitAdded$','sessionStatus$','_handleNewChangeSets','override','type','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CollaborationEvent','jsx','disposeWithMe','NOT_FOLLOWING','operations','ONLINE','_beIdle','call','1422ATyBbV','prototype','getTypeOfUnitDisposed$','pluginName','subscribe','useEffect','UniverInstanceType','_univerInstanceService','_stopFollowing','_liveShareService','_reporters','BehaviorSubject','complete','createInstance','You\x27re\x20presenting\x20the\x20document','mergeOverrideWithDependencies','RxDisposable','dispose$','_injector','pipe','_mountLiveShare','getConfig','toDisposable','Fragment','_handleTerminate','takeUntil','getUnitId','UNIVER_UNKNOWN','function','_presenter','toStringTag','memberID','getOwnPropertyDescriptor','button','tryStartPresenting','Present\x20this\x20document','_unitID','jsxs','_uiPartsService','getLiveShareCoordinator','has','SessionStatus','onCommandExecuted','toPrimitive','LiveShare','IUIPartsService','init','constructor','_status','length','Start\x20following','next','idle','Plugin','SetZoomRatioOperation','_configService','LiveShareCoordinator','reverse','Module','LIVESHARE_OPERATION','_startLiveShareCoordinator','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','unsubscribe','parse','text','following','BuiltInUIPart','792527QQNxpc','You\x27are\x20offline.','registerDependencies','_startPresenting','useState','requireSession','touchDependencies','getCurrentTypeOfUnit$','33710YcNHQK','SetScrollOperation','connectInjector','_handleOnline','IDLE','getMemberID','LIVESHARE_TERMINATE','string','_collabSessionService','_config','merge','FOLLOWING','Button','IUniverInstanceService','packageName','Injector','delete','end'];_0x285d=function(){return _0x1680be;};return _0x285d();}(function(_0x547fbf,_0x2ffe27){const _0x4f8936=_0x146a,_0x5110a7=_0x547fbf();while(!![]){try{const _0x3ea6a0=-parseInt(_0x4f8936(0x220))/0x1*(parseInt(_0x4f8936(0x1a1))/0x2)+parseInt(_0x4f8936(0x189))/0x3*(parseInt(_0x4f8936(0x185))/0x4)+parseInt(_0x4f8936(0x1cb))/0x5*(parseInt(_0x4f8936(0x19f))/0x6)+parseInt(_0x4f8936(0x17e))/0x7+parseInt(_0x4f8936(0x1b0))/0x8*(parseInt(_0x4f8936(0x1db))/0x9)+parseInt(_0x4f8936(0x228))/0xa*(parseInt(_0x4f8936(0x244))/0xb)+-parseInt(_0x4f8936(0x1af))/0xc;if(_0x3ea6a0===_0x2ffe27)break;else _0x5110a7['push'](_0x5110a7['shift']());}catch(_0x49078a){_0x5110a7['push'](_0x5110a7['shift']());}}}(_0x285d,0x6b6bd),Object['defineProperty'](exports,Symbol[_0x37f72d(0x1f9)],{'value':_0x37f72d(0x215)}));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(_0x47f2b3){'@babel/helpers - typeof';const _0xb939b2=_0x37f72d;return f=typeof Symbol==_0xb939b2(0x1f7)&&typeof Symbol[_0xb939b2(0x1a7)]==_0xb939b2(0x188)?function(_0x4a2b84){return typeof _0x4a2b84;}:function(_0x2def89){const _0x525044=_0xb939b2;return _0x2def89&&typeof Symbol==_0x525044(0x1f7)&&_0x2def89[_0x525044(0x20a)]===Symbol&&_0x2def89!==Symbol[_0x525044(0x1dc)]?_0x525044(0x188):typeof _0x2def89;},f(_0x47f2b3);}function _0x146a(_0x8c9f55,_0x9b97e){_0x8c9f55=_0x8c9f55-0x179;const _0x285d98=_0x285d();let _0x146af0=_0x285d98[_0x8c9f55];return _0x146af0;}function p(_0x2045b5,_0x290f22){const _0x3e1828=_0x37f72d;if(f(_0x2045b5)!=_0x3e1828(0x19b)||!_0x2045b5)return _0x2045b5;var _0x437d10=_0x2045b5[Symbol[_0x3e1828(0x206)]];if(_0x437d10!==void 0x0){var _0x1104a9=_0x437d10[_0x3e1828(0x1da)](_0x2045b5,_0x290f22||_0x3e1828(0x18b));if(f(_0x1104a9)!=_0x3e1828(0x19b))return _0x1104a9;throw TypeError(_0x3e1828(0x240));}return(_0x290f22===_0x3e1828(0x22f)?String:Number)(_0x2045b5);}function m(_0x549fd1){const _0x1dedc5=_0x37f72d;var _0x597eda=p(_0x549fd1,_0x1dedc5(0x22f));return f(_0x597eda)==_0x1dedc5(0x188)?_0x597eda:_0x597eda+'';}function h(_0x4ae12e,_0x5f03ce,_0x331295){const _0x882ec8=_0x37f72d;return(_0x5f03ce=m(_0x5f03ce))in _0x4ae12e?Object[_0x882ec8(0x1ad)](_0x4ae12e,_0x5f03ce,{'value':_0x331295,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ae12e[_0x5f03ce]=_0x331295,_0x4ae12e;}var g=class extends e[_0x37f72d(0x1c7)]{constructor(..._0x518c75){const _0x5a5f21=_0x37f72d;super(..._0x518c75),h(this,_0x5a5f21(0x182),new Set()),h(this,_0x5a5f21(0x1e5),new Set());}[_0x37f72d(0x17d)](_0x10e721){const _0x18a931=_0x37f72d;return this[_0x18a931(0x182)][_0x18a931(0x190)](_0x10e721),(0x0,e[_0x18a931(0x1f1)])(()=>this[_0x18a931(0x182)][_0x18a931(0x238)](_0x10e721));}[_0x37f72d(0x180)](_0xb79067){const _0x12c147=_0x37f72d;return this[_0x12c147(0x1e5)][_0x12c147(0x190)](_0xb79067),(0x0,e[_0x12c147(0x1f1)])(()=>this[_0x12c147(0x1e5)]['delete'](_0xb79067));}[_0x37f72d(0x1bf)](_0x294d90){const _0x4d11d1=_0x37f72d;return this[_0x4d11d1(0x182)][_0x4d11d1(0x203)](_0x294d90);}[_0x37f72d(0x19c)](_0x58881a){const _0x559e36=_0x37f72d;return Array['from'](this[_0x559e36(0x1e5)])[_0x559e36(0x1b3)](_0x2e5a5b=>_0x2e5a5b(_0x58881a));}};function _(_0x88e4,_0x106363){return function(_0x11f3df,_0x341e38){_0x106363(_0x11f3df,_0x341e38,_0x88e4);};}function v(_0x513b15,_0x3bed6b,_0xadb18d,_0x1cb565){const _0xdb5c42=_0x37f72d;var _0x2642af=arguments[_0xdb5c42(0x20c)],_0x499d63=_0x2642af<0x3?_0x3bed6b:_0x1cb565===null?_0x1cb565=Object[_0xdb5c42(0x1fb)](_0x3bed6b,_0xadb18d):_0x1cb565,_0x1d134e;if(typeof Reflect==_0xdb5c42(0x19b)&&typeof Reflect[_0xdb5c42(0x1a3)]==_0xdb5c42(0x1f7))_0x499d63=Reflect[_0xdb5c42(0x1a3)](_0x513b15,_0x3bed6b,_0xadb18d,_0x1cb565);else{for(var _0x1c75cd=_0x513b15['length']-0x1;_0x1c75cd>=0x0;_0x1c75cd--)(_0x1d134e=_0x513b15[_0x1c75cd])&&(_0x499d63=(_0x2642af<0x3?_0x1d134e(_0x499d63):_0x2642af>0x3?_0x1d134e(_0x3bed6b,_0xadb18d,_0x499d63):_0x1d134e(_0x3bed6b,_0xadb18d))||_0x499d63);}return _0x2642af>0x3&&_0x499d63&&Object[_0xdb5c42(0x1ad)](_0x3bed6b,_0xadb18d,_0x499d63),_0x499d63;}let y=class extends e[_0x37f72d(0x1eb)]{constructor(_0x1fc102,_0x13f1c0,_0x3585cf){const _0x53cfea=_0x37f72d;super(),this[_0x53cfea(0x1e2)]=_0x1fc102,this[_0x53cfea(0x1ed)]=_0x13f1c0,this['_collabSessionService']=_0x3585cf,h(this,'_entities',new Map()),this['_init']();}async[_0x37f72d(0x202)](_0x2fbe34){const _0x24bfce=_0x37f72d;return this['_entities'][_0x24bfce(0x203)](_0x2fbe34)||await this['_startLiveShareCoordinator'](_0x2fbe34),this[_0x24bfce(0x17c)][_0x24bfce(0x1b9)](_0x2fbe34);}[_0x37f72d(0x241)](_0x19c1f2){const _0x4fbd9e=_0x37f72d;var _0x527d86;return(_0x527d86=this[_0x4fbd9e(0x17c)][_0x4fbd9e(0x1b9)](_0x19c1f2))==null?null:_0x527d86;}[_0x37f72d(0x197)](){const _0x79b4e0=_0x37f72d;this[_0x79b4e0(0x1e2)][_0x79b4e0(0x1cd)](e['UniverInstanceType'][_0x79b4e0(0x18a)])[_0x79b4e0(0x1ee)]((0x0,l[_0x79b4e0(0x1f4)])(this['dispose$']))[_0x79b4e0(0x1df)](async _0x1d68f8=>{const _0xfeb224=_0x79b4e0;let _0x1377c1=_0x1d68f8[_0xfeb224(0x1b5)][_0xfeb224(0x1f5)]();this[_0xfeb224(0x17c)]['has'](_0x1377c1)||this[_0xfeb224(0x217)](_0x1377c1);}),this[_0x79b4e0(0x1e2)][_0x79b4e0(0x1dd)](e[_0x79b4e0(0x1e1)][_0x79b4e0(0x18a)])[_0x79b4e0(0x1ee)]((0x0,l['takeUntil'])(this['dispose$']))[_0x79b4e0(0x1df)](_0x3b47d9=>{const _0x261f67=_0x79b4e0;let _0x5f14f3=_0x3b47d9[_0x261f67(0x1f5)](),_0x281b7d=this['_entities'][_0x261f67(0x1b9)](_0x5f14f3);_0x281b7d==null||_0x281b7d['dispose']();});}async[_0x37f72d(0x217)](_0x27e80e){const _0x1b324a=_0x37f72d;let _0x144610=await this[_0x1b324a(0x230)][_0x1b324a(0x225)](_0x27e80e),_0x526020=this['_injector'][_0x1b324a(0x1e8)](x,_0x27e80e,_0x144610);return _0x526020[_0x1b324a(0x209)](),this[_0x1b324a(0x17c)]['set'](_0x27e80e,_0x526020),_0x526020;}};y=v([_(0x0,e[_0x37f72d(0x235)]),_(0x1,(0x0,e['Inject'])(e[_0x37f72d(0x237)])),_(0x2,(0x0,e[_0x37f72d(0x1c4)])(o[_0x37f72d(0x19a)]))],y);let b=function(_0x239d6c){const _0x183994=_0x37f72d;return _0x239d6c['OFFLINE']='offline',_0x239d6c[_0x183994(0x22c)]=_0x183994(0x20f),_0x239d6c[_0x183994(0x233)]=_0x183994(0x21e),_0x239d6c[_0x183994(0x1d6)]=_0x183994(0x1bc),_0x239d6c['PRESENTING']='presenting',_0x239d6c;}({}),x=class extends e[_0x37f72d(0x1eb)]{get[_0x37f72d(0x20b)](){const _0x52c09b=_0x37f72d;return this[_0x52c09b(0x1c3)][_0x52c09b(0x186)]();}constructor(_0x390bd8,_0x4c407,_0x5d48ac,_0x5950f0,_0x361ac3){const _0x369cb6=_0x37f72d;super(),this[_0x369cb6(0x1ff)]=_0x390bd8,this[_0x369cb6(0x1a2)]=_0x4c407,this[_0x369cb6(0x212)]=_0x5d48ac,this['_liveShareService']=_0x5950f0,this[_0x369cb6(0x193)]=_0x361ac3,h(this,_0x369cb6(0x1c3),new c[(_0x369cb6(0x1e6))](_0x369cb6(0x20f))),h(this,_0x369cb6(0x1ac),this['_status$'][_0x369cb6(0x1cc)]()),h(this,_0x369cb6(0x197),!0x1),h(this,'_commandDisposable',null),h(this,_0x369cb6(0x1f8),null);}[_0x37f72d(0x23e)](){const _0x25adb0=_0x37f72d;var _0x58ec8b;(_0x58ec8b=this['_commandDisposable'])==null||_0x58ec8b[_0x25adb0(0x23e)](),this[_0x25adb0(0x1c3)][_0x25adb0(0x20e)](_0x25adb0(0x20f)),this[_0x25adb0(0x1c3)][_0x25adb0(0x1e7)]();}[_0x37f72d(0x1b6)](){return this['_status'];}[_0x37f72d(0x209)](){const _0x40c283=_0x37f72d;this['_init']||(this[_0x40c283(0x197)]=!0x0,this[_0x40c283(0x1a2)][_0x40c283(0x1ce)][_0x40c283(0x1ee)]((0x0,l['takeUntil'])(this[_0x40c283(0x1ec)]))['subscribe'](_0x16dbc2=>{const _0x3d94d6=_0x40c283;switch(_0x16dbc2){case o[_0x3d94d6(0x204)][_0x3d94d6(0x18e)]:this['_handleOffline']();break;case o['SessionStatus'][_0x3d94d6(0x1d8)]:this[_0x3d94d6(0x22b)]();break;default:}}),this[_0x40c283(0x1a2)][_0x40c283(0x1b4)]['pipe']((0x0,l[_0x40c283(0x1f4)])(this[_0x40c283(0x1ec)]))['subscribe'](_0x470b03=>{const _0x4630c2=_0x40c283;let {eventID:_0x1a3e59}=_0x470b03;switch(_0x1a3e59){case a[_0x4630c2(0x1d3)][_0x4630c2(0x184)]:this[_0x4630c2(0x1c1)](_0x470b03);break;case a['CollaborationEvent'][_0x4630c2(0x216)]:this[_0x4630c2(0x1b1)](_0x470b03);break;case a[_0x4630c2(0x1d3)][_0x4630c2(0x22e)]:this[_0x4630c2(0x1f3)]();break;case a[_0x4630c2(0x1d3)][_0x4630c2(0x1ba)]:this[_0x4630c2(0x1cf)](_0x470b03);break;default:}}));}[_0x37f72d(0x1fd)](){const _0x51cae5=_0x37f72d;this['_collabSession'][_0x51cae5(0x17a)]({'eventID':a[_0x51cae5(0x1d3)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x51cae5(0x22d)]()}},this['_unitID']);}[_0x37f72d(0x1b7)](){const _0x4cd7e1=_0x37f72d;this['_status']===_0x4cd7e1(0x199)&&(this[_0x4cd7e1(0x1c3)][_0x4cd7e1(0x20e)]('idle'),this[_0x4cd7e1(0x1a2)][_0x4cd7e1(0x17a)]({'eventID':a[_0x4cd7e1(0x1d3)][_0x4cd7e1(0x22e)],'data':{'unitID':this[_0x4cd7e1(0x1ff)]}},this[_0x4cd7e1(0x1ff)]));}[_0x37f72d(0x1a9)](){const _0xcd703=_0x37f72d;this[_0xcd703(0x20b)]==='not-following'&&(this[_0xcd703(0x1c3)][_0xcd703(0x20e)](_0xcd703(0x21e)),this[_0xcd703(0x23c)]());}[_0x37f72d(0x23f)](){const _0x3fb98d=_0x37f72d;this['_status']===_0x3fb98d(0x21e)&&this['_stopFollowing']();}['_handleNewHost'](_0x1e5dda){const _0x29993e=_0x37f72d;let {presenter:_0x43c62a}=_0x1e5dda[_0x29993e(0x181)],_0x8b1237=this[_0x29993e(0x1a2)][_0x29993e(0x22d)]();this[_0x29993e(0x1f8)]=_0x43c62a,_0x43c62a===_0x8b1237?(this[_0x29993e(0x1e3)](),this[_0x29993e(0x223)]()):this[_0x29993e(0x20b)]!=='not-following'&&(this[_0x29993e(0x1b8)](),this[_0x29993e(0x23c)]());}[_0x37f72d(0x191)](){const _0x5632c0=_0x37f72d;let _0x299575={'eventID':a[_0x5632c0(0x1d3)][_0x5632c0(0x1be)]};this[_0x5632c0(0x1a2)]['send'](_0x299575,this[_0x5632c0(0x1ff)]);}['_handleTerminate'](){const _0x1abd12=_0x37f72d;this[_0x1abd12(0x1f8)]=null,this[_0x1abd12(0x20b)]!==_0x1abd12(0x199)&&this[_0x1abd12(0x1d9)]();}[_0x37f72d(0x1cf)](_0x1dfcc0){const _0x13dcc7=_0x37f72d;if(this[_0x13dcc7(0x20b)]===_0x13dcc7(0x21e)&&this[_0x13dcc7(0x1f8)]===_0x1dfcc0[_0x13dcc7(0x181)][_0x13dcc7(0x1fa)]){let _0x2608e7=(0x0,a[_0x13dcc7(0x245)])(_0x1dfcc0[_0x13dcc7(0x181)])[_0x13dcc7(0x1ae)][_0x13dcc7(0x214)]()['find'](_0x56e836=>_0x56e836['id']===s[_0x13dcc7(0x23b)]['id']);if(_0x2608e7){let _0x2fdf34=_0x2608e7[_0x13dcc7(0x218)]['unitId'],_0x5d57e4=_0x2608e7[_0x13dcc7(0x218)][_0x13dcc7(0x195)]['id'];setTimeout(()=>{const _0x1759f6=_0x13dcc7;this['_commandService'][_0x1759f6(0x1b2)](s[_0x1759f6(0x1c9)]['id'],{'unitId':_0x2fdf34,'subUnitId':_0x5d57e4},{'fromCollab':!0x0});});}}}[_0x37f72d(0x223)](){const _0x3e6b69=_0x37f72d;var _0x2c05ac;(_0x2c05ac=this[_0x3e6b69(0x1a5)])==null||_0x2c05ac[_0x3e6b69(0x23e)](),this[_0x3e6b69(0x1c3)][_0x3e6b69(0x20e)](_0x3e6b69(0x199));let _0x318f39=new Map(),_0x12c433=this['_commandDisposable']=new e['DisposableCollection']();_0x12c433[_0x3e6b69(0x190)]((0x0,e['toDisposable'])(()=>{const _0x590632=_0x3e6b69;_0x318f39[_0x590632(0x21a)](({subject:_0x17b481,subscription:_0x1798c1})=>{const _0x11cf50=_0x590632;_0x1798c1[_0x11cf50(0x21b)](),_0x17b481[_0x11cf50(0x1e7)]();}),_0x318f39[_0x590632(0x17b)]();})),_0x12c433[_0x3e6b69(0x190)](this[_0x3e6b69(0x193)][_0x3e6b69(0x205)](_0x380c54=>{const _0x5a9fa9=_0x3e6b69;if(_0x380c54[_0x5a9fa9(0x1d1)]!==e[_0x5a9fa9(0x196)][_0x5a9fa9(0x1bd)]||!this['_liveShareService'][_0x5a9fa9(0x1bf)](_0x380c54['id']))return;let {id:_0x20da98}=_0x380c54,_0x2c57ed;if(_0x318f39[_0x5a9fa9(0x203)](_0x20da98))_0x2c57ed=_0x318f39[_0x5a9fa9(0x1b9)](_0x20da98)['subject'];else{var _0x205580;_0x2c57ed=new c['Subject']();let _0x3bcadd=_0x2c57ed['pipe']((0x0,l[_0x5a9fa9(0x1c6)])((_0x205580=this[_0x5a9fa9(0x212)][_0x5a9fa9(0x1f0)](_0x5a9fa9(0x1c8)))==null?0xc8:_0x205580,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a9fa9(0x1df)](_0x10a0a5=>{const _0x2f0fdb=_0x5a9fa9;this[_0x2f0fdb(0x1a2)][_0x2f0fdb(0x17a)]({'eventID':a[_0x2f0fdb(0x1d3)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2f0fdb(0x1ff)],'operations':{[_0x10a0a5['id']]:{'id':_0x10a0a5['id'],'params':JSON[_0x2f0fdb(0x17f)](_0x10a0a5[_0x2f0fdb(0x218)])}}}},this[_0x2f0fdb(0x1ff)]);});_0x318f39['set'](_0x20da98,{'subject':_0x2c57ed,'subscription':_0x3bcadd});}_0x2c57ed[_0x5a9fa9(0x20e)](_0x380c54);})),this['_liveShareService'][_0x3e6b69(0x19c)](this[_0x3e6b69(0x1ff)])[_0x3e6b69(0x21a)](_0x5aa2a2=>this['_collabSession'][_0x3e6b69(0x17a)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3e6b69(0x1ff)],'operations':{[_0x5aa2a2['id']]:{'id':_0x5aa2a2['id'],'params':JSON[_0x3e6b69(0x17f)](_0x5aa2a2['params'])}}}},this[_0x3e6b69(0x1ff)]));}[_0x37f72d(0x1b8)](){const _0x407fd3=_0x37f72d;var _0x18aba8;this[_0x407fd3(0x1c3)]['next'](_0x407fd3(0x20f)),(_0x18aba8=this[_0x407fd3(0x1a5)])==null||_0x18aba8[_0x407fd3(0x23e)](),this[_0x407fd3(0x1a5)]=null;}[_0x37f72d(0x23c)](){const _0x57bbc3=_0x37f72d;var _0x47e201;(_0x47e201=this[_0x57bbc3(0x1a5)])==null||_0x47e201['dispose'](),this['_status$'][_0x57bbc3(0x20e)](_0x57bbc3(0x21e));}[_0x37f72d(0x1d9)](){const _0x2ecec8=_0x37f72d;var _0x3039ab;this['_status$'][_0x2ecec8(0x20e)](_0x2ecec8(0x20f)),(_0x3039ab=this[_0x2ecec8(0x1a5)])==null||_0x3039ab[_0x2ecec8(0x23e)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x229da7=_0x37f72d;var _0x5a9ba2;this[_0x229da7(0x1c3)][_0x229da7(0x20e)](_0x229da7(0x1bc)),(_0x5a9ba2=this[_0x229da7(0x1a5)])==null||_0x5a9ba2['dispose']();}['_handleOperation'](_0x4ec14e){const _0x4ebf91=_0x37f72d;if([_0x4ebf91(0x199),'not-following','offline']['includes'](this[_0x4ebf91(0x20b)])||!_0x4ec14e[_0x4ebf91(0x181)]['presenter']||_0x4ec14e[_0x4ebf91(0x181)][_0x4ebf91(0x198)]===this['_collabSession'][_0x4ebf91(0x22d)]())return;this[_0x4ebf91(0x20b)]===_0x4ebf91(0x20f)&&this[_0x4ebf91(0x23c)]();let _0x4f3339=_0x4ec14e[_0x4ebf91(0x181)][_0x4ebf91(0x1d7)];Object[_0x4ebf91(0x18d)](_0x4f3339)[_0x4ebf91(0x21a)](_0x566d46=>{const _0x18d306=_0x4ebf91;this['_commandService']['executeCommand'](_0x566d46['id'],_0x566d46[_0x18d306(0x218)]?JSON[_0x18d306(0x21c)](_0x566d46[_0x18d306(0x218)]):null,{'fromCollab':!0x0});});}[_0x37f72d(0x18f)](){const _0x521409=_0x37f72d;var _0x1622c5;this['_status$'][_0x521409(0x20e)](_0x521409(0x192)),(_0x1622c5=this[_0x521409(0x1a5)])==null||_0x1622c5[_0x521409(0x23e)]();}['_handleOnline'](){const _0x5e5d8a=_0x37f72d;this[_0x5e5d8a(0x1c3)][_0x5e5d8a(0x20e)]('idle'),this[_0x5e5d8a(0x191)]();}};x=v([_(0x2,e['IConfigService']),_(0x3,(0x0,e[_0x37f72d(0x1c4)])(g)),_(0x4,e[_0x37f72d(0x1aa)])],x);function S(){const _0x5c9a78=_0x37f72d;let _0x37d411=(0x0,t['useDependency'])(y),_0x1629e4=(0x0,t['useDependency'])(e['IUniverInstanceService']),_0x290c0b=(0x0,t['useObservable'])(()=>_0x1629e4[_0x5c9a78(0x227)](e[_0x5c9a78(0x1e1)][_0x5c9a78(0x18a)]),void 0x0,!0x1,[]),[_0x12abdc,_0x4403f5]=(0x0,i[_0x5c9a78(0x224)])(null),[_0x13749a,_0x5baf8b]=(0x0,i[_0x5c9a78(0x224)])('idle'),_0xd89e60=(0x0,i['useRef'])(null);return(0x0,i[_0x5c9a78(0x1e0)])(()=>(_0x290c0b&&_0x37d411[_0x5c9a78(0x202)](_0x290c0b[_0x5c9a78(0x1f5)]())['then'](_0x567528=>{const _0x3bd082=_0x5c9a78;_0x4403f5(_0x567528),_0xd89e60[_0x3bd082(0x243)]=_0x567528[_0x3bd082(0x1ac)][_0x3bd082(0x1df)](_0x4b953c=>{_0x5baf8b(_0x4b953c);});}),()=>{const _0x46955f=_0x5c9a78;var _0x1d67eb;(_0x1d67eb=_0xd89e60[_0x46955f(0x243)])==null||_0x1d67eb[_0x46955f(0x21b)](),_0xd89e60['current']=null;}),[_0x290c0b,_0x37d411]),_0x12abdc?(0x0,u[_0x5c9a78(0x1d4)])(n[_0x5c9a78(0x187)],{'align':_0x5c9a78(0x239),'disabled':_0x13749a===_0x5c9a78(0x192),'className':_0x5c9a78(0x1ab),'overlay':(0x0,u['jsx'])(C,{'status':_0x13749a,'coordinator':_0x12abdc}),'children':(0x0,u['jsx'])('button',{'className':(0x0,n[_0x5c9a78(0x23a)])(_0x5c9a78(0x1d2),{'univer-cursor-not-allowed':_0x13749a===_0x5c9a78(0x192),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13749a!==_0x5c9a78(0x192)}),'type':_0x5c9a78(0x1fc),'children':(0x0,u[_0x5c9a78(0x1d4)])(r[_0x5c9a78(0x1ca)],{'className':_0x5c9a78(0x194)})})}):null;}function C(_0x48c4e6){const _0xd4fbc3=_0x37f72d;let {status:_0xa2b120,coordinator:_0x5a09ca}=_0x48c4e6;switch(_0xa2b120){case'idle':return(0x0,u[_0xd4fbc3(0x1d4)])(w,{'coordinator':_0x5a09ca});case _0xd4fbc3(0x21e):return(0x0,u['jsx'])(T,{'coordinator':_0x5a09ca});case _0xd4fbc3(0x1bc):return(0x0,u[_0xd4fbc3(0x1d4)])(E,{'coordinator':_0x5a09ca});case'offline':return(0x0,u[_0xd4fbc3(0x1d4)])(O,{});case _0xd4fbc3(0x199):return(0x0,u[_0xd4fbc3(0x1d4)])(D,{'coordinator':_0x5a09ca});default:return null;}}function w(_0x14b081){const _0x101f0c=_0x37f72d;let {coordinator:_0x16ed80}=_0x14b081;return(0x0,u['jsxs'])(u[_0x101f0c(0x1f2)],{'children':[(0x0,u[_0x101f0c(0x1d4)])(_0x101f0c(0x1c0),{'className':_0x101f0c(0x219),'children':_0x101f0c(0x1fe)}),(0x0,u['jsx'])(n[_0x101f0c(0x234)],{'onClick':()=>_0x16ed80[_0x101f0c(0x1fd)](),'children':_0x101f0c(0x1a6)})]});}function T(_0x3997e1){const _0xd1f1b4=_0x37f72d;let {coordinator:_0xdaab3c}=_0x3997e1;return(0x0,u[_0xd1f1b4(0x200)])(u['Fragment'],{'children':[(0x0,u[_0xd1f1b4(0x1d4)])(_0xd1f1b4(0x1c0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xd1f1b4(0x1a4)}),(0x0,u['jsx'])(n['Button'],{'onClick':()=>_0xdaab3c[_0xd1f1b4(0x23f)](),'children':'Stop\x20following'})]});}function E(_0x362aed){const _0x3ce776=_0x37f72d;let {coordinator:_0x30f6e3}=_0x362aed;return(0x0,u[_0x3ce776(0x200)])(u[_0x3ce776(0x1f2)],{'children':[(0x0,u[_0x3ce776(0x1d4)])(_0x3ce776(0x1c0),{'className':_0x3ce776(0x219),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u['jsx'])(n['Button'],{'variant':_0x3ce776(0x21d),'onClick':()=>_0x30f6e3[_0x3ce776(0x1a9)](),'children':_0x3ce776(0x20d)})]});}function D(_0x399db0){const _0x38cf22=_0x37f72d;let {coordinator:_0x1616cc}=_0x399db0;return(0x0,u[_0x38cf22(0x200)])(u['Fragment'],{'children':[(0x0,u[_0x38cf22(0x1d4)])('div',{'className':_0x38cf22(0x219),'children':_0x38cf22(0x1e9)}),(0x0,u[_0x38cf22(0x1d4)])(n[_0x38cf22(0x234)],{'variant':'default','onClick':()=>_0x1616cc[_0x38cf22(0x1b7)](),'children':'Stop\x20presenting'})]});}function O(){const _0x14e206=_0x37f72d;return(0x0,u[_0x14e206(0x1d4)])(u['Fragment'],{'children':_0x14e206(0x221)});}let k=class extends e[_0x37f72d(0x1c7)]{constructor(_0x43c4f8,_0x51f4d7){const _0x4f453e=_0x37f72d;super(),this[_0x4f453e(0x1ed)]=_0x43c4f8,this[_0x4f453e(0x201)]=_0x51f4d7,this[_0x4f453e(0x1ef)]();}['_mountLiveShare'](){const _0x567fad=_0x37f72d;this[_0x567fad(0x1d5)](this[_0x567fad(0x201)]['registerComponent'](t[_0x567fad(0x21f)]['HEADER_MENU'],()=>(0x0,t[_0x567fad(0x22a)])(S,this[_0x567fad(0x1ed)])));}};k=v([_(0x0,(0x0,e['Inject'])(e[_0x37f72d(0x237)])),_(0x1,t[_0x37f72d(0x208)])],k);var A=_0x37f72d(0x1c2),j=_0x37f72d(0x1bb);const M={};let N=class extends e[_0x37f72d(0x1c7)]{constructor(_0x11d265){super(),this['_liveShareService']=_0x11d265,this['_init']();}['_init'](){const _0x39d5ee=_0x37f72d;[d[_0x39d5ee(0x211)]['id'],d[_0x39d5ee(0x229)]['id'],s[_0x39d5ee(0x1c9)]['id']][_0x39d5ee(0x21a)](_0x300719=>{const _0x278024=_0x39d5ee;this['disposeWithMe'](this[_0x278024(0x1e4)][_0x278024(0x17d)](_0x300719));});}};N=v([_(0x0,(0x0,e[_0x37f72d(0x1c4)])(g))],N);let P=class extends e[_0x37f72d(0x210)]{constructor(_0x469baf=M,_0x368746,_0x4048b9){const _0x427115=_0x37f72d;super(),this[_0x427115(0x231)]=_0x469baf,this[_0x427115(0x1ed)]=_0x368746,this[_0x427115(0x212)]=_0x4048b9;let {..._0x810b3c}=(0x0,e[_0x427115(0x232)])({},M,this[_0x427115(0x231)]);this[_0x427115(0x212)][_0x427115(0x18c)](_0x427115(0x242),_0x810b3c);}[_0x37f72d(0x1a0)](){const _0x3ae653=_0x37f72d;(0x0,e[_0x3ae653(0x222)])(this[_0x3ae653(0x1ed)],(0x0,e[_0x3ae653(0x1ea)])([[g],[y],[N],[k]],this[_0x3ae653(0x231)][_0x3ae653(0x1d0)])),(0x0,e[_0x3ae653(0x226)])(this[_0x3ae653(0x1ed)],[[N]]);}[_0x37f72d(0x1c5)](){const _0x1eddf4=_0x37f72d;(0x0,e['touchDependencies'])(this[_0x1eddf4(0x1ed)],[[k]]);}};h(P,_0x37f72d(0x1d1),e[_0x37f72d(0x1e1)][_0x37f72d(0x1f6)]),h(P,_0x37f72d(0x1de),_0x37f72d(0x179)),h(P,_0x37f72d(0x236),A),h(P,_0x37f72d(0x1a8),j),P=v([(0x0,e['DependentOn'])(o['UniverCollaborationClientPlugin']),_(0x1,(0x0,e[_0x37f72d(0x1c4)])(e['Injector'])),_(0x2,e['IConfigService'])],P),Object['defineProperty'](exports,_0x37f72d(0x19e),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x37f72d(0x207)]=S,Object[_0x37f72d(0x1ad)](exports,_0x37f72d(0x19d),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,_0x37f72d(0x213),{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x37f72d(0x23d)]=g,exports[_0x37f72d(0x183)]=b,Object[_0x37f72d(0x1ad)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x479317=_0x465e;(function(_0x26affc,_0x503bbb){const _0x27347e=_0x465e,_0x3d9fcb=_0x26affc();while(!![]){try{const _0x4edb63=-parseInt(_0x27347e(0x11b))/0x1*(parseInt(_0x27347e(0x102))/0x2)+-parseInt(_0x27347e(0x112))/0x3*(parseInt(_0x27347e(0x111))/0x4)+parseInt(_0x27347e(0x117))/0x5*(-parseInt(_0x27347e(0x105))/0x6)+-parseInt(_0x27347e(0x10f))/0x7*(parseInt(_0x27347e(0x116))/0x8)+parseInt(_0x27347e(0x101))/0x9+-parseInt(_0x27347e(0x103))/0xa+parseInt(_0x27347e(0x127))/0xb*(parseInt(_0x27347e(0x11f))/0xc);if(_0x4edb63===_0x503bbb)break;else _0x3d9fcb['push'](_0x3d9fcb['shift']());}catch(_0x96f3e3){_0x3d9fcb['push'](_0x3d9fcb['shift']());}}}(_0x382a,0x80f05));import{LiveShareController as _0x28024b,LiveShareStatus as _0x588e6b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x2f1278,UniverInstanceType as _0x406c94}from'@univerjs/core';import{FEnum as _0x41621a,FUniver as _0x195e9f}from'@univerjs/core/facade';function o(_0x4d79f7){'@babel/helpers - typeof';const _0x34561e=_0x465e;return o=typeof Symbol==_0x34561e(0x126)&&typeof Symbol[_0x34561e(0x106)]==_0x34561e(0x123)?function(_0x49dcc5){return typeof _0x49dcc5;}:function(_0x14b427){const _0x246dfc=_0x34561e;return _0x14b427&&typeof Symbol==_0x246dfc(0x126)&&_0x14b427[_0x246dfc(0x119)]===Symbol&&_0x14b427!==Symbol['prototype']?_0x246dfc(0x123):typeof _0x14b427;},o(_0x4d79f7);}function s(_0x1efcc3,_0x4134f7){const _0x5a20e6=_0x465e;if(o(_0x1efcc3)!='object'||!_0x1efcc3)return _0x1efcc3;var _0x517c85=_0x1efcc3[Symbol[_0x5a20e6(0x10b)]];if(_0x517c85!==void 0x0){var _0x4a6c32=_0x517c85[_0x5a20e6(0x11c)](_0x1efcc3,_0x4134f7||'default');if(o(_0x4a6c32)!=_0x5a20e6(0x120))return _0x4a6c32;throw TypeError(_0x5a20e6(0x113));}return(_0x4134f7===_0x5a20e6(0x11a)?String:Number)(_0x1efcc3);}function c(_0x1a2066){const _0xfdeb88=_0x465e;var _0x1b37da=s(_0x1a2066,'string');return o(_0x1b37da)==_0xfdeb88(0x123)?_0x1b37da:_0x1b37da+'';}function _0x465e(_0x474c9e,_0x54d3a6){_0x474c9e=_0x474c9e-0xff;const _0x382ae5=_0x382a();let _0x465e85=_0x382ae5[_0x474c9e];return _0x465e85;}function l(_0x1880cb,_0x40b37f,_0x3ffddb){return(_0x40b37f=c(_0x40b37f))in _0x1880cb?Object['defineProperty'](_0x1880cb,_0x40b37f,{'value':_0x3ffddb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1880cb[_0x40b37f]=_0x3ffddb,_0x1880cb;}function _0x382a(){const _0x5b63cb=['stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','symbol','getStatus','getLiveShareStatus','function','236841GmTTae','_liveShareController','tryStartPresenting','1856394ObeVpo','1814734nVuvoy','22870nWIPsk','_injector','319038EeFnjt','iterator','UNIVER_SHEET','stopPresenting','get','getLiveShareCoordinatorSync','toPrimitive','startFollowing','LiveShareStatusEnum','_initialize','77ltOahK','extend','4YdhmgN','533073sFVFCn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','getUnitId','107320XBcqBh','50wKkMTZ','getCurrentUnitOfType','constructor','string','1EkTKvK','call','startPresenting','IDLE','1164rDtQow','object'];_0x382a=function(){return _0x5b63cb;};return _0x382a();}var u=class extends _0x195e9f{constructor(..._0x196698){const _0x313544=_0x465e;super(..._0x196698),l(this,_0x313544(0xff),void 0x0);}[_0x479317(0x10e)](_0x179031){const _0x4ade56=_0x479317;this[_0x4ade56(0xff)]=_0x179031['get'](_0x28024b);}[_0x479317(0x125)](){const _0x3f70e6=_0x479317;var _0x316a54;let _0x436d02=this[_0x3f70e6(0x104)][_0x3f70e6(0x109)](_0x2f1278)[_0x3f70e6(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x436d02)throw Error(_0x3f70e6(0x114));let _0x512262=_0x436d02[_0x3f70e6(0x115)](),_0x5a0cb5=this[_0x3f70e6(0xff)][_0x3f70e6(0x10a)](_0x512262);return(_0x316a54=_0x5a0cb5==null?void 0x0:_0x5a0cb5[_0x3f70e6(0x124)]())==null?_0x588e6b[_0x3f70e6(0x11e)]:_0x316a54;}[_0x479317(0x10c)](){const _0xf36b55=_0x479317;let _0x3b91c8=this[_0xf36b55(0x104)][_0xf36b55(0x109)](_0x2f1278)[_0xf36b55(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x3b91c8)throw Error(_0xf36b55(0x114));let _0x4f4feb=_0x3b91c8[_0xf36b55(0x115)](),_0x231e47=this[_0xf36b55(0xff)]['getLiveShareCoordinatorSync'](_0x4f4feb);if(!_0x231e47)throw Error(_0xf36b55(0x122));_0x231e47[_0xf36b55(0x10c)]();}[_0x479317(0x121)](){const _0x318964=_0x479317;let _0x2c9664=this['_injector']['get'](_0x2f1278)[_0x318964(0x118)](_0x406c94[_0x318964(0x107)]);if(!_0x2c9664)throw Error(_0x318964(0x114));let _0x48a1fb=_0x2c9664[_0x318964(0x115)](),_0x557416=this['_liveShareController'][_0x318964(0x10a)](_0x48a1fb);if(!_0x557416)throw Error(_0x318964(0x122));_0x557416['stopFollowing']();}[_0x479317(0x11d)](){const _0x18908d=_0x479317;let _0x255945=this[_0x18908d(0x104)][_0x18908d(0x109)](_0x2f1278)['getCurrentUnitOfType'](_0x406c94['UNIVER_SHEET']);if(!_0x255945)throw Error('No\x20active\x20workbook\x20found.');let _0x199978=_0x255945[_0x18908d(0x115)](),_0xe89591=this[_0x18908d(0xff)][_0x18908d(0x10a)](_0x199978);if(!_0xe89591)throw Error(_0x18908d(0x122));_0xe89591[_0x18908d(0x100)]();}[_0x479317(0x108)](){const _0x1e4ae6=_0x479317;let _0xe12b31=this[_0x1e4ae6(0x104)]['get'](_0x2f1278)[_0x1e4ae6(0x118)](_0x406c94[_0x1e4ae6(0x107)]);if(!_0xe12b31)throw Error(_0x1e4ae6(0x114));let _0x451da8=_0xe12b31[_0x1e4ae6(0x115)](),_0x1d6b81=this[_0x1e4ae6(0xff)][_0x1e4ae6(0x10a)](_0x451da8);if(!_0x1d6b81)throw Error(_0x1e4ae6(0x122));_0x1d6b81[_0x1e4ae6(0x108)]();}};_0x195e9f[_0x479317(0x110)](u);var d=class extends _0x41621a{get[_0x479317(0x10d)](){return _0x588e6b;}};_0x41621a['extend'](d);export{};
1
+ function _0x4424(_0x3baef3,_0x206bac){_0x3baef3=_0x3baef3-0x13c;const _0x356a3a=_0x356a();let _0x442405=_0x356a3a[_0x3baef3];return _0x442405;}const _0x303069=_0x4424;(function(_0x158469,_0x1637b3){const _0x39df0b=_0x4424,_0x51d07a=_0x158469();while(!![]){try{const _0x2979c0=-parseInt(_0x39df0b(0x15f))/0x1+parseInt(_0x39df0b(0x15e))/0x2+-parseInt(_0x39df0b(0x157))/0x3*(parseInt(_0x39df0b(0x143))/0x4)+parseInt(_0x39df0b(0x144))/0x5+-parseInt(_0x39df0b(0x15a))/0x6+parseInt(_0x39df0b(0x14e))/0x7+parseInt(_0x39df0b(0x151))/0x8*(parseInt(_0x39df0b(0x153))/0x9);if(_0x2979c0===_0x1637b3)break;else _0x51d07a['push'](_0x51d07a['shift']());}catch(_0x3b4b07){_0x51d07a['push'](_0x51d07a['shift']());}}}(_0x356a,0x9452f));import{LiveShareController as _0x331175,LiveShareStatus as _0x1cbc7d}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1fc3b0,UniverInstanceType as _0x566577}from'@univerjs/core';import{FEnum as _0x44b5ce,FUniver as _0x2e2563}from'@univerjs/core/facade';function o(_0x18ccf7){'@babel/helpers - typeof';const _0x55c532=_0x4424;return o=typeof Symbol==_0x55c532(0x159)&&typeof Symbol[_0x55c532(0x146)]==_0x55c532(0x14c)?function(_0x481534){return typeof _0x481534;}:function(_0x5d759b){const _0x138721=_0x55c532;return _0x5d759b&&typeof Symbol==_0x138721(0x159)&&_0x5d759b['constructor']===Symbol&&_0x5d759b!==Symbol[_0x138721(0x14b)]?_0x138721(0x14c):typeof _0x5d759b;},o(_0x18ccf7);}function s(_0x3ff0b4,_0x46cf3e){const _0x3e3e2d=_0x4424;if(o(_0x3ff0b4)!=_0x3e3e2d(0x155)||!_0x3ff0b4)return _0x3ff0b4;var _0x431eb3=_0x3ff0b4[Symbol[_0x3e3e2d(0x142)]];if(_0x431eb3!==void 0x0){var _0x30aaee=_0x431eb3[_0x3e3e2d(0x140)](_0x3ff0b4,_0x46cf3e||_0x3e3e2d(0x15d));if(o(_0x30aaee)!=_0x3e3e2d(0x155))return _0x30aaee;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46cf3e===_0x3e3e2d(0x156)?String:Number)(_0x3ff0b4);}function c(_0x153bc2){const _0xfab395=_0x4424;var _0x17e489=s(_0x153bc2,_0xfab395(0x156));return o(_0x17e489)=='symbol'?_0x17e489:_0x17e489+'';}function _0x356a(){const _0x442a2c=['default','376466YDseIm','162104AWvKmV','_initialize','getUnitId','No\x20active\x20workbook\x20found.','stopPresenting','tryStartPresenting','stopFollowing','call','LiveShareStatusEnum','toPrimitive','3928eRZskS','3628075KAqUeV','get','iterator','startPresenting','startFollowing','_liveShareController','getCurrentUnitOfType','prototype','symbol','_injector','1532034dBdoTd','getLiveShareCoordinatorSync','extend','1026616BxqCLP','defineProperty','90AmKTFl','getStatus','object','string','3027yKbvdZ','IDLE','function','3933018ZvSlzx','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET'];_0x356a=function(){return _0x442a2c;};return _0x356a();}function l(_0x48251b,_0x82db64,_0x880cce){const _0x21f7b0=_0x4424;return(_0x82db64=c(_0x82db64))in _0x48251b?Object[_0x21f7b0(0x152)](_0x48251b,_0x82db64,{'value':_0x880cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48251b[_0x82db64]=_0x880cce,_0x48251b;}var u=class extends _0x2e2563{constructor(..._0xb14720){const _0x54d753=_0x4424;super(..._0xb14720),l(this,_0x54d753(0x149),void 0x0);}[_0x303069(0x160)](_0x5eca5e){this['_liveShareController']=_0x5eca5e['get'](_0x331175);}['getLiveShareStatus'](){const _0xc5a4c2=_0x303069;var _0xf0e7e8;let _0x1797d7=this[_0xc5a4c2(0x14d)][_0xc5a4c2(0x145)](_0x1fc3b0)[_0xc5a4c2(0x14a)](_0x566577[_0xc5a4c2(0x15c)]);if(!_0x1797d7)throw Error(_0xc5a4c2(0x13c));let _0x30bff9=_0x1797d7[_0xc5a4c2(0x161)](),_0x48f752=this['_liveShareController'][_0xc5a4c2(0x14f)](_0x30bff9);return(_0xf0e7e8=_0x48f752==null?void 0x0:_0x48f752[_0xc5a4c2(0x154)]())==null?_0x1cbc7d[_0xc5a4c2(0x158)]:_0xf0e7e8;}[_0x303069(0x148)](){const _0x493cbd=_0x303069;let _0x29b0a1=this[_0x493cbd(0x14d)][_0x493cbd(0x145)](_0x1fc3b0)[_0x493cbd(0x14a)](_0x566577[_0x493cbd(0x15c)]);if(!_0x29b0a1)throw Error(_0x493cbd(0x13c));let _0x362f91=_0x29b0a1['getUnitId'](),_0x1475cc=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x362f91);if(!_0x1475cc)throw Error(_0x493cbd(0x15b));_0x1475cc[_0x493cbd(0x148)]();}['stopFollowing'](){const _0x227acd=_0x303069;let _0x2a005f=this['_injector'][_0x227acd(0x145)](_0x1fc3b0)[_0x227acd(0x14a)](_0x566577[_0x227acd(0x15c)]);if(!_0x2a005f)throw Error(_0x227acd(0x13c));let _0x73981b=_0x2a005f[_0x227acd(0x161)](),_0x867f36=this[_0x227acd(0x149)][_0x227acd(0x14f)](_0x73981b);if(!_0x867f36)throw Error(_0x227acd(0x15b));_0x867f36[_0x227acd(0x13f)]();}[_0x303069(0x147)](){const _0x4d5b60=_0x303069;let _0x8653c6=this[_0x4d5b60(0x14d)][_0x4d5b60(0x145)](_0x1fc3b0)[_0x4d5b60(0x14a)](_0x566577['UNIVER_SHEET']);if(!_0x8653c6)throw Error('No\x20active\x20workbook\x20found.');let _0x47a60a=_0x8653c6[_0x4d5b60(0x161)](),_0x15bd4e=this['_liveShareController'][_0x4d5b60(0x14f)](_0x47a60a);if(!_0x15bd4e)throw Error(_0x4d5b60(0x15b));_0x15bd4e[_0x4d5b60(0x13e)]();}[_0x303069(0x13d)](){const _0x27f606=_0x303069;let _0x2c80be=this[_0x27f606(0x14d)][_0x27f606(0x145)](_0x1fc3b0)[_0x27f606(0x14a)](_0x566577[_0x27f606(0x15c)]);if(!_0x2c80be)throw Error('No\x20active\x20workbook\x20found.');let _0x1a7bdd=_0x2c80be[_0x27f606(0x161)](),_0x18fd5d=this[_0x27f606(0x149)][_0x27f606(0x14f)](_0x1a7bdd);if(!_0x18fd5d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18fd5d['stopPresenting']();}};_0x2e2563[_0x303069(0x150)](u);var d=class extends _0x44b5ce{get[_0x303069(0x141)](){return _0x1cbc7d;}};_0x44b5ce[_0x303069(0x150)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4bfb65=_0x2290;(function(_0x38130e,_0x52ba00){const _0x1186c9=_0x2290,_0x574ec6=_0x38130e();while(!![]){try{const _0x41863a=parseInt(_0x1186c9(0x19e))/0x1+-parseInt(_0x1186c9(0x153))/0x2*(parseInt(_0x1186c9(0x16f))/0x3)+-parseInt(_0x1186c9(0x14d))/0x4+-parseInt(_0x1186c9(0x1b9))/0x5+-parseInt(_0x1186c9(0x16a))/0x6*(-parseInt(_0x1186c9(0x158))/0x7)+-parseInt(_0x1186c9(0x136))/0x8*(parseInt(_0x1186c9(0x1af))/0x9)+-parseInt(_0x1186c9(0x177))/0xa*(-parseInt(_0x1186c9(0x14b))/0xb);if(_0x41863a===_0x52ba00)break;else _0x574ec6['push'](_0x574ec6['shift']());}catch(_0x4f0dae){_0x574ec6['push'](_0x574ec6['shift']());}}}(_0x41da,0xadb29));import{CommandType as _0x19d177,DependentOn as _0x59b5e2,Disposable as _0x1ce4ab,DisposableCollection as _0x32b6cc,ICommandService as _0x34d8a7,IConfigService as _0x25496e,IUniverInstanceService as _0x4f09f7,Inject as _0x56773e,Injector as _0x51a301,Plugin as _0x1b359a,RxDisposable as _0x1a3ddb,UniverInstanceType as _0x7bf701,merge as _0x5bb40d,mergeOverrideWithDependencies as _0x250f7e,registerDependencies as _0x519864,toDisposable as _0x3bc937,touchDependencies as _0x4834f3}from'@univerjs/core';import{BuiltInUIPart as _0x342ffe,IUIPartsService as _0x27ea1c,connectInjector as _0x229861,useDependency as _0x4aae14,useObservable as _0x2f2a72}from'@univerjs/ui';import{Button as _0x2e3da7,Dropdown as _0x256d48,clsx as _0x16695f}from'@univerjs/design';import{LiveShareIcon as _0x279c39}from'@univerjs/icons';import{useEffect as _0x3b2091,useRef as _0x3b13ea,useState as _0x3a871b}from'react';import{CollaborationEvent as _0x13fab2,parseProtocolChangeset as _0x5034fc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3c4ea9,SessionStatus as _0x15ce3e,UniverCollaborationClientPlugin as _0x138c17}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5c83b9,SetWorksheetActiveOperation as _0x3bef8f}from'@univerjs/sheets';import{BehaviorSubject as _0x4610d5,Subject as _0x5f429a}from'rxjs';import{takeUntil as _0x264a65,throttleTime as _0x16b8ad}from'rxjs/operators';import{Fragment as _0x2f0b38,jsx as _0x5e0507,jsxs as _0x546f71}from'react/jsx-runtime';import{SetScrollOperation as _0x5abf17,SetZoomRatioOperation as _0x59b108}from'@univerjs/sheets-ui';function R(_0x2a1524){'@babel/helpers - typeof';const _0x5341fc=_0x2290;return R=typeof Symbol==_0x5341fc(0x147)&&typeof Symbol['iterator']=='symbol'?function(_0x425c03){return typeof _0x425c03;}:function(_0x1fc4ff){const _0x3eaa98=_0x5341fc;return _0x1fc4ff&&typeof Symbol==_0x3eaa98(0x147)&&_0x1fc4ff['constructor']===Symbol&&_0x1fc4ff!==Symbol[_0x3eaa98(0x18d)]?_0x3eaa98(0x159):typeof _0x1fc4ff;},R(_0x2a1524);}function z(_0x101c94,_0xbd8e4c){const _0x2031cd=_0x2290;if(R(_0x101c94)!='object'||!_0x101c94)return _0x101c94;var _0x2e139b=_0x101c94[Symbol[_0x2031cd(0x174)]];if(_0x2e139b!==void 0x0){var _0x4318e7=_0x2e139b['call'](_0x101c94,_0xbd8e4c||_0x2031cd(0x15f));if(R(_0x4318e7)!=_0x2031cd(0x19d))return _0x4318e7;throw TypeError(_0x2031cd(0x14f));}return(_0xbd8e4c==='string'?String:Number)(_0x101c94);}function B(_0xb11bdc){const _0x443b0d=_0x2290;var _0x518065=z(_0xb11bdc,_0x443b0d(0x15b));return R(_0x518065)=='symbol'?_0x518065:_0x518065+'';}function V(_0x3ca471,_0x499271,_0x3f6cce){const _0x205b8a=_0x2290;return(_0x499271=B(_0x499271))in _0x3ca471?Object[_0x205b8a(0x152)](_0x3ca471,_0x499271,{'value':_0x3f6cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ca471[_0x499271]=_0x3f6cce,_0x3ca471;}var H=class extends _0x1ce4ab{constructor(..._0x539b07){const _0x8269b0=_0x2290;super(..._0x539b07),V(this,'_sharedOperations',new Set()),V(this,_0x8269b0(0x14a),new Set());}['registerSharedOperation'](_0x28ed9c){const _0x5597fe=_0x2290;return this[_0x5597fe(0x155)]['add'](_0x28ed9c),_0x3bc937(()=>this[_0x5597fe(0x155)]['delete'](_0x28ed9c));}[_0x4bfb65(0x187)](_0x47d1c8){const _0x22aa2f=_0x4bfb65;return this[_0x22aa2f(0x14a)][_0x22aa2f(0x12d)](_0x47d1c8),_0x3bc937(()=>this[_0x22aa2f(0x14a)]['delete'](_0x47d1c8));}[_0x4bfb65(0x15d)](_0x412477){const _0x3c25a9=_0x4bfb65;return this[_0x3c25a9(0x155)][_0x3c25a9(0x170)](_0x412477);}[_0x4bfb65(0x146)](_0x3d3879){const _0x2096ab=_0x4bfb65;return Array[_0x2096ab(0x157)](this['_reporters'])[_0x2096ab(0x18a)](_0x53f955=>_0x53f955(_0x3d3879));}};function U(_0x474cb9,_0x30c562){return function(_0x5b3b51,_0x10e3a5){_0x30c562(_0x5b3b51,_0x10e3a5,_0x474cb9);};}function W(_0x19748c,_0x2c7c96,_0x447637,_0x272e45){const _0x4f229f=_0x4bfb65;var _0x515ddf=arguments[_0x4f229f(0x135)],_0x34c317=_0x515ddf<0x3?_0x2c7c96:_0x272e45===null?_0x272e45=Object[_0x4f229f(0x191)](_0x2c7c96,_0x447637):_0x272e45,_0x3c960c;if(typeof Reflect=='object'&&typeof Reflect[_0x4f229f(0x144)]==_0x4f229f(0x147))_0x34c317=Reflect[_0x4f229f(0x144)](_0x19748c,_0x2c7c96,_0x447637,_0x272e45);else{for(var _0x477e89=_0x19748c[_0x4f229f(0x135)]-0x1;_0x477e89>=0x0;_0x477e89--)(_0x3c960c=_0x19748c[_0x477e89])&&(_0x34c317=(_0x515ddf<0x3?_0x3c960c(_0x34c317):_0x515ddf>0x3?_0x3c960c(_0x2c7c96,_0x447637,_0x34c317):_0x3c960c(_0x2c7c96,_0x447637))||_0x34c317);}return _0x515ddf>0x3&&_0x34c317&&Object['defineProperty'](_0x2c7c96,_0x447637,_0x34c317),_0x34c317;}function _0x41da(){const _0x3b2379=['Stop\x20following','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','getStatus','includes','_status','_status$','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','status$','_univerInstanceService','2763cWqBeO','Present\x20this\x20document','operations','params','_startFollowing','_unitID','unsubscribe','_uiPartsService','stopFollowing','getLiveShareCoordinator','3390370UUWlsD','forEach','current','dispose','LIVESHARE_FETCH_OPERATIONS','following','LIVESHARE_OPERATION','_configService','event$','add','not-following','live-share.config','LIVESHARE_REQUEST_HOST','type','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','pluginName','_entities','length','8784fJLvGx','memberID','stopPresenting','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinatorSync','_handleOnline','init','_presenter','_stopFollowing','disposeWithMe','0.25.0','UNIVER_SHEET','_liveShareService','decorate','_beIdle','getInitialStates','function','tryStartPresenting','_commandDisposable','_reporters','2179914wFynEy','getConfig','1407576bqAdTG','getTypeOfUnitDisposed$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','div','offline','defineProperty','754124sTQsrk','_handleNewChangeSets','_sharedOperations','NOT_FOLLOWING','from','7pxkwak','symbol','getUnitId','string','startFollowing','shouldShareOperation','_mountLiveShare','default','_handleOperation','set','send','pipe','dispose$','text','complete','setConfig','_collabSession','_collabSessionService','3121062VbFUgg','next','subscribe','getTypeOfUnitAdded$','PRESENTING','3FGxjnp','has','executeCommand','find','registerSharedOperation','toPrimitive','data','HEADER_MENU','30iPaxFT','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','LIVESHARE_TERMINATE','reverse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','_injector','values','asObservable','_init','createInstance','presenting','then','_startPresenting','_commandService','registerInitialStateReporter','NEW_CHANGESETS','_fetchOperations','map','_config','requireSession','prototype','presenter','stringify','univer-mb-3\x20univer-w-full\x20univer-text-sm','getOwnPropertyDescriptor','get','button','sheet','getMemberID','registerComponent','idle','unit','OFFLINE','subject','UNIVER_UNKNOWN','IDLE','object','1340882VUXrLG','parse','onStarting','mutations','_handleNewHost','_handleOffline'];_0x41da=function(){return _0x3b2379;};return _0x41da();}let G=class extends _0x1a3ddb{constructor(_0x25b0f7,_0x1e18be,_0x30f611){const _0x2cee2a=_0x4bfb65;super(),this[_0x2cee2a(0x1ae)]=_0x25b0f7,this[_0x2cee2a(0x17e)]=_0x1e18be,this[_0x2cee2a(0x169)]=_0x30f611,V(this,_0x2cee2a(0x134),new Map()),this[_0x2cee2a(0x181)]();}async['getLiveShareCoordinator'](_0x104e9f){const _0x2cad5a=_0x4bfb65;return this[_0x2cad5a(0x134)][_0x2cad5a(0x170)](_0x104e9f)||await this[_0x2cad5a(0x1ab)](_0x104e9f),this['_entities'][_0x2cad5a(0x192)](_0x104e9f);}[_0x4bfb65(0x13b)](_0xa5236){const _0x6baff3=_0x4bfb65;var _0x2cb56a;return(_0x2cb56a=this[_0x6baff3(0x134)][_0x6baff3(0x192)](_0xa5236))==null?null:_0x2cb56a;}[_0x4bfb65(0x181)](){const _0x43e8d3=_0x4bfb65;this[_0x43e8d3(0x1ae)][_0x43e8d3(0x16d)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](async _0x25bc6e=>{const _0xe3be1b=_0x43e8d3;let _0x57b1df=_0x25bc6e[_0xe3be1b(0x198)]['getUnitId']();this[_0xe3be1b(0x134)][_0xe3be1b(0x170)](_0x57b1df)||this[_0xe3be1b(0x1ab)](_0x57b1df);}),this[_0x43e8d3(0x1ae)][_0x43e8d3(0x14e)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](_0xe09c49=>{const _0x597665=_0x43e8d3;let _0x45582d=_0xe09c49[_0x597665(0x15a)](),_0x578ec6=this[_0x597665(0x134)]['get'](_0x45582d);_0x578ec6==null||_0x578ec6[_0x597665(0x1bc)]();});}async[_0x4bfb65(0x1ab)](_0x4c900c){const _0x3faca5=_0x4bfb65;let _0x35a9ac=await this[_0x3faca5(0x169)][_0x3faca5(0x18c)](_0x4c900c),_0x8f180b=this[_0x3faca5(0x17e)][_0x3faca5(0x182)](q,_0x4c900c,_0x35a9ac);return _0x8f180b[_0x3faca5(0x13d)](),this[_0x3faca5(0x134)][_0x3faca5(0x161)](_0x4c900c,_0x8f180b),_0x8f180b;}};G=W([U(0x0,_0x4f09f7),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x56773e(_0x3c4ea9))],G);let K=function(_0x553144){const _0x71acf4=_0x4bfb65;return _0x553144[_0x71acf4(0x199)]=_0x71acf4(0x151),_0x553144[_0x71acf4(0x19c)]=_0x71acf4(0x197),_0x553144[_0x71acf4(0x179)]=_0x71acf4(0x1be),_0x553144[_0x71acf4(0x156)]='not-following',_0x553144[_0x71acf4(0x16e)]=_0x71acf4(0x183),_0x553144;}({}),q=class extends _0x1a3ddb{get[_0x4bfb65(0x1a9)](){const _0x5583b9=_0x4bfb65;return this[_0x5583b9(0x1aa)]['getValue']();}constructor(_0x44bda8,_0x368732,_0x37c925,_0x22b1b0,_0x34397c){const _0x113d22=_0x4bfb65;super(),this['_unitID']=_0x44bda8,this['_collabSession']=_0x368732,this[_0x113d22(0x1c0)]=_0x37c925,this[_0x113d22(0x143)]=_0x22b1b0,this[_0x113d22(0x186)]=_0x34397c,V(this,_0x113d22(0x1aa),new _0x4610d5('idle')),V(this,_0x113d22(0x1ad),this[_0x113d22(0x1aa)][_0x113d22(0x180)]()),V(this,_0x113d22(0x181),!0x1),V(this,'_commandDisposable',null),V(this,'_presenter',null);}['dispose'](){const _0x1e12bf=_0x4bfb65;var _0x900623;(_0x900623=this[_0x1e12bf(0x149)])==null||_0x900623[_0x1e12bf(0x1bc)](),this[_0x1e12bf(0x1aa)][_0x1e12bf(0x16b)]('idle'),this['_status$'][_0x1e12bf(0x166)]();}[_0x4bfb65(0x1a7)](){const _0x290313=_0x4bfb65;return this[_0x290313(0x1a9)];}[_0x4bfb65(0x13d)](){const _0x25d25e=_0x4bfb65;this[_0x25d25e(0x181)]||(this['_init']=!0x0,this[_0x25d25e(0x168)]['sessionStatus$'][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))['subscribe'](_0x2c01e3=>{const _0x20014b=_0x25d25e;switch(_0x2c01e3){case _0x15ce3e[_0x20014b(0x199)]:this[_0x20014b(0x1a3)]();break;case _0x15ce3e['ONLINE']:this[_0x20014b(0x13c)]();break;default:}}),this[_0x25d25e(0x168)][_0x25d25e(0x1c1)][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))[_0x25d25e(0x16c)](_0x498a23=>{const _0x36d04b=_0x25d25e;let {eventID:_0x56538d}=_0x498a23;switch(_0x56538d){case _0x13fab2['LIVESHARE_NEW_HOST']:this[_0x36d04b(0x1a2)](_0x498a23);break;case _0x13fab2['LIVESHARE_OPERATION']:this[_0x36d04b(0x160)](_0x498a23);break;case _0x13fab2[_0x36d04b(0x17a)]:this['_handleTerminate']();break;case _0x13fab2[_0x36d04b(0x188)]:this[_0x36d04b(0x154)](_0x498a23);break;default:}}));}[_0x4bfb65(0x148)](){const _0x52e11a=_0x4bfb65;this[_0x52e11a(0x168)][_0x52e11a(0x162)]({'eventID':_0x13fab2[_0x52e11a(0x130)],'data':{'unitID':this[_0x52e11a(0x1b4)],'userID':this[_0x52e11a(0x168)]['getMemberID']()}},this[_0x52e11a(0x1b4)]);}[_0x4bfb65(0x138)](){const _0x212eb0=_0x4bfb65;this[_0x212eb0(0x1a9)]===_0x212eb0(0x183)&&(this['_status$'][_0x212eb0(0x16b)](_0x212eb0(0x197)),this[_0x212eb0(0x168)][_0x212eb0(0x162)]({'eventID':_0x13fab2['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x212eb0(0x1b4)]));}[_0x4bfb65(0x15c)](){const _0x4e208c=_0x4bfb65;this[_0x4e208c(0x1a9)]===_0x4e208c(0x12e)&&(this[_0x4e208c(0x1aa)][_0x4e208c(0x16b)](_0x4e208c(0x1be)),this[_0x4e208c(0x1b3)]());}['stopFollowing'](){const _0x1ad6dd=_0x4bfb65;this[_0x1ad6dd(0x1a9)]===_0x1ad6dd(0x1be)&&this[_0x1ad6dd(0x13f)]();}[_0x4bfb65(0x1a2)](_0x3a2ef5){const _0x5db380=_0x4bfb65;let {presenter:_0x574917}=_0x3a2ef5[_0x5db380(0x175)],_0xcda10e=this['_collabSession'][_0x5db380(0x195)]();this[_0x5db380(0x13e)]=_0x574917,_0x574917===_0xcda10e?(this[_0x5db380(0x13f)](),this[_0x5db380(0x185)]()):this[_0x5db380(0x1a9)]!==_0x5db380(0x12e)&&(this[_0x5db380(0x17d)](),this['_startFollowing']());}[_0x4bfb65(0x189)](){const _0x43f052=_0x4bfb65;let _0x421978={'eventID':_0x13fab2[_0x43f052(0x1bd)]};this[_0x43f052(0x168)][_0x43f052(0x162)](_0x421978,this[_0x43f052(0x1b4)]);}['_handleTerminate'](){const _0x58ac23=_0x4bfb65;this[_0x58ac23(0x13e)]=null,this[_0x58ac23(0x1a9)]!==_0x58ac23(0x183)&&this[_0x58ac23(0x145)]();}[_0x4bfb65(0x154)](_0x31bffc){const _0x59116b=_0x4bfb65;if(this['_status']===_0x59116b(0x1be)&&this[_0x59116b(0x13e)]===_0x31bffc[_0x59116b(0x175)][_0x59116b(0x137)]){let _0x7a39f0=_0x5034fc(_0x31bffc[_0x59116b(0x175)])[_0x59116b(0x1a1)][_0x59116b(0x17b)]()[_0x59116b(0x172)](_0x3a37c3=>_0x3a37c3['id']===_0x5c83b9['id']);if(_0x7a39f0){let _0x26d748=_0x7a39f0[_0x59116b(0x1b2)]['unitId'],_0x1afc87=_0x7a39f0[_0x59116b(0x1b2)][_0x59116b(0x194)]['id'];setTimeout(()=>{const _0x2d3809=_0x59116b;this[_0x2d3809(0x186)]['executeCommand'](_0x3bef8f['id'],{'unitId':_0x26d748,'subUnitId':_0x1afc87},{'fromCollab':!0x0});});}}}[_0x4bfb65(0x185)](){const _0x5a1666=_0x4bfb65;var _0x39fb0a;(_0x39fb0a=this['_commandDisposable'])==null||_0x39fb0a[_0x5a1666(0x1bc)](),this[_0x5a1666(0x1aa)]['next']('presenting');let _0x1b1fb7=new Map(),_0x50dd89=this[_0x5a1666(0x149)]=new _0x32b6cc();_0x50dd89['add'](_0x3bc937(()=>{_0x1b1fb7['forEach'](({subject:_0x4cf126,subscription:_0x428f19})=>{const _0x303858=_0x2290;_0x428f19[_0x303858(0x1b5)](),_0x4cf126['complete']();}),_0x1b1fb7['clear']();})),_0x50dd89[_0x5a1666(0x12d)](this[_0x5a1666(0x186)]['onCommandExecuted'](_0x40d0e6=>{const _0x11e372=_0x5a1666;if(_0x40d0e6[_0x11e372(0x131)]!==_0x19d177['OPERATION']||!this[_0x11e372(0x143)][_0x11e372(0x15d)](_0x40d0e6['id']))return;let {id:_0x125e6e}=_0x40d0e6,_0x166778;if(_0x1b1fb7['has'](_0x125e6e))_0x166778=_0x1b1fb7[_0x11e372(0x192)](_0x125e6e)[_0x11e372(0x19a)];else{var _0x8a0057;_0x166778=new _0x5f429a();let _0x19d9a5=_0x166778['pipe'](_0x16b8ad((_0x8a0057=this[_0x11e372(0x1c0)][_0x11e372(0x14c)](_0x11e372(0x1a6)))==null?0xc8:_0x8a0057,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11e372(0x16c)](_0x4da033=>{const _0x1493f2=_0x11e372;this[_0x1493f2(0x168)][_0x1493f2(0x162)]({'eventID':_0x13fab2[_0x1493f2(0x1bf)],'data':{'unitID':this[_0x1493f2(0x1b4)],'operations':{[_0x4da033['id']]:{'id':_0x4da033['id'],'params':JSON['stringify'](_0x4da033[_0x1493f2(0x1b2)])}}}},this[_0x1493f2(0x1b4)]);});_0x1b1fb7['set'](_0x125e6e,{'subject':_0x166778,'subscription':_0x19d9a5});}_0x166778['next'](_0x40d0e6);})),this[_0x5a1666(0x143)]['getInitialStates'](this[_0x5a1666(0x1b4)])[_0x5a1666(0x1ba)](_0x373811=>this[_0x5a1666(0x168)][_0x5a1666(0x162)]({'eventID':_0x13fab2[_0x5a1666(0x1bf)],'data':{'unitID':this[_0x5a1666(0x1b4)],'operations':{[_0x373811['id']]:{'id':_0x373811['id'],'params':JSON[_0x5a1666(0x18f)](_0x373811[_0x5a1666(0x1b2)])}}}},this[_0x5a1666(0x1b4)]));}[_0x4bfb65(0x17d)](){const _0x227d47=_0x4bfb65;var _0x28363f;this[_0x227d47(0x1aa)][_0x227d47(0x16b)]('idle'),(_0x28363f=this[_0x227d47(0x149)])==null||_0x28363f[_0x227d47(0x1bc)](),this[_0x227d47(0x149)]=null;}[_0x4bfb65(0x1b3)](){const _0x1665ea=_0x4bfb65;var _0x28bc13;(_0x28bc13=this['_commandDisposable'])==null||_0x28bc13[_0x1665ea(0x1bc)](),this['_status$'][_0x1665ea(0x16b)]('following');}[_0x4bfb65(0x145)](){const _0x10c040=_0x4bfb65;var _0x1dc827;this[_0x10c040(0x1aa)][_0x10c040(0x16b)](_0x10c040(0x197)),(_0x1dc827=this[_0x10c040(0x149)])==null||_0x1dc827[_0x10c040(0x1bc)](),this[_0x10c040(0x149)]=null;}[_0x4bfb65(0x13f)](){const _0xc37d19=_0x4bfb65;var _0x14363b;this[_0xc37d19(0x1aa)][_0xc37d19(0x16b)](_0xc37d19(0x12e)),(_0x14363b=this[_0xc37d19(0x149)])==null||_0x14363b[_0xc37d19(0x1bc)]();}[_0x4bfb65(0x160)](_0x4d5f6f){const _0x128a36=_0x4bfb65;if([_0x128a36(0x183),_0x128a36(0x12e),_0x128a36(0x151)][_0x128a36(0x1a8)](this[_0x128a36(0x1a9)])||!_0x4d5f6f['data']['presenter']||_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x18e)]===this[_0x128a36(0x168)]['getMemberID']())return;this[_0x128a36(0x1a9)]==='idle'&&this[_0x128a36(0x1b3)]();let _0x4eb22e=_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x1b1)];Object[_0x128a36(0x17f)](_0x4eb22e)[_0x128a36(0x1ba)](_0x24f510=>{const _0x19545e=_0x128a36;this[_0x19545e(0x186)][_0x19545e(0x171)](_0x24f510['id'],_0x24f510['params']?JSON[_0x19545e(0x19f)](_0x24f510[_0x19545e(0x1b2)]):null,{'fromCollab':!0x0});});}[_0x4bfb65(0x1a3)](){const _0x46c67a=_0x4bfb65;var _0x3a08a2;this['_status$'][_0x46c67a(0x16b)](_0x46c67a(0x151)),(_0x3a08a2=this[_0x46c67a(0x149)])==null||_0x3a08a2[_0x46c67a(0x1bc)]();}[_0x4bfb65(0x13c)](){const _0xad2c8f=_0x4bfb65;this['_status$']['next'](_0xad2c8f(0x197)),this[_0xad2c8f(0x189)]();}};q=W([U(0x2,_0x25496e),U(0x3,_0x56773e(H)),U(0x4,_0x34d8a7)],q);function J(){const _0x2b336c=_0x4bfb65;let _0x536d64=_0x4aae14(G),_0x447395=_0x4aae14(_0x4f09f7),_0x30f598=_0x2f2a72(()=>_0x447395['getCurrentTypeOfUnit$'](_0x7bf701[_0x2b336c(0x142)]),void 0x0,!0x1,[]),[_0x36884e,_0x4e526d]=_0x3a871b(null),[_0x3e6134,_0x16fc35]=_0x3a871b(_0x2b336c(0x197)),_0xd5a0c3=_0x3b13ea(null);return _0x3b2091(()=>(_0x30f598&&_0x536d64[_0x2b336c(0x1b8)](_0x30f598[_0x2b336c(0x15a)]())[_0x2b336c(0x184)](_0x103eaa=>{const _0x4f9b48=_0x2b336c;_0x4e526d(_0x103eaa),_0xd5a0c3[_0x4f9b48(0x1bb)]=_0x103eaa[_0x4f9b48(0x1ad)]['subscribe'](_0x274dd1=>{_0x16fc35(_0x274dd1);});}),()=>{const _0x3621be=_0x2b336c;var _0x48eb2b;(_0x48eb2b=_0xd5a0c3[_0x3621be(0x1bb)])==null||_0x48eb2b[_0x3621be(0x1b5)](),_0xd5a0c3[_0x3621be(0x1bb)]=null;}),[_0x30f598,_0x536d64]),_0x36884e?_0x5e0507(_0x256d48,{'align':'end','disabled':_0x3e6134===_0x2b336c(0x151),'className':_0x2b336c(0x132),'overlay':_0x5e0507(se,{'status':_0x3e6134,'coordinator':_0x36884e}),'children':_0x5e0507(_0x2b336c(0x193),{'className':_0x16695f(_0x2b336c(0x17c),{'univer-cursor-not-allowed':_0x3e6134===_0x2b336c(0x151),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e6134!=='offline'}),'type':'button','children':_0x5e0507(_0x279c39,{'className':'univer-size-4'})})}):null;}function se(_0x4c043c){const _0x225901=_0x4bfb65;let {status:_0x3bfe2e,coordinator:_0x10bbe5}=_0x4c043c;switch(_0x3bfe2e){case'idle':return _0x5e0507(ce,{'coordinator':_0x10bbe5});case'following':return _0x5e0507(le,{'coordinator':_0x10bbe5});case _0x225901(0x12e):return _0x5e0507(ue,{'coordinator':_0x10bbe5});case _0x225901(0x151):return _0x5e0507(de,{});case'presenting':return _0x5e0507(Y,{'coordinator':_0x10bbe5});default:return null;}}function ce(_0x2b5845){const _0xd66ce=_0x4bfb65;let {coordinator:_0x46b85b}=_0x2b5845;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0xd66ce(0x190),'children':_0xd66ce(0x1b0)}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x46b85b[_0xd66ce(0x148)](),'children':'Start'})]});}function le(_0x2ff54f){const _0x23dab1=_0x4bfb65;let {coordinator:_0x28a05c}=_0x2ff54f;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0x23dab1(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x28a05c[_0x23dab1(0x1b7)](),'children':_0x23dab1(0x1a4)})]});}function ue(_0x471ce3){const _0x5f1e26=_0x4bfb65;let {coordinator:_0x4bb366}=_0x471ce3;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x5f1e26(0x150),{'className':_0x5f1e26(0x190),'children':_0x5f1e26(0x1ac)}),_0x5e0507(_0x2e3da7,{'variant':_0x5f1e26(0x165),'onClick':()=>_0x4bb366[_0x5f1e26(0x15c)](),'children':_0x5f1e26(0x1a5)})]});}function Y(_0x26abfd){const _0x536f53=_0x4bfb65;let {coordinator:_0x24203f}=_0x26abfd;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x536f53(0x150),{'className':_0x536f53(0x190),'children':_0x536f53(0x13a)}),_0x5e0507(_0x2e3da7,{'variant':_0x536f53(0x15f),'onClick':()=>_0x24203f[_0x536f53(0x138)](),'children':'Stop\x20presenting'})]});}function de(){const _0x28505f=_0x4bfb65;return _0x5e0507(_0x2f0b38,{'children':_0x28505f(0x139)});}let X=class extends _0x1ce4ab{constructor(_0x472176,_0x40787e){const _0xbb4c8e=_0x4bfb65;super(),this[_0xbb4c8e(0x17e)]=_0x472176,this[_0xbb4c8e(0x1b6)]=_0x40787e,this['_mountLiveShare']();}[_0x4bfb65(0x15e)](){const _0x2c88d5=_0x4bfb65;this['disposeWithMe'](this[_0x2c88d5(0x1b6)][_0x2c88d5(0x196)](_0x342ffe[_0x2c88d5(0x176)],()=>_0x229861(J,this[_0x2c88d5(0x17e)])));}};X=W([U(0x0,_0x56773e(_0x51a301)),U(0x1,_0x27ea1c)],X);var fe='@univerjs-pro/live-share',pe=_0x4bfb65(0x141);function _0x2290(_0x22c53c,_0x46936c){_0x22c53c=_0x22c53c-0x12d;const _0x41da41=_0x41da();let _0x229021=_0x41da41[_0x22c53c];return _0x229021;}const Z={};let Q=class extends _0x1ce4ab{constructor(_0x294a46){const _0xd1a91c=_0x4bfb65;super(),this[_0xd1a91c(0x143)]=_0x294a46,this[_0xd1a91c(0x181)]();}[_0x4bfb65(0x181)](){[_0x59b108['id'],_0x5abf17['id'],_0x3bef8f['id']]['forEach'](_0x1c12c7=>{const _0x22e397=_0x2290;this[_0x22e397(0x140)](this[_0x22e397(0x143)][_0x22e397(0x173)](_0x1c12c7));});}};Q=W([U(0x0,_0x56773e(H))],Q);let $=class extends _0x1b359a{constructor(_0x183a8d=Z,_0x146c69,_0x3246fd){const _0x3a7986=_0x4bfb65;super(),this[_0x3a7986(0x18b)]=_0x183a8d,this['_injector']=_0x146c69,this['_configService']=_0x3246fd;let {..._0x5d1d2e}=_0x5bb40d({},Z,this[_0x3a7986(0x18b)]);this[_0x3a7986(0x1c0)][_0x3a7986(0x167)](_0x3a7986(0x12f),_0x5d1d2e);}[_0x4bfb65(0x1a0)](){const _0x50b75b=_0x4bfb65;_0x519864(this[_0x50b75b(0x17e)],_0x250f7e([[H],[G],[Q],[X]],this[_0x50b75b(0x18b)]['override'])),_0x4834f3(this[_0x50b75b(0x17e)],[[Q]]);}['onRendered'](){_0x4834f3(this['_injector'],[[X]]);}};V($,_0x4bfb65(0x131),_0x7bf701[_0x4bfb65(0x19b)]),V($,_0x4bfb65(0x133),_0x4bfb65(0x178)),V($,'packageName',fe),V($,'version',pe),$=W([_0x59b5e2(_0x138c17),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x25496e)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x16f6b4=_0x3742;(function(_0xbe56f4,_0x1323af){const _0x337c33=_0x3742,_0x3ee53b=_0xbe56f4();while(!![]){try{const _0x4acf15=-parseInt(_0x337c33(0x20a))/0x1*(parseInt(_0x337c33(0x251))/0x2)+-parseInt(_0x337c33(0x1f3))/0x3+-parseInt(_0x337c33(0x273))/0x4*(-parseInt(_0x337c33(0x22f))/0x5)+-parseInt(_0x337c33(0x26a))/0x6*(parseInt(_0x337c33(0x227))/0x7)+-parseInt(_0x337c33(0x252))/0x8*(-parseInt(_0x337c33(0x1e8))/0x9)+parseInt(_0x337c33(0x20f))/0xa*(-parseInt(_0x337c33(0x239))/0xb)+parseInt(_0x337c33(0x215))/0xc;if(_0x4acf15===_0x1323af)break;else _0x3ee53b['push'](_0x3ee53b['shift']());}catch(_0x12e516){_0x3ee53b['push'](_0x3ee53b['shift']());}}}(_0x2e62,0x24330));import{CommandType as _0x318eb4,DependentOn as _0x3dc140,Disposable as _0x4b5dc9,DisposableCollection as _0x10ec25,ICommandService as _0x4b9491,IConfigService as _0x46eafb,IUniverInstanceService as _0x4dd311,Inject as _0x4b6a05,Injector as _0x2d43c8,Plugin as _0x547cf5,RxDisposable as _0x246302,UniverInstanceType as _0xc09af2,merge as _0x26e587,mergeOverrideWithDependencies as _0x10dc75,registerDependencies as _0x58b3f9,toDisposable as _0x27d417,touchDependencies as _0x4ca10c}from'@univerjs/core';import{BuiltInUIPart as _0x17ec50,IUIPartsService as _0xf530cb,connectInjector as _0x432d78,useDependency as _0x29ecdc,useObservable as _0x41be19}from'@univerjs/ui';function _0x2e62(){const _0x15c915=['_startLiveShareCoordinator','complete','getUnitId','4178304Elrjye','send','_commandService','has','idle','_config','_collabSession','set','setConfig','@univerjs-pro/live-share','next','getOwnPropertyDescriptor','FOLLOWING','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','getLiveShareCoordinator','OPERATION','1114505pXTXpA','live-share.config','_fetchOperations','packageName','_handleTerminate','call','Stop\x20presenting','button','215eebwBW','status$','_handleOnline','reverse','UNIVER_LIVE_SHARE_PLUGIN','operations','decorate','getStatus','length','disposeWithMe','11iGWBuj','get','_injector','requireSession','registerSharedOperation','dispose','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_presenter','registerComponent','function','getInitialStates','following','createInstance','getLiveShareCoordinatorSync','_collabSessionService','UNIVER_UNKNOWN','_beIdle','getTypeOfUnitAdded$','data','unsubscribe','_status','current','onCommandExecuted','unit','6NJZYuP','2370832KBJCbj','add','defineProperty','stopFollowing','end','symbol','getMemberID','type','_handleOffline','univer-size-4','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','presenting','params','_configService','LIVESHARE_REQUEST_HOST','executeCommand','0.25.2','getCurrentTypeOfUnit$','offline','object','_entities','iterator','6AqpmLx','version','_reporters','onStarting','getConfig','string','_startFollowing','onRendered','HEADER_MENU','692scnnix','_handleNewChangeSets','stopPresenting','LIVESHARE_FETCH_OPERATIONS','Start\x20following','_commandDisposable','event$','startFollowing','not-following','_univerInstanceService','_unitID','div','delete','memberID','_startPresenting','9wqNWdx','getValue','_init','asObservable','LIVESHARE_TERMINATE','clear','forEach','_handleOperation','mutations','ONLINE','default','407187CkDRqC','PRESENTING','find','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','prototype','_stopPresenting','_mountLiveShare','pipe','_handleNewHost','Start','presenter','subject','_liveShareService','shouldShareOperation','unitId','sheet','map','You\x27re\x20presenting\x20the\x20document','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','_status$','tryStartPresenting','values','51788HtkqSy','_uiPartsService','getTypeOfUnitDisposed$','UNIVER_SHEET','init','534050ZxqJLt','LIVESHARE_OPERATION','_sharedOperations'];_0x2e62=function(){return _0x15c915;};return _0x2e62();}import{Button as _0x2619a0,Dropdown as _0x3de5e2,clsx as _0x1e00b3}from'@univerjs/design';import{LiveShareIcon as _0x2b4902}from'@univerjs/icons';import{useEffect as _0x2a3129,useRef as _0x5bd35f,useState as _0x1c51b5}from'react';import{CollaborationEvent as _0x2cae52,parseProtocolChangeset as _0x396a82}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x319859,SessionStatus as _0x5e1c26,UniverCollaborationClientPlugin as _0x1faa0e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1274c5,SetWorksheetActiveOperation as _0x4dbd1e}from'@univerjs/sheets';import{BehaviorSubject as _0x3469e3,Subject as _0x4d991e}from'rxjs';import{takeUntil as _0x4753b7,throttleTime as _0x4c79ad}from'rxjs/operators';import{Fragment as _0x348ecc,jsx as _0x5c9867,jsxs as _0xd26927}from'react/jsx-runtime';import{SetScrollOperation as _0x212824,SetZoomRatioOperation as _0x986c73}from'@univerjs/sheets-ui';function R(_0x3e9e4f){'@babel/helpers - typeof';const _0x1872a4=_0x3742;return R=typeof Symbol==_0x1872a4(0x242)&&typeof Symbol[_0x1872a4(0x269)]=='symbol'?function(_0x3b8279){return typeof _0x3b8279;}:function(_0x16292e){const _0x1633d0=_0x1872a4;return _0x16292e&&typeof Symbol==_0x1633d0(0x242)&&_0x16292e['constructor']===Symbol&&_0x16292e!==Symbol[_0x1633d0(0x1f8)]?_0x1633d0(0x257):typeof _0x16292e;},R(_0x3e9e4f);}function z(_0x1b7305,_0x231901){const _0xe171e2=_0x3742;if(R(_0x1b7305)!=_0xe171e2(0x267)||!_0x1b7305)return _0x1b7305;var _0x4015ea=_0x1b7305[Symbol['toPrimitive']];if(_0x4015ea!==void 0x0){var _0x10c469=_0x4015ea[_0xe171e2(0x22c)](_0x1b7305,_0x231901||_0xe171e2(0x1f2));if(R(_0x10c469)!=_0xe171e2(0x267))return _0x10c469;throw TypeError(_0xe171e2(0x23f));}return(_0x231901===_0xe171e2(0x26f)?String:Number)(_0x1b7305);}function B(_0x3f25eb){const _0x24ed25=_0x3742;var _0x1d59d9=z(_0x3f25eb,_0x24ed25(0x26f));return R(_0x1d59d9)==_0x24ed25(0x257)?_0x1d59d9:_0x1d59d9+'';}function V(_0x252af2,_0x37e783,_0x13f43a){const _0x20e5e9=_0x3742;return(_0x37e783=B(_0x37e783))in _0x252af2?Object[_0x20e5e9(0x254)](_0x252af2,_0x37e783,{'value':_0x13f43a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x252af2[_0x37e783]=_0x13f43a,_0x252af2;}var H=class extends _0x4b5dc9{constructor(..._0x24b8e0){const _0x355109=_0x3742;super(..._0x24b8e0),V(this,_0x355109(0x211),new Set()),V(this,_0x355109(0x26c),new Set());}[_0x16f6b4(0x23d)](_0x4d4c37){const _0xb066e2=_0x16f6b4;return this['_sharedOperations'][_0xb066e2(0x253)](_0x4d4c37),_0x27d417(()=>this['_sharedOperations']['delete'](_0x4d4c37));}['registerInitialStateReporter'](_0x128bbc){const _0x4df97e=_0x16f6b4;return this[_0x4df97e(0x26c)][_0x4df97e(0x253)](_0x128bbc),_0x27d417(()=>this[_0x4df97e(0x26c)][_0x4df97e(0x27f)](_0x128bbc));}[_0x16f6b4(0x201)](_0x338c3d){const _0x93f989=_0x16f6b4;return this['_sharedOperations'][_0x93f989(0x218)](_0x338c3d);}['getInitialStates'](_0x1949df){const _0x15b3a2=_0x16f6b4;return Array['from'](this['_reporters'])[_0x15b3a2(0x204)](_0x5d5d48=>_0x5d5d48(_0x1949df));}};function U(_0x41d8d8,_0x4f02c7){return function(_0x2a5410,_0x297b16){_0x4f02c7(_0x2a5410,_0x297b16,_0x41d8d8);};}function W(_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55){const _0x2358f9=_0x16f6b4;var _0x2664d2=arguments[_0x2358f9(0x237)],_0x53d012=_0x2664d2<0x3?_0x208c0b:_0x4e5d55===null?_0x4e5d55=Object[_0x2358f9(0x220)](_0x208c0b,_0xd3707f):_0x4e5d55,_0x2a2d17;if(typeof Reflect=='object'&&typeof Reflect[_0x2358f9(0x235)]==_0x2358f9(0x242))_0x53d012=Reflect['decorate'](_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55);else{for(var _0x24007c=_0x556e8b[_0x2358f9(0x237)]-0x1;_0x24007c>=0x0;_0x24007c--)(_0x2a2d17=_0x556e8b[_0x24007c])&&(_0x53d012=(_0x2664d2<0x3?_0x2a2d17(_0x53d012):_0x2664d2>0x3?_0x2a2d17(_0x208c0b,_0xd3707f,_0x53d012):_0x2a2d17(_0x208c0b,_0xd3707f))||_0x53d012);}return _0x2664d2>0x3&&_0x53d012&&Object['defineProperty'](_0x208c0b,_0xd3707f,_0x53d012),_0x53d012;}let G=class extends _0x246302{constructor(_0x1d6ebd,_0x5cfe0a,_0x5bb5f6){const _0x3c5d68=_0x16f6b4;super(),this[_0x3c5d68(0x27c)]=_0x1d6ebd,this[_0x3c5d68(0x23b)]=_0x5cfe0a,this['_collabSessionService']=_0x5bb5f6,V(this,_0x3c5d68(0x268),new Map()),this[_0x3c5d68(0x1ea)]();}async['getLiveShareCoordinator'](_0xca9b28){const _0x22b13f=_0x16f6b4;return this[_0x22b13f(0x268)][_0x22b13f(0x218)](_0xca9b28)||await this['_startLiveShareCoordinator'](_0xca9b28),this[_0x22b13f(0x268)][_0x22b13f(0x23a)](_0xca9b28);}[_0x16f6b4(0x246)](_0x4c2a86){const _0x4bdec6=_0x16f6b4;var _0x367c89;return(_0x367c89=this[_0x4bdec6(0x268)]['get'](_0x4c2a86))==null?null:_0x367c89;}[_0x16f6b4(0x1ea)](){const _0x22f1ef=_0x16f6b4;this[_0x22f1ef(0x27c)][_0x22f1ef(0x24a)](_0xc09af2[_0x22f1ef(0x20d)])['pipe'](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](async _0x46ef61=>{const _0x4ecb41=_0x22f1ef;let _0x9bee9=_0x46ef61[_0x4ecb41(0x250)][_0x4ecb41(0x214)]();this['_entities']['has'](_0x9bee9)||this['_startLiveShareCoordinator'](_0x9bee9);}),this[_0x22f1ef(0x27c)][_0x22f1ef(0x20c)](_0xc09af2['UNIVER_SHEET'])[_0x22f1ef(0x1fb)](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](_0x150fdb=>{const _0x348bcb=_0x22f1ef;let _0x367776=_0x150fdb[_0x348bcb(0x214)](),_0x171bbc=this['_entities'][_0x348bcb(0x23a)](_0x367776);_0x171bbc==null||_0x171bbc[_0x348bcb(0x23e)]();});}async[_0x16f6b4(0x212)](_0x23be78){const _0x483707=_0x16f6b4;let _0x468fba=await this[_0x483707(0x247)][_0x483707(0x23c)](_0x23be78),_0x5179c0=this[_0x483707(0x23b)][_0x483707(0x245)](q,_0x23be78,_0x468fba);return _0x5179c0[_0x483707(0x20e)](),this[_0x483707(0x268)][_0x483707(0x21c)](_0x23be78,_0x5179c0),_0x5179c0;}};G=W([U(0x0,_0x4dd311),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x4b6a05(_0x319859))],G);let K=function(_0x347eee){const _0x34ecb8=_0x16f6b4;return _0x347eee[_0x34ecb8(0x25c)]='offline',_0x347eee['IDLE']=_0x34ecb8(0x219),_0x347eee[_0x34ecb8(0x221)]='following',_0x347eee['NOT_FOLLOWING']=_0x34ecb8(0x27b),_0x347eee[_0x34ecb8(0x1f4)]=_0x34ecb8(0x25f),_0x347eee;}({}),q=class extends _0x246302{get[_0x16f6b4(0x24d)](){const _0x59a97f=_0x16f6b4;return this[_0x59a97f(0x207)][_0x59a97f(0x1e9)]();}constructor(_0xea7a2,_0x44fcbc,_0x4e3e8c,_0x43c228,_0x4ee2bd){const _0x11b6d9=_0x16f6b4;super(),this[_0x11b6d9(0x27d)]=_0xea7a2,this[_0x11b6d9(0x21b)]=_0x44fcbc,this[_0x11b6d9(0x261)]=_0x4e3e8c,this[_0x11b6d9(0x200)]=_0x43c228,this[_0x11b6d9(0x217)]=_0x4ee2bd,V(this,_0x11b6d9(0x207),new _0x3469e3(_0x11b6d9(0x219))),V(this,_0x11b6d9(0x230),this['_status$'][_0x11b6d9(0x1eb)]()),V(this,'_init',!0x1),V(this,_0x11b6d9(0x278),null),V(this,_0x11b6d9(0x240),null);}[_0x16f6b4(0x23e)](){const _0x46d22a=_0x16f6b4;var _0x3b758c;(_0x3b758c=this[_0x46d22a(0x278)])==null||_0x3b758c['dispose'](),this[_0x46d22a(0x207)][_0x46d22a(0x21f)]('idle'),this[_0x46d22a(0x207)][_0x46d22a(0x213)]();}[_0x16f6b4(0x236)](){return this['_status'];}[_0x16f6b4(0x20e)](){const _0x1ec00a=_0x16f6b4;this[_0x1ec00a(0x1ea)]||(this[_0x1ec00a(0x1ea)]=!0x0,this[_0x1ec00a(0x21b)][_0x1ec00a(0x25e)][_0x1ec00a(0x1fb)](_0x4753b7(this['dispose$']))[_0x1ec00a(0x222)](_0x4f2427=>{const _0x1aeb31=_0x1ec00a;switch(_0x4f2427){case _0x5e1c26['OFFLINE']:this[_0x1aeb31(0x25a)]();break;case _0x5e1c26[_0x1aeb31(0x1f1)]:this[_0x1aeb31(0x231)]();break;default:}}),this[_0x1ec00a(0x21b)][_0x1ec00a(0x279)][_0x1ec00a(0x1fb)](_0x4753b7(this[_0x1ec00a(0x1f7)]))[_0x1ec00a(0x222)](_0x19281a=>{const _0x23e4c8=_0x1ec00a;let {eventID:_0x24942e}=_0x19281a;switch(_0x24942e){case _0x2cae52['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x210)]:this[_0x23e4c8(0x1ef)](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x1ec)]:this[_0x23e4c8(0x22b)]();break;case _0x2cae52['NEW_CHANGESETS']:this[_0x23e4c8(0x274)](_0x19281a);break;default:}}));}[_0x16f6b4(0x208)](){const _0x2aa90c=_0x16f6b4;this['_collabSession'][_0x2aa90c(0x216)]({'eventID':_0x2cae52[_0x2aa90c(0x262)],'data':{'unitID':this[_0x2aa90c(0x27d)],'userID':this[_0x2aa90c(0x21b)][_0x2aa90c(0x258)]()}},this[_0x2aa90c(0x27d)]);}[_0x16f6b4(0x275)](){const _0x281895=_0x16f6b4;this[_0x281895(0x24d)]==='presenting'&&(this[_0x281895(0x207)]['next'](_0x281895(0x219)),this[_0x281895(0x21b)][_0x281895(0x216)]({'eventID':_0x2cae52[_0x281895(0x1ec)],'data':{'unitID':this[_0x281895(0x27d)]}},this[_0x281895(0x27d)]));}[_0x16f6b4(0x27a)](){const _0x4f4627=_0x16f6b4;this[_0x4f4627(0x24d)]===_0x4f4627(0x27b)&&(this[_0x4f4627(0x207)][_0x4f4627(0x21f)](_0x4f4627(0x244)),this[_0x4f4627(0x270)]());}[_0x16f6b4(0x255)](){const _0x2197dc=_0x16f6b4;this[_0x2197dc(0x24d)]===_0x2197dc(0x244)&&this[_0x2197dc(0x224)]();}[_0x16f6b4(0x1fc)](_0x338793){const _0x1893b5=_0x16f6b4;let {presenter:_0x5c9d4e}=_0x338793[_0x1893b5(0x24b)],_0x33f279=this['_collabSession'][_0x1893b5(0x258)]();this[_0x1893b5(0x240)]=_0x5c9d4e,_0x5c9d4e===_0x33f279?(this[_0x1893b5(0x224)](),this[_0x1893b5(0x1e7)]()):this['_status']!==_0x1893b5(0x27b)&&(this[_0x1893b5(0x1f9)](),this[_0x1893b5(0x270)]());}['_fetchOperations'](){const _0x468504=_0x16f6b4;let _0x14ca89={'eventID':_0x2cae52[_0x468504(0x276)]};this[_0x468504(0x21b)][_0x468504(0x216)](_0x14ca89,this[_0x468504(0x27d)]);}[_0x16f6b4(0x22b)](){const _0x9f602=_0x16f6b4;this[_0x9f602(0x240)]=null,this[_0x9f602(0x24d)]!==_0x9f602(0x25f)&&this[_0x9f602(0x249)]();}[_0x16f6b4(0x274)](_0x182347){const _0x2f79f1=_0x16f6b4;if(this[_0x2f79f1(0x24d)]===_0x2f79f1(0x244)&&this[_0x2f79f1(0x240)]===_0x182347[_0x2f79f1(0x24b)][_0x2f79f1(0x1e6)]){let _0x29ab7b=_0x396a82(_0x182347['data'])[_0x2f79f1(0x1f0)][_0x2f79f1(0x232)]()[_0x2f79f1(0x1f5)](_0x317f74=>_0x317f74['id']===_0x1274c5['id']);if(_0x29ab7b){let _0x4f5ce3=_0x29ab7b[_0x2f79f1(0x260)][_0x2f79f1(0x202)],_0x45d03e=_0x29ab7b['params'][_0x2f79f1(0x203)]['id'];setTimeout(()=>{const _0x34be81=_0x2f79f1;this[_0x34be81(0x217)][_0x34be81(0x263)](_0x4dbd1e['id'],{'unitId':_0x4f5ce3,'subUnitId':_0x45d03e},{'fromCollab':!0x0});});}}}[_0x16f6b4(0x1e7)](){const _0x12138e=_0x16f6b4;var _0x3b4740;(_0x3b4740=this[_0x12138e(0x278)])==null||_0x3b4740['dispose'](),this[_0x12138e(0x207)][_0x12138e(0x21f)](_0x12138e(0x25f));let _0x3214a1=new Map(),_0x3a141d=this[_0x12138e(0x278)]=new _0x10ec25();_0x3a141d['add'](_0x27d417(()=>{const _0x2fd1fd=_0x12138e;_0x3214a1[_0x2fd1fd(0x1ee)](({subject:_0x4ea995,subscription:_0x131f62})=>{const _0x54ee80=_0x2fd1fd;_0x131f62[_0x54ee80(0x24c)](),_0x4ea995[_0x54ee80(0x213)]();}),_0x3214a1[_0x2fd1fd(0x1ed)]();})),_0x3a141d[_0x12138e(0x253)](this[_0x12138e(0x217)][_0x12138e(0x24f)](_0x585c1e=>{const _0x4a75df=_0x12138e;if(_0x585c1e[_0x4a75df(0x259)]!==_0x318eb4[_0x4a75df(0x226)]||!this['_liveShareService']['shouldShareOperation'](_0x585c1e['id']))return;let {id:_0x1e7cb3}=_0x585c1e,_0x5d0b22;if(_0x3214a1[_0x4a75df(0x218)](_0x1e7cb3))_0x5d0b22=_0x3214a1[_0x4a75df(0x23a)](_0x1e7cb3)[_0x4a75df(0x1ff)];else{var _0x521465;_0x5d0b22=new _0x4d991e();let _0x59e029=_0x5d0b22[_0x4a75df(0x1fb)](_0x4c79ad((_0x521465=this['_configService'][_0x4a75df(0x26e)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x521465,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a75df(0x222)](_0x3606d9=>{const _0x1fd8b2=_0x4a75df;this[_0x1fd8b2(0x21b)][_0x1fd8b2(0x216)]({'eventID':_0x2cae52['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1fd8b2(0x27d)],'operations':{[_0x3606d9['id']]:{'id':_0x3606d9['id'],'params':JSON['stringify'](_0x3606d9['params'])}}}},this['_unitID']);});_0x3214a1['set'](_0x1e7cb3,{'subject':_0x5d0b22,'subscription':_0x59e029});}_0x5d0b22[_0x4a75df(0x21f)](_0x585c1e);})),this[_0x12138e(0x200)][_0x12138e(0x243)](this[_0x12138e(0x27d)])[_0x12138e(0x1ee)](_0x3d0df9=>this[_0x12138e(0x21b)][_0x12138e(0x216)]({'eventID':_0x2cae52[_0x12138e(0x210)],'data':{'unitID':this[_0x12138e(0x27d)],'operations':{[_0x3d0df9['id']]:{'id':_0x3d0df9['id'],'params':JSON['stringify'](_0x3d0df9[_0x12138e(0x260)])}}}},this[_0x12138e(0x27d)]));}[_0x16f6b4(0x1f9)](){const _0x73ad3d=_0x16f6b4;var _0x5d58c7;this[_0x73ad3d(0x207)][_0x73ad3d(0x21f)](_0x73ad3d(0x219)),(_0x5d58c7=this[_0x73ad3d(0x278)])==null||_0x5d58c7[_0x73ad3d(0x23e)](),this[_0x73ad3d(0x278)]=null;}[_0x16f6b4(0x270)](){const _0x5cbe0a=_0x16f6b4;var _0x47962c;(_0x47962c=this[_0x5cbe0a(0x278)])==null||_0x47962c[_0x5cbe0a(0x23e)](),this[_0x5cbe0a(0x207)][_0x5cbe0a(0x21f)](_0x5cbe0a(0x244));}[_0x16f6b4(0x249)](){const _0x1d139b=_0x16f6b4;var _0x5e6e0c;this['_status$']['next'](_0x1d139b(0x219)),(_0x5e6e0c=this[_0x1d139b(0x278)])==null||_0x5e6e0c['dispose'](),this[_0x1d139b(0x278)]=null;}['_stopFollowing'](){const _0x1c5035=_0x16f6b4;var _0x23e119;this['_status$'][_0x1c5035(0x21f)](_0x1c5035(0x27b)),(_0x23e119=this[_0x1c5035(0x278)])==null||_0x23e119['dispose']();}['_handleOperation'](_0x339c28){const _0x36f506=_0x16f6b4;if([_0x36f506(0x25f),'not-following','offline']['includes'](this['_status'])||!_0x339c28[_0x36f506(0x24b)][_0x36f506(0x1fe)]||_0x339c28[_0x36f506(0x24b)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x36f506(0x219)&&this[_0x36f506(0x270)]();let _0x46302c=_0x339c28['data'][_0x36f506(0x234)];Object[_0x36f506(0x209)](_0x46302c)['forEach'](_0x4befca=>{const _0x356e47=_0x36f506;this[_0x356e47(0x217)][_0x356e47(0x263)](_0x4befca['id'],_0x4befca[_0x356e47(0x260)]?JSON['parse'](_0x4befca[_0x356e47(0x260)]):null,{'fromCollab':!0x0});});}[_0x16f6b4(0x25a)](){const _0x39c7fa=_0x16f6b4;var _0xe6f605;this[_0x39c7fa(0x207)][_0x39c7fa(0x21f)]('offline'),(_0xe6f605=this[_0x39c7fa(0x278)])==null||_0xe6f605[_0x39c7fa(0x23e)]();}[_0x16f6b4(0x231)](){const _0x4a0064=_0x16f6b4;this[_0x4a0064(0x207)][_0x4a0064(0x21f)](_0x4a0064(0x219)),this[_0x4a0064(0x229)]();}};q=W([U(0x2,_0x46eafb),U(0x3,_0x4b6a05(H)),U(0x4,_0x4b9491)],q);function J(){const _0x1d0d87=_0x16f6b4;let _0x40471f=_0x29ecdc(G),_0x2ebc98=_0x29ecdc(_0x4dd311),_0x219b0f=_0x41be19(()=>_0x2ebc98[_0x1d0d87(0x265)](_0xc09af2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x29df55,_0xda225c]=_0x1c51b5(null),[_0x2924ce,_0x4d9eb1]=_0x1c51b5(_0x1d0d87(0x219)),_0x48da4b=_0x5bd35f(null);return _0x2a3129(()=>(_0x219b0f&&_0x40471f[_0x1d0d87(0x225)](_0x219b0f[_0x1d0d87(0x214)]())['then'](_0xb1f964=>{const _0xa6a2d9=_0x1d0d87;_0xda225c(_0xb1f964),_0x48da4b[_0xa6a2d9(0x24e)]=_0xb1f964[_0xa6a2d9(0x230)]['subscribe'](_0x4049e2=>{_0x4d9eb1(_0x4049e2);});}),()=>{const _0x2b3bee=_0x1d0d87;var _0x11b8e3;(_0x11b8e3=_0x48da4b[_0x2b3bee(0x24e)])==null||_0x11b8e3[_0x2b3bee(0x24c)](),_0x48da4b['current']=null;}),[_0x219b0f,_0x40471f]),_0x29df55?_0x5c9867(_0x3de5e2,{'align':_0x1d0d87(0x256),'disabled':_0x2924ce===_0x1d0d87(0x266),'className':_0x1d0d87(0x206),'overlay':_0x5c9867(se,{'status':_0x2924ce,'coordinator':_0x29df55}),'children':_0x5c9867(_0x1d0d87(0x22e),{'className':_0x1e00b3(_0x1d0d87(0x25d),{'univer-cursor-not-allowed':_0x2924ce===_0x1d0d87(0x266),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2924ce!==_0x1d0d87(0x266)}),'type':'button','children':_0x5c9867(_0x2b4902,{'className':_0x1d0d87(0x25b)})})}):null;}function se(_0x467be9){const _0x4d6a22=_0x16f6b4;let {status:_0x2cd5d4,coordinator:_0x46592f}=_0x467be9;switch(_0x2cd5d4){case _0x4d6a22(0x219):return _0x5c9867(ce,{'coordinator':_0x46592f});case _0x4d6a22(0x244):return _0x5c9867(le,{'coordinator':_0x46592f});case'not-following':return _0x5c9867(ue,{'coordinator':_0x46592f});case'offline':return _0x5c9867(de,{});case _0x4d6a22(0x25f):return _0x5c9867(Y,{'coordinator':_0x46592f});default:return null;}}function ce(_0x5e8103){const _0x4e0596=_0x16f6b4;let {coordinator:_0x3e8ade}=_0x5e8103;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x4e0596(0x27e),{'className':_0x4e0596(0x223),'children':'Present\x20this\x20document'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x3e8ade[_0x4e0596(0x208)](),'children':_0x4e0596(0x1fd)})]});}function le(_0x90c1d4){const _0x3f6913=_0x16f6b4;let {coordinator:_0x938efe}=_0x90c1d4;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x3f6913(0x223),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x938efe['stopFollowing'](),'children':'Stop\x20following'})]});}function ue(_0x1d9a12){const _0x164b03=_0x16f6b4;let {coordinator:_0x267752}=_0x1d9a12;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x164b03(0x223),'children':_0x164b03(0x1f6)}),_0x5c9867(_0x2619a0,{'variant':'text','onClick':()=>_0x267752[_0x164b03(0x27a)](),'children':_0x164b03(0x277)})]});}function Y(_0x17faf0){const _0x30f79a=_0x16f6b4;let {coordinator:_0x5d4fee}=_0x17faf0;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x30f79a(0x27e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x30f79a(0x205)}),_0x5c9867(_0x2619a0,{'variant':_0x30f79a(0x1f2),'onClick':()=>_0x5d4fee[_0x30f79a(0x275)](),'children':_0x30f79a(0x22d)})]});}function de(){return _0x5c9867(_0x348ecc,{'children':'You\x27are\x20offline.'});}function _0x3742(_0x4ee06f,_0x354a27){_0x4ee06f=_0x4ee06f-0x1e6;const _0x2e6279=_0x2e62();let _0x3742d7=_0x2e6279[_0x4ee06f];return _0x3742d7;}let X=class extends _0x4b5dc9{constructor(_0x2359b1,_0x1e5f00){const _0x350581=_0x16f6b4;super(),this[_0x350581(0x23b)]=_0x2359b1,this[_0x350581(0x20b)]=_0x1e5f00,this[_0x350581(0x1fa)]();}[_0x16f6b4(0x1fa)](){const _0x313462=_0x16f6b4;this[_0x313462(0x238)](this['_uiPartsService'][_0x313462(0x241)](_0x17ec50[_0x313462(0x272)],()=>_0x432d78(J,this[_0x313462(0x23b)])));}};X=W([U(0x0,_0x4b6a05(_0x2d43c8)),U(0x1,_0xf530cb)],X);var fe=_0x16f6b4(0x21e),pe=_0x16f6b4(0x264);const Z={};let Q=class extends _0x4b5dc9{constructor(_0x3c125e){const _0x5d5110=_0x16f6b4;super(),this[_0x5d5110(0x200)]=_0x3c125e,this[_0x5d5110(0x1ea)]();}['_init'](){const _0x4125d=_0x16f6b4;[_0x986c73['id'],_0x212824['id'],_0x4dbd1e['id']][_0x4125d(0x1ee)](_0x325094=>{const _0x4a1ff1=_0x4125d;this[_0x4a1ff1(0x238)](this['_liveShareService'][_0x4a1ff1(0x23d)](_0x325094));});}};Q=W([U(0x0,_0x4b6a05(H))],Q);let $=class extends _0x547cf5{constructor(_0x486e10=Z,_0x1c92f3,_0x552075){const _0x5f00ee=_0x16f6b4;super(),this['_config']=_0x486e10,this['_injector']=_0x1c92f3,this[_0x5f00ee(0x261)]=_0x552075;let {..._0xa4d04}=_0x26e587({},Z,this[_0x5f00ee(0x21a)]);this[_0x5f00ee(0x261)][_0x5f00ee(0x21d)](_0x5f00ee(0x228),_0xa4d04);}[_0x16f6b4(0x26d)](){const _0x17e6eb=_0x16f6b4;_0x58b3f9(this[_0x17e6eb(0x23b)],_0x10dc75([[H],[G],[Q],[X]],this[_0x17e6eb(0x21a)]['override'])),_0x4ca10c(this[_0x17e6eb(0x23b)],[[Q]]);}[_0x16f6b4(0x271)](){const _0x590c40=_0x16f6b4;_0x4ca10c(this[_0x590c40(0x23b)],[[X]]);}};V($,'type',_0xc09af2[_0x16f6b4(0x248)]),V($,'pluginName',_0x16f6b4(0x233)),V($,_0x16f6b4(0x22a),fe),V($,_0x16f6b4(0x26b),pe),$=W([_0x3dc140(_0x1faa0e),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x46eafb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x479317=_0x465e;(function(_0x26affc,_0x503bbb){const _0x27347e=_0x465e,_0x3d9fcb=_0x26affc();while(!![]){try{const _0x4edb63=-parseInt(_0x27347e(0x11b))/0x1*(parseInt(_0x27347e(0x102))/0x2)+-parseInt(_0x27347e(0x112))/0x3*(parseInt(_0x27347e(0x111))/0x4)+parseInt(_0x27347e(0x117))/0x5*(-parseInt(_0x27347e(0x105))/0x6)+-parseInt(_0x27347e(0x10f))/0x7*(parseInt(_0x27347e(0x116))/0x8)+parseInt(_0x27347e(0x101))/0x9+-parseInt(_0x27347e(0x103))/0xa+parseInt(_0x27347e(0x127))/0xb*(parseInt(_0x27347e(0x11f))/0xc);if(_0x4edb63===_0x503bbb)break;else _0x3d9fcb['push'](_0x3d9fcb['shift']());}catch(_0x96f3e3){_0x3d9fcb['push'](_0x3d9fcb['shift']());}}}(_0x382a,0x80f05));import{LiveShareController as _0x28024b,LiveShareStatus as _0x588e6b}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x2f1278,UniverInstanceType as _0x406c94}from'@univerjs/core';import{FEnum as _0x41621a,FUniver as _0x195e9f}from'@univerjs/core/facade';function o(_0x4d79f7){'@babel/helpers - typeof';const _0x34561e=_0x465e;return o=typeof Symbol==_0x34561e(0x126)&&typeof Symbol[_0x34561e(0x106)]==_0x34561e(0x123)?function(_0x49dcc5){return typeof _0x49dcc5;}:function(_0x14b427){const _0x246dfc=_0x34561e;return _0x14b427&&typeof Symbol==_0x246dfc(0x126)&&_0x14b427[_0x246dfc(0x119)]===Symbol&&_0x14b427!==Symbol['prototype']?_0x246dfc(0x123):typeof _0x14b427;},o(_0x4d79f7);}function s(_0x1efcc3,_0x4134f7){const _0x5a20e6=_0x465e;if(o(_0x1efcc3)!='object'||!_0x1efcc3)return _0x1efcc3;var _0x517c85=_0x1efcc3[Symbol[_0x5a20e6(0x10b)]];if(_0x517c85!==void 0x0){var _0x4a6c32=_0x517c85[_0x5a20e6(0x11c)](_0x1efcc3,_0x4134f7||'default');if(o(_0x4a6c32)!=_0x5a20e6(0x120))return _0x4a6c32;throw TypeError(_0x5a20e6(0x113));}return(_0x4134f7===_0x5a20e6(0x11a)?String:Number)(_0x1efcc3);}function c(_0x1a2066){const _0xfdeb88=_0x465e;var _0x1b37da=s(_0x1a2066,'string');return o(_0x1b37da)==_0xfdeb88(0x123)?_0x1b37da:_0x1b37da+'';}function _0x465e(_0x474c9e,_0x54d3a6){_0x474c9e=_0x474c9e-0xff;const _0x382ae5=_0x382a();let _0x465e85=_0x382ae5[_0x474c9e];return _0x465e85;}function l(_0x1880cb,_0x40b37f,_0x3ffddb){return(_0x40b37f=c(_0x40b37f))in _0x1880cb?Object['defineProperty'](_0x1880cb,_0x40b37f,{'value':_0x3ffddb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1880cb[_0x40b37f]=_0x3ffddb,_0x1880cb;}function _0x382a(){const _0x5b63cb=['stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','symbol','getStatus','getLiveShareStatus','function','236841GmTTae','_liveShareController','tryStartPresenting','1856394ObeVpo','1814734nVuvoy','22870nWIPsk','_injector','319038EeFnjt','iterator','UNIVER_SHEET','stopPresenting','get','getLiveShareCoordinatorSync','toPrimitive','startFollowing','LiveShareStatusEnum','_initialize','77ltOahK','extend','4YdhmgN','533073sFVFCn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','No\x20active\x20workbook\x20found.','getUnitId','107320XBcqBh','50wKkMTZ','getCurrentUnitOfType','constructor','string','1EkTKvK','call','startPresenting','IDLE','1164rDtQow','object'];_0x382a=function(){return _0x5b63cb;};return _0x382a();}var u=class extends _0x195e9f{constructor(..._0x196698){const _0x313544=_0x465e;super(..._0x196698),l(this,_0x313544(0xff),void 0x0);}[_0x479317(0x10e)](_0x179031){const _0x4ade56=_0x479317;this[_0x4ade56(0xff)]=_0x179031['get'](_0x28024b);}[_0x479317(0x125)](){const _0x3f70e6=_0x479317;var _0x316a54;let _0x436d02=this[_0x3f70e6(0x104)][_0x3f70e6(0x109)](_0x2f1278)[_0x3f70e6(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x436d02)throw Error(_0x3f70e6(0x114));let _0x512262=_0x436d02[_0x3f70e6(0x115)](),_0x5a0cb5=this[_0x3f70e6(0xff)][_0x3f70e6(0x10a)](_0x512262);return(_0x316a54=_0x5a0cb5==null?void 0x0:_0x5a0cb5[_0x3f70e6(0x124)]())==null?_0x588e6b[_0x3f70e6(0x11e)]:_0x316a54;}[_0x479317(0x10c)](){const _0xf36b55=_0x479317;let _0x3b91c8=this[_0xf36b55(0x104)][_0xf36b55(0x109)](_0x2f1278)[_0xf36b55(0x118)](_0x406c94['UNIVER_SHEET']);if(!_0x3b91c8)throw Error(_0xf36b55(0x114));let _0x4f4feb=_0x3b91c8[_0xf36b55(0x115)](),_0x231e47=this[_0xf36b55(0xff)]['getLiveShareCoordinatorSync'](_0x4f4feb);if(!_0x231e47)throw Error(_0xf36b55(0x122));_0x231e47[_0xf36b55(0x10c)]();}[_0x479317(0x121)](){const _0x318964=_0x479317;let _0x2c9664=this['_injector']['get'](_0x2f1278)[_0x318964(0x118)](_0x406c94[_0x318964(0x107)]);if(!_0x2c9664)throw Error(_0x318964(0x114));let _0x48a1fb=_0x2c9664[_0x318964(0x115)](),_0x557416=this['_liveShareController'][_0x318964(0x10a)](_0x48a1fb);if(!_0x557416)throw Error(_0x318964(0x122));_0x557416['stopFollowing']();}[_0x479317(0x11d)](){const _0x18908d=_0x479317;let _0x255945=this[_0x18908d(0x104)][_0x18908d(0x109)](_0x2f1278)['getCurrentUnitOfType'](_0x406c94['UNIVER_SHEET']);if(!_0x255945)throw Error('No\x20active\x20workbook\x20found.');let _0x199978=_0x255945[_0x18908d(0x115)](),_0xe89591=this[_0x18908d(0xff)][_0x18908d(0x10a)](_0x199978);if(!_0xe89591)throw Error(_0x18908d(0x122));_0xe89591[_0x18908d(0x100)]();}[_0x479317(0x108)](){const _0x1e4ae6=_0x479317;let _0xe12b31=this[_0x1e4ae6(0x104)]['get'](_0x2f1278)[_0x1e4ae6(0x118)](_0x406c94[_0x1e4ae6(0x107)]);if(!_0xe12b31)throw Error(_0x1e4ae6(0x114));let _0x451da8=_0xe12b31[_0x1e4ae6(0x115)](),_0x1d6b81=this[_0x1e4ae6(0xff)][_0x1e4ae6(0x10a)](_0x451da8);if(!_0x1d6b81)throw Error(_0x1e4ae6(0x122));_0x1d6b81[_0x1e4ae6(0x108)]();}};_0x195e9f[_0x479317(0x110)](u);var d=class extends _0x41621a{get[_0x479317(0x10d)](){return _0x588e6b;}};_0x41621a['extend'](d);export{};
1
+ function _0x4424(_0x3baef3,_0x206bac){_0x3baef3=_0x3baef3-0x13c;const _0x356a3a=_0x356a();let _0x442405=_0x356a3a[_0x3baef3];return _0x442405;}const _0x303069=_0x4424;(function(_0x158469,_0x1637b3){const _0x39df0b=_0x4424,_0x51d07a=_0x158469();while(!![]){try{const _0x2979c0=-parseInt(_0x39df0b(0x15f))/0x1+parseInt(_0x39df0b(0x15e))/0x2+-parseInt(_0x39df0b(0x157))/0x3*(parseInt(_0x39df0b(0x143))/0x4)+parseInt(_0x39df0b(0x144))/0x5+-parseInt(_0x39df0b(0x15a))/0x6+parseInt(_0x39df0b(0x14e))/0x7+parseInt(_0x39df0b(0x151))/0x8*(parseInt(_0x39df0b(0x153))/0x9);if(_0x2979c0===_0x1637b3)break;else _0x51d07a['push'](_0x51d07a['shift']());}catch(_0x3b4b07){_0x51d07a['push'](_0x51d07a['shift']());}}}(_0x356a,0x9452f));import{LiveShareController as _0x331175,LiveShareStatus as _0x1cbc7d}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x1fc3b0,UniverInstanceType as _0x566577}from'@univerjs/core';import{FEnum as _0x44b5ce,FUniver as _0x2e2563}from'@univerjs/core/facade';function o(_0x18ccf7){'@babel/helpers - typeof';const _0x55c532=_0x4424;return o=typeof Symbol==_0x55c532(0x159)&&typeof Symbol[_0x55c532(0x146)]==_0x55c532(0x14c)?function(_0x481534){return typeof _0x481534;}:function(_0x5d759b){const _0x138721=_0x55c532;return _0x5d759b&&typeof Symbol==_0x138721(0x159)&&_0x5d759b['constructor']===Symbol&&_0x5d759b!==Symbol[_0x138721(0x14b)]?_0x138721(0x14c):typeof _0x5d759b;},o(_0x18ccf7);}function s(_0x3ff0b4,_0x46cf3e){const _0x3e3e2d=_0x4424;if(o(_0x3ff0b4)!=_0x3e3e2d(0x155)||!_0x3ff0b4)return _0x3ff0b4;var _0x431eb3=_0x3ff0b4[Symbol[_0x3e3e2d(0x142)]];if(_0x431eb3!==void 0x0){var _0x30aaee=_0x431eb3[_0x3e3e2d(0x140)](_0x3ff0b4,_0x46cf3e||_0x3e3e2d(0x15d));if(o(_0x30aaee)!=_0x3e3e2d(0x155))return _0x30aaee;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x46cf3e===_0x3e3e2d(0x156)?String:Number)(_0x3ff0b4);}function c(_0x153bc2){const _0xfab395=_0x4424;var _0x17e489=s(_0x153bc2,_0xfab395(0x156));return o(_0x17e489)=='symbol'?_0x17e489:_0x17e489+'';}function _0x356a(){const _0x442a2c=['default','376466YDseIm','162104AWvKmV','_initialize','getUnitId','No\x20active\x20workbook\x20found.','stopPresenting','tryStartPresenting','stopFollowing','call','LiveShareStatusEnum','toPrimitive','3928eRZskS','3628075KAqUeV','get','iterator','startPresenting','startFollowing','_liveShareController','getCurrentUnitOfType','prototype','symbol','_injector','1532034dBdoTd','getLiveShareCoordinatorSync','extend','1026616BxqCLP','defineProperty','90AmKTFl','getStatus','object','string','3027yKbvdZ','IDLE','function','3933018ZvSlzx','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET'];_0x356a=function(){return _0x442a2c;};return _0x356a();}function l(_0x48251b,_0x82db64,_0x880cce){const _0x21f7b0=_0x4424;return(_0x82db64=c(_0x82db64))in _0x48251b?Object[_0x21f7b0(0x152)](_0x48251b,_0x82db64,{'value':_0x880cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48251b[_0x82db64]=_0x880cce,_0x48251b;}var u=class extends _0x2e2563{constructor(..._0xb14720){const _0x54d753=_0x4424;super(..._0xb14720),l(this,_0x54d753(0x149),void 0x0);}[_0x303069(0x160)](_0x5eca5e){this['_liveShareController']=_0x5eca5e['get'](_0x331175);}['getLiveShareStatus'](){const _0xc5a4c2=_0x303069;var _0xf0e7e8;let _0x1797d7=this[_0xc5a4c2(0x14d)][_0xc5a4c2(0x145)](_0x1fc3b0)[_0xc5a4c2(0x14a)](_0x566577[_0xc5a4c2(0x15c)]);if(!_0x1797d7)throw Error(_0xc5a4c2(0x13c));let _0x30bff9=_0x1797d7[_0xc5a4c2(0x161)](),_0x48f752=this['_liveShareController'][_0xc5a4c2(0x14f)](_0x30bff9);return(_0xf0e7e8=_0x48f752==null?void 0x0:_0x48f752[_0xc5a4c2(0x154)]())==null?_0x1cbc7d[_0xc5a4c2(0x158)]:_0xf0e7e8;}[_0x303069(0x148)](){const _0x493cbd=_0x303069;let _0x29b0a1=this[_0x493cbd(0x14d)][_0x493cbd(0x145)](_0x1fc3b0)[_0x493cbd(0x14a)](_0x566577[_0x493cbd(0x15c)]);if(!_0x29b0a1)throw Error(_0x493cbd(0x13c));let _0x362f91=_0x29b0a1['getUnitId'](),_0x1475cc=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x362f91);if(!_0x1475cc)throw Error(_0x493cbd(0x15b));_0x1475cc[_0x493cbd(0x148)]();}['stopFollowing'](){const _0x227acd=_0x303069;let _0x2a005f=this['_injector'][_0x227acd(0x145)](_0x1fc3b0)[_0x227acd(0x14a)](_0x566577[_0x227acd(0x15c)]);if(!_0x2a005f)throw Error(_0x227acd(0x13c));let _0x73981b=_0x2a005f[_0x227acd(0x161)](),_0x867f36=this[_0x227acd(0x149)][_0x227acd(0x14f)](_0x73981b);if(!_0x867f36)throw Error(_0x227acd(0x15b));_0x867f36[_0x227acd(0x13f)]();}[_0x303069(0x147)](){const _0x4d5b60=_0x303069;let _0x8653c6=this[_0x4d5b60(0x14d)][_0x4d5b60(0x145)](_0x1fc3b0)[_0x4d5b60(0x14a)](_0x566577['UNIVER_SHEET']);if(!_0x8653c6)throw Error('No\x20active\x20workbook\x20found.');let _0x47a60a=_0x8653c6[_0x4d5b60(0x161)](),_0x15bd4e=this['_liveShareController'][_0x4d5b60(0x14f)](_0x47a60a);if(!_0x15bd4e)throw Error(_0x4d5b60(0x15b));_0x15bd4e[_0x4d5b60(0x13e)]();}[_0x303069(0x13d)](){const _0x27f606=_0x303069;let _0x2c80be=this[_0x27f606(0x14d)][_0x27f606(0x145)](_0x1fc3b0)[_0x27f606(0x14a)](_0x566577[_0x27f606(0x15c)]);if(!_0x2c80be)throw Error('No\x20active\x20workbook\x20found.');let _0x1a7bdd=_0x2c80be[_0x27f606(0x161)](),_0x18fd5d=this[_0x27f606(0x149)][_0x27f606(0x14f)](_0x1a7bdd);if(!_0x18fd5d)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18fd5d['stopPresenting']();}};_0x2e2563[_0x303069(0x150)](u);var d=class extends _0x44b5ce{get[_0x303069(0x141)](){return _0x1cbc7d;}};_0x44b5ce[_0x303069(0x150)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4bfb65=_0x2290;(function(_0x38130e,_0x52ba00){const _0x1186c9=_0x2290,_0x574ec6=_0x38130e();while(!![]){try{const _0x41863a=parseInt(_0x1186c9(0x19e))/0x1+-parseInt(_0x1186c9(0x153))/0x2*(parseInt(_0x1186c9(0x16f))/0x3)+-parseInt(_0x1186c9(0x14d))/0x4+-parseInt(_0x1186c9(0x1b9))/0x5+-parseInt(_0x1186c9(0x16a))/0x6*(-parseInt(_0x1186c9(0x158))/0x7)+-parseInt(_0x1186c9(0x136))/0x8*(parseInt(_0x1186c9(0x1af))/0x9)+-parseInt(_0x1186c9(0x177))/0xa*(-parseInt(_0x1186c9(0x14b))/0xb);if(_0x41863a===_0x52ba00)break;else _0x574ec6['push'](_0x574ec6['shift']());}catch(_0x4f0dae){_0x574ec6['push'](_0x574ec6['shift']());}}}(_0x41da,0xadb29));import{CommandType as _0x19d177,DependentOn as _0x59b5e2,Disposable as _0x1ce4ab,DisposableCollection as _0x32b6cc,ICommandService as _0x34d8a7,IConfigService as _0x25496e,IUniverInstanceService as _0x4f09f7,Inject as _0x56773e,Injector as _0x51a301,Plugin as _0x1b359a,RxDisposable as _0x1a3ddb,UniverInstanceType as _0x7bf701,merge as _0x5bb40d,mergeOverrideWithDependencies as _0x250f7e,registerDependencies as _0x519864,toDisposable as _0x3bc937,touchDependencies as _0x4834f3}from'@univerjs/core';import{BuiltInUIPart as _0x342ffe,IUIPartsService as _0x27ea1c,connectInjector as _0x229861,useDependency as _0x4aae14,useObservable as _0x2f2a72}from'@univerjs/ui';import{Button as _0x2e3da7,Dropdown as _0x256d48,clsx as _0x16695f}from'@univerjs/design';import{LiveShareIcon as _0x279c39}from'@univerjs/icons';import{useEffect as _0x3b2091,useRef as _0x3b13ea,useState as _0x3a871b}from'react';import{CollaborationEvent as _0x13fab2,parseProtocolChangeset as _0x5034fc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3c4ea9,SessionStatus as _0x15ce3e,UniverCollaborationClientPlugin as _0x138c17}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5c83b9,SetWorksheetActiveOperation as _0x3bef8f}from'@univerjs/sheets';import{BehaviorSubject as _0x4610d5,Subject as _0x5f429a}from'rxjs';import{takeUntil as _0x264a65,throttleTime as _0x16b8ad}from'rxjs/operators';import{Fragment as _0x2f0b38,jsx as _0x5e0507,jsxs as _0x546f71}from'react/jsx-runtime';import{SetScrollOperation as _0x5abf17,SetZoomRatioOperation as _0x59b108}from'@univerjs/sheets-ui';function R(_0x2a1524){'@babel/helpers - typeof';const _0x5341fc=_0x2290;return R=typeof Symbol==_0x5341fc(0x147)&&typeof Symbol['iterator']=='symbol'?function(_0x425c03){return typeof _0x425c03;}:function(_0x1fc4ff){const _0x3eaa98=_0x5341fc;return _0x1fc4ff&&typeof Symbol==_0x3eaa98(0x147)&&_0x1fc4ff['constructor']===Symbol&&_0x1fc4ff!==Symbol[_0x3eaa98(0x18d)]?_0x3eaa98(0x159):typeof _0x1fc4ff;},R(_0x2a1524);}function z(_0x101c94,_0xbd8e4c){const _0x2031cd=_0x2290;if(R(_0x101c94)!='object'||!_0x101c94)return _0x101c94;var _0x2e139b=_0x101c94[Symbol[_0x2031cd(0x174)]];if(_0x2e139b!==void 0x0){var _0x4318e7=_0x2e139b['call'](_0x101c94,_0xbd8e4c||_0x2031cd(0x15f));if(R(_0x4318e7)!=_0x2031cd(0x19d))return _0x4318e7;throw TypeError(_0x2031cd(0x14f));}return(_0xbd8e4c==='string'?String:Number)(_0x101c94);}function B(_0xb11bdc){const _0x443b0d=_0x2290;var _0x518065=z(_0xb11bdc,_0x443b0d(0x15b));return R(_0x518065)=='symbol'?_0x518065:_0x518065+'';}function V(_0x3ca471,_0x499271,_0x3f6cce){const _0x205b8a=_0x2290;return(_0x499271=B(_0x499271))in _0x3ca471?Object[_0x205b8a(0x152)](_0x3ca471,_0x499271,{'value':_0x3f6cce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ca471[_0x499271]=_0x3f6cce,_0x3ca471;}var H=class extends _0x1ce4ab{constructor(..._0x539b07){const _0x8269b0=_0x2290;super(..._0x539b07),V(this,'_sharedOperations',new Set()),V(this,_0x8269b0(0x14a),new Set());}['registerSharedOperation'](_0x28ed9c){const _0x5597fe=_0x2290;return this[_0x5597fe(0x155)]['add'](_0x28ed9c),_0x3bc937(()=>this[_0x5597fe(0x155)]['delete'](_0x28ed9c));}[_0x4bfb65(0x187)](_0x47d1c8){const _0x22aa2f=_0x4bfb65;return this[_0x22aa2f(0x14a)][_0x22aa2f(0x12d)](_0x47d1c8),_0x3bc937(()=>this[_0x22aa2f(0x14a)]['delete'](_0x47d1c8));}[_0x4bfb65(0x15d)](_0x412477){const _0x3c25a9=_0x4bfb65;return this[_0x3c25a9(0x155)][_0x3c25a9(0x170)](_0x412477);}[_0x4bfb65(0x146)](_0x3d3879){const _0x2096ab=_0x4bfb65;return Array[_0x2096ab(0x157)](this['_reporters'])[_0x2096ab(0x18a)](_0x53f955=>_0x53f955(_0x3d3879));}};function U(_0x474cb9,_0x30c562){return function(_0x5b3b51,_0x10e3a5){_0x30c562(_0x5b3b51,_0x10e3a5,_0x474cb9);};}function W(_0x19748c,_0x2c7c96,_0x447637,_0x272e45){const _0x4f229f=_0x4bfb65;var _0x515ddf=arguments[_0x4f229f(0x135)],_0x34c317=_0x515ddf<0x3?_0x2c7c96:_0x272e45===null?_0x272e45=Object[_0x4f229f(0x191)](_0x2c7c96,_0x447637):_0x272e45,_0x3c960c;if(typeof Reflect=='object'&&typeof Reflect[_0x4f229f(0x144)]==_0x4f229f(0x147))_0x34c317=Reflect[_0x4f229f(0x144)](_0x19748c,_0x2c7c96,_0x447637,_0x272e45);else{for(var _0x477e89=_0x19748c[_0x4f229f(0x135)]-0x1;_0x477e89>=0x0;_0x477e89--)(_0x3c960c=_0x19748c[_0x477e89])&&(_0x34c317=(_0x515ddf<0x3?_0x3c960c(_0x34c317):_0x515ddf>0x3?_0x3c960c(_0x2c7c96,_0x447637,_0x34c317):_0x3c960c(_0x2c7c96,_0x447637))||_0x34c317);}return _0x515ddf>0x3&&_0x34c317&&Object['defineProperty'](_0x2c7c96,_0x447637,_0x34c317),_0x34c317;}function _0x41da(){const _0x3b2379=['Stop\x20following','Start\x20following','SAME_OPERATION_SHARE_INTERVAL','getStatus','includes','_status','_status$','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','status$','_univerInstanceService','2763cWqBeO','Present\x20this\x20document','operations','params','_startFollowing','_unitID','unsubscribe','_uiPartsService','stopFollowing','getLiveShareCoordinator','3390370UUWlsD','forEach','current','dispose','LIVESHARE_FETCH_OPERATIONS','following','LIVESHARE_OPERATION','_configService','event$','add','not-following','live-share.config','LIVESHARE_REQUEST_HOST','type','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','pluginName','_entities','length','8784fJLvGx','memberID','stopPresenting','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','getLiveShareCoordinatorSync','_handleOnline','init','_presenter','_stopFollowing','disposeWithMe','0.25.0','UNIVER_SHEET','_liveShareService','decorate','_beIdle','getInitialStates','function','tryStartPresenting','_commandDisposable','_reporters','2179914wFynEy','getConfig','1407576bqAdTG','getTypeOfUnitDisposed$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','div','offline','defineProperty','754124sTQsrk','_handleNewChangeSets','_sharedOperations','NOT_FOLLOWING','from','7pxkwak','symbol','getUnitId','string','startFollowing','shouldShareOperation','_mountLiveShare','default','_handleOperation','set','send','pipe','dispose$','text','complete','setConfig','_collabSession','_collabSessionService','3121062VbFUgg','next','subscribe','getTypeOfUnitAdded$','PRESENTING','3FGxjnp','has','executeCommand','find','registerSharedOperation','toPrimitive','data','HEADER_MENU','30iPaxFT','UNIVER_LIVE_SHARE_PLUGIN','FOLLOWING','LIVESHARE_TERMINATE','reverse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','_injector','values','asObservable','_init','createInstance','presenting','then','_startPresenting','_commandService','registerInitialStateReporter','NEW_CHANGESETS','_fetchOperations','map','_config','requireSession','prototype','presenter','stringify','univer-mb-3\x20univer-w-full\x20univer-text-sm','getOwnPropertyDescriptor','get','button','sheet','getMemberID','registerComponent','idle','unit','OFFLINE','subject','UNIVER_UNKNOWN','IDLE','object','1340882VUXrLG','parse','onStarting','mutations','_handleNewHost','_handleOffline'];_0x41da=function(){return _0x3b2379;};return _0x41da();}let G=class extends _0x1a3ddb{constructor(_0x25b0f7,_0x1e18be,_0x30f611){const _0x2cee2a=_0x4bfb65;super(),this[_0x2cee2a(0x1ae)]=_0x25b0f7,this[_0x2cee2a(0x17e)]=_0x1e18be,this[_0x2cee2a(0x169)]=_0x30f611,V(this,_0x2cee2a(0x134),new Map()),this[_0x2cee2a(0x181)]();}async['getLiveShareCoordinator'](_0x104e9f){const _0x2cad5a=_0x4bfb65;return this[_0x2cad5a(0x134)][_0x2cad5a(0x170)](_0x104e9f)||await this[_0x2cad5a(0x1ab)](_0x104e9f),this['_entities'][_0x2cad5a(0x192)](_0x104e9f);}[_0x4bfb65(0x13b)](_0xa5236){const _0x6baff3=_0x4bfb65;var _0x2cb56a;return(_0x2cb56a=this[_0x6baff3(0x134)][_0x6baff3(0x192)](_0xa5236))==null?null:_0x2cb56a;}[_0x4bfb65(0x181)](){const _0x43e8d3=_0x4bfb65;this[_0x43e8d3(0x1ae)][_0x43e8d3(0x16d)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](async _0x25bc6e=>{const _0xe3be1b=_0x43e8d3;let _0x57b1df=_0x25bc6e[_0xe3be1b(0x198)]['getUnitId']();this[_0xe3be1b(0x134)][_0xe3be1b(0x170)](_0x57b1df)||this[_0xe3be1b(0x1ab)](_0x57b1df);}),this[_0x43e8d3(0x1ae)][_0x43e8d3(0x14e)](_0x7bf701[_0x43e8d3(0x142)])[_0x43e8d3(0x163)](_0x264a65(this[_0x43e8d3(0x164)]))[_0x43e8d3(0x16c)](_0xe09c49=>{const _0x597665=_0x43e8d3;let _0x45582d=_0xe09c49[_0x597665(0x15a)](),_0x578ec6=this[_0x597665(0x134)]['get'](_0x45582d);_0x578ec6==null||_0x578ec6[_0x597665(0x1bc)]();});}async[_0x4bfb65(0x1ab)](_0x4c900c){const _0x3faca5=_0x4bfb65;let _0x35a9ac=await this[_0x3faca5(0x169)][_0x3faca5(0x18c)](_0x4c900c),_0x8f180b=this[_0x3faca5(0x17e)][_0x3faca5(0x182)](q,_0x4c900c,_0x35a9ac);return _0x8f180b[_0x3faca5(0x13d)](),this[_0x3faca5(0x134)][_0x3faca5(0x161)](_0x4c900c,_0x8f180b),_0x8f180b;}};G=W([U(0x0,_0x4f09f7),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x56773e(_0x3c4ea9))],G);let K=function(_0x553144){const _0x71acf4=_0x4bfb65;return _0x553144[_0x71acf4(0x199)]=_0x71acf4(0x151),_0x553144[_0x71acf4(0x19c)]=_0x71acf4(0x197),_0x553144[_0x71acf4(0x179)]=_0x71acf4(0x1be),_0x553144[_0x71acf4(0x156)]='not-following',_0x553144[_0x71acf4(0x16e)]=_0x71acf4(0x183),_0x553144;}({}),q=class extends _0x1a3ddb{get[_0x4bfb65(0x1a9)](){const _0x5583b9=_0x4bfb65;return this[_0x5583b9(0x1aa)]['getValue']();}constructor(_0x44bda8,_0x368732,_0x37c925,_0x22b1b0,_0x34397c){const _0x113d22=_0x4bfb65;super(),this['_unitID']=_0x44bda8,this['_collabSession']=_0x368732,this[_0x113d22(0x1c0)]=_0x37c925,this[_0x113d22(0x143)]=_0x22b1b0,this[_0x113d22(0x186)]=_0x34397c,V(this,_0x113d22(0x1aa),new _0x4610d5('idle')),V(this,_0x113d22(0x1ad),this[_0x113d22(0x1aa)][_0x113d22(0x180)]()),V(this,_0x113d22(0x181),!0x1),V(this,'_commandDisposable',null),V(this,'_presenter',null);}['dispose'](){const _0x1e12bf=_0x4bfb65;var _0x900623;(_0x900623=this[_0x1e12bf(0x149)])==null||_0x900623[_0x1e12bf(0x1bc)](),this[_0x1e12bf(0x1aa)][_0x1e12bf(0x16b)]('idle'),this['_status$'][_0x1e12bf(0x166)]();}[_0x4bfb65(0x1a7)](){const _0x290313=_0x4bfb65;return this[_0x290313(0x1a9)];}[_0x4bfb65(0x13d)](){const _0x25d25e=_0x4bfb65;this[_0x25d25e(0x181)]||(this['_init']=!0x0,this[_0x25d25e(0x168)]['sessionStatus$'][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))['subscribe'](_0x2c01e3=>{const _0x20014b=_0x25d25e;switch(_0x2c01e3){case _0x15ce3e[_0x20014b(0x199)]:this[_0x20014b(0x1a3)]();break;case _0x15ce3e['ONLINE']:this[_0x20014b(0x13c)]();break;default:}}),this[_0x25d25e(0x168)][_0x25d25e(0x1c1)][_0x25d25e(0x163)](_0x264a65(this[_0x25d25e(0x164)]))[_0x25d25e(0x16c)](_0x498a23=>{const _0x36d04b=_0x25d25e;let {eventID:_0x56538d}=_0x498a23;switch(_0x56538d){case _0x13fab2['LIVESHARE_NEW_HOST']:this[_0x36d04b(0x1a2)](_0x498a23);break;case _0x13fab2['LIVESHARE_OPERATION']:this[_0x36d04b(0x160)](_0x498a23);break;case _0x13fab2[_0x36d04b(0x17a)]:this['_handleTerminate']();break;case _0x13fab2[_0x36d04b(0x188)]:this[_0x36d04b(0x154)](_0x498a23);break;default:}}));}[_0x4bfb65(0x148)](){const _0x52e11a=_0x4bfb65;this[_0x52e11a(0x168)][_0x52e11a(0x162)]({'eventID':_0x13fab2[_0x52e11a(0x130)],'data':{'unitID':this[_0x52e11a(0x1b4)],'userID':this[_0x52e11a(0x168)]['getMemberID']()}},this[_0x52e11a(0x1b4)]);}[_0x4bfb65(0x138)](){const _0x212eb0=_0x4bfb65;this[_0x212eb0(0x1a9)]===_0x212eb0(0x183)&&(this['_status$'][_0x212eb0(0x16b)](_0x212eb0(0x197)),this[_0x212eb0(0x168)][_0x212eb0(0x162)]({'eventID':_0x13fab2['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x212eb0(0x1b4)]));}[_0x4bfb65(0x15c)](){const _0x4e208c=_0x4bfb65;this[_0x4e208c(0x1a9)]===_0x4e208c(0x12e)&&(this[_0x4e208c(0x1aa)][_0x4e208c(0x16b)](_0x4e208c(0x1be)),this[_0x4e208c(0x1b3)]());}['stopFollowing'](){const _0x1ad6dd=_0x4bfb65;this[_0x1ad6dd(0x1a9)]===_0x1ad6dd(0x1be)&&this[_0x1ad6dd(0x13f)]();}[_0x4bfb65(0x1a2)](_0x3a2ef5){const _0x5db380=_0x4bfb65;let {presenter:_0x574917}=_0x3a2ef5[_0x5db380(0x175)],_0xcda10e=this['_collabSession'][_0x5db380(0x195)]();this[_0x5db380(0x13e)]=_0x574917,_0x574917===_0xcda10e?(this[_0x5db380(0x13f)](),this[_0x5db380(0x185)]()):this[_0x5db380(0x1a9)]!==_0x5db380(0x12e)&&(this[_0x5db380(0x17d)](),this['_startFollowing']());}[_0x4bfb65(0x189)](){const _0x43f052=_0x4bfb65;let _0x421978={'eventID':_0x13fab2[_0x43f052(0x1bd)]};this[_0x43f052(0x168)][_0x43f052(0x162)](_0x421978,this[_0x43f052(0x1b4)]);}['_handleTerminate'](){const _0x58ac23=_0x4bfb65;this[_0x58ac23(0x13e)]=null,this[_0x58ac23(0x1a9)]!==_0x58ac23(0x183)&&this[_0x58ac23(0x145)]();}[_0x4bfb65(0x154)](_0x31bffc){const _0x59116b=_0x4bfb65;if(this['_status']===_0x59116b(0x1be)&&this[_0x59116b(0x13e)]===_0x31bffc[_0x59116b(0x175)][_0x59116b(0x137)]){let _0x7a39f0=_0x5034fc(_0x31bffc[_0x59116b(0x175)])[_0x59116b(0x1a1)][_0x59116b(0x17b)]()[_0x59116b(0x172)](_0x3a37c3=>_0x3a37c3['id']===_0x5c83b9['id']);if(_0x7a39f0){let _0x26d748=_0x7a39f0[_0x59116b(0x1b2)]['unitId'],_0x1afc87=_0x7a39f0[_0x59116b(0x1b2)][_0x59116b(0x194)]['id'];setTimeout(()=>{const _0x2d3809=_0x59116b;this[_0x2d3809(0x186)]['executeCommand'](_0x3bef8f['id'],{'unitId':_0x26d748,'subUnitId':_0x1afc87},{'fromCollab':!0x0});});}}}[_0x4bfb65(0x185)](){const _0x5a1666=_0x4bfb65;var _0x39fb0a;(_0x39fb0a=this['_commandDisposable'])==null||_0x39fb0a[_0x5a1666(0x1bc)](),this[_0x5a1666(0x1aa)]['next']('presenting');let _0x1b1fb7=new Map(),_0x50dd89=this[_0x5a1666(0x149)]=new _0x32b6cc();_0x50dd89['add'](_0x3bc937(()=>{_0x1b1fb7['forEach'](({subject:_0x4cf126,subscription:_0x428f19})=>{const _0x303858=_0x2290;_0x428f19[_0x303858(0x1b5)](),_0x4cf126['complete']();}),_0x1b1fb7['clear']();})),_0x50dd89[_0x5a1666(0x12d)](this[_0x5a1666(0x186)]['onCommandExecuted'](_0x40d0e6=>{const _0x11e372=_0x5a1666;if(_0x40d0e6[_0x11e372(0x131)]!==_0x19d177['OPERATION']||!this[_0x11e372(0x143)][_0x11e372(0x15d)](_0x40d0e6['id']))return;let {id:_0x125e6e}=_0x40d0e6,_0x166778;if(_0x1b1fb7['has'](_0x125e6e))_0x166778=_0x1b1fb7[_0x11e372(0x192)](_0x125e6e)[_0x11e372(0x19a)];else{var _0x8a0057;_0x166778=new _0x5f429a();let _0x19d9a5=_0x166778['pipe'](_0x16b8ad((_0x8a0057=this[_0x11e372(0x1c0)][_0x11e372(0x14c)](_0x11e372(0x1a6)))==null?0xc8:_0x8a0057,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x11e372(0x16c)](_0x4da033=>{const _0x1493f2=_0x11e372;this[_0x1493f2(0x168)][_0x1493f2(0x162)]({'eventID':_0x13fab2[_0x1493f2(0x1bf)],'data':{'unitID':this[_0x1493f2(0x1b4)],'operations':{[_0x4da033['id']]:{'id':_0x4da033['id'],'params':JSON['stringify'](_0x4da033[_0x1493f2(0x1b2)])}}}},this[_0x1493f2(0x1b4)]);});_0x1b1fb7['set'](_0x125e6e,{'subject':_0x166778,'subscription':_0x19d9a5});}_0x166778['next'](_0x40d0e6);})),this[_0x5a1666(0x143)]['getInitialStates'](this[_0x5a1666(0x1b4)])[_0x5a1666(0x1ba)](_0x373811=>this[_0x5a1666(0x168)][_0x5a1666(0x162)]({'eventID':_0x13fab2[_0x5a1666(0x1bf)],'data':{'unitID':this[_0x5a1666(0x1b4)],'operations':{[_0x373811['id']]:{'id':_0x373811['id'],'params':JSON[_0x5a1666(0x18f)](_0x373811[_0x5a1666(0x1b2)])}}}},this[_0x5a1666(0x1b4)]));}[_0x4bfb65(0x17d)](){const _0x227d47=_0x4bfb65;var _0x28363f;this[_0x227d47(0x1aa)][_0x227d47(0x16b)]('idle'),(_0x28363f=this[_0x227d47(0x149)])==null||_0x28363f[_0x227d47(0x1bc)](),this[_0x227d47(0x149)]=null;}[_0x4bfb65(0x1b3)](){const _0x1665ea=_0x4bfb65;var _0x28bc13;(_0x28bc13=this['_commandDisposable'])==null||_0x28bc13[_0x1665ea(0x1bc)](),this['_status$'][_0x1665ea(0x16b)]('following');}[_0x4bfb65(0x145)](){const _0x10c040=_0x4bfb65;var _0x1dc827;this[_0x10c040(0x1aa)][_0x10c040(0x16b)](_0x10c040(0x197)),(_0x1dc827=this[_0x10c040(0x149)])==null||_0x1dc827[_0x10c040(0x1bc)](),this[_0x10c040(0x149)]=null;}[_0x4bfb65(0x13f)](){const _0xc37d19=_0x4bfb65;var _0x14363b;this[_0xc37d19(0x1aa)][_0xc37d19(0x16b)](_0xc37d19(0x12e)),(_0x14363b=this[_0xc37d19(0x149)])==null||_0x14363b[_0xc37d19(0x1bc)]();}[_0x4bfb65(0x160)](_0x4d5f6f){const _0x128a36=_0x4bfb65;if([_0x128a36(0x183),_0x128a36(0x12e),_0x128a36(0x151)][_0x128a36(0x1a8)](this[_0x128a36(0x1a9)])||!_0x4d5f6f['data']['presenter']||_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x18e)]===this[_0x128a36(0x168)]['getMemberID']())return;this[_0x128a36(0x1a9)]==='idle'&&this[_0x128a36(0x1b3)]();let _0x4eb22e=_0x4d5f6f[_0x128a36(0x175)][_0x128a36(0x1b1)];Object[_0x128a36(0x17f)](_0x4eb22e)[_0x128a36(0x1ba)](_0x24f510=>{const _0x19545e=_0x128a36;this[_0x19545e(0x186)][_0x19545e(0x171)](_0x24f510['id'],_0x24f510['params']?JSON[_0x19545e(0x19f)](_0x24f510[_0x19545e(0x1b2)]):null,{'fromCollab':!0x0});});}[_0x4bfb65(0x1a3)](){const _0x46c67a=_0x4bfb65;var _0x3a08a2;this['_status$'][_0x46c67a(0x16b)](_0x46c67a(0x151)),(_0x3a08a2=this[_0x46c67a(0x149)])==null||_0x3a08a2[_0x46c67a(0x1bc)]();}[_0x4bfb65(0x13c)](){const _0xad2c8f=_0x4bfb65;this['_status$']['next'](_0xad2c8f(0x197)),this[_0xad2c8f(0x189)]();}};q=W([U(0x2,_0x25496e),U(0x3,_0x56773e(H)),U(0x4,_0x34d8a7)],q);function J(){const _0x2b336c=_0x4bfb65;let _0x536d64=_0x4aae14(G),_0x447395=_0x4aae14(_0x4f09f7),_0x30f598=_0x2f2a72(()=>_0x447395['getCurrentTypeOfUnit$'](_0x7bf701[_0x2b336c(0x142)]),void 0x0,!0x1,[]),[_0x36884e,_0x4e526d]=_0x3a871b(null),[_0x3e6134,_0x16fc35]=_0x3a871b(_0x2b336c(0x197)),_0xd5a0c3=_0x3b13ea(null);return _0x3b2091(()=>(_0x30f598&&_0x536d64[_0x2b336c(0x1b8)](_0x30f598[_0x2b336c(0x15a)]())[_0x2b336c(0x184)](_0x103eaa=>{const _0x4f9b48=_0x2b336c;_0x4e526d(_0x103eaa),_0xd5a0c3[_0x4f9b48(0x1bb)]=_0x103eaa[_0x4f9b48(0x1ad)]['subscribe'](_0x274dd1=>{_0x16fc35(_0x274dd1);});}),()=>{const _0x3621be=_0x2b336c;var _0x48eb2b;(_0x48eb2b=_0xd5a0c3[_0x3621be(0x1bb)])==null||_0x48eb2b[_0x3621be(0x1b5)](),_0xd5a0c3[_0x3621be(0x1bb)]=null;}),[_0x30f598,_0x536d64]),_0x36884e?_0x5e0507(_0x256d48,{'align':'end','disabled':_0x3e6134===_0x2b336c(0x151),'className':_0x2b336c(0x132),'overlay':_0x5e0507(se,{'status':_0x3e6134,'coordinator':_0x36884e}),'children':_0x5e0507(_0x2b336c(0x193),{'className':_0x16695f(_0x2b336c(0x17c),{'univer-cursor-not-allowed':_0x3e6134===_0x2b336c(0x151),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3e6134!=='offline'}),'type':'button','children':_0x5e0507(_0x279c39,{'className':'univer-size-4'})})}):null;}function se(_0x4c043c){const _0x225901=_0x4bfb65;let {status:_0x3bfe2e,coordinator:_0x10bbe5}=_0x4c043c;switch(_0x3bfe2e){case'idle':return _0x5e0507(ce,{'coordinator':_0x10bbe5});case'following':return _0x5e0507(le,{'coordinator':_0x10bbe5});case _0x225901(0x12e):return _0x5e0507(ue,{'coordinator':_0x10bbe5});case _0x225901(0x151):return _0x5e0507(de,{});case'presenting':return _0x5e0507(Y,{'coordinator':_0x10bbe5});default:return null;}}function ce(_0x2b5845){const _0xd66ce=_0x4bfb65;let {coordinator:_0x46b85b}=_0x2b5845;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0xd66ce(0x190),'children':_0xd66ce(0x1b0)}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x46b85b[_0xd66ce(0x148)](),'children':'Start'})]});}function le(_0x2ff54f){const _0x23dab1=_0x4bfb65;let {coordinator:_0x28a05c}=_0x2ff54f;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507('div',{'className':_0x23dab1(0x190),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e0507(_0x2e3da7,{'onClick':()=>_0x28a05c[_0x23dab1(0x1b7)](),'children':_0x23dab1(0x1a4)})]});}function ue(_0x471ce3){const _0x5f1e26=_0x4bfb65;let {coordinator:_0x4bb366}=_0x471ce3;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x5f1e26(0x150),{'className':_0x5f1e26(0x190),'children':_0x5f1e26(0x1ac)}),_0x5e0507(_0x2e3da7,{'variant':_0x5f1e26(0x165),'onClick':()=>_0x4bb366[_0x5f1e26(0x15c)](),'children':_0x5f1e26(0x1a5)})]});}function Y(_0x26abfd){const _0x536f53=_0x4bfb65;let {coordinator:_0x24203f}=_0x26abfd;return _0x546f71(_0x2f0b38,{'children':[_0x5e0507(_0x536f53(0x150),{'className':_0x536f53(0x190),'children':_0x536f53(0x13a)}),_0x5e0507(_0x2e3da7,{'variant':_0x536f53(0x15f),'onClick':()=>_0x24203f[_0x536f53(0x138)](),'children':'Stop\x20presenting'})]});}function de(){const _0x28505f=_0x4bfb65;return _0x5e0507(_0x2f0b38,{'children':_0x28505f(0x139)});}let X=class extends _0x1ce4ab{constructor(_0x472176,_0x40787e){const _0xbb4c8e=_0x4bfb65;super(),this[_0xbb4c8e(0x17e)]=_0x472176,this[_0xbb4c8e(0x1b6)]=_0x40787e,this['_mountLiveShare']();}[_0x4bfb65(0x15e)](){const _0x2c88d5=_0x4bfb65;this['disposeWithMe'](this[_0x2c88d5(0x1b6)][_0x2c88d5(0x196)](_0x342ffe[_0x2c88d5(0x176)],()=>_0x229861(J,this[_0x2c88d5(0x17e)])));}};X=W([U(0x0,_0x56773e(_0x51a301)),U(0x1,_0x27ea1c)],X);var fe='@univerjs-pro/live-share',pe=_0x4bfb65(0x141);function _0x2290(_0x22c53c,_0x46936c){_0x22c53c=_0x22c53c-0x12d;const _0x41da41=_0x41da();let _0x229021=_0x41da41[_0x22c53c];return _0x229021;}const Z={};let Q=class extends _0x1ce4ab{constructor(_0x294a46){const _0xd1a91c=_0x4bfb65;super(),this[_0xd1a91c(0x143)]=_0x294a46,this[_0xd1a91c(0x181)]();}[_0x4bfb65(0x181)](){[_0x59b108['id'],_0x5abf17['id'],_0x3bef8f['id']]['forEach'](_0x1c12c7=>{const _0x22e397=_0x2290;this[_0x22e397(0x140)](this[_0x22e397(0x143)][_0x22e397(0x173)](_0x1c12c7));});}};Q=W([U(0x0,_0x56773e(H))],Q);let $=class extends _0x1b359a{constructor(_0x183a8d=Z,_0x146c69,_0x3246fd){const _0x3a7986=_0x4bfb65;super(),this[_0x3a7986(0x18b)]=_0x183a8d,this['_injector']=_0x146c69,this['_configService']=_0x3246fd;let {..._0x5d1d2e}=_0x5bb40d({},Z,this[_0x3a7986(0x18b)]);this[_0x3a7986(0x1c0)][_0x3a7986(0x167)](_0x3a7986(0x12f),_0x5d1d2e);}[_0x4bfb65(0x1a0)](){const _0x50b75b=_0x4bfb65;_0x519864(this[_0x50b75b(0x17e)],_0x250f7e([[H],[G],[Q],[X]],this[_0x50b75b(0x18b)]['override'])),_0x4834f3(this[_0x50b75b(0x17e)],[[Q]]);}['onRendered'](){_0x4834f3(this['_injector'],[[X]]);}};V($,_0x4bfb65(0x131),_0x7bf701[_0x4bfb65(0x19b)]),V($,_0x4bfb65(0x133),_0x4bfb65(0x178)),V($,'packageName',fe),V($,'version',pe),$=W([_0x59b5e2(_0x138c17),U(0x1,_0x56773e(_0x51a301)),U(0x2,_0x25496e)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x16f6b4=_0x3742;(function(_0xbe56f4,_0x1323af){const _0x337c33=_0x3742,_0x3ee53b=_0xbe56f4();while(!![]){try{const _0x4acf15=-parseInt(_0x337c33(0x20a))/0x1*(parseInt(_0x337c33(0x251))/0x2)+-parseInt(_0x337c33(0x1f3))/0x3+-parseInt(_0x337c33(0x273))/0x4*(-parseInt(_0x337c33(0x22f))/0x5)+-parseInt(_0x337c33(0x26a))/0x6*(parseInt(_0x337c33(0x227))/0x7)+-parseInt(_0x337c33(0x252))/0x8*(-parseInt(_0x337c33(0x1e8))/0x9)+parseInt(_0x337c33(0x20f))/0xa*(-parseInt(_0x337c33(0x239))/0xb)+parseInt(_0x337c33(0x215))/0xc;if(_0x4acf15===_0x1323af)break;else _0x3ee53b['push'](_0x3ee53b['shift']());}catch(_0x12e516){_0x3ee53b['push'](_0x3ee53b['shift']());}}}(_0x2e62,0x24330));import{CommandType as _0x318eb4,DependentOn as _0x3dc140,Disposable as _0x4b5dc9,DisposableCollection as _0x10ec25,ICommandService as _0x4b9491,IConfigService as _0x46eafb,IUniverInstanceService as _0x4dd311,Inject as _0x4b6a05,Injector as _0x2d43c8,Plugin as _0x547cf5,RxDisposable as _0x246302,UniverInstanceType as _0xc09af2,merge as _0x26e587,mergeOverrideWithDependencies as _0x10dc75,registerDependencies as _0x58b3f9,toDisposable as _0x27d417,touchDependencies as _0x4ca10c}from'@univerjs/core';import{BuiltInUIPart as _0x17ec50,IUIPartsService as _0xf530cb,connectInjector as _0x432d78,useDependency as _0x29ecdc,useObservable as _0x41be19}from'@univerjs/ui';function _0x2e62(){const _0x15c915=['_startLiveShareCoordinator','complete','getUnitId','4178304Elrjye','send','_commandService','has','idle','_config','_collabSession','set','setConfig','@univerjs-pro/live-share','next','getOwnPropertyDescriptor','FOLLOWING','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','getLiveShareCoordinator','OPERATION','1114505pXTXpA','live-share.config','_fetchOperations','packageName','_handleTerminate','call','Stop\x20presenting','button','215eebwBW','status$','_handleOnline','reverse','UNIVER_LIVE_SHARE_PLUGIN','operations','decorate','getStatus','length','disposeWithMe','11iGWBuj','get','_injector','requireSession','registerSharedOperation','dispose','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_presenter','registerComponent','function','getInitialStates','following','createInstance','getLiveShareCoordinatorSync','_collabSessionService','UNIVER_UNKNOWN','_beIdle','getTypeOfUnitAdded$','data','unsubscribe','_status','current','onCommandExecuted','unit','6NJZYuP','2370832KBJCbj','add','defineProperty','stopFollowing','end','symbol','getMemberID','type','_handleOffline','univer-size-4','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','presenting','params','_configService','LIVESHARE_REQUEST_HOST','executeCommand','0.25.2','getCurrentTypeOfUnit$','offline','object','_entities','iterator','6AqpmLx','version','_reporters','onStarting','getConfig','string','_startFollowing','onRendered','HEADER_MENU','692scnnix','_handleNewChangeSets','stopPresenting','LIVESHARE_FETCH_OPERATIONS','Start\x20following','_commandDisposable','event$','startFollowing','not-following','_univerInstanceService','_unitID','div','delete','memberID','_startPresenting','9wqNWdx','getValue','_init','asObservable','LIVESHARE_TERMINATE','clear','forEach','_handleOperation','mutations','ONLINE','default','407187CkDRqC','PRESENTING','find','You\x27re\x20not\x20following\x20the\x20presenter','dispose$','prototype','_stopPresenting','_mountLiveShare','pipe','_handleNewHost','Start','presenter','subject','_liveShareService','shouldShareOperation','unitId','sheet','map','You\x27re\x20presenting\x20the\x20document','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','_status$','tryStartPresenting','values','51788HtkqSy','_uiPartsService','getTypeOfUnitDisposed$','UNIVER_SHEET','init','534050ZxqJLt','LIVESHARE_OPERATION','_sharedOperations'];_0x2e62=function(){return _0x15c915;};return _0x2e62();}import{Button as _0x2619a0,Dropdown as _0x3de5e2,clsx as _0x1e00b3}from'@univerjs/design';import{LiveShareIcon as _0x2b4902}from'@univerjs/icons';import{useEffect as _0x2a3129,useRef as _0x5bd35f,useState as _0x1c51b5}from'react';import{CollaborationEvent as _0x2cae52,parseProtocolChangeset as _0x396a82}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x319859,SessionStatus as _0x5e1c26,UniverCollaborationClientPlugin as _0x1faa0e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1274c5,SetWorksheetActiveOperation as _0x4dbd1e}from'@univerjs/sheets';import{BehaviorSubject as _0x3469e3,Subject as _0x4d991e}from'rxjs';import{takeUntil as _0x4753b7,throttleTime as _0x4c79ad}from'rxjs/operators';import{Fragment as _0x348ecc,jsx as _0x5c9867,jsxs as _0xd26927}from'react/jsx-runtime';import{SetScrollOperation as _0x212824,SetZoomRatioOperation as _0x986c73}from'@univerjs/sheets-ui';function R(_0x3e9e4f){'@babel/helpers - typeof';const _0x1872a4=_0x3742;return R=typeof Symbol==_0x1872a4(0x242)&&typeof Symbol[_0x1872a4(0x269)]=='symbol'?function(_0x3b8279){return typeof _0x3b8279;}:function(_0x16292e){const _0x1633d0=_0x1872a4;return _0x16292e&&typeof Symbol==_0x1633d0(0x242)&&_0x16292e['constructor']===Symbol&&_0x16292e!==Symbol[_0x1633d0(0x1f8)]?_0x1633d0(0x257):typeof _0x16292e;},R(_0x3e9e4f);}function z(_0x1b7305,_0x231901){const _0xe171e2=_0x3742;if(R(_0x1b7305)!=_0xe171e2(0x267)||!_0x1b7305)return _0x1b7305;var _0x4015ea=_0x1b7305[Symbol['toPrimitive']];if(_0x4015ea!==void 0x0){var _0x10c469=_0x4015ea[_0xe171e2(0x22c)](_0x1b7305,_0x231901||_0xe171e2(0x1f2));if(R(_0x10c469)!=_0xe171e2(0x267))return _0x10c469;throw TypeError(_0xe171e2(0x23f));}return(_0x231901===_0xe171e2(0x26f)?String:Number)(_0x1b7305);}function B(_0x3f25eb){const _0x24ed25=_0x3742;var _0x1d59d9=z(_0x3f25eb,_0x24ed25(0x26f));return R(_0x1d59d9)==_0x24ed25(0x257)?_0x1d59d9:_0x1d59d9+'';}function V(_0x252af2,_0x37e783,_0x13f43a){const _0x20e5e9=_0x3742;return(_0x37e783=B(_0x37e783))in _0x252af2?Object[_0x20e5e9(0x254)](_0x252af2,_0x37e783,{'value':_0x13f43a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x252af2[_0x37e783]=_0x13f43a,_0x252af2;}var H=class extends _0x4b5dc9{constructor(..._0x24b8e0){const _0x355109=_0x3742;super(..._0x24b8e0),V(this,_0x355109(0x211),new Set()),V(this,_0x355109(0x26c),new Set());}[_0x16f6b4(0x23d)](_0x4d4c37){const _0xb066e2=_0x16f6b4;return this['_sharedOperations'][_0xb066e2(0x253)](_0x4d4c37),_0x27d417(()=>this['_sharedOperations']['delete'](_0x4d4c37));}['registerInitialStateReporter'](_0x128bbc){const _0x4df97e=_0x16f6b4;return this[_0x4df97e(0x26c)][_0x4df97e(0x253)](_0x128bbc),_0x27d417(()=>this[_0x4df97e(0x26c)][_0x4df97e(0x27f)](_0x128bbc));}[_0x16f6b4(0x201)](_0x338c3d){const _0x93f989=_0x16f6b4;return this['_sharedOperations'][_0x93f989(0x218)](_0x338c3d);}['getInitialStates'](_0x1949df){const _0x15b3a2=_0x16f6b4;return Array['from'](this['_reporters'])[_0x15b3a2(0x204)](_0x5d5d48=>_0x5d5d48(_0x1949df));}};function U(_0x41d8d8,_0x4f02c7){return function(_0x2a5410,_0x297b16){_0x4f02c7(_0x2a5410,_0x297b16,_0x41d8d8);};}function W(_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55){const _0x2358f9=_0x16f6b4;var _0x2664d2=arguments[_0x2358f9(0x237)],_0x53d012=_0x2664d2<0x3?_0x208c0b:_0x4e5d55===null?_0x4e5d55=Object[_0x2358f9(0x220)](_0x208c0b,_0xd3707f):_0x4e5d55,_0x2a2d17;if(typeof Reflect=='object'&&typeof Reflect[_0x2358f9(0x235)]==_0x2358f9(0x242))_0x53d012=Reflect['decorate'](_0x556e8b,_0x208c0b,_0xd3707f,_0x4e5d55);else{for(var _0x24007c=_0x556e8b[_0x2358f9(0x237)]-0x1;_0x24007c>=0x0;_0x24007c--)(_0x2a2d17=_0x556e8b[_0x24007c])&&(_0x53d012=(_0x2664d2<0x3?_0x2a2d17(_0x53d012):_0x2664d2>0x3?_0x2a2d17(_0x208c0b,_0xd3707f,_0x53d012):_0x2a2d17(_0x208c0b,_0xd3707f))||_0x53d012);}return _0x2664d2>0x3&&_0x53d012&&Object['defineProperty'](_0x208c0b,_0xd3707f,_0x53d012),_0x53d012;}let G=class extends _0x246302{constructor(_0x1d6ebd,_0x5cfe0a,_0x5bb5f6){const _0x3c5d68=_0x16f6b4;super(),this[_0x3c5d68(0x27c)]=_0x1d6ebd,this[_0x3c5d68(0x23b)]=_0x5cfe0a,this['_collabSessionService']=_0x5bb5f6,V(this,_0x3c5d68(0x268),new Map()),this[_0x3c5d68(0x1ea)]();}async['getLiveShareCoordinator'](_0xca9b28){const _0x22b13f=_0x16f6b4;return this[_0x22b13f(0x268)][_0x22b13f(0x218)](_0xca9b28)||await this['_startLiveShareCoordinator'](_0xca9b28),this[_0x22b13f(0x268)][_0x22b13f(0x23a)](_0xca9b28);}[_0x16f6b4(0x246)](_0x4c2a86){const _0x4bdec6=_0x16f6b4;var _0x367c89;return(_0x367c89=this[_0x4bdec6(0x268)]['get'](_0x4c2a86))==null?null:_0x367c89;}[_0x16f6b4(0x1ea)](){const _0x22f1ef=_0x16f6b4;this[_0x22f1ef(0x27c)][_0x22f1ef(0x24a)](_0xc09af2[_0x22f1ef(0x20d)])['pipe'](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](async _0x46ef61=>{const _0x4ecb41=_0x22f1ef;let _0x9bee9=_0x46ef61[_0x4ecb41(0x250)][_0x4ecb41(0x214)]();this['_entities']['has'](_0x9bee9)||this['_startLiveShareCoordinator'](_0x9bee9);}),this[_0x22f1ef(0x27c)][_0x22f1ef(0x20c)](_0xc09af2['UNIVER_SHEET'])[_0x22f1ef(0x1fb)](_0x4753b7(this[_0x22f1ef(0x1f7)]))[_0x22f1ef(0x222)](_0x150fdb=>{const _0x348bcb=_0x22f1ef;let _0x367776=_0x150fdb[_0x348bcb(0x214)](),_0x171bbc=this['_entities'][_0x348bcb(0x23a)](_0x367776);_0x171bbc==null||_0x171bbc[_0x348bcb(0x23e)]();});}async[_0x16f6b4(0x212)](_0x23be78){const _0x483707=_0x16f6b4;let _0x468fba=await this[_0x483707(0x247)][_0x483707(0x23c)](_0x23be78),_0x5179c0=this[_0x483707(0x23b)][_0x483707(0x245)](q,_0x23be78,_0x468fba);return _0x5179c0[_0x483707(0x20e)](),this[_0x483707(0x268)][_0x483707(0x21c)](_0x23be78,_0x5179c0),_0x5179c0;}};G=W([U(0x0,_0x4dd311),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x4b6a05(_0x319859))],G);let K=function(_0x347eee){const _0x34ecb8=_0x16f6b4;return _0x347eee[_0x34ecb8(0x25c)]='offline',_0x347eee['IDLE']=_0x34ecb8(0x219),_0x347eee[_0x34ecb8(0x221)]='following',_0x347eee['NOT_FOLLOWING']=_0x34ecb8(0x27b),_0x347eee[_0x34ecb8(0x1f4)]=_0x34ecb8(0x25f),_0x347eee;}({}),q=class extends _0x246302{get[_0x16f6b4(0x24d)](){const _0x59a97f=_0x16f6b4;return this[_0x59a97f(0x207)][_0x59a97f(0x1e9)]();}constructor(_0xea7a2,_0x44fcbc,_0x4e3e8c,_0x43c228,_0x4ee2bd){const _0x11b6d9=_0x16f6b4;super(),this[_0x11b6d9(0x27d)]=_0xea7a2,this[_0x11b6d9(0x21b)]=_0x44fcbc,this[_0x11b6d9(0x261)]=_0x4e3e8c,this[_0x11b6d9(0x200)]=_0x43c228,this[_0x11b6d9(0x217)]=_0x4ee2bd,V(this,_0x11b6d9(0x207),new _0x3469e3(_0x11b6d9(0x219))),V(this,_0x11b6d9(0x230),this['_status$'][_0x11b6d9(0x1eb)]()),V(this,'_init',!0x1),V(this,_0x11b6d9(0x278),null),V(this,_0x11b6d9(0x240),null);}[_0x16f6b4(0x23e)](){const _0x46d22a=_0x16f6b4;var _0x3b758c;(_0x3b758c=this[_0x46d22a(0x278)])==null||_0x3b758c['dispose'](),this[_0x46d22a(0x207)][_0x46d22a(0x21f)]('idle'),this[_0x46d22a(0x207)][_0x46d22a(0x213)]();}[_0x16f6b4(0x236)](){return this['_status'];}[_0x16f6b4(0x20e)](){const _0x1ec00a=_0x16f6b4;this[_0x1ec00a(0x1ea)]||(this[_0x1ec00a(0x1ea)]=!0x0,this[_0x1ec00a(0x21b)][_0x1ec00a(0x25e)][_0x1ec00a(0x1fb)](_0x4753b7(this['dispose$']))[_0x1ec00a(0x222)](_0x4f2427=>{const _0x1aeb31=_0x1ec00a;switch(_0x4f2427){case _0x5e1c26['OFFLINE']:this[_0x1aeb31(0x25a)]();break;case _0x5e1c26[_0x1aeb31(0x1f1)]:this[_0x1aeb31(0x231)]();break;default:}}),this[_0x1ec00a(0x21b)][_0x1ec00a(0x279)][_0x1ec00a(0x1fb)](_0x4753b7(this[_0x1ec00a(0x1f7)]))[_0x1ec00a(0x222)](_0x19281a=>{const _0x23e4c8=_0x1ec00a;let {eventID:_0x24942e}=_0x19281a;switch(_0x24942e){case _0x2cae52['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x210)]:this[_0x23e4c8(0x1ef)](_0x19281a);break;case _0x2cae52[_0x23e4c8(0x1ec)]:this[_0x23e4c8(0x22b)]();break;case _0x2cae52['NEW_CHANGESETS']:this[_0x23e4c8(0x274)](_0x19281a);break;default:}}));}[_0x16f6b4(0x208)](){const _0x2aa90c=_0x16f6b4;this['_collabSession'][_0x2aa90c(0x216)]({'eventID':_0x2cae52[_0x2aa90c(0x262)],'data':{'unitID':this[_0x2aa90c(0x27d)],'userID':this[_0x2aa90c(0x21b)][_0x2aa90c(0x258)]()}},this[_0x2aa90c(0x27d)]);}[_0x16f6b4(0x275)](){const _0x281895=_0x16f6b4;this[_0x281895(0x24d)]==='presenting'&&(this[_0x281895(0x207)]['next'](_0x281895(0x219)),this[_0x281895(0x21b)][_0x281895(0x216)]({'eventID':_0x2cae52[_0x281895(0x1ec)],'data':{'unitID':this[_0x281895(0x27d)]}},this[_0x281895(0x27d)]));}[_0x16f6b4(0x27a)](){const _0x4f4627=_0x16f6b4;this[_0x4f4627(0x24d)]===_0x4f4627(0x27b)&&(this[_0x4f4627(0x207)][_0x4f4627(0x21f)](_0x4f4627(0x244)),this[_0x4f4627(0x270)]());}[_0x16f6b4(0x255)](){const _0x2197dc=_0x16f6b4;this[_0x2197dc(0x24d)]===_0x2197dc(0x244)&&this[_0x2197dc(0x224)]();}[_0x16f6b4(0x1fc)](_0x338793){const _0x1893b5=_0x16f6b4;let {presenter:_0x5c9d4e}=_0x338793[_0x1893b5(0x24b)],_0x33f279=this['_collabSession'][_0x1893b5(0x258)]();this[_0x1893b5(0x240)]=_0x5c9d4e,_0x5c9d4e===_0x33f279?(this[_0x1893b5(0x224)](),this[_0x1893b5(0x1e7)]()):this['_status']!==_0x1893b5(0x27b)&&(this[_0x1893b5(0x1f9)](),this[_0x1893b5(0x270)]());}['_fetchOperations'](){const _0x468504=_0x16f6b4;let _0x14ca89={'eventID':_0x2cae52[_0x468504(0x276)]};this[_0x468504(0x21b)][_0x468504(0x216)](_0x14ca89,this[_0x468504(0x27d)]);}[_0x16f6b4(0x22b)](){const _0x9f602=_0x16f6b4;this[_0x9f602(0x240)]=null,this[_0x9f602(0x24d)]!==_0x9f602(0x25f)&&this[_0x9f602(0x249)]();}[_0x16f6b4(0x274)](_0x182347){const _0x2f79f1=_0x16f6b4;if(this[_0x2f79f1(0x24d)]===_0x2f79f1(0x244)&&this[_0x2f79f1(0x240)]===_0x182347[_0x2f79f1(0x24b)][_0x2f79f1(0x1e6)]){let _0x29ab7b=_0x396a82(_0x182347['data'])[_0x2f79f1(0x1f0)][_0x2f79f1(0x232)]()[_0x2f79f1(0x1f5)](_0x317f74=>_0x317f74['id']===_0x1274c5['id']);if(_0x29ab7b){let _0x4f5ce3=_0x29ab7b[_0x2f79f1(0x260)][_0x2f79f1(0x202)],_0x45d03e=_0x29ab7b['params'][_0x2f79f1(0x203)]['id'];setTimeout(()=>{const _0x34be81=_0x2f79f1;this[_0x34be81(0x217)][_0x34be81(0x263)](_0x4dbd1e['id'],{'unitId':_0x4f5ce3,'subUnitId':_0x45d03e},{'fromCollab':!0x0});});}}}[_0x16f6b4(0x1e7)](){const _0x12138e=_0x16f6b4;var _0x3b4740;(_0x3b4740=this[_0x12138e(0x278)])==null||_0x3b4740['dispose'](),this[_0x12138e(0x207)][_0x12138e(0x21f)](_0x12138e(0x25f));let _0x3214a1=new Map(),_0x3a141d=this[_0x12138e(0x278)]=new _0x10ec25();_0x3a141d['add'](_0x27d417(()=>{const _0x2fd1fd=_0x12138e;_0x3214a1[_0x2fd1fd(0x1ee)](({subject:_0x4ea995,subscription:_0x131f62})=>{const _0x54ee80=_0x2fd1fd;_0x131f62[_0x54ee80(0x24c)](),_0x4ea995[_0x54ee80(0x213)]();}),_0x3214a1[_0x2fd1fd(0x1ed)]();})),_0x3a141d[_0x12138e(0x253)](this[_0x12138e(0x217)][_0x12138e(0x24f)](_0x585c1e=>{const _0x4a75df=_0x12138e;if(_0x585c1e[_0x4a75df(0x259)]!==_0x318eb4[_0x4a75df(0x226)]||!this['_liveShareService']['shouldShareOperation'](_0x585c1e['id']))return;let {id:_0x1e7cb3}=_0x585c1e,_0x5d0b22;if(_0x3214a1[_0x4a75df(0x218)](_0x1e7cb3))_0x5d0b22=_0x3214a1[_0x4a75df(0x23a)](_0x1e7cb3)[_0x4a75df(0x1ff)];else{var _0x521465;_0x5d0b22=new _0x4d991e();let _0x59e029=_0x5d0b22[_0x4a75df(0x1fb)](_0x4c79ad((_0x521465=this['_configService'][_0x4a75df(0x26e)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x521465,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a75df(0x222)](_0x3606d9=>{const _0x1fd8b2=_0x4a75df;this[_0x1fd8b2(0x21b)][_0x1fd8b2(0x216)]({'eventID':_0x2cae52['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1fd8b2(0x27d)],'operations':{[_0x3606d9['id']]:{'id':_0x3606d9['id'],'params':JSON['stringify'](_0x3606d9['params'])}}}},this['_unitID']);});_0x3214a1['set'](_0x1e7cb3,{'subject':_0x5d0b22,'subscription':_0x59e029});}_0x5d0b22[_0x4a75df(0x21f)](_0x585c1e);})),this[_0x12138e(0x200)][_0x12138e(0x243)](this[_0x12138e(0x27d)])[_0x12138e(0x1ee)](_0x3d0df9=>this[_0x12138e(0x21b)][_0x12138e(0x216)]({'eventID':_0x2cae52[_0x12138e(0x210)],'data':{'unitID':this[_0x12138e(0x27d)],'operations':{[_0x3d0df9['id']]:{'id':_0x3d0df9['id'],'params':JSON['stringify'](_0x3d0df9[_0x12138e(0x260)])}}}},this[_0x12138e(0x27d)]));}[_0x16f6b4(0x1f9)](){const _0x73ad3d=_0x16f6b4;var _0x5d58c7;this[_0x73ad3d(0x207)][_0x73ad3d(0x21f)](_0x73ad3d(0x219)),(_0x5d58c7=this[_0x73ad3d(0x278)])==null||_0x5d58c7[_0x73ad3d(0x23e)](),this[_0x73ad3d(0x278)]=null;}[_0x16f6b4(0x270)](){const _0x5cbe0a=_0x16f6b4;var _0x47962c;(_0x47962c=this[_0x5cbe0a(0x278)])==null||_0x47962c[_0x5cbe0a(0x23e)](),this[_0x5cbe0a(0x207)][_0x5cbe0a(0x21f)](_0x5cbe0a(0x244));}[_0x16f6b4(0x249)](){const _0x1d139b=_0x16f6b4;var _0x5e6e0c;this['_status$']['next'](_0x1d139b(0x219)),(_0x5e6e0c=this[_0x1d139b(0x278)])==null||_0x5e6e0c['dispose'](),this[_0x1d139b(0x278)]=null;}['_stopFollowing'](){const _0x1c5035=_0x16f6b4;var _0x23e119;this['_status$'][_0x1c5035(0x21f)](_0x1c5035(0x27b)),(_0x23e119=this[_0x1c5035(0x278)])==null||_0x23e119['dispose']();}['_handleOperation'](_0x339c28){const _0x36f506=_0x16f6b4;if([_0x36f506(0x25f),'not-following','offline']['includes'](this['_status'])||!_0x339c28[_0x36f506(0x24b)][_0x36f506(0x1fe)]||_0x339c28[_0x36f506(0x24b)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x36f506(0x219)&&this[_0x36f506(0x270)]();let _0x46302c=_0x339c28['data'][_0x36f506(0x234)];Object[_0x36f506(0x209)](_0x46302c)['forEach'](_0x4befca=>{const _0x356e47=_0x36f506;this[_0x356e47(0x217)][_0x356e47(0x263)](_0x4befca['id'],_0x4befca[_0x356e47(0x260)]?JSON['parse'](_0x4befca[_0x356e47(0x260)]):null,{'fromCollab':!0x0});});}[_0x16f6b4(0x25a)](){const _0x39c7fa=_0x16f6b4;var _0xe6f605;this[_0x39c7fa(0x207)][_0x39c7fa(0x21f)]('offline'),(_0xe6f605=this[_0x39c7fa(0x278)])==null||_0xe6f605[_0x39c7fa(0x23e)]();}[_0x16f6b4(0x231)](){const _0x4a0064=_0x16f6b4;this[_0x4a0064(0x207)][_0x4a0064(0x21f)](_0x4a0064(0x219)),this[_0x4a0064(0x229)]();}};q=W([U(0x2,_0x46eafb),U(0x3,_0x4b6a05(H)),U(0x4,_0x4b9491)],q);function J(){const _0x1d0d87=_0x16f6b4;let _0x40471f=_0x29ecdc(G),_0x2ebc98=_0x29ecdc(_0x4dd311),_0x219b0f=_0x41be19(()=>_0x2ebc98[_0x1d0d87(0x265)](_0xc09af2['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x29df55,_0xda225c]=_0x1c51b5(null),[_0x2924ce,_0x4d9eb1]=_0x1c51b5(_0x1d0d87(0x219)),_0x48da4b=_0x5bd35f(null);return _0x2a3129(()=>(_0x219b0f&&_0x40471f[_0x1d0d87(0x225)](_0x219b0f[_0x1d0d87(0x214)]())['then'](_0xb1f964=>{const _0xa6a2d9=_0x1d0d87;_0xda225c(_0xb1f964),_0x48da4b[_0xa6a2d9(0x24e)]=_0xb1f964[_0xa6a2d9(0x230)]['subscribe'](_0x4049e2=>{_0x4d9eb1(_0x4049e2);});}),()=>{const _0x2b3bee=_0x1d0d87;var _0x11b8e3;(_0x11b8e3=_0x48da4b[_0x2b3bee(0x24e)])==null||_0x11b8e3[_0x2b3bee(0x24c)](),_0x48da4b['current']=null;}),[_0x219b0f,_0x40471f]),_0x29df55?_0x5c9867(_0x3de5e2,{'align':_0x1d0d87(0x256),'disabled':_0x2924ce===_0x1d0d87(0x266),'className':_0x1d0d87(0x206),'overlay':_0x5c9867(se,{'status':_0x2924ce,'coordinator':_0x29df55}),'children':_0x5c9867(_0x1d0d87(0x22e),{'className':_0x1e00b3(_0x1d0d87(0x25d),{'univer-cursor-not-allowed':_0x2924ce===_0x1d0d87(0x266),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2924ce!==_0x1d0d87(0x266)}),'type':'button','children':_0x5c9867(_0x2b4902,{'className':_0x1d0d87(0x25b)})})}):null;}function se(_0x467be9){const _0x4d6a22=_0x16f6b4;let {status:_0x2cd5d4,coordinator:_0x46592f}=_0x467be9;switch(_0x2cd5d4){case _0x4d6a22(0x219):return _0x5c9867(ce,{'coordinator':_0x46592f});case _0x4d6a22(0x244):return _0x5c9867(le,{'coordinator':_0x46592f});case'not-following':return _0x5c9867(ue,{'coordinator':_0x46592f});case'offline':return _0x5c9867(de,{});case _0x4d6a22(0x25f):return _0x5c9867(Y,{'coordinator':_0x46592f});default:return null;}}function ce(_0x5e8103){const _0x4e0596=_0x16f6b4;let {coordinator:_0x3e8ade}=_0x5e8103;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x4e0596(0x27e),{'className':_0x4e0596(0x223),'children':'Present\x20this\x20document'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x3e8ade[_0x4e0596(0x208)](),'children':_0x4e0596(0x1fd)})]});}function le(_0x90c1d4){const _0x3f6913=_0x16f6b4;let {coordinator:_0x938efe}=_0x90c1d4;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x3f6913(0x223),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5c9867(_0x2619a0,{'onClick':()=>_0x938efe['stopFollowing'](),'children':'Stop\x20following'})]});}function ue(_0x1d9a12){const _0x164b03=_0x16f6b4;let {coordinator:_0x267752}=_0x1d9a12;return _0xd26927(_0x348ecc,{'children':[_0x5c9867('div',{'className':_0x164b03(0x223),'children':_0x164b03(0x1f6)}),_0x5c9867(_0x2619a0,{'variant':'text','onClick':()=>_0x267752[_0x164b03(0x27a)](),'children':_0x164b03(0x277)})]});}function Y(_0x17faf0){const _0x30f79a=_0x16f6b4;let {coordinator:_0x5d4fee}=_0x17faf0;return _0xd26927(_0x348ecc,{'children':[_0x5c9867(_0x30f79a(0x27e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x30f79a(0x205)}),_0x5c9867(_0x2619a0,{'variant':_0x30f79a(0x1f2),'onClick':()=>_0x5d4fee[_0x30f79a(0x275)](),'children':_0x30f79a(0x22d)})]});}function de(){return _0x5c9867(_0x348ecc,{'children':'You\x27are\x20offline.'});}function _0x3742(_0x4ee06f,_0x354a27){_0x4ee06f=_0x4ee06f-0x1e6;const _0x2e6279=_0x2e62();let _0x3742d7=_0x2e6279[_0x4ee06f];return _0x3742d7;}let X=class extends _0x4b5dc9{constructor(_0x2359b1,_0x1e5f00){const _0x350581=_0x16f6b4;super(),this[_0x350581(0x23b)]=_0x2359b1,this[_0x350581(0x20b)]=_0x1e5f00,this[_0x350581(0x1fa)]();}[_0x16f6b4(0x1fa)](){const _0x313462=_0x16f6b4;this[_0x313462(0x238)](this['_uiPartsService'][_0x313462(0x241)](_0x17ec50[_0x313462(0x272)],()=>_0x432d78(J,this[_0x313462(0x23b)])));}};X=W([U(0x0,_0x4b6a05(_0x2d43c8)),U(0x1,_0xf530cb)],X);var fe=_0x16f6b4(0x21e),pe=_0x16f6b4(0x264);const Z={};let Q=class extends _0x4b5dc9{constructor(_0x3c125e){const _0x5d5110=_0x16f6b4;super(),this[_0x5d5110(0x200)]=_0x3c125e,this[_0x5d5110(0x1ea)]();}['_init'](){const _0x4125d=_0x16f6b4;[_0x986c73['id'],_0x212824['id'],_0x4dbd1e['id']][_0x4125d(0x1ee)](_0x325094=>{const _0x4a1ff1=_0x4125d;this[_0x4a1ff1(0x238)](this['_liveShareService'][_0x4a1ff1(0x23d)](_0x325094));});}};Q=W([U(0x0,_0x4b6a05(H))],Q);let $=class extends _0x547cf5{constructor(_0x486e10=Z,_0x1c92f3,_0x552075){const _0x5f00ee=_0x16f6b4;super(),this['_config']=_0x486e10,this['_injector']=_0x1c92f3,this[_0x5f00ee(0x261)]=_0x552075;let {..._0xa4d04}=_0x26e587({},Z,this[_0x5f00ee(0x21a)]);this[_0x5f00ee(0x261)][_0x5f00ee(0x21d)](_0x5f00ee(0x228),_0xa4d04);}[_0x16f6b4(0x26d)](){const _0x17e6eb=_0x16f6b4;_0x58b3f9(this[_0x17e6eb(0x23b)],_0x10dc75([[H],[G],[Q],[X]],this[_0x17e6eb(0x21a)]['override'])),_0x4ca10c(this[_0x17e6eb(0x23b)],[[Q]]);}[_0x16f6b4(0x271)](){const _0x590c40=_0x16f6b4;_0x4ca10c(this[_0x590c40(0x23b)],[[X]]);}};V($,'type',_0xc09af2[_0x16f6b4(0x248)]),V($,'pluginName',_0x16f6b4(0x233)),V($,_0x16f6b4(0x22a),fe),V($,_0x16f6b4(0x26b),pe),$=W([_0x3dc140(_0x1faa0e),U(0x1,_0x4b6a05(_0x2d43c8)),U(0x2,_0x46eafb)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x254a(_0x4398bb,_0x39daa6){_0x4398bb=_0x4398bb-0x136;const _0x3688ab=_0x3688();let _0x254a5e=_0x3688ab[_0x4398bb];return _0x254a5e;}(function(_0x2011ec,_0x4bcebf){const _0x294d8b=_0x254a,_0x3ed8ee=_0x2011ec();while(!![]){try{const _0x2186e7=parseInt(_0x294d8b(0x14c))/0x1+-parseInt(_0x294d8b(0x163))/0x2+-parseInt(_0x294d8b(0x153))/0x3*(parseInt(_0x294d8b(0x147))/0x4)+parseInt(_0x294d8b(0x161))/0x5*(-parseInt(_0x294d8b(0x146))/0x6)+parseInt(_0x294d8b(0x148))/0x7*(-parseInt(_0x294d8b(0x14d))/0x8)+parseInt(_0x294d8b(0x15c))/0x9*(parseInt(_0x294d8b(0x139))/0xa)+parseInt(_0x294d8b(0x15a))/0xb*(parseInt(_0x294d8b(0x157))/0xc);if(_0x2186e7===_0x4bcebf)break;else _0x3ed8ee['push'](_0x3ed8ee['shift']());}catch(_0x2acae7){_0x3ed8ee['push'](_0x3ed8ee['shift']());}}}(_0x3688,0x714b4),function(_0x502966,_0x1a3551){const _0xf2a5f4=_0x254a;typeof exports==_0xf2a5f4(0x165)&&typeof module<'u'?_0x1a3551(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xf2a5f4(0x156)&&define[_0xf2a5f4(0x15d)]?define([_0xf2a5f4(0x167),_0xf2a5f4(0x160),_0xf2a5f4(0x138)],_0x1a3551):(_0x502966=typeof globalThis<'u'?globalThis:_0x502966||self,_0x1a3551(_0x502966[_0xf2a5f4(0x14e)],_0x502966[_0xf2a5f4(0x136)],_0x502966[_0xf2a5f4(0x164)]));}(this,function(_0x2cfe8d,_0x21e47d,_0x134e59){const _0x1f5a69=_0x254a;function _0x2a68c1(_0x278361){'@babel/helpers - typeof';const _0x664e62=_0x254a;return _0x2a68c1=typeof Symbol==_0x664e62(0x156)&&typeof Symbol['iterator']==_0x664e62(0x13f)?function(_0x421a69){return typeof _0x421a69;}:function(_0x3c8053){const _0x404560=_0x664e62;return _0x3c8053&&typeof Symbol==_0x404560(0x156)&&_0x3c8053['constructor']===Symbol&&_0x3c8053!==Symbol['prototype']?'symbol':typeof _0x3c8053;},_0x2a68c1(_0x278361);}function _0x37a729(_0x127828,_0x1bad93){const _0x31207c=_0x254a;if(_0x2a68c1(_0x127828)!=_0x31207c(0x165)||!_0x127828)return _0x127828;var _0x33280f=_0x127828[Symbol[_0x31207c(0x13c)]];if(_0x33280f!==void 0x0){var _0x223268=_0x33280f['call'](_0x127828,_0x1bad93||'default');if(_0x2a68c1(_0x223268)!='object')return _0x223268;throw TypeError(_0x31207c(0x151));}return(_0x1bad93==='string'?String:Number)(_0x127828);}function _0x1776bb(_0x577355){const _0x5874c1=_0x254a;var _0x1687f8=_0x37a729(_0x577355,_0x5874c1(0x162));return _0x2a68c1(_0x1687f8)==_0x5874c1(0x13f)?_0x1687f8:_0x1687f8+'';}function _0x296ae7(_0x933a96,_0x531355,_0x101936){const _0x44bd02=_0x254a;return(_0x531355=_0x1776bb(_0x531355))in _0x933a96?Object[_0x44bd02(0x141)](_0x933a96,_0x531355,{'value':_0x101936,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x933a96[_0x531355]=_0x101936,_0x933a96;}var _0xc6de91=class extends _0x134e59[_0x1f5a69(0x142)]{constructor(..._0xc30da0){const _0x156032=_0x1f5a69;super(..._0xc30da0),_0x296ae7(this,_0x156032(0x14a),void 0x0);}[_0x1f5a69(0x14f)](_0x306fe4){const _0x1f8c2b=_0x1f5a69;this[_0x1f8c2b(0x14a)]=_0x306fe4['get'](_0x2cfe8d[_0x1f8c2b(0x13b)]);}[_0x1f5a69(0x13e)](){const _0x342734=_0x1f5a69;var _0x29f4c3;let _0x21a66f=this[_0x342734(0x152)][_0x342734(0x150)](_0x21e47d[_0x342734(0x15f)])[_0x342734(0x149)](_0x21e47d[_0x342734(0x15b)][_0x342734(0x14b)]);if(!_0x21a66f)throw Error('No\x20active\x20workbook\x20found.');let _0xf6f4ea=_0x21a66f['getUnitId'](),_0x3ddca1=this[_0x342734(0x14a)][_0x342734(0x137)](_0xf6f4ea);return(_0x29f4c3=_0x3ddca1==null?void 0x0:_0x3ddca1[_0x342734(0x168)]())==null?_0x2cfe8d['LiveShareStatus'][_0x342734(0x154)]:_0x29f4c3;}['startFollowing'](){const _0x56c68e=_0x1f5a69;let _0x42f92e=this[_0x56c68e(0x152)][_0x56c68e(0x150)](_0x21e47d[_0x56c68e(0x15f)])['getCurrentUnitOfType'](_0x21e47d[_0x56c68e(0x15b)][_0x56c68e(0x14b)]);if(!_0x42f92e)throw Error(_0x56c68e(0x144));let _0x19a1b0=_0x42f92e[_0x56c68e(0x140)](),_0x5d12b5=this['_liveShareController'][_0x56c68e(0x137)](_0x19a1b0);if(!_0x5d12b5)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d12b5[_0x56c68e(0x155)]();}['stopFollowing'](){const _0x23f743=_0x1f5a69;let _0x492997=this[_0x23f743(0x152)][_0x23f743(0x150)](_0x21e47d[_0x23f743(0x15f)])[_0x23f743(0x149)](_0x21e47d[_0x23f743(0x15b)][_0x23f743(0x14b)]);if(!_0x492997)throw Error(_0x23f743(0x144));let _0x9019cc=_0x492997[_0x23f743(0x140)](),_0xbc03e4=this[_0x23f743(0x14a)][_0x23f743(0x137)](_0x9019cc);if(!_0xbc03e4)throw Error(_0x23f743(0x13a));_0xbc03e4[_0x23f743(0x159)]();}[_0x1f5a69(0x143)](){const _0x50bab2=_0x1f5a69;let _0x394fdc=this[_0x50bab2(0x152)][_0x50bab2(0x150)](_0x21e47d[_0x50bab2(0x15f)])['getCurrentUnitOfType'](_0x21e47d[_0x50bab2(0x15b)][_0x50bab2(0x14b)]);if(!_0x394fdc)throw Error(_0x50bab2(0x144));let _0x2382c2=_0x394fdc[_0x50bab2(0x140)](),_0x48a7a6=this[_0x50bab2(0x14a)][_0x50bab2(0x137)](_0x2382c2);if(!_0x48a7a6)throw Error(_0x50bab2(0x13a));_0x48a7a6[_0x50bab2(0x15e)]();}[_0x1f5a69(0x158)](){const _0x307684=_0x1f5a69;let _0x59a51f=this[_0x307684(0x152)]['get'](_0x21e47d[_0x307684(0x15f)])[_0x307684(0x149)](_0x21e47d[_0x307684(0x15b)][_0x307684(0x14b)]);if(!_0x59a51f)throw Error('No\x20active\x20workbook\x20found.');let _0x25f402=_0x59a51f[_0x307684(0x140)](),_0x83c4ad=this[_0x307684(0x14a)]['getLiveShareCoordinatorSync'](_0x25f402);if(!_0x83c4ad)throw Error(_0x307684(0x13a));_0x83c4ad[_0x307684(0x158)]();}};_0x134e59[_0x1f5a69(0x142)][_0x1f5a69(0x145)](_0xc6de91);var _0x2a3f2a=class extends _0x134e59['FEnum']{get['LiveShareStatusEnum'](){const _0x19b842=_0x1f5a69;return _0x2cfe8d[_0x19b842(0x166)];}};_0x134e59[_0x1f5a69(0x13d)]['extend'](_0x2a3f2a);}));function _0x3688(){const _0xf30291=['156aldAeF','14sBXtZx','getCurrentUnitOfType','_liveShareController','UNIVER_SHEET','67480tebcCp','2020312ghBgKp','UniverProLiveShare','_initialize','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_injector','20853CsSqNu','IDLE','startFollowing','function','12ZBqTOY','stopPresenting','stopFollowing','23805232OkkrRQ','UniverInstanceType','5337yBVeJK','amd','tryStartPresenting','IUniverInstanceService','@univerjs/core','155FTgnyV','string','1696246MiLHHr','UniverCoreFacade','object','LiveShareStatus','@univerjs-pro/live-share','getStatus','UniverCore','getLiveShareCoordinatorSync','@univerjs/core/facade','3490cfiIts','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','toPrimitive','FEnum','getLiveShareStatus','symbol','getUnitId','defineProperty','FUniver','startPresenting','No\x20active\x20workbook\x20found.','extend','67782TEiSqj'];_0x3688=function(){return _0xf30291;};return _0x3688();}
1
+ function _0x2451(_0x4ee0c4,_0x3a07c9){_0x4ee0c4=_0x4ee0c4-0x90;const _0x3545c5=_0x3545();let _0x245154=_0x3545c5[_0x4ee0c4];return _0x245154;}function _0x3545(){const _0x1655e1=['8025705JchNJa','LiveShareStatus','stopFollowing','UNIVER_SHEET','UniverCore','UniverInstanceType','tryStartPresenting','getLiveShareStatus','1832luNXDS','LiveShareStatusEnum','amd','LiveShareController','No\x20active\x20workbook\x20found.','IDLE','710601tZifMj','3142616tNYYII','_injector','get','defineProperty','function','IUniverInstanceService','call','_initialize','@univerjs-pro/live-share','object','constructor','433015pLSVDh','startFollowing','5591770bebNoc','@univerjs/core','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FUniver','UniverCoreFacade','extend','_liveShareController','getUnitId','476rkfBmv','iterator','startPresenting','stopPresenting','getLiveShareCoordinatorSync','5937678XpsqUL','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','toPrimitive','getStatus','FEnum','10FwMRFc','prototype','string','UniverProLiveShare','getCurrentUnitOfType'];_0x3545=function(){return _0x1655e1;};return _0x3545();}(function(_0x1885d0,_0x2ac5c2){const _0x1e6568=_0x2451,_0x57db5f=_0x1885d0();while(!![]){try{const _0x3d1bb9=-parseInt(_0x1e6568(0x9e))/0x1+-parseInt(_0x1e6568(0xb2))/0x2*(parseInt(_0x1e6568(0x92))/0x3)+-parseInt(_0x1e6568(0x93))/0x4+parseInt(_0x1e6568(0xa0))/0x5+parseInt(_0x1e6568(0xad))/0x6+parseInt(_0x1e6568(0xa8))/0x7*(parseInt(_0x1e6568(0xbf))/0x8)+parseInt(_0x1e6568(0xb7))/0x9;if(_0x3d1bb9===_0x2ac5c2)break;else _0x57db5f['push'](_0x57db5f['shift']());}catch(_0x2cf5a3){_0x57db5f['push'](_0x57db5f['shift']());}}}(_0x3545,0x957b8),function(_0x43120e,_0x154c4){const _0x27591f=_0x2451;typeof exports==_0x27591f(0x9c)&&typeof module<'u'?_0x154c4(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x27591f(0x97)&&define[_0x27591f(0xc1)]?define([_0x27591f(0x9b),_0x27591f(0xa1),'@univerjs/core/facade'],_0x154c4):(_0x43120e=typeof globalThis<'u'?globalThis:_0x43120e||self,_0x154c4(_0x43120e[_0x27591f(0xb5)],_0x43120e[_0x27591f(0xbb)],_0x43120e[_0x27591f(0xa4)]));}(this,function(_0x14b6a8,_0x19e1bd,_0x12a291){const _0x3051cf=_0x2451;function _0x29d094(_0x31c4ce){'@babel/helpers - typeof';const _0x57d3ca=_0x2451;return _0x29d094=typeof Symbol==_0x57d3ca(0x97)&&typeof Symbol[_0x57d3ca(0xa9)]=='symbol'?function(_0x1cb138){return typeof _0x1cb138;}:function(_0x19afb6){const _0x5d8c3f=_0x57d3ca;return _0x19afb6&&typeof Symbol==_0x5d8c3f(0x97)&&_0x19afb6[_0x5d8c3f(0x9d)]===Symbol&&_0x19afb6!==Symbol[_0x5d8c3f(0xb3)]?'symbol':typeof _0x19afb6;},_0x29d094(_0x31c4ce);}function _0xe21148(_0x174fd6,_0x5e8f54){const _0x3f8a8d=_0x2451;if(_0x29d094(_0x174fd6)!='object'||!_0x174fd6)return _0x174fd6;var _0x4ffb03=_0x174fd6[Symbol[_0x3f8a8d(0xaf)]];if(_0x4ffb03!==void 0x0){var _0x1fe51a=_0x4ffb03[_0x3f8a8d(0x99)](_0x174fd6,_0x5e8f54||'default');if(_0x29d094(_0x1fe51a)!='object')return _0x1fe51a;throw TypeError(_0x3f8a8d(0xa2));}return(_0x5e8f54===_0x3f8a8d(0xb4)?String:Number)(_0x174fd6);}function _0x50d55c(_0x371f00){const _0x1e95ee=_0x2451;var _0x374e83=_0xe21148(_0x371f00,_0x1e95ee(0xb4));return _0x29d094(_0x374e83)=='symbol'?_0x374e83:_0x374e83+'';}function _0x353409(_0x2d31cc,_0x5ee287,_0x4cde6c){const _0x7a7e9c=_0x2451;return(_0x5ee287=_0x50d55c(_0x5ee287))in _0x2d31cc?Object[_0x7a7e9c(0x96)](_0x2d31cc,_0x5ee287,{'value':_0x4cde6c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d31cc[_0x5ee287]=_0x4cde6c,_0x2d31cc;}var _0x470818=class extends _0x12a291[_0x3051cf(0xa3)]{constructor(..._0x3f9e84){const _0x185701=_0x3051cf;super(..._0x3f9e84),_0x353409(this,_0x185701(0xa6),void 0x0);}[_0x3051cf(0x9a)](_0x39c093){const _0x4aeaba=_0x3051cf;this['_liveShareController']=_0x39c093[_0x4aeaba(0x95)](_0x14b6a8[_0x4aeaba(0xc2)]);}[_0x3051cf(0xbe)](){const _0x40fc8c=_0x3051cf;var _0x4db0bf;let _0x4b3699=this['_injector'][_0x40fc8c(0x95)](_0x19e1bd['IUniverInstanceService'])[_0x40fc8c(0xb6)](_0x19e1bd[_0x40fc8c(0xbc)][_0x40fc8c(0xba)]);if(!_0x4b3699)throw Error(_0x40fc8c(0x90));let _0x3e5e67=_0x4b3699[_0x40fc8c(0xa7)](),_0x5b6f68=this[_0x40fc8c(0xa6)][_0x40fc8c(0xac)](_0x3e5e67);return(_0x4db0bf=_0x5b6f68==null?void 0x0:_0x5b6f68[_0x40fc8c(0xb0)]())==null?_0x14b6a8[_0x40fc8c(0xb8)][_0x40fc8c(0x91)]:_0x4db0bf;}[_0x3051cf(0x9f)](){const _0x450582=_0x3051cf;let _0x5682e9=this['_injector'][_0x450582(0x95)](_0x19e1bd[_0x450582(0x98)])[_0x450582(0xb6)](_0x19e1bd['UniverInstanceType'][_0x450582(0xba)]);if(!_0x5682e9)throw Error('No\x20active\x20workbook\x20found.');let _0x14bea7=_0x5682e9[_0x450582(0xa7)](),_0x59e222=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x14bea7);if(!_0x59e222)throw Error(_0x450582(0xae));_0x59e222['startFollowing']();}['stopFollowing'](){const _0x2d66b2=_0x3051cf;let _0x41a0e2=this['_injector']['get'](_0x19e1bd[_0x2d66b2(0x98)])[_0x2d66b2(0xb6)](_0x19e1bd[_0x2d66b2(0xbc)]['UNIVER_SHEET']);if(!_0x41a0e2)throw Error('No\x20active\x20workbook\x20found.');let _0x1428f5=_0x41a0e2['getUnitId'](),_0x5d8eb6=this['_liveShareController'][_0x2d66b2(0xac)](_0x1428f5);if(!_0x5d8eb6)throw Error(_0x2d66b2(0xae));_0x5d8eb6[_0x2d66b2(0xb9)]();}[_0x3051cf(0xaa)](){const _0x243010=_0x3051cf;let _0x3d79fa=this['_injector'][_0x243010(0x95)](_0x19e1bd[_0x243010(0x98)])[_0x243010(0xb6)](_0x19e1bd[_0x243010(0xbc)][_0x243010(0xba)]);if(!_0x3d79fa)throw Error(_0x243010(0x90));let _0x5a4006=_0x3d79fa[_0x243010(0xa7)](),_0x1a341d=this[_0x243010(0xa6)][_0x243010(0xac)](_0x5a4006);if(!_0x1a341d)throw Error(_0x243010(0xae));_0x1a341d[_0x243010(0xbd)]();}['stopPresenting'](){const _0xe027c5=_0x3051cf;let _0x1edd29=this[_0xe027c5(0x94)]['get'](_0x19e1bd[_0xe027c5(0x98)])[_0xe027c5(0xb6)](_0x19e1bd['UniverInstanceType'][_0xe027c5(0xba)]);if(!_0x1edd29)throw Error(_0xe027c5(0x90));let _0x11c39d=_0x1edd29['getUnitId'](),_0x2211f9=this[_0xe027c5(0xa6)][_0xe027c5(0xac)](_0x11c39d);if(!_0x2211f9)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2211f9[_0xe027c5(0xab)]();}};_0x12a291[_0x3051cf(0xa3)][_0x3051cf(0xa5)](_0x470818);var _0xbba924=class extends _0x12a291[_0x3051cf(0xb1)]{get[_0x3051cf(0xc0)](){return _0x14b6a8['LiveShareStatus'];}};_0x12a291[_0x3051cf(0xb1)][_0x3051cf(0xa5)](_0xbba924);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3ee8(){const _0xbdb4ac=['assign','url(#$1','LIVESHARE_NEW_HOST','LiveShareIcon','LIVESHARE_TERMINATE','dispose','UniverProCollaboration','send','UNIVER_LIVE_SHARE_PLUGIN','currentColor','You\x27re\x20presenting\x20the\x20document','LiveShareStatus','rxjs/operators','HEADER_MENU','offline','LiveShareController','from','UniverSheets','toStringTag','substring','presenter','UniverCore','svg','LiveShareService','_status$','_init','function','not-following','forEach','_handleOperation','random','attrs','throttleTime','_startLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','clear','evenodd','createInstance','PRESENTING','You\x27are\x20offline.','LIVESHARE_OPERATION','Button','getStatus','registerSharedOperation','live-share-icon','event$','12105904QNbvTn','2755125EpohhT','_handleTerminate','iterator','defineProperty','_injector','values','DesktopLiveShareController','CollaborationEvent','0\x200\x2017\x2017','getInitialStates','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','_uiPartsService','UniverLiveSharePlugin','_stopPresenting','entries','useEffect','Dropdown','_beIdle','takeUntil','pluginName','@univerjs/core','7674265feQGyN','1em','operations','@univerjs/sheets-ui','InsertSheetMutation','tag','jsxs','40jnZmOg','has','IUniverInstanceService','_collabSession','BehaviorSubject','default','useDependency','React','_handleNewHost','Subject','_sharedOperations','FOLLOWING','onRendered','Inject','presenting','0.25.0','ICommandService','_unitID','NEW_CHANGESETS','@univerjs-pro/live-share','getTypeOfUnitAdded$','SetZoomRatioOperation','displayName','params','includes','replace','data','UNIVER_SHEET','find','Start\x20following','react/jsx-runtime','connectInjector','useRef','then','_config','CommandType','set','call','mutations','operators','You\x27re\x20not\x20following\x20the\x20presenter','version','pipe','useObservable','UniverProLiveShare','object','delete','Disposable','_reporters','unitId','jsx','_entities','_status','onStarting','LIVESHARE_REQUEST_HOST','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','path','_fetchOperations','tryStartPresenting','getCurrentTypeOfUnit$','getMemberID','useState','659166jwHIHo','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActiveOperation','UniverUi','7535898CJZoxb','UNIVER_UNKNOWN','xlink:href','button','getTypeOfUnitDisposed$','onCommandExecuted','Stop\x20following','packageName','SessionStatus','getConfig','rxjs','_handleOnline','stopFollowing','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','unit','shouldShareOperation','_presenter','complete','Start','ONLINE','subscribe','defIds','registerDependencies','colorChannel1','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','1290230qhQWCm','decorate','_handleNewChangeSets','_commandDisposable','toPrimitive','@univerjs-pro/collaboration-client','exports','reverse','fill','mask','status$','length','next','_stopFollowing','UniverDesign','touchDependencies','sessionStatus$','unsubscribe','mergeOverrideWithDependencies','UniverInstanceType','startFollowing','add','following','parseProtocolChangeset','div','react','disposeWithMe','_handleOffline','getOwnPropertyDescriptor','init','BuiltInUIPart','map','_startFollowing','idle','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IConfigService','UniverProCollaborationClient','NOT_FOLLOWING','stringify','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','toString','toDisposable','parse','21175rtfalu','Injector','string','end','use','OPERATION','UniverCollaborationClientPlugin','getUnitId','98ZxOTKN','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','DisposableCollection','type','_liveShareService','@univerjs/ui','_configService','_mountLiveShare','setConfig','getLiveShareCoordinator','RxDisposable','OFFLINE','current','Fragment','@univerjs-pro/collaboration','idSuffix','SetScrollOperation','4MgVbbJ','_univerInstanceService','children','Stop\x20presenting','amd','_commandService','clsx','symbol','dispose$'];_0x3ee8=function(){return _0xbdb4ac;};return _0x3ee8();}function _0x5a09(_0x5bd85f,_0x38759e){_0x5bd85f=_0x5bd85f-0xa5;const _0x3ee877=_0x3ee8();let _0x5a09ed=_0x3ee877[_0x5bd85f];return _0x5a09ed;}(function(_0x1f7a3d,_0x174bd7){const _0xdaea1f=_0x5a09,_0x121448=_0x1f7a3d();while(!![]){try{const _0x48dd5b=-parseInt(_0xdaea1f(0xbd))/0x1*(-parseInt(_0xdaea1f(0x12b))/0x2)+parseInt(_0xdaea1f(0x10e))/0x3+-parseInt(_0xdaea1f(0xd6))/0x4*(-parseInt(_0xdaea1f(0x124))/0x5)+parseInt(_0xdaea1f(0x169))/0x6*(-parseInt(_0xdaea1f(0xc5))/0x7)+-parseInt(_0xdaea1f(0x10d))/0x8+parseInt(_0xdaea1f(0x16d))/0x9+parseInt(_0xdaea1f(0x186))/0xa;if(_0x48dd5b===_0x174bd7)break;else _0x121448['push'](_0x121448['shift']());}catch(_0x3c6796){_0x121448['push'](_0x121448['shift']());}}}(_0x3ee8,0xc14e5),function(_0x53078d,_0x4a00d0){const _0x290b52=_0x5a09;typeof exports==_0x290b52(0x158)&&typeof module<'u'?_0x4a00d0(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[_0x290b52(0xda)]?define([_0x290b52(0x18c),_0x290b52(0x123),_0x290b52(0xca),'@univerjs/design',_0x290b52(0xaa),_0x290b52(0xd3),_0x290b52(0x18b),'@univerjs/sheets',_0x290b52(0x177),_0x290b52(0xeb),_0x290b52(0x149),_0x290b52(0x127)],_0x4a00d0):(_0x53078d=typeof globalThis<'u'?globalThis:_0x53078d||self,_0x4a00d0(_0x53078d[_0x290b52(0x157)]={},_0x53078d[_0x290b52(0xf4)],_0x53078d[_0x290b52(0x16c)],_0x53078d[_0x290b52(0x194)],_0x53078d['React'],_0x53078d[_0x290b52(0xe5)],_0x53078d[_0x290b52(0xb5)],_0x53078d[_0x290b52(0xf0)],_0x53078d[_0x290b52(0x177)],_0x53078d['rxjs'][_0x290b52(0x152)],_0x53078d[_0x290b52(0x132)],_0x53078d['UniverSheetsUi']));}(this,function(_0x4a206c,_0x2e7bad,_0x51e529,_0x1fb8e8,_0x56d0c6,_0x47a740,_0x473c83,_0x10e3b7,_0x3c016f,_0x8ea80b,_0x3d6e13,_0x17de75){const _0x11a364=_0x5a09;Object[_0x11a364(0x111)](_0x4a206c,Symbol[_0x11a364(0xf1)],{'value':'Module'});function _0x36903c({ref:_0xdc673b,..._0x3991d3}){const _0x11197f=_0x11a364;let {icon:_0x45875b,id:_0x37704c,className:_0x27fccf,extend:_0x37bce4,..._0x247b9}=_0x3991d3,_0x26ae2c=(_0x11197f(0xb9)+_0x37704c+'\x20'+(_0x27fccf||''))['trim'](),_0x1c3a1f=(0x0,_0x56d0c6[_0x11197f(0x14b)])('_'+_0x36acdd());return _0x570777(_0x45875b,''+_0x37704c,{'defIds':_0x45875b[_0x11197f(0x182)],'idSuffix':_0x1c3a1f[_0x11197f(0xd1)]},{'ref':_0xdc673b,'className':_0x26ae2c,..._0x247b9},_0x37bce4);}function _0x570777(_0x4764b1,_0x4e5453,_0x1801fd,_0x3aa848,_0x437403){const _0x146a44=_0x11a364;return(0x0,_0x56d0c6['createElement'])(_0x4764b1['tag'],{'key':_0x4e5453,..._0x1c29b4(_0x4764b1,_0x1801fd,_0x437403),..._0x3aa848},(_0x7a751c(_0x4764b1,_0x1801fd)['children']||[])[_0x146a44(0xb0)]((_0x3e25fe,_0x2e762f)=>_0x570777(_0x3e25fe,_0x4e5453+'-'+_0x4764b1[_0x146a44(0x129)]+'-'+_0x2e762f,_0x1801fd,void 0x0,_0x437403)));}function _0x1c29b4(_0xcd012e,_0x369939,_0x38479a){const _0x262c20=_0x11a364;let _0x402057={..._0xcd012e['attrs']};_0x38479a!=null&&_0x38479a['colorChannel1']&&_0x402057[_0x262c20(0x18e)]==='colorChannel1'&&(_0x402057[_0x262c20(0x18e)]=_0x38479a[_0x262c20(0x184)]),_0xcd012e[_0x262c20(0x129)]==='mask'&&_0x402057['id']&&(_0x402057['id']+=_0x369939[_0x262c20(0xd4)]),Object[_0x262c20(0x11d)](_0x402057)[_0x262c20(0xfb)](([_0x2fdd96,_0x42b893])=>{const _0x46db3e=_0x262c20;_0x2fdd96===_0x46db3e(0x18f)&&typeof _0x42b893==_0x46db3e(0xbf)&&(_0x402057[_0x2fdd96]=_0x42b893[_0x46db3e(0x144)](/url\(#(.*)\)/,_0x46db3e(0xe0)+_0x369939[_0x46db3e(0xd4)]+')'));});let {defIds:_0x331020}=_0x369939;return!_0x331020||_0x331020[_0x262c20(0x191)]===0x0?_0x402057:(_0xcd012e[_0x262c20(0x129)]===_0x262c20(0xc1)&&_0x402057[_0x262c20(0x16f)]&&(_0x402057[_0x262c20(0x16f)]+=_0x369939[_0x262c20(0xd4)]),Object['entries'](_0x402057)[_0x262c20(0xfb)](([_0x49ab3a,_0x3177c8])=>{const _0x268e07=_0x262c20;typeof _0x3177c8==_0x268e07(0xbf)&&(_0x402057[_0x49ab3a]=_0x3177c8[_0x268e07(0x144)](/url\(#(.*)\)/,_0x268e07(0xe0)+_0x369939[_0x268e07(0xd4)]+')'));}),_0x402057);}function _0x7a751c(_0x3f0bb8,_0x52b1be){const _0x244326=_0x11a364;var _0x40f9ff;let {defIds:_0x265017}=_0x52b1be;return!_0x265017||_0x265017[_0x244326(0x191)]===0x0?_0x3f0bb8:_0x3f0bb8['tag']==='defs'&&(_0x40f9ff=_0x3f0bb8[_0x244326(0xd8)])!=null&&_0x40f9ff['length']?{..._0x3f0bb8,'children':_0x3f0bb8['children'][_0x244326(0xb0)](_0x2f2874=>typeof _0x2f2874[_0x244326(0xfe)]['id']==_0x244326(0xbf)&&_0x265017&&_0x265017[_0x244326(0x143)](_0x2f2874['attrs']['id'])?{..._0x2f2874,'attrs':{..._0x2f2874['attrs'],'id':_0x2f2874[_0x244326(0xfe)]['id']+_0x52b1be['idSuffix']}}:_0x2f2874)}:_0x3f0bb8;}function _0x36acdd(){const _0x4034d9=_0x11a364;return Math[_0x4034d9(0xfd)]()[_0x4034d9(0xba)](0x24)[_0x4034d9(0xf2)](0x2,0x8);}_0x36903c[_0x11a364(0x141)]='UniverIcon';let _0x1194e8={'tag':_0x11a364(0xf5),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x11a364(0x116),'width':'1em','height':_0x11a364(0x125)},'children':[{'tag':'path','attrs':{'fill':_0x11a364(0xe8),'d':_0x11a364(0x162)}},{'tag':_0x11a364(0x163),'attrs':{'fill':_0x11a364(0xe8),'d':_0x11a364(0xc6),'fillRule':'evenodd','clipRule':_0x11a364(0x103)}}]},_0xe5d3f2=(0x0,_0x56d0c6['forwardRef'])(function(_0x383aaa,_0x5c5b54){const _0x181d62=_0x11a364;return(0x0,_0x56d0c6['createElement'])(_0x36903c,Object[_0x181d62(0xdf)]({},_0x383aaa,{'id':_0x181d62(0x10b),'ref':_0x5c5b54,'icon':_0x1194e8}));});_0xe5d3f2['displayName']=_0x11a364(0xe2);function _0x48899a(_0x135867){'@babel/helpers - typeof';const _0x8b9c1=_0x11a364;return _0x48899a=typeof Symbol==_0x8b9c1(0xf9)&&typeof Symbol[_0x8b9c1(0x110)]==_0x8b9c1(0xdd)?function(_0x2c9852){return typeof _0x2c9852;}:function(_0x2c8b0d){const _0x564e41=_0x8b9c1;return _0x2c8b0d&&typeof Symbol==_0x564e41(0xf9)&&_0x2c8b0d['constructor']===Symbol&&_0x2c8b0d!==Symbol['prototype']?_0x564e41(0xdd):typeof _0x2c8b0d;},_0x48899a(_0x135867);}function _0x13f7c6(_0x44d01a,_0x5c2031){const _0x181b3a=_0x11a364;if(_0x48899a(_0x44d01a)!=_0x181b3a(0x158)||!_0x44d01a)return _0x44d01a;var _0x47b3a6=_0x44d01a[Symbol[_0x181b3a(0x18a)]];if(_0x47b3a6!==void 0x0){var _0x332802=_0x47b3a6[_0x181b3a(0x150)](_0x44d01a,_0x5c2031||_0x181b3a(0x130));if(_0x48899a(_0x332802)!=_0x181b3a(0x158))return _0x332802;throw TypeError(_0x181b3a(0xb3));}return(_0x5c2031===_0x181b3a(0xbf)?String:Number)(_0x44d01a);}function _0x326d2b(_0x47ac6f){const _0x347993=_0x11a364;var _0x4e4204=_0x13f7c6(_0x47ac6f,_0x347993(0xbf));return _0x48899a(_0x4e4204)==_0x347993(0xdd)?_0x4e4204:_0x4e4204+'';}function _0x28317c(_0x49e134,_0x4a4cdf,_0x3ab6e3){const _0x5723d6=_0x11a364;return(_0x4a4cdf=_0x326d2b(_0x4a4cdf))in _0x49e134?Object[_0x5723d6(0x111)](_0x49e134,_0x4a4cdf,{'value':_0x3ab6e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49e134[_0x4a4cdf]=_0x3ab6e3,_0x49e134;}var _0x225913=class extends _0x2e7bad['Disposable']{constructor(..._0x49a8f1){const _0x301a29=_0x11a364;super(..._0x49a8f1),_0x28317c(this,_0x301a29(0x135),new Set()),_0x28317c(this,_0x301a29(0x15b),new Set());}[_0x11a364(0x10a)](_0x1437d3){const _0x485613=_0x11a364;return this[_0x485613(0x135)][_0x485613(0xa6)](_0x1437d3),(0x0,_0x2e7bad['toDisposable'])(()=>this[_0x485613(0x135)][_0x485613(0x159)](_0x1437d3));}['registerInitialStateReporter'](_0x2c09fd){const _0x4d8a14=_0x11a364;return this[_0x4d8a14(0x15b)][_0x4d8a14(0xa6)](_0x2c09fd),(0x0,_0x2e7bad[_0x4d8a14(0xbb)])(()=>this[_0x4d8a14(0x15b)][_0x4d8a14(0x159)](_0x2c09fd));}[_0x11a364(0x17c)](_0x5333cc){const _0xcc84de=_0x11a364;return this['_sharedOperations'][_0xcc84de(0x12c)](_0x5333cc);}['getInitialStates'](_0x578a59){const _0x16811d=_0x11a364;return Array[_0x16811d(0xef)](this[_0x16811d(0x15b)])[_0x16811d(0xb0)](_0x3d0ef8=>_0x3d0ef8(_0x578a59));}};function _0x3f7fa2(_0x5f3416,_0x4a0517){return function(_0x2dc64c,_0x155056){_0x4a0517(_0x2dc64c,_0x155056,_0x5f3416);};}function _0x306afd(_0x47c638,_0x140798,_0x5227af,_0x2ebe54){const _0x13be94=_0x11a364;var _0x2127e4=arguments['length'],_0x22f812=_0x2127e4<0x3?_0x140798:_0x2ebe54===null?_0x2ebe54=Object[_0x13be94(0xad)](_0x140798,_0x5227af):_0x2ebe54,_0xde28ab;if(typeof Reflect==_0x13be94(0x158)&&typeof Reflect[_0x13be94(0x187)]==_0x13be94(0xf9))_0x22f812=Reflect[_0x13be94(0x187)](_0x47c638,_0x140798,_0x5227af,_0x2ebe54);else{for(var _0x47d97e=_0x47c638['length']-0x1;_0x47d97e>=0x0;_0x47d97e--)(_0xde28ab=_0x47c638[_0x47d97e])&&(_0x22f812=(_0x2127e4<0x3?_0xde28ab(_0x22f812):_0x2127e4>0x3?_0xde28ab(_0x140798,_0x5227af,_0x22f812):_0xde28ab(_0x140798,_0x5227af))||_0x22f812);}return _0x2127e4>0x3&&_0x22f812&&Object['defineProperty'](_0x140798,_0x5227af,_0x22f812),_0x22f812;}let _0x217326=class extends _0x2e7bad[_0x11a364(0xcf)]{constructor(_0x307907,_0x3f06db,_0x37d208){const _0x12cc17=_0x11a364;super(),this[_0x12cc17(0xd7)]=_0x307907,this[_0x12cc17(0x112)]=_0x3f06db,this['_collabSessionService']=_0x37d208,_0x28317c(this,_0x12cc17(0x15e),new Map()),this[_0x12cc17(0xf8)]();}async[_0x11a364(0xce)](_0x44c147){const _0x3f112e=_0x11a364;return this['_entities'][_0x3f112e(0x12c)](_0x44c147)||await this[_0x3f112e(0x100)](_0x44c147),this['_entities'][_0x3f112e(0x119)](_0x44c147);}['getLiveShareCoordinatorSync'](_0x2d1396){const _0x24b469=_0x11a364;var _0x54ceb8;return(_0x54ceb8=this[_0x24b469(0x15e)]['get'](_0x2d1396))==null?null:_0x54ceb8;}[_0x11a364(0xf8)](){const _0x3da985=_0x11a364;this[_0x3da985(0xd7)][_0x3da985(0x13f)](_0x2e7bad[_0x3da985(0x199)][_0x3da985(0x146)])['pipe']((0x0,_0x8ea80b[_0x3da985(0x121)])(this['dispose$']))[_0x3da985(0x181)](async _0x9041e0=>{const _0x2fa323=_0x3da985;let _0x5622e4=_0x9041e0[_0x2fa323(0x17b)][_0x2fa323(0xc4)]();this['_entities']['has'](_0x5622e4)||this['_startLiveShareCoordinator'](_0x5622e4);}),this['_univerInstanceService'][_0x3da985(0x171)](_0x2e7bad[_0x3da985(0x199)][_0x3da985(0x146)])[_0x3da985(0x155)]((0x0,_0x8ea80b['takeUntil'])(this[_0x3da985(0xde)]))['subscribe'](_0x3849b8=>{const _0x1c1bbb=_0x3da985;let _0xa073c0=_0x3849b8[_0x1c1bbb(0xc4)](),_0x5b7eeb=this[_0x1c1bbb(0x15e)]['get'](_0xa073c0);_0x5b7eeb==null||_0x5b7eeb['dispose']();});}async[_0x11a364(0x100)](_0x16a059){const _0x4970c5=_0x11a364;let _0x1321ff=await this['_collabSessionService']['requireSession'](_0x16a059),_0x1157c5=this[_0x4970c5(0x112)][_0x4970c5(0x104)](_0x1bb0fb,_0x16a059,_0x1321ff);return _0x1157c5[_0x4970c5(0xae)](),this[_0x4970c5(0x15e)][_0x4970c5(0x14f)](_0x16a059,_0x1157c5),_0x1157c5;}};_0x217326=_0x306afd([_0x3f7fa2(0x0,_0x2e7bad['IUniverInstanceService']),_0x3f7fa2(0x1,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad[_0x11a364(0xbe)])),_0x3f7fa2(0x2,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x473c83[_0x11a364(0xb8)]))],_0x217326);let _0x3f762f=function(_0x409ee7){const _0x5cbb5c=_0x11a364;return _0x409ee7[_0x5cbb5c(0xd0)]=_0x5cbb5c(0xed),_0x409ee7['IDLE']=_0x5cbb5c(0xb2),_0x409ee7[_0x5cbb5c(0x136)]=_0x5cbb5c(0xa7),_0x409ee7[_0x5cbb5c(0xb6)]='not-following',_0x409ee7[_0x5cbb5c(0x105)]=_0x5cbb5c(0x139),_0x409ee7;}({}),_0x1bb0fb=class extends _0x2e7bad[_0x11a364(0xcf)]{get['_status'](){const _0xa8eea6=_0x11a364;return this[_0xa8eea6(0xf7)]['getValue']();}constructor(_0x563d7a,_0x2ec849,_0x5f0bbb,_0x3f4efd,_0x28154d){const _0x2f90de=_0x11a364;super(),this['_unitID']=_0x563d7a,this['_collabSession']=_0x2ec849,this[_0x2f90de(0xcb)]=_0x5f0bbb,this[_0x2f90de(0xc9)]=_0x3f4efd,this['_commandService']=_0x28154d,_0x28317c(this,_0x2f90de(0xf7),new _0x3c016f[(_0x2f90de(0x12f))](_0x2f90de(0xb2))),_0x28317c(this,_0x2f90de(0x190),this[_0x2f90de(0xf7)]['asObservable']()),_0x28317c(this,_0x2f90de(0xf8),!0x1),_0x28317c(this,_0x2f90de(0x189),null),_0x28317c(this,_0x2f90de(0x17d),null);}['dispose'](){const _0x41f6bc=_0x11a364;var _0xf4afbb;(_0xf4afbb=this[_0x41f6bc(0x189)])==null||_0xf4afbb[_0x41f6bc(0xe4)](),this[_0x41f6bc(0xf7)][_0x41f6bc(0x192)]('idle'),this[_0x41f6bc(0xf7)][_0x41f6bc(0x17e)]();}[_0x11a364(0x109)](){const _0x1baa39=_0x11a364;return this[_0x1baa39(0x15f)];}[_0x11a364(0xae)](){const _0x191b35=_0x11a364;this[_0x191b35(0xf8)]||(this['_init']=!0x0,this[_0x191b35(0x12e)][_0x191b35(0x196)]['pipe']((0x0,_0x8ea80b[_0x191b35(0x121)])(this[_0x191b35(0xde)]))['subscribe'](_0x3e4e3c=>{const _0x330236=_0x191b35;switch(_0x3e4e3c){case _0x473c83[_0x330236(0x175)][_0x330236(0xd0)]:this[_0x330236(0xac)]();break;case _0x473c83[_0x330236(0x175)][_0x330236(0x180)]:this['_handleOnline']();break;default:}}),this['_collabSession'][_0x191b35(0x10c)]['pipe']((0x0,_0x8ea80b[_0x191b35(0x121)])(this[_0x191b35(0xde)]))[_0x191b35(0x181)](_0x4f0e9b=>{const _0x10a581=_0x191b35;let {eventID:_0x4f5d8f}=_0x4f0e9b;switch(_0x4f5d8f){case _0x47a740[_0x10a581(0x115)][_0x10a581(0xe1)]:this[_0x10a581(0x133)](_0x4f0e9b);break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0x107)]:this[_0x10a581(0xfc)](_0x4f0e9b);break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0xe3)]:this[_0x10a581(0x10f)]();break;case _0x47a740[_0x10a581(0x115)][_0x10a581(0x13d)]:this[_0x10a581(0x188)](_0x4f0e9b);break;default:}}));}[_0x11a364(0x165)](){const _0x654dce=_0x11a364;this[_0x654dce(0x12e)][_0x654dce(0xe6)]({'eventID':_0x47a740[_0x654dce(0x115)][_0x654dce(0x161)],'data':{'unitID':this[_0x654dce(0x13c)],'userID':this[_0x654dce(0x12e)][_0x654dce(0x167)]()}},this[_0x654dce(0x13c)]);}['stopPresenting'](){const _0x16049c=_0x11a364;this[_0x16049c(0x15f)]===_0x16049c(0x139)&&(this[_0x16049c(0xf7)][_0x16049c(0x192)]('idle'),this[_0x16049c(0x12e)][_0x16049c(0xe6)]({'eventID':_0x47a740[_0x16049c(0x115)][_0x16049c(0xe3)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x11a364(0xa5)](){const _0x5d80a8=_0x11a364;this[_0x5d80a8(0x15f)]==='not-following'&&(this['_status$']['next'](_0x5d80a8(0xa7)),this[_0x5d80a8(0xb1)]());}['stopFollowing'](){const _0x4addc0=_0x11a364;this[_0x4addc0(0x15f)]===_0x4addc0(0xa7)&&this[_0x4addc0(0x193)]();}['_handleNewHost'](_0x9e952e){const _0x34e7dc=_0x11a364;let {presenter:_0x2a3832}=_0x9e952e[_0x34e7dc(0x145)],_0x4971b1=this[_0x34e7dc(0x12e)][_0x34e7dc(0x167)]();this['_presenter']=_0x2a3832,_0x2a3832===_0x4971b1?(this[_0x34e7dc(0x193)](),this['_startPresenting']()):this[_0x34e7dc(0x15f)]!==_0x34e7dc(0xfa)&&(this[_0x34e7dc(0x11c)](),this['_startFollowing']());}[_0x11a364(0x164)](){const _0x585fbc=_0x11a364;let _0x3ecc11={'eventID':_0x47a740[_0x585fbc(0x115)][_0x585fbc(0x16a)]};this['_collabSession']['send'](_0x3ecc11,this[_0x585fbc(0x13c)]);}[_0x11a364(0x10f)](){const _0x57ecf5=_0x11a364;this['_presenter']=null,this[_0x57ecf5(0x15f)]!==_0x57ecf5(0x139)&&this[_0x57ecf5(0x120)]();}[_0x11a364(0x188)](_0x669e02){const _0x20700b=_0x11a364;if(this[_0x20700b(0x15f)]==='following'&&this[_0x20700b(0x17d)]===_0x669e02[_0x20700b(0x145)]['memberID']){let _0x3ae28f=(0x0,_0x47a740[_0x20700b(0xa8)])(_0x669e02[_0x20700b(0x145)])[_0x20700b(0x151)][_0x20700b(0x18d)]()[_0x20700b(0x147)](_0x2fcddf=>_0x2fcddf['id']===_0x10e3b7[_0x20700b(0x128)]['id']);if(_0x3ae28f){let _0x5abc33=_0x3ae28f[_0x20700b(0x142)][_0x20700b(0x15c)],_0x49038f=_0x3ae28f[_0x20700b(0x142)]['sheet']['id'];setTimeout(()=>{const _0x78d98b=_0x20700b;this[_0x78d98b(0xdb)]['executeCommand'](_0x10e3b7[_0x78d98b(0x16b)]['id'],{'unitId':_0x5abc33,'subUnitId':_0x49038f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1ef1cf=_0x11a364;var _0x4e9d07;(_0x4e9d07=this[_0x1ef1cf(0x189)])==null||_0x4e9d07[_0x1ef1cf(0xe4)](),this[_0x1ef1cf(0xf7)][_0x1ef1cf(0x192)](_0x1ef1cf(0x139));let _0x48ca39=new Map(),_0x4c821f=this['_commandDisposable']=new _0x2e7bad[(_0x1ef1cf(0xc7))]();_0x4c821f[_0x1ef1cf(0xa6)]((0x0,_0x2e7bad[_0x1ef1cf(0xbb)])(()=>{const _0xf8971f=_0x1ef1cf;_0x48ca39['forEach'](({subject:_0x2fd709,subscription:_0x50f515})=>{const _0x318f52=_0x5a09;_0x50f515[_0x318f52(0x197)](),_0x2fd709[_0x318f52(0x17e)]();}),_0x48ca39[_0xf8971f(0x102)]();})),_0x4c821f[_0x1ef1cf(0xa6)](this[_0x1ef1cf(0xdb)][_0x1ef1cf(0x172)](_0x519c7f=>{const _0x561f64=_0x1ef1cf;if(_0x519c7f[_0x561f64(0xc8)]!==_0x2e7bad[_0x561f64(0x14e)][_0x561f64(0xc2)]||!this['_liveShareService']['shouldShareOperation'](_0x519c7f['id']))return;let {id:_0x5c46d5}=_0x519c7f,_0x4d3bce;if(_0x48ca39[_0x561f64(0x12c)](_0x5c46d5))_0x4d3bce=_0x48ca39[_0x561f64(0x119)](_0x5c46d5)['subject'];else{var _0x598da0;_0x4d3bce=new _0x3c016f[(_0x561f64(0x134))]();let _0x51545c=_0x4d3bce[_0x561f64(0x155)]((0x0,_0x8ea80b[_0x561f64(0xff)])((_0x598da0=this[_0x561f64(0xcb)][_0x561f64(0x176)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x598da0,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4b889f=>{const _0x137b79=_0x561f64;this[_0x137b79(0x12e)][_0x137b79(0xe6)]({'eventID':_0x47a740[_0x137b79(0x115)][_0x137b79(0x107)],'data':{'unitID':this[_0x137b79(0x13c)],'operations':{[_0x4b889f['id']]:{'id':_0x4b889f['id'],'params':JSON[_0x137b79(0xb7)](_0x4b889f[_0x137b79(0x142)])}}}},this[_0x137b79(0x13c)]);});_0x48ca39['set'](_0x5c46d5,{'subject':_0x4d3bce,'subscription':_0x51545c});}_0x4d3bce[_0x561f64(0x192)](_0x519c7f);})),this[_0x1ef1cf(0xc9)][_0x1ef1cf(0x117)](this[_0x1ef1cf(0x13c)])[_0x1ef1cf(0xfb)](_0x4cb24f=>this[_0x1ef1cf(0x12e)][_0x1ef1cf(0xe6)]({'eventID':_0x47a740[_0x1ef1cf(0x115)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1ef1cf(0x13c)],'operations':{[_0x4cb24f['id']]:{'id':_0x4cb24f['id'],'params':JSON[_0x1ef1cf(0xb7)](_0x4cb24f[_0x1ef1cf(0x142)])}}}},this[_0x1ef1cf(0x13c)]));}[_0x11a364(0x11c)](){const _0x46c132=_0x11a364;var _0x458727;this[_0x46c132(0xf7)][_0x46c132(0x192)](_0x46c132(0xb2)),(_0x458727=this[_0x46c132(0x189)])==null||_0x458727['dispose'](),this[_0x46c132(0x189)]=null;}['_startFollowing'](){const _0x5209fd=_0x11a364;var _0xd80dd;(_0xd80dd=this[_0x5209fd(0x189)])==null||_0xd80dd[_0x5209fd(0xe4)](),this['_status$'][_0x5209fd(0x192)](_0x5209fd(0xa7));}[_0x11a364(0x120)](){const _0x30132a=_0x11a364;var _0x343b35;this[_0x30132a(0xf7)]['next']('idle'),(_0x343b35=this[_0x30132a(0x189)])==null||_0x343b35[_0x30132a(0xe4)](),this['_commandDisposable']=null;}[_0x11a364(0x193)](){const _0x58bac8=_0x11a364;var _0x5addbd;this[_0x58bac8(0xf7)][_0x58bac8(0x192)](_0x58bac8(0xfa)),(_0x5addbd=this[_0x58bac8(0x189)])==null||_0x5addbd[_0x58bac8(0xe4)]();}[_0x11a364(0xfc)](_0x3fd86b){const _0x2ccdd7=_0x11a364;if([_0x2ccdd7(0x139),_0x2ccdd7(0xfa),_0x2ccdd7(0xed)][_0x2ccdd7(0x143)](this[_0x2ccdd7(0x15f)])||!_0x3fd86b[_0x2ccdd7(0x145)][_0x2ccdd7(0xf3)]||_0x3fd86b[_0x2ccdd7(0x145)]['presenter']===this[_0x2ccdd7(0x12e)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();let _0x28b58f=_0x3fd86b[_0x2ccdd7(0x145)][_0x2ccdd7(0x126)];Object[_0x2ccdd7(0x113)](_0x28b58f)[_0x2ccdd7(0xfb)](_0x201cfd=>{const _0x1485f3=_0x2ccdd7;this[_0x1485f3(0xdb)]['executeCommand'](_0x201cfd['id'],_0x201cfd[_0x1485f3(0x142)]?JSON[_0x1485f3(0xbc)](_0x201cfd[_0x1485f3(0x142)]):null,{'fromCollab':!0x0});});}[_0x11a364(0xac)](){const _0x341586=_0x11a364;var _0x157432;this[_0x341586(0xf7)][_0x341586(0x192)](_0x341586(0xed)),(_0x157432=this[_0x341586(0x189)])==null||_0x157432[_0x341586(0xe4)]();}[_0x11a364(0x178)](){const _0x53cf72=_0x11a364;this[_0x53cf72(0xf7)][_0x53cf72(0x192)]('idle'),this[_0x53cf72(0x164)]();}};_0x1bb0fb=_0x306afd([_0x3f7fa2(0x2,_0x2e7bad[_0x11a364(0xb4)]),_0x3f7fa2(0x3,(0x0,_0x2e7bad['Inject'])(_0x225913)),_0x3f7fa2(0x4,_0x2e7bad[_0x11a364(0x13b)])],_0x1bb0fb);function _0xdd9c28(){const _0xc820e6=_0x11a364;let _0x307687=(0x0,_0x51e529['useDependency'])(_0x217326),_0x1e079d=(0x0,_0x51e529[_0xc820e6(0x131)])(_0x2e7bad[_0xc820e6(0x12d)]),_0x4f0afb=(0x0,_0x51e529[_0xc820e6(0x156)])(()=>_0x1e079d[_0xc820e6(0x166)](_0x2e7bad[_0xc820e6(0x199)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3317a4,_0x2b108e]=(0x0,_0x56d0c6[_0xc820e6(0x168)])(null),[_0x38bc75,_0xb8f30c]=(0x0,_0x56d0c6['useState'])(_0xc820e6(0xb2)),_0x557491=(0x0,_0x56d0c6[_0xc820e6(0x14b)])(null);return(0x0,_0x56d0c6[_0xc820e6(0x11e)])(()=>(_0x4f0afb&&_0x307687[_0xc820e6(0xce)](_0x4f0afb[_0xc820e6(0xc4)]())[_0xc820e6(0x14c)](_0x12e104=>{const _0xc9c41e=_0xc820e6;_0x2b108e(_0x12e104),_0x557491[_0xc9c41e(0xd1)]=_0x12e104[_0xc9c41e(0x190)]['subscribe'](_0x2c1bd7=>{_0xb8f30c(_0x2c1bd7);});}),()=>{const _0xa80827=_0xc820e6;var _0x435a7f;(_0x435a7f=_0x557491[_0xa80827(0xd1)])==null||_0x435a7f[_0xa80827(0x197)](),_0x557491['current']=null;}),[_0x4f0afb,_0x307687]),_0x3317a4?(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0x1fb8e8[_0xc820e6(0x11f)],{'align':_0xc820e6(0xc0),'disabled':_0x38bc75==='offline','className':_0xc820e6(0x17a),'overlay':(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0x1dcad6,{'status':_0x38bc75,'coordinator':_0x3317a4}),'children':(0x0,_0x3d6e13[_0xc820e6(0x15d)])(_0xc820e6(0x170),{'className':(0x0,_0x1fb8e8[_0xc820e6(0xdc)])(_0xc820e6(0x185),{'univer-cursor-not-allowed':_0x38bc75==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38bc75!==_0xc820e6(0xed)}),'type':_0xc820e6(0x170),'children':(0x0,_0x3d6e13['jsx'])(_0xe5d3f2,{'className':'univer-size-4'})})}):null;}function _0x1dcad6(_0x149d6e){const _0x5a208c=_0x11a364;let {status:_0x1af880,coordinator:_0x362f22}=_0x149d6e;switch(_0x1af880){case _0x5a208c(0xb2):return(0x0,_0x3d6e13['jsx'])(_0x230f66,{'coordinator':_0x362f22});case _0x5a208c(0xa7):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x1badf9,{'coordinator':_0x362f22});case _0x5a208c(0xfa):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x44a827,{'coordinator':_0x362f22});case _0x5a208c(0xed):return(0x0,_0x3d6e13[_0x5a208c(0x15d)])(_0x2fe692,{});case _0x5a208c(0x139):return(0x0,_0x3d6e13['jsx'])(_0x4b6a5b,{'coordinator':_0x362f22});default:return null;}}function _0x230f66(_0x89242d){const _0x22846d=_0x11a364;let {coordinator:_0x155fb0}=_0x89242d;return(0x0,_0x3d6e13['jsxs'])(_0x3d6e13[_0x22846d(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])(_0x22846d(0xa9),{'className':_0x22846d(0x118),'children':'Present\x20this\x20document'}),(0x0,_0x3d6e13[_0x22846d(0x15d)])(_0x1fb8e8[_0x22846d(0x108)],{'onClick':()=>_0x155fb0[_0x22846d(0x165)](),'children':_0x22846d(0x17f)})]});}function _0x1badf9(_0x53206c){const _0x5eb99a=_0x11a364;let {coordinator:_0x306ee4}=_0x53206c;return(0x0,_0x3d6e13[_0x5eb99a(0x12a)])(_0x3d6e13[_0x5eb99a(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])(_0x5eb99a(0xa9),{'className':_0x5eb99a(0x118),'children':_0x5eb99a(0x101)}),(0x0,_0x3d6e13[_0x5eb99a(0x15d)])(_0x1fb8e8[_0x5eb99a(0x108)],{'onClick':()=>_0x306ee4[_0x5eb99a(0x179)](),'children':_0x5eb99a(0x173)})]});}function _0x44a827(_0x4c3913){const _0x297c18=_0x11a364;let {coordinator:_0x5c5537}=_0x4c3913;return(0x0,_0x3d6e13[_0x297c18(0x12a)])(_0x3d6e13[_0x297c18(0xd2)],{'children':[(0x0,_0x3d6e13['jsx'])('div',{'className':_0x297c18(0x118),'children':_0x297c18(0x153)}),(0x0,_0x3d6e13[_0x297c18(0x15d)])(_0x1fb8e8[_0x297c18(0x108)],{'variant':'text','onClick':()=>_0x5c5537[_0x297c18(0xa5)](),'children':_0x297c18(0x148)})]});}function _0x4b6a5b(_0x467ea9){const _0x3d04f3=_0x11a364;let {coordinator:_0x52f03b}=_0x467ea9;return(0x0,_0x3d6e13[_0x3d04f3(0x12a)])(_0x3d6e13[_0x3d04f3(0xd2)],{'children':[(0x0,_0x3d6e13[_0x3d04f3(0x15d)])(_0x3d04f3(0xa9),{'className':_0x3d04f3(0x118),'children':_0x3d04f3(0xe9)}),(0x0,_0x3d6e13['jsx'])(_0x1fb8e8['Button'],{'variant':_0x3d04f3(0x130),'onClick':()=>_0x52f03b['stopPresenting'](),'children':_0x3d04f3(0xd9)})]});}function _0x2fe692(){const _0x5ee8d7=_0x11a364;return(0x0,_0x3d6e13[_0x5ee8d7(0x15d)])(_0x3d6e13[_0x5ee8d7(0xd2)],{'children':_0x5ee8d7(0x106)});}let _0x149d2f=class extends _0x2e7bad[_0x11a364(0x15a)]{constructor(_0x4c2f89,_0x2d2806){const _0x1a9a1a=_0x11a364;super(),this[_0x1a9a1a(0x112)]=_0x4c2f89,this['_uiPartsService']=_0x2d2806,this[_0x1a9a1a(0xcc)]();}['_mountLiveShare'](){const _0x3f80bb=_0x11a364;this[_0x3f80bb(0xab)](this[_0x3f80bb(0x11a)]['registerComponent'](_0x51e529[_0x3f80bb(0xaf)][_0x3f80bb(0xec)],()=>(0x0,_0x51e529[_0x3f80bb(0x14a)])(_0xdd9c28,this[_0x3f80bb(0x112)])));}};_0x149d2f=_0x306afd([_0x3f7fa2(0x0,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad['Injector'])),_0x3f7fa2(0x1,_0x51e529['IUIPartsService'])],_0x149d2f);var _0xa691cc=_0x11a364(0x13e),_0x457589=_0x11a364(0x13a);let _0x3fa4ec={},_0x4de94d=class extends _0x2e7bad[_0x11a364(0x15a)]{constructor(_0x4bddfa){const _0x276df6=_0x11a364;super(),this[_0x276df6(0xc9)]=_0x4bddfa,this[_0x276df6(0xf8)]();}[_0x11a364(0xf8)](){const _0x29ecb4=_0x11a364;[_0x17de75[_0x29ecb4(0x140)]['id'],_0x17de75[_0x29ecb4(0xd5)]['id'],_0x10e3b7[_0x29ecb4(0x16b)]['id']]['forEach'](_0x4b7ce9=>{const _0x3652a1=_0x29ecb4;this[_0x3652a1(0xab)](this[_0x3652a1(0xc9)]['registerSharedOperation'](_0x4b7ce9));});}};_0x4de94d=_0x306afd([_0x3f7fa2(0x0,(0x0,_0x2e7bad['Inject'])(_0x225913))],_0x4de94d);let _0xceb584=class extends _0x2e7bad['Plugin']{constructor(_0x31637c=_0x3fa4ec,_0x20e075,_0x464097){const _0x10e7c7=_0x11a364;super(),this['_config']=_0x31637c,this[_0x10e7c7(0x112)]=_0x20e075,this[_0x10e7c7(0xcb)]=_0x464097;let {..._0x1370a4}=(0x0,_0x2e7bad['merge'])({},_0x3fa4ec,this[_0x10e7c7(0x14d)]);this[_0x10e7c7(0xcb)][_0x10e7c7(0xcd)]('live-share.config',_0x1370a4);}[_0x11a364(0x160)](){const _0x10bec9=_0x11a364;(0x0,_0x2e7bad[_0x10bec9(0x183)])(this[_0x10bec9(0x112)],(0x0,_0x2e7bad[_0x10bec9(0x198)])([[_0x225913],[_0x217326],[_0x4de94d],[_0x149d2f]],this[_0x10bec9(0x14d)]['override'])),(0x0,_0x2e7bad[_0x10bec9(0x195)])(this['_injector'],[[_0x4de94d]]);}[_0x11a364(0x137)](){const _0x5b9570=_0x11a364;(0x0,_0x2e7bad[_0x5b9570(0x195)])(this[_0x5b9570(0x112)],[[_0x149d2f]]);}};_0x28317c(_0xceb584,_0x11a364(0xc8),_0x2e7bad[_0x11a364(0x199)][_0x11a364(0x16e)]),_0x28317c(_0xceb584,_0x11a364(0x122),_0x11a364(0xe7)),_0x28317c(_0xceb584,_0x11a364(0x174),_0xa691cc),_0x28317c(_0xceb584,_0x11a364(0x154),_0x457589),_0xceb584=_0x306afd([(0x0,_0x2e7bad['DependentOn'])(_0x473c83[_0x11a364(0xc3)]),_0x3f7fa2(0x1,(0x0,_0x2e7bad[_0x11a364(0x138)])(_0x2e7bad['Injector'])),_0x3f7fa2(0x2,_0x2e7bad[_0x11a364(0xb4)])],_0xceb584),Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0x114),{'enumerable':!0x0,'get':function(){return _0x149d2f;}}),_0x4a206c['LiveShare']=_0xdd9c28,Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0xee),{'enumerable':!0x0,'get':function(){return _0x217326;}}),Object[_0x11a364(0x111)](_0x4a206c,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x1bb0fb;}}),_0x4a206c[_0x11a364(0xf6)]=_0x225913,_0x4a206c[_0x11a364(0xea)]=_0x3f762f,Object[_0x11a364(0x111)](_0x4a206c,_0x11a364(0x11b),{'enumerable':!0x0,'get':function(){return _0xceb584;}});}));
1
+ function _0xe994(){const _0x987662=['UniverProCollaborationClient','Stop\x20presenting','16uwKokI','children','_handleNewChangeSets','stopPresenting','Disposable','none','react','add','onCommandExecuted','@univerjs/sheets-ui','has','sheet','@univerjs/core','live-share.config','_liveShareService','values','xlink:href','unit','Fragment','stringify','getValue','DesktopLiveShareController','delete','UniverSheets','_reporters','_commandDisposable','clsx','params','type','_handleOffline','_configService','button','getLiveShareCoordinator','createInstance','svg','@univerjs-pro/live-share','BuiltInUIPart','registerComponent','6FzaYBX','find','Module','391535lseDbo','_injector','replace','pipe','_collabSessionService','getOwnPropertyDescriptor','_univerInstanceService','OFFLINE','displayName','getConfig','2228728wHrBlr','idle','connectInjector','defs','SessionStatus','UniverUi','@univerjs-pro/collaboration-client','reverse','You\x27re\x20following\x20the\x20presenter','Start','symbol','setConfig','packageName','UniverLiveSharePlugin','current','914946NqSoyx','IUIPartsService','_stopFollowing','registerSharedOperation','CollaborationSessionService','Subject','LIVESHARE_OPERATION','presenting','fill','attrs','jsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','assign','PRESENTING','UNIVER_SHEET','_handleOnline','url(#$1','iterator','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','UniverProLiveShare','React','not-following','send','LiveShareIcon','Button','IConfigService','_unitID','includes','memberID','get','shouldShareOperation','_status','_startLiveShareCoordinator','LiveShare','offline','div','subject','_config','react/jsx-runtime','14267220RXjDie','trim','SetWorksheetActiveOperation','constructor','LiveShareStatus','2301894mZLxpZ','complete','univerjs-icon\x20univerjs-icon-','default','amd','_entities','pluginName','sessionStatus$','entries','set','UniverDesign','decorate','idSuffix','createElement','jsxs','subscribe','_startPresenting','object','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','InsertSheetMutation','forEach','ONLINE','univer-size-4','call','Dropdown','status$','_commandService','FOLLOWING','path','disposeWithMe','then','defineProperty','dispose','parse','Stop\x20following','getInitialStates','function','use','defIds','21OpjYBD','unsubscribe','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','live-share-icon','prototype','colorChannel1','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','UniverCollaborationClientPlugin','0\x200\x2017\x2017','DependentOn','_init','length','operators','2691672oHTBEG','useRef','OPERATION','_startFollowing','presenter','unitId','asObservable','useDependency','toDisposable','following','@univerjs/sheets','string','_collabSession','requireSession','onRendered','IDLE','getMemberID','You\x27re\x20presenting\x20the\x20document','Start\x20following','699914sMCCXW','Plugin','rxjs/operators','DisposableCollection','1em','version','_handleOperation','init','_status$','tag','random','useEffect','Present\x20this\x20document','UniverIcon','_stopPresenting','CollaborationEvent','mask','executeCommand','rxjs','LIVESHARE_TERMINATE','SetScrollOperation','UniverSheetsUi','useObservable','toStringTag','@univerjs-pro/collaboration','_handleNewHost','UniverInstanceType','data','mutations','toString','toPrimitive','dispose$','Inject','startFollowing','forwardRef','UniverProCollaboration','_sharedOperations','0.25.2','stopFollowing','tryStartPresenting','operations','_presenter','@univerjs/ui','_mountLiveShare','getUnitId','map','_handleTerminate','@univerjs/design','_uiPartsService','ICommandService','useState','evenodd','Injector','IUniverInstanceService','getLiveShareCoordinatorSync','takeUntil','_fetchOperations','You\x27re\x20not\x20following\x20the\x20presenter','merge','clear'];_0xe994=function(){return _0x987662;};return _0xe994();}function _0x455a(_0x33051b,_0x270279){_0x33051b=_0x33051b-0x171;const _0xe9947f=_0xe994();let _0x455a22=_0xe9947f[_0x33051b];return _0x455a22;}(function(_0x29a234,_0x536987){const _0x5c52f9=_0x455a,_0x883938=_0x29a234();while(!![]){try{const _0x3d1220=parseInt(_0x5c52f9(0x1b4))/0x1+parseInt(_0x5c52f9(0x218))/0x2*(parseInt(_0x5c52f9(0x234))/0x3)+-parseInt(_0x5c52f9(0x1f2))/0x4*(parseInt(_0x5c52f9(0x21b))/0x5)+-parseInt(_0x5c52f9(0x1a1))/0x6+parseInt(_0x5c52f9(0x194))/0x7*(parseInt(_0x5c52f9(0x225))/0x8)+parseInt(_0x5c52f9(0x263))/0x9+-parseInt(_0x5c52f9(0x25e))/0xa;if(_0x3d1220===_0x536987)break;else _0x883938['push'](_0x883938['shift']());}catch(_0x29144b){_0x883938['push'](_0x883938['shift']());}}}(_0xe994,0x7e6cd),function(_0x1cec91,_0xbad4a6){const _0x192d5d=_0x455a;typeof exports==_0x192d5d(0x17d)&&typeof module<'u'?_0xbad4a6(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==_0x192d5d(0x191)&&define[_0x192d5d(0x267)]?define(['exports',_0x192d5d(0x1fe),_0x192d5d(0x1de),_0x192d5d(0x1e3),_0x192d5d(0x1f8),_0x192d5d(0x1cc),_0x192d5d(0x22b),_0x192d5d(0x1ab),_0x192d5d(0x1c6),_0x192d5d(0x1b6),_0x192d5d(0x25d),_0x192d5d(0x1fb)],_0xbad4a6):(_0x1cec91=typeof globalThis<'u'?globalThis:_0x1cec91||self,_0xbad4a6(_0x1cec91[_0x192d5d(0x24a)]={},_0x1cec91['UniverCore'],_0x1cec91[_0x192d5d(0x22a)],_0x1cec91[_0x192d5d(0x176)],_0x1cec91[_0x192d5d(0x24b)],_0x1cec91[_0x192d5d(0x1d7)],_0x1cec91[_0x192d5d(0x1f0)],_0x1cec91[_0x192d5d(0x209)],_0x1cec91[_0x192d5d(0x1c6)],_0x1cec91['rxjs'][_0x192d5d(0x1a0)],_0x1cec91[_0x192d5d(0x24b)],_0x1cec91[_0x192d5d(0x1c9)]));}(this,function(_0x274fe8,_0x13c583,_0x5888a3,_0xc721fb,_0x106904,_0xfdcfde,_0x339d47,_0x4e3dd1,_0x1be2fa,_0xc7e41,_0xc22266,_0x11f085){const _0x37f4aa=_0x455a;Object[_0x37f4aa(0x18c)](_0x274fe8,Symbol[_0x37f4aa(0x1cb)],{'value':_0x37f4aa(0x21a)});function _0x1e9677({ref:_0x4b86dc,..._0x1c3018}){const _0x6fc10d=_0x37f4aa;let {icon:_0x4d8f80,id:_0x4fec05,className:_0x1a57fb,extend:_0x53ec5f,..._0x4f3105}=_0x1c3018,_0x2f8e81=(_0x6fc10d(0x265)+_0x4fec05+'\x20'+(_0x1a57fb||''))[_0x6fc10d(0x25f)](),_0x58f1a4=(0x0,_0x106904[_0x6fc10d(0x1a2)])('_'+_0x37352e());return _0x3ea004(_0x4d8f80,''+_0x4fec05,{'defIds':_0x4d8f80[_0x6fc10d(0x193)],'idSuffix':_0x58f1a4[_0x6fc10d(0x233)]},{'ref':_0x4b86dc,'className':_0x2f8e81,..._0x4f3105},_0x53ec5f);}function _0x3ea004(_0x2516bf,_0x67311e,_0x5f5d7d,_0x387993,_0x5c3ff2){const _0x1c2b1d=_0x37f4aa;return(0x0,_0x106904['createElement'])(_0x2516bf[_0x1c2b1d(0x1bd)],{'key':_0x67311e,..._0x49daeb(_0x2516bf,_0x5f5d7d,_0x5c3ff2),..._0x387993},(_0x38f8cf(_0x2516bf,_0x5f5d7d)[_0x1c2b1d(0x1f3)]||[])[_0x1c2b1d(0x1e1)]((_0x31f2bd,_0x236b6f)=>_0x3ea004(_0x31f2bd,_0x67311e+'-'+_0x2516bf['tag']+'-'+_0x236b6f,_0x5f5d7d,void 0x0,_0x5c3ff2)));}function _0x49daeb(_0x18b0c0,_0x1a4704,_0x56e99c){const _0x3b6c1d=_0x37f4aa;let _0x51d369={..._0x18b0c0[_0x3b6c1d(0x23d)]};_0x56e99c!=null&&_0x56e99c[_0x3b6c1d(0x199)]&&_0x51d369[_0x3b6c1d(0x23c)]===_0x3b6c1d(0x199)&&(_0x51d369[_0x3b6c1d(0x23c)]=_0x56e99c[_0x3b6c1d(0x199)]),_0x18b0c0['tag']===_0x3b6c1d(0x1c4)&&_0x51d369['id']&&(_0x51d369['id']+=_0x1a4704['idSuffix']),Object[_0x3b6c1d(0x174)](_0x51d369)['forEach'](([_0x281098,_0x5e5f4f])=>{const _0x3985bf=_0x3b6c1d;_0x281098==='mask'&&typeof _0x5e5f4f=='string'&&(_0x51d369[_0x281098]=_0x5e5f4f['replace'](/url\(#(.*)\)/,_0x3985bf(0x244)+_0x1a4704[_0x3985bf(0x178)]+')'));});let {defIds:_0x3c0f3f}=_0x1a4704;return!_0x3c0f3f||_0x3c0f3f[_0x3b6c1d(0x19f)]===0x0?_0x51d369:(_0x18b0c0[_0x3b6c1d(0x1bd)]===_0x3b6c1d(0x192)&&_0x51d369[_0x3b6c1d(0x202)]&&(_0x51d369[_0x3b6c1d(0x202)]+=_0x1a4704[_0x3b6c1d(0x178)]),Object[_0x3b6c1d(0x174)](_0x51d369)['forEach'](([_0xe8b4fe,_0x592c49])=>{const _0x342603=_0x3b6c1d;typeof _0x592c49==_0x342603(0x1ac)&&(_0x51d369[_0xe8b4fe]=_0x592c49[_0x342603(0x21d)](/url\(#(.*)\)/,'url(#$1'+_0x1a4704[_0x342603(0x178)]+')'));}),_0x51d369);}function _0x38f8cf(_0x3137e4,_0x43be7f){const _0x48bd4d=_0x37f4aa;var _0x608920;let {defIds:_0x4560b9}=_0x43be7f;return!_0x4560b9||_0x4560b9[_0x48bd4d(0x19f)]===0x0?_0x3137e4:_0x3137e4[_0x48bd4d(0x1bd)]===_0x48bd4d(0x228)&&(_0x608920=_0x3137e4[_0x48bd4d(0x1f3)])!=null&&_0x608920[_0x48bd4d(0x19f)]?{..._0x3137e4,'children':_0x3137e4[_0x48bd4d(0x1f3)][_0x48bd4d(0x1e1)](_0x22ac37=>typeof _0x22ac37[_0x48bd4d(0x23d)]['id']==_0x48bd4d(0x1ac)&&_0x4560b9&&_0x4560b9['includes'](_0x22ac37[_0x48bd4d(0x23d)]['id'])?{..._0x22ac37,'attrs':{..._0x22ac37[_0x48bd4d(0x23d)],'id':_0x22ac37['attrs']['id']+_0x43be7f['idSuffix']}}:_0x22ac37)}:_0x3137e4;}function _0x37352e(){const _0x1be820=_0x37f4aa;return Math[_0x1be820(0x1be)]()[_0x1be820(0x1d1)](0x24)['substring'](0x2,0x8);}_0x1e9677['displayName']=_0x37f4aa(0x1c1);let _0x4eac57={'tag':_0x37f4aa(0x214),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x37f4aa(0x1f7),'viewBox':_0x37f4aa(0x19c),'width':_0x37f4aa(0x1b8),'height':'1em'},'children':[{'tag':_0x37f4aa(0x189),'attrs':{'fill':'currentColor','d':_0x37f4aa(0x196)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x37f4aa(0x19a),'fillRule':_0x37f4aa(0x1e7),'clipRule':_0x37f4aa(0x1e7)}}]},_0x352e05=(0x0,_0x106904[_0x37f4aa(0x1d6)])(function(_0x3940c2,_0x228c64){const _0x16c610=_0x37f4aa;return(0x0,_0x106904[_0x16c610(0x179)])(_0x1e9677,Object[_0x16c610(0x240)]({},_0x3940c2,{'id':_0x16c610(0x197),'ref':_0x228c64,'icon':_0x4eac57}));});_0x352e05[_0x37f4aa(0x223)]=_0x37f4aa(0x24e);function _0x1c7a31(_0x4edae5){'@babel/helpers - typeof';const _0x149c32=_0x37f4aa;return _0x1c7a31=typeof Symbol==_0x149c32(0x191)&&typeof Symbol[_0x149c32(0x245)]==_0x149c32(0x22f)?function(_0x1a8ddf){return typeof _0x1a8ddf;}:function(_0x6fdfd7){const _0x53f8fb=_0x149c32;return _0x6fdfd7&&typeof Symbol=='function'&&_0x6fdfd7[_0x53f8fb(0x261)]===Symbol&&_0x6fdfd7!==Symbol[_0x53f8fb(0x198)]?'symbol':typeof _0x6fdfd7;},_0x1c7a31(_0x4edae5);}function _0x59a3b3(_0x151fce,_0x3a6ec1){const _0x3163f5=_0x37f4aa;if(_0x1c7a31(_0x151fce)!='object'||!_0x151fce)return _0x151fce;var _0x46508b=_0x151fce[Symbol[_0x3163f5(0x1d2)]];if(_0x46508b!==void 0x0){var _0x2bd351=_0x46508b[_0x3163f5(0x184)](_0x151fce,_0x3a6ec1||_0x3163f5(0x266));if(_0x1c7a31(_0x2bd351)!=_0x3163f5(0x17d))return _0x2bd351;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3a6ec1==='string'?String:Number)(_0x151fce);}function _0x49cece(_0x57eb84){const _0x3b3aa7=_0x37f4aa;var _0x5af1f9=_0x59a3b3(_0x57eb84,_0x3b3aa7(0x1ac));return _0x1c7a31(_0x5af1f9)==_0x3b3aa7(0x22f)?_0x5af1f9:_0x5af1f9+'';}function _0x3e6b7c(_0x5ed25f,_0x5ac619,_0x3a9257){const _0x30c0d9=_0x37f4aa;return(_0x5ac619=_0x49cece(_0x5ac619))in _0x5ed25f?Object[_0x30c0d9(0x18c)](_0x5ed25f,_0x5ac619,{'value':_0x3a9257,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ed25f[_0x5ac619]=_0x3a9257,_0x5ed25f;}var _0x1be41b=class extends _0x13c583['Disposable']{constructor(..._0x29b15c){super(..._0x29b15c),_0x3e6b7c(this,'_sharedOperations',new Set()),_0x3e6b7c(this,'_reporters',new Set());}[_0x37f4aa(0x237)](_0x3f8789){const _0x2110f7=_0x37f4aa;return this[_0x2110f7(0x1d8)][_0x2110f7(0x1f9)](_0x3f8789),(0x0,_0x13c583['toDisposable'])(()=>this[_0x2110f7(0x1d8)][_0x2110f7(0x208)](_0x3f8789));}['registerInitialStateReporter'](_0x10a6be){const _0x132cd2=_0x37f4aa;return this[_0x132cd2(0x20a)]['add'](_0x10a6be),(0x0,_0x13c583[_0x132cd2(0x1a9)])(()=>this[_0x132cd2(0x20a)][_0x132cd2(0x208)](_0x10a6be));}[_0x37f4aa(0x255)](_0x32808d){const _0x476a1a=_0x37f4aa;return this[_0x476a1a(0x1d8)][_0x476a1a(0x1fc)](_0x32808d);}[_0x37f4aa(0x190)](_0x520143){const _0x2e4097=_0x37f4aa;return Array['from'](this[_0x2e4097(0x20a)])[_0x2e4097(0x1e1)](_0x4c7534=>_0x4c7534(_0x520143));}};function _0x48abe6(_0x167820,_0x1f309c){return function(_0x19168e,_0x1b8946){_0x1f309c(_0x19168e,_0x1b8946,_0x167820);};}function _0x5a4a5f(_0x480c5d,_0x4c74cb,_0x5bc6a4,_0x4a406f){const _0x4703d3=_0x37f4aa;var _0x22cc1e=arguments[_0x4703d3(0x19f)],_0x14c186=_0x22cc1e<0x3?_0x4c74cb:_0x4a406f===null?_0x4a406f=Object[_0x4703d3(0x220)](_0x4c74cb,_0x5bc6a4):_0x4a406f,_0x588250;if(typeof Reflect==_0x4703d3(0x17d)&&typeof Reflect[_0x4703d3(0x177)]==_0x4703d3(0x191))_0x14c186=Reflect['decorate'](_0x480c5d,_0x4c74cb,_0x5bc6a4,_0x4a406f);else{for(var _0x205adf=_0x480c5d[_0x4703d3(0x19f)]-0x1;_0x205adf>=0x0;_0x205adf--)(_0x588250=_0x480c5d[_0x205adf])&&(_0x14c186=(_0x22cc1e<0x3?_0x588250(_0x14c186):_0x22cc1e>0x3?_0x588250(_0x4c74cb,_0x5bc6a4,_0x14c186):_0x588250(_0x4c74cb,_0x5bc6a4))||_0x14c186);}return _0x22cc1e>0x3&&_0x14c186&&Object[_0x4703d3(0x18c)](_0x4c74cb,_0x5bc6a4,_0x14c186),_0x14c186;}let _0x2b8d4a=class extends _0x13c583['RxDisposable']{constructor(_0x51e660,_0x3678ed,_0x16f326){const _0x4a44a7=_0x37f4aa;super(),this['_univerInstanceService']=_0x51e660,this['_injector']=_0x3678ed,this[_0x4a44a7(0x21f)]=_0x16f326,_0x3e6b7c(this,_0x4a44a7(0x171),new Map()),this[_0x4a44a7(0x19e)]();}async['getLiveShareCoordinator'](_0x701879){const _0x3acebb=_0x37f4aa;return this[_0x3acebb(0x171)][_0x3acebb(0x1fc)](_0x701879)||await this['_startLiveShareCoordinator'](_0x701879),this['_entities'][_0x3acebb(0x254)](_0x701879);}[_0x37f4aa(0x1ea)](_0x4a2778){const _0x1e0e2a=_0x37f4aa;var _0x264b8a;return(_0x264b8a=this[_0x1e0e2a(0x171)][_0x1e0e2a(0x254)](_0x4a2778))==null?null:_0x264b8a;}[_0x37f4aa(0x19e)](){const _0x7174da=_0x37f4aa;this[_0x7174da(0x221)]['getTypeOfUnitAdded$'](_0x13c583['UniverInstanceType']['UNIVER_SHEET'])[_0x7174da(0x21e)]((0x0,_0xc7e41['takeUntil'])(this[_0x7174da(0x1d3)]))['subscribe'](async _0x1ccc61=>{const _0x3ada53=_0x7174da;let _0xcafd77=_0x1ccc61[_0x3ada53(0x203)][_0x3ada53(0x1e0)]();this[_0x3ada53(0x171)][_0x3ada53(0x1fc)](_0xcafd77)||this['_startLiveShareCoordinator'](_0xcafd77);}),this[_0x7174da(0x221)][_0x7174da(0x249)](_0x13c583[_0x7174da(0x1ce)]['UNIVER_SHEET'])[_0x7174da(0x21e)]((0x0,_0xc7e41['takeUntil'])(this[_0x7174da(0x1d3)]))[_0x7174da(0x17b)](_0x28fe3a=>{const _0x50ca18=_0x7174da;let _0x2572e0=_0x28fe3a[_0x50ca18(0x1e0)](),_0x18095d=this[_0x50ca18(0x171)][_0x50ca18(0x254)](_0x2572e0);_0x18095d==null||_0x18095d[_0x50ca18(0x18d)]();});}async[_0x37f4aa(0x257)](_0x458e45){const _0xf81ff9=_0x37f4aa;let _0x48a3c6=await this[_0xf81ff9(0x21f)][_0xf81ff9(0x1ae)](_0x458e45),_0x1682e7=this['_injector'][_0xf81ff9(0x213)](_0x5c4420,_0x458e45,_0x48a3c6);return _0x1682e7[_0xf81ff9(0x1bb)](),this[_0xf81ff9(0x171)][_0xf81ff9(0x175)](_0x458e45,_0x1682e7),_0x1682e7;}};_0x2b8d4a=_0x5a4a5f([_0x48abe6(0x0,_0x13c583[_0x37f4aa(0x1e9)]),_0x48abe6(0x1,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x13c583[_0x37f4aa(0x1e8)])),_0x48abe6(0x2,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x339d47[_0x37f4aa(0x238)]))],_0x2b8d4a);let _0x23de74=function(_0xd4bedc){const _0x479a87=_0x37f4aa;return _0xd4bedc[_0x479a87(0x222)]=_0x479a87(0x259),_0xd4bedc[_0x479a87(0x1b0)]=_0x479a87(0x226),_0xd4bedc[_0x479a87(0x188)]=_0x479a87(0x1aa),_0xd4bedc['NOT_FOLLOWING']=_0x479a87(0x24c),_0xd4bedc[_0x479a87(0x241)]='presenting',_0xd4bedc;}({}),_0x5c4420=class extends _0x13c583['RxDisposable']{get[_0x37f4aa(0x256)](){const _0x18430f=_0x37f4aa;return this['_status$'][_0x18430f(0x206)]();}constructor(_0xbeb899,_0x27440a,_0x441623,_0x2b8640,_0x3428f6){const _0x3906e4=_0x37f4aa;super(),this[_0x3906e4(0x251)]=_0xbeb899,this[_0x3906e4(0x1ad)]=_0x27440a,this['_configService']=_0x441623,this['_liveShareService']=_0x2b8640,this['_commandService']=_0x3428f6,_0x3e6b7c(this,'_status$',new _0x1be2fa['BehaviorSubject']('idle')),_0x3e6b7c(this,'status$',this[_0x3906e4(0x1bc)][_0x3906e4(0x1a7)]()),_0x3e6b7c(this,'_init',!0x1),_0x3e6b7c(this,_0x3906e4(0x20b),null),_0x3e6b7c(this,'_presenter',null);}[_0x37f4aa(0x18d)](){const _0x5adac0=_0x37f4aa;var _0xdb629f;(_0xdb629f=this[_0x5adac0(0x20b)])==null||_0xdb629f[_0x5adac0(0x18d)](),this[_0x5adac0(0x1bc)][_0x5adac0(0x246)](_0x5adac0(0x226)),this[_0x5adac0(0x1bc)]['complete']();}['getStatus'](){const _0x2c60c7=_0x37f4aa;return this[_0x2c60c7(0x256)];}['init'](){const _0x323e0e=_0x37f4aa;this[_0x323e0e(0x19e)]||(this[_0x323e0e(0x19e)]=!0x0,this[_0x323e0e(0x1ad)][_0x323e0e(0x173)][_0x323e0e(0x21e)]((0x0,_0xc7e41[_0x323e0e(0x1eb)])(this['dispose$']))['subscribe'](_0x5288e9=>{const _0x65c1c7=_0x323e0e;switch(_0x5288e9){case _0x339d47['SessionStatus'][_0x65c1c7(0x222)]:this[_0x65c1c7(0x20f)]();break;case _0x339d47[_0x65c1c7(0x229)][_0x65c1c7(0x182)]:this[_0x65c1c7(0x243)]();break;default:}}),this[_0x323e0e(0x1ad)]['event$'][_0x323e0e(0x21e)]((0x0,_0xc7e41['takeUntil'])(this['dispose$']))[_0x323e0e(0x17b)](_0x3e055d=>{const _0x570637=_0x323e0e;let {eventID:_0x189276}=_0x3e055d;switch(_0x189276){case _0xfdcfde['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x570637(0x1cd)](_0x3e055d);break;case _0xfdcfde[_0x570637(0x1c3)]['LIVESHARE_OPERATION']:this[_0x570637(0x1ba)](_0x3e055d);break;case _0xfdcfde['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x570637(0x1e2)]();break;case _0xfdcfde[_0x570637(0x1c3)]['NEW_CHANGESETS']:this[_0x570637(0x1f4)](_0x3e055d);break;default:}}));}[_0x37f4aa(0x1db)](){const _0x3cf41b=_0x37f4aa;this['_collabSession'][_0x3cf41b(0x24d)]({'eventID':_0xfdcfde[_0x3cf41b(0x1c3)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3cf41b(0x251)],'userID':this[_0x3cf41b(0x1ad)][_0x3cf41b(0x1b1)]()}},this[_0x3cf41b(0x251)]);}['stopPresenting'](){const _0x36d573=_0x37f4aa;this[_0x36d573(0x256)]===_0x36d573(0x23b)&&(this[_0x36d573(0x1bc)][_0x36d573(0x246)](_0x36d573(0x226)),this[_0x36d573(0x1ad)]['send']({'eventID':_0xfdcfde[_0x36d573(0x1c3)][_0x36d573(0x1c7)],'data':{'unitID':this[_0x36d573(0x251)]}},this[_0x36d573(0x251)]));}[_0x37f4aa(0x1d5)](){const _0x3dfa8c=_0x37f4aa;this[_0x3dfa8c(0x256)]===_0x3dfa8c(0x24c)&&(this[_0x3dfa8c(0x1bc)][_0x3dfa8c(0x246)](_0x3dfa8c(0x1aa)),this['_startFollowing']());}[_0x37f4aa(0x1da)](){const _0x2f89c9=_0x37f4aa;this[_0x2f89c9(0x256)]==='following'&&this[_0x2f89c9(0x236)]();}[_0x37f4aa(0x1cd)](_0x15c0ad){const _0x204cce=_0x37f4aa;let {presenter:_0x4179ee}=_0x15c0ad['data'],_0x49853c=this[_0x204cce(0x1ad)][_0x204cce(0x1b1)]();this['_presenter']=_0x4179ee,_0x4179ee===_0x49853c?(this[_0x204cce(0x236)](),this[_0x204cce(0x17c)]()):this[_0x204cce(0x256)]!==_0x204cce(0x24c)&&(this[_0x204cce(0x1c2)](),this[_0x204cce(0x1a4)]());}[_0x37f4aa(0x1ec)](){const _0x5bb37f=_0x37f4aa;let _0x54013a={'eventID':_0xfdcfde[_0x5bb37f(0x1c3)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5bb37f(0x1ad)][_0x5bb37f(0x24d)](_0x54013a,this['_unitID']);}['_handleTerminate'](){this['_presenter']=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x37f4aa(0x1f4)](_0x369395){const _0x112f5e=_0x37f4aa;if(this[_0x112f5e(0x256)]==='following'&&this[_0x112f5e(0x1dd)]===_0x369395[_0x112f5e(0x1cf)][_0x112f5e(0x253)]){let _0x2c3c13=(0x0,_0xfdcfde['parseProtocolChangeset'])(_0x369395[_0x112f5e(0x1cf)])[_0x112f5e(0x1d0)][_0x112f5e(0x22c)]()[_0x112f5e(0x219)](_0x38ce4e=>_0x38ce4e['id']===_0x4e3dd1[_0x112f5e(0x180)]['id']);if(_0x2c3c13){let _0x241d1b=_0x2c3c13['params'][_0x112f5e(0x1a6)],_0x11ac50=_0x2c3c13[_0x112f5e(0x20d)][_0x112f5e(0x1fd)]['id'];setTimeout(()=>{const _0x3e8583=_0x112f5e;this[_0x3e8583(0x187)][_0x3e8583(0x1c5)](_0x4e3dd1['SetWorksheetActiveOperation']['id'],{'unitId':_0x241d1b,'subUnitId':_0x11ac50},{'fromCollab':!0x0});});}}}[_0x37f4aa(0x17c)](){const _0x979fab=_0x37f4aa;var _0x474e8d;(_0x474e8d=this[_0x979fab(0x20b)])==null||_0x474e8d['dispose'](),this[_0x979fab(0x1bc)][_0x979fab(0x246)](_0x979fab(0x23b));let _0x5de98a=new Map(),_0x25bc33=this[_0x979fab(0x20b)]=new _0x13c583[(_0x979fab(0x1b7))]();_0x25bc33[_0x979fab(0x1f9)]((0x0,_0x13c583['toDisposable'])(()=>{const _0x3a75ef=_0x979fab;_0x5de98a[_0x3a75ef(0x181)](({subject:_0x3580a1,subscription:_0x147db5})=>{const _0xd58c73=_0x3a75ef;_0x147db5[_0xd58c73(0x195)](),_0x3580a1[_0xd58c73(0x264)]();}),_0x5de98a[_0x3a75ef(0x1ef)]();})),_0x25bc33[_0x979fab(0x1f9)](this[_0x979fab(0x187)][_0x979fab(0x1fa)](_0x1effe4=>{const _0x4ee6d5=_0x979fab;if(_0x1effe4[_0x4ee6d5(0x20e)]!==_0x13c583['CommandType'][_0x4ee6d5(0x1a3)]||!this[_0x4ee6d5(0x200)][_0x4ee6d5(0x255)](_0x1effe4['id']))return;let {id:_0x28955e}=_0x1effe4,_0x10ccdb;if(_0x5de98a['has'](_0x28955e))_0x10ccdb=_0x5de98a[_0x4ee6d5(0x254)](_0x28955e)[_0x4ee6d5(0x25b)];else{var _0x38c083;_0x10ccdb=new _0x1be2fa[(_0x4ee6d5(0x239))]();let _0x1d369f=_0x10ccdb[_0x4ee6d5(0x21e)]((0x0,_0xc7e41['throttleTime'])((_0x38c083=this[_0x4ee6d5(0x210)][_0x4ee6d5(0x224)](_0x4ee6d5(0x17e)))==null?0xc8:_0x38c083,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee6d5(0x17b)](_0x2ff117=>{const _0x1335d2=_0x4ee6d5;this[_0x1335d2(0x1ad)][_0x1335d2(0x24d)]({'eventID':_0xfdcfde[_0x1335d2(0x1c3)][_0x1335d2(0x23a)],'data':{'unitID':this['_unitID'],'operations':{[_0x2ff117['id']]:{'id':_0x2ff117['id'],'params':JSON[_0x1335d2(0x205)](_0x2ff117[_0x1335d2(0x20d)])}}}},this[_0x1335d2(0x251)]);});_0x5de98a[_0x4ee6d5(0x175)](_0x28955e,{'subject':_0x10ccdb,'subscription':_0x1d369f});}_0x10ccdb['next'](_0x1effe4);})),this[_0x979fab(0x200)][_0x979fab(0x190)](this[_0x979fab(0x251)])[_0x979fab(0x181)](_0x3dc176=>this[_0x979fab(0x1ad)][_0x979fab(0x24d)]({'eventID':_0xfdcfde['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x979fab(0x251)],'operations':{[_0x3dc176['id']]:{'id':_0x3dc176['id'],'params':JSON[_0x979fab(0x205)](_0x3dc176[_0x979fab(0x20d)])}}}},this[_0x979fab(0x251)]));}['_stopPresenting'](){const _0x183335=_0x37f4aa;var _0x13522e;this['_status$'][_0x183335(0x246)](_0x183335(0x226)),(_0x13522e=this[_0x183335(0x20b)])==null||_0x13522e['dispose'](),this[_0x183335(0x20b)]=null;}[_0x37f4aa(0x1a4)](){const _0x37574e=_0x37f4aa;var _0x2918d4;(_0x2918d4=this[_0x37574e(0x20b)])==null||_0x2918d4['dispose'](),this['_status$'][_0x37574e(0x246)](_0x37574e(0x1aa));}['_beIdle'](){const _0x33aecf=_0x37f4aa;var _0x43be0b;this[_0x33aecf(0x1bc)][_0x33aecf(0x246)](_0x33aecf(0x226)),(_0x43be0b=this[_0x33aecf(0x20b)])==null||_0x43be0b[_0x33aecf(0x18d)](),this['_commandDisposable']=null;}[_0x37f4aa(0x236)](){const _0xf6180c=_0x37f4aa;var _0xfa81ad;this['_status$'][_0xf6180c(0x246)](_0xf6180c(0x24c)),(_0xfa81ad=this['_commandDisposable'])==null||_0xfa81ad[_0xf6180c(0x18d)]();}[_0x37f4aa(0x1ba)](_0x47daeb){const _0x27913e=_0x37f4aa;if([_0x27913e(0x23b),_0x27913e(0x24c),'offline'][_0x27913e(0x252)](this[_0x27913e(0x256)])||!_0x47daeb['data'][_0x27913e(0x1a5)]||_0x47daeb[_0x27913e(0x1cf)][_0x27913e(0x1a5)]===this[_0x27913e(0x1ad)][_0x27913e(0x1b1)]())return;this['_status']==='idle'&&this[_0x27913e(0x1a4)]();let _0x4b88c0=_0x47daeb[_0x27913e(0x1cf)][_0x27913e(0x1dc)];Object[_0x27913e(0x201)](_0x4b88c0)[_0x27913e(0x181)](_0x5ea05c=>{const _0x27f978=_0x27913e;this[_0x27f978(0x187)][_0x27f978(0x1c5)](_0x5ea05c['id'],_0x5ea05c[_0x27f978(0x20d)]?JSON[_0x27f978(0x18e)](_0x5ea05c[_0x27f978(0x20d)]):null,{'fromCollab':!0x0});});}[_0x37f4aa(0x20f)](){const _0x327aa2=_0x37f4aa;var _0x292652;this['_status$'][_0x327aa2(0x246)](_0x327aa2(0x259)),(_0x292652=this['_commandDisposable'])==null||_0x292652[_0x327aa2(0x18d)]();}[_0x37f4aa(0x243)](){const _0x56f325=_0x37f4aa;this[_0x56f325(0x1bc)][_0x56f325(0x246)](_0x56f325(0x226)),this[_0x56f325(0x1ec)]();}};_0x5c4420=_0x5a4a5f([_0x48abe6(0x2,_0x13c583['IConfigService']),_0x48abe6(0x3,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x1be41b)),_0x48abe6(0x4,_0x13c583[_0x37f4aa(0x1e5)])],_0x5c4420);function _0x2fd837(){const _0x1d897f=_0x37f4aa;let _0x375e3d=(0x0,_0x5888a3['useDependency'])(_0x2b8d4a),_0x5e8ccc=(0x0,_0x5888a3[_0x1d897f(0x1a8)])(_0x13c583[_0x1d897f(0x1e9)]),_0x430b2e=(0x0,_0x5888a3[_0x1d897f(0x1ca)])(()=>_0x5e8ccc[_0x1d897f(0x248)](_0x13c583[_0x1d897f(0x1ce)][_0x1d897f(0x242)]),void 0x0,!0x1,[]),[_0x4a8b69,_0x5ed867]=(0x0,_0x106904['useState'])(null),[_0x32dc19,_0x413ed7]=(0x0,_0x106904[_0x1d897f(0x1e6)])(_0x1d897f(0x226)),_0x128d35=(0x0,_0x106904[_0x1d897f(0x1a2)])(null);return(0x0,_0x106904[_0x1d897f(0x1bf)])(()=>(_0x430b2e&&_0x375e3d[_0x1d897f(0x212)](_0x430b2e[_0x1d897f(0x1e0)]())[_0x1d897f(0x18b)](_0x2f29a2=>{const _0x4c8789=_0x1d897f;_0x5ed867(_0x2f29a2),_0x128d35[_0x4c8789(0x233)]=_0x2f29a2[_0x4c8789(0x186)]['subscribe'](_0x38fd92=>{_0x413ed7(_0x38fd92);});}),()=>{const _0x1a053c=_0x1d897f;var _0x280271;(_0x280271=_0x128d35[_0x1a053c(0x233)])==null||_0x280271[_0x1a053c(0x195)](),_0x128d35['current']=null;}),[_0x430b2e,_0x375e3d]),_0x4a8b69?(0x0,_0xc22266[_0x1d897f(0x23e)])(_0xc721fb[_0x1d897f(0x185)],{'align':'end','disabled':_0x32dc19===_0x1d897f(0x259),'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,_0xc22266['jsx'])(_0x35700c,{'status':_0x32dc19,'coordinator':_0x4a8b69}),'children':(0x0,_0xc22266[_0x1d897f(0x23e)])(_0x1d897f(0x211),{'className':(0x0,_0xc721fb[_0x1d897f(0x20c)])(_0x1d897f(0x23f),{'univer-cursor-not-allowed':_0x32dc19==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32dc19!==_0x1d897f(0x259)}),'type':_0x1d897f(0x211),'children':(0x0,_0xc22266['jsx'])(_0x352e05,{'className':_0x1d897f(0x183)})})}):null;}function _0x35700c(_0x5be421){const _0x309406=_0x37f4aa;let {status:_0x370a37,coordinator:_0x135a92}=_0x5be421;switch(_0x370a37){case'idle':return(0x0,_0xc22266[_0x309406(0x23e)])(_0x44cb0f,{'coordinator':_0x135a92});case _0x309406(0x1aa):return(0x0,_0xc22266[_0x309406(0x23e)])(_0x26694c,{'coordinator':_0x135a92});case'not-following':return(0x0,_0xc22266[_0x309406(0x23e)])(_0x4a0aa3,{'coordinator':_0x135a92});case _0x309406(0x259):return(0x0,_0xc22266['jsx'])(_0x35e35f,{});case'presenting':return(0x0,_0xc22266[_0x309406(0x23e)])(_0x2951d5,{'coordinator':_0x135a92});default:return null;}}function _0x44cb0f(_0x452832){const _0x12fc52=_0x37f4aa;let {coordinator:_0xf7f5ab}=_0x452832;return(0x0,_0xc22266[_0x12fc52(0x17a)])(_0xc22266['Fragment'],{'children':[(0x0,_0xc22266['jsx'])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x12fc52(0x1c0)}),(0x0,_0xc22266[_0x12fc52(0x23e)])(_0xc721fb[_0x12fc52(0x24f)],{'onClick':()=>_0xf7f5ab[_0x12fc52(0x1db)](),'children':_0x12fc52(0x22e)})]});}function _0x26694c(_0x24aab7){const _0x127287=_0x37f4aa;let {coordinator:_0x2d11af}=_0x24aab7;return(0x0,_0xc22266[_0x127287(0x17a)])(_0xc22266['Fragment'],{'children':[(0x0,_0xc22266[_0x127287(0x23e)])(_0x127287(0x25a),{'className':_0x127287(0x247),'children':_0x127287(0x22d)}),(0x0,_0xc22266[_0x127287(0x23e)])(_0xc721fb[_0x127287(0x24f)],{'onClick':()=>_0x2d11af[_0x127287(0x1da)](),'children':_0x127287(0x18f)})]});}function _0x4a0aa3(_0x16d273){const _0x293a0e=_0x37f4aa;let {coordinator:_0x19656d}=_0x16d273;return(0x0,_0xc22266[_0x293a0e(0x17a)])(_0xc22266[_0x293a0e(0x204)],{'children':[(0x0,_0xc22266[_0x293a0e(0x23e)])(_0x293a0e(0x25a),{'className':_0x293a0e(0x247),'children':_0x293a0e(0x1ed)}),(0x0,_0xc22266['jsx'])(_0xc721fb[_0x293a0e(0x24f)],{'variant':'text','onClick':()=>_0x19656d[_0x293a0e(0x1d5)](),'children':_0x293a0e(0x1b3)})]});}function _0x2951d5(_0x31d05a){const _0x141f5c=_0x37f4aa;let {coordinator:_0x5202b8}=_0x31d05a;return(0x0,_0xc22266[_0x141f5c(0x17a)])(_0xc22266[_0x141f5c(0x204)],{'children':[(0x0,_0xc22266['jsx'])(_0x141f5c(0x25a),{'className':_0x141f5c(0x247),'children':_0x141f5c(0x1b2)}),(0x0,_0xc22266[_0x141f5c(0x23e)])(_0xc721fb[_0x141f5c(0x24f)],{'variant':'default','onClick':()=>_0x5202b8[_0x141f5c(0x1f5)](),'children':_0x141f5c(0x1f1)})]});}function _0x35e35f(){const _0x423703=_0x37f4aa;return(0x0,_0xc22266[_0x423703(0x23e)])(_0xc22266[_0x423703(0x204)],{'children':'You\x27are\x20offline.'});}let _0x480833=class extends _0x13c583[_0x37f4aa(0x1f6)]{constructor(_0x2d1f39,_0x40d053){const _0x37b7a3=_0x37f4aa;super(),this[_0x37b7a3(0x21c)]=_0x2d1f39,this[_0x37b7a3(0x1e4)]=_0x40d053,this[_0x37b7a3(0x1df)]();}['_mountLiveShare'](){const _0x2e2950=_0x37f4aa;this[_0x2e2950(0x18a)](this['_uiPartsService'][_0x2e2950(0x217)](_0x5888a3[_0x2e2950(0x216)]['HEADER_MENU'],()=>(0x0,_0x5888a3[_0x2e2950(0x227)])(_0x2fd837,this[_0x2e2950(0x21c)])));}};_0x480833=_0x5a4a5f([_0x48abe6(0x0,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x13c583[_0x37f4aa(0x1e8)])),_0x48abe6(0x1,_0x5888a3[_0x37f4aa(0x235)])],_0x480833);var _0x1656a6=_0x37f4aa(0x215),_0x18d3ec=_0x37f4aa(0x1d9);let _0x232173={},_0x5ce678=class extends _0x13c583[_0x37f4aa(0x1f6)]{constructor(_0x4968dd){const _0x40aeb1=_0x37f4aa;super(),this[_0x40aeb1(0x200)]=_0x4968dd,this[_0x40aeb1(0x19e)]();}[_0x37f4aa(0x19e)](){const _0x4ff628=_0x37f4aa;[_0x11f085[_0x4ff628(0x17f)]['id'],_0x11f085[_0x4ff628(0x1c8)]['id'],_0x4e3dd1[_0x4ff628(0x260)]['id']][_0x4ff628(0x181)](_0x471882=>{const _0x357dce=_0x4ff628;this[_0x357dce(0x18a)](this['_liveShareService'][_0x357dce(0x237)](_0x471882));});}};_0x5ce678=_0x5a4a5f([_0x48abe6(0x0,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x1be41b))],_0x5ce678);let _0xb66c3f=class extends _0x13c583[_0x37f4aa(0x1b5)]{constructor(_0x3e7f56=_0x232173,_0x45b89f,_0x46de85){const _0x700c1=_0x37f4aa;super(),this[_0x700c1(0x25c)]=_0x3e7f56,this['_injector']=_0x45b89f,this[_0x700c1(0x210)]=_0x46de85;let {..._0x12440d}=(0x0,_0x13c583[_0x700c1(0x1ee)])({},_0x232173,this[_0x700c1(0x25c)]);this[_0x700c1(0x210)][_0x700c1(0x230)](_0x700c1(0x1ff),_0x12440d);}['onStarting'](){const _0x4d6f4f=_0x37f4aa;(0x0,_0x13c583['registerDependencies'])(this[_0x4d6f4f(0x21c)],(0x0,_0x13c583['mergeOverrideWithDependencies'])([[_0x1be41b],[_0x2b8d4a],[_0x5ce678],[_0x480833]],this[_0x4d6f4f(0x25c)]['override'])),(0x0,_0x13c583['touchDependencies'])(this[_0x4d6f4f(0x21c)],[[_0x5ce678]]);}[_0x37f4aa(0x1af)](){const _0x2fcb29=_0x37f4aa;(0x0,_0x13c583['touchDependencies'])(this[_0x2fcb29(0x21c)],[[_0x480833]]);}};_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x20e),_0x13c583[_0x37f4aa(0x1ce)]['UNIVER_UNKNOWN']),_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x172),'UNIVER_LIVE_SHARE_PLUGIN'),_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x231),_0x1656a6),_0x3e6b7c(_0xb66c3f,_0x37f4aa(0x1b9),_0x18d3ec),_0xb66c3f=_0x5a4a5f([(0x0,_0x13c583[_0x37f4aa(0x19d)])(_0x339d47[_0x37f4aa(0x19b)]),_0x48abe6(0x1,(0x0,_0x13c583[_0x37f4aa(0x1d4)])(_0x13c583[_0x37f4aa(0x1e8)])),_0x48abe6(0x2,_0x13c583[_0x37f4aa(0x250)])],_0xb66c3f),Object[_0x37f4aa(0x18c)](_0x274fe8,_0x37f4aa(0x207),{'enumerable':!0x0,'get':function(){return _0x480833;}}),_0x274fe8[_0x37f4aa(0x258)]=_0x2fd837,Object['defineProperty'](_0x274fe8,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x2b8d4a;}}),Object['defineProperty'](_0x274fe8,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x5c4420;}}),_0x274fe8['LiveShareService']=_0x1be41b,_0x274fe8[_0x37f4aa(0x262)]=_0x23de74,Object[_0x37f4aa(0x18c)](_0x274fe8,_0x37f4aa(0x232),{'enumerable':!0x0,'get':function(){return _0xb66c3f;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -63,13 +63,13 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@univerjs/icons": "1.4.0",
66
- "@univerjs-pro/collaboration": "0.25.0",
67
- "@univerjs-pro/collaboration-client": "0.25.0",
68
- "@univerjs/core": "0.25.0",
69
- "@univerjs/design": "0.25.0",
70
- "@univerjs/sheets": "0.25.0",
71
- "@univerjs/sheets-ui": "0.25.0",
72
- "@univerjs/ui": "0.25.0"
66
+ "@univerjs-pro/collaboration": "0.25.2",
67
+ "@univerjs-pro/collaboration-client": "0.25.2",
68
+ "@univerjs/core": "0.25.2",
69
+ "@univerjs/design": "0.25.2",
70
+ "@univerjs/sheets-ui": "0.25.2",
71
+ "@univerjs/sheets": "0.25.2",
72
+ "@univerjs/ui": "0.25.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "postcss": "^8.5.14",
@@ -78,8 +78,8 @@
78
78
  "tailwindcss": "^3.4.17",
79
79
  "typescript": "^6.0.3",
80
80
  "vitest": "^4.1.6",
81
- "@univerjs/protocol": "0.25.0",
82
- "@univerjs-infra/shared": "0.25.0"
81
+ "@univerjs-infra/shared": "0.25.2",
82
+ "@univerjs/protocol": "0.25.2"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",