@univerjs-pro/live-share 0.10.13 → 0.10.14-nightly.202511070628

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x23c103=_0x4f02;(function(_0x3bad85,_0x438b35){const _0x2397c2=_0x4f02,_0x411a0e=_0x3bad85();while(!![]){try{const _0x3e5ce2=parseInt(_0x2397c2(0x1cf))/0x1+-parseInt(_0x2397c2(0x1e6))/0x2+-parseInt(_0x2397c2(0x1e5))/0x3+parseInt(_0x2397c2(0x1d6))/0x4+-parseInt(_0x2397c2(0x1c7))/0x5+-parseInt(_0x2397c2(0x1d9))/0x6*(-parseInt(_0x2397c2(0x1ce))/0x7)+parseInt(_0x2397c2(0x1d7))/0x8;if(_0x3e5ce2===_0x438b35)break;else _0x411a0e['push'](_0x411a0e['shift']());}catch(_0x3d5713){_0x411a0e['push'](_0x411a0e['shift']());}}}(_0x1f6e,0x8fdaf));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x23c103(0x1c6)]{[_0x23c103(0x1e7)](_0x2fa7c3,_0x393ff3,_0x110a0c,_0x2e60ee,_0x26d1af){const _0x5d9658=_0x23c103,_0x2c30ac=_0x2fa7c3[_0x5d9658(0x1db)](n['LiveShareController']),_0x39903d=_0x2fa7c3[_0x5d9658(0x1db)](g[_0x5d9658(0x1dc)]),_0x50b1f7=_0x393ff3[_0x5d9658(0x1e1)](),_0x141e99=_0x393ff3['getActiveSheet'](),_0x5a6f6f=_0x2c30ac[_0x5d9658(0x1e9)](_0x50b1f7);(_0x5a6f6f==null?void 0x0:_0x5a6f6f[_0x5d9658(0x1c5)]())!==n['LiveShareStatus'][_0x5d9658(0x1e2)]||(_0x110a0c[_0x5d9658(0x1cc)]()!==_0x141e99[_0x5d9658(0x1cc)]()&&this[_0x5d9658(0x1c8)][_0x5d9658(0x1d2)](u[_0x5d9658(0x1d4)]['id'],{'unitId':_0x50b1f7,'subUnitId':_0x110a0c[_0x5d9658(0x1cc)]()}),!_0x39903d[_0x5d9658(0x1e4)](_0x50b1f7))||_0x26d1af[_0x5d9658(0x1ca)](f[_0x5d9658(0x1d1)]['id'],{'unitId':_0x393ff3[_0x5d9658(0x1e1)](),'sheetId':_0x110a0c['getSheetId'](),'sheetViewStartRow':_0x2e60ee[_0x5d9658(0x1c9)],'sheetViewStartColumn':_0x2e60ee[_0x5d9658(0x1d5)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange']['extend'](w);class C extends a[_0x23c103(0x1ed)]{['getLiveShareStatus'](){const _0x11ab47=_0x23c103;var _0x5949ad,_0x1c372a;const _0x5f3eed=this[_0x11ab47(0x1dd)]['get'](n[_0x11ab47(0x1e0)]),_0x1f3f82=(_0x5949ad=this[_0x11ab47(0x1d8)]())==null?void 0x0:_0x5949ad[_0x11ab47(0x1da)]();if(!_0x1f3f82)throw new Error('No\x20active\x20workbook\x20found.');const _0x4b1bfe=_0x5f3eed[_0x11ab47(0x1e9)](_0x1f3f82);return(_0x1c372a=_0x4b1bfe==null?void 0x0:_0x4b1bfe[_0x11ab47(0x1c5)]())!=null?_0x1c372a:n['LiveShareStatus'][_0x11ab47(0x1eb)];}[_0x23c103(0x1de)](){const _0x1a03bf=_0x23c103;var _0x52b084;const _0x404083=this[_0x1a03bf(0x1dd)]['get'](n[_0x1a03bf(0x1e0)]),_0x2c6cf7=(_0x52b084=this[_0x1a03bf(0x1d8)]())==null?void 0x0:_0x52b084[_0x1a03bf(0x1da)]();if(!_0x2c6cf7)throw new Error(_0x1a03bf(0x1e3));const _0x216d31=_0x404083[_0x1a03bf(0x1e9)](_0x2c6cf7);if(!_0x216d31)throw new Error(_0x1a03bf(0x1d3));_0x216d31[_0x1a03bf(0x1de)]();}[_0x23c103(0x1ec)](){const _0x33b7ff=_0x23c103;var _0x364246;const _0x5dfd44=this[_0x33b7ff(0x1dd)]['get'](n[_0x33b7ff(0x1e0)]),_0x23f6cc=(_0x364246=this[_0x33b7ff(0x1d8)]())==null?void 0x0:_0x364246[_0x33b7ff(0x1da)]();if(!_0x23f6cc)throw new Error(_0x33b7ff(0x1e3));const _0x4cabef=_0x5dfd44[_0x33b7ff(0x1e9)](_0x23f6cc);if(!_0x4cabef)throw new Error(_0x33b7ff(0x1d3));_0x4cabef[_0x33b7ff(0x1ec)]();}[_0x23c103(0x1e8)](){const _0x39019b=_0x23c103;var _0x38453b;const _0x20f300=this[_0x39019b(0x1dd)]['get'](n[_0x39019b(0x1e0)]),_0x1c014d=(_0x38453b=this[_0x39019b(0x1d8)]())==null?void 0x0:_0x38453b['getId']();if(!_0x1c014d)throw new Error(_0x39019b(0x1e3));const _0x464e30=_0x20f300[_0x39019b(0x1e9)](_0x1c014d);if(!_0x464e30)throw new Error(_0x39019b(0x1d3));_0x464e30[_0x39019b(0x1cb)]();}[_0x23c103(0x1ea)](){const _0x458f75=_0x23c103;var _0x3189a9;const _0x53563b=this[_0x458f75(0x1dd)]['get'](n[_0x458f75(0x1e0)]),_0x26f6dd=(_0x3189a9=this[_0x458f75(0x1d8)]())==null?void 0x0:_0x3189a9[_0x458f75(0x1da)]();if(!_0x26f6dd)throw new Error(_0x458f75(0x1e3));const _0x4af9db=_0x53563b['getLiveShareCoordinatorSync'](_0x26f6dd);if(!_0x4af9db)throw new Error(_0x458f75(0x1d3));_0x4af9db['stopPresenting']();}}a[_0x23c103(0x1ed)][_0x23c103(0x1df)](C);function _0x4f02(_0x37247c,_0x4e6a47){const _0x1f6ef1=_0x1f6e();return _0x4f02=function(_0x4f02b6,_0x3ff9c7){_0x4f02b6=_0x4f02b6-0x1c5;let _0x3ad85d=_0x1f6ef1[_0x4f02b6];return _0x3ad85d;},_0x4f02(_0x37247c,_0x4e6a47);}function _0x1f6e(){const _0x524f3b=['getId','get','IRenderManagerService','_injector','startFollowing','extend','LiveShareController','getUnitId','PRESENTING','No\x20active\x20workbook\x20found.','getRenderById','2086005aznSTp','1887558YFJNTz','_initialize','startPresenting','getLiveShareCoordinatorSync','stopPresenting','IDLE','stopFollowing','FUniver','getStatus','FRange','5548730uPmQqA','_commandService','startRow','syncExecuteCommand','tryStartPresenting','getSheetId','LiveShareStatusEnum','194929irKORg','83612uLOjgr','FEnum','SetScrollOperation','executeCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetWorksheetActiveOperation','startColumn','2653824vzpIRP','18277648CvwDWG','getActiveWorkbook','66JypVwe'];_0x1f6e=function(){return _0x524f3b;};return _0x1f6e();}class L extends a[_0x23c103(0x1d0)]{get[_0x23c103(0x1cd)](){return n['LiveShareStatus'];}}a[_0x23c103(0x1d0)][_0x23c103(0x1df)](L);
1
+ 'use strict';const _0x49cae2=_0x5534;(function(_0x12447e,_0x118093){const _0x361a1e=_0x5534,_0x5eb3c2=_0x12447e();while(!![]){try{const _0x4c0957=parseInt(_0x361a1e(0x9e))/0x1+parseInt(_0x361a1e(0x86))/0x2*(-parseInt(_0x361a1e(0x97))/0x3)+-parseInt(_0x361a1e(0x80))/0x4*(parseInt(_0x361a1e(0xa4))/0x5)+parseInt(_0x361a1e(0xa2))/0x6+parseInt(_0x361a1e(0x93))/0x7+-parseInt(_0x361a1e(0x89))/0x8*(parseInt(_0x361a1e(0x8f))/0x9)+-parseInt(_0x361a1e(0x95))/0xa;if(_0x4c0957===_0x118093)break;else _0x5eb3c2['push'](_0x5eb3c2['shift']());}catch(_0x520ad9){_0x5eb3c2['push'](_0x5eb3c2['shift']());}}}(_0x3978,0xe9cf8));function _0x3978(){const _0xe1663b=['_injector','LiveShareStatus','FEnum','getActiveWorkbook','903902rrbqMB','startColumn','getActiveSheet','6504SIDCpG','getUnitId','stopPresenting','getStatus','LiveShareController','getLiveShareCoordinatorSync','10809UWZbPU','IRenderManagerService','get','getLiveShareStatus','6685462gNXlCJ','getRenderById','1046440smZFqY','stopFollowing','9dROkny','startPresenting','FUniver','startFollowing','syncExecuteCommand','_initialize','SetScrollOperation','881192bfrBsv','executeCommand','startRow','No\x20active\x20workbook\x20found.','10863762Uwytjl','tryStartPresenting','115prmvyy','extend','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getSheetId','43876VfbWjn','FRange'];_0x3978=function(){return _0xe1663b;};return _0x3978();}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x5534(_0x482e05,_0x326067){const _0x397844=_0x3978();return _0x5534=function(_0x5534cb,_0x292f65){_0x5534cb=_0x5534cb-0x80;let _0x129113=_0x397844[_0x5534cb];return _0x129113;},_0x5534(_0x482e05,_0x326067);}class w extends d[_0x49cae2(0x81)]{[_0x49cae2(0x9c)](_0x4deb50,_0x5d7884,_0x437e69,_0x557fd9,_0x22e193){const _0x4572ab=_0x49cae2,_0x38a2bc=_0x4deb50[_0x4572ab(0x91)](n[_0x4572ab(0x8d)]),_0x3bed97=_0x4deb50['get'](g[_0x4572ab(0x90)]),_0x24ad4f=_0x5d7884[_0x4572ab(0x8a)](),_0x3546a3=_0x5d7884[_0x4572ab(0x88)](),_0x219c75=_0x38a2bc['getLiveShareCoordinatorSync'](_0x24ad4f);(_0x219c75==null?void 0x0:_0x219c75[_0x4572ab(0x8c)]())!==n[_0x4572ab(0x83)]['PRESENTING']||(_0x437e69['getSheetId']()!==_0x3546a3[_0x4572ab(0xa8)]()&&this['_commandService'][_0x4572ab(0x9f)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x24ad4f,'subUnitId':_0x437e69['getSheetId']()}),!_0x3bed97[_0x4572ab(0x94)](_0x24ad4f))||_0x22e193[_0x4572ab(0x9b)](f[_0x4572ab(0x9d)]['id'],{'unitId':_0x5d7884[_0x4572ab(0x8a)](),'sheetId':_0x437e69[_0x4572ab(0xa8)](),'sheetViewStartRow':_0x557fd9[_0x4572ab(0xa0)],'sheetViewStartColumn':_0x557fd9[_0x4572ab(0x87)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x49cae2(0x81)][_0x49cae2(0xa5)](w);class C extends a[_0x49cae2(0x99)]{[_0x49cae2(0x92)](){const _0x307ffa=_0x49cae2;var _0x5e310d,_0x100b74;const _0x52d640=this[_0x307ffa(0x82)][_0x307ffa(0x91)](n[_0x307ffa(0x8d)]),_0x4eb359=(_0x5e310d=this[_0x307ffa(0x85)]())==null?void 0x0:_0x5e310d[_0x307ffa(0xa6)]();if(!_0x4eb359)throw new Error('No\x20active\x20workbook\x20found.');const _0x38c54f=_0x52d640[_0x307ffa(0x8e)](_0x4eb359);return(_0x100b74=_0x38c54f==null?void 0x0:_0x38c54f[_0x307ffa(0x8c)]())!=null?_0x100b74:n[_0x307ffa(0x83)]['IDLE'];}[_0x49cae2(0x9a)](){const _0x324008=_0x49cae2;var _0x136410;const _0x363a1a=this[_0x324008(0x82)][_0x324008(0x91)](n['LiveShareController']),_0x4cedda=(_0x136410=this['getActiveWorkbook']())==null?void 0x0:_0x136410[_0x324008(0xa6)]();if(!_0x4cedda)throw new Error(_0x324008(0xa1));const _0x13e285=_0x363a1a[_0x324008(0x8e)](_0x4cedda);if(!_0x13e285)throw new Error(_0x324008(0xa7));_0x13e285[_0x324008(0x9a)]();}[_0x49cae2(0x96)](){const _0x2aa1d9=_0x49cae2;var _0x3ef241;const _0x46b98e=this[_0x2aa1d9(0x82)]['get'](n[_0x2aa1d9(0x8d)]),_0x65d0b4=(_0x3ef241=this[_0x2aa1d9(0x85)]())==null?void 0x0:_0x3ef241[_0x2aa1d9(0xa6)]();if(!_0x65d0b4)throw new Error(_0x2aa1d9(0xa1));const _0x3b1043=_0x46b98e['getLiveShareCoordinatorSync'](_0x65d0b4);if(!_0x3b1043)throw new Error(_0x2aa1d9(0xa7));_0x3b1043[_0x2aa1d9(0x96)]();}[_0x49cae2(0x98)](){const _0x38a226=_0x49cae2;var _0x1b3d07;const _0x1978a2=this[_0x38a226(0x82)][_0x38a226(0x91)](n[_0x38a226(0x8d)]),_0x56b0d1=(_0x1b3d07=this[_0x38a226(0x85)]())==null?void 0x0:_0x1b3d07[_0x38a226(0xa6)]();if(!_0x56b0d1)throw new Error(_0x38a226(0xa1));const _0x1a6b87=_0x1978a2['getLiveShareCoordinatorSync'](_0x56b0d1);if(!_0x1a6b87)throw new Error(_0x38a226(0xa7));_0x1a6b87[_0x38a226(0xa3)]();}[_0x49cae2(0x8b)](){const _0x3b951a=_0x49cae2;var _0x6d8be1;const _0x274ae2=this[_0x3b951a(0x82)][_0x3b951a(0x91)](n[_0x3b951a(0x8d)]),_0x42ecbb=(_0x6d8be1=this['getActiveWorkbook']())==null?void 0x0:_0x6d8be1[_0x3b951a(0xa6)]();if(!_0x42ecbb)throw new Error(_0x3b951a(0xa1));const _0x10b225=_0x274ae2[_0x3b951a(0x8e)](_0x42ecbb);if(!_0x10b225)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x10b225[_0x3b951a(0x8b)]();}}a[_0x49cae2(0x99)][_0x49cae2(0xa5)](C);class L extends a[_0x49cae2(0x84)]{get['LiveShareStatusEnum'](){const _0x573e7f=_0x49cae2;return n[_0x573e7f(0x83)];}}a[_0x49cae2(0x84)][_0x49cae2(0xa5)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x44ba(_0x52a5f6,_0x1aba47){const _0x34ff6a=_0x34ff();return _0x44ba=function(_0x44baff,_0x2767d2){_0x44baff=_0x44baff-0xd7;let _0x28d3f3=_0x34ff6a[_0x44baff];return _0x28d3f3;},_0x44ba(_0x52a5f6,_0x1aba47);}const _0x1b3401=_0x44ba;function _0x34ff(){const _0x44af3b=['jsx','_presenter','text','idSuffix','displayName','_handleOffline','defs','Plugin','LIVESHARE_FETCH_OPERATIONS','getUnitId','dispose','408695jXdDEf','createInstance','values','random','You\x27re\x20not\x20following\x20the\x20presenter','_handleOnline','IUniverInstanceService','touchDependencies','send','BuiltInUIPart','Inject','complete','evenodd','symbol','_stopFollowing','toString','_unitID','_beIdle','_fetchOperations','_injector','get','map','params','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pluginName','UNIVER_SHEET','_stopPresenting','_mountLiveShare','BehaviorSubject','_status','PRESENTING','NEW_CHANGESETS','ICommandService','11283003oJNJwD','tryStartPresenting','button','end','jsxs','SetWorksheetActiveOperation','getMemberID','shouldShareOperation','CollaborationSessionService','846774IVBTvg','_collabSession','override','includes','pipe','not-following','attrs','disposeWithMe','dispose$','createElement','defIds','none','CollaborationEvent','getCurrentTypeOfUnit$','_init','_reporters','set','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','clsx','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','then','Start\x20following','_commandDisposable','status$','UniverInstanceType','asObservable','Disposable','_commandService','2661118mtgvrz','following','idle','_uiPartsService','live-share-icon','SessionStatus','string','data','mutations','_handleTerminate','DependentOn','UniverLiveSharePlugin','url(#$1','has','find','Start','SetZoomRatioOperation','2986047uqXDOP','defineProperty','DisposableCollection','throttleTime','1em','parse','Stop\x20following','_entities','tag','add','use','init','CommandType','executeCommand','toDisposable','path','SetScrollOperation','clear','presenting','Fragment','mask','length','currentColor','delete','registerSharedOperation','replace','offline','IConfigService','Injector','Module','stringify','sessionStatus$','_startLiveShareCoordinator','_configService','subscribe','useEffect','_status$','stopPresenting','onCommandExecuted','event$','_sharedOperations','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleOperation','mergeOverrideWithDependencies','LiveShareIcon','getOwnPropertyDescriptor','IDLE','entries','getLiveShareCoordinator','sheet','merge','next','getTypeOfUnitDisposed$','default','useState','_startPresenting','forEach','Stop\x20presenting','_collabSessionService','DesktopLiveShareController','InsertSheetMutation','onStarting','RxDisposable','getInitialStates','0\x200\x2017\x2017','8VcwAzu','children','trim','univer-size-4','FOLLOWING','parseProtocolChangeset','useObservable','118824VTaAXM','assign','from','_handleNewChangeSets','div','getTypeOfUnitAdded$','registerInitialStateReporter','You\x27are\x20offline.','NOT_FOLLOWING','5CqVSKA','HEADER_MENU','LiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','_config','LiveShareController','getStatus','stopFollowing','fill','univer-mb-3\x20univer-w-full\x20univer-text-sm','colorChannel1','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','current','Subject','LIVESHARE_TERMINATE','_univerInstanceService','useRef','takeUntil','LiveShareService','205308RjLldk','unitId','live-share.config','registerComponent','UNIVER_UNKNOWN','UniverIcon','LIVESHARE_NEW_HOST','Button','_startFollowing','You\x27re\x20presenting\x20the\x20document','type','startFollowing','_liveShareService'];_0x34ff=function(){return _0x44af3b;};return _0x34ff();}(function(_0x38fefd,_0x3ceeed){const _0x271de1=_0x44ba,_0x100daf=_0x38fefd();while(!![]){try{const _0x2c595a=-parseInt(_0x271de1(0x197))/0x1+-parseInt(_0x271de1(0x13d))/0x2+parseInt(_0x271de1(0x14e))/0x3+-parseInt(_0x271de1(0xdd))/0x4*(-parseInt(_0x271de1(0x1a0))/0x5)+-parseInt(_0x271de1(0x11f))/0x6+-parseInt(_0x271de1(0xf5))/0x7*(-parseInt(_0x271de1(0x190))/0x8)+parseInt(_0x271de1(0x116))/0x9;if(_0x2c595a===_0x3ceeed)break;else _0x100daf['push'](_0x100daf['shift']());}catch(_0x24b550){_0x100daf['push'](_0x100daf['shift']());}}}(_0x34ff,0xbb8d8));var T=Object[_0x1b3401(0x14f)],U=(_0x22136e,_0x5dddf1,_0x5d8159)=>_0x5dddf1 in _0x22136e?T(_0x22136e,_0x5dddf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d8159}):_0x22136e[_0x5dddf1]=_0x5d8159,_=(_0x580fed,_0x57a8a2,_0x3b5983)=>U(_0x580fed,typeof _0x57a8a2!=_0x1b3401(0x102)?_0x57a8a2+'':_0x57a8a2,_0x3b5983);Object[_0x1b3401(0x14f)](exports,Symbol['toStringTag'],{'value':_0x1b3401(0x16b)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x484797,..._0x34c744}){const _0x5e1876=_0x1b3401,{icon:_0x4a328f,id:_0x317108,className:_0x58a079,extend:_0x5eff59,..._0x42500d}=_0x34c744,_0x4f40d8=(_0x5e1876(0x177)+_0x317108+'\x20'+(_0x58a079||''))[_0x5e1876(0x192)](),_0x21687a=v[_0x5e1876(0xda)]('_'+H());return j(_0x4a328f,''+_0x317108,{'defIds':_0x4a328f[_0x5e1876(0x129)],'idSuffix':_0x21687a[_0x5e1876(0x1ac)]},{'ref':_0x484797,'className':_0x4f40d8,..._0x42500d},_0x5eff59);}function j(_0xb03a7c,_0x1bb4c6,_0x55fe50,_0x4a59a3,_0x3625db){const _0x1b9ffa=_0x1b3401;return v[_0x1b9ffa(0x128)](_0xb03a7c[_0x1b9ffa(0x156)],{'key':_0x1bb4c6,...y(_0xb03a7c,_0x55fe50,_0x3625db),..._0x4a59a3},(F(_0xb03a7c,_0x55fe50)['children']||[])[_0x1b9ffa(0x10a)]((_0x1e4e98,_0x59e63a)=>j(_0x1e4e98,_0x1bb4c6+'-'+_0xb03a7c['tag']+'-'+_0x59e63a,_0x55fe50,void 0x0,_0x3625db)));}function y(_0x5a3172,_0x207e4b,_0x2755eb){const _0x59c8b7=_0x1b3401,_0x5bbd9d={..._0x5a3172[_0x59c8b7(0x125)]};_0x2755eb!=null&&_0x2755eb[_0x59c8b7(0x1aa)]&&_0x5bbd9d[_0x59c8b7(0x1a8)]===_0x59c8b7(0x1aa)&&(_0x5bbd9d[_0x59c8b7(0x1a8)]=_0x2755eb[_0x59c8b7(0x1aa)]),_0x5a3172['tag']==='mask'&&_0x5bbd9d['id']&&(_0x5bbd9d['id']=_0x5bbd9d['id']+_0x207e4b[_0x59c8b7(0xed)]),Object[_0x59c8b7(0x17e)](_0x5bbd9d)['forEach'](([_0x183e74,_0x2be75d])=>{const _0x1cb93f=_0x59c8b7;_0x183e74===_0x1cb93f(0x162)&&typeof _0x2be75d==_0x1cb93f(0x143)&&(_0x5bbd9d[_0x183e74]=_0x2be75d[_0x1cb93f(0x167)](/url\(#(.*)\)/,_0x1cb93f(0x149)+_0x207e4b['idSuffix']+')'));});const {defIds:_0x153cb0}=_0x207e4b;return!_0x153cb0||_0x153cb0[_0x59c8b7(0x163)]===0x0||(_0x5a3172[_0x59c8b7(0x156)]===_0x59c8b7(0x158)&&_0x5bbd9d[_0x59c8b7(0x134)]&&(_0x5bbd9d[_0x59c8b7(0x134)]=_0x5bbd9d[_0x59c8b7(0x134)]+_0x207e4b['idSuffix']),Object[_0x59c8b7(0x17e)](_0x5bbd9d)[_0x59c8b7(0x187)](([_0x5c88be,_0x5c302c])=>{const _0x34f08f=_0x59c8b7;typeof _0x5c302c=='string'&&(_0x5bbd9d[_0x5c88be]=_0x5c302c[_0x34f08f(0x167)](/url\(#(.*)\)/,_0x34f08f(0x149)+_0x207e4b[_0x34f08f(0xed)]+')'));})),_0x5bbd9d;}function F(_0x3c1fa6,_0x4f7188){const _0x4740f1=_0x1b3401;var _0x1b4307;const {defIds:_0x4245f8}=_0x4f7188;return!_0x4245f8||_0x4245f8[_0x4740f1(0x163)]===0x0?_0x3c1fa6:_0x3c1fa6[_0x4740f1(0x156)]===_0x4740f1(0xf0)&&((_0x1b4307=_0x3c1fa6[_0x4740f1(0x191)])!=null&&_0x1b4307[_0x4740f1(0x163)])?{..._0x3c1fa6,'children':_0x3c1fa6['children'][_0x4740f1(0x10a)](_0x5d2d35=>typeof _0x5d2d35['attrs']['id']==_0x4740f1(0x143)&&_0x4245f8&&_0x4245f8[_0x4740f1(0x122)](_0x5d2d35[_0x4740f1(0x125)]['id'])?{..._0x5d2d35,'attrs':{..._0x5d2d35[_0x4740f1(0x125)],'id':_0x5d2d35[_0x4740f1(0x125)]['id']+_0x4f7188[_0x4740f1(0xed)]}}:_0x5d2d35)}:_0x3c1fa6;}function H(){const _0x39f34b=_0x1b3401;return Math[_0x39f34b(0xf8)]()[_0x39f34b(0x104)](0x24)['substring'](0x2,0x8);}x[_0x1b3401(0xee)]=_0x1b3401(0xe2);const V={'tag':'svg','attrs':{'xmlns':_0x1b3401(0x131),'fill':_0x1b3401(0x12a),'viewBox':_0x1b3401(0x18f),'width':'1em','height':_0x1b3401(0x152)},'children':[{'tag':_0x1b3401(0x15d),'attrs':{'fill':_0x1b3401(0x164),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x1b3401(0x164),'d':_0x1b3401(0x1ab),'fillRule':_0x1b3401(0x101),'clipRule':_0x1b3401(0x101)}}]},R=v['forwardRef'](function(_0x205bca,_0x3167f2){const _0x4add07=_0x1b3401;return v[_0x4add07(0x128)](x,Object[_0x4add07(0x198)]({},_0x205bca,{'id':_0x4add07(0x141),'ref':_0x3167f2,'icon':V}));});R[_0x1b3401(0xee)]=_0x1b3401(0x17b);class E extends o[_0x1b3401(0x13b)]{constructor(){const _0x5371cb=_0x1b3401;super(...arguments),_(this,_0x5371cb(0x176),new Set()),_(this,'_reporters',new Set());}[_0x1b3401(0x166)](_0x7f7ce9){const _0x5af53c=_0x1b3401;return this[_0x5af53c(0x176)][_0x5af53c(0x157)](_0x7f7ce9),o[_0x5af53c(0x15c)](()=>this[_0x5af53c(0x176)][_0x5af53c(0x165)](_0x7f7ce9));}[_0x1b3401(0x19d)](_0x2e0b22){const _0x59c209=_0x1b3401;return this['_reporters']['add'](_0x2e0b22),o[_0x59c209(0x15c)](()=>this['_reporters']['delete'](_0x2e0b22));}[_0x1b3401(0x11d)](_0x251a9c){const _0x3c9cce=_0x1b3401;return this[_0x3c9cce(0x176)][_0x3c9cce(0x14a)](_0x251a9c);}[_0x1b3401(0x18e)](_0x2a4f67){const _0x10c810=_0x1b3401;return Array[_0x10c810(0x199)](this[_0x10c810(0x12e)])[_0x10c810(0x10a)](_0x316c64=>_0x316c64(_0x2a4f67));}}var M=Object[_0x1b3401(0x17c)],P=(_0x48982a,_0x59aaaf,_0x6bb4e0,_0x279717)=>{const _0x1b0d96=_0x1b3401;for(var _0x36d47b=_0x279717>0x1?void 0x0:_0x279717?M(_0x59aaaf,_0x6bb4e0):_0x59aaaf,_0x12baf5=_0x48982a[_0x1b0d96(0x163)]-0x1,_0x32f462;_0x12baf5>=0x0;_0x12baf5--)(_0x32f462=_0x48982a[_0x12baf5])&&(_0x36d47b=_0x32f462(_0x36d47b)||_0x36d47b);return _0x36d47b;},S=(_0xe60488,_0x321d19)=>(_0x3a4186,_0x466226)=>_0x321d19(_0x3a4186,_0x466226,_0xe60488);exports[_0x1b3401(0x1a5)]=class extends o[_0x1b3401(0x18d)]{constructor(_0x22aedc,_0x2e8cde,_0x4207cd){const _0x268378=_0x1b3401;super(),_(this,_0x268378(0x155),new Map()),(this[_0x268378(0xd9)]=_0x22aedc,this[_0x268378(0x108)]=_0x2e8cde,this['_collabSessionService']=_0x4207cd,this['_init']());}async[_0x1b3401(0x17f)](_0x1f68cd){const _0x583453=_0x1b3401;return this[_0x583453(0x155)][_0x583453(0x14a)](_0x1f68cd)||await this[_0x583453(0x16e)](_0x1f68cd),this[_0x583453(0x155)][_0x583453(0x109)](_0x1f68cd);}['getLiveShareCoordinatorSync'](_0x185a5d){const _0x4d81e3=_0x1b3401;var _0x5673c4;return(_0x5673c4=this[_0x4d81e3(0x155)][_0x4d81e3(0x109)](_0x185a5d))!=null?_0x5673c4:null;}[_0x1b3401(0x12d)](){const _0x5694d9=_0x1b3401;this[_0x5694d9(0xd9)][_0x5694d9(0x19c)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I[_0x5694d9(0xdb)](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](async _0x16f6b8=>{const _0x22b5a7=_0x5694d9,_0x17bf87=_0x16f6b8[_0x22b5a7(0xf3)]();this[_0x22b5a7(0x155)][_0x22b5a7(0x14a)](_0x17bf87)||this['_startLiveShareCoordinator'](_0x17bf87);}),this['_univerInstanceService'][_0x5694d9(0x183)](o[_0x5694d9(0x139)][_0x5694d9(0x10e)])['pipe'](I['takeUntil'](this[_0x5694d9(0x127)]))[_0x5694d9(0x170)](_0x56e555=>{const _0x5c1244=_0x5694d9,_0x5cc818=_0x56e555[_0x5c1244(0xf3)](),_0x4b1dfe=this['_entities'][_0x5c1244(0x109)](_0x5cc818);_0x4b1dfe==null||_0x4b1dfe[_0x5c1244(0xf4)]();});}async[_0x1b3401(0x16e)](_0x187341){const _0x276761=_0x1b3401,_0x3cc6f7=await this[_0x276761(0x189)]['requireSession'](_0x187341),_0x3010be=this[_0x276761(0x108)][_0x276761(0xf6)](exports[_0x276761(0x1a2)],_0x187341,_0x3cc6f7);return _0x3010be[_0x276761(0x159)](),this[_0x276761(0x155)][_0x276761(0x12f)](_0x187341,_0x3010be),_0x3010be;}},exports[_0x1b3401(0x1a5)]=P([S(0x0,o[_0x1b3401(0xfb)]),S(0x1,o['Inject'](o[_0x1b3401(0x16a)])),S(0x2,o['Inject'](b[_0x1b3401(0x11e)]))],exports[_0x1b3401(0x1a5)]);var u=(_0x3f4010=>(_0x3f4010[_0x1b3401(0x178)]=_0x1b3401(0x168),_0x3f4010['IDLE']=_0x1b3401(0x13f),_0x3f4010[_0x1b3401(0x194)]=_0x1b3401(0x13e),_0x3f4010[_0x1b3401(0x19f)]='not-following',_0x3f4010[_0x1b3401(0x113)]=_0x1b3401(0x160),_0x3f4010))(u||{});const k=_0x1b3401(0x1a3),q=0xc8;exports[_0x1b3401(0x1a2)]=class extends o['RxDisposable']{constructor(_0x500f41,_0x27a632,_0x3470b3,_0x513958,_0x25e7ed){const _0x20118b=_0x1b3401;super(),_(this,_0x20118b(0x172),new O[(_0x20118b(0x111))](_0x20118b(0x13f))),_(this,_0x20118b(0x138),this[_0x20118b(0x172)][_0x20118b(0x13a)]()),_(this,'_init',!0x1),_(this,_0x20118b(0x137),null),_(this,_0x20118b(0xeb),null),(this[_0x20118b(0x105)]=_0x500f41,this[_0x20118b(0x120)]=_0x27a632,this[_0x20118b(0x16f)]=_0x3470b3,this[_0x20118b(0xe9)]=_0x513958,this[_0x20118b(0x13c)]=_0x25e7ed);}get[_0x1b3401(0x112)](){const _0x3a21b0=_0x1b3401;return this[_0x3a21b0(0x172)]['getValue']();}['dispose'](){const _0x3e0628=_0x1b3401;var _0x446f8b;(_0x446f8b=this[_0x3e0628(0x137)])==null||_0x446f8b[_0x3e0628(0xf4)](),this[_0x3e0628(0x172)]['next']('idle'),this[_0x3e0628(0x172)][_0x3e0628(0x100)]();}[_0x1b3401(0x1a6)](){const _0x28670e=_0x1b3401;return this[_0x28670e(0x112)];}[_0x1b3401(0x159)](){const _0xf7774b=_0x1b3401;this['_init']||(this[_0xf7774b(0x12d)]=!0x0,this[_0xf7774b(0x120)][_0xf7774b(0x16d)][_0xf7774b(0x123)](I['takeUntil'](this[_0xf7774b(0x127)]))['subscribe'](_0xcd1218=>{const _0x45f528=_0xf7774b;switch(_0xcd1218){case b['SessionStatus']['OFFLINE']:this[_0x45f528(0xef)]();break;case b[_0x45f528(0x142)]['ONLINE']:this[_0x45f528(0xfa)]();break;}}),this[_0xf7774b(0x120)][_0xf7774b(0x175)]['pipe'](I[_0xf7774b(0xdb)](this['dispose$']))[_0xf7774b(0x170)](_0x4c7916=>{const _0x190586=_0xf7774b,{eventID:_0x210ba4}=_0x4c7916;switch(_0x210ba4){case d['CollaborationEvent'][_0x190586(0xe3)]:this['_handleNewHost'](_0x4c7916);break;case d['CollaborationEvent'][_0x190586(0x130)]:this['_handleOperation'](_0x4c7916);break;case d[_0x190586(0x12b)][_0x190586(0xd8)]:this[_0x190586(0x146)]();break;case d[_0x190586(0x12b)][_0x190586(0x114)]:this['_handleNewChangeSets'](_0x4c7916);break;}}));}[_0x1b3401(0x117)](){const _0x2336f5=_0x1b3401;this[_0x2336f5(0x120)][_0x2336f5(0xfd)]({'eventID':d[_0x2336f5(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2336f5(0x11c)]()}},this[_0x2336f5(0x105)]);}[_0x1b3401(0x173)](){const _0x35c3bd=_0x1b3401;this[_0x35c3bd(0x112)]===_0x35c3bd(0x160)&&(this[_0x35c3bd(0x172)]['next'](_0x35c3bd(0x13f)),this[_0x35c3bd(0x120)][_0x35c3bd(0xfd)]({'eventID':d[_0x35c3bd(0x12b)][_0x35c3bd(0xd8)],'data':{'unitID':this[_0x35c3bd(0x105)]}},this[_0x35c3bd(0x105)]));}[_0x1b3401(0xe8)](){const _0x199b03=_0x1b3401;this[_0x199b03(0x112)]===_0x199b03(0x124)&&(this['_status$']['next']('following'),this[_0x199b03(0xe5)]());}[_0x1b3401(0x1a7)](){const _0x57e76b=_0x1b3401;this['_status']===_0x57e76b(0x13e)&&this[_0x57e76b(0x103)]();}['_handleNewHost'](_0x2258a4){const _0x22c09c=_0x1b3401,{presenter:_0x1bbf6b}=_0x2258a4['data'],_0x2a3179=this[_0x22c09c(0x120)][_0x22c09c(0x11c)]();this['_presenter']=_0x1bbf6b,_0x1bbf6b===_0x2a3179?(this[_0x22c09c(0x103)](),this[_0x22c09c(0x186)]()):this[_0x22c09c(0x112)]!=='not-following'&&(this[_0x22c09c(0x10f)](),this[_0x22c09c(0xe5)]());}[_0x1b3401(0x107)](){const _0x505571=_0x1b3401,_0x279fc8={'eventID':d['CollaborationEvent'][_0x505571(0xf2)]};this[_0x505571(0x120)][_0x505571(0xfd)](_0x279fc8,this[_0x505571(0x105)]);}[_0x1b3401(0x146)](){const _0x13572c=_0x1b3401;this['_presenter']=null,this[_0x13572c(0x112)]!==_0x13572c(0x160)&&this[_0x13572c(0x106)]();}[_0x1b3401(0x19a)](_0x44acb1){const _0x112818=_0x1b3401;if(this[_0x112818(0x112)]==='following'&&this[_0x112818(0xeb)]===_0x44acb1[_0x112818(0x144)]['memberID']){const _0x393a2d=d[_0x112818(0x195)](_0x44acb1[_0x112818(0x144)])[_0x112818(0x145)]['reverse']()[_0x112818(0x14b)](_0x39e87f=>_0x39e87f['id']===C[_0x112818(0x18b)]['id']);if(_0x393a2d){const _0x557147=_0x393a2d[_0x112818(0x10b)][_0x112818(0xde)],_0x37ec06=_0x393a2d['params'][_0x112818(0x180)]['id'];setTimeout(()=>{const _0x358f86=_0x112818;this['_commandService'][_0x358f86(0x15b)](C[_0x358f86(0x11b)]['id'],{'unitId':_0x557147,'subUnitId':_0x37ec06},{'fromCollab':!0x0});});}}}[_0x1b3401(0x186)](){const _0x269dd4=_0x1b3401;this[_0x269dd4(0x172)][_0x269dd4(0x182)](_0x269dd4(0x160));const _0x2eea39=new Map(),_0x19afab=this[_0x269dd4(0x137)]=new o[(_0x269dd4(0x150))]();_0x19afab[_0x269dd4(0x157)](o['toDisposable'](()=>{const _0x58c970=_0x269dd4;_0x2eea39[_0x58c970(0x187)](_0x51a9aa=>_0x51a9aa[_0x58c970(0x100)]()),_0x2eea39[_0x58c970(0x15f)]();})),_0x19afab[_0x269dd4(0x157)](this[_0x269dd4(0x13c)][_0x269dd4(0x174)](_0x4e094b=>{const _0x2f45e1=_0x269dd4;var _0x14afaf;if(_0x4e094b[_0x2f45e1(0xe7)]!==o[_0x2f45e1(0x15a)]['OPERATION']||!this['_liveShareService'][_0x2f45e1(0x11d)](_0x4e094b['id']))return;const {id:_0xb62b7}=_0x4e094b;let _0x11d585;_0x2eea39[_0x2f45e1(0x14a)](_0xb62b7)?_0x11d585=_0x2eea39['get'](_0xb62b7):(_0x11d585=new O[(_0x2f45e1(0xd7))](),_0x2eea39[_0x2f45e1(0x12f)](_0xb62b7,_0x11d585),_0x11d585[_0x2f45e1(0x123)](I[_0x2f45e1(0x151)]((_0x14afaf=this['_configService']['getConfig'](k))!=null?_0x14afaf:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50b542=>{const _0x20634b=_0x2f45e1;this['_collabSession'][_0x20634b(0xfd)]({'eventID':d[_0x20634b(0x12b)][_0x20634b(0x130)],'data':{'unitID':this['_unitID'],'operations':{[_0x50b542['id']]:{'id':_0x50b542['id'],'params':JSON[_0x20634b(0x16c)](_0x50b542[_0x20634b(0x10b)])}}}},this[_0x20634b(0x105)]);})),_0x11d585[_0x2f45e1(0x182)](_0x4e094b);})),this[_0x269dd4(0xe9)][_0x269dd4(0x18e)](this[_0x269dd4(0x105)])[_0x269dd4(0x187)](_0x2bb803=>this[_0x269dd4(0x120)][_0x269dd4(0xfd)]({'eventID':d[_0x269dd4(0x12b)][_0x269dd4(0x130)],'data':{'unitID':this[_0x269dd4(0x105)],'operations':{[_0x2bb803['id']]:{'id':_0x2bb803['id'],'params':JSON[_0x269dd4(0x16c)](_0x2bb803[_0x269dd4(0x10b)])}}}},this[_0x269dd4(0x105)]));}[_0x1b3401(0x10f)](){const _0x5517be=_0x1b3401;var _0xeaab31;this[_0x5517be(0x172)][_0x5517be(0x182)]('idle'),(_0xeaab31=this[_0x5517be(0x137)])==null||_0xeaab31['dispose'](),this[_0x5517be(0x137)]=null;}[_0x1b3401(0xe5)](){const _0x9640ec=_0x1b3401;var _0x2f8f79;(_0x2f8f79=this['_commandDisposable'])==null||_0x2f8f79['dispose'](),this[_0x9640ec(0x172)][_0x9640ec(0x182)]('following');}[_0x1b3401(0x106)](){const _0x1a3112=_0x1b3401;var _0x4ede84;this[_0x1a3112(0x172)][_0x1a3112(0x182)](_0x1a3112(0x13f)),(_0x4ede84=this[_0x1a3112(0x137)])==null||_0x4ede84['dispose'](),this[_0x1a3112(0x137)]=null;}['_stopFollowing'](){const _0x2a57ef=_0x1b3401;var _0x392292;this[_0x2a57ef(0x172)]['next'](_0x2a57ef(0x124)),(_0x392292=this[_0x2a57ef(0x137)])==null||_0x392292[_0x2a57ef(0xf4)]();}[_0x1b3401(0x179)](_0x549b31){const _0x1c0d53=_0x1b3401;if(['presenting','not-following',_0x1c0d53(0x168)][_0x1c0d53(0x122)](this[_0x1c0d53(0x112)])||!_0x549b31[_0x1c0d53(0x144)]['presenter']||_0x549b31[_0x1c0d53(0x144)]['presenter']===this[_0x1c0d53(0x120)][_0x1c0d53(0x11c)]())return;this[_0x1c0d53(0x112)]===_0x1c0d53(0x13f)&&this[_0x1c0d53(0xe5)]();const _0x4f4bd6=_0x549b31[_0x1c0d53(0x144)]['operations'];Object[_0x1c0d53(0xf7)](_0x4f4bd6)[_0x1c0d53(0x187)](_0xe223ea=>{const _0x30522f=_0x1c0d53;this[_0x30522f(0x13c)][_0x30522f(0x15b)](_0xe223ea['id'],_0xe223ea[_0x30522f(0x10b)]?JSON[_0x30522f(0x153)](_0xe223ea[_0x30522f(0x10b)]):null,{'fromCollab':!0x0});});}[_0x1b3401(0xef)](){const _0x7c4b9f=_0x1b3401;var _0x290680;this[_0x7c4b9f(0x172)]['next'](_0x7c4b9f(0x168)),(_0x290680=this[_0x7c4b9f(0x137)])==null||_0x290680[_0x7c4b9f(0xf4)]();}[_0x1b3401(0xfa)](){const _0x531136=_0x1b3401;this[_0x531136(0x172)][_0x531136(0x182)](_0x531136(0x13f)),this[_0x531136(0x107)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x1b3401(0x169)]),S(0x3,o[_0x1b3401(0xff)](E)),S(0x4,o[_0x1b3401(0x115)])],exports[_0x1b3401(0x1a2)]);function $(){const _0x2e0e0c=_0x1b3401,_0x16ebf9=p['useDependency'](exports['LiveShareController']),_0x5174f0=p['useDependency'](o[_0x2e0e0c(0xfb)]),_0x456ae6=p[_0x2e0e0c(0x196)](()=>_0x5174f0[_0x2e0e0c(0x12c)](o[_0x2e0e0c(0x139)][_0x2e0e0c(0x10e)]),void 0x0,!0x1,[]),[_0xc0746f,_0x2a27d7]=v[_0x2e0e0c(0x185)](null),[_0x4e46e6,_0x59d2b2]=v[_0x2e0e0c(0x185)](u[_0x2e0e0c(0x17d)]),_0x4c13e8=v[_0x2e0e0c(0xda)](null);return v[_0x2e0e0c(0x171)](()=>(_0x456ae6&&_0x16ebf9['getLiveShareCoordinator'](_0x456ae6['getUnitId']())[_0x2e0e0c(0x135)](_0x29ac5b=>{const _0x8dc728=_0x2e0e0c;_0x2a27d7(_0x29ac5b),_0x4c13e8[_0x8dc728(0x1ac)]=_0x29ac5b['status$'][_0x8dc728(0x170)](_0x220a49=>{_0x59d2b2(_0x220a49);});}),()=>{const _0x45a540=_0x2e0e0c;var _0x1d3614;(_0x1d3614=_0x4c13e8[_0x45a540(0x1ac)])==null||_0x1d3614['unsubscribe'](),_0x4c13e8[_0x45a540(0x1ac)]=null;}),[_0x456ae6,_0x16ebf9]),_0xc0746f?l[_0x2e0e0c(0xea)](f['Dropdown'],{'align':_0x2e0e0c(0x119),'disabled':_0x4e46e6===u[_0x2e0e0c(0x178)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2e0e0c(0xea)](W,{'status':_0x4e46e6,'coordinator':_0xc0746f}),'children':l[_0x2e0e0c(0xea)](_0x2e0e0c(0x118),{'className':f[_0x2e0e0c(0x132)](_0x2e0e0c(0x10c),{'univer-cursor-not-allowed':_0x4e46e6===u[_0x2e0e0c(0x178)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4e46e6!==u[_0x2e0e0c(0x178)]}),'type':_0x2e0e0c(0x118),'children':l['jsx'](R,{'className':_0x2e0e0c(0x193)})})}):null;}function W(_0x30a7fd){const _0x1a59d8=_0x1b3401,{status:_0x19dee1,coordinator:_0x23f495}=_0x30a7fd;switch(_0x19dee1){case u[_0x1a59d8(0x17d)]:return l[_0x1a59d8(0xea)](G,{'coordinator':_0x23f495});case u['FOLLOWING']:return l[_0x1a59d8(0xea)](B,{'coordinator':_0x23f495});case u[_0x1a59d8(0x19f)]:return l[_0x1a59d8(0xea)](Y,{'coordinator':_0x23f495});case u[_0x1a59d8(0x178)]:return l[_0x1a59d8(0xea)](J,{});case u['PRESENTING']:return l[_0x1a59d8(0xea)](Z,{'coordinator':_0x23f495});default:return null;}}function G(_0x194ce4){const _0x1ef3ae=_0x1b3401,{coordinator:_0x38f9b3}=_0x194ce4;return l['jsxs'](l[_0x1ef3ae(0x161)],{'children':[l['jsx'](_0x1ef3ae(0x19b),{'className':_0x1ef3ae(0x1a9),'children':'Present\x20this\x20document'}),l[_0x1ef3ae(0xea)](f['Button'],{'onClick':()=>_0x38f9b3['tryStartPresenting'](),'children':_0x1ef3ae(0x14c)})]});}function B(_0x13bf68){const _0x35f2d3=_0x1b3401,{coordinator:_0x22a0b1}=_0x13bf68;return l[_0x35f2d3(0x11a)](l['Fragment'],{'children':[l[_0x35f2d3(0xea)](_0x35f2d3(0x19b),{'className':_0x35f2d3(0x1a9),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x35f2d3(0xea)](f[_0x35f2d3(0xe4)],{'onClick':()=>_0x22a0b1[_0x35f2d3(0x1a7)](),'children':_0x35f2d3(0x154)})]});}function Y(_0x327693){const _0x3e6c00=_0x1b3401,{coordinator:_0x269f30}=_0x327693;return l['jsxs'](l[_0x3e6c00(0x161)],{'children':[l['jsx'](_0x3e6c00(0x19b),{'className':_0x3e6c00(0x1a9),'children':_0x3e6c00(0xf9)}),l[_0x3e6c00(0xea)](f[_0x3e6c00(0xe4)],{'variant':_0x3e6c00(0xec),'onClick':()=>_0x269f30['startFollowing'](),'children':_0x3e6c00(0x136)})]});}function Z(_0x1c4228){const _0x267a67=_0x1b3401,{coordinator:_0xea2861}=_0x1c4228;return l['jsxs'](l[_0x267a67(0x161)],{'children':[l[_0x267a67(0xea)](_0x267a67(0x19b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x267a67(0xe6)}),l[_0x267a67(0xea)](f[_0x267a67(0xe4)],{'variant':_0x267a67(0x184),'onClick':()=>_0xea2861[_0x267a67(0x173)](),'children':_0x267a67(0x188)})]});}function J(){const _0x5a0a2c=_0x1b3401;return l['jsx'](l[_0x5a0a2c(0x161)],{'children':_0x5a0a2c(0x19e)});}var K=Object[_0x1b3401(0x17c)],z=(_0x592e8f,_0x5950db,_0x2d77e8,_0x3560d6)=>{for(var _0x306ce7=_0x3560d6>0x1?void 0x0:_0x3560d6?K(_0x5950db,_0x2d77e8):_0x5950db,_0x38b650=_0x592e8f['length']-0x1,_0xf10e81;_0x38b650>=0x0;_0x38b650--)(_0xf10e81=_0x592e8f[_0x38b650])&&(_0x306ce7=_0xf10e81(_0x306ce7)||_0x306ce7);return _0x306ce7;},L=(_0x3b2ca2,_0x263f90)=>(_0x345be0,_0x5de25c)=>_0x263f90(_0x345be0,_0x5de25c,_0x3b2ca2);exports[_0x1b3401(0x18a)]=class extends o[_0x1b3401(0x13b)]{constructor(_0x254fc9,_0x18abf6){const _0x51bd0f=_0x1b3401;super(),this[_0x51bd0f(0x108)]=_0x254fc9,this['_uiPartsService']=_0x18abf6,this['_mountLiveShare']();}[_0x1b3401(0x110)](){const _0x19af5f=_0x1b3401;this['disposeWithMe'](this[_0x19af5f(0x140)][_0x19af5f(0xe0)](p[_0x19af5f(0xfe)][_0x19af5f(0x1a1)],()=>p['connectInjector']($,this[_0x19af5f(0x108)])));}},exports[_0x1b3401(0x18a)]=z([L(0x0,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x1b3401(0xdf),w={};var X=Object[_0x1b3401(0x17c)],ee=(_0x1496b2,_0x4c6bed,_0x2bb425,_0x2aef68)=>{for(var _0xf7a4e5=_0x2aef68>0x1?void 0x0:_0x2aef68?X(_0x4c6bed,_0x2bb425):_0x4c6bed,_0x5b0100=_0x1496b2['length']-0x1,_0x2bf272;_0x5b0100>=0x0;_0x5b0100--)(_0x2bf272=_0x1496b2[_0x5b0100])&&(_0xf7a4e5=_0x2bf272(_0xf7a4e5)||_0xf7a4e5);return _0xf7a4e5;},te=(_0x283677,_0x23731d)=>(_0x4627ea,_0x2c5e40)=>_0x23731d(_0x4627ea,_0x2c5e40,_0x283677);let m=class extends o['Disposable']{constructor(_0x420b40){const _0x132fb5=_0x1b3401;super(),this[_0x132fb5(0xe9)]=_0x420b40,this['_init']();}[_0x1b3401(0x12d)](){const _0x1f63ca=_0x1b3401;[D[_0x1f63ca(0x14d)]['id'],D[_0x1f63ca(0x15e)]['id'],C[_0x1f63ca(0x11b)]['id']][_0x1f63ca(0x187)](_0x11bea0=>{const _0x21a6f4=_0x1f63ca;this[_0x21a6f4(0x126)](this[_0x21a6f4(0xe9)][_0x21a6f4(0x166)](_0x11bea0));});}};m=ee([te(0x0,o[_0x1b3401(0xff)](E))],m);var ie=Object[_0x1b3401(0x14f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x29738f,_0x27a932,_0x53826c)=>_0x27a932 in _0x29738f?ie(_0x29738f,_0x27a932,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53826c}):_0x29738f[_0x27a932]=_0x53826c,re=(_0x2bfb52,_0x29b1b3,_0xcb84c0,_0x336a7f)=>{const _0x145f1d=_0x1b3401;for(var _0x3a303b=_0x336a7f>0x1?void 0x0:_0x336a7f?se(_0x29b1b3,_0xcb84c0):_0x29b1b3,_0x4ebf37=_0x2bfb52[_0x145f1d(0x163)]-0x1,_0x5b6dda;_0x4ebf37>=0x0;_0x4ebf37--)(_0x5b6dda=_0x2bfb52[_0x4ebf37])&&(_0x3a303b=_0x5b6dda(_0x3a303b)||_0x3a303b);return _0x3a303b;},N=(_0x4f2257,_0x313e91)=>(_0x571cac,_0xa8778a)=>_0x313e91(_0x571cac,_0xa8778a,_0x4f2257),A=(_0x50d3c5,_0x3e259e,_0x3c771c)=>ne(_0x50d3c5,typeof _0x3e259e!=_0x1b3401(0x102)?_0x3e259e+'':_0x3e259e,_0x3c771c);const oe=_0x1b3401(0x133);exports[_0x1b3401(0x148)]=class extends o[_0x1b3401(0xf1)]{constructor(_0x3a2cce=w,_0xd86513,_0x1fa8f){const _0x1dcf78=_0x1b3401;super(),this[_0x1dcf78(0x1a4)]=_0x3a2cce,this[_0x1dcf78(0x108)]=_0xd86513,this[_0x1dcf78(0x16f)]=_0x1fa8f;const {..._0x470080}=o[_0x1dcf78(0x181)]({},w,this['_config']);this[_0x1dcf78(0x16f)]['setConfig'](Q,_0x470080);}[_0x1b3401(0x18c)](){const _0x44c8e6=_0x1b3401;o['registerDependencies'](this['_injector'],o[_0x44c8e6(0x17a)]([[E],[exports[_0x44c8e6(0x1a5)]],[m],[exports[_0x44c8e6(0x18a)]]],this[_0x44c8e6(0x1a4)][_0x44c8e6(0x121)])),o[_0x44c8e6(0xfc)](this[_0x44c8e6(0x108)],[[m]]);}['onRendered'](){o['touchDependencies'](this['_injector'],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x1b3401(0x148)],'type',o[_0x1b3401(0x139)][_0x1b3401(0xe1)]),A(exports[_0x1b3401(0x148)],_0x1b3401(0x10d),oe),exports['UniverLiveSharePlugin']=re([o[_0x1b3401(0x147)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x1b3401(0xff)](o[_0x1b3401(0x16a)])),N(0x2,o[_0x1b3401(0x169)])],exports[_0x1b3401(0x148)]),exports['LiveShare']=$,exports[_0x1b3401(0xdc)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x26865f=_0xe914;(function(_0x3151df,_0x2b354f){const _0x57ae4a=_0xe914,_0x47eb96=_0x3151df();while(!![]){try{const _0x567e4b=parseInt(_0x57ae4a(0x206))/0x1+parseInt(_0x57ae4a(0x1fa))/0x2+-parseInt(_0x57ae4a(0x2c3))/0x3*(parseInt(_0x57ae4a(0x25e))/0x4)+parseInt(_0x57ae4a(0x215))/0x5+-parseInt(_0x57ae4a(0x2b9))/0x6*(parseInt(_0x57ae4a(0x261))/0x7)+-parseInt(_0x57ae4a(0x28d))/0x8+parseInt(_0x57ae4a(0x213))/0x9;if(_0x567e4b===_0x2b354f)break;else _0x47eb96['push'](_0x47eb96['shift']());}catch(_0x3d4784){_0x47eb96['push'](_0x47eb96['shift']());}}}(_0x219c,0x8cf09));var T=Object[_0x26865f(0x26e)],U=(_0x141daa,_0x87b48,_0x4a42b8)=>_0x87b48 in _0x141daa?T(_0x141daa,_0x87b48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a42b8}):_0x141daa[_0x87b48]=_0x4a42b8,_=(_0x5d0de6,_0x39dd6d,_0x6ec0c0)=>U(_0x5d0de6,typeof _0x39dd6d!='symbol'?_0x39dd6d+'':_0x39dd6d,_0x6ec0c0);Object['defineProperty'](exports,Symbol[_0x26865f(0x210)],{'value':_0x26865f(0x2a1)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x9e999b,..._0x3639e7}){const _0x2ca7dc=_0x26865f,{icon:_0x4bd0a4,id:_0x575cd1,className:_0x915878,extend:_0x597404,..._0x19e1e6}=_0x3639e7,_0x3386ad=(_0x2ca7dc(0x20d)+_0x575cd1+'\x20'+(_0x915878||''))[_0x2ca7dc(0x26d)](),_0x1aea62=v[_0x2ca7dc(0x231)]('_'+H());return j(_0x4bd0a4,''+_0x575cd1,{'defIds':_0x4bd0a4[_0x2ca7dc(0x255)],'idSuffix':_0x1aea62[_0x2ca7dc(0x246)]},{'ref':_0x9e999b,'className':_0x3386ad,..._0x19e1e6},_0x597404);}function j(_0x25d736,_0xe52003,_0x9070b0,_0x1eaf92,_0x2158d5){const _0x347b5c=_0x26865f;return v[_0x347b5c(0x2a6)](_0x25d736[_0x347b5c(0x2cb)],{'key':_0xe52003,...y(_0x25d736,_0x9070b0,_0x2158d5),..._0x1eaf92},(F(_0x25d736,_0x9070b0)[_0x347b5c(0x21e)]||[])[_0x347b5c(0x256)]((_0x49f73c,_0x1c3eec)=>j(_0x49f73c,_0xe52003+'-'+_0x25d736[_0x347b5c(0x2cb)]+'-'+_0x1c3eec,_0x9070b0,void 0x0,_0x2158d5)));}function y(_0x24c3f8,_0x4aff97,_0x140348){const _0xf86f0d=_0x26865f,_0x209dd6={..._0x24c3f8['attrs']};_0x140348!=null&&_0x140348[_0xf86f0d(0x2b3)]&&_0x209dd6['fill']===_0xf86f0d(0x2b3)&&(_0x209dd6['fill']=_0x140348[_0xf86f0d(0x2b3)]),_0x24c3f8['tag']===_0xf86f0d(0x242)&&_0x209dd6['id']&&(_0x209dd6['id']=_0x209dd6['id']+_0x4aff97['idSuffix']),Object['entries'](_0x209dd6)[_0xf86f0d(0x23e)](([_0x3d1e6b,_0x277202])=>{const _0x13a605=_0xf86f0d;_0x3d1e6b===_0x13a605(0x242)&&typeof _0x277202==_0x13a605(0x278)&&(_0x209dd6[_0x3d1e6b]=_0x277202['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4aff97['idSuffix']+')'));});const {defIds:_0x47db57}=_0x4aff97;return!_0x47db57||_0x47db57[_0xf86f0d(0x201)]===0x0||(_0x24c3f8['tag']===_0xf86f0d(0x262)&&_0x209dd6[_0xf86f0d(0x294)]&&(_0x209dd6[_0xf86f0d(0x294)]=_0x209dd6[_0xf86f0d(0x294)]+_0x4aff97[_0xf86f0d(0x2af)]),Object[_0xf86f0d(0x292)](_0x209dd6)['forEach'](([_0x4c650f,_0x250515])=>{const _0x4fc398=_0xf86f0d;typeof _0x250515=='string'&&(_0x209dd6[_0x4c650f]=_0x250515['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4aff97[_0x4fc398(0x2af)]+')'));})),_0x209dd6;}function F(_0x201b19,_0x1fcc05){const _0x544a1e=_0x26865f;var _0x532cc2;const {defIds:_0x1ae6fa}=_0x1fcc05;return!_0x1ae6fa||_0x1ae6fa[_0x544a1e(0x201)]===0x0?_0x201b19:_0x201b19[_0x544a1e(0x2cb)]==='defs'&&((_0x532cc2=_0x201b19[_0x544a1e(0x21e)])!=null&&_0x532cc2[_0x544a1e(0x201)])?{..._0x201b19,'children':_0x201b19['children']['map'](_0x56117e=>typeof _0x56117e[_0x544a1e(0x1f8)]['id']=='string'&&_0x1ae6fa&&_0x1ae6fa[_0x544a1e(0x299)](_0x56117e[_0x544a1e(0x1f8)]['id'])?{..._0x56117e,'attrs':{..._0x56117e['attrs'],'id':_0x56117e[_0x544a1e(0x1f8)]['id']+_0x1fcc05[_0x544a1e(0x2af)]}}:_0x56117e)}:_0x201b19;}function H(){const _0x1f41e6=_0x26865f;return Math['random']()[_0x1f41e6(0x2b4)](0x24)[_0x1f41e6(0x263)](0x2,0x8);}x[_0x26865f(0x272)]=_0x26865f(0x236);const V={'tag':_0x26865f(0x233),'attrs':{'xmlns':_0x26865f(0x208),'fill':_0x26865f(0x254),'viewBox':_0x26865f(0x243),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x26865f(0x2c6),'d':_0x26865f(0x2b1)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x26865f(0x2ae),'fillRule':_0x26865f(0x24e),'clipRule':_0x26865f(0x24e)}}]},R=v[_0x26865f(0x221)](function(_0xb78bb6,_0x55f270){const _0x44aa33=_0x26865f;return v['createElement'](x,Object[_0x44aa33(0x291)]({},_0xb78bb6,{'id':_0x44aa33(0x28f),'ref':_0x55f270,'icon':V}));});R[_0x26865f(0x272)]=_0x26865f(0x288);class E extends o[_0x26865f(0x248)]{constructor(){const _0x3fb831=_0x26865f;super(...arguments),_(this,_0x3fb831(0x2c0),new Set()),_(this,_0x3fb831(0x269),new Set());}[_0x26865f(0x2be)](_0x1f9243){const _0x179719=_0x26865f;return this['_sharedOperations'][_0x179719(0x28b)](_0x1f9243),o[_0x179719(0x220)](()=>this[_0x179719(0x2c0)][_0x179719(0x2a8)](_0x1f9243));}[_0x26865f(0x20f)](_0x233a0f){const _0x2458cf=_0x26865f;return this[_0x2458cf(0x269)][_0x2458cf(0x28b)](_0x233a0f),o['toDisposable'](()=>this['_reporters']['delete'](_0x233a0f));}[_0x26865f(0x1f7)](_0x23f260){const _0x510799=_0x26865f;return this[_0x510799(0x2c0)][_0x510799(0x20c)](_0x23f260);}[_0x26865f(0x265)](_0x2dd8b2){const _0x58ee88=_0x26865f;return Array[_0x58ee88(0x216)](this[_0x58ee88(0x269)])['map'](_0x455482=>_0x455482(_0x2dd8b2));}}var M=Object[_0x26865f(0x2a0)],P=(_0x224b00,_0x3e4cb6,_0x50f3a8,_0x5cb48c)=>{const _0x2946bb=_0x26865f;for(var _0x549584=_0x5cb48c>0x1?void 0x0:_0x5cb48c?M(_0x3e4cb6,_0x50f3a8):_0x3e4cb6,_0x28ba16=_0x224b00[_0x2946bb(0x201)]-0x1,_0x5e2c8d;_0x28ba16>=0x0;_0x28ba16--)(_0x5e2c8d=_0x224b00[_0x28ba16])&&(_0x549584=_0x5e2c8d(_0x549584)||_0x549584);return _0x549584;},S=(_0x5b8e07,_0xe032d3)=>(_0x392a31,_0x41b73a)=>_0xe032d3(_0x392a31,_0x41b73a,_0x5b8e07);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x14e46a,_0x218bfd,_0x3e82ab){const _0x8628e5=_0x26865f;super(),_(this,'_entities',new Map()),(this[_0x8628e5(0x211)]=_0x14e46a,this[_0x8628e5(0x1f9)]=_0x218bfd,this[_0x8628e5(0x280)]=_0x3e82ab,this[_0x8628e5(0x29e)]());}async[_0x26865f(0x253)](_0xb0ca08){const _0x36f6f5=_0x26865f;return this[_0x36f6f5(0x23a)][_0x36f6f5(0x20c)](_0xb0ca08)||await this[_0x36f6f5(0x277)](_0xb0ca08),this[_0x36f6f5(0x23a)][_0x36f6f5(0x289)](_0xb0ca08);}[_0x26865f(0x20e)](_0x15ed3b){const _0x25e7aa=_0x26865f;var _0x106beb;return(_0x106beb=this['_entities'][_0x25e7aa(0x289)](_0x15ed3b))!=null?_0x106beb:null;}[_0x26865f(0x29e)](){const _0x28ad90=_0x26865f;this[_0x28ad90(0x211)][_0x28ad90(0x2bc)](o['UniverInstanceType'][_0x28ad90(0x230)])[_0x28ad90(0x237)](I['takeUntil'](this[_0x28ad90(0x222)]))[_0x28ad90(0x219)](async _0x1cbe7a=>{const _0x1c4181=_0x28ad90,_0x4b17dc=_0x1cbe7a[_0x1c4181(0x245)]();this[_0x1c4181(0x23a)]['has'](_0x4b17dc)||this[_0x1c4181(0x277)](_0x4b17dc);}),this[_0x28ad90(0x211)]['getTypeOfUnitDisposed$'](o[_0x28ad90(0x27a)][_0x28ad90(0x230)])[_0x28ad90(0x237)](I[_0x28ad90(0x23d)](this[_0x28ad90(0x222)]))[_0x28ad90(0x219)](_0x157fb9=>{const _0x1a8cc9=_0x28ad90,_0x5abaf6=_0x157fb9[_0x1a8cc9(0x245)](),_0x2d636d=this[_0x1a8cc9(0x23a)][_0x1a8cc9(0x289)](_0x5abaf6);_0x2d636d==null||_0x2d636d[_0x1a8cc9(0x29b)]();});}async[_0x26865f(0x277)](_0x4d8c18){const _0x417be5=_0x26865f,_0x757775=await this[_0x417be5(0x280)]['requireSession'](_0x4d8c18),_0x3a57bc=this[_0x417be5(0x1f9)][_0x417be5(0x226)](exports[_0x417be5(0x285)],_0x4d8c18,_0x757775);return _0x3a57bc[_0x417be5(0x1f6)](),this['_entities']['set'](_0x4d8c18,_0x3a57bc),_0x3a57bc;}},exports[_0x26865f(0x29f)]=P([S(0x0,o[_0x26865f(0x225)]),S(0x1,o['Inject'](o[_0x26865f(0x27b)])),S(0x2,o[_0x26865f(0x27e)](b[_0x26865f(0x22a)]))],exports[_0x26865f(0x29f)]);var u=(_0x406071=>(_0x406071[_0x26865f(0x279)]=_0x26865f(0x235),_0x406071['IDLE']=_0x26865f(0x274),_0x406071[_0x26865f(0x23b)]=_0x26865f(0x24d),_0x406071[_0x26865f(0x258)]=_0x26865f(0x234),_0x406071[_0x26865f(0x284)]=_0x26865f(0x22d),_0x406071))(u||{});const k=_0x26865f(0x1fb),q=0xc8;exports[_0x26865f(0x285)]=class extends o['RxDisposable']{constructor(_0x3233e2,_0x54146c,_0x5a5dc0,_0x183810,_0x4abd46){const _0x217551=_0x26865f;super(),_(this,_0x217551(0x205),new O['BehaviorSubject']('idle')),_(this,'status$',this['_status$'][_0x217551(0x268)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x217551(0x24f),null),(this['_unitID']=_0x3233e2,this[_0x217551(0x29c)]=_0x54146c,this[_0x217551(0x271)]=_0x5a5dc0,this[_0x217551(0x26b)]=_0x183810,this[_0x217551(0x22b)]=_0x4abd46);}get['_status'](){return this['_status$']['getValue']();}[_0x26865f(0x29b)](){const _0xe66c9c=_0x26865f;var _0x4cf463;(_0x4cf463=this[_0xe66c9c(0x27d)])==null||_0x4cf463[_0xe66c9c(0x29b)](),this[_0xe66c9c(0x205)]['next']('idle'),this[_0xe66c9c(0x205)][_0xe66c9c(0x2c4)]();}[_0x26865f(0x266)](){const _0x255f45=_0x26865f;return this[_0x255f45(0x252)];}['init'](){const _0x50617e=_0x26865f;this[_0x50617e(0x29e)]||(this[_0x50617e(0x29e)]=!0x0,this[_0x50617e(0x29c)][_0x50617e(0x22c)][_0x50617e(0x237)](I['takeUntil'](this[_0x50617e(0x222)]))[_0x50617e(0x219)](_0x5725fb=>{const _0xf86a77=_0x50617e;switch(_0x5725fb){case b[_0xf86a77(0x267)][_0xf86a77(0x279)]:this['_handleOffline']();break;case b[_0xf86a77(0x267)][_0xf86a77(0x251)]:this[_0xf86a77(0x28c)]();break;}}),this[_0x50617e(0x29c)]['event$'][_0x50617e(0x237)](I[_0x50617e(0x23d)](this['dispose$']))[_0x50617e(0x219)](_0x2784eb=>{const _0x22b0e5=_0x50617e,{eventID:_0x335353}=_0x2784eb;switch(_0x335353){case d['CollaborationEvent'][_0x22b0e5(0x200)]:this['_handleNewHost'](_0x2784eb);break;case d['CollaborationEvent'][_0x22b0e5(0x29a)]:this[_0x22b0e5(0x2a3)](_0x2784eb);break;case d[_0x22b0e5(0x1f4)][_0x22b0e5(0x25d)]:this[_0x22b0e5(0x240)]();break;case d[_0x22b0e5(0x1f4)][_0x22b0e5(0x257)]:this[_0x22b0e5(0x275)](_0x2784eb);break;}}));}[_0x26865f(0x2b2)](){const _0x22a1d7=_0x26865f;this[_0x22a1d7(0x29c)][_0x22a1d7(0x2a7)]({'eventID':d['CollaborationEvent'][_0x22a1d7(0x25a)],'data':{'unitID':this[_0x22a1d7(0x223)],'userID':this['_collabSession']['getMemberID']()}},this[_0x22a1d7(0x223)]);}[_0x26865f(0x276)](){const _0x43266a=_0x26865f;this[_0x43266a(0x252)]===_0x43266a(0x22d)&&(this[_0x43266a(0x205)][_0x43266a(0x212)](_0x43266a(0x274)),this[_0x43266a(0x29c)][_0x43266a(0x2a7)]({'eventID':d[_0x43266a(0x1f4)][_0x43266a(0x25d)],'data':{'unitID':this[_0x43266a(0x223)]}},this[_0x43266a(0x223)]));}[_0x26865f(0x281)](){const _0x46a8b3=_0x26865f;this[_0x46a8b3(0x252)]==='not-following'&&(this[_0x46a8b3(0x205)]['next'](_0x46a8b3(0x24d)),this[_0x46a8b3(0x295)]());}[_0x26865f(0x24a)](){const _0x4445d4=_0x26865f;this[_0x4445d4(0x252)]===_0x4445d4(0x24d)&&this[_0x4445d4(0x290)]();}['_handleNewHost'](_0x3d4d52){const _0x50f51c=_0x26865f,{presenter:_0x57b93e}=_0x3d4d52[_0x50f51c(0x1f5)],_0x573a12=this[_0x50f51c(0x29c)][_0x50f51c(0x214)]();this['_presenter']=_0x57b93e,_0x57b93e===_0x573a12?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x50f51c(0x234)&&(this[_0x50f51c(0x2a5)](),this[_0x50f51c(0x295)]());}[_0x26865f(0x2c5)](){const _0x2f377c=_0x26865f,_0x2e2d3c={'eventID':d[_0x2f377c(0x1f4)][_0x2f377c(0x227)]};this[_0x2f377c(0x29c)][_0x2f377c(0x2a7)](_0x2e2d3c,this['_unitID']);}[_0x26865f(0x240)](){const _0xd59b52=_0x26865f;this[_0xd59b52(0x24f)]=null,this[_0xd59b52(0x252)]!=='presenting'&&this[_0xd59b52(0x286)]();}[_0x26865f(0x275)](_0x51cb19){const _0x563600=_0x26865f;if(this[_0x563600(0x252)]===_0x563600(0x24d)&&this['_presenter']===_0x51cb19[_0x563600(0x1f5)][_0x563600(0x24c)]){const _0x1bb70c=d[_0x563600(0x239)](_0x51cb19[_0x563600(0x1f5)])[_0x563600(0x217)][_0x563600(0x204)]()['find'](_0x44d143=>_0x44d143['id']===C[_0x563600(0x224)]['id']);if(_0x1bb70c){const _0x53e468=_0x1bb70c[_0x563600(0x24b)][_0x563600(0x27c)],_0x5e3a21=_0x1bb70c['params'][_0x563600(0x2bf)]['id'];setTimeout(()=>{const _0x17fae8=_0x563600;this['_commandService'][_0x17fae8(0x2ad)](C[_0x17fae8(0x2b6)]['id'],{'unitId':_0x53e468,'subUnitId':_0x5e3a21},{'fromCollab':!0x0});});}}}[_0x26865f(0x22e)](){const _0x92c04b=_0x26865f;this['_status$'][_0x92c04b(0x212)]('presenting');const _0x1d28a2=new Map(),_0x32ad26=this[_0x92c04b(0x27d)]=new o['DisposableCollection']();_0x32ad26[_0x92c04b(0x28b)](o[_0x92c04b(0x220)](()=>{const _0x140886=_0x92c04b;_0x1d28a2['forEach'](_0x39518f=>_0x39518f[_0x140886(0x2c4)]()),_0x1d28a2[_0x140886(0x250)]();})),_0x32ad26[_0x92c04b(0x28b)](this[_0x92c04b(0x22b)][_0x92c04b(0x293)](_0x5edbd0=>{const _0x51b77b=_0x92c04b;var _0x51695d;if(_0x5edbd0['type']!==o[_0x51b77b(0x20a)][_0x51b77b(0x244)]||!this[_0x51b77b(0x26b)]['shouldShareOperation'](_0x5edbd0['id']))return;const {id:_0x4a5707}=_0x5edbd0;let _0x111167;_0x1d28a2[_0x51b77b(0x20c)](_0x4a5707)?_0x111167=_0x1d28a2[_0x51b77b(0x289)](_0x4a5707):(_0x111167=new O[(_0x51b77b(0x2b7))](),_0x1d28a2[_0x51b77b(0x282)](_0x4a5707,_0x111167),_0x111167[_0x51b77b(0x237)](I[_0x51b77b(0x28a)]((_0x51695d=this[_0x51b77b(0x271)][_0x51b77b(0x207)](k))!=null?_0x51695d:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51b77b(0x219)](_0x276f11=>{const _0x4f04b0=_0x51b77b;this[_0x4f04b0(0x29c)][_0x4f04b0(0x2a7)]({'eventID':d[_0x4f04b0(0x1f4)][_0x4f04b0(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x276f11['id']]:{'id':_0x276f11['id'],'params':JSON[_0x4f04b0(0x2a9)](_0x276f11[_0x4f04b0(0x24b)])}}}},this[_0x4f04b0(0x223)]);})),_0x111167[_0x51b77b(0x212)](_0x5edbd0);})),this[_0x92c04b(0x26b)][_0x92c04b(0x265)](this['_unitID'])['forEach'](_0x3e3214=>this[_0x92c04b(0x29c)][_0x92c04b(0x2a7)]({'eventID':d[_0x92c04b(0x1f4)][_0x92c04b(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x3e3214['id']]:{'id':_0x3e3214['id'],'params':JSON[_0x92c04b(0x2a9)](_0x3e3214[_0x92c04b(0x24b)])}}}},this[_0x92c04b(0x223)]));}[_0x26865f(0x2a5)](){const _0xea10df=_0x26865f;var _0x5e6514;this[_0xea10df(0x205)][_0xea10df(0x212)](_0xea10df(0x274)),(_0x5e6514=this[_0xea10df(0x27d)])==null||_0x5e6514[_0xea10df(0x29b)](),this[_0xea10df(0x27d)]=null;}[_0x26865f(0x295)](){const _0x2a292e=_0x26865f;var _0x2fa8c2;(_0x2fa8c2=this[_0x2a292e(0x27d)])==null||_0x2fa8c2['dispose'](),this[_0x2a292e(0x205)][_0x2a292e(0x212)](_0x2a292e(0x24d));}[_0x26865f(0x286)](){const _0x4cfed9=_0x26865f;var _0x4c9aef;this[_0x4cfed9(0x205)][_0x4cfed9(0x212)](_0x4cfed9(0x274)),(_0x4c9aef=this[_0x4cfed9(0x27d)])==null||_0x4c9aef[_0x4cfed9(0x29b)](),this[_0x4cfed9(0x27d)]=null;}[_0x26865f(0x290)](){const _0x3878f4=_0x26865f;var _0x373836;this['_status$'][_0x3878f4(0x212)](_0x3878f4(0x234)),(_0x373836=this[_0x3878f4(0x27d)])==null||_0x373836[_0x3878f4(0x29b)]();}['_handleOperation'](_0x3e6029){const _0x4b7872=_0x26865f;if([_0x4b7872(0x22d),_0x4b7872(0x234),'offline']['includes'](this[_0x4b7872(0x252)])||!_0x3e6029[_0x4b7872(0x1f5)][_0x4b7872(0x232)]||_0x3e6029[_0x4b7872(0x1f5)]['presenter']===this[_0x4b7872(0x29c)][_0x4b7872(0x214)]())return;this[_0x4b7872(0x252)]===_0x4b7872(0x274)&&this[_0x4b7872(0x295)]();const _0x408dcb=_0x3e6029[_0x4b7872(0x1f5)]['operations'];Object[_0x4b7872(0x229)](_0x408dcb)[_0x4b7872(0x23e)](_0x36f467=>{const _0x4a156b=_0x4b7872;this[_0x4a156b(0x22b)][_0x4a156b(0x2ad)](_0x36f467['id'],_0x36f467[_0x4a156b(0x24b)]?JSON['parse'](_0x36f467[_0x4a156b(0x24b)]):null,{'fromCollab':!0x0});});}[_0x26865f(0x20b)](){const _0x11f217=_0x26865f;var _0x442390;this[_0x11f217(0x205)][_0x11f217(0x212)](_0x11f217(0x235)),(_0x442390=this['_commandDisposable'])==null||_0x442390['dispose']();}[_0x26865f(0x28c)](){const _0x4194c1=_0x26865f;this[_0x4194c1(0x205)][_0x4194c1(0x212)](_0x4194c1(0x274)),this[_0x4194c1(0x2c5)]();}},exports[_0x26865f(0x285)]=P([S(0x2,o[_0x26865f(0x1fe)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x26865f(0x2c1)])],exports['LiveShareCoordinator']);function $(){const _0x4c060e=_0x26865f,_0x7bfd86=p[_0x4c060e(0x247)](exports[_0x4c060e(0x29f)]),_0xdfb4b9=p[_0x4c060e(0x247)](o[_0x4c060e(0x225)]),_0x5e6cac=p[_0x4c060e(0x2a2)](()=>_0xdfb4b9[_0x4c060e(0x21a)](o[_0x4c060e(0x27a)][_0x4c060e(0x230)]),void 0x0,!0x1,[]),[_0x491f97,_0x28fb2b]=v[_0x4c060e(0x23f)](null),[_0x4577db,_0x29fba6]=v[_0x4c060e(0x23f)](u[_0x4c060e(0x218)]),_0x10f3e4=v[_0x4c060e(0x231)](null);return v[_0x4c060e(0x297)](()=>(_0x5e6cac&&_0x7bfd86[_0x4c060e(0x253)](_0x5e6cac[_0x4c060e(0x245)]())[_0x4c060e(0x2ca)](_0x24134e=>{const _0x8f3e79=_0x4c060e;_0x28fb2b(_0x24134e),_0x10f3e4[_0x8f3e79(0x246)]=_0x24134e['status$'][_0x8f3e79(0x219)](_0x32cbe5=>{_0x29fba6(_0x32cbe5);});}),()=>{const _0x58bc23=_0x4c060e;var _0x3e4690;(_0x3e4690=_0x10f3e4[_0x58bc23(0x246)])==null||_0x3e4690[_0x58bc23(0x2b5)](),_0x10f3e4[_0x58bc23(0x246)]=null;}),[_0x5e6cac,_0x7bfd86]),_0x491f97?l[_0x4c060e(0x27f)](f[_0x4c060e(0x2a4)],{'align':_0x4c060e(0x25c),'disabled':_0x4577db===u['OFFLINE'],'className':_0x4c060e(0x26f),'overlay':l[_0x4c060e(0x27f)](W,{'status':_0x4577db,'coordinator':_0x491f97}),'children':l[_0x4c060e(0x27f)]('button',{'className':f[_0x4c060e(0x270)](_0x4c060e(0x2b0),{'univer-cursor-not-allowed':_0x4577db===u[_0x4c060e(0x279)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4577db!==u[_0x4c060e(0x279)]}),'type':_0x4c060e(0x259),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x3e32ec){const _0x386da4=_0x26865f,{status:_0x5e0742,coordinator:_0x47d25d}=_0x3e32ec;switch(_0x5e0742){case u[_0x386da4(0x218)]:return l[_0x386da4(0x27f)](G,{'coordinator':_0x47d25d});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x47d25d});case u[_0x386da4(0x258)]:return l[_0x386da4(0x27f)](Y,{'coordinator':_0x47d25d});case u[_0x386da4(0x279)]:return l['jsx'](J,{});case u[_0x386da4(0x284)]:return l[_0x386da4(0x27f)](Z,{'coordinator':_0x47d25d});default:return null;}}function G(_0x32b0e8){const _0x58e7df=_0x26865f,{coordinator:_0x4ae032}=_0x32b0e8;return l[_0x58e7df(0x1ff)](l[_0x58e7df(0x202)],{'children':[l[_0x58e7df(0x27f)](_0x58e7df(0x25f),{'className':_0x58e7df(0x2b8),'children':'Present\x20this\x20document'}),l[_0x58e7df(0x27f)](f[_0x58e7df(0x249)],{'onClick':()=>_0x4ae032[_0x58e7df(0x2b2)](),'children':_0x58e7df(0x283)})]});}function B(_0x526253){const _0x178abf=_0x26865f,{coordinator:_0x47a2ef}=_0x526253;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x178abf(0x25f),{'className':_0x178abf(0x2b8),'children':_0x178abf(0x1fc)}),l[_0x178abf(0x27f)](f[_0x178abf(0x249)],{'onClick':()=>_0x47a2ef[_0x178abf(0x24a)](),'children':_0x178abf(0x296)})]});}function _0x219c(){const _0x5cc0d5=['Plugin','parseProtocolChangeset','_entities','FOLLOWING','LiveShareStatus','takeUntil','forEach','useState','_handleTerminate','LiveShareService','mask','0\x200\x2017\x2017','OPERATION','getUnitId','current','useDependency','Disposable','Button','stopFollowing','params','memberID','following','evenodd','_presenter','clear','ONLINE','_status','getLiveShareCoordinator','none','defIds','map','NEW_CHANGESETS','NOT_FOLLOWING','button','LIVESHARE_REQUEST_HOST','symbol','end','LIVESHARE_TERMINATE','908kyeKpm','div','Stop\x20presenting','101353pbdAdG','use','substring','registerDependencies','getInitialStates','getStatus','SessionStatus','asObservable','_reporters','BuiltInUIPart','_liveShareService','LiveShare','trim','defineProperty','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','clsx','_configService','displayName','mergeOverrideWithDependencies','idle','_handleNewChangeSets','stopPresenting','_startLiveShareCoordinator','string','OFFLINE','UniverInstanceType','Injector','unitId','_commandDisposable','Inject','jsx','_collabSessionService','startFollowing','set','Start','PRESENTING','LiveShareCoordinator','_beIdle','DesktopLiveShareController','LiveShareIcon','get','throttleTime','add','_handleOnline','2665448yjDjXg','You\x27re\x20presenting\x20the\x20document','live-share-icon','_stopFollowing','assign','entries','onCommandExecuted','xlink:href','_startFollowing','Stop\x20following','useEffect','UNIVER_UNKNOWN','includes','LIVESHARE_OPERATION','dispose','_collabSession','UniverCollaborationClientPlugin','_init','LiveShareController','getOwnPropertyDescriptor','Module','useObservable','_handleOperation','Dropdown','_stopPresenting','createElement','send','delete','stringify','UNIVER_LIVE_SHARE_PLUGIN','override','registerComponent','executeCommand','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','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','tryStartPresenting','colorChannel1','toString','unsubscribe','SetWorksheetActiveOperation','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','300QPyxLo','_mountLiveShare','SetZoomRatioOperation','getTypeOfUnitAdded$','Start\x20following','registerSharedOperation','sheet','_sharedOperations','ICommandService','DependentOn','2778YclobD','complete','_fetchOperations','currentColor','merge','live-share.config','type','then','tag','CollaborationEvent','data','init','shouldShareOperation','attrs','_injector','132010CyOisx','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20following\x20the\x20presenter','disposeWithMe','IConfigService','jsxs','LIVESHARE_NEW_HOST','length','Fragment','setConfig','reverse','_status$','709363fKBMvM','getConfig','http://www.w3.org/2000/svg','_uiPartsService','CommandType','_handleOffline','has','univerjs-icon\x20univerjs-icon-','getLiveShareCoordinatorSync','registerInitialStateReporter','toStringTag','_univerInstanceService','next','4721445ImabEX','getMemberID','2723245WfkddA','from','mutations','IDLE','subscribe','getCurrentTypeOfUnit$','HEADER_MENU','text','touchDependencies','children','UniverLiveSharePlugin','toDisposable','forwardRef','dispose$','_unitID','InsertSheetMutation','IUniverInstanceService','createInstance','LIVESHARE_FETCH_OPERATIONS','IUIPartsService','values','CollaborationSessionService','_commandService','sessionStatus$','presenting','_startPresenting','default','UNIVER_SHEET','useRef','presenter','svg','not-following','offline','UniverIcon','pipe'];_0x219c=function(){return _0x5cc0d5;};return _0x219c();}function Y(_0xa3a2d3){const _0x112618=_0x26865f,{coordinator:_0x43d8ea}=_0xa3a2d3;return l[_0x112618(0x1ff)](l[_0x112618(0x202)],{'children':[l['jsx'](_0x112618(0x25f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x112618(0x27f)](f['Button'],{'variant':_0x112618(0x21c),'onClick':()=>_0x43d8ea['startFollowing'](),'children':_0x112618(0x2bd)})]});}function Z(_0x4ad347){const _0x27dd07=_0x26865f,{coordinator:_0x40110b}=_0x4ad347;return l['jsxs'](l[_0x27dd07(0x202)],{'children':[l['jsx'](_0x27dd07(0x25f),{'className':_0x27dd07(0x2b8),'children':_0x27dd07(0x28e)}),l[_0x27dd07(0x27f)](f[_0x27dd07(0x249)],{'variant':_0x27dd07(0x22f),'onClick':()=>_0x40110b[_0x27dd07(0x276)](),'children':_0x27dd07(0x260)})]});}function J(){const _0x40ffa9=_0x26865f;return l[_0x40ffa9(0x27f)](l[_0x40ffa9(0x202)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x26865f(0x2a0)],z=(_0x32109a,_0x767fa5,_0x3c2ceb,_0x227524)=>{const _0x39a3f6=_0x26865f;for(var _0x35095b=_0x227524>0x1?void 0x0:_0x227524?K(_0x767fa5,_0x3c2ceb):_0x767fa5,_0x16a775=_0x32109a[_0x39a3f6(0x201)]-0x1,_0x803390;_0x16a775>=0x0;_0x16a775--)(_0x803390=_0x32109a[_0x16a775])&&(_0x35095b=_0x803390(_0x35095b)||_0x35095b);return _0x35095b;},L=(_0xa0c927,_0x2c0831)=>(_0x4a1787,_0x120588)=>_0x2c0831(_0x4a1787,_0x120588,_0xa0c927);exports[_0x26865f(0x287)]=class extends o[_0x26865f(0x248)]{constructor(_0x3830ad,_0x2eba2c){const _0x394539=_0x26865f;super(),this[_0x394539(0x1f9)]=_0x3830ad,this['_uiPartsService']=_0x2eba2c,this[_0x394539(0x2ba)]();}[_0x26865f(0x2ba)](){const _0x384af7=_0x26865f;this[_0x384af7(0x1fd)](this[_0x384af7(0x209)][_0x384af7(0x2ac)](p[_0x384af7(0x26a)][_0x384af7(0x21b)],()=>p['connectInjector']($,this[_0x384af7(0x1f9)])));}},exports[_0x26865f(0x287)]=z([L(0x0,o['Inject'](o[_0x26865f(0x27b)])),L(0x1,p[_0x26865f(0x228)])],exports['DesktopLiveShareController']);function _0xe914(_0x45f99,_0x165200){const _0x219c92=_0x219c();return _0xe914=function(_0xe914a1,_0x3bbf7e){_0xe914a1=_0xe914a1-0x1f4;let _0x4916a2=_0x219c92[_0xe914a1];return _0x4916a2;},_0xe914(_0x45f99,_0x165200);}const Q=_0x26865f(0x2c8),w={};var X=Object[_0x26865f(0x2a0)],ee=(_0x3801bc,_0x3c3cd4,_0x23329e,_0x536f5d)=>{const _0x5f477a=_0x26865f;for(var _0x27e289=_0x536f5d>0x1?void 0x0:_0x536f5d?X(_0x3c3cd4,_0x23329e):_0x3c3cd4,_0x15ad9e=_0x3801bc[_0x5f477a(0x201)]-0x1,_0x4aa1e1;_0x15ad9e>=0x0;_0x15ad9e--)(_0x4aa1e1=_0x3801bc[_0x15ad9e])&&(_0x27e289=_0x4aa1e1(_0x27e289)||_0x27e289);return _0x27e289;},te=(_0x29072c,_0x576c32)=>(_0xc690a3,_0xf5a0aa)=>_0x576c32(_0xc690a3,_0xf5a0aa,_0x29072c);let m=class extends o[_0x26865f(0x248)]{constructor(_0x203679){const _0x4131ec=_0x26865f;super(),this[_0x4131ec(0x26b)]=_0x203679,this[_0x4131ec(0x29e)]();}[_0x26865f(0x29e)](){const _0x341065=_0x26865f;[D[_0x341065(0x2bb)]['id'],D['SetScrollOperation']['id'],C[_0x341065(0x2b6)]['id']][_0x341065(0x23e)](_0x1a8eb8=>{const _0x38cbd2=_0x341065;this[_0x38cbd2(0x1fd)](this[_0x38cbd2(0x26b)]['registerSharedOperation'](_0x1a8eb8));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x26865f(0x2a0)],ne=(_0x109dcc,_0x446ac0,_0x21e5fc)=>_0x446ac0 in _0x109dcc?ie(_0x109dcc,_0x446ac0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21e5fc}):_0x109dcc[_0x446ac0]=_0x21e5fc,re=(_0x3fe749,_0xe0814c,_0x343f3a,_0x4414ca)=>{const _0x6708e5=_0x26865f;for(var _0x439b0a=_0x4414ca>0x1?void 0x0:_0x4414ca?se(_0xe0814c,_0x343f3a):_0xe0814c,_0x2780a2=_0x3fe749[_0x6708e5(0x201)]-0x1,_0x1e094c;_0x2780a2>=0x0;_0x2780a2--)(_0x1e094c=_0x3fe749[_0x2780a2])&&(_0x439b0a=_0x1e094c(_0x439b0a)||_0x439b0a);return _0x439b0a;},N=(_0x4fcf7d,_0x4e7354)=>(_0x3a5364,_0x307524)=>_0x4e7354(_0x3a5364,_0x307524,_0x4fcf7d),A=(_0x36e6c1,_0x5999e9,_0x1a0c8a)=>ne(_0x36e6c1,typeof _0x5999e9!=_0x26865f(0x25b)?_0x5999e9+'':_0x5999e9,_0x1a0c8a);const oe=_0x26865f(0x2aa);exports[_0x26865f(0x21f)]=class extends o[_0x26865f(0x238)]{constructor(_0x5325be=w,_0x1720fc,_0x33df2d){const _0x50f7d5=_0x26865f;super(),this['_config']=_0x5325be,this[_0x50f7d5(0x1f9)]=_0x1720fc,this[_0x50f7d5(0x271)]=_0x33df2d;const {..._0x51af43}=o[_0x50f7d5(0x2c7)]({},w,this['_config']);this['_configService'][_0x50f7d5(0x203)](Q,_0x51af43);}['onStarting'](){const _0x116108=_0x26865f;o[_0x116108(0x264)](this[_0x116108(0x1f9)],o[_0x116108(0x273)]([[E],[exports[_0x116108(0x29f)]],[m],[exports[_0x116108(0x287)]]],this['_config'][_0x116108(0x2ab)])),o[_0x116108(0x21d)](this[_0x116108(0x1f9)],[[m]]);}['onRendered'](){const _0xcd9efa=_0x26865f;o['touchDependencies'](this[_0xcd9efa(0x1f9)],[[exports[_0xcd9efa(0x287)]]]);}},A(exports[_0x26865f(0x21f)],_0x26865f(0x2c9),o[_0x26865f(0x27a)][_0x26865f(0x298)]),A(exports[_0x26865f(0x21f)],'pluginName',oe),exports[_0x26865f(0x21f)]=re([o[_0x26865f(0x2c2)](b[_0x26865f(0x29d)]),N(0x1,o[_0x26865f(0x27e)](o['Injector'])),N(0x2,o[_0x26865f(0x1fe)])],exports[_0x26865f(0x21f)]),exports[_0x26865f(0x26c)]=$,exports[_0x26865f(0x241)]=E,exports[_0x26865f(0x23c)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x33a569=_0x277f;(function(_0x5cd959,_0x4916d1){const _0x2cc90b=_0x277f,_0x113030=_0x5cd959();while(!![]){try{const _0x10619a=-parseInt(_0x2cc90b(0xac))/0x1*(parseInt(_0x2cc90b(0xa9))/0x2)+-parseInt(_0x2cc90b(0xad))/0x3*(-parseInt(_0x2cc90b(0xa1))/0x4)+-parseInt(_0x2cc90b(0x99))/0x5+-parseInt(_0x2cc90b(0xa8))/0x6*(-parseInt(_0x2cc90b(0xa5))/0x7)+parseInt(_0x2cc90b(0xab))/0x8+parseInt(_0x2cc90b(0x9e))/0x9*(parseInt(_0x2cc90b(0xaa))/0xa)+-parseInt(_0x2cc90b(0x93))/0xb;if(_0x10619a===_0x4916d1)break;else _0x113030['push'](_0x113030['shift']());}catch(_0x4085c6){_0x113030['push'](_0x113030['shift']());}}}(_0x31f7,0xad0b4));import{LiveShareController as _0x59129e,LiveShareStatus as _0x1a7214}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x8a0a89}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1f4e13}from'@univerjs/sheets';import{SetScrollOperation as _0x54813f}from'@univerjs/sheets-ui';import{FRange as _0x23e2ea}from'@univerjs/sheets/facade';import{FUniver as _0x53e75f,FEnum as _0x179f5f}from'@univerjs/core/facade';class I extends _0x23e2ea{[_0x33a569(0xa2)](_0x13859a,_0x33b13f,_0x2ca1e3,_0x124d95,_0x2c3400){const _0x290594=_0x33a569,_0x3b531c=_0x13859a['get'](_0x59129e),_0x27ebac=_0x13859a[_0x290594(0x97)](_0x8a0a89),_0x16c33a=_0x33b13f[_0x290594(0xa6)](),_0x53cfec=_0x33b13f[_0x290594(0x98)](),_0x288377=_0x3b531c[_0x290594(0x8f)](_0x16c33a);(_0x288377==null?void 0x0:_0x288377[_0x290594(0x9c)]())!==_0x1a7214[_0x290594(0xa3)]||(_0x2ca1e3[_0x290594(0x9b)]()!==_0x53cfec[_0x290594(0x9b)]()&&this['_commandService'][_0x290594(0xa4)](_0x1f4e13['id'],{'unitId':_0x16c33a,'subUnitId':_0x2ca1e3[_0x290594(0x9b)]()}),!_0x27ebac[_0x290594(0x95)](_0x16c33a))||_0x2c3400[_0x290594(0x8e)](_0x54813f['id'],{'unitId':_0x33b13f[_0x290594(0xa6)](),'sheetId':_0x2ca1e3['getSheetId'](),'sheetViewStartRow':_0x124d95['startRow'],'sheetViewStartColumn':_0x124d95[_0x290594(0x90)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x31f7(){const _0x18f288=['syncExecuteCommand','getLiveShareCoordinatorSync','startColumn','_injector','stopPresenting','9315801UkdtTk','tryStartPresenting','getRenderById','getActiveWorkbook','get','getActiveSheet','3556655GDXyOn','getId','getSheetId','getStatus','No\x20active\x20workbook\x20found.','9hgOSzs','startFollowing','getLiveShareStatus','124GsAqyr','_initialize','PRESENTING','executeCommand','7fDaKHo','getUnitId','LiveShareStatusEnum','7465386ozIUVJ','103990GYCBOL','5405110oKvtaP','2117960WcYciz','16tZWvmK','101559BPdaPW','IDLE','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','stopFollowing'];_0x31f7=function(){return _0x18f288;};return _0x31f7();}_0x23e2ea['extend'](I);function _0x277f(_0x3be93e,_0x490b9a){const _0x31f76c=_0x31f7();return _0x277f=function(_0x277f61,_0x534624){_0x277f61=_0x277f61-0x8b;let _0x849b4e=_0x31f76c[_0x277f61];return _0x849b4e;},_0x277f(_0x3be93e,_0x490b9a);}class m extends _0x53e75f{[_0x33a569(0xa0)](){const _0x1b7a82=_0x33a569;var _0x521b28,_0x3e0a4f;const _0xb7224=this['_injector'][_0x1b7a82(0x97)](_0x59129e),_0x14c35f=(_0x521b28=this[_0x1b7a82(0x96)]())==null?void 0x0:_0x521b28[_0x1b7a82(0x9a)]();if(!_0x14c35f)throw new Error(_0x1b7a82(0x9d));const _0x3d17b6=_0xb7224[_0x1b7a82(0x8f)](_0x14c35f);return(_0x3e0a4f=_0x3d17b6==null?void 0x0:_0x3d17b6[_0x1b7a82(0x9c)]())!=null?_0x3e0a4f:_0x1a7214[_0x1b7a82(0xae)];}[_0x33a569(0x9f)](){const _0x239c72=_0x33a569;var _0x16a070;const _0x2a0812=this[_0x239c72(0x91)][_0x239c72(0x97)](_0x59129e),_0x5eb7a5=(_0x16a070=this[_0x239c72(0x96)]())==null?void 0x0:_0x16a070['getId']();if(!_0x5eb7a5)throw new Error(_0x239c72(0x9d));const _0x201828=_0x2a0812[_0x239c72(0x8f)](_0x5eb7a5);if(!_0x201828)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x201828[_0x239c72(0x9f)]();}[_0x33a569(0x8d)](){const _0x4f7d67=_0x33a569;var _0x40d17d;const _0x3558fe=this[_0x4f7d67(0x91)][_0x4f7d67(0x97)](_0x59129e),_0x1440ab=(_0x40d17d=this[_0x4f7d67(0x96)]())==null?void 0x0:_0x40d17d[_0x4f7d67(0x9a)]();if(!_0x1440ab)throw new Error(_0x4f7d67(0x9d));const _0x19fa2f=_0x3558fe['getLiveShareCoordinatorSync'](_0x1440ab);if(!_0x19fa2f)throw new Error(_0x4f7d67(0x8b));_0x19fa2f[_0x4f7d67(0x8d)]();}[_0x33a569(0xaf)](){const _0x1510f6=_0x33a569;var _0x3037d2;const _0x229206=this['_injector']['get'](_0x59129e),_0x2ee8f0=(_0x3037d2=this[_0x1510f6(0x96)]())==null?void 0x0:_0x3037d2['getId']();if(!_0x2ee8f0)throw new Error(_0x1510f6(0x9d));const _0x185e27=_0x229206[_0x1510f6(0x8f)](_0x2ee8f0);if(!_0x185e27)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x185e27[_0x1510f6(0x94)]();}[_0x33a569(0x92)](){const _0x9e4d7f=_0x33a569;var _0x1b6227;const _0xb8eab0=this[_0x9e4d7f(0x91)]['get'](_0x59129e),_0x386f67=(_0x1b6227=this[_0x9e4d7f(0x96)]())==null?void 0x0:_0x1b6227[_0x9e4d7f(0x9a)]();if(!_0x386f67)throw new Error(_0x9e4d7f(0x9d));const _0x528a8a=_0xb8eab0[_0x9e4d7f(0x8f)](_0x386f67);if(!_0x528a8a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x528a8a[_0x9e4d7f(0x92)]();}}_0x53e75f[_0x33a569(0x8c)](m);class C extends _0x179f5f{get[_0x33a569(0xa7)](){return _0x1a7214;}}_0x179f5f[_0x33a569(0x8c)](C);
1
+ const _0x3637f1=_0x3425;function _0x224d(){const _0x1a1551=['getLiveShareCoordinatorSync','extend','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','5970780bHuMme','startFollowing','PRESENTING','_initialize','LiveShareStatusEnum','236107XgLBto','stopFollowing','syncExecuteCommand','startRow','getRenderById','getId','1127700NzDaXJ','getActiveWorkbook','_injector','startColumn','executeCommand','getStatus','202728TiXtgw','133Tcohco','6905556MGYgVy','12rOrFch','9777310MLplDt','3qoEcFX','stopPresenting','getSheetId','tryStartPresenting','_commandService','915895mmSAwq','startPresenting'];_0x224d=function(){return _0x1a1551;};return _0x224d();}(function(_0xa8924a,_0x81f160){const _0x43098a=_0x3425,_0x59c2e8=_0xa8924a();while(!![]){try{const _0x457646=-parseInt(_0x43098a(0x79))/0x1+-parseInt(_0x43098a(0x7f))/0x2*(-parseInt(_0x43098a(0x8a))/0x3)+parseInt(_0x43098a(0x96))/0x4+-parseInt(_0x43098a(0x8f))/0x5*(parseInt(_0x43098a(0x88))/0x6)+-parseInt(_0x43098a(0x86))/0x7*(parseInt(_0x43098a(0x85))/0x8)+parseInt(_0x43098a(0x87))/0x9+-parseInt(_0x43098a(0x89))/0xa;if(_0x457646===_0x81f160)break;else _0x59c2e8['push'](_0x59c2e8['shift']());}catch(_0x5d96ea){_0x59c2e8['push'](_0x59c2e8['shift']());}}}(_0x224d,0xba12a));import{LiveShareController as _0x1b3727,LiveShareStatus as _0x3afea4}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x59a1ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3a421f}from'@univerjs/sheets';import{SetScrollOperation as _0x2056e6}from'@univerjs/sheets-ui';import{FRange as _0x34d0a3}from'@univerjs/sheets/facade';function _0x3425(_0x191339,_0x439652){const _0x224d60=_0x224d();return _0x3425=function(_0x34259c,_0x3767da){_0x34259c=_0x34259c-0x78;let _0x24e4ed=_0x224d60[_0x34259c];return _0x24e4ed;},_0x3425(_0x191339,_0x439652);}import{FUniver as _0x1d9bf4,FEnum as _0x68a9b1}from'@univerjs/core/facade';class I extends _0x34d0a3{[_0x3637f1(0x99)](_0xe9cb53,_0x2c29fc,_0xc3f494,_0x339af5,_0x186be8){const _0x54c550=_0x3637f1,_0x362296=_0xe9cb53[_0x54c550(0x93)](_0x1b3727),_0x33aece=_0xe9cb53[_0x54c550(0x93)](_0x59a1ce),_0x1fa403=_0x2c29fc['getUnitId'](),_0xb8f9ac=_0x2c29fc['getActiveSheet'](),_0x2af5ed=_0x362296['getLiveShareCoordinatorSync'](_0x1fa403);(_0x2af5ed==null?void 0x0:_0x2af5ed[_0x54c550(0x84)]())!==_0x3afea4[_0x54c550(0x98)]||(_0xc3f494['getSheetId']()!==_0xb8f9ac['getSheetId']()&&this[_0x54c550(0x8e)][_0x54c550(0x83)](_0x3a421f['id'],{'unitId':_0x1fa403,'subUnitId':_0xc3f494[_0x54c550(0x8c)]()}),!_0x33aece[_0x54c550(0x7d)](_0x1fa403))||_0x186be8[_0x54c550(0x7b)](_0x2056e6['id'],{'unitId':_0x2c29fc['getUnitId'](),'sheetId':_0xc3f494['getSheetId'](),'sheetViewStartRow':_0x339af5[_0x54c550(0x7c)],'sheetViewStartColumn':_0x339af5[_0x54c550(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34d0a3[_0x3637f1(0x92)](I);class m extends _0x1d9bf4{['getLiveShareStatus'](){const _0x4cbcf7=_0x3637f1;var _0x1bb88b,_0x397fbe;const _0x4a5ada=this['_injector'][_0x4cbcf7(0x93)](_0x1b3727),_0x1ebc42=(_0x1bb88b=this[_0x4cbcf7(0x80)]())==null?void 0x0:_0x1bb88b[_0x4cbcf7(0x7e)]();if(!_0x1ebc42)throw new Error('No\x20active\x20workbook\x20found.');const _0x44853b=_0x4a5ada[_0x4cbcf7(0x91)](_0x1ebc42);return(_0x397fbe=_0x44853b==null?void 0x0:_0x44853b[_0x4cbcf7(0x84)]())!=null?_0x397fbe:_0x3afea4['IDLE'];}['startFollowing'](){const _0x7968d8=_0x3637f1;var _0x12cc60;const _0x491a2b=this[_0x7968d8(0x81)][_0x7968d8(0x93)](_0x1b3727),_0x4102f2=(_0x12cc60=this[_0x7968d8(0x80)]())==null?void 0x0:_0x12cc60['getId']();if(!_0x4102f2)throw new Error(_0x7968d8(0x95));const _0x434ccb=_0x491a2b[_0x7968d8(0x91)](_0x4102f2);if(!_0x434ccb)throw new Error(_0x7968d8(0x94));_0x434ccb[_0x7968d8(0x97)]();}[_0x3637f1(0x7a)](){const _0x31565b=_0x3637f1;var _0x4795fa;const _0x9c94c1=this[_0x31565b(0x81)][_0x31565b(0x93)](_0x1b3727),_0x5ec956=(_0x4795fa=this[_0x31565b(0x80)]())==null?void 0x0:_0x4795fa[_0x31565b(0x7e)]();if(!_0x5ec956)throw new Error('No\x20active\x20workbook\x20found.');const _0x43c705=_0x9c94c1[_0x31565b(0x91)](_0x5ec956);if(!_0x43c705)throw new Error(_0x31565b(0x94));_0x43c705[_0x31565b(0x7a)]();}[_0x3637f1(0x90)](){const _0x496a9f=_0x3637f1;var _0x3db092;const _0xd103cd=this[_0x496a9f(0x81)]['get'](_0x1b3727),_0x5c0da7=(_0x3db092=this[_0x496a9f(0x80)]())==null?void 0x0:_0x3db092[_0x496a9f(0x7e)]();if(!_0x5c0da7)throw new Error('No\x20active\x20workbook\x20found.');const _0x5d440d=_0xd103cd[_0x496a9f(0x91)](_0x5c0da7);if(!_0x5d440d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d440d[_0x496a9f(0x8d)]();}[_0x3637f1(0x8b)](){const _0x20f286=_0x3637f1;var _0x12dee2;const _0x51b129=this[_0x20f286(0x81)][_0x20f286(0x93)](_0x1b3727),_0x12b024=(_0x12dee2=this[_0x20f286(0x80)]())==null?void 0x0:_0x12dee2[_0x20f286(0x7e)]();if(!_0x12b024)throw new Error(_0x20f286(0x95));const _0x2a25f1=_0x51b129[_0x20f286(0x91)](_0x12b024);if(!_0x2a25f1)throw new Error(_0x20f286(0x94));_0x2a25f1[_0x20f286(0x8b)]();}}_0x1d9bf4[_0x3637f1(0x92)](m);class C extends _0x68a9b1{get[_0x3637f1(0x78)](){return _0x3afea4;}}_0x68a9b1[_0x3637f1(0x92)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','offline','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'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':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0x3f8b8a=_0x5e6b;(function(_0x1b2469,_0x5d2d34){const _0x45631d=_0x5e6b,_0x4d58cd=_0x1b2469();while(!![]){try{const _0x15f162=parseInt(_0x45631d(0x139))/0x1+-parseInt(_0x45631d(0x12c))/0x2*(parseInt(_0x45631d(0x1b4))/0x3)+-parseInt(_0x45631d(0x1a3))/0x4+parseInt(_0x45631d(0x18f))/0x5+-parseInt(_0x45631d(0x122))/0x6+-parseInt(_0x45631d(0x1a4))/0x7*(-parseInt(_0x45631d(0x11c))/0x8)+parseInt(_0x45631d(0x191))/0x9*(-parseInt(_0x45631d(0x14f))/0xa);if(_0x15f162===_0x5d2d34)break;else _0x4d58cd['push'](_0x4d58cd['shift']());}catch(_0x570847){_0x4d58cd['push'](_0x4d58cd['shift']());}}}(_0x5073,0xab4ed));function _0x5073(){const _0x79eb11=['stopPresenting','_commandDisposable','getStatus','text','_univerInstanceService','registerInitialStateReporter','div','asObservable','_collabSession','513796BAxTUj','8281679nNlQRM','following','_reporters','reverse','LIVESHARE_REQUEST_HOST','_entities','tryStartPresenting','univer-size-4','add','registerComponent','colorChannel1','shouldShareOperation','LiveShareIcon','OFFLINE','random','has','617649PHsLbu','requireSession','_stopFollowing','setConfig','FOLLOWING','entries','_sharedOperations','LIVESHARE_TERMINATE','override','tag','not-following','status$','_status$','from','live-share-icon','8sAeACW','_presenter','Stop\x20presenting','includes','evenodd','defineProperty','2057844RdYmHJ','_startFollowing','_handleTerminate','UniverIcon','getInitialStates','onCommandExecuted','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','PRESENTING','set','presenter','2kQrUno','svg','IDLE','_config','onRendered','NOT_FOLLOWING','dispose','values','mask','unitId','length','sheet','You\x27re\x20following\x20the\x20presenter','342755jKOFdz','_init','getOwnPropertyDescriptor','idSuffix','LIVESHARE_NEW_HOST','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','_startPresenting','Start\x20following','LIVESHARE_OPERATION','clear','unsubscribe','mutations','data','send','_unitID','toString','init','delete','_handleOnline','children','11265690ygLByx','_handleNewHost','forEach','end','default','SAME_OPERATION_SHARE_INTERVAL','defIds','getLiveShareCoordinator','_configService','_uiPartsService','complete','next','presenting','current','get','NEW_CHANGESETS','xlink:href','then','event$','_handleNewChangeSets','none','string','_stopPresenting','replace','_handleOffline','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','subscribe','stringify','_beIdle','getTypeOfUnitAdded$','_liveShareService','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','_startLiveShareCoordinator','getUnitId','attrs','map','use','getTypeOfUnitDisposed$','_commandService','Stop\x20following','_fetchOperations','substring','createInstance','offline','_status','HEADER_MENU','OPERATION','UNIVER_SHEET','executeCommand','trim','dispose$','sessionStatus$','displayName','0\x200\x2017\x2017','params','disposeWithMe','find','getConfig','You\x27are\x20offline.','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','4898500YXyOHH','getMemberID','9gCBIUi','button','pipe','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','_injector','onStarting','symbol','1em','idle'];_0x5073=function(){return _0x79eb11;};return _0x5073();}var J=Object['defineProperty'],K=(_0xc48790,_0xc9d9c5,_0x1af2a5)=>_0xc9d9c5 in _0xc48790?J(_0xc48790,_0xc9d9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af2a5}):_0xc48790[_0xc9d9c5]=_0x1af2a5,u=(_0x17643a,_0x5f06e7,_0x5dc08d)=>K(_0x17643a,typeof _0x5f06e7!=_0x3f8b8a(0x197)?_0x5f06e7+'':_0x5f06e7,_0x5dc08d);import{Disposable as _0x159720,toDisposable as _0x51d4c6,IUniverInstanceService as _0x399285,Inject as _0x5559c6,Injector as _0x195227,IConfigService as _0x5c28f1,ICommandService as _0x754535,RxDisposable as _0x16a1ae,UniverInstanceType as _0x3fe8fe,DisposableCollection as _0x434384,CommandType as _0x1fb413,DependentOn as _0x3f7112,Plugin as _0x25bb0a,merge as _0x39e1c5,registerDependencies as _0x46d24c,mergeOverrideWithDependencies as _0x7a71b0,touchDependencies as _0x4d514b}from'@univerjs/core';import{useDependency as _0x437252,useObservable as _0x420d0b,IUIPartsService as _0x32b863,BuiltInUIPart as _0x4dcc23,connectInjector as _0x54592c}from'@univerjs/ui';import{jsx as _0x2a725f,jsxs as _0x4db2bd,Fragment as _0x32f569}from'react/jsx-runtime';import{Dropdown as _0x1c024f,clsx as _0x1e4748,Button as _0x3efa6c}from'@univerjs/design';import{useRef as _0x5bdf40,createElement as _0x433fb7,forwardRef as _0x51a912,useState as _0x41412a,useEffect as _0x710f1d}from'react';import{CollaborationEvent as _0x1bfde3,parseProtocolChangeset as _0xe1444c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x76787b,SessionStatus as _0x1d2e0c,UniverCollaborationClientPlugin as _0x52b6d2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x54e6ad,SetWorksheetActiveOperation as _0x7f48eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4603a5,Subject as _0x26df35}from'rxjs';import{takeUntil as _0x75a298,throttleTime as _0x2bfc6b}from'rxjs/operators';function _0x5e6b(_0x3d7f4c,_0x14cb74){const _0x5073f8=_0x5073();return _0x5e6b=function(_0x5e6b89,_0x5e37e4){_0x5e6b89=_0x5e6b89-0x118;let _0x4ba283=_0x5073f8[_0x5e6b89];return _0x4ba283;},_0x5e6b(_0x3d7f4c,_0x14cb74);}import{SetZoomRatioOperation as _0x23298b,SetScrollOperation as _0x5acac7}from'@univerjs/sheets-ui';function k({ref:_0xe3c7c0,..._0x142e4a}){const _0x2ca499=_0x3f8b8a,{icon:_0x1d8f59,id:_0xd0ff5d,className:_0x232dc0,extend:_0x1f2413,..._0x500a00}=_0x142e4a,_0x5e65aa=('univerjs-icon\x20univerjs-icon-'+_0xd0ff5d+'\x20'+(_0x232dc0||''))[_0x2ca499(0x182)](),_0x333265=_0x5bdf40('_'+Oe());return G(_0x1d8f59,''+_0xd0ff5d,{'defIds':_0x1d8f59[_0x2ca499(0x155)],'idSuffix':_0x333265[_0x2ca499(0x15c)]},{'ref':_0xe3c7c0,'className':_0x5e65aa,..._0x500a00},_0x1f2413);}function G(_0xd39f0a,_0x3163ad,_0x493cb7,_0x3f26f8,_0x24388e){const _0x54d6d4=_0x3f8b8a;return _0x433fb7(_0xd39f0a[_0x54d6d4(0x1bd)],{'key':_0x3163ad,...be(_0xd39f0a,_0x493cb7,_0x24388e),..._0x3f26f8},(Ee(_0xd39f0a,_0x493cb7)[_0x54d6d4(0x14e)]||[])[_0x54d6d4(0x174)]((_0x3a0e71,_0x31f09c)=>G(_0x3a0e71,_0x3163ad+'-'+_0xd39f0a[_0x54d6d4(0x1bd)]+'-'+_0x31f09c,_0x493cb7,void 0x0,_0x24388e)));}function be(_0x42773d,_0x42881d,_0x4648ef){const _0x3ced73=_0x3f8b8a,_0x369ee7={..._0x42773d[_0x3ced73(0x173)]};_0x4648ef!=null&&_0x4648ef[_0x3ced73(0x1ae)]&&_0x369ee7['fill']===_0x3ced73(0x1ae)&&(_0x369ee7['fill']=_0x4648ef['colorChannel1']),_0x42773d['tag']===_0x3ced73(0x134)&&_0x369ee7['id']&&(_0x369ee7['id']=_0x369ee7['id']+_0x42881d[_0x3ced73(0x13c)]),Object['entries'](_0x369ee7)[_0x3ced73(0x151)](([_0x587907,_0x119040])=>{const _0x2cde33=_0x3ced73;_0x587907===_0x2cde33(0x134)&&typeof _0x119040==_0x2cde33(0x164)&&(_0x369ee7[_0x587907]=_0x119040['replace'](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x2cde33(0x13c)]+')'));});const {defIds:_0x3dc9f2}=_0x42881d;return!_0x3dc9f2||_0x3dc9f2[_0x3ced73(0x136)]===0x0||(_0x42773d[_0x3ced73(0x1bd)]===_0x3ced73(0x175)&&_0x369ee7[_0x3ced73(0x15f)]&&(_0x369ee7[_0x3ced73(0x15f)]=_0x369ee7['xlink:href']+_0x42881d[_0x3ced73(0x13c)]),Object[_0x3ced73(0x1b9)](_0x369ee7)[_0x3ced73(0x151)](([_0x3c8fab,_0xb5ee25])=>{const _0x36a25a=_0x3ced73;typeof _0xb5ee25==_0x36a25a(0x164)&&(_0x369ee7[_0x3c8fab]=_0xb5ee25[_0x36a25a(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x36a25a(0x13c)]+')'));})),_0x369ee7;}function Ee(_0x1f5ccf,_0x5577bc){const _0x3b2b48=_0x3f8b8a;var _0x38bd2c;const {defIds:_0x4ae1fb}=_0x5577bc;return!_0x4ae1fb||_0x4ae1fb[_0x3b2b48(0x136)]===0x0?_0x1f5ccf:_0x1f5ccf[_0x3b2b48(0x1bd)]==='defs'&&((_0x38bd2c=_0x1f5ccf[_0x3b2b48(0x14e)])!=null&&_0x38bd2c['length'])?{..._0x1f5ccf,'children':_0x1f5ccf[_0x3b2b48(0x14e)][_0x3b2b48(0x174)](_0x3a763a=>typeof _0x3a763a[_0x3b2b48(0x173)]['id']=='string'&&_0x4ae1fb&&_0x4ae1fb[_0x3b2b48(0x11f)](_0x3a763a[_0x3b2b48(0x173)]['id'])?{..._0x3a763a,'attrs':{..._0x3a763a['attrs'],'id':_0x3a763a[_0x3b2b48(0x173)]['id']+_0x5577bc[_0x3b2b48(0x13c)]}}:_0x3a763a)}:_0x1f5ccf;}function Oe(){const _0x32d4f2=_0x3f8b8a;return Math[_0x32d4f2(0x1b2)]()[_0x32d4f2(0x14a)](0x24)[_0x32d4f2(0x17a)](0x2,0x8);}k[_0x3f8b8a(0x185)]=_0x3f8b8a(0x125);const we={'tag':_0x3f8b8a(0x12d),'attrs':{'xmlns':_0x3f8b8a(0x18d),'fill':_0x3f8b8a(0x163),'viewBox':_0x3f8b8a(0x186),'width':_0x3f8b8a(0x198),'height':_0x3f8b8a(0x198)},'children':[{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x194)}},{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x128),'fillRule':_0x3f8b8a(0x120),'clipRule':_0x3f8b8a(0x120)}}]},W=_0x51a912(function(_0x4760e6,_0x12fa81){const _0x8323b6=_0x3f8b8a;return _0x433fb7(k,Object[_0x8323b6(0x16e)]({},_0x4760e6,{'id':_0x8323b6(0x11b),'ref':_0x12fa81,'icon':we}));});W['displayName']=_0x3f8b8a(0x1b0);class L extends _0x159720{constructor(){const _0x57e4be=_0x3f8b8a;super(...arguments),u(this,_0x57e4be(0x1ba),new Set()),u(this,'_reporters',new Set());}[_0x3f8b8a(0x13e)](_0x4acac7){const _0x7a7ffb=_0x3f8b8a;return this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x1ac)](_0x4acac7),_0x51d4c6(()=>this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x14c)](_0x4acac7));}[_0x3f8b8a(0x19f)](_0x217eeb){const _0x15bb0d=_0x3f8b8a;return this['_reporters'][_0x15bb0d(0x1ac)](_0x217eeb),_0x51d4c6(()=>this[_0x15bb0d(0x1a6)][_0x15bb0d(0x14c)](_0x217eeb));}[_0x3f8b8a(0x1af)](_0x5f0c1e){const _0x21b2f8=_0x3f8b8a;return this['_sharedOperations'][_0x21b2f8(0x1b3)](_0x5f0c1e);}[_0x3f8b8a(0x126)](_0x28f42f){const _0x583ead=_0x3f8b8a;return Array[_0x583ead(0x11a)](this[_0x583ead(0x1a6)])[_0x583ead(0x174)](_0x47d80d=>_0x47d80d(_0x28f42f));}}var Ne=Object[_0x3f8b8a(0x13b)],Y=(_0x22d92a,_0x5baaf6,_0x1c120e,_0x2dbae1)=>{const _0x142a4a=_0x3f8b8a;for(var _0x4143e4=_0x2dbae1>0x1?void 0x0:_0x2dbae1?Ne(_0x5baaf6,_0x1c120e):_0x5baaf6,_0xd30129=_0x22d92a[_0x142a4a(0x136)]-0x1,_0x285747;_0xd30129>=0x0;_0xd30129--)(_0x285747=_0x22d92a[_0xd30129])&&(_0x4143e4=_0x285747(_0x4143e4)||_0x4143e4);return _0x4143e4;},_=(_0x1b8bf3,_0x3c5791)=>(_0x33fb27,_0x509447)=>_0x3c5791(_0x33fb27,_0x509447,_0x1b8bf3);let S=class extends _0x16a1ae{constructor(_0x3d2124,_0x1caff3,_0x177195){const _0xea2054=_0x3f8b8a;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d2124,this[_0xea2054(0x195)]=_0x1caff3,this['_collabSessionService']=_0x177195,this[_0xea2054(0x13a)]());}async[_0x3f8b8a(0x156)](_0x18173e){const _0x39d342=_0x3f8b8a;return this[_0x39d342(0x1a9)][_0x39d342(0x1b3)](_0x18173e)||await this['_startLiveShareCoordinator'](_0x18173e),this[_0x39d342(0x1a9)][_0x39d342(0x15d)](_0x18173e);}['getLiveShareCoordinatorSync'](_0x51a436){const _0x560500=_0x3f8b8a;var _0x1eb23d;return(_0x1eb23d=this[_0x560500(0x1a9)][_0x560500(0x15d)](_0x51a436))!=null?_0x1eb23d:null;}['_init'](){const _0x5f5519=_0x3f8b8a;this['_univerInstanceService'][_0x5f5519(0x16c)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](async _0x5e9eee=>{const _0x5be08c=_0x5f5519,_0x1061f6=_0x5e9eee['getUnitId']();this['_entities']['has'](_0x1061f6)||this[_0x5be08c(0x171)](_0x1061f6);}),this[_0x5f5519(0x19e)][_0x5f5519(0x176)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](_0x1c9bc8=>{const _0x2bbaf6=_0x5f5519,_0x47d72a=_0x1c9bc8[_0x2bbaf6(0x172)](),_0x1a583=this['_entities'][_0x2bbaf6(0x15d)](_0x47d72a);_0x1a583==null||_0x1a583[_0x2bbaf6(0x132)]();});}async[_0x3f8b8a(0x171)](_0x2bfa87){const _0x447c7d=_0x3f8b8a,_0x50e532=await this['_collabSessionService'][_0x447c7d(0x1b5)](_0x2bfa87),_0x5f59f8=this['_injector'][_0x447c7d(0x17b)](N,_0x2bfa87,_0x50e532);return _0x5f59f8[_0x447c7d(0x14b)](),this[_0x447c7d(0x1a9)][_0x447c7d(0x12a)](_0x2bfa87,_0x5f59f8),_0x5f59f8;}};S=Y([_(0x0,_0x399285),_(0x1,_0x5559c6(_0x195227)),_(0x2,_0x5559c6(_0x76787b))],S);var c=(_0x574527=>(_0x574527['OFFLINE']='offline',_0x574527['IDLE']='idle',_0x574527['FOLLOWING']='following',_0x574527[_0x3f8b8a(0x131)]='not-following',_0x574527[_0x3f8b8a(0x129)]=_0x3f8b8a(0x15b),_0x574527))(c||{});const Ce=_0x3f8b8a(0x154),De=0xc8;let N=class extends _0x16a1ae{constructor(_0x4276f7,_0x346f6b,_0x2b6c92,_0x142612,_0xb2a889){const _0x39a6e7=_0x3f8b8a;super(),u(this,_0x39a6e7(0x119),new _0x4603a5(_0x39a6e7(0x199))),u(this,_0x39a6e7(0x118),this['_status$'][_0x39a6e7(0x1a1)]()),u(this,'_init',!0x1),u(this,_0x39a6e7(0x19b),null),u(this,_0x39a6e7(0x11d),null),(this[_0x39a6e7(0x149)]=_0x4276f7,this[_0x39a6e7(0x1a2)]=_0x346f6b,this['_configService']=_0x2b6c92,this[_0x39a6e7(0x16d)]=_0x142612,this['_commandService']=_0xb2a889);}get[_0x3f8b8a(0x17d)](){const _0x5034b4=_0x3f8b8a;return this[_0x5034b4(0x119)]['getValue']();}[_0x3f8b8a(0x132)](){const _0x3a92df=_0x3f8b8a;var _0x1e7b70;(_0x1e7b70=this[_0x3a92df(0x19b)])==null||_0x1e7b70[_0x3a92df(0x132)](),this[_0x3a92df(0x119)][_0x3a92df(0x15a)](_0x3a92df(0x199)),this[_0x3a92df(0x119)][_0x3a92df(0x159)]();}[_0x3f8b8a(0x19c)](){const _0x243205=_0x3f8b8a;return this[_0x243205(0x17d)];}[_0x3f8b8a(0x14b)](){const _0x4d9eac=_0x3f8b8a;this[_0x4d9eac(0x13a)]||(this['_init']=!0x0,this[_0x4d9eac(0x1a2)][_0x4d9eac(0x184)][_0x4d9eac(0x193)](_0x75a298(this[_0x4d9eac(0x183)]))[_0x4d9eac(0x169)](_0xed7b20=>{const _0x5c912b=_0x4d9eac;switch(_0xed7b20){case _0x1d2e0c['OFFLINE']:this[_0x5c912b(0x167)]();break;case _0x1d2e0c['ONLINE']:this[_0x5c912b(0x14d)]();break;}}),this['_collabSession'][_0x4d9eac(0x161)][_0x4d9eac(0x193)](_0x75a298(this['dispose$']))['subscribe'](_0x28f52f=>{const _0x28a030=_0x4d9eac,{eventID:_0x18df19}=_0x28f52f;switch(_0x18df19){case _0x1bfde3[_0x28a030(0x13d)]:this[_0x28a030(0x150)](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x143)]:this['_handleOperation'](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x1bb)]:this[_0x28a030(0x124)]();break;case _0x1bfde3[_0x28a030(0x15e)]:this[_0x28a030(0x162)](_0x28f52f);break;}}));}[_0x3f8b8a(0x1aa)](){const _0x24894a=_0x3f8b8a;this[_0x24894a(0x1a2)][_0x24894a(0x148)]({'eventID':_0x1bfde3[_0x24894a(0x1a8)],'data':{'unitID':this['_unitID'],'userID':this[_0x24894a(0x1a2)][_0x24894a(0x190)]()}},this[_0x24894a(0x149)]);}[_0x3f8b8a(0x19a)](){const _0x3c56f2=_0x3f8b8a;this[_0x3c56f2(0x17d)]==='presenting'&&(this[_0x3c56f2(0x119)]['next']('idle'),this[_0x3c56f2(0x1a2)][_0x3c56f2(0x148)]({'eventID':_0x1bfde3[_0x3c56f2(0x1bb)],'data':{'unitID':this[_0x3c56f2(0x149)]}},this[_0x3c56f2(0x149)]));}['startFollowing'](){const _0x5343ed=_0x3f8b8a;this['_status']===_0x5343ed(0x1be)&&(this['_status$']['next'](_0x5343ed(0x1a5)),this[_0x5343ed(0x123)]());}['stopFollowing'](){const _0x37e4e2=_0x3f8b8a;this[_0x37e4e2(0x17d)]==='following'&&this[_0x37e4e2(0x1b6)]();}[_0x3f8b8a(0x150)](_0x58be5a){const _0x48d6f1=_0x3f8b8a,{presenter:_0x35aeae}=_0x58be5a[_0x48d6f1(0x147)],_0x42f624=this['_collabSession'][_0x48d6f1(0x190)]();this[_0x48d6f1(0x11d)]=_0x35aeae,_0x35aeae===_0x42f624?(this[_0x48d6f1(0x1b6)](),this[_0x48d6f1(0x141)]()):this[_0x48d6f1(0x17d)]!==_0x48d6f1(0x1be)&&(this[_0x48d6f1(0x165)](),this['_startFollowing']());}[_0x3f8b8a(0x179)](){const _0x6c3b87=_0x3f8b8a,_0x56ed86={'eventID':_0x1bfde3['LIVESHARE_FETCH_OPERATIONS']};this[_0x6c3b87(0x1a2)][_0x6c3b87(0x148)](_0x56ed86,this[_0x6c3b87(0x149)]);}[_0x3f8b8a(0x124)](){const _0x2cab7b=_0x3f8b8a;this['_presenter']=null,this[_0x2cab7b(0x17d)]!=='presenting'&&this[_0x2cab7b(0x16b)]();}[_0x3f8b8a(0x162)](_0x321f12){const _0xdd36ca=_0x3f8b8a;if(this[_0xdd36ca(0x17d)]===_0xdd36ca(0x1a5)&&this[_0xdd36ca(0x11d)]===_0x321f12['data']['memberID']){const _0x2956d7=_0xe1444c(_0x321f12[_0xdd36ca(0x147)])[_0xdd36ca(0x146)][_0xdd36ca(0x1a7)]()[_0xdd36ca(0x189)](_0x4e9636=>_0x4e9636['id']===_0x54e6ad['id']);if(_0x2956d7){const _0x132c1e=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x135)],_0x52ac32=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x137)]['id'];setTimeout(()=>{const _0x5a91e8=_0xdd36ca;this[_0x5a91e8(0x177)][_0x5a91e8(0x181)](_0x7f48eb['id'],{'unitId':_0x132c1e,'subUnitId':_0x52ac32},{'fromCollab':!0x0});});}}}[_0x3f8b8a(0x141)](){const _0x570568=_0x3f8b8a;this[_0x570568(0x119)][_0x570568(0x15a)](_0x570568(0x15b));const _0x48df98=new Map(),_0x805d37=this[_0x570568(0x19b)]=new _0x434384();_0x805d37[_0x570568(0x1ac)](_0x51d4c6(()=>{const _0x4fab03=_0x570568;_0x48df98[_0x4fab03(0x151)](_0x1a3792=>_0x1a3792[_0x4fab03(0x159)]()),_0x48df98[_0x4fab03(0x144)]();})),_0x805d37[_0x570568(0x1ac)](this[_0x570568(0x177)][_0x570568(0x127)](_0x1ffa50=>{const _0x541913=_0x570568;var _0x380ba2;if(_0x1ffa50['type']!==_0x1fb413[_0x541913(0x17f)]||!this['_liveShareService'][_0x541913(0x1af)](_0x1ffa50['id']))return;const {id:_0x2d2022}=_0x1ffa50;let _0x4641a2;_0x48df98['has'](_0x2d2022)?_0x4641a2=_0x48df98[_0x541913(0x15d)](_0x2d2022):(_0x4641a2=new _0x26df35(),_0x48df98[_0x541913(0x12a)](_0x2d2022,_0x4641a2),_0x4641a2[_0x541913(0x193)](_0x2bfc6b((_0x380ba2=this[_0x541913(0x157)][_0x541913(0x18a)](Ce))!=null?_0x380ba2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x541913(0x169)](_0x53e5b3=>{const _0xbd360a=_0x541913;this[_0xbd360a(0x1a2)]['send']({'eventID':_0x1bfde3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xbd360a(0x149)],'operations':{[_0x53e5b3['id']]:{'id':_0x53e5b3['id'],'params':JSON[_0xbd360a(0x16a)](_0x53e5b3[_0xbd360a(0x187)])}}}},this[_0xbd360a(0x149)]);})),_0x4641a2[_0x541913(0x15a)](_0x1ffa50);})),this[_0x570568(0x16d)][_0x570568(0x126)](this[_0x570568(0x149)])[_0x570568(0x151)](_0x32739c=>this[_0x570568(0x1a2)][_0x570568(0x148)]({'eventID':_0x1bfde3[_0x570568(0x143)],'data':{'unitID':this[_0x570568(0x149)],'operations':{[_0x32739c['id']]:{'id':_0x32739c['id'],'params':JSON[_0x570568(0x16a)](_0x32739c[_0x570568(0x187)])}}}},this['_unitID']));}[_0x3f8b8a(0x165)](){const _0x4fcc9d=_0x3f8b8a;var _0x2c9889;this['_status$'][_0x4fcc9d(0x15a)]('idle'),(_0x2c9889=this['_commandDisposable'])==null||_0x2c9889[_0x4fcc9d(0x132)](),this['_commandDisposable']=null;}[_0x3f8b8a(0x123)](){const _0x191871=_0x3f8b8a;var _0x55d507;(_0x55d507=this['_commandDisposable'])==null||_0x55d507[_0x191871(0x132)](),this[_0x191871(0x119)][_0x191871(0x15a)](_0x191871(0x1a5));}[_0x3f8b8a(0x16b)](){const _0x56a8fd=_0x3f8b8a;var _0x2f872b;this['_status$'][_0x56a8fd(0x15a)](_0x56a8fd(0x199)),(_0x2f872b=this[_0x56a8fd(0x19b)])==null||_0x2f872b['dispose'](),this['_commandDisposable']=null;}[_0x3f8b8a(0x1b6)](){const _0x59d686=_0x3f8b8a;var _0xee0c7e;this['_status$'][_0x59d686(0x15a)](_0x59d686(0x1be)),(_0xee0c7e=this[_0x59d686(0x19b)])==null||_0xee0c7e[_0x59d686(0x132)]();}['_handleOperation'](_0x1fe05f){const _0x5a8b7d=_0x3f8b8a;if([_0x5a8b7d(0x15b),_0x5a8b7d(0x1be),_0x5a8b7d(0x17c)][_0x5a8b7d(0x11f)](this[_0x5a8b7d(0x17d)])||!_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x12b)]||_0x1fe05f['data'][_0x5a8b7d(0x12b)]===this[_0x5a8b7d(0x1a2)][_0x5a8b7d(0x190)]())return;this[_0x5a8b7d(0x17d)]==='idle'&&this[_0x5a8b7d(0x123)]();const _0x3b278=_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x140)];Object[_0x5a8b7d(0x133)](_0x3b278)[_0x5a8b7d(0x151)](_0x1abcbe=>{const _0x14c655=_0x5a8b7d;this[_0x14c655(0x177)][_0x14c655(0x181)](_0x1abcbe['id'],_0x1abcbe[_0x14c655(0x187)]?JSON['parse'](_0x1abcbe[_0x14c655(0x187)]):null,{'fromCollab':!0x0});});}[_0x3f8b8a(0x167)](){const _0x47bc6e=_0x3f8b8a;var _0x13b4d8;this[_0x47bc6e(0x119)][_0x47bc6e(0x15a)](_0x47bc6e(0x17c)),(_0x13b4d8=this['_commandDisposable'])==null||_0x13b4d8[_0x47bc6e(0x132)]();}[_0x3f8b8a(0x14d)](){const _0x29a970=_0x3f8b8a;this[_0x29a970(0x119)]['next']('idle'),this[_0x29a970(0x179)]();}};N=Y([_(0x2,_0x5c28f1),_(0x3,_0x5559c6(L)),_(0x4,_0x754535)],N);function Le(){const _0x22584c=_0x3f8b8a,_0x5158de=_0x437252(S),_0x22ff73=_0x437252(_0x399285),_0x4fe169=_0x420d0b(()=>_0x22ff73['getCurrentTypeOfUnit$'](_0x3fe8fe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13918f,_0x5a27e4]=_0x41412a(null),[_0xe69d7a,_0x8f994d]=_0x41412a(c[_0x22584c(0x12e)]),_0x397bf8=_0x5bdf40(null);return _0x710f1d(()=>(_0x4fe169&&_0x5158de[_0x22584c(0x156)](_0x4fe169[_0x22584c(0x172)]())[_0x22584c(0x160)](_0x487b0c=>{const _0x3bc4df=_0x22584c;_0x5a27e4(_0x487b0c),_0x397bf8[_0x3bc4df(0x15c)]=_0x487b0c[_0x3bc4df(0x118)][_0x3bc4df(0x169)](_0x258b5b=>{_0x8f994d(_0x258b5b);});}),()=>{const _0x438cb8=_0x22584c;var _0x1f1064;(_0x1f1064=_0x397bf8[_0x438cb8(0x15c)])==null||_0x1f1064[_0x438cb8(0x145)](),_0x397bf8['current']=null;}),[_0x4fe169,_0x5158de]),_0x13918f?_0x2a725f(_0x1c024f,{'align':_0x22584c(0x152),'disabled':_0xe69d7a===c[_0x22584c(0x1b1)],'className':_0x22584c(0x168),'overlay':_0x2a725f(Re,{'status':_0xe69d7a,'coordinator':_0x13918f}),'children':_0x2a725f(_0x22584c(0x192),{'className':_0x1e4748(_0x22584c(0x16f),{'univer-cursor-not-allowed':_0xe69d7a===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe69d7a!==c[_0x22584c(0x1b1)]}),'type':_0x22584c(0x192),'children':_0x2a725f(W,{'className':_0x22584c(0x1ab)})})}):null;}function Re(_0x338ffb){const _0x3dd1f6=_0x3f8b8a,{status:_0x55981b,coordinator:_0x2d4cf8}=_0x338ffb;switch(_0x55981b){case c['IDLE']:return _0x2a725f($e,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b8)]:return _0x2a725f(xe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x131)]:return _0x2a725f(Pe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b1)]:return _0x2a725f(Te,{});case c['PRESENTING']:return _0x2a725f(Ae,{'coordinator':_0x2d4cf8});default:return null;}}function $e(_0xe2c10a){const _0x42d232=_0x3f8b8a,{coordinator:_0x5432b0}=_0xe2c10a;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f('div',{'className':_0x42d232(0x13f),'children':'Present\x20this\x20document'}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x5432b0[_0x42d232(0x1aa)](),'children':'Start'})]});}function xe(_0x46d1b7){const _0x3fade4=_0x3f8b8a,{coordinator:_0x3870d3}=_0x46d1b7;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3fade4(0x1a0),{'className':_0x3fade4(0x13f),'children':_0x3fade4(0x138)}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x3870d3['stopFollowing'](),'children':_0x3fade4(0x178)})]});}function Pe(_0x2ad8a6){const _0x1507c4=_0x3f8b8a,{coordinator:_0x15114f}=_0x2ad8a6;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x1507c4(0x1a0),{'className':_0x1507c4(0x13f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2a725f(_0x3efa6c,{'variant':_0x1507c4(0x19d),'onClick':()=>_0x15114f['startFollowing'](),'children':_0x1507c4(0x142)})]});}function Ae(_0x4d9d45){const _0x3b0c48=_0x3f8b8a,{coordinator:_0x6739dd}=_0x4d9d45;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3b0c48(0x1a0),{'className':_0x3b0c48(0x13f),'children':_0x3b0c48(0x18e)}),_0x2a725f(_0x3efa6c,{'variant':_0x3b0c48(0x153),'onClick':()=>_0x6739dd[_0x3b0c48(0x19a)](),'children':_0x3b0c48(0x11e)})]});}function Te(){const _0x5ab2e9=_0x3f8b8a;return _0x2a725f(_0x32f569,{'children':_0x5ab2e9(0x18b)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x692b81,_0x2bd650,_0x55ecc7,_0x573e73)=>{for(var _0x265abf=_0x573e73>0x1?void 0x0:_0x573e73?Fe(_0x2bd650,_0x55ecc7):_0x2bd650,_0x9a9881=_0x692b81['length']-0x1,_0xe49475;_0x9a9881>=0x0;_0x9a9881--)(_0xe49475=_0x692b81[_0x9a9881])&&(_0x265abf=_0xe49475(_0x265abf)||_0x265abf);return _0x265abf;},A=(_0x3e8478,_0x1dc1e1)=>(_0x1d6c49,_0x43136c)=>_0x1dc1e1(_0x1d6c49,_0x43136c,_0x3e8478);let m=class extends _0x159720{constructor(_0x3b5d43,_0x5c3466){const _0x3f13f9=_0x3f8b8a;super(),this[_0x3f13f9(0x195)]=_0x3b5d43,this[_0x3f13f9(0x158)]=_0x5c3466,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x9ce3e3=_0x3f8b8a;this[_0x9ce3e3(0x188)](this[_0x9ce3e3(0x158)][_0x9ce3e3(0x1ad)](_0x4dcc23[_0x9ce3e3(0x17e)],()=>_0x54592c(Le,this[_0x9ce3e3(0x195)])));}};m=He([A(0x0,_0x5559c6(_0x195227)),A(0x1,_0x32b863)],m);const ye='live-share.config',T={};var Ue=Object[_0x3f8b8a(0x13b)],Ve=(_0x57f1cb,_0x1bff20,_0x2e21ac,_0x510d99)=>{const _0x1fc779=_0x3f8b8a;for(var _0x39b7f2=_0x510d99>0x1?void 0x0:_0x510d99?Ue(_0x1bff20,_0x2e21ac):_0x1bff20,_0x16b7ff=_0x57f1cb[_0x1fc779(0x136)]-0x1,_0x49eb70;_0x16b7ff>=0x0;_0x16b7ff--)(_0x49eb70=_0x57f1cb[_0x16b7ff])&&(_0x39b7f2=_0x49eb70(_0x39b7f2)||_0x39b7f2);return _0x39b7f2;},je=(_0xa2122c,_0x9f8f62)=>(_0x508fa7,_0x2b1df8)=>_0x9f8f62(_0x508fa7,_0x2b1df8,_0xa2122c);let I=class extends _0x159720{constructor(_0xcc460c){const _0x27f7e3=_0x3f8b8a;super(),this['_liveShareService']=_0xcc460c,this[_0x27f7e3(0x13a)]();}[_0x3f8b8a(0x13a)](){const _0x73d333=_0x3f8b8a;[_0x23298b['id'],_0x5acac7['id'],_0x7f48eb['id']][_0x73d333(0x151)](_0x475cc7=>{const _0x89d838=_0x73d333;this['disposeWithMe'](this[_0x89d838(0x16d)][_0x89d838(0x13e)](_0x475cc7));});}};I=Ve([je(0x0,_0x5559c6(L))],I);var Me=Object[_0x3f8b8a(0x121)],ke=Object[_0x3f8b8a(0x13b)],Ge=(_0x2116fc,_0xb34a52,_0x3b2d2a)=>_0xb34a52 in _0x2116fc?Me(_0x2116fc,_0xb34a52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2d2a}):_0x2116fc[_0xb34a52]=_0x3b2d2a,We=(_0x17513b,_0xfb1c9a,_0x4b4434,_0x41a9a5)=>{const _0x4fb515=_0x3f8b8a;for(var _0xefc1c8=_0x41a9a5>0x1?void 0x0:_0x41a9a5?ke(_0xfb1c9a,_0x4b4434):_0xfb1c9a,_0x158699=_0x17513b[_0x4fb515(0x136)]-0x1,_0x21492d;_0x158699>=0x0;_0x158699--)(_0x21492d=_0x17513b[_0x158699])&&(_0xefc1c8=_0x21492d(_0xefc1c8)||_0xefc1c8);return _0xefc1c8;},F=(_0x1e2c9c,_0x11c040)=>(_0x294155,_0x9fd399)=>_0x11c040(_0x294155,_0x9fd399,_0x1e2c9c),B=(_0x59a4a2,_0x4ef318,_0x35ae5e)=>Ge(_0x59a4a2,typeof _0x4ef318!='symbol'?_0x4ef318+'':_0x4ef318,_0x35ae5e);const Ye=_0x3f8b8a(0x18c);let b=class extends _0x25bb0a{constructor(_0x459cf0=T,_0x37b1e9,_0x52a233){const _0x556311=_0x3f8b8a;super(),this[_0x556311(0x12f)]=_0x459cf0,this[_0x556311(0x195)]=_0x37b1e9,this[_0x556311(0x157)]=_0x52a233;const {..._0x520479}=_0x39e1c5({},T,this[_0x556311(0x12f)]);this[_0x556311(0x157)][_0x556311(0x1b7)](ye,_0x520479);}[_0x3f8b8a(0x196)](){const _0x4767d2=_0x3f8b8a;_0x46d24c(this['_injector'],_0x7a71b0([[L],[S],[I],[m]],this[_0x4767d2(0x12f)][_0x4767d2(0x1bc)])),_0x4d514b(this['_injector'],[[I]]);}[_0x3f8b8a(0x130)](){const _0x30604d=_0x3f8b8a;_0x4d514b(this[_0x30604d(0x195)],[[m]]);}};B(b,'type',_0x3fe8fe['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x3f7112(_0x52b6d2),F(0x1,_0x5559c6(_0x195227)),F(0x2,_0x5c28f1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x33a569=_0x277f;(function(_0x5cd959,_0x4916d1){const _0x2cc90b=_0x277f,_0x113030=_0x5cd959();while(!![]){try{const _0x10619a=-parseInt(_0x2cc90b(0xac))/0x1*(parseInt(_0x2cc90b(0xa9))/0x2)+-parseInt(_0x2cc90b(0xad))/0x3*(-parseInt(_0x2cc90b(0xa1))/0x4)+-parseInt(_0x2cc90b(0x99))/0x5+-parseInt(_0x2cc90b(0xa8))/0x6*(-parseInt(_0x2cc90b(0xa5))/0x7)+parseInt(_0x2cc90b(0xab))/0x8+parseInt(_0x2cc90b(0x9e))/0x9*(parseInt(_0x2cc90b(0xaa))/0xa)+-parseInt(_0x2cc90b(0x93))/0xb;if(_0x10619a===_0x4916d1)break;else _0x113030['push'](_0x113030['shift']());}catch(_0x4085c6){_0x113030['push'](_0x113030['shift']());}}}(_0x31f7,0xad0b4));import{LiveShareController as _0x59129e,LiveShareStatus as _0x1a7214}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x8a0a89}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x1f4e13}from'@univerjs/sheets';import{SetScrollOperation as _0x54813f}from'@univerjs/sheets-ui';import{FRange as _0x23e2ea}from'@univerjs/sheets/facade';import{FUniver as _0x53e75f,FEnum as _0x179f5f}from'@univerjs/core/facade';class I extends _0x23e2ea{[_0x33a569(0xa2)](_0x13859a,_0x33b13f,_0x2ca1e3,_0x124d95,_0x2c3400){const _0x290594=_0x33a569,_0x3b531c=_0x13859a['get'](_0x59129e),_0x27ebac=_0x13859a[_0x290594(0x97)](_0x8a0a89),_0x16c33a=_0x33b13f[_0x290594(0xa6)](),_0x53cfec=_0x33b13f[_0x290594(0x98)](),_0x288377=_0x3b531c[_0x290594(0x8f)](_0x16c33a);(_0x288377==null?void 0x0:_0x288377[_0x290594(0x9c)]())!==_0x1a7214[_0x290594(0xa3)]||(_0x2ca1e3[_0x290594(0x9b)]()!==_0x53cfec[_0x290594(0x9b)]()&&this['_commandService'][_0x290594(0xa4)](_0x1f4e13['id'],{'unitId':_0x16c33a,'subUnitId':_0x2ca1e3[_0x290594(0x9b)]()}),!_0x27ebac[_0x290594(0x95)](_0x16c33a))||_0x2c3400[_0x290594(0x8e)](_0x54813f['id'],{'unitId':_0x33b13f[_0x290594(0xa6)](),'sheetId':_0x2ca1e3['getSheetId'](),'sheetViewStartRow':_0x124d95['startRow'],'sheetViewStartColumn':_0x124d95[_0x290594(0x90)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x31f7(){const _0x18f288=['syncExecuteCommand','getLiveShareCoordinatorSync','startColumn','_injector','stopPresenting','9315801UkdtTk','tryStartPresenting','getRenderById','getActiveWorkbook','get','getActiveSheet','3556655GDXyOn','getId','getSheetId','getStatus','No\x20active\x20workbook\x20found.','9hgOSzs','startFollowing','getLiveShareStatus','124GsAqyr','_initialize','PRESENTING','executeCommand','7fDaKHo','getUnitId','LiveShareStatusEnum','7465386ozIUVJ','103990GYCBOL','5405110oKvtaP','2117960WcYciz','16tZWvmK','101559BPdaPW','IDLE','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','stopFollowing'];_0x31f7=function(){return _0x18f288;};return _0x31f7();}_0x23e2ea['extend'](I);function _0x277f(_0x3be93e,_0x490b9a){const _0x31f76c=_0x31f7();return _0x277f=function(_0x277f61,_0x534624){_0x277f61=_0x277f61-0x8b;let _0x849b4e=_0x31f76c[_0x277f61];return _0x849b4e;},_0x277f(_0x3be93e,_0x490b9a);}class m extends _0x53e75f{[_0x33a569(0xa0)](){const _0x1b7a82=_0x33a569;var _0x521b28,_0x3e0a4f;const _0xb7224=this['_injector'][_0x1b7a82(0x97)](_0x59129e),_0x14c35f=(_0x521b28=this[_0x1b7a82(0x96)]())==null?void 0x0:_0x521b28[_0x1b7a82(0x9a)]();if(!_0x14c35f)throw new Error(_0x1b7a82(0x9d));const _0x3d17b6=_0xb7224[_0x1b7a82(0x8f)](_0x14c35f);return(_0x3e0a4f=_0x3d17b6==null?void 0x0:_0x3d17b6[_0x1b7a82(0x9c)]())!=null?_0x3e0a4f:_0x1a7214[_0x1b7a82(0xae)];}[_0x33a569(0x9f)](){const _0x239c72=_0x33a569;var _0x16a070;const _0x2a0812=this[_0x239c72(0x91)][_0x239c72(0x97)](_0x59129e),_0x5eb7a5=(_0x16a070=this[_0x239c72(0x96)]())==null?void 0x0:_0x16a070['getId']();if(!_0x5eb7a5)throw new Error(_0x239c72(0x9d));const _0x201828=_0x2a0812[_0x239c72(0x8f)](_0x5eb7a5);if(!_0x201828)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x201828[_0x239c72(0x9f)]();}[_0x33a569(0x8d)](){const _0x4f7d67=_0x33a569;var _0x40d17d;const _0x3558fe=this[_0x4f7d67(0x91)][_0x4f7d67(0x97)](_0x59129e),_0x1440ab=(_0x40d17d=this[_0x4f7d67(0x96)]())==null?void 0x0:_0x40d17d[_0x4f7d67(0x9a)]();if(!_0x1440ab)throw new Error(_0x4f7d67(0x9d));const _0x19fa2f=_0x3558fe['getLiveShareCoordinatorSync'](_0x1440ab);if(!_0x19fa2f)throw new Error(_0x4f7d67(0x8b));_0x19fa2f[_0x4f7d67(0x8d)]();}[_0x33a569(0xaf)](){const _0x1510f6=_0x33a569;var _0x3037d2;const _0x229206=this['_injector']['get'](_0x59129e),_0x2ee8f0=(_0x3037d2=this[_0x1510f6(0x96)]())==null?void 0x0:_0x3037d2['getId']();if(!_0x2ee8f0)throw new Error(_0x1510f6(0x9d));const _0x185e27=_0x229206[_0x1510f6(0x8f)](_0x2ee8f0);if(!_0x185e27)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x185e27[_0x1510f6(0x94)]();}[_0x33a569(0x92)](){const _0x9e4d7f=_0x33a569;var _0x1b6227;const _0xb8eab0=this[_0x9e4d7f(0x91)]['get'](_0x59129e),_0x386f67=(_0x1b6227=this[_0x9e4d7f(0x96)]())==null?void 0x0:_0x1b6227[_0x9e4d7f(0x9a)]();if(!_0x386f67)throw new Error(_0x9e4d7f(0x9d));const _0x528a8a=_0xb8eab0[_0x9e4d7f(0x8f)](_0x386f67);if(!_0x528a8a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x528a8a[_0x9e4d7f(0x92)]();}}_0x53e75f[_0x33a569(0x8c)](m);class C extends _0x179f5f{get[_0x33a569(0xa7)](){return _0x1a7214;}}_0x179f5f[_0x33a569(0x8c)](C);
1
+ const _0x3637f1=_0x3425;function _0x224d(){const _0x1a1551=['getLiveShareCoordinatorSync','extend','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','5970780bHuMme','startFollowing','PRESENTING','_initialize','LiveShareStatusEnum','236107XgLBto','stopFollowing','syncExecuteCommand','startRow','getRenderById','getId','1127700NzDaXJ','getActiveWorkbook','_injector','startColumn','executeCommand','getStatus','202728TiXtgw','133Tcohco','6905556MGYgVy','12rOrFch','9777310MLplDt','3qoEcFX','stopPresenting','getSheetId','tryStartPresenting','_commandService','915895mmSAwq','startPresenting'];_0x224d=function(){return _0x1a1551;};return _0x224d();}(function(_0xa8924a,_0x81f160){const _0x43098a=_0x3425,_0x59c2e8=_0xa8924a();while(!![]){try{const _0x457646=-parseInt(_0x43098a(0x79))/0x1+-parseInt(_0x43098a(0x7f))/0x2*(-parseInt(_0x43098a(0x8a))/0x3)+parseInt(_0x43098a(0x96))/0x4+-parseInt(_0x43098a(0x8f))/0x5*(parseInt(_0x43098a(0x88))/0x6)+-parseInt(_0x43098a(0x86))/0x7*(parseInt(_0x43098a(0x85))/0x8)+parseInt(_0x43098a(0x87))/0x9+-parseInt(_0x43098a(0x89))/0xa;if(_0x457646===_0x81f160)break;else _0x59c2e8['push'](_0x59c2e8['shift']());}catch(_0x5d96ea){_0x59c2e8['push'](_0x59c2e8['shift']());}}}(_0x224d,0xba12a));import{LiveShareController as _0x1b3727,LiveShareStatus as _0x3afea4}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x59a1ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3a421f}from'@univerjs/sheets';import{SetScrollOperation as _0x2056e6}from'@univerjs/sheets-ui';import{FRange as _0x34d0a3}from'@univerjs/sheets/facade';function _0x3425(_0x191339,_0x439652){const _0x224d60=_0x224d();return _0x3425=function(_0x34259c,_0x3767da){_0x34259c=_0x34259c-0x78;let _0x24e4ed=_0x224d60[_0x34259c];return _0x24e4ed;},_0x3425(_0x191339,_0x439652);}import{FUniver as _0x1d9bf4,FEnum as _0x68a9b1}from'@univerjs/core/facade';class I extends _0x34d0a3{[_0x3637f1(0x99)](_0xe9cb53,_0x2c29fc,_0xc3f494,_0x339af5,_0x186be8){const _0x54c550=_0x3637f1,_0x362296=_0xe9cb53[_0x54c550(0x93)](_0x1b3727),_0x33aece=_0xe9cb53[_0x54c550(0x93)](_0x59a1ce),_0x1fa403=_0x2c29fc['getUnitId'](),_0xb8f9ac=_0x2c29fc['getActiveSheet'](),_0x2af5ed=_0x362296['getLiveShareCoordinatorSync'](_0x1fa403);(_0x2af5ed==null?void 0x0:_0x2af5ed[_0x54c550(0x84)]())!==_0x3afea4[_0x54c550(0x98)]||(_0xc3f494['getSheetId']()!==_0xb8f9ac['getSheetId']()&&this[_0x54c550(0x8e)][_0x54c550(0x83)](_0x3a421f['id'],{'unitId':_0x1fa403,'subUnitId':_0xc3f494[_0x54c550(0x8c)]()}),!_0x33aece[_0x54c550(0x7d)](_0x1fa403))||_0x186be8[_0x54c550(0x7b)](_0x2056e6['id'],{'unitId':_0x2c29fc['getUnitId'](),'sheetId':_0xc3f494['getSheetId'](),'sheetViewStartRow':_0x339af5[_0x54c550(0x7c)],'sheetViewStartColumn':_0x339af5[_0x54c550(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34d0a3[_0x3637f1(0x92)](I);class m extends _0x1d9bf4{['getLiveShareStatus'](){const _0x4cbcf7=_0x3637f1;var _0x1bb88b,_0x397fbe;const _0x4a5ada=this['_injector'][_0x4cbcf7(0x93)](_0x1b3727),_0x1ebc42=(_0x1bb88b=this[_0x4cbcf7(0x80)]())==null?void 0x0:_0x1bb88b[_0x4cbcf7(0x7e)]();if(!_0x1ebc42)throw new Error('No\x20active\x20workbook\x20found.');const _0x44853b=_0x4a5ada[_0x4cbcf7(0x91)](_0x1ebc42);return(_0x397fbe=_0x44853b==null?void 0x0:_0x44853b[_0x4cbcf7(0x84)]())!=null?_0x397fbe:_0x3afea4['IDLE'];}['startFollowing'](){const _0x7968d8=_0x3637f1;var _0x12cc60;const _0x491a2b=this[_0x7968d8(0x81)][_0x7968d8(0x93)](_0x1b3727),_0x4102f2=(_0x12cc60=this[_0x7968d8(0x80)]())==null?void 0x0:_0x12cc60['getId']();if(!_0x4102f2)throw new Error(_0x7968d8(0x95));const _0x434ccb=_0x491a2b[_0x7968d8(0x91)](_0x4102f2);if(!_0x434ccb)throw new Error(_0x7968d8(0x94));_0x434ccb[_0x7968d8(0x97)]();}[_0x3637f1(0x7a)](){const _0x31565b=_0x3637f1;var _0x4795fa;const _0x9c94c1=this[_0x31565b(0x81)][_0x31565b(0x93)](_0x1b3727),_0x5ec956=(_0x4795fa=this[_0x31565b(0x80)]())==null?void 0x0:_0x4795fa[_0x31565b(0x7e)]();if(!_0x5ec956)throw new Error('No\x20active\x20workbook\x20found.');const _0x43c705=_0x9c94c1[_0x31565b(0x91)](_0x5ec956);if(!_0x43c705)throw new Error(_0x31565b(0x94));_0x43c705[_0x31565b(0x7a)]();}[_0x3637f1(0x90)](){const _0x496a9f=_0x3637f1;var _0x3db092;const _0xd103cd=this[_0x496a9f(0x81)]['get'](_0x1b3727),_0x5c0da7=(_0x3db092=this[_0x496a9f(0x80)]())==null?void 0x0:_0x3db092[_0x496a9f(0x7e)]();if(!_0x5c0da7)throw new Error('No\x20active\x20workbook\x20found.');const _0x5d440d=_0xd103cd[_0x496a9f(0x91)](_0x5c0da7);if(!_0x5d440d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d440d[_0x496a9f(0x8d)]();}[_0x3637f1(0x8b)](){const _0x20f286=_0x3637f1;var _0x12dee2;const _0x51b129=this[_0x20f286(0x81)][_0x20f286(0x93)](_0x1b3727),_0x12b024=(_0x12dee2=this[_0x20f286(0x80)]())==null?void 0x0:_0x12dee2[_0x20f286(0x7e)]();if(!_0x12b024)throw new Error(_0x20f286(0x95));const _0x2a25f1=_0x51b129[_0x20f286(0x91)](_0x12b024);if(!_0x2a25f1)throw new Error(_0x20f286(0x94));_0x2a25f1[_0x20f286(0x8b)]();}}_0x1d9bf4[_0x3637f1(0x92)](m);class C extends _0x68a9b1{get[_0x3637f1(0x78)](){return _0x3afea4;}}_0x68a9b1[_0x3637f1(0x92)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1d8f(_0xb058dc,_0x3c0d8f){const _0x17fa9f=_0x17fa();return _0x1d8f=function(_0x1d8f29,_0x46e013){_0x1d8f29=_0x1d8f29-0x1bd;let _0x238f7b=_0x17fa9f[_0x1d8f29];return _0x238f7b;},_0x1d8f(_0xb058dc,_0x3c0d8f);}const _0xa0c0b6=_0x1d8f;(function(_0x291d23,_0x35c7f2){const _0x268d65=_0x1d8f,_0x52691d=_0x291d23();while(!![]){try{const _0x5b3fad=parseInt(_0x268d65(0x1f1))/0x1+parseInt(_0x268d65(0x1e6))/0x2*(parseInt(_0x268d65(0x1e9))/0x3)+parseInt(_0x268d65(0x1fe))/0x4*(parseInt(_0x268d65(0x1f2))/0x5)+-parseInt(_0x268d65(0x210))/0x6+-parseInt(_0x268d65(0x20c))/0x7+-parseInt(_0x268d65(0x20d))/0x8+-parseInt(_0x268d65(0x220))/0x9*(-parseInt(_0x268d65(0x226))/0xa);if(_0x5b3fad===_0x35c7f2)break;else _0x52691d['push'](_0x52691d['shift']());}catch(_0x3044ea){_0x52691d['push'](_0x52691d['shift']());}}}(_0x17fa,0xb5bdb));var J=Object[_0xa0c0b6(0x1bf)],K=(_0x417551,_0x1d7ab3,_0x28b094)=>_0x1d7ab3 in _0x417551?J(_0x417551,_0x1d7ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28b094}):_0x417551[_0x1d7ab3]=_0x28b094,u=(_0x2fdc4d,_0x4dfcad,_0x4fef98)=>K(_0x2fdc4d,typeof _0x4dfcad!=_0xa0c0b6(0x243)?_0x4dfcad+'':_0x4dfcad,_0x4fef98);import{Disposable as _0x47be1,toDisposable as _0x59aa4e,IUniverInstanceService as _0x50bef0,Inject as _0x46e58e,Injector as _0x34570d,IConfigService as _0x51d074,ICommandService as _0x2d4b2a,RxDisposable as _0x5b9ba2,UniverInstanceType as _0x1c5b82,DisposableCollection as _0x574b38,CommandType as _0x24cbe9,DependentOn as _0x3e663a,Plugin as _0x405a79,merge as _0x3b3b27,registerDependencies as _0x233739,mergeOverrideWithDependencies as _0x3f2ca7,touchDependencies as _0x65f852}from'@univerjs/core';import{useDependency as _0x3020fd,useObservable as _0x5a31ad,IUIPartsService as _0x1089dc,BuiltInUIPart as _0x3ee1f5,connectInjector as _0x376659}from'@univerjs/ui';import{jsx as _0x4b183d,jsxs as _0x3f8de9,Fragment as _0x39f39b}from'react/jsx-runtime';import{Dropdown as _0x209b75,clsx as _0x59ff9b,Button as _0x89b657}from'@univerjs/design';import{useRef as _0x470aac,createElement as _0x4e23df,forwardRef as _0x2895d2,useState as _0x458258,useEffect as _0x4df20f}from'react';function _0x17fa(){const _0x17f208=['params','onStarting','_reporters','_unitID','_sharedOperations','clear','forEach','tag','Start\x20following','getOwnPropertyDescriptor','_init','type','registerComponent','IDLE','getStatus','path','dispose$','_stopFollowing','parse','shouldShareOperation','registerSharedOperation','NEW_CHANGESETS','LiveShareIcon','substring','PRESENTING','_beIdle','children','LIVESHARE_OPERATION','complete','presenter','mask','includes','162910LiRmoY','executeCommand','Present\x20this\x20document','3NVCpAw','SAME_OPERATION_SHARE_INTERVAL','override','_handleOperation','then','getValue','evenodd','_status$','1360520oVwqWP','19115tUEyHn','_injector','getLiveShareCoordinator','_startLiveShareCoordinator','_commandDisposable','getMemberID','status$','colorChannel1','_liveShareService','startFollowing','replace','data','516FqOXsG','event$','string','defIds','url(#$1','presenting','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','getLiveShareCoordinatorSync','ONLINE','getUnitId','_startFollowing','HEADER_MENU','displayName','div','8715105TnapPe','9902136sPNQGp','FOLLOWING','delete','3046074ZbSNLL','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_commandService','_presenter','onRendered','tryStartPresenting','sessionStatus$','You\x27are\x20offline.','_handleOffline','getCurrentTypeOfUnit$','OPERATION','init','not-following','stopFollowing','from','81cEkYSP','default','Start','idle','following','add','1999700XmVGvv','_uiPartsService','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','toString','pipe','xlink:href','live-share-icon','_status','has','find','_collabSessionService','LIVESHARE_TERMINATE','entries','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','offline','fill','Stop\x20following','dispose','button','getInitialStates','_handleTerminate','_configService','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','send','subscribe','_config','http://www.w3.org/2000/svg','symbol','createInstance','random','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','unitId','_entities','stringify','0\x200\x2017\x2017','1em','_handleNewHost','Stop\x20presenting','get','mutations','NOT_FOLLOWING','_collabSession','map','onCommandExecuted','_fetchOperations','idSuffix','stopPresenting','next','assign','UNIVER_SHEET','asObservable','sheet','current','OFFLINE','registerInitialStateReporter','currentColor','LIVESHARE_REQUEST_HOST','_startPresenting','defineProperty','trim','live-share.config','getTypeOfUnitDisposed$','attrs','length','_mountLiveShare'];_0x17fa=function(){return _0x17f208;};return _0x17fa();}import{CollaborationEvent as _0xf330b6,parseProtocolChangeset as _0x282616}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x548dab,SessionStatus as _0x3972e8,UniverCollaborationClientPlugin as _0x176434}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x97a76,SetWorksheetActiveOperation as _0x15573d}from'@univerjs/sheets';import{BehaviorSubject as _0x52f53b,Subject as _0x272542}from'rxjs';import{takeUntil as _0x290aa2,throttleTime as _0x374a3c}from'rxjs/operators';import{SetZoomRatioOperation as _0x240ca6,SetScrollOperation as _0x35c30a}from'@univerjs/sheets-ui';function k({ref:_0x1f28ce,..._0x311b60}){const _0x46e321=_0xa0c0b6,{icon:_0x44c4c4,id:_0x51d30c,className:_0x3591d5,extend:_0x543391,..._0x5d680f}=_0x311b60,_0x30534b=(_0x46e321(0x24b)+_0x51d30c+'\x20'+(_0x3591d5||''))[_0x46e321(0x1c0)](),_0x1773cd=_0x470aac('_'+Oe());return G(_0x44c4c4,''+_0x51d30c,{'defIds':_0x44c4c4[_0x46e321(0x201)],'idSuffix':_0x1773cd[_0x46e321(0x261)]},{'ref':_0x1f28ce,'className':_0x30534b,..._0x5d680f},_0x543391);}function G(_0x333660,_0x3bdd40,_0x12577b,_0x44ddb1,_0x4e6e63){const _0x2e8a26=_0xa0c0b6;return _0x4e23df(_0x333660[_0x2e8a26(0x1cd)],{'key':_0x3bdd40,...be(_0x333660,_0x12577b,_0x4e6e63),..._0x44ddb1},(Ee(_0x333660,_0x12577b)[_0x2e8a26(0x1e0)]||[])['map']((_0x45a197,_0x1e9d91)=>G(_0x45a197,_0x3bdd40+'-'+_0x333660[_0x2e8a26(0x1cd)]+'-'+_0x1e9d91,_0x12577b,void 0x0,_0x4e6e63)));}function be(_0x465700,_0x268d9d,_0xdcc508){const _0x45ae33=_0xa0c0b6,_0x21aeb9={..._0x465700[_0x45ae33(0x1c3)]};_0xdcc508!=null&&_0xdcc508['colorChannel1']&&_0x21aeb9[_0x45ae33(0x236)]===_0x45ae33(0x1f9)&&(_0x21aeb9[_0x45ae33(0x236)]=_0xdcc508[_0x45ae33(0x1f9)]),_0x465700[_0x45ae33(0x1cd)]===_0x45ae33(0x1e4)&&_0x21aeb9['id']&&(_0x21aeb9['id']=_0x21aeb9['id']+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x305482,_0x274c4e])=>{const _0x533105=_0x45ae33;_0x305482==='mask'&&typeof _0x274c4e=='string'&&(_0x21aeb9[_0x305482]=_0x274c4e[_0x533105(0x1fc)](/url\(#(.*)\)/,_0x533105(0x202)+_0x268d9d[_0x533105(0x25a)]+')'));});const {defIds:_0x43c5c}=_0x268d9d;return!_0x43c5c||_0x43c5c['length']===0x0||(_0x465700['tag']==='use'&&_0x21aeb9['xlink:href']&&(_0x21aeb9['xlink:href']=_0x21aeb9[_0x45ae33(0x22c)]+_0x268d9d[_0x45ae33(0x25a)]),Object[_0x45ae33(0x233)](_0x21aeb9)[_0x45ae33(0x1cc)](([_0x18993f,_0x4af33d])=>{const _0xbd2c6=_0x45ae33;typeof _0x4af33d=='string'&&(_0x21aeb9[_0x18993f]=_0x4af33d[_0xbd2c6(0x1fc)](/url\(#(.*)\)/,_0xbd2c6(0x202)+_0x268d9d[_0xbd2c6(0x25a)]+')'));})),_0x21aeb9;}function Ee(_0x3cdbb2,_0x55fbb5){const _0x36fdd6=_0xa0c0b6;var _0x1f4304;const {defIds:_0x43d229}=_0x55fbb5;return!_0x43d229||_0x43d229[_0x36fdd6(0x1c4)]===0x0?_0x3cdbb2:_0x3cdbb2[_0x36fdd6(0x1cd)]==='defs'&&((_0x1f4304=_0x3cdbb2[_0x36fdd6(0x1e0)])!=null&&_0x1f4304[_0x36fdd6(0x1c4)])?{..._0x3cdbb2,'children':_0x3cdbb2[_0x36fdd6(0x1e0)][_0x36fdd6(0x257)](_0x3b6b59=>typeof _0x3b6b59['attrs']['id']==_0x36fdd6(0x200)&&_0x43d229&&_0x43d229[_0x36fdd6(0x1e5)](_0x3b6b59[_0x36fdd6(0x1c3)]['id'])?{..._0x3b6b59,'attrs':{..._0x3b6b59[_0x36fdd6(0x1c3)],'id':_0x3b6b59[_0x36fdd6(0x1c3)]['id']+_0x55fbb5[_0x36fdd6(0x25a)]}}:_0x3b6b59)}:_0x3cdbb2;}function Oe(){const _0x47f5e4=_0xa0c0b6;return Math[_0x47f5e4(0x245)]()[_0x47f5e4(0x22a)](0x24)[_0x47f5e4(0x1dd)](0x2,0x8);}k[_0xa0c0b6(0x20a)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0xa0c0b6(0x242),'fill':'none','viewBox':_0xa0c0b6(0x24f),'width':'1em','height':_0xa0c0b6(0x250)},'children':[{'tag':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'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':_0xa0c0b6(0x1d5),'attrs':{'fill':_0xa0c0b6(0x264),'d':_0xa0c0b6(0x234),'fillRule':'evenodd','clipRule':_0xa0c0b6(0x1ef)}}]},W=_0x2895d2(function(_0xb7f402,_0x51456f){const _0x22b72a=_0xa0c0b6;return _0x4e23df(k,Object[_0x22b72a(0x25d)]({},_0xb7f402,{'id':_0x22b72a(0x22d),'ref':_0x51456f,'icon':we}));});W[_0xa0c0b6(0x20a)]=_0xa0c0b6(0x1dc);class L extends _0x47be1{constructor(){const _0x1d8f56=_0xa0c0b6;super(...arguments),u(this,_0x1d8f56(0x1ca),new Set()),u(this,'_reporters',new Set());}[_0xa0c0b6(0x1da)](_0x9b44d7){const _0x278d24=_0xa0c0b6;return this[_0x278d24(0x1ca)][_0x278d24(0x225)](_0x9b44d7),_0x59aa4e(()=>this[_0x278d24(0x1ca)][_0x278d24(0x20f)](_0x9b44d7));}[_0xa0c0b6(0x263)](_0x1634f3){const _0x1dc117=_0xa0c0b6;return this[_0x1dc117(0x1c8)][_0x1dc117(0x225)](_0x1634f3),_0x59aa4e(()=>this['_reporters'][_0x1dc117(0x20f)](_0x1634f3));}[_0xa0c0b6(0x1d9)](_0x556e29){return this['_sharedOperations']['has'](_0x556e29);}[_0xa0c0b6(0x23a)](_0x4f025e){const _0x47e4f8=_0xa0c0b6;return Array[_0x47e4f8(0x21f)](this[_0x47e4f8(0x1c8)])[_0x47e4f8(0x257)](_0x481bd8=>_0x481bd8(_0x4f025e));}}var Ne=Object[_0xa0c0b6(0x1cf)],Y=(_0xaff5d5,_0x33db42,_0x309d60,_0x22133c)=>{const _0x52dc27=_0xa0c0b6;for(var _0x335f17=_0x22133c>0x1?void 0x0:_0x22133c?Ne(_0x33db42,_0x309d60):_0x33db42,_0x5d9a08=_0xaff5d5[_0x52dc27(0x1c4)]-0x1,_0x1c255b;_0x5d9a08>=0x0;_0x5d9a08--)(_0x1c255b=_0xaff5d5[_0x5d9a08])&&(_0x335f17=_0x1c255b(_0x335f17)||_0x335f17);return _0x335f17;},_=(_0x477077,_0x5dd4d9)=>(_0x2a79e7,_0x29a138)=>_0x5dd4d9(_0x2a79e7,_0x29a138,_0x477077);let S=class extends _0x5b9ba2{constructor(_0x5c50ac,_0x2b94cf,_0x3c3ad8){const _0x856814=_0xa0c0b6;super(),u(this,_0x856814(0x24d),new Map()),(this['_univerInstanceService']=_0x5c50ac,this[_0x856814(0x1f3)]=_0x2b94cf,this[_0x856814(0x231)]=_0x3c3ad8,this[_0x856814(0x1d0)]());}async[_0xa0c0b6(0x1f4)](_0x38d03d){const _0x429233=_0xa0c0b6;return this[_0x429233(0x24d)][_0x429233(0x22f)](_0x38d03d)||await this[_0x429233(0x1f5)](_0x38d03d),this[_0x429233(0x24d)][_0x429233(0x253)](_0x38d03d);}[_0xa0c0b6(0x205)](_0x56d221){const _0x16f85c=_0xa0c0b6;var _0x1d254f;return(_0x1d254f=this['_entities'][_0x16f85c(0x253)](_0x56d221))!=null?_0x1d254f:null;}[_0xa0c0b6(0x1d0)](){const _0x3bf8a8=_0xa0c0b6;this[_0x3bf8a8(0x211)]['getTypeOfUnitAdded$'](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](async _0x263afd=>{const _0x49a577=_0x3bf8a8,_0x5035e8=_0x263afd['getUnitId']();this[_0x49a577(0x24d)]['has'](_0x5035e8)||this[_0x49a577(0x1f5)](_0x5035e8);}),this[_0x3bf8a8(0x211)][_0x3bf8a8(0x1c2)](_0x1c5b82[_0x3bf8a8(0x25e)])[_0x3bf8a8(0x22b)](_0x290aa2(this[_0x3bf8a8(0x1d6)]))[_0x3bf8a8(0x240)](_0x5d8bc1=>{const _0x46367a=_0x3bf8a8,_0x3131bc=_0x5d8bc1['getUnitId'](),_0x2df236=this[_0x46367a(0x24d)][_0x46367a(0x253)](_0x3131bc);_0x2df236==null||_0x2df236['dispose']();});}async[_0xa0c0b6(0x1f5)](_0x343e91){const _0x4b6e6e=_0xa0c0b6,_0x5f5549=await this[_0x4b6e6e(0x231)]['requireSession'](_0x343e91),_0x2f4062=this['_injector'][_0x4b6e6e(0x244)](N,_0x343e91,_0x5f5549);return _0x2f4062[_0x4b6e6e(0x21c)](),this[_0x4b6e6e(0x24d)]['set'](_0x343e91,_0x2f4062),_0x2f4062;}};S=Y([_(0x0,_0x50bef0),_(0x1,_0x46e58e(_0x34570d)),_(0x2,_0x46e58e(_0x548dab))],S);var c=(_0x1f0707=>(_0x1f0707[_0xa0c0b6(0x262)]='offline',_0x1f0707[_0xa0c0b6(0x1d3)]=_0xa0c0b6(0x223),_0x1f0707['FOLLOWING']=_0xa0c0b6(0x224),_0x1f0707[_0xa0c0b6(0x255)]=_0xa0c0b6(0x21d),_0x1f0707['PRESENTING']=_0xa0c0b6(0x203),_0x1f0707))(c||{});const Ce=_0xa0c0b6(0x1ea),De=0xc8;let N=class extends _0x5b9ba2{constructor(_0x315fe2,_0x44b645,_0x1bb5f0,_0x46fbe8,_0x22027c){const _0x2180a4=_0xa0c0b6;super(),u(this,_0x2180a4(0x1f0),new _0x52f53b(_0x2180a4(0x223))),u(this,_0x2180a4(0x1f8),this[_0x2180a4(0x1f0)][_0x2180a4(0x25f)]()),u(this,'_init',!0x1),u(this,_0x2180a4(0x1f6),null),u(this,'_presenter',null),(this[_0x2180a4(0x1c9)]=_0x315fe2,this[_0x2180a4(0x256)]=_0x44b645,this[_0x2180a4(0x23c)]=_0x1bb5f0,this[_0x2180a4(0x1fa)]=_0x46fbe8,this[_0x2180a4(0x213)]=_0x22027c);}get[_0xa0c0b6(0x22e)](){const _0x33a331=_0xa0c0b6;return this['_status$'][_0x33a331(0x1ee)]();}['dispose'](){const _0x47b04c=_0xa0c0b6;var _0x57dccb;(_0x57dccb=this['_commandDisposable'])==null||_0x57dccb[_0x47b04c(0x238)](),this[_0x47b04c(0x1f0)][_0x47b04c(0x25c)]('idle'),this[_0x47b04c(0x1f0)][_0x47b04c(0x1e2)]();}[_0xa0c0b6(0x1d4)](){const _0x16245b=_0xa0c0b6;return this[_0x16245b(0x22e)];}[_0xa0c0b6(0x21c)](){const _0x106ff5=_0xa0c0b6;this['_init']||(this[_0x106ff5(0x1d0)]=!0x0,this[_0x106ff5(0x256)][_0x106ff5(0x217)]['pipe'](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0xc6aa38=>{const _0xe31007=_0x106ff5;switch(_0xc6aa38){case _0x3972e8[_0xe31007(0x262)]:this['_handleOffline']();break;case _0x3972e8[_0xe31007(0x206)]:this[_0xe31007(0x249)]();break;}}),this[_0x106ff5(0x256)][_0x106ff5(0x1ff)][_0x106ff5(0x22b)](_0x290aa2(this[_0x106ff5(0x1d6)]))['subscribe'](_0x21459f=>{const _0x5c7125=_0x106ff5,{eventID:_0x26bb47}=_0x21459f;switch(_0x26bb47){case _0xf330b6[_0x5c7125(0x246)]:this['_handleNewHost'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x1e1)]:this['_handleOperation'](_0x21459f);break;case _0xf330b6[_0x5c7125(0x232)]:this[_0x5c7125(0x23b)]();break;case _0xf330b6[_0x5c7125(0x1db)]:this['_handleNewChangeSets'](_0x21459f);break;}}));}[_0xa0c0b6(0x216)](){const _0xa24803=_0xa0c0b6;this[_0xa24803(0x256)]['send']({'eventID':_0xf330b6[_0xa24803(0x1bd)],'data':{'unitID':this['_unitID'],'userID':this[_0xa24803(0x256)][_0xa24803(0x1f7)]()}},this[_0xa24803(0x1c9)]);}[_0xa0c0b6(0x25b)](){const _0xc85687=_0xa0c0b6;this[_0xc85687(0x22e)]===_0xc85687(0x203)&&(this[_0xc85687(0x1f0)][_0xc85687(0x25c)](_0xc85687(0x223)),this[_0xc85687(0x256)]['send']({'eventID':_0xf330b6[_0xc85687(0x232)],'data':{'unitID':this[_0xc85687(0x1c9)]}},this[_0xc85687(0x1c9)]));}[_0xa0c0b6(0x1fb)](){const _0x399c12=_0xa0c0b6;this[_0x399c12(0x22e)]===_0x399c12(0x21d)&&(this['_status$'][_0x399c12(0x25c)](_0x399c12(0x224)),this[_0x399c12(0x208)]());}[_0xa0c0b6(0x21e)](){const _0xf1d7cd=_0xa0c0b6;this[_0xf1d7cd(0x22e)]===_0xf1d7cd(0x224)&&this[_0xf1d7cd(0x1d7)]();}[_0xa0c0b6(0x251)](_0x4e2031){const _0x59e27c=_0xa0c0b6,{presenter:_0x3da6a9}=_0x4e2031[_0x59e27c(0x1fd)],_0x225acb=this[_0x59e27c(0x256)]['getMemberID']();this[_0x59e27c(0x214)]=_0x3da6a9,_0x3da6a9===_0x225acb?(this[_0x59e27c(0x1d7)](),this[_0x59e27c(0x1be)]()):this[_0x59e27c(0x22e)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa0c0b6(0x259)](){const _0x5974ff=_0xa0c0b6,_0x5b38c4={'eventID':_0xf330b6[_0x5974ff(0x229)]};this[_0x5974ff(0x256)][_0x5974ff(0x23f)](_0x5b38c4,this[_0x5974ff(0x1c9)]);}[_0xa0c0b6(0x23b)](){const _0x59a53e=_0xa0c0b6;this[_0x59a53e(0x214)]=null,this[_0x59a53e(0x22e)]!==_0x59a53e(0x203)&&this[_0x59a53e(0x1df)]();}['_handleNewChangeSets'](_0x558607){const _0x14f936=_0xa0c0b6;if(this['_status']===_0x14f936(0x224)&&this[_0x14f936(0x214)]===_0x558607[_0x14f936(0x1fd)]['memberID']){const _0x399e05=_0x282616(_0x558607[_0x14f936(0x1fd)])[_0x14f936(0x254)]['reverse']()[_0x14f936(0x230)](_0x15ec3f=>_0x15ec3f['id']===_0x97a76['id']);if(_0x399e05){const _0xa6d10b=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x24c)],_0x22da9d=_0x399e05[_0x14f936(0x1c6)][_0x14f936(0x260)]['id'];setTimeout(()=>{const _0x1228d5=_0x14f936;this['_commandService'][_0x1228d5(0x1e7)](_0x15573d['id'],{'unitId':_0xa6d10b,'subUnitId':_0x22da9d},{'fromCollab':!0x0});});}}}[_0xa0c0b6(0x1be)](){const _0x519772=_0xa0c0b6;this[_0x519772(0x1f0)][_0x519772(0x25c)](_0x519772(0x203));const _0x769864=new Map(),_0x26dd89=this[_0x519772(0x1f6)]=new _0x574b38();_0x26dd89['add'](_0x59aa4e(()=>{const _0x15d407=_0x519772;_0x769864[_0x15d407(0x1cc)](_0x1ffe6a=>_0x1ffe6a['complete']()),_0x769864[_0x15d407(0x1cb)]();})),_0x26dd89[_0x519772(0x225)](this[_0x519772(0x213)][_0x519772(0x258)](_0x4deff7=>{const _0x3e66cb=_0x519772;var _0x96fe22;if(_0x4deff7[_0x3e66cb(0x1d1)]!==_0x24cbe9[_0x3e66cb(0x21b)]||!this[_0x3e66cb(0x1fa)]['shouldShareOperation'](_0x4deff7['id']))return;const {id:_0x40b512}=_0x4deff7;let _0x42dfed;_0x769864[_0x3e66cb(0x22f)](_0x40b512)?_0x42dfed=_0x769864[_0x3e66cb(0x253)](_0x40b512):(_0x42dfed=new _0x272542(),_0x769864['set'](_0x40b512,_0x42dfed),_0x42dfed[_0x3e66cb(0x22b)](_0x374a3c((_0x96fe22=this[_0x3e66cb(0x23c)]['getConfig'](Ce))!=null?_0x96fe22:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3b4dff=>{const _0x4affe8=_0x3e66cb;this[_0x4affe8(0x256)]['send']({'eventID':_0xf330b6[_0x4affe8(0x1e1)],'data':{'unitID':this[_0x4affe8(0x1c9)],'operations':{[_0x3b4dff['id']]:{'id':_0x3b4dff['id'],'params':JSON['stringify'](_0x3b4dff['params'])}}}},this['_unitID']);})),_0x42dfed[_0x3e66cb(0x25c)](_0x4deff7);})),this['_liveShareService']['getInitialStates'](this[_0x519772(0x1c9)])[_0x519772(0x1cc)](_0x4b18f4=>this['_collabSession'][_0x519772(0x23f)]({'eventID':_0xf330b6[_0x519772(0x1e1)],'data':{'unitID':this[_0x519772(0x1c9)],'operations':{[_0x4b18f4['id']]:{'id':_0x4b18f4['id'],'params':JSON[_0x519772(0x24e)](_0x4b18f4[_0x519772(0x1c6)])}}}},this[_0x519772(0x1c9)]));}['_stopPresenting'](){const _0x3437e6=_0xa0c0b6;var _0x3c25a1;this[_0x3437e6(0x1f0)]['next'](_0x3437e6(0x223)),(_0x3c25a1=this['_commandDisposable'])==null||_0x3c25a1[_0x3437e6(0x238)](),this['_commandDisposable']=null;}[_0xa0c0b6(0x208)](){const _0x2d037a=_0xa0c0b6;var _0x3e1246;(_0x3e1246=this[_0x2d037a(0x1f6)])==null||_0x3e1246['dispose'](),this['_status$'][_0x2d037a(0x25c)]('following');}[_0xa0c0b6(0x1df)](){const _0x2611bd=_0xa0c0b6;var _0x24b7e8;this[_0x2611bd(0x1f0)][_0x2611bd(0x25c)](_0x2611bd(0x223)),(_0x24b7e8=this['_commandDisposable'])==null||_0x24b7e8[_0x2611bd(0x238)](),this[_0x2611bd(0x1f6)]=null;}[_0xa0c0b6(0x1d7)](){const _0x406226=_0xa0c0b6;var _0x4fee8c;this[_0x406226(0x1f0)][_0x406226(0x25c)](_0x406226(0x21d)),(_0x4fee8c=this[_0x406226(0x1f6)])==null||_0x4fee8c[_0x406226(0x238)]();}[_0xa0c0b6(0x1ec)](_0x366569){const _0x5dd1a5=_0xa0c0b6;if([_0x5dd1a5(0x203),_0x5dd1a5(0x21d),_0x5dd1a5(0x235)]['includes'](this['_status'])||!_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]||_0x366569[_0x5dd1a5(0x1fd)][_0x5dd1a5(0x1e3)]===this[_0x5dd1a5(0x256)][_0x5dd1a5(0x1f7)]())return;this[_0x5dd1a5(0x22e)]==='idle'&&this[_0x5dd1a5(0x208)]();const _0x48cc91=_0x366569[_0x5dd1a5(0x1fd)]['operations'];Object['values'](_0x48cc91)[_0x5dd1a5(0x1cc)](_0x33a239=>{const _0x4b4bce=_0x5dd1a5;this[_0x4b4bce(0x213)][_0x4b4bce(0x1e7)](_0x33a239['id'],_0x33a239['params']?JSON[_0x4b4bce(0x1d8)](_0x33a239['params']):null,{'fromCollab':!0x0});});}[_0xa0c0b6(0x219)](){const _0x1a1073=_0xa0c0b6;var _0x10bd21;this[_0x1a1073(0x1f0)]['next'](_0x1a1073(0x235)),(_0x10bd21=this['_commandDisposable'])==null||_0x10bd21[_0x1a1073(0x238)]();}[_0xa0c0b6(0x249)](){const _0x545106=_0xa0c0b6;this[_0x545106(0x1f0)]['next']('idle'),this[_0x545106(0x259)]();}};N=Y([_(0x2,_0x51d074),_(0x3,_0x46e58e(L)),_(0x4,_0x2d4b2a)],N);function Le(){const _0x1de32d=_0xa0c0b6,_0xc102b1=_0x3020fd(S),_0x5e4b35=_0x3020fd(_0x50bef0),_0x13977e=_0x5a31ad(()=>_0x5e4b35[_0x1de32d(0x21a)](_0x1c5b82[_0x1de32d(0x25e)]),void 0x0,!0x1,[]),[_0x246344,_0x2dee7c]=_0x458258(null),[_0xda82da,_0x47522b]=_0x458258(c[_0x1de32d(0x1d3)]),_0x1703d2=_0x470aac(null);return _0x4df20f(()=>(_0x13977e&&_0xc102b1[_0x1de32d(0x1f4)](_0x13977e[_0x1de32d(0x207)]())[_0x1de32d(0x1ed)](_0xf3bb57=>{const _0x44c4a4=_0x1de32d;_0x2dee7c(_0xf3bb57),_0x1703d2[_0x44c4a4(0x261)]=_0xf3bb57[_0x44c4a4(0x1f8)][_0x44c4a4(0x240)](_0x2f2db7=>{_0x47522b(_0x2f2db7);});}),()=>{const _0x4568d0=_0x1de32d;var _0x54ec1f;(_0x54ec1f=_0x1703d2[_0x4568d0(0x261)])==null||_0x54ec1f[_0x4568d0(0x248)](),_0x1703d2[_0x4568d0(0x261)]=null;}),[_0x13977e,_0xc102b1]),_0x246344?_0x4b183d(_0x209b75,{'align':'end','disabled':_0xda82da===c[_0x1de32d(0x262)],'className':_0x1de32d(0x204),'overlay':_0x4b183d(Re,{'status':_0xda82da,'coordinator':_0x246344}),'children':_0x4b183d(_0x1de32d(0x239),{'className':_0x59ff9b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xda82da===c[_0x1de32d(0x262)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xda82da!==c[_0x1de32d(0x262)]}),'type':_0x1de32d(0x239),'children':_0x4b183d(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2a7faa){const _0x31c817=_0xa0c0b6,{status:_0x35470a,coordinator:_0x4f9d9e}=_0x2a7faa;switch(_0x35470a){case c[_0x31c817(0x1d3)]:return _0x4b183d($e,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x20e)]:return _0x4b183d(xe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x255)]:return _0x4b183d(Pe,{'coordinator':_0x4f9d9e});case c[_0x31c817(0x262)]:return _0x4b183d(Te,{});case c[_0x31c817(0x1de)]:return _0x4b183d(Ae,{'coordinator':_0x4f9d9e});default:return null;}}function $e(_0x31f826){const _0x2328e8=_0xa0c0b6,{coordinator:_0xd12508}=_0x31f826;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2328e8(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2328e8(0x1e8)}),_0x4b183d(_0x89b657,{'onClick':()=>_0xd12508['tryStartPresenting'](),'children':_0x2328e8(0x222)})]});}function xe(_0x319f0b){const _0x41082c=_0xa0c0b6,{coordinator:_0x106875}=_0x319f0b;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d('div',{'className':_0x41082c(0x212),'children':_0x41082c(0x228)}),_0x4b183d(_0x89b657,{'onClick':()=>_0x106875[_0x41082c(0x21e)](),'children':_0x41082c(0x237)})]});}function Pe(_0x8e6b43){const _0xbcb14e=_0xa0c0b6,{coordinator:_0x5a2ee7}=_0x8e6b43;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0xbcb14e(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbcb14e(0x23d)}),_0x4b183d(_0x89b657,{'variant':'text','onClick':()=>_0x5a2ee7[_0xbcb14e(0x1fb)](),'children':_0xbcb14e(0x1ce)})]});}function Ae(_0x5e90c2){const _0x2b07f0=_0xa0c0b6,{coordinator:_0x35c664}=_0x5e90c2;return _0x3f8de9(_0x39f39b,{'children':[_0x4b183d(_0x2b07f0(0x20b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2b07f0(0x24a)}),_0x4b183d(_0x89b657,{'variant':_0x2b07f0(0x221),'onClick':()=>_0x35c664['stopPresenting'](),'children':_0x2b07f0(0x252)})]});}function Te(){const _0x5330a3=_0xa0c0b6;return _0x4b183d(_0x39f39b,{'children':_0x5330a3(0x218)});}var Fe=Object[_0xa0c0b6(0x1cf)],He=(_0x2cfb82,_0x2ef574,_0x51ecfa,_0x26e78b)=>{for(var _0x3463e1=_0x26e78b>0x1?void 0x0:_0x26e78b?Fe(_0x2ef574,_0x51ecfa):_0x2ef574,_0x4eb2eb=_0x2cfb82['length']-0x1,_0x2c3652;_0x4eb2eb>=0x0;_0x4eb2eb--)(_0x2c3652=_0x2cfb82[_0x4eb2eb])&&(_0x3463e1=_0x2c3652(_0x3463e1)||_0x3463e1);return _0x3463e1;},A=(_0x1a9823,_0x47d7d5)=>(_0x31539e,_0x58aea0)=>_0x47d7d5(_0x31539e,_0x58aea0,_0x1a9823);let m=class extends _0x47be1{constructor(_0x401f41,_0x459896){const _0x58371a=_0xa0c0b6;super(),this['_injector']=_0x401f41,this[_0x58371a(0x227)]=_0x459896,this[_0x58371a(0x1c5)]();}[_0xa0c0b6(0x1c5)](){const _0x56c65c=_0xa0c0b6;this['disposeWithMe'](this[_0x56c65c(0x227)][_0x56c65c(0x1d2)](_0x3ee1f5[_0x56c65c(0x209)],()=>_0x376659(Le,this[_0x56c65c(0x1f3)])));}};m=He([A(0x0,_0x46e58e(_0x34570d)),A(0x1,_0x1089dc)],m);const ye=_0xa0c0b6(0x1c1),T={};var Ue=Object[_0xa0c0b6(0x1cf)],Ve=(_0x584ff5,_0x49514c,_0x386ddd,_0x2bd633)=>{const _0xd91ca2=_0xa0c0b6;for(var _0x1309c4=_0x2bd633>0x1?void 0x0:_0x2bd633?Ue(_0x49514c,_0x386ddd):_0x49514c,_0x55efbb=_0x584ff5[_0xd91ca2(0x1c4)]-0x1,_0x378b46;_0x55efbb>=0x0;_0x55efbb--)(_0x378b46=_0x584ff5[_0x55efbb])&&(_0x1309c4=_0x378b46(_0x1309c4)||_0x1309c4);return _0x1309c4;},je=(_0x248691,_0x375808)=>(_0x1a8ed6,_0x1d5038)=>_0x375808(_0x1a8ed6,_0x1d5038,_0x248691);let I=class extends _0x47be1{constructor(_0x4ca817){const _0x9f996=_0xa0c0b6;super(),this[_0x9f996(0x1fa)]=_0x4ca817,this[_0x9f996(0x1d0)]();}[_0xa0c0b6(0x1d0)](){const _0x44a536=_0xa0c0b6;[_0x240ca6['id'],_0x35c30a['id'],_0x15573d['id']][_0x44a536(0x1cc)](_0x49e56d=>{const _0x55d7a5=_0x44a536;this['disposeWithMe'](this[_0x55d7a5(0x1fa)][_0x55d7a5(0x1da)](_0x49e56d));});}};I=Ve([je(0x0,_0x46e58e(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x85523a,_0x34dc93,_0x435a77)=>_0x34dc93 in _0x85523a?Me(_0x85523a,_0x34dc93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435a77}):_0x85523a[_0x34dc93]=_0x435a77,We=(_0x2d5a03,_0x51b7a8,_0x2e6e94,_0x1c79f7)=>{for(var _0x2b1b7f=_0x1c79f7>0x1?void 0x0:_0x1c79f7?ke(_0x51b7a8,_0x2e6e94):_0x51b7a8,_0x2603ba=_0x2d5a03['length']-0x1,_0x30da1d;_0x2603ba>=0x0;_0x2603ba--)(_0x30da1d=_0x2d5a03[_0x2603ba])&&(_0x2b1b7f=_0x30da1d(_0x2b1b7f)||_0x2b1b7f);return _0x2b1b7f;},F=(_0x354821,_0x39c35f)=>(_0x13acfc,_0x51d30e)=>_0x39c35f(_0x13acfc,_0x51d30e,_0x354821),B=(_0x5d3577,_0x624882,_0xcc4901)=>Ge(_0x5d3577,typeof _0x624882!=_0xa0c0b6(0x243)?_0x624882+'':_0x624882,_0xcc4901);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x405a79{constructor(_0x531770=T,_0xa1d0ae,_0x23463e){const _0x3474c4=_0xa0c0b6;super(),this[_0x3474c4(0x241)]=_0x531770,this[_0x3474c4(0x1f3)]=_0xa1d0ae,this['_configService']=_0x23463e;const {..._0x5e9ccf}=_0x3b3b27({},T,this[_0x3474c4(0x241)]);this[_0x3474c4(0x23c)]['setConfig'](ye,_0x5e9ccf);}[_0xa0c0b6(0x1c7)](){const _0x2cbc2e=_0xa0c0b6;_0x233739(this['_injector'],_0x3f2ca7([[L],[S],[I],[m]],this[_0x2cbc2e(0x241)][_0x2cbc2e(0x1eb)])),_0x65f852(this[_0x2cbc2e(0x1f3)],[[I]]);}[_0xa0c0b6(0x215)](){const _0x1793e4=_0xa0c0b6;_0x65f852(this[_0x1793e4(0x1f3)],[[m]]);}};B(b,_0xa0c0b6(0x1d1),_0x1c5b82[_0xa0c0b6(0x247)]),B(b,_0xa0c0b6(0x23e),Ye),b=We([_0x3e663a(_0x176434),F(0x1,_0x46e58e(_0x34570d)),F(0x2,_0x51d074)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0x3f8b8a=_0x5e6b;(function(_0x1b2469,_0x5d2d34){const _0x45631d=_0x5e6b,_0x4d58cd=_0x1b2469();while(!![]){try{const _0x15f162=parseInt(_0x45631d(0x139))/0x1+-parseInt(_0x45631d(0x12c))/0x2*(parseInt(_0x45631d(0x1b4))/0x3)+-parseInt(_0x45631d(0x1a3))/0x4+parseInt(_0x45631d(0x18f))/0x5+-parseInt(_0x45631d(0x122))/0x6+-parseInt(_0x45631d(0x1a4))/0x7*(-parseInt(_0x45631d(0x11c))/0x8)+parseInt(_0x45631d(0x191))/0x9*(-parseInt(_0x45631d(0x14f))/0xa);if(_0x15f162===_0x5d2d34)break;else _0x4d58cd['push'](_0x4d58cd['shift']());}catch(_0x570847){_0x4d58cd['push'](_0x4d58cd['shift']());}}}(_0x5073,0xab4ed));function _0x5073(){const _0x79eb11=['stopPresenting','_commandDisposable','getStatus','text','_univerInstanceService','registerInitialStateReporter','div','asObservable','_collabSession','513796BAxTUj','8281679nNlQRM','following','_reporters','reverse','LIVESHARE_REQUEST_HOST','_entities','tryStartPresenting','univer-size-4','add','registerComponent','colorChannel1','shouldShareOperation','LiveShareIcon','OFFLINE','random','has','617649PHsLbu','requireSession','_stopFollowing','setConfig','FOLLOWING','entries','_sharedOperations','LIVESHARE_TERMINATE','override','tag','not-following','status$','_status$','from','live-share-icon','8sAeACW','_presenter','Stop\x20presenting','includes','evenodd','defineProperty','2057844RdYmHJ','_startFollowing','_handleTerminate','UniverIcon','getInitialStates','onCommandExecuted','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','PRESENTING','set','presenter','2kQrUno','svg','IDLE','_config','onRendered','NOT_FOLLOWING','dispose','values','mask','unitId','length','sheet','You\x27re\x20following\x20the\x20presenter','342755jKOFdz','_init','getOwnPropertyDescriptor','idSuffix','LIVESHARE_NEW_HOST','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','_startPresenting','Start\x20following','LIVESHARE_OPERATION','clear','unsubscribe','mutations','data','send','_unitID','toString','init','delete','_handleOnline','children','11265690ygLByx','_handleNewHost','forEach','end','default','SAME_OPERATION_SHARE_INTERVAL','defIds','getLiveShareCoordinator','_configService','_uiPartsService','complete','next','presenting','current','get','NEW_CHANGESETS','xlink:href','then','event$','_handleNewChangeSets','none','string','_stopPresenting','replace','_handleOffline','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','subscribe','stringify','_beIdle','getTypeOfUnitAdded$','_liveShareService','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','_startLiveShareCoordinator','getUnitId','attrs','map','use','getTypeOfUnitDisposed$','_commandService','Stop\x20following','_fetchOperations','substring','createInstance','offline','_status','HEADER_MENU','OPERATION','UNIVER_SHEET','executeCommand','trim','dispose$','sessionStatus$','displayName','0\x200\x2017\x2017','params','disposeWithMe','find','getConfig','You\x27are\x20offline.','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','4898500YXyOHH','getMemberID','9gCBIUi','button','pipe','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','_injector','onStarting','symbol','1em','idle'];_0x5073=function(){return _0x79eb11;};return _0x5073();}var J=Object['defineProperty'],K=(_0xc48790,_0xc9d9c5,_0x1af2a5)=>_0xc9d9c5 in _0xc48790?J(_0xc48790,_0xc9d9c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1af2a5}):_0xc48790[_0xc9d9c5]=_0x1af2a5,u=(_0x17643a,_0x5f06e7,_0x5dc08d)=>K(_0x17643a,typeof _0x5f06e7!=_0x3f8b8a(0x197)?_0x5f06e7+'':_0x5f06e7,_0x5dc08d);import{Disposable as _0x159720,toDisposable as _0x51d4c6,IUniverInstanceService as _0x399285,Inject as _0x5559c6,Injector as _0x195227,IConfigService as _0x5c28f1,ICommandService as _0x754535,RxDisposable as _0x16a1ae,UniverInstanceType as _0x3fe8fe,DisposableCollection as _0x434384,CommandType as _0x1fb413,DependentOn as _0x3f7112,Plugin as _0x25bb0a,merge as _0x39e1c5,registerDependencies as _0x46d24c,mergeOverrideWithDependencies as _0x7a71b0,touchDependencies as _0x4d514b}from'@univerjs/core';import{useDependency as _0x437252,useObservable as _0x420d0b,IUIPartsService as _0x32b863,BuiltInUIPart as _0x4dcc23,connectInjector as _0x54592c}from'@univerjs/ui';import{jsx as _0x2a725f,jsxs as _0x4db2bd,Fragment as _0x32f569}from'react/jsx-runtime';import{Dropdown as _0x1c024f,clsx as _0x1e4748,Button as _0x3efa6c}from'@univerjs/design';import{useRef as _0x5bdf40,createElement as _0x433fb7,forwardRef as _0x51a912,useState as _0x41412a,useEffect as _0x710f1d}from'react';import{CollaborationEvent as _0x1bfde3,parseProtocolChangeset as _0xe1444c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x76787b,SessionStatus as _0x1d2e0c,UniverCollaborationClientPlugin as _0x52b6d2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x54e6ad,SetWorksheetActiveOperation as _0x7f48eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4603a5,Subject as _0x26df35}from'rxjs';import{takeUntil as _0x75a298,throttleTime as _0x2bfc6b}from'rxjs/operators';function _0x5e6b(_0x3d7f4c,_0x14cb74){const _0x5073f8=_0x5073();return _0x5e6b=function(_0x5e6b89,_0x5e37e4){_0x5e6b89=_0x5e6b89-0x118;let _0x4ba283=_0x5073f8[_0x5e6b89];return _0x4ba283;},_0x5e6b(_0x3d7f4c,_0x14cb74);}import{SetZoomRatioOperation as _0x23298b,SetScrollOperation as _0x5acac7}from'@univerjs/sheets-ui';function k({ref:_0xe3c7c0,..._0x142e4a}){const _0x2ca499=_0x3f8b8a,{icon:_0x1d8f59,id:_0xd0ff5d,className:_0x232dc0,extend:_0x1f2413,..._0x500a00}=_0x142e4a,_0x5e65aa=('univerjs-icon\x20univerjs-icon-'+_0xd0ff5d+'\x20'+(_0x232dc0||''))[_0x2ca499(0x182)](),_0x333265=_0x5bdf40('_'+Oe());return G(_0x1d8f59,''+_0xd0ff5d,{'defIds':_0x1d8f59[_0x2ca499(0x155)],'idSuffix':_0x333265[_0x2ca499(0x15c)]},{'ref':_0xe3c7c0,'className':_0x5e65aa,..._0x500a00},_0x1f2413);}function G(_0xd39f0a,_0x3163ad,_0x493cb7,_0x3f26f8,_0x24388e){const _0x54d6d4=_0x3f8b8a;return _0x433fb7(_0xd39f0a[_0x54d6d4(0x1bd)],{'key':_0x3163ad,...be(_0xd39f0a,_0x493cb7,_0x24388e),..._0x3f26f8},(Ee(_0xd39f0a,_0x493cb7)[_0x54d6d4(0x14e)]||[])[_0x54d6d4(0x174)]((_0x3a0e71,_0x31f09c)=>G(_0x3a0e71,_0x3163ad+'-'+_0xd39f0a[_0x54d6d4(0x1bd)]+'-'+_0x31f09c,_0x493cb7,void 0x0,_0x24388e)));}function be(_0x42773d,_0x42881d,_0x4648ef){const _0x3ced73=_0x3f8b8a,_0x369ee7={..._0x42773d[_0x3ced73(0x173)]};_0x4648ef!=null&&_0x4648ef[_0x3ced73(0x1ae)]&&_0x369ee7['fill']===_0x3ced73(0x1ae)&&(_0x369ee7['fill']=_0x4648ef['colorChannel1']),_0x42773d['tag']===_0x3ced73(0x134)&&_0x369ee7['id']&&(_0x369ee7['id']=_0x369ee7['id']+_0x42881d[_0x3ced73(0x13c)]),Object['entries'](_0x369ee7)[_0x3ced73(0x151)](([_0x587907,_0x119040])=>{const _0x2cde33=_0x3ced73;_0x587907===_0x2cde33(0x134)&&typeof _0x119040==_0x2cde33(0x164)&&(_0x369ee7[_0x587907]=_0x119040['replace'](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x2cde33(0x13c)]+')'));});const {defIds:_0x3dc9f2}=_0x42881d;return!_0x3dc9f2||_0x3dc9f2[_0x3ced73(0x136)]===0x0||(_0x42773d[_0x3ced73(0x1bd)]===_0x3ced73(0x175)&&_0x369ee7[_0x3ced73(0x15f)]&&(_0x369ee7[_0x3ced73(0x15f)]=_0x369ee7['xlink:href']+_0x42881d[_0x3ced73(0x13c)]),Object[_0x3ced73(0x1b9)](_0x369ee7)[_0x3ced73(0x151)](([_0x3c8fab,_0xb5ee25])=>{const _0x36a25a=_0x3ced73;typeof _0xb5ee25==_0x36a25a(0x164)&&(_0x369ee7[_0x3c8fab]=_0xb5ee25[_0x36a25a(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x42881d[_0x36a25a(0x13c)]+')'));})),_0x369ee7;}function Ee(_0x1f5ccf,_0x5577bc){const _0x3b2b48=_0x3f8b8a;var _0x38bd2c;const {defIds:_0x4ae1fb}=_0x5577bc;return!_0x4ae1fb||_0x4ae1fb[_0x3b2b48(0x136)]===0x0?_0x1f5ccf:_0x1f5ccf[_0x3b2b48(0x1bd)]==='defs'&&((_0x38bd2c=_0x1f5ccf[_0x3b2b48(0x14e)])!=null&&_0x38bd2c['length'])?{..._0x1f5ccf,'children':_0x1f5ccf[_0x3b2b48(0x14e)][_0x3b2b48(0x174)](_0x3a763a=>typeof _0x3a763a[_0x3b2b48(0x173)]['id']=='string'&&_0x4ae1fb&&_0x4ae1fb[_0x3b2b48(0x11f)](_0x3a763a[_0x3b2b48(0x173)]['id'])?{..._0x3a763a,'attrs':{..._0x3a763a['attrs'],'id':_0x3a763a[_0x3b2b48(0x173)]['id']+_0x5577bc[_0x3b2b48(0x13c)]}}:_0x3a763a)}:_0x1f5ccf;}function Oe(){const _0x32d4f2=_0x3f8b8a;return Math[_0x32d4f2(0x1b2)]()[_0x32d4f2(0x14a)](0x24)[_0x32d4f2(0x17a)](0x2,0x8);}k[_0x3f8b8a(0x185)]=_0x3f8b8a(0x125);const we={'tag':_0x3f8b8a(0x12d),'attrs':{'xmlns':_0x3f8b8a(0x18d),'fill':_0x3f8b8a(0x163),'viewBox':_0x3f8b8a(0x186),'width':_0x3f8b8a(0x198),'height':_0x3f8b8a(0x198)},'children':[{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x194)}},{'tag':_0x3f8b8a(0x170),'attrs':{'fill':'currentColor','d':_0x3f8b8a(0x128),'fillRule':_0x3f8b8a(0x120),'clipRule':_0x3f8b8a(0x120)}}]},W=_0x51a912(function(_0x4760e6,_0x12fa81){const _0x8323b6=_0x3f8b8a;return _0x433fb7(k,Object[_0x8323b6(0x16e)]({},_0x4760e6,{'id':_0x8323b6(0x11b),'ref':_0x12fa81,'icon':we}));});W['displayName']=_0x3f8b8a(0x1b0);class L extends _0x159720{constructor(){const _0x57e4be=_0x3f8b8a;super(...arguments),u(this,_0x57e4be(0x1ba),new Set()),u(this,'_reporters',new Set());}[_0x3f8b8a(0x13e)](_0x4acac7){const _0x7a7ffb=_0x3f8b8a;return this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x1ac)](_0x4acac7),_0x51d4c6(()=>this[_0x7a7ffb(0x1ba)][_0x7a7ffb(0x14c)](_0x4acac7));}[_0x3f8b8a(0x19f)](_0x217eeb){const _0x15bb0d=_0x3f8b8a;return this['_reporters'][_0x15bb0d(0x1ac)](_0x217eeb),_0x51d4c6(()=>this[_0x15bb0d(0x1a6)][_0x15bb0d(0x14c)](_0x217eeb));}[_0x3f8b8a(0x1af)](_0x5f0c1e){const _0x21b2f8=_0x3f8b8a;return this['_sharedOperations'][_0x21b2f8(0x1b3)](_0x5f0c1e);}[_0x3f8b8a(0x126)](_0x28f42f){const _0x583ead=_0x3f8b8a;return Array[_0x583ead(0x11a)](this[_0x583ead(0x1a6)])[_0x583ead(0x174)](_0x47d80d=>_0x47d80d(_0x28f42f));}}var Ne=Object[_0x3f8b8a(0x13b)],Y=(_0x22d92a,_0x5baaf6,_0x1c120e,_0x2dbae1)=>{const _0x142a4a=_0x3f8b8a;for(var _0x4143e4=_0x2dbae1>0x1?void 0x0:_0x2dbae1?Ne(_0x5baaf6,_0x1c120e):_0x5baaf6,_0xd30129=_0x22d92a[_0x142a4a(0x136)]-0x1,_0x285747;_0xd30129>=0x0;_0xd30129--)(_0x285747=_0x22d92a[_0xd30129])&&(_0x4143e4=_0x285747(_0x4143e4)||_0x4143e4);return _0x4143e4;},_=(_0x1b8bf3,_0x3c5791)=>(_0x33fb27,_0x509447)=>_0x3c5791(_0x33fb27,_0x509447,_0x1b8bf3);let S=class extends _0x16a1ae{constructor(_0x3d2124,_0x1caff3,_0x177195){const _0xea2054=_0x3f8b8a;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3d2124,this[_0xea2054(0x195)]=_0x1caff3,this['_collabSessionService']=_0x177195,this[_0xea2054(0x13a)]());}async[_0x3f8b8a(0x156)](_0x18173e){const _0x39d342=_0x3f8b8a;return this[_0x39d342(0x1a9)][_0x39d342(0x1b3)](_0x18173e)||await this['_startLiveShareCoordinator'](_0x18173e),this[_0x39d342(0x1a9)][_0x39d342(0x15d)](_0x18173e);}['getLiveShareCoordinatorSync'](_0x51a436){const _0x560500=_0x3f8b8a;var _0x1eb23d;return(_0x1eb23d=this[_0x560500(0x1a9)][_0x560500(0x15d)](_0x51a436))!=null?_0x1eb23d:null;}['_init'](){const _0x5f5519=_0x3f8b8a;this['_univerInstanceService'][_0x5f5519(0x16c)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](async _0x5e9eee=>{const _0x5be08c=_0x5f5519,_0x1061f6=_0x5e9eee['getUnitId']();this['_entities']['has'](_0x1061f6)||this[_0x5be08c(0x171)](_0x1061f6);}),this[_0x5f5519(0x19e)][_0x5f5519(0x176)](_0x3fe8fe[_0x5f5519(0x180)])[_0x5f5519(0x193)](_0x75a298(this[_0x5f5519(0x183)]))[_0x5f5519(0x169)](_0x1c9bc8=>{const _0x2bbaf6=_0x5f5519,_0x47d72a=_0x1c9bc8[_0x2bbaf6(0x172)](),_0x1a583=this['_entities'][_0x2bbaf6(0x15d)](_0x47d72a);_0x1a583==null||_0x1a583[_0x2bbaf6(0x132)]();});}async[_0x3f8b8a(0x171)](_0x2bfa87){const _0x447c7d=_0x3f8b8a,_0x50e532=await this['_collabSessionService'][_0x447c7d(0x1b5)](_0x2bfa87),_0x5f59f8=this['_injector'][_0x447c7d(0x17b)](N,_0x2bfa87,_0x50e532);return _0x5f59f8[_0x447c7d(0x14b)](),this[_0x447c7d(0x1a9)][_0x447c7d(0x12a)](_0x2bfa87,_0x5f59f8),_0x5f59f8;}};S=Y([_(0x0,_0x399285),_(0x1,_0x5559c6(_0x195227)),_(0x2,_0x5559c6(_0x76787b))],S);var c=(_0x574527=>(_0x574527['OFFLINE']='offline',_0x574527['IDLE']='idle',_0x574527['FOLLOWING']='following',_0x574527[_0x3f8b8a(0x131)]='not-following',_0x574527[_0x3f8b8a(0x129)]=_0x3f8b8a(0x15b),_0x574527))(c||{});const Ce=_0x3f8b8a(0x154),De=0xc8;let N=class extends _0x16a1ae{constructor(_0x4276f7,_0x346f6b,_0x2b6c92,_0x142612,_0xb2a889){const _0x39a6e7=_0x3f8b8a;super(),u(this,_0x39a6e7(0x119),new _0x4603a5(_0x39a6e7(0x199))),u(this,_0x39a6e7(0x118),this['_status$'][_0x39a6e7(0x1a1)]()),u(this,'_init',!0x1),u(this,_0x39a6e7(0x19b),null),u(this,_0x39a6e7(0x11d),null),(this[_0x39a6e7(0x149)]=_0x4276f7,this[_0x39a6e7(0x1a2)]=_0x346f6b,this['_configService']=_0x2b6c92,this[_0x39a6e7(0x16d)]=_0x142612,this['_commandService']=_0xb2a889);}get[_0x3f8b8a(0x17d)](){const _0x5034b4=_0x3f8b8a;return this[_0x5034b4(0x119)]['getValue']();}[_0x3f8b8a(0x132)](){const _0x3a92df=_0x3f8b8a;var _0x1e7b70;(_0x1e7b70=this[_0x3a92df(0x19b)])==null||_0x1e7b70[_0x3a92df(0x132)](),this[_0x3a92df(0x119)][_0x3a92df(0x15a)](_0x3a92df(0x199)),this[_0x3a92df(0x119)][_0x3a92df(0x159)]();}[_0x3f8b8a(0x19c)](){const _0x243205=_0x3f8b8a;return this[_0x243205(0x17d)];}[_0x3f8b8a(0x14b)](){const _0x4d9eac=_0x3f8b8a;this[_0x4d9eac(0x13a)]||(this['_init']=!0x0,this[_0x4d9eac(0x1a2)][_0x4d9eac(0x184)][_0x4d9eac(0x193)](_0x75a298(this[_0x4d9eac(0x183)]))[_0x4d9eac(0x169)](_0xed7b20=>{const _0x5c912b=_0x4d9eac;switch(_0xed7b20){case _0x1d2e0c['OFFLINE']:this[_0x5c912b(0x167)]();break;case _0x1d2e0c['ONLINE']:this[_0x5c912b(0x14d)]();break;}}),this['_collabSession'][_0x4d9eac(0x161)][_0x4d9eac(0x193)](_0x75a298(this['dispose$']))['subscribe'](_0x28f52f=>{const _0x28a030=_0x4d9eac,{eventID:_0x18df19}=_0x28f52f;switch(_0x18df19){case _0x1bfde3[_0x28a030(0x13d)]:this[_0x28a030(0x150)](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x143)]:this['_handleOperation'](_0x28f52f);break;case _0x1bfde3[_0x28a030(0x1bb)]:this[_0x28a030(0x124)]();break;case _0x1bfde3[_0x28a030(0x15e)]:this[_0x28a030(0x162)](_0x28f52f);break;}}));}[_0x3f8b8a(0x1aa)](){const _0x24894a=_0x3f8b8a;this[_0x24894a(0x1a2)][_0x24894a(0x148)]({'eventID':_0x1bfde3[_0x24894a(0x1a8)],'data':{'unitID':this['_unitID'],'userID':this[_0x24894a(0x1a2)][_0x24894a(0x190)]()}},this[_0x24894a(0x149)]);}[_0x3f8b8a(0x19a)](){const _0x3c56f2=_0x3f8b8a;this[_0x3c56f2(0x17d)]==='presenting'&&(this[_0x3c56f2(0x119)]['next']('idle'),this[_0x3c56f2(0x1a2)][_0x3c56f2(0x148)]({'eventID':_0x1bfde3[_0x3c56f2(0x1bb)],'data':{'unitID':this[_0x3c56f2(0x149)]}},this[_0x3c56f2(0x149)]));}['startFollowing'](){const _0x5343ed=_0x3f8b8a;this['_status']===_0x5343ed(0x1be)&&(this['_status$']['next'](_0x5343ed(0x1a5)),this[_0x5343ed(0x123)]());}['stopFollowing'](){const _0x37e4e2=_0x3f8b8a;this[_0x37e4e2(0x17d)]==='following'&&this[_0x37e4e2(0x1b6)]();}[_0x3f8b8a(0x150)](_0x58be5a){const _0x48d6f1=_0x3f8b8a,{presenter:_0x35aeae}=_0x58be5a[_0x48d6f1(0x147)],_0x42f624=this['_collabSession'][_0x48d6f1(0x190)]();this[_0x48d6f1(0x11d)]=_0x35aeae,_0x35aeae===_0x42f624?(this[_0x48d6f1(0x1b6)](),this[_0x48d6f1(0x141)]()):this[_0x48d6f1(0x17d)]!==_0x48d6f1(0x1be)&&(this[_0x48d6f1(0x165)](),this['_startFollowing']());}[_0x3f8b8a(0x179)](){const _0x6c3b87=_0x3f8b8a,_0x56ed86={'eventID':_0x1bfde3['LIVESHARE_FETCH_OPERATIONS']};this[_0x6c3b87(0x1a2)][_0x6c3b87(0x148)](_0x56ed86,this[_0x6c3b87(0x149)]);}[_0x3f8b8a(0x124)](){const _0x2cab7b=_0x3f8b8a;this['_presenter']=null,this[_0x2cab7b(0x17d)]!=='presenting'&&this[_0x2cab7b(0x16b)]();}[_0x3f8b8a(0x162)](_0x321f12){const _0xdd36ca=_0x3f8b8a;if(this[_0xdd36ca(0x17d)]===_0xdd36ca(0x1a5)&&this[_0xdd36ca(0x11d)]===_0x321f12['data']['memberID']){const _0x2956d7=_0xe1444c(_0x321f12[_0xdd36ca(0x147)])[_0xdd36ca(0x146)][_0xdd36ca(0x1a7)]()[_0xdd36ca(0x189)](_0x4e9636=>_0x4e9636['id']===_0x54e6ad['id']);if(_0x2956d7){const _0x132c1e=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x135)],_0x52ac32=_0x2956d7[_0xdd36ca(0x187)][_0xdd36ca(0x137)]['id'];setTimeout(()=>{const _0x5a91e8=_0xdd36ca;this[_0x5a91e8(0x177)][_0x5a91e8(0x181)](_0x7f48eb['id'],{'unitId':_0x132c1e,'subUnitId':_0x52ac32},{'fromCollab':!0x0});});}}}[_0x3f8b8a(0x141)](){const _0x570568=_0x3f8b8a;this[_0x570568(0x119)][_0x570568(0x15a)](_0x570568(0x15b));const _0x48df98=new Map(),_0x805d37=this[_0x570568(0x19b)]=new _0x434384();_0x805d37[_0x570568(0x1ac)](_0x51d4c6(()=>{const _0x4fab03=_0x570568;_0x48df98[_0x4fab03(0x151)](_0x1a3792=>_0x1a3792[_0x4fab03(0x159)]()),_0x48df98[_0x4fab03(0x144)]();})),_0x805d37[_0x570568(0x1ac)](this[_0x570568(0x177)][_0x570568(0x127)](_0x1ffa50=>{const _0x541913=_0x570568;var _0x380ba2;if(_0x1ffa50['type']!==_0x1fb413[_0x541913(0x17f)]||!this['_liveShareService'][_0x541913(0x1af)](_0x1ffa50['id']))return;const {id:_0x2d2022}=_0x1ffa50;let _0x4641a2;_0x48df98['has'](_0x2d2022)?_0x4641a2=_0x48df98[_0x541913(0x15d)](_0x2d2022):(_0x4641a2=new _0x26df35(),_0x48df98[_0x541913(0x12a)](_0x2d2022,_0x4641a2),_0x4641a2[_0x541913(0x193)](_0x2bfc6b((_0x380ba2=this[_0x541913(0x157)][_0x541913(0x18a)](Ce))!=null?_0x380ba2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x541913(0x169)](_0x53e5b3=>{const _0xbd360a=_0x541913;this[_0xbd360a(0x1a2)]['send']({'eventID':_0x1bfde3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xbd360a(0x149)],'operations':{[_0x53e5b3['id']]:{'id':_0x53e5b3['id'],'params':JSON[_0xbd360a(0x16a)](_0x53e5b3[_0xbd360a(0x187)])}}}},this[_0xbd360a(0x149)]);})),_0x4641a2[_0x541913(0x15a)](_0x1ffa50);})),this[_0x570568(0x16d)][_0x570568(0x126)](this[_0x570568(0x149)])[_0x570568(0x151)](_0x32739c=>this[_0x570568(0x1a2)][_0x570568(0x148)]({'eventID':_0x1bfde3[_0x570568(0x143)],'data':{'unitID':this[_0x570568(0x149)],'operations':{[_0x32739c['id']]:{'id':_0x32739c['id'],'params':JSON[_0x570568(0x16a)](_0x32739c[_0x570568(0x187)])}}}},this['_unitID']));}[_0x3f8b8a(0x165)](){const _0x4fcc9d=_0x3f8b8a;var _0x2c9889;this['_status$'][_0x4fcc9d(0x15a)]('idle'),(_0x2c9889=this['_commandDisposable'])==null||_0x2c9889[_0x4fcc9d(0x132)](),this['_commandDisposable']=null;}[_0x3f8b8a(0x123)](){const _0x191871=_0x3f8b8a;var _0x55d507;(_0x55d507=this['_commandDisposable'])==null||_0x55d507[_0x191871(0x132)](),this[_0x191871(0x119)][_0x191871(0x15a)](_0x191871(0x1a5));}[_0x3f8b8a(0x16b)](){const _0x56a8fd=_0x3f8b8a;var _0x2f872b;this['_status$'][_0x56a8fd(0x15a)](_0x56a8fd(0x199)),(_0x2f872b=this[_0x56a8fd(0x19b)])==null||_0x2f872b['dispose'](),this['_commandDisposable']=null;}[_0x3f8b8a(0x1b6)](){const _0x59d686=_0x3f8b8a;var _0xee0c7e;this['_status$'][_0x59d686(0x15a)](_0x59d686(0x1be)),(_0xee0c7e=this[_0x59d686(0x19b)])==null||_0xee0c7e[_0x59d686(0x132)]();}['_handleOperation'](_0x1fe05f){const _0x5a8b7d=_0x3f8b8a;if([_0x5a8b7d(0x15b),_0x5a8b7d(0x1be),_0x5a8b7d(0x17c)][_0x5a8b7d(0x11f)](this[_0x5a8b7d(0x17d)])||!_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x12b)]||_0x1fe05f['data'][_0x5a8b7d(0x12b)]===this[_0x5a8b7d(0x1a2)][_0x5a8b7d(0x190)]())return;this[_0x5a8b7d(0x17d)]==='idle'&&this[_0x5a8b7d(0x123)]();const _0x3b278=_0x1fe05f[_0x5a8b7d(0x147)][_0x5a8b7d(0x140)];Object[_0x5a8b7d(0x133)](_0x3b278)[_0x5a8b7d(0x151)](_0x1abcbe=>{const _0x14c655=_0x5a8b7d;this[_0x14c655(0x177)][_0x14c655(0x181)](_0x1abcbe['id'],_0x1abcbe[_0x14c655(0x187)]?JSON['parse'](_0x1abcbe[_0x14c655(0x187)]):null,{'fromCollab':!0x0});});}[_0x3f8b8a(0x167)](){const _0x47bc6e=_0x3f8b8a;var _0x13b4d8;this[_0x47bc6e(0x119)][_0x47bc6e(0x15a)](_0x47bc6e(0x17c)),(_0x13b4d8=this['_commandDisposable'])==null||_0x13b4d8[_0x47bc6e(0x132)]();}[_0x3f8b8a(0x14d)](){const _0x29a970=_0x3f8b8a;this[_0x29a970(0x119)]['next']('idle'),this[_0x29a970(0x179)]();}};N=Y([_(0x2,_0x5c28f1),_(0x3,_0x5559c6(L)),_(0x4,_0x754535)],N);function Le(){const _0x22584c=_0x3f8b8a,_0x5158de=_0x437252(S),_0x22ff73=_0x437252(_0x399285),_0x4fe169=_0x420d0b(()=>_0x22ff73['getCurrentTypeOfUnit$'](_0x3fe8fe['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13918f,_0x5a27e4]=_0x41412a(null),[_0xe69d7a,_0x8f994d]=_0x41412a(c[_0x22584c(0x12e)]),_0x397bf8=_0x5bdf40(null);return _0x710f1d(()=>(_0x4fe169&&_0x5158de[_0x22584c(0x156)](_0x4fe169[_0x22584c(0x172)]())[_0x22584c(0x160)](_0x487b0c=>{const _0x3bc4df=_0x22584c;_0x5a27e4(_0x487b0c),_0x397bf8[_0x3bc4df(0x15c)]=_0x487b0c[_0x3bc4df(0x118)][_0x3bc4df(0x169)](_0x258b5b=>{_0x8f994d(_0x258b5b);});}),()=>{const _0x438cb8=_0x22584c;var _0x1f1064;(_0x1f1064=_0x397bf8[_0x438cb8(0x15c)])==null||_0x1f1064[_0x438cb8(0x145)](),_0x397bf8['current']=null;}),[_0x4fe169,_0x5158de]),_0x13918f?_0x2a725f(_0x1c024f,{'align':_0x22584c(0x152),'disabled':_0xe69d7a===c[_0x22584c(0x1b1)],'className':_0x22584c(0x168),'overlay':_0x2a725f(Re,{'status':_0xe69d7a,'coordinator':_0x13918f}),'children':_0x2a725f(_0x22584c(0x192),{'className':_0x1e4748(_0x22584c(0x16f),{'univer-cursor-not-allowed':_0xe69d7a===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe69d7a!==c[_0x22584c(0x1b1)]}),'type':_0x22584c(0x192),'children':_0x2a725f(W,{'className':_0x22584c(0x1ab)})})}):null;}function Re(_0x338ffb){const _0x3dd1f6=_0x3f8b8a,{status:_0x55981b,coordinator:_0x2d4cf8}=_0x338ffb;switch(_0x55981b){case c['IDLE']:return _0x2a725f($e,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b8)]:return _0x2a725f(xe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x131)]:return _0x2a725f(Pe,{'coordinator':_0x2d4cf8});case c[_0x3dd1f6(0x1b1)]:return _0x2a725f(Te,{});case c['PRESENTING']:return _0x2a725f(Ae,{'coordinator':_0x2d4cf8});default:return null;}}function $e(_0xe2c10a){const _0x42d232=_0x3f8b8a,{coordinator:_0x5432b0}=_0xe2c10a;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f('div',{'className':_0x42d232(0x13f),'children':'Present\x20this\x20document'}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x5432b0[_0x42d232(0x1aa)](),'children':'Start'})]});}function xe(_0x46d1b7){const _0x3fade4=_0x3f8b8a,{coordinator:_0x3870d3}=_0x46d1b7;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3fade4(0x1a0),{'className':_0x3fade4(0x13f),'children':_0x3fade4(0x138)}),_0x2a725f(_0x3efa6c,{'onClick':()=>_0x3870d3['stopFollowing'](),'children':_0x3fade4(0x178)})]});}function Pe(_0x2ad8a6){const _0x1507c4=_0x3f8b8a,{coordinator:_0x15114f}=_0x2ad8a6;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x1507c4(0x1a0),{'className':_0x1507c4(0x13f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2a725f(_0x3efa6c,{'variant':_0x1507c4(0x19d),'onClick':()=>_0x15114f['startFollowing'](),'children':_0x1507c4(0x142)})]});}function Ae(_0x4d9d45){const _0x3b0c48=_0x3f8b8a,{coordinator:_0x6739dd}=_0x4d9d45;return _0x4db2bd(_0x32f569,{'children':[_0x2a725f(_0x3b0c48(0x1a0),{'className':_0x3b0c48(0x13f),'children':_0x3b0c48(0x18e)}),_0x2a725f(_0x3efa6c,{'variant':_0x3b0c48(0x153),'onClick':()=>_0x6739dd[_0x3b0c48(0x19a)](),'children':_0x3b0c48(0x11e)})]});}function Te(){const _0x5ab2e9=_0x3f8b8a;return _0x2a725f(_0x32f569,{'children':_0x5ab2e9(0x18b)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x692b81,_0x2bd650,_0x55ecc7,_0x573e73)=>{for(var _0x265abf=_0x573e73>0x1?void 0x0:_0x573e73?Fe(_0x2bd650,_0x55ecc7):_0x2bd650,_0x9a9881=_0x692b81['length']-0x1,_0xe49475;_0x9a9881>=0x0;_0x9a9881--)(_0xe49475=_0x692b81[_0x9a9881])&&(_0x265abf=_0xe49475(_0x265abf)||_0x265abf);return _0x265abf;},A=(_0x3e8478,_0x1dc1e1)=>(_0x1d6c49,_0x43136c)=>_0x1dc1e1(_0x1d6c49,_0x43136c,_0x3e8478);let m=class extends _0x159720{constructor(_0x3b5d43,_0x5c3466){const _0x3f13f9=_0x3f8b8a;super(),this[_0x3f13f9(0x195)]=_0x3b5d43,this[_0x3f13f9(0x158)]=_0x5c3466,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x9ce3e3=_0x3f8b8a;this[_0x9ce3e3(0x188)](this[_0x9ce3e3(0x158)][_0x9ce3e3(0x1ad)](_0x4dcc23[_0x9ce3e3(0x17e)],()=>_0x54592c(Le,this[_0x9ce3e3(0x195)])));}};m=He([A(0x0,_0x5559c6(_0x195227)),A(0x1,_0x32b863)],m);const ye='live-share.config',T={};var Ue=Object[_0x3f8b8a(0x13b)],Ve=(_0x57f1cb,_0x1bff20,_0x2e21ac,_0x510d99)=>{const _0x1fc779=_0x3f8b8a;for(var _0x39b7f2=_0x510d99>0x1?void 0x0:_0x510d99?Ue(_0x1bff20,_0x2e21ac):_0x1bff20,_0x16b7ff=_0x57f1cb[_0x1fc779(0x136)]-0x1,_0x49eb70;_0x16b7ff>=0x0;_0x16b7ff--)(_0x49eb70=_0x57f1cb[_0x16b7ff])&&(_0x39b7f2=_0x49eb70(_0x39b7f2)||_0x39b7f2);return _0x39b7f2;},je=(_0xa2122c,_0x9f8f62)=>(_0x508fa7,_0x2b1df8)=>_0x9f8f62(_0x508fa7,_0x2b1df8,_0xa2122c);let I=class extends _0x159720{constructor(_0xcc460c){const _0x27f7e3=_0x3f8b8a;super(),this['_liveShareService']=_0xcc460c,this[_0x27f7e3(0x13a)]();}[_0x3f8b8a(0x13a)](){const _0x73d333=_0x3f8b8a;[_0x23298b['id'],_0x5acac7['id'],_0x7f48eb['id']][_0x73d333(0x151)](_0x475cc7=>{const _0x89d838=_0x73d333;this['disposeWithMe'](this[_0x89d838(0x16d)][_0x89d838(0x13e)](_0x475cc7));});}};I=Ve([je(0x0,_0x5559c6(L))],I);var Me=Object[_0x3f8b8a(0x121)],ke=Object[_0x3f8b8a(0x13b)],Ge=(_0x2116fc,_0xb34a52,_0x3b2d2a)=>_0xb34a52 in _0x2116fc?Me(_0x2116fc,_0xb34a52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2d2a}):_0x2116fc[_0xb34a52]=_0x3b2d2a,We=(_0x17513b,_0xfb1c9a,_0x4b4434,_0x41a9a5)=>{const _0x4fb515=_0x3f8b8a;for(var _0xefc1c8=_0x41a9a5>0x1?void 0x0:_0x41a9a5?ke(_0xfb1c9a,_0x4b4434):_0xfb1c9a,_0x158699=_0x17513b[_0x4fb515(0x136)]-0x1,_0x21492d;_0x158699>=0x0;_0x158699--)(_0x21492d=_0x17513b[_0x158699])&&(_0xefc1c8=_0x21492d(_0xefc1c8)||_0xefc1c8);return _0xefc1c8;},F=(_0x1e2c9c,_0x11c040)=>(_0x294155,_0x9fd399)=>_0x11c040(_0x294155,_0x9fd399,_0x1e2c9c),B=(_0x59a4a2,_0x4ef318,_0x35ae5e)=>Ge(_0x59a4a2,typeof _0x4ef318!='symbol'?_0x4ef318+'':_0x4ef318,_0x35ae5e);const Ye=_0x3f8b8a(0x18c);let b=class extends _0x25bb0a{constructor(_0x459cf0=T,_0x37b1e9,_0x52a233){const _0x556311=_0x3f8b8a;super(),this[_0x556311(0x12f)]=_0x459cf0,this[_0x556311(0x195)]=_0x37b1e9,this[_0x556311(0x157)]=_0x52a233;const {..._0x520479}=_0x39e1c5({},T,this[_0x556311(0x12f)]);this[_0x556311(0x157)][_0x556311(0x1b7)](ye,_0x520479);}[_0x3f8b8a(0x196)](){const _0x4767d2=_0x3f8b8a;_0x46d24c(this['_injector'],_0x7a71b0([[L],[S],[I],[m]],this[_0x4767d2(0x12f)][_0x4767d2(0x1bc)])),_0x4d514b(this['_injector'],[[I]]);}[_0x3f8b8a(0x130)](){const _0x30604d=_0x3f8b8a;_0x4d514b(this[_0x30604d(0x195)],[[m]]);}};B(b,'type',_0x3fe8fe['UNIVER_UNKNOWN']),B(b,'pluginName',Ye),b=We([_0x3f7112(_0x52b6d2),F(0x1,_0x5559c6(_0x195227)),F(0x2,_0x5c28f1)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x474bf6,_0x5afab6){const _0x54a5fc=_0x33bd,_0x31c4af=_0x474bf6();while(!![]){try{const _0x4456d4=parseInt(_0x54a5fc(0xda))/0x1+-parseInt(_0x54a5fc(0xe5))/0x2*(-parseInt(_0x54a5fc(0xdf))/0x3)+-parseInt(_0x54a5fc(0xc1))/0x4*(-parseInt(_0x54a5fc(0xc6))/0x5)+parseInt(_0x54a5fc(0xcc))/0x6*(parseInt(_0x54a5fc(0xcd))/0x7)+parseInt(_0x54a5fc(0xed))/0x8+parseInt(_0x54a5fc(0xcf))/0x9*(-parseInt(_0x54a5fc(0xd2))/0xa)+-parseInt(_0x54a5fc(0xd3))/0xb*(parseInt(_0x54a5fc(0xe0))/0xc);if(_0x4456d4===_0x5afab6)break;else _0x31c4af['push'](_0x31c4af['shift']());}catch(_0x3533c3){_0x31c4af['push'](_0x31c4af['shift']());}}}(_0x1445,0xa8db9),function(_0x580726,_0x145b00){const _0x43c51c=_0x33bd;typeof exports==_0x43c51c(0xc7)&&typeof module<'u'?_0x145b00(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x43c51c(0xd4)&&define['amd']?define([_0x43c51c(0xe3),_0x43c51c(0xbf),_0x43c51c(0xd7),'@univerjs/sheets-ui',_0x43c51c(0xc3),_0x43c51c(0xf5)],_0x145b00):(_0x580726=typeof globalThis<'u'?globalThis:_0x580726||self,_0x145b00(_0x580726[_0x43c51c(0xf4)],_0x580726[_0x43c51c(0xd9)],_0x580726[_0x43c51c(0xd1)],_0x580726[_0x43c51c(0xca)],_0x580726['UniverSheetsFacade'],_0x580726[_0x43c51c(0xc8)]));}(this,function(_0x25128e,_0x32c983,_0x19cc1f,_0xf45864,_0x1506f2,_0x52183e){'use strict';const _0x29fd79=_0x33bd;class _0x24f185 extends _0x1506f2[_0x29fd79(0xce)]{[_0x29fd79(0xcb)](_0x49e3e8,_0x1c506d,_0x3acea8,_0x3b1a62,_0x504334){const _0x482489=_0x29fd79,_0x2eedac=_0x49e3e8[_0x482489(0xee)](_0x25128e['LiveShareController']),_0x4cad76=_0x49e3e8['get'](_0x32c983['IRenderManagerService']),_0xc911d8=_0x1c506d[_0x482489(0xd6)](),_0x40ccb2=_0x1c506d[_0x482489(0xc4)](),_0x3b3b6b=_0x2eedac[_0x482489(0xc0)](_0xc911d8);(_0x3b3b6b==null?void 0x0:_0x3b3b6b[_0x482489(0xde)]())!==_0x25128e['LiveShareStatus'][_0x482489(0xdd)]||(_0x3acea8['getSheetId']()!==_0x40ccb2[_0x482489(0xe6)]()&&this[_0x482489(0xd5)][_0x482489(0xd8)](_0x19cc1f[_0x482489(0xc2)]['id'],{'unitId':_0xc911d8,'subUnitId':_0x3acea8[_0x482489(0xe6)]()}),!_0x4cad76[_0x482489(0xe2)](_0xc911d8))||_0x504334[_0x482489(0xf6)](_0xf45864[_0x482489(0xe1)]['id'],{'unitId':_0x1c506d[_0x482489(0xd6)](),'sheetId':_0x3acea8[_0x482489(0xe6)](),'sheetViewStartRow':_0x3b1a62[_0x482489(0xef)],'sheetViewStartColumn':_0x3b1a62[_0x482489(0xea)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1506f2[_0x29fd79(0xce)][_0x29fd79(0xc9)](_0x24f185);class _0x1bcdc8 extends _0x52183e[_0x29fd79(0xe7)]{[_0x29fd79(0xf1)](){const _0x210ed9=_0x29fd79;var _0x122082,_0x3305db;const _0x49f6f4=this[_0x210ed9(0xdc)]['get'](_0x25128e[_0x210ed9(0xf0)]),_0x553d31=(_0x122082=this['getActiveWorkbook']())==null?void 0x0:_0x122082['getId']();if(!_0x553d31)throw new Error('No\x20active\x20workbook\x20found.');const _0x317494=_0x49f6f4['getLiveShareCoordinatorSync'](_0x553d31);return(_0x3305db=_0x317494==null?void 0x0:_0x317494[_0x210ed9(0xde)]())!=null?_0x3305db:_0x25128e[_0x210ed9(0xbe)][_0x210ed9(0xe9)];}[_0x29fd79(0xc5)](){const _0x163329=_0x29fd79;var _0x43c571;const _0xa546d6=this['_injector'][_0x163329(0xee)](_0x25128e[_0x163329(0xf0)]),_0x69266b=(_0x43c571=this[_0x163329(0xe4)]())==null?void 0x0:_0x43c571[_0x163329(0xdb)]();if(!_0x69266b)throw new Error('No\x20active\x20workbook\x20found.');const _0xe4e21e=_0xa546d6[_0x163329(0xc0)](_0x69266b);if(!_0xe4e21e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xe4e21e[_0x163329(0xc5)]();}[_0x29fd79(0xbd)](){const _0x214f97=_0x29fd79;var _0x394789;const _0xe62a10=this[_0x214f97(0xdc)][_0x214f97(0xee)](_0x25128e['LiveShareController']),_0x26f6ca=(_0x394789=this[_0x214f97(0xe4)]())==null?void 0x0:_0x394789['getId']();if(!_0x26f6ca)throw new Error(_0x214f97(0xeb));const _0x28dbeb=_0xe62a10[_0x214f97(0xc0)](_0x26f6ca);if(!_0x28dbeb)throw new Error(_0x214f97(0xec));_0x28dbeb['stopFollowing']();}[_0x29fd79(0xf3)](){const _0x1a7e6e=_0x29fd79;var _0x27ed92;const _0x592e01=this['_injector']['get'](_0x25128e[_0x1a7e6e(0xf0)]),_0x573801=(_0x27ed92=this['getActiveWorkbook']())==null?void 0x0:_0x27ed92['getId']();if(!_0x573801)throw new Error('No\x20active\x20workbook\x20found.');const _0x90d6e6=_0x592e01[_0x1a7e6e(0xc0)](_0x573801);if(!_0x90d6e6)throw new Error(_0x1a7e6e(0xec));_0x90d6e6[_0x1a7e6e(0xd0)]();}[_0x29fd79(0xe8)](){const _0x3e9842=_0x29fd79;var _0x4c8e71;const _0x3099b4=this[_0x3e9842(0xdc)][_0x3e9842(0xee)](_0x25128e[_0x3e9842(0xf0)]),_0x4d3f53=(_0x4c8e71=this['getActiveWorkbook']())==null?void 0x0:_0x4c8e71[_0x3e9842(0xdb)]();if(!_0x4d3f53)throw new Error(_0x3e9842(0xeb));const _0x506cc0=_0x3099b4[_0x3e9842(0xc0)](_0x4d3f53);if(!_0x506cc0)throw new Error(_0x3e9842(0xec));_0x506cc0[_0x3e9842(0xe8)]();}}_0x52183e[_0x29fd79(0xe7)][_0x29fd79(0xc9)](_0x1bcdc8);class _0x39353e extends _0x52183e[_0x29fd79(0xf2)]{get['LiveShareStatusEnum'](){const _0x236095=_0x29fd79;return _0x25128e[_0x236095(0xbe)];}}_0x52183e[_0x29fd79(0xf2)][_0x29fd79(0xc9)](_0x39353e);}));function _0x33bd(_0x5ed170,_0x4548c3){const _0x144539=_0x1445();return _0x33bd=function(_0x33bd5c,_0x3dcafa){_0x33bd5c=_0x33bd5c-0xbd;let _0x35a9b2=_0x144539[_0x33bd5c];return _0x35a9b2;},_0x33bd(_0x5ed170,_0x4548c3);}function _0x1445(){const _0x20af12=['FRange','36Ngmztz','tryStartPresenting','UniverSheets','1956890nuhmmF','2697189iDZPXy','function','_commandService','getUnitId','@univerjs/sheets','executeCommand','UniverEngineRender','125849iTzbtf','getId','_injector','PRESENTING','getStatus','9IVreGf','84AXWDEd','SetScrollOperation','getRenderById','@univerjs-pro/live-share','getActiveWorkbook','427802UJCtGG','getSheetId','FUniver','stopPresenting','IDLE','startColumn','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2120048ypadla','get','startRow','LiveShareController','getLiveShareStatus','FEnum','startPresenting','UniverProLiveShare','@univerjs/core/facade','syncExecuteCommand','stopFollowing','LiveShareStatus','@univerjs/engine-render','getLiveShareCoordinatorSync','1592GltNIw','SetWorksheetActiveOperation','@univerjs/sheets/facade','getActiveSheet','startFollowing','12585bYDxIQ','object','UniverCoreFacade','extend','UniverSheetsUi','_initialize','876EaMATo','55447huwkfr'];_0x1445=function(){return _0x20af12;};return _0x1445();}
1
+ function _0x5bd4(_0x8f3fb6,_0x2b7278){const _0x42339f=_0x4233();return _0x5bd4=function(_0x5bd400,_0x41b6df){_0x5bd400=_0x5bd400-0x152;let _0x665f15=_0x42339f[_0x5bd400];return _0x665f15;},_0x5bd4(_0x8f3fb6,_0x2b7278);}(function(_0x80ccfb,_0x475099){const _0x123def=_0x5bd4,_0x29ef90=_0x80ccfb();while(!![]){try{const _0x40c6ae=parseInt(_0x123def(0x184))/0x1+parseInt(_0x123def(0x152))/0x2+parseInt(_0x123def(0x15d))/0x3+parseInt(_0x123def(0x153))/0x4*(-parseInt(_0x123def(0x15f))/0x5)+-parseInt(_0x123def(0x160))/0x6+parseInt(_0x123def(0x17a))/0x7*(-parseInt(_0x123def(0x17b))/0x8)+parseInt(_0x123def(0x176))/0x9*(parseInt(_0x123def(0x15b))/0xa);if(_0x40c6ae===_0x475099)break;else _0x29ef90['push'](_0x29ef90['shift']());}catch(_0x3729e7){_0x29ef90['push'](_0x29ef90['shift']());}}}(_0x4233,0x63bd8),function(_0x250597,_0x2135fd){const _0xfe5d59=_0x5bd4;typeof exports==_0xfe5d59(0x181)&&typeof module<'u'?_0x2135fd(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0xfe5d59(0x163)&&define[_0xfe5d59(0x178)]?define([_0xfe5d59(0x187),_0xfe5d59(0x16a),_0xfe5d59(0x16d),_0xfe5d59(0x162),_0xfe5d59(0x155),'@univerjs/core/facade'],_0x2135fd):(_0x250597=typeof globalThis<'u'?globalThis:_0x250597||self,_0x2135fd(_0x250597[_0xfe5d59(0x154)],_0x250597[_0xfe5d59(0x16b)],_0x250597[_0xfe5d59(0x15a)],_0x250597[_0xfe5d59(0x17f)],_0x250597['UniverSheetsFacade'],_0x250597[_0xfe5d59(0x156)]));}(this,function(_0x51ac76,_0x584402,_0x1a690e,_0x27be28,_0x26722c,_0x5aeb89){'use strict';const _0x3c7db0=_0x5bd4;class _0x522181 extends _0x26722c[_0x3c7db0(0x166)]{[_0x3c7db0(0x15e)](_0x18fdb4,_0xf81f5f,_0x58a0b3,_0x58075c,_0x8679ff){const _0x654911=_0x3c7db0,_0x38f148=_0x18fdb4['get'](_0x51ac76[_0x654911(0x186)]),_0x50a74c=_0x18fdb4['get'](_0x584402[_0x654911(0x164)]),_0x259422=_0xf81f5f[_0x654911(0x179)](),_0x410c51=_0xf81f5f[_0x654911(0x16e)](),_0x2314cb=_0x38f148['getLiveShareCoordinatorSync'](_0x259422);(_0x2314cb==null?void 0x0:_0x2314cb['getStatus']())!==_0x51ac76['LiveShareStatus']['PRESENTING']||(_0x58a0b3[_0x654911(0x159)]()!==_0x410c51[_0x654911(0x159)]()&&this[_0x654911(0x16c)][_0x654911(0x157)](_0x1a690e['SetWorksheetActiveOperation']['id'],{'unitId':_0x259422,'subUnitId':_0x58a0b3['getSheetId']()}),!_0x50a74c[_0x654911(0x16f)](_0x259422))||_0x8679ff[_0x654911(0x169)](_0x27be28[_0x654911(0x17e)]['id'],{'unitId':_0xf81f5f['getUnitId'](),'sheetId':_0x58a0b3['getSheetId'](),'sheetViewStartRow':_0x58075c[_0x654911(0x161)],'sheetViewStartColumn':_0x58075c[_0x654911(0x182)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x26722c['FRange'][_0x3c7db0(0x183)](_0x522181);class _0x432c23 extends _0x5aeb89[_0x3c7db0(0x172)]{[_0x3c7db0(0x158)](){const _0x349186=_0x3c7db0;var _0x13b618,_0x3b4b9b;const _0x4dec9b=this[_0x349186(0x17d)][_0x349186(0x17c)](_0x51ac76[_0x349186(0x186)]),_0x119e20=(_0x13b618=this[_0x349186(0x165)]())==null?void 0x0:_0x13b618['getId']();if(!_0x119e20)throw new Error(_0x349186(0x180));const _0x1b6cc4=_0x4dec9b[_0x349186(0x171)](_0x119e20);return(_0x3b4b9b=_0x1b6cc4==null?void 0x0:_0x1b6cc4['getStatus']())!=null?_0x3b4b9b:_0x51ac76[_0x349186(0x185)]['IDLE'];}[_0x3c7db0(0x170)](){const _0x466a93=_0x3c7db0;var _0x26f0d0;const _0x7554b1=this[_0x466a93(0x17d)][_0x466a93(0x17c)](_0x51ac76[_0x466a93(0x186)]),_0x42c9ec=(_0x26f0d0=this[_0x466a93(0x165)]())==null?void 0x0:_0x26f0d0[_0x466a93(0x177)]();if(!_0x42c9ec)throw new Error(_0x466a93(0x180));const _0x27ee7c=_0x7554b1[_0x466a93(0x171)](_0x42c9ec);if(!_0x27ee7c)throw new Error(_0x466a93(0x15c));_0x27ee7c[_0x466a93(0x170)]();}[_0x3c7db0(0x168)](){const _0x39ad51=_0x3c7db0;var _0x481e91;const _0x2c0c95=this['_injector'][_0x39ad51(0x17c)](_0x51ac76[_0x39ad51(0x186)]),_0x164fa3=(_0x481e91=this[_0x39ad51(0x165)]())==null?void 0x0:_0x481e91['getId']();if(!_0x164fa3)throw new Error(_0x39ad51(0x180));const _0xd80cc0=_0x2c0c95[_0x39ad51(0x171)](_0x164fa3);if(!_0xd80cc0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xd80cc0[_0x39ad51(0x168)]();}[_0x3c7db0(0x167)](){const _0x439ba0=_0x3c7db0;var _0x42d0ea;const _0x1cf636=this[_0x439ba0(0x17d)][_0x439ba0(0x17c)](_0x51ac76['LiveShareController']),_0x183491=(_0x42d0ea=this[_0x439ba0(0x165)]())==null?void 0x0:_0x42d0ea['getId']();if(!_0x183491)throw new Error(_0x439ba0(0x180));const _0x17e97b=_0x1cf636[_0x439ba0(0x171)](_0x183491);if(!_0x17e97b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x17e97b['tryStartPresenting']();}[_0x3c7db0(0x174)](){const _0x590040=_0x3c7db0;var _0x5ae9be;const _0x524e6f=this[_0x590040(0x17d)][_0x590040(0x17c)](_0x51ac76['LiveShareController']),_0x2e829c=(_0x5ae9be=this[_0x590040(0x165)]())==null?void 0x0:_0x5ae9be[_0x590040(0x177)]();if(!_0x2e829c)throw new Error(_0x590040(0x180));const _0x405207=_0x524e6f['getLiveShareCoordinatorSync'](_0x2e829c);if(!_0x405207)throw new Error(_0x590040(0x15c));_0x405207[_0x590040(0x174)]();}}_0x5aeb89[_0x3c7db0(0x172)][_0x3c7db0(0x183)](_0x432c23);class _0xae07a6 extends _0x5aeb89[_0x3c7db0(0x175)]{get[_0x3c7db0(0x173)](){return _0x51ac76['LiveShareStatus'];}}_0x5aeb89[_0x3c7db0(0x175)][_0x3c7db0(0x183)](_0xae07a6);}));function _0x4233(){const _0x2e9980=['_commandService','@univerjs/sheets','getActiveSheet','getRenderById','startFollowing','getLiveShareCoordinatorSync','FUniver','LiveShareStatusEnum','stopPresenting','FEnum','302805GHJRMs','getId','amd','getUnitId','3539767eopjLc','8wOuOpj','get','_injector','SetScrollOperation','UniverSheetsUi','No\x20active\x20workbook\x20found.','object','startColumn','extend','41937MHEksY','LiveShareStatus','LiveShareController','@univerjs-pro/live-share','1317124svGLry','4KDWjht','UniverProLiveShare','@univerjs/sheets/facade','UniverCoreFacade','executeCommand','getLiveShareStatus','getSheetId','UniverSheets','200OMDxyK','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1932531eoHOAM','_initialize','3839065hKAUgh','2013276mUvzeK','startRow','@univerjs/sheets-ui','function','IRenderManagerService','getActiveWorkbook','FRange','startPresenting','stopFollowing','syncExecuteCommand','@univerjs/engine-render','UniverEngineRender'];_0x4233=function(){return _0x2e9980;};return _0x4233();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x6d23c,_0x20c708){const _0x4c5184=_0x4047,_0x4d8781=_0x6d23c();while(!![]){try{const _0x48069e=-parseInt(_0x4c5184(0x172))/0x1*(parseInt(_0x4c5184(0x154))/0x2)+-parseInt(_0x4c5184(0xd6))/0x3+-parseInt(_0x4c5184(0x122))/0x4+-parseInt(_0x4c5184(0x12a))/0x5*(-parseInt(_0x4c5184(0x96))/0x6)+parseInt(_0x4c5184(0x128))/0x7+parseInt(_0x4c5184(0xda))/0x8+parseInt(_0x4c5184(0x132))/0x9;if(_0x48069e===_0x20c708)break;else _0x4d8781['push'](_0x4d8781['shift']());}catch(_0x4532fd){_0x4d8781['push'](_0x4d8781['shift']());}}}(_0x104b,0x71d78),function(_0x4b2a28,_0x117f7a){const _0x383e11=_0x4047;typeof exports=='object'&&typeof module<'u'?_0x117f7a(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x383e11(0x124)]?define([_0x383e11(0xe1),'@univerjs/core',_0x383e11(0x152),_0x383e11(0xf0),'@univerjs/design',_0x383e11(0xd4),_0x383e11(0xfb),_0x383e11(0x142),_0x383e11(0xa3),'rxjs',_0x383e11(0xde),'@univerjs/sheets-ui'],_0x117f7a):(_0x4b2a28=typeof globalThis<'u'?globalThis:_0x4b2a28||self,_0x117f7a(_0x4b2a28[_0x383e11(0xbe)]={},_0x4b2a28[_0x383e11(0xf9)],_0x4b2a28[_0x383e11(0x178)],_0x4b2a28['React'],_0x4b2a28[_0x383e11(0x175)],_0x4b2a28[_0x383e11(0xa4)],_0x4b2a28[_0x383e11(0x14b)],_0x4b2a28[_0x383e11(0xe5)],_0x4b2a28[_0x383e11(0xa8)],_0x4b2a28['rxjs'],_0x4b2a28[_0x383e11(0xcf)][_0x383e11(0xa7)],_0x4b2a28[_0x383e11(0xe4)]));}(this,function(_0x3abbfa,_0x4359e1,_0x2d5985,_0x2c4380,_0xdf5c6c,_0x21bcc6,_0x27ab74,_0x2431fe,_0x459134,_0x47e1d1,_0x3ab019,_0x16f6d9){'use strict';const _0x3466ad=_0x4047;var _0x15cbaa=Object['defineProperty'],_0x2a4487=(_0x5c8a5a,_0x33f3e3,_0x3489c8)=>_0x33f3e3 in _0x5c8a5a?_0x15cbaa(_0x5c8a5a,_0x33f3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3489c8}):_0x5c8a5a[_0x33f3e3]=_0x3489c8,_0x1f450f=(_0x3cfc60,_0x37791a,_0x57ebe7)=>_0x2a4487(_0x3cfc60,typeof _0x37791a!=_0x3466ad(0x167)?_0x37791a+'':_0x37791a,_0x57ebe7);function _0x2b598e({ref:_0x3b9b48,..._0x1d0ee1}){const _0x3b29fe=_0x3466ad,{icon:_0x11684,id:_0x52226b,className:_0x6faa96,extend:_0x468b33,..._0x41122b}=_0x1d0ee1,_0x40ff5a=(_0x3b29fe(0xa9)+_0x52226b+'\x20'+(_0x6faa96||''))[_0x3b29fe(0x12f)](),_0x385a0d=_0x21bcc6['useRef']('_'+_0x105a90());return _0x56505d(_0x11684,''+_0x52226b,{'defIds':_0x11684[_0x3b29fe(0xca)],'idSuffix':_0x385a0d[_0x3b29fe(0x149)]},{'ref':_0x3b9b48,'className':_0x40ff5a,..._0x41122b},_0x468b33);}function _0x56505d(_0x5a4bc0,_0x36d879,_0x492e24,_0x23a7c8,_0x4ff428){const _0x436ec9=_0x3466ad;return _0x21bcc6[_0x436ec9(0x16f)](_0x5a4bc0[_0x436ec9(0x16d)],{'key':_0x36d879,..._0x4a9777(_0x5a4bc0,_0x492e24,_0x4ff428),..._0x23a7c8},(_0x46caa5(_0x5a4bc0,_0x492e24)[_0x436ec9(0x99)]||[])[_0x436ec9(0xb3)]((_0x34690c,_0x2d41f3)=>_0x56505d(_0x34690c,_0x36d879+'-'+_0x5a4bc0[_0x436ec9(0x16d)]+'-'+_0x2d41f3,_0x492e24,void 0x0,_0x4ff428)));}function _0x4a9777(_0xa6bb75,_0x3a3e71,_0x1b4a3d){const _0x337d48=_0x3466ad,_0x2b0276={..._0xa6bb75[_0x337d48(0x125)]};_0x1b4a3d!=null&&_0x1b4a3d[_0x337d48(0x169)]&&_0x2b0276['fill']==='colorChannel1'&&(_0x2b0276[_0x337d48(0x100)]=_0x1b4a3d[_0x337d48(0x169)]),_0xa6bb75['tag']===_0x337d48(0xba)&&_0x2b0276['id']&&(_0x2b0276['id']=_0x2b0276['id']+_0x3a3e71[_0x337d48(0x11c)]),Object[_0x337d48(0x162)](_0x2b0276)[_0x337d48(0xc2)](([_0x2aad71,_0x41dc47])=>{const _0xa74612=_0x337d48;_0x2aad71==='mask'&&typeof _0x41dc47==_0xa74612(0x155)&&(_0x2b0276[_0x2aad71]=_0x41dc47[_0xa74612(0xdf)](/url\(#(.*)\)/,_0xa74612(0xf5)+_0x3a3e71['idSuffix']+')'));});const {defIds:_0x65938b}=_0x3a3e71;return!_0x65938b||_0x65938b[_0x337d48(0x158)]===0x0||(_0xa6bb75[_0x337d48(0x16d)]===_0x337d48(0xeb)&&_0x2b0276['xlink:href']&&(_0x2b0276[_0x337d48(0x168)]=_0x2b0276['xlink:href']+_0x3a3e71['idSuffix']),Object[_0x337d48(0x162)](_0x2b0276)['forEach'](([_0x2dba42,_0x576ac8])=>{const _0x34452b=_0x337d48;typeof _0x576ac8==_0x34452b(0x155)&&(_0x2b0276[_0x2dba42]=_0x576ac8[_0x34452b(0xdf)](/url\(#(.*)\)/,_0x34452b(0xf5)+_0x3a3e71['idSuffix']+')'));})),_0x2b0276;}function _0x46caa5(_0x533bf6,_0x5ac013){const _0x4e004f=_0x3466ad;var _0x18668f;const {defIds:_0x42a515}=_0x5ac013;return!_0x42a515||_0x42a515[_0x4e004f(0x158)]===0x0?_0x533bf6:_0x533bf6[_0x4e004f(0x16d)]===_0x4e004f(0xec)&&((_0x18668f=_0x533bf6[_0x4e004f(0x99)])!=null&&_0x18668f['length'])?{..._0x533bf6,'children':_0x533bf6['children'][_0x4e004f(0xb3)](_0x1741da=>typeof _0x1741da[_0x4e004f(0x125)]['id']==_0x4e004f(0x155)&&_0x42a515&&_0x42a515[_0x4e004f(0x170)](_0x1741da[_0x4e004f(0x125)]['id'])?{..._0x1741da,'attrs':{..._0x1741da[_0x4e004f(0x125)],'id':_0x1741da['attrs']['id']+_0x5ac013[_0x4e004f(0x11c)]}}:_0x1741da)}:_0x533bf6;}function _0x105a90(){const _0x4c7eaf=_0x3466ad;return Math[_0x4c7eaf(0x116)]()[_0x4c7eaf(0x146)](0x24)['substring'](0x2,0x8);}_0x2b598e[_0x3466ad(0xe6)]=_0x3466ad(0xaf);const _0x287fb8={'tag':_0x3466ad(0x108),'attrs':{'xmlns':_0x3466ad(0xb4),'fill':'none','viewBox':_0x3466ad(0x160),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3466ad(0x157),'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':_0x3466ad(0x17b),'attrs':{'fill':'currentColor','d':_0x3466ad(0xee),'fillRule':_0x3466ad(0x105),'clipRule':_0x3466ad(0x105)}}]},_0x19234d=_0x21bcc6[_0x3466ad(0x12c)](function(_0x2a6ac5,_0x1a51a0){const _0x42aa2f=_0x3466ad;return _0x21bcc6[_0x42aa2f(0x16f)](_0x2b598e,Object[_0x42aa2f(0x14e)]({},_0x2a6ac5,{'id':_0x42aa2f(0xb0),'ref':_0x1a51a0,'icon':_0x287fb8}));});_0x19234d[_0x3466ad(0xe6)]=_0x3466ad(0x153);class _0xb3b5ac extends _0x4359e1[_0x3466ad(0x10f)]{constructor(){const _0x78cf07=_0x3466ad;super(...arguments),_0x1f450f(this,'_sharedOperations',new Set()),_0x1f450f(this,_0x78cf07(0x15a),new Set());}[_0x3466ad(0xaa)](_0x3cbcb2){const _0x24e95d=_0x3466ad;return this[_0x24e95d(0x101)]['add'](_0x3cbcb2),_0x4359e1['toDisposable'](()=>this[_0x24e95d(0x101)]['delete'](_0x3cbcb2));}[_0x3466ad(0xdc)](_0x2c39d0){const _0x1fc445=_0x3466ad;return this[_0x1fc445(0x15a)][_0x1fc445(0x13b)](_0x2c39d0),_0x4359e1['toDisposable'](()=>this[_0x1fc445(0x15a)][_0x1fc445(0x120)](_0x2c39d0));}[_0x3466ad(0x164)](_0xb176f1){const _0x58f163=_0x3466ad;return this[_0x58f163(0x101)][_0x58f163(0xd5)](_0xb176f1);}['getInitialStates'](_0x575b0b){const _0x3b6f41=_0x3466ad;return Array[_0x3b6f41(0x114)](this['_reporters'])['map'](_0xdea91e=>_0xdea91e(_0x575b0b));}}var _0x2becc1=Object['getOwnPropertyDescriptor'],_0x3fd12f=(_0x167f46,_0x44c4b6,_0x3c3228,_0x5903ed)=>{const _0x293de3=_0x3466ad;for(var _0x6762bd=_0x5903ed>0x1?void 0x0:_0x5903ed?_0x2becc1(_0x44c4b6,_0x3c3228):_0x44c4b6,_0x23997c=_0x167f46[_0x293de3(0x158)]-0x1,_0x3d0318;_0x23997c>=0x0;_0x23997c--)(_0x3d0318=_0x167f46[_0x23997c])&&(_0x6762bd=_0x3d0318(_0x6762bd)||_0x6762bd);return _0x6762bd;},_0x5d4fb8=(_0xab9004,_0x180a9e)=>(_0x237951,_0x11f747)=>_0x180a9e(_0x237951,_0x11f747,_0xab9004);_0x3abbfa[_0x3466ad(0x102)]=class extends _0x4359e1['RxDisposable']{constructor(_0x51692d,_0x2d7c6e,_0x653823){const _0x353322=_0x3466ad;super(),_0x1f450f(this,'_entities',new Map()),(this[_0x353322(0x138)]=_0x51692d,this[_0x353322(0xf8)]=_0x2d7c6e,this[_0x353322(0xac)]=_0x653823,this[_0x353322(0xd1)]());}async['getLiveShareCoordinator'](_0xa72a00){const _0x39dfa9=_0x3466ad;return this[_0x39dfa9(0x176)]['has'](_0xa72a00)||await this[_0x39dfa9(0x174)](_0xa72a00),this[_0x39dfa9(0x176)][_0x39dfa9(0x12e)](_0xa72a00);}[_0x3466ad(0xf2)](_0x383497){const _0x3c02ea=_0x3466ad;var _0x3213b9;return(_0x3213b9=this['_entities'][_0x3c02ea(0x12e)](_0x383497))!=null?_0x3213b9:null;}[_0x3466ad(0xd1)](){const _0x112ffa=_0x3466ad;this[_0x112ffa(0x138)][_0x112ffa(0xe2)](_0x4359e1[_0x112ffa(0xf7)][_0x112ffa(0xce)])[_0x112ffa(0xbf)](_0x3ab019[_0x112ffa(0xe3)](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](async _0x548362=>{const _0x48ffd1=_0x112ffa,_0x5a758a=_0x548362[_0x48ffd1(0x17e)]();this[_0x48ffd1(0x176)][_0x48ffd1(0xd5)](_0x5a758a)||this[_0x48ffd1(0x174)](_0x5a758a);}),this['_univerInstanceService'][_0x112ffa(0x166)](_0x4359e1[_0x112ffa(0xf7)]['UNIVER_SHEET'])['pipe'](_0x3ab019['takeUntil'](this[_0x112ffa(0x10a)]))[_0x112ffa(0x109)](_0x2bd5ff=>{const _0x1eef09=_0x112ffa,_0x53712f=_0x2bd5ff['getUnitId'](),_0x3751f1=this[_0x1eef09(0x176)][_0x1eef09(0x12e)](_0x53712f);_0x3751f1==null||_0x3751f1[_0x1eef09(0x10e)]();});}async[_0x3466ad(0x174)](_0x5821a4){const _0x2d4b76=_0x3466ad,_0x44d371=await this[_0x2d4b76(0xac)]['requireSession'](_0x5821a4),_0x332102=this[_0x2d4b76(0xf8)]['createInstance'](_0x3abbfa[_0x2d4b76(0x148)],_0x5821a4,_0x44d371);return _0x332102['init'](),this[_0x2d4b76(0x176)][_0x2d4b76(0xea)](_0x5821a4,_0x332102),_0x332102;}},_0x3abbfa['LiveShareController']=_0x3fd12f([_0x5d4fb8(0x0,_0x4359e1[_0x3466ad(0xff)]),_0x5d4fb8(0x1,_0x4359e1['Inject'](_0x4359e1[_0x3466ad(0xcd)])),_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0x135)](_0x2431fe[_0x3466ad(0xed)]))],_0x3abbfa[_0x3466ad(0x102)]);var _0x53cc48=(_0x253843=>(_0x253843[_0x3466ad(0x14a)]=_0x3466ad(0xd7),_0x253843['IDLE']=_0x3466ad(0x177),_0x253843[_0x3466ad(0x16b)]=_0x3466ad(0x17d),_0x253843[_0x3466ad(0x107)]=_0x3466ad(0xd3),_0x253843[_0x3466ad(0xc3)]=_0x3466ad(0x13d),_0x253843))(_0x53cc48||{});const _0x26e80c=_0x3466ad(0xae),_0x33d4c0=0xc8;_0x3abbfa['LiveShareCoordinator']=class extends _0x4359e1['RxDisposable']{constructor(_0x58d938,_0x58d4a9,_0x2b4e7f,_0x3e6e24,_0x2e8f99){const _0x4ab263=_0x3466ad;super(),_0x1f450f(this,_0x4ab263(0x16a),new _0x47e1d1[(_0x4ab263(0xb1))](_0x4ab263(0x177))),_0x1f450f(this,_0x4ab263(0xb2),this[_0x4ab263(0x16a)][_0x4ab263(0xd8)]()),_0x1f450f(this,_0x4ab263(0xd1),!0x1),_0x1f450f(this,_0x4ab263(0x11f),null),_0x1f450f(this,_0x4ab263(0x95),null),(this[_0x4ab263(0x13c)]=_0x58d938,this[_0x4ab263(0x129)]=_0x58d4a9,this[_0x4ab263(0xef)]=_0x2b4e7f,this['_liveShareService']=_0x3e6e24,this['_commandService']=_0x2e8f99);}get['_status'](){const _0x209d78=_0x3466ad;return this[_0x209d78(0x16a)][_0x209d78(0xc5)]();}[_0x3466ad(0x10e)](){const _0x4cc7aa=_0x3466ad;var _0x55414c;(_0x55414c=this['_commandDisposable'])==null||_0x55414c['dispose'](),this[_0x4cc7aa(0x16a)][_0x4cc7aa(0xbd)](_0x4cc7aa(0x177)),this['_status$'][_0x4cc7aa(0xa5)]();}[_0x3466ad(0x12d)](){const _0x549ee9=_0x3466ad;return this[_0x549ee9(0xd2)];}['init'](){const _0x2e6e6d=_0x3466ad;this[_0x2e6e6d(0xd1)]||(this[_0x2e6e6d(0xd1)]=!0x0,this['_collabSession'][_0x2e6e6d(0x119)][_0x2e6e6d(0xbf)](_0x3ab019[_0x2e6e6d(0xe3)](this['dispose$']))[_0x2e6e6d(0x109)](_0x225982=>{const _0x1f861d=_0x2e6e6d;switch(_0x225982){case _0x2431fe['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x2431fe[_0x1f861d(0xb6)][_0x1f861d(0x139)]:this[_0x1f861d(0xe8)]();break;}}),this[_0x2e6e6d(0x129)][_0x2e6e6d(0x11d)][_0x2e6e6d(0xbf)](_0x3ab019['takeUntil'](this['dispose$']))['subscribe'](_0x190a9c=>{const _0x1aa6f5=_0x2e6e6d,{eventID:_0x5910ae}=_0x190a9c;switch(_0x5910ae){case _0x27ab74['CollaborationEvent'][_0x1aa6f5(0x9a)]:this['_handleNewHost'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0xcb)]:this['_handleOperation'](_0x190a9c);break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x9c)]:this[_0x1aa6f5(0x16e)]();break;case _0x27ab74[_0x1aa6f5(0x91)][_0x1aa6f5(0x163)]:this[_0x1aa6f5(0x144)](_0x190a9c);break;}}));}['tryStartPresenting'](){const _0x4193b4=_0x3466ad;this['_collabSession'][_0x4193b4(0xe7)]({'eventID':_0x27ab74[_0x4193b4(0x91)][_0x4193b4(0x156)],'data':{'unitID':this[_0x4193b4(0x13c)],'userID':this[_0x4193b4(0x129)][_0x4193b4(0x14c)]()}},this['_unitID']);}[_0x3466ad(0x171)](){const _0x9c9c58=_0x3466ad;this[_0x9c9c58(0xd2)]===_0x9c9c58(0x13d)&&(this['_status$'][_0x9c9c58(0xbd)](_0x9c9c58(0x177)),this[_0x9c9c58(0x129)][_0x9c9c58(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x9c9c58(0x9c)],'data':{'unitID':this[_0x9c9c58(0x13c)]}},this[_0x9c9c58(0x13c)]));}[_0x3466ad(0xbc)](){const _0x619cf=_0x3466ad;this[_0x619cf(0xd2)]===_0x619cf(0xd3)&&(this[_0x619cf(0x16a)][_0x619cf(0xbd)](_0x619cf(0x17d)),this[_0x619cf(0x147)]());}[_0x3466ad(0x113)](){const _0xf39d57=_0x3466ad;this[_0xf39d57(0xd2)]===_0xf39d57(0x17d)&&this[_0xf39d57(0x11b)]();}[_0x3466ad(0xa1)](_0x5392c7){const _0x9dc36c=_0x3466ad,{presenter:_0x57e1fc}=_0x5392c7[_0x9dc36c(0x165)],_0x491b6b=this[_0x9dc36c(0x129)][_0x9dc36c(0x14c)]();this[_0x9dc36c(0x95)]=_0x57e1fc,_0x57e1fc===_0x491b6b?(this[_0x9dc36c(0x11b)](),this['_startPresenting']()):this[_0x9dc36c(0xd2)]!==_0x9dc36c(0xd3)&&(this[_0x9dc36c(0x133)](),this[_0x9dc36c(0x147)]());}[_0x3466ad(0x179)](){const _0x582f5c=_0x3466ad,_0x3ee616={'eventID':_0x27ab74[_0x582f5c(0x91)][_0x582f5c(0x143)]};this['_collabSession'][_0x582f5c(0xe7)](_0x3ee616,this['_unitID']);}[_0x3466ad(0x16e)](){const _0xa645ca=_0x3466ad;this[_0xa645ca(0x95)]=null,this[_0xa645ca(0xd2)]!==_0xa645ca(0x13d)&&this['_beIdle']();}['_handleNewChangeSets'](_0x3a886){const _0x18b73d=_0x3466ad;if(this[_0x18b73d(0xd2)]===_0x18b73d(0x17d)&&this[_0x18b73d(0x95)]===_0x3a886[_0x18b73d(0x165)]['memberID']){const _0x2842b5=_0x27ab74[_0x18b73d(0xbb)](_0x3a886['data'])['mutations'][_0x18b73d(0x159)]()[_0x18b73d(0x121)](_0x4616b8=>_0x4616b8['id']===_0x459134[_0x18b73d(0x13a)]['id']);if(_0x2842b5){const _0x657b3e=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x151)],_0x1da8f6=_0x2842b5[_0x18b73d(0x112)][_0x18b73d(0x14f)]['id'];setTimeout(()=>{const _0x424d67=_0x18b73d;this[_0x424d67(0xdb)]['executeCommand'](_0x459134[_0x424d67(0x15d)]['id'],{'unitId':_0x657b3e,'subUnitId':_0x1da8f6},{'fromCollab':!0x0});});}}}[_0x3466ad(0x9b)](){const _0x54bada=_0x3466ad;this[_0x54bada(0x16a)]['next'](_0x54bada(0x13d));const _0x27cb9c=new Map(),_0x18fc98=this['_commandDisposable']=new _0x4359e1[(_0x54bada(0xc7))]();_0x18fc98[_0x54bada(0x13b)](_0x4359e1[_0x54bada(0x9d)](()=>{const _0xb3c572=_0x54bada;_0x27cb9c['forEach'](_0x14494e=>_0x14494e[_0xb3c572(0xa5)]()),_0x27cb9c[_0xb3c572(0x16c)]();})),_0x18fc98[_0x54bada(0x13b)](this[_0x54bada(0xdb)][_0x54bada(0xcc)](_0x256f43=>{const _0x26011d=_0x54bada;var _0x24321c;if(_0x256f43[_0x26011d(0xfa)]!==_0x4359e1['CommandType']['OPERATION']||!this['_liveShareService'][_0x26011d(0x164)](_0x256f43['id']))return;const {id:_0x4ba781}=_0x256f43;let _0x37ebaf;_0x27cb9c['has'](_0x4ba781)?_0x37ebaf=_0x27cb9c[_0x26011d(0x12e)](_0x4ba781):(_0x37ebaf=new _0x47e1d1['Subject'](),_0x27cb9c[_0x26011d(0xea)](_0x4ba781,_0x37ebaf),_0x37ebaf[_0x26011d(0xbf)](_0x3ab019[_0x26011d(0x137)]((_0x24321c=this['_configService']['getConfig'](_0x26e80c))!=null?_0x24321c:_0x33d4c0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26011d(0x109)](_0x25642b=>{const _0x4c9d81=_0x26011d;this['_collabSession'][_0x4c9d81(0xe7)]({'eventID':_0x27ab74['CollaborationEvent'][_0x4c9d81(0xcb)],'data':{'unitID':this[_0x4c9d81(0x13c)],'operations':{[_0x25642b['id']]:{'id':_0x25642b['id'],'params':JSON[_0x4c9d81(0x110)](_0x25642b[_0x4c9d81(0x112)])}}}},this[_0x4c9d81(0x13c)]);})),_0x37ebaf['next'](_0x256f43);})),this['_liveShareService'][_0x54bada(0xf1)](this[_0x54bada(0x13c)])['forEach'](_0x13cd38=>this[_0x54bada(0x129)][_0x54bada(0xe7)]({'eventID':_0x27ab74[_0x54bada(0x91)][_0x54bada(0xcb)],'data':{'unitID':this['_unitID'],'operations':{[_0x13cd38['id']]:{'id':_0x13cd38['id'],'params':JSON[_0x54bada(0x110)](_0x13cd38[_0x54bada(0x112)])}}}},this[_0x54bada(0x13c)]));}[_0x3466ad(0x133)](){const _0x21a377=_0x3466ad;var _0x55eb02;this[_0x21a377(0x16a)]['next']('idle'),(_0x55eb02=this[_0x21a377(0x11f)])==null||_0x55eb02[_0x21a377(0x10e)](),this[_0x21a377(0x11f)]=null;}[_0x3466ad(0x147)](){const _0x37bcd8=_0x3466ad;var _0x3d8748;(_0x3d8748=this[_0x37bcd8(0x11f)])==null||_0x3d8748['dispose'](),this['_status$'][_0x37bcd8(0xbd)]('following');}[_0x3466ad(0x9e)](){const _0x2d3376=_0x3466ad;var _0x3ee4bb;this[_0x2d3376(0x16a)][_0x2d3376(0xbd)](_0x2d3376(0x177)),(_0x3ee4bb=this['_commandDisposable'])==null||_0x3ee4bb[_0x2d3376(0x10e)](),this['_commandDisposable']=null;}[_0x3466ad(0x11b)](){const _0x28364b=_0x3466ad;var _0x2e52e2;this[_0x28364b(0x16a)]['next']('not-following'),(_0x2e52e2=this[_0x28364b(0x11f)])==null||_0x2e52e2[_0x28364b(0x10e)]();}['_handleOperation'](_0x3999e3){const _0x205dae=_0x3466ad;if([_0x205dae(0x13d),_0x205dae(0xd3),'offline']['includes'](this[_0x205dae(0xd2)])||!_0x3999e3[_0x205dae(0x165)][_0x205dae(0xa0)]||_0x3999e3['data'][_0x205dae(0xa0)]===this['_collabSession'][_0x205dae(0x14c)]())return;this[_0x205dae(0xd2)]===_0x205dae(0x177)&&this[_0x205dae(0x147)]();const _0x207f23=_0x3999e3['data'][_0x205dae(0x15f)];Object['values'](_0x207f23)['forEach'](_0x443ae9=>{const _0x3f6758=_0x205dae;this[_0x3f6758(0xdb)][_0x3f6758(0x17c)](_0x443ae9['id'],_0x443ae9['params']?JSON[_0x3f6758(0xc0)](_0x443ae9[_0x3f6758(0x112)]):null,{'fromCollab':!0x0});});}[_0x3466ad(0x123)](){const _0x12db3f=_0x3466ad;var _0x3e95d1;this[_0x12db3f(0x16a)][_0x12db3f(0xbd)]('offline'),(_0x3e95d1=this[_0x12db3f(0x11f)])==null||_0x3e95d1[_0x12db3f(0x10e)]();}[_0x3466ad(0xe8)](){const _0x574c51=_0x3466ad;this[_0x574c51(0x16a)][_0x574c51(0xbd)](_0x574c51(0x177)),this[_0x574c51(0x179)]();}},_0x3abbfa[_0x3466ad(0x148)]=_0x3fd12f([_0x5d4fb8(0x2,_0x4359e1[_0x3466ad(0xb5)]),_0x5d4fb8(0x3,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac)),_0x5d4fb8(0x4,_0x4359e1[_0x3466ad(0x115)])],_0x3abbfa[_0x3466ad(0x148)]);function _0x558aee(){const _0x2a0da8=_0x3466ad,_0x3c7c0b=_0x2d5985[_0x2a0da8(0xe0)](_0x3abbfa[_0x2a0da8(0x102)]),_0x272075=_0x2d5985[_0x2a0da8(0xe0)](_0x4359e1[_0x2a0da8(0xff)]),_0x5cc3e8=_0x2d5985[_0x2a0da8(0x13e)](()=>_0x272075[_0x2a0da8(0x161)](_0x4359e1[_0x2a0da8(0xf7)][_0x2a0da8(0xce)]),void 0x0,!0x1,[]),[_0x19a078,_0x467ddf]=_0x21bcc6[_0x2a0da8(0x13f)](null),[_0xfb608a,_0x2b077f]=_0x21bcc6[_0x2a0da8(0x13f)](_0x53cc48[_0x2a0da8(0x126)]),_0x3627f2=_0x21bcc6['useRef'](null);return _0x21bcc6[_0x2a0da8(0xab)](()=>(_0x5cc3e8&&_0x3c7c0b[_0x2a0da8(0x145)](_0x5cc3e8[_0x2a0da8(0x17e)]())[_0x2a0da8(0xf4)](_0xa9dd03=>{const _0x4d40b3=_0x2a0da8;_0x467ddf(_0xa9dd03),_0x3627f2[_0x4d40b3(0x149)]=_0xa9dd03['status$'][_0x4d40b3(0x109)](_0x5a6bd9=>{_0x2b077f(_0x5a6bd9);});}),()=>{const _0x3dcfad=_0x2a0da8;var _0x5182bf;(_0x5182bf=_0x3627f2[_0x3dcfad(0x149)])==null||_0x5182bf[_0x3dcfad(0x150)](),_0x3627f2[_0x3dcfad(0x149)]=null;}),[_0x5cc3e8,_0x3c7c0b]),_0x19a078?_0x2c4380[_0x2a0da8(0x10c)](_0xdf5c6c[_0x2a0da8(0xd9)],{'align':_0x2a0da8(0x131),'disabled':_0xfb608a===_0x53cc48['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2c4380[_0x2a0da8(0x10c)](_0x5699b4,{'status':_0xfb608a,'coordinator':_0x19a078}),'children':_0x2c4380['jsx'](_0x2a0da8(0x106),{'className':_0xdf5c6c[_0x2a0da8(0x130)](_0x2a0da8(0x104),{'univer-cursor-not-allowed':_0xfb608a===_0x53cc48[_0x2a0da8(0x14a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xfb608a!==_0x53cc48['OFFLINE']}),'type':_0x2a0da8(0x106),'children':_0x2c4380[_0x2a0da8(0x10c)](_0x19234d,{'className':_0x2a0da8(0xc6)})})}):null;}function _0x5699b4(_0x4dc57d){const _0x41ec4c=_0x3466ad,{status:_0x27e09c,coordinator:_0x42410d}=_0x4dc57d;switch(_0x27e09c){case _0x53cc48[_0x41ec4c(0x126)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x3ca318,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x16b)]:return _0x2c4380['jsx'](_0x43cead,{'coordinator':_0x42410d});case _0x53cc48['NOT_FOLLOWING']:return _0x2c4380[_0x41ec4c(0x10c)](_0x41e65b,{'coordinator':_0x42410d});case _0x53cc48[_0x41ec4c(0x14a)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x343752,{});case _0x53cc48[_0x41ec4c(0xc3)]:return _0x2c4380[_0x41ec4c(0x10c)](_0x1084b9,{'coordinator':_0x42410d});default:return null;}}function _0x3ca318(_0x1750e2){const _0x99822d=_0x3466ad,{coordinator:_0x3bba32}=_0x1750e2;return _0x2c4380[_0x99822d(0x17a)](_0x2c4380['Fragment'],{'children':[_0x2c4380['jsx'](_0x99822d(0x11a),{'className':_0x99822d(0xc4),'children':_0x99822d(0x134)}),_0x2c4380[_0x99822d(0x10c)](_0xdf5c6c[_0x99822d(0x10b)],{'onClick':()=>_0x3bba32[_0x99822d(0xb7)](),'children':_0x99822d(0xc9)})]});}function _0x43cead(_0xc3db){const _0x383d1d=_0x3466ad,{coordinator:_0x54818e}=_0xc3db;return _0x2c4380[_0x383d1d(0x17a)](_0x2c4380[_0x383d1d(0xf6)],{'children':[_0x2c4380[_0x383d1d(0x10c)](_0x383d1d(0x11a),{'className':_0x383d1d(0xc4),'children':_0x383d1d(0xfc)}),_0x2c4380[_0x383d1d(0x10c)](_0xdf5c6c[_0x383d1d(0x10b)],{'onClick':()=>_0x54818e[_0x383d1d(0x113)](),'children':_0x383d1d(0x97)})]});}function _0x41e65b(_0x3f9fad){const _0x39a6c6=_0x3466ad,{coordinator:_0x3696fe}=_0x3f9fad;return _0x2c4380['jsxs'](_0x2c4380[_0x39a6c6(0xf6)],{'children':[_0x2c4380['jsx'](_0x39a6c6(0x11a),{'className':_0x39a6c6(0xc4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2c4380[_0x39a6c6(0x10c)](_0xdf5c6c[_0x39a6c6(0x10b)],{'variant':_0x39a6c6(0xa6),'onClick':()=>_0x3696fe[_0x39a6c6(0xbc)](),'children':_0x39a6c6(0x15b)})]});}function _0x1084b9(_0x4cffb7){const _0x28dbf7=_0x3466ad,{coordinator:_0x4bfabb}=_0x4cffb7;return _0x2c4380['jsxs'](_0x2c4380[_0x28dbf7(0xf6)],{'children':[_0x2c4380['jsx'](_0x28dbf7(0x11a),{'className':_0x28dbf7(0xc4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2c4380[_0x28dbf7(0x10c)](_0xdf5c6c[_0x28dbf7(0x10b)],{'variant':_0x28dbf7(0x98),'onClick':()=>_0x4bfabb['stopPresenting'](),'children':_0x28dbf7(0x11e)})]});}function _0x343752(){const _0x2eddb2=_0x3466ad;return _0x2c4380['jsx'](_0x2c4380[_0x2eddb2(0xf6)],{'children':_0x2eddb2(0x136)});}var _0x1f7bed=Object[_0x3466ad(0x141)],_0x39011f=(_0x4bdb0a,_0x9bdf8a,_0x3a362e,_0x1bd7a2)=>{const _0x415b86=_0x3466ad;for(var _0x3b1910=_0x1bd7a2>0x1?void 0x0:_0x1bd7a2?_0x1f7bed(_0x9bdf8a,_0x3a362e):_0x9bdf8a,_0x3e5aca=_0x4bdb0a[_0x415b86(0x158)]-0x1,_0x16262c;_0x3e5aca>=0x0;_0x3e5aca--)(_0x16262c=_0x4bdb0a[_0x3e5aca])&&(_0x3b1910=_0x16262c(_0x3b1910)||_0x3b1910);return _0x3b1910;},_0x34abfb=(_0x56a0ab,_0x234e83)=>(_0x26592b,_0x47c770)=>_0x234e83(_0x26592b,_0x47c770,_0x56a0ab);_0x3abbfa[_0x3466ad(0x14d)]=class extends _0x4359e1['Disposable']{constructor(_0x9708e5,_0x52bb6d){const _0x43baad=_0x3466ad;super(),this[_0x43baad(0xf8)]=_0x9708e5,this['_uiPartsService']=_0x52bb6d,this[_0x43baad(0xb8)]();}['_mountLiveShare'](){const _0x1df841=_0x3466ad;this[_0x1df841(0xe9)](this[_0x1df841(0x111)][_0x1df841(0x118)](_0x2d5985[_0x1df841(0xdd)][_0x1df841(0xc8)],()=>_0x2d5985[_0x1df841(0x9f)](_0x558aee,this[_0x1df841(0xf8)])));}},_0x3abbfa[_0x3466ad(0x14d)]=_0x39011f([_0x34abfb(0x0,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x34abfb(0x1,_0x2d5985[_0x3466ad(0x10d)])],_0x3abbfa[_0x3466ad(0x14d)]);const _0x1ad01c=_0x3466ad(0x127),_0x4f60e0={};var _0x3701a6=Object[_0x3466ad(0x141)],_0xfb79d=(_0x3b2689,_0x4691be,_0x42e970,_0x487dff)=>{const _0x5269f7=_0x3466ad;for(var _0x18e7cb=_0x487dff>0x1?void 0x0:_0x487dff?_0x3701a6(_0x4691be,_0x42e970):_0x4691be,_0xc6213b=_0x3b2689[_0x5269f7(0x158)]-0x1,_0x38bc33;_0xc6213b>=0x0;_0xc6213b--)(_0x38bc33=_0x3b2689[_0xc6213b])&&(_0x18e7cb=_0x38bc33(_0x18e7cb)||_0x18e7cb);return _0x18e7cb;},_0x517ddf=(_0xd052a3,_0x4fe070)=>(_0x48a194,_0x3e875d)=>_0x4fe070(_0x48a194,_0x3e875d,_0xd052a3);let _0x5c9df4=class extends _0x4359e1[_0x3466ad(0x10f)]{constructor(_0x10f064){const _0x9217fe=_0x3466ad;super(),this['_liveShareService']=_0x10f064,this[_0x9217fe(0xd1)]();}[_0x3466ad(0xd1)](){const _0x4ab527=_0x3466ad;[_0x16f6d9[_0x4ab527(0xfd)]['id'],_0x16f6d9[_0x4ab527(0x180)]['id'],_0x459134['SetWorksheetActiveOperation']['id']][_0x4ab527(0xc2)](_0x1dc749=>{const _0x79e481=_0x4ab527;this['disposeWithMe'](this['_liveShareService'][_0x79e481(0xaa)](_0x1dc749));});}};_0x5c9df4=_0xfb79d([_0x517ddf(0x0,_0x4359e1[_0x3466ad(0x135)](_0xb3b5ac))],_0x5c9df4);var _0x300f61=Object[_0x3466ad(0x173)],_0x8dcd59=Object[_0x3466ad(0x141)],_0xa06838=(_0x138727,_0x3d4fcc,_0x4219d6)=>_0x3d4fcc in _0x138727?_0x300f61(_0x138727,_0x3d4fcc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4219d6}):_0x138727[_0x3d4fcc]=_0x4219d6,_0x10de32=(_0x4c6528,_0x3ffbf2,_0x5ee5f4,_0x348c35)=>{const _0x549e03=_0x3466ad;for(var _0x22da0b=_0x348c35>0x1?void 0x0:_0x348c35?_0x8dcd59(_0x3ffbf2,_0x5ee5f4):_0x3ffbf2,_0x185015=_0x4c6528[_0x549e03(0x158)]-0x1,_0x4f12ed;_0x185015>=0x0;_0x185015--)(_0x4f12ed=_0x4c6528[_0x185015])&&(_0x22da0b=_0x4f12ed(_0x22da0b)||_0x22da0b);return _0x22da0b;},_0x3c1e10=(_0x547305,_0x3c2201)=>(_0x1f7e25,_0x1adb01)=>_0x3c2201(_0x1f7e25,_0x1adb01,_0x547305),_0x21b930=(_0x2ebdb4,_0xc0f6f1,_0x269fc2)=>_0xa06838(_0x2ebdb4,typeof _0xc0f6f1!=_0x3466ad(0x167)?_0xc0f6f1+'':_0xc0f6f1,_0x269fc2);const _0x12221c='UNIVER_LIVE_SHARE_PLUGIN';_0x3abbfa[_0x3466ad(0x103)]=class extends _0x4359e1[_0x3466ad(0x140)]{constructor(_0x526337=_0x4f60e0,_0xa756c,_0x20870f){const _0x442cb5=_0x3466ad;super(),this[_0x442cb5(0xd0)]=_0x526337,this['_injector']=_0xa756c,this[_0x442cb5(0xef)]=_0x20870f;const {..._0x2cefbd}=_0x4359e1['merge']({},_0x4f60e0,this[_0x442cb5(0xd0)]);this['_configService'][_0x442cb5(0x117)](_0x1ad01c,_0x2cefbd);}[_0x3466ad(0xad)](){const _0x1d073f=_0x3466ad;_0x4359e1['registerDependencies'](this[_0x1d073f(0xf8)],_0x4359e1[_0x1d073f(0x93)]([[_0xb3b5ac],[_0x3abbfa[_0x1d073f(0x102)]],[_0x5c9df4],[_0x3abbfa[_0x1d073f(0x14d)]]],this['_config'][_0x1d073f(0xfe)])),_0x4359e1[_0x1d073f(0x12b)](this['_injector'],[[_0x5c9df4]]);}[_0x3466ad(0x94)](){const _0x274d96=_0x3466ad;_0x4359e1[_0x274d96(0x12b)](this[_0x274d96(0xf8)],[[_0x3abbfa[_0x274d96(0x14d)]]]);}},_0x21b930(_0x3abbfa['UniverLiveSharePlugin'],'type',_0x4359e1[_0x3466ad(0xf7)][_0x3466ad(0xa2)]),_0x21b930(_0x3abbfa[_0x3466ad(0x103)],_0x3466ad(0xb9),_0x12221c),_0x3abbfa[_0x3466ad(0x103)]=_0x10de32([_0x4359e1[_0x3466ad(0xf3)](_0x2431fe[_0x3466ad(0x15e)]),_0x3c1e10(0x1,_0x4359e1[_0x3466ad(0x135)](_0x4359e1[_0x3466ad(0xcd)])),_0x3c1e10(0x2,_0x4359e1[_0x3466ad(0xb5)])],_0x3abbfa[_0x3466ad(0x103)]),_0x3abbfa[_0x3466ad(0x92)]=_0x558aee,_0x3abbfa[_0x3466ad(0xc1)]=_0xb3b5ac,_0x3abbfa[_0x3466ad(0x15c)]=_0x53cc48,Object[_0x3466ad(0x173)](_0x3abbfa,Symbol['toStringTag'],{'value':_0x3466ad(0x17f)});}));function _0x4047(_0x534a2d,_0x15169f){const _0x104b55=_0x104b();return _0x4047=function(_0x40473b,_0x5a4e52){_0x40473b=_0x40473b-0x91;let _0x2079cc=_0x104b55[_0x40473b];return _0x2079cc;},_0x4047(_0x534a2d,_0x15169f);}function _0x104b(){const _0x52d86d=['override','IUniverInstanceService','fill','_sharedOperations','LiveShareController','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','button','NOT_FOLLOWING','svg','subscribe','dispose$','Button','jsx','IUIPartsService','dispose','Disposable','stringify','_uiPartsService','params','stopFollowing','from','ICommandService','random','setConfig','registerComponent','sessionStatus$','div','_stopFollowing','idSuffix','event$','Stop\x20presenting','_commandDisposable','delete','find','2384108NPhjzq','_handleOffline','amd','attrs','IDLE','live-share.config','1034201PWCWXE','_collabSession','5nrImzV','touchDependencies','forwardRef','getStatus','get','trim','clsx','end','7429203QgqgLt','_stopPresenting','Present\x20this\x20document','Inject','You\x27are\x20offline.','throttleTime','_univerInstanceService','ONLINE','InsertSheetMutation','add','_unitID','presenting','useObservable','useState','Plugin','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client','LIVESHARE_FETCH_OPERATIONS','_handleNewChangeSets','getLiveShareCoordinator','toString','_startFollowing','LiveShareCoordinator','current','OFFLINE','UniverProCollaboration','getMemberID','DesktopLiveShareController','assign','sheet','unsubscribe','unitId','@univerjs/ui','LiveShareIcon','716076ZeiBBs','string','LIVESHARE_REQUEST_HOST','currentColor','length','reverse','_reporters','Start\x20following','LiveShareStatus','SetWorksheetActiveOperation','UniverCollaborationClientPlugin','operations','0\x200\x2017\x2017','getCurrentTypeOfUnit$','entries','NEW_CHANGESETS','shouldShareOperation','data','getTypeOfUnitDisposed$','symbol','xlink:href','colorChannel1','_status$','FOLLOWING','clear','tag','_handleTerminate','createElement','includes','stopPresenting','1RMdYWR','defineProperty','_startLiveShareCoordinator','UniverDesign','_entities','idle','UniverUi','_fetchOperations','jsxs','path','executeCommand','following','getUnitId','Module','SetScrollOperation','CollaborationEvent','LiveShare','mergeOverrideWithDependencies','onRendered','_presenter','4059852TimTyx','Stop\x20following','default','children','LIVESHARE_NEW_HOST','_startPresenting','LIVESHARE_TERMINATE','toDisposable','_beIdle','connectInjector','presenter','_handleNewHost','UNIVER_UNKNOWN','@univerjs/sheets','React','complete','text','operators','UniverSheets','univerjs-icon\x20univerjs-icon-','registerSharedOperation','useEffect','_collabSessionService','onStarting','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','live-share-icon','BehaviorSubject','status$','map','http://www.w3.org/2000/svg','IConfigService','SessionStatus','tryStartPresenting','_mountLiveShare','pluginName','mask','parseProtocolChangeset','startFollowing','next','UniverProLiveShare','pipe','parse','LiveShareService','forEach','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','univer-size-4','DisposableCollection','HEADER_MENU','Start','defIds','LIVESHARE_OPERATION','onCommandExecuted','Injector','UNIVER_SHEET','rxjs','_config','_init','_status','not-following','react','has','2016060DMvMJv','offline','asObservable','Dropdown','3540232OUwfZZ','_commandService','registerInitialStateReporter','BuiltInUIPart','rxjs/operators','replace','useDependency','exports','getTypeOfUnitAdded$','takeUntil','UniverSheetsUi','UniverProCollaborationClient','displayName','send','_handleOnline','disposeWithMe','set','use','defs','CollaborationSessionService','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','_configService','react/jsx-runtime','getInitialStates','getLiveShareCoordinatorSync','DependentOn','then','url(#$1','Fragment','UniverInstanceType','_injector','UniverCore','type','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','SetZoomRatioOperation'];_0x104b=function(){return _0x52d86d;};return _0x104b();}
1
+ (function(_0xb962bd,_0x2bd50){const _0x267d88=_0x4583,_0x374add=_0xb962bd();while(!![]){try{const _0x33a28c=parseInt(_0x267d88(0x23f))/0x1+parseInt(_0x267d88(0x296))/0x2*(parseInt(_0x267d88(0x268))/0x3)+-parseInt(_0x267d88(0x2c6))/0x4*(-parseInt(_0x267d88(0x24e))/0x5)+-parseInt(_0x267d88(0x2d2))/0x6+parseInt(_0x267d88(0x2c5))/0x7+-parseInt(_0x267d88(0x1f5))/0x8*(parseInt(_0x267d88(0x1fa))/0x9)+-parseInt(_0x267d88(0x2ad))/0xa;if(_0x33a28c===_0x2bd50)break;else _0x374add['push'](_0x374add['shift']());}catch(_0x29fbfd){_0x374add['push'](_0x374add['shift']());}}}(_0x5426,0xa79a9),function(_0x3dd0fb,_0x5391d3){const _0x419c02=_0x4583;typeof exports=='object'&&typeof module<'u'?_0x5391d3(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x419c02(0x22c)]?define([_0x419c02(0x237),_0x419c02(0x257),_0x419c02(0x2c7),_0x419c02(0x2c3),_0x419c02(0x29d),_0x419c02(0x232),_0x419c02(0x23b),_0x419c02(0x210),_0x419c02(0x1ff),'rxjs',_0x419c02(0x2cb),'@univerjs/sheets-ui'],_0x5391d3):(_0x3dd0fb=typeof globalThis<'u'?globalThis:_0x3dd0fb||self,_0x5391d3(_0x3dd0fb[_0x419c02(0x267)]={},_0x3dd0fb['UniverCore'],_0x3dd0fb[_0x419c02(0x2ba)],_0x3dd0fb[_0x419c02(0x27d)],_0x3dd0fb[_0x419c02(0x266)],_0x3dd0fb[_0x419c02(0x27d)],_0x3dd0fb[_0x419c02(0x20a)],_0x3dd0fb['UniverProCollaborationClient'],_0x3dd0fb[_0x419c02(0x22d)],_0x3dd0fb['rxjs'],_0x3dd0fb[_0x419c02(0x1fe)][_0x419c02(0x27f)],_0x3dd0fb[_0x419c02(0x23d)]));}(this,function(_0xb8f135,_0x160934,_0x1db1d5,_0x16f4e3,_0x53eb07,_0x51b41c,_0x23295e,_0x17209d,_0x6fcf9a,_0x11d600,_0x5d062d,_0x2529b4){'use strict';const _0x167efe=_0x4583;var _0x38eb10=Object[_0x167efe(0x2a8)],_0xbee59=(_0x25ffc9,_0x49153a,_0x216c88)=>_0x49153a in _0x25ffc9?_0x38eb10(_0x25ffc9,_0x49153a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x216c88}):_0x25ffc9[_0x49153a]=_0x216c88,_0x36bceb=(_0x4499f5,_0x54616a,_0x3c51a5)=>_0xbee59(_0x4499f5,typeof _0x54616a!=_0x167efe(0x263)?_0x54616a+'':_0x54616a,_0x3c51a5);function _0x5bc8ca({ref:_0x54fe36,..._0xde7c0c}){const _0x30443d=_0x167efe,{icon:_0x2cb312,id:_0x52451e,className:_0x3f5079,extend:_0x542210,..._0x123b8d}=_0xde7c0c,_0x58cde5=(_0x30443d(0x279)+_0x52451e+'\x20'+(_0x3f5079||''))[_0x30443d(0x208)](),_0x3dbf07=_0x51b41c[_0x30443d(0x1f7)]('_'+_0xc6ff26());return _0x9058a(_0x2cb312,''+_0x52451e,{'defIds':_0x2cb312[_0x30443d(0x22a)],'idSuffix':_0x3dbf07[_0x30443d(0x218)]},{'ref':_0x54fe36,'className':_0x58cde5,..._0x123b8d},_0x542210);}function _0x9058a(_0x3f51b0,_0x2b1dd7,_0x2aab57,_0x12d2b3,_0x9fbb3e){const _0x5c98c6=_0x167efe;return _0x51b41c[_0x5c98c6(0x2b0)](_0x3f51b0[_0x5c98c6(0x26a)],{'key':_0x2b1dd7,..._0x3e99ff(_0x3f51b0,_0x2aab57,_0x9fbb3e),..._0x12d2b3},(_0x575433(_0x3f51b0,_0x2aab57)[_0x5c98c6(0x247)]||[])[_0x5c98c6(0x2b1)]((_0x3dc36e,_0x5dc31f)=>_0x9058a(_0x3dc36e,_0x2b1dd7+'-'+_0x3f51b0[_0x5c98c6(0x26a)]+'-'+_0x5dc31f,_0x2aab57,void 0x0,_0x9fbb3e)));}function _0x3e99ff(_0x174b89,_0x2a1909,_0x15029f){const _0x3410d3=_0x167efe,_0x1a50c6={..._0x174b89['attrs']};_0x15029f!=null&&_0x15029f[_0x3410d3(0x292)]&&_0x1a50c6[_0x3410d3(0x2a4)]===_0x3410d3(0x292)&&(_0x1a50c6[_0x3410d3(0x2a4)]=_0x15029f[_0x3410d3(0x292)]),_0x174b89[_0x3410d3(0x26a)]===_0x3410d3(0x25b)&&_0x1a50c6['id']&&(_0x1a50c6['id']=_0x1a50c6['id']+_0x2a1909[_0x3410d3(0x229)]),Object['entries'](_0x1a50c6)[_0x3410d3(0x228)](([_0x479c72,_0xc74336])=>{const _0x30a152=_0x3410d3;_0x479c72===_0x30a152(0x25b)&&typeof _0xc74336=='string'&&(_0x1a50c6[_0x479c72]=_0xc74336[_0x30a152(0x24a)](/url\(#(.*)\)/,_0x30a152(0x278)+_0x2a1909['idSuffix']+')'));});const {defIds:_0x5bf202}=_0x2a1909;return!_0x5bf202||_0x5bf202['length']===0x0||(_0x174b89[_0x3410d3(0x26a)]===_0x3410d3(0x220)&&_0x1a50c6[_0x3410d3(0x222)]&&(_0x1a50c6[_0x3410d3(0x222)]=_0x1a50c6['xlink:href']+_0x2a1909[_0x3410d3(0x229)]),Object['entries'](_0x1a50c6)['forEach'](([_0x41afde,_0x43f0bf])=>{const _0x587e26=_0x3410d3;typeof _0x43f0bf==_0x587e26(0x2a9)&&(_0x1a50c6[_0x41afde]=_0x43f0bf[_0x587e26(0x24a)](/url\(#(.*)\)/,_0x587e26(0x278)+_0x2a1909[_0x587e26(0x229)]+')'));})),_0x1a50c6;}function _0x575433(_0x3efdd4,_0x271ab6){const _0x2f9f52=_0x167efe;var _0x37ab15;const {defIds:_0x40b30c}=_0x271ab6;return!_0x40b30c||_0x40b30c['length']===0x0?_0x3efdd4:_0x3efdd4[_0x2f9f52(0x26a)]===_0x2f9f52(0x2c4)&&((_0x37ab15=_0x3efdd4[_0x2f9f52(0x247)])!=null&&_0x37ab15[_0x2f9f52(0x260)])?{..._0x3efdd4,'children':_0x3efdd4['children'][_0x2f9f52(0x2b1)](_0x233b6a=>typeof _0x233b6a[_0x2f9f52(0x216)]['id']==_0x2f9f52(0x2a9)&&_0x40b30c&&_0x40b30c[_0x2f9f52(0x27a)](_0x233b6a['attrs']['id'])?{..._0x233b6a,'attrs':{..._0x233b6a['attrs'],'id':_0x233b6a[_0x2f9f52(0x216)]['id']+_0x271ab6[_0x2f9f52(0x229)]}}:_0x233b6a)}:_0x3efdd4;}function _0xc6ff26(){const _0x1405ca=_0x167efe;return Math[_0x1405ca(0x285)]()['toString'](0x24)[_0x1405ca(0x25c)](0x2,0x8);}_0x5bc8ca[_0x167efe(0x250)]='UniverIcon';const _0x4627e1={'tag':_0x167efe(0x274),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x167efe(0x2cc),'height':_0x167efe(0x2cc)},'children':[{'tag':_0x167efe(0x259),'attrs':{'fill':'currentColor','d':_0x167efe(0x2c1)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x167efe(0x217),'fillRule':_0x167efe(0x20d),'clipRule':_0x167efe(0x20d)}}]},_0x5385f1=_0x51b41c[_0x167efe(0x25f)](function(_0x5b5364,_0x1b3b5e){const _0x31c419=_0x167efe;return _0x51b41c['createElement'](_0x5bc8ca,Object[_0x31c419(0x25e)]({},_0x5b5364,{'id':'live-share-icon','ref':_0x1b3b5e,'icon':_0x4627e1}));});_0x5385f1[_0x167efe(0x250)]='LiveShareIcon';class _0x5a3069 extends _0x160934[_0x167efe(0x2d1)]{constructor(){const _0x58fcb7=_0x167efe;super(...arguments),_0x36bceb(this,_0x58fcb7(0x224),new Set()),_0x36bceb(this,_0x58fcb7(0x29e),new Set());}[_0x167efe(0x24b)](_0x496656){const _0x865f5=_0x167efe;return this[_0x865f5(0x224)][_0x865f5(0x280)](_0x496656),_0x160934[_0x865f5(0x2b5)](()=>this[_0x865f5(0x224)]['delete'](_0x496656));}[_0x167efe(0x214)](_0x4f9f36){const _0x46662e=_0x167efe;return this[_0x46662e(0x29e)][_0x46662e(0x280)](_0x4f9f36),_0x160934[_0x46662e(0x2b5)](()=>this[_0x46662e(0x29e)][_0x46662e(0x240)](_0x4f9f36));}[_0x167efe(0x24f)](_0x18c5b5){const _0x2b14a6=_0x167efe;return this[_0x2b14a6(0x224)]['has'](_0x18c5b5);}[_0x167efe(0x239)](_0x4d2bc8){const _0x4ff14d=_0x167efe;return Array[_0x4ff14d(0x28e)](this[_0x4ff14d(0x29e)])['map'](_0x493796=>_0x493796(_0x4d2bc8));}}var _0x33d1c2=Object[_0x167efe(0x1f3)],_0x32b130=(_0x399381,_0x16d8b6,_0x1f2b91,_0x2639f8)=>{const _0x418e21=_0x167efe;for(var _0x11c5ff=_0x2639f8>0x1?void 0x0:_0x2639f8?_0x33d1c2(_0x16d8b6,_0x1f2b91):_0x16d8b6,_0x1ce22a=_0x399381[_0x418e21(0x260)]-0x1,_0xe595c6;_0x1ce22a>=0x0;_0x1ce22a--)(_0xe595c6=_0x399381[_0x1ce22a])&&(_0x11c5ff=_0xe595c6(_0x11c5ff)||_0x11c5ff);return _0x11c5ff;},_0x264cc7=(_0x289bd3,_0x8d2bfa)=>(_0x3e23bd,_0x5dc105)=>_0x8d2bfa(_0x3e23bd,_0x5dc105,_0x289bd3);_0xb8f135['LiveShareController']=class extends _0x160934[_0x167efe(0x221)]{constructor(_0x31fd3c,_0x4eac40,_0xe5363f){const _0x2e2faa=_0x167efe;super(),_0x36bceb(this,_0x2e2faa(0x21a),new Map()),(this[_0x2e2faa(0x204)]=_0x31fd3c,this[_0x2e2faa(0x245)]=_0x4eac40,this['_collabSessionService']=_0xe5363f,this[_0x2e2faa(0x23a)]());}async['getLiveShareCoordinator'](_0x397127){const _0x37598c=_0x167efe;return this['_entities'][_0x37598c(0x244)](_0x397127)||await this[_0x37598c(0x21f)](_0x397127),this[_0x37598c(0x21a)][_0x37598c(0x284)](_0x397127);}['getLiveShareCoordinatorSync'](_0x165ba2){const _0x2febb0=_0x167efe;var _0x2a6058;return(_0x2a6058=this['_entities'][_0x2febb0(0x284)](_0x165ba2))!=null?_0x2a6058:null;}[_0x167efe(0x23a)](){const _0x2ef2bf=_0x167efe;this['_univerInstanceService'][_0x2ef2bf(0x251)](_0x160934[_0x2ef2bf(0x2ca)][_0x2ef2bf(0x2d0)])['pipe'](_0x5d062d[_0x2ef2bf(0x28a)](this[_0x2ef2bf(0x242)]))[_0x2ef2bf(0x283)](async _0x5097a2=>{const _0x19dfae=_0x2ef2bf,_0x2afc9a=_0x5097a2[_0x19dfae(0x1f0)]();this[_0x19dfae(0x21a)][_0x19dfae(0x244)](_0x2afc9a)||this[_0x19dfae(0x21f)](_0x2afc9a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x160934[_0x2ef2bf(0x2ca)][_0x2ef2bf(0x2d0)])[_0x2ef2bf(0x23c)](_0x5d062d[_0x2ef2bf(0x28a)](this[_0x2ef2bf(0x242)]))['subscribe'](_0x5bf540=>{const _0x3738fa=_0x2ef2bf,_0x5d37ae=_0x5bf540[_0x3738fa(0x1f0)](),_0x49db55=this['_entities']['get'](_0x5d37ae);_0x49db55==null||_0x49db55[_0x3738fa(0x2d5)]();});}async['_startLiveShareCoordinator'](_0x131648){const _0x551f99=_0x167efe,_0x34f004=await this[_0x551f99(0x281)][_0x551f99(0x230)](_0x131648),_0x4d548d=this[_0x551f99(0x245)]['createInstance'](_0xb8f135['LiveShareCoordinator'],_0x131648,_0x34f004);return _0x4d548d['init'](),this[_0x551f99(0x21a)]['set'](_0x131648,_0x4d548d),_0x4d548d;}},_0xb8f135[_0x167efe(0x276)]=_0x32b130([_0x264cc7(0x0,_0x160934['IUniverInstanceService']),_0x264cc7(0x1,_0x160934['Inject'](_0x160934[_0x167efe(0x22b)])),_0x264cc7(0x2,_0x160934[_0x167efe(0x2bc)](_0x17209d[_0x167efe(0x288)]))],_0xb8f135['LiveShareController']);var _0x8a846a=(_0x262732=>(_0x262732['OFFLINE']='offline',_0x262732['IDLE']=_0x167efe(0x231),_0x262732[_0x167efe(0x252)]=_0x167efe(0x1fd),_0x262732['NOT_FOLLOWING']='not-following',_0x262732['PRESENTING']=_0x167efe(0x2be),_0x262732))(_0x8a846a||{});const _0x4155ca=_0x167efe(0x209),_0x29fce0=0xc8;_0xb8f135[_0x167efe(0x2cf)]=class extends _0x160934[_0x167efe(0x221)]{constructor(_0x2e5a39,_0x333ced,_0xffef99,_0x55bfdb,_0x595233){const _0x1d1da3=_0x167efe;super(),_0x36bceb(this,_0x1d1da3(0x2c2),new _0x11d600[(_0x1d1da3(0x26f))](_0x1d1da3(0x231))),_0x36bceb(this,'status$',this['_status$'][_0x1d1da3(0x286)]()),_0x36bceb(this,'_init',!0x1),_0x36bceb(this,_0x1d1da3(0x2a3),null),_0x36bceb(this,_0x1d1da3(0x21c),null),(this[_0x1d1da3(0x226)]=_0x2e5a39,this['_collabSession']=_0x333ced,this['_configService']=_0xffef99,this[_0x1d1da3(0x1fb)]=_0x55bfdb,this[_0x1d1da3(0x2a5)]=_0x595233);}get[_0x167efe(0x241)](){const _0x26e129=_0x167efe;return this[_0x26e129(0x2c2)]['getValue']();}[_0x167efe(0x2d5)](){const _0x44c404=_0x167efe;var _0x1a5cb7;(_0x1a5cb7=this[_0x44c404(0x2a3)])==null||_0x1a5cb7['dispose'](),this[_0x44c404(0x2c2)][_0x44c404(0x2b4)](_0x44c404(0x231)),this[_0x44c404(0x2c2)][_0x44c404(0x2bd)]();}[_0x167efe(0x271)](){return this['_status'];}[_0x167efe(0x236)](){const _0x275967=_0x167efe;this[_0x275967(0x23a)]||(this[_0x275967(0x23a)]=!0x0,this['_collabSession'][_0x275967(0x287)]['pipe'](_0x5d062d['takeUntil'](this[_0x275967(0x242)]))['subscribe'](_0xf5629a=>{const _0x10cf23=_0x275967;switch(_0xf5629a){case _0x17209d[_0x10cf23(0x299)][_0x10cf23(0x255)]:this['_handleOffline']();break;case _0x17209d[_0x10cf23(0x299)]['ONLINE']:this[_0x10cf23(0x26e)]();break;}}),this[_0x275967(0x227)][_0x275967(0x20f)]['pipe'](_0x5d062d[_0x275967(0x28a)](this[_0x275967(0x242)]))[_0x275967(0x283)](_0x3df570=>{const _0x3d52b3=_0x275967,{eventID:_0xed4322}=_0x3df570;switch(_0xed4322){case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x246)]:this['_handleNewHost'](_0x3df570);break;case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x2b3)]:this[_0x3d52b3(0x23e)](_0x3df570);break;case _0x23295e[_0x3d52b3(0x243)][_0x3d52b3(0x277)]:this[_0x3d52b3(0x253)]();break;case _0x23295e['CollaborationEvent'][_0x3d52b3(0x2a0)]:this[_0x3d52b3(0x27c)](_0x3df570);break;}}));}[_0x167efe(0x2a2)](){const _0x344dfd=_0x167efe;this[_0x344dfd(0x227)][_0x344dfd(0x24c)]({'eventID':_0x23295e['CollaborationEvent'][_0x344dfd(0x28b)],'data':{'unitID':this['_unitID'],'userID':this[_0x344dfd(0x227)][_0x344dfd(0x26c)]()}},this[_0x344dfd(0x226)]);}[_0x167efe(0x20e)](){const _0x3b871c=_0x167efe;this['_status']===_0x3b871c(0x2be)&&(this[_0x3b871c(0x2c2)][_0x3b871c(0x2b4)](_0x3b871c(0x231)),this['_collabSession'][_0x3b871c(0x24c)]({'eventID':_0x23295e[_0x3b871c(0x243)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3b871c(0x226)]}},this[_0x3b871c(0x226)]));}[_0x167efe(0x2b7)](){const _0x5b8dc4=_0x167efe;this[_0x5b8dc4(0x241)]===_0x5b8dc4(0x29a)&&(this['_status$']['next'](_0x5b8dc4(0x1fd)),this[_0x5b8dc4(0x26b)]());}['stopFollowing'](){const _0x48879d=_0x167efe;this['_status']===_0x48879d(0x1fd)&&this[_0x48879d(0x26d)]();}[_0x167efe(0x261)](_0x2e822e){const _0x57a5a4=_0x167efe,{presenter:_0x5d4c92}=_0x2e822e[_0x57a5a4(0x264)],_0x13bdc3=this[_0x57a5a4(0x227)][_0x57a5a4(0x26c)]();this[_0x57a5a4(0x21c)]=_0x5d4c92,_0x5d4c92===_0x13bdc3?(this[_0x57a5a4(0x26d)](),this[_0x57a5a4(0x21b)]()):this[_0x57a5a4(0x241)]!=='not-following'&&(this[_0x57a5a4(0x28f)](),this[_0x57a5a4(0x26b)]());}[_0x167efe(0x21d)](){const _0x416fcd=_0x167efe,_0x186806={'eventID':_0x23295e[_0x416fcd(0x243)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x416fcd(0x227)][_0x416fcd(0x24c)](_0x186806,this['_unitID']);}[_0x167efe(0x253)](){const _0x341cf2=_0x167efe;this[_0x341cf2(0x21c)]=null,this['_status']!=='presenting'&&this[_0x341cf2(0x2b2)]();}['_handleNewChangeSets'](_0x2e4c21){const _0x374135=_0x167efe;if(this[_0x374135(0x241)]===_0x374135(0x1fd)&&this['_presenter']===_0x2e4c21[_0x374135(0x264)]['memberID']){const _0x4b9fe2=_0x23295e[_0x374135(0x206)](_0x2e4c21[_0x374135(0x264)])[_0x374135(0x2d4)][_0x374135(0x297)]()[_0x374135(0x235)](_0x3d639e=>_0x3d639e['id']===_0x6fcf9a[_0x374135(0x273)]['id']);if(_0x4b9fe2){const _0x5e13ec=_0x4b9fe2[_0x374135(0x223)][_0x374135(0x233)],_0x419173=_0x4b9fe2['params']['sheet']['id'];setTimeout(()=>{const _0x52eb01=_0x374135;this['_commandService'][_0x52eb01(0x213)](_0x6fcf9a[_0x52eb01(0x201)]['id'],{'unitId':_0x5e13ec,'subUnitId':_0x419173},{'fromCollab':!0x0});});}}}[_0x167efe(0x21b)](){const _0x53bd17=_0x167efe;this[_0x53bd17(0x2c2)]['next'](_0x53bd17(0x2be));const _0x44ba89=new Map(),_0x1f028e=this[_0x53bd17(0x2a3)]=new _0x160934['DisposableCollection']();_0x1f028e[_0x53bd17(0x280)](_0x160934[_0x53bd17(0x2b5)](()=>{const _0x3860cc=_0x53bd17;_0x44ba89[_0x3860cc(0x228)](_0x2383bb=>_0x2383bb['complete']()),_0x44ba89[_0x3860cc(0x293)]();})),_0x1f028e[_0x53bd17(0x280)](this[_0x53bd17(0x2a5)][_0x53bd17(0x27b)](_0x389de2=>{const _0x3e2a99=_0x53bd17;var _0x59374b;if(_0x389de2[_0x3e2a99(0x22e)]!==_0x160934[_0x3e2a99(0x265)][_0x3e2a99(0x2b6)]||!this[_0x3e2a99(0x1fb)][_0x3e2a99(0x24f)](_0x389de2['id']))return;const {id:_0x4c02e0}=_0x389de2;let _0x4b8d61;_0x44ba89['has'](_0x4c02e0)?_0x4b8d61=_0x44ba89['get'](_0x4c02e0):(_0x4b8d61=new _0x11d600['Subject'](),_0x44ba89[_0x3e2a99(0x2c8)](_0x4c02e0,_0x4b8d61),_0x4b8d61[_0x3e2a99(0x23c)](_0x5d062d['throttleTime']((_0x59374b=this['_configService'][_0x3e2a99(0x2a7)](_0x4155ca))!=null?_0x59374b:_0x29fce0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e2a99(0x283)](_0x118191=>{const _0x5ee2dd=_0x3e2a99;this['_collabSession']['send']({'eventID':_0x23295e[_0x5ee2dd(0x243)][_0x5ee2dd(0x2b3)],'data':{'unitID':this[_0x5ee2dd(0x226)],'operations':{[_0x118191['id']]:{'id':_0x118191['id'],'params':JSON[_0x5ee2dd(0x290)](_0x118191['params'])}}}},this['_unitID']);})),_0x4b8d61['next'](_0x389de2);})),this[_0x53bd17(0x1fb)][_0x53bd17(0x239)](this[_0x53bd17(0x226)])['forEach'](_0x511b5c=>this[_0x53bd17(0x227)][_0x53bd17(0x24c)]({'eventID':_0x23295e[_0x53bd17(0x243)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53bd17(0x226)],'operations':{[_0x511b5c['id']]:{'id':_0x511b5c['id'],'params':JSON['stringify'](_0x511b5c[_0x53bd17(0x223)])}}}},this[_0x53bd17(0x226)]));}[_0x167efe(0x28f)](){const _0x2c5090=_0x167efe;var _0x22acc7;this[_0x2c5090(0x2c2)][_0x2c5090(0x2b4)]('idle'),(_0x22acc7=this[_0x2c5090(0x2a3)])==null||_0x22acc7[_0x2c5090(0x2d5)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x49bbdb=_0x167efe;var _0x2358c9;(_0x2358c9=this[_0x49bbdb(0x2a3)])==null||_0x2358c9[_0x49bbdb(0x2d5)](),this[_0x49bbdb(0x2c2)][_0x49bbdb(0x2b4)](_0x49bbdb(0x1fd));}['_beIdle'](){const _0x5e876d=_0x167efe;var _0x1378c2;this[_0x5e876d(0x2c2)][_0x5e876d(0x2b4)](_0x5e876d(0x231)),(_0x1378c2=this[_0x5e876d(0x2a3)])==null||_0x1378c2[_0x5e876d(0x2d5)](),this[_0x5e876d(0x2a3)]=null;}['_stopFollowing'](){const _0x5ba998=_0x167efe;var _0xac61f9;this[_0x5ba998(0x2c2)]['next']('not-following'),(_0xac61f9=this[_0x5ba998(0x2a3)])==null||_0xac61f9[_0x5ba998(0x2d5)]();}['_handleOperation'](_0x24a510){const _0x297d41=_0x167efe;if(['presenting','not-following','offline'][_0x297d41(0x27a)](this[_0x297d41(0x241)])||!_0x24a510['data'][_0x297d41(0x200)]||_0x24a510['data'][_0x297d41(0x200)]===this['_collabSession'][_0x297d41(0x26c)]())return;this[_0x297d41(0x241)]===_0x297d41(0x231)&&this[_0x297d41(0x26b)]();const _0x55aadb=_0x24a510['data'][_0x297d41(0x2ce)];Object[_0x297d41(0x248)](_0x55aadb)[_0x297d41(0x228)](_0x3e255d=>{const _0x5cb9b1=_0x297d41;this[_0x5cb9b1(0x2a5)][_0x5cb9b1(0x213)](_0x3e255d['id'],_0x3e255d['params']?JSON[_0x5cb9b1(0x29f)](_0x3e255d[_0x5cb9b1(0x223)]):null,{'fromCollab':!0x0});});}[_0x167efe(0x1f6)](){const _0x3f7e21=_0x167efe;var _0x1e27d4;this[_0x3f7e21(0x2c2)][_0x3f7e21(0x2b4)](_0x3f7e21(0x2d6)),(_0x1e27d4=this['_commandDisposable'])==null||_0x1e27d4[_0x3f7e21(0x2d5)]();}[_0x167efe(0x26e)](){const _0x46fe8e=_0x167efe;this[_0x46fe8e(0x2c2)][_0x46fe8e(0x2b4)](_0x46fe8e(0x231)),this['_fetchOperations']();}},_0xb8f135[_0x167efe(0x2cf)]=_0x32b130([_0x264cc7(0x2,_0x160934['IConfigService']),_0x264cc7(0x3,_0x160934['Inject'](_0x5a3069)),_0x264cc7(0x4,_0x160934['ICommandService'])],_0xb8f135[_0x167efe(0x2cf)]);function _0x31beac(){const _0x7c69f=_0x167efe,_0x43952a=_0x1db1d5['useDependency'](_0xb8f135[_0x7c69f(0x276)]),_0x1b4231=_0x1db1d5[_0x7c69f(0x2b9)](_0x160934[_0x7c69f(0x2ae)]),_0x385cf3=_0x1db1d5[_0x7c69f(0x2d3)](()=>_0x1b4231[_0x7c69f(0x2ab)](_0x160934[_0x7c69f(0x2ca)][_0x7c69f(0x2d0)]),void 0x0,!0x1,[]),[_0x22ee11,_0x1317d6]=_0x51b41c[_0x7c69f(0x269)](null),[_0x459acd,_0x54322b]=_0x51b41c['useState'](_0x8a846a[_0x7c69f(0x21e)]),_0x2ac77c=_0x51b41c[_0x7c69f(0x1f7)](null);return _0x51b41c[_0x7c69f(0x29c)](()=>(_0x385cf3&&_0x43952a[_0x7c69f(0x203)](_0x385cf3[_0x7c69f(0x1f0)]())['then'](_0x463989=>{const _0x244db4=_0x7c69f;_0x1317d6(_0x463989),_0x2ac77c['current']=_0x463989[_0x244db4(0x272)][_0x244db4(0x283)](_0x3943aa=>{_0x54322b(_0x3943aa);});}),()=>{const _0xda1f85=_0x7c69f;var _0x3d344a;(_0x3d344a=_0x2ac77c[_0xda1f85(0x218)])==null||_0x3d344a[_0xda1f85(0x2af)](),_0x2ac77c[_0xda1f85(0x218)]=null;}),[_0x385cf3,_0x43952a]),_0x22ee11?_0x16f4e3[_0x7c69f(0x291)](_0x53eb07[_0x7c69f(0x28c)],{'align':_0x7c69f(0x282),'disabled':_0x459acd===_0x8a846a['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x16f4e3[_0x7c69f(0x291)](_0x5af33c,{'status':_0x459acd,'coordinator':_0x22ee11}),'children':_0x16f4e3[_0x7c69f(0x291)](_0x7c69f(0x225),{'className':_0x53eb07[_0x7c69f(0x20b)](_0x7c69f(0x256),{'univer-cursor-not-allowed':_0x459acd===_0x8a846a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x459acd!==_0x8a846a[_0x7c69f(0x255)]}),'type':'button','children':_0x16f4e3[_0x7c69f(0x291)](_0x5385f1,{'className':_0x7c69f(0x22f)})})}):null;}function _0x5af33c(_0x3923f1){const _0x327f61=_0x167efe,{status:_0x3c60c3,coordinator:_0x18321f}=_0x3923f1;switch(_0x3c60c3){case _0x8a846a[_0x327f61(0x21e)]:return _0x16f4e3[_0x327f61(0x291)](_0x291051,{'coordinator':_0x18321f});case _0x8a846a['FOLLOWING']:return _0x16f4e3[_0x327f61(0x291)](_0x42dd99,{'coordinator':_0x18321f});case _0x8a846a[_0x327f61(0x27e)]:return _0x16f4e3[_0x327f61(0x291)](_0x2f9f,{'coordinator':_0x18321f});case _0x8a846a['OFFLINE']:return _0x16f4e3[_0x327f61(0x291)](_0x23a3cf,{});case _0x8a846a[_0x327f61(0x270)]:return _0x16f4e3[_0x327f61(0x291)](_0xea9e2e,{'coordinator':_0x18321f});default:return null;}}function _0x291051(_0x5097fe){const _0x51df3=_0x167efe,{coordinator:_0xaeb3f7}=_0x5097fe;return _0x16f4e3[_0x51df3(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x51df3(0x291)](_0x51df3(0x2c0),{'className':_0x51df3(0x254),'children':'Present\x20this\x20document'}),_0x16f4e3[_0x51df3(0x291)](_0x53eb07['Button'],{'onClick':()=>_0xaeb3f7[_0x51df3(0x2a2)](),'children':_0x51df3(0x1f4)})]});}function _0x42dd99(_0x39aac2){const _0x3c6dc9=_0x167efe,{coordinator:_0x5dc0a8}=_0x39aac2;return _0x16f4e3[_0x3c6dc9(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x3c6dc9(0x291)](_0x3c6dc9(0x2c0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3c6dc9(0x25a)}),_0x16f4e3['jsx'](_0x53eb07[_0x3c6dc9(0x1f1)],{'onClick':()=>_0x5dc0a8[_0x3c6dc9(0x234)](),'children':_0x3c6dc9(0x205)})]});}function _0x2f9f(_0x161e4d){const _0x5b0eff=_0x167efe,{coordinator:_0x5f4886}=_0x161e4d;return _0x16f4e3['jsxs'](_0x16f4e3[_0x5b0eff(0x249)],{'children':[_0x16f4e3[_0x5b0eff(0x291)](_0x5b0eff(0x2c0),{'className':_0x5b0eff(0x254),'children':_0x5b0eff(0x295)}),_0x16f4e3[_0x5b0eff(0x291)](_0x53eb07[_0x5b0eff(0x1f1)],{'variant':_0x5b0eff(0x2bf),'onClick':()=>_0x5f4886['startFollowing'](),'children':_0x5b0eff(0x2ac)})]});}function _0xea9e2e(_0x599914){const _0x5debc5=_0x167efe,{coordinator:_0x5d5518}=_0x599914;return _0x16f4e3[_0x5debc5(0x294)](_0x16f4e3['Fragment'],{'children':[_0x16f4e3[_0x5debc5(0x291)](_0x5debc5(0x2c0),{'className':_0x5debc5(0x254),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x16f4e3[_0x5debc5(0x291)](_0x53eb07['Button'],{'variant':_0x5debc5(0x1f2),'onClick':()=>_0x5d5518['stopPresenting'](),'children':_0x5debc5(0x211)})]});}function _0x23a3cf(){const _0x5dd457=_0x167efe;return _0x16f4e3['jsx'](_0x16f4e3[_0x5dd457(0x249)],{'children':_0x5dd457(0x2bb)});}var _0x420f23=Object[_0x167efe(0x1f3)],_0x52eee8=(_0x70cd3d,_0x253b2e,_0x49af52,_0x2f9b2c)=>{const _0x2df6fb=_0x167efe;for(var _0x480319=_0x2f9b2c>0x1?void 0x0:_0x2f9b2c?_0x420f23(_0x253b2e,_0x49af52):_0x253b2e,_0x24fbc6=_0x70cd3d[_0x2df6fb(0x260)]-0x1,_0x4e001f;_0x24fbc6>=0x0;_0x24fbc6--)(_0x4e001f=_0x70cd3d[_0x24fbc6])&&(_0x480319=_0x4e001f(_0x480319)||_0x480319);return _0x480319;},_0x30b8be=(_0x3eccb5,_0x5e66d6)=>(_0x3f6fe1,_0x37ff8d)=>_0x5e66d6(_0x3f6fe1,_0x37ff8d,_0x3eccb5);_0xb8f135[_0x167efe(0x20c)]=class extends _0x160934[_0x167efe(0x2d1)]{constructor(_0x695ed3,_0xf8f4f6){const _0x3dc177=_0x167efe;super(),this['_injector']=_0x695ed3,this[_0x3dc177(0x238)]=_0xf8f4f6,this[_0x3dc177(0x2a6)]();}[_0x167efe(0x2a6)](){const _0x47e70b=_0x167efe;this['disposeWithMe'](this['_uiPartsService'][_0x47e70b(0x29b)](_0x1db1d5['BuiltInUIPart'][_0x47e70b(0x2aa)],()=>_0x1db1d5['connectInjector'](_0x31beac,this[_0x47e70b(0x245)])));}},_0xb8f135['DesktopLiveShareController']=_0x52eee8([_0x30b8be(0x0,_0x160934[_0x167efe(0x2bc)](_0x160934[_0x167efe(0x22b)])),_0x30b8be(0x1,_0x1db1d5[_0x167efe(0x219)])],_0xb8f135['DesktopLiveShareController']);const _0x836660=_0x167efe(0x298),_0x3c6417={};var _0x23b8c8=Object[_0x167efe(0x1f3)],_0x325f6f=(_0x21ec12,_0x3cd9ad,_0x370485,_0x653b27)=>{for(var _0x52b32c=_0x653b27>0x1?void 0x0:_0x653b27?_0x23b8c8(_0x3cd9ad,_0x370485):_0x3cd9ad,_0xb02856=_0x21ec12['length']-0x1,_0x229f06;_0xb02856>=0x0;_0xb02856--)(_0x229f06=_0x21ec12[_0xb02856])&&(_0x52b32c=_0x229f06(_0x52b32c)||_0x52b32c);return _0x52b32c;},_0x569c6a=(_0x5600e8,_0x13b2e8)=>(_0x4d43ed,_0x1779f8)=>_0x13b2e8(_0x4d43ed,_0x1779f8,_0x5600e8);let _0x29cb6a=class extends _0x160934[_0x167efe(0x2d1)]{constructor(_0x1fab8c){const _0x2b98ba=_0x167efe;super(),this[_0x2b98ba(0x1fb)]=_0x1fab8c,this['_init']();}[_0x167efe(0x23a)](){const _0x49ebb6=_0x167efe;[_0x2529b4['SetZoomRatioOperation']['id'],_0x2529b4[_0x49ebb6(0x2a1)]['id'],_0x6fcf9a['SetWorksheetActiveOperation']['id']][_0x49ebb6(0x228)](_0x5d1268=>{const _0x3676ff=_0x49ebb6;this[_0x3676ff(0x1fc)](this[_0x3676ff(0x1fb)][_0x3676ff(0x24b)](_0x5d1268));});}};_0x29cb6a=_0x325f6f([_0x569c6a(0x0,_0x160934[_0x167efe(0x2bc)](_0x5a3069))],_0x29cb6a);var _0x2116f4=Object[_0x167efe(0x2a8)],_0x24f582=Object['getOwnPropertyDescriptor'],_0x35a8f9=(_0x553e2b,_0x52845a,_0x3917b3)=>_0x52845a in _0x553e2b?_0x2116f4(_0x553e2b,_0x52845a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3917b3}):_0x553e2b[_0x52845a]=_0x3917b3,_0x23c2bd=(_0x151341,_0x3b9d2a,_0x541232,_0x2cd5a2)=>{const _0x27aae2=_0x167efe;for(var _0x1d3976=_0x2cd5a2>0x1?void 0x0:_0x2cd5a2?_0x24f582(_0x3b9d2a,_0x541232):_0x3b9d2a,_0x118c58=_0x151341[_0x27aae2(0x260)]-0x1,_0x3ec432;_0x118c58>=0x0;_0x118c58--)(_0x3ec432=_0x151341[_0x118c58])&&(_0x1d3976=_0x3ec432(_0x1d3976)||_0x1d3976);return _0x1d3976;},_0xf61b43=(_0x1f9dd6,_0xfef178)=>(_0x351beb,_0x3803de)=>_0xfef178(_0x351beb,_0x3803de,_0x1f9dd6),_0x5a9825=(_0x27a73e,_0x3fa977,_0x848c9e)=>_0x35a8f9(_0x27a73e,typeof _0x3fa977!='symbol'?_0x3fa977+'':_0x3fa977,_0x848c9e);const _0x1dcfe3=_0x167efe(0x262);_0xb8f135[_0x167efe(0x1f9)]=class extends _0x160934[_0x167efe(0x275)]{constructor(_0x9aa14b=_0x3c6417,_0x4972ab,_0x2014b3){const _0x3d1ec4=_0x167efe;super(),this[_0x3d1ec4(0x1f8)]=_0x9aa14b,this['_injector']=_0x4972ab,this[_0x3d1ec4(0x207)]=_0x2014b3;const {..._0x31b561}=_0x160934[_0x3d1ec4(0x25d)]({},_0x3c6417,this['_config']);this[_0x3d1ec4(0x207)][_0x3d1ec4(0x24d)](_0x836660,_0x31b561);}[_0x167efe(0x289)](){const _0x47d2f5=_0x167efe;_0x160934['registerDependencies'](this[_0x47d2f5(0x245)],_0x160934['mergeOverrideWithDependencies']([[_0x5a3069],[_0xb8f135[_0x47d2f5(0x276)]],[_0x29cb6a],[_0xb8f135['DesktopLiveShareController']]],this[_0x47d2f5(0x1f8)][_0x47d2f5(0x2c9)])),_0x160934[_0x47d2f5(0x258)](this[_0x47d2f5(0x245)],[[_0x29cb6a]]);}[_0x167efe(0x215)](){const _0x4fc708=_0x167efe;_0x160934[_0x4fc708(0x258)](this[_0x4fc708(0x245)],[[_0xb8f135[_0x4fc708(0x20c)]]]);}},_0x5a9825(_0xb8f135['UniverLiveSharePlugin'],_0x167efe(0x22e),_0x160934[_0x167efe(0x2ca)][_0x167efe(0x28d)]),_0x5a9825(_0xb8f135['UniverLiveSharePlugin'],'pluginName',_0x1dcfe3),_0xb8f135[_0x167efe(0x1f9)]=_0x23c2bd([_0x160934['DependentOn'](_0x17209d[_0x167efe(0x2cd)]),_0xf61b43(0x1,_0x160934[_0x167efe(0x2bc)](_0x160934[_0x167efe(0x22b)])),_0xf61b43(0x2,_0x160934['IConfigService'])],_0xb8f135[_0x167efe(0x1f9)]),_0xb8f135[_0x167efe(0x212)]=_0x31beac,_0xb8f135['LiveShareService']=_0x5a3069,_0xb8f135[_0x167efe(0x2b8)]=_0x8a846a,Object[_0x167efe(0x2a8)](_0xb8f135,Symbol['toStringTag'],{'value':_0x167efe(0x202)});}));function _0x4583(_0x345c9f,_0x5c1b19){const _0x54266c=_0x5426();return _0x4583=function(_0x45837a,_0x502d1c){_0x45837a=_0x45837a-0x1f0;let _0x56ea5a=_0x54266c[_0x45837a];return _0x56ea5a;},_0x4583(_0x345c9f,_0x5c1b19);}function _0x5426(){const _0xc6257f=['_entities','_startPresenting','_presenter','_fetchOperations','IDLE','_startLiveShareCoordinator','use','RxDisposable','xlink:href','params','_sharedOperations','button','_unitID','_collabSession','forEach','idSuffix','defIds','Injector','amd','UniverSheets','type','univer-size-4','requireSession','idle','react','unitId','stopFollowing','find','init','exports','_uiPartsService','getInitialStates','_init','@univerjs-pro/collaboration','pipe','UniverSheetsUi','_handleOperation','763072IoIQMC','delete','_status','dispose$','CollaborationEvent','has','_injector','LIVESHARE_NEW_HOST','children','values','Fragment','replace','registerSharedOperation','send','setConfig','229205WgyzrJ','shouldShareOperation','displayName','getTypeOfUnitAdded$','FOLLOWING','_handleTerminate','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs/core','touchDependencies','path','You\x27re\x20following\x20the\x20presenter','mask','substring','merge','assign','forwardRef','length','_handleNewHost','UNIVER_LIVE_SHARE_PLUGIN','symbol','data','CommandType','UniverDesign','UniverProLiveShare','40722vFyDta','useState','tag','_startFollowing','getMemberID','_stopFollowing','_handleOnline','BehaviorSubject','PRESENTING','getStatus','status$','InsertSheetMutation','svg','Plugin','LiveShareController','LIVESHARE_TERMINATE','url(#$1','univerjs-icon\x20univerjs-icon-','includes','onCommandExecuted','_handleNewChangeSets','React','NOT_FOLLOWING','operators','add','_collabSessionService','end','subscribe','get','random','asObservable','sessionStatus$','CollaborationSessionService','onStarting','takeUntil','LIVESHARE_REQUEST_HOST','Dropdown','UNIVER_UNKNOWN','from','_stopPresenting','stringify','jsx','colorChannel1','clear','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','122nDBREY','reverse','live-share.config','SessionStatus','not-following','registerComponent','useEffect','@univerjs/design','_reporters','parse','NEW_CHANGESETS','SetScrollOperation','tryStartPresenting','_commandDisposable','fill','_commandService','_mountLiveShare','getConfig','defineProperty','string','HEADER_MENU','getCurrentTypeOfUnit$','Start\x20following','3647480faTvRA','IUniverInstanceService','unsubscribe','createElement','map','_beIdle','LIVESHARE_OPERATION','next','toDisposable','OPERATION','startFollowing','LiveShareStatus','useDependency','UniverUi','You\x27are\x20offline.','Inject','complete','presenting','text','div','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','_status$','react/jsx-runtime','defs','4902212nqxPqs','4vpxFsd','@univerjs/ui','set','override','UniverInstanceType','rxjs/operators','1em','UniverCollaborationClientPlugin','operations','LiveShareCoordinator','UNIVER_SHEET','Disposable','5528256Yssmmt','useObservable','mutations','dispose','offline','getUnitId','Button','default','getOwnPropertyDescriptor','Start','486152FTBPpH','_handleOffline','useRef','_config','UniverLiveSharePlugin','54tEAFBh','_liveShareService','disposeWithMe','following','rxjs','@univerjs/sheets','presenter','SetWorksheetActiveOperation','Module','getLiveShareCoordinator','_univerInstanceService','Stop\x20following','parseProtocolChangeset','_configService','trim','SAME_OPERATION_SHARE_INTERVAL','UniverProCollaboration','clsx','DesktopLiveShareController','evenodd','stopPresenting','event$','@univerjs-pro/collaboration-client','Stop\x20presenting','LiveShare','executeCommand','registerInitialStateReporter','onRendered','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','current','IUIPartsService'];_0x5426=function(){return _0xc6257f;};return _0x5426();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.13",
3
+ "version": "0.10.14-nightly.202511070628",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.10.13",
61
- "@univerjs-pro/collaboration-client": "0.10.13",
62
- "@univerjs/core": "0.10.13",
63
- "@univerjs/design": "0.10.13",
64
- "@univerjs/sheets": "0.10.13",
65
- "@univerjs/engine-render": "0.10.13",
66
- "@univerjs/ui": "0.10.13",
67
- "@univerjs/sheets-ui": "0.10.13"
60
+ "@univerjs/design": "0.10.14-nightly.202511070628",
61
+ "@univerjs/engine-render": "0.10.14-nightly.202511070628",
62
+ "@univerjs-pro/collaboration": "0.10.14-nightly.202511070628",
63
+ "@univerjs/core": "0.10.14-nightly.202511070628",
64
+ "@univerjs/sheets": "0.10.14-nightly.202511070628",
65
+ "@univerjs/sheets-ui": "0.10.14-nightly.202511070628",
66
+ "@univerjs/ui": "0.10.14-nightly.202511070628",
67
+ "@univerjs-pro/collaboration-client": "0.10.14-nightly.202511070628"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,10 +72,10 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.1.10",
75
+ "vite": "^7.1.12",
76
76
  "vitest": "^3.2.4",
77
- "@univerjs-infra/shared": "0.10.13",
78
- "@univerjs/protocol": "0.1.47-alpha.0"
77
+ "@univerjs-infra/shared": "0.10.14",
78
+ "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",