@univerjs-pro/live-share 0.9.2-nightly.202507171607 → 0.9.2-nightly.202507181608

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x1d85c2=_0x2ff7;(function(_0x458d84,_0x445f11){var _0x378e04=_0x2ff7,_0x1d3684=_0x458d84();while(!![]){try{var _0xa3a842=-parseInt(_0x378e04(0x19c))/0x1*(parseInt(_0x378e04(0x22e))/0x2)+-parseInt(_0x378e04(0x184))/0x3*(-parseInt(_0x378e04(0x1d1))/0x4)+parseInt(_0x378e04(0x248))/0x5*(-parseInt(_0x378e04(0x1f6))/0x6)+-parseInt(_0x378e04(0x190))/0x7*(-parseInt(_0x378e04(0x1b6))/0x8)+parseInt(_0x378e04(0x20e))/0x9+parseInt(_0x378e04(0x206))/0xa*(-parseInt(_0x378e04(0x24b))/0xb)+-parseInt(_0x378e04(0x1b2))/0xc;if(_0xa3a842===_0x445f11)break;else _0x1d3684['push'](_0x1d3684['shift']());}catch(_0x465fff){_0x1d3684['push'](_0x1d3684['shift']());}}}(_0x2149,0xded19));function _0x2ff7(_0x249c78,_0x1ea5dc){var _0x214914=_0x2149();return _0x2ff7=function(_0x2ff73,_0x4b742b){_0x2ff73=_0x2ff73-0x17c;var _0x383bc2=_0x214914[_0x2ff73];return _0x383bc2;},_0x2ff7(_0x249c78,_0x1ea5dc);}var U=Object[_0x1d85c2(0x23e)],F=(_0x2fdf07,_0x59452c,_0x3f4eaf)=>_0x59452c in _0x2fdf07?U(_0x2fdf07,_0x59452c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f4eaf}):_0x2fdf07[_0x59452c]=_0x3f4eaf,v=(_0x204ee2,_0x2b4c08,_0x4d3906)=>F(_0x204ee2,typeof _0x2b4c08!=_0x1d85c2(0x1fc)?_0x2b4c08+'':_0x2b4c08,_0x4d3906);Object['defineProperty'](exports,Symbol[_0x1d85c2(0x256)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x1d85c2(0x17e),x={};function _0x2149(){var _0x561170=['LiveShare','_status$','shouldShareOperation','tryStartPresenting','defIds','jsx','_config','registerDependencies','data','startFollowing','has','_startPresenting','getMemberID','merge','set','useRef','use','current','LiveShareStatus','_stopPresenting','CollaborationSessionService','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','delete','262lTcAFO','Inject','Button','_fetchOperations','stopFollowing','send','UniverIcon','NOT_FOLLOWING','OPERATION','entries','_handleNewHost','replace','getTypeOfUnitAdded$','LiveShareService','Start\x20following','random','defineProperty','attrs','0\x200\x2017\x2017','offline','string','propertyIsEnumerable','registerSharedOperation','Disposable','_commandService','url(#$1','15cgVQoo','_init','connectInjector','121MJysvq','_startFollowing','DesktopLiveShareController','indexOf','presenter','_reporters','add','InsertSheetMutation','text','DisposableCollection','_beIdle','toStringTag','UNIVER_SHEET','UniverInstanceType','LIVESHARE_OPERATION','BehaviorSubject','live-share.config','length','params','takeUntil','function','You\x27are\x20offline.','3NbcHOw','LiveShareCoordinator','icon','getOwnPropertyDescriptor','prototype','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','type','createElement','LIVESHARE_TERMINATE','Stop\x20presenting','SetZoomRatioOperation','12525870rqlNgV','CollaborationEvent','_entities','_unitID','includes','override','IConfigService','currentColor','SetWorksheetActiveOperation','map','_handleOperation','xlink:href','823GkEdHi','extend','dispose$','clear','find','evenodd','HEADER_MENU','_handleNewChangeSets','useState','presenting','hasOwnProperty','_status','toDisposable','DependentOn','reverse','_configService','pipe','svg','div','Dropdown','children','CommandType','19023528wTERfh','UniverLiveSharePlugin','event$','SAME_OPERATION_SHARE_INTERVAL','8FGLXxQ','next','SessionStatus','_collabSession','_handleTerminate','substring','tag','SetScrollOperation','_stopFollowing','_univerInstanceService','defs','NEW_CHANGESETS','getInitialStates','_mountLiveShare','default','onRendered','http://www.w3.org/2000/svg','getConfig','apply','fill','IDLE','LiveShareController','dispose','disposeWithMe','displayName','trim','useObservable','4605536nnwchD','values','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','You\x27re\x20following\x20the\x20presenter','jsxs','_liveShareService','button','_injector','mask','unitId','className','colorChannel1','getTypeOfUnitDisposed$','init','PRESENTING','Injector','_handleOnline','You\x27re\x20presenting\x20the\x20document','RxDisposable','touchDependencies','OFFLINE','registerComponent','complete','univer-size-4','toString','Start','get','getOwnPropertySymbols','forEach','stopPresenting','ICommandService','subscribe','getLiveShareCoordinator','FOLLOWING','_sharedOperations','from','stringify','2637738JUXybi','Present\x20this\x20document','UniverCollaborationClientPlugin','mutations','univerjs-icon\x20univerjs-icon-','requireSession','symbol','IUniverInstanceService','Fragment','_handleOffline','IUIPartsService','LIVESHARE_NEW_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm','call','not-following','forwardRef','183050VAoTEt','getCurrentTypeOfUnit$','getUnitId','idle','idSuffix','_uiPartsService','executeCommand','concat','10666818HAQDDF','LIVESHARE_REQUEST_HOST','_commandDisposable','_startLiveShareCoordinator','_presenter','following','onStarting','useEffect'];_0x2149=function(){return _0x561170;};return _0x2149();}class O extends o['Disposable']{constructor(){var _0x255ff8=_0x1d85c2;super(...arguments),v(this,_0x255ff8(0x1f3),new Set()),v(this,_0x255ff8(0x250),new Set());}[_0x1d85c2(0x244)](_0x5977d2){var _0x45daf6=_0x1d85c2;return this[_0x45daf6(0x1f3)]['add'](_0x5977d2),o[_0x45daf6(0x1a8)](()=>this['_sharedOperations'][_0x45daf6(0x22d)](_0x5977d2));}[_0x1d85c2(0x22b)](_0x17d249){var _0x13e0ea=_0x1d85c2;return this[_0x13e0ea(0x250)][_0x13e0ea(0x251)](_0x17d249),o[_0x13e0ea(0x1a8)](()=>this[_0x13e0ea(0x250)][_0x13e0ea(0x22d)](_0x17d249));}['shouldShareOperation'](_0x228bd6){var _0x10e63a=_0x1d85c2;return this[_0x10e63a(0x1f3)][_0x10e63a(0x220)](_0x228bd6);}['getInitialStates'](_0x23b0f6){var _0x23afd5=_0x1d85c2;return Array[_0x23afd5(0x1f4)](this[_0x23afd5(0x250)])[_0x23afd5(0x199)](_0x4f94b7=>_0x4f94b7(_0x23b0f6));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x27a0b7,_0x1cf53d,_0x2a6b41,_0x118682)=>{var _0x2f9674=_0x1d85c2;for(var _0x32d3f8=_0x118682>0x1?void 0x0:_0x118682?H(_0x1cf53d,_0x2a6b41):_0x1cf53d,_0x49102f=_0x27a0b7[_0x2f9674(0x17f)]-0x1,_0xdfc641;_0x49102f>=0x0;_0x49102f--)(_0xdfc641=_0x27a0b7[_0x49102f])&&(_0x32d3f8=_0xdfc641(_0x32d3f8)||_0x32d3f8);return _0x32d3f8;},k=(_0x21c6ec,_0x3175ee)=>(_0x3827c8,_0xcf7730)=>_0x3175ee(_0x3827c8,_0xcf7730,_0x21c6ec);let E=class extends o[_0x1d85c2(0x245)]{constructor(_0x1a6683){var _0x364887=_0x1d85c2;super(),this[_0x364887(0x1d6)]=_0x1a6683,this['_init']();}[_0x1d85c2(0x249)](){var _0x17f068=_0x1d85c2;[w[_0x17f068(0x18f)]['id'],w[_0x17f068(0x1bd)]['id'],C['SetWorksheetActiveOperation']['id']][_0x17f068(0x1ed)](_0x2b3d2d=>{var _0x3bb490=_0x17f068;this[_0x3bb490(0x1cd)](this[_0x3bb490(0x1d6)][_0x3bb490(0x244)](_0x2b3d2d));});}};E=V([k(0x0,o[_0x1d85c2(0x22f)](O))],E);var u=function(){var _0x32e5ef=_0x1d85c2;return u=Object['assign']||function(_0x59a076){var _0x2dfea0=_0x2ff7;for(var _0x489386,_0x149a43=0x1,_0x143ad0=arguments[_0x2dfea0(0x17f)];_0x149a43<_0x143ad0;_0x149a43++){_0x489386=arguments[_0x149a43];for(var _0x41c2ef in _0x489386)Object[_0x2dfea0(0x188)][_0x2dfea0(0x1a6)][_0x2dfea0(0x203)](_0x489386,_0x41c2ef)&&(_0x59a076[_0x41c2ef]=_0x489386[_0x41c2ef]);}return _0x59a076;},u[_0x32e5ef(0x1c8)](this,arguments);},M=function(_0x57f986,_0x45725c){var _0x44db9d=_0x1d85c2,_0x3b60ba={};for(var _0x22dd16 in _0x57f986)Object['prototype'][_0x44db9d(0x1a6)]['call'](_0x57f986,_0x22dd16)&&_0x45725c[_0x44db9d(0x24e)](_0x22dd16)<0x0&&(_0x3b60ba[_0x22dd16]=_0x57f986[_0x22dd16]);if(_0x57f986!=null&&typeof Object[_0x44db9d(0x1ec)]==_0x44db9d(0x182)){for(var _0xa4966d=0x0,_0x22dd16=Object[_0x44db9d(0x1ec)](_0x57f986);_0xa4966d<_0x22dd16[_0x44db9d(0x17f)];_0xa4966d++)_0x45725c[_0x44db9d(0x24e)](_0x22dd16[_0xa4966d])<0x0&&Object['prototype'][_0x44db9d(0x243)][_0x44db9d(0x203)](_0x57f986,_0x22dd16[_0xa4966d])&&(_0x3b60ba[_0x22dd16[_0xa4966d]]=_0x57f986[_0x22dd16[_0xa4966d]]);}return _0x3b60ba;},j=f[_0x1d85c2(0x205)](function(_0x2ab771,_0x20024f){var _0x87a912=_0x1d85c2,_0x41f715=_0x2ab771[_0x87a912(0x186)],_0x3a8087=_0x2ab771['id'],_0x51f775=_0x2ab771[_0x87a912(0x1db)],_0x256925=_0x2ab771[_0x87a912(0x19d)],_0x393f44=M(_0x2ab771,[_0x87a912(0x186),'id','className',_0x87a912(0x19d)]),_0x2bc204=_0x87a912(0x1fa)['concat'](_0x3a8087,'\x20')['concat'](_0x51f775||'')[_0x87a912(0x1cf)](),_0x47fedc=f[_0x87a912(0x225)]('_'[_0x87a912(0x20d)](G()));return y(_0x41f715,''[_0x87a912(0x20d)](_0x3a8087),{'defIds':_0x41f715[_0x87a912(0x21a)],'idSuffix':_0x47fedc[_0x87a912(0x227)]},u({'ref':_0x20024f,'className':_0x2bc204},_0x393f44),_0x256925);});function y(_0x3343d7,_0x59ac44,_0x1615c3,_0x3361c3,_0x1139dd){var _0x5096b4=_0x1d85c2;return f['createElement'](_0x3343d7[_0x5096b4(0x1bc)],u(u({'key':_0x59ac44},q(_0x3343d7,_0x1615c3,_0x1139dd)),_0x3361c3),(W(_0x3343d7,_0x1615c3)[_0x5096b4(0x1b0)]||[])[_0x5096b4(0x199)](function(_0x5d7783,_0x38457e){var _0x5a1232=_0x5096b4;return y(_0x5d7783,''['concat'](_0x59ac44,'-')[_0x5a1232(0x20d)](_0x3343d7[_0x5a1232(0x1bc)],'-')['concat'](_0x38457e),_0x1615c3,void 0x0,_0x1139dd);}));}function q(_0x4bc522,_0x53da65,_0x350731){var _0x319227=_0x1d85c2,_0x41e0fd=u({},_0x4bc522[_0x319227(0x23f)]);_0x350731!=null&&_0x350731[_0x319227(0x1dc)]&&_0x41e0fd[_0x319227(0x1c9)]===_0x319227(0x1dc)&&(_0x41e0fd[_0x319227(0x1c9)]=_0x350731['colorChannel1']),_0x4bc522[_0x319227(0x1bc)]===_0x319227(0x1d9)&&_0x41e0fd['id']&&(_0x41e0fd['id']=_0x41e0fd['id']+_0x53da65[_0x319227(0x20a)]),Object[_0x319227(0x237)](_0x41e0fd)[_0x319227(0x1ed)](function(_0x2662fd){var _0x20158b=_0x319227,_0x273559=_0x2662fd[0x0],_0x350b7d=_0x2662fd[0x1];_0x273559===_0x20158b(0x1d9)&&typeof _0x350b7d==_0x20158b(0x242)&&(_0x41e0fd[_0x273559]=_0x350b7d[_0x20158b(0x239)](/url\(#(.*)\)/,_0x20158b(0x247)['concat'](_0x53da65[_0x20158b(0x20a)],')')));});var _0x2c04dd=_0x53da65[_0x319227(0x21a)];return!_0x2c04dd||_0x2c04dd[_0x319227(0x17f)]===0x0||(_0x4bc522['tag']===_0x319227(0x226)&&_0x41e0fd[_0x319227(0x19b)]&&(_0x41e0fd['xlink:href']=_0x41e0fd['xlink:href']+_0x53da65[_0x319227(0x20a)]),Object[_0x319227(0x237)](_0x41e0fd)[_0x319227(0x1ed)](function(_0x15d4dc){var _0x5d679d=_0x319227,_0x1dbee5=_0x15d4dc[0x0],_0x51e781=_0x15d4dc[0x1];typeof _0x51e781==_0x5d679d(0x242)&&(_0x41e0fd[_0x1dbee5]=_0x51e781['replace'](/url\(#(.*)\)/,_0x5d679d(0x247)[_0x5d679d(0x20d)](_0x53da65[_0x5d679d(0x20a)],')')));})),_0x41e0fd;}function W(_0x36fa87,_0x1f074d){var _0x4e1e67=_0x1d85c2,_0x49a216,_0x30a90a=_0x1f074d[_0x4e1e67(0x21a)];return!_0x30a90a||_0x30a90a[_0x4e1e67(0x17f)]===0x0?_0x36fa87:_0x36fa87[_0x4e1e67(0x1bc)]===_0x4e1e67(0x1c0)&&(!((_0x49a216=_0x36fa87[_0x4e1e67(0x1b0)])===null||_0x49a216===void 0x0)&&_0x49a216[_0x4e1e67(0x17f)])?u(u({},_0x36fa87),{'children':_0x36fa87[_0x4e1e67(0x1b0)][_0x4e1e67(0x199)](function(_0x3b5113){var _0x38461c=_0x4e1e67;return typeof _0x3b5113[_0x38461c(0x23f)]['id']==_0x38461c(0x242)&&_0x30a90a&&_0x30a90a[_0x38461c(0x194)](_0x3b5113[_0x38461c(0x23f)]['id'])?u(u({},_0x3b5113),{'attrs':u(u({},_0x3b5113[_0x38461c(0x23f)]),{'id':_0x3b5113['attrs']['id']+_0x1f074d[_0x38461c(0x20a)]})}):_0x3b5113;})}):_0x36fa87;}function G(){var _0x4f5c92=_0x1d85c2;return Math[_0x4f5c92(0x23d)]()[_0x4f5c92(0x1e9)](0x24)[_0x4f5c92(0x1bb)](0x2,0x8);}j[_0x1d85c2(0x1ce)]=_0x1d85c2(0x234);var B={'tag':_0x1d85c2(0x1ad),'attrs':{'xmlns':_0x1d85c2(0x1c6),'fill':'none','viewBox':_0x1d85c2(0x240),'width':'1em','height':'1em'},'children':[{'tag':_0x1d85c2(0x189),'attrs':{'fill':_0x1d85c2(0x197),'d':_0x1d85c2(0x1d3)}},{'tag':_0x1d85c2(0x189),'attrs':{'fill':_0x1d85c2(0x197),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x1d85c2(0x1a1),'clipRule':_0x1d85c2(0x1a1)}}]},P=f[_0x1d85c2(0x205)](function(_0x4a3e21,_0x54726f){var _0xf8a076=_0x1d85c2;return f[_0xf8a076(0x18c)](j,Object['assign']({},_0x4a3e21,{'id':'live-share-icon','ref':_0x54726f,'icon':B}));});P[_0x1d85c2(0x1ce)]='LiveShareIcon';var Y=Object[_0x1d85c2(0x187)],R=(_0xf461af,_0x171b94,_0x273829,_0x5668f8)=>{var _0x768c57=_0x1d85c2;for(var _0x5c1d0b=_0x5668f8>0x1?void 0x0:_0x5668f8?Y(_0x171b94,_0x273829):_0x171b94,_0x2f2a4a=_0xf461af[_0x768c57(0x17f)]-0x1,_0x3b75ad;_0x2f2a4a>=0x0;_0x2f2a4a--)(_0x3b75ad=_0xf461af[_0x2f2a4a])&&(_0x5c1d0b=_0x3b75ad(_0x5c1d0b)||_0x5c1d0b);return _0x5c1d0b;},S=(_0x28cbdc,_0x2b1a3e)=>(_0x117f44,_0x1bb08a)=>_0x2b1a3e(_0x117f44,_0x1bb08a,_0x28cbdc);exports[_0x1d85c2(0x1cb)]=class extends o[_0x1d85c2(0x1e3)]{constructor(_0xd1b3fb,_0x61edc7,_0x20c1cb){var _0x20cd9c=_0x1d85c2;super(),v(this,_0x20cd9c(0x192),new Map()),(this[_0x20cd9c(0x1bf)]=_0xd1b3fb,this[_0x20cd9c(0x1d8)]=_0x61edc7,this['_collabSessionService']=_0x20c1cb,this[_0x20cd9c(0x249)]());}async[_0x1d85c2(0x1f1)](_0x6048eb){var _0x5b1ac1=_0x1d85c2;return this[_0x5b1ac1(0x192)][_0x5b1ac1(0x220)](_0x6048eb)||await this[_0x5b1ac1(0x211)](_0x6048eb),this[_0x5b1ac1(0x192)][_0x5b1ac1(0x1eb)](_0x6048eb);}[_0x1d85c2(0x249)](){var _0x4cd276=_0x1d85c2;this[_0x4cd276(0x1bf)][_0x4cd276(0x23a)](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](b[_0x4cd276(0x181)](this[_0x4cd276(0x19e)]))[_0x4cd276(0x1f0)](async _0x5567fd=>{var _0xfbb19c=_0x4cd276;const _0x2694b3=_0x5567fd[_0xfbb19c(0x208)]();this[_0xfbb19c(0x192)][_0xfbb19c(0x220)](_0x2694b3)||this[_0xfbb19c(0x211)](_0x2694b3);}),this['_univerInstanceService'][_0x4cd276(0x1dd)](o['UniverInstanceType'][_0x4cd276(0x257)])['pipe'](b['takeUntil'](this['dispose$']))[_0x4cd276(0x1f0)](_0x90133e=>{var _0x17a0a3=_0x4cd276;const _0x5c2f7a=_0x90133e['getUnitId'](),_0x56ae1b=this[_0x17a0a3(0x192)][_0x17a0a3(0x1eb)](_0x5c2f7a);_0x56ae1b==null||_0x56ae1b[_0x17a0a3(0x1cc)]();});}async[_0x1d85c2(0x211)](_0x3e1816){var _0x2d9ddd=_0x1d85c2;const _0x2e57ff=await this['_collabSessionService'][_0x2d9ddd(0x1fb)](_0x3e1816),_0x11fc59=this[_0x2d9ddd(0x1d8)]['createInstance'](exports[_0x2d9ddd(0x185)],_0x3e1816,_0x2e57ff);return _0x11fc59[_0x2d9ddd(0x1de)](),this[_0x2d9ddd(0x192)][_0x2d9ddd(0x224)](_0x3e1816,_0x11fc59),_0x11fc59;}},exports[_0x1d85c2(0x1cb)]=R([S(0x0,o[_0x1d85c2(0x1fd)]),S(0x1,o[_0x1d85c2(0x22f)](o[_0x1d85c2(0x1e0)])),S(0x2,o[_0x1d85c2(0x22f)](m[_0x1d85c2(0x22a)]))],exports[_0x1d85c2(0x1cb)]);var h=(_0x144a6c=>(_0x144a6c[_0x1d85c2(0x1e5)]=_0x1d85c2(0x241),_0x144a6c[_0x1d85c2(0x1ca)]=_0x1d85c2(0x209),_0x144a6c[_0x1d85c2(0x1f2)]=_0x1d85c2(0x213),_0x144a6c[_0x1d85c2(0x235)]=_0x1d85c2(0x204),_0x144a6c[_0x1d85c2(0x1df)]=_0x1d85c2(0x1a5),_0x144a6c))(h||{});const Z=_0x1d85c2(0x1b5),J=0xc8;exports[_0x1d85c2(0x185)]=class extends o[_0x1d85c2(0x1e3)]{constructor(_0x5a4222,_0x5a79fb,_0x203fcc,_0x50d02d,_0xadc306){var _0x1dcf67=_0x1d85c2;super(),v(this,'_status$',new D[(_0x1dcf67(0x17d))](_0x1dcf67(0x209))),v(this,'status$',this['_status$']['asObservable']()),v(this,_0x1dcf67(0x249),!0x1),v(this,_0x1dcf67(0x210),null),v(this,_0x1dcf67(0x212),null),(this['_unitID']=_0x5a4222,this[_0x1dcf67(0x1b9)]=_0x5a79fb,this[_0x1dcf67(0x1ab)]=_0x203fcc,this['_liveShareService']=_0x50d02d,this[_0x1dcf67(0x246)]=_0xadc306);}get['_status'](){var _0x5b5ae5=_0x1d85c2;return this[_0x5b5ae5(0x217)]['getValue']();}[_0x1d85c2(0x1cc)](){var _0x2296ba=_0x1d85c2,_0x4b2dc0;(_0x4b2dc0=this[_0x2296ba(0x210)])==null||_0x4b2dc0[_0x2296ba(0x1cc)](),this['_status$']['next']('idle'),this[_0x2296ba(0x217)][_0x2296ba(0x1e7)]();}[_0x1d85c2(0x1de)](){var _0x345347=_0x1d85c2;this[_0x345347(0x249)]||(this[_0x345347(0x249)]=!0x0,this[_0x345347(0x1b9)]['sessionStatus$'][_0x345347(0x1ac)](b[_0x345347(0x181)](this[_0x345347(0x19e)]))[_0x345347(0x1f0)](_0x2b24ce=>{var _0x36550e=_0x345347;switch(_0x2b24ce){case m[_0x36550e(0x1b8)][_0x36550e(0x1e5)]:this[_0x36550e(0x1ff)]();break;case m[_0x36550e(0x1b8)]['ONLINE']:this[_0x36550e(0x1e1)]();break;}}),this[_0x345347(0x1b9)][_0x345347(0x1b4)]['pipe'](b['takeUntil'](this[_0x345347(0x19e)]))[_0x345347(0x1f0)](_0xd4ce69=>{var _0x1de2f0=_0x345347;const {eventID:_0x460275}=_0xd4ce69;switch(_0x460275){case _[_0x1de2f0(0x191)][_0x1de2f0(0x201)]:this[_0x1de2f0(0x238)](_0xd4ce69);break;case _[_0x1de2f0(0x191)]['LIVESHARE_OPERATION']:this[_0x1de2f0(0x19a)](_0xd4ce69);break;case _['CollaborationEvent'][_0x1de2f0(0x18d)]:this['_handleTerminate']();break;case _['CollaborationEvent'][_0x1de2f0(0x1c1)]:this[_0x1de2f0(0x1a3)](_0xd4ce69);break;}}));}[_0x1d85c2(0x219)](){var _0x1a62fd=_0x1d85c2;this['_collabSession'][_0x1a62fd(0x233)]({'eventID':_[_0x1a62fd(0x191)][_0x1a62fd(0x20f)],'data':{'unitID':this[_0x1a62fd(0x193)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1a62fd(0x193)]);}[_0x1d85c2(0x1ee)](){var _0x29a604=_0x1d85c2;this['_status']===_0x29a604(0x1a5)&&(this[_0x29a604(0x217)][_0x29a604(0x1b7)]('idle'),this[_0x29a604(0x1b9)][_0x29a604(0x233)]({'eventID':_[_0x29a604(0x191)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x29a604(0x193)]}},this[_0x29a604(0x193)]));}[_0x1d85c2(0x21f)](){var _0x4f87cf=_0x1d85c2;this[_0x4f87cf(0x1a7)]===_0x4f87cf(0x204)&&(this['_status$'][_0x4f87cf(0x1b7)](_0x4f87cf(0x213)),this[_0x4f87cf(0x24c)]());}['stopFollowing'](){var _0x17957f=_0x1d85c2;this[_0x17957f(0x1a7)]===_0x17957f(0x213)&&this['_stopFollowing']();}[_0x1d85c2(0x238)](_0x1c537b){var _0x26b055=_0x1d85c2;const {presenter:_0x4d514b}=_0x1c537b[_0x26b055(0x21e)],_0x5d06a2=this[_0x26b055(0x1b9)][_0x26b055(0x222)]();this[_0x26b055(0x212)]=_0x4d514b,_0x4d514b===_0x5d06a2?(this[_0x26b055(0x1be)](),this[_0x26b055(0x221)]()):this[_0x26b055(0x1a7)]!==_0x26b055(0x204)&&(this[_0x26b055(0x229)](),this[_0x26b055(0x24c)]());}[_0x1d85c2(0x231)](){var _0x1f80ab=_0x1d85c2;const _0x288818={'eventID':_[_0x1f80ab(0x191)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1f80ab(0x233)](_0x288818,this[_0x1f80ab(0x193)]);}[_0x1d85c2(0x1ba)](){var _0x172d1c=_0x1d85c2;this[_0x172d1c(0x212)]=null,this['_status']!==_0x172d1c(0x1a5)&&this[_0x172d1c(0x255)]();}[_0x1d85c2(0x1a3)](_0x4b46d2){var _0x25b508=_0x1d85c2;if(this[_0x25b508(0x1a7)]==='following'&&this[_0x25b508(0x212)]===_0x4b46d2['data']['memberID']){const _0x4df9f6=_['parseProtocolChangeset'](_0x4b46d2[_0x25b508(0x21e)])[_0x25b508(0x1f9)][_0x25b508(0x1aa)]()[_0x25b508(0x1a0)](_0x5ebb46=>_0x5ebb46['id']===C[_0x25b508(0x252)]['id']);if(_0x4df9f6){const _0x28191a=_0x4df9f6[_0x25b508(0x180)][_0x25b508(0x1da)],_0x5e3320=_0x4df9f6['params']['sheet']['id'];setTimeout(()=>{var _0x373d28=_0x25b508;this['_commandService'][_0x373d28(0x20c)](C[_0x373d28(0x198)]['id'],{'unitId':_0x28191a,'subUnitId':_0x5e3320},{'fromCollab':!0x0});});}}}[_0x1d85c2(0x221)](){var _0x32db06=_0x1d85c2;this['_status$'][_0x32db06(0x1b7)](_0x32db06(0x1a5));const _0x2b6438=new Map(),_0x3ccd3b=this[_0x32db06(0x210)]=new o[(_0x32db06(0x254))]();_0x3ccd3b[_0x32db06(0x251)](o['toDisposable'](()=>{var _0x488869=_0x32db06;_0x2b6438[_0x488869(0x1ed)](_0x3fbf8b=>_0x3fbf8b[_0x488869(0x1e7)]()),_0x2b6438[_0x488869(0x19f)]();})),_0x3ccd3b[_0x32db06(0x251)](this[_0x32db06(0x246)]['onCommandExecuted'](_0x7ff950=>{var _0x29f523=_0x32db06,_0x53ca8c;if(_0x7ff950[_0x29f523(0x18b)]!==o[_0x29f523(0x1b1)][_0x29f523(0x236)]||!this[_0x29f523(0x1d6)][_0x29f523(0x218)](_0x7ff950['id']))return;const {id:_0x30d30c}=_0x7ff950;let _0x33610d;_0x2b6438[_0x29f523(0x220)](_0x30d30c)?_0x33610d=_0x2b6438[_0x29f523(0x1eb)](_0x30d30c):(_0x33610d=new D['Subject'](),_0x2b6438[_0x29f523(0x224)](_0x30d30c,_0x33610d),_0x33610d[_0x29f523(0x1ac)](b['throttleTime']((_0x53ca8c=this[_0x29f523(0x1ab)][_0x29f523(0x1c7)](Z))!=null?_0x53ca8c:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29f523(0x1f0)](_0x4d87f3=>{var _0x215b79=_0x29f523;this[_0x215b79(0x1b9)][_0x215b79(0x233)]({'eventID':_[_0x215b79(0x191)][_0x215b79(0x17c)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d87f3['id']]:{'id':_0x4d87f3['id'],'params':JSON['stringify'](_0x4d87f3['params'])}}}},this[_0x215b79(0x193)]);})),_0x33610d[_0x29f523(0x1b7)](_0x7ff950);})),this['_liveShareService'][_0x32db06(0x1c2)](this['_unitID'])[_0x32db06(0x1ed)](_0x1a4520=>this['_collabSession'][_0x32db06(0x233)]({'eventID':_[_0x32db06(0x191)][_0x32db06(0x17c)],'data':{'unitID':this[_0x32db06(0x193)],'operations':{[_0x1a4520['id']]:{'id':_0x1a4520['id'],'params':JSON[_0x32db06(0x1f5)](_0x1a4520[_0x32db06(0x180)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x4d6472=_0x1d85c2,_0x2912e5;this['_status$'][_0x4d6472(0x1b7)]('idle'),(_0x2912e5=this['_commandDisposable'])==null||_0x2912e5[_0x4d6472(0x1cc)](),this[_0x4d6472(0x210)]=null;}[_0x1d85c2(0x24c)](){var _0xed983=_0x1d85c2,_0x20cb2d;(_0x20cb2d=this[_0xed983(0x210)])==null||_0x20cb2d[_0xed983(0x1cc)](),this[_0xed983(0x217)][_0xed983(0x1b7)]('following');}[_0x1d85c2(0x255)](){var _0x1734ba=_0x1d85c2,_0x97e1a;this['_status$'][_0x1734ba(0x1b7)](_0x1734ba(0x209)),(_0x97e1a=this[_0x1734ba(0x210)])==null||_0x97e1a[_0x1734ba(0x1cc)](),this['_commandDisposable']=null;}[_0x1d85c2(0x1be)](){var _0x3b2465=_0x1d85c2,_0x83a8b0;this[_0x3b2465(0x217)]['next'](_0x3b2465(0x204)),(_0x83a8b0=this[_0x3b2465(0x210)])==null||_0x83a8b0['dispose']();}[_0x1d85c2(0x19a)](_0x5c82e5){var _0x913b83=_0x1d85c2;if([_0x913b83(0x1a5),'not-following',_0x913b83(0x241)][_0x913b83(0x194)](this[_0x913b83(0x1a7)])||!_0x5c82e5['data']['presenter']||_0x5c82e5[_0x913b83(0x21e)][_0x913b83(0x24f)]===this[_0x913b83(0x1b9)][_0x913b83(0x222)]())return;this['_status']===_0x913b83(0x209)&&this[_0x913b83(0x24c)]();const _0x44590f=_0x5c82e5[_0x913b83(0x21e)]['operations'];Object[_0x913b83(0x1d2)](_0x44590f)[_0x913b83(0x1ed)](_0x3891a2=>{var _0x7f398=_0x913b83;this['_commandService']['executeCommand'](_0x3891a2['id'],_0x3891a2['params']?JSON['parse'](_0x3891a2[_0x7f398(0x180)]):null,{'fromCollab':!0x0});});}[_0x1d85c2(0x1ff)](){var _0x130894=_0x1d85c2,_0x4e59ba;this[_0x130894(0x217)][_0x130894(0x1b7)]('offline'),(_0x4e59ba=this[_0x130894(0x210)])==null||_0x4e59ba[_0x130894(0x1cc)]();}['_handleOnline'](){var _0x3c1022=_0x1d85c2;this[_0x3c1022(0x217)][_0x3c1022(0x1b7)]('idle'),this['_fetchOperations']();}},exports[_0x1d85c2(0x185)]=R([S(0x2,o[_0x1d85c2(0x196)]),S(0x3,o[_0x1d85c2(0x22f)](O)),S(0x4,o[_0x1d85c2(0x1ef)])],exports[_0x1d85c2(0x185)]);function A(){var _0x46e553=_0x1d85c2;const _0x300af2=p['useDependency'](exports[_0x46e553(0x1cb)]),_0x27c7f8=p['useDependency'](o[_0x46e553(0x1fd)]),_0x985af9=p[_0x46e553(0x1d0)](()=>_0x27c7f8[_0x46e553(0x207)](o[_0x46e553(0x258)][_0x46e553(0x257)]),void 0x0,!0x1,[]),[_0x4a46e5,_0x54394e]=f['useState'](null),[_0x2602da,_0x4e54f6]=f[_0x46e553(0x1a4)](h[_0x46e553(0x1ca)]),_0x8e5fe3=f[_0x46e553(0x225)](null);return f[_0x46e553(0x215)](()=>(_0x985af9&&_0x300af2[_0x46e553(0x1f1)](_0x985af9['getUnitId']())['then'](_0x4d4666=>{var _0x13f93d=_0x46e553;_0x54394e(_0x4d4666),_0x8e5fe3['current']=_0x4d4666['status$'][_0x13f93d(0x1f0)](_0x3028b7=>{_0x4e54f6(_0x3028b7);});}),()=>{var _0x31722d=_0x46e553,_0x250808;(_0x250808=_0x8e5fe3[_0x31722d(0x227)])==null||_0x250808['unsubscribe'](),_0x8e5fe3[_0x31722d(0x227)]=null;}),[_0x985af9,_0x300af2]),_0x4a46e5?l['jsx'](g[_0x46e553(0x1af)],{'align':'end','disabled':_0x2602da===h[_0x46e553(0x1e5)],'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[_0x46e553(0x21b)](K,{'status':_0x2602da,'coordinator':_0x4a46e5}),'children':l[_0x46e553(0x21b)](_0x46e553(0x1d7),{'className':g['clsx'](_0x46e553(0x18a),{'univer-cursor-not-allowed':_0x2602da===h[_0x46e553(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2602da!==h[_0x46e553(0x1e5)]}),'type':_0x46e553(0x1d7),'children':l['jsx'](P,{'className':_0x46e553(0x1e8)})})}):null;}function K(_0xa702c1){var _0x5768d2=_0x1d85c2;const {status:_0x8351cc,coordinator:_0x498ecf}=_0xa702c1;switch(_0x8351cc){case h[_0x5768d2(0x1ca)]:return l['jsx'](z,{'coordinator':_0x498ecf});case h['FOLLOWING']:return l['jsx'](Q,{'coordinator':_0x498ecf});case h[_0x5768d2(0x235)]:return l[_0x5768d2(0x21b)](X,{'coordinator':_0x498ecf});case h[_0x5768d2(0x1e5)]:return l[_0x5768d2(0x21b)](te,{});case h[_0x5768d2(0x1df)]:return l['jsx'](ee,{'coordinator':_0x498ecf});default:return null;}}function z(_0x23092e){var _0x374fe6=_0x1d85c2;const {coordinator:_0x4e02ef}=_0x23092e;return l[_0x374fe6(0x1d5)](l[_0x374fe6(0x1fe)],{'children':[l[_0x374fe6(0x21b)](_0x374fe6(0x1ae),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x374fe6(0x1f7)}),l[_0x374fe6(0x21b)](g[_0x374fe6(0x230)],{'onClick':()=>_0x4e02ef[_0x374fe6(0x219)](),'children':_0x374fe6(0x1ea)})]});}function Q(_0x2e775f){var _0x2c570b=_0x1d85c2;const {coordinator:_0x4bc295}=_0x2e775f;return l[_0x2c570b(0x1d5)](l['Fragment'],{'children':[l[_0x2c570b(0x21b)](_0x2c570b(0x1ae),{'className':_0x2c570b(0x202),'children':_0x2c570b(0x1d4)}),l['jsx'](g[_0x2c570b(0x230)],{'onClick':()=>_0x4bc295[_0x2c570b(0x232)](),'children':'Stop\x20following'})]});}function X(_0x1216af){var _0x30d442=_0x1d85c2;const {coordinator:_0x3702b9}=_0x1216af;return l[_0x30d442(0x1d5)](l['Fragment'],{'children':[l[_0x30d442(0x21b)](_0x30d442(0x1ae),{'className':_0x30d442(0x202),'children':_0x30d442(0x22c)}),l[_0x30d442(0x21b)](g[_0x30d442(0x230)],{'variant':_0x30d442(0x253),'onClick':()=>_0x3702b9[_0x30d442(0x21f)](),'children':_0x30d442(0x23c)})]});}function ee(_0x372003){var _0x1ef50c=_0x1d85c2;const {coordinator:_0x51c0db}=_0x372003;return l[_0x1ef50c(0x1d5)](l[_0x1ef50c(0x1fe)],{'children':[l[_0x1ef50c(0x21b)](_0x1ef50c(0x1ae),{'className':_0x1ef50c(0x202),'children':_0x1ef50c(0x1e2)}),l[_0x1ef50c(0x21b)](g[_0x1ef50c(0x230)],{'variant':_0x1ef50c(0x1c4),'onClick':()=>_0x51c0db[_0x1ef50c(0x1ee)](),'children':_0x1ef50c(0x18e)})]});}function te(){var _0x16b85e=_0x1d85c2;return l[_0x16b85e(0x21b)](l[_0x16b85e(0x1fe)],{'children':_0x16b85e(0x183)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x310619,_0x44eed4,_0xcdfda2,_0x509752)=>{var _0x4bedd0=_0x1d85c2;for(var _0x19bba3=_0x509752>0x1?void 0x0:_0x509752?ie(_0x44eed4,_0xcdfda2):_0x44eed4,_0x1cd893=_0x310619[_0x4bedd0(0x17f)]-0x1,_0x552d1d;_0x1cd893>=0x0;_0x1cd893--)(_0x552d1d=_0x310619[_0x1cd893])&&(_0x19bba3=_0x552d1d(_0x19bba3)||_0x19bba3);return _0x19bba3;},L=(_0x1802cd,_0x304510)=>(_0x4d94a8,_0x329b61)=>_0x304510(_0x4d94a8,_0x329b61,_0x1802cd);exports[_0x1d85c2(0x24d)]=class extends o[_0x1d85c2(0x245)]{constructor(_0x3b4ad5,_0x546ac8){var _0x2e14a8=_0x1d85c2;super(),this['_injector']=_0x3b4ad5,this[_0x2e14a8(0x20b)]=_0x546ac8,this[_0x2e14a8(0x1c3)]();}['_mountLiveShare'](){var _0x49d7ef=_0x1d85c2;this[_0x49d7ef(0x1cd)](this[_0x49d7ef(0x20b)][_0x49d7ef(0x1e6)](p['BuiltInUIPart'][_0x49d7ef(0x1a2)],()=>p[_0x49d7ef(0x24a)](A,this[_0x49d7ef(0x1d8)])));}},exports[_0x1d85c2(0x24d)]=ne([L(0x0,o[_0x1d85c2(0x22f)](o[_0x1d85c2(0x1e0)])),L(0x1,p[_0x1d85c2(0x200)])],exports[_0x1d85c2(0x24d)]);var re=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],oe=(_0x1db36b,_0x274ef0,_0xa60ff1)=>_0x274ef0 in _0x1db36b?re(_0x1db36b,_0x274ef0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa60ff1}):_0x1db36b[_0x274ef0]=_0xa60ff1,ae=(_0x70a9d4,_0x34da6d,_0x2734e3,_0x2fb954)=>{var _0xc06d6=_0x1d85c2;for(var _0x58ba41=_0x2fb954>0x1?void 0x0:_0x2fb954?se(_0x34da6d,_0x2734e3):_0x34da6d,_0x576817=_0x70a9d4[_0xc06d6(0x17f)]-0x1,_0x133416;_0x576817>=0x0;_0x576817--)(_0x133416=_0x70a9d4[_0x576817])&&(_0x58ba41=_0x133416(_0x58ba41)||_0x58ba41);return _0x58ba41;},N=(_0x27f652,_0x2542d1)=>(_0x5d571c,_0x1fc2c8)=>_0x2542d1(_0x5d571c,_0x1fc2c8,_0x27f652),T=(_0x2c2aba,_0x6aba40,_0x183593)=>oe(_0x2c2aba,typeof _0x6aba40!=_0x1d85c2(0x1fc)?_0x6aba40+'':_0x6aba40,_0x183593);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1d85c2(0x1b3)]=class extends o['Plugin']{constructor(_0x4ebce4=x,_0x23b8ba,_0x3465de){var _0x19bce4=_0x1d85c2;super(),this[_0x19bce4(0x21c)]=_0x4ebce4,this['_injector']=_0x23b8ba,this[_0x19bce4(0x1ab)]=_0x3465de;const {..._0x183547}=o[_0x19bce4(0x223)]({},x,this[_0x19bce4(0x21c)]);this[_0x19bce4(0x1ab)]['setConfig']($,_0x183547);}[_0x1d85c2(0x214)](){var _0x39a1bb=_0x1d85c2;o[_0x39a1bb(0x21d)](this[_0x39a1bb(0x1d8)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x39a1bb(0x24d)]]],this[_0x39a1bb(0x21c)][_0x39a1bb(0x195)])),o['touchDependencies'](this[_0x39a1bb(0x1d8)],[[E]]);}[_0x1d85c2(0x1c5)](){var _0xadff82=_0x1d85c2;o[_0xadff82(0x1e4)](this[_0xadff82(0x1d8)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1d85c2(0x1b3)],'type',o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x1d85c2(0x1b3)],'pluginName',le),exports[_0x1d85c2(0x1b3)]=ae([o[_0x1d85c2(0x1a9)](m[_0x1d85c2(0x1f8)]),N(0x1,o[_0x1d85c2(0x22f)](o[_0x1d85c2(0x1e0)])),N(0x2,o[_0x1d85c2(0x196)])],exports[_0x1d85c2(0x1b3)]),exports[_0x1d85c2(0x216)]=A,exports[_0x1d85c2(0x23b)]=O,exports[_0x1d85c2(0x228)]=h;
1
+ 'use strict';var _0x32e601=_0x2d95;(function(_0x3d8a8f,_0x28a65a){var _0x3d19d7=_0x2d95,_0x23a726=_0x3d8a8f();while(!![]){try{var _0x12dd8f=-parseInt(_0x3d19d7(0x1a6))/0x1+parseInt(_0x3d19d7(0x17e))/0x2+-parseInt(_0x3d19d7(0xcc))/0x3+parseInt(_0x3d19d7(0x159))/0x4*(parseInt(_0x3d19d7(0xf1))/0x5)+-parseInt(_0x3d19d7(0x146))/0x6*(parseInt(_0x3d19d7(0x19c))/0x7)+-parseInt(_0x3d19d7(0x15a))/0x8+parseInt(_0x3d19d7(0xe6))/0x9*(parseInt(_0x3d19d7(0x15b))/0xa);if(_0x12dd8f===_0x28a65a)break;else _0x23a726['push'](_0x23a726['shift']());}catch(_0x489a6e){_0x23a726['push'](_0x23a726['shift']());}}}(_0x55c0,0x3ca27));var U=Object[_0x32e601(0x184)],F=(_0x38fd21,_0x18beb5,_0x1a96ae)=>_0x18beb5 in _0x38fd21?U(_0x38fd21,_0x18beb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a96ae}):_0x38fd21[_0x18beb5]=_0x1a96ae,v=(_0x47577b,_0x349db6,_0x431d89)=>F(_0x47577b,typeof _0x349db6!=_0x32e601(0x169)?_0x349db6+'':_0x349db6,_0x431d89);Object[_0x32e601(0x184)](exports,Symbol[_0x32e601(0x11a)],{'value':_0x32e601(0xd2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x32e601(0x122),x={};class O extends o['Disposable']{constructor(){var _0xee238e=_0x32e601;super(...arguments),v(this,_0xee238e(0x1aa),new Set()),v(this,_0xee238e(0x194),new Set());}['registerSharedOperation'](_0x20c961){var _0x34d2b6=_0x32e601;return this['_sharedOperations'][_0x34d2b6(0x157)](_0x20c961),o[_0x34d2b6(0x113)](()=>this[_0x34d2b6(0x1aa)][_0x34d2b6(0x118)](_0x20c961));}[_0x32e601(0x16c)](_0x182642){var _0x2da850=_0x32e601;return this[_0x2da850(0x194)][_0x2da850(0x157)](_0x182642),o['toDisposable'](()=>this[_0x2da850(0x194)][_0x2da850(0x118)](_0x182642));}[_0x32e601(0x18c)](_0x434609){var _0x232b5b=_0x32e601;return this[_0x232b5b(0x1aa)][_0x232b5b(0xcf)](_0x434609);}[_0x32e601(0x14c)](_0x22eb6c){var _0xdecd95=_0x32e601;return Array['from'](this[_0xdecd95(0x194)])[_0xdecd95(0x17b)](_0x5e6e77=>_0x5e6e77(_0x22eb6c));}}var H=Object[_0x32e601(0xf6)],V=(_0x14fe23,_0xcacd05,_0x2575b1,_0x5a28ad)=>{var _0x2d96f0=_0x32e601;for(var _0x276c07=_0x5a28ad>0x1?void 0x0:_0x5a28ad?H(_0xcacd05,_0x2575b1):_0xcacd05,_0x4f84de=_0x14fe23[_0x2d96f0(0x1a8)]-0x1,_0x812e1f;_0x4f84de>=0x0;_0x4f84de--)(_0x812e1f=_0x14fe23[_0x4f84de])&&(_0x276c07=_0x812e1f(_0x276c07)||_0x276c07);return _0x276c07;},k=(_0x1d45b2,_0x3d661a)=>(_0xcb38b,_0x10772a)=>_0x3d661a(_0xcb38b,_0x10772a,_0x1d45b2);let E=class extends o[_0x32e601(0x181)]{constructor(_0x2ca939){var _0x4e3477=_0x32e601;super(),this[_0x4e3477(0x14b)]=_0x2ca939,this['_init']();}[_0x32e601(0xda)](){var _0x1ad119=_0x32e601;[w[_0x1ad119(0x172)]['id'],w[_0x1ad119(0x195)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1ad119(0xfc)](_0x79d87d=>{var _0x5e0d78=_0x1ad119;this[_0x5e0d78(0x155)](this[_0x5e0d78(0x14b)][_0x5e0d78(0x11c)](_0x79d87d));});}};function _0x55c0(){var _0x4bff7d=['pluginName','stopFollowing','url(#$1','button','HEADER_MENU','touchDependencies','Stop\x20presenting','LiveShareCoordinator','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','children','12tEMiSo','useRef','indexOf','status$','substring','_liveShareService','getInitialStates','random','jsxs','onCommandExecuted','find','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','SAME_OPERATION_SHARE_INTERVAL','init','_commandDisposable','disposeWithMe','_config','add','className','20940lUhWrk','3400904tGKVbz','31270zoJeSr','hasOwnProperty','string','entries','InsertSheetMutation','fill','Start\x20following','LIVESHARE_NEW_HOST','not-following','reverse','LIVESHARE_REQUEST_HOST','Start','IConfigService','clsx','symbol','next','_injector','registerInitialStateReporter','connectInjector','_commandService','pipe','SetWorksheetActiveOperation','end','SetZoomRatioOperation','Subject','asObservable','idSuffix','setConfig','_beIdle','none','DisposableCollection','live-share-icon','map','_handleOperation','UniverInstanceType','408522Vgjtrk','_status$','getTypeOfUnitDisposed$','Disposable','then','startFollowing','defineProperty','tag','concat','onStarting','_handleNewHost','unitId','evenodd','UNIVER_SHEET','shouldShareOperation','1em','defs','subscribe','LiveShareStatus','_configService','replace','text','_reporters','SetScrollOperation','clear','_fetchOperations','parseProtocolChangeset','univerjs-icon\x20univerjs-icon-','offline','takeUntil','259427USHHsH','_mountLiveShare','set','Button','merge','OFFLINE','defIds','_handleOnline','CollaborationEvent','params','220508AKDUnX','_stopPresenting','length','_handleTerminate','_sharedOperations','values','UniverLiveSharePlugin','assign','unsubscribe','getMemberID','operations','960090EtdTac','registerComponent','_univerInstanceService','has','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Module','RxDisposable','getOwnPropertySymbols','tryStartPresenting','LiveShareIcon','div','univer-mb-3\x20univer-w-full\x20univer-text-sm','current','_init','LIVESHARE_OPERATION','stopPresenting','_startLiveShareCoordinator','getUnitId','xlink:href','extend','LiveShareController','registerDependencies','dispose$','getLiveShareCoordinator','requireSession','2547lxGTiH','_status','mutations','Injector','presenter','IDLE','throttleTime','Inject','NOT_FOLLOWING','LIVESHARE_TERMINATE','LiveShare','190zGYgvB','Fragment','IUniverInstanceService','use','path','getOwnPropertyDescriptor','Plugin','UniverIcon','_startPresenting','FOLLOWING','idle','forEach','_collabSession','following','complete','Dropdown','_entities','mergeOverrideWithDependencies','getCurrentTypeOfUnit$','svg','BehaviorSubject','presenting','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','Present\x20this\x20document','ONLINE','icon','UNIVER_UNKNOWN','stringify','trim','_handleNewChangeSets','dispose','forwardRef','univer-size-4','onRendered','toDisposable','LiveShareService','currentColor','_uiPartsService','displayName','delete','apply','toStringTag','includes','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','_collabSessionService','DesktopLiveShareController','attrs','jsx','live-share.config','prototype','getTypeOfUnitAdded$','useDependency','data','getValue','_presenter','createElement','send','parse','ICommandService','colorChannel1','type','_unitID','_handleOffline','PRESENTING','get','_startFollowing','You\x27are\x20offline.','sessionStatus$','override','mask','useState','call','createInstance','_stopFollowing'];_0x55c0=function(){return _0x4bff7d;};return _0x55c0();}E=V([k(0x0,o[_0x32e601(0xed)](O))],E);var u=function(){var _0x25419f=_0x32e601;return u=Object[_0x25419f(0x1ad)]||function(_0x29e237){var _0x131a72=_0x25419f;for(var _0x10c0a1,_0x400fcc=0x1,_0x2c6c53=arguments['length'];_0x400fcc<_0x2c6c53;_0x400fcc++){_0x10c0a1=arguments[_0x400fcc];for(var _0x22c60e in _0x10c0a1)Object[_0x131a72(0x123)][_0x131a72(0x15c)]['call'](_0x10c0a1,_0x22c60e)&&(_0x29e237[_0x22c60e]=_0x10c0a1[_0x22c60e]);}return _0x29e237;},u[_0x25419f(0x119)](this,arguments);},M=function(_0x4a3891,_0x106375){var _0x4f38d0=_0x32e601,_0x33e45d={};for(var _0x196303 in _0x4a3891)Object[_0x4f38d0(0x123)]['hasOwnProperty'][_0x4f38d0(0x139)](_0x4a3891,_0x196303)&&_0x106375[_0x4f38d0(0x148)](_0x196303)<0x0&&(_0x33e45d[_0x196303]=_0x4a3891[_0x196303]);if(_0x4a3891!=null&&typeof Object[_0x4f38d0(0xd4)]=='function'){for(var _0x13736d=0x0,_0x196303=Object[_0x4f38d0(0xd4)](_0x4a3891);_0x13736d<_0x196303[_0x4f38d0(0x1a8)];_0x13736d++)_0x106375[_0x4f38d0(0x148)](_0x196303[_0x13736d])<0x0&&Object[_0x4f38d0(0x123)]['propertyIsEnumerable'][_0x4f38d0(0x139)](_0x4a3891,_0x196303[_0x13736d])&&(_0x33e45d[_0x196303[_0x13736d]]=_0x4a3891[_0x196303[_0x13736d]]);}return _0x33e45d;},j=f[_0x32e601(0x110)](function(_0x3b632f,_0x55d6ae){var _0x33e96b=_0x32e601,_0x5b9ad4=_0x3b632f[_0x33e96b(0x10a)],_0x281bed=_0x3b632f['id'],_0xce78c3=_0x3b632f[_0x33e96b(0x158)],_0x4835fa=_0x3b632f[_0x33e96b(0xe0)],_0x2f0041=M(_0x3b632f,[_0x33e96b(0x10a),'id',_0x33e96b(0x158),'extend']),_0xda810c=_0x33e96b(0x199)[_0x33e96b(0x186)](_0x281bed,'\x20')['concat'](_0xce78c3||'')[_0x33e96b(0x10d)](),_0x2ddf96=f[_0x33e96b(0x147)]('_'['concat'](G()));return y(_0x5b9ad4,''[_0x33e96b(0x186)](_0x281bed),{'defIds':_0x5b9ad4[_0x33e96b(0x1a2)],'idSuffix':_0x2ddf96[_0x33e96b(0xd9)]},u({'ref':_0x55d6ae,'className':_0xda810c},_0x2f0041),_0x4835fa);});function y(_0x2e7990,_0x58bce6,_0x28f215,_0x2f1ec8,_0x506501){var _0x1565e6=_0x32e601;return f[_0x1565e6(0x129)](_0x2e7990[_0x1565e6(0x185)],u(u({'key':_0x58bce6},q(_0x2e7990,_0x28f215,_0x506501)),_0x2f1ec8),(W(_0x2e7990,_0x28f215)['children']||[])[_0x1565e6(0x17b)](function(_0x389da3,_0x4a1fb7){var _0xae1487=_0x1565e6;return y(_0x389da3,''['concat'](_0x58bce6,'-')[_0xae1487(0x186)](_0x2e7990[_0xae1487(0x185)],'-')[_0xae1487(0x186)](_0x4a1fb7),_0x28f215,void 0x0,_0x506501);}));}function q(_0x35a7a4,_0xd21cdc,_0x22815f){var _0xb84d70=_0x32e601,_0x45c8d6=u({},_0x35a7a4[_0xb84d70(0x120)]);_0x22815f!=null&&_0x22815f[_0xb84d70(0x12d)]&&_0x45c8d6[_0xb84d70(0x160)]===_0xb84d70(0x12d)&&(_0x45c8d6[_0xb84d70(0x160)]=_0x22815f['colorChannel1']),_0x35a7a4[_0xb84d70(0x185)]===_0xb84d70(0x137)&&_0x45c8d6['id']&&(_0x45c8d6['id']=_0x45c8d6['id']+_0xd21cdc[_0xb84d70(0x175)]),Object['entries'](_0x45c8d6)[_0xb84d70(0xfc)](function(_0x190d92){var _0x22d978=_0xb84d70,_0x30cf1b=_0x190d92[0x0],_0x14edf1=_0x190d92[0x1];_0x30cf1b===_0x22d978(0x137)&&typeof _0x14edf1=='string'&&(_0x45c8d6[_0x30cf1b]=_0x14edf1[_0x22d978(0x192)](/url\(#(.*)\)/,_0x22d978(0x13e)[_0x22d978(0x186)](_0xd21cdc[_0x22d978(0x175)],')')));});var _0x31debe=_0xd21cdc[_0xb84d70(0x1a2)];return!_0x31debe||_0x31debe[_0xb84d70(0x1a8)]===0x0||(_0x35a7a4[_0xb84d70(0x185)]===_0xb84d70(0xf4)&&_0x45c8d6[_0xb84d70(0xdf)]&&(_0x45c8d6[_0xb84d70(0xdf)]=_0x45c8d6[_0xb84d70(0xdf)]+_0xd21cdc[_0xb84d70(0x175)]),Object[_0xb84d70(0x15e)](_0x45c8d6)[_0xb84d70(0xfc)](function(_0x5ae6c2){var _0x5f2488=_0xb84d70,_0x4cee6c=_0x5ae6c2[0x0],_0x18856e=_0x5ae6c2[0x1];typeof _0x18856e==_0x5f2488(0x15d)&&(_0x45c8d6[_0x4cee6c]=_0x18856e[_0x5f2488(0x192)](/url\(#(.*)\)/,_0x5f2488(0x13e)[_0x5f2488(0x186)](_0xd21cdc['idSuffix'],')')));})),_0x45c8d6;}function W(_0x22e57c,_0x306382){var _0x4ca396=_0x32e601,_0x119729,_0x3fc791=_0x306382['defIds'];return!_0x3fc791||_0x3fc791['length']===0x0?_0x22e57c:_0x22e57c[_0x4ca396(0x185)]===_0x4ca396(0x18e)&&(!((_0x119729=_0x22e57c[_0x4ca396(0x145)])===null||_0x119729===void 0x0)&&_0x119729[_0x4ca396(0x1a8)])?u(u({},_0x22e57c),{'children':_0x22e57c[_0x4ca396(0x145)][_0x4ca396(0x17b)](function(_0x478f67){var _0x5ebce3=_0x4ca396;return typeof _0x478f67[_0x5ebce3(0x120)]['id']==_0x5ebce3(0x15d)&&_0x3fc791&&_0x3fc791[_0x5ebce3(0x11b)](_0x478f67[_0x5ebce3(0x120)]['id'])?u(u({},_0x478f67),{'attrs':u(u({},_0x478f67[_0x5ebce3(0x120)]),{'id':_0x478f67[_0x5ebce3(0x120)]['id']+_0x306382['idSuffix']})}):_0x478f67;})}):_0x22e57c;}function G(){var _0x3049be=_0x32e601;return Math[_0x3049be(0x14d)]()['toString'](0x24)[_0x3049be(0x14a)](0x2,0x8);}j['displayName']=_0x32e601(0xf8);var B={'tag':_0x32e601(0x104),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x32e601(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x32e601(0x18d),'height':_0x32e601(0x18d)},'children':[{'tag':_0x32e601(0xf5),'attrs':{'fill':'currentColor','d':_0x32e601(0x107)}},{'tag':_0x32e601(0xf5),'attrs':{'fill':_0x32e601(0x115),'d':_0x32e601(0x151),'fillRule':'evenodd','clipRule':_0x32e601(0x18a)}}]},P=f[_0x32e601(0x110)](function(_0x5450bf,_0x53aba0){var _0x8cd991=_0x32e601;return f[_0x8cd991(0x129)](j,Object[_0x8cd991(0x1ad)]({},_0x5450bf,{'id':_0x8cd991(0x17a),'ref':_0x53aba0,'icon':B}));});P[_0x32e601(0x117)]=_0x32e601(0xd6);var Y=Object[_0x32e601(0xf6)],R=(_0x375a96,_0x258bdf,_0x299d1e,_0x2f2534)=>{var _0x1781d1=_0x32e601;for(var _0x1bdab4=_0x2f2534>0x1?void 0x0:_0x2f2534?Y(_0x258bdf,_0x299d1e):_0x258bdf,_0x504972=_0x375a96[_0x1781d1(0x1a8)]-0x1,_0x10c81e;_0x504972>=0x0;_0x504972--)(_0x10c81e=_0x375a96[_0x504972])&&(_0x1bdab4=_0x10c81e(_0x1bdab4)||_0x1bdab4);return _0x1bdab4;},S=(_0x176ff5,_0x5c661c)=>(_0x3ab205,_0x8b4f30)=>_0x5c661c(_0x3ab205,_0x8b4f30,_0x176ff5);exports['LiveShareController']=class extends o[_0x32e601(0xd3)]{constructor(_0x3a6575,_0x5912ad,_0x1d29aa){var _0x348f54=_0x32e601;super(),v(this,_0x348f54(0x101),new Map()),(this[_0x348f54(0xce)]=_0x3a6575,this[_0x348f54(0x16b)]=_0x5912ad,this['_collabSessionService']=_0x1d29aa,this[_0x348f54(0xda)]());}async[_0x32e601(0xe4)](_0x18703a){var _0x1f307a=_0x32e601;return this['_entities']['has'](_0x18703a)||await this[_0x1f307a(0xdd)](_0x18703a),this[_0x1f307a(0x101)][_0x1f307a(0x132)](_0x18703a);}[_0x32e601(0xda)](){var _0x3723aa=_0x32e601;this['_univerInstanceService'][_0x3723aa(0x124)](o[_0x3723aa(0x17d)][_0x3723aa(0x18b)])[_0x3723aa(0x16f)](b[_0x3723aa(0x19b)](this[_0x3723aa(0xe3)]))[_0x3723aa(0x18f)](async _0x251718=>{var _0x44b3fe=_0x3723aa;const _0x4c3b87=_0x251718[_0x44b3fe(0xde)]();this['_entities'][_0x44b3fe(0xcf)](_0x4c3b87)||this[_0x44b3fe(0xdd)](_0x4c3b87);}),this[_0x3723aa(0xce)][_0x3723aa(0x180)](o['UniverInstanceType'][_0x3723aa(0x18b)])[_0x3723aa(0x16f)](b[_0x3723aa(0x19b)](this['dispose$']))['subscribe'](_0x31af69=>{var _0x2a30aa=_0x3723aa;const _0x34b498=_0x31af69[_0x2a30aa(0xde)](),_0x1b919f=this[_0x2a30aa(0x101)][_0x2a30aa(0x132)](_0x34b498);_0x1b919f==null||_0x1b919f[_0x2a30aa(0x10f)]();});}async[_0x32e601(0xdd)](_0x2f9f26){var _0x192d3c=_0x32e601;const _0x4e0fdc=await this[_0x192d3c(0x11e)][_0x192d3c(0xe5)](_0x2f9f26),_0x4b5fff=this[_0x192d3c(0x16b)][_0x192d3c(0x13a)](exports['LiveShareCoordinator'],_0x2f9f26,_0x4e0fdc);return _0x4b5fff[_0x192d3c(0x153)](),this[_0x192d3c(0x101)][_0x192d3c(0x19e)](_0x2f9f26,_0x4b5fff),_0x4b5fff;}},exports[_0x32e601(0xe1)]=R([S(0x0,o[_0x32e601(0xf3)]),S(0x1,o[_0x32e601(0xed)](o[_0x32e601(0xe9)])),S(0x2,o[_0x32e601(0xed)](m['CollaborationSessionService']))],exports[_0x32e601(0xe1)]);var h=(_0x5a29e4=>(_0x5a29e4['OFFLINE']=_0x32e601(0x19a),_0x5a29e4['IDLE']=_0x32e601(0xfb),_0x5a29e4[_0x32e601(0xfa)]='following',_0x5a29e4['NOT_FOLLOWING']=_0x32e601(0x163),_0x5a29e4[_0x32e601(0x131)]='presenting',_0x5a29e4))(h||{});const Z=_0x32e601(0x152),J=0xc8;exports[_0x32e601(0x143)]=class extends o[_0x32e601(0xd3)]{constructor(_0x482757,_0x4c0c3f,_0x1b3f72,_0x212d58,_0x2a37ee){var _0x5e5724=_0x32e601;super(),v(this,'_status$',new D[(_0x5e5724(0x105))](_0x5e5724(0xfb))),v(this,_0x5e5724(0x149),this[_0x5e5724(0x17f)][_0x5e5724(0x174)]()),v(this,_0x5e5724(0xda),!0x1),v(this,_0x5e5724(0x154),null),v(this,'_presenter',null),(this['_unitID']=_0x482757,this['_collabSession']=_0x4c0c3f,this[_0x5e5724(0x191)]=_0x1b3f72,this['_liveShareService']=_0x212d58,this[_0x5e5724(0x16e)]=_0x2a37ee);}get['_status'](){var _0x5c87fe=_0x32e601;return this['_status$'][_0x5c87fe(0x127)]();}[_0x32e601(0x10f)](){var _0x4fd9f0=_0x32e601,_0x2a1f44;(_0x2a1f44=this[_0x4fd9f0(0x154)])==null||_0x2a1f44[_0x4fd9f0(0x10f)](),this[_0x4fd9f0(0x17f)][_0x4fd9f0(0x16a)](_0x4fd9f0(0xfb)),this[_0x4fd9f0(0x17f)]['complete']();}['init'](){var _0x81c6cf=_0x32e601;this['_init']||(this[_0x81c6cf(0xda)]=!0x0,this[_0x81c6cf(0xfd)][_0x81c6cf(0x135)][_0x81c6cf(0x16f)](b[_0x81c6cf(0x19b)](this[_0x81c6cf(0xe3)]))['subscribe'](_0x5a169a=>{var _0x2edf80=_0x81c6cf;switch(_0x5a169a){case m['SessionStatus'][_0x2edf80(0x1a1)]:this[_0x2edf80(0x130)]();break;case m['SessionStatus'][_0x2edf80(0x109)]:this['_handleOnline']();break;}}),this[_0x81c6cf(0xfd)]['event$'][_0x81c6cf(0x16f)](b[_0x81c6cf(0x19b)](this[_0x81c6cf(0xe3)]))[_0x81c6cf(0x18f)](_0x1d850c=>{var _0x18b4a7=_0x81c6cf;const {eventID:_0x56addd}=_0x1d850c;switch(_0x56addd){case _[_0x18b4a7(0x1a4)][_0x18b4a7(0x162)]:this[_0x18b4a7(0x188)](_0x1d850c);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x18b4a7(0x17c)](_0x1d850c);break;case _[_0x18b4a7(0x1a4)]['LIVESHARE_TERMINATE']:this[_0x18b4a7(0x1a9)]();break;case _['CollaborationEvent'][_0x18b4a7(0xd0)]:this[_0x18b4a7(0x10e)](_0x1d850c);break;}}));}[_0x32e601(0xd5)](){var _0x3cb0ae=_0x32e601;this[_0x3cb0ae(0xfd)][_0x3cb0ae(0x12a)]({'eventID':_[_0x3cb0ae(0x1a4)][_0x3cb0ae(0x165)],'data':{'unitID':this['_unitID'],'userID':this[_0x3cb0ae(0xfd)][_0x3cb0ae(0x1af)]()}},this['_unitID']);}[_0x32e601(0xdc)](){var _0x3702eb=_0x32e601;this[_0x3702eb(0xe7)]===_0x3702eb(0x106)&&(this[_0x3702eb(0x17f)]['next'](_0x3702eb(0xfb)),this[_0x3702eb(0xfd)][_0x3702eb(0x12a)]({'eventID':_['CollaborationEvent'][_0x3702eb(0xef)],'data':{'unitID':this[_0x3702eb(0x12f)]}},this['_unitID']));}[_0x32e601(0x183)](){var _0x1f3a5b=_0x32e601;this['_status']===_0x1f3a5b(0x163)&&(this[_0x1f3a5b(0x17f)][_0x1f3a5b(0x16a)](_0x1f3a5b(0xfe)),this[_0x1f3a5b(0x133)]());}[_0x32e601(0x13d)](){var _0x1e4401=_0x32e601;this[_0x1e4401(0xe7)]==='following'&&this['_stopFollowing']();}[_0x32e601(0x188)](_0xd545c1){var _0x75a15e=_0x32e601;const {presenter:_0x5daf44}=_0xd545c1[_0x75a15e(0x126)],_0x1b9015=this['_collabSession'][_0x75a15e(0x1af)]();this[_0x75a15e(0x128)]=_0x5daf44,_0x5daf44===_0x1b9015?(this[_0x75a15e(0x13b)](),this[_0x75a15e(0xf9)]()):this[_0x75a15e(0xe7)]!==_0x75a15e(0x163)&&(this['_stopPresenting'](),this[_0x75a15e(0x133)]());}[_0x32e601(0x197)](){var _0x46441f=_0x32e601;const _0x28f74d={'eventID':_[_0x46441f(0x1a4)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x46441f(0xfd)]['send'](_0x28f74d,this[_0x46441f(0x12f)]);}[_0x32e601(0x1a9)](){var _0x2f93bb=_0x32e601;this[_0x2f93bb(0x128)]=null,this[_0x2f93bb(0xe7)]!==_0x2f93bb(0x106)&&this[_0x2f93bb(0x177)]();}[_0x32e601(0x10e)](_0x5fa10e){var _0x56ed8c=_0x32e601;if(this['_status']==='following'&&this[_0x56ed8c(0x128)]===_0x5fa10e[_0x56ed8c(0x126)]['memberID']){const _0x54a98b=_[_0x56ed8c(0x198)](_0x5fa10e[_0x56ed8c(0x126)])[_0x56ed8c(0xe8)][_0x56ed8c(0x164)]()[_0x56ed8c(0x150)](_0x58a0ec=>_0x58a0ec['id']===C[_0x56ed8c(0x15f)]['id']);if(_0x54a98b){const _0x31f844=_0x54a98b[_0x56ed8c(0x1a5)][_0x56ed8c(0x189)],_0x445878=_0x54a98b[_0x56ed8c(0x1a5)]['sheet']['id'];setTimeout(()=>{var _0x115a99=_0x56ed8c;this[_0x115a99(0x16e)]['executeCommand'](C[_0x115a99(0x170)]['id'],{'unitId':_0x31f844,'subUnitId':_0x445878},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x28ef83=_0x32e601;this[_0x28ef83(0x17f)]['next'](_0x28ef83(0x106));const _0x22b043=new Map(),_0x339519=this[_0x28ef83(0x154)]=new o[(_0x28ef83(0x179))]();_0x339519[_0x28ef83(0x157)](o[_0x28ef83(0x113)](()=>{var _0xf7a3d1=_0x28ef83;_0x22b043[_0xf7a3d1(0xfc)](_0x151dcd=>_0x151dcd[_0xf7a3d1(0xff)]()),_0x22b043[_0xf7a3d1(0x196)]();})),_0x339519[_0x28ef83(0x157)](this[_0x28ef83(0x16e)][_0x28ef83(0x14f)](_0x460cdb=>{var _0x24f7b1=_0x28ef83,_0x19642f;if(_0x460cdb[_0x24f7b1(0x12e)]!==o['CommandType']['OPERATION']||!this[_0x24f7b1(0x14b)][_0x24f7b1(0x18c)](_0x460cdb['id']))return;const {id:_0x4e23a8}=_0x460cdb;let _0x56e0b8;_0x22b043[_0x24f7b1(0xcf)](_0x4e23a8)?_0x56e0b8=_0x22b043['get'](_0x4e23a8):(_0x56e0b8=new D[(_0x24f7b1(0x173))](),_0x22b043[_0x24f7b1(0x19e)](_0x4e23a8,_0x56e0b8),_0x56e0b8['pipe'](b[_0x24f7b1(0xec)]((_0x19642f=this[_0x24f7b1(0x191)]['getConfig'](Z))!=null?_0x19642f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24f7b1(0x18f)](_0x43d134=>{var _0x23b4cd=_0x24f7b1;this[_0x23b4cd(0xfd)]['send']({'eventID':_['CollaborationEvent'][_0x23b4cd(0xdb)],'data':{'unitID':this[_0x23b4cd(0x12f)],'operations':{[_0x43d134['id']]:{'id':_0x43d134['id'],'params':JSON[_0x23b4cd(0x10c)](_0x43d134[_0x23b4cd(0x1a5)])}}}},this[_0x23b4cd(0x12f)]);})),_0x56e0b8['next'](_0x460cdb);})),this[_0x28ef83(0x14b)][_0x28ef83(0x14c)](this[_0x28ef83(0x12f)])[_0x28ef83(0xfc)](_0x19151c=>this[_0x28ef83(0xfd)]['send']({'eventID':_['CollaborationEvent'][_0x28ef83(0xdb)],'data':{'unitID':this[_0x28ef83(0x12f)],'operations':{[_0x19151c['id']]:{'id':_0x19151c['id'],'params':JSON['stringify'](_0x19151c[_0x28ef83(0x1a5)])}}}},this[_0x28ef83(0x12f)]));}[_0x32e601(0x1a7)](){var _0x32c6e6=_0x32e601,_0x4a6c7f;this[_0x32c6e6(0x17f)][_0x32c6e6(0x16a)](_0x32c6e6(0xfb)),(_0x4a6c7f=this['_commandDisposable'])==null||_0x4a6c7f[_0x32c6e6(0x10f)](),this[_0x32c6e6(0x154)]=null;}[_0x32e601(0x133)](){var _0x2d467a=_0x32e601,_0x17ff88;(_0x17ff88=this[_0x2d467a(0x154)])==null||_0x17ff88[_0x2d467a(0x10f)](),this[_0x2d467a(0x17f)][_0x2d467a(0x16a)]('following');}[_0x32e601(0x177)](){var _0x4132ca=_0x32e601,_0x9e76ac;this[_0x4132ca(0x17f)][_0x4132ca(0x16a)]('idle'),(_0x9e76ac=this['_commandDisposable'])==null||_0x9e76ac[_0x4132ca(0x10f)](),this['_commandDisposable']=null;}[_0x32e601(0x13b)](){var _0x22c2a8=_0x32e601,_0x235cea;this[_0x22c2a8(0x17f)][_0x22c2a8(0x16a)]('not-following'),(_0x235cea=this[_0x22c2a8(0x154)])==null||_0x235cea[_0x22c2a8(0x10f)]();}[_0x32e601(0x17c)](_0x4fb675){var _0x348355=_0x32e601;if(['presenting','not-following',_0x348355(0x19a)][_0x348355(0x11b)](this[_0x348355(0xe7)])||!_0x4fb675[_0x348355(0x126)][_0x348355(0xea)]||_0x4fb675['data'][_0x348355(0xea)]===this['_collabSession'][_0x348355(0x1af)]())return;this['_status']===_0x348355(0xfb)&&this['_startFollowing']();const _0x49a0d8=_0x4fb675[_0x348355(0x126)][_0x348355(0xcb)];Object[_0x348355(0x1ab)](_0x49a0d8)[_0x348355(0xfc)](_0x5d38d8=>{var _0x3f89e8=_0x348355;this['_commandService']['executeCommand'](_0x5d38d8['id'],_0x5d38d8[_0x3f89e8(0x1a5)]?JSON[_0x3f89e8(0x12b)](_0x5d38d8[_0x3f89e8(0x1a5)]):null,{'fromCollab':!0x0});});}[_0x32e601(0x130)](){var _0x38b8c2=_0x32e601,_0x271b6f;this[_0x38b8c2(0x17f)][_0x38b8c2(0x16a)](_0x38b8c2(0x19a)),(_0x271b6f=this[_0x38b8c2(0x154)])==null||_0x271b6f['dispose']();}[_0x32e601(0x1a3)](){var _0x351c48=_0x32e601;this[_0x351c48(0x17f)][_0x351c48(0x16a)](_0x351c48(0xfb)),this[_0x351c48(0x197)]();}},exports[_0x32e601(0x143)]=R([S(0x2,o[_0x32e601(0x167)]),S(0x3,o[_0x32e601(0xed)](O)),S(0x4,o[_0x32e601(0x12c)])],exports['LiveShareCoordinator']);function _0x2d95(_0x584960,_0x293c31){var _0x55c00e=_0x55c0();return _0x2d95=function(_0x2d95a0,_0x143b83){_0x2d95a0=_0x2d95a0-0xcb;var _0x1aed60=_0x55c00e[_0x2d95a0];return _0x1aed60;},_0x2d95(_0x584960,_0x293c31);}function A(){var _0x52bf64=_0x32e601;const _0xb594f2=p[_0x52bf64(0x125)](exports[_0x52bf64(0xe1)]),_0x3af38b=p['useDependency'](o[_0x52bf64(0xf3)]),_0x155896=p['useObservable'](()=>_0x3af38b[_0x52bf64(0x103)](o[_0x52bf64(0x17d)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3ad22c,_0x461015]=f[_0x52bf64(0x138)](null),[_0x16b533,_0x1cc796]=f[_0x52bf64(0x138)](h[_0x52bf64(0xeb)]),_0x4cf89c=f['useRef'](null);return f['useEffect'](()=>(_0x155896&&_0xb594f2['getLiveShareCoordinator'](_0x155896['getUnitId']())[_0x52bf64(0x182)](_0x5dd038=>{var _0x1e4268=_0x52bf64;_0x461015(_0x5dd038),_0x4cf89c[_0x1e4268(0xd9)]=_0x5dd038[_0x1e4268(0x149)][_0x1e4268(0x18f)](_0x276e8c=>{_0x1cc796(_0x276e8c);});}),()=>{var _0x7e97b0=_0x52bf64,_0x6cde18;(_0x6cde18=_0x4cf89c[_0x7e97b0(0xd9)])==null||_0x6cde18[_0x7e97b0(0x1ae)](),_0x4cf89c[_0x7e97b0(0xd9)]=null;}),[_0x155896,_0xb594f2]),_0x3ad22c?l['jsx'](g[_0x52bf64(0x100)],{'align':_0x52bf64(0x171),'disabled':_0x16b533===h['OFFLINE'],'className':_0x52bf64(0x144),'overlay':l[_0x52bf64(0x121)](K,{'status':_0x16b533,'coordinator':_0x3ad22c}),'children':l[_0x52bf64(0x121)](_0x52bf64(0x13f),{'className':g[_0x52bf64(0x168)](_0x52bf64(0xd1),{'univer-cursor-not-allowed':_0x16b533===h[_0x52bf64(0x1a1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16b533!==h['OFFLINE']}),'type':_0x52bf64(0x13f),'children':l[_0x52bf64(0x121)](P,{'className':_0x52bf64(0x111)})})}):null;}function K(_0x56f1cc){var _0x30cbce=_0x32e601;const {status:_0x304d29,coordinator:_0x53cd82}=_0x56f1cc;switch(_0x304d29){case h['IDLE']:return l[_0x30cbce(0x121)](z,{'coordinator':_0x53cd82});case h[_0x30cbce(0xfa)]:return l['jsx'](Q,{'coordinator':_0x53cd82});case h[_0x30cbce(0xee)]:return l[_0x30cbce(0x121)](X,{'coordinator':_0x53cd82});case h[_0x30cbce(0x1a1)]:return l[_0x30cbce(0x121)](te,{});case h[_0x30cbce(0x131)]:return l[_0x30cbce(0x121)](ee,{'coordinator':_0x53cd82});default:return null;}}function z(_0x57bde8){var _0x47e037=_0x32e601;const {coordinator:_0x16a35f}=_0x57bde8;return l[_0x47e037(0x14e)](l[_0x47e037(0xf2)],{'children':[l[_0x47e037(0x121)](_0x47e037(0xd7),{'className':_0x47e037(0xd8),'children':_0x47e037(0x108)}),l['jsx'](g[_0x47e037(0x19f)],{'onClick':()=>_0x16a35f[_0x47e037(0xd5)](),'children':_0x47e037(0x166)})]});}function Q(_0x399057){var _0x49aeb7=_0x32e601;const {coordinator:_0x5e9f47}=_0x399057;return l[_0x49aeb7(0x14e)](l[_0x49aeb7(0xf2)],{'children':[l['jsx']('div',{'className':_0x49aeb7(0xd8),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x49aeb7(0x121)](g[_0x49aeb7(0x19f)],{'onClick':()=>_0x5e9f47['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x2715c1){var _0x3385a3=_0x32e601;const {coordinator:_0x19face}=_0x2715c1;return l[_0x3385a3(0x14e)](l[_0x3385a3(0xf2)],{'children':[l[_0x3385a3(0x121)]('div',{'className':_0x3385a3(0xd8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3385a3(0x121)](g[_0x3385a3(0x19f)],{'variant':_0x3385a3(0x193),'onClick':()=>_0x19face[_0x3385a3(0x183)](),'children':_0x3385a3(0x161)})]});}function ee(_0x4e1b78){var _0x527bfc=_0x32e601;const {coordinator:_0x51b70b}=_0x4e1b78;return l[_0x527bfc(0x14e)](l[_0x527bfc(0xf2)],{'children':[l[_0x527bfc(0x121)](_0x527bfc(0xd7),{'className':_0x527bfc(0xd8),'children':_0x527bfc(0x11d)}),l[_0x527bfc(0x121)](g[_0x527bfc(0x19f)],{'variant':'default','onClick':()=>_0x51b70b[_0x527bfc(0xdc)](),'children':_0x527bfc(0x142)})]});}function te(){var _0x24f158=_0x32e601;return l[_0x24f158(0x121)](l['Fragment'],{'children':_0x24f158(0x134)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x2c648c,_0x57dd47,_0x2dd211,_0x228c7c)=>{for(var _0x3751e0=_0x228c7c>0x1?void 0x0:_0x228c7c?ie(_0x57dd47,_0x2dd211):_0x57dd47,_0x478f1d=_0x2c648c['length']-0x1,_0x29acde;_0x478f1d>=0x0;_0x478f1d--)(_0x29acde=_0x2c648c[_0x478f1d])&&(_0x3751e0=_0x29acde(_0x3751e0)||_0x3751e0);return _0x3751e0;},L=(_0xe1dc26,_0x1b7493)=>(_0x1c9173,_0x1dd32b)=>_0x1b7493(_0x1c9173,_0x1dd32b,_0xe1dc26);exports[_0x32e601(0x11f)]=class extends o[_0x32e601(0x181)]{constructor(_0x49779e,_0x9b4a01){var _0x5e185f=_0x32e601;super(),this['_injector']=_0x49779e,this['_uiPartsService']=_0x9b4a01,this[_0x5e185f(0x19d)]();}[_0x32e601(0x19d)](){var _0x339f22=_0x32e601;this[_0x339f22(0x155)](this[_0x339f22(0x116)][_0x339f22(0xcd)](p['BuiltInUIPart'][_0x339f22(0x140)],()=>p[_0x339f22(0x16d)](A,this[_0x339f22(0x16b)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x32e601(0xed)](o[_0x32e601(0xe9)])),L(0x1,p['IUIPartsService'])],exports[_0x32e601(0x11f)]);var re=Object['defineProperty'],se=Object[_0x32e601(0xf6)],oe=(_0x4cab2,_0x3f9b9c,_0x58e1d3)=>_0x3f9b9c in _0x4cab2?re(_0x4cab2,_0x3f9b9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58e1d3}):_0x4cab2[_0x3f9b9c]=_0x58e1d3,ae=(_0x349970,_0x310f16,_0x1b26f3,_0x4ed3fc)=>{var _0x1fb2aa=_0x32e601;for(var _0x5ede05=_0x4ed3fc>0x1?void 0x0:_0x4ed3fc?se(_0x310f16,_0x1b26f3):_0x310f16,_0x53b8dc=_0x349970[_0x1fb2aa(0x1a8)]-0x1,_0x342186;_0x53b8dc>=0x0;_0x53b8dc--)(_0x342186=_0x349970[_0x53b8dc])&&(_0x5ede05=_0x342186(_0x5ede05)||_0x5ede05);return _0x5ede05;},N=(_0xef75b0,_0x41fbe6)=>(_0x1cf2fd,_0x42f69e)=>_0x41fbe6(_0x1cf2fd,_0x42f69e,_0xef75b0),T=(_0xce2320,_0x51c60f,_0x3bb43f)=>oe(_0xce2320,typeof _0x51c60f!=_0x32e601(0x169)?_0x51c60f+'':_0x51c60f,_0x3bb43f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x32e601(0x1ac)]=class extends o[_0x32e601(0xf7)]{constructor(_0x4f3931=x,_0x1db207,_0x5bb65f){var _0x58d044=_0x32e601;super(),this[_0x58d044(0x156)]=_0x4f3931,this['_injector']=_0x1db207,this['_configService']=_0x5bb65f;const {..._0x1fd369}=o[_0x58d044(0x1a0)]({},x,this['_config']);this[_0x58d044(0x191)][_0x58d044(0x176)]($,_0x1fd369);}[_0x32e601(0x187)](){var _0x31313e=_0x32e601;o[_0x31313e(0xe2)](this[_0x31313e(0x16b)],o[_0x31313e(0x102)]([[O],[exports['LiveShareController']],[E],[exports[_0x31313e(0x11f)]]],this[_0x31313e(0x156)][_0x31313e(0x136)])),o[_0x31313e(0x141)](this[_0x31313e(0x16b)],[[E]]);}[_0x32e601(0x112)](){var _0x1aa722=_0x32e601;o['touchDependencies'](this['_injector'],[[exports[_0x1aa722(0x11f)]]]);}},T(exports[_0x32e601(0x1ac)],_0x32e601(0x12e),o['UniverInstanceType'][_0x32e601(0x10b)]),T(exports[_0x32e601(0x1ac)],_0x32e601(0x13c),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x32e601(0xe9)])),N(0x2,o['IConfigService'])],exports[_0x32e601(0x1ac)]),exports[_0x32e601(0xf0)]=A,exports[_0x32e601(0x114)]=O,exports[_0x32e601(0x190)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x15ad(){var _0x1536f2=['_uiPartsService','PRESENTING','find','random','UNIVER_UNKNOWN','defIds','requireSession','text','FOLLOWING','toString','fill','1em','data','get','_entities','getLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','div','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','shouldShareOperation','LiveShareIcon','colorChannel1','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','not-following','none','disposeWithMe','Start\x20following','You\x27are\x20offline.','xlink:href','children','params','idSuffix','clear','_config','_mountLiveShare','8372VMjhUJ','prototype','_commandDisposable','stringify','2969625iHHMrC','idle','use','symbol','_collabSession','4643345xaQYyO','SAME_OPERATION_SHARE_INTERVAL','NEW_CHANGESETS','getValue','_sharedOperations','has','_liveShareService','presenting','memberID','attrs','asObservable','98382EHJfSJ','0\x200\x2017\x2017','className','_handleOperation','onRendered','_init','length','type','includes','sheet','following','You\x27re\x20presenting\x20the\x20document','getOwnPropertySymbols','event$','parse','call','current','6EsAyKZ','OFFLINE','substring','_stopFollowing','unitId','_beIdle','_injector','onStarting','send','19ynWmJi','stopFollowing','override','_handleOnline','onCommandExecuted','UNIVER_LIVE_SHARE_PLUGIN','status$','606oJvZap','currentColor','getOwnPropertyDescriptor','_handleNewChangeSets','_handleNewHost','stopPresenting','setConfig','propertyIsEnumerable','delete','dispose$','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','dispose','concat','executeCommand','icon','_status$','presenter','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','then','indexOf','Stop\x20presenting','_startPresenting','mutations','getUnitId','_handleOffline','set','live-share.config','_startFollowing','init','Stop\x20following','mask','tryStartPresenting','next','_handleTerminate','getMemberID','complete','_univerInstanceService','getTypeOfUnitDisposed$','startFollowing','default','_unitID','_startLiveShareCoordinator','_reporters','getTypeOfUnitAdded$','from','displayName','IDLE','_configService','pluginName','8730000sGPVty','createInstance','Start','map','forEach','getCurrentTypeOfUnit$','unsubscribe','52064960wMLxKE','subscribe','assign','6509800UdhpFw','getInitialStates','_commandService','HEADER_MENU','LIVESHARE_OPERATION','add','path','string','_status','registerComponent','url(#$1','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','pipe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','OPERATION','_collabSessionService','tag','end','hasOwnProperty','evenodd','live-share-icon','registerSharedOperation','operations','_presenter'];_0x15ad=function(){return _0x1536f2;};return _0x15ad();}var _0x1f1dc3=_0x1458;(function(_0x366c26,_0x1bf9ef){var _0x1af68c=_0x1458,_0x44d42a=_0x366c26();while(!![]){try{var _0x2a26dc=-parseInt(_0x1af68c(0xe9))/0x1*(parseInt(_0x1af68c(0x17d))/0x2)+-parseInt(_0x1af68c(0xf0))/0x3*(parseInt(_0x1af68c(0x169))/0x4)+parseInt(_0x1af68c(0x16d))/0x5*(-parseInt(_0x1af68c(0xe0))/0x6)+-parseInt(_0x1af68c(0x172))/0x7+-parseInt(_0x1af68c(0x12d))/0x8+-parseInt(_0x1af68c(0x123))/0x9+parseInt(_0x1af68c(0x12a))/0xa;if(_0x2a26dc===_0x1bf9ef)break;else _0x44d42a['push'](_0x44d42a['shift']());}catch(_0x18c4da){_0x44d42a['push'](_0x44d42a['shift']());}}}(_0x15ad,0xc54a0));var q=Object['defineProperty'],z=(_0xef156c,_0x1cca69,_0x48f5c1)=>_0x1cca69 in _0xef156c?q(_0xef156c,_0x1cca69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48f5c1}):_0xef156c[_0x1cca69]=_0x48f5c1,d=(_0x1d9ecf,_0x1bd408,_0x158b8c)=>z(_0x1d9ecf,typeof _0x1bd408!=_0x1f1dc3(0x170)?_0x1bd408+'':_0x1bd408,_0x158b8c);import{CollaborationSessionService as _0x1c3102,SessionStatus as _0x2b6119,UniverCollaborationClientPlugin as _0x4684ca}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5a7acb,toDisposable as _0x3afb6c,Inject as _0x52aa10,IUniverInstanceService as _0x473ab5,Injector as _0x425ba0,IConfigService as _0x464add,ICommandService as _0xe19690,RxDisposable as _0x492441,UniverInstanceType as _0xf6e587,DisposableCollection as _0x59d69e,CommandType as _0x497609,DependentOn as _0x517a7e,Plugin as _0x583ae2,merge as _0x244597,registerDependencies as _0xb10520,mergeOverrideWithDependencies as _0x523791,touchDependencies as _0x5378ff}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2a60c8,InsertSheetMutation as _0x581502}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x122d87,SetScrollOperation as _0xf2e074}from'@univerjs/sheets-ui';import{useDependency as _0x110ab8,useObservable as _0x372a11,IUIPartsService as _0x560665,BuiltInUIPart as _0x18829f,connectInjector as _0x856a59}from'@univerjs/ui';import{jsx as _0x4f8640,jsxs as _0x1ba4e7,Fragment as _0x1a63d4}from'react/jsx-runtime';import{Dropdown as _0x266bbf,clsx as _0x1652b5,Button as _0x309462}from'@univerjs/design';import{forwardRef as _0x51318f,useRef as _0x330082,createElement as _0x4a1dd9,useState as _0x9089c6,useEffect as _0x5afb2a}from'react';import{CollaborationEvent as _0x20e2fb,parseProtocolChangeset as _0x21bba2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x411c5a,Subject as _0x3a5a02}from'rxjs';import{takeUntil as _0xaa963a,throttleTime as _0x220b10}from'rxjs/operators';const Oe=_0x1f1dc3(0x10c),T={};class L extends _0x5a7acb{constructor(){var _0x21caf5=_0x1f1dc3;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21caf5(0x11c),new Set());}[_0x1f1dc3(0x142)](_0x3e9d60){var _0x91b2ea=_0x1f1dc3;return this[_0x91b2ea(0x176)][_0x91b2ea(0x132)](_0x3e9d60),_0x3afb6c(()=>this['_sharedOperations']['delete'](_0x3e9d60));}['registerInitialStateReporter'](_0x54c4b8){var _0x471f9d=_0x1f1dc3;return this[_0x471f9d(0x11c)][_0x471f9d(0x132)](_0x54c4b8),_0x3afb6c(()=>this[_0x471f9d(0x11c)][_0x471f9d(0xf8)](_0x54c4b8));}['shouldShareOperation'](_0x329f93){var _0x35322a=_0x1f1dc3;return this['_sharedOperations'][_0x35322a(0x177)](_0x329f93);}[_0x1f1dc3(0x12e)](_0x360447){var _0x164b77=_0x1f1dc3;return Array[_0x164b77(0x11e)](this[_0x164b77(0x11c)])[_0x164b77(0x126)](_0x412ebf=>_0x412ebf(_0x360447));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x10653e,_0x42bdab,_0x58017b,_0x4e2bff)=>{for(var _0x2e0a38=_0x4e2bff>0x1?void 0x0:_0x4e2bff?Ee(_0x42bdab,_0x58017b):_0x42bdab,_0x216cba=_0x10653e['length']-0x1,_0x57ad98;_0x216cba>=0x0;_0x216cba--)(_0x57ad98=_0x10653e[_0x216cba])&&(_0x2e0a38=_0x57ad98(_0x2e0a38)||_0x2e0a38);return _0x2e0a38;},Ne=(_0x2dd8a1,_0x41c140)=>(_0x71b032,_0x430193)=>_0x41c140(_0x71b032,_0x430193,_0x2dd8a1);let m=class extends _0x5a7acb{constructor(_0x4df866){var _0x2a4446=_0x1f1dc3;super(),this[_0x2a4446(0x178)]=_0x4df866,this[_0x2a4446(0xd4)]();}[_0x1f1dc3(0xd4)](){var _0x17a223=_0x1f1dc3;[_0x122d87['id'],_0xf2e074['id'],_0x2a60c8['id']][_0x17a223(0x127)](_0x360774=>{var _0x34e05d=_0x17a223;this[_0x34e05d(0x15f)](this[_0x34e05d(0x178)]['registerSharedOperation'](_0x360774));});}};m=we([Ne(0x0,_0x52aa10(L))],m);var c=function(){return c=Object['assign']||function(_0x19f857){var _0x430d04=_0x1458;for(var _0x47fd76,_0x71e787=0x1,_0x1a5fab=arguments[_0x430d04(0xd5)];_0x71e787<_0x1a5fab;_0x71e787++){_0x47fd76=arguments[_0x71e787];for(var _0x94f6b5 in _0x47fd76)Object[_0x430d04(0x16a)][_0x430d04(0x13f)][_0x430d04(0xde)](_0x47fd76,_0x94f6b5)&&(_0x19f857[_0x94f6b5]=_0x47fd76[_0x94f6b5]);}return _0x19f857;},c['apply'](this,arguments);},Ce=function(_0x51805e,_0x553a35){var _0x1edfe9=_0x1f1dc3,_0x959cf3={};for(var _0x23a03c in _0x51805e)Object['prototype']['hasOwnProperty'][_0x1edfe9(0xde)](_0x51805e,_0x23a03c)&&_0x553a35['indexOf'](_0x23a03c)<0x0&&(_0x959cf3[_0x23a03c]=_0x51805e[_0x23a03c]);if(_0x51805e!=null&&typeof Object[_0x1edfe9(0xdb)]=='function'){for(var _0x39c3fe=0x0,_0x23a03c=Object[_0x1edfe9(0xdb)](_0x51805e);_0x39c3fe<_0x23a03c['length'];_0x39c3fe++)_0x553a35[_0x1edfe9(0x105)](_0x23a03c[_0x39c3fe])<0x0&&Object[_0x1edfe9(0x16a)][_0x1edfe9(0xf7)]['call'](_0x51805e,_0x23a03c[_0x39c3fe])&&(_0x959cf3[_0x23a03c[_0x39c3fe]]=_0x51805e[_0x23a03c[_0x39c3fe]]);}return _0x959cf3;},W=_0x51318f(function(_0x366633,_0x5f2233){var _0x4bb45a=_0x1f1dc3,_0x8dd4d8=_0x366633[_0x4bb45a(0xff)],_0x57c76f=_0x366633['id'],_0x373278=_0x366633[_0x4bb45a(0xd1)],_0x120e4a=_0x366633['extend'],_0x5a9fae=Ce(_0x366633,[_0x4bb45a(0xff),'id',_0x4bb45a(0xd1),'extend']),_0xac3060=_0x4bb45a(0x155)['concat'](_0x57c76f,'\x20')[_0x4bb45a(0xfd)](_0x373278||'')['trim'](),_0xd49604=_0x330082('_'['concat'](Le()));return Y(_0x8dd4d8,''[_0x4bb45a(0xfd)](_0x57c76f),{'defIds':_0x8dd4d8[_0x4bb45a(0x14a)],'idSuffix':_0xd49604[_0x4bb45a(0xdf)]},c({'ref':_0x5f2233,'className':_0xac3060},_0x5a9fae),_0x120e4a);});function Y(_0x2d4c3d,_0x2d40ff,_0x16096d,_0x10943f,_0x44d8e4){var _0x383293=_0x1f1dc3;return _0x4a1dd9(_0x2d4c3d[_0x383293(0x13d)],c(c({'key':_0x2d40ff},De(_0x2d4c3d,_0x16096d,_0x44d8e4)),_0x10943f),(xe(_0x2d4c3d,_0x16096d)[_0x383293(0x163)]||[])['map'](function(_0x102a57,_0x3a6b15){var _0x293379=_0x383293;return Y(_0x102a57,''[_0x293379(0xfd)](_0x2d40ff,'-')[_0x293379(0xfd)](_0x2d4c3d['tag'],'-')[_0x293379(0xfd)](_0x3a6b15),_0x16096d,void 0x0,_0x44d8e4);}));}function _0x1458(_0x671146,_0x37fa4d){var _0x15ad7d=_0x15ad();return _0x1458=function(_0x1458ed,_0x1d0c2e){_0x1458ed=_0x1458ed-0xd1;var _0x1c7c64=_0x15ad7d[_0x1458ed];return _0x1c7c64;},_0x1458(_0x671146,_0x37fa4d);}function De(_0x1b4f55,_0x20546b,_0x4167c8){var _0x4413fb=_0x1f1dc3,_0x2df0e9=c({},_0x1b4f55[_0x4413fb(0x17b)]);_0x4167c8!=null&&_0x4167c8[_0x4413fb(0x15b)]&&_0x2df0e9[_0x4413fb(0x14f)]===_0x4413fb(0x15b)&&(_0x2df0e9['fill']=_0x4167c8['colorChannel1']),_0x1b4f55[_0x4413fb(0x13d)]===_0x4413fb(0x110)&&_0x2df0e9['id']&&(_0x2df0e9['id']=_0x2df0e9['id']+_0x20546b[_0x4413fb(0x165)]),Object['entries'](_0x2df0e9)[_0x4413fb(0x127)](function(_0x50c635){var _0x19c349=_0x4413fb,_0x4a4b27=_0x50c635[0x0],_0x1370d5=_0x50c635[0x1];_0x4a4b27===_0x19c349(0x110)&&typeof _0x1370d5=='string'&&(_0x2df0e9[_0x4a4b27]=_0x1370d5['replace'](/url\(#(.*)\)/,_0x19c349(0x137)[_0x19c349(0xfd)](_0x20546b[_0x19c349(0x165)],')')));});var _0x42e8c5=_0x20546b['defIds'];return!_0x42e8c5||_0x42e8c5['length']===0x0||(_0x1b4f55[_0x4413fb(0x13d)]===_0x4413fb(0x16f)&&_0x2df0e9[_0x4413fb(0x162)]&&(_0x2df0e9['xlink:href']=_0x2df0e9[_0x4413fb(0x162)]+_0x20546b[_0x4413fb(0x165)]),Object['entries'](_0x2df0e9)['forEach'](function(_0x25bfce){var _0x5118ff=_0x4413fb,_0x1f64d0=_0x25bfce[0x0],_0x135808=_0x25bfce[0x1];typeof _0x135808==_0x5118ff(0x134)&&(_0x2df0e9[_0x1f64d0]=_0x135808['replace'](/url\(#(.*)\)/,_0x5118ff(0x137)[_0x5118ff(0xfd)](_0x20546b[_0x5118ff(0x165)],')')));})),_0x2df0e9;}function xe(_0x4e7bb2,_0xe85b47){var _0x4e7fdf=_0x1f1dc3,_0x3e0bb8,_0x4c79af=_0xe85b47[_0x4e7fdf(0x14a)];return!_0x4c79af||_0x4c79af[_0x4e7fdf(0xd5)]===0x0?_0x4e7bb2:_0x4e7bb2[_0x4e7fdf(0x13d)]==='defs'&&(!((_0x3e0bb8=_0x4e7bb2[_0x4e7fdf(0x163)])===null||_0x3e0bb8===void 0x0)&&_0x3e0bb8[_0x4e7fdf(0xd5)])?c(c({},_0x4e7bb2),{'children':_0x4e7bb2[_0x4e7fdf(0x163)]['map'](function(_0x735a6c){var _0x50c328=_0x4e7fdf;return typeof _0x735a6c[_0x50c328(0x17b)]['id']==_0x50c328(0x134)&&_0x4c79af&&_0x4c79af[_0x50c328(0xd7)](_0x735a6c[_0x50c328(0x17b)]['id'])?c(c({},_0x735a6c),{'attrs':c(c({},_0x735a6c[_0x50c328(0x17b)]),{'id':_0x735a6c[_0x50c328(0x17b)]['id']+_0xe85b47[_0x50c328(0x165)]})}):_0x735a6c;})}):_0x4e7bb2;}function Le(){var _0x2d4243=_0x1f1dc3;return Math[_0x2d4243(0x148)]()[_0x2d4243(0x14e)](0x24)[_0x2d4243(0xe2)](0x2,0x8);}W[_0x1f1dc3(0x11f)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1f1dc3(0x15e),'viewBox':_0x1f1dc3(0x17e),'width':_0x1f1dc3(0x150),'height':_0x1f1dc3(0x150)},'children':[{'tag':_0x1f1dc3(0x133),'attrs':{'fill':_0x1f1dc3(0xf1),'d':_0x1f1dc3(0x13a)}},{'tag':'path','attrs':{'fill':_0x1f1dc3(0xf1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x1f1dc3(0x140)}}]},B=_0x51318f(function(_0x412ada,_0x353c4e){var _0x2b3ab9=_0x1f1dc3;return _0x4a1dd9(W,Object[_0x2b3ab9(0x12c)]({},_0x412ada,{'id':_0x2b3ab9(0x141),'ref':_0x353c4e,'icon':ye}));});B[_0x1f1dc3(0x11f)]=_0x1f1dc3(0x15a);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x101a12,_0x3acdb4,_0x3551c2,_0x27ef9e)=>{for(var _0x4103c7=_0x27ef9e>0x1?void 0x0:_0x27ef9e?Re(_0x3acdb4,_0x3551c2):_0x3acdb4,_0x9c24fc=_0x101a12['length']-0x1,_0x16d43b;_0x9c24fc>=0x0;_0x9c24fc--)(_0x16d43b=_0x101a12[_0x9c24fc])&&(_0x4103c7=_0x16d43b(_0x4103c7)||_0x4103c7);return _0x4103c7;},f=(_0x5d4c02,_0x19b275)=>(_0x1ff209,_0x499771)=>_0x19b275(_0x1ff209,_0x499771,_0x5d4c02);let I=class extends _0x492441{constructor(_0x51bd7c,_0x175b7f,_0x236ed1){var _0x3c5af1=_0x1f1dc3;super(),d(this,'_entities',new Map()),(this[_0x3c5af1(0x116)]=_0x51bd7c,this[_0x3c5af1(0xe6)]=_0x175b7f,this[_0x3c5af1(0x13c)]=_0x236ed1,this[_0x3c5af1(0xd4)]());}async[_0x1f1dc3(0x154)](_0x22c0b1){var _0x2c671e=_0x1f1dc3;return this[_0x2c671e(0x153)][_0x2c671e(0x177)](_0x22c0b1)||await this['_startLiveShareCoordinator'](_0x22c0b1),this['_entities'][_0x2c671e(0x152)](_0x22c0b1);}[_0x1f1dc3(0xd4)](){var _0x12613a=_0x1f1dc3;this[_0x12613a(0x116)][_0x12613a(0x11d)](_0xf6e587[_0x12613a(0x102)])[_0x12613a(0x139)](_0xaa963a(this[_0x12613a(0xf9)]))[_0x12613a(0x12b)](async _0xf6b15f=>{var _0x12f29a=_0x12613a;const _0x6df4c0=_0xf6b15f['getUnitId']();this[_0x12f29a(0x153)][_0x12f29a(0x177)](_0x6df4c0)||this[_0x12f29a(0x11b)](_0x6df4c0);}),this[_0x12613a(0x116)][_0x12613a(0x117)](_0xf6e587['UNIVER_SHEET'])[_0x12613a(0x139)](_0xaa963a(this['dispose$']))['subscribe'](_0x5f065e=>{var _0x31b789=_0x12613a;const _0xe51b7b=_0x5f065e[_0x31b789(0x109)](),_0x1e1f1b=this['_entities'][_0x31b789(0x152)](_0xe51b7b);_0x1e1f1b==null||_0x1e1f1b[_0x31b789(0xfc)]();});}async['_startLiveShareCoordinator'](_0x2a8f64){var _0x4ac138=_0x1f1dc3;const _0x1a4c8a=await this[_0x4ac138(0x13c)][_0x4ac138(0x14b)](_0x2a8f64),_0xcf8318=this[_0x4ac138(0xe6)][_0x4ac138(0x124)](C,_0x2a8f64,_0x1a4c8a);return _0xcf8318[_0x4ac138(0x10e)](),this[_0x4ac138(0x153)][_0x4ac138(0x10b)](_0x2a8f64,_0xcf8318),_0xcf8318;}};I=Z([f(0x0,_0x473ab5),f(0x1,_0x52aa10(_0x425ba0)),f(0x2,_0x52aa10(_0x1c3102))],I);var h=(_0x386916=>(_0x386916[_0x1f1dc3(0xe1)]='offline',_0x386916[_0x1f1dc3(0x120)]=_0x1f1dc3(0x16e),_0x386916['FOLLOWING']='following',_0x386916['NOT_FOLLOWING']=_0x1f1dc3(0x15d),_0x386916['PRESENTING']='presenting',_0x386916))(h||{});const Pe=_0x1f1dc3(0x173),Ae=0xc8;let C=class extends _0x492441{constructor(_0x4e8815,_0x3fbc46,_0x5a7656,_0x368e4f,_0x399b4e){var _0x5d1d26=_0x1f1dc3;super(),d(this,_0x5d1d26(0x100),new _0x411c5a(_0x5d1d26(0x16e))),d(this,_0x5d1d26(0xef),this['_status$'][_0x5d1d26(0x17c)]()),d(this,_0x5d1d26(0xd4),!0x1),d(this,_0x5d1d26(0x16b),null),d(this,_0x5d1d26(0x144),null),(this[_0x5d1d26(0x11a)]=_0x4e8815,this[_0x5d1d26(0x171)]=_0x3fbc46,this['_configService']=_0x5a7656,this['_liveShareService']=_0x368e4f,this[_0x5d1d26(0x12f)]=_0x399b4e);}get[_0x1f1dc3(0x135)](){var _0x19bf7=_0x1f1dc3;return this[_0x19bf7(0x100)][_0x19bf7(0x175)]();}[_0x1f1dc3(0xfc)](){var _0xc25978=_0x1f1dc3,_0xa20299;(_0xa20299=this[_0xc25978(0x16b)])==null||_0xa20299[_0xc25978(0xfc)](),this[_0xc25978(0x100)]['next'](_0xc25978(0x16e)),this[_0xc25978(0x100)][_0xc25978(0x115)]();}['init'](){var _0x2f3a66=_0x1f1dc3;this[_0x2f3a66(0xd4)]||(this[_0x2f3a66(0xd4)]=!0x0,this[_0x2f3a66(0x171)]['sessionStatus$'][_0x2f3a66(0x139)](_0xaa963a(this[_0x2f3a66(0xf9)]))[_0x2f3a66(0x12b)](_0x595a8b=>{var _0x447d36=_0x2f3a66;switch(_0x595a8b){case _0x2b6119[_0x447d36(0xe1)]:this['_handleOffline']();break;case _0x2b6119['ONLINE']:this[_0x447d36(0xec)]();break;}}),this[_0x2f3a66(0x171)][_0x2f3a66(0xdc)][_0x2f3a66(0x139)](_0xaa963a(this['dispose$']))[_0x2f3a66(0x12b)](_0xdd1f3e=>{var _0x8fa899=_0x2f3a66;const {eventID:_0x527505}=_0xdd1f3e;switch(_0x527505){case _0x20e2fb['LIVESHARE_NEW_HOST']:this[_0x8fa899(0xf4)](_0xdd1f3e);break;case _0x20e2fb['LIVESHARE_OPERATION']:this['_handleOperation'](_0xdd1f3e);break;case _0x20e2fb['LIVESHARE_TERMINATE']:this[_0x8fa899(0x113)]();break;case _0x20e2fb[_0x8fa899(0x174)]:this[_0x8fa899(0xf3)](_0xdd1f3e);break;}}));}[_0x1f1dc3(0x111)](){var _0x173f4d=_0x1f1dc3;this[_0x173f4d(0x171)][_0x173f4d(0xe8)]({'eventID':_0x20e2fb['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x173f4d(0x11a)]);}['stopPresenting'](){var _0x1fa99f=_0x1f1dc3;this['_status']===_0x1fa99f(0x179)&&(this[_0x1fa99f(0x100)][_0x1fa99f(0x112)](_0x1fa99f(0x16e)),this['_collabSession']['send']({'eventID':_0x20e2fb[_0x1fa99f(0xfa)],'data':{'unitID':this[_0x1fa99f(0x11a)]}},this[_0x1fa99f(0x11a)]));}['startFollowing'](){var _0x9569b8=_0x1f1dc3;this[_0x9569b8(0x135)]===_0x9569b8(0x15d)&&(this['_status$'][_0x9569b8(0x112)](_0x9569b8(0xd9)),this['_startFollowing']());}[_0x1f1dc3(0xea)](){var _0x4f611f=_0x1f1dc3;this['_status']===_0x4f611f(0xd9)&&this[_0x4f611f(0xe3)]();}[_0x1f1dc3(0xf4)](_0x4ea15b){var _0x26b934=_0x1f1dc3;const {presenter:_0x126fa}=_0x4ea15b[_0x26b934(0x151)],_0x1133a2=this[_0x26b934(0x171)]['getMemberID']();this[_0x26b934(0x144)]=_0x126fa,_0x126fa===_0x1133a2?(this[_0x26b934(0xe3)](),this[_0x26b934(0x107)]()):this[_0x26b934(0x135)]!==_0x26b934(0x15d)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x5c5220=_0x1f1dc3;const _0x247f5b={'eventID':_0x20e2fb[_0x5c5220(0xfb)]};this[_0x5c5220(0x171)]['send'](_0x247f5b,this[_0x5c5220(0x11a)]);}[_0x1f1dc3(0x113)](){var _0x31feea=_0x1f1dc3;this[_0x31feea(0x144)]=null,this[_0x31feea(0x135)]!==_0x31feea(0x179)&&this[_0x31feea(0xe5)]();}['_handleNewChangeSets'](_0x2aa47b){var _0x1ab12f=_0x1f1dc3;if(this['_status']===_0x1ab12f(0xd9)&&this[_0x1ab12f(0x144)]===_0x2aa47b[_0x1ab12f(0x151)][_0x1ab12f(0x17a)]){const _0x55b2e9=_0x21bba2(_0x2aa47b['data'])[_0x1ab12f(0x108)]['reverse']()[_0x1ab12f(0x147)](_0x3dc736=>_0x3dc736['id']===_0x581502['id']);if(_0x55b2e9){const _0x1c7e2d=_0x55b2e9[_0x1ab12f(0x164)][_0x1ab12f(0xe4)],_0x55cedd=_0x55b2e9['params'][_0x1ab12f(0xd8)]['id'];setTimeout(()=>{var _0x282ded=_0x1ab12f;this[_0x282ded(0x12f)][_0x282ded(0xfe)](_0x2a60c8['id'],{'unitId':_0x1c7e2d,'subUnitId':_0x55cedd},{'fromCollab':!0x0});});}}}[_0x1f1dc3(0x107)](){var _0xd6ee1=_0x1f1dc3;this['_status$'][_0xd6ee1(0x112)](_0xd6ee1(0x179));const _0x14fe22=new Map(),_0x2dcf5f=this[_0xd6ee1(0x16b)]=new _0x59d69e();_0x2dcf5f['add'](_0x3afb6c(()=>{var _0x1c4807=_0xd6ee1;_0x14fe22[_0x1c4807(0x127)](_0x582268=>_0x582268[_0x1c4807(0x115)]()),_0x14fe22[_0x1c4807(0x166)]();})),_0x2dcf5f['add'](this[_0xd6ee1(0x12f)][_0xd6ee1(0xed)](_0x5a963c=>{var _0x293844=_0xd6ee1,_0x1f1fca;if(_0x5a963c[_0x293844(0xd6)]!==_0x497609[_0x293844(0x13b)]||!this[_0x293844(0x178)][_0x293844(0x159)](_0x5a963c['id']))return;const {id:_0x1975d4}=_0x5a963c;let _0x767c69;_0x14fe22[_0x293844(0x177)](_0x1975d4)?_0x767c69=_0x14fe22[_0x293844(0x152)](_0x1975d4):(_0x767c69=new _0x3a5a02(),_0x14fe22[_0x293844(0x10b)](_0x1975d4,_0x767c69),_0x767c69[_0x293844(0x139)](_0x220b10((_0x1f1fca=this[_0x293844(0x121)]['getConfig'](Pe))!=null?_0x1f1fca:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x293844(0x12b)](_0x26b8f0=>{var _0x10302c=_0x293844;this[_0x10302c(0x171)][_0x10302c(0xe8)]({'eventID':_0x20e2fb[_0x10302c(0x131)],'data':{'unitID':this[_0x10302c(0x11a)],'operations':{[_0x26b8f0['id']]:{'id':_0x26b8f0['id'],'params':JSON[_0x10302c(0x16c)](_0x26b8f0[_0x10302c(0x164)])}}}},this['_unitID']);})),_0x767c69[_0x293844(0x112)](_0x5a963c);})),this['_liveShareService'][_0xd6ee1(0x12e)](this['_unitID'])['forEach'](_0x3ed304=>this[_0xd6ee1(0x171)][_0xd6ee1(0xe8)]({'eventID':_0x20e2fb['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xd6ee1(0x11a)],'operations':{[_0x3ed304['id']]:{'id':_0x3ed304['id'],'params':JSON[_0xd6ee1(0x16c)](_0x3ed304[_0xd6ee1(0x164)])}}}},this[_0xd6ee1(0x11a)]));}['_stopPresenting'](){var _0x5ba35e=_0x1f1dc3,_0x3f303a;this[_0x5ba35e(0x100)][_0x5ba35e(0x112)](_0x5ba35e(0x16e)),(_0x3f303a=this['_commandDisposable'])==null||_0x3f303a[_0x5ba35e(0xfc)](),this['_commandDisposable']=null;}[_0x1f1dc3(0x10d)](){var _0x5ea785=_0x1f1dc3,_0x588bb9;(_0x588bb9=this[_0x5ea785(0x16b)])==null||_0x588bb9[_0x5ea785(0xfc)](),this['_status$'][_0x5ea785(0x112)]('following');}[_0x1f1dc3(0xe5)](){var _0x3a11ab=_0x1f1dc3,_0x33075b;this[_0x3a11ab(0x100)][_0x3a11ab(0x112)](_0x3a11ab(0x16e)),(_0x33075b=this[_0x3a11ab(0x16b)])==null||_0x33075b['dispose'](),this[_0x3a11ab(0x16b)]=null;}[_0x1f1dc3(0xe3)](){var _0x2023df=_0x1f1dc3,_0x123cc2;this[_0x2023df(0x100)][_0x2023df(0x112)](_0x2023df(0x15d)),(_0x123cc2=this['_commandDisposable'])==null||_0x123cc2[_0x2023df(0xfc)]();}[_0x1f1dc3(0xd2)](_0x1e8a2d){var _0x5f3ccc=_0x1f1dc3;if([_0x5f3ccc(0x179),_0x5f3ccc(0x15d),_0x5f3ccc(0x158)][_0x5f3ccc(0xd7)](this[_0x5f3ccc(0x135)])||!_0x1e8a2d[_0x5f3ccc(0x151)][_0x5f3ccc(0x101)]||_0x1e8a2d[_0x5f3ccc(0x151)][_0x5f3ccc(0x101)]===this[_0x5f3ccc(0x171)][_0x5f3ccc(0x114)]())return;this[_0x5f3ccc(0x135)]==='idle'&&this['_startFollowing']();const _0x4eb370=_0x1e8a2d['data'][_0x5f3ccc(0x143)];Object['values'](_0x4eb370)[_0x5f3ccc(0x127)](_0x47c44b=>{var _0x2bd17f=_0x5f3ccc;this[_0x2bd17f(0x12f)][_0x2bd17f(0xfe)](_0x47c44b['id'],_0x47c44b[_0x2bd17f(0x164)]?JSON[_0x2bd17f(0xdd)](_0x47c44b[_0x2bd17f(0x164)]):null,{'fromCollab':!0x0});});}[_0x1f1dc3(0x10a)](){var _0x5a424d=_0x1f1dc3,_0x2a884f;this[_0x5a424d(0x100)][_0x5a424d(0x112)](_0x5a424d(0x158)),(_0x2a884f=this[_0x5a424d(0x16b)])==null||_0x2a884f[_0x5a424d(0xfc)]();}[_0x1f1dc3(0xec)](){var _0x58a67c=_0x1f1dc3;this[_0x58a67c(0x100)][_0x58a67c(0x112)](_0x58a67c(0x16e)),this['_fetchOperations']();}};C=Z([f(0x2,_0x464add),f(0x3,_0x52aa10(L)),f(0x4,_0xe19690)],C);function Te(){var _0x4c3ad7=_0x1f1dc3;const _0x57ad8b=_0x110ab8(I),_0x2b36de=_0x110ab8(_0x473ab5),_0x401ea4=_0x372a11(()=>_0x2b36de[_0x4c3ad7(0x128)](_0xf6e587[_0x4c3ad7(0x102)]),void 0x0,!0x1,[]),[_0x501143,_0x4543cf]=_0x9089c6(null),[_0x22b5e5,_0x6594b9]=_0x9089c6(h[_0x4c3ad7(0x120)]),_0x86c2a9=_0x330082(null);return _0x5afb2a(()=>(_0x401ea4&&_0x57ad8b[_0x4c3ad7(0x154)](_0x401ea4[_0x4c3ad7(0x109)]())[_0x4c3ad7(0x104)](_0x3c10f9=>{var _0x4399a5=_0x4c3ad7;_0x4543cf(_0x3c10f9),_0x86c2a9['current']=_0x3c10f9[_0x4399a5(0xef)]['subscribe'](_0x21025c=>{_0x6594b9(_0x21025c);});}),()=>{var _0x3907bf=_0x4c3ad7,_0x183cf3;(_0x183cf3=_0x86c2a9['current'])==null||_0x183cf3[_0x3907bf(0x129)](),_0x86c2a9[_0x3907bf(0xdf)]=null;}),[_0x401ea4,_0x57ad8b]),_0x501143?_0x4f8640(_0x266bbf,{'align':_0x4c3ad7(0x13e),'disabled':_0x22b5e5===h['OFFLINE'],'className':_0x4c3ad7(0x138),'overlay':_0x4f8640($e,{'status':_0x22b5e5,'coordinator':_0x501143}),'children':_0x4f8640('button',{'className':_0x1652b5(_0x4c3ad7(0x15c),{'univer-cursor-not-allowed':_0x22b5e5===h[_0x4c3ad7(0xe1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22b5e5!==h[_0x4c3ad7(0xe1)]}),'type':'button','children':_0x4f8640(B,{'className':'univer-size-4'})})}):null;}function $e(_0x392a01){var _0x56f5f4=_0x1f1dc3;const {status:_0x5d963c,coordinator:_0x1eb0a0}=_0x392a01;switch(_0x5d963c){case h[_0x56f5f4(0x120)]:return _0x4f8640(Fe,{'coordinator':_0x1eb0a0});case h[_0x56f5f4(0x14d)]:return _0x4f8640(He,{'coordinator':_0x1eb0a0});case h['NOT_FOLLOWING']:return _0x4f8640(je,{'coordinator':_0x1eb0a0});case h[_0x56f5f4(0xe1)]:return _0x4f8640(Ve,{});case h[_0x56f5f4(0x146)]:return _0x4f8640(Ue,{'coordinator':_0x1eb0a0});default:return null;}}function Fe(_0x3701ff){var _0x17cca6=_0x1f1dc3;const {coordinator:_0x39cfee}=_0x3701ff;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640('div',{'className':_0x17cca6(0x157),'children':'Present\x20this\x20document'}),_0x4f8640(_0x309462,{'onClick':()=>_0x39cfee[_0x17cca6(0x111)](),'children':_0x17cca6(0x125)})]});}function He(_0xe80782){var _0x320701=_0x1f1dc3;const {coordinator:_0x565af6}=_0xe80782;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640(_0x320701(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x320701(0x103)}),_0x4f8640(_0x309462,{'onClick':()=>_0x565af6[_0x320701(0xea)](),'children':_0x320701(0x10f)})]});}function je(_0x250781){var _0x522279=_0x1f1dc3;const {coordinator:_0x428442}=_0x250781;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640(_0x522279(0x156),{'className':_0x522279(0x157),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f8640(_0x309462,{'variant':_0x522279(0x14c),'onClick':()=>_0x428442[_0x522279(0x118)](),'children':_0x522279(0x160)})]});}function Ue(_0x30ea37){var _0x5c63a9=_0x1f1dc3;const {coordinator:_0x93c470}=_0x30ea37;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640(_0x5c63a9(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5c63a9(0xda)}),_0x4f8640(_0x309462,{'variant':_0x5c63a9(0x119),'onClick':()=>_0x93c470[_0x5c63a9(0xf5)](),'children':_0x5c63a9(0x106)})]});}function Ve(){var _0x2ce9cf=_0x1f1dc3;return _0x4f8640(_0x1a63d4,{'children':_0x2ce9cf(0x161)});}var Me=Object[_0x1f1dc3(0xf2)],ke=(_0x12bbc5,_0x53be26,_0x1f4ebc,_0x1aa5c3)=>{var _0x3a91da=_0x1f1dc3;for(var _0x2db089=_0x1aa5c3>0x1?void 0x0:_0x1aa5c3?Me(_0x53be26,_0x1f4ebc):_0x53be26,_0x4d7415=_0x12bbc5[_0x3a91da(0xd5)]-0x1,_0x6d7696;_0x4d7415>=0x0;_0x4d7415--)(_0x6d7696=_0x12bbc5[_0x4d7415])&&(_0x2db089=_0x6d7696(_0x2db089)||_0x2db089);return _0x2db089;},$=(_0x353c22,_0x1cb4c6)=>(_0x4b3113,_0x56e4da)=>_0x1cb4c6(_0x4b3113,_0x56e4da,_0x353c22);let b=class extends _0x5a7acb{constructor(_0x3f78b2,_0x382e46){var _0x5c82d9=_0x1f1dc3;super(),this['_injector']=_0x3f78b2,this['_uiPartsService']=_0x382e46,this[_0x5c82d9(0x168)]();}[_0x1f1dc3(0x168)](){var _0x1310e1=_0x1f1dc3;this[_0x1310e1(0x15f)](this[_0x1310e1(0x145)][_0x1310e1(0x136)](_0x18829f[_0x1310e1(0x130)],()=>_0x856a59(Te,this[_0x1310e1(0xe6)])));}};b=ke([$(0x0,_0x52aa10(_0x425ba0)),$(0x1,_0x560665)],b);var Ge=Object['defineProperty'],We=Object[_0x1f1dc3(0xf2)],Ye=(_0x4acad7,_0x503ea3,_0x4a3c1f)=>_0x503ea3 in _0x4acad7?Ge(_0x4acad7,_0x503ea3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a3c1f}):_0x4acad7[_0x503ea3]=_0x4a3c1f,Be=(_0x72884a,_0x50087a,_0xc23f62,_0x25cadf)=>{var _0x20ed93=_0x1f1dc3;for(var _0x267ffd=_0x25cadf>0x1?void 0x0:_0x25cadf?We(_0x50087a,_0xc23f62):_0x50087a,_0xf583a2=_0x72884a[_0x20ed93(0xd5)]-0x1,_0x21cbdb;_0xf583a2>=0x0;_0xf583a2--)(_0x21cbdb=_0x72884a[_0xf583a2])&&(_0x267ffd=_0x21cbdb(_0x267ffd)||_0x267ffd);return _0x267ffd;},F=(_0xe264fb,_0x3ca3de)=>(_0x4974e0,_0x4044db)=>_0x3ca3de(_0x4974e0,_0x4044db,_0xe264fb),J=(_0x5450ec,_0xccda0b,_0x3b09d8)=>Ye(_0x5450ec,typeof _0xccda0b!=_0x1f1dc3(0x170)?_0xccda0b+'':_0xccda0b,_0x3b09d8);const Ze=_0x1f1dc3(0xee);let O=class extends _0x583ae2{constructor(_0x4fb05b=T,_0x36fa73,_0x5ae81e){var _0x41bc7b=_0x1f1dc3;super(),this[_0x41bc7b(0x167)]=_0x4fb05b,this[_0x41bc7b(0xe6)]=_0x36fa73,this[_0x41bc7b(0x121)]=_0x5ae81e;const {..._0x5a759b}=_0x244597({},T,this[_0x41bc7b(0x167)]);this['_configService'][_0x41bc7b(0xf6)](Oe,_0x5a759b);}[_0x1f1dc3(0xe7)](){var _0x20f0ee=_0x1f1dc3;_0xb10520(this[_0x20f0ee(0xe6)],_0x523791([[L],[I],[m],[b]],this[_0x20f0ee(0x167)][_0x20f0ee(0xeb)])),_0x5378ff(this[_0x20f0ee(0xe6)],[[m]]);}[_0x1f1dc3(0xd3)](){var _0x1485ff=_0x1f1dc3;_0x5378ff(this[_0x1485ff(0xe6)],[[b]]);}};J(O,_0x1f1dc3(0xd6),_0xf6e587[_0x1f1dc3(0x149)]),J(O,_0x1f1dc3(0x122),Ze),O=Be([_0x517a7e(_0x4684ca),F(0x1,_0x52aa10(_0x425ba0)),F(0x2,_0x464add)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x217919=_0x3bd5;(function(_0x57d09f,_0x1c071b){var _0x33a7a7=_0x3bd5,_0x398506=_0x57d09f();while(!![]){try{var _0x222d32=-parseInt(_0x33a7a7(0x24d))/0x1+-parseInt(_0x33a7a7(0x25a))/0x2*(-parseInt(_0x33a7a7(0x27d))/0x3)+parseInt(_0x33a7a7(0x215))/0x4+-parseInt(_0x33a7a7(0x223))/0x5+-parseInt(_0x33a7a7(0x283))/0x6+parseInt(_0x33a7a7(0x288))/0x7+-parseInt(_0x33a7a7(0x258))/0x8*(parseInt(_0x33a7a7(0x20c))/0x9);if(_0x222d32===_0x1c071b)break;else _0x398506['push'](_0x398506['shift']());}catch(_0x28f7df){_0x398506['push'](_0x398506['shift']());}}}(_0x5edd,0x3a0bd));var q=Object[_0x217919(0x286)],z=(_0x4b1239,_0x362a66,_0x5c1cf0)=>_0x362a66 in _0x4b1239?q(_0x4b1239,_0x362a66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c1cf0}):_0x4b1239[_0x362a66]=_0x5c1cf0,d=(_0x54ba66,_0x6e2f9,_0x521a03)=>z(_0x54ba66,typeof _0x6e2f9!=_0x217919(0x280)?_0x6e2f9+'':_0x6e2f9,_0x521a03);import{CollaborationSessionService as _0x557df8,SessionStatus as _0x4cbd82,UniverCollaborationClientPlugin as _0x309c77}from'@univerjs-pro/collaboration-client';import{Disposable as _0x835fd3,toDisposable as _0x5acfff,Inject as _0xb1ab10,IUniverInstanceService as _0x4b3ee5,Injector as _0x45f335,IConfigService as _0x57f097,ICommandService as _0x2298d1,RxDisposable as _0x2b4675,UniverInstanceType as _0x5c3c06,DisposableCollection as _0x1f9193,CommandType as _0x2f48d5,DependentOn as _0x24fd2c,Plugin as _0x1884ea,merge as _0x3d2d80,registerDependencies as _0x320e2a,mergeOverrideWithDependencies as _0x1d7f61,touchDependencies as _0x224521}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5c32df,InsertSheetMutation as _0x2ace56}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x40dac7,SetScrollOperation as _0x49017c}from'@univerjs/sheets-ui';import{useDependency as _0x32779d,useObservable as _0x3d323e,IUIPartsService as _0x259166,BuiltInUIPart as _0x33db09,connectInjector as _0x128908}from'@univerjs/ui';import{jsx as _0x1cdc23,jsxs as _0xe09a6d,Fragment as _0x32f07f}from'react/jsx-runtime';import{Dropdown as _0xfc6532,clsx as _0x43e1dd,Button as _0x32f9cc}from'@univerjs/design';import{forwardRef as _0x8d7ec,useRef as _0x19708d,createElement as _0xf8dd8b,useState as _0x319951,useEffect as _0x1ce257}from'react';import{CollaborationEvent as _0x4933e0,parseProtocolChangeset as _0x2bcc5a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x291453,Subject as _0x51ec59}from'rxjs';import{takeUntil as _0xc38ce1,throttleTime as _0x371d2d}from'rxjs/operators';const Oe=_0x217919(0x248),T={};class L extends _0x835fd3{constructor(){var _0x2c6f14=_0x217919;super(...arguments),d(this,_0x2c6f14(0x26f),new Set()),d(this,_0x2c6f14(0x1e3),new Set());}[_0x217919(0x22a)](_0x3aedcc){var _0x4b9c0c=_0x217919;return this[_0x4b9c0c(0x26f)][_0x4b9c0c(0x285)](_0x3aedcc),_0x5acfff(()=>this[_0x4b9c0c(0x26f)][_0x4b9c0c(0x244)](_0x3aedcc));}[_0x217919(0x253)](_0x116f89){var _0x4e0b58=_0x217919;return this[_0x4e0b58(0x1e3)][_0x4e0b58(0x285)](_0x116f89),_0x5acfff(()=>this[_0x4e0b58(0x1e3)]['delete'](_0x116f89));}[_0x217919(0x293)](_0x2c7729){var _0x52ab17=_0x217919;return this[_0x52ab17(0x26f)][_0x52ab17(0x263)](_0x2c7729);}['getInitialStates'](_0x290048){var _0x4d6afa=_0x217919;return Array[_0x4d6afa(0x241)](this[_0x4d6afa(0x1e3)])[_0x4d6afa(0x20d)](_0xf5098d=>_0xf5098d(_0x290048));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1ff172,_0x37eca3,_0x239ff7,_0x104970)=>{var _0xd2fd5b=_0x217919;for(var _0x546410=_0x104970>0x1?void 0x0:_0x104970?Ee(_0x37eca3,_0x239ff7):_0x37eca3,_0x1a7e28=_0x1ff172[_0xd2fd5b(0x202)]-0x1,_0x1c4323;_0x1a7e28>=0x0;_0x1a7e28--)(_0x1c4323=_0x1ff172[_0x1a7e28])&&(_0x546410=_0x1c4323(_0x546410)||_0x546410);return _0x546410;},Ne=(_0x2bf4cb,_0x17b9b7)=>(_0x2b6851,_0x137f55)=>_0x17b9b7(_0x2b6851,_0x137f55,_0x2bf4cb);let m=class extends _0x835fd3{constructor(_0x550ca1){var _0x593cf9=_0x217919;super(),this[_0x593cf9(0x222)]=_0x550ca1,this[_0x593cf9(0x220)]();}[_0x217919(0x220)](){var _0x3744b5=_0x217919;[_0x40dac7['id'],_0x49017c['id'],_0x5c32df['id']][_0x3744b5(0x21c)](_0x2b5bf5=>{var _0x368cde=_0x3744b5;this[_0x368cde(0x24b)](this[_0x368cde(0x222)]['registerSharedOperation'](_0x2b5bf5));});}};m=we([Ne(0x0,_0xb1ab10(L))],m);var c=function(){var _0x3ff2b7=_0x217919;return c=Object[_0x3ff2b7(0x237)]||function(_0x4e66c7){var _0x41cb09=_0x3ff2b7;for(var _0x5f291f,_0x47d759=0x1,_0x527042=arguments[_0x41cb09(0x202)];_0x47d759<_0x527042;_0x47d759++){_0x5f291f=arguments[_0x47d759];for(var _0x15156e in _0x5f291f)Object[_0x41cb09(0x22c)][_0x41cb09(0x291)]['call'](_0x5f291f,_0x15156e)&&(_0x4e66c7[_0x15156e]=_0x5f291f[_0x15156e]);}return _0x4e66c7;},c['apply'](this,arguments);},Ce=function(_0x239da3,_0x4f0fd1){var _0x413ee9=_0x217919,_0x28b900={};for(var _0x467103 in _0x239da3)Object[_0x413ee9(0x22c)][_0x413ee9(0x291)][_0x413ee9(0x274)](_0x239da3,_0x467103)&&_0x4f0fd1[_0x413ee9(0x262)](_0x467103)<0x0&&(_0x28b900[_0x467103]=_0x239da3[_0x467103]);if(_0x239da3!=null&&typeof Object[_0x413ee9(0x1ef)]==_0x413ee9(0x28f)){for(var _0x362cb7=0x0,_0x467103=Object[_0x413ee9(0x1ef)](_0x239da3);_0x362cb7<_0x467103[_0x413ee9(0x202)];_0x362cb7++)_0x4f0fd1[_0x413ee9(0x262)](_0x467103[_0x362cb7])<0x0&&Object[_0x413ee9(0x22c)][_0x413ee9(0x209)][_0x413ee9(0x274)](_0x239da3,_0x467103[_0x362cb7])&&(_0x28b900[_0x467103[_0x362cb7]]=_0x239da3[_0x467103[_0x362cb7]]);}return _0x28b900;},W=_0x8d7ec(function(_0x388287,_0x43abca){var _0x4a0cad=_0x217919,_0x2bb484=_0x388287[_0x4a0cad(0x229)],_0x1051db=_0x388287['id'],_0x3d2859=_0x388287[_0x4a0cad(0x200)],_0x448ec9=_0x388287[_0x4a0cad(0x21d)],_0x2a2611=Ce(_0x388287,['icon','id','className',_0x4a0cad(0x21d)]),_0x410f76='univerjs-icon\x20univerjs-icon-'['concat'](_0x1051db,'\x20')['concat'](_0x3d2859||'')[_0x4a0cad(0x201)](),_0x53fd83=_0x19708d('_'[_0x4a0cad(0x27e)](Le()));return Y(_0x2bb484,''['concat'](_0x1051db),{'defIds':_0x2bb484['defIds'],'idSuffix':_0x53fd83[_0x4a0cad(0x251)]},c({'ref':_0x43abca,'className':_0x410f76},_0x2a2611),_0x448ec9);});function Y(_0x2f567d,_0x3e8141,_0x49c6ef,_0x40c873,_0x283174){var _0x185a4a=_0x217919;return _0xf8dd8b(_0x2f567d[_0x185a4a(0x1f4)],c(c({'key':_0x3e8141},De(_0x2f567d,_0x49c6ef,_0x283174)),_0x40c873),(xe(_0x2f567d,_0x49c6ef)[_0x185a4a(0x231)]||[])[_0x185a4a(0x20d)](function(_0x220a06,_0x50d925){var _0x39cdce=_0x185a4a;return Y(_0x220a06,''[_0x39cdce(0x27e)](_0x3e8141,'-')['concat'](_0x2f567d[_0x39cdce(0x1f4)],'-')['concat'](_0x50d925),_0x49c6ef,void 0x0,_0x283174);}));}function De(_0xcd3fac,_0x27ad9a,_0x3f160e){var _0x59c599=_0x217919,_0x2c3bce=c({},_0xcd3fac[_0x59c599(0x208)]);_0x3f160e!=null&&_0x3f160e['colorChannel1']&&_0x2c3bce[_0x59c599(0x26c)]===_0x59c599(0x245)&&(_0x2c3bce[_0x59c599(0x26c)]=_0x3f160e['colorChannel1']),_0xcd3fac['tag']===_0x59c599(0x294)&&_0x2c3bce['id']&&(_0x2c3bce['id']=_0x2c3bce['id']+_0x27ad9a['idSuffix']),Object['entries'](_0x2c3bce)[_0x59c599(0x21c)](function(_0x2e1c6e){var _0x401390=_0x59c599,_0x84ce3d=_0x2e1c6e[0x0],_0x47b0f5=_0x2e1c6e[0x1];_0x84ce3d===_0x401390(0x294)&&typeof _0x47b0f5==_0x401390(0x247)&&(_0x2c3bce[_0x84ce3d]=_0x47b0f5['replace'](/url\(#(.*)\)/,_0x401390(0x268)[_0x401390(0x27e)](_0x27ad9a[_0x401390(0x252)],')')));});var _0x56da10=_0x27ad9a[_0x59c599(0x26a)];return!_0x56da10||_0x56da10['length']===0x0||(_0xcd3fac[_0x59c599(0x1f4)]==='use'&&_0x2c3bce[_0x59c599(0x1e8)]&&(_0x2c3bce['xlink:href']=_0x2c3bce[_0x59c599(0x1e8)]+_0x27ad9a['idSuffix']),Object[_0x59c599(0x24a)](_0x2c3bce)[_0x59c599(0x21c)](function(_0xb72aad){var _0x4ff79a=_0x59c599,_0x4437f2=_0xb72aad[0x0],_0x5b35bd=_0xb72aad[0x1];typeof _0x5b35bd==_0x4ff79a(0x247)&&(_0x2c3bce[_0x4437f2]=_0x5b35bd[_0x4ff79a(0x21e)](/url\(#(.*)\)/,_0x4ff79a(0x268)[_0x4ff79a(0x27e)](_0x27ad9a[_0x4ff79a(0x252)],')')));})),_0x2c3bce;}function xe(_0x12e91b,_0x364686){var _0x560f98=_0x217919,_0x1cca14,_0x178afa=_0x364686['defIds'];return!_0x178afa||_0x178afa[_0x560f98(0x202)]===0x0?_0x12e91b:_0x12e91b[_0x560f98(0x1f4)]===_0x560f98(0x24f)&&(!((_0x1cca14=_0x12e91b[_0x560f98(0x231)])===null||_0x1cca14===void 0x0)&&_0x1cca14[_0x560f98(0x202)])?c(c({},_0x12e91b),{'children':_0x12e91b['children']['map'](function(_0x2c6721){var _0x406c61=_0x560f98;return typeof _0x2c6721['attrs']['id']==_0x406c61(0x247)&&_0x178afa&&_0x178afa[_0x406c61(0x23c)](_0x2c6721[_0x406c61(0x208)]['id'])?c(c({},_0x2c6721),{'attrs':c(c({},_0x2c6721['attrs']),{'id':_0x2c6721['attrs']['id']+_0x364686[_0x406c61(0x252)]})}):_0x2c6721;})}):_0x12e91b;}function Le(){var _0x1502fa=_0x217919;return Math[_0x1502fa(0x1f9)]()[_0x1502fa(0x234)](0x24)[_0x1502fa(0x255)](0x2,0x8);}W[_0x217919(0x20b)]='UniverIcon';var ye={'tag':_0x217919(0x218),'attrs':{'xmlns':_0x217919(0x22e),'fill':_0x217919(0x1fb),'viewBox':_0x217919(0x20a),'width':_0x217919(0x27a),'height':_0x217919(0x27a)},'children':[{'tag':_0x217919(0x206),'attrs':{'fill':_0x217919(0x242),'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':_0x217919(0x242),'d':_0x217919(0x23a),'fillRule':_0x217919(0x1f2),'clipRule':_0x217919(0x1f2)}}]},B=_0x8d7ec(function(_0x350a96,_0x393c37){return _0xf8dd8b(W,Object['assign']({},_0x350a96,{'id':'live-share-icon','ref':_0x393c37,'icon':ye}));});B[_0x217919(0x20b)]=_0x217919(0x25e);var Re=Object[_0x217919(0x1f1)],Z=(_0x310d28,_0x1dc726,_0x2059b6,_0x1b1150)=>{var _0x1eef3a=_0x217919;for(var _0x2d6494=_0x1b1150>0x1?void 0x0:_0x1b1150?Re(_0x1dc726,_0x2059b6):_0x1dc726,_0x58b98d=_0x310d28[_0x1eef3a(0x202)]-0x1,_0x44995a;_0x58b98d>=0x0;_0x58b98d--)(_0x44995a=_0x310d28[_0x58b98d])&&(_0x2d6494=_0x44995a(_0x2d6494)||_0x2d6494);return _0x2d6494;},f=(_0x2745ba,_0x45f7f1)=>(_0x174625,_0xbb1b36)=>_0x45f7f1(_0x174625,_0xbb1b36,_0x2745ba);let I=class extends _0x2b4675{constructor(_0x55695b,_0x54d94a,_0x41c070){var _0x54fdf6=_0x217919;super(),d(this,_0x54fdf6(0x20e),new Map()),(this['_univerInstanceService']=_0x55695b,this[_0x54fdf6(0x232)]=_0x54d94a,this[_0x54fdf6(0x235)]=_0x41c070,this['_init']());}async['getLiveShareCoordinator'](_0x5b3266){var _0x35759e=_0x217919;return this[_0x35759e(0x20e)]['has'](_0x5b3266)||await this[_0x35759e(0x287)](_0x5b3266),this[_0x35759e(0x20e)]['get'](_0x5b3266);}[_0x217919(0x220)](){var _0x156bc2=_0x217919;this[_0x156bc2(0x20f)][_0x156bc2(0x275)](_0x5c3c06[_0x156bc2(0x23d)])[_0x156bc2(0x203)](_0xc38ce1(this[_0x156bc2(0x249)]))[_0x156bc2(0x22b)](async _0x248cad=>{var _0x269028=_0x156bc2;const _0x1d3c67=_0x248cad[_0x269028(0x21a)]();this[_0x269028(0x20e)][_0x269028(0x263)](_0x1d3c67)||this[_0x269028(0x287)](_0x1d3c67);}),this[_0x156bc2(0x20f)][_0x156bc2(0x1f7)](_0x5c3c06[_0x156bc2(0x23d)])[_0x156bc2(0x203)](_0xc38ce1(this['dispose$']))[_0x156bc2(0x22b)](_0x148c65=>{var _0x4d9482=_0x156bc2;const _0x213ca2=_0x148c65['getUnitId'](),_0x13a780=this[_0x4d9482(0x20e)]['get'](_0x213ca2);_0x13a780==null||_0x13a780[_0x4d9482(0x23e)]();});}async['_startLiveShareCoordinator'](_0x1491e7){var _0x1a0d2f=_0x217919;const _0x4e7d59=await this[_0x1a0d2f(0x235)][_0x1a0d2f(0x216)](_0x1491e7),_0x4e1fdd=this[_0x1a0d2f(0x232)]['createInstance'](C,_0x1491e7,_0x4e7d59);return _0x4e1fdd['init'](),this[_0x1a0d2f(0x20e)][_0x1a0d2f(0x25d)](_0x1491e7,_0x4e1fdd),_0x4e1fdd;}};I=Z([f(0x0,_0x4b3ee5),f(0x1,_0xb1ab10(_0x45f335)),f(0x2,_0xb1ab10(_0x557df8))],I);function _0x3bd5(_0x238438,_0x100ff8){var _0x5eddf8=_0x5edd();return _0x3bd5=function(_0x3bd53c,_0x398262){_0x3bd53c=_0x3bd53c-0x1e3;var _0x3dfc0c=_0x5eddf8[_0x3bd53c];return _0x3dfc0c;},_0x3bd5(_0x238438,_0x100ff8);}var h=(_0x13f09f=>(_0x13f09f['OFFLINE']=_0x217919(0x1f3),_0x13f09f[_0x217919(0x239)]=_0x217919(0x228),_0x13f09f[_0x217919(0x243)]=_0x217919(0x1fe),_0x13f09f[_0x217919(0x226)]=_0x217919(0x1f5),_0x13f09f[_0x217919(0x1fa)]='presenting',_0x13f09f))(h||{});const Pe=_0x217919(0x277),Ae=0xc8;let C=class extends _0x2b4675{constructor(_0xc0b381,_0x592574,_0x5dee6f,_0x3a1f03,_0x2dc6dd){var _0xe306cc=_0x217919;super(),d(this,_0xe306cc(0x281),new _0x291453(_0xe306cc(0x228))),d(this,_0xe306cc(0x1f6),this[_0xe306cc(0x281)][_0xe306cc(0x265)]()),d(this,_0xe306cc(0x220),!0x1),d(this,_0xe306cc(0x217),null),d(this,_0xe306cc(0x233),null),(this[_0xe306cc(0x1f0)]=_0xc0b381,this['_collabSession']=_0x592574,this[_0xe306cc(0x25c)]=_0x5dee6f,this[_0xe306cc(0x222)]=_0x3a1f03,this[_0xe306cc(0x227)]=_0x2dc6dd);}get['_status'](){var _0x18db61=_0x217919;return this[_0x18db61(0x281)][_0x18db61(0x24c)]();}['dispose'](){var _0x4b6453=_0x217919,_0x4e0f7b;(_0x4e0f7b=this[_0x4b6453(0x217)])==null||_0x4e0f7b[_0x4b6453(0x23e)](),this[_0x4b6453(0x281)][_0x4b6453(0x266)]('idle'),this[_0x4b6453(0x281)][_0x4b6453(0x23b)]();}[_0x217919(0x264)](){var _0x26804e=_0x217919;this['_init']||(this[_0x26804e(0x220)]=!0x0,this[_0x26804e(0x1e7)][_0x26804e(0x24e)][_0x26804e(0x203)](_0xc38ce1(this[_0x26804e(0x249)]))['subscribe'](_0x50c923=>{var _0x4c78b0=_0x26804e;switch(_0x50c923){case _0x4cbd82['OFFLINE']:this[_0x4c78b0(0x1eb)]();break;case _0x4cbd82[_0x4c78b0(0x28a)]:this[_0x4c78b0(0x1ee)]();break;}}),this[_0x26804e(0x1e7)][_0x26804e(0x271)][_0x26804e(0x203)](_0xc38ce1(this[_0x26804e(0x249)]))[_0x26804e(0x22b)](_0x3fcdee=>{var _0x874593=_0x26804e;const {eventID:_0x7dd938}=_0x3fcdee;switch(_0x7dd938){case _0x4933e0[_0x874593(0x273)]:this[_0x874593(0x205)](_0x3fcdee);break;case _0x4933e0['LIVESHARE_OPERATION']:this[_0x874593(0x292)](_0x3fcdee);break;case _0x4933e0[_0x874593(0x295)]:this[_0x874593(0x296)]();break;case _0x4933e0[_0x874593(0x204)]:this[_0x874593(0x250)](_0x3fcdee);break;}}));}['tryStartPresenting'](){var _0x1e7cd7=_0x217919;this[_0x1e7cd7(0x1e7)][_0x1e7cd7(0x1f8)]({'eventID':_0x4933e0[_0x1e7cd7(0x1e5)],'data':{'unitID':this[_0x1e7cd7(0x1f0)],'userID':this[_0x1e7cd7(0x1e7)][_0x1e7cd7(0x26d)]()}},this['_unitID']);}['stopPresenting'](){var _0x193b3a=_0x217919;this[_0x193b3a(0x207)]===_0x193b3a(0x25b)&&(this[_0x193b3a(0x281)]['next'](_0x193b3a(0x228)),this[_0x193b3a(0x1e7)][_0x193b3a(0x1f8)]({'eventID':_0x4933e0[_0x193b3a(0x295)],'data':{'unitID':this[_0x193b3a(0x1f0)]}},this[_0x193b3a(0x1f0)]));}['startFollowing'](){var _0x20f4d6=_0x217919;this['_status']==='not-following'&&(this['_status$'][_0x20f4d6(0x266)](_0x20f4d6(0x1fe)),this[_0x20f4d6(0x25f)]());}[_0x217919(0x27f)](){var _0x55121d=_0x217919;this[_0x55121d(0x207)]==='following'&&this[_0x55121d(0x1e4)]();}[_0x217919(0x205)](_0xc9cc01){var _0x2f87d4=_0x217919;const {presenter:_0x2cf471}=_0xc9cc01[_0x2f87d4(0x272)],_0x2c6acd=this[_0x2f87d4(0x1e7)][_0x2f87d4(0x26d)]();this[_0x2f87d4(0x233)]=_0x2cf471,_0x2cf471===_0x2c6acd?(this[_0x2f87d4(0x1e4)](),this['_startPresenting']()):this['_status']!==_0x2f87d4(0x1f5)&&(this[_0x2f87d4(0x213)](),this[_0x2f87d4(0x25f)]());}[_0x217919(0x28d)](){var _0x2edcb6=_0x217919;const _0x2f29ce={'eventID':_0x4933e0[_0x2edcb6(0x219)]};this[_0x2edcb6(0x1e7)][_0x2edcb6(0x1f8)](_0x2f29ce,this[_0x2edcb6(0x1f0)]);}[_0x217919(0x296)](){var _0x35d722=_0x217919;this[_0x35d722(0x233)]=null,this[_0x35d722(0x207)]!==_0x35d722(0x25b)&&this['_beIdle']();}[_0x217919(0x250)](_0x2aa40e){var _0x492897=_0x217919;if(this[_0x492897(0x207)]===_0x492897(0x1fe)&&this[_0x492897(0x233)]===_0x2aa40e[_0x492897(0x272)][_0x492897(0x236)]){const _0x16bd32=_0x2bcc5a(_0x2aa40e['data'])[_0x492897(0x1ff)][_0x492897(0x1fd)]()[_0x492897(0x1ea)](_0x178756=>_0x178756['id']===_0x2ace56['id']);if(_0x16bd32){const _0x2aef50=_0x16bd32['params'][_0x492897(0x260)],_0x2c2719=_0x16bd32[_0x492897(0x290)][_0x492897(0x257)]['id'];setTimeout(()=>{var _0x1b69a0=_0x492897;this[_0x1b69a0(0x227)][_0x1b69a0(0x1e9)](_0x5c32df['id'],{'unitId':_0x2aef50,'subUnitId':_0x2c2719},{'fromCollab':!0x0});});}}}[_0x217919(0x279)](){var _0x2f1e85=_0x217919;this[_0x2f1e85(0x281)][_0x2f1e85(0x266)](_0x2f1e85(0x25b));const _0x684e6=new Map(),_0x495943=this[_0x2f1e85(0x217)]=new _0x1f9193();_0x495943[_0x2f1e85(0x285)](_0x5acfff(()=>{var _0x542862=_0x2f1e85;_0x684e6[_0x542862(0x21c)](_0x1d749a=>_0x1d749a[_0x542862(0x23b)]()),_0x684e6['clear']();})),_0x495943[_0x2f1e85(0x285)](this[_0x2f1e85(0x227)]['onCommandExecuted'](_0x5ade1f=>{var _0x33455b=_0x2f1e85,_0x58d909;if(_0x5ade1f[_0x33455b(0x28e)]!==_0x2f48d5[_0x33455b(0x21b)]||!this[_0x33455b(0x222)][_0x33455b(0x293)](_0x5ade1f['id']))return;const {id:_0x3c4a78}=_0x5ade1f;let _0xc49918;_0x684e6[_0x33455b(0x263)](_0x3c4a78)?_0xc49918=_0x684e6['get'](_0x3c4a78):(_0xc49918=new _0x51ec59(),_0x684e6[_0x33455b(0x25d)](_0x3c4a78,_0xc49918),_0xc49918[_0x33455b(0x203)](_0x371d2d((_0x58d909=this[_0x33455b(0x25c)][_0x33455b(0x230)](Pe))!=null?_0x58d909:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x33455b(0x22b)](_0x455b2d=>{var _0x538126=_0x33455b;this[_0x538126(0x1e7)][_0x538126(0x1f8)]({'eventID':_0x4933e0[_0x538126(0x212)],'data':{'unitID':this[_0x538126(0x1f0)],'operations':{[_0x455b2d['id']]:{'id':_0x455b2d['id'],'params':JSON[_0x538126(0x21f)](_0x455b2d['params'])}}}},this['_unitID']);})),_0xc49918[_0x33455b(0x266)](_0x5ade1f);})),this['_liveShareService'][_0x2f1e85(0x259)](this['_unitID'])[_0x2f1e85(0x21c)](_0x101608=>this['_collabSession'][_0x2f1e85(0x1f8)]({'eventID':_0x4933e0[_0x2f1e85(0x212)],'data':{'unitID':this[_0x2f1e85(0x1f0)],'operations':{[_0x101608['id']]:{'id':_0x101608['id'],'params':JSON[_0x2f1e85(0x21f)](_0x101608[_0x2f1e85(0x290)])}}}},this['_unitID']));}[_0x217919(0x213)](){var _0x38573e=_0x217919,_0x126489;this[_0x38573e(0x281)]['next'](_0x38573e(0x228)),(_0x126489=this[_0x38573e(0x217)])==null||_0x126489[_0x38573e(0x23e)](),this[_0x38573e(0x217)]=null;}[_0x217919(0x25f)](){var _0x43fb41=_0x217919,_0x2dcc56;(_0x2dcc56=this[_0x43fb41(0x217)])==null||_0x2dcc56['dispose'](),this[_0x43fb41(0x281)][_0x43fb41(0x266)](_0x43fb41(0x1fe));}[_0x217919(0x224)](){var _0x44df9e=_0x217919,_0x29facc;this['_status$']['next']('idle'),(_0x29facc=this[_0x44df9e(0x217)])==null||_0x29facc[_0x44df9e(0x23e)](),this[_0x44df9e(0x217)]=null;}['_stopFollowing'](){var _0x23fcc1=_0x217919,_0x34fd1d;this[_0x23fcc1(0x281)][_0x23fcc1(0x266)](_0x23fcc1(0x1f5)),(_0x34fd1d=this[_0x23fcc1(0x217)])==null||_0x34fd1d[_0x23fcc1(0x23e)]();}[_0x217919(0x292)](_0x1a584a){var _0x15abd9=_0x217919;if(['presenting',_0x15abd9(0x1f5),'offline'][_0x15abd9(0x23c)](this['_status'])||!_0x1a584a['data'][_0x15abd9(0x1ed)]||_0x1a584a[_0x15abd9(0x272)][_0x15abd9(0x1ed)]===this[_0x15abd9(0x1e7)][_0x15abd9(0x26d)]())return;this[_0x15abd9(0x207)]===_0x15abd9(0x228)&&this[_0x15abd9(0x25f)]();const _0x1b3161=_0x1a584a['data']['operations'];Object['values'](_0x1b3161)['forEach'](_0x18cfd1=>{var _0x285712=_0x15abd9;this[_0x285712(0x227)][_0x285712(0x1e9)](_0x18cfd1['id'],_0x18cfd1['params']?JSON[_0x285712(0x211)](_0x18cfd1[_0x285712(0x290)]):null,{'fromCollab':!0x0});});}[_0x217919(0x1eb)](){var _0x1b0e23=_0x217919,_0x39121d;this[_0x1b0e23(0x281)][_0x1b0e23(0x266)](_0x1b0e23(0x1f3)),(_0x39121d=this[_0x1b0e23(0x217)])==null||_0x39121d[_0x1b0e23(0x23e)]();}[_0x217919(0x1ee)](){var _0x55e0d5=_0x217919;this['_status$'][_0x55e0d5(0x266)](_0x55e0d5(0x228)),this[_0x55e0d5(0x28d)]();}};function _0x5edd(){var _0x47f770=['tag','not-following','status$','getTypeOfUnitDisposed$','send','random','PRESENTING','none','setConfig','reverse','following','mutations','className','trim','length','pipe','NEW_CHANGESETS','_handleNewHost','path','_status','attrs','propertyIsEnumerable','0\x200\x2017\x2017','displayName','18gLdEiC','map','_entities','_univerInstanceService','Stop\x20following','parse','LIVESHARE_OPERATION','_stopPresenting','end','931440AwhBbr','requireSession','_commandDisposable','svg','LIVESHARE_FETCH_OPERATIONS','getUnitId','OPERATION','forEach','extend','replace','stringify','_init','onRendered','_liveShareService','1230775QHtdqG','_beIdle','getLiveShareCoordinator','NOT_FOLLOWING','_commandService','idle','icon','registerSharedOperation','subscribe','prototype','UNIVER_UNKNOWN','http://www.w3.org/2000/svg','Start','getConfig','children','_injector','_presenter','toString','_collabSessionService','memberID','assign','startFollowing','IDLE','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','complete','includes','UNIVER_SHEET','dispose','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20following\x20the\x20presenter','from','currentColor','FOLLOWING','delete','colorChannel1','You\x27re\x20presenting\x20the\x20document','string','live-share.config','dispose$','entries','disposeWithMe','getValue','175026LFBAGJ','sessionStatus$','defs','_handleNewChangeSets','current','idSuffix','registerInitialStateReporter','default','substring','stopPresenting','sheet','159808chkCBR','getInitialStates','8098xYUQco','presenting','_configService','set','LiveShareIcon','_startFollowing','unitId','_uiPartsService','indexOf','has','init','asObservable','next','tryStartPresenting','url(#$1','div','defIds','Present\x20this\x20document','fill','getMemberID','_config','_sharedOperations','onStarting','event$','data','LIVESHARE_NEW_HOST','call','getTypeOfUnitAdded$','OFFLINE','SAME_OPERATION_SHARE_INTERVAL','unsubscribe','_startPresenting','1em','Stop\x20presenting','registerComponent','33sUcFpt','concat','stopFollowing','symbol','_status$','_mountLiveShare','141966riiVHU','then','add','defineProperty','_startLiveShareCoordinator','3116064TgSvaK','You\x27are\x20offline.','ONLINE','Start\x20following','button','_fetchOperations','type','function','params','hasOwnProperty','_handleOperation','shouldShareOperation','mask','LIVESHARE_TERMINATE','_handleTerminate','_reporters','_stopFollowing','LIVESHARE_REQUEST_HOST','pluginName','_collabSession','xlink:href','executeCommand','find','_handleOffline','HEADER_MENU','presenter','_handleOnline','getOwnPropertySymbols','_unitID','getOwnPropertyDescriptor','evenodd','offline'];_0x5edd=function(){return _0x47f770;};return _0x5edd();}C=Z([f(0x2,_0x57f097),f(0x3,_0xb1ab10(L)),f(0x4,_0x2298d1)],C);function Te(){var _0x1e053a=_0x217919;const _0x21cada=_0x32779d(I),_0xf8a7b0=_0x32779d(_0x4b3ee5),_0x504f67=_0x3d323e(()=>_0xf8a7b0['getCurrentTypeOfUnit$'](_0x5c3c06[_0x1e053a(0x23d)]),void 0x0,!0x1,[]),[_0x1ca167,_0x1a5ac0]=_0x319951(null),[_0x45cb0b,_0x170648]=_0x319951(h[_0x1e053a(0x239)]),_0x45001c=_0x19708d(null);return _0x1ce257(()=>(_0x504f67&&_0x21cada[_0x1e053a(0x225)](_0x504f67[_0x1e053a(0x21a)]())[_0x1e053a(0x284)](_0x5326f6=>{var _0x1c9b64=_0x1e053a;_0x1a5ac0(_0x5326f6),_0x45001c['current']=_0x5326f6[_0x1c9b64(0x1f6)]['subscribe'](_0x5e876b=>{_0x170648(_0x5e876b);});}),()=>{var _0x522636=_0x1e053a,_0x208761;(_0x208761=_0x45001c[_0x522636(0x251)])==null||_0x208761[_0x522636(0x278)](),_0x45001c[_0x522636(0x251)]=null;}),[_0x504f67,_0x21cada]),_0x1ca167?_0x1cdc23(_0xfc6532,{'align':_0x1e053a(0x214),'disabled':_0x45cb0b===h[_0x1e053a(0x276)],'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':_0x1cdc23($e,{'status':_0x45cb0b,'coordinator':_0x1ca167}),'children':_0x1cdc23(_0x1e053a(0x28c),{'className':_0x43e1dd('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x45cb0b===h[_0x1e053a(0x276)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45cb0b!==h[_0x1e053a(0x276)]}),'type':_0x1e053a(0x28c),'children':_0x1cdc23(B,{'className':'univer-size-4'})})}):null;}function $e(_0x14fbba){var _0x40d109=_0x217919;const {status:_0x5b07fb,coordinator:_0x37cd95}=_0x14fbba;switch(_0x5b07fb){case h['IDLE']:return _0x1cdc23(Fe,{'coordinator':_0x37cd95});case h[_0x40d109(0x243)]:return _0x1cdc23(He,{'coordinator':_0x37cd95});case h[_0x40d109(0x226)]:return _0x1cdc23(je,{'coordinator':_0x37cd95});case h['OFFLINE']:return _0x1cdc23(Ve,{});case h['PRESENTING']:return _0x1cdc23(Ue,{'coordinator':_0x37cd95});default:return null;}}function Fe(_0xe4be8c){var _0x20f5c5=_0x217919;const {coordinator:_0x1066d3}=_0xe4be8c;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x20f5c5(0x269),{'className':_0x20f5c5(0x23f),'children':_0x20f5c5(0x26b)}),_0x1cdc23(_0x32f9cc,{'onClick':()=>_0x1066d3[_0x20f5c5(0x267)](),'children':_0x20f5c5(0x22f)})]});}function He(_0x1151ed){var _0x453057=_0x217919;const {coordinator:_0x2f642a}=_0x1151ed;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x453057(0x269),{'className':_0x453057(0x23f),'children':_0x453057(0x240)}),_0x1cdc23(_0x32f9cc,{'onClick':()=>_0x2f642a[_0x453057(0x27f)](),'children':_0x453057(0x210)})]});}function je(_0x2f2749){var _0x5d1e54=_0x217919;const {coordinator:_0x4a0684}=_0x2f2749;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x5d1e54(0x269),{'className':_0x5d1e54(0x23f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1cdc23(_0x32f9cc,{'variant':'text','onClick':()=>_0x4a0684[_0x5d1e54(0x238)](),'children':_0x5d1e54(0x28b)})]});}function Ue(_0x36fd2e){var _0x4f4288=_0x217919;const {coordinator:_0x5c12c7}=_0x36fd2e;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x4f4288(0x269),{'className':_0x4f4288(0x23f),'children':_0x4f4288(0x246)}),_0x1cdc23(_0x32f9cc,{'variant':_0x4f4288(0x254),'onClick':()=>_0x5c12c7[_0x4f4288(0x256)](),'children':_0x4f4288(0x27b)})]});}function Ve(){var _0x176dfb=_0x217919;return _0x1cdc23(_0x32f07f,{'children':_0x176dfb(0x289)});}var Me=Object[_0x217919(0x1f1)],ke=(_0x59ec10,_0x2a4fd5,_0x599de9,_0x31173a)=>{var _0x2f9cd7=_0x217919;for(var _0x10cf6f=_0x31173a>0x1?void 0x0:_0x31173a?Me(_0x2a4fd5,_0x599de9):_0x2a4fd5,_0x12b78c=_0x59ec10[_0x2f9cd7(0x202)]-0x1,_0x53c621;_0x12b78c>=0x0;_0x12b78c--)(_0x53c621=_0x59ec10[_0x12b78c])&&(_0x10cf6f=_0x53c621(_0x10cf6f)||_0x10cf6f);return _0x10cf6f;},$=(_0x5fbf18,_0xc7fede)=>(_0x14ede1,_0x5d2553)=>_0xc7fede(_0x14ede1,_0x5d2553,_0x5fbf18);let b=class extends _0x835fd3{constructor(_0x3d0476,_0x1d6087){var _0xc00a74=_0x217919;super(),this['_injector']=_0x3d0476,this['_uiPartsService']=_0x1d6087,this[_0xc00a74(0x282)]();}['_mountLiveShare'](){var _0x4f15bc=_0x217919;this[_0x4f15bc(0x24b)](this[_0x4f15bc(0x261)][_0x4f15bc(0x27c)](_0x33db09[_0x4f15bc(0x1ec)],()=>_0x128908(Te,this[_0x4f15bc(0x232)])));}};b=ke([$(0x0,_0xb1ab10(_0x45f335)),$(0x1,_0x259166)],b);var Ge=Object[_0x217919(0x286)],We=Object[_0x217919(0x1f1)],Ye=(_0x416e62,_0x589b9c,_0x5e0af6)=>_0x589b9c in _0x416e62?Ge(_0x416e62,_0x589b9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e0af6}):_0x416e62[_0x589b9c]=_0x5e0af6,Be=(_0x55198a,_0x2fcc93,_0x5d1887,_0x28cf75)=>{var _0x50def2=_0x217919;for(var _0x3cd0f7=_0x28cf75>0x1?void 0x0:_0x28cf75?We(_0x2fcc93,_0x5d1887):_0x2fcc93,_0x2b78f7=_0x55198a[_0x50def2(0x202)]-0x1,_0x4497c1;_0x2b78f7>=0x0;_0x2b78f7--)(_0x4497c1=_0x55198a[_0x2b78f7])&&(_0x3cd0f7=_0x4497c1(_0x3cd0f7)||_0x3cd0f7);return _0x3cd0f7;},F=(_0x2fb79e,_0x3bbd01)=>(_0x20fb91,_0x40169f)=>_0x3bbd01(_0x20fb91,_0x40169f,_0x2fb79e),J=(_0x425350,_0x3c0bc0,_0x334351)=>Ye(_0x425350,typeof _0x3c0bc0!=_0x217919(0x280)?_0x3c0bc0+'':_0x3c0bc0,_0x334351);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1884ea{constructor(_0x5b2bf6=T,_0x265447,_0x320a49){var _0x5a7ee0=_0x217919;super(),this['_config']=_0x5b2bf6,this[_0x5a7ee0(0x232)]=_0x265447,this[_0x5a7ee0(0x25c)]=_0x320a49;const {..._0x4620ee}=_0x3d2d80({},T,this[_0x5a7ee0(0x26e)]);this['_configService'][_0x5a7ee0(0x1fc)](Oe,_0x4620ee);}[_0x217919(0x270)](){var _0x11045f=_0x217919;_0x320e2a(this[_0x11045f(0x232)],_0x1d7f61([[L],[I],[m],[b]],this[_0x11045f(0x26e)]['override'])),_0x224521(this[_0x11045f(0x232)],[[m]]);}[_0x217919(0x221)](){var _0x23238b=_0x217919;_0x224521(this[_0x23238b(0x232)],[[b]]);}};J(O,_0x217919(0x28e),_0x5c3c06[_0x217919(0x22d)]),J(O,_0x217919(0x1e6),Ze),O=Be([_0x24fd2c(_0x309c77),F(0x1,_0xb1ab10(_0x45f335)),F(0x2,_0x57f097)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x15ad(){var _0x1536f2=['_uiPartsService','PRESENTING','find','random','UNIVER_UNKNOWN','defIds','requireSession','text','FOLLOWING','toString','fill','1em','data','get','_entities','getLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','div','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','shouldShareOperation','LiveShareIcon','colorChannel1','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','not-following','none','disposeWithMe','Start\x20following','You\x27are\x20offline.','xlink:href','children','params','idSuffix','clear','_config','_mountLiveShare','8372VMjhUJ','prototype','_commandDisposable','stringify','2969625iHHMrC','idle','use','symbol','_collabSession','4643345xaQYyO','SAME_OPERATION_SHARE_INTERVAL','NEW_CHANGESETS','getValue','_sharedOperations','has','_liveShareService','presenting','memberID','attrs','asObservable','98382EHJfSJ','0\x200\x2017\x2017','className','_handleOperation','onRendered','_init','length','type','includes','sheet','following','You\x27re\x20presenting\x20the\x20document','getOwnPropertySymbols','event$','parse','call','current','6EsAyKZ','OFFLINE','substring','_stopFollowing','unitId','_beIdle','_injector','onStarting','send','19ynWmJi','stopFollowing','override','_handleOnline','onCommandExecuted','UNIVER_LIVE_SHARE_PLUGIN','status$','606oJvZap','currentColor','getOwnPropertyDescriptor','_handleNewChangeSets','_handleNewHost','stopPresenting','setConfig','propertyIsEnumerable','delete','dispose$','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','dispose','concat','executeCommand','icon','_status$','presenter','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','then','indexOf','Stop\x20presenting','_startPresenting','mutations','getUnitId','_handleOffline','set','live-share.config','_startFollowing','init','Stop\x20following','mask','tryStartPresenting','next','_handleTerminate','getMemberID','complete','_univerInstanceService','getTypeOfUnitDisposed$','startFollowing','default','_unitID','_startLiveShareCoordinator','_reporters','getTypeOfUnitAdded$','from','displayName','IDLE','_configService','pluginName','8730000sGPVty','createInstance','Start','map','forEach','getCurrentTypeOfUnit$','unsubscribe','52064960wMLxKE','subscribe','assign','6509800UdhpFw','getInitialStates','_commandService','HEADER_MENU','LIVESHARE_OPERATION','add','path','string','_status','registerComponent','url(#$1','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','pipe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','OPERATION','_collabSessionService','tag','end','hasOwnProperty','evenodd','live-share-icon','registerSharedOperation','operations','_presenter'];_0x15ad=function(){return _0x1536f2;};return _0x15ad();}var _0x1f1dc3=_0x1458;(function(_0x366c26,_0x1bf9ef){var _0x1af68c=_0x1458,_0x44d42a=_0x366c26();while(!![]){try{var _0x2a26dc=-parseInt(_0x1af68c(0xe9))/0x1*(parseInt(_0x1af68c(0x17d))/0x2)+-parseInt(_0x1af68c(0xf0))/0x3*(parseInt(_0x1af68c(0x169))/0x4)+parseInt(_0x1af68c(0x16d))/0x5*(-parseInt(_0x1af68c(0xe0))/0x6)+-parseInt(_0x1af68c(0x172))/0x7+-parseInt(_0x1af68c(0x12d))/0x8+-parseInt(_0x1af68c(0x123))/0x9+parseInt(_0x1af68c(0x12a))/0xa;if(_0x2a26dc===_0x1bf9ef)break;else _0x44d42a['push'](_0x44d42a['shift']());}catch(_0x18c4da){_0x44d42a['push'](_0x44d42a['shift']());}}}(_0x15ad,0xc54a0));var q=Object['defineProperty'],z=(_0xef156c,_0x1cca69,_0x48f5c1)=>_0x1cca69 in _0xef156c?q(_0xef156c,_0x1cca69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48f5c1}):_0xef156c[_0x1cca69]=_0x48f5c1,d=(_0x1d9ecf,_0x1bd408,_0x158b8c)=>z(_0x1d9ecf,typeof _0x1bd408!=_0x1f1dc3(0x170)?_0x1bd408+'':_0x1bd408,_0x158b8c);import{CollaborationSessionService as _0x1c3102,SessionStatus as _0x2b6119,UniverCollaborationClientPlugin as _0x4684ca}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5a7acb,toDisposable as _0x3afb6c,Inject as _0x52aa10,IUniverInstanceService as _0x473ab5,Injector as _0x425ba0,IConfigService as _0x464add,ICommandService as _0xe19690,RxDisposable as _0x492441,UniverInstanceType as _0xf6e587,DisposableCollection as _0x59d69e,CommandType as _0x497609,DependentOn as _0x517a7e,Plugin as _0x583ae2,merge as _0x244597,registerDependencies as _0xb10520,mergeOverrideWithDependencies as _0x523791,touchDependencies as _0x5378ff}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2a60c8,InsertSheetMutation as _0x581502}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x122d87,SetScrollOperation as _0xf2e074}from'@univerjs/sheets-ui';import{useDependency as _0x110ab8,useObservable as _0x372a11,IUIPartsService as _0x560665,BuiltInUIPart as _0x18829f,connectInjector as _0x856a59}from'@univerjs/ui';import{jsx as _0x4f8640,jsxs as _0x1ba4e7,Fragment as _0x1a63d4}from'react/jsx-runtime';import{Dropdown as _0x266bbf,clsx as _0x1652b5,Button as _0x309462}from'@univerjs/design';import{forwardRef as _0x51318f,useRef as _0x330082,createElement as _0x4a1dd9,useState as _0x9089c6,useEffect as _0x5afb2a}from'react';import{CollaborationEvent as _0x20e2fb,parseProtocolChangeset as _0x21bba2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x411c5a,Subject as _0x3a5a02}from'rxjs';import{takeUntil as _0xaa963a,throttleTime as _0x220b10}from'rxjs/operators';const Oe=_0x1f1dc3(0x10c),T={};class L extends _0x5a7acb{constructor(){var _0x21caf5=_0x1f1dc3;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21caf5(0x11c),new Set());}[_0x1f1dc3(0x142)](_0x3e9d60){var _0x91b2ea=_0x1f1dc3;return this[_0x91b2ea(0x176)][_0x91b2ea(0x132)](_0x3e9d60),_0x3afb6c(()=>this['_sharedOperations']['delete'](_0x3e9d60));}['registerInitialStateReporter'](_0x54c4b8){var _0x471f9d=_0x1f1dc3;return this[_0x471f9d(0x11c)][_0x471f9d(0x132)](_0x54c4b8),_0x3afb6c(()=>this[_0x471f9d(0x11c)][_0x471f9d(0xf8)](_0x54c4b8));}['shouldShareOperation'](_0x329f93){var _0x35322a=_0x1f1dc3;return this['_sharedOperations'][_0x35322a(0x177)](_0x329f93);}[_0x1f1dc3(0x12e)](_0x360447){var _0x164b77=_0x1f1dc3;return Array[_0x164b77(0x11e)](this[_0x164b77(0x11c)])[_0x164b77(0x126)](_0x412ebf=>_0x412ebf(_0x360447));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x10653e,_0x42bdab,_0x58017b,_0x4e2bff)=>{for(var _0x2e0a38=_0x4e2bff>0x1?void 0x0:_0x4e2bff?Ee(_0x42bdab,_0x58017b):_0x42bdab,_0x216cba=_0x10653e['length']-0x1,_0x57ad98;_0x216cba>=0x0;_0x216cba--)(_0x57ad98=_0x10653e[_0x216cba])&&(_0x2e0a38=_0x57ad98(_0x2e0a38)||_0x2e0a38);return _0x2e0a38;},Ne=(_0x2dd8a1,_0x41c140)=>(_0x71b032,_0x430193)=>_0x41c140(_0x71b032,_0x430193,_0x2dd8a1);let m=class extends _0x5a7acb{constructor(_0x4df866){var _0x2a4446=_0x1f1dc3;super(),this[_0x2a4446(0x178)]=_0x4df866,this[_0x2a4446(0xd4)]();}[_0x1f1dc3(0xd4)](){var _0x17a223=_0x1f1dc3;[_0x122d87['id'],_0xf2e074['id'],_0x2a60c8['id']][_0x17a223(0x127)](_0x360774=>{var _0x34e05d=_0x17a223;this[_0x34e05d(0x15f)](this[_0x34e05d(0x178)]['registerSharedOperation'](_0x360774));});}};m=we([Ne(0x0,_0x52aa10(L))],m);var c=function(){return c=Object['assign']||function(_0x19f857){var _0x430d04=_0x1458;for(var _0x47fd76,_0x71e787=0x1,_0x1a5fab=arguments[_0x430d04(0xd5)];_0x71e787<_0x1a5fab;_0x71e787++){_0x47fd76=arguments[_0x71e787];for(var _0x94f6b5 in _0x47fd76)Object[_0x430d04(0x16a)][_0x430d04(0x13f)][_0x430d04(0xde)](_0x47fd76,_0x94f6b5)&&(_0x19f857[_0x94f6b5]=_0x47fd76[_0x94f6b5]);}return _0x19f857;},c['apply'](this,arguments);},Ce=function(_0x51805e,_0x553a35){var _0x1edfe9=_0x1f1dc3,_0x959cf3={};for(var _0x23a03c in _0x51805e)Object['prototype']['hasOwnProperty'][_0x1edfe9(0xde)](_0x51805e,_0x23a03c)&&_0x553a35['indexOf'](_0x23a03c)<0x0&&(_0x959cf3[_0x23a03c]=_0x51805e[_0x23a03c]);if(_0x51805e!=null&&typeof Object[_0x1edfe9(0xdb)]=='function'){for(var _0x39c3fe=0x0,_0x23a03c=Object[_0x1edfe9(0xdb)](_0x51805e);_0x39c3fe<_0x23a03c['length'];_0x39c3fe++)_0x553a35[_0x1edfe9(0x105)](_0x23a03c[_0x39c3fe])<0x0&&Object[_0x1edfe9(0x16a)][_0x1edfe9(0xf7)]['call'](_0x51805e,_0x23a03c[_0x39c3fe])&&(_0x959cf3[_0x23a03c[_0x39c3fe]]=_0x51805e[_0x23a03c[_0x39c3fe]]);}return _0x959cf3;},W=_0x51318f(function(_0x366633,_0x5f2233){var _0x4bb45a=_0x1f1dc3,_0x8dd4d8=_0x366633[_0x4bb45a(0xff)],_0x57c76f=_0x366633['id'],_0x373278=_0x366633[_0x4bb45a(0xd1)],_0x120e4a=_0x366633['extend'],_0x5a9fae=Ce(_0x366633,[_0x4bb45a(0xff),'id',_0x4bb45a(0xd1),'extend']),_0xac3060=_0x4bb45a(0x155)['concat'](_0x57c76f,'\x20')[_0x4bb45a(0xfd)](_0x373278||'')['trim'](),_0xd49604=_0x330082('_'['concat'](Le()));return Y(_0x8dd4d8,''[_0x4bb45a(0xfd)](_0x57c76f),{'defIds':_0x8dd4d8[_0x4bb45a(0x14a)],'idSuffix':_0xd49604[_0x4bb45a(0xdf)]},c({'ref':_0x5f2233,'className':_0xac3060},_0x5a9fae),_0x120e4a);});function Y(_0x2d4c3d,_0x2d40ff,_0x16096d,_0x10943f,_0x44d8e4){var _0x383293=_0x1f1dc3;return _0x4a1dd9(_0x2d4c3d[_0x383293(0x13d)],c(c({'key':_0x2d40ff},De(_0x2d4c3d,_0x16096d,_0x44d8e4)),_0x10943f),(xe(_0x2d4c3d,_0x16096d)[_0x383293(0x163)]||[])['map'](function(_0x102a57,_0x3a6b15){var _0x293379=_0x383293;return Y(_0x102a57,''[_0x293379(0xfd)](_0x2d40ff,'-')[_0x293379(0xfd)](_0x2d4c3d['tag'],'-')[_0x293379(0xfd)](_0x3a6b15),_0x16096d,void 0x0,_0x44d8e4);}));}function _0x1458(_0x671146,_0x37fa4d){var _0x15ad7d=_0x15ad();return _0x1458=function(_0x1458ed,_0x1d0c2e){_0x1458ed=_0x1458ed-0xd1;var _0x1c7c64=_0x15ad7d[_0x1458ed];return _0x1c7c64;},_0x1458(_0x671146,_0x37fa4d);}function De(_0x1b4f55,_0x20546b,_0x4167c8){var _0x4413fb=_0x1f1dc3,_0x2df0e9=c({},_0x1b4f55[_0x4413fb(0x17b)]);_0x4167c8!=null&&_0x4167c8[_0x4413fb(0x15b)]&&_0x2df0e9[_0x4413fb(0x14f)]===_0x4413fb(0x15b)&&(_0x2df0e9['fill']=_0x4167c8['colorChannel1']),_0x1b4f55[_0x4413fb(0x13d)]===_0x4413fb(0x110)&&_0x2df0e9['id']&&(_0x2df0e9['id']=_0x2df0e9['id']+_0x20546b[_0x4413fb(0x165)]),Object['entries'](_0x2df0e9)[_0x4413fb(0x127)](function(_0x50c635){var _0x19c349=_0x4413fb,_0x4a4b27=_0x50c635[0x0],_0x1370d5=_0x50c635[0x1];_0x4a4b27===_0x19c349(0x110)&&typeof _0x1370d5=='string'&&(_0x2df0e9[_0x4a4b27]=_0x1370d5['replace'](/url\(#(.*)\)/,_0x19c349(0x137)[_0x19c349(0xfd)](_0x20546b[_0x19c349(0x165)],')')));});var _0x42e8c5=_0x20546b['defIds'];return!_0x42e8c5||_0x42e8c5['length']===0x0||(_0x1b4f55[_0x4413fb(0x13d)]===_0x4413fb(0x16f)&&_0x2df0e9[_0x4413fb(0x162)]&&(_0x2df0e9['xlink:href']=_0x2df0e9[_0x4413fb(0x162)]+_0x20546b[_0x4413fb(0x165)]),Object['entries'](_0x2df0e9)['forEach'](function(_0x25bfce){var _0x5118ff=_0x4413fb,_0x1f64d0=_0x25bfce[0x0],_0x135808=_0x25bfce[0x1];typeof _0x135808==_0x5118ff(0x134)&&(_0x2df0e9[_0x1f64d0]=_0x135808['replace'](/url\(#(.*)\)/,_0x5118ff(0x137)[_0x5118ff(0xfd)](_0x20546b[_0x5118ff(0x165)],')')));})),_0x2df0e9;}function xe(_0x4e7bb2,_0xe85b47){var _0x4e7fdf=_0x1f1dc3,_0x3e0bb8,_0x4c79af=_0xe85b47[_0x4e7fdf(0x14a)];return!_0x4c79af||_0x4c79af[_0x4e7fdf(0xd5)]===0x0?_0x4e7bb2:_0x4e7bb2[_0x4e7fdf(0x13d)]==='defs'&&(!((_0x3e0bb8=_0x4e7bb2[_0x4e7fdf(0x163)])===null||_0x3e0bb8===void 0x0)&&_0x3e0bb8[_0x4e7fdf(0xd5)])?c(c({},_0x4e7bb2),{'children':_0x4e7bb2[_0x4e7fdf(0x163)]['map'](function(_0x735a6c){var _0x50c328=_0x4e7fdf;return typeof _0x735a6c[_0x50c328(0x17b)]['id']==_0x50c328(0x134)&&_0x4c79af&&_0x4c79af[_0x50c328(0xd7)](_0x735a6c[_0x50c328(0x17b)]['id'])?c(c({},_0x735a6c),{'attrs':c(c({},_0x735a6c[_0x50c328(0x17b)]),{'id':_0x735a6c[_0x50c328(0x17b)]['id']+_0xe85b47[_0x50c328(0x165)]})}):_0x735a6c;})}):_0x4e7bb2;}function Le(){var _0x2d4243=_0x1f1dc3;return Math[_0x2d4243(0x148)]()[_0x2d4243(0x14e)](0x24)[_0x2d4243(0xe2)](0x2,0x8);}W[_0x1f1dc3(0x11f)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1f1dc3(0x15e),'viewBox':_0x1f1dc3(0x17e),'width':_0x1f1dc3(0x150),'height':_0x1f1dc3(0x150)},'children':[{'tag':_0x1f1dc3(0x133),'attrs':{'fill':_0x1f1dc3(0xf1),'d':_0x1f1dc3(0x13a)}},{'tag':'path','attrs':{'fill':_0x1f1dc3(0xf1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x1f1dc3(0x140)}}]},B=_0x51318f(function(_0x412ada,_0x353c4e){var _0x2b3ab9=_0x1f1dc3;return _0x4a1dd9(W,Object[_0x2b3ab9(0x12c)]({},_0x412ada,{'id':_0x2b3ab9(0x141),'ref':_0x353c4e,'icon':ye}));});B[_0x1f1dc3(0x11f)]=_0x1f1dc3(0x15a);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x101a12,_0x3acdb4,_0x3551c2,_0x27ef9e)=>{for(var _0x4103c7=_0x27ef9e>0x1?void 0x0:_0x27ef9e?Re(_0x3acdb4,_0x3551c2):_0x3acdb4,_0x9c24fc=_0x101a12['length']-0x1,_0x16d43b;_0x9c24fc>=0x0;_0x9c24fc--)(_0x16d43b=_0x101a12[_0x9c24fc])&&(_0x4103c7=_0x16d43b(_0x4103c7)||_0x4103c7);return _0x4103c7;},f=(_0x5d4c02,_0x19b275)=>(_0x1ff209,_0x499771)=>_0x19b275(_0x1ff209,_0x499771,_0x5d4c02);let I=class extends _0x492441{constructor(_0x51bd7c,_0x175b7f,_0x236ed1){var _0x3c5af1=_0x1f1dc3;super(),d(this,'_entities',new Map()),(this[_0x3c5af1(0x116)]=_0x51bd7c,this[_0x3c5af1(0xe6)]=_0x175b7f,this[_0x3c5af1(0x13c)]=_0x236ed1,this[_0x3c5af1(0xd4)]());}async[_0x1f1dc3(0x154)](_0x22c0b1){var _0x2c671e=_0x1f1dc3;return this[_0x2c671e(0x153)][_0x2c671e(0x177)](_0x22c0b1)||await this['_startLiveShareCoordinator'](_0x22c0b1),this['_entities'][_0x2c671e(0x152)](_0x22c0b1);}[_0x1f1dc3(0xd4)](){var _0x12613a=_0x1f1dc3;this[_0x12613a(0x116)][_0x12613a(0x11d)](_0xf6e587[_0x12613a(0x102)])[_0x12613a(0x139)](_0xaa963a(this[_0x12613a(0xf9)]))[_0x12613a(0x12b)](async _0xf6b15f=>{var _0x12f29a=_0x12613a;const _0x6df4c0=_0xf6b15f['getUnitId']();this[_0x12f29a(0x153)][_0x12f29a(0x177)](_0x6df4c0)||this[_0x12f29a(0x11b)](_0x6df4c0);}),this[_0x12613a(0x116)][_0x12613a(0x117)](_0xf6e587['UNIVER_SHEET'])[_0x12613a(0x139)](_0xaa963a(this['dispose$']))['subscribe'](_0x5f065e=>{var _0x31b789=_0x12613a;const _0xe51b7b=_0x5f065e[_0x31b789(0x109)](),_0x1e1f1b=this['_entities'][_0x31b789(0x152)](_0xe51b7b);_0x1e1f1b==null||_0x1e1f1b[_0x31b789(0xfc)]();});}async['_startLiveShareCoordinator'](_0x2a8f64){var _0x4ac138=_0x1f1dc3;const _0x1a4c8a=await this[_0x4ac138(0x13c)][_0x4ac138(0x14b)](_0x2a8f64),_0xcf8318=this[_0x4ac138(0xe6)][_0x4ac138(0x124)](C,_0x2a8f64,_0x1a4c8a);return _0xcf8318[_0x4ac138(0x10e)](),this[_0x4ac138(0x153)][_0x4ac138(0x10b)](_0x2a8f64,_0xcf8318),_0xcf8318;}};I=Z([f(0x0,_0x473ab5),f(0x1,_0x52aa10(_0x425ba0)),f(0x2,_0x52aa10(_0x1c3102))],I);var h=(_0x386916=>(_0x386916[_0x1f1dc3(0xe1)]='offline',_0x386916[_0x1f1dc3(0x120)]=_0x1f1dc3(0x16e),_0x386916['FOLLOWING']='following',_0x386916['NOT_FOLLOWING']=_0x1f1dc3(0x15d),_0x386916['PRESENTING']='presenting',_0x386916))(h||{});const Pe=_0x1f1dc3(0x173),Ae=0xc8;let C=class extends _0x492441{constructor(_0x4e8815,_0x3fbc46,_0x5a7656,_0x368e4f,_0x399b4e){var _0x5d1d26=_0x1f1dc3;super(),d(this,_0x5d1d26(0x100),new _0x411c5a(_0x5d1d26(0x16e))),d(this,_0x5d1d26(0xef),this['_status$'][_0x5d1d26(0x17c)]()),d(this,_0x5d1d26(0xd4),!0x1),d(this,_0x5d1d26(0x16b),null),d(this,_0x5d1d26(0x144),null),(this[_0x5d1d26(0x11a)]=_0x4e8815,this[_0x5d1d26(0x171)]=_0x3fbc46,this['_configService']=_0x5a7656,this['_liveShareService']=_0x368e4f,this[_0x5d1d26(0x12f)]=_0x399b4e);}get[_0x1f1dc3(0x135)](){var _0x19bf7=_0x1f1dc3;return this[_0x19bf7(0x100)][_0x19bf7(0x175)]();}[_0x1f1dc3(0xfc)](){var _0xc25978=_0x1f1dc3,_0xa20299;(_0xa20299=this[_0xc25978(0x16b)])==null||_0xa20299[_0xc25978(0xfc)](),this[_0xc25978(0x100)]['next'](_0xc25978(0x16e)),this[_0xc25978(0x100)][_0xc25978(0x115)]();}['init'](){var _0x2f3a66=_0x1f1dc3;this[_0x2f3a66(0xd4)]||(this[_0x2f3a66(0xd4)]=!0x0,this[_0x2f3a66(0x171)]['sessionStatus$'][_0x2f3a66(0x139)](_0xaa963a(this[_0x2f3a66(0xf9)]))[_0x2f3a66(0x12b)](_0x595a8b=>{var _0x447d36=_0x2f3a66;switch(_0x595a8b){case _0x2b6119[_0x447d36(0xe1)]:this['_handleOffline']();break;case _0x2b6119['ONLINE']:this[_0x447d36(0xec)]();break;}}),this[_0x2f3a66(0x171)][_0x2f3a66(0xdc)][_0x2f3a66(0x139)](_0xaa963a(this['dispose$']))[_0x2f3a66(0x12b)](_0xdd1f3e=>{var _0x8fa899=_0x2f3a66;const {eventID:_0x527505}=_0xdd1f3e;switch(_0x527505){case _0x20e2fb['LIVESHARE_NEW_HOST']:this[_0x8fa899(0xf4)](_0xdd1f3e);break;case _0x20e2fb['LIVESHARE_OPERATION']:this['_handleOperation'](_0xdd1f3e);break;case _0x20e2fb['LIVESHARE_TERMINATE']:this[_0x8fa899(0x113)]();break;case _0x20e2fb[_0x8fa899(0x174)]:this[_0x8fa899(0xf3)](_0xdd1f3e);break;}}));}[_0x1f1dc3(0x111)](){var _0x173f4d=_0x1f1dc3;this[_0x173f4d(0x171)][_0x173f4d(0xe8)]({'eventID':_0x20e2fb['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x173f4d(0x11a)]);}['stopPresenting'](){var _0x1fa99f=_0x1f1dc3;this['_status']===_0x1fa99f(0x179)&&(this[_0x1fa99f(0x100)][_0x1fa99f(0x112)](_0x1fa99f(0x16e)),this['_collabSession']['send']({'eventID':_0x20e2fb[_0x1fa99f(0xfa)],'data':{'unitID':this[_0x1fa99f(0x11a)]}},this[_0x1fa99f(0x11a)]));}['startFollowing'](){var _0x9569b8=_0x1f1dc3;this[_0x9569b8(0x135)]===_0x9569b8(0x15d)&&(this['_status$'][_0x9569b8(0x112)](_0x9569b8(0xd9)),this['_startFollowing']());}[_0x1f1dc3(0xea)](){var _0x4f611f=_0x1f1dc3;this['_status']===_0x4f611f(0xd9)&&this[_0x4f611f(0xe3)]();}[_0x1f1dc3(0xf4)](_0x4ea15b){var _0x26b934=_0x1f1dc3;const {presenter:_0x126fa}=_0x4ea15b[_0x26b934(0x151)],_0x1133a2=this[_0x26b934(0x171)]['getMemberID']();this[_0x26b934(0x144)]=_0x126fa,_0x126fa===_0x1133a2?(this[_0x26b934(0xe3)](),this[_0x26b934(0x107)]()):this[_0x26b934(0x135)]!==_0x26b934(0x15d)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){var _0x5c5220=_0x1f1dc3;const _0x247f5b={'eventID':_0x20e2fb[_0x5c5220(0xfb)]};this[_0x5c5220(0x171)]['send'](_0x247f5b,this[_0x5c5220(0x11a)]);}[_0x1f1dc3(0x113)](){var _0x31feea=_0x1f1dc3;this[_0x31feea(0x144)]=null,this[_0x31feea(0x135)]!==_0x31feea(0x179)&&this[_0x31feea(0xe5)]();}['_handleNewChangeSets'](_0x2aa47b){var _0x1ab12f=_0x1f1dc3;if(this['_status']===_0x1ab12f(0xd9)&&this[_0x1ab12f(0x144)]===_0x2aa47b[_0x1ab12f(0x151)][_0x1ab12f(0x17a)]){const _0x55b2e9=_0x21bba2(_0x2aa47b['data'])[_0x1ab12f(0x108)]['reverse']()[_0x1ab12f(0x147)](_0x3dc736=>_0x3dc736['id']===_0x581502['id']);if(_0x55b2e9){const _0x1c7e2d=_0x55b2e9[_0x1ab12f(0x164)][_0x1ab12f(0xe4)],_0x55cedd=_0x55b2e9['params'][_0x1ab12f(0xd8)]['id'];setTimeout(()=>{var _0x282ded=_0x1ab12f;this[_0x282ded(0x12f)][_0x282ded(0xfe)](_0x2a60c8['id'],{'unitId':_0x1c7e2d,'subUnitId':_0x55cedd},{'fromCollab':!0x0});});}}}[_0x1f1dc3(0x107)](){var _0xd6ee1=_0x1f1dc3;this['_status$'][_0xd6ee1(0x112)](_0xd6ee1(0x179));const _0x14fe22=new Map(),_0x2dcf5f=this[_0xd6ee1(0x16b)]=new _0x59d69e();_0x2dcf5f['add'](_0x3afb6c(()=>{var _0x1c4807=_0xd6ee1;_0x14fe22[_0x1c4807(0x127)](_0x582268=>_0x582268[_0x1c4807(0x115)]()),_0x14fe22[_0x1c4807(0x166)]();})),_0x2dcf5f['add'](this[_0xd6ee1(0x12f)][_0xd6ee1(0xed)](_0x5a963c=>{var _0x293844=_0xd6ee1,_0x1f1fca;if(_0x5a963c[_0x293844(0xd6)]!==_0x497609[_0x293844(0x13b)]||!this[_0x293844(0x178)][_0x293844(0x159)](_0x5a963c['id']))return;const {id:_0x1975d4}=_0x5a963c;let _0x767c69;_0x14fe22[_0x293844(0x177)](_0x1975d4)?_0x767c69=_0x14fe22[_0x293844(0x152)](_0x1975d4):(_0x767c69=new _0x3a5a02(),_0x14fe22[_0x293844(0x10b)](_0x1975d4,_0x767c69),_0x767c69[_0x293844(0x139)](_0x220b10((_0x1f1fca=this[_0x293844(0x121)]['getConfig'](Pe))!=null?_0x1f1fca:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x293844(0x12b)](_0x26b8f0=>{var _0x10302c=_0x293844;this[_0x10302c(0x171)][_0x10302c(0xe8)]({'eventID':_0x20e2fb[_0x10302c(0x131)],'data':{'unitID':this[_0x10302c(0x11a)],'operations':{[_0x26b8f0['id']]:{'id':_0x26b8f0['id'],'params':JSON[_0x10302c(0x16c)](_0x26b8f0[_0x10302c(0x164)])}}}},this['_unitID']);})),_0x767c69[_0x293844(0x112)](_0x5a963c);})),this['_liveShareService'][_0xd6ee1(0x12e)](this['_unitID'])['forEach'](_0x3ed304=>this[_0xd6ee1(0x171)][_0xd6ee1(0xe8)]({'eventID':_0x20e2fb['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xd6ee1(0x11a)],'operations':{[_0x3ed304['id']]:{'id':_0x3ed304['id'],'params':JSON[_0xd6ee1(0x16c)](_0x3ed304[_0xd6ee1(0x164)])}}}},this[_0xd6ee1(0x11a)]));}['_stopPresenting'](){var _0x5ba35e=_0x1f1dc3,_0x3f303a;this[_0x5ba35e(0x100)][_0x5ba35e(0x112)](_0x5ba35e(0x16e)),(_0x3f303a=this['_commandDisposable'])==null||_0x3f303a[_0x5ba35e(0xfc)](),this['_commandDisposable']=null;}[_0x1f1dc3(0x10d)](){var _0x5ea785=_0x1f1dc3,_0x588bb9;(_0x588bb9=this[_0x5ea785(0x16b)])==null||_0x588bb9[_0x5ea785(0xfc)](),this['_status$'][_0x5ea785(0x112)]('following');}[_0x1f1dc3(0xe5)](){var _0x3a11ab=_0x1f1dc3,_0x33075b;this[_0x3a11ab(0x100)][_0x3a11ab(0x112)](_0x3a11ab(0x16e)),(_0x33075b=this[_0x3a11ab(0x16b)])==null||_0x33075b['dispose'](),this[_0x3a11ab(0x16b)]=null;}[_0x1f1dc3(0xe3)](){var _0x2023df=_0x1f1dc3,_0x123cc2;this[_0x2023df(0x100)][_0x2023df(0x112)](_0x2023df(0x15d)),(_0x123cc2=this['_commandDisposable'])==null||_0x123cc2[_0x2023df(0xfc)]();}[_0x1f1dc3(0xd2)](_0x1e8a2d){var _0x5f3ccc=_0x1f1dc3;if([_0x5f3ccc(0x179),_0x5f3ccc(0x15d),_0x5f3ccc(0x158)][_0x5f3ccc(0xd7)](this[_0x5f3ccc(0x135)])||!_0x1e8a2d[_0x5f3ccc(0x151)][_0x5f3ccc(0x101)]||_0x1e8a2d[_0x5f3ccc(0x151)][_0x5f3ccc(0x101)]===this[_0x5f3ccc(0x171)][_0x5f3ccc(0x114)]())return;this[_0x5f3ccc(0x135)]==='idle'&&this['_startFollowing']();const _0x4eb370=_0x1e8a2d['data'][_0x5f3ccc(0x143)];Object['values'](_0x4eb370)[_0x5f3ccc(0x127)](_0x47c44b=>{var _0x2bd17f=_0x5f3ccc;this[_0x2bd17f(0x12f)][_0x2bd17f(0xfe)](_0x47c44b['id'],_0x47c44b[_0x2bd17f(0x164)]?JSON[_0x2bd17f(0xdd)](_0x47c44b[_0x2bd17f(0x164)]):null,{'fromCollab':!0x0});});}[_0x1f1dc3(0x10a)](){var _0x5a424d=_0x1f1dc3,_0x2a884f;this[_0x5a424d(0x100)][_0x5a424d(0x112)](_0x5a424d(0x158)),(_0x2a884f=this[_0x5a424d(0x16b)])==null||_0x2a884f[_0x5a424d(0xfc)]();}[_0x1f1dc3(0xec)](){var _0x58a67c=_0x1f1dc3;this[_0x58a67c(0x100)][_0x58a67c(0x112)](_0x58a67c(0x16e)),this['_fetchOperations']();}};C=Z([f(0x2,_0x464add),f(0x3,_0x52aa10(L)),f(0x4,_0xe19690)],C);function Te(){var _0x4c3ad7=_0x1f1dc3;const _0x57ad8b=_0x110ab8(I),_0x2b36de=_0x110ab8(_0x473ab5),_0x401ea4=_0x372a11(()=>_0x2b36de[_0x4c3ad7(0x128)](_0xf6e587[_0x4c3ad7(0x102)]),void 0x0,!0x1,[]),[_0x501143,_0x4543cf]=_0x9089c6(null),[_0x22b5e5,_0x6594b9]=_0x9089c6(h[_0x4c3ad7(0x120)]),_0x86c2a9=_0x330082(null);return _0x5afb2a(()=>(_0x401ea4&&_0x57ad8b[_0x4c3ad7(0x154)](_0x401ea4[_0x4c3ad7(0x109)]())[_0x4c3ad7(0x104)](_0x3c10f9=>{var _0x4399a5=_0x4c3ad7;_0x4543cf(_0x3c10f9),_0x86c2a9['current']=_0x3c10f9[_0x4399a5(0xef)]['subscribe'](_0x21025c=>{_0x6594b9(_0x21025c);});}),()=>{var _0x3907bf=_0x4c3ad7,_0x183cf3;(_0x183cf3=_0x86c2a9['current'])==null||_0x183cf3[_0x3907bf(0x129)](),_0x86c2a9[_0x3907bf(0xdf)]=null;}),[_0x401ea4,_0x57ad8b]),_0x501143?_0x4f8640(_0x266bbf,{'align':_0x4c3ad7(0x13e),'disabled':_0x22b5e5===h['OFFLINE'],'className':_0x4c3ad7(0x138),'overlay':_0x4f8640($e,{'status':_0x22b5e5,'coordinator':_0x501143}),'children':_0x4f8640('button',{'className':_0x1652b5(_0x4c3ad7(0x15c),{'univer-cursor-not-allowed':_0x22b5e5===h[_0x4c3ad7(0xe1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22b5e5!==h[_0x4c3ad7(0xe1)]}),'type':'button','children':_0x4f8640(B,{'className':'univer-size-4'})})}):null;}function $e(_0x392a01){var _0x56f5f4=_0x1f1dc3;const {status:_0x5d963c,coordinator:_0x1eb0a0}=_0x392a01;switch(_0x5d963c){case h[_0x56f5f4(0x120)]:return _0x4f8640(Fe,{'coordinator':_0x1eb0a0});case h[_0x56f5f4(0x14d)]:return _0x4f8640(He,{'coordinator':_0x1eb0a0});case h['NOT_FOLLOWING']:return _0x4f8640(je,{'coordinator':_0x1eb0a0});case h[_0x56f5f4(0xe1)]:return _0x4f8640(Ve,{});case h[_0x56f5f4(0x146)]:return _0x4f8640(Ue,{'coordinator':_0x1eb0a0});default:return null;}}function Fe(_0x3701ff){var _0x17cca6=_0x1f1dc3;const {coordinator:_0x39cfee}=_0x3701ff;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640('div',{'className':_0x17cca6(0x157),'children':'Present\x20this\x20document'}),_0x4f8640(_0x309462,{'onClick':()=>_0x39cfee[_0x17cca6(0x111)](),'children':_0x17cca6(0x125)})]});}function He(_0xe80782){var _0x320701=_0x1f1dc3;const {coordinator:_0x565af6}=_0xe80782;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640(_0x320701(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x320701(0x103)}),_0x4f8640(_0x309462,{'onClick':()=>_0x565af6[_0x320701(0xea)](),'children':_0x320701(0x10f)})]});}function je(_0x250781){var _0x522279=_0x1f1dc3;const {coordinator:_0x428442}=_0x250781;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640(_0x522279(0x156),{'className':_0x522279(0x157),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f8640(_0x309462,{'variant':_0x522279(0x14c),'onClick':()=>_0x428442[_0x522279(0x118)](),'children':_0x522279(0x160)})]});}function Ue(_0x30ea37){var _0x5c63a9=_0x1f1dc3;const {coordinator:_0x93c470}=_0x30ea37;return _0x1ba4e7(_0x1a63d4,{'children':[_0x4f8640(_0x5c63a9(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5c63a9(0xda)}),_0x4f8640(_0x309462,{'variant':_0x5c63a9(0x119),'onClick':()=>_0x93c470[_0x5c63a9(0xf5)](),'children':_0x5c63a9(0x106)})]});}function Ve(){var _0x2ce9cf=_0x1f1dc3;return _0x4f8640(_0x1a63d4,{'children':_0x2ce9cf(0x161)});}var Me=Object[_0x1f1dc3(0xf2)],ke=(_0x12bbc5,_0x53be26,_0x1f4ebc,_0x1aa5c3)=>{var _0x3a91da=_0x1f1dc3;for(var _0x2db089=_0x1aa5c3>0x1?void 0x0:_0x1aa5c3?Me(_0x53be26,_0x1f4ebc):_0x53be26,_0x4d7415=_0x12bbc5[_0x3a91da(0xd5)]-0x1,_0x6d7696;_0x4d7415>=0x0;_0x4d7415--)(_0x6d7696=_0x12bbc5[_0x4d7415])&&(_0x2db089=_0x6d7696(_0x2db089)||_0x2db089);return _0x2db089;},$=(_0x353c22,_0x1cb4c6)=>(_0x4b3113,_0x56e4da)=>_0x1cb4c6(_0x4b3113,_0x56e4da,_0x353c22);let b=class extends _0x5a7acb{constructor(_0x3f78b2,_0x382e46){var _0x5c82d9=_0x1f1dc3;super(),this['_injector']=_0x3f78b2,this['_uiPartsService']=_0x382e46,this[_0x5c82d9(0x168)]();}[_0x1f1dc3(0x168)](){var _0x1310e1=_0x1f1dc3;this[_0x1310e1(0x15f)](this[_0x1310e1(0x145)][_0x1310e1(0x136)](_0x18829f[_0x1310e1(0x130)],()=>_0x856a59(Te,this[_0x1310e1(0xe6)])));}};b=ke([$(0x0,_0x52aa10(_0x425ba0)),$(0x1,_0x560665)],b);var Ge=Object['defineProperty'],We=Object[_0x1f1dc3(0xf2)],Ye=(_0x4acad7,_0x503ea3,_0x4a3c1f)=>_0x503ea3 in _0x4acad7?Ge(_0x4acad7,_0x503ea3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a3c1f}):_0x4acad7[_0x503ea3]=_0x4a3c1f,Be=(_0x72884a,_0x50087a,_0xc23f62,_0x25cadf)=>{var _0x20ed93=_0x1f1dc3;for(var _0x267ffd=_0x25cadf>0x1?void 0x0:_0x25cadf?We(_0x50087a,_0xc23f62):_0x50087a,_0xf583a2=_0x72884a[_0x20ed93(0xd5)]-0x1,_0x21cbdb;_0xf583a2>=0x0;_0xf583a2--)(_0x21cbdb=_0x72884a[_0xf583a2])&&(_0x267ffd=_0x21cbdb(_0x267ffd)||_0x267ffd);return _0x267ffd;},F=(_0xe264fb,_0x3ca3de)=>(_0x4974e0,_0x4044db)=>_0x3ca3de(_0x4974e0,_0x4044db,_0xe264fb),J=(_0x5450ec,_0xccda0b,_0x3b09d8)=>Ye(_0x5450ec,typeof _0xccda0b!=_0x1f1dc3(0x170)?_0xccda0b+'':_0xccda0b,_0x3b09d8);const Ze=_0x1f1dc3(0xee);let O=class extends _0x583ae2{constructor(_0x4fb05b=T,_0x36fa73,_0x5ae81e){var _0x41bc7b=_0x1f1dc3;super(),this[_0x41bc7b(0x167)]=_0x4fb05b,this[_0x41bc7b(0xe6)]=_0x36fa73,this[_0x41bc7b(0x121)]=_0x5ae81e;const {..._0x5a759b}=_0x244597({},T,this[_0x41bc7b(0x167)]);this['_configService'][_0x41bc7b(0xf6)](Oe,_0x5a759b);}[_0x1f1dc3(0xe7)](){var _0x20f0ee=_0x1f1dc3;_0xb10520(this[_0x20f0ee(0xe6)],_0x523791([[L],[I],[m],[b]],this[_0x20f0ee(0x167)][_0x20f0ee(0xeb)])),_0x5378ff(this[_0x20f0ee(0xe6)],[[m]]);}[_0x1f1dc3(0xd3)](){var _0x1485ff=_0x1f1dc3;_0x5378ff(this[_0x1485ff(0xe6)],[[b]]);}};J(O,_0x1f1dc3(0xd6),_0xf6e587[_0x1f1dc3(0x149)]),J(O,_0x1f1dc3(0x122),Ze),O=Be([_0x517a7e(_0x4684ca),F(0x1,_0x52aa10(_0x425ba0)),F(0x2,_0x464add)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x217919=_0x3bd5;(function(_0x57d09f,_0x1c071b){var _0x33a7a7=_0x3bd5,_0x398506=_0x57d09f();while(!![]){try{var _0x222d32=-parseInt(_0x33a7a7(0x24d))/0x1+-parseInt(_0x33a7a7(0x25a))/0x2*(-parseInt(_0x33a7a7(0x27d))/0x3)+parseInt(_0x33a7a7(0x215))/0x4+-parseInt(_0x33a7a7(0x223))/0x5+-parseInt(_0x33a7a7(0x283))/0x6+parseInt(_0x33a7a7(0x288))/0x7+-parseInt(_0x33a7a7(0x258))/0x8*(parseInt(_0x33a7a7(0x20c))/0x9);if(_0x222d32===_0x1c071b)break;else _0x398506['push'](_0x398506['shift']());}catch(_0x28f7df){_0x398506['push'](_0x398506['shift']());}}}(_0x5edd,0x3a0bd));var q=Object[_0x217919(0x286)],z=(_0x4b1239,_0x362a66,_0x5c1cf0)=>_0x362a66 in _0x4b1239?q(_0x4b1239,_0x362a66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c1cf0}):_0x4b1239[_0x362a66]=_0x5c1cf0,d=(_0x54ba66,_0x6e2f9,_0x521a03)=>z(_0x54ba66,typeof _0x6e2f9!=_0x217919(0x280)?_0x6e2f9+'':_0x6e2f9,_0x521a03);import{CollaborationSessionService as _0x557df8,SessionStatus as _0x4cbd82,UniverCollaborationClientPlugin as _0x309c77}from'@univerjs-pro/collaboration-client';import{Disposable as _0x835fd3,toDisposable as _0x5acfff,Inject as _0xb1ab10,IUniverInstanceService as _0x4b3ee5,Injector as _0x45f335,IConfigService as _0x57f097,ICommandService as _0x2298d1,RxDisposable as _0x2b4675,UniverInstanceType as _0x5c3c06,DisposableCollection as _0x1f9193,CommandType as _0x2f48d5,DependentOn as _0x24fd2c,Plugin as _0x1884ea,merge as _0x3d2d80,registerDependencies as _0x320e2a,mergeOverrideWithDependencies as _0x1d7f61,touchDependencies as _0x224521}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5c32df,InsertSheetMutation as _0x2ace56}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x40dac7,SetScrollOperation as _0x49017c}from'@univerjs/sheets-ui';import{useDependency as _0x32779d,useObservable as _0x3d323e,IUIPartsService as _0x259166,BuiltInUIPart as _0x33db09,connectInjector as _0x128908}from'@univerjs/ui';import{jsx as _0x1cdc23,jsxs as _0xe09a6d,Fragment as _0x32f07f}from'react/jsx-runtime';import{Dropdown as _0xfc6532,clsx as _0x43e1dd,Button as _0x32f9cc}from'@univerjs/design';import{forwardRef as _0x8d7ec,useRef as _0x19708d,createElement as _0xf8dd8b,useState as _0x319951,useEffect as _0x1ce257}from'react';import{CollaborationEvent as _0x4933e0,parseProtocolChangeset as _0x2bcc5a}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x291453,Subject as _0x51ec59}from'rxjs';import{takeUntil as _0xc38ce1,throttleTime as _0x371d2d}from'rxjs/operators';const Oe=_0x217919(0x248),T={};class L extends _0x835fd3{constructor(){var _0x2c6f14=_0x217919;super(...arguments),d(this,_0x2c6f14(0x26f),new Set()),d(this,_0x2c6f14(0x1e3),new Set());}[_0x217919(0x22a)](_0x3aedcc){var _0x4b9c0c=_0x217919;return this[_0x4b9c0c(0x26f)][_0x4b9c0c(0x285)](_0x3aedcc),_0x5acfff(()=>this[_0x4b9c0c(0x26f)][_0x4b9c0c(0x244)](_0x3aedcc));}[_0x217919(0x253)](_0x116f89){var _0x4e0b58=_0x217919;return this[_0x4e0b58(0x1e3)][_0x4e0b58(0x285)](_0x116f89),_0x5acfff(()=>this[_0x4e0b58(0x1e3)]['delete'](_0x116f89));}[_0x217919(0x293)](_0x2c7729){var _0x52ab17=_0x217919;return this[_0x52ab17(0x26f)][_0x52ab17(0x263)](_0x2c7729);}['getInitialStates'](_0x290048){var _0x4d6afa=_0x217919;return Array[_0x4d6afa(0x241)](this[_0x4d6afa(0x1e3)])[_0x4d6afa(0x20d)](_0xf5098d=>_0xf5098d(_0x290048));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1ff172,_0x37eca3,_0x239ff7,_0x104970)=>{var _0xd2fd5b=_0x217919;for(var _0x546410=_0x104970>0x1?void 0x0:_0x104970?Ee(_0x37eca3,_0x239ff7):_0x37eca3,_0x1a7e28=_0x1ff172[_0xd2fd5b(0x202)]-0x1,_0x1c4323;_0x1a7e28>=0x0;_0x1a7e28--)(_0x1c4323=_0x1ff172[_0x1a7e28])&&(_0x546410=_0x1c4323(_0x546410)||_0x546410);return _0x546410;},Ne=(_0x2bf4cb,_0x17b9b7)=>(_0x2b6851,_0x137f55)=>_0x17b9b7(_0x2b6851,_0x137f55,_0x2bf4cb);let m=class extends _0x835fd3{constructor(_0x550ca1){var _0x593cf9=_0x217919;super(),this[_0x593cf9(0x222)]=_0x550ca1,this[_0x593cf9(0x220)]();}[_0x217919(0x220)](){var _0x3744b5=_0x217919;[_0x40dac7['id'],_0x49017c['id'],_0x5c32df['id']][_0x3744b5(0x21c)](_0x2b5bf5=>{var _0x368cde=_0x3744b5;this[_0x368cde(0x24b)](this[_0x368cde(0x222)]['registerSharedOperation'](_0x2b5bf5));});}};m=we([Ne(0x0,_0xb1ab10(L))],m);var c=function(){var _0x3ff2b7=_0x217919;return c=Object[_0x3ff2b7(0x237)]||function(_0x4e66c7){var _0x41cb09=_0x3ff2b7;for(var _0x5f291f,_0x47d759=0x1,_0x527042=arguments[_0x41cb09(0x202)];_0x47d759<_0x527042;_0x47d759++){_0x5f291f=arguments[_0x47d759];for(var _0x15156e in _0x5f291f)Object[_0x41cb09(0x22c)][_0x41cb09(0x291)]['call'](_0x5f291f,_0x15156e)&&(_0x4e66c7[_0x15156e]=_0x5f291f[_0x15156e]);}return _0x4e66c7;},c['apply'](this,arguments);},Ce=function(_0x239da3,_0x4f0fd1){var _0x413ee9=_0x217919,_0x28b900={};for(var _0x467103 in _0x239da3)Object[_0x413ee9(0x22c)][_0x413ee9(0x291)][_0x413ee9(0x274)](_0x239da3,_0x467103)&&_0x4f0fd1[_0x413ee9(0x262)](_0x467103)<0x0&&(_0x28b900[_0x467103]=_0x239da3[_0x467103]);if(_0x239da3!=null&&typeof Object[_0x413ee9(0x1ef)]==_0x413ee9(0x28f)){for(var _0x362cb7=0x0,_0x467103=Object[_0x413ee9(0x1ef)](_0x239da3);_0x362cb7<_0x467103[_0x413ee9(0x202)];_0x362cb7++)_0x4f0fd1[_0x413ee9(0x262)](_0x467103[_0x362cb7])<0x0&&Object[_0x413ee9(0x22c)][_0x413ee9(0x209)][_0x413ee9(0x274)](_0x239da3,_0x467103[_0x362cb7])&&(_0x28b900[_0x467103[_0x362cb7]]=_0x239da3[_0x467103[_0x362cb7]]);}return _0x28b900;},W=_0x8d7ec(function(_0x388287,_0x43abca){var _0x4a0cad=_0x217919,_0x2bb484=_0x388287[_0x4a0cad(0x229)],_0x1051db=_0x388287['id'],_0x3d2859=_0x388287[_0x4a0cad(0x200)],_0x448ec9=_0x388287[_0x4a0cad(0x21d)],_0x2a2611=Ce(_0x388287,['icon','id','className',_0x4a0cad(0x21d)]),_0x410f76='univerjs-icon\x20univerjs-icon-'['concat'](_0x1051db,'\x20')['concat'](_0x3d2859||'')[_0x4a0cad(0x201)](),_0x53fd83=_0x19708d('_'[_0x4a0cad(0x27e)](Le()));return Y(_0x2bb484,''['concat'](_0x1051db),{'defIds':_0x2bb484['defIds'],'idSuffix':_0x53fd83[_0x4a0cad(0x251)]},c({'ref':_0x43abca,'className':_0x410f76},_0x2a2611),_0x448ec9);});function Y(_0x2f567d,_0x3e8141,_0x49c6ef,_0x40c873,_0x283174){var _0x185a4a=_0x217919;return _0xf8dd8b(_0x2f567d[_0x185a4a(0x1f4)],c(c({'key':_0x3e8141},De(_0x2f567d,_0x49c6ef,_0x283174)),_0x40c873),(xe(_0x2f567d,_0x49c6ef)[_0x185a4a(0x231)]||[])[_0x185a4a(0x20d)](function(_0x220a06,_0x50d925){var _0x39cdce=_0x185a4a;return Y(_0x220a06,''[_0x39cdce(0x27e)](_0x3e8141,'-')['concat'](_0x2f567d[_0x39cdce(0x1f4)],'-')['concat'](_0x50d925),_0x49c6ef,void 0x0,_0x283174);}));}function De(_0xcd3fac,_0x27ad9a,_0x3f160e){var _0x59c599=_0x217919,_0x2c3bce=c({},_0xcd3fac[_0x59c599(0x208)]);_0x3f160e!=null&&_0x3f160e['colorChannel1']&&_0x2c3bce[_0x59c599(0x26c)]===_0x59c599(0x245)&&(_0x2c3bce[_0x59c599(0x26c)]=_0x3f160e['colorChannel1']),_0xcd3fac['tag']===_0x59c599(0x294)&&_0x2c3bce['id']&&(_0x2c3bce['id']=_0x2c3bce['id']+_0x27ad9a['idSuffix']),Object['entries'](_0x2c3bce)[_0x59c599(0x21c)](function(_0x2e1c6e){var _0x401390=_0x59c599,_0x84ce3d=_0x2e1c6e[0x0],_0x47b0f5=_0x2e1c6e[0x1];_0x84ce3d===_0x401390(0x294)&&typeof _0x47b0f5==_0x401390(0x247)&&(_0x2c3bce[_0x84ce3d]=_0x47b0f5['replace'](/url\(#(.*)\)/,_0x401390(0x268)[_0x401390(0x27e)](_0x27ad9a[_0x401390(0x252)],')')));});var _0x56da10=_0x27ad9a[_0x59c599(0x26a)];return!_0x56da10||_0x56da10['length']===0x0||(_0xcd3fac[_0x59c599(0x1f4)]==='use'&&_0x2c3bce[_0x59c599(0x1e8)]&&(_0x2c3bce['xlink:href']=_0x2c3bce[_0x59c599(0x1e8)]+_0x27ad9a['idSuffix']),Object[_0x59c599(0x24a)](_0x2c3bce)[_0x59c599(0x21c)](function(_0xb72aad){var _0x4ff79a=_0x59c599,_0x4437f2=_0xb72aad[0x0],_0x5b35bd=_0xb72aad[0x1];typeof _0x5b35bd==_0x4ff79a(0x247)&&(_0x2c3bce[_0x4437f2]=_0x5b35bd[_0x4ff79a(0x21e)](/url\(#(.*)\)/,_0x4ff79a(0x268)[_0x4ff79a(0x27e)](_0x27ad9a[_0x4ff79a(0x252)],')')));})),_0x2c3bce;}function xe(_0x12e91b,_0x364686){var _0x560f98=_0x217919,_0x1cca14,_0x178afa=_0x364686['defIds'];return!_0x178afa||_0x178afa[_0x560f98(0x202)]===0x0?_0x12e91b:_0x12e91b[_0x560f98(0x1f4)]===_0x560f98(0x24f)&&(!((_0x1cca14=_0x12e91b[_0x560f98(0x231)])===null||_0x1cca14===void 0x0)&&_0x1cca14[_0x560f98(0x202)])?c(c({},_0x12e91b),{'children':_0x12e91b['children']['map'](function(_0x2c6721){var _0x406c61=_0x560f98;return typeof _0x2c6721['attrs']['id']==_0x406c61(0x247)&&_0x178afa&&_0x178afa[_0x406c61(0x23c)](_0x2c6721[_0x406c61(0x208)]['id'])?c(c({},_0x2c6721),{'attrs':c(c({},_0x2c6721['attrs']),{'id':_0x2c6721['attrs']['id']+_0x364686[_0x406c61(0x252)]})}):_0x2c6721;})}):_0x12e91b;}function Le(){var _0x1502fa=_0x217919;return Math[_0x1502fa(0x1f9)]()[_0x1502fa(0x234)](0x24)[_0x1502fa(0x255)](0x2,0x8);}W[_0x217919(0x20b)]='UniverIcon';var ye={'tag':_0x217919(0x218),'attrs':{'xmlns':_0x217919(0x22e),'fill':_0x217919(0x1fb),'viewBox':_0x217919(0x20a),'width':_0x217919(0x27a),'height':_0x217919(0x27a)},'children':[{'tag':_0x217919(0x206),'attrs':{'fill':_0x217919(0x242),'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':_0x217919(0x242),'d':_0x217919(0x23a),'fillRule':_0x217919(0x1f2),'clipRule':_0x217919(0x1f2)}}]},B=_0x8d7ec(function(_0x350a96,_0x393c37){return _0xf8dd8b(W,Object['assign']({},_0x350a96,{'id':'live-share-icon','ref':_0x393c37,'icon':ye}));});B[_0x217919(0x20b)]=_0x217919(0x25e);var Re=Object[_0x217919(0x1f1)],Z=(_0x310d28,_0x1dc726,_0x2059b6,_0x1b1150)=>{var _0x1eef3a=_0x217919;for(var _0x2d6494=_0x1b1150>0x1?void 0x0:_0x1b1150?Re(_0x1dc726,_0x2059b6):_0x1dc726,_0x58b98d=_0x310d28[_0x1eef3a(0x202)]-0x1,_0x44995a;_0x58b98d>=0x0;_0x58b98d--)(_0x44995a=_0x310d28[_0x58b98d])&&(_0x2d6494=_0x44995a(_0x2d6494)||_0x2d6494);return _0x2d6494;},f=(_0x2745ba,_0x45f7f1)=>(_0x174625,_0xbb1b36)=>_0x45f7f1(_0x174625,_0xbb1b36,_0x2745ba);let I=class extends _0x2b4675{constructor(_0x55695b,_0x54d94a,_0x41c070){var _0x54fdf6=_0x217919;super(),d(this,_0x54fdf6(0x20e),new Map()),(this['_univerInstanceService']=_0x55695b,this[_0x54fdf6(0x232)]=_0x54d94a,this[_0x54fdf6(0x235)]=_0x41c070,this['_init']());}async['getLiveShareCoordinator'](_0x5b3266){var _0x35759e=_0x217919;return this[_0x35759e(0x20e)]['has'](_0x5b3266)||await this[_0x35759e(0x287)](_0x5b3266),this[_0x35759e(0x20e)]['get'](_0x5b3266);}[_0x217919(0x220)](){var _0x156bc2=_0x217919;this[_0x156bc2(0x20f)][_0x156bc2(0x275)](_0x5c3c06[_0x156bc2(0x23d)])[_0x156bc2(0x203)](_0xc38ce1(this[_0x156bc2(0x249)]))[_0x156bc2(0x22b)](async _0x248cad=>{var _0x269028=_0x156bc2;const _0x1d3c67=_0x248cad[_0x269028(0x21a)]();this[_0x269028(0x20e)][_0x269028(0x263)](_0x1d3c67)||this[_0x269028(0x287)](_0x1d3c67);}),this[_0x156bc2(0x20f)][_0x156bc2(0x1f7)](_0x5c3c06[_0x156bc2(0x23d)])[_0x156bc2(0x203)](_0xc38ce1(this['dispose$']))[_0x156bc2(0x22b)](_0x148c65=>{var _0x4d9482=_0x156bc2;const _0x213ca2=_0x148c65['getUnitId'](),_0x13a780=this[_0x4d9482(0x20e)]['get'](_0x213ca2);_0x13a780==null||_0x13a780[_0x4d9482(0x23e)]();});}async['_startLiveShareCoordinator'](_0x1491e7){var _0x1a0d2f=_0x217919;const _0x4e7d59=await this[_0x1a0d2f(0x235)][_0x1a0d2f(0x216)](_0x1491e7),_0x4e1fdd=this[_0x1a0d2f(0x232)]['createInstance'](C,_0x1491e7,_0x4e7d59);return _0x4e1fdd['init'](),this[_0x1a0d2f(0x20e)][_0x1a0d2f(0x25d)](_0x1491e7,_0x4e1fdd),_0x4e1fdd;}};I=Z([f(0x0,_0x4b3ee5),f(0x1,_0xb1ab10(_0x45f335)),f(0x2,_0xb1ab10(_0x557df8))],I);function _0x3bd5(_0x238438,_0x100ff8){var _0x5eddf8=_0x5edd();return _0x3bd5=function(_0x3bd53c,_0x398262){_0x3bd53c=_0x3bd53c-0x1e3;var _0x3dfc0c=_0x5eddf8[_0x3bd53c];return _0x3dfc0c;},_0x3bd5(_0x238438,_0x100ff8);}var h=(_0x13f09f=>(_0x13f09f['OFFLINE']=_0x217919(0x1f3),_0x13f09f[_0x217919(0x239)]=_0x217919(0x228),_0x13f09f[_0x217919(0x243)]=_0x217919(0x1fe),_0x13f09f[_0x217919(0x226)]=_0x217919(0x1f5),_0x13f09f[_0x217919(0x1fa)]='presenting',_0x13f09f))(h||{});const Pe=_0x217919(0x277),Ae=0xc8;let C=class extends _0x2b4675{constructor(_0xc0b381,_0x592574,_0x5dee6f,_0x3a1f03,_0x2dc6dd){var _0xe306cc=_0x217919;super(),d(this,_0xe306cc(0x281),new _0x291453(_0xe306cc(0x228))),d(this,_0xe306cc(0x1f6),this[_0xe306cc(0x281)][_0xe306cc(0x265)]()),d(this,_0xe306cc(0x220),!0x1),d(this,_0xe306cc(0x217),null),d(this,_0xe306cc(0x233),null),(this[_0xe306cc(0x1f0)]=_0xc0b381,this['_collabSession']=_0x592574,this[_0xe306cc(0x25c)]=_0x5dee6f,this[_0xe306cc(0x222)]=_0x3a1f03,this[_0xe306cc(0x227)]=_0x2dc6dd);}get['_status'](){var _0x18db61=_0x217919;return this[_0x18db61(0x281)][_0x18db61(0x24c)]();}['dispose'](){var _0x4b6453=_0x217919,_0x4e0f7b;(_0x4e0f7b=this[_0x4b6453(0x217)])==null||_0x4e0f7b[_0x4b6453(0x23e)](),this[_0x4b6453(0x281)][_0x4b6453(0x266)]('idle'),this[_0x4b6453(0x281)][_0x4b6453(0x23b)]();}[_0x217919(0x264)](){var _0x26804e=_0x217919;this['_init']||(this[_0x26804e(0x220)]=!0x0,this[_0x26804e(0x1e7)][_0x26804e(0x24e)][_0x26804e(0x203)](_0xc38ce1(this[_0x26804e(0x249)]))['subscribe'](_0x50c923=>{var _0x4c78b0=_0x26804e;switch(_0x50c923){case _0x4cbd82['OFFLINE']:this[_0x4c78b0(0x1eb)]();break;case _0x4cbd82[_0x4c78b0(0x28a)]:this[_0x4c78b0(0x1ee)]();break;}}),this[_0x26804e(0x1e7)][_0x26804e(0x271)][_0x26804e(0x203)](_0xc38ce1(this[_0x26804e(0x249)]))[_0x26804e(0x22b)](_0x3fcdee=>{var _0x874593=_0x26804e;const {eventID:_0x7dd938}=_0x3fcdee;switch(_0x7dd938){case _0x4933e0[_0x874593(0x273)]:this[_0x874593(0x205)](_0x3fcdee);break;case _0x4933e0['LIVESHARE_OPERATION']:this[_0x874593(0x292)](_0x3fcdee);break;case _0x4933e0[_0x874593(0x295)]:this[_0x874593(0x296)]();break;case _0x4933e0[_0x874593(0x204)]:this[_0x874593(0x250)](_0x3fcdee);break;}}));}['tryStartPresenting'](){var _0x1e7cd7=_0x217919;this[_0x1e7cd7(0x1e7)][_0x1e7cd7(0x1f8)]({'eventID':_0x4933e0[_0x1e7cd7(0x1e5)],'data':{'unitID':this[_0x1e7cd7(0x1f0)],'userID':this[_0x1e7cd7(0x1e7)][_0x1e7cd7(0x26d)]()}},this['_unitID']);}['stopPresenting'](){var _0x193b3a=_0x217919;this[_0x193b3a(0x207)]===_0x193b3a(0x25b)&&(this[_0x193b3a(0x281)]['next'](_0x193b3a(0x228)),this[_0x193b3a(0x1e7)][_0x193b3a(0x1f8)]({'eventID':_0x4933e0[_0x193b3a(0x295)],'data':{'unitID':this[_0x193b3a(0x1f0)]}},this[_0x193b3a(0x1f0)]));}['startFollowing'](){var _0x20f4d6=_0x217919;this['_status']==='not-following'&&(this['_status$'][_0x20f4d6(0x266)](_0x20f4d6(0x1fe)),this[_0x20f4d6(0x25f)]());}[_0x217919(0x27f)](){var _0x55121d=_0x217919;this[_0x55121d(0x207)]==='following'&&this[_0x55121d(0x1e4)]();}[_0x217919(0x205)](_0xc9cc01){var _0x2f87d4=_0x217919;const {presenter:_0x2cf471}=_0xc9cc01[_0x2f87d4(0x272)],_0x2c6acd=this[_0x2f87d4(0x1e7)][_0x2f87d4(0x26d)]();this[_0x2f87d4(0x233)]=_0x2cf471,_0x2cf471===_0x2c6acd?(this[_0x2f87d4(0x1e4)](),this['_startPresenting']()):this['_status']!==_0x2f87d4(0x1f5)&&(this[_0x2f87d4(0x213)](),this[_0x2f87d4(0x25f)]());}[_0x217919(0x28d)](){var _0x2edcb6=_0x217919;const _0x2f29ce={'eventID':_0x4933e0[_0x2edcb6(0x219)]};this[_0x2edcb6(0x1e7)][_0x2edcb6(0x1f8)](_0x2f29ce,this[_0x2edcb6(0x1f0)]);}[_0x217919(0x296)](){var _0x35d722=_0x217919;this[_0x35d722(0x233)]=null,this[_0x35d722(0x207)]!==_0x35d722(0x25b)&&this['_beIdle']();}[_0x217919(0x250)](_0x2aa40e){var _0x492897=_0x217919;if(this[_0x492897(0x207)]===_0x492897(0x1fe)&&this[_0x492897(0x233)]===_0x2aa40e[_0x492897(0x272)][_0x492897(0x236)]){const _0x16bd32=_0x2bcc5a(_0x2aa40e['data'])[_0x492897(0x1ff)][_0x492897(0x1fd)]()[_0x492897(0x1ea)](_0x178756=>_0x178756['id']===_0x2ace56['id']);if(_0x16bd32){const _0x2aef50=_0x16bd32['params'][_0x492897(0x260)],_0x2c2719=_0x16bd32[_0x492897(0x290)][_0x492897(0x257)]['id'];setTimeout(()=>{var _0x1b69a0=_0x492897;this[_0x1b69a0(0x227)][_0x1b69a0(0x1e9)](_0x5c32df['id'],{'unitId':_0x2aef50,'subUnitId':_0x2c2719},{'fromCollab':!0x0});});}}}[_0x217919(0x279)](){var _0x2f1e85=_0x217919;this[_0x2f1e85(0x281)][_0x2f1e85(0x266)](_0x2f1e85(0x25b));const _0x684e6=new Map(),_0x495943=this[_0x2f1e85(0x217)]=new _0x1f9193();_0x495943[_0x2f1e85(0x285)](_0x5acfff(()=>{var _0x542862=_0x2f1e85;_0x684e6[_0x542862(0x21c)](_0x1d749a=>_0x1d749a[_0x542862(0x23b)]()),_0x684e6['clear']();})),_0x495943[_0x2f1e85(0x285)](this[_0x2f1e85(0x227)]['onCommandExecuted'](_0x5ade1f=>{var _0x33455b=_0x2f1e85,_0x58d909;if(_0x5ade1f[_0x33455b(0x28e)]!==_0x2f48d5[_0x33455b(0x21b)]||!this[_0x33455b(0x222)][_0x33455b(0x293)](_0x5ade1f['id']))return;const {id:_0x3c4a78}=_0x5ade1f;let _0xc49918;_0x684e6[_0x33455b(0x263)](_0x3c4a78)?_0xc49918=_0x684e6['get'](_0x3c4a78):(_0xc49918=new _0x51ec59(),_0x684e6[_0x33455b(0x25d)](_0x3c4a78,_0xc49918),_0xc49918[_0x33455b(0x203)](_0x371d2d((_0x58d909=this[_0x33455b(0x25c)][_0x33455b(0x230)](Pe))!=null?_0x58d909:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x33455b(0x22b)](_0x455b2d=>{var _0x538126=_0x33455b;this[_0x538126(0x1e7)][_0x538126(0x1f8)]({'eventID':_0x4933e0[_0x538126(0x212)],'data':{'unitID':this[_0x538126(0x1f0)],'operations':{[_0x455b2d['id']]:{'id':_0x455b2d['id'],'params':JSON[_0x538126(0x21f)](_0x455b2d['params'])}}}},this['_unitID']);})),_0xc49918[_0x33455b(0x266)](_0x5ade1f);})),this['_liveShareService'][_0x2f1e85(0x259)](this['_unitID'])[_0x2f1e85(0x21c)](_0x101608=>this['_collabSession'][_0x2f1e85(0x1f8)]({'eventID':_0x4933e0[_0x2f1e85(0x212)],'data':{'unitID':this[_0x2f1e85(0x1f0)],'operations':{[_0x101608['id']]:{'id':_0x101608['id'],'params':JSON[_0x2f1e85(0x21f)](_0x101608[_0x2f1e85(0x290)])}}}},this['_unitID']));}[_0x217919(0x213)](){var _0x38573e=_0x217919,_0x126489;this[_0x38573e(0x281)]['next'](_0x38573e(0x228)),(_0x126489=this[_0x38573e(0x217)])==null||_0x126489[_0x38573e(0x23e)](),this[_0x38573e(0x217)]=null;}[_0x217919(0x25f)](){var _0x43fb41=_0x217919,_0x2dcc56;(_0x2dcc56=this[_0x43fb41(0x217)])==null||_0x2dcc56['dispose'](),this[_0x43fb41(0x281)][_0x43fb41(0x266)](_0x43fb41(0x1fe));}[_0x217919(0x224)](){var _0x44df9e=_0x217919,_0x29facc;this['_status$']['next']('idle'),(_0x29facc=this[_0x44df9e(0x217)])==null||_0x29facc[_0x44df9e(0x23e)](),this[_0x44df9e(0x217)]=null;}['_stopFollowing'](){var _0x23fcc1=_0x217919,_0x34fd1d;this[_0x23fcc1(0x281)][_0x23fcc1(0x266)](_0x23fcc1(0x1f5)),(_0x34fd1d=this[_0x23fcc1(0x217)])==null||_0x34fd1d[_0x23fcc1(0x23e)]();}[_0x217919(0x292)](_0x1a584a){var _0x15abd9=_0x217919;if(['presenting',_0x15abd9(0x1f5),'offline'][_0x15abd9(0x23c)](this['_status'])||!_0x1a584a['data'][_0x15abd9(0x1ed)]||_0x1a584a[_0x15abd9(0x272)][_0x15abd9(0x1ed)]===this[_0x15abd9(0x1e7)][_0x15abd9(0x26d)]())return;this[_0x15abd9(0x207)]===_0x15abd9(0x228)&&this[_0x15abd9(0x25f)]();const _0x1b3161=_0x1a584a['data']['operations'];Object['values'](_0x1b3161)['forEach'](_0x18cfd1=>{var _0x285712=_0x15abd9;this[_0x285712(0x227)][_0x285712(0x1e9)](_0x18cfd1['id'],_0x18cfd1['params']?JSON[_0x285712(0x211)](_0x18cfd1[_0x285712(0x290)]):null,{'fromCollab':!0x0});});}[_0x217919(0x1eb)](){var _0x1b0e23=_0x217919,_0x39121d;this[_0x1b0e23(0x281)][_0x1b0e23(0x266)](_0x1b0e23(0x1f3)),(_0x39121d=this[_0x1b0e23(0x217)])==null||_0x39121d[_0x1b0e23(0x23e)]();}[_0x217919(0x1ee)](){var _0x55e0d5=_0x217919;this['_status$'][_0x55e0d5(0x266)](_0x55e0d5(0x228)),this[_0x55e0d5(0x28d)]();}};function _0x5edd(){var _0x47f770=['tag','not-following','status$','getTypeOfUnitDisposed$','send','random','PRESENTING','none','setConfig','reverse','following','mutations','className','trim','length','pipe','NEW_CHANGESETS','_handleNewHost','path','_status','attrs','propertyIsEnumerable','0\x200\x2017\x2017','displayName','18gLdEiC','map','_entities','_univerInstanceService','Stop\x20following','parse','LIVESHARE_OPERATION','_stopPresenting','end','931440AwhBbr','requireSession','_commandDisposable','svg','LIVESHARE_FETCH_OPERATIONS','getUnitId','OPERATION','forEach','extend','replace','stringify','_init','onRendered','_liveShareService','1230775QHtdqG','_beIdle','getLiveShareCoordinator','NOT_FOLLOWING','_commandService','idle','icon','registerSharedOperation','subscribe','prototype','UNIVER_UNKNOWN','http://www.w3.org/2000/svg','Start','getConfig','children','_injector','_presenter','toString','_collabSessionService','memberID','assign','startFollowing','IDLE','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','complete','includes','UNIVER_SHEET','dispose','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20following\x20the\x20presenter','from','currentColor','FOLLOWING','delete','colorChannel1','You\x27re\x20presenting\x20the\x20document','string','live-share.config','dispose$','entries','disposeWithMe','getValue','175026LFBAGJ','sessionStatus$','defs','_handleNewChangeSets','current','idSuffix','registerInitialStateReporter','default','substring','stopPresenting','sheet','159808chkCBR','getInitialStates','8098xYUQco','presenting','_configService','set','LiveShareIcon','_startFollowing','unitId','_uiPartsService','indexOf','has','init','asObservable','next','tryStartPresenting','url(#$1','div','defIds','Present\x20this\x20document','fill','getMemberID','_config','_sharedOperations','onStarting','event$','data','LIVESHARE_NEW_HOST','call','getTypeOfUnitAdded$','OFFLINE','SAME_OPERATION_SHARE_INTERVAL','unsubscribe','_startPresenting','1em','Stop\x20presenting','registerComponent','33sUcFpt','concat','stopFollowing','symbol','_status$','_mountLiveShare','141966riiVHU','then','add','defineProperty','_startLiveShareCoordinator','3116064TgSvaK','You\x27are\x20offline.','ONLINE','Start\x20following','button','_fetchOperations','type','function','params','hasOwnProperty','_handleOperation','shouldShareOperation','mask','LIVESHARE_TERMINATE','_handleTerminate','_reporters','_stopFollowing','LIVESHARE_REQUEST_HOST','pluginName','_collabSession','xlink:href','executeCommand','find','_handleOffline','HEADER_MENU','presenter','_handleOnline','getOwnPropertySymbols','_unitID','getOwnPropertyDescriptor','evenodd','offline'];_0x5edd=function(){return _0x47f770;};return _0x5edd();}C=Z([f(0x2,_0x57f097),f(0x3,_0xb1ab10(L)),f(0x4,_0x2298d1)],C);function Te(){var _0x1e053a=_0x217919;const _0x21cada=_0x32779d(I),_0xf8a7b0=_0x32779d(_0x4b3ee5),_0x504f67=_0x3d323e(()=>_0xf8a7b0['getCurrentTypeOfUnit$'](_0x5c3c06[_0x1e053a(0x23d)]),void 0x0,!0x1,[]),[_0x1ca167,_0x1a5ac0]=_0x319951(null),[_0x45cb0b,_0x170648]=_0x319951(h[_0x1e053a(0x239)]),_0x45001c=_0x19708d(null);return _0x1ce257(()=>(_0x504f67&&_0x21cada[_0x1e053a(0x225)](_0x504f67[_0x1e053a(0x21a)]())[_0x1e053a(0x284)](_0x5326f6=>{var _0x1c9b64=_0x1e053a;_0x1a5ac0(_0x5326f6),_0x45001c['current']=_0x5326f6[_0x1c9b64(0x1f6)]['subscribe'](_0x5e876b=>{_0x170648(_0x5e876b);});}),()=>{var _0x522636=_0x1e053a,_0x208761;(_0x208761=_0x45001c[_0x522636(0x251)])==null||_0x208761[_0x522636(0x278)](),_0x45001c[_0x522636(0x251)]=null;}),[_0x504f67,_0x21cada]),_0x1ca167?_0x1cdc23(_0xfc6532,{'align':_0x1e053a(0x214),'disabled':_0x45cb0b===h[_0x1e053a(0x276)],'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':_0x1cdc23($e,{'status':_0x45cb0b,'coordinator':_0x1ca167}),'children':_0x1cdc23(_0x1e053a(0x28c),{'className':_0x43e1dd('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x45cb0b===h[_0x1e053a(0x276)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45cb0b!==h[_0x1e053a(0x276)]}),'type':_0x1e053a(0x28c),'children':_0x1cdc23(B,{'className':'univer-size-4'})})}):null;}function $e(_0x14fbba){var _0x40d109=_0x217919;const {status:_0x5b07fb,coordinator:_0x37cd95}=_0x14fbba;switch(_0x5b07fb){case h['IDLE']:return _0x1cdc23(Fe,{'coordinator':_0x37cd95});case h[_0x40d109(0x243)]:return _0x1cdc23(He,{'coordinator':_0x37cd95});case h[_0x40d109(0x226)]:return _0x1cdc23(je,{'coordinator':_0x37cd95});case h['OFFLINE']:return _0x1cdc23(Ve,{});case h['PRESENTING']:return _0x1cdc23(Ue,{'coordinator':_0x37cd95});default:return null;}}function Fe(_0xe4be8c){var _0x20f5c5=_0x217919;const {coordinator:_0x1066d3}=_0xe4be8c;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x20f5c5(0x269),{'className':_0x20f5c5(0x23f),'children':_0x20f5c5(0x26b)}),_0x1cdc23(_0x32f9cc,{'onClick':()=>_0x1066d3[_0x20f5c5(0x267)](),'children':_0x20f5c5(0x22f)})]});}function He(_0x1151ed){var _0x453057=_0x217919;const {coordinator:_0x2f642a}=_0x1151ed;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x453057(0x269),{'className':_0x453057(0x23f),'children':_0x453057(0x240)}),_0x1cdc23(_0x32f9cc,{'onClick':()=>_0x2f642a[_0x453057(0x27f)](),'children':_0x453057(0x210)})]});}function je(_0x2f2749){var _0x5d1e54=_0x217919;const {coordinator:_0x4a0684}=_0x2f2749;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x5d1e54(0x269),{'className':_0x5d1e54(0x23f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1cdc23(_0x32f9cc,{'variant':'text','onClick':()=>_0x4a0684[_0x5d1e54(0x238)](),'children':_0x5d1e54(0x28b)})]});}function Ue(_0x36fd2e){var _0x4f4288=_0x217919;const {coordinator:_0x5c12c7}=_0x36fd2e;return _0xe09a6d(_0x32f07f,{'children':[_0x1cdc23(_0x4f4288(0x269),{'className':_0x4f4288(0x23f),'children':_0x4f4288(0x246)}),_0x1cdc23(_0x32f9cc,{'variant':_0x4f4288(0x254),'onClick':()=>_0x5c12c7[_0x4f4288(0x256)](),'children':_0x4f4288(0x27b)})]});}function Ve(){var _0x176dfb=_0x217919;return _0x1cdc23(_0x32f07f,{'children':_0x176dfb(0x289)});}var Me=Object[_0x217919(0x1f1)],ke=(_0x59ec10,_0x2a4fd5,_0x599de9,_0x31173a)=>{var _0x2f9cd7=_0x217919;for(var _0x10cf6f=_0x31173a>0x1?void 0x0:_0x31173a?Me(_0x2a4fd5,_0x599de9):_0x2a4fd5,_0x12b78c=_0x59ec10[_0x2f9cd7(0x202)]-0x1,_0x53c621;_0x12b78c>=0x0;_0x12b78c--)(_0x53c621=_0x59ec10[_0x12b78c])&&(_0x10cf6f=_0x53c621(_0x10cf6f)||_0x10cf6f);return _0x10cf6f;},$=(_0x5fbf18,_0xc7fede)=>(_0x14ede1,_0x5d2553)=>_0xc7fede(_0x14ede1,_0x5d2553,_0x5fbf18);let b=class extends _0x835fd3{constructor(_0x3d0476,_0x1d6087){var _0xc00a74=_0x217919;super(),this['_injector']=_0x3d0476,this['_uiPartsService']=_0x1d6087,this[_0xc00a74(0x282)]();}['_mountLiveShare'](){var _0x4f15bc=_0x217919;this[_0x4f15bc(0x24b)](this[_0x4f15bc(0x261)][_0x4f15bc(0x27c)](_0x33db09[_0x4f15bc(0x1ec)],()=>_0x128908(Te,this[_0x4f15bc(0x232)])));}};b=ke([$(0x0,_0xb1ab10(_0x45f335)),$(0x1,_0x259166)],b);var Ge=Object[_0x217919(0x286)],We=Object[_0x217919(0x1f1)],Ye=(_0x416e62,_0x589b9c,_0x5e0af6)=>_0x589b9c in _0x416e62?Ge(_0x416e62,_0x589b9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e0af6}):_0x416e62[_0x589b9c]=_0x5e0af6,Be=(_0x55198a,_0x2fcc93,_0x5d1887,_0x28cf75)=>{var _0x50def2=_0x217919;for(var _0x3cd0f7=_0x28cf75>0x1?void 0x0:_0x28cf75?We(_0x2fcc93,_0x5d1887):_0x2fcc93,_0x2b78f7=_0x55198a[_0x50def2(0x202)]-0x1,_0x4497c1;_0x2b78f7>=0x0;_0x2b78f7--)(_0x4497c1=_0x55198a[_0x2b78f7])&&(_0x3cd0f7=_0x4497c1(_0x3cd0f7)||_0x3cd0f7);return _0x3cd0f7;},F=(_0x2fb79e,_0x3bbd01)=>(_0x20fb91,_0x40169f)=>_0x3bbd01(_0x20fb91,_0x40169f,_0x2fb79e),J=(_0x425350,_0x3c0bc0,_0x334351)=>Ye(_0x425350,typeof _0x3c0bc0!=_0x217919(0x280)?_0x3c0bc0+'':_0x3c0bc0,_0x334351);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1884ea{constructor(_0x5b2bf6=T,_0x265447,_0x320a49){var _0x5a7ee0=_0x217919;super(),this['_config']=_0x5b2bf6,this[_0x5a7ee0(0x232)]=_0x265447,this[_0x5a7ee0(0x25c)]=_0x320a49;const {..._0x4620ee}=_0x3d2d80({},T,this[_0x5a7ee0(0x26e)]);this['_configService'][_0x5a7ee0(0x1fc)](Oe,_0x4620ee);}[_0x217919(0x270)](){var _0x11045f=_0x217919;_0x320e2a(this[_0x11045f(0x232)],_0x1d7f61([[L],[I],[m],[b]],this[_0x11045f(0x26e)]['override'])),_0x224521(this[_0x11045f(0x232)],[[m]]);}[_0x217919(0x221)](){var _0x23238b=_0x217919;_0x224521(this[_0x23238b(0x232)],[[b]]);}};J(O,_0x217919(0x28e),_0x5c3c06[_0x217919(0x22d)]),J(O,_0x217919(0x1e6),Ze),O=Be([_0x24fd2c(_0x309c77),F(0x1,_0xb1ab10(_0x45f335)),F(0x2,_0x57f097)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3315(_0x228908,_0xc14169){var _0x17851c=_0x1785();return _0x3315=function(_0x3315ca,_0xfea4e9){_0x3315ca=_0x3315ca-0xe3;var _0x1ad3d1=_0x17851c[_0x3315ca];return _0x1ad3d1;},_0x3315(_0x228908,_0xc14169);}(function(_0x9ad190,_0x19b5f2){var _0x5ddb9d=_0x3315,_0x505932=_0x9ad190();while(!![]){try{var _0x56c42a=-parseInt(_0x5ddb9d(0x1ab))/0x1*(parseInt(_0x5ddb9d(0x12a))/0x2)+parseInt(_0x5ddb9d(0xfb))/0x3+parseInt(_0x5ddb9d(0x105))/0x4+parseInt(_0x5ddb9d(0x151))/0x5+-parseInt(_0x5ddb9d(0x1b7))/0x6+parseInt(_0x5ddb9d(0xe7))/0x7+-parseInt(_0x5ddb9d(0x15d))/0x8;if(_0x56c42a===_0x19b5f2)break;else _0x505932['push'](_0x505932['shift']());}catch(_0x3a5f0a){_0x505932['push'](_0x505932['shift']());}}}(_0x1785,0x63c72),function(_0x227b37,_0x4bc042){var _0x22a49a=_0x3315;typeof exports==_0x22a49a(0x14d)&&typeof module<'u'?_0x4bc042(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x22a49a(0x177)]?define([_0x22a49a(0x1a2),_0x22a49a(0xf3),'@univerjs/core',_0x22a49a(0x12c),'@univerjs/sheets-ui','@univerjs/ui',_0x22a49a(0xe8),_0x22a49a(0x132),'react','@univerjs-pro/collaboration',_0x22a49a(0xf0),_0x22a49a(0x195)],_0x4bc042):(_0x227b37=typeof globalThis<'u'?globalThis:_0x227b37||self,_0x4bc042(_0x227b37[_0x22a49a(0x143)]={},_0x227b37[_0x22a49a(0x10a)],_0x227b37[_0x22a49a(0x1a8)],_0x227b37[_0x22a49a(0x137)],_0x227b37['UniverSheetsUi'],_0x227b37[_0x22a49a(0x1c3)],_0x227b37['React'],_0x227b37[_0x22a49a(0x1a5)],_0x227b37[_0x22a49a(0x12f)],_0x227b37[_0x22a49a(0x13b)],_0x227b37[_0x22a49a(0xf0)],_0x227b37[_0x22a49a(0xf0)][_0x22a49a(0x18d)]));}(this,function(_0x16fdd6,_0x339129,_0x3ec069,_0xaa22af,_0x494b80,_0x46132c,_0x1eaffc,_0x276297,_0x49f40a,_0xb3db87,_0x49db1f,_0x1a2cd0){'use strict';var _0x39e030=_0x3315;var _0x19dffa=Object['defineProperty'],_0x47709=(_0x49ed7a,_0x493a19,_0x3fa1e3)=>_0x493a19 in _0x49ed7a?_0x19dffa(_0x49ed7a,_0x493a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fa1e3}):_0x49ed7a[_0x493a19]=_0x3fa1e3,_0x5f1156=(_0x32f9e9,_0x36204f,_0x56a39c)=>_0x47709(_0x32f9e9,typeof _0x36204f!=_0x39e030(0x185)?_0x36204f+'':_0x36204f,_0x56a39c);const _0x20c7a3=_0x39e030(0x1af),_0x34606a={};class _0x5ab4cc extends _0x3ec069['Disposable']{constructor(){var _0x170130=_0x39e030;super(...arguments),_0x5f1156(this,_0x170130(0x18a),new Set()),_0x5f1156(this,_0x170130(0x14f),new Set());}[_0x39e030(0x131)](_0x374bce){var _0xef3cb5=_0x39e030;return this['_sharedOperations'][_0xef3cb5(0xed)](_0x374bce),_0x3ec069[_0xef3cb5(0x106)](()=>this[_0xef3cb5(0x18a)][_0xef3cb5(0x160)](_0x374bce));}[_0x39e030(0x128)](_0x433c6e){var _0x3a7461=_0x39e030;return this[_0x3a7461(0x14f)][_0x3a7461(0xed)](_0x433c6e),_0x3ec069['toDisposable'](()=>this[_0x3a7461(0x14f)][_0x3a7461(0x160)](_0x433c6e));}[_0x39e030(0x1a6)](_0x5d518e){var _0x497583=_0x39e030;return this[_0x497583(0x18a)][_0x497583(0x1d0)](_0x5d518e);}['getInitialStates'](_0x53b223){var _0x4e3654=_0x39e030;return Array['from'](this['_reporters'])[_0x4e3654(0x1b3)](_0xd056d5=>_0xd056d5(_0x53b223));}}var _0xb0bb32=Object[_0x39e030(0x14e)],_0x425615=(_0x378545,_0x2423f2,_0x4beb01,_0x29c21d)=>{var _0x12f410=_0x39e030;for(var _0x4d230a=_0x29c21d>0x1?void 0x0:_0x29c21d?_0xb0bb32(_0x2423f2,_0x4beb01):_0x2423f2,_0x3e83bc=_0x378545[_0x12f410(0x124)]-0x1,_0x519451;_0x3e83bc>=0x0;_0x3e83bc--)(_0x519451=_0x378545[_0x3e83bc])&&(_0x4d230a=_0x519451(_0x4d230a)||_0x4d230a);return _0x4d230a;},_0x57c8b3=(_0xac526c,_0x859683)=>(_0x5d3f8f,_0x2b41f9)=>_0x859683(_0x5d3f8f,_0x2b41f9,_0xac526c);let _0x56b4f5=class extends _0x3ec069[_0x39e030(0x16d)]{constructor(_0x1e9bd1){var _0x144cc9=_0x39e030;super(),this[_0x144cc9(0x110)]=_0x1e9bd1,this[_0x144cc9(0x127)]();}[_0x39e030(0x127)](){var _0xabf4f2=_0x39e030;[_0x494b80[_0xabf4f2(0x197)]['id'],_0x494b80['SetScrollOperation']['id'],_0xaa22af[_0xabf4f2(0x14c)]['id']][_0xabf4f2(0x1ad)](_0xd5fe5d=>{var _0x2ace98=_0xabf4f2;this[_0x2ace98(0x126)](this[_0x2ace98(0x110)][_0x2ace98(0x131)](_0xd5fe5d));});}};_0x56b4f5=_0x425615([_0x57c8b3(0x0,_0x3ec069[_0x39e030(0x1b6)](_0x5ab4cc))],_0x56b4f5);var _0x3291c6=function(){var _0x9005ce=_0x39e030;return _0x3291c6=Object[_0x9005ce(0x183)]||function(_0x392ab3){var _0x51f98f=_0x9005ce;for(var _0xb248c3,_0x191274=0x1,_0x695019=arguments[_0x51f98f(0x124)];_0x191274<_0x695019;_0x191274++){_0xb248c3=arguments[_0x191274];for(var _0x570067 in _0xb248c3)Object[_0x51f98f(0x1bf)][_0x51f98f(0x1c7)][_0x51f98f(0xf6)](_0xb248c3,_0x570067)&&(_0x392ab3[_0x570067]=_0xb248c3[_0x570067]);}return _0x392ab3;},_0x3291c6['apply'](this,arguments);},_0x2c06d7=function(_0x114100,_0x5c620e){var _0x18afa3=_0x39e030,_0x4de532={};for(var _0x51e672 in _0x114100)Object['prototype'][_0x18afa3(0x1c7)][_0x18afa3(0xf6)](_0x114100,_0x51e672)&&_0x5c620e['indexOf'](_0x51e672)<0x0&&(_0x4de532[_0x51e672]=_0x114100[_0x51e672]);if(_0x114100!=null&&typeof Object['getOwnPropertySymbols']==_0x18afa3(0x167)){for(var _0x17d02e=0x0,_0x51e672=Object[_0x18afa3(0x16b)](_0x114100);_0x17d02e<_0x51e672[_0x18afa3(0x124)];_0x17d02e++)_0x5c620e['indexOf'](_0x51e672[_0x17d02e])<0x0&&Object[_0x18afa3(0x1bf)][_0x18afa3(0x14a)][_0x18afa3(0xf6)](_0x114100,_0x51e672[_0x17d02e])&&(_0x4de532[_0x51e672[_0x17d02e]]=_0x114100[_0x51e672[_0x17d02e]]);}return _0x4de532;},_0x5b3b7e=_0x49f40a[_0x39e030(0x13e)](function(_0x1bea21,_0x464b4b){var _0x386b64=_0x39e030,_0x24262f=_0x1bea21[_0x386b64(0x14b)],_0x1dae3a=_0x1bea21['id'],_0x440f4d=_0x1bea21[_0x386b64(0x179)],_0x279063=_0x1bea21[_0x386b64(0x18e)],_0x4568ba=_0x2c06d7(_0x1bea21,[_0x386b64(0x14b),'id',_0x386b64(0x179),_0x386b64(0x18e)]),_0x11fbbe='univerjs-icon\x20univerjs-icon-'[_0x386b64(0x109)](_0x1dae3a,'\x20')[_0x386b64(0x109)](_0x440f4d||'')['trim'](),_0x5a9f6d=_0x49f40a[_0x386b64(0x135)]('_'['concat'](_0x3663ce()));return _0x428415(_0x24262f,''[_0x386b64(0x109)](_0x1dae3a),{'defIds':_0x24262f[_0x386b64(0x123)],'idSuffix':_0x5a9f6d[_0x386b64(0xea)]},_0x3291c6({'ref':_0x464b4b,'className':_0x11fbbe},_0x4568ba),_0x279063);});function _0x428415(_0x1b6a89,_0x18c07d,_0x224715,_0x18f905,_0x4aa6a7){var _0x5a3b59=_0x39e030;return _0x49f40a[_0x5a3b59(0x134)](_0x1b6a89[_0x5a3b59(0x1bd)],_0x3291c6(_0x3291c6({'key':_0x18c07d},_0x3dc6c3(_0x1b6a89,_0x224715,_0x4aa6a7)),_0x18f905),(_0x28b04(_0x1b6a89,_0x224715)['children']||[])['map'](function(_0x3ebbc5,_0xafc91d){var _0x4559d9=_0x5a3b59;return _0x428415(_0x3ebbc5,''[_0x4559d9(0x109)](_0x18c07d,'-')[_0x4559d9(0x109)](_0x1b6a89[_0x4559d9(0x1bd)],'-')[_0x4559d9(0x109)](_0xafc91d),_0x224715,void 0x0,_0x4aa6a7);}));}function _0x3dc6c3(_0x210c0c,_0x3fa638,_0x4395e8){var _0x2871fb=_0x39e030,_0x5d340e=_0x3291c6({},_0x210c0c['attrs']);_0x4395e8!=null&&_0x4395e8[_0x2871fb(0x1cc)]&&_0x5d340e[_0x2871fb(0x108)]==='colorChannel1'&&(_0x5d340e['fill']=_0x4395e8[_0x2871fb(0x1cc)]),_0x210c0c['tag']==='mask'&&_0x5d340e['id']&&(_0x5d340e['id']=_0x5d340e['id']+_0x3fa638[_0x2871fb(0x147)]),Object[_0x2871fb(0x19c)](_0x5d340e)[_0x2871fb(0x1ad)](function(_0x3e9047){var _0x51b497=_0x2871fb,_0x37a456=_0x3e9047[0x0],_0x2274d7=_0x3e9047[0x1];_0x37a456==='mask'&&typeof _0x2274d7==_0x51b497(0x1c9)&&(_0x5d340e[_0x37a456]=_0x2274d7[_0x51b497(0x121)](/url\(#(.*)\)/,_0x51b497(0x16a)[_0x51b497(0x109)](_0x3fa638['idSuffix'],')')));});var _0x5b2c1a=_0x3fa638[_0x2871fb(0x123)];return!_0x5b2c1a||_0x5b2c1a[_0x2871fb(0x124)]===0x0||(_0x210c0c['tag']===_0x2871fb(0x118)&&_0x5d340e['xlink:href']&&(_0x5d340e[_0x2871fb(0x16e)]=_0x5d340e['xlink:href']+_0x3fa638[_0x2871fb(0x147)]),Object['entries'](_0x5d340e)[_0x2871fb(0x1ad)](function(_0x2d9b62){var _0x3692c5=_0x2871fb,_0x317927=_0x2d9b62[0x0],_0x5275eb=_0x2d9b62[0x1];typeof _0x5275eb=='string'&&(_0x5d340e[_0x317927]=_0x5275eb[_0x3692c5(0x121)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3fa638[_0x3692c5(0x147)],')')));})),_0x5d340e;}function _0x28b04(_0x2ee2c9,_0x1cafd5){var _0x5a40dd=_0x39e030,_0xa8ebec,_0x3915ee=_0x1cafd5[_0x5a40dd(0x123)];return!_0x3915ee||_0x3915ee['length']===0x0?_0x2ee2c9:_0x2ee2c9[_0x5a40dd(0x1bd)]===_0x5a40dd(0x19d)&&(!((_0xa8ebec=_0x2ee2c9['children'])===null||_0xa8ebec===void 0x0)&&_0xa8ebec[_0x5a40dd(0x124)])?_0x3291c6(_0x3291c6({},_0x2ee2c9),{'children':_0x2ee2c9[_0x5a40dd(0x166)][_0x5a40dd(0x1b3)](function(_0x5c8ffc){var _0x394349=_0x5a40dd;return typeof _0x5c8ffc[_0x394349(0x186)]['id']==_0x394349(0x1c9)&&_0x3915ee&&_0x3915ee[_0x394349(0x12d)](_0x5c8ffc['attrs']['id'])?_0x3291c6(_0x3291c6({},_0x5c8ffc),{'attrs':_0x3291c6(_0x3291c6({},_0x5c8ffc[_0x394349(0x186)]),{'id':_0x5c8ffc[_0x394349(0x186)]['id']+_0x1cafd5[_0x394349(0x147)]})}):_0x5c8ffc;})}):_0x2ee2c9;}function _0x3663ce(){var _0xe9f82d=_0x39e030;return Math[_0xe9f82d(0x130)]()[_0xe9f82d(0x11f)](0x24)[_0xe9f82d(0x17d)](0x2,0x8);}_0x5b3b7e[_0x39e030(0x190)]=_0x39e030(0xf7);var _0x21b082={'tag':_0x39e030(0x175),'attrs':{'xmlns':_0x39e030(0x199),'fill':'none','viewBox':_0x39e030(0x1a7),'width':_0x39e030(0x1b9),'height':_0x39e030(0x1b9)},'children':[{'tag':_0x39e030(0x1ba),'attrs':{'fill':_0x39e030(0x1a3),'d':_0x39e030(0x1cb)}},{'tag':_0x39e030(0x1ba),'attrs':{'fill':'currentColor','d':_0x39e030(0x163),'fillRule':_0x39e030(0x17e),'clipRule':_0x39e030(0x17e)}}]},_0x114348=_0x49f40a[_0x39e030(0x13e)](function(_0xdf839e,_0x4c4daf){var _0x25ca57=_0x39e030;return _0x49f40a['createElement'](_0x5b3b7e,Object[_0x25ca57(0x183)]({},_0xdf839e,{'id':_0x25ca57(0x101),'ref':_0x4c4daf,'icon':_0x21b082}));});_0x114348[_0x39e030(0x190)]='LiveShareIcon';var _0x126439=Object[_0x39e030(0x14e)],_0xcc8448=(_0x1cd41d,_0x3f09c1,_0x280802,_0x1f76d4)=>{var _0x441716=_0x39e030;for(var _0x5b2fad=_0x1f76d4>0x1?void 0x0:_0x1f76d4?_0x126439(_0x3f09c1,_0x280802):_0x3f09c1,_0x4f6294=_0x1cd41d[_0x441716(0x124)]-0x1,_0x2fd89c;_0x4f6294>=0x0;_0x4f6294--)(_0x2fd89c=_0x1cd41d[_0x4f6294])&&(_0x5b2fad=_0x2fd89c(_0x5b2fad)||_0x5b2fad);return _0x5b2fad;},_0x3b6b2c=(_0x27b7c5,_0x459249)=>(_0x47d6b9,_0x1235b4)=>_0x459249(_0x47d6b9,_0x1235b4,_0x27b7c5);_0x16fdd6[_0x39e030(0xee)]=class extends _0x3ec069[_0x39e030(0x192)]{constructor(_0x1ddc52,_0x41aac8,_0x107bf9){var _0x485a32=_0x39e030;super(),_0x5f1156(this,_0x485a32(0xf2),new Map()),(this[_0x485a32(0x129)]=_0x1ddc52,this[_0x485a32(0x11c)]=_0x41aac8,this['_collabSessionService']=_0x107bf9,this[_0x485a32(0x127)]());}async[_0x39e030(0x116)](_0x3e48a9){var _0x510694=_0x39e030;return this['_entities'][_0x510694(0x1d0)](_0x3e48a9)||await this[_0x510694(0x1c2)](_0x3e48a9),this[_0x510694(0xf2)]['get'](_0x3e48a9);}['_init'](){var _0x357684=_0x39e030;this[_0x357684(0x129)]['getTypeOfUnitAdded$'](_0x3ec069['UniverInstanceType'][_0x357684(0x193)])[_0x357684(0x1b0)](_0x1a2cd0[_0x357684(0x171)](this[_0x357684(0x122)]))[_0x357684(0x11b)](async _0x4295a4=>{var _0x1bdd6d=_0x357684;const _0x314fa2=_0x4295a4[_0x1bdd6d(0x10c)]();this['_entities']['has'](_0x314fa2)||this['_startLiveShareCoordinator'](_0x314fa2);}),this[_0x357684(0x129)][_0x357684(0x1c0)](_0x3ec069[_0x357684(0x1ae)][_0x357684(0x193)])[_0x357684(0x1b0)](_0x1a2cd0['takeUntil'](this[_0x357684(0x122)]))[_0x357684(0x11b)](_0x12ec9a=>{var _0x2e4b78=_0x357684;const _0x9dedd5=_0x12ec9a[_0x2e4b78(0x10c)](),_0x13f719=this[_0x2e4b78(0xf2)][_0x2e4b78(0x16f)](_0x9dedd5);_0x13f719==null||_0x13f719['dispose']();});}async[_0x39e030(0x1c2)](_0x523de0){var _0x1bb71a=_0x39e030;const _0x21190c=await this['_collabSessionService'][_0x1bb71a(0x1b8)](_0x523de0),_0x2f0cdd=this[_0x1bb71a(0x11c)][_0x1bb71a(0x15c)](_0x16fdd6[_0x1bb71a(0xf9)],_0x523de0,_0x21190c);return _0x2f0cdd[_0x1bb71a(0x1bb)](),this[_0x1bb71a(0xf2)][_0x1bb71a(0x11a)](_0x523de0,_0x2f0cdd),_0x2f0cdd;}},_0x16fdd6[_0x39e030(0xee)]=_0xcc8448([_0x3b6b2c(0x0,_0x3ec069[_0x39e030(0x158)]),_0x3b6b2c(0x1,_0x3ec069[_0x39e030(0x1b6)](_0x3ec069[_0x39e030(0x1aa)])),_0x3b6b2c(0x2,_0x3ec069[_0x39e030(0x1b6)](_0x339129[_0x39e030(0x1c6)]))],_0x16fdd6[_0x39e030(0xee)]);var _0x2d61e1=(_0x50b8bf=>(_0x50b8bf[_0x39e030(0x189)]=_0x39e030(0xfe),_0x50b8bf[_0x39e030(0x164)]='idle',_0x50b8bf['FOLLOWING']=_0x39e030(0x13c),_0x50b8bf[_0x39e030(0xe5)]='not-following',_0x50b8bf[_0x39e030(0x112)]=_0x39e030(0x15a),_0x50b8bf))(_0x2d61e1||{});const _0x2764a4='SAME_OPERATION_SHARE_INTERVAL',_0xd82873=0xc8;_0x16fdd6['LiveShareCoordinator']=class extends _0x3ec069[_0x39e030(0x192)]{constructor(_0x441f3c,_0x57289d,_0x313419,_0x3672db,_0x1ad883){var _0x2377b0=_0x39e030;super(),_0x5f1156(this,_0x2377b0(0x173),new _0x49db1f[(_0x2377b0(0x1a9))](_0x2377b0(0x1cd))),_0x5f1156(this,_0x2377b0(0x17b),this[_0x2377b0(0x173)][_0x2377b0(0x152)]()),_0x5f1156(this,_0x2377b0(0x127),!0x1),_0x5f1156(this,_0x2377b0(0x119),null),_0x5f1156(this,_0x2377b0(0x136),null),(this[_0x2377b0(0x100)]=_0x441f3c,this[_0x2377b0(0x178)]=_0x57289d,this[_0x2377b0(0x13a)]=_0x313419,this[_0x2377b0(0x110)]=_0x3672db,this[_0x2377b0(0x139)]=_0x1ad883);}get[_0x39e030(0x146)](){var _0x1b14b4=_0x39e030;return this[_0x1b14b4(0x173)][_0x1b14b4(0x1a0)]();}['dispose'](){var _0x3154ad=_0x39e030,_0x3eb230;(_0x3eb230=this[_0x3154ad(0x119)])==null||_0x3eb230[_0x3154ad(0xef)](),this[_0x3154ad(0x173)][_0x3154ad(0x1a1)](_0x3154ad(0x1cd)),this['_status$']['complete']();}[_0x39e030(0x1bb)](){var _0x63fb07=_0x39e030;this[_0x63fb07(0x127)]||(this[_0x63fb07(0x127)]=!0x0,this['_collabSession'][_0x63fb07(0xe6)]['pipe'](_0x1a2cd0[_0x63fb07(0x171)](this[_0x63fb07(0x122)]))['subscribe'](_0x21277d=>{var _0x5cf00d=_0x63fb07;switch(_0x21277d){case _0x339129[_0x5cf00d(0x18b)][_0x5cf00d(0x189)]:this[_0x5cf00d(0xfa)]();break;case _0x339129[_0x5cf00d(0x18b)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x63fb07(0x178)][_0x63fb07(0x159)][_0x63fb07(0x1b0)](_0x1a2cd0[_0x63fb07(0x171)](this[_0x63fb07(0x122)]))[_0x63fb07(0x11b)](_0x5b5823=>{var _0xc953ee=_0x63fb07;const {eventID:_0x49260b}=_0x5b5823;switch(_0x49260b){case _0xb3db87[_0xc953ee(0x11d)][_0xc953ee(0x161)]:this['_handleNewHost'](_0x5b5823);break;case _0xb3db87[_0xc953ee(0x11d)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x5b5823);break;case _0xb3db87[_0xc953ee(0x11d)][_0xc953ee(0x169)]:this[_0xc953ee(0x15f)]();break;case _0xb3db87[_0xc953ee(0x11d)][_0xc953ee(0x17c)]:this[_0xc953ee(0xeb)](_0x5b5823);break;}}));}[_0x39e030(0xf1)](){var _0x1eab52=_0x39e030;this[_0x1eab52(0x178)][_0x1eab52(0x157)]({'eventID':_0xb3db87[_0x1eab52(0x11d)][_0x1eab52(0x1b2)],'data':{'unitID':this[_0x1eab52(0x100)],'userID':this[_0x1eab52(0x178)][_0x1eab52(0x114)]()}},this[_0x1eab52(0x100)]);}['stopPresenting'](){var _0x108295=_0x39e030;this[_0x108295(0x146)]===_0x108295(0x15a)&&(this['_status$'][_0x108295(0x1a1)](_0x108295(0x1cd)),this[_0x108295(0x178)][_0x108295(0x157)]({'eventID':_0xb3db87[_0x108295(0x11d)][_0x108295(0x169)],'data':{'unitID':this['_unitID']}},this[_0x108295(0x100)]));}[_0x39e030(0x165)](){var _0x48a657=_0x39e030;this[_0x48a657(0x146)]===_0x48a657(0x145)&&(this[_0x48a657(0x173)][_0x48a657(0x1a1)]('following'),this[_0x48a657(0x198)]());}[_0x39e030(0x148)](){var _0x9512f0=_0x39e030;this[_0x9512f0(0x146)]===_0x9512f0(0x13c)&&this['_stopFollowing']();}[_0x39e030(0x1c8)](_0x17d531){var _0x33859b=_0x39e030;const {presenter:_0x168492}=_0x17d531[_0x33859b(0x1b5)],_0x3e8782=this[_0x33859b(0x178)]['getMemberID']();this[_0x33859b(0x136)]=_0x168492,_0x168492===_0x3e8782?(this[_0x33859b(0x188)](),this['_startPresenting']()):this[_0x33859b(0x146)]!==_0x33859b(0x145)&&(this['_stopPresenting'](),this[_0x33859b(0x198)]());}[_0x39e030(0x170)](){var _0x58ece9=_0x39e030;const _0x3fad8b={'eventID':_0xb3db87['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x58ece9(0x178)]['send'](_0x3fad8b,this[_0x58ece9(0x100)]);}[_0x39e030(0x15f)](){var _0x34e946=_0x39e030;this[_0x34e946(0x136)]=null,this[_0x34e946(0x146)]!==_0x34e946(0x15a)&&this[_0x34e946(0x117)]();}[_0x39e030(0xeb)](_0x2baef0){var _0x343a4d=_0x39e030;if(this[_0x343a4d(0x146)]===_0x343a4d(0x13c)&&this['_presenter']===_0x2baef0['data']['memberID']){const _0x25af70=_0xb3db87[_0x343a4d(0x107)](_0x2baef0[_0x343a4d(0x1b5)])[_0x343a4d(0x15b)][_0x343a4d(0x150)]()[_0x343a4d(0x156)](_0x221297=>_0x221297['id']===_0xaa22af[_0x343a4d(0x15e)]['id']);if(_0x25af70){const _0x430954=_0x25af70[_0x343a4d(0x18c)][_0x343a4d(0x142)],_0x2cb7ba=_0x25af70[_0x343a4d(0x18c)]['sheet']['id'];setTimeout(()=>{var _0x43d095=_0x343a4d;this[_0x43d095(0x139)][_0x43d095(0x1a4)](_0xaa22af[_0x43d095(0x14c)]['id'],{'unitId':_0x430954,'subUnitId':_0x2cb7ba},{'fromCollab':!0x0});});}}}[_0x39e030(0x120)](){var _0x3b3371=_0x39e030;this['_status$'][_0x3b3371(0x1a1)](_0x3b3371(0x15a));const _0x7047b5=new Map(),_0x2431cc=this['_commandDisposable']=new _0x3ec069[(_0x3b3371(0x104))]();_0x2431cc[_0x3b3371(0xed)](_0x3ec069[_0x3b3371(0x106)](()=>{var _0x10b7e1=_0x3b3371;_0x7047b5[_0x10b7e1(0x1ad)](_0x44ecef=>_0x44ecef[_0x10b7e1(0x1cf)]()),_0x7047b5[_0x10b7e1(0x1c5)]();})),_0x2431cc[_0x3b3371(0xed)](this[_0x3b3371(0x139)][_0x3b3371(0x196)](_0x41f852=>{var _0x1c1f15=_0x3b3371,_0x158673;if(_0x41f852[_0x1c1f15(0x16c)]!==_0x3ec069[_0x1c1f15(0x113)]['OPERATION']||!this[_0x1c1f15(0x110)][_0x1c1f15(0x1a6)](_0x41f852['id']))return;const {id:_0x367867}=_0x41f852;let _0x1554e8;_0x7047b5['has'](_0x367867)?_0x1554e8=_0x7047b5[_0x1c1f15(0x16f)](_0x367867):(_0x1554e8=new _0x49db1f[(_0x1c1f15(0x1c1))](),_0x7047b5['set'](_0x367867,_0x1554e8),_0x1554e8[_0x1c1f15(0x1b0)](_0x1a2cd0[_0x1c1f15(0x10b)]((_0x158673=this[_0x1c1f15(0x13a)][_0x1c1f15(0xfd)](_0x2764a4))!=null?_0x158673:_0xd82873,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1c1f15(0x11b)](_0x32b587=>{var _0x552474=_0x1c1f15;this['_collabSession'][_0x552474(0x157)]({'eventID':_0xb3db87[_0x552474(0x11d)][_0x552474(0xe9)],'data':{'unitID':this[_0x552474(0x100)],'operations':{[_0x32b587['id']]:{'id':_0x32b587['id'],'params':JSON[_0x552474(0x176)](_0x32b587['params'])}}}},this['_unitID']);})),_0x1554e8['next'](_0x41f852);})),this[_0x3b3371(0x110)][_0x3b3371(0x140)](this[_0x3b3371(0x100)])[_0x3b3371(0x1ad)](_0x334b5f=>this['_collabSession'][_0x3b3371(0x157)]({'eventID':_0xb3db87[_0x3b3371(0x11d)][_0x3b3371(0xe9)],'data':{'unitID':this[_0x3b3371(0x100)],'operations':{[_0x334b5f['id']]:{'id':_0x334b5f['id'],'params':JSON[_0x3b3371(0x176)](_0x334b5f[_0x3b3371(0x18c)])}}}},this[_0x3b3371(0x100)]));}[_0x39e030(0x13f)](){var _0x5ceb3e=_0x39e030,_0x57742b;this['_status$'][_0x5ceb3e(0x1a1)](_0x5ceb3e(0x1cd)),(_0x57742b=this['_commandDisposable'])==null||_0x57742b['dispose'](),this['_commandDisposable']=null;}[_0x39e030(0x198)](){var _0x256fe4=_0x39e030,_0x1ed72c;(_0x1ed72c=this['_commandDisposable'])==null||_0x1ed72c[_0x256fe4(0xef)](),this[_0x256fe4(0x173)][_0x256fe4(0x1a1)](_0x256fe4(0x13c));}[_0x39e030(0x117)](){var _0x53890f=_0x39e030,_0x2b3936;this['_status$'][_0x53890f(0x1a1)](_0x53890f(0x1cd)),(_0x2b3936=this[_0x53890f(0x119)])==null||_0x2b3936['dispose'](),this[_0x53890f(0x119)]=null;}['_stopFollowing'](){var _0x329a1a=_0x39e030,_0x7247b6;this[_0x329a1a(0x173)][_0x329a1a(0x1a1)](_0x329a1a(0x145)),(_0x7247b6=this['_commandDisposable'])==null||_0x7247b6[_0x329a1a(0xef)]();}['_handleOperation'](_0x43dd1b){var _0x471e47=_0x39e030;if([_0x471e47(0x15a),_0x471e47(0x145),'offline'][_0x471e47(0x12d)](this[_0x471e47(0x146)])||!_0x43dd1b['data'][_0x471e47(0x149)]||_0x43dd1b[_0x471e47(0x1b5)][_0x471e47(0x149)]===this[_0x471e47(0x178)][_0x471e47(0x114)]())return;this['_status']===_0x471e47(0x1cd)&&this[_0x471e47(0x198)]();const _0x5f182e=_0x43dd1b[_0x471e47(0x1b5)]['operations'];Object[_0x471e47(0x182)](_0x5f182e)[_0x471e47(0x1ad)](_0x3b19ed=>{var _0x293980=_0x471e47;this[_0x293980(0x139)][_0x293980(0x1a4)](_0x3b19ed['id'],_0x3b19ed[_0x293980(0x18c)]?JSON[_0x293980(0x162)](_0x3b19ed['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x57844e=_0x39e030,_0x30c1ed;this[_0x57844e(0x173)][_0x57844e(0x1a1)]('offline'),(_0x30c1ed=this['_commandDisposable'])==null||_0x30c1ed[_0x57844e(0xef)]();}[_0x39e030(0x1be)](){var _0x18c3fc=_0x39e030;this[_0x18c3fc(0x173)][_0x18c3fc(0x1a1)](_0x18c3fc(0x1cd)),this[_0x18c3fc(0x170)]();}},_0x16fdd6[_0x39e030(0xf9)]=_0xcc8448([_0x3b6b2c(0x2,_0x3ec069[_0x39e030(0x154)]),_0x3b6b2c(0x3,_0x3ec069[_0x39e030(0x1b6)](_0x5ab4cc)),_0x3b6b2c(0x4,_0x3ec069[_0x39e030(0x1b4)])],_0x16fdd6[_0x39e030(0xf9)]);function _0x4bb86f(){var _0x152022=_0x39e030;const _0x2cbb8a=_0x46132c[_0x152022(0x19e)](_0x16fdd6[_0x152022(0xee)]),_0x4c9cc8=_0x46132c[_0x152022(0x19e)](_0x3ec069[_0x152022(0x158)]),_0x2f4d5d=_0x46132c['useObservable'](()=>_0x4c9cc8[_0x152022(0x138)](_0x3ec069[_0x152022(0x1ae)][_0x152022(0x193)]),void 0x0,!0x1,[]),[_0x2ffa96,_0x131072]=_0x49f40a['useState'](null),[_0x20dd93,_0x55132]=_0x49f40a['useState'](_0x2d61e1[_0x152022(0x164)]),_0x537fff=_0x49f40a[_0x152022(0x135)](null);return _0x49f40a[_0x152022(0x144)](()=>(_0x2f4d5d&&_0x2cbb8a[_0x152022(0x116)](_0x2f4d5d[_0x152022(0x10c)]())['then'](_0x4abff3=>{var _0x1bdc12=_0x152022;_0x131072(_0x4abff3),_0x537fff[_0x1bdc12(0xea)]=_0x4abff3['status$'][_0x1bdc12(0x11b)](_0x179b87=>{_0x55132(_0x179b87);});}),()=>{var _0x1bacf2=_0x152022,_0x19c471;(_0x19c471=_0x537fff[_0x1bacf2(0xea)])==null||_0x19c471[_0x1bacf2(0x12e)](),_0x537fff['current']=null;}),[_0x2f4d5d,_0x2cbb8a]),_0x2ffa96?_0x1eaffc['jsx'](_0x276297['Dropdown'],{'align':'end','disabled':_0x20dd93===_0x2d61e1[_0x152022(0x189)],'className':_0x152022(0x19a),'overlay':_0x1eaffc[_0x152022(0xff)](_0x4f31cc,{'status':_0x20dd93,'coordinator':_0x2ffa96}),'children':_0x1eaffc[_0x152022(0xff)](_0x152022(0xe3),{'className':_0x276297[_0x152022(0x18f)](_0x152022(0x111),{'univer-cursor-not-allowed':_0x20dd93===_0x2d61e1[_0x152022(0x189)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20dd93!==_0x2d61e1['OFFLINE']}),'type':_0x152022(0xe3),'children':_0x1eaffc['jsx'](_0x114348,{'className':_0x152022(0x13d)})})}):null;}function _0x4f31cc(_0x320fd7){var _0x1a335e=_0x39e030;const {status:_0x43a821,coordinator:_0x315433}=_0x320fd7;switch(_0x43a821){case _0x2d61e1['IDLE']:return _0x1eaffc[_0x1a335e(0xff)](_0x22fa11,{'coordinator':_0x315433});case _0x2d61e1[_0x1a335e(0x125)]:return _0x1eaffc['jsx'](_0x276ca8,{'coordinator':_0x315433});case _0x2d61e1[_0x1a335e(0xe5)]:return _0x1eaffc[_0x1a335e(0xff)](_0x59526d,{'coordinator':_0x315433});case _0x2d61e1[_0x1a335e(0x189)]:return _0x1eaffc[_0x1a335e(0xff)](_0xdfea89,{});case _0x2d61e1['PRESENTING']:return _0x1eaffc[_0x1a335e(0xff)](_0x55ebad,{'coordinator':_0x315433});default:return null;}}function _0x22fa11(_0x8af004){var _0x527e95=_0x39e030;const {coordinator:_0x202f11}=_0x8af004;return _0x1eaffc['jsxs'](_0x1eaffc['Fragment'],{'children':[_0x1eaffc[_0x527e95(0xff)](_0x527e95(0x12b),{'className':_0x527e95(0xf8),'children':'Present\x20this\x20document'}),_0x1eaffc['jsx'](_0x276297['Button'],{'onClick':()=>_0x202f11['tryStartPresenting'](),'children':_0x527e95(0x181)})]});}function _0x276ca8(_0x6a512a){var _0x4e185b=_0x39e030;const {coordinator:_0xb66133}=_0x6a512a;return _0x1eaffc[_0x4e185b(0x10e)](_0x1eaffc[_0x4e185b(0x141)],{'children':[_0x1eaffc[_0x4e185b(0xff)]('div',{'className':_0x4e185b(0xf8),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1eaffc['jsx'](_0x276297[_0x4e185b(0x102)],{'onClick':()=>_0xb66133[_0x4e185b(0x148)](),'children':'Stop\x20following'})]});}function _0x59526d(_0x3ceedd){var _0xabc04d=_0x39e030;const {coordinator:_0x7bd735}=_0x3ceedd;return _0x1eaffc[_0xabc04d(0x10e)](_0x1eaffc[_0xabc04d(0x141)],{'children':[_0x1eaffc[_0xabc04d(0xff)](_0xabc04d(0x12b),{'className':_0xabc04d(0xf8),'children':_0xabc04d(0x1b1)}),_0x1eaffc[_0xabc04d(0xff)](_0x276297[_0xabc04d(0x102)],{'variant':_0xabc04d(0x11e),'onClick':()=>_0x7bd735[_0xabc04d(0x165)](),'children':_0xabc04d(0x191)})]});}function _0x55ebad(_0x45ca5a){var _0x2a5f6e=_0x39e030;const {coordinator:_0x3f5192}=_0x45ca5a;return _0x1eaffc[_0x2a5f6e(0x10e)](_0x1eaffc[_0x2a5f6e(0x141)],{'children':[_0x1eaffc[_0x2a5f6e(0xff)]('div',{'className':_0x2a5f6e(0xf8),'children':_0x2a5f6e(0x103)}),_0x1eaffc[_0x2a5f6e(0xff)](_0x276297[_0x2a5f6e(0x102)],{'variant':_0x2a5f6e(0x17f),'onClick':()=>_0x3f5192[_0x2a5f6e(0x1c4)](),'children':_0x2a5f6e(0x10f)})]});}function _0xdfea89(){var _0x2c2879=_0x39e030;return _0x1eaffc[_0x2c2879(0xff)](_0x1eaffc[_0x2c2879(0x141)],{'children':_0x2c2879(0x10d)});}var _0x37bd8d=Object['getOwnPropertyDescriptor'],_0x1fe172=(_0x612a76,_0x3ed6ea,_0x196a77,_0x23647a)=>{var _0x3f58b6=_0x39e030;for(var _0x2cf94a=_0x23647a>0x1?void 0x0:_0x23647a?_0x37bd8d(_0x3ed6ea,_0x196a77):_0x3ed6ea,_0x27c276=_0x612a76[_0x3f58b6(0x124)]-0x1,_0x161131;_0x27c276>=0x0;_0x27c276--)(_0x161131=_0x612a76[_0x27c276])&&(_0x2cf94a=_0x161131(_0x2cf94a)||_0x2cf94a);return _0x2cf94a;},_0xd4aff0=(_0x9f0a27,_0x40b37)=>(_0x3d289c,_0x101e78)=>_0x40b37(_0x3d289c,_0x101e78,_0x9f0a27);_0x16fdd6['DesktopLiveShareController']=class extends _0x3ec069[_0x39e030(0x16d)]{constructor(_0x4bcf9d,_0x46ca74){var _0x50f59c=_0x39e030;super(),this[_0x50f59c(0x11c)]=_0x4bcf9d,this[_0x50f59c(0x115)]=_0x46ca74,this[_0x50f59c(0x155)]();}[_0x39e030(0x155)](){var _0xd8772c=_0x39e030;this[_0xd8772c(0x126)](this[_0xd8772c(0x115)][_0xd8772c(0x168)](_0x46132c[_0xd8772c(0x17a)][_0xd8772c(0x194)],()=>_0x46132c['connectInjector'](_0x4bb86f,this['_injector'])));}},_0x16fdd6[_0x39e030(0x19b)]=_0x1fe172([_0xd4aff0(0x0,_0x3ec069[_0x39e030(0x1b6)](_0x3ec069['Injector'])),_0xd4aff0(0x1,_0x46132c[_0x39e030(0xe4)])],_0x16fdd6[_0x39e030(0x19b)]);var _0x55c2d6=Object[_0x39e030(0x187)],_0x397c3c=Object[_0x39e030(0x14e)],_0x132dc3=(_0x5771a3,_0x5e2247,_0x1417bb)=>_0x5e2247 in _0x5771a3?_0x55c2d6(_0x5771a3,_0x5e2247,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1417bb}):_0x5771a3[_0x5e2247]=_0x1417bb,_0x115615=(_0x58aee4,_0x8f47d,_0x375606,_0x4adc9c)=>{var _0x47b6d6=_0x39e030;for(var _0xe126ca=_0x4adc9c>0x1?void 0x0:_0x4adc9c?_0x397c3c(_0x8f47d,_0x375606):_0x8f47d,_0x385906=_0x58aee4[_0x47b6d6(0x124)]-0x1,_0x34ce32;_0x385906>=0x0;_0x385906--)(_0x34ce32=_0x58aee4[_0x385906])&&(_0xe126ca=_0x34ce32(_0xe126ca)||_0xe126ca);return _0xe126ca;},_0x593d5e=(_0x2421a4,_0x31a87e)=>(_0x306720,_0x4f8781)=>_0x31a87e(_0x306720,_0x4f8781,_0x2421a4),_0x26d263=(_0xf21611,_0x2927d7,_0x24addb)=>_0x132dc3(_0xf21611,typeof _0x2927d7!=_0x39e030(0x185)?_0x2927d7+'':_0x2927d7,_0x24addb);const _0x5238fe=_0x39e030(0x180);_0x16fdd6[_0x39e030(0xf4)]=class extends _0x3ec069['Plugin']{constructor(_0x477e9e=_0x34606a,_0x2521fb,_0x30d426){var _0x4f6d74=_0x39e030;super(),this[_0x4f6d74(0x1ce)]=_0x477e9e,this['_injector']=_0x2521fb,this[_0x4f6d74(0x13a)]=_0x30d426;const {..._0x4eb279}=_0x3ec069[_0x4f6d74(0x19f)]({},_0x34606a,this[_0x4f6d74(0x1ce)]);this[_0x4f6d74(0x13a)][_0x4f6d74(0x153)](_0x20c7a3,_0x4eb279);}['onStarting'](){var _0xa26c5d=_0x39e030;_0x3ec069[_0xa26c5d(0x1ac)](this[_0xa26c5d(0x11c)],_0x3ec069[_0xa26c5d(0x133)]([[_0x5ab4cc],[_0x16fdd6[_0xa26c5d(0xee)]],[_0x56b4f5],[_0x16fdd6[_0xa26c5d(0x19b)]]],this[_0xa26c5d(0x1ce)][_0xa26c5d(0x184)])),_0x3ec069['touchDependencies'](this['_injector'],[[_0x56b4f5]]);}[_0x39e030(0xec)](){var _0x1f25ca=_0x39e030;_0x3ec069[_0x1f25ca(0x172)](this['_injector'],[[_0x16fdd6['DesktopLiveShareController']]]);}},_0x26d263(_0x16fdd6[_0x39e030(0xf4)],_0x39e030(0x16c),_0x3ec069[_0x39e030(0x1ae)][_0x39e030(0xfc)]),_0x26d263(_0x16fdd6['UniverLiveSharePlugin'],'pluginName',_0x5238fe),_0x16fdd6[_0x39e030(0xf4)]=_0x115615([_0x3ec069['DependentOn'](_0x339129[_0x39e030(0x1bc)]),_0x593d5e(0x1,_0x3ec069['Inject'](_0x3ec069[_0x39e030(0x1aa)])),_0x593d5e(0x2,_0x3ec069[_0x39e030(0x154)])],_0x16fdd6[_0x39e030(0xf4)]),_0x16fdd6[_0x39e030(0xf5)]=_0x4bb86f,_0x16fdd6[_0x39e030(0x1ca)]=_0x5ab4cc,_0x16fdd6[_0x39e030(0x174)]=_0x2d61e1,Object[_0x39e030(0x187)](_0x16fdd6,Symbol['toStringTag'],{'value':'Module'});}));function _0x1785(){var _0x3abfbb=['setConfig','IConfigService','_mountLiveShare','find','send','IUniverInstanceService','event$','presenting','mutations','createInstance','8810888ikKrze','InsertSheetMutation','_handleTerminate','delete','LIVESHARE_NEW_HOST','parse','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','startFollowing','children','function','registerComponent','LIVESHARE_TERMINATE','url(#$1','getOwnPropertySymbols','type','Disposable','xlink:href','get','_fetchOperations','takeUntil','touchDependencies','_status$','LiveShareStatus','svg','stringify','amd','_collabSession','className','BuiltInUIPart','status$','NEW_CHANGESETS','substring','evenodd','default','UNIVER_LIVE_SHARE_PLUGIN','Start','values','assign','override','symbol','attrs','defineProperty','_stopFollowing','OFFLINE','_sharedOperations','SessionStatus','params','operators','extend','clsx','displayName','Start\x20following','RxDisposable','UNIVER_SHEET','HEADER_MENU','rxjs/operators','onCommandExecuted','SetZoomRatioOperation','_startFollowing','http://www.w3.org/2000/svg','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','DesktopLiveShareController','entries','defs','useDependency','merge','getValue','next','exports','currentColor','executeCommand','UniverDesign','shouldShareOperation','0\x200\x2017\x2017','UniverCore','BehaviorSubject','Injector','4WYgJwv','registerDependencies','forEach','UniverInstanceType','live-share.config','pipe','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','map','ICommandService','data','Inject','1819302GslWrI','requireSession','1em','path','init','UniverCollaborationClientPlugin','tag','_handleOnline','prototype','getTypeOfUnitDisposed$','Subject','_startLiveShareCoordinator','UniverUi','stopPresenting','clear','CollaborationSessionService','hasOwnProperty','_handleNewHost','string','LiveShareService','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','colorChannel1','idle','_config','complete','has','button','IUIPartsService','NOT_FOLLOWING','sessionStatus$','5383490SGECuC','react/jsx-runtime','LIVESHARE_OPERATION','current','_handleNewChangeSets','onRendered','add','LiveShareController','dispose','rxjs','tryStartPresenting','_entities','@univerjs-pro/collaboration-client','UniverLiveSharePlugin','LiveShare','call','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareCoordinator','_handleOffline','592758DnjFtE','UNIVER_UNKNOWN','getConfig','offline','jsx','_unitID','live-share-icon','Button','You\x27re\x20presenting\x20the\x20document','DisposableCollection','2048456qnSsPR','toDisposable','parseProtocolChangeset','fill','concat','UniverProCollaborationClient','throttleTime','getUnitId','You\x27are\x20offline.','jsxs','Stop\x20presenting','_liveShareService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','PRESENTING','CommandType','getMemberID','_uiPartsService','getLiveShareCoordinator','_beIdle','use','_commandDisposable','set','subscribe','_injector','CollaborationEvent','text','toString','_startPresenting','replace','dispose$','defIds','length','FOLLOWING','disposeWithMe','_init','registerInitialStateReporter','_univerInstanceService','34932NRHBzB','div','@univerjs/sheets','includes','unsubscribe','React','random','registerSharedOperation','@univerjs/design','mergeOverrideWithDependencies','createElement','useRef','_presenter','UniverSheets','getCurrentTypeOfUnit$','_commandService','_configService','UniverProCollaboration','following','univer-size-4','forwardRef','_stopPresenting','getInitialStates','Fragment','unitId','UniverProLiveShare','useEffect','not-following','_status','idSuffix','stopFollowing','presenter','propertyIsEnumerable','icon','SetWorksheetActiveOperation','object','getOwnPropertyDescriptor','_reporters','reverse','2021810WujEGA','asObservable'];_0x1785=function(){return _0x3abfbb;};return _0x1785();}
1
+ function _0x52e4(_0xd3282,_0x18c325){var _0x2e1288=_0x2e12();return _0x52e4=function(_0x52e4ed,_0xaa8682){_0x52e4ed=_0x52e4ed-0x1c8;var _0x2987d5=_0x2e1288[_0x52e4ed];return _0x2987d5;},_0x52e4(_0xd3282,_0x18c325);}(function(_0x3116f9,_0x18db1a){var _0x257a40=_0x52e4,_0x5ecff5=_0x3116f9();while(!![]){try{var _0x183d76=-parseInt(_0x257a40(0x1f5))/0x1+parseInt(_0x257a40(0x2a7))/0x2+-parseInt(_0x257a40(0x298))/0x3*(parseInt(_0x257a40(0x254))/0x4)+parseInt(_0x257a40(0x252))/0x5+parseInt(_0x257a40(0x2a3))/0x6+parseInt(_0x257a40(0x2ab))/0x7*(-parseInt(_0x257a40(0x22a))/0x8)+parseInt(_0x257a40(0x28a))/0x9*(parseInt(_0x257a40(0x228))/0xa);if(_0x183d76===_0x18db1a)break;else _0x5ecff5['push'](_0x5ecff5['shift']());}catch(_0x46d4e4){_0x5ecff5['push'](_0x5ecff5['shift']());}}}(_0x2e12,0xc4260),function(_0x43b465,_0x4c2675){var _0x13a8f9=_0x52e4;typeof exports==_0x13a8f9(0x237)&&typeof module<'u'?_0x4c2675(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define(['exports',_0x13a8f9(0x271),_0x13a8f9(0x27b),_0x13a8f9(0x22b),'@univerjs/sheets-ui',_0x13a8f9(0x1e9),'react/jsx-runtime','@univerjs/design',_0x13a8f9(0x253),'@univerjs-pro/collaboration',_0x13a8f9(0x1ce),_0x13a8f9(0x212)],_0x4c2675):(_0x43b465=typeof globalThis<'u'?globalThis:_0x43b465||self,_0x4c2675(_0x43b465['UniverProLiveShare']={},_0x43b465[_0x13a8f9(0x264)],_0x43b465['UniverCore'],_0x43b465[_0x13a8f9(0x25c)],_0x43b465[_0x13a8f9(0x20c)],_0x43b465['UniverUi'],_0x43b465['React'],_0x43b465[_0x13a8f9(0x216)],_0x43b465[_0x13a8f9(0x231)],_0x43b465[_0x13a8f9(0x260)],_0x43b465['rxjs'],_0x43b465['rxjs']['operators']));}(this,function(_0x547bb5,_0x506f7b,_0x4dad31,_0x798ad0,_0x57af2b,_0x105b77,_0xa5e721,_0x1c5db9,_0x4bc429,_0x482ae5,_0x434337,_0x24a03a){'use strict';var _0x966c01=_0x52e4;var _0x31f81c=Object[_0x966c01(0x21f)],_0x4f5590=(_0x763bbd,_0xc30075,_0x31fcfd)=>_0xc30075 in _0x763bbd?_0x31f81c(_0x763bbd,_0xc30075,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31fcfd}):_0x763bbd[_0xc30075]=_0x31fcfd,_0x16c96a=(_0x2910ae,_0x315d97,_0x5e22a4)=>_0x4f5590(_0x2910ae,typeof _0x315d97!=_0x966c01(0x229)?_0x315d97+'':_0x315d97,_0x5e22a4);const _0x6eb847=_0x966c01(0x2b7),_0x419165={};class _0x55cbb2 extends _0x4dad31[_0x966c01(0x249)]{constructor(){var _0x235e0d=_0x966c01;super(...arguments),_0x16c96a(this,_0x235e0d(0x244),new Set()),_0x16c96a(this,'_reporters',new Set());}[_0x966c01(0x1d4)](_0x57d923){var _0x181a1d=_0x966c01;return this[_0x181a1d(0x244)]['add'](_0x57d923),_0x4dad31[_0x181a1d(0x203)](()=>this[_0x181a1d(0x244)]['delete'](_0x57d923));}[_0x966c01(0x1ec)](_0x292856){var _0x2d134e=_0x966c01;return this[_0x2d134e(0x1fd)][_0x2d134e(0x234)](_0x292856),_0x4dad31[_0x2d134e(0x203)](()=>this[_0x2d134e(0x1fd)][_0x2d134e(0x1ca)](_0x292856));}[_0x966c01(0x1ea)](_0x104c26){var _0x5e9a54=_0x966c01;return this[_0x5e9a54(0x244)][_0x5e9a54(0x2ac)](_0x104c26);}[_0x966c01(0x258)](_0x40a4af){var _0x5eb0fa=_0x966c01;return Array[_0x5eb0fa(0x27a)](this[_0x5eb0fa(0x1fd)])[_0x5eb0fa(0x251)](_0x3f52cd=>_0x3f52cd(_0x40a4af));}}var _0x5f4030=Object[_0x966c01(0x2b5)],_0x4fe5ec=(_0x228ef6,_0x5ae05b,_0x3a1ba9,_0x562123)=>{var _0x28d0ac=_0x966c01;for(var _0x204233=_0x562123>0x1?void 0x0:_0x562123?_0x5f4030(_0x5ae05b,_0x3a1ba9):_0x5ae05b,_0x3b8505=_0x228ef6[_0x28d0ac(0x1f6)]-0x1,_0x936d42;_0x3b8505>=0x0;_0x3b8505--)(_0x936d42=_0x228ef6[_0x3b8505])&&(_0x204233=_0x936d42(_0x204233)||_0x204233);return _0x204233;},_0x444126=(_0x37dd40,_0x3dd1ed)=>(_0xb1412c,_0xffa195)=>_0x3dd1ed(_0xb1412c,_0xffa195,_0x37dd40);let _0x39d610=class extends _0x4dad31[_0x966c01(0x249)]{constructor(_0x2954ea){var _0x595eea=_0x966c01;super(),this['_liveShareService']=_0x2954ea,this[_0x595eea(0x263)]();}[_0x966c01(0x263)](){var _0x581cc9=_0x966c01;[_0x57af2b[_0x581cc9(0x1e3)]['id'],_0x57af2b[_0x581cc9(0x210)]['id'],_0x798ad0[_0x581cc9(0x287)]['id']][_0x581cc9(0x28b)](_0x34a63f=>{var _0x549e61=_0x581cc9;this[_0x549e61(0x1db)](this[_0x549e61(0x223)][_0x549e61(0x1d4)](_0x34a63f));});}};_0x39d610=_0x4fe5ec([_0x444126(0x0,_0x4dad31['Inject'](_0x55cbb2))],_0x39d610);var _0x53a31d=function(){var _0x309d85=_0x966c01;return _0x53a31d=Object[_0x309d85(0x24e)]||function(_0x3cb256){var _0x5bab4e=_0x309d85;for(var _0x48f9fc,_0x4abb42=0x1,_0x113d58=arguments['length'];_0x4abb42<_0x113d58;_0x4abb42++){_0x48f9fc=arguments[_0x4abb42];for(var _0x1bce35 in _0x48f9fc)Object[_0x5bab4e(0x24a)][_0x5bab4e(0x266)]['call'](_0x48f9fc,_0x1bce35)&&(_0x3cb256[_0x1bce35]=_0x48f9fc[_0x1bce35]);}return _0x3cb256;},_0x53a31d[_0x309d85(0x23f)](this,arguments);},_0xf5665=function(_0x1ae370,_0x39a34c){var _0x1129e4=_0x966c01,_0x44cb90={};for(var _0x23d8d4 in _0x1ae370)Object['prototype'][_0x1129e4(0x266)]['call'](_0x1ae370,_0x23d8d4)&&_0x39a34c[_0x1129e4(0x245)](_0x23d8d4)<0x0&&(_0x44cb90[_0x23d8d4]=_0x1ae370[_0x23d8d4]);if(_0x1ae370!=null&&typeof Object['getOwnPropertySymbols']==_0x1129e4(0x21e)){for(var _0x5d280f=0x0,_0x23d8d4=Object[_0x1129e4(0x209)](_0x1ae370);_0x5d280f<_0x23d8d4[_0x1129e4(0x1f6)];_0x5d280f++)_0x39a34c['indexOf'](_0x23d8d4[_0x5d280f])<0x0&&Object[_0x1129e4(0x24a)][_0x1129e4(0x26d)]['call'](_0x1ae370,_0x23d8d4[_0x5d280f])&&(_0x44cb90[_0x23d8d4[_0x5d280f]]=_0x1ae370[_0x23d8d4[_0x5d280f]]);}return _0x44cb90;},_0x32a057=_0x4bc429['forwardRef'](function(_0x2c7c13,_0x4da4a5){var _0x1f57eb=_0x966c01,_0x82b6c1=_0x2c7c13[_0x1f57eb(0x20d)],_0x4a5667=_0x2c7c13['id'],_0x34869c=_0x2c7c13['className'],_0x42c998=_0x2c7c13[_0x1f57eb(0x1da)],_0x451729=_0xf5665(_0x2c7c13,[_0x1f57eb(0x20d),'id','className','extend']),_0x3ae49a=_0x1f57eb(0x25a)[_0x1f57eb(0x208)](_0x4a5667,'\x20')['concat'](_0x34869c||'')[_0x1f57eb(0x1e5)](),_0x5ddd7b=_0x4bc429[_0x1f57eb(0x1c8)]('_'[_0x1f57eb(0x208)](_0x36eada()));return _0x4afc1c(_0x82b6c1,''['concat'](_0x4a5667),{'defIds':_0x82b6c1[_0x1f57eb(0x1d9)],'idSuffix':_0x5ddd7b[_0x1f57eb(0x240)]},_0x53a31d({'ref':_0x4da4a5,'className':_0x3ae49a},_0x451729),_0x42c998);});function _0x4afc1c(_0x13f0ae,_0x41e319,_0x4e8771,_0x50e4d6,_0x18c4fe){var _0x4cf4d0=_0x966c01;return _0x4bc429[_0x4cf4d0(0x24d)](_0x13f0ae[_0x4cf4d0(0x2b2)],_0x53a31d(_0x53a31d({'key':_0x41e319},_0x4a544d(_0x13f0ae,_0x4e8771,_0x18c4fe)),_0x50e4d6),(_0x4f38ec(_0x13f0ae,_0x4e8771)[_0x4cf4d0(0x2a6)]||[])[_0x4cf4d0(0x251)](function(_0x1264a3,_0x381021){var _0xbacfd9=_0x4cf4d0;return _0x4afc1c(_0x1264a3,''[_0xbacfd9(0x208)](_0x41e319,'-')['concat'](_0x13f0ae['tag'],'-')['concat'](_0x381021),_0x4e8771,void 0x0,_0x18c4fe);}));}function _0x4a544d(_0x1d1f8e,_0x30e313,_0xba679c){var _0x4f832f=_0x966c01,_0x534517=_0x53a31d({},_0x1d1f8e[_0x4f832f(0x27e)]);_0xba679c!=null&&_0xba679c[_0x4f832f(0x27f)]&&_0x534517['fill']===_0x4f832f(0x27f)&&(_0x534517[_0x4f832f(0x288)]=_0xba679c[_0x4f832f(0x27f)]),_0x1d1f8e['tag']===_0x4f832f(0x2ae)&&_0x534517['id']&&(_0x534517['id']=_0x534517['id']+_0x30e313[_0x4f832f(0x221)]),Object[_0x4f832f(0x23d)](_0x534517)[_0x4f832f(0x28b)](function(_0x353bc1){var _0x4733ba=_0x4f832f,_0x153438=_0x353bc1[0x0],_0x5c2ecc=_0x353bc1[0x1];_0x153438===_0x4733ba(0x2ae)&&typeof _0x5c2ecc==_0x4733ba(0x255)&&(_0x534517[_0x153438]=_0x5c2ecc[_0x4733ba(0x1e0)](/url\(#(.*)\)/,_0x4733ba(0x233)[_0x4733ba(0x208)](_0x30e313[_0x4733ba(0x221)],')')));});var _0xe0fac9=_0x30e313[_0x4f832f(0x1d9)];return!_0xe0fac9||_0xe0fac9[_0x4f832f(0x1f6)]===0x0||(_0x1d1f8e[_0x4f832f(0x2b2)]==='use'&&_0x534517[_0x4f832f(0x294)]&&(_0x534517[_0x4f832f(0x294)]=_0x534517[_0x4f832f(0x294)]+_0x30e313[_0x4f832f(0x221)]),Object[_0x4f832f(0x23d)](_0x534517)[_0x4f832f(0x28b)](function(_0x296392){var _0x3bc09a=_0x4f832f,_0x3e61da=_0x296392[0x0],_0x3bc43a=_0x296392[0x1];typeof _0x3bc43a==_0x3bc09a(0x255)&&(_0x534517[_0x3e61da]=_0x3bc43a[_0x3bc09a(0x1e0)](/url\(#(.*)\)/,_0x3bc09a(0x233)['concat'](_0x30e313['idSuffix'],')')));})),_0x534517;}function _0x4f38ec(_0x2db69d,_0x4e889b){var _0xa148d9=_0x966c01,_0x3d8d23,_0x2c24f4=_0x4e889b[_0xa148d9(0x1d9)];return!_0x2c24f4||_0x2c24f4[_0xa148d9(0x1f6)]===0x0?_0x2db69d:_0x2db69d[_0xa148d9(0x2b2)]===_0xa148d9(0x26f)&&(!((_0x3d8d23=_0x2db69d[_0xa148d9(0x2a6)])===null||_0x3d8d23===void 0x0)&&_0x3d8d23[_0xa148d9(0x1f6)])?_0x53a31d(_0x53a31d({},_0x2db69d),{'children':_0x2db69d[_0xa148d9(0x2a6)][_0xa148d9(0x251)](function(_0x479650){var _0x1179ab=_0xa148d9;return typeof _0x479650[_0x1179ab(0x27e)]['id']=='string'&&_0x2c24f4&&_0x2c24f4[_0x1179ab(0x1d7)](_0x479650['attrs']['id'])?_0x53a31d(_0x53a31d({},_0x479650),{'attrs':_0x53a31d(_0x53a31d({},_0x479650[_0x1179ab(0x27e)]),{'id':_0x479650[_0x1179ab(0x27e)]['id']+_0x4e889b[_0x1179ab(0x221)]})}):_0x479650;})}):_0x2db69d;}function _0x36eada(){var _0x483f7f=_0x966c01;return Math[_0x483f7f(0x225)]()['toString'](0x24)[_0x483f7f(0x220)](0x2,0x8);}_0x32a057[_0x966c01(0x286)]=_0x966c01(0x1f1);var _0x2f463a={'tag':_0x966c01(0x23a),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x966c01(0x2a5),'viewBox':'0\x200\x2017\x2017','width':_0x966c01(0x204),'height':_0x966c01(0x204)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x966c01(0x1e4)}},{'tag':_0x966c01(0x227),'attrs':{'fill':_0x966c01(0x21b),'d':_0x966c01(0x22c),'fillRule':_0x966c01(0x268),'clipRule':_0x966c01(0x268)}}]},_0x44e246=_0x4bc429[_0x966c01(0x2a9)](function(_0x480b30,_0x12142a){var _0xbf9820=_0x966c01;return _0x4bc429[_0xbf9820(0x24d)](_0x32a057,Object[_0xbf9820(0x24e)]({},_0x480b30,{'id':'live-share-icon','ref':_0x12142a,'icon':_0x2f463a}));});_0x44e246[_0x966c01(0x286)]=_0x966c01(0x2a1);var _0x525125=Object['getOwnPropertyDescriptor'],_0x25c98f=(_0x4688fb,_0x2f406d,_0x5f31cd,_0x26b347)=>{for(var _0x1e024f=_0x26b347>0x1?void 0x0:_0x26b347?_0x525125(_0x2f406d,_0x5f31cd):_0x2f406d,_0x128833=_0x4688fb['length']-0x1,_0x1369fc;_0x128833>=0x0;_0x128833--)(_0x1369fc=_0x4688fb[_0x128833])&&(_0x1e024f=_0x1369fc(_0x1e024f)||_0x1e024f);return _0x1e024f;},_0x4ea020=(_0x2da831,_0x8a68b6)=>(_0x23439d,_0x1491f2)=>_0x8a68b6(_0x23439d,_0x1491f2,_0x2da831);_0x547bb5[_0x966c01(0x230)]=class extends _0x4dad31[_0x966c01(0x20e)]{constructor(_0x1d3a79,_0x14679b,_0x495f3b){var _0x342ebe=_0x966c01;super(),_0x16c96a(this,_0x342ebe(0x291),new Map()),(this[_0x342ebe(0x257)]=_0x1d3a79,this[_0x342ebe(0x1f9)]=_0x14679b,this[_0x342ebe(0x250)]=_0x495f3b,this[_0x342ebe(0x263)]());}async[_0x966c01(0x281)](_0x32b3c8){var _0x1ebd63=_0x966c01;return this[_0x1ebd63(0x291)][_0x1ebd63(0x2ac)](_0x32b3c8)||await this[_0x1ebd63(0x226)](_0x32b3c8),this[_0x1ebd63(0x291)][_0x1ebd63(0x1e8)](_0x32b3c8);}[_0x966c01(0x263)](){var _0x567375=_0x966c01;this['_univerInstanceService'][_0x567375(0x248)](_0x4dad31[_0x567375(0x23b)][_0x567375(0x270)])[_0x567375(0x21d)](_0x24a03a[_0x567375(0x267)](this[_0x567375(0x26a)]))[_0x567375(0x1de)](async _0x3ad18b=>{var _0x379b3a=_0x567375;const _0x1c9271=_0x3ad18b[_0x379b3a(0x2a0)]();this[_0x379b3a(0x291)][_0x379b3a(0x2ac)](_0x1c9271)||this[_0x379b3a(0x226)](_0x1c9271);}),this[_0x567375(0x257)][_0x567375(0x29f)](_0x4dad31['UniverInstanceType'][_0x567375(0x270)])[_0x567375(0x21d)](_0x24a03a[_0x567375(0x267)](this[_0x567375(0x26a)]))['subscribe'](_0x4d5361=>{var _0x40e465=_0x567375;const _0x5f2dfd=_0x4d5361['getUnitId'](),_0x44332a=this[_0x40e465(0x291)][_0x40e465(0x1e8)](_0x5f2dfd);_0x44332a==null||_0x44332a[_0x40e465(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x517a4b){var _0x163317=_0x966c01;const _0x3d688d=await this['_collabSessionService'][_0x163317(0x219)](_0x517a4b),_0x35c9ea=this[_0x163317(0x1f9)][_0x163317(0x280)](_0x547bb5['LiveShareCoordinator'],_0x517a4b,_0x3d688d);return _0x35c9ea[_0x163317(0x272)](),this[_0x163317(0x291)][_0x163317(0x20b)](_0x517a4b,_0x35c9ea),_0x35c9ea;}},_0x547bb5[_0x966c01(0x230)]=_0x25c98f([_0x4ea020(0x0,_0x4dad31['IUniverInstanceService']),_0x4ea020(0x1,_0x4dad31[_0x966c01(0x284)](_0x4dad31[_0x966c01(0x1f2)])),_0x4ea020(0x2,_0x4dad31[_0x966c01(0x284)](_0x506f7b[_0x966c01(0x21c)]))],_0x547bb5[_0x966c01(0x230)]);var _0x1da671=(_0x6b3d16=>(_0x6b3d16[_0x966c01(0x1d8)]='offline',_0x6b3d16[_0x966c01(0x261)]=_0x966c01(0x206),_0x6b3d16['FOLLOWING']='following',_0x6b3d16['NOT_FOLLOWING']=_0x966c01(0x29e),_0x6b3d16[_0x966c01(0x282)]=_0x966c01(0x20a),_0x6b3d16))(_0x1da671||{});const _0x28e023=_0x966c01(0x292),_0x4639e9=0xc8;_0x547bb5[_0x966c01(0x283)]=class extends _0x4dad31['RxDisposable']{constructor(_0x38a77d,_0x5a50a1,_0x2f9aa7,_0x4d3557,_0x33d320){var _0x463ea7=_0x966c01;super(),_0x16c96a(this,_0x463ea7(0x1f4),new _0x434337[(_0x463ea7(0x25f))](_0x463ea7(0x206))),_0x16c96a(this,_0x463ea7(0x273),this['_status$']['asObservable']()),_0x16c96a(this,'_init',!0x1),_0x16c96a(this,'_commandDisposable',null),_0x16c96a(this,_0x463ea7(0x2b1),null),(this[_0x463ea7(0x25e)]=_0x38a77d,this[_0x463ea7(0x241)]=_0x5a50a1,this[_0x463ea7(0x28d)]=_0x2f9aa7,this[_0x463ea7(0x223)]=_0x4d3557,this[_0x463ea7(0x27d)]=_0x33d320);}get[_0x966c01(0x23e)](){var _0x2e8a9f=_0x966c01;return this[_0x2e8a9f(0x1f4)]['getValue']();}[_0x966c01(0x1f3)](){var _0x405bd7=_0x966c01,_0x18b301;(_0x18b301=this[_0x405bd7(0x24f)])==null||_0x18b301[_0x405bd7(0x1f3)](),this[_0x405bd7(0x1f4)][_0x405bd7(0x1d0)](_0x405bd7(0x206)),this[_0x405bd7(0x1f4)]['complete']();}[_0x966c01(0x272)](){var _0x25f0c9=_0x966c01;this[_0x25f0c9(0x263)]||(this[_0x25f0c9(0x263)]=!0x0,this[_0x25f0c9(0x241)][_0x25f0c9(0x243)][_0x25f0c9(0x21d)](_0x24a03a['takeUntil'](this[_0x25f0c9(0x26a)]))[_0x25f0c9(0x1de)](_0x3a638b=>{var _0x3e75c3=_0x25f0c9;switch(_0x3a638b){case _0x506f7b[_0x3e75c3(0x1e2)]['OFFLINE']:this[_0x3e75c3(0x247)]();break;case _0x506f7b['SessionStatus']['ONLINE']:this[_0x3e75c3(0x1df)]();break;}}),this[_0x25f0c9(0x241)]['event$'][_0x25f0c9(0x21d)](_0x24a03a['takeUntil'](this[_0x25f0c9(0x26a)]))[_0x25f0c9(0x1de)](_0x5eeef2=>{var _0x9a5d02=_0x25f0c9;const {eventID:_0x25e01d}=_0x5eeef2;switch(_0x25e01d){case _0x482ae5[_0x9a5d02(0x28e)][_0x9a5d02(0x201)]:this[_0x9a5d02(0x2b6)](_0x5eeef2);break;case _0x482ae5['CollaborationEvent'][_0x9a5d02(0x2af)]:this[_0x9a5d02(0x1e1)](_0x5eeef2);break;case _0x482ae5[_0x9a5d02(0x28e)]['LIVESHARE_TERMINATE']:this[_0x9a5d02(0x1f7)]();break;case _0x482ae5['CollaborationEvent'][_0x9a5d02(0x213)]:this[_0x9a5d02(0x2bd)](_0x5eeef2);break;}}));}[_0x966c01(0x297)](){var _0x3c012a=_0x966c01;this[_0x3c012a(0x241)][_0x3c012a(0x2b0)]({'eventID':_0x482ae5['CollaborationEvent'][_0x3c012a(0x29b)],'data':{'unitID':this[_0x3c012a(0x25e)],'userID':this[_0x3c012a(0x241)]['getMemberID']()}},this[_0x3c012a(0x25e)]);}[_0x966c01(0x290)](){var _0x4d9440=_0x966c01;this[_0x4d9440(0x23e)]===_0x4d9440(0x20a)&&(this[_0x4d9440(0x1f4)]['next'](_0x4d9440(0x206)),this['_collabSession'][_0x4d9440(0x2b0)]({'eventID':_0x482ae5[_0x4d9440(0x28e)][_0x4d9440(0x2b4)],'data':{'unitID':this[_0x4d9440(0x25e)]}},this[_0x4d9440(0x25e)]));}['startFollowing'](){var _0x4e4dc0=_0x966c01;this['_status']===_0x4e4dc0(0x29e)&&(this['_status$'][_0x4e4dc0(0x1d0)](_0x4e4dc0(0x1ef)),this['_startFollowing']());}['stopFollowing'](){var _0x5bb3fa=_0x966c01;this[_0x5bb3fa(0x23e)]===_0x5bb3fa(0x1ef)&&this[_0x5bb3fa(0x1ed)]();}[_0x966c01(0x2b6)](_0x440373){var _0x333859=_0x966c01;const {presenter:_0x2ab45c}=_0x440373[_0x333859(0x1d6)],_0x55f495=this[_0x333859(0x241)][_0x333859(0x262)]();this[_0x333859(0x2b1)]=_0x2ab45c,_0x2ab45c===_0x55f495?(this[_0x333859(0x1ed)](),this[_0x333859(0x269)]()):this[_0x333859(0x23e)]!==_0x333859(0x29e)&&(this['_stopPresenting'](),this[_0x333859(0x2bc)]());}[_0x966c01(0x235)](){var _0x293e56=_0x966c01;const _0x4285b1={'eventID':_0x482ae5[_0x293e56(0x28e)][_0x293e56(0x242)]};this['_collabSession']['send'](_0x4285b1,this[_0x293e56(0x25e)]);}[_0x966c01(0x1f7)](){var _0x22a477=_0x966c01;this['_presenter']=null,this[_0x22a477(0x23e)]!=='presenting'&&this[_0x22a477(0x1d1)]();}[_0x966c01(0x2bd)](_0x5d1ceb){var _0x3076a1=_0x966c01;if(this[_0x3076a1(0x23e)]==='following'&&this[_0x3076a1(0x2b1)]===_0x5d1ceb['data'][_0x3076a1(0x239)]){const _0x1ce5bd=_0x482ae5[_0x3076a1(0x1f0)](_0x5d1ceb[_0x3076a1(0x1d6)])[_0x3076a1(0x2b8)][_0x3076a1(0x25d)]()['find'](_0x4b7518=>_0x4b7518['id']===_0x798ad0[_0x3076a1(0x28c)]['id']);if(_0x1ce5bd){const _0x4cd78e=_0x1ce5bd['params'][_0x3076a1(0x1dc)],_0x5d33e9=_0x1ce5bd[_0x3076a1(0x2ba)][_0x3076a1(0x29c)]['id'];setTimeout(()=>{var _0x22be45=_0x3076a1;this[_0x22be45(0x27d)][_0x22be45(0x22f)](_0x798ad0[_0x22be45(0x287)]['id'],{'unitId':_0x4cd78e,'subUnitId':_0x5d33e9},{'fromCollab':!0x0});});}}}[_0x966c01(0x269)](){var _0x27eacf=_0x966c01;this[_0x27eacf(0x1f4)][_0x27eacf(0x1d0)](_0x27eacf(0x20a));const _0x57d8d2=new Map(),_0x249b61=this['_commandDisposable']=new _0x4dad31[(_0x27eacf(0x2b9))]();_0x249b61['add'](_0x4dad31[_0x27eacf(0x203)](()=>{var _0x28316d=_0x27eacf;_0x57d8d2[_0x28316d(0x28b)](_0x3ff9af=>_0x3ff9af['complete']()),_0x57d8d2[_0x28316d(0x1cd)]();})),_0x249b61[_0x27eacf(0x234)](this[_0x27eacf(0x27d)][_0x27eacf(0x285)](_0x2131ec=>{var _0x45786d=_0x27eacf,_0x1d4af1;if(_0x2131ec['type']!==_0x4dad31[_0x45786d(0x1d5)][_0x45786d(0x299)]||!this[_0x45786d(0x223)]['shouldShareOperation'](_0x2131ec['id']))return;const {id:_0x39f72e}=_0x2131ec;let _0x5a858d;_0x57d8d2['has'](_0x39f72e)?_0x5a858d=_0x57d8d2[_0x45786d(0x1e8)](_0x39f72e):(_0x5a858d=new _0x434337[(_0x45786d(0x1d2))](),_0x57d8d2[_0x45786d(0x20b)](_0x39f72e,_0x5a858d),_0x5a858d['pipe'](_0x24a03a[_0x45786d(0x1c9)]((_0x1d4af1=this['_configService'][_0x45786d(0x274)](_0x28e023))!=null?_0x1d4af1:_0x4639e9,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x45786d(0x1de)](_0x90f253=>{var _0x389590=_0x45786d;this[_0x389590(0x241)][_0x389590(0x2b0)]({'eventID':_0x482ae5[_0x389590(0x28e)][_0x389590(0x2af)],'data':{'unitID':this['_unitID'],'operations':{[_0x90f253['id']]:{'id':_0x90f253['id'],'params':JSON[_0x389590(0x28f)](_0x90f253[_0x389590(0x2ba)])}}}},this['_unitID']);})),_0x5a858d[_0x45786d(0x1d0)](_0x2131ec);})),this['_liveShareService']['getInitialStates'](this[_0x27eacf(0x25e)])[_0x27eacf(0x28b)](_0x7d1dff=>this[_0x27eacf(0x241)][_0x27eacf(0x2b0)]({'eventID':_0x482ae5['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x27eacf(0x25e)],'operations':{[_0x7d1dff['id']]:{'id':_0x7d1dff['id'],'params':JSON[_0x27eacf(0x28f)](_0x7d1dff['params'])}}}},this['_unitID']));}[_0x966c01(0x1cf)](){var _0x2da247=_0x966c01,_0x41f046;this[_0x2da247(0x1f4)][_0x2da247(0x1d0)](_0x2da247(0x206)),(_0x41f046=this[_0x2da247(0x24f)])==null||_0x41f046[_0x2da247(0x1f3)](),this[_0x2da247(0x24f)]=null;}[_0x966c01(0x2bc)](){var _0x3ee2ac=_0x966c01,_0x40b1df;(_0x40b1df=this[_0x3ee2ac(0x24f)])==null||_0x40b1df['dispose'](),this[_0x3ee2ac(0x1f4)][_0x3ee2ac(0x1d0)](_0x3ee2ac(0x1ef));}[_0x966c01(0x1d1)](){var _0x1d0eca=_0x966c01,_0x34d97e;this[_0x1d0eca(0x1f4)][_0x1d0eca(0x1d0)](_0x1d0eca(0x206)),(_0x34d97e=this[_0x1d0eca(0x24f)])==null||_0x34d97e[_0x1d0eca(0x1f3)](),this[_0x1d0eca(0x24f)]=null;}[_0x966c01(0x1ed)](){var _0x1e4a10=_0x966c01,_0x289726;this[_0x1e4a10(0x1f4)]['next'](_0x1e4a10(0x29e)),(_0x289726=this[_0x1e4a10(0x24f)])==null||_0x289726['dispose']();}[_0x966c01(0x1e1)](_0x457097){var _0x3b21bd=_0x966c01;if([_0x3b21bd(0x20a),_0x3b21bd(0x29e),_0x3b21bd(0x2a2)]['includes'](this[_0x3b21bd(0x23e)])||!_0x457097['data'][_0x3b21bd(0x26e)]||_0x457097[_0x3b21bd(0x1d6)]['presenter']===this[_0x3b21bd(0x241)][_0x3b21bd(0x262)]())return;this[_0x3b21bd(0x23e)]===_0x3b21bd(0x206)&&this[_0x3b21bd(0x2bc)]();const _0x2c1417=_0x457097[_0x3b21bd(0x1d6)][_0x3b21bd(0x222)];Object[_0x3b21bd(0x1e7)](_0x2c1417)[_0x3b21bd(0x28b)](_0x26cd13=>{var _0x44c9ac=_0x3b21bd;this[_0x44c9ac(0x27d)]['executeCommand'](_0x26cd13['id'],_0x26cd13['params']?JSON[_0x44c9ac(0x27c)](_0x26cd13[_0x44c9ac(0x2ba)]):null,{'fromCollab':!0x0});});}[_0x966c01(0x247)](){var _0x4ca88d=_0x966c01,_0x3725c3;this[_0x4ca88d(0x1f4)][_0x4ca88d(0x1d0)](_0x4ca88d(0x2a2)),(_0x3725c3=this[_0x4ca88d(0x24f)])==null||_0x3725c3[_0x4ca88d(0x1f3)]();}[_0x966c01(0x1df)](){var _0x38b716=_0x966c01;this['_status$'][_0x38b716(0x1d0)]('idle'),this[_0x38b716(0x235)]();}},_0x547bb5['LiveShareCoordinator']=_0x25c98f([_0x4ea020(0x2,_0x4dad31[_0x966c01(0x214)]),_0x4ea020(0x3,_0x4dad31[_0x966c01(0x284)](_0x55cbb2)),_0x4ea020(0x4,_0x4dad31['ICommandService'])],_0x547bb5['LiveShareCoordinator']);function _0x15fc06(){var _0x44a477=_0x966c01;const _0x1a8078=_0x105b77[_0x44a477(0x232)](_0x547bb5[_0x44a477(0x230)]),_0x2b39fb=_0x105b77[_0x44a477(0x232)](_0x4dad31[_0x44a477(0x265)]),_0x191375=_0x105b77[_0x44a477(0x217)](()=>_0x2b39fb[_0x44a477(0x24b)](_0x4dad31['UniverInstanceType'][_0x44a477(0x270)]),void 0x0,!0x1,[]),[_0x192278,_0x2cb63e]=_0x4bc429[_0x44a477(0x1d3)](null),[_0x235641,_0x1aeae2]=_0x4bc429[_0x44a477(0x1d3)](_0x1da671[_0x44a477(0x261)]),_0x3b8b52=_0x4bc429['useRef'](null);return _0x4bc429[_0x44a477(0x26b)](()=>(_0x191375&&_0x1a8078['getLiveShareCoordinator'](_0x191375[_0x44a477(0x2a0)]())[_0x44a477(0x2b3)](_0x2f976b=>{var _0x4eff84=_0x44a477;_0x2cb63e(_0x2f976b),_0x3b8b52[_0x4eff84(0x240)]=_0x2f976b[_0x4eff84(0x273)][_0x4eff84(0x1de)](_0x45c664=>{_0x1aeae2(_0x45c664);});}),()=>{var _0x2a4024=_0x44a477,_0x18dbe5;(_0x18dbe5=_0x3b8b52[_0x2a4024(0x240)])==null||_0x18dbe5[_0x2a4024(0x1dd)](),_0x3b8b52[_0x2a4024(0x240)]=null;}),[_0x191375,_0x1a8078]),_0x192278?_0xa5e721[_0x44a477(0x1fa)](_0x1c5db9[_0x44a477(0x211)],{'align':_0x44a477(0x1fb),'disabled':_0x235641===_0x1da671[_0x44a477(0x1d8)],'className':_0x44a477(0x200),'overlay':_0xa5e721[_0x44a477(0x1fa)](_0x24327c,{'status':_0x235641,'coordinator':_0x192278}),'children':_0xa5e721[_0x44a477(0x1fa)]('button',{'className':_0x1c5db9['clsx'](_0x44a477(0x289),{'univer-cursor-not-allowed':_0x235641===_0x1da671[_0x44a477(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x235641!==_0x1da671[_0x44a477(0x1d8)]}),'type':_0x44a477(0x279),'children':_0xa5e721[_0x44a477(0x1fa)](_0x44e246,{'className':_0x44a477(0x296)})})}):null;}function _0x24327c(_0x4f5bde){var _0xd7fccd=_0x966c01;const {status:_0x4149b6,coordinator:_0x1d041a}=_0x4f5bde;switch(_0x4149b6){case _0x1da671[_0xd7fccd(0x261)]:return _0xa5e721[_0xd7fccd(0x1fa)](_0x4e1680,{'coordinator':_0x1d041a});case _0x1da671[_0xd7fccd(0x275)]:return _0xa5e721['jsx'](_0x44bcf0,{'coordinator':_0x1d041a});case _0x1da671[_0xd7fccd(0x2a8)]:return _0xa5e721[_0xd7fccd(0x1fa)](_0x47c78f,{'coordinator':_0x1d041a});case _0x1da671[_0xd7fccd(0x1d8)]:return _0xa5e721[_0xd7fccd(0x1fa)](_0x2898b9,{});case _0x1da671[_0xd7fccd(0x282)]:return _0xa5e721[_0xd7fccd(0x1fa)](_0x2afaef,{'coordinator':_0x1d041a});default:return null;}}function _0x4e1680(_0x5b75da){var _0x1af04d=_0x966c01;const {coordinator:_0x20c0f1}=_0x5b75da;return _0xa5e721['jsxs'](_0xa5e721[_0x1af04d(0x277)],{'children':[_0xa5e721[_0x1af04d(0x1fa)](_0x1af04d(0x259),{'className':_0x1af04d(0x215),'children':'Present\x20this\x20document'}),_0xa5e721[_0x1af04d(0x1fa)](_0x1c5db9[_0x1af04d(0x207)],{'onClick':()=>_0x20c0f1[_0x1af04d(0x297)](),'children':_0x1af04d(0x276)})]});}function _0x44bcf0(_0x48ef63){var _0x2c8f61=_0x966c01;const {coordinator:_0x48b16f}=_0x48ef63;return _0xa5e721[_0x2c8f61(0x23c)](_0xa5e721[_0x2c8f61(0x277)],{'children':[_0xa5e721['jsx'](_0x2c8f61(0x259),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2c8f61(0x236)}),_0xa5e721[_0x2c8f61(0x1fa)](_0x1c5db9['Button'],{'onClick':()=>_0x48b16f[_0x2c8f61(0x29d)](),'children':_0x2c8f61(0x2aa)})]});}function _0x47c78f(_0x3ca8ab){var _0x188a67=_0x966c01;const {coordinator:_0x174dab}=_0x3ca8ab;return _0xa5e721['jsxs'](_0xa5e721[_0x188a67(0x277)],{'children':[_0xa5e721['jsx'](_0x188a67(0x259),{'className':_0x188a67(0x215),'children':_0x188a67(0x20f)}),_0xa5e721[_0x188a67(0x1fa)](_0x1c5db9[_0x188a67(0x207)],{'variant':_0x188a67(0x29a),'onClick':()=>_0x174dab[_0x188a67(0x1eb)](),'children':_0x188a67(0x1fe)})]});}function _0x2afaef(_0x36324e){var _0x3cdc52=_0x966c01;const {coordinator:_0x4f4620}=_0x36324e;return _0xa5e721[_0x3cdc52(0x23c)](_0xa5e721['Fragment'],{'children':[_0xa5e721['jsx']('div',{'className':_0x3cdc52(0x215),'children':_0x3cdc52(0x1ff)}),_0xa5e721['jsx'](_0x1c5db9[_0x3cdc52(0x207)],{'variant':_0x3cdc52(0x202),'onClick':()=>_0x4f4620[_0x3cdc52(0x290)](),'children':_0x3cdc52(0x238)})]});}function _0x2898b9(){var _0x321ed0=_0x966c01;return _0xa5e721['jsx'](_0xa5e721[_0x321ed0(0x277)],{'children':'You\x27are\x20offline.'});}var _0x1f147c=Object['getOwnPropertyDescriptor'],_0xc308b3=(_0x20a91c,_0x476acd,_0x2e56ce,_0x3bf440)=>{var _0x58163c=_0x966c01;for(var _0x3ddcce=_0x3bf440>0x1?void 0x0:_0x3bf440?_0x1f147c(_0x476acd,_0x2e56ce):_0x476acd,_0xac61=_0x20a91c[_0x58163c(0x1f6)]-0x1,_0x4146f3;_0xac61>=0x0;_0xac61--)(_0x4146f3=_0x20a91c[_0xac61])&&(_0x3ddcce=_0x4146f3(_0x3ddcce)||_0x3ddcce);return _0x3ddcce;},_0x28fe92=(_0x66beaf,_0x3630f1)=>(_0x78f8bc,_0x477086)=>_0x3630f1(_0x78f8bc,_0x477086,_0x66beaf);_0x547bb5[_0x966c01(0x24c)]=class extends _0x4dad31[_0x966c01(0x249)]{constructor(_0x59b4cd,_0x303500){var _0x3889fd=_0x966c01;super(),this[_0x3889fd(0x1f9)]=_0x59b4cd,this[_0x3889fd(0x1fc)]=_0x303500,this[_0x3889fd(0x22d)]();}[_0x966c01(0x22d)](){var _0x10cb65=_0x966c01;this[_0x10cb65(0x1db)](this[_0x10cb65(0x1fc)]['registerComponent'](_0x105b77[_0x10cb65(0x293)][_0x10cb65(0x224)],()=>_0x105b77[_0x10cb65(0x1e6)](_0x15fc06,this['_injector'])));}},_0x547bb5[_0x966c01(0x24c)]=_0xc308b3([_0x28fe92(0x0,_0x4dad31[_0x966c01(0x284)](_0x4dad31['Injector'])),_0x28fe92(0x1,_0x105b77['IUIPartsService'])],_0x547bb5[_0x966c01(0x24c)]);var _0x16880f=Object[_0x966c01(0x21f)],_0x984623=Object['getOwnPropertyDescriptor'],_0x25914f=(_0x4e40a1,_0xd35009,_0x4f410a)=>_0xd35009 in _0x4e40a1?_0x16880f(_0x4e40a1,_0xd35009,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f410a}):_0x4e40a1[_0xd35009]=_0x4f410a,_0x2c38be=(_0x7c01a,_0x5ef58d,_0x52b3a0,_0x5dcd87)=>{for(var _0x329c81=_0x5dcd87>0x1?void 0x0:_0x5dcd87?_0x984623(_0x5ef58d,_0x52b3a0):_0x5ef58d,_0x5d2772=_0x7c01a['length']-0x1,_0x1b9bb0;_0x5d2772>=0x0;_0x5d2772--)(_0x1b9bb0=_0x7c01a[_0x5d2772])&&(_0x329c81=_0x1b9bb0(_0x329c81)||_0x329c81);return _0x329c81;},_0x1abfa7=(_0x488eed,_0x105539)=>(_0x23986a,_0x4c5a99)=>_0x105539(_0x23986a,_0x4c5a99,_0x488eed),_0x1aea8d=(_0x30de80,_0x38fc48,_0x152da7)=>_0x25914f(_0x30de80,typeof _0x38fc48!=_0x966c01(0x229)?_0x38fc48+'':_0x38fc48,_0x152da7);const _0x49e288='UNIVER_LIVE_SHARE_PLUGIN';_0x547bb5[_0x966c01(0x1f8)]=class extends _0x4dad31[_0x966c01(0x295)]{constructor(_0x297497=_0x419165,_0x47c3de,_0x4fc0b5){var _0x6671e6=_0x966c01;super(),this[_0x6671e6(0x21a)]=_0x297497,this[_0x6671e6(0x1f9)]=_0x47c3de,this[_0x6671e6(0x28d)]=_0x4fc0b5;const {..._0x20a07e}=_0x4dad31[_0x6671e6(0x1cb)]({},_0x419165,this[_0x6671e6(0x21a)]);this['_configService'][_0x6671e6(0x25b)](_0x6eb847,_0x20a07e);}[_0x966c01(0x1ee)](){var _0x1aa28e=_0x966c01;_0x4dad31[_0x1aa28e(0x26c)](this[_0x1aa28e(0x1f9)],_0x4dad31[_0x1aa28e(0x2ad)]([[_0x55cbb2],[_0x547bb5[_0x1aa28e(0x230)]],[_0x39d610],[_0x547bb5[_0x1aa28e(0x24c)]]],this[_0x1aa28e(0x21a)]['override'])),_0x4dad31[_0x1aa28e(0x278)](this[_0x1aa28e(0x1f9)],[[_0x39d610]]);}['onRendered'](){var _0x2267b0=_0x966c01;_0x4dad31[_0x2267b0(0x278)](this[_0x2267b0(0x1f9)],[[_0x547bb5[_0x2267b0(0x24c)]]]);}},_0x1aea8d(_0x547bb5[_0x966c01(0x1f8)],_0x966c01(0x246),_0x4dad31['UniverInstanceType'][_0x966c01(0x1cc)]),_0x1aea8d(_0x547bb5[_0x966c01(0x1f8)],_0x966c01(0x256),_0x49e288),_0x547bb5['UniverLiveSharePlugin']=_0x2c38be([_0x4dad31[_0x966c01(0x2bb)](_0x506f7b['UniverCollaborationClientPlugin']),_0x1abfa7(0x1,_0x4dad31[_0x966c01(0x284)](_0x4dad31[_0x966c01(0x1f2)])),_0x1abfa7(0x2,_0x4dad31['IConfigService'])],_0x547bb5[_0x966c01(0x1f8)]),_0x547bb5[_0x966c01(0x218)]=_0x15fc06,_0x547bb5[_0x966c01(0x2a4)]=_0x55cbb2,_0x547bb5['LiveShareStatus']=_0x1da671,Object[_0x966c01(0x21f)](_0x547bb5,Symbol[_0x966c01(0x205)],{'value':_0x966c01(0x22e)});}));function _0x2e12(){var _0x2e1b9f=['_handleNewChangeSets','useRef','throttleTime','delete','merge','UNIVER_UNKNOWN','clear','rxjs','_stopPresenting','next','_beIdle','Subject','useState','registerSharedOperation','CommandType','data','includes','OFFLINE','defIds','extend','disposeWithMe','unitId','unsubscribe','subscribe','_handleOnline','replace','_handleOperation','SessionStatus','SetZoomRatioOperation','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','trim','connectInjector','values','get','@univerjs/ui','shouldShareOperation','startFollowing','registerInitialStateReporter','_stopFollowing','onStarting','following','parseProtocolChangeset','UniverIcon','Injector','dispose','_status$','1507372IIiuBc','length','_handleTerminate','UniverLiveSharePlugin','_injector','jsx','end','_uiPartsService','_reporters','Start\x20following','You\x27re\x20presenting\x20the\x20document','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','LIVESHARE_NEW_HOST','default','toDisposable','1em','toStringTag','idle','Button','concat','getOwnPropertySymbols','presenting','set','UniverSheetsUi','icon','RxDisposable','You\x27re\x20not\x20following\x20the\x20presenter','SetScrollOperation','Dropdown','rxjs/operators','NEW_CHANGESETS','IConfigService','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverDesign','useObservable','LiveShare','requireSession','_config','currentColor','CollaborationSessionService','pipe','function','defineProperty','substring','idSuffix','operations','_liveShareService','HEADER_MENU','random','_startLiveShareCoordinator','path','10ecLwJR','symbol','24aHuuXh','@univerjs/sheets','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','_mountLiveShare','Module','executeCommand','LiveShareController','React','useDependency','url(#$1','add','_fetchOperations','You\x27re\x20following\x20the\x20presenter','object','Stop\x20presenting','memberID','svg','UniverInstanceType','jsxs','entries','_status','apply','current','_collabSession','LIVESHARE_FETCH_OPERATIONS','sessionStatus$','_sharedOperations','indexOf','type','_handleOffline','getTypeOfUnitAdded$','Disposable','prototype','getCurrentTypeOfUnit$','DesktopLiveShareController','createElement','assign','_commandDisposable','_collabSessionService','map','7703985vkTYxx','react','809444OisCZk','string','pluginName','_univerInstanceService','getInitialStates','div','univerjs-icon\x20univerjs-icon-','setConfig','UniverSheets','reverse','_unitID','BehaviorSubject','UniverProCollaboration','IDLE','getMemberID','_init','UniverProCollaborationClient','IUniverInstanceService','hasOwnProperty','takeUntil','evenodd','_startPresenting','dispose$','useEffect','registerDependencies','propertyIsEnumerable','presenter','defs','UNIVER_SHEET','@univerjs-pro/collaboration-client','init','status$','getConfig','FOLLOWING','Start','Fragment','touchDependencies','button','from','@univerjs/core','parse','_commandService','attrs','colorChannel1','createInstance','getLiveShareCoordinator','PRESENTING','LiveShareCoordinator','Inject','onCommandExecuted','displayName','SetWorksheetActiveOperation','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','4980015wQrbSu','forEach','InsertSheetMutation','_configService','CollaborationEvent','stringify','stopPresenting','_entities','SAME_OPERATION_SHARE_INTERVAL','BuiltInUIPart','xlink:href','Plugin','univer-size-4','tryStartPresenting','12gmgyMK','OPERATION','text','LIVESHARE_REQUEST_HOST','sheet','stopFollowing','not-following','getTypeOfUnitDisposed$','getUnitId','LiveShareIcon','offline','5222736dEpEXd','LiveShareService','none','children','1749546IolYjP','NOT_FOLLOWING','forwardRef','Stop\x20following','1677949NTRqre','has','mergeOverrideWithDependencies','mask','LIVESHARE_OPERATION','send','_presenter','tag','then','LIVESHARE_TERMINATE','getOwnPropertyDescriptor','_handleNewHost','live-share.config','mutations','DisposableCollection','params','DependentOn','_startFollowing'];_0x2e12=function(){return _0x2e1b9f;};return _0x2e12();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.2-nightly.202507171607",
3
+ "version": "0.9.2-nightly.202507181608",
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.9.2-nightly.202507171607",
51
- "@univerjs-pro/collaboration-client": "0.9.2-nightly.202507171607",
52
- "@univerjs/design": "0.9.2-nightly.202507171607",
53
- "@univerjs/sheets": "0.9.2-nightly.202507171607",
54
- "@univerjs/core": "0.9.2-nightly.202507171607",
55
- "@univerjs/sheets-ui": "0.9.2-nightly.202507171607",
56
- "@univerjs/ui": "0.9.2-nightly.202507171607"
50
+ "@univerjs-pro/collaboration": "0.9.2-nightly.202507181608",
51
+ "@univerjs-pro/collaboration-client": "0.9.2-nightly.202507181608",
52
+ "@univerjs/design": "0.9.2-nightly.202507181608",
53
+ "@univerjs/core": "0.9.2-nightly.202507181608",
54
+ "@univerjs/sheets-ui": "0.9.2-nightly.202507181608",
55
+ "@univerjs/sheets": "0.9.2-nightly.202507181608",
56
+ "@univerjs/ui": "0.9.2-nightly.202507181608"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",