@univerjs-pro/live-share 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _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);
1
+ const _0x125e7a=_0x8279;(function(_0x2848de,_0xcc7645){const _0x1aba07=_0x8279,_0x1e2f53=_0x2848de();while(!![]){try{const _0xe1b4d=parseInt(_0x1aba07(0xa3))/0x1*(-parseInt(_0x1aba07(0x8e))/0x2)+-parseInt(_0x1aba07(0xb0))/0x3+parseInt(_0x1aba07(0x97))/0x4*(parseInt(_0x1aba07(0xb4))/0x5)+parseInt(_0x1aba07(0x93))/0x6+-parseInt(_0x1aba07(0x9d))/0x7+-parseInt(_0x1aba07(0xad))/0x8+parseInt(_0x1aba07(0xa7))/0x9;if(_0xe1b4d===_0xcc7645)break;else _0x1e2f53['push'](_0x1e2f53['shift']());}catch(_0x519e48){_0x1e2f53['push'](_0x1e2f53['shift']());}}}(_0x9a44,0x6fc67));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function _0x9a44(){const _0x1824f8=['tryStartPresenting','function','IDLE','4150194AgyCpW','FUniver','UniverInstanceType','IUniverInstanceService','310264mKxjHN','_injector','extend','iterator','default','FEnum','3283245JFgDTj','stopFollowing','LiveShareStatusEnum','defineProperty','No\x20active\x20workbook\x20found.','LiveShareController','478LtKYDA','symbol','getUnitId','startFollowing','20581200CmZloi','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startPresenting','string','getLiveShareCoordinatorSync','getCurrentUnitOfType','3575608dIeYIS','UNIVER_SHEET','stopPresenting','2600340aJMTgh','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareStatus','_liveShareController','5MlDrRC','object','constructor','LiveShareStatus','3412yxcJJJ','get'];_0x9a44=function(){return _0x1824f8;};return _0x9a44();}function r(_0x53791b){'@babel/helpers - typeof';const _0x3f08cc=_0x8279;return r=typeof Symbol=='function'&&typeof Symbol[_0x3f08cc(0x9a)]==_0x3f08cc(0xa4)?function(_0x528768){return typeof _0x528768;}:function(_0x26798c){const _0x59a55d=_0x3f08cc;return _0x26798c&&typeof Symbol==_0x59a55d(0x91)&&_0x26798c[_0x59a55d(0xb6)]===Symbol&&_0x26798c!==Symbol['prototype']?_0x59a55d(0xa4):typeof _0x26798c;},r(_0x53791b);}function _0x8279(_0x3157b1,_0x3c50df){_0x3157b1=_0x3157b1-0x8e;const _0x9a44f7=_0x9a44();let _0x827956=_0x9a44f7[_0x3157b1];return _0x827956;}function i(_0x3aa863,_0x20b2fc){const _0x3c9de0=_0x8279;if(r(_0x3aa863)!=_0x3c9de0(0xb5)||!_0x3aa863)return _0x3aa863;var _0x5d2653=_0x3aa863[Symbol['toPrimitive']];if(_0x5d2653!==void 0x0){var _0x58b162=_0x5d2653['call'](_0x3aa863,_0x20b2fc||_0x3c9de0(0x9b));if(r(_0x58b162)!=_0x3c9de0(0xb5))return _0x58b162;throw TypeError(_0x3c9de0(0xa8));}return(_0x20b2fc===_0x3c9de0(0xaa)?String:Number)(_0x3aa863);}function a(_0x175672){const _0x45b42c=_0x8279;var _0x257d66=i(_0x175672,_0x45b42c(0xaa));return r(_0x257d66)==_0x45b42c(0xa4)?_0x257d66:_0x257d66+'';}function o(_0x5cfc04,_0x17c019,_0x517547){const _0x5c5dd9=_0x8279;return(_0x17c019=a(_0x17c019))in _0x5cfc04?Object[_0x5c5dd9(0xa0)](_0x5cfc04,_0x17c019,{'value':_0x517547,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5cfc04[_0x17c019]=_0x517547,_0x5cfc04;}var s=class extends n[_0x125e7a(0x94)]{constructor(..._0x3a0165){const _0x5f1112=_0x125e7a;super(..._0x3a0165),o(this,_0x5f1112(0xb3),void 0x0);}['_initialize'](_0x7ba0b9){const _0x49da85=_0x125e7a;this['_liveShareController']=_0x7ba0b9[_0x49da85(0x8f)](e[_0x49da85(0xa2)]);}[_0x125e7a(0xb2)](){const _0x42bc4b=_0x125e7a;let _0x138c81=this[_0x42bc4b(0x98)][_0x42bc4b(0x8f)](t[_0x42bc4b(0x96)])[_0x42bc4b(0xac)](t[_0x42bc4b(0x95)][_0x42bc4b(0xae)]);if(!_0x138c81)throw Error(_0x42bc4b(0xa1));let _0x32fe54=_0x138c81['getUnitId'](),_0x37d245=this[_0x42bc4b(0xb3)][_0x42bc4b(0xab)](_0x32fe54);return(_0x37d245==null?void 0x0:_0x37d245['getStatus']())??e[_0x42bc4b(0xb7)][_0x42bc4b(0x92)];}[_0x125e7a(0xa6)](){const _0x3dbc40=_0x125e7a;let _0xc49314=this[_0x3dbc40(0x98)][_0x3dbc40(0x8f)](t['IUniverInstanceService'])[_0x3dbc40(0xac)](t[_0x3dbc40(0x95)]['UNIVER_SHEET']);if(!_0xc49314)throw Error(_0x3dbc40(0xa1));let _0x42f986=_0xc49314[_0x3dbc40(0xa5)](),_0x173f61=this[_0x3dbc40(0xb3)][_0x3dbc40(0xab)](_0x42f986);if(!_0x173f61)throw Error(_0x3dbc40(0xb1));_0x173f61[_0x3dbc40(0xa6)]();}[_0x125e7a(0x9e)](){const _0xf08b73=_0x125e7a;let _0x339dcc=this['_injector'][_0xf08b73(0x8f)](t[_0xf08b73(0x96)])[_0xf08b73(0xac)](t[_0xf08b73(0x95)][_0xf08b73(0xae)]);if(!_0x339dcc)throw Error('No\x20active\x20workbook\x20found.');let _0x439a3a=_0x339dcc[_0xf08b73(0xa5)](),_0xfc28f7=this[_0xf08b73(0xb3)][_0xf08b73(0xab)](_0x439a3a);if(!_0xfc28f7)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xfc28f7[_0xf08b73(0x9e)]();}[_0x125e7a(0xa9)](){const _0x2b8db4=_0x125e7a;let _0x346022=this[_0x2b8db4(0x98)][_0x2b8db4(0x8f)](t[_0x2b8db4(0x96)])[_0x2b8db4(0xac)](t[_0x2b8db4(0x95)][_0x2b8db4(0xae)]);if(!_0x346022)throw Error(_0x2b8db4(0xa1));let _0xd135ae=_0x346022[_0x2b8db4(0xa5)](),_0x405d17=this[_0x2b8db4(0xb3)]['getLiveShareCoordinatorSync'](_0xd135ae);if(!_0x405d17)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x405d17[_0x2b8db4(0x90)]();}['stopPresenting'](){const _0x44f117=_0x125e7a;let _0x20cd0d=this[_0x44f117(0x98)][_0x44f117(0x8f)](t[_0x44f117(0x96)])[_0x44f117(0xac)](t[_0x44f117(0x95)]['UNIVER_SHEET']);if(!_0x20cd0d)throw Error('No\x20active\x20workbook\x20found.');let _0x4792c8=_0x20cd0d[_0x44f117(0xa5)](),_0x5e8763=this[_0x44f117(0xb3)][_0x44f117(0xab)](_0x4792c8);if(!_0x5e8763)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5e8763[_0x44f117(0xaf)]();}};n[_0x125e7a(0x94)]['extend'](s);var c=class extends n[_0x125e7a(0x9c)]{get[_0x125e7a(0x9f)](){return e['LiveShareStatus'];}};n['FEnum'][_0x125e7a(0x99)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
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;}});
1
+ const _0x4cd5d4=_0x5bfe;(function(_0x418cc3,_0x294bf9){const _0x2e2a03=_0x5bfe,_0x940577=_0x418cc3();while(!![]){try{const _0x173e31=-parseInt(_0x2e2a03(0x23c))/0x1+parseInt(_0x2e2a03(0x250))/0x2+-parseInt(_0x2e2a03(0x240))/0x3+parseInt(_0x2e2a03(0x2a9))/0x4+-parseInt(_0x2e2a03(0x20b))/0x5+parseInt(_0x2e2a03(0x204))/0x6*(parseInt(_0x2e2a03(0x22d))/0x7)+parseInt(_0x2e2a03(0x20a))/0x8;if(_0x173e31===_0x294bf9)break;else _0x940577['push'](_0x940577['shift']());}catch(_0x243627){_0x940577['push'](_0x940577['shift']());}}}(_0x184e,0x3b0da),Object['defineProperty'](exports,Symbol[_0x4cd5d4(0x261)],{'value':_0x4cd5d4(0x231)}));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(_0x986b40){'@babel/helpers - typeof';const _0x348da0=_0x4cd5d4;return p=typeof Symbol==_0x348da0(0x281)&&typeof Symbol[_0x348da0(0x29d)]==_0x348da0(0x2a1)?function(_0x49f12a){return typeof _0x49f12a;}:function(_0x196d15){const _0x497078=_0x348da0;return _0x196d15&&typeof Symbol==_0x497078(0x281)&&_0x196d15[_0x497078(0x237)]===Symbol&&_0x196d15!==Symbol[_0x497078(0x242)]?_0x497078(0x2a1):typeof _0x196d15;},p(_0x986b40);}function m(_0x3a1483,_0x1a6f0c){const _0x321ac4=_0x4cd5d4;if(p(_0x3a1483)!=_0x321ac4(0x25b)||!_0x3a1483)return _0x3a1483;var _0x5d8519=_0x3a1483[Symbol[_0x321ac4(0x20f)]];if(_0x5d8519!==void 0x0){var _0x243228=_0x5d8519[_0x321ac4(0x285)](_0x3a1483,_0x1a6f0c||_0x321ac4(0x263));if(p(_0x243228)!=_0x321ac4(0x25b))return _0x243228;throw TypeError(_0x321ac4(0x1f9));}return(_0x1a6f0c==='string'?String:Number)(_0x3a1483);}function h(_0x38f59c){const _0x100060=_0x4cd5d4;var _0x1ab88a=m(_0x38f59c,'string');return p(_0x1ab88a)==_0x100060(0x2a1)?_0x1ab88a:_0x1ab88a+'';}function g(_0x57d29c,_0x12ae90,_0x219661){const _0x4b6724=_0x4cd5d4;return(_0x12ae90=h(_0x12ae90))in _0x57d29c?Object[_0x4b6724(0x2aa)](_0x57d29c,_0x12ae90,{'value':_0x219661,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57d29c[_0x12ae90]=_0x219661,_0x57d29c;}var _=class extends n[_0x4cd5d4(0x227)]{constructor(..._0xf16687){const _0x4be9c2=_0x4cd5d4;super(..._0xf16687),g(this,'_sharedOperations',new Set()),g(this,_0x4be9c2(0x224),new Set());}[_0x4cd5d4(0x257)](_0x479d01){const _0x4cd8e6=_0x4cd5d4;return this[_0x4cd8e6(0x1fc)][_0x4cd8e6(0x262)](_0x479d01),(0x0,n['toDisposable'])(()=>this['_sharedOperations']['delete'](_0x479d01));}['registerInitialStateReporter'](_0x4ef483){const _0x320186=_0x4cd5d4;return this[_0x320186(0x224)]['add'](_0x4ef483),(0x0,n[_0x320186(0x27d)])(()=>this['_reporters'][_0x320186(0x294)](_0x4ef483));}[_0x4cd5d4(0x21d)](_0x4a6242){const _0x1a9cdb=_0x4cd5d4;return this['_sharedOperations'][_0x1a9cdb(0x243)](_0x4a6242);}['getInitialStates'](_0x2776bb){const _0x3d19eb=_0x4cd5d4;return Array['from'](this[_0x3d19eb(0x224)])['map'](_0xbf8d43=>_0xbf8d43(_0x2776bb));}};function v(_0x385029,_0x85eb47){return function(_0xed2365,_0x34ef53){_0x85eb47(_0xed2365,_0x34ef53,_0x385029);};}function y(_0x84b04b,_0x132425,_0x572f16,_0x4d53bd){const _0x46ea42=_0x4cd5d4;var _0x474f2f=arguments[_0x46ea42(0x264)],_0x50b9e7=_0x474f2f<0x3?_0x132425:_0x4d53bd===null?_0x4d53bd=Object[_0x46ea42(0x244)](_0x132425,_0x572f16):_0x4d53bd,_0x2b5289;if(typeof Reflect==_0x46ea42(0x25b)&&typeof Reflect[_0x46ea42(0x249)]==_0x46ea42(0x281))_0x50b9e7=Reflect['decorate'](_0x84b04b,_0x132425,_0x572f16,_0x4d53bd);else{for(var _0x329f8c=_0x84b04b['length']-0x1;_0x329f8c>=0x0;_0x329f8c--)(_0x2b5289=_0x84b04b[_0x329f8c])&&(_0x50b9e7=(_0x474f2f<0x3?_0x2b5289(_0x50b9e7):_0x474f2f>0x3?_0x2b5289(_0x132425,_0x572f16,_0x50b9e7):_0x2b5289(_0x132425,_0x572f16))||_0x50b9e7);}return _0x474f2f>0x3&&_0x50b9e7&&Object[_0x46ea42(0x2aa)](_0x132425,_0x572f16,_0x50b9e7),_0x50b9e7;}let b=class extends n[_0x4cd5d4(0x1ff)]{constructor(_0x5251c1,_0x464d50,_0x1bf942){const _0x4e2104=_0x4cd5d4;super(),this['_univerInstanceService']=_0x5251c1,this[_0x4e2104(0x2ac)]=_0x464d50,this[_0x4e2104(0x2a7)]=_0x1bf942,g(this,_0x4e2104(0x267),new Map()),this[_0x4e2104(0x226)]();}async[_0x4cd5d4(0x24c)](_0x404a2d){const _0x3b028f=_0x4cd5d4;return this['_entities'][_0x3b028f(0x243)](_0x404a2d)||await this[_0x3b028f(0x228)](_0x404a2d),this['_entities'][_0x3b028f(0x273)](_0x404a2d);}[_0x4cd5d4(0x229)](_0x36db3f){const _0x1295f6=_0x4cd5d4;return this[_0x1295f6(0x267)]['get'](_0x36db3f)??null;}[_0x4cd5d4(0x226)](){const _0x1cff13=_0x4cd5d4;this['_univerInstanceService'][_0x1cff13(0x29a)](n[_0x1cff13(0x1f7)][_0x1cff13(0x27b)])[_0x1cff13(0x29f)]((0x0,a[_0x1cff13(0x297)])(this[_0x1cff13(0x2a4)]))[_0x1cff13(0x1fd)](async _0x23b198=>{const _0x58fe4f=_0x1cff13;let _0x1ccc89=_0x23b198[_0x58fe4f(0x251)][_0x58fe4f(0x27e)]();this[_0x58fe4f(0x267)]['has'](_0x1ccc89)||this[_0x58fe4f(0x228)](_0x1ccc89);}),this[_0x1cff13(0x293)][_0x1cff13(0x277)](n[_0x1cff13(0x1f7)]['UNIVER_SHEET'])[_0x1cff13(0x29f)]((0x0,a[_0x1cff13(0x297)])(this[_0x1cff13(0x2a4)]))[_0x1cff13(0x1fd)](_0x350b22=>{const _0xc6da46=_0x1cff13;let _0x3a9649=_0x350b22[_0xc6da46(0x27e)](),_0x4d8d20=this['_entities']['get'](_0x3a9649);_0x4d8d20==null||_0x4d8d20[_0xc6da46(0x24b)]();});}async[_0x4cd5d4(0x228)](_0x575a79){const _0x36dac8=_0x4cd5d4;let _0x2b9ef6=await this[_0x36dac8(0x2a7)][_0x36dac8(0x201)](_0x575a79),_0xfbf393=this['_injector'][_0x36dac8(0x26a)](S,_0x575a79,_0x2b9ef6);return _0xfbf393[_0x36dac8(0x28e)](),this['_entities'][_0x36dac8(0x274)](_0x575a79,_0xfbf393),_0xfbf393;}};b=y([v(0x0,n[_0x4cd5d4(0x247)]),v(0x1,(0x0,n[_0x4cd5d4(0x27a)])(n[_0x4cd5d4(0x235)])),v(0x2,(0x0,n[_0x4cd5d4(0x27a)])(t[_0x4cd5d4(0x232)]))],b);let x=function(_0x1aa42d){const _0x57767a=_0x4cd5d4;return _0x1aa42d[_0x57767a(0x245)]=_0x57767a(0x23f),_0x1aa42d[_0x57767a(0x28b)]='idle',_0x1aa42d[_0x57767a(0x24a)]=_0x57767a(0x26e),_0x1aa42d[_0x57767a(0x210)]='not-following',_0x1aa42d['PRESENTING']=_0x57767a(0x265),_0x1aa42d;}({}),S=class extends n[_0x4cd5d4(0x1ff)]{get['_status'](){const _0x9190b4=_0x4cd5d4;return this['_status$'][_0x9190b4(0x213)]();}constructor(_0xa85476,_0x43d573,_0x477ea6,_0x2fc6da,_0x464a25){const _0x49c026=_0x4cd5d4;super(),this['_unitID']=_0xa85476,this[_0x49c026(0x26f)]=_0x43d573,this[_0x49c026(0x279)]=_0x477ea6,this[_0x49c026(0x25a)]=_0x2fc6da,this[_0x49c026(0x209)]=_0x464a25,g(this,'_status$',new i['BehaviorSubject'](_0x49c026(0x280))),g(this,_0x49c026(0x20c),this[_0x49c026(0x29e)][_0x49c026(0x298)]()),g(this,'_init',!0x1),g(this,_0x49c026(0x246),null),g(this,'_presenter',null);}['dispose'](){const _0x2bf6b3=_0x4cd5d4;var _0x12f382;(_0x12f382=this[_0x2bf6b3(0x246)])==null||_0x12f382[_0x2bf6b3(0x24b)](),this[_0x2bf6b3(0x29e)][_0x2bf6b3(0x253)](_0x2bf6b3(0x280)),this[_0x2bf6b3(0x29e)][_0x2bf6b3(0x296)]();}[_0x4cd5d4(0x282)](){const _0xee01c1=_0x4cd5d4;return this[_0xee01c1(0x1f6)];}[_0x4cd5d4(0x28e)](){const _0x51a081=_0x4cd5d4;this[_0x51a081(0x226)]||(this['_init']=!0x0,this['_collabSession'][_0x51a081(0x275)][_0x51a081(0x29f)]((0x0,a['takeUntil'])(this[_0x51a081(0x2a4)]))[_0x51a081(0x1fd)](_0x4c583e=>{const _0x415105=_0x51a081;switch(_0x4c583e){case t[_0x415105(0x233)]['OFFLINE']:this[_0x415105(0x22e)]();break;case t['SessionStatus']['ONLINE']:this[_0x415105(0x2a8)]();break;default:}}),this[_0x51a081(0x26f)][_0x51a081(0x21a)][_0x51a081(0x29f)]((0x0,a[_0x51a081(0x297)])(this['dispose$']))[_0x51a081(0x1fd)](_0x182c60=>{const _0x49e355=_0x51a081;let {eventID:_0x58e7d6}=_0x182c60;switch(_0x58e7d6){case e[_0x49e355(0x21c)][_0x49e355(0x270)]:this[_0x49e355(0x21f)](_0x182c60);break;case e[_0x49e355(0x21c)]['LIVESHARE_OPERATION']:this[_0x49e355(0x299)](_0x182c60);break;case e[_0x49e355(0x21c)][_0x49e355(0x23e)]:this[_0x49e355(0x2ad)]();break;case e[_0x49e355(0x21c)][_0x49e355(0x218)]:this['_handleNewChangeSets'](_0x182c60);break;default:}}));}[_0x4cd5d4(0x2a5)](){const _0x20f47f=_0x4cd5d4;this[_0x20f47f(0x26f)][_0x20f47f(0x287)]({'eventID':e[_0x20f47f(0x21c)][_0x20f47f(0x217)],'data':{'unitID':this[_0x20f47f(0x214)],'userID':this['_collabSession'][_0x20f47f(0x2b0)]()}},this['_unitID']);}[_0x4cd5d4(0x22c)](){const _0x43d5f7=_0x4cd5d4;this[_0x43d5f7(0x1f6)]==='presenting'&&(this[_0x43d5f7(0x29e)][_0x43d5f7(0x253)]('idle'),this[_0x43d5f7(0x26f)][_0x43d5f7(0x287)]({'eventID':e['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x43d5f7(0x214)]}},this['_unitID']));}[_0x4cd5d4(0x24f)](){const _0x8ca288=_0x4cd5d4;this[_0x8ca288(0x1f6)]===_0x8ca288(0x260)&&(this['_status$'][_0x8ca288(0x253)](_0x8ca288(0x26e)),this[_0x8ca288(0x289)]());}[_0x4cd5d4(0x1fe)](){const _0x4a1a52=_0x4cd5d4;this[_0x4a1a52(0x1f6)]===_0x4a1a52(0x26e)&&this[_0x4a1a52(0x269)]();}[_0x4cd5d4(0x21f)](_0x17dc2d){const _0x274b14=_0x4cd5d4;let {presenter:_0x4ac4a3}=_0x17dc2d[_0x274b14(0x286)],_0x59c3b3=this['_collabSession'][_0x274b14(0x2b0)]();this[_0x274b14(0x276)]=_0x4ac4a3,_0x4ac4a3===_0x59c3b3?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x274b14(0x290)](),this[_0x274b14(0x289)]());}['_fetchOperations'](){const _0x28ca23=_0x4cd5d4;let _0x3d1dc8={'eventID':e[_0x28ca23(0x21c)][_0x28ca23(0x255)]};this[_0x28ca23(0x26f)]['send'](_0x3d1dc8,this[_0x28ca23(0x214)]);}[_0x4cd5d4(0x2ad)](){const _0x5141b7=_0x4cd5d4;this[_0x5141b7(0x276)]=null,this['_status']!==_0x5141b7(0x265)&&this['_beIdle']();}[_0x4cd5d4(0x200)](_0x3141bf){const _0xcd9e5d=_0x4cd5d4;if(this[_0xcd9e5d(0x1f6)]===_0xcd9e5d(0x26e)&&this[_0xcd9e5d(0x276)]===_0x3141bf['data'][_0xcd9e5d(0x284)]){let _0x17bd79=(0x0,e[_0xcd9e5d(0x22a)])(_0x3141bf[_0xcd9e5d(0x286)])[_0xcd9e5d(0x1fb)][_0xcd9e5d(0x24d)]()[_0xcd9e5d(0x236)](_0x58266b=>_0x58266b['id']===r[_0xcd9e5d(0x2ab)]['id']);if(_0x17bd79){let _0x18ef22=_0x17bd79[_0xcd9e5d(0x215)][_0xcd9e5d(0x206)],_0x23339f=_0x17bd79[_0xcd9e5d(0x215)]['sheet']['id'];setTimeout(()=>{const _0x43b21c=_0xcd9e5d;this['_commandService'][_0x43b21c(0x23d)](r[_0x43b21c(0x27f)]['id'],{'unitId':_0x18ef22,'subUnitId':_0x23339f},{'fromCollab':!0x0});});}}}[_0x4cd5d4(0x202)](){const _0x23dd83=_0x4cd5d4;var _0x3fc63d;(_0x3fc63d=this['_commandDisposable'])==null||_0x3fc63d[_0x23dd83(0x24b)](),this[_0x23dd83(0x29e)][_0x23dd83(0x253)](_0x23dd83(0x265));let _0x922d71=new Map(),_0x44fbdf=this[_0x23dd83(0x246)]=new n[(_0x23dd83(0x1f8))]();_0x44fbdf[_0x23dd83(0x262)]((0x0,n[_0x23dd83(0x27d)])(()=>{const _0x2141a9=_0x23dd83;_0x922d71[_0x2141a9(0x20d)](({subject:_0x568c13,subscription:_0x5219db})=>{const _0x4fb80e=_0x2141a9;_0x5219db[_0x4fb80e(0x21e)](),_0x568c13['complete']();}),_0x922d71[_0x2141a9(0x278)]();})),_0x44fbdf[_0x23dd83(0x262)](this[_0x23dd83(0x209)][_0x23dd83(0x2ae)](_0x16da2b=>{const _0x378b7f=_0x23dd83;if(_0x16da2b[_0x378b7f(0x205)]!==n['CommandType'][_0x378b7f(0x230)]||!this['_liveShareService'][_0x378b7f(0x21d)](_0x16da2b['id']))return;let {id:_0x5ef676}=_0x16da2b,_0x256ab3;if(_0x922d71[_0x378b7f(0x243)](_0x5ef676))_0x256ab3=_0x922d71[_0x378b7f(0x273)](_0x5ef676)[_0x378b7f(0x25d)];else{_0x256ab3=new i[(_0x378b7f(0x268))]();let _0x3d756e=_0x256ab3[_0x378b7f(0x29f)]((0x0,a[_0x378b7f(0x23a)])(this[_0x378b7f(0x279)][_0x378b7f(0x219)](_0x378b7f(0x234))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x378b7f(0x1fd)](_0x4d3281=>{const _0x5d33a8=_0x378b7f;this[_0x5d33a8(0x26f)][_0x5d33a8(0x287)]({'eventID':e[_0x5d33a8(0x21c)][_0x5d33a8(0x2a6)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d3281['id']]:{'id':_0x4d3281['id'],'params':JSON[_0x5d33a8(0x1f3)](_0x4d3281[_0x5d33a8(0x215)])}}}},this[_0x5d33a8(0x214)]);});_0x922d71['set'](_0x5ef676,{'subject':_0x256ab3,'subscription':_0x3d756e});}_0x256ab3[_0x378b7f(0x253)](_0x16da2b);})),this[_0x23dd83(0x25a)][_0x23dd83(0x28d)](this['_unitID'])[_0x23dd83(0x20d)](_0x25ef3b=>this['_collabSession'][_0x23dd83(0x287)]({'eventID':e[_0x23dd83(0x21c)][_0x23dd83(0x2a6)],'data':{'unitID':this['_unitID'],'operations':{[_0x25ef3b['id']]:{'id':_0x25ef3b['id'],'params':JSON[_0x23dd83(0x1f3)](_0x25ef3b['params'])}}}},this[_0x23dd83(0x214)]));}[_0x4cd5d4(0x290)](){const _0x3839cf=_0x4cd5d4;var _0x1fb0a6;this[_0x3839cf(0x29e)][_0x3839cf(0x253)](_0x3839cf(0x280)),(_0x1fb0a6=this[_0x3839cf(0x246)])==null||_0x1fb0a6[_0x3839cf(0x24b)](),this['_commandDisposable']=null;}[_0x4cd5d4(0x289)](){const _0x1b0fdf=_0x4cd5d4;var _0x302249;(_0x302249=this[_0x1b0fdf(0x246)])==null||_0x302249[_0x1b0fdf(0x24b)](),this[_0x1b0fdf(0x29e)][_0x1b0fdf(0x253)](_0x1b0fdf(0x26e));}['_beIdle'](){const _0x4f309f=_0x4cd5d4;var _0x2cf0d6;this[_0x4f309f(0x29e)][_0x4f309f(0x253)]('idle'),(_0x2cf0d6=this['_commandDisposable'])==null||_0x2cf0d6['dispose'](),this[_0x4f309f(0x246)]=null;}['_stopFollowing'](){const _0x22f730=_0x4cd5d4;var _0x146b25;this[_0x22f730(0x29e)][_0x22f730(0x253)]('not-following'),(_0x146b25=this[_0x22f730(0x246)])==null||_0x146b25[_0x22f730(0x24b)]();}[_0x4cd5d4(0x299)](_0x3f41ad){const _0x428437=_0x4cd5d4;if([_0x428437(0x265),_0x428437(0x260),_0x428437(0x23f)][_0x428437(0x26b)](this[_0x428437(0x1f6)])||!_0x3f41ad['data'][_0x428437(0x288)]||_0x3f41ad[_0x428437(0x286)][_0x428437(0x288)]===this[_0x428437(0x26f)][_0x428437(0x2b0)]())return;this[_0x428437(0x1f6)]===_0x428437(0x280)&&this['_startFollowing']();let _0x5af68c=_0x3f41ad[_0x428437(0x286)]['operations'];Object['values'](_0x5af68c)[_0x428437(0x20d)](_0x2a3a76=>{const _0x2b4a46=_0x428437;this[_0x2b4a46(0x209)][_0x2b4a46(0x23d)](_0x2a3a76['id'],_0x2a3a76['params']?JSON[_0x2b4a46(0x25e)](_0x2a3a76[_0x2b4a46(0x215)]):null,{'fromCollab':!0x0});});}[_0x4cd5d4(0x22e)](){const _0x1a138e=_0x4cd5d4;var _0x2e4210;this[_0x1a138e(0x29e)]['next'](_0x1a138e(0x23f)),(_0x2e4210=this[_0x1a138e(0x246)])==null||_0x2e4210['dispose']();}['_handleOnline'](){const _0x6b6b1a=_0x4cd5d4;this[_0x6b6b1a(0x29e)][_0x6b6b1a(0x253)]('idle'),this['_fetchOperations']();}};S=y([v(0x2,n['IConfigService']),v(0x3,(0x0,n[_0x4cd5d4(0x27a)])(_)),v(0x4,n[_0x4cd5d4(0x239)])],S);var C='@univerjs-pro/live-share',w=_0x4cd5d4(0x212);const T={};function _0x5bfe(_0x2dbf49,_0x1c462b){_0x2dbf49=_0x2dbf49-0x1f3;const _0x184ee8=_0x184e();let _0x5bfe32=_0x184ee8[_0x2dbf49];return _0x5bfe32;}let E=class extends n['Disposable']{constructor(_0x587065){const _0x1e2c16=_0x4cd5d4;super(),this[_0x1e2c16(0x25a)]=_0x587065,this['_init']();}[_0x4cd5d4(0x226)](){const _0x246560=_0x4cd5d4;[s[_0x246560(0x21b)]['id'],s[_0x246560(0x216)]['id'],r['SetWorksheetActiveOperation']['id']]['forEach'](_0x4fc373=>{const _0x154942=_0x246560;this['disposeWithMe'](this[_0x154942(0x25a)]['registerSharedOperation'](_0x4fc373));});}};E=y([v(0x0,(0x0,n['Inject'])(_))],E);function D(){const _0x293a36=_0x4cd5d4;let _0x43f459=(0x0,c[_0x293a36(0x223)])(b),_0x374dba=(0x0,c[_0x293a36(0x223)])(n[_0x293a36(0x247)]),_0x5a10cd=(0x0,c[_0x293a36(0x28f)])(()=>_0x374dba[_0x293a36(0x207)](n[_0x293a36(0x1f7)][_0x293a36(0x27b)]),void 0x0,!0x1,[]),_0x53ac2a=(0x0,c[_0x293a36(0x28f)])((0x0,d[_0x293a36(0x225)])(()=>_0x5a10cd?(0x0,i['defer'])(()=>(0x0,i['from'])(_0x43f459[_0x293a36(0x24c)](_0x5a10cd['getUnitId']()))):(0x0,i['of'])(null),[_0x5a10cd,_0x43f459]),null),_0x406412=(0x0,c['useObservable'])(_0x53ac2a?()=>_0x53ac2a[_0x293a36(0x20c)]:null,_0x293a36(0x280),!0x1,[_0x53ac2a]);return _0x53ac2a?(0x0,f[_0x293a36(0x29b)])(l[_0x293a36(0x222)],{'align':_0x293a36(0x238),'disabled':_0x406412===_0x293a36(0x23f),'className':_0x293a36(0x1fa),'overlay':(0x0,f[_0x293a36(0x29b)])(O,{'status':_0x406412,'coordinator':_0x53ac2a}),'children':(0x0,f[_0x293a36(0x29b)])(l[_0x293a36(0x1f4)],{'size':_0x293a36(0x248),'variant':_0x293a36(0x25f),'disabled':_0x406412===_0x293a36(0x23f),'type':'button','children':(0x0,f[_0x293a36(0x29b)])(u[_0x293a36(0x271)],{})})}):null;}function O(_0x2d063d){const _0x3180f7=_0x4cd5d4;let {status:_0x4a5d1b,coordinator:_0x55f349}=_0x2d063d;switch(_0x4a5d1b){case _0x3180f7(0x280):return(0x0,f['jsx'])(k,{'coordinator':_0x55f349});case _0x3180f7(0x26e):return(0x0,f[_0x3180f7(0x29b)])(A,{'coordinator':_0x55f349});case'not-following':return(0x0,f[_0x3180f7(0x29b)])(j,{'coordinator':_0x55f349});case'offline':return(0x0,f[_0x3180f7(0x29b)])(N,{});case _0x3180f7(0x265):return(0x0,f[_0x3180f7(0x29b)])(M,{'coordinator':_0x55f349});default:return null;}}function k(_0x382b6c){const _0x474b62=_0x4cd5d4;let {coordinator:_0x1b039c}=_0x382b6c;return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f[_0x474b62(0x29b)])(_0x474b62(0x26d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x474b62(0x2af)}),(0x0,f[_0x474b62(0x29b)])(l[_0x474b62(0x1f4)],{'onClick':()=>_0x1b039c[_0x474b62(0x2a5)](),'children':'Start'})]});}function A(_0x502c0c){const _0x1a54e0=_0x4cd5d4;let {coordinator:_0x5ca416}=_0x502c0c;return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f['jsx'])(_0x1a54e0(0x26d),{'className':_0x1a54e0(0x2a2),'children':_0x1a54e0(0x20e)}),(0x0,f[_0x1a54e0(0x29b)])(l[_0x1a54e0(0x1f4)],{'onClick':()=>_0x5ca416[_0x1a54e0(0x1fe)](),'children':_0x1a54e0(0x24e)})]});}function j(_0x52221b){const _0x2ae193=_0x4cd5d4;let {coordinator:_0x45f95a}=_0x52221b;return(0x0,f[_0x2ae193(0x220)])(f[_0x2ae193(0x25c)],{'children':[(0x0,f[_0x2ae193(0x29b)])(_0x2ae193(0x26d),{'className':_0x2ae193(0x2a2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,f[_0x2ae193(0x29b)])(l['Button'],{'variant':_0x2ae193(0x25f),'onClick':()=>_0x45f95a['startFollowing'](),'children':_0x2ae193(0x22b)})]});}function M(_0x976f35){const _0x4b9364=_0x4cd5d4;let {coordinator:_0x17c26b}=_0x976f35;return(0x0,f[_0x4b9364(0x220)])(f[_0x4b9364(0x25c)],{'children':[(0x0,f[_0x4b9364(0x29b)])(_0x4b9364(0x26d),{'className':_0x4b9364(0x2a2),'children':_0x4b9364(0x26c)}),(0x0,f['jsx'])(l['Button'],{'variant':_0x4b9364(0x263),'onClick':()=>_0x17c26b[_0x4b9364(0x22c)](),'children':_0x4b9364(0x254)})]});}function N(){const _0xaeef82=_0x4cd5d4;return(0x0,f[_0xaeef82(0x29b)])(f['Fragment'],{'children':_0xaeef82(0x259)});}let P=class extends n[_0x4cd5d4(0x227)]{constructor(_0x1dc6b7,_0x5850f7){const _0xf0da8d=_0x4cd5d4;super(),this[_0xf0da8d(0x2ac)]=_0x1dc6b7,this[_0xf0da8d(0x23b)]=_0x5850f7,this[_0xf0da8d(0x27c)]();}['_mountLiveShare'](){const _0x2cc84f=_0x4cd5d4;this[_0x2cc84f(0x2a0)](this[_0x2cc84f(0x23b)][_0x2cc84f(0x252)](c[_0x2cc84f(0x208)]['HEADER_MENU'],()=>(0x0,c[_0x2cc84f(0x22f)])(D,this[_0x2cc84f(0x2ac)])));}};P=y([v(0x0,(0x0,n[_0x4cd5d4(0x27a)])(n['Injector'])),v(0x1,c[_0x4cd5d4(0x258)])],P);function _0x184e(){const _0x171ea8=['FOLLOWING','dispose','getLiveShareCoordinator','reverse','Stop\x20following','startFollowing','118554aUSQsm','unit','registerComponent','next','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','mergeOverrideWithDependencies','registerSharedOperation','IUIPartsService','You\x27are\x20offline.','_liveShareService','object','Fragment','subject','parse','text','not-following','toStringTag','add','default','length','presenting','touchDependencies','_entities','Subject','_stopFollowing','createInstance','includes','You\x27re\x20presenting\x20the\x20document','div','following','_collabSession','LIVESHARE_NEW_HOST','LiveShareIcon','DependentOn','get','set','sessionStatus$','_presenter','getTypeOfUnitDisposed$','clear','_configService','Inject','UNIVER_SHEET','_mountLiveShare','toDisposable','getUnitId','SetWorksheetActiveOperation','idle','function','getStatus','onStarting','memberID','call','data','send','presenter','_startFollowing','UNIVER_UNKNOWN','IDLE','LiveShareController','getInitialStates','init','useObservable','_stopPresenting','registerDependencies','merge','_univerInstanceService','delete','_config','complete','takeUntil','asObservable','_handleOperation','getTypeOfUnitAdded$','jsx','UniverLiveSharePlugin','iterator','_status$','pipe','disposeWithMe','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','version','dispose$','tryStartPresenting','LIVESHARE_OPERATION','_collabSessionService','_handleOnline','1169608HJrCaY','defineProperty','InsertSheetMutation','_injector','_handleTerminate','onCommandExecuted','Present\x20this\x20document','getMemberID','stringify','Button','onRendered','_status','UniverInstanceType','DisposableCollection','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','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','mutations','_sharedOperations','subscribe','stopFollowing','RxDisposable','_handleNewChangeSets','requireSession','_startPresenting','override','6zLcRxP','type','unitId','getCurrentTypeOfUnit$','BuiltInUIPart','_commandService','4797248QjqQVz','1705580EoTXiG','status$','forEach','You\x27re\x20following\x20the\x20presenter','toPrimitive','NOT_FOLLOWING','LiveShareStatus','1.0.0-beta.2','getValue','_unitID','params','SetScrollOperation','LIVESHARE_REQUEST_HOST','NEW_CHANGESETS','getConfig','event$','SetZoomRatioOperation','CollaborationEvent','shouldShareOperation','unsubscribe','_handleNewHost','jsxs','IConfigService','Dropdown','useDependency','_reporters','useMemo','_init','Disposable','_startLiveShareCoordinator','getLiveShareCoordinatorSync','parseProtocolChangeset','Start\x20following','stopPresenting','2540832VTBYAs','_handleOffline','connectInjector','OPERATION','Module','CollaborationSessionService','SessionStatus','SAME_OPERATION_SHARE_INTERVAL','Injector','find','constructor','end','ICommandService','throttleTime','_uiPartsService','474847VtUsmi','executeCommand','LIVESHARE_TERMINATE','offline','769398laysCA','UniverCollaborationClientPlugin','prototype','has','getOwnPropertyDescriptor','OFFLINE','_commandDisposable','IUniverInstanceService','icon','decorate'];_0x184e=function(){return _0x171ea8;};return _0x184e();}let F=class extends n['Plugin']{constructor(_0x2d912e=T,_0x4dead5,_0x11597a){const _0x1d0406=_0x4cd5d4;super(),this[_0x1d0406(0x295)]=_0x2d912e,this[_0x1d0406(0x2ac)]=_0x4dead5,this['_configService']=_0x11597a;let {..._0x44abc4}=(0x0,n[_0x1d0406(0x292)])({},T,this[_0x1d0406(0x295)]);this['_configService']['setConfig']('live-share.config',_0x44abc4);}[_0x4cd5d4(0x283)](){const _0xad412c=_0x4cd5d4;(0x0,n[_0xad412c(0x291)])(this['_injector'],(0x0,n[_0xad412c(0x256)])([[_],[b],[E],[P]],this[_0xad412c(0x295)][_0xad412c(0x203)])),(0x0,n['touchDependencies'])(this['_injector'],[[E]]);}[_0x4cd5d4(0x1f5)](){const _0x5895f4=_0x4cd5d4;(0x0,n[_0x5895f4(0x266)])(this[_0x5895f4(0x2ac)],[[P]]);}};g(F,_0x4cd5d4(0x205),n[_0x4cd5d4(0x1f7)][_0x4cd5d4(0x28a)]),g(F,'pluginName','UNIVER_LIVE_SHARE_PLUGIN'),g(F,'packageName',C),g(F,_0x4cd5d4(0x2a3),w),F=y([(0x0,n[_0x4cd5d4(0x272)])(o['UniverLicensePlugin'],t[_0x4cd5d4(0x241)]),v(0x1,(0x0,n[_0x4cd5d4(0x27a)])(n[_0x4cd5d4(0x235)])),v(0x2,n[_0x4cd5d4(0x221)])],F),Object[_0x4cd5d4(0x2aa)](exports,_0x4cd5d4(0x28c),{'enumerable':!0x0,'get':function(){return b;}}),exports[_0x4cd5d4(0x211)]=x,Object[_0x4cd5d4(0x2aa)](exports,_0x4cd5d4(0x29c),{'enumerable':!0x0,'get':function(){return F;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
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{};
1
+ function _0x22cc(){const _0x28ffb3=['2LjdGNz','2380821fgKJcw','stopPresenting','object','IDLE','defineProperty','_injector','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','startPresenting','7527321mPURuG','startFollowing','prototype','getCurrentUnitOfType','tryStartPresenting','13726610RMORSH','default','getUnitId','2866585NrrKFl','extend','1047052XIfzLw','UNIVER_SHEET','1286290tmhgrl','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','getLiveShareStatus','6LAPZNO','getLiveShareCoordinatorSync','constructor','2675764HQdJtL','toPrimitive','function','No\x20active\x20workbook\x20found.','call','8kOgiXz','getStatus','iterator','_liveShareController'];_0x22cc=function(){return _0x28ffb3;};return _0x22cc();}const _0x2f56f2=_0x4a75;(function(_0x57e18a,_0x5b78f6){const _0xbea353=_0x4a75,_0x292458=_0x57e18a();while(!![]){try{const _0x52e69a=-parseInt(_0xbea353(0x15e))/0x1+parseInt(_0xbea353(0x147))/0x2*(parseInt(_0xbea353(0x148))/0x3)+-parseInt(_0xbea353(0x15c))/0x4+-parseInt(_0xbea353(0x15a))/0x5*(-parseInt(_0xbea353(0x162))/0x6)+parseInt(_0xbea353(0x165))/0x7*(parseInt(_0xbea353(0x143))/0x8)+-parseInt(_0xbea353(0x152))/0x9+parseInt(_0xbea353(0x157))/0xa;if(_0x52e69a===_0x5b78f6)break;else _0x292458['push'](_0x292458['shift']());}catch(_0x3d8c9d){_0x292458['push'](_0x292458['shift']());}}}(_0x22cc,0xb4087));import{LiveShareController as _0x34cebe,LiveShareStatus as _0x5404dd}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x331696,UniverInstanceType as _0xa9d19d}from'@univerjs/core';import{FEnum as _0x288fdd,FUniver as _0x41b420}from'@univerjs/core/facade';function o(_0x8c2599){'@babel/helpers - typeof';const _0x47943c=_0x4a75;return o=typeof Symbol==_0x47943c(0x140)&&typeof Symbol[_0x47943c(0x145)]==_0x47943c(0x160)?function(_0x1ce762){return typeof _0x1ce762;}:function(_0x1d346e){const _0x3a837c=_0x47943c;return _0x1d346e&&typeof Symbol==_0x3a837c(0x140)&&_0x1d346e[_0x3a837c(0x164)]===Symbol&&_0x1d346e!==Symbol[_0x3a837c(0x154)]?_0x3a837c(0x160):typeof _0x1d346e;},o(_0x8c2599);}function s(_0x5cca3b,_0x5c8220){const _0x456b5b=_0x4a75;if(o(_0x5cca3b)!=_0x456b5b(0x14a)||!_0x5cca3b)return _0x5cca3b;var _0x2f5aa7=_0x5cca3b[Symbol[_0x456b5b(0x166)]];if(_0x2f5aa7!==void 0x0){var _0x161620=_0x2f5aa7[_0x456b5b(0x142)](_0x5cca3b,_0x5c8220||_0x456b5b(0x158));if(o(_0x161620)!=_0x456b5b(0x14a))return _0x161620;throw TypeError(_0x456b5b(0x15f));}return(_0x5c8220==='string'?String:Number)(_0x5cca3b);}function _0x4a75(_0x210403,_0x12f677){_0x210403=_0x210403-0x140;const _0x22cc42=_0x22cc();let _0x4a7526=_0x22cc42[_0x210403];return _0x4a7526;}function c(_0x286b68){const _0x5f0c24=_0x4a75;var _0x309fee=s(_0x286b68,'string');return o(_0x309fee)==_0x5f0c24(0x160)?_0x309fee:_0x309fee+'';}function l(_0x15f780,_0x5e467f,_0x5818bc){const _0x4b3e8b=_0x4a75;return(_0x5e467f=c(_0x5e467f))in _0x15f780?Object[_0x4b3e8b(0x14c)](_0x15f780,_0x5e467f,{'value':_0x5818bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f780[_0x5e467f]=_0x5818bc,_0x15f780;}var u=class extends _0x41b420{constructor(..._0xba59ea){const _0x51087e=_0x4a75;super(..._0xba59ea),l(this,_0x51087e(0x146),void 0x0);}['_initialize'](_0x4dbf6e){const _0x51de=_0x4a75;this[_0x51de(0x146)]=_0x4dbf6e['get'](_0x34cebe);}[_0x2f56f2(0x161)](){const _0x2bb22c=_0x2f56f2;let _0x5e924c=this[_0x2bb22c(0x14d)]['get'](_0x331696)[_0x2bb22c(0x155)](_0xa9d19d[_0x2bb22c(0x15d)]);if(!_0x5e924c)throw Error(_0x2bb22c(0x141));let _0x4311be=_0x5e924c[_0x2bb22c(0x159)](),_0x267ed0=this['_liveShareController'][_0x2bb22c(0x163)](_0x4311be);return(_0x267ed0==null?void 0x0:_0x267ed0[_0x2bb22c(0x144)]())??_0x5404dd[_0x2bb22c(0x14b)];}[_0x2f56f2(0x153)](){const _0x5bf59e=_0x2f56f2;let _0x5abcaf=this['_injector'][_0x5bf59e(0x150)](_0x331696)[_0x5bf59e(0x155)](_0xa9d19d[_0x5bf59e(0x15d)]);if(!_0x5abcaf)throw Error('No\x20active\x20workbook\x20found.');let _0x1a815a=_0x5abcaf[_0x5bf59e(0x159)](),_0x15c11c=this[_0x5bf59e(0x146)][_0x5bf59e(0x163)](_0x1a815a);if(!_0x15c11c)throw Error(_0x5bf59e(0x14f));_0x15c11c[_0x5bf59e(0x153)]();}[_0x2f56f2(0x14e)](){const _0x285500=_0x2f56f2;let _0xd9af94=this[_0x285500(0x14d)]['get'](_0x331696)[_0x285500(0x155)](_0xa9d19d[_0x285500(0x15d)]);if(!_0xd9af94)throw Error('No\x20active\x20workbook\x20found.');let _0x264f39=_0xd9af94[_0x285500(0x159)](),_0x15aeb4=this[_0x285500(0x146)][_0x285500(0x163)](_0x264f39);if(!_0x15aeb4)throw Error(_0x285500(0x14f));_0x15aeb4['stopFollowing']();}[_0x2f56f2(0x151)](){const _0x4bfeba=_0x2f56f2;let _0x58afe2=this['_injector']['get'](_0x331696)[_0x4bfeba(0x155)](_0xa9d19d[_0x4bfeba(0x15d)]);if(!_0x58afe2)throw Error(_0x4bfeba(0x141));let _0x1d77c9=_0x58afe2[_0x4bfeba(0x159)](),_0x299565=this['_liveShareController'][_0x4bfeba(0x163)](_0x1d77c9);if(!_0x299565)throw Error(_0x4bfeba(0x14f));_0x299565[_0x4bfeba(0x156)]();}[_0x2f56f2(0x149)](){const _0x529821=_0x2f56f2;let _0x279430=this['_injector'][_0x529821(0x150)](_0x331696)['getCurrentUnitOfType'](_0xa9d19d[_0x529821(0x15d)]);if(!_0x279430)throw Error('No\x20active\x20workbook\x20found.');let _0x3b7f76=_0x279430[_0x529821(0x159)](),_0xc11b86=this['_liveShareController'][_0x529821(0x163)](_0x3b7f76);if(!_0xc11b86)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc11b86[_0x529821(0x149)]();}};_0x41b420[_0x2f56f2(0x15b)](u);var d=class extends _0x288fdd{get['LiveShareStatusEnum'](){return _0x5404dd;}};_0x288fdd[_0x2f56f2(0x15b)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x28efc9=_0x5d06;function _0x1604(){const _0xe3bd03=['LIVESHARE_NEW_HOST','forEach','not-following','unit','stringify','button','Start\x20following','_collabSessionService','stopPresenting','iterator','_liveShareService','dispose','_handleOperation','1.0.0-beta.2','getLiveShareCoordinatorSync','type','stopFollowing','getTypeOfUnitAdded$','_handleNewHost','init','7cFIijG','length','presenting','setConfig','You\x27re\x20presenting\x20the\x20document','9rfpLTH','2hOKGSj','sessionStatus$','version','function','3HRQqMj','10KKrKgS','IDLE','includes','string','You\x27are\x20offline.','_stopPresenting','complete','createInstance','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','override','Present\x20this\x20document','executeCommand','OFFLINE','758346bkTLVg','_mountLiveShare','registerInitialStateReporter','operations','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','object','values','_configService','FOLLOWING','_fetchOperations','_handleTerminate','data','108xmpudc','memberID','packageName','_presenter','ONLINE','has','_sharedOperations','getLiveShareCoordinator','996104ciiizB','unitId','send','697541ztHkwS','symbol','_unitID','onStarting','_commandDisposable','parse','NOT_FOLLOWING','event$','text','349990ahkpPF','getStatus','end','LIVESHARE_TERMINATE','idle','_status$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','onRendered','live-share.config','disposeWithMe','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','status$','2318405oMtOjU','_reporters','_beIdle','reverse','asObservable','toPrimitive','_handleOnline','pipe','UNIVER_SHEET','set','next','_init','getCurrentTypeOfUnit$','NEW_CHANGESETS','tryStartPresenting','LIVESHARE_OPERATION','_commandService','subscribe','Stop\x20following','add','clear','PRESENTING','_startFollowing','Start','dispose$','UNIVER_UNKNOWN','_startPresenting','pluginName','onCommandExecuted','_stopFollowing','find','LIVESHARE_REQUEST_HOST','delete','defineProperty','offline','prototype','sheet','getInitialStates','get','_univerInstanceService','constructor','params','_startLiveShareCoordinator','decorate','_collabSession','requireSession','_config','_handleOffline','getUnitId','startFollowing','_injector','_status','getMemberID','_entities','presenter','default','following','mutations','234641MKOSLx','registerSharedOperation','unsubscribe','HEADER_MENU','div','1680968ZwxHwP'];_0x1604=function(){return _0xe3bd03;};return _0x1604();}(function(_0x39472d,_0x41c466){const _0x1ed640=_0x5d06,_0xc01578=_0x39472d();while(!![]){try{const _0x549d76=parseInt(_0x1ed640(0x106))/0x1*(-parseInt(_0x1ed640(0xd2))/0x2)+-parseInt(_0x1ed640(0xd6))/0x3*(-parseInt(_0x1ed640(0xfa))/0x4)+-parseInt(_0x1ed640(0x78))/0x5+parseInt(_0x1ed640(0xe6))/0x6*(parseInt(_0x1ed640(0xcc))/0x7)+parseInt(_0x1ed640(0xb7))/0x8*(parseInt(_0x1ed640(0xd1))/0x9)+-parseInt(_0x1ed640(0xd7))/0xa*(parseInt(_0x1ed640(0xb2))/0xb)+-parseInt(_0x1ed640(0xf2))/0xc*(-parseInt(_0x1ed640(0xfd))/0xd);if(_0x549d76===_0x41c466)break;else _0xc01578['push'](_0xc01578['shift']());}catch(_0x305559){_0xc01578['push'](_0xc01578['shift']());}}}(_0x1604,0x38fe9));import{CollaborationEvent as _0x2c6144,parseProtocolChangeset as _0x8eba8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2df1a0,SessionStatus as _0xef806f,UniverCollaborationClientPlugin as _0x52d034}from'@univerjs-pro/collaboration-client';import{CommandType as _0x50387b,DependentOn as _0x46133d,Disposable as _0x485ed1,DisposableCollection as _0x3c6c46,ICommandService as _0xc5c8e,IConfigService as _0xc5812d,IUniverInstanceService as _0x323fb4,Inject as _0x30448f,Injector as _0x2e6242,Plugin as _0x7e6f53,RxDisposable as _0x269553,UniverInstanceType as _0x2009b4,merge as _0x2d940c,mergeOverrideWithDependencies as _0x1542a2,registerDependencies as _0x4e0201,toDisposable as _0x44fb55,touchDependencies as _0x46b324}from'@univerjs/core';import{InsertSheetMutation as _0x4f759b,SetWorksheetActiveOperation as _0x206528}from'@univerjs/sheets';import{BehaviorSubject as _0x2617e4,Subject as _0x186ef8,defer as _0x4ec539,from as _0x45a4d2,of as _0x4aee88}from'rxjs';import{takeUntil as _0x211271,throttleTime as _0x3c282d}from'rxjs/operators';import{UniverLicensePlugin as _0x444b97}from'@univerjs-pro/license';import{SetScrollOperation as _0x277ce5,SetZoomRatioOperation as _0x1d67b2}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x128244,IUIPartsService as _0x22dbef,connectInjector as _0xe84d60,useDependency as _0x1fed3b,useObservable as _0x3b7677}from'@univerjs/ui';import{Button as _0x1d906c,Dropdown as _0xb571d6}from'@univerjs/design';import{LiveShareIcon as _0x125941}from'@univerjs/icons';function _0x5d06(_0x31b2c6,_0x4cc46c){_0x31b2c6=_0x31b2c6-0x6d;const _0x160452=_0x1604();let _0x5d06a4=_0x160452[_0x31b2c6];return _0x5d06a4;}import{useMemo as _0x2da51d}from'react';import{Fragment as _0x2b628f,jsx as _0x50a3a7,jsxs as _0x303561}from'react/jsx-runtime';function z(_0x3e5185){'@babel/helpers - typeof';const _0x8ed4ed=_0x5d06;return z=typeof Symbol==_0x8ed4ed(0xd5)&&typeof Symbol[_0x8ed4ed(0xc1)]==_0x8ed4ed(0xfe)?function(_0x5c6ef3){return typeof _0x5c6ef3;}:function(_0x32b0f6){const _0x5e5a0b=_0x8ed4ed;return _0x32b0f6&&typeof Symbol=='function'&&_0x32b0f6[_0x5e5a0b(0xa0)]===Symbol&&_0x32b0f6!==Symbol[_0x5e5a0b(0x9b)]?_0x5e5a0b(0xfe):typeof _0x32b0f6;},z(_0x3e5185);}function B(_0xb1de1b,_0x21cd6f){const _0x4b3890=_0x5d06;if(z(_0xb1de1b)!='object'||!_0xb1de1b)return _0xb1de1b;var _0x59cfab=_0xb1de1b[Symbol[_0x4b3890(0x7d)]];if(_0x59cfab!==void 0x0){var _0x34f210=_0x59cfab['call'](_0xb1de1b,_0x21cd6f||_0x4b3890(0xaf));if(z(_0x34f210)!=_0x4b3890(0xeb))return _0x34f210;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x21cd6f===_0x4b3890(0xda)?String:Number)(_0xb1de1b);}function V(_0x6513c6){const _0x382c69=_0x5d06;var _0x3d95df=B(_0x6513c6,'string');return z(_0x3d95df)==_0x382c69(0xfe)?_0x3d95df:_0x3d95df+'';}function H(_0x189462,_0x13f64a,_0x5deb6d){const _0xe8c9f1=_0x5d06;return(_0x13f64a=V(_0x13f64a))in _0x189462?Object[_0xe8c9f1(0x99)](_0x189462,_0x13f64a,{'value':_0x5deb6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x189462[_0x13f64a]=_0x5deb6d,_0x189462;}var U=class extends _0x485ed1{constructor(..._0x444fa3){const _0x26fb8b=_0x5d06;super(..._0x444fa3),H(this,_0x26fb8b(0xf8),new Set()),H(this,_0x26fb8b(0x79),new Set());}[_0x28efc9(0xb3)](_0x4480a2){const _0x14cb9f=_0x28efc9;return this[_0x14cb9f(0xf8)][_0x14cb9f(0x8b)](_0x4480a2),_0x44fb55(()=>this[_0x14cb9f(0xf8)][_0x14cb9f(0x98)](_0x4480a2));}[_0x28efc9(0xe8)](_0x4b1296){const _0x42348a=_0x28efc9;return this['_reporters']['add'](_0x4b1296),_0x44fb55(()=>this[_0x42348a(0x79)][_0x42348a(0x98)](_0x4b1296));}[_0x28efc9(0x70)](_0x9b55a8){const _0x4955a4=_0x28efc9;return this['_sharedOperations'][_0x4955a4(0xf7)](_0x9b55a8);}['getInitialStates'](_0x5e61fd){const _0x303699=_0x28efc9;return Array['from'](this[_0x303699(0x79)])['map'](_0x83886a=>_0x83886a(_0x5e61fd));}};function W(_0xd50a91,_0x45618a){return function(_0x21b0d0,_0x125b7f){_0x45618a(_0x21b0d0,_0x125b7f,_0xd50a91);};}function G(_0x48c0fe,_0x224457,_0x36cbcc,_0x196242){const _0x5499b7=_0x28efc9;var _0x27cde5=arguments['length'],_0x1d7753=_0x27cde5<0x3?_0x224457:_0x196242===null?_0x196242=Object['getOwnPropertyDescriptor'](_0x224457,_0x36cbcc):_0x196242,_0x27ec9a;if(typeof Reflect==_0x5499b7(0xeb)&&typeof Reflect[_0x5499b7(0xa3)]==_0x5499b7(0xd5))_0x1d7753=Reflect[_0x5499b7(0xa3)](_0x48c0fe,_0x224457,_0x36cbcc,_0x196242);else{for(var _0x4d5d06=_0x48c0fe[_0x5499b7(0xcd)]-0x1;_0x4d5d06>=0x0;_0x4d5d06--)(_0x27ec9a=_0x48c0fe[_0x4d5d06])&&(_0x1d7753=(_0x27cde5<0x3?_0x27ec9a(_0x1d7753):_0x27cde5>0x3?_0x27ec9a(_0x224457,_0x36cbcc,_0x1d7753):_0x27ec9a(_0x224457,_0x36cbcc))||_0x1d7753);}return _0x27cde5>0x3&&_0x1d7753&&Object[_0x5499b7(0x99)](_0x224457,_0x36cbcc,_0x1d7753),_0x1d7753;}let K=class extends _0x269553{constructor(_0x2941a6,_0x131b20,_0x11701f){const _0xe73e96=_0x28efc9;super(),this[_0xe73e96(0x9f)]=_0x2941a6,this[_0xe73e96(0xaa)]=_0x131b20,this['_collabSessionService']=_0x11701f,H(this,'_entities',new Map()),this[_0xe73e96(0x83)]();}async[_0x28efc9(0xf9)](_0x33672c){const _0x260586=_0x28efc9;return this['_entities'][_0x260586(0xf7)](_0x33672c)||await this[_0x260586(0xa2)](_0x33672c),this[_0x260586(0xad)][_0x260586(0x9e)](_0x33672c);}[_0x28efc9(0xc6)](_0x4e8036){const _0x75cffc=_0x28efc9;return this[_0x75cffc(0xad)][_0x75cffc(0x9e)](_0x4e8036)??null;}[_0x28efc9(0x83)](){const _0x46e4d3=_0x28efc9;this[_0x46e4d3(0x9f)][_0x46e4d3(0xc9)](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](async _0x147b32=>{const _0x1435c6=_0x46e4d3;let _0x4244e4=_0x147b32[_0x1435c6(0xbb)][_0x1435c6(0xa8)]();this[_0x1435c6(0xad)]['has'](_0x4244e4)||this[_0x1435c6(0xa2)](_0x4244e4);}),this[_0x46e4d3(0x9f)]['getTypeOfUnitDisposed$'](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](_0x298a8f=>{const _0x33ff8c=_0x46e4d3;let _0x1087d3=_0x298a8f['getUnitId'](),_0x5947db=this[_0x33ff8c(0xad)][_0x33ff8c(0x9e)](_0x1087d3);_0x5947db==null||_0x5947db[_0x33ff8c(0xc3)]();});}async['_startLiveShareCoordinator'](_0x214980){const _0x27f51f=_0x28efc9;let _0x423da8=await this[_0x27f51f(0xbf)][_0x27f51f(0xa5)](_0x214980),_0x4b22f9=this[_0x27f51f(0xaa)][_0x27f51f(0xde)](J,_0x214980,_0x423da8);return _0x4b22f9[_0x27f51f(0xcb)](),this['_entities']['set'](_0x214980,_0x4b22f9),_0x4b22f9;}};K=G([W(0x0,_0x323fb4),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0x30448f(_0x2df1a0))],K);let q=function(_0x10ab2c){const _0x46f44e=_0x28efc9;return _0x10ab2c['OFFLINE']=_0x46f44e(0x9a),_0x10ab2c[_0x46f44e(0xd8)]='idle',_0x10ab2c[_0x46f44e(0xee)]='following',_0x10ab2c[_0x46f44e(0x103)]=_0x46f44e(0xba),_0x10ab2c[_0x46f44e(0x8d)]=_0x46f44e(0xce),_0x10ab2c;}({}),J=class extends _0x269553{get[_0x28efc9(0xab)](){return this['_status$']['getValue']();}constructor(_0x72c94a,_0x9e2d53,_0x4682ca,_0x1f6229,_0x4e0667){const _0x346055=_0x28efc9;super(),this[_0x346055(0xff)]=_0x72c94a,this['_collabSession']=_0x9e2d53,this[_0x346055(0xed)]=_0x4682ca,this['_liveShareService']=_0x1f6229,this[_0x346055(0x88)]=_0x4e0667,H(this,_0x346055(0x6d),new _0x2617e4('idle')),H(this,_0x346055(0x77),this[_0x346055(0x6d)][_0x346055(0x7c)]()),H(this,'_init',!0x1),H(this,_0x346055(0x101),null),H(this,_0x346055(0xf5),null);}[_0x28efc9(0xc3)](){const _0x27768b=_0x28efc9;var _0x136184;(_0x136184=this[_0x27768b(0x101)])==null||_0x136184['dispose'](),this[_0x27768b(0x6d)][_0x27768b(0x82)]('idle'),this['_status$'][_0x27768b(0xdd)]();}[_0x28efc9(0x107)](){return this['_status'];}[_0x28efc9(0xcb)](){const _0x4cf14e=_0x28efc9;this[_0x4cf14e(0x83)]||(this['_init']=!0x0,this[_0x4cf14e(0xa4)][_0x4cf14e(0xd3)][_0x4cf14e(0x7f)](_0x211271(this[_0x4cf14e(0x90)]))[_0x4cf14e(0x89)](_0x4ef23c=>{const _0x47e8f3=_0x4cf14e;switch(_0x4ef23c){case _0xef806f[_0x47e8f3(0xe5)]:this[_0x47e8f3(0xa7)]();break;case _0xef806f[_0x47e8f3(0xf6)]:this[_0x47e8f3(0x7e)]();break;default:}}),this[_0x4cf14e(0xa4)][_0x4cf14e(0x104)]['pipe'](_0x211271(this[_0x4cf14e(0x90)]))['subscribe'](_0xa3b57c=>{const _0x2ec653=_0x4cf14e;let {eventID:_0x35d61a}=_0xa3b57c;switch(_0x35d61a){case _0x2c6144[_0x2ec653(0xb8)]:this[_0x2ec653(0xca)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x87)]:this[_0x2ec653(0xc4)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x109)]:this[_0x2ec653(0xf0)]();break;case _0x2c6144[_0x2ec653(0x85)]:this[_0x2ec653(0x76)](_0xa3b57c);break;default:}}));}[_0x28efc9(0x86)](){const _0x3da697=_0x28efc9;this[_0x3da697(0xa4)][_0x3da697(0xfc)]({'eventID':_0x2c6144[_0x3da697(0x97)],'data':{'unitID':this[_0x3da697(0xff)],'userID':this[_0x3da697(0xa4)]['getMemberID']()}},this[_0x3da697(0xff)]);}[_0x28efc9(0xc0)](){const _0x52c5f7=_0x28efc9;this[_0x52c5f7(0xab)]==='presenting'&&(this[_0x52c5f7(0x6d)][_0x52c5f7(0x82)](_0x52c5f7(0x10a)),this[_0x52c5f7(0xa4)][_0x52c5f7(0xfc)]({'eventID':_0x2c6144[_0x52c5f7(0x109)],'data':{'unitID':this[_0x52c5f7(0xff)]}},this['_unitID']));}[_0x28efc9(0xa9)](){const _0x26856c=_0x28efc9;this[_0x26856c(0xab)]==='not-following'&&(this[_0x26856c(0x6d)][_0x26856c(0x82)](_0x26856c(0xb0)),this[_0x26856c(0x8e)]());}['stopFollowing'](){const _0x4285c=_0x28efc9;this[_0x4285c(0xab)]===_0x4285c(0xb0)&&this[_0x4285c(0x95)]();}[_0x28efc9(0xca)](_0x346343){const _0x56a17a=_0x28efc9;let {presenter:_0x3aa2bd}=_0x346343[_0x56a17a(0xf1)],_0x15dd5b=this[_0x56a17a(0xa4)][_0x56a17a(0xac)]();this[_0x56a17a(0xf5)]=_0x3aa2bd,_0x3aa2bd===_0x15dd5b?(this[_0x56a17a(0x95)](),this[_0x56a17a(0x92)]()):this['_status']!==_0x56a17a(0xba)&&(this['_stopPresenting'](),this[_0x56a17a(0x8e)]());}[_0x28efc9(0xef)](){const _0x513367=_0x28efc9;let _0x24ced8={'eventID':_0x2c6144['LIVESHARE_FETCH_OPERATIONS']};this[_0x513367(0xa4)][_0x513367(0xfc)](_0x24ced8,this[_0x513367(0xff)]);}[_0x28efc9(0xf0)](){const _0x5d0aa7=_0x28efc9;this[_0x5d0aa7(0xf5)]=null,this[_0x5d0aa7(0xab)]!==_0x5d0aa7(0xce)&&this[_0x5d0aa7(0x7a)]();}[_0x28efc9(0x76)](_0x341385){const _0x39e37c=_0x28efc9;if(this[_0x39e37c(0xab)]===_0x39e37c(0xb0)&&this[_0x39e37c(0xf5)]===_0x341385[_0x39e37c(0xf1)][_0x39e37c(0xf3)]){let _0x4914bb=_0x8eba8(_0x341385[_0x39e37c(0xf1)])[_0x39e37c(0xb1)][_0x39e37c(0x7b)]()[_0x39e37c(0x96)](_0x260789=>_0x260789['id']===_0x4f759b['id']);if(_0x4914bb){let _0x2e7a6b=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0xfb)],_0x35e687=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0x9c)]['id'];setTimeout(()=>{const _0x500f4e=_0x39e37c;this[_0x500f4e(0x88)][_0x500f4e(0xe4)](_0x206528['id'],{'unitId':_0x2e7a6b,'subUnitId':_0x35e687},{'fromCollab':!0x0});});}}}[_0x28efc9(0x92)](){const _0x369999=_0x28efc9;var _0x31bc32;(_0x31bc32=this[_0x369999(0x101)])==null||_0x31bc32[_0x369999(0xc3)](),this[_0x369999(0x6d)][_0x369999(0x82)](_0x369999(0xce));let _0x25d06f=new Map(),_0x21ec3b=this[_0x369999(0x101)]=new _0x3c6c46();_0x21ec3b['add'](_0x44fb55(()=>{const _0x5d8b74=_0x369999;_0x25d06f[_0x5d8b74(0xb9)](({subject:_0x9cabba,subscription:_0x4e22b0})=>{const _0x509a65=_0x5d8b74;_0x4e22b0[_0x509a65(0xb4)](),_0x9cabba['complete']();}),_0x25d06f[_0x5d8b74(0x8c)]();})),_0x21ec3b[_0x369999(0x8b)](this[_0x369999(0x88)][_0x369999(0x94)](_0x5e99ba=>{const _0xe55e46=_0x369999;if(_0x5e99ba[_0xe55e46(0xc7)]!==_0x50387b['OPERATION']||!this[_0xe55e46(0xc2)][_0xe55e46(0x70)](_0x5e99ba['id']))return;let {id:_0x1f740f}=_0x5e99ba,_0x1210e7;if(_0x25d06f[_0xe55e46(0xf7)](_0x1f740f))_0x1210e7=_0x25d06f['get'](_0x1f740f)['subject'];else{_0x1210e7=new _0x186ef8();let _0x512174=_0x1210e7['pipe'](_0x3c282d(this['_configService']['getConfig']('SAME_OPERATION_SHARE_INTERVAL')??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe55e46(0x89)](_0x2f682e=>{const _0x5e9e45=_0xe55e46;this['_collabSession'][_0x5e9e45(0xfc)]({'eventID':_0x2c6144[_0x5e9e45(0x87)],'data':{'unitID':this[_0x5e9e45(0xff)],'operations':{[_0x2f682e['id']]:{'id':_0x2f682e['id'],'params':JSON['stringify'](_0x2f682e[_0x5e9e45(0xa1)])}}}},this['_unitID']);});_0x25d06f[_0xe55e46(0x81)](_0x1f740f,{'subject':_0x1210e7,'subscription':_0x512174});}_0x1210e7[_0xe55e46(0x82)](_0x5e99ba);})),this['_liveShareService'][_0x369999(0x9d)](this['_unitID'])[_0x369999(0xb9)](_0x29790a=>this['_collabSession'][_0x369999(0xfc)]({'eventID':_0x2c6144[_0x369999(0x87)],'data':{'unitID':this['_unitID'],'operations':{[_0x29790a['id']]:{'id':_0x29790a['id'],'params':JSON[_0x369999(0xbc)](_0x29790a[_0x369999(0xa1)])}}}},this['_unitID']));}[_0x28efc9(0xdc)](){const _0x49aeb5=_0x28efc9;var _0x263654;this[_0x49aeb5(0x6d)][_0x49aeb5(0x82)](_0x49aeb5(0x10a)),(_0x263654=this['_commandDisposable'])==null||_0x263654[_0x49aeb5(0xc3)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x2cbcd4=_0x28efc9;var _0x307b1a;(_0x307b1a=this['_commandDisposable'])==null||_0x307b1a[_0x2cbcd4(0xc3)](),this[_0x2cbcd4(0x6d)][_0x2cbcd4(0x82)]('following');}[_0x28efc9(0x7a)](){const _0x1d2077=_0x28efc9;var _0x23a0ab;this['_status$']['next'](_0x1d2077(0x10a)),(_0x23a0ab=this['_commandDisposable'])==null||_0x23a0ab[_0x1d2077(0xc3)](),this[_0x1d2077(0x101)]=null;}['_stopFollowing'](){const _0x59afdf=_0x28efc9;var _0x4687e4;this[_0x59afdf(0x6d)]['next'](_0x59afdf(0xba)),(_0x4687e4=this['_commandDisposable'])==null||_0x4687e4[_0x59afdf(0xc3)]();}['_handleOperation'](_0xcab4e7){const _0x5079e1=_0x28efc9;if([_0x5079e1(0xce),'not-following',_0x5079e1(0x9a)][_0x5079e1(0xd9)](this[_0x5079e1(0xab)])||!_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]||_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]===this['_collabSession']['getMemberID']())return;this[_0x5079e1(0xab)]==='idle'&&this['_startFollowing']();let _0x513dc5=_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xe9)];Object[_0x5079e1(0xec)](_0x513dc5)[_0x5079e1(0xb9)](_0x305fc8=>{const _0x2fe514=_0x5079e1;this[_0x2fe514(0x88)][_0x2fe514(0xe4)](_0x305fc8['id'],_0x305fc8[_0x2fe514(0xa1)]?JSON[_0x2fe514(0x102)](_0x305fc8[_0x2fe514(0xa1)]):null,{'fromCollab':!0x0});});}[_0x28efc9(0xa7)](){const _0x13e7df=_0x28efc9;var _0x132d68;this[_0x13e7df(0x6d)][_0x13e7df(0x82)]('offline'),(_0x132d68=this['_commandDisposable'])==null||_0x132d68['dispose']();}[_0x28efc9(0x7e)](){const _0x25894e=_0x28efc9;this[_0x25894e(0x6d)][_0x25894e(0x82)](_0x25894e(0x10a)),this[_0x25894e(0xef)]();}};J=G([W(0x2,_0xc5812d),W(0x3,_0x30448f(U)),W(0x4,_0xc5c8e)],J);var se='@univerjs-pro/live-share',ce=_0x28efc9(0xc5);const Y={};let X=class extends _0x485ed1{constructor(_0x14c69f){const _0x48c546=_0x28efc9;super(),this[_0x48c546(0xc2)]=_0x14c69f,this[_0x48c546(0x83)]();}['_init'](){const _0x13ce22=_0x28efc9;[_0x1d67b2['id'],_0x277ce5['id'],_0x206528['id']][_0x13ce22(0xb9)](_0x249418=>{const _0x495658=_0x13ce22;this[_0x495658(0x74)](this[_0x495658(0xc2)][_0x495658(0xb3)](_0x249418));});}};X=G([W(0x0,_0x30448f(U))],X);function Z(){const _0x37cfaf=_0x28efc9;let _0x52635f=_0x1fed3b(K),_0x37a965=_0x1fed3b(_0x323fb4),_0x21c6f8=_0x3b7677(()=>_0x37a965[_0x37cfaf(0x84)](_0x2009b4[_0x37cfaf(0x80)]),void 0x0,!0x1,[]),_0x215935=_0x3b7677(_0x2da51d(()=>_0x21c6f8?_0x4ec539(()=>_0x45a4d2(_0x52635f['getLiveShareCoordinator'](_0x21c6f8[_0x37cfaf(0xa8)]()))):_0x4aee88(null),[_0x21c6f8,_0x52635f]),null),_0x5ca854=_0x3b7677(_0x215935?()=>_0x215935[_0x37cfaf(0x77)]:null,_0x37cfaf(0x10a),!0x1,[_0x215935]);return _0x215935?_0x50a3a7(_0xb571d6,{'align':_0x37cfaf(0x108),'disabled':_0x5ca854===_0x37cfaf(0x9a),'className':_0x37cfaf(0xea),'overlay':_0x50a3a7(le,{'status':_0x5ca854,'coordinator':_0x215935}),'children':_0x50a3a7(_0x1d906c,{'size':_0x37cfaf(0xe1),'variant':_0x37cfaf(0x105),'disabled':_0x5ca854==='offline','type':_0x37cfaf(0xbd),'children':_0x50a3a7(_0x125941,{})})}):null;}function le(_0x41264a){const _0x5a60e3=_0x28efc9;let {status:_0x5e54dd,coordinator:_0x29c058}=_0x41264a;switch(_0x5e54dd){case'idle':return _0x50a3a7(ue,{'coordinator':_0x29c058});case'following':return _0x50a3a7(de,{'coordinator':_0x29c058});case _0x5a60e3(0xba):return _0x50a3a7(fe,{'coordinator':_0x29c058});case'offline':return _0x50a3a7(me,{});case _0x5a60e3(0xce):return _0x50a3a7(pe,{'coordinator':_0x29c058});default:return null;}}function ue(_0x48aade){const _0xfd4901=_0x28efc9;let {coordinator:_0x305c34}=_0x48aade;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0xfd4901(0xb6),{'className':_0xfd4901(0xe0),'children':_0xfd4901(0xe3)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x305c34[_0xfd4901(0x86)](),'children':_0xfd4901(0x8f)})]});}function de(_0x18b9ea){const _0x496ab4=_0x28efc9;let {coordinator:_0x43ddf7}=_0x18b9ea;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x496ab4(0xe0),'children':_0x496ab4(0x6f)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x43ddf7[_0x496ab4(0xc8)](),'children':_0x496ab4(0x8a)})]});}function fe(_0x41f4b3){const _0x172c08=_0x28efc9;let {coordinator:_0x4338f6}=_0x41f4b3;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0x172c08(0xb6),{'className':_0x172c08(0xe0),'children':_0x172c08(0x71)}),_0x50a3a7(_0x1d906c,{'variant':_0x172c08(0x105),'onClick':()=>_0x4338f6[_0x172c08(0xa9)](),'children':_0x172c08(0xbe)})]});}function pe(_0x10b33d){const _0x28a5c9=_0x28efc9;let {coordinator:_0x202eea}=_0x10b33d;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x28a5c9(0xe0),'children':_0x28a5c9(0xd0)}),_0x50a3a7(_0x1d906c,{'variant':_0x28a5c9(0xaf),'onClick':()=>_0x202eea[_0x28a5c9(0xc0)](),'children':'Stop\x20presenting'})]});}function me(){const _0x533d34=_0x28efc9;return _0x50a3a7(_0x2b628f,{'children':_0x533d34(0xdb)});}let Q=class extends _0x485ed1{constructor(_0x492351,_0x140a32){const _0x591f10=_0x28efc9;super(),this['_injector']=_0x492351,this[_0x591f10(0x6e)]=_0x140a32,this['_mountLiveShare']();}[_0x28efc9(0xe7)](){const _0x30316c=_0x28efc9;this[_0x30316c(0x74)](this['_uiPartsService'][_0x30316c(0xdf)](_0x128244[_0x30316c(0xb5)],()=>_0xe84d60(Z,this[_0x30316c(0xaa)])));}};Q=G([W(0x0,_0x30448f(_0x2e6242)),W(0x1,_0x22dbef)],Q);let $=class extends _0x7e6f53{constructor(_0x267b52=Y,_0x57adb9,_0x77ad19){const _0x542814=_0x28efc9;super(),this[_0x542814(0xa6)]=_0x267b52,this[_0x542814(0xaa)]=_0x57adb9,this[_0x542814(0xed)]=_0x77ad19;let {..._0x588fc1}=_0x2d940c({},Y,this[_0x542814(0xa6)]);this[_0x542814(0xed)][_0x542814(0xcf)](_0x542814(0x73),_0x588fc1);}[_0x28efc9(0x100)](){const _0x19b878=_0x28efc9;_0x4e0201(this[_0x19b878(0xaa)],_0x1542a2([[U],[K],[X],[Q]],this[_0x19b878(0xa6)][_0x19b878(0xe2)])),_0x46b324(this[_0x19b878(0xaa)],[[X]]);}[_0x28efc9(0x72)](){const _0x440555=_0x28efc9;_0x46b324(this[_0x440555(0xaa)],[[Q]]);}};H($,_0x28efc9(0xc7),_0x2009b4[_0x28efc9(0x91)]),H($,_0x28efc9(0x93),_0x28efc9(0x75)),H($,_0x28efc9(0xf4),se),H($,_0x28efc9(0xd4),ce),$=G([_0x46133d(_0x444b97,_0x52d034),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0xc5812d)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
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{};
1
+ function _0x22cc(){const _0x28ffb3=['2LjdGNz','2380821fgKJcw','stopPresenting','object','IDLE','defineProperty','_injector','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','get','startPresenting','7527321mPURuG','startFollowing','prototype','getCurrentUnitOfType','tryStartPresenting','13726610RMORSH','default','getUnitId','2866585NrrKFl','extend','1047052XIfzLw','UNIVER_SHEET','1286290tmhgrl','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','getLiveShareStatus','6LAPZNO','getLiveShareCoordinatorSync','constructor','2675764HQdJtL','toPrimitive','function','No\x20active\x20workbook\x20found.','call','8kOgiXz','getStatus','iterator','_liveShareController'];_0x22cc=function(){return _0x28ffb3;};return _0x22cc();}const _0x2f56f2=_0x4a75;(function(_0x57e18a,_0x5b78f6){const _0xbea353=_0x4a75,_0x292458=_0x57e18a();while(!![]){try{const _0x52e69a=-parseInt(_0xbea353(0x15e))/0x1+parseInt(_0xbea353(0x147))/0x2*(parseInt(_0xbea353(0x148))/0x3)+-parseInt(_0xbea353(0x15c))/0x4+-parseInt(_0xbea353(0x15a))/0x5*(-parseInt(_0xbea353(0x162))/0x6)+parseInt(_0xbea353(0x165))/0x7*(parseInt(_0xbea353(0x143))/0x8)+-parseInt(_0xbea353(0x152))/0x9+parseInt(_0xbea353(0x157))/0xa;if(_0x52e69a===_0x5b78f6)break;else _0x292458['push'](_0x292458['shift']());}catch(_0x3d8c9d){_0x292458['push'](_0x292458['shift']());}}}(_0x22cc,0xb4087));import{LiveShareController as _0x34cebe,LiveShareStatus as _0x5404dd}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x331696,UniverInstanceType as _0xa9d19d}from'@univerjs/core';import{FEnum as _0x288fdd,FUniver as _0x41b420}from'@univerjs/core/facade';function o(_0x8c2599){'@babel/helpers - typeof';const _0x47943c=_0x4a75;return o=typeof Symbol==_0x47943c(0x140)&&typeof Symbol[_0x47943c(0x145)]==_0x47943c(0x160)?function(_0x1ce762){return typeof _0x1ce762;}:function(_0x1d346e){const _0x3a837c=_0x47943c;return _0x1d346e&&typeof Symbol==_0x3a837c(0x140)&&_0x1d346e[_0x3a837c(0x164)]===Symbol&&_0x1d346e!==Symbol[_0x3a837c(0x154)]?_0x3a837c(0x160):typeof _0x1d346e;},o(_0x8c2599);}function s(_0x5cca3b,_0x5c8220){const _0x456b5b=_0x4a75;if(o(_0x5cca3b)!=_0x456b5b(0x14a)||!_0x5cca3b)return _0x5cca3b;var _0x2f5aa7=_0x5cca3b[Symbol[_0x456b5b(0x166)]];if(_0x2f5aa7!==void 0x0){var _0x161620=_0x2f5aa7[_0x456b5b(0x142)](_0x5cca3b,_0x5c8220||_0x456b5b(0x158));if(o(_0x161620)!=_0x456b5b(0x14a))return _0x161620;throw TypeError(_0x456b5b(0x15f));}return(_0x5c8220==='string'?String:Number)(_0x5cca3b);}function _0x4a75(_0x210403,_0x12f677){_0x210403=_0x210403-0x140;const _0x22cc42=_0x22cc();let _0x4a7526=_0x22cc42[_0x210403];return _0x4a7526;}function c(_0x286b68){const _0x5f0c24=_0x4a75;var _0x309fee=s(_0x286b68,'string');return o(_0x309fee)==_0x5f0c24(0x160)?_0x309fee:_0x309fee+'';}function l(_0x15f780,_0x5e467f,_0x5818bc){const _0x4b3e8b=_0x4a75;return(_0x5e467f=c(_0x5e467f))in _0x15f780?Object[_0x4b3e8b(0x14c)](_0x15f780,_0x5e467f,{'value':_0x5818bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15f780[_0x5e467f]=_0x5818bc,_0x15f780;}var u=class extends _0x41b420{constructor(..._0xba59ea){const _0x51087e=_0x4a75;super(..._0xba59ea),l(this,_0x51087e(0x146),void 0x0);}['_initialize'](_0x4dbf6e){const _0x51de=_0x4a75;this[_0x51de(0x146)]=_0x4dbf6e['get'](_0x34cebe);}[_0x2f56f2(0x161)](){const _0x2bb22c=_0x2f56f2;let _0x5e924c=this[_0x2bb22c(0x14d)]['get'](_0x331696)[_0x2bb22c(0x155)](_0xa9d19d[_0x2bb22c(0x15d)]);if(!_0x5e924c)throw Error(_0x2bb22c(0x141));let _0x4311be=_0x5e924c[_0x2bb22c(0x159)](),_0x267ed0=this['_liveShareController'][_0x2bb22c(0x163)](_0x4311be);return(_0x267ed0==null?void 0x0:_0x267ed0[_0x2bb22c(0x144)]())??_0x5404dd[_0x2bb22c(0x14b)];}[_0x2f56f2(0x153)](){const _0x5bf59e=_0x2f56f2;let _0x5abcaf=this['_injector'][_0x5bf59e(0x150)](_0x331696)[_0x5bf59e(0x155)](_0xa9d19d[_0x5bf59e(0x15d)]);if(!_0x5abcaf)throw Error('No\x20active\x20workbook\x20found.');let _0x1a815a=_0x5abcaf[_0x5bf59e(0x159)](),_0x15c11c=this[_0x5bf59e(0x146)][_0x5bf59e(0x163)](_0x1a815a);if(!_0x15c11c)throw Error(_0x5bf59e(0x14f));_0x15c11c[_0x5bf59e(0x153)]();}[_0x2f56f2(0x14e)](){const _0x285500=_0x2f56f2;let _0xd9af94=this[_0x285500(0x14d)]['get'](_0x331696)[_0x285500(0x155)](_0xa9d19d[_0x285500(0x15d)]);if(!_0xd9af94)throw Error('No\x20active\x20workbook\x20found.');let _0x264f39=_0xd9af94[_0x285500(0x159)](),_0x15aeb4=this[_0x285500(0x146)][_0x285500(0x163)](_0x264f39);if(!_0x15aeb4)throw Error(_0x285500(0x14f));_0x15aeb4['stopFollowing']();}[_0x2f56f2(0x151)](){const _0x4bfeba=_0x2f56f2;let _0x58afe2=this['_injector']['get'](_0x331696)[_0x4bfeba(0x155)](_0xa9d19d[_0x4bfeba(0x15d)]);if(!_0x58afe2)throw Error(_0x4bfeba(0x141));let _0x1d77c9=_0x58afe2[_0x4bfeba(0x159)](),_0x299565=this['_liveShareController'][_0x4bfeba(0x163)](_0x1d77c9);if(!_0x299565)throw Error(_0x4bfeba(0x14f));_0x299565[_0x4bfeba(0x156)]();}[_0x2f56f2(0x149)](){const _0x529821=_0x2f56f2;let _0x279430=this['_injector'][_0x529821(0x150)](_0x331696)['getCurrentUnitOfType'](_0xa9d19d[_0x529821(0x15d)]);if(!_0x279430)throw Error('No\x20active\x20workbook\x20found.');let _0x3b7f76=_0x279430[_0x529821(0x159)](),_0xc11b86=this['_liveShareController'][_0x529821(0x163)](_0x3b7f76);if(!_0xc11b86)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc11b86[_0x529821(0x149)]();}};_0x41b420[_0x2f56f2(0x15b)](u);var d=class extends _0x288fdd{get['LiveShareStatusEnum'](){return _0x5404dd;}};_0x288fdd[_0x2f56f2(0x15b)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
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};
1
+ const _0x28efc9=_0x5d06;function _0x1604(){const _0xe3bd03=['LIVESHARE_NEW_HOST','forEach','not-following','unit','stringify','button','Start\x20following','_collabSessionService','stopPresenting','iterator','_liveShareService','dispose','_handleOperation','1.0.0-beta.2','getLiveShareCoordinatorSync','type','stopFollowing','getTypeOfUnitAdded$','_handleNewHost','init','7cFIijG','length','presenting','setConfig','You\x27re\x20presenting\x20the\x20document','9rfpLTH','2hOKGSj','sessionStatus$','version','function','3HRQqMj','10KKrKgS','IDLE','includes','string','You\x27are\x20offline.','_stopPresenting','complete','createInstance','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','override','Present\x20this\x20document','executeCommand','OFFLINE','758346bkTLVg','_mountLiveShare','registerInitialStateReporter','operations','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','object','values','_configService','FOLLOWING','_fetchOperations','_handleTerminate','data','108xmpudc','memberID','packageName','_presenter','ONLINE','has','_sharedOperations','getLiveShareCoordinator','996104ciiizB','unitId','send','697541ztHkwS','symbol','_unitID','onStarting','_commandDisposable','parse','NOT_FOLLOWING','event$','text','349990ahkpPF','getStatus','end','LIVESHARE_TERMINATE','idle','_status$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter','onRendered','live-share.config','disposeWithMe','UNIVER_LIVE_SHARE_PLUGIN','_handleNewChangeSets','status$','2318405oMtOjU','_reporters','_beIdle','reverse','asObservable','toPrimitive','_handleOnline','pipe','UNIVER_SHEET','set','next','_init','getCurrentTypeOfUnit$','NEW_CHANGESETS','tryStartPresenting','LIVESHARE_OPERATION','_commandService','subscribe','Stop\x20following','add','clear','PRESENTING','_startFollowing','Start','dispose$','UNIVER_UNKNOWN','_startPresenting','pluginName','onCommandExecuted','_stopFollowing','find','LIVESHARE_REQUEST_HOST','delete','defineProperty','offline','prototype','sheet','getInitialStates','get','_univerInstanceService','constructor','params','_startLiveShareCoordinator','decorate','_collabSession','requireSession','_config','_handleOffline','getUnitId','startFollowing','_injector','_status','getMemberID','_entities','presenter','default','following','mutations','234641MKOSLx','registerSharedOperation','unsubscribe','HEADER_MENU','div','1680968ZwxHwP'];_0x1604=function(){return _0xe3bd03;};return _0x1604();}(function(_0x39472d,_0x41c466){const _0x1ed640=_0x5d06,_0xc01578=_0x39472d();while(!![]){try{const _0x549d76=parseInt(_0x1ed640(0x106))/0x1*(-parseInt(_0x1ed640(0xd2))/0x2)+-parseInt(_0x1ed640(0xd6))/0x3*(-parseInt(_0x1ed640(0xfa))/0x4)+-parseInt(_0x1ed640(0x78))/0x5+parseInt(_0x1ed640(0xe6))/0x6*(parseInt(_0x1ed640(0xcc))/0x7)+parseInt(_0x1ed640(0xb7))/0x8*(parseInt(_0x1ed640(0xd1))/0x9)+-parseInt(_0x1ed640(0xd7))/0xa*(parseInt(_0x1ed640(0xb2))/0xb)+-parseInt(_0x1ed640(0xf2))/0xc*(-parseInt(_0x1ed640(0xfd))/0xd);if(_0x549d76===_0x41c466)break;else _0xc01578['push'](_0xc01578['shift']());}catch(_0x305559){_0xc01578['push'](_0xc01578['shift']());}}}(_0x1604,0x38fe9));import{CollaborationEvent as _0x2c6144,parseProtocolChangeset as _0x8eba8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2df1a0,SessionStatus as _0xef806f,UniverCollaborationClientPlugin as _0x52d034}from'@univerjs-pro/collaboration-client';import{CommandType as _0x50387b,DependentOn as _0x46133d,Disposable as _0x485ed1,DisposableCollection as _0x3c6c46,ICommandService as _0xc5c8e,IConfigService as _0xc5812d,IUniverInstanceService as _0x323fb4,Inject as _0x30448f,Injector as _0x2e6242,Plugin as _0x7e6f53,RxDisposable as _0x269553,UniverInstanceType as _0x2009b4,merge as _0x2d940c,mergeOverrideWithDependencies as _0x1542a2,registerDependencies as _0x4e0201,toDisposable as _0x44fb55,touchDependencies as _0x46b324}from'@univerjs/core';import{InsertSheetMutation as _0x4f759b,SetWorksheetActiveOperation as _0x206528}from'@univerjs/sheets';import{BehaviorSubject as _0x2617e4,Subject as _0x186ef8,defer as _0x4ec539,from as _0x45a4d2,of as _0x4aee88}from'rxjs';import{takeUntil as _0x211271,throttleTime as _0x3c282d}from'rxjs/operators';import{UniverLicensePlugin as _0x444b97}from'@univerjs-pro/license';import{SetScrollOperation as _0x277ce5,SetZoomRatioOperation as _0x1d67b2}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x128244,IUIPartsService as _0x22dbef,connectInjector as _0xe84d60,useDependency as _0x1fed3b,useObservable as _0x3b7677}from'@univerjs/ui';import{Button as _0x1d906c,Dropdown as _0xb571d6}from'@univerjs/design';import{LiveShareIcon as _0x125941}from'@univerjs/icons';function _0x5d06(_0x31b2c6,_0x4cc46c){_0x31b2c6=_0x31b2c6-0x6d;const _0x160452=_0x1604();let _0x5d06a4=_0x160452[_0x31b2c6];return _0x5d06a4;}import{useMemo as _0x2da51d}from'react';import{Fragment as _0x2b628f,jsx as _0x50a3a7,jsxs as _0x303561}from'react/jsx-runtime';function z(_0x3e5185){'@babel/helpers - typeof';const _0x8ed4ed=_0x5d06;return z=typeof Symbol==_0x8ed4ed(0xd5)&&typeof Symbol[_0x8ed4ed(0xc1)]==_0x8ed4ed(0xfe)?function(_0x5c6ef3){return typeof _0x5c6ef3;}:function(_0x32b0f6){const _0x5e5a0b=_0x8ed4ed;return _0x32b0f6&&typeof Symbol=='function'&&_0x32b0f6[_0x5e5a0b(0xa0)]===Symbol&&_0x32b0f6!==Symbol[_0x5e5a0b(0x9b)]?_0x5e5a0b(0xfe):typeof _0x32b0f6;},z(_0x3e5185);}function B(_0xb1de1b,_0x21cd6f){const _0x4b3890=_0x5d06;if(z(_0xb1de1b)!='object'||!_0xb1de1b)return _0xb1de1b;var _0x59cfab=_0xb1de1b[Symbol[_0x4b3890(0x7d)]];if(_0x59cfab!==void 0x0){var _0x34f210=_0x59cfab['call'](_0xb1de1b,_0x21cd6f||_0x4b3890(0xaf));if(z(_0x34f210)!=_0x4b3890(0xeb))return _0x34f210;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x21cd6f===_0x4b3890(0xda)?String:Number)(_0xb1de1b);}function V(_0x6513c6){const _0x382c69=_0x5d06;var _0x3d95df=B(_0x6513c6,'string');return z(_0x3d95df)==_0x382c69(0xfe)?_0x3d95df:_0x3d95df+'';}function H(_0x189462,_0x13f64a,_0x5deb6d){const _0xe8c9f1=_0x5d06;return(_0x13f64a=V(_0x13f64a))in _0x189462?Object[_0xe8c9f1(0x99)](_0x189462,_0x13f64a,{'value':_0x5deb6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x189462[_0x13f64a]=_0x5deb6d,_0x189462;}var U=class extends _0x485ed1{constructor(..._0x444fa3){const _0x26fb8b=_0x5d06;super(..._0x444fa3),H(this,_0x26fb8b(0xf8),new Set()),H(this,_0x26fb8b(0x79),new Set());}[_0x28efc9(0xb3)](_0x4480a2){const _0x14cb9f=_0x28efc9;return this[_0x14cb9f(0xf8)][_0x14cb9f(0x8b)](_0x4480a2),_0x44fb55(()=>this[_0x14cb9f(0xf8)][_0x14cb9f(0x98)](_0x4480a2));}[_0x28efc9(0xe8)](_0x4b1296){const _0x42348a=_0x28efc9;return this['_reporters']['add'](_0x4b1296),_0x44fb55(()=>this[_0x42348a(0x79)][_0x42348a(0x98)](_0x4b1296));}[_0x28efc9(0x70)](_0x9b55a8){const _0x4955a4=_0x28efc9;return this['_sharedOperations'][_0x4955a4(0xf7)](_0x9b55a8);}['getInitialStates'](_0x5e61fd){const _0x303699=_0x28efc9;return Array['from'](this[_0x303699(0x79)])['map'](_0x83886a=>_0x83886a(_0x5e61fd));}};function W(_0xd50a91,_0x45618a){return function(_0x21b0d0,_0x125b7f){_0x45618a(_0x21b0d0,_0x125b7f,_0xd50a91);};}function G(_0x48c0fe,_0x224457,_0x36cbcc,_0x196242){const _0x5499b7=_0x28efc9;var _0x27cde5=arguments['length'],_0x1d7753=_0x27cde5<0x3?_0x224457:_0x196242===null?_0x196242=Object['getOwnPropertyDescriptor'](_0x224457,_0x36cbcc):_0x196242,_0x27ec9a;if(typeof Reflect==_0x5499b7(0xeb)&&typeof Reflect[_0x5499b7(0xa3)]==_0x5499b7(0xd5))_0x1d7753=Reflect[_0x5499b7(0xa3)](_0x48c0fe,_0x224457,_0x36cbcc,_0x196242);else{for(var _0x4d5d06=_0x48c0fe[_0x5499b7(0xcd)]-0x1;_0x4d5d06>=0x0;_0x4d5d06--)(_0x27ec9a=_0x48c0fe[_0x4d5d06])&&(_0x1d7753=(_0x27cde5<0x3?_0x27ec9a(_0x1d7753):_0x27cde5>0x3?_0x27ec9a(_0x224457,_0x36cbcc,_0x1d7753):_0x27ec9a(_0x224457,_0x36cbcc))||_0x1d7753);}return _0x27cde5>0x3&&_0x1d7753&&Object[_0x5499b7(0x99)](_0x224457,_0x36cbcc,_0x1d7753),_0x1d7753;}let K=class extends _0x269553{constructor(_0x2941a6,_0x131b20,_0x11701f){const _0xe73e96=_0x28efc9;super(),this[_0xe73e96(0x9f)]=_0x2941a6,this[_0xe73e96(0xaa)]=_0x131b20,this['_collabSessionService']=_0x11701f,H(this,'_entities',new Map()),this[_0xe73e96(0x83)]();}async[_0x28efc9(0xf9)](_0x33672c){const _0x260586=_0x28efc9;return this['_entities'][_0x260586(0xf7)](_0x33672c)||await this[_0x260586(0xa2)](_0x33672c),this[_0x260586(0xad)][_0x260586(0x9e)](_0x33672c);}[_0x28efc9(0xc6)](_0x4e8036){const _0x75cffc=_0x28efc9;return this[_0x75cffc(0xad)][_0x75cffc(0x9e)](_0x4e8036)??null;}[_0x28efc9(0x83)](){const _0x46e4d3=_0x28efc9;this[_0x46e4d3(0x9f)][_0x46e4d3(0xc9)](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](async _0x147b32=>{const _0x1435c6=_0x46e4d3;let _0x4244e4=_0x147b32[_0x1435c6(0xbb)][_0x1435c6(0xa8)]();this[_0x1435c6(0xad)]['has'](_0x4244e4)||this[_0x1435c6(0xa2)](_0x4244e4);}),this[_0x46e4d3(0x9f)]['getTypeOfUnitDisposed$'](_0x2009b4[_0x46e4d3(0x80)])[_0x46e4d3(0x7f)](_0x211271(this[_0x46e4d3(0x90)]))[_0x46e4d3(0x89)](_0x298a8f=>{const _0x33ff8c=_0x46e4d3;let _0x1087d3=_0x298a8f['getUnitId'](),_0x5947db=this[_0x33ff8c(0xad)][_0x33ff8c(0x9e)](_0x1087d3);_0x5947db==null||_0x5947db[_0x33ff8c(0xc3)]();});}async['_startLiveShareCoordinator'](_0x214980){const _0x27f51f=_0x28efc9;let _0x423da8=await this[_0x27f51f(0xbf)][_0x27f51f(0xa5)](_0x214980),_0x4b22f9=this[_0x27f51f(0xaa)][_0x27f51f(0xde)](J,_0x214980,_0x423da8);return _0x4b22f9[_0x27f51f(0xcb)](),this['_entities']['set'](_0x214980,_0x4b22f9),_0x4b22f9;}};K=G([W(0x0,_0x323fb4),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0x30448f(_0x2df1a0))],K);let q=function(_0x10ab2c){const _0x46f44e=_0x28efc9;return _0x10ab2c['OFFLINE']=_0x46f44e(0x9a),_0x10ab2c[_0x46f44e(0xd8)]='idle',_0x10ab2c[_0x46f44e(0xee)]='following',_0x10ab2c[_0x46f44e(0x103)]=_0x46f44e(0xba),_0x10ab2c[_0x46f44e(0x8d)]=_0x46f44e(0xce),_0x10ab2c;}({}),J=class extends _0x269553{get[_0x28efc9(0xab)](){return this['_status$']['getValue']();}constructor(_0x72c94a,_0x9e2d53,_0x4682ca,_0x1f6229,_0x4e0667){const _0x346055=_0x28efc9;super(),this[_0x346055(0xff)]=_0x72c94a,this['_collabSession']=_0x9e2d53,this[_0x346055(0xed)]=_0x4682ca,this['_liveShareService']=_0x1f6229,this[_0x346055(0x88)]=_0x4e0667,H(this,_0x346055(0x6d),new _0x2617e4('idle')),H(this,_0x346055(0x77),this[_0x346055(0x6d)][_0x346055(0x7c)]()),H(this,'_init',!0x1),H(this,_0x346055(0x101),null),H(this,_0x346055(0xf5),null);}[_0x28efc9(0xc3)](){const _0x27768b=_0x28efc9;var _0x136184;(_0x136184=this[_0x27768b(0x101)])==null||_0x136184['dispose'](),this[_0x27768b(0x6d)][_0x27768b(0x82)]('idle'),this['_status$'][_0x27768b(0xdd)]();}[_0x28efc9(0x107)](){return this['_status'];}[_0x28efc9(0xcb)](){const _0x4cf14e=_0x28efc9;this[_0x4cf14e(0x83)]||(this['_init']=!0x0,this[_0x4cf14e(0xa4)][_0x4cf14e(0xd3)][_0x4cf14e(0x7f)](_0x211271(this[_0x4cf14e(0x90)]))[_0x4cf14e(0x89)](_0x4ef23c=>{const _0x47e8f3=_0x4cf14e;switch(_0x4ef23c){case _0xef806f[_0x47e8f3(0xe5)]:this[_0x47e8f3(0xa7)]();break;case _0xef806f[_0x47e8f3(0xf6)]:this[_0x47e8f3(0x7e)]();break;default:}}),this[_0x4cf14e(0xa4)][_0x4cf14e(0x104)]['pipe'](_0x211271(this[_0x4cf14e(0x90)]))['subscribe'](_0xa3b57c=>{const _0x2ec653=_0x4cf14e;let {eventID:_0x35d61a}=_0xa3b57c;switch(_0x35d61a){case _0x2c6144[_0x2ec653(0xb8)]:this[_0x2ec653(0xca)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x87)]:this[_0x2ec653(0xc4)](_0xa3b57c);break;case _0x2c6144[_0x2ec653(0x109)]:this[_0x2ec653(0xf0)]();break;case _0x2c6144[_0x2ec653(0x85)]:this[_0x2ec653(0x76)](_0xa3b57c);break;default:}}));}[_0x28efc9(0x86)](){const _0x3da697=_0x28efc9;this[_0x3da697(0xa4)][_0x3da697(0xfc)]({'eventID':_0x2c6144[_0x3da697(0x97)],'data':{'unitID':this[_0x3da697(0xff)],'userID':this[_0x3da697(0xa4)]['getMemberID']()}},this[_0x3da697(0xff)]);}[_0x28efc9(0xc0)](){const _0x52c5f7=_0x28efc9;this[_0x52c5f7(0xab)]==='presenting'&&(this[_0x52c5f7(0x6d)][_0x52c5f7(0x82)](_0x52c5f7(0x10a)),this[_0x52c5f7(0xa4)][_0x52c5f7(0xfc)]({'eventID':_0x2c6144[_0x52c5f7(0x109)],'data':{'unitID':this[_0x52c5f7(0xff)]}},this['_unitID']));}[_0x28efc9(0xa9)](){const _0x26856c=_0x28efc9;this[_0x26856c(0xab)]==='not-following'&&(this[_0x26856c(0x6d)][_0x26856c(0x82)](_0x26856c(0xb0)),this[_0x26856c(0x8e)]());}['stopFollowing'](){const _0x4285c=_0x28efc9;this[_0x4285c(0xab)]===_0x4285c(0xb0)&&this[_0x4285c(0x95)]();}[_0x28efc9(0xca)](_0x346343){const _0x56a17a=_0x28efc9;let {presenter:_0x3aa2bd}=_0x346343[_0x56a17a(0xf1)],_0x15dd5b=this[_0x56a17a(0xa4)][_0x56a17a(0xac)]();this[_0x56a17a(0xf5)]=_0x3aa2bd,_0x3aa2bd===_0x15dd5b?(this[_0x56a17a(0x95)](),this[_0x56a17a(0x92)]()):this['_status']!==_0x56a17a(0xba)&&(this['_stopPresenting'](),this[_0x56a17a(0x8e)]());}[_0x28efc9(0xef)](){const _0x513367=_0x28efc9;let _0x24ced8={'eventID':_0x2c6144['LIVESHARE_FETCH_OPERATIONS']};this[_0x513367(0xa4)][_0x513367(0xfc)](_0x24ced8,this[_0x513367(0xff)]);}[_0x28efc9(0xf0)](){const _0x5d0aa7=_0x28efc9;this[_0x5d0aa7(0xf5)]=null,this[_0x5d0aa7(0xab)]!==_0x5d0aa7(0xce)&&this[_0x5d0aa7(0x7a)]();}[_0x28efc9(0x76)](_0x341385){const _0x39e37c=_0x28efc9;if(this[_0x39e37c(0xab)]===_0x39e37c(0xb0)&&this[_0x39e37c(0xf5)]===_0x341385[_0x39e37c(0xf1)][_0x39e37c(0xf3)]){let _0x4914bb=_0x8eba8(_0x341385[_0x39e37c(0xf1)])[_0x39e37c(0xb1)][_0x39e37c(0x7b)]()[_0x39e37c(0x96)](_0x260789=>_0x260789['id']===_0x4f759b['id']);if(_0x4914bb){let _0x2e7a6b=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0xfb)],_0x35e687=_0x4914bb[_0x39e37c(0xa1)][_0x39e37c(0x9c)]['id'];setTimeout(()=>{const _0x500f4e=_0x39e37c;this[_0x500f4e(0x88)][_0x500f4e(0xe4)](_0x206528['id'],{'unitId':_0x2e7a6b,'subUnitId':_0x35e687},{'fromCollab':!0x0});});}}}[_0x28efc9(0x92)](){const _0x369999=_0x28efc9;var _0x31bc32;(_0x31bc32=this[_0x369999(0x101)])==null||_0x31bc32[_0x369999(0xc3)](),this[_0x369999(0x6d)][_0x369999(0x82)](_0x369999(0xce));let _0x25d06f=new Map(),_0x21ec3b=this[_0x369999(0x101)]=new _0x3c6c46();_0x21ec3b['add'](_0x44fb55(()=>{const _0x5d8b74=_0x369999;_0x25d06f[_0x5d8b74(0xb9)](({subject:_0x9cabba,subscription:_0x4e22b0})=>{const _0x509a65=_0x5d8b74;_0x4e22b0[_0x509a65(0xb4)](),_0x9cabba['complete']();}),_0x25d06f[_0x5d8b74(0x8c)]();})),_0x21ec3b[_0x369999(0x8b)](this[_0x369999(0x88)][_0x369999(0x94)](_0x5e99ba=>{const _0xe55e46=_0x369999;if(_0x5e99ba[_0xe55e46(0xc7)]!==_0x50387b['OPERATION']||!this[_0xe55e46(0xc2)][_0xe55e46(0x70)](_0x5e99ba['id']))return;let {id:_0x1f740f}=_0x5e99ba,_0x1210e7;if(_0x25d06f[_0xe55e46(0xf7)](_0x1f740f))_0x1210e7=_0x25d06f['get'](_0x1f740f)['subject'];else{_0x1210e7=new _0x186ef8();let _0x512174=_0x1210e7['pipe'](_0x3c282d(this['_configService']['getConfig']('SAME_OPERATION_SHARE_INTERVAL')??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xe55e46(0x89)](_0x2f682e=>{const _0x5e9e45=_0xe55e46;this['_collabSession'][_0x5e9e45(0xfc)]({'eventID':_0x2c6144[_0x5e9e45(0x87)],'data':{'unitID':this[_0x5e9e45(0xff)],'operations':{[_0x2f682e['id']]:{'id':_0x2f682e['id'],'params':JSON['stringify'](_0x2f682e[_0x5e9e45(0xa1)])}}}},this['_unitID']);});_0x25d06f[_0xe55e46(0x81)](_0x1f740f,{'subject':_0x1210e7,'subscription':_0x512174});}_0x1210e7[_0xe55e46(0x82)](_0x5e99ba);})),this['_liveShareService'][_0x369999(0x9d)](this['_unitID'])[_0x369999(0xb9)](_0x29790a=>this['_collabSession'][_0x369999(0xfc)]({'eventID':_0x2c6144[_0x369999(0x87)],'data':{'unitID':this['_unitID'],'operations':{[_0x29790a['id']]:{'id':_0x29790a['id'],'params':JSON[_0x369999(0xbc)](_0x29790a[_0x369999(0xa1)])}}}},this['_unitID']));}[_0x28efc9(0xdc)](){const _0x49aeb5=_0x28efc9;var _0x263654;this[_0x49aeb5(0x6d)][_0x49aeb5(0x82)](_0x49aeb5(0x10a)),(_0x263654=this['_commandDisposable'])==null||_0x263654[_0x49aeb5(0xc3)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x2cbcd4=_0x28efc9;var _0x307b1a;(_0x307b1a=this['_commandDisposable'])==null||_0x307b1a[_0x2cbcd4(0xc3)](),this[_0x2cbcd4(0x6d)][_0x2cbcd4(0x82)]('following');}[_0x28efc9(0x7a)](){const _0x1d2077=_0x28efc9;var _0x23a0ab;this['_status$']['next'](_0x1d2077(0x10a)),(_0x23a0ab=this['_commandDisposable'])==null||_0x23a0ab[_0x1d2077(0xc3)](),this[_0x1d2077(0x101)]=null;}['_stopFollowing'](){const _0x59afdf=_0x28efc9;var _0x4687e4;this[_0x59afdf(0x6d)]['next'](_0x59afdf(0xba)),(_0x4687e4=this['_commandDisposable'])==null||_0x4687e4[_0x59afdf(0xc3)]();}['_handleOperation'](_0xcab4e7){const _0x5079e1=_0x28efc9;if([_0x5079e1(0xce),'not-following',_0x5079e1(0x9a)][_0x5079e1(0xd9)](this[_0x5079e1(0xab)])||!_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]||_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xae)]===this['_collabSession']['getMemberID']())return;this[_0x5079e1(0xab)]==='idle'&&this['_startFollowing']();let _0x513dc5=_0xcab4e7[_0x5079e1(0xf1)][_0x5079e1(0xe9)];Object[_0x5079e1(0xec)](_0x513dc5)[_0x5079e1(0xb9)](_0x305fc8=>{const _0x2fe514=_0x5079e1;this[_0x2fe514(0x88)][_0x2fe514(0xe4)](_0x305fc8['id'],_0x305fc8[_0x2fe514(0xa1)]?JSON[_0x2fe514(0x102)](_0x305fc8[_0x2fe514(0xa1)]):null,{'fromCollab':!0x0});});}[_0x28efc9(0xa7)](){const _0x13e7df=_0x28efc9;var _0x132d68;this[_0x13e7df(0x6d)][_0x13e7df(0x82)]('offline'),(_0x132d68=this['_commandDisposable'])==null||_0x132d68['dispose']();}[_0x28efc9(0x7e)](){const _0x25894e=_0x28efc9;this[_0x25894e(0x6d)][_0x25894e(0x82)](_0x25894e(0x10a)),this[_0x25894e(0xef)]();}};J=G([W(0x2,_0xc5812d),W(0x3,_0x30448f(U)),W(0x4,_0xc5c8e)],J);var se='@univerjs-pro/live-share',ce=_0x28efc9(0xc5);const Y={};let X=class extends _0x485ed1{constructor(_0x14c69f){const _0x48c546=_0x28efc9;super(),this[_0x48c546(0xc2)]=_0x14c69f,this[_0x48c546(0x83)]();}['_init'](){const _0x13ce22=_0x28efc9;[_0x1d67b2['id'],_0x277ce5['id'],_0x206528['id']][_0x13ce22(0xb9)](_0x249418=>{const _0x495658=_0x13ce22;this[_0x495658(0x74)](this[_0x495658(0xc2)][_0x495658(0xb3)](_0x249418));});}};X=G([W(0x0,_0x30448f(U))],X);function Z(){const _0x37cfaf=_0x28efc9;let _0x52635f=_0x1fed3b(K),_0x37a965=_0x1fed3b(_0x323fb4),_0x21c6f8=_0x3b7677(()=>_0x37a965[_0x37cfaf(0x84)](_0x2009b4[_0x37cfaf(0x80)]),void 0x0,!0x1,[]),_0x215935=_0x3b7677(_0x2da51d(()=>_0x21c6f8?_0x4ec539(()=>_0x45a4d2(_0x52635f['getLiveShareCoordinator'](_0x21c6f8[_0x37cfaf(0xa8)]()))):_0x4aee88(null),[_0x21c6f8,_0x52635f]),null),_0x5ca854=_0x3b7677(_0x215935?()=>_0x215935[_0x37cfaf(0x77)]:null,_0x37cfaf(0x10a),!0x1,[_0x215935]);return _0x215935?_0x50a3a7(_0xb571d6,{'align':_0x37cfaf(0x108),'disabled':_0x5ca854===_0x37cfaf(0x9a),'className':_0x37cfaf(0xea),'overlay':_0x50a3a7(le,{'status':_0x5ca854,'coordinator':_0x215935}),'children':_0x50a3a7(_0x1d906c,{'size':_0x37cfaf(0xe1),'variant':_0x37cfaf(0x105),'disabled':_0x5ca854==='offline','type':_0x37cfaf(0xbd),'children':_0x50a3a7(_0x125941,{})})}):null;}function le(_0x41264a){const _0x5a60e3=_0x28efc9;let {status:_0x5e54dd,coordinator:_0x29c058}=_0x41264a;switch(_0x5e54dd){case'idle':return _0x50a3a7(ue,{'coordinator':_0x29c058});case'following':return _0x50a3a7(de,{'coordinator':_0x29c058});case _0x5a60e3(0xba):return _0x50a3a7(fe,{'coordinator':_0x29c058});case'offline':return _0x50a3a7(me,{});case _0x5a60e3(0xce):return _0x50a3a7(pe,{'coordinator':_0x29c058});default:return null;}}function ue(_0x48aade){const _0xfd4901=_0x28efc9;let {coordinator:_0x305c34}=_0x48aade;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0xfd4901(0xb6),{'className':_0xfd4901(0xe0),'children':_0xfd4901(0xe3)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x305c34[_0xfd4901(0x86)](),'children':_0xfd4901(0x8f)})]});}function de(_0x18b9ea){const _0x496ab4=_0x28efc9;let {coordinator:_0x43ddf7}=_0x18b9ea;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x496ab4(0xe0),'children':_0x496ab4(0x6f)}),_0x50a3a7(_0x1d906c,{'onClick':()=>_0x43ddf7[_0x496ab4(0xc8)](),'children':_0x496ab4(0x8a)})]});}function fe(_0x41f4b3){const _0x172c08=_0x28efc9;let {coordinator:_0x4338f6}=_0x41f4b3;return _0x303561(_0x2b628f,{'children':[_0x50a3a7(_0x172c08(0xb6),{'className':_0x172c08(0xe0),'children':_0x172c08(0x71)}),_0x50a3a7(_0x1d906c,{'variant':_0x172c08(0x105),'onClick':()=>_0x4338f6[_0x172c08(0xa9)](),'children':_0x172c08(0xbe)})]});}function pe(_0x10b33d){const _0x28a5c9=_0x28efc9;let {coordinator:_0x202eea}=_0x10b33d;return _0x303561(_0x2b628f,{'children':[_0x50a3a7('div',{'className':_0x28a5c9(0xe0),'children':_0x28a5c9(0xd0)}),_0x50a3a7(_0x1d906c,{'variant':_0x28a5c9(0xaf),'onClick':()=>_0x202eea[_0x28a5c9(0xc0)](),'children':'Stop\x20presenting'})]});}function me(){const _0x533d34=_0x28efc9;return _0x50a3a7(_0x2b628f,{'children':_0x533d34(0xdb)});}let Q=class extends _0x485ed1{constructor(_0x492351,_0x140a32){const _0x591f10=_0x28efc9;super(),this['_injector']=_0x492351,this[_0x591f10(0x6e)]=_0x140a32,this['_mountLiveShare']();}[_0x28efc9(0xe7)](){const _0x30316c=_0x28efc9;this[_0x30316c(0x74)](this['_uiPartsService'][_0x30316c(0xdf)](_0x128244[_0x30316c(0xb5)],()=>_0xe84d60(Z,this[_0x30316c(0xaa)])));}};Q=G([W(0x0,_0x30448f(_0x2e6242)),W(0x1,_0x22dbef)],Q);let $=class extends _0x7e6f53{constructor(_0x267b52=Y,_0x57adb9,_0x77ad19){const _0x542814=_0x28efc9;super(),this[_0x542814(0xa6)]=_0x267b52,this[_0x542814(0xaa)]=_0x57adb9,this[_0x542814(0xed)]=_0x77ad19;let {..._0x588fc1}=_0x2d940c({},Y,this[_0x542814(0xa6)]);this[_0x542814(0xed)][_0x542814(0xcf)](_0x542814(0x73),_0x588fc1);}[_0x28efc9(0x100)](){const _0x19b878=_0x28efc9;_0x4e0201(this[_0x19b878(0xaa)],_0x1542a2([[U],[K],[X],[Q]],this[_0x19b878(0xa6)][_0x19b878(0xe2)])),_0x46b324(this[_0x19b878(0xaa)],[[X]]);}[_0x28efc9(0x72)](){const _0x440555=_0x28efc9;_0x46b324(this[_0x440555(0xaa)],[[Q]]);}};H($,_0x28efc9(0xc7),_0x2009b4[_0x28efc9(0x91)]),H($,_0x28efc9(0x93),_0x28efc9(0x75)),H($,_0x28efc9(0xf4),se),H($,_0x28efc9(0xd4),ce),$=G([_0x46133d(_0x444b97,_0x52d034),W(0x1,_0x30448f(_0x2e6242)),W(0x2,_0xc5812d)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
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);}));
1
+ (function(_0x240e6b,_0xe968ba){const _0x46c5bb=_0x3d1f,_0x435a0d=_0x240e6b();while(!![]){try{const _0x3f3c2c=-parseInt(_0x46c5bb(0x14c))/0x1+parseInt(_0x46c5bb(0x12f))/0x2+-parseInt(_0x46c5bb(0x155))/0x3*(-parseInt(_0x46c5bb(0x138))/0x4)+-parseInt(_0x46c5bb(0x12d))/0x5*(parseInt(_0x46c5bb(0x12c))/0x6)+-parseInt(_0x46c5bb(0x13b))/0x7+parseInt(_0x46c5bb(0x130))/0x8+-parseInt(_0x46c5bb(0x131))/0x9;if(_0x3f3c2c===_0xe968ba)break;else _0x435a0d['push'](_0x435a0d['shift']());}catch(_0x1e3839){_0x435a0d['push'](_0x435a0d['shift']());}}}(_0x17d3,0x94fe0),function(_0x194b69,_0xaca43e){const _0x21b5d4=_0x3d1f;typeof exports==_0x21b5d4(0x139)&&typeof module<'u'?_0xaca43e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x21b5d4(0x133)&&define['amd']?define([_0x21b5d4(0x135),_0x21b5d4(0x132),_0x21b5d4(0x148)],_0xaca43e):(_0x194b69=typeof globalThis<'u'?globalThis:_0x194b69||self,_0xaca43e(_0x194b69[_0x21b5d4(0x157)],_0x194b69[_0x21b5d4(0x143)],_0x194b69[_0x21b5d4(0x142)]));}(this,function(_0x185bd1,_0x9c54c3,_0xfde152){const _0x3d51e1=_0x3d1f;function _0x4fc9bb(_0x1b7b0d){'@babel/helpers - typeof';const _0x21345d=_0x3d1f;return _0x4fc9bb=typeof Symbol=='function'&&typeof Symbol[_0x21345d(0x141)]==_0x21345d(0x13d)?function(_0x44e22d){return typeof _0x44e22d;}:function(_0x277225){const _0x34c888=_0x21345d;return _0x277225&&typeof Symbol==_0x34c888(0x133)&&_0x277225[_0x34c888(0x14e)]===Symbol&&_0x277225!==Symbol[_0x34c888(0x158)]?_0x34c888(0x13d):typeof _0x277225;},_0x4fc9bb(_0x1b7b0d);}function _0x12cb59(_0x168d2a,_0x47af18){const _0x146b71=_0x3d1f;if(_0x4fc9bb(_0x168d2a)!='object'||!_0x168d2a)return _0x168d2a;var _0x1dbef0=_0x168d2a[Symbol[_0x146b71(0x136)]];if(_0x1dbef0!==void 0x0){var _0x433936=_0x1dbef0['call'](_0x168d2a,_0x47af18||_0x146b71(0x13f));if(_0x4fc9bb(_0x433936)!='object')return _0x433936;throw TypeError(_0x146b71(0x13c));}return(_0x47af18===_0x146b71(0x15a)?String:Number)(_0x168d2a);}function _0x34d890(_0x5e146c){const _0x52a805=_0x3d1f;var _0x35023c=_0x12cb59(_0x5e146c,_0x52a805(0x15a));return _0x4fc9bb(_0x35023c)==_0x52a805(0x13d)?_0x35023c:_0x35023c+'';}function _0x519cc5(_0x2d465d,_0x3f1aa5,_0x5a405d){return(_0x3f1aa5=_0x34d890(_0x3f1aa5))in _0x2d465d?Object['defineProperty'](_0x2d465d,_0x3f1aa5,{'value':_0x5a405d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d465d[_0x3f1aa5]=_0x5a405d,_0x2d465d;}var _0x3bc067=class extends _0xfde152[_0x3d51e1(0x150)]{constructor(..._0x239527){super(..._0x239527),_0x519cc5(this,'_liveShareController',void 0x0);}[_0x3d51e1(0x14a)](_0xeae1bf){const _0x1f0f14=_0x3d51e1;this['_liveShareController']=_0xeae1bf[_0x1f0f14(0x152)](_0x185bd1[_0x1f0f14(0x145)]);}['getLiveShareStatus'](){const _0x5f1ce3=_0x3d51e1;let _0x29bc6d=this['_injector']['get'](_0x9c54c3[_0x5f1ce3(0x12e)])[_0x5f1ce3(0x15b)](_0x9c54c3['UniverInstanceType']['UNIVER_SHEET']);if(!_0x29bc6d)throw Error(_0x5f1ce3(0x140));let _0x493b6e=_0x29bc6d['getUnitId'](),_0x4c8a82=this[_0x5f1ce3(0x12b)]['getLiveShareCoordinatorSync'](_0x493b6e);return(_0x4c8a82==null?void 0x0:_0x4c8a82[_0x5f1ce3(0x153)]())??_0x185bd1[_0x5f1ce3(0x154)][_0x5f1ce3(0x151)];}[_0x3d51e1(0x14f)](){const _0x266f28=_0x3d51e1;let _0x5e9fa3=this[_0x266f28(0x14b)][_0x266f28(0x152)](_0x9c54c3['IUniverInstanceService'])['getCurrentUnitOfType'](_0x9c54c3['UniverInstanceType']['UNIVER_SHEET']);if(!_0x5e9fa3)throw Error(_0x266f28(0x140));let _0x5e42c4=_0x5e9fa3[_0x266f28(0x146)](),_0x375932=this[_0x266f28(0x12b)][_0x266f28(0x147)](_0x5e42c4);if(!_0x375932)throw Error(_0x266f28(0x13a));_0x375932[_0x266f28(0x14f)]();}[_0x3d51e1(0x137)](){const _0x140449=_0x3d51e1;let _0x45d71b=this[_0x140449(0x14b)][_0x140449(0x152)](_0x9c54c3['IUniverInstanceService'])[_0x140449(0x15b)](_0x9c54c3[_0x140449(0x159)][_0x140449(0x144)]);if(!_0x45d71b)throw Error('No\x20active\x20workbook\x20found.');let _0xecd9b2=_0x45d71b[_0x140449(0x146)](),_0x3793fb=this['_liveShareController'][_0x140449(0x147)](_0xecd9b2);if(!_0x3793fb)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3793fb[_0x140449(0x137)]();}['startPresenting'](){const _0x591d4b=_0x3d51e1;let _0x53c971=this['_injector'][_0x591d4b(0x152)](_0x9c54c3['IUniverInstanceService'])[_0x591d4b(0x15b)](_0x9c54c3[_0x591d4b(0x159)]['UNIVER_SHEET']);if(!_0x53c971)throw Error(_0x591d4b(0x140));let _0x4cae73=_0x53c971[_0x591d4b(0x146)](),_0x57572c=this['_liveShareController'][_0x591d4b(0x147)](_0x4cae73);if(!_0x57572c)throw Error(_0x591d4b(0x13a));_0x57572c[_0x591d4b(0x156)]();}['stopPresenting'](){const _0x3e3302=_0x3d51e1;let _0x2a4ad1=this[_0x3e3302(0x14b)][_0x3e3302(0x152)](_0x9c54c3[_0x3e3302(0x12e)])[_0x3e3302(0x15b)](_0x9c54c3[_0x3e3302(0x159)][_0x3e3302(0x144)]);if(!_0x2a4ad1)throw Error(_0x3e3302(0x140));let _0x5dfa09=_0x2a4ad1['getUnitId'](),_0x1073e4=this[_0x3e3302(0x12b)][_0x3e3302(0x147)](_0x5dfa09);if(!_0x1073e4)throw Error(_0x3e3302(0x13a));_0x1073e4[_0x3e3302(0x134)]();}};_0xfde152[_0x3d51e1(0x150)]['extend'](_0x3bc067);var _0x32e58a=class extends _0xfde152[_0x3d51e1(0x149)]{get[_0x3d51e1(0x14d)](){const _0x4a22e4=_0x3d51e1;return _0x185bd1[_0x4a22e4(0x154)];}};_0xfde152[_0x3d51e1(0x149)][_0x3d51e1(0x13e)](_0x32e58a);}));function _0x3d1f(_0x112c59,_0x53a8d4){_0x112c59=_0x112c59-0x12b;const _0x17d3ee=_0x17d3();let _0x3d1ff8=_0x17d3ee[_0x112c59];return _0x3d1ff8;}function _0x17d3(){const _0x315ded=['486584IxVZFz','LiveShareStatusEnum','constructor','startFollowing','FUniver','IDLE','get','getStatus','LiveShareStatus','2551803phXkLt','tryStartPresenting','UniverProLiveShare','prototype','UniverInstanceType','string','getCurrentUnitOfType','_liveShareController','799536fNstVX','5UsmlQq','IUniverInstanceService','139470eNXHBD','6103712NcYQks','2734434uueEwh','@univerjs/core','function','stopPresenting','@univerjs-pro/live-share','toPrimitive','stopFollowing','4gyZsFR','object','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1045534NmlbRP','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','extend','default','No\x20active\x20workbook\x20found.','iterator','UniverCoreFacade','UniverCore','UNIVER_SHEET','LiveShareController','getUnitId','getLiveShareCoordinatorSync','@univerjs/core/facade','FEnum','_initialize','_injector'];_0x17d3=function(){return _0x315ded;};return _0x17d3();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
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();}
1
+ function _0x3486(){const _0x1598b5=['baseVal','Start\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','createElement','override','LIVESHARE_OPERATION','UniverSheetsUi','_uiPartsService','Button','getUnitId','@univerjs/core','UniverSheets','stringify','params','tag','forwardRef','_init','shouldShareOperation','touchDependencies','forEach','useDependency','getLiveShareCoordinatorSync','circle,\x20ellipse,\x20line,\x20path,\x20polygon,\x20polyline,\x20rect,\x20text,\x20textPath,\x20tspan,\x20use','following','idSuffix','_fetchOperations','CollaborationSessionService','target','Subject','merge','disposeWithMe','getPropertyValue','width','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','fill','asObservable','packageName','_collabSessionService','getBoundingClientRect','_handleOffline','none','Dropdown','getPropertyPriority','CollaborationEvent','SessionStatus','_stopFollowing','onRendered','decorate','Injector','DependentOn','_commandService','executeCommand','react','length','xlink:href','amd','_injector','1.0.0-beta.2','@univerjs/sheets-ui','setConfig','operators','getOwnPropertyDescriptor','unit','UniverProCollaboration','react/jsx-runtime','children','registerInitialStateReporter','symbol','@univerjs-pro/license','_univerInstanceService','object','live-share.config','setProperty','event$','type','UniverCore','6423849hMuYjV','string','_handleOnline','registerDependencies','Stop\x20following','React','currentColor','removeAttribute','replace','subject','text','takeUntil','live-share-icon','@univerjs-pro/collaboration','height','registerSharedOperation','InsertSheetMutation','isFinite','_handleTerminate','_sharedOperations','LIVESHARE_FETCH_OPERATIONS','UniverDesign','_liveShareService','184296tWgHst','div','Present\x20this\x20document','send','connectInjector','evenodd','useObservable','createInstance','removeProperty','UniverUi','_configService','OFFLINE','FOLLOWING','Plugin','UNIVER_LIVE_SHARE_PLUGIN','Inject','map','Start','http://www.w3.org/2000/svg','has','dispose$','onStarting','add','useImperativeHandle','element','UNIVER_SHEET','find','not-following','dispose','assign','LiveShareStatus','some','getMemberID','colorChannel1','_status$','IDLE','150tsBLhp','strokeWidth','useMemo','1323720UbLAoz','919gGaGqy','You\x27re\x20not\x20following\x20the\x20presenter','IUIPartsService','pipe','You\x27re\x20following\x20the\x20presenter','7350329YdhEJK','unitId','_entities','value','You\x27re\x20presenting\x20the\x20document','url(#$1','Stop\x20presenting','reverse','originalStrokeWidth','use','flatMap','status$','1124hJvdOZ','OPERATION','hadStyleAttribute','_beIdle','attrs','4089016hEKZbn','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','mergeOverrideWithDependencies','RxDisposable','getInitialStates','subscribe','max','_reporters','HEADER_MENU','getValue','delete','_presenter','_unitID','viewBox','default','path','operations','clear','onCommandExecuted','Fragment','parseFloat','4359ZbhNGP','You\x27are\x20offline.','pluginName','1em','get','getConfig','_config','180Ncnfey','sheet','_mountLiveShare','constructor','useId','prototype','toDisposable','_handleNewChangeSets','_status','getTypeOfUnitAdded$','complete','vectorEffect','_commandDisposable','Disposable','BehaviorSubject','stopFollowing','SetZoomRatioOperation','_handleNewHost','_stopPresenting','stroke-width','getStatus','style','_startFollowing','includes','entries','current','toStringTag','presenting','_startLiveShareCoordinator','min','disconnect','LiveShareIcon','trim','requireSession','set','from','function','DisposableCollection','toFixed','useRef','_collabSession','isReleased','UNIVER_UNKNOWN','stroke','@univerjs/design','_startPresenting','appliedStrokeWidth','mask','SAME_OPERATION_SHARE_INTERVAL','priority','UniverIcon','UniverInstanceType','iterator','observe','@univerjs-pro/collaboration-client','offline','tryStartPresenting','UniverProLiveShare','UniverProLicense','_handleOperation','jsxs','@univerjs/ui','stopPresenting','@univerjs/sheets','data','SetWorksheetActiveOperation','IUniverInstanceService','button','rxjs','LIVESHARE_REQUEST_HOST','defineProperty','ONLINE','BuiltInUIPart','jsx','next','throttleTime','querySelectorAll','idle','UniverLiveSharePlugin','LIVESHARE_TERMINATE','toPrimitive','init'];_0x3486=function(){return _0x1598b5;};return _0x3486();}function _0x5348(_0x40e1ab,_0x116a0c){_0x40e1ab=_0x40e1ab-0xcb;const _0x348699=_0x3486();let _0x534820=_0x348699[_0x40e1ab];return _0x534820;}(function(_0x1c6d37,_0x51cc89){const _0x223983=_0x5348,_0x2cdf84=_0x1c6d37();while(!![]){try{const _0x9c02e1=parseInt(_0x223983(0x1bf))/0x1*(-parseInt(_0x223983(0x1bb))/0x2)+parseInt(_0x223983(0xdb))/0x3*(-parseInt(_0x223983(0x1d0))/0x4)+-parseInt(_0x223983(0xe2))/0x5*(-parseInt(_0x223983(0x197))/0x6)+parseInt(_0x223983(0x1c4))/0x7+-parseInt(_0x223983(0x1d5))/0x8+-parseInt(_0x223983(0x180))/0x9+parseInt(_0x223983(0x1be))/0xa;if(_0x9c02e1===_0x51cc89)break;else _0x2cdf84['push'](_0x2cdf84['shift']());}catch(_0x3d633c){_0x2cdf84['push'](_0x2cdf84['shift']());}}}(_0x3486,0x8f169),function(_0x447fca,_0x86169e){const _0x2a3ddc=_0x5348;typeof exports==_0x2a3ddc(0x17a)&&typeof module<'u'?_0x86169e(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==_0x2a3ddc(0x106)&&define[_0x2a3ddc(0x16b)]?define(['exports',_0x2a3ddc(0x18d),_0x2a3ddc(0x118),_0x2a3ddc(0x13e),_0x2a3ddc(0x121),'rxjs','rxjs/operators',_0x2a3ddc(0x178),_0x2a3ddc(0x16e),_0x2a3ddc(0x11f),_0x2a3ddc(0x10e),_0x2a3ddc(0x168),_0x2a3ddc(0x174)],_0x86169e):(_0x447fca=typeof globalThis<'u'?globalThis:_0x447fca||self,_0x86169e(_0x447fca[_0x2a3ddc(0x11b)]={},_0x447fca[_0x2a3ddc(0x173)],_0x447fca['UniverProCollaborationClient'],_0x447fca[_0x2a3ddc(0x17f)],_0x447fca[_0x2a3ddc(0x13f)],_0x447fca[_0x2a3ddc(0x126)],_0x447fca[_0x2a3ddc(0x126)][_0x2a3ddc(0x170)],_0x447fca[_0x2a3ddc(0x11c)],_0x447fca[_0x2a3ddc(0x13a)],_0x447fca[_0x2a3ddc(0x1a0)],_0x447fca[_0x2a3ddc(0x195)],_0x447fca[_0x2a3ddc(0x185)],_0x447fca[_0x2a3ddc(0x185)]));}(this,function(_0x547ac9,_0x24d520,_0x23241b,_0x12c478,_0x178c69,_0x56299f,_0x4e6c57,_0x57a70d,_0x4dc71a,_0x302f74,_0x260a67,_0x278a6a,_0x118f47){const _0x5b734f=_0x5348;Object[_0x5b734f(0x128)](_0x547ac9,Symbol[_0x5b734f(0xfc)],{'value':'Module'});function _0x3a3aff(_0xccac04){'@babel/helpers - typeof';const _0x2dab3f=_0x5b734f;return _0x3a3aff=typeof Symbol==_0x2dab3f(0x106)&&typeof Symbol[_0x2dab3f(0x116)]=='symbol'?function(_0x361468){return typeof _0x361468;}:function(_0x64e3f3){const _0x5fe590=_0x2dab3f;return _0x64e3f3&&typeof Symbol==_0x5fe590(0x106)&&_0x64e3f3[_0x5fe590(0xe5)]===Symbol&&_0x64e3f3!==Symbol[_0x5fe590(0xe7)]?_0x5fe590(0x177):typeof _0x64e3f3;},_0x3a3aff(_0xccac04);}function _0x2df51d(_0xa7a6b9,_0x3980a2){const _0x479f32=_0x5b734f;if(_0x3a3aff(_0xa7a6b9)!='object'||!_0xa7a6b9)return _0xa7a6b9;var _0x49a58e=_0xa7a6b9[Symbol[_0x479f32(0x132)]];if(_0x49a58e!==void 0x0){var _0x4b513c=_0x49a58e['call'](_0xa7a6b9,_0x3980a2||_0x479f32(0xd4));if(_0x3a3aff(_0x4b513c)!=_0x479f32(0x17a))return _0x4b513c;throw TypeError(_0x479f32(0x1d7));}return(_0x3980a2===_0x479f32(0x181)?String:Number)(_0xa7a6b9);}function _0x24ee09(_0x54b8ec){const _0x445414=_0x5b734f;var _0x1e96cf=_0x2df51d(_0x54b8ec,_0x445414(0x181));return _0x3a3aff(_0x1e96cf)=='symbol'?_0x1e96cf:_0x1e96cf+'';}function _0xa0db88(_0x4f1ddc,_0xb500fa,_0x22be1d){const _0x57aa7a=_0x5b734f;return(_0xb500fa=_0x24ee09(_0xb500fa))in _0x4f1ddc?Object[_0x57aa7a(0x128)](_0x4f1ddc,_0xb500fa,{'value':_0x22be1d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f1ddc[_0xb500fa]=_0x22be1d,_0x4f1ddc;}var _0x25ffc0=class extends _0x12c478[_0x5b734f(0xef)]{constructor(..._0x4c0d73){const _0x538282=_0x5b734f;super(..._0x4c0d73),_0xa0db88(this,_0x538282(0x193),new Set()),_0xa0db88(this,_0x538282(0xcd),new Set());}[_0x5b734f(0x18f)](_0x5b9ffd){const _0x566ef7=_0x5b734f;return this['_sharedOperations']['add'](_0x5b9ffd),(0x0,_0x12c478[_0x566ef7(0xe8)])(()=>this[_0x566ef7(0x193)][_0x566ef7(0xd0)](_0x5b9ffd));}[_0x5b734f(0x176)](_0x5019d4){const _0x2a3e60=_0x5b734f;return this[_0x2a3e60(0xcd)][_0x2a3e60(0x1ad)](_0x5019d4),(0x0,_0x12c478[_0x2a3e60(0xe8)])(()=>this[_0x2a3e60(0xcd)]['delete'](_0x5019d4));}[_0x5b734f(0x145)](_0x29fd52){const _0x16c2a3=_0x5b734f;return this[_0x16c2a3(0x193)][_0x16c2a3(0x1aa)](_0x29fd52);}[_0x5b734f(0x1da)](_0x2335f9){const _0x312e9f=_0x5b734f;return Array[_0x312e9f(0x105)](this[_0x312e9f(0xcd)])[_0x312e9f(0x1a7)](_0x360737=>_0x360737(_0x2335f9));}};function _0x4b87e0(_0x209a15,_0x58098c){return function(_0xf0c9,_0xd5767e){_0x58098c(_0xf0c9,_0xd5767e,_0x209a15);};}function _0x4daca4(_0x32a7f7,_0x197162,_0x455ce2,_0x47a096){const _0x2e1c7b=_0x5b734f;var _0x5249ad=arguments['length'],_0xc75b8e=_0x5249ad<0x3?_0x197162:_0x47a096===null?_0x47a096=Object[_0x2e1c7b(0x171)](_0x197162,_0x455ce2):_0x47a096,_0x21fd06;if(typeof Reflect==_0x2e1c7b(0x17a)&&typeof Reflect[_0x2e1c7b(0x163)]==_0x2e1c7b(0x106))_0xc75b8e=Reflect['decorate'](_0x32a7f7,_0x197162,_0x455ce2,_0x47a096);else{for(var _0x502933=_0x32a7f7['length']-0x1;_0x502933>=0x0;_0x502933--)(_0x21fd06=_0x32a7f7[_0x502933])&&(_0xc75b8e=(_0x5249ad<0x3?_0x21fd06(_0xc75b8e):_0x5249ad>0x3?_0x21fd06(_0x197162,_0x455ce2,_0xc75b8e):_0x21fd06(_0x197162,_0x455ce2))||_0xc75b8e);}return _0x5249ad>0x3&&_0xc75b8e&&Object[_0x2e1c7b(0x128)](_0x197162,_0x455ce2,_0xc75b8e),_0xc75b8e;}let _0x235fb6=class extends _0x12c478[_0x5b734f(0x1d9)]{constructor(_0x524177,_0x1021e9,_0x3c2b6b){const _0x3a2a18=_0x5b734f;super(),this['_univerInstanceService']=_0x524177,this[_0x3a2a18(0x16c)]=_0x1021e9,this[_0x3a2a18(0x159)]=_0x3c2b6b,_0xa0db88(this,'_entities',new Map()),this[_0x3a2a18(0x144)]();}async['getLiveShareCoordinator'](_0x3d4ff4){const _0x49ab23=_0x5b734f;return this[_0x49ab23(0x1c6)][_0x49ab23(0x1aa)](_0x3d4ff4)||await this[_0x49ab23(0xfe)](_0x3d4ff4),this[_0x49ab23(0x1c6)][_0x49ab23(0xdf)](_0x3d4ff4);}[_0x5b734f(0x149)](_0x1382ae){const _0xb6957d=_0x5b734f;return this[_0xb6957d(0x1c6)][_0xb6957d(0xdf)](_0x1382ae)??null;}[_0x5b734f(0x144)](){const _0x3bfc70=_0x5b734f;this[_0x3bfc70(0x179)][_0x3bfc70(0xeb)](_0x12c478['UniverInstanceType'][_0x3bfc70(0x1b0)])[_0x3bfc70(0x1c2)]((0x0,_0x4e6c57[_0x3bfc70(0x18b)])(this[_0x3bfc70(0x1ab)]))[_0x3bfc70(0xcb)](async _0x1e2c6f=>{const _0x4e8c76=_0x3bfc70;let _0x15b74d=_0x1e2c6f[_0x4e8c76(0x172)][_0x4e8c76(0x13d)]();this[_0x4e8c76(0x1c6)]['has'](_0x15b74d)||this[_0x4e8c76(0xfe)](_0x15b74d);}),this[_0x3bfc70(0x179)]['getTypeOfUnitDisposed$'](_0x12c478[_0x3bfc70(0x115)][_0x3bfc70(0x1b0)])[_0x3bfc70(0x1c2)]((0x0,_0x4e6c57['takeUntil'])(this[_0x3bfc70(0x1ab)]))[_0x3bfc70(0xcb)](_0x28d518=>{const _0x7d0a73=_0x3bfc70;let _0x27eb03=_0x28d518[_0x7d0a73(0x13d)](),_0x2761d7=this[_0x7d0a73(0x1c6)][_0x7d0a73(0xdf)](_0x27eb03);_0x2761d7==null||_0x2761d7[_0x7d0a73(0x1b3)]();});}async[_0x5b734f(0xfe)](_0x2b7e5d){const _0x535cd2=_0x5b734f;let _0x51f78a=await this['_collabSessionService'][_0x535cd2(0x103)](_0x2b7e5d),_0x38bb08=this['_injector'][_0x535cd2(0x19e)](_0x160a0f,_0x2b7e5d,_0x51f78a);return _0x38bb08['init'](),this[_0x535cd2(0x1c6)][_0x535cd2(0x104)](_0x2b7e5d,_0x38bb08),_0x38bb08;}};_0x235fb6=_0x4daca4([_0x4b87e0(0x0,_0x12c478[_0x5b734f(0x124)]),_0x4b87e0(0x1,(0x0,_0x12c478['Inject'])(_0x12c478[_0x5b734f(0x164)])),_0x4b87e0(0x2,(0x0,_0x12c478[_0x5b734f(0x1a6)])(_0x23241b[_0x5b734f(0x14e)]))],_0x235fb6);let _0x811cfa=function(_0x3dea5c){const _0x46bafc=_0x5b734f;return _0x3dea5c['OFFLINE']=_0x46bafc(0x119),_0x3dea5c[_0x46bafc(0x1ba)]=_0x46bafc(0x12f),_0x3dea5c[_0x46bafc(0x1a3)]=_0x46bafc(0x14b),_0x3dea5c['NOT_FOLLOWING']=_0x46bafc(0x1b2),_0x3dea5c['PRESENTING']=_0x46bafc(0xfd),_0x3dea5c;}({}),_0x160a0f=class extends _0x12c478[_0x5b734f(0x1d9)]{get[_0x5b734f(0xea)](){const _0x2b462e=_0x5b734f;return this[_0x2b462e(0x1b9)][_0x2b462e(0xcf)]();}constructor(_0xbc53ee,_0x522a96,_0x36eef0,_0x59a2dd,_0x599148){const _0x3430aa=_0x5b734f;super(),this[_0x3430aa(0xd2)]=_0xbc53ee,this[_0x3430aa(0x10a)]=_0x522a96,this[_0x3430aa(0x1a1)]=_0x36eef0,this['_liveShareService']=_0x59a2dd,this[_0x3430aa(0x166)]=_0x599148,_0xa0db88(this,_0x3430aa(0x1b9),new _0x56299f[(_0x3430aa(0xf0))](_0x3430aa(0x12f))),_0xa0db88(this,_0x3430aa(0x1cf),this['_status$'][_0x3430aa(0x157)]()),_0xa0db88(this,_0x3430aa(0x144),!0x1),_0xa0db88(this,_0x3430aa(0xee),null),_0xa0db88(this,'_presenter',null);}[_0x5b734f(0x1b3)](){const _0x51f7d8=_0x5b734f;var _0x2524e0;(_0x2524e0=this[_0x51f7d8(0xee)])==null||_0x2524e0[_0x51f7d8(0x1b3)](),this[_0x51f7d8(0x1b9)]['next'](_0x51f7d8(0x12f)),this[_0x51f7d8(0x1b9)][_0x51f7d8(0xec)]();}[_0x5b734f(0xf6)](){return this['_status'];}[_0x5b734f(0x133)](){const _0x25578c=_0x5b734f;this[_0x25578c(0x144)]||(this[_0x25578c(0x144)]=!0x0,this['_collabSession']['sessionStatus$']['pipe']((0x0,_0x4e6c57[_0x25578c(0x18b)])(this[_0x25578c(0x1ab)]))[_0x25578c(0xcb)](_0x8f41ee=>{const _0x113ba0=_0x25578c;switch(_0x8f41ee){case _0x23241b[_0x113ba0(0x160)][_0x113ba0(0x1a2)]:this[_0x113ba0(0x15b)]();break;case _0x23241b[_0x113ba0(0x160)][_0x113ba0(0x129)]:this[_0x113ba0(0x182)]();break;default:}}),this[_0x25578c(0x10a)][_0x25578c(0x17d)][_0x25578c(0x1c2)]((0x0,_0x4e6c57[_0x25578c(0x18b)])(this['dispose$']))[_0x25578c(0xcb)](_0x1f1aaa=>{const _0x1163f6=_0x25578c;let {eventID:_0x6c5c7a}=_0x1f1aaa;switch(_0x6c5c7a){case _0x24d520[_0x1163f6(0x15f)]['LIVESHARE_NEW_HOST']:this[_0x1163f6(0xf3)](_0x1f1aaa);break;case _0x24d520[_0x1163f6(0x15f)][_0x1163f6(0x139)]:this[_0x1163f6(0x11d)](_0x1f1aaa);break;case _0x24d520[_0x1163f6(0x15f)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x24d520[_0x1163f6(0x15f)]['NEW_CHANGESETS']:this[_0x1163f6(0xe9)](_0x1f1aaa);break;default:}}));}['tryStartPresenting'](){const _0x1bb62a=_0x5b734f;this['_collabSession']['send']({'eventID':_0x24d520[_0x1bb62a(0x15f)][_0x1bb62a(0x127)],'data':{'unitID':this[_0x1bb62a(0xd2)],'userID':this[_0x1bb62a(0x10a)][_0x1bb62a(0x1b7)]()}},this[_0x1bb62a(0xd2)]);}[_0x5b734f(0x120)](){const _0x353cf2=_0x5b734f;this[_0x353cf2(0xea)]===_0x353cf2(0xfd)&&(this[_0x353cf2(0x1b9)][_0x353cf2(0x12c)]('idle'),this[_0x353cf2(0x10a)][_0x353cf2(0x19a)]({'eventID':_0x24d520[_0x353cf2(0x15f)][_0x353cf2(0x131)],'data':{'unitID':this[_0x353cf2(0xd2)]}},this[_0x353cf2(0xd2)]));}['startFollowing'](){const _0x39970f=_0x5b734f;this['_status']==='not-following'&&(this[_0x39970f(0x1b9)][_0x39970f(0x12c)]('following'),this[_0x39970f(0xf8)]());}[_0x5b734f(0xf1)](){const _0x15f74f=_0x5b734f;this['_status']===_0x15f74f(0x14b)&&this[_0x15f74f(0x161)]();}[_0x5b734f(0xf3)](_0xec68af){const _0xb74196=_0x5b734f;let {presenter:_0xb7d195}=_0xec68af[_0xb74196(0x122)],_0x37d18c=this[_0xb74196(0x10a)][_0xb74196(0x1b7)]();this[_0xb74196(0xd1)]=_0xb7d195,_0xb7d195===_0x37d18c?(this[_0xb74196(0x161)](),this[_0xb74196(0x10f)]()):this[_0xb74196(0xea)]!==_0xb74196(0x1b2)&&(this[_0xb74196(0xf4)](),this[_0xb74196(0xf8)]());}[_0x5b734f(0x14d)](){const _0x18af05=_0x5b734f;let _0x196a64={'eventID':_0x24d520['CollaborationEvent'][_0x18af05(0x194)]};this[_0x18af05(0x10a)][_0x18af05(0x19a)](_0x196a64,this[_0x18af05(0xd2)]);}[_0x5b734f(0x192)](){const _0x7b7c9e=_0x5b734f;this['_presenter']=null,this[_0x7b7c9e(0xea)]!==_0x7b7c9e(0xfd)&&this[_0x7b7c9e(0x1d3)]();}[_0x5b734f(0xe9)](_0x5a9f1f){const _0x4240e5=_0x5b734f;if(this[_0x4240e5(0xea)]===_0x4240e5(0x14b)&&this[_0x4240e5(0xd1)]===_0x5a9f1f['data']['memberID']){let _0x53b358=(0x0,_0x24d520['parseProtocolChangeset'])(_0x5a9f1f[_0x4240e5(0x122)])['mutations'][_0x4240e5(0x1cb)]()[_0x4240e5(0x1b1)](_0x323ea1=>_0x323ea1['id']===_0x178c69[_0x4240e5(0x190)]['id']);if(_0x53b358){let _0xe08d7e=_0x53b358[_0x4240e5(0x141)][_0x4240e5(0x1c5)],_0x59654c=_0x53b358['params'][_0x4240e5(0xe3)]['id'];setTimeout(()=>{const _0x17aeda=_0x4240e5;this[_0x17aeda(0x166)][_0x17aeda(0x167)](_0x178c69[_0x17aeda(0x123)]['id'],{'unitId':_0xe08d7e,'subUnitId':_0x59654c},{'fromCollab':!0x0});});}}}[_0x5b734f(0x10f)](){const _0x4b4c6b=_0x5b734f;var _0x79dcc7;(_0x79dcc7=this[_0x4b4c6b(0xee)])==null||_0x79dcc7['dispose'](),this['_status$'][_0x4b4c6b(0x12c)](_0x4b4c6b(0xfd));let _0x16190d=new Map(),_0xa0a8c3=this['_commandDisposable']=new _0x12c478[(_0x4b4c6b(0x107))]();_0xa0a8c3[_0x4b4c6b(0x1ad)]((0x0,_0x12c478[_0x4b4c6b(0xe8)])(()=>{const _0x47447e=_0x4b4c6b;_0x16190d[_0x47447e(0x147)](({subject:_0x4be1cf,subscription:_0x149a00})=>{_0x149a00['unsubscribe'](),_0x4be1cf['complete']();}),_0x16190d[_0x47447e(0xd7)]();})),_0xa0a8c3[_0x4b4c6b(0x1ad)](this[_0x4b4c6b(0x166)][_0x4b4c6b(0xd8)](_0x22dbf6=>{const _0x4a80c=_0x4b4c6b;if(_0x22dbf6[_0x4a80c(0x17e)]!==_0x12c478['CommandType'][_0x4a80c(0x1d1)]||!this[_0x4a80c(0x196)][_0x4a80c(0x145)](_0x22dbf6['id']))return;let {id:_0xd3f72}=_0x22dbf6,_0x55f128;if(_0x16190d[_0x4a80c(0x1aa)](_0xd3f72))_0x55f128=_0x16190d[_0x4a80c(0xdf)](_0xd3f72)[_0x4a80c(0x189)];else{_0x55f128=new _0x56299f[(_0x4a80c(0x150))]();let _0x1d9b6a=_0x55f128[_0x4a80c(0x1c2)]((0x0,_0x4e6c57[_0x4a80c(0x12d)])(this[_0x4a80c(0x1a1)][_0x4a80c(0xe0)](_0x4a80c(0x112))??0xc8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a80c(0xcb)](_0x526847=>{const _0x4fd6cd=_0x4a80c;this[_0x4fd6cd(0x10a)][_0x4fd6cd(0x19a)]({'eventID':_0x24d520[_0x4fd6cd(0x15f)][_0x4fd6cd(0x139)],'data':{'unitID':this[_0x4fd6cd(0xd2)],'operations':{[_0x526847['id']]:{'id':_0x526847['id'],'params':JSON[_0x4fd6cd(0x140)](_0x526847[_0x4fd6cd(0x141)])}}}},this[_0x4fd6cd(0xd2)]);});_0x16190d['set'](_0xd3f72,{'subject':_0x55f128,'subscription':_0x1d9b6a});}_0x55f128['next'](_0x22dbf6);})),this[_0x4b4c6b(0x196)][_0x4b4c6b(0x1da)](this['_unitID'])[_0x4b4c6b(0x147)](_0x445f00=>this[_0x4b4c6b(0x10a)][_0x4b4c6b(0x19a)]({'eventID':_0x24d520[_0x4b4c6b(0x15f)][_0x4b4c6b(0x139)],'data':{'unitID':this[_0x4b4c6b(0xd2)],'operations':{[_0x445f00['id']]:{'id':_0x445f00['id'],'params':JSON['stringify'](_0x445f00[_0x4b4c6b(0x141)])}}}},this[_0x4b4c6b(0xd2)]));}['_stopPresenting'](){const _0x114d85=_0x5b734f;var _0x4f447a;this['_status$'][_0x114d85(0x12c)](_0x114d85(0x12f)),(_0x4f447a=this[_0x114d85(0xee)])==null||_0x4f447a[_0x114d85(0x1b3)](),this[_0x114d85(0xee)]=null;}[_0x5b734f(0xf8)](){const _0x6c8ada=_0x5b734f;var _0x521a82;(_0x521a82=this[_0x6c8ada(0xee)])==null||_0x521a82[_0x6c8ada(0x1b3)](),this[_0x6c8ada(0x1b9)][_0x6c8ada(0x12c)](_0x6c8ada(0x14b));}[_0x5b734f(0x1d3)](){const _0x156246=_0x5b734f;var _0x16724a;this[_0x156246(0x1b9)][_0x156246(0x12c)](_0x156246(0x12f)),(_0x16724a=this['_commandDisposable'])==null||_0x16724a[_0x156246(0x1b3)](),this[_0x156246(0xee)]=null;}['_stopFollowing'](){const _0x466ac6=_0x5b734f;var _0xa8ffe0;this[_0x466ac6(0x1b9)]['next'](_0x466ac6(0x1b2)),(_0xa8ffe0=this['_commandDisposable'])==null||_0xa8ffe0[_0x466ac6(0x1b3)]();}['_handleOperation'](_0x1e7f6b){const _0x4039fe=_0x5b734f;if(['presenting',_0x4039fe(0x1b2),'offline'][_0x4039fe(0xf9)](this[_0x4039fe(0xea)])||!_0x1e7f6b[_0x4039fe(0x122)]['presenter']||_0x1e7f6b['data']['presenter']===this[_0x4039fe(0x10a)][_0x4039fe(0x1b7)]())return;this[_0x4039fe(0xea)]===_0x4039fe(0x12f)&&this['_startFollowing']();let _0x31872e=_0x1e7f6b[_0x4039fe(0x122)][_0x4039fe(0xd6)];Object['values'](_0x31872e)['forEach'](_0x35a552=>{const _0x4e7b71=_0x4039fe;this['_commandService']['executeCommand'](_0x35a552['id'],_0x35a552[_0x4e7b71(0x141)]?JSON['parse'](_0x35a552['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x489ff0=_0x5b734f;var _0x641f16;this[_0x489ff0(0x1b9)]['next'](_0x489ff0(0x119)),(_0x641f16=this['_commandDisposable'])==null||_0x641f16[_0x489ff0(0x1b3)]();}['_handleOnline'](){const _0xc803d2=_0x5b734f;this[_0xc803d2(0x1b9)][_0xc803d2(0x12c)](_0xc803d2(0x12f)),this[_0xc803d2(0x14d)]();}};_0x160a0f=_0x4daca4([_0x4b87e0(0x2,_0x12c478[_0x5b734f(0x1d6)]),_0x4b87e0(0x3,(0x0,_0x12c478[_0x5b734f(0x1a6)])(_0x25ffc0)),_0x4b87e0(0x4,_0x12c478['ICommandService'])],_0x160a0f);var _0x2645e9='@univerjs-pro/live-share',_0x1152d9=_0x5b734f(0x16d);let _0x176330={},_0x121cb2=class extends _0x12c478['Disposable']{constructor(_0xecda1c){const _0xbf66da=_0x5b734f;super(),this['_liveShareService']=_0xecda1c,this[_0xbf66da(0x144)]();}[_0x5b734f(0x144)](){const _0x22e818=_0x5b734f;[_0x4dc71a[_0x22e818(0xf2)]['id'],_0x4dc71a['SetScrollOperation']['id'],_0x178c69[_0x22e818(0x123)]['id']][_0x22e818(0x147)](_0x3973b9=>{const _0x107902=_0x22e818;this['disposeWithMe'](this[_0x107902(0x196)][_0x107902(0x18f)](_0x3973b9));});}};_0x121cb2=_0x4daca4([_0x4b87e0(0x0,(0x0,_0x12c478['Inject'])(_0x25ffc0))],_0x121cb2);function _0x50ab0c({ref:_0x241aa1,..._0x5e0b1e}){const _0x1f3238=_0x5b734f;let {preserveStrokeWidth:_0x343b7f,icon:_0x5a9f2e,id:_0x11e9eb,className:_0x4d8ac7,extend:_0x1f47cc,..._0x4501d7}=_0x5e0b1e,_0x2b93ac=('univerjs-icon\x20univerjs-icon-'+_0x11e9eb+'\x20'+(_0x4d8ac7||''))[_0x1f3238(0x102)](),_0x1eee2d='_'+(0x0,_0x278a6a[_0x1f3238(0xe6)])(),_0x456bbd=(0x0,_0x278a6a[_0x1f3238(0x109)])(null);return(0x0,_0x278a6a[_0x1f3238(0x1ae)])(_0x241aa1,()=>_0x456bbd[_0x1f3238(0xfb)]),(0x0,_0x278a6a['useLayoutEffect'])(()=>{const _0x390310=_0x1f3238;if(!(!_0x343b7f||!_0x456bbd[_0x390310(0xfb)]||_0x456bbd[_0x390310(0xfb)]['localName']!==_0x5a9f2e['tag']))return _0x526a26(_0x456bbd[_0x390310(0xfb)]);},[_0x343b7f,_0x5a9f2e]),_0x3dfa84(_0x5a9f2e,''+_0x11e9eb,{'defIds':_0x5a9f2e['defIds'],'idSuffix':_0x1eee2d},{'ref':_0x456bbd,'className':_0x2b93ac,..._0x4501d7},_0x1f47cc);}function _0x3dfa84(_0xfb9f18,_0x1c124d,_0x1ac454,_0x31e2b5,_0xdac770){const _0x5494cd=_0x5b734f;return(0x0,_0x278a6a[_0x5494cd(0x137)])(_0xfb9f18[_0x5494cd(0x142)],{'key':_0x1c124d,..._0x593280(_0xfb9f18,_0x1ac454,_0xdac770),..._0x31e2b5},(_0x3d630e(_0xfb9f18,_0x1ac454)[_0x5494cd(0x175)]||[])[_0x5494cd(0x1a7)]((_0x1d0b0e,_0x2b1d89)=>_0x3dfa84(_0x1d0b0e,_0x1c124d+'-'+_0xfb9f18[_0x5494cd(0x142)]+'-'+_0x2b1d89,_0x1ac454,void 0x0,_0xdac770)));}function _0x593280(_0x24303c,_0x25383b,_0x7e5f8e){const _0x35d9eb=_0x5b734f;let _0x4e4921={..._0x24303c[_0x35d9eb(0x1d4)]};_0x7e5f8e!=null&&_0x7e5f8e[_0x35d9eb(0x1b8)]&&_0x4e4921[_0x35d9eb(0x156)]==='colorChannel1'&&(_0x4e4921['fill']=_0x7e5f8e[_0x35d9eb(0x1b8)]),_0x7e5f8e!=null&&_0x7e5f8e[_0x35d9eb(0x1b8)]&&_0x4e4921[_0x35d9eb(0x10d)]===_0x35d9eb(0x1b8)&&(_0x4e4921[_0x35d9eb(0x10d)]=_0x7e5f8e['colorChannel1']),_0x24303c[_0x35d9eb(0x142)]===_0x35d9eb(0x111)&&_0x4e4921['id']&&(_0x4e4921['id']+=_0x25383b[_0x35d9eb(0x14c)]),Object[_0x35d9eb(0xfa)](_0x4e4921)[_0x35d9eb(0x147)](([_0x6b4791,_0x3eb77])=>{const _0x45ed2d=_0x35d9eb;_0x6b4791==='mask'&&typeof _0x3eb77=='string'&&(_0x4e4921[_0x6b4791]=_0x3eb77[_0x45ed2d(0x188)](/url\(#(.*)\)/,_0x45ed2d(0x1c9)+_0x25383b[_0x45ed2d(0x14c)]+')'));});let {defIds:_0x4fdc8c}=_0x25383b;return!_0x4fdc8c||_0x4fdc8c['length']===0x0?_0x4e4921:(_0x24303c['tag']===_0x35d9eb(0x1cd)&&_0x4e4921[_0x35d9eb(0x16a)]&&(_0x4e4921[_0x35d9eb(0x16a)]+=_0x25383b[_0x35d9eb(0x14c)]),Object['entries'](_0x4e4921)['forEach'](([_0x5abc0e,_0x4434a3])=>{const _0x2b2e01=_0x35d9eb;typeof _0x4434a3=='string'&&(_0x4e4921[_0x5abc0e]=_0x4434a3[_0x2b2e01(0x188)](/url\(#(.*)\)/,'url(#$1'+_0x25383b[_0x2b2e01(0x14c)]+')'));}),_0x4e4921);}function _0x3d630e(_0x3ad4c4,_0x1a48c4){const _0x3b0949=_0x5b734f;var _0x18c170;let {defIds:_0xa9fd02}=_0x1a48c4;return!_0xa9fd02||_0xa9fd02[_0x3b0949(0x169)]===0x0?_0x3ad4c4:_0x3ad4c4[_0x3b0949(0x142)]==='defs'&&(_0x18c170=_0x3ad4c4[_0x3b0949(0x175)])!=null&&_0x18c170[_0x3b0949(0x169)]?{..._0x3ad4c4,'children':_0x3ad4c4[_0x3b0949(0x175)]['map'](_0x1e1fc4=>typeof _0x1e1fc4[_0x3b0949(0x1d4)]['id']==_0x3b0949(0x181)&&_0xa9fd02&&_0xa9fd02[_0x3b0949(0xf9)](_0x1e1fc4[_0x3b0949(0x1d4)]['id'])?{..._0x1e1fc4,'attrs':{..._0x1e1fc4[_0x3b0949(0x1d4)],'id':_0x1e1fc4[_0x3b0949(0x1d4)]['id']+_0x1a48c4[_0x3b0949(0x14c)]}}:_0x1e1fc4)}:_0x3ad4c4;}function _0x526a26(_0xdd5bd1){const _0x481c43=_0x5b734f;let _0x596a7a=_0xdd5bd1[_0x481c43(0xd3)][_0x481c43(0x134)],_0x5a0cb8=Math[_0x481c43(0xcc)](_0x596a7a[_0x481c43(0x154)],_0x596a7a[_0x481c43(0x18e)]);if(!Number[_0x481c43(0x191)](_0x5a0cb8)||_0x5a0cb8<=0x0||_0x596a7a[_0x481c43(0x154)]<=0x0||_0x596a7a[_0x481c43(0x18e)]<=0x0)return()=>void 0x0;let _0x11a488=0x10/_0x5a0cb8,_0x3c5741=Array['from'](_0xdd5bd1[_0x481c43(0x12e)](_0x481c43(0x14a)))[_0x481c43(0x1ce)](_0xeff748=>{const _0x2634a6=_0x481c43;let _0x35b64c=getComputedStyle(_0xeff748),_0x295776=Number[_0x2634a6(0xda)](_0x35b64c[_0x2634a6(0x1bc)]);return _0x35b64c[_0x2634a6(0x10d)]===_0x2634a6(0x15c)||Number[_0x2634a6(0xda)](_0x35b64c['strokeOpacity'])===0x0||_0x35b64c[_0x2634a6(0xed)]==='non-scaling-stroke'||!Number[_0x2634a6(0x191)](_0x295776)||_0x295776<=0x0?[]:[{'element':_0xeff748,'hadStyleAttribute':_0xeff748['hasAttribute'](_0x2634a6(0xf7)),'originalStrokeWidth':_0x295776,'strokeWidth':_0x57eaf9(_0xeff748[_0x2634a6(0xf7)],_0x2634a6(0xf5))}];})[_0x481c43(0x1a7)](_0x5bc2ae=>({'appliedStrokeWidth':null,'element':_0x5bc2ae[_0x481c43(0x1af)],'hadStyleAttribute':_0x5bc2ae[_0x481c43(0x1d2)],'isReleased':!0x1,'originalStrokeWidth':_0x5bc2ae[_0x481c43(0x1cc)],'strokeWidth':_0x5bc2ae[_0x481c43(0x1bc)]}));if(_0x3c5741[_0x481c43(0x169)]===0x0)return()=>void 0x0;let _0x125cc1=(_0x299e11,_0x4d0991)=>{const _0x25a51b=_0x481c43;if(_0x596a7a[_0x25a51b(0x154)]<=0x0||_0x596a7a[_0x25a51b(0x18e)]<=0x0||_0x299e11<=0x0||_0x4d0991<=0x0)return;let _0x2307e0=Math[_0x25a51b(0xff)](_0x299e11/_0x596a7a[_0x25a51b(0x154)],_0x4d0991/_0x596a7a['height']);!Number[_0x25a51b(0x191)](_0x2307e0)||_0x2307e0<=0x0||_0x3c5741[_0x25a51b(0x147)](_0x3ec9af=>{const _0x4c940a=_0x25a51b;if(_0x3ec9af['isReleased'])return;if(_0x3ec9af[_0x4c940a(0x110)]!==null&&(_0x3ec9af[_0x4c940a(0x1af)][_0x4c940a(0xf7)][_0x4c940a(0x153)]('stroke-width')!==_0x3ec9af[_0x4c940a(0x110)]||_0x3ec9af[_0x4c940a(0x1af)][_0x4c940a(0xf7)][_0x4c940a(0x15e)](_0x4c940a(0xf5))!==_0x3ec9af[_0x4c940a(0x1bc)][_0x4c940a(0x113)])){_0x3ec9af[_0x4c940a(0x110)]=null,_0x3ec9af[_0x4c940a(0x10b)]=!0x0;return;}let _0x19f63c=_0x3ec9af[_0x4c940a(0x1cc)]*_0x11a488/_0x2307e0,_0x572f33=Number(_0x19f63c[_0x4c940a(0x108)](0xc))+'px';_0x3ec9af[_0x4c940a(0x1af)][_0x4c940a(0xf7)]['setProperty'](_0x4c940a(0xf5),_0x572f33,_0x3ec9af[_0x4c940a(0x1bc)]['priority']),_0x3ec9af['appliedStrokeWidth']=_0x572f33;});},_0x5afa80=_0xdd5bd1[_0x481c43(0x15a)]();_0x125cc1(_0x5afa80['width'],_0x5afa80[_0x481c43(0x18e)]);let _0x166803=typeof ResizeObserver>'u'?null:new ResizeObserver(_0x3a22d9=>{const _0x410f91=_0x481c43;if(_0x3a22d9[_0x410f91(0x1b6)](_0x5f1dae=>_0x5f1dae[_0x410f91(0x14f)]===_0xdd5bd1)){let _0x4c0295=_0xdd5bd1[_0x410f91(0x15a)]();_0x125cc1(_0x4c0295['width'],_0x4c0295[_0x410f91(0x18e)]);}});return _0x166803==null||_0x166803[_0x481c43(0x117)](_0xdd5bd1),()=>{const _0x3252e8=_0x481c43;_0x166803==null||_0x166803[_0x3252e8(0x100)](),_0x3c5741[_0x3252e8(0x147)](_0x14017e=>{const _0x1d3b68=_0x3252e8;_0x14017e[_0x1d3b68(0x110)]!==null&&(_0x4967b4(_0x14017e[_0x1d3b68(0x1af)][_0x1d3b68(0xf7)],_0x1d3b68(0xf5),_0x14017e[_0x1d3b68(0x110)],_0x14017e['strokeWidth'][_0x1d3b68(0x113)],_0x14017e[_0x1d3b68(0x1bc)]),!_0x14017e[_0x1d3b68(0x1d2)]&&_0x14017e['element'][_0x1d3b68(0xf7)][_0x1d3b68(0x169)]===0x0&&_0x14017e[_0x1d3b68(0x1af)][_0x1d3b68(0x187)](_0x1d3b68(0xf7)));});};}function _0x57eaf9(_0x4e2062,_0x16ad94){const _0x2335da=_0x5b734f;return{'priority':_0x4e2062[_0x2335da(0x15e)](_0x16ad94),'value':_0x4e2062[_0x2335da(0x153)](_0x16ad94)};}function _0x4967b4(_0x13e2c9,_0x313f44,_0x558a3b,_0x384a34,_0x37ec96){const _0x4cef2e=_0x5b734f;_0x13e2c9[_0x4cef2e(0x153)](_0x313f44)===_0x558a3b&&_0x13e2c9[_0x4cef2e(0x15e)](_0x313f44)===_0x384a34&&(_0x37ec96[_0x4cef2e(0x1c7)]?_0x13e2c9[_0x4cef2e(0x17c)](_0x313f44,_0x37ec96['value'],_0x37ec96['priority']):_0x13e2c9[_0x4cef2e(0x19f)](_0x313f44));}_0x50ab0c['displayName']=_0x5b734f(0x114);let _0x4bbeba={'tag':'svg','attrs':{'xmlns':_0x5b734f(0x1a9),'fill':_0x5b734f(0x15c),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x5b734f(0xde)},'children':[{'tag':_0x5b734f(0xd5),'attrs':{'fill':_0x5b734f(0x186),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x5b734f(0x186),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5b734f(0x19c),'clipRule':_0x5b734f(0x19c)}}]},_0x1d0d03=(0x0,_0x278a6a[_0x5b734f(0x143)])(function(_0x592727,_0x1777fc){const _0x58ab3f=_0x5b734f;return(0x0,_0x278a6a[_0x58ab3f(0x137)])(_0x50ab0c,Object[_0x58ab3f(0x1b4)]({},_0x592727,{'id':_0x58ab3f(0x18c),'ref':_0x1777fc,'icon':_0x4bbeba}));});_0x1d0d03['displayName']=_0x5b734f(0x101);function _0x5a9e54(){const _0xc43c1a=_0x5b734f;let _0x6a4608=(0x0,_0x302f74[_0xc43c1a(0x148)])(_0x235fb6),_0x23b89a=(0x0,_0x302f74[_0xc43c1a(0x148)])(_0x12c478[_0xc43c1a(0x124)]),_0x188088=(0x0,_0x302f74['useObservable'])(()=>_0x23b89a['getCurrentTypeOfUnit$'](_0x12c478[_0xc43c1a(0x115)][_0xc43c1a(0x1b0)]),void 0x0,!0x1,[]),_0x9a5329=(0x0,_0x302f74[_0xc43c1a(0x19d)])((0x0,_0x278a6a[_0xc43c1a(0x1bd)])(()=>_0x188088?(0x0,_0x56299f['defer'])(()=>(0x0,_0x56299f[_0xc43c1a(0x105)])(_0x6a4608['getLiveShareCoordinator'](_0x188088[_0xc43c1a(0x13d)]()))):(0x0,_0x56299f['of'])(null),[_0x188088,_0x6a4608]),null),_0x3fbfb0=(0x0,_0x302f74[_0xc43c1a(0x19d)])(_0x9a5329?()=>_0x9a5329[_0xc43c1a(0x1cf)]:null,'idle',!0x1,[_0x9a5329]);return _0x9a5329?(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x260a67[_0xc43c1a(0x15d)],{'align':'end','disabled':_0x3fbfb0===_0xc43c1a(0x119),'className':_0xc43c1a(0x155),'overlay':(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x55ca5b,{'status':_0x3fbfb0,'coordinator':_0x9a5329}),'children':(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x260a67['Button'],{'size':'icon','variant':_0xc43c1a(0x18a),'disabled':_0x3fbfb0==='offline','type':_0xc43c1a(0x125),'children':(0x0,_0x118f47[_0xc43c1a(0x12b)])(_0x1d0d03,{})})}):null;}function _0x55ca5b(_0x5dd41f){const _0x6eba9e=_0x5b734f;let {status:_0x27abbe,coordinator:_0x2889f0}=_0x5dd41f;switch(_0x27abbe){case _0x6eba9e(0x12f):return(0x0,_0x118f47['jsx'])(_0x35b437,{'coordinator':_0x2889f0});case'following':return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x213416,{'coordinator':_0x2889f0});case _0x6eba9e(0x1b2):return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x490013,{'coordinator':_0x2889f0});case'offline':return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x149239,{});case _0x6eba9e(0xfd):return(0x0,_0x118f47[_0x6eba9e(0x12b)])(_0x5c75b3,{'coordinator':_0x2889f0});default:return null;}}function _0x35b437(_0x5067fc){const _0x5e7a32=_0x5b734f;let {coordinator:_0x527429}=_0x5067fc;return(0x0,_0x118f47[_0x5e7a32(0x11e)])(_0x118f47[_0x5e7a32(0xd9)],{'children':[(0x0,_0x118f47[_0x5e7a32(0x12b)])(_0x5e7a32(0x198),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5e7a32(0x199)}),(0x0,_0x118f47['jsx'])(_0x260a67[_0x5e7a32(0x13c)],{'onClick':()=>_0x527429[_0x5e7a32(0x11a)](),'children':_0x5e7a32(0x1a8)})]});}function _0x213416(_0x44874a){const _0x55d9e3=_0x5b734f;let {coordinator:_0x41aa62}=_0x44874a;return(0x0,_0x118f47[_0x55d9e3(0x11e)])(_0x118f47[_0x55d9e3(0xd9)],{'children':[(0x0,_0x118f47[_0x55d9e3(0x12b)])(_0x55d9e3(0x198),{'className':_0x55d9e3(0x136),'children':_0x55d9e3(0x1c3)}),(0x0,_0x118f47['jsx'])(_0x260a67[_0x55d9e3(0x13c)],{'onClick':()=>_0x41aa62[_0x55d9e3(0xf1)](),'children':_0x55d9e3(0x184)})]});}function _0x490013(_0x5c320f){const _0x1ba2ec=_0x5b734f;let {coordinator:_0x5b5d0f}=_0x5c320f;return(0x0,_0x118f47[_0x1ba2ec(0x11e)])(_0x118f47[_0x1ba2ec(0xd9)],{'children':[(0x0,_0x118f47[_0x1ba2ec(0x12b)])(_0x1ba2ec(0x198),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1ba2ec(0x1c0)}),(0x0,_0x118f47['jsx'])(_0x260a67[_0x1ba2ec(0x13c)],{'variant':_0x1ba2ec(0x18a),'onClick':()=>_0x5b5d0f['startFollowing'](),'children':_0x1ba2ec(0x135)})]});}function _0x5c75b3(_0x2d33d3){const _0x385a2e=_0x5b734f;let {coordinator:_0x1a0a47}=_0x2d33d3;return(0x0,_0x118f47[_0x385a2e(0x11e)])(_0x118f47['Fragment'],{'children':[(0x0,_0x118f47[_0x385a2e(0x12b)])('div',{'className':_0x385a2e(0x136),'children':_0x385a2e(0x1c8)}),(0x0,_0x118f47[_0x385a2e(0x12b)])(_0x260a67[_0x385a2e(0x13c)],{'variant':_0x385a2e(0xd4),'onClick':()=>_0x1a0a47[_0x385a2e(0x120)](),'children':_0x385a2e(0x1ca)})]});}function _0x149239(){const _0xea8192=_0x5b734f;return(0x0,_0x118f47[_0xea8192(0x12b)])(_0x118f47[_0xea8192(0xd9)],{'children':_0xea8192(0xdc)});}let _0x460963=class extends _0x12c478[_0x5b734f(0xef)]{constructor(_0x71b7d,_0x4ec99f){const _0x317ca1=_0x5b734f;super(),this[_0x317ca1(0x16c)]=_0x71b7d,this[_0x317ca1(0x13b)]=_0x4ec99f,this['_mountLiveShare']();}[_0x5b734f(0xe4)](){const _0x21e20e=_0x5b734f;this[_0x21e20e(0x152)](this[_0x21e20e(0x13b)]['registerComponent'](_0x302f74[_0x21e20e(0x12a)][_0x21e20e(0xce)],()=>(0x0,_0x302f74[_0x21e20e(0x19b)])(_0x5a9e54,this[_0x21e20e(0x16c)])));}};_0x460963=_0x4daca4([_0x4b87e0(0x0,(0x0,_0x12c478[_0x5b734f(0x1a6)])(_0x12c478[_0x5b734f(0x164)])),_0x4b87e0(0x1,_0x302f74[_0x5b734f(0x1c1)])],_0x460963);let _0x566104=class extends _0x12c478[_0x5b734f(0x1a4)]{constructor(_0x2e01fe=_0x176330,_0x1086ce,_0x5ee03f){const _0x483ff2=_0x5b734f;super(),this[_0x483ff2(0xe1)]=_0x2e01fe,this['_injector']=_0x1086ce,this['_configService']=_0x5ee03f;let {..._0x495039}=(0x0,_0x12c478[_0x483ff2(0x151)])({},_0x176330,this[_0x483ff2(0xe1)]);this['_configService'][_0x483ff2(0x16f)](_0x483ff2(0x17b),_0x495039);}[_0x5b734f(0x1ac)](){const _0x5c3a47=_0x5b734f;(0x0,_0x12c478[_0x5c3a47(0x183)])(this[_0x5c3a47(0x16c)],(0x0,_0x12c478[_0x5c3a47(0x1d8)])([[_0x25ffc0],[_0x235fb6],[_0x121cb2],[_0x460963]],this[_0x5c3a47(0xe1)][_0x5c3a47(0x138)])),(0x0,_0x12c478[_0x5c3a47(0x146)])(this['_injector'],[[_0x121cb2]]);}[_0x5b734f(0x162)](){const _0x544f4d=_0x5b734f;(0x0,_0x12c478[_0x544f4d(0x146)])(this[_0x544f4d(0x16c)],[[_0x460963]]);}};_0xa0db88(_0x566104,'type',_0x12c478[_0x5b734f(0x115)][_0x5b734f(0x10c)]),_0xa0db88(_0x566104,_0x5b734f(0xdd),_0x5b734f(0x1a5)),_0xa0db88(_0x566104,_0x5b734f(0x158),_0x2645e9),_0xa0db88(_0x566104,'version',_0x1152d9),_0x566104=_0x4daca4([(0x0,_0x12c478[_0x5b734f(0x165)])(_0x57a70d['UniverLicensePlugin'],_0x23241b['UniverCollaborationClientPlugin']),_0x4b87e0(0x1,(0x0,_0x12c478['Inject'])(_0x12c478[_0x5b734f(0x164)])),_0x4b87e0(0x2,_0x12c478[_0x5b734f(0x1d6)])],_0x566104),Object[_0x5b734f(0x128)](_0x547ac9,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x235fb6;}}),_0x547ac9[_0x5b734f(0x1b5)]=_0x811cfa,Object[_0x5b734f(0x128)](_0x547ac9,_0x5b734f(0x130),{'enumerable':!0x0,'get':function(){return _0x566104;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://univer.ai",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/dream-num/univer"
14
+ "url": "https://github.com/dream-num/univer-pro"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/dream-num/univer/issues"
@@ -62,15 +62,15 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
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"
65
+ "@univerjs/icons": "1.38.0",
66
+ "@univerjs-pro/collaboration": "1.0.0-beta.2",
67
+ "@univerjs-pro/collaboration-client": "1.0.0-beta.2",
68
+ "@univerjs/core": "1.0.0-beta.2",
69
+ "@univerjs-pro/license": "1.0.0-beta.2",
70
+ "@univerjs/sheets-ui": "1.0.0-beta.2",
71
+ "@univerjs/ui": "1.0.0-beta.2",
72
+ "@univerjs/design": "1.0.0-beta.2",
73
+ "@univerjs/sheets": "1.0.0-beta.2"
74
74
  },
75
75
  "devDependencies": {
76
76
  "postcss": "^8.5.25",
@@ -79,8 +79,8 @@
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-beta.1",
83
- "@univerjs/protocol": "1.0.0-beta.1"
82
+ "@univerjs-infra/shared": "1.0.0-beta.2",
83
+ "@univerjs/protocol": "1.0.0-beta.2"
84
84
  },
85
85
  "scripts": {
86
86
  "test": "vitest run",