@univerjs-pro/live-share 1.0.0-alpha.1 → 1.0.0-alpha.3

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/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # @univerjs-pro/live-share
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@univerjs-pro/live-share?style=flat-square)](https://npmjs.com/package/@univerjs-pro/live-share)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/live-share?style=flat-square)](https://npmjs.com/package/@univerjs-pro/live-share)
4
5
  [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/live-share?style=flat-square)](https://npmjs.com/package/@univerjs-pro/live-share)
5
6
 
6
- `@univerjs-pro/live-share` provides live share collaboration plugin for Univer Pro.
7
+ `@univerjs-pro/live-share` is part of Univer Pro. Live share collaboration plugin for Univer Pro.
7
8
 
8
9
  ## Package Overview
9
10
 
@@ -30,8 +31,13 @@ import { UniverLiveSharePlugin } from '@univerjs-pro/live-share';
30
31
  univer.registerPlugin(UniverLiveSharePlugin);
31
32
  ```
32
33
 
34
+ ## Integration Notes
35
+
36
+ - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
37
+ - Import the package stylesheet once in the application entry before rendering Univer UI.
38
+ - Use the facade entry when integrating through Univer Facade APIs.
39
+
33
40
  ## Resources
34
41
 
35
42
  - [Documentation](https://docs.univer.ai/guides/pro)
36
43
  - [NPM package](https://npmjs.com/package/@univerjs-pro/live-share)
37
-
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5a6102=_0x373a;function _0xac2e(){const _0x56be8a=['object','getLiveShareStatus','UniverInstanceType','stopFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','LiveShareController','toPrimitive','defineProperty','iterator','get','3314904wavdBF','4706709HVZSas','getLiveShareCoordinatorSync','constructor','1516414mrpCRk','9643856VHGoOb','call','getCurrentUnitOfType','_injector','default','symbol','36Bhdcfb','getStatus','UNIVER_SHEET','startFollowing','string','3VEddaC','FUniver','function','getUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IUniverInstanceService','FEnum','LiveShareStatusEnum','183415aJGwqo','extend','2119738zTLYcc','38855169jSSBYM','No\x20active\x20workbook\x20found.','stopPresenting'];_0xac2e=function(){return _0x56be8a;};return _0xac2e();}(function(_0x4a435f,_0x48a94){const _0x23497d=_0x373a,_0x504a1b=_0x4a435f();while(!![]){try{const _0x407ad7=-parseInt(_0x23497d(0x91))/0x1+parseInt(_0x23497d(0xa7))/0x2*(-parseInt(_0x23497d(0x9d))/0x3)+-parseInt(_0x23497d(0x98))/0x4*(-parseInt(_0x23497d(0xa5))/0x5)+-parseInt(_0x23497d(0x8d))/0x6+parseInt(_0x23497d(0x8e))/0x7+-parseInt(_0x23497d(0x92))/0x8+parseInt(_0x23497d(0xa8))/0x9;if(_0x407ad7===_0x48a94)break;else _0x504a1b['push'](_0x504a1b['shift']());}catch(_0x3e46d1){_0x504a1b['push'](_0x504a1b['shift']());}}}(_0xac2e,0xf09b6));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x1ca70d){'@babel/helpers - typeof';const _0x436645=_0x373a;return r=typeof Symbol==_0x436645(0x9f)&&typeof Symbol[_0x436645(0x8b)]==_0x436645(0x97)?function(_0x36069c){return typeof _0x36069c;}:function(_0x315f22){const _0x11c003=_0x436645;return _0x315f22&&typeof Symbol==_0x11c003(0x9f)&&_0x315f22[_0x11c003(0x90)]===Symbol&&_0x315f22!==Symbol['prototype']?_0x11c003(0x97):typeof _0x315f22;},r(_0x1ca70d);}function i(_0x20bfcd,_0x8a2244){const _0x537588=_0x373a;if(r(_0x20bfcd)!=_0x537588(0xab)||!_0x20bfcd)return _0x20bfcd;var _0x24e1c4=_0x20bfcd[Symbol[_0x537588(0xb2)]];if(_0x24e1c4!==void 0x0){var _0xfe9737=_0x24e1c4[_0x537588(0x93)](_0x20bfcd,_0x8a2244||_0x537588(0x96));if(r(_0xfe9737)!='object')return _0xfe9737;throw TypeError(_0x537588(0xa1));}return(_0x8a2244==='string'?String:Number)(_0x20bfcd);}function _0x373a(_0x16c497,_0x409c9e){_0x16c497=_0x16c497-0x8a;const _0xac2e97=_0xac2e();let _0x373a6e=_0xac2e97[_0x16c497];return _0x373a6e;}function a(_0x55bbcd){const _0x4a177c=_0x373a;var _0x477b5f=i(_0x55bbcd,_0x4a177c(0x9c));return r(_0x477b5f)=='symbol'?_0x477b5f:_0x477b5f+'';}function o(_0x5c0f71,_0x1f3fe7,_0x1bb913){const _0x1e0deb=_0x373a;return(_0x1f3fe7=a(_0x1f3fe7))in _0x5c0f71?Object[_0x1e0deb(0x8a)](_0x5c0f71,_0x1f3fe7,{'value':_0x1bb913,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c0f71[_0x1f3fe7]=_0x1bb913,_0x5c0f71;}var s=class extends n[_0x5a6102(0x9e)]{constructor(..._0x4859a9){const _0x25bea9=_0x5a6102;super(..._0x4859a9),o(this,_0x25bea9(0xb0),void 0x0);}['_initialize'](_0x24ba61){const _0x49e44d=_0x5a6102;this[_0x49e44d(0xb0)]=_0x24ba61[_0x49e44d(0x8c)](e[_0x49e44d(0xb1)]);}[_0x5a6102(0xac)](){const _0x2e13ee=_0x5a6102;var _0x93026b;let _0x52b6ca=this['_injector'][_0x2e13ee(0x8c)](t[_0x2e13ee(0xa2)])[_0x2e13ee(0x94)](t[_0x2e13ee(0xad)][_0x2e13ee(0x9a)]);if(!_0x52b6ca)throw Error(_0x2e13ee(0xa9));let _0x59e92b=_0x52b6ca[_0x2e13ee(0xa0)](),_0x89619d=this['_liveShareController'][_0x2e13ee(0x8f)](_0x59e92b);return(_0x93026b=_0x89619d==null?void 0x0:_0x89619d[_0x2e13ee(0x99)]())==null?e['LiveShareStatus']['IDLE']:_0x93026b;}[_0x5a6102(0x9b)](){const _0x1584c6=_0x5a6102;let _0x116f8d=this[_0x1584c6(0x95)][_0x1584c6(0x8c)](t[_0x1584c6(0xa2)])[_0x1584c6(0x94)](t[_0x1584c6(0xad)]['UNIVER_SHEET']);if(!_0x116f8d)throw Error(_0x1584c6(0xa9));let _0x4aa0eb=_0x116f8d[_0x1584c6(0xa0)](),_0x209260=this[_0x1584c6(0xb0)]['getLiveShareCoordinatorSync'](_0x4aa0eb);if(!_0x209260)throw Error(_0x1584c6(0xaf));_0x209260[_0x1584c6(0x9b)]();}[_0x5a6102(0xae)](){const _0x5ea916=_0x5a6102;let _0x5e795c=this[_0x5ea916(0x95)][_0x5ea916(0x8c)](t[_0x5ea916(0xa2)])[_0x5ea916(0x94)](t[_0x5ea916(0xad)]['UNIVER_SHEET']);if(!_0x5e795c)throw Error(_0x5ea916(0xa9));let _0x3a91d3=_0x5e795c[_0x5ea916(0xa0)](),_0x40d6da=this[_0x5ea916(0xb0)][_0x5ea916(0x8f)](_0x3a91d3);if(!_0x40d6da)throw Error(_0x5ea916(0xaf));_0x40d6da['stopFollowing']();}['startPresenting'](){const _0x1c2740=_0x5a6102;let _0x1d81a7=this[_0x1c2740(0x95)]['get'](t[_0x1c2740(0xa2)])[_0x1c2740(0x94)](t[_0x1c2740(0xad)][_0x1c2740(0x9a)]);if(!_0x1d81a7)throw Error(_0x1c2740(0xa9));let _0xed2888=_0x1d81a7['getUnitId'](),_0x2dfd1e=this[_0x1c2740(0xb0)][_0x1c2740(0x8f)](_0xed2888);if(!_0x2dfd1e)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2dfd1e['tryStartPresenting']();}[_0x5a6102(0xaa)](){const _0x30fccc=_0x5a6102;let _0x270182=this[_0x30fccc(0x95)]['get'](t[_0x30fccc(0xa2)])[_0x30fccc(0x94)](t[_0x30fccc(0xad)][_0x30fccc(0x9a)]);if(!_0x270182)throw Error('No\x20active\x20workbook\x20found.');let _0x8a38c1=_0x270182['getUnitId'](),_0x5befd8=this[_0x30fccc(0xb0)]['getLiveShareCoordinatorSync'](_0x8a38c1);if(!_0x5befd8)throw Error(_0x30fccc(0xaf));_0x5befd8['stopPresenting']();}};n[_0x5a6102(0x9e)]['extend'](s);var c=class extends n[_0x5a6102(0xa3)]{get[_0x5a6102(0xa4)](){return e['LiveShareStatus'];}};n[_0x5a6102(0xa3)][_0x5a6102(0xa6)](c);
1
+ const _0x1b61f7=_0x1d16;(function(_0x2341e1,_0x384ea2){const _0x5a0d76=_0x1d16,_0x9fb759=_0x2341e1();while(!![]){try{const _0x227aae=parseInt(_0x5a0d76(0xd7))/0x1+-parseInt(_0x5a0d76(0xdf))/0x2*(-parseInt(_0x5a0d76(0xce))/0x3)+parseInt(_0x5a0d76(0xf4))/0x4*(parseInt(_0x5a0d76(0xd0))/0x5)+parseInt(_0x5a0d76(0xd2))/0x6*(parseInt(_0x5a0d76(0xd6))/0x7)+parseInt(_0x5a0d76(0xe4))/0x8*(parseInt(_0x5a0d76(0xe2))/0x9)+-parseInt(_0x5a0d76(0xe9))/0xa*(-parseInt(_0x5a0d76(0xde))/0xb)+-parseInt(_0x5a0d76(0xee))/0xc*(parseInt(_0x5a0d76(0xef))/0xd);if(_0x227aae===_0x384ea2)break;else _0x9fb759['push'](_0x9fb759['shift']());}catch(_0x1be462){_0x9fb759['push'](_0x9fb759['shift']());}}}(_0x1cef,0xa7671));let e=require('@univerjs-pro/live-share'),t=require('@univerjs/core'),n=require('@univerjs/core/facade');function r(_0x564cfe){'@babel/helpers - typeof';const _0x3c8dc3=_0x1d16;return r=typeof Symbol==_0x3c8dc3(0xd8)&&typeof Symbol['iterator']=='symbol'?function(_0x23edb4){return typeof _0x23edb4;}:function(_0x498b69){const _0x2dd657=_0x3c8dc3;return _0x498b69&&typeof Symbol=='function'&&_0x498b69['constructor']===Symbol&&_0x498b69!==Symbol[_0x2dd657(0xe1)]?'symbol':typeof _0x498b69;},r(_0x564cfe);}function i(_0x432dcc,_0x36abe5){const _0x3c1c13=_0x1d16;if(r(_0x432dcc)!=_0x3c1c13(0xd1)||!_0x432dcc)return _0x432dcc;var _0x25d2b1=_0x432dcc[Symbol[_0x3c1c13(0xe7)]];if(_0x25d2b1!==void 0x0){var _0x855417=_0x25d2b1[_0x3c1c13(0xd4)](_0x432dcc,_0x36abe5||'default');if(r(_0x855417)!=_0x3c1c13(0xd1))return _0x855417;throw TypeError(_0x3c1c13(0xf6));}return(_0x36abe5==='string'?String:Number)(_0x432dcc);}function a(_0x161823){const _0x193598=_0x1d16;var _0x21a55f=i(_0x161823,_0x193598(0xec));return r(_0x21a55f)==_0x193598(0xcb)?_0x21a55f:_0x21a55f+'';}function _0x1d16(_0x30268d,_0x45f7f7){_0x30268d=_0x30268d-0xcb;const _0x1cef46=_0x1cef();let _0x1d16fe=_0x1cef46[_0x30268d];return _0x1d16fe;}function o(_0x158afa,_0x10291a,_0x5534b9){return(_0x10291a=a(_0x10291a))in _0x158afa?Object['defineProperty'](_0x158afa,_0x10291a,{'value':_0x5534b9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x158afa[_0x10291a]=_0x5534b9,_0x158afa;}var s=class extends n[_0x1b61f7(0xf3)]{constructor(..._0x5cfd60){const _0x421410=_0x1b61f7;super(..._0x5cfd60),o(this,_0x421410(0xe6),void 0x0);}[_0x1b61f7(0xd3)](_0x5f60cc){const _0x1e581d=_0x1b61f7;this[_0x1e581d(0xe6)]=_0x5f60cc[_0x1e581d(0xe0)](e[_0x1e581d(0xf1)]);}[_0x1b61f7(0xea)](){const _0x255d24=_0x1b61f7;var _0x15cc7d;let _0x352b4a=this['_injector'][_0x255d24(0xe0)](t[_0x255d24(0xed)])[_0x255d24(0xe8)](t[_0x255d24(0xf5)][_0x255d24(0xcf)]);if(!_0x352b4a)throw Error('No\x20active\x20workbook\x20found.');let _0x3da8ea=_0x352b4a[_0x255d24(0xcd)](),_0x357850=this['_liveShareController'][_0x255d24(0xdc)](_0x3da8ea);return(_0x15cc7d=_0x357850==null?void 0x0:_0x357850[_0x255d24(0xd5)]())==null?e[_0x255d24(0xcc)][_0x255d24(0xda)]:_0x15cc7d;}[_0x1b61f7(0xdd)](){const _0x26f12c=_0x1b61f7;let _0xb9e1a4=this[_0x26f12c(0xf2)][_0x26f12c(0xe0)](t[_0x26f12c(0xed)])[_0x26f12c(0xe8)](t['UniverInstanceType']['UNIVER_SHEET']);if(!_0xb9e1a4)throw Error('No\x20active\x20workbook\x20found.');let _0x338c25=_0xb9e1a4[_0x26f12c(0xcd)](),_0x3bd8a2=this[_0x26f12c(0xe6)][_0x26f12c(0xdc)](_0x338c25);if(!_0x3bd8a2)throw Error(_0x26f12c(0xdb));_0x3bd8a2[_0x26f12c(0xdd)]();}[_0x1b61f7(0xf0)](){const _0x266517=_0x1b61f7;let _0x2422ac=this[_0x266517(0xf2)]['get'](t[_0x266517(0xed)])[_0x266517(0xe8)](t[_0x266517(0xf5)]['UNIVER_SHEET']);if(!_0x2422ac)throw Error(_0x266517(0xeb));let _0x2fd42a=_0x2422ac[_0x266517(0xcd)](),_0xb08d2e=this[_0x266517(0xe6)][_0x266517(0xdc)](_0x2fd42a);if(!_0xb08d2e)throw Error(_0x266517(0xdb));_0xb08d2e['stopFollowing']();}['startPresenting'](){const _0x46642c=_0x1b61f7;let _0x2f5950=this[_0x46642c(0xf2)][_0x46642c(0xe0)](t['IUniverInstanceService'])[_0x46642c(0xe8)](t[_0x46642c(0xf5)][_0x46642c(0xcf)]);if(!_0x2f5950)throw Error(_0x46642c(0xeb));let _0x13f684=_0x2f5950[_0x46642c(0xcd)](),_0x399f29=this[_0x46642c(0xe6)][_0x46642c(0xdc)](_0x13f684);if(!_0x399f29)throw Error(_0x46642c(0xdb));_0x399f29['tryStartPresenting']();}['stopPresenting'](){const _0xa8df0=_0x1b61f7;let _0x1bab80=this[_0xa8df0(0xf2)][_0xa8df0(0xe0)](t['IUniverInstanceService'])[_0xa8df0(0xe8)](t[_0xa8df0(0xf5)][_0xa8df0(0xcf)]);if(!_0x1bab80)throw Error(_0xa8df0(0xeb));let _0x463896=_0x1bab80['getUnitId'](),_0x5444df=this['_liveShareController'][_0xa8df0(0xdc)](_0x463896);if(!_0x5444df)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5444df['stopPresenting']();}};n['FUniver'][_0x1b61f7(0xe5)](s);var c=class extends n[_0x1b61f7(0xe3)]{get[_0x1b61f7(0xd9)](){return e['LiveShareStatus'];}};n[_0x1b61f7(0xe3)][_0x1b61f7(0xe5)](c);function _0x1cef(){const _0x14051e=['5qKyQwX','object','6oHHeJY','_initialize','call','getStatus','237111QKMRkM','1290097pcEYiS','function','LiveShareStatusEnum','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','startFollowing','10671001NfMeqm','2262758BCjPuC','get','prototype','8955qHKaun','FEnum','10024xoqhfG','extend','_liveShareController','toPrimitive','getCurrentUnitOfType','10CZaBPr','getLiveShareStatus','No\x20active\x20workbook\x20found.','string','IUniverInstanceService','12uoZIuM','64369019upOkOI','stopFollowing','LiveShareController','_injector','FUniver','3859876tlQYFt','UniverInstanceType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','LiveShareStatus','getUnitId','3BDjKSo','UNIVER_SHEET'];_0x1cef=function(){return _0x14051e;};return _0x1cef();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5d5271=_0x4057;(function(_0x369080,_0x1752f9){const _0xd09079=_0x4057,_0x13efb5=_0x369080();while(!![]){try{const _0x5e6c55=-parseInt(_0xd09079(0x267))/0x1*(parseInt(_0xd09079(0x29e))/0x2)+parseInt(_0xd09079(0x289))/0x3*(-parseInt(_0xd09079(0x1ea))/0x4)+parseInt(_0xd09079(0x262))/0x5+parseInt(_0xd09079(0x25e))/0x6+parseInt(_0xd09079(0x1f1))/0x7+-parseInt(_0xd09079(0x24a))/0x8*(parseInt(_0xd09079(0x21b))/0x9)+-parseInt(_0xd09079(0x22d))/0xa*(-parseInt(_0xd09079(0x21d))/0xb);if(_0x5e6c55===_0x1752f9)break;else _0x13efb5['push'](_0x13efb5['shift']());}catch(_0x23a9ab){_0x13efb5['push'](_0x13efb5['shift']());}}}(_0x13f4,0x80eae),Object[_0x5d5271(0x279)](exports,Symbol[_0x5d5271(0x28c)],{'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/ui'),s=require('@univerjs/design'),c=require('@univerjs/icons'),l=require('react'),u=require('react/jsx-runtime'),d=require('@univerjs/sheets-ui');function f(_0x194457){'@babel/helpers - typeof';const _0x5df084=_0x5d5271;return f=typeof Symbol==_0x5df084(0x25c)&&typeof Symbol[_0x5df084(0x27a)]=='symbol'?function(_0x96250e){return typeof _0x96250e;}:function(_0x506273){const _0x1333d5=_0x5df084;return _0x506273&&typeof Symbol=='function'&&_0x506273[_0x1333d5(0x243)]===Symbol&&_0x506273!==Symbol[_0x1333d5(0x225)]?'symbol':typeof _0x506273;},f(_0x194457);}function _0x13f4(){const _0x584edf=['object','next','UniverCollaborationClientPlugin','_fetchOperations','idle','OPERATION','SetZoomRatioOperation','LiveShare','Plugin','reverse','find','_collabSessionService','_collabSession','constructor','decorate','_entities','presenting','get','CollaborationEvent','disposeWithMe','8sodfIV','sheet','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ONLINE','asObservable','version','_handleNewHost','getTypeOfUnitDisposed$','not-following','_univerInstanceService','getOwnPropertyDescriptor','Inject','tryStartPresenting','_reporters','IUIPartsService','_mountLiveShare','jsxs','_stopPresenting','function','_config','2148528hKrhEq','useObservable','unsubscribe','set','4111760nGiXoq','shouldShareOperation','UniverInstanceType','getLiveShareCoordinator','call','58eytDTN','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','Subject','Disposable','parseProtocolChangeset','merge','end','pipe','offline','Present\x20this\x20document','button','BuiltInUIPart','event$','useDependency','_stopFollowing','stopPresenting','delete','params','defineProperty','iterator','sessionStatus$','onStarting','_sharedOperations','_handleOnline','_startPresenting','RxDisposable','override','_status$','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getStatus','_startFollowing','init','stopFollowing','2199YTfbrG','setConfig','UniverLiveSharePlugin','toStringTag','1.0.0-alpha.1','_liveShareService','throttleTime','LIVESHARE_REQUEST_HOST','IUniverInstanceService','forEach','Injector','add','parse','values','div','onCommandExecuted','_unitID','SetWorksheetActiveOperation','registerDependencies','text','live-share.config','15356HnKFoj','type','LiveShareService','useState','_handleTerminate','SessionStatus','mutations','Button','touchDependencies','InsertSheetMutation','You\x27re\x20presenting\x20the\x20document','1444FTmnxW','getConfig','toDisposable','presenter','getInitialStates','takeUntil','_startLiveShareCoordinator','5647271COhgJS','getCurrentTypeOfUnit$','_uiPartsService','You\x27re\x20following\x20the\x20presenter','mergeOverrideWithDependencies','unitId','_commandService','OFFLINE','IConfigService','following','jsx','_handleOffline','useRef','current','dispose','startFollowing','then','LIVESHARE_FETCH_OPERATIONS','getValue','_beIdle','onRendered','Fragment','_configService','getMemberID','_presenter','Start','CollaborationSessionService','getLiveShareCoordinatorSync','registerComponent','Stop\x20following','status$','default','_handleOperation','send','_commandDisposable','UNIVER_SHEET','getTypeOfUnitAdded$','CommandType','subscribe','@univerjs-pro/live-share','FOLLOWING','from','9225558ZPFzDG','length','11LNIpOp','unit','getUnitId','DesktopLiveShareController','_init','_status','symbol','pluginName','prototype','SAME_OPERATION_SHARE_INTERVAL','string','clear','stringify','data','SetScrollOperation','UNIVER_LIVE_SHARE_PLUGIN','2758520dxXuLK','_handleNewChangeSets','DependentOn','has','complete','subject','dispose$','_injector','LIVESHARE_OPERATION'];_0x13f4=function(){return _0x584edf;};return _0x13f4();}function p(_0x2fdce6,_0x21ff04){const _0x170206=_0x5d5271;if(f(_0x2fdce6)!=_0x170206(0x236)||!_0x2fdce6)return _0x2fdce6;var _0x298911=_0x2fdce6[Symbol['toPrimitive']];if(_0x298911!==void 0x0){var _0x4eb140=_0x298911[_0x170206(0x266)](_0x2fdce6,_0x21ff04||'default');if(f(_0x4eb140)!=_0x170206(0x236))return _0x4eb140;throw TypeError(_0x170206(0x24c));}return(_0x21ff04===_0x170206(0x227)?String:Number)(_0x2fdce6);}function m(_0x27d1e1){const _0x1e32e6=_0x5d5271;var _0x5806c6=p(_0x27d1e1,_0x1e32e6(0x227));return f(_0x5806c6)==_0x1e32e6(0x223)?_0x5806c6:_0x5806c6+'';}function h(_0x21a868,_0x24285b,_0x276ae5){return(_0x24285b=m(_0x24285b))in _0x21a868?Object['defineProperty'](_0x21a868,_0x24285b,{'value':_0x276ae5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21a868[_0x24285b]=_0x276ae5,_0x21a868;}var g=class extends n[_0x5d5271(0x26a)]{constructor(..._0x105410){const _0x56e94f=_0x5d5271;super(..._0x105410),h(this,_0x56e94f(0x27d),new Set()),h(this,_0x56e94f(0x257),new Set());}['registerSharedOperation'](_0x51c3a5){const _0x3b752b=_0x5d5271;return this[_0x3b752b(0x27d)][_0x3b752b(0x294)](_0x51c3a5),(0x0,n[_0x3b752b(0x1ec)])(()=>this[_0x3b752b(0x27d)][_0x3b752b(0x277)](_0x51c3a5));}['registerInitialStateReporter'](_0x440b98){const _0xcbc6fa=_0x5d5271;return this[_0xcbc6fa(0x257)][_0xcbc6fa(0x294)](_0x440b98),(0x0,n[_0xcbc6fa(0x1ec)])(()=>this['_reporters']['delete'](_0x440b98));}[_0x5d5271(0x263)](_0x4704b1){const _0x299632=_0x5d5271;return this[_0x299632(0x27d)][_0x299632(0x230)](_0x4704b1);}[_0x5d5271(0x1ee)](_0x228d4f){const _0x49a90b=_0x5d5271;return Array[_0x49a90b(0x21a)](this[_0x49a90b(0x257)])['map'](_0xe1cdfa=>_0xe1cdfa(_0x228d4f));}};function _(_0x5f37da,_0x181597){return function(_0x6ad20f,_0x4838d2){_0x181597(_0x6ad20f,_0x4838d2,_0x5f37da);};}function v(_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2){const _0x2843e5=_0x5d5271;var _0x2fb42a=arguments[_0x2843e5(0x21c)],_0x2689f9=_0x2fb42a<0x3?_0x3fffbe:_0x2f3da2===null?_0x2f3da2=Object[_0x2843e5(0x254)](_0x3fffbe,_0x5922a4):_0x2f3da2,_0x1af31f;if(typeof Reflect=='object'&&typeof Reflect[_0x2843e5(0x244)]==_0x2843e5(0x25c))_0x2689f9=Reflect[_0x2843e5(0x244)](_0x562ed3,_0x3fffbe,_0x5922a4,_0x2f3da2);else{for(var _0x3471e4=_0x562ed3[_0x2843e5(0x21c)]-0x1;_0x3471e4>=0x0;_0x3471e4--)(_0x1af31f=_0x562ed3[_0x3471e4])&&(_0x2689f9=(_0x2fb42a<0x3?_0x1af31f(_0x2689f9):_0x2fb42a>0x3?_0x1af31f(_0x3fffbe,_0x5922a4,_0x2689f9):_0x1af31f(_0x3fffbe,_0x5922a4))||_0x2689f9);}return _0x2fb42a>0x3&&_0x2689f9&&Object[_0x2843e5(0x279)](_0x3fffbe,_0x5922a4,_0x2689f9),_0x2689f9;}let y=class extends n[_0x5d5271(0x280)]{constructor(_0x13a35b,_0x402c22,_0x29ab51){const _0x48d13c=_0x5d5271;super(),this[_0x48d13c(0x253)]=_0x13a35b,this['_injector']=_0x402c22,this[_0x48d13c(0x241)]=_0x29ab51,h(this,_0x48d13c(0x245),new Map()),this['_init']();}async[_0x5d5271(0x265)](_0x4a9a33){const _0x313b95=_0x5d5271;return this[_0x313b95(0x245)][_0x313b95(0x230)](_0x4a9a33)||await this['_startLiveShareCoordinator'](_0x4a9a33),this[_0x313b95(0x245)][_0x313b95(0x247)](_0x4a9a33);}[_0x5d5271(0x20c)](_0x130dd2){const _0x431821=_0x5d5271;var _0x20f069;return(_0x20f069=this[_0x431821(0x245)][_0x431821(0x247)](_0x130dd2))==null?null:_0x20f069;}[_0x5d5271(0x221)](){const _0x36a387=_0x5d5271;this[_0x36a387(0x253)][_0x36a387(0x215)](n['UniverInstanceType'][_0x36a387(0x214)])[_0x36a387(0x26e)]((0x0,a[_0x36a387(0x1ef)])(this['dispose$']))[_0x36a387(0x217)](async _0x351c09=>{const _0x36c060=_0x36a387;let _0x29c1bc=_0x351c09[_0x36c060(0x21e)][_0x36c060(0x21f)]();this[_0x36c060(0x245)][_0x36c060(0x230)](_0x29c1bc)||this[_0x36c060(0x1f0)](_0x29c1bc);}),this[_0x36a387(0x253)][_0x36a387(0x251)](n[_0x36a387(0x264)][_0x36a387(0x214)])['pipe']((0x0,a['takeUntil'])(this[_0x36a387(0x233)]))[_0x36a387(0x217)](_0x3fc093=>{const _0x2eaec3=_0x36a387;let _0x4e5ae0=_0x3fc093[_0x2eaec3(0x21f)](),_0x52ce84=this[_0x2eaec3(0x245)][_0x2eaec3(0x247)](_0x4e5ae0);_0x52ce84==null||_0x52ce84[_0x2eaec3(0x1ff)]();});}async[_0x5d5271(0x1f0)](_0x57a4b4){const _0x5af126=_0x5d5271;let _0x4bbbed=await this['_collabSessionService']['requireSession'](_0x57a4b4),_0x5b90f7=this[_0x5af126(0x234)]['createInstance'](x,_0x57a4b4,_0x4bbbed);return _0x5b90f7[_0x5af126(0x287)](),this['_entities']['set'](_0x57a4b4,_0x5b90f7),_0x5b90f7;}};y=v([_(0x0,n[_0x5d5271(0x291)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,(0x0,n[_0x5d5271(0x255)])(t[_0x5d5271(0x20b)]))],y);let b=function(_0x197304){const _0x1e7561=_0x5d5271;return _0x197304[_0x1e7561(0x1f8)]=_0x1e7561(0x26f),_0x197304['IDLE']=_0x1e7561(0x23a),_0x197304[_0x1e7561(0x219)]=_0x1e7561(0x1fa),_0x197304[_0x1e7561(0x283)]=_0x1e7561(0x252),_0x197304['PRESENTING']=_0x1e7561(0x246),_0x197304;}({}),x=class extends n[_0x5d5271(0x280)]{get[_0x5d5271(0x222)](){const _0x556443=_0x5d5271;return this[_0x556443(0x282)][_0x556443(0x203)]();}constructor(_0x259086,_0x485b15,_0x2c05e3,_0x33f08b,_0x17adc3){const _0x5b6ae5=_0x5d5271;super(),this['_unitID']=_0x259086,this[_0x5b6ae5(0x242)]=_0x485b15,this['_configService']=_0x2c05e3,this[_0x5b6ae5(0x28e)]=_0x33f08b,this['_commandService']=_0x17adc3,h(this,'_status$',new i['BehaviorSubject'](_0x5b6ae5(0x23a))),h(this,_0x5b6ae5(0x20f),this[_0x5b6ae5(0x282)][_0x5b6ae5(0x24e)]()),h(this,_0x5b6ae5(0x221),!0x1),h(this,'_commandDisposable',null),h(this,'_presenter',null);}['dispose'](){const _0x462b6f=_0x5d5271;var _0x8b748;(_0x8b748=this[_0x462b6f(0x213)])==null||_0x8b748[_0x462b6f(0x1ff)](),this[_0x462b6f(0x282)][_0x462b6f(0x237)]('idle'),this['_status$'][_0x462b6f(0x231)]();}[_0x5d5271(0x285)](){const _0xa2e7c=_0x5d5271;return this[_0xa2e7c(0x222)];}[_0x5d5271(0x287)](){const _0x52e16e=_0x5d5271;this[_0x52e16e(0x221)]||(this[_0x52e16e(0x221)]=!0x0,this[_0x52e16e(0x242)][_0x52e16e(0x27b)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x3a6f4d=>{const _0x5d8f22=_0x52e16e;switch(_0x3a6f4d){case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x1f8)]:this[_0x5d8f22(0x1fc)]();break;case t[_0x5d8f22(0x1e4)][_0x5d8f22(0x24d)]:this[_0x5d8f22(0x27e)]();break;default:}}),this[_0x52e16e(0x242)][_0x52e16e(0x273)]['pipe']((0x0,a['takeUntil'])(this[_0x52e16e(0x233)]))[_0x52e16e(0x217)](_0x1c6982=>{const _0x2f19d1=_0x52e16e;let {eventID:_0x480419}=_0x1c6982;switch(_0x480419){case e[_0x2f19d1(0x248)]['LIVESHARE_NEW_HOST']:this[_0x2f19d1(0x250)](_0x1c6982);break;case e[_0x2f19d1(0x248)][_0x2f19d1(0x235)]:this[_0x2f19d1(0x211)](_0x1c6982);break;case e[_0x2f19d1(0x248)]['LIVESHARE_TERMINATE']:this[_0x2f19d1(0x2a2)]();break;case e[_0x2f19d1(0x248)]['NEW_CHANGESETS']:this[_0x2f19d1(0x22e)](_0x1c6982);break;default:}}));}[_0x5d5271(0x256)](){const _0x591ee5=_0x5d5271;this[_0x591ee5(0x242)]['send']({'eventID':e[_0x591ee5(0x248)][_0x591ee5(0x290)],'data':{'unitID':this[_0x591ee5(0x299)],'userID':this[_0x591ee5(0x242)]['getMemberID']()}},this['_unitID']);}[_0x5d5271(0x276)](){const _0x52d099=_0x5d5271;this[_0x52d099(0x222)]===_0x52d099(0x246)&&(this['_status$']['next'](_0x52d099(0x23a)),this['_collabSession']['send']({'eventID':e[_0x52d099(0x248)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x52d099(0x299)]}},this[_0x52d099(0x299)]));}[_0x5d5271(0x200)](){const _0x2c149f=_0x5d5271;this[_0x2c149f(0x222)]===_0x2c149f(0x252)&&(this[_0x2c149f(0x282)]['next'](_0x2c149f(0x1fa)),this[_0x2c149f(0x286)]());}['stopFollowing'](){const _0x11d114=_0x5d5271;this[_0x11d114(0x222)]===_0x11d114(0x1fa)&&this[_0x11d114(0x275)]();}[_0x5d5271(0x250)](_0x3537ec){const _0x1bf8e3=_0x5d5271;let {presenter:_0x2ab7b2}=_0x3537ec['data'],_0x2d43a4=this[_0x1bf8e3(0x242)][_0x1bf8e3(0x208)]();this[_0x1bf8e3(0x209)]=_0x2ab7b2,_0x2ab7b2===_0x2d43a4?(this[_0x1bf8e3(0x275)](),this[_0x1bf8e3(0x27f)]()):this[_0x1bf8e3(0x222)]!=='not-following'&&(this[_0x1bf8e3(0x25b)](),this[_0x1bf8e3(0x286)]());}[_0x5d5271(0x239)](){const _0x4ebbdf=_0x5d5271;let _0x24251c={'eventID':e[_0x4ebbdf(0x248)][_0x4ebbdf(0x202)]};this[_0x4ebbdf(0x242)][_0x4ebbdf(0x212)](_0x24251c,this[_0x4ebbdf(0x299)]);}[_0x5d5271(0x2a2)](){const _0x5151f7=_0x5d5271;this['_presenter']=null,this[_0x5151f7(0x222)]!==_0x5151f7(0x246)&&this[_0x5151f7(0x204)]();}['_handleNewChangeSets'](_0x46e747){const _0x18b3c0=_0x5d5271;if(this[_0x18b3c0(0x222)]===_0x18b3c0(0x1fa)&&this[_0x18b3c0(0x209)]===_0x46e747['data']['memberID']){let _0x3569f0=(0x0,e[_0x18b3c0(0x26b)])(_0x46e747[_0x18b3c0(0x22a)])[_0x18b3c0(0x1e5)][_0x18b3c0(0x23f)]()[_0x18b3c0(0x240)](_0x553fa8=>_0x553fa8['id']===r[_0x18b3c0(0x1e8)]['id']);if(_0x3569f0){let _0x52f60d=_0x3569f0['params'][_0x18b3c0(0x1f6)],_0x20f850=_0x3569f0[_0x18b3c0(0x278)][_0x18b3c0(0x24b)]['id'];setTimeout(()=>{const _0x48010d=_0x18b3c0;this[_0x48010d(0x1f7)]['executeCommand'](r['SetWorksheetActiveOperation']['id'],{'unitId':_0x52f60d,'subUnitId':_0x20f850},{'fromCollab':!0x0});});}}}[_0x5d5271(0x27f)](){const _0x1268f6=_0x5d5271;var _0x532116;(_0x532116=this[_0x1268f6(0x213)])==null||_0x532116[_0x1268f6(0x1ff)](),this[_0x1268f6(0x282)]['next'](_0x1268f6(0x246));let _0x178ffb=new Map(),_0x15e078=this[_0x1268f6(0x213)]=new n['DisposableCollection']();_0x15e078[_0x1268f6(0x294)]((0x0,n['toDisposable'])(()=>{const _0x26cddd=_0x1268f6;_0x178ffb['forEach'](({subject:_0x39d523,subscription:_0x9e1abc})=>{const _0x34dda8=_0x4057;_0x9e1abc[_0x34dda8(0x260)](),_0x39d523['complete']();}),_0x178ffb[_0x26cddd(0x228)]();})),_0x15e078[_0x1268f6(0x294)](this['_commandService'][_0x1268f6(0x298)](_0x685b17=>{const _0x2860bd=_0x1268f6;if(_0x685b17[_0x2860bd(0x29f)]!==n[_0x2860bd(0x216)][_0x2860bd(0x23b)]||!this['_liveShareService']['shouldShareOperation'](_0x685b17['id']))return;let {id:_0x53da3f}=_0x685b17,_0xba65f3;if(_0x178ffb[_0x2860bd(0x230)](_0x53da3f))_0xba65f3=_0x178ffb[_0x2860bd(0x247)](_0x53da3f)[_0x2860bd(0x232)];else{var _0x2a014d;_0xba65f3=new i[(_0x2860bd(0x269))]();let _0x388129=_0xba65f3[_0x2860bd(0x26e)]((0x0,a[_0x2860bd(0x28f)])((_0x2a014d=this[_0x2860bd(0x207)][_0x2860bd(0x1eb)](_0x2860bd(0x226)))==null?0xc8:_0x2a014d,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3f3da2=>{const _0x515756=_0x2860bd;this[_0x515756(0x242)]['send']({'eventID':e['CollaborationEvent'][_0x515756(0x235)],'data':{'unitID':this[_0x515756(0x299)],'operations':{[_0x3f3da2['id']]:{'id':_0x3f3da2['id'],'params':JSON[_0x515756(0x229)](_0x3f3da2[_0x515756(0x278)])}}}},this[_0x515756(0x299)]);});_0x178ffb[_0x2860bd(0x261)](_0x53da3f,{'subject':_0xba65f3,'subscription':_0x388129});}_0xba65f3[_0x2860bd(0x237)](_0x685b17);})),this[_0x1268f6(0x28e)][_0x1268f6(0x1ee)](this['_unitID'])[_0x1268f6(0x292)](_0x7d7014=>this[_0x1268f6(0x242)][_0x1268f6(0x212)]({'eventID':e[_0x1268f6(0x248)][_0x1268f6(0x235)],'data':{'unitID':this[_0x1268f6(0x299)],'operations':{[_0x7d7014['id']]:{'id':_0x7d7014['id'],'params':JSON[_0x1268f6(0x229)](_0x7d7014[_0x1268f6(0x278)])}}}},this[_0x1268f6(0x299)]));}[_0x5d5271(0x25b)](){const _0x15e883=_0x5d5271;var _0x3fa4c8;this[_0x15e883(0x282)][_0x15e883(0x237)](_0x15e883(0x23a)),(_0x3fa4c8=this['_commandDisposable'])==null||_0x3fa4c8[_0x15e883(0x1ff)](),this[_0x15e883(0x213)]=null;}[_0x5d5271(0x286)](){const _0x12c89d=_0x5d5271;var _0x1fb638;(_0x1fb638=this[_0x12c89d(0x213)])==null||_0x1fb638[_0x12c89d(0x1ff)](),this[_0x12c89d(0x282)][_0x12c89d(0x237)](_0x12c89d(0x1fa));}[_0x5d5271(0x204)](){const _0x15e7af=_0x5d5271;var _0x28285b;this[_0x15e7af(0x282)][_0x15e7af(0x237)]('idle'),(_0x28285b=this[_0x15e7af(0x213)])==null||_0x28285b[_0x15e7af(0x1ff)](),this[_0x15e7af(0x213)]=null;}['_stopFollowing'](){const _0x53b4a4=_0x5d5271;var _0x9ad4ea;this['_status$'][_0x53b4a4(0x237)](_0x53b4a4(0x252)),(_0x9ad4ea=this[_0x53b4a4(0x213)])==null||_0x9ad4ea[_0x53b4a4(0x1ff)]();}[_0x5d5271(0x211)](_0x5b09d4){const _0x2bb1bf=_0x5d5271;if([_0x2bb1bf(0x246),'not-following',_0x2bb1bf(0x26f)]['includes'](this['_status'])||!_0x5b09d4[_0x2bb1bf(0x22a)][_0x2bb1bf(0x1ed)]||_0x5b09d4[_0x2bb1bf(0x22a)]['presenter']===this[_0x2bb1bf(0x242)][_0x2bb1bf(0x208)]())return;this[_0x2bb1bf(0x222)]==='idle'&&this[_0x2bb1bf(0x286)]();let _0x253df6=_0x5b09d4[_0x2bb1bf(0x22a)]['operations'];Object[_0x2bb1bf(0x296)](_0x253df6)['forEach'](_0x3cdb07=>{const _0xb062db=_0x2bb1bf;this[_0xb062db(0x1f7)]['executeCommand'](_0x3cdb07['id'],_0x3cdb07[_0xb062db(0x278)]?JSON[_0xb062db(0x295)](_0x3cdb07[_0xb062db(0x278)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x56d5fe=_0x5d5271;var _0x3a0f62;this[_0x56d5fe(0x282)][_0x56d5fe(0x237)]('offline'),(_0x3a0f62=this[_0x56d5fe(0x213)])==null||_0x3a0f62[_0x56d5fe(0x1ff)]();}[_0x5d5271(0x27e)](){const _0x3a5001=_0x5d5271;this[_0x3a5001(0x282)][_0x3a5001(0x237)]('idle'),this[_0x3a5001(0x239)]();}};x=v([_(0x2,n[_0x5d5271(0x1f9)]),_(0x3,(0x0,n[_0x5d5271(0x255)])(g)),_(0x4,n['ICommandService'])],x);function _0x4057(_0x2ef9ca,_0x2d2d14){_0x2ef9ca=_0x2ef9ca-0x1e4;const _0x13f465=_0x13f4();let _0x40574a=_0x13f465[_0x2ef9ca];return _0x40574a;}function S(){const _0x3a73cf=_0x5d5271;let _0x2e21bc=(0x0,o[_0x3a73cf(0x274)])(y),_0x2920d0=(0x0,o['useDependency'])(n[_0x3a73cf(0x291)]),_0x20e85f=(0x0,o[_0x3a73cf(0x25f)])(()=>_0x2920d0[_0x3a73cf(0x1f2)](n[_0x3a73cf(0x264)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x271036,_0x31fc07]=(0x0,l[_0x3a73cf(0x2a1)])(null),[_0x30bac1,_0x4b9866]=(0x0,l[_0x3a73cf(0x2a1)])(_0x3a73cf(0x23a)),_0xaea6a3=(0x0,l[_0x3a73cf(0x1fd)])(null);return(0x0,l['useEffect'])(()=>(_0x20e85f&&_0x2e21bc[_0x3a73cf(0x265)](_0x20e85f['getUnitId']())[_0x3a73cf(0x201)](_0x3e7e98=>{const _0x3489c5=_0x3a73cf;_0x31fc07(_0x3e7e98),_0xaea6a3[_0x3489c5(0x1fe)]=_0x3e7e98[_0x3489c5(0x20f)]['subscribe'](_0x4ab0b6=>{_0x4b9866(_0x4ab0b6);});}),()=>{const _0x58ae14=_0x3a73cf;var _0x52f7bf;(_0x52f7bf=_0xaea6a3[_0x58ae14(0x1fe)])==null||_0x52f7bf['unsubscribe'](),_0xaea6a3['current']=null;}),[_0x20e85f,_0x2e21bc]),_0x271036?(0x0,u[_0x3a73cf(0x1fb)])(s['Dropdown'],{'align':_0x3a73cf(0x26d),'disabled':_0x30bac1==='offline','className':_0x3a73cf(0x268),'overlay':(0x0,u[_0x3a73cf(0x1fb)])(C,{'status':_0x30bac1,'coordinator':_0x271036}),'children':(0x0,u[_0x3a73cf(0x1fb)])(_0x3a73cf(0x271),{'className':(0x0,s['clsx'])('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x30bac1===_0x3a73cf(0x26f),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x30bac1!==_0x3a73cf(0x26f)}),'type':_0x3a73cf(0x271),'children':(0x0,u['jsx'])(c['LiveShareIcon'],{})})}):null;}function C(_0x26dc97){const _0x3749e2=_0x5d5271;let {status:_0x32ecf8,coordinator:_0x5073c0}=_0x26dc97;switch(_0x32ecf8){case _0x3749e2(0x23a):return(0x0,u[_0x3749e2(0x1fb)])(w,{'coordinator':_0x5073c0});case _0x3749e2(0x1fa):return(0x0,u[_0x3749e2(0x1fb)])(T,{'coordinator':_0x5073c0});case _0x3749e2(0x252):return(0x0,u[_0x3749e2(0x1fb)])(E,{'coordinator':_0x5073c0});case'offline':return(0x0,u['jsx'])(O,{});case _0x3749e2(0x246):return(0x0,u[_0x3749e2(0x1fb)])(D,{'coordinator':_0x5073c0});default:return null;}}function w(_0x36ddca){const _0xf09a4d=_0x5d5271;let {coordinator:_0x419573}=_0x36ddca;return(0x0,u[_0xf09a4d(0x25a)])(u[_0xf09a4d(0x206)],{'children':[(0x0,u[_0xf09a4d(0x1fb)])('div',{'className':_0xf09a4d(0x284),'children':_0xf09a4d(0x270)}),(0x0,u[_0xf09a4d(0x1fb)])(s[_0xf09a4d(0x1e6)],{'onClick':()=>_0x419573[_0xf09a4d(0x256)](),'children':_0xf09a4d(0x20a)})]});}function T(_0x598cdb){const _0x23bf6d=_0x5d5271;let {coordinator:_0x42af2c}=_0x598cdb;return(0x0,u[_0x23bf6d(0x25a)])(u['Fragment'],{'children':[(0x0,u[_0x23bf6d(0x1fb)])('div',{'className':_0x23bf6d(0x284),'children':_0x23bf6d(0x1f4)}),(0x0,u[_0x23bf6d(0x1fb)])(s[_0x23bf6d(0x1e6)],{'onClick':()=>_0x42af2c[_0x23bf6d(0x288)](),'children':_0x23bf6d(0x20e)})]});}function E(_0x201e71){const _0x1a4051=_0x5d5271;let {coordinator:_0xf60763}=_0x201e71;return(0x0,u[_0x1a4051(0x25a)])(u[_0x1a4051(0x206)],{'children':[(0x0,u[_0x1a4051(0x1fb)])(_0x1a4051(0x297),{'className':_0x1a4051(0x284),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,u[_0x1a4051(0x1fb)])(s[_0x1a4051(0x1e6)],{'variant':_0x1a4051(0x29c),'onClick':()=>_0xf60763[_0x1a4051(0x200)](),'children':'Start\x20following'})]});}function D(_0x719b8e){const _0x1ee59f=_0x5d5271;let {coordinator:_0x2e3c01}=_0x719b8e;return(0x0,u[_0x1ee59f(0x25a)])(u[_0x1ee59f(0x206)],{'children':[(0x0,u[_0x1ee59f(0x1fb)])('div',{'className':_0x1ee59f(0x284),'children':_0x1ee59f(0x1e9)}),(0x0,u['jsx'])(s[_0x1ee59f(0x1e6)],{'variant':_0x1ee59f(0x210),'onClick':()=>_0x2e3c01[_0x1ee59f(0x276)](),'children':'Stop\x20presenting'})]});}function O(){const _0x3decd5=_0x5d5271;return(0x0,u[_0x3decd5(0x1fb)])(u[_0x3decd5(0x206)],{'children':'You\x27are\x20offline.'});}let k=class extends n['Disposable']{constructor(_0x434dd1,_0x5e4ba3){const _0x30c756=_0x5d5271;super(),this[_0x30c756(0x234)]=_0x434dd1,this[_0x30c756(0x1f3)]=_0x5e4ba3,this[_0x30c756(0x259)]();}[_0x5d5271(0x259)](){const _0x33dc30=_0x5d5271;this['disposeWithMe'](this[_0x33dc30(0x1f3)][_0x33dc30(0x20d)](o[_0x33dc30(0x272)]['HEADER_MENU'],()=>(0x0,o['connectInjector'])(S,this[_0x33dc30(0x234)])));}};k=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(n[_0x5d5271(0x293)])),_(0x1,o[_0x5d5271(0x258)])],k);var A=_0x5d5271(0x218),j=_0x5d5271(0x28d);const M={};let N=class extends n['Disposable']{constructor(_0x29fedb){const _0x47259e=_0x5d5271;super(),this[_0x47259e(0x28e)]=_0x29fedb,this[_0x47259e(0x221)]();}[_0x5d5271(0x221)](){const _0x597f78=_0x5d5271;[d[_0x597f78(0x23c)]['id'],d[_0x597f78(0x22b)]['id'],r[_0x597f78(0x29a)]['id']][_0x597f78(0x292)](_0x20ddc4=>{const _0xf4177=_0x597f78;this[_0xf4177(0x249)](this['_liveShareService']['registerSharedOperation'](_0x20ddc4));});}};N=v([_(0x0,(0x0,n[_0x5d5271(0x255)])(g))],N);let P=class extends n[_0x5d5271(0x23e)]{constructor(_0x246465=M,_0x3b6384,_0x5bed58){const _0x578956=_0x5d5271;super(),this['_config']=_0x246465,this[_0x578956(0x234)]=_0x3b6384,this[_0x578956(0x207)]=_0x5bed58;let {..._0x205669}=(0x0,n[_0x578956(0x26c)])({},M,this[_0x578956(0x25d)]);this[_0x578956(0x207)][_0x578956(0x28a)](_0x578956(0x29d),_0x205669);}[_0x5d5271(0x27c)](){const _0x21c97c=_0x5d5271;(0x0,n[_0x21c97c(0x29b)])(this[_0x21c97c(0x234)],(0x0,n[_0x21c97c(0x1f5)])([[g],[y],[N],[k]],this[_0x21c97c(0x25d)][_0x21c97c(0x281)])),(0x0,n[_0x21c97c(0x1e7)])(this[_0x21c97c(0x234)],[[N]]);}[_0x5d5271(0x205)](){const _0x592db0=_0x5d5271;(0x0,n[_0x592db0(0x1e7)])(this[_0x592db0(0x234)],[[k]]);}};h(P,_0x5d5271(0x29f),n[_0x5d5271(0x264)]['UNIVER_UNKNOWN']),h(P,_0x5d5271(0x224),_0x5d5271(0x22c)),h(P,'packageName',A),h(P,_0x5d5271(0x24f),j),P=v([(0x0,n[_0x5d5271(0x22f)])(t[_0x5d5271(0x238)]),_(0x1,(0x0,n['Inject'])(n[_0x5d5271(0x293)])),_(0x2,n[_0x5d5271(0x1f9)])],P),Object[_0x5d5271(0x279)](exports,_0x5d5271(0x220),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x5d5271(0x23d)]=S,Object['defineProperty'](exports,'LiveShareController',{'enumerable':!0x0,'get':function(){return y;}}),Object['defineProperty'](exports,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return x;}}),exports[_0x5d5271(0x2a0)]=g,exports['LiveShareStatus']=b,Object[_0x5d5271(0x279)](exports,_0x5d5271(0x28b),{'enumerable':!0x0,'get':function(){return P;}});
1
+ const _0x47a53a=_0x542f;(function(_0x38dd05,_0x2e0aab){const _0x2e5f6a=_0x542f,_0x21f631=_0x38dd05();while(!![]){try{const _0x29a6ff=-parseInt(_0x2e5f6a(0x1ef))/0x1*(-parseInt(_0x2e5f6a(0x1de))/0x2)+-parseInt(_0x2e5f6a(0x236))/0x3*(parseInt(_0x2e5f6a(0x197))/0x4)+-parseInt(_0x2e5f6a(0x222))/0x5+parseInt(_0x2e5f6a(0x1b7))/0x6+-parseInt(_0x2e5f6a(0x1d1))/0x7*(-parseInt(_0x2e5f6a(0x1ec))/0x8)+-parseInt(_0x2e5f6a(0x1ce))/0x9*(-parseInt(_0x2e5f6a(0x205))/0xa)+-parseInt(_0x2e5f6a(0x217))/0xb;if(_0x29a6ff===_0x2e0aab)break;else _0x21f631['push'](_0x21f631['shift']());}catch(_0x421a9b){_0x21f631['push'](_0x21f631['shift']());}}}(_0x2b2a,0xb807c),Object[_0x47a53a(0x1cd)](exports,Symbol[_0x47a53a(0x1e0)],{'value':_0x47a53a(0x1b0)}));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/sheets-ui'),s=require('@univerjs/ui'),c=require('@univerjs/design'),l=require('@univerjs/icons'),u=require('react'),d=require('react/jsx-runtime');function f(_0x4706da){'@babel/helpers - typeof';const _0x396bf7=_0x47a53a;return f=typeof Symbol=='function'&&typeof Symbol[_0x396bf7(0x240)]==_0x396bf7(0x195)?function(_0x4fbdd4){return typeof _0x4fbdd4;}:function(_0x4f26d1){const _0x4ab9b4=_0x396bf7;return _0x4f26d1&&typeof Symbol==_0x4ab9b4(0x1c0)&&_0x4f26d1[_0x4ab9b4(0x216)]===Symbol&&_0x4f26d1!==Symbol['prototype']?_0x4ab9b4(0x195):typeof _0x4f26d1;},f(_0x4706da);}function p(_0x578dea,_0x1c19f0){const _0x5c8b51=_0x47a53a;if(f(_0x578dea)!=_0x5c8b51(0x1b1)||!_0x578dea)return _0x578dea;var _0x1ea135=_0x578dea[Symbol['toPrimitive']];if(_0x1ea135!==void 0x0){var _0x41d578=_0x1ea135[_0x5c8b51(0x1d8)](_0x578dea,_0x1c19f0||'default');if(f(_0x41d578)!='object')return _0x41d578;throw TypeError(_0x5c8b51(0x19a));}return(_0x1c19f0===_0x5c8b51(0x20c)?String:Number)(_0x578dea);}function m(_0x28209a){const _0x21ab5e=_0x47a53a;var _0x79774f=p(_0x28209a,'string');return f(_0x79774f)==_0x21ab5e(0x195)?_0x79774f:_0x79774f+'';}function _0x2b2a(){const _0x12b579=['unitId','_presenter','defineProperty','9tcLPLj','useEffect','getTypeOfUnitAdded$','108563JZHkUs','useState','_startLiveShareCoordinator','BehaviorSubject','presenting','_init','status$','call','presenter','has','NOT_FOLLOWING','div','onCommandExecuted','2608984wLbNGp','IDLE','toStringTag','LiveShareStatus','Disposable','Fragment','onRendered','_stopFollowing','disposeWithMe','_stopPresenting','_injector','not-following','_entities','includes','760UhUTxB','You\x27re\x20following\x20the\x20presenter','HEADER_MENU','1CVlVaC','_startFollowing','touchDependencies','params','get','Plugin','text','offline','_configService','LIVESHARE_OPERATION','version','startFollowing','UNIVER_SHEET','_startPresenting','default','LiveShareIcon','stopPresenting','getStatus','mutations','CollaborationEvent','sheet','throttleTime','8684420AXclgr','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','type','_mountLiveShare','_reporters','next','string','NEW_CHANGESETS','You\x27re\x20presenting\x20the\x20document','UniverInstanceType','LIVESHARE_TERMINATE','registerDependencies','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','decorate','jsx','forEach','constructor','25983518MDxhYE','DisposableCollection','idle','then','_status$','getUnitId','You\x27are\x20offline.','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','add','init','1899625LvJugH','_handleOffline','LIVESHARE_NEW_HOST','map','find','getConfig','IUniverInstanceService','event$','_commandService','jsxs','requireSession','_collabSession','DependentOn','button','toDisposable','subscribe','operations','_commandDisposable','from','_handleOperation','30ocKVLm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','current','OPERATION','UNIVER_UNKNOWN','following','parse','_handleOnline','ICommandService','Stop\x20presenting','iterator','useObservable','_univerInstanceService','Inject','SessionStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','CollaborationSessionService','getValue','useDependency','Present\x20this\x20document','stopFollowing','end','getInitialStates','send','_handleTerminate','_beIdle','sessionStatus$','Start\x20following','override','packageName','_sharedOperations','symbol','Injector','526580OJbywj','_liveShareService','tryStartPresenting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getLiveShareCoordinator','pluginName','Dropdown','asObservable','live-share.config','delete','OFFLINE','unit','complete','registerComponent','_status','pipe','Start','1.0.0-alpha.3','registerSharedOperation','RxDisposable','stringify','shouldShareOperation','_fetchOperations','executeCommand','Stop\x20following','Module','object','values','createInstance','_config','getCurrentTypeOfUnit$','_handleNewHost','6996072wQWHiN','onStarting','_handleNewChangeSets','SetWorksheetActiveOperation','Button','parseProtocolChangeset','length','_unitID','takeUntil','function','data','_collabSessionService','LiveShareController','BuiltInUIPart','getMemberID','dispose','PRESENTING','mergeOverrideWithDependencies','set','registerInitialStateReporter'];_0x2b2a=function(){return _0x12b579;};return _0x2b2a();}function h(_0x2c1659,_0x517f68,_0x321af0){const _0x59e200=_0x47a53a;return(_0x517f68=m(_0x517f68))in _0x2c1659?Object[_0x59e200(0x1cd)](_0x2c1659,_0x517f68,{'value':_0x321af0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c1659[_0x517f68]=_0x321af0,_0x2c1659;}var g=class extends n['Disposable']{constructor(..._0xb36623){const _0x5eba21=_0x47a53a;super(..._0xb36623),h(this,_0x5eba21(0x194),new Set()),h(this,_0x5eba21(0x20a),new Set());}[_0x47a53a(0x1a9)](_0x305f49){const _0x154d9d=_0x47a53a;return this['_sharedOperations']['add'](_0x305f49),(0x0,n[_0x154d9d(0x230)])(()=>this[_0x154d9d(0x194)][_0x154d9d(0x1a0)](_0x305f49));}[_0x47a53a(0x1ca)](_0xb79d03){const _0x21ea50=_0x47a53a;return this[_0x21ea50(0x20a)][_0x21ea50(0x220)](_0xb79d03),(0x0,n[_0x21ea50(0x230)])(()=>this['_reporters'][_0x21ea50(0x1a0)](_0xb79d03));}['shouldShareOperation'](_0x45f6a6){const _0x220f7a=_0x47a53a;return this['_sharedOperations'][_0x220f7a(0x1da)](_0x45f6a6);}[_0x47a53a(0x18c)](_0x3c255b){const _0x2b4a14=_0x47a53a;return Array[_0x2b4a14(0x234)](this[_0x2b4a14(0x20a)])[_0x2b4a14(0x225)](_0x206add=>_0x206add(_0x3c255b));}};function _(_0x39b1b0,_0x24ab70){return function(_0x23aeda,_0x459c1f){_0x24ab70(_0x23aeda,_0x459c1f,_0x39b1b0);};}function v(_0x25e9c3,_0x46eb0d,_0x151c98,_0x5d6863){const _0x5c71ee=_0x47a53a;var _0x3064af=arguments[_0x5c71ee(0x1bd)],_0x2b5a70=_0x3064af<0x3?_0x46eb0d:_0x5d6863===null?_0x5d6863=Object['getOwnPropertyDescriptor'](_0x46eb0d,_0x151c98):_0x5d6863,_0x2a098c;if(typeof Reflect==_0x5c71ee(0x1b1)&&typeof Reflect[_0x5c71ee(0x213)]==_0x5c71ee(0x1c0))_0x2b5a70=Reflect[_0x5c71ee(0x213)](_0x25e9c3,_0x46eb0d,_0x151c98,_0x5d6863);else{for(var _0x12ba50=_0x25e9c3[_0x5c71ee(0x1bd)]-0x1;_0x12ba50>=0x0;_0x12ba50--)(_0x2a098c=_0x25e9c3[_0x12ba50])&&(_0x2b5a70=(_0x3064af<0x3?_0x2a098c(_0x2b5a70):_0x3064af>0x3?_0x2a098c(_0x46eb0d,_0x151c98,_0x2b5a70):_0x2a098c(_0x46eb0d,_0x151c98))||_0x2b5a70);}return _0x3064af>0x3&&_0x2b5a70&&Object[_0x5c71ee(0x1cd)](_0x46eb0d,_0x151c98,_0x2b5a70),_0x2b5a70;}let y=class extends n[_0x47a53a(0x1aa)]{constructor(_0x540b56,_0x5703f1,_0x27f65d){const _0x6ef908=_0x47a53a;super(),this[_0x6ef908(0x242)]=_0x540b56,this[_0x6ef908(0x1e8)]=_0x5703f1,this[_0x6ef908(0x1c2)]=_0x27f65d,h(this,_0x6ef908(0x1ea),new Map()),this['_init']();}async[_0x47a53a(0x19b)](_0x3af186){const _0x58dc57=_0x47a53a;return this[_0x58dc57(0x1ea)][_0x58dc57(0x1da)](_0x3af186)||await this[_0x58dc57(0x1d3)](_0x3af186),this[_0x58dc57(0x1ea)]['get'](_0x3af186);}['getLiveShareCoordinatorSync'](_0x139414){const _0x2a4013=_0x47a53a;var _0x1af1f8;return(_0x1af1f8=this['_entities'][_0x2a4013(0x1f3)](_0x139414))==null?null:_0x1af1f8;}[_0x47a53a(0x1d6)](){const _0x3a9222=_0x47a53a;this[_0x3a9222(0x242)][_0x3a9222(0x1d0)](n[_0x3a9222(0x20f)][_0x3a9222(0x1fb)])[_0x3a9222(0x1a6)]((0x0,a[_0x3a9222(0x1bf)])(this['dispose$']))[_0x3a9222(0x231)](async _0x47937a=>{const _0x13082f=_0x3a9222;let _0x18cf67=_0x47937a[_0x13082f(0x1a2)][_0x13082f(0x21c)]();this[_0x13082f(0x1ea)][_0x13082f(0x1da)](_0x18cf67)||this[_0x13082f(0x1d3)](_0x18cf67);}),this[_0x3a9222(0x242)]['getTypeOfUnitDisposed$'](n[_0x3a9222(0x20f)][_0x3a9222(0x1fb)])[_0x3a9222(0x1a6)]((0x0,a[_0x3a9222(0x1bf)])(this['dispose$']))[_0x3a9222(0x231)](_0x138eb2=>{const _0x355d74=_0x3a9222;let _0x24ce49=_0x138eb2[_0x355d74(0x21c)](),_0x55c3f9=this[_0x355d74(0x1ea)]['get'](_0x24ce49);_0x55c3f9==null||_0x55c3f9['dispose']();});}async[_0x47a53a(0x1d3)](_0xcc5916){const _0x57a1fe=_0x47a53a;let _0x4eee71=await this[_0x57a1fe(0x1c2)][_0x57a1fe(0x22c)](_0xcc5916),_0x47b70d=this[_0x57a1fe(0x1e8)][_0x57a1fe(0x1b3)](x,_0xcc5916,_0x4eee71);return _0x47b70d[_0x57a1fe(0x221)](),this[_0x57a1fe(0x1ea)][_0x57a1fe(0x1c9)](_0xcc5916,_0x47b70d),_0x47b70d;}};y=v([_(0x0,n[_0x47a53a(0x228)]),_(0x1,(0x0,n[_0x47a53a(0x243)])(n[_0x47a53a(0x196)])),_(0x2,(0x0,n[_0x47a53a(0x243)])(t[_0x47a53a(0x186)]))],y);let b=function(_0x242881){const _0x1b4ba6=_0x47a53a;return _0x242881[_0x1b4ba6(0x1a1)]=_0x1b4ba6(0x1f6),_0x242881[_0x1b4ba6(0x1df)]=_0x1b4ba6(0x219),_0x242881[_0x1b4ba6(0x207)]=_0x1b4ba6(0x23b),_0x242881[_0x1b4ba6(0x1db)]='not-following',_0x242881[_0x1b4ba6(0x1c7)]=_0x1b4ba6(0x1d5),_0x242881;}({}),x=class extends n[_0x47a53a(0x1aa)]{get['_status'](){const _0x3e13d4=_0x47a53a;return this[_0x3e13d4(0x21b)][_0x3e13d4(0x187)]();}constructor(_0x23d557,_0x3c0708,_0x6d4a9c,_0x33c3dd,_0x1fd6c7){const _0x168efa=_0x47a53a;super(),this[_0x168efa(0x1be)]=_0x23d557,this['_collabSession']=_0x3c0708,this[_0x168efa(0x1f7)]=_0x6d4a9c,this[_0x168efa(0x198)]=_0x33c3dd,this[_0x168efa(0x22a)]=_0x1fd6c7,h(this,_0x168efa(0x21b),new i[(_0x168efa(0x1d4))]('idle')),h(this,_0x168efa(0x1d7),this[_0x168efa(0x21b)][_0x168efa(0x19e)]()),h(this,_0x168efa(0x1d6),!0x1),h(this,_0x168efa(0x233),null),h(this,_0x168efa(0x1cc),null);}[_0x47a53a(0x1c6)](){const _0x49fe10=_0x47a53a;var _0x5176ae;(_0x5176ae=this[_0x49fe10(0x233)])==null||_0x5176ae[_0x49fe10(0x1c6)](),this[_0x49fe10(0x21b)][_0x49fe10(0x20b)](_0x49fe10(0x219)),this[_0x49fe10(0x21b)]['complete']();}[_0x47a53a(0x200)](){const _0xa2c47b=_0x47a53a;return this[_0xa2c47b(0x1a5)];}[_0x47a53a(0x221)](){const _0x5eaced=_0x47a53a;this[_0x5eaced(0x1d6)]||(this['_init']=!0x0,this[_0x5eaced(0x22d)][_0x5eaced(0x190)][_0x5eaced(0x1a6)]((0x0,a[_0x5eaced(0x1bf)])(this['dispose$']))[_0x5eaced(0x231)](_0x25c8d3=>{const _0x4810bc=_0x5eaced;switch(_0x25c8d3){case t[_0x4810bc(0x244)][_0x4810bc(0x1a1)]:this[_0x4810bc(0x223)]();break;case t[_0x4810bc(0x244)]['ONLINE']:this[_0x4810bc(0x23d)]();break;default:}}),this[_0x5eaced(0x22d)][_0x5eaced(0x229)][_0x5eaced(0x1a6)]((0x0,a[_0x5eaced(0x1bf)])(this['dispose$']))[_0x5eaced(0x231)](_0x2aa583=>{const _0x1da9b6=_0x5eaced;let {eventID:_0x4258d1}=_0x2aa583;switch(_0x4258d1){case e[_0x1da9b6(0x202)][_0x1da9b6(0x224)]:this['_handleNewHost'](_0x2aa583);break;case e['CollaborationEvent'][_0x1da9b6(0x1f8)]:this[_0x1da9b6(0x235)](_0x2aa583);break;case e[_0x1da9b6(0x202)]['LIVESHARE_TERMINATE']:this[_0x1da9b6(0x18e)]();break;case e[_0x1da9b6(0x202)][_0x1da9b6(0x20d)]:this[_0x1da9b6(0x1b9)](_0x2aa583);break;default:}}));}[_0x47a53a(0x199)](){const _0x9fd87a=_0x47a53a;this['_collabSession'][_0x9fd87a(0x18d)]({'eventID':e[_0x9fd87a(0x202)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x9fd87a(0x22d)][_0x9fd87a(0x1c5)]()}},this[_0x9fd87a(0x1be)]);}[_0x47a53a(0x1ff)](){const _0x4f4d02=_0x47a53a;this[_0x4f4d02(0x1a5)]===_0x4f4d02(0x1d5)&&(this[_0x4f4d02(0x21b)][_0x4f4d02(0x20b)](_0x4f4d02(0x219)),this[_0x4f4d02(0x22d)][_0x4f4d02(0x18d)]({'eventID':e['CollaborationEvent'][_0x4f4d02(0x210)],'data':{'unitID':this[_0x4f4d02(0x1be)]}},this[_0x4f4d02(0x1be)]));}[_0x47a53a(0x1fa)](){const _0x20544a=_0x47a53a;this[_0x20544a(0x1a5)]===_0x20544a(0x1e9)&&(this['_status$'][_0x20544a(0x20b)](_0x20544a(0x23b)),this[_0x20544a(0x1f0)]());}[_0x47a53a(0x18a)](){const _0x12d57b=_0x47a53a;this['_status']===_0x12d57b(0x23b)&&this[_0x12d57b(0x1e5)]();}[_0x47a53a(0x1b6)](_0x1767c3){const _0x3b444e=_0x47a53a;let {presenter:_0x2421eb}=_0x1767c3[_0x3b444e(0x1c1)],_0x125d37=this['_collabSession'][_0x3b444e(0x1c5)]();this[_0x3b444e(0x1cc)]=_0x2421eb,_0x2421eb===_0x125d37?(this[_0x3b444e(0x1e5)](),this[_0x3b444e(0x1fc)]()):this[_0x3b444e(0x1a5)]!=='not-following'&&(this[_0x3b444e(0x1e7)](),this[_0x3b444e(0x1f0)]());}[_0x47a53a(0x1ad)](){const _0x541731=_0x47a53a;let _0x5864d0={'eventID':e[_0x541731(0x202)][_0x541731(0x206)]};this['_collabSession']['send'](_0x5864d0,this[_0x541731(0x1be)]);}[_0x47a53a(0x18e)](){const _0x1d8d92=_0x47a53a;this[_0x1d8d92(0x1cc)]=null,this[_0x1d8d92(0x1a5)]!==_0x1d8d92(0x1d5)&&this[_0x1d8d92(0x18f)]();}[_0x47a53a(0x1b9)](_0x44f2a5){const _0x4742b6=_0x47a53a;if(this['_status']===_0x4742b6(0x23b)&&this[_0x4742b6(0x1cc)]===_0x44f2a5[_0x4742b6(0x1c1)]['memberID']){let _0x2206d5=(0x0,e[_0x4742b6(0x1bc)])(_0x44f2a5['data'])[_0x4742b6(0x201)]['reverse']()[_0x4742b6(0x226)](_0x2fb547=>_0x2fb547['id']===r['InsertSheetMutation']['id']);if(_0x2206d5){let _0x13b1df=_0x2206d5[_0x4742b6(0x1f2)][_0x4742b6(0x1cb)],_0x4b175b=_0x2206d5[_0x4742b6(0x1f2)][_0x4742b6(0x203)]['id'];setTimeout(()=>{const _0x3150fc=_0x4742b6;this[_0x3150fc(0x22a)][_0x3150fc(0x1ae)](r[_0x3150fc(0x1ba)]['id'],{'unitId':_0x13b1df,'subUnitId':_0x4b175b},{'fromCollab':!0x0});});}}}[_0x47a53a(0x1fc)](){const _0xd2cd1f=_0x47a53a;var _0x18be23;(_0x18be23=this[_0xd2cd1f(0x233)])==null||_0x18be23[_0xd2cd1f(0x1c6)](),this[_0xd2cd1f(0x21b)][_0xd2cd1f(0x20b)](_0xd2cd1f(0x1d5));let _0x56971d=new Map(),_0x2fa70c=this[_0xd2cd1f(0x233)]=new n[(_0xd2cd1f(0x218))]();_0x2fa70c['add']((0x0,n[_0xd2cd1f(0x230)])(()=>{_0x56971d['forEach'](({subject:_0x294317,subscription:_0x55904b})=>{const _0x3cd7cb=_0x542f;_0x55904b[_0x3cd7cb(0x21e)](),_0x294317[_0x3cd7cb(0x1a3)]();}),_0x56971d['clear']();})),_0x2fa70c['add'](this[_0xd2cd1f(0x22a)][_0xd2cd1f(0x1dd)](_0xc23ae5=>{const _0xa3e03c=_0xd2cd1f;if(_0xc23ae5[_0xa3e03c(0x208)]!==n['CommandType'][_0xa3e03c(0x239)]||!this[_0xa3e03c(0x198)][_0xa3e03c(0x1ac)](_0xc23ae5['id']))return;let {id:_0x154d13}=_0xc23ae5,_0x2531fe;if(_0x56971d[_0xa3e03c(0x1da)](_0x154d13))_0x2531fe=_0x56971d[_0xa3e03c(0x1f3)](_0x154d13)['subject'];else{var _0x33f39e;_0x2531fe=new i['Subject']();let _0x22dc1f=_0x2531fe[_0xa3e03c(0x1a6)]((0x0,a[_0xa3e03c(0x204)])((_0x33f39e=this['_configService'][_0xa3e03c(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x33f39e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa3e03c(0x231)](_0x2de782=>{const _0x5d87df=_0xa3e03c;this[_0x5d87df(0x22d)][_0x5d87df(0x18d)]({'eventID':e[_0x5d87df(0x202)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d87df(0x1be)],'operations':{[_0x2de782['id']]:{'id':_0x2de782['id'],'params':JSON['stringify'](_0x2de782[_0x5d87df(0x1f2)])}}}},this[_0x5d87df(0x1be)]);});_0x56971d[_0xa3e03c(0x1c9)](_0x154d13,{'subject':_0x2531fe,'subscription':_0x22dc1f});}_0x2531fe[_0xa3e03c(0x20b)](_0xc23ae5);})),this[_0xd2cd1f(0x198)][_0xd2cd1f(0x18c)](this[_0xd2cd1f(0x1be)])[_0xd2cd1f(0x215)](_0x4f2bdb=>this[_0xd2cd1f(0x22d)][_0xd2cd1f(0x18d)]({'eventID':e[_0xd2cd1f(0x202)][_0xd2cd1f(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f2bdb['id']]:{'id':_0x4f2bdb['id'],'params':JSON[_0xd2cd1f(0x1ab)](_0x4f2bdb[_0xd2cd1f(0x1f2)])}}}},this[_0xd2cd1f(0x1be)]));}['_stopPresenting'](){const _0x49a2bb=_0x47a53a;var _0x45ba78;this[_0x49a2bb(0x21b)][_0x49a2bb(0x20b)]('idle'),(_0x45ba78=this[_0x49a2bb(0x233)])==null||_0x45ba78[_0x49a2bb(0x1c6)](),this['_commandDisposable']=null;}[_0x47a53a(0x1f0)](){const _0x4bba27=_0x47a53a;var _0x57dc58;(_0x57dc58=this[_0x4bba27(0x233)])==null||_0x57dc58['dispose'](),this[_0x4bba27(0x21b)][_0x4bba27(0x20b)]('following');}[_0x47a53a(0x18f)](){const _0x16a6d4=_0x47a53a;var _0x1e97e0;this[_0x16a6d4(0x21b)][_0x16a6d4(0x20b)](_0x16a6d4(0x219)),(_0x1e97e0=this[_0x16a6d4(0x233)])==null||_0x1e97e0['dispose'](),this[_0x16a6d4(0x233)]=null;}[_0x47a53a(0x1e5)](){const _0x576fac=_0x47a53a;var _0x3dbeee;this[_0x576fac(0x21b)][_0x576fac(0x20b)](_0x576fac(0x1e9)),(_0x3dbeee=this[_0x576fac(0x233)])==null||_0x3dbeee['dispose']();}[_0x47a53a(0x235)](_0x346e18){const _0x93fa77=_0x47a53a;if([_0x93fa77(0x1d5),'not-following','offline'][_0x93fa77(0x1eb)](this[_0x93fa77(0x1a5)])||!_0x346e18[_0x93fa77(0x1c1)][_0x93fa77(0x1d9)]||_0x346e18[_0x93fa77(0x1c1)][_0x93fa77(0x1d9)]===this['_collabSession'][_0x93fa77(0x1c5)]())return;this['_status']===_0x93fa77(0x219)&&this[_0x93fa77(0x1f0)]();let _0x1c6f4e=_0x346e18['data'][_0x93fa77(0x232)];Object[_0x93fa77(0x1b2)](_0x1c6f4e)[_0x93fa77(0x215)](_0x2117b4=>{const _0x2795db=_0x93fa77;this[_0x2795db(0x22a)]['executeCommand'](_0x2117b4['id'],_0x2117b4['params']?JSON[_0x2795db(0x23c)](_0x2117b4['params']):null,{'fromCollab':!0x0});});}[_0x47a53a(0x223)](){const _0x166d3c=_0x47a53a;var _0x4dbd11;this[_0x166d3c(0x21b)]['next'](_0x166d3c(0x1f6)),(_0x4dbd11=this[_0x166d3c(0x233)])==null||_0x4dbd11[_0x166d3c(0x1c6)]();}[_0x47a53a(0x23d)](){const _0x4fba92=_0x47a53a;this['_status$'][_0x4fba92(0x20b)]('idle'),this[_0x4fba92(0x1ad)]();}};x=v([_(0x2,n['IConfigService']),_(0x3,(0x0,n[_0x47a53a(0x243)])(g)),_(0x4,n[_0x47a53a(0x23e)])],x);var S='@univerjs-pro/live-share',C=_0x47a53a(0x1a8);const w={};let T=class extends n[_0x47a53a(0x1e2)]{constructor(_0x163ab3){const _0x62fe9=_0x47a53a;super(),this[_0x62fe9(0x198)]=_0x163ab3,this[_0x62fe9(0x1d6)]();}[_0x47a53a(0x1d6)](){const _0x154f36=_0x47a53a;[o['SetZoomRatioOperation']['id'],o['SetScrollOperation']['id'],r[_0x154f36(0x1ba)]['id']][_0x154f36(0x215)](_0x3f7575=>{const _0x3230bc=_0x154f36;this[_0x3230bc(0x1e6)](this[_0x3230bc(0x198)][_0x3230bc(0x1a9)](_0x3f7575));});}};T=v([_(0x0,(0x0,n[_0x47a53a(0x243)])(g))],T);function E(){const _0x21db8c=_0x47a53a;let _0x3b5da8=(0x0,s['useDependency'])(y),_0x2ec9d8=(0x0,s[_0x21db8c(0x188)])(n[_0x21db8c(0x228)]),_0x327b96=(0x0,s[_0x21db8c(0x241)])(()=>_0x2ec9d8[_0x21db8c(0x1b5)](n[_0x21db8c(0x20f)][_0x21db8c(0x1fb)]),void 0x0,!0x1,[]),[_0x2b7728,_0x1bab43]=(0x0,u['useState'])(null),[_0x2f3a3f,_0x277b1b]=(0x0,u[_0x21db8c(0x1d2)])(_0x21db8c(0x219)),_0x16d784=(0x0,u['useRef'])(null);return(0x0,u[_0x21db8c(0x1cf)])(()=>(_0x327b96&&_0x3b5da8[_0x21db8c(0x19b)](_0x327b96[_0x21db8c(0x21c)]())[_0x21db8c(0x21a)](_0x4a7f63=>{const _0x422eab=_0x21db8c;_0x1bab43(_0x4a7f63),_0x16d784[_0x422eab(0x238)]=_0x4a7f63[_0x422eab(0x1d7)][_0x422eab(0x231)](_0x20c189=>{_0x277b1b(_0x20c189);});}),()=>{const _0x2ebe19=_0x21db8c;var _0x1883ea;(_0x1883ea=_0x16d784[_0x2ebe19(0x238)])==null||_0x1883ea[_0x2ebe19(0x21e)](),_0x16d784[_0x2ebe19(0x238)]=null;}),[_0x327b96,_0x3b5da8]),_0x2b7728?(0x0,d[_0x21db8c(0x214)])(c[_0x21db8c(0x19d)],{'align':_0x21db8c(0x18b),'disabled':_0x2f3a3f===_0x21db8c(0x1f6),'className':_0x21db8c(0x212),'overlay':(0x0,d[_0x21db8c(0x214)])(D,{'status':_0x2f3a3f,'coordinator':_0x2b7728}),'children':(0x0,d[_0x21db8c(0x214)])(_0x21db8c(0x22f),{'className':(0x0,c['clsx'])(_0x21db8c(0x237),{'univer-cursor-not-allowed':_0x2f3a3f===_0x21db8c(0x1f6),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2f3a3f!==_0x21db8c(0x1f6)}),'type':_0x21db8c(0x22f),'children':(0x0,d[_0x21db8c(0x214)])(l[_0x21db8c(0x1fe)],{})})}):null;}function D(_0x597b52){const _0x207a2b=_0x47a53a;let {status:_0x52aa47,coordinator:_0x1833a7}=_0x597b52;switch(_0x52aa47){case _0x207a2b(0x219):return(0x0,d[_0x207a2b(0x214)])(O,{'coordinator':_0x1833a7});case'following':return(0x0,d[_0x207a2b(0x214)])(k,{'coordinator':_0x1833a7});case _0x207a2b(0x1e9):return(0x0,d['jsx'])(A,{'coordinator':_0x1833a7});case _0x207a2b(0x1f6):return(0x0,d[_0x207a2b(0x214)])(M,{});case'presenting':return(0x0,d[_0x207a2b(0x214)])(j,{'coordinator':_0x1833a7});default:return null;}}function O(_0x434ee6){const _0xec66fd=_0x47a53a;let {coordinator:_0x5a54dc}=_0x434ee6;return(0x0,d[_0xec66fd(0x22b)])(d[_0xec66fd(0x1e3)],{'children':[(0x0,d[_0xec66fd(0x214)])(_0xec66fd(0x1dc),{'className':_0xec66fd(0x185),'children':_0xec66fd(0x189)}),(0x0,d[_0xec66fd(0x214)])(c[_0xec66fd(0x1bb)],{'onClick':()=>_0x5a54dc['tryStartPresenting'](),'children':_0xec66fd(0x1a7)})]});}function k(_0x5c098b){const _0x100ac7=_0x47a53a;let {coordinator:_0x203b7a}=_0x5c098b;return(0x0,d[_0x100ac7(0x22b)])(d[_0x100ac7(0x1e3)],{'children':[(0x0,d['jsx'])(_0x100ac7(0x1dc),{'className':_0x100ac7(0x185),'children':_0x100ac7(0x1ed)}),(0x0,d[_0x100ac7(0x214)])(c['Button'],{'onClick':()=>_0x203b7a[_0x100ac7(0x18a)](),'children':_0x100ac7(0x1af)})]});}function A(_0x5ea70d){const _0x2446e7=_0x47a53a;let {coordinator:_0x20e9c5}=_0x5ea70d;return(0x0,d[_0x2446e7(0x22b)])(d[_0x2446e7(0x1e3)],{'children':[(0x0,d[_0x2446e7(0x214)])('div',{'className':_0x2446e7(0x185),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),(0x0,d['jsx'])(c[_0x2446e7(0x1bb)],{'variant':_0x2446e7(0x1f5),'onClick':()=>_0x20e9c5[_0x2446e7(0x1fa)](),'children':_0x2446e7(0x191)})]});}function j(_0x2e1dc4){const _0x2ce472=_0x47a53a;let {coordinator:_0xc04f51}=_0x2e1dc4;return(0x0,d[_0x2ce472(0x22b)])(d[_0x2ce472(0x1e3)],{'children':[(0x0,d[_0x2ce472(0x214)])(_0x2ce472(0x1dc),{'className':_0x2ce472(0x185),'children':_0x2ce472(0x20e)}),(0x0,d[_0x2ce472(0x214)])(c['Button'],{'variant':_0x2ce472(0x1fd),'onClick':()=>_0xc04f51[_0x2ce472(0x1ff)](),'children':_0x2ce472(0x23f)})]});}function M(){const _0x546e31=_0x47a53a;return(0x0,d[_0x546e31(0x214)])(d[_0x546e31(0x1e3)],{'children':_0x546e31(0x21d)});}let N=class extends n[_0x47a53a(0x1e2)]{constructor(_0x4938d2,_0x43a952){const _0x562e9a=_0x47a53a;super(),this['_injector']=_0x4938d2,this['_uiPartsService']=_0x43a952,this[_0x562e9a(0x209)]();}[_0x47a53a(0x209)](){const _0x46c03a=_0x47a53a;this['disposeWithMe'](this['_uiPartsService'][_0x46c03a(0x1a4)](s[_0x46c03a(0x1c4)][_0x46c03a(0x1ee)],()=>(0x0,s['connectInjector'])(E,this[_0x46c03a(0x1e8)])));}};N=v([_(0x0,(0x0,n[_0x47a53a(0x243)])(n['Injector'])),_(0x1,s['IUIPartsService'])],N);function _0x542f(_0x585c0a,_0x5145bb){_0x585c0a=_0x585c0a-0x185;const _0x2b2a96=_0x2b2a();let _0x542fe9=_0x2b2a96[_0x585c0a];return _0x542fe9;}let P=class extends n[_0x47a53a(0x1f4)]{constructor(_0x1c8677=w,_0x318a47,_0x2477bc){const _0x171361=_0x47a53a;super(),this[_0x171361(0x1b4)]=_0x1c8677,this[_0x171361(0x1e8)]=_0x318a47,this[_0x171361(0x1f7)]=_0x2477bc;let {..._0x49dad1}=(0x0,n['merge'])({},w,this['_config']);this[_0x171361(0x1f7)]['setConfig'](_0x171361(0x19f),_0x49dad1);}[_0x47a53a(0x1b8)](){const _0x24996e=_0x47a53a;(0x0,n[_0x24996e(0x211)])(this[_0x24996e(0x1e8)],(0x0,n[_0x24996e(0x1c8)])([[g],[y],[T],[N]],this[_0x24996e(0x1b4)][_0x24996e(0x192)])),(0x0,n[_0x24996e(0x1f1)])(this[_0x24996e(0x1e8)],[[T]]);}[_0x47a53a(0x1e4)](){const _0x428e3f=_0x47a53a;(0x0,n[_0x428e3f(0x1f1)])(this[_0x428e3f(0x1e8)],[[N]]);}};h(P,_0x47a53a(0x208),n[_0x47a53a(0x20f)][_0x47a53a(0x23a)]),h(P,_0x47a53a(0x19c),_0x47a53a(0x21f)),h(P,_0x47a53a(0x193),S),h(P,_0x47a53a(0x1f9),C),P=v([(0x0,n[_0x47a53a(0x22e)])(t['UniverCollaborationClientPlugin']),_(0x1,(0x0,n['Inject'])(n[_0x47a53a(0x196)])),_(0x2,n['IConfigService'])],P),Object[_0x47a53a(0x1cd)](exports,_0x47a53a(0x1c3),{'enumerable':!0x0,'get':function(){return y;}}),exports[_0x47a53a(0x1e1)]=b,Object[_0x47a53a(0x1cd)](exports,'UniverLiveSharePlugin',{'enumerable':!0x0,'get':function(){return P;}});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4230ab=_0x4d7f;(function(_0xc11408,_0x9afe8b){const _0x38fe34=_0x4d7f,_0x5b1d1a=_0xc11408();while(!![]){try{const _0x2b9270=-parseInt(_0x38fe34(0x19e))/0x1*(parseInt(_0x38fe34(0x19a))/0x2)+-parseInt(_0x38fe34(0x1b4))/0x3+parseInt(_0x38fe34(0x1a0))/0x4*(parseInt(_0x38fe34(0x1b3))/0x5)+parseInt(_0x38fe34(0x1b8))/0x6+parseInt(_0x38fe34(0x19c))/0x7*(-parseInt(_0x38fe34(0x1a7))/0x8)+parseInt(_0x38fe34(0x19b))/0x9+-parseInt(_0x38fe34(0x1af))/0xa*(-parseInt(_0x38fe34(0x1a6))/0xb);if(_0x2b9270===_0x9afe8b)break;else _0x5b1d1a['push'](_0x5b1d1a['shift']());}catch(_0x32edb4){_0x5b1d1a['push'](_0x5b1d1a['shift']());}}}(_0x4e90,0x78b03));import{LiveShareController as _0x48788c,LiveShareStatus as _0xf80c85}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x14008c,UniverInstanceType as _0x454af0}from'@univerjs/core';function _0x4d7f(_0x3a3295,_0x25d797){_0x3a3295=_0x3a3295-0x198;const _0x4e9005=_0x4e90();let _0x4d7f1e=_0x4e9005[_0x3a3295];return _0x4d7f1e;}import{FEnum as _0x23328a,FUniver as _0x27d841}from'@univerjs/core/facade';function o(_0x14c7d2){'@babel/helpers - typeof';const _0x2d0aea=_0x4d7f;return o=typeof Symbol==_0x2d0aea(0x19d)&&typeof Symbol[_0x2d0aea(0x1ae)]==_0x2d0aea(0x1a1)?function(_0xffbf65){return typeof _0xffbf65;}:function(_0x3273e7){const _0x50f874=_0x2d0aea;return _0x3273e7&&typeof Symbol==_0x50f874(0x19d)&&_0x3273e7['constructor']===Symbol&&_0x3273e7!==Symbol[_0x50f874(0x1b0)]?'symbol':typeof _0x3273e7;},o(_0x14c7d2);}function _0x4e90(){const _0x23cde2=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','_liveShareController','get','startPresenting','No\x20active\x20workbook\x20found.','24398VrCtjv','1030689rAGlqP','201901wjswQQ','function','53mwQzNO','object','4GeIbzd','symbol','string','LiveShareStatusEnum','getLiveShareStatus','defineProperty','4651889mwCjFs','88PbUDic','getStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_injector','tryStartPresenting','iterator','40ZhLPSK','prototype','IDLE','stopPresenting','389135kOsevZ','2355750rsYCfI','_initialize','stopFollowing','getCurrentUnitOfType','2156790TiPhjS','getUnitId'];_0x4e90=function(){return _0x23cde2;};return _0x4e90();}function s(_0x5a2645,_0x39e7d2){const _0x5b53bf=_0x4d7f;if(o(_0x5a2645)!=_0x5b53bf(0x19f)||!_0x5a2645)return _0x5a2645;var _0x3e1176=_0x5a2645[Symbol['toPrimitive']];if(_0x3e1176!==void 0x0){var _0x30bc36=_0x3e1176['call'](_0x5a2645,_0x39e7d2||'default');if(o(_0x30bc36)!=_0x5b53bf(0x19f))return _0x30bc36;throw TypeError(_0x5b53bf(0x1ba));}return(_0x39e7d2===_0x5b53bf(0x1a2)?String:Number)(_0x5a2645);}function c(_0x3f6610){var _0x35e888=s(_0x3f6610,'string');return o(_0x35e888)=='symbol'?_0x35e888:_0x35e888+'';}function l(_0x82750f,_0x1a3a57,_0x4c652c){const _0x97a2a0=_0x4d7f;return(_0x1a3a57=c(_0x1a3a57))in _0x82750f?Object[_0x97a2a0(0x1a5)](_0x82750f,_0x1a3a57,{'value':_0x4c652c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82750f[_0x1a3a57]=_0x4c652c,_0x82750f;}var u=class extends _0x27d841{constructor(..._0x17a628){const _0x25f7ec=_0x4d7f;super(..._0x17a628),l(this,_0x25f7ec(0x1bc),void 0x0);}[_0x4230ab(0x1b5)](_0x371262){const _0x33a8bf=_0x4230ab;this[_0x33a8bf(0x1bc)]=_0x371262[_0x33a8bf(0x1bd)](_0x48788c);}[_0x4230ab(0x1a4)](){const _0x45904a=_0x4230ab;var _0x3159e0;let _0x499676=this[_0x45904a(0x1ac)][_0x45904a(0x1bd)](_0x14008c)[_0x45904a(0x1b7)](_0x454af0[_0x45904a(0x1ab)]);if(!_0x499676)throw Error(_0x45904a(0x199));let _0x5dd476=_0x499676[_0x45904a(0x1b9)](),_0x2f894f=this[_0x45904a(0x1bc)][_0x45904a(0x1a9)](_0x5dd476);return(_0x3159e0=_0x2f894f==null?void 0x0:_0x2f894f[_0x45904a(0x1a8)]())==null?_0xf80c85[_0x45904a(0x1b1)]:_0x3159e0;}['startFollowing'](){const _0xac4e73=_0x4230ab;let _0x3ba3ac=this[_0xac4e73(0x1ac)][_0xac4e73(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x3ba3ac)throw Error(_0xac4e73(0x199));let _0x310149=_0x3ba3ac[_0xac4e73(0x1b9)](),_0x4452a3=this[_0xac4e73(0x1bc)]['getLiveShareCoordinatorSync'](_0x310149);if(!_0x4452a3)throw Error(_0xac4e73(0x1aa));_0x4452a3['startFollowing']();}[_0x4230ab(0x1b6)](){const _0x46c0c2=_0x4230ab;let _0x423aa1=this[_0x46c0c2(0x1ac)][_0x46c0c2(0x1bd)](_0x14008c)[_0x46c0c2(0x1b7)](_0x454af0['UNIVER_SHEET']);if(!_0x423aa1)throw Error(_0x46c0c2(0x199));let _0x48a972=_0x423aa1[_0x46c0c2(0x1b9)](),_0x4cdaae=this[_0x46c0c2(0x1bc)]['getLiveShareCoordinatorSync'](_0x48a972);if(!_0x4cdaae)throw Error(_0x46c0c2(0x1aa));_0x4cdaae[_0x46c0c2(0x1b6)]();}[_0x4230ab(0x198)](){const _0x169c08=_0x4230ab;let _0xde028c=this[_0x169c08(0x1ac)]['get'](_0x14008c)[_0x169c08(0x1b7)](_0x454af0[_0x169c08(0x1ab)]);if(!_0xde028c)throw Error(_0x169c08(0x199));let _0xf450aa=_0xde028c[_0x169c08(0x1b9)](),_0x5551fe=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf450aa);if(!_0x5551fe)throw Error(_0x169c08(0x1aa));_0x5551fe[_0x169c08(0x1ad)]();}['stopPresenting'](){const _0x358993=_0x4230ab;let _0x4d33b3=this[_0x358993(0x1ac)][_0x358993(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x4d33b3)throw Error(_0x358993(0x199));let _0x24b69f=_0x4d33b3['getUnitId'](),_0x2e3862=this[_0x358993(0x1bc)][_0x358993(0x1a9)](_0x24b69f);if(!_0x2e3862)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e3862[_0x358993(0x1b2)]();}};_0x27d841[_0x4230ab(0x1bb)](u);var d=class extends _0x23328a{get[_0x4230ab(0x1a3)](){return _0xf80c85;}};_0x23328a[_0x4230ab(0x1bb)](d);export{};
1
+ const _0x581879=_0x19a0;function _0x1f62(){const _0x132769=['3814977JPYlPM','IDLE','30616kNbftX','call','1174090qeWUfI','2LglRxO','getCurrentUnitOfType','4unbTuV','getLiveShareCoordinatorSync','function','No\x20active\x20workbook\x20found.','stopFollowing','5319867EYkmqw','getUnitId','startFollowing','6310005GdqpNT','_initialize','LiveShareStatusEnum','get','getStatus','868170YckaSa','stopPresenting','89242SDaMuU','getLiveShareStatus','constructor','441nJqZhi','_injector','UNIVER_SHEET','string','_liveShareController','symbol','toPrimitive','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','tryStartPresenting','extend'];_0x1f62=function(){return _0x132769;};return _0x1f62();}function _0x19a0(_0x34f6ee,_0x6c63b2){_0x34f6ee=_0x34f6ee-0x14a;const _0x1f622b=_0x1f62();let _0x19a09e=_0x1f622b[_0x34f6ee];return _0x19a09e;}(function(_0x218c64,_0x3cea81){const _0x30accd=_0x19a0,_0x41e026=_0x218c64();while(!![]){try{const _0x377fc9=-parseInt(_0x30accd(0x16d))/0x1*(-parseInt(_0x30accd(0x158))/0x2)+parseInt(_0x30accd(0x168))/0x3*(parseInt(_0x30accd(0x16f))/0x4)+-parseInt(_0x30accd(0x151))/0x5+-parseInt(_0x30accd(0x156))/0x6+parseInt(_0x30accd(0x14e))/0x7+parseInt(_0x30accd(0x16a))/0x8*(-parseInt(_0x30accd(0x15b))/0x9)+parseInt(_0x30accd(0x16c))/0xa;if(_0x377fc9===_0x3cea81)break;else _0x41e026['push'](_0x41e026['shift']());}catch(_0x6ee33b){_0x41e026['push'](_0x41e026['shift']());}}}(_0x1f62,0x9d3e8));import{LiveShareController as _0xfaa6c2,LiveShareStatus as _0x41f314}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x418f11,UniverInstanceType as _0x30f3f0}from'@univerjs/core';import{FEnum as _0x35fdd7,FUniver as _0x580b87}from'@univerjs/core/facade';function o(_0x2cb829){'@babel/helpers - typeof';const _0x5cace2=_0x19a0;return o=typeof Symbol==_0x5cace2(0x14b)&&typeof Symbol['iterator']==_0x5cace2(0x160)?function(_0x5a94fc){return typeof _0x5a94fc;}:function(_0x257089){const _0x2e77f4=_0x5cace2;return _0x257089&&typeof Symbol==_0x2e77f4(0x14b)&&_0x257089[_0x2e77f4(0x15a)]===Symbol&&_0x257089!==Symbol['prototype']?_0x2e77f4(0x160):typeof _0x257089;},o(_0x2cb829);}function s(_0x21f60f,_0x4af591){const _0x56b6fc=_0x19a0;if(o(_0x21f60f)!=_0x56b6fc(0x165)||!_0x21f60f)return _0x21f60f;var _0x541c2c=_0x21f60f[Symbol[_0x56b6fc(0x161)]];if(_0x541c2c!==void 0x0){var _0x636c51=_0x541c2c[_0x56b6fc(0x16b)](_0x21f60f,_0x4af591||'default');if(o(_0x636c51)!=_0x56b6fc(0x165))return _0x636c51;throw TypeError(_0x56b6fc(0x164));}return(_0x4af591===_0x56b6fc(0x15e)?String:Number)(_0x21f60f);}function c(_0x1bf028){const _0x11c4ad=_0x19a0;var _0x2c2e35=s(_0x1bf028,_0x11c4ad(0x15e));return o(_0x2c2e35)=='symbol'?_0x2c2e35:_0x2c2e35+'';}function l(_0xcf336e,_0x1273e3,_0xd1bf39){const _0x159bd8=_0x19a0;return(_0x1273e3=c(_0x1273e3))in _0xcf336e?Object[_0x159bd8(0x163)](_0xcf336e,_0x1273e3,{'value':_0xd1bf39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf336e[_0x1273e3]=_0xd1bf39,_0xcf336e;}var u=class extends _0x580b87{constructor(..._0x17f535){const _0x452451=_0x19a0;super(..._0x17f535),l(this,_0x452451(0x15f),void 0x0);}[_0x581879(0x152)](_0x1f6712){const _0x42b04d=_0x581879;this[_0x42b04d(0x15f)]=_0x1f6712[_0x42b04d(0x154)](_0xfaa6c2);}[_0x581879(0x159)](){const _0x3fc369=_0x581879;var _0x801197;let _0x2142d8=this['_injector'][_0x3fc369(0x154)](_0x418f11)[_0x3fc369(0x16e)](_0x30f3f0[_0x3fc369(0x15d)]);if(!_0x2142d8)throw Error(_0x3fc369(0x14c));let _0x560e6e=_0x2142d8[_0x3fc369(0x14f)](),_0x44726a=this[_0x3fc369(0x15f)][_0x3fc369(0x14a)](_0x560e6e);return(_0x801197=_0x44726a==null?void 0x0:_0x44726a[_0x3fc369(0x155)]())==null?_0x41f314[_0x3fc369(0x169)]:_0x801197;}[_0x581879(0x150)](){const _0x48cf68=_0x581879;let _0x48940b=this['_injector'][_0x48cf68(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0[_0x48cf68(0x15d)]);if(!_0x48940b)throw Error(_0x48cf68(0x14c));let _0xf76666=_0x48940b['getUnitId'](),_0x5c04e3=this['_liveShareController'][_0x48cf68(0x14a)](_0xf76666);if(!_0x5c04e3)throw Error(_0x48cf68(0x162));_0x5c04e3[_0x48cf68(0x150)]();}[_0x581879(0x14d)](){const _0x5710f2=_0x581879;let _0x1dd3fe=this[_0x5710f2(0x15c)]['get'](_0x418f11)[_0x5710f2(0x16e)](_0x30f3f0[_0x5710f2(0x15d)]);if(!_0x1dd3fe)throw Error('No\x20active\x20workbook\x20found.');let _0x3b3c7b=_0x1dd3fe[_0x5710f2(0x14f)](),_0x3d09ea=this[_0x5710f2(0x15f)][_0x5710f2(0x14a)](_0x3b3c7b);if(!_0x3d09ea)throw Error(_0x5710f2(0x162));_0x3d09ea[_0x5710f2(0x14d)]();}['startPresenting'](){const _0x2f6ace=_0x581879;let _0x48a891=this[_0x2f6ace(0x15c)][_0x2f6ace(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0['UNIVER_SHEET']);if(!_0x48a891)throw Error(_0x2f6ace(0x14c));let _0xdb1665=_0x48a891[_0x2f6ace(0x14f)](),_0x54da0c=this['_liveShareController'][_0x2f6ace(0x14a)](_0xdb1665);if(!_0x54da0c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54da0c[_0x2f6ace(0x166)]();}[_0x581879(0x157)](){const _0x2fdea5=_0x581879;let _0x3a54be=this[_0x2fdea5(0x15c)][_0x2fdea5(0x154)](_0x418f11)[_0x2fdea5(0x16e)](_0x30f3f0[_0x2fdea5(0x15d)]);if(!_0x3a54be)throw Error('No\x20active\x20workbook\x20found.');let _0xf07f54=_0x3a54be[_0x2fdea5(0x14f)](),_0x5273ea=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf07f54);if(!_0x5273ea)throw Error(_0x2fdea5(0x162));_0x5273ea[_0x2fdea5(0x157)]();}};_0x580b87['extend'](u);var d=class extends _0x35fdd7{get[_0x581879(0x153)](){return _0x41f314;}};_0x35fdd7[_0x581879(0x167)](d);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x12d49e=_0x56aa;(function(_0x5af5c6,_0x361e7e){const _0x424236=_0x56aa,_0xbb81b1=_0x5af5c6();while(!![]){try{const _0xff31b9=-parseInt(_0x424236(0x145))/0x1*(-parseInt(_0x424236(0x170))/0x2)+parseInt(_0x424236(0x104))/0x3*(-parseInt(_0x424236(0x17d))/0x4)+parseInt(_0x424236(0x125))/0x5*(parseInt(_0x424236(0x162))/0x6)+-parseInt(_0x424236(0x16e))/0x7+-parseInt(_0x424236(0x124))/0x8*(parseInt(_0x424236(0x10f))/0x9)+-parseInt(_0x424236(0x133))/0xa*(parseInt(_0x424236(0xeb))/0xb)+parseInt(_0x424236(0x135))/0xc*(parseInt(_0x424236(0x10b))/0xd);if(_0xff31b9===_0x361e7e)break;else _0xbb81b1['push'](_0xbb81b1['shift']());}catch(_0x21151d){_0xbb81b1['push'](_0xbb81b1['shift']());}}}(_0x29ad,0xdd24a));import{CollaborationEvent as _0x2dfd60,parseProtocolChangeset as _0x47a9e1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32c2a9,SessionStatus as _0x52fe0b,UniverCollaborationClientPlugin as _0x21f3e5}from'@univerjs-pro/collaboration-client';import{CommandType as _0x27732d,DependentOn as _0x1b6da4,Disposable as _0x4659c0,DisposableCollection as _0x58bd8e,ICommandService as _0x41f7a1,IConfigService as _0x348818,IUniverInstanceService as _0x1eddd0,Inject as _0x5247da,Injector as _0x408402,Plugin as _0x1502e3,RxDisposable as _0x5ca59e,UniverInstanceType as _0x14abf6,merge as _0x2dd70c,mergeOverrideWithDependencies as _0x18178b,registerDependencies as _0x59bf00,toDisposable as _0x2f05ef,touchDependencies as _0xa55cab}from'@univerjs/core';import{InsertSheetMutation as _0xa910e4,SetWorksheetActiveOperation as _0x58eadc}from'@univerjs/sheets';import{BehaviorSubject as _0x5700c9,Subject as _0x10b404}from'rxjs';import{takeUntil as _0x2af6df,throttleTime as _0x47be7d}from'rxjs/operators';import{SetScrollOperation as _0x548c90,SetZoomRatioOperation as _0x3d3ee9}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x22834b,IUIPartsService as _0x153cdd,connectInjector as _0x234790,useDependency as _0x2ca01c,useObservable as _0xdec5bf}from'@univerjs/ui';import{Button as _0x1fc5f3,Dropdown as _0x5d4586,clsx as _0x256ea0}from'@univerjs/design';import{LiveShareIcon as _0x4b5bb8}from'@univerjs/icons';import{useEffect as _0x590366,useRef as _0x2077b7,useState as _0x4d0fce}from'react';import{Fragment as _0x1b094c,jsx as _0x2e1826,jsxs as _0x53139}from'react/jsx-runtime';function z(_0x1df1a6){'@babel/helpers - typeof';const _0x596588=_0x56aa;return z=typeof Symbol==_0x596588(0x164)&&typeof Symbol[_0x596588(0x160)]=='symbol'?function(_0x500e9c){return typeof _0x500e9c;}:function(_0x49742b){const _0x6068da=_0x596588;return _0x49742b&&typeof Symbol==_0x6068da(0x164)&&_0x49742b[_0x6068da(0x13a)]===Symbol&&_0x49742b!==Symbol[_0x6068da(0x116)]?'symbol':typeof _0x49742b;},z(_0x1df1a6);}function B(_0x4c3a13,_0x4ccb3f){const _0x74e8fc=_0x56aa;if(z(_0x4c3a13)!=_0x74e8fc(0x176)||!_0x4c3a13)return _0x4c3a13;var _0x1fbcc9=_0x4c3a13[Symbol[_0x74e8fc(0x15f)]];if(_0x1fbcc9!==void 0x0){var _0x5d2630=_0x1fbcc9['call'](_0x4c3a13,_0x4ccb3f||_0x74e8fc(0x101));if(z(_0x5d2630)!='object')return _0x5d2630;throw TypeError(_0x74e8fc(0x11e));}return(_0x4ccb3f===_0x74e8fc(0x16b)?String:Number)(_0x4c3a13);}function V(_0x188519){const _0x542c52=_0x56aa;var _0xcd177e=B(_0x188519,_0x542c52(0x16b));return z(_0xcd177e)==_0x542c52(0x166)?_0xcd177e:_0xcd177e+'';}function H(_0x462b49,_0x603c26,_0x126fbd){const _0x2e6fad=_0x56aa;return(_0x603c26=V(_0x603c26))in _0x462b49?Object[_0x2e6fad(0xf4)](_0x462b49,_0x603c26,{'value':_0x126fbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x462b49[_0x603c26]=_0x126fbd,_0x462b49;}var U=class extends _0x4659c0{constructor(..._0x3fd6f5){super(..._0x3fd6f5),H(this,'_sharedOperations',new Set()),H(this,'_reporters',new Set());}['registerSharedOperation'](_0x226e08){const _0x1a530b=_0x56aa;return this[_0x1a530b(0xfd)][_0x1a530b(0x138)](_0x226e08),_0x2f05ef(()=>this[_0x1a530b(0xfd)][_0x1a530b(0x120)](_0x226e08));}[_0x12d49e(0x169)](_0x116b99){const _0x13bce4=_0x12d49e;return this[_0x13bce4(0x15a)][_0x13bce4(0x138)](_0x116b99),_0x2f05ef(()=>this[_0x13bce4(0x15a)][_0x13bce4(0x120)](_0x116b99));}[_0x12d49e(0x158)](_0xe56dcf){const _0xe5f948=_0x12d49e;return this['_sharedOperations'][_0xe5f948(0x118)](_0xe56dcf);}[_0x12d49e(0x163)](_0x59edf5){const _0x124cc8=_0x12d49e;return Array[_0x124cc8(0x10d)](this[_0x124cc8(0x15a)])[_0x124cc8(0x115)](_0x1aa362=>_0x1aa362(_0x59edf5));}};function W(_0x36d2c6,_0x467d96){return function(_0x559162,_0x4f0bbf){_0x467d96(_0x559162,_0x4f0bbf,_0x36d2c6);};}function G(_0x40f686,_0x211469,_0x2eefbb,_0x33aa77){const _0x2957ac=_0x12d49e;var _0x9179eb=arguments[_0x2957ac(0x129)],_0x271f4a=_0x9179eb<0x3?_0x211469:_0x33aa77===null?_0x33aa77=Object[_0x2957ac(0x11f)](_0x211469,_0x2eefbb):_0x33aa77,_0xf16eb5;if(typeof Reflect=='object'&&typeof Reflect[_0x2957ac(0x117)]==_0x2957ac(0x164))_0x271f4a=Reflect[_0x2957ac(0x117)](_0x40f686,_0x211469,_0x2eefbb,_0x33aa77);else{for(var _0x317cc2=_0x40f686['length']-0x1;_0x317cc2>=0x0;_0x317cc2--)(_0xf16eb5=_0x40f686[_0x317cc2])&&(_0x271f4a=(_0x9179eb<0x3?_0xf16eb5(_0x271f4a):_0x9179eb>0x3?_0xf16eb5(_0x211469,_0x2eefbb,_0x271f4a):_0xf16eb5(_0x211469,_0x2eefbb))||_0x271f4a);}return _0x9179eb>0x3&&_0x271f4a&&Object[_0x2957ac(0xf4)](_0x211469,_0x2eefbb,_0x271f4a),_0x271f4a;}let K=class extends _0x5ca59e{constructor(_0x4917ee,_0x4db5b7,_0x3c3e1e){const _0x5d489d=_0x12d49e;super(),this[_0x5d489d(0x181)]=_0x4917ee,this[_0x5d489d(0x136)]=_0x4db5b7,this[_0x5d489d(0x121)]=_0x3c3e1e,H(this,_0x5d489d(0x132),new Map()),this['_init']();}async[_0x12d49e(0xfe)](_0x47b956){const _0x261a4b=_0x12d49e;return this[_0x261a4b(0x132)]['has'](_0x47b956)||await this[_0x261a4b(0x137)](_0x47b956),this['_entities']['get'](_0x47b956);}['getLiveShareCoordinatorSync'](_0x1ec7d7){const _0x7a971e=_0x12d49e;var _0x328cc7;return(_0x328cc7=this[_0x7a971e(0x132)]['get'](_0x1ec7d7))==null?null:_0x328cc7;}[_0x12d49e(0x154)](){const _0x5b2aba=_0x12d49e;this[_0x5b2aba(0x181)][_0x5b2aba(0x12c)](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this[_0x5b2aba(0x14f)]))['subscribe'](async _0x4f66d7=>{const _0x359d4f=_0x5b2aba;let _0x83bdd8=_0x4f66d7[_0x359d4f(0x13f)][_0x359d4f(0x112)]();this[_0x359d4f(0x132)][_0x359d4f(0x118)](_0x83bdd8)||this[_0x359d4f(0x137)](_0x83bdd8);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this['dispose$']))[_0x5b2aba(0x127)](_0x409989=>{const _0x18122b=_0x5b2aba;let _0x90b7b6=_0x409989[_0x18122b(0x112)](),_0x3fca5c=this[_0x18122b(0x132)][_0x18122b(0x16f)](_0x90b7b6);_0x3fca5c==null||_0x3fca5c[_0x18122b(0x100)]();});}async[_0x12d49e(0x137)](_0x43f6b8){const _0x8cdb11=_0x12d49e;let _0x8f0051=await this[_0x8cdb11(0x121)][_0x8cdb11(0x102)](_0x43f6b8),_0x20947e=this[_0x8cdb11(0x136)]['createInstance'](J,_0x43f6b8,_0x8f0051);return _0x20947e[_0x8cdb11(0xfb)](),this[_0x8cdb11(0x132)][_0x8cdb11(0x109)](_0x43f6b8,_0x20947e),_0x20947e;}};K=G([W(0x0,_0x1eddd0),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x5247da(_0x32c2a9))],K);let q=function(_0x455e5f){const _0x405d6c=_0x12d49e;return _0x455e5f[_0x405d6c(0x142)]=_0x405d6c(0x150),_0x455e5f['IDLE']=_0x405d6c(0x141),_0x455e5f[_0x405d6c(0x108)]=_0x405d6c(0xf2),_0x455e5f[_0x405d6c(0x11d)]=_0x405d6c(0x10c),_0x455e5f['PRESENTING']=_0x405d6c(0xf5),_0x455e5f;}({}),J=class extends _0x5ca59e{get['_status'](){const _0x201835=_0x12d49e;return this[_0x201835(0x107)][_0x201835(0x178)]();}constructor(_0x598eb4,_0x37d206,_0x4ca3b5,_0x69c79,_0x14f351){const _0x556c50=_0x12d49e;super(),this['_unitID']=_0x598eb4,this['_collabSession']=_0x37d206,this[_0x556c50(0x10e)]=_0x4ca3b5,this[_0x556c50(0x16c)]=_0x69c79,this['_commandService']=_0x14f351,H(this,_0x556c50(0x107),new _0x5700c9(_0x556c50(0x141))),H(this,_0x556c50(0x113),this['_status$'][_0x556c50(0x12a)]()),H(this,_0x556c50(0x154),!0x1),H(this,_0x556c50(0xed),null),H(this,_0x556c50(0xfc),null);}[_0x12d49e(0x100)](){const _0x5a1d5d=_0x12d49e;var _0x5ad786;(_0x5ad786=this[_0x5a1d5d(0xed)])==null||_0x5ad786[_0x5a1d5d(0x100)](),this[_0x5a1d5d(0x107)][_0x5a1d5d(0xf7)](_0x5a1d5d(0x141)),this['_status$'][_0x5a1d5d(0x148)]();}['getStatus'](){const _0x4ed593=_0x12d49e;return this[_0x4ed593(0xfa)];}[_0x12d49e(0xfb)](){const _0x186bd7=_0x12d49e;this[_0x186bd7(0x154)]||(this['_init']=!0x0,this[_0x186bd7(0x13d)][_0x186bd7(0x14e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x4650e9=>{const _0x38beda=_0x186bd7;switch(_0x4650e9){case _0x52fe0b['OFFLINE']:this[_0x38beda(0xf0)]();break;case _0x52fe0b[_0x38beda(0x14c)]:this['_handleOnline']();break;default:}}),this[_0x186bd7(0x13d)][_0x186bd7(0x15e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x24618d=>{const _0x1afb64=_0x186bd7;let {eventID:_0x2bca3d}=_0x24618d;switch(_0x2bca3d){case _0x2dfd60[_0x1afb64(0x149)]:this[_0x1afb64(0xf9)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0xf8)]:this[_0x1afb64(0x126)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0x11a)]:this['_handleTerminate']();break;case _0x2dfd60[_0x1afb64(0x111)]:this[_0x1afb64(0x13e)](_0x24618d);break;default:}}));}[_0x12d49e(0x179)](){const _0x8b7b9e=_0x12d49e;this['_collabSession'][_0x8b7b9e(0x155)]({'eventID':_0x2dfd60[_0x8b7b9e(0x140)],'data':{'unitID':this[_0x8b7b9e(0x14d)],'userID':this[_0x8b7b9e(0x13d)][_0x8b7b9e(0x143)]()}},this[_0x8b7b9e(0x14d)]);}['stopPresenting'](){const _0x10cd91=_0x12d49e;this['_status']===_0x10cd91(0xf5)&&(this[_0x10cd91(0x107)][_0x10cd91(0xf7)](_0x10cd91(0x141)),this[_0x10cd91(0x13d)][_0x10cd91(0x155)]({'eventID':_0x2dfd60[_0x10cd91(0x11a)],'data':{'unitID':this[_0x10cd91(0x14d)]}},this[_0x10cd91(0x14d)]));}[_0x12d49e(0x180)](){const _0x242004=_0x12d49e;this[_0x242004(0xfa)]==='not-following'&&(this[_0x242004(0x107)]['next'](_0x242004(0xf2)),this[_0x242004(0x123)]());}['stopFollowing'](){const _0x326dd5=_0x12d49e;this[_0x326dd5(0xfa)]===_0x326dd5(0xf2)&&this['_stopFollowing']();}['_handleNewHost'](_0x374469){const _0x162050=_0x12d49e;let {presenter:_0x5df368}=_0x374469[_0x162050(0xef)],_0x50cb3d=this['_collabSession'][_0x162050(0x143)]();this[_0x162050(0xfc)]=_0x5df368,_0x5df368===_0x50cb3d?(this['_stopFollowing'](),this[_0x162050(0x152)]()):this[_0x162050(0xfa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x162050(0x123)]());}[_0x12d49e(0x165)](){const _0x28b5f8=_0x12d49e;let _0x433c96={'eventID':_0x2dfd60['LIVESHARE_FETCH_OPERATIONS']};this[_0x28b5f8(0x13d)][_0x28b5f8(0x155)](_0x433c96,this[_0x28b5f8(0x14d)]);}[_0x12d49e(0x167)](){const _0x4ce878=_0x12d49e;this[_0x4ce878(0xfc)]=null,this[_0x4ce878(0xfa)]!==_0x4ce878(0xf5)&&this[_0x4ce878(0x15b)]();}['_handleNewChangeSets'](_0x4c4dc1){const _0x312b90=_0x12d49e;if(this['_status']===_0x312b90(0xf2)&&this[_0x312b90(0xfc)]===_0x4c4dc1['data'][_0x312b90(0x182)]){let _0x39e6d4=_0x47a9e1(_0x4c4dc1[_0x312b90(0xef)])[_0x312b90(0x105)][_0x312b90(0x151)]()[_0x312b90(0x173)](_0x1df189=>_0x1df189['id']===_0xa910e4['id']);if(_0x39e6d4){let _0x15f301=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x134)],_0x55d94a=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x174)]['id'];setTimeout(()=>{const _0x32f359=_0x312b90;this[_0x32f359(0xf3)]['executeCommand'](_0x58eadc['id'],{'unitId':_0x15f301,'subUnitId':_0x55d94a},{'fromCollab':!0x0});});}}}[_0x12d49e(0x152)](){const _0x10346b=_0x12d49e;var _0x24617d;(_0x24617d=this[_0x10346b(0xed)])==null||_0x24617d[_0x10346b(0x100)](),this[_0x10346b(0x107)][_0x10346b(0xf7)]('presenting');let _0x18bdf3=new Map(),_0x4d6144=this[_0x10346b(0xed)]=new _0x58bd8e();_0x4d6144['add'](_0x2f05ef(()=>{const _0x1807d0=_0x10346b;_0x18bdf3[_0x1807d0(0x10a)](({subject:_0xe9fd2b,subscription:_0x588410})=>{const _0x5d9a11=_0x1807d0;_0x588410[_0x5d9a11(0x17e)](),_0xe9fd2b['complete']();}),_0x18bdf3[_0x1807d0(0x11b)]();})),_0x4d6144[_0x10346b(0x138)](this[_0x10346b(0xf3)][_0x10346b(0x106)](_0x5e4287=>{const _0x4788fd=_0x10346b;if(_0x5e4287[_0x4788fd(0x131)]!==_0x27732d['OPERATION']||!this[_0x4788fd(0x16c)][_0x4788fd(0x158)](_0x5e4287['id']))return;let {id:_0x4f5fbb}=_0x5e4287,_0x31aa58;if(_0x18bdf3[_0x4788fd(0x118)](_0x4f5fbb))_0x31aa58=_0x18bdf3[_0x4788fd(0x16f)](_0x4f5fbb)[_0x4788fd(0x110)];else{var _0x30f24b;_0x31aa58=new _0x10b404();let _0x99010d=_0x31aa58[_0x4788fd(0x13c)](_0x47be7d((_0x30f24b=this['_configService'][_0x4788fd(0x139)](_0x4788fd(0x128)))==null?0xc8:_0x30f24b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4788fd(0x127)](_0x2926ed=>{const _0x58ad0c=_0x4788fd;this['_collabSession']['send']({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58ad0c(0x14d)],'operations':{[_0x2926ed['id']]:{'id':_0x2926ed['id'],'params':JSON[_0x58ad0c(0x11c)](_0x2926ed['params'])}}}},this[_0x58ad0c(0x14d)]);});_0x18bdf3[_0x4788fd(0x109)](_0x4f5fbb,{'subject':_0x31aa58,'subscription':_0x99010d});}_0x31aa58[_0x4788fd(0xf7)](_0x5e4287);})),this[_0x10346b(0x16c)][_0x10346b(0x163)](this[_0x10346b(0x14d)])[_0x10346b(0x10a)](_0x1fb644=>this['_collabSession'][_0x10346b(0x155)]({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10346b(0x14d)],'operations':{[_0x1fb644['id']]:{'id':_0x1fb644['id'],'params':JSON[_0x10346b(0x11c)](_0x1fb644[_0x10346b(0x17c)])}}}},this[_0x10346b(0x14d)]));}[_0x12d49e(0x15d)](){const _0x32ae5d=_0x12d49e;var _0x804031;this[_0x32ae5d(0x107)][_0x32ae5d(0xf7)](_0x32ae5d(0x141)),(_0x804031=this[_0x32ae5d(0xed)])==null||_0x804031[_0x32ae5d(0x100)](),this['_commandDisposable']=null;}[_0x12d49e(0x123)](){const _0x2be806=_0x12d49e;var _0x44643d;(_0x44643d=this[_0x2be806(0xed)])==null||_0x44643d[_0x2be806(0x100)](),this[_0x2be806(0x107)][_0x2be806(0xf7)]('following');}[_0x12d49e(0x15b)](){const _0xd265d0=_0x12d49e;var _0xf9bca3;this[_0xd265d0(0x107)][_0xd265d0(0xf7)](_0xd265d0(0x141)),(_0xf9bca3=this[_0xd265d0(0xed)])==null||_0xf9bca3[_0xd265d0(0x100)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4ea4f8=_0x12d49e;var _0x115742;this[_0x4ea4f8(0x107)][_0x4ea4f8(0xf7)](_0x4ea4f8(0x10c)),(_0x115742=this[_0x4ea4f8(0xed)])==null||_0x115742[_0x4ea4f8(0x100)]();}[_0x12d49e(0x126)](_0x534275){const _0x47e430=_0x12d49e;if([_0x47e430(0xf5),'not-following','offline'][_0x47e430(0x161)](this[_0x47e430(0xfa)])||!_0x534275[_0x47e430(0xef)]['presenter']||_0x534275[_0x47e430(0xef)][_0x47e430(0x159)]===this['_collabSession'][_0x47e430(0x143)]())return;this['_status']==='idle'&&this[_0x47e430(0x123)]();let _0x3e4257=_0x534275[_0x47e430(0xef)][_0x47e430(0x114)];Object[_0x47e430(0xec)](_0x3e4257)[_0x47e430(0x10a)](_0x223354=>{const _0x50eb01=_0x47e430;this[_0x50eb01(0xf3)][_0x50eb01(0x15c)](_0x223354['id'],_0x223354[_0x50eb01(0x17c)]?JSON[_0x50eb01(0x14b)](_0x223354[_0x50eb01(0x17c)]):null,{'fromCollab':!0x0});});}[_0x12d49e(0xf0)](){const _0x46d52e=_0x12d49e;var _0x3c91b0;this[_0x46d52e(0x107)]['next'](_0x46d52e(0x150)),(_0x3c91b0=this[_0x46d52e(0xed)])==null||_0x3c91b0[_0x46d52e(0x100)]();}[_0x12d49e(0x156)](){const _0x5ccdbe=_0x12d49e;this[_0x5ccdbe(0x107)]['next']('idle'),this['_fetchOperations']();}};J=G([W(0x2,_0x348818),W(0x3,_0x5247da(U)),W(0x4,_0x41f7a1)],J);var oe=_0x12d49e(0x16a),se='1.0.0-alpha.3';const Y={};let X=class extends _0x4659c0{constructor(_0xcd1412){const _0x9fcf53=_0x12d49e;super(),this[_0x9fcf53(0x16c)]=_0xcd1412,this[_0x9fcf53(0x154)]();}[_0x12d49e(0x154)](){const _0x5e33bd=_0x12d49e;[_0x3d3ee9['id'],_0x548c90['id'],_0x58eadc['id']][_0x5e33bd(0x10a)](_0x5b6e8c=>{const _0x5bd46e=_0x5e33bd;this['disposeWithMe'](this['_liveShareService'][_0x5bd46e(0x12d)](_0x5b6e8c));});}};X=G([W(0x0,_0x5247da(U))],X);function ce(){const _0x40248c=_0x12d49e;let _0x3fbc85=_0x2ca01c(K),_0x50d4d0=_0x2ca01c(_0x1eddd0),_0x4ac9d3=_0xdec5bf(()=>_0x50d4d0[_0x40248c(0x168)](_0x14abf6[_0x40248c(0x157)]),void 0x0,!0x1,[]),[_0x42268e,_0x17c1d2]=_0x4d0fce(null),[_0xa9689e,_0x18b7da]=_0x4d0fce(_0x40248c(0x141)),_0x2fb899=_0x2077b7(null);return _0x590366(()=>(_0x4ac9d3&&_0x3fbc85[_0x40248c(0xfe)](_0x4ac9d3[_0x40248c(0x112)]())['then'](_0x1c59c2=>{const _0xe1e8f6=_0x40248c;_0x17c1d2(_0x1c59c2),_0x2fb899[_0xe1e8f6(0x13b)]=_0x1c59c2[_0xe1e8f6(0x113)][_0xe1e8f6(0x127)](_0x3b0da2=>{_0x18b7da(_0x3b0da2);});}),()=>{const _0x256803=_0x40248c;var _0x500f63;(_0x500f63=_0x2fb899[_0x256803(0x13b)])==null||_0x500f63[_0x256803(0x17e)](),_0x2fb899['current']=null;}),[_0x4ac9d3,_0x3fbc85]),_0x42268e?_0x2e1826(_0x5d4586,{'align':_0x40248c(0x17f),'disabled':_0xa9689e===_0x40248c(0x150),'className':_0x40248c(0x144),'overlay':_0x2e1826(Z,{'status':_0xa9689e,'coordinator':_0x42268e}),'children':_0x2e1826(_0x40248c(0x175),{'className':_0x256ea0(_0x40248c(0x122),{'univer-cursor-not-allowed':_0xa9689e===_0x40248c(0x150),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa9689e!==_0x40248c(0x150)}),'type':'button','children':_0x2e1826(_0x4b5bb8,{})})}):null;}function Z(_0xf12cc7){const _0xe8b6a1=_0x12d49e;let {status:_0x5574a7,coordinator:_0xc5d751}=_0xf12cc7;switch(_0x5574a7){case _0xe8b6a1(0x141):return _0x2e1826(le,{'coordinator':_0xc5d751});case'following':return _0x2e1826(ue,{'coordinator':_0xc5d751});case'not-following':return _0x2e1826(de,{'coordinator':_0xc5d751});case _0xe8b6a1(0x150):return _0x2e1826(pe,{});case _0xe8b6a1(0xf5):return _0x2e1826(fe,{'coordinator':_0xc5d751});default:return null;}}function le(_0x347889){const _0x1ef0bc=_0x12d49e;let {coordinator:_0x3f288c}=_0x347889;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x1ef0bc(0x177),{'className':_0x1ef0bc(0x146),'children':'Present\x20this\x20document'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x3f288c[_0x1ef0bc(0x179)](),'children':'Start'})]});}function _0x29ad(){const _0x12240a=['_handleNewHost','_status','init','_presenter','_sharedOperations','getLiveShareCoordinator','Stop\x20following','dispose','default','requireSession','override','452748yIgsgK','mutations','onCommandExecuted','_status$','FOLLOWING','set','forEach','575770stZGgZ','not-following','from','_configService','405APGCvB','subject','NEW_CHANGESETS','getUnitId','status$','operations','map','prototype','decorate','has','text','LIVESHARE_TERMINATE','clear','stringify','NOT_FOLLOWING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','delete','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','180936eEMKwV','3070MxyiFc','_handleOperation','subscribe','SAME_OPERATION_SHARE_INTERVAL','length','asObservable','UNIVER_UNKNOWN','getTypeOfUnitAdded$','registerSharedOperation','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','onStarting','type','_entities','1610rxCgkg','unitId','972teGhAp','_injector','_startLiveShareCoordinator','add','getConfig','constructor','current','pipe','_collabSession','_handleNewChangeSets','unit','LIVESHARE_REQUEST_HOST','idle','OFFLINE','getMemberID','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','1030Fpdstu','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','complete','LIVESHARE_NEW_HOST','HEADER_MENU','parse','ONLINE','_unitID','sessionStatus$','dispose$','offline','reverse','_startPresenting','_mountLiveShare','_init','send','_handleOnline','UNIVER_SHEET','shouldShareOperation','presenter','_reporters','_beIdle','executeCommand','_stopPresenting','event$','toPrimitive','iterator','includes','7368CsJZCd','getInitialStates','function','_fetchOperations','symbol','_handleTerminate','getCurrentTypeOfUnit$','registerInitialStateReporter','@univerjs-pro/live-share','string','_liveShareService','pluginName','4054624TqWLXY','get','746kEAlTF','live-share.config','_uiPartsService','find','sheet','button','object','div','getValue','tryStartPresenting','stopPresenting','You\x27are\x20offline.','params','40aUoGlQ','unsubscribe','end','startFollowing','_univerInstanceService','memberID','48763RkUsYT','values','_commandDisposable','setConfig','data','_handleOffline','stopFollowing','following','_commandService','defineProperty','presenting','You\x27re\x20not\x20following\x20the\x20presenter','next','LIVESHARE_OPERATION'];_0x29ad=function(){return _0x12240a;};return _0x29ad();}function _0x56aa(_0xe224c0,_0x40afac){_0xe224c0=_0xe224c0-0xeb;const _0x29ad87=_0x29ad();let _0x56aaba=_0x29ad87[_0xe224c0];return _0x56aaba;}function ue(_0x43cfc0){const _0x55bb5d=_0x12d49e;let {coordinator:_0x11fa2d}=_0x43cfc0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x55bb5d(0x177),{'className':_0x55bb5d(0x146),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x11fa2d[_0x55bb5d(0xf1)](),'children':_0x55bb5d(0xff)})]});}function de(_0x31f80a){const _0x377687=_0x12d49e;let {coordinator:_0x1f4b0e}=_0x31f80a;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x377687(0x177),{'className':_0x377687(0x146),'children':_0x377687(0xf6)}),_0x2e1826(_0x1fc5f3,{'variant':_0x377687(0x119),'onClick':()=>_0x1f4b0e[_0x377687(0x180)](),'children':'Start\x20following'})]});}function fe(_0x5717e0){const _0x41daf2=_0x12d49e;let {coordinator:_0x3da7d0}=_0x5717e0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x41daf2(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2e1826(_0x1fc5f3,{'variant':'default','onClick':()=>_0x3da7d0[_0x41daf2(0x17a)](),'children':'Stop\x20presenting'})]});}function pe(){const _0x5938fd=_0x12d49e;return _0x2e1826(_0x1b094c,{'children':_0x5938fd(0x17b)});}let Q=class extends _0x4659c0{constructor(_0x45f985,_0x15120f){const _0x1fbafb=_0x12d49e;super(),this[_0x1fbafb(0x136)]=_0x45f985,this[_0x1fbafb(0x172)]=_0x15120f,this[_0x1fbafb(0x153)]();}[_0x12d49e(0x153)](){const _0x46045c=_0x12d49e;this['disposeWithMe'](this[_0x46045c(0x172)][_0x46045c(0x12e)](_0x22834b[_0x46045c(0x14a)],()=>_0x234790(ce,this[_0x46045c(0x136)])));}};Q=G([W(0x0,_0x5247da(_0x408402)),W(0x1,_0x153cdd)],Q);let $=class extends _0x1502e3{constructor(_0xe98712=Y,_0x574da0,_0x33a96a){const _0x44df31=_0x12d49e;super(),this['_config']=_0xe98712,this['_injector']=_0x574da0,this['_configService']=_0x33a96a;let {..._0x40976a}=_0x2dd70c({},Y,this[_0x44df31(0x147)]);this[_0x44df31(0x10e)][_0x44df31(0xee)](_0x44df31(0x171),_0x40976a);}[_0x12d49e(0x130)](){const _0x5ca9d9=_0x12d49e;_0x59bf00(this['_injector'],_0x18178b([[U],[K],[X],[Q]],this['_config'][_0x5ca9d9(0x103)])),_0xa55cab(this[_0x5ca9d9(0x136)],[[X]]);}['onRendered'](){const _0x373fa8=_0x12d49e;_0xa55cab(this[_0x373fa8(0x136)],[[Q]]);}};H($,'type',_0x14abf6[_0x12d49e(0x12b)]),H($,_0x12d49e(0x16d),_0x12d49e(0x12f)),H($,'packageName',oe),H($,'version',se),$=G([_0x1b6da4(_0x21f3e5),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x348818)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4230ab=_0x4d7f;(function(_0xc11408,_0x9afe8b){const _0x38fe34=_0x4d7f,_0x5b1d1a=_0xc11408();while(!![]){try{const _0x2b9270=-parseInt(_0x38fe34(0x19e))/0x1*(parseInt(_0x38fe34(0x19a))/0x2)+-parseInt(_0x38fe34(0x1b4))/0x3+parseInt(_0x38fe34(0x1a0))/0x4*(parseInt(_0x38fe34(0x1b3))/0x5)+parseInt(_0x38fe34(0x1b8))/0x6+parseInt(_0x38fe34(0x19c))/0x7*(-parseInt(_0x38fe34(0x1a7))/0x8)+parseInt(_0x38fe34(0x19b))/0x9+-parseInt(_0x38fe34(0x1af))/0xa*(-parseInt(_0x38fe34(0x1a6))/0xb);if(_0x2b9270===_0x9afe8b)break;else _0x5b1d1a['push'](_0x5b1d1a['shift']());}catch(_0x32edb4){_0x5b1d1a['push'](_0x5b1d1a['shift']());}}}(_0x4e90,0x78b03));import{LiveShareController as _0x48788c,LiveShareStatus as _0xf80c85}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x14008c,UniverInstanceType as _0x454af0}from'@univerjs/core';function _0x4d7f(_0x3a3295,_0x25d797){_0x3a3295=_0x3a3295-0x198;const _0x4e9005=_0x4e90();let _0x4d7f1e=_0x4e9005[_0x3a3295];return _0x4d7f1e;}import{FEnum as _0x23328a,FUniver as _0x27d841}from'@univerjs/core/facade';function o(_0x14c7d2){'@babel/helpers - typeof';const _0x2d0aea=_0x4d7f;return o=typeof Symbol==_0x2d0aea(0x19d)&&typeof Symbol[_0x2d0aea(0x1ae)]==_0x2d0aea(0x1a1)?function(_0xffbf65){return typeof _0xffbf65;}:function(_0x3273e7){const _0x50f874=_0x2d0aea;return _0x3273e7&&typeof Symbol==_0x50f874(0x19d)&&_0x3273e7['constructor']===Symbol&&_0x3273e7!==Symbol[_0x50f874(0x1b0)]?'symbol':typeof _0x3273e7;},o(_0x14c7d2);}function _0x4e90(){const _0x23cde2=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','extend','_liveShareController','get','startPresenting','No\x20active\x20workbook\x20found.','24398VrCtjv','1030689rAGlqP','201901wjswQQ','function','53mwQzNO','object','4GeIbzd','symbol','string','LiveShareStatusEnum','getLiveShareStatus','defineProperty','4651889mwCjFs','88PbUDic','getStatus','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UNIVER_SHEET','_injector','tryStartPresenting','iterator','40ZhLPSK','prototype','IDLE','stopPresenting','389135kOsevZ','2355750rsYCfI','_initialize','stopFollowing','getCurrentUnitOfType','2156790TiPhjS','getUnitId'];_0x4e90=function(){return _0x23cde2;};return _0x4e90();}function s(_0x5a2645,_0x39e7d2){const _0x5b53bf=_0x4d7f;if(o(_0x5a2645)!=_0x5b53bf(0x19f)||!_0x5a2645)return _0x5a2645;var _0x3e1176=_0x5a2645[Symbol['toPrimitive']];if(_0x3e1176!==void 0x0){var _0x30bc36=_0x3e1176['call'](_0x5a2645,_0x39e7d2||'default');if(o(_0x30bc36)!=_0x5b53bf(0x19f))return _0x30bc36;throw TypeError(_0x5b53bf(0x1ba));}return(_0x39e7d2===_0x5b53bf(0x1a2)?String:Number)(_0x5a2645);}function c(_0x3f6610){var _0x35e888=s(_0x3f6610,'string');return o(_0x35e888)=='symbol'?_0x35e888:_0x35e888+'';}function l(_0x82750f,_0x1a3a57,_0x4c652c){const _0x97a2a0=_0x4d7f;return(_0x1a3a57=c(_0x1a3a57))in _0x82750f?Object[_0x97a2a0(0x1a5)](_0x82750f,_0x1a3a57,{'value':_0x4c652c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x82750f[_0x1a3a57]=_0x4c652c,_0x82750f;}var u=class extends _0x27d841{constructor(..._0x17a628){const _0x25f7ec=_0x4d7f;super(..._0x17a628),l(this,_0x25f7ec(0x1bc),void 0x0);}[_0x4230ab(0x1b5)](_0x371262){const _0x33a8bf=_0x4230ab;this[_0x33a8bf(0x1bc)]=_0x371262[_0x33a8bf(0x1bd)](_0x48788c);}[_0x4230ab(0x1a4)](){const _0x45904a=_0x4230ab;var _0x3159e0;let _0x499676=this[_0x45904a(0x1ac)][_0x45904a(0x1bd)](_0x14008c)[_0x45904a(0x1b7)](_0x454af0[_0x45904a(0x1ab)]);if(!_0x499676)throw Error(_0x45904a(0x199));let _0x5dd476=_0x499676[_0x45904a(0x1b9)](),_0x2f894f=this[_0x45904a(0x1bc)][_0x45904a(0x1a9)](_0x5dd476);return(_0x3159e0=_0x2f894f==null?void 0x0:_0x2f894f[_0x45904a(0x1a8)]())==null?_0xf80c85[_0x45904a(0x1b1)]:_0x3159e0;}['startFollowing'](){const _0xac4e73=_0x4230ab;let _0x3ba3ac=this[_0xac4e73(0x1ac)][_0xac4e73(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x3ba3ac)throw Error(_0xac4e73(0x199));let _0x310149=_0x3ba3ac[_0xac4e73(0x1b9)](),_0x4452a3=this[_0xac4e73(0x1bc)]['getLiveShareCoordinatorSync'](_0x310149);if(!_0x4452a3)throw Error(_0xac4e73(0x1aa));_0x4452a3['startFollowing']();}[_0x4230ab(0x1b6)](){const _0x46c0c2=_0x4230ab;let _0x423aa1=this[_0x46c0c2(0x1ac)][_0x46c0c2(0x1bd)](_0x14008c)[_0x46c0c2(0x1b7)](_0x454af0['UNIVER_SHEET']);if(!_0x423aa1)throw Error(_0x46c0c2(0x199));let _0x48a972=_0x423aa1[_0x46c0c2(0x1b9)](),_0x4cdaae=this[_0x46c0c2(0x1bc)]['getLiveShareCoordinatorSync'](_0x48a972);if(!_0x4cdaae)throw Error(_0x46c0c2(0x1aa));_0x4cdaae[_0x46c0c2(0x1b6)]();}[_0x4230ab(0x198)](){const _0x169c08=_0x4230ab;let _0xde028c=this[_0x169c08(0x1ac)]['get'](_0x14008c)[_0x169c08(0x1b7)](_0x454af0[_0x169c08(0x1ab)]);if(!_0xde028c)throw Error(_0x169c08(0x199));let _0xf450aa=_0xde028c[_0x169c08(0x1b9)](),_0x5551fe=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf450aa);if(!_0x5551fe)throw Error(_0x169c08(0x1aa));_0x5551fe[_0x169c08(0x1ad)]();}['stopPresenting'](){const _0x358993=_0x4230ab;let _0x4d33b3=this[_0x358993(0x1ac)][_0x358993(0x1bd)](_0x14008c)['getCurrentUnitOfType'](_0x454af0['UNIVER_SHEET']);if(!_0x4d33b3)throw Error(_0x358993(0x199));let _0x24b69f=_0x4d33b3['getUnitId'](),_0x2e3862=this[_0x358993(0x1bc)][_0x358993(0x1a9)](_0x24b69f);if(!_0x2e3862)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e3862[_0x358993(0x1b2)]();}};_0x27d841[_0x4230ab(0x1bb)](u);var d=class extends _0x23328a{get[_0x4230ab(0x1a3)](){return _0xf80c85;}};_0x23328a[_0x4230ab(0x1bb)](d);export{};
1
+ const _0x581879=_0x19a0;function _0x1f62(){const _0x132769=['3814977JPYlPM','IDLE','30616kNbftX','call','1174090qeWUfI','2LglRxO','getCurrentUnitOfType','4unbTuV','getLiveShareCoordinatorSync','function','No\x20active\x20workbook\x20found.','stopFollowing','5319867EYkmqw','getUnitId','startFollowing','6310005GdqpNT','_initialize','LiveShareStatusEnum','get','getStatus','868170YckaSa','stopPresenting','89242SDaMuU','getLiveShareStatus','constructor','441nJqZhi','_injector','UNIVER_SHEET','string','_liveShareController','symbol','toPrimitive','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','defineProperty','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','object','tryStartPresenting','extend'];_0x1f62=function(){return _0x132769;};return _0x1f62();}function _0x19a0(_0x34f6ee,_0x6c63b2){_0x34f6ee=_0x34f6ee-0x14a;const _0x1f622b=_0x1f62();let _0x19a09e=_0x1f622b[_0x34f6ee];return _0x19a09e;}(function(_0x218c64,_0x3cea81){const _0x30accd=_0x19a0,_0x41e026=_0x218c64();while(!![]){try{const _0x377fc9=-parseInt(_0x30accd(0x16d))/0x1*(-parseInt(_0x30accd(0x158))/0x2)+parseInt(_0x30accd(0x168))/0x3*(parseInt(_0x30accd(0x16f))/0x4)+-parseInt(_0x30accd(0x151))/0x5+-parseInt(_0x30accd(0x156))/0x6+parseInt(_0x30accd(0x14e))/0x7+parseInt(_0x30accd(0x16a))/0x8*(-parseInt(_0x30accd(0x15b))/0x9)+parseInt(_0x30accd(0x16c))/0xa;if(_0x377fc9===_0x3cea81)break;else _0x41e026['push'](_0x41e026['shift']());}catch(_0x6ee33b){_0x41e026['push'](_0x41e026['shift']());}}}(_0x1f62,0x9d3e8));import{LiveShareController as _0xfaa6c2,LiveShareStatus as _0x41f314}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x418f11,UniverInstanceType as _0x30f3f0}from'@univerjs/core';import{FEnum as _0x35fdd7,FUniver as _0x580b87}from'@univerjs/core/facade';function o(_0x2cb829){'@babel/helpers - typeof';const _0x5cace2=_0x19a0;return o=typeof Symbol==_0x5cace2(0x14b)&&typeof Symbol['iterator']==_0x5cace2(0x160)?function(_0x5a94fc){return typeof _0x5a94fc;}:function(_0x257089){const _0x2e77f4=_0x5cace2;return _0x257089&&typeof Symbol==_0x2e77f4(0x14b)&&_0x257089[_0x2e77f4(0x15a)]===Symbol&&_0x257089!==Symbol['prototype']?_0x2e77f4(0x160):typeof _0x257089;},o(_0x2cb829);}function s(_0x21f60f,_0x4af591){const _0x56b6fc=_0x19a0;if(o(_0x21f60f)!=_0x56b6fc(0x165)||!_0x21f60f)return _0x21f60f;var _0x541c2c=_0x21f60f[Symbol[_0x56b6fc(0x161)]];if(_0x541c2c!==void 0x0){var _0x636c51=_0x541c2c[_0x56b6fc(0x16b)](_0x21f60f,_0x4af591||'default');if(o(_0x636c51)!=_0x56b6fc(0x165))return _0x636c51;throw TypeError(_0x56b6fc(0x164));}return(_0x4af591===_0x56b6fc(0x15e)?String:Number)(_0x21f60f);}function c(_0x1bf028){const _0x11c4ad=_0x19a0;var _0x2c2e35=s(_0x1bf028,_0x11c4ad(0x15e));return o(_0x2c2e35)=='symbol'?_0x2c2e35:_0x2c2e35+'';}function l(_0xcf336e,_0x1273e3,_0xd1bf39){const _0x159bd8=_0x19a0;return(_0x1273e3=c(_0x1273e3))in _0xcf336e?Object[_0x159bd8(0x163)](_0xcf336e,_0x1273e3,{'value':_0xd1bf39,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcf336e[_0x1273e3]=_0xd1bf39,_0xcf336e;}var u=class extends _0x580b87{constructor(..._0x17f535){const _0x452451=_0x19a0;super(..._0x17f535),l(this,_0x452451(0x15f),void 0x0);}[_0x581879(0x152)](_0x1f6712){const _0x42b04d=_0x581879;this[_0x42b04d(0x15f)]=_0x1f6712[_0x42b04d(0x154)](_0xfaa6c2);}[_0x581879(0x159)](){const _0x3fc369=_0x581879;var _0x801197;let _0x2142d8=this['_injector'][_0x3fc369(0x154)](_0x418f11)[_0x3fc369(0x16e)](_0x30f3f0[_0x3fc369(0x15d)]);if(!_0x2142d8)throw Error(_0x3fc369(0x14c));let _0x560e6e=_0x2142d8[_0x3fc369(0x14f)](),_0x44726a=this[_0x3fc369(0x15f)][_0x3fc369(0x14a)](_0x560e6e);return(_0x801197=_0x44726a==null?void 0x0:_0x44726a[_0x3fc369(0x155)]())==null?_0x41f314[_0x3fc369(0x169)]:_0x801197;}[_0x581879(0x150)](){const _0x48cf68=_0x581879;let _0x48940b=this['_injector'][_0x48cf68(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0[_0x48cf68(0x15d)]);if(!_0x48940b)throw Error(_0x48cf68(0x14c));let _0xf76666=_0x48940b['getUnitId'](),_0x5c04e3=this['_liveShareController'][_0x48cf68(0x14a)](_0xf76666);if(!_0x5c04e3)throw Error(_0x48cf68(0x162));_0x5c04e3[_0x48cf68(0x150)]();}[_0x581879(0x14d)](){const _0x5710f2=_0x581879;let _0x1dd3fe=this[_0x5710f2(0x15c)]['get'](_0x418f11)[_0x5710f2(0x16e)](_0x30f3f0[_0x5710f2(0x15d)]);if(!_0x1dd3fe)throw Error('No\x20active\x20workbook\x20found.');let _0x3b3c7b=_0x1dd3fe[_0x5710f2(0x14f)](),_0x3d09ea=this[_0x5710f2(0x15f)][_0x5710f2(0x14a)](_0x3b3c7b);if(!_0x3d09ea)throw Error(_0x5710f2(0x162));_0x3d09ea[_0x5710f2(0x14d)]();}['startPresenting'](){const _0x2f6ace=_0x581879;let _0x48a891=this[_0x2f6ace(0x15c)][_0x2f6ace(0x154)](_0x418f11)['getCurrentUnitOfType'](_0x30f3f0['UNIVER_SHEET']);if(!_0x48a891)throw Error(_0x2f6ace(0x14c));let _0xdb1665=_0x48a891[_0x2f6ace(0x14f)](),_0x54da0c=this['_liveShareController'][_0x2f6ace(0x14a)](_0xdb1665);if(!_0x54da0c)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54da0c[_0x2f6ace(0x166)]();}[_0x581879(0x157)](){const _0x2fdea5=_0x581879;let _0x3a54be=this[_0x2fdea5(0x15c)][_0x2fdea5(0x154)](_0x418f11)[_0x2fdea5(0x16e)](_0x30f3f0[_0x2fdea5(0x15d)]);if(!_0x3a54be)throw Error('No\x20active\x20workbook\x20found.');let _0xf07f54=_0x3a54be[_0x2fdea5(0x14f)](),_0x5273ea=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xf07f54);if(!_0x5273ea)throw Error(_0x2fdea5(0x162));_0x5273ea[_0x2fdea5(0x157)]();}};_0x580b87['extend'](u);var d=class extends _0x35fdd7{get[_0x581879(0x153)](){return _0x41f314;}};_0x35fdd7[_0x581879(0x167)](d);export{};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x163933=_0x49a4;(function(_0x166d25,_0xb36586){const _0x5ed3f5=_0x49a4,_0x5e91b3=_0x166d25();while(!![]){try{const _0x5a83e8=parseInt(_0x5ed3f5(0x1e0))/0x1+parseInt(_0x5ed3f5(0x18e))/0x2*(-parseInt(_0x5ed3f5(0x1ba))/0x3)+-parseInt(_0x5ed3f5(0x18f))/0x4+parseInt(_0x5ed3f5(0x19f))/0x5*(-parseInt(_0x5ed3f5(0x177))/0x6)+parseInt(_0x5ed3f5(0x17e))/0x7+-parseInt(_0x5ed3f5(0x1e2))/0x8*(-parseInt(_0x5ed3f5(0x1f2))/0x9)+parseInt(_0x5ed3f5(0x1eb))/0xa*(-parseInt(_0x5ed3f5(0x1da))/0xb);if(_0x5a83e8===_0xb36586)break;else _0x5e91b3['push'](_0x5e91b3['shift']());}catch(_0x4b0be9){_0x5e91b3['push'](_0x5e91b3['shift']());}}}(_0x4c3f,0x670ae));import{CollaborationEvent as _0x2f4f4b,parseProtocolChangeset as _0xf7fca8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1dc03d,SessionStatus as _0x43364d,UniverCollaborationClientPlugin as _0x33b357}from'@univerjs-pro/collaboration-client';import{CommandType as _0x41b375,DependentOn as _0x372528,Disposable as _0x3a6ee4,DisposableCollection as _0x373e29,ICommandService as _0x15ae55,IConfigService as _0x3287d9,IUniverInstanceService as _0x5dd410,Inject as _0x147d4e,Injector as _0x430c6d,Plugin as _0x2c55cc,RxDisposable as _0x3eff75,UniverInstanceType as _0x19d69b,merge as _0x1f0203,mergeOverrideWithDependencies as _0x76a44e,registerDependencies as _0x492046,toDisposable as _0x2c9771,touchDependencies as _0x4b567d}from'@univerjs/core';import{InsertSheetMutation as _0x29a9fa,SetWorksheetActiveOperation as _0x24df1b}from'@univerjs/sheets';import{BehaviorSubject as _0x1bdd9f,Subject as _0x4a9313}from'rxjs';import{takeUntil as _0x66b583,throttleTime as _0x23f001}from'rxjs/operators';import{BuiltInUIPart as _0x27c857,IUIPartsService as _0x2568a8,connectInjector as _0x34038f,useDependency as _0x4d0b0b,useObservable as _0x471499}from'@univerjs/ui';function _0x4c3f(){const _0x1d12b0=['_reporters','HEADER_MENU','clear','presenter','_injector','set','FOLLOWING','_commandService','setConfig','status$','executeCommand','LIVESHARE_FETCH_OPERATIONS','subscribe','Start','_handleOnline','getLiveShareCoordinatorSync','data','onStarting','call','6rifvkw','memberID','idle','prototype','_startFollowing','_univerInstanceService','_startPresenting','3153962cexbSX','packageName','toPrimitive','getValue','pluginName','createInstance','_handleNewChangeSets','end','@univerjs-pro/live-share','getTypeOfUnitAdded$','sessionStatus$','decorate','ONLINE','asObservable','pipe','button','12JjJguK','3217576HJgNcE','override','getCurrentTypeOfUnit$','getLiveShareCoordinator','_entities','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','LIVESHARE_NEW_HOST','_unitID','LIVESHARE_TERMINATE','offline','OPERATION','_collabSession','length','shouldShareOperation','_commandDisposable','1497950knNXPS','requireSession','_startLiveShareCoordinator','sheet','tryStartPresenting','OFFLINE','onRendered','current','delete','function','default','getOwnPropertyDescriptor','_collabSessionService','get','stringify','_sharedOperations','following','from','defineProperty','You\x27are\x20offline.','includes','_config','_handleOperation','unitId','div','_handleOffline','complete','82179tBeTmf','You\x27re\x20presenting\x20the\x20document','getInitialStates','forEach','_status','unit','getStatus','getUnitId','presenting','_stopFollowing','disposeWithMe','has','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','add','string','_handleTerminate','_status$','symbol','mutations','_configService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','_liveShareService','not-following','getTypeOfUnitDisposed$','reverse','getConfig','UNIVER_LIVE_SHARE_PLUGIN','constructor','registerComponent','_presenter','2560206GIuVnm','1.0.0-alpha.1','_init','onCommandExecuted','send','_mountLiveShare','635588GlObXK','version','1673992efwRCn','find','params','getMemberID','next','LIVESHARE_OPERATION','then','Start\x20following','object','10nwvzzS','init','NOT_FOLLOWING','_handleNewHost','_stopPresenting','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','36ekssiw','UNIVER_UNKNOWN','PRESENTING','dispose','dispose$','unsubscribe'];_0x4c3f=function(){return _0x1d12b0;};return _0x4c3f();}import{Button as _0xac3a18,Dropdown as _0x4045b5,clsx as _0x38f52b}from'@univerjs/design';import{LiveShareIcon as _0x5e9cb6}from'@univerjs/icons';import{useEffect as _0x542576,useRef as _0x418b8a,useState as _0x41fdc7}from'react';import{Fragment as _0x98295f,jsx as _0x50789a,jsxs as _0x16b88}from'react/jsx-runtime';import{SetScrollOperation as _0x452de4,SetZoomRatioOperation as _0x284992}from'@univerjs/sheets-ui';function R(_0x2e5dbd){'@babel/helpers - typeof';const _0x1909dc=_0x49a4;return R=typeof Symbol==_0x1909dc(0x1a8)&&typeof Symbol['iterator']=='symbol'?function(_0x1aede5){return typeof _0x1aede5;}:function(_0x4970eb){const _0x1f32d9=_0x1909dc;return _0x4970eb&&typeof Symbol=='function'&&_0x4970eb[_0x1f32d9(0x1d7)]===Symbol&&_0x4970eb!==Symbol[_0x1f32d9(0x17a)]?_0x1f32d9(0x1cb):typeof _0x4970eb;},R(_0x2e5dbd);}function z(_0x360513,_0x561972){const _0x566e15=_0x49a4;if(R(_0x360513)!=_0x566e15(0x1ea)||!_0x360513)return _0x360513;var _0x1ca540=_0x360513[Symbol[_0x566e15(0x180)]];if(_0x1ca540!==void 0x0){var _0xaa31f1=_0x1ca540[_0x566e15(0x176)](_0x360513,_0x561972||_0x566e15(0x1a9));if(R(_0xaa31f1)!=_0x566e15(0x1ea))return _0xaa31f1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x561972===_0x566e15(0x1c8)?String:Number)(_0x360513);}function B(_0x298d17){const _0x2bc6a9=_0x49a4;var _0x2e51f5=z(_0x298d17,_0x2bc6a9(0x1c8));return R(_0x2e51f5)==_0x2bc6a9(0x1cb)?_0x2e51f5:_0x2e51f5+'';}function V(_0x4bc780,_0x3b6231,_0x10d764){return(_0x3b6231=B(_0x3b6231))in _0x4bc780?Object['defineProperty'](_0x4bc780,_0x3b6231,{'value':_0x10d764,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bc780[_0x3b6231]=_0x10d764,_0x4bc780;}function _0x49a4(_0x430074,_0x2c9319){_0x430074=_0x430074-0x175;const _0x4c3fa5=_0x4c3f();let _0x49a4ac=_0x4c3fa5[_0x430074];return _0x49a4ac;}var H=class extends _0x3a6ee4{constructor(..._0x39f7fb){const _0x4d3fcd=_0x49a4;super(..._0x39f7fb),V(this,_0x4d3fcd(0x1ae),new Set()),V(this,_0x4d3fcd(0x1f8),new Set());}['registerSharedOperation'](_0xac2562){const _0x14bfae=_0x49a4;return this[_0x14bfae(0x1ae)]['add'](_0xac2562),_0x2c9771(()=>this['_sharedOperations'][_0x14bfae(0x1a7)](_0xac2562));}['registerInitialStateReporter'](_0x4b672f){const _0x5870a3=_0x49a4;return this['_reporters'][_0x5870a3(0x1c7)](_0x4b672f),_0x2c9771(()=>this[_0x5870a3(0x1f8)][_0x5870a3(0x1a7)](_0x4b672f));}[_0x163933(0x19d)](_0x2c4e5c){const _0x1680f1=_0x163933;return this[_0x1680f1(0x1ae)][_0x1680f1(0x1c5)](_0x2c4e5c);}[_0x163933(0x1bc)](_0x48c9c8){const _0x3e8813=_0x163933;return Array[_0x3e8813(0x1b0)](this['_reporters'])['map'](_0x56600c=>_0x56600c(_0x48c9c8));}};function U(_0xe4e8b3,_0x1df87b){return function(_0xa60193,_0x182af4){_0x1df87b(_0xa60193,_0x182af4,_0xe4e8b3);};}function W(_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e){const _0x3f17be=_0x163933;var _0x5a9968=arguments['length'],_0x2d3b37=_0x5a9968<0x3?_0x3a1df4:_0x1ea34e===null?_0x1ea34e=Object[_0x3f17be(0x1aa)](_0x3a1df4,_0x4c0591):_0x1ea34e,_0x1b9b97;if(typeof Reflect=='object'&&typeof Reflect[_0x3f17be(0x189)]==_0x3f17be(0x1a8))_0x2d3b37=Reflect['decorate'](_0x386c97,_0x3a1df4,_0x4c0591,_0x1ea34e);else{for(var _0x1a01d8=_0x386c97[_0x3f17be(0x19c)]-0x1;_0x1a01d8>=0x0;_0x1a01d8--)(_0x1b9b97=_0x386c97[_0x1a01d8])&&(_0x2d3b37=(_0x5a9968<0x3?_0x1b9b97(_0x2d3b37):_0x5a9968>0x3?_0x1b9b97(_0x3a1df4,_0x4c0591,_0x2d3b37):_0x1b9b97(_0x3a1df4,_0x4c0591))||_0x2d3b37);}return _0x5a9968>0x3&&_0x2d3b37&&Object[_0x3f17be(0x1b1)](_0x3a1df4,_0x4c0591,_0x2d3b37),_0x2d3b37;}let G=class extends _0x3eff75{constructor(_0x226578,_0x47fef8,_0x38b540){const _0x226b13=_0x163933;super(),this[_0x226b13(0x17c)]=_0x226578,this[_0x226b13(0x1fc)]=_0x47fef8,this[_0x226b13(0x1ab)]=_0x38b540,V(this,_0x226b13(0x193),new Map()),this[_0x226b13(0x1dc)]();}async[_0x163933(0x192)](_0x24bf37){const _0x5ea5c0=_0x163933;return this[_0x5ea5c0(0x193)]['has'](_0x24bf37)||await this[_0x5ea5c0(0x1a1)](_0x24bf37),this[_0x5ea5c0(0x193)][_0x5ea5c0(0x1ac)](_0x24bf37);}[_0x163933(0x207)](_0x4a1474){const _0x2ebb49=_0x163933;var _0x592831;return(_0x592831=this[_0x2ebb49(0x193)]['get'](_0x4a1474))==null?null:_0x592831;}[_0x163933(0x1dc)](){const _0x2cdc17=_0x163933;this[_0x2cdc17(0x17c)][_0x2cdc17(0x187)](_0x19d69b['UNIVER_SHEET'])[_0x2cdc17(0x18c)](_0x66b583(this['dispose$']))[_0x2cdc17(0x204)](async _0x15dbb3=>{const _0x5f77be=_0x2cdc17;let _0x3a2665=_0x15dbb3[_0x5f77be(0x1bf)]['getUnitId']();this['_entities']['has'](_0x3a2665)||this[_0x5f77be(0x1a1)](_0x3a2665);}),this[_0x2cdc17(0x17c)][_0x2cdc17(0x1d3)](_0x19d69b['UNIVER_SHEET'])['pipe'](_0x66b583(this[_0x2cdc17(0x1f6)]))[_0x2cdc17(0x204)](_0x5012e4=>{const _0x59db71=_0x2cdc17;let _0xc87cc0=_0x5012e4[_0x59db71(0x1c1)](),_0x37f9cd=this[_0x59db71(0x193)][_0x59db71(0x1ac)](_0xc87cc0);_0x37f9cd==null||_0x37f9cd['dispose']();});}async[_0x163933(0x1a1)](_0x5df195){const _0x3d0cb1=_0x163933;let _0x13f003=await this[_0x3d0cb1(0x1ab)][_0x3d0cb1(0x1a0)](_0x5df195),_0x202b31=this['_injector'][_0x3d0cb1(0x183)](q,_0x5df195,_0x13f003);return _0x202b31['init'](),this[_0x3d0cb1(0x193)]['set'](_0x5df195,_0x202b31),_0x202b31;}};G=W([U(0x0,_0x5dd410),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x147d4e(_0x1dc03d))],G);let K=function(_0x56b824){const _0x5d24ed=_0x163933;return _0x56b824[_0x5d24ed(0x1a4)]='offline',_0x56b824['IDLE']='idle',_0x56b824[_0x5d24ed(0x1fe)]=_0x5d24ed(0x1af),_0x56b824[_0x5d24ed(0x1ed)]='not-following',_0x56b824[_0x5d24ed(0x1f4)]='presenting',_0x56b824;}({}),q=class extends _0x3eff75{get['_status'](){const _0x8c5651=_0x163933;return this[_0x8c5651(0x1ca)][_0x8c5651(0x181)]();}constructor(_0x32fb17,_0x183cd3,_0x8672c3,_0x50f8c5,_0x10d38f){const _0x38b91d=_0x163933;super(),this['_unitID']=_0x32fb17,this['_collabSession']=_0x183cd3,this[_0x38b91d(0x1cd)]=_0x8672c3,this['_liveShareService']=_0x50f8c5,this[_0x38b91d(0x1ff)]=_0x10d38f,V(this,'_status$',new _0x1bdd9f('idle')),V(this,_0x38b91d(0x201),this[_0x38b91d(0x1ca)][_0x38b91d(0x18b)]()),V(this,_0x38b91d(0x1dc),!0x1),V(this,_0x38b91d(0x19e),null),V(this,_0x38b91d(0x1d9),null);}[_0x163933(0x1f5)](){const _0x5c4bde=_0x163933;var _0x50be78;(_0x50be78=this[_0x5c4bde(0x19e)])==null||_0x50be78['dispose'](),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1e6)](_0x5c4bde(0x179)),this[_0x5c4bde(0x1ca)][_0x5c4bde(0x1b9)]();}[_0x163933(0x1c0)](){const _0x5d2248=_0x163933;return this[_0x5d2248(0x1be)];}[_0x163933(0x1ec)](){const _0xd79c49=_0x163933;this[_0xd79c49(0x1dc)]||(this[_0xd79c49(0x1dc)]=!0x0,this[_0xd79c49(0x19b)][_0xd79c49(0x188)][_0xd79c49(0x18c)](_0x66b583(this[_0xd79c49(0x1f6)]))[_0xd79c49(0x204)](_0x28822a=>{const _0x30a943=_0xd79c49;switch(_0x28822a){case _0x43364d[_0x30a943(0x1a4)]:this[_0x30a943(0x1b8)]();break;case _0x43364d[_0x30a943(0x18a)]:this[_0x30a943(0x206)]();break;default:}}),this[_0xd79c49(0x19b)]['event$']['pipe'](_0x66b583(this['dispose$']))['subscribe'](_0x565bc9=>{const _0x5f285e=_0xd79c49;let {eventID:_0x59cf12}=_0x565bc9;switch(_0x59cf12){case _0x2f4f4b[_0x5f285e(0x196)]:this[_0x5f285e(0x1ee)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x1e7)]:this[_0x5f285e(0x1b5)](_0x565bc9);break;case _0x2f4f4b[_0x5f285e(0x198)]:this[_0x5f285e(0x1c9)]();break;case _0x2f4f4b['NEW_CHANGESETS']:this[_0x5f285e(0x184)](_0x565bc9);break;default:}}));}[_0x163933(0x1a3)](){const _0x19b60e=_0x163933;this['_collabSession']['send']({'eventID':_0x2f4f4b[_0x19b60e(0x195)],'data':{'unitID':this['_unitID'],'userID':this[_0x19b60e(0x19b)][_0x19b60e(0x1e5)]()}},this['_unitID']);}['stopPresenting'](){const _0xbdaf9f=_0x163933;this[_0xbdaf9f(0x1be)]===_0xbdaf9f(0x1c2)&&(this['_status$'][_0xbdaf9f(0x1e6)](_0xbdaf9f(0x179)),this[_0xbdaf9f(0x19b)]['send']({'eventID':_0x2f4f4b[_0xbdaf9f(0x198)],'data':{'unitID':this[_0xbdaf9f(0x197)]}},this['_unitID']));}['startFollowing'](){const _0x352bd5=_0x163933;this[_0x352bd5(0x1be)]==='not-following'&&(this[_0x352bd5(0x1ca)][_0x352bd5(0x1e6)](_0x352bd5(0x1af)),this[_0x352bd5(0x17b)]());}['stopFollowing'](){const _0x54df9c=_0x163933;this[_0x54df9c(0x1be)]===_0x54df9c(0x1af)&&this[_0x54df9c(0x1c3)]();}[_0x163933(0x1ee)](_0x1d46da){const _0x1b552e=_0x163933;let {presenter:_0x2019ff}=_0x1d46da[_0x1b552e(0x208)],_0x42ec53=this[_0x1b552e(0x19b)][_0x1b552e(0x1e5)]();this[_0x1b552e(0x1d9)]=_0x2019ff,_0x2019ff===_0x42ec53?(this['_stopFollowing'](),this[_0x1b552e(0x17d)]()):this['_status']!=='not-following'&&(this[_0x1b552e(0x1ef)](),this[_0x1b552e(0x17b)]());}['_fetchOperations'](){const _0x542a10=_0x163933;let _0x1b4fb8={'eventID':_0x2f4f4b[_0x542a10(0x203)]};this[_0x542a10(0x19b)][_0x542a10(0x1de)](_0x1b4fb8,this['_unitID']);}[_0x163933(0x1c9)](){const _0x5a4953=_0x163933;this[_0x5a4953(0x1d9)]=null,this[_0x5a4953(0x1be)]!=='presenting'&&this['_beIdle']();}[_0x163933(0x184)](_0x109487){const _0x2a09bf=_0x163933;if(this[_0x2a09bf(0x1be)]==='following'&&this[_0x2a09bf(0x1d9)]===_0x109487[_0x2a09bf(0x208)][_0x2a09bf(0x178)]){let _0x233132=_0xf7fca8(_0x109487[_0x2a09bf(0x208)])[_0x2a09bf(0x1cc)][_0x2a09bf(0x1d4)]()[_0x2a09bf(0x1e3)](_0x4dc560=>_0x4dc560['id']===_0x29a9fa['id']);if(_0x233132){let _0x164df1=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1b6)],_0x768efc=_0x233132[_0x2a09bf(0x1e4)][_0x2a09bf(0x1a2)]['id'];setTimeout(()=>{const _0x5f586a=_0x2a09bf;this[_0x5f586a(0x1ff)][_0x5f586a(0x202)](_0x24df1b['id'],{'unitId':_0x164df1,'subUnitId':_0x768efc},{'fromCollab':!0x0});});}}}[_0x163933(0x17d)](){const _0x5d9911=_0x163933;var _0x59abbb;(_0x59abbb=this[_0x5d9911(0x19e)])==null||_0x59abbb[_0x5d9911(0x1f5)](),this[_0x5d9911(0x1ca)][_0x5d9911(0x1e6)](_0x5d9911(0x1c2));let _0x519bcd=new Map(),_0x4bba98=this[_0x5d9911(0x19e)]=new _0x373e29();_0x4bba98[_0x5d9911(0x1c7)](_0x2c9771(()=>{const _0x5ca6ba=_0x5d9911;_0x519bcd[_0x5ca6ba(0x1bd)](({subject:_0x3075c4,subscription:_0x3b94d6})=>{const _0x1443b7=_0x5ca6ba;_0x3b94d6[_0x1443b7(0x1f7)](),_0x3075c4[_0x1443b7(0x1b9)]();}),_0x519bcd[_0x5ca6ba(0x1fa)]();})),_0x4bba98[_0x5d9911(0x1c7)](this[_0x5d9911(0x1ff)][_0x5d9911(0x1dd)](_0x349dd1=>{const _0x44c970=_0x5d9911;if(_0x349dd1[_0x44c970(0x1f1)]!==_0x41b375[_0x44c970(0x19a)]||!this[_0x44c970(0x1d1)][_0x44c970(0x19d)](_0x349dd1['id']))return;let {id:_0x56b6fb}=_0x349dd1,_0x5984e8;if(_0x519bcd[_0x44c970(0x1c5)](_0x56b6fb))_0x5984e8=_0x519bcd[_0x44c970(0x1ac)](_0x56b6fb)['subject'];else{var _0x136831;_0x5984e8=new _0x4a9313();let _0x6bf016=_0x5984e8[_0x44c970(0x18c)](_0x23f001((_0x136831=this[_0x44c970(0x1cd)][_0x44c970(0x1d5)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x136831,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44c970(0x204)](_0x161cdb=>{const _0x337870=_0x44c970;this[_0x337870(0x19b)][_0x337870(0x1de)]({'eventID':_0x2f4f4b[_0x337870(0x1e7)],'data':{'unitID':this['_unitID'],'operations':{[_0x161cdb['id']]:{'id':_0x161cdb['id'],'params':JSON[_0x337870(0x1ad)](_0x161cdb[_0x337870(0x1e4)])}}}},this['_unitID']);});_0x519bcd[_0x44c970(0x1fd)](_0x56b6fb,{'subject':_0x5984e8,'subscription':_0x6bf016});}_0x5984e8[_0x44c970(0x1e6)](_0x349dd1);})),this[_0x5d9911(0x1d1)]['getInitialStates'](this[_0x5d9911(0x197)])[_0x5d9911(0x1bd)](_0x289507=>this[_0x5d9911(0x19b)]['send']({'eventID':_0x2f4f4b[_0x5d9911(0x1e7)],'data':{'unitID':this[_0x5d9911(0x197)],'operations':{[_0x289507['id']]:{'id':_0x289507['id'],'params':JSON['stringify'](_0x289507[_0x5d9911(0x1e4)])}}}},this[_0x5d9911(0x197)]));}[_0x163933(0x1ef)](){const _0x16a67e=_0x163933;var _0x59d750;this[_0x16a67e(0x1ca)]['next'](_0x16a67e(0x179)),(_0x59d750=this[_0x16a67e(0x19e)])==null||_0x59d750[_0x16a67e(0x1f5)](),this[_0x16a67e(0x19e)]=null;}[_0x163933(0x17b)](){const _0x5c1ac5=_0x163933;var _0x125d5f;(_0x125d5f=this[_0x5c1ac5(0x19e)])==null||_0x125d5f[_0x5c1ac5(0x1f5)](),this[_0x5c1ac5(0x1ca)]['next'](_0x5c1ac5(0x1af));}['_beIdle'](){const _0x1c0665=_0x163933;var _0x365def;this[_0x1c0665(0x1ca)][_0x1c0665(0x1e6)](_0x1c0665(0x179)),(_0x365def=this['_commandDisposable'])==null||_0x365def[_0x1c0665(0x1f5)](),this[_0x1c0665(0x19e)]=null;}[_0x163933(0x1c3)](){const _0x16fb98=_0x163933;var _0x5ae3ba;this[_0x16fb98(0x1ca)]['next'](_0x16fb98(0x1d2)),(_0x5ae3ba=this['_commandDisposable'])==null||_0x5ae3ba[_0x16fb98(0x1f5)]();}[_0x163933(0x1b5)](_0x2a7e7c){const _0x434bd5=_0x163933;if([_0x434bd5(0x1c2),_0x434bd5(0x1d2),_0x434bd5(0x199)][_0x434bd5(0x1b3)](this[_0x434bd5(0x1be)])||!_0x2a7e7c[_0x434bd5(0x208)][_0x434bd5(0x1fb)]||_0x2a7e7c['data'][_0x434bd5(0x1fb)]===this[_0x434bd5(0x19b)][_0x434bd5(0x1e5)]())return;this[_0x434bd5(0x1be)]===_0x434bd5(0x179)&&this[_0x434bd5(0x17b)]();let _0x747534=_0x2a7e7c['data']['operations'];Object['values'](_0x747534)['forEach'](_0x46610a=>{const _0x405ca9=_0x434bd5;this[_0x405ca9(0x1ff)]['executeCommand'](_0x46610a['id'],_0x46610a['params']?JSON['parse'](_0x46610a[_0x405ca9(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5e049c=_0x163933;var _0x4abaa6;this['_status$'][_0x5e049c(0x1e6)](_0x5e049c(0x199)),(_0x4abaa6=this[_0x5e049c(0x19e)])==null||_0x4abaa6[_0x5e049c(0x1f5)]();}[_0x163933(0x206)](){const _0x34a1f0=_0x163933;this['_status$'][_0x34a1f0(0x1e6)](_0x34a1f0(0x179)),this['_fetchOperations']();}};q=W([U(0x2,_0x3287d9),U(0x3,_0x147d4e(H)),U(0x4,_0x15ae55)],q);function J(){const _0x544e9c=_0x163933;let _0x18e9df=_0x4d0b0b(G),_0x47d618=_0x4d0b0b(_0x5dd410),_0xe72ba5=_0x471499(()=>_0x47d618[_0x544e9c(0x191)](_0x19d69b[_0x544e9c(0x194)]),void 0x0,!0x1,[]),[_0x554ef2,_0x2c5c35]=_0x41fdc7(null),[_0x4d2e68,_0x28c5a7]=_0x41fdc7(_0x544e9c(0x179)),_0xd2604d=_0x418b8a(null);return _0x542576(()=>(_0xe72ba5&&_0x18e9df[_0x544e9c(0x192)](_0xe72ba5[_0x544e9c(0x1c1)]())[_0x544e9c(0x1e8)](_0x349de9=>{const _0x20ae39=_0x544e9c;_0x2c5c35(_0x349de9),_0xd2604d['current']=_0x349de9['status$'][_0x20ae39(0x204)](_0x3be167=>{_0x28c5a7(_0x3be167);});}),()=>{const _0x3f1dd3=_0x544e9c;var _0xcaf005;(_0xcaf005=_0xd2604d[_0x3f1dd3(0x1a6)])==null||_0xcaf005[_0x3f1dd3(0x1f7)](),_0xd2604d['current']=null;}),[_0xe72ba5,_0x18e9df]),_0x554ef2?_0x50789a(_0x4045b5,{'align':_0x544e9c(0x185),'disabled':_0x4d2e68==='offline','className':_0x544e9c(0x1f0),'overlay':_0x50789a(se,{'status':_0x4d2e68,'coordinator':_0x554ef2}),'children':_0x50789a(_0x544e9c(0x18d),{'className':_0x38f52b(_0x544e9c(0x1c6),{'univer-cursor-not-allowed':_0x4d2e68==='offline','univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d2e68!==_0x544e9c(0x199)}),'type':_0x544e9c(0x18d),'children':_0x50789a(_0x5e9cb6,{})})}):null;}function se(_0x5aa10c){const _0x7863ca=_0x163933;let {status:_0x3e622d,coordinator:_0x5e64a1}=_0x5aa10c;switch(_0x3e622d){case _0x7863ca(0x179):return _0x50789a(ce,{'coordinator':_0x5e64a1});case'following':return _0x50789a(le,{'coordinator':_0x5e64a1});case _0x7863ca(0x1d2):return _0x50789a(ue,{'coordinator':_0x5e64a1});case'offline':return _0x50789a(de,{});case _0x7863ca(0x1c2):return _0x50789a(Y,{'coordinator':_0x5e64a1});default:return null;}}function ce(_0x540ff2){const _0x219aa0=_0x163933;let {coordinator:_0x19cf79}=_0x540ff2;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x219aa0(0x1b7),{'className':_0x219aa0(0x1cf),'children':'Present\x20this\x20document'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x19cf79[_0x219aa0(0x1a3)](),'children':_0x219aa0(0x205)})]});}function le(_0x73a277){const _0x33576b=_0x163933;let {coordinator:_0x1086c9}=_0x73a277;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x33576b(0x1b7),{'className':_0x33576b(0x1cf),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'onClick':()=>_0x1086c9[_0x33576b(0x1d0)](),'children':'Stop\x20following'})]});}function ue(_0x531476){const _0xaf0dff=_0x163933;let {coordinator:_0x50bc01}=_0x531476;return _0x16b88(_0x98295f,{'children':[_0x50789a('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x50789a(_0xac3a18,{'variant':'text','onClick':()=>_0x50bc01['startFollowing'](),'children':_0xaf0dff(0x1e9)})]});}function Y(_0x399c83){const _0x3251e4=_0x163933;let {coordinator:_0x4980a9}=_0x399c83;return _0x16b88(_0x98295f,{'children':[_0x50789a(_0x3251e4(0x1b7),{'className':_0x3251e4(0x1cf),'children':_0x3251e4(0x1bb)}),_0x50789a(_0xac3a18,{'variant':_0x3251e4(0x1a9),'onClick':()=>_0x4980a9['stopPresenting'](),'children':'Stop\x20presenting'})]});}function de(){const _0x5194cd=_0x163933;return _0x50789a(_0x98295f,{'children':_0x5194cd(0x1b2)});}let X=class extends _0x3a6ee4{constructor(_0x593ddd,_0x26b2fc){const _0x15338f=_0x163933;super(),this[_0x15338f(0x1fc)]=_0x593ddd,this[_0x15338f(0x1ce)]=_0x26b2fc,this[_0x15338f(0x1df)]();}['_mountLiveShare'](){const _0x1070bb=_0x163933;this[_0x1070bb(0x1c4)](this[_0x1070bb(0x1ce)][_0x1070bb(0x1d8)](_0x27c857[_0x1070bb(0x1f9)],()=>_0x34038f(J,this[_0x1070bb(0x1fc)])));}};X=W([U(0x0,_0x147d4e(_0x430c6d)),U(0x1,_0x2568a8)],X);var fe=_0x163933(0x186),pe=_0x163933(0x1db);const Z={};let Q=class extends _0x3a6ee4{constructor(_0x6ac638){const _0x154f47=_0x163933;super(),this[_0x154f47(0x1d1)]=_0x6ac638,this[_0x154f47(0x1dc)]();}[_0x163933(0x1dc)](){const _0x356985=_0x163933;[_0x284992['id'],_0x452de4['id'],_0x24df1b['id']][_0x356985(0x1bd)](_0x5dd2df=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x5dd2df));});}};Q=W([U(0x0,_0x147d4e(H))],Q);let $=class extends _0x2c55cc{constructor(_0x12150e=Z,_0x4a2f61,_0x441862){const _0x15a3a7=_0x163933;super(),this[_0x15a3a7(0x1b4)]=_0x12150e,this['_injector']=_0x4a2f61,this[_0x15a3a7(0x1cd)]=_0x441862;let {..._0x40b82b}=_0x1f0203({},Z,this[_0x15a3a7(0x1b4)]);this[_0x15a3a7(0x1cd)][_0x15a3a7(0x200)]('live-share.config',_0x40b82b);}[_0x163933(0x175)](){const _0x1e6350=_0x163933;_0x492046(this['_injector'],_0x76a44e([[H],[G],[Q],[X]],this[_0x1e6350(0x1b4)][_0x1e6350(0x190)])),_0x4b567d(this[_0x1e6350(0x1fc)],[[Q]]);}[_0x163933(0x1a5)](){const _0x322fc0=_0x163933;_0x4b567d(this[_0x322fc0(0x1fc)],[[X]]);}};V($,_0x163933(0x1f1),_0x19d69b[_0x163933(0x1f3)]),V($,_0x163933(0x182),_0x163933(0x1d6)),V($,_0x163933(0x17f),fe),V($,_0x163933(0x1e1),pe),$=W([_0x372528(_0x33b357),U(0x1,_0x147d4e(_0x430c6d)),U(0x2,_0x3287d9)],$);export{X as DesktopLiveShareController,J as LiveShare,G as LiveShareController,q as LiveShareCoordinator,H as LiveShareService,K as LiveShareStatus,$ as UniverLiveSharePlugin};
1
+ const _0x12d49e=_0x56aa;(function(_0x5af5c6,_0x361e7e){const _0x424236=_0x56aa,_0xbb81b1=_0x5af5c6();while(!![]){try{const _0xff31b9=-parseInt(_0x424236(0x145))/0x1*(-parseInt(_0x424236(0x170))/0x2)+parseInt(_0x424236(0x104))/0x3*(-parseInt(_0x424236(0x17d))/0x4)+parseInt(_0x424236(0x125))/0x5*(parseInt(_0x424236(0x162))/0x6)+-parseInt(_0x424236(0x16e))/0x7+-parseInt(_0x424236(0x124))/0x8*(parseInt(_0x424236(0x10f))/0x9)+-parseInt(_0x424236(0x133))/0xa*(parseInt(_0x424236(0xeb))/0xb)+parseInt(_0x424236(0x135))/0xc*(parseInt(_0x424236(0x10b))/0xd);if(_0xff31b9===_0x361e7e)break;else _0xbb81b1['push'](_0xbb81b1['shift']());}catch(_0x21151d){_0xbb81b1['push'](_0xbb81b1['shift']());}}}(_0x29ad,0xdd24a));import{CollaborationEvent as _0x2dfd60,parseProtocolChangeset as _0x47a9e1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32c2a9,SessionStatus as _0x52fe0b,UniverCollaborationClientPlugin as _0x21f3e5}from'@univerjs-pro/collaboration-client';import{CommandType as _0x27732d,DependentOn as _0x1b6da4,Disposable as _0x4659c0,DisposableCollection as _0x58bd8e,ICommandService as _0x41f7a1,IConfigService as _0x348818,IUniverInstanceService as _0x1eddd0,Inject as _0x5247da,Injector as _0x408402,Plugin as _0x1502e3,RxDisposable as _0x5ca59e,UniverInstanceType as _0x14abf6,merge as _0x2dd70c,mergeOverrideWithDependencies as _0x18178b,registerDependencies as _0x59bf00,toDisposable as _0x2f05ef,touchDependencies as _0xa55cab}from'@univerjs/core';import{InsertSheetMutation as _0xa910e4,SetWorksheetActiveOperation as _0x58eadc}from'@univerjs/sheets';import{BehaviorSubject as _0x5700c9,Subject as _0x10b404}from'rxjs';import{takeUntil as _0x2af6df,throttleTime as _0x47be7d}from'rxjs/operators';import{SetScrollOperation as _0x548c90,SetZoomRatioOperation as _0x3d3ee9}from'@univerjs/sheets-ui';import{BuiltInUIPart as _0x22834b,IUIPartsService as _0x153cdd,connectInjector as _0x234790,useDependency as _0x2ca01c,useObservable as _0xdec5bf}from'@univerjs/ui';import{Button as _0x1fc5f3,Dropdown as _0x5d4586,clsx as _0x256ea0}from'@univerjs/design';import{LiveShareIcon as _0x4b5bb8}from'@univerjs/icons';import{useEffect as _0x590366,useRef as _0x2077b7,useState as _0x4d0fce}from'react';import{Fragment as _0x1b094c,jsx as _0x2e1826,jsxs as _0x53139}from'react/jsx-runtime';function z(_0x1df1a6){'@babel/helpers - typeof';const _0x596588=_0x56aa;return z=typeof Symbol==_0x596588(0x164)&&typeof Symbol[_0x596588(0x160)]=='symbol'?function(_0x500e9c){return typeof _0x500e9c;}:function(_0x49742b){const _0x6068da=_0x596588;return _0x49742b&&typeof Symbol==_0x6068da(0x164)&&_0x49742b[_0x6068da(0x13a)]===Symbol&&_0x49742b!==Symbol[_0x6068da(0x116)]?'symbol':typeof _0x49742b;},z(_0x1df1a6);}function B(_0x4c3a13,_0x4ccb3f){const _0x74e8fc=_0x56aa;if(z(_0x4c3a13)!=_0x74e8fc(0x176)||!_0x4c3a13)return _0x4c3a13;var _0x1fbcc9=_0x4c3a13[Symbol[_0x74e8fc(0x15f)]];if(_0x1fbcc9!==void 0x0){var _0x5d2630=_0x1fbcc9['call'](_0x4c3a13,_0x4ccb3f||_0x74e8fc(0x101));if(z(_0x5d2630)!='object')return _0x5d2630;throw TypeError(_0x74e8fc(0x11e));}return(_0x4ccb3f===_0x74e8fc(0x16b)?String:Number)(_0x4c3a13);}function V(_0x188519){const _0x542c52=_0x56aa;var _0xcd177e=B(_0x188519,_0x542c52(0x16b));return z(_0xcd177e)==_0x542c52(0x166)?_0xcd177e:_0xcd177e+'';}function H(_0x462b49,_0x603c26,_0x126fbd){const _0x2e6fad=_0x56aa;return(_0x603c26=V(_0x603c26))in _0x462b49?Object[_0x2e6fad(0xf4)](_0x462b49,_0x603c26,{'value':_0x126fbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x462b49[_0x603c26]=_0x126fbd,_0x462b49;}var U=class extends _0x4659c0{constructor(..._0x3fd6f5){super(..._0x3fd6f5),H(this,'_sharedOperations',new Set()),H(this,'_reporters',new Set());}['registerSharedOperation'](_0x226e08){const _0x1a530b=_0x56aa;return this[_0x1a530b(0xfd)][_0x1a530b(0x138)](_0x226e08),_0x2f05ef(()=>this[_0x1a530b(0xfd)][_0x1a530b(0x120)](_0x226e08));}[_0x12d49e(0x169)](_0x116b99){const _0x13bce4=_0x12d49e;return this[_0x13bce4(0x15a)][_0x13bce4(0x138)](_0x116b99),_0x2f05ef(()=>this[_0x13bce4(0x15a)][_0x13bce4(0x120)](_0x116b99));}[_0x12d49e(0x158)](_0xe56dcf){const _0xe5f948=_0x12d49e;return this['_sharedOperations'][_0xe5f948(0x118)](_0xe56dcf);}[_0x12d49e(0x163)](_0x59edf5){const _0x124cc8=_0x12d49e;return Array[_0x124cc8(0x10d)](this[_0x124cc8(0x15a)])[_0x124cc8(0x115)](_0x1aa362=>_0x1aa362(_0x59edf5));}};function W(_0x36d2c6,_0x467d96){return function(_0x559162,_0x4f0bbf){_0x467d96(_0x559162,_0x4f0bbf,_0x36d2c6);};}function G(_0x40f686,_0x211469,_0x2eefbb,_0x33aa77){const _0x2957ac=_0x12d49e;var _0x9179eb=arguments[_0x2957ac(0x129)],_0x271f4a=_0x9179eb<0x3?_0x211469:_0x33aa77===null?_0x33aa77=Object[_0x2957ac(0x11f)](_0x211469,_0x2eefbb):_0x33aa77,_0xf16eb5;if(typeof Reflect=='object'&&typeof Reflect[_0x2957ac(0x117)]==_0x2957ac(0x164))_0x271f4a=Reflect[_0x2957ac(0x117)](_0x40f686,_0x211469,_0x2eefbb,_0x33aa77);else{for(var _0x317cc2=_0x40f686['length']-0x1;_0x317cc2>=0x0;_0x317cc2--)(_0xf16eb5=_0x40f686[_0x317cc2])&&(_0x271f4a=(_0x9179eb<0x3?_0xf16eb5(_0x271f4a):_0x9179eb>0x3?_0xf16eb5(_0x211469,_0x2eefbb,_0x271f4a):_0xf16eb5(_0x211469,_0x2eefbb))||_0x271f4a);}return _0x9179eb>0x3&&_0x271f4a&&Object[_0x2957ac(0xf4)](_0x211469,_0x2eefbb,_0x271f4a),_0x271f4a;}let K=class extends _0x5ca59e{constructor(_0x4917ee,_0x4db5b7,_0x3c3e1e){const _0x5d489d=_0x12d49e;super(),this[_0x5d489d(0x181)]=_0x4917ee,this[_0x5d489d(0x136)]=_0x4db5b7,this[_0x5d489d(0x121)]=_0x3c3e1e,H(this,_0x5d489d(0x132),new Map()),this['_init']();}async[_0x12d49e(0xfe)](_0x47b956){const _0x261a4b=_0x12d49e;return this[_0x261a4b(0x132)]['has'](_0x47b956)||await this[_0x261a4b(0x137)](_0x47b956),this['_entities']['get'](_0x47b956);}['getLiveShareCoordinatorSync'](_0x1ec7d7){const _0x7a971e=_0x12d49e;var _0x328cc7;return(_0x328cc7=this[_0x7a971e(0x132)]['get'](_0x1ec7d7))==null?null:_0x328cc7;}[_0x12d49e(0x154)](){const _0x5b2aba=_0x12d49e;this[_0x5b2aba(0x181)][_0x5b2aba(0x12c)](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this[_0x5b2aba(0x14f)]))['subscribe'](async _0x4f66d7=>{const _0x359d4f=_0x5b2aba;let _0x83bdd8=_0x4f66d7[_0x359d4f(0x13f)][_0x359d4f(0x112)]();this[_0x359d4f(0x132)][_0x359d4f(0x118)](_0x83bdd8)||this[_0x359d4f(0x137)](_0x83bdd8);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x14abf6[_0x5b2aba(0x157)])[_0x5b2aba(0x13c)](_0x2af6df(this['dispose$']))[_0x5b2aba(0x127)](_0x409989=>{const _0x18122b=_0x5b2aba;let _0x90b7b6=_0x409989[_0x18122b(0x112)](),_0x3fca5c=this[_0x18122b(0x132)][_0x18122b(0x16f)](_0x90b7b6);_0x3fca5c==null||_0x3fca5c[_0x18122b(0x100)]();});}async[_0x12d49e(0x137)](_0x43f6b8){const _0x8cdb11=_0x12d49e;let _0x8f0051=await this[_0x8cdb11(0x121)][_0x8cdb11(0x102)](_0x43f6b8),_0x20947e=this[_0x8cdb11(0x136)]['createInstance'](J,_0x43f6b8,_0x8f0051);return _0x20947e[_0x8cdb11(0xfb)](),this[_0x8cdb11(0x132)][_0x8cdb11(0x109)](_0x43f6b8,_0x20947e),_0x20947e;}};K=G([W(0x0,_0x1eddd0),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x5247da(_0x32c2a9))],K);let q=function(_0x455e5f){const _0x405d6c=_0x12d49e;return _0x455e5f[_0x405d6c(0x142)]=_0x405d6c(0x150),_0x455e5f['IDLE']=_0x405d6c(0x141),_0x455e5f[_0x405d6c(0x108)]=_0x405d6c(0xf2),_0x455e5f[_0x405d6c(0x11d)]=_0x405d6c(0x10c),_0x455e5f['PRESENTING']=_0x405d6c(0xf5),_0x455e5f;}({}),J=class extends _0x5ca59e{get['_status'](){const _0x201835=_0x12d49e;return this[_0x201835(0x107)][_0x201835(0x178)]();}constructor(_0x598eb4,_0x37d206,_0x4ca3b5,_0x69c79,_0x14f351){const _0x556c50=_0x12d49e;super(),this['_unitID']=_0x598eb4,this['_collabSession']=_0x37d206,this[_0x556c50(0x10e)]=_0x4ca3b5,this[_0x556c50(0x16c)]=_0x69c79,this['_commandService']=_0x14f351,H(this,_0x556c50(0x107),new _0x5700c9(_0x556c50(0x141))),H(this,_0x556c50(0x113),this['_status$'][_0x556c50(0x12a)]()),H(this,_0x556c50(0x154),!0x1),H(this,_0x556c50(0xed),null),H(this,_0x556c50(0xfc),null);}[_0x12d49e(0x100)](){const _0x5a1d5d=_0x12d49e;var _0x5ad786;(_0x5ad786=this[_0x5a1d5d(0xed)])==null||_0x5ad786[_0x5a1d5d(0x100)](),this[_0x5a1d5d(0x107)][_0x5a1d5d(0xf7)](_0x5a1d5d(0x141)),this['_status$'][_0x5a1d5d(0x148)]();}['getStatus'](){const _0x4ed593=_0x12d49e;return this[_0x4ed593(0xfa)];}[_0x12d49e(0xfb)](){const _0x186bd7=_0x12d49e;this[_0x186bd7(0x154)]||(this['_init']=!0x0,this[_0x186bd7(0x13d)][_0x186bd7(0x14e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x4650e9=>{const _0x38beda=_0x186bd7;switch(_0x4650e9){case _0x52fe0b['OFFLINE']:this[_0x38beda(0xf0)]();break;case _0x52fe0b[_0x38beda(0x14c)]:this['_handleOnline']();break;default:}}),this[_0x186bd7(0x13d)][_0x186bd7(0x15e)][_0x186bd7(0x13c)](_0x2af6df(this[_0x186bd7(0x14f)]))[_0x186bd7(0x127)](_0x24618d=>{const _0x1afb64=_0x186bd7;let {eventID:_0x2bca3d}=_0x24618d;switch(_0x2bca3d){case _0x2dfd60[_0x1afb64(0x149)]:this[_0x1afb64(0xf9)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0xf8)]:this[_0x1afb64(0x126)](_0x24618d);break;case _0x2dfd60[_0x1afb64(0x11a)]:this['_handleTerminate']();break;case _0x2dfd60[_0x1afb64(0x111)]:this[_0x1afb64(0x13e)](_0x24618d);break;default:}}));}[_0x12d49e(0x179)](){const _0x8b7b9e=_0x12d49e;this['_collabSession'][_0x8b7b9e(0x155)]({'eventID':_0x2dfd60[_0x8b7b9e(0x140)],'data':{'unitID':this[_0x8b7b9e(0x14d)],'userID':this[_0x8b7b9e(0x13d)][_0x8b7b9e(0x143)]()}},this[_0x8b7b9e(0x14d)]);}['stopPresenting'](){const _0x10cd91=_0x12d49e;this['_status']===_0x10cd91(0xf5)&&(this[_0x10cd91(0x107)][_0x10cd91(0xf7)](_0x10cd91(0x141)),this[_0x10cd91(0x13d)][_0x10cd91(0x155)]({'eventID':_0x2dfd60[_0x10cd91(0x11a)],'data':{'unitID':this[_0x10cd91(0x14d)]}},this[_0x10cd91(0x14d)]));}[_0x12d49e(0x180)](){const _0x242004=_0x12d49e;this[_0x242004(0xfa)]==='not-following'&&(this[_0x242004(0x107)]['next'](_0x242004(0xf2)),this[_0x242004(0x123)]());}['stopFollowing'](){const _0x326dd5=_0x12d49e;this[_0x326dd5(0xfa)]===_0x326dd5(0xf2)&&this['_stopFollowing']();}['_handleNewHost'](_0x374469){const _0x162050=_0x12d49e;let {presenter:_0x5df368}=_0x374469[_0x162050(0xef)],_0x50cb3d=this['_collabSession'][_0x162050(0x143)]();this[_0x162050(0xfc)]=_0x5df368,_0x5df368===_0x50cb3d?(this['_stopFollowing'](),this[_0x162050(0x152)]()):this[_0x162050(0xfa)]!=='not-following'&&(this['_stopPresenting'](),this[_0x162050(0x123)]());}[_0x12d49e(0x165)](){const _0x28b5f8=_0x12d49e;let _0x433c96={'eventID':_0x2dfd60['LIVESHARE_FETCH_OPERATIONS']};this[_0x28b5f8(0x13d)][_0x28b5f8(0x155)](_0x433c96,this[_0x28b5f8(0x14d)]);}[_0x12d49e(0x167)](){const _0x4ce878=_0x12d49e;this[_0x4ce878(0xfc)]=null,this[_0x4ce878(0xfa)]!==_0x4ce878(0xf5)&&this[_0x4ce878(0x15b)]();}['_handleNewChangeSets'](_0x4c4dc1){const _0x312b90=_0x12d49e;if(this['_status']===_0x312b90(0xf2)&&this[_0x312b90(0xfc)]===_0x4c4dc1['data'][_0x312b90(0x182)]){let _0x39e6d4=_0x47a9e1(_0x4c4dc1[_0x312b90(0xef)])[_0x312b90(0x105)][_0x312b90(0x151)]()[_0x312b90(0x173)](_0x1df189=>_0x1df189['id']===_0xa910e4['id']);if(_0x39e6d4){let _0x15f301=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x134)],_0x55d94a=_0x39e6d4[_0x312b90(0x17c)][_0x312b90(0x174)]['id'];setTimeout(()=>{const _0x32f359=_0x312b90;this[_0x32f359(0xf3)]['executeCommand'](_0x58eadc['id'],{'unitId':_0x15f301,'subUnitId':_0x55d94a},{'fromCollab':!0x0});});}}}[_0x12d49e(0x152)](){const _0x10346b=_0x12d49e;var _0x24617d;(_0x24617d=this[_0x10346b(0xed)])==null||_0x24617d[_0x10346b(0x100)](),this[_0x10346b(0x107)][_0x10346b(0xf7)]('presenting');let _0x18bdf3=new Map(),_0x4d6144=this[_0x10346b(0xed)]=new _0x58bd8e();_0x4d6144['add'](_0x2f05ef(()=>{const _0x1807d0=_0x10346b;_0x18bdf3[_0x1807d0(0x10a)](({subject:_0xe9fd2b,subscription:_0x588410})=>{const _0x5d9a11=_0x1807d0;_0x588410[_0x5d9a11(0x17e)](),_0xe9fd2b['complete']();}),_0x18bdf3[_0x1807d0(0x11b)]();})),_0x4d6144[_0x10346b(0x138)](this[_0x10346b(0xf3)][_0x10346b(0x106)](_0x5e4287=>{const _0x4788fd=_0x10346b;if(_0x5e4287[_0x4788fd(0x131)]!==_0x27732d['OPERATION']||!this[_0x4788fd(0x16c)][_0x4788fd(0x158)](_0x5e4287['id']))return;let {id:_0x4f5fbb}=_0x5e4287,_0x31aa58;if(_0x18bdf3[_0x4788fd(0x118)](_0x4f5fbb))_0x31aa58=_0x18bdf3[_0x4788fd(0x16f)](_0x4f5fbb)[_0x4788fd(0x110)];else{var _0x30f24b;_0x31aa58=new _0x10b404();let _0x99010d=_0x31aa58[_0x4788fd(0x13c)](_0x47be7d((_0x30f24b=this['_configService'][_0x4788fd(0x139)](_0x4788fd(0x128)))==null?0xc8:_0x30f24b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4788fd(0x127)](_0x2926ed=>{const _0x58ad0c=_0x4788fd;this['_collabSession']['send']({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58ad0c(0x14d)],'operations':{[_0x2926ed['id']]:{'id':_0x2926ed['id'],'params':JSON[_0x58ad0c(0x11c)](_0x2926ed['params'])}}}},this[_0x58ad0c(0x14d)]);});_0x18bdf3[_0x4788fd(0x109)](_0x4f5fbb,{'subject':_0x31aa58,'subscription':_0x99010d});}_0x31aa58[_0x4788fd(0xf7)](_0x5e4287);})),this[_0x10346b(0x16c)][_0x10346b(0x163)](this[_0x10346b(0x14d)])[_0x10346b(0x10a)](_0x1fb644=>this['_collabSession'][_0x10346b(0x155)]({'eventID':_0x2dfd60['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10346b(0x14d)],'operations':{[_0x1fb644['id']]:{'id':_0x1fb644['id'],'params':JSON[_0x10346b(0x11c)](_0x1fb644[_0x10346b(0x17c)])}}}},this[_0x10346b(0x14d)]));}[_0x12d49e(0x15d)](){const _0x32ae5d=_0x12d49e;var _0x804031;this[_0x32ae5d(0x107)][_0x32ae5d(0xf7)](_0x32ae5d(0x141)),(_0x804031=this[_0x32ae5d(0xed)])==null||_0x804031[_0x32ae5d(0x100)](),this['_commandDisposable']=null;}[_0x12d49e(0x123)](){const _0x2be806=_0x12d49e;var _0x44643d;(_0x44643d=this[_0x2be806(0xed)])==null||_0x44643d[_0x2be806(0x100)](),this[_0x2be806(0x107)][_0x2be806(0xf7)]('following');}[_0x12d49e(0x15b)](){const _0xd265d0=_0x12d49e;var _0xf9bca3;this[_0xd265d0(0x107)][_0xd265d0(0xf7)](_0xd265d0(0x141)),(_0xf9bca3=this[_0xd265d0(0xed)])==null||_0xf9bca3[_0xd265d0(0x100)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4ea4f8=_0x12d49e;var _0x115742;this[_0x4ea4f8(0x107)][_0x4ea4f8(0xf7)](_0x4ea4f8(0x10c)),(_0x115742=this[_0x4ea4f8(0xed)])==null||_0x115742[_0x4ea4f8(0x100)]();}[_0x12d49e(0x126)](_0x534275){const _0x47e430=_0x12d49e;if([_0x47e430(0xf5),'not-following','offline'][_0x47e430(0x161)](this[_0x47e430(0xfa)])||!_0x534275[_0x47e430(0xef)]['presenter']||_0x534275[_0x47e430(0xef)][_0x47e430(0x159)]===this['_collabSession'][_0x47e430(0x143)]())return;this['_status']==='idle'&&this[_0x47e430(0x123)]();let _0x3e4257=_0x534275[_0x47e430(0xef)][_0x47e430(0x114)];Object[_0x47e430(0xec)](_0x3e4257)[_0x47e430(0x10a)](_0x223354=>{const _0x50eb01=_0x47e430;this[_0x50eb01(0xf3)][_0x50eb01(0x15c)](_0x223354['id'],_0x223354[_0x50eb01(0x17c)]?JSON[_0x50eb01(0x14b)](_0x223354[_0x50eb01(0x17c)]):null,{'fromCollab':!0x0});});}[_0x12d49e(0xf0)](){const _0x46d52e=_0x12d49e;var _0x3c91b0;this[_0x46d52e(0x107)]['next'](_0x46d52e(0x150)),(_0x3c91b0=this[_0x46d52e(0xed)])==null||_0x3c91b0[_0x46d52e(0x100)]();}[_0x12d49e(0x156)](){const _0x5ccdbe=_0x12d49e;this[_0x5ccdbe(0x107)]['next']('idle'),this['_fetchOperations']();}};J=G([W(0x2,_0x348818),W(0x3,_0x5247da(U)),W(0x4,_0x41f7a1)],J);var oe=_0x12d49e(0x16a),se='1.0.0-alpha.3';const Y={};let X=class extends _0x4659c0{constructor(_0xcd1412){const _0x9fcf53=_0x12d49e;super(),this[_0x9fcf53(0x16c)]=_0xcd1412,this[_0x9fcf53(0x154)]();}[_0x12d49e(0x154)](){const _0x5e33bd=_0x12d49e;[_0x3d3ee9['id'],_0x548c90['id'],_0x58eadc['id']][_0x5e33bd(0x10a)](_0x5b6e8c=>{const _0x5bd46e=_0x5e33bd;this['disposeWithMe'](this['_liveShareService'][_0x5bd46e(0x12d)](_0x5b6e8c));});}};X=G([W(0x0,_0x5247da(U))],X);function ce(){const _0x40248c=_0x12d49e;let _0x3fbc85=_0x2ca01c(K),_0x50d4d0=_0x2ca01c(_0x1eddd0),_0x4ac9d3=_0xdec5bf(()=>_0x50d4d0[_0x40248c(0x168)](_0x14abf6[_0x40248c(0x157)]),void 0x0,!0x1,[]),[_0x42268e,_0x17c1d2]=_0x4d0fce(null),[_0xa9689e,_0x18b7da]=_0x4d0fce(_0x40248c(0x141)),_0x2fb899=_0x2077b7(null);return _0x590366(()=>(_0x4ac9d3&&_0x3fbc85[_0x40248c(0xfe)](_0x4ac9d3[_0x40248c(0x112)]())['then'](_0x1c59c2=>{const _0xe1e8f6=_0x40248c;_0x17c1d2(_0x1c59c2),_0x2fb899[_0xe1e8f6(0x13b)]=_0x1c59c2[_0xe1e8f6(0x113)][_0xe1e8f6(0x127)](_0x3b0da2=>{_0x18b7da(_0x3b0da2);});}),()=>{const _0x256803=_0x40248c;var _0x500f63;(_0x500f63=_0x2fb899[_0x256803(0x13b)])==null||_0x500f63[_0x256803(0x17e)](),_0x2fb899['current']=null;}),[_0x4ac9d3,_0x3fbc85]),_0x42268e?_0x2e1826(_0x5d4586,{'align':_0x40248c(0x17f),'disabled':_0xa9689e===_0x40248c(0x150),'className':_0x40248c(0x144),'overlay':_0x2e1826(Z,{'status':_0xa9689e,'coordinator':_0x42268e}),'children':_0x2e1826(_0x40248c(0x175),{'className':_0x256ea0(_0x40248c(0x122),{'univer-cursor-not-allowed':_0xa9689e===_0x40248c(0x150),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa9689e!==_0x40248c(0x150)}),'type':'button','children':_0x2e1826(_0x4b5bb8,{})})}):null;}function Z(_0xf12cc7){const _0xe8b6a1=_0x12d49e;let {status:_0x5574a7,coordinator:_0xc5d751}=_0xf12cc7;switch(_0x5574a7){case _0xe8b6a1(0x141):return _0x2e1826(le,{'coordinator':_0xc5d751});case'following':return _0x2e1826(ue,{'coordinator':_0xc5d751});case'not-following':return _0x2e1826(de,{'coordinator':_0xc5d751});case _0xe8b6a1(0x150):return _0x2e1826(pe,{});case _0xe8b6a1(0xf5):return _0x2e1826(fe,{'coordinator':_0xc5d751});default:return null;}}function le(_0x347889){const _0x1ef0bc=_0x12d49e;let {coordinator:_0x3f288c}=_0x347889;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x1ef0bc(0x177),{'className':_0x1ef0bc(0x146),'children':'Present\x20this\x20document'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x3f288c[_0x1ef0bc(0x179)](),'children':'Start'})]});}function _0x29ad(){const _0x12240a=['_handleNewHost','_status','init','_presenter','_sharedOperations','getLiveShareCoordinator','Stop\x20following','dispose','default','requireSession','override','452748yIgsgK','mutations','onCommandExecuted','_status$','FOLLOWING','set','forEach','575770stZGgZ','not-following','from','_configService','405APGCvB','subject','NEW_CHANGESETS','getUnitId','status$','operations','map','prototype','decorate','has','text','LIVESHARE_TERMINATE','clear','stringify','NOT_FOLLOWING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','delete','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','180936eEMKwV','3070MxyiFc','_handleOperation','subscribe','SAME_OPERATION_SHARE_INTERVAL','length','asObservable','UNIVER_UNKNOWN','getTypeOfUnitAdded$','registerSharedOperation','registerComponent','UNIVER_LIVE_SHARE_PLUGIN','onStarting','type','_entities','1610rxCgkg','unitId','972teGhAp','_injector','_startLiveShareCoordinator','add','getConfig','constructor','current','pipe','_collabSession','_handleNewChangeSets','unit','LIVESHARE_REQUEST_HOST','idle','OFFLINE','getMemberID','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','1030Fpdstu','univer-mb-3\x20univer-w-full\x20univer-text-sm','_config','complete','LIVESHARE_NEW_HOST','HEADER_MENU','parse','ONLINE','_unitID','sessionStatus$','dispose$','offline','reverse','_startPresenting','_mountLiveShare','_init','send','_handleOnline','UNIVER_SHEET','shouldShareOperation','presenter','_reporters','_beIdle','executeCommand','_stopPresenting','event$','toPrimitive','iterator','includes','7368CsJZCd','getInitialStates','function','_fetchOperations','symbol','_handleTerminate','getCurrentTypeOfUnit$','registerInitialStateReporter','@univerjs-pro/live-share','string','_liveShareService','pluginName','4054624TqWLXY','get','746kEAlTF','live-share.config','_uiPartsService','find','sheet','button','object','div','getValue','tryStartPresenting','stopPresenting','You\x27are\x20offline.','params','40aUoGlQ','unsubscribe','end','startFollowing','_univerInstanceService','memberID','48763RkUsYT','values','_commandDisposable','setConfig','data','_handleOffline','stopFollowing','following','_commandService','defineProperty','presenting','You\x27re\x20not\x20following\x20the\x20presenter','next','LIVESHARE_OPERATION'];_0x29ad=function(){return _0x12240a;};return _0x29ad();}function _0x56aa(_0xe224c0,_0x40afac){_0xe224c0=_0xe224c0-0xeb;const _0x29ad87=_0x29ad();let _0x56aaba=_0x29ad87[_0xe224c0];return _0x56aaba;}function ue(_0x43cfc0){const _0x55bb5d=_0x12d49e;let {coordinator:_0x11fa2d}=_0x43cfc0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x55bb5d(0x177),{'className':_0x55bb5d(0x146),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2e1826(_0x1fc5f3,{'onClick':()=>_0x11fa2d[_0x55bb5d(0xf1)](),'children':_0x55bb5d(0xff)})]});}function de(_0x31f80a){const _0x377687=_0x12d49e;let {coordinator:_0x1f4b0e}=_0x31f80a;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x377687(0x177),{'className':_0x377687(0x146),'children':_0x377687(0xf6)}),_0x2e1826(_0x1fc5f3,{'variant':_0x377687(0x119),'onClick':()=>_0x1f4b0e[_0x377687(0x180)](),'children':'Start\x20following'})]});}function fe(_0x5717e0){const _0x41daf2=_0x12d49e;let {coordinator:_0x3da7d0}=_0x5717e0;return _0x53139(_0x1b094c,{'children':[_0x2e1826(_0x41daf2(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2e1826(_0x1fc5f3,{'variant':'default','onClick':()=>_0x3da7d0[_0x41daf2(0x17a)](),'children':'Stop\x20presenting'})]});}function pe(){const _0x5938fd=_0x12d49e;return _0x2e1826(_0x1b094c,{'children':_0x5938fd(0x17b)});}let Q=class extends _0x4659c0{constructor(_0x45f985,_0x15120f){const _0x1fbafb=_0x12d49e;super(),this[_0x1fbafb(0x136)]=_0x45f985,this[_0x1fbafb(0x172)]=_0x15120f,this[_0x1fbafb(0x153)]();}[_0x12d49e(0x153)](){const _0x46045c=_0x12d49e;this['disposeWithMe'](this[_0x46045c(0x172)][_0x46045c(0x12e)](_0x22834b[_0x46045c(0x14a)],()=>_0x234790(ce,this[_0x46045c(0x136)])));}};Q=G([W(0x0,_0x5247da(_0x408402)),W(0x1,_0x153cdd)],Q);let $=class extends _0x1502e3{constructor(_0xe98712=Y,_0x574da0,_0x33a96a){const _0x44df31=_0x12d49e;super(),this['_config']=_0xe98712,this['_injector']=_0x574da0,this['_configService']=_0x33a96a;let {..._0x40976a}=_0x2dd70c({},Y,this[_0x44df31(0x147)]);this[_0x44df31(0x10e)][_0x44df31(0xee)](_0x44df31(0x171),_0x40976a);}[_0x12d49e(0x130)](){const _0x5ca9d9=_0x12d49e;_0x59bf00(this['_injector'],_0x18178b([[U],[K],[X],[Q]],this['_config'][_0x5ca9d9(0x103)])),_0xa55cab(this[_0x5ca9d9(0x136)],[[X]]);}['onRendered'](){const _0x373fa8=_0x12d49e;_0xa55cab(this[_0x373fa8(0x136)],[[Q]]);}};H($,'type',_0x14abf6[_0x12d49e(0x12b)]),H($,_0x12d49e(0x16d),_0x12d49e(0x12f)),H($,'packageName',oe),H($,'version',se),$=G([_0x1b6da4(_0x21f3e5),W(0x1,_0x5247da(_0x408402)),W(0x2,_0x348818)],$);export{K as LiveShareController,q as LiveShareStatus,$ as UniverLiveSharePlugin};
@@ -1,7 +1,3 @@
1
1
  import './global.css';
2
- export type { IUniverLiveShareConfig } from './config/config';
3
- export { LiveShareController, LiveShareCoordinator, LiveShareStatus } from './controllers/live-share/live-share.controller';
4
- export { DesktopLiveShareController } from './controllers/live-share/ui.controller';
2
+ export { LiveShareController, LiveShareStatus, } from './controllers/live-share/live-share.controller';
5
3
  export { UniverLiveSharePlugin } from './plugin';
6
- export { LiveShareService } from './services/live-share.service';
7
- export { LiveShare } from './views/components/LiveShare';
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4cb6(_0x16e45c,_0x441989){_0x16e45c=_0x16e45c-0x98;const _0x2b6627=_0x2b66();let _0x4cb62d=_0x2b6627[_0x16e45c];return _0x4cb62d;}(function(_0x1db2b4,_0x2fe2e0){const _0x2710ad=_0x4cb6,_0x23508c=_0x1db2b4();while(!![]){try{const _0x4e8e05=-parseInt(_0x2710ad(0xaa))/0x1+parseInt(_0x2710ad(0xc3))/0x2+parseInt(_0x2710ad(0xa0))/0x3+parseInt(_0x2710ad(0xad))/0x4+parseInt(_0x2710ad(0xbd))/0x5+parseInt(_0x2710ad(0xb1))/0x6*(parseInt(_0x2710ad(0xb9))/0x7)+-parseInt(_0x2710ad(0xa1))/0x8;if(_0x4e8e05===_0x2fe2e0)break;else _0x23508c['push'](_0x23508c['shift']());}catch(_0x552bdc){_0x23508c['push'](_0x23508c['shift']());}}}(_0x2b66,0x3e1f1),function(_0xee61ca,_0x31b84c){const _0x5154e9=_0x4cb6;typeof exports==_0x5154e9(0xb2)&&typeof module<'u'?_0x31b84c(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x5154e9(0xc5)&&define[_0x5154e9(0xb8)]?define([_0x5154e9(0xa5),_0x5154e9(0xa4),_0x5154e9(0x9f)],_0x31b84c):(_0xee61ca=typeof globalThis<'u'?globalThis:_0xee61ca||self,_0x31b84c(_0xee61ca[_0x5154e9(0xb3)],_0xee61ca[_0x5154e9(0xbf)],_0xee61ca[_0x5154e9(0x99)]));}(this,function(_0x1fca91,_0x457e13,_0x489a39){const _0x108ccf=_0x4cb6;function _0xb53b9(_0x2d8fc5){'@babel/helpers - typeof';const _0x2dd586=_0x4cb6;return _0xb53b9=typeof Symbol==_0x2dd586(0xc5)&&typeof Symbol[_0x2dd586(0x9b)]==_0x2dd586(0xa2)?function(_0x59e12a){return typeof _0x59e12a;}:function(_0x30df5f){const _0x38b9d9=_0x2dd586;return _0x30df5f&&typeof Symbol==_0x38b9d9(0xc5)&&_0x30df5f[_0x38b9d9(0xb0)]===Symbol&&_0x30df5f!==Symbol[_0x38b9d9(0x9e)]?'symbol':typeof _0x30df5f;},_0xb53b9(_0x2d8fc5);}function _0x4e7ab5(_0x584486,_0x460213){const _0x301352=_0x4cb6;if(_0xb53b9(_0x584486)!=_0x301352(0xb2)||!_0x584486)return _0x584486;var _0x5a9cd5=_0x584486[Symbol[_0x301352(0x9c)]];if(_0x5a9cd5!==void 0x0){var _0x2e9161=_0x5a9cd5[_0x301352(0xa8)](_0x584486,_0x460213||'default');if(_0xb53b9(_0x2e9161)!=_0x301352(0xb2))return _0x2e9161;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x460213===_0x301352(0xac)?String:Number)(_0x584486);}function _0x517b60(_0x527be1){const _0x623b7e=_0x4cb6;var _0x23e4cf=_0x4e7ab5(_0x527be1,_0x623b7e(0xac));return _0xb53b9(_0x23e4cf)=='symbol'?_0x23e4cf:_0x23e4cf+'';}function _0x1adf0c(_0x56c0c9,_0x104922,_0x19530a){const _0x5408a2=_0x4cb6;return(_0x104922=_0x517b60(_0x104922))in _0x56c0c9?Object[_0x5408a2(0xc2)](_0x56c0c9,_0x104922,{'value':_0x19530a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56c0c9[_0x104922]=_0x19530a,_0x56c0c9;}var _0x2b1160=class extends _0x489a39[_0x108ccf(0xb7)]{constructor(..._0x59ffe6){const _0x3fdbe2=_0x108ccf;super(..._0x59ffe6),_0x1adf0c(this,_0x3fdbe2(0xab),void 0x0);}[_0x108ccf(0xb6)](_0x1baaac){const _0x5e2596=_0x108ccf;this[_0x5e2596(0xab)]=_0x1baaac[_0x5e2596(0xbc)](_0x1fca91[_0x5e2596(0xa9)]);}[_0x108ccf(0xc4)](){const _0x14725b=_0x108ccf;var _0x4c94ae;let _0x3dffdc=this[_0x14725b(0xbe)][_0x14725b(0xbc)](_0x457e13[_0x14725b(0xb4)])[_0x14725b(0xaf)](_0x457e13['UniverInstanceType'][_0x14725b(0xb5)]);if(!_0x3dffdc)throw Error(_0x14725b(0x9a));let _0x1f339a=_0x3dffdc[_0x14725b(0x9d)](),_0x486d83=this[_0x14725b(0xab)][_0x14725b(0x98)](_0x1f339a);return(_0x4c94ae=_0x486d83==null?void 0x0:_0x486d83[_0x14725b(0xba)]())==null?_0x1fca91[_0x14725b(0xc6)][_0x14725b(0xbb)]:_0x4c94ae;}['startFollowing'](){const _0x3e96b0=_0x108ccf;let _0x39f5fb=this[_0x3e96b0(0xbe)][_0x3e96b0(0xbc)](_0x457e13[_0x3e96b0(0xb4)])[_0x3e96b0(0xaf)](_0x457e13[_0x3e96b0(0xc0)]['UNIVER_SHEET']);if(!_0x39f5fb)throw Error('No\x20active\x20workbook\x20found.');let _0x24dd51=_0x39f5fb['getUnitId'](),_0x3ee9c9=this[_0x3e96b0(0xab)]['getLiveShareCoordinatorSync'](_0x24dd51);if(!_0x3ee9c9)throw Error(_0x3e96b0(0xa6));_0x3ee9c9['startFollowing']();}[_0x108ccf(0xc1)](){const _0x3e94fd=_0x108ccf;let _0x50f8f5=this[_0x3e94fd(0xbe)][_0x3e94fd(0xbc)](_0x457e13[_0x3e94fd(0xb4)])[_0x3e94fd(0xaf)](_0x457e13['UniverInstanceType'][_0x3e94fd(0xb5)]);if(!_0x50f8f5)throw Error(_0x3e94fd(0x9a));let _0x4f0e2e=_0x50f8f5[_0x3e94fd(0x9d)](),_0x313dea=this[_0x3e94fd(0xab)]['getLiveShareCoordinatorSync'](_0x4f0e2e);if(!_0x313dea)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x313dea[_0x3e94fd(0xc1)]();}['startPresenting'](){const _0x47b4a4=_0x108ccf;let _0x30deef=this['_injector'][_0x47b4a4(0xbc)](_0x457e13[_0x47b4a4(0xb4)])[_0x47b4a4(0xaf)](_0x457e13[_0x47b4a4(0xc0)][_0x47b4a4(0xb5)]);if(!_0x30deef)throw Error('No\x20active\x20workbook\x20found.');let _0x4d9790=_0x30deef['getUnitId'](),_0x5b4db9=this['_liveShareController'][_0x47b4a4(0x98)](_0x4d9790);if(!_0x5b4db9)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5b4db9['tryStartPresenting']();}[_0x108ccf(0xa7)](){const _0x4153a9=_0x108ccf;let _0x556d9b=this['_injector'][_0x4153a9(0xbc)](_0x457e13[_0x4153a9(0xb4)])['getCurrentUnitOfType'](_0x457e13[_0x4153a9(0xc0)][_0x4153a9(0xb5)]);if(!_0x556d9b)throw Error(_0x4153a9(0x9a));let _0x22041d=_0x556d9b[_0x4153a9(0x9d)](),_0x292e60=this[_0x4153a9(0xab)][_0x4153a9(0x98)](_0x22041d);if(!_0x292e60)throw Error(_0x4153a9(0xa6));_0x292e60[_0x4153a9(0xa7)]();}};_0x489a39[_0x108ccf(0xb7)]['extend'](_0x2b1160);var _0x2c0fc9=class extends _0x489a39[_0x108ccf(0xa3)]{get['LiveShareStatusEnum'](){const _0x45c3e9=_0x108ccf;return _0x1fca91[_0x45c3e9(0xc6)];}};_0x489a39[_0x108ccf(0xa3)][_0x108ccf(0xae)](_0x2c0fc9);}));function _0x2b66(){const _0x5d1178=['function','LiveShareStatus','getLiveShareCoordinatorSync','UniverCoreFacade','No\x20active\x20workbook\x20found.','iterator','toPrimitive','getUnitId','prototype','@univerjs/core/facade','311505JUzxpx','5534224SMgIrP','symbol','FEnum','@univerjs/core','@univerjs-pro/live-share','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','call','LiveShareController','63720Zknmzx','_liveShareController','string','346812BfZMQN','extend','getCurrentUnitOfType','constructor','556926BGZCsY','object','UniverProLiveShare','IUniverInstanceService','UNIVER_SHEET','_initialize','FUniver','amd','35UHXKwn','getStatus','IDLE','get','393225mJqfCr','_injector','UniverCore','UniverInstanceType','stopFollowing','defineProperty','553318pHzPja','getLiveShareStatus'];_0x2b66=function(){return _0x5d1178;};return _0x2b66();}
1
+ (function(_0xa7ab2e,_0x521669){const _0x555aaa=_0x25d4,_0x4cd563=_0xa7ab2e();while(!![]){try{const _0x194531=-parseInt(_0x555aaa(0x123))/0x1+parseInt(_0x555aaa(0x11c))/0x2+parseInt(_0x555aaa(0x128))/0x3*(-parseInt(_0x555aaa(0x135))/0x4)+-parseInt(_0x555aaa(0x117))/0x5+parseInt(_0x555aaa(0x127))/0x6*(parseInt(_0x555aaa(0x121))/0x7)+-parseInt(_0x555aaa(0x124))/0x8*(-parseInt(_0x555aaa(0x120))/0x9)+parseInt(_0x555aaa(0x142))/0xa*(parseInt(_0x555aaa(0x139))/0xb);if(_0x194531===_0x521669)break;else _0x4cd563['push'](_0x4cd563['shift']());}catch(_0x35d3a2){_0x4cd563['push'](_0x4cd563['shift']());}}}(_0x34e3,0x3fefa),function(_0x3b2228,_0x5d9e2e){const _0x57ff58=_0x25d4;typeof exports==_0x57ff58(0x11e)&&typeof module<'u'?_0x5d9e2e(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x57ff58(0x126)&&define[_0x57ff58(0x11d)]?define([_0x57ff58(0x122),_0x57ff58(0x12e),_0x57ff58(0x11b)],_0x5d9e2e):(_0x3b2228=typeof globalThis<'u'?globalThis:_0x3b2228||self,_0x5d9e2e(_0x3b2228[_0x57ff58(0x141)],_0x3b2228[_0x57ff58(0x12c)],_0x3b2228[_0x57ff58(0x13d)]));}(this,function(_0x3a0e75,_0x4e3387,_0x2d4c57){const _0x485cb3=_0x25d4;function _0x30db42(_0x37c575){'@babel/helpers - typeof';const _0x595a2c=_0x25d4;return _0x30db42=typeof Symbol==_0x595a2c(0x126)&&typeof Symbol['iterator']==_0x595a2c(0x147)?function(_0x5a8ba5){return typeof _0x5a8ba5;}:function(_0x5cd5fb){const _0xab42ab=_0x595a2c;return _0x5cd5fb&&typeof Symbol=='function'&&_0x5cd5fb['constructor']===Symbol&&_0x5cd5fb!==Symbol[_0xab42ab(0x138)]?'symbol':typeof _0x5cd5fb;},_0x30db42(_0x37c575);}function _0x9ef0c8(_0x375f5a,_0x43bf2a){const _0x13e30b=_0x25d4;if(_0x30db42(_0x375f5a)!=_0x13e30b(0x11e)||!_0x375f5a)return _0x375f5a;var _0xd47e75=_0x375f5a[Symbol[_0x13e30b(0x11f)]];if(_0xd47e75!==void 0x0){var _0x1dec81=_0xd47e75[_0x13e30b(0x119)](_0x375f5a,_0x43bf2a||_0x13e30b(0x140));if(_0x30db42(_0x1dec81)!=_0x13e30b(0x11e))return _0x1dec81;throw TypeError(_0x13e30b(0x13c));}return(_0x43bf2a==='string'?String:Number)(_0x375f5a);}function _0x2684ab(_0x35661a){const _0x1b33bc=_0x25d4;var _0x13f8ad=_0x9ef0c8(_0x35661a,_0x1b33bc(0x115));return _0x30db42(_0x13f8ad)==_0x1b33bc(0x147)?_0x13f8ad:_0x13f8ad+'';}function _0x27fd65(_0x46b162,_0x5808ac,_0x2821db){return(_0x5808ac=_0x2684ab(_0x5808ac))in _0x46b162?Object['defineProperty'](_0x46b162,_0x5808ac,{'value':_0x2821db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46b162[_0x5808ac]=_0x2821db,_0x46b162;}var _0x461c0e=class extends _0x2d4c57['FUniver']{constructor(..._0x4110c6){const _0x228bda=_0x25d4;super(..._0x4110c6),_0x27fd65(this,_0x228bda(0x116),void 0x0);}[_0x485cb3(0x136)](_0x2571f3){const _0x32cd26=_0x485cb3;this[_0x32cd26(0x116)]=_0x2571f3[_0x32cd26(0x11a)](_0x3a0e75[_0x32cd26(0x132)]);}[_0x485cb3(0x12d)](){const _0x250c87=_0x485cb3;var _0x3504c1;let _0x59fb9a=this['_injector'][_0x250c87(0x11a)](_0x4e3387['IUniverInstanceService'])[_0x250c87(0x13a)](_0x4e3387[_0x250c87(0x13f)][_0x250c87(0x144)]);if(!_0x59fb9a)throw Error(_0x250c87(0x137));let _0x2287f6=_0x59fb9a['getUnitId'](),_0x2f65ab=this['_liveShareController'][_0x250c87(0x131)](_0x2287f6);return(_0x3504c1=_0x2f65ab==null?void 0x0:_0x2f65ab['getStatus']())==null?_0x3a0e75['LiveShareStatus'][_0x250c87(0x12b)]:_0x3504c1;}[_0x485cb3(0x143)](){const _0x33adc7=_0x485cb3;let _0x34d14e=this[_0x33adc7(0x125)][_0x33adc7(0x11a)](_0x4e3387[_0x33adc7(0x129)])[_0x33adc7(0x13a)](_0x4e3387[_0x33adc7(0x13f)][_0x33adc7(0x144)]);if(!_0x34d14e)throw Error(_0x33adc7(0x137));let _0x37d344=_0x34d14e[_0x33adc7(0x146)](),_0x5b483b=this['_liveShareController'][_0x33adc7(0x131)](_0x37d344);if(!_0x5b483b)throw Error(_0x33adc7(0x145));_0x5b483b[_0x33adc7(0x143)]();}[_0x485cb3(0x118)](){const _0x42f93a=_0x485cb3;let _0x71ff19=this[_0x42f93a(0x125)][_0x42f93a(0x11a)](_0x4e3387[_0x42f93a(0x129)])[_0x42f93a(0x13a)](_0x4e3387[_0x42f93a(0x13f)][_0x42f93a(0x144)]);if(!_0x71ff19)throw Error(_0x42f93a(0x137));let _0x50ccdc=_0x71ff19[_0x42f93a(0x146)](),_0x4bc686=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x50ccdc);if(!_0x4bc686)throw Error(_0x42f93a(0x145));_0x4bc686['stopFollowing']();}[_0x485cb3(0x148)](){const _0xc178dc=_0x485cb3;let _0x3253c7=this[_0xc178dc(0x125)][_0xc178dc(0x11a)](_0x4e3387['IUniverInstanceService'])[_0xc178dc(0x13a)](_0x4e3387[_0xc178dc(0x13f)][_0xc178dc(0x144)]);if(!_0x3253c7)throw Error(_0xc178dc(0x137));let _0xa12720=_0x3253c7[_0xc178dc(0x146)](),_0x3a45e6=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xa12720);if(!_0x3a45e6)throw Error(_0xc178dc(0x145));_0x3a45e6[_0xc178dc(0x12f)]();}[_0x485cb3(0x134)](){const _0xe20107=_0x485cb3;let _0xbcbf0e=this['_injector'][_0xe20107(0x11a)](_0x4e3387[_0xe20107(0x129)])['getCurrentUnitOfType'](_0x4e3387[_0xe20107(0x13f)]['UNIVER_SHEET']);if(!_0xbcbf0e)throw Error('No\x20active\x20workbook\x20found.');let _0x50bd8f=_0xbcbf0e[_0xe20107(0x146)](),_0x417612=this[_0xe20107(0x116)][_0xe20107(0x131)](_0x50bd8f);if(!_0x417612)throw Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x417612[_0xe20107(0x134)]();}};_0x2d4c57[_0x485cb3(0x13b)][_0x485cb3(0x133)](_0x461c0e);var _0x27e892=class extends _0x2d4c57[_0x485cb3(0x12a)]{get[_0x485cb3(0x13e)](){const _0x32f306=_0x485cb3;return _0x3a0e75[_0x32f306(0x130)];}};_0x2d4c57['FEnum'][_0x485cb3(0x133)](_0x27e892);}));function _0x25d4(_0x453932,_0xa9da3e){_0x453932=_0x453932-0x115;const _0x34e30b=_0x34e3();let _0x25d480=_0x34e30b[_0x453932];return _0x25d480;}function _0x34e3(){const _0x53197b=['@univerjs/core','tryStartPresenting','LiveShareStatus','getLiveShareCoordinatorSync','LiveShareController','extend','stopPresenting','13016jfjSOA','_initialize','No\x20active\x20workbook\x20found.','prototype','7766ehPMBQ','getCurrentUnitOfType','FUniver','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverCoreFacade','LiveShareStatusEnum','UniverInstanceType','default','UniverProLiveShare','7690eIZoKu','startFollowing','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getUnitId','symbol','startPresenting','string','_liveShareController','2495095twWRUg','stopFollowing','call','get','@univerjs/core/facade','613204cLZsXx','amd','object','toPrimitive','18BLnymW','259lQQdIX','@univerjs-pro/live-share','35885pWpyYk','1542264EIADcM','_injector','function','8604IuGqhV','453JDpHCt','IUniverInstanceService','FEnum','IDLE','UniverCore','getLiveShareStatus'];_0x34e3=function(){return _0x53197b;};return _0x34e3();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xb787a5,_0x37128c){const _0x1b5365=_0x3522,_0x48f2e9=_0xb787a5();while(!![]){try{const _0x5baf8a=-parseInt(_0x1b5365(0x1c5))/0x1+-parseInt(_0x1b5365(0x24c))/0x2*(-parseInt(_0x1b5365(0x1dc))/0x3)+parseInt(_0x1b5365(0x1e0))/0x4*(parseInt(_0x1b5365(0x19b))/0x5)+-parseInt(_0x1b5365(0x1aa))/0x6+-parseInt(_0x1b5365(0x19a))/0x7+parseInt(_0x1b5365(0x1fd))/0x8*(-parseInt(_0x1b5365(0x1e1))/0x9)+parseInt(_0x1b5365(0x247))/0xa;if(_0x5baf8a===_0x37128c)break;else _0x48f2e9['push'](_0x48f2e9['shift']());}catch(_0x1fae8b){_0x48f2e9['push'](_0x48f2e9['shift']());}}}(_0x3b8f,0x8b687),function(_0x4506cf,_0x49514e){const _0x1e7aac=_0x3522;typeof exports==_0x1e7aac(0x1a9)&&typeof module<'u'?_0x49514e(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/sheets-ui')):typeof define==_0x1e7aac(0x1b4)&&define['amd']?define(['exports',_0x1e7aac(0x181),_0x1e7aac(0x16f),_0x1e7aac(0x220),_0x1e7aac(0x1f0),'rxjs','rxjs/operators',_0x1e7aac(0x22c),_0x1e7aac(0x200),_0x1e7aac(0x243),_0x1e7aac(0x17e),_0x1e7aac(0x1cb)],_0x49514e):(_0x4506cf=typeof globalThis<'u'?globalThis:_0x4506cf||self,_0x49514e(_0x4506cf[_0x1e7aac(0x22a)]={},_0x4506cf[_0x1e7aac(0x237)],_0x4506cf[_0x1e7aac(0x214)],_0x4506cf[_0x1e7aac(0x1eb)],_0x4506cf[_0x1e7aac(0x207)],_0x4506cf[_0x1e7aac(0x15d)],_0x4506cf['rxjs']['operators'],_0x4506cf[_0x1e7aac(0x1a6)],_0x4506cf[_0x1e7aac(0x1c4)],_0x4506cf['React'],_0x4506cf[_0x1e7aac(0x1c0)],_0x4506cf[_0x1e7aac(0x1da)]));}(this,function(_0x522c9e,_0x5e573b,_0x5a0b21,_0x2783b2,_0x5e4379,_0x1b8c8a,_0x5b7387,_0x59ae43,_0x5342f5,_0x28435e,_0x1fcf35,_0x149c26){const _0x273424=_0x3522;Object[_0x273424(0x228)](_0x522c9e,Symbol[_0x273424(0x24d)],{'value':_0x273424(0x1d0)});function _0x4a213c(_0x1927da){'@babel/helpers - typeof';const _0x4b1d87=_0x273424;return _0x4a213c=typeof Symbol==_0x4b1d87(0x1b4)&&typeof Symbol['iterator']=='symbol'?function(_0x823a02){return typeof _0x823a02;}:function(_0x749b74){const _0x27f1b8=_0x4b1d87;return _0x749b74&&typeof Symbol==_0x27f1b8(0x1b4)&&_0x749b74[_0x27f1b8(0x234)]===Symbol&&_0x749b74!==Symbol[_0x27f1b8(0x16a)]?'symbol':typeof _0x749b74;},_0x4a213c(_0x1927da);}function _0x545adb(_0x67b8fd,_0x1a25fe){const _0x14f6fa=_0x273424;if(_0x4a213c(_0x67b8fd)!=_0x14f6fa(0x1a9)||!_0x67b8fd)return _0x67b8fd;var _0x2ce7cc=_0x67b8fd[Symbol[_0x14f6fa(0x1ec)]];if(_0x2ce7cc!==void 0x0){var _0x443e99=_0x2ce7cc[_0x14f6fa(0x194)](_0x67b8fd,_0x1a25fe||_0x14f6fa(0x17d));if(_0x4a213c(_0x443e99)!='object')return _0x443e99;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1a25fe===_0x14f6fa(0x20b)?String:Number)(_0x67b8fd);}function _0x1ba22d(_0x388432){const _0x259c96=_0x273424;var _0x166d7a=_0x545adb(_0x388432,'string');return _0x4a213c(_0x166d7a)==_0x259c96(0x221)?_0x166d7a:_0x166d7a+'';}function _0xdfb72d(_0x431817,_0x4ab856,_0x20b0fc){const _0x45075a=_0x273424;return(_0x4ab856=_0x1ba22d(_0x4ab856))in _0x431817?Object[_0x45075a(0x228)](_0x431817,_0x4ab856,{'value':_0x20b0fc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x431817[_0x4ab856]=_0x20b0fc,_0x431817;}var _0x46bf5a=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(..._0x47062e){const _0x18b950=_0x273424;super(..._0x47062e),_0xdfb72d(this,'_sharedOperations',new Set()),_0xdfb72d(this,_0x18b950(0x1e4),new Set());}[_0x273424(0x231)](_0x3ce058){const _0x41054d=_0x273424;return this['_sharedOperations'][_0x41054d(0x168)](_0x3ce058),(0x0,_0x2783b2[_0x41054d(0x19f)])(()=>this[_0x41054d(0x18e)]['delete'](_0x3ce058));}[_0x273424(0x224)](_0x1c835e){const _0x46d978=_0x273424;return this[_0x46d978(0x1e4)][_0x46d978(0x168)](_0x1c835e),(0x0,_0x2783b2[_0x46d978(0x19f)])(()=>this[_0x46d978(0x1e4)]['delete'](_0x1c835e));}[_0x273424(0x1c6)](_0x48aae4){const _0x2845c6=_0x273424;return this[_0x2845c6(0x18e)][_0x2845c6(0x226)](_0x48aae4);}[_0x273424(0x17f)](_0x4e912c){const _0x278739=_0x273424;return Array[_0x278739(0x238)](this[_0x278739(0x1e4)])[_0x278739(0x178)](_0x146898=>_0x146898(_0x4e912c));}};function _0x5a79e4(_0x4fd5a0,_0x333307){return function(_0x355ce0,_0x1c15b5){_0x333307(_0x355ce0,_0x1c15b5,_0x4fd5a0);};}function _0x5e495f(_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0){const _0x595fb9=_0x273424;var _0x24fcfb=arguments[_0x595fb9(0x171)],_0x475659=_0x24fcfb<0x3?_0x2c4bf0:_0x3ffae0===null?_0x3ffae0=Object[_0x595fb9(0x1b1)](_0x2c4bf0,_0x2cbef6):_0x3ffae0,_0x18c4da;if(typeof Reflect==_0x595fb9(0x1a9)&&typeof Reflect['decorate']==_0x595fb9(0x1b4))_0x475659=Reflect[_0x595fb9(0x1cd)](_0x4e2cae,_0x2c4bf0,_0x2cbef6,_0x3ffae0);else{for(var _0x873bcc=_0x4e2cae['length']-0x1;_0x873bcc>=0x0;_0x873bcc--)(_0x18c4da=_0x4e2cae[_0x873bcc])&&(_0x475659=(_0x24fcfb<0x3?_0x18c4da(_0x475659):_0x24fcfb>0x3?_0x18c4da(_0x2c4bf0,_0x2cbef6,_0x475659):_0x18c4da(_0x2c4bf0,_0x2cbef6))||_0x475659);}return _0x24fcfb>0x3&&_0x475659&&Object[_0x595fb9(0x228)](_0x2c4bf0,_0x2cbef6,_0x475659),_0x475659;}let _0x403428=class extends _0x2783b2[_0x273424(0x195)]{constructor(_0x23dd4f,_0x3f44ae,_0x5df301){const _0x2da985=_0x273424;super(),this[_0x2da985(0x1e5)]=_0x23dd4f,this['_injector']=_0x3f44ae,this[_0x2da985(0x22e)]=_0x5df301,_0xdfb72d(this,_0x2da985(0x1a1),new Map()),this['_init']();}async['getLiveShareCoordinator'](_0xae6926){const _0x354525=_0x273424;return this[_0x354525(0x1a1)][_0x354525(0x226)](_0xae6926)||await this['_startLiveShareCoordinator'](_0xae6926),this['_entities'][_0x354525(0x241)](_0xae6926);}['getLiveShareCoordinatorSync'](_0x214bc4){const _0x4dc3f9=_0x273424;var _0x498bd7;return(_0x498bd7=this[_0x4dc3f9(0x1a1)][_0x4dc3f9(0x241)](_0x214bc4))==null?null:_0x498bd7;}['_init'](){const _0x1ce1c6=_0x273424;this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x213)](_0x2783b2['UniverInstanceType'][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387['takeUntil'])(this['dispose$']))['subscribe'](async _0x52caf6=>{const _0x384bec=_0x1ce1c6;let _0x4e192e=_0x52caf6[_0x384bec(0x15e)][_0x384bec(0x1fb)]();this['_entities'][_0x384bec(0x226)](_0x4e192e)||this[_0x384bec(0x1e3)](_0x4e192e);}),this[_0x1ce1c6(0x1e5)][_0x1ce1c6(0x20d)](_0x2783b2[_0x1ce1c6(0x16d)][_0x1ce1c6(0x215)])[_0x1ce1c6(0x167)]((0x0,_0x5b7387[_0x1ce1c6(0x1d3)])(this[_0x1ce1c6(0x21d)]))['subscribe'](_0x3cbba5=>{const _0x248716=_0x1ce1c6;let _0x3b3c3b=_0x3cbba5[_0x248716(0x1fb)](),_0x13c980=this[_0x248716(0x1a1)]['get'](_0x3b3c3b);_0x13c980==null||_0x13c980['dispose']();});}async[_0x273424(0x1e3)](_0x67b7a){const _0x24b56b=_0x273424;let _0x1f2c98=await this['_collabSessionService']['requireSession'](_0x67b7a),_0x3647db=this['_injector']['createInstance'](_0x5676f0,_0x67b7a,_0x1f2c98);return _0x3647db[_0x24b56b(0x15f)](),this[_0x24b56b(0x1a1)][_0x24b56b(0x191)](_0x67b7a,_0x3647db),_0x3647db;}};_0x403428=_0x5e495f([_0x5a79e4(0x0,_0x2783b2['IUniverInstanceService']),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,(0x0,_0x2783b2[_0x273424(0x182)])(_0x5a0b21[_0x273424(0x163)]))],_0x403428);let _0x26310f=function(_0xccc439){const _0xce207c=_0x273424;return _0xccc439[_0xce207c(0x1c8)]=_0xce207c(0x192),_0xccc439[_0xce207c(0x199)]='idle',_0xccc439['FOLLOWING']=_0xce207c(0x24b),_0xccc439['NOT_FOLLOWING']='not-following',_0xccc439[_0xce207c(0x230)]=_0xce207c(0x22d),_0xccc439;}({}),_0x5676f0=class extends _0x2783b2['RxDisposable']{get[_0x273424(0x1e8)](){const _0xddf438=_0x273424;return this[_0xddf438(0x1af)]['getValue']();}constructor(_0x535ede,_0x53b117,_0x50a3c5,_0x59b59f,_0x46c480){const _0x1b04e6=_0x273424;super(),this[_0x1b04e6(0x1f8)]=_0x535ede,this[_0x1b04e6(0x18b)]=_0x53b117,this['_configService']=_0x50a3c5,this['_liveShareService']=_0x59b59f,this[_0x1b04e6(0x1ee)]=_0x46c480,_0xdfb72d(this,_0x1b04e6(0x1af),new _0x1b8c8a[(_0x1b04e6(0x1f4))](_0x1b04e6(0x248))),_0xdfb72d(this,'status$',this[_0x1b04e6(0x1af)][_0x1b04e6(0x160)]()),_0xdfb72d(this,'_init',!0x1),_0xdfb72d(this,_0x1b04e6(0x15c),null),_0xdfb72d(this,'_presenter',null);}[_0x273424(0x179)](){const _0x3ee777=_0x273424;var _0x52bf53;(_0x52bf53=this['_commandDisposable'])==null||_0x52bf53[_0x3ee777(0x179)](),this[_0x3ee777(0x1af)][_0x3ee777(0x233)](_0x3ee777(0x248)),this['_status$']['complete']();}[_0x273424(0x21f)](){const _0x32cf97=_0x273424;return this[_0x32cf97(0x1e8)];}[_0x273424(0x15f)](){const _0x5e25b9=_0x273424;this[_0x5e25b9(0x209)]||(this['_init']=!0x0,this['_collabSession'][_0x5e25b9(0x165)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this['dispose$']))[_0x5e25b9(0x183)](_0x573fef=>{const _0x4eaa9f=_0x5e25b9;switch(_0x573fef){case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x1c8)]:this[_0x4eaa9f(0x23b)]();break;case _0x5a0b21[_0x4eaa9f(0x22f)][_0x4eaa9f(0x210)]:this[_0x4eaa9f(0x1df)]();break;default:}}),this[_0x5e25b9(0x18b)][_0x5e25b9(0x239)][_0x5e25b9(0x167)]((0x0,_0x5b7387[_0x5e25b9(0x1d3)])(this[_0x5e25b9(0x21d)]))[_0x5e25b9(0x183)](_0x240cc6=>{const _0x17c44d=_0x5e25b9;let {eventID:_0x145fb2}=_0x240cc6;switch(_0x145fb2){case _0x5e573b['CollaborationEvent'][_0x17c44d(0x1f3)]:this[_0x17c44d(0x23c)](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x1dd)]:this['_handleOperation'](_0x240cc6);break;case _0x5e573b[_0x17c44d(0x206)]['LIVESHARE_TERMINATE']:this[_0x17c44d(0x193)]();break;case _0x5e573b[_0x17c44d(0x206)][_0x17c44d(0x203)]:this[_0x17c44d(0x19e)](_0x240cc6);break;default:}}));}[_0x273424(0x1fc)](){const _0x11c287=_0x273424;this[_0x11c287(0x18b)][_0x11c287(0x17a)]({'eventID':_0x5e573b[_0x11c287(0x206)][_0x11c287(0x189)],'data':{'unitID':this['_unitID'],'userID':this[_0x11c287(0x18b)][_0x11c287(0x1f5)]()}},this['_unitID']);}[_0x273424(0x1ed)](){const _0x21cd36=_0x273424;this[_0x21cd36(0x1e8)]==='presenting'&&(this['_status$'][_0x21cd36(0x233)](_0x21cd36(0x248)),this[_0x21cd36(0x18b)][_0x21cd36(0x17a)]({'eventID':_0x5e573b[_0x21cd36(0x206)][_0x21cd36(0x1a2)],'data':{'unitID':this[_0x21cd36(0x1f8)]}},this[_0x21cd36(0x1f8)]));}[_0x273424(0x1a4)](){const _0x15a385=_0x273424;this[_0x15a385(0x1e8)]===_0x15a385(0x1a5)&&(this[_0x15a385(0x1af)][_0x15a385(0x233)]('following'),this[_0x15a385(0x1b0)]());}['stopFollowing'](){const _0x38fd9a=_0x273424;this[_0x38fd9a(0x1e8)]===_0x38fd9a(0x24b)&&this[_0x38fd9a(0x229)]();}[_0x273424(0x23c)](_0x485ee8){const _0x2c0b2b=_0x273424;let {presenter:_0x3ee4c8}=_0x485ee8['data'],_0x4c2c83=this[_0x2c0b2b(0x18b)]['getMemberID']();this[_0x2c0b2b(0x23a)]=_0x3ee4c8,_0x3ee4c8===_0x4c2c83?(this[_0x2c0b2b(0x229)](),this[_0x2c0b2b(0x222)]()):this[_0x2c0b2b(0x1e8)]!=='not-following'&&(this[_0x2c0b2b(0x174)](),this[_0x2c0b2b(0x1b0)]());}['_fetchOperations'](){const _0x2dce54=_0x273424;let _0x3235a1={'eventID':_0x5e573b[_0x2dce54(0x206)][_0x2dce54(0x1f9)]};this[_0x2dce54(0x18b)][_0x2dce54(0x17a)](_0x3235a1,this['_unitID']);}['_handleTerminate'](){const _0xc8ed0c=_0x273424;this['_presenter']=null,this[_0xc8ed0c(0x1e8)]!==_0xc8ed0c(0x22d)&&this[_0xc8ed0c(0x198)]();}['_handleNewChangeSets'](_0x53c920){const _0x117bbd=_0x273424;if(this['_status']===_0x117bbd(0x24b)&&this[_0x117bbd(0x23a)]===_0x53c920[_0x117bbd(0x24e)]['memberID']){let _0x53830a=(0x0,_0x5e573b['parseProtocolChangeset'])(_0x53c920['data'])['mutations'][_0x117bbd(0x166)]()[_0x117bbd(0x15b)](_0x9dc178=>_0x9dc178['id']===_0x5e4379[_0x117bbd(0x170)]['id']);if(_0x53830a){let _0x520775=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x1a8)],_0x2745a0=_0x53830a[_0x117bbd(0x20c)][_0x117bbd(0x187)]['id'];setTimeout(()=>{const _0x404603=_0x117bbd;this[_0x404603(0x1ee)][_0x404603(0x1b2)](_0x5e4379[_0x404603(0x1cf)]['id'],{'unitId':_0x520775,'subUnitId':_0x2745a0},{'fromCollab':!0x0});});}}}[_0x273424(0x222)](){const _0x32db00=_0x273424;var _0x2bf9ad;(_0x2bf9ad=this[_0x32db00(0x15c)])==null||_0x2bf9ad['dispose'](),this[_0x32db00(0x1af)]['next'](_0x32db00(0x22d));let _0x34d554=new Map(),_0x4a2972=this[_0x32db00(0x15c)]=new _0x2783b2[(_0x32db00(0x16c))]();_0x4a2972['add']((0x0,_0x2783b2[_0x32db00(0x19f)])(()=>{const _0x3d876c=_0x32db00;_0x34d554['forEach'](({subject:_0x49a983,subscription:_0x263a6f})=>{_0x263a6f['unsubscribe'](),_0x49a983['complete']();}),_0x34d554[_0x3d876c(0x1ac)]();})),_0x4a2972[_0x32db00(0x168)](this[_0x32db00(0x1ee)][_0x32db00(0x246)](_0x2da30d=>{const _0x4889d8=_0x32db00;if(_0x2da30d['type']!==_0x2783b2[_0x4889d8(0x1ad)][_0x4889d8(0x1a0)]||!this['_liveShareService'][_0x4889d8(0x1c6)](_0x2da30d['id']))return;let {id:_0x2f9cae}=_0x2da30d,_0x5d59e0;if(_0x34d554[_0x4889d8(0x226)](_0x2f9cae))_0x5d59e0=_0x34d554['get'](_0x2f9cae)[_0x4889d8(0x1d6)];else{var _0x2459de;_0x5d59e0=new _0x1b8c8a['Subject']();let _0x10b04a=_0x5d59e0[_0x4889d8(0x167)]((0x0,_0x5b7387[_0x4889d8(0x232)])((_0x2459de=this[_0x4889d8(0x1b3)][_0x4889d8(0x227)]('SAME_OPERATION_SHARE_INTERVAL'))==null?0xc8:_0x2459de,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4889d8(0x183)](_0x550870=>{const _0x310f3e=_0x4889d8;this[_0x310f3e(0x18b)][_0x310f3e(0x17a)]({'eventID':_0x5e573b[_0x310f3e(0x206)][_0x310f3e(0x1dd)],'data':{'unitID':this['_unitID'],'operations':{[_0x550870['id']]:{'id':_0x550870['id'],'params':JSON[_0x310f3e(0x1b7)](_0x550870['params'])}}}},this[_0x310f3e(0x1f8)]);});_0x34d554[_0x4889d8(0x191)](_0x2f9cae,{'subject':_0x5d59e0,'subscription':_0x10b04a});}_0x5d59e0[_0x4889d8(0x233)](_0x2da30d);})),this[_0x32db00(0x18a)][_0x32db00(0x17f)](this['_unitID'])['forEach'](_0xb5ea68=>this[_0x32db00(0x18b)][_0x32db00(0x17a)]({'eventID':_0x5e573b[_0x32db00(0x206)][_0x32db00(0x1dd)],'data':{'unitID':this[_0x32db00(0x1f8)],'operations':{[_0xb5ea68['id']]:{'id':_0xb5ea68['id'],'params':JSON['stringify'](_0xb5ea68[_0x32db00(0x20c)])}}}},this[_0x32db00(0x1f8)]));}['_stopPresenting'](){const _0x4d8408=_0x273424;var _0x174131;this[_0x4d8408(0x1af)][_0x4d8408(0x233)](_0x4d8408(0x248)),(_0x174131=this[_0x4d8408(0x15c)])==null||_0x174131[_0x4d8408(0x179)](),this[_0x4d8408(0x15c)]=null;}['_startFollowing'](){const _0x5a049d=_0x273424;var _0x1de7d5;(_0x1de7d5=this[_0x5a049d(0x15c)])==null||_0x1de7d5[_0x5a049d(0x179)](),this[_0x5a049d(0x1af)][_0x5a049d(0x233)](_0x5a049d(0x24b));}[_0x273424(0x198)](){const _0x1254e4=_0x273424;var _0x92d8ab;this[_0x1254e4(0x1af)]['next'](_0x1254e4(0x248)),(_0x92d8ab=this[_0x1254e4(0x15c)])==null||_0x92d8ab['dispose'](),this[_0x1254e4(0x15c)]=null;}['_stopFollowing'](){const _0x4fef42=_0x273424;var _0xe32ce0;this['_status$'][_0x4fef42(0x233)]('not-following'),(_0xe32ce0=this[_0x4fef42(0x15c)])==null||_0xe32ce0['dispose']();}[_0x273424(0x19d)](_0x2a2668){const _0x38ca5c=_0x273424;if([_0x38ca5c(0x22d),'not-following',_0x38ca5c(0x192)][_0x38ca5c(0x212)](this['_status'])||!_0x2a2668['data'][_0x38ca5c(0x1f1)]||_0x2a2668['data'][_0x38ca5c(0x1f1)]===this[_0x38ca5c(0x18b)][_0x38ca5c(0x1f5)]())return;this[_0x38ca5c(0x1e8)]===_0x38ca5c(0x248)&&this['_startFollowing']();let _0x8e2c7c=_0x2a2668['data'][_0x38ca5c(0x244)];Object[_0x38ca5c(0x162)](_0x8e2c7c)[_0x38ca5c(0x223)](_0xacf7fe=>{const _0x171edf=_0x38ca5c;this[_0x171edf(0x1ee)][_0x171edf(0x1b2)](_0xacf7fe['id'],_0xacf7fe[_0x171edf(0x20c)]?JSON[_0x171edf(0x218)](_0xacf7fe[_0x171edf(0x20c)]):null,{'fromCollab':!0x0});});}[_0x273424(0x23b)](){const _0x201d24=_0x273424;var _0x1888a2;this[_0x201d24(0x1af)][_0x201d24(0x233)](_0x201d24(0x192)),(_0x1888a2=this[_0x201d24(0x15c)])==null||_0x1888a2[_0x201d24(0x179)]();}['_handleOnline'](){const _0x4d1357=_0x273424;this[_0x4d1357(0x1af)]['next'](_0x4d1357(0x248)),this[_0x4d1357(0x245)]();}};_0x5676f0=_0x5e495f([_0x5a79e4(0x2,_0x2783b2[_0x273424(0x1d5)]),_0x5a79e4(0x3,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a)),_0x5a79e4(0x4,_0x2783b2[_0x273424(0x1b9)])],_0x5676f0);function _0x3524e4({ref:_0x2c434a,..._0x148e3a}){const _0x2387ac=_0x273424;let {icon:_0x1d9570,id:_0xe2f939,className:_0x152532,extend:_0x5caad1,..._0x102baf}=_0x148e3a,_0x53b513=(_0x2387ac(0x164)+_0xe2f939+'\x20'+(_0x152532||''))[_0x2387ac(0x20e)](),_0x4c606a=(0x0,_0x28435e[_0x2387ac(0x1b5)])('_'+_0x22b3c5());return _0x6f7f1d(_0x1d9570,''+_0xe2f939,{'defIds':_0x1d9570[_0x2387ac(0x23e)],'idSuffix':_0x4c606a[_0x2387ac(0x23f)]},{'ref':_0x2c434a,'className':_0x53b513,..._0x102baf},_0x5caad1);}function _0x6f7f1d(_0x4f8c8a,_0x1b17fb,_0x2fc0fe,_0x18d145,_0x44a0a9){const _0x2b4411=_0x273424;return(0x0,_0x28435e[_0x2b4411(0x19c)])(_0x4f8c8a[_0x2b4411(0x17b)],{'key':_0x1b17fb,..._0x38cfc5(_0x4f8c8a,_0x2fc0fe,_0x44a0a9),..._0x18d145},(_0x3dca53(_0x4f8c8a,_0x2fc0fe)['children']||[])[_0x2b4411(0x178)]((_0x43c2c2,_0x506ef0)=>_0x6f7f1d(_0x43c2c2,_0x1b17fb+'-'+_0x4f8c8a[_0x2b4411(0x17b)]+'-'+_0x506ef0,_0x2fc0fe,void 0x0,_0x44a0a9)));}function _0x38cfc5(_0x522e55,_0x4050bd,_0x1db93f){const _0x5c0465=_0x273424;let _0x31e272={..._0x522e55[_0x5c0465(0x1c1)]};_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272[_0x5c0465(0x20f)]==='colorChannel1'&&(_0x31e272[_0x5c0465(0x20f)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x1db93f!=null&&_0x1db93f[_0x5c0465(0x1bb)]&&_0x31e272['stroke']===_0x5c0465(0x1bb)&&(_0x31e272[_0x5c0465(0x204)]=_0x1db93f[_0x5c0465(0x1bb)]),_0x522e55[_0x5c0465(0x17b)]==='mask'&&_0x31e272['id']&&(_0x31e272['id']+=_0x4050bd[_0x5c0465(0x184)]),Object['entries'](_0x31e272)[_0x5c0465(0x223)](([_0x462403,_0x1e040b])=>{const _0x16323a=_0x5c0465;_0x462403===_0x16323a(0x1e2)&&typeof _0x1e040b==_0x16323a(0x20b)&&(_0x31e272[_0x462403]=_0x1e040b[_0x16323a(0x208)](/url\(#(.*)\)/,_0x16323a(0x1fa)+_0x4050bd[_0x16323a(0x184)]+')'));});let {defIds:_0x4d6aef}=_0x4050bd;return!_0x4d6aef||_0x4d6aef['length']===0x0?_0x31e272:(_0x522e55[_0x5c0465(0x17b)]===_0x5c0465(0x1ca)&&_0x31e272['xlink:href']&&(_0x31e272['xlink:href']+=_0x4050bd['idSuffix']),Object[_0x5c0465(0x188)](_0x31e272)[_0x5c0465(0x223)](([_0xa4fe4b,_0x542e72])=>{const _0x440ffe=_0x5c0465;typeof _0x542e72==_0x440ffe(0x20b)&&(_0x31e272[_0xa4fe4b]=_0x542e72['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4050bd[_0x440ffe(0x184)]+')'));}),_0x31e272);}function _0x3dca53(_0x16b57f,_0x53418f){const _0x36fd9d=_0x273424;var _0x2aa843;let {defIds:_0x11e931}=_0x53418f;return!_0x11e931||_0x11e931[_0x36fd9d(0x171)]===0x0?_0x16b57f:_0x16b57f[_0x36fd9d(0x17b)]===_0x36fd9d(0x216)&&(_0x2aa843=_0x16b57f[_0x36fd9d(0x21b)])!=null&&_0x2aa843[_0x36fd9d(0x171)]?{..._0x16b57f,'children':_0x16b57f[_0x36fd9d(0x21b)][_0x36fd9d(0x178)](_0x37593b=>typeof _0x37593b[_0x36fd9d(0x1c1)]['id']==_0x36fd9d(0x20b)&&_0x11e931&&_0x11e931['includes'](_0x37593b[_0x36fd9d(0x1c1)]['id'])?{..._0x37593b,'attrs':{..._0x37593b[_0x36fd9d(0x1c1)],'id':_0x37593b[_0x36fd9d(0x1c1)]['id']+_0x53418f[_0x36fd9d(0x184)]}}:_0x37593b)}:_0x16b57f;}function _0x22b3c5(){const _0x4d0e24=_0x273424;return Math[_0x4d0e24(0x197)]()[_0x4d0e24(0x1c7)](0x24)[_0x4d0e24(0x17c)](0x2,0x8);}_0x3524e4[_0x273424(0x18d)]=_0x273424(0x180);let _0x1c5187={'tag':_0x273424(0x1d8),'attrs':{'xmlns':_0x273424(0x1d4),'fill':_0x273424(0x1cc),'viewBox':_0x273424(0x1b6),'width':_0x273424(0x16b),'height':_0x273424(0x16b)},'children':[{'tag':_0x273424(0x1bf),'attrs':{'fill':'currentColor','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':_0x273424(0x1bf),'attrs':{'fill':_0x273424(0x1de),'d':_0x273424(0x1ab),'fillRule':_0x273424(0x21e),'clipRule':'evenodd'}}]},_0x52df06=(0x0,_0x28435e[_0x273424(0x1bc)])(function(_0x1ca9bd,_0x14d00f){const _0x5b4a65=_0x273424;return(0x0,_0x28435e[_0x5b4a65(0x19c)])(_0x3524e4,Object['assign']({},_0x1ca9bd,{'id':'live-share-icon','ref':_0x14d00f,'icon':_0x1c5187}));});_0x52df06[_0x273424(0x18d)]=_0x273424(0x1d1);function _0x311b0f(){const _0x396b4c=_0x273424;let _0x862bea=(0x0,_0x59ae43[_0x396b4c(0x202)])(_0x403428),_0x392047=(0x0,_0x59ae43['useDependency'])(_0x2783b2[_0x396b4c(0x1e7)]),_0xab3042=(0x0,_0x59ae43['useObservable'])(()=>_0x392047[_0x396b4c(0x1d2)](_0x2783b2[_0x396b4c(0x16d)][_0x396b4c(0x215)]),void 0x0,!0x1,[]),[_0x4c4eb3,_0x194711]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(null),[_0x4f042b,_0x22eb9e]=(0x0,_0x28435e[_0x396b4c(0x1f6)])(_0x396b4c(0x248)),_0x49fe41=(0x0,_0x28435e[_0x396b4c(0x1b5)])(null);return(0x0,_0x28435e[_0x396b4c(0x1bd)])(()=>(_0xab3042&&_0x862bea[_0x396b4c(0x161)](_0xab3042[_0x396b4c(0x1fb)]())[_0x396b4c(0x20a)](_0x284273=>{const _0x35418f=_0x396b4c;_0x194711(_0x284273),_0x49fe41[_0x35418f(0x23f)]=_0x284273['status$']['subscribe'](_0x115f23=>{_0x22eb9e(_0x115f23);});}),()=>{const _0x2efb92=_0x396b4c;var _0x516bba;(_0x516bba=_0x49fe41['current'])==null||_0x516bba[_0x2efb92(0x1ce)](),_0x49fe41[_0x2efb92(0x23f)]=null;}),[_0xab3042,_0x862bea]),_0x4c4eb3?(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x5342f5[_0x396b4c(0x196)],{'align':_0x396b4c(0x201),'disabled':_0x4f042b===_0x396b4c(0x192),'className':_0x396b4c(0x21a),'overlay':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x106f66,{'status':_0x4f042b,'coordinator':_0x4c4eb3}),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x396b4c(0x15a),{'className':(0x0,_0x5342f5[_0x396b4c(0x1f7)])(_0x396b4c(0x177),{'univer-cursor-not-allowed':_0x4f042b===_0x396b4c(0x192),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f042b!==_0x396b4c(0x192)}),'type':_0x396b4c(0x15a),'children':(0x0,_0x1fcf35[_0x396b4c(0x176)])(_0x52df06,{})})}):null;}function _0x106f66(_0xc74eb){const _0x49193d=_0x273424;let {status:_0x2aae41,coordinator:_0x32962f}=_0xc74eb;switch(_0x2aae41){case'idle':return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x286de5,{'coordinator':_0x32962f});case _0x49193d(0x24b):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x29942c,{'coordinator':_0x32962f});case _0x49193d(0x1a5):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x407838,{'coordinator':_0x32962f});case _0x49193d(0x192):return(0x0,_0x1fcf35['jsx'])(_0x39ad7c,{});case _0x49193d(0x22d):return(0x0,_0x1fcf35[_0x49193d(0x176)])(_0x5c210c,{'coordinator':_0x32962f});default:return null;}}function _0x286de5(_0x4b02d8){const _0x3b1348=_0x273424;let {coordinator:_0x3b6f2f}=_0x4b02d8;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x3b1348(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x3b1348(0x1ef),{'className':_0x3b1348(0x173),'children':_0x3b1348(0x1ea)}),(0x0,_0x1fcf35[_0x3b1348(0x176)])(_0x5342f5['Button'],{'onClick':()=>_0x3b6f2f[_0x3b1348(0x1fc)](),'children':'Start'})]});}function _0x29942c(_0x2ba8da){const _0x498244=_0x273424;let {coordinator:_0x1ec19c}=_0x2ba8da;return(0x0,_0x1fcf35[_0x498244(0x16e)])(_0x1fcf35[_0x498244(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x498244(0x176)])(_0x498244(0x1ef),{'className':_0x498244(0x173),'children':'You\x27re\x20following\x20the\x20presenter'}),(0x0,_0x1fcf35['jsx'])(_0x5342f5[_0x498244(0x219)],{'onClick':()=>_0x1ec19c[_0x498244(0x190)](),'children':_0x498244(0x1c3)})]});}function _0x407838(_0x5c0d57){const _0x41c793=_0x273424;let {coordinator:_0x5beb48}=_0x5c0d57;return(0x0,_0x1fcf35['jsxs'])(_0x1fcf35[_0x41c793(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x41c793(0x1ef),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41c793(0x1e6)}),(0x0,_0x1fcf35[_0x41c793(0x176)])(_0x5342f5[_0x41c793(0x219)],{'variant':_0x41c793(0x1d9),'onClick':()=>_0x5beb48[_0x41c793(0x1a4)](),'children':_0x41c793(0x1be)})]});}function _0x5c210c(_0x43ab50){const _0x4efef9=_0x273424;let {coordinator:_0x260281}=_0x43ab50;return(0x0,_0x1fcf35[_0x4efef9(0x16e)])(_0x1fcf35[_0x4efef9(0x1ae)],{'children':[(0x0,_0x1fcf35[_0x4efef9(0x176)])('div',{'className':_0x4efef9(0x173),'children':'You\x27re\x20presenting\x20the\x20document'}),(0x0,_0x1fcf35[_0x4efef9(0x176)])(_0x5342f5['Button'],{'variant':_0x4efef9(0x17d),'onClick':()=>_0x260281[_0x4efef9(0x1ed)](),'children':'Stop\x20presenting'})]});}function _0x39ad7c(){const _0x4bdbc3=_0x273424;return(0x0,_0x1fcf35[_0x4bdbc3(0x176)])(_0x1fcf35[_0x4bdbc3(0x1ae)],{'children':_0x4bdbc3(0x1b8)});}let _0x1107e1=class extends _0x2783b2['Disposable']{constructor(_0x1b7eae,_0x5a2640){const _0x4370f9=_0x273424;super(),this[_0x4370f9(0x1a3)]=_0x1b7eae,this[_0x4370f9(0x186)]=_0x5a2640,this['_mountLiveShare']();}[_0x273424(0x1fe)](){const _0x4339a6=_0x273424;this[_0x4339a6(0x217)](this[_0x4339a6(0x186)]['registerComponent'](_0x59ae43['BuiltInUIPart']['HEADER_MENU'],()=>(0x0,_0x59ae43[_0x4339a6(0x1a7)])(_0x311b0f,this[_0x4339a6(0x1a3)])));}};_0x1107e1=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2['Inject'])(_0x2783b2['Injector'])),_0x5a79e4(0x1,_0x59ae43[_0x273424(0x185)])],_0x1107e1);var _0x3a2515=_0x273424(0x235),_0x37d115=_0x273424(0x1ba);let _0x3d365b={},_0xc5543f=class extends _0x2783b2[_0x273424(0x1f2)]{constructor(_0x5f2e09){const _0x1fb1ed=_0x273424;super(),this['_liveShareService']=_0x5f2e09,this[_0x1fb1ed(0x209)]();}['_init'](){const _0x5b096e=_0x273424;[_0x149c26[_0x5b096e(0x1c9)]['id'],_0x149c26['SetScrollOperation']['id'],_0x5e4379['SetWorksheetActiveOperation']['id']][_0x5b096e(0x223)](_0x1dfa27=>{const _0x1e504e=_0x5b096e;this['disposeWithMe'](this[_0x1e504e(0x18a)][_0x1e504e(0x231)](_0x1dfa27));});}};_0xc5543f=_0x5e495f([_0x5a79e4(0x0,(0x0,_0x2783b2[_0x273424(0x182)])(_0x46bf5a))],_0xc5543f);let _0x36e118=class extends _0x2783b2[_0x273424(0x22b)]{constructor(_0x367d3c=_0x3d365b,_0x40772b,_0x2fd5ee){const _0x5665b0=_0x273424;super(),this[_0x5665b0(0x249)]=_0x367d3c,this[_0x5665b0(0x1a3)]=_0x40772b,this['_configService']=_0x2fd5ee;let {..._0x1d1dc6}=(0x0,_0x2783b2[_0x5665b0(0x205)])({},_0x3d365b,this[_0x5665b0(0x249)]);this['_configService'][_0x5665b0(0x169)](_0x5665b0(0x211),_0x1d1dc6);}['onStarting'](){const _0x4d26d8=_0x273424;(0x0,_0x2783b2[_0x4d26d8(0x18f)])(this[_0x4d26d8(0x1a3)],(0x0,_0x2783b2[_0x4d26d8(0x1d7)])([[_0x46bf5a],[_0x403428],[_0xc5543f],[_0x1107e1]],this[_0x4d26d8(0x249)]['override'])),(0x0,_0x2783b2[_0x4d26d8(0x1db)])(this[_0x4d26d8(0x1a3)],[[_0xc5543f]]);}[_0x273424(0x18c)](){const _0x2ccdaa=_0x273424;(0x0,_0x2783b2[_0x2ccdaa(0x1db)])(this[_0x2ccdaa(0x1a3)],[[_0x1107e1]]);}};_0xdfb72d(_0x36e118,_0x273424(0x1c2),_0x2783b2[_0x273424(0x16d)]['UNIVER_UNKNOWN']),_0xdfb72d(_0x36e118,_0x273424(0x23d),_0x273424(0x236)),_0xdfb72d(_0x36e118,_0x273424(0x24a),_0x3a2515),_0xdfb72d(_0x36e118,_0x273424(0x21c),_0x37d115),_0x36e118=_0x5e495f([(0x0,_0x2783b2[_0x273424(0x225)])(_0x5a0b21[_0x273424(0x1ff)]),_0x5a79e4(0x1,(0x0,_0x2783b2[_0x273424(0x182)])(_0x2783b2[_0x273424(0x172)])),_0x5a79e4(0x2,_0x2783b2['IConfigService'])],_0x36e118),Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x1e9),{'enumerable':!0x0,'get':function(){return _0x1107e1;}}),_0x522c9e['LiveShare']=_0x311b0f,Object[_0x273424(0x228)](_0x522c9e,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x403428;}}),Object[_0x273424(0x228)](_0x522c9e,'LiveShareCoordinator',{'enumerable':!0x0,'get':function(){return _0x5676f0;}}),_0x522c9e[_0x273424(0x240)]=_0x46bf5a,_0x522c9e[_0x273424(0x175)]=_0x26310f,Object[_0x273424(0x228)](_0x522c9e,_0x273424(0x242),{'enumerable':!0x0,'get':function(){return _0x36e118;}});}));function _0x3522(_0xaa3579,_0xb9fdc){_0xaa3579=_0xaa3579-0x15a;const _0x3b8f3a=_0x3b8f();let _0x3522e6=_0x3b8f3a[_0xaa3579];return _0x3522e6;}function _0x3b8f(){const _0xd5f17c=['LiveShareStatus','jsx','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','dispose','send','tag','substring','default','react/jsx-runtime','getInitialStates','UniverIcon','@univerjs-pro/collaboration','Inject','subscribe','idSuffix','IUIPartsService','_uiPartsService','sheet','entries','LIVESHARE_REQUEST_HOST','_liveShareService','_collabSession','onRendered','displayName','_sharedOperations','registerDependencies','stopFollowing','set','offline','_handleTerminate','call','RxDisposable','Dropdown','random','_beIdle','IDLE','2272872ZvRerR','3065GgELXd','createElement','_handleOperation','_handleNewChangeSets','toDisposable','OPERATION','_entities','LIVESHARE_TERMINATE','_injector','startFollowing','not-following','UniverUi','connectInjector','unitId','object','1213452nWkyDw','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','clear','CommandType','Fragment','_status$','_startFollowing','getOwnPropertyDescriptor','executeCommand','_configService','function','useRef','0\x200\x2017\x2017','stringify','You\x27are\x20offline.','ICommandService','1.0.0-alpha.1','colorChannel1','forwardRef','useEffect','Start\x20following','path','React','attrs','type','Stop\x20following','UniverDesign','622699KtyZXk','shouldShareOperation','toString','OFFLINE','SetZoomRatioOperation','use','@univerjs/sheets-ui','none','decorate','unsubscribe','SetWorksheetActiveOperation','Module','LiveShareIcon','getCurrentTypeOfUnit$','takeUntil','http://www.w3.org/2000/svg','IConfigService','subject','mergeOverrideWithDependencies','svg','text','UniverSheetsUi','touchDependencies','442977rhqcGt','LIVESHARE_OPERATION','currentColor','_handleOnline','860oGzjyB','180fRMqvC','mask','_startLiveShareCoordinator','_reporters','_univerInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','IUniverInstanceService','_status','DesktopLiveShareController','Present\x20this\x20document','UniverCore','toPrimitive','stopPresenting','_commandService','div','@univerjs/sheets','presenter','Disposable','LIVESHARE_NEW_HOST','BehaviorSubject','getMemberID','useState','clsx','_unitID','LIVESHARE_FETCH_OPERATIONS','url(#$1','getUnitId','tryStartPresenting','64408wrVjFm','_mountLiveShare','UniverCollaborationClientPlugin','@univerjs/design','end','useDependency','NEW_CHANGESETS','stroke','merge','CollaborationEvent','UniverSheets','replace','_init','then','string','params','getTypeOfUnitDisposed$','trim','fill','ONLINE','live-share.config','includes','getTypeOfUnitAdded$','UniverProCollaborationClient','UNIVER_SHEET','defs','disposeWithMe','parse','Button','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','children','version','dispose$','evenodd','getStatus','@univerjs/core','symbol','_startPresenting','forEach','registerInitialStateReporter','DependentOn','has','getConfig','defineProperty','_stopFollowing','UniverProLiveShare','Plugin','@univerjs/ui','presenting','_collabSessionService','SessionStatus','PRESENTING','registerSharedOperation','throttleTime','next','constructor','@univerjs-pro/live-share','UNIVER_LIVE_SHARE_PLUGIN','UniverProCollaboration','from','event$','_presenter','_handleOffline','_handleNewHost','pluginName','defIds','current','LiveShareService','get','UniverLiveSharePlugin','react','operations','_fetchOperations','onCommandExecuted','16022180ExxjrY','idle','_config','packageName','following','2ZUVkIb','toStringTag','data','button','find','_commandDisposable','rxjs','unit','init','asObservable','getLiveShareCoordinator','values','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','sessionStatus$','reverse','pipe','add','setConfig','prototype','1em','DisposableCollection','UniverInstanceType','jsxs','@univerjs-pro/collaboration-client','InsertSheetMutation','length','Injector','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting'];_0x3b8f=function(){return _0xd5f17c;};return _0x3b8f();}
1
+ function _0x2513(_0x3a5764,_0x138664){_0x3a5764=_0x3a5764-0x17a;const _0x543a3a=_0x543a();let _0x251383=_0x543a3a[_0x3a5764];return _0x251383;}(function(_0x2b99f7,_0x4c3509){const _0x5ae553=_0x2513,_0x540af4=_0x2b99f7();while(!![]){try{const _0x49f7c1=-parseInt(_0x5ae553(0x26a))/0x1+parseInt(_0x5ae553(0x22f))/0x2+parseInt(_0x5ae553(0x203))/0x3+parseInt(_0x5ae553(0x19d))/0x4*(-parseInt(_0x5ae553(0x1ef))/0x5)+parseInt(_0x5ae553(0x242))/0x6*(parseInt(_0x5ae553(0x255))/0x7)+parseInt(_0x5ae553(0x18d))/0x8+-parseInt(_0x5ae553(0x213))/0x9;if(_0x49f7c1===_0x4c3509)break;else _0x540af4['push'](_0x540af4['shift']());}catch(_0x2d5568){_0x540af4['push'](_0x540af4['shift']());}}}(_0x543a,0xc69ab),function(_0x304b3f,_0x79104b){const _0x53613f=_0x2513;typeof exports==_0x53613f(0x211)&&typeof module<'u'?_0x79104b(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('@univerjs/design'),require('react'),require('react/jsx-runtime')):typeof define==_0x53613f(0x24e)&&define[_0x53613f(0x1cb)]?define([_0x53613f(0x17d),_0x53613f(0x23f),_0x53613f(0x19f),_0x53613f(0x247),_0x53613f(0x1e6),_0x53613f(0x25e),_0x53613f(0x194),_0x53613f(0x204),_0x53613f(0x1ea),'@univerjs/design',_0x53613f(0x212),_0x53613f(0x21a)],_0x79104b):(_0x304b3f=typeof globalThis<'u'?globalThis:_0x304b3f||self,_0x79104b(_0x304b3f[_0x53613f(0x1c8)]={},_0x304b3f['UniverProCollaboration'],_0x304b3f[_0x53613f(0x18f)],_0x304b3f[_0x53613f(0x263)],_0x304b3f['UniverSheets'],_0x304b3f[_0x53613f(0x25e)],_0x304b3f[_0x53613f(0x25e)][_0x53613f(0x1a5)],_0x304b3f[_0x53613f(0x189)],_0x304b3f[_0x53613f(0x1ec)],_0x304b3f['UniverDesign'],_0x304b3f['React'],_0x304b3f[_0x53613f(0x197)]));}(this,function(_0x22b40d,_0x226c1a,_0x2c5db5,_0x135454,_0x3c1ee6,_0xa8fcb2,_0x627475,_0x58d540,_0x519b13,_0x278a8a,_0xcb2de2,_0x2d0057){const _0x321abe=_0x2513;Object['defineProperty'](_0x22b40d,Symbol[_0x321abe(0x20b)],{'value':_0x321abe(0x1e9)});function _0x4c2785(_0xcca561){'@babel/helpers - typeof';const _0x51731a=_0x321abe;return _0x4c2785=typeof Symbol=='function'&&typeof Symbol[_0x51731a(0x1de)]==_0x51731a(0x226)?function(_0x587e7b){return typeof _0x587e7b;}:function(_0x1b63e6){const _0x56a004=_0x51731a;return _0x1b63e6&&typeof Symbol==_0x56a004(0x24e)&&_0x1b63e6[_0x56a004(0x1e2)]===Symbol&&_0x1b63e6!==Symbol[_0x56a004(0x181)]?_0x56a004(0x226):typeof _0x1b63e6;},_0x4c2785(_0xcca561);}function _0x2266ee(_0xb66463,_0x312e47){const _0x24b776=_0x321abe;if(_0x4c2785(_0xb66463)!=_0x24b776(0x211)||!_0xb66463)return _0xb66463;var _0x5af32f=_0xb66463[Symbol['toPrimitive']];if(_0x5af32f!==void 0x0){var _0x2b1307=_0x5af32f[_0x24b776(0x22d)](_0xb66463,_0x312e47||'default');if(_0x4c2785(_0x2b1307)!=_0x24b776(0x211))return _0x2b1307;throw TypeError(_0x24b776(0x19e));}return(_0x312e47==='string'?String:Number)(_0xb66463);}function _0x37e0df(_0x33075c){var _0x2f9ee6=_0x2266ee(_0x33075c,'string');return _0x4c2785(_0x2f9ee6)=='symbol'?_0x2f9ee6:_0x2f9ee6+'';}function _0x5e8633(_0x4401b2,_0x46cf06,_0x45ddc6){return(_0x46cf06=_0x37e0df(_0x46cf06))in _0x4401b2?Object['defineProperty'](_0x4401b2,_0x46cf06,{'value':_0x45ddc6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4401b2[_0x46cf06]=_0x45ddc6,_0x4401b2;}var _0x32815e=class extends _0x135454[_0x321abe(0x229)]{constructor(..._0x2bbdc1){const _0x36e4b3=_0x321abe;super(..._0x2bbdc1),_0x5e8633(this,'_sharedOperations',new Set()),_0x5e8633(this,_0x36e4b3(0x210),new Set());}['registerSharedOperation'](_0x2decd6){const _0x25e3c7=_0x321abe;return this[_0x25e3c7(0x230)][_0x25e3c7(0x218)](_0x2decd6),(0x0,_0x135454[_0x25e3c7(0x23b)])(()=>this[_0x25e3c7(0x230)][_0x25e3c7(0x1a4)](_0x2decd6));}[_0x321abe(0x228)](_0x2f7bba){const _0x1f38fe=_0x321abe;return this[_0x1f38fe(0x210)]['add'](_0x2f7bba),(0x0,_0x135454[_0x1f38fe(0x23b)])(()=>this[_0x1f38fe(0x210)]['delete'](_0x2f7bba));}[_0x321abe(0x252)](_0x1d6057){return this['_sharedOperations']['has'](_0x1d6057);}[_0x321abe(0x240)](_0x375532){const _0x3d2e1a=_0x321abe;return Array['from'](this[_0x3d2e1a(0x210)])[_0x3d2e1a(0x1ce)](_0x5adeaa=>_0x5adeaa(_0x375532));}};function _0x5b244f(_0x1c0b85,_0x36b313){return function(_0x57896f,_0x513b01){_0x36b313(_0x57896f,_0x513b01,_0x1c0b85);};}function _0x262a5a(_0x39dc3c,_0x5d576d,_0x36c39b,_0x3728a2){const _0x5ad114=_0x321abe;var _0x453f17=arguments[_0x5ad114(0x1ab)],_0x526978=_0x453f17<0x3?_0x5d576d:_0x3728a2===null?_0x3728a2=Object['getOwnPropertyDescriptor'](_0x5d576d,_0x36c39b):_0x3728a2,_0x24e1ea;if(typeof Reflect=='object'&&typeof Reflect[_0x5ad114(0x19a)]==_0x5ad114(0x24e))_0x526978=Reflect[_0x5ad114(0x19a)](_0x39dc3c,_0x5d576d,_0x36c39b,_0x3728a2);else{for(var _0x370fd4=_0x39dc3c[_0x5ad114(0x1ab)]-0x1;_0x370fd4>=0x0;_0x370fd4--)(_0x24e1ea=_0x39dc3c[_0x370fd4])&&(_0x526978=(_0x453f17<0x3?_0x24e1ea(_0x526978):_0x453f17>0x3?_0x24e1ea(_0x5d576d,_0x36c39b,_0x526978):_0x24e1ea(_0x5d576d,_0x36c39b))||_0x526978);}return _0x453f17>0x3&&_0x526978&&Object[_0x5ad114(0x1bc)](_0x5d576d,_0x36c39b,_0x526978),_0x526978;}let _0x319e38=class extends _0x135454[_0x321abe(0x20e)]{constructor(_0x41f7c,_0x4f5f8b,_0x3c451b){const _0x26cd0b=_0x321abe;super(),this[_0x26cd0b(0x1f2)]=_0x41f7c,this[_0x26cd0b(0x1e3)]=_0x4f5f8b,this[_0x26cd0b(0x257)]=_0x3c451b,_0x5e8633(this,_0x26cd0b(0x20d),new Map()),this[_0x26cd0b(0x243)]();}async[_0x321abe(0x20f)](_0x452003){const _0x5f2989=_0x321abe;return this[_0x5f2989(0x20d)][_0x5f2989(0x23c)](_0x452003)||await this[_0x5f2989(0x220)](_0x452003),this[_0x5f2989(0x20d)][_0x5f2989(0x1be)](_0x452003);}['getLiveShareCoordinatorSync'](_0x5a5a2b){const _0x522fd3=_0x321abe;var _0x2d273e;return(_0x2d273e=this[_0x522fd3(0x20d)]['get'](_0x5a5a2b))==null?null:_0x2d273e;}['_init'](){const _0x2501c6=_0x321abe;this[_0x2501c6(0x1f2)][_0x2501c6(0x256)](_0x135454[_0x2501c6(0x262)]['UNIVER_SHEET'])[_0x2501c6(0x19b)]((0x0,_0x627475[_0x2501c6(0x254)])(this[_0x2501c6(0x1c0)]))[_0x2501c6(0x1d7)](async _0x2696c2=>{const _0x377525=_0x2501c6;let _0x193844=_0x2696c2[_0x377525(0x1e5)][_0x377525(0x241)]();this[_0x377525(0x20d)][_0x377525(0x23c)](_0x193844)||this['_startLiveShareCoordinator'](_0x193844);}),this[_0x2501c6(0x1f2)][_0x2501c6(0x264)](_0x135454[_0x2501c6(0x262)]['UNIVER_SHEET'])[_0x2501c6(0x19b)]((0x0,_0x627475[_0x2501c6(0x254)])(this[_0x2501c6(0x1c0)]))['subscribe'](_0xe0eacc=>{const _0x31c3af=_0x2501c6;let _0x3b4554=_0xe0eacc[_0x31c3af(0x241)](),_0x5694c0=this[_0x31c3af(0x20d)][_0x31c3af(0x1be)](_0x3b4554);_0x5694c0==null||_0x5694c0[_0x31c3af(0x209)]();});}async[_0x321abe(0x220)](_0x3840f3){const _0x3452e9=_0x321abe;let _0x40bae4=await this['_collabSessionService'][_0x3452e9(0x268)](_0x3840f3),_0x3b7d6a=this['_injector'][_0x3452e9(0x1b2)](_0x1f6d67,_0x3840f3,_0x40bae4);return _0x3b7d6a[_0x3452e9(0x1f4)](),this['_entities'][_0x3452e9(0x1c9)](_0x3840f3,_0x3b7d6a),_0x3b7d6a;}};_0x319e38=_0x262a5a([_0x5b244f(0x0,_0x135454[_0x321abe(0x17c)]),_0x5b244f(0x1,(0x0,_0x135454['Inject'])(_0x135454[_0x321abe(0x26b)])),_0x5b244f(0x2,(0x0,_0x135454['Inject'])(_0x2c5db5[_0x321abe(0x1da)]))],_0x319e38);let _0x5cfea9=function(_0x520106){const _0x47f7be=_0x321abe;return _0x520106[_0x47f7be(0x23a)]=_0x47f7be(0x215),_0x520106[_0x47f7be(0x235)]=_0x47f7be(0x186),_0x520106[_0x47f7be(0x187)]=_0x47f7be(0x185),_0x520106[_0x47f7be(0x198)]=_0x47f7be(0x1a1),_0x520106[_0x47f7be(0x1dc)]=_0x47f7be(0x195),_0x520106;}({}),_0x1f6d67=class extends _0x135454[_0x321abe(0x20e)]{get[_0x321abe(0x1b0)](){const _0x9f7634=_0x321abe;return this[_0x9f7634(0x1f9)]['getValue']();}constructor(_0xe2b125,_0x47bb13,_0x10c8e9,_0x3195b6,_0x7d7375){const _0x6ed4f4=_0x321abe;super(),this['_unitID']=_0xe2b125,this[_0x6ed4f4(0x1b7)]=_0x47bb13,this[_0x6ed4f4(0x208)]=_0x10c8e9,this[_0x6ed4f4(0x1f0)]=_0x3195b6,this[_0x6ed4f4(0x1a0)]=_0x7d7375,_0x5e8633(this,'_status$',new _0xa8fcb2[(_0x6ed4f4(0x1d8))]('idle')),_0x5e8633(this,_0x6ed4f4(0x253),this[_0x6ed4f4(0x1f9)][_0x6ed4f4(0x21e)]()),_0x5e8633(this,_0x6ed4f4(0x243),!0x1),_0x5e8633(this,_0x6ed4f4(0x24f),null),_0x5e8633(this,'_presenter',null);}[_0x321abe(0x209)](){const _0x4367b0=_0x321abe;var _0x255948;(_0x255948=this[_0x4367b0(0x24f)])==null||_0x255948[_0x4367b0(0x209)](),this[_0x4367b0(0x1f9)][_0x4367b0(0x1bd)](_0x4367b0(0x186)),this[_0x4367b0(0x1f9)]['complete']();}[_0x321abe(0x25a)](){const _0x5f4655=_0x321abe;return this[_0x5f4655(0x1b0)];}['init'](){const _0x4106de=_0x321abe;this[_0x4106de(0x243)]||(this[_0x4106de(0x243)]=!0x0,this['_collabSession'][_0x4106de(0x191)]['pipe']((0x0,_0x627475[_0x4106de(0x254)])(this[_0x4106de(0x1c0)]))[_0x4106de(0x1d7)](_0x59430b=>{const _0x3a760c=_0x4106de;switch(_0x59430b){case _0x2c5db5[_0x3a760c(0x21d)][_0x3a760c(0x23a)]:this[_0x3a760c(0x1bb)]();break;case _0x2c5db5[_0x3a760c(0x21d)][_0x3a760c(0x1ee)]:this[_0x3a760c(0x182)]();break;default:}}),this['_collabSession']['event$'][_0x4106de(0x19b)]((0x0,_0x627475[_0x4106de(0x254)])(this[_0x4106de(0x1c0)]))[_0x4106de(0x1d7)](_0x688b42=>{const _0x14a9b6=_0x4106de;let {eventID:_0x11ab92}=_0x688b42;switch(_0x11ab92){case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x1fa)]:this['_handleNewHost'](_0x688b42);break;case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x1df)]:this[_0x14a9b6(0x269)](_0x688b42);break;case _0x226c1a[_0x14a9b6(0x18a)][_0x14a9b6(0x184)]:this[_0x14a9b6(0x1a2)]();break;case _0x226c1a['CollaborationEvent'][_0x14a9b6(0x1a7)]:this['_handleNewChangeSets'](_0x688b42);break;default:}}));}['tryStartPresenting'](){const _0x1f1c86=_0x321abe;this[_0x1f1c86(0x1b7)][_0x1f1c86(0x21b)]({'eventID':_0x226c1a[_0x1f1c86(0x18a)][_0x1f1c86(0x18c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1f1c86(0x267)]()}},this[_0x1f1c86(0x227)]);}[_0x321abe(0x21c)](){const _0x58d2c3=_0x321abe;this[_0x58d2c3(0x1b0)]===_0x58d2c3(0x195)&&(this[_0x58d2c3(0x1f9)][_0x58d2c3(0x1bd)](_0x58d2c3(0x186)),this['_collabSession'][_0x58d2c3(0x21b)]({'eventID':_0x226c1a[_0x58d2c3(0x18a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x58d2c3(0x227)]}},this[_0x58d2c3(0x227)]));}[_0x321abe(0x1cc)](){const _0x2389f2=_0x321abe;this[_0x2389f2(0x1b0)]===_0x2389f2(0x1a1)&&(this[_0x2389f2(0x1f9)]['next'](_0x2389f2(0x185)),this[_0x2389f2(0x1f3)]());}[_0x321abe(0x20c)](){const _0x3b5dbe=_0x321abe;this['_status']===_0x3b5dbe(0x185)&&this[_0x3b5dbe(0x1ed)]();}[_0x321abe(0x217)](_0x267ec2){const _0x1f4f3a=_0x321abe;let {presenter:_0x545eb6}=_0x267ec2[_0x1f4f3a(0x1c3)],_0x24abaa=this['_collabSession'][_0x1f4f3a(0x267)]();this['_presenter']=_0x545eb6,_0x545eb6===_0x24abaa?(this['_stopFollowing'](),this[_0x1f4f3a(0x21f)]()):this['_status']!==_0x1f4f3a(0x1a1)&&(this[_0x1f4f3a(0x1aa)](),this[_0x1f4f3a(0x1f3)]());}[_0x321abe(0x1ba)](){const _0x3fd5c1=_0x321abe;let _0x2a27e4={'eventID':_0x226c1a[_0x3fd5c1(0x18a)][_0x3fd5c1(0x249)]};this[_0x3fd5c1(0x1b7)]['send'](_0x2a27e4,this[_0x3fd5c1(0x227)]);}[_0x321abe(0x1a2)](){const _0x5ec000=_0x321abe;this['_presenter']=null,this[_0x5ec000(0x1b0)]!=='presenting'&&this[_0x5ec000(0x1c4)]();}['_handleNewChangeSets'](_0x445082){const _0x1ff8c8=_0x321abe;if(this[_0x1ff8c8(0x1b0)]==='following'&&this[_0x1ff8c8(0x1fd)]===_0x445082[_0x1ff8c8(0x1c3)]['memberID']){let _0x384e60=(0x0,_0x226c1a['parseProtocolChangeset'])(_0x445082['data'])[_0x1ff8c8(0x24d)][_0x1ff8c8(0x214)]()['find'](_0x322337=>_0x322337['id']===_0x3c1ee6[_0x1ff8c8(0x1c5)]['id']);if(_0x384e60){let _0x26ccaf=_0x384e60['params'][_0x1ff8c8(0x1dd)],_0xe41abb=_0x384e60[_0x1ff8c8(0x250)][_0x1ff8c8(0x1d1)]['id'];setTimeout(()=>{const _0x330a32=_0x1ff8c8;this[_0x330a32(0x1a0)][_0x330a32(0x1c2)](_0x3c1ee6[_0x330a32(0x1b4)]['id'],{'unitId':_0x26ccaf,'subUnitId':_0xe41abb},{'fromCollab':!0x0});});}}}[_0x321abe(0x21f)](){const _0x5a98a9=_0x321abe;var _0x303c90;(_0x303c90=this['_commandDisposable'])==null||_0x303c90[_0x5a98a9(0x209)](),this[_0x5a98a9(0x1f9)][_0x5a98a9(0x1bd)]('presenting');let _0x24ce45=new Map(),_0xa9e027=this[_0x5a98a9(0x24f)]=new _0x135454['DisposableCollection']();_0xa9e027[_0x5a98a9(0x218)]((0x0,_0x135454[_0x5a98a9(0x23b)])(()=>{const _0x4cefdf=_0x5a98a9;_0x24ce45['forEach'](({subject:_0x2ca484,subscription:_0x4ee42b})=>{const _0x5e5445=_0x2513;_0x4ee42b['unsubscribe'](),_0x2ca484[_0x5e5445(0x244)]();}),_0x24ce45[_0x4cefdf(0x1b5)]();})),_0xa9e027[_0x5a98a9(0x218)](this[_0x5a98a9(0x1a0)][_0x5a98a9(0x1e1)](_0x296f50=>{const _0x4172ea=_0x5a98a9;if(_0x296f50[_0x4172ea(0x1b8)]!==_0x135454[_0x4172ea(0x1cd)][_0x4172ea(0x1d0)]||!this[_0x4172ea(0x1f0)][_0x4172ea(0x252)](_0x296f50['id']))return;let {id:_0x127cd0}=_0x296f50,_0x508e63;if(_0x24ce45['has'](_0x127cd0))_0x508e63=_0x24ce45[_0x4172ea(0x1be)](_0x127cd0)['subject'];else{var _0x5a1be7;_0x508e63=new _0xa8fcb2[(_0x4172ea(0x1cf))]();let _0x44ea3f=_0x508e63[_0x4172ea(0x19b)]((0x0,_0x627475[_0x4172ea(0x205)])((_0x5a1be7=this[_0x4172ea(0x208)][_0x4172ea(0x1a8)](_0x4172ea(0x200)))==null?0xc8:_0x5a1be7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4172ea(0x1d7)](_0x531977=>{const _0x46c650=_0x4172ea;this[_0x46c650(0x1b7)]['send']({'eventID':_0x226c1a[_0x46c650(0x18a)][_0x46c650(0x1df)],'data':{'unitID':this[_0x46c650(0x227)],'operations':{[_0x531977['id']]:{'id':_0x531977['id'],'params':JSON[_0x46c650(0x216)](_0x531977['params'])}}}},this[_0x46c650(0x227)]);});_0x24ce45[_0x4172ea(0x1c9)](_0x127cd0,{'subject':_0x508e63,'subscription':_0x44ea3f});}_0x508e63[_0x4172ea(0x1bd)](_0x296f50);})),this[_0x5a98a9(0x1f0)][_0x5a98a9(0x240)](this['_unitID'])[_0x5a98a9(0x221)](_0x4b45b3=>this[_0x5a98a9(0x1b7)][_0x5a98a9(0x21b)]({'eventID':_0x226c1a['CollaborationEvent'][_0x5a98a9(0x1df)],'data':{'unitID':this[_0x5a98a9(0x227)],'operations':{[_0x4b45b3['id']]:{'id':_0x4b45b3['id'],'params':JSON[_0x5a98a9(0x216)](_0x4b45b3[_0x5a98a9(0x250)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x3f8a5d=_0x321abe;var _0x5d0e32;this[_0x3f8a5d(0x1f9)][_0x3f8a5d(0x1bd)](_0x3f8a5d(0x186)),(_0x5d0e32=this[_0x3f8a5d(0x24f)])==null||_0x5d0e32[_0x3f8a5d(0x209)](),this[_0x3f8a5d(0x24f)]=null;}[_0x321abe(0x1f3)](){const _0x107b67=_0x321abe;var _0x869ba1;(_0x869ba1=this['_commandDisposable'])==null||_0x869ba1['dispose'](),this['_status$']['next'](_0x107b67(0x185));}[_0x321abe(0x1c4)](){const _0x47324b=_0x321abe;var _0x4ba7f1;this[_0x47324b(0x1f9)][_0x47324b(0x1bd)](_0x47324b(0x186)),(_0x4ba7f1=this[_0x47324b(0x24f)])==null||_0x4ba7f1[_0x47324b(0x209)](),this[_0x47324b(0x24f)]=null;}[_0x321abe(0x1ed)](){const _0x53cf22=_0x321abe;var _0x5c417e;this['_status$'][_0x53cf22(0x1bd)](_0x53cf22(0x1a1)),(_0x5c417e=this[_0x53cf22(0x24f)])==null||_0x5c417e['dispose']();}[_0x321abe(0x269)](_0xe13a5d){const _0x2b288e=_0x321abe;if([_0x2b288e(0x195),_0x2b288e(0x1a1),'offline'][_0x2b288e(0x219)](this[_0x2b288e(0x1b0)])||!_0xe13a5d[_0x2b288e(0x1c3)][_0x2b288e(0x1f5)]||_0xe13a5d[_0x2b288e(0x1c3)][_0x2b288e(0x1f5)]===this[_0x2b288e(0x1b7)]['getMemberID']())return;this[_0x2b288e(0x1b0)]==='idle'&&this[_0x2b288e(0x1f3)]();let _0x1c36a0=_0xe13a5d[_0x2b288e(0x1c3)]['operations'];Object[_0x2b288e(0x23e)](_0x1c36a0)[_0x2b288e(0x221)](_0x5ce5a6=>{const _0x15fece=_0x2b288e;this['_commandService'][_0x15fece(0x1c2)](_0x5ce5a6['id'],_0x5ce5a6[_0x15fece(0x250)]?JSON['parse'](_0x5ce5a6[_0x15fece(0x250)]):null,{'fromCollab':!0x0});});}[_0x321abe(0x1bb)](){const _0x2ef24e=_0x321abe;var _0x2a2050;this[_0x2ef24e(0x1f9)][_0x2ef24e(0x1bd)](_0x2ef24e(0x215)),(_0x2a2050=this[_0x2ef24e(0x24f)])==null||_0x2a2050[_0x2ef24e(0x209)]();}[_0x321abe(0x182)](){const _0x42127b=_0x321abe;this[_0x42127b(0x1f9)][_0x42127b(0x1bd)](_0x42127b(0x186)),this['_fetchOperations']();}};_0x1f6d67=_0x262a5a([_0x5b244f(0x2,_0x135454[_0x321abe(0x233)]),_0x5b244f(0x3,(0x0,_0x135454['Inject'])(_0x32815e)),_0x5b244f(0x4,_0x135454['ICommandService'])],_0x1f6d67);var _0x44ee2d=_0x321abe(0x260),_0x5c93ef=_0x321abe(0x1ad);let _0x17dc8b={},_0x3dfe76=class extends _0x135454[_0x321abe(0x229)]{constructor(_0x4b828a){const _0x4bae6e=_0x321abe;super(),this[_0x4bae6e(0x1f0)]=_0x4b828a,this[_0x4bae6e(0x243)]();}[_0x321abe(0x243)](){const _0x2b4d7f=_0x321abe;[_0x58d540[_0x2b4d7f(0x1f6)]['id'],_0x58d540[_0x2b4d7f(0x231)]['id'],_0x3c1ee6[_0x2b4d7f(0x1b4)]['id']][_0x2b4d7f(0x221)](_0x471f49=>{const _0x8d939a=_0x2b4d7f;this['disposeWithMe'](this[_0x8d939a(0x1f0)][_0x8d939a(0x207)](_0x471f49));});}};_0x3dfe76=_0x262a5a([_0x5b244f(0x0,(0x0,_0x135454['Inject'])(_0x32815e))],_0x3dfe76);function _0x4d6ade({ref:_0x2b980d,..._0x1d76f5}){const _0x5c316d=_0x321abe;let {icon:_0x15c374,id:_0x31fba9,className:_0x2a7a98,extend:_0x128664,..._0x4d3ab5}=_0x1d76f5,_0x4683cf=(_0x5c316d(0x1c7)+_0x31fba9+'\x20'+(_0x2a7a98||''))['trim'](),_0x518cad=(0x0,_0xcb2de2[_0x5c316d(0x261)])('_'+_0x5ad4c3());return _0x1d65db(_0x15c374,''+_0x31fba9,{'defIds':_0x15c374[_0x5c316d(0x1f8)],'idSuffix':_0x518cad['current']},{'ref':_0x2b980d,'className':_0x4683cf,..._0x4d3ab5},_0x128664);}function _0x1d65db(_0x3949ac,_0x362e87,_0xe461ce,_0x499bad,_0x48e536){const _0xe5d862=_0x321abe;return(0x0,_0xcb2de2[_0xe5d862(0x222)])(_0x3949ac[_0xe5d862(0x1b3)],{'key':_0x362e87,..._0xa2b1bd(_0x3949ac,_0xe461ce,_0x48e536),..._0x499bad},(_0x1db5b9(_0x3949ac,_0xe461ce)[_0xe5d862(0x25d)]||[])['map']((_0xee453d,_0x212659)=>_0x1d65db(_0xee453d,_0x362e87+'-'+_0x3949ac[_0xe5d862(0x1b3)]+'-'+_0x212659,_0xe461ce,void 0x0,_0x48e536)));}function _0xa2b1bd(_0x306c1e,_0x1a3f80,_0x206e51){const _0x5a3a46=_0x321abe;let _0x190b52={..._0x306c1e[_0x5a3a46(0x1fe)]};_0x206e51!=null&&_0x206e51[_0x5a3a46(0x193)]&&_0x190b52[_0x5a3a46(0x22e)]===_0x5a3a46(0x193)&&(_0x190b52['fill']=_0x206e51[_0x5a3a46(0x193)]),_0x206e51!=null&&_0x206e51['colorChannel1']&&_0x190b52[_0x5a3a46(0x1ac)]===_0x5a3a46(0x193)&&(_0x190b52[_0x5a3a46(0x1ac)]=_0x206e51[_0x5a3a46(0x193)]),_0x306c1e[_0x5a3a46(0x1b3)]==='mask'&&_0x190b52['id']&&(_0x190b52['id']+=_0x1a3f80[_0x5a3a46(0x265)]),Object[_0x5a3a46(0x232)](_0x190b52)['forEach'](([_0x29288b,_0xa1c026])=>{const _0x13401a=_0x5a3a46;_0x29288b===_0x13401a(0x1a6)&&typeof _0xa1c026==_0x13401a(0x1e8)&&(_0x190b52[_0x29288b]=_0xa1c026[_0x13401a(0x1db)](/url\(#(.*)\)/,'url(#$1'+_0x1a3f80[_0x13401a(0x265)]+')'));});let {defIds:_0x3a5225}=_0x1a3f80;return!_0x3a5225||_0x3a5225[_0x5a3a46(0x1ab)]===0x0?_0x190b52:(_0x306c1e[_0x5a3a46(0x1b3)]==='use'&&_0x190b52['xlink:href']&&(_0x190b52['xlink:href']+=_0x1a3f80[_0x5a3a46(0x265)]),Object[_0x5a3a46(0x232)](_0x190b52)[_0x5a3a46(0x221)](([_0x40d1de,_0x482d14])=>{const _0x5812d0=_0x5a3a46;typeof _0x482d14==_0x5812d0(0x1e8)&&(_0x190b52[_0x40d1de]=_0x482d14[_0x5812d0(0x1db)](/url\(#(.*)\)/,_0x5812d0(0x24a)+_0x1a3f80['idSuffix']+')'));}),_0x190b52);}function _0x1db5b9(_0x214d00,_0x56b40d){const _0x4ac83d=_0x321abe;var _0x4dae3a;let {defIds:_0x1187d4}=_0x56b40d;return!_0x1187d4||_0x1187d4[_0x4ac83d(0x1ab)]===0x0?_0x214d00:_0x214d00[_0x4ac83d(0x1b3)]===_0x4ac83d(0x1c1)&&(_0x4dae3a=_0x214d00[_0x4ac83d(0x25d)])!=null&&_0x4dae3a[_0x4ac83d(0x1ab)]?{..._0x214d00,'children':_0x214d00[_0x4ac83d(0x25d)][_0x4ac83d(0x1ce)](_0x334c88=>typeof _0x334c88[_0x4ac83d(0x1fe)]['id']==_0x4ac83d(0x1e8)&&_0x1187d4&&_0x1187d4[_0x4ac83d(0x219)](_0x334c88[_0x4ac83d(0x1fe)]['id'])?{..._0x334c88,'attrs':{..._0x334c88['attrs'],'id':_0x334c88['attrs']['id']+_0x56b40d[_0x4ac83d(0x265)]}}:_0x334c88)}:_0x214d00;}function _0x5ad4c3(){const _0x3695c2=_0x321abe;return Math[_0x3695c2(0x1b1)]()[_0x3695c2(0x1bf)](0x24)[_0x3695c2(0x1f1)](0x2,0x8);}_0x4d6ade['displayName']='UniverIcon';let _0x3c5841={'tag':_0x321abe(0x246),'attrs':{'xmlns':_0x321abe(0x1f7),'fill':_0x321abe(0x245),'viewBox':'0\x200\x2017\x2017','width':_0x321abe(0x1a9),'height':_0x321abe(0x1a9)},'children':[{'tag':_0x321abe(0x266),'attrs':{'fill':_0x321abe(0x22b),'d':_0x321abe(0x1d3)}},{'tag':_0x321abe(0x266),'attrs':{'fill':_0x321abe(0x22b),'d':_0x321abe(0x1ff),'fillRule':_0x321abe(0x25c),'clipRule':_0x321abe(0x25c)}}]},_0x350b51=(0x0,_0xcb2de2[_0x321abe(0x18e)])(function(_0x3ba527,_0x420826){const _0xd3b778=_0x321abe;return(0x0,_0xcb2de2['createElement'])(_0x4d6ade,Object['assign']({},_0x3ba527,{'id':_0xd3b778(0x22c),'ref':_0x420826,'icon':_0x3c5841}));});_0x350b51[_0x321abe(0x1eb)]=_0x321abe(0x24b);function _0x2d75ec(){const _0x5efc7d=_0x321abe;let _0x363c99=(0x0,_0x519b13['useDependency'])(_0x319e38),_0x1a8827=(0x0,_0x519b13['useDependency'])(_0x135454['IUniverInstanceService']),_0x229539=(0x0,_0x519b13[_0x5efc7d(0x251)])(()=>_0x1a8827['getCurrentTypeOfUnit$'](_0x135454['UniverInstanceType'][_0x5efc7d(0x201)]),void 0x0,!0x1,[]),[_0x214d07,_0x4afaf4]=(0x0,_0xcb2de2[_0x5efc7d(0x17f)])(null),[_0x4239e8,_0x554fa9]=(0x0,_0xcb2de2[_0x5efc7d(0x17f)])(_0x5efc7d(0x186)),_0x381300=(0x0,_0xcb2de2['useRef'])(null);return(0x0,_0xcb2de2[_0x5efc7d(0x237)])(()=>(_0x229539&&_0x363c99[_0x5efc7d(0x20f)](_0x229539[_0x5efc7d(0x241)]())[_0x5efc7d(0x1fc)](_0x267830=>{const _0x86f771=_0x5efc7d;_0x4afaf4(_0x267830),_0x381300[_0x86f771(0x223)]=_0x267830[_0x86f771(0x253)][_0x86f771(0x1d7)](_0x36f081=>{_0x554fa9(_0x36f081);});}),()=>{const _0x4816fc=_0x5efc7d;var _0x43481f;(_0x43481f=_0x381300['current'])==null||_0x43481f['unsubscribe'](),_0x381300[_0x4816fc(0x223)]=null;}),[_0x229539,_0x363c99]),_0x214d07?(0x0,_0x2d0057['jsx'])(_0x278a8a['Dropdown'],{'align':_0x5efc7d(0x188),'disabled':_0x4239e8===_0x5efc7d(0x215),'className':_0x5efc7d(0x17e),'overlay':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])(_0x5c4fd7,{'status':_0x4239e8,'coordinator':_0x214d07}),'children':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])('button',{'className':(0x0,_0x278a8a[_0x5efc7d(0x1c6)])(_0x5efc7d(0x24c),{'univer-cursor-not-allowed':_0x4239e8===_0x5efc7d(0x215),'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4239e8!==_0x5efc7d(0x215)}),'type':'button','children':(0x0,_0x2d0057[_0x5efc7d(0x1e4)])(_0x350b51,{})})}):null;}function _0x5c4fd7(_0x3904e5){const _0x432d38=_0x321abe;let {status:_0x3d8aad,coordinator:_0x22ca8e}=_0x3904e5;switch(_0x3d8aad){case _0x432d38(0x186):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x527c08,{'coordinator':_0x22ca8e});case _0x432d38(0x185):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x36b166,{'coordinator':_0x22ca8e});case _0x432d38(0x1a1):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x399326,{'coordinator':_0x22ca8e});case'offline':return(0x0,_0x2d0057['jsx'])(_0xcddfac,{});case _0x432d38(0x195):return(0x0,_0x2d0057[_0x432d38(0x1e4)])(_0x1f39dc,{'coordinator':_0x22ca8e});default:return null;}}function _0x527c08(_0x2fe117){const _0x3139cf=_0x321abe;let {coordinator:_0x58e6cf}=_0x2fe117;return(0x0,_0x2d0057[_0x3139cf(0x23d)])(_0x2d0057[_0x3139cf(0x234)],{'children':[(0x0,_0x2d0057['jsx'])(_0x3139cf(0x19c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3139cf(0x225)}),(0x0,_0x2d0057[_0x3139cf(0x1e4)])(_0x278a8a[_0x3139cf(0x206)],{'onClick':()=>_0x58e6cf['tryStartPresenting'](),'children':'Start'})]});}function _0x36b166(_0x2b1aa7){const _0x3c3d1f=_0x321abe;let {coordinator:_0x287bf2}=_0x2b1aa7;return(0x0,_0x2d0057[_0x3c3d1f(0x23d)])(_0x2d0057[_0x3c3d1f(0x234)],{'children':[(0x0,_0x2d0057[_0x3c3d1f(0x1e4)])(_0x3c3d1f(0x19c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c3d1f(0x1e7)}),(0x0,_0x2d0057[_0x3c3d1f(0x1e4)])(_0x278a8a[_0x3c3d1f(0x206)],{'onClick':()=>_0x287bf2['stopFollowing'](),'children':_0x3c3d1f(0x258)})]});}function _0x399326(_0xf74f50){const _0x31cbdf=_0x321abe;let {coordinator:_0x530fa5}=_0xf74f50;return(0x0,_0x2d0057[_0x31cbdf(0x23d)])(_0x2d0057[_0x31cbdf(0x234)],{'children':[(0x0,_0x2d0057[_0x31cbdf(0x1e4)])(_0x31cbdf(0x19c),{'className':_0x31cbdf(0x22a),'children':_0x31cbdf(0x196)}),(0x0,_0x2d0057[_0x31cbdf(0x1e4)])(_0x278a8a['Button'],{'variant':_0x31cbdf(0x1d6),'onClick':()=>_0x530fa5[_0x31cbdf(0x1cc)](),'children':_0x31cbdf(0x18b)})]});}function _0x1f39dc(_0x578ea0){const _0x3f08a2=_0x321abe;let {coordinator:_0x41263f}=_0x578ea0;return(0x0,_0x2d0057[_0x3f08a2(0x23d)])(_0x2d0057[_0x3f08a2(0x234)],{'children':[(0x0,_0x2d0057['jsx'])(_0x3f08a2(0x19c),{'className':_0x3f08a2(0x22a),'children':_0x3f08a2(0x1af)}),(0x0,_0x2d0057['jsx'])(_0x278a8a['Button'],{'variant':_0x3f08a2(0x17a),'onClick':()=>_0x41263f[_0x3f08a2(0x21c)](),'children':_0x3f08a2(0x25f)})]});}function _0xcddfac(){const _0x365a06=_0x321abe;return(0x0,_0x2d0057[_0x365a06(0x1e4)])(_0x2d0057[_0x365a06(0x234)],{'children':'You\x27are\x20offline.'});}let _0x4dfc7f=class extends _0x135454[_0x321abe(0x229)]{constructor(_0x3a3270,_0x4b29b0){const _0x4ceb70=_0x321abe;super(),this['_injector']=_0x3a3270,this[_0x4ceb70(0x1e0)]=_0x4b29b0,this[_0x4ceb70(0x20a)]();}[_0x321abe(0x20a)](){const _0xe472df=_0x321abe;this['disposeWithMe'](this[_0xe472df(0x1e0)][_0xe472df(0x248)](_0x519b13[_0xe472df(0x183)][_0xe472df(0x1b9)],()=>(0x0,_0x519b13['connectInjector'])(_0x2d75ec,this['_injector'])));}};_0x4dfc7f=_0x262a5a([_0x5b244f(0x0,(0x0,_0x135454['Inject'])(_0x135454['Injector'])),_0x5b244f(0x1,_0x519b13['IUIPartsService'])],_0x4dfc7f);let _0x1d2fb6=class extends _0x135454[_0x321abe(0x192)]{constructor(_0x14f2e9=_0x17dc8b,_0x14d362,_0x447382){const _0xf6ea33=_0x321abe;super(),this[_0xf6ea33(0x190)]=_0x14f2e9,this[_0xf6ea33(0x1e3)]=_0x14d362,this['_configService']=_0x447382;let {..._0x56da46}=(0x0,_0x135454[_0xf6ea33(0x17b)])({},_0x17dc8b,this[_0xf6ea33(0x190)]);this['_configService'][_0xf6ea33(0x239)](_0xf6ea33(0x1ca),_0x56da46);}[_0x321abe(0x1d5)](){const _0xc42f89=_0x321abe;(0x0,_0x135454[_0xc42f89(0x1d4)])(this[_0xc42f89(0x1e3)],(0x0,_0x135454[_0xc42f89(0x1d9)])([[_0x32815e],[_0x319e38],[_0x3dfe76],[_0x4dfc7f]],this['_config'][_0xc42f89(0x180)])),(0x0,_0x135454['touchDependencies'])(this[_0xc42f89(0x1e3)],[[_0x3dfe76]]);}[_0x321abe(0x224)](){const _0x191e6c=_0x321abe;(0x0,_0x135454[_0x191e6c(0x199)])(this[_0x191e6c(0x1e3)],[[_0x4dfc7f]]);}};_0x5e8633(_0x1d2fb6,_0x321abe(0x1b8),_0x135454[_0x321abe(0x262)][_0x321abe(0x25b)]),_0x5e8633(_0x1d2fb6,_0x321abe(0x1a3),_0x321abe(0x1fb)),_0x5e8633(_0x1d2fb6,_0x321abe(0x1b6),_0x44ee2d),_0x5e8633(_0x1d2fb6,_0x321abe(0x259),_0x5c93ef),_0x1d2fb6=_0x262a5a([(0x0,_0x135454[_0x321abe(0x1ae)])(_0x2c5db5[_0x321abe(0x1d2)]),_0x5b244f(0x1,(0x0,_0x135454[_0x321abe(0x238)])(_0x135454[_0x321abe(0x26b)])),_0x5b244f(0x2,_0x135454[_0x321abe(0x233)])],_0x1d2fb6),Object['defineProperty'](_0x22b40d,'LiveShareController',{'enumerable':!0x0,'get':function(){return _0x319e38;}}),_0x22b40d[_0x321abe(0x236)]=_0x5cfea9,Object['defineProperty'](_0x22b40d,_0x321abe(0x202),{'enumerable':!0x0,'get':function(){return _0x1d2fb6;}});}));function _0x543a(){const _0x3af179=['CollaborationSessionService','replace','PRESENTING','unitId','iterator','LIVESHARE_OPERATION','_uiPartsService','onCommandExecuted','constructor','_injector','jsx','unit','@univerjs/sheets','You\x27re\x20following\x20the\x20presenter','string','Module','@univerjs/ui','displayName','UniverUi','_stopFollowing','ONLINE','3197260cHMghw','_liveShareService','substring','_univerInstanceService','_startFollowing','init','presenter','SetZoomRatioOperation','http://www.w3.org/2000/svg','defIds','_status$','LIVESHARE_NEW_HOST','UNIVER_LIVE_SHARE_PLUGIN','then','_presenter','attrs','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','SAME_OPERATION_SHARE_INTERVAL','UNIVER_SHEET','UniverLiveSharePlugin','2022504wygZUa','@univerjs/sheets-ui','throttleTime','Button','registerSharedOperation','_configService','dispose','_mountLiveShare','toStringTag','stopFollowing','_entities','RxDisposable','getLiveShareCoordinator','_reporters','object','react','1215747zfYMmJ','reverse','offline','stringify','_handleNewHost','add','includes','react/jsx-runtime','send','stopPresenting','SessionStatus','asObservable','_startPresenting','_startLiveShareCoordinator','forEach','createElement','current','onRendered','Present\x20this\x20document','symbol','_unitID','registerInitialStateReporter','Disposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','currentColor','live-share-icon','call','fill','740700plhqqe','_sharedOperations','SetScrollOperation','entries','IConfigService','Fragment','IDLE','LiveShareStatus','useEffect','Inject','setConfig','OFFLINE','toDisposable','has','jsxs','values','@univerjs-pro/collaboration','getInitialStates','getUnitId','6154818vtNefn','_init','complete','none','svg','@univerjs/core','registerComponent','LIVESHARE_FETCH_OPERATIONS','url(#$1','LiveShareIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','mutations','function','_commandDisposable','params','useObservable','shouldShareOperation','status$','takeUntil','7cKRAtI','getTypeOfUnitAdded$','_collabSessionService','Stop\x20following','version','getStatus','UNIVER_UNKNOWN','evenodd','children','rxjs','Stop\x20presenting','@univerjs-pro/live-share','useRef','UniverInstanceType','UniverCore','getTypeOfUnitDisposed$','idSuffix','path','getMemberID','requireSession','_handleOperation','136168PcAInc','Injector','default','merge','IUniverInstanceService','exports','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','useState','override','prototype','_handleOnline','BuiltInUIPart','LIVESHARE_TERMINATE','following','idle','FOLLOWING','end','UniverSheetsUi','CollaborationEvent','Start\x20following','LIVESHARE_REQUEST_HOST','2346536PKAJQk','forwardRef','UniverProCollaborationClient','_config','sessionStatus$','Plugin','colorChannel1','rxjs/operators','presenting','You\x27re\x20not\x20following\x20the\x20presenter','React','NOT_FOLLOWING','touchDependencies','decorate','pipe','div','8oiUKoa','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client','_commandService','not-following','_handleTerminate','pluginName','delete','operators','mask','NEW_CHANGESETS','getConfig','1em','_stopPresenting','length','stroke','1.0.0-alpha.3','DependentOn','You\x27re\x20presenting\x20the\x20document','_status','random','createInstance','tag','SetWorksheetActiveOperation','clear','packageName','_collabSession','type','HEADER_MENU','_fetchOperations','_handleOffline','defineProperty','next','get','toString','dispose$','defs','executeCommand','data','_beIdle','InsertSheetMutation','clsx','univerjs-icon\x20univerjs-icon-','UniverProLiveShare','set','live-share.config','amd','startFollowing','CommandType','map','Subject','OPERATION','sheet','UniverCollaborationClientPlugin','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','registerDependencies','onStarting','text','subscribe','BehaviorSubject','mergeOverrideWithDependencies'];_0x543a=function(){return _0x3af179;};return _0x543a();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "private": false,
5
5
  "description": "Live share collaboration plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -62,24 +62,24 @@
62
62
  "rxjs": ">=7.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "1.14.0",
66
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.1",
67
- "@univerjs-pro/collaboration": "1.0.0-alpha.1",
68
- "@univerjs/core": "1.0.0-alpha.1",
69
- "@univerjs/design": "1.0.0-alpha.1",
70
- "@univerjs/sheets-ui": "1.0.0-alpha.1",
71
- "@univerjs/ui": "1.0.0-alpha.1",
72
- "@univerjs/sheets": "1.0.0-alpha.1"
65
+ "@univerjs/icons": "1.20.0",
66
+ "@univerjs-pro/collaboration": "1.0.0-alpha.3",
67
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.3",
68
+ "@univerjs/core": "1.0.0-alpha.3",
69
+ "@univerjs/design": "1.0.0-alpha.3",
70
+ "@univerjs/sheets": "1.0.0-alpha.3",
71
+ "@univerjs/sheets-ui": "1.0.0-alpha.3",
72
+ "@univerjs/ui": "1.0.0-alpha.3"
73
73
  },
74
74
  "devDependencies": {
75
- "postcss": "^8.5.15",
75
+ "postcss": "^8.5.16",
76
76
  "react": "18.3.1",
77
77
  "rxjs": "7.8.2",
78
78
  "tailwindcss": "3.4.17",
79
79
  "typescript": "^6.0.3",
80
- "vitest": "^4.1.9",
81
- "@univerjs-infra/shared": "1.0.0-alpha.1",
82
- "@univerjs/protocol": "1.0.0-alpha.1"
80
+ "vitest": "^4.1.10",
81
+ "@univerjs-infra/shared": "1.0.0-alpha.3",
82
+ "@univerjs/protocol": "1.0.0-alpha.3"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",