@univerjs-pro/live-share 0.10.2-nightly.202508080617 → 0.10.3-experimental.20250812-b4b6f1a
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x18c3b9=_0x27a8;(function(_0x1e2354,_0x4f0fc6){var _0x4a4a57=_0x27a8,_0x54f0e3=_0x1e2354();while(!![]){try{var _0x2b52e8=-parseInt(_0x4a4a57(0x131))/0x1*(parseInt(_0x4a4a57(0x1a6))/0x2)+parseInt(_0x4a4a57(0x1b3))/0x3+-parseInt(_0x4a4a57(0x1cd))/0x4*(-parseInt(_0x4a4a57(0x1ca))/0x5)+-parseInt(_0x4a4a57(0x18b))/0x6+-parseInt(_0x4a4a57(0x11f))/0x7+-parseInt(_0x4a4a57(0x128))/0x8+parseInt(_0x4a4a57(0x126))/0x9;if(_0x2b52e8===_0x4f0fc6)break;else _0x54f0e3['push'](_0x54f0e3['shift']());}catch(_0xc5ff60){_0x54f0e3['push'](_0x54f0e3['shift']());}}}(_0x2baf,0xc8fc8));var U=Object[_0x18c3b9(0x1c1)],F=(_0x48ac90,_0x2a76a9,_0x395f6e)=>_0x2a76a9 in _0x48ac90?U(_0x48ac90,_0x2a76a9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395f6e}):_0x48ac90[_0x2a76a9]=_0x395f6e,v=(_0x48dd7c,_0x1b3fbd,_0x438a1f)=>F(_0x48dd7c,typeof _0x1b3fbd!=_0x18c3b9(0x17a)?_0x1b3fbd+'':_0x1b3fbd,_0x438a1f);Object['defineProperty'](exports,Symbol[_0x18c3b9(0x162)],{'value':_0x18c3b9(0x116)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x2baf(){var _0xdf2607=['asObservable','getValue','CollaborationEvent','function','_univerInstanceService','then','propertyIsEnumerable','getCurrentTypeOfUnit$','getOwnPropertySymbols','LiveShareController','tag','presenter','dispose','values','none','send','registerDependencies','includes','Plugin','unsubscribe','length','_config','getLiveShareCoordinator','merge','registerComponent','FOLLOWING','live-share-icon','replace','LiveShareCoordinator','init','sheet','univerjs-icon\x20univerjs-icon-','get','LiveShareService','ONLINE','_fetchOperations','string','_handleOnline','random','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','extend','Subject','defs','DependentOn','useObservable','next','toStringTag','http://www.w3.org/2000/svg','_startFollowing','stopFollowing','HEADER_MENU','end','_presenter','assign','Injector','_status','memberID','IConfigService','_handleTerminate','UNIVER_SHEET','LIVESHARE_OPERATION','subscribe','prototype','_stopPresenting','Present\x20this\x20document','clear','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_REQUEST_HOST','current','Dropdown','symbol','LiveShare','Fragment','complete','hasOwnProperty','event$','executeCommand','has','idSuffix','stringify','currentColor','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','_sharedOperations','_startLiveShareCoordinator','concat','getUnitId','_stopFollowing','76878dsLhIv','useState','forwardRef','_handleNewChangeSets','stopPresenting','indexOf','Disposable','offline','useDependency','button','_status$','delete','SAME_OPERATION_SHARE_INTERVAL','map','getInitialStates','defIds','use','OFFLINE','Button','from','data','trim','unitId','entries','createInstance','createElement','_configService','58bJbyIs','default','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','disposeWithMe','live-share.config','_uiPartsService','Inject','url(#$1','startFollowing','parse','jsxs','text','961428pzEyrZ','_commandService','type','registerSharedOperation','_collabSessionService','RxDisposable','UniverLiveSharePlugin','_reporters','colorChannel1','getOwnPropertyDescriptor','Start\x20following','forEach','Start','LIVESHARE_TERMINATE','defineProperty','sessionStatus$','IUIPartsService','set','mask','getConfig','presenting','add','SessionStatus','38215qspaNT','svg','_startPresenting','596JvSuoy','_injector','useRef','displayName','univer-size-4','_commandDisposable','parseProtocolChangeset','_collabSession','takeUntil','_liveShareService','registerInitialStateReporter','children','SetWorksheetActiveOperation','OPERATION','call','_handleOffline','getTypeOfUnitAdded$','getMemberID','setConfig','mergeOverrideWithDependencies','You\x27re\x20not\x20following\x20the\x20presenter','_handleOperation','params','status$','icon','_init','xlink:href','Stop\x20following','onStarting','onRendered','div','SetScrollOperation','not-following','idle','Module','SetZoomRatioOperation','LiveShareStatus','IDLE','0\x200\x2017\x2017','_beIdle','toDisposable','PRESENTING','IUniverInstanceService','293244igATYW','following','_handleNewHost','univer-mb-3\x20univer-w-full\x20univer-text-sm','touchDependencies','DesktopLiveShareController','pipe','797472zjrUCm','jsx','3686616TgFyYs','evenodd','dispose$','className','_unitID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_entities','attrs','useEffect','7211nfpIfz','UniverInstanceType'];_0x2baf=function(){return _0xdf2607;};return _0x2baf();}var u=function(){var _0x1d83e6=_0x18c3b9;return u=Object[_0x1d83e6(0x169)]||function(_0x3f4fb1){var _0x4edb74=_0x1d83e6;for(var _0x9e1750,_0x7d28fb=0x1,_0x4cbdcb=arguments[_0x4edb74(0x147)];_0x7d28fb<_0x4cbdcb;_0x7d28fb++){_0x9e1750=arguments[_0x7d28fb];for(var _0x134ab0 in _0x9e1750)Object[_0x4edb74(0x172)][_0x4edb74(0x17e)][_0x4edb74(0x1db)](_0x9e1750,_0x134ab0)&&(_0x3f4fb1[_0x134ab0]=_0x9e1750[_0x134ab0]);}return _0x3f4fb1;},u['apply'](this,arguments);},$=function(_0x3c8778,_0x13c7bd){var _0x5e11e2=_0x18c3b9,_0x5dc09b={};for(var _0x357a17 in _0x3c8778)Object[_0x5e11e2(0x172)][_0x5e11e2(0x17e)][_0x5e11e2(0x1db)](_0x3c8778,_0x357a17)&&_0x13c7bd['indexOf'](_0x357a17)<0x0&&(_0x5dc09b[_0x357a17]=_0x3c8778[_0x357a17]);if(_0x3c8778!=null&&typeof Object['getOwnPropertySymbols']==_0x5e11e2(0x136)){for(var _0x4a372d=0x0,_0x357a17=Object[_0x5e11e2(0x13b)](_0x3c8778);_0x4a372d<_0x357a17[_0x5e11e2(0x147)];_0x4a372d++)_0x13c7bd[_0x5e11e2(0x190)](_0x357a17[_0x4a372d])<0x0&&Object[_0x5e11e2(0x172)][_0x5e11e2(0x139)][_0x5e11e2(0x1db)](_0x3c8778,_0x357a17[_0x4a372d])&&(_0x5dc09b[_0x357a17[_0x4a372d]]=_0x3c8778[_0x357a17[_0x4a372d]]);}return _0x5dc09b;},j=f['forwardRef'](function(_0xff7760,_0x247ccb){var _0x165866=_0x18c3b9,_0x5cddf4=_0xff7760[_0x165866(0x10c)],_0x5cde19=_0xff7760['id'],_0x1c7e87=_0xff7760[_0x165866(0x12b)],_0x35bf69=_0xff7760['extend'],_0x2c1115=$(_0xff7760,[_0x165866(0x10c),'id',_0x165866(0x12b),_0x165866(0x15c)]),_0x2d1b8c=_0x165866(0x152)[_0x165866(0x188)](_0x5cde19,'\x20')[_0x165866(0x188)](_0x1c7e87||'')[_0x165866(0x1a0)](),_0x381291=f['useRef']('_'[_0x165866(0x188)](k()));return y(_0x5cddf4,''[_0x165866(0x188)](_0x5cde19),{'defIds':_0x5cddf4['defIds'],'idSuffix':_0x381291['current']},u({'ref':_0x247ccb,'className':_0x2d1b8c},_0x2c1115),_0x35bf69);});function y(_0x472fe0,_0x551e93,_0x398a38,_0x46918c,_0x3bfdbd){var _0x19e168=_0x18c3b9;return f['createElement'](_0x472fe0[_0x19e168(0x13d)],u(u({'key':_0x551e93},H(_0x472fe0,_0x398a38,_0x3bfdbd)),_0x46918c),(V(_0x472fe0,_0x398a38)['children']||[])[_0x19e168(0x198)](function(_0x3299c5,_0x44aa1d){var _0x292655=_0x19e168;return y(_0x3299c5,''[_0x292655(0x188)](_0x551e93,'-')[_0x292655(0x188)](_0x472fe0['tag'],'-')[_0x292655(0x188)](_0x44aa1d),_0x398a38,void 0x0,_0x3bfdbd);}));}function H(_0x109435,_0x221fce,_0xfab619){var _0xfa88f2=_0x18c3b9,_0x24c7c6=u({},_0x109435['attrs']);_0xfab619!=null&&_0xfab619['colorChannel1']&&_0x24c7c6['fill']===_0xfa88f2(0x1bb)&&(_0x24c7c6['fill']=_0xfab619[_0xfa88f2(0x1bb)]),_0x109435[_0xfa88f2(0x13d)]===_0xfa88f2(0x1c5)&&_0x24c7c6['id']&&(_0x24c7c6['id']=_0x24c7c6['id']+_0x221fce['idSuffix']),Object[_0xfa88f2(0x1a2)](_0x24c7c6)[_0xfa88f2(0x1be)](function(_0x2111f8){var _0x8b3a0a=_0xfa88f2,_0xce4d92=_0x2111f8[0x0],_0x63279c=_0x2111f8[0x1];_0xce4d92===_0x8b3a0a(0x1c5)&&typeof _0x63279c==_0x8b3a0a(0x157)&&(_0x24c7c6[_0xce4d92]=_0x63279c[_0x8b3a0a(0x14e)](/url\(#(.*)\)/,_0x8b3a0a(0x1ae)[_0x8b3a0a(0x188)](_0x221fce['idSuffix'],')')));});var _0x3b2db7=_0x221fce[_0xfa88f2(0x19a)];return!_0x3b2db7||_0x3b2db7[_0xfa88f2(0x147)]===0x0||(_0x109435[_0xfa88f2(0x13d)]===_0xfa88f2(0x19b)&&_0x24c7c6[_0xfa88f2(0x10e)]&&(_0x24c7c6[_0xfa88f2(0x10e)]=_0x24c7c6[_0xfa88f2(0x10e)]+_0x221fce['idSuffix']),Object[_0xfa88f2(0x1a2)](_0x24c7c6)[_0xfa88f2(0x1be)](function(_0x3afbe2){var _0x463aee=_0xfa88f2,_0x1759bf=_0x3afbe2[0x0],_0xcb4140=_0x3afbe2[0x1];typeof _0xcb4140==_0x463aee(0x157)&&(_0x24c7c6[_0x1759bf]=_0xcb4140['replace'](/url\(#(.*)\)/,_0x463aee(0x1ae)['concat'](_0x221fce[_0x463aee(0x182)],')')));})),_0x24c7c6;}function V(_0x2cc3d9,_0x4a51fe){var _0x3b7f24=_0x18c3b9,_0x3f5af3,_0x28fae1=_0x4a51fe[_0x3b7f24(0x19a)];return!_0x28fae1||_0x28fae1[_0x3b7f24(0x147)]===0x0?_0x2cc3d9:_0x2cc3d9[_0x3b7f24(0x13d)]===_0x3b7f24(0x15e)&&(!((_0x3f5af3=_0x2cc3d9[_0x3b7f24(0x1d8)])===null||_0x3f5af3===void 0x0)&&_0x3f5af3['length'])?u(u({},_0x2cc3d9),{'children':_0x2cc3d9[_0x3b7f24(0x1d8)][_0x3b7f24(0x198)](function(_0xedfd81){var _0x24598c=_0x3b7f24;return typeof _0xedfd81[_0x24598c(0x12f)]['id']==_0x24598c(0x157)&&_0x28fae1&&_0x28fae1['includes'](_0xedfd81[_0x24598c(0x12f)]['id'])?u(u({},_0xedfd81),{'attrs':u(u({},_0xedfd81[_0x24598c(0x12f)]),{'id':_0xedfd81[_0x24598c(0x12f)]['id']+_0x4a51fe[_0x24598c(0x182)]})}):_0xedfd81;})}):_0x2cc3d9;}function k(){var _0x5819bd=_0x18c3b9;return Math[_0x5819bd(0x159)]()['toString'](0x24)['substring'](0x2,0x8);}function _0x27a8(_0x4cc267,_0x657f7f){var _0x2bafb6=_0x2baf();return _0x27a8=function(_0x27a8c5,_0x22db03){_0x27a8c5=_0x27a8c5-0x10c;var _0xbbcd80=_0x2bafb6[_0x27a8c5];return _0xbbcd80;},_0x27a8(_0x4cc267,_0x657f7f);}j[_0x18c3b9(0x1d0)]='UniverIcon';var M={'tag':_0x18c3b9(0x1cb),'attrs':{'xmlns':_0x18c3b9(0x163),'fill':_0x18c3b9(0x141),'viewBox':_0x18c3b9(0x11a),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x18c3b9(0x184),'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':'currentColor','d':_0x18c3b9(0x185),'fillRule':_0x18c3b9(0x129),'clipRule':_0x18c3b9(0x129)}}]},P=f[_0x18c3b9(0x18d)](function(_0x2ed7b9,_0x4da32d){var _0x2d4b6f=_0x18c3b9;return f[_0x2d4b6f(0x1a4)](j,Object[_0x2d4b6f(0x169)]({},_0x2ed7b9,{'id':_0x2d4b6f(0x14d),'ref':_0x4da32d,'icon':M}));});P[_0x18c3b9(0x1d0)]='LiveShareIcon';class O extends o[_0x18c3b9(0x191)]{constructor(){var _0x486089=_0x18c3b9;super(...arguments),v(this,_0x486089(0x186),new Set()),v(this,_0x486089(0x1ba),new Set());}['registerSharedOperation'](_0x582a85){var _0x2c7467=_0x18c3b9;return this[_0x2c7467(0x186)][_0x2c7467(0x1c8)](_0x582a85),o[_0x2c7467(0x11c)](()=>this[_0x2c7467(0x186)][_0x2c7467(0x196)](_0x582a85));}[_0x18c3b9(0x1d7)](_0x38cfbb){var _0x5f3a90=_0x18c3b9;return this[_0x5f3a90(0x1ba)]['add'](_0x38cfbb),o[_0x5f3a90(0x11c)](()=>this[_0x5f3a90(0x1ba)][_0x5f3a90(0x196)](_0x38cfbb));}['shouldShareOperation'](_0x523081){var _0x493c5b=_0x18c3b9;return this[_0x493c5b(0x186)][_0x493c5b(0x181)](_0x523081);}[_0x18c3b9(0x199)](_0x43c400){var _0x1ababc=_0x18c3b9;return Array[_0x1ababc(0x19e)](this[_0x1ababc(0x1ba)])[_0x1ababc(0x198)](_0x49f983=>_0x49f983(_0x43c400));}}var q=Object[_0x18c3b9(0x1bc)],R=(_0xb6d13d,_0x5aff47,_0x27e9d3,_0x60e9da)=>{for(var _0x3ec42c=_0x60e9da>0x1?void 0x0:_0x60e9da?q(_0x5aff47,_0x27e9d3):_0x5aff47,_0x3126db=_0xb6d13d['length']-0x1,_0x472006;_0x3126db>=0x0;_0x3126db--)(_0x472006=_0xb6d13d[_0x3126db])&&(_0x3ec42c=_0x472006(_0x3ec42c)||_0x3ec42c);return _0x3ec42c;},S=(_0x486591,_0x23c633)=>(_0x542c17,_0x3a2a1b)=>_0x23c633(_0x542c17,_0x3a2a1b,_0x486591);exports[_0x18c3b9(0x13c)]=class extends o[_0x18c3b9(0x1b8)]{constructor(_0x57ec62,_0x2e3018,_0x2758b8){var _0x36a1dd=_0x18c3b9;super(),v(this,_0x36a1dd(0x12e),new Map()),(this[_0x36a1dd(0x137)]=_0x57ec62,this[_0x36a1dd(0x1ce)]=_0x2e3018,this[_0x36a1dd(0x1b7)]=_0x2758b8,this[_0x36a1dd(0x10d)]());}async[_0x18c3b9(0x149)](_0x77ffe8){var _0x4135d1=_0x18c3b9;return this[_0x4135d1(0x12e)]['has'](_0x77ffe8)||await this[_0x4135d1(0x187)](_0x77ffe8),this[_0x4135d1(0x12e)][_0x4135d1(0x153)](_0x77ffe8);}[_0x18c3b9(0x10d)](){var _0x47f315=_0x18c3b9;this[_0x47f315(0x137)][_0x47f315(0x1dd)](o[_0x47f315(0x132)][_0x47f315(0x16f)])[_0x47f315(0x125)](b[_0x47f315(0x1d5)](this['dispose$']))[_0x47f315(0x171)](async _0x3fd944=>{var _0x21e66e=_0x47f315;const _0xca051c=_0x3fd944[_0x21e66e(0x189)]();this[_0x21e66e(0x12e)][_0x21e66e(0x181)](_0xca051c)||this['_startLiveShareCoordinator'](_0xca051c);}),this[_0x47f315(0x137)]['getTypeOfUnitDisposed$'](o[_0x47f315(0x132)][_0x47f315(0x16f)])['pipe'](b[_0x47f315(0x1d5)](this['dispose$']))[_0x47f315(0x171)](_0x326f02=>{var _0x25b3a2=_0x47f315;const _0xb8ccfd=_0x326f02[_0x25b3a2(0x189)](),_0x371cdf=this['_entities'][_0x25b3a2(0x153)](_0xb8ccfd);_0x371cdf==null||_0x371cdf['dispose']();});}async['_startLiveShareCoordinator'](_0x1c3f2c){var _0x43b598=_0x18c3b9;const _0xe0ea0a=await this[_0x43b598(0x1b7)]['requireSession'](_0x1c3f2c),_0xb52267=this[_0x43b598(0x1ce)][_0x43b598(0x1a3)](exports[_0x43b598(0x14f)],_0x1c3f2c,_0xe0ea0a);return _0xb52267[_0x43b598(0x150)](),this['_entities'][_0x43b598(0x1c4)](_0x1c3f2c,_0xb52267),_0xb52267;}},exports['LiveShareController']=R([S(0x0,o[_0x18c3b9(0x11e)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](m['CollaborationSessionService']))],exports[_0x18c3b9(0x13c)]);var h=(_0x5a0851=>(_0x5a0851[_0x18c3b9(0x19c)]='offline',_0x5a0851[_0x18c3b9(0x119)]=_0x18c3b9(0x115),_0x5a0851['FOLLOWING']='following',_0x5a0851['NOT_FOLLOWING']='not-following',_0x5a0851['PRESENTING']=_0x18c3b9(0x1c7),_0x5a0851))(h||{});const W=_0x18c3b9(0x197),G=0xc8;exports[_0x18c3b9(0x14f)]=class extends o['RxDisposable']{constructor(_0x1441aa,_0x48ab7a,_0x17edf9,_0x392855,_0x13a880){var _0x2fbcf9=_0x18c3b9;super(),v(this,_0x2fbcf9(0x195),new w['BehaviorSubject']('idle')),v(this,_0x2fbcf9(0x1e4),this[_0x2fbcf9(0x195)][_0x2fbcf9(0x133)]()),v(this,_0x2fbcf9(0x10d),!0x1),v(this,_0x2fbcf9(0x1d2),null),v(this,_0x2fbcf9(0x168),null),(this[_0x2fbcf9(0x12c)]=_0x1441aa,this['_collabSession']=_0x48ab7a,this[_0x2fbcf9(0x1a5)]=_0x17edf9,this[_0x2fbcf9(0x1d6)]=_0x392855,this['_commandService']=_0x13a880);}get['_status'](){var _0x1c734f=_0x18c3b9;return this[_0x1c734f(0x195)][_0x1c734f(0x134)]();}[_0x18c3b9(0x13f)](){var _0x4dd3d2=_0x18c3b9,_0x220df1;(_0x220df1=this['_commandDisposable'])==null||_0x220df1[_0x4dd3d2(0x13f)](),this[_0x4dd3d2(0x195)][_0x4dd3d2(0x161)](_0x4dd3d2(0x115)),this[_0x4dd3d2(0x195)][_0x4dd3d2(0x17d)]();}[_0x18c3b9(0x150)](){var _0x4b6b61=_0x18c3b9;this['_init']||(this['_init']=!0x0,this[_0x4b6b61(0x1d4)][_0x4b6b61(0x1c2)][_0x4b6b61(0x125)](b['takeUntil'](this[_0x4b6b61(0x12a)]))[_0x4b6b61(0x171)](_0x301631=>{var _0x5b9a35=_0x4b6b61;switch(_0x301631){case m[_0x5b9a35(0x1c9)]['OFFLINE']:this['_handleOffline']();break;case m['SessionStatus'][_0x5b9a35(0x155)]:this[_0x5b9a35(0x158)]();break;}}),this[_0x4b6b61(0x1d4)][_0x4b6b61(0x17f)][_0x4b6b61(0x125)](b[_0x4b6b61(0x1d5)](this[_0x4b6b61(0x12a)]))[_0x4b6b61(0x171)](_0x5ecd38=>{var _0x4625e9=_0x4b6b61;const {eventID:_0x45348e}=_0x5ecd38;switch(_0x45348e){case _[_0x4625e9(0x135)]['LIVESHARE_NEW_HOST']:this[_0x4625e9(0x121)](_0x5ecd38);break;case _[_0x4625e9(0x135)][_0x4625e9(0x170)]:this['_handleOperation'](_0x5ecd38);break;case _['CollaborationEvent'][_0x4625e9(0x1c0)]:this[_0x4625e9(0x16e)]();break;case _[_0x4625e9(0x135)]['NEW_CHANGESETS']:this[_0x4625e9(0x18e)](_0x5ecd38);break;}}));}['tryStartPresenting'](){var _0x3caf4f=_0x18c3b9;this['_collabSession'][_0x3caf4f(0x142)]({'eventID':_[_0x3caf4f(0x135)][_0x3caf4f(0x177)],'data':{'unitID':this[_0x3caf4f(0x12c)],'userID':this[_0x3caf4f(0x1d4)][_0x3caf4f(0x1de)]()}},this[_0x3caf4f(0x12c)]);}[_0x18c3b9(0x18f)](){var _0x4c25d5=_0x18c3b9;this[_0x4c25d5(0x16b)]===_0x4c25d5(0x1c7)&&(this['_status$'][_0x4c25d5(0x161)](_0x4c25d5(0x115)),this[_0x4c25d5(0x1d4)]['send']({'eventID':_[_0x4c25d5(0x135)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x4c25d5(0x12c)]));}[_0x18c3b9(0x1af)](){var _0x41c02c=_0x18c3b9;this[_0x41c02c(0x16b)]===_0x41c02c(0x114)&&(this[_0x41c02c(0x195)][_0x41c02c(0x161)](_0x41c02c(0x120)),this[_0x41c02c(0x164)]());}[_0x18c3b9(0x165)](){var _0x2800e9=_0x18c3b9;this[_0x2800e9(0x16b)]===_0x2800e9(0x120)&&this[_0x2800e9(0x18a)]();}['_handleNewHost'](_0x5c10a6){var _0xb1528c=_0x18c3b9;const {presenter:_0xe8037}=_0x5c10a6[_0xb1528c(0x19f)],_0x6a8224=this[_0xb1528c(0x1d4)]['getMemberID']();this[_0xb1528c(0x168)]=_0xe8037,_0xe8037===_0x6a8224?(this[_0xb1528c(0x18a)](),this[_0xb1528c(0x1cc)]()):this['_status']!==_0xb1528c(0x114)&&(this[_0xb1528c(0x173)](),this[_0xb1528c(0x164)]());}[_0x18c3b9(0x156)](){var _0xc101d4=_0x18c3b9;const _0x5afee9={'eventID':_['CollaborationEvent'][_0xc101d4(0x176)]};this[_0xc101d4(0x1d4)][_0xc101d4(0x142)](_0x5afee9,this[_0xc101d4(0x12c)]);}[_0x18c3b9(0x16e)](){var _0xded4a8=_0x18c3b9;this[_0xded4a8(0x168)]=null,this[_0xded4a8(0x16b)]!=='presenting'&&this['_beIdle']();}[_0x18c3b9(0x18e)](_0x32289f){var _0x2e4201=_0x18c3b9;if(this[_0x2e4201(0x16b)]==='following'&&this[_0x2e4201(0x168)]===_0x32289f[_0x2e4201(0x19f)][_0x2e4201(0x16c)]){const _0x108b09=_[_0x2e4201(0x1d3)](_0x32289f['data'])['mutations']['reverse']()['find'](_0x3000b1=>_0x3000b1['id']===C['InsertSheetMutation']['id']);if(_0x108b09){const _0x2a7189=_0x108b09['params'][_0x2e4201(0x1a1)],_0x1a5e66=_0x108b09[_0x2e4201(0x1e3)][_0x2e4201(0x151)]['id'];setTimeout(()=>{var _0x353b6c=_0x2e4201;this[_0x353b6c(0x1b4)][_0x353b6c(0x180)](C[_0x353b6c(0x1d9)]['id'],{'unitId':_0x2a7189,'subUnitId':_0x1a5e66},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3063c7=_0x18c3b9;this[_0x3063c7(0x195)][_0x3063c7(0x161)](_0x3063c7(0x1c7));const _0x153e94=new Map(),_0x332233=this[_0x3063c7(0x1d2)]=new o['DisposableCollection']();_0x332233[_0x3063c7(0x1c8)](o['toDisposable'](()=>{var _0x20d4f6=_0x3063c7;_0x153e94[_0x20d4f6(0x1be)](_0xfbfa0d=>_0xfbfa0d[_0x20d4f6(0x17d)]()),_0x153e94[_0x20d4f6(0x175)]();})),_0x332233[_0x3063c7(0x1c8)](this[_0x3063c7(0x1b4)]['onCommandExecuted'](_0x48a921=>{var _0xbe5a6=_0x3063c7,_0xb5e722;if(_0x48a921[_0xbe5a6(0x1b5)]!==o['CommandType'][_0xbe5a6(0x1da)]||!this[_0xbe5a6(0x1d6)]['shouldShareOperation'](_0x48a921['id']))return;const {id:_0x688265}=_0x48a921;let _0x5cd662;_0x153e94['has'](_0x688265)?_0x5cd662=_0x153e94['get'](_0x688265):(_0x5cd662=new w[(_0xbe5a6(0x15d))](),_0x153e94['set'](_0x688265,_0x5cd662),_0x5cd662['pipe'](b['throttleTime']((_0xb5e722=this[_0xbe5a6(0x1a5)][_0xbe5a6(0x1c6)](W))!=null?_0xb5e722:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xbe5a6(0x171)](_0x121319=>{var _0x4a0f7d=_0xbe5a6;this[_0x4a0f7d(0x1d4)][_0x4a0f7d(0x142)]({'eventID':_[_0x4a0f7d(0x135)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4a0f7d(0x12c)],'operations':{[_0x121319['id']]:{'id':_0x121319['id'],'params':JSON[_0x4a0f7d(0x183)](_0x121319['params'])}}}},this[_0x4a0f7d(0x12c)]);})),_0x5cd662['next'](_0x48a921);})),this[_0x3063c7(0x1d6)]['getInitialStates'](this[_0x3063c7(0x12c)])[_0x3063c7(0x1be)](_0x5b3cfb=>this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x3063c7(0x170)],'data':{'unitID':this[_0x3063c7(0x12c)],'operations':{[_0x5b3cfb['id']]:{'id':_0x5b3cfb['id'],'params':JSON['stringify'](_0x5b3cfb[_0x3063c7(0x1e3)])}}}},this['_unitID']));}[_0x18c3b9(0x173)](){var _0x2d8b32=_0x18c3b9,_0x34512f;this[_0x2d8b32(0x195)][_0x2d8b32(0x161)](_0x2d8b32(0x115)),(_0x34512f=this[_0x2d8b32(0x1d2)])==null||_0x34512f[_0x2d8b32(0x13f)](),this['_commandDisposable']=null;}[_0x18c3b9(0x164)](){var _0x463822=_0x18c3b9,_0x3c9e91;(_0x3c9e91=this[_0x463822(0x1d2)])==null||_0x3c9e91[_0x463822(0x13f)](),this['_status$'][_0x463822(0x161)](_0x463822(0x120));}[_0x18c3b9(0x11b)](){var _0x5e9f73=_0x18c3b9,_0x1b678a;this[_0x5e9f73(0x195)][_0x5e9f73(0x161)]('idle'),(_0x1b678a=this[_0x5e9f73(0x1d2)])==null||_0x1b678a[_0x5e9f73(0x13f)](),this['_commandDisposable']=null;}[_0x18c3b9(0x18a)](){var _0x1b99b4=_0x18c3b9,_0x560252;this[_0x1b99b4(0x195)][_0x1b99b4(0x161)](_0x1b99b4(0x114)),(_0x560252=this[_0x1b99b4(0x1d2)])==null||_0x560252[_0x1b99b4(0x13f)]();}[_0x18c3b9(0x1e2)](_0x549932){var _0x3199e2=_0x18c3b9;if([_0x3199e2(0x1c7),_0x3199e2(0x114),'offline'][_0x3199e2(0x144)](this[_0x3199e2(0x16b)])||!_0x549932[_0x3199e2(0x19f)][_0x3199e2(0x13e)]||_0x549932[_0x3199e2(0x19f)][_0x3199e2(0x13e)]===this[_0x3199e2(0x1d4)][_0x3199e2(0x1de)]())return;this[_0x3199e2(0x16b)]===_0x3199e2(0x115)&&this[_0x3199e2(0x164)]();const _0x3de41a=_0x549932['data']['operations'];Object[_0x3199e2(0x140)](_0x3de41a)[_0x3199e2(0x1be)](_0x2d511e=>{var _0x297d94=_0x3199e2;this[_0x297d94(0x1b4)]['executeCommand'](_0x2d511e['id'],_0x2d511e[_0x297d94(0x1e3)]?JSON[_0x297d94(0x1b0)](_0x2d511e['params']):null,{'fromCollab':!0x0});});}[_0x18c3b9(0x1dc)](){var _0x3e5fdb=_0x18c3b9,_0x2c3731;this[_0x3e5fdb(0x195)][_0x3e5fdb(0x161)](_0x3e5fdb(0x192)),(_0x2c3731=this[_0x3e5fdb(0x1d2)])==null||_0x2c3731['dispose']();}['_handleOnline'](){var _0x1ace12=_0x18c3b9;this[_0x1ace12(0x195)][_0x1ace12(0x161)](_0x1ace12(0x115)),this['_fetchOperations']();}},exports[_0x18c3b9(0x14f)]=R([S(0x2,o[_0x18c3b9(0x16d)]),S(0x3,o[_0x18c3b9(0x1ad)](O)),S(0x4,o['ICommandService'])],exports[_0x18c3b9(0x14f)]);function A(){var _0x52f152=_0x18c3b9;const _0x519cda=p['useDependency'](exports['LiveShareController']),_0x4d3b13=p[_0x52f152(0x193)](o[_0x52f152(0x11e)]),_0x4c65f6=p[_0x52f152(0x160)](()=>_0x4d3b13[_0x52f152(0x13a)](o['UniverInstanceType'][_0x52f152(0x16f)]),void 0x0,!0x1,[]),[_0x478bb8,_0x392496]=f[_0x52f152(0x18c)](null),[_0x38b73f,_0x4aa9df]=f[_0x52f152(0x18c)](h[_0x52f152(0x119)]),_0x1723c0=f[_0x52f152(0x1cf)](null);return f[_0x52f152(0x130)](()=>(_0x4c65f6&&_0x519cda[_0x52f152(0x149)](_0x4c65f6['getUnitId']())[_0x52f152(0x138)](_0x28db79=>{var _0x2beff6=_0x52f152;_0x392496(_0x28db79),_0x1723c0['current']=_0x28db79[_0x2beff6(0x1e4)][_0x2beff6(0x171)](_0x5ec4f9=>{_0x4aa9df(_0x5ec4f9);});}),()=>{var _0x53071b=_0x52f152,_0x14ef4e;(_0x14ef4e=_0x1723c0[_0x53071b(0x178)])==null||_0x14ef4e[_0x53071b(0x146)](),_0x1723c0[_0x53071b(0x178)]=null;}),[_0x4c65f6,_0x519cda]),_0x478bb8?l[_0x52f152(0x127)](g[_0x52f152(0x179)],{'align':_0x52f152(0x167),'disabled':_0x38b73f===h[_0x52f152(0x19c)],'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[_0x52f152(0x127)](B,{'status':_0x38b73f,'coordinator':_0x478bb8}),'children':l[_0x52f152(0x127)](_0x52f152(0x194),{'className':g['clsx'](_0x52f152(0x12d),{'univer-cursor-not-allowed':_0x38b73f===h[_0x52f152(0x19c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38b73f!==h['OFFLINE']}),'type':_0x52f152(0x194),'children':l[_0x52f152(0x127)](P,{'className':_0x52f152(0x1d1)})})}):null;}function B(_0x16435b){var _0x421127=_0x18c3b9;const {status:_0x4a50e7,coordinator:_0x432354}=_0x16435b;switch(_0x4a50e7){case h[_0x421127(0x119)]:return l['jsx'](Y,{'coordinator':_0x432354});case h[_0x421127(0x14c)]:return l[_0x421127(0x127)](Z,{'coordinator':_0x432354});case h['NOT_FOLLOWING']:return l[_0x421127(0x127)](J,{'coordinator':_0x432354});case h[_0x421127(0x19c)]:return l[_0x421127(0x127)](z,{});case h[_0x421127(0x11d)]:return l[_0x421127(0x127)](K,{'coordinator':_0x432354});default:return null;}}function Y(_0x18a968){var _0x1743d0=_0x18c3b9;const {coordinator:_0x77afd0}=_0x18a968;return l[_0x1743d0(0x1b1)](l[_0x1743d0(0x17c)],{'children':[l['jsx'](_0x1743d0(0x112),{'className':_0x1743d0(0x122),'children':_0x1743d0(0x174)}),l[_0x1743d0(0x127)](g[_0x1743d0(0x19d)],{'onClick':()=>_0x77afd0['tryStartPresenting'](),'children':_0x1743d0(0x1bf)})]});}function Z(_0x3dc7b4){var _0x122016=_0x18c3b9;const {coordinator:_0x59e1f4}=_0x3dc7b4;return l[_0x122016(0x1b1)](l[_0x122016(0x17c)],{'children':[l[_0x122016(0x127)]('div',{'className':_0x122016(0x122),'children':_0x122016(0x1a9)}),l[_0x122016(0x127)](g[_0x122016(0x19d)],{'onClick':()=>_0x59e1f4[_0x122016(0x165)](),'children':_0x122016(0x10f)})]});}function J(_0x7dd80b){var _0x526ad1=_0x18c3b9;const {coordinator:_0x110aa1}=_0x7dd80b;return l[_0x526ad1(0x1b1)](l[_0x526ad1(0x17c)],{'children':[l[_0x526ad1(0x127)](_0x526ad1(0x112),{'className':_0x526ad1(0x122),'children':_0x526ad1(0x1e1)}),l[_0x526ad1(0x127)](g[_0x526ad1(0x19d)],{'variant':_0x526ad1(0x1b2),'onClick':()=>_0x110aa1[_0x526ad1(0x1af)](),'children':_0x526ad1(0x1bd)})]});}function K(_0x43239f){var _0xba5143=_0x18c3b9;const {coordinator:_0x5b392c}=_0x43239f;return l[_0xba5143(0x1b1)](l[_0xba5143(0x17c)],{'children':[l['jsx'](_0xba5143(0x112),{'className':_0xba5143(0x122),'children':_0xba5143(0x15b)}),l[_0xba5143(0x127)](g[_0xba5143(0x19d)],{'variant':_0xba5143(0x1a7),'onClick':()=>_0x5b392c[_0xba5143(0x18f)](),'children':'Stop\x20presenting'})]});}function z(){var _0x1790e4=_0x18c3b9;return l['jsx'](l['Fragment'],{'children':_0x1790e4(0x1a8)});}var Q=Object[_0x18c3b9(0x1bc)],X=(_0x300416,_0x468bee,_0x42b346,_0x290eec)=>{for(var _0x53ab0b=_0x290eec>0x1?void 0x0:_0x290eec?Q(_0x468bee,_0x42b346):_0x468bee,_0x1d4b30=_0x300416['length']-0x1,_0x5727b1;_0x1d4b30>=0x0;_0x1d4b30--)(_0x5727b1=_0x300416[_0x1d4b30])&&(_0x53ab0b=_0x5727b1(_0x53ab0b)||_0x53ab0b);return _0x53ab0b;},x=(_0x35aaee,_0x5796f9)=>(_0x199560,_0x25caee)=>_0x5796f9(_0x199560,_0x25caee,_0x35aaee);exports['DesktopLiveShareController']=class extends o[_0x18c3b9(0x191)]{constructor(_0x413c41,_0x13285f){var _0x519e19=_0x18c3b9;super(),this['_injector']=_0x413c41,this[_0x519e19(0x1ac)]=_0x13285f,this[_0x519e19(0x15a)]();}[_0x18c3b9(0x15a)](){var _0x5b7d35=_0x18c3b9;this[_0x5b7d35(0x1aa)](this[_0x5b7d35(0x1ac)][_0x5b7d35(0x14b)](p['BuiltInUIPart'][_0x5b7d35(0x166)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x18c3b9(0x124)]=X([x(0x0,o[_0x18c3b9(0x1ad)](o[_0x18c3b9(0x16a)])),x(0x1,p[_0x18c3b9(0x1c3)])],exports[_0x18c3b9(0x124)]);const ee=_0x18c3b9(0x1ab),L={};var te=Object[_0x18c3b9(0x1bc)],ie=(_0x4de1df,_0x11eced,_0x9a05c5,_0x1e32b9)=>{var _0x4a0bae=_0x18c3b9;for(var _0x13668d=_0x1e32b9>0x1?void 0x0:_0x1e32b9?te(_0x11eced,_0x9a05c5):_0x11eced,_0x30582f=_0x4de1df[_0x4a0bae(0x147)]-0x1,_0x413a0c;_0x30582f>=0x0;_0x30582f--)(_0x413a0c=_0x4de1df[_0x30582f])&&(_0x13668d=_0x413a0c(_0x13668d)||_0x13668d);return _0x13668d;},ne=(_0x33b05a,_0x1374b9)=>(_0x45ae89,_0x29346d)=>_0x1374b9(_0x45ae89,_0x29346d,_0x33b05a);let E=class extends o[_0x18c3b9(0x191)]{constructor(_0x1d8e9f){var _0x516ec1=_0x18c3b9;super(),this[_0x516ec1(0x1d6)]=_0x1d8e9f,this['_init']();}[_0x18c3b9(0x10d)](){var _0x2ad497=_0x18c3b9;[D[_0x2ad497(0x117)]['id'],D[_0x2ad497(0x113)]['id'],C['SetWorksheetActiveOperation']['id']][_0x2ad497(0x1be)](_0x201d8a=>{var _0x2ef5f5=_0x2ad497;this[_0x2ef5f5(0x1aa)](this[_0x2ef5f5(0x1d6)][_0x2ef5f5(0x1b6)](_0x201d8a));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x18c3b9(0x1c1)],se=Object[_0x18c3b9(0x1bc)],oe=(_0x26be65,_0x14b7d7,_0x4f6fbd)=>_0x14b7d7 in _0x26be65?re(_0x26be65,_0x14b7d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f6fbd}):_0x26be65[_0x14b7d7]=_0x4f6fbd,ae=(_0x334678,_0x25a6dc,_0x21e970,_0x4a115e)=>{var _0x4d4cc9=_0x18c3b9;for(var _0x16d551=_0x4a115e>0x1?void 0x0:_0x4a115e?se(_0x25a6dc,_0x21e970):_0x25a6dc,_0x100497=_0x334678[_0x4d4cc9(0x147)]-0x1,_0x201d00;_0x100497>=0x0;_0x100497--)(_0x201d00=_0x334678[_0x100497])&&(_0x16d551=_0x201d00(_0x16d551)||_0x16d551);return _0x16d551;},N=(_0xe3c7c2,_0x4ab682)=>(_0x3102a4,_0x105af6)=>_0x4ab682(_0x3102a4,_0x105af6,_0xe3c7c2),T=(_0x5c0464,_0x2d17f8,_0x3e0418)=>oe(_0x5c0464,typeof _0x2d17f8!=_0x18c3b9(0x17a)?_0x2d17f8+'':_0x2d17f8,_0x3e0418);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x18c3b9(0x1b9)]=class extends o[_0x18c3b9(0x145)]{constructor(_0x448034=L,_0x115672,_0x7dee56){var _0x34feaf=_0x18c3b9;super(),this['_config']=_0x448034,this[_0x34feaf(0x1ce)]=_0x115672,this[_0x34feaf(0x1a5)]=_0x7dee56;const {..._0x55b268}=o[_0x34feaf(0x14a)]({},L,this[_0x34feaf(0x148)]);this['_configService'][_0x34feaf(0x1df)](ee,_0x55b268);}[_0x18c3b9(0x110)](){var _0x489818=_0x18c3b9;o[_0x489818(0x143)](this[_0x489818(0x1ce)],o[_0x489818(0x1e0)]([[O],[exports[_0x489818(0x13c)]],[E],[exports['DesktopLiveShareController']]],this[_0x489818(0x148)]['override'])),o[_0x489818(0x123)](this['_injector'],[[E]]);}[_0x18c3b9(0x111)](){var _0x23c0fc=_0x18c3b9;o[_0x23c0fc(0x123)](this['_injector'],[[exports[_0x23c0fc(0x124)]]]);}},T(exports[_0x18c3b9(0x1b9)],_0x18c3b9(0x1b5),o[_0x18c3b9(0x132)]['UNIVER_UNKNOWN']),T(exports[_0x18c3b9(0x1b9)],'pluginName',le),exports[_0x18c3b9(0x1b9)]=ae([o[_0x18c3b9(0x15f)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x18c3b9(0x1ad)](o[_0x18c3b9(0x16a)])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x18c3b9(0x17b)]=A,exports[_0x18c3b9(0x154)]=O,exports[_0x18c3b9(0x118)]=h;
|
|
1
|
+
'use strict';var _0x40864b=_0x12d2;(function(_0xdfdd6f,_0x326e47){var _0x41251f=_0x12d2,_0x397111=_0xdfdd6f();while(!![]){try{var _0x565090=-parseInt(_0x41251f(0x23e))/0x1*(parseInt(_0x41251f(0x21c))/0x2)+-parseInt(_0x41251f(0x292))/0x3*(parseInt(_0x41251f(0x24a))/0x4)+-parseInt(_0x41251f(0x1e1))/0x5*(-parseInt(_0x41251f(0x20e))/0x6)+-parseInt(_0x41251f(0x203))/0x7+-parseInt(_0x41251f(0x239))/0x8*(-parseInt(_0x41251f(0x277))/0x9)+parseInt(_0x41251f(0x250))/0xa*(-parseInt(_0x41251f(0x1e8))/0xb)+parseInt(_0x41251f(0x1ff))/0xc*(parseInt(_0x41251f(0x280))/0xd);if(_0x565090===_0x326e47)break;else _0x397111['push'](_0x397111['shift']());}catch(_0x4e8e20){_0x397111['push'](_0x397111['shift']());}}}(_0x2db9,0x56add));var U=Object['defineProperty'],F=(_0x521c4f,_0x243ff3,_0x4f2f5e)=>_0x243ff3 in _0x521c4f?U(_0x521c4f,_0x243ff3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f2f5e}):_0x521c4f[_0x243ff3]=_0x4f2f5e,v=(_0x14a87e,_0x5c15da,_0x1d63e2)=>F(_0x14a87e,typeof _0x5c15da!=_0x40864b(0x1e6)?_0x5c15da+'':_0x5c15da,_0x1d63e2);Object[_0x40864b(0x210)](exports,Symbol[_0x40864b(0x29f)],{'value':_0x40864b(0x223)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x6cc666=_0x40864b;return u=Object[_0x6cc666(0x293)]||function(_0x136ccc){var _0x5e301a=_0x6cc666;for(var _0x1139a3,_0x2bba29=0x1,_0x27ac07=arguments[_0x5e301a(0x252)];_0x2bba29<_0x27ac07;_0x2bba29++){_0x1139a3=arguments[_0x2bba29];for(var _0x339c8e in _0x1139a3)Object[_0x5e301a(0x27f)]['hasOwnProperty'][_0x5e301a(0x2a8)](_0x1139a3,_0x339c8e)&&(_0x136ccc[_0x339c8e]=_0x1139a3[_0x339c8e]);}return _0x136ccc;},u['apply'](this,arguments);},$=function(_0xf6059a,_0x4ea3aa){var _0x141fbc=_0x40864b,_0x409b61={};for(var _0x250edf in _0xf6059a)Object[_0x141fbc(0x27f)][_0x141fbc(0x253)]['call'](_0xf6059a,_0x250edf)&&_0x4ea3aa['indexOf'](_0x250edf)<0x0&&(_0x409b61[_0x250edf]=_0xf6059a[_0x250edf]);if(_0xf6059a!=null&&typeof Object[_0x141fbc(0x26c)]=='function'){for(var _0x512453=0x0,_0x250edf=Object[_0x141fbc(0x26c)](_0xf6059a);_0x512453<_0x250edf[_0x141fbc(0x252)];_0x512453++)_0x4ea3aa[_0x141fbc(0x1c2)](_0x250edf[_0x512453])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x141fbc(0x2a8)](_0xf6059a,_0x250edf[_0x512453])&&(_0x409b61[_0x250edf[_0x512453]]=_0xf6059a[_0x250edf[_0x512453]]);}return _0x409b61;},j=f[_0x40864b(0x25e)](function(_0x57fb0f,_0x4f81c3){var _0x31531a=_0x40864b,_0x1a0b14=_0x57fb0f[_0x31531a(0x28f)],_0x4f8dbd=_0x57fb0f['id'],_0x5a8af0=_0x57fb0f[_0x31531a(0x273)],_0x386da2=_0x57fb0f[_0x31531a(0x1db)],_0xa813ee=$(_0x57fb0f,['icon','id','className','extend']),_0x45dc76=_0x31531a(0x22c)[_0x31531a(0x20a)](_0x4f8dbd,'\x20')[_0x31531a(0x20a)](_0x5a8af0||'')[_0x31531a(0x212)](),_0x3620d2=f[_0x31531a(0x263)]('_'['concat'](k()));return y(_0x1a0b14,''[_0x31531a(0x20a)](_0x4f8dbd),{'defIds':_0x1a0b14['defIds'],'idSuffix':_0x3620d2[_0x31531a(0x25a)]},u({'ref':_0x4f81c3,'className':_0x45dc76},_0xa813ee),_0x386da2);});function y(_0x239cf4,_0x2126f6,_0x3081d3,_0x191bb7,_0x4ea8a0){var _0x3d91c1=_0x40864b;return f['createElement'](_0x239cf4[_0x3d91c1(0x1d2)],u(u({'key':_0x2126f6},H(_0x239cf4,_0x3081d3,_0x4ea8a0)),_0x191bb7),(V(_0x239cf4,_0x3081d3)[_0x3d91c1(0x276)]||[])[_0x3d91c1(0x206)](function(_0x50b424,_0x4112a4){var _0x122eb0=_0x3d91c1;return y(_0x50b424,''['concat'](_0x2126f6,'-')[_0x122eb0(0x20a)](_0x239cf4[_0x122eb0(0x1d2)],'-')['concat'](_0x4112a4),_0x3081d3,void 0x0,_0x4ea8a0);}));}function H(_0xf18d3e,_0xda2b8f,_0x444279){var _0x12218e=_0x40864b,_0x558ea2=u({},_0xf18d3e[_0x12218e(0x20c)]);_0x444279!=null&&_0x444279[_0x12218e(0x255)]&&_0x558ea2[_0x12218e(0x241)]===_0x12218e(0x255)&&(_0x558ea2[_0x12218e(0x241)]=_0x444279[_0x12218e(0x255)]),_0xf18d3e[_0x12218e(0x1d2)]===_0x12218e(0x202)&&_0x558ea2['id']&&(_0x558ea2['id']=_0x558ea2['id']+_0xda2b8f[_0x12218e(0x1c3)]),Object['entries'](_0x558ea2)[_0x12218e(0x274)](function(_0x59a5a8){var _0x4ba604=_0x12218e,_0x168f2d=_0x59a5a8[0x0],_0x233e6a=_0x59a5a8[0x1];_0x168f2d==='mask'&&typeof _0x233e6a==_0x4ba604(0x1ce)&&(_0x558ea2[_0x168f2d]=_0x233e6a[_0x4ba604(0x287)](/url\(#(.*)\)/,_0x4ba604(0x266)['concat'](_0xda2b8f['idSuffix'],')')));});var _0x41a5c3=_0xda2b8f[_0x12218e(0x21f)];return!_0x41a5c3||_0x41a5c3[_0x12218e(0x252)]===0x0||(_0xf18d3e[_0x12218e(0x1d2)]==='use'&&_0x558ea2[_0x12218e(0x23f)]&&(_0x558ea2[_0x12218e(0x23f)]=_0x558ea2[_0x12218e(0x23f)]+_0xda2b8f[_0x12218e(0x1c3)]),Object[_0x12218e(0x262)](_0x558ea2)[_0x12218e(0x274)](function(_0x2b49b9){var _0x201b36=_0x12218e,_0x263b77=_0x2b49b9[0x0],_0xae4a0d=_0x2b49b9[0x1];typeof _0xae4a0d==_0x201b36(0x1ce)&&(_0x558ea2[_0x263b77]=_0xae4a0d[_0x201b36(0x287)](/url\(#(.*)\)/,_0x201b36(0x266)[_0x201b36(0x20a)](_0xda2b8f[_0x201b36(0x1c3)],')')));})),_0x558ea2;}function V(_0x4ae17c,_0x7f1d62){var _0xec3667=_0x40864b,_0xf5ba38,_0x4c9ced=_0x7f1d62['defIds'];return!_0x4c9ced||_0x4c9ced[_0xec3667(0x252)]===0x0?_0x4ae17c:_0x4ae17c[_0xec3667(0x1d2)]===_0xec3667(0x246)&&(!((_0xf5ba38=_0x4ae17c[_0xec3667(0x276)])===null||_0xf5ba38===void 0x0)&&_0xf5ba38[_0xec3667(0x252)])?u(u({},_0x4ae17c),{'children':_0x4ae17c[_0xec3667(0x276)][_0xec3667(0x206)](function(_0x646916){var _0x1f7e2f=_0xec3667;return typeof _0x646916[_0x1f7e2f(0x20c)]['id']==_0x1f7e2f(0x1ce)&&_0x4c9ced&&_0x4c9ced[_0x1f7e2f(0x28d)](_0x646916['attrs']['id'])?u(u({},_0x646916),{'attrs':u(u({},_0x646916[_0x1f7e2f(0x20c)]),{'id':_0x646916[_0x1f7e2f(0x20c)]['id']+_0x7f1d62[_0x1f7e2f(0x1c3)]})}):_0x646916;})}):_0x4ae17c;}function k(){var _0x1db395=_0x40864b;return Math[_0x1db395(0x28a)]()[_0x1db395(0x24d)](0x24)[_0x1db395(0x267)](0x2,0x8);}j['displayName']='UniverIcon';var M={'tag':_0x40864b(0x1f7),'attrs':{'xmlns':_0x40864b(0x269),'fill':_0x40864b(0x1dc),'viewBox':_0x40864b(0x295),'width':'1em','height':_0x40864b(0x22e)},'children':[{'tag':_0x40864b(0x29a),'attrs':{'fill':_0x40864b(0x1e5),'d':_0x40864b(0x21d)}},{'tag':_0x40864b(0x29a),'attrs':{'fill':_0x40864b(0x1e5),'d':_0x40864b(0x231),'fillRule':'evenodd','clipRule':_0x40864b(0x25b)}}]},P=f[_0x40864b(0x25e)](function(_0x4cc5fe,_0x1920a5){var _0x381027=_0x40864b;return f['createElement'](j,Object['assign']({},_0x4cc5fe,{'id':_0x381027(0x294),'ref':_0x1920a5,'icon':M}));});P[_0x40864b(0x1fa)]=_0x40864b(0x1e2);class O extends o[_0x40864b(0x268)]{constructor(){var _0x48ce83=_0x40864b;super(...arguments),v(this,_0x48ce83(0x1ea),new Set()),v(this,'_reporters',new Set());}[_0x40864b(0x27d)](_0x3dbdce){var _0x593f13=_0x40864b;return this['_sharedOperations'][_0x593f13(0x259)](_0x3dbdce),o['toDisposable'](()=>this['_sharedOperations']['delete'](_0x3dbdce));}[_0x40864b(0x21e)](_0x45401c){var _0x5ce5a8=_0x40864b;return this[_0x5ce5a8(0x26e)][_0x5ce5a8(0x259)](_0x45401c),o[_0x5ce5a8(0x23d)](()=>this[_0x5ce5a8(0x26e)][_0x5ce5a8(0x1fe)](_0x45401c));}[_0x40864b(0x25c)](_0x3a92fb){var _0xb57d2=_0x40864b;return this[_0xb57d2(0x1ea)][_0xb57d2(0x1c6)](_0x3a92fb);}[_0x40864b(0x26b)](_0x96a089){var _0x552373=_0x40864b;return Array[_0x552373(0x1c7)](this[_0x552373(0x26e)])[_0x552373(0x206)](_0x221d64=>_0x221d64(_0x96a089));}}var q=Object[_0x40864b(0x284)],R=(_0x8fac8b,_0x3bb8c6,_0x1a1d66,_0xaed08a)=>{var _0xa7da4d=_0x40864b;for(var _0x1c8b8c=_0xaed08a>0x1?void 0x0:_0xaed08a?q(_0x3bb8c6,_0x1a1d66):_0x3bb8c6,_0x767c38=_0x8fac8b[_0xa7da4d(0x252)]-0x1,_0x44b0f9;_0x767c38>=0x0;_0x767c38--)(_0x44b0f9=_0x8fac8b[_0x767c38])&&(_0x1c8b8c=_0x44b0f9(_0x1c8b8c)||_0x1c8b8c);return _0x1c8b8c;},S=(_0x2e7cc,_0x162821)=>(_0x3e0254,_0x5097a6)=>_0x162821(_0x3e0254,_0x5097a6,_0x2e7cc);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x1b9950,_0x64b1d4,_0x21a0a4){var _0x5d787e=_0x40864b;super(),v(this,_0x5d787e(0x275),new Map()),(this[_0x5d787e(0x29e)]=_0x1b9950,this['_injector']=_0x64b1d4,this['_collabSessionService']=_0x21a0a4,this[_0x5d787e(0x285)]());}async[_0x40864b(0x286)](_0x22e09e){var _0x482310=_0x40864b;return this[_0x482310(0x275)][_0x482310(0x1c6)](_0x22e09e)||await this['_startLiveShareCoordinator'](_0x22e09e),this[_0x482310(0x275)]['get'](_0x22e09e);}[_0x40864b(0x285)](){var _0x52dde4=_0x40864b;this[_0x52dde4(0x29e)][_0x52dde4(0x20f)](o[_0x52dde4(0x1d4)]['UNIVER_SHEET'])[_0x52dde4(0x205)](b[_0x52dde4(0x2a1)](this['dispose$']))[_0x52dde4(0x1cc)](async _0x4403b4=>{var _0x18b084=_0x52dde4;const _0x1a2483=_0x4403b4[_0x18b084(0x220)]();this['_entities'][_0x18b084(0x1c6)](_0x1a2483)||this[_0x18b084(0x217)](_0x1a2483);}),this[_0x52dde4(0x29e)][_0x52dde4(0x228)](o[_0x52dde4(0x1d4)][_0x52dde4(0x1cd)])[_0x52dde4(0x205)](b[_0x52dde4(0x2a1)](this[_0x52dde4(0x21a)]))[_0x52dde4(0x1cc)](_0x204dc1=>{var _0x2982d5=_0x52dde4;const _0x2a0421=_0x204dc1['getUnitId'](),_0x5dc5a2=this[_0x2982d5(0x275)][_0x2982d5(0x230)](_0x2a0421);_0x5dc5a2==null||_0x5dc5a2[_0x2982d5(0x1df)]();});}async['_startLiveShareCoordinator'](_0x1715b4){var _0x37cacc=_0x40864b;const _0x1b3c62=await this[_0x37cacc(0x1d7)][_0x37cacc(0x1e9)](_0x1715b4),_0x4c06d2=this[_0x37cacc(0x22b)][_0x37cacc(0x1de)](exports[_0x37cacc(0x1d1)],_0x1715b4,_0x1b3c62);return _0x4c06d2['init'](),this[_0x37cacc(0x275)][_0x37cacc(0x20b)](_0x1715b4,_0x4c06d2),_0x4c06d2;}},exports[_0x40864b(0x22f)]=R([S(0x0,o[_0x40864b(0x200)]),S(0x1,o['Inject'](o[_0x40864b(0x28b)])),S(0x2,o[_0x40864b(0x207)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x1b35a7=>(_0x1b35a7[_0x40864b(0x208)]=_0x40864b(0x1fd),_0x1b35a7[_0x40864b(0x232)]=_0x40864b(0x222),_0x1b35a7[_0x40864b(0x1cf)]=_0x40864b(0x2a6),_0x1b35a7['NOT_FOLLOWING']=_0x40864b(0x1e0),_0x1b35a7['PRESENTING']=_0x40864b(0x278),_0x1b35a7))(h||{});const W=_0x40864b(0x1dd),G=0xc8;exports[_0x40864b(0x1d1)]=class extends o[_0x40864b(0x291)]{constructor(_0x210c58,_0x37968f,_0x321169,_0x4ddb81,_0x417c95){var _0x2d6fe8=_0x40864b;super(),v(this,'_status$',new w[(_0x2d6fe8(0x298))](_0x2d6fe8(0x222))),v(this,_0x2d6fe8(0x236),this[_0x2d6fe8(0x1ec)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x2d6fe8(0x2aa),null),v(this,_0x2d6fe8(0x240),null),(this['_unitID']=_0x210c58,this['_collabSession']=_0x37968f,this['_configService']=_0x321169,this[_0x2d6fe8(0x23b)]=_0x4ddb81,this[_0x2d6fe8(0x219)]=_0x417c95);}get[_0x40864b(0x1cb)](){var _0x42d4e6=_0x40864b;return this[_0x42d4e6(0x1ec)]['getValue']();}[_0x40864b(0x1df)](){var _0xb0ec19=_0x40864b,_0x231dfb;(_0x231dfb=this['_commandDisposable'])==null||_0x231dfb[_0xb0ec19(0x1df)](),this[_0xb0ec19(0x1ec)]['next'](_0xb0ec19(0x222)),this[_0xb0ec19(0x1ec)][_0xb0ec19(0x2a3)]();}[_0x40864b(0x1e4)](){var _0x2cb014=_0x40864b;this['_init']||(this['_init']=!0x0,this[_0x2cb014(0x1c9)][_0x2cb014(0x1f0)][_0x2cb014(0x205)](b[_0x2cb014(0x2a1)](this[_0x2cb014(0x21a)]))[_0x2cb014(0x1cc)](_0x2820e7=>{var _0x3e750e=_0x2cb014;switch(_0x2820e7){case m['SessionStatus'][_0x3e750e(0x208)]:this['_handleOffline']();break;case m[_0x3e750e(0x29d)]['ONLINE']:this[_0x3e750e(0x21b)]();break;}}),this[_0x2cb014(0x1c9)][_0x2cb014(0x1ef)][_0x2cb014(0x205)](b['takeUntil'](this['dispose$']))[_0x2cb014(0x1cc)](_0x4330e4=>{var _0x1e5cdd=_0x2cb014;const {eventID:_0x4d9fbe}=_0x4330e4;switch(_0x4d9fbe){case _[_0x1e5cdd(0x1f2)]['LIVESHARE_NEW_HOST']:this[_0x1e5cdd(0x25f)](_0x4330e4);break;case _['CollaborationEvent'][_0x1e5cdd(0x289)]:this[_0x1e5cdd(0x1c5)](_0x4330e4);break;case _[_0x1e5cdd(0x1f2)]['LIVESHARE_TERMINATE']:this[_0x1e5cdd(0x22d)]();break;case _[_0x1e5cdd(0x1f2)][_0x1e5cdd(0x2a9)]:this[_0x1e5cdd(0x270)](_0x4330e4);break;}}));}[_0x40864b(0x249)](){var _0x519931=_0x40864b;this[_0x519931(0x1c9)][_0x519931(0x2a0)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x519931(0x271)],'userID':this[_0x519931(0x1c9)][_0x519931(0x244)]()}},this[_0x519931(0x271)]);}['stopPresenting'](){var _0x128f5c=_0x40864b;this[_0x128f5c(0x1cb)]===_0x128f5c(0x278)&&(this['_status$'][_0x128f5c(0x227)]('idle'),this['_collabSession'][_0x128f5c(0x2a0)]({'eventID':_['CollaborationEvent'][_0x128f5c(0x1c8)],'data':{'unitID':this[_0x128f5c(0x271)]}},this[_0x128f5c(0x271)]));}[_0x40864b(0x290)](){var _0x27704d=_0x40864b;this[_0x27704d(0x1cb)]===_0x27704d(0x1e0)&&(this[_0x27704d(0x1ec)][_0x27704d(0x227)]('following'),this[_0x27704d(0x248)]());}[_0x40864b(0x233)](){var _0x58699e=_0x40864b;this['_status']===_0x58699e(0x2a6)&&this['_stopFollowing']();}['_handleNewHost'](_0x5d0f1b){var _0x6ab780=_0x40864b;const {presenter:_0x216829}=_0x5d0f1b['data'],_0x488034=this[_0x6ab780(0x1c9)][_0x6ab780(0x244)]();this[_0x6ab780(0x240)]=_0x216829,_0x216829===_0x488034?(this[_0x6ab780(0x1fb)](),this[_0x6ab780(0x1d9)]()):this[_0x6ab780(0x1cb)]!==_0x6ab780(0x1e0)&&(this[_0x6ab780(0x221)](),this[_0x6ab780(0x248)]());}[_0x40864b(0x1f8)](){var _0x528b46=_0x40864b;const _0x376929={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x528b46(0x1c9)][_0x528b46(0x2a0)](_0x376929,this[_0x528b46(0x271)]);}[_0x40864b(0x22d)](){var _0x265e6c=_0x40864b;this['_presenter']=null,this[_0x265e6c(0x1cb)]!==_0x265e6c(0x278)&&this[_0x265e6c(0x265)]();}[_0x40864b(0x270)](_0xe3b3bf){var _0x48a74e=_0x40864b;if(this[_0x48a74e(0x1cb)]===_0x48a74e(0x2a6)&&this[_0x48a74e(0x240)]===_0xe3b3bf[_0x48a74e(0x256)][_0x48a74e(0x257)]){const _0x47560f=_[_0x48a74e(0x258)](_0xe3b3bf[_0x48a74e(0x256)])[_0x48a74e(0x261)][_0x48a74e(0x1d3)]()[_0x48a74e(0x1d6)](_0x397bce=>_0x397bce['id']===C['InsertSheetMutation']['id']);if(_0x47560f){const _0x365bfe=_0x47560f[_0x48a74e(0x23a)][_0x48a74e(0x254)],_0x3caae6=_0x47560f[_0x48a74e(0x23a)][_0x48a74e(0x247)]['id'];setTimeout(()=>{var _0x4fcbc7=_0x48a74e;this[_0x4fcbc7(0x219)]['executeCommand'](C[_0x4fcbc7(0x1f9)]['id'],{'unitId':_0x365bfe,'subUnitId':_0x3caae6},{'fromCollab':!0x0});});}}}[_0x40864b(0x1d9)](){var _0x5a7fbf=_0x40864b;this[_0x5a7fbf(0x1ec)][_0x5a7fbf(0x227)](_0x5a7fbf(0x278));const _0x2496ea=new Map(),_0x8b017f=this['_commandDisposable']=new o[(_0x5a7fbf(0x296))]();_0x8b017f[_0x5a7fbf(0x259)](o['toDisposable'](()=>{var _0x164407=_0x5a7fbf;_0x2496ea[_0x164407(0x274)](_0x2225c6=>_0x2225c6['complete']()),_0x2496ea['clear']();})),_0x8b017f[_0x5a7fbf(0x259)](this[_0x5a7fbf(0x219)][_0x5a7fbf(0x216)](_0x4cc44c=>{var _0x34dd1c=_0x5a7fbf,_0x5b3264;if(_0x4cc44c[_0x34dd1c(0x238)]!==o[_0x34dd1c(0x1f6)][_0x34dd1c(0x243)]||!this[_0x34dd1c(0x23b)][_0x34dd1c(0x25c)](_0x4cc44c['id']))return;const {id:_0x4abb71}=_0x4cc44c;let _0x12456b;_0x2496ea['has'](_0x4abb71)?_0x12456b=_0x2496ea['get'](_0x4abb71):(_0x12456b=new w[(_0x34dd1c(0x272))](),_0x2496ea['set'](_0x4abb71,_0x12456b),_0x12456b['pipe'](b['throttleTime']((_0x5b3264=this[_0x34dd1c(0x2a5)][_0x34dd1c(0x214)](W))!=null?_0x5b3264:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2bc505=>{var _0xf3f25a=_0x34dd1c;this[_0xf3f25a(0x1c9)][_0xf3f25a(0x2a0)]({'eventID':_[_0xf3f25a(0x1f2)][_0xf3f25a(0x289)],'data':{'unitID':this[_0xf3f25a(0x271)],'operations':{[_0x2bc505['id']]:{'id':_0x2bc505['id'],'params':JSON['stringify'](_0x2bc505[_0xf3f25a(0x23a)])}}}},this['_unitID']);})),_0x12456b[_0x34dd1c(0x227)](_0x4cc44c);})),this[_0x5a7fbf(0x23b)][_0x5a7fbf(0x26b)](this[_0x5a7fbf(0x271)])['forEach'](_0x85ed92=>this[_0x5a7fbf(0x1c9)][_0x5a7fbf(0x2a0)]({'eventID':_['CollaborationEvent'][_0x5a7fbf(0x289)],'data':{'unitID':this[_0x5a7fbf(0x271)],'operations':{[_0x85ed92['id']]:{'id':_0x85ed92['id'],'params':JSON['stringify'](_0x85ed92[_0x5a7fbf(0x23a)])}}}},this[_0x5a7fbf(0x271)]));}[_0x40864b(0x221)](){var _0x5098db=_0x40864b,_0x24d8a9;this[_0x5098db(0x1ec)][_0x5098db(0x227)]('idle'),(_0x24d8a9=this['_commandDisposable'])==null||_0x24d8a9[_0x5098db(0x1df)](),this['_commandDisposable']=null;}[_0x40864b(0x248)](){var _0x53cf75=_0x40864b,_0x457b93;(_0x457b93=this[_0x53cf75(0x2aa)])==null||_0x457b93['dispose'](),this[_0x53cf75(0x1ec)][_0x53cf75(0x227)](_0x53cf75(0x2a6));}['_beIdle'](){var _0x1aa959=_0x40864b,_0x3b855f;this[_0x1aa959(0x1ec)][_0x1aa959(0x227)](_0x1aa959(0x222)),(_0x3b855f=this[_0x1aa959(0x2aa)])==null||_0x3b855f['dispose'](),this[_0x1aa959(0x2aa)]=null;}[_0x40864b(0x1fb)](){var _0x166541=_0x40864b,_0x53a80d;this['_status$'][_0x166541(0x227)](_0x166541(0x1e0)),(_0x53a80d=this[_0x166541(0x2aa)])==null||_0x53a80d[_0x166541(0x1df)]();}[_0x40864b(0x1c5)](_0x4746d0){var _0x274f1e=_0x40864b;if([_0x274f1e(0x278),_0x274f1e(0x1e0),_0x274f1e(0x1fd)]['includes'](this[_0x274f1e(0x1cb)])||!_0x4746d0[_0x274f1e(0x256)][_0x274f1e(0x1d5)]||_0x4746d0[_0x274f1e(0x256)][_0x274f1e(0x1d5)]===this['_collabSession'][_0x274f1e(0x244)]())return;this[_0x274f1e(0x1cb)]===_0x274f1e(0x222)&&this[_0x274f1e(0x248)]();const _0x4bbb7a=_0x4746d0[_0x274f1e(0x256)][_0x274f1e(0x245)];Object[_0x274f1e(0x23c)](_0x4bbb7a)[_0x274f1e(0x274)](_0x4ae2e2=>{var _0x273bba=_0x274f1e;this[_0x273bba(0x219)][_0x273bba(0x226)](_0x4ae2e2['id'],_0x4ae2e2[_0x273bba(0x23a)]?JSON[_0x273bba(0x251)](_0x4ae2e2[_0x273bba(0x23a)]):null,{'fromCollab':!0x0});});}[_0x40864b(0x27c)](){var _0x2d53d2=_0x40864b,_0x2ba91d;this[_0x2d53d2(0x1ec)][_0x2d53d2(0x227)](_0x2d53d2(0x1fd)),(_0x2ba91d=this[_0x2d53d2(0x2aa)])==null||_0x2ba91d[_0x2d53d2(0x1df)]();}[_0x40864b(0x21b)](){var _0x22b8f9=_0x40864b;this['_status$'][_0x22b8f9(0x227)](_0x22b8f9(0x222)),this[_0x22b8f9(0x1f8)]();}},exports[_0x40864b(0x1d1)]=R([S(0x2,o[_0x40864b(0x1ee)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x40864b(0x25d)])],exports['LiveShareCoordinator']);function A(){var _0x452e60=_0x40864b;const _0x2516e6=p[_0x452e60(0x24b)](exports[_0x452e60(0x22f)]),_0x4b5f57=p[_0x452e60(0x24b)](o['IUniverInstanceService']),_0xce9a31=p[_0x452e60(0x29c)](()=>_0x4b5f57[_0x452e60(0x1d0)](o['UniverInstanceType'][_0x452e60(0x1cd)]),void 0x0,!0x1,[]),[_0x10471,_0x5bf749]=f[_0x452e60(0x27e)](null),[_0x281b53,_0x4f6c26]=f[_0x452e60(0x27e)](h[_0x452e60(0x232)]),_0x41094c=f[_0x452e60(0x263)](null);return f[_0x452e60(0x1e7)](()=>(_0xce9a31&&_0x2516e6[_0x452e60(0x286)](_0xce9a31[_0x452e60(0x220)]())[_0x452e60(0x282)](_0x4fbaf2=>{var _0x3c5877=_0x452e60;_0x5bf749(_0x4fbaf2),_0x41094c[_0x3c5877(0x25a)]=_0x4fbaf2[_0x3c5877(0x236)][_0x3c5877(0x1cc)](_0x4aa504=>{_0x4f6c26(_0x4aa504);});}),()=>{var _0x2679a2=_0x452e60,_0x4763dc;(_0x4763dc=_0x41094c[_0x2679a2(0x25a)])==null||_0x4763dc[_0x2679a2(0x209)](),_0x41094c[_0x2679a2(0x25a)]=null;}),[_0xce9a31,_0x2516e6]),_0x10471?l[_0x452e60(0x229)](g[_0x452e60(0x283)],{'align':_0x452e60(0x26d),'disabled':_0x281b53===h[_0x452e60(0x208)],'className':_0x452e60(0x1fc),'overlay':l['jsx'](B,{'status':_0x281b53,'coordinator':_0x10471}),'children':l['jsx']('button',{'className':g[_0x452e60(0x297)](_0x452e60(0x2a2),{'univer-cursor-not-allowed':_0x281b53===h[_0x452e60(0x208)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x281b53!==h[_0x452e60(0x208)]}),'type':'button','children':l[_0x452e60(0x229)](P,{'className':_0x452e60(0x2a7)})})}):null;}function B(_0x44ab7e){var _0x3334f7=_0x40864b;const {status:_0x4be6d0,coordinator:_0x40cdfe}=_0x44ab7e;switch(_0x4be6d0){case h['IDLE']:return l[_0x3334f7(0x229)](Y,{'coordinator':_0x40cdfe});case h['FOLLOWING']:return l['jsx'](Z,{'coordinator':_0x40cdfe});case h[_0x3334f7(0x22a)]:return l['jsx'](J,{'coordinator':_0x40cdfe});case h['OFFLINE']:return l['jsx'](z,{});case h[_0x3334f7(0x211)]:return l[_0x3334f7(0x229)](K,{'coordinator':_0x40cdfe});default:return null;}}function Y(_0x91f9ab){var _0x4b82f0=_0x40864b;const {coordinator:_0x44979b}=_0x91f9ab;return l[_0x4b82f0(0x26f)](l['Fragment'],{'children':[l['jsx'](_0x4b82f0(0x218),{'className':_0x4b82f0(0x1eb),'children':_0x4b82f0(0x213)}),l[_0x4b82f0(0x229)](g[_0x4b82f0(0x281)],{'onClick':()=>_0x44979b['tryStartPresenting'](),'children':_0x4b82f0(0x24f)})]});}function Z(_0x2dfe1e){var _0x289924=_0x40864b;const {coordinator:_0x5b25af}=_0x2dfe1e;return l[_0x289924(0x26f)](l[_0x289924(0x299)],{'children':[l[_0x289924(0x229)](_0x289924(0x218),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x289924(0x2a4)}),l['jsx'](g['Button'],{'onClick':()=>_0x5b25af[_0x289924(0x233)](),'children':'Stop\x20following'})]});}function J(_0x568f9f){var _0x41a7a0=_0x40864b;const {coordinator:_0xf3b9fe}=_0x568f9f;return l[_0x41a7a0(0x26f)](l[_0x41a7a0(0x299)],{'children':[l[_0x41a7a0(0x229)](_0x41a7a0(0x218),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'variant':'text','onClick':()=>_0xf3b9fe[_0x41a7a0(0x290)](),'children':_0x41a7a0(0x24c)})]});}function K(_0x3d0030){var _0x576ebe=_0x40864b;const {coordinator:_0x5db91c}=_0x3d0030;return l[_0x576ebe(0x26f)](l[_0x576ebe(0x299)],{'children':[l['jsx'](_0x576ebe(0x218),{'className':_0x576ebe(0x1eb),'children':_0x576ebe(0x279)}),l[_0x576ebe(0x229)](g[_0x576ebe(0x281)],{'variant':_0x576ebe(0x1e3),'onClick':()=>_0x5db91c[_0x576ebe(0x26a)](),'children':_0x576ebe(0x224)})]});}function _0x12d2(_0xb14dbc,_0x16a5de){var _0x2db989=_0x2db9();return _0x12d2=function(_0x12d24d,_0x406f09){_0x12d24d=_0x12d24d-0x1c1;var _0x2f2e17=_0x2db989[_0x12d24d];return _0x2f2e17;},_0x12d2(_0xb14dbc,_0x16a5de);}function z(){var _0x278e67=_0x40864b;return l[_0x278e67(0x229)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0x40864b(0x284)],X=(_0x3f2db0,_0x3d96d8,_0xcb3221,_0x34fd7b)=>{var _0x27c056=_0x40864b;for(var _0x5ce9ae=_0x34fd7b>0x1?void 0x0:_0x34fd7b?Q(_0x3d96d8,_0xcb3221):_0x3d96d8,_0x2209f0=_0x3f2db0[_0x27c056(0x252)]-0x1,_0x187b51;_0x2209f0>=0x0;_0x2209f0--)(_0x187b51=_0x3f2db0[_0x2209f0])&&(_0x5ce9ae=_0x187b51(_0x5ce9ae)||_0x5ce9ae);return _0x5ce9ae;},x=(_0x3644e6,_0x50333f)=>(_0x5c1a80,_0x2d3b0e)=>_0x50333f(_0x5c1a80,_0x2d3b0e,_0x3644e6);exports[_0x40864b(0x1ed)]=class extends o[_0x40864b(0x268)]{constructor(_0x171ed5,_0x118141){var _0x344675=_0x40864b;super(),this[_0x344675(0x22b)]=_0x171ed5,this[_0x344675(0x1c1)]=_0x118141,this['_mountLiveShare']();}[_0x40864b(0x242)](){var _0x16f30b=_0x40864b;this[_0x16f30b(0x215)](this[_0x16f30b(0x1c1)][_0x16f30b(0x28c)](p[_0x16f30b(0x237)][_0x16f30b(0x260)],()=>p[_0x16f30b(0x225)](A,this[_0x16f30b(0x22b)])));}},exports[_0x40864b(0x1ed)]=X([x(0x0,o[_0x40864b(0x207)](o['Injector'])),x(0x1,p[_0x40864b(0x28e)])],exports[_0x40864b(0x1ed)]);const ee=_0x40864b(0x29b),L={};var te=Object[_0x40864b(0x284)],ie=(_0x9ef164,_0x23e082,_0x2d686a,_0x58bbd7)=>{var _0x1a30b8=_0x40864b;for(var _0x58abd2=_0x58bbd7>0x1?void 0x0:_0x58bbd7?te(_0x23e082,_0x2d686a):_0x23e082,_0x4dff8b=_0x9ef164[_0x1a30b8(0x252)]-0x1,_0x52ea59;_0x4dff8b>=0x0;_0x4dff8b--)(_0x52ea59=_0x9ef164[_0x4dff8b])&&(_0x58abd2=_0x52ea59(_0x58abd2)||_0x58abd2);return _0x58abd2;},ne=(_0x196638,_0x235566)=>(_0x4bb5d4,_0x3326ca)=>_0x235566(_0x4bb5d4,_0x3326ca,_0x196638);let E=class extends o['Disposable']{constructor(_0x42e70e){var _0x20fa87=_0x40864b;super(),this['_liveShareService']=_0x42e70e,this[_0x20fa87(0x285)]();}['_init'](){var _0x25ee95=_0x40864b;[D[_0x25ee95(0x264)]['id'],D[_0x25ee95(0x1f5)]['id'],C['SetWorksheetActiveOperation']['id']][_0x25ee95(0x274)](_0x142c12=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x142c12));});}};E=ie([ne(0x0,o[_0x40864b(0x207)](O))],E);var re=Object[_0x40864b(0x210)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1ce8ba,_0x1e0764,_0x4bec67)=>_0x1e0764 in _0x1ce8ba?re(_0x1ce8ba,_0x1e0764,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bec67}):_0x1ce8ba[_0x1e0764]=_0x4bec67,ae=(_0x45566c,_0x41eb15,_0x4f33aa,_0x5db325)=>{var _0x527339=_0x40864b;for(var _0x2eb920=_0x5db325>0x1?void 0x0:_0x5db325?se(_0x41eb15,_0x4f33aa):_0x41eb15,_0x401db6=_0x45566c[_0x527339(0x252)]-0x1,_0x4ab150;_0x401db6>=0x0;_0x401db6--)(_0x4ab150=_0x45566c[_0x401db6])&&(_0x2eb920=_0x4ab150(_0x2eb920)||_0x2eb920);return _0x2eb920;},N=(_0x26c108,_0x949d3f)=>(_0xf16e05,_0x58d81d)=>_0x949d3f(_0xf16e05,_0x58d81d,_0x26c108),T=(_0x56c1b7,_0x2022de,_0x35ebf7)=>oe(_0x56c1b7,typeof _0x2022de!=_0x40864b(0x1e6)?_0x2022de+'':_0x2022de,_0x35ebf7);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x40864b(0x1c4)]=class extends o[_0x40864b(0x204)]{constructor(_0x150bde=L,_0x27aa66,_0x53e0e6){var _0x36d1f1=_0x40864b;super(),this[_0x36d1f1(0x20d)]=_0x150bde,this[_0x36d1f1(0x22b)]=_0x27aa66,this[_0x36d1f1(0x2a5)]=_0x53e0e6;const {..._0x40127b}=o[_0x36d1f1(0x288)]({},L,this[_0x36d1f1(0x20d)]);this[_0x36d1f1(0x2a5)][_0x36d1f1(0x1f3)](ee,_0x40127b);}[_0x40864b(0x27a)](){var _0x5e0dae=_0x40864b;o['registerDependencies'](this[_0x5e0dae(0x22b)],o['mergeOverrideWithDependencies']([[O],[exports[_0x5e0dae(0x22f)]],[E],[exports[_0x5e0dae(0x1ed)]]],this['_config'][_0x5e0dae(0x24e)])),o['touchDependencies'](this[_0x5e0dae(0x22b)],[[E]]);}[_0x40864b(0x235)](){var _0x53af17=_0x40864b;o[_0x53af17(0x1f1)](this[_0x53af17(0x22b)],[[exports[_0x53af17(0x1ed)]]]);}},T(exports[_0x40864b(0x1c4)],_0x40864b(0x238),o[_0x40864b(0x1d4)][_0x40864b(0x1d8)]),T(exports[_0x40864b(0x1c4)],_0x40864b(0x1f4),le),exports[_0x40864b(0x1c4)]=ae([o[_0x40864b(0x1ca)](m[_0x40864b(0x1da)]),N(0x1,o['Inject'](o[_0x40864b(0x28b)])),N(0x2,o[_0x40864b(0x1ee)])],exports[_0x40864b(0x1c4)]),exports[_0x40864b(0x201)]=A,exports[_0x40864b(0x27b)]=O,exports[_0x40864b(0x234)]=h;function _0x2db9(){var _0x3c4682=['IUniverInstanceService','LiveShare','mask','922880qTblpP','Plugin','pipe','map','Inject','OFFLINE','unsubscribe','concat','set','attrs','_config','225978UAxmbX','getTypeOfUnitAdded$','defineProperty','PRESENTING','trim','Present\x20this\x20document','getConfig','disposeWithMe','onCommandExecuted','_startLiveShareCoordinator','div','_commandService','dispose$','_handleOnline','2PtGvFt','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','registerInitialStateReporter','defIds','getUnitId','_stopPresenting','idle','Module','Stop\x20presenting','connectInjector','executeCommand','next','getTypeOfUnitDisposed$','jsx','NOT_FOLLOWING','_injector','univerjs-icon\x20univerjs-icon-','_handleTerminate','1em','LiveShareController','get','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','IDLE','stopFollowing','LiveShareStatus','onRendered','status$','BuiltInUIPart','type','2848WpGkNL','params','_liveShareService','values','toDisposable','14617bZYoJh','xlink:href','_presenter','fill','_mountLiveShare','OPERATION','getMemberID','operations','defs','sheet','_startFollowing','tryStartPresenting','426460WtZWoV','useDependency','Start\x20following','toString','override','Start','855160jEgVOa','parse','length','hasOwnProperty','unitId','colorChannel1','data','memberID','parseProtocolChangeset','add','current','evenodd','shouldShareOperation','ICommandService','forwardRef','_handleNewHost','HEADER_MENU','mutations','entries','useRef','SetZoomRatioOperation','_beIdle','url(#$1','substring','Disposable','http://www.w3.org/2000/svg','stopPresenting','getInitialStates','getOwnPropertySymbols','end','_reporters','jsxs','_handleNewChangeSets','_unitID','Subject','className','forEach','_entities','children','2637jyBauB','presenting','You\x27re\x20presenting\x20the\x20document','onStarting','LiveShareService','_handleOffline','registerSharedOperation','useState','prototype','65yTgWeM','Button','then','Dropdown','getOwnPropertyDescriptor','_init','getLiveShareCoordinator','replace','merge','LIVESHARE_OPERATION','random','Injector','registerComponent','includes','IUIPartsService','icon','startFollowing','RxDisposable','9XVVvXP','assign','live-share-icon','0\x200\x2017\x2017','DisposableCollection','clsx','BehaviorSubject','Fragment','path','live-share.config','useObservable','SessionStatus','_univerInstanceService','toStringTag','send','takeUntil','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','complete','You\x27re\x20following\x20the\x20presenter','_configService','following','univer-size-4','call','NEW_CHANGESETS','_commandDisposable','_uiPartsService','indexOf','idSuffix','UniverLiveSharePlugin','_handleOperation','has','from','LIVESHARE_TERMINATE','_collabSession','DependentOn','_status','subscribe','UNIVER_SHEET','string','FOLLOWING','getCurrentTypeOfUnit$','LiveShareCoordinator','tag','reverse','UniverInstanceType','presenter','find','_collabSessionService','UNIVER_UNKNOWN','_startPresenting','UniverCollaborationClientPlugin','extend','none','SAME_OPERATION_SHARE_INTERVAL','createInstance','dispose','not-following','20JSArWJ','LiveShareIcon','default','init','currentColor','symbol','useEffect','11EJPLUb','requireSession','_sharedOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status$','DesktopLiveShareController','IConfigService','event$','sessionStatus$','touchDependencies','CollaborationEvent','setConfig','pluginName','SetScrollOperation','CommandType','svg','_fetchOperations','SetWorksheetActiveOperation','displayName','_stopFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','offline','delete','1564548SGerPE'];_0x2db9=function(){return _0x3c4682;};return _0x2db9();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2bba17=_0x5c52;(function(_0x50f953,_0x46f1af){var _0x25f7d9=_0x5c52,_0x226402=_0x50f953();while(!![]){try{var _0x664b43=-parseInt(_0x25f7d9(0x1b9))/0x1*(parseInt(_0x25f7d9(0x1dc))/0x2)+parseInt(_0x25f7d9(0x24e))/0x3+parseInt(_0x25f7d9(0x208))/0x4*(-parseInt(_0x25f7d9(0x24b))/0x5)+-parseInt(_0x25f7d9(0x242))/0x6*(parseInt(_0x25f7d9(0x200))/0x7)+parseInt(_0x25f7d9(0x1f4))/0x8*(parseInt(_0x25f7d9(0x223))/0x9)+parseInt(_0x25f7d9(0x1e5))/0xa+parseInt(_0x25f7d9(0x1cf))/0xb*(parseInt(_0x25f7d9(0x1a6))/0xc);if(_0x664b43===_0x46f1af)break;else _0x226402['push'](_0x226402['shift']());}catch(_0x1a657a){_0x226402['push'](_0x226402['shift']());}}}(_0x3d1f,0x8334d));var q=Object[_0x2bba17(0x1af)],z=(_0x1373e0,_0x25b75c,_0x34e93c)=>_0x25b75c in _0x1373e0?q(_0x1373e0,_0x25b75c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34e93c}):_0x1373e0[_0x25b75c]=_0x34e93c,d=(_0x89a4a5,_0x39ab7b,_0x3f14b6)=>z(_0x89a4a5,typeof _0x39ab7b!=_0x2bba17(0x1f2)?_0x39ab7b+'':_0x39ab7b,_0x3f14b6);function _0x3d1f(){var _0x8f7cd4=['IDLE','_handleOffline','_stopFollowing','_fetchOperations','displayName','presenting','LIVESHARE_FETCH_OPERATIONS','792YrPNOC','complete','text','UNIVER_LIVE_SHARE_PLUGIN','replace','1em','get','getMemberID','registerComponent','defineProperty','OFFLINE','univer-size-4','getInitialStates','offline','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','LIVESHARE_NEW_HOST','_sharedOperations','disposeWithMe','2SvlFiK','getTypeOfUnitAdded$','_injector','div','length','_commandService','from','onStarting','prototype','values','attrs','asObservable','registerSharedOperation','_commandDisposable','_handleOnline','live-share.config','startFollowing','event$','createInstance','getUnitId','find','pipe','136642wnHCso','_mountLiveShare','_startFollowing','hasOwnProperty','stopFollowing','_status$','sheet','following','Present\x20this\x20document','clear','xlink:href','_handleNewChangeSets','stopPresenting','501086GPQHVw','next','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','dispose','_handleNewHost','then','use','FOLLOWING','3022770mZyvBK','tag','call','live-share-icon','LIVESHARE_OPERATION','idSuffix','subscribe','getConfig','executeCommand','add','button','random','fill','symbol','You\x27re\x20presenting\x20the\x20document','16MKeQYA','type','UniverIcon','concat','reverse','defs','path','_handleTerminate','OPERATION','shouldShareOperation','_beIdle','_startPresenting','7EzPVTa','_init','has','_handleOperation','tryStartPresenting','currentColor','NOT_FOLLOWING','getOwnPropertySymbols','1220kZLDfT','UNIVER_SHEET','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','send','set','none','_configService','colorChannel1','LiveShareIcon','presenter','data','_unitID','mask','params','map','entries','LIVESHARE_REQUEST_HOST','_uiPartsService','onRendered','trim','_startLiveShareCoordinator','default','_univerInstanceService','mutations','NEW_CHANGESETS','_reporters','636399wDJwro','icon','apply','HEADER_MENU','assign','_collabSession','url(#$1','You\x27are\x20offline.','dispose$','idle','function','substring','delete','end','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','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','not-following','sessionStatus$','setConfig','You\x27re\x20following\x20the\x20presenter','Stop\x20following','parse','memberID','requireSession','ONLINE','forEach','univerjs-icon\x20univerjs-icon-','unitId','UNIVER_UNKNOWN','defIds','pluginName','2176206svqwVf','indexOf','extend','LIVESHARE_TERMINATE','getLiveShareCoordinator','getTypeOfUnitDisposed$','status$','children','className','11895gUrjJK','PRESENTING','includes','2589756LreNzt','init','_entities','Stop\x20presenting','string','current','_presenter','_status','stringify','_config'];_0x3d1f=function(){return _0x8f7cd4;};return _0x3d1f();}import{Disposable as _0x3de408,toDisposable as _0x5a8d97,IUniverInstanceService as _0x19ca6f,Inject as _0x15e820,Injector as _0x4e3021,IConfigService as _0x556307,ICommandService as _0x10d520,RxDisposable as _0x59a582,UniverInstanceType as _0x47de85,DisposableCollection as _0x4240bf,CommandType as _0x165fca,DependentOn as _0x52d915,Plugin as _0x568e79,merge as _0x183e3c,registerDependencies as _0x3f7738,mergeOverrideWithDependencies as _0x41f9a2,touchDependencies as _0x260c07}from'@univerjs/core';import{useDependency as _0xc099b5,useObservable as _0x4ef5ee,IUIPartsService as _0x2c2e3a,BuiltInUIPart as _0x3b5335,connectInjector as _0x566771}from'@univerjs/ui';import{jsx as _0x53a3f2,jsxs as _0x5ec3e4,Fragment as _0x3f2ee7}from'react/jsx-runtime';import{Dropdown as _0x32e2ae,clsx as _0x3d4732,Button as _0x45c8b4}from'@univerjs/design';import{forwardRef as _0x1b8e4b,useRef as _0x1b3914,createElement as _0x3e3bff,useState as _0x5d4ac5,useEffect as _0x495b6b}from'react';import{CollaborationEvent as _0x38954f,parseProtocolChangeset as _0x4970c2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20751a,SessionStatus as _0x49405b,UniverCollaborationClientPlugin as _0x138ab0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x8fec39,SetWorksheetActiveOperation as _0x46da91}from'@univerjs/sheets';import{BehaviorSubject as _0x496961,Subject as _0x18793c}from'rxjs';import{takeUntil as _0x1f496f,throttleTime as _0xeb3dd1}from'rxjs/operators';import{SetZoomRatioOperation as _0x3da0d3,SetScrollOperation as _0x5d109c}from'@univerjs/sheets-ui';var c=function(){var _0x2c47a6=_0x2bba17;return c=Object['assign']||function(_0x279405){var _0x277b51=_0x5c52;for(var _0x527f1b,_0x26ee42=0x1,_0x1b1ce2=arguments[_0x277b51(0x1bd)];_0x26ee42<_0x1b1ce2;_0x26ee42++){_0x527f1b=arguments[_0x26ee42];for(var _0x4f504e in _0x527f1b)Object['prototype'][_0x277b51(0x1d2)][_0x277b51(0x1e7)](_0x527f1b,_0x4f504e)&&(_0x279405[_0x4f504e]=_0x527f1b[_0x4f504e]);}return _0x279405;},c[_0x2c47a6(0x225)](this,arguments);},Oe=function(_0x318572,_0x377bb1){var _0x3a3bae=_0x2bba17,_0x4fd993={};for(var _0x646bd2 in _0x318572)Object[_0x3a3bae(0x1c1)][_0x3a3bae(0x1d2)][_0x3a3bae(0x1e7)](_0x318572,_0x646bd2)&&_0x377bb1[_0x3a3bae(0x243)](_0x646bd2)<0x0&&(_0x4fd993[_0x646bd2]=_0x318572[_0x646bd2]);if(_0x318572!=null&&typeof Object[_0x3a3bae(0x207)]==_0x3a3bae(0x22d)){for(var _0x20d465=0x0,_0x646bd2=Object[_0x3a3bae(0x207)](_0x318572);_0x20d465<_0x646bd2['length'];_0x20d465++)_0x377bb1[_0x3a3bae(0x243)](_0x646bd2[_0x20d465])<0x0&&Object[_0x3a3bae(0x1c1)]['propertyIsEnumerable'][_0x3a3bae(0x1e7)](_0x318572,_0x646bd2[_0x20d465])&&(_0x4fd993[_0x646bd2[_0x20d465]]=_0x318572[_0x646bd2[_0x20d465]]);}return _0x4fd993;},W=_0x1b8e4b(function(_0x1ab2bc,_0x41b1a6){var _0x53d2f6=_0x2bba17,_0x57c423=_0x1ab2bc[_0x53d2f6(0x224)],_0x2c8123=_0x1ab2bc['id'],_0x2fc2db=_0x1ab2bc['className'],_0x55b9fd=_0x1ab2bc[_0x53d2f6(0x244)],_0x1ab14d=Oe(_0x1ab2bc,['icon','id',_0x53d2f6(0x24a),'extend']),_0x532387=_0x53d2f6(0x23d)[_0x53d2f6(0x1f7)](_0x2c8123,'\x20')[_0x53d2f6(0x1f7)](_0x2fc2db||'')[_0x53d2f6(0x21c)](),_0x38f41c=_0x1b3914('_'[_0x53d2f6(0x1f7)](Ne()));return Y(_0x57c423,''[_0x53d2f6(0x1f7)](_0x2c8123),{'defIds':_0x57c423['defIds'],'idSuffix':_0x38f41c['current']},c({'ref':_0x41b1a6,'className':_0x532387},_0x1ab14d),_0x55b9fd);});function Y(_0x490848,_0x2e66f0,_0x5523d9,_0xf8aca6,_0x383620){var _0x45d33c=_0x2bba17;return _0x3e3bff(_0x490848[_0x45d33c(0x1e6)],c(c({'key':_0x2e66f0},Ee(_0x490848,_0x5523d9,_0x383620)),_0xf8aca6),(we(_0x490848,_0x5523d9)[_0x45d33c(0x249)]||[])['map'](function(_0x31a049,_0x5e4283){var _0xe4329f=_0x45d33c;return Y(_0x31a049,''[_0xe4329f(0x1f7)](_0x2e66f0,'-')[_0xe4329f(0x1f7)](_0x490848[_0xe4329f(0x1e6)],'-')['concat'](_0x5e4283),_0x5523d9,void 0x0,_0x383620);}));}function Ee(_0x147a7a,_0x5591c9,_0x511270){var _0x4b33c5=_0x2bba17,_0x3b9fad=c({},_0x147a7a[_0x4b33c5(0x1c3)]);_0x511270!=null&&_0x511270[_0x4b33c5(0x210)]&&_0x3b9fad[_0x4b33c5(0x1f1)]===_0x4b33c5(0x210)&&(_0x3b9fad['fill']=_0x511270[_0x4b33c5(0x210)]),_0x147a7a[_0x4b33c5(0x1e6)]==='mask'&&_0x3b9fad['id']&&(_0x3b9fad['id']=_0x3b9fad['id']+_0x5591c9['idSuffix']),Object[_0x4b33c5(0x218)](_0x3b9fad)['forEach'](function(_0x439888){var _0x559f7a=_0x4b33c5,_0x594e6b=_0x439888[0x0],_0x42017d=_0x439888[0x1];_0x594e6b===_0x559f7a(0x215)&&typeof _0x42017d==_0x559f7a(0x252)&&(_0x3b9fad[_0x594e6b]=_0x42017d[_0x559f7a(0x1aa)](/url\(#(.*)\)/,'url(#$1'[_0x559f7a(0x1f7)](_0x5591c9['idSuffix'],')')));});var _0x97aab1=_0x5591c9[_0x4b33c5(0x240)];return!_0x97aab1||_0x97aab1['length']===0x0||(_0x147a7a[_0x4b33c5(0x1e6)]===_0x4b33c5(0x1e3)&&_0x3b9fad[_0x4b33c5(0x1d9)]&&(_0x3b9fad[_0x4b33c5(0x1d9)]=_0x3b9fad['xlink:href']+_0x5591c9[_0x4b33c5(0x1ea)]),Object[_0x4b33c5(0x218)](_0x3b9fad)[_0x4b33c5(0x23c)](function(_0xffadce){var _0x548ad0=_0x4b33c5,_0x3cb0fb=_0xffadce[0x0],_0x2192bf=_0xffadce[0x1];typeof _0x2192bf=='string'&&(_0x3b9fad[_0x3cb0fb]=_0x2192bf[_0x548ad0(0x1aa)](/url\(#(.*)\)/,_0x548ad0(0x229)[_0x548ad0(0x1f7)](_0x5591c9[_0x548ad0(0x1ea)],')')));})),_0x3b9fad;}function we(_0x3c051c,_0x2ec3dd){var _0x226056=_0x2bba17,_0x8a6367,_0x3398c0=_0x2ec3dd['defIds'];return!_0x3398c0||_0x3398c0['length']===0x0?_0x3c051c:_0x3c051c['tag']===_0x226056(0x1f9)&&(!((_0x8a6367=_0x3c051c[_0x226056(0x249)])===null||_0x8a6367===void 0x0)&&_0x8a6367[_0x226056(0x1bd)])?c(c({},_0x3c051c),{'children':_0x3c051c[_0x226056(0x249)][_0x226056(0x217)](function(_0x1c565f){var _0x4e1b4a=_0x226056;return typeof _0x1c565f[_0x4e1b4a(0x1c3)]['id']==_0x4e1b4a(0x252)&&_0x3398c0&&_0x3398c0[_0x4e1b4a(0x24d)](_0x1c565f[_0x4e1b4a(0x1c3)]['id'])?c(c({},_0x1c565f),{'attrs':c(c({},_0x1c565f[_0x4e1b4a(0x1c3)]),{'id':_0x1c565f[_0x4e1b4a(0x1c3)]['id']+_0x2ec3dd[_0x4e1b4a(0x1ea)]})}):_0x1c565f;})}):_0x3c051c;}function Ne(){var _0x5b844c=_0x2bba17;return Math[_0x5b844c(0x1f0)]()['toString'](0x24)[_0x5b844c(0x22e)](0x2,0x8);}W[_0x2bba17(0x1a3)]=_0x2bba17(0x1f6);var Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2bba17(0x20e),'viewBox':'0\x200\x2017\x2017','width':_0x2bba17(0x1ab),'height':_0x2bba17(0x1ab)},'children':[{'tag':_0x2bba17(0x1fa),'attrs':{'fill':_0x2bba17(0x205),'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':_0x2bba17(0x1fa),'attrs':{'fill':_0x2bba17(0x205),'d':_0x2bba17(0x232),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x1b8e4b(function(_0x59cdfa,_0x32b2ab){var _0x4d3e03=_0x2bba17;return _0x3e3bff(W,Object[_0x4d3e03(0x227)]({},_0x59cdfa,{'id':_0x4d3e03(0x1e8),'ref':_0x32b2ab,'icon':Ce}));});B[_0x2bba17(0x1a3)]=_0x2bba17(0x211);class L extends _0x3de408{constructor(){var _0x1d9370=_0x2bba17;super(...arguments),d(this,_0x1d9370(0x1b7),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x880c3d){var _0x3a5ffa=_0x2bba17;return this[_0x3a5ffa(0x1b7)][_0x3a5ffa(0x1ee)](_0x880c3d),_0x5a8d97(()=>this['_sharedOperations']['delete'](_0x880c3d));}['registerInitialStateReporter'](_0x575119){var _0x163f72=_0x2bba17;return this[_0x163f72(0x222)][_0x163f72(0x1ee)](_0x575119),_0x5a8d97(()=>this['_reporters'][_0x163f72(0x22f)](_0x575119));}[_0x2bba17(0x1fd)](_0x1b8d50){var _0x30e4e1=_0x2bba17;return this[_0x30e4e1(0x1b7)]['has'](_0x1b8d50);}[_0x2bba17(0x1b2)](_0x31d7af){var _0x5841bc=_0x2bba17;return Array[_0x5841bc(0x1bf)](this[_0x5841bc(0x222)])[_0x5841bc(0x217)](_0x5396fd=>_0x5396fd(_0x31d7af));}}function _0x5c52(_0x495dca,_0x29ba4a){var _0x3d1fb9=_0x3d1f();return _0x5c52=function(_0x5c527d,_0x2f62dd){_0x5c527d=_0x5c527d-0x1a3;var _0xbd5dbf=_0x3d1fb9[_0x5c527d];return _0xbd5dbf;},_0x5c52(_0x495dca,_0x29ba4a);}var De=Object['getOwnPropertyDescriptor'],Z=(_0x116247,_0x22c90f,_0x47ffef,_0x57deb1)=>{for(var _0x50a428=_0x57deb1>0x1?void 0x0:_0x57deb1?De(_0x22c90f,_0x47ffef):_0x22c90f,_0x54f977=_0x116247['length']-0x1,_0x56b5d7;_0x54f977>=0x0;_0x54f977--)(_0x56b5d7=_0x116247[_0x54f977])&&(_0x50a428=_0x56b5d7(_0x50a428)||_0x50a428);return _0x50a428;},f=(_0x4c450e,_0xd9b02b)=>(_0x254ae2,_0x1db661)=>_0xd9b02b(_0x254ae2,_0x1db661,_0x4c450e);let m=class extends _0x59a582{constructor(_0x5b3b55,_0x1cf64b,_0x3afb15){var _0x496b5c=_0x2bba17;super(),d(this,_0x496b5c(0x250),new Map()),(this[_0x496b5c(0x21f)]=_0x5b3b55,this['_injector']=_0x1cf64b,this['_collabSessionService']=_0x3afb15,this[_0x496b5c(0x201)]());}async[_0x2bba17(0x246)](_0x179885){var _0x4ffe23=_0x2bba17;return this[_0x4ffe23(0x250)][_0x4ffe23(0x202)](_0x179885)||await this[_0x4ffe23(0x21d)](_0x179885),this[_0x4ffe23(0x250)][_0x4ffe23(0x1ac)](_0x179885);}['_init'](){var _0x1b9b2a=_0x2bba17;this[_0x1b9b2a(0x21f)][_0x1b9b2a(0x1ba)](_0x47de85[_0x1b9b2a(0x209)])[_0x1b9b2a(0x1ce)](_0x1f496f(this[_0x1b9b2a(0x22b)]))[_0x1b9b2a(0x1eb)](async _0x5cd49a=>{var _0x5d265a=_0x1b9b2a;const _0x4dbef8=_0x5cd49a[_0x5d265a(0x1cc)]();this[_0x5d265a(0x250)][_0x5d265a(0x202)](_0x4dbef8)||this[_0x5d265a(0x21d)](_0x4dbef8);}),this[_0x1b9b2a(0x21f)][_0x1b9b2a(0x247)](_0x47de85[_0x1b9b2a(0x209)])['pipe'](_0x1f496f(this[_0x1b9b2a(0x22b)]))[_0x1b9b2a(0x1eb)](_0x40998e=>{var _0x2d1588=_0x1b9b2a;const _0x512ea5=_0x40998e[_0x2d1588(0x1cc)](),_0x2a520=this[_0x2d1588(0x250)][_0x2d1588(0x1ac)](_0x512ea5);_0x2a520==null||_0x2a520[_0x2d1588(0x1e0)]();});}async[_0x2bba17(0x21d)](_0x559ca7){var _0x13e1df=_0x2bba17;const _0x466da8=await this['_collabSessionService'][_0x13e1df(0x23a)](_0x559ca7),_0x5c8415=this[_0x13e1df(0x1bb)][_0x13e1df(0x1cb)](C,_0x559ca7,_0x466da8);return _0x5c8415['init'](),this[_0x13e1df(0x250)][_0x13e1df(0x20d)](_0x559ca7,_0x5c8415),_0x5c8415;}};m=Z([f(0x0,_0x19ca6f),f(0x1,_0x15e820(_0x4e3021)),f(0x2,_0x15e820(_0x20751a))],m);var h=(_0x4c934b=>(_0x4c934b[_0x2bba17(0x1b0)]=_0x2bba17(0x1b3),_0x4c934b[_0x2bba17(0x258)]=_0x2bba17(0x22c),_0x4c934b[_0x2bba17(0x1e4)]=_0x2bba17(0x1d6),_0x4c934b[_0x2bba17(0x206)]=_0x2bba17(0x233),_0x4c934b[_0x2bba17(0x24c)]=_0x2bba17(0x1a4),_0x4c934b))(h||{});const xe=_0x2bba17(0x20b),Le=0xc8;let C=class extends _0x59a582{constructor(_0x578c83,_0x59cba8,_0x363c09,_0x388653,_0x111f1c){var _0x24da84=_0x2bba17;super(),d(this,'_status$',new _0x496961(_0x24da84(0x22c))),d(this,_0x24da84(0x248),this['_status$'][_0x24da84(0x1c4)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this['_unitID']=_0x578c83,this[_0x24da84(0x228)]=_0x59cba8,this['_configService']=_0x363c09,this[_0x24da84(0x20a)]=_0x388653,this[_0x24da84(0x1be)]=_0x111f1c);}get[_0x2bba17(0x255)](){var _0x93c433=_0x2bba17;return this[_0x93c433(0x1d4)]['getValue']();}[_0x2bba17(0x1e0)](){var _0x36ae4b=_0x2bba17,_0xc452c5;(_0xc452c5=this['_commandDisposable'])==null||_0xc452c5[_0x36ae4b(0x1e0)](),this[_0x36ae4b(0x1d4)]['next']('idle'),this['_status$']['complete']();}[_0x2bba17(0x24f)](){var _0x219e64=_0x2bba17;this[_0x219e64(0x201)]||(this[_0x219e64(0x201)]=!0x0,this[_0x219e64(0x228)][_0x219e64(0x234)]['pipe'](_0x1f496f(this[_0x219e64(0x22b)]))[_0x219e64(0x1eb)](_0x4d4070=>{var _0x102680=_0x219e64;switch(_0x4d4070){case _0x49405b[_0x102680(0x1b0)]:this[_0x102680(0x259)]();break;case _0x49405b[_0x102680(0x23b)]:this[_0x102680(0x1c7)]();break;}}),this[_0x219e64(0x228)][_0x219e64(0x1ca)][_0x219e64(0x1ce)](_0x1f496f(this[_0x219e64(0x22b)]))[_0x219e64(0x1eb)](_0x14a684=>{var _0x337e61=_0x219e64;const {eventID:_0x571d3c}=_0x14a684;switch(_0x571d3c){case _0x38954f[_0x337e61(0x1b6)]:this[_0x337e61(0x1e1)](_0x14a684);break;case _0x38954f[_0x337e61(0x1e9)]:this[_0x337e61(0x203)](_0x14a684);break;case _0x38954f[_0x337e61(0x245)]:this['_handleTerminate']();break;case _0x38954f[_0x337e61(0x221)]:this[_0x337e61(0x1da)](_0x14a684);break;}}));}[_0x2bba17(0x204)](){var _0x1a2d76=_0x2bba17;this[_0x1a2d76(0x228)]['send']({'eventID':_0x38954f[_0x1a2d76(0x219)],'data':{'unitID':this[_0x1a2d76(0x214)],'userID':this['_collabSession'][_0x1a2d76(0x1ad)]()}},this[_0x1a2d76(0x214)]);}[_0x2bba17(0x1db)](){var _0x51f9de=_0x2bba17;this[_0x51f9de(0x255)]===_0x51f9de(0x1a4)&&(this[_0x51f9de(0x1d4)][_0x51f9de(0x1dd)](_0x51f9de(0x22c)),this[_0x51f9de(0x228)][_0x51f9de(0x20c)]({'eventID':_0x38954f[_0x51f9de(0x245)],'data':{'unitID':this[_0x51f9de(0x214)]}},this[_0x51f9de(0x214)]));}[_0x2bba17(0x1c9)](){var _0x3c7c33=_0x2bba17;this[_0x3c7c33(0x255)]===_0x3c7c33(0x233)&&(this['_status$']['next'](_0x3c7c33(0x1d6)),this[_0x3c7c33(0x1d1)]());}['stopFollowing'](){var _0x2cc552=_0x2bba17;this[_0x2cc552(0x255)]==='following'&&this[_0x2cc552(0x25a)]();}[_0x2bba17(0x1e1)](_0x529934){var _0x13c66b=_0x2bba17;const {presenter:_0x99f5e2}=_0x529934[_0x13c66b(0x213)],_0x163c06=this[_0x13c66b(0x228)][_0x13c66b(0x1ad)]();this[_0x13c66b(0x254)]=_0x99f5e2,_0x99f5e2===_0x163c06?(this[_0x13c66b(0x25a)](),this[_0x13c66b(0x1ff)]()):this[_0x13c66b(0x255)]!==_0x13c66b(0x233)&&(this[_0x13c66b(0x1b5)](),this['_startFollowing']());}['_fetchOperations'](){var _0x2a029c=_0x2bba17;const _0x18408a={'eventID':_0x38954f[_0x2a029c(0x1a5)]};this[_0x2a029c(0x228)][_0x2a029c(0x20c)](_0x18408a,this[_0x2a029c(0x214)]);}[_0x2bba17(0x1fb)](){var _0xf5bee3=_0x2bba17;this[_0xf5bee3(0x254)]=null,this[_0xf5bee3(0x255)]!=='presenting'&&this[_0xf5bee3(0x1fe)]();}[_0x2bba17(0x1da)](_0x5c95bd){var _0x71135f=_0x2bba17;if(this[_0x71135f(0x255)]===_0x71135f(0x1d6)&&this[_0x71135f(0x254)]===_0x5c95bd[_0x71135f(0x213)][_0x71135f(0x239)]){const _0x1cac10=_0x4970c2(_0x5c95bd[_0x71135f(0x213)])[_0x71135f(0x220)][_0x71135f(0x1f8)]()[_0x71135f(0x1cd)](_0x10f0bf=>_0x10f0bf['id']===_0x8fec39['id']);if(_0x1cac10){const _0x3c3029=_0x1cac10['params'][_0x71135f(0x23e)],_0x1171b0=_0x1cac10[_0x71135f(0x216)][_0x71135f(0x1d5)]['id'];setTimeout(()=>{var _0x3674fe=_0x71135f;this[_0x3674fe(0x1be)]['executeCommand'](_0x46da91['id'],{'unitId':_0x3c3029,'subUnitId':_0x1171b0},{'fromCollab':!0x0});});}}}[_0x2bba17(0x1ff)](){var _0x51e4d8=_0x2bba17;this[_0x51e4d8(0x1d4)][_0x51e4d8(0x1dd)](_0x51e4d8(0x1a4));const _0xea2e93=new Map(),_0x2e7490=this['_commandDisposable']=new _0x4240bf();_0x2e7490['add'](_0x5a8d97(()=>{var _0x285261=_0x51e4d8;_0xea2e93[_0x285261(0x23c)](_0x2e3492=>_0x2e3492[_0x285261(0x1a7)]()),_0xea2e93[_0x285261(0x1d8)]();})),_0x2e7490[_0x51e4d8(0x1ee)](this['_commandService']['onCommandExecuted'](_0x48ad3b=>{var _0x2ead08=_0x51e4d8,_0xdc8e45;if(_0x48ad3b[_0x2ead08(0x1f5)]!==_0x165fca[_0x2ead08(0x1fc)]||!this[_0x2ead08(0x20a)]['shouldShareOperation'](_0x48ad3b['id']))return;const {id:_0xcec7ef}=_0x48ad3b;let _0x2d15de;_0xea2e93['has'](_0xcec7ef)?_0x2d15de=_0xea2e93[_0x2ead08(0x1ac)](_0xcec7ef):(_0x2d15de=new _0x18793c(),_0xea2e93[_0x2ead08(0x20d)](_0xcec7ef,_0x2d15de),_0x2d15de['pipe'](_0xeb3dd1((_0xdc8e45=this[_0x2ead08(0x20f)][_0x2ead08(0x1ec)](xe))!=null?_0xdc8e45:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ead08(0x1eb)](_0x1fb350=>{var _0x13a45b=_0x2ead08;this[_0x13a45b(0x228)][_0x13a45b(0x20c)]({'eventID':_0x38954f[_0x13a45b(0x1e9)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fb350['id']]:{'id':_0x1fb350['id'],'params':JSON[_0x13a45b(0x256)](_0x1fb350[_0x13a45b(0x216)])}}}},this['_unitID']);})),_0x2d15de[_0x2ead08(0x1dd)](_0x48ad3b);})),this[_0x51e4d8(0x20a)]['getInitialStates'](this['_unitID'])[_0x51e4d8(0x23c)](_0x3c84c3=>this[_0x51e4d8(0x228)][_0x51e4d8(0x20c)]({'eventID':_0x38954f[_0x51e4d8(0x1e9)],'data':{'unitID':this[_0x51e4d8(0x214)],'operations':{[_0x3c84c3['id']]:{'id':_0x3c84c3['id'],'params':JSON['stringify'](_0x3c84c3['params'])}}}},this[_0x51e4d8(0x214)]));}[_0x2bba17(0x1b5)](){var _0x11f64e=_0x2bba17,_0x17f6fe;this[_0x11f64e(0x1d4)]['next']('idle'),(_0x17f6fe=this[_0x11f64e(0x1c6)])==null||_0x17f6fe[_0x11f64e(0x1e0)](),this[_0x11f64e(0x1c6)]=null;}[_0x2bba17(0x1d1)](){var _0x5bcd76=_0x2bba17,_0x28768e;(_0x28768e=this[_0x5bcd76(0x1c6)])==null||_0x28768e[_0x5bcd76(0x1e0)](),this[_0x5bcd76(0x1d4)]['next'](_0x5bcd76(0x1d6));}[_0x2bba17(0x1fe)](){var _0xd066e=_0x2bba17,_0x22e586;this[_0xd066e(0x1d4)][_0xd066e(0x1dd)]('idle'),(_0x22e586=this[_0xd066e(0x1c6)])==null||_0x22e586[_0xd066e(0x1e0)](),this[_0xd066e(0x1c6)]=null;}[_0x2bba17(0x25a)](){var _0x42cf07=_0x2bba17,_0x2c4250;this[_0x42cf07(0x1d4)][_0x42cf07(0x1dd)](_0x42cf07(0x233)),(_0x2c4250=this[_0x42cf07(0x1c6)])==null||_0x2c4250[_0x42cf07(0x1e0)]();}[_0x2bba17(0x203)](_0x309033){var _0x1371ff=_0x2bba17;if([_0x1371ff(0x1a4),_0x1371ff(0x233),'offline']['includes'](this[_0x1371ff(0x255)])||!_0x309033[_0x1371ff(0x213)][_0x1371ff(0x212)]||_0x309033[_0x1371ff(0x213)][_0x1371ff(0x212)]===this[_0x1371ff(0x228)][_0x1371ff(0x1ad)]())return;this['_status']==='idle'&&this[_0x1371ff(0x1d1)]();const _0x1cff34=_0x309033[_0x1371ff(0x213)]['operations'];Object[_0x1371ff(0x1c2)](_0x1cff34)[_0x1371ff(0x23c)](_0x1a9328=>{var _0x5890fb=_0x1371ff;this['_commandService'][_0x5890fb(0x1ed)](_0x1a9328['id'],_0x1a9328[_0x5890fb(0x216)]?JSON[_0x5890fb(0x238)](_0x1a9328[_0x5890fb(0x216)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1539ed=_0x2bba17,_0x4cf427;this['_status$']['next'](_0x1539ed(0x1b3)),(_0x4cf427=this[_0x1539ed(0x1c6)])==null||_0x4cf427[_0x1539ed(0x1e0)]();}[_0x2bba17(0x1c7)](){var _0x16a576=_0x2bba17;this[_0x16a576(0x1d4)]['next']('idle'),this[_0x16a576(0x25b)]();}};C=Z([f(0x2,_0x556307),f(0x3,_0x15e820(L)),f(0x4,_0x10d520)],C);function ye(){var _0x5b96d5=_0x2bba17;const _0x4f737b=_0xc099b5(m),_0xb62289=_0xc099b5(_0x19ca6f),_0x4a4eba=_0x4ef5ee(()=>_0xb62289[_0x5b96d5(0x1de)](_0x47de85[_0x5b96d5(0x209)]),void 0x0,!0x1,[]),[_0x46cd69,_0x437a6a]=_0x5d4ac5(null),[_0x4c8d05,_0x23f41e]=_0x5d4ac5(h['IDLE']),_0x3d7ba9=_0x1b3914(null);return _0x495b6b(()=>(_0x4a4eba&&_0x4f737b['getLiveShareCoordinator'](_0x4a4eba['getUnitId']())[_0x5b96d5(0x1e2)](_0x59a4c5=>{var _0x374bf0=_0x5b96d5;_0x437a6a(_0x59a4c5),_0x3d7ba9[_0x374bf0(0x253)]=_0x59a4c5[_0x374bf0(0x248)]['subscribe'](_0x240ace=>{_0x23f41e(_0x240ace);});}),()=>{var _0x4d58b1=_0x5b96d5,_0x18a99f;(_0x18a99f=_0x3d7ba9[_0x4d58b1(0x253)])==null||_0x18a99f['unsubscribe'](),_0x3d7ba9['current']=null;}),[_0x4a4eba,_0x4f737b]),_0x46cd69?_0x53a3f2(_0x32e2ae,{'align':_0x5b96d5(0x230),'disabled':_0x4c8d05===h[_0x5b96d5(0x1b0)],'className':_0x5b96d5(0x231),'overlay':_0x53a3f2(Re,{'status':_0x4c8d05,'coordinator':_0x46cd69}),'children':_0x53a3f2(_0x5b96d5(0x1ef),{'className':_0x3d4732('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x4c8d05===h[_0x5b96d5(0x1b0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8d05!==h['OFFLINE']}),'type':_0x5b96d5(0x1ef),'children':_0x53a3f2(B,{'className':_0x5b96d5(0x1b1)})})}):null;}function Re(_0x4ad6a1){var _0x11b235=_0x2bba17;const {status:_0x1f1400,coordinator:_0x557373}=_0x4ad6a1;switch(_0x1f1400){case h['IDLE']:return _0x53a3f2(Pe,{'coordinator':_0x557373});case h['FOLLOWING']:return _0x53a3f2(Ae,{'coordinator':_0x557373});case h['NOT_FOLLOWING']:return _0x53a3f2(Te,{'coordinator':_0x557373});case h[_0x11b235(0x1b0)]:return _0x53a3f2(Fe,{});case h['PRESENTING']:return _0x53a3f2($e,{'coordinator':_0x557373});default:return null;}}function Pe(_0x356c51){var _0x2f2034=_0x2bba17;const {coordinator:_0x3856a5}=_0x356c51;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2(_0x2f2034(0x1bc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f2034(0x1d7)}),_0x53a3f2(_0x45c8b4,{'onClick':()=>_0x3856a5[_0x2f2034(0x204)](),'children':'Start'})]});}function Ae(_0x66c5ee){var _0x38708d=_0x2bba17;const {coordinator:_0x1e78c2}=_0x66c5ee;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38708d(0x236)}),_0x53a3f2(_0x45c8b4,{'onClick':()=>_0x1e78c2[_0x38708d(0x1d3)](),'children':_0x38708d(0x237)})]});}function Te(_0x4d6d4a){var _0x424d88=_0x2bba17;const {coordinator:_0x43d46b}=_0x4d6d4a;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2(_0x424d88(0x1bc),{'className':_0x424d88(0x1b4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x53a3f2(_0x45c8b4,{'variant':_0x424d88(0x1a8),'onClick':()=>_0x43d46b['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0xb0b700){var _0x4529a8=_0x2bba17;const {coordinator:_0x1b0fde}=_0xb0b700;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2(_0x4529a8(0x1bc),{'className':_0x4529a8(0x1b4),'children':_0x4529a8(0x1f3)}),_0x53a3f2(_0x45c8b4,{'variant':_0x4529a8(0x21e),'onClick':()=>_0x1b0fde[_0x4529a8(0x1db)](),'children':_0x4529a8(0x251)})]});}function Fe(){var _0x21befc=_0x2bba17;return _0x53a3f2(_0x3f2ee7,{'children':_0x21befc(0x22a)});}var He=Object[_0x2bba17(0x1df)],je=(_0x4fa1d6,_0x12a7d7,_0x3810ca,_0x91e953)=>{var _0x1ebcbd=_0x2bba17;for(var _0x1fabe5=_0x91e953>0x1?void 0x0:_0x91e953?He(_0x12a7d7,_0x3810ca):_0x12a7d7,_0x47b13e=_0x4fa1d6[_0x1ebcbd(0x1bd)]-0x1,_0x20009c;_0x47b13e>=0x0;_0x47b13e--)(_0x20009c=_0x4fa1d6[_0x47b13e])&&(_0x1fabe5=_0x20009c(_0x1fabe5)||_0x1fabe5);return _0x1fabe5;},T=(_0x232031,_0x1647f9)=>(_0x3d33a5,_0x39a0a6)=>_0x1647f9(_0x3d33a5,_0x39a0a6,_0x232031);let I=class extends _0x3de408{constructor(_0x235794,_0x29cbaf){var _0x217302=_0x2bba17;super(),this[_0x217302(0x1bb)]=_0x235794,this[_0x217302(0x21a)]=_0x29cbaf,this[_0x217302(0x1d0)]();}[_0x2bba17(0x1d0)](){var _0x3959e7=_0x2bba17;this[_0x3959e7(0x1b8)](this[_0x3959e7(0x21a)][_0x3959e7(0x1ae)](_0x3b5335[_0x3959e7(0x226)],()=>_0x566771(ye,this[_0x3959e7(0x1bb)])));}};I=je([T(0x0,_0x15e820(_0x4e3021)),T(0x1,_0x2c2e3a)],I);const Ue=_0x2bba17(0x1c8),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x365031,_0x571975,_0x2c21ec,_0x28a611)=>{var _0x35d691=_0x2bba17;for(var _0x2a1892=_0x28a611>0x1?void 0x0:_0x28a611?Ve(_0x571975,_0x2c21ec):_0x571975,_0x22ba64=_0x365031[_0x35d691(0x1bd)]-0x1,_0x3534e8;_0x22ba64>=0x0;_0x22ba64--)(_0x3534e8=_0x365031[_0x22ba64])&&(_0x2a1892=_0x3534e8(_0x2a1892)||_0x2a1892);return _0x2a1892;},ke=(_0x3d6815,_0x2fa974)=>(_0x5b8981,_0x13a64a)=>_0x2fa974(_0x5b8981,_0x13a64a,_0x3d6815);let b=class extends _0x3de408{constructor(_0x18cbb4){var _0x68aa10=_0x2bba17;super(),this[_0x68aa10(0x20a)]=_0x18cbb4,this[_0x68aa10(0x201)]();}[_0x2bba17(0x201)](){var _0x3a680f=_0x2bba17;[_0x3da0d3['id'],_0x5d109c['id'],_0x46da91['id']][_0x3a680f(0x23c)](_0x291db5=>{var _0x2f7e4c=_0x3a680f;this[_0x2f7e4c(0x1b8)](this[_0x2f7e4c(0x20a)][_0x2f7e4c(0x1c5)](_0x291db5));});}};b=Me([ke(0x0,_0x15e820(L))],b);var Ge=Object[_0x2bba17(0x1af)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x37dc7d,_0x2f77e6,_0x2c324d)=>_0x2f77e6 in _0x37dc7d?Ge(_0x37dc7d,_0x2f77e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c324d}):_0x37dc7d[_0x2f77e6]=_0x2c324d,Be=(_0x560228,_0x2b19c0,_0x224c3b,_0x2c0534)=>{var _0x1708c7=_0x2bba17;for(var _0x335e1d=_0x2c0534>0x1?void 0x0:_0x2c0534?We(_0x2b19c0,_0x224c3b):_0x2b19c0,_0x5a8532=_0x560228[_0x1708c7(0x1bd)]-0x1,_0x3b612e;_0x5a8532>=0x0;_0x5a8532--)(_0x3b612e=_0x560228[_0x5a8532])&&(_0x335e1d=_0x3b612e(_0x335e1d)||_0x335e1d);return _0x335e1d;},F=(_0x33d2de,_0xc81d6d)=>(_0x165805,_0x478ce2)=>_0xc81d6d(_0x165805,_0x478ce2,_0x33d2de),J=(_0x32bfb5,_0x3ab9b4,_0x3b780f)=>Ye(_0x32bfb5,typeof _0x3ab9b4!=_0x2bba17(0x1f2)?_0x3ab9b4+'':_0x3ab9b4,_0x3b780f);const Ze=_0x2bba17(0x1a9);let O=class extends _0x568e79{constructor(_0x1a9bc4=$,_0x2b8cab,_0x52f59c){var _0x5dc2d7=_0x2bba17;super(),this[_0x5dc2d7(0x257)]=_0x1a9bc4,this[_0x5dc2d7(0x1bb)]=_0x2b8cab,this[_0x5dc2d7(0x20f)]=_0x52f59c;const {..._0x446619}=_0x183e3c({},$,this[_0x5dc2d7(0x257)]);this[_0x5dc2d7(0x20f)][_0x5dc2d7(0x235)](Ue,_0x446619);}[_0x2bba17(0x1c0)](){var _0x318f89=_0x2bba17;_0x3f7738(this[_0x318f89(0x1bb)],_0x41f9a2([[L],[m],[b],[I]],this[_0x318f89(0x257)]['override'])),_0x260c07(this['_injector'],[[b]]);}[_0x2bba17(0x21b)](){_0x260c07(this['_injector'],[[I]]);}};J(O,_0x2bba17(0x1f5),_0x47de85[_0x2bba17(0x23f)]),J(O,_0x2bba17(0x241),Ze),O=Be([_0x52d915(_0x138ab0),F(0x1,_0x15e820(_0x4e3021)),F(0x2,_0x556307)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2d3c9e=_0x2028;(function(_0x49f832,_0x456294){var _0x1bcb30=_0x2028,_0x38ba39=_0x49f832();while(!![]){try{var _0x7268f6=parseInt(_0x1bcb30(0x159))/0x1*(parseInt(_0x1bcb30(0x1c0))/0x2)+parseInt(_0x1bcb30(0x170))/0x3*(parseInt(_0x1bcb30(0x1ba))/0x4)+parseInt(_0x1bcb30(0x17f))/0x5+-parseInt(_0x1bcb30(0x18f))/0x6*(parseInt(_0x1bcb30(0x1c3))/0x7)+parseInt(_0x1bcb30(0x204))/0x8*(-parseInt(_0x1bcb30(0x1bb))/0x9)+parseInt(_0x1bcb30(0x1e4))/0xa+parseInt(_0x1bcb30(0x1c9))/0xb*(parseInt(_0x1bcb30(0x1ce))/0xc);if(_0x7268f6===_0x456294)break;else _0x38ba39['push'](_0x38ba39['shift']());}catch(_0x189c8c){_0x38ba39['push'](_0x38ba39['shift']());}}}(_0x2c5d,0x39239));var q=Object[_0x2d3c9e(0x1d4)],z=(_0xeacaed,_0x4bcf72,_0x34d425)=>_0x4bcf72 in _0xeacaed?q(_0xeacaed,_0x4bcf72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34d425}):_0xeacaed[_0x4bcf72]=_0x34d425,d=(_0x15eb23,_0x293a84,_0x13050e)=>z(_0x15eb23,typeof _0x293a84!=_0x2d3c9e(0x1bc)?_0x293a84+'':_0x293a84,_0x13050e);import{Disposable as _0x111f7b,toDisposable as _0xa4b7eb,IUniverInstanceService as _0x1c62eb,Inject as _0x1be652,Injector as _0x4591fb,IConfigService as _0x70a54,ICommandService as _0x1808e4,RxDisposable as _0x1a470f,UniverInstanceType as _0x448837,DisposableCollection as _0x2d5df5,CommandType as _0x155f0a,DependentOn as _0x2a6e71,Plugin as _0xdfe9ca,merge as _0x45be97,registerDependencies as _0xf06216,mergeOverrideWithDependencies as _0x534f8d,touchDependencies as _0x497b10}from'@univerjs/core';import{useDependency as _0x13cc7d,useObservable as _0x28fc1f,IUIPartsService as _0x202a87,BuiltInUIPart as _0x56776a,connectInjector as _0x33b8e8}from'@univerjs/ui';import{jsx as _0x37a173,jsxs as _0x222e8a,Fragment as _0x371f0b}from'react/jsx-runtime';import{Dropdown as _0x19a648,clsx as _0x2cbcb5,Button as _0x598994}from'@univerjs/design';import{forwardRef as _0x1e821a,useRef as _0x11d3f7,createElement as _0x361bf4,useState as _0x528802,useEffect as _0x1e18eb}from'react';import{CollaborationEvent as _0x21a091,parseProtocolChangeset as _0x1f2769}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1948ba,SessionStatus as _0x1b9c05,UniverCollaborationClientPlugin as _0x2d28a9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17eb95,SetWorksheetActiveOperation as _0x5d6d48}from'@univerjs/sheets';import{BehaviorSubject as _0x2299c1,Subject as _0x48ac5d}from'rxjs';import{takeUntil as _0x50b42f,throttleTime as _0x2eabc0}from'rxjs/operators';import{SetZoomRatioOperation as _0x1824f5,SetScrollOperation as _0x200040}from'@univerjs/sheets-ui';var c=function(){var _0xce977a=_0x2d3c9e;return c=Object[_0xce977a(0x156)]||function(_0x271f30){var _0x822202=_0xce977a;for(var _0x4bf13f,_0x3169cd=0x1,_0x53b8f1=arguments[_0x822202(0x1fe)];_0x3169cd<_0x53b8f1;_0x3169cd++){_0x4bf13f=arguments[_0x3169cd];for(var _0x5b8794 in _0x4bf13f)Object[_0x822202(0x1ed)][_0x822202(0x1cf)][_0x822202(0x1b2)](_0x4bf13f,_0x5b8794)&&(_0x271f30[_0x5b8794]=_0x4bf13f[_0x5b8794]);}return _0x271f30;},c['apply'](this,arguments);},Oe=function(_0xe57ff3,_0x1b559d){var _0x1de79f=_0x2d3c9e,_0x3018ed={};for(var _0x90a598 in _0xe57ff3)Object[_0x1de79f(0x1ed)][_0x1de79f(0x1cf)][_0x1de79f(0x1b2)](_0xe57ff3,_0x90a598)&&_0x1b559d['indexOf'](_0x90a598)<0x0&&(_0x3018ed[_0x90a598]=_0xe57ff3[_0x90a598]);if(_0xe57ff3!=null&&typeof Object[_0x1de79f(0x1c2)]==_0x1de79f(0x1e2)){for(var _0x37a8e8=0x0,_0x90a598=Object[_0x1de79f(0x1c2)](_0xe57ff3);_0x37a8e8<_0x90a598['length'];_0x37a8e8++)_0x1b559d['indexOf'](_0x90a598[_0x37a8e8])<0x0&&Object[_0x1de79f(0x1ed)][_0x1de79f(0x1e3)]['call'](_0xe57ff3,_0x90a598[_0x37a8e8])&&(_0x3018ed[_0x90a598[_0x37a8e8]]=_0xe57ff3[_0x90a598[_0x37a8e8]]);}return _0x3018ed;},W=_0x1e821a(function(_0x445150,_0xed2619){var _0x43d3f9=_0x2d3c9e,_0x51fd96=_0x445150[_0x43d3f9(0x164)],_0x179a2a=_0x445150['id'],_0x532d50=_0x445150[_0x43d3f9(0x1b0)],_0x186d3b=_0x445150[_0x43d3f9(0x15c)],_0x1fe0d4=Oe(_0x445150,['icon','id',_0x43d3f9(0x1b0),_0x43d3f9(0x15c)]),_0xebd91d=_0x43d3f9(0x17e)[_0x43d3f9(0x150)](_0x179a2a,'\x20')['concat'](_0x532d50||'')[_0x43d3f9(0x1c6)](),_0x38fd3f=_0x11d3f7('_'[_0x43d3f9(0x150)](Ne()));return Y(_0x51fd96,''[_0x43d3f9(0x150)](_0x179a2a),{'defIds':_0x51fd96[_0x43d3f9(0x186)],'idSuffix':_0x38fd3f['current']},c({'ref':_0xed2619,'className':_0xebd91d},_0x1fe0d4),_0x186d3b);});function Y(_0x2db4c6,_0x16847c,_0x2be46,_0x20946f,_0x52b159){var _0x46081e=_0x2d3c9e;return _0x361bf4(_0x2db4c6[_0x46081e(0x17d)],c(c({'key':_0x16847c},Ee(_0x2db4c6,_0x2be46,_0x52b159)),_0x20946f),(we(_0x2db4c6,_0x2be46)[_0x46081e(0x1e0)]||[])[_0x46081e(0x151)](function(_0x4254fe,_0x4337e1){var _0x2761d2=_0x46081e;return Y(_0x4254fe,''[_0x2761d2(0x150)](_0x16847c,'-')['concat'](_0x2db4c6[_0x2761d2(0x17d)],'-')['concat'](_0x4337e1),_0x2be46,void 0x0,_0x52b159);}));}function Ee(_0x29d891,_0x28b83e,_0x3c6185){var _0x2a853b=_0x2d3c9e,_0x5ec86d=c({},_0x29d891[_0x2a853b(0x1e9)]);_0x3c6185!=null&&_0x3c6185[_0x2a853b(0x1a1)]&&_0x5ec86d[_0x2a853b(0x19d)]==='colorChannel1'&&(_0x5ec86d[_0x2a853b(0x19d)]=_0x3c6185[_0x2a853b(0x1a1)]),_0x29d891[_0x2a853b(0x17d)]===_0x2a853b(0x154)&&_0x5ec86d['id']&&(_0x5ec86d['id']=_0x5ec86d['id']+_0x28b83e[_0x2a853b(0x1ec)]),Object[_0x2a853b(0x190)](_0x5ec86d)[_0x2a853b(0x177)](function(_0x5824a0){var _0x56085e=_0x2a853b,_0x29f356=_0x5824a0[0x0],_0x2640a2=_0x5824a0[0x1];_0x29f356===_0x56085e(0x154)&&typeof _0x2640a2==_0x56085e(0x16f)&&(_0x5ec86d[_0x29f356]=_0x2640a2[_0x56085e(0x1e1)](/url\(#(.*)\)/,_0x56085e(0x1a8)['concat'](_0x28b83e[_0x56085e(0x1ec)],')')));});var _0x5823c4=_0x28b83e[_0x2a853b(0x186)];return!_0x5823c4||_0x5823c4['length']===0x0||(_0x29d891[_0x2a853b(0x17d)]===_0x2a853b(0x182)&&_0x5ec86d[_0x2a853b(0x18e)]&&(_0x5ec86d['xlink:href']=_0x5ec86d[_0x2a853b(0x18e)]+_0x28b83e['idSuffix']),Object[_0x2a853b(0x190)](_0x5ec86d)['forEach'](function(_0x350c05){var _0x3319ae=_0x2a853b,_0x53ca01=_0x350c05[0x0],_0x31fae4=_0x350c05[0x1];typeof _0x31fae4==_0x3319ae(0x16f)&&(_0x5ec86d[_0x53ca01]=_0x31fae4[_0x3319ae(0x1e1)](/url\(#(.*)\)/,_0x3319ae(0x1a8)[_0x3319ae(0x150)](_0x28b83e['idSuffix'],')')));})),_0x5ec86d;}function we(_0x5c814d,_0x182c13){var _0x173735=_0x2d3c9e,_0xd13685,_0x3bc3de=_0x182c13[_0x173735(0x186)];return!_0x3bc3de||_0x3bc3de[_0x173735(0x1fe)]===0x0?_0x5c814d:_0x5c814d['tag']===_0x173735(0x1aa)&&(!((_0xd13685=_0x5c814d[_0x173735(0x1e0)])===null||_0xd13685===void 0x0)&&_0xd13685[_0x173735(0x1fe)])?c(c({},_0x5c814d),{'children':_0x5c814d[_0x173735(0x1e0)][_0x173735(0x151)](function(_0x459cd5){var _0x4a4c7a=_0x173735;return typeof _0x459cd5[_0x4a4c7a(0x1e9)]['id']=='string'&&_0x3bc3de&&_0x3bc3de['includes'](_0x459cd5['attrs']['id'])?c(c({},_0x459cd5),{'attrs':c(c({},_0x459cd5['attrs']),{'id':_0x459cd5[_0x4a4c7a(0x1e9)]['id']+_0x182c13[_0x4a4c7a(0x1ec)]})}):_0x459cd5;})}):_0x5c814d;}function Ne(){var _0x11a320=_0x2d3c9e;return Math[_0x11a320(0x1de)]()[_0x11a320(0x17c)](0x24)[_0x11a320(0x1d3)](0x2,0x8);}W[_0x2d3c9e(0x1c5)]=_0x2d3c9e(0x1c4);var Ce={'tag':_0x2d3c9e(0x1cb),'attrs':{'xmlns':_0x2d3c9e(0x1b4),'fill':_0x2d3c9e(0x1b7),'viewBox':_0x2d3c9e(0x1ff),'width':_0x2d3c9e(0x188),'height':_0x2d3c9e(0x188)},'children':[{'tag':_0x2d3c9e(0x1a2),'attrs':{'fill':_0x2d3c9e(0x1b8),'d':_0x2d3c9e(0x198)}},{'tag':_0x2d3c9e(0x1a2),'attrs':{'fill':_0x2d3c9e(0x1b8),'d':_0x2d3c9e(0x15f),'fillRule':_0x2d3c9e(0x153),'clipRule':_0x2d3c9e(0x153)}}]},B=_0x1e821a(function(_0x11e3e4,_0x2a52a0){var _0x5b617b=_0x2d3c9e;return _0x361bf4(W,Object['assign']({},_0x11e3e4,{'id':_0x5b617b(0x1b9),'ref':_0x2a52a0,'icon':Ce}));});B[_0x2d3c9e(0x1c5)]=_0x2d3c9e(0x1af);class L extends _0x111f7b{constructor(){var _0x672eaf=_0x2d3c9e;super(...arguments),d(this,_0x672eaf(0x197),new Set()),d(this,_0x672eaf(0x1fb),new Set());}[_0x2d3c9e(0x202)](_0x146e03){var _0x564c19=_0x2d3c9e;return this[_0x564c19(0x197)][_0x564c19(0x1d9)](_0x146e03),_0xa4b7eb(()=>this[_0x564c19(0x197)]['delete'](_0x146e03));}['registerInitialStateReporter'](_0x430494){var _0x2662b2=_0x2d3c9e;return this[_0x2662b2(0x1fb)][_0x2662b2(0x1d9)](_0x430494),_0xa4b7eb(()=>this[_0x2662b2(0x1fb)][_0x2662b2(0x17b)](_0x430494));}['shouldShareOperation'](_0x1d5a33){var _0x52eec8=_0x2d3c9e;return this[_0x52eec8(0x197)][_0x52eec8(0x192)](_0x1d5a33);}[_0x2d3c9e(0x1d8)](_0x58f717){var _0x944459=_0x2d3c9e;return Array[_0x944459(0x172)](this['_reporters'])['map'](_0x2a2875=>_0x2a2875(_0x58f717));}}var De=Object[_0x2d3c9e(0x1dc)],Z=(_0x636956,_0x3ae898,_0x212653,_0x398a5f)=>{var _0x4c45be=_0x2d3c9e;for(var _0x470b0a=_0x398a5f>0x1?void 0x0:_0x398a5f?De(_0x3ae898,_0x212653):_0x3ae898,_0x3af8dc=_0x636956[_0x4c45be(0x1fe)]-0x1,_0x505e6c;_0x3af8dc>=0x0;_0x3af8dc--)(_0x505e6c=_0x636956[_0x3af8dc])&&(_0x470b0a=_0x505e6c(_0x470b0a)||_0x470b0a);return _0x470b0a;},f=(_0x402875,_0x5e77f6)=>(_0x54a38f,_0x469e7c)=>_0x5e77f6(_0x54a38f,_0x469e7c,_0x402875);let m=class extends _0x1a470f{constructor(_0x27f5cb,_0x2fff6e,_0x1584c1){var _0x4e8c15=_0x2d3c9e;super(),d(this,_0x4e8c15(0x196),new Map()),(this[_0x4e8c15(0x1fd)]=_0x27f5cb,this[_0x4e8c15(0x1be)]=_0x2fff6e,this['_collabSessionService']=_0x1584c1,this[_0x4e8c15(0x201)]());}async[_0x2d3c9e(0x1ef)](_0x3f7795){var _0x232ba8=_0x2d3c9e;return this[_0x232ba8(0x196)][_0x232ba8(0x192)](_0x3f7795)||await this[_0x232ba8(0x19a)](_0x3f7795),this[_0x232ba8(0x196)]['get'](_0x3f7795);}[_0x2d3c9e(0x201)](){var _0x4bd43d=_0x2d3c9e;this[_0x4bd43d(0x1fd)]['getTypeOfUnitAdded$'](_0x448837[_0x4bd43d(0x1ea)])[_0x4bd43d(0x1d0)](_0x50b42f(this[_0x4bd43d(0x183)]))[_0x4bd43d(0x1bf)](async _0x2d2ed0=>{var _0x2628d4=_0x4bd43d;const _0x8dfcbd=_0x2d2ed0[_0x2628d4(0x195)]();this['_entities']['has'](_0x8dfcbd)||this[_0x2628d4(0x19a)](_0x8dfcbd);}),this[_0x4bd43d(0x1fd)][_0x4bd43d(0x1b6)](_0x448837[_0x4bd43d(0x1ea)])['pipe'](_0x50b42f(this[_0x4bd43d(0x183)]))[_0x4bd43d(0x1bf)](_0x4bcd7b=>{var _0x54cb57=_0x4bd43d;const _0x4f7f29=_0x4bcd7b['getUnitId'](),_0x3a9a8c=this[_0x54cb57(0x196)][_0x54cb57(0x1ee)](_0x4f7f29);_0x3a9a8c==null||_0x3a9a8c['dispose']();});}async[_0x2d3c9e(0x19a)](_0x5a6579){var _0x4eaf1f=_0x2d3c9e;const _0x55e341=await this[_0x4eaf1f(0x1dd)]['requireSession'](_0x5a6579),_0x3c94a1=this[_0x4eaf1f(0x1be)]['createInstance'](C,_0x5a6579,_0x55e341);return _0x3c94a1[_0x4eaf1f(0x199)](),this[_0x4eaf1f(0x196)][_0x4eaf1f(0x191)](_0x5a6579,_0x3c94a1),_0x3c94a1;}};m=Z([f(0x0,_0x1c62eb),f(0x1,_0x1be652(_0x4591fb)),f(0x2,_0x1be652(_0x1948ba))],m);var h=(_0x901b8a=>(_0x901b8a[_0x2d3c9e(0x15e)]=_0x2d3c9e(0x158),_0x901b8a[_0x2d3c9e(0x1b1)]='idle',_0x901b8a[_0x2d3c9e(0x1f7)]=_0x2d3c9e(0x18c),_0x901b8a[_0x2d3c9e(0x1a6)]='not-following',_0x901b8a[_0x2d3c9e(0x1e5)]=_0x2d3c9e(0x1cd),_0x901b8a))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1a470f{constructor(_0x485aea,_0x3b4081,_0x1aad8c,_0x568fdd,_0x323899){var _0x199300=_0x2d3c9e;super(),d(this,'_status$',new _0x2299c1(_0x199300(0x1df))),d(this,_0x199300(0x16c),this[_0x199300(0x155)][_0x199300(0x205)]()),d(this,_0x199300(0x201),!0x1),d(this,'_commandDisposable',null),d(this,_0x199300(0x194),null),(this[_0x199300(0x19e)]=_0x485aea,this[_0x199300(0x1f1)]=_0x3b4081,this[_0x199300(0x193)]=_0x1aad8c,this[_0x199300(0x1eb)]=_0x568fdd,this['_commandService']=_0x323899);}get[_0x2d3c9e(0x1a7)](){var _0x37c0df=_0x2d3c9e;return this[_0x37c0df(0x155)]['getValue']();}['dispose'](){var _0x29706e=_0x2d3c9e,_0x5cf048;(_0x5cf048=this[_0x29706e(0x1fc)])==null||_0x5cf048[_0x29706e(0x16a)](),this[_0x29706e(0x155)]['next'](_0x29706e(0x1df)),this[_0x29706e(0x155)][_0x29706e(0x152)]();}[_0x2d3c9e(0x199)](){var _0x48c6d1=_0x2d3c9e;this['_init']||(this[_0x48c6d1(0x201)]=!0x0,this[_0x48c6d1(0x1f1)]['sessionStatus$']['pipe'](_0x50b42f(this[_0x48c6d1(0x183)]))[_0x48c6d1(0x1bf)](_0x3ad177=>{var _0x408adb=_0x48c6d1;switch(_0x3ad177){case _0x1b9c05[_0x408adb(0x15e)]:this[_0x408adb(0x1f4)]();break;case _0x1b9c05[_0x408adb(0x15b)]:this[_0x408adb(0x207)]();break;}}),this[_0x48c6d1(0x1f1)][_0x48c6d1(0x1db)]['pipe'](_0x50b42f(this[_0x48c6d1(0x183)]))['subscribe'](_0x3d8ed5=>{var _0x1ae477=_0x48c6d1;const {eventID:_0xc9a9cc}=_0x3d8ed5;switch(_0xc9a9cc){case _0x21a091[_0x1ae477(0x169)]:this[_0x1ae477(0x1a9)](_0x3d8ed5);break;case _0x21a091[_0x1ae477(0x1d6)]:this[_0x1ae477(0x16b)](_0x3d8ed5);break;case _0x21a091[_0x1ae477(0x157)]:this['_handleTerminate']();break;case _0x21a091[_0x1ae477(0x208)]:this['_handleNewChangeSets'](_0x3d8ed5);break;}}));}[_0x2d3c9e(0x1d7)](){var _0x5336e6=_0x2d3c9e;this['_collabSession'][_0x5336e6(0x1d5)]({'eventID':_0x21a091['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x5336e6(0x1f1)][_0x5336e6(0x1ad)]()}},this[_0x5336e6(0x19e)]);}['stopPresenting'](){var _0xc23cc2=_0x2d3c9e;this[_0xc23cc2(0x1a7)]==='presenting'&&(this[_0xc23cc2(0x155)][_0xc23cc2(0x1f8)](_0xc23cc2(0x1df)),this['_collabSession']['send']({'eventID':_0x21a091[_0xc23cc2(0x157)],'data':{'unitID':this[_0xc23cc2(0x19e)]}},this['_unitID']));}[_0x2d3c9e(0x1d1)](){var _0x2d5140=_0x2d3c9e;this[_0x2d5140(0x1a7)]===_0x2d5140(0x15a)&&(this['_status$'][_0x2d5140(0x1f8)]('following'),this[_0x2d5140(0x19c)]());}[_0x2d3c9e(0x1d2)](){var _0x21bade=_0x2d3c9e;this[_0x21bade(0x1a7)]===_0x21bade(0x18c)&&this[_0x21bade(0x1c8)]();}[_0x2d3c9e(0x1a9)](_0x19aab4){var _0xc681c8=_0x2d3c9e;const {presenter:_0x2eb945}=_0x19aab4[_0xc681c8(0x1ae)],_0x33b93e=this['_collabSession'][_0xc681c8(0x1ad)]();this[_0xc681c8(0x194)]=_0x2eb945,_0x2eb945===_0x33b93e?(this[_0xc681c8(0x1c8)](),this['_startPresenting']()):this['_status']!==_0xc681c8(0x15a)&&(this[_0xc681c8(0x163)](),this[_0xc681c8(0x19c)]());}[_0x2d3c9e(0x1e6)](){var _0x4be150=_0x2d3c9e;const _0x18eb38={'eventID':_0x21a091[_0x4be150(0x18a)]};this[_0x4be150(0x1f1)][_0x4be150(0x1d5)](_0x18eb38,this['_unitID']);}[_0x2d3c9e(0x166)](){var _0x3d6259=_0x2d3c9e;this[_0x3d6259(0x194)]=null,this[_0x3d6259(0x1a7)]!==_0x3d6259(0x1cd)&&this[_0x3d6259(0x173)]();}[_0x2d3c9e(0x1f5)](_0x4c5b61){var _0xf1305a=_0x2d3c9e;if(this['_status']===_0xf1305a(0x18c)&&this[_0xf1305a(0x194)]===_0x4c5b61[_0xf1305a(0x1ae)][_0xf1305a(0x203)]){const _0x395e23=_0x1f2769(_0x4c5b61[_0xf1305a(0x1ae)])['mutations'][_0xf1305a(0x1bd)]()['find'](_0x2696cc=>_0x2696cc['id']===_0x17eb95['id']);if(_0x395e23){const _0x5ec89f=_0x395e23['params'][_0xf1305a(0x175)],_0x15e2d2=_0x395e23[_0xf1305a(0x189)][_0xf1305a(0x18d)]['id'];setTimeout(()=>{var _0x4818af=_0xf1305a;this['_commandService'][_0x4818af(0x176)](_0x5d6d48['id'],{'unitId':_0x5ec89f,'subUnitId':_0x15e2d2},{'fromCollab':!0x0});});}}}[_0x2d3c9e(0x1b3)](){var _0x3b9962=_0x2d3c9e;this[_0x3b9962(0x155)]['next']('presenting');const _0x771ec=new Map(),_0x27d081=this[_0x3b9962(0x1fc)]=new _0x2d5df5();_0x27d081['add'](_0xa4b7eb(()=>{var _0x3fe133=_0x3b9962;_0x771ec[_0x3fe133(0x177)](_0xe6add8=>_0xe6add8['complete']()),_0x771ec[_0x3fe133(0x161)]();})),_0x27d081['add'](this[_0x3b9962(0x1c1)]['onCommandExecuted'](_0x1976bf=>{var _0x8b2fef=_0x3b9962,_0x17f022;if(_0x1976bf[_0x8b2fef(0x1cc)]!==_0x155f0a[_0x8b2fef(0x165)]||!this['_liveShareService'][_0x8b2fef(0x1a3)](_0x1976bf['id']))return;const {id:_0x4de612}=_0x1976bf;let _0x4413e0;_0x771ec['has'](_0x4de612)?_0x4413e0=_0x771ec[_0x8b2fef(0x1ee)](_0x4de612):(_0x4413e0=new _0x48ac5d(),_0x771ec['set'](_0x4de612,_0x4413e0),_0x4413e0['pipe'](_0x2eabc0((_0x17f022=this[_0x8b2fef(0x193)][_0x8b2fef(0x1f2)](xe))!=null?_0x17f022:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x8b2fef(0x1bf)](_0x23ab1c=>{var _0x2d368f=_0x8b2fef;this['_collabSession']['send']({'eventID':_0x21a091[_0x2d368f(0x1d6)],'data':{'unitID':this[_0x2d368f(0x19e)],'operations':{[_0x23ab1c['id']]:{'id':_0x23ab1c['id'],'params':JSON[_0x2d368f(0x185)](_0x23ab1c[_0x2d368f(0x189)])}}}},this[_0x2d368f(0x19e)]);})),_0x4413e0[_0x8b2fef(0x1f8)](_0x1976bf);})),this['_liveShareService'][_0x3b9962(0x1d8)](this[_0x3b9962(0x19e)])[_0x3b9962(0x177)](_0x5df3a3=>this['_collabSession'][_0x3b9962(0x1d5)]({'eventID':_0x21a091['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5df3a3['id']]:{'id':_0x5df3a3['id'],'params':JSON[_0x3b9962(0x185)](_0x5df3a3[_0x3b9962(0x189)])}}}},this[_0x3b9962(0x19e)]));}[_0x2d3c9e(0x163)](){var _0x97eea5=_0x2d3c9e,_0x3cfc20;this[_0x97eea5(0x155)]['next'](_0x97eea5(0x1df)),(_0x3cfc20=this[_0x97eea5(0x1fc)])==null||_0x3cfc20['dispose'](),this[_0x97eea5(0x1fc)]=null;}['_startFollowing'](){var _0x3bbe2d=_0x2d3c9e,_0x55a1d6;(_0x55a1d6=this[_0x3bbe2d(0x1fc)])==null||_0x55a1d6[_0x3bbe2d(0x16a)](),this[_0x3bbe2d(0x155)][_0x3bbe2d(0x1f8)]('following');}[_0x2d3c9e(0x173)](){var _0x15e233=_0x2d3c9e,_0x2bc98e;this[_0x15e233(0x155)]['next'](_0x15e233(0x1df)),(_0x2bc98e=this['_commandDisposable'])==null||_0x2bc98e[_0x15e233(0x16a)](),this[_0x15e233(0x1fc)]=null;}[_0x2d3c9e(0x1c8)](){var _0x364b75=_0x2d3c9e,_0xe0b989;this['_status$']['next'](_0x364b75(0x15a)),(_0xe0b989=this[_0x364b75(0x1fc)])==null||_0xe0b989[_0x364b75(0x16a)]();}[_0x2d3c9e(0x16b)](_0x51720b){var _0x292548=_0x2d3c9e;if(['presenting',_0x292548(0x15a),_0x292548(0x158)][_0x292548(0x1a0)](this[_0x292548(0x1a7)])||!_0x51720b[_0x292548(0x1ae)][_0x292548(0x1c7)]||_0x51720b[_0x292548(0x1ae)][_0x292548(0x1c7)]===this[_0x292548(0x1f1)][_0x292548(0x1ad)]())return;this[_0x292548(0x1a7)]===_0x292548(0x1df)&&this[_0x292548(0x19c)]();const _0x428bad=_0x51720b['data'][_0x292548(0x187)];Object[_0x292548(0x1a5)](_0x428bad)[_0x292548(0x177)](_0x554110=>{var _0x4e888c=_0x292548;this[_0x4e888c(0x1c1)]['executeCommand'](_0x554110['id'],_0x554110['params']?JSON[_0x4e888c(0x184)](_0x554110[_0x4e888c(0x189)]):null,{'fromCollab':!0x0});});}[_0x2d3c9e(0x1f4)](){var _0x1bcf49=_0x2d3c9e,_0x40d225;this['_status$'][_0x1bcf49(0x1f8)](_0x1bcf49(0x158)),(_0x40d225=this[_0x1bcf49(0x1fc)])==null||_0x40d225[_0x1bcf49(0x16a)]();}[_0x2d3c9e(0x207)](){var _0x534f76=_0x2d3c9e;this[_0x534f76(0x155)][_0x534f76(0x1f8)](_0x534f76(0x1df)),this[_0x534f76(0x1e6)]();}};C=Z([f(0x2,_0x70a54),f(0x3,_0x1be652(L)),f(0x4,_0x1808e4)],C);function ye(){var _0x5d6fdc=_0x2d3c9e;const _0x317d50=_0x13cc7d(m),_0x56ccbe=_0x13cc7d(_0x1c62eb),_0x1a6bcb=_0x28fc1f(()=>_0x56ccbe[_0x5d6fdc(0x1f6)](_0x448837[_0x5d6fdc(0x1ea)]),void 0x0,!0x1,[]),[_0x1de7e3,_0x484fb0]=_0x528802(null),[_0x24853f,_0x3e054f]=_0x528802(h['IDLE']),_0x9d5b1b=_0x11d3f7(null);return _0x1e18eb(()=>(_0x1a6bcb&&_0x317d50['getLiveShareCoordinator'](_0x1a6bcb[_0x5d6fdc(0x195)]())[_0x5d6fdc(0x1ab)](_0x48c652=>{var _0xac1364=_0x5d6fdc;_0x484fb0(_0x48c652),_0x9d5b1b[_0xac1364(0x179)]=_0x48c652['status$'][_0xac1364(0x1bf)](_0x2fc5dd=>{_0x3e054f(_0x2fc5dd);});}),()=>{var _0x51f7a7=_0x5d6fdc,_0x2ca15b;(_0x2ca15b=_0x9d5b1b[_0x51f7a7(0x179)])==null||_0x2ca15b[_0x51f7a7(0x1e8)](),_0x9d5b1b[_0x51f7a7(0x179)]=null;}),[_0x1a6bcb,_0x317d50]),_0x1de7e3?_0x37a173(_0x19a648,{'align':_0x5d6fdc(0x178),'disabled':_0x24853f===h[_0x5d6fdc(0x15e)],'className':_0x5d6fdc(0x1fa),'overlay':_0x37a173(Re,{'status':_0x24853f,'coordinator':_0x1de7e3}),'children':_0x37a173(_0x5d6fdc(0x16e),{'className':_0x2cbcb5(_0x5d6fdc(0x18b),{'univer-cursor-not-allowed':_0x24853f===h[_0x5d6fdc(0x15e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24853f!==h['OFFLINE']}),'type':_0x5d6fdc(0x16e),'children':_0x37a173(B,{'className':_0x5d6fdc(0x180)})})}):null;}function Re(_0x2e3bc3){var _0x4b9e76=_0x2d3c9e;const {status:_0x459ada,coordinator:_0x462561}=_0x2e3bc3;switch(_0x459ada){case h['IDLE']:return _0x37a173(Pe,{'coordinator':_0x462561});case h[_0x4b9e76(0x1f7)]:return _0x37a173(Ae,{'coordinator':_0x462561});case h[_0x4b9e76(0x1a6)]:return _0x37a173(Te,{'coordinator':_0x462561});case h['OFFLINE']:return _0x37a173(Fe,{});case h[_0x4b9e76(0x1e5)]:return _0x37a173($e,{'coordinator':_0x462561});default:return null;}}function Pe(_0x92d7ac){var _0x457c57=_0x2d3c9e;const {coordinator:_0x88d9d6}=_0x92d7ac;return _0x222e8a(_0x371f0b,{'children':[_0x37a173(_0x457c57(0x19f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x457c57(0x19b)}),_0x37a173(_0x598994,{'onClick':()=>_0x88d9d6[_0x457c57(0x1d7)](),'children':_0x457c57(0x171)})]});}function Ae(_0xa3ee0b){var _0x7d328a=_0x2d3c9e;const {coordinator:_0x5bacf5}=_0xa3ee0b;return _0x222e8a(_0x371f0b,{'children':[_0x37a173(_0x7d328a(0x19f),{'className':_0x7d328a(0x1f3),'children':_0x7d328a(0x200)}),_0x37a173(_0x598994,{'onClick':()=>_0x5bacf5[_0x7d328a(0x1d2)](),'children':_0x7d328a(0x181)})]});}function Te(_0x4281aa){var _0x4c5f05=_0x2d3c9e;const {coordinator:_0x4e51d3}=_0x4281aa;return _0x222e8a(_0x371f0b,{'children':[_0x37a173('div',{'className':_0x4c5f05(0x1f3),'children':_0x4c5f05(0x1f0)}),_0x37a173(_0x598994,{'variant':_0x4c5f05(0x206),'onClick':()=>_0x4e51d3[_0x4c5f05(0x1d1)](),'children':_0x4c5f05(0x1a4)})]});}function $e(_0x105dbf){var _0x146be8=_0x2d3c9e;const {coordinator:_0x51a1ff}=_0x105dbf;return _0x222e8a(_0x371f0b,{'children':[_0x37a173('div',{'className':_0x146be8(0x1f3),'children':_0x146be8(0x16d)}),_0x37a173(_0x598994,{'variant':'default','onClick':()=>_0x51a1ff[_0x146be8(0x1e7)](),'children':_0x146be8(0x1f9)})]});}function _0x2c5d(){var _0x8bbe95=['get','getLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','getConfig','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','_handleNewChangeSets','getCurrentTypeOfUnit$','FOLLOWING','next','Stop\x20presenting','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','_reporters','_commandDisposable','_univerInstanceService','length','0\x200\x2017\x2017','You\x27re\x20following\x20the\x20presenter','_init','registerSharedOperation','memberID','161208GmUodH','asObservable','text','_handleOnline','NEW_CHANGESETS','disposeWithMe','concat','map','complete','evenodd','mask','_status$','assign','LIVESHARE_TERMINATE','offline','6778HOKIUa','not-following','ONLINE','extend','override','OFFLINE','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','UNIVER_LIVE_SHARE_PLUGIN','clear','_mountLiveShare','_stopPresenting','icon','OPERATION','_handleTerminate','live-share.config','_config','LIVESHARE_NEW_HOST','dispose','_handleOperation','status$','You\x27re\x20presenting\x20the\x20document','button','string','6FZRkYE','Start','from','_beIdle','registerComponent','unitId','executeCommand','forEach','end','current','onStarting','delete','toString','tag','univerjs-icon\x20univerjs-icon-','123135BWdePL','univer-size-4','Stop\x20following','use','dispose$','parse','stringify','defIds','operations','1em','params','LIVESHARE_FETCH_OPERATIONS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','sheet','xlink:href','258972NayxaS','entries','set','has','_configService','_presenter','getUnitId','_entities','_sharedOperations','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','init','_startLiveShareCoordinator','Present\x20this\x20document','_startFollowing','fill','_unitID','div','includes','colorChannel1','path','shouldShareOperation','Start\x20following','values','NOT_FOLLOWING','_status','url(#$1','_handleNewHost','defs','then','onRendered','getMemberID','data','LiveShareIcon','className','IDLE','call','_startPresenting','http://www.w3.org/2000/svg','pluginName','getTypeOfUnitDisposed$','none','currentColor','live-share-icon','314508UArZqe','63hjNHFe','symbol','reverse','_injector','subscribe','2FojwiI','_commandService','getOwnPropertySymbols','49LUZxjl','UniverIcon','displayName','trim','presenter','_stopFollowing','2611411ZfFlev','_uiPartsService','svg','type','presenting','12PbQdLq','hasOwnProperty','pipe','startFollowing','stopFollowing','substring','defineProperty','send','LIVESHARE_OPERATION','tryStartPresenting','getInitialStates','add','HEADER_MENU','event$','getOwnPropertyDescriptor','_collabSessionService','random','idle','children','replace','function','propertyIsEnumerable','2511720DhGIpt','PRESENTING','_fetchOperations','stopPresenting','unsubscribe','attrs','UNIVER_SHEET','_liveShareService','idSuffix','prototype'];_0x2c5d=function(){return _0x8bbe95;};return _0x2c5d();}function _0x2028(_0x1864e2,_0x986396){var _0x2c5d07=_0x2c5d();return _0x2028=function(_0x2028b5,_0x20e28b){_0x2028b5=_0x2028b5-0x14f;var _0x58a6c9=_0x2c5d07[_0x2028b5];return _0x58a6c9;},_0x2028(_0x1864e2,_0x986396);}function Fe(){return _0x37a173(_0x371f0b,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x2afd97,_0x2412fc,_0x4fc6c2,_0x3b57ef)=>{var _0xfb87f0=_0x2d3c9e;for(var _0x2f6ee9=_0x3b57ef>0x1?void 0x0:_0x3b57ef?He(_0x2412fc,_0x4fc6c2):_0x2412fc,_0x2784b2=_0x2afd97[_0xfb87f0(0x1fe)]-0x1,_0x6651e2;_0x2784b2>=0x0;_0x2784b2--)(_0x6651e2=_0x2afd97[_0x2784b2])&&(_0x2f6ee9=_0x6651e2(_0x2f6ee9)||_0x2f6ee9);return _0x2f6ee9;},T=(_0x5d476d,_0x456b57)=>(_0x386064,_0x543c1e)=>_0x456b57(_0x386064,_0x543c1e,_0x5d476d);let I=class extends _0x111f7b{constructor(_0x4660ce,_0x196078){var _0x2f6dbb=_0x2d3c9e;super(),this[_0x2f6dbb(0x1be)]=_0x4660ce,this[_0x2f6dbb(0x1ca)]=_0x196078,this[_0x2f6dbb(0x162)]();}[_0x2d3c9e(0x162)](){var _0x3b9c26=_0x2d3c9e;this[_0x3b9c26(0x14f)](this[_0x3b9c26(0x1ca)][_0x3b9c26(0x174)](_0x56776a[_0x3b9c26(0x1da)],()=>_0x33b8e8(ye,this[_0x3b9c26(0x1be)])));}};I=je([T(0x0,_0x1be652(_0x4591fb)),T(0x1,_0x202a87)],I);const Ue=_0x2d3c9e(0x167),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x5ae4bf,_0x3d1e9e,_0x1f43af,_0x89b607)=>{var _0x2c55a4=_0x2d3c9e;for(var _0x5573cc=_0x89b607>0x1?void 0x0:_0x89b607?Ve(_0x3d1e9e,_0x1f43af):_0x3d1e9e,_0x367253=_0x5ae4bf[_0x2c55a4(0x1fe)]-0x1,_0x2184c2;_0x367253>=0x0;_0x367253--)(_0x2184c2=_0x5ae4bf[_0x367253])&&(_0x5573cc=_0x2184c2(_0x5573cc)||_0x5573cc);return _0x5573cc;},ke=(_0x3b8653,_0x4e61a8)=>(_0x14d6be,_0x2d3779)=>_0x4e61a8(_0x14d6be,_0x2d3779,_0x3b8653);let b=class extends _0x111f7b{constructor(_0x2a2dcf){var _0x4b6207=_0x2d3c9e;super(),this[_0x4b6207(0x1eb)]=_0x2a2dcf,this[_0x4b6207(0x201)]();}[_0x2d3c9e(0x201)](){[_0x1824f5['id'],_0x200040['id'],_0x5d6d48['id']]['forEach'](_0x2c0a99=>{var _0x421783=_0x2028;this['disposeWithMe'](this[_0x421783(0x1eb)]['registerSharedOperation'](_0x2c0a99));});}};b=Me([ke(0x0,_0x1be652(L))],b);var Ge=Object[_0x2d3c9e(0x1d4)],We=Object[_0x2d3c9e(0x1dc)],Ye=(_0x5bfe74,_0x441cbe,_0x3dded5)=>_0x441cbe in _0x5bfe74?Ge(_0x5bfe74,_0x441cbe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dded5}):_0x5bfe74[_0x441cbe]=_0x3dded5,Be=(_0x9d76c6,_0x38f17b,_0x145228,_0xa4d8cc)=>{var _0x277749=_0x2d3c9e;for(var _0x9f5b4c=_0xa4d8cc>0x1?void 0x0:_0xa4d8cc?We(_0x38f17b,_0x145228):_0x38f17b,_0x13931d=_0x9d76c6[_0x277749(0x1fe)]-0x1,_0x5f55f1;_0x13931d>=0x0;_0x13931d--)(_0x5f55f1=_0x9d76c6[_0x13931d])&&(_0x9f5b4c=_0x5f55f1(_0x9f5b4c)||_0x9f5b4c);return _0x9f5b4c;},F=(_0x48768d,_0x45730d)=>(_0x29b3fe,_0x572de8)=>_0x45730d(_0x29b3fe,_0x572de8,_0x48768d),J=(_0x154831,_0x39b840,_0x5cf02a)=>Ye(_0x154831,typeof _0x39b840!=_0x2d3c9e(0x1bc)?_0x39b840+'':_0x39b840,_0x5cf02a);const Ze=_0x2d3c9e(0x160);let O=class extends _0xdfe9ca{constructor(_0x15753f=$,_0x23999e,_0x262da0){var _0x364e23=_0x2d3c9e;super(),this[_0x364e23(0x168)]=_0x15753f,this[_0x364e23(0x1be)]=_0x23999e,this['_configService']=_0x262da0;const {..._0x31273a}=_0x45be97({},$,this['_config']);this[_0x364e23(0x193)]['setConfig'](Ue,_0x31273a);}[_0x2d3c9e(0x17a)](){var _0x4c9fb5=_0x2d3c9e;_0xf06216(this[_0x4c9fb5(0x1be)],_0x534f8d([[L],[m],[b],[I]],this[_0x4c9fb5(0x168)][_0x4c9fb5(0x15d)])),_0x497b10(this[_0x4c9fb5(0x1be)],[[b]]);}[_0x2d3c9e(0x1ac)](){var _0x49d340=_0x2d3c9e;_0x497b10(this[_0x49d340(0x1be)],[[I]]);}};J(O,_0x2d3c9e(0x1cc),_0x448837['UNIVER_UNKNOWN']),J(O,_0x2d3c9e(0x1b5),Ze),O=Be([_0x2a6e71(_0x2d28a9),F(0x1,_0x1be652(_0x4591fb)),F(0x2,_0x70a54)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2bba17=_0x5c52;(function(_0x50f953,_0x46f1af){var _0x25f7d9=_0x5c52,_0x226402=_0x50f953();while(!![]){try{var _0x664b43=-parseInt(_0x25f7d9(0x1b9))/0x1*(parseInt(_0x25f7d9(0x1dc))/0x2)+parseInt(_0x25f7d9(0x24e))/0x3+parseInt(_0x25f7d9(0x208))/0x4*(-parseInt(_0x25f7d9(0x24b))/0x5)+-parseInt(_0x25f7d9(0x242))/0x6*(parseInt(_0x25f7d9(0x200))/0x7)+parseInt(_0x25f7d9(0x1f4))/0x8*(parseInt(_0x25f7d9(0x223))/0x9)+parseInt(_0x25f7d9(0x1e5))/0xa+parseInt(_0x25f7d9(0x1cf))/0xb*(parseInt(_0x25f7d9(0x1a6))/0xc);if(_0x664b43===_0x46f1af)break;else _0x226402['push'](_0x226402['shift']());}catch(_0x1a657a){_0x226402['push'](_0x226402['shift']());}}}(_0x3d1f,0x8334d));var q=Object[_0x2bba17(0x1af)],z=(_0x1373e0,_0x25b75c,_0x34e93c)=>_0x25b75c in _0x1373e0?q(_0x1373e0,_0x25b75c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34e93c}):_0x1373e0[_0x25b75c]=_0x34e93c,d=(_0x89a4a5,_0x39ab7b,_0x3f14b6)=>z(_0x89a4a5,typeof _0x39ab7b!=_0x2bba17(0x1f2)?_0x39ab7b+'':_0x39ab7b,_0x3f14b6);function _0x3d1f(){var _0x8f7cd4=['IDLE','_handleOffline','_stopFollowing','_fetchOperations','displayName','presenting','LIVESHARE_FETCH_OPERATIONS','792YrPNOC','complete','text','UNIVER_LIVE_SHARE_PLUGIN','replace','1em','get','getMemberID','registerComponent','defineProperty','OFFLINE','univer-size-4','getInitialStates','offline','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopPresenting','LIVESHARE_NEW_HOST','_sharedOperations','disposeWithMe','2SvlFiK','getTypeOfUnitAdded$','_injector','div','length','_commandService','from','onStarting','prototype','values','attrs','asObservable','registerSharedOperation','_commandDisposable','_handleOnline','live-share.config','startFollowing','event$','createInstance','getUnitId','find','pipe','136642wnHCso','_mountLiveShare','_startFollowing','hasOwnProperty','stopFollowing','_status$','sheet','following','Present\x20this\x20document','clear','xlink:href','_handleNewChangeSets','stopPresenting','501086GPQHVw','next','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','dispose','_handleNewHost','then','use','FOLLOWING','3022770mZyvBK','tag','call','live-share-icon','LIVESHARE_OPERATION','idSuffix','subscribe','getConfig','executeCommand','add','button','random','fill','symbol','You\x27re\x20presenting\x20the\x20document','16MKeQYA','type','UniverIcon','concat','reverse','defs','path','_handleTerminate','OPERATION','shouldShareOperation','_beIdle','_startPresenting','7EzPVTa','_init','has','_handleOperation','tryStartPresenting','currentColor','NOT_FOLLOWING','getOwnPropertySymbols','1220kZLDfT','UNIVER_SHEET','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','send','set','none','_configService','colorChannel1','LiveShareIcon','presenter','data','_unitID','mask','params','map','entries','LIVESHARE_REQUEST_HOST','_uiPartsService','onRendered','trim','_startLiveShareCoordinator','default','_univerInstanceService','mutations','NEW_CHANGESETS','_reporters','636399wDJwro','icon','apply','HEADER_MENU','assign','_collabSession','url(#$1','You\x27are\x20offline.','dispose$','idle','function','substring','delete','end','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','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','not-following','sessionStatus$','setConfig','You\x27re\x20following\x20the\x20presenter','Stop\x20following','parse','memberID','requireSession','ONLINE','forEach','univerjs-icon\x20univerjs-icon-','unitId','UNIVER_UNKNOWN','defIds','pluginName','2176206svqwVf','indexOf','extend','LIVESHARE_TERMINATE','getLiveShareCoordinator','getTypeOfUnitDisposed$','status$','children','className','11895gUrjJK','PRESENTING','includes','2589756LreNzt','init','_entities','Stop\x20presenting','string','current','_presenter','_status','stringify','_config'];_0x3d1f=function(){return _0x8f7cd4;};return _0x3d1f();}import{Disposable as _0x3de408,toDisposable as _0x5a8d97,IUniverInstanceService as _0x19ca6f,Inject as _0x15e820,Injector as _0x4e3021,IConfigService as _0x556307,ICommandService as _0x10d520,RxDisposable as _0x59a582,UniverInstanceType as _0x47de85,DisposableCollection as _0x4240bf,CommandType as _0x165fca,DependentOn as _0x52d915,Plugin as _0x568e79,merge as _0x183e3c,registerDependencies as _0x3f7738,mergeOverrideWithDependencies as _0x41f9a2,touchDependencies as _0x260c07}from'@univerjs/core';import{useDependency as _0xc099b5,useObservable as _0x4ef5ee,IUIPartsService as _0x2c2e3a,BuiltInUIPart as _0x3b5335,connectInjector as _0x566771}from'@univerjs/ui';import{jsx as _0x53a3f2,jsxs as _0x5ec3e4,Fragment as _0x3f2ee7}from'react/jsx-runtime';import{Dropdown as _0x32e2ae,clsx as _0x3d4732,Button as _0x45c8b4}from'@univerjs/design';import{forwardRef as _0x1b8e4b,useRef as _0x1b3914,createElement as _0x3e3bff,useState as _0x5d4ac5,useEffect as _0x495b6b}from'react';import{CollaborationEvent as _0x38954f,parseProtocolChangeset as _0x4970c2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20751a,SessionStatus as _0x49405b,UniverCollaborationClientPlugin as _0x138ab0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x8fec39,SetWorksheetActiveOperation as _0x46da91}from'@univerjs/sheets';import{BehaviorSubject as _0x496961,Subject as _0x18793c}from'rxjs';import{takeUntil as _0x1f496f,throttleTime as _0xeb3dd1}from'rxjs/operators';import{SetZoomRatioOperation as _0x3da0d3,SetScrollOperation as _0x5d109c}from'@univerjs/sheets-ui';var c=function(){var _0x2c47a6=_0x2bba17;return c=Object['assign']||function(_0x279405){var _0x277b51=_0x5c52;for(var _0x527f1b,_0x26ee42=0x1,_0x1b1ce2=arguments[_0x277b51(0x1bd)];_0x26ee42<_0x1b1ce2;_0x26ee42++){_0x527f1b=arguments[_0x26ee42];for(var _0x4f504e in _0x527f1b)Object['prototype'][_0x277b51(0x1d2)][_0x277b51(0x1e7)](_0x527f1b,_0x4f504e)&&(_0x279405[_0x4f504e]=_0x527f1b[_0x4f504e]);}return _0x279405;},c[_0x2c47a6(0x225)](this,arguments);},Oe=function(_0x318572,_0x377bb1){var _0x3a3bae=_0x2bba17,_0x4fd993={};for(var _0x646bd2 in _0x318572)Object[_0x3a3bae(0x1c1)][_0x3a3bae(0x1d2)][_0x3a3bae(0x1e7)](_0x318572,_0x646bd2)&&_0x377bb1[_0x3a3bae(0x243)](_0x646bd2)<0x0&&(_0x4fd993[_0x646bd2]=_0x318572[_0x646bd2]);if(_0x318572!=null&&typeof Object[_0x3a3bae(0x207)]==_0x3a3bae(0x22d)){for(var _0x20d465=0x0,_0x646bd2=Object[_0x3a3bae(0x207)](_0x318572);_0x20d465<_0x646bd2['length'];_0x20d465++)_0x377bb1[_0x3a3bae(0x243)](_0x646bd2[_0x20d465])<0x0&&Object[_0x3a3bae(0x1c1)]['propertyIsEnumerable'][_0x3a3bae(0x1e7)](_0x318572,_0x646bd2[_0x20d465])&&(_0x4fd993[_0x646bd2[_0x20d465]]=_0x318572[_0x646bd2[_0x20d465]]);}return _0x4fd993;},W=_0x1b8e4b(function(_0x1ab2bc,_0x41b1a6){var _0x53d2f6=_0x2bba17,_0x57c423=_0x1ab2bc[_0x53d2f6(0x224)],_0x2c8123=_0x1ab2bc['id'],_0x2fc2db=_0x1ab2bc['className'],_0x55b9fd=_0x1ab2bc[_0x53d2f6(0x244)],_0x1ab14d=Oe(_0x1ab2bc,['icon','id',_0x53d2f6(0x24a),'extend']),_0x532387=_0x53d2f6(0x23d)[_0x53d2f6(0x1f7)](_0x2c8123,'\x20')[_0x53d2f6(0x1f7)](_0x2fc2db||'')[_0x53d2f6(0x21c)](),_0x38f41c=_0x1b3914('_'[_0x53d2f6(0x1f7)](Ne()));return Y(_0x57c423,''[_0x53d2f6(0x1f7)](_0x2c8123),{'defIds':_0x57c423['defIds'],'idSuffix':_0x38f41c['current']},c({'ref':_0x41b1a6,'className':_0x532387},_0x1ab14d),_0x55b9fd);});function Y(_0x490848,_0x2e66f0,_0x5523d9,_0xf8aca6,_0x383620){var _0x45d33c=_0x2bba17;return _0x3e3bff(_0x490848[_0x45d33c(0x1e6)],c(c({'key':_0x2e66f0},Ee(_0x490848,_0x5523d9,_0x383620)),_0xf8aca6),(we(_0x490848,_0x5523d9)[_0x45d33c(0x249)]||[])['map'](function(_0x31a049,_0x5e4283){var _0xe4329f=_0x45d33c;return Y(_0x31a049,''[_0xe4329f(0x1f7)](_0x2e66f0,'-')[_0xe4329f(0x1f7)](_0x490848[_0xe4329f(0x1e6)],'-')['concat'](_0x5e4283),_0x5523d9,void 0x0,_0x383620);}));}function Ee(_0x147a7a,_0x5591c9,_0x511270){var _0x4b33c5=_0x2bba17,_0x3b9fad=c({},_0x147a7a[_0x4b33c5(0x1c3)]);_0x511270!=null&&_0x511270[_0x4b33c5(0x210)]&&_0x3b9fad[_0x4b33c5(0x1f1)]===_0x4b33c5(0x210)&&(_0x3b9fad['fill']=_0x511270[_0x4b33c5(0x210)]),_0x147a7a[_0x4b33c5(0x1e6)]==='mask'&&_0x3b9fad['id']&&(_0x3b9fad['id']=_0x3b9fad['id']+_0x5591c9['idSuffix']),Object[_0x4b33c5(0x218)](_0x3b9fad)['forEach'](function(_0x439888){var _0x559f7a=_0x4b33c5,_0x594e6b=_0x439888[0x0],_0x42017d=_0x439888[0x1];_0x594e6b===_0x559f7a(0x215)&&typeof _0x42017d==_0x559f7a(0x252)&&(_0x3b9fad[_0x594e6b]=_0x42017d[_0x559f7a(0x1aa)](/url\(#(.*)\)/,'url(#$1'[_0x559f7a(0x1f7)](_0x5591c9['idSuffix'],')')));});var _0x97aab1=_0x5591c9[_0x4b33c5(0x240)];return!_0x97aab1||_0x97aab1['length']===0x0||(_0x147a7a[_0x4b33c5(0x1e6)]===_0x4b33c5(0x1e3)&&_0x3b9fad[_0x4b33c5(0x1d9)]&&(_0x3b9fad[_0x4b33c5(0x1d9)]=_0x3b9fad['xlink:href']+_0x5591c9[_0x4b33c5(0x1ea)]),Object[_0x4b33c5(0x218)](_0x3b9fad)[_0x4b33c5(0x23c)](function(_0xffadce){var _0x548ad0=_0x4b33c5,_0x3cb0fb=_0xffadce[0x0],_0x2192bf=_0xffadce[0x1];typeof _0x2192bf=='string'&&(_0x3b9fad[_0x3cb0fb]=_0x2192bf[_0x548ad0(0x1aa)](/url\(#(.*)\)/,_0x548ad0(0x229)[_0x548ad0(0x1f7)](_0x5591c9[_0x548ad0(0x1ea)],')')));})),_0x3b9fad;}function we(_0x3c051c,_0x2ec3dd){var _0x226056=_0x2bba17,_0x8a6367,_0x3398c0=_0x2ec3dd['defIds'];return!_0x3398c0||_0x3398c0['length']===0x0?_0x3c051c:_0x3c051c['tag']===_0x226056(0x1f9)&&(!((_0x8a6367=_0x3c051c[_0x226056(0x249)])===null||_0x8a6367===void 0x0)&&_0x8a6367[_0x226056(0x1bd)])?c(c({},_0x3c051c),{'children':_0x3c051c[_0x226056(0x249)][_0x226056(0x217)](function(_0x1c565f){var _0x4e1b4a=_0x226056;return typeof _0x1c565f[_0x4e1b4a(0x1c3)]['id']==_0x4e1b4a(0x252)&&_0x3398c0&&_0x3398c0[_0x4e1b4a(0x24d)](_0x1c565f[_0x4e1b4a(0x1c3)]['id'])?c(c({},_0x1c565f),{'attrs':c(c({},_0x1c565f[_0x4e1b4a(0x1c3)]),{'id':_0x1c565f[_0x4e1b4a(0x1c3)]['id']+_0x2ec3dd[_0x4e1b4a(0x1ea)]})}):_0x1c565f;})}):_0x3c051c;}function Ne(){var _0x5b844c=_0x2bba17;return Math[_0x5b844c(0x1f0)]()['toString'](0x24)[_0x5b844c(0x22e)](0x2,0x8);}W[_0x2bba17(0x1a3)]=_0x2bba17(0x1f6);var Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2bba17(0x20e),'viewBox':'0\x200\x2017\x2017','width':_0x2bba17(0x1ab),'height':_0x2bba17(0x1ab)},'children':[{'tag':_0x2bba17(0x1fa),'attrs':{'fill':_0x2bba17(0x205),'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':_0x2bba17(0x1fa),'attrs':{'fill':_0x2bba17(0x205),'d':_0x2bba17(0x232),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x1b8e4b(function(_0x59cdfa,_0x32b2ab){var _0x4d3e03=_0x2bba17;return _0x3e3bff(W,Object[_0x4d3e03(0x227)]({},_0x59cdfa,{'id':_0x4d3e03(0x1e8),'ref':_0x32b2ab,'icon':Ce}));});B[_0x2bba17(0x1a3)]=_0x2bba17(0x211);class L extends _0x3de408{constructor(){var _0x1d9370=_0x2bba17;super(...arguments),d(this,_0x1d9370(0x1b7),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x880c3d){var _0x3a5ffa=_0x2bba17;return this[_0x3a5ffa(0x1b7)][_0x3a5ffa(0x1ee)](_0x880c3d),_0x5a8d97(()=>this['_sharedOperations']['delete'](_0x880c3d));}['registerInitialStateReporter'](_0x575119){var _0x163f72=_0x2bba17;return this[_0x163f72(0x222)][_0x163f72(0x1ee)](_0x575119),_0x5a8d97(()=>this['_reporters'][_0x163f72(0x22f)](_0x575119));}[_0x2bba17(0x1fd)](_0x1b8d50){var _0x30e4e1=_0x2bba17;return this[_0x30e4e1(0x1b7)]['has'](_0x1b8d50);}[_0x2bba17(0x1b2)](_0x31d7af){var _0x5841bc=_0x2bba17;return Array[_0x5841bc(0x1bf)](this[_0x5841bc(0x222)])[_0x5841bc(0x217)](_0x5396fd=>_0x5396fd(_0x31d7af));}}function _0x5c52(_0x495dca,_0x29ba4a){var _0x3d1fb9=_0x3d1f();return _0x5c52=function(_0x5c527d,_0x2f62dd){_0x5c527d=_0x5c527d-0x1a3;var _0xbd5dbf=_0x3d1fb9[_0x5c527d];return _0xbd5dbf;},_0x5c52(_0x495dca,_0x29ba4a);}var De=Object['getOwnPropertyDescriptor'],Z=(_0x116247,_0x22c90f,_0x47ffef,_0x57deb1)=>{for(var _0x50a428=_0x57deb1>0x1?void 0x0:_0x57deb1?De(_0x22c90f,_0x47ffef):_0x22c90f,_0x54f977=_0x116247['length']-0x1,_0x56b5d7;_0x54f977>=0x0;_0x54f977--)(_0x56b5d7=_0x116247[_0x54f977])&&(_0x50a428=_0x56b5d7(_0x50a428)||_0x50a428);return _0x50a428;},f=(_0x4c450e,_0xd9b02b)=>(_0x254ae2,_0x1db661)=>_0xd9b02b(_0x254ae2,_0x1db661,_0x4c450e);let m=class extends _0x59a582{constructor(_0x5b3b55,_0x1cf64b,_0x3afb15){var _0x496b5c=_0x2bba17;super(),d(this,_0x496b5c(0x250),new Map()),(this[_0x496b5c(0x21f)]=_0x5b3b55,this['_injector']=_0x1cf64b,this['_collabSessionService']=_0x3afb15,this[_0x496b5c(0x201)]());}async[_0x2bba17(0x246)](_0x179885){var _0x4ffe23=_0x2bba17;return this[_0x4ffe23(0x250)][_0x4ffe23(0x202)](_0x179885)||await this[_0x4ffe23(0x21d)](_0x179885),this[_0x4ffe23(0x250)][_0x4ffe23(0x1ac)](_0x179885);}['_init'](){var _0x1b9b2a=_0x2bba17;this[_0x1b9b2a(0x21f)][_0x1b9b2a(0x1ba)](_0x47de85[_0x1b9b2a(0x209)])[_0x1b9b2a(0x1ce)](_0x1f496f(this[_0x1b9b2a(0x22b)]))[_0x1b9b2a(0x1eb)](async _0x5cd49a=>{var _0x5d265a=_0x1b9b2a;const _0x4dbef8=_0x5cd49a[_0x5d265a(0x1cc)]();this[_0x5d265a(0x250)][_0x5d265a(0x202)](_0x4dbef8)||this[_0x5d265a(0x21d)](_0x4dbef8);}),this[_0x1b9b2a(0x21f)][_0x1b9b2a(0x247)](_0x47de85[_0x1b9b2a(0x209)])['pipe'](_0x1f496f(this[_0x1b9b2a(0x22b)]))[_0x1b9b2a(0x1eb)](_0x40998e=>{var _0x2d1588=_0x1b9b2a;const _0x512ea5=_0x40998e[_0x2d1588(0x1cc)](),_0x2a520=this[_0x2d1588(0x250)][_0x2d1588(0x1ac)](_0x512ea5);_0x2a520==null||_0x2a520[_0x2d1588(0x1e0)]();});}async[_0x2bba17(0x21d)](_0x559ca7){var _0x13e1df=_0x2bba17;const _0x466da8=await this['_collabSessionService'][_0x13e1df(0x23a)](_0x559ca7),_0x5c8415=this[_0x13e1df(0x1bb)][_0x13e1df(0x1cb)](C,_0x559ca7,_0x466da8);return _0x5c8415['init'](),this[_0x13e1df(0x250)][_0x13e1df(0x20d)](_0x559ca7,_0x5c8415),_0x5c8415;}};m=Z([f(0x0,_0x19ca6f),f(0x1,_0x15e820(_0x4e3021)),f(0x2,_0x15e820(_0x20751a))],m);var h=(_0x4c934b=>(_0x4c934b[_0x2bba17(0x1b0)]=_0x2bba17(0x1b3),_0x4c934b[_0x2bba17(0x258)]=_0x2bba17(0x22c),_0x4c934b[_0x2bba17(0x1e4)]=_0x2bba17(0x1d6),_0x4c934b[_0x2bba17(0x206)]=_0x2bba17(0x233),_0x4c934b[_0x2bba17(0x24c)]=_0x2bba17(0x1a4),_0x4c934b))(h||{});const xe=_0x2bba17(0x20b),Le=0xc8;let C=class extends _0x59a582{constructor(_0x578c83,_0x59cba8,_0x363c09,_0x388653,_0x111f1c){var _0x24da84=_0x2bba17;super(),d(this,'_status$',new _0x496961(_0x24da84(0x22c))),d(this,_0x24da84(0x248),this['_status$'][_0x24da84(0x1c4)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this['_unitID']=_0x578c83,this[_0x24da84(0x228)]=_0x59cba8,this['_configService']=_0x363c09,this[_0x24da84(0x20a)]=_0x388653,this[_0x24da84(0x1be)]=_0x111f1c);}get[_0x2bba17(0x255)](){var _0x93c433=_0x2bba17;return this[_0x93c433(0x1d4)]['getValue']();}[_0x2bba17(0x1e0)](){var _0x36ae4b=_0x2bba17,_0xc452c5;(_0xc452c5=this['_commandDisposable'])==null||_0xc452c5[_0x36ae4b(0x1e0)](),this[_0x36ae4b(0x1d4)]['next']('idle'),this['_status$']['complete']();}[_0x2bba17(0x24f)](){var _0x219e64=_0x2bba17;this[_0x219e64(0x201)]||(this[_0x219e64(0x201)]=!0x0,this[_0x219e64(0x228)][_0x219e64(0x234)]['pipe'](_0x1f496f(this[_0x219e64(0x22b)]))[_0x219e64(0x1eb)](_0x4d4070=>{var _0x102680=_0x219e64;switch(_0x4d4070){case _0x49405b[_0x102680(0x1b0)]:this[_0x102680(0x259)]();break;case _0x49405b[_0x102680(0x23b)]:this[_0x102680(0x1c7)]();break;}}),this[_0x219e64(0x228)][_0x219e64(0x1ca)][_0x219e64(0x1ce)](_0x1f496f(this[_0x219e64(0x22b)]))[_0x219e64(0x1eb)](_0x14a684=>{var _0x337e61=_0x219e64;const {eventID:_0x571d3c}=_0x14a684;switch(_0x571d3c){case _0x38954f[_0x337e61(0x1b6)]:this[_0x337e61(0x1e1)](_0x14a684);break;case _0x38954f[_0x337e61(0x1e9)]:this[_0x337e61(0x203)](_0x14a684);break;case _0x38954f[_0x337e61(0x245)]:this['_handleTerminate']();break;case _0x38954f[_0x337e61(0x221)]:this[_0x337e61(0x1da)](_0x14a684);break;}}));}[_0x2bba17(0x204)](){var _0x1a2d76=_0x2bba17;this[_0x1a2d76(0x228)]['send']({'eventID':_0x38954f[_0x1a2d76(0x219)],'data':{'unitID':this[_0x1a2d76(0x214)],'userID':this['_collabSession'][_0x1a2d76(0x1ad)]()}},this[_0x1a2d76(0x214)]);}[_0x2bba17(0x1db)](){var _0x51f9de=_0x2bba17;this[_0x51f9de(0x255)]===_0x51f9de(0x1a4)&&(this[_0x51f9de(0x1d4)][_0x51f9de(0x1dd)](_0x51f9de(0x22c)),this[_0x51f9de(0x228)][_0x51f9de(0x20c)]({'eventID':_0x38954f[_0x51f9de(0x245)],'data':{'unitID':this[_0x51f9de(0x214)]}},this[_0x51f9de(0x214)]));}[_0x2bba17(0x1c9)](){var _0x3c7c33=_0x2bba17;this[_0x3c7c33(0x255)]===_0x3c7c33(0x233)&&(this['_status$']['next'](_0x3c7c33(0x1d6)),this[_0x3c7c33(0x1d1)]());}['stopFollowing'](){var _0x2cc552=_0x2bba17;this[_0x2cc552(0x255)]==='following'&&this[_0x2cc552(0x25a)]();}[_0x2bba17(0x1e1)](_0x529934){var _0x13c66b=_0x2bba17;const {presenter:_0x99f5e2}=_0x529934[_0x13c66b(0x213)],_0x163c06=this[_0x13c66b(0x228)][_0x13c66b(0x1ad)]();this[_0x13c66b(0x254)]=_0x99f5e2,_0x99f5e2===_0x163c06?(this[_0x13c66b(0x25a)](),this[_0x13c66b(0x1ff)]()):this[_0x13c66b(0x255)]!==_0x13c66b(0x233)&&(this[_0x13c66b(0x1b5)](),this['_startFollowing']());}['_fetchOperations'](){var _0x2a029c=_0x2bba17;const _0x18408a={'eventID':_0x38954f[_0x2a029c(0x1a5)]};this[_0x2a029c(0x228)][_0x2a029c(0x20c)](_0x18408a,this[_0x2a029c(0x214)]);}[_0x2bba17(0x1fb)](){var _0xf5bee3=_0x2bba17;this[_0xf5bee3(0x254)]=null,this[_0xf5bee3(0x255)]!=='presenting'&&this[_0xf5bee3(0x1fe)]();}[_0x2bba17(0x1da)](_0x5c95bd){var _0x71135f=_0x2bba17;if(this[_0x71135f(0x255)]===_0x71135f(0x1d6)&&this[_0x71135f(0x254)]===_0x5c95bd[_0x71135f(0x213)][_0x71135f(0x239)]){const _0x1cac10=_0x4970c2(_0x5c95bd[_0x71135f(0x213)])[_0x71135f(0x220)][_0x71135f(0x1f8)]()[_0x71135f(0x1cd)](_0x10f0bf=>_0x10f0bf['id']===_0x8fec39['id']);if(_0x1cac10){const _0x3c3029=_0x1cac10['params'][_0x71135f(0x23e)],_0x1171b0=_0x1cac10[_0x71135f(0x216)][_0x71135f(0x1d5)]['id'];setTimeout(()=>{var _0x3674fe=_0x71135f;this[_0x3674fe(0x1be)]['executeCommand'](_0x46da91['id'],{'unitId':_0x3c3029,'subUnitId':_0x1171b0},{'fromCollab':!0x0});});}}}[_0x2bba17(0x1ff)](){var _0x51e4d8=_0x2bba17;this[_0x51e4d8(0x1d4)][_0x51e4d8(0x1dd)](_0x51e4d8(0x1a4));const _0xea2e93=new Map(),_0x2e7490=this['_commandDisposable']=new _0x4240bf();_0x2e7490['add'](_0x5a8d97(()=>{var _0x285261=_0x51e4d8;_0xea2e93[_0x285261(0x23c)](_0x2e3492=>_0x2e3492[_0x285261(0x1a7)]()),_0xea2e93[_0x285261(0x1d8)]();})),_0x2e7490[_0x51e4d8(0x1ee)](this['_commandService']['onCommandExecuted'](_0x48ad3b=>{var _0x2ead08=_0x51e4d8,_0xdc8e45;if(_0x48ad3b[_0x2ead08(0x1f5)]!==_0x165fca[_0x2ead08(0x1fc)]||!this[_0x2ead08(0x20a)]['shouldShareOperation'](_0x48ad3b['id']))return;const {id:_0xcec7ef}=_0x48ad3b;let _0x2d15de;_0xea2e93['has'](_0xcec7ef)?_0x2d15de=_0xea2e93[_0x2ead08(0x1ac)](_0xcec7ef):(_0x2d15de=new _0x18793c(),_0xea2e93[_0x2ead08(0x20d)](_0xcec7ef,_0x2d15de),_0x2d15de['pipe'](_0xeb3dd1((_0xdc8e45=this[_0x2ead08(0x20f)][_0x2ead08(0x1ec)](xe))!=null?_0xdc8e45:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ead08(0x1eb)](_0x1fb350=>{var _0x13a45b=_0x2ead08;this[_0x13a45b(0x228)][_0x13a45b(0x20c)]({'eventID':_0x38954f[_0x13a45b(0x1e9)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fb350['id']]:{'id':_0x1fb350['id'],'params':JSON[_0x13a45b(0x256)](_0x1fb350[_0x13a45b(0x216)])}}}},this['_unitID']);})),_0x2d15de[_0x2ead08(0x1dd)](_0x48ad3b);})),this[_0x51e4d8(0x20a)]['getInitialStates'](this['_unitID'])[_0x51e4d8(0x23c)](_0x3c84c3=>this[_0x51e4d8(0x228)][_0x51e4d8(0x20c)]({'eventID':_0x38954f[_0x51e4d8(0x1e9)],'data':{'unitID':this[_0x51e4d8(0x214)],'operations':{[_0x3c84c3['id']]:{'id':_0x3c84c3['id'],'params':JSON['stringify'](_0x3c84c3['params'])}}}},this[_0x51e4d8(0x214)]));}[_0x2bba17(0x1b5)](){var _0x11f64e=_0x2bba17,_0x17f6fe;this[_0x11f64e(0x1d4)]['next']('idle'),(_0x17f6fe=this[_0x11f64e(0x1c6)])==null||_0x17f6fe[_0x11f64e(0x1e0)](),this[_0x11f64e(0x1c6)]=null;}[_0x2bba17(0x1d1)](){var _0x5bcd76=_0x2bba17,_0x28768e;(_0x28768e=this[_0x5bcd76(0x1c6)])==null||_0x28768e[_0x5bcd76(0x1e0)](),this[_0x5bcd76(0x1d4)]['next'](_0x5bcd76(0x1d6));}[_0x2bba17(0x1fe)](){var _0xd066e=_0x2bba17,_0x22e586;this[_0xd066e(0x1d4)][_0xd066e(0x1dd)]('idle'),(_0x22e586=this[_0xd066e(0x1c6)])==null||_0x22e586[_0xd066e(0x1e0)](),this[_0xd066e(0x1c6)]=null;}[_0x2bba17(0x25a)](){var _0x42cf07=_0x2bba17,_0x2c4250;this[_0x42cf07(0x1d4)][_0x42cf07(0x1dd)](_0x42cf07(0x233)),(_0x2c4250=this[_0x42cf07(0x1c6)])==null||_0x2c4250[_0x42cf07(0x1e0)]();}[_0x2bba17(0x203)](_0x309033){var _0x1371ff=_0x2bba17;if([_0x1371ff(0x1a4),_0x1371ff(0x233),'offline']['includes'](this[_0x1371ff(0x255)])||!_0x309033[_0x1371ff(0x213)][_0x1371ff(0x212)]||_0x309033[_0x1371ff(0x213)][_0x1371ff(0x212)]===this[_0x1371ff(0x228)][_0x1371ff(0x1ad)]())return;this['_status']==='idle'&&this[_0x1371ff(0x1d1)]();const _0x1cff34=_0x309033[_0x1371ff(0x213)]['operations'];Object[_0x1371ff(0x1c2)](_0x1cff34)[_0x1371ff(0x23c)](_0x1a9328=>{var _0x5890fb=_0x1371ff;this['_commandService'][_0x5890fb(0x1ed)](_0x1a9328['id'],_0x1a9328[_0x5890fb(0x216)]?JSON[_0x5890fb(0x238)](_0x1a9328[_0x5890fb(0x216)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1539ed=_0x2bba17,_0x4cf427;this['_status$']['next'](_0x1539ed(0x1b3)),(_0x4cf427=this[_0x1539ed(0x1c6)])==null||_0x4cf427[_0x1539ed(0x1e0)]();}[_0x2bba17(0x1c7)](){var _0x16a576=_0x2bba17;this[_0x16a576(0x1d4)]['next']('idle'),this[_0x16a576(0x25b)]();}};C=Z([f(0x2,_0x556307),f(0x3,_0x15e820(L)),f(0x4,_0x10d520)],C);function ye(){var _0x5b96d5=_0x2bba17;const _0x4f737b=_0xc099b5(m),_0xb62289=_0xc099b5(_0x19ca6f),_0x4a4eba=_0x4ef5ee(()=>_0xb62289[_0x5b96d5(0x1de)](_0x47de85[_0x5b96d5(0x209)]),void 0x0,!0x1,[]),[_0x46cd69,_0x437a6a]=_0x5d4ac5(null),[_0x4c8d05,_0x23f41e]=_0x5d4ac5(h['IDLE']),_0x3d7ba9=_0x1b3914(null);return _0x495b6b(()=>(_0x4a4eba&&_0x4f737b['getLiveShareCoordinator'](_0x4a4eba['getUnitId']())[_0x5b96d5(0x1e2)](_0x59a4c5=>{var _0x374bf0=_0x5b96d5;_0x437a6a(_0x59a4c5),_0x3d7ba9[_0x374bf0(0x253)]=_0x59a4c5[_0x374bf0(0x248)]['subscribe'](_0x240ace=>{_0x23f41e(_0x240ace);});}),()=>{var _0x4d58b1=_0x5b96d5,_0x18a99f;(_0x18a99f=_0x3d7ba9[_0x4d58b1(0x253)])==null||_0x18a99f['unsubscribe'](),_0x3d7ba9['current']=null;}),[_0x4a4eba,_0x4f737b]),_0x46cd69?_0x53a3f2(_0x32e2ae,{'align':_0x5b96d5(0x230),'disabled':_0x4c8d05===h[_0x5b96d5(0x1b0)],'className':_0x5b96d5(0x231),'overlay':_0x53a3f2(Re,{'status':_0x4c8d05,'coordinator':_0x46cd69}),'children':_0x53a3f2(_0x5b96d5(0x1ef),{'className':_0x3d4732('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x4c8d05===h[_0x5b96d5(0x1b0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8d05!==h['OFFLINE']}),'type':_0x5b96d5(0x1ef),'children':_0x53a3f2(B,{'className':_0x5b96d5(0x1b1)})})}):null;}function Re(_0x4ad6a1){var _0x11b235=_0x2bba17;const {status:_0x1f1400,coordinator:_0x557373}=_0x4ad6a1;switch(_0x1f1400){case h['IDLE']:return _0x53a3f2(Pe,{'coordinator':_0x557373});case h['FOLLOWING']:return _0x53a3f2(Ae,{'coordinator':_0x557373});case h['NOT_FOLLOWING']:return _0x53a3f2(Te,{'coordinator':_0x557373});case h[_0x11b235(0x1b0)]:return _0x53a3f2(Fe,{});case h['PRESENTING']:return _0x53a3f2($e,{'coordinator':_0x557373});default:return null;}}function Pe(_0x356c51){var _0x2f2034=_0x2bba17;const {coordinator:_0x3856a5}=_0x356c51;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2(_0x2f2034(0x1bc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2f2034(0x1d7)}),_0x53a3f2(_0x45c8b4,{'onClick':()=>_0x3856a5[_0x2f2034(0x204)](),'children':'Start'})]});}function Ae(_0x66c5ee){var _0x38708d=_0x2bba17;const {coordinator:_0x1e78c2}=_0x66c5ee;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38708d(0x236)}),_0x53a3f2(_0x45c8b4,{'onClick':()=>_0x1e78c2[_0x38708d(0x1d3)](),'children':_0x38708d(0x237)})]});}function Te(_0x4d6d4a){var _0x424d88=_0x2bba17;const {coordinator:_0x43d46b}=_0x4d6d4a;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2(_0x424d88(0x1bc),{'className':_0x424d88(0x1b4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x53a3f2(_0x45c8b4,{'variant':_0x424d88(0x1a8),'onClick':()=>_0x43d46b['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0xb0b700){var _0x4529a8=_0x2bba17;const {coordinator:_0x1b0fde}=_0xb0b700;return _0x5ec3e4(_0x3f2ee7,{'children':[_0x53a3f2(_0x4529a8(0x1bc),{'className':_0x4529a8(0x1b4),'children':_0x4529a8(0x1f3)}),_0x53a3f2(_0x45c8b4,{'variant':_0x4529a8(0x21e),'onClick':()=>_0x1b0fde[_0x4529a8(0x1db)](),'children':_0x4529a8(0x251)})]});}function Fe(){var _0x21befc=_0x2bba17;return _0x53a3f2(_0x3f2ee7,{'children':_0x21befc(0x22a)});}var He=Object[_0x2bba17(0x1df)],je=(_0x4fa1d6,_0x12a7d7,_0x3810ca,_0x91e953)=>{var _0x1ebcbd=_0x2bba17;for(var _0x1fabe5=_0x91e953>0x1?void 0x0:_0x91e953?He(_0x12a7d7,_0x3810ca):_0x12a7d7,_0x47b13e=_0x4fa1d6[_0x1ebcbd(0x1bd)]-0x1,_0x20009c;_0x47b13e>=0x0;_0x47b13e--)(_0x20009c=_0x4fa1d6[_0x47b13e])&&(_0x1fabe5=_0x20009c(_0x1fabe5)||_0x1fabe5);return _0x1fabe5;},T=(_0x232031,_0x1647f9)=>(_0x3d33a5,_0x39a0a6)=>_0x1647f9(_0x3d33a5,_0x39a0a6,_0x232031);let I=class extends _0x3de408{constructor(_0x235794,_0x29cbaf){var _0x217302=_0x2bba17;super(),this[_0x217302(0x1bb)]=_0x235794,this[_0x217302(0x21a)]=_0x29cbaf,this[_0x217302(0x1d0)]();}[_0x2bba17(0x1d0)](){var _0x3959e7=_0x2bba17;this[_0x3959e7(0x1b8)](this[_0x3959e7(0x21a)][_0x3959e7(0x1ae)](_0x3b5335[_0x3959e7(0x226)],()=>_0x566771(ye,this[_0x3959e7(0x1bb)])));}};I=je([T(0x0,_0x15e820(_0x4e3021)),T(0x1,_0x2c2e3a)],I);const Ue=_0x2bba17(0x1c8),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x365031,_0x571975,_0x2c21ec,_0x28a611)=>{var _0x35d691=_0x2bba17;for(var _0x2a1892=_0x28a611>0x1?void 0x0:_0x28a611?Ve(_0x571975,_0x2c21ec):_0x571975,_0x22ba64=_0x365031[_0x35d691(0x1bd)]-0x1,_0x3534e8;_0x22ba64>=0x0;_0x22ba64--)(_0x3534e8=_0x365031[_0x22ba64])&&(_0x2a1892=_0x3534e8(_0x2a1892)||_0x2a1892);return _0x2a1892;},ke=(_0x3d6815,_0x2fa974)=>(_0x5b8981,_0x13a64a)=>_0x2fa974(_0x5b8981,_0x13a64a,_0x3d6815);let b=class extends _0x3de408{constructor(_0x18cbb4){var _0x68aa10=_0x2bba17;super(),this[_0x68aa10(0x20a)]=_0x18cbb4,this[_0x68aa10(0x201)]();}[_0x2bba17(0x201)](){var _0x3a680f=_0x2bba17;[_0x3da0d3['id'],_0x5d109c['id'],_0x46da91['id']][_0x3a680f(0x23c)](_0x291db5=>{var _0x2f7e4c=_0x3a680f;this[_0x2f7e4c(0x1b8)](this[_0x2f7e4c(0x20a)][_0x2f7e4c(0x1c5)](_0x291db5));});}};b=Me([ke(0x0,_0x15e820(L))],b);var Ge=Object[_0x2bba17(0x1af)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x37dc7d,_0x2f77e6,_0x2c324d)=>_0x2f77e6 in _0x37dc7d?Ge(_0x37dc7d,_0x2f77e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c324d}):_0x37dc7d[_0x2f77e6]=_0x2c324d,Be=(_0x560228,_0x2b19c0,_0x224c3b,_0x2c0534)=>{var _0x1708c7=_0x2bba17;for(var _0x335e1d=_0x2c0534>0x1?void 0x0:_0x2c0534?We(_0x2b19c0,_0x224c3b):_0x2b19c0,_0x5a8532=_0x560228[_0x1708c7(0x1bd)]-0x1,_0x3b612e;_0x5a8532>=0x0;_0x5a8532--)(_0x3b612e=_0x560228[_0x5a8532])&&(_0x335e1d=_0x3b612e(_0x335e1d)||_0x335e1d);return _0x335e1d;},F=(_0x33d2de,_0xc81d6d)=>(_0x165805,_0x478ce2)=>_0xc81d6d(_0x165805,_0x478ce2,_0x33d2de),J=(_0x32bfb5,_0x3ab9b4,_0x3b780f)=>Ye(_0x32bfb5,typeof _0x3ab9b4!=_0x2bba17(0x1f2)?_0x3ab9b4+'':_0x3ab9b4,_0x3b780f);const Ze=_0x2bba17(0x1a9);let O=class extends _0x568e79{constructor(_0x1a9bc4=$,_0x2b8cab,_0x52f59c){var _0x5dc2d7=_0x2bba17;super(),this[_0x5dc2d7(0x257)]=_0x1a9bc4,this[_0x5dc2d7(0x1bb)]=_0x2b8cab,this[_0x5dc2d7(0x20f)]=_0x52f59c;const {..._0x446619}=_0x183e3c({},$,this[_0x5dc2d7(0x257)]);this[_0x5dc2d7(0x20f)][_0x5dc2d7(0x235)](Ue,_0x446619);}[_0x2bba17(0x1c0)](){var _0x318f89=_0x2bba17;_0x3f7738(this[_0x318f89(0x1bb)],_0x41f9a2([[L],[m],[b],[I]],this[_0x318f89(0x257)]['override'])),_0x260c07(this['_injector'],[[b]]);}[_0x2bba17(0x21b)](){_0x260c07(this['_injector'],[[I]]);}};J(O,_0x2bba17(0x1f5),_0x47de85[_0x2bba17(0x23f)]),J(O,_0x2bba17(0x241),Ze),O=Be([_0x52d915(_0x138ab0),F(0x1,_0x15e820(_0x4e3021)),F(0x2,_0x556307)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2d3c9e=_0x2028;(function(_0x49f832,_0x456294){var _0x1bcb30=_0x2028,_0x38ba39=_0x49f832();while(!![]){try{var _0x7268f6=parseInt(_0x1bcb30(0x159))/0x1*(parseInt(_0x1bcb30(0x1c0))/0x2)+parseInt(_0x1bcb30(0x170))/0x3*(parseInt(_0x1bcb30(0x1ba))/0x4)+parseInt(_0x1bcb30(0x17f))/0x5+-parseInt(_0x1bcb30(0x18f))/0x6*(parseInt(_0x1bcb30(0x1c3))/0x7)+parseInt(_0x1bcb30(0x204))/0x8*(-parseInt(_0x1bcb30(0x1bb))/0x9)+parseInt(_0x1bcb30(0x1e4))/0xa+parseInt(_0x1bcb30(0x1c9))/0xb*(parseInt(_0x1bcb30(0x1ce))/0xc);if(_0x7268f6===_0x456294)break;else _0x38ba39['push'](_0x38ba39['shift']());}catch(_0x189c8c){_0x38ba39['push'](_0x38ba39['shift']());}}}(_0x2c5d,0x39239));var q=Object[_0x2d3c9e(0x1d4)],z=(_0xeacaed,_0x4bcf72,_0x34d425)=>_0x4bcf72 in _0xeacaed?q(_0xeacaed,_0x4bcf72,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34d425}):_0xeacaed[_0x4bcf72]=_0x34d425,d=(_0x15eb23,_0x293a84,_0x13050e)=>z(_0x15eb23,typeof _0x293a84!=_0x2d3c9e(0x1bc)?_0x293a84+'':_0x293a84,_0x13050e);import{Disposable as _0x111f7b,toDisposable as _0xa4b7eb,IUniverInstanceService as _0x1c62eb,Inject as _0x1be652,Injector as _0x4591fb,IConfigService as _0x70a54,ICommandService as _0x1808e4,RxDisposable as _0x1a470f,UniverInstanceType as _0x448837,DisposableCollection as _0x2d5df5,CommandType as _0x155f0a,DependentOn as _0x2a6e71,Plugin as _0xdfe9ca,merge as _0x45be97,registerDependencies as _0xf06216,mergeOverrideWithDependencies as _0x534f8d,touchDependencies as _0x497b10}from'@univerjs/core';import{useDependency as _0x13cc7d,useObservable as _0x28fc1f,IUIPartsService as _0x202a87,BuiltInUIPart as _0x56776a,connectInjector as _0x33b8e8}from'@univerjs/ui';import{jsx as _0x37a173,jsxs as _0x222e8a,Fragment as _0x371f0b}from'react/jsx-runtime';import{Dropdown as _0x19a648,clsx as _0x2cbcb5,Button as _0x598994}from'@univerjs/design';import{forwardRef as _0x1e821a,useRef as _0x11d3f7,createElement as _0x361bf4,useState as _0x528802,useEffect as _0x1e18eb}from'react';import{CollaborationEvent as _0x21a091,parseProtocolChangeset as _0x1f2769}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1948ba,SessionStatus as _0x1b9c05,UniverCollaborationClientPlugin as _0x2d28a9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17eb95,SetWorksheetActiveOperation as _0x5d6d48}from'@univerjs/sheets';import{BehaviorSubject as _0x2299c1,Subject as _0x48ac5d}from'rxjs';import{takeUntil as _0x50b42f,throttleTime as _0x2eabc0}from'rxjs/operators';import{SetZoomRatioOperation as _0x1824f5,SetScrollOperation as _0x200040}from'@univerjs/sheets-ui';var c=function(){var _0xce977a=_0x2d3c9e;return c=Object[_0xce977a(0x156)]||function(_0x271f30){var _0x822202=_0xce977a;for(var _0x4bf13f,_0x3169cd=0x1,_0x53b8f1=arguments[_0x822202(0x1fe)];_0x3169cd<_0x53b8f1;_0x3169cd++){_0x4bf13f=arguments[_0x3169cd];for(var _0x5b8794 in _0x4bf13f)Object[_0x822202(0x1ed)][_0x822202(0x1cf)][_0x822202(0x1b2)](_0x4bf13f,_0x5b8794)&&(_0x271f30[_0x5b8794]=_0x4bf13f[_0x5b8794]);}return _0x271f30;},c['apply'](this,arguments);},Oe=function(_0xe57ff3,_0x1b559d){var _0x1de79f=_0x2d3c9e,_0x3018ed={};for(var _0x90a598 in _0xe57ff3)Object[_0x1de79f(0x1ed)][_0x1de79f(0x1cf)][_0x1de79f(0x1b2)](_0xe57ff3,_0x90a598)&&_0x1b559d['indexOf'](_0x90a598)<0x0&&(_0x3018ed[_0x90a598]=_0xe57ff3[_0x90a598]);if(_0xe57ff3!=null&&typeof Object[_0x1de79f(0x1c2)]==_0x1de79f(0x1e2)){for(var _0x37a8e8=0x0,_0x90a598=Object[_0x1de79f(0x1c2)](_0xe57ff3);_0x37a8e8<_0x90a598['length'];_0x37a8e8++)_0x1b559d['indexOf'](_0x90a598[_0x37a8e8])<0x0&&Object[_0x1de79f(0x1ed)][_0x1de79f(0x1e3)]['call'](_0xe57ff3,_0x90a598[_0x37a8e8])&&(_0x3018ed[_0x90a598[_0x37a8e8]]=_0xe57ff3[_0x90a598[_0x37a8e8]]);}return _0x3018ed;},W=_0x1e821a(function(_0x445150,_0xed2619){var _0x43d3f9=_0x2d3c9e,_0x51fd96=_0x445150[_0x43d3f9(0x164)],_0x179a2a=_0x445150['id'],_0x532d50=_0x445150[_0x43d3f9(0x1b0)],_0x186d3b=_0x445150[_0x43d3f9(0x15c)],_0x1fe0d4=Oe(_0x445150,['icon','id',_0x43d3f9(0x1b0),_0x43d3f9(0x15c)]),_0xebd91d=_0x43d3f9(0x17e)[_0x43d3f9(0x150)](_0x179a2a,'\x20')['concat'](_0x532d50||'')[_0x43d3f9(0x1c6)](),_0x38fd3f=_0x11d3f7('_'[_0x43d3f9(0x150)](Ne()));return Y(_0x51fd96,''[_0x43d3f9(0x150)](_0x179a2a),{'defIds':_0x51fd96[_0x43d3f9(0x186)],'idSuffix':_0x38fd3f['current']},c({'ref':_0xed2619,'className':_0xebd91d},_0x1fe0d4),_0x186d3b);});function Y(_0x2db4c6,_0x16847c,_0x2be46,_0x20946f,_0x52b159){var _0x46081e=_0x2d3c9e;return _0x361bf4(_0x2db4c6[_0x46081e(0x17d)],c(c({'key':_0x16847c},Ee(_0x2db4c6,_0x2be46,_0x52b159)),_0x20946f),(we(_0x2db4c6,_0x2be46)[_0x46081e(0x1e0)]||[])[_0x46081e(0x151)](function(_0x4254fe,_0x4337e1){var _0x2761d2=_0x46081e;return Y(_0x4254fe,''[_0x2761d2(0x150)](_0x16847c,'-')['concat'](_0x2db4c6[_0x2761d2(0x17d)],'-')['concat'](_0x4337e1),_0x2be46,void 0x0,_0x52b159);}));}function Ee(_0x29d891,_0x28b83e,_0x3c6185){var _0x2a853b=_0x2d3c9e,_0x5ec86d=c({},_0x29d891[_0x2a853b(0x1e9)]);_0x3c6185!=null&&_0x3c6185[_0x2a853b(0x1a1)]&&_0x5ec86d[_0x2a853b(0x19d)]==='colorChannel1'&&(_0x5ec86d[_0x2a853b(0x19d)]=_0x3c6185[_0x2a853b(0x1a1)]),_0x29d891[_0x2a853b(0x17d)]===_0x2a853b(0x154)&&_0x5ec86d['id']&&(_0x5ec86d['id']=_0x5ec86d['id']+_0x28b83e[_0x2a853b(0x1ec)]),Object[_0x2a853b(0x190)](_0x5ec86d)[_0x2a853b(0x177)](function(_0x5824a0){var _0x56085e=_0x2a853b,_0x29f356=_0x5824a0[0x0],_0x2640a2=_0x5824a0[0x1];_0x29f356===_0x56085e(0x154)&&typeof _0x2640a2==_0x56085e(0x16f)&&(_0x5ec86d[_0x29f356]=_0x2640a2[_0x56085e(0x1e1)](/url\(#(.*)\)/,_0x56085e(0x1a8)['concat'](_0x28b83e[_0x56085e(0x1ec)],')')));});var _0x5823c4=_0x28b83e[_0x2a853b(0x186)];return!_0x5823c4||_0x5823c4['length']===0x0||(_0x29d891[_0x2a853b(0x17d)]===_0x2a853b(0x182)&&_0x5ec86d[_0x2a853b(0x18e)]&&(_0x5ec86d['xlink:href']=_0x5ec86d[_0x2a853b(0x18e)]+_0x28b83e['idSuffix']),Object[_0x2a853b(0x190)](_0x5ec86d)['forEach'](function(_0x350c05){var _0x3319ae=_0x2a853b,_0x53ca01=_0x350c05[0x0],_0x31fae4=_0x350c05[0x1];typeof _0x31fae4==_0x3319ae(0x16f)&&(_0x5ec86d[_0x53ca01]=_0x31fae4[_0x3319ae(0x1e1)](/url\(#(.*)\)/,_0x3319ae(0x1a8)[_0x3319ae(0x150)](_0x28b83e['idSuffix'],')')));})),_0x5ec86d;}function we(_0x5c814d,_0x182c13){var _0x173735=_0x2d3c9e,_0xd13685,_0x3bc3de=_0x182c13[_0x173735(0x186)];return!_0x3bc3de||_0x3bc3de[_0x173735(0x1fe)]===0x0?_0x5c814d:_0x5c814d['tag']===_0x173735(0x1aa)&&(!((_0xd13685=_0x5c814d[_0x173735(0x1e0)])===null||_0xd13685===void 0x0)&&_0xd13685[_0x173735(0x1fe)])?c(c({},_0x5c814d),{'children':_0x5c814d[_0x173735(0x1e0)][_0x173735(0x151)](function(_0x459cd5){var _0x4a4c7a=_0x173735;return typeof _0x459cd5[_0x4a4c7a(0x1e9)]['id']=='string'&&_0x3bc3de&&_0x3bc3de['includes'](_0x459cd5['attrs']['id'])?c(c({},_0x459cd5),{'attrs':c(c({},_0x459cd5['attrs']),{'id':_0x459cd5[_0x4a4c7a(0x1e9)]['id']+_0x182c13[_0x4a4c7a(0x1ec)]})}):_0x459cd5;})}):_0x5c814d;}function Ne(){var _0x11a320=_0x2d3c9e;return Math[_0x11a320(0x1de)]()[_0x11a320(0x17c)](0x24)[_0x11a320(0x1d3)](0x2,0x8);}W[_0x2d3c9e(0x1c5)]=_0x2d3c9e(0x1c4);var Ce={'tag':_0x2d3c9e(0x1cb),'attrs':{'xmlns':_0x2d3c9e(0x1b4),'fill':_0x2d3c9e(0x1b7),'viewBox':_0x2d3c9e(0x1ff),'width':_0x2d3c9e(0x188),'height':_0x2d3c9e(0x188)},'children':[{'tag':_0x2d3c9e(0x1a2),'attrs':{'fill':_0x2d3c9e(0x1b8),'d':_0x2d3c9e(0x198)}},{'tag':_0x2d3c9e(0x1a2),'attrs':{'fill':_0x2d3c9e(0x1b8),'d':_0x2d3c9e(0x15f),'fillRule':_0x2d3c9e(0x153),'clipRule':_0x2d3c9e(0x153)}}]},B=_0x1e821a(function(_0x11e3e4,_0x2a52a0){var _0x5b617b=_0x2d3c9e;return _0x361bf4(W,Object['assign']({},_0x11e3e4,{'id':_0x5b617b(0x1b9),'ref':_0x2a52a0,'icon':Ce}));});B[_0x2d3c9e(0x1c5)]=_0x2d3c9e(0x1af);class L extends _0x111f7b{constructor(){var _0x672eaf=_0x2d3c9e;super(...arguments),d(this,_0x672eaf(0x197),new Set()),d(this,_0x672eaf(0x1fb),new Set());}[_0x2d3c9e(0x202)](_0x146e03){var _0x564c19=_0x2d3c9e;return this[_0x564c19(0x197)][_0x564c19(0x1d9)](_0x146e03),_0xa4b7eb(()=>this[_0x564c19(0x197)]['delete'](_0x146e03));}['registerInitialStateReporter'](_0x430494){var _0x2662b2=_0x2d3c9e;return this[_0x2662b2(0x1fb)][_0x2662b2(0x1d9)](_0x430494),_0xa4b7eb(()=>this[_0x2662b2(0x1fb)][_0x2662b2(0x17b)](_0x430494));}['shouldShareOperation'](_0x1d5a33){var _0x52eec8=_0x2d3c9e;return this[_0x52eec8(0x197)][_0x52eec8(0x192)](_0x1d5a33);}[_0x2d3c9e(0x1d8)](_0x58f717){var _0x944459=_0x2d3c9e;return Array[_0x944459(0x172)](this['_reporters'])['map'](_0x2a2875=>_0x2a2875(_0x58f717));}}var De=Object[_0x2d3c9e(0x1dc)],Z=(_0x636956,_0x3ae898,_0x212653,_0x398a5f)=>{var _0x4c45be=_0x2d3c9e;for(var _0x470b0a=_0x398a5f>0x1?void 0x0:_0x398a5f?De(_0x3ae898,_0x212653):_0x3ae898,_0x3af8dc=_0x636956[_0x4c45be(0x1fe)]-0x1,_0x505e6c;_0x3af8dc>=0x0;_0x3af8dc--)(_0x505e6c=_0x636956[_0x3af8dc])&&(_0x470b0a=_0x505e6c(_0x470b0a)||_0x470b0a);return _0x470b0a;},f=(_0x402875,_0x5e77f6)=>(_0x54a38f,_0x469e7c)=>_0x5e77f6(_0x54a38f,_0x469e7c,_0x402875);let m=class extends _0x1a470f{constructor(_0x27f5cb,_0x2fff6e,_0x1584c1){var _0x4e8c15=_0x2d3c9e;super(),d(this,_0x4e8c15(0x196),new Map()),(this[_0x4e8c15(0x1fd)]=_0x27f5cb,this[_0x4e8c15(0x1be)]=_0x2fff6e,this['_collabSessionService']=_0x1584c1,this[_0x4e8c15(0x201)]());}async[_0x2d3c9e(0x1ef)](_0x3f7795){var _0x232ba8=_0x2d3c9e;return this[_0x232ba8(0x196)][_0x232ba8(0x192)](_0x3f7795)||await this[_0x232ba8(0x19a)](_0x3f7795),this[_0x232ba8(0x196)]['get'](_0x3f7795);}[_0x2d3c9e(0x201)](){var _0x4bd43d=_0x2d3c9e;this[_0x4bd43d(0x1fd)]['getTypeOfUnitAdded$'](_0x448837[_0x4bd43d(0x1ea)])[_0x4bd43d(0x1d0)](_0x50b42f(this[_0x4bd43d(0x183)]))[_0x4bd43d(0x1bf)](async _0x2d2ed0=>{var _0x2628d4=_0x4bd43d;const _0x8dfcbd=_0x2d2ed0[_0x2628d4(0x195)]();this['_entities']['has'](_0x8dfcbd)||this[_0x2628d4(0x19a)](_0x8dfcbd);}),this[_0x4bd43d(0x1fd)][_0x4bd43d(0x1b6)](_0x448837[_0x4bd43d(0x1ea)])['pipe'](_0x50b42f(this[_0x4bd43d(0x183)]))[_0x4bd43d(0x1bf)](_0x4bcd7b=>{var _0x54cb57=_0x4bd43d;const _0x4f7f29=_0x4bcd7b['getUnitId'](),_0x3a9a8c=this[_0x54cb57(0x196)][_0x54cb57(0x1ee)](_0x4f7f29);_0x3a9a8c==null||_0x3a9a8c['dispose']();});}async[_0x2d3c9e(0x19a)](_0x5a6579){var _0x4eaf1f=_0x2d3c9e;const _0x55e341=await this[_0x4eaf1f(0x1dd)]['requireSession'](_0x5a6579),_0x3c94a1=this[_0x4eaf1f(0x1be)]['createInstance'](C,_0x5a6579,_0x55e341);return _0x3c94a1[_0x4eaf1f(0x199)](),this[_0x4eaf1f(0x196)][_0x4eaf1f(0x191)](_0x5a6579,_0x3c94a1),_0x3c94a1;}};m=Z([f(0x0,_0x1c62eb),f(0x1,_0x1be652(_0x4591fb)),f(0x2,_0x1be652(_0x1948ba))],m);var h=(_0x901b8a=>(_0x901b8a[_0x2d3c9e(0x15e)]=_0x2d3c9e(0x158),_0x901b8a[_0x2d3c9e(0x1b1)]='idle',_0x901b8a[_0x2d3c9e(0x1f7)]=_0x2d3c9e(0x18c),_0x901b8a[_0x2d3c9e(0x1a6)]='not-following',_0x901b8a[_0x2d3c9e(0x1e5)]=_0x2d3c9e(0x1cd),_0x901b8a))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1a470f{constructor(_0x485aea,_0x3b4081,_0x1aad8c,_0x568fdd,_0x323899){var _0x199300=_0x2d3c9e;super(),d(this,'_status$',new _0x2299c1(_0x199300(0x1df))),d(this,_0x199300(0x16c),this[_0x199300(0x155)][_0x199300(0x205)]()),d(this,_0x199300(0x201),!0x1),d(this,'_commandDisposable',null),d(this,_0x199300(0x194),null),(this[_0x199300(0x19e)]=_0x485aea,this[_0x199300(0x1f1)]=_0x3b4081,this[_0x199300(0x193)]=_0x1aad8c,this[_0x199300(0x1eb)]=_0x568fdd,this['_commandService']=_0x323899);}get[_0x2d3c9e(0x1a7)](){var _0x37c0df=_0x2d3c9e;return this[_0x37c0df(0x155)]['getValue']();}['dispose'](){var _0x29706e=_0x2d3c9e,_0x5cf048;(_0x5cf048=this[_0x29706e(0x1fc)])==null||_0x5cf048[_0x29706e(0x16a)](),this[_0x29706e(0x155)]['next'](_0x29706e(0x1df)),this[_0x29706e(0x155)][_0x29706e(0x152)]();}[_0x2d3c9e(0x199)](){var _0x48c6d1=_0x2d3c9e;this['_init']||(this[_0x48c6d1(0x201)]=!0x0,this[_0x48c6d1(0x1f1)]['sessionStatus$']['pipe'](_0x50b42f(this[_0x48c6d1(0x183)]))[_0x48c6d1(0x1bf)](_0x3ad177=>{var _0x408adb=_0x48c6d1;switch(_0x3ad177){case _0x1b9c05[_0x408adb(0x15e)]:this[_0x408adb(0x1f4)]();break;case _0x1b9c05[_0x408adb(0x15b)]:this[_0x408adb(0x207)]();break;}}),this[_0x48c6d1(0x1f1)][_0x48c6d1(0x1db)]['pipe'](_0x50b42f(this[_0x48c6d1(0x183)]))['subscribe'](_0x3d8ed5=>{var _0x1ae477=_0x48c6d1;const {eventID:_0xc9a9cc}=_0x3d8ed5;switch(_0xc9a9cc){case _0x21a091[_0x1ae477(0x169)]:this[_0x1ae477(0x1a9)](_0x3d8ed5);break;case _0x21a091[_0x1ae477(0x1d6)]:this[_0x1ae477(0x16b)](_0x3d8ed5);break;case _0x21a091[_0x1ae477(0x157)]:this['_handleTerminate']();break;case _0x21a091[_0x1ae477(0x208)]:this['_handleNewChangeSets'](_0x3d8ed5);break;}}));}[_0x2d3c9e(0x1d7)](){var _0x5336e6=_0x2d3c9e;this['_collabSession'][_0x5336e6(0x1d5)]({'eventID':_0x21a091['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x5336e6(0x1f1)][_0x5336e6(0x1ad)]()}},this[_0x5336e6(0x19e)]);}['stopPresenting'](){var _0xc23cc2=_0x2d3c9e;this[_0xc23cc2(0x1a7)]==='presenting'&&(this[_0xc23cc2(0x155)][_0xc23cc2(0x1f8)](_0xc23cc2(0x1df)),this['_collabSession']['send']({'eventID':_0x21a091[_0xc23cc2(0x157)],'data':{'unitID':this[_0xc23cc2(0x19e)]}},this['_unitID']));}[_0x2d3c9e(0x1d1)](){var _0x2d5140=_0x2d3c9e;this[_0x2d5140(0x1a7)]===_0x2d5140(0x15a)&&(this['_status$'][_0x2d5140(0x1f8)]('following'),this[_0x2d5140(0x19c)]());}[_0x2d3c9e(0x1d2)](){var _0x21bade=_0x2d3c9e;this[_0x21bade(0x1a7)]===_0x21bade(0x18c)&&this[_0x21bade(0x1c8)]();}[_0x2d3c9e(0x1a9)](_0x19aab4){var _0xc681c8=_0x2d3c9e;const {presenter:_0x2eb945}=_0x19aab4[_0xc681c8(0x1ae)],_0x33b93e=this['_collabSession'][_0xc681c8(0x1ad)]();this[_0xc681c8(0x194)]=_0x2eb945,_0x2eb945===_0x33b93e?(this[_0xc681c8(0x1c8)](),this['_startPresenting']()):this['_status']!==_0xc681c8(0x15a)&&(this[_0xc681c8(0x163)](),this[_0xc681c8(0x19c)]());}[_0x2d3c9e(0x1e6)](){var _0x4be150=_0x2d3c9e;const _0x18eb38={'eventID':_0x21a091[_0x4be150(0x18a)]};this[_0x4be150(0x1f1)][_0x4be150(0x1d5)](_0x18eb38,this['_unitID']);}[_0x2d3c9e(0x166)](){var _0x3d6259=_0x2d3c9e;this[_0x3d6259(0x194)]=null,this[_0x3d6259(0x1a7)]!==_0x3d6259(0x1cd)&&this[_0x3d6259(0x173)]();}[_0x2d3c9e(0x1f5)](_0x4c5b61){var _0xf1305a=_0x2d3c9e;if(this['_status']===_0xf1305a(0x18c)&&this[_0xf1305a(0x194)]===_0x4c5b61[_0xf1305a(0x1ae)][_0xf1305a(0x203)]){const _0x395e23=_0x1f2769(_0x4c5b61[_0xf1305a(0x1ae)])['mutations'][_0xf1305a(0x1bd)]()['find'](_0x2696cc=>_0x2696cc['id']===_0x17eb95['id']);if(_0x395e23){const _0x5ec89f=_0x395e23['params'][_0xf1305a(0x175)],_0x15e2d2=_0x395e23[_0xf1305a(0x189)][_0xf1305a(0x18d)]['id'];setTimeout(()=>{var _0x4818af=_0xf1305a;this['_commandService'][_0x4818af(0x176)](_0x5d6d48['id'],{'unitId':_0x5ec89f,'subUnitId':_0x15e2d2},{'fromCollab':!0x0});});}}}[_0x2d3c9e(0x1b3)](){var _0x3b9962=_0x2d3c9e;this[_0x3b9962(0x155)]['next']('presenting');const _0x771ec=new Map(),_0x27d081=this[_0x3b9962(0x1fc)]=new _0x2d5df5();_0x27d081['add'](_0xa4b7eb(()=>{var _0x3fe133=_0x3b9962;_0x771ec[_0x3fe133(0x177)](_0xe6add8=>_0xe6add8['complete']()),_0x771ec[_0x3fe133(0x161)]();})),_0x27d081['add'](this[_0x3b9962(0x1c1)]['onCommandExecuted'](_0x1976bf=>{var _0x8b2fef=_0x3b9962,_0x17f022;if(_0x1976bf[_0x8b2fef(0x1cc)]!==_0x155f0a[_0x8b2fef(0x165)]||!this['_liveShareService'][_0x8b2fef(0x1a3)](_0x1976bf['id']))return;const {id:_0x4de612}=_0x1976bf;let _0x4413e0;_0x771ec['has'](_0x4de612)?_0x4413e0=_0x771ec[_0x8b2fef(0x1ee)](_0x4de612):(_0x4413e0=new _0x48ac5d(),_0x771ec['set'](_0x4de612,_0x4413e0),_0x4413e0['pipe'](_0x2eabc0((_0x17f022=this[_0x8b2fef(0x193)][_0x8b2fef(0x1f2)](xe))!=null?_0x17f022:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x8b2fef(0x1bf)](_0x23ab1c=>{var _0x2d368f=_0x8b2fef;this['_collabSession']['send']({'eventID':_0x21a091[_0x2d368f(0x1d6)],'data':{'unitID':this[_0x2d368f(0x19e)],'operations':{[_0x23ab1c['id']]:{'id':_0x23ab1c['id'],'params':JSON[_0x2d368f(0x185)](_0x23ab1c[_0x2d368f(0x189)])}}}},this[_0x2d368f(0x19e)]);})),_0x4413e0[_0x8b2fef(0x1f8)](_0x1976bf);})),this['_liveShareService'][_0x3b9962(0x1d8)](this[_0x3b9962(0x19e)])[_0x3b9962(0x177)](_0x5df3a3=>this['_collabSession'][_0x3b9962(0x1d5)]({'eventID':_0x21a091['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5df3a3['id']]:{'id':_0x5df3a3['id'],'params':JSON[_0x3b9962(0x185)](_0x5df3a3[_0x3b9962(0x189)])}}}},this[_0x3b9962(0x19e)]));}[_0x2d3c9e(0x163)](){var _0x97eea5=_0x2d3c9e,_0x3cfc20;this[_0x97eea5(0x155)]['next'](_0x97eea5(0x1df)),(_0x3cfc20=this[_0x97eea5(0x1fc)])==null||_0x3cfc20['dispose'](),this[_0x97eea5(0x1fc)]=null;}['_startFollowing'](){var _0x3bbe2d=_0x2d3c9e,_0x55a1d6;(_0x55a1d6=this[_0x3bbe2d(0x1fc)])==null||_0x55a1d6[_0x3bbe2d(0x16a)](),this[_0x3bbe2d(0x155)][_0x3bbe2d(0x1f8)]('following');}[_0x2d3c9e(0x173)](){var _0x15e233=_0x2d3c9e,_0x2bc98e;this[_0x15e233(0x155)]['next'](_0x15e233(0x1df)),(_0x2bc98e=this['_commandDisposable'])==null||_0x2bc98e[_0x15e233(0x16a)](),this[_0x15e233(0x1fc)]=null;}[_0x2d3c9e(0x1c8)](){var _0x364b75=_0x2d3c9e,_0xe0b989;this['_status$']['next'](_0x364b75(0x15a)),(_0xe0b989=this[_0x364b75(0x1fc)])==null||_0xe0b989[_0x364b75(0x16a)]();}[_0x2d3c9e(0x16b)](_0x51720b){var _0x292548=_0x2d3c9e;if(['presenting',_0x292548(0x15a),_0x292548(0x158)][_0x292548(0x1a0)](this[_0x292548(0x1a7)])||!_0x51720b[_0x292548(0x1ae)][_0x292548(0x1c7)]||_0x51720b[_0x292548(0x1ae)][_0x292548(0x1c7)]===this[_0x292548(0x1f1)][_0x292548(0x1ad)]())return;this[_0x292548(0x1a7)]===_0x292548(0x1df)&&this[_0x292548(0x19c)]();const _0x428bad=_0x51720b['data'][_0x292548(0x187)];Object[_0x292548(0x1a5)](_0x428bad)[_0x292548(0x177)](_0x554110=>{var _0x4e888c=_0x292548;this[_0x4e888c(0x1c1)]['executeCommand'](_0x554110['id'],_0x554110['params']?JSON[_0x4e888c(0x184)](_0x554110[_0x4e888c(0x189)]):null,{'fromCollab':!0x0});});}[_0x2d3c9e(0x1f4)](){var _0x1bcf49=_0x2d3c9e,_0x40d225;this['_status$'][_0x1bcf49(0x1f8)](_0x1bcf49(0x158)),(_0x40d225=this[_0x1bcf49(0x1fc)])==null||_0x40d225[_0x1bcf49(0x16a)]();}[_0x2d3c9e(0x207)](){var _0x534f76=_0x2d3c9e;this[_0x534f76(0x155)][_0x534f76(0x1f8)](_0x534f76(0x1df)),this[_0x534f76(0x1e6)]();}};C=Z([f(0x2,_0x70a54),f(0x3,_0x1be652(L)),f(0x4,_0x1808e4)],C);function ye(){var _0x5d6fdc=_0x2d3c9e;const _0x317d50=_0x13cc7d(m),_0x56ccbe=_0x13cc7d(_0x1c62eb),_0x1a6bcb=_0x28fc1f(()=>_0x56ccbe[_0x5d6fdc(0x1f6)](_0x448837[_0x5d6fdc(0x1ea)]),void 0x0,!0x1,[]),[_0x1de7e3,_0x484fb0]=_0x528802(null),[_0x24853f,_0x3e054f]=_0x528802(h['IDLE']),_0x9d5b1b=_0x11d3f7(null);return _0x1e18eb(()=>(_0x1a6bcb&&_0x317d50['getLiveShareCoordinator'](_0x1a6bcb[_0x5d6fdc(0x195)]())[_0x5d6fdc(0x1ab)](_0x48c652=>{var _0xac1364=_0x5d6fdc;_0x484fb0(_0x48c652),_0x9d5b1b[_0xac1364(0x179)]=_0x48c652['status$'][_0xac1364(0x1bf)](_0x2fc5dd=>{_0x3e054f(_0x2fc5dd);});}),()=>{var _0x51f7a7=_0x5d6fdc,_0x2ca15b;(_0x2ca15b=_0x9d5b1b[_0x51f7a7(0x179)])==null||_0x2ca15b[_0x51f7a7(0x1e8)](),_0x9d5b1b[_0x51f7a7(0x179)]=null;}),[_0x1a6bcb,_0x317d50]),_0x1de7e3?_0x37a173(_0x19a648,{'align':_0x5d6fdc(0x178),'disabled':_0x24853f===h[_0x5d6fdc(0x15e)],'className':_0x5d6fdc(0x1fa),'overlay':_0x37a173(Re,{'status':_0x24853f,'coordinator':_0x1de7e3}),'children':_0x37a173(_0x5d6fdc(0x16e),{'className':_0x2cbcb5(_0x5d6fdc(0x18b),{'univer-cursor-not-allowed':_0x24853f===h[_0x5d6fdc(0x15e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x24853f!==h['OFFLINE']}),'type':_0x5d6fdc(0x16e),'children':_0x37a173(B,{'className':_0x5d6fdc(0x180)})})}):null;}function Re(_0x2e3bc3){var _0x4b9e76=_0x2d3c9e;const {status:_0x459ada,coordinator:_0x462561}=_0x2e3bc3;switch(_0x459ada){case h['IDLE']:return _0x37a173(Pe,{'coordinator':_0x462561});case h[_0x4b9e76(0x1f7)]:return _0x37a173(Ae,{'coordinator':_0x462561});case h[_0x4b9e76(0x1a6)]:return _0x37a173(Te,{'coordinator':_0x462561});case h['OFFLINE']:return _0x37a173(Fe,{});case h[_0x4b9e76(0x1e5)]:return _0x37a173($e,{'coordinator':_0x462561});default:return null;}}function Pe(_0x92d7ac){var _0x457c57=_0x2d3c9e;const {coordinator:_0x88d9d6}=_0x92d7ac;return _0x222e8a(_0x371f0b,{'children':[_0x37a173(_0x457c57(0x19f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x457c57(0x19b)}),_0x37a173(_0x598994,{'onClick':()=>_0x88d9d6[_0x457c57(0x1d7)](),'children':_0x457c57(0x171)})]});}function Ae(_0xa3ee0b){var _0x7d328a=_0x2d3c9e;const {coordinator:_0x5bacf5}=_0xa3ee0b;return _0x222e8a(_0x371f0b,{'children':[_0x37a173(_0x7d328a(0x19f),{'className':_0x7d328a(0x1f3),'children':_0x7d328a(0x200)}),_0x37a173(_0x598994,{'onClick':()=>_0x5bacf5[_0x7d328a(0x1d2)](),'children':_0x7d328a(0x181)})]});}function Te(_0x4281aa){var _0x4c5f05=_0x2d3c9e;const {coordinator:_0x4e51d3}=_0x4281aa;return _0x222e8a(_0x371f0b,{'children':[_0x37a173('div',{'className':_0x4c5f05(0x1f3),'children':_0x4c5f05(0x1f0)}),_0x37a173(_0x598994,{'variant':_0x4c5f05(0x206),'onClick':()=>_0x4e51d3[_0x4c5f05(0x1d1)](),'children':_0x4c5f05(0x1a4)})]});}function $e(_0x105dbf){var _0x146be8=_0x2d3c9e;const {coordinator:_0x51a1ff}=_0x105dbf;return _0x222e8a(_0x371f0b,{'children':[_0x37a173('div',{'className':_0x146be8(0x1f3),'children':_0x146be8(0x16d)}),_0x37a173(_0x598994,{'variant':'default','onClick':()=>_0x51a1ff[_0x146be8(0x1e7)](),'children':_0x146be8(0x1f9)})]});}function _0x2c5d(){var _0x8bbe95=['get','getLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','getConfig','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','_handleNewChangeSets','getCurrentTypeOfUnit$','FOLLOWING','next','Stop\x20presenting','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','_reporters','_commandDisposable','_univerInstanceService','length','0\x200\x2017\x2017','You\x27re\x20following\x20the\x20presenter','_init','registerSharedOperation','memberID','161208GmUodH','asObservable','text','_handleOnline','NEW_CHANGESETS','disposeWithMe','concat','map','complete','evenodd','mask','_status$','assign','LIVESHARE_TERMINATE','offline','6778HOKIUa','not-following','ONLINE','extend','override','OFFLINE','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','UNIVER_LIVE_SHARE_PLUGIN','clear','_mountLiveShare','_stopPresenting','icon','OPERATION','_handleTerminate','live-share.config','_config','LIVESHARE_NEW_HOST','dispose','_handleOperation','status$','You\x27re\x20presenting\x20the\x20document','button','string','6FZRkYE','Start','from','_beIdle','registerComponent','unitId','executeCommand','forEach','end','current','onStarting','delete','toString','tag','univerjs-icon\x20univerjs-icon-','123135BWdePL','univer-size-4','Stop\x20following','use','dispose$','parse','stringify','defIds','operations','1em','params','LIVESHARE_FETCH_OPERATIONS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','sheet','xlink:href','258972NayxaS','entries','set','has','_configService','_presenter','getUnitId','_entities','_sharedOperations','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','init','_startLiveShareCoordinator','Present\x20this\x20document','_startFollowing','fill','_unitID','div','includes','colorChannel1','path','shouldShareOperation','Start\x20following','values','NOT_FOLLOWING','_status','url(#$1','_handleNewHost','defs','then','onRendered','getMemberID','data','LiveShareIcon','className','IDLE','call','_startPresenting','http://www.w3.org/2000/svg','pluginName','getTypeOfUnitDisposed$','none','currentColor','live-share-icon','314508UArZqe','63hjNHFe','symbol','reverse','_injector','subscribe','2FojwiI','_commandService','getOwnPropertySymbols','49LUZxjl','UniverIcon','displayName','trim','presenter','_stopFollowing','2611411ZfFlev','_uiPartsService','svg','type','presenting','12PbQdLq','hasOwnProperty','pipe','startFollowing','stopFollowing','substring','defineProperty','send','LIVESHARE_OPERATION','tryStartPresenting','getInitialStates','add','HEADER_MENU','event$','getOwnPropertyDescriptor','_collabSessionService','random','idle','children','replace','function','propertyIsEnumerable','2511720DhGIpt','PRESENTING','_fetchOperations','stopPresenting','unsubscribe','attrs','UNIVER_SHEET','_liveShareService','idSuffix','prototype'];_0x2c5d=function(){return _0x8bbe95;};return _0x2c5d();}function _0x2028(_0x1864e2,_0x986396){var _0x2c5d07=_0x2c5d();return _0x2028=function(_0x2028b5,_0x20e28b){_0x2028b5=_0x2028b5-0x14f;var _0x58a6c9=_0x2c5d07[_0x2028b5];return _0x58a6c9;},_0x2028(_0x1864e2,_0x986396);}function Fe(){return _0x37a173(_0x371f0b,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x2afd97,_0x2412fc,_0x4fc6c2,_0x3b57ef)=>{var _0xfb87f0=_0x2d3c9e;for(var _0x2f6ee9=_0x3b57ef>0x1?void 0x0:_0x3b57ef?He(_0x2412fc,_0x4fc6c2):_0x2412fc,_0x2784b2=_0x2afd97[_0xfb87f0(0x1fe)]-0x1,_0x6651e2;_0x2784b2>=0x0;_0x2784b2--)(_0x6651e2=_0x2afd97[_0x2784b2])&&(_0x2f6ee9=_0x6651e2(_0x2f6ee9)||_0x2f6ee9);return _0x2f6ee9;},T=(_0x5d476d,_0x456b57)=>(_0x386064,_0x543c1e)=>_0x456b57(_0x386064,_0x543c1e,_0x5d476d);let I=class extends _0x111f7b{constructor(_0x4660ce,_0x196078){var _0x2f6dbb=_0x2d3c9e;super(),this[_0x2f6dbb(0x1be)]=_0x4660ce,this[_0x2f6dbb(0x1ca)]=_0x196078,this[_0x2f6dbb(0x162)]();}[_0x2d3c9e(0x162)](){var _0x3b9c26=_0x2d3c9e;this[_0x3b9c26(0x14f)](this[_0x3b9c26(0x1ca)][_0x3b9c26(0x174)](_0x56776a[_0x3b9c26(0x1da)],()=>_0x33b8e8(ye,this[_0x3b9c26(0x1be)])));}};I=je([T(0x0,_0x1be652(_0x4591fb)),T(0x1,_0x202a87)],I);const Ue=_0x2d3c9e(0x167),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x5ae4bf,_0x3d1e9e,_0x1f43af,_0x89b607)=>{var _0x2c55a4=_0x2d3c9e;for(var _0x5573cc=_0x89b607>0x1?void 0x0:_0x89b607?Ve(_0x3d1e9e,_0x1f43af):_0x3d1e9e,_0x367253=_0x5ae4bf[_0x2c55a4(0x1fe)]-0x1,_0x2184c2;_0x367253>=0x0;_0x367253--)(_0x2184c2=_0x5ae4bf[_0x367253])&&(_0x5573cc=_0x2184c2(_0x5573cc)||_0x5573cc);return _0x5573cc;},ke=(_0x3b8653,_0x4e61a8)=>(_0x14d6be,_0x2d3779)=>_0x4e61a8(_0x14d6be,_0x2d3779,_0x3b8653);let b=class extends _0x111f7b{constructor(_0x2a2dcf){var _0x4b6207=_0x2d3c9e;super(),this[_0x4b6207(0x1eb)]=_0x2a2dcf,this[_0x4b6207(0x201)]();}[_0x2d3c9e(0x201)](){[_0x1824f5['id'],_0x200040['id'],_0x5d6d48['id']]['forEach'](_0x2c0a99=>{var _0x421783=_0x2028;this['disposeWithMe'](this[_0x421783(0x1eb)]['registerSharedOperation'](_0x2c0a99));});}};b=Me([ke(0x0,_0x1be652(L))],b);var Ge=Object[_0x2d3c9e(0x1d4)],We=Object[_0x2d3c9e(0x1dc)],Ye=(_0x5bfe74,_0x441cbe,_0x3dded5)=>_0x441cbe in _0x5bfe74?Ge(_0x5bfe74,_0x441cbe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dded5}):_0x5bfe74[_0x441cbe]=_0x3dded5,Be=(_0x9d76c6,_0x38f17b,_0x145228,_0xa4d8cc)=>{var _0x277749=_0x2d3c9e;for(var _0x9f5b4c=_0xa4d8cc>0x1?void 0x0:_0xa4d8cc?We(_0x38f17b,_0x145228):_0x38f17b,_0x13931d=_0x9d76c6[_0x277749(0x1fe)]-0x1,_0x5f55f1;_0x13931d>=0x0;_0x13931d--)(_0x5f55f1=_0x9d76c6[_0x13931d])&&(_0x9f5b4c=_0x5f55f1(_0x9f5b4c)||_0x9f5b4c);return _0x9f5b4c;},F=(_0x48768d,_0x45730d)=>(_0x29b3fe,_0x572de8)=>_0x45730d(_0x29b3fe,_0x572de8,_0x48768d),J=(_0x154831,_0x39b840,_0x5cf02a)=>Ye(_0x154831,typeof _0x39b840!=_0x2d3c9e(0x1bc)?_0x39b840+'':_0x39b840,_0x5cf02a);const Ze=_0x2d3c9e(0x160);let O=class extends _0xdfe9ca{constructor(_0x15753f=$,_0x23999e,_0x262da0){var _0x364e23=_0x2d3c9e;super(),this[_0x364e23(0x168)]=_0x15753f,this[_0x364e23(0x1be)]=_0x23999e,this['_configService']=_0x262da0;const {..._0x31273a}=_0x45be97({},$,this['_config']);this[_0x364e23(0x193)]['setConfig'](Ue,_0x31273a);}[_0x2d3c9e(0x17a)](){var _0x4c9fb5=_0x2d3c9e;_0xf06216(this[_0x4c9fb5(0x1be)],_0x534f8d([[L],[m],[b],[I]],this[_0x4c9fb5(0x168)][_0x4c9fb5(0x15d)])),_0x497b10(this[_0x4c9fb5(0x1be)],[[b]]);}[_0x2d3c9e(0x1ac)](){var _0x49d340=_0x2d3c9e;_0x497b10(this[_0x49d340(0x1be)],[[I]]);}};J(O,_0x2d3c9e(0x1cc),_0x448837['UNIVER_UNKNOWN']),J(O,_0x2d3c9e(0x1b5),Ze),O=Be([_0x2a6e71(_0x2d28a9),F(0x1,_0x1be652(_0x4591fb)),F(0x2,_0x70a54)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x219a(_0x3ee313,_0x4509ec){var _0x5ce812=_0x5ce8();return _0x219a=function(_0x219a24,_0xfa7408){_0x219a24=_0x219a24-0x111;var _0x384801=_0x5ce812[_0x219a24];return _0x384801;},_0x219a(_0x3ee313,_0x4509ec);}(function(_0x49a633,_0x3d0acf){var _0xbd8ec8=_0x219a,_0x2485e7=_0x49a633();while(!![]){try{var _0x4a79ea=parseInt(_0xbd8ec8(0x1be))/0x1+parseInt(_0xbd8ec8(0x1de))/0x2+parseInt(_0xbd8ec8(0x197))/0x3+-parseInt(_0xbd8ec8(0x14b))/0x4*(-parseInt(_0xbd8ec8(0x1dd))/0x5)+-parseInt(_0xbd8ec8(0x1cd))/0x6+parseInt(_0xbd8ec8(0x1ba))/0x7*(-parseInt(_0xbd8ec8(0x136))/0x8)+parseInt(_0xbd8ec8(0x155))/0x9*(-parseInt(_0xbd8ec8(0x133))/0xa);if(_0x4a79ea===_0x3d0acf)break;else _0x2485e7['push'](_0x2485e7['shift']());}catch(_0x130f25){_0x2485e7['push'](_0x2485e7['shift']());}}}(_0x5ce8,0xd3f13),function(_0x1ee0a5,_0x989f7d){var _0x1764eb=_0x219a;typeof exports=='object'&&typeof module<'u'?_0x989f7d(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==_0x1764eb(0x19b)&&define[_0x1764eb(0x176)]?define([_0x1764eb(0x1ca),_0x1764eb(0x182),_0x1764eb(0x200),_0x1764eb(0x1b9),'@univerjs/design',_0x1764eb(0x118),_0x1764eb(0x1b5),_0x1764eb(0x1c2),_0x1764eb(0x12e),'rxjs',_0x1764eb(0x148),'@univerjs/sheets-ui'],_0x989f7d):(_0x1ee0a5=typeof globalThis<'u'?globalThis:_0x1ee0a5||self,_0x989f7d(_0x1ee0a5[_0x1764eb(0x1b8)]={},_0x1ee0a5[_0x1764eb(0x13a)],_0x1ee0a5[_0x1764eb(0x1ec)],_0x1ee0a5[_0x1764eb(0x1eb)],_0x1ee0a5[_0x1764eb(0x156)],_0x1ee0a5[_0x1764eb(0x1eb)],_0x1ee0a5[_0x1764eb(0x1d7)],_0x1ee0a5[_0x1764eb(0x12a)],_0x1ee0a5['UniverSheets'],_0x1ee0a5[_0x1764eb(0x14f)],_0x1ee0a5[_0x1764eb(0x14f)][_0x1764eb(0x12b)],_0x1ee0a5[_0x1764eb(0x1f3)]));}(this,function(_0x1d3696,_0x2a0f4b,_0x3585d3,_0x736866,_0x9f2c57,_0x37cbab,_0x375edc,_0x1c2c35,_0x379a98,_0x4bd9f7,_0x5a779e,_0x470961){'use strict';var _0x379e29=_0x219a;var _0x419813=Object[_0x379e29(0x14d)],_0x3904e3=(_0x1fe473,_0x29dc58,_0xf9127b)=>_0x29dc58 in _0x1fe473?_0x419813(_0x1fe473,_0x29dc58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf9127b}):_0x1fe473[_0x29dc58]=_0xf9127b,_0x354790=(_0x15b329,_0x2bc234,_0x5c8578)=>_0x3904e3(_0x15b329,typeof _0x2bc234!=_0x379e29(0x1a3)?_0x2bc234+'':_0x2bc234,_0x5c8578),_0x33cbdc=function(){var _0x70b698=_0x379e29;return _0x33cbdc=Object['assign']||function(_0x1fd0e3){var _0x1581ae=_0x219a;for(var _0xafb44,_0x425091=0x1,_0x5e203b=arguments[_0x1581ae(0x1c5)];_0x425091<_0x5e203b;_0x425091++){_0xafb44=arguments[_0x425091];for(var _0x148571 in _0xafb44)Object[_0x1581ae(0x1af)][_0x1581ae(0x15d)]['call'](_0xafb44,_0x148571)&&(_0x1fd0e3[_0x148571]=_0xafb44[_0x148571]);}return _0x1fd0e3;},_0x33cbdc[_0x70b698(0x1b7)](this,arguments);},_0x4fceb0=function(_0x5929ad,_0x4fa46d){var _0x267cf0=_0x379e29,_0xe74cd8={};for(var _0x2810a1 in _0x5929ad)Object[_0x267cf0(0x1af)][_0x267cf0(0x15d)][_0x267cf0(0x195)](_0x5929ad,_0x2810a1)&&_0x4fa46d[_0x267cf0(0x190)](_0x2810a1)<0x0&&(_0xe74cd8[_0x2810a1]=_0x5929ad[_0x2810a1]);if(_0x5929ad!=null&&typeof Object[_0x267cf0(0x13f)]==_0x267cf0(0x19b)){for(var _0x945bdd=0x0,_0x2810a1=Object[_0x267cf0(0x13f)](_0x5929ad);_0x945bdd<_0x2810a1[_0x267cf0(0x1c5)];_0x945bdd++)_0x4fa46d['indexOf'](_0x2810a1[_0x945bdd])<0x0&&Object[_0x267cf0(0x1af)][_0x267cf0(0x15c)]['call'](_0x5929ad,_0x2810a1[_0x945bdd])&&(_0xe74cd8[_0x2810a1[_0x945bdd]]=_0x5929ad[_0x2810a1[_0x945bdd]]);}return _0xe74cd8;},_0x443b19=_0x37cbab[_0x379e29(0x145)](function(_0x190e67,_0x28a260){var _0x3ad140=_0x379e29,_0xc582f8=_0x190e67[_0x3ad140(0x1cb)],_0x4ebd77=_0x190e67['id'],_0x5b9b95=_0x190e67[_0x3ad140(0x188)],_0x32fbfc=_0x190e67['extend'],_0x4ebde8=_0x4fceb0(_0x190e67,[_0x3ad140(0x1cb),'id','className','extend']),_0x3c2623=_0x3ad140(0x1cc)[_0x3ad140(0x1ac)](_0x4ebd77,'\x20')[_0x3ad140(0x1ac)](_0x5b9b95||'')['trim'](),_0x2c894b=_0x37cbab[_0x3ad140(0x1f5)]('_'['concat'](_0x331e3b()));return _0x3a08ef(_0xc582f8,''[_0x3ad140(0x1ac)](_0x4ebd77),{'defIds':_0xc582f8[_0x3ad140(0x15f)],'idSuffix':_0x2c894b[_0x3ad140(0x141)]},_0x33cbdc({'ref':_0x28a260,'className':_0x3c2623},_0x4ebde8),_0x32fbfc);});function _0x3a08ef(_0x599e6d,_0x2b41e1,_0x43d21d,_0x2badcc,_0x299b2b){var _0xcc7ea1=_0x379e29;return _0x37cbab[_0xcc7ea1(0x16a)](_0x599e6d[_0xcc7ea1(0x1f9)],_0x33cbdc(_0x33cbdc({'key':_0x2b41e1},_0x1e570c(_0x599e6d,_0x43d21d,_0x299b2b)),_0x2badcc),(_0xe4a9f4(_0x599e6d,_0x43d21d)['children']||[])[_0xcc7ea1(0x1ff)](function(_0x1edced,_0xe1d2ad){var _0x426913=_0xcc7ea1;return _0x3a08ef(_0x1edced,''[_0x426913(0x1ac)](_0x2b41e1,'-')['concat'](_0x599e6d['tag'],'-')[_0x426913(0x1ac)](_0xe1d2ad),_0x43d21d,void 0x0,_0x299b2b);}));}function _0x1e570c(_0x542157,_0x52551e,_0x23436a){var _0x11a145=_0x379e29,_0xec5aff=_0x33cbdc({},_0x542157[_0x11a145(0x1a1)]);_0x23436a!=null&&_0x23436a[_0x11a145(0x120)]&&_0xec5aff[_0x11a145(0x14c)]===_0x11a145(0x120)&&(_0xec5aff[_0x11a145(0x14c)]=_0x23436a[_0x11a145(0x120)]),_0x542157[_0x11a145(0x1f9)]===_0x11a145(0x153)&&_0xec5aff['id']&&(_0xec5aff['id']=_0xec5aff['id']+_0x52551e[_0x11a145(0x16d)]),Object[_0x11a145(0x12c)](_0xec5aff)['forEach'](function(_0x17b394){var _0x5cab9a=_0x11a145,_0x890050=_0x17b394[0x0],_0x47bb5b=_0x17b394[0x1];_0x890050===_0x5cab9a(0x153)&&typeof _0x47bb5b==_0x5cab9a(0x169)&&(_0xec5aff[_0x890050]=_0x47bb5b[_0x5cab9a(0x18d)](/url\(#(.*)\)/,_0x5cab9a(0x1dc)[_0x5cab9a(0x1ac)](_0x52551e[_0x5cab9a(0x16d)],')')));});var _0x205dab=_0x52551e[_0x11a145(0x15f)];return!_0x205dab||_0x205dab['length']===0x0||(_0x542157[_0x11a145(0x1f9)]===_0x11a145(0x183)&&_0xec5aff[_0x11a145(0x15e)]&&(_0xec5aff['xlink:href']=_0xec5aff['xlink:href']+_0x52551e[_0x11a145(0x16d)]),Object[_0x11a145(0x12c)](_0xec5aff)[_0x11a145(0x163)](function(_0x5c4b98){var _0x14e12e=_0x11a145,_0x14362d=_0x5c4b98[0x0],_0x2656be=_0x5c4b98[0x1];typeof _0x2656be==_0x14e12e(0x169)&&(_0xec5aff[_0x14362d]=_0x2656be[_0x14e12e(0x18d)](/url\(#(.*)\)/,'url(#$1'[_0x14e12e(0x1ac)](_0x52551e['idSuffix'],')')));})),_0xec5aff;}function _0xe4a9f4(_0x38b0d4,_0x4fd5a1){var _0x80c978=_0x379e29,_0x3e6606,_0x3e83ff=_0x4fd5a1[_0x80c978(0x15f)];return!_0x3e83ff||_0x3e83ff[_0x80c978(0x1c5)]===0x0?_0x38b0d4:_0x38b0d4['tag']===_0x80c978(0x1da)&&(!((_0x3e6606=_0x38b0d4['children'])===null||_0x3e6606===void 0x0)&&_0x3e6606['length'])?_0x33cbdc(_0x33cbdc({},_0x38b0d4),{'children':_0x38b0d4['children'][_0x80c978(0x1ff)](function(_0x42d623){var _0x552580=_0x80c978;return typeof _0x42d623[_0x552580(0x1a1)]['id']==_0x552580(0x169)&&_0x3e83ff&&_0x3e83ff[_0x552580(0x18b)](_0x42d623[_0x552580(0x1a1)]['id'])?_0x33cbdc(_0x33cbdc({},_0x42d623),{'attrs':_0x33cbdc(_0x33cbdc({},_0x42d623[_0x552580(0x1a1)]),{'id':_0x42d623['attrs']['id']+_0x4fd5a1['idSuffix']})}):_0x42d623;})}):_0x38b0d4;}function _0x331e3b(){var _0x19cc69=_0x379e29;return Math[_0x19cc69(0x1c7)]()['toString'](0x24)[_0x19cc69(0x19e)](0x2,0x8);}_0x443b19[_0x379e29(0x13e)]=_0x379e29(0x168);var _0x5d327e={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x379e29(0x1a2),'viewBox':_0x379e29(0x19d),'width':_0x379e29(0x1a8),'height':_0x379e29(0x1a8)},'children':[{'tag':_0x379e29(0x124),'attrs':{'fill':_0x379e29(0x1e4),'d':_0x379e29(0x146)}},{'tag':_0x379e29(0x124),'attrs':{'fill':_0x379e29(0x1e4),'d':_0x379e29(0x149),'fillRule':'evenodd','clipRule':_0x379e29(0x13d)}}]},_0x188960=_0x37cbab[_0x379e29(0x145)](function(_0x377c5c,_0x2a7b6e){var _0x17b556=_0x379e29;return _0x37cbab['createElement'](_0x443b19,Object[_0x17b556(0x17b)]({},_0x377c5c,{'id':'live-share-icon','ref':_0x2a7b6e,'icon':_0x5d327e}));});_0x188960[_0x379e29(0x13e)]=_0x379e29(0x1db);class _0x81b41 extends _0x2a0f4b[_0x379e29(0x184)]{constructor(){var _0x57f53c=_0x379e29;super(...arguments),_0x354790(this,'_sharedOperations',new Set()),_0x354790(this,_0x57f53c(0x130),new Set());}[_0x379e29(0x126)](_0x53fd74){var _0x920190=_0x379e29;return this[_0x920190(0x171)][_0x920190(0x185)](_0x53fd74),_0x2a0f4b[_0x920190(0x198)](()=>this[_0x920190(0x171)][_0x920190(0x1fd)](_0x53fd74));}[_0x379e29(0x1a6)](_0x476f1a){var _0x287d13=_0x379e29;return this[_0x287d13(0x130)][_0x287d13(0x185)](_0x476f1a),_0x2a0f4b[_0x287d13(0x198)](()=>this['_reporters']['delete'](_0x476f1a));}[_0x379e29(0x160)](_0x4fc9c1){var _0x11d0e7=_0x379e29;return this[_0x11d0e7(0x171)][_0x11d0e7(0x1e0)](_0x4fc9c1);}['getInitialStates'](_0x48ce6f){var _0xe96e5c=_0x379e29;return Array[_0xe96e5c(0x13c)](this[_0xe96e5c(0x130)])['map'](_0x5c5f66=>_0x5c5f66(_0x48ce6f));}}var _0x5562c3=Object[_0x379e29(0x1ae)],_0x4ce04e=(_0x4100ee,_0x1c6857,_0x26b583,_0x5ecaf6)=>{var _0x4841ab=_0x379e29;for(var _0xa469f1=_0x5ecaf6>0x1?void 0x0:_0x5ecaf6?_0x5562c3(_0x1c6857,_0x26b583):_0x1c6857,_0x1988b5=_0x4100ee[_0x4841ab(0x1c5)]-0x1,_0x924e96;_0x1988b5>=0x0;_0x1988b5--)(_0x924e96=_0x4100ee[_0x1988b5])&&(_0xa469f1=_0x924e96(_0xa469f1)||_0xa469f1);return _0xa469f1;},_0x5e33aa=(_0x5cb4e9,_0x39af3e)=>(_0x2b65ca,_0x5d8839)=>_0x39af3e(_0x2b65ca,_0x5d8839,_0x5cb4e9);_0x1d3696[_0x379e29(0x18e)]=class extends _0x2a0f4b['RxDisposable']{constructor(_0x2d5498,_0x3ad211,_0x54c230){var _0x1100f1=_0x379e29;super(),_0x354790(this,'_entities',new Map()),(this[_0x1100f1(0x1ab)]=_0x2d5498,this[_0x1100f1(0x1fe)]=_0x3ad211,this['_collabSessionService']=_0x54c230,this[_0x1100f1(0x1d9)]());}async[_0x379e29(0x1d3)](_0x244747){var _0x178964=_0x379e29;return this[_0x178964(0x18a)]['has'](_0x244747)||await this[_0x178964(0x119)](_0x244747),this[_0x178964(0x18a)]['get'](_0x244747);}[_0x379e29(0x1d9)](){var _0xe6ed2b=_0x379e29;this[_0xe6ed2b(0x1ab)][_0xe6ed2b(0x1fb)](_0x2a0f4b[_0xe6ed2b(0x162)]['UNIVER_SHEET'])[_0xe6ed2b(0x17c)](_0x5a779e[_0xe6ed2b(0x1d4)](this[_0xe6ed2b(0x174)]))['subscribe'](async _0x275cf2=>{var _0x20f6ae=_0xe6ed2b;const _0x1c49a3=_0x275cf2[_0x20f6ae(0x11d)]();this[_0x20f6ae(0x18a)][_0x20f6ae(0x1e0)](_0x1c49a3)||this[_0x20f6ae(0x119)](_0x1c49a3);}),this[_0xe6ed2b(0x1ab)][_0xe6ed2b(0x15a)](_0x2a0f4b[_0xe6ed2b(0x162)][_0xe6ed2b(0x1ce)])[_0xe6ed2b(0x17c)](_0x5a779e[_0xe6ed2b(0x1d4)](this['dispose$']))[_0xe6ed2b(0x158)](_0x4cadbd=>{var _0x353852=_0xe6ed2b;const _0x33e088=_0x4cadbd['getUnitId'](),_0x5cfe80=this[_0x353852(0x18a)][_0x353852(0x121)](_0x33e088);_0x5cfe80==null||_0x5cfe80['dispose']();});}async[_0x379e29(0x119)](_0x5736ac){var _0x348d52=_0x379e29;const _0x1354e4=await this[_0x348d52(0x1bd)]['requireSession'](_0x5736ac),_0x1b0cad=this['_injector']['createInstance'](_0x1d3696['LiveShareCoordinator'],_0x5736ac,_0x1354e4);return _0x1b0cad[_0x348d52(0x179)](),this['_entities'][_0x348d52(0x1e2)](_0x5736ac,_0x1b0cad),_0x1b0cad;}},_0x1d3696['LiveShareController']=_0x4ce04e([_0x5e33aa(0x0,_0x2a0f4b[_0x379e29(0x1e5)]),_0x5e33aa(0x1,_0x2a0f4b['Inject'](_0x2a0f4b[_0x379e29(0x1d0)])),_0x5e33aa(0x2,_0x2a0f4b['Inject'](_0x1c2c35[_0x379e29(0x177)]))],_0x1d3696['LiveShareController']);var _0xc3591b=(_0x275d0a=>(_0x275d0a[_0x379e29(0x165)]=_0x379e29(0x17e),_0x275d0a[_0x379e29(0x1b6)]='idle',_0x275d0a[_0x379e29(0x16e)]=_0x379e29(0x122),_0x275d0a[_0x379e29(0x1f4)]=_0x379e29(0x1a7),_0x275d0a[_0x379e29(0x1e9)]=_0x379e29(0x1e7),_0x275d0a))(_0xc3591b||{});const _0x541ffd='SAME_OPERATION_SHARE_INTERVAL',_0x53c686=0xc8;_0x1d3696[_0x379e29(0x1a4)]=class extends _0x2a0f4b[_0x379e29(0x157)]{constructor(_0x12fa71,_0x40c058,_0x25c11f,_0x29c8d7,_0xa048e8){var _0xeb7e89=_0x379e29;super(),_0x354790(this,_0xeb7e89(0x1d6),new _0x4bd9f7['BehaviorSubject']('idle')),_0x354790(this,'status$',this[_0xeb7e89(0x1d6)][_0xeb7e89(0x15b)]()),_0x354790(this,_0xeb7e89(0x1d9),!0x1),_0x354790(this,_0xeb7e89(0x1cf),null),_0x354790(this,_0xeb7e89(0x123),null),(this[_0xeb7e89(0x13b)]=_0x12fa71,this[_0xeb7e89(0x1e6)]=_0x40c058,this[_0xeb7e89(0x144)]=_0x25c11f,this[_0xeb7e89(0x159)]=_0x29c8d7,this[_0xeb7e89(0x127)]=_0xa048e8);}get['_status'](){var _0x37660c=_0x379e29;return this[_0x37660c(0x1d6)][_0x37660c(0x18f)]();}['dispose'](){var _0x583f72=_0x379e29,_0x2ee97c;(_0x2ee97c=this[_0x583f72(0x1cf)])==null||_0x2ee97c[_0x583f72(0x201)](),this[_0x583f72(0x1d6)][_0x583f72(0x1ef)](_0x583f72(0x137)),this[_0x583f72(0x1d6)][_0x583f72(0x17f)]();}[_0x379e29(0x179)](){var _0x253576=_0x379e29;this[_0x253576(0x1d9)]||(this[_0x253576(0x1d9)]=!0x0,this[_0x253576(0x1e6)][_0x253576(0x1a5)][_0x253576(0x17c)](_0x5a779e['takeUntil'](this[_0x253576(0x174)]))['subscribe'](_0x2e2aaa=>{var _0x150e30=_0x253576;switch(_0x2e2aaa){case _0x1c2c35['SessionStatus'][_0x150e30(0x165)]:this['_handleOffline']();break;case _0x1c2c35[_0x150e30(0x115)][_0x150e30(0x114)]:this[_0x150e30(0x116)]();break;}}),this[_0x253576(0x1e6)][_0x253576(0x132)]['pipe'](_0x5a779e['takeUntil'](this[_0x253576(0x174)]))[_0x253576(0x158)](_0x2a26fb=>{var _0x1b0551=_0x253576;const {eventID:_0x15011a}=_0x2a26fb;switch(_0x15011a){case _0x375edc[_0x1b0551(0x11e)][_0x1b0551(0x19f)]:this[_0x1b0551(0x1c6)](_0x2a26fb);break;case _0x375edc[_0x1b0551(0x11e)][_0x1b0551(0x1fc)]:this['_handleOperation'](_0x2a26fb);break;case _0x375edc[_0x1b0551(0x11e)][_0x1b0551(0x19a)]:this[_0x1b0551(0x196)]();break;case _0x375edc[_0x1b0551(0x11e)][_0x1b0551(0x167)]:this[_0x1b0551(0x113)](_0x2a26fb);break;}}));}['tryStartPresenting'](){var _0x2ec130=_0x379e29;this[_0x2ec130(0x1e6)][_0x2ec130(0x1f2)]({'eventID':_0x375edc['CollaborationEvent'][_0x2ec130(0x178)],'data':{'unitID':this[_0x2ec130(0x13b)],'userID':this[_0x2ec130(0x1e6)][_0x2ec130(0x147)]()}},this['_unitID']);}['stopPresenting'](){var _0x13de3c=_0x379e29;this[_0x13de3c(0x1c3)]===_0x13de3c(0x1e7)&&(this[_0x13de3c(0x1d6)]['next'](_0x13de3c(0x137)),this[_0x13de3c(0x1e6)][_0x13de3c(0x1f2)]({'eventID':_0x375edc[_0x13de3c(0x11e)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x13de3c(0x13b)]}},this[_0x13de3c(0x13b)]));}[_0x379e29(0x1ea)](){var _0x1c4097=_0x379e29;this[_0x1c4097(0x1c3)]===_0x1c4097(0x1a7)&&(this[_0x1c4097(0x1d6)]['next'](_0x1c4097(0x122)),this[_0x1c4097(0x166)]());}[_0x379e29(0x1c9)](){var _0x526a5a=_0x379e29;this[_0x526a5a(0x1c3)]===_0x526a5a(0x122)&&this[_0x526a5a(0x11c)]();}[_0x379e29(0x1c6)](_0x454510){var _0x591c22=_0x379e29;const {presenter:_0x5911e3}=_0x454510[_0x591c22(0x1f1)],_0x262a21=this[_0x591c22(0x1e6)][_0x591c22(0x147)]();this[_0x591c22(0x123)]=_0x5911e3,_0x5911e3===_0x262a21?(this['_stopFollowing'](),this[_0x591c22(0x12d)]()):this['_status']!==_0x591c22(0x1a7)&&(this[_0x591c22(0x12f)](),this['_startFollowing']());}[_0x379e29(0x150)](){var _0x1532e0=_0x379e29;const _0x3620bd={'eventID':_0x375edc[_0x1532e0(0x11e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1532e0(0x1f2)](_0x3620bd,this[_0x1532e0(0x13b)]);}['_handleTerminate'](){var _0x51a66c=_0x379e29;this[_0x51a66c(0x123)]=null,this[_0x51a66c(0x1c3)]!==_0x51a66c(0x1e7)&&this[_0x51a66c(0x19c)]();}[_0x379e29(0x113)](_0xb0c7bc){var _0x5e21f6=_0x379e29;if(this['_status']===_0x5e21f6(0x122)&&this['_presenter']===_0xb0c7bc['data'][_0x5e21f6(0x1e1)]){const _0x16c416=_0x375edc[_0x5e21f6(0x191)](_0xb0c7bc[_0x5e21f6(0x1f1)])['mutations'][_0x5e21f6(0x186)]()['find'](_0x59a170=>_0x59a170['id']===_0x379a98[_0x5e21f6(0x128)]['id']);if(_0x16c416){const _0x336fc1=_0x16c416['params'][_0x5e21f6(0x142)],_0x5da12d=_0x16c416[_0x5e21f6(0x1bc)][_0x5e21f6(0x16f)]['id'];setTimeout(()=>{var _0x2c91da=_0x5e21f6;this[_0x2c91da(0x127)][_0x2c91da(0x117)](_0x379a98['SetWorksheetActiveOperation']['id'],{'unitId':_0x336fc1,'subUnitId':_0x5da12d},{'fromCollab':!0x0});});}}}[_0x379e29(0x12d)](){var _0xb472e9=_0x379e29;this['_status$'][_0xb472e9(0x1ef)](_0xb472e9(0x1e7));const _0x5bb173=new Map(),_0x3baed7=this[_0xb472e9(0x1cf)]=new _0x2a0f4b[(_0xb472e9(0x1c8))]();_0x3baed7['add'](_0x2a0f4b[_0xb472e9(0x198)](()=>{var _0xc32d8b=_0xb472e9;_0x5bb173[_0xc32d8b(0x163)](_0x55fb28=>_0x55fb28['complete']()),_0x5bb173['clear']();})),_0x3baed7['add'](this[_0xb472e9(0x127)][_0xb472e9(0x1ed)](_0xb53d6b=>{var _0x5566dc=_0xb472e9,_0x3f11c1;if(_0xb53d6b[_0x5566dc(0x1e3)]!==_0x2a0f4b['CommandType'][_0x5566dc(0x135)]||!this[_0x5566dc(0x159)][_0x5566dc(0x160)](_0xb53d6b['id']))return;const {id:_0x2dc146}=_0xb53d6b;let _0x2f39b2;_0x5bb173[_0x5566dc(0x1e0)](_0x2dc146)?_0x2f39b2=_0x5bb173[_0x5566dc(0x121)](_0x2dc146):(_0x2f39b2=new _0x4bd9f7['Subject'](),_0x5bb173[_0x5566dc(0x1e2)](_0x2dc146,_0x2f39b2),_0x2f39b2['pipe'](_0x5a779e['throttleTime']((_0x3f11c1=this[_0x5566dc(0x144)][_0x5566dc(0x192)](_0x541ffd))!=null?_0x3f11c1:_0x53c686,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5566dc(0x158)](_0x41d8a0=>{var _0x24374d=_0x5566dc;this[_0x24374d(0x1e6)][_0x24374d(0x1f2)]({'eventID':_0x375edc[_0x24374d(0x11e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x24374d(0x13b)],'operations':{[_0x41d8a0['id']]:{'id':_0x41d8a0['id'],'params':JSON['stringify'](_0x41d8a0[_0x24374d(0x1bc)])}}}},this['_unitID']);})),_0x2f39b2[_0x5566dc(0x1ef)](_0xb53d6b);})),this[_0xb472e9(0x159)]['getInitialStates'](this[_0xb472e9(0x13b)])[_0xb472e9(0x163)](_0x5e2a3b=>this[_0xb472e9(0x1e6)][_0xb472e9(0x1f2)]({'eventID':_0x375edc['CollaborationEvent'][_0xb472e9(0x1fc)],'data':{'unitID':this['_unitID'],'operations':{[_0x5e2a3b['id']]:{'id':_0x5e2a3b['id'],'params':JSON[_0xb472e9(0x1a0)](_0x5e2a3b[_0xb472e9(0x1bc)])}}}},this['_unitID']));}[_0x379e29(0x12f)](){var _0x311aef=_0x379e29,_0x4680c2;this[_0x311aef(0x1d6)][_0x311aef(0x1ef)](_0x311aef(0x137)),(_0x4680c2=this[_0x311aef(0x1cf)])==null||_0x4680c2[_0x311aef(0x201)](),this['_commandDisposable']=null;}[_0x379e29(0x166)](){var _0x1b70ea=_0x379e29,_0x3e4a4;(_0x3e4a4=this['_commandDisposable'])==null||_0x3e4a4[_0x1b70ea(0x201)](),this[_0x1b70ea(0x1d6)][_0x1b70ea(0x1ef)](_0x1b70ea(0x122));}[_0x379e29(0x19c)](){var _0x2a263b=_0x379e29,_0x2b173f;this['_status$']['next']('idle'),(_0x2b173f=this['_commandDisposable'])==null||_0x2b173f[_0x2a263b(0x201)](),this[_0x2a263b(0x1cf)]=null;}['_stopFollowing'](){var _0x2e0e53=_0x379e29,_0x50f066;this[_0x2e0e53(0x1d6)][_0x2e0e53(0x1ef)]('not-following'),(_0x50f066=this[_0x2e0e53(0x1cf)])==null||_0x50f066[_0x2e0e53(0x201)]();}[_0x379e29(0x14a)](_0x1a02d9){var _0x4e2851=_0x379e29;if([_0x4e2851(0x1e7),_0x4e2851(0x1a7),'offline'][_0x4e2851(0x18b)](this[_0x4e2851(0x1c3)])||!_0x1a02d9[_0x4e2851(0x1f1)][_0x4e2851(0x1b3)]||_0x1a02d9['data'][_0x4e2851(0x1b3)]===this['_collabSession'][_0x4e2851(0x147)]())return;this['_status']===_0x4e2851(0x137)&&this[_0x4e2851(0x166)]();const _0x2853f0=_0x1a02d9[_0x4e2851(0x1f1)][_0x4e2851(0x1f7)];Object[_0x4e2851(0x1d2)](_0x2853f0)[_0x4e2851(0x163)](_0x261d05=>{var _0x2fd708=_0x4e2851;this[_0x2fd708(0x127)][_0x2fd708(0x117)](_0x261d05['id'],_0x261d05[_0x2fd708(0x1bc)]?JSON[_0x2fd708(0x1df)](_0x261d05[_0x2fd708(0x1bc)]):null,{'fromCollab':!0x0});});}[_0x379e29(0x140)](){var _0x254acd=_0x379e29,_0x17b62b;this[_0x254acd(0x1d6)][_0x254acd(0x1ef)](_0x254acd(0x17e)),(_0x17b62b=this[_0x254acd(0x1cf)])==null||_0x17b62b[_0x254acd(0x201)]();}[_0x379e29(0x116)](){var _0x3e9057=_0x379e29;this[_0x3e9057(0x1d6)][_0x3e9057(0x1ef)]('idle'),this[_0x3e9057(0x150)]();}},_0x1d3696[_0x379e29(0x1a4)]=_0x4ce04e([_0x5e33aa(0x2,_0x2a0f4b[_0x379e29(0x131)]),_0x5e33aa(0x3,_0x2a0f4b[_0x379e29(0x193)](_0x81b41)),_0x5e33aa(0x4,_0x2a0f4b[_0x379e29(0x134)])],_0x1d3696[_0x379e29(0x1a4)]);function _0x3e427f(){var _0x38cb0a=_0x379e29;const _0x1589fa=_0x3585d3['useDependency'](_0x1d3696[_0x38cb0a(0x18e)]),_0x226f2f=_0x3585d3['useDependency'](_0x2a0f4b[_0x38cb0a(0x1e5)]),_0x2f14ef=_0x3585d3[_0x38cb0a(0x1bb)](()=>_0x226f2f[_0x38cb0a(0x1c4)](_0x2a0f4b[_0x38cb0a(0x162)][_0x38cb0a(0x1ce)]),void 0x0,!0x1,[]),[_0x2b5b00,_0x338ff9]=_0x37cbab[_0x38cb0a(0x154)](null),[_0x42e12f,_0x5ae9ad]=_0x37cbab[_0x38cb0a(0x154)](_0xc3591b[_0x38cb0a(0x1b6)]),_0x1be25b=_0x37cbab[_0x38cb0a(0x1f5)](null);return _0x37cbab['useEffect'](()=>(_0x2f14ef&&_0x1589fa[_0x38cb0a(0x1d3)](_0x2f14ef[_0x38cb0a(0x11d)]())['then'](_0x27354c=>{var _0x23642c=_0x38cb0a;_0x338ff9(_0x27354c),_0x1be25b[_0x23642c(0x141)]=_0x27354c['status$']['subscribe'](_0x5964c1=>{_0x5ae9ad(_0x5964c1);});}),()=>{var _0x109ee1=_0x38cb0a,_0x55e603;(_0x55e603=_0x1be25b[_0x109ee1(0x141)])==null||_0x55e603[_0x109ee1(0x1d5)](),_0x1be25b[_0x109ee1(0x141)]=null;}),[_0x2f14ef,_0x1589fa]),_0x2b5b00?_0x736866['jsx'](_0x9f2c57['Dropdown'],{'align':_0x38cb0a(0x1c0),'disabled':_0x42e12f===_0xc3591b[_0x38cb0a(0x165)],'className':_0x38cb0a(0x151),'overlay':_0x736866['jsx'](_0x52920b,{'status':_0x42e12f,'coordinator':_0x2b5b00}),'children':_0x736866[_0x38cb0a(0x129)](_0x38cb0a(0x11b),{'className':_0x9f2c57[_0x38cb0a(0x170)](_0x38cb0a(0x1a9),{'univer-cursor-not-allowed':_0x42e12f===_0xc3591b[_0x38cb0a(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x42e12f!==_0xc3591b[_0x38cb0a(0x165)]}),'type':_0x38cb0a(0x11b),'children':_0x736866[_0x38cb0a(0x129)](_0x188960,{'className':_0x38cb0a(0x173)})})}):null;}function _0x52920b(_0x5d151e){var _0x53b28d=_0x379e29;const {status:_0x41ceb6,coordinator:_0xdcd17c}=_0x5d151e;switch(_0x41ceb6){case _0xc3591b['IDLE']:return _0x736866[_0x53b28d(0x129)](_0x20ced9,{'coordinator':_0xdcd17c});case _0xc3591b[_0x53b28d(0x16e)]:return _0x736866[_0x53b28d(0x129)](_0x1115ea,{'coordinator':_0xdcd17c});case _0xc3591b['NOT_FOLLOWING']:return _0x736866[_0x53b28d(0x129)](_0x24b2e7,{'coordinator':_0xdcd17c});case _0xc3591b[_0x53b28d(0x165)]:return _0x736866[_0x53b28d(0x129)](_0x2f6ede,{});case _0xc3591b['PRESENTING']:return _0x736866[_0x53b28d(0x129)](_0x53cbbf,{'coordinator':_0xdcd17c});default:return null;}}function _0x20ced9(_0x35bdd2){var _0x454c87=_0x379e29;const {coordinator:_0x17e17b}=_0x35bdd2;return _0x736866['jsxs'](_0x736866['Fragment'],{'children':[_0x736866['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x454c87(0x161)}),_0x736866[_0x454c87(0x129)](_0x9f2c57[_0x454c87(0x1fa)],{'onClick':()=>_0x17e17b[_0x454c87(0x194)](),'children':_0x454c87(0x1ad)})]});}function _0x1115ea(_0x175225){var _0x129cad=_0x379e29;const {coordinator:_0x4468cd}=_0x175225;return _0x736866['jsxs'](_0x736866['Fragment'],{'children':[_0x736866[_0x129cad(0x129)](_0x129cad(0x164),{'className':_0x129cad(0x11f),'children':_0x129cad(0x143)}),_0x736866['jsx'](_0x9f2c57[_0x129cad(0x1fa)],{'onClick':()=>_0x4468cd[_0x129cad(0x1c9)](),'children':_0x129cad(0x1b4)})]});}function _0x24b2e7(_0x1c2008){var _0x2437e5=_0x379e29;const {coordinator:_0x14e596}=_0x1c2008;return _0x736866[_0x2437e5(0x1e8)](_0x736866[_0x2437e5(0x1b0)],{'children':[_0x736866['jsx'](_0x2437e5(0x164),{'className':_0x2437e5(0x11f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x736866['jsx'](_0x9f2c57[_0x2437e5(0x1fa)],{'variant':'text','onClick':()=>_0x14e596[_0x2437e5(0x1ea)](),'children':_0x2437e5(0x1d8)})]});}function _0x53cbbf(_0x37c08a){var _0x2c8fd3=_0x379e29;const {coordinator:_0x56e32e}=_0x37c08a;return _0x736866[_0x2c8fd3(0x1e8)](_0x736866['Fragment'],{'children':[_0x736866[_0x2c8fd3(0x129)](_0x2c8fd3(0x164),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2c8fd3(0x1d1)}),_0x736866['jsx'](_0x9f2c57['Button'],{'variant':_0x2c8fd3(0x1f8),'onClick':()=>_0x56e32e[_0x2c8fd3(0x17d)](),'children':_0x2c8fd3(0x1f0)})]});}function _0x2f6ede(){var _0x48a45b=_0x379e29;return _0x736866[_0x48a45b(0x129)](_0x736866[_0x48a45b(0x1b0)],{'children':'You\x27are\x20offline.'});}var _0x372b5d=Object[_0x379e29(0x1ae)],_0x4d4884=(_0x54e941,_0x200188,_0x483846,_0x293e1c)=>{var _0x507f9f=_0x379e29;for(var _0x5957dd=_0x293e1c>0x1?void 0x0:_0x293e1c?_0x372b5d(_0x200188,_0x483846):_0x200188,_0x32eb23=_0x54e941[_0x507f9f(0x1c5)]-0x1,_0x3bb040;_0x32eb23>=0x0;_0x32eb23--)(_0x3bb040=_0x54e941[_0x32eb23])&&(_0x5957dd=_0x3bb040(_0x5957dd)||_0x5957dd);return _0x5957dd;},_0x151859=(_0x147ee0,_0x1a931a)=>(_0x3cca77,_0x4d5333)=>_0x1a931a(_0x3cca77,_0x4d5333,_0x147ee0);_0x1d3696[_0x379e29(0x139)]=class extends _0x2a0f4b[_0x379e29(0x184)]{constructor(_0x354923,_0x9923b7){var _0x3a9ee5=_0x379e29;super(),this[_0x3a9ee5(0x1fe)]=_0x354923,this[_0x3a9ee5(0x1b2)]=_0x9923b7,this[_0x3a9ee5(0x18c)]();}[_0x379e29(0x18c)](){var _0x285d15=_0x379e29;this[_0x285d15(0x1ee)](this[_0x285d15(0x1b2)][_0x285d15(0x111)](_0x3585d3[_0x285d15(0x16b)]['HEADER_MENU'],()=>_0x3585d3[_0x285d15(0x187)](_0x3e427f,this['_injector'])));}},_0x1d3696[_0x379e29(0x139)]=_0x4d4884([_0x151859(0x0,_0x2a0f4b[_0x379e29(0x193)](_0x2a0f4b[_0x379e29(0x1d0)])),_0x151859(0x1,_0x3585d3[_0x379e29(0x125)])],_0x1d3696[_0x379e29(0x139)]);const _0x32364b=_0x379e29(0x16c),_0x129305={};var _0x2a68a1=Object[_0x379e29(0x1ae)],_0x4a7acd=(_0x3c96d3,_0x2740b2,_0x59635b,_0x291ab1)=>{for(var _0x43c992=_0x291ab1>0x1?void 0x0:_0x291ab1?_0x2a68a1(_0x2740b2,_0x59635b):_0x2740b2,_0x2169d0=_0x3c96d3['length']-0x1,_0x4b6919;_0x2169d0>=0x0;_0x2169d0--)(_0x4b6919=_0x3c96d3[_0x2169d0])&&(_0x43c992=_0x4b6919(_0x43c992)||_0x43c992);return _0x43c992;},_0xe64a6d=(_0x442dce,_0x40035b)=>(_0x2bfbff,_0x2a47d0)=>_0x40035b(_0x2bfbff,_0x2a47d0,_0x442dce);let _0x2cfc16=class extends _0x2a0f4b[_0x379e29(0x184)]{constructor(_0x93f915){var _0x13c756=_0x379e29;super(),this[_0x13c756(0x159)]=_0x93f915,this[_0x13c756(0x1d9)]();}[_0x379e29(0x1d9)](){var _0x4ed31b=_0x379e29;[_0x470961[_0x4ed31b(0x1bf)]['id'],_0x470961['SetScrollOperation']['id'],_0x379a98[_0x4ed31b(0x14e)]['id']][_0x4ed31b(0x163)](_0x1baae0=>{var _0x561fd8=_0x4ed31b;this[_0x561fd8(0x1ee)](this[_0x561fd8(0x159)][_0x561fd8(0x126)](_0x1baae0));});}};_0x2cfc16=_0x4a7acd([_0xe64a6d(0x0,_0x2a0f4b[_0x379e29(0x193)](_0x81b41))],_0x2cfc16);var _0x1c053c=Object[_0x379e29(0x14d)],_0x20df3b=Object[_0x379e29(0x1ae)],_0x5e4371=(_0x30790f,_0x7aac1d,_0x13dc61)=>_0x7aac1d in _0x30790f?_0x1c053c(_0x30790f,_0x7aac1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13dc61}):_0x30790f[_0x7aac1d]=_0x13dc61,_0x2c1956=(_0x295368,_0x212deb,_0x499407,_0x125036)=>{for(var _0x24539a=_0x125036>0x1?void 0x0:_0x125036?_0x20df3b(_0x212deb,_0x499407):_0x212deb,_0x28dcf0=_0x295368['length']-0x1,_0x213fbe;_0x28dcf0>=0x0;_0x28dcf0--)(_0x213fbe=_0x295368[_0x28dcf0])&&(_0x24539a=_0x213fbe(_0x24539a)||_0x24539a);return _0x24539a;},_0x4543cd=(_0x3c36f5,_0x260be8)=>(_0x50bbc5,_0x251554)=>_0x260be8(_0x50bbc5,_0x251554,_0x3c36f5),_0x1cb48a=(_0xc11ad0,_0x10bab2,_0x24a925)=>_0x5e4371(_0xc11ad0,typeof _0x10bab2!='symbol'?_0x10bab2+'':_0x10bab2,_0x24a925);const _0x1ac66a=_0x379e29(0x180);_0x1d3696[_0x379e29(0x11a)]=class extends _0x2a0f4b[_0x379e29(0x199)]{constructor(_0x26cef0=_0x129305,_0x3726e4,_0x323d9b){var _0x441c11=_0x379e29;super(),this[_0x441c11(0x1f6)]=_0x26cef0,this[_0x441c11(0x1fe)]=_0x3726e4,this['_configService']=_0x323d9b;const {..._0x339d9d}=_0x2a0f4b['merge']({},_0x129305,this[_0x441c11(0x1f6)]);this['_configService']['setConfig'](_0x32364b,_0x339d9d);}[_0x379e29(0x189)](){var _0x578f80=_0x379e29;_0x2a0f4b['registerDependencies'](this[_0x578f80(0x1fe)],_0x2a0f4b[_0x578f80(0x175)]([[_0x81b41],[_0x1d3696[_0x578f80(0x18e)]],[_0x2cfc16],[_0x1d3696['DesktopLiveShareController']]],this[_0x578f80(0x1f6)][_0x578f80(0x1b1)])),_0x2a0f4b[_0x578f80(0x152)](this[_0x578f80(0x1fe)],[[_0x2cfc16]]);}[_0x379e29(0x112)](){var _0x5f4da1=_0x379e29;_0x2a0f4b[_0x5f4da1(0x152)](this[_0x5f4da1(0x1fe)],[[_0x1d3696[_0x5f4da1(0x139)]]]);}},_0x1cb48a(_0x1d3696['UniverLiveSharePlugin'],'type',_0x2a0f4b[_0x379e29(0x162)]['UNIVER_UNKNOWN']),_0x1cb48a(_0x1d3696[_0x379e29(0x11a)],_0x379e29(0x1c1),_0x1ac66a),_0x1d3696[_0x379e29(0x11a)]=_0x2c1956([_0x2a0f4b['DependentOn'](_0x1c2c35[_0x379e29(0x17a)]),_0x4543cd(0x1,_0x2a0f4b[_0x379e29(0x193)](_0x2a0f4b['Injector'])),_0x4543cd(0x2,_0x2a0f4b[_0x379e29(0x131)])],_0x1d3696[_0x379e29(0x11a)]),_0x1d3696[_0x379e29(0x181)]=_0x3e427f,_0x1d3696[_0x379e29(0x1aa)]=_0x81b41,_0x1d3696[_0x379e29(0x138)]=_0xc3591b,Object[_0x379e29(0x14d)](_0x1d3696,Symbol['toStringTag'],{'value':_0x379e29(0x172)});}));function _0x5ce8(){var _0x3b74ae=['presenter','Stop\x20following','@univerjs-pro/collaboration','IDLE','apply','UniverProLiveShare','react/jsx-runtime','7yFSQDZ','useObservable','params','_collabSessionService','473718aYXrue','SetZoomRatioOperation','end','pluginName','@univerjs-pro/collaboration-client','_status','getCurrentTypeOfUnit$','length','_handleNewHost','random','DisposableCollection','stopFollowing','exports','icon','univerjs-icon\x20univerjs-icon-','2421132jIFHjT','UNIVER_SHEET','_commandDisposable','Injector','You\x27re\x20presenting\x20the\x20document','values','getLiveShareCoordinator','takeUntil','unsubscribe','_status$','UniverProCollaboration','Start\x20following','_init','defs','LiveShareIcon','url(#$1','3335505CNuLjC','1803102KWDtUy','parse','has','memberID','set','type','currentColor','IUniverInstanceService','_collabSession','presenting','jsxs','PRESENTING','startFollowing','React','UniverUi','onCommandExecuted','disposeWithMe','next','Stop\x20presenting','data','send','UniverSheetsUi','NOT_FOLLOWING','useRef','_config','operations','default','tag','Button','getTypeOfUnitAdded$','LIVESHARE_OPERATION','delete','_injector','map','@univerjs/ui','dispose','registerComponent','onRendered','_handleNewChangeSets','ONLINE','SessionStatus','_handleOnline','executeCommand','react','_startLiveShareCoordinator','UniverLiveSharePlugin','button','_stopFollowing','getUnitId','CollaborationEvent','univer-mb-3\x20univer-w-full\x20univer-text-sm','colorChannel1','get','following','_presenter','path','IUIPartsService','registerSharedOperation','_commandService','InsertSheetMutation','jsx','UniverProCollaborationClient','operators','entries','_startPresenting','@univerjs/sheets','_stopPresenting','_reporters','IConfigService','event$','10BnxWBr','ICommandService','OPERATION','3292192kPmPbS','idle','LiveShareStatus','DesktopLiveShareController','UniverCore','_unitID','from','evenodd','displayName','getOwnPropertySymbols','_handleOffline','current','unitId','You\x27re\x20following\x20the\x20presenter','_configService','forwardRef','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','getMemberID','rxjs/operators','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','_handleOperation','4FtbpaD','fill','defineProperty','SetWorksheetActiveOperation','rxjs','_fetchOperations','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','touchDependencies','mask','useState','5316669KfqEIA','UniverDesign','RxDisposable','subscribe','_liveShareService','getTypeOfUnitDisposed$','asObservable','propertyIsEnumerable','hasOwnProperty','xlink:href','defIds','shouldShareOperation','Present\x20this\x20document','UniverInstanceType','forEach','div','OFFLINE','_startFollowing','NEW_CHANGESETS','UniverIcon','string','createElement','BuiltInUIPart','live-share.config','idSuffix','FOLLOWING','sheet','clsx','_sharedOperations','Module','univer-size-4','dispose$','mergeOverrideWithDependencies','amd','CollaborationSessionService','LIVESHARE_REQUEST_HOST','init','UniverCollaborationClientPlugin','assign','pipe','stopPresenting','offline','complete','UNIVER_LIVE_SHARE_PLUGIN','LiveShare','@univerjs/core','use','Disposable','add','reverse','connectInjector','className','onStarting','_entities','includes','_mountLiveShare','replace','LiveShareController','getValue','indexOf','parseProtocolChangeset','getConfig','Inject','tryStartPresenting','call','_handleTerminate','694596ciePpV','toDisposable','Plugin','LIVESHARE_TERMINATE','function','_beIdle','0\x200\x2017\x2017','substring','LIVESHARE_NEW_HOST','stringify','attrs','none','symbol','LiveShareCoordinator','sessionStatus$','registerInitialStateReporter','not-following','1em','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareService','_univerInstanceService','concat','Start','getOwnPropertyDescriptor','prototype','Fragment','override','_uiPartsService'];_0x5ce8=function(){return _0x3b74ae;};return _0x5ce8();}
|
|
1
|
+
function _0x1f1e(_0x4ac752,_0x5077ae){var _0xb597d7=_0xb597();return _0x1f1e=function(_0x1f1ecb,_0x45ec1f){_0x1f1ecb=_0x1f1ecb-0x66;var _0x1a9345=_0xb597d7[_0x1f1ecb];return _0x1a9345;},_0x1f1e(_0x4ac752,_0x5077ae);}(function(_0x3c7570,_0x495703){var _0xe737e8=_0x1f1e,_0x36394a=_0x3c7570();while(!![]){try{var _0x2d7cda=parseInt(_0xe737e8(0x6a))/0x1*(-parseInt(_0xe737e8(0xf2))/0x2)+-parseInt(_0xe737e8(0xe6))/0x3*(parseInt(_0xe737e8(0xe2))/0x4)+-parseInt(_0xe737e8(0x83))/0x5+parseInt(_0xe737e8(0x100))/0x6*(parseInt(_0xe737e8(0xc4))/0x7)+parseInt(_0xe737e8(0x67))/0x8*(parseInt(_0xe737e8(0x11f))/0x9)+parseInt(_0xe737e8(0x77))/0xa*(-parseInt(_0xe737e8(0xbb))/0xb)+parseInt(_0xe737e8(0x101))/0xc;if(_0x2d7cda===_0x495703)break;else _0x36394a['push'](_0x36394a['shift']());}catch(_0x4b5357){_0x36394a['push'](_0x36394a['shift']());}}}(_0xb597,0xc7054),function(_0x3c1f62,_0x3fcc38){var _0x31505a=_0x1f1e;typeof exports==_0x31505a(0x13b)&&typeof module<'u'?_0x3fcc38(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==_0x31505a(0xc6)&&define[_0x31505a(0x6d)]?define([_0x31505a(0x14a),_0x31505a(0x71),'@univerjs/ui',_0x31505a(0x145),_0x31505a(0xbd),_0x31505a(0xe5),'@univerjs-pro/collaboration',_0x31505a(0xae),'@univerjs/sheets',_0x31505a(0xa4),_0x31505a(0x120),_0x31505a(0x8c)],_0x3fcc38):(_0x3c1f62=typeof globalThis<'u'?globalThis:_0x3c1f62||self,_0x3fcc38(_0x3c1f62[_0x31505a(0x94)]={},_0x3c1f62['UniverCore'],_0x3c1f62['UniverUi'],_0x3c1f62['React'],_0x3c1f62[_0x31505a(0xed)],_0x3c1f62['React'],_0x3c1f62[_0x31505a(0x150)],_0x3c1f62[_0x31505a(0xd1)],_0x3c1f62['UniverSheets'],_0x3c1f62[_0x31505a(0xa4)],_0x3c1f62['rxjs'][_0x31505a(0xa0)],_0x3c1f62[_0x31505a(0xe7)]));}(this,function(_0x748e8c,_0x34b5fa,_0x1cb809,_0x37f759,_0x5d32a2,_0x729318,_0x1e7662,_0x18d6eb,_0x33d0a0,_0x417c3a,_0x12ef86,_0x5d5c04){'use strict';var _0x38da7e=_0x1f1e;var _0x3e6f47=Object[_0x38da7e(0xcd)],_0x4cf178=(_0x497f5d,_0x2d9030,_0x139f16)=>_0x2d9030 in _0x497f5d?_0x3e6f47(_0x497f5d,_0x2d9030,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x139f16}):_0x497f5d[_0x2d9030]=_0x139f16,_0x2e8381=(_0x1a822e,_0x3b84f3,_0xe6dd01)=>_0x4cf178(_0x1a822e,typeof _0x3b84f3!='symbol'?_0x3b84f3+'':_0x3b84f3,_0xe6dd01),_0x19bfe6=function(){var _0x4c27a7=_0x38da7e;return _0x19bfe6=Object[_0x4c27a7(0xa2)]||function(_0x30aed8){var _0x56d600=_0x4c27a7;for(var _0x2ce52c,_0x221cc4=0x1,_0x34354b=arguments[_0x56d600(0xf1)];_0x221cc4<_0x34354b;_0x221cc4++){_0x2ce52c=arguments[_0x221cc4];for(var _0x21bd31 in _0x2ce52c)Object[_0x56d600(0xce)][_0x56d600(0x130)][_0x56d600(0xb9)](_0x2ce52c,_0x21bd31)&&(_0x30aed8[_0x21bd31]=_0x2ce52c[_0x21bd31]);}return _0x30aed8;},_0x19bfe6['apply'](this,arguments);},_0xf7c091=function(_0x161392,_0x92a388){var _0x56fe99=_0x38da7e,_0x37f9e6={};for(var _0x212a4a in _0x161392)Object[_0x56fe99(0xce)][_0x56fe99(0x130)][_0x56fe99(0xb9)](_0x161392,_0x212a4a)&&_0x92a388[_0x56fe99(0x69)](_0x212a4a)<0x0&&(_0x37f9e6[_0x212a4a]=_0x161392[_0x212a4a]);if(_0x161392!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x20577b=0x0,_0x212a4a=Object[_0x56fe99(0xc9)](_0x161392);_0x20577b<_0x212a4a['length'];_0x20577b++)_0x92a388['indexOf'](_0x212a4a[_0x20577b])<0x0&&Object[_0x56fe99(0xce)][_0x56fe99(0x14d)][_0x56fe99(0xb9)](_0x161392,_0x212a4a[_0x20577b])&&(_0x37f9e6[_0x212a4a[_0x20577b]]=_0x161392[_0x212a4a[_0x20577b]]);}return _0x37f9e6;},_0x33bcb1=_0x729318['forwardRef'](function(_0x211046,_0x260bed){var _0x21523d=_0x38da7e,_0x54b7c6=_0x211046['icon'],_0xe9df66=_0x211046['id'],_0x788bfd=_0x211046[_0x21523d(0xa6)],_0x1c3e15=_0x211046[_0x21523d(0x98)],_0x264835=_0xf7c091(_0x211046,[_0x21523d(0x14c),'id','className',_0x21523d(0x98)]),_0x4759c3=_0x21523d(0x7c)[_0x21523d(0xec)](_0xe9df66,'\x20')[_0x21523d(0xec)](_0x788bfd||'')['trim'](),_0x178580=_0x729318[_0x21523d(0x113)]('_'[_0x21523d(0xec)](_0x20fb95()));return _0x4e3d5d(_0x54b7c6,''[_0x21523d(0xec)](_0xe9df66),{'defIds':_0x54b7c6['defIds'],'idSuffix':_0x178580['current']},_0x19bfe6({'ref':_0x260bed,'className':_0x4759c3},_0x264835),_0x1c3e15);});function _0x4e3d5d(_0x5dbc0f,_0x1139bb,_0x37dec1,_0x5ce40d,_0x47f592){var _0x2cb36e=_0x38da7e;return _0x729318[_0x2cb36e(0xe8)](_0x5dbc0f['tag'],_0x19bfe6(_0x19bfe6({'key':_0x1139bb},_0x5bb5b7(_0x5dbc0f,_0x37dec1,_0x47f592)),_0x5ce40d),(_0x5d5ee9(_0x5dbc0f,_0x37dec1)['children']||[])['map'](function(_0x2dd7ae,_0x5b9a7){var _0x4a56cf=_0x2cb36e;return _0x4e3d5d(_0x2dd7ae,''[_0x4a56cf(0xec)](_0x1139bb,'-')[_0x4a56cf(0xec)](_0x5dbc0f[_0x4a56cf(0x8f)],'-')[_0x4a56cf(0xec)](_0x5b9a7),_0x37dec1,void 0x0,_0x47f592);}));}function _0x5bb5b7(_0x4c83bc,_0x1ae8d,_0x491b14){var _0x48f544=_0x38da7e,_0xdf17d4=_0x19bfe6({},_0x4c83bc['attrs']);_0x491b14!=null&&_0x491b14[_0x48f544(0xdc)]&&_0xdf17d4[_0x48f544(0x72)]===_0x48f544(0xdc)&&(_0xdf17d4[_0x48f544(0x72)]=_0x491b14['colorChannel1']),_0x4c83bc[_0x48f544(0x8f)]==='mask'&&_0xdf17d4['id']&&(_0xdf17d4['id']=_0xdf17d4['id']+_0x1ae8d[_0x48f544(0xa1)]),Object['entries'](_0xdf17d4)['forEach'](function(_0x509583){var _0x3e2325=_0x48f544,_0x19e39c=_0x509583[0x0],_0x188fa4=_0x509583[0x1];_0x19e39c===_0x3e2325(0xc0)&&typeof _0x188fa4==_0x3e2325(0x117)&&(_0xdf17d4[_0x19e39c]=_0x188fa4[_0x3e2325(0x8d)](/url\(#(.*)\)/,_0x3e2325(0x9d)[_0x3e2325(0xec)](_0x1ae8d[_0x3e2325(0xa1)],')')));});var _0x17b392=_0x1ae8d[_0x48f544(0x10e)];return!_0x17b392||_0x17b392['length']===0x0||(_0x4c83bc[_0x48f544(0x8f)]===_0x48f544(0xf3)&&_0xdf17d4['xlink:href']&&(_0xdf17d4[_0x48f544(0x140)]=_0xdf17d4[_0x48f544(0x140)]+_0x1ae8d[_0x48f544(0xa1)]),Object[_0x48f544(0xfd)](_0xdf17d4)[_0x48f544(0xe0)](function(_0x47a771){var _0x4a8c12=_0x48f544,_0x25c920=_0x47a771[0x0],_0xf08b22=_0x47a771[0x1];typeof _0xf08b22==_0x4a8c12(0x117)&&(_0xdf17d4[_0x25c920]=_0xf08b22[_0x4a8c12(0x8d)](/url\(#(.*)\)/,_0x4a8c12(0x9d)['concat'](_0x1ae8d['idSuffix'],')')));})),_0xdf17d4;}function _0x5d5ee9(_0x34dc79,_0x514e43){var _0x53097a=_0x38da7e,_0x1eb64b,_0x56d64a=_0x514e43[_0x53097a(0x10e)];return!_0x56d64a||_0x56d64a[_0x53097a(0xf1)]===0x0?_0x34dc79:_0x34dc79[_0x53097a(0x8f)]==='defs'&&(!((_0x1eb64b=_0x34dc79[_0x53097a(0x115)])===null||_0x1eb64b===void 0x0)&&_0x1eb64b[_0x53097a(0xf1)])?_0x19bfe6(_0x19bfe6({},_0x34dc79),{'children':_0x34dc79[_0x53097a(0x115)]['map'](function(_0xe3fc29){var _0x4d34e1=_0x53097a;return typeof _0xe3fc29[_0x4d34e1(0x87)]['id']=='string'&&_0x56d64a&&_0x56d64a[_0x4d34e1(0x97)](_0xe3fc29['attrs']['id'])?_0x19bfe6(_0x19bfe6({},_0xe3fc29),{'attrs':_0x19bfe6(_0x19bfe6({},_0xe3fc29['attrs']),{'id':_0xe3fc29['attrs']['id']+_0x514e43[_0x4d34e1(0xa1)]})}):_0xe3fc29;})}):_0x34dc79;}function _0x20fb95(){var _0x466cd1=_0x38da7e;return Math[_0x466cd1(0xcb)]()[_0x466cd1(0x155)](0x24)['substring'](0x2,0x8);}_0x33bcb1[_0x38da7e(0xba)]=_0x38da7e(0x112);var _0x9e9d54={'tag':'svg','attrs':{'xmlns':_0x38da7e(0x12a),'fill':_0x38da7e(0x13c),'viewBox':_0x38da7e(0xa8),'width':'1em','height':_0x38da7e(0x103)},'children':[{'tag':_0x38da7e(0x139),'attrs':{'fill':_0x38da7e(0x12f),'d':_0x38da7e(0xef)}},{'tag':'path','attrs':{'fill':_0x38da7e(0x12f),'d':_0x38da7e(0x111),'fillRule':_0x38da7e(0x7d),'clipRule':'evenodd'}}]},_0x5f1132=_0x729318[_0x38da7e(0x13a)](function(_0xd57d0c,_0x5c2e2e){var _0x38599d=_0x38da7e;return _0x729318[_0x38599d(0xe8)](_0x33bcb1,Object[_0x38599d(0xa2)]({},_0xd57d0c,{'id':'live-share-icon','ref':_0x5c2e2e,'icon':_0x9e9d54}));});_0x5f1132[_0x38da7e(0xba)]='LiveShareIcon';class _0x2de924 extends _0x34b5fa[_0x38da7e(0xc7)]{constructor(){var _0x1276ea=_0x38da7e;super(...arguments),_0x2e8381(this,'_sharedOperations',new Set()),_0x2e8381(this,_0x1276ea(0xd2),new Set());}[_0x38da7e(0x110)](_0x232a02){var _0x52f3e1=_0x38da7e;return this[_0x52f3e1(0xb5)][_0x52f3e1(0x152)](_0x232a02),_0x34b5fa[_0x52f3e1(0x82)](()=>this[_0x52f3e1(0xb5)]['delete'](_0x232a02));}[_0x38da7e(0x128)](_0x46338e){var _0x2b58b2=_0x38da7e;return this[_0x2b58b2(0xd2)][_0x2b58b2(0x152)](_0x46338e),_0x34b5fa[_0x2b58b2(0x82)](()=>this['_reporters'][_0x2b58b2(0x109)](_0x46338e));}[_0x38da7e(0x90)](_0x30c5f6){var _0x2283a0=_0x38da7e;return this[_0x2283a0(0xb5)]['has'](_0x30c5f6);}[_0x38da7e(0x11e)](_0x2f9825){var _0x19f1f2=_0x38da7e;return Array[_0x19f1f2(0x14f)](this[_0x19f1f2(0xd2)])[_0x19f1f2(0x7b)](_0x594073=>_0x594073(_0x2f9825));}}var _0x8cb43d=Object['getOwnPropertyDescriptor'],_0x242204=(_0x5db9b9,_0x5a41ed,_0x279c7a,_0x19dc32)=>{var _0xb2a63f=_0x38da7e;for(var _0x1c13be=_0x19dc32>0x1?void 0x0:_0x19dc32?_0x8cb43d(_0x5a41ed,_0x279c7a):_0x5a41ed,_0x550b97=_0x5db9b9[_0xb2a63f(0xf1)]-0x1,_0x337416;_0x550b97>=0x0;_0x550b97--)(_0x337416=_0x5db9b9[_0x550b97])&&(_0x1c13be=_0x337416(_0x1c13be)||_0x1c13be);return _0x1c13be;},_0x672fcc=(_0x30c797,_0xe548b1)=>(_0x16782d,_0x326619)=>_0xe548b1(_0x16782d,_0x326619,_0x30c797);_0x748e8c[_0x38da7e(0x13f)]=class extends _0x34b5fa[_0x38da7e(0x122)]{constructor(_0x2dfa19,_0x1146cc,_0x2067a9){var _0x52f24c=_0x38da7e;super(),_0x2e8381(this,_0x52f24c(0x10f),new Map()),(this[_0x52f24c(0x9b)]=_0x2dfa19,this[_0x52f24c(0x96)]=_0x1146cc,this['_collabSessionService']=_0x2067a9,this[_0x52f24c(0x13d)]());}async[_0x38da7e(0x153)](_0x16df08){var _0x53eaf2=_0x38da7e;return this[_0x53eaf2(0x10f)][_0x53eaf2(0x76)](_0x16df08)||await this[_0x53eaf2(0x92)](_0x16df08),this['_entities'][_0x53eaf2(0x108)](_0x16df08);}[_0x38da7e(0x13d)](){var _0x3fdf03=_0x38da7e;this[_0x3fdf03(0x9b)][_0x3fdf03(0x11d)](_0x34b5fa[_0x3fdf03(0xf7)][_0x3fdf03(0x85)])[_0x3fdf03(0x156)](_0x12ef86[_0x3fdf03(0x8e)](this['dispose$']))[_0x3fdf03(0x127)](async _0xa8a4c8=>{var _0x3c961e=_0x3fdf03;const _0x20e827=_0xa8a4c8[_0x3c961e(0x7f)]();this[_0x3c961e(0x10f)][_0x3c961e(0x76)](_0x20e827)||this[_0x3c961e(0x92)](_0x20e827);}),this[_0x3fdf03(0x9b)]['getTypeOfUnitDisposed$'](_0x34b5fa[_0x3fdf03(0xf7)]['UNIVER_SHEET'])[_0x3fdf03(0x156)](_0x12ef86['takeUntil'](this[_0x3fdf03(0xb8)]))[_0x3fdf03(0x127)](_0x1b14c4=>{var _0x443b60=_0x3fdf03;const _0x8d8e5e=_0x1b14c4['getUnitId'](),_0x3dad8c=this[_0x443b60(0x10f)][_0x443b60(0x108)](_0x8d8e5e);_0x3dad8c==null||_0x3dad8c['dispose']();});}async[_0x38da7e(0x92)](_0x19bd93){var _0x2290ca=_0x38da7e;const _0x3e3602=await this['_collabSessionService'][_0x2290ca(0x86)](_0x19bd93),_0x281da0=this[_0x2290ca(0x96)]['createInstance'](_0x748e8c[_0x2290ca(0x135)],_0x19bd93,_0x3e3602);return _0x281da0[_0x2290ca(0x78)](),this[_0x2290ca(0x10f)][_0x2290ca(0xcc)](_0x19bd93,_0x281da0),_0x281da0;}},_0x748e8c['LiveShareController']=_0x242204([_0x672fcc(0x0,_0x34b5fa['IUniverInstanceService']),_0x672fcc(0x1,_0x34b5fa[_0x38da7e(0x129)](_0x34b5fa[_0x38da7e(0xf5)])),_0x672fcc(0x2,_0x34b5fa[_0x38da7e(0x129)](_0x18d6eb[_0x38da7e(0x138)]))],_0x748e8c[_0x38da7e(0x13f)]);var _0x520eb2=(_0x5f498e=>(_0x5f498e['OFFLINE']=_0x38da7e(0x123),_0x5f498e[_0x38da7e(0x149)]=_0x38da7e(0x125),_0x5f498e[_0x38da7e(0xfa)]=_0x38da7e(0x142),_0x5f498e[_0x38da7e(0xb7)]=_0x38da7e(0xd6),_0x5f498e['PRESENTING']='presenting',_0x5f498e))(_0x520eb2||{});const _0xd311b9='SAME_OPERATION_SHARE_INTERVAL',_0x5da49c=0xc8;_0x748e8c[_0x38da7e(0x135)]=class extends _0x34b5fa[_0x38da7e(0x122)]{constructor(_0x2e68b6,_0x3df588,_0x5ed232,_0x331bae,_0x5131c4){var _0x193643=_0x38da7e;super(),_0x2e8381(this,_0x193643(0xb1),new _0x417c3a['BehaviorSubject'](_0x193643(0x125))),_0x2e8381(this,'status$',this[_0x193643(0xb1)][_0x193643(0xa7)]()),_0x2e8381(this,_0x193643(0x13d),!0x1),_0x2e8381(this,_0x193643(0xf8),null),_0x2e8381(this,_0x193643(0xf0),null),(this[_0x193643(0x7e)]=_0x2e68b6,this[_0x193643(0x151)]=_0x3df588,this['_configService']=_0x5ed232,this['_liveShareService']=_0x331bae,this['_commandService']=_0x5131c4);}get['_status'](){var _0xca394c=_0x38da7e;return this[_0xca394c(0xb1)][_0xca394c(0x12c)]();}[_0x38da7e(0xd5)](){var _0x4fc61b=_0x38da7e,_0x27ca7f;(_0x27ca7f=this[_0x4fc61b(0xf8)])==null||_0x27ca7f[_0x4fc61b(0xd5)](),this[_0x4fc61b(0xb1)][_0x4fc61b(0xe3)](_0x4fc61b(0x125)),this[_0x4fc61b(0xb1)]['complete']();}[_0x38da7e(0x78)](){var _0x1966c9=_0x38da7e;this['_init']||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x12ef86[_0x1966c9(0x8e)](this[_0x1966c9(0xb8)]))['subscribe'](_0x4ef2f2=>{var _0x18646c=_0x1966c9;switch(_0x4ef2f2){case _0x18d6eb[_0x18646c(0xc1)][_0x18646c(0xde)]:this['_handleOffline']();break;case _0x18d6eb['SessionStatus'][_0x18646c(0x89)]:this[_0x18646c(0x84)]();break;}}),this[_0x1966c9(0x151)]['event$'][_0x1966c9(0x156)](_0x12ef86[_0x1966c9(0x8e)](this['dispose$']))[_0x1966c9(0x127)](_0x77500f=>{var _0x333330=_0x1966c9;const {eventID:_0x1305cc}=_0x77500f;switch(_0x1305cc){case _0x1e7662[_0x333330(0x95)][_0x333330(0xd8)]:this[_0x333330(0x121)](_0x77500f);break;case _0x1e7662[_0x333330(0x95)][_0x333330(0x104)]:this[_0x333330(0xaf)](_0x77500f);break;case _0x1e7662[_0x333330(0x95)][_0x333330(0x102)]:this[_0x333330(0x12d)]();break;case _0x1e7662[_0x333330(0x95)][_0x333330(0xdf)]:this[_0x333330(0x126)](_0x77500f);break;}}));}[_0x38da7e(0x6b)](){var _0x51d2d4=_0x38da7e;this[_0x51d2d4(0x151)]['send']({'eventID':_0x1e7662[_0x51d2d4(0x95)][_0x51d2d4(0x14e)],'data':{'unitID':this[_0x51d2d4(0x7e)],'userID':this['_collabSession']['getMemberID']()}},this[_0x51d2d4(0x7e)]);}['stopPresenting'](){var _0xd5402e=_0x38da7e;this[_0xd5402e(0xa5)]===_0xd5402e(0x12e)&&(this[_0xd5402e(0xb1)][_0xd5402e(0xe3)](_0xd5402e(0x125)),this[_0xd5402e(0x151)][_0xd5402e(0x66)]({'eventID':_0x1e7662[_0xd5402e(0x95)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xd5402e(0x7e)]}},this['_unitID']));}[_0x38da7e(0x99)](){var _0x37c07b=_0x38da7e;this[_0x37c07b(0xa5)]===_0x37c07b(0xd6)&&(this[_0x37c07b(0xb1)][_0x37c07b(0xe3)](_0x37c07b(0x142)),this[_0x37c07b(0x137)]());}[_0x38da7e(0xbc)](){var _0x51f419=_0x38da7e;this[_0x51f419(0xa5)]===_0x51f419(0x142)&&this[_0x51f419(0x80)]();}[_0x38da7e(0x121)](_0x4c7f0f){var _0x3d60c5=_0x38da7e;const {presenter:_0x4618b0}=_0x4c7f0f[_0x3d60c5(0xb3)],_0x4575ae=this[_0x3d60c5(0x151)]['getMemberID']();this[_0x3d60c5(0xf0)]=_0x4618b0,_0x4618b0===_0x4575ae?(this[_0x3d60c5(0x80)](),this['_startPresenting']()):this['_status']!==_0x3d60c5(0xd6)&&(this[_0x3d60c5(0x158)](),this['_startFollowing']());}[_0x38da7e(0xda)](){var _0x6971f0=_0x38da7e;const _0x1b04df={'eventID':_0x1e7662['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x6971f0(0x151)]['send'](_0x1b04df,this[_0x6971f0(0x7e)]);}[_0x38da7e(0x12d)](){var _0x49e006=_0x38da7e;this['_presenter']=null,this[_0x49e006(0xa5)]!==_0x49e006(0x12e)&&this[_0x49e006(0xfc)]();}[_0x38da7e(0x126)](_0x357d22){var _0x4c5fda=_0x38da7e;if(this[_0x4c5fda(0xa5)]==='following'&&this[_0x4c5fda(0xf0)]===_0x357d22[_0x4c5fda(0xb3)][_0x4c5fda(0x88)]){const _0xec9fe=_0x1e7662['parseProtocolChangeset'](_0x357d22[_0x4c5fda(0xb3)])['mutations'][_0x4c5fda(0xdb)]()[_0x4c5fda(0x7a)](_0x43ae21=>_0x43ae21['id']===_0x33d0a0[_0x4c5fda(0xd0)]['id']);if(_0xec9fe){const _0x471a63=_0xec9fe[_0x4c5fda(0xad)][_0x4c5fda(0x91)],_0x19c9d5=_0xec9fe[_0x4c5fda(0xad)][_0x4c5fda(0x106)]['id'];setTimeout(()=>{var _0xaf2766=_0x4c5fda;this[_0xaf2766(0xfe)][_0xaf2766(0x14b)](_0x33d0a0[_0xaf2766(0xd3)]['id'],{'unitId':_0x471a63,'subUnitId':_0x19c9d5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x327ac2=_0x38da7e;this[_0x327ac2(0xb1)]['next'](_0x327ac2(0x12e));const _0x23a9af=new Map(),_0x17a741=this[_0x327ac2(0xf8)]=new _0x34b5fa[(_0x327ac2(0xaa))]();_0x17a741['add'](_0x34b5fa[_0x327ac2(0x82)](()=>{var _0x2e4a83=_0x327ac2;_0x23a9af[_0x2e4a83(0xe0)](_0x463373=>_0x463373[_0x2e4a83(0x131)]()),_0x23a9af[_0x2e4a83(0x8b)]();})),_0x17a741['add'](this[_0x327ac2(0xfe)][_0x327ac2(0x9f)](_0x1a73a3=>{var _0x12903a=_0x327ac2,_0x302987;if(_0x1a73a3[_0x12903a(0xca)]!==_0x34b5fa[_0x12903a(0xf4)][_0x12903a(0x105)]||!this[_0x12903a(0x119)][_0x12903a(0x90)](_0x1a73a3['id']))return;const {id:_0x4edb80}=_0x1a73a3;let _0x2a66e8;_0x23a9af[_0x12903a(0x76)](_0x4edb80)?_0x2a66e8=_0x23a9af[_0x12903a(0x108)](_0x4edb80):(_0x2a66e8=new _0x417c3a[(_0x12903a(0xc3))](),_0x23a9af['set'](_0x4edb80,_0x2a66e8),_0x2a66e8[_0x12903a(0x156)](_0x12ef86[_0x12903a(0xdd)]((_0x302987=this[_0x12903a(0x6c)][_0x12903a(0x11c)](_0xd311b9))!=null?_0x302987:_0x5da49c,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x487dcb=>{var _0x3e5311=_0x12903a;this[_0x3e5311(0x151)]['send']({'eventID':_0x1e7662['CollaborationEvent'][_0x3e5311(0x104)],'data':{'unitID':this['_unitID'],'operations':{[_0x487dcb['id']]:{'id':_0x487dcb['id'],'params':JSON[_0x3e5311(0x124)](_0x487dcb[_0x3e5311(0xad)])}}}},this['_unitID']);})),_0x2a66e8[_0x12903a(0xe3)](_0x1a73a3);})),this[_0x327ac2(0x119)][_0x327ac2(0x11e)](this[_0x327ac2(0x7e)])[_0x327ac2(0xe0)](_0x246011=>this['_collabSession'][_0x327ac2(0x66)]({'eventID':_0x1e7662[_0x327ac2(0x95)][_0x327ac2(0x104)],'data':{'unitID':this[_0x327ac2(0x7e)],'operations':{[_0x246011['id']]:{'id':_0x246011['id'],'params':JSON[_0x327ac2(0x124)](_0x246011[_0x327ac2(0xad)])}}}},this[_0x327ac2(0x7e)]));}['_stopPresenting'](){var _0x153d26=_0x38da7e,_0x1bd24e;this[_0x153d26(0xb1)]['next'](_0x153d26(0x125)),(_0x1bd24e=this[_0x153d26(0xf8)])==null||_0x1bd24e[_0x153d26(0xd5)](),this[_0x153d26(0xf8)]=null;}[_0x38da7e(0x137)](){var _0x16f473=_0x38da7e,_0xb821bf;(_0xb821bf=this['_commandDisposable'])==null||_0xb821bf[_0x16f473(0xd5)](),this[_0x16f473(0xb1)][_0x16f473(0xe3)]('following');}[_0x38da7e(0xfc)](){var _0x2cd8d7=_0x38da7e,_0xf2dc55;this[_0x2cd8d7(0xb1)][_0x2cd8d7(0xe3)](_0x2cd8d7(0x125)),(_0xf2dc55=this[_0x2cd8d7(0xf8)])==null||_0xf2dc55['dispose'](),this[_0x2cd8d7(0xf8)]=null;}[_0x38da7e(0x80)](){var _0x8264b1=_0x38da7e,_0xc0edc7;this[_0x8264b1(0xb1)][_0x8264b1(0xe3)](_0x8264b1(0xd6)),(_0xc0edc7=this[_0x8264b1(0xf8)])==null||_0xc0edc7[_0x8264b1(0xd5)]();}[_0x38da7e(0xaf)](_0x374871){var _0x4d14a5=_0x38da7e;if(['presenting',_0x4d14a5(0xd6),_0x4d14a5(0x123)][_0x4d14a5(0x97)](this[_0x4d14a5(0xa5)])||!_0x374871[_0x4d14a5(0xb3)][_0x4d14a5(0xf6)]||_0x374871[_0x4d14a5(0xb3)][_0x4d14a5(0xf6)]===this[_0x4d14a5(0x151)][_0x4d14a5(0xc5)]())return;this[_0x4d14a5(0xa5)]===_0x4d14a5(0x125)&&this[_0x4d14a5(0x137)]();const _0xe91269=_0x374871['data'][_0x4d14a5(0x157)];Object['values'](_0xe91269)[_0x4d14a5(0xe0)](_0x36a35c=>{var _0x1bb933=_0x4d14a5;this[_0x1bb933(0xfe)][_0x1bb933(0x14b)](_0x36a35c['id'],_0x36a35c[_0x1bb933(0xad)]?JSON[_0x1bb933(0x9e)](_0x36a35c[_0x1bb933(0xad)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x17781f=_0x38da7e,_0x73901a;this[_0x17781f(0xb1)]['next'](_0x17781f(0x123)),(_0x73901a=this[_0x17781f(0xf8)])==null||_0x73901a[_0x17781f(0xd5)]();}[_0x38da7e(0x84)](){var _0x5d68a3=_0x38da7e;this['_status$'][_0x5d68a3(0xe3)]('idle'),this[_0x5d68a3(0xda)]();}},_0x748e8c[_0x38da7e(0x135)]=_0x242204([_0x672fcc(0x2,_0x34b5fa[_0x38da7e(0x11b)]),_0x672fcc(0x3,_0x34b5fa[_0x38da7e(0x129)](_0x2de924)),_0x672fcc(0x4,_0x34b5fa[_0x38da7e(0x133)])],_0x748e8c[_0x38da7e(0x135)]);function _0x38a516(){var _0x1a470f=_0x38da7e;const _0x25c80f=_0x1cb809[_0x1a470f(0x6f)](_0x748e8c[_0x1a470f(0x13f)]),_0x2effad=_0x1cb809['useDependency'](_0x34b5fa[_0x1a470f(0x136)]),_0x2beeef=_0x1cb809[_0x1a470f(0x107)](()=>_0x2effad[_0x1a470f(0x10d)](_0x34b5fa[_0x1a470f(0xf7)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x14d244,_0x4e503f]=_0x729318[_0x1a470f(0x132)](null),[_0x18a6de,_0x55a5d7]=_0x729318[_0x1a470f(0x132)](_0x520eb2[_0x1a470f(0x149)]),_0x251d26=_0x729318[_0x1a470f(0x113)](null);return _0x729318[_0x1a470f(0x68)](()=>(_0x2beeef&&_0x25c80f[_0x1a470f(0x153)](_0x2beeef[_0x1a470f(0x7f)]())[_0x1a470f(0x10a)](_0x4cae99=>{var _0x12997b=_0x1a470f;_0x4e503f(_0x4cae99),_0x251d26[_0x12997b(0x143)]=_0x4cae99[_0x12997b(0x10c)][_0x12997b(0x127)](_0xa1bed3=>{_0x55a5d7(_0xa1bed3);});}),()=>{var _0x5c37db=_0x1a470f,_0x2efa7b;(_0x2efa7b=_0x251d26[_0x5c37db(0x143)])==null||_0x2efa7b[_0x5c37db(0x81)](),_0x251d26[_0x5c37db(0x143)]=null;}),[_0x2beeef,_0x25c80f]),_0x14d244?_0x37f759[_0x1a470f(0x147)](_0x5d32a2[_0x1a470f(0x141)],{'align':_0x1a470f(0xe1),'disabled':_0x18a6de===_0x520eb2['OFFLINE'],'className':_0x1a470f(0xbf),'overlay':_0x37f759[_0x1a470f(0x147)](_0x3add89,{'status':_0x18a6de,'coordinator':_0x14d244}),'children':_0x37f759['jsx'](_0x1a470f(0xac),{'className':_0x5d32a2[_0x1a470f(0xe9)](_0x1a470f(0x134),{'univer-cursor-not-allowed':_0x18a6de===_0x520eb2[_0x1a470f(0xde)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18a6de!==_0x520eb2['OFFLINE']}),'type':_0x1a470f(0xac),'children':_0x37f759['jsx'](_0x5f1132,{'className':_0x1a470f(0xa9)})})}):null;}function _0x3add89(_0x52f731){var _0x194dac=_0x38da7e;const {status:_0x46cd28,coordinator:_0x1be3b1}=_0x52f731;switch(_0x46cd28){case _0x520eb2[_0x194dac(0x149)]:return _0x37f759[_0x194dac(0x147)](_0x8404e9,{'coordinator':_0x1be3b1});case _0x520eb2['FOLLOWING']:return _0x37f759[_0x194dac(0x147)](_0xe7e1fe,{'coordinator':_0x1be3b1});case _0x520eb2['NOT_FOLLOWING']:return _0x37f759[_0x194dac(0x147)](_0x592e6c,{'coordinator':_0x1be3b1});case _0x520eb2[_0x194dac(0xde)]:return _0x37f759[_0x194dac(0x147)](_0x50c995,{});case _0x520eb2['PRESENTING']:return _0x37f759[_0x194dac(0x147)](_0x1aa6b1,{'coordinator':_0x1be3b1});default:return null;}}function _0x8404e9(_0x4d42a6){var _0xd9df4=_0x38da7e;const {coordinator:_0x587bc4}=_0x4d42a6;return _0x37f759[_0xd9df4(0xeb)](_0x37f759['Fragment'],{'children':[_0x37f759[_0xd9df4(0x147)](_0xd9df4(0xea),{'className':_0xd9df4(0x12b),'children':_0xd9df4(0xf9)}),_0x37f759[_0xd9df4(0x147)](_0x5d32a2['Button'],{'onClick':()=>_0x587bc4[_0xd9df4(0x6b)](),'children':'Start'})]});}function _0xe7e1fe(_0x4c9ca5){var _0x5e9851=_0x38da7e;const {coordinator:_0x9551ee}=_0x4c9ca5;return _0x37f759[_0x5e9851(0xeb)](_0x37f759[_0x5e9851(0x75)],{'children':[_0x37f759[_0x5e9851(0x147)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5e9851(0x114)}),_0x37f759['jsx'](_0x5d32a2[_0x5e9851(0x13e)],{'onClick':()=>_0x9551ee[_0x5e9851(0xbc)](),'children':'Stop\x20following'})]});}function _0x592e6c(_0x5363ad){var _0xe2b704=_0x38da7e;const {coordinator:_0x5c29f5}=_0x5363ad;return _0x37f759[_0xe2b704(0xeb)](_0x37f759[_0xe2b704(0x75)],{'children':[_0x37f759[_0xe2b704(0x147)](_0xe2b704(0xea),{'className':_0xe2b704(0x12b),'children':_0xe2b704(0xc2)}),_0x37f759[_0xe2b704(0x147)](_0x5d32a2[_0xe2b704(0x13e)],{'variant':_0xe2b704(0xd4),'onClick':()=>_0x5c29f5['startFollowing'](),'children':_0xe2b704(0x11a)})]});}function _0x1aa6b1(_0x5925b2){var _0x445a93=_0x38da7e;const {coordinator:_0x28e27d}=_0x5925b2;return _0x37f759[_0x445a93(0xeb)](_0x37f759[_0x445a93(0x75)],{'children':[_0x37f759[_0x445a93(0x147)]('div',{'className':_0x445a93(0x12b),'children':_0x445a93(0x9c)}),_0x37f759[_0x445a93(0x147)](_0x5d32a2[_0x445a93(0x13e)],{'variant':_0x445a93(0xcf),'onClick':()=>_0x28e27d[_0x445a93(0x70)](),'children':_0x445a93(0xe4)})]});}function _0x50c995(){var _0x13faf0=_0x38da7e;return _0x37f759[_0x13faf0(0x147)](_0x37f759[_0x13faf0(0x75)],{'children':_0x13faf0(0xd7)});}var _0x1fcdae=Object[_0x38da7e(0xfb)],_0x517125=(_0x2f6052,_0x156183,_0x3b961e,_0x1818cd)=>{var _0x1eb840=_0x38da7e;for(var _0x204684=_0x1818cd>0x1?void 0x0:_0x1818cd?_0x1fcdae(_0x156183,_0x3b961e):_0x156183,_0x5c7ec8=_0x2f6052[_0x1eb840(0xf1)]-0x1,_0x392cfd;_0x5c7ec8>=0x0;_0x5c7ec8--)(_0x392cfd=_0x2f6052[_0x5c7ec8])&&(_0x204684=_0x392cfd(_0x204684)||_0x204684);return _0x204684;},_0x1a2e58=(_0x5b261,_0x4517ff)=>(_0x11ff0b,_0x58c5b0)=>_0x4517ff(_0x11ff0b,_0x58c5b0,_0x5b261);_0x748e8c['DesktopLiveShareController']=class extends _0x34b5fa['Disposable']{constructor(_0x5282de,_0x2e06f8){var _0x3b7d4f=_0x38da7e;super(),this['_injector']=_0x5282de,this[_0x3b7d4f(0xb2)]=_0x2e06f8,this[_0x3b7d4f(0xbe)]();}['_mountLiveShare'](){var _0x2cbacf=_0x38da7e;this[_0x2cbacf(0x73)](this[_0x2cbacf(0xb2)][_0x2cbacf(0x93)](_0x1cb809['BuiltInUIPart'][_0x2cbacf(0x8a)],()=>_0x1cb809[_0x2cbacf(0x10b)](_0x38a516,this['_injector'])));}},_0x748e8c[_0x38da7e(0xb0)]=_0x517125([_0x1a2e58(0x0,_0x34b5fa[_0x38da7e(0x129)](_0x34b5fa[_0x38da7e(0xf5)])),_0x1a2e58(0x1,_0x1cb809[_0x38da7e(0x144)])],_0x748e8c[_0x38da7e(0xb0)]);const _0x32b1d6='live-share.config',_0x239070={};var _0x4f5a73=Object[_0x38da7e(0xfb)],_0x2d9078=(_0xbb6769,_0x5c6a13,_0x9a4c8e,_0x575902)=>{for(var _0x258fb1=_0x575902>0x1?void 0x0:_0x575902?_0x4f5a73(_0x5c6a13,_0x9a4c8e):_0x5c6a13,_0x437750=_0xbb6769['length']-0x1,_0x4f13b5;_0x437750>=0x0;_0x437750--)(_0x4f13b5=_0xbb6769[_0x437750])&&(_0x258fb1=_0x4f13b5(_0x258fb1)||_0x258fb1);return _0x258fb1;},_0x930aee=(_0x306e9c,_0x39bcb0)=>(_0x3d0885,_0x1b6318)=>_0x39bcb0(_0x3d0885,_0x1b6318,_0x306e9c);let _0x393c99=class extends _0x34b5fa[_0x38da7e(0xc7)]{constructor(_0xffb172){var _0x1fa25e=_0x38da7e;super(),this[_0x1fa25e(0x119)]=_0xffb172,this[_0x1fa25e(0x13d)]();}[_0x38da7e(0x13d)](){var _0x25c9ea=_0x38da7e;[_0x5d5c04['SetZoomRatioOperation']['id'],_0x5d5c04[_0x25c9ea(0x118)]['id'],_0x33d0a0[_0x25c9ea(0xd3)]['id']][_0x25c9ea(0xe0)](_0x34bfc4=>{var _0x8d0729=_0x25c9ea;this['disposeWithMe'](this[_0x8d0729(0x119)][_0x8d0729(0x110)](_0x34bfc4));});}};_0x393c99=_0x2d9078([_0x930aee(0x0,_0x34b5fa['Inject'](_0x2de924))],_0x393c99);var _0x1a99c1=Object[_0x38da7e(0xcd)],_0x370c0d=Object['getOwnPropertyDescriptor'],_0x159ade=(_0x92dccf,_0x33b64f,_0x3a74d8)=>_0x33b64f in _0x92dccf?_0x1a99c1(_0x92dccf,_0x33b64f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a74d8}):_0x92dccf[_0x33b64f]=_0x3a74d8,_0x3df1cc=(_0x1401f2,_0x581008,_0xee056f,_0x5a4329)=>{var _0x3405ce=_0x38da7e;for(var _0x129108=_0x5a4329>0x1?void 0x0:_0x5a4329?_0x370c0d(_0x581008,_0xee056f):_0x581008,_0x181b4f=_0x1401f2[_0x3405ce(0xf1)]-0x1,_0x30d85f;_0x181b4f>=0x0;_0x181b4f--)(_0x30d85f=_0x1401f2[_0x181b4f])&&(_0x129108=_0x30d85f(_0x129108)||_0x129108);return _0x129108;},_0x38df2f=(_0x565dda,_0x40879a)=>(_0x418ef5,_0x48f168)=>_0x40879a(_0x418ef5,_0x48f168,_0x565dda),_0x363244=(_0x224501,_0x27b441,_0x24bb04)=>_0x159ade(_0x224501,typeof _0x27b441!='symbol'?_0x27b441+'':_0x27b441,_0x24bb04);const _0x26bb27=_0x38da7e(0xee);_0x748e8c[_0x38da7e(0x116)]=class extends _0x34b5fa['Plugin']{constructor(_0x37654c=_0x239070,_0x55c67c,_0x497e5f){var _0x16a2bd=_0x38da7e;super(),this[_0x16a2bd(0xc8)]=_0x37654c,this[_0x16a2bd(0x96)]=_0x55c67c,this['_configService']=_0x497e5f;const {..._0x2a39ba}=_0x34b5fa[_0x16a2bd(0xb4)]({},_0x239070,this['_config']);this[_0x16a2bd(0x6c)][_0x16a2bd(0x74)](_0x32b1d6,_0x2a39ba);}[_0x38da7e(0xa3)](){var _0x35ebef=_0x38da7e;_0x34b5fa['registerDependencies'](this[_0x35ebef(0x96)],_0x34b5fa['mergeOverrideWithDependencies']([[_0x2de924],[_0x748e8c['LiveShareController']],[_0x393c99],[_0x748e8c[_0x35ebef(0xb0)]]],this[_0x35ebef(0xc8)][_0x35ebef(0xff)])),_0x34b5fa['touchDependencies'](this[_0x35ebef(0x96)],[[_0x393c99]]);}['onRendered'](){var _0x1f2c08=_0x38da7e;_0x34b5fa[_0x1f2c08(0x6e)](this[_0x1f2c08(0x96)],[[_0x748e8c[_0x1f2c08(0xb0)]]]);}},_0x363244(_0x748e8c['UniverLiveSharePlugin'],_0x38da7e(0xca),_0x34b5fa[_0x38da7e(0xf7)][_0x38da7e(0xd9)]),_0x363244(_0x748e8c[_0x38da7e(0x116)],_0x38da7e(0x148),_0x26bb27),_0x748e8c[_0x38da7e(0x116)]=_0x3df1cc([_0x34b5fa[_0x38da7e(0xb6)](_0x18d6eb[_0x38da7e(0x154)]),_0x38df2f(0x1,_0x34b5fa[_0x38da7e(0x129)](_0x34b5fa[_0x38da7e(0xf5)])),_0x38df2f(0x2,_0x34b5fa[_0x38da7e(0x11b)])],_0x748e8c['UniverLiveSharePlugin']),_0x748e8c[_0x38da7e(0x79)]=_0x38a516,_0x748e8c[_0x38da7e(0x9a)]=_0x2de924,_0x748e8c[_0x38da7e(0xab)]=_0x520eb2,Object[_0x38da7e(0xcd)](_0x748e8c,Symbol['toStringTag'],{'value':_0x38da7e(0x146)});}));function _0xb597(){var _0x1615df=['fill','disposeWithMe','setConfig','Fragment','has','2404180IPnSCh','init','LiveShare','find','map','univerjs-icon\x20univerjs-icon-','evenodd','_unitID','getUnitId','_stopFollowing','unsubscribe','toDisposable','3071580EwAvSn','_handleOnline','UNIVER_SHEET','requireSession','attrs','memberID','ONLINE','HEADER_MENU','clear','@univerjs/sheets-ui','replace','takeUntil','tag','shouldShareOperation','unitId','_startLiveShareCoordinator','registerComponent','UniverProLiveShare','CollaborationEvent','_injector','includes','extend','startFollowing','LiveShareService','_univerInstanceService','You\x27re\x20presenting\x20the\x20document','url(#$1','parse','onCommandExecuted','operators','idSuffix','assign','onStarting','rxjs','_status','className','asObservable','0\x200\x2017\x2017','univer-size-4','DisposableCollection','LiveShareStatus','button','params','@univerjs-pro/collaboration-client','_handleOperation','DesktopLiveShareController','_status$','_uiPartsService','data','merge','_sharedOperations','DependentOn','NOT_FOLLOWING','dispose$','call','displayName','11axQnSe','stopFollowing','@univerjs/design','_mountLiveShare','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','mask','SessionStatus','You\x27re\x20not\x20following\x20the\x20presenter','Subject','24157VDFnsa','getMemberID','function','Disposable','_config','getOwnPropertySymbols','type','random','set','defineProperty','prototype','default','InsertSheetMutation','UniverProCollaborationClient','_reporters','SetWorksheetActiveOperation','text','dispose','not-following','You\x27are\x20offline.','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','_fetchOperations','reverse','colorChannel1','throttleTime','OFFLINE','NEW_CHANGESETS','forEach','end','356djCvWU','next','Stop\x20presenting','react','5646uRQJmB','UniverSheetsUi','createElement','clsx','div','jsxs','concat','UniverDesign','UNIVER_LIVE_SHARE_PLUGIN','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','_presenter','length','724nQodAF','use','CommandType','Injector','presenter','UniverInstanceType','_commandDisposable','Present\x20this\x20document','FOLLOWING','getOwnPropertyDescriptor','_beIdle','entries','_commandService','override','354xybSpX','14315424YnSjJr','LIVESHARE_TERMINATE','1em','LIVESHARE_OPERATION','OPERATION','sheet','useObservable','get','delete','then','connectInjector','status$','getCurrentTypeOfUnit$','defIds','_entities','registerSharedOperation','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UniverIcon','useRef','You\x27re\x20following\x20the\x20presenter','children','UniverLiveSharePlugin','string','SetScrollOperation','_liveShareService','Start\x20following','IConfigService','getConfig','getTypeOfUnitAdded$','getInitialStates','434817FHtbZs','rxjs/operators','_handleNewHost','RxDisposable','offline','stringify','idle','_handleNewChangeSets','subscribe','registerInitialStateReporter','Inject','http://www.w3.org/2000/svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','_handleTerminate','presenting','currentColor','hasOwnProperty','complete','useState','ICommandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareCoordinator','IUniverInstanceService','_startFollowing','CollaborationSessionService','path','forwardRef','object','none','_init','Button','LiveShareController','xlink:href','Dropdown','following','current','IUIPartsService','react/jsx-runtime','Module','jsx','pluginName','IDLE','exports','executeCommand','icon','propertyIsEnumerable','LIVESHARE_REQUEST_HOST','from','UniverProCollaboration','_collabSession','add','getLiveShareCoordinator','UniverCollaborationClientPlugin','toString','pipe','operations','_stopPresenting','send','136oIhvWg','useEffect','indexOf','1051ebnWIa','tryStartPresenting','_configService','amd','touchDependencies','useDependency','stopPresenting','@univerjs/core'];_0xb597=function(){return _0x1615df;};return _0xb597();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3-experimental.20250812-b4b6f1a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs/core": "0.10.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.10.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.3-experimental.20250812-b4b6f1a",
|
|
51
|
+
"@univerjs/core": "0.10.3-experimental.20250812-b4b6f1a",
|
|
52
|
+
"@univerjs/sheets": "0.10.3-experimental.20250812-b4b6f1a",
|
|
53
|
+
"@univerjs/design": "0.10.3-experimental.20250812-b4b6f1a",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.3-experimental.20250812-b4b6f1a",
|
|
55
|
+
"@univerjs-pro/collaboration-client": "0.10.3-experimental.20250812-b4b6f1a",
|
|
56
|
+
"@univerjs/ui": "0.10.3-experimental.20250812-b4b6f1a"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.10.3",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|