@univerjs-pro/live-share 1.0.0-alpha.8 → 1.0.0-beta.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.css +4 -33
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +13 -13
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x41b82d=_0x3f9d;(function(_0x50cb55,_0x44d9f2){const _0x4e0c9c=_0x3f9d,_0x1483c9=_0x50cb55();while(!![]){try{const _0x3328e4=parseInt(_0x4e0c9c(0xc0))/0x1*(parseInt(_0x4e0c9c(0xca))/0x2)+-parseInt(_0x4e0c9c(0xb8))/0x3+parseInt(_0x4e0c9c(0xaa))/0x4*(-parseInt(_0x4e0c9c(0xbd))/0x5)+-parseInt(_0x4e0c9c(0xb3))/0x6+-parseInt(_0x4e0c9c(0xc7))/0x7+-parseInt(_0x4e0c9c(0xba))/0x8+parseInt(_0x4e0c9c(0xa6))/0x9*(parseInt(_0x4e0c9c(0xc8))/0xa);if(_0x3328e4===_0x44d9f2)break;else _0x1483c9['push'](_0x1483c9['shift']());}catch(_0x36fa38){_0x1483c9['push'](_0x1483c9['shift']());}}}(_0x1faa,0xd3dc9));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x262284){'@babel/helpers - typeof';const _0x3c236a=_0x3f9d;return r=typeof Symbol==_0x3c236a(0xab)&&typeof Symbol[_0x3c236a(0xb5)]==_0x3c236a(0xcb)?function(_0x556c62){return typeof _0x556c62;}:function(_0x3faa08){const _0x4b3d0e=_0x3c236a;return _0x3faa08&&typeof Symbol=='function'&&_0x3faa08['constructor']===Symbol&&_0x3faa08!==Symbol[_0x4b3d0e(0xb4)]?_0x4b3d0e(0xcb):typeof _0x3faa08;},r(_0x262284);}function _0x3f9d(_0x367f9a,_0x25e079){_0x367f9a=_0x367f9a-0xa4;const _0x1faa8e=_0x1faa();let _0x3f9d85=_0x1faa8e[_0x367f9a];return _0x3f9d85;}function i(_0x307051,_0x13520a){const _0x5dacc5=_0x3f9d;if(r(_0x307051)!=_0x5dacc5(0xc5)||!_0x307051)return _0x307051;var _0x181c0a=_0x307051[Symbol[_0x5dacc5(0xbb)]];if(_0x181c0a!==void 0x0){var _0x214935=_0x181c0a[_0x5dacc5(0xc9)](_0x307051,_0x13520a||_0x5dacc5(0xa5));if(r(_0x214935)!=_0x5dacc5(0xc5))return _0x214935;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x13520a==='string'?String:Number)(_0x307051);}function a(_0x206619){const _0x1d9851=_0x3f9d;var _0x1a172e=i(_0x206619,_0x1d9851(0xa4));return r(_0x1a172e)==_0x1d9851(0xcb)?_0x1a172e:_0x1a172e+'';}function o(_0x3adca3,_0x3c474c,_0x369bbf){const _0x267146=_0x3f9d;return(_0x3c474c=a(_0x3c474c))in _0x3adca3?Object[_0x267146(0xc6)](_0x3adca3,_0x3c474c,{'value':_0x369bbf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3adca3[_0x3c474c]=_0x369bbf,_0x3adca3;}var s=class extends n['FUniver']{constructor(..._0x1b27dc){const _0x3d6c9f=_0x3f9d;super(..._0x1b27dc),o(this,_0x3d6c9f(0xac),void 0x0);}[_0x41b82d(0xb1)](_0x4d9b5c){const _0x2883f7=_0x41b82d;this['_liveShareController']=_0x4d9b5c[_0x2883f7(0xad)](e[_0x2883f7(0xa7)]);}[_0x41b82d(0xb0)](){const _0x167bee=_0x41b82d;let _0x46cd43=this[_0x167bee(0xbc)]['get'](t[_0x167bee(0xb7)])['getCurrentUnitOfType'](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0x46cd43)throw Error('No\x20active\x20workbook\x20found.');let _0x38c34d=_0x46cd43[_0x167bee(0xae)](),_0x425e1d=this['_liveShareController'][_0x167bee(0xc4)](_0x38c34d);return(_0x425e1d==null?void 0x0:_0x425e1d['getStatus']())??e[_0x167bee(0xa9)]['IDLE'];}[_0x41b82d(0xcd)](){const _0x50909a=_0x41b82d;let _0x4dbc74=this['_injector'][_0x50909a(0xad)](t[_0x50909a(0xb7)])[_0x50909a(0xc3)](t[_0x50909a(0xa8)]['UNIVER_SHEET']);if(!_0x4dbc74)throw Error(_0x50909a(0xb9));let _0x4f307a=_0x4dbc74[_0x50909a(0xae)](),_0x11ad61=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x4f307a);if(!_0x11ad61)throw Error(_0x50909a(0xbe));_0x11ad61[_0x50909a(0xcd)]();}[_0x41b82d(0xb6)](){const _0xe25575=_0x41b82d;let _0x1df868=this['_injector'][_0xe25575(0xad)](t[_0xe25575(0xb7)])[_0xe25575(0xc3)](t['UniverInstanceType'][_0xe25575(0xc2)]);if(!_0x1df868)throw Error(_0xe25575(0xb9));let _0x4a471e=_0x1df868[_0xe25575(0xae)](),_0x3639e5=this['_liveShareController'][_0xe25575(0xc4)](_0x4a471e);if(!_0x3639e5)throw Error(_0xe25575(0xbe));_0x3639e5[_0xe25575(0xb6)]();}[_0x41b82d(0xbf)](){const _0x47393e=_0x41b82d;let _0x1e6a9f=this[_0x47393e(0xbc)][_0x47393e(0xad)](t[_0x47393e(0xb7)])['getCurrentUnitOfType'](t['UniverInstanceType'][_0x47393e(0xc2)]);if(!_0x1e6a9f)throw Error('No\x20active\x20workbook\x20found.');let _0x125385=_0x1e6a9f['getUnitId'](),_0x312b5f=this[_0x47393e(0xac)][_0x47393e(0xc4)](_0x125385);if(!_0x312b5f)throw Error(_0x47393e(0xbe));_0x312b5f[_0x47393e(0xcc)]();}[_0x41b82d(0xb2)](){const _0x158149=_0x41b82d;let _0x4dd3ae=this[_0x158149(0xbc)][_0x158149(0xad)](t[_0x158149(0xb7)])['getCurrentUnitOfType'](t[_0x158149(0xa8)][_0x158149(0xc2)]);if(!_0x4dd3ae)throw Error(_0x158149(0xb9));let _0x2f256a=_0x4dd3ae[_0x158149(0xae)](),_0x46486a=this[_0x158149(0xac)][_0x158149(0xc4)](_0x2f256a);if(!_0x46486a)throw Error(_0x158149(0xbe));_0x46486a[_0x158149(0xb2)]();}};function _0x1faa(){const _0x377413=['FUniver','UNIVER_SHEET','getCurrentUnitOfType','getLiveShareCoordinatorSync','object','defineProperty','5727729YeZQLm','38596120ITMtwe','call','262lchlfc','symbol','tryStartPresenting','startFollowing','string','default','9DIiVca','LiveShareController','UniverInstanceType','LiveShareStatus','4OoZIXx','function','_liveShareController','get','getUnitId','LiveShareStatusEnum','getLiveShareStatus','_initialize','stopPresenting','9769368ZLISmC','prototype','iterator','stopFollowing','IUniverInstanceService','3514785Tcxcsj','No\x20active\x20workbook\x20found.','8090888jCwtXe','toPrimitive','_injector','89215gGNMqe','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startPresenting','12637mLtzro'];_0x1faa=function(){return _0x377413;};return _0x1faa();}n[_0x41b82d(0xc1)]['extend'](s);var c=class extends n['FEnum']{get[_0x41b82d(0xaf)](){const _0x3b9bb1=_0x41b82d;return e[_0x3b9bb1(0xa9)];}};n['FEnum']['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57d492=_0x153d;(function(_0x74e7ef,_0x16b13f){const _0x292e0c=_0x153d,_0x2dff69=_0x74e7ef();while(!![]){try{const _0x49dedb=parseInt(_0x292e0c(0x180))/0x1+parseInt(_0x292e0c(0x15f))/0x2*(parseInt(_0x292e0c(0x141))/0x3)+parseInt(_0x292e0c(0x181))/0x4+parseInt(_0x292e0c(0x154))/0x5*(-parseInt(_0x292e0c(0x186))/0x6)+-parseInt(_0x292e0c(0x183))/0x7*(parseInt(_0x292e0c(0x156))/0x8)+parseInt(_0x292e0c(0x115))/0x9*(-parseInt(_0x292e0c(0x143))/0xa)+-parseInt(_0x292e0c(0x1ac))/0xb*(-parseInt(_0x292e0c(0x11e))/0xc);if(_0x49dedb===_0x16b13f)break;else _0x2dff69['push'](_0x2dff69['shift']());}catch(_0x446a2c){_0x2dff69['push'](_0x2dff69['shift']());}}}(_0x3762,0xd0164),Object[_0x57d492(0x188)](exports,Symbol[_0x57d492(0x192)],{'value':_0x57d492(0x12c)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs-pro/license'),s=require('@univerjs/ui'),c=require('@univerjs/sheets-ui'),l=require('@univerjs/design'),u=require('@univerjs/icons'),d=require('react'),f=require('react/jsx-runtime');function p(_0x34c0e1){'@babel/helpers - typeof';const _0x1637c1=_0x57d492;return p=typeof Symbol==_0x1637c1(0x1b8)&&typeof Symbol[_0x1637c1(0x14e)]==_0x1637c1(0x18a)?function(_0x14e99f){return typeof _0x14e99f;}:function(_0x5556e7){const _0x4997a0=_0x1637c1;return _0x5556e7&&typeof Symbol==_0x4997a0(0x1b8)&&_0x5556e7[_0x4997a0(0x118)]===Symbol&&_0x5556e7!==Symbol[_0x4997a0(0x195)]?_0x4997a0(0x18a):typeof _0x5556e7;},p(_0x34c0e1);}function m(_0x5e084d,_0x55ab92){const _0x219a39=_0x57d492;if(p(_0x5e084d)!=_0x219a39(0x1bc)||!_0x5e084d)return _0x5e084d;var _0x17047b=_0x5e084d[Symbol[_0x219a39(0x168)]];if(_0x17047b!==void 0x0){var _0x53ed96=_0x17047b[_0x219a39(0x167)](_0x5e084d,_0x55ab92||_0x219a39(0x11c));if(p(_0x53ed96)!='object')return _0x53ed96;throw TypeError(_0x219a39(0x13c));}return(_0x55ab92===_0x219a39(0x19a)?String:Number)(_0x5e084d);}function h(_0x338d1d){var _0x2d575c=m(_0x338d1d,'string');return p(_0x2d575c)=='symbol'?_0x2d575c:_0x2d575c+'';}function g(_0x380a1c,_0x21fcf4,_0x1601c2){const _0x3110cc=_0x57d492;return(_0x21fcf4=h(_0x21fcf4))in _0x380a1c?Object[_0x3110cc(0x188)](_0x380a1c,_0x21fcf4,{'value':_0x1601c2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x380a1c[_0x21fcf4]=_0x1601c2,_0x380a1c;}var _=class extends n[_0x57d492(0x138)]{constructor(..._0x9f6ed9){const _0xf1c0e7=_0x57d492;super(..._0x9f6ed9),g(this,_0xf1c0e7(0x12b),new Set()),g(this,_0xf1c0e7(0x161),new Set());}[_0x57d492(0x13f)](_0x4df168){const _0x5a8469=_0x57d492;return this[_0x5a8469(0x12b)]['add'](_0x4df168),(0x0,n[_0x5a8469(0x1a2)])(()=>this[_0x5a8469(0x12b)][_0x5a8469(0x175)](_0x4df168));}[_0x57d492(0x13a)](_0x2a97a0){const _0x5c4852=_0x57d492;return this[_0x5c4852(0x161)]['add'](_0x2a97a0),(0x0,n['toDisposable'])(()=>this[_0x5c4852(0x161)][_0x5c4852(0x175)](_0x2a97a0));}[_0x57d492(0x1c1)](_0x3aa524){const _0x4fe299=_0x57d492;return this[_0x4fe299(0x12b)][_0x4fe299(0x106)](_0x3aa524);}['getInitialStates'](_0x5bfa7e){const _0x66153=_0x57d492;return Array[_0x66153(0x153)](this[_0x66153(0x161)])['map'](_0x35ea4b=>_0x35ea4b(_0x5bfa7e));}};function v(_0x3680bd,_0x2855fe){return function(_0x5d261f,_0xf546c2){_0x2855fe(_0x5d261f,_0xf546c2,_0x3680bd);};}function y(_0x3d6765,_0x298144,_0x116dd2,_0x183015){const _0x42359d=_0x57d492;var _0x9ee96a=arguments[_0x42359d(0x146)],_0x113eed=_0x9ee96a<0x3?_0x298144:_0x183015===null?_0x183015=Object[_0x42359d(0x15d)](_0x298144,_0x116dd2):_0x183015,_0x16df44;if(typeof Reflect=='object'&&typeof Reflect[_0x42359d(0x17f)]==_0x42359d(0x1b8))_0x113eed=Reflect[_0x42359d(0x17f)](_0x3d6765,_0x298144,_0x116dd2,_0x183015);else{for(var _0x39d675=_0x3d6765['length']-0x1;_0x39d675>=0x0;_0x39d675--)(_0x16df44=_0x3d6765[_0x39d675])&&(_0x113eed=(_0x9ee96a<0x3?_0x16df44(_0x113eed):_0x9ee96a>0x3?_0x16df44(_0x298144,_0x116dd2,_0x113eed):_0x16df44(_0x298144,_0x116dd2))||_0x113eed);}return _0x9ee96a>0x3&&_0x113eed&&Object['defineProperty'](_0x298144,_0x116dd2,_0x113eed),_0x113eed;}let b=class extends n['RxDisposable']{constructor(_0x1436d4,_0x5924c2,_0x3570ec){const _0x1a0c21=_0x57d492;super(),this['_univerInstanceService']=_0x1436d4,this[_0x1a0c21(0x12e)]=_0x5924c2,this[_0x1a0c21(0x105)]=_0x3570ec,g(this,_0x1a0c21(0x140),new Map()),this[_0x1a0c21(0x159)]();}async[_0x57d492(0x12d)](_0x3facd4){const _0x27355c=_0x57d492;return this[_0x27355c(0x140)][_0x27355c(0x106)](_0x3facd4)||await this[_0x27355c(0x17a)](_0x3facd4),this[_0x27355c(0x140)][_0x27355c(0x119)](_0x3facd4);}['getLiveShareCoordinatorSync'](_0x316a4e){const _0xee972b=_0x57d492;var _0x3e4a25;return(_0x3e4a25=this[_0xee972b(0x140)][_0xee972b(0x119)](_0x316a4e))==null?null:_0x3e4a25;}['_init'](){const _0x5968c0=_0x57d492;this[_0x5968c0(0x134)][_0x5968c0(0x1a6)](n[_0x5968c0(0x144)][_0x5968c0(0x1be)])[_0x5968c0(0x111)]((0x0,a[_0x5968c0(0x10e)])(this['dispose$']))[_0x5968c0(0x147)](async _0x4c702d=>{const _0x47b114=_0x5968c0;let _0x3ddb93=_0x4c702d['unit']['getUnitId']();this[_0x47b114(0x140)][_0x47b114(0x106)](_0x3ddb93)||this[_0x47b114(0x17a)](_0x3ddb93);}),this[_0x5968c0(0x134)][_0x5968c0(0x166)](n[_0x5968c0(0x144)][_0x5968c0(0x1be)])['pipe']((0x0,a['takeUntil'])(this['dispose$']))[_0x5968c0(0x147)](_0x5147e8=>{const _0x5ee0e3=_0x5968c0;let _0x133b6f=_0x5147e8[_0x5ee0e3(0x1b0)](),_0x1c8c01=this['_entities']['get'](_0x133b6f);_0x1c8c01==null||_0x1c8c01[_0x5ee0e3(0x17c)]();});}async[_0x57d492(0x17a)](_0x494c3f){const _0x4c2651=_0x57d492;let _0x5ebe43=await this['_collabSessionService']['requireSession'](_0x494c3f),_0x598d2d=this[_0x4c2651(0x12e)]['createInstance'](S,_0x494c3f,_0x5ebe43);return _0x598d2d[_0x4c2651(0x18c)](),this[_0x4c2651(0x140)][_0x4c2651(0x10a)](_0x494c3f,_0x598d2d),_0x598d2d;}};b=y([v(0x0,n[_0x57d492(0x114)]),v(0x1,(0x0,n[_0x57d492(0x116)])(n[_0x57d492(0x1a9)])),v(0x2,(0x0,n[_0x57d492(0x116)])(t[_0x57d492(0x137)]))],b);let x=function(_0x43f2d1){const _0x3d02d5=_0x57d492;return _0x43f2d1[_0x3d02d5(0x11b)]=_0x3d02d5(0x122),_0x43f2d1[_0x3d02d5(0x136)]=_0x3d02d5(0x157),_0x43f2d1[_0x3d02d5(0x1aa)]=_0x3d02d5(0x19e),_0x43f2d1['NOT_FOLLOWING']='not-following',_0x43f2d1[_0x3d02d5(0x113)]=_0x3d02d5(0x128),_0x43f2d1;}({}),S=class extends n[_0x57d492(0x17d)]{get[_0x57d492(0x198)](){const _0xe6012b=_0x57d492;return this[_0xe6012b(0x19c)][_0xe6012b(0x187)]();}constructor(_0x1273d9,_0x2935b3,_0x355f8f,_0x2181e9,_0xbeb15b){const _0xdfcd9=_0x57d492;super(),this[_0xdfcd9(0x129)]=_0x1273d9,this[_0xdfcd9(0x1af)]=_0x2935b3,this[_0xdfcd9(0x18f)]=_0x355f8f,this[_0xdfcd9(0x17b)]=_0x2181e9,this['_commandService']=_0xbeb15b,g(this,'_status$',new i['BehaviorSubject'](_0xdfcd9(0x157))),g(this,'status$',this[_0xdfcd9(0x19c)][_0xdfcd9(0x148)]()),g(this,_0xdfcd9(0x159),!0x1),g(this,_0xdfcd9(0x170),null),g(this,_0xdfcd9(0x14d),null);}[_0x57d492(0x17c)](){const _0x2d11d3=_0x57d492;var _0x13a245;(_0x13a245=this[_0x2d11d3(0x170)])==null||_0x13a245[_0x2d11d3(0x17c)](),this[_0x2d11d3(0x19c)][_0x2d11d3(0x142)](_0x2d11d3(0x157)),this[_0x2d11d3(0x19c)][_0x2d11d3(0x19b)]();}['getStatus'](){return this['_status'];}[_0x57d492(0x18c)](){const _0x2ed456=_0x57d492;this['_init']||(this[_0x2ed456(0x159)]=!0x0,this[_0x2ed456(0x1af)][_0x2ed456(0x162)][_0x2ed456(0x111)]((0x0,a['takeUntil'])(this[_0x2ed456(0x13d)]))['subscribe'](_0x3ae638=>{const _0x53979b=_0x2ed456;switch(_0x3ae638){case t['SessionStatus'][_0x53979b(0x11b)]:this[_0x53979b(0x1a3)]();break;case t[_0x53979b(0x14a)]['ONLINE']:this['_handleOnline']();break;default:}}),this[_0x2ed456(0x1af)][_0x2ed456(0x15c)][_0x2ed456(0x111)]((0x0,a[_0x2ed456(0x10e)])(this['dispose$']))[_0x2ed456(0x147)](_0x22aa1b=>{const _0x49ad10=_0x2ed456;let {eventID:_0x512934}=_0x22aa1b;switch(_0x512934){case e[_0x49ad10(0x163)][_0x49ad10(0x1b9)]:this[_0x49ad10(0x191)](_0x22aa1b);break;case e[_0x49ad10(0x163)][_0x49ad10(0x15b)]:this['_handleOperation'](_0x22aa1b);break;case e[_0x49ad10(0x163)][_0x49ad10(0x109)]:this[_0x49ad10(0x1ad)]();break;case e[_0x49ad10(0x163)][_0x49ad10(0x16c)]:this[_0x49ad10(0x199)](_0x22aa1b);break;default:}}));}[_0x57d492(0x19d)](){const _0x57894a=_0x57d492;this[_0x57894a(0x1af)]['send']({'eventID':e[_0x57894a(0x163)][_0x57894a(0x158)],'data':{'unitID':this['_unitID'],'userID':this[_0x57894a(0x1af)]['getMemberID']()}},this[_0x57894a(0x129)]);}[_0x57d492(0x15e)](){const _0x34e6d2=_0x57d492;this[_0x34e6d2(0x198)]===_0x34e6d2(0x128)&&(this[_0x34e6d2(0x19c)][_0x34e6d2(0x142)]('idle'),this[_0x34e6d2(0x1af)][_0x34e6d2(0x15a)]({'eventID':e['CollaborationEvent'][_0x34e6d2(0x109)],'data':{'unitID':this[_0x34e6d2(0x129)]}},this[_0x34e6d2(0x129)]));}['startFollowing'](){const _0x2ecf76=_0x57d492;this[_0x2ecf76(0x198)]==='not-following'&&(this['_status$'][_0x2ecf76(0x142)](_0x2ecf76(0x19e)),this[_0x2ecf76(0x13b)]());}[_0x57d492(0x171)](){const _0x39d07f=_0x57d492;this[_0x39d07f(0x198)]===_0x39d07f(0x19e)&&this[_0x39d07f(0x110)]();}[_0x57d492(0x191)](_0x3e8c7a){const _0x587b95=_0x57d492;let {presenter:_0x301f8b}=_0x3e8c7a['data'],_0x1793ec=this[_0x587b95(0x1af)][_0x587b95(0x1c0)]();this[_0x587b95(0x14d)]=_0x301f8b,_0x301f8b===_0x1793ec?(this[_0x587b95(0x110)](),this[_0x587b95(0x164)]()):this[_0x587b95(0x198)]!==_0x587b95(0x132)&&(this[_0x587b95(0x1b4)](),this[_0x587b95(0x13b)]());}[_0x57d492(0x145)](){const _0x3c2d5e=_0x57d492;let _0x2116e5={'eventID':e[_0x3c2d5e(0x163)][_0x3c2d5e(0x10c)]};this[_0x3c2d5e(0x1af)]['send'](_0x2116e5,this[_0x3c2d5e(0x129)]);}[_0x57d492(0x1ad)](){const _0x14d109=_0x57d492;this['_presenter']=null,this[_0x14d109(0x198)]!=='presenting'&&this[_0x14d109(0x1b3)]();}[_0x57d492(0x199)](_0x1396ac){const _0x4d212b=_0x57d492;if(this[_0x4d212b(0x198)]===_0x4d212b(0x19e)&&this[_0x4d212b(0x14d)]===_0x1396ac['data'][_0x4d212b(0x124)]){let _0x4f35ee=(0x0,e[_0x4d212b(0x131)])(_0x1396ac['data'])[_0x4d212b(0x182)]['reverse']()['find'](_0x1daf41=>_0x1daf41['id']===r[_0x4d212b(0x13e)]['id']);if(_0x4f35ee){let _0x237ae3=_0x4f35ee[_0x4d212b(0x1a8)]['unitId'],_0x1f4f0e=_0x4f35ee[_0x4d212b(0x1a8)]['sheet']['id'];setTimeout(()=>{const _0x4d8325=_0x4d212b;this[_0x4d8325(0x18b)]['executeCommand'](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x237ae3,'subUnitId':_0x1f4f0e},{'fromCollab':!0x0});});}}}[_0x57d492(0x164)](){const _0x538c27=_0x57d492;var _0x163541;(_0x163541=this[_0x538c27(0x170)])==null||_0x163541[_0x538c27(0x17c)](),this[_0x538c27(0x19c)]['next'](_0x538c27(0x128));let _0x1f5a25=new Map(),_0x2c9aa1=this[_0x538c27(0x170)]=new n['DisposableCollection']();_0x2c9aa1[_0x538c27(0x1b1)]((0x0,n[_0x538c27(0x1a2)])(()=>{const _0x157888=_0x538c27;_0x1f5a25[_0x157888(0x189)](({subject:_0xe72b5d,subscription:_0x37cefe})=>{const _0x4b01e2=_0x157888;_0x37cefe[_0x4b01e2(0x1bd)](),_0xe72b5d[_0x4b01e2(0x19b)]();}),_0x1f5a25['clear']();})),_0x2c9aa1['add'](this[_0x538c27(0x18b)][_0x538c27(0x11d)](_0x4d4351=>{const _0x3e5ff3=_0x538c27;if(_0x4d4351[_0x3e5ff3(0x190)]!==n[_0x3e5ff3(0x125)]['OPERATION']||!this['_liveShareService'][_0x3e5ff3(0x1c1)](_0x4d4351['id']))return;let {id:_0x4b93dd}=_0x4d4351,_0x4890c0;if(_0x1f5a25[_0x3e5ff3(0x106)](_0x4b93dd))_0x4890c0=_0x1f5a25[_0x3e5ff3(0x119)](_0x4b93dd)['subject'];else{var _0x5c1f4f;_0x4890c0=new i['Subject']();let _0x3416da=_0x4890c0['pipe']((0x0,a['throttleTime'])((_0x5c1f4f=this[_0x3e5ff3(0x18f)][_0x3e5ff3(0x127)](_0x3e5ff3(0x112)))==null?0xc8:_0x5c1f4f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ff315=>{const _0x21655c=_0x3e5ff3;this['_collabSession'][_0x21655c(0x15a)]({'eventID':e['CollaborationEvent'][_0x21655c(0x15b)],'data':{'unitID':this[_0x21655c(0x129)],'operations':{[_0x1ff315['id']]:{'id':_0x1ff315['id'],'params':JSON[_0x21655c(0x165)](_0x1ff315[_0x21655c(0x1a8)])}}}},this[_0x21655c(0x129)]);});_0x1f5a25['set'](_0x4b93dd,{'subject':_0x4890c0,'subscription':_0x3416da});}_0x4890c0[_0x3e5ff3(0x142)](_0x4d4351);})),this['_liveShareService'][_0x538c27(0x155)](this[_0x538c27(0x129)])['forEach'](_0x2f660a=>this[_0x538c27(0x1af)]['send']({'eventID':e['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x538c27(0x129)],'operations':{[_0x2f660a['id']]:{'id':_0x2f660a['id'],'params':JSON[_0x538c27(0x165)](_0x2f660a[_0x538c27(0x1a8)])}}}},this[_0x538c27(0x129)]));}[_0x57d492(0x1b4)](){const _0x4937dd=_0x57d492;var _0x1e6e1f;this['_status$'][_0x4937dd(0x142)](_0x4937dd(0x157)),(_0x1e6e1f=this[_0x4937dd(0x170)])==null||_0x1e6e1f[_0x4937dd(0x17c)](),this[_0x4937dd(0x170)]=null;}[_0x57d492(0x13b)](){const _0x38f508=_0x57d492;var _0x591e30;(_0x591e30=this[_0x38f508(0x170)])==null||_0x591e30[_0x38f508(0x17c)](),this[_0x38f508(0x19c)][_0x38f508(0x142)]('following');}[_0x57d492(0x1b3)](){const _0x3a58c2=_0x57d492;var _0x24b3d0;this[_0x3a58c2(0x19c)][_0x3a58c2(0x142)](_0x3a58c2(0x157)),(_0x24b3d0=this['_commandDisposable'])==null||_0x24b3d0[_0x3a58c2(0x17c)](),this[_0x3a58c2(0x170)]=null;}[_0x57d492(0x110)](){const _0x2dd450=_0x57d492;var _0x184e42;this[_0x2dd450(0x19c)]['next']('not-following'),(_0x184e42=this[_0x2dd450(0x170)])==null||_0x184e42[_0x2dd450(0x17c)]();}[_0x57d492(0x16f)](_0x58b780){const _0x14efa3=_0x57d492;if(['presenting',_0x14efa3(0x132),'offline'][_0x14efa3(0x18d)](this['_status'])||!_0x58b780[_0x14efa3(0x11f)][_0x14efa3(0x1b7)]||_0x58b780['data'][_0x14efa3(0x1b7)]===this['_collabSession'][_0x14efa3(0x1c0)]())return;this[_0x14efa3(0x198)]===_0x14efa3(0x157)&&this[_0x14efa3(0x13b)]();let _0x3002ca=_0x58b780[_0x14efa3(0x11f)][_0x14efa3(0x117)];Object[_0x14efa3(0x14f)](_0x3002ca)[_0x14efa3(0x189)](_0x1125c5=>{const _0x1ea6dd=_0x14efa3;this['_commandService']['executeCommand'](_0x1125c5['id'],_0x1125c5[_0x1ea6dd(0x1a8)]?JSON[_0x1ea6dd(0x193)](_0x1125c5[_0x1ea6dd(0x1a8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5ef2a3=_0x57d492;var _0x38c795;this[_0x5ef2a3(0x19c)][_0x5ef2a3(0x142)](_0x5ef2a3(0x122)),(_0x38c795=this[_0x5ef2a3(0x170)])==null||_0x38c795['dispose']();}[_0x57d492(0x16b)](){const _0x35c13d=_0x57d492;this[_0x35c13d(0x19c)][_0x35c13d(0x142)](_0x35c13d(0x157)),this[_0x35c13d(0x145)]();}};S=y([v(0x2,n[_0x57d492(0x10b)]),v(0x3,(0x0,n[_0x57d492(0x116)])(_)),v(0x4,n[_0x57d492(0x135)])],S);function _0x3762(){const _0x506e92=['_startPresenting','stringify','getTypeOfUnitDisposed$','call','toPrimitive','_config','You\x27re\x20presenting\x20the\x20document','_handleOnline','NEW_CHANGESETS','disposeWithMe','packageName','_handleOperation','_commandDisposable','stopFollowing','div','HEADER_MENU','UniverUIPlugin','delete','IUIPartsService','_mountLiveShare','DependentOn','Stop\x20presenting','_startLiveShareCoordinator','_liveShareService','dispose','RxDisposable','UniverLicensePlugin','decorate','96048KdYglX','104836ilHGKd','mutations','2093zSxXVs','startFollowing','jsx','5226EmjcDb','getValue','defineProperty','forEach','symbol','_commandService','init','includes','Start\x20following','_configService','type','_handleNewHost','toStringTag','parse','UNIVER_LIVE_SHARE_PLUGIN','prototype','univer-mb-3\x20univer-w-full\x20univer-text-sm','BuiltInUIPart','_status','_handleNewChangeSets','string','complete','_status$','tryStartPresenting','following','clsx','live-share.config','SetWorksheetActiveOperation','toDisposable','_handleOffline','Stop\x20following','override','getTypeOfUnitAdded$','LiveShareStatus','params','Injector','FOLLOWING','LiveShareIcon','28182bXbnWP','_handleTerminate','useDependency','_collabSession','getUnitId','add','You\x27re\x20following\x20the\x20presenter','_beIdle','_stopPresenting','touchDependencies','status$','presenter','function','LIVESHARE_NEW_HOST','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','object','unsubscribe','UNIVER_SHEET','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getMemberID','shouldShareOperation','getCurrentTypeOfUnit$','onRendered','_collabSessionService','has','SetZoomRatioOperation','Button','LIVESHARE_TERMINATE','set','IConfigService','LIVESHARE_FETCH_OPERATIONS','connectInjector','takeUntil','Fragment','_stopFollowing','pipe','SAME_OPERATION_SHARE_INTERVAL','PRESENTING','IUniverInstanceService','9CRNevo','Inject','operations','constructor','get','useMemo','OFFLINE','default','onCommandExecuted','12840YxqYnV','data','You\x27are\x20offline.','UniverCollaborationClientPlugin','offline','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','CommandType','_uiPartsService','getConfig','presenting','_unitID','Plugin','_sharedOperations','Module','getLiveShareCoordinator','_injector','useObservable','registerDependencies','parseProtocolChangeset','not-following','Present\x20this\x20document','_univerInstanceService','ICommandService','IDLE','CollaborationSessionService','Disposable','Start','registerInitialStateReporter','_startFollowing','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','dispose$','InsertSheetMutation','registerSharedOperation','_entities','311703wSnaTw','next','470030SfOpvv','UniverInstanceType','_fetchOperations','length','subscribe','asObservable','end','SessionStatus','jsxs','button','_presenter','iterator','values','LiveShareController','1.0.0-alpha.8','UNIVER_UNKNOWN','from','7450XBjFYK','getInitialStates','34512IfpQZm','idle','LIVESHARE_REQUEST_HOST','_init','send','LIVESHARE_OPERATION','event$','getOwnPropertyDescriptor','stopPresenting','12tpcdnQ','onStarting','_reporters','sessionStatus$','CollaborationEvent'];_0x3762=function(){return _0x506e92;};return _0x3762();}var C='@univerjs-pro/live-share',w=_0x57d492(0x151);const T={};let E=class extends n['Disposable']{constructor(_0x3a58a0){super(),this['_liveShareService']=_0x3a58a0,this['_init']();}['_init'](){const _0x11cc0a=_0x57d492;[c[_0x11cc0a(0x107)]['id'],c['SetScrollOperation']['id'],r[_0x11cc0a(0x1a1)]['id']]['forEach'](_0x596dce=>{const _0x4d704b=_0x11cc0a;this[_0x4d704b(0x16d)](this['_liveShareService'][_0x4d704b(0x13f)](_0x596dce));});}};E=y([v(0x0,(0x0,n[_0x57d492(0x116)])(_))],E);function D(){const _0x4ca9f5=_0x57d492;let _0x339b9a=(0x0,s[_0x4ca9f5(0x1ae)])(b),_0x27db28=(0x0,s[_0x4ca9f5(0x1ae)])(n[_0x4ca9f5(0x114)]),_0x3d8035=(0x0,s[_0x4ca9f5(0x12f)])(()=>_0x27db28[_0x4ca9f5(0x1c2)](n[_0x4ca9f5(0x144)][_0x4ca9f5(0x1be)]),void 0x0,!0x1,[]),_0x5490b7=(0x0,s[_0x4ca9f5(0x12f)])((0x0,d[_0x4ca9f5(0x11a)])(()=>_0x3d8035?(0x0,i['defer'])(()=>(0x0,i[_0x4ca9f5(0x153)])(_0x339b9a['getLiveShareCoordinator'](_0x3d8035[_0x4ca9f5(0x1b0)]()))):(0x0,i['of'])(null),[_0x3d8035,_0x339b9a]),null),_0x9cadc1=(0x0,s[_0x4ca9f5(0x12f)])(_0x5490b7?()=>_0x5490b7[_0x4ca9f5(0x1b6)]:null,_0x4ca9f5(0x157),!0x1,[_0x5490b7]);return _0x5490b7?(0x0,f[_0x4ca9f5(0x185)])(l['Dropdown'],{'align':_0x4ca9f5(0x149),'disabled':_0x9cadc1===_0x4ca9f5(0x122),'className':_0x4ca9f5(0x123),'overlay':(0x0,f[_0x4ca9f5(0x185)])(O,{'status':_0x9cadc1,'coordinator':_0x5490b7}),'children':(0x0,f[_0x4ca9f5(0x185)])(_0x4ca9f5(0x14c),{'className':(0x0,l[_0x4ca9f5(0x19f)])(_0x4ca9f5(0x1bf),{'univer-cursor-not-allowed':_0x9cadc1===_0x4ca9f5(0x122),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9cadc1!==_0x4ca9f5(0x122)}),'type':_0x4ca9f5(0x14c),'children':(0x0,f[_0x4ca9f5(0x185)])(u[_0x4ca9f5(0x1ab)],{})})}):null;}function O(_0x1f3abb){const _0x43b3ab=_0x57d492;let {status:_0x397830,coordinator:_0x4104a0}=_0x1f3abb;switch(_0x397830){case'idle':return(0x0,f[_0x43b3ab(0x185)])(k,{'coordinator':_0x4104a0});case _0x43b3ab(0x19e):return(0x0,f[_0x43b3ab(0x185)])(A,{'coordinator':_0x4104a0});case _0x43b3ab(0x132):return(0x0,f[_0x43b3ab(0x185)])(j,{'coordinator':_0x4104a0});case'offline':return(0x0,f[_0x43b3ab(0x185)])(N,{});case _0x43b3ab(0x128):return(0x0,f[_0x43b3ab(0x185)])(M,{'coordinator':_0x4104a0});default:return null;}}function k(_0x31b090){const _0x370c91=_0x57d492;let {coordinator:_0x1d8ccb}=_0x31b090;return(0x0,f['jsxs'])(f[_0x370c91(0x10f)],{'children':[(0x0,f['jsx'])('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x370c91(0x133)}),(0x0,f[_0x370c91(0x185)])(l[_0x370c91(0x108)],{'onClick':()=>_0x1d8ccb[_0x370c91(0x19d)](),'children':_0x370c91(0x139)})]});}function A(_0x1f4597){const _0x5169ba=_0x57d492;let {coordinator:_0x40f350}=_0x1f4597;return(0x0,f[_0x5169ba(0x14b)])(f[_0x5169ba(0x10f)],{'children':[(0x0,f[_0x5169ba(0x185)])(_0x5169ba(0x172),{'className':_0x5169ba(0x196),'children':_0x5169ba(0x1b2)}),(0x0,f[_0x5169ba(0x185)])(l[_0x5169ba(0x108)],{'onClick':()=>_0x40f350[_0x5169ba(0x171)](),'children':_0x5169ba(0x1a4)})]});}function _0x153d(_0x3471bc,_0x1894b8){_0x3471bc=_0x3471bc-0x105;const _0x376279=_0x3762();let _0x153dfb=_0x376279[_0x3471bc];return _0x153dfb;}function j(_0x1db940){const _0x3915d8=_0x57d492;let {coordinator:_0x461d14}=_0x1db940;return(0x0,f[_0x3915d8(0x14b)])(f[_0x3915d8(0x10f)],{'children':[(0x0,f['jsx'])(_0x3915d8(0x172),{'className':_0x3915d8(0x196),'children':_0x3915d8(0x1bb)}),(0x0,f['jsx'])(l[_0x3915d8(0x108)],{'variant':'text','onClick':()=>_0x461d14[_0x3915d8(0x184)](),'children':_0x3915d8(0x18e)})]});}function M(_0x194050){const _0x175e23=_0x57d492;let {coordinator:_0x531f0f}=_0x194050;return(0x0,f['jsxs'])(f[_0x175e23(0x10f)],{'children':[(0x0,f['jsx'])(_0x175e23(0x172),{'className':_0x175e23(0x196),'children':_0x175e23(0x16a)}),(0x0,f[_0x175e23(0x185)])(l[_0x175e23(0x108)],{'variant':_0x175e23(0x11c),'onClick':()=>_0x531f0f[_0x175e23(0x15e)](),'children':_0x175e23(0x179)})]});}function N(){const _0x3a4db4=_0x57d492;return(0x0,f['jsx'])(f[_0x3a4db4(0x10f)],{'children':_0x3a4db4(0x120)});}let P=class extends n[_0x57d492(0x138)]{constructor(_0x39b5b1,_0x15658c){const _0x51082b=_0x57d492;super(),this[_0x51082b(0x12e)]=_0x39b5b1,this[_0x51082b(0x126)]=_0x15658c,this[_0x51082b(0x177)]();}['_mountLiveShare'](){const _0x38083c=_0x57d492;this[_0x38083c(0x16d)](this[_0x38083c(0x126)]['registerComponent'](s[_0x38083c(0x197)][_0x38083c(0x173)],()=>(0x0,s[_0x38083c(0x10d)])(D,this['_injector'])));}};P=y([v(0x0,(0x0,n[_0x57d492(0x116)])(n[_0x57d492(0x1a9)])),v(0x1,s[_0x57d492(0x176)])],P);let F=class extends n[_0x57d492(0x12a)]{constructor(_0x3ded5d=T,_0x6fe086,_0x3ccef3){const _0x3969ce=_0x57d492;super(),this['_config']=_0x3ded5d,this['_injector']=_0x6fe086,this[_0x3969ce(0x18f)]=_0x3ccef3;let {..._0x2ffe54}=(0x0,n['merge'])({},T,this[_0x3969ce(0x169)]);this[_0x3969ce(0x18f)][_0x3969ce(0x1ba)](_0x3969ce(0x1a0),_0x2ffe54);}[_0x57d492(0x160)](){const _0x40a5b5=_0x57d492;(0x0,n[_0x40a5b5(0x130)])(this['_injector'],(0x0,n['mergeOverrideWithDependencies'])([[_],[b],[E],[P]],this[_0x40a5b5(0x169)][_0x40a5b5(0x1a5)])),(0x0,n[_0x40a5b5(0x1b5)])(this[_0x40a5b5(0x12e)],[[E]]);}[_0x57d492(0x1c3)](){const _0x1e4bc7=_0x57d492;(0x0,n['touchDependencies'])(this[_0x1e4bc7(0x12e)],[[P]]);}};g(F,_0x57d492(0x190),n[_0x57d492(0x144)][_0x57d492(0x152)]),g(F,'pluginName',_0x57d492(0x194)),g(F,_0x57d492(0x16e),C),g(F,'version',w),F=y([(0x0,n[_0x57d492(0x178)])(o[_0x57d492(0x17e)],s[_0x57d492(0x174)],t[_0x57d492(0x121)]),v(0x1,(0x0,n['Inject'])(n[_0x57d492(0x1a9)])),v(0x2,n[_0x57d492(0x10b)])],F),Object[_0x57d492(0x188)](exports,_0x57d492(0x150),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x57d492(0x1a7)]=x,Object['defineProperty'](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return F;}});
|
|
1
|
+
const _0x1d4cd7=_0x5350;function _0x5155(){const _0x3830c7=['Button','IUIPartsService','idle','requireSession','get','asObservable','_startLiveShareCoordinator','object','status$','useDependency','IDLE','getTypeOfUnitAdded$','_init','47430euJgJh','OFFLINE','_startPresenting','DisposableCollection','DependentOn','_univerInstanceService','offline','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','div','216iDfpTZ','_collabSessionService','toStringTag','includes','merge','LIVESHARE_OPERATION','Subject','type','pluginName','You\x27re\x20following\x20the\x20presenter','getLiveShareCoordinatorSync','unit','from','_configService','dispose','Start\x20following','registerInitialStateReporter','RxDisposable','CollaborationSessionService','parse','_commandService','parseProtocolChangeset','defineProperty','length','takeUntil','end','symbol','_handleTerminate','packageName','button','FOLLOWING','ONLINE','_status$','_beIdle','667916MKgvNG','_handleNewHost','_collabSession','text','SetZoomRatioOperation','has','_injector','360369hTKHzf','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','341hWeKNN','_startFollowing','subscribe','startFollowing','tryStartPresenting','Plugin','presenting','_status','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','_commandDisposable','function','forEach','LIVESHARE_NEW_HOST','_config','_handleNewChangeSets','getValue','HEADER_MENU','operations','getUnitId','UniverCollaborationClientPlugin','createInstance','You\x27re\x20presenting\x20the\x20document','jsxs','touchDependencies','onCommandExecuted','_reporters','UniverLicensePlugin','SessionStatus','following','PRESENTING','params','UniverLiveSharePlugin','_fetchOperations','set','setConfig','_handleOnline','disposeWithMe','_uiPartsService','jsx','SetWorksheetActiveOperation','pipe','433026rIgWvo','_mountLiveShare','icon','Dropdown','getInitialStates','presenter','_entities','_unitID','Present\x20this\x20document','add','_presenter','not-following','IUniverInstanceService','OPERATION','init','Stop\x20following','stringify','LiveShareIcon','_stopPresenting','live-share.config','NEW_CHANGESETS','Inject','BehaviorSubject','iterator','send','memberID','string','getLiveShareCoordinator','_liveShareService','complete','onRendered','_handleOffline','decorate','IConfigService','constructor','dispose$','getCurrentTypeOfUnit$','14735ArFeDO','reverse','1993042nezarp','toPrimitive','_stopFollowing','useObservable','map','CollaborationEvent','getStatus','ICommandService','registerSharedOperation','InsertSheetMutation','getMemberID','unitId','UNIVER_SHEET','unsubscribe','Injector','924490LknqJF','call','data','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','default','SetScrollOperation','@univerjs-pro/live-share','registerDependencies','Fragment','_sharedOperations','delete','Disposable','throttleTime','next','executeCommand','9vbPHEg','1398SHOwrl'];_0x5155=function(){return _0x3830c7;};return _0x5155();}(function(_0x50b721,_0x56cd26){const _0x1bd338=_0x5350,_0x37bb82=_0x50b721();while(!![]){try{const _0x25e84c=parseInt(_0x1bd338(0xc0))/0x1+-parseInt(_0x1bd338(0xe7))/0x2+-parseInt(_0x1bd338(0x105))/0x3*(parseInt(_0x1bd338(0x8c))/0x4)+parseInt(_0x1bd338(0xf6))/0x5+-parseInt(_0x1bd338(0x106))/0x6*(-parseInt(_0x1bd338(0xe5))/0x7)+-parseInt(_0x1bd338(0x11f))/0x8*(-parseInt(_0x1bd338(0x93))/0x9)+-parseInt(_0x1bd338(0x114))/0xa*(parseInt(_0x1bd338(0x96))/0xb);if(_0x25e84c===_0x56cd26)break;else _0x37bb82['push'](_0x37bb82['shift']());}catch(_0x2b663e){_0x37bb82['push'](_0x37bb82['shift']());}}}(_0x5155,0x850ed),Object[_0x1d4cd7(0x135)](exports,Symbol[_0x1d4cd7(0x121)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs-pro/license'),s=require('@univerjs/sheets-ui'),c=require('@univerjs/ui'),l=require('@univerjs/design'),u=require('@univerjs/icons'),d=require('react'),f=require('react/jsx-runtime');function p(_0x2fc0d9){'@babel/helpers - typeof';const _0xee403c=_0x1d4cd7;return p=typeof Symbol==_0xee403c(0xa1)&&typeof Symbol[_0xee403c(0xd7)]==_0xee403c(0x84)?function(_0x27d095){return typeof _0x27d095;}:function(_0x2e88f7){const _0x4b9213=_0xee403c;return _0x2e88f7&&typeof Symbol==_0x4b9213(0xa1)&&_0x2e88f7[_0x4b9213(0xe2)]===Symbol&&_0x2e88f7!==Symbol['prototype']?_0x4b9213(0x84):typeof _0x2e88f7;},p(_0x2fc0d9);}function m(_0x3a1057,_0x40ad09){const _0x4edcaa=_0x1d4cd7;if(p(_0x3a1057)!=_0x4edcaa(0x10e)||!_0x3a1057)return _0x3a1057;var _0x59a39f=_0x3a1057[Symbol[_0x4edcaa(0xe8)]];if(_0x59a39f!==void 0x0){var _0xa5829=_0x59a39f[_0x4edcaa(0xf7)](_0x3a1057,_0x40ad09||'default');if(p(_0xa5829)!='object')return _0xa5829;throw TypeError(_0x4edcaa(0x11b));}return(_0x40ad09===_0x4edcaa(0xda)?String:Number)(_0x3a1057);}function h(_0x408cc8){const _0x5d098d=_0x1d4cd7;var _0x16cbb1=m(_0x408cc8,_0x5d098d(0xda));return p(_0x16cbb1)=='symbol'?_0x16cbb1:_0x16cbb1+'';}function g(_0x11d63c,_0x527ea2,_0x29d302){const _0x46bebc=_0x1d4cd7;return(_0x527ea2=h(_0x527ea2))in _0x11d63c?Object[_0x46bebc(0x135)](_0x11d63c,_0x527ea2,{'value':_0x29d302,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11d63c[_0x527ea2]=_0x29d302,_0x11d63c;}var _=class extends n['Disposable']{constructor(..._0x48ccf4){const _0x55515f=_0x1d4cd7;super(..._0x48ccf4),g(this,_0x55515f(0xff),new Set()),g(this,_0x55515f(0xb0),new Set());}[_0x1d4cd7(0xef)](_0x1c952f){const _0x415ed6=_0x1d4cd7;return this[_0x415ed6(0xff)][_0x415ed6(0xc9)](_0x1c952f),(0x0,n['toDisposable'])(()=>this[_0x415ed6(0xff)][_0x415ed6(0x100)](_0x1c952f));}[_0x1d4cd7(0x12f)](_0x1958e0){const _0x2b5b40=_0x1d4cd7;return this['_reporters']['add'](_0x1958e0),(0x0,n['toDisposable'])(()=>this[_0x2b5b40(0xb0)][_0x2b5b40(0x100)](_0x1958e0));}[_0x1d4cd7(0x94)](_0x28ecab){const _0x2b6ef7=_0x1d4cd7;return this['_sharedOperations'][_0x2b6ef7(0x91)](_0x28ecab);}[_0x1d4cd7(0xc4)](_0x155e44){const _0x27ad6e=_0x1d4cd7;return Array['from'](this[_0x27ad6e(0xb0)])[_0x27ad6e(0xeb)](_0x3337b3=>_0x3337b3(_0x155e44));}};function v(_0x5b6d1b,_0x3e9dfb){return function(_0x36be50,_0x163fcc){_0x3e9dfb(_0x36be50,_0x163fcc,_0x5b6d1b);};}function y(_0x48b6c3,_0x54139f,_0x416dc5,_0x331479){const _0x58fafb=_0x1d4cd7;var _0x553538=arguments['length'],_0x362700=_0x553538<0x3?_0x54139f:_0x331479===null?_0x331479=Object[_0x58fafb(0x9e)](_0x54139f,_0x416dc5):_0x331479,_0x4a6639;if(typeof Reflect==_0x58fafb(0x10e)&&typeof Reflect[_0x58fafb(0xe0)]==_0x58fafb(0xa1))_0x362700=Reflect[_0x58fafb(0xe0)](_0x48b6c3,_0x54139f,_0x416dc5,_0x331479);else{for(var _0x3e0294=_0x48b6c3[_0x58fafb(0x136)]-0x1;_0x3e0294>=0x0;_0x3e0294--)(_0x4a6639=_0x48b6c3[_0x3e0294])&&(_0x362700=(_0x553538<0x3?_0x4a6639(_0x362700):_0x553538>0x3?_0x4a6639(_0x54139f,_0x416dc5,_0x362700):_0x4a6639(_0x54139f,_0x416dc5))||_0x362700);}return _0x553538>0x3&&_0x362700&&Object[_0x58fafb(0x135)](_0x54139f,_0x416dc5,_0x362700),_0x362700;}let b=class extends n[_0x1d4cd7(0x130)]{constructor(_0x35165e,_0x1e4b2c,_0x4751a5){const _0x299b6a=_0x1d4cd7;super(),this[_0x299b6a(0x119)]=_0x35165e,this[_0x299b6a(0x92)]=_0x1e4b2c,this[_0x299b6a(0x120)]=_0x4751a5,g(this,_0x299b6a(0xc6),new Map()),this[_0x299b6a(0x113)]();}async['getLiveShareCoordinator'](_0x57b2d2){const _0x10611f=_0x1d4cd7;return this[_0x10611f(0xc6)]['has'](_0x57b2d2)||await this[_0x10611f(0x10d)](_0x57b2d2),this[_0x10611f(0xc6)][_0x10611f(0x10b)](_0x57b2d2);}[_0x1d4cd7(0x129)](_0x1caac1){const _0x1637e3=_0x1d4cd7;return this[_0x1637e3(0xc6)][_0x1637e3(0x10b)](_0x1caac1)??null;}[_0x1d4cd7(0x113)](){const _0xad7a7e=_0x1d4cd7;this[_0xad7a7e(0x119)][_0xad7a7e(0x112)](n[_0xad7a7e(0x11d)]['UNIVER_SHEET'])[_0xad7a7e(0xbf)]((0x0,a[_0xad7a7e(0x82)])(this[_0xad7a7e(0xe3)]))['subscribe'](async _0x467237=>{const _0x457a9d=_0xad7a7e;let _0xb02343=_0x467237[_0x457a9d(0x12a)]['getUnitId']();this[_0x457a9d(0xc6)][_0x457a9d(0x91)](_0xb02343)||this[_0x457a9d(0x10d)](_0xb02343);}),this[_0xad7a7e(0x119)]['getTypeOfUnitDisposed$'](n[_0xad7a7e(0x11d)][_0xad7a7e(0xf3)])[_0xad7a7e(0xbf)]((0x0,a[_0xad7a7e(0x82)])(this['dispose$']))[_0xad7a7e(0x98)](_0x5fe623=>{const _0x117ca9=_0xad7a7e;let _0x5739bb=_0x5fe623[_0x117ca9(0xa9)](),_0xe0d863=this['_entities'][_0x117ca9(0x10b)](_0x5739bb);_0xe0d863==null||_0xe0d863['dispose']();});}async[_0x1d4cd7(0x10d)](_0x57a4d8){const _0x46b9a6=_0x1d4cd7;let _0x3b2b4d=await this[_0x46b9a6(0x120)][_0x46b9a6(0x10a)](_0x57a4d8),_0x8d418e=this[_0x46b9a6(0x92)][_0x46b9a6(0xab)](S,_0x57a4d8,_0x3b2b4d);return _0x8d418e[_0x46b9a6(0xce)](),this[_0x46b9a6(0xc6)][_0x46b9a6(0xb8)](_0x57a4d8,_0x8d418e),_0x8d418e;}};function _0x5350(_0x260496,_0x531a61){_0x260496=_0x260496-0x82;const _0x5155c5=_0x5155();let _0x535054=_0x5155c5[_0x260496];return _0x535054;}b=y([v(0x0,n[_0x1d4cd7(0xcc)]),v(0x1,(0x0,n[_0x1d4cd7(0xd5)])(n[_0x1d4cd7(0xf5)])),v(0x2,(0x0,n[_0x1d4cd7(0xd5)])(t[_0x1d4cd7(0x131)]))],b);let x=function(_0x356616){const _0x418a48=_0x1d4cd7;return _0x356616[_0x418a48(0x115)]=_0x418a48(0x11a),_0x356616[_0x418a48(0x111)]=_0x418a48(0x109),_0x356616[_0x418a48(0x88)]=_0x418a48(0xb3),_0x356616['NOT_FOLLOWING']=_0x418a48(0xcb),_0x356616[_0x418a48(0xb4)]=_0x418a48(0x9c),_0x356616;}({}),S=class extends n[_0x1d4cd7(0x130)]{get[_0x1d4cd7(0x9d)](){const _0x122972=_0x1d4cd7;return this[_0x122972(0x8a)][_0x122972(0xa6)]();}constructor(_0x16f4cc,_0x47115b,_0x26b8d9,_0x126b85,_0x35df8a){const _0x46b9a9=_0x1d4cd7;super(),this[_0x46b9a9(0xc7)]=_0x16f4cc,this[_0x46b9a9(0x8e)]=_0x47115b,this[_0x46b9a9(0x12c)]=_0x26b8d9,this['_liveShareService']=_0x126b85,this[_0x46b9a9(0x133)]=_0x35df8a,g(this,'_status$',new i[(_0x46b9a9(0xd6))]('idle')),g(this,_0x46b9a9(0x10f),this[_0x46b9a9(0x8a)][_0x46b9a9(0x10c)]()),g(this,_0x46b9a9(0x113),!0x1),g(this,_0x46b9a9(0xa0),null),g(this,'_presenter',null);}[_0x1d4cd7(0x12d)](){const _0x375c46=_0x1d4cd7;var _0x4ddbbc;(_0x4ddbbc=this[_0x375c46(0xa0)])==null||_0x4ddbbc[_0x375c46(0x12d)](),this['_status$'][_0x375c46(0x103)](_0x375c46(0x109)),this[_0x375c46(0x8a)][_0x375c46(0xdd)]();}[_0x1d4cd7(0xed)](){const _0x171244=_0x1d4cd7;return this[_0x171244(0x9d)];}['init'](){const _0x4505d7=_0x1d4cd7;this['_init']||(this[_0x4505d7(0x113)]=!0x0,this[_0x4505d7(0x8e)]['sessionStatus$'][_0x4505d7(0xbf)]((0x0,a[_0x4505d7(0x82)])(this[_0x4505d7(0xe3)]))['subscribe'](_0x194d91=>{const _0x2e0b2d=_0x4505d7;switch(_0x194d91){case t[_0x2e0b2d(0xb2)][_0x2e0b2d(0x115)]:this[_0x2e0b2d(0xdf)]();break;case t[_0x2e0b2d(0xb2)][_0x2e0b2d(0x89)]:this[_0x2e0b2d(0xba)]();break;default:}}),this[_0x4505d7(0x8e)]['event$']['pipe']((0x0,a[_0x4505d7(0x82)])(this['dispose$']))[_0x4505d7(0x98)](_0x4be929=>{const _0x2d4827=_0x4505d7;let {eventID:_0x3f02d7}=_0x4be929;switch(_0x3f02d7){case e[_0x2d4827(0xec)][_0x2d4827(0xa3)]:this[_0x2d4827(0x8d)](_0x4be929);break;case e[_0x2d4827(0xec)][_0x2d4827(0x124)]:this['_handleOperation'](_0x4be929);break;case e[_0x2d4827(0xec)]['LIVESHARE_TERMINATE']:this[_0x2d4827(0x85)]();break;case e['CollaborationEvent'][_0x2d4827(0xd4)]:this[_0x2d4827(0xa5)](_0x4be929);break;default:}}));}[_0x1d4cd7(0x9a)](){const _0x4564eb=_0x1d4cd7;this[_0x4564eb(0x8e)]['send']({'eventID':e[_0x4564eb(0xec)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4564eb(0xc7)],'userID':this['_collabSession'][_0x4564eb(0xf1)]()}},this[_0x4564eb(0xc7)]);}['stopPresenting'](){const _0x1d7a74=_0x1d4cd7;this[_0x1d7a74(0x9d)]===_0x1d7a74(0x9c)&&(this[_0x1d7a74(0x8a)][_0x1d7a74(0x103)](_0x1d7a74(0x109)),this[_0x1d7a74(0x8e)][_0x1d7a74(0xd8)]({'eventID':e[_0x1d7a74(0xec)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1d4cd7(0x99)](){const _0x10a3af=_0x1d4cd7;this['_status']===_0x10a3af(0xcb)&&(this['_status$'][_0x10a3af(0x103)](_0x10a3af(0xb3)),this[_0x10a3af(0x97)]());}['stopFollowing'](){const _0x328425=_0x1d4cd7;this[_0x328425(0x9d)]==='following'&&this['_stopFollowing']();}[_0x1d4cd7(0x8d)](_0x2d0092){const _0x537cbd=_0x1d4cd7;let {presenter:_0x21774c}=_0x2d0092[_0x537cbd(0xf8)],_0x29f0f9=this[_0x537cbd(0x8e)][_0x537cbd(0xf1)]();this[_0x537cbd(0xca)]=_0x21774c,_0x21774c===_0x29f0f9?(this[_0x537cbd(0xe9)](),this['_startPresenting']()):this[_0x537cbd(0x9d)]!==_0x537cbd(0xcb)&&(this[_0x537cbd(0xd2)](),this[_0x537cbd(0x97)]());}['_fetchOperations'](){const _0x117240=_0x1d4cd7;let _0xd7cb42={'eventID':e[_0x117240(0xec)][_0x117240(0x9f)]};this[_0x117240(0x8e)][_0x117240(0xd8)](_0xd7cb42,this[_0x117240(0xc7)]);}[_0x1d4cd7(0x85)](){const _0x1226d5=_0x1d4cd7;this[_0x1226d5(0xca)]=null,this[_0x1226d5(0x9d)]!==_0x1226d5(0x9c)&&this[_0x1226d5(0x8b)]();}[_0x1d4cd7(0xa5)](_0x2f30db){const _0x25b030=_0x1d4cd7;if(this['_status']==='following'&&this[_0x25b030(0xca)]===_0x2f30db[_0x25b030(0xf8)][_0x25b030(0xd9)]){let _0xeaf350=(0x0,e[_0x25b030(0x134)])(_0x2f30db[_0x25b030(0xf8)])['mutations'][_0x25b030(0xe6)]()['find'](_0x2721b9=>_0x2721b9['id']===r[_0x25b030(0xf0)]['id']);if(_0xeaf350){let _0x36ea7b=_0xeaf350[_0x25b030(0xb5)][_0x25b030(0xf2)],_0x73cfa0=_0xeaf350['params']['sheet']['id'];setTimeout(()=>{const _0x361d89=_0x25b030;this['_commandService'][_0x361d89(0x104)](r[_0x361d89(0xbe)]['id'],{'unitId':_0x36ea7b,'subUnitId':_0x73cfa0},{'fromCollab':!0x0});});}}}[_0x1d4cd7(0x116)](){const _0x288567=_0x1d4cd7;var _0x2ff8c8;(_0x2ff8c8=this[_0x288567(0xa0)])==null||_0x2ff8c8['dispose'](),this[_0x288567(0x8a)][_0x288567(0x103)](_0x288567(0x9c));let _0xba1d4b=new Map(),_0x2660fd=this['_commandDisposable']=new n[(_0x288567(0x117))]();_0x2660fd[_0x288567(0xc9)]((0x0,n['toDisposable'])(()=>{_0xba1d4b['forEach'](({subject:_0x1f9ade,subscription:_0x1b411f})=>{const _0x57a211=_0x5350;_0x1b411f[_0x57a211(0xf4)](),_0x1f9ade[_0x57a211(0xdd)]();}),_0xba1d4b['clear']();})),_0x2660fd[_0x288567(0xc9)](this[_0x288567(0x133)][_0x288567(0xaf)](_0x59eaf2=>{const _0x2575dc=_0x288567;if(_0x59eaf2[_0x2575dc(0x126)]!==n['CommandType'][_0x2575dc(0xcd)]||!this['_liveShareService'][_0x2575dc(0x94)](_0x59eaf2['id']))return;let {id:_0x2d8c1b}=_0x59eaf2,_0x2be66f;if(_0xba1d4b['has'](_0x2d8c1b))_0x2be66f=_0xba1d4b[_0x2575dc(0x10b)](_0x2d8c1b)['subject'];else{_0x2be66f=new i[(_0x2575dc(0x125))]();let _0x9ca6f3=_0x2be66f[_0x2575dc(0xbf)]((0x0,a[_0x2575dc(0x102)])(this[_0x2575dc(0x12c)]['getConfig']('SAME_OPERATION_SHARE_INTERVAL')??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2575dc(0x98)](_0x3731bc=>{const _0x575873=_0x2575dc;this[_0x575873(0x8e)][_0x575873(0xd8)]({'eventID':e['CollaborationEvent'][_0x575873(0x124)],'data':{'unitID':this[_0x575873(0xc7)],'operations':{[_0x3731bc['id']]:{'id':_0x3731bc['id'],'params':JSON[_0x575873(0xd0)](_0x3731bc['params'])}}}},this['_unitID']);});_0xba1d4b[_0x2575dc(0xb8)](_0x2d8c1b,{'subject':_0x2be66f,'subscription':_0x9ca6f3});}_0x2be66f[_0x2575dc(0x103)](_0x59eaf2);})),this[_0x288567(0xdc)][_0x288567(0xc4)](this['_unitID'])[_0x288567(0xa2)](_0x5cebc6=>this[_0x288567(0x8e)][_0x288567(0xd8)]({'eventID':e['CollaborationEvent'][_0x288567(0x124)],'data':{'unitID':this[_0x288567(0xc7)],'operations':{[_0x5cebc6['id']]:{'id':_0x5cebc6['id'],'params':JSON['stringify'](_0x5cebc6[_0x288567(0xb5)])}}}},this[_0x288567(0xc7)]));}[_0x1d4cd7(0xd2)](){const _0x49d1a9=_0x1d4cd7;var _0x1455b5;this['_status$']['next']('idle'),(_0x1455b5=this[_0x49d1a9(0xa0)])==null||_0x1455b5[_0x49d1a9(0x12d)](),this[_0x49d1a9(0xa0)]=null;}['_startFollowing'](){const _0x4569e3=_0x1d4cd7;var _0x592ccd;(_0x592ccd=this['_commandDisposable'])==null||_0x592ccd['dispose'](),this[_0x4569e3(0x8a)][_0x4569e3(0x103)]('following');}['_beIdle'](){const _0x436633=_0x1d4cd7;var _0x2ca86b;this[_0x436633(0x8a)][_0x436633(0x103)](_0x436633(0x109)),(_0x2ca86b=this['_commandDisposable'])==null||_0x2ca86b[_0x436633(0x12d)](),this['_commandDisposable']=null;}[_0x1d4cd7(0xe9)](){const _0x146908=_0x1d4cd7;var _0x17e2cf;this[_0x146908(0x8a)][_0x146908(0x103)]('not-following'),(_0x17e2cf=this[_0x146908(0xa0)])==null||_0x17e2cf[_0x146908(0x12d)]();}['_handleOperation'](_0x11c831){const _0x175673=_0x1d4cd7;if([_0x175673(0x9c),_0x175673(0xcb),'offline'][_0x175673(0x122)](this[_0x175673(0x9d)])||!_0x11c831['data'][_0x175673(0xc5)]||_0x11c831[_0x175673(0xf8)][_0x175673(0xc5)]===this[_0x175673(0x8e)][_0x175673(0xf1)]())return;this['_status']===_0x175673(0x109)&&this['_startFollowing']();let _0x52a350=_0x11c831[_0x175673(0xf8)][_0x175673(0xa8)];Object['values'](_0x52a350)['forEach'](_0x4f4e59=>{const _0x57511f=_0x175673;this['_commandService'][_0x57511f(0x104)](_0x4f4e59['id'],_0x4f4e59[_0x57511f(0xb5)]?JSON[_0x57511f(0x132)](_0x4f4e59['params']):null,{'fromCollab':!0x0});});}[_0x1d4cd7(0xdf)](){const _0x4584d1=_0x1d4cd7;var _0x42db29;this[_0x4584d1(0x8a)][_0x4584d1(0x103)](_0x4584d1(0x11a)),(_0x42db29=this[_0x4584d1(0xa0)])==null||_0x42db29[_0x4584d1(0x12d)]();}['_handleOnline'](){const _0x3167ef=_0x1d4cd7;this[_0x3167ef(0x8a)][_0x3167ef(0x103)](_0x3167ef(0x109)),this[_0x3167ef(0xb7)]();}};S=y([v(0x2,n[_0x1d4cd7(0xe1)]),v(0x3,(0x0,n[_0x1d4cd7(0xd5)])(_)),v(0x4,n[_0x1d4cd7(0xee)])],S);var C=_0x1d4cd7(0xfc),w='1.0.0-beta.1';const T={};let E=class extends n[_0x1d4cd7(0x101)]{constructor(_0xe9c273){const _0x426047=_0x1d4cd7;super(),this[_0x426047(0xdc)]=_0xe9c273,this[_0x426047(0x113)]();}[_0x1d4cd7(0x113)](){const _0xe9b1c4=_0x1d4cd7;[s[_0xe9b1c4(0x90)]['id'],s[_0xe9b1c4(0xfb)]['id'],r['SetWorksheetActiveOperation']['id']][_0xe9b1c4(0xa2)](_0x4f18df=>{const _0x408c8e=_0xe9b1c4;this[_0x408c8e(0xbb)](this[_0x408c8e(0xdc)][_0x408c8e(0xef)](_0x4f18df));});}};E=y([v(0x0,(0x0,n[_0x1d4cd7(0xd5)])(_))],E);function D(){const _0x46a360=_0x1d4cd7;let _0x17544b=(0x0,c[_0x46a360(0x110)])(b),_0x2ce683=(0x0,c[_0x46a360(0x110)])(n['IUniverInstanceService']),_0x5e0dee=(0x0,c['useObservable'])(()=>_0x2ce683[_0x46a360(0xe4)](n[_0x46a360(0x11d)][_0x46a360(0xf3)]),void 0x0,!0x1,[]),_0x16e628=(0x0,c[_0x46a360(0xea)])((0x0,d['useMemo'])(()=>_0x5e0dee?(0x0,i['defer'])(()=>(0x0,i[_0x46a360(0x12b)])(_0x17544b[_0x46a360(0xdb)](_0x5e0dee[_0x46a360(0xa9)]()))):(0x0,i['of'])(null),[_0x5e0dee,_0x17544b]),null),_0x140ca2=(0x0,c[_0x46a360(0xea)])(_0x16e628?()=>_0x16e628[_0x46a360(0x10f)]:null,_0x46a360(0x109),!0x1,[_0x16e628]);return _0x16e628?(0x0,f['jsx'])(l[_0x46a360(0xc3)],{'align':_0x46a360(0x83),'disabled':_0x140ca2===_0x46a360(0x11a),'className':_0x46a360(0xf9),'overlay':(0x0,f[_0x46a360(0xbd)])(O,{'status':_0x140ca2,'coordinator':_0x16e628}),'children':(0x0,f[_0x46a360(0xbd)])(l[_0x46a360(0x107)],{'size':_0x46a360(0xc2),'variant':_0x46a360(0x8f),'disabled':_0x140ca2===_0x46a360(0x11a),'type':_0x46a360(0x87),'children':(0x0,f[_0x46a360(0xbd)])(u[_0x46a360(0xd1)],{})})}):null;}function O(_0x446147){const _0xecb3e2=_0x1d4cd7;let {status:_0x530af9,coordinator:_0x648afb}=_0x446147;switch(_0x530af9){case _0xecb3e2(0x109):return(0x0,f[_0xecb3e2(0xbd)])(k,{'coordinator':_0x648afb});case'following':return(0x0,f[_0xecb3e2(0xbd)])(A,{'coordinator':_0x648afb});case'not-following':return(0x0,f[_0xecb3e2(0xbd)])(j,{'coordinator':_0x648afb});case'offline':return(0x0,f[_0xecb3e2(0xbd)])(N,{});case _0xecb3e2(0x9c):return(0x0,f[_0xecb3e2(0xbd)])(M,{'coordinator':_0x648afb});default:return null;}}function k(_0x27e0a7){const _0x3b0358=_0x1d4cd7;let {coordinator:_0x21efe7}=_0x27e0a7;return(0x0,f[_0x3b0358(0xad)])(f[_0x3b0358(0xfe)],{'children':[(0x0,f[_0x3b0358(0xbd)])(_0x3b0358(0x11e),{'className':_0x3b0358(0x11c),'children':_0x3b0358(0xc8)}),(0x0,f[_0x3b0358(0xbd)])(l[_0x3b0358(0x107)],{'onClick':()=>_0x21efe7[_0x3b0358(0x9a)](),'children':'Start'})]});}function A(_0x53c311){const _0x5bda63=_0x1d4cd7;let {coordinator:_0x3d42ca}=_0x53c311;return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f['jsx'])('div',{'className':_0x5bda63(0x11c),'children':_0x5bda63(0x128)}),(0x0,f[_0x5bda63(0xbd)])(l['Button'],{'onClick':()=>_0x3d42ca['stopFollowing'](),'children':_0x5bda63(0xcf)})]});}function j(_0x51f9d0){const _0x52c64c=_0x1d4cd7;let {coordinator:_0x5af482}=_0x51f9d0;return(0x0,f[_0x52c64c(0xad)])(f[_0x52c64c(0xfe)],{'children':[(0x0,f[_0x52c64c(0xbd)])(_0x52c64c(0x11e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x52c64c(0x95)}),(0x0,f[_0x52c64c(0xbd)])(l[_0x52c64c(0x107)],{'variant':_0x52c64c(0x8f),'onClick':()=>_0x5af482[_0x52c64c(0x99)](),'children':_0x52c64c(0x12e)})]});}function M(_0x2f305e){const _0x30197a=_0x1d4cd7;let {coordinator:_0x4fefa2}=_0x2f305e;return(0x0,f[_0x30197a(0xad)])(f[_0x30197a(0xfe)],{'children':[(0x0,f[_0x30197a(0xbd)])(_0x30197a(0x11e),{'className':_0x30197a(0x11c),'children':_0x30197a(0xac)}),(0x0,f[_0x30197a(0xbd)])(l[_0x30197a(0x107)],{'variant':_0x30197a(0xfa),'onClick':()=>_0x4fefa2['stopPresenting'](),'children':'Stop\x20presenting'})]});}function N(){const _0x11b606=_0x1d4cd7;return(0x0,f[_0x11b606(0xbd)])(f[_0x11b606(0xfe)],{'children':'You\x27are\x20offline.'});}let P=class extends n['Disposable']{constructor(_0x3f697f,_0x228510){const _0x571f58=_0x1d4cd7;super(),this[_0x571f58(0x92)]=_0x3f697f,this[_0x571f58(0xbc)]=_0x228510,this[_0x571f58(0xc1)]();}[_0x1d4cd7(0xc1)](){const _0x292312=_0x1d4cd7;this[_0x292312(0xbb)](this[_0x292312(0xbc)]['registerComponent'](c['BuiltInUIPart'][_0x292312(0xa7)],()=>(0x0,c['connectInjector'])(D,this['_injector'])));}};P=y([v(0x0,(0x0,n['Inject'])(n['Injector'])),v(0x1,c[_0x1d4cd7(0x108)])],P);let F=class extends n[_0x1d4cd7(0x9b)]{constructor(_0x215221=T,_0x351674,_0xc75ff0){const _0x57eaac=_0x1d4cd7;super(),this[_0x57eaac(0xa4)]=_0x215221,this['_injector']=_0x351674,this[_0x57eaac(0x12c)]=_0xc75ff0;let {..._0x5e5033}=(0x0,n[_0x57eaac(0x123)])({},T,this[_0x57eaac(0xa4)]);this[_0x57eaac(0x12c)][_0x57eaac(0xb9)](_0x57eaac(0xd3),_0x5e5033);}['onStarting'](){const _0x188afd=_0x1d4cd7;(0x0,n[_0x188afd(0xfd)])(this[_0x188afd(0x92)],(0x0,n['mergeOverrideWithDependencies'])([[_],[b],[E],[P]],this['_config']['override'])),(0x0,n[_0x188afd(0xae)])(this[_0x188afd(0x92)],[[E]]);}[_0x1d4cd7(0xde)](){const _0x5ab90d=_0x1d4cd7;(0x0,n[_0x5ab90d(0xae)])(this['_injector'],[[P]]);}};g(F,'type',n[_0x1d4cd7(0x11d)]['UNIVER_UNKNOWN']),g(F,_0x1d4cd7(0x127),'UNIVER_LIVE_SHARE_PLUGIN'),g(F,_0x1d4cd7(0x86),C),g(F,'version',w),F=y([(0x0,n[_0x1d4cd7(0x118)])(o[_0x1d4cd7(0xb1)],t[_0x1d4cd7(0xaa)]),v(0x1,(0x0,n[_0x1d4cd7(0xd5)])(n[_0x1d4cd7(0xf5)])),v(0x2,n[_0x1d4cd7(0xe1)])],F),Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return b;}}),exports['LiveShareStatus']=x,Object[_0x1d4cd7(0x135)](exports,_0x1d4cd7(0xb6),{'enumerable':!0x0,'get':function(){return F;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4322b2=_0x1b40;(function(_0x1ee8bf,_0x450861){const _0x33a6de=_0x1b40,_0x1258df=_0x1ee8bf();while(!![]){try{const _0x28b2ed=-parseInt(_0x33a6de(0x116))/0x1*(parseInt(_0x33a6de(0x100))/0x2)+-parseInt(_0x33a6de(0x107))/0x3*(parseInt(_0x33a6de(0x117))/0x4)+-parseInt(_0x33a6de(0x113))/0x5+-parseInt(_0x33a6de(0x105))/0x6*(-parseInt(_0x33a6de(0xf9))/0x7)+parseInt(_0x33a6de(0xfc))/0x8*(-parseInt(_0x33a6de(0x115))/0x9)+-parseInt(_0x33a6de(0xf8))/0xa*(-parseInt(_0x33a6de(0x10b))/0xb)+parseInt(_0x33a6de(0xf7))/0xc;if(_0x28b2ed===_0x450861)break;else _0x1258df['push'](_0x1258df['shift']());}catch(_0x45114d){_0x1258df['push'](_0x1258df['shift']());}}}(_0x4520,0x7ceaa));function _0x4520(){const _0x30acd0=['_liveShareController','getLiveShareCoordinatorSync','get','No\x20active\x20workbook\x20found.','_injector','getUnitId','prototype','4107670fyFPVy','string','90HaTyei','1753MBGrlw','526728xayMUo','toPrimitive','startFollowing','25920432iZPQXP','15250gzValJ','1652CUMQgQ','default','function','407608PRnAuL','call','_initialize','getStatus','814fnkDtw','tryStartPresenting','stopPresenting','getCurrentUnitOfType','extend','22662WxyqlJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','15xXgsoE','stopFollowing','object','UNIVER_SHEET','1177uAKEQw'];_0x4520=function(){return _0x30acd0;};return _0x4520();}function _0x1b40(_0x37bec1,_0x170585){_0x37bec1=_0x37bec1-0xf7;const _0x452007=_0x4520();let _0x1b4076=_0x452007[_0x37bec1];return _0x1b4076;}import{LiveShareController as _0x5c1fb8,LiveShareStatus as _0x1e31c7}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5bb8fa,UniverInstanceType as _0x3cc333}from'@univerjs/core';import{FEnum as _0x10c23e,FUniver as _0xa8ea3}from'@univerjs/core/facade';function o(_0x4ca796){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x35af30){return typeof _0x35af30;}:function(_0xbe4c1e){const _0x3cc279=_0x1b40;return _0xbe4c1e&&typeof Symbol==_0x3cc279(0xfb)&&_0xbe4c1e['constructor']===Symbol&&_0xbe4c1e!==Symbol[_0x3cc279(0x112)]?'symbol':typeof _0xbe4c1e;},o(_0x4ca796);}function s(_0x287f4e,_0x356bd1){const _0x57aca1=_0x1b40;if(o(_0x287f4e)!=_0x57aca1(0x109)||!_0x287f4e)return _0x287f4e;var _0xf2b519=_0x287f4e[Symbol[_0x57aca1(0x118)]];if(_0xf2b519!==void 0x0){var _0x374905=_0xf2b519[_0x57aca1(0xfd)](_0x287f4e,_0x356bd1||_0x57aca1(0xfa));if(o(_0x374905)!=_0x57aca1(0x109))return _0x374905;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x356bd1==='string'?String:Number)(_0x287f4e);}function c(_0x3d611d){const _0x5e661c=_0x1b40;var _0x30b5c6=s(_0x3d611d,_0x5e661c(0x114));return o(_0x30b5c6)=='symbol'?_0x30b5c6:_0x30b5c6+'';}function l(_0x453f7b,_0x2749c5,_0x2e1943){return(_0x2749c5=c(_0x2749c5))in _0x453f7b?Object['defineProperty'](_0x453f7b,_0x2749c5,{'value':_0x2e1943,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x453f7b[_0x2749c5]=_0x2e1943,_0x453f7b;}var u=class extends _0xa8ea3{constructor(..._0x153849){const _0x53d103=_0x1b40;super(..._0x153849),l(this,_0x53d103(0x10c),void 0x0);}[_0x4322b2(0xfe)](_0xb7693b){const _0x5a92ad=_0x4322b2;this[_0x5a92ad(0x10c)]=_0xb7693b[_0x5a92ad(0x10e)](_0x5c1fb8);}['getLiveShareStatus'](){const _0x38ef1c=_0x4322b2;let _0x37fa5c=this[_0x38ef1c(0x110)][_0x38ef1c(0x10e)](_0x5bb8fa)['getCurrentUnitOfType'](_0x3cc333['UNIVER_SHEET']);if(!_0x37fa5c)throw Error(_0x38ef1c(0x10f));let _0x56a96c=_0x37fa5c[_0x38ef1c(0x111)](),_0xb0bce3=this[_0x38ef1c(0x10c)][_0x38ef1c(0x10d)](_0x56a96c);return(_0xb0bce3==null?void 0x0:_0xb0bce3[_0x38ef1c(0xff)]())??_0x1e31c7['IDLE'];}['startFollowing'](){const _0x3b0337=_0x4322b2;let _0x587509=this['_injector'][_0x3b0337(0x10e)](_0x5bb8fa)[_0x3b0337(0x103)](_0x3cc333[_0x3b0337(0x10a)]);if(!_0x587509)throw Error(_0x3b0337(0x10f));let _0x565976=_0x587509[_0x3b0337(0x111)](),_0x4b21a2=this[_0x3b0337(0x10c)][_0x3b0337(0x10d)](_0x565976);if(!_0x4b21a2)throw Error(_0x3b0337(0x106));_0x4b21a2[_0x3b0337(0x119)]();}[_0x4322b2(0x108)](){const _0x5de616=_0x4322b2;let _0x502390=this['_injector']['get'](_0x5bb8fa)[_0x5de616(0x103)](_0x3cc333[_0x5de616(0x10a)]);if(!_0x502390)throw Error(_0x5de616(0x10f));let _0x2cc10c=_0x502390[_0x5de616(0x111)](),_0x49243c=this[_0x5de616(0x10c)][_0x5de616(0x10d)](_0x2cc10c);if(!_0x49243c)throw Error(_0x5de616(0x106));_0x49243c['stopFollowing']();}['startPresenting'](){const _0x4a4365=_0x4322b2;let _0x36e1a0=this[_0x4a4365(0x110)][_0x4a4365(0x10e)](_0x5bb8fa)[_0x4a4365(0x103)](_0x3cc333[_0x4a4365(0x10a)]);if(!_0x36e1a0)throw Error('No\x20active\x20workbook\x20found.');let _0x280d08=_0x36e1a0[_0x4a4365(0x111)](),_0x4c9651=this[_0x4a4365(0x10c)]['getLiveShareCoordinatorSync'](_0x280d08);if(!_0x4c9651)throw Error(_0x4a4365(0x106));_0x4c9651[_0x4a4365(0x101)]();}[_0x4322b2(0x102)](){const _0x3a6770=_0x4322b2;let _0x276a4d=this['_injector'][_0x3a6770(0x10e)](_0x5bb8fa)[_0x3a6770(0x103)](_0x3cc333[_0x3a6770(0x10a)]);if(!_0x276a4d)throw Error(_0x3a6770(0x10f));let _0x36e0bb=_0x276a4d[_0x3a6770(0x111)](),_0x258253=this['_liveShareController'][_0x3a6770(0x10d)](_0x36e0bb);if(!_0x258253)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x258253[_0x3a6770(0x102)]();}};_0xa8ea3['extend'](u);var d=class extends _0x10c23e{get['LiveShareStatusEnum'](){return _0x1e31c7;}};_0x10c23e[_0x4322b2(0x104)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xcca918=_0x47e8;(function(_0x495eff,_0x4ce051){const _0x5d1e94=_0x47e8,_0x302c11=_0x495eff();while(!![]){try{const _0x1b073e=-parseInt(_0x5d1e94(0x208))/0x1*(-parseInt(_0x5d1e94(0x21a))/0x2)+-parseInt(_0x5d1e94(0x25f))/0x3+-parseInt(_0x5d1e94(0x228))/0x4+-parseInt(_0x5d1e94(0x1fb))/0x5+parseInt(_0x5d1e94(0x202))/0x6*(-parseInt(_0x5d1e94(0x1ea))/0x7)+-parseInt(_0x5d1e94(0x26f))/0x8+parseInt(_0x5d1e94(0x266))/0x9;if(_0x1b073e===_0x4ce051)break;else _0x302c11['push'](_0x302c11['shift']());}catch(_0x2172fd){_0x302c11['push'](_0x302c11['shift']());}}}(_0x1ae4,0xea17e));import{CollaborationEvent as _0x243177,parseProtocolChangeset as _0x317e07}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x19a9a0,SessionStatus as _0x1e4627,UniverCollaborationClientPlugin as _0xf25c4}from'@univerjs-pro/collaboration-client';import{CommandType as _0x1a009d,DependentOn as _0x35fd8d,Disposable as _0x5dda2c,DisposableCollection as _0x14d1cb,ICommandService as _0x2d1332,IConfigService as _0xe57a24,IUniverInstanceService as _0x5837d7,Inject as _0x3d3509,Injector as _0x3e0c27,Plugin as _0x1d3090,RxDisposable as _0x250ec8,UniverInstanceType as _0x146ed0,merge as _0x3bddf0,mergeOverrideWithDependencies as _0x1e951f,registerDependencies as _0xc05a66,toDisposable as _0x4dbbbb,touchDependencies as _0x41f06e}from'@univerjs/core';import{InsertSheetMutation as _0x28a0f6,SetWorksheetActiveOperation as _0x442d78}from'@univerjs/sheets';function _0x47e8(_0x16fa23,_0x2047f8){_0x16fa23=_0x16fa23-0x1df;const _0x1ae4ba=_0x1ae4();let _0x47e838=_0x1ae4ba[_0x16fa23];return _0x47e838;}import{BehaviorSubject as _0x191e68,Subject as _0x3d99f6,defer as _0x4c642,from as _0x4e42e5,of as _0x4333}from'rxjs';import{takeUntil as _0x5980d1,throttleTime as _0x1efc60}from'rxjs/operators';import{UniverLicensePlugin as _0x20c31b}from'@univerjs-pro/license';import{BuiltInUIPart as _0x3fad02,IUIPartsService as _0xce0b1f,UniverUIPlugin as _0x2b3cfa,connectInjector as _0x3c9d65,useDependency as _0x241be1,useObservable as _0x3fdd10}from'@univerjs/ui';import{SetScrollOperation as _0x454eaf,SetZoomRatioOperation as _0x937e41}from'@univerjs/sheets-ui';import{Button as _0x9cbbcc,Dropdown as _0x490e00,clsx as _0x4649fc}from'@univerjs/design';import{LiveShareIcon as _0x236657}from'@univerjs/icons';import{useMemo as _0x50e667}from'react';import{Fragment as _0x59eb51,jsx as _0x3021bb,jsxs as _0x15b75d}from'react/jsx-runtime';function B(_0x4f94c8){'@babel/helpers - typeof';const _0x57da11=_0x47e8;return B=typeof Symbol==_0x57da11(0x242)&&typeof Symbol['iterator']==_0x57da11(0x1e0)?function(_0x4b9156){return typeof _0x4b9156;}:function(_0x1f8856){const _0x30a7e8=_0x57da11;return _0x1f8856&&typeof Symbol==_0x30a7e8(0x242)&&_0x1f8856[_0x30a7e8(0x245)]===Symbol&&_0x1f8856!==Symbol[_0x30a7e8(0x207)]?_0x30a7e8(0x1e0):typeof _0x1f8856;},B(_0x4f94c8);}function V(_0x5e039a,_0x15f2d4){const _0x43a82e=_0x47e8;if(B(_0x5e039a)!=_0x43a82e(0x255)||!_0x5e039a)return _0x5e039a;var _0x5ce890=_0x5e039a[Symbol['toPrimitive']];if(_0x5ce890!==void 0x0){var _0x38cf97=_0x5ce890[_0x43a82e(0x21e)](_0x5e039a,_0x15f2d4||_0x43a82e(0x1f4));if(B(_0x38cf97)!=_0x43a82e(0x255))return _0x38cf97;throw TypeError(_0x43a82e(0x1ff));}return(_0x15f2d4===_0x43a82e(0x258)?String:Number)(_0x5e039a);}function H(_0x1f1a4d){const _0x23a257=_0x47e8;var _0x174445=V(_0x1f1a4d,_0x23a257(0x258));return B(_0x174445)==_0x23a257(0x1e0)?_0x174445:_0x174445+'';}function U(_0x310f6f,_0x5965ae,_0x268f70){return(_0x5965ae=H(_0x5965ae))in _0x310f6f?Object['defineProperty'](_0x310f6f,_0x5965ae,{'value':_0x268f70,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x310f6f[_0x5965ae]=_0x268f70,_0x310f6f;}var W=class extends _0x5dda2c{constructor(..._0x275603){const _0x19fb08=_0x47e8;super(..._0x275603),U(this,_0x19fb08(0x1e1),new Set()),U(this,_0x19fb08(0x201),new Set());}['registerSharedOperation'](_0x1e355b){const _0x446698=_0x47e8;return this[_0x446698(0x1e1)]['add'](_0x1e355b),_0x4dbbbb(()=>this[_0x446698(0x1e1)][_0x446698(0x1ef)](_0x1e355b));}['registerInitialStateReporter'](_0x250b8a){const _0xcd88c3=_0x47e8;return this[_0xcd88c3(0x201)][_0xcd88c3(0x251)](_0x250b8a),_0x4dbbbb(()=>this[_0xcd88c3(0x201)][_0xcd88c3(0x1ef)](_0x250b8a));}[_0xcca918(0x244)](_0x2feb8f){const _0x5988d0=_0xcca918;return this[_0x5988d0(0x1e1)][_0x5988d0(0x26d)](_0x2feb8f);}[_0xcca918(0x1f0)](_0x13315f){const _0x53f9c1=_0xcca918;return Array[_0x53f9c1(0x268)](this[_0x53f9c1(0x201)])[_0x53f9c1(0x1f8)](_0x527422=>_0x527422(_0x13315f));}};function G(_0x5f4af5,_0x5d1427){return function(_0x1c2ed7,_0x40b502){_0x5d1427(_0x1c2ed7,_0x40b502,_0x5f4af5);};}function K(_0x477c10,_0x1da7e1,_0x24e77d,_0x3b88db){const _0x382b64=_0xcca918;var _0xb52002=arguments[_0x382b64(0x206)],_0x4236b7=_0xb52002<0x3?_0x1da7e1:_0x3b88db===null?_0x3b88db=Object[_0x382b64(0x248)](_0x1da7e1,_0x24e77d):_0x3b88db,_0x52e5f8;if(typeof Reflect==_0x382b64(0x255)&&typeof Reflect[_0x382b64(0x1e7)]==_0x382b64(0x242))_0x4236b7=Reflect['decorate'](_0x477c10,_0x1da7e1,_0x24e77d,_0x3b88db);else{for(var _0x385162=_0x477c10['length']-0x1;_0x385162>=0x0;_0x385162--)(_0x52e5f8=_0x477c10[_0x385162])&&(_0x4236b7=(_0xb52002<0x3?_0x52e5f8(_0x4236b7):_0xb52002>0x3?_0x52e5f8(_0x1da7e1,_0x24e77d,_0x4236b7):_0x52e5f8(_0x1da7e1,_0x24e77d))||_0x4236b7);}return _0xb52002>0x3&&_0x4236b7&&Object[_0x382b64(0x267)](_0x1da7e1,_0x24e77d,_0x4236b7),_0x4236b7;}let q=class extends _0x250ec8{constructor(_0x464c35,_0x422bcb,_0x3371e7){const _0x3d4bc9=_0xcca918;super(),this[_0x3d4bc9(0x1fa)]=_0x464c35,this['_injector']=_0x422bcb,this['_collabSessionService']=_0x3371e7,U(this,'_entities',new Map()),this[_0x3d4bc9(0x241)]();}async[_0xcca918(0x227)](_0x223bf3){const _0x1dd2df=_0xcca918;return this[_0x1dd2df(0x261)]['has'](_0x223bf3)||await this[_0x1dd2df(0x22b)](_0x223bf3),this['_entities'][_0x1dd2df(0x1eb)](_0x223bf3);}[_0xcca918(0x257)](_0x5e6438){const _0x5613bb=_0xcca918;var _0xa712ce;return(_0xa712ce=this[_0x5613bb(0x261)][_0x5613bb(0x1eb)](_0x5e6438))==null?null:_0xa712ce;}[_0xcca918(0x241)](){const _0x573457=_0xcca918;this[_0x573457(0x1fa)][_0x573457(0x249)](_0x146ed0['UNIVER_SHEET'])[_0x573457(0x23a)](_0x5980d1(this[_0x573457(0x20c)]))[_0x573457(0x239)](async _0x290b67=>{const _0x555306=_0x573457;let _0x51f651=_0x290b67[_0x555306(0x24b)][_0x555306(0x1df)]();this[_0x555306(0x261)]['has'](_0x51f651)||this[_0x555306(0x22b)](_0x51f651);}),this['_univerInstanceService'][_0x573457(0x1f2)](_0x146ed0[_0x573457(0x219)])[_0x573457(0x23a)](_0x5980d1(this[_0x573457(0x20c)]))[_0x573457(0x239)](_0x3115b2=>{const _0x1a46d6=_0x573457;let _0x2da8ea=_0x3115b2[_0x1a46d6(0x1df)](),_0x4c4cd5=this[_0x1a46d6(0x261)]['get'](_0x2da8ea);_0x4c4cd5==null||_0x4c4cd5[_0x1a46d6(0x1e2)]();});}async[_0xcca918(0x22b)](_0x5049c5){const _0x30a80f=_0xcca918;let _0x39f8cb=await this[_0x30a80f(0x252)][_0x30a80f(0x23e)](_0x5049c5),_0x3d788d=this[_0x30a80f(0x263)]['createInstance'](J,_0x5049c5,_0x39f8cb);return _0x3d788d[_0x30a80f(0x209)](),this[_0x30a80f(0x261)]['set'](_0x5049c5,_0x3d788d),_0x3d788d;}};q=K([G(0x0,_0x5837d7),G(0x1,_0x3d3509(_0x3e0c27)),G(0x2,_0x3d3509(_0x19a9a0))],q);let ce=function(_0x54aff2){const _0x476a40=_0xcca918;return _0x54aff2[_0x476a40(0x20f)]=_0x476a40(0x1e4),_0x54aff2[_0x476a40(0x210)]=_0x476a40(0x1e3),_0x54aff2[_0x476a40(0x200)]=_0x476a40(0x1e6),_0x54aff2[_0x476a40(0x20e)]='not-following',_0x54aff2[_0x476a40(0x22c)]=_0x476a40(0x1ee),_0x54aff2;}({}),J=class extends _0x250ec8{get[_0xcca918(0x222)](){const _0x3ec18e=_0xcca918;return this[_0x3ec18e(0x25e)]['getValue']();}constructor(_0x3825dd,_0x498c7e,_0x23aae0,_0x50d196,_0x12a41d){const _0x23300a=_0xcca918;super(),this[_0x23300a(0x246)]=_0x3825dd,this[_0x23300a(0x232)]=_0x498c7e,this[_0x23300a(0x217)]=_0x23aae0,this[_0x23300a(0x24d)]=_0x50d196,this[_0x23300a(0x26b)]=_0x12a41d,U(this,_0x23300a(0x25e),new _0x191e68(_0x23300a(0x1e3))),U(this,_0x23300a(0x1ed),this[_0x23300a(0x25e)][_0x23300a(0x1e9)]()),U(this,_0x23300a(0x241),!0x1),U(this,'_commandDisposable',null),U(this,_0x23300a(0x1f7),null);}[_0xcca918(0x1e2)](){const _0x22817f=_0xcca918;var _0x545fec;(_0x545fec=this['_commandDisposable'])==null||_0x545fec['dispose'](),this[_0x22817f(0x25e)][_0x22817f(0x259)](_0x22817f(0x1e3)),this[_0x22817f(0x25e)][_0x22817f(0x25c)]();}['getStatus'](){const _0x34ab8d=_0xcca918;return this[_0x34ab8d(0x222)];}[_0xcca918(0x209)](){const _0x1ad7fc=_0xcca918;this[_0x1ad7fc(0x241)]||(this[_0x1ad7fc(0x241)]=!0x0,this['_collabSession'][_0x1ad7fc(0x215)]['pipe'](_0x5980d1(this[_0x1ad7fc(0x20c)]))[_0x1ad7fc(0x239)](_0x33e35c=>{const _0x968b3=_0x1ad7fc;switch(_0x33e35c){case _0x1e4627[_0x968b3(0x20f)]:this['_handleOffline']();break;case _0x1e4627[_0x968b3(0x226)]:this[_0x968b3(0x20d)]();break;default:}}),this[_0x1ad7fc(0x232)][_0x1ad7fc(0x218)][_0x1ad7fc(0x23a)](_0x5980d1(this['dispose$']))[_0x1ad7fc(0x239)](_0x1b7111=>{const _0x505c6a=_0x1ad7fc;let {eventID:_0x580155}=_0x1b7111;switch(_0x580155){case _0x243177[_0x505c6a(0x20b)]:this[_0x505c6a(0x220)](_0x1b7111);break;case _0x243177[_0x505c6a(0x1fc)]:this[_0x505c6a(0x205)](_0x1b7111);break;case _0x243177[_0x505c6a(0x23d)]:this[_0x505c6a(0x22f)]();break;case _0x243177[_0x505c6a(0x1f6)]:this[_0x505c6a(0x1fe)](_0x1b7111);break;default:}}));}[_0xcca918(0x22e)](){const _0x6bd7af=_0xcca918;this[_0x6bd7af(0x232)]['send']({'eventID':_0x243177[_0x6bd7af(0x1e5)],'data':{'unitID':this[_0x6bd7af(0x246)],'userID':this[_0x6bd7af(0x232)][_0x6bd7af(0x23f)]()}},this[_0x6bd7af(0x246)]);}['stopPresenting'](){const _0x3873c0=_0xcca918;this['_status']===_0x3873c0(0x1ee)&&(this[_0x3873c0(0x25e)][_0x3873c0(0x259)]('idle'),this[_0x3873c0(0x232)][_0x3873c0(0x243)]({'eventID':_0x243177[_0x3873c0(0x23d)],'data':{'unitID':this['_unitID']}},this[_0x3873c0(0x246)]));}['startFollowing'](){const _0x116680=_0xcca918;this[_0x116680(0x222)]===_0x116680(0x253)&&(this[_0x116680(0x25e)][_0x116680(0x259)]('following'),this[_0x116680(0x212)]());}[_0xcca918(0x21b)](){const _0x25f900=_0xcca918;this[_0x25f900(0x222)]===_0x25f900(0x1e6)&&this[_0x25f900(0x256)]();}[_0xcca918(0x220)](_0x4b063e){const _0x164c9d=_0xcca918;let {presenter:_0x3ac8f8}=_0x4b063e[_0x164c9d(0x24e)],_0xa1d6b8=this[_0x164c9d(0x232)][_0x164c9d(0x23f)]();this[_0x164c9d(0x1f7)]=_0x3ac8f8,_0x3ac8f8===_0xa1d6b8?(this[_0x164c9d(0x256)](),this[_0x164c9d(0x203)]()):this['_status']!==_0x164c9d(0x253)&&(this[_0x164c9d(0x23c)](),this[_0x164c9d(0x212)]());}[_0xcca918(0x230)](){const _0x3d941e=_0xcca918;let _0x50ea0a={'eventID':_0x243177[_0x3d941e(0x1fd)]};this['_collabSession'][_0x3d941e(0x243)](_0x50ea0a,this['_unitID']);}[_0xcca918(0x22f)](){const _0x37437e=_0xcca918;this[_0x37437e(0x1f7)]=null,this[_0x37437e(0x222)]!==_0x37437e(0x1ee)&&this[_0x37437e(0x216)]();}['_handleNewChangeSets'](_0x4cd96f){const _0x2b9c4a=_0xcca918;if(this[_0x2b9c4a(0x222)]==='following'&&this['_presenter']===_0x4cd96f[_0x2b9c4a(0x24e)][_0x2b9c4a(0x213)]){let _0x588c7c=_0x317e07(_0x4cd96f[_0x2b9c4a(0x24e)])[_0x2b9c4a(0x25b)][_0x2b9c4a(0x260)]()['find'](_0x19f54f=>_0x19f54f['id']===_0x28a0f6['id']);if(_0x588c7c){let _0x5327dd=_0x588c7c[_0x2b9c4a(0x231)]['unitId'],_0x2dd3e0=_0x588c7c[_0x2b9c4a(0x231)]['sheet']['id'];setTimeout(()=>{const _0x3b112e=_0x2b9c4a;this[_0x3b112e(0x26b)][_0x3b112e(0x211)](_0x442d78['id'],{'unitId':_0x5327dd,'subUnitId':_0x2dd3e0},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x525b83=_0xcca918;var _0x418798;(_0x418798=this[_0x525b83(0x223)])==null||_0x418798[_0x525b83(0x1e2)](),this[_0x525b83(0x25e)][_0x525b83(0x259)](_0x525b83(0x1ee));let _0x6b9e1=new Map(),_0x3b8485=this[_0x525b83(0x223)]=new _0x14d1cb();_0x3b8485['add'](_0x4dbbbb(()=>{const _0x228114=_0x525b83;_0x6b9e1[_0x228114(0x247)](({subject:_0x590e85,subscription:_0x20da8c})=>{const _0x30c093=_0x228114;_0x20da8c[_0x30c093(0x1f3)](),_0x590e85[_0x30c093(0x25c)]();}),_0x6b9e1[_0x228114(0x21d)]();})),_0x3b8485['add'](this['_commandService'][_0x525b83(0x237)](_0x5695c6=>{const _0x2ef0d3=_0x525b83;if(_0x5695c6['type']!==_0x1a009d[_0x2ef0d3(0x224)]||!this[_0x2ef0d3(0x24d)][_0x2ef0d3(0x244)](_0x5695c6['id']))return;let {id:_0x25c49e}=_0x5695c6,_0x5c6489;if(_0x6b9e1[_0x2ef0d3(0x26d)](_0x25c49e))_0x5c6489=_0x6b9e1[_0x2ef0d3(0x1eb)](_0x25c49e)[_0x2ef0d3(0x1f1)];else{var _0x2a8472;_0x5c6489=new _0x3d99f6();let _0x21882a=_0x5c6489[_0x2ef0d3(0x23a)](_0x1efc60((_0x2a8472=this['_configService'][_0x2ef0d3(0x254)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a8472,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ef0d3(0x239)](_0x3c8840=>{const _0x49bd1c=_0x2ef0d3;this['_collabSession'][_0x49bd1c(0x243)]({'eventID':_0x243177[_0x49bd1c(0x1fc)],'data':{'unitID':this[_0x49bd1c(0x246)],'operations':{[_0x3c8840['id']]:{'id':_0x3c8840['id'],'params':JSON[_0x49bd1c(0x250)](_0x3c8840[_0x49bd1c(0x231)])}}}},this[_0x49bd1c(0x246)]);});_0x6b9e1['set'](_0x25c49e,{'subject':_0x5c6489,'subscription':_0x21882a});}_0x5c6489[_0x2ef0d3(0x259)](_0x5695c6);})),this[_0x525b83(0x24d)][_0x525b83(0x1f0)](this[_0x525b83(0x246)])[_0x525b83(0x247)](_0x18b5ac=>this[_0x525b83(0x232)][_0x525b83(0x243)]({'eventID':_0x243177[_0x525b83(0x1fc)],'data':{'unitID':this['_unitID'],'operations':{[_0x18b5ac['id']]:{'id':_0x18b5ac['id'],'params':JSON['stringify'](_0x18b5ac['params'])}}}},this[_0x525b83(0x246)]));}[_0xcca918(0x23c)](){const _0x3f5ad4=_0xcca918;var _0x4a1709;this[_0x3f5ad4(0x25e)][_0x3f5ad4(0x259)](_0x3f5ad4(0x1e3)),(_0x4a1709=this['_commandDisposable'])==null||_0x4a1709[_0x3f5ad4(0x1e2)](),this[_0x3f5ad4(0x223)]=null;}[_0xcca918(0x212)](){const _0xe46bfa=_0xcca918;var _0x229fed;(_0x229fed=this[_0xe46bfa(0x223)])==null||_0x229fed['dispose'](),this['_status$'][_0xe46bfa(0x259)]('following');}[_0xcca918(0x216)](){const _0x3be3f4=_0xcca918;var _0x58f4bf;this[_0x3be3f4(0x25e)][_0x3be3f4(0x259)](_0x3be3f4(0x1e3)),(_0x58f4bf=this[_0x3be3f4(0x223)])==null||_0x58f4bf[_0x3be3f4(0x1e2)](),this['_commandDisposable']=null;}[_0xcca918(0x256)](){const _0x3319ac=_0xcca918;var _0x37761d;this[_0x3319ac(0x25e)][_0x3319ac(0x259)]('not-following'),(_0x37761d=this[_0x3319ac(0x223)])==null||_0x37761d[_0x3319ac(0x1e2)]();}[_0xcca918(0x205)](_0x3106a7){const _0x1a0706=_0xcca918;if([_0x1a0706(0x1ee),_0x1a0706(0x253),_0x1a0706(0x1e4)]['includes'](this['_status'])||!_0x3106a7[_0x1a0706(0x24e)]['presenter']||_0x3106a7[_0x1a0706(0x24e)]['presenter']===this[_0x1a0706(0x232)][_0x1a0706(0x23f)]())return;this[_0x1a0706(0x222)]===_0x1a0706(0x1e3)&&this[_0x1a0706(0x212)]();let _0x6de62=_0x3106a7[_0x1a0706(0x24e)][_0x1a0706(0x25a)];Object[_0x1a0706(0x235)](_0x6de62)['forEach'](_0x4f0068=>{const _0x557fa9=_0x1a0706;this[_0x557fa9(0x26b)][_0x557fa9(0x211)](_0x4f0068['id'],_0x4f0068[_0x557fa9(0x231)]?JSON[_0x557fa9(0x229)](_0x4f0068[_0x557fa9(0x231)]):null,{'fromCollab':!0x0});});}[_0xcca918(0x20a)](){const _0x4ae8b4=_0xcca918;var _0x28426c;this[_0x4ae8b4(0x25e)][_0x4ae8b4(0x259)](_0x4ae8b4(0x1e4)),(_0x28426c=this['_commandDisposable'])==null||_0x28426c[_0x4ae8b4(0x1e2)]();}['_handleOnline'](){const _0x124e85=_0xcca918;this[_0x124e85(0x25e)][_0x124e85(0x259)]('idle'),this[_0x124e85(0x230)]();}};J=K([G(0x2,_0xe57a24),G(0x3,_0x3d3509(W)),G(0x4,_0x2d1332)],J);var le=_0xcca918(0x22d),ue=_0xcca918(0x24c);const Y={};let X=class extends _0x5dda2c{constructor(_0xf376ec){const _0x68fea7=_0xcca918;super(),this[_0x68fea7(0x24d)]=_0xf376ec,this['_init']();}[_0xcca918(0x241)](){const _0x3e9353=_0xcca918;[_0x937e41['id'],_0x454eaf['id'],_0x442d78['id']][_0x3e9353(0x247)](_0x9da380=>{const _0x5063e4=_0x3e9353;this[_0x5063e4(0x234)](this[_0x5063e4(0x24d)][_0x5063e4(0x1f9)](_0x9da380));});}};X=K([G(0x0,_0x3d3509(W))],X);function de(){const _0x5851c9=_0xcca918;let _0x31a606=_0x241be1(q),_0x407490=_0x241be1(_0x5837d7),_0x38ae59=_0x3fdd10(()=>_0x407490[_0x5851c9(0x1e8)](_0x146ed0[_0x5851c9(0x219)]),void 0x0,!0x1,[]),_0xd8245d=_0x3fdd10(_0x50e667(()=>_0x38ae59?_0x4c642(()=>_0x4e42e5(_0x31a606[_0x5851c9(0x227)](_0x38ae59[_0x5851c9(0x1df)]()))):_0x4333(null),[_0x38ae59,_0x31a606]),null),_0x45c0d4=_0x3fdd10(_0xd8245d?()=>_0xd8245d['status$']:null,_0x5851c9(0x1e3),!0x1,[_0xd8245d]);return _0xd8245d?_0x3021bb(_0x490e00,{'align':_0x5851c9(0x26e),'disabled':_0x45c0d4===_0x5851c9(0x1e4),'className':_0x5851c9(0x204),'overlay':_0x3021bb(Z,{'status':_0x45c0d4,'coordinator':_0xd8245d}),'children':_0x3021bb('button',{'className':_0x4649fc(_0x5851c9(0x233),{'univer-cursor-not-allowed':_0x45c0d4===_0x5851c9(0x1e4),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45c0d4!==_0x5851c9(0x1e4)}),'type':'button','children':_0x3021bb(_0x236657,{})})}):null;}function Z(_0x19bc6e){const _0x4c04af=_0xcca918;let {status:_0x21f32e,coordinator:_0x5856d9}=_0x19bc6e;switch(_0x21f32e){case _0x4c04af(0x1e3):return _0x3021bb(fe,{'coordinator':_0x5856d9});case'following':return _0x3021bb(pe,{'coordinator':_0x5856d9});case _0x4c04af(0x253):return _0x3021bb(me,{'coordinator':_0x5856d9});case _0x4c04af(0x1e4):return _0x3021bb(ge,{});case _0x4c04af(0x1ee):return _0x3021bb(he,{'coordinator':_0x5856d9});default:return null;}}function fe(_0x250d91){const _0x55a445=_0xcca918;let {coordinator:_0x25dadc}=_0x250d91;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb('div',{'className':_0x55a445(0x225),'children':_0x55a445(0x24a)}),_0x3021bb(_0x9cbbcc,{'onClick':()=>_0x25dadc[_0x55a445(0x22e)](),'children':_0x55a445(0x1ec)})]});}function pe(_0x32a093){const _0xd16731=_0xcca918;let {coordinator:_0x21c8b2}=_0x32a093;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb(_0xd16731(0x22a),{'className':_0xd16731(0x225),'children':_0xd16731(0x236)}),_0x3021bb(_0x9cbbcc,{'onClick':()=>_0x21c8b2[_0xd16731(0x21b)](),'children':'Stop\x20following'})]});}function me(_0x39a0d5){const _0x7571c0=_0xcca918;let {coordinator:_0x464236}=_0x39a0d5;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb(_0x7571c0(0x22a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3021bb(_0x9cbbcc,{'variant':_0x7571c0(0x24f),'onClick':()=>_0x464236['startFollowing'](),'children':'Start\x20following'})]});}function he(_0x44c937){const _0x12a708=_0xcca918;let {coordinator:_0x31ed6d}=_0x44c937;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x12a708(0x23b)}),_0x3021bb(_0x9cbbcc,{'variant':_0x12a708(0x1f4),'onClick':()=>_0x31ed6d[_0x12a708(0x21c)](),'children':_0x12a708(0x214)})]});}function ge(){const _0x1a64ea=_0xcca918;return _0x3021bb(_0x59eb51,{'children':_0x1a64ea(0x269)});}let Q=class extends _0x5dda2c{constructor(_0x1d0fc6,_0x495bd0){const _0x425b35=_0xcca918;super(),this['_injector']=_0x1d0fc6,this[_0x425b35(0x265)]=_0x495bd0,this['_mountLiveShare']();}[_0xcca918(0x271)](){const _0x5056ee=_0xcca918;this[_0x5056ee(0x234)](this['_uiPartsService']['registerComponent'](_0x3fad02[_0x5056ee(0x262)],()=>_0x3c9d65(de,this[_0x5056ee(0x263)])));}};Q=K([G(0x0,_0x3d3509(_0x3e0c27)),G(0x1,_0xce0b1f)],Q);let $=class extends _0x1d3090{constructor(_0x45c7ac=Y,_0x118060,_0x54446c){const _0x514492=_0xcca918;super(),this[_0x514492(0x25d)]=_0x45c7ac,this[_0x514492(0x263)]=_0x118060,this[_0x514492(0x217)]=_0x54446c;let {..._0x11e9ee}=_0x3bddf0({},Y,this[_0x514492(0x25d)]);this[_0x514492(0x217)][_0x514492(0x21f)]('live-share.config',_0x11e9ee);}['onStarting'](){const _0x153e46=_0xcca918;_0xc05a66(this['_injector'],_0x1e951f([[W],[q],[X],[Q]],this[_0x153e46(0x25d)][_0x153e46(0x26a)])),_0x41f06e(this[_0x153e46(0x263)],[[X]]);}[_0xcca918(0x240)](){const _0xc0813b=_0xcca918;_0x41f06e(this[_0xc0813b(0x263)],[[Q]]);}};function _0x1ae4(){const _0x5a0314=['_collabSessionService','not-following','getConfig','object','_stopFollowing','getLiveShareCoordinatorSync','string','next','operations','mutations','complete','_config','_status$','4299981nmhOlx','reverse','_entities','HEADER_MENU','_injector','version','_uiPartsService','26417727AOEnnj','defineProperty','from','You\x27are\x20offline.','override','_commandService','UNIVER_UNKNOWN','has','end','2351136PkBTnw','packageName','_mountLiveShare','getUnitId','symbol','_sharedOperations','dispose','idle','offline','LIVESHARE_REQUEST_HOST','following','decorate','getCurrentTypeOfUnit$','asObservable','5278tvatfx','get','Start','status$','presenting','delete','getInitialStates','subject','getTypeOfUnitDisposed$','unsubscribe','default','UNIVER_LIVE_SHARE_PLUGIN','NEW_CHANGESETS','_presenter','map','registerSharedOperation','_univerInstanceService','158985vyfKcL','LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','_handleNewChangeSets','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FOLLOWING','_reporters','9774dCKpoJ','_startPresenting','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','_handleOperation','length','prototype','574420wDoFMx','init','_handleOffline','LIVESHARE_NEW_HOST','dispose$','_handleOnline','NOT_FOLLOWING','OFFLINE','IDLE','executeCommand','_startFollowing','memberID','Stop\x20presenting','sessionStatus$','_beIdle','_configService','event$','UNIVER_SHEET','6XZSyZu','stopFollowing','stopPresenting','clear','call','setConfig','_handleNewHost','type','_status','_commandDisposable','OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','getLiveShareCoordinator','2849740kXsyTH','parse','div','_startLiveShareCoordinator','PRESENTING','@univerjs-pro/live-share','tryStartPresenting','_handleTerminate','_fetchOperations','params','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','values','You\x27re\x20following\x20the\x20presenter','onCommandExecuted','pluginName','subscribe','pipe','You\x27re\x20presenting\x20the\x20document','_stopPresenting','LIVESHARE_TERMINATE','requireSession','getMemberID','onRendered','_init','function','send','shouldShareOperation','constructor','_unitID','forEach','getOwnPropertyDescriptor','getTypeOfUnitAdded$','Present\x20this\x20document','unit','1.0.0-alpha.8','_liveShareService','data','text','stringify','add'];_0x1ae4=function(){return _0x5a0314;};return _0x1ae4();}U($,_0xcca918(0x221),_0x146ed0[_0xcca918(0x26c)]),U($,_0xcca918(0x238),_0xcca918(0x1f5)),U($,_0xcca918(0x270),le),U($,_0xcca918(0x264),ue),$=K([_0x35fd8d(_0x20c31b,_0x2b3cfa,_0xf25c4),G(0x1,_0x3d3509(_0x3e0c27)),G(0x2,_0xe57a24)],$);export{q as LiveShareController,ce as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x118c75=_0x3c00;(function(_0x2ed377,_0x1fde15){const _0xe63431=_0x3c00,_0xb8810f=_0x2ed377();while(!![]){try{const _0x22a862=parseInt(_0xe63431(0x1be))/0x1*(parseInt(_0xe63431(0x1c4))/0x2)+parseInt(_0xe63431(0x20e))/0x3*(parseInt(_0xe63431(0x20c))/0x4)+-parseInt(_0xe63431(0x1e1))/0x5+-parseInt(_0xe63431(0x21b))/0x6*(-parseInt(_0xe63431(0x207))/0x7)+-parseInt(_0xe63431(0x1d6))/0x8*(parseInt(_0xe63431(0x1e8))/0x9)+parseInt(_0xe63431(0x21f))/0xa*(-parseInt(_0xe63431(0x1e4))/0xb)+parseInt(_0xe63431(0x214))/0xc;if(_0x22a862===_0x1fde15)break;else _0xb8810f['push'](_0xb8810f['shift']());}catch(_0x17082c){_0xb8810f['push'](_0xb8810f['shift']());}}}(_0x2f40,0xe4c77));import{CollaborationEvent as _0x46322a,parseProtocolChangeset as _0x4891b9}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xd12c30,SessionStatus as _0x45501e,UniverCollaborationClientPlugin as _0xede79f}from'@univerjs-pro/collaboration-client';function _0x2f40(){const _0x247cce=['_commandService','_unitID','NEW_CHANGESETS','getLiveShareCoordinator','6477308sSLVfO','shouldShareOperation','3fZbAcj','live-share.config','symbol','onCommandExecuted','LIVESHARE_REQUEST_HOST','unsubscribe','44528100pFvfZW','tryStartPresenting','_handleTerminate','_startLiveShareCoordinator','_handleOnline','idle','_status$','24iREWbg','not-following','_status','HEADER_MENU','4890eNpxju','setConfig','disposeWithMe','executeCommand','getUnitId','requireSession','_startPresenting','stopPresenting','_sharedOperations','pipe','_handleNewChangeSets','add','Start','onStarting','data','SAME_OPERATION_SHARE_INTERVAL','includes','parse','unit','You\x27re\x20following\x20the\x20presenter','object','_univerInstanceService','getLiveShareCoordinatorSync','next','send','button','_collabSessionService','event$','_entities','decorate','unitId','pluginName','LIVESHARE_FETCH_OPERATIONS','icon','packageName','set','offline','default','constructor','defineProperty','Start\x20following','registerSharedOperation','_fetchOperations','_handleNewHost','startFollowing','PRESENTING','getValue','_startFollowing','div','presenting','dispose','_stopFollowing','You\x27are\x20offline.','2RhqXJE','status$','_handleOffline','UNIVER_LIVE_SHARE_PLUGIN','end','createInstance','25932MQpzvA','stopFollowing','version','_mountLiveShare','getInitialStates','_configService','toPrimitive','stringify','text','NOT_FOLLOWING','subject','1.0.0-beta.1','getMemberID','getOwnPropertyDescriptor','delete','following','values','prototype','16aOPvlT','has','_presenter','type','function','clear','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','length','ONLINE','8125480uEBroc','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','_reporters','31273XeyNHT','call','You\x27re\x20not\x20following\x20the\x20presenter','_commandDisposable','6920658BZKDQR','forEach','LIVESHARE_OPERATION','_stopPresenting','_config','_beIdle','OPERATION','OFFLINE','IDLE','_liveShareService','params','sheet','find','get','subscribe','registerComponent','string','_uiPartsService','dispose$','_collabSession','UNIVER_SHEET','map','Present\x20this\x20document','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','presenter','onRendered','_init','@univerjs-pro/live-share','asObservable','complete','235186jrkVRz'];_0x2f40=function(){return _0x247cce;};return _0x2f40();}import{CommandType as _0x38266c,DependentOn as _0x2604e4,Disposable as _0x13da97,DisposableCollection as _0xdc1a5d,ICommandService as _0x80bf63,IConfigService as _0x5c1bab,IUniverInstanceService as _0x16046f,Inject as _0x1ac1b0,Injector as _0x55cef5,Plugin as _0x5bf3c2,RxDisposable as _0x182266,UniverInstanceType as _0x2d0216,merge as _0x478986,mergeOverrideWithDependencies as _0x3b8a2b,registerDependencies as _0x1c2a87,toDisposable as _0x5d8ba3,touchDependencies as _0x3ea51e}from'@univerjs/core';import{InsertSheetMutation as _0x1f4399,SetWorksheetActiveOperation as _0x17c25c}from'@univerjs/sheets';import{BehaviorSubject as _0x76a724,Subject as _0xfcc829,defer as _0x40e277,from as _0x1cd9bb,of as _0x790f65}from'rxjs';import{takeUntil as _0x39b47c,throttleTime as _0x4f4c40}from'rxjs/operators';import{UniverLicensePlugin as _0x79063d}from'@univerjs-pro/license';import{SetScrollOperation as _0x28a702,SetZoomRatioOperation as _0x18599f}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x114d37,IUIPartsService as _0x16b944,connectInjector as _0x2e41a9,useDependency as _0x1f8911,useObservable as _0x4af8a4}from'@univerjs/ui';import{Button as _0x35232c,Dropdown as _0x555807}from'@univerjs/design';import{LiveShareIcon as _0x282424}from'@univerjs/icons';import{useMemo as _0x5c3a44}from'react';import{Fragment as _0x3095de,jsx as _0x16217f,jsxs as _0x3e860c}from'react/jsx-runtime';function z(_0x57b603){'@babel/helpers - typeof';const _0x1b56bc=_0x3c00;return z=typeof Symbol==_0x1b56bc(0x1da)&&typeof Symbol['iterator']=='symbol'?function(_0x6ae79){return typeof _0x6ae79;}:function(_0x15eae0){const _0x102585=_0x1b56bc;return _0x15eae0&&typeof Symbol==_0x102585(0x1da)&&_0x15eae0[_0x102585(0x1af)]===Symbol&&_0x15eae0!==Symbol[_0x102585(0x1d5)]?_0x102585(0x210):typeof _0x15eae0;},z(_0x57b603);}function B(_0x123ae4,_0x486a0d){const _0x2ce451=_0x3c00;if(z(_0x123ae4)!=_0x2ce451(0x19d)||!_0x123ae4)return _0x123ae4;var _0x59d8de=_0x123ae4[Symbol[_0x2ce451(0x1ca)]];if(_0x59d8de!==void 0x0){var _0x5a901c=_0x59d8de[_0x2ce451(0x1e5)](_0x123ae4,_0x486a0d||_0x2ce451(0x1ae));if(z(_0x5a901c)!=_0x2ce451(0x19d))return _0x5a901c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x486a0d==='string'?String:Number)(_0x123ae4);}function V(_0x3b547e){const _0x5f3208=_0x3c00;var _0x4ba0ca=B(_0x3b547e,_0x5f3208(0x1f8));return z(_0x4ba0ca)==_0x5f3208(0x210)?_0x4ba0ca:_0x4ba0ca+'';}function H(_0x57dc05,_0x2476ce,_0x2dde76){const _0x3ce622=_0x3c00;return(_0x2476ce=V(_0x2476ce))in _0x57dc05?Object[_0x3ce622(0x1b0)](_0x57dc05,_0x2476ce,{'value':_0x2dde76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57dc05[_0x2476ce]=_0x2dde76,_0x57dc05;}var U=class extends _0x13da97{constructor(..._0x5d4c54){const _0x38148f=_0x3c00;super(..._0x5d4c54),H(this,_0x38148f(0x191),new Set()),H(this,_0x38148f(0x1e3),new Set());}[_0x118c75(0x1b2)](_0xe4a963){const _0x3f8848=_0x118c75;return this[_0x3f8848(0x191)][_0x3f8848(0x194)](_0xe4a963),_0x5d8ba3(()=>this[_0x3f8848(0x191)][_0x3f8848(0x1d2)](_0xe4a963));}['registerInitialStateReporter'](_0x594763){const _0x60a730=_0x118c75;return this[_0x60a730(0x1e3)][_0x60a730(0x194)](_0x594763),_0x5d8ba3(()=>this['_reporters'][_0x60a730(0x1d2)](_0x594763));}['shouldShareOperation'](_0x4997db){const _0x15f0f0=_0x118c75;return this[_0x15f0f0(0x191)][_0x15f0f0(0x1d7)](_0x4997db);}[_0x118c75(0x1c8)](_0x2868d9){const _0x57c26e=_0x118c75;return Array['from'](this['_reporters'])[_0x57c26e(0x1fd)](_0x59d607=>_0x59d607(_0x2868d9));}};function W(_0x5b8103,_0x4d870e){return function(_0x218572,_0x24dd90){_0x4d870e(_0x218572,_0x24dd90,_0x5b8103);};}function G(_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1){const _0x5a1f5a=_0x118c75;var _0x5d2617=arguments['length'],_0x456d06=_0x5d2617<0x3?_0x39c719:_0x29fcd1===null?_0x29fcd1=Object[_0x5a1f5a(0x1d1)](_0x39c719,_0x1c3de7):_0x29fcd1,_0x46059b;if(typeof Reflect==_0x5a1f5a(0x19d)&&typeof Reflect[_0x5a1f5a(0x1a6)]=='function')_0x456d06=Reflect[_0x5a1f5a(0x1a6)](_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1);else{for(var _0x40e2de=_0xe6cc7c[_0x5a1f5a(0x1df)]-0x1;_0x40e2de>=0x0;_0x40e2de--)(_0x46059b=_0xe6cc7c[_0x40e2de])&&(_0x456d06=(_0x5d2617<0x3?_0x46059b(_0x456d06):_0x5d2617>0x3?_0x46059b(_0x39c719,_0x1c3de7,_0x456d06):_0x46059b(_0x39c719,_0x1c3de7))||_0x456d06);}return _0x5d2617>0x3&&_0x456d06&&Object['defineProperty'](_0x39c719,_0x1c3de7,_0x456d06),_0x456d06;}let K=class extends _0x182266{constructor(_0x353b3a,_0xf786e5,_0x261067){const _0x2bd198=_0x118c75;super(),this[_0x2bd198(0x19e)]=_0x353b3a,this[_0x2bd198(0x1de)]=_0xf786e5,this[_0x2bd198(0x1a3)]=_0x261067,H(this,_0x2bd198(0x1a5),new Map()),this['_init']();}async[_0x118c75(0x20b)](_0x4e4668){const _0x384389=_0x118c75;return this[_0x384389(0x1a5)][_0x384389(0x1d7)](_0x4e4668)||await this[_0x384389(0x217)](_0x4e4668),this[_0x384389(0x1a5)][_0x384389(0x1f5)](_0x4e4668);}[_0x118c75(0x19f)](_0xc279a){const _0x111129=_0x118c75;return this['_entities'][_0x111129(0x1f5)](_0xc279a)??null;}[_0x118c75(0x203)](){const _0x53622a=_0x118c75;this[_0x53622a(0x19e)]['getTypeOfUnitAdded$'](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))[_0x53622a(0x1f6)](async _0x1ce34f=>{const _0xce2f89=_0x53622a;let _0x5f5adb=_0x1ce34f[_0xce2f89(0x19b)][_0xce2f89(0x18d)]();this[_0xce2f89(0x1a5)]['has'](_0x5f5adb)||this[_0xce2f89(0x217)](_0x5f5adb);}),this[_0x53622a(0x19e)][_0x53622a(0x200)](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))['subscribe'](_0x31a119=>{const _0x25d851=_0x53622a;let _0x4bb995=_0x31a119[_0x25d851(0x18d)](),_0x5c8224=this[_0x25d851(0x1a5)]['get'](_0x4bb995);_0x5c8224==null||_0x5c8224['dispose']();});}async[_0x118c75(0x217)](_0x97a771){const _0x2395bd=_0x118c75;let _0xb42235=await this[_0x2395bd(0x1a3)][_0x2395bd(0x18e)](_0x97a771),_0x4a069c=this[_0x2395bd(0x1de)][_0x2395bd(0x1c3)](J,_0x97a771,_0xb42235);return _0x4a069c['init'](),this[_0x2395bd(0x1a5)][_0x2395bd(0x1ac)](_0x97a771,_0x4a069c),_0x4a069c;}};K=G([W(0x0,_0x16046f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x1ac1b0(_0xd12c30))],K);let q=function(_0x2f8f05){const _0x478b75=_0x118c75;return _0x2f8f05['OFFLINE']=_0x478b75(0x1ad),_0x2f8f05[_0x478b75(0x1f0)]='idle',_0x2f8f05['FOLLOWING']=_0x478b75(0x1d3),_0x2f8f05[_0x478b75(0x1cd)]=_0x478b75(0x21c),_0x2f8f05[_0x478b75(0x1b6)]='presenting',_0x2f8f05;}({}),J=class extends _0x182266{get['_status'](){const _0xb10919=_0x118c75;return this[_0xb10919(0x21a)][_0xb10919(0x1b7)]();}constructor(_0x53de23,_0x22eaa0,_0x3662a0,_0x1c2fea,_0x57a328){const _0x5a3b24=_0x118c75;super(),this[_0x5a3b24(0x209)]=_0x53de23,this[_0x5a3b24(0x1fb)]=_0x22eaa0,this[_0x5a3b24(0x1c9)]=_0x3662a0,this['_liveShareService']=_0x1c2fea,this['_commandService']=_0x57a328,H(this,_0x5a3b24(0x21a),new _0x76a724('idle')),H(this,_0x5a3b24(0x1bf),this[_0x5a3b24(0x21a)][_0x5a3b24(0x205)]()),H(this,_0x5a3b24(0x203),!0x1),H(this,_0x5a3b24(0x1e7),null),H(this,_0x5a3b24(0x1d8),null);}['dispose'](){const _0x59f705=_0x118c75;var _0x51f78b;(_0x51f78b=this[_0x59f705(0x1e7)])==null||_0x51f78b[_0x59f705(0x1bb)](),this[_0x59f705(0x21a)][_0x59f705(0x1a0)](_0x59f705(0x219)),this[_0x59f705(0x21a)][_0x59f705(0x206)]();}['getStatus'](){const _0x58d8c2=_0x118c75;return this[_0x58d8c2(0x21d)];}['init'](){const _0x103f9f=_0x118c75;this[_0x103f9f(0x203)]||(this['_init']=!0x0,this[_0x103f9f(0x1fb)]['sessionStatus$']['pipe'](_0x39b47c(this[_0x103f9f(0x1fa)]))[_0x103f9f(0x1f6)](_0x5d2e0c=>{const _0x5081cc=_0x103f9f;switch(_0x5d2e0c){case _0x45501e[_0x5081cc(0x1ef)]:this[_0x5081cc(0x1c0)]();break;case _0x45501e[_0x5081cc(0x1e0)]:this[_0x5081cc(0x218)]();break;default:}}),this[_0x103f9f(0x1fb)][_0x103f9f(0x1a4)][_0x103f9f(0x192)](_0x39b47c(this['dispose$']))['subscribe'](_0x3605dc=>{const _0x5d5062=_0x103f9f;let {eventID:_0x18435e}=_0x3605dc;switch(_0x18435e){case _0x46322a['LIVESHARE_NEW_HOST']:this[_0x5d5062(0x1b4)](_0x3605dc);break;case _0x46322a[_0x5d5062(0x1ea)]:this['_handleOperation'](_0x3605dc);break;case _0x46322a['LIVESHARE_TERMINATE']:this[_0x5d5062(0x216)]();break;case _0x46322a[_0x5d5062(0x20a)]:this[_0x5d5062(0x193)](_0x3605dc);break;default:}}));}[_0x118c75(0x215)](){const _0x4e13ac=_0x118c75;this['_collabSession'][_0x4e13ac(0x1a1)]({'eventID':_0x46322a[_0x4e13ac(0x212)],'data':{'unitID':this[_0x4e13ac(0x209)],'userID':this[_0x4e13ac(0x1fb)][_0x4e13ac(0x1d0)]()}},this[_0x4e13ac(0x209)]);}[_0x118c75(0x190)](){const _0x38c7cc=_0x118c75;this['_status']==='presenting'&&(this[_0x38c7cc(0x21a)][_0x38c7cc(0x1a0)](_0x38c7cc(0x219)),this['_collabSession'][_0x38c7cc(0x1a1)]({'eventID':_0x46322a['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x38c7cc(0x209)]}},this[_0x38c7cc(0x209)]));}[_0x118c75(0x1b5)](){const _0x4a1479=_0x118c75;this[_0x4a1479(0x21d)]===_0x4a1479(0x21c)&&(this[_0x4a1479(0x21a)]['next']('following'),this[_0x4a1479(0x1b8)]());}['stopFollowing'](){const _0x48fe21=_0x118c75;this[_0x48fe21(0x21d)]===_0x48fe21(0x1d3)&&this['_stopFollowing']();}[_0x118c75(0x1b4)](_0x29e96e){const _0x97b7b6=_0x118c75;let {presenter:_0x1076f7}=_0x29e96e[_0x97b7b6(0x197)],_0x3d12f2=this[_0x97b7b6(0x1fb)][_0x97b7b6(0x1d0)]();this[_0x97b7b6(0x1d8)]=_0x1076f7,_0x1076f7===_0x3d12f2?(this[_0x97b7b6(0x1bc)](),this[_0x97b7b6(0x18f)]()):this[_0x97b7b6(0x21d)]!=='not-following'&&(this[_0x97b7b6(0x1eb)](),this[_0x97b7b6(0x1b8)]());}[_0x118c75(0x1b3)](){const _0x45cf97=_0x118c75;let _0x18cf87={'eventID':_0x46322a[_0x45cf97(0x1a9)]};this[_0x45cf97(0x1fb)][_0x45cf97(0x1a1)](_0x18cf87,this['_unitID']);}[_0x118c75(0x216)](){const _0x2d560d=_0x118c75;this['_presenter']=null,this['_status']!==_0x2d560d(0x1ba)&&this[_0x2d560d(0x1ed)]();}[_0x118c75(0x193)](_0x57c8fb){const _0x53788d=_0x118c75;if(this['_status']===_0x53788d(0x1d3)&&this[_0x53788d(0x1d8)]===_0x57c8fb[_0x53788d(0x197)]['memberID']){let _0x23f42e=_0x4891b9(_0x57c8fb[_0x53788d(0x197)])['mutations']['reverse']()[_0x53788d(0x1f4)](_0x4cc3ee=>_0x4cc3ee['id']===_0x1f4399['id']);if(_0x23f42e){let _0x4a7af4=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1a7)],_0x4bb8de=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1f3)]['id'];setTimeout(()=>{const _0xe63a36=_0x53788d;this[_0xe63a36(0x208)][_0xe63a36(0x18c)](_0x17c25c['id'],{'unitId':_0x4a7af4,'subUnitId':_0x4bb8de},{'fromCollab':!0x0});});}}}[_0x118c75(0x18f)](){const _0x2e1a86=_0x118c75;var _0x50fc0d;(_0x50fc0d=this[_0x2e1a86(0x1e7)])==null||_0x50fc0d['dispose'](),this[_0x2e1a86(0x21a)][_0x2e1a86(0x1a0)](_0x2e1a86(0x1ba));let _0x4882f2=new Map(),_0x6844c9=this[_0x2e1a86(0x1e7)]=new _0xdc1a5d();_0x6844c9[_0x2e1a86(0x194)](_0x5d8ba3(()=>{const _0x40bb9e=_0x2e1a86;_0x4882f2['forEach'](({subject:_0xc57b6b,subscription:_0xc477bd})=>{const _0x1556b5=_0x3c00;_0xc477bd[_0x1556b5(0x213)](),_0xc57b6b[_0x1556b5(0x206)]();}),_0x4882f2[_0x40bb9e(0x1db)]();})),_0x6844c9['add'](this[_0x2e1a86(0x208)][_0x2e1a86(0x211)](_0x17250f=>{const _0x1a7ea1=_0x2e1a86;if(_0x17250f[_0x1a7ea1(0x1d9)]!==_0x38266c[_0x1a7ea1(0x1ee)]||!this['_liveShareService'][_0x1a7ea1(0x20d)](_0x17250f['id']))return;let {id:_0x16a6a9}=_0x17250f,_0x173638;if(_0x4882f2['has'](_0x16a6a9))_0x173638=_0x4882f2[_0x1a7ea1(0x1f5)](_0x16a6a9)[_0x1a7ea1(0x1ce)];else{_0x173638=new _0xfcc829();let _0x2302bc=_0x173638['pipe'](_0x4f4c40(this[_0x1a7ea1(0x1c9)]['getConfig'](_0x1a7ea1(0x198))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1a7ea1(0x1f6)](_0x2fdc12=>{const _0x1eb2ba=_0x1a7ea1;this['_collabSession'][_0x1eb2ba(0x1a1)]({'eventID':_0x46322a[_0x1eb2ba(0x1ea)],'data':{'unitID':this[_0x1eb2ba(0x209)],'operations':{[_0x2fdc12['id']]:{'id':_0x2fdc12['id'],'params':JSON[_0x1eb2ba(0x1cb)](_0x2fdc12['params'])}}}},this[_0x1eb2ba(0x209)]);});_0x4882f2[_0x1a7ea1(0x1ac)](_0x16a6a9,{'subject':_0x173638,'subscription':_0x2302bc});}_0x173638[_0x1a7ea1(0x1a0)](_0x17250f);})),this[_0x2e1a86(0x1f1)][_0x2e1a86(0x1c8)](this['_unitID'])[_0x2e1a86(0x1e9)](_0x1680cf=>this[_0x2e1a86(0x1fb)]['send']({'eventID':_0x46322a[_0x2e1a86(0x1ea)],'data':{'unitID':this[_0x2e1a86(0x209)],'operations':{[_0x1680cf['id']]:{'id':_0x1680cf['id'],'params':JSON['stringify'](_0x1680cf[_0x2e1a86(0x1f2)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x5df58f=_0x118c75;var _0x4e9fc2;this[_0x5df58f(0x21a)][_0x5df58f(0x1a0)](_0x5df58f(0x219)),(_0x4e9fc2=this[_0x5df58f(0x1e7)])==null||_0x4e9fc2[_0x5df58f(0x1bb)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x292a57=_0x118c75;var _0x5d3bc7;(_0x5d3bc7=this[_0x292a57(0x1e7)])==null||_0x5d3bc7[_0x292a57(0x1bb)](),this[_0x292a57(0x21a)][_0x292a57(0x1a0)](_0x292a57(0x1d3));}[_0x118c75(0x1ed)](){const _0x4b1877=_0x118c75;var _0x259c08;this[_0x4b1877(0x21a)][_0x4b1877(0x1a0)](_0x4b1877(0x219)),(_0x259c08=this['_commandDisposable'])==null||_0x259c08[_0x4b1877(0x1bb)](),this[_0x4b1877(0x1e7)]=null;}[_0x118c75(0x1bc)](){const _0x90c015=_0x118c75;var _0x3c75c9;this[_0x90c015(0x21a)][_0x90c015(0x1a0)]('not-following'),(_0x3c75c9=this[_0x90c015(0x1e7)])==null||_0x3c75c9[_0x90c015(0x1bb)]();}[_0x118c75(0x1dc)](_0x19392d){const _0x520651=_0x118c75;if([_0x520651(0x1ba),'not-following',_0x520651(0x1ad)][_0x520651(0x199)](this[_0x520651(0x21d)])||!_0x19392d[_0x520651(0x197)][_0x520651(0x201)]||_0x19392d[_0x520651(0x197)]['presenter']===this[_0x520651(0x1fb)][_0x520651(0x1d0)]())return;this[_0x520651(0x21d)]==='idle'&&this[_0x520651(0x1b8)]();let _0x9ab314=_0x19392d[_0x520651(0x197)]['operations'];Object[_0x520651(0x1d4)](_0x9ab314)[_0x520651(0x1e9)](_0x37f9eb=>{const _0x35bc10=_0x520651;this[_0x35bc10(0x208)][_0x35bc10(0x18c)](_0x37f9eb['id'],_0x37f9eb[_0x35bc10(0x1f2)]?JSON[_0x35bc10(0x19a)](_0x37f9eb['params']):null,{'fromCollab':!0x0});});}[_0x118c75(0x1c0)](){const _0x106bd4=_0x118c75;var _0x44acb2;this[_0x106bd4(0x21a)]['next'](_0x106bd4(0x1ad)),(_0x44acb2=this['_commandDisposable'])==null||_0x44acb2[_0x106bd4(0x1bb)]();}[_0x118c75(0x218)](){const _0x3475c5=_0x118c75;this['_status$']['next'](_0x3475c5(0x219)),this[_0x3475c5(0x1b3)]();}};J=G([W(0x2,_0x5c1bab),W(0x3,_0x1ac1b0(U)),W(0x4,_0x80bf63)],J);var se=_0x118c75(0x204),ce=_0x118c75(0x1cf);const Y={};let X=class extends _0x13da97{constructor(_0x357380){const _0x22ff77=_0x118c75;super(),this[_0x22ff77(0x1f1)]=_0x357380,this[_0x22ff77(0x203)]();}[_0x118c75(0x203)](){const _0x5b9b36=_0x118c75;[_0x18599f['id'],_0x28a702['id'],_0x17c25c['id']][_0x5b9b36(0x1e9)](_0x375151=>{const _0x3f4c25=_0x5b9b36;this[_0x3f4c25(0x18b)](this[_0x3f4c25(0x1f1)][_0x3f4c25(0x1b2)](_0x375151));});}};X=G([W(0x0,_0x1ac1b0(U))],X);function Z(){const _0x1008e5=_0x118c75;let _0x199012=_0x1f8911(K),_0x57be61=_0x1f8911(_0x16046f),_0x382d76=_0x4af8a4(()=>_0x57be61['getCurrentTypeOfUnit$'](_0x2d0216['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x4b93b5=_0x4af8a4(_0x5c3a44(()=>_0x382d76?_0x40e277(()=>_0x1cd9bb(_0x199012[_0x1008e5(0x20b)](_0x382d76['getUnitId']()))):_0x790f65(null),[_0x382d76,_0x199012]),null),_0x1a02d4=_0x4af8a4(_0x4b93b5?()=>_0x4b93b5[_0x1008e5(0x1bf)]:null,_0x1008e5(0x219),!0x1,[_0x4b93b5]);return _0x4b93b5?_0x16217f(_0x555807,{'align':_0x1008e5(0x1c2),'disabled':_0x1a02d4===_0x1008e5(0x1ad),'className':_0x1008e5(0x1e2),'overlay':_0x16217f(le,{'status':_0x1a02d4,'coordinator':_0x4b93b5}),'children':_0x16217f(_0x35232c,{'size':_0x1008e5(0x1aa),'variant':_0x1008e5(0x1cc),'disabled':_0x1a02d4==='offline','type':_0x1008e5(0x1a2),'children':_0x16217f(_0x282424,{})})}):null;}function le(_0x3e65ea){const _0x5e0dc5=_0x118c75;let {status:_0x314f8f,coordinator:_0x4c3bf2}=_0x3e65ea;switch(_0x314f8f){case _0x5e0dc5(0x219):return _0x16217f(ue,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1d3):return _0x16217f(de,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x21c):return _0x16217f(fe,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1ad):return _0x16217f(me,{});case _0x5e0dc5(0x1ba):return _0x16217f(pe,{'coordinator':_0x4c3bf2});default:return null;}}function ue(_0x58f3a6){const _0x2682bf=_0x118c75;let {coordinator:_0x1a4dcb}=_0x58f3a6;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x2682bf(0x1dd),'children':_0x2682bf(0x1fe)}),_0x16217f(_0x35232c,{'onClick':()=>_0x1a4dcb[_0x2682bf(0x215)](),'children':_0x2682bf(0x195)})]});}function _0x3c00(_0x13de16,_0x309232){_0x13de16=_0x13de16-0x18b;const _0x2f403c=_0x2f40();let _0x3c0072=_0x2f403c[_0x13de16];return _0x3c0072;}function de(_0x246a7a){const _0x5efa58=_0x118c75;let {coordinator:_0x241853}=_0x246a7a;return _0x3e860c(_0x3095de,{'children':[_0x16217f(_0x5efa58(0x1b9),{'className':_0x5efa58(0x1dd),'children':_0x5efa58(0x19c)}),_0x16217f(_0x35232c,{'onClick':()=>_0x241853[_0x5efa58(0x1c5)](),'children':'Stop\x20following'})]});}function fe(_0x350c61){const _0x14d18c=_0x118c75;let {coordinator:_0x28927d}=_0x350c61;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x14d18c(0x1dd),'children':_0x14d18c(0x1e6)}),_0x16217f(_0x35232c,{'variant':_0x14d18c(0x1cc),'onClick':()=>_0x28927d['startFollowing'](),'children':_0x14d18c(0x1b1)})]});}function pe(_0x3bbf4d){const _0x329425=_0x118c75;let {coordinator:_0x2386af}=_0x3bbf4d;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x16217f(_0x35232c,{'variant':_0x329425(0x1ae),'onClick':()=>_0x2386af['stopPresenting'](),'children':'Stop\x20presenting'})]});}function me(){const _0x1ccab9=_0x118c75;return _0x16217f(_0x3095de,{'children':_0x1ccab9(0x1bd)});}let Q=class extends _0x13da97{constructor(_0x5a81f3,_0x1e2566){const _0x559956=_0x118c75;super(),this['_injector']=_0x5a81f3,this[_0x559956(0x1f9)]=_0x1e2566,this['_mountLiveShare']();}[_0x118c75(0x1c7)](){const _0x4bda5a=_0x118c75;this[_0x4bda5a(0x18b)](this[_0x4bda5a(0x1f9)][_0x4bda5a(0x1f7)](_0x114d37[_0x4bda5a(0x21e)],()=>_0x2e41a9(Z,this[_0x4bda5a(0x1de)])));}};Q=G([W(0x0,_0x1ac1b0(_0x55cef5)),W(0x1,_0x16b944)],Q);let $=class extends _0x5bf3c2{constructor(_0x3e777b=Y,_0x36674c,_0x41bd1e){const _0x49f451=_0x118c75;super(),this['_config']=_0x3e777b,this[_0x49f451(0x1de)]=_0x36674c,this[_0x49f451(0x1c9)]=_0x41bd1e;let {..._0x4e3050}=_0x478986({},Y,this[_0x49f451(0x1ec)]);this['_configService'][_0x49f451(0x220)](_0x49f451(0x20f),_0x4e3050);}[_0x118c75(0x196)](){const _0x1ec53f=_0x118c75;_0x1c2a87(this[_0x1ec53f(0x1de)],_0x3b8a2b([[U],[K],[X],[Q]],this[_0x1ec53f(0x1ec)]['override'])),_0x3ea51e(this[_0x1ec53f(0x1de)],[[X]]);}[_0x118c75(0x202)](){const _0x2fc629=_0x118c75;_0x3ea51e(this[_0x2fc629(0x1de)],[[Q]]);}};H($,_0x118c75(0x1d9),_0x2d0216[_0x118c75(0x1ff)]),H($,_0x118c75(0x1a8),_0x118c75(0x1c1)),H($,_0x118c75(0x1ab),se),H($,_0x118c75(0x1c6),ce),$=G([_0x2604e4(_0x79063d,_0xede79f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x5c1bab)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4322b2=_0x1b40;(function(_0x1ee8bf,_0x450861){const _0x33a6de=_0x1b40,_0x1258df=_0x1ee8bf();while(!![]){try{const _0x28b2ed=-parseInt(_0x33a6de(0x116))/0x1*(parseInt(_0x33a6de(0x100))/0x2)+-parseInt(_0x33a6de(0x107))/0x3*(parseInt(_0x33a6de(0x117))/0x4)+-parseInt(_0x33a6de(0x113))/0x5+-parseInt(_0x33a6de(0x105))/0x6*(-parseInt(_0x33a6de(0xf9))/0x7)+parseInt(_0x33a6de(0xfc))/0x8*(-parseInt(_0x33a6de(0x115))/0x9)+-parseInt(_0x33a6de(0xf8))/0xa*(-parseInt(_0x33a6de(0x10b))/0xb)+parseInt(_0x33a6de(0xf7))/0xc;if(_0x28b2ed===_0x450861)break;else _0x1258df['push'](_0x1258df['shift']());}catch(_0x45114d){_0x1258df['push'](_0x1258df['shift']());}}}(_0x4520,0x7ceaa));function _0x4520(){const _0x30acd0=['_liveShareController','getLiveShareCoordinatorSync','get','No\x20active\x20workbook\x20found.','_injector','getUnitId','prototype','4107670fyFPVy','string','90HaTyei','1753MBGrlw','526728xayMUo','toPrimitive','startFollowing','25920432iZPQXP','15250gzValJ','1652CUMQgQ','default','function','407608PRnAuL','call','_initialize','getStatus','814fnkDtw','tryStartPresenting','stopPresenting','getCurrentUnitOfType','extend','22662WxyqlJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','15xXgsoE','stopFollowing','object','UNIVER_SHEET','1177uAKEQw'];_0x4520=function(){return _0x30acd0;};return _0x4520();}function _0x1b40(_0x37bec1,_0x170585){_0x37bec1=_0x37bec1-0xf7;const _0x452007=_0x4520();let _0x1b4076=_0x452007[_0x37bec1];return _0x1b4076;}import{LiveShareController as _0x5c1fb8,LiveShareStatus as _0x1e31c7}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x5bb8fa,UniverInstanceType as _0x3cc333}from'@univerjs/core';import{FEnum as _0x10c23e,FUniver as _0xa8ea3}from'@univerjs/core/facade';function o(_0x4ca796){'@babel/helpers - typeof';return o=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x35af30){return typeof _0x35af30;}:function(_0xbe4c1e){const _0x3cc279=_0x1b40;return _0xbe4c1e&&typeof Symbol==_0x3cc279(0xfb)&&_0xbe4c1e['constructor']===Symbol&&_0xbe4c1e!==Symbol[_0x3cc279(0x112)]?'symbol':typeof _0xbe4c1e;},o(_0x4ca796);}function s(_0x287f4e,_0x356bd1){const _0x57aca1=_0x1b40;if(o(_0x287f4e)!=_0x57aca1(0x109)||!_0x287f4e)return _0x287f4e;var _0xf2b519=_0x287f4e[Symbol[_0x57aca1(0x118)]];if(_0xf2b519!==void 0x0){var _0x374905=_0xf2b519[_0x57aca1(0xfd)](_0x287f4e,_0x356bd1||_0x57aca1(0xfa));if(o(_0x374905)!=_0x57aca1(0x109))return _0x374905;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x356bd1==='string'?String:Number)(_0x287f4e);}function c(_0x3d611d){const _0x5e661c=_0x1b40;var _0x30b5c6=s(_0x3d611d,_0x5e661c(0x114));return o(_0x30b5c6)=='symbol'?_0x30b5c6:_0x30b5c6+'';}function l(_0x453f7b,_0x2749c5,_0x2e1943){return(_0x2749c5=c(_0x2749c5))in _0x453f7b?Object['defineProperty'](_0x453f7b,_0x2749c5,{'value':_0x2e1943,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x453f7b[_0x2749c5]=_0x2e1943,_0x453f7b;}var u=class extends _0xa8ea3{constructor(..._0x153849){const _0x53d103=_0x1b40;super(..._0x153849),l(this,_0x53d103(0x10c),void 0x0);}[_0x4322b2(0xfe)](_0xb7693b){const _0x5a92ad=_0x4322b2;this[_0x5a92ad(0x10c)]=_0xb7693b[_0x5a92ad(0x10e)](_0x5c1fb8);}['getLiveShareStatus'](){const _0x38ef1c=_0x4322b2;let _0x37fa5c=this[_0x38ef1c(0x110)][_0x38ef1c(0x10e)](_0x5bb8fa)['getCurrentUnitOfType'](_0x3cc333['UNIVER_SHEET']);if(!_0x37fa5c)throw Error(_0x38ef1c(0x10f));let _0x56a96c=_0x37fa5c[_0x38ef1c(0x111)](),_0xb0bce3=this[_0x38ef1c(0x10c)][_0x38ef1c(0x10d)](_0x56a96c);return(_0xb0bce3==null?void 0x0:_0xb0bce3[_0x38ef1c(0xff)]())??_0x1e31c7['IDLE'];}['startFollowing'](){const _0x3b0337=_0x4322b2;let _0x587509=this['_injector'][_0x3b0337(0x10e)](_0x5bb8fa)[_0x3b0337(0x103)](_0x3cc333[_0x3b0337(0x10a)]);if(!_0x587509)throw Error(_0x3b0337(0x10f));let _0x565976=_0x587509[_0x3b0337(0x111)](),_0x4b21a2=this[_0x3b0337(0x10c)][_0x3b0337(0x10d)](_0x565976);if(!_0x4b21a2)throw Error(_0x3b0337(0x106));_0x4b21a2[_0x3b0337(0x119)]();}[_0x4322b2(0x108)](){const _0x5de616=_0x4322b2;let _0x502390=this['_injector']['get'](_0x5bb8fa)[_0x5de616(0x103)](_0x3cc333[_0x5de616(0x10a)]);if(!_0x502390)throw Error(_0x5de616(0x10f));let _0x2cc10c=_0x502390[_0x5de616(0x111)](),_0x49243c=this[_0x5de616(0x10c)][_0x5de616(0x10d)](_0x2cc10c);if(!_0x49243c)throw Error(_0x5de616(0x106));_0x49243c['stopFollowing']();}['startPresenting'](){const _0x4a4365=_0x4322b2;let _0x36e1a0=this[_0x4a4365(0x110)][_0x4a4365(0x10e)](_0x5bb8fa)[_0x4a4365(0x103)](_0x3cc333[_0x4a4365(0x10a)]);if(!_0x36e1a0)throw Error('No\x20active\x20workbook\x20found.');let _0x280d08=_0x36e1a0[_0x4a4365(0x111)](),_0x4c9651=this[_0x4a4365(0x10c)]['getLiveShareCoordinatorSync'](_0x280d08);if(!_0x4c9651)throw Error(_0x4a4365(0x106));_0x4c9651[_0x4a4365(0x101)]();}[_0x4322b2(0x102)](){const _0x3a6770=_0x4322b2;let _0x276a4d=this['_injector'][_0x3a6770(0x10e)](_0x5bb8fa)[_0x3a6770(0x103)](_0x3cc333[_0x3a6770(0x10a)]);if(!_0x276a4d)throw Error(_0x3a6770(0x10f));let _0x36e0bb=_0x276a4d[_0x3a6770(0x111)](),_0x258253=this['_liveShareController'][_0x3a6770(0x10d)](_0x36e0bb);if(!_0x258253)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x258253[_0x3a6770(0x102)]();}};_0xa8ea3['extend'](u);var d=class extends _0x10c23e{get['LiveShareStatusEnum'](){return _0x1e31c7;}};_0x10c23e[_0x4322b2(0x104)](d);export{};
|
package/lib/index.css
CHANGED
|
@@ -14,22 +14,6 @@
|
|
|
14
14
|
min-width: 15rem;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.univer-cursor-not-allowed {
|
|
18
|
-
cursor: not-allowed;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.univer-cursor-pointer {
|
|
22
|
-
cursor: pointer;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.univer-border-none {
|
|
26
|
-
border-style: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.univer-bg-gray-400 {
|
|
30
|
-
background-color: var(--univer-gray-400);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
17
|
.univer-bg-gray-900 {
|
|
34
18
|
background-color: var(--univer-gray-900);
|
|
35
19
|
}
|
|
@@ -49,27 +33,14 @@
|
|
|
49
33
|
line-height: 1.25rem;
|
|
50
34
|
}
|
|
51
35
|
|
|
52
|
-
.univer-text-gray-600 {
|
|
53
|
-
color: var(--univer-gray-600);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
36
|
.univer-text-gray-900 {
|
|
57
37
|
color: var(--univer-gray-900);
|
|
58
38
|
}
|
|
59
39
|
|
|
60
|
-
.univer-
|
|
61
|
-
|
|
62
|
-
outline: 2px solid #0000;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.hover\:univer-bg-gray-400:hover {
|
|
66
|
-
background-color: var(--univer-gray-400);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.dark\:\!univer-bg-white:where(.univer-dark, .univer-dark *) {
|
|
70
|
-
background-color: var(--univer-white) !important;
|
|
40
|
+
.dark\:\!univer-bg-gray-0:where(.univer-dark, .univer-dark *) {
|
|
41
|
+
background-color: var(--univer-gray-0) !important;
|
|
71
42
|
}
|
|
72
43
|
|
|
73
|
-
.dark\:\!univer-text-
|
|
74
|
-
color: var(--univer-
|
|
44
|
+
.dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
|
|
45
|
+
color: var(--univer-gray-0) !important;
|
|
75
46
|
}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xcca918=_0x47e8;(function(_0x495eff,_0x4ce051){const _0x5d1e94=_0x47e8,_0x302c11=_0x495eff();while(!![]){try{const _0x1b073e=-parseInt(_0x5d1e94(0x208))/0x1*(-parseInt(_0x5d1e94(0x21a))/0x2)+-parseInt(_0x5d1e94(0x25f))/0x3+-parseInt(_0x5d1e94(0x228))/0x4+-parseInt(_0x5d1e94(0x1fb))/0x5+parseInt(_0x5d1e94(0x202))/0x6*(-parseInt(_0x5d1e94(0x1ea))/0x7)+-parseInt(_0x5d1e94(0x26f))/0x8+parseInt(_0x5d1e94(0x266))/0x9;if(_0x1b073e===_0x4ce051)break;else _0x302c11['push'](_0x302c11['shift']());}catch(_0x2172fd){_0x302c11['push'](_0x302c11['shift']());}}}(_0x1ae4,0xea17e));import{CollaborationEvent as _0x243177,parseProtocolChangeset as _0x317e07}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x19a9a0,SessionStatus as _0x1e4627,UniverCollaborationClientPlugin as _0xf25c4}from'@univerjs-pro/collaboration-client';import{CommandType as _0x1a009d,DependentOn as _0x35fd8d,Disposable as _0x5dda2c,DisposableCollection as _0x14d1cb,ICommandService as _0x2d1332,IConfigService as _0xe57a24,IUniverInstanceService as _0x5837d7,Inject as _0x3d3509,Injector as _0x3e0c27,Plugin as _0x1d3090,RxDisposable as _0x250ec8,UniverInstanceType as _0x146ed0,merge as _0x3bddf0,mergeOverrideWithDependencies as _0x1e951f,registerDependencies as _0xc05a66,toDisposable as _0x4dbbbb,touchDependencies as _0x41f06e}from'@univerjs/core';import{InsertSheetMutation as _0x28a0f6,SetWorksheetActiveOperation as _0x442d78}from'@univerjs/sheets';function _0x47e8(_0x16fa23,_0x2047f8){_0x16fa23=_0x16fa23-0x1df;const _0x1ae4ba=_0x1ae4();let _0x47e838=_0x1ae4ba[_0x16fa23];return _0x47e838;}import{BehaviorSubject as _0x191e68,Subject as _0x3d99f6,defer as _0x4c642,from as _0x4e42e5,of as _0x4333}from'rxjs';import{takeUntil as _0x5980d1,throttleTime as _0x1efc60}from'rxjs/operators';import{UniverLicensePlugin as _0x20c31b}from'@univerjs-pro/license';import{BuiltInUIPart as _0x3fad02,IUIPartsService as _0xce0b1f,UniverUIPlugin as _0x2b3cfa,connectInjector as _0x3c9d65,useDependency as _0x241be1,useObservable as _0x3fdd10}from'@univerjs/ui';import{SetScrollOperation as _0x454eaf,SetZoomRatioOperation as _0x937e41}from'@univerjs/sheets-ui';import{Button as _0x9cbbcc,Dropdown as _0x490e00,clsx as _0x4649fc}from'@univerjs/design';import{LiveShareIcon as _0x236657}from'@univerjs/icons';import{useMemo as _0x50e667}from'react';import{Fragment as _0x59eb51,jsx as _0x3021bb,jsxs as _0x15b75d}from'react/jsx-runtime';function B(_0x4f94c8){'@babel/helpers - typeof';const _0x57da11=_0x47e8;return B=typeof Symbol==_0x57da11(0x242)&&typeof Symbol['iterator']==_0x57da11(0x1e0)?function(_0x4b9156){return typeof _0x4b9156;}:function(_0x1f8856){const _0x30a7e8=_0x57da11;return _0x1f8856&&typeof Symbol==_0x30a7e8(0x242)&&_0x1f8856[_0x30a7e8(0x245)]===Symbol&&_0x1f8856!==Symbol[_0x30a7e8(0x207)]?_0x30a7e8(0x1e0):typeof _0x1f8856;},B(_0x4f94c8);}function V(_0x5e039a,_0x15f2d4){const _0x43a82e=_0x47e8;if(B(_0x5e039a)!=_0x43a82e(0x255)||!_0x5e039a)return _0x5e039a;var _0x5ce890=_0x5e039a[Symbol['toPrimitive']];if(_0x5ce890!==void 0x0){var _0x38cf97=_0x5ce890[_0x43a82e(0x21e)](_0x5e039a,_0x15f2d4||_0x43a82e(0x1f4));if(B(_0x38cf97)!=_0x43a82e(0x255))return _0x38cf97;throw TypeError(_0x43a82e(0x1ff));}return(_0x15f2d4===_0x43a82e(0x258)?String:Number)(_0x5e039a);}function H(_0x1f1a4d){const _0x23a257=_0x47e8;var _0x174445=V(_0x1f1a4d,_0x23a257(0x258));return B(_0x174445)==_0x23a257(0x1e0)?_0x174445:_0x174445+'';}function U(_0x310f6f,_0x5965ae,_0x268f70){return(_0x5965ae=H(_0x5965ae))in _0x310f6f?Object['defineProperty'](_0x310f6f,_0x5965ae,{'value':_0x268f70,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x310f6f[_0x5965ae]=_0x268f70,_0x310f6f;}var W=class extends _0x5dda2c{constructor(..._0x275603){const _0x19fb08=_0x47e8;super(..._0x275603),U(this,_0x19fb08(0x1e1),new Set()),U(this,_0x19fb08(0x201),new Set());}['registerSharedOperation'](_0x1e355b){const _0x446698=_0x47e8;return this[_0x446698(0x1e1)]['add'](_0x1e355b),_0x4dbbbb(()=>this[_0x446698(0x1e1)][_0x446698(0x1ef)](_0x1e355b));}['registerInitialStateReporter'](_0x250b8a){const _0xcd88c3=_0x47e8;return this[_0xcd88c3(0x201)][_0xcd88c3(0x251)](_0x250b8a),_0x4dbbbb(()=>this[_0xcd88c3(0x201)][_0xcd88c3(0x1ef)](_0x250b8a));}[_0xcca918(0x244)](_0x2feb8f){const _0x5988d0=_0xcca918;return this[_0x5988d0(0x1e1)][_0x5988d0(0x26d)](_0x2feb8f);}[_0xcca918(0x1f0)](_0x13315f){const _0x53f9c1=_0xcca918;return Array[_0x53f9c1(0x268)](this[_0x53f9c1(0x201)])[_0x53f9c1(0x1f8)](_0x527422=>_0x527422(_0x13315f));}};function G(_0x5f4af5,_0x5d1427){return function(_0x1c2ed7,_0x40b502){_0x5d1427(_0x1c2ed7,_0x40b502,_0x5f4af5);};}function K(_0x477c10,_0x1da7e1,_0x24e77d,_0x3b88db){const _0x382b64=_0xcca918;var _0xb52002=arguments[_0x382b64(0x206)],_0x4236b7=_0xb52002<0x3?_0x1da7e1:_0x3b88db===null?_0x3b88db=Object[_0x382b64(0x248)](_0x1da7e1,_0x24e77d):_0x3b88db,_0x52e5f8;if(typeof Reflect==_0x382b64(0x255)&&typeof Reflect[_0x382b64(0x1e7)]==_0x382b64(0x242))_0x4236b7=Reflect['decorate'](_0x477c10,_0x1da7e1,_0x24e77d,_0x3b88db);else{for(var _0x385162=_0x477c10['length']-0x1;_0x385162>=0x0;_0x385162--)(_0x52e5f8=_0x477c10[_0x385162])&&(_0x4236b7=(_0xb52002<0x3?_0x52e5f8(_0x4236b7):_0xb52002>0x3?_0x52e5f8(_0x1da7e1,_0x24e77d,_0x4236b7):_0x52e5f8(_0x1da7e1,_0x24e77d))||_0x4236b7);}return _0xb52002>0x3&&_0x4236b7&&Object[_0x382b64(0x267)](_0x1da7e1,_0x24e77d,_0x4236b7),_0x4236b7;}let q=class extends _0x250ec8{constructor(_0x464c35,_0x422bcb,_0x3371e7){const _0x3d4bc9=_0xcca918;super(),this[_0x3d4bc9(0x1fa)]=_0x464c35,this['_injector']=_0x422bcb,this['_collabSessionService']=_0x3371e7,U(this,'_entities',new Map()),this[_0x3d4bc9(0x241)]();}async[_0xcca918(0x227)](_0x223bf3){const _0x1dd2df=_0xcca918;return this[_0x1dd2df(0x261)]['has'](_0x223bf3)||await this[_0x1dd2df(0x22b)](_0x223bf3),this['_entities'][_0x1dd2df(0x1eb)](_0x223bf3);}[_0xcca918(0x257)](_0x5e6438){const _0x5613bb=_0xcca918;var _0xa712ce;return(_0xa712ce=this[_0x5613bb(0x261)][_0x5613bb(0x1eb)](_0x5e6438))==null?null:_0xa712ce;}[_0xcca918(0x241)](){const _0x573457=_0xcca918;this[_0x573457(0x1fa)][_0x573457(0x249)](_0x146ed0['UNIVER_SHEET'])[_0x573457(0x23a)](_0x5980d1(this[_0x573457(0x20c)]))[_0x573457(0x239)](async _0x290b67=>{const _0x555306=_0x573457;let _0x51f651=_0x290b67[_0x555306(0x24b)][_0x555306(0x1df)]();this[_0x555306(0x261)]['has'](_0x51f651)||this[_0x555306(0x22b)](_0x51f651);}),this['_univerInstanceService'][_0x573457(0x1f2)](_0x146ed0[_0x573457(0x219)])[_0x573457(0x23a)](_0x5980d1(this[_0x573457(0x20c)]))[_0x573457(0x239)](_0x3115b2=>{const _0x1a46d6=_0x573457;let _0x2da8ea=_0x3115b2[_0x1a46d6(0x1df)](),_0x4c4cd5=this[_0x1a46d6(0x261)]['get'](_0x2da8ea);_0x4c4cd5==null||_0x4c4cd5[_0x1a46d6(0x1e2)]();});}async[_0xcca918(0x22b)](_0x5049c5){const _0x30a80f=_0xcca918;let _0x39f8cb=await this[_0x30a80f(0x252)][_0x30a80f(0x23e)](_0x5049c5),_0x3d788d=this[_0x30a80f(0x263)]['createInstance'](J,_0x5049c5,_0x39f8cb);return _0x3d788d[_0x30a80f(0x209)](),this[_0x30a80f(0x261)]['set'](_0x5049c5,_0x3d788d),_0x3d788d;}};q=K([G(0x0,_0x5837d7),G(0x1,_0x3d3509(_0x3e0c27)),G(0x2,_0x3d3509(_0x19a9a0))],q);let ce=function(_0x54aff2){const _0x476a40=_0xcca918;return _0x54aff2[_0x476a40(0x20f)]=_0x476a40(0x1e4),_0x54aff2[_0x476a40(0x210)]=_0x476a40(0x1e3),_0x54aff2[_0x476a40(0x200)]=_0x476a40(0x1e6),_0x54aff2[_0x476a40(0x20e)]='not-following',_0x54aff2[_0x476a40(0x22c)]=_0x476a40(0x1ee),_0x54aff2;}({}),J=class extends _0x250ec8{get[_0xcca918(0x222)](){const _0x3ec18e=_0xcca918;return this[_0x3ec18e(0x25e)]['getValue']();}constructor(_0x3825dd,_0x498c7e,_0x23aae0,_0x50d196,_0x12a41d){const _0x23300a=_0xcca918;super(),this[_0x23300a(0x246)]=_0x3825dd,this[_0x23300a(0x232)]=_0x498c7e,this[_0x23300a(0x217)]=_0x23aae0,this[_0x23300a(0x24d)]=_0x50d196,this[_0x23300a(0x26b)]=_0x12a41d,U(this,_0x23300a(0x25e),new _0x191e68(_0x23300a(0x1e3))),U(this,_0x23300a(0x1ed),this[_0x23300a(0x25e)][_0x23300a(0x1e9)]()),U(this,_0x23300a(0x241),!0x1),U(this,'_commandDisposable',null),U(this,_0x23300a(0x1f7),null);}[_0xcca918(0x1e2)](){const _0x22817f=_0xcca918;var _0x545fec;(_0x545fec=this['_commandDisposable'])==null||_0x545fec['dispose'](),this[_0x22817f(0x25e)][_0x22817f(0x259)](_0x22817f(0x1e3)),this[_0x22817f(0x25e)][_0x22817f(0x25c)]();}['getStatus'](){const _0x34ab8d=_0xcca918;return this[_0x34ab8d(0x222)];}[_0xcca918(0x209)](){const _0x1ad7fc=_0xcca918;this[_0x1ad7fc(0x241)]||(this[_0x1ad7fc(0x241)]=!0x0,this['_collabSession'][_0x1ad7fc(0x215)]['pipe'](_0x5980d1(this[_0x1ad7fc(0x20c)]))[_0x1ad7fc(0x239)](_0x33e35c=>{const _0x968b3=_0x1ad7fc;switch(_0x33e35c){case _0x1e4627[_0x968b3(0x20f)]:this['_handleOffline']();break;case _0x1e4627[_0x968b3(0x226)]:this[_0x968b3(0x20d)]();break;default:}}),this[_0x1ad7fc(0x232)][_0x1ad7fc(0x218)][_0x1ad7fc(0x23a)](_0x5980d1(this['dispose$']))[_0x1ad7fc(0x239)](_0x1b7111=>{const _0x505c6a=_0x1ad7fc;let {eventID:_0x580155}=_0x1b7111;switch(_0x580155){case _0x243177[_0x505c6a(0x20b)]:this[_0x505c6a(0x220)](_0x1b7111);break;case _0x243177[_0x505c6a(0x1fc)]:this[_0x505c6a(0x205)](_0x1b7111);break;case _0x243177[_0x505c6a(0x23d)]:this[_0x505c6a(0x22f)]();break;case _0x243177[_0x505c6a(0x1f6)]:this[_0x505c6a(0x1fe)](_0x1b7111);break;default:}}));}[_0xcca918(0x22e)](){const _0x6bd7af=_0xcca918;this[_0x6bd7af(0x232)]['send']({'eventID':_0x243177[_0x6bd7af(0x1e5)],'data':{'unitID':this[_0x6bd7af(0x246)],'userID':this[_0x6bd7af(0x232)][_0x6bd7af(0x23f)]()}},this[_0x6bd7af(0x246)]);}['stopPresenting'](){const _0x3873c0=_0xcca918;this['_status']===_0x3873c0(0x1ee)&&(this[_0x3873c0(0x25e)][_0x3873c0(0x259)]('idle'),this[_0x3873c0(0x232)][_0x3873c0(0x243)]({'eventID':_0x243177[_0x3873c0(0x23d)],'data':{'unitID':this['_unitID']}},this[_0x3873c0(0x246)]));}['startFollowing'](){const _0x116680=_0xcca918;this[_0x116680(0x222)]===_0x116680(0x253)&&(this[_0x116680(0x25e)][_0x116680(0x259)]('following'),this[_0x116680(0x212)]());}[_0xcca918(0x21b)](){const _0x25f900=_0xcca918;this[_0x25f900(0x222)]===_0x25f900(0x1e6)&&this[_0x25f900(0x256)]();}[_0xcca918(0x220)](_0x4b063e){const _0x164c9d=_0xcca918;let {presenter:_0x3ac8f8}=_0x4b063e[_0x164c9d(0x24e)],_0xa1d6b8=this[_0x164c9d(0x232)][_0x164c9d(0x23f)]();this[_0x164c9d(0x1f7)]=_0x3ac8f8,_0x3ac8f8===_0xa1d6b8?(this[_0x164c9d(0x256)](),this[_0x164c9d(0x203)]()):this['_status']!==_0x164c9d(0x253)&&(this[_0x164c9d(0x23c)](),this[_0x164c9d(0x212)]());}[_0xcca918(0x230)](){const _0x3d941e=_0xcca918;let _0x50ea0a={'eventID':_0x243177[_0x3d941e(0x1fd)]};this['_collabSession'][_0x3d941e(0x243)](_0x50ea0a,this['_unitID']);}[_0xcca918(0x22f)](){const _0x37437e=_0xcca918;this[_0x37437e(0x1f7)]=null,this[_0x37437e(0x222)]!==_0x37437e(0x1ee)&&this[_0x37437e(0x216)]();}['_handleNewChangeSets'](_0x4cd96f){const _0x2b9c4a=_0xcca918;if(this[_0x2b9c4a(0x222)]==='following'&&this['_presenter']===_0x4cd96f[_0x2b9c4a(0x24e)][_0x2b9c4a(0x213)]){let _0x588c7c=_0x317e07(_0x4cd96f[_0x2b9c4a(0x24e)])[_0x2b9c4a(0x25b)][_0x2b9c4a(0x260)]()['find'](_0x19f54f=>_0x19f54f['id']===_0x28a0f6['id']);if(_0x588c7c){let _0x5327dd=_0x588c7c[_0x2b9c4a(0x231)]['unitId'],_0x2dd3e0=_0x588c7c[_0x2b9c4a(0x231)]['sheet']['id'];setTimeout(()=>{const _0x3b112e=_0x2b9c4a;this[_0x3b112e(0x26b)][_0x3b112e(0x211)](_0x442d78['id'],{'unitId':_0x5327dd,'subUnitId':_0x2dd3e0},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x525b83=_0xcca918;var _0x418798;(_0x418798=this[_0x525b83(0x223)])==null||_0x418798[_0x525b83(0x1e2)](),this[_0x525b83(0x25e)][_0x525b83(0x259)](_0x525b83(0x1ee));let _0x6b9e1=new Map(),_0x3b8485=this[_0x525b83(0x223)]=new _0x14d1cb();_0x3b8485['add'](_0x4dbbbb(()=>{const _0x228114=_0x525b83;_0x6b9e1[_0x228114(0x247)](({subject:_0x590e85,subscription:_0x20da8c})=>{const _0x30c093=_0x228114;_0x20da8c[_0x30c093(0x1f3)](),_0x590e85[_0x30c093(0x25c)]();}),_0x6b9e1[_0x228114(0x21d)]();})),_0x3b8485['add'](this['_commandService'][_0x525b83(0x237)](_0x5695c6=>{const _0x2ef0d3=_0x525b83;if(_0x5695c6['type']!==_0x1a009d[_0x2ef0d3(0x224)]||!this[_0x2ef0d3(0x24d)][_0x2ef0d3(0x244)](_0x5695c6['id']))return;let {id:_0x25c49e}=_0x5695c6,_0x5c6489;if(_0x6b9e1[_0x2ef0d3(0x26d)](_0x25c49e))_0x5c6489=_0x6b9e1[_0x2ef0d3(0x1eb)](_0x25c49e)[_0x2ef0d3(0x1f1)];else{var _0x2a8472;_0x5c6489=new _0x3d99f6();let _0x21882a=_0x5c6489[_0x2ef0d3(0x23a)](_0x1efc60((_0x2a8472=this['_configService'][_0x2ef0d3(0x254)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2a8472,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ef0d3(0x239)](_0x3c8840=>{const _0x49bd1c=_0x2ef0d3;this['_collabSession'][_0x49bd1c(0x243)]({'eventID':_0x243177[_0x49bd1c(0x1fc)],'data':{'unitID':this[_0x49bd1c(0x246)],'operations':{[_0x3c8840['id']]:{'id':_0x3c8840['id'],'params':JSON[_0x49bd1c(0x250)](_0x3c8840[_0x49bd1c(0x231)])}}}},this[_0x49bd1c(0x246)]);});_0x6b9e1['set'](_0x25c49e,{'subject':_0x5c6489,'subscription':_0x21882a});}_0x5c6489[_0x2ef0d3(0x259)](_0x5695c6);})),this[_0x525b83(0x24d)][_0x525b83(0x1f0)](this[_0x525b83(0x246)])[_0x525b83(0x247)](_0x18b5ac=>this[_0x525b83(0x232)][_0x525b83(0x243)]({'eventID':_0x243177[_0x525b83(0x1fc)],'data':{'unitID':this['_unitID'],'operations':{[_0x18b5ac['id']]:{'id':_0x18b5ac['id'],'params':JSON['stringify'](_0x18b5ac['params'])}}}},this[_0x525b83(0x246)]));}[_0xcca918(0x23c)](){const _0x3f5ad4=_0xcca918;var _0x4a1709;this[_0x3f5ad4(0x25e)][_0x3f5ad4(0x259)](_0x3f5ad4(0x1e3)),(_0x4a1709=this['_commandDisposable'])==null||_0x4a1709[_0x3f5ad4(0x1e2)](),this[_0x3f5ad4(0x223)]=null;}[_0xcca918(0x212)](){const _0xe46bfa=_0xcca918;var _0x229fed;(_0x229fed=this[_0xe46bfa(0x223)])==null||_0x229fed['dispose'](),this['_status$'][_0xe46bfa(0x259)]('following');}[_0xcca918(0x216)](){const _0x3be3f4=_0xcca918;var _0x58f4bf;this[_0x3be3f4(0x25e)][_0x3be3f4(0x259)](_0x3be3f4(0x1e3)),(_0x58f4bf=this[_0x3be3f4(0x223)])==null||_0x58f4bf[_0x3be3f4(0x1e2)](),this['_commandDisposable']=null;}[_0xcca918(0x256)](){const _0x3319ac=_0xcca918;var _0x37761d;this[_0x3319ac(0x25e)][_0x3319ac(0x259)]('not-following'),(_0x37761d=this[_0x3319ac(0x223)])==null||_0x37761d[_0x3319ac(0x1e2)]();}[_0xcca918(0x205)](_0x3106a7){const _0x1a0706=_0xcca918;if([_0x1a0706(0x1ee),_0x1a0706(0x253),_0x1a0706(0x1e4)]['includes'](this['_status'])||!_0x3106a7[_0x1a0706(0x24e)]['presenter']||_0x3106a7[_0x1a0706(0x24e)]['presenter']===this[_0x1a0706(0x232)][_0x1a0706(0x23f)]())return;this[_0x1a0706(0x222)]===_0x1a0706(0x1e3)&&this[_0x1a0706(0x212)]();let _0x6de62=_0x3106a7[_0x1a0706(0x24e)][_0x1a0706(0x25a)];Object[_0x1a0706(0x235)](_0x6de62)['forEach'](_0x4f0068=>{const _0x557fa9=_0x1a0706;this[_0x557fa9(0x26b)][_0x557fa9(0x211)](_0x4f0068['id'],_0x4f0068[_0x557fa9(0x231)]?JSON[_0x557fa9(0x229)](_0x4f0068[_0x557fa9(0x231)]):null,{'fromCollab':!0x0});});}[_0xcca918(0x20a)](){const _0x4ae8b4=_0xcca918;var _0x28426c;this[_0x4ae8b4(0x25e)][_0x4ae8b4(0x259)](_0x4ae8b4(0x1e4)),(_0x28426c=this['_commandDisposable'])==null||_0x28426c[_0x4ae8b4(0x1e2)]();}['_handleOnline'](){const _0x124e85=_0xcca918;this[_0x124e85(0x25e)][_0x124e85(0x259)]('idle'),this[_0x124e85(0x230)]();}};J=K([G(0x2,_0xe57a24),G(0x3,_0x3d3509(W)),G(0x4,_0x2d1332)],J);var le=_0xcca918(0x22d),ue=_0xcca918(0x24c);const Y={};let X=class extends _0x5dda2c{constructor(_0xf376ec){const _0x68fea7=_0xcca918;super(),this[_0x68fea7(0x24d)]=_0xf376ec,this['_init']();}[_0xcca918(0x241)](){const _0x3e9353=_0xcca918;[_0x937e41['id'],_0x454eaf['id'],_0x442d78['id']][_0x3e9353(0x247)](_0x9da380=>{const _0x5063e4=_0x3e9353;this[_0x5063e4(0x234)](this[_0x5063e4(0x24d)][_0x5063e4(0x1f9)](_0x9da380));});}};X=K([G(0x0,_0x3d3509(W))],X);function de(){const _0x5851c9=_0xcca918;let _0x31a606=_0x241be1(q),_0x407490=_0x241be1(_0x5837d7),_0x38ae59=_0x3fdd10(()=>_0x407490[_0x5851c9(0x1e8)](_0x146ed0[_0x5851c9(0x219)]),void 0x0,!0x1,[]),_0xd8245d=_0x3fdd10(_0x50e667(()=>_0x38ae59?_0x4c642(()=>_0x4e42e5(_0x31a606[_0x5851c9(0x227)](_0x38ae59[_0x5851c9(0x1df)]()))):_0x4333(null),[_0x38ae59,_0x31a606]),null),_0x45c0d4=_0x3fdd10(_0xd8245d?()=>_0xd8245d['status$']:null,_0x5851c9(0x1e3),!0x1,[_0xd8245d]);return _0xd8245d?_0x3021bb(_0x490e00,{'align':_0x5851c9(0x26e),'disabled':_0x45c0d4===_0x5851c9(0x1e4),'className':_0x5851c9(0x204),'overlay':_0x3021bb(Z,{'status':_0x45c0d4,'coordinator':_0xd8245d}),'children':_0x3021bb('button',{'className':_0x4649fc(_0x5851c9(0x233),{'univer-cursor-not-allowed':_0x45c0d4===_0x5851c9(0x1e4),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45c0d4!==_0x5851c9(0x1e4)}),'type':'button','children':_0x3021bb(_0x236657,{})})}):null;}function Z(_0x19bc6e){const _0x4c04af=_0xcca918;let {status:_0x21f32e,coordinator:_0x5856d9}=_0x19bc6e;switch(_0x21f32e){case _0x4c04af(0x1e3):return _0x3021bb(fe,{'coordinator':_0x5856d9});case'following':return _0x3021bb(pe,{'coordinator':_0x5856d9});case _0x4c04af(0x253):return _0x3021bb(me,{'coordinator':_0x5856d9});case _0x4c04af(0x1e4):return _0x3021bb(ge,{});case _0x4c04af(0x1ee):return _0x3021bb(he,{'coordinator':_0x5856d9});default:return null;}}function fe(_0x250d91){const _0x55a445=_0xcca918;let {coordinator:_0x25dadc}=_0x250d91;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb('div',{'className':_0x55a445(0x225),'children':_0x55a445(0x24a)}),_0x3021bb(_0x9cbbcc,{'onClick':()=>_0x25dadc[_0x55a445(0x22e)](),'children':_0x55a445(0x1ec)})]});}function pe(_0x32a093){const _0xd16731=_0xcca918;let {coordinator:_0x21c8b2}=_0x32a093;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb(_0xd16731(0x22a),{'className':_0xd16731(0x225),'children':_0xd16731(0x236)}),_0x3021bb(_0x9cbbcc,{'onClick':()=>_0x21c8b2[_0xd16731(0x21b)](),'children':'Stop\x20following'})]});}function me(_0x39a0d5){const _0x7571c0=_0xcca918;let {coordinator:_0x464236}=_0x39a0d5;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb(_0x7571c0(0x22a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3021bb(_0x9cbbcc,{'variant':_0x7571c0(0x24f),'onClick':()=>_0x464236['startFollowing'](),'children':'Start\x20following'})]});}function he(_0x44c937){const _0x12a708=_0xcca918;let {coordinator:_0x31ed6d}=_0x44c937;return _0x15b75d(_0x59eb51,{'children':[_0x3021bb('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x12a708(0x23b)}),_0x3021bb(_0x9cbbcc,{'variant':_0x12a708(0x1f4),'onClick':()=>_0x31ed6d[_0x12a708(0x21c)](),'children':_0x12a708(0x214)})]});}function ge(){const _0x1a64ea=_0xcca918;return _0x3021bb(_0x59eb51,{'children':_0x1a64ea(0x269)});}let Q=class extends _0x5dda2c{constructor(_0x1d0fc6,_0x495bd0){const _0x425b35=_0xcca918;super(),this['_injector']=_0x1d0fc6,this[_0x425b35(0x265)]=_0x495bd0,this['_mountLiveShare']();}[_0xcca918(0x271)](){const _0x5056ee=_0xcca918;this[_0x5056ee(0x234)](this['_uiPartsService']['registerComponent'](_0x3fad02[_0x5056ee(0x262)],()=>_0x3c9d65(de,this[_0x5056ee(0x263)])));}};Q=K([G(0x0,_0x3d3509(_0x3e0c27)),G(0x1,_0xce0b1f)],Q);let $=class extends _0x1d3090{constructor(_0x45c7ac=Y,_0x118060,_0x54446c){const _0x514492=_0xcca918;super(),this[_0x514492(0x25d)]=_0x45c7ac,this[_0x514492(0x263)]=_0x118060,this[_0x514492(0x217)]=_0x54446c;let {..._0x11e9ee}=_0x3bddf0({},Y,this[_0x514492(0x25d)]);this[_0x514492(0x217)][_0x514492(0x21f)]('live-share.config',_0x11e9ee);}['onStarting'](){const _0x153e46=_0xcca918;_0xc05a66(this['_injector'],_0x1e951f([[W],[q],[X],[Q]],this[_0x153e46(0x25d)][_0x153e46(0x26a)])),_0x41f06e(this[_0x153e46(0x263)],[[X]]);}[_0xcca918(0x240)](){const _0xc0813b=_0xcca918;_0x41f06e(this[_0xc0813b(0x263)],[[Q]]);}};function _0x1ae4(){const _0x5a0314=['_collabSessionService','not-following','getConfig','object','_stopFollowing','getLiveShareCoordinatorSync','string','next','operations','mutations','complete','_config','_status$','4299981nmhOlx','reverse','_entities','HEADER_MENU','_injector','version','_uiPartsService','26417727AOEnnj','defineProperty','from','You\x27are\x20offline.','override','_commandService','UNIVER_UNKNOWN','has','end','2351136PkBTnw','packageName','_mountLiveShare','getUnitId','symbol','_sharedOperations','dispose','idle','offline','LIVESHARE_REQUEST_HOST','following','decorate','getCurrentTypeOfUnit$','asObservable','5278tvatfx','get','Start','status$','presenting','delete','getInitialStates','subject','getTypeOfUnitDisposed$','unsubscribe','default','UNIVER_LIVE_SHARE_PLUGIN','NEW_CHANGESETS','_presenter','map','registerSharedOperation','_univerInstanceService','158985vyfKcL','LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','_handleNewChangeSets','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FOLLOWING','_reporters','9774dCKpoJ','_startPresenting','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','_handleOperation','length','prototype','574420wDoFMx','init','_handleOffline','LIVESHARE_NEW_HOST','dispose$','_handleOnline','NOT_FOLLOWING','OFFLINE','IDLE','executeCommand','_startFollowing','memberID','Stop\x20presenting','sessionStatus$','_beIdle','_configService','event$','UNIVER_SHEET','6XZSyZu','stopFollowing','stopPresenting','clear','call','setConfig','_handleNewHost','type','_status','_commandDisposable','OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','getLiveShareCoordinator','2849740kXsyTH','parse','div','_startLiveShareCoordinator','PRESENTING','@univerjs-pro/live-share','tryStartPresenting','_handleTerminate','_fetchOperations','params','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','values','You\x27re\x20following\x20the\x20presenter','onCommandExecuted','pluginName','subscribe','pipe','You\x27re\x20presenting\x20the\x20document','_stopPresenting','LIVESHARE_TERMINATE','requireSession','getMemberID','onRendered','_init','function','send','shouldShareOperation','constructor','_unitID','forEach','getOwnPropertyDescriptor','getTypeOfUnitAdded$','Present\x20this\x20document','unit','1.0.0-alpha.8','_liveShareService','data','text','stringify','add'];_0x1ae4=function(){return _0x5a0314;};return _0x1ae4();}U($,_0xcca918(0x221),_0x146ed0[_0xcca918(0x26c)]),U($,_0xcca918(0x238),_0xcca918(0x1f5)),U($,_0xcca918(0x270),le),U($,_0xcca918(0x264),ue),$=K([_0x35fd8d(_0x20c31b,_0x2b3cfa,_0xf25c4),G(0x1,_0x3d3509(_0x3e0c27)),G(0x2,_0xe57a24)],$);export{q as LiveShareController,ce as LiveShareStatus,$ as UniverLiveSharePlugin};
|
|
1
|
+
const _0x118c75=_0x3c00;(function(_0x2ed377,_0x1fde15){const _0xe63431=_0x3c00,_0xb8810f=_0x2ed377();while(!![]){try{const _0x22a862=parseInt(_0xe63431(0x1be))/0x1*(parseInt(_0xe63431(0x1c4))/0x2)+parseInt(_0xe63431(0x20e))/0x3*(parseInt(_0xe63431(0x20c))/0x4)+-parseInt(_0xe63431(0x1e1))/0x5+-parseInt(_0xe63431(0x21b))/0x6*(-parseInt(_0xe63431(0x207))/0x7)+-parseInt(_0xe63431(0x1d6))/0x8*(parseInt(_0xe63431(0x1e8))/0x9)+parseInt(_0xe63431(0x21f))/0xa*(-parseInt(_0xe63431(0x1e4))/0xb)+parseInt(_0xe63431(0x214))/0xc;if(_0x22a862===_0x1fde15)break;else _0xb8810f['push'](_0xb8810f['shift']());}catch(_0x17082c){_0xb8810f['push'](_0xb8810f['shift']());}}}(_0x2f40,0xe4c77));import{CollaborationEvent as _0x46322a,parseProtocolChangeset as _0x4891b9}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xd12c30,SessionStatus as _0x45501e,UniverCollaborationClientPlugin as _0xede79f}from'@univerjs-pro/collaboration-client';function _0x2f40(){const _0x247cce=['_commandService','_unitID','NEW_CHANGESETS','getLiveShareCoordinator','6477308sSLVfO','shouldShareOperation','3fZbAcj','live-share.config','symbol','onCommandExecuted','LIVESHARE_REQUEST_HOST','unsubscribe','44528100pFvfZW','tryStartPresenting','_handleTerminate','_startLiveShareCoordinator','_handleOnline','idle','_status$','24iREWbg','not-following','_status','HEADER_MENU','4890eNpxju','setConfig','disposeWithMe','executeCommand','getUnitId','requireSession','_startPresenting','stopPresenting','_sharedOperations','pipe','_handleNewChangeSets','add','Start','onStarting','data','SAME_OPERATION_SHARE_INTERVAL','includes','parse','unit','You\x27re\x20following\x20the\x20presenter','object','_univerInstanceService','getLiveShareCoordinatorSync','next','send','button','_collabSessionService','event$','_entities','decorate','unitId','pluginName','LIVESHARE_FETCH_OPERATIONS','icon','packageName','set','offline','default','constructor','defineProperty','Start\x20following','registerSharedOperation','_fetchOperations','_handleNewHost','startFollowing','PRESENTING','getValue','_startFollowing','div','presenting','dispose','_stopFollowing','You\x27are\x20offline.','2RhqXJE','status$','_handleOffline','UNIVER_LIVE_SHARE_PLUGIN','end','createInstance','25932MQpzvA','stopFollowing','version','_mountLiveShare','getInitialStates','_configService','toPrimitive','stringify','text','NOT_FOLLOWING','subject','1.0.0-beta.1','getMemberID','getOwnPropertyDescriptor','delete','following','values','prototype','16aOPvlT','has','_presenter','type','function','clear','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','length','ONLINE','8125480uEBroc','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-gray-0\x20dark:!univer-text-gray-0','_reporters','31273XeyNHT','call','You\x27re\x20not\x20following\x20the\x20presenter','_commandDisposable','6920658BZKDQR','forEach','LIVESHARE_OPERATION','_stopPresenting','_config','_beIdle','OPERATION','OFFLINE','IDLE','_liveShareService','params','sheet','find','get','subscribe','registerComponent','string','_uiPartsService','dispose$','_collabSession','UNIVER_SHEET','map','Present\x20this\x20document','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','presenter','onRendered','_init','@univerjs-pro/live-share','asObservable','complete','235186jrkVRz'];_0x2f40=function(){return _0x247cce;};return _0x2f40();}import{CommandType as _0x38266c,DependentOn as _0x2604e4,Disposable as _0x13da97,DisposableCollection as _0xdc1a5d,ICommandService as _0x80bf63,IConfigService as _0x5c1bab,IUniverInstanceService as _0x16046f,Inject as _0x1ac1b0,Injector as _0x55cef5,Plugin as _0x5bf3c2,RxDisposable as _0x182266,UniverInstanceType as _0x2d0216,merge as _0x478986,mergeOverrideWithDependencies as _0x3b8a2b,registerDependencies as _0x1c2a87,toDisposable as _0x5d8ba3,touchDependencies as _0x3ea51e}from'@univerjs/core';import{InsertSheetMutation as _0x1f4399,SetWorksheetActiveOperation as _0x17c25c}from'@univerjs/sheets';import{BehaviorSubject as _0x76a724,Subject as _0xfcc829,defer as _0x40e277,from as _0x1cd9bb,of as _0x790f65}from'rxjs';import{takeUntil as _0x39b47c,throttleTime as _0x4f4c40}from'rxjs/operators';import{UniverLicensePlugin as _0x79063d}from'@univerjs-pro/license';import{SetScrollOperation as _0x28a702,SetZoomRatioOperation as _0x18599f}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x114d37,IUIPartsService as _0x16b944,connectInjector as _0x2e41a9,useDependency as _0x1f8911,useObservable as _0x4af8a4}from'@univerjs/ui';import{Button as _0x35232c,Dropdown as _0x555807}from'@univerjs/design';import{LiveShareIcon as _0x282424}from'@univerjs/icons';import{useMemo as _0x5c3a44}from'react';import{Fragment as _0x3095de,jsx as _0x16217f,jsxs as _0x3e860c}from'react/jsx-runtime';function z(_0x57b603){'@babel/helpers - typeof';const _0x1b56bc=_0x3c00;return z=typeof Symbol==_0x1b56bc(0x1da)&&typeof Symbol['iterator']=='symbol'?function(_0x6ae79){return typeof _0x6ae79;}:function(_0x15eae0){const _0x102585=_0x1b56bc;return _0x15eae0&&typeof Symbol==_0x102585(0x1da)&&_0x15eae0[_0x102585(0x1af)]===Symbol&&_0x15eae0!==Symbol[_0x102585(0x1d5)]?_0x102585(0x210):typeof _0x15eae0;},z(_0x57b603);}function B(_0x123ae4,_0x486a0d){const _0x2ce451=_0x3c00;if(z(_0x123ae4)!=_0x2ce451(0x19d)||!_0x123ae4)return _0x123ae4;var _0x59d8de=_0x123ae4[Symbol[_0x2ce451(0x1ca)]];if(_0x59d8de!==void 0x0){var _0x5a901c=_0x59d8de[_0x2ce451(0x1e5)](_0x123ae4,_0x486a0d||_0x2ce451(0x1ae));if(z(_0x5a901c)!=_0x2ce451(0x19d))return _0x5a901c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x486a0d==='string'?String:Number)(_0x123ae4);}function V(_0x3b547e){const _0x5f3208=_0x3c00;var _0x4ba0ca=B(_0x3b547e,_0x5f3208(0x1f8));return z(_0x4ba0ca)==_0x5f3208(0x210)?_0x4ba0ca:_0x4ba0ca+'';}function H(_0x57dc05,_0x2476ce,_0x2dde76){const _0x3ce622=_0x3c00;return(_0x2476ce=V(_0x2476ce))in _0x57dc05?Object[_0x3ce622(0x1b0)](_0x57dc05,_0x2476ce,{'value':_0x2dde76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57dc05[_0x2476ce]=_0x2dde76,_0x57dc05;}var U=class extends _0x13da97{constructor(..._0x5d4c54){const _0x38148f=_0x3c00;super(..._0x5d4c54),H(this,_0x38148f(0x191),new Set()),H(this,_0x38148f(0x1e3),new Set());}[_0x118c75(0x1b2)](_0xe4a963){const _0x3f8848=_0x118c75;return this[_0x3f8848(0x191)][_0x3f8848(0x194)](_0xe4a963),_0x5d8ba3(()=>this[_0x3f8848(0x191)][_0x3f8848(0x1d2)](_0xe4a963));}['registerInitialStateReporter'](_0x594763){const _0x60a730=_0x118c75;return this[_0x60a730(0x1e3)][_0x60a730(0x194)](_0x594763),_0x5d8ba3(()=>this['_reporters'][_0x60a730(0x1d2)](_0x594763));}['shouldShareOperation'](_0x4997db){const _0x15f0f0=_0x118c75;return this[_0x15f0f0(0x191)][_0x15f0f0(0x1d7)](_0x4997db);}[_0x118c75(0x1c8)](_0x2868d9){const _0x57c26e=_0x118c75;return Array['from'](this['_reporters'])[_0x57c26e(0x1fd)](_0x59d607=>_0x59d607(_0x2868d9));}};function W(_0x5b8103,_0x4d870e){return function(_0x218572,_0x24dd90){_0x4d870e(_0x218572,_0x24dd90,_0x5b8103);};}function G(_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1){const _0x5a1f5a=_0x118c75;var _0x5d2617=arguments['length'],_0x456d06=_0x5d2617<0x3?_0x39c719:_0x29fcd1===null?_0x29fcd1=Object[_0x5a1f5a(0x1d1)](_0x39c719,_0x1c3de7):_0x29fcd1,_0x46059b;if(typeof Reflect==_0x5a1f5a(0x19d)&&typeof Reflect[_0x5a1f5a(0x1a6)]=='function')_0x456d06=Reflect[_0x5a1f5a(0x1a6)](_0xe6cc7c,_0x39c719,_0x1c3de7,_0x29fcd1);else{for(var _0x40e2de=_0xe6cc7c[_0x5a1f5a(0x1df)]-0x1;_0x40e2de>=0x0;_0x40e2de--)(_0x46059b=_0xe6cc7c[_0x40e2de])&&(_0x456d06=(_0x5d2617<0x3?_0x46059b(_0x456d06):_0x5d2617>0x3?_0x46059b(_0x39c719,_0x1c3de7,_0x456d06):_0x46059b(_0x39c719,_0x1c3de7))||_0x456d06);}return _0x5d2617>0x3&&_0x456d06&&Object['defineProperty'](_0x39c719,_0x1c3de7,_0x456d06),_0x456d06;}let K=class extends _0x182266{constructor(_0x353b3a,_0xf786e5,_0x261067){const _0x2bd198=_0x118c75;super(),this[_0x2bd198(0x19e)]=_0x353b3a,this[_0x2bd198(0x1de)]=_0xf786e5,this[_0x2bd198(0x1a3)]=_0x261067,H(this,_0x2bd198(0x1a5),new Map()),this['_init']();}async[_0x118c75(0x20b)](_0x4e4668){const _0x384389=_0x118c75;return this[_0x384389(0x1a5)][_0x384389(0x1d7)](_0x4e4668)||await this[_0x384389(0x217)](_0x4e4668),this[_0x384389(0x1a5)][_0x384389(0x1f5)](_0x4e4668);}[_0x118c75(0x19f)](_0xc279a){const _0x111129=_0x118c75;return this['_entities'][_0x111129(0x1f5)](_0xc279a)??null;}[_0x118c75(0x203)](){const _0x53622a=_0x118c75;this[_0x53622a(0x19e)]['getTypeOfUnitAdded$'](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))[_0x53622a(0x1f6)](async _0x1ce34f=>{const _0xce2f89=_0x53622a;let _0x5f5adb=_0x1ce34f[_0xce2f89(0x19b)][_0xce2f89(0x18d)]();this[_0xce2f89(0x1a5)]['has'](_0x5f5adb)||this[_0xce2f89(0x217)](_0x5f5adb);}),this[_0x53622a(0x19e)][_0x53622a(0x200)](_0x2d0216[_0x53622a(0x1fc)])[_0x53622a(0x192)](_0x39b47c(this[_0x53622a(0x1fa)]))['subscribe'](_0x31a119=>{const _0x25d851=_0x53622a;let _0x4bb995=_0x31a119[_0x25d851(0x18d)](),_0x5c8224=this[_0x25d851(0x1a5)]['get'](_0x4bb995);_0x5c8224==null||_0x5c8224['dispose']();});}async[_0x118c75(0x217)](_0x97a771){const _0x2395bd=_0x118c75;let _0xb42235=await this[_0x2395bd(0x1a3)][_0x2395bd(0x18e)](_0x97a771),_0x4a069c=this[_0x2395bd(0x1de)][_0x2395bd(0x1c3)](J,_0x97a771,_0xb42235);return _0x4a069c['init'](),this[_0x2395bd(0x1a5)][_0x2395bd(0x1ac)](_0x97a771,_0x4a069c),_0x4a069c;}};K=G([W(0x0,_0x16046f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x1ac1b0(_0xd12c30))],K);let q=function(_0x2f8f05){const _0x478b75=_0x118c75;return _0x2f8f05['OFFLINE']=_0x478b75(0x1ad),_0x2f8f05[_0x478b75(0x1f0)]='idle',_0x2f8f05['FOLLOWING']=_0x478b75(0x1d3),_0x2f8f05[_0x478b75(0x1cd)]=_0x478b75(0x21c),_0x2f8f05[_0x478b75(0x1b6)]='presenting',_0x2f8f05;}({}),J=class extends _0x182266{get['_status'](){const _0xb10919=_0x118c75;return this[_0xb10919(0x21a)][_0xb10919(0x1b7)]();}constructor(_0x53de23,_0x22eaa0,_0x3662a0,_0x1c2fea,_0x57a328){const _0x5a3b24=_0x118c75;super(),this[_0x5a3b24(0x209)]=_0x53de23,this[_0x5a3b24(0x1fb)]=_0x22eaa0,this[_0x5a3b24(0x1c9)]=_0x3662a0,this['_liveShareService']=_0x1c2fea,this['_commandService']=_0x57a328,H(this,_0x5a3b24(0x21a),new _0x76a724('idle')),H(this,_0x5a3b24(0x1bf),this[_0x5a3b24(0x21a)][_0x5a3b24(0x205)]()),H(this,_0x5a3b24(0x203),!0x1),H(this,_0x5a3b24(0x1e7),null),H(this,_0x5a3b24(0x1d8),null);}['dispose'](){const _0x59f705=_0x118c75;var _0x51f78b;(_0x51f78b=this[_0x59f705(0x1e7)])==null||_0x51f78b[_0x59f705(0x1bb)](),this[_0x59f705(0x21a)][_0x59f705(0x1a0)](_0x59f705(0x219)),this[_0x59f705(0x21a)][_0x59f705(0x206)]();}['getStatus'](){const _0x58d8c2=_0x118c75;return this[_0x58d8c2(0x21d)];}['init'](){const _0x103f9f=_0x118c75;this[_0x103f9f(0x203)]||(this['_init']=!0x0,this[_0x103f9f(0x1fb)]['sessionStatus$']['pipe'](_0x39b47c(this[_0x103f9f(0x1fa)]))[_0x103f9f(0x1f6)](_0x5d2e0c=>{const _0x5081cc=_0x103f9f;switch(_0x5d2e0c){case _0x45501e[_0x5081cc(0x1ef)]:this[_0x5081cc(0x1c0)]();break;case _0x45501e[_0x5081cc(0x1e0)]:this[_0x5081cc(0x218)]();break;default:}}),this[_0x103f9f(0x1fb)][_0x103f9f(0x1a4)][_0x103f9f(0x192)](_0x39b47c(this['dispose$']))['subscribe'](_0x3605dc=>{const _0x5d5062=_0x103f9f;let {eventID:_0x18435e}=_0x3605dc;switch(_0x18435e){case _0x46322a['LIVESHARE_NEW_HOST']:this[_0x5d5062(0x1b4)](_0x3605dc);break;case _0x46322a[_0x5d5062(0x1ea)]:this['_handleOperation'](_0x3605dc);break;case _0x46322a['LIVESHARE_TERMINATE']:this[_0x5d5062(0x216)]();break;case _0x46322a[_0x5d5062(0x20a)]:this[_0x5d5062(0x193)](_0x3605dc);break;default:}}));}[_0x118c75(0x215)](){const _0x4e13ac=_0x118c75;this['_collabSession'][_0x4e13ac(0x1a1)]({'eventID':_0x46322a[_0x4e13ac(0x212)],'data':{'unitID':this[_0x4e13ac(0x209)],'userID':this[_0x4e13ac(0x1fb)][_0x4e13ac(0x1d0)]()}},this[_0x4e13ac(0x209)]);}[_0x118c75(0x190)](){const _0x38c7cc=_0x118c75;this['_status']==='presenting'&&(this[_0x38c7cc(0x21a)][_0x38c7cc(0x1a0)](_0x38c7cc(0x219)),this['_collabSession'][_0x38c7cc(0x1a1)]({'eventID':_0x46322a['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x38c7cc(0x209)]}},this[_0x38c7cc(0x209)]));}[_0x118c75(0x1b5)](){const _0x4a1479=_0x118c75;this[_0x4a1479(0x21d)]===_0x4a1479(0x21c)&&(this[_0x4a1479(0x21a)]['next']('following'),this[_0x4a1479(0x1b8)]());}['stopFollowing'](){const _0x48fe21=_0x118c75;this[_0x48fe21(0x21d)]===_0x48fe21(0x1d3)&&this['_stopFollowing']();}[_0x118c75(0x1b4)](_0x29e96e){const _0x97b7b6=_0x118c75;let {presenter:_0x1076f7}=_0x29e96e[_0x97b7b6(0x197)],_0x3d12f2=this[_0x97b7b6(0x1fb)][_0x97b7b6(0x1d0)]();this[_0x97b7b6(0x1d8)]=_0x1076f7,_0x1076f7===_0x3d12f2?(this[_0x97b7b6(0x1bc)](),this[_0x97b7b6(0x18f)]()):this[_0x97b7b6(0x21d)]!=='not-following'&&(this[_0x97b7b6(0x1eb)](),this[_0x97b7b6(0x1b8)]());}[_0x118c75(0x1b3)](){const _0x45cf97=_0x118c75;let _0x18cf87={'eventID':_0x46322a[_0x45cf97(0x1a9)]};this[_0x45cf97(0x1fb)][_0x45cf97(0x1a1)](_0x18cf87,this['_unitID']);}[_0x118c75(0x216)](){const _0x2d560d=_0x118c75;this['_presenter']=null,this['_status']!==_0x2d560d(0x1ba)&&this[_0x2d560d(0x1ed)]();}[_0x118c75(0x193)](_0x57c8fb){const _0x53788d=_0x118c75;if(this['_status']===_0x53788d(0x1d3)&&this[_0x53788d(0x1d8)]===_0x57c8fb[_0x53788d(0x197)]['memberID']){let _0x23f42e=_0x4891b9(_0x57c8fb[_0x53788d(0x197)])['mutations']['reverse']()[_0x53788d(0x1f4)](_0x4cc3ee=>_0x4cc3ee['id']===_0x1f4399['id']);if(_0x23f42e){let _0x4a7af4=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1a7)],_0x4bb8de=_0x23f42e[_0x53788d(0x1f2)][_0x53788d(0x1f3)]['id'];setTimeout(()=>{const _0xe63a36=_0x53788d;this[_0xe63a36(0x208)][_0xe63a36(0x18c)](_0x17c25c['id'],{'unitId':_0x4a7af4,'subUnitId':_0x4bb8de},{'fromCollab':!0x0});});}}}[_0x118c75(0x18f)](){const _0x2e1a86=_0x118c75;var _0x50fc0d;(_0x50fc0d=this[_0x2e1a86(0x1e7)])==null||_0x50fc0d['dispose'](),this[_0x2e1a86(0x21a)][_0x2e1a86(0x1a0)](_0x2e1a86(0x1ba));let _0x4882f2=new Map(),_0x6844c9=this[_0x2e1a86(0x1e7)]=new _0xdc1a5d();_0x6844c9[_0x2e1a86(0x194)](_0x5d8ba3(()=>{const _0x40bb9e=_0x2e1a86;_0x4882f2['forEach'](({subject:_0xc57b6b,subscription:_0xc477bd})=>{const _0x1556b5=_0x3c00;_0xc477bd[_0x1556b5(0x213)](),_0xc57b6b[_0x1556b5(0x206)]();}),_0x4882f2[_0x40bb9e(0x1db)]();})),_0x6844c9['add'](this[_0x2e1a86(0x208)][_0x2e1a86(0x211)](_0x17250f=>{const _0x1a7ea1=_0x2e1a86;if(_0x17250f[_0x1a7ea1(0x1d9)]!==_0x38266c[_0x1a7ea1(0x1ee)]||!this['_liveShareService'][_0x1a7ea1(0x20d)](_0x17250f['id']))return;let {id:_0x16a6a9}=_0x17250f,_0x173638;if(_0x4882f2['has'](_0x16a6a9))_0x173638=_0x4882f2[_0x1a7ea1(0x1f5)](_0x16a6a9)[_0x1a7ea1(0x1ce)];else{_0x173638=new _0xfcc829();let _0x2302bc=_0x173638['pipe'](_0x4f4c40(this[_0x1a7ea1(0x1c9)]['getConfig'](_0x1a7ea1(0x198))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1a7ea1(0x1f6)](_0x2fdc12=>{const _0x1eb2ba=_0x1a7ea1;this['_collabSession'][_0x1eb2ba(0x1a1)]({'eventID':_0x46322a[_0x1eb2ba(0x1ea)],'data':{'unitID':this[_0x1eb2ba(0x209)],'operations':{[_0x2fdc12['id']]:{'id':_0x2fdc12['id'],'params':JSON[_0x1eb2ba(0x1cb)](_0x2fdc12['params'])}}}},this[_0x1eb2ba(0x209)]);});_0x4882f2[_0x1a7ea1(0x1ac)](_0x16a6a9,{'subject':_0x173638,'subscription':_0x2302bc});}_0x173638[_0x1a7ea1(0x1a0)](_0x17250f);})),this[_0x2e1a86(0x1f1)][_0x2e1a86(0x1c8)](this['_unitID'])[_0x2e1a86(0x1e9)](_0x1680cf=>this[_0x2e1a86(0x1fb)]['send']({'eventID':_0x46322a[_0x2e1a86(0x1ea)],'data':{'unitID':this[_0x2e1a86(0x209)],'operations':{[_0x1680cf['id']]:{'id':_0x1680cf['id'],'params':JSON['stringify'](_0x1680cf[_0x2e1a86(0x1f2)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x5df58f=_0x118c75;var _0x4e9fc2;this[_0x5df58f(0x21a)][_0x5df58f(0x1a0)](_0x5df58f(0x219)),(_0x4e9fc2=this[_0x5df58f(0x1e7)])==null||_0x4e9fc2[_0x5df58f(0x1bb)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x292a57=_0x118c75;var _0x5d3bc7;(_0x5d3bc7=this[_0x292a57(0x1e7)])==null||_0x5d3bc7[_0x292a57(0x1bb)](),this[_0x292a57(0x21a)][_0x292a57(0x1a0)](_0x292a57(0x1d3));}[_0x118c75(0x1ed)](){const _0x4b1877=_0x118c75;var _0x259c08;this[_0x4b1877(0x21a)][_0x4b1877(0x1a0)](_0x4b1877(0x219)),(_0x259c08=this['_commandDisposable'])==null||_0x259c08[_0x4b1877(0x1bb)](),this[_0x4b1877(0x1e7)]=null;}[_0x118c75(0x1bc)](){const _0x90c015=_0x118c75;var _0x3c75c9;this[_0x90c015(0x21a)][_0x90c015(0x1a0)]('not-following'),(_0x3c75c9=this[_0x90c015(0x1e7)])==null||_0x3c75c9[_0x90c015(0x1bb)]();}[_0x118c75(0x1dc)](_0x19392d){const _0x520651=_0x118c75;if([_0x520651(0x1ba),'not-following',_0x520651(0x1ad)][_0x520651(0x199)](this[_0x520651(0x21d)])||!_0x19392d[_0x520651(0x197)][_0x520651(0x201)]||_0x19392d[_0x520651(0x197)]['presenter']===this[_0x520651(0x1fb)][_0x520651(0x1d0)]())return;this[_0x520651(0x21d)]==='idle'&&this[_0x520651(0x1b8)]();let _0x9ab314=_0x19392d[_0x520651(0x197)]['operations'];Object[_0x520651(0x1d4)](_0x9ab314)[_0x520651(0x1e9)](_0x37f9eb=>{const _0x35bc10=_0x520651;this[_0x35bc10(0x208)][_0x35bc10(0x18c)](_0x37f9eb['id'],_0x37f9eb[_0x35bc10(0x1f2)]?JSON[_0x35bc10(0x19a)](_0x37f9eb['params']):null,{'fromCollab':!0x0});});}[_0x118c75(0x1c0)](){const _0x106bd4=_0x118c75;var _0x44acb2;this[_0x106bd4(0x21a)]['next'](_0x106bd4(0x1ad)),(_0x44acb2=this['_commandDisposable'])==null||_0x44acb2[_0x106bd4(0x1bb)]();}[_0x118c75(0x218)](){const _0x3475c5=_0x118c75;this['_status$']['next'](_0x3475c5(0x219)),this[_0x3475c5(0x1b3)]();}};J=G([W(0x2,_0x5c1bab),W(0x3,_0x1ac1b0(U)),W(0x4,_0x80bf63)],J);var se=_0x118c75(0x204),ce=_0x118c75(0x1cf);const Y={};let X=class extends _0x13da97{constructor(_0x357380){const _0x22ff77=_0x118c75;super(),this[_0x22ff77(0x1f1)]=_0x357380,this[_0x22ff77(0x203)]();}[_0x118c75(0x203)](){const _0x5b9b36=_0x118c75;[_0x18599f['id'],_0x28a702['id'],_0x17c25c['id']][_0x5b9b36(0x1e9)](_0x375151=>{const _0x3f4c25=_0x5b9b36;this[_0x3f4c25(0x18b)](this[_0x3f4c25(0x1f1)][_0x3f4c25(0x1b2)](_0x375151));});}};X=G([W(0x0,_0x1ac1b0(U))],X);function Z(){const _0x1008e5=_0x118c75;let _0x199012=_0x1f8911(K),_0x57be61=_0x1f8911(_0x16046f),_0x382d76=_0x4af8a4(()=>_0x57be61['getCurrentTypeOfUnit$'](_0x2d0216['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x4b93b5=_0x4af8a4(_0x5c3a44(()=>_0x382d76?_0x40e277(()=>_0x1cd9bb(_0x199012[_0x1008e5(0x20b)](_0x382d76['getUnitId']()))):_0x790f65(null),[_0x382d76,_0x199012]),null),_0x1a02d4=_0x4af8a4(_0x4b93b5?()=>_0x4b93b5[_0x1008e5(0x1bf)]:null,_0x1008e5(0x219),!0x1,[_0x4b93b5]);return _0x4b93b5?_0x16217f(_0x555807,{'align':_0x1008e5(0x1c2),'disabled':_0x1a02d4===_0x1008e5(0x1ad),'className':_0x1008e5(0x1e2),'overlay':_0x16217f(le,{'status':_0x1a02d4,'coordinator':_0x4b93b5}),'children':_0x16217f(_0x35232c,{'size':_0x1008e5(0x1aa),'variant':_0x1008e5(0x1cc),'disabled':_0x1a02d4==='offline','type':_0x1008e5(0x1a2),'children':_0x16217f(_0x282424,{})})}):null;}function le(_0x3e65ea){const _0x5e0dc5=_0x118c75;let {status:_0x314f8f,coordinator:_0x4c3bf2}=_0x3e65ea;switch(_0x314f8f){case _0x5e0dc5(0x219):return _0x16217f(ue,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1d3):return _0x16217f(de,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x21c):return _0x16217f(fe,{'coordinator':_0x4c3bf2});case _0x5e0dc5(0x1ad):return _0x16217f(me,{});case _0x5e0dc5(0x1ba):return _0x16217f(pe,{'coordinator':_0x4c3bf2});default:return null;}}function ue(_0x58f3a6){const _0x2682bf=_0x118c75;let {coordinator:_0x1a4dcb}=_0x58f3a6;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x2682bf(0x1dd),'children':_0x2682bf(0x1fe)}),_0x16217f(_0x35232c,{'onClick':()=>_0x1a4dcb[_0x2682bf(0x215)](),'children':_0x2682bf(0x195)})]});}function _0x3c00(_0x13de16,_0x309232){_0x13de16=_0x13de16-0x18b;const _0x2f403c=_0x2f40();let _0x3c0072=_0x2f403c[_0x13de16];return _0x3c0072;}function de(_0x246a7a){const _0x5efa58=_0x118c75;let {coordinator:_0x241853}=_0x246a7a;return _0x3e860c(_0x3095de,{'children':[_0x16217f(_0x5efa58(0x1b9),{'className':_0x5efa58(0x1dd),'children':_0x5efa58(0x19c)}),_0x16217f(_0x35232c,{'onClick':()=>_0x241853[_0x5efa58(0x1c5)](),'children':'Stop\x20following'})]});}function fe(_0x350c61){const _0x14d18c=_0x118c75;let {coordinator:_0x28927d}=_0x350c61;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':_0x14d18c(0x1dd),'children':_0x14d18c(0x1e6)}),_0x16217f(_0x35232c,{'variant':_0x14d18c(0x1cc),'onClick':()=>_0x28927d['startFollowing'](),'children':_0x14d18c(0x1b1)})]});}function pe(_0x3bbf4d){const _0x329425=_0x118c75;let {coordinator:_0x2386af}=_0x3bbf4d;return _0x3e860c(_0x3095de,{'children':[_0x16217f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x16217f(_0x35232c,{'variant':_0x329425(0x1ae),'onClick':()=>_0x2386af['stopPresenting'](),'children':'Stop\x20presenting'})]});}function me(){const _0x1ccab9=_0x118c75;return _0x16217f(_0x3095de,{'children':_0x1ccab9(0x1bd)});}let Q=class extends _0x13da97{constructor(_0x5a81f3,_0x1e2566){const _0x559956=_0x118c75;super(),this['_injector']=_0x5a81f3,this[_0x559956(0x1f9)]=_0x1e2566,this['_mountLiveShare']();}[_0x118c75(0x1c7)](){const _0x4bda5a=_0x118c75;this[_0x4bda5a(0x18b)](this[_0x4bda5a(0x1f9)][_0x4bda5a(0x1f7)](_0x114d37[_0x4bda5a(0x21e)],()=>_0x2e41a9(Z,this[_0x4bda5a(0x1de)])));}};Q=G([W(0x0,_0x1ac1b0(_0x55cef5)),W(0x1,_0x16b944)],Q);let $=class extends _0x5bf3c2{constructor(_0x3e777b=Y,_0x36674c,_0x41bd1e){const _0x49f451=_0x118c75;super(),this['_config']=_0x3e777b,this[_0x49f451(0x1de)]=_0x36674c,this[_0x49f451(0x1c9)]=_0x41bd1e;let {..._0x4e3050}=_0x478986({},Y,this[_0x49f451(0x1ec)]);this['_configService'][_0x49f451(0x220)](_0x49f451(0x20f),_0x4e3050);}[_0x118c75(0x196)](){const _0x1ec53f=_0x118c75;_0x1c2a87(this[_0x1ec53f(0x1de)],_0x3b8a2b([[U],[K],[X],[Q]],this[_0x1ec53f(0x1ec)]['override'])),_0x3ea51e(this[_0x1ec53f(0x1de)],[[X]]);}[_0x118c75(0x202)](){const _0x2fc629=_0x118c75;_0x3ea51e(this[_0x2fc629(0x1de)],[[Q]]);}};H($,_0x118c75(0x1d9),_0x2d0216[_0x118c75(0x1ff)]),H($,_0x118c75(0x1a8),_0x118c75(0x1c1)),H($,_0x118c75(0x1ab),se),H($,_0x118c75(0x1c6),ce),$=G([_0x2604e4(_0x79063d,_0xede79f),W(0x1,_0x1ac1b0(_0x55cef5)),W(0x2,_0x5c1bab)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x18cb(_0x39a626,_0x3b368b){_0x39a626=_0x39a626-0x172;const _0x38519f=_0x3851();let _0x18cbbe=_0x38519f[_0x39a626];return _0x18cbbe;}function _0x3851(){const _0x3d027a=['startPresenting','UniverInstanceType','LiveShareController','_initialize','stopFollowing','No\x20active\x20workbook\x20found.','591140UNYjae','_injector','object','defineProperty','@univerjs/core','5dpvwxY','45346TQyziP','tryStartPresenting','@univerjs-pro/live-share','extend','UniverCoreFacade','amd','getCurrentUnitOfType','getUnitId','_liveShareController','IUniverInstanceService','get','3227205wLDEbp','276OdJEFp','toPrimitive','LiveShareStatusEnum','prototype','FUniver','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/core/facade','UniverProLiveShare','getLiveShareCoordinatorSync','symbol','stopPresenting','call','141378pVcfrR','function','8488UbhEBd','startFollowing','IDLE','14851170Beeyuh','1006353DxZHvN','UniverCore','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LiveShareStatus','UNIVER_SHEET','FEnum','string','getStatus','7164mzcszO'];_0x3851=function(){return _0x3d027a;};return _0x3851();}(function(_0x182b76,_0x45a564){const _0x625df3=_0x18cb,_0x462d62=_0x182b76();while(!![]){try{const _0x15e77b=parseInt(_0x625df3(0x189))/0x1*(-parseInt(_0x625df3(0x1a2))/0x2)+-parseInt(_0x625df3(0x174))/0x3+-parseInt(_0x625df3(0x184))/0x4+-parseInt(_0x625df3(0x195))/0x5+-parseInt(_0x625df3(0x196))/0x6*(parseInt(_0x625df3(0x18a))/0x7)+-parseInt(_0x625df3(0x1a4))/0x8*(-parseInt(_0x625df3(0x17d))/0x9)+parseInt(_0x625df3(0x173))/0xa;if(_0x15e77b===_0x45a564)break;else _0x462d62['push'](_0x462d62['shift']());}catch(_0x19cf8c){_0x462d62['push'](_0x462d62['shift']());}}}(_0x3851,0x862bb),function(_0x51e1d3,_0x3f2693){const _0x405a71=_0x18cb;typeof exports==_0x405a71(0x186)&&typeof module<'u'?_0x3f2693(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x405a71(0x1a3)&&define[_0x405a71(0x18f)]?define([_0x405a71(0x18c),_0x405a71(0x188),_0x405a71(0x19c)],_0x3f2693):(_0x51e1d3=typeof globalThis<'u'?globalThis:_0x51e1d3||self,_0x3f2693(_0x51e1d3[_0x405a71(0x19d)],_0x51e1d3[_0x405a71(0x175)],_0x51e1d3[_0x405a71(0x18e)]));}(this,function(_0x409f18,_0xfb4eb0,_0x2ffe2e){const _0xee3464=_0x18cb;function _0x3ae84c(_0x39fa7c){'@babel/helpers - typeof';const _0x3c2520=_0x18cb;return _0x3ae84c=typeof Symbol==_0x3c2520(0x1a3)&&typeof Symbol['iterator']==_0x3c2520(0x19f)?function(_0x49c445){return typeof _0x49c445;}:function(_0x8a13cd){const _0x4ed49d=_0x3c2520;return _0x8a13cd&&typeof Symbol==_0x4ed49d(0x1a3)&&_0x8a13cd['constructor']===Symbol&&_0x8a13cd!==Symbol[_0x4ed49d(0x199)]?_0x4ed49d(0x19f):typeof _0x8a13cd;},_0x3ae84c(_0x39fa7c);}function _0x1c5f06(_0x51bcab,_0x366a9c){const _0x54b9ce=_0x18cb;if(_0x3ae84c(_0x51bcab)!=_0x54b9ce(0x186)||!_0x51bcab)return _0x51bcab;var _0x25ab6b=_0x51bcab[Symbol[_0x54b9ce(0x197)]];if(_0x25ab6b!==void 0x0){var _0x2fc2a6=_0x25ab6b[_0x54b9ce(0x1a1)](_0x51bcab,_0x366a9c||_0x54b9ce(0x176));if(_0x3ae84c(_0x2fc2a6)!='object')return _0x2fc2a6;throw TypeError(_0x54b9ce(0x177));}return(_0x366a9c===_0x54b9ce(0x17b)?String:Number)(_0x51bcab);}function _0x2cad16(_0x886fca){const _0x31fdc1=_0x18cb;var _0xce3a09=_0x1c5f06(_0x886fca,_0x31fdc1(0x17b));return _0x3ae84c(_0xce3a09)==_0x31fdc1(0x19f)?_0xce3a09:_0xce3a09+'';}function _0x5034b8(_0x2e30e6,_0x5872dc,_0x491a20){const _0x27b109=_0x18cb;return(_0x5872dc=_0x2cad16(_0x5872dc))in _0x2e30e6?Object[_0x27b109(0x187)](_0x2e30e6,_0x5872dc,{'value':_0x491a20,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e30e6[_0x5872dc]=_0x491a20,_0x2e30e6;}var _0x2e01bc=class extends _0x2ffe2e[_0xee3464(0x19a)]{constructor(..._0x2a979a){const _0x4fe316=_0xee3464;super(..._0x2a979a),_0x5034b8(this,_0x4fe316(0x192),void 0x0);}[_0xee3464(0x181)](_0xa7f54e){const _0x15d55d=_0xee3464;this[_0x15d55d(0x192)]=_0xa7f54e[_0x15d55d(0x194)](_0x409f18[_0x15d55d(0x180)]);}['getLiveShareStatus'](){const _0x11a49b=_0xee3464;let _0x2e5810=this[_0x11a49b(0x185)][_0x11a49b(0x194)](_0xfb4eb0[_0x11a49b(0x193)])[_0x11a49b(0x190)](_0xfb4eb0['UniverInstanceType']['UNIVER_SHEET']);if(!_0x2e5810)throw Error(_0x11a49b(0x183));let _0x302325=_0x2e5810[_0x11a49b(0x191)](),_0x287e50=this['_liveShareController'][_0x11a49b(0x19e)](_0x302325);return(_0x287e50==null?void 0x0:_0x287e50[_0x11a49b(0x17c)]())??_0x409f18[_0x11a49b(0x178)][_0x11a49b(0x172)];}[_0xee3464(0x1a5)](){const _0x538e59=_0xee3464;let _0x64c9c3=this['_injector'][_0x538e59(0x194)](_0xfb4eb0['IUniverInstanceService'])[_0x538e59(0x190)](_0xfb4eb0[_0x538e59(0x17f)]['UNIVER_SHEET']);if(!_0x64c9c3)throw Error(_0x538e59(0x183));let _0x1c7636=_0x64c9c3[_0x538e59(0x191)](),_0x49317f=this[_0x538e59(0x192)]['getLiveShareCoordinatorSync'](_0x1c7636);if(!_0x49317f)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x49317f[_0x538e59(0x1a5)]();}[_0xee3464(0x182)](){const _0x45272b=_0xee3464;let _0x210df7=this['_injector']['get'](_0xfb4eb0[_0x45272b(0x193)])[_0x45272b(0x190)](_0xfb4eb0[_0x45272b(0x17f)][_0x45272b(0x179)]);if(!_0x210df7)throw Error('No\x20active\x20workbook\x20found.');let _0x50aaee=_0x210df7[_0x45272b(0x191)](),_0x207821=this[_0x45272b(0x192)][_0x45272b(0x19e)](_0x50aaee);if(!_0x207821)throw Error(_0x45272b(0x19b));_0x207821[_0x45272b(0x182)]();}[_0xee3464(0x17e)](){const _0x10bea3=_0xee3464;let _0x55856b=this[_0x10bea3(0x185)]['get'](_0xfb4eb0[_0x10bea3(0x193)])['getCurrentUnitOfType'](_0xfb4eb0[_0x10bea3(0x17f)][_0x10bea3(0x179)]);if(!_0x55856b)throw Error(_0x10bea3(0x183));let _0x2f49e1=_0x55856b[_0x10bea3(0x191)](),_0x42fcd7=this[_0x10bea3(0x192)]['getLiveShareCoordinatorSync'](_0x2f49e1);if(!_0x42fcd7)throw Error(_0x10bea3(0x19b));_0x42fcd7[_0x10bea3(0x18b)]();}[_0xee3464(0x1a0)](){const _0x5b32f6=_0xee3464;let _0x421f8d=this[_0x5b32f6(0x185)]['get'](_0xfb4eb0[_0x5b32f6(0x193)])[_0x5b32f6(0x190)](_0xfb4eb0[_0x5b32f6(0x17f)][_0x5b32f6(0x179)]);if(!_0x421f8d)throw Error(_0x5b32f6(0x183));let _0x3847d2=_0x421f8d[_0x5b32f6(0x191)](),_0x3a59ee=this[_0x5b32f6(0x192)][_0x5b32f6(0x19e)](_0x3847d2);if(!_0x3a59ee)throw Error(_0x5b32f6(0x19b));_0x3a59ee[_0x5b32f6(0x1a0)]();}};_0x2ffe2e['FUniver'][_0xee3464(0x18d)](_0x2e01bc);var _0x3d5bd1=class extends _0x2ffe2e['FEnum']{get[_0xee3464(0x198)](){const _0x2f4308=_0xee3464;return _0x409f18[_0x2f4308(0x178)];}};_0x2ffe2e[_0xee3464(0x17a)][_0xee3464(0x18d)](_0x3d5bd1);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1f3e6b,_0x1a09b8){const _0x39f99d=_0xaf52,_0x267d8d=_0x1f3e6b();while(!![]){try{const _0x58ea9c=parseInt(_0x39f99d(0x1e4))/0x1*(-parseInt(_0x39f99d(0x212))/0x2)+parseInt(_0x39f99d(0x217))/0x3*(parseInt(_0x39f99d(0x211))/0x4)+parseInt(_0x39f99d(0x228))/0x5+parseInt(_0x39f99d(0x240))/0x6*(-parseInt(_0x39f99d(0x1f3))/0x7)+-parseInt(_0x39f99d(0x1c4))/0x8*(-parseInt(_0x39f99d(0x1bc))/0x9)+parseInt(_0x39f99d(0x223))/0xa*(-parseInt(_0x39f99d(0x242))/0xb)+-parseInt(_0x39f99d(0x1c1))/0xc*(-parseInt(_0x39f99d(0x1b2))/0xd);if(_0x58ea9c===_0x1a09b8)break;else _0x267d8d['push'](_0x267d8d['shift']());}catch(_0x384f75){_0x267d8d['push'](_0x267d8d['shift']());}}}(_0x248f,0x1f2af),function(_0x146d29,_0x2d2d5f){const _0x9ada76=_0xaf52;typeof exports==_0x9ada76(0x1d5)&&typeof module<'u'?_0x2d2d5f(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license'),require('@univerjs/ui'),require('@univerjs/sheets-ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define=='function'&&define[_0x9ada76(0x1a1)]?define([_0x9ada76(0x23b),'@univerjs-pro/collaboration',_0x9ada76(0x1ce),_0x9ada76(0x1e0),'@univerjs/sheets',_0x9ada76(0x1da),'rxjs/operators',_0x9ada76(0x1b4),'@univerjs/ui',_0x9ada76(0x177),'@univerjs/design',_0x9ada76(0x241),_0x9ada76(0x161)],_0x2d2d5f):(_0x146d29=typeof globalThis<'u'?globalThis:_0x146d29||self,_0x2d2d5f(_0x146d29[_0x9ada76(0x171)]={},_0x146d29['UniverProCollaboration'],_0x146d29[_0x9ada76(0x1e7)],_0x146d29[_0x9ada76(0x172)],_0x146d29[_0x9ada76(0x1a3)],_0x146d29['rxjs'],_0x146d29[_0x9ada76(0x1da)][_0x9ada76(0x1b8)],_0x146d29[_0x9ada76(0x245)],_0x146d29[_0x9ada76(0x23e)],_0x146d29['UniverSheetsUi'],_0x146d29[_0x9ada76(0x1a0)],_0x146d29['React'],_0x146d29['React']));}(this,function(_0x30429c,_0x15aea7,_0x21b6e0,_0x4d2c8e,_0xbe9c79,_0x41f802,_0x5c83f7,_0x1cac21,_0x4675f4,_0x6b162b,_0x7a06bf,_0x4ab200,_0x1e4412){const _0x43c41f=_0xaf52;Object[_0x43c41f(0x1f7)](_0x30429c,Symbol[_0x43c41f(0x181)],{'value':_0x43c41f(0x196)});function _0x71fae1(_0x220d8a){'@babel/helpers - typeof';return _0x71fae1=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x191a47){return typeof _0x191a47;}:function(_0x1e7c14){const _0x90f25a=_0xaf52;return _0x1e7c14&&typeof Symbol=='function'&&_0x1e7c14[_0x90f25a(0x219)]===Symbol&&_0x1e7c14!==Symbol[_0x90f25a(0x238)]?_0x90f25a(0x1af):typeof _0x1e7c14;},_0x71fae1(_0x220d8a);}function _0x353460(_0xdbb997,_0x2d5de0){const _0x26ea84=_0x43c41f;if(_0x71fae1(_0xdbb997)!=_0x26ea84(0x1d5)||!_0xdbb997)return _0xdbb997;var _0x3d1252=_0xdbb997[Symbol[_0x26ea84(0x235)]];if(_0x3d1252!==void 0x0){var _0x49c018=_0x3d1252[_0x26ea84(0x194)](_0xdbb997,_0x2d5de0||_0x26ea84(0x1b9));if(_0x71fae1(_0x49c018)!=_0x26ea84(0x1d5))return _0x49c018;throw TypeError(_0x26ea84(0x1c5));}return(_0x2d5de0===_0x26ea84(0x23a)?String:Number)(_0xdbb997);}function _0x23cd5c(_0x248c87){const _0x53af09=_0x43c41f;var _0x11f3df=_0x353460(_0x248c87,_0x53af09(0x23a));return _0x71fae1(_0x11f3df)==_0x53af09(0x1af)?_0x11f3df:_0x11f3df+'';}function _0x3a32dd(_0x254a48,_0x808325,_0xd8cd23){const _0x519dcd=_0x43c41f;return(_0x808325=_0x23cd5c(_0x808325))in _0x254a48?Object[_0x519dcd(0x1f7)](_0x254a48,_0x808325,{'value':_0xd8cd23,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x254a48[_0x808325]=_0xd8cd23,_0x254a48;}var _0x3bc393=class extends _0x4d2c8e['Disposable']{constructor(..._0x4ea85b){super(..._0x4ea85b),_0x3a32dd(this,'_sharedOperations',new Set()),_0x3a32dd(this,'_reporters',new Set());}[_0x43c41f(0x187)](_0x2a305f){const _0x485b13=_0x43c41f;return this[_0x485b13(0x1a4)][_0x485b13(0x247)](_0x2a305f),(0x0,_0x4d2c8e['toDisposable'])(()=>this['_sharedOperations'][_0x485b13(0x1bb)](_0x2a305f));}[_0x43c41f(0x1aa)](_0x2d0339){const _0x325f59=_0x43c41f;return this['_reporters']['add'](_0x2d0339),(0x0,_0x4d2c8e[_0x325f59(0x1ae)])(()=>this[_0x325f59(0x197)][_0x325f59(0x1bb)](_0x2d0339));}[_0x43c41f(0x214)](_0x1f1570){const _0x296b22=_0x43c41f;return this[_0x296b22(0x1a4)][_0x296b22(0x16d)](_0x1f1570);}[_0x43c41f(0x1e3)](_0x221b30){const _0x286b8b=_0x43c41f;return Array[_0x286b8b(0x1cf)](this['_reporters'])[_0x286b8b(0x1ea)](_0x1281cf=>_0x1281cf(_0x221b30));}};function _0x4944be(_0x365e23,_0x1d6d7d){return function(_0x3a9f80,_0x7a7a15){_0x1d6d7d(_0x3a9f80,_0x7a7a15,_0x365e23);};}function _0x4ff6e1(_0x4186d9,_0x27367a,_0x2e772f,_0x11d586){const _0x33580a=_0x43c41f;var _0x216f35=arguments[_0x33580a(0x24a)],_0x20dc9b=_0x216f35<0x3?_0x27367a:_0x11d586===null?_0x11d586=Object['getOwnPropertyDescriptor'](_0x27367a,_0x2e772f):_0x11d586,_0x38b77d;if(typeof Reflect=='object'&&typeof Reflect[_0x33580a(0x17e)]==_0x33580a(0x1d2))_0x20dc9b=Reflect[_0x33580a(0x17e)](_0x4186d9,_0x27367a,_0x2e772f,_0x11d586);else{for(var _0x4985cb=_0x4186d9[_0x33580a(0x24a)]-0x1;_0x4985cb>=0x0;_0x4985cb--)(_0x38b77d=_0x4186d9[_0x4985cb])&&(_0x20dc9b=(_0x216f35<0x3?_0x38b77d(_0x20dc9b):_0x216f35>0x3?_0x38b77d(_0x27367a,_0x2e772f,_0x20dc9b):_0x38b77d(_0x27367a,_0x2e772f))||_0x20dc9b);}return _0x216f35>0x3&&_0x20dc9b&&Object[_0x33580a(0x1f7)](_0x27367a,_0x2e772f,_0x20dc9b),_0x20dc9b;}let _0x5a755d=class extends _0x4d2c8e[_0x43c41f(0x1e6)]{constructor(_0x2f86d1,_0x206331,_0x3781df){const _0x4ddd39=_0x43c41f;super(),this[_0x4ddd39(0x174)]=_0x2f86d1,this[_0x4ddd39(0x184)]=_0x206331,this[_0x4ddd39(0x19b)]=_0x3781df,_0x3a32dd(this,_0x4ddd39(0x191),new Map()),this[_0x4ddd39(0x1fc)]();}async[_0x43c41f(0x17c)](_0x54decf){const _0x3949df=_0x43c41f;return this[_0x3949df(0x191)][_0x3949df(0x16d)](_0x54decf)||await this[_0x3949df(0x21e)](_0x54decf),this['_entities'][_0x3949df(0x1d4)](_0x54decf);}[_0x43c41f(0x192)](_0x40d09d){const _0xa48d09=_0x43c41f;var _0x4c4c42;return(_0x4c4c42=this['_entities'][_0xa48d09(0x1d4)](_0x40d09d))==null?null:_0x4c4c42;}[_0x43c41f(0x1fc)](){const _0x2b26c0=_0x43c41f;this[_0x2b26c0(0x174)]['getTypeOfUnitAdded$'](_0x4d2c8e[_0x2b26c0(0x201)][_0x2b26c0(0x246)])['pipe']((0x0,_0x5c83f7[_0x2b26c0(0x1a9)])(this['dispose$']))[_0x2b26c0(0x16b)](async _0x29c325=>{const _0x3bb763=_0x2b26c0;let _0x247cc8=_0x29c325[_0x3bb763(0x19d)][_0x3bb763(0x20c)]();this[_0x3bb763(0x191)]['has'](_0x247cc8)||this['_startLiveShareCoordinator'](_0x247cc8);}),this[_0x2b26c0(0x174)][_0x2b26c0(0x236)](_0x4d2c8e['UniverInstanceType'][_0x2b26c0(0x246)])['pipe']((0x0,_0x5c83f7[_0x2b26c0(0x1a9)])(this[_0x2b26c0(0x1eb)]))[_0x2b26c0(0x16b)](_0x264d51=>{const _0x1130b8=_0x2b26c0;let _0x3c17e2=_0x264d51[_0x1130b8(0x20c)](),_0x530db1=this[_0x1130b8(0x191)][_0x1130b8(0x1d4)](_0x3c17e2);_0x530db1==null||_0x530db1[_0x1130b8(0x1c2)]();});}async[_0x43c41f(0x21e)](_0xa9477a){const _0x2ee3ea=_0x43c41f;let _0x1f3d36=await this[_0x2ee3ea(0x19b)]['requireSession'](_0xa9477a),_0x51ef73=this['_injector']['createInstance'](_0x4f1dcb,_0xa9477a,_0x1f3d36);return _0x51ef73['init'](),this[_0x2ee3ea(0x191)][_0x2ee3ea(0x1de)](_0xa9477a,_0x51ef73),_0x51ef73;}};_0x5a755d=_0x4ff6e1([_0x4944be(0x0,_0x4d2c8e['IUniverInstanceService']),_0x4944be(0x1,(0x0,_0x4d2c8e[_0x43c41f(0x1cd)])(_0x4d2c8e[_0x43c41f(0x20b)])),_0x4944be(0x2,(0x0,_0x4d2c8e[_0x43c41f(0x1cd)])(_0x21b6e0[_0x43c41f(0x1fe)]))],_0x5a755d);let _0x408685=function(_0x5c17ad){const _0x32b6f6=_0x43c41f;return _0x5c17ad['OFFLINE']='offline',_0x5c17ad[_0x32b6f6(0x22c)]=_0x32b6f6(0x232),_0x5c17ad[_0x32b6f6(0x1fb)]=_0x32b6f6(0x1c6),_0x5c17ad[_0x32b6f6(0x166)]=_0x32b6f6(0x1e5),_0x5c17ad[_0x32b6f6(0x1ad)]='presenting',_0x5c17ad;}({}),_0x4f1dcb=class extends _0x4d2c8e[_0x43c41f(0x1e6)]{get['_status'](){const _0x5c1589=_0x43c41f;return this[_0x5c1589(0x204)][_0x5c1589(0x16e)]();}constructor(_0xe057d4,_0x1438e8,_0x1d99c5,_0x3a857d,_0x3035e8){const _0x51d7cf=_0x43c41f;super(),this['_unitID']=_0xe057d4,this[_0x51d7cf(0x176)]=_0x1438e8,this['_configService']=_0x1d99c5,this[_0x51d7cf(0x22a)]=_0x3a857d,this[_0x51d7cf(0x1e8)]=_0x3035e8,_0x3a32dd(this,_0x51d7cf(0x204),new _0x41f802[(_0x51d7cf(0x200))](_0x51d7cf(0x232))),_0x3a32dd(this,_0x51d7cf(0x18f),this[_0x51d7cf(0x204)][_0x51d7cf(0x234)]()),_0x3a32dd(this,_0x51d7cf(0x1fc),!0x1),_0x3a32dd(this,_0x51d7cf(0x243),null),_0x3a32dd(this,'_presenter',null);}[_0x43c41f(0x1c2)](){const _0x4af72e=_0x43c41f;var _0x475a1c;(_0x475a1c=this['_commandDisposable'])==null||_0x475a1c[_0x4af72e(0x1c2)](),this[_0x4af72e(0x204)][_0x4af72e(0x18c)](_0x4af72e(0x232)),this[_0x4af72e(0x204)]['complete']();}['getStatus'](){return this['_status'];}[_0x43c41f(0x1c9)](){const _0x5a79d9=_0x43c41f;this[_0x5a79d9(0x1fc)]||(this[_0x5a79d9(0x1fc)]=!0x0,this[_0x5a79d9(0x176)][_0x5a79d9(0x18e)][_0x5a79d9(0x1a6)]((0x0,_0x5c83f7[_0x5a79d9(0x1a9)])(this[_0x5a79d9(0x1eb)]))[_0x5a79d9(0x16b)](_0x3178c8=>{const _0x773cec=_0x5a79d9;switch(_0x3178c8){case _0x21b6e0['SessionStatus'][_0x773cec(0x1d9)]:this['_handleOffline']();break;case _0x21b6e0[_0x773cec(0x20f)]['ONLINE']:this[_0x773cec(0x1b3)]();break;default:}}),this[_0x5a79d9(0x176)][_0x5a79d9(0x16f)]['pipe']((0x0,_0x5c83f7[_0x5a79d9(0x1a9)])(this[_0x5a79d9(0x1eb)]))['subscribe'](_0x9e2a93=>{const _0x1408ff=_0x5a79d9;let {eventID:_0x1d9ac0}=_0x9e2a93;switch(_0x1d9ac0){case _0x15aea7[_0x1408ff(0x15f)][_0x1408ff(0x24c)]:this[_0x1408ff(0x229)](_0x9e2a93);break;case _0x15aea7[_0x1408ff(0x15f)][_0x1408ff(0x1a8)]:this[_0x1408ff(0x207)](_0x9e2a93);break;case _0x15aea7['CollaborationEvent'][_0x1408ff(0x221)]:this['_handleTerminate']();break;case _0x15aea7[_0x1408ff(0x15f)][_0x1408ff(0x17d)]:this[_0x1408ff(0x202)](_0x9e2a93);break;default:}}));}['tryStartPresenting'](){const _0x534455=_0x43c41f;this['_collabSession'][_0x534455(0x1f2)]({'eventID':_0x15aea7[_0x534455(0x15f)][_0x534455(0x1a7)],'data':{'unitID':this['_unitID'],'userID':this[_0x534455(0x176)][_0x534455(0x165)]()}},this[_0x534455(0x23d)]);}[_0x43c41f(0x216)](){const _0x196209=_0x43c41f;this[_0x196209(0x1df)]==='presenting'&&(this[_0x196209(0x204)]['next']('idle'),this[_0x196209(0x176)]['send']({'eventID':_0x15aea7['CollaborationEvent'][_0x196209(0x221)],'data':{'unitID':this[_0x196209(0x23d)]}},this[_0x196209(0x23d)]));}[_0x43c41f(0x20d)](){const _0x2fafd2=_0x43c41f;this[_0x2fafd2(0x1df)]==='not-following'&&(this['_status$'][_0x2fafd2(0x18c)]('following'),this[_0x2fafd2(0x220)]());}['stopFollowing'](){const _0x41d59a=_0x43c41f;this[_0x41d59a(0x1df)]===_0x41d59a(0x1c6)&&this[_0x41d59a(0x225)]();}[_0x43c41f(0x229)](_0x2d3bd){const _0x400623=_0x43c41f;let {presenter:_0xdd4716}=_0x2d3bd[_0x400623(0x16c)],_0x1ed11f=this[_0x400623(0x176)][_0x400623(0x165)]();this[_0x400623(0x168)]=_0xdd4716,_0xdd4716===_0x1ed11f?(this['_stopFollowing'](),this[_0x400623(0x1b7)]()):this[_0x400623(0x1df)]!=='not-following'&&(this[_0x400623(0x18d)](),this[_0x400623(0x220)]());}[_0x43c41f(0x1cb)](){const _0x420224=_0x43c41f;let _0x1bb0a9={'eventID':_0x15aea7['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x420224(0x176)][_0x420224(0x1f2)](_0x1bb0a9,this[_0x420224(0x23d)]);}[_0x43c41f(0x1d8)](){const _0x45f439=_0x43c41f;this[_0x45f439(0x168)]=null,this[_0x45f439(0x1df)]!=='presenting'&&this[_0x45f439(0x222)]();}[_0x43c41f(0x202)](_0x440bae){const _0x2e7a3e=_0x43c41f;if(this[_0x2e7a3e(0x1df)]===_0x2e7a3e(0x1c6)&&this['_presenter']===_0x440bae[_0x2e7a3e(0x16c)][_0x2e7a3e(0x1e1)]){let _0x4047ff=(0x0,_0x15aea7[_0x2e7a3e(0x186)])(_0x440bae[_0x2e7a3e(0x16c)])[_0x2e7a3e(0x18a)]['reverse']()[_0x2e7a3e(0x180)](_0x3af581=>_0x3af581['id']===_0xbe9c79[_0x2e7a3e(0x1fa)]['id']);if(_0x4047ff){let _0x3589fc=_0x4047ff['params']['unitId'],_0x1b3f7e=_0x4047ff['params'][_0x2e7a3e(0x1f1)]['id'];setTimeout(()=>{const _0x1b57e1=_0x2e7a3e;this[_0x1b57e1(0x1e8)][_0x1b57e1(0x1ab)](_0xbe9c79[_0x1b57e1(0x1ef)]['id'],{'unitId':_0x3589fc,'subUnitId':_0x1b3f7e},{'fromCollab':!0x0});});}}}[_0x43c41f(0x1b7)](){const _0x415bf6=_0x43c41f;var _0x36ef7f;(_0x36ef7f=this[_0x415bf6(0x243)])==null||_0x36ef7f['dispose'](),this[_0x415bf6(0x204)][_0x415bf6(0x18c)](_0x415bf6(0x188));let _0x44b53e=new Map(),_0xd38661=this[_0x415bf6(0x243)]=new _0x4d2c8e[(_0x415bf6(0x1d1))]();_0xd38661[_0x415bf6(0x247)]((0x0,_0x4d2c8e[_0x415bf6(0x1ae)])(()=>{const _0x385653=_0x415bf6;_0x44b53e[_0x385653(0x209)](({subject:_0x455507,subscription:_0x3e7569})=>{const _0x2522ae=_0x385653;_0x3e7569[_0x2522ae(0x195)](),_0x455507[_0x2522ae(0x239)]();}),_0x44b53e[_0x385653(0x1be)]();})),_0xd38661[_0x415bf6(0x247)](this[_0x415bf6(0x1e8)][_0x415bf6(0x21b)](_0x2a2a12=>{const _0x5123bf=_0x415bf6;if(_0x2a2a12[_0x5123bf(0x203)]!==_0x4d2c8e[_0x5123bf(0x1e2)][_0x5123bf(0x233)]||!this[_0x5123bf(0x22a)][_0x5123bf(0x214)](_0x2a2a12['id']))return;let {id:_0x582ee7}=_0x2a2a12,_0x1db577;if(_0x44b53e[_0x5123bf(0x16d)](_0x582ee7))_0x1db577=_0x44b53e['get'](_0x582ee7)['subject'];else{var _0x53c7d9;_0x1db577=new _0x41f802[(_0x5123bf(0x1bd))]();let _0x5622f0=_0x1db577[_0x5123bf(0x1a6)]((0x0,_0x5c83f7[_0x5123bf(0x17b)])((_0x53c7d9=this[_0x5123bf(0x1db)][_0x5123bf(0x1b5)](_0x5123bf(0x252)))==null?0xc8:_0x53c7d9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5123bf(0x16b)](_0x399e0c=>{const _0x2999ea=_0x5123bf;this[_0x2999ea(0x176)][_0x2999ea(0x1f2)]({'eventID':_0x15aea7[_0x2999ea(0x15f)][_0x2999ea(0x1a8)],'data':{'unitID':this['_unitID'],'operations':{[_0x399e0c['id']]:{'id':_0x399e0c['id'],'params':JSON[_0x2999ea(0x19e)](_0x399e0c[_0x2999ea(0x210)])}}}},this[_0x2999ea(0x23d)]);});_0x44b53e[_0x5123bf(0x1de)](_0x582ee7,{'subject':_0x1db577,'subscription':_0x5622f0});}_0x1db577['next'](_0x2a2a12);})),this[_0x415bf6(0x22a)][_0x415bf6(0x1e3)](this['_unitID'])[_0x415bf6(0x209)](_0x4e5b54=>this['_collabSession'][_0x415bf6(0x1f2)]({'eventID':_0x15aea7[_0x415bf6(0x15f)][_0x415bf6(0x1a8)],'data':{'unitID':this[_0x415bf6(0x23d)],'operations':{[_0x4e5b54['id']]:{'id':_0x4e5b54['id'],'params':JSON[_0x415bf6(0x19e)](_0x4e5b54[_0x415bf6(0x210)])}}}},this[_0x415bf6(0x23d)]));}['_stopPresenting'](){const _0x5612b8=_0x43c41f;var _0x10ee9e;this[_0x5612b8(0x204)]['next']('idle'),(_0x10ee9e=this[_0x5612b8(0x243)])==null||_0x10ee9e['dispose'](),this[_0x5612b8(0x243)]=null;}[_0x43c41f(0x220)](){const _0x14913d=_0x43c41f;var _0x511a97;(_0x511a97=this[_0x14913d(0x243)])==null||_0x511a97['dispose'](),this[_0x14913d(0x204)][_0x14913d(0x18c)](_0x14913d(0x1c6));}['_beIdle'](){const _0x5a6b8c=_0x43c41f;var _0x1e5fec;this[_0x5a6b8c(0x204)]['next'](_0x5a6b8c(0x232)),(_0x1e5fec=this['_commandDisposable'])==null||_0x1e5fec[_0x5a6b8c(0x1c2)](),this[_0x5a6b8c(0x243)]=null;}[_0x43c41f(0x225)](){const _0x4fd174=_0x43c41f;var _0x360e7e;this['_status$'][_0x4fd174(0x18c)](_0x4fd174(0x1e5)),(_0x360e7e=this[_0x4fd174(0x243)])==null||_0x360e7e[_0x4fd174(0x1c2)]();}['_handleOperation'](_0x22ac2a){const _0x483734=_0x43c41f;if([_0x483734(0x188),_0x483734(0x1e5),'offline'][_0x483734(0x21a)](this[_0x483734(0x1df)])||!_0x22ac2a[_0x483734(0x16c)][_0x483734(0x251)]||_0x22ac2a['data']['presenter']===this[_0x483734(0x176)]['getMemberID']())return;this[_0x483734(0x1df)]==='idle'&&this[_0x483734(0x220)]();let _0x4467d8=_0x22ac2a[_0x483734(0x16c)][_0x483734(0x163)];Object[_0x483734(0x254)](_0x4467d8)[_0x483734(0x209)](_0x5b9180=>{const _0x1e2004=_0x483734;this['_commandService'][_0x1e2004(0x1ab)](_0x5b9180['id'],_0x5b9180[_0x1e2004(0x210)]?JSON['parse'](_0x5b9180['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x172f54=_0x43c41f;var _0x5cc7a6;this[_0x172f54(0x204)][_0x172f54(0x18c)](_0x172f54(0x21d)),(_0x5cc7a6=this[_0x172f54(0x243)])==null||_0x5cc7a6[_0x172f54(0x1c2)]();}['_handleOnline'](){const _0x22cd27=_0x43c41f;this[_0x22cd27(0x204)]['next']('idle'),this[_0x22cd27(0x1cb)]();}};_0x4f1dcb=_0x4ff6e1([_0x4944be(0x2,_0x4d2c8e[_0x43c41f(0x1ed)]),_0x4944be(0x3,(0x0,_0x4d2c8e[_0x43c41f(0x1cd)])(_0x3bc393)),_0x4944be(0x4,_0x4d2c8e[_0x43c41f(0x16a)])],_0x4f1dcb);var _0x1af3ac=_0x43c41f(0x18b),_0x6f6ae=_0x43c41f(0x230);let _0x23ab06={},_0x4d1009=class extends _0x4d2c8e['Disposable']{constructor(_0x2585fe){const _0xbde2bb=_0x43c41f;super(),this[_0xbde2bb(0x22a)]=_0x2585fe,this[_0xbde2bb(0x1fc)]();}[_0x43c41f(0x1fc)](){const _0x59416b=_0x43c41f;[_0x6b162b[_0x59416b(0x1a5)]['id'],_0x6b162b[_0x59416b(0x1ec)]['id'],_0xbe9c79[_0x59416b(0x1ef)]['id']][_0x59416b(0x209)](_0x115500=>{const _0x236714=_0x59416b;this[_0x236714(0x1c3)](this[_0x236714(0x22a)][_0x236714(0x187)](_0x115500));});}};_0x4d1009=_0x4ff6e1([_0x4944be(0x0,(0x0,_0x4d2c8e[_0x43c41f(0x1cd)])(_0x3bc393))],_0x4d1009);function _0x1e923a({ref:_0x1b0a57,..._0x57d1fe}){const _0x381207=_0x43c41f;let {icon:_0x5d62dc,id:_0x1944b6,className:_0x277b94,extend:_0x47c0b8,..._0x40cd1e}=_0x57d1fe,_0x29ecdc=(_0x381207(0x190)+_0x1944b6+'\x20'+(_0x277b94||''))['trim'](),_0x1e5224=(0x0,_0x4ab200[_0x381207(0x170)])('_'+_0x36a86b());return _0x368d0b(_0x5d62dc,''+_0x1944b6,{'defIds':_0x5d62dc[_0x381207(0x19c)],'idSuffix':_0x1e5224[_0x381207(0x253)]},{'ref':_0x1b0a57,'className':_0x29ecdc,..._0x40cd1e},_0x47c0b8);}function _0x368d0b(_0x415843,_0x27b128,_0x3d7255,_0x465089,_0x1a9a6b){const _0x54bd72=_0x43c41f;return(0x0,_0x4ab200[_0x54bd72(0x226)])(_0x415843[_0x54bd72(0x1bf)],{'key':_0x27b128,..._0x52fdcd(_0x415843,_0x3d7255,_0x1a9a6b),..._0x465089},(_0x3ca9d5(_0x415843,_0x3d7255)[_0x54bd72(0x160)]||[])[_0x54bd72(0x1ea)]((_0x1fb592,_0x3c5e24)=>_0x368d0b(_0x1fb592,_0x27b128+'-'+_0x415843[_0x54bd72(0x1bf)]+'-'+_0x3c5e24,_0x3d7255,void 0x0,_0x1a9a6b)));}function _0x52fdcd(_0xffd753,_0x1f3d1a,_0x22eae6){const _0xd45a19=_0x43c41f;let _0x11964e={..._0xffd753[_0xd45a19(0x1f6)]};_0x22eae6!=null&&_0x22eae6[_0xd45a19(0x237)]&&_0x11964e['fill']==='colorChannel1'&&(_0x11964e[_0xd45a19(0x24b)]=_0x22eae6[_0xd45a19(0x237)]),_0x22eae6!=null&&_0x22eae6['colorChannel1']&&_0x11964e[_0xd45a19(0x215)]===_0xd45a19(0x237)&&(_0x11964e['stroke']=_0x22eae6[_0xd45a19(0x237)]),_0xffd753[_0xd45a19(0x1bf)]===_0xd45a19(0x1dc)&&_0x11964e['id']&&(_0x11964e['id']+=_0x1f3d1a['idSuffix']),Object['entries'](_0x11964e)['forEach'](([_0x3d6cde,_0x538e99])=>{const _0x19974d=_0xd45a19;_0x3d6cde===_0x19974d(0x1dc)&&typeof _0x538e99==_0x19974d(0x23a)&&(_0x11964e[_0x3d6cde]=_0x538e99[_0x19974d(0x185)](/url\(#(.*)\)/,'url(#$1'+_0x1f3d1a[_0x19974d(0x175)]+')'));});let {defIds:_0xb72e61}=_0x1f3d1a;return!_0xb72e61||_0xb72e61[_0xd45a19(0x24a)]===0x0?_0x11964e:(_0xffd753[_0xd45a19(0x1bf)]==='use'&&_0x11964e[_0xd45a19(0x17f)]&&(_0x11964e[_0xd45a19(0x17f)]+=_0x1f3d1a[_0xd45a19(0x175)]),Object[_0xd45a19(0x248)](_0x11964e)['forEach'](([_0x244da6,_0x3159d6])=>{const _0x4d196a=_0xd45a19;typeof _0x3159d6==_0x4d196a(0x23a)&&(_0x11964e[_0x244da6]=_0x3159d6[_0x4d196a(0x185)](/url\(#(.*)\)/,_0x4d196a(0x1d7)+_0x1f3d1a[_0x4d196a(0x175)]+')'));}),_0x11964e);}function _0x3ca9d5(_0xc1cebd,_0x3e8531){const _0x39c81b=_0x43c41f;var _0x69dee9;let {defIds:_0x42827d}=_0x3e8531;return!_0x42827d||_0x42827d[_0x39c81b(0x24a)]===0x0?_0xc1cebd:_0xc1cebd['tag']===_0x39c81b(0x24e)&&(_0x69dee9=_0xc1cebd[_0x39c81b(0x160)])!=null&&_0x69dee9['length']?{..._0xc1cebd,'children':_0xc1cebd['children']['map'](_0x59e579=>typeof _0x59e579['attrs']['id']=='string'&&_0x42827d&&_0x42827d['includes'](_0x59e579[_0x39c81b(0x1f6)]['id'])?{..._0x59e579,'attrs':{..._0x59e579['attrs'],'id':_0x59e579[_0x39c81b(0x1f6)]['id']+_0x3e8531[_0x39c81b(0x175)]}}:_0x59e579)}:_0xc1cebd;}function _0x36a86b(){const _0x411cce=_0x43c41f;return Math[_0x411cce(0x19a)]()[_0x411cce(0x255)](0x24)[_0x411cce(0x169)](0x2,0x8);}_0x1e923a[_0x43c41f(0x1d6)]=_0x43c41f(0x22b);let _0x4252b8={'tag':_0x43c41f(0x198),'attrs':{'xmlns':_0x43c41f(0x22e),'fill':_0x43c41f(0x20a),'viewBox':_0x43c41f(0x1d3),'width':_0x43c41f(0x1b1),'height':_0x43c41f(0x1b1)},'children':[{'tag':_0x43c41f(0x182),'attrs':{'fill':_0x43c41f(0x1ac),'d':_0x43c41f(0x208)}},{'tag':_0x43c41f(0x182),'attrs':{'fill':_0x43c41f(0x1ac),'d':_0x43c41f(0x193),'fillRule':'evenodd','clipRule':_0x43c41f(0x15d)}}]},_0x5c4ffe=(0x0,_0x4ab200[_0x43c41f(0x1dd)])(function(_0x5525da,_0x224b9e){const _0x531170=_0x43c41f;return(0x0,_0x4ab200[_0x531170(0x226)])(_0x1e923a,Object[_0x531170(0x213)]({},_0x5525da,{'id':_0x531170(0x1d0),'ref':_0x224b9e,'icon':_0x4252b8}));});_0x5c4ffe[_0x43c41f(0x1d6)]=_0x43c41f(0x199);function _0x41819d(){const _0x5d4bc1=_0x43c41f;let _0x5e9596=(0x0,_0x4675f4['useDependency'])(_0x5a755d),_0x59930c=(0x0,_0x4675f4['useDependency'])(_0x4d2c8e[_0x5d4bc1(0x1f0)]),_0x2c4784=(0x0,_0x4675f4[_0x5d4bc1(0x227)])(()=>_0x59930c[_0x5d4bc1(0x1f9)](_0x4d2c8e['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),_0x29cc53=(0x0,_0x4675f4[_0x5d4bc1(0x227)])((0x0,_0x4ab200['useMemo'])(()=>_0x2c4784?(0x0,_0x41f802[_0x5d4bc1(0x17a)])(()=>(0x0,_0x41f802[_0x5d4bc1(0x1cf)])(_0x5e9596[_0x5d4bc1(0x17c)](_0x2c4784[_0x5d4bc1(0x20c)]()))):(0x0,_0x41f802['of'])(null),[_0x2c4784,_0x5e9596]),null),_0x596675=(0x0,_0x4675f4[_0x5d4bc1(0x227)])(_0x29cc53?()=>_0x29cc53[_0x5d4bc1(0x18f)]:null,_0x5d4bc1(0x232),!0x1,[_0x29cc53]);return _0x29cc53?(0x0,_0x1e4412[_0x5d4bc1(0x1cc)])(_0x7a06bf[_0x5d4bc1(0x231)],{'align':'end','disabled':_0x596675===_0x5d4bc1(0x21d),'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,_0x1e4412[_0x5d4bc1(0x1cc)])(_0x1b0361,{'status':_0x596675,'coordinator':_0x29cc53}),'children':(0x0,_0x1e4412[_0x5d4bc1(0x1cc)])('button',{'className':(0x0,_0x7a06bf[_0x5d4bc1(0x250)])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x596675===_0x5d4bc1(0x21d),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x596675!==_0x5d4bc1(0x21d)}),'type':'button','children':(0x0,_0x1e4412[_0x5d4bc1(0x1cc)])(_0x5c4ffe,{})})}):null;}function _0x1b0361(_0x480d22){const _0x33f511=_0x43c41f;let {status:_0x2f33af,coordinator:_0x54007d}=_0x480d22;switch(_0x2f33af){case'idle':return(0x0,_0x1e4412[_0x33f511(0x1cc)])(_0x386608,{'coordinator':_0x54007d});case _0x33f511(0x1c6):return(0x0,_0x1e4412[_0x33f511(0x1cc)])(_0x4101dc,{'coordinator':_0x54007d});case'not-following':return(0x0,_0x1e4412['jsx'])(_0x1e479f,{'coordinator':_0x54007d});case'offline':return(0x0,_0x1e4412[_0x33f511(0x1cc)])(_0xa1f248,{});case'presenting':return(0x0,_0x1e4412[_0x33f511(0x1cc)])(_0x442fa9,{'coordinator':_0x54007d});default:return null;}}function _0x386608(_0x5bd3fc){const _0x5bd6e3=_0x43c41f;let {coordinator:_0x44a2f1}=_0x5bd3fc;return(0x0,_0x1e4412[_0x5bd6e3(0x1b6)])(_0x1e4412['Fragment'],{'children':[(0x0,_0x1e4412[_0x5bd6e3(0x1cc)])(_0x5bd6e3(0x19f),{'className':_0x5bd6e3(0x22d),'children':_0x5bd6e3(0x164)}),(0x0,_0x1e4412[_0x5bd6e3(0x1cc)])(_0x7a06bf[_0x5bd6e3(0x1ee)],{'onClick':()=>_0x44a2f1[_0x5bd6e3(0x21f)](),'children':_0x5bd6e3(0x24d)})]});}function _0x4101dc(_0x1188ff){const _0x269b2c=_0x43c41f;let {coordinator:_0x16ff79}=_0x1188ff;return(0x0,_0x1e4412[_0x269b2c(0x1b6)])(_0x1e4412[_0x269b2c(0x218)],{'children':[(0x0,_0x1e4412['jsx'])('div',{'className':_0x269b2c(0x22d),'children':_0x269b2c(0x23f)}),(0x0,_0x1e4412[_0x269b2c(0x1cc)])(_0x7a06bf['Button'],{'onClick':()=>_0x16ff79[_0x269b2c(0x1a2)](),'children':'Stop\x20following'})]});}function _0x1e479f(_0x5847ad){const _0x574b37=_0x43c41f;let {coordinator:_0x4b3c19}=_0x5847ad;return(0x0,_0x1e4412[_0x574b37(0x1b6)])(_0x1e4412[_0x574b37(0x218)],{'children':[(0x0,_0x1e4412[_0x574b37(0x1cc)])(_0x574b37(0x19f),{'className':_0x574b37(0x22d),'children':_0x574b37(0x1c0)}),(0x0,_0x1e4412['jsx'])(_0x7a06bf[_0x574b37(0x1ee)],{'variant':_0x574b37(0x1fd),'onClick':()=>_0x4b3c19['startFollowing'](),'children':_0x574b37(0x249)})]});}function _0x442fa9(_0x3e3e00){const _0x78d42e=_0x43c41f;let {coordinator:_0x13cced}=_0x3e3e00;return(0x0,_0x1e4412[_0x78d42e(0x1b6)])(_0x1e4412[_0x78d42e(0x218)],{'children':[(0x0,_0x1e4412[_0x78d42e(0x1cc)])(_0x78d42e(0x19f),{'className':_0x78d42e(0x22d),'children':_0x78d42e(0x244)}),(0x0,_0x1e4412[_0x78d42e(0x1cc)])(_0x7a06bf['Button'],{'variant':_0x78d42e(0x1b9),'onClick':()=>_0x13cced['stopPresenting'](),'children':_0x78d42e(0x1f4)})]});}function _0xa1f248(){const _0x32e0b4=_0x43c41f;return(0x0,_0x1e4412['jsx'])(_0x1e4412[_0x32e0b4(0x218)],{'children':'You\x27are\x20offline.'});}let _0xf04774=class extends _0x4d2c8e[_0x43c41f(0x23c)]{constructor(_0x13a84c,_0x36ef69){const _0x136d08=_0x43c41f;super(),this[_0x136d08(0x184)]=_0x13a84c,this[_0x136d08(0x20e)]=_0x36ef69,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x2f01b5=_0x43c41f;this[_0x2f01b5(0x1c3)](this['_uiPartsService']['registerComponent'](_0x4675f4[_0x2f01b5(0x1f8)][_0x2f01b5(0x173)],()=>(0x0,_0x4675f4['connectInjector'])(_0x41819d,this['_injector'])));}};_0xf04774=_0x4ff6e1([_0x4944be(0x0,(0x0,_0x4d2c8e[_0x43c41f(0x1cd)])(_0x4d2c8e['Injector'])),_0x4944be(0x1,_0x4675f4[_0x43c41f(0x256)])],_0xf04774);let _0x59e15c=class extends _0x4d2c8e[_0x43c41f(0x1ba)]{constructor(_0x5c62c8=_0x23ab06,_0x286a8f,_0x303f3a){const _0x1be436=_0x43c41f;super(),this[_0x1be436(0x224)]=_0x5c62c8,this['_injector']=_0x286a8f,this[_0x1be436(0x1db)]=_0x303f3a;let {..._0x1944e0}=(0x0,_0x4d2c8e[_0x1be436(0x178)])({},_0x23ab06,this['_config']);this[_0x1be436(0x1db)][_0x1be436(0x1b0)](_0x1be436(0x22f),_0x1944e0);}[_0x43c41f(0x179)](){const _0xa2883f=_0x43c41f;(0x0,_0x4d2c8e[_0xa2883f(0x205)])(this['_injector'],(0x0,_0x4d2c8e[_0xa2883f(0x1ca)])([[_0x3bc393],[_0x5a755d],[_0x4d1009],[_0xf04774]],this[_0xa2883f(0x224)][_0xa2883f(0x15e)])),(0x0,_0x4d2c8e[_0xa2883f(0x21c)])(this[_0xa2883f(0x184)],[[_0x4d1009]]);}['onRendered'](){const _0x3105ed=_0x43c41f;(0x0,_0x4d2c8e[_0x3105ed(0x21c)])(this[_0x3105ed(0x184)],[[_0xf04774]]);}};_0x3a32dd(_0x59e15c,_0x43c41f(0x203),_0x4d2c8e[_0x43c41f(0x201)][_0x43c41f(0x1c8)]),_0x3a32dd(_0x59e15c,'pluginName',_0x43c41f(0x167)),_0x3a32dd(_0x59e15c,_0x43c41f(0x162),_0x1af3ac),_0x3a32dd(_0x59e15c,_0x43c41f(0x1c7),_0x6f6ae),_0x59e15c=_0x4ff6e1([(0x0,_0x4d2c8e[_0x43c41f(0x1ff)])(_0x1cac21[_0x43c41f(0x206)],_0x4675f4[_0x43c41f(0x183)],_0x21b6e0[_0x43c41f(0x1e9)]),_0x4944be(0x1,(0x0,_0x4d2c8e[_0x43c41f(0x1cd)])(_0x4d2c8e[_0x43c41f(0x20b)])),_0x4944be(0x2,_0x4d2c8e[_0x43c41f(0x1ed)])],_0x59e15c),Object[_0x43c41f(0x1f7)](_0x30429c,_0x43c41f(0x24f),{'enumerable':!0x0,'get':function(){return _0x5a755d;}}),_0x30429c[_0x43c41f(0x1f5)]=_0x408685,Object[_0x43c41f(0x1f7)](_0x30429c,_0x43c41f(0x189),{'enumerable':!0x0,'get':function(){return _0x59e15c;}});}));function _0xaf52(_0x1d79dd,_0x2b07e4){_0x1d79dd=_0x1d79dd-0x15d;const _0x248f32=_0x248f();let _0xaf521=_0x248f32[_0x1d79dd];return _0xaf521;}function _0x248f(){const _0x1be244=['_status','@univerjs/core','memberID','CommandType','getInitialStates','91arrsDh','not-following','RxDisposable','UniverProCollaborationClient','_commandService','UniverCollaborationClientPlugin','map','dispose$','SetScrollOperation','IConfigService','Button','SetWorksheetActiveOperation','IUniverInstanceService','sheet','send','805fyJgWU','Stop\x20presenting','LiveShareStatus','attrs','defineProperty','BuiltInUIPart','getCurrentTypeOfUnit$','InsertSheetMutation','FOLLOWING','_init','text','CollaborationSessionService','DependentOn','BehaviorSubject','UniverInstanceType','_handleNewChangeSets','type','_status$','registerDependencies','UniverLicensePlugin','_handleOperation','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','forEach','none','Injector','getUnitId','startFollowing','_uiPartsService','SessionStatus','params','1084SvCghM','1686tROTBA','assign','shouldShareOperation','stroke','stopPresenting','129WMJZDI','Fragment','constructor','includes','onCommandExecuted','touchDependencies','offline','_startLiveShareCoordinator','tryStartPresenting','_startFollowing','LIVESHARE_TERMINATE','_beIdle','2279950GdCJyb','_config','_stopFollowing','createElement','useObservable','841220IAKFpL','_handleNewHost','_liveShareService','UniverIcon','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','http://www.w3.org/2000/svg','live-share.config','1.0.0-alpha.8','Dropdown','idle','OPERATION','asObservable','toPrimitive','getTypeOfUnitDisposed$','colorChannel1','prototype','complete','string','exports','Disposable','_unitID','UniverUi','You\x27re\x20following\x20the\x20presenter','1698SItqAe','react','11GzGSzp','_commandDisposable','You\x27re\x20presenting\x20the\x20document','UniverProLicense','UNIVER_SHEET','add','entries','Start\x20following','length','fill','LIVESHARE_NEW_HOST','Start','defs','LiveShareController','clsx','presenter','SAME_OPERATION_SHARE_INTERVAL','current','values','toString','IUIPartsService','evenodd','override','CollaborationEvent','children','react/jsx-runtime','packageName','operations','Present\x20this\x20document','getMemberID','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','_presenter','substring','ICommandService','subscribe','data','has','getValue','event$','useRef','UniverProLiveShare','UniverCore','HEADER_MENU','_univerInstanceService','idSuffix','_collabSession','@univerjs/sheets-ui','merge','onStarting','defer','throttleTime','getLiveShareCoordinator','NEW_CHANGESETS','decorate','xlink:href','find','toStringTag','path','UniverUIPlugin','_injector','replace','parseProtocolChangeset','registerSharedOperation','presenting','UniverLiveSharePlugin','mutations','@univerjs-pro/live-share','next','_stopPresenting','sessionStatus$','status$','univerjs-icon\x20univerjs-icon-','_entities','getLiveShareCoordinatorSync','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','call','unsubscribe','Module','_reporters','svg','LiveShareIcon','random','_collabSessionService','defIds','unit','stringify','div','UniverDesign','amd','stopFollowing','UniverSheets','_sharedOperations','SetZoomRatioOperation','pipe','LIVESHARE_REQUEST_HOST','LIVESHARE_OPERATION','takeUntil','registerInitialStateReporter','executeCommand','currentColor','PRESENTING','toDisposable','symbol','setConfig','1em','143wbOxLu','_handleOnline','@univerjs-pro/license','getConfig','jsxs','_startPresenting','operators','default','Plugin','delete','90ZTqKjL','Subject','clear','tag','You\x27re\x20not\x20following\x20the\x20presenter','216708OGrTuI','dispose','disposeWithMe','69096MOXzro','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','following','version','UNIVER_UNKNOWN','init','mergeOverrideWithDependencies','_fetchOperations','jsx','Inject','@univerjs-pro/collaboration-client','from','live-share-icon','DisposableCollection','function','0\x200\x2017\x2017','get','object','displayName','url(#$1','_handleTerminate','OFFLINE','rxjs','_configService','mask','forwardRef','set'];_0x248f=function(){return _0x1be244;};return _0x248f();}
|
|
1
|
+
function _0x5e9a(_0x2bb750,_0xfe88d5){_0x2bb750=_0x2bb750-0x11a;const _0x3f89d9=_0x3f89();let _0x5e9a76=_0x3f89d9[_0x2bb750];return _0x5e9a76;}(function(_0x56cc4c,_0x494b8a){const _0x4d481e=_0x5e9a,_0x5ce8a5=_0x56cc4c();while(!![]){try{const _0x5e13f3=parseInt(_0x4d481e(0x146))/0x1+-parseInt(_0x4d481e(0x15a))/0x2+parseInt(_0x4d481e(0x142))/0x3+-parseInt(_0x4d481e(0x1da))/0x4+parseInt(_0x4d481e(0x1d0))/0x5*(parseInt(_0x4d481e(0x178))/0x6)+-parseInt(_0x4d481e(0x13c))/0x7*(-parseInt(_0x4d481e(0x1dd))/0x8)+parseInt(_0x4d481e(0x1be))/0x9*(-parseInt(_0x4d481e(0x1db))/0xa);if(_0x5e13f3===_0x494b8a)break;else _0x5ce8a5['push'](_0x5ce8a5['shift']());}catch(_0x34de8d){_0x5ce8a5['push'](_0x5ce8a5['shift']());}}}(_0x3f89,0x5c2a1),function(_0x52cccf,_0x11a907){const _0x2bd288=_0x5e9a;typeof exports=='object'&&typeof module<'u'?_0x11a907(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs-pro/license'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x2bd288(0x177)&&define[_0x2bd288(0x1a2)]?define(['exports',_0x2bd288(0x1b1),_0x2bd288(0x159),'@univerjs/core',_0x2bd288(0x12b),'rxjs',_0x2bd288(0x120),_0x2bd288(0x1e1),'@univerjs/sheets-ui','@univerjs/ui',_0x2bd288(0x1c6),_0x2bd288(0x1d7),'react/jsx-runtime'],_0x11a907):(_0x52cccf=typeof globalThis<'u'?globalThis:_0x52cccf||self,_0x11a907(_0x52cccf[_0x2bd288(0x1b0)]={},_0x52cccf['UniverProCollaboration'],_0x52cccf[_0x2bd288(0x158)],_0x52cccf['UniverCore'],_0x52cccf['UniverSheets'],_0x52cccf[_0x2bd288(0x18f)],_0x52cccf[_0x2bd288(0x18f)][_0x2bd288(0x128)],_0x52cccf[_0x2bd288(0x1cf)],_0x52cccf['UniverSheetsUi'],_0x52cccf[_0x2bd288(0x1d8)],_0x52cccf[_0x2bd288(0x14c)],_0x52cccf[_0x2bd288(0x182)],_0x52cccf[_0x2bd288(0x182)]));}(this,function(_0xfff3f6,_0x545c38,_0x425778,_0x2a83f8,_0xc44925,_0x244db7,_0x32f425,_0x4c4cea,_0x13de63,_0x18944d,_0x30fd9d,_0x81793d,_0xfb6994){const _0xe4c58d=_0x5e9a;Object[_0xe4c58d(0x11e)](_0xfff3f6,Symbol['toStringTag'],{'value':'Module'});function _0x1f194d(_0x348e03){'@babel/helpers - typeof';const _0x4717dd=_0xe4c58d;return _0x1f194d=typeof Symbol=='function'&&typeof Symbol[_0x4717dd(0x1ab)]==_0x4717dd(0x18b)?function(_0x527ec9){return typeof _0x527ec9;}:function(_0x15dee7){const _0x3b7cc0=_0x4717dd;return _0x15dee7&&typeof Symbol==_0x3b7cc0(0x177)&&_0x15dee7['constructor']===Symbol&&_0x15dee7!==Symbol[_0x3b7cc0(0x1ec)]?_0x3b7cc0(0x18b):typeof _0x15dee7;},_0x1f194d(_0x348e03);}function _0x5ec452(_0xa1ea38,_0x7cd1df){const _0x594af2=_0xe4c58d;if(_0x1f194d(_0xa1ea38)!=_0x594af2(0x15c)||!_0xa1ea38)return _0xa1ea38;var _0x57b47b=_0xa1ea38[Symbol['toPrimitive']];if(_0x57b47b!==void 0x0){var _0x1cdd08=_0x57b47b['call'](_0xa1ea38,_0x7cd1df||'default');if(_0x1f194d(_0x1cdd08)!='object')return _0x1cdd08;throw TypeError(_0x594af2(0x1f7));}return(_0x7cd1df===_0x594af2(0x1a9)?String:Number)(_0xa1ea38);}function _0x3bce6c(_0x2e0c19){const _0x37fa60=_0xe4c58d;var _0x273819=_0x5ec452(_0x2e0c19,'string');return _0x1f194d(_0x273819)==_0x37fa60(0x18b)?_0x273819:_0x273819+'';}function _0x5470e1(_0x3d4e73,_0x1ef888,_0x5249b1){const _0x10aca2=_0xe4c58d;return(_0x1ef888=_0x3bce6c(_0x1ef888))in _0x3d4e73?Object[_0x10aca2(0x11e)](_0x3d4e73,_0x1ef888,{'value':_0x5249b1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d4e73[_0x1ef888]=_0x5249b1,_0x3d4e73;}var _0x318b55=class extends _0x2a83f8[_0xe4c58d(0x125)]{constructor(..._0x251a22){const _0x309919=_0xe4c58d;super(..._0x251a22),_0x5470e1(this,_0x309919(0x167),new Set()),_0x5470e1(this,'_reporters',new Set());}[_0xe4c58d(0x12f)](_0x2eb2ec){const _0x1ffba7=_0xe4c58d;return this[_0x1ffba7(0x167)][_0x1ffba7(0x199)](_0x2eb2ec),(0x0,_0x2a83f8[_0x1ffba7(0x13d)])(()=>this['_sharedOperations'][_0x1ffba7(0x15e)](_0x2eb2ec));}['registerInitialStateReporter'](_0x581e5f){const _0xb268a3=_0xe4c58d;return this[_0xb268a3(0x150)][_0xb268a3(0x199)](_0x581e5f),(0x0,_0x2a83f8[_0xb268a3(0x13d)])(()=>this[_0xb268a3(0x150)][_0xb268a3(0x15e)](_0x581e5f));}[_0xe4c58d(0x1ae)](_0x407c58){const _0x239c7d=_0xe4c58d;return this[_0x239c7d(0x167)][_0x239c7d(0x1a8)](_0x407c58);}[_0xe4c58d(0x1ba)](_0x5d161a){const _0x40f815=_0xe4c58d;return Array[_0x40f815(0x11d)](this[_0x40f815(0x150)])[_0x40f815(0x194)](_0x39795d=>_0x39795d(_0x5d161a));}};function _0x26d1cf(_0x1a444f,_0x36093f){return function(_0x4f3d2c,_0x548ff8){_0x36093f(_0x4f3d2c,_0x548ff8,_0x1a444f);};}function _0x3ae8e5(_0x2f73bf,_0x3b5f23,_0x5dadcc,_0x190c03){const _0x422aa1=_0xe4c58d;var _0x10b6f1=arguments[_0x422aa1(0x161)],_0x1199f5=_0x10b6f1<0x3?_0x3b5f23:_0x190c03===null?_0x190c03=Object[_0x422aa1(0x1b6)](_0x3b5f23,_0x5dadcc):_0x190c03,_0x552e81;if(typeof Reflect==_0x422aa1(0x15c)&&typeof Reflect[_0x422aa1(0x1df)]==_0x422aa1(0x177))_0x1199f5=Reflect[_0x422aa1(0x1df)](_0x2f73bf,_0x3b5f23,_0x5dadcc,_0x190c03);else{for(var _0x3c4000=_0x2f73bf[_0x422aa1(0x161)]-0x1;_0x3c4000>=0x0;_0x3c4000--)(_0x552e81=_0x2f73bf[_0x3c4000])&&(_0x1199f5=(_0x10b6f1<0x3?_0x552e81(_0x1199f5):_0x10b6f1>0x3?_0x552e81(_0x3b5f23,_0x5dadcc,_0x1199f5):_0x552e81(_0x3b5f23,_0x5dadcc))||_0x1199f5);}return _0x10b6f1>0x3&&_0x1199f5&&Object[_0x422aa1(0x11e)](_0x3b5f23,_0x5dadcc,_0x1199f5),_0x1199f5;}let _0x46ec36=class extends _0x2a83f8['RxDisposable']{constructor(_0x505bc8,_0x39fb23,_0x3185ba){const _0x38f421=_0xe4c58d;super(),this[_0x38f421(0x11c)]=_0x505bc8,this['_injector']=_0x39fb23,this[_0x38f421(0x1c2)]=_0x3185ba,_0x5470e1(this,'_entities',new Map()),this['_init']();}async['getLiveShareCoordinator'](_0x226c3e){const _0x4aca6d=_0xe4c58d;return this['_entities'][_0x4aca6d(0x1a8)](_0x226c3e)||await this['_startLiveShareCoordinator'](_0x226c3e),this[_0x4aca6d(0x19e)][_0x4aca6d(0x1e7)](_0x226c3e);}[_0xe4c58d(0x1e0)](_0x5deff1){const _0x114de6=_0xe4c58d;return this[_0x114de6(0x19e)][_0x114de6(0x1e7)](_0x5deff1)??null;}[_0xe4c58d(0x1f5)](){const _0x4df2f2=_0xe4c58d;this[_0x4df2f2(0x11c)][_0x4df2f2(0x160)](_0x2a83f8[_0x4df2f2(0x1b2)][_0x4df2f2(0x1b7)])[_0x4df2f2(0x1cc)]((0x0,_0x32f425[_0x4df2f2(0x1d2)])(this[_0x4df2f2(0x1c3)]))[_0x4df2f2(0x1bb)](async _0x139050=>{const _0x441569=_0x4df2f2;let _0x42b466=_0x139050[_0x441569(0x13a)][_0x441569(0x1d4)]();this[_0x441569(0x19e)][_0x441569(0x1a8)](_0x42b466)||this[_0x441569(0x1af)](_0x42b466);}),this[_0x4df2f2(0x11c)]['getTypeOfUnitDisposed$'](_0x2a83f8['UniverInstanceType']['UNIVER_SHEET'])[_0x4df2f2(0x1cc)]((0x0,_0x32f425[_0x4df2f2(0x1d2)])(this[_0x4df2f2(0x1c3)]))['subscribe'](_0x417896=>{const _0x3de8c4=_0x4df2f2;let _0xaf6d07=_0x417896['getUnitId'](),_0x3df1da=this[_0x3de8c4(0x19e)][_0x3de8c4(0x1e7)](_0xaf6d07);_0x3df1da==null||_0x3df1da[_0x3de8c4(0x1b4)]();});}async['_startLiveShareCoordinator'](_0x305df8){const _0x264968=_0xe4c58d;let _0x5436a9=await this[_0x264968(0x1c2)][_0x264968(0x1c0)](_0x305df8),_0x451063=this[_0x264968(0x192)]['createInstance'](_0x476686,_0x305df8,_0x5436a9);return _0x451063[_0x264968(0x1a0)](),this[_0x264968(0x19e)]['set'](_0x305df8,_0x451063),_0x451063;}};_0x46ec36=_0x3ae8e5([_0x26d1cf(0x0,_0x2a83f8[_0xe4c58d(0x1b8)]),_0x26d1cf(0x1,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x2a83f8[_0xe4c58d(0x15b)])),_0x26d1cf(0x2,(0x0,_0x2a83f8['Inject'])(_0x425778['CollaborationSessionService']))],_0x46ec36);let _0x3b4078=function(_0x19a0a5){const _0x25f38d=_0xe4c58d;return _0x19a0a5[_0x25f38d(0x1aa)]=_0x25f38d(0x1f2),_0x19a0a5[_0x25f38d(0x1a1)]=_0x25f38d(0x15f),_0x19a0a5[_0x25f38d(0x180)]=_0x25f38d(0x1f1),_0x19a0a5[_0x25f38d(0x12e)]='not-following',_0x19a0a5['PRESENTING']=_0x25f38d(0x19b),_0x19a0a5;}({}),_0x476686=class extends _0x2a83f8['RxDisposable']{get['_status'](){const _0x442a70=_0xe4c58d;return this[_0x442a70(0x143)][_0x442a70(0x11b)]();}constructor(_0x2ae2db,_0x3d6f29,_0x22c3e2,_0x383c0b,_0x46bce0){const _0x3dd77c=_0xe4c58d;super(),this[_0x3dd77c(0x195)]=_0x2ae2db,this[_0x3dd77c(0x123)]=_0x3d6f29,this['_configService']=_0x22c3e2,this[_0x3dd77c(0x1f3)]=_0x383c0b,this[_0x3dd77c(0x1ef)]=_0x46bce0,_0x5470e1(this,'_status$',new _0x244db7[(_0x3dd77c(0x14f))](_0x3dd77c(0x15f))),_0x5470e1(this,_0x3dd77c(0x187),this[_0x3dd77c(0x143)][_0x3dd77c(0x1ee)]()),_0x5470e1(this,_0x3dd77c(0x1f5),!0x1),_0x5470e1(this,_0x3dd77c(0x1d5),null),_0x5470e1(this,'_presenter',null);}[_0xe4c58d(0x1b4)](){const _0x480fd5=_0xe4c58d;var _0x2d125e;(_0x2d125e=this['_commandDisposable'])==null||_0x2d125e['dispose'](),this[_0x480fd5(0x143)][_0x480fd5(0x17c)]('idle'),this[_0x480fd5(0x143)][_0x480fd5(0x1a7)]();}[_0xe4c58d(0x181)](){const _0x330880=_0xe4c58d;return this[_0x330880(0x168)];}[_0xe4c58d(0x1a0)](){const _0x10b228=_0xe4c58d;this['_init']||(this[_0x10b228(0x1f5)]=!0x0,this[_0x10b228(0x123)][_0x10b228(0x1f8)][_0x10b228(0x1cc)]((0x0,_0x32f425['takeUntil'])(this[_0x10b228(0x1c3)]))[_0x10b228(0x1bb)](_0x25b325=>{const _0x462557=_0x10b228;switch(_0x25b325){case _0x425778[_0x462557(0x1e4)][_0x462557(0x1aa)]:this[_0x462557(0x13b)]();break;case _0x425778[_0x462557(0x1e4)][_0x462557(0x18e)]:this['_handleOnline']();break;default:}}),this[_0x10b228(0x123)]['event$'][_0x10b228(0x1cc)]((0x0,_0x32f425[_0x10b228(0x1d2)])(this[_0x10b228(0x1c3)]))[_0x10b228(0x1bb)](_0x4be7c4=>{const _0x15adaf=_0x10b228;let {eventID:_0x1c5fc1}=_0x4be7c4;switch(_0x1c5fc1){case _0x545c38[_0x15adaf(0x16f)][_0x15adaf(0x1cd)]:this['_handleNewHost'](_0x4be7c4);break;case _0x545c38[_0x15adaf(0x16f)]['LIVESHARE_OPERATION']:this[_0x15adaf(0x1d6)](_0x4be7c4);break;case _0x545c38[_0x15adaf(0x16f)]['LIVESHARE_TERMINATE']:this[_0x15adaf(0x164)]();break;case _0x545c38[_0x15adaf(0x16f)][_0x15adaf(0x1bc)]:this[_0x15adaf(0x19f)](_0x4be7c4);break;default:}}));}['tryStartPresenting'](){const _0x51778c=_0xe4c58d;this[_0x51778c(0x123)][_0x51778c(0x13e)]({'eventID':_0x545c38[_0x51778c(0x16f)][_0x51778c(0x1d3)],'data':{'unitID':this[_0x51778c(0x195)],'userID':this[_0x51778c(0x123)][_0x51778c(0x1ad)]()}},this['_unitID']);}['stopPresenting'](){const _0x28ccba=_0xe4c58d;this['_status']===_0x28ccba(0x19b)&&(this[_0x28ccba(0x143)][_0x28ccba(0x17c)](_0x28ccba(0x15f)),this[_0x28ccba(0x123)][_0x28ccba(0x13e)]({'eventID':_0x545c38[_0x28ccba(0x16f)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x28ccba(0x195)]}},this['_unitID']));}[_0xe4c58d(0x145)](){const _0x522615=_0xe4c58d;this[_0x522615(0x168)]==='not-following'&&(this['_status$'][_0x522615(0x17c)](_0x522615(0x1f1)),this[_0x522615(0x162)]());}[_0xe4c58d(0x124)](){const _0x4af9e2=_0xe4c58d;this[_0x4af9e2(0x168)]==='following'&&this['_stopFollowing']();}[_0xe4c58d(0x14d)](_0x32e011){const _0x4e1f50=_0xe4c58d;let {presenter:_0x3ffada}=_0x32e011[_0x4e1f50(0x166)],_0x20c296=this[_0x4e1f50(0x123)][_0x4e1f50(0x1ad)]();this[_0x4e1f50(0x16b)]=_0x3ffada,_0x3ffada===_0x20c296?(this[_0x4e1f50(0x1f0)](),this[_0x4e1f50(0x1ed)]()):this[_0x4e1f50(0x168)]!==_0x4e1f50(0x12d)&&(this['_stopPresenting'](),this[_0x4e1f50(0x162)]());}['_fetchOperations'](){const _0x3153ba=_0xe4c58d;let _0x5de4bc={'eventID':_0x545c38['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x3153ba(0x123)][_0x3153ba(0x13e)](_0x5de4bc,this[_0x3153ba(0x195)]);}['_handleTerminate'](){const _0x18db11=_0xe4c58d;this[_0x18db11(0x16b)]=null,this[_0x18db11(0x168)]!=='presenting'&&this[_0x18db11(0x1bf)]();}[_0xe4c58d(0x19f)](_0x37aeed){const _0x248960=_0xe4c58d;if(this[_0x248960(0x168)]===_0x248960(0x1f1)&&this[_0x248960(0x16b)]===_0x37aeed[_0x248960(0x166)]['memberID']){let _0x1959d8=(0x0,_0x545c38[_0x248960(0x1a6)])(_0x37aeed['data'])[_0x248960(0x174)][_0x248960(0x130)]()[_0x248960(0x136)](_0x174925=>_0x174925['id']===_0xc44925[_0x248960(0x176)]['id']);if(_0x1959d8){let _0x518149=_0x1959d8[_0x248960(0x141)][_0x248960(0x12c)],_0x333eda=_0x1959d8[_0x248960(0x141)][_0x248960(0x139)]['id'];setTimeout(()=>{const _0x4d2a14=_0x248960;this[_0x4d2a14(0x1ef)][_0x4d2a14(0x1fb)](_0xc44925[_0x4d2a14(0x1f4)]['id'],{'unitId':_0x518149,'subUnitId':_0x333eda},{'fromCollab':!0x0});});}}}[_0xe4c58d(0x1ed)](){const _0x71a695=_0xe4c58d;var _0x3d4a4c;(_0x3d4a4c=this[_0x71a695(0x1d5)])==null||_0x3d4a4c[_0x71a695(0x1b4)](),this[_0x71a695(0x143)][_0x71a695(0x17c)](_0x71a695(0x19b));let _0x12e564=new Map(),_0x42ec86=this[_0x71a695(0x1d5)]=new _0x2a83f8['DisposableCollection']();_0x42ec86[_0x71a695(0x199)]((0x0,_0x2a83f8[_0x71a695(0x13d)])(()=>{_0x12e564['forEach'](({subject:_0x549738,subscription:_0xa19b89})=>{const _0x2299e0=_0x5e9a;_0xa19b89[_0x2299e0(0x135)](),_0x549738[_0x2299e0(0x1a7)]();}),_0x12e564['clear']();})),_0x42ec86[_0x71a695(0x199)](this[_0x71a695(0x1ef)][_0x71a695(0x1cb)](_0x5d2249=>{const _0x23fb07=_0x71a695;if(_0x5d2249[_0x23fb07(0x191)]!==_0x2a83f8[_0x23fb07(0x1e8)]['OPERATION']||!this['_liveShareService'][_0x23fb07(0x1ae)](_0x5d2249['id']))return;let {id:_0x11a2a9}=_0x5d2249,_0x40c9ff;if(_0x12e564[_0x23fb07(0x1a8)](_0x11a2a9))_0x40c9ff=_0x12e564[_0x23fb07(0x1e7)](_0x11a2a9)[_0x23fb07(0x133)];else{_0x40c9ff=new _0x244db7[(_0x23fb07(0x175))]();let _0x1767f9=_0x40c9ff[_0x23fb07(0x1cc)]((0x0,_0x32f425['throttleTime'])(this[_0x23fb07(0x1de)]['getConfig'](_0x23fb07(0x19c))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x23fb07(0x1bb)](_0xb1c16a=>{const _0x86bbec=_0x23fb07;this[_0x86bbec(0x123)][_0x86bbec(0x13e)]({'eventID':_0x545c38[_0x86bbec(0x16f)][_0x86bbec(0x17d)],'data':{'unitID':this[_0x86bbec(0x195)],'operations':{[_0xb1c16a['id']]:{'id':_0xb1c16a['id'],'params':JSON[_0x86bbec(0x1a3)](_0xb1c16a[_0x86bbec(0x141)])}}}},this[_0x86bbec(0x195)]);});_0x12e564['set'](_0x11a2a9,{'subject':_0x40c9ff,'subscription':_0x1767f9});}_0x40c9ff[_0x23fb07(0x17c)](_0x5d2249);})),this[_0x71a695(0x1f3)][_0x71a695(0x1ba)](this[_0x71a695(0x195)])['forEach'](_0x227e4f=>this['_collabSession'][_0x71a695(0x13e)]({'eventID':_0x545c38[_0x71a695(0x16f)][_0x71a695(0x17d)],'data':{'unitID':this[_0x71a695(0x195)],'operations':{[_0x227e4f['id']]:{'id':_0x227e4f['id'],'params':JSON[_0x71a695(0x1a3)](_0x227e4f[_0x71a695(0x141)])}}}},this[_0x71a695(0x195)]));}['_stopPresenting'](){const _0x727b31=_0xe4c58d;var _0x344169;this['_status$'][_0x727b31(0x17c)]('idle'),(_0x344169=this[_0x727b31(0x1d5)])==null||_0x344169['dispose'](),this['_commandDisposable']=null;}[_0xe4c58d(0x162)](){const _0x43cd79=_0xe4c58d;var _0x25793f;(_0x25793f=this['_commandDisposable'])==null||_0x25793f[_0x43cd79(0x1b4)](),this['_status$']['next']('following');}[_0xe4c58d(0x1bf)](){const _0x142472=_0xe4c58d;var _0x1d85e2;this['_status$'][_0x142472(0x17c)](_0x142472(0x15f)),(_0x1d85e2=this['_commandDisposable'])==null||_0x1d85e2[_0x142472(0x1b4)](),this[_0x142472(0x1d5)]=null;}[_0xe4c58d(0x1f0)](){const _0x47f8b2=_0xe4c58d;var _0x1d4a8f;this[_0x47f8b2(0x143)][_0x47f8b2(0x17c)](_0x47f8b2(0x12d)),(_0x1d4a8f=this[_0x47f8b2(0x1d5)])==null||_0x1d4a8f[_0x47f8b2(0x1b4)]();}[_0xe4c58d(0x1d6)](_0x321098){const _0x5d79ad=_0xe4c58d;if(['presenting',_0x5d79ad(0x12d),_0x5d79ad(0x1f2)][_0x5d79ad(0x1ac)](this[_0x5d79ad(0x168)])||!_0x321098[_0x5d79ad(0x166)][_0x5d79ad(0x148)]||_0x321098[_0x5d79ad(0x166)][_0x5d79ad(0x148)]===this['_collabSession'][_0x5d79ad(0x1ad)]())return;this[_0x5d79ad(0x168)]==='idle'&&this[_0x5d79ad(0x162)]();let _0x25bdae=_0x321098[_0x5d79ad(0x166)][_0x5d79ad(0x1b9)];Object[_0x5d79ad(0x183)](_0x25bdae)[_0x5d79ad(0x1ce)](_0x30599d=>{const _0x46e3e2=_0x5d79ad;this['_commandService'][_0x46e3e2(0x1fb)](_0x30599d['id'],_0x30599d[_0x46e3e2(0x141)]?JSON[_0x46e3e2(0x137)](_0x30599d[_0x46e3e2(0x141)]):null,{'fromCollab':!0x0});});}[_0xe4c58d(0x13b)](){const _0x245c01=_0xe4c58d;var _0xe42a37;this['_status$'][_0x245c01(0x17c)](_0x245c01(0x1f2)),(_0xe42a37=this[_0x245c01(0x1d5)])==null||_0xe42a37[_0x245c01(0x1b4)]();}[_0xe4c58d(0x172)](){const _0xa5ebc9=_0xe4c58d;this[_0xa5ebc9(0x143)][_0xa5ebc9(0x17c)](_0xa5ebc9(0x15f)),this[_0xa5ebc9(0x163)]();}};_0x476686=_0x3ae8e5([_0x26d1cf(0x2,_0x2a83f8[_0xe4c58d(0x153)]),_0x26d1cf(0x3,(0x0,_0x2a83f8['Inject'])(_0x318b55)),_0x26d1cf(0x4,_0x2a83f8[_0xe4c58d(0x14e)])],_0x476686);var _0x540f22='@univerjs-pro/live-share',_0x41b195=_0xe4c58d(0x1a5);let _0x5fbbf0={},_0x34376d=class extends _0x2a83f8['Disposable']{constructor(_0x19d63c){const _0x262ab7=_0xe4c58d;super(),this[_0x262ab7(0x1f3)]=_0x19d63c,this['_init']();}['_init'](){const _0x500798=_0xe4c58d;[_0x13de63[_0x500798(0x134)]['id'],_0x13de63[_0x500798(0x147)]['id'],_0xc44925['SetWorksheetActiveOperation']['id']][_0x500798(0x1ce)](_0x41ee9a=>{const _0x50ddef=_0x500798;this[_0x50ddef(0x1e5)](this[_0x50ddef(0x1f3)][_0x50ddef(0x12f)](_0x41ee9a));});}};_0x34376d=_0x3ae8e5([_0x26d1cf(0x0,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x318b55))],_0x34376d);function _0xe6607b({ref:_0x5633a8,..._0x39526f}){const _0x491402=_0xe4c58d;let {icon:_0x51c4aa,id:_0x30793d,className:_0x150345,extend:_0xf3cf3e,..._0x1ab85a}=_0x39526f,_0x70b0c=('univerjs-icon\x20univerjs-icon-'+_0x30793d+'\x20'+(_0x150345||''))['trim'](),_0x439729=(0x0,_0x81793d[_0x491402(0x149)])('_'+_0x3364ef());return _0x14ef54(_0x51c4aa,''+_0x30793d,{'defIds':_0x51c4aa['defIds'],'idSuffix':_0x439729['current']},{'ref':_0x5633a8,'className':_0x70b0c,..._0x1ab85a},_0xf3cf3e);}function _0x14ef54(_0xd695d8,_0x45d6ac,_0x2a9a5b,_0x951bfe,_0x1dcad5){const _0x48b775=_0xe4c58d;return(0x0,_0x81793d[_0x48b775(0x198)])(_0xd695d8[_0x48b775(0x127)],{'key':_0x45d6ac,..._0x3933e5(_0xd695d8,_0x2a9a5b,_0x1dcad5),..._0x951bfe},(_0x596acc(_0xd695d8,_0x2a9a5b)['children']||[])[_0x48b775(0x194)]((_0x3a306f,_0x1afb05)=>_0x14ef54(_0x3a306f,_0x45d6ac+'-'+_0xd695d8[_0x48b775(0x127)]+'-'+_0x1afb05,_0x2a9a5b,void 0x0,_0x1dcad5)));}function _0x3933e5(_0x233301,_0x4a833e,_0x2c13ce){const _0x56ac1d=_0xe4c58d;let _0x597d5c={..._0x233301[_0x56ac1d(0x1b3)]};_0x2c13ce!=null&&_0x2c13ce['colorChannel1']&&_0x597d5c[_0x56ac1d(0x196)]===_0x56ac1d(0x155)&&(_0x597d5c[_0x56ac1d(0x196)]=_0x2c13ce[_0x56ac1d(0x155)]),_0x2c13ce!=null&&_0x2c13ce['colorChannel1']&&_0x597d5c[_0x56ac1d(0x16e)]===_0x56ac1d(0x155)&&(_0x597d5c[_0x56ac1d(0x16e)]=_0x2c13ce[_0x56ac1d(0x155)]),_0x233301['tag']===_0x56ac1d(0x156)&&_0x597d5c['id']&&(_0x597d5c['id']+=_0x4a833e[_0x56ac1d(0x15d)]),Object[_0x56ac1d(0x16c)](_0x597d5c)[_0x56ac1d(0x1ce)](([_0x335a4b,_0x2ec8f5])=>{const _0x2bb2eb=_0x56ac1d;_0x335a4b===_0x2bb2eb(0x156)&&typeof _0x2ec8f5==_0x2bb2eb(0x1a9)&&(_0x597d5c[_0x335a4b]=_0x2ec8f5[_0x2bb2eb(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x4a833e[_0x2bb2eb(0x15d)]+')'));});let {defIds:_0x4a8c1a}=_0x4a833e;return!_0x4a8c1a||_0x4a8c1a['length']===0x0?_0x597d5c:(_0x233301[_0x56ac1d(0x127)]==='use'&&_0x597d5c[_0x56ac1d(0x12a)]&&(_0x597d5c[_0x56ac1d(0x12a)]+=_0x4a833e[_0x56ac1d(0x15d)]),Object['entries'](_0x597d5c)[_0x56ac1d(0x1ce)](([_0x3ea97b,_0x23f9e7])=>{const _0x1f18b5=_0x56ac1d;typeof _0x23f9e7=='string'&&(_0x597d5c[_0x3ea97b]=_0x23f9e7[_0x1f18b5(0x1c9)](/url\(#(.*)\)/,_0x1f18b5(0x1bd)+_0x4a833e[_0x1f18b5(0x15d)]+')'));}),_0x597d5c);}function _0x596acc(_0x470ea6,_0x2e0f7b){const _0x1ef2be=_0xe4c58d;var _0x3af482;let {defIds:_0x43a80d}=_0x2e0f7b;return!_0x43a80d||_0x43a80d[_0x1ef2be(0x161)]===0x0?_0x470ea6:_0x470ea6['tag']===_0x1ef2be(0x11a)&&(_0x3af482=_0x470ea6['children'])!=null&&_0x3af482['length']?{..._0x470ea6,'children':_0x470ea6[_0x1ef2be(0x1c4)][_0x1ef2be(0x194)](_0x20792d=>typeof _0x20792d[_0x1ef2be(0x1b3)]['id']==_0x1ef2be(0x1a9)&&_0x43a80d&&_0x43a80d[_0x1ef2be(0x1ac)](_0x20792d[_0x1ef2be(0x1b3)]['id'])?{..._0x20792d,'attrs':{..._0x20792d['attrs'],'id':_0x20792d[_0x1ef2be(0x1b3)]['id']+_0x2e0f7b[_0x1ef2be(0x15d)]}}:_0x20792d)}:_0x470ea6;}function _0x3364ef(){const _0x57bb2e=_0xe4c58d;return Math[_0x57bb2e(0x1e2)]()[_0x57bb2e(0x188)](0x24)[_0x57bb2e(0x171)](0x2,0x8);}_0xe6607b[_0xe4c58d(0x129)]=_0xe4c58d(0x14b);let _0x47fdf2={'tag':_0xe4c58d(0x1ca),'attrs':{'xmlns':_0xe4c58d(0x16d),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0xe4c58d(0x1d1),'height':_0xe4c58d(0x1d1)},'children':[{'tag':_0xe4c58d(0x1dc),'attrs':{'fill':_0xe4c58d(0x1fa),'d':_0xe4c58d(0x19a)}},{'tag':_0xe4c58d(0x1dc),'attrs':{'fill':_0xe4c58d(0x1fa),'d':_0xe4c58d(0x14a),'fillRule':_0xe4c58d(0x16a),'clipRule':_0xe4c58d(0x16a)}}]},_0x5d666f=(0x0,_0x81793d['forwardRef'])(function(_0x43d4b2,_0x32eb7c){const _0x2ed601=_0xe4c58d;return(0x0,_0x81793d[_0x2ed601(0x198)])(_0xe6607b,Object[_0x2ed601(0x1e6)]({},_0x43d4b2,{'id':_0x2ed601(0x18a),'ref':_0x32eb7c,'icon':_0x47fdf2}));});_0x5d666f[_0xe4c58d(0x129)]='LiveShareIcon';function _0x49390d(){const _0x3aa596=_0xe4c58d;let _0x43b2b3=(0x0,_0x18944d[_0x3aa596(0x1f6)])(_0x46ec36),_0x4b1ee5=(0x0,_0x18944d['useDependency'])(_0x2a83f8[_0x3aa596(0x1b8)]),_0x1331f8=(0x0,_0x18944d[_0x3aa596(0x1c5)])(()=>_0x4b1ee5[_0x3aa596(0x17a)](_0x2a83f8['UniverInstanceType'][_0x3aa596(0x1b7)]),void 0x0,!0x1,[]),_0x2ed4e0=(0x0,_0x18944d['useObservable'])((0x0,_0x81793d[_0x3aa596(0x1d9)])(()=>_0x1331f8?(0x0,_0x244db7['defer'])(()=>(0x0,_0x244db7[_0x3aa596(0x11d)])(_0x43b2b3[_0x3aa596(0x186)](_0x1331f8[_0x3aa596(0x1d4)]()))):(0x0,_0x244db7['of'])(null),[_0x1331f8,_0x43b2b3]),null),_0x1d37a7=(0x0,_0x18944d[_0x3aa596(0x1c5)])(_0x2ed4e0?()=>_0x2ed4e0[_0x3aa596(0x187)]:null,_0x3aa596(0x15f),!0x1,[_0x2ed4e0]);return _0x2ed4e0?(0x0,_0xfb6994['jsx'])(_0x30fd9d[_0x3aa596(0x151)],{'align':_0x3aa596(0x132),'disabled':_0x1d37a7===_0x3aa596(0x1f2),'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-gray-0\x20dark:!univer-text-gray-0','overlay':(0x0,_0xfb6994[_0x3aa596(0x131)])(_0x576351,{'status':_0x1d37a7,'coordinator':_0x2ed4e0}),'children':(0x0,_0xfb6994[_0x3aa596(0x131)])(_0x30fd9d[_0x3aa596(0x144)],{'size':'icon','variant':_0x3aa596(0x185),'disabled':_0x1d37a7===_0x3aa596(0x1f2),'type':_0x3aa596(0x138),'children':(0x0,_0xfb6994['jsx'])(_0x5d666f,{})})}):null;}function _0x576351(_0x40ec76){const _0x52205d=_0xe4c58d;let {status:_0x2042f1,coordinator:_0x5dd763}=_0x40ec76;switch(_0x2042f1){case'idle':return(0x0,_0xfb6994[_0x52205d(0x131)])(_0x2b9334,{'coordinator':_0x5dd763});case'following':return(0x0,_0xfb6994['jsx'])(_0x2f32dd,{'coordinator':_0x5dd763});case _0x52205d(0x12d):return(0x0,_0xfb6994[_0x52205d(0x131)])(_0x46d80d,{'coordinator':_0x5dd763});case _0x52205d(0x1f2):return(0x0,_0xfb6994[_0x52205d(0x131)])(_0x3990f4,{});case _0x52205d(0x19b):return(0x0,_0xfb6994['jsx'])(_0xc6d72,{'coordinator':_0x5dd763});default:return null;}}function _0x2b9334(_0xafdecf){const _0x1fe96f=_0xe4c58d;let {coordinator:_0x12ca6d}=_0xafdecf;return(0x0,_0xfb6994['jsxs'])(_0xfb6994[_0x1fe96f(0x126)],{'children':[(0x0,_0xfb6994[_0x1fe96f(0x131)])('div',{'className':_0x1fe96f(0x18c),'children':_0x1fe96f(0x197)}),(0x0,_0xfb6994[_0x1fe96f(0x131)])(_0x30fd9d[_0x1fe96f(0x144)],{'onClick':()=>_0x12ca6d[_0x1fe96f(0x17f)](),'children':'Start'})]});}function _0x2f32dd(_0x1f8c2f){const _0x209979=_0xe4c58d;let {coordinator:_0x5f279f}=_0x1f8c2f;return(0x0,_0xfb6994[_0x209979(0x1eb)])(_0xfb6994[_0x209979(0x126)],{'children':[(0x0,_0xfb6994[_0x209979(0x131)])(_0x209979(0x184),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x209979(0x173)}),(0x0,_0xfb6994['jsx'])(_0x30fd9d[_0x209979(0x144)],{'onClick':()=>_0x5f279f[_0x209979(0x124)](),'children':_0x209979(0x165)})]});}function _0x46d80d(_0x4bdca7){const _0xb19ff7=_0xe4c58d;let {coordinator:_0x2c95cf}=_0x4bdca7;return(0x0,_0xfb6994['jsxs'])(_0xfb6994[_0xb19ff7(0x126)],{'children':[(0x0,_0xfb6994[_0xb19ff7(0x131)])('div',{'className':_0xb19ff7(0x18c),'children':_0xb19ff7(0x19d)}),(0x0,_0xfb6994[_0xb19ff7(0x131)])(_0x30fd9d[_0xb19ff7(0x144)],{'variant':_0xb19ff7(0x185),'onClick':()=>_0x2c95cf[_0xb19ff7(0x145)](),'children':_0xb19ff7(0x1f9)})]});}function _0xc6d72(_0x2e3d2b){const _0x440585=_0xe4c58d;let {coordinator:_0x5a43a6}=_0x2e3d2b;return(0x0,_0xfb6994[_0x440585(0x1eb)])(_0xfb6994[_0x440585(0x126)],{'children':[(0x0,_0xfb6994[_0x440585(0x131)])(_0x440585(0x184),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x440585(0x140)}),(0x0,_0xfb6994[_0x440585(0x131)])(_0x30fd9d[_0x440585(0x144)],{'variant':_0x440585(0x1c8),'onClick':()=>_0x5a43a6[_0x440585(0x18d)](),'children':'Stop\x20presenting'})]});}function _0x3990f4(){const _0x558845=_0xe4c58d;return(0x0,_0xfb6994[_0x558845(0x131)])(_0xfb6994[_0x558845(0x126)],{'children':'You\x27are\x20offline.'});}let _0x5d0922=class extends _0x2a83f8['Disposable']{constructor(_0x2f4a7c,_0x29ac90){const _0x5b60f0=_0xe4c58d;super(),this[_0x5b60f0(0x192)]=_0x2f4a7c,this['_uiPartsService']=_0x29ac90,this[_0x5b60f0(0x169)]();}['_mountLiveShare'](){const _0x9e45d8=_0xe4c58d;this[_0x9e45d8(0x1e5)](this[_0x9e45d8(0x179)]['registerComponent'](_0x18944d[_0x9e45d8(0x1b5)][_0x9e45d8(0x157)],()=>(0x0,_0x18944d[_0x9e45d8(0x1e9)])(_0x49390d,this[_0x9e45d8(0x192)])));}};_0x5d0922=_0x3ae8e5([_0x26d1cf(0x0,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x2a83f8[_0xe4c58d(0x15b)])),_0x26d1cf(0x1,_0x18944d[_0xe4c58d(0x1e3)])],_0x5d0922);let _0xb30d4b=class extends _0x2a83f8[_0xe4c58d(0x154)]{constructor(_0x1ffd86=_0x5fbbf0,_0x2e138b,_0x32ebdb){const _0x10dc79=_0xe4c58d;super(),this['_config']=_0x1ffd86,this[_0x10dc79(0x192)]=_0x2e138b,this[_0x10dc79(0x1de)]=_0x32ebdb;let {..._0x46248c}=(0x0,_0x2a83f8[_0x10dc79(0x121)])({},_0x5fbbf0,this['_config']);this[_0x10dc79(0x1de)][_0x10dc79(0x1c1)](_0x10dc79(0x1ea),_0x46248c);}['onStarting'](){const _0x4747c9=_0xe4c58d;(0x0,_0x2a83f8['registerDependencies'])(this[_0x4747c9(0x192)],(0x0,_0x2a83f8['mergeOverrideWithDependencies'])([[_0x318b55],[_0x46ec36],[_0x34376d],[_0x5d0922]],this[_0x4747c9(0x189)][_0x4747c9(0x17e)])),(0x0,_0x2a83f8[_0x4747c9(0x152)])(this[_0x4747c9(0x192)],[[_0x34376d]]);}['onRendered'](){const _0x30b72a=_0xe4c58d;(0x0,_0x2a83f8[_0x30b72a(0x152)])(this[_0x30b72a(0x192)],[[_0x5d0922]]);}};_0x5470e1(_0xb30d4b,'type',_0x2a83f8['UniverInstanceType'][_0xe4c58d(0x122)]),_0x5470e1(_0xb30d4b,_0xe4c58d(0x11f),_0xe4c58d(0x1a4)),_0x5470e1(_0xb30d4b,_0xe4c58d(0x13f),_0x540f22),_0x5470e1(_0xb30d4b,_0xe4c58d(0x170),_0x41b195),_0xb30d4b=_0x3ae8e5([(0x0,_0x2a83f8['DependentOn'])(_0x4c4cea[_0xe4c58d(0x193)],_0x425778[_0xe4c58d(0x1c7)]),_0x26d1cf(0x1,(0x0,_0x2a83f8[_0xe4c58d(0x190)])(_0x2a83f8[_0xe4c58d(0x15b)])),_0x26d1cf(0x2,_0x2a83f8[_0xe4c58d(0x153)])],_0xb30d4b),Object[_0xe4c58d(0x11e)](_0xfff3f6,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x46ec36;}}),_0xfff3f6['LiveShareStatus']=_0x3b4078,Object['defineProperty'](_0xfff3f6,_0xe4c58d(0x17b),{'enumerable':!0x0,'get':function(){return _0xb30d4b;}});}));function _0x3f89(){const _0xbfc0=['pluginName','rxjs/operators','merge','UNIVER_UNKNOWN','_collabSession','stopFollowing','Disposable','Fragment','tag','operators','displayName','xlink:href','@univerjs/sheets','unitId','not-following','NOT_FOLLOWING','registerSharedOperation','reverse','jsx','end','subject','SetZoomRatioOperation','unsubscribe','find','parse','button','sheet','unit','_handleOffline','3754471VpqbnC','toDisposable','send','packageName','You\x27re\x20presenting\x20the\x20document','params','889944DLHZba','_status$','Button','startFollowing','293998BmMuAY','SetScrollOperation','presenter','useRef','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','UniverIcon','UniverDesign','_handleNewHost','ICommandService','BehaviorSubject','_reporters','Dropdown','touchDependencies','IConfigService','Plugin','colorChannel1','mask','HEADER_MENU','UniverProCollaborationClient','@univerjs-pro/collaboration-client','1140544Nlrbgb','Injector','object','idSuffix','delete','idle','getTypeOfUnitAdded$','length','_startFollowing','_fetchOperations','_handleTerminate','Stop\x20following','data','_sharedOperations','_status','_mountLiveShare','evenodd','_presenter','entries','http://www.w3.org/2000/svg','stroke','CollaborationEvent','version','substring','_handleOnline','You\x27re\x20following\x20the\x20presenter','mutations','Subject','InsertSheetMutation','function','1554456OpPyMW','_uiPartsService','getCurrentTypeOfUnit$','UniverLiveSharePlugin','next','LIVESHARE_OPERATION','override','tryStartPresenting','FOLLOWING','getStatus','React','values','div','text','getLiveShareCoordinator','status$','toString','_config','live-share-icon','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopPresenting','ONLINE','rxjs','Inject','type','_injector','UniverLicensePlugin','map','_unitID','fill','Present\x20this\x20document','createElement','add','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','presenting','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20not\x20following\x20the\x20presenter','_entities','_handleNewChangeSets','init','IDLE','amd','stringify','UNIVER_LIVE_SHARE_PLUGIN','1.0.0-beta.1','parseProtocolChangeset','complete','has','string','OFFLINE','iterator','includes','getMemberID','shouldShareOperation','_startLiveShareCoordinator','UniverProLiveShare','@univerjs-pro/collaboration','UniverInstanceType','attrs','dispose','BuiltInUIPart','getOwnPropertyDescriptor','UNIVER_SHEET','IUniverInstanceService','operations','getInitialStates','subscribe','NEW_CHANGESETS','url(#$1','10782iZdLFF','_beIdle','requireSession','setConfig','_collabSessionService','dispose$','children','useObservable','@univerjs/design','UniverCollaborationClientPlugin','default','replace','svg','onCommandExecuted','pipe','LIVESHARE_NEW_HOST','forEach','UniverProLicense','10RxJgXS','1em','takeUntil','LIVESHARE_REQUEST_HOST','getUnitId','_commandDisposable','_handleOperation','react','UniverUi','useMemo','1692128EUEQRN','2290iQFxwZ','path','8QBwUdP','_configService','decorate','getLiveShareCoordinatorSync','@univerjs-pro/license','random','IUIPartsService','SessionStatus','disposeWithMe','assign','get','CommandType','connectInjector','live-share.config','jsxs','prototype','_startPresenting','asObservable','_commandService','_stopFollowing','following','offline','_liveShareService','SetWorksheetActiveOperation','_init','useDependency','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sessionStatus$','Start\x20following','currentColor','executeCommand','defs','getValue','_univerInstanceService','from','defineProperty'];_0x3f89=function(){return _0xbfc0;};return _0x3f89();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Live share collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -62,25 +62,25 @@
|
|
|
62
62
|
"rxjs": ">=7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@univerjs/icons": "1.
|
|
66
|
-
"@univerjs-pro/collaboration
|
|
67
|
-
"@univerjs-pro/
|
|
68
|
-
"@univerjs/
|
|
69
|
-
"@univerjs/design": "1.0.0-
|
|
70
|
-
"@univerjs/sheets": "1.0.0-
|
|
71
|
-
"@univerjs/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs-
|
|
65
|
+
"@univerjs/icons": "1.35.0",
|
|
66
|
+
"@univerjs-pro/collaboration": "1.0.0-beta.1",
|
|
67
|
+
"@univerjs-pro/collaboration-client": "1.0.0-beta.1",
|
|
68
|
+
"@univerjs-pro/license": "1.0.0-beta.1",
|
|
69
|
+
"@univerjs/design": "1.0.0-beta.1",
|
|
70
|
+
"@univerjs/sheets": "1.0.0-beta.1",
|
|
71
|
+
"@univerjs/ui": "1.0.0-beta.1",
|
|
72
|
+
"@univerjs/core": "1.0.0-beta.1",
|
|
73
|
+
"@univerjs/sheets-ui": "1.0.0-beta.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"postcss": "^8.5.
|
|
76
|
+
"postcss": "^8.5.25",
|
|
77
77
|
"react": "18.3.1",
|
|
78
78
|
"rxjs": "7.8.2",
|
|
79
79
|
"tailwindcss": "3.4.17",
|
|
80
80
|
"typescript": "^6.0.3",
|
|
81
81
|
"vitest": "^4.1.10",
|
|
82
|
-
"@univerjs-infra/shared": "1.0.0-
|
|
83
|
-
"@univerjs/protocol": "1.0.0-
|
|
82
|
+
"@univerjs-infra/shared": "1.0.0-beta.1",
|
|
83
|
+
"@univerjs/protocol": "1.0.0-beta.1"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"test": "vitest run",
|