@univerjs-pro/live-share 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x571440=_0x3ff6;(function(_0x2a305e,_0xe182ce){const _0x1af70d=_0x3ff6,_0x1ad53c=_0x2a305e();while(!![]){try{const _0x96a389=parseInt(_0x1af70d(0x16c))/0x1+-parseInt(_0x1af70d(0x170))/0x2*(parseInt(_0x1af70d(0x16b))/0x3)+-parseInt(_0x1af70d(0x17b))/0x4+-parseInt(_0x1af70d(0x16e))/0x5*(-parseInt(_0x1af70d(0x186))/0x6)+parseInt(_0x1af70d(0x171))/0x7*(parseInt(_0x1af70d(0x188))/0x8)+parseInt(_0x1af70d(0x181))/0x9*(parseInt(_0x1af70d(0x18a))/0xa)+parseInt(_0x1af70d(0x162))/0xb*(-parseInt(_0x1af70d(0x17f))/0xc);if(_0x96a389===_0xe182ce)break;else _0x1ad53c['push'](_0x1ad53c['shift']());}catch(_0x34d7a3){_0x1ad53c['push'](_0x1ad53c['shift']());}}}(_0x5ccb,0xbbc19));function _0x3ff6(_0x2f37ee,_0x1b60b9){_0x2f37ee=_0x2f37ee-0x161;const _0x5ccb27=_0x5ccb();let _0x3ff657=_0x5ccb27[_0x2f37ee];return _0x3ff657;}function _0x5ccb(){const _0x38727d=['defineProperty','startFollowing','_liveShareController','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatusEnum','IUniverInstanceService','tryStartPresenting','3436764snMjEW','string','UniverInstanceType','No\x20active\x20workbook\x20found.','2336244tBLslO','getCurrentUnitOfType','45jFhFBD','symbol','get','FUniver','getLiveShareCoordinatorSync','6UkLJfd','_initialize','2952208dXRKSv','_injector','3056620BsxMdv','prototype','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','11tFjEiB','LiveShareStatus','stopPresenting','FEnum','getUnitId','startPresenting','function','getStatus','call','6GIJyFM','27910imrIkF','UNIVER_SHEET','2570195awRXKs','stopFollowing','616358CrXWqD','7PhOlGY','iterator','constructor'];_0x5ccb=function(){return _0x38727d;};return _0x5ccb();}let e=require(`@univerjs-pro/live-share`),t=require(`@univerjs/core`),n=require(`@univerjs/core/facade`);function r(_0x2314de){'@babel/helpers - typeof';const _0x46f434=_0x3ff6;return r=typeof Symbol==_0x46f434(0x168)&&typeof Symbol[_0x46f434(0x172)]==_0x46f434(0x182)?function(_0x23da4c){return typeof _0x23da4c;}:function(_0x4871ef){const _0x5bd48d=_0x46f434;return _0x4871ef&&typeof Symbol==_0x5bd48d(0x168)&&_0x4871ef[_0x5bd48d(0x173)]===Symbol&&_0x4871ef!==Symbol[_0x5bd48d(0x18b)]?_0x5bd48d(0x182):typeof _0x4871ef;},r(_0x2314de);}function i(_0x441892,_0x2ea6fa){const _0x5ec59e=_0x3ff6;if(r(_0x441892)!='object'||!_0x441892)return _0x441892;var _0x3f586d=_0x441892[Symbol['toPrimitive']];if(_0x3f586d!==void 0x0){var _0x214a67=_0x3f586d[_0x5ec59e(0x16a)](_0x441892,_0x2ea6fa||'default');if(r(_0x214a67)!='object')return _0x214a67;throw TypeError(_0x5ec59e(0x177));}return(_0x2ea6fa===_0x5ec59e(0x17c)?String:Number)(_0x441892);}function a(_0x1a854e){const _0x35c20a=_0x3ff6;var _0x1b7224=i(_0x1a854e,_0x35c20a(0x17c));return r(_0x1b7224)==_0x35c20a(0x182)?_0x1b7224:_0x1b7224+'';}function o(_0x25e177,_0x4dd796,_0x5d885e){const _0x4dca45=_0x3ff6;return(_0x4dd796=a(_0x4dd796))in _0x25e177?Object[_0x4dca45(0x174)](_0x25e177,_0x4dd796,{'value':_0x5d885e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25e177[_0x4dd796]=_0x5d885e,_0x25e177;}var s=class extends n['FUniver']{constructor(..._0x5d423e){super(..._0x5d423e),o(this,'_liveShareController',void 0x0);}[_0x571440(0x187)](_0x230f72){const _0x2c4159=_0x571440;this[_0x2c4159(0x176)]=_0x230f72[_0x2c4159(0x183)](e['LiveShareController']);}['getLiveShareStatus'](){const _0x215202=_0x571440;var _0x56ea56;let _0x5c154d=this[_0x215202(0x189)][_0x215202(0x183)](t[_0x215202(0x179)])[_0x215202(0x180)](t['UniverInstanceType'][_0x215202(0x16d)]);if(!_0x5c154d)throw Error(_0x215202(0x17e));let _0x5c9f94=_0x5c154d['getUnitId'](),_0xfba247=this[_0x215202(0x176)][_0x215202(0x185)](_0x5c9f94);return(_0x56ea56=_0xfba247==null?void 0x0:_0xfba247[_0x215202(0x169)]())==null?e['LiveShareStatus']['IDLE']:_0x56ea56;}[_0x571440(0x175)](){const _0x252db4=_0x571440;let _0x472724=this[_0x252db4(0x189)]['get'](t['IUniverInstanceService'])['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x472724)throw Error(_0x252db4(0x17e));let _0xa2bd69=_0x472724[_0x252db4(0x166)](),_0x4b7de7=this[_0x252db4(0x176)]['getLiveShareCoordinatorSync'](_0xa2bd69);if(!_0x4b7de7)throw Error(_0x252db4(0x161));_0x4b7de7['startFollowing']();}[_0x571440(0x16f)](){const _0x365f91=_0x571440;let _0x5ab104=this[_0x365f91(0x189)][_0x365f91(0x183)](t[_0x365f91(0x179)])[_0x365f91(0x180)](t[_0x365f91(0x17d)][_0x365f91(0x16d)]);if(!_0x5ab104)throw Error('No\x20active\x20workbook\x20found.');let _0x47ced1=_0x5ab104['getUnitId'](),_0x34a173=this[_0x365f91(0x176)]['getLiveShareCoordinatorSync'](_0x47ced1);if(!_0x34a173)throw Error(_0x365f91(0x161));_0x34a173[_0x365f91(0x16f)]();}[_0x571440(0x167)](){const _0x271624=_0x571440;let _0x37c616=this['_injector']['get'](t[_0x271624(0x179)])['getCurrentUnitOfType'](t[_0x271624(0x17d)][_0x271624(0x16d)]);if(!_0x37c616)throw Error(_0x271624(0x17e));let _0x3f9e68=_0x37c616[_0x271624(0x166)](),_0x4b96b4=this[_0x271624(0x176)]['getLiveShareCoordinatorSync'](_0x3f9e68);if(!_0x4b96b4)throw Error(_0x271624(0x161));_0x4b96b4[_0x271624(0x17a)]();}[_0x571440(0x164)](){const _0xb3a108=_0x571440;let _0x4ea933=this[_0xb3a108(0x189)][_0xb3a108(0x183)](t[_0xb3a108(0x179)])[_0xb3a108(0x180)](t[_0xb3a108(0x17d)][_0xb3a108(0x16d)]);if(!_0x4ea933)throw Error(_0xb3a108(0x17e));let _0x3d3b0d=_0x4ea933[_0xb3a108(0x166)](),_0x542f19=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x3d3b0d);if(!_0x542f19)throw Error(_0xb3a108(0x161));_0x542f19[_0xb3a108(0x164)]();}};n[_0x571440(0x184)]['extend'](s);var c=class extends n[_0x571440(0x165)]{get[_0x571440(0x178)](){const _0x3e77d3=_0x571440;return e[_0x3e77d3(0x163)];}};n[_0x571440(0x165)]['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd9c5f4=_0x2074;(function(_0x4416dc,_0x2e729d){const _0x2e251e=_0x2074,_0x30bee5=_0x4416dc();while(!![]){try{const _0x5008e4=-parseInt(_0x2e251e(0xc5))/0x1*(parseInt(_0x2e251e(0xf3))/0x2)+parseInt(_0x2e251e(0xe0))/0x3+parseInt(_0x2e251e(0xbf))/0x4+parseInt(_0x2e251e(0xf4))/0x5*(-parseInt(_0x2e251e(0xbe))/0x6)+-parseInt(_0x2e251e(0x101))/0x7*(parseInt(_0x2e251e(0xcb))/0x8)+-parseInt(_0x2e251e(0x135))/0x9+-parseInt(_0x2e251e(0xed))/0xa*(-parseInt(_0x2e251e(0xd1))/0xb);if(_0x5008e4===_0x2e729d)break;else _0x30bee5['push'](_0x30bee5['shift']());}catch(_0x1b3bbd){_0x30bee5['push'](_0x30bee5['shift']());}}}(_0x4752,0x7a469),Object['defineProperty'](exports,Symbol[_0xd9c5f4(0x159)],{'value':_0xd9c5f4(0xcf)}));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(_0x4bcfd0){'@babel/helpers - typeof';const _0x438251=_0xd9c5f4;return f=typeof Symbol==_0x438251(0x10b)&&typeof Symbol[_0x438251(0x12c)]=='symbol'?function(_0x6a4a9f){return typeof _0x6a4a9f;}:function(_0x320f46){const _0xc4c6e2=_0x438251;return _0x320f46&&typeof Symbol=='function'&&_0x320f46[_0xc4c6e2(0x110)]===Symbol&&_0x320f46!==Symbol[_0xc4c6e2(0x13e)]?'symbol':typeof _0x320f46;},f(_0x4bcfd0);}function p(_0x14fab8,_0x55713d){const _0xd6f059=_0xd9c5f4;if(f(_0x14fab8)!=_0xd6f059(0x11d)||!_0x14fab8)return _0x14fab8;var _0x5e8653=_0x14fab8[Symbol[_0xd6f059(0xe1)]];if(_0x5e8653!==void 0x0){var _0x569c59=_0x5e8653[_0xd6f059(0xdb)](_0x14fab8,_0x55713d||_0xd6f059(0xff));if(f(_0x569c59)!='object')return _0x569c59;throw TypeError(_0xd6f059(0x13b));}return(_0x55713d==='string'?String:Number)(_0x14fab8);}function m(_0x225141){const _0x419c57=_0xd9c5f4;var _0x10b6e5=p(_0x225141,_0x419c57(0xfd));return f(_0x10b6e5)=='symbol'?_0x10b6e5:_0x10b6e5+'';}function h(_0x1362b8,_0x2a91a9,_0x2409aa){const _0x19f95a=_0xd9c5f4;return(_0x2a91a9=m(_0x2a91a9))in _0x1362b8?Object[_0x19f95a(0xd5)](_0x1362b8,_0x2a91a9,{'value':_0x2409aa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1362b8[_0x2a91a9]=_0x2409aa,_0x1362b8;}function _0x2074(_0x543002,_0xa66a4){_0x543002=_0x543002-0xb3;const _0x475254=_0x4752();let _0x207436=_0x475254[_0x543002];return _0x207436;}var g=class extends e[_0xd9c5f4(0x14d)]{constructor(..._0x5d02f5){const _0x2160bd=_0xd9c5f4;super(..._0x5d02f5),h(this,_0x2160bd(0x12d),new Set()),h(this,_0x2160bd(0xd6),new Set());}[_0xd9c5f4(0xdc)](_0xf32999){const _0xe03d39=_0xd9c5f4;return this[_0xe03d39(0x12d)]['add'](_0xf32999),(0x0,e[_0xe03d39(0xe3)])(()=>this[_0xe03d39(0x12d)][_0xe03d39(0xf2)](_0xf32999));}[_0xd9c5f4(0x160)](_0x34599e){const _0x1e2594=_0xd9c5f4;return this[_0x1e2594(0xd6)][_0x1e2594(0x111)](_0x34599e),(0x0,e[_0x1e2594(0xe3)])(()=>this['_reporters']['delete'](_0x34599e));}['shouldShareOperation'](_0x38096b){const _0x3877b5=_0xd9c5f4;return this[_0x3877b5(0x12d)][_0x3877b5(0xe6)](_0x38096b);}[_0xd9c5f4(0x112)](_0x1fdf1c){const _0x499e78=_0xd9c5f4;return Array['from'](this['_reporters'])[_0x499e78(0xeb)](_0x2847e5=>_0x2847e5(_0x1fdf1c));}};function _(_0x7a9fbd,_0x52d4a4){return function(_0x3b2c07,_0x46875d){_0x52d4a4(_0x3b2c07,_0x46875d,_0x7a9fbd);};}function v(_0x5c8998,_0x3a00f0,_0x55da57,_0x331af0){const _0x2ffa2d=_0xd9c5f4;var _0x475cdc=arguments[_0x2ffa2d(0x113)],_0x42361f=_0x475cdc<0x3?_0x3a00f0:_0x331af0===null?_0x331af0=Object[_0x2ffa2d(0xca)](_0x3a00f0,_0x55da57):_0x331af0,_0x594a17;if(typeof Reflect==_0x2ffa2d(0x11d)&&typeof Reflect[_0x2ffa2d(0x123)]==_0x2ffa2d(0x10b))_0x42361f=Reflect[_0x2ffa2d(0x123)](_0x5c8998,_0x3a00f0,_0x55da57,_0x331af0);else{for(var _0x35db2f=_0x5c8998[_0x2ffa2d(0x113)]-0x1;_0x35db2f>=0x0;_0x35db2f--)(_0x594a17=_0x5c8998[_0x35db2f])&&(_0x42361f=(_0x475cdc<0x3?_0x594a17(_0x42361f):_0x475cdc>0x3?_0x594a17(_0x3a00f0,_0x55da57,_0x42361f):_0x594a17(_0x3a00f0,_0x55da57))||_0x42361f);}return _0x475cdc>0x3&&_0x42361f&&Object[_0x2ffa2d(0xd5)](_0x3a00f0,_0x55da57,_0x42361f),_0x42361f;}let y=class extends e['RxDisposable']{constructor(_0x52adf1,_0x38ed3d,_0x20bac1){const _0x80482c=_0xd9c5f4;super(),this[_0x80482c(0xc9)]=_0x52adf1,this['_injector']=_0x38ed3d,this[_0x80482c(0x174)]=_0x20bac1,h(this,_0x80482c(0xbd),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x2a3ea6){const _0x4185b2=_0xd9c5f4;return this[_0x4185b2(0xbd)][_0x4185b2(0xe6)](_0x2a3ea6)||await this[_0x4185b2(0xf9)](_0x2a3ea6),this[_0x4185b2(0xbd)][_0x4185b2(0xb5)](_0x2a3ea6);}[_0xd9c5f4(0x157)](_0x454ddd){const _0x1f50ef=_0xd9c5f4;var _0x40cdd1;return(_0x40cdd1=this[_0x1f50ef(0xbd)][_0x1f50ef(0xb5)](_0x454ddd))==null?null:_0x40cdd1;}['_init'](){const _0x2f4422=_0xd9c5f4;this['_univerInstanceService']['getTypeOfUnitAdded$'](e[_0x2f4422(0xf6)][_0x2f4422(0xc0)])[_0x2f4422(0x12a)]((0x0,l[_0x2f4422(0xc1)])(this[_0x2f4422(0xf5)]))[_0x2f4422(0x107)](async _0x26d142=>{const _0x5b0f6a=_0x2f4422;let _0xf3bf6f=_0x26d142['getUnitId']();this['_entities'][_0x5b0f6a(0xe6)](_0xf3bf6f)||this[_0x5b0f6a(0xf9)](_0xf3bf6f);}),this[_0x2f4422(0xc9)][_0x2f4422(0xe9)](e[_0x2f4422(0xf6)]['UNIVER_SHEET'])[_0x2f4422(0x12a)]((0x0,l[_0x2f4422(0xc1)])(this[_0x2f4422(0xf5)]))[_0x2f4422(0x107)](_0x81886e=>{const _0x394d93=_0x2f4422;let _0x2fbc63=_0x81886e[_0x394d93(0x147)](),_0x296165=this[_0x394d93(0xbd)][_0x394d93(0xb5)](_0x2fbc63);_0x296165==null||_0x296165[_0x394d93(0xc4)]();});}async[_0xd9c5f4(0xf9)](_0x541977){const _0x34c63=_0xd9c5f4;let _0x782a49=await this[_0x34c63(0x174)]['requireSession'](_0x541977),_0x112c70=this['_injector']['createInstance'](x,_0x541977,_0x782a49);return _0x112c70[_0x34c63(0x165)](),this[_0x34c63(0xbd)][_0x34c63(0x129)](_0x541977,_0x112c70),_0x112c70;}};y=v([_(0x0,e[_0xd9c5f4(0x12f)]),_(0x1,(0x0,e[_0xd9c5f4(0x156)])(e[_0xd9c5f4(0x10e)])),_(0x2,(0x0,e['Inject'])(o[_0xd9c5f4(0x114)]))],y);let b=function(_0x1418c1){const _0x8fbbaa=_0xd9c5f4;return _0x1418c1['OFFLINE']=_0x8fbbaa(0x119),_0x1418c1[_0x8fbbaa(0x16e)]=_0x8fbbaa(0xc2),_0x1418c1[_0x8fbbaa(0x13d)]=_0x8fbbaa(0x12b),_0x1418c1[_0x8fbbaa(0xba)]=_0x8fbbaa(0x130),_0x1418c1[_0x8fbbaa(0x169)]=_0x8fbbaa(0x144),_0x1418c1;}({}),x=class extends e[_0xd9c5f4(0x142)]{get['_status'](){return this['_status$']['getValue']();}constructor(_0xe1bc60,_0x5e3363,_0xfa5554,_0x75c61b,_0x23015d){const _0x1ac1c8=_0xd9c5f4;super(),this[_0x1ac1c8(0x15c)]=_0xe1bc60,this[_0x1ac1c8(0x118)]=_0x5e3363,this['_configService']=_0xfa5554,this[_0x1ac1c8(0x12e)]=_0x75c61b,this[_0x1ac1c8(0x15a)]=_0x23015d,h(this,_0x1ac1c8(0xc8),new c['BehaviorSubject'](b[_0x1ac1c8(0x16e)])),h(this,_0x1ac1c8(0xb4),this[_0x1ac1c8(0xc8)][_0x1ac1c8(0xda)]()),h(this,_0x1ac1c8(0x106),!0x1),h(this,_0x1ac1c8(0xdd),null),h(this,_0x1ac1c8(0x14a),null);}[_0xd9c5f4(0xc4)](){const _0x2ecaee=_0xd9c5f4;var _0x104ca7;(_0x104ca7=this['_commandDisposable'])==null||_0x104ca7[_0x2ecaee(0xc4)](),this[_0x2ecaee(0xc8)][_0x2ecaee(0xb6)](b[_0x2ecaee(0x16e)]),this[_0x2ecaee(0xc8)][_0x2ecaee(0x163)]();}[_0xd9c5f4(0x153)](){return this['_status'];}[_0xd9c5f4(0x165)](){const _0x1979d5=_0xd9c5f4;this[_0x1979d5(0x106)]||(this[_0x1979d5(0x106)]=!0x0,this[_0x1979d5(0x118)]['sessionStatus$'][_0x1979d5(0x12a)]((0x0,l['takeUntil'])(this[_0x1979d5(0xf5)]))[_0x1979d5(0x107)](_0x27cd59=>{const _0x1681c1=_0x1979d5;switch(_0x27cd59){case o[_0x1681c1(0x145)][_0x1681c1(0x120)]:this['_handleOffline']();break;case o[_0x1681c1(0x145)][_0x1681c1(0x128)]:this[_0x1681c1(0x16d)]();break;default:}}),this[_0x1979d5(0x118)][_0x1979d5(0x148)][_0x1979d5(0x12a)]((0x0,l[_0x1979d5(0xc1)])(this['dispose$']))['subscribe'](_0x4da8bf=>{const _0x57fb3c=_0x1979d5;let {eventID:_0x444d02}=_0x4da8bf;switch(_0x444d02){case a[_0x57fb3c(0x132)]['LIVESHARE_NEW_HOST']:this[_0x57fb3c(0x117)](_0x4da8bf);break;case a['CollaborationEvent'][_0x57fb3c(0x134)]:this[_0x57fb3c(0x176)](_0x4da8bf);break;case a[_0x57fb3c(0x132)][_0x57fb3c(0x172)]:this[_0x57fb3c(0x15b)]();break;case a[_0x57fb3c(0x132)][_0x57fb3c(0x16a)]:this[_0x57fb3c(0x155)](_0x4da8bf);break;default:}}));}[_0xd9c5f4(0xfc)](){const _0x189ee8=_0xd9c5f4;this[_0x189ee8(0x118)]['send']({'eventID':a[_0x189ee8(0x132)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x189ee8(0x118)][_0x189ee8(0x166)]()}},this[_0x189ee8(0x15c)]);}[_0xd9c5f4(0x15f)](){const _0x3678ba=_0xd9c5f4;this[_0x3678ba(0xe4)]===b[_0x3678ba(0x169)]&&(this['_status$'][_0x3678ba(0xb6)](b[_0x3678ba(0x16e)]),this[_0x3678ba(0x118)][_0x3678ba(0x125)]({'eventID':a[_0x3678ba(0x132)][_0x3678ba(0x172)],'data':{'unitID':this[_0x3678ba(0x15c)]}},this[_0x3678ba(0x15c)]));}[_0xd9c5f4(0x137)](){const _0x59be64=_0xd9c5f4;this[_0x59be64(0xe4)]===b[_0x59be64(0xba)]&&(this['_status$'][_0x59be64(0xb6)](b[_0x59be64(0x13d)]),this[_0x59be64(0x167)]());}[_0xd9c5f4(0x170)](){const _0x133abb=_0xd9c5f4;this[_0x133abb(0xe4)]===b[_0x133abb(0x13d)]&&this[_0x133abb(0x151)]();}[_0xd9c5f4(0x117)](_0x2619d9){const _0x39807d=_0xd9c5f4;let {presenter:_0x3764c8}=_0x2619d9[_0x39807d(0x154)],_0x311069=this[_0x39807d(0x118)][_0x39807d(0x166)]();this[_0x39807d(0x14a)]=_0x3764c8,_0x3764c8===_0x311069?(this['_stopFollowing'](),this[_0x39807d(0xdf)]()):this[_0x39807d(0xe4)]!==b[_0x39807d(0xba)]&&(this[_0x39807d(0x13a)](),this[_0x39807d(0x167)]());}[_0xd9c5f4(0xf8)](){const _0x2b612d=_0xd9c5f4;let _0x29bc48={'eventID':a[_0x2b612d(0x132)][_0x2b612d(0x11e)]};this['_collabSession'][_0x2b612d(0x125)](_0x29bc48,this[_0x2b612d(0x15c)]);}[_0xd9c5f4(0x15b)](){const _0x2c0234=_0xd9c5f4;this[_0x2c0234(0x14a)]=null,this[_0x2c0234(0xe4)]!==b[_0x2c0234(0x169)]&&this['_beIdle']();}[_0xd9c5f4(0x155)](_0x120708){const _0x586f87=_0xd9c5f4;if(this[_0x586f87(0xe4)]===b[_0x586f87(0x13d)]&&this[_0x586f87(0x14a)]===_0x120708[_0x586f87(0x154)][_0x586f87(0x11f)]){let _0x7baf88=(0x0,a[_0x586f87(0xcc)])(_0x120708['data'])[_0x586f87(0x173)][_0x586f87(0x177)]()['find'](_0x32bdc2=>_0x32bdc2['id']===s[_0x586f87(0xee)]['id']);if(_0x7baf88){let _0x315f0f=_0x7baf88['params'][_0x586f87(0x171)],_0x371795=_0x7baf88[_0x586f87(0x139)][_0x586f87(0x162)]['id'];setTimeout(()=>{const _0x5cfda8=_0x586f87;this['_commandService']['executeCommand'](s[_0x5cfda8(0x140)]['id'],{'unitId':_0x315f0f,'subUnitId':_0x371795},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x43b409=_0xd9c5f4;this[_0x43b409(0xc8)][_0x43b409(0xb6)](b[_0x43b409(0x169)]);let _0x35c87c=new Map(),_0x38e79c=this[_0x43b409(0xdd)]=new e[(_0x43b409(0x115))]();_0x38e79c[_0x43b409(0x111)]((0x0,e['toDisposable'])(()=>{_0x35c87c['forEach'](_0xd80112=>_0xd80112['complete']()),_0x35c87c['clear']();})),_0x38e79c[_0x43b409(0x111)](this[_0x43b409(0x15a)][_0x43b409(0x15d)](_0x32d425=>{const _0x1950ef=_0x43b409;if(_0x32d425['type']!==e[_0x1950ef(0x126)]['OPERATION']||!this['_liveShareService'][_0x1950ef(0x104)](_0x32d425['id']))return;let {id:_0x4c39e1}=_0x32d425,_0x4bfd5d;if(_0x35c87c['has'](_0x4c39e1))_0x4bfd5d=_0x35c87c[_0x1950ef(0xb5)](_0x4c39e1);else{var _0xa04056;_0x4bfd5d=new c[(_0x1950ef(0x150))](),_0x35c87c[_0x1950ef(0x129)](_0x4c39e1,_0x4bfd5d),_0x4bfd5d[_0x1950ef(0x12a)]((0x0,l[_0x1950ef(0x108)])((_0xa04056=this[_0x1950ef(0xcd)][_0x1950ef(0x11b)](_0x1950ef(0xd9)))==null?0xc8:_0xa04056,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1950ef(0x107)](_0x3aa499=>{const _0x9c5fd2=_0x1950ef;this[_0x9c5fd2(0x118)][_0x9c5fd2(0x125)]({'eventID':a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x9c5fd2(0x15c)],'operations':{[_0x3aa499['id']]:{'id':_0x3aa499['id'],'params':JSON['stringify'](_0x3aa499[_0x9c5fd2(0x139)])}}}},this['_unitID']);});}_0x4bfd5d[_0x1950ef(0xb6)](_0x32d425);})),this[_0x43b409(0x12e)][_0x43b409(0x112)](this[_0x43b409(0x15c)])['forEach'](_0x28e127=>this[_0x43b409(0x118)]['send']({'eventID':a[_0x43b409(0x132)][_0x43b409(0x134)],'data':{'unitID':this[_0x43b409(0x15c)],'operations':{[_0x28e127['id']]:{'id':_0x28e127['id'],'params':JSON[_0x43b409(0xfa)](_0x28e127[_0x43b409(0x139)])}}}},this[_0x43b409(0x15c)]));}[_0xd9c5f4(0x13a)](){const _0x1630f5=_0xd9c5f4;var _0x16e097;this['_status$'][_0x1630f5(0xb6)](b['IDLE']),(_0x16e097=this['_commandDisposable'])==null||_0x16e097[_0x1630f5(0xc4)](),this[_0x1630f5(0xdd)]=null;}[_0xd9c5f4(0x167)](){const _0x38e3d2=_0xd9c5f4;var _0xd4e148;(_0xd4e148=this[_0x38e3d2(0xdd)])==null||_0xd4e148['dispose'](),this[_0x38e3d2(0xc8)][_0x38e3d2(0xb6)](b[_0x38e3d2(0x13d)]);}[_0xd9c5f4(0xf7)](){const _0x2114bd=_0xd9c5f4;var _0x204fe4;this[_0x2114bd(0xc8)][_0x2114bd(0xb6)](b[_0x2114bd(0x16e)]),(_0x204fe4=this[_0x2114bd(0xdd)])==null||_0x204fe4[_0x2114bd(0xc4)](),this[_0x2114bd(0xdd)]=null;}[_0xd9c5f4(0x151)](){const _0x1f43df=_0xd9c5f4;var _0x33fb8c;this['_status$'][_0x1f43df(0xb6)](b[_0x1f43df(0xba)]),(_0x33fb8c=this['_commandDisposable'])==null||_0x33fb8c[_0x1f43df(0xc4)]();}['_handleOperation'](_0x38d794){const _0x2d11ca=_0xd9c5f4;if([b[_0x2d11ca(0x169)],b[_0x2d11ca(0xba)],b['OFFLINE']][_0x2d11ca(0x10f)](this['_status'])||!_0x38d794[_0x2d11ca(0x154)]['presenter']||_0x38d794[_0x2d11ca(0x154)]['presenter']===this['_collabSession'][_0x2d11ca(0x166)]())return;this[_0x2d11ca(0xe4)]===b[_0x2d11ca(0x16e)]&&this['_startFollowing']();let _0x6387b6=_0x38d794[_0x2d11ca(0x154)][_0x2d11ca(0xe8)];Object[_0x2d11ca(0xef)](_0x6387b6)[_0x2d11ca(0x10a)](_0x30af64=>{const _0x57674d=_0x2d11ca;this['_commandService']['executeCommand'](_0x30af64['id'],_0x30af64['params']?JSON['parse'](_0x30af64[_0x57674d(0x139)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x6e4ed2=_0xd9c5f4;var _0x214be5;this[_0x6e4ed2(0xc8)][_0x6e4ed2(0xb6)](b[_0x6e4ed2(0x120)]),(_0x214be5=this['_commandDisposable'])==null||_0x214be5[_0x6e4ed2(0xc4)]();}[_0xd9c5f4(0x16d)](){const _0x405a34=_0xd9c5f4;this[_0x405a34(0xc8)]['next'](b[_0x405a34(0x16e)]),this[_0x405a34(0xf8)]();}};x=v([_(0x2,e[_0xd9c5f4(0xd4)]),_(0x3,(0x0,e['Inject'])(g)),_(0x4,e['ICommandService'])],x);function S(){const _0x2e0f6d=_0xd9c5f4;let _0xa17342=(0x0,t[_0x2e0f6d(0xd8)])(y),_0x69a1f5=(0x0,t[_0x2e0f6d(0xd8)])(e['IUniverInstanceService']),_0x3a0f3f=(0x0,t[_0x2e0f6d(0xf0)])(()=>_0x69a1f5[_0x2e0f6d(0x15e)](e[_0x2e0f6d(0xf6)][_0x2e0f6d(0xc0)]),void 0x0,!0x1,[]),[_0x4346a4,_0x76f48e]=(0x0,i[_0x2e0f6d(0xf1)])(null),[_0x23b3f3,_0x5d5718]=(0x0,i['useState'])(b[_0x2e0f6d(0x16e)]),_0x530b37=(0x0,i[_0x2e0f6d(0x122)])(null);return(0x0,i[_0x2e0f6d(0x105)])(()=>(_0x3a0f3f&&_0xa17342[_0x2e0f6d(0xd3)](_0x3a0f3f[_0x2e0f6d(0x147)]())[_0x2e0f6d(0x16b)](_0x1ede72=>{const _0x2548d5=_0x2e0f6d;_0x76f48e(_0x1ede72),_0x530b37['current']=_0x1ede72[_0x2548d5(0xb4)][_0x2548d5(0x107)](_0x285c4f=>{_0x5d5718(_0x285c4f);});}),()=>{const _0x686788=_0x2e0f6d;var _0x472e29;(_0x472e29=_0x530b37[_0x686788(0x102)])==null||_0x472e29[_0x686788(0xea)](),_0x530b37['current']=null;}),[_0x3a0f3f,_0xa17342]),_0x4346a4?(0x0,u[_0x2e0f6d(0x10c)])(n[_0x2e0f6d(0x168)],{'align':_0x2e0f6d(0xb7),'disabled':_0x23b3f3===b[_0x2e0f6d(0x120)],'className':_0x2e0f6d(0x152),'overlay':(0x0,u[_0x2e0f6d(0x10c)])(C,{'status':_0x23b3f3,'coordinator':_0x4346a4}),'children':(0x0,u[_0x2e0f6d(0x10c)])(_0x2e0f6d(0x136),{'className':(0x0,n[_0x2e0f6d(0xc3)])(_0x2e0f6d(0x100),{'univer-cursor-not-allowed':_0x23b3f3===b[_0x2e0f6d(0x120)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x23b3f3!==b['OFFLINE']}),'type':_0x2e0f6d(0x136),'children':(0x0,u[_0x2e0f6d(0x10c)])(r[_0x2e0f6d(0x143)],{'className':_0x2e0f6d(0x158)})})}):null;}function C(_0x1b12e3){const _0x2cec21=_0xd9c5f4;let {status:_0x22ba8e,coordinator:_0x406f9f}=_0x1b12e3;switch(_0x22ba8e){case b['IDLE']:return(0x0,u[_0x2cec21(0x10c)])(w,{'coordinator':_0x406f9f});case b[_0x2cec21(0x13d)]:return(0x0,u[_0x2cec21(0x10c)])(T,{'coordinator':_0x406f9f});case b[_0x2cec21(0xba)]:return(0x0,u[_0x2cec21(0x10c)])(E,{'coordinator':_0x406f9f});case b[_0x2cec21(0x120)]:return(0x0,u[_0x2cec21(0x10c)])(O,{});case b[_0x2cec21(0x169)]:return(0x0,u[_0x2cec21(0x10c)])(D,{'coordinator':_0x406f9f});default:return null;}}function w(_0x7cfd91){const _0x23bd85=_0xd9c5f4;let {coordinator:_0x9ec82c}=_0x7cfd91;return(0x0,u[_0x23bd85(0xd2)])(u[_0x23bd85(0x124)],{'children':[(0x0,u['jsx'])('div',{'className':_0x23bd85(0x127),'children':_0x23bd85(0xb3)}),(0x0,u[_0x23bd85(0x10c)])(n[_0x23bd85(0xb9)],{'onClick':()=>_0x9ec82c[_0x23bd85(0xfc)](),'children':_0x23bd85(0x14b)})]});}function T(_0x3f9bd9){const _0x2a5963=_0xd9c5f4;let {coordinator:_0x44c717}=_0x3f9bd9;return(0x0,u[_0x2a5963(0xd2)])(u['Fragment'],{'children':[(0x0,u[_0x2a5963(0x10c)])(_0x2a5963(0x11c),{'className':_0x2a5963(0x127),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u[_0x2a5963(0x10c)])(n[_0x2a5963(0xb9)],{'onClick':()=>_0x44c717[_0x2a5963(0x170)](),'children':'Stop\x20following'})]});}function E(_0x30aba6){const _0x26555b=_0xd9c5f4;let {coordinator:_0x45f48b}=_0x30aba6;return(0x0,u[_0x26555b(0xd2)])(u['Fragment'],{'children':[(0x0,u[_0x26555b(0x10c)])('div',{'className':_0x26555b(0x127),'children':_0x26555b(0xce)}),(0x0,u[_0x26555b(0x10c)])(n[_0x26555b(0xb9)],{'variant':_0x26555b(0xfb),'onClick':()=>_0x45f48b[_0x26555b(0x137)](),'children':_0x26555b(0x103)})]});}function D(_0x5953fc){const _0x23cce8=_0xd9c5f4;let {coordinator:_0x603366}=_0x5953fc;return(0x0,u[_0x23cce8(0xd2)])(u[_0x23cce8(0x124)],{'children':[(0x0,u[_0x23cce8(0x10c)])(_0x23cce8(0x11c),{'className':_0x23cce8(0x127),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,u[_0x23cce8(0x10c)])(n[_0x23cce8(0xb9)],{'variant':_0x23cce8(0xff),'onClick':()=>_0x603366[_0x23cce8(0x15f)](),'children':_0x23cce8(0x175)})]});}function O(){const _0x6a309d=_0xd9c5f4;return(0x0,u[_0x6a309d(0x10c)])(u[_0x6a309d(0x124)],{'children':_0x6a309d(0x109)});}let k=class extends e[_0xd9c5f4(0x14d)]{constructor(_0x4b3ddf,_0x36360f){const _0x5bc60d=_0xd9c5f4;super(),this[_0x5bc60d(0xe2)]=_0x4b3ddf,this[_0x5bc60d(0x14c)]=_0x36360f,this['_mountLiveShare']();}[_0xd9c5f4(0x149)](){const _0x4da1d6=_0xd9c5f4;this[_0x4da1d6(0xc6)](this[_0x4da1d6(0x14c)][_0x4da1d6(0xde)](t[_0x4da1d6(0x13f)][_0x4da1d6(0xe5)],()=>(0x0,t[_0x4da1d6(0x14e)])(S,this[_0x4da1d6(0xe2)])));}};k=v([_(0x0,(0x0,e[_0xd9c5f4(0x156)])(e[_0xd9c5f4(0x10e)])),_(0x1,t['IUIPartsService'])],k);var A=_0xd9c5f4(0x11a),j=_0xd9c5f4(0xbc);function _0x4752(){const _0x16da0e=['status$','get','next','end','UniverCollaborationClientPlugin','Button','NOT_FOLLOWING','type','0.20.0','_entities','30amdlJs','3379240nLVVJx','UNIVER_SHEET','takeUntil','idle','clsx','dispose','6JPhbDC','disposeWithMe','pluginName','_status$','_univerInstanceService','getOwnPropertyDescriptor','533216qTyReQ','parseProtocolChangeset','_configService','You\x27re\x20not\x20following\x20the\x20presenter','Module','LiveShareService','407fgoGwT','jsxs','getLiveShareCoordinator','IConfigService','defineProperty','_reporters','onRendered','useDependency','SAME_OPERATION_SHARE_INTERVAL','asObservable','call','registerSharedOperation','_commandDisposable','registerComponent','_startPresenting','1393089WjnUie','toPrimitive','_injector','toDisposable','_status','HEADER_MENU','has','touchDependencies','operations','getTypeOfUnitDisposed$','unsubscribe','map','live-share.config','409980zmelap','InsertSheetMutation','values','useObservable','useState','delete','293996dnrnId','443285WUPBBc','dispose$','UniverInstanceType','_beIdle','_fetchOperations','_startLiveShareCoordinator','stringify','text','tryStartPresenting','string','DependentOn','default','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','28HWgOiz','current','Start\x20following','shouldShareOperation','useEffect','_init','subscribe','throttleTime','You\x27are\x20offline.','forEach','function','jsx','packageName','Injector','includes','constructor','add','getInitialStates','length','CollaborationSessionService','DisposableCollection','_config','_handleNewHost','_collabSession','offline','@univerjs-pro/live-share','getConfig','div','object','LIVESHARE_FETCH_OPERATIONS','memberID','OFFLINE','merge','useRef','decorate','Fragment','send','CommandType','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','set','pipe','following','iterator','_sharedOperations','_liveShareService','IUniverInstanceService','not-following','LiveShareController','CollaborationEvent','Plugin','LIVESHARE_OPERATION','6600393yXDILL','button','startFollowing','UNIVER_UNKNOWN','params','_stopPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','FOLLOWING','prototype','BuiltInUIPart','SetWorksheetActiveOperation','version','RxDisposable','LiveShareIcon','presenting','SessionStatus','LiveShare','getUnitId','event$','_mountLiveShare','_presenter','Start','_uiPartsService','Disposable','connectInjector','UNIVER_LIVE_SHARE_PLUGIN','Subject','_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','getStatus','data','_handleNewChangeSets','Inject','getLiveShareCoordinatorSync','univer-size-4','toStringTag','_commandService','_handleTerminate','_unitID','onCommandExecuted','getCurrentTypeOfUnit$','stopPresenting','registerInitialStateReporter','override','sheet','complete','SetZoomRatioOperation','init','getMemberID','_startFollowing','Dropdown','PRESENTING','NEW_CHANGESETS','then','registerDependencies','_handleOnline','IDLE','UniverLiveSharePlugin','stopFollowing','unitId','LIVESHARE_TERMINATE','mutations','_collabSessionService','Stop\x20presenting','_handleOperation','reverse','DesktopLiveShareController','Present\x20this\x20document'];_0x4752=function(){return _0x16da0e;};return _0x4752();}const M=_0xd9c5f4(0xec);Symbol(M);const N={};let P=class extends e['Disposable']{constructor(_0x74a6e2){const _0x21c730=_0xd9c5f4;super(),this[_0x21c730(0x12e)]=_0x74a6e2,this[_0x21c730(0x106)]();}[_0xd9c5f4(0x106)](){const _0x47ddeb=_0xd9c5f4;[d[_0x47ddeb(0x164)]['id'],d['SetScrollOperation']['id'],s['SetWorksheetActiveOperation']['id']][_0x47ddeb(0x10a)](_0x33e38b=>{const _0x3f899f=_0x47ddeb;this[_0x3f899f(0xc6)](this[_0x3f899f(0x12e)][_0x3f899f(0xdc)](_0x33e38b));});}};P=v([_(0x0,(0x0,e[_0xd9c5f4(0x156)])(g))],P);let F=class extends e[_0xd9c5f4(0x133)]{constructor(_0x58d9f7=N,_0x24ee93,_0x15b5b8){const _0x132e8a=_0xd9c5f4;super(),this[_0x132e8a(0x116)]=_0x58d9f7,this['_injector']=_0x24ee93,this[_0x132e8a(0xcd)]=_0x15b5b8;let {..._0x1b1450}=(0x0,e[_0x132e8a(0x121)])({},N,this['_config']);this[_0x132e8a(0xcd)]['setConfig'](M,_0x1b1450);}[_0xd9c5f4(0x13c)](){const _0x4f8412=_0xd9c5f4;(0x0,e[_0x4f8412(0x16c)])(this[_0x4f8412(0xe2)],(0x0,e['mergeOverrideWithDependencies'])([[g],[y],[P],[k]],this['_config'][_0x4f8412(0x161)])),(0x0,e[_0x4f8412(0xe7)])(this[_0x4f8412(0xe2)],[[P]]);}[_0xd9c5f4(0xd7)](){const _0x183ff5=_0xd9c5f4;(0x0,e[_0x183ff5(0xe7)])(this[_0x183ff5(0xe2)],[[k]]);}};h(F,_0xd9c5f4(0xbb),e[_0xd9c5f4(0xf6)][_0xd9c5f4(0x138)]),h(F,_0xd9c5f4(0xc7),_0xd9c5f4(0x14f)),h(F,_0xd9c5f4(0x10d),A),h(F,_0xd9c5f4(0x141),j),F=v([(0x0,e[_0xd9c5f4(0xfe)])(o[_0xd9c5f4(0xb8)]),_(0x1,(0x0,e[_0xd9c5f4(0x156)])(e[_0xd9c5f4(0x10e)])),_(0x2,e[_0xd9c5f4(0xd4)])],F),Object[_0xd9c5f4(0xd5)](exports,_0xd9c5f4(0x178),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0xd9c5f4(0x146)]=S,Object[_0xd9c5f4(0xd5)](exports,_0xd9c5f4(0x131),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0xd9c5f4(0xd0)]=g,exports['LiveShareStatus']=b,Object[_0xd9c5f4(0xd5)](exports,_0xd9c5f4(0x16f),{'enumerable':!0x0,'get':function(){return F;}});
|
|
1
|
+
const _0xda8eac=_0x1a22;(function(_0x6d52af,_0x2f7714){const _0x137e79=_0x1a22,_0x47c63e=_0x6d52af();while(!![]){try{const _0x4e0650=parseInt(_0x137e79(0xfc))/0x1+-parseInt(_0x137e79(0x125))/0x2+parseInt(_0x137e79(0x128))/0x3*(-parseInt(_0x137e79(0x130))/0x4)+parseInt(_0x137e79(0xb2))/0x5*(-parseInt(_0x137e79(0x11b))/0x6)+-parseInt(_0x137e79(0x148))/0x7+parseInt(_0x137e79(0xce))/0x8+parseInt(_0x137e79(0x15e))/0x9;if(_0x4e0650===_0x2f7714)break;else _0x47c63e['push'](_0x47c63e['shift']());}catch(_0x55427e){_0x47c63e['push'](_0x47c63e['shift']());}}}(_0x45ad,0x50a92),Object[_0xda8eac(0xe4)](exports,Symbol[_0xda8eac(0xfa)],{'value':_0xda8eac(0xa5)}));function _0x1a22(_0x280fb2,_0x2bff29){_0x280fb2=_0x280fb2-0x9e;const _0x45ad1b=_0x45ad();let _0x1a2256=_0x45ad1b[_0x280fb2];return _0x1a2256;}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(_0x43e469){'@babel/helpers - typeof';const _0x17bef8=_0xda8eac;return f=typeof Symbol=='function'&&typeof Symbol[_0x17bef8(0x154)]=='symbol'?function(_0x3aa5f0){return typeof _0x3aa5f0;}:function(_0xb83120){const _0xb3b4d4=_0x17bef8;return _0xb83120&&typeof Symbol==_0xb3b4d4(0x10c)&&_0xb83120[_0xb3b4d4(0x146)]===Symbol&&_0xb83120!==Symbol[_0xb3b4d4(0xc8)]?_0xb3b4d4(0xa2):typeof _0xb83120;},f(_0x43e469);}function p(_0x58c8e2,_0x30c885){const _0x4077ab=_0xda8eac;if(f(_0x58c8e2)!=_0x4077ab(0xeb)||!_0x58c8e2)return _0x58c8e2;var _0x284879=_0x58c8e2[Symbol['toPrimitive']];if(_0x284879!==void 0x0){var _0x41408=_0x284879[_0x4077ab(0x136)](_0x58c8e2,_0x30c885||_0x4077ab(0xf2));if(f(_0x41408)!=_0x4077ab(0xeb))return _0x41408;throw TypeError(_0x4077ab(0xd0));}return(_0x30c885===_0x4077ab(0x108)?String:Number)(_0x58c8e2);}function m(_0x1cc493){const _0x42c543=_0xda8eac;var _0x2c0bcc=p(_0x1cc493,'string');return f(_0x2c0bcc)==_0x42c543(0xa2)?_0x2c0bcc:_0x2c0bcc+'';}function h(_0xeb8d12,_0xd5de92,_0x5c9423){const _0x12e766=_0xda8eac;return(_0xd5de92=m(_0xd5de92))in _0xeb8d12?Object[_0x12e766(0xe4)](_0xeb8d12,_0xd5de92,{'value':_0x5c9423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xeb8d12[_0xd5de92]=_0x5c9423,_0xeb8d12;}var g=class extends e[_0xda8eac(0xbb)]{constructor(..._0x4166da){const _0x5cd878=_0xda8eac;super(..._0x4166da),h(this,_0x5cd878(0x13b),new Set()),h(this,'_reporters',new Set());}[_0xda8eac(0xb7)](_0x3a6d0b){const _0x4b6938=_0xda8eac;return this[_0x4b6938(0x13b)][_0x4b6938(0xc5)](_0x3a6d0b),(0x0,e[_0x4b6938(0x153)])(()=>this[_0x4b6938(0x13b)]['delete'](_0x3a6d0b));}['registerInitialStateReporter'](_0x1b1a53){const _0x522d01=_0xda8eac;return this[_0x522d01(0xf6)][_0x522d01(0xc5)](_0x1b1a53),(0x0,e[_0x522d01(0x153)])(()=>this[_0x522d01(0xf6)][_0x522d01(0x118)](_0x1b1a53));}[_0xda8eac(0x139)](_0x1bd53a){return this['_sharedOperations']['has'](_0x1bd53a);}[_0xda8eac(0xed)](_0x5a6cc7){const _0x31aff2=_0xda8eac;return Array[_0x31aff2(0xc1)](this['_reporters'])[_0x31aff2(0xb6)](_0x4584e0=>_0x4584e0(_0x5a6cc7));}};function _(_0xe7d615,_0x17b526){return function(_0x2675ea,_0x4b8a97){_0x17b526(_0x2675ea,_0x4b8a97,_0xe7d615);};}function v(_0x4a4e60,_0x25c9ae,_0x16323e,_0x59064b){const _0x4d83ef=_0xda8eac;var _0x126fce=arguments[_0x4d83ef(0xe2)],_0x2bec77=_0x126fce<0x3?_0x25c9ae:_0x59064b===null?_0x59064b=Object[_0x4d83ef(0x137)](_0x25c9ae,_0x16323e):_0x59064b,_0x3b98af;if(typeof Reflect==_0x4d83ef(0xeb)&&typeof Reflect[_0x4d83ef(0x14d)]=='function')_0x2bec77=Reflect[_0x4d83ef(0x14d)](_0x4a4e60,_0x25c9ae,_0x16323e,_0x59064b);else{for(var _0x2bb444=_0x4a4e60[_0x4d83ef(0xe2)]-0x1;_0x2bb444>=0x0;_0x2bb444--)(_0x3b98af=_0x4a4e60[_0x2bb444])&&(_0x2bec77=(_0x126fce<0x3?_0x3b98af(_0x2bec77):_0x126fce>0x3?_0x3b98af(_0x25c9ae,_0x16323e,_0x2bec77):_0x3b98af(_0x25c9ae,_0x16323e))||_0x2bec77);}return _0x126fce>0x3&&_0x2bec77&&Object[_0x4d83ef(0xe4)](_0x25c9ae,_0x16323e,_0x2bec77),_0x2bec77;}let y=class extends e[_0xda8eac(0x12b)]{constructor(_0x572d73,_0x16057e,_0x130f80){const _0x2ff4ea=_0xda8eac;super(),this['_univerInstanceService']=_0x572d73,this['_injector']=_0x16057e,this['_collabSessionService']=_0x130f80,h(this,_0x2ff4ea(0x135),new Map()),this[_0x2ff4ea(0x13e)]();}async[_0xda8eac(0xd6)](_0x3162aa){const _0x29f423=_0xda8eac;return this[_0x29f423(0x135)]['has'](_0x3162aa)||await this[_0x29f423(0x10e)](_0x3162aa),this[_0x29f423(0x135)][_0x29f423(0xa4)](_0x3162aa);}[_0xda8eac(0xa7)](_0x3ed3a9){const _0x2584bb=_0xda8eac;var _0x4def8e;return(_0x4def8e=this[_0x2584bb(0x135)][_0x2584bb(0xa4)](_0x3ed3a9))==null?null:_0x4def8e;}[_0xda8eac(0x13e)](){const _0x58ebc7=_0xda8eac;this[_0x58ebc7(0xda)][_0x58ebc7(0x113)](e[_0x58ebc7(0xea)]['UNIVER_SHEET'])['pipe']((0x0,l['takeUntil'])(this['dispose$']))[_0x58ebc7(0xac)](async _0x589c81=>{const _0x444feb=_0x58ebc7;let _0x196bb0=_0x589c81[_0x444feb(0xef)]();this[_0x444feb(0x135)][_0x444feb(0xd2)](_0x196bb0)||this['_startLiveShareCoordinator'](_0x196bb0);}),this['_univerInstanceService'][_0x58ebc7(0x156)](e[_0x58ebc7(0xea)]['UNIVER_SHEET'])[_0x58ebc7(0xbd)]((0x0,l['takeUntil'])(this['dispose$']))[_0x58ebc7(0xac)](_0x4be0e0=>{const _0x236af4=_0x58ebc7;let _0xdb2097=_0x4be0e0[_0x236af4(0xef)](),_0x393024=this[_0x236af4(0x135)][_0x236af4(0xa4)](_0xdb2097);_0x393024==null||_0x393024[_0x236af4(0xa6)]();});}async['_startLiveShareCoordinator'](_0x1fa5ec){const _0x125816=_0xda8eac;let _0x671d7b=await this[_0x125816(0x131)][_0x125816(0xf0)](_0x1fa5ec),_0x3404e5=this[_0x125816(0x115)][_0x125816(0x9f)](x,_0x1fa5ec,_0x671d7b);return _0x3404e5['init'](),this[_0x125816(0x135)][_0x125816(0x15b)](_0x1fa5ec,_0x3404e5),_0x3404e5;}};y=v([_(0x0,e[_0xda8eac(0x114)]),_(0x1,(0x0,e[_0xda8eac(0xe8)])(e[_0xda8eac(0xd1)])),_(0x2,(0x0,e[_0xda8eac(0xe8)])(o['CollaborationSessionService']))],y);let b=function(_0x421547){const _0x52d6ea=_0xda8eac;return _0x421547[_0x52d6ea(0x120)]=_0x52d6ea(0xb8),_0x421547['IDLE']=_0x52d6ea(0xd4),_0x421547[_0x52d6ea(0xe5)]=_0x52d6ea(0xe6),_0x421547[_0x52d6ea(0x13c)]='not-following',_0x421547[_0x52d6ea(0xe0)]=_0x52d6ea(0x13f),_0x421547;}({}),x=class extends e[_0xda8eac(0x12b)]{get[_0xda8eac(0xa9)](){const _0x148ad0=_0xda8eac;return this[_0x148ad0(0x117)]['getValue']();}constructor(_0x2aa576,_0x436acf,_0x5703f8,_0x326caa,_0x75bbd3){const _0x10f3b8=_0xda8eac;super(),this[_0x10f3b8(0xad)]=_0x2aa576,this[_0x10f3b8(0xdc)]=_0x436acf,this[_0x10f3b8(0xfe)]=_0x5703f8,this['_liveShareService']=_0x326caa,this[_0x10f3b8(0xc4)]=_0x75bbd3,h(this,_0x10f3b8(0x117),new c[(_0x10f3b8(0x107))](b[_0x10f3b8(0x12c)])),h(this,_0x10f3b8(0xa0),this[_0x10f3b8(0x117)]['asObservable']()),h(this,_0x10f3b8(0x13e),!0x1),h(this,'_commandDisposable',null),h(this,_0x10f3b8(0x112),null);}[_0xda8eac(0xa6)](){const _0x89a4a0=_0xda8eac;var _0x237f51;(_0x237f51=this['_commandDisposable'])==null||_0x237f51[_0x89a4a0(0xa6)](),this['_status$']['next'](b[_0x89a4a0(0x12c)]),this['_status$'][_0x89a4a0(0x13d)]();}[_0xda8eac(0x14b)](){return this['_status'];}[_0xda8eac(0x100)](){const _0x57b099=_0xda8eac;this[_0x57b099(0x13e)]||(this['_init']=!0x0,this['_collabSession'][_0x57b099(0x11d)][_0x57b099(0xbd)]((0x0,l['takeUntil'])(this[_0x57b099(0xb4)]))[_0x57b099(0xac)](_0x984174=>{const _0x1cb40d=_0x57b099;switch(_0x984174){case o[_0x1cb40d(0xca)][_0x1cb40d(0x120)]:this[_0x1cb40d(0x134)]();break;case o['SessionStatus'][_0x1cb40d(0xd7)]:this[_0x1cb40d(0xf5)]();break;default:}}),this[_0x57b099(0xdc)][_0x57b099(0xc7)][_0x57b099(0xbd)]((0x0,l[_0x57b099(0xf4)])(this['dispose$']))[_0x57b099(0xac)](_0x1e4532=>{const _0x2ec7b9=_0x57b099;let {eventID:_0x52a855}=_0x1e4532;switch(_0x52a855){case a[_0x2ec7b9(0x11e)]['LIVESHARE_NEW_HOST']:this[_0x2ec7b9(0xcb)](_0x1e4532);break;case a[_0x2ec7b9(0x11e)]['LIVESHARE_OPERATION']:this[_0x2ec7b9(0xa8)](_0x1e4532);break;case a[_0x2ec7b9(0x11e)][_0x2ec7b9(0x15a)]:this[_0x2ec7b9(0x160)]();break;case a['CollaborationEvent']['NEW_CHANGESETS']:this[_0x2ec7b9(0xde)](_0x1e4532);break;default:}}));}[_0xda8eac(0x103)](){const _0x417fd3=_0xda8eac;this['_collabSession'][_0x417fd3(0xdd)]({'eventID':a[_0x417fd3(0x11e)][_0x417fd3(0x12d)],'data':{'unitID':this[_0x417fd3(0xad)],'userID':this['_collabSession']['getMemberID']()}},this[_0x417fd3(0xad)]);}[_0xda8eac(0xd9)](){const _0x54711e=_0xda8eac;this[_0x54711e(0xa9)]===b[_0x54711e(0xe0)]&&(this[_0x54711e(0x117)]['next'](b['IDLE']),this[_0x54711e(0xdc)][_0x54711e(0xdd)]({'eventID':a[_0x54711e(0x11e)][_0x54711e(0x15a)],'data':{'unitID':this[_0x54711e(0xad)]}},this[_0x54711e(0xad)]));}[_0xda8eac(0x127)](){const _0x48891a=_0xda8eac;this[_0x48891a(0xa9)]===b[_0x48891a(0x13c)]&&(this[_0x48891a(0x117)][_0x48891a(0xff)](b[_0x48891a(0xe5)]),this[_0x48891a(0x9e)]());}['stopFollowing'](){const _0x5dccae=_0xda8eac;this[_0x5dccae(0xa9)]===b[_0x5dccae(0xe5)]&&this[_0x5dccae(0xe9)]();}[_0xda8eac(0xcb)](_0x111c8d){const _0x183c4f=_0xda8eac;let {presenter:_0x3617e1}=_0x111c8d[_0x183c4f(0x12f)],_0x5ce565=this[_0x183c4f(0xdc)][_0x183c4f(0x145)]();this['_presenter']=_0x3617e1,_0x3617e1===_0x5ce565?(this[_0x183c4f(0xe9)](),this[_0x183c4f(0x109)]()):this[_0x183c4f(0xa9)]!==b[_0x183c4f(0x13c)]&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xda8eac(0x102)](){const _0x5dcbdd=_0xda8eac;let _0x369d9b={'eventID':a['CollaborationEvent'][_0x5dcbdd(0x15c)]};this[_0x5dcbdd(0xdc)][_0x5dcbdd(0xdd)](_0x369d9b,this[_0x5dcbdd(0xad)]);}[_0xda8eac(0x160)](){const _0x27303c=_0xda8eac;this[_0x27303c(0x112)]=null,this['_status']!==b['PRESENTING']&&this[_0x27303c(0xf9)]();}[_0xda8eac(0xde)](_0x43d4e5){const _0x327fdf=_0xda8eac;if(this['_status']===b['FOLLOWING']&&this[_0x327fdf(0x112)]===_0x43d4e5[_0x327fdf(0x12f)][_0x327fdf(0x106)]){let _0x354e94=(0x0,a['parseProtocolChangeset'])(_0x43d4e5['data'])[_0x327fdf(0xd8)][_0x327fdf(0xdf)]()[_0x327fdf(0xcd)](_0x2dae9c=>_0x2dae9c['id']===s[_0x327fdf(0x15d)]['id']);if(_0x354e94){let _0x45ea38=_0x354e94[_0x327fdf(0xba)][_0x327fdf(0x12e)],_0xd47f=_0x354e94[_0x327fdf(0xba)][_0x327fdf(0x122)]['id'];setTimeout(()=>{const _0x706e3d=_0x327fdf;this[_0x706e3d(0xc4)][_0x706e3d(0xbf)](s[_0x706e3d(0xec)]['id'],{'unitId':_0x45ea38,'subUnitId':_0xd47f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5416da=_0xda8eac;this['_status$']['next'](b['PRESENTING']);let _0x4a0014=new Map(),_0x1fa3ed=this[_0x5416da(0xe7)]=new e[(_0x5416da(0x14a))]();_0x1fa3ed[_0x5416da(0xc5)]((0x0,e[_0x5416da(0x153)])(()=>{const _0x1d06cc=_0x5416da;_0x4a0014['forEach'](_0x38c726=>_0x38c726['complete']()),_0x4a0014[_0x1d06cc(0xe1)]();})),_0x1fa3ed['add'](this['_commandService'][_0x5416da(0xdb)](_0x221f84=>{const _0x4aca68=_0x5416da;if(_0x221f84['type']!==e[_0x4aca68(0xf1)][_0x4aca68(0x140)]||!this[_0x4aca68(0x126)]['shouldShareOperation'](_0x221f84['id']))return;let {id:_0x273cc1}=_0x221f84,_0x3fec16;if(_0x4a0014[_0x4aca68(0xd2)](_0x273cc1))_0x3fec16=_0x4a0014[_0x4aca68(0xa4)](_0x273cc1);else{var _0x3b6b9c;_0x3fec16=new c['Subject'](),_0x4a0014[_0x4aca68(0x15b)](_0x273cc1,_0x3fec16),_0x3fec16[_0x4aca68(0xbd)]((0x0,l[_0x4aca68(0x129)])((_0x3b6b9c=this['_configService']['getConfig'](_0x4aca68(0xb0)))==null?0xc8:_0x3b6b9c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4aca68(0xac)](_0x4a5387=>{const _0x22d8ad=_0x4aca68;this[_0x22d8ad(0xdc)]['send']({'eventID':a[_0x22d8ad(0x11e)][_0x22d8ad(0x116)],'data':{'unitID':this[_0x22d8ad(0xad)],'operations':{[_0x4a5387['id']]:{'id':_0x4a5387['id'],'params':JSON['stringify'](_0x4a5387['params'])}}}},this['_unitID']);});}_0x3fec16[_0x4aca68(0xff)](_0x221f84);})),this[_0x5416da(0x126)]['getInitialStates'](this['_unitID'])[_0x5416da(0x11a)](_0x2b4ed0=>this['_collabSession'][_0x5416da(0xdd)]({'eventID':a['CollaborationEvent'][_0x5416da(0x116)],'data':{'unitID':this[_0x5416da(0xad)],'operations':{[_0x2b4ed0['id']]:{'id':_0x2b4ed0['id'],'params':JSON[_0x5416da(0x133)](_0x2b4ed0['params'])}}}},this[_0x5416da(0xad)]));}['_stopPresenting'](){const _0x4b46f5=_0xda8eac;var _0x41421d;this[_0x4b46f5(0x117)][_0x4b46f5(0xff)](b[_0x4b46f5(0x12c)]),(_0x41421d=this['_commandDisposable'])==null||_0x41421d['dispose'](),this[_0x4b46f5(0xe7)]=null;}[_0xda8eac(0x9e)](){const _0x4750e2=_0xda8eac;var _0x2f4f9f;(_0x2f4f9f=this[_0x4750e2(0xe7)])==null||_0x2f4f9f[_0x4750e2(0xa6)](),this['_status$'][_0x4750e2(0xff)](b[_0x4750e2(0xe5)]);}[_0xda8eac(0xf9)](){const _0x88e466=_0xda8eac;var _0x2a7289;this['_status$'][_0x88e466(0xff)](b['IDLE']),(_0x2a7289=this[_0x88e466(0xe7)])==null||_0x2a7289[_0x88e466(0xa6)](),this[_0x88e466(0xe7)]=null;}[_0xda8eac(0xe9)](){const _0xd3d072=_0xda8eac;var _0x4fe680;this[_0xd3d072(0x117)]['next'](b[_0xd3d072(0x13c)]),(_0x4fe680=this[_0xd3d072(0xe7)])==null||_0x4fe680[_0xd3d072(0xa6)]();}[_0xda8eac(0xa8)](_0x2677cf){const _0x433d95=_0xda8eac;if([b[_0x433d95(0xe0)],b[_0x433d95(0x13c)],b[_0x433d95(0x120)]][_0x433d95(0x101)](this[_0x433d95(0xa9)])||!_0x2677cf['data'][_0x433d95(0x111)]||_0x2677cf['data'][_0x433d95(0x111)]===this[_0x433d95(0xdc)][_0x433d95(0x145)]())return;this[_0x433d95(0xa9)]===b[_0x433d95(0x12c)]&&this[_0x433d95(0x9e)]();let _0x59b4bd=_0x2677cf[_0x433d95(0x12f)]['operations'];Object[_0x433d95(0x10a)](_0x59b4bd)[_0x433d95(0x11a)](_0x46b1bd=>{const _0x41fd93=_0x433d95;this[_0x41fd93(0xc4)][_0x41fd93(0xbf)](_0x46b1bd['id'],_0x46b1bd[_0x41fd93(0xba)]?JSON[_0x41fd93(0x11c)](_0x46b1bd['params']):null,{'fromCollab':!0x0});});}[_0xda8eac(0x134)](){const _0x3abfef=_0xda8eac;var _0x22c670;this[_0x3abfef(0x117)][_0x3abfef(0xff)](b[_0x3abfef(0x120)]),(_0x22c670=this[_0x3abfef(0xe7)])==null||_0x22c670[_0x3abfef(0xa6)]();}[_0xda8eac(0xf5)](){const _0x30b423=_0xda8eac;this[_0x30b423(0x117)]['next'](b[_0x30b423(0x12c)]),this[_0x30b423(0x102)]();}};x=v([_(0x2,e[_0xda8eac(0xbe)]),_(0x3,(0x0,e[_0xda8eac(0xe8)])(g)),_(0x4,e[_0xda8eac(0x143)])],x);function S(){const _0x367be5=_0xda8eac;let _0xd4bf2d=(0x0,t[_0x367be5(0x10d)])(y),_0x2a4ac5=(0x0,t['useDependency'])(e[_0x367be5(0x114)]),_0x5e27c5=(0x0,t[_0x367be5(0xae)])(()=>_0x2a4ac5[_0x367be5(0xcc)](e[_0x367be5(0xea)][_0x367be5(0xaa)]),void 0x0,!0x1,[]),[_0x54ff2f,_0x4a8dca]=(0x0,i[_0x367be5(0x104)])(null),[_0x487a14,_0x9cd42c]=(0x0,i[_0x367be5(0x104)])(b[_0x367be5(0x12c)]),_0x9fba98=(0x0,i[_0x367be5(0xf7)])(null);return(0x0,i[_0x367be5(0xb1)])(()=>(_0x5e27c5&&_0xd4bf2d[_0x367be5(0xd6)](_0x5e27c5[_0x367be5(0xef)]())[_0x367be5(0x142)](_0x4d8426=>{const _0x2505ee=_0x367be5;_0x4a8dca(_0x4d8426),_0x9fba98[_0x2505ee(0x155)]=_0x4d8426['status$'][_0x2505ee(0xac)](_0x3c73c5=>{_0x9cd42c(_0x3c73c5);});}),()=>{const _0x529d43=_0x367be5;var _0x246b36;(_0x246b36=_0x9fba98[_0x529d43(0x155)])==null||_0x246b36[_0x529d43(0xc0)](),_0x9fba98[_0x529d43(0x155)]=null;}),[_0x5e27c5,_0xd4bf2d]),_0x54ff2f?(0x0,u[_0x367be5(0xab)])(n[_0x367be5(0x151)],{'align':_0x367be5(0x157),'disabled':_0x487a14===b[_0x367be5(0x120)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':(0x0,u[_0x367be5(0xab)])(C,{'status':_0x487a14,'coordinator':_0x54ff2f}),'children':(0x0,u[_0x367be5(0xab)])(_0x367be5(0xb5),{'className':(0x0,n['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x487a14===b[_0x367be5(0x120)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x487a14!==b['OFFLINE']}),'type':'button','children':(0x0,u[_0x367be5(0xab)])(r[_0x367be5(0xaf)],{'className':_0x367be5(0x119)})})}):null;}function C(_0x297ec6){const _0x5af842=_0xda8eac;let {status:_0x5eca5a,coordinator:_0x46bd53}=_0x297ec6;switch(_0x5eca5a){case b[_0x5af842(0x12c)]:return(0x0,u[_0x5af842(0xab)])(w,{'coordinator':_0x46bd53});case b['FOLLOWING']:return(0x0,u[_0x5af842(0xab)])(T,{'coordinator':_0x46bd53});case b['NOT_FOLLOWING']:return(0x0,u[_0x5af842(0xab)])(E,{'coordinator':_0x46bd53});case b[_0x5af842(0x120)]:return(0x0,u['jsx'])(O,{});case b['PRESENTING']:return(0x0,u['jsx'])(D,{'coordinator':_0x46bd53});default:return null;}}function w(_0x25543e){const _0x3831c1=_0xda8eac;let {coordinator:_0x2bbbdc}=_0x25543e;return(0x0,u[_0x3831c1(0xee)])(u[_0x3831c1(0x132)],{'children':[(0x0,u[_0x3831c1(0xab)])('div',{'className':_0x3831c1(0xc3),'children':_0x3831c1(0xfb)}),(0x0,u[_0x3831c1(0xab)])(n['Button'],{'onClick':()=>_0x2bbbdc[_0x3831c1(0x103)](),'children':_0x3831c1(0xa3)})]});}function T(_0x4417e2){const _0x3198d6=_0xda8eac;let {coordinator:_0x38f1fe}=_0x4417e2;return(0x0,u[_0x3198d6(0xee)])(u[_0x3198d6(0x132)],{'children':[(0x0,u[_0x3198d6(0xab)])(_0x3198d6(0x14c),{'className':_0x3198d6(0xc3),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,u['jsx'])(n[_0x3198d6(0x11f)],{'onClick':()=>_0x38f1fe[_0x3198d6(0xc2)](),'children':_0x3198d6(0x121)})]});}function E(_0x41bd2f){const _0x21cb28=_0xda8eac;let {coordinator:_0x1f7dd6}=_0x41bd2f;return(0x0,u['jsxs'])(u[_0x21cb28(0x132)],{'children':[(0x0,u['jsx'])(_0x21cb28(0x14c),{'className':_0x21cb28(0xc3),'children':_0x21cb28(0x12a)}),(0x0,u['jsx'])(n[_0x21cb28(0x11f)],{'variant':_0x21cb28(0xd5),'onClick':()=>_0x1f7dd6[_0x21cb28(0x127)](),'children':_0x21cb28(0x15f)})]});}function D(_0x3601f3){const _0x3a4ef5=_0xda8eac;let {coordinator:_0x2d8c7b}=_0x3601f3;return(0x0,u[_0x3a4ef5(0xee)])(u[_0x3a4ef5(0x132)],{'children':[(0x0,u[_0x3a4ef5(0xab)])('div',{'className':_0x3a4ef5(0xc3),'children':_0x3a4ef5(0x13a)}),(0x0,u[_0x3a4ef5(0xab)])(n[_0x3a4ef5(0x11f)],{'variant':_0x3a4ef5(0xf2),'onClick':()=>_0x2d8c7b['stopPresenting'](),'children':_0x3a4ef5(0x141)})]});}function O(){const _0x29dfe6=_0xda8eac;return(0x0,u[_0x29dfe6(0xab)])(u['Fragment'],{'children':_0x29dfe6(0xe3)});}let k=class extends e[_0xda8eac(0xbb)]{constructor(_0x387961,_0x192fe4){const _0x2321e9=_0xda8eac;super(),this['_injector']=_0x387961,this['_uiPartsService']=_0x192fe4,this[_0x2321e9(0x10b)]();}[_0xda8eac(0x10b)](){const _0x324e38=_0xda8eac;this[_0x324e38(0x14e)](this[_0x324e38(0xfd)][_0x324e38(0xc6)](t['BuiltInUIPart'][_0x324e38(0x124)],()=>(0x0,t['connectInjector'])(S,this[_0x324e38(0x115)])));}};function _0x45ad(){const _0x299360=['then','ICommandService','LiveShare','getMemberID','constructor','override','1669402vXZKFW','DependentOn','DisposableCollection','getStatus','div','decorate','disposeWithMe','pluginName','onStarting','Dropdown','LiveShareService','toDisposable','iterator','current','getTypeOfUnitDisposed$','end','touchDependencies','registerDependencies','LIVESHARE_TERMINATE','set','LIVESHARE_FETCH_OPERATIONS','InsertSheetMutation','9801351CiUdCq','Start\x20following','_handleTerminate','_startFollowing','createInstance','status$','UniverLiveSharePlugin','symbol','Start','get','Module','dispose','getLiveShareCoordinatorSync','_handleOperation','_status','UNIVER_SHEET','jsx','subscribe','_unitID','useObservable','LiveShareIcon','SAME_OPERATION_SHARE_INTERVAL','useEffect','553865UOPDPA','_config','dispose$','button','map','registerSharedOperation','offline','merge','params','Disposable','IUIPartsService','pipe','IConfigService','executeCommand','unsubscribe','from','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','add','registerComponent','event$','prototype','LiveShareController','SessionStatus','_handleNewHost','getCurrentTypeOfUnit$','find','2188568ZZCgdh','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Injector','has','packageName','idle','text','getLiveShareCoordinator','ONLINE','mutations','stopPresenting','_univerInstanceService','onCommandExecuted','_collabSession','send','_handleNewChangeSets','reverse','PRESENTING','clear','length','You\x27are\x20offline.','defineProperty','FOLLOWING','following','_commandDisposable','Inject','_stopFollowing','UniverInstanceType','object','SetWorksheetActiveOperation','getInitialStates','jsxs','getUnitId','requireSession','CommandType','default','version','takeUntil','_handleOnline','_reporters','useRef','DesktopLiveShareController','_beIdle','toStringTag','Present\x20this\x20document','148795KQFCoU','_uiPartsService','_configService','next','init','includes','_fetchOperations','tryStartPresenting','useState','0.20.1','memberID','BehaviorSubject','string','_startPresenting','values','_mountLiveShare','function','useDependency','_startLiveShareCoordinator','onRendered','UniverCollaborationClientPlugin','presenter','_presenter','getTypeOfUnitAdded$','IUniverInstanceService','_injector','LIVESHARE_OPERATION','_status$','delete','univer-size-4','forEach','6PpDtLE','parse','sessionStatus$','CollaborationEvent','Button','OFFLINE','Stop\x20following','sheet','Plugin','HEADER_MENU','465226utgPrJ','_liveShareService','startFollowing','1797441VgcGQE','throttleTime','You\x27re\x20not\x20following\x20the\x20presenter','RxDisposable','IDLE','LIVESHARE_REQUEST_HOST','unitId','data','4fAzhka','_collabSessionService','Fragment','stringify','_handleOffline','_entities','call','getOwnPropertyDescriptor','type','shouldShareOperation','You\x27re\x20presenting\x20the\x20document','_sharedOperations','NOT_FOLLOWING','complete','_init','presenting','OPERATION','Stop\x20presenting'];_0x45ad=function(){return _0x299360;};return _0x45ad();}k=v([_(0x0,(0x0,e[_0xda8eac(0xe8)])(e[_0xda8eac(0xd1)])),_(0x1,t[_0xda8eac(0xbc)])],k);var A='@univerjs-pro/live-share',j=_0xda8eac(0x105);const M='live-share.config';Symbol(M);const N={};let P=class extends e[_0xda8eac(0xbb)]{constructor(_0x3d65c0){const _0x4f6b8c=_0xda8eac;super(),this[_0x4f6b8c(0x126)]=_0x3d65c0,this[_0x4f6b8c(0x13e)]();}[_0xda8eac(0x13e)](){const _0x3d6738=_0xda8eac;[d['SetZoomRatioOperation']['id'],d['SetScrollOperation']['id'],s[_0x3d6738(0xec)]['id']][_0x3d6738(0x11a)](_0x3bb1a8=>{const _0x504b7f=_0x3d6738;this[_0x504b7f(0x14e)](this[_0x504b7f(0x126)][_0x504b7f(0xb7)](_0x3bb1a8));});}};P=v([_(0x0,(0x0,e['Inject'])(g))],P);let F=class extends e[_0xda8eac(0x123)]{constructor(_0x4077c6=N,_0x1dbece,_0x4974a7){const _0x12b00f=_0xda8eac;super(),this[_0x12b00f(0xb3)]=_0x4077c6,this[_0x12b00f(0x115)]=_0x1dbece,this[_0x12b00f(0xfe)]=_0x4974a7;let {..._0x2972ff}=(0x0,e[_0x12b00f(0xb9)])({},N,this['_config']);this['_configService'][_0x12b00f(0xcf)](M,_0x2972ff);}[_0xda8eac(0x150)](){const _0x203251=_0xda8eac;(0x0,e[_0x203251(0x159)])(this['_injector'],(0x0,e['mergeOverrideWithDependencies'])([[g],[y],[P],[k]],this[_0x203251(0xb3)][_0x203251(0x147)])),(0x0,e[_0x203251(0x158)])(this[_0x203251(0x115)],[[P]]);}[_0xda8eac(0x10f)](){const _0x331615=_0xda8eac;(0x0,e['touchDependencies'])(this[_0x331615(0x115)],[[k]]);}};h(F,_0xda8eac(0x138),e[_0xda8eac(0xea)]['UNIVER_UNKNOWN']),h(F,_0xda8eac(0x14f),'UNIVER_LIVE_SHARE_PLUGIN'),h(F,_0xda8eac(0xd3),A),h(F,_0xda8eac(0xf3),j),F=v([(0x0,e[_0xda8eac(0x149)])(o[_0xda8eac(0x110)]),_(0x1,(0x0,e[_0xda8eac(0xe8)])(e[_0xda8eac(0xd1)])),_(0x2,e[_0xda8eac(0xbe)])],F),Object['defineProperty'](exports,_0xda8eac(0xf8),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0xda8eac(0x144)]=S,Object[_0xda8eac(0xe4)](exports,_0xda8eac(0xc9),{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0xda8eac(0x152)]=g,exports['LiveShareStatus']=b,Object[_0xda8eac(0xe4)](exports,_0xda8eac(0xa1),{'enumerable':!0x0,'get':function(){return F;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x19d952=_0x5d5e;(function(_0x4e7718,_0x535366){const _0x1aba27=_0x5d5e,_0x2bf278=_0x4e7718();while(!![]){try{const _0x4538e9=-parseInt(_0x1aba27(0x134))/0x1*(parseInt(_0x1aba27(0x121))/0x2)+parseInt(_0x1aba27(0x132))/0x3*(parseInt(_0x1aba27(0x130))/0x4)+parseInt(_0x1aba27(0x120))/0x5+parseInt(_0x1aba27(0x12e))/0x6*(parseInt(_0x1aba27(0x129))/0x7)+-parseInt(_0x1aba27(0x137))/0x8+-parseInt(_0x1aba27(0x142))/0x9*(parseInt(_0x1aba27(0x13c))/0xa)+-parseInt(_0x1aba27(0x12a))/0xb*(-parseInt(_0x1aba27(0x122))/0xc);if(_0x4538e9===_0x535366)break;else _0x2bf278['push'](_0x2bf278['shift']());}catch(_0x558d84){_0x2bf278['push'](_0x2bf278['shift']());}}}(_0x2d45,0x71f74));import{LiveShareController as _0x53265f,LiveShareStatus as _0x3a2521}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x56883f,UniverInstanceType as _0x2cba1b}from'@univerjs/core';import{FEnum as _0x1e05d3,FUniver as _0x30cdf0}from'@univerjs/core/facade';function o(_0x39b155){'@babel/helpers - typeof';const _0xfa74f5=_0x5d5e;return o=typeof Symbol==_0xfa74f5(0x124)&&typeof Symbol[_0xfa74f5(0x135)]==_0xfa74f5(0x140)?function(_0x5841d7){return typeof _0x5841d7;}:function(_0x3e0af4){const _0x2c235f=_0xfa74f5;return _0x3e0af4&&typeof Symbol==_0x2c235f(0x124)&&_0x3e0af4[_0x2c235f(0x13d)]===Symbol&&_0x3e0af4!==Symbol[_0x2c235f(0x131)]?_0x2c235f(0x140):typeof _0x3e0af4;},o(_0x39b155);}function s(_0x5b8c0e,_0x10c053){const _0x366ad0=_0x5d5e;if(o(_0x5b8c0e)!='object'||!_0x5b8c0e)return _0x5b8c0e;var _0x2cabd7=_0x5b8c0e[Symbol['toPrimitive']];if(_0x2cabd7!==void 0x0){var _0x4cf0ec=_0x2cabd7['call'](_0x5b8c0e,_0x10c053||_0x366ad0(0x125));if(o(_0x4cf0ec)!=_0x366ad0(0x141))return _0x4cf0ec;throw TypeError(_0x366ad0(0x126));}return(_0x10c053==='string'?String:Number)(_0x5b8c0e);}function _0x2d45(){const _0x1ec9da=['88329FxDyjD','No\x20active\x20workbook\x20found.','135406cmXYtq','iterator','getUnitId','5737312ZoJNqF','string','startPresenting','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4633990ugLfgp','constructor','get','startFollowing','symbol','object','9CyVviY','stopPresenting','tryStartPresenting','_injector','2481120xgzGwV','2MNTirH','5004KyWqwS','IDLE','function','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_SHEET','_liveShareController','958391vRPtRL','15103TSysGR','defineProperty','getLiveShareStatus','getLiveShareCoordinatorSync','30buifbI','getCurrentUnitOfType','4UAzdgX','prototype'];_0x2d45=function(){return _0x1ec9da;};return _0x2d45();}function c(_0x8a904c){const _0x49c4d0=_0x5d5e;var _0x55c39f=s(_0x8a904c,_0x49c4d0(0x138));return o(_0x55c39f)=='symbol'?_0x55c39f:_0x55c39f+'';}function l(_0x433aaa,_0x28aecb,_0x35987a){const _0x170c0b=_0x5d5e;return(_0x28aecb=c(_0x28aecb))in _0x433aaa?Object[_0x170c0b(0x12b)](_0x433aaa,_0x28aecb,{'value':_0x35987a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x433aaa[_0x28aecb]=_0x35987a,_0x433aaa;}var u=class extends _0x30cdf0{constructor(..._0x43aa3f){const _0x2841e9=_0x5d5e;super(..._0x43aa3f),l(this,_0x2841e9(0x128),void 0x0);}['_initialize'](_0x2a8068){const _0x9f58d7=_0x5d5e;this[_0x9f58d7(0x128)]=_0x2a8068[_0x9f58d7(0x13e)](_0x53265f);}[_0x19d952(0x12c)](){const _0x4487d5=_0x19d952;var _0x2bd637;let _0x347418=this[_0x4487d5(0x145)][_0x4487d5(0x13e)](_0x56883f)[_0x4487d5(0x12f)](_0x2cba1b[_0x4487d5(0x127)]);if(!_0x347418)throw Error(_0x4487d5(0x133));let _0x3b85f6=_0x347418['getUnitId'](),_0x1878a6=this[_0x4487d5(0x128)][_0x4487d5(0x12d)](_0x3b85f6);return(_0x2bd637=_0x1878a6==null?void 0x0:_0x1878a6['getStatus']())==null?_0x3a2521[_0x4487d5(0x123)]:_0x2bd637;}[_0x19d952(0x13f)](){const _0x3c7015=_0x19d952;let _0x150698=this[_0x3c7015(0x145)][_0x3c7015(0x13e)](_0x56883f)[_0x3c7015(0x12f)](_0x2cba1b[_0x3c7015(0x127)]);if(!_0x150698)throw Error(_0x3c7015(0x133));let _0x19dbc6=_0x150698[_0x3c7015(0x136)](),_0x2b83be=this[_0x3c7015(0x128)][_0x3c7015(0x12d)](_0x19dbc6);if(!_0x2b83be)throw Error(_0x3c7015(0x13b));_0x2b83be['startFollowing']();}['stopFollowing'](){const _0x1ae77f=_0x19d952;let _0x4e1a88=this[_0x1ae77f(0x145)][_0x1ae77f(0x13e)](_0x56883f)[_0x1ae77f(0x12f)](_0x2cba1b[_0x1ae77f(0x127)]);if(!_0x4e1a88)throw Error(_0x1ae77f(0x133));let _0x17d076=_0x4e1a88[_0x1ae77f(0x136)](),_0x5a9125=this[_0x1ae77f(0x128)]['getLiveShareCoordinatorSync'](_0x17d076);if(!_0x5a9125)throw Error(_0x1ae77f(0x13b));_0x5a9125['stopFollowing']();}[_0x19d952(0x139)](){const _0x6e943a=_0x19d952;let _0x4eba19=this[_0x6e943a(0x145)][_0x6e943a(0x13e)](_0x56883f)[_0x6e943a(0x12f)](_0x2cba1b[_0x6e943a(0x127)]);if(!_0x4eba19)throw Error('No\x20active\x20workbook\x20found.');let _0x380547=_0x4eba19['getUnitId'](),_0x37c849=this[_0x6e943a(0x128)]['getLiveShareCoordinatorSync'](_0x380547);if(!_0x37c849)throw Error(_0x6e943a(0x13b));_0x37c849[_0x6e943a(0x144)]();}[_0x19d952(0x143)](){const _0x39264b=_0x19d952;let _0x5b0220=this[_0x39264b(0x145)]['get'](_0x56883f)[_0x39264b(0x12f)](_0x2cba1b[_0x39264b(0x127)]);if(!_0x5b0220)throw Error(_0x39264b(0x133));let _0x3703b4=_0x5b0220['getUnitId'](),_0x439ca0=this[_0x39264b(0x128)][_0x39264b(0x12d)](_0x3703b4);if(!_0x439ca0)throw Error(_0x39264b(0x13b));_0x439ca0[_0x39264b(0x143)]();}};function _0x5d5e(_0x14b006,_0x1a9caa){_0x14b006=_0x14b006-0x120;const _0x2d45ce=_0x2d45();let _0x5d5e11=_0x2d45ce[_0x14b006];return _0x5d5e11;}_0x30cdf0[_0x19d952(0x13a)](u);var d=class extends _0x1e05d3{get['LiveShareStatusEnum'](){return _0x3a2521;}};_0x1e05d3[_0x19d952(0x13a)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d0128=_0x3a4a;(function(_0x43a5b5,_0x238f87){const _0xdc1a9b=_0x3a4a,_0x196441=_0x43a5b5();while(!![]){try{const _0x5df09c=parseInt(_0xdc1a9b(0xf6))/0x1*(-parseInt(_0xdc1a9b(0x80))/0x2)+parseInt(_0xdc1a9b(0x79))/0x3+parseInt(_0xdc1a9b(0xb8))/0x4*(parseInt(_0xdc1a9b(0xa5))/0x5)+-parseInt(_0xdc1a9b(0xbb))/0x6*(parseInt(_0xdc1a9b(0x91))/0x7)+-parseInt(_0xdc1a9b(0x82))/0x8+-parseInt(_0xdc1a9b(0xbc))/0x9*(-parseInt(_0xdc1a9b(0xb5))/0xa)+-parseInt(_0xdc1a9b(0xff))/0xb*(-parseInt(_0xdc1a9b(0xf9))/0xc);if(_0x5df09c===_0x238f87)break;else _0x196441['push'](_0x196441['shift']());}catch(_0x647a7c){_0x196441['push'](_0x196441['shift']());}}}(_0x81b0,0xbff7e));import{CommandType as _0x1c1f49,DependentOn as _0x121476,Disposable as _0x54ca8c,DisposableCollection as _0x404ec6,ICommandService as _0x3b2faa,IConfigService as _0x4fe3b2,IUniverInstanceService as _0x36b23d,Inject as _0x93af7e,Injector as _0x17532c,Plugin as _0x577139,RxDisposable as _0x408881,UniverInstanceType as _0x484236,merge as _0x589157,mergeOverrideWithDependencies as _0x53db3c,registerDependencies as _0x311905,toDisposable as _0x3dceee,touchDependencies as _0x79afb0}from'@univerjs/core';import{BuiltInUIPart as _0x3e8e0b,IUIPartsService as _0x1eb6e7,connectInjector as _0x599550,useDependency as _0x292703,useObservable as _0x1e2dff}from'@univerjs/ui';import{Button as _0x4db05c,Dropdown as _0x5e92ce,clsx as _0x47db3d}from'@univerjs/design';import{LiveShareIcon as _0x5ed039}from'@univerjs/icons';import{useEffect as _0x5f059a,useRef as _0x923153,useState as _0x225091}from'react';import{CollaborationEvent as _0x36485c,parseProtocolChangeset as _0x302b6c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4e85bc,SessionStatus as _0x275f26,UniverCollaborationClientPlugin as _0xdc6e53}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x56fac8,SetWorksheetActiveOperation as _0x123026}from'@univerjs/sheets';import{BehaviorSubject as _0x4b568d,Subject as _0x1c4306}from'rxjs';import{takeUntil as _0x28704d,throttleTime as _0x3b0ab9}from'rxjs/operators';import{Fragment as _0x34cc85,jsx as _0x150cba,jsxs as _0x3a8fe6}from'react/jsx-runtime';import{SetScrollOperation as _0x576ee1,SetZoomRatioOperation as _0x52bfd1}from'@univerjs/sheets-ui';function L(_0x2f047e){'@babel/helpers - typeof';const _0x12c7ff=_0x3a4a;return L=typeof Symbol==_0x12c7ff(0xa3)&&typeof Symbol[_0x12c7ff(0xd5)]==_0x12c7ff(0xd8)?function(_0xf0ec1){return typeof _0xf0ec1;}:function(_0x182424){const _0x430bad=_0x12c7ff;return _0x182424&&typeof Symbol==_0x430bad(0xa3)&&_0x182424['constructor']===Symbol&&_0x182424!==Symbol[_0x430bad(0x92)]?_0x430bad(0xd8):typeof _0x182424;},L(_0x2f047e);}function R(_0x112890,_0x1b9a47){const _0x193153=_0x3a4a;if(L(_0x112890)!=_0x193153(0xdf)||!_0x112890)return _0x112890;var _0x370916=_0x112890[Symbol[_0x193153(0xdb)]];if(_0x370916!==void 0x0){var _0x267eea=_0x370916[_0x193153(0x97)](_0x112890,_0x1b9a47||_0x193153(0x98));if(L(_0x267eea)!=_0x193153(0xdf))return _0x267eea;throw TypeError(_0x193153(0x71));}return(_0x1b9a47===_0x193153(0x7d)?String:Number)(_0x112890);}function z(_0x5399ff){const _0x1bbe8a=_0x3a4a;var _0x116650=R(_0x5399ff,_0x1bbe8a(0x7d));return L(_0x116650)==_0x1bbe8a(0xd8)?_0x116650:_0x116650+'';}function B(_0x4a1412,_0x4a6154,_0x467bac){const _0x2e990d=_0x3a4a;return(_0x4a6154=z(_0x4a6154))in _0x4a1412?Object[_0x2e990d(0xb3)](_0x4a1412,_0x4a6154,{'value':_0x467bac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a1412[_0x4a6154]=_0x467bac,_0x4a1412;}var V=class extends _0x54ca8c{constructor(..._0x52fdb3){const _0x1a8e40=_0x3a4a;super(..._0x52fdb3),B(this,_0x1a8e40(0x78),new Set()),B(this,'_reporters',new Set());}[_0x3d0128(0xfa)](_0x3a657f){const _0x159b27=_0x3d0128;return this[_0x159b27(0x78)]['add'](_0x3a657f),_0x3dceee(()=>this[_0x159b27(0x78)][_0x159b27(0xa9)](_0x3a657f));}[_0x3d0128(0xe7)](_0x3aa66d){const _0x372e68=_0x3d0128;return this[_0x372e68(0xf3)][_0x372e68(0xfc)](_0x3aa66d),_0x3dceee(()=>this['_reporters'][_0x372e68(0xa9)](_0x3aa66d));}[_0x3d0128(0x9d)](_0x23358c){const _0x33c152=_0x3d0128;return this[_0x33c152(0x78)][_0x33c152(0xf8)](_0x23358c);}[_0x3d0128(0xd1)](_0x103688){const _0x2859f7=_0x3d0128;return Array[_0x2859f7(0xac)](this['_reporters'])[_0x2859f7(0xd6)](_0x18007d=>_0x18007d(_0x103688));}};function H(_0x14b0a8,_0x2c0dbb){return function(_0x124495,_0x3bdf65){_0x2c0dbb(_0x124495,_0x3bdf65,_0x14b0a8);};}function U(_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa){const _0x2f2adf=_0x3d0128;var _0x16c969=arguments[_0x2f2adf(0x8e)],_0x3a41db=_0x16c969<0x3?_0x1af238:_0x1412fa===null?_0x1412fa=Object[_0x2f2adf(0x101)](_0x1af238,_0x2cb87b):_0x1412fa,_0x447519;if(typeof Reflect==_0x2f2adf(0xdf)&&typeof Reflect[_0x2f2adf(0xc4)]==_0x2f2adf(0xa3))_0x3a41db=Reflect['decorate'](_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa);else{for(var _0x411c36=_0x3bcbfb['length']-0x1;_0x411c36>=0x0;_0x411c36--)(_0x447519=_0x3bcbfb[_0x411c36])&&(_0x3a41db=(_0x16c969<0x3?_0x447519(_0x3a41db):_0x16c969>0x3?_0x447519(_0x1af238,_0x2cb87b,_0x3a41db):_0x447519(_0x1af238,_0x2cb87b))||_0x3a41db);}return _0x16c969>0x3&&_0x3a41db&&Object['defineProperty'](_0x1af238,_0x2cb87b,_0x3a41db),_0x3a41db;}let W=class extends _0x408881{constructor(_0x52c037,_0x45e154,_0x54214d){const _0x4a7d37=_0x3d0128;super(),this[_0x4a7d37(0x8f)]=_0x52c037,this['_injector']=_0x45e154,this[_0x4a7d37(0x99)]=_0x54214d,B(this,_0x4a7d37(0xe8),new Map()),this[_0x4a7d37(0xa0)]();}async[_0x3d0128(0xfb)](_0x363793){const _0x5c80cc=_0x3d0128;return this[_0x5c80cc(0xe8)][_0x5c80cc(0xf8)](_0x363793)||await this['_startLiveShareCoordinator'](_0x363793),this[_0x5c80cc(0xe8)][_0x5c80cc(0xc3)](_0x363793);}[_0x3d0128(0x75)](_0x39e9c3){const _0x548768=_0x3d0128;var _0x2cd567;return(_0x2cd567=this[_0x548768(0xe8)]['get'](_0x39e9c3))==null?null:_0x2cd567;}[_0x3d0128(0xa0)](){const _0x110d41=_0x3d0128;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484236[_0x110d41(0x100)])['pipe'](_0x28704d(this[_0x110d41(0xca)]))['subscribe'](async _0x207c03=>{const _0x57210f=_0x110d41;let _0x46b0d3=_0x207c03[_0x57210f(0x85)]();this[_0x57210f(0xe8)][_0x57210f(0xf8)](_0x46b0d3)||this['_startLiveShareCoordinator'](_0x46b0d3);}),this[_0x110d41(0x8f)][_0x110d41(0xfd)](_0x484236['UNIVER_SHEET'])[_0x110d41(0xbe)](_0x28704d(this[_0x110d41(0xca)]))[_0x110d41(0x94)](_0x324c12=>{const _0x49669b=_0x110d41;let _0x304b9f=_0x324c12['getUnitId'](),_0x5b2e61=this[_0x49669b(0xe8)][_0x49669b(0xc3)](_0x304b9f);_0x5b2e61==null||_0x5b2e61[_0x49669b(0x74)]();});}async['_startLiveShareCoordinator'](_0x23614f){const _0x109eb9=_0x3d0128;let _0x4a76ec=await this[_0x109eb9(0x99)][_0x109eb9(0xb1)](_0x23614f),_0x2105a5=this[_0x109eb9(0xf0)][_0x109eb9(0x8a)](K,_0x23614f,_0x4a76ec);return _0x2105a5[_0x109eb9(0x95)](),this[_0x109eb9(0xe8)][_0x109eb9(0x96)](_0x23614f,_0x2105a5),_0x2105a5;}};W=U([H(0x0,_0x36b23d),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x93af7e(_0x4e85bc))],W);function _0x81b0(){const _0x5be810=['send','_reporters','current','_handleTerminate','1pdEKrH','IDLE','has','5528052TYVqzh','registerSharedOperation','getLiveShareCoordinator','add','getTypeOfUnitDisposed$','_handleNewHost','55LIfkKt','UNIVER_SHEET','getOwnPropertyDescriptor','reverse','LIVESHARE_REQUEST_HOST','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status','LIVESHARE_NEW_HOST','dispose','getLiveShareCoordinatorSync','FOLLOWING','_configService','_sharedOperations','2360313zakbqk','event$','version','_status$','string','status$','tryStartPresenting','2799436xQCGvw','onRendered','12045232HRpldi','OFFLINE','live-share.config','getUnitId','PRESENTING','UNIVER_UNKNOWN','_stopFollowing','not-following','createInstance','next','LIVESHARE_FETCH_OPERATIONS','_handleOnline','length','_univerInstanceService','Stop\x20following','1189972yYxiKS','prototype','_uiPartsService','subscribe','init','set','call','default','_collabSessionService','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','then','_config','_init','LIVESHARE_OPERATION','find','function','You\x27re\x20following\x20the\x20presenter','5ClSwHt','presenting','packageName','type','delete','registerComponent','div','from','getValue','HEADER_MENU','pluginName','idle','requireSession','getMemberID','defineProperty','_collabSession','350mkMyBH','stopPresenting','Stop\x20presenting','4259820spcdzA','You\x27are\x20offline.','executeCommand','42yPvXcN','186831HUjXLe','_commandService','pipe','stopFollowing','text','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','asObservable','get','decorate','sessionStatus$','following','params','override','data','dispose$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','parse','_commandDisposable','_handleOperation','getInitialStates','getCurrentTypeOfUnit$','setConfig','startFollowing','iterator','map','UNIVER_LIVE_SHARE_PLUGIN','symbol','stringify','_unitID','toPrimitive','NOT_FOLLOWING','univer-size-4','disposeWithMe','object','sheet','_presenter','memberID','_beIdle','_startPresenting','unsubscribe','_mountLiveShare','registerInitialStateReporter','_entities','forEach','_liveShareService','_handleNewChangeSets','complete','clear','onCommandExecuted','_stopPresenting','_injector','_startFollowing'];_0x81b0=function(){return _0x5be810;};return _0x81b0();}let G=function(_0x13a00e){const _0x7a83c5=_0x3d0128;return _0x13a00e[_0x7a83c5(0x83)]='offline',_0x13a00e[_0x7a83c5(0xf7)]=_0x7a83c5(0xb0),_0x13a00e[_0x7a83c5(0x76)]=_0x7a83c5(0xc6),_0x13a00e[_0x7a83c5(0xdc)]=_0x7a83c5(0x89),_0x13a00e[_0x7a83c5(0x86)]=_0x7a83c5(0xa6),_0x13a00e;}({}),K=class extends _0x408881{get[_0x3d0128(0x72)](){const _0x2ee48d=_0x3d0128;return this[_0x2ee48d(0x7c)][_0x2ee48d(0xad)]();}constructor(_0x142275,_0x15e2b2,_0x2ecf9e,_0xb9df78,_0x20b199){const _0x207624=_0x3d0128;super(),this['_unitID']=_0x142275,this[_0x207624(0xb4)]=_0x15e2b2,this[_0x207624(0x77)]=_0x2ecf9e,this[_0x207624(0xea)]=_0xb9df78,this[_0x207624(0xbd)]=_0x20b199,B(this,_0x207624(0x7c),new _0x4b568d(G['IDLE'])),B(this,_0x207624(0x7e),this[_0x207624(0x7c)][_0x207624(0xc2)]()),B(this,_0x207624(0xa0),!0x1),B(this,_0x207624(0xcf),null),B(this,_0x207624(0xe1),null);}[_0x3d0128(0x74)](){const _0x36e95b=_0x3d0128;var _0x149582;(_0x149582=this[_0x36e95b(0xcf)])==null||_0x149582[_0x36e95b(0x74)](),this[_0x36e95b(0x7c)][_0x36e95b(0x8b)](G[_0x36e95b(0xf7)]),this[_0x36e95b(0x7c)][_0x36e95b(0xec)]();}['getStatus'](){const _0x24aa55=_0x3d0128;return this[_0x24aa55(0x72)];}['init'](){const _0x29ad10=_0x3d0128;this[_0x29ad10(0xa0)]||(this[_0x29ad10(0xa0)]=!0x0,this[_0x29ad10(0xb4)][_0x29ad10(0xc5)]['pipe'](_0x28704d(this[_0x29ad10(0xca)]))[_0x29ad10(0x94)](_0x113580=>{const _0x1279bc=_0x29ad10;switch(_0x113580){case _0x275f26[_0x1279bc(0x83)]:this['_handleOffline']();break;case _0x275f26['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x29ad10(0xb4)][_0x29ad10(0x7a)][_0x29ad10(0xbe)](_0x28704d(this['dispose$']))['subscribe'](_0xa8475b=>{const _0xb4ba09=_0x29ad10;let {eventID:_0x44c13b}=_0xa8475b;switch(_0x44c13b){case _0x36485c[_0xb4ba09(0x73)]:this[_0xb4ba09(0xfe)](_0xa8475b);break;case _0x36485c[_0xb4ba09(0xa1)]:this[_0xb4ba09(0xd0)](_0xa8475b);break;case _0x36485c['LIVESHARE_TERMINATE']:this[_0xb4ba09(0xf5)]();break;case _0x36485c['NEW_CHANGESETS']:this[_0xb4ba09(0xeb)](_0xa8475b);break;default:}}));}['tryStartPresenting'](){const _0x43fbfd=_0x3d0128;this[_0x43fbfd(0xb4)][_0x43fbfd(0xf2)]({'eventID':_0x36485c[_0x43fbfd(0x103)],'data':{'unitID':this['_unitID'],'userID':this[_0x43fbfd(0xb4)]['getMemberID']()}},this[_0x43fbfd(0xda)]);}[_0x3d0128(0xb6)](){const _0x13ef84=_0x3d0128;this['_status']===G[_0x13ef84(0x86)]&&(this[_0x13ef84(0x7c)][_0x13ef84(0x8b)](G[_0x13ef84(0xf7)]),this[_0x13ef84(0xb4)]['send']({'eventID':_0x36485c['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x13ef84(0xda)]}},this['_unitID']));}[_0x3d0128(0xd4)](){const _0x1b3c8b=_0x3d0128;this[_0x1b3c8b(0x72)]===G[_0x1b3c8b(0xdc)]&&(this[_0x1b3c8b(0x7c)]['next'](G[_0x1b3c8b(0x76)]),this[_0x1b3c8b(0xf1)]());}['stopFollowing'](){const _0x5607f2=_0x3d0128;this['_status']===G[_0x5607f2(0x76)]&&this[_0x5607f2(0x88)]();}[_0x3d0128(0xfe)](_0x218c2f){const _0x36bc2f=_0x3d0128;let {presenter:_0xb31db8}=_0x218c2f[_0x36bc2f(0xc9)],_0x280f22=this['_collabSession'][_0x36bc2f(0xb2)]();this[_0x36bc2f(0xe1)]=_0xb31db8,_0xb31db8===_0x280f22?(this[_0x36bc2f(0x88)](),this[_0x36bc2f(0xe4)]()):this['_status']!==G[_0x36bc2f(0xdc)]&&(this[_0x36bc2f(0xef)](),this[_0x36bc2f(0xf1)]());}['_fetchOperations'](){const _0x40b24b=_0x3d0128;let _0x2a82c6={'eventID':_0x36485c[_0x40b24b(0x8c)]};this[_0x40b24b(0xb4)]['send'](_0x2a82c6,this[_0x40b24b(0xda)]);}[_0x3d0128(0xf5)](){const _0x2683ff=_0x3d0128;this['_presenter']=null,this[_0x2683ff(0x72)]!==G[_0x2683ff(0x86)]&&this[_0x2683ff(0xe3)]();}[_0x3d0128(0xeb)](_0x49c559){const _0x40f4a6=_0x3d0128;if(this[_0x40f4a6(0x72)]===G[_0x40f4a6(0x76)]&&this[_0x40f4a6(0xe1)]===_0x49c559[_0x40f4a6(0xc9)][_0x40f4a6(0xe2)]){let _0x489a8f=_0x302b6c(_0x49c559[_0x40f4a6(0xc9)])['mutations'][_0x40f4a6(0x102)]()[_0x40f4a6(0xa2)](_0x12c736=>_0x12c736['id']===_0x56fac8['id']);if(_0x489a8f){let _0x4663d2=_0x489a8f[_0x40f4a6(0xc7)]['unitId'],_0x4df101=_0x489a8f['params'][_0x40f4a6(0xe0)]['id'];setTimeout(()=>{const _0x3242a1=_0x40f4a6;this[_0x3242a1(0xbd)]['executeCommand'](_0x123026['id'],{'unitId':_0x4663d2,'subUnitId':_0x4df101},{'fromCollab':!0x0});});}}}[_0x3d0128(0xe4)](){const _0xe70f26=_0x3d0128;this[_0xe70f26(0x7c)]['next'](G[_0xe70f26(0x86)]);let _0x2abefb=new Map(),_0x409cdf=this[_0xe70f26(0xcf)]=new _0x404ec6();_0x409cdf[_0xe70f26(0xfc)](_0x3dceee(()=>{const _0x462c94=_0xe70f26;_0x2abefb['forEach'](_0x57e5a9=>_0x57e5a9[_0x462c94(0xec)]()),_0x2abefb[_0x462c94(0xed)]();})),_0x409cdf[_0xe70f26(0xfc)](this['_commandService'][_0xe70f26(0xee)](_0x16f1f2=>{const _0x146a3c=_0xe70f26;if(_0x16f1f2[_0x146a3c(0xa8)]!==_0x1c1f49['OPERATION']||!this[_0x146a3c(0xea)][_0x146a3c(0x9d)](_0x16f1f2['id']))return;let {id:_0x40f0cc}=_0x16f1f2,_0x3d32b6;if(_0x2abefb[_0x146a3c(0xf8)](_0x40f0cc))_0x3d32b6=_0x2abefb[_0x146a3c(0xc3)](_0x40f0cc);else{var _0x4b9047;_0x3d32b6=new _0x1c4306(),_0x2abefb['set'](_0x40f0cc,_0x3d32b6),_0x3d32b6[_0x146a3c(0xbe)](_0x3b0ab9((_0x4b9047=this[_0x146a3c(0x77)]['getConfig'](_0x146a3c(0xcc)))==null?0xc8:_0x4b9047,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x146a3c(0x94)](_0x4e8d24=>{const _0x5b5776=_0x146a3c;this['_collabSession'][_0x5b5776(0xf2)]({'eventID':_0x36485c[_0x5b5776(0xa1)],'data':{'unitID':this[_0x5b5776(0xda)],'operations':{[_0x4e8d24['id']]:{'id':_0x4e8d24['id'],'params':JSON['stringify'](_0x4e8d24[_0x5b5776(0xc7)])}}}},this['_unitID']);});}_0x3d32b6['next'](_0x16f1f2);})),this[_0xe70f26(0xea)][_0xe70f26(0xd1)](this['_unitID'])[_0xe70f26(0xe9)](_0x1f7b11=>this[_0xe70f26(0xb4)][_0xe70f26(0xf2)]({'eventID':_0x36485c[_0xe70f26(0xa1)],'data':{'unitID':this[_0xe70f26(0xda)],'operations':{[_0x1f7b11['id']]:{'id':_0x1f7b11['id'],'params':JSON[_0xe70f26(0xd9)](_0x1f7b11[_0xe70f26(0xc7)])}}}},this[_0xe70f26(0xda)]));}['_stopPresenting'](){const _0x5bfa5a=_0x3d0128;var _0x21e98d;this[_0x5bfa5a(0x7c)]['next'](G[_0x5bfa5a(0xf7)]),(_0x21e98d=this[_0x5bfa5a(0xcf)])==null||_0x21e98d[_0x5bfa5a(0x74)](),this['_commandDisposable']=null;}[_0x3d0128(0xf1)](){const _0x412f6a=_0x3d0128;var _0x4cdc70;(_0x4cdc70=this[_0x412f6a(0xcf)])==null||_0x4cdc70['dispose'](),this[_0x412f6a(0x7c)][_0x412f6a(0x8b)](G[_0x412f6a(0x76)]);}[_0x3d0128(0xe3)](){const _0x59e475=_0x3d0128;var _0x26ea35;this[_0x59e475(0x7c)]['next'](G[_0x59e475(0xf7)]),(_0x26ea35=this[_0x59e475(0xcf)])==null||_0x26ea35[_0x59e475(0x74)](),this[_0x59e475(0xcf)]=null;}['_stopFollowing'](){const _0x2421b1=_0x3d0128;var _0x2e73e0;this['_status$']['next'](G[_0x2421b1(0xdc)]),(_0x2e73e0=this[_0x2421b1(0xcf)])==null||_0x2e73e0['dispose']();}[_0x3d0128(0xd0)](_0x19e6ef){const _0x2bc91a=_0x3d0128;if([G[_0x2bc91a(0x86)],G[_0x2bc91a(0xdc)],G[_0x2bc91a(0x83)]][_0x2bc91a(0x9a)](this[_0x2bc91a(0x72)])||!_0x19e6ef[_0x2bc91a(0xc9)]['presenter']||_0x19e6ef[_0x2bc91a(0xc9)]['presenter']===this[_0x2bc91a(0xb4)]['getMemberID']())return;this[_0x2bc91a(0x72)]===G['IDLE']&&this['_startFollowing']();let _0x2705ce=_0x19e6ef[_0x2bc91a(0xc9)]['operations'];Object['values'](_0x2705ce)[_0x2bc91a(0xe9)](_0x3c48b4=>{const _0x24af84=_0x2bc91a;this[_0x24af84(0xbd)][_0x24af84(0xba)](_0x3c48b4['id'],_0x3c48b4['params']?JSON[_0x24af84(0xce)](_0x3c48b4[_0x24af84(0xc7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1627e1=_0x3d0128;var _0x26d5b8;this[_0x1627e1(0x7c)][_0x1627e1(0x8b)](G[_0x1627e1(0x83)]),(_0x26d5b8=this[_0x1627e1(0xcf)])==null||_0x26d5b8[_0x1627e1(0x74)]();}[_0x3d0128(0x8d)](){const _0x51bac5=_0x3d0128;this[_0x51bac5(0x7c)]['next'](G['IDLE']),this[_0x51bac5(0xcd)]();}};K=U([H(0x2,_0x4fe3b2),H(0x3,_0x93af7e(V)),H(0x4,_0x3b2faa)],K);function q(){const _0x2bb6aa=_0x3d0128;let _0x52359d=_0x292703(W),_0x4f7805=_0x292703(_0x36b23d),_0x305964=_0x1e2dff(()=>_0x4f7805[_0x2bb6aa(0xd2)](_0x484236[_0x2bb6aa(0x100)]),void 0x0,!0x1,[]),[_0x3f91e1,_0x390e0a]=_0x225091(null),[_0x5cad62,_0x23ae23]=_0x225091(G[_0x2bb6aa(0xf7)]),_0x5891b4=_0x923153(null);return _0x5f059a(()=>(_0x305964&&_0x52359d[_0x2bb6aa(0xfb)](_0x305964['getUnitId']())[_0x2bb6aa(0x9e)](_0x3b0e55=>{const _0x2de2b8=_0x2bb6aa;_0x390e0a(_0x3b0e55),_0x5891b4[_0x2de2b8(0xf4)]=_0x3b0e55[_0x2de2b8(0x7e)][_0x2de2b8(0x94)](_0x507292=>{_0x23ae23(_0x507292);});}),()=>{const _0x2268c3=_0x2bb6aa;var _0x2463ff;(_0x2463ff=_0x5891b4[_0x2268c3(0xf4)])==null||_0x2463ff[_0x2268c3(0xe5)](),_0x5891b4[_0x2268c3(0xf4)]=null;}),[_0x305964,_0x52359d]),_0x3f91e1?_0x150cba(_0x5e92ce,{'align':'end','disabled':_0x5cad62===G[_0x2bb6aa(0x83)],'className':_0x2bb6aa(0xcb),'overlay':_0x150cba(ce,{'status':_0x5cad62,'coordinator':_0x3f91e1}),'children':_0x150cba('button',{'className':_0x47db3d(_0x2bb6aa(0xc1),{'univer-cursor-not-allowed':_0x5cad62===G[_0x2bb6aa(0x83)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5cad62!==G[_0x2bb6aa(0x83)]}),'type':'button','children':_0x150cba(_0x5ed039,{'className':_0x2bb6aa(0xdd)})})}):null;}function ce(_0x549910){const _0x422724=_0x3d0128;let {status:_0x215f42,coordinator:_0x47d61d}=_0x549910;switch(_0x215f42){case G[_0x422724(0xf7)]:return _0x150cba(le,{'coordinator':_0x47d61d});case G['FOLLOWING']:return _0x150cba(ue,{'coordinator':_0x47d61d});case G[_0x422724(0xdc)]:return _0x150cba(de,{'coordinator':_0x47d61d});case G[_0x422724(0x83)]:return _0x150cba(fe,{});case G[_0x422724(0x86)]:return _0x150cba(J,{'coordinator':_0x47d61d});default:return null;}}function le(_0x533b25){const _0x42a562=_0x3d0128;let {coordinator:_0x41c01a}=_0x533b25;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x42a562(0xab),{'className':_0x42a562(0x9b),'children':'Present\x20this\x20document'}),_0x150cba(_0x4db05c,{'onClick':()=>_0x41c01a[_0x42a562(0x7f)](),'children':'Start'})]});}function ue(_0x4e8fea){const _0x12554d=_0x3d0128;let {coordinator:_0x1a36c6}=_0x4e8fea;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x12554d(0xab),{'className':_0x12554d(0x9b),'children':_0x12554d(0xa4)}),_0x150cba(_0x4db05c,{'onClick':()=>_0x1a36c6[_0x12554d(0xbf)](),'children':_0x12554d(0x90)})]});}function de(_0x107792){const _0x211c43=_0x3d0128;let {coordinator:_0x2cf9d8}=_0x107792;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba('div',{'className':_0x211c43(0x9b),'children':_0x211c43(0x9c)}),_0x150cba(_0x4db05c,{'variant':_0x211c43(0xc0),'onClick':()=>_0x2cf9d8[_0x211c43(0xd4)](),'children':'Start\x20following'})]});}function J(_0x29e284){const _0x1515a6=_0x3d0128;let {coordinator:_0x34a351}=_0x29e284;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x1515a6(0xab),{'className':_0x1515a6(0x9b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x150cba(_0x4db05c,{'variant':_0x1515a6(0x98),'onClick':()=>_0x34a351[_0x1515a6(0xb6)](),'children':_0x1515a6(0xb7)})]});}function fe(){const _0x3934de=_0x3d0128;return _0x150cba(_0x34cc85,{'children':_0x3934de(0xb9)});}let Y=class extends _0x54ca8c{constructor(_0x29bfed,_0x1bef65){const _0x230a90=_0x3d0128;super(),this[_0x230a90(0xf0)]=_0x29bfed,this[_0x230a90(0x93)]=_0x1bef65,this[_0x230a90(0xe6)]();}['_mountLiveShare'](){const _0x5ce18c=_0x3d0128;this['disposeWithMe'](this[_0x5ce18c(0x93)][_0x5ce18c(0xaa)](_0x3e8e0b[_0x5ce18c(0xae)],()=>_0x599550(q,this[_0x5ce18c(0xf0)])));}};Y=U([H(0x0,_0x93af7e(_0x17532c)),H(0x1,_0x1eb6e7)],Y);var pe='@univerjs-pro/live-share',me='0.20.0';const X=_0x3d0128(0x84);Symbol(X);const Z={};let Q=class extends _0x54ca8c{constructor(_0x47c3c9){const _0xbac056=_0x3d0128;super(),this[_0xbac056(0xea)]=_0x47c3c9,this['_init']();}[_0x3d0128(0xa0)](){const _0x222173=_0x3d0128;[_0x52bfd1['id'],_0x576ee1['id'],_0x123026['id']][_0x222173(0xe9)](_0x5d4bd7=>{const _0x37b975=_0x222173;this[_0x37b975(0xde)](this[_0x37b975(0xea)][_0x37b975(0xfa)](_0x5d4bd7));});}};Q=U([H(0x0,_0x93af7e(V))],Q);let $=class extends _0x577139{constructor(_0x395f72=Z,_0x291db0,_0x2be72b){const _0x3ebf18=_0x3d0128;super(),this['_config']=_0x395f72,this[_0x3ebf18(0xf0)]=_0x291db0,this[_0x3ebf18(0x77)]=_0x2be72b;let {..._0x2796ad}=_0x589157({},Z,this[_0x3ebf18(0x9f)]);this[_0x3ebf18(0x77)][_0x3ebf18(0xd3)](X,_0x2796ad);}['onStarting'](){const _0x339618=_0x3d0128;_0x311905(this[_0x339618(0xf0)],_0x53db3c([[V],[W],[Q],[Y]],this[_0x339618(0x9f)][_0x339618(0xc8)])),_0x79afb0(this[_0x339618(0xf0)],[[Q]]);}[_0x3d0128(0x81)](){const _0x1eac88=_0x3d0128;_0x79afb0(this[_0x1eac88(0xf0)],[[Y]]);}};B($,_0x3d0128(0xa8),_0x484236[_0x3d0128(0x87)]),B($,_0x3d0128(0xaf),_0x3d0128(0xd7)),B($,_0x3d0128(0xa7),pe),B($,_0x3d0128(0x7b),me),$=U([_0x121476(_0xdc6e53),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x4fe3b2)],$);function _0x3a4a(_0xa72e4e,_0x11fe7e){_0xa72e4e=_0xa72e4e-0x71;const _0x81b0ff=_0x81b0();let _0x3a4a70=_0x81b0ff[_0xa72e4e];return _0x3a4a70;}export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x316f94=_0x5391;(function(_0xe3a6e7,_0x29817e){const _0x172460=_0x5391,_0x24b1e9=_0xe3a6e7();while(!![]){try{const _0x4e53ed=parseInt(_0x172460(0x20b))/0x1+-parseInt(_0x172460(0x1be))/0x2*(-parseInt(_0x172460(0x1e8))/0x3)+parseInt(_0x172460(0x18c))/0x4*(-parseInt(_0x172460(0x1f8))/0x5)+parseInt(_0x172460(0x198))/0x6+-parseInt(_0x172460(0x1e4))/0x7+-parseInt(_0x172460(0x1e1))/0x8+-parseInt(_0x172460(0x1de))/0x9*(-parseInt(_0x172460(0x1d3))/0xa);if(_0x4e53ed===_0x29817e)break;else _0x24b1e9['push'](_0x24b1e9['shift']());}catch(_0x22466a){_0x24b1e9['push'](_0x24b1e9['shift']());}}}(_0xb49f,0x9fde8));import{CommandType as _0x59b2d3,DependentOn as _0x4a35d8,Disposable as _0x2adf71,DisposableCollection as _0x5adea4,ICommandService as _0x41335f,IConfigService as _0x557f50,IUniverInstanceService as _0x3302a5,Inject as _0x46b23b,Injector as _0x1d072d,Plugin as _0x48ed37,RxDisposable as _0x22b5ea,UniverInstanceType as _0x3134e5,merge as _0x2e2be3,mergeOverrideWithDependencies as _0x3d81e7,registerDependencies as _0x581342,toDisposable as _0x45b351,touchDependencies as _0x52a28d}from'@univerjs/core';import{BuiltInUIPart as _0x25173b,IUIPartsService as _0x3b40e4,connectInjector as _0x4f41a9,useDependency as _0x32da5a,useObservable as _0x3ea909}from'@univerjs/ui';import{Button as _0x4f7ec0,Dropdown as _0x4cb2f3,clsx as _0x3a1867}from'@univerjs/design';import{LiveShareIcon as _0x3a9d6e}from'@univerjs/icons';import{useEffect as _0x2f1cba,useRef as _0x4a2319,useState as _0x3be037}from'react';import{CollaborationEvent as _0x3715c9,parseProtocolChangeset as _0x1ff61d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x29346c,SessionStatus as _0x3826d2,UniverCollaborationClientPlugin as _0x42f673}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x28332a,SetWorksheetActiveOperation as _0x1ff449}from'@univerjs/sheets';import{BehaviorSubject as _0x128b7d,Subject as _0x14ff59}from'rxjs';import{takeUntil as _0x136b9e,throttleTime as _0x16df4d}from'rxjs/operators';import{Fragment as _0x501d46,jsx as _0x509609,jsxs as _0x227845}from'react/jsx-runtime';import{SetScrollOperation as _0x160a49,SetZoomRatioOperation as _0xefcc16}from'@univerjs/sheets-ui';function L(_0x590d83){'@babel/helpers - typeof';const _0x4cc06f=_0x5391;return L=typeof Symbol==_0x4cc06f(0x1e2)&&typeof Symbol[_0x4cc06f(0x1b7)]==_0x4cc06f(0x1ae)?function(_0x448d45){return typeof _0x448d45;}:function(_0x3ba1b9){const _0x13799b=_0x4cc06f;return _0x3ba1b9&&typeof Symbol==_0x13799b(0x1e2)&&_0x3ba1b9['constructor']===Symbol&&_0x3ba1b9!==Symbol[_0x13799b(0x1ee)]?_0x13799b(0x1ae):typeof _0x3ba1b9;},L(_0x590d83);}function R(_0xa99d4,_0x21f9c7){const _0x31c836=_0x5391;if(L(_0xa99d4)!='object'||!_0xa99d4)return _0xa99d4;var _0x14b8c4=_0xa99d4[Symbol['toPrimitive']];if(_0x14b8c4!==void 0x0){var _0x3da7ef=_0x14b8c4[_0x31c836(0x1d4)](_0xa99d4,_0x21f9c7||_0x31c836(0x1a6));if(L(_0x3da7ef)!=_0x31c836(0x1c0))return _0x3da7ef;throw TypeError(_0x31c836(0x1e0));}return(_0x21f9c7===_0x31c836(0x1f1)?String:Number)(_0xa99d4);}function z(_0x559b23){const _0x2d957e=_0x5391;var _0x1282bb=R(_0x559b23,_0x2d957e(0x1f1));return L(_0x1282bb)==_0x2d957e(0x1ae)?_0x1282bb:_0x1282bb+'';}function B(_0x1787ef,_0x2b7d5c,_0x202a95){return(_0x2b7d5c=z(_0x2b7d5c))in _0x1787ef?Object['defineProperty'](_0x1787ef,_0x2b7d5c,{'value':_0x202a95,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1787ef[_0x2b7d5c]=_0x202a95,_0x1787ef;}var V=class extends _0x2adf71{constructor(..._0x4f4764){const _0x34512f=_0x5391;super(..._0x4f4764),B(this,'_sharedOperations',new Set()),B(this,_0x34512f(0x1d6),new Set());}[_0x316f94(0x1fd)](_0x74c681){const _0x5a68cd=_0x316f94;return this[_0x5a68cd(0x1b5)][_0x5a68cd(0x1d0)](_0x74c681),_0x45b351(()=>this[_0x5a68cd(0x1b5)][_0x5a68cd(0x1c9)](_0x74c681));}[_0x316f94(0x180)](_0x398b1e){const _0x4e4b10=_0x316f94;return this[_0x4e4b10(0x1d6)][_0x4e4b10(0x1d0)](_0x398b1e),_0x45b351(()=>this['_reporters'][_0x4e4b10(0x1c9)](_0x398b1e));}[_0x316f94(0x1c8)](_0x23fee9){const _0x51b6de=_0x316f94;return this[_0x51b6de(0x1b5)]['has'](_0x23fee9);}['getInitialStates'](_0x83ab78){const _0x18e7d2=_0x316f94;return Array['from'](this[_0x18e7d2(0x1d6)])['map'](_0x4358ad=>_0x4358ad(_0x83ab78));}};function H(_0x4398df,_0x3cdacc){return function(_0x578c4e,_0x4738fa){_0x3cdacc(_0x578c4e,_0x4738fa,_0x4398df);};}function U(_0x16ddd9,_0x52ab6c,_0xc6f07b,_0x43f9c7){const _0x217ae6=_0x316f94;var _0x5905c6=arguments[_0x217ae6(0x1db)],_0x3847a1=_0x5905c6<0x3?_0x52ab6c:_0x43f9c7===null?_0x43f9c7=Object[_0x217ae6(0x1f0)](_0x52ab6c,_0xc6f07b):_0x43f9c7,_0x407918;if(typeof Reflect==_0x217ae6(0x1c0)&&typeof Reflect[_0x217ae6(0x1ea)]==_0x217ae6(0x1e2))_0x3847a1=Reflect[_0x217ae6(0x1ea)](_0x16ddd9,_0x52ab6c,_0xc6f07b,_0x43f9c7);else{for(var _0x4b478b=_0x16ddd9['length']-0x1;_0x4b478b>=0x0;_0x4b478b--)(_0x407918=_0x16ddd9[_0x4b478b])&&(_0x3847a1=(_0x5905c6<0x3?_0x407918(_0x3847a1):_0x5905c6>0x3?_0x407918(_0x52ab6c,_0xc6f07b,_0x3847a1):_0x407918(_0x52ab6c,_0xc6f07b))||_0x3847a1);}return _0x5905c6>0x3&&_0x3847a1&&Object[_0x217ae6(0x1ba)](_0x52ab6c,_0xc6f07b,_0x3847a1),_0x3847a1;}let W=class extends _0x22b5ea{constructor(_0x2b5005,_0x483c55,_0x18f658){const _0x5844bb=_0x316f94;super(),this['_univerInstanceService']=_0x2b5005,this[_0x5844bb(0x1ca)]=_0x483c55,this['_collabSessionService']=_0x18f658,B(this,_0x5844bb(0x19d),new Map()),this[_0x5844bb(0x1f7)]();}async['getLiveShareCoordinator'](_0x474978){const _0x3e97ae=_0x316f94;return this[_0x3e97ae(0x19d)][_0x3e97ae(0x205)](_0x474978)||await this['_startLiveShareCoordinator'](_0x474978),this[_0x3e97ae(0x19d)][_0x3e97ae(0x20a)](_0x474978);}[_0x316f94(0x17f)](_0x2afed9){var _0x45f533;return(_0x45f533=this['_entities']['get'](_0x2afed9))==null?null:_0x45f533;}['_init'](){const _0x3cb980=_0x316f94;this[_0x3cb980(0x1da)][_0x3cb980(0x202)](_0x3134e5['UNIVER_SHEET'])[_0x3cb980(0x1ef)](_0x136b9e(this['dispose$']))[_0x3cb980(0x207)](async _0x449bc6=>{const _0x54fb72=_0x3cb980;let _0x399e13=_0x449bc6[_0x54fb72(0x18a)]();this[_0x54fb72(0x19d)][_0x54fb72(0x205)](_0x399e13)||this[_0x54fb72(0x182)](_0x399e13);}),this[_0x3cb980(0x1da)][_0x3cb980(0x183)](_0x3134e5[_0x3cb980(0x1fb)])[_0x3cb980(0x1ef)](_0x136b9e(this[_0x3cb980(0x1a2)]))[_0x3cb980(0x207)](_0x52dddf=>{const _0x21ae43=_0x3cb980;let _0x38c80d=_0x52dddf[_0x21ae43(0x18a)](),_0x1bd39b=this[_0x21ae43(0x19d)][_0x21ae43(0x20a)](_0x38c80d);_0x1bd39b==null||_0x1bd39b['dispose']();});}async[_0x316f94(0x182)](_0x118bb2){const _0x1c24f9=_0x316f94;let _0x53ff18=await this[_0x1c24f9(0x1bb)]['requireSession'](_0x118bb2),_0x55a184=this[_0x1c24f9(0x1ca)][_0x1c24f9(0x1cc)](K,_0x118bb2,_0x53ff18);return _0x55a184[_0x1c24f9(0x1ce)](),this[_0x1c24f9(0x19d)]['set'](_0x118bb2,_0x55a184),_0x55a184;}};W=U([H(0x0,_0x3302a5),H(0x1,_0x46b23b(_0x1d072d)),H(0x2,_0x46b23b(_0x29346c))],W);let G=function(_0x10c258){const _0xd080c1=_0x316f94;return _0x10c258[_0xd080c1(0x1a1)]='offline',_0x10c258['IDLE']=_0xd080c1(0x20f),_0x10c258[_0xd080c1(0x20d)]=_0xd080c1(0x19b),_0x10c258[_0xd080c1(0x1f4)]=_0xd080c1(0x1fc),_0x10c258[_0xd080c1(0x1eb)]=_0xd080c1(0x17c),_0x10c258;}({}),K=class extends _0x22b5ea{get[_0x316f94(0x199)](){const _0x29e248=_0x316f94;return this[_0x29e248(0x1b3)][_0x29e248(0x189)]();}constructor(_0x2408ac,_0x3e6e16,_0x273ef4,_0x50438a,_0x4cca86){const _0x3c881e=_0x316f94;super(),this[_0x3c881e(0x1d9)]=_0x2408ac,this[_0x3c881e(0x1e9)]=_0x3e6e16,this[_0x3c881e(0x1d1)]=_0x273ef4,this[_0x3c881e(0x178)]=_0x50438a,this['_commandService']=_0x4cca86,B(this,_0x3c881e(0x1b3),new _0x128b7d(G[_0x3c881e(0x1b8)])),B(this,_0x3c881e(0x177),this[_0x3c881e(0x1b3)][_0x3c881e(0x1ed)]()),B(this,_0x3c881e(0x1f7),!0x1),B(this,_0x3c881e(0x1e6),null),B(this,_0x3c881e(0x187),null);}[_0x316f94(0x1d5)](){const _0xe037be=_0x316f94;var _0x417a8d;(_0x417a8d=this['_commandDisposable'])==null||_0x417a8d['dispose'](),this[_0xe037be(0x1b3)][_0xe037be(0x1cd)](G[_0xe037be(0x1b8)]),this[_0xe037be(0x1b3)]['complete']();}['getStatus'](){const _0x3c6841=_0x316f94;return this[_0x3c6841(0x199)];}[_0x316f94(0x1ce)](){const _0x50ba0d=_0x316f94;this[_0x50ba0d(0x1f7)]||(this[_0x50ba0d(0x1f7)]=!0x0,this['_collabSession'][_0x50ba0d(0x1c7)][_0x50ba0d(0x1ef)](_0x136b9e(this[_0x50ba0d(0x1a2)]))[_0x50ba0d(0x207)](_0x39c7aa=>{const _0x441b6d=_0x50ba0d;switch(_0x39c7aa){case _0x3826d2[_0x441b6d(0x1a1)]:this['_handleOffline']();break;case _0x3826d2[_0x441b6d(0x18d)]:this[_0x441b6d(0x1cb)]();break;default:}}),this['_collabSession']['event$'][_0x50ba0d(0x1ef)](_0x136b9e(this[_0x50ba0d(0x1a2)]))['subscribe'](_0x198742=>{const _0x1d44e4=_0x50ba0d;let {eventID:_0x464edc}=_0x198742;switch(_0x464edc){case _0x3715c9[_0x1d44e4(0x1a5)]:this['_handleNewHost'](_0x198742);break;case _0x3715c9[_0x1d44e4(0x1bc)]:this[_0x1d44e4(0x17d)](_0x198742);break;case _0x3715c9[_0x1d44e4(0x1a4)]:this[_0x1d44e4(0x1ac)]();break;case _0x3715c9['NEW_CHANGESETS']:this[_0x1d44e4(0x1fa)](_0x198742);break;default:}}));}['tryStartPresenting'](){const _0x59e785=_0x316f94;this['_collabSession']['send']({'eventID':_0x3715c9[_0x59e785(0x1af)],'data':{'unitID':this[_0x59e785(0x1d9)],'userID':this[_0x59e785(0x1e9)][_0x59e785(0x18f)]()}},this[_0x59e785(0x1d9)]);}['stopPresenting'](){const _0x439c2d=_0x316f94;this[_0x439c2d(0x199)]===G[_0x439c2d(0x1eb)]&&(this['_status$'][_0x439c2d(0x1cd)](G[_0x439c2d(0x1b8)]),this[_0x439c2d(0x1e9)][_0x439c2d(0x1d2)]({'eventID':_0x3715c9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x439c2d(0x1d9)]}},this[_0x439c2d(0x1d9)]));}['startFollowing'](){const _0x12a883=_0x316f94;this[_0x12a883(0x199)]===G['NOT_FOLLOWING']&&(this[_0x12a883(0x1b3)][_0x12a883(0x1cd)](G[_0x12a883(0x20d)]),this[_0x12a883(0x1f2)]());}['stopFollowing'](){const _0x6ac854=_0x316f94;this['_status']===G['FOLLOWING']&&this[_0x6ac854(0x1d8)]();}[_0x316f94(0x179)](_0xd601f5){const _0x418871=_0x316f94;let {presenter:_0x438b00}=_0xd601f5['data'],_0x17460e=this[_0x418871(0x1e9)][_0x418871(0x18f)]();this[_0x418871(0x187)]=_0x438b00,_0x438b00===_0x17460e?(this['_stopFollowing'](),this[_0x418871(0x194)]()):this[_0x418871(0x199)]!==G[_0x418871(0x1f4)]&&(this[_0x418871(0x1ff)](),this[_0x418871(0x1f2)]());}[_0x316f94(0x1f9)](){const _0x3828e2=_0x316f94;let _0x103491={'eventID':_0x3715c9['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x3828e2(0x1d2)](_0x103491,this[_0x3828e2(0x1d9)]);}[_0x316f94(0x1ac)](){const _0x3aa701=_0x316f94;this[_0x3aa701(0x187)]=null,this['_status']!==G[_0x3aa701(0x1eb)]&&this[_0x3aa701(0x17a)]();}[_0x316f94(0x1fa)](_0x500dfc){const _0x7da05b=_0x316f94;if(this[_0x7da05b(0x199)]===G[_0x7da05b(0x20d)]&&this[_0x7da05b(0x187)]===_0x500dfc[_0x7da05b(0x17b)]['memberID']){let _0x43f5a3=_0x1ff61d(_0x500dfc[_0x7da05b(0x17b)])[_0x7da05b(0x1f3)][_0x7da05b(0x1aa)]()[_0x7da05b(0x1a7)](_0x29521f=>_0x29521f['id']===_0x28332a['id']);if(_0x43f5a3){let _0x1be8f9=_0x43f5a3[_0x7da05b(0x1cf)][_0x7da05b(0x1a0)],_0xff2700=_0x43f5a3[_0x7da05b(0x1cf)][_0x7da05b(0x1df)]['id'];setTimeout(()=>{const _0x4f7788=_0x7da05b;this[_0x4f7788(0x195)][_0x4f7788(0x1f5)](_0x1ff449['id'],{'unitId':_0x1be8f9,'subUnitId':_0xff2700},{'fromCollab':!0x0});});}}}[_0x316f94(0x194)](){const _0x2ec733=_0x316f94;this[_0x2ec733(0x1b3)][_0x2ec733(0x1cd)](G[_0x2ec733(0x1eb)]);let _0x3a122d=new Map(),_0x172690=this[_0x2ec733(0x1e6)]=new _0x5adea4();_0x172690[_0x2ec733(0x1d0)](_0x45b351(()=>{const _0x4e09f0=_0x2ec733;_0x3a122d[_0x4e09f0(0x1ad)](_0x284dac=>_0x284dac['complete']()),_0x3a122d[_0x4e09f0(0x1ab)]();})),_0x172690[_0x2ec733(0x1d0)](this[_0x2ec733(0x195)][_0x2ec733(0x1a8)](_0x468d9e=>{const _0x476cba=_0x2ec733;if(_0x468d9e[_0x476cba(0x193)]!==_0x59b2d3[_0x476cba(0x1a9)]||!this[_0x476cba(0x178)][_0x476cba(0x1c8)](_0x468d9e['id']))return;let {id:_0xb9dc9}=_0x468d9e,_0x478df3;if(_0x3a122d[_0x476cba(0x205)](_0xb9dc9))_0x478df3=_0x3a122d['get'](_0xb9dc9);else{var _0x25df4b;_0x478df3=new _0x14ff59(),_0x3a122d[_0x476cba(0x203)](_0xb9dc9,_0x478df3),_0x478df3[_0x476cba(0x1ef)](_0x16df4d((_0x25df4b=this[_0x476cba(0x1d1)][_0x476cba(0x19f)](_0x476cba(0x197)))==null?0xc8:_0x25df4b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x476cba(0x207)](_0xb5fc86=>{const _0x201a01=_0x476cba;this[_0x201a01(0x1e9)][_0x201a01(0x1d2)]({'eventID':_0x3715c9[_0x201a01(0x1bc)],'data':{'unitID':this[_0x201a01(0x1d9)],'operations':{[_0xb5fc86['id']]:{'id':_0xb5fc86['id'],'params':JSON[_0x201a01(0x1b4)](_0xb5fc86['params'])}}}},this['_unitID']);});}_0x478df3[_0x476cba(0x1cd)](_0x468d9e);})),this[_0x2ec733(0x178)][_0x2ec733(0x1e5)](this['_unitID'])[_0x2ec733(0x1ad)](_0x471a72=>this[_0x2ec733(0x1e9)][_0x2ec733(0x1d2)]({'eventID':_0x3715c9[_0x2ec733(0x1bc)],'data':{'unitID':this[_0x2ec733(0x1d9)],'operations':{[_0x471a72['id']]:{'id':_0x471a72['id'],'params':JSON['stringify'](_0x471a72[_0x2ec733(0x1cf)])}}}},this[_0x2ec733(0x1d9)]));}[_0x316f94(0x1ff)](){const _0xa0307b=_0x316f94;var _0x17a87c;this[_0xa0307b(0x1b3)][_0xa0307b(0x1cd)](G[_0xa0307b(0x1b8)]),(_0x17a87c=this[_0xa0307b(0x1e6)])==null||_0x17a87c['dispose'](),this['_commandDisposable']=null;}[_0x316f94(0x1f2)](){const _0x206ece=_0x316f94;var _0x3c982a;(_0x3c982a=this[_0x206ece(0x1e6)])==null||_0x3c982a['dispose'](),this[_0x206ece(0x1b3)][_0x206ece(0x1cd)](G[_0x206ece(0x20d)]);}['_beIdle'](){const _0x853f50=_0x316f94;var _0x226aa3;this[_0x853f50(0x1b3)][_0x853f50(0x1cd)](G['IDLE']),(_0x226aa3=this['_commandDisposable'])==null||_0x226aa3[_0x853f50(0x1d5)](),this['_commandDisposable']=null;}[_0x316f94(0x1d8)](){const _0x5426a5=_0x316f94;var _0x42d82d;this['_status$'][_0x5426a5(0x1cd)](G[_0x5426a5(0x1f4)]),(_0x42d82d=this[_0x5426a5(0x1e6)])==null||_0x42d82d[_0x5426a5(0x1d5)]();}[_0x316f94(0x17d)](_0x3d43bb){const _0x4c8522=_0x316f94;if([G[_0x4c8522(0x1eb)],G['NOT_FOLLOWING'],G[_0x4c8522(0x1a1)]][_0x4c8522(0x1fe)](this[_0x4c8522(0x199)])||!_0x3d43bb[_0x4c8522(0x17b)][_0x4c8522(0x184)]||_0x3d43bb[_0x4c8522(0x17b)]['presenter']===this[_0x4c8522(0x1e9)]['getMemberID']())return;this[_0x4c8522(0x199)]===G[_0x4c8522(0x1b8)]&&this['_startFollowing']();let _0x54e36e=_0x3d43bb[_0x4c8522(0x17b)][_0x4c8522(0x1d7)];Object[_0x4c8522(0x1e7)](_0x54e36e)['forEach'](_0x15ab33=>{const _0x7f8e9=_0x4c8522;this[_0x7f8e9(0x195)][_0x7f8e9(0x1f5)](_0x15ab33['id'],_0x15ab33['params']?JSON[_0x7f8e9(0x1f6)](_0x15ab33[_0x7f8e9(0x1cf)]):null,{'fromCollab':!0x0});});}[_0x316f94(0x1b9)](){const _0x31efba=_0x316f94;var _0x46d91c;this[_0x31efba(0x1b3)][_0x31efba(0x1cd)](G[_0x31efba(0x1a1)]),(_0x46d91c=this[_0x31efba(0x1e6)])==null||_0x46d91c[_0x31efba(0x1d5)]();}[_0x316f94(0x1cb)](){const _0x3e724e=_0x316f94;this[_0x3e724e(0x1b3)]['next'](G[_0x3e724e(0x1b8)]),this[_0x3e724e(0x1f9)]();}};K=U([H(0x2,_0x557f50),H(0x3,_0x46b23b(V)),H(0x4,_0x41335f)],K);function q(){const _0x1a3a30=_0x316f94;let _0x189140=_0x32da5a(W),_0x4f313d=_0x32da5a(_0x3302a5),_0x383157=_0x3ea909(()=>_0x4f313d[_0x1a3a30(0x1b1)](_0x3134e5[_0x1a3a30(0x1fb)]),void 0x0,!0x1,[]),[_0x337bc9,_0xcc684c]=_0x3be037(null),[_0x228ee7,_0x16b755]=_0x3be037(G['IDLE']),_0x487fe9=_0x4a2319(null);return _0x2f1cba(()=>(_0x383157&&_0x189140[_0x1a3a30(0x1a3)](_0x383157[_0x1a3a30(0x18a)]())[_0x1a3a30(0x208)](_0x610749=>{const _0x394d16=_0x1a3a30;_0xcc684c(_0x610749),_0x487fe9[_0x394d16(0x1b6)]=_0x610749['status$'][_0x394d16(0x207)](_0x2c4feb=>{_0x16b755(_0x2c4feb);});}),()=>{const _0x2c5187=_0x1a3a30;var _0x1e14cc;(_0x1e14cc=_0x487fe9[_0x2c5187(0x1b6)])==null||_0x1e14cc[_0x2c5187(0x204)](),_0x487fe9['current']=null;}),[_0x383157,_0x189140]),_0x337bc9?_0x509609(_0x4cb2f3,{'align':'end','disabled':_0x228ee7===G[_0x1a3a30(0x1a1)],'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':_0x509609(ce,{'status':_0x228ee7,'coordinator':_0x337bc9}),'children':_0x509609(_0x1a3a30(0x1dc),{'className':_0x3a1867(_0x1a3a30(0x19e),{'univer-cursor-not-allowed':_0x228ee7===G['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x228ee7!==G['OFFLINE']}),'type':_0x1a3a30(0x1dc),'children':_0x509609(_0x3a9d6e,{'className':'univer-size-4'})})}):null;}function ce(_0x355703){const _0x39a89e=_0x316f94;let {status:_0x1e69d0,coordinator:_0x47d057}=_0x355703;switch(_0x1e69d0){case G[_0x39a89e(0x1b8)]:return _0x509609(le,{'coordinator':_0x47d057});case G[_0x39a89e(0x20d)]:return _0x509609(ue,{'coordinator':_0x47d057});case G[_0x39a89e(0x1f4)]:return _0x509609(de,{'coordinator':_0x47d057});case G[_0x39a89e(0x1a1)]:return _0x509609(fe,{});case G[_0x39a89e(0x1eb)]:return _0x509609(J,{'coordinator':_0x47d057});default:return null;}}function _0xb49f(){const _0x49a4c1=['has','onRendered','subscribe','then','_uiPartsService','get','275249lFqEgL','Start\x20following','FOLLOWING','_mountLiveShare','idle','status$','_liveShareService','_handleNewHost','_beIdle','data','presenting','_handleOperation','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','registerInitialStateReporter','stopPresenting','_startLiveShareCoordinator','getTypeOfUnitDisposed$','presenter','div','@univerjs-pro/live-share','_presenter','0.20.1','getValue','getUnitId','setConfig','4IepavN','ONLINE','You\x27are\x20offline.','getMemberID','onStarting','override','You\x27re\x20not\x20following\x20the\x20presenter','type','_startPresenting','_commandService','registerComponent','SAME_OPERATION_SHARE_INTERVAL','6243396qBhOqU','_status','HEADER_MENU','following','Start','_entities','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getConfig','unitId','OFFLINE','dispose$','getLiveShareCoordinator','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','default','find','onCommandExecuted','OPERATION','reverse','clear','_handleTerminate','forEach','symbol','LIVESHARE_REQUEST_HOST','live-share.config','getCurrentTypeOfUnit$','startFollowing','_status$','stringify','_sharedOperations','current','iterator','IDLE','_handleOffline','defineProperty','_collabSessionService','LIVESHARE_OPERATION','disposeWithMe','544582xOceXG','UNIVER_LIVE_SHARE_PLUGIN','object','version','packageName','UNIVER_UNKNOWN','_config','Stop\x20presenting','You\x27re\x20presenting\x20the\x20document','sessionStatus$','shouldShareOperation','delete','_injector','_handleOnline','createInstance','next','init','params','add','_configService','send','11210nMJkVv','call','dispose','_reporters','operations','_stopFollowing','_unitID','_univerInstanceService','length','button','text','12951oyRGuS','sheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','10442280Mwbzrw','function','tryStartPresenting','4946655YRvdgb','getInitialStates','_commandDisposable','values','9HfeRAq','_collabSession','decorate','PRESENTING','stopFollowing','asObservable','prototype','pipe','getOwnPropertyDescriptor','string','_startFollowing','mutations','NOT_FOLLOWING','executeCommand','parse','_init','5395165UhwbDT','_fetchOperations','_handleNewChangeSets','UNIVER_SHEET','not-following','registerSharedOperation','includes','_stopPresenting','Stop\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','set','unsubscribe'];_0xb49f=function(){return _0x49a4c1;};return _0xb49f();}function le(_0xa7aaf6){const _0x5b2926=_0x316f94;let {coordinator:_0x18b3a0}=_0xa7aaf6;return _0x227845(_0x501d46,{'children':[_0x509609(_0x5b2926(0x185),{'className':_0x5b2926(0x201),'children':'Present\x20this\x20document'}),_0x509609(_0x4f7ec0,{'onClick':()=>_0x18b3a0[_0x5b2926(0x1e3)](),'children':_0x5b2926(0x19c)})]});}function ue(_0x52238a){const _0x321933=_0x316f94;let {coordinator:_0x2f8d60}=_0x52238a;return _0x227845(_0x501d46,{'children':[_0x509609(_0x321933(0x185),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x321933(0x17e)}),_0x509609(_0x4f7ec0,{'onClick':()=>_0x2f8d60[_0x321933(0x1ec)](),'children':_0x321933(0x200)})]});}function de(_0x273cf4){const _0x88b058=_0x316f94;let {coordinator:_0xd99e2d}=_0x273cf4;return _0x227845(_0x501d46,{'children':[_0x509609(_0x88b058(0x185),{'className':_0x88b058(0x201),'children':_0x88b058(0x192)}),_0x509609(_0x4f7ec0,{'variant':_0x88b058(0x1dd),'onClick':()=>_0xd99e2d[_0x88b058(0x1b2)](),'children':_0x88b058(0x20c)})]});}function J(_0x1fbc3d){const _0x2c0bf3=_0x316f94;let {coordinator:_0x4fa7f0}=_0x1fbc3d;return _0x227845(_0x501d46,{'children':[_0x509609(_0x2c0bf3(0x185),{'className':_0x2c0bf3(0x201),'children':_0x2c0bf3(0x1c6)}),_0x509609(_0x4f7ec0,{'variant':_0x2c0bf3(0x1a6),'onClick':()=>_0x4fa7f0[_0x2c0bf3(0x181)](),'children':_0x2c0bf3(0x1c5)})]});}function fe(){const _0x466b41=_0x316f94;return _0x509609(_0x501d46,{'children':_0x466b41(0x18e)});}let Y=class extends _0x2adf71{constructor(_0x352caf,_0x3d6cec){const _0xb675b1=_0x316f94;super(),this[_0xb675b1(0x1ca)]=_0x352caf,this[_0xb675b1(0x209)]=_0x3d6cec,this[_0xb675b1(0x20e)]();}[_0x316f94(0x20e)](){const _0x5cc56f=_0x316f94;this[_0x5cc56f(0x1bd)](this[_0x5cc56f(0x209)][_0x5cc56f(0x196)](_0x25173b[_0x5cc56f(0x19a)],()=>_0x4f41a9(q,this['_injector'])));}};Y=U([H(0x0,_0x46b23b(_0x1d072d)),H(0x1,_0x3b40e4)],Y);function _0x5391(_0x32d12b,_0x12e4cb){_0x32d12b=_0x32d12b-0x177;const _0xb49f3d=_0xb49f();let _0x539147=_0xb49f3d[_0x32d12b];return _0x539147;}var pe=_0x316f94(0x186),me=_0x316f94(0x188);const X=_0x316f94(0x1b0);Symbol(X);const Z={};let Q=class extends _0x2adf71{constructor(_0xe4578c){const _0xb1eb52=_0x316f94;super(),this[_0xb1eb52(0x178)]=_0xe4578c,this['_init']();}[_0x316f94(0x1f7)](){const _0x8bc95a=_0x316f94;[_0xefcc16['id'],_0x160a49['id'],_0x1ff449['id']][_0x8bc95a(0x1ad)](_0x9c10ee=>{const _0x31eb6b=_0x8bc95a;this[_0x31eb6b(0x1bd)](this['_liveShareService'][_0x31eb6b(0x1fd)](_0x9c10ee));});}};Q=U([H(0x0,_0x46b23b(V))],Q);let $=class extends _0x48ed37{constructor(_0x3b223f=Z,_0x31863f,_0x9f6c75){const _0x2c7af5=_0x316f94;super(),this[_0x2c7af5(0x1c4)]=_0x3b223f,this[_0x2c7af5(0x1ca)]=_0x31863f,this['_configService']=_0x9f6c75;let {..._0x3e1fc8}=_0x2e2be3({},Z,this['_config']);this[_0x2c7af5(0x1d1)][_0x2c7af5(0x18b)](X,_0x3e1fc8);}[_0x316f94(0x190)](){const _0x35b826=_0x316f94;_0x581342(this['_injector'],_0x3d81e7([[V],[W],[Q],[Y]],this[_0x35b826(0x1c4)][_0x35b826(0x191)])),_0x52a28d(this['_injector'],[[Q]]);}[_0x316f94(0x206)](){const _0x1f5c2b=_0x316f94;_0x52a28d(this[_0x1f5c2b(0x1ca)],[[Y]]);}};B($,'type',_0x3134e5[_0x316f94(0x1c3)]),B($,'pluginName',_0x316f94(0x1bf)),B($,_0x316f94(0x1c2),pe),B($,_0x316f94(0x1c1),me),$=U([_0x4a35d8(_0x42f673),H(0x1,_0x46b23b(_0x1d072d)),H(0x2,_0x557f50)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x19d952=_0x5d5e;(function(_0x4e7718,_0x535366){const _0x1aba27=_0x5d5e,_0x2bf278=_0x4e7718();while(!![]){try{const _0x4538e9=-parseInt(_0x1aba27(0x134))/0x1*(parseInt(_0x1aba27(0x121))/0x2)+parseInt(_0x1aba27(0x132))/0x3*(parseInt(_0x1aba27(0x130))/0x4)+parseInt(_0x1aba27(0x120))/0x5+parseInt(_0x1aba27(0x12e))/0x6*(parseInt(_0x1aba27(0x129))/0x7)+-parseInt(_0x1aba27(0x137))/0x8+-parseInt(_0x1aba27(0x142))/0x9*(parseInt(_0x1aba27(0x13c))/0xa)+-parseInt(_0x1aba27(0x12a))/0xb*(-parseInt(_0x1aba27(0x122))/0xc);if(_0x4538e9===_0x535366)break;else _0x2bf278['push'](_0x2bf278['shift']());}catch(_0x558d84){_0x2bf278['push'](_0x2bf278['shift']());}}}(_0x2d45,0x71f74));import{LiveShareController as _0x53265f,LiveShareStatus as _0x3a2521}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x56883f,UniverInstanceType as _0x2cba1b}from'@univerjs/core';import{FEnum as _0x1e05d3,FUniver as _0x30cdf0}from'@univerjs/core/facade';function o(_0x39b155){'@babel/helpers - typeof';const _0xfa74f5=_0x5d5e;return o=typeof Symbol==_0xfa74f5(0x124)&&typeof Symbol[_0xfa74f5(0x135)]==_0xfa74f5(0x140)?function(_0x5841d7){return typeof _0x5841d7;}:function(_0x3e0af4){const _0x2c235f=_0xfa74f5;return _0x3e0af4&&typeof Symbol==_0x2c235f(0x124)&&_0x3e0af4[_0x2c235f(0x13d)]===Symbol&&_0x3e0af4!==Symbol[_0x2c235f(0x131)]?_0x2c235f(0x140):typeof _0x3e0af4;},o(_0x39b155);}function s(_0x5b8c0e,_0x10c053){const _0x366ad0=_0x5d5e;if(o(_0x5b8c0e)!='object'||!_0x5b8c0e)return _0x5b8c0e;var _0x2cabd7=_0x5b8c0e[Symbol['toPrimitive']];if(_0x2cabd7!==void 0x0){var _0x4cf0ec=_0x2cabd7['call'](_0x5b8c0e,_0x10c053||_0x366ad0(0x125));if(o(_0x4cf0ec)!=_0x366ad0(0x141))return _0x4cf0ec;throw TypeError(_0x366ad0(0x126));}return(_0x10c053==='string'?String:Number)(_0x5b8c0e);}function _0x2d45(){const _0x1ec9da=['88329FxDyjD','No\x20active\x20workbook\x20found.','135406cmXYtq','iterator','getUnitId','5737312ZoJNqF','string','startPresenting','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','4633990ugLfgp','constructor','get','startFollowing','symbol','object','9CyVviY','stopPresenting','tryStartPresenting','_injector','2481120xgzGwV','2MNTirH','5004KyWqwS','IDLE','function','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UNIVER_SHEET','_liveShareController','958391vRPtRL','15103TSysGR','defineProperty','getLiveShareStatus','getLiveShareCoordinatorSync','30buifbI','getCurrentUnitOfType','4UAzdgX','prototype'];_0x2d45=function(){return _0x1ec9da;};return _0x2d45();}function c(_0x8a904c){const _0x49c4d0=_0x5d5e;var _0x55c39f=s(_0x8a904c,_0x49c4d0(0x138));return o(_0x55c39f)=='symbol'?_0x55c39f:_0x55c39f+'';}function l(_0x433aaa,_0x28aecb,_0x35987a){const _0x170c0b=_0x5d5e;return(_0x28aecb=c(_0x28aecb))in _0x433aaa?Object[_0x170c0b(0x12b)](_0x433aaa,_0x28aecb,{'value':_0x35987a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x433aaa[_0x28aecb]=_0x35987a,_0x433aaa;}var u=class extends _0x30cdf0{constructor(..._0x43aa3f){const _0x2841e9=_0x5d5e;super(..._0x43aa3f),l(this,_0x2841e9(0x128),void 0x0);}['_initialize'](_0x2a8068){const _0x9f58d7=_0x5d5e;this[_0x9f58d7(0x128)]=_0x2a8068[_0x9f58d7(0x13e)](_0x53265f);}[_0x19d952(0x12c)](){const _0x4487d5=_0x19d952;var _0x2bd637;let _0x347418=this[_0x4487d5(0x145)][_0x4487d5(0x13e)](_0x56883f)[_0x4487d5(0x12f)](_0x2cba1b[_0x4487d5(0x127)]);if(!_0x347418)throw Error(_0x4487d5(0x133));let _0x3b85f6=_0x347418['getUnitId'](),_0x1878a6=this[_0x4487d5(0x128)][_0x4487d5(0x12d)](_0x3b85f6);return(_0x2bd637=_0x1878a6==null?void 0x0:_0x1878a6['getStatus']())==null?_0x3a2521[_0x4487d5(0x123)]:_0x2bd637;}[_0x19d952(0x13f)](){const _0x3c7015=_0x19d952;let _0x150698=this[_0x3c7015(0x145)][_0x3c7015(0x13e)](_0x56883f)[_0x3c7015(0x12f)](_0x2cba1b[_0x3c7015(0x127)]);if(!_0x150698)throw Error(_0x3c7015(0x133));let _0x19dbc6=_0x150698[_0x3c7015(0x136)](),_0x2b83be=this[_0x3c7015(0x128)][_0x3c7015(0x12d)](_0x19dbc6);if(!_0x2b83be)throw Error(_0x3c7015(0x13b));_0x2b83be['startFollowing']();}['stopFollowing'](){const _0x1ae77f=_0x19d952;let _0x4e1a88=this[_0x1ae77f(0x145)][_0x1ae77f(0x13e)](_0x56883f)[_0x1ae77f(0x12f)](_0x2cba1b[_0x1ae77f(0x127)]);if(!_0x4e1a88)throw Error(_0x1ae77f(0x133));let _0x17d076=_0x4e1a88[_0x1ae77f(0x136)](),_0x5a9125=this[_0x1ae77f(0x128)]['getLiveShareCoordinatorSync'](_0x17d076);if(!_0x5a9125)throw Error(_0x1ae77f(0x13b));_0x5a9125['stopFollowing']();}[_0x19d952(0x139)](){const _0x6e943a=_0x19d952;let _0x4eba19=this[_0x6e943a(0x145)][_0x6e943a(0x13e)](_0x56883f)[_0x6e943a(0x12f)](_0x2cba1b[_0x6e943a(0x127)]);if(!_0x4eba19)throw Error('No\x20active\x20workbook\x20found.');let _0x380547=_0x4eba19['getUnitId'](),_0x37c849=this[_0x6e943a(0x128)]['getLiveShareCoordinatorSync'](_0x380547);if(!_0x37c849)throw Error(_0x6e943a(0x13b));_0x37c849[_0x6e943a(0x144)]();}[_0x19d952(0x143)](){const _0x39264b=_0x19d952;let _0x5b0220=this[_0x39264b(0x145)]['get'](_0x56883f)[_0x39264b(0x12f)](_0x2cba1b[_0x39264b(0x127)]);if(!_0x5b0220)throw Error(_0x39264b(0x133));let _0x3703b4=_0x5b0220['getUnitId'](),_0x439ca0=this[_0x39264b(0x128)][_0x39264b(0x12d)](_0x3703b4);if(!_0x439ca0)throw Error(_0x39264b(0x13b));_0x439ca0[_0x39264b(0x143)]();}};function _0x5d5e(_0x14b006,_0x1a9caa){_0x14b006=_0x14b006-0x120;const _0x2d45ce=_0x2d45();let _0x5d5e11=_0x2d45ce[_0x14b006];return _0x5d5e11;}_0x30cdf0[_0x19d952(0x13a)](u);var d=class extends _0x1e05d3{get['LiveShareStatusEnum'](){return _0x3a2521;}};_0x1e05d3[_0x19d952(0x13a)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3d0128=_0x3a4a;(function(_0x43a5b5,_0x238f87){const _0xdc1a9b=_0x3a4a,_0x196441=_0x43a5b5();while(!![]){try{const _0x5df09c=parseInt(_0xdc1a9b(0xf6))/0x1*(-parseInt(_0xdc1a9b(0x80))/0x2)+parseInt(_0xdc1a9b(0x79))/0x3+parseInt(_0xdc1a9b(0xb8))/0x4*(parseInt(_0xdc1a9b(0xa5))/0x5)+-parseInt(_0xdc1a9b(0xbb))/0x6*(parseInt(_0xdc1a9b(0x91))/0x7)+-parseInt(_0xdc1a9b(0x82))/0x8+-parseInt(_0xdc1a9b(0xbc))/0x9*(-parseInt(_0xdc1a9b(0xb5))/0xa)+-parseInt(_0xdc1a9b(0xff))/0xb*(-parseInt(_0xdc1a9b(0xf9))/0xc);if(_0x5df09c===_0x238f87)break;else _0x196441['push'](_0x196441['shift']());}catch(_0x647a7c){_0x196441['push'](_0x196441['shift']());}}}(_0x81b0,0xbff7e));import{CommandType as _0x1c1f49,DependentOn as _0x121476,Disposable as _0x54ca8c,DisposableCollection as _0x404ec6,ICommandService as _0x3b2faa,IConfigService as _0x4fe3b2,IUniverInstanceService as _0x36b23d,Inject as _0x93af7e,Injector as _0x17532c,Plugin as _0x577139,RxDisposable as _0x408881,UniverInstanceType as _0x484236,merge as _0x589157,mergeOverrideWithDependencies as _0x53db3c,registerDependencies as _0x311905,toDisposable as _0x3dceee,touchDependencies as _0x79afb0}from'@univerjs/core';import{BuiltInUIPart as _0x3e8e0b,IUIPartsService as _0x1eb6e7,connectInjector as _0x599550,useDependency as _0x292703,useObservable as _0x1e2dff}from'@univerjs/ui';import{Button as _0x4db05c,Dropdown as _0x5e92ce,clsx as _0x47db3d}from'@univerjs/design';import{LiveShareIcon as _0x5ed039}from'@univerjs/icons';import{useEffect as _0x5f059a,useRef as _0x923153,useState as _0x225091}from'react';import{CollaborationEvent as _0x36485c,parseProtocolChangeset as _0x302b6c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4e85bc,SessionStatus as _0x275f26,UniverCollaborationClientPlugin as _0xdc6e53}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x56fac8,SetWorksheetActiveOperation as _0x123026}from'@univerjs/sheets';import{BehaviorSubject as _0x4b568d,Subject as _0x1c4306}from'rxjs';import{takeUntil as _0x28704d,throttleTime as _0x3b0ab9}from'rxjs/operators';import{Fragment as _0x34cc85,jsx as _0x150cba,jsxs as _0x3a8fe6}from'react/jsx-runtime';import{SetScrollOperation as _0x576ee1,SetZoomRatioOperation as _0x52bfd1}from'@univerjs/sheets-ui';function L(_0x2f047e){'@babel/helpers - typeof';const _0x12c7ff=_0x3a4a;return L=typeof Symbol==_0x12c7ff(0xa3)&&typeof Symbol[_0x12c7ff(0xd5)]==_0x12c7ff(0xd8)?function(_0xf0ec1){return typeof _0xf0ec1;}:function(_0x182424){const _0x430bad=_0x12c7ff;return _0x182424&&typeof Symbol==_0x430bad(0xa3)&&_0x182424['constructor']===Symbol&&_0x182424!==Symbol[_0x430bad(0x92)]?_0x430bad(0xd8):typeof _0x182424;},L(_0x2f047e);}function R(_0x112890,_0x1b9a47){const _0x193153=_0x3a4a;if(L(_0x112890)!=_0x193153(0xdf)||!_0x112890)return _0x112890;var _0x370916=_0x112890[Symbol[_0x193153(0xdb)]];if(_0x370916!==void 0x0){var _0x267eea=_0x370916[_0x193153(0x97)](_0x112890,_0x1b9a47||_0x193153(0x98));if(L(_0x267eea)!=_0x193153(0xdf))return _0x267eea;throw TypeError(_0x193153(0x71));}return(_0x1b9a47===_0x193153(0x7d)?String:Number)(_0x112890);}function z(_0x5399ff){const _0x1bbe8a=_0x3a4a;var _0x116650=R(_0x5399ff,_0x1bbe8a(0x7d));return L(_0x116650)==_0x1bbe8a(0xd8)?_0x116650:_0x116650+'';}function B(_0x4a1412,_0x4a6154,_0x467bac){const _0x2e990d=_0x3a4a;return(_0x4a6154=z(_0x4a6154))in _0x4a1412?Object[_0x2e990d(0xb3)](_0x4a1412,_0x4a6154,{'value':_0x467bac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a1412[_0x4a6154]=_0x467bac,_0x4a1412;}var V=class extends _0x54ca8c{constructor(..._0x52fdb3){const _0x1a8e40=_0x3a4a;super(..._0x52fdb3),B(this,_0x1a8e40(0x78),new Set()),B(this,'_reporters',new Set());}[_0x3d0128(0xfa)](_0x3a657f){const _0x159b27=_0x3d0128;return this[_0x159b27(0x78)]['add'](_0x3a657f),_0x3dceee(()=>this[_0x159b27(0x78)][_0x159b27(0xa9)](_0x3a657f));}[_0x3d0128(0xe7)](_0x3aa66d){const _0x372e68=_0x3d0128;return this[_0x372e68(0xf3)][_0x372e68(0xfc)](_0x3aa66d),_0x3dceee(()=>this['_reporters'][_0x372e68(0xa9)](_0x3aa66d));}[_0x3d0128(0x9d)](_0x23358c){const _0x33c152=_0x3d0128;return this[_0x33c152(0x78)][_0x33c152(0xf8)](_0x23358c);}[_0x3d0128(0xd1)](_0x103688){const _0x2859f7=_0x3d0128;return Array[_0x2859f7(0xac)](this['_reporters'])[_0x2859f7(0xd6)](_0x18007d=>_0x18007d(_0x103688));}};function H(_0x14b0a8,_0x2c0dbb){return function(_0x124495,_0x3bdf65){_0x2c0dbb(_0x124495,_0x3bdf65,_0x14b0a8);};}function U(_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa){const _0x2f2adf=_0x3d0128;var _0x16c969=arguments[_0x2f2adf(0x8e)],_0x3a41db=_0x16c969<0x3?_0x1af238:_0x1412fa===null?_0x1412fa=Object[_0x2f2adf(0x101)](_0x1af238,_0x2cb87b):_0x1412fa,_0x447519;if(typeof Reflect==_0x2f2adf(0xdf)&&typeof Reflect[_0x2f2adf(0xc4)]==_0x2f2adf(0xa3))_0x3a41db=Reflect['decorate'](_0x3bcbfb,_0x1af238,_0x2cb87b,_0x1412fa);else{for(var _0x411c36=_0x3bcbfb['length']-0x1;_0x411c36>=0x0;_0x411c36--)(_0x447519=_0x3bcbfb[_0x411c36])&&(_0x3a41db=(_0x16c969<0x3?_0x447519(_0x3a41db):_0x16c969>0x3?_0x447519(_0x1af238,_0x2cb87b,_0x3a41db):_0x447519(_0x1af238,_0x2cb87b))||_0x3a41db);}return _0x16c969>0x3&&_0x3a41db&&Object['defineProperty'](_0x1af238,_0x2cb87b,_0x3a41db),_0x3a41db;}let W=class extends _0x408881{constructor(_0x52c037,_0x45e154,_0x54214d){const _0x4a7d37=_0x3d0128;super(),this[_0x4a7d37(0x8f)]=_0x52c037,this['_injector']=_0x45e154,this[_0x4a7d37(0x99)]=_0x54214d,B(this,_0x4a7d37(0xe8),new Map()),this[_0x4a7d37(0xa0)]();}async[_0x3d0128(0xfb)](_0x363793){const _0x5c80cc=_0x3d0128;return this[_0x5c80cc(0xe8)][_0x5c80cc(0xf8)](_0x363793)||await this['_startLiveShareCoordinator'](_0x363793),this[_0x5c80cc(0xe8)][_0x5c80cc(0xc3)](_0x363793);}[_0x3d0128(0x75)](_0x39e9c3){const _0x548768=_0x3d0128;var _0x2cd567;return(_0x2cd567=this[_0x548768(0xe8)]['get'](_0x39e9c3))==null?null:_0x2cd567;}[_0x3d0128(0xa0)](){const _0x110d41=_0x3d0128;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x484236[_0x110d41(0x100)])['pipe'](_0x28704d(this[_0x110d41(0xca)]))['subscribe'](async _0x207c03=>{const _0x57210f=_0x110d41;let _0x46b0d3=_0x207c03[_0x57210f(0x85)]();this[_0x57210f(0xe8)][_0x57210f(0xf8)](_0x46b0d3)||this['_startLiveShareCoordinator'](_0x46b0d3);}),this[_0x110d41(0x8f)][_0x110d41(0xfd)](_0x484236['UNIVER_SHEET'])[_0x110d41(0xbe)](_0x28704d(this[_0x110d41(0xca)]))[_0x110d41(0x94)](_0x324c12=>{const _0x49669b=_0x110d41;let _0x304b9f=_0x324c12['getUnitId'](),_0x5b2e61=this[_0x49669b(0xe8)][_0x49669b(0xc3)](_0x304b9f);_0x5b2e61==null||_0x5b2e61[_0x49669b(0x74)]();});}async['_startLiveShareCoordinator'](_0x23614f){const _0x109eb9=_0x3d0128;let _0x4a76ec=await this[_0x109eb9(0x99)][_0x109eb9(0xb1)](_0x23614f),_0x2105a5=this[_0x109eb9(0xf0)][_0x109eb9(0x8a)](K,_0x23614f,_0x4a76ec);return _0x2105a5[_0x109eb9(0x95)](),this[_0x109eb9(0xe8)][_0x109eb9(0x96)](_0x23614f,_0x2105a5),_0x2105a5;}};W=U([H(0x0,_0x36b23d),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x93af7e(_0x4e85bc))],W);function _0x81b0(){const _0x5be810=['send','_reporters','current','_handleTerminate','1pdEKrH','IDLE','has','5528052TYVqzh','registerSharedOperation','getLiveShareCoordinator','add','getTypeOfUnitDisposed$','_handleNewHost','55LIfkKt','UNIVER_SHEET','getOwnPropertyDescriptor','reverse','LIVESHARE_REQUEST_HOST','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status','LIVESHARE_NEW_HOST','dispose','getLiveShareCoordinatorSync','FOLLOWING','_configService','_sharedOperations','2360313zakbqk','event$','version','_status$','string','status$','tryStartPresenting','2799436xQCGvw','onRendered','12045232HRpldi','OFFLINE','live-share.config','getUnitId','PRESENTING','UNIVER_UNKNOWN','_stopFollowing','not-following','createInstance','next','LIVESHARE_FETCH_OPERATIONS','_handleOnline','length','_univerInstanceService','Stop\x20following','1189972yYxiKS','prototype','_uiPartsService','subscribe','init','set','call','default','_collabSessionService','includes','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20not\x20following\x20the\x20presenter','shouldShareOperation','then','_config','_init','LIVESHARE_OPERATION','find','function','You\x27re\x20following\x20the\x20presenter','5ClSwHt','presenting','packageName','type','delete','registerComponent','div','from','getValue','HEADER_MENU','pluginName','idle','requireSession','getMemberID','defineProperty','_collabSession','350mkMyBH','stopPresenting','Stop\x20presenting','4259820spcdzA','You\x27are\x20offline.','executeCommand','42yPvXcN','186831HUjXLe','_commandService','pipe','stopFollowing','text','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','asObservable','get','decorate','sessionStatus$','following','params','override','data','dispose$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','parse','_commandDisposable','_handleOperation','getInitialStates','getCurrentTypeOfUnit$','setConfig','startFollowing','iterator','map','UNIVER_LIVE_SHARE_PLUGIN','symbol','stringify','_unitID','toPrimitive','NOT_FOLLOWING','univer-size-4','disposeWithMe','object','sheet','_presenter','memberID','_beIdle','_startPresenting','unsubscribe','_mountLiveShare','registerInitialStateReporter','_entities','forEach','_liveShareService','_handleNewChangeSets','complete','clear','onCommandExecuted','_stopPresenting','_injector','_startFollowing'];_0x81b0=function(){return _0x5be810;};return _0x81b0();}let G=function(_0x13a00e){const _0x7a83c5=_0x3d0128;return _0x13a00e[_0x7a83c5(0x83)]='offline',_0x13a00e[_0x7a83c5(0xf7)]=_0x7a83c5(0xb0),_0x13a00e[_0x7a83c5(0x76)]=_0x7a83c5(0xc6),_0x13a00e[_0x7a83c5(0xdc)]=_0x7a83c5(0x89),_0x13a00e[_0x7a83c5(0x86)]=_0x7a83c5(0xa6),_0x13a00e;}({}),K=class extends _0x408881{get[_0x3d0128(0x72)](){const _0x2ee48d=_0x3d0128;return this[_0x2ee48d(0x7c)][_0x2ee48d(0xad)]();}constructor(_0x142275,_0x15e2b2,_0x2ecf9e,_0xb9df78,_0x20b199){const _0x207624=_0x3d0128;super(),this['_unitID']=_0x142275,this[_0x207624(0xb4)]=_0x15e2b2,this[_0x207624(0x77)]=_0x2ecf9e,this[_0x207624(0xea)]=_0xb9df78,this[_0x207624(0xbd)]=_0x20b199,B(this,_0x207624(0x7c),new _0x4b568d(G['IDLE'])),B(this,_0x207624(0x7e),this[_0x207624(0x7c)][_0x207624(0xc2)]()),B(this,_0x207624(0xa0),!0x1),B(this,_0x207624(0xcf),null),B(this,_0x207624(0xe1),null);}[_0x3d0128(0x74)](){const _0x36e95b=_0x3d0128;var _0x149582;(_0x149582=this[_0x36e95b(0xcf)])==null||_0x149582[_0x36e95b(0x74)](),this[_0x36e95b(0x7c)][_0x36e95b(0x8b)](G[_0x36e95b(0xf7)]),this[_0x36e95b(0x7c)][_0x36e95b(0xec)]();}['getStatus'](){const _0x24aa55=_0x3d0128;return this[_0x24aa55(0x72)];}['init'](){const _0x29ad10=_0x3d0128;this[_0x29ad10(0xa0)]||(this[_0x29ad10(0xa0)]=!0x0,this[_0x29ad10(0xb4)][_0x29ad10(0xc5)]['pipe'](_0x28704d(this[_0x29ad10(0xca)]))[_0x29ad10(0x94)](_0x113580=>{const _0x1279bc=_0x29ad10;switch(_0x113580){case _0x275f26[_0x1279bc(0x83)]:this['_handleOffline']();break;case _0x275f26['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x29ad10(0xb4)][_0x29ad10(0x7a)][_0x29ad10(0xbe)](_0x28704d(this['dispose$']))['subscribe'](_0xa8475b=>{const _0xb4ba09=_0x29ad10;let {eventID:_0x44c13b}=_0xa8475b;switch(_0x44c13b){case _0x36485c[_0xb4ba09(0x73)]:this[_0xb4ba09(0xfe)](_0xa8475b);break;case _0x36485c[_0xb4ba09(0xa1)]:this[_0xb4ba09(0xd0)](_0xa8475b);break;case _0x36485c['LIVESHARE_TERMINATE']:this[_0xb4ba09(0xf5)]();break;case _0x36485c['NEW_CHANGESETS']:this[_0xb4ba09(0xeb)](_0xa8475b);break;default:}}));}['tryStartPresenting'](){const _0x43fbfd=_0x3d0128;this[_0x43fbfd(0xb4)][_0x43fbfd(0xf2)]({'eventID':_0x36485c[_0x43fbfd(0x103)],'data':{'unitID':this['_unitID'],'userID':this[_0x43fbfd(0xb4)]['getMemberID']()}},this[_0x43fbfd(0xda)]);}[_0x3d0128(0xb6)](){const _0x13ef84=_0x3d0128;this['_status']===G[_0x13ef84(0x86)]&&(this[_0x13ef84(0x7c)][_0x13ef84(0x8b)](G[_0x13ef84(0xf7)]),this[_0x13ef84(0xb4)]['send']({'eventID':_0x36485c['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x13ef84(0xda)]}},this['_unitID']));}[_0x3d0128(0xd4)](){const _0x1b3c8b=_0x3d0128;this[_0x1b3c8b(0x72)]===G[_0x1b3c8b(0xdc)]&&(this[_0x1b3c8b(0x7c)]['next'](G[_0x1b3c8b(0x76)]),this[_0x1b3c8b(0xf1)]());}['stopFollowing'](){const _0x5607f2=_0x3d0128;this['_status']===G[_0x5607f2(0x76)]&&this[_0x5607f2(0x88)]();}[_0x3d0128(0xfe)](_0x218c2f){const _0x36bc2f=_0x3d0128;let {presenter:_0xb31db8}=_0x218c2f[_0x36bc2f(0xc9)],_0x280f22=this['_collabSession'][_0x36bc2f(0xb2)]();this[_0x36bc2f(0xe1)]=_0xb31db8,_0xb31db8===_0x280f22?(this[_0x36bc2f(0x88)](),this[_0x36bc2f(0xe4)]()):this['_status']!==G[_0x36bc2f(0xdc)]&&(this[_0x36bc2f(0xef)](),this[_0x36bc2f(0xf1)]());}['_fetchOperations'](){const _0x40b24b=_0x3d0128;let _0x2a82c6={'eventID':_0x36485c[_0x40b24b(0x8c)]};this[_0x40b24b(0xb4)]['send'](_0x2a82c6,this[_0x40b24b(0xda)]);}[_0x3d0128(0xf5)](){const _0x2683ff=_0x3d0128;this['_presenter']=null,this[_0x2683ff(0x72)]!==G[_0x2683ff(0x86)]&&this[_0x2683ff(0xe3)]();}[_0x3d0128(0xeb)](_0x49c559){const _0x40f4a6=_0x3d0128;if(this[_0x40f4a6(0x72)]===G[_0x40f4a6(0x76)]&&this[_0x40f4a6(0xe1)]===_0x49c559[_0x40f4a6(0xc9)][_0x40f4a6(0xe2)]){let _0x489a8f=_0x302b6c(_0x49c559[_0x40f4a6(0xc9)])['mutations'][_0x40f4a6(0x102)]()[_0x40f4a6(0xa2)](_0x12c736=>_0x12c736['id']===_0x56fac8['id']);if(_0x489a8f){let _0x4663d2=_0x489a8f[_0x40f4a6(0xc7)]['unitId'],_0x4df101=_0x489a8f['params'][_0x40f4a6(0xe0)]['id'];setTimeout(()=>{const _0x3242a1=_0x40f4a6;this[_0x3242a1(0xbd)]['executeCommand'](_0x123026['id'],{'unitId':_0x4663d2,'subUnitId':_0x4df101},{'fromCollab':!0x0});});}}}[_0x3d0128(0xe4)](){const _0xe70f26=_0x3d0128;this[_0xe70f26(0x7c)]['next'](G[_0xe70f26(0x86)]);let _0x2abefb=new Map(),_0x409cdf=this[_0xe70f26(0xcf)]=new _0x404ec6();_0x409cdf[_0xe70f26(0xfc)](_0x3dceee(()=>{const _0x462c94=_0xe70f26;_0x2abefb['forEach'](_0x57e5a9=>_0x57e5a9[_0x462c94(0xec)]()),_0x2abefb[_0x462c94(0xed)]();})),_0x409cdf[_0xe70f26(0xfc)](this['_commandService'][_0xe70f26(0xee)](_0x16f1f2=>{const _0x146a3c=_0xe70f26;if(_0x16f1f2[_0x146a3c(0xa8)]!==_0x1c1f49['OPERATION']||!this[_0x146a3c(0xea)][_0x146a3c(0x9d)](_0x16f1f2['id']))return;let {id:_0x40f0cc}=_0x16f1f2,_0x3d32b6;if(_0x2abefb[_0x146a3c(0xf8)](_0x40f0cc))_0x3d32b6=_0x2abefb[_0x146a3c(0xc3)](_0x40f0cc);else{var _0x4b9047;_0x3d32b6=new _0x1c4306(),_0x2abefb['set'](_0x40f0cc,_0x3d32b6),_0x3d32b6[_0x146a3c(0xbe)](_0x3b0ab9((_0x4b9047=this[_0x146a3c(0x77)]['getConfig'](_0x146a3c(0xcc)))==null?0xc8:_0x4b9047,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x146a3c(0x94)](_0x4e8d24=>{const _0x5b5776=_0x146a3c;this['_collabSession'][_0x5b5776(0xf2)]({'eventID':_0x36485c[_0x5b5776(0xa1)],'data':{'unitID':this[_0x5b5776(0xda)],'operations':{[_0x4e8d24['id']]:{'id':_0x4e8d24['id'],'params':JSON['stringify'](_0x4e8d24[_0x5b5776(0xc7)])}}}},this['_unitID']);});}_0x3d32b6['next'](_0x16f1f2);})),this[_0xe70f26(0xea)][_0xe70f26(0xd1)](this['_unitID'])[_0xe70f26(0xe9)](_0x1f7b11=>this[_0xe70f26(0xb4)][_0xe70f26(0xf2)]({'eventID':_0x36485c[_0xe70f26(0xa1)],'data':{'unitID':this[_0xe70f26(0xda)],'operations':{[_0x1f7b11['id']]:{'id':_0x1f7b11['id'],'params':JSON[_0xe70f26(0xd9)](_0x1f7b11[_0xe70f26(0xc7)])}}}},this[_0xe70f26(0xda)]));}['_stopPresenting'](){const _0x5bfa5a=_0x3d0128;var _0x21e98d;this[_0x5bfa5a(0x7c)]['next'](G[_0x5bfa5a(0xf7)]),(_0x21e98d=this[_0x5bfa5a(0xcf)])==null||_0x21e98d[_0x5bfa5a(0x74)](),this['_commandDisposable']=null;}[_0x3d0128(0xf1)](){const _0x412f6a=_0x3d0128;var _0x4cdc70;(_0x4cdc70=this[_0x412f6a(0xcf)])==null||_0x4cdc70['dispose'](),this[_0x412f6a(0x7c)][_0x412f6a(0x8b)](G[_0x412f6a(0x76)]);}[_0x3d0128(0xe3)](){const _0x59e475=_0x3d0128;var _0x26ea35;this[_0x59e475(0x7c)]['next'](G[_0x59e475(0xf7)]),(_0x26ea35=this[_0x59e475(0xcf)])==null||_0x26ea35[_0x59e475(0x74)](),this[_0x59e475(0xcf)]=null;}['_stopFollowing'](){const _0x2421b1=_0x3d0128;var _0x2e73e0;this['_status$']['next'](G[_0x2421b1(0xdc)]),(_0x2e73e0=this[_0x2421b1(0xcf)])==null||_0x2e73e0['dispose']();}[_0x3d0128(0xd0)](_0x19e6ef){const _0x2bc91a=_0x3d0128;if([G[_0x2bc91a(0x86)],G[_0x2bc91a(0xdc)],G[_0x2bc91a(0x83)]][_0x2bc91a(0x9a)](this[_0x2bc91a(0x72)])||!_0x19e6ef[_0x2bc91a(0xc9)]['presenter']||_0x19e6ef[_0x2bc91a(0xc9)]['presenter']===this[_0x2bc91a(0xb4)]['getMemberID']())return;this[_0x2bc91a(0x72)]===G['IDLE']&&this['_startFollowing']();let _0x2705ce=_0x19e6ef[_0x2bc91a(0xc9)]['operations'];Object['values'](_0x2705ce)[_0x2bc91a(0xe9)](_0x3c48b4=>{const _0x24af84=_0x2bc91a;this[_0x24af84(0xbd)][_0x24af84(0xba)](_0x3c48b4['id'],_0x3c48b4['params']?JSON[_0x24af84(0xce)](_0x3c48b4[_0x24af84(0xc7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1627e1=_0x3d0128;var _0x26d5b8;this[_0x1627e1(0x7c)][_0x1627e1(0x8b)](G[_0x1627e1(0x83)]),(_0x26d5b8=this[_0x1627e1(0xcf)])==null||_0x26d5b8[_0x1627e1(0x74)]();}[_0x3d0128(0x8d)](){const _0x51bac5=_0x3d0128;this[_0x51bac5(0x7c)]['next'](G['IDLE']),this[_0x51bac5(0xcd)]();}};K=U([H(0x2,_0x4fe3b2),H(0x3,_0x93af7e(V)),H(0x4,_0x3b2faa)],K);function q(){const _0x2bb6aa=_0x3d0128;let _0x52359d=_0x292703(W),_0x4f7805=_0x292703(_0x36b23d),_0x305964=_0x1e2dff(()=>_0x4f7805[_0x2bb6aa(0xd2)](_0x484236[_0x2bb6aa(0x100)]),void 0x0,!0x1,[]),[_0x3f91e1,_0x390e0a]=_0x225091(null),[_0x5cad62,_0x23ae23]=_0x225091(G[_0x2bb6aa(0xf7)]),_0x5891b4=_0x923153(null);return _0x5f059a(()=>(_0x305964&&_0x52359d[_0x2bb6aa(0xfb)](_0x305964['getUnitId']())[_0x2bb6aa(0x9e)](_0x3b0e55=>{const _0x2de2b8=_0x2bb6aa;_0x390e0a(_0x3b0e55),_0x5891b4[_0x2de2b8(0xf4)]=_0x3b0e55[_0x2de2b8(0x7e)][_0x2de2b8(0x94)](_0x507292=>{_0x23ae23(_0x507292);});}),()=>{const _0x2268c3=_0x2bb6aa;var _0x2463ff;(_0x2463ff=_0x5891b4[_0x2268c3(0xf4)])==null||_0x2463ff[_0x2268c3(0xe5)](),_0x5891b4[_0x2268c3(0xf4)]=null;}),[_0x305964,_0x52359d]),_0x3f91e1?_0x150cba(_0x5e92ce,{'align':'end','disabled':_0x5cad62===G[_0x2bb6aa(0x83)],'className':_0x2bb6aa(0xcb),'overlay':_0x150cba(ce,{'status':_0x5cad62,'coordinator':_0x3f91e1}),'children':_0x150cba('button',{'className':_0x47db3d(_0x2bb6aa(0xc1),{'univer-cursor-not-allowed':_0x5cad62===G[_0x2bb6aa(0x83)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5cad62!==G[_0x2bb6aa(0x83)]}),'type':'button','children':_0x150cba(_0x5ed039,{'className':_0x2bb6aa(0xdd)})})}):null;}function ce(_0x549910){const _0x422724=_0x3d0128;let {status:_0x215f42,coordinator:_0x47d61d}=_0x549910;switch(_0x215f42){case G[_0x422724(0xf7)]:return _0x150cba(le,{'coordinator':_0x47d61d});case G['FOLLOWING']:return _0x150cba(ue,{'coordinator':_0x47d61d});case G[_0x422724(0xdc)]:return _0x150cba(de,{'coordinator':_0x47d61d});case G[_0x422724(0x83)]:return _0x150cba(fe,{});case G[_0x422724(0x86)]:return _0x150cba(J,{'coordinator':_0x47d61d});default:return null;}}function le(_0x533b25){const _0x42a562=_0x3d0128;let {coordinator:_0x41c01a}=_0x533b25;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x42a562(0xab),{'className':_0x42a562(0x9b),'children':'Present\x20this\x20document'}),_0x150cba(_0x4db05c,{'onClick':()=>_0x41c01a[_0x42a562(0x7f)](),'children':'Start'})]});}function ue(_0x4e8fea){const _0x12554d=_0x3d0128;let {coordinator:_0x1a36c6}=_0x4e8fea;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x12554d(0xab),{'className':_0x12554d(0x9b),'children':_0x12554d(0xa4)}),_0x150cba(_0x4db05c,{'onClick':()=>_0x1a36c6[_0x12554d(0xbf)](),'children':_0x12554d(0x90)})]});}function de(_0x107792){const _0x211c43=_0x3d0128;let {coordinator:_0x2cf9d8}=_0x107792;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba('div',{'className':_0x211c43(0x9b),'children':_0x211c43(0x9c)}),_0x150cba(_0x4db05c,{'variant':_0x211c43(0xc0),'onClick':()=>_0x2cf9d8[_0x211c43(0xd4)](),'children':'Start\x20following'})]});}function J(_0x29e284){const _0x1515a6=_0x3d0128;let {coordinator:_0x34a351}=_0x29e284;return _0x3a8fe6(_0x34cc85,{'children':[_0x150cba(_0x1515a6(0xab),{'className':_0x1515a6(0x9b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x150cba(_0x4db05c,{'variant':_0x1515a6(0x98),'onClick':()=>_0x34a351[_0x1515a6(0xb6)](),'children':_0x1515a6(0xb7)})]});}function fe(){const _0x3934de=_0x3d0128;return _0x150cba(_0x34cc85,{'children':_0x3934de(0xb9)});}let Y=class extends _0x54ca8c{constructor(_0x29bfed,_0x1bef65){const _0x230a90=_0x3d0128;super(),this[_0x230a90(0xf0)]=_0x29bfed,this[_0x230a90(0x93)]=_0x1bef65,this[_0x230a90(0xe6)]();}['_mountLiveShare'](){const _0x5ce18c=_0x3d0128;this['disposeWithMe'](this[_0x5ce18c(0x93)][_0x5ce18c(0xaa)](_0x3e8e0b[_0x5ce18c(0xae)],()=>_0x599550(q,this[_0x5ce18c(0xf0)])));}};Y=U([H(0x0,_0x93af7e(_0x17532c)),H(0x1,_0x1eb6e7)],Y);var pe='@univerjs-pro/live-share',me='0.20.0';const X=_0x3d0128(0x84);Symbol(X);const Z={};let Q=class extends _0x54ca8c{constructor(_0x47c3c9){const _0xbac056=_0x3d0128;super(),this[_0xbac056(0xea)]=_0x47c3c9,this['_init']();}[_0x3d0128(0xa0)](){const _0x222173=_0x3d0128;[_0x52bfd1['id'],_0x576ee1['id'],_0x123026['id']][_0x222173(0xe9)](_0x5d4bd7=>{const _0x37b975=_0x222173;this[_0x37b975(0xde)](this[_0x37b975(0xea)][_0x37b975(0xfa)](_0x5d4bd7));});}};Q=U([H(0x0,_0x93af7e(V))],Q);let $=class extends _0x577139{constructor(_0x395f72=Z,_0x291db0,_0x2be72b){const _0x3ebf18=_0x3d0128;super(),this['_config']=_0x395f72,this[_0x3ebf18(0xf0)]=_0x291db0,this[_0x3ebf18(0x77)]=_0x2be72b;let {..._0x2796ad}=_0x589157({},Z,this[_0x3ebf18(0x9f)]);this[_0x3ebf18(0x77)][_0x3ebf18(0xd3)](X,_0x2796ad);}['onStarting'](){const _0x339618=_0x3d0128;_0x311905(this[_0x339618(0xf0)],_0x53db3c([[V],[W],[Q],[Y]],this[_0x339618(0x9f)][_0x339618(0xc8)])),_0x79afb0(this[_0x339618(0xf0)],[[Q]]);}[_0x3d0128(0x81)](){const _0x1eac88=_0x3d0128;_0x79afb0(this[_0x1eac88(0xf0)],[[Y]]);}};B($,_0x3d0128(0xa8),_0x484236[_0x3d0128(0x87)]),B($,_0x3d0128(0xaf),_0x3d0128(0xd7)),B($,_0x3d0128(0xa7),pe),B($,_0x3d0128(0x7b),me),$=U([_0x121476(_0xdc6e53),H(0x1,_0x93af7e(_0x17532c)),H(0x2,_0x4fe3b2)],$);function _0x3a4a(_0xa72e4e,_0x11fe7e){_0xa72e4e=_0xa72e4e-0x71;const _0x81b0ff=_0x81b0();let _0x3a4a70=_0x81b0ff[_0xa72e4e];return _0x3a4a70;}export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x316f94=_0x5391;(function(_0xe3a6e7,_0x29817e){const _0x172460=_0x5391,_0x24b1e9=_0xe3a6e7();while(!![]){try{const _0x4e53ed=parseInt(_0x172460(0x20b))/0x1+-parseInt(_0x172460(0x1be))/0x2*(-parseInt(_0x172460(0x1e8))/0x3)+parseInt(_0x172460(0x18c))/0x4*(-parseInt(_0x172460(0x1f8))/0x5)+parseInt(_0x172460(0x198))/0x6+-parseInt(_0x172460(0x1e4))/0x7+-parseInt(_0x172460(0x1e1))/0x8+-parseInt(_0x172460(0x1de))/0x9*(-parseInt(_0x172460(0x1d3))/0xa);if(_0x4e53ed===_0x29817e)break;else _0x24b1e9['push'](_0x24b1e9['shift']());}catch(_0x22466a){_0x24b1e9['push'](_0x24b1e9['shift']());}}}(_0xb49f,0x9fde8));import{CommandType as _0x59b2d3,DependentOn as _0x4a35d8,Disposable as _0x2adf71,DisposableCollection as _0x5adea4,ICommandService as _0x41335f,IConfigService as _0x557f50,IUniverInstanceService as _0x3302a5,Inject as _0x46b23b,Injector as _0x1d072d,Plugin as _0x48ed37,RxDisposable as _0x22b5ea,UniverInstanceType as _0x3134e5,merge as _0x2e2be3,mergeOverrideWithDependencies as _0x3d81e7,registerDependencies as _0x581342,toDisposable as _0x45b351,touchDependencies as _0x52a28d}from'@univerjs/core';import{BuiltInUIPart as _0x25173b,IUIPartsService as _0x3b40e4,connectInjector as _0x4f41a9,useDependency as _0x32da5a,useObservable as _0x3ea909}from'@univerjs/ui';import{Button as _0x4f7ec0,Dropdown as _0x4cb2f3,clsx as _0x3a1867}from'@univerjs/design';import{LiveShareIcon as _0x3a9d6e}from'@univerjs/icons';import{useEffect as _0x2f1cba,useRef as _0x4a2319,useState as _0x3be037}from'react';import{CollaborationEvent as _0x3715c9,parseProtocolChangeset as _0x1ff61d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x29346c,SessionStatus as _0x3826d2,UniverCollaborationClientPlugin as _0x42f673}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x28332a,SetWorksheetActiveOperation as _0x1ff449}from'@univerjs/sheets';import{BehaviorSubject as _0x128b7d,Subject as _0x14ff59}from'rxjs';import{takeUntil as _0x136b9e,throttleTime as _0x16df4d}from'rxjs/operators';import{Fragment as _0x501d46,jsx as _0x509609,jsxs as _0x227845}from'react/jsx-runtime';import{SetScrollOperation as _0x160a49,SetZoomRatioOperation as _0xefcc16}from'@univerjs/sheets-ui';function L(_0x590d83){'@babel/helpers - typeof';const _0x4cc06f=_0x5391;return L=typeof Symbol==_0x4cc06f(0x1e2)&&typeof Symbol[_0x4cc06f(0x1b7)]==_0x4cc06f(0x1ae)?function(_0x448d45){return typeof _0x448d45;}:function(_0x3ba1b9){const _0x13799b=_0x4cc06f;return _0x3ba1b9&&typeof Symbol==_0x13799b(0x1e2)&&_0x3ba1b9['constructor']===Symbol&&_0x3ba1b9!==Symbol[_0x13799b(0x1ee)]?_0x13799b(0x1ae):typeof _0x3ba1b9;},L(_0x590d83);}function R(_0xa99d4,_0x21f9c7){const _0x31c836=_0x5391;if(L(_0xa99d4)!='object'||!_0xa99d4)return _0xa99d4;var _0x14b8c4=_0xa99d4[Symbol['toPrimitive']];if(_0x14b8c4!==void 0x0){var _0x3da7ef=_0x14b8c4[_0x31c836(0x1d4)](_0xa99d4,_0x21f9c7||_0x31c836(0x1a6));if(L(_0x3da7ef)!=_0x31c836(0x1c0))return _0x3da7ef;throw TypeError(_0x31c836(0x1e0));}return(_0x21f9c7===_0x31c836(0x1f1)?String:Number)(_0xa99d4);}function z(_0x559b23){const _0x2d957e=_0x5391;var _0x1282bb=R(_0x559b23,_0x2d957e(0x1f1));return L(_0x1282bb)==_0x2d957e(0x1ae)?_0x1282bb:_0x1282bb+'';}function B(_0x1787ef,_0x2b7d5c,_0x202a95){return(_0x2b7d5c=z(_0x2b7d5c))in _0x1787ef?Object['defineProperty'](_0x1787ef,_0x2b7d5c,{'value':_0x202a95,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1787ef[_0x2b7d5c]=_0x202a95,_0x1787ef;}var V=class extends _0x2adf71{constructor(..._0x4f4764){const _0x34512f=_0x5391;super(..._0x4f4764),B(this,'_sharedOperations',new Set()),B(this,_0x34512f(0x1d6),new Set());}[_0x316f94(0x1fd)](_0x74c681){const _0x5a68cd=_0x316f94;return this[_0x5a68cd(0x1b5)][_0x5a68cd(0x1d0)](_0x74c681),_0x45b351(()=>this[_0x5a68cd(0x1b5)][_0x5a68cd(0x1c9)](_0x74c681));}[_0x316f94(0x180)](_0x398b1e){const _0x4e4b10=_0x316f94;return this[_0x4e4b10(0x1d6)][_0x4e4b10(0x1d0)](_0x398b1e),_0x45b351(()=>this['_reporters'][_0x4e4b10(0x1c9)](_0x398b1e));}[_0x316f94(0x1c8)](_0x23fee9){const _0x51b6de=_0x316f94;return this[_0x51b6de(0x1b5)]['has'](_0x23fee9);}['getInitialStates'](_0x83ab78){const _0x18e7d2=_0x316f94;return Array['from'](this[_0x18e7d2(0x1d6)])['map'](_0x4358ad=>_0x4358ad(_0x83ab78));}};function H(_0x4398df,_0x3cdacc){return function(_0x578c4e,_0x4738fa){_0x3cdacc(_0x578c4e,_0x4738fa,_0x4398df);};}function U(_0x16ddd9,_0x52ab6c,_0xc6f07b,_0x43f9c7){const _0x217ae6=_0x316f94;var _0x5905c6=arguments[_0x217ae6(0x1db)],_0x3847a1=_0x5905c6<0x3?_0x52ab6c:_0x43f9c7===null?_0x43f9c7=Object[_0x217ae6(0x1f0)](_0x52ab6c,_0xc6f07b):_0x43f9c7,_0x407918;if(typeof Reflect==_0x217ae6(0x1c0)&&typeof Reflect[_0x217ae6(0x1ea)]==_0x217ae6(0x1e2))_0x3847a1=Reflect[_0x217ae6(0x1ea)](_0x16ddd9,_0x52ab6c,_0xc6f07b,_0x43f9c7);else{for(var _0x4b478b=_0x16ddd9['length']-0x1;_0x4b478b>=0x0;_0x4b478b--)(_0x407918=_0x16ddd9[_0x4b478b])&&(_0x3847a1=(_0x5905c6<0x3?_0x407918(_0x3847a1):_0x5905c6>0x3?_0x407918(_0x52ab6c,_0xc6f07b,_0x3847a1):_0x407918(_0x52ab6c,_0xc6f07b))||_0x3847a1);}return _0x5905c6>0x3&&_0x3847a1&&Object[_0x217ae6(0x1ba)](_0x52ab6c,_0xc6f07b,_0x3847a1),_0x3847a1;}let W=class extends _0x22b5ea{constructor(_0x2b5005,_0x483c55,_0x18f658){const _0x5844bb=_0x316f94;super(),this['_univerInstanceService']=_0x2b5005,this[_0x5844bb(0x1ca)]=_0x483c55,this['_collabSessionService']=_0x18f658,B(this,_0x5844bb(0x19d),new Map()),this[_0x5844bb(0x1f7)]();}async['getLiveShareCoordinator'](_0x474978){const _0x3e97ae=_0x316f94;return this[_0x3e97ae(0x19d)][_0x3e97ae(0x205)](_0x474978)||await this['_startLiveShareCoordinator'](_0x474978),this[_0x3e97ae(0x19d)][_0x3e97ae(0x20a)](_0x474978);}[_0x316f94(0x17f)](_0x2afed9){var _0x45f533;return(_0x45f533=this['_entities']['get'](_0x2afed9))==null?null:_0x45f533;}['_init'](){const _0x3cb980=_0x316f94;this[_0x3cb980(0x1da)][_0x3cb980(0x202)](_0x3134e5['UNIVER_SHEET'])[_0x3cb980(0x1ef)](_0x136b9e(this['dispose$']))[_0x3cb980(0x207)](async _0x449bc6=>{const _0x54fb72=_0x3cb980;let _0x399e13=_0x449bc6[_0x54fb72(0x18a)]();this[_0x54fb72(0x19d)][_0x54fb72(0x205)](_0x399e13)||this[_0x54fb72(0x182)](_0x399e13);}),this[_0x3cb980(0x1da)][_0x3cb980(0x183)](_0x3134e5[_0x3cb980(0x1fb)])[_0x3cb980(0x1ef)](_0x136b9e(this[_0x3cb980(0x1a2)]))[_0x3cb980(0x207)](_0x52dddf=>{const _0x21ae43=_0x3cb980;let _0x38c80d=_0x52dddf[_0x21ae43(0x18a)](),_0x1bd39b=this[_0x21ae43(0x19d)][_0x21ae43(0x20a)](_0x38c80d);_0x1bd39b==null||_0x1bd39b['dispose']();});}async[_0x316f94(0x182)](_0x118bb2){const _0x1c24f9=_0x316f94;let _0x53ff18=await this[_0x1c24f9(0x1bb)]['requireSession'](_0x118bb2),_0x55a184=this[_0x1c24f9(0x1ca)][_0x1c24f9(0x1cc)](K,_0x118bb2,_0x53ff18);return _0x55a184[_0x1c24f9(0x1ce)](),this[_0x1c24f9(0x19d)]['set'](_0x118bb2,_0x55a184),_0x55a184;}};W=U([H(0x0,_0x3302a5),H(0x1,_0x46b23b(_0x1d072d)),H(0x2,_0x46b23b(_0x29346c))],W);let G=function(_0x10c258){const _0xd080c1=_0x316f94;return _0x10c258[_0xd080c1(0x1a1)]='offline',_0x10c258['IDLE']=_0xd080c1(0x20f),_0x10c258[_0xd080c1(0x20d)]=_0xd080c1(0x19b),_0x10c258[_0xd080c1(0x1f4)]=_0xd080c1(0x1fc),_0x10c258[_0xd080c1(0x1eb)]=_0xd080c1(0x17c),_0x10c258;}({}),K=class extends _0x22b5ea{get[_0x316f94(0x199)](){const _0x29e248=_0x316f94;return this[_0x29e248(0x1b3)][_0x29e248(0x189)]();}constructor(_0x2408ac,_0x3e6e16,_0x273ef4,_0x50438a,_0x4cca86){const _0x3c881e=_0x316f94;super(),this[_0x3c881e(0x1d9)]=_0x2408ac,this[_0x3c881e(0x1e9)]=_0x3e6e16,this[_0x3c881e(0x1d1)]=_0x273ef4,this[_0x3c881e(0x178)]=_0x50438a,this['_commandService']=_0x4cca86,B(this,_0x3c881e(0x1b3),new _0x128b7d(G[_0x3c881e(0x1b8)])),B(this,_0x3c881e(0x177),this[_0x3c881e(0x1b3)][_0x3c881e(0x1ed)]()),B(this,_0x3c881e(0x1f7),!0x1),B(this,_0x3c881e(0x1e6),null),B(this,_0x3c881e(0x187),null);}[_0x316f94(0x1d5)](){const _0xe037be=_0x316f94;var _0x417a8d;(_0x417a8d=this['_commandDisposable'])==null||_0x417a8d['dispose'](),this[_0xe037be(0x1b3)][_0xe037be(0x1cd)](G[_0xe037be(0x1b8)]),this[_0xe037be(0x1b3)]['complete']();}['getStatus'](){const _0x3c6841=_0x316f94;return this[_0x3c6841(0x199)];}[_0x316f94(0x1ce)](){const _0x50ba0d=_0x316f94;this[_0x50ba0d(0x1f7)]||(this[_0x50ba0d(0x1f7)]=!0x0,this['_collabSession'][_0x50ba0d(0x1c7)][_0x50ba0d(0x1ef)](_0x136b9e(this[_0x50ba0d(0x1a2)]))[_0x50ba0d(0x207)](_0x39c7aa=>{const _0x441b6d=_0x50ba0d;switch(_0x39c7aa){case _0x3826d2[_0x441b6d(0x1a1)]:this['_handleOffline']();break;case _0x3826d2[_0x441b6d(0x18d)]:this[_0x441b6d(0x1cb)]();break;default:}}),this['_collabSession']['event$'][_0x50ba0d(0x1ef)](_0x136b9e(this[_0x50ba0d(0x1a2)]))['subscribe'](_0x198742=>{const _0x1d44e4=_0x50ba0d;let {eventID:_0x464edc}=_0x198742;switch(_0x464edc){case _0x3715c9[_0x1d44e4(0x1a5)]:this['_handleNewHost'](_0x198742);break;case _0x3715c9[_0x1d44e4(0x1bc)]:this[_0x1d44e4(0x17d)](_0x198742);break;case _0x3715c9[_0x1d44e4(0x1a4)]:this[_0x1d44e4(0x1ac)]();break;case _0x3715c9['NEW_CHANGESETS']:this[_0x1d44e4(0x1fa)](_0x198742);break;default:}}));}['tryStartPresenting'](){const _0x59e785=_0x316f94;this['_collabSession']['send']({'eventID':_0x3715c9[_0x59e785(0x1af)],'data':{'unitID':this[_0x59e785(0x1d9)],'userID':this[_0x59e785(0x1e9)][_0x59e785(0x18f)]()}},this[_0x59e785(0x1d9)]);}['stopPresenting'](){const _0x439c2d=_0x316f94;this[_0x439c2d(0x199)]===G[_0x439c2d(0x1eb)]&&(this['_status$'][_0x439c2d(0x1cd)](G[_0x439c2d(0x1b8)]),this[_0x439c2d(0x1e9)][_0x439c2d(0x1d2)]({'eventID':_0x3715c9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x439c2d(0x1d9)]}},this[_0x439c2d(0x1d9)]));}['startFollowing'](){const _0x12a883=_0x316f94;this[_0x12a883(0x199)]===G['NOT_FOLLOWING']&&(this[_0x12a883(0x1b3)][_0x12a883(0x1cd)](G[_0x12a883(0x20d)]),this[_0x12a883(0x1f2)]());}['stopFollowing'](){const _0x6ac854=_0x316f94;this['_status']===G['FOLLOWING']&&this[_0x6ac854(0x1d8)]();}[_0x316f94(0x179)](_0xd601f5){const _0x418871=_0x316f94;let {presenter:_0x438b00}=_0xd601f5['data'],_0x17460e=this[_0x418871(0x1e9)][_0x418871(0x18f)]();this[_0x418871(0x187)]=_0x438b00,_0x438b00===_0x17460e?(this['_stopFollowing'](),this[_0x418871(0x194)]()):this[_0x418871(0x199)]!==G[_0x418871(0x1f4)]&&(this[_0x418871(0x1ff)](),this[_0x418871(0x1f2)]());}[_0x316f94(0x1f9)](){const _0x3828e2=_0x316f94;let _0x103491={'eventID':_0x3715c9['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x3828e2(0x1d2)](_0x103491,this[_0x3828e2(0x1d9)]);}[_0x316f94(0x1ac)](){const _0x3aa701=_0x316f94;this[_0x3aa701(0x187)]=null,this['_status']!==G[_0x3aa701(0x1eb)]&&this[_0x3aa701(0x17a)]();}[_0x316f94(0x1fa)](_0x500dfc){const _0x7da05b=_0x316f94;if(this[_0x7da05b(0x199)]===G[_0x7da05b(0x20d)]&&this[_0x7da05b(0x187)]===_0x500dfc[_0x7da05b(0x17b)]['memberID']){let _0x43f5a3=_0x1ff61d(_0x500dfc[_0x7da05b(0x17b)])[_0x7da05b(0x1f3)][_0x7da05b(0x1aa)]()[_0x7da05b(0x1a7)](_0x29521f=>_0x29521f['id']===_0x28332a['id']);if(_0x43f5a3){let _0x1be8f9=_0x43f5a3[_0x7da05b(0x1cf)][_0x7da05b(0x1a0)],_0xff2700=_0x43f5a3[_0x7da05b(0x1cf)][_0x7da05b(0x1df)]['id'];setTimeout(()=>{const _0x4f7788=_0x7da05b;this[_0x4f7788(0x195)][_0x4f7788(0x1f5)](_0x1ff449['id'],{'unitId':_0x1be8f9,'subUnitId':_0xff2700},{'fromCollab':!0x0});});}}}[_0x316f94(0x194)](){const _0x2ec733=_0x316f94;this[_0x2ec733(0x1b3)][_0x2ec733(0x1cd)](G[_0x2ec733(0x1eb)]);let _0x3a122d=new Map(),_0x172690=this[_0x2ec733(0x1e6)]=new _0x5adea4();_0x172690[_0x2ec733(0x1d0)](_0x45b351(()=>{const _0x4e09f0=_0x2ec733;_0x3a122d[_0x4e09f0(0x1ad)](_0x284dac=>_0x284dac['complete']()),_0x3a122d[_0x4e09f0(0x1ab)]();})),_0x172690[_0x2ec733(0x1d0)](this[_0x2ec733(0x195)][_0x2ec733(0x1a8)](_0x468d9e=>{const _0x476cba=_0x2ec733;if(_0x468d9e[_0x476cba(0x193)]!==_0x59b2d3[_0x476cba(0x1a9)]||!this[_0x476cba(0x178)][_0x476cba(0x1c8)](_0x468d9e['id']))return;let {id:_0xb9dc9}=_0x468d9e,_0x478df3;if(_0x3a122d[_0x476cba(0x205)](_0xb9dc9))_0x478df3=_0x3a122d['get'](_0xb9dc9);else{var _0x25df4b;_0x478df3=new _0x14ff59(),_0x3a122d[_0x476cba(0x203)](_0xb9dc9,_0x478df3),_0x478df3[_0x476cba(0x1ef)](_0x16df4d((_0x25df4b=this[_0x476cba(0x1d1)][_0x476cba(0x19f)](_0x476cba(0x197)))==null?0xc8:_0x25df4b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x476cba(0x207)](_0xb5fc86=>{const _0x201a01=_0x476cba;this[_0x201a01(0x1e9)][_0x201a01(0x1d2)]({'eventID':_0x3715c9[_0x201a01(0x1bc)],'data':{'unitID':this[_0x201a01(0x1d9)],'operations':{[_0xb5fc86['id']]:{'id':_0xb5fc86['id'],'params':JSON[_0x201a01(0x1b4)](_0xb5fc86['params'])}}}},this['_unitID']);});}_0x478df3[_0x476cba(0x1cd)](_0x468d9e);})),this[_0x2ec733(0x178)][_0x2ec733(0x1e5)](this['_unitID'])[_0x2ec733(0x1ad)](_0x471a72=>this[_0x2ec733(0x1e9)][_0x2ec733(0x1d2)]({'eventID':_0x3715c9[_0x2ec733(0x1bc)],'data':{'unitID':this[_0x2ec733(0x1d9)],'operations':{[_0x471a72['id']]:{'id':_0x471a72['id'],'params':JSON['stringify'](_0x471a72[_0x2ec733(0x1cf)])}}}},this[_0x2ec733(0x1d9)]));}[_0x316f94(0x1ff)](){const _0xa0307b=_0x316f94;var _0x17a87c;this[_0xa0307b(0x1b3)][_0xa0307b(0x1cd)](G[_0xa0307b(0x1b8)]),(_0x17a87c=this[_0xa0307b(0x1e6)])==null||_0x17a87c['dispose'](),this['_commandDisposable']=null;}[_0x316f94(0x1f2)](){const _0x206ece=_0x316f94;var _0x3c982a;(_0x3c982a=this[_0x206ece(0x1e6)])==null||_0x3c982a['dispose'](),this[_0x206ece(0x1b3)][_0x206ece(0x1cd)](G[_0x206ece(0x20d)]);}['_beIdle'](){const _0x853f50=_0x316f94;var _0x226aa3;this[_0x853f50(0x1b3)][_0x853f50(0x1cd)](G['IDLE']),(_0x226aa3=this['_commandDisposable'])==null||_0x226aa3[_0x853f50(0x1d5)](),this['_commandDisposable']=null;}[_0x316f94(0x1d8)](){const _0x5426a5=_0x316f94;var _0x42d82d;this['_status$'][_0x5426a5(0x1cd)](G[_0x5426a5(0x1f4)]),(_0x42d82d=this[_0x5426a5(0x1e6)])==null||_0x42d82d[_0x5426a5(0x1d5)]();}[_0x316f94(0x17d)](_0x3d43bb){const _0x4c8522=_0x316f94;if([G[_0x4c8522(0x1eb)],G['NOT_FOLLOWING'],G[_0x4c8522(0x1a1)]][_0x4c8522(0x1fe)](this[_0x4c8522(0x199)])||!_0x3d43bb[_0x4c8522(0x17b)][_0x4c8522(0x184)]||_0x3d43bb[_0x4c8522(0x17b)]['presenter']===this[_0x4c8522(0x1e9)]['getMemberID']())return;this[_0x4c8522(0x199)]===G[_0x4c8522(0x1b8)]&&this['_startFollowing']();let _0x54e36e=_0x3d43bb[_0x4c8522(0x17b)][_0x4c8522(0x1d7)];Object[_0x4c8522(0x1e7)](_0x54e36e)['forEach'](_0x15ab33=>{const _0x7f8e9=_0x4c8522;this[_0x7f8e9(0x195)][_0x7f8e9(0x1f5)](_0x15ab33['id'],_0x15ab33['params']?JSON[_0x7f8e9(0x1f6)](_0x15ab33[_0x7f8e9(0x1cf)]):null,{'fromCollab':!0x0});});}[_0x316f94(0x1b9)](){const _0x31efba=_0x316f94;var _0x46d91c;this[_0x31efba(0x1b3)][_0x31efba(0x1cd)](G[_0x31efba(0x1a1)]),(_0x46d91c=this[_0x31efba(0x1e6)])==null||_0x46d91c[_0x31efba(0x1d5)]();}[_0x316f94(0x1cb)](){const _0x3e724e=_0x316f94;this[_0x3e724e(0x1b3)]['next'](G[_0x3e724e(0x1b8)]),this[_0x3e724e(0x1f9)]();}};K=U([H(0x2,_0x557f50),H(0x3,_0x46b23b(V)),H(0x4,_0x41335f)],K);function q(){const _0x1a3a30=_0x316f94;let _0x189140=_0x32da5a(W),_0x4f313d=_0x32da5a(_0x3302a5),_0x383157=_0x3ea909(()=>_0x4f313d[_0x1a3a30(0x1b1)](_0x3134e5[_0x1a3a30(0x1fb)]),void 0x0,!0x1,[]),[_0x337bc9,_0xcc684c]=_0x3be037(null),[_0x228ee7,_0x16b755]=_0x3be037(G['IDLE']),_0x487fe9=_0x4a2319(null);return _0x2f1cba(()=>(_0x383157&&_0x189140[_0x1a3a30(0x1a3)](_0x383157[_0x1a3a30(0x18a)]())[_0x1a3a30(0x208)](_0x610749=>{const _0x394d16=_0x1a3a30;_0xcc684c(_0x610749),_0x487fe9[_0x394d16(0x1b6)]=_0x610749['status$'][_0x394d16(0x207)](_0x2c4feb=>{_0x16b755(_0x2c4feb);});}),()=>{const _0x2c5187=_0x1a3a30;var _0x1e14cc;(_0x1e14cc=_0x487fe9[_0x2c5187(0x1b6)])==null||_0x1e14cc[_0x2c5187(0x204)](),_0x487fe9['current']=null;}),[_0x383157,_0x189140]),_0x337bc9?_0x509609(_0x4cb2f3,{'align':'end','disabled':_0x228ee7===G[_0x1a3a30(0x1a1)],'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':_0x509609(ce,{'status':_0x228ee7,'coordinator':_0x337bc9}),'children':_0x509609(_0x1a3a30(0x1dc),{'className':_0x3a1867(_0x1a3a30(0x19e),{'univer-cursor-not-allowed':_0x228ee7===G['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x228ee7!==G['OFFLINE']}),'type':_0x1a3a30(0x1dc),'children':_0x509609(_0x3a9d6e,{'className':'univer-size-4'})})}):null;}function ce(_0x355703){const _0x39a89e=_0x316f94;let {status:_0x1e69d0,coordinator:_0x47d057}=_0x355703;switch(_0x1e69d0){case G[_0x39a89e(0x1b8)]:return _0x509609(le,{'coordinator':_0x47d057});case G[_0x39a89e(0x20d)]:return _0x509609(ue,{'coordinator':_0x47d057});case G[_0x39a89e(0x1f4)]:return _0x509609(de,{'coordinator':_0x47d057});case G[_0x39a89e(0x1a1)]:return _0x509609(fe,{});case G[_0x39a89e(0x1eb)]:return _0x509609(J,{'coordinator':_0x47d057});default:return null;}}function _0xb49f(){const _0x49a4c1=['has','onRendered','subscribe','then','_uiPartsService','get','275249lFqEgL','Start\x20following','FOLLOWING','_mountLiveShare','idle','status$','_liveShareService','_handleNewHost','_beIdle','data','presenting','_handleOperation','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','registerInitialStateReporter','stopPresenting','_startLiveShareCoordinator','getTypeOfUnitDisposed$','presenter','div','@univerjs-pro/live-share','_presenter','0.20.1','getValue','getUnitId','setConfig','4IepavN','ONLINE','You\x27are\x20offline.','getMemberID','onStarting','override','You\x27re\x20not\x20following\x20the\x20presenter','type','_startPresenting','_commandService','registerComponent','SAME_OPERATION_SHARE_INTERVAL','6243396qBhOqU','_status','HEADER_MENU','following','Start','_entities','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getConfig','unitId','OFFLINE','dispose$','getLiveShareCoordinator','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','default','find','onCommandExecuted','OPERATION','reverse','clear','_handleTerminate','forEach','symbol','LIVESHARE_REQUEST_HOST','live-share.config','getCurrentTypeOfUnit$','startFollowing','_status$','stringify','_sharedOperations','current','iterator','IDLE','_handleOffline','defineProperty','_collabSessionService','LIVESHARE_OPERATION','disposeWithMe','544582xOceXG','UNIVER_LIVE_SHARE_PLUGIN','object','version','packageName','UNIVER_UNKNOWN','_config','Stop\x20presenting','You\x27re\x20presenting\x20the\x20document','sessionStatus$','shouldShareOperation','delete','_injector','_handleOnline','createInstance','next','init','params','add','_configService','send','11210nMJkVv','call','dispose','_reporters','operations','_stopFollowing','_unitID','_univerInstanceService','length','button','text','12951oyRGuS','sheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','10442280Mwbzrw','function','tryStartPresenting','4946655YRvdgb','getInitialStates','_commandDisposable','values','9HfeRAq','_collabSession','decorate','PRESENTING','stopFollowing','asObservable','prototype','pipe','getOwnPropertyDescriptor','string','_startFollowing','mutations','NOT_FOLLOWING','executeCommand','parse','_init','5395165UhwbDT','_fetchOperations','_handleNewChangeSets','UNIVER_SHEET','not-following','registerSharedOperation','includes','_stopPresenting','Stop\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','set','unsubscribe'];_0xb49f=function(){return _0x49a4c1;};return _0xb49f();}function le(_0xa7aaf6){const _0x5b2926=_0x316f94;let {coordinator:_0x18b3a0}=_0xa7aaf6;return _0x227845(_0x501d46,{'children':[_0x509609(_0x5b2926(0x185),{'className':_0x5b2926(0x201),'children':'Present\x20this\x20document'}),_0x509609(_0x4f7ec0,{'onClick':()=>_0x18b3a0[_0x5b2926(0x1e3)](),'children':_0x5b2926(0x19c)})]});}function ue(_0x52238a){const _0x321933=_0x316f94;let {coordinator:_0x2f8d60}=_0x52238a;return _0x227845(_0x501d46,{'children':[_0x509609(_0x321933(0x185),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x321933(0x17e)}),_0x509609(_0x4f7ec0,{'onClick':()=>_0x2f8d60[_0x321933(0x1ec)](),'children':_0x321933(0x200)})]});}function de(_0x273cf4){const _0x88b058=_0x316f94;let {coordinator:_0xd99e2d}=_0x273cf4;return _0x227845(_0x501d46,{'children':[_0x509609(_0x88b058(0x185),{'className':_0x88b058(0x201),'children':_0x88b058(0x192)}),_0x509609(_0x4f7ec0,{'variant':_0x88b058(0x1dd),'onClick':()=>_0xd99e2d[_0x88b058(0x1b2)](),'children':_0x88b058(0x20c)})]});}function J(_0x1fbc3d){const _0x2c0bf3=_0x316f94;let {coordinator:_0x4fa7f0}=_0x1fbc3d;return _0x227845(_0x501d46,{'children':[_0x509609(_0x2c0bf3(0x185),{'className':_0x2c0bf3(0x201),'children':_0x2c0bf3(0x1c6)}),_0x509609(_0x4f7ec0,{'variant':_0x2c0bf3(0x1a6),'onClick':()=>_0x4fa7f0[_0x2c0bf3(0x181)](),'children':_0x2c0bf3(0x1c5)})]});}function fe(){const _0x466b41=_0x316f94;return _0x509609(_0x501d46,{'children':_0x466b41(0x18e)});}let Y=class extends _0x2adf71{constructor(_0x352caf,_0x3d6cec){const _0xb675b1=_0x316f94;super(),this[_0xb675b1(0x1ca)]=_0x352caf,this[_0xb675b1(0x209)]=_0x3d6cec,this[_0xb675b1(0x20e)]();}[_0x316f94(0x20e)](){const _0x5cc56f=_0x316f94;this[_0x5cc56f(0x1bd)](this[_0x5cc56f(0x209)][_0x5cc56f(0x196)](_0x25173b[_0x5cc56f(0x19a)],()=>_0x4f41a9(q,this['_injector'])));}};Y=U([H(0x0,_0x46b23b(_0x1d072d)),H(0x1,_0x3b40e4)],Y);function _0x5391(_0x32d12b,_0x12e4cb){_0x32d12b=_0x32d12b-0x177;const _0xb49f3d=_0xb49f();let _0x539147=_0xb49f3d[_0x32d12b];return _0x539147;}var pe=_0x316f94(0x186),me=_0x316f94(0x188);const X=_0x316f94(0x1b0);Symbol(X);const Z={};let Q=class extends _0x2adf71{constructor(_0xe4578c){const _0xb1eb52=_0x316f94;super(),this[_0xb1eb52(0x178)]=_0xe4578c,this['_init']();}[_0x316f94(0x1f7)](){const _0x8bc95a=_0x316f94;[_0xefcc16['id'],_0x160a49['id'],_0x1ff449['id']][_0x8bc95a(0x1ad)](_0x9c10ee=>{const _0x31eb6b=_0x8bc95a;this[_0x31eb6b(0x1bd)](this['_liveShareService'][_0x31eb6b(0x1fd)](_0x9c10ee));});}};Q=U([H(0x0,_0x46b23b(V))],Q);let $=class extends _0x48ed37{constructor(_0x3b223f=Z,_0x31863f,_0x9f6c75){const _0x2c7af5=_0x316f94;super(),this[_0x2c7af5(0x1c4)]=_0x3b223f,this[_0x2c7af5(0x1ca)]=_0x31863f,this['_configService']=_0x9f6c75;let {..._0x3e1fc8}=_0x2e2be3({},Z,this['_config']);this[_0x2c7af5(0x1d1)][_0x2c7af5(0x18b)](X,_0x3e1fc8);}[_0x316f94(0x190)](){const _0x35b826=_0x316f94;_0x581342(this['_injector'],_0x3d81e7([[V],[W],[Q],[Y]],this[_0x35b826(0x1c4)][_0x35b826(0x191)])),_0x52a28d(this['_injector'],[[Q]]);}[_0x316f94(0x206)](){const _0x1f5c2b=_0x316f94;_0x52a28d(this[_0x1f5c2b(0x1ca)],[[Y]]);}};B($,'type',_0x3134e5[_0x316f94(0x1c3)]),B($,'pluginName',_0x316f94(0x1bf)),B($,_0x316f94(0x1c2),pe),B($,_0x316f94(0x1c1),me),$=U([_0x4a35d8(_0x42f673),H(0x1,_0x46b23b(_0x1d072d)),H(0x2,_0x557f50)],$);export{Y as DesktopLiveShareController,q as LiveShare,W as LiveShareController,K as LiveShareCoordinator,V as LiveShareService,G as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2b9d(_0x5d3dd4,_0x1b682c){_0x5d3dd4=_0x5d3dd4-0x11a;const _0x461588=_0x4615();let _0x2b9d0b=_0x461588[_0x5d3dd4];return _0x2b9d0b;}function _0x4615(){const _0x431c7b=['FEnum','stopFollowing','symbol','IUniverInstanceService','_liveShareController','1764822fcYQIj','extend','2035239OCXBgt','LiveShareStatusEnum','object','getStatus','getLiveShareCoordinatorSync','defineProperty','2MphYcv','6062148BpPwVZ','get','getUnitId','function','UniverCoreFacade','startFollowing','58690LVtYUx','IDLE','toPrimitive','57421bfSRWr','914320avEVNG','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tryStartPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','559710fxkLgx','UNIVER_SHEET','constructor','stopPresenting','@univerjs/core','7vrlXsY','@univerjs/core/facade','default','string','getCurrentUnitOfType','_injector','228pcsVUY','UniverInstanceType','LiveShareStatus','_initialize'];_0x4615=function(){return _0x431c7b;};return _0x4615();}(function(_0x1bcf85,_0x1004a6){const _0x3d2f3d=_0x2b9d,_0x2090a1=_0x1bcf85();while(!![]){try{const _0xc6f0f2=parseInt(_0x3d2f3d(0x13e))/0x1+parseInt(_0x3d2f3d(0x134))/0x2*(parseInt(_0x3d2f3d(0x12e))/0x3)+parseInt(_0x3d2f3d(0x123))/0x4*(-parseInt(_0x3d2f3d(0x13b))/0x5)+-parseInt(_0x3d2f3d(0x12c))/0x6*(parseInt(_0x3d2f3d(0x11d))/0x7)+-parseInt(_0x3d2f3d(0x13f))/0x8+parseInt(_0x3d2f3d(0x135))/0x9+parseInt(_0x3d2f3d(0x144))/0xa;if(_0xc6f0f2===_0x1004a6)break;else _0x2090a1['push'](_0x2090a1['shift']());}catch(_0x354ad2){_0x2090a1['push'](_0x2090a1['shift']());}}}(_0x4615,0x5eb2c),function(_0x268ec6,_0x2efca3){const _0x886e6d=_0x2b9d;typeof exports=='object'&&typeof module<'u'?_0x2efca3(require(`@univerjs-pro/live-share`),require(`@univerjs/core`),require(`@univerjs/core/facade`)):typeof define==_0x886e6d(0x138)&&define['amd']?define(['@univerjs-pro/live-share',_0x886e6d(0x11c),_0x886e6d(0x11e)],_0x2efca3):(_0x268ec6=typeof globalThis<'u'?globalThis:_0x268ec6||self,_0x2efca3(_0x268ec6['UniverProLiveShare'],_0x268ec6['UniverCore'],_0x268ec6[_0x886e6d(0x139)]));}(this,function(_0x3ea532,_0x20bf07,_0x471559){const _0x4addf1=_0x2b9d;function _0xd5abc8(_0x5b6f79){'@babel/helpers - typeof';const _0x2fd719=_0x2b9d;return _0xd5abc8=typeof Symbol==_0x2fd719(0x138)&&typeof Symbol['iterator']==_0x2fd719(0x129)?function(_0x5ba69e){return typeof _0x5ba69e;}:function(_0x5ba34b){const _0x5ae719=_0x2fd719;return _0x5ba34b&&typeof Symbol=='function'&&_0x5ba34b[_0x5ae719(0x11a)]===Symbol&&_0x5ba34b!==Symbol['prototype']?'symbol':typeof _0x5ba34b;},_0xd5abc8(_0x5b6f79);}function _0x31b6f2(_0xdb617f,_0x266cbc){const _0x52930d=_0x2b9d;if(_0xd5abc8(_0xdb617f)!=_0x52930d(0x130)||!_0xdb617f)return _0xdb617f;var _0x49a13a=_0xdb617f[Symbol[_0x52930d(0x13d)]];if(_0x49a13a!==void 0x0){var _0x2d4e73=_0x49a13a['call'](_0xdb617f,_0x266cbc||_0x52930d(0x11f));if(_0xd5abc8(_0x2d4e73)!=_0x52930d(0x130))return _0x2d4e73;throw TypeError(_0x52930d(0x140));}return(_0x266cbc===_0x52930d(0x120)?String:Number)(_0xdb617f);}function _0x50e131(_0x33baae){const _0x4faceb=_0x2b9d;var _0x5b2ba1=_0x31b6f2(_0x33baae,_0x4faceb(0x120));return _0xd5abc8(_0x5b2ba1)=='symbol'?_0x5b2ba1:_0x5b2ba1+'';}function _0x3e2108(_0x534c3b,_0x5f0d2e,_0x39d522){const _0x1a8cb2=_0x2b9d;return(_0x5f0d2e=_0x50e131(_0x5f0d2e))in _0x534c3b?Object[_0x1a8cb2(0x133)](_0x534c3b,_0x5f0d2e,{'value':_0x39d522,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x534c3b[_0x5f0d2e]=_0x39d522,_0x534c3b;}var _0x4ad337=class extends _0x471559['FUniver']{constructor(..._0x1d097e){super(..._0x1d097e),_0x3e2108(this,'_liveShareController',void 0x0);}[_0x4addf1(0x126)](_0x43e2cc){const _0x103c68=_0x4addf1;this[_0x103c68(0x12b)]=_0x43e2cc[_0x103c68(0x136)](_0x3ea532['LiveShareController']);}['getLiveShareStatus'](){const _0x374de8=_0x4addf1;var _0xc1d3ce;let _0x3267d1=this[_0x374de8(0x122)][_0x374de8(0x136)](_0x20bf07['IUniverInstanceService'])[_0x374de8(0x121)](_0x20bf07[_0x374de8(0x124)][_0x374de8(0x145)]);if(!_0x3267d1)throw Error(_0x374de8(0x143));let _0x14363c=_0x3267d1[_0x374de8(0x137)](),_0x3885b8=this[_0x374de8(0x12b)][_0x374de8(0x132)](_0x14363c);return(_0xc1d3ce=_0x3885b8==null?void 0x0:_0x3885b8[_0x374de8(0x131)]())==null?_0x3ea532[_0x374de8(0x125)][_0x374de8(0x13c)]:_0xc1d3ce;}[_0x4addf1(0x13a)](){const _0xbdd190=_0x4addf1;let _0x1413d7=this[_0xbdd190(0x122)]['get'](_0x20bf07['IUniverInstanceService'])['getCurrentUnitOfType'](_0x20bf07[_0xbdd190(0x124)][_0xbdd190(0x145)]);if(!_0x1413d7)throw Error(_0xbdd190(0x143));let _0x3adee4=_0x1413d7['getUnitId'](),_0x454cf3=this[_0xbdd190(0x12b)][_0xbdd190(0x132)](_0x3adee4);if(!_0x454cf3)throw Error(_0xbdd190(0x142));_0x454cf3[_0xbdd190(0x13a)]();}[_0x4addf1(0x128)](){const _0x132982=_0x4addf1;let _0x476eb8=this[_0x132982(0x122)][_0x132982(0x136)](_0x20bf07[_0x132982(0x12a)])['getCurrentUnitOfType'](_0x20bf07[_0x132982(0x124)][_0x132982(0x145)]);if(!_0x476eb8)throw Error(_0x132982(0x143));let _0x51ba2e=_0x476eb8[_0x132982(0x137)](),_0x24f0cb=this[_0x132982(0x12b)]['getLiveShareCoordinatorSync'](_0x51ba2e);if(!_0x24f0cb)throw Error(_0x132982(0x142));_0x24f0cb[_0x132982(0x128)]();}['startPresenting'](){const _0x1be412=_0x4addf1;let _0x2d4c9e=this['_injector'][_0x1be412(0x136)](_0x20bf07[_0x1be412(0x12a)])[_0x1be412(0x121)](_0x20bf07[_0x1be412(0x124)][_0x1be412(0x145)]);if(!_0x2d4c9e)throw Error(_0x1be412(0x143));let _0x41e621=_0x2d4c9e[_0x1be412(0x137)](),_0x39891e=this[_0x1be412(0x12b)][_0x1be412(0x132)](_0x41e621);if(!_0x39891e)throw Error(_0x1be412(0x142));_0x39891e[_0x1be412(0x141)]();}[_0x4addf1(0x11b)](){const _0x4eb405=_0x4addf1;let _0x347cd2=this[_0x4eb405(0x122)]['get'](_0x20bf07[_0x4eb405(0x12a)])[_0x4eb405(0x121)](_0x20bf07['UniverInstanceType'][_0x4eb405(0x145)]);if(!_0x347cd2)throw Error(_0x4eb405(0x143));let _0x4dfb9f=_0x347cd2['getUnitId'](),_0x5419d9=this[_0x4eb405(0x12b)]['getLiveShareCoordinatorSync'](_0x4dfb9f);if(!_0x5419d9)throw Error(_0x4eb405(0x142));_0x5419d9[_0x4eb405(0x11b)]();}};_0x471559['FUniver'][_0x4addf1(0x12d)](_0x4ad337);var _0x58211d=class extends _0x471559['FEnum']{get[_0x4addf1(0x12f)](){const _0x611762=_0x4addf1;return _0x3ea532[_0x611762(0x125)];}};_0x471559[_0x4addf1(0x127)][_0x4addf1(0x12d)](_0x58211d);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x411095,_0x410fe4){const _0x246be4=_0x5c50,_0x36ec6b=_0x411095();while(!![]){try{const _0xbf394d=parseInt(_0x246be4(0xfc))/0x1+parseInt(_0x246be4(0xac))/0x2*(parseInt(_0x246be4(0x161))/0x3)+-parseInt(_0x246be4(0x16c))/0x4+-parseInt(_0x246be4(0x113))/0x5*(-parseInt(_0x246be4(0x147))/0x6)+-parseInt(_0x246be4(0x100))/0x7+parseInt(_0x246be4(0xb8))/0x8*(-parseInt(_0x246be4(0x16e))/0x9)+parseInt(_0x246be4(0x162))/0xa*(-parseInt(_0x246be4(0xf0))/0xb);if(_0xbf394d===_0x410fe4)break;else _0x36ec6b['push'](_0x36ec6b['shift']());}catch(_0x38e8ba){_0x36ec6b['push'](_0x36ec6b['shift']());}}}(_0x5db7,0x65dcf),function(_0x3e96d1,_0x1e7084){const _0x44e2cd=_0x5c50;typeof exports==_0x44e2cd(0xe3)&&typeof module<'u'?_0x1e7084(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==_0x44e2cd(0x119)&&define[_0x44e2cd(0x9f)]?define([_0x44e2cd(0x10d),_0x44e2cd(0xcc),_0x44e2cd(0xa0),'@univerjs/design','react','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','@univerjs/sheets','rxjs','rxjs/operators',_0x44e2cd(0x101),_0x44e2cd(0x12d)],_0x1e7084):(_0x3e96d1=typeof globalThis<'u'?globalThis:_0x3e96d1||self,_0x1e7084(_0x3e96d1['UniverProLiveShare']={},_0x3e96d1[_0x44e2cd(0x114)],_0x3e96d1[_0x44e2cd(0x117)],_0x3e96d1[_0x44e2cd(0xd8)],_0x3e96d1[_0x44e2cd(0x109)],_0x3e96d1[_0x44e2cd(0x140)],_0x3e96d1[_0x44e2cd(0x11c)],_0x3e96d1['UniverSheets'],_0x3e96d1[_0x44e2cd(0x130)],_0x3e96d1[_0x44e2cd(0x130)][_0x44e2cd(0xfe)],_0x3e96d1['React'],_0x3e96d1[_0x44e2cd(0x138)]));}(this,function(_0x5c60ac,_0x25403c,_0x40091d,_0x1db43b,_0x698833,_0x3d846a,_0x37a0b8,_0x3a94ab,_0x253f4d,_0x14ddb0,_0x51c009,_0x58031e){const _0xea95ed=_0x5c50;Object[_0xea95ed(0x16b)](_0x5c60ac,Symbol[_0xea95ed(0x115)],{'value':_0xea95ed(0x11d)});function _0x100277({ref:_0x3ab3b1,..._0x2d9138}){const _0x4c7499=_0xea95ed;let {icon:_0x6c4e74,id:_0x3fe2d8,className:_0x3e6910,extend:_0x4f76da,..._0x1b2ee6}=_0x2d9138,_0x1e1958=(_0x4c7499(0x154)+_0x3fe2d8+'\x20'+(_0x3e6910||''))[_0x4c7499(0x133)](),_0x4ea5f3=(0x0,_0x698833[_0x4c7499(0xeb)])('_'+_0x50f022());return _0xb776ae(_0x6c4e74,''+_0x3fe2d8,{'defIds':_0x6c4e74['defIds'],'idSuffix':_0x4ea5f3['current']},{'ref':_0x3ab3b1,'className':_0x1e1958,..._0x1b2ee6},_0x4f76da);}function _0xb776ae(_0x259b8b,_0x302f4f,_0x1ef752,_0xe6ace5,_0x460b3c){const _0x3d99ac=_0xea95ed;return(0x0,_0x698833[_0x3d99ac(0xea)])(_0x259b8b['tag'],{'key':_0x302f4f,..._0x2524ef(_0x259b8b,_0x1ef752,_0x460b3c),..._0xe6ace5},(_0xe7889a(_0x259b8b,_0x1ef752)[_0x3d99ac(0x93)]||[])[_0x3d99ac(0xfb)]((_0x2eb10c,_0x55716f)=>_0xb776ae(_0x2eb10c,_0x302f4f+'-'+_0x259b8b[_0x3d99ac(0xe8)]+'-'+_0x55716f,_0x1ef752,void 0x0,_0x460b3c)));}function _0x2524ef(_0x599f13,_0x2a9af8,_0xf6363b){const _0x23ec3e=_0xea95ed;let _0x3ff619={..._0x599f13[_0x23ec3e(0x95)]};_0xf6363b!=null&&_0xf6363b[_0x23ec3e(0xa1)]&&_0x3ff619['fill']==='colorChannel1'&&(_0x3ff619['fill']=_0xf6363b[_0x23ec3e(0xa1)]),_0x599f13[_0x23ec3e(0xe8)]==='mask'&&_0x3ff619['id']&&(_0x3ff619['id']+=_0x2a9af8[_0x23ec3e(0x148)]),Object[_0x23ec3e(0xed)](_0x3ff619)[_0x23ec3e(0xa9)](([_0x38936e,_0x49b4e5])=>{const _0x25f834=_0x23ec3e;_0x38936e===_0x25f834(0x11b)&&typeof _0x49b4e5=='string'&&(_0x3ff619[_0x38936e]=_0x49b4e5[_0x25f834(0x9c)](/url\(#(.*)\)/,_0x25f834(0x92)+_0x2a9af8[_0x25f834(0x148)]+')'));});let {defIds:_0x72884c}=_0x2a9af8;return!_0x72884c||_0x72884c[_0x23ec3e(0x9d)]===0x0?_0x3ff619:(_0x599f13[_0x23ec3e(0xe8)]==='use'&&_0x3ff619[_0x23ec3e(0x123)]&&(_0x3ff619[_0x23ec3e(0x123)]+=_0x2a9af8[_0x23ec3e(0x148)]),Object[_0x23ec3e(0xed)](_0x3ff619)[_0x23ec3e(0xa9)](([_0x5cc131,_0xc10209])=>{typeof _0xc10209=='string'&&(_0x3ff619[_0x5cc131]=_0xc10209['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2a9af8['idSuffix']+')'));}),_0x3ff619);}function _0xe7889a(_0x2b0d86,_0x3d7eba){const _0x4de316=_0xea95ed;var _0x7ea0ae;let {defIds:_0x182700}=_0x3d7eba;return!_0x182700||_0x182700[_0x4de316(0x9d)]===0x0?_0x2b0d86:_0x2b0d86[_0x4de316(0xe8)]==='defs'&&(_0x7ea0ae=_0x2b0d86['children'])!=null&&_0x7ea0ae['length']?{..._0x2b0d86,'children':_0x2b0d86['children'][_0x4de316(0xfb)](_0x5ead32=>typeof _0x5ead32[_0x4de316(0x95)]['id']==_0x4de316(0x153)&&_0x182700&&_0x182700['includes'](_0x5ead32[_0x4de316(0x95)]['id'])?{..._0x5ead32,'attrs':{..._0x5ead32[_0x4de316(0x95)],'id':_0x5ead32[_0x4de316(0x95)]['id']+_0x3d7eba[_0x4de316(0x148)]}}:_0x5ead32)}:_0x2b0d86;}function _0x50f022(){const _0x4895a3=_0xea95ed;return Math[_0x4895a3(0x127)]()[_0x4895a3(0x166)](0x24)[_0x4895a3(0x11a)](0x2,0x8);}_0x100277[_0xea95ed(0xd6)]=_0xea95ed(0x14b);let _0x3979a4={'tag':'svg','attrs':{'xmlns':_0xea95ed(0x144),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0xea95ed(0x139),'height':_0xea95ed(0x139)},'children':[{'tag':_0xea95ed(0x163),'attrs':{'fill':_0xea95ed(0x110),'d':_0xea95ed(0xd7)}},{'tag':_0xea95ed(0x163),'attrs':{'fill':_0xea95ed(0x110),'d':_0xea95ed(0x91),'fillRule':_0xea95ed(0xc1),'clipRule':_0xea95ed(0xc1)}}]},_0x14d026=(0x0,_0x698833['forwardRef'])(function(_0x48eca4,_0x3dfdc6){const _0x133df9=_0xea95ed;return(0x0,_0x698833[_0x133df9(0xea)])(_0x100277,Object[_0x133df9(0xee)]({},_0x48eca4,{'id':_0x133df9(0x159),'ref':_0x3dfdc6,'icon':_0x3979a4}));});_0x14d026[_0xea95ed(0xd6)]='LiveShareIcon';function _0x30efa3(_0x191aef){'@babel/helpers - typeof';const _0x275186=_0xea95ed;return _0x30efa3=typeof Symbol==_0x275186(0x119)&&typeof Symbol['iterator']==_0x275186(0xae)?function(_0x17671b){return typeof _0x17671b;}:function(_0x143246){const _0x243892=_0x275186;return _0x143246&&typeof Symbol=='function'&&_0x143246[_0x243892(0x15c)]===Symbol&&_0x143246!==Symbol['prototype']?_0x243892(0xae):typeof _0x143246;},_0x30efa3(_0x191aef);}function _0x32deb4(_0x3f6011,_0x491501){const _0x20605b=_0xea95ed;if(_0x30efa3(_0x3f6011)!=_0x20605b(0xe3)||!_0x3f6011)return _0x3f6011;var _0x1f27cb=_0x3f6011[Symbol[_0x20605b(0xa5)]];if(_0x1f27cb!==void 0x0){var _0x12384f=_0x1f27cb['call'](_0x3f6011,_0x491501||_0x20605b(0xca));if(_0x30efa3(_0x12384f)!=_0x20605b(0xe3))return _0x12384f;throw TypeError(_0x20605b(0xd3));}return(_0x491501===_0x20605b(0x153)?String:Number)(_0x3f6011);}function _0x181fbc(_0x4f799a){const _0x1b41a8=_0xea95ed;var _0x5bbfe9=_0x32deb4(_0x4f799a,_0x1b41a8(0x153));return _0x30efa3(_0x5bbfe9)=='symbol'?_0x5bbfe9:_0x5bbfe9+'';}function _0x35673e(_0x2f5b0d,_0x5c2e83,_0x24ca33){const _0xbc4235=_0xea95ed;return(_0x5c2e83=_0x181fbc(_0x5c2e83))in _0x2f5b0d?Object[_0xbc4235(0x16b)](_0x2f5b0d,_0x5c2e83,{'value':_0x24ca33,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f5b0d[_0x5c2e83]=_0x24ca33,_0x2f5b0d;}var _0x14fd7f=class extends _0x25403c[_0xea95ed(0x12a)]{constructor(..._0x438163){super(..._0x438163),_0x35673e(this,'_sharedOperations',new Set()),_0x35673e(this,'_reporters',new Set());}['registerSharedOperation'](_0x79c46f){const _0x267ea9=_0xea95ed;return this[_0x267ea9(0xf1)]['add'](_0x79c46f),(0x0,_0x25403c['toDisposable'])(()=>this['_sharedOperations']['delete'](_0x79c46f));}[_0xea95ed(0x111)](_0x46a813){const _0x5a0fcd=_0xea95ed;return this[_0x5a0fcd(0x94)]['add'](_0x46a813),(0x0,_0x25403c['toDisposable'])(()=>this[_0x5a0fcd(0x94)]['delete'](_0x46a813));}['shouldShareOperation'](_0x47e4cf){const _0x36c383=_0xea95ed;return this[_0x36c383(0xf1)][_0x36c383(0x96)](_0x47e4cf);}[_0xea95ed(0x15e)](_0x371115){const _0x4c33af=_0xea95ed;return Array[_0x4c33af(0x16d)](this['_reporters'])[_0x4c33af(0xfb)](_0x9b853=>_0x9b853(_0x371115));}};function _0x122da5(_0xb8a662,_0x1c124e){return function(_0x387840,_0x45cfe9){_0x1c124e(_0x387840,_0x45cfe9,_0xb8a662);};}function _0x4cea80(_0x31a2aa,_0x3625b0,_0x3d93d8,_0x550f74){const _0x133add=_0xea95ed;var _0x4dece4=arguments[_0x133add(0x9d)],_0xff6b71=_0x4dece4<0x3?_0x3625b0:_0x550f74===null?_0x550f74=Object[_0x133add(0x10e)](_0x3625b0,_0x3d93d8):_0x550f74,_0x598377;if(typeof Reflect==_0x133add(0xe3)&&typeof Reflect[_0x133add(0x15d)]==_0x133add(0x119))_0xff6b71=Reflect['decorate'](_0x31a2aa,_0x3625b0,_0x3d93d8,_0x550f74);else{for(var _0x496244=_0x31a2aa['length']-0x1;_0x496244>=0x0;_0x496244--)(_0x598377=_0x31a2aa[_0x496244])&&(_0xff6b71=(_0x4dece4<0x3?_0x598377(_0xff6b71):_0x4dece4>0x3?_0x598377(_0x3625b0,_0x3d93d8,_0xff6b71):_0x598377(_0x3625b0,_0x3d93d8))||_0xff6b71);}return _0x4dece4>0x3&&_0xff6b71&&Object[_0x133add(0x16b)](_0x3625b0,_0x3d93d8,_0xff6b71),_0xff6b71;}let _0x1be1c9=class extends _0x25403c[_0xea95ed(0xe2)]{constructor(_0x24bac8,_0x9b4616,_0x564566){const _0x56e5b4=_0xea95ed;super(),this[_0x56e5b4(0xdc)]=_0x24bac8,this[_0x56e5b4(0x134)]=_0x9b4616,this[_0x56e5b4(0xdb)]=_0x564566,_0x35673e(this,_0x56e5b4(0xe9),new Map()),this['_init']();}async[_0xea95ed(0xd0)](_0x473a21){const _0x385e8d=_0xea95ed;return this['_entities'][_0x385e8d(0x96)](_0x473a21)||await this[_0x385e8d(0x165)](_0x473a21),this['_entities'][_0x385e8d(0xef)](_0x473a21);}['getLiveShareCoordinatorSync'](_0x205c39){const _0xfaa9b6=_0xea95ed;var _0x1f777b;return(_0x1f777b=this[_0xfaa9b6(0xe9)]['get'](_0x205c39))==null?null:_0x1f777b;}[_0xea95ed(0xa2)](){const _0x1f9456=_0xea95ed;this[_0x1f9456(0xdc)][_0x1f9456(0x16f)](_0x25403c['UniverInstanceType']['UNIVER_SHEET'])[_0x1f9456(0xab)]((0x0,_0x14ddb0[_0x1f9456(0x9b)])(this[_0x1f9456(0x112)]))['subscribe'](async _0x517abc=>{const _0x58d1a7=_0x1f9456;let _0x4ed42a=_0x517abc[_0x58d1a7(0x160)]();this[_0x58d1a7(0xe9)][_0x58d1a7(0x96)](_0x4ed42a)||this[_0x58d1a7(0x165)](_0x4ed42a);}),this[_0x1f9456(0xdc)]['getTypeOfUnitDisposed$'](_0x25403c[_0x1f9456(0xa3)][_0x1f9456(0x149)])['pipe']((0x0,_0x14ddb0[_0x1f9456(0x9b)])(this['dispose$']))['subscribe'](_0x2dc9af=>{const _0x3ec802=_0x1f9456;let _0x2f0670=_0x2dc9af['getUnitId'](),_0x6f839b=this[_0x3ec802(0xe9)][_0x3ec802(0xef)](_0x2f0670);_0x6f839b==null||_0x6f839b['dispose']();});}async[_0xea95ed(0x165)](_0x25b2c6){const _0x1b3516=_0xea95ed;let _0x271c7b=await this[_0x1b3516(0xdb)][_0x1b3516(0x124)](_0x25b2c6),_0x274fc4=this['_injector']['createInstance'](_0x376b37,_0x25b2c6,_0x271c7b);return _0x274fc4['init'](),this[_0x1b3516(0xe9)][_0x1b3516(0x142)](_0x25b2c6,_0x274fc4),_0x274fc4;}};_0x1be1c9=_0x4cea80([_0x122da5(0x0,_0x25403c['IUniverInstanceService']),_0x122da5(0x1,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x25403c['Injector'])),_0x122da5(0x2,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x37a0b8[_0xea95ed(0xa4)]))],_0x1be1c9);let _0x2a84fe=function(_0x4fc361){const _0x24c136=_0xea95ed;return _0x4fc361[_0x24c136(0xe6)]=_0x24c136(0xe7),_0x4fc361[_0x24c136(0x13e)]=_0x24c136(0xdf),_0x4fc361[_0x24c136(0xcf)]=_0x24c136(0x167),_0x4fc361[_0x24c136(0x146)]=_0x24c136(0x14d),_0x4fc361['PRESENTING']='presenting',_0x4fc361;}({}),_0x376b37=class extends _0x25403c[_0xea95ed(0xe2)]{get['_status'](){const _0x29c1ba=_0xea95ed;return this[_0x29c1ba(0xd2)][_0x29c1ba(0xd5)]();}constructor(_0x275a67,_0x1a2fb7,_0x1d24a5,_0x45ef3c,_0x3b6659){const _0x2c8e1a=_0xea95ed;super(),this[_0x2c8e1a(0xb1)]=_0x275a67,this[_0x2c8e1a(0xf4)]=_0x1a2fb7,this[_0x2c8e1a(0xa6)]=_0x1d24a5,this['_liveShareService']=_0x45ef3c,this[_0x2c8e1a(0x132)]=_0x3b6659,_0x35673e(this,_0x2c8e1a(0xd2),new _0x253f4d[(_0x2c8e1a(0x143))](_0x2a84fe['IDLE'])),_0x35673e(this,_0x2c8e1a(0x14f),this[_0x2c8e1a(0xd2)][_0x2c8e1a(0xc9)]()),_0x35673e(this,'_init',!0x1),_0x35673e(this,_0x2c8e1a(0x169),null),_0x35673e(this,_0x2c8e1a(0x155),null);}[_0xea95ed(0x107)](){const _0x483047=_0xea95ed;var _0x4ae9fc;(_0x4ae9fc=this[_0x483047(0x169)])==null||_0x4ae9fc[_0x483047(0x107)](),this[_0x483047(0xd2)][_0x483047(0x152)](_0x2a84fe[_0x483047(0x13e)]),this[_0x483047(0xd2)][_0x483047(0x136)]();}['getStatus'](){const _0x7ea0b1=_0xea95ed;return this[_0x7ea0b1(0xd1)];}[_0xea95ed(0x15f)](){const _0x421c36=_0xea95ed;this[_0x421c36(0xa2)]||(this[_0x421c36(0xa2)]=!0x0,this[_0x421c36(0xf4)]['sessionStatus$'][_0x421c36(0xab)]((0x0,_0x14ddb0[_0x421c36(0x9b)])(this[_0x421c36(0x112)]))['subscribe'](_0xbf0178=>{const _0x3d8ee3=_0x421c36;switch(_0xbf0178){case _0x37a0b8[_0x3d8ee3(0x145)][_0x3d8ee3(0xe6)]:this[_0x3d8ee3(0x10c)]();break;case _0x37a0b8[_0x3d8ee3(0x145)]['ONLINE']:this[_0x3d8ee3(0x12f)]();break;default:}}),this[_0x421c36(0xf4)][_0x421c36(0xe4)][_0x421c36(0xab)]((0x0,_0x14ddb0[_0x421c36(0x9b)])(this[_0x421c36(0x112)]))['subscribe'](_0x41c957=>{const _0x3938e2=_0x421c36;let {eventID:_0x543e81}=_0x41c957;switch(_0x543e81){case _0x3d846a[_0x3938e2(0x104)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x41c957);break;case _0x3d846a[_0x3938e2(0x104)][_0x3938e2(0xb5)]:this[_0x3938e2(0x168)](_0x41c957);break;case _0x3d846a[_0x3938e2(0x104)]['LIVESHARE_TERMINATE']:this[_0x3938e2(0xf8)]();break;case _0x3d846a['CollaborationEvent'][_0x3938e2(0xc5)]:this[_0x3938e2(0x129)](_0x41c957);break;default:}}));}[_0xea95ed(0xb2)](){const _0x106704=_0xea95ed;this[_0x106704(0xf4)][_0x106704(0xde)]({'eventID':_0x3d846a['CollaborationEvent'][_0x106704(0x8f)],'data':{'unitID':this['_unitID'],'userID':this[_0x106704(0xf4)][_0x106704(0x9a)]()}},this[_0x106704(0xb1)]);}[_0xea95ed(0x10a)](){const _0xeb072a=_0xea95ed;this[_0xeb072a(0xd1)]===_0x2a84fe['PRESENTING']&&(this[_0xeb072a(0xd2)]['next'](_0x2a84fe[_0xeb072a(0x13e)]),this[_0xeb072a(0xf4)][_0xeb072a(0xde)]({'eventID':_0x3d846a[_0xeb072a(0x104)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xeb072a(0xb1)]}},this[_0xeb072a(0xb1)]));}[_0xea95ed(0x156)](){const _0x309a5e=_0xea95ed;this[_0x309a5e(0xd1)]===_0x2a84fe[_0x309a5e(0x146)]&&(this[_0x309a5e(0xd2)][_0x309a5e(0x152)](_0x2a84fe[_0x309a5e(0xcf)]),this[_0x309a5e(0x10f)]());}[_0xea95ed(0xb0)](){const _0x5c01f3=_0xea95ed;this[_0x5c01f3(0xd1)]===_0x2a84fe['FOLLOWING']&&this[_0x5c01f3(0xad)]();}[_0xea95ed(0xaa)](_0x3dd601){const _0x15aa2b=_0xea95ed;let {presenter:_0x56d81b}=_0x3dd601['data'],_0x2e103e=this[_0x15aa2b(0xf4)][_0x15aa2b(0x9a)]();this[_0x15aa2b(0x155)]=_0x56d81b,_0x56d81b===_0x2e103e?(this[_0x15aa2b(0xad)](),this[_0x15aa2b(0xbd)]()):this['_status']!==_0x2a84fe[_0x15aa2b(0x146)]&&(this[_0x15aa2b(0xbe)](),this[_0x15aa2b(0x10f)]());}['_fetchOperations'](){const _0x3a6bd4=_0xea95ed;let _0x9ed0d={'eventID':_0x3d846a['CollaborationEvent'][_0x3a6bd4(0x131)]};this['_collabSession'][_0x3a6bd4(0xde)](_0x9ed0d,this[_0x3a6bd4(0xb1)]);}[_0xea95ed(0xf8)](){const _0x48ced8=_0xea95ed;this[_0x48ced8(0x155)]=null,this[_0x48ced8(0xd1)]!==_0x2a84fe[_0x48ced8(0xf2)]&&this[_0x48ced8(0xbf)]();}[_0xea95ed(0x129)](_0x3d4a3f){const _0x487e87=_0xea95ed;if(this[_0x487e87(0xd1)]===_0x2a84fe[_0x487e87(0xcf)]&&this['_presenter']===_0x3d4a3f['data']['memberID']){let _0x45b0d2=(0x0,_0x3d846a[_0x487e87(0xc2)])(_0x3d4a3f[_0x487e87(0x106)])['mutations'][_0x487e87(0x105)]()[_0x487e87(0xcb)](_0x4e8f8f=>_0x4e8f8f['id']===_0x3a94ab[_0x487e87(0xff)]['id']);if(_0x45b0d2){let _0x43aaf5=_0x45b0d2['params']['unitId'],_0x1520f8=_0x45b0d2[_0x487e87(0xc8)][_0x487e87(0x90)]['id'];setTimeout(()=>{const _0x19144c=_0x487e87;this[_0x19144c(0x132)]['executeCommand'](_0x3a94ab[_0x19144c(0x141)]['id'],{'unitId':_0x43aaf5,'subUnitId':_0x1520f8},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x26a9ac=_0xea95ed;this['_status$'][_0x26a9ac(0x152)](_0x2a84fe[_0x26a9ac(0xf2)]);let _0x47d50e=new Map(),_0xb18f3=this[_0x26a9ac(0x169)]=new _0x25403c[(_0x26a9ac(0x98))]();_0xb18f3[_0x26a9ac(0x8d)]((0x0,_0x25403c['toDisposable'])(()=>{const _0x32d968=_0x26a9ac;_0x47d50e['forEach'](_0x4b216d=>_0x4b216d[_0x32d968(0x136)]()),_0x47d50e[_0x32d968(0xdd)]();})),_0xb18f3['add'](this['_commandService']['onCommandExecuted'](_0x187914=>{const _0x54b960=_0x26a9ac;if(_0x187914[_0x54b960(0x12c)]!==_0x25403c[_0x54b960(0x14e)][_0x54b960(0xf5)]||!this[_0x54b960(0x14c)]['shouldShareOperation'](_0x187914['id']))return;let {id:_0x1f3920}=_0x187914,_0x10195e;if(_0x47d50e[_0x54b960(0x96)](_0x1f3920))_0x10195e=_0x47d50e['get'](_0x1f3920);else{var _0x3e940a;_0x10195e=new _0x253f4d[(_0x54b960(0xe1))](),_0x47d50e[_0x54b960(0x142)](_0x1f3920,_0x10195e),_0x10195e['pipe']((0x0,_0x14ddb0[_0x54b960(0xb9)])((_0x3e940a=this['_configService']['getConfig'](_0x54b960(0x171)))==null?0xc8:_0x3e940a,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54b960(0x164)](_0x73f550=>{const _0x30896d=_0x54b960;this[_0x30896d(0xf4)][_0x30896d(0xde)]({'eventID':_0x3d846a['CollaborationEvent'][_0x30896d(0xb5)],'data':{'unitID':this[_0x30896d(0xb1)],'operations':{[_0x73f550['id']]:{'id':_0x73f550['id'],'params':JSON[_0x30896d(0x103)](_0x73f550['params'])}}}},this[_0x30896d(0xb1)]);});}_0x10195e[_0x54b960(0x152)](_0x187914);})),this['_liveShareService'][_0x26a9ac(0x15e)](this[_0x26a9ac(0xb1)])[_0x26a9ac(0xa9)](_0x155a4a=>this[_0x26a9ac(0xf4)][_0x26a9ac(0xde)]({'eventID':_0x3d846a[_0x26a9ac(0x104)][_0x26a9ac(0xb5)],'data':{'unitID':this['_unitID'],'operations':{[_0x155a4a['id']]:{'id':_0x155a4a['id'],'params':JSON[_0x26a9ac(0x103)](_0x155a4a['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x12c8d1=_0xea95ed;var _0x3f25a4;this[_0x12c8d1(0xd2)][_0x12c8d1(0x152)](_0x2a84fe[_0x12c8d1(0x13e)]),(_0x3f25a4=this['_commandDisposable'])==null||_0x3f25a4[_0x12c8d1(0x107)](),this[_0x12c8d1(0x169)]=null;}['_startFollowing'](){const _0x221586=_0xea95ed;var _0x561fda;(_0x561fda=this['_commandDisposable'])==null||_0x561fda[_0x221586(0x107)](),this[_0x221586(0xd2)][_0x221586(0x152)](_0x2a84fe[_0x221586(0xcf)]);}[_0xea95ed(0xbf)](){const _0x2f8ffa=_0xea95ed;var _0x506967;this[_0x2f8ffa(0xd2)][_0x2f8ffa(0x152)](_0x2a84fe[_0x2f8ffa(0x13e)]),(_0x506967=this[_0x2f8ffa(0x169)])==null||_0x506967['dispose'](),this[_0x2f8ffa(0x169)]=null;}['_stopFollowing'](){const _0x4634ab=_0xea95ed;var _0xd0605a;this[_0x4634ab(0xd2)][_0x4634ab(0x152)](_0x2a84fe[_0x4634ab(0x146)]),(_0xd0605a=this[_0x4634ab(0x169)])==null||_0xd0605a[_0x4634ab(0x107)]();}[_0xea95ed(0x168)](_0x40e980){const _0x52e2e0=_0xea95ed;if([_0x2a84fe[_0x52e2e0(0xf2)],_0x2a84fe[_0x52e2e0(0x146)],_0x2a84fe[_0x52e2e0(0xe6)]]['includes'](this[_0x52e2e0(0xd1)])||!_0x40e980['data']['presenter']||_0x40e980[_0x52e2e0(0x106)][_0x52e2e0(0xc4)]===this[_0x52e2e0(0xf4)][_0x52e2e0(0x9a)]())return;this[_0x52e2e0(0xd1)]===_0x2a84fe[_0x52e2e0(0x13e)]&&this['_startFollowing']();let _0x26d455=_0x40e980[_0x52e2e0(0x106)][_0x52e2e0(0xa8)];Object[_0x52e2e0(0xc3)](_0x26d455)['forEach'](_0x59a567=>{const _0x3b839e=_0x52e2e0;this[_0x3b839e(0x132)][_0x3b839e(0xe0)](_0x59a567['id'],_0x59a567[_0x3b839e(0xc8)]?JSON['parse'](_0x59a567[_0x3b839e(0xc8)]):null,{'fromCollab':!0x0});});}[_0xea95ed(0x10c)](){const _0x1820e9=_0xea95ed;var _0x50c2c2;this[_0x1820e9(0xd2)][_0x1820e9(0x152)](_0x2a84fe[_0x1820e9(0xe6)]),(_0x50c2c2=this[_0x1820e9(0x169)])==null||_0x50c2c2['dispose']();}[_0xea95ed(0x12f)](){const _0x3afd2c=_0xea95ed;this[_0x3afd2c(0xd2)]['next'](_0x2a84fe[_0x3afd2c(0x13e)]),this[_0x3afd2c(0xfd)]();}};_0x376b37=_0x4cea80([_0x122da5(0x2,_0x25403c[_0xea95ed(0x126)]),_0x122da5(0x3,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x14fd7f)),_0x122da5(0x4,_0x25403c[_0xea95ed(0xda)])],_0x376b37);function _0xa5b6ce(){const _0x4c7e55=_0xea95ed;let _0x4db326=(0x0,_0x40091d[_0x4c7e55(0x15b)])(_0x1be1c9),_0x10b994=(0x0,_0x40091d[_0x4c7e55(0x15b)])(_0x25403c[_0x4c7e55(0x14a)]),_0x22c557=(0x0,_0x40091d[_0x4c7e55(0x150)])(()=>_0x10b994[_0x4c7e55(0xb7)](_0x25403c['UniverInstanceType'][_0x4c7e55(0x149)]),void 0x0,!0x1,[]),[_0xf92fca,_0x497e01]=(0x0,_0x698833[_0x4c7e55(0x12b)])(null),[_0x37027f,_0x77afea]=(0x0,_0x698833[_0x4c7e55(0x12b)])(_0x2a84fe[_0x4c7e55(0x13e)]),_0x46cbc3=(0x0,_0x698833['useRef'])(null);return(0x0,_0x698833[_0x4c7e55(0xce)])(()=>(_0x22c557&&_0x4db326[_0x4c7e55(0xd0)](_0x22c557[_0x4c7e55(0x160)]())['then'](_0x16b62=>{const _0x594f6c=_0x4c7e55;_0x497e01(_0x16b62),_0x46cbc3[_0x594f6c(0xe5)]=_0x16b62[_0x594f6c(0x14f)][_0x594f6c(0x164)](_0x223d65=>{_0x77afea(_0x223d65);});}),()=>{const _0x53f687=_0x4c7e55;var _0x1844f1;(_0x1844f1=_0x46cbc3[_0x53f687(0xe5)])==null||_0x1844f1['unsubscribe'](),_0x46cbc3[_0x53f687(0xe5)]=null;}),[_0x22c557,_0x4db326]),_0xf92fca?(0x0,_0x51c009[_0x4c7e55(0x13a)])(_0x1db43b[_0x4c7e55(0xaf)],{'align':_0x4c7e55(0x120),'disabled':_0x37027f===_0x2a84fe[_0x4c7e55(0xe6)],'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,_0x51c009['jsx'])(_0x4cbc04,{'status':_0x37027f,'coordinator':_0xf92fca}),'children':(0x0,_0x51c009[_0x4c7e55(0x13a)])(_0x4c7e55(0xbc),{'className':(0x0,_0x1db43b[_0x4c7e55(0x12e)])(_0x4c7e55(0xa7),{'univer-cursor-not-allowed':_0x37027f===_0x2a84fe[_0x4c7e55(0xe6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37027f!==_0x2a84fe[_0x4c7e55(0xe6)]}),'type':_0x4c7e55(0xbc),'children':(0x0,_0x51c009[_0x4c7e55(0x13a)])(_0x14d026,{'className':'univer-size-4'})})}):null;}function _0x4cbc04(_0xffba83){const _0x5bf868=_0xea95ed;let {status:_0x529e46,coordinator:_0x298364}=_0xffba83;switch(_0x529e46){case _0x2a84fe[_0x5bf868(0x13e)]:return(0x0,_0x51c009[_0x5bf868(0x13a)])(_0x196f26,{'coordinator':_0x298364});case _0x2a84fe[_0x5bf868(0xcf)]:return(0x0,_0x51c009['jsx'])(_0x5ad625,{'coordinator':_0x298364});case _0x2a84fe['NOT_FOLLOWING']:return(0x0,_0x51c009[_0x5bf868(0x13a)])(_0x53bf64,{'coordinator':_0x298364});case _0x2a84fe['OFFLINE']:return(0x0,_0x51c009[_0x5bf868(0x13a)])(_0x50469b,{});case _0x2a84fe['PRESENTING']:return(0x0,_0x51c009['jsx'])(_0x287f33,{'coordinator':_0x298364});default:return null;}}function _0x196f26(_0x12d480){const _0x25db99=_0xea95ed;let {coordinator:_0x249268}=_0x12d480;return(0x0,_0x51c009['jsxs'])(_0x51c009[_0x25db99(0xcd)],{'children':[(0x0,_0x51c009[_0x25db99(0x13a)])('div',{'className':_0x25db99(0xd9),'children':'Present\x20this\x20document'}),(0x0,_0x51c009[_0x25db99(0x13a)])(_0x1db43b['Button'],{'onClick':()=>_0x249268[_0x25db99(0xb2)](),'children':_0x25db99(0x8e)})]});}function _0x5ad625(_0x3cb7ca){const _0x47bafe=_0xea95ed;let {coordinator:_0x2265ed}=_0x3cb7ca;return(0x0,_0x51c009[_0x47bafe(0x157)])(_0x51c009['Fragment'],{'children':[(0x0,_0x51c009[_0x47bafe(0x13a)])(_0x47bafe(0x170),{'className':_0x47bafe(0xd9),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x51c009['jsx'])(_0x1db43b[_0x47bafe(0xfa)],{'onClick':()=>_0x2265ed[_0x47bafe(0xb0)](),'children':'Stop\x20following'})]});}function _0x53bf64(_0x3d9707){const _0x2a65bf=_0xea95ed;let {coordinator:_0x4293d3}=_0x3d9707;return(0x0,_0x51c009['jsxs'])(_0x51c009[_0x2a65bf(0xcd)],{'children':[(0x0,_0x51c009[_0x2a65bf(0x13a)])(_0x2a65bf(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a65bf(0x128)}),(0x0,_0x51c009[_0x2a65bf(0x13a)])(_0x1db43b[_0x2a65bf(0xfa)],{'variant':_0x2a65bf(0x99),'onClick':()=>_0x4293d3['startFollowing'](),'children':_0x2a65bf(0xc7)})]});}function _0x287f33(_0xf884a7){const _0x230e5f=_0xea95ed;let {coordinator:_0x440586}=_0xf884a7;return(0x0,_0x51c009['jsxs'])(_0x51c009['Fragment'],{'children':[(0x0,_0x51c009['jsx'])(_0x230e5f(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x230e5f(0x122)}),(0x0,_0x51c009['jsx'])(_0x1db43b[_0x230e5f(0xfa)],{'variant':_0x230e5f(0xca),'onClick':()=>_0x440586[_0x230e5f(0x10a)](),'children':_0x230e5f(0x137)})]});}function _0x50469b(){const _0x4eb797=_0xea95ed;return(0x0,_0x51c009[_0x4eb797(0x13a)])(_0x51c009['Fragment'],{'children':_0x4eb797(0x108)});}let _0x126655=class extends _0x25403c['Disposable']{constructor(_0x51c95d,_0x5f1ee6){const _0x337e22=_0xea95ed;super(),this['_injector']=_0x51c95d,this[_0x337e22(0x125)]=_0x5f1ee6,this['_mountLiveShare']();}[_0xea95ed(0x9e)](){const _0x378e14=_0xea95ed;this[_0x378e14(0xc0)](this[_0x378e14(0x125)][_0x378e14(0x135)](_0x40091d[_0x378e14(0xbb)][_0x378e14(0x158)],()=>(0x0,_0x40091d[_0x378e14(0xc6)])(_0xa5b6ce,this['_injector'])));}};_0x126655=_0x4cea80([_0x122da5(0x0,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x25403c['Injector'])),_0x122da5(0x1,_0x40091d['IUIPartsService'])],_0x126655);var _0x53d12f='@univerjs-pro/live-share',_0x18ad90='0.20.0';let _0x36699e=_0xea95ed(0x13f);Symbol(_0x36699e);let _0x54fb9a={},_0xddbd5f=class extends _0x25403c[_0xea95ed(0x12a)]{constructor(_0x4391f8){const _0x2c94c5=_0xea95ed;super(),this[_0x2c94c5(0x14c)]=_0x4391f8,this[_0x2c94c5(0xa2)]();}[_0xea95ed(0xa2)](){const _0x4c9a43=_0xea95ed;[_0x58031e[_0x4c9a43(0x102)]['id'],_0x58031e[_0x4c9a43(0xf9)]['id'],_0x3a94ab[_0x4c9a43(0x141)]['id']][_0x4c9a43(0xa9)](_0x4fe8d5=>{const _0x1f19a7=_0x4c9a43;this[_0x1f19a7(0xc0)](this[_0x1f19a7(0x14c)][_0x1f19a7(0x13d)](_0x4fe8d5));});}};_0xddbd5f=_0x4cea80([_0x122da5(0x0,(0x0,_0x25403c[_0xea95ed(0x13c)])(_0x14fd7f))],_0xddbd5f);let _0xb9b4c=class extends _0x25403c[_0xea95ed(0xba)]{constructor(_0x367b03=_0x54fb9a,_0x5e0eda,_0x3e2fc8){const _0x2088ec=_0xea95ed;super(),this[_0x2088ec(0x16a)]=_0x367b03,this[_0x2088ec(0x134)]=_0x5e0eda,this[_0x2088ec(0xa6)]=_0x3e2fc8;let {..._0x8b024d}=(0x0,_0x25403c[_0x2088ec(0x15a)])({},_0x54fb9a,this['_config']);this[_0x2088ec(0xa6)]['setConfig'](_0x36699e,_0x8b024d);}[_0xea95ed(0x121)](){const _0x37cd3e=_0xea95ed;(0x0,_0x25403c[_0x37cd3e(0xec)])(this[_0x37cd3e(0x134)],(0x0,_0x25403c[_0x37cd3e(0xb6)])([[_0x14fd7f],[_0x1be1c9],[_0xddbd5f],[_0x126655]],this[_0x37cd3e(0x16a)]['override'])),(0x0,_0x25403c['touchDependencies'])(this[_0x37cd3e(0x134)],[[_0xddbd5f]]);}[_0xea95ed(0xb4)](){const _0xff7497=_0xea95ed;(0x0,_0x25403c[_0xff7497(0x97)])(this['_injector'],[[_0x126655]]);}};_0x35673e(_0xb9b4c,_0xea95ed(0x12c),_0x25403c['UniverInstanceType']['UNIVER_UNKNOWN']),_0x35673e(_0xb9b4c,_0xea95ed(0xd4),'UNIVER_LIVE_SHARE_PLUGIN'),_0x35673e(_0xb9b4c,_0xea95ed(0x151),_0x53d12f),_0x35673e(_0xb9b4c,_0xea95ed(0x118),_0x18ad90),_0xb9b4c=_0x4cea80([(0x0,_0x25403c[_0xea95ed(0x116)])(_0x37a0b8[_0xea95ed(0x11f)]),_0x122da5(0x1,(0x0,_0x25403c['Inject'])(_0x25403c[_0xea95ed(0xf6)])),_0x122da5(0x2,_0x25403c['IConfigService'])],_0xb9b4c),Object['defineProperty'](_0x5c60ac,_0xea95ed(0xf3),{'enumerable':!0x0,'get':function(){return _0x126655;}}),_0x5c60ac[_0xea95ed(0xb3)]=_0xa5b6ce,Object[_0xea95ed(0x16b)](_0x5c60ac,_0xea95ed(0xf7),{'enumerable':!0x0,'get':function(){return _0x1be1c9;}}),Object[_0xea95ed(0x16b)](_0x5c60ac,_0xea95ed(0x11e),{'enumerable':!0x0,'get':function(){return _0x376b37;}}),_0x5c60ac[_0xea95ed(0x13b)]=_0x14fd7f,_0x5c60ac[_0xea95ed(0x10b)]=_0x2a84fe,Object['defineProperty'](_0x5c60ac,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return _0xb9b4c;}});}));function _0x5c50(_0x30d0ae,_0x256edd){_0x30d0ae=_0x30d0ae-0x8d;const _0x5db78e=_0x5db7();let _0x5c5058=_0x5db78e[_0x30d0ae];return _0x5c5058;}function _0x5db7(){const _0x4b80af=['_handleTerminate','SetScrollOperation','Button','map','320494TbhdHr','_fetchOperations','operators','InsertSheetMutation','391650zYbYJP','react/jsx-runtime','SetZoomRatioOperation','stringify','CollaborationEvent','reverse','data','dispose','You\x27are\x20offline.','React','stopPresenting','LiveShareStatus','_handleOffline','exports','getOwnPropertyDescriptor','_startFollowing','currentColor','registerInitialStateReporter','dispose$','3290LfnFht','UniverCore','toStringTag','DependentOn','UniverUi','version','function','substring','mask','UniverProCollaborationClient','Module','LiveShareCoordinator','UniverCollaborationClientPlugin','end','onStarting','You\x27re\x20presenting\x20the\x20document','xlink:href','requireSession','_uiPartsService','IConfigService','random','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewChangeSets','Disposable','useState','type','@univerjs/sheets-ui','clsx','_handleOnline','rxjs','LIVESHARE_FETCH_OPERATIONS','_commandService','trim','_injector','registerComponent','complete','Stop\x20presenting','UniverSheetsUi','1em','jsx','LiveShareService','Inject','registerSharedOperation','IDLE','live-share.config','UniverProCollaboration','SetWorksheetActiveOperation','set','BehaviorSubject','http://www.w3.org/2000/svg','SessionStatus','NOT_FOLLOWING','4668pZUjnm','idSuffix','UNIVER_SHEET','IUniverInstanceService','UniverIcon','_liveShareService','not-following','CommandType','status$','useObservable','packageName','next','string','univerjs-icon\x20univerjs-icon-','_presenter','startFollowing','jsxs','HEADER_MENU','live-share-icon','merge','useDependency','constructor','decorate','getInitialStates','init','getUnitId','1755114XCtPfY','10VnXiIp','path','subscribe','_startLiveShareCoordinator','toString','following','_handleOperation','_commandDisposable','_config','defineProperty','158972VgRToj','from','9rYOjaw','getTypeOfUnitAdded$','div','SAME_OPERATION_SHARE_INTERVAL','add','Start','LIVESHARE_REQUEST_HOST','sheet','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','url(#$1','children','_reporters','attrs','has','touchDependencies','DisposableCollection','text','getMemberID','takeUntil','replace','length','_mountLiveShare','amd','@univerjs/ui','colorChannel1','_init','UniverInstanceType','CollaborationSessionService','toPrimitive','_configService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operations','forEach','_handleNewHost','pipe','2zbOmyV','_stopFollowing','symbol','Dropdown','stopFollowing','_unitID','tryStartPresenting','LiveShare','onRendered','LIVESHARE_OPERATION','mergeOverrideWithDependencies','getCurrentTypeOfUnit$','2120208buHxrp','throttleTime','Plugin','BuiltInUIPart','button','_startPresenting','_stopPresenting','_beIdle','disposeWithMe','evenodd','parseProtocolChangeset','values','presenter','NEW_CHANGESETS','connectInjector','Start\x20following','params','asObservable','default','find','@univerjs/core','Fragment','useEffect','FOLLOWING','getLiveShareCoordinator','_status','_status$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','getValue','displayName','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','UniverDesign','univer-mb-3\x20univer-w-full\x20univer-text-sm','ICommandService','_collabSessionService','_univerInstanceService','clear','send','idle','executeCommand','Subject','RxDisposable','object','event$','current','OFFLINE','offline','tag','_entities','createElement','useRef','registerDependencies','entries','assign','get','7034566vQlznz','_sharedOperations','PRESENTING','DesktopLiveShareController','_collabSession','OPERATION','Injector','LiveShareController'];_0x5db7=function(){return _0x4b80af;};return _0x5db7();}
|
|
1
|
+
function _0x576d(_0x397d9e,_0x4995d7){_0x397d9e=_0x397d9e-0xbe;const _0x13afcb=_0x13af();let _0x576d93=_0x13afcb[_0x397d9e];return _0x576d93;}function _0x13af(){const _0x4d296e=['Module','_status$','_status','map','_handleNewChangeSets','dispose','_reporters','toStringTag','0.20.1','getInitialStates','getLiveShareCoordinator','Start','_commandService','parse','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useRef','useEffect','rxjs/operators','_commandDisposable','touchDependencies','asObservable','NOT_FOLLOWING','clsx','CollaborationSessionService','div','_startFollowing','Present\x20this\x20document','from','useDependency','30582DeGKnI','get','toString','then','defineProperty','substring','_presenter','attrs','evenodd','none','LIVESHARE_FETCH_OPERATIONS','reverse','jsxs','override','React','OFFLINE','NEW_CHANGESETS','rxjs','LIVESHARE_OPERATION','params','@univerjs/sheets-ui','IUIPartsService','_startLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','165362mQALhU','1em','following','DisposableCollection','LiveShareIcon','idle','constructor','SetZoomRatioOperation','@univerjs-pro/collaboration','pluginName','complete','end','iterator','getOwnPropertyDescriptor','svg','6860oJqilN','UNIVER_LIVE_SHARE_PLUGIN','clear','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','@univerjs-pro/live-share','url(#$1','event$','LIVESHARE_NEW_HOST','43476ZnyycP','UNIVER_UNKNOWN','UniverProLiveShare','_fetchOperations','prototype','UniverProCollaborationClient','FOLLOWING','_handleOnline','status$','entries','_configService','unitId','SetWorksheetActiveOperation','UniverLiveSharePlugin','idSuffix','registerInitialStateReporter','BehaviorSubject','disposeWithMe','offline','ICommandService','_mountLiveShare','registerSharedOperation','add','mergeOverrideWithDependencies','SetScrollOperation','Inject','type','colorChannel1','text','univerjs-icon\x20univerjs-icon-','next','http://www.w3.org/2000/svg','symbol','use','_handleOffline','dispose$','requireSession','startFollowing','UniverSheetsUi','_handleOperation','has','throttleTime','button','_unitID','length','string','HEADER_MENU','BuiltInUIPart','defs','defIds','useState','getTypeOfUnitDisposed$','RxDisposable','find','fill','@univerjs/design','registerComponent','merge','replace','_sharedOperations','@univerjs/sheets','113897uIcNDe','_collabSessionService','registerDependencies','_uiPartsService','init','call','tag','565xRhbNg','getUnitId','LIVESHARE_TERMINATE','useObservable','LiveShare','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','data','stringify','LiveShareCoordinator','presenting','currentColor','live-share.config','tryStartPresenting','Injector','_beIdle','IUniverInstanceService','SessionStatus','LIVESHARE_REQUEST_HOST','UniverInstanceType','createInstance','stopPresenting','assign','InsertSheetMutation','LiveShareStatus','getMemberID','unsubscribe','displayName','mask','parseProtocolChangeset','operators','onCommandExecuted','CommandType','createElement','_liveShareService','children','_config','_handleNewHost','@univerjs-pro/collaboration-client','packageName','decorate','PRESENTING','IDLE','UniverSheets','CollaborationEvent','_stopPresenting','@univerjs/ui','forEach','pipe','UniverIcon','delete','jsx','path','toDisposable','send','getCurrentTypeOfUnit$','memberID','_univerInstanceService','xlink:href','function','includes','current','Button','_stopFollowing','1549135sbGvvX','getValue','trim','univer-size-4','univer-mb-3\x20univer-w-full\x20univer-text-sm','exports','_handleTerminate','Fragment','onStarting','You\x27re\x20not\x20following\x20the\x20presenter','react','Stop\x20following','values','0\x200\x2017\x2017','subscribe','_collabSession','888fcgMoe','sessionStatus$','stopFollowing','1452738uBTeLc','executeCommand','Stop\x20presenting','IConfigService','_injector','presenter','object','Start\x20following','takeUntil','set','_entities','_init'];_0x13af=function(){return _0x4d296e;};return _0x13af();}(function(_0xc03d80,_0x173d1c){const _0x28bb8e=_0x576d,_0x2ab579=_0xc03d80();while(!![]){try{const _0x21953e=parseInt(_0x28bb8e(0x13a))/0x1+-parseInt(_0x28bb8e(0xe5))/0x2+-parseInt(_0x28bb8e(0xfd))/0x3+-parseInt(_0x28bb8e(0xf4))/0x4*(-parseInt(_0x28bb8e(0x141))/0x5)+-parseInt(_0x28bb8e(0x193))/0x6+-parseInt(_0x28bb8e(0x180))/0x7+-parseInt(_0x28bb8e(0x190))/0x8*(-parseInt(_0x28bb8e(0xcc))/0x9);if(_0x21953e===_0x173d1c)break;else _0x2ab579['push'](_0x2ab579['shift']());}catch(_0x5a7fbb){_0x2ab579['push'](_0x2ab579['shift']());}}}(_0x13af,0x1e56d),function(_0x21acac,_0x3c98c0){const _0x3c6872=_0x576d;typeof exports==_0x3c6872(0x199)&&typeof module<'u'?_0x3c98c0(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==_0x3c6872(0x17b)&&define['amd']?define([_0x3c6872(0x185),'@univerjs/core',_0x3c6872(0x16e),_0x3c6872(0x134),_0x3c6872(0x18a),_0x3c6872(0xed),_0x3c6872(0x166),_0x3c6872(0x139),'rxjs',_0x3c6872(0xc0),'react/jsx-runtime',_0x3c6872(0xe0)],_0x3c98c0):(_0x21acac=typeof globalThis<'u'?globalThis:_0x21acac||self,_0x3c98c0(_0x21acac[_0x3c6872(0xff)]={},_0x21acac['UniverCore'],_0x21acac['UniverUi'],_0x21acac['UniverDesign'],_0x21acac[_0x3c6872(0xda)],_0x21acac['UniverProCollaboration'],_0x21acac[_0x3c6872(0x102)],_0x21acac[_0x3c6872(0x16b)],_0x21acac[_0x3c6872(0xdd)],_0x21acac[_0x3c6872(0xdd)][_0x3c6872(0x15e)],_0x21acac[_0x3c6872(0xda)],_0x21acac[_0x3c6872(0x123)]));}(this,function(_0x376925,_0x2c679f,_0xc1e0c9,_0x385cd9,_0x563a95,_0x186570,_0x278b6b,_0xff9b04,_0x4d837f,_0x317249,_0x235c00,_0x240968){const _0x10b09b=_0x576d;Object[_0x10b09b(0xd0)](_0x376925,Symbol[_0x10b09b(0x1a6)],{'value':_0x10b09b(0x19f)});function _0x1723f3({ref:_0x8e5106,..._0x445aa3}){const _0x369df6=_0x10b09b;let {icon:_0x17d061,id:_0x242d8e,className:_0x236740,extend:_0x1e53b9,..._0x52f821}=_0x445aa3,_0x135d2=(_0x369df6(0x11a)+_0x242d8e+'\x20'+(_0x236740||''))[_0x369df6(0x182)](),_0x4431ef=(0x0,_0x563a95[_0x369df6(0xbe)])('_'+_0x481168());return _0x1f6235(_0x17d061,''+_0x242d8e,{'defIds':_0x17d061[_0x369df6(0x12e)],'idSuffix':_0x4431ef[_0x369df6(0x17d)]},{'ref':_0x8e5106,'className':_0x135d2,..._0x52f821},_0x1e53b9);}function _0x1f6235(_0x1dc5b8,_0x2367eb,_0x116389,_0x23bcd2,_0x5d21f4){const _0x4166e1=_0x10b09b;return(0x0,_0x563a95['createElement'])(_0x1dc5b8[_0x4166e1(0x140)],{'key':_0x2367eb,..._0x431f66(_0x1dc5b8,_0x116389,_0x5d21f4),..._0x23bcd2},(_0x46de27(_0x1dc5b8,_0x116389)[_0x4166e1(0x163)]||[])[_0x4166e1(0x1a2)]((_0x2e740c,_0x3f8d56)=>_0x1f6235(_0x2e740c,_0x2367eb+'-'+_0x1dc5b8[_0x4166e1(0x140)]+'-'+_0x3f8d56,_0x116389,void 0x0,_0x5d21f4)));}function _0x431f66(_0x193a7d,_0x13ab7d,_0x515fa6){const _0x4b4f05=_0x10b09b;let _0x18fec0={..._0x193a7d['attrs']};_0x515fa6!=null&&_0x515fa6[_0x4b4f05(0x118)]&&_0x18fec0[_0x4b4f05(0x133)]===_0x4b4f05(0x118)&&(_0x18fec0[_0x4b4f05(0x133)]=_0x515fa6[_0x4b4f05(0x118)]),_0x193a7d[_0x4b4f05(0x140)]===_0x4b4f05(0x15c)&&_0x18fec0['id']&&(_0x18fec0['id']+=_0x13ab7d['idSuffix']),Object[_0x4b4f05(0x106)](_0x18fec0)[_0x4b4f05(0x16f)](([_0x11e18d,_0x1598bc])=>{const _0x151b13=_0x4b4f05;_0x11e18d===_0x151b13(0x15c)&&typeof _0x1598bc==_0x151b13(0x12a)&&(_0x18fec0[_0x11e18d]=_0x1598bc[_0x151b13(0x137)](/url\(#(.*)\)/,_0x151b13(0xfa)+_0x13ab7d[_0x151b13(0x10b)]+')'));});let {defIds:_0x591307}=_0x13ab7d;return!_0x591307||_0x591307['length']===0x0?_0x18fec0:(_0x193a7d['tag']===_0x4b4f05(0x11e)&&_0x18fec0[_0x4b4f05(0x17a)]&&(_0x18fec0[_0x4b4f05(0x17a)]+=_0x13ab7d[_0x4b4f05(0x10b)]),Object[_0x4b4f05(0x106)](_0x18fec0)[_0x4b4f05(0x16f)](([_0x225076,_0x4dc943])=>{const _0x3326a7=_0x4b4f05;typeof _0x4dc943==_0x3326a7(0x12a)&&(_0x18fec0[_0x225076]=_0x4dc943[_0x3326a7(0x137)](/url\(#(.*)\)/,'url(#$1'+_0x13ab7d[_0x3326a7(0x10b)]+')'));}),_0x18fec0);}function _0x46de27(_0x408169,_0x2d03e1){const _0x1cae99=_0x10b09b;var _0x441d8e;let {defIds:_0x5113da}=_0x2d03e1;return!_0x5113da||_0x5113da[_0x1cae99(0x129)]===0x0?_0x408169:_0x408169[_0x1cae99(0x140)]===_0x1cae99(0x12d)&&(_0x441d8e=_0x408169[_0x1cae99(0x163)])!=null&&_0x441d8e[_0x1cae99(0x129)]?{..._0x408169,'children':_0x408169['children']['map'](_0xf3938e=>typeof _0xf3938e[_0x1cae99(0xd3)]['id']==_0x1cae99(0x12a)&&_0x5113da&&_0x5113da['includes'](_0xf3938e[_0x1cae99(0xd3)]['id'])?{..._0xf3938e,'attrs':{..._0xf3938e['attrs'],'id':_0xf3938e['attrs']['id']+_0x2d03e1[_0x1cae99(0x10b)]}}:_0xf3938e)}:_0x408169;}function _0x481168(){const _0x95eeb6=_0x10b09b;return Math['random']()[_0x95eeb6(0xce)](0x24)[_0x95eeb6(0xd1)](0x2,0x8);}_0x1723f3['displayName']=_0x10b09b(0x171);let _0x500203={'tag':_0x10b09b(0xf3),'attrs':{'xmlns':_0x10b09b(0x11c),'fill':_0x10b09b(0xd5),'viewBox':_0x10b09b(0x18d),'width':_0x10b09b(0xe6),'height':_0x10b09b(0xe6)},'children':[{'tag':_0x10b09b(0x174),'attrs':{'fill':_0x10b09b(0x14b),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x10b09b(0x174),'attrs':{'fill':'currentColor','d':_0x10b09b(0x146),'fillRule':_0x10b09b(0xd4),'clipRule':_0x10b09b(0xd4)}}]},_0x263fa1=(0x0,_0x563a95['forwardRef'])(function(_0x1a899d,_0x3c600b){const _0x35151d=_0x10b09b;return(0x0,_0x563a95[_0x35151d(0x161)])(_0x1723f3,Object[_0x35151d(0x156)]({},_0x1a899d,{'id':'live-share-icon','ref':_0x3c600b,'icon':_0x500203}));});_0x263fa1[_0x10b09b(0x15b)]=_0x10b09b(0xe9);function _0x151e1c(_0x49b182){'@babel/helpers - typeof';const _0x21934f=_0x10b09b;return _0x151e1c=typeof Symbol=='function'&&typeof Symbol[_0x21934f(0xf1)]==_0x21934f(0x11d)?function(_0x24efbd){return typeof _0x24efbd;}:function(_0x58d34b){const _0x34430c=_0x21934f;return _0x58d34b&&typeof Symbol==_0x34430c(0x17b)&&_0x58d34b[_0x34430c(0xeb)]===Symbol&&_0x58d34b!==Symbol[_0x34430c(0x101)]?_0x34430c(0x11d):typeof _0x58d34b;},_0x151e1c(_0x49b182);}function _0x23c80d(_0x3e7dca,_0x3d64c3){const _0x52b8ec=_0x10b09b;if(_0x151e1c(_0x3e7dca)!=_0x52b8ec(0x199)||!_0x3e7dca)return _0x3e7dca;var _0x4f43b6=_0x3e7dca[Symbol['toPrimitive']];if(_0x4f43b6!==void 0x0){var _0x43a230=_0x4f43b6[_0x52b8ec(0x13f)](_0x3e7dca,_0x3d64c3||'default');if(_0x151e1c(_0x43a230)!='object')return _0x43a230;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3d64c3===_0x52b8ec(0x12a)?String:Number)(_0x3e7dca);}function _0x30b203(_0xbecac){const _0x3fd683=_0x10b09b;var _0x46846f=_0x23c80d(_0xbecac,_0x3fd683(0x12a));return _0x151e1c(_0x46846f)==_0x3fd683(0x11d)?_0x46846f:_0x46846f+'';}function _0x505bbd(_0x48b9de,_0x4d3f0b,_0x3a14b8){const _0x51d4f5=_0x10b09b;return(_0x4d3f0b=_0x30b203(_0x4d3f0b))in _0x48b9de?Object[_0x51d4f5(0xd0)](_0x48b9de,_0x4d3f0b,{'value':_0x3a14b8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48b9de[_0x4d3f0b]=_0x3a14b8,_0x48b9de;}var _0x1c9d70=class extends _0x2c679f['Disposable']{constructor(..._0x431548){const _0x1d62b3=_0x10b09b;super(..._0x431548),_0x505bbd(this,'_sharedOperations',new Set()),_0x505bbd(this,_0x1d62b3(0x1a5),new Set());}[_0x10b09b(0x112)](_0x444abd){const _0xc80d2f=_0x10b09b;return this['_sharedOperations'][_0xc80d2f(0x113)](_0x444abd),(0x0,_0x2c679f[_0xc80d2f(0x175)])(()=>this[_0xc80d2f(0x138)]['delete'](_0x444abd));}[_0x10b09b(0x10c)](_0x4546c9){const _0x25ff0c=_0x10b09b;return this[_0x25ff0c(0x1a5)][_0x25ff0c(0x113)](_0x4546c9),(0x0,_0x2c679f['toDisposable'])(()=>this['_reporters'][_0x25ff0c(0x172)](_0x4546c9));}['shouldShareOperation'](_0x46528d){const _0xf830c7=_0x10b09b;return this['_sharedOperations'][_0xf830c7(0x125)](_0x46528d);}['getInitialStates'](_0x109faa){const _0x40bd2c=_0x10b09b;return Array[_0x40bd2c(0xca)](this[_0x40bd2c(0x1a5)])[_0x40bd2c(0x1a2)](_0xc152b7=>_0xc152b7(_0x109faa));}};function _0x282446(_0x49388a,_0x84d9f9){return function(_0x23ea23,_0x47b13d){_0x84d9f9(_0x23ea23,_0x47b13d,_0x49388a);};}function _0x169a0a(_0x194dbd,_0xed8f87,_0xbe0c4b,_0x1d138b){const _0x54edf6=_0x10b09b;var _0x5daa74=arguments[_0x54edf6(0x129)],_0xed58f0=_0x5daa74<0x3?_0xed8f87:_0x1d138b===null?_0x1d138b=Object[_0x54edf6(0xf2)](_0xed8f87,_0xbe0c4b):_0x1d138b,_0x2bc64f;if(typeof Reflect==_0x54edf6(0x199)&&typeof Reflect[_0x54edf6(0x168)]=='function')_0xed58f0=Reflect[_0x54edf6(0x168)](_0x194dbd,_0xed8f87,_0xbe0c4b,_0x1d138b);else{for(var _0x22a0d1=_0x194dbd[_0x54edf6(0x129)]-0x1;_0x22a0d1>=0x0;_0x22a0d1--)(_0x2bc64f=_0x194dbd[_0x22a0d1])&&(_0xed58f0=(_0x5daa74<0x3?_0x2bc64f(_0xed58f0):_0x5daa74>0x3?_0x2bc64f(_0xed8f87,_0xbe0c4b,_0xed58f0):_0x2bc64f(_0xed8f87,_0xbe0c4b))||_0xed58f0);}return _0x5daa74>0x3&&_0xed58f0&&Object[_0x54edf6(0xd0)](_0xed8f87,_0xbe0c4b,_0xed58f0),_0xed58f0;}let _0x528b4f=class extends _0x2c679f[_0x10b09b(0x131)]{constructor(_0xfa4e48,_0x42fd80,_0x34b5cc){const _0x37ba39=_0x10b09b;super(),this[_0x37ba39(0x179)]=_0xfa4e48,this[_0x37ba39(0x197)]=_0x42fd80,this['_collabSessionService']=_0x34b5cc,_0x505bbd(this,_0x37ba39(0x19d),new Map()),this[_0x37ba39(0x19e)]();}async[_0x10b09b(0x1a9)](_0x27f22f){const _0x17a261=_0x10b09b;return this['_entities'][_0x17a261(0x125)](_0x27f22f)||await this[_0x17a261(0xe2)](_0x27f22f),this['_entities'][_0x17a261(0xcd)](_0x27f22f);}[_0x10b09b(0xe4)](_0x2bcc8d){const _0x331764=_0x10b09b;var _0x4064ea;return(_0x4064ea=this[_0x331764(0x19d)][_0x331764(0xcd)](_0x2bcc8d))==null?null:_0x4064ea;}[_0x10b09b(0x19e)](){const _0xb8e567=_0x10b09b;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2c679f[_0xb8e567(0x153)]['UNIVER_SHEET'])[_0xb8e567(0x170)]((0x0,_0x317249[_0xb8e567(0x19b)])(this['dispose$']))[_0xb8e567(0x18e)](async _0xbc301=>{const _0x367a36=_0xb8e567;let _0x5ee41d=_0xbc301[_0x367a36(0x142)]();this[_0x367a36(0x19d)][_0x367a36(0x125)](_0x5ee41d)||this['_startLiveShareCoordinator'](_0x5ee41d);}),this[_0xb8e567(0x179)][_0xb8e567(0x130)](_0x2c679f[_0xb8e567(0x153)]['UNIVER_SHEET'])[_0xb8e567(0x170)]((0x0,_0x317249[_0xb8e567(0x19b)])(this[_0xb8e567(0x120)]))[_0xb8e567(0x18e)](_0x195731=>{const _0x29d659=_0xb8e567;let _0x354cd9=_0x195731[_0x29d659(0x142)](),_0xff3f53=this[_0x29d659(0x19d)][_0x29d659(0xcd)](_0x354cd9);_0xff3f53==null||_0xff3f53['dispose']();});}async['_startLiveShareCoordinator'](_0x2c16d1){const _0x395b66=_0x10b09b;let _0x52fa4c=await this[_0x395b66(0x13b)][_0x395b66(0x121)](_0x2c16d1),_0xd2770=this[_0x395b66(0x197)][_0x395b66(0x154)](_0x213c44,_0x2c16d1,_0x52fa4c);return _0xd2770[_0x395b66(0x13e)](),this['_entities'][_0x395b66(0x19c)](_0x2c16d1,_0xd2770),_0xd2770;}};_0x528b4f=_0x169a0a([_0x282446(0x0,_0x2c679f['IUniverInstanceService']),_0x282446(0x1,(0x0,_0x2c679f['Inject'])(_0x2c679f[_0x10b09b(0x14e)])),_0x282446(0x2,(0x0,_0x2c679f[_0x10b09b(0x116)])(_0x278b6b[_0x10b09b(0xc6)]))],_0x528b4f);let _0x43d88c=function(_0x4e37de){const _0x4bbf56=_0x10b09b;return _0x4e37de[_0x4bbf56(0xdb)]=_0x4bbf56(0x10f),_0x4e37de[_0x4bbf56(0x16a)]=_0x4bbf56(0xea),_0x4e37de[_0x4bbf56(0x103)]=_0x4bbf56(0xe7),_0x4e37de['NOT_FOLLOWING']='not-following',_0x4e37de[_0x4bbf56(0x169)]=_0x4bbf56(0x14a),_0x4e37de;}({}),_0x213c44=class extends _0x2c679f[_0x10b09b(0x131)]{get[_0x10b09b(0x1a1)](){const _0x33b48b=_0x10b09b;return this[_0x33b48b(0x1a0)][_0x33b48b(0x181)]();}constructor(_0x3e43be,_0x3211d6,_0xc903d,_0x17a448,_0x57a64c){const _0x5e48cd=_0x10b09b;super(),this[_0x5e48cd(0x128)]=_0x3e43be,this[_0x5e48cd(0x18f)]=_0x3211d6,this[_0x5e48cd(0x107)]=_0xc903d,this['_liveShareService']=_0x17a448,this[_0x5e48cd(0x1ab)]=_0x57a64c,_0x505bbd(this,'_status$',new _0x4d837f[(_0x5e48cd(0x10d))](_0x43d88c[_0x5e48cd(0x16a)])),_0x505bbd(this,_0x5e48cd(0x105),this[_0x5e48cd(0x1a0)][_0x5e48cd(0xc3)]()),_0x505bbd(this,_0x5e48cd(0x19e),!0x1),_0x505bbd(this,_0x5e48cd(0xc1),null),_0x505bbd(this,'_presenter',null);}[_0x10b09b(0x1a4)](){const _0x5c99a5=_0x10b09b;var _0x58fb9a;(_0x58fb9a=this[_0x5c99a5(0xc1)])==null||_0x58fb9a[_0x5c99a5(0x1a4)](),this[_0x5c99a5(0x1a0)][_0x5c99a5(0x11b)](_0x43d88c[_0x5c99a5(0x16a)]),this[_0x5c99a5(0x1a0)][_0x5c99a5(0xef)]();}['getStatus'](){return this['_status'];}[_0x10b09b(0x13e)](){const _0x26c71b=_0x10b09b;this['_init']||(this[_0x26c71b(0x19e)]=!0x0,this[_0x26c71b(0x18f)][_0x26c71b(0x191)]['pipe']((0x0,_0x317249[_0x26c71b(0x19b)])(this[_0x26c71b(0x120)]))['subscribe'](_0x3ad1a2=>{const _0x101382=_0x26c71b;switch(_0x3ad1a2){case _0x278b6b['SessionStatus'][_0x101382(0xdb)]:this[_0x101382(0x11f)]();break;case _0x278b6b[_0x101382(0x151)]['ONLINE']:this['_handleOnline']();break;default:}}),this['_collabSession'][_0x26c71b(0xfb)][_0x26c71b(0x170)]((0x0,_0x317249['takeUntil'])(this[_0x26c71b(0x120)]))[_0x26c71b(0x18e)](_0x1b7558=>{const _0x50dbab=_0x26c71b;let {eventID:_0x234d4e}=_0x1b7558;switch(_0x234d4e){case _0x186570[_0x50dbab(0x16c)][_0x50dbab(0xfc)]:this['_handleNewHost'](_0x1b7558);break;case _0x186570[_0x50dbab(0x16c)][_0x50dbab(0xde)]:this[_0x50dbab(0x124)](_0x1b7558);break;case _0x186570[_0x50dbab(0x16c)][_0x50dbab(0x143)]:this[_0x50dbab(0x186)]();break;case _0x186570[_0x50dbab(0x16c)][_0x50dbab(0xdc)]:this[_0x50dbab(0x1a3)](_0x1b7558);break;default:}}));}[_0x10b09b(0x14d)](){const _0x166e70=_0x10b09b;this[_0x166e70(0x18f)][_0x166e70(0x176)]({'eventID':_0x186570[_0x166e70(0x16c)][_0x166e70(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x166e70(0x18f)][_0x166e70(0x159)]()}},this[_0x166e70(0x128)]);}['stopPresenting'](){const _0x1748a7=_0x10b09b;this[_0x1748a7(0x1a1)]===_0x43d88c[_0x1748a7(0x169)]&&(this[_0x1748a7(0x1a0)][_0x1748a7(0x11b)](_0x43d88c[_0x1748a7(0x16a)]),this[_0x1748a7(0x18f)][_0x1748a7(0x176)]({'eventID':_0x186570[_0x1748a7(0x16c)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x1748a7(0x128)]));}['startFollowing'](){const _0x296000=_0x10b09b;this['_status']===_0x43d88c['NOT_FOLLOWING']&&(this[_0x296000(0x1a0)][_0x296000(0x11b)](_0x43d88c['FOLLOWING']),this[_0x296000(0xc8)]());}[_0x10b09b(0x192)](){const _0x136eec=_0x10b09b;this[_0x136eec(0x1a1)]===_0x43d88c[_0x136eec(0x103)]&&this[_0x136eec(0x17f)]();}[_0x10b09b(0x165)](_0x1f173e){const _0x5b07f9=_0x10b09b;let {presenter:_0x4a2947}=_0x1f173e['data'],_0x17dea7=this[_0x5b07f9(0x18f)][_0x5b07f9(0x159)]();this[_0x5b07f9(0xd2)]=_0x4a2947,_0x4a2947===_0x17dea7?(this[_0x5b07f9(0x17f)](),this['_startPresenting']()):this['_status']!==_0x43d88c[_0x5b07f9(0xc4)]&&(this[_0x5b07f9(0x16d)](),this[_0x5b07f9(0xc8)]());}[_0x10b09b(0x100)](){const _0x5a30b7=_0x10b09b;let _0x4dac85={'eventID':_0x186570[_0x5a30b7(0x16c)][_0x5a30b7(0xd6)]};this[_0x5a30b7(0x18f)]['send'](_0x4dac85,this[_0x5a30b7(0x128)]);}['_handleTerminate'](){const _0x1febfc=_0x10b09b;this[_0x1febfc(0xd2)]=null,this[_0x1febfc(0x1a1)]!==_0x43d88c[_0x1febfc(0x169)]&&this[_0x1febfc(0x14f)]();}[_0x10b09b(0x1a3)](_0x21c2c8){const _0x369279=_0x10b09b;if(this[_0x369279(0x1a1)]===_0x43d88c[_0x369279(0x103)]&&this['_presenter']===_0x21c2c8[_0x369279(0x147)][_0x369279(0x178)]){let _0x4594b8=(0x0,_0x186570[_0x369279(0x15d)])(_0x21c2c8[_0x369279(0x147)])['mutations'][_0x369279(0xd7)]()[_0x369279(0x132)](_0x4ef270=>_0x4ef270['id']===_0xff9b04[_0x369279(0x157)]['id']);if(_0x4594b8){let _0x2ccd45=_0x4594b8['params'][_0x369279(0x108)],_0x1f0486=_0x4594b8[_0x369279(0xdf)]['sheet']['id'];setTimeout(()=>{const _0x5c8fee=_0x369279;this[_0x5c8fee(0x1ab)][_0x5c8fee(0x194)](_0xff9b04[_0x5c8fee(0x109)]['id'],{'unitId':_0x2ccd45,'subUnitId':_0x1f0486},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x216485=_0x10b09b;this[_0x216485(0x1a0)][_0x216485(0x11b)](_0x43d88c[_0x216485(0x169)]);let _0x3cefbc=new Map(),_0x98602=this[_0x216485(0xc1)]=new _0x2c679f[(_0x216485(0xe8))]();_0x98602[_0x216485(0x113)]((0x0,_0x2c679f[_0x216485(0x175)])(()=>{const _0x3813da=_0x216485;_0x3cefbc[_0x3813da(0x16f)](_0x144311=>_0x144311[_0x3813da(0xef)]()),_0x3cefbc[_0x3813da(0xf6)]();})),_0x98602[_0x216485(0x113)](this[_0x216485(0x1ab)][_0x216485(0x15f)](_0x33c0dc=>{const _0x1d75df=_0x216485;if(_0x33c0dc['type']!==_0x2c679f[_0x1d75df(0x160)]['OPERATION']||!this[_0x1d75df(0x162)]['shouldShareOperation'](_0x33c0dc['id']))return;let {id:_0x42419c}=_0x33c0dc,_0x280ce3;if(_0x3cefbc['has'](_0x42419c))_0x280ce3=_0x3cefbc[_0x1d75df(0xcd)](_0x42419c);else{var _0x5d59a0;_0x280ce3=new _0x4d837f['Subject'](),_0x3cefbc[_0x1d75df(0x19c)](_0x42419c,_0x280ce3),_0x280ce3['pipe']((0x0,_0x317249[_0x1d75df(0x126)])((_0x5d59a0=this[_0x1d75df(0x107)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x5d59a0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d75df(0x18e)](_0x2dfbf7=>{const _0x3c7af8=_0x1d75df;this[_0x3c7af8(0x18f)][_0x3c7af8(0x176)]({'eventID':_0x186570[_0x3c7af8(0x16c)][_0x3c7af8(0xde)],'data':{'unitID':this[_0x3c7af8(0x128)],'operations':{[_0x2dfbf7['id']]:{'id':_0x2dfbf7['id'],'params':JSON[_0x3c7af8(0x148)](_0x2dfbf7[_0x3c7af8(0xdf)])}}}},this[_0x3c7af8(0x128)]);});}_0x280ce3[_0x1d75df(0x11b)](_0x33c0dc);})),this['_liveShareService'][_0x216485(0x1a8)](this[_0x216485(0x128)])[_0x216485(0x16f)](_0x3bc10a=>this[_0x216485(0x18f)][_0x216485(0x176)]({'eventID':_0x186570[_0x216485(0x16c)][_0x216485(0xde)],'data':{'unitID':this['_unitID'],'operations':{[_0x3bc10a['id']]:{'id':_0x3bc10a['id'],'params':JSON['stringify'](_0x3bc10a[_0x216485(0xdf)])}}}},this[_0x216485(0x128)]));}['_stopPresenting'](){const _0x4067cb=_0x10b09b;var _0x253c7a;this[_0x4067cb(0x1a0)]['next'](_0x43d88c[_0x4067cb(0x16a)]),(_0x253c7a=this[_0x4067cb(0xc1)])==null||_0x253c7a[_0x4067cb(0x1a4)](),this[_0x4067cb(0xc1)]=null;}[_0x10b09b(0xc8)](){const _0x129d6b=_0x10b09b;var _0x5739a2;(_0x5739a2=this['_commandDisposable'])==null||_0x5739a2[_0x129d6b(0x1a4)](),this[_0x129d6b(0x1a0)][_0x129d6b(0x11b)](_0x43d88c[_0x129d6b(0x103)]);}[_0x10b09b(0x14f)](){const _0x4d66ad=_0x10b09b;var _0x14ce3d;this[_0x4d66ad(0x1a0)]['next'](_0x43d88c['IDLE']),(_0x14ce3d=this['_commandDisposable'])==null||_0x14ce3d[_0x4d66ad(0x1a4)](),this[_0x4d66ad(0xc1)]=null;}[_0x10b09b(0x17f)](){const _0x244e25=_0x10b09b;var _0x198804;this[_0x244e25(0x1a0)][_0x244e25(0x11b)](_0x43d88c['NOT_FOLLOWING']),(_0x198804=this[_0x244e25(0xc1)])==null||_0x198804[_0x244e25(0x1a4)]();}[_0x10b09b(0x124)](_0x41bae1){const _0x5e70e5=_0x10b09b;if([_0x43d88c[_0x5e70e5(0x169)],_0x43d88c[_0x5e70e5(0xc4)],_0x43d88c[_0x5e70e5(0xdb)]][_0x5e70e5(0x17c)](this['_status'])||!_0x41bae1[_0x5e70e5(0x147)]['presenter']||_0x41bae1[_0x5e70e5(0x147)][_0x5e70e5(0x198)]===this[_0x5e70e5(0x18f)]['getMemberID']())return;this[_0x5e70e5(0x1a1)]===_0x43d88c[_0x5e70e5(0x16a)]&&this[_0x5e70e5(0xc8)]();let _0x42cee9=_0x41bae1[_0x5e70e5(0x147)]['operations'];Object[_0x5e70e5(0x18c)](_0x42cee9)['forEach'](_0x42cb3a=>{const _0xaf79cb=_0x5e70e5;this[_0xaf79cb(0x1ab)][_0xaf79cb(0x194)](_0x42cb3a['id'],_0x42cb3a[_0xaf79cb(0xdf)]?JSON[_0xaf79cb(0x1ac)](_0x42cb3a[_0xaf79cb(0xdf)]):null,{'fromCollab':!0x0});});}[_0x10b09b(0x11f)](){const _0x49cc0d=_0x10b09b;var _0x15b5b9;this[_0x49cc0d(0x1a0)][_0x49cc0d(0x11b)](_0x43d88c[_0x49cc0d(0xdb)]),(_0x15b5b9=this['_commandDisposable'])==null||_0x15b5b9[_0x49cc0d(0x1a4)]();}[_0x10b09b(0x104)](){const _0x150fef=_0x10b09b;this[_0x150fef(0x1a0)]['next'](_0x43d88c[_0x150fef(0x16a)]),this['_fetchOperations']();}};_0x213c44=_0x169a0a([_0x282446(0x2,_0x2c679f[_0x10b09b(0x196)]),_0x282446(0x3,(0x0,_0x2c679f[_0x10b09b(0x116)])(_0x1c9d70)),_0x282446(0x4,_0x2c679f[_0x10b09b(0x110)])],_0x213c44);function _0x35761a(){const _0x45addf=_0x10b09b;let _0x3e795d=(0x0,_0xc1e0c9[_0x45addf(0xcb)])(_0x528b4f),_0x381b67=(0x0,_0xc1e0c9['useDependency'])(_0x2c679f[_0x45addf(0x150)]),_0x13f463=(0x0,_0xc1e0c9[_0x45addf(0x144)])(()=>_0x381b67[_0x45addf(0x177)](_0x2c679f[_0x45addf(0x153)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x53d2ac,_0x3b1bea]=(0x0,_0x563a95[_0x45addf(0x12f)])(null),[_0x323ee5,_0x5df399]=(0x0,_0x563a95[_0x45addf(0x12f)])(_0x43d88c[_0x45addf(0x16a)]),_0x3a4918=(0x0,_0x563a95[_0x45addf(0xbe)])(null);return(0x0,_0x563a95[_0x45addf(0xbf)])(()=>(_0x13f463&&_0x3e795d[_0x45addf(0x1a9)](_0x13f463['getUnitId']())[_0x45addf(0xcf)](_0x2994d3=>{const _0x21f3a0=_0x45addf;_0x3b1bea(_0x2994d3),_0x3a4918[_0x21f3a0(0x17d)]=_0x2994d3[_0x21f3a0(0x105)][_0x21f3a0(0x18e)](_0x4ac9ae=>{_0x5df399(_0x4ac9ae);});}),()=>{const _0x18f621=_0x45addf;var _0x163209;(_0x163209=_0x3a4918[_0x18f621(0x17d)])==null||_0x163209[_0x18f621(0x15a)](),_0x3a4918[_0x18f621(0x17d)]=null;}),[_0x13f463,_0x3e795d]),_0x53d2ac?(0x0,_0x235c00[_0x45addf(0x173)])(_0x385cd9['Dropdown'],{'align':_0x45addf(0xf0),'disabled':_0x323ee5===_0x43d88c[_0x45addf(0xdb)],'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,_0x235c00['jsx'])(_0xb25e7a,{'status':_0x323ee5,'coordinator':_0x53d2ac}),'children':(0x0,_0x235c00[_0x45addf(0x173)])(_0x45addf(0x127),{'className':(0x0,_0x385cd9[_0x45addf(0xc5)])(_0x45addf(0x1ad),{'univer-cursor-not-allowed':_0x323ee5===_0x43d88c[_0x45addf(0xdb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x323ee5!==_0x43d88c[_0x45addf(0xdb)]}),'type':_0x45addf(0x127),'children':(0x0,_0x235c00[_0x45addf(0x173)])(_0x263fa1,{'className':_0x45addf(0x183)})})}):null;}function _0xb25e7a(_0x22af6f){const _0x8d2896=_0x10b09b;let {status:_0x2ab022,coordinator:_0x2ed39e}=_0x22af6f;switch(_0x2ab022){case _0x43d88c[_0x8d2896(0x16a)]:return(0x0,_0x235c00[_0x8d2896(0x173)])(_0x9f3bf8,{'coordinator':_0x2ed39e});case _0x43d88c[_0x8d2896(0x103)]:return(0x0,_0x235c00['jsx'])(_0x14c4cb,{'coordinator':_0x2ed39e});case _0x43d88c['NOT_FOLLOWING']:return(0x0,_0x235c00[_0x8d2896(0x173)])(_0x31640c,{'coordinator':_0x2ed39e});case _0x43d88c[_0x8d2896(0xdb)]:return(0x0,_0x235c00[_0x8d2896(0x173)])(_0x4250a6,{});case _0x43d88c[_0x8d2896(0x169)]:return(0x0,_0x235c00[_0x8d2896(0x173)])(_0x110d39,{'coordinator':_0x2ed39e});default:return null;}}function _0x9f3bf8(_0x8be1bb){const _0x170cb0=_0x10b09b;let {coordinator:_0x18b9eb}=_0x8be1bb;return(0x0,_0x235c00[_0x170cb0(0xd8)])(_0x235c00[_0x170cb0(0x187)],{'children':[(0x0,_0x235c00[_0x170cb0(0x173)])(_0x170cb0(0xc7),{'className':_0x170cb0(0x184),'children':_0x170cb0(0xc9)}),(0x0,_0x235c00[_0x170cb0(0x173)])(_0x385cd9[_0x170cb0(0x17e)],{'onClick':()=>_0x18b9eb[_0x170cb0(0x14d)](),'children':_0x170cb0(0x1aa)})]});}function _0x14c4cb(_0x5b50d1){const _0x12e7ef=_0x10b09b;let {coordinator:_0x4f65b0}=_0x5b50d1;return(0x0,_0x235c00[_0x12e7ef(0xd8)])(_0x235c00[_0x12e7ef(0x187)],{'children':[(0x0,_0x235c00[_0x12e7ef(0x173)])('div',{'className':_0x12e7ef(0x184),'children':_0x12e7ef(0xe3)}),(0x0,_0x235c00[_0x12e7ef(0x173)])(_0x385cd9['Button'],{'onClick':()=>_0x4f65b0[_0x12e7ef(0x192)](),'children':_0x12e7ef(0x18b)})]});}function _0x31640c(_0x545132){const _0x4ec434=_0x10b09b;let {coordinator:_0x713be9}=_0x545132;return(0x0,_0x235c00[_0x4ec434(0xd8)])(_0x235c00['Fragment'],{'children':[(0x0,_0x235c00[_0x4ec434(0x173)])(_0x4ec434(0xc7),{'className':_0x4ec434(0x184),'children':_0x4ec434(0x189)}),(0x0,_0x235c00[_0x4ec434(0x173)])(_0x385cd9[_0x4ec434(0x17e)],{'variant':_0x4ec434(0x119),'onClick':()=>_0x713be9[_0x4ec434(0x122)](),'children':_0x4ec434(0x19a)})]});}function _0x110d39(_0x457fda){const _0x4dba76=_0x10b09b;let {coordinator:_0x4b6381}=_0x457fda;return(0x0,_0x235c00[_0x4dba76(0xd8)])(_0x235c00[_0x4dba76(0x187)],{'children':[(0x0,_0x235c00['jsx'])(_0x4dba76(0xc7),{'className':_0x4dba76(0x184),'children':_0x4dba76(0xf8)}),(0x0,_0x235c00['jsx'])(_0x385cd9[_0x4dba76(0x17e)],{'variant':'default','onClick':()=>_0x4b6381[_0x4dba76(0x155)](),'children':_0x4dba76(0x195)})]});}function _0x4250a6(){const _0x3b6cfe=_0x10b09b;return(0x0,_0x235c00[_0x3b6cfe(0x173)])(_0x235c00['Fragment'],{'children':_0x3b6cfe(0xf7)});}let _0x2e614c=class extends _0x2c679f['Disposable']{constructor(_0xa8e0a9,_0x46719b){const _0x5c56cd=_0x10b09b;super(),this[_0x5c56cd(0x197)]=_0xa8e0a9,this[_0x5c56cd(0x13d)]=_0x46719b,this[_0x5c56cd(0x111)]();}[_0x10b09b(0x111)](){const _0x2a2c7f=_0x10b09b;this[_0x2a2c7f(0x10e)](this['_uiPartsService'][_0x2a2c7f(0x135)](_0xc1e0c9[_0x2a2c7f(0x12c)][_0x2a2c7f(0x12b)],()=>(0x0,_0xc1e0c9['connectInjector'])(_0x35761a,this[_0x2a2c7f(0x197)])));}};_0x2e614c=_0x169a0a([_0x282446(0x0,(0x0,_0x2c679f[_0x10b09b(0x116)])(_0x2c679f[_0x10b09b(0x14e)])),_0x282446(0x1,_0xc1e0c9[_0x10b09b(0xe1)])],_0x2e614c);var _0x22412b=_0x10b09b(0xf9),_0x46a8dc=_0x10b09b(0x1a7);let _0x38f4a0=_0x10b09b(0x14c);Symbol(_0x38f4a0);let _0x26b903={},_0x2b81dc=class extends _0x2c679f['Disposable']{constructor(_0x426d92){const _0x14b2ac=_0x10b09b;super(),this[_0x14b2ac(0x162)]=_0x426d92,this['_init']();}[_0x10b09b(0x19e)](){const _0x136915=_0x10b09b;[_0x240968[_0x136915(0xec)]['id'],_0x240968[_0x136915(0x115)]['id'],_0xff9b04[_0x136915(0x109)]['id']][_0x136915(0x16f)](_0x23d581=>{const _0x58001e=_0x136915;this[_0x58001e(0x10e)](this[_0x58001e(0x162)][_0x58001e(0x112)](_0x23d581));});}};_0x2b81dc=_0x169a0a([_0x282446(0x0,(0x0,_0x2c679f['Inject'])(_0x1c9d70))],_0x2b81dc);let _0x1f3dce=class extends _0x2c679f['Plugin']{constructor(_0x103c5a=_0x26b903,_0x1b1bad,_0x2c71a1){const _0x2bfbad=_0x10b09b;super(),this[_0x2bfbad(0x164)]=_0x103c5a,this[_0x2bfbad(0x197)]=_0x1b1bad,this[_0x2bfbad(0x107)]=_0x2c71a1;let {..._0x4bab46}=(0x0,_0x2c679f[_0x2bfbad(0x136)])({},_0x26b903,this[_0x2bfbad(0x164)]);this[_0x2bfbad(0x107)]['setConfig'](_0x38f4a0,_0x4bab46);}[_0x10b09b(0x188)](){const _0x2d95b2=_0x10b09b;(0x0,_0x2c679f[_0x2d95b2(0x13c)])(this[_0x2d95b2(0x197)],(0x0,_0x2c679f[_0x2d95b2(0x114)])([[_0x1c9d70],[_0x528b4f],[_0x2b81dc],[_0x2e614c]],this[_0x2d95b2(0x164)][_0x2d95b2(0xd9)])),(0x0,_0x2c679f[_0x2d95b2(0xc2)])(this['_injector'],[[_0x2b81dc]]);}['onRendered'](){const _0x4c6bdf=_0x10b09b;(0x0,_0x2c679f[_0x4c6bdf(0xc2)])(this[_0x4c6bdf(0x197)],[[_0x2e614c]]);}};_0x505bbd(_0x1f3dce,_0x10b09b(0x117),_0x2c679f['UniverInstanceType'][_0x10b09b(0xfe)]),_0x505bbd(_0x1f3dce,_0x10b09b(0xee),_0x10b09b(0xf5)),_0x505bbd(_0x1f3dce,_0x10b09b(0x167),_0x22412b),_0x505bbd(_0x1f3dce,'version',_0x46a8dc),_0x1f3dce=_0x169a0a([(0x0,_0x2c679f['DependentOn'])(_0x278b6b['UniverCollaborationClientPlugin']),_0x282446(0x1,(0x0,_0x2c679f['Inject'])(_0x2c679f['Injector'])),_0x282446(0x2,_0x2c679f['IConfigService'])],_0x1f3dce),Object[_0x10b09b(0xd0)](_0x376925,'DesktopLiveShareController',{'enumerable':!0x0,'get':function(){return _0x2e614c;}}),_0x376925[_0x10b09b(0x145)]=_0x35761a,Object[_0x10b09b(0xd0)](_0x376925,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x528b4f;}}),Object[_0x10b09b(0xd0)](_0x376925,_0x10b09b(0x149),{'enumerable':!0x0,'get':function(){return _0x213c44;}}),_0x376925['LiveShareService']=_0x1c9d70,_0x376925[_0x10b09b(0x158)]=_0x43d88c,Object['defineProperty'](_0x376925,_0x10b09b(0x10a),{'enumerable':!0x0,'get':function(){return _0x1f3dce;}});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.1",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.20.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.20.
|
|
62
|
-
"@univerjs/core": "0.20.
|
|
63
|
-
"@univerjs/design": "0.20.
|
|
64
|
-
"@univerjs/sheets
|
|
65
|
-
"@univerjs/ui": "0.20.
|
|
66
|
-
"@univerjs/sheets": "0.20.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.20.1",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.20.1",
|
|
62
|
+
"@univerjs/core": "0.20.1",
|
|
63
|
+
"@univerjs/design": "0.20.1",
|
|
64
|
+
"@univerjs/sheets": "0.20.1",
|
|
65
|
+
"@univerjs/ui": "0.20.1",
|
|
66
|
+
"@univerjs/sheets-ui": "0.20.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.8",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"tailwindcss": "^3.4.17",
|
|
73
73
|
"typescript": "^6.0.2",
|
|
74
74
|
"vitest": "^4.1.1",
|
|
75
|
-
"@univerjs-infra/shared": "0.20.
|
|
76
|
-
"@univerjs/protocol": "0.1.
|
|
75
|
+
"@univerjs-infra/shared": "0.20.1",
|
|
76
|
+
"@univerjs/protocol": "0.1.49"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"test": "vitest run",
|