@univerjs-pro/live-share 0.8.0-nightly.202506091607 → 0.8.0-nightly.202506101607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x30436a=_0x209c;(function(_0x5bec24,_0x402ec5){var _0x34d8ea=_0x209c,_0x45b3e1=_0x5bec24();while(!![]){try{var _0x202455=-parseInt(_0x34d8ea(0x170))/0x1+parseInt(_0x34d8ea(0x142))/0x2*(parseInt(_0x34d8ea(0xf9))/0x3)+-parseInt(_0x34d8ea(0x110))/0x4*(parseInt(_0x34d8ea(0x102))/0x5)+-parseInt(_0x34d8ea(0x129))/0x6*(-parseInt(_0x34d8ea(0xf8))/0x7)+-parseInt(_0x34d8ea(0xe4))/0x8*(parseInt(_0x34d8ea(0x15f))/0x9)+-parseInt(_0x34d8ea(0x116))/0xa*(parseInt(_0x34d8ea(0x159))/0xb)+-parseInt(_0x34d8ea(0xd0))/0xc*(-parseInt(_0x34d8ea(0xc3))/0xd);if(_0x202455===_0x402ec5)break;else _0x45b3e1['push'](_0x45b3e1['shift']());}catch(_0x274524){_0x45b3e1['push'](_0x45b3e1['shift']());}}}(_0x80ec,0x99847));var U=Object[_0x30436a(0xe2)],F=(_0x2b3ca2,_0x301628,_0x2db90e)=>_0x301628 in _0x2b3ca2?U(_0x2b3ca2,_0x301628,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2db90e}):_0x2b3ca2[_0x301628]=_0x2db90e,v=(_0x41cf9c,_0xb22492,_0xcacbe2)=>F(_0x41cf9c,typeof _0xb22492!=_0x30436a(0x173)?_0xb22492+'':_0xb22492,_0xcacbe2);Object[_0x30436a(0xe2)](exports,Symbol['toStringTag'],{'value':_0x30436a(0xdd)});const m=require(_0x30436a(0x17a)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x30436a(0xdf)),p=require(_0x30436a(0x163)),l=require(_0x30436a(0xf4)),g=require('@univerjs/design'),f=require(_0x30436a(0xd6)),_=require(_0x30436a(0xcb)),D=require(_0x30436a(0x186)),b=require(_0x30436a(0x185)),$=_0x30436a(0xb6),x={};class O extends o['Disposable']{constructor(){var _0x5c4f61=_0x30436a;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x5c4f61(0x17e),new Set());}['registerSharedOperation'](_0x1b7d72){var _0xbf342=_0x30436a;return this[_0xbf342(0xcc)][_0xbf342(0x153)](_0x1b7d72),o[_0xbf342(0x123)](()=>this[_0xbf342(0xcc)][_0xbf342(0x113)](_0x1b7d72));}['registerInitialStateReporter'](_0x1807c5){var _0x1c018c=_0x30436a;return this[_0x1c018c(0x17e)]['add'](_0x1807c5),o['toDisposable'](()=>this[_0x1c018c(0x17e)]['delete'](_0x1807c5));}[_0x30436a(0x109)](_0x2d8837){var _0x22b652=_0x30436a;return this['_sharedOperations'][_0x22b652(0xde)](_0x2d8837);}['getInitialStates'](_0x132ab3){var _0x1a7713=_0x30436a;return Array[_0x1a7713(0x16b)](this[_0x1a7713(0x17e)])[_0x1a7713(0x137)](_0x1b5cfd=>_0x1b5cfd(_0x132ab3));}}var H=Object[_0x30436a(0x124)],V=(_0x342ca1,_0x2071c2,_0x5ea10a,_0x1aae48)=>{var _0x30d517=_0x30436a;for(var _0xa2a12a=_0x1aae48>0x1?void 0x0:_0x1aae48?H(_0x2071c2,_0x5ea10a):_0x2071c2,_0x4a7aa9=_0x342ca1[_0x30d517(0x17f)]-0x1,_0x378214;_0x4a7aa9>=0x0;_0x4a7aa9--)(_0x378214=_0x342ca1[_0x4a7aa9])&&(_0xa2a12a=_0x378214(_0xa2a12a)||_0xa2a12a);return _0xa2a12a;},k=(_0x8e5b08,_0x4c267f)=>(_0x16a031,_0x5c03c8)=>_0x4c267f(_0x16a031,_0x5c03c8,_0x8e5b08);let E=class extends o[_0x30436a(0x14e)]{constructor(_0x5ad0da){var _0x55445f=_0x30436a;super(),this[_0x55445f(0x145)]=_0x5ad0da,this[_0x55445f(0x15b)]();}[_0x30436a(0x15b)](){var _0x142a68=_0x30436a;[w[_0x142a68(0x12b)]['id'],w['SetScrollOperation']['id'],C[_0x142a68(0xe6)]['id']][_0x142a68(0x162)](_0x395893=>{var _0x245ae6=_0x142a68;this['disposeWithMe'](this['_liveShareService'][_0x245ae6(0xc0)](_0x395893));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x209c(_0x542bb8,_0x314347){var _0x80ec41=_0x80ec();return _0x209c=function(_0x209c22,_0x4c2584){_0x209c22=_0x209c22-0xaf;var _0x28824c=_0x80ec41[_0x209c22];return _0x28824c;},_0x209c(_0x542bb8,_0x314347);}var u=function(){var _0x3e551b=_0x30436a;return u=Object['assign']||function(_0x20aab2){var _0xb23847=_0x209c;for(var _0x35d1b7,_0x32d33d=0x1,_0x356019=arguments['length'];_0x32d33d<_0x356019;_0x32d33d++){_0x35d1b7=arguments[_0x32d33d];for(var _0x2dd274 in _0x35d1b7)Object['prototype'][_0xb23847(0xc7)][_0xb23847(0xb2)](_0x35d1b7,_0x2dd274)&&(_0x20aab2[_0x2dd274]=_0x35d1b7[_0x2dd274]);}return _0x20aab2;},u[_0x3e551b(0x193)](this,arguments);},M=function(_0x4c5bd7,_0x38c1c7){var _0x104425=_0x30436a,_0x13a05d={};for(var _0x110555 in _0x4c5bd7)Object[_0x104425(0x122)][_0x104425(0xc7)]['call'](_0x4c5bd7,_0x110555)&&_0x38c1c7['indexOf'](_0x110555)<0x0&&(_0x13a05d[_0x110555]=_0x4c5bd7[_0x110555]);if(_0x4c5bd7!=null&&typeof Object[_0x104425(0x195)]==_0x104425(0x158)){for(var _0xcf74c2=0x0,_0x110555=Object[_0x104425(0x195)](_0x4c5bd7);_0xcf74c2<_0x110555[_0x104425(0x17f)];_0xcf74c2++)_0x38c1c7['indexOf'](_0x110555[_0xcf74c2])<0x0&&Object[_0x104425(0x122)][_0x104425(0x144)][_0x104425(0xb2)](_0x4c5bd7,_0x110555[_0xcf74c2])&&(_0x13a05d[_0x110555[_0xcf74c2]]=_0x4c5bd7[_0x110555[_0xcf74c2]]);}return _0x13a05d;},j=f['forwardRef'](function(_0x1ae0d7,_0x343da4){var _0x2a73d7=_0x30436a,_0x34a10f=_0x1ae0d7[_0x2a73d7(0x178)],_0x54c2f2=_0x1ae0d7['id'],_0x167e07=_0x1ae0d7[_0x2a73d7(0xe7)],_0x36e343=_0x1ae0d7[_0x2a73d7(0x183)],_0x2e4dc3=M(_0x1ae0d7,[_0x2a73d7(0x178),'id',_0x2a73d7(0xe7),_0x2a73d7(0x183)]),_0x1436a9=_0x2a73d7(0xd3)['concat'](_0x54c2f2,'\x20')[_0x2a73d7(0x16e)](_0x167e07||'')[_0x2a73d7(0x10d)](),_0x3080c9=f['useRef']('_'[_0x2a73d7(0x16e)](G()));return y(_0x34a10f,''['concat'](_0x54c2f2),{'defIds':_0x34a10f[_0x2a73d7(0xb0)],'idSuffix':_0x3080c9[_0x2a73d7(0x12a)]},u({'ref':_0x343da4,'className':_0x1436a9},_0x2e4dc3),_0x36e343);});function y(_0x1f4f0f,_0x3ea235,_0x40583d,_0x4d40b6,_0x376897){var _0x24e95a=_0x30436a;return f['createElement'](_0x1f4f0f[_0x24e95a(0xc1)],u(u({'key':_0x3ea235},q(_0x1f4f0f,_0x40583d,_0x376897)),_0x4d40b6),(W(_0x1f4f0f,_0x40583d)[_0x24e95a(0xb5)]||[])[_0x24e95a(0x137)](function(_0x3d7446,_0x1b8f7f){var _0x576550=_0x24e95a;return y(_0x3d7446,''[_0x576550(0x16e)](_0x3ea235,'-')[_0x576550(0x16e)](_0x1f4f0f['tag'],'-')[_0x576550(0x16e)](_0x1b8f7f),_0x40583d,void 0x0,_0x376897);}));}function q(_0x32c30d,_0x1f6aa6,_0x2eb731){var _0x426f51=_0x30436a,_0x5c246f=u({},_0x32c30d[_0x426f51(0x175)]);_0x2eb731!=null&&_0x2eb731[_0x426f51(0x131)]&&_0x5c246f[_0x426f51(0xec)]===_0x426f51(0x131)&&(_0x5c246f[_0x426f51(0xec)]=_0x2eb731[_0x426f51(0x131)]),_0x32c30d[_0x426f51(0xc1)]==='mask'&&_0x5c246f['id']&&(_0x5c246f['id']=_0x5c246f['id']+_0x1f6aa6['idSuffix']),Object[_0x426f51(0x151)](_0x5c246f)[_0x426f51(0x162)](function(_0x5548df){var _0x25546c=_0x426f51,_0x240754=_0x5548df[0x0],_0x49bd09=_0x5548df[0x1];_0x240754==='mask'&&typeof _0x49bd09==_0x25546c(0xaf)&&(_0x5c246f[_0x240754]=_0x49bd09['replace'](/url\(#(.*)\)/,_0x25546c(0xfd)['concat'](_0x1f6aa6[_0x25546c(0xbc)],')')));});var _0x3d00ae=_0x1f6aa6['defIds'];return!_0x3d00ae||_0x3d00ae[_0x426f51(0x17f)]===0x0||(_0x32c30d[_0x426f51(0xc1)]==='use'&&_0x5c246f['xlink:href']&&(_0x5c246f[_0x426f51(0xbf)]=_0x5c246f[_0x426f51(0xbf)]+_0x1f6aa6[_0x426f51(0xbc)]),Object[_0x426f51(0x151)](_0x5c246f)['forEach'](function(_0x517eba){var _0x20acf0=_0x426f51,_0x479575=_0x517eba[0x0],_0x100761=_0x517eba[0x1];typeof _0x100761==_0x20acf0(0xaf)&&(_0x5c246f[_0x479575]=_0x100761[_0x20acf0(0x119)](/url\(#(.*)\)/,_0x20acf0(0xfd)[_0x20acf0(0x16e)](_0x1f6aa6[_0x20acf0(0xbc)],')')));})),_0x5c246f;}function W(_0x492665,_0x193c79){var _0x45596d=_0x30436a,_0x2cdef5,_0x48bda9=_0x193c79[_0x45596d(0xb0)];return!_0x48bda9||_0x48bda9[_0x45596d(0x17f)]===0x0?_0x492665:_0x492665[_0x45596d(0xc1)]===_0x45596d(0x171)&&(!((_0x2cdef5=_0x492665['children'])===null||_0x2cdef5===void 0x0)&&_0x2cdef5['length'])?u(u({},_0x492665),{'children':_0x492665['children'][_0x45596d(0x137)](function(_0x22f745){var _0x55cb68=_0x45596d;return typeof _0x22f745[_0x55cb68(0x175)]['id']==_0x55cb68(0xaf)&&_0x48bda9&&_0x48bda9['includes'](_0x22f745['attrs']['id'])?u(u({},_0x22f745),{'attrs':u(u({},_0x22f745[_0x55cb68(0x175)]),{'id':_0x22f745[_0x55cb68(0x175)]['id']+_0x193c79[_0x55cb68(0xbc)]})}):_0x22f745;})}):_0x492665;}function G(){var _0x345a03=_0x30436a;return Math['random']()[_0x345a03(0x197)](0x24)[_0x345a03(0x157)](0x2,0x8);}j[_0x30436a(0xee)]='UniverIcon';function _0x80ec(){var _0x14f55a=['_entities','getUnitId','delete','Injector','onCommandExecuted','350bYyruY','getLiveShareCoordinator','IConfigService','replace','OPERATION','following','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','_handleTerminate','0\x200\x2017\x2017','NOT_FOLLOWING','status$','prototype','toDisposable','getOwnPropertyDescriptor','univer-w-full\x20univer-mb-3\x20univer-text-sm','clear','SessionStatus','LIVESHARE_REQUEST_HOST','2932086oBBtDm','current','SetZoomRatioOperation','jsx','pipe','onStarting','_stopFollowing','_univerInstanceService','colorChannel1','values','DesktopLiveShareController','init','_configService','LIVESHARE_FETCH_OPERATIONS','map','memberID','PRESENTING','Plugin','LIVESHARE_OPERATION','_commandDisposable','params','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','tryStartPresenting','throttleTime','8MgHXuo','http://www.w3.org/2000/svg','propertyIsEnumerable','_liveShareService','LIVESHARE_NEW_HOST','Present\x20this\x20document','send','_mountLiveShare','_startPresenting','mutations','set','end','Disposable','button','BuiltInUIPart','entries','getConfig','add','_handleOnline','RxDisposable','requireSession','substring','function','134167FHfIlh','DependentOn','_init','default','currentColor','UniverInstanceType','29583wDrkCO','Stop\x20presenting','_injector','forEach','@univerjs/ui','live-share-icon','getCurrentTypeOfUnit$','_handleOffline','Inject','presenting','_startLiveShareCoordinator','CollaborationSessionService','from','next','LiveShare','concat','_stopPresenting','591930mCEvRj','defs','asObservable','symbol','SAME_OPERATION_SHARE_INTERVAL','attrs','takeUntil','_startFollowing','icon','_status','@univerjs-pro/collaboration-client','IDLE','find','get','_reporters','length','BehaviorSubject','LiveShareCoordinator','offline','extend','getMemberID','rxjs/operators','rxjs','pluginName','getValue','Start','subscribe','event$','stopPresenting','getTypeOfUnitAdded$','UniverCollaborationClientPlugin','Dropdown','override','getTypeOfUnitDisposed$','presenter','apply','_uiPartsService','getOwnPropertySymbols','FOLLOWING','toString','string','defIds','operations','call','CommandType','univer-size-4','children','live-share.config','complete','disposeWithMe','_beIdle','svg','Fragment','idSuffix','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','xlink:href','registerSharedOperation','tag','_handleOperation','30856059PQXSXR','sheet','LIVESHARE_TERMINATE','executeCommand','hasOwnProperty','_config','LiveShareIcon','none','@univerjs-pro/collaboration','_sharedOperations','dispose','CollaborationEvent','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','12kKEAET','DisposableCollection','_handleNewHost','univerjs-icon\x20univerjs-icon-','useState','LiveShareController','react','div','_commandService','touchDependencies','jsxs','not-following','path','Module','has','@univerjs/sheets-ui','connectInjector','_presenter','defineProperty','_collabSession','2864PRudVz','UniverLiveSharePlugin','SetWorksheetActiveOperation','className','ICommandService','evenodd','ONLINE','dispose$','fill','createInstance','displayName','getInitialStates','_status$','registerDependencies','LiveShareStatus','forwardRef','react/jsx-runtime','setConfig','stopFollowing','Subject','7VwgZGJ','756816QBgCEs','Start\x20following','then','idle','url(#$1','useObservable','type','You\x27are\x20offline.','_handleNewChangeSets','105ESAaSg','data','assign','Button','NEW_CHANGESETS','stringify','mergeOverrideWithDependencies','shouldShareOperation','startFollowing','1em','unitId','trim','_unitID','unsubscribe','199416tBlYzB'];_0x80ec=function(){return _0x14f55a;};return _0x80ec();}var B={'tag':_0x30436a(0xba),'attrs':{'xmlns':_0x30436a(0x143),'fill':_0x30436a(0xca),'viewBox':_0x30436a(0x11f),'width':'1em','height':_0x30436a(0x10b)},'children':[{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'d':_0x30436a(0xcf)}},{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'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':_0x30436a(0xe9),'clipRule':_0x30436a(0xe9)}}]},P=f[_0x30436a(0xf3)](function(_0x33fc37,_0x5c6668){var _0x3b5769=_0x30436a;return f['createElement'](j,Object[_0x3b5769(0x104)]({},_0x33fc37,{'id':_0x3b5769(0x164),'ref':_0x5c6668,'icon':B}));});P[_0x30436a(0xee)]=_0x30436a(0xc9);var Y=Object[_0x30436a(0x124)],R=(_0xa35d07,_0x5d1d18,_0x59de0e,_0x54586a)=>{var _0x59ccbe=_0x30436a;for(var _0x147a32=_0x54586a>0x1?void 0x0:_0x54586a?Y(_0x5d1d18,_0x59de0e):_0x5d1d18,_0x363a00=_0xa35d07[_0x59ccbe(0x17f)]-0x1,_0x9b3272;_0x363a00>=0x0;_0x363a00--)(_0x9b3272=_0xa35d07[_0x363a00])&&(_0x147a32=_0x9b3272(_0x147a32)||_0x147a32);return _0x147a32;},S=(_0x5f32fd,_0xd12b3a)=>(_0x19381c,_0x566534)=>_0xd12b3a(_0x19381c,_0x566534,_0x5f32fd);exports[_0x30436a(0xd5)]=class extends o[_0x30436a(0x155)]{constructor(_0x5bc1fe,_0x288030,_0x5e9c3d){var _0x156d8d=_0x30436a;super(),v(this,'_entities',new Map()),(this[_0x156d8d(0x130)]=_0x5bc1fe,this['_injector']=_0x288030,this['_collabSessionService']=_0x5e9c3d,this[_0x156d8d(0x15b)]());}async[_0x30436a(0x117)](_0x24afc1){var _0x5762df=_0x30436a;return this[_0x5762df(0x111)][_0x5762df(0xde)](_0x24afc1)||await this['_startLiveShareCoordinator'](_0x24afc1),this[_0x5762df(0x111)][_0x5762df(0x17d)](_0x24afc1);}[_0x30436a(0x15b)](){var _0x305638=_0x30436a;this['_univerInstanceService'][_0x305638(0x18d)](o[_0x305638(0x15e)][_0x305638(0x11d)])[_0x305638(0x12d)](b[_0x305638(0x176)](this[_0x305638(0xeb)]))[_0x305638(0x18a)](async _0x4fb803=>{var _0xf13e77=_0x305638;const _0x1c766e=_0x4fb803['getUnitId']();this[_0xf13e77(0x111)]['has'](_0x1c766e)||this[_0xf13e77(0x169)](_0x1c766e);}),this[_0x305638(0x130)][_0x305638(0x191)](o[_0x305638(0x15e)]['UNIVER_SHEET'])[_0x305638(0x12d)](b['takeUntil'](this['dispose$']))[_0x305638(0x18a)](_0x23bfa5=>{var _0x46628f=_0x305638;const _0x1d66a6=_0x23bfa5[_0x46628f(0x112)](),_0x1103a2=this[_0x46628f(0x111)][_0x46628f(0x17d)](_0x1d66a6);_0x1103a2==null||_0x1103a2['dispose']();});}async['_startLiveShareCoordinator'](_0x894da9){var _0x3bbc16=_0x30436a;const _0x580b15=await this['_collabSessionService'][_0x3bbc16(0x156)](_0x894da9),_0xe96b27=this[_0x3bbc16(0x161)][_0x3bbc16(0xed)](exports[_0x3bbc16(0x181)],_0x894da9,_0x580b15);return _0xe96b27[_0x3bbc16(0x134)](),this[_0x3bbc16(0x111)]['set'](_0x894da9,_0xe96b27),_0xe96b27;}},exports[_0x30436a(0xd5)]=R([S(0x0,o[_0x30436a(0xbe)]),S(0x1,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),S(0x2,o[_0x30436a(0x167)](m[_0x30436a(0x16a)]))],exports[_0x30436a(0xd5)]);var h=(_0x3c2adf=>(_0x3c2adf['OFFLINE']='offline',_0x3c2adf[_0x30436a(0x17b)]=_0x30436a(0xfc),_0x3c2adf['FOLLOWING']=_0x30436a(0x11b),_0x3c2adf[_0x30436a(0x120)]='not-following',_0x3c2adf[_0x30436a(0x139)]=_0x30436a(0x168),_0x3c2adf))(h||{});const Z=_0x30436a(0x174),J=0xc8;exports[_0x30436a(0x181)]=class extends o[_0x30436a(0x155)]{constructor(_0x25115b,_0x254353,_0x5a12a8,_0x3af993,_0x187459){var _0x51bf9e=_0x30436a;super(),v(this,_0x51bf9e(0xf0),new D[(_0x51bf9e(0x180))](_0x51bf9e(0xfc))),v(this,'status$',this[_0x51bf9e(0xf0)][_0x51bf9e(0x172)]()),v(this,'_init',!0x1),v(this,_0x51bf9e(0x13c),null),v(this,'_presenter',null),(this[_0x51bf9e(0x10e)]=_0x25115b,this[_0x51bf9e(0xe3)]=_0x254353,this[_0x51bf9e(0x135)]=_0x5a12a8,this[_0x51bf9e(0x145)]=_0x3af993,this['_commandService']=_0x187459);}get[_0x30436a(0x179)](){var _0x5ca21d=_0x30436a;return this[_0x5ca21d(0xf0)][_0x5ca21d(0x188)]();}[_0x30436a(0xcd)](){var _0x33867c=_0x30436a,_0x2004a7;(_0x2004a7=this[_0x33867c(0x13c)])==null||_0x2004a7[_0x33867c(0xcd)](),this['_status$'][_0x33867c(0x16c)](_0x33867c(0xfc)),this[_0x33867c(0xf0)]['complete']();}[_0x30436a(0x134)](){var _0x10d7a6=_0x30436a;this[_0x10d7a6(0x15b)]||(this[_0x10d7a6(0x15b)]=!0x0,this[_0x10d7a6(0xe3)]['sessionStatus$'][_0x10d7a6(0x12d)](b[_0x10d7a6(0x176)](this[_0x10d7a6(0xeb)]))[_0x10d7a6(0x18a)](_0x11758e=>{var _0x5d92c7=_0x10d7a6;switch(_0x11758e){case m[_0x5d92c7(0x127)]['OFFLINE']:this['_handleOffline']();break;case m[_0x5d92c7(0x127)][_0x5d92c7(0xea)]:this['_handleOnline']();break;}}),this[_0x10d7a6(0xe3)][_0x10d7a6(0x18b)][_0x10d7a6(0x12d)](b['takeUntil'](this['dispose$']))[_0x10d7a6(0x18a)](_0x8c7fcf=>{var _0x4f1791=_0x10d7a6;const {eventID:_0x2e6e97}=_0x8c7fcf;switch(_0x2e6e97){case _[_0x4f1791(0xce)][_0x4f1791(0x146)]:this[_0x4f1791(0xd2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0x13b)]:this[_0x4f1791(0xc2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0xc5)]:this[_0x4f1791(0x11e)]();break;case _[_0x4f1791(0xce)][_0x4f1791(0x106)]:this[_0x4f1791(0x101)](_0x8c7fcf);break;}}));}[_0x30436a(0x140)](){var _0x1b9806=_0x30436a;this['_collabSession']['send']({'eventID':_[_0x1b9806(0xce)][_0x1b9806(0x128)],'data':{'unitID':this[_0x1b9806(0x10e)],'userID':this[_0x1b9806(0xe3)][_0x1b9806(0x184)]()}},this[_0x1b9806(0x10e)]);}[_0x30436a(0x18c)](){var _0x241d8c=_0x30436a;this[_0x241d8c(0x179)]===_0x241d8c(0x168)&&(this['_status$'][_0x241d8c(0x16c)]('idle'),this[_0x241d8c(0xe3)][_0x241d8c(0x148)]({'eventID':_[_0x241d8c(0xce)][_0x241d8c(0xc5)],'data':{'unitID':this[_0x241d8c(0x10e)]}},this[_0x241d8c(0x10e)]));}[_0x30436a(0x10a)](){var _0x4e92a9=_0x30436a;this[_0x4e92a9(0x179)]===_0x4e92a9(0xdb)&&(this[_0x4e92a9(0xf0)]['next'](_0x4e92a9(0x11b)),this[_0x4e92a9(0x177)]());}[_0x30436a(0xf6)](){var _0x30ffd0=_0x30436a;this[_0x30ffd0(0x179)]===_0x30ffd0(0x11b)&&this[_0x30ffd0(0x12f)]();}['_handleNewHost'](_0x10e992){var _0x3dc292=_0x30436a;const {presenter:_0x2ed22d}=_0x10e992['data'],_0x3e83c2=this[_0x3dc292(0xe3)][_0x3dc292(0x184)]();this['_presenter']=_0x2ed22d,_0x2ed22d===_0x3e83c2?(this[_0x3dc292(0x12f)](),this['_startPresenting']()):this[_0x3dc292(0x179)]!==_0x3dc292(0xdb)&&(this[_0x3dc292(0x16f)](),this['_startFollowing']());}['_fetchOperations'](){var _0xe036a7=_0x30436a;const _0x195f69={'eventID':_[_0xe036a7(0xce)][_0xe036a7(0x136)]};this[_0xe036a7(0xe3)]['send'](_0x195f69,this['_unitID']);}[_0x30436a(0x11e)](){var _0x2f88b6=_0x30436a;this[_0x2f88b6(0xe1)]=null,this[_0x2f88b6(0x179)]!=='presenting'&&this[_0x2f88b6(0xb9)]();}[_0x30436a(0x101)](_0x2f0d7c){var _0x582255=_0x30436a;if(this[_0x582255(0x179)]==='following'&&this['_presenter']===_0x2f0d7c[_0x582255(0x103)][_0x582255(0x138)]){const _0x2ff2cd=_['parseProtocolChangeset'](_0x2f0d7c[_0x582255(0x103)])[_0x582255(0x14b)]['reverse']()[_0x582255(0x17c)](_0x361089=>_0x361089['id']===C['InsertSheetMutation']['id']);if(_0x2ff2cd){const _0x2ed430=_0x2ff2cd['params'][_0x582255(0x10c)],_0x2a9a92=_0x2ff2cd['params'][_0x582255(0xc4)]['id'];setTimeout(()=>{var _0x1c94f8=_0x582255;this['_commandService'][_0x1c94f8(0xc6)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ed430,'subUnitId':_0x2a9a92},{'fromCollab':!0x0});});}}}[_0x30436a(0x14a)](){var _0x54c724=_0x30436a;this[_0x54c724(0xf0)][_0x54c724(0x16c)](_0x54c724(0x168));const _0x4e5a50=new Map(),_0x4ff8c5=this[_0x54c724(0x13c)]=new o[(_0x54c724(0xd1))]();_0x4ff8c5[_0x54c724(0x153)](o[_0x54c724(0x123)](()=>{var _0x5ec32a=_0x54c724;_0x4e5a50[_0x5ec32a(0x162)](_0x889803=>_0x889803[_0x5ec32a(0xb7)]()),_0x4e5a50[_0x5ec32a(0x126)]();})),_0x4ff8c5['add'](this[_0x54c724(0xd8)][_0x54c724(0x115)](_0xa3dd78=>{var _0x2396ad=_0x54c724,_0xb7fc84;if(_0xa3dd78[_0x2396ad(0xff)]!==o[_0x2396ad(0xb3)][_0x2396ad(0x11a)]||!this[_0x2396ad(0x145)]['shouldShareOperation'](_0xa3dd78['id']))return;const {id:_0x4715b0}=_0xa3dd78;let _0x39993d;_0x4e5a50[_0x2396ad(0xde)](_0x4715b0)?_0x39993d=_0x4e5a50[_0x2396ad(0x17d)](_0x4715b0):(_0x39993d=new D[(_0x2396ad(0xf7))](),_0x4e5a50[_0x2396ad(0x14c)](_0x4715b0,_0x39993d),_0x39993d['pipe'](b[_0x2396ad(0x141)]((_0xb7fc84=this[_0x2396ad(0x135)][_0x2396ad(0x152)](Z))!=null?_0xb7fc84:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5aacad=>{var _0x7c40cc=_0x2396ad;this[_0x7c40cc(0xe3)]['send']({'eventID':_['CollaborationEvent'][_0x7c40cc(0x13b)],'data':{'unitID':this[_0x7c40cc(0x10e)],'operations':{[_0x5aacad['id']]:{'id':_0x5aacad['id'],'params':JSON['stringify'](_0x5aacad[_0x7c40cc(0x13d)])}}}},this[_0x7c40cc(0x10e)]);})),_0x39993d['next'](_0xa3dd78);})),this['_liveShareService'][_0x54c724(0xef)](this[_0x54c724(0x10e)])[_0x54c724(0x162)](_0x3bf1e9=>this[_0x54c724(0xe3)][_0x54c724(0x148)]({'eventID':_[_0x54c724(0xce)][_0x54c724(0x13b)],'data':{'unitID':this[_0x54c724(0x10e)],'operations':{[_0x3bf1e9['id']]:{'id':_0x3bf1e9['id'],'params':JSON[_0x54c724(0x107)](_0x3bf1e9[_0x54c724(0x13d)])}}}},this[_0x54c724(0x10e)]));}[_0x30436a(0x16f)](){var _0x16bebb=_0x30436a,_0x435e89;this[_0x16bebb(0xf0)][_0x16bebb(0x16c)](_0x16bebb(0xfc)),(_0x435e89=this[_0x16bebb(0x13c)])==null||_0x435e89['dispose'](),this['_commandDisposable']=null;}[_0x30436a(0x177)](){var _0x4bbda6=_0x30436a,_0x343f45;(_0x343f45=this['_commandDisposable'])==null||_0x343f45[_0x4bbda6(0xcd)](),this[_0x4bbda6(0xf0)][_0x4bbda6(0x16c)](_0x4bbda6(0x11b));}[_0x30436a(0xb9)](){var _0x5434df=_0x30436a,_0x46c090;this[_0x5434df(0xf0)][_0x5434df(0x16c)](_0x5434df(0xfc)),(_0x46c090=this[_0x5434df(0x13c)])==null||_0x46c090[_0x5434df(0xcd)](),this[_0x5434df(0x13c)]=null;}[_0x30436a(0x12f)](){var _0x281e9d=_0x30436a,_0x4eefee;this[_0x281e9d(0xf0)][_0x281e9d(0x16c)]('not-following'),(_0x4eefee=this['_commandDisposable'])==null||_0x4eefee['dispose']();}[_0x30436a(0xc2)](_0x5a3433){var _0xe832ac=_0x30436a;if([_0xe832ac(0x168),_0xe832ac(0xdb),_0xe832ac(0x182)]['includes'](this[_0xe832ac(0x179)])||!_0x5a3433['data'][_0xe832ac(0x192)]||_0x5a3433[_0xe832ac(0x103)]['presenter']===this[_0xe832ac(0xe3)][_0xe832ac(0x184)]())return;this['_status']===_0xe832ac(0xfc)&&this['_startFollowing']();const _0x3c5a5d=_0x5a3433[_0xe832ac(0x103)][_0xe832ac(0xb1)];Object[_0xe832ac(0x132)](_0x3c5a5d)[_0xe832ac(0x162)](_0x95886c=>{var _0x563621=_0xe832ac;this['_commandService'][_0x563621(0xc6)](_0x95886c['id'],_0x95886c[_0x563621(0x13d)]?JSON['parse'](_0x95886c[_0x563621(0x13d)]):null,{'fromCollab':!0x0});});}[_0x30436a(0x166)](){var _0x2230af=_0x30436a,_0x42d8e2;this[_0x2230af(0xf0)]['next'](_0x2230af(0x182)),(_0x42d8e2=this[_0x2230af(0x13c)])==null||_0x42d8e2[_0x2230af(0xcd)]();}[_0x30436a(0x154)](){var _0x56f7f3=_0x30436a;this[_0x56f7f3(0xf0)][_0x56f7f3(0x16c)](_0x56f7f3(0xfc)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x30436a(0x118)]),S(0x3,o[_0x30436a(0x167)](O)),S(0x4,o[_0x30436a(0xe8)])],exports[_0x30436a(0x181)]);function A(){var _0x3021df=_0x30436a;const _0x349dac=p['useDependency'](exports['LiveShareController']),_0x45e9b5=p['useDependency'](o[_0x3021df(0xbe)]),_0x1e7dd6=p[_0x3021df(0xfe)](()=>_0x45e9b5[_0x3021df(0x165)](o[_0x3021df(0x15e)][_0x3021df(0x11d)]),void 0x0,!0x1,[]),[_0x3d4bfc,_0x3bf987]=f[_0x3021df(0xd4)](null),[_0x29796b,_0x39c2dd]=f[_0x3021df(0xd4)](h[_0x3021df(0x17b)]),_0x30f27f=f['useRef'](null);return f['useEffect'](()=>(_0x1e7dd6&&_0x349dac[_0x3021df(0x117)](_0x1e7dd6[_0x3021df(0x112)]())[_0x3021df(0xfb)](_0xb81932=>{var _0x53ca88=_0x3021df;_0x3bf987(_0xb81932),_0x30f27f[_0x53ca88(0x12a)]=_0xb81932[_0x53ca88(0x121)]['subscribe'](_0x252b4a=>{_0x39c2dd(_0x252b4a);});}),()=>{var _0x304cc0=_0x3021df,_0x2c556f;(_0x2c556f=_0x30f27f[_0x304cc0(0x12a)])==null||_0x2c556f[_0x304cc0(0x10f)](),_0x30f27f[_0x304cc0(0x12a)]=null;}),[_0x1e7dd6,_0x349dac]),_0x3d4bfc?l[_0x3021df(0x12c)](g[_0x3021df(0x18f)],{'align':_0x3021df(0x14d),'disabled':_0x29796b===h[_0x3021df(0x13f)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x3021df(0x12c)](K,{'status':_0x29796b,'coordinator':_0x3d4bfc}),'children':l[_0x3021df(0x12c)](_0x3021df(0x14f),{'className':g['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x29796b===h[_0x3021df(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x29796b!==h[_0x3021df(0x13f)]}),'type':_0x3021df(0x14f),'children':l[_0x3021df(0x12c)](P,{'className':_0x3021df(0xb4)})})}):null;}function K(_0x4a691c){var _0x5ef261=_0x30436a;const {status:_0x23068d,coordinator:_0x423cb9}=_0x4a691c;switch(_0x23068d){case h['IDLE']:return l[_0x5ef261(0x12c)](z,{'coordinator':_0x423cb9});case h[_0x5ef261(0x196)]:return l[_0x5ef261(0x12c)](Q,{'coordinator':_0x423cb9});case h[_0x5ef261(0x120)]:return l['jsx'](X,{'coordinator':_0x423cb9});case h[_0x5ef261(0x13f)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x5ef261(0x12c)](ee,{'coordinator':_0x423cb9});default:return null;}}function z(_0x8849f){var _0x1a5e7c=_0x30436a;const {coordinator:_0x5cc8b6}=_0x8849f;return l[_0x1a5e7c(0xda)](l[_0x1a5e7c(0xbb)],{'children':[l[_0x1a5e7c(0x12c)]('div',{'className':_0x1a5e7c(0x125),'children':_0x1a5e7c(0x147)}),l[_0x1a5e7c(0x12c)](g['Button'],{'onClick':()=>_0x5cc8b6[_0x1a5e7c(0x140)](),'children':_0x1a5e7c(0x189)})]});}function Q(_0x2d3186){var _0x35b5e4=_0x30436a;const {coordinator:_0x4ca398}=_0x2d3186;return l[_0x35b5e4(0xda)](l[_0x35b5e4(0xbb)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x35b5e4(0xbd)}),l['jsx'](g[_0x35b5e4(0x105)],{'onClick':()=>_0x4ca398[_0x35b5e4(0xf6)](),'children':'Stop\x20following'})]});}function X(_0x490ec7){var _0x124a48=_0x30436a;const {coordinator:_0x13ccc7}=_0x490ec7;return l[_0x124a48(0xda)](l['Fragment'],{'children':[l[_0x124a48(0x12c)]('div',{'className':_0x124a48(0x125),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x124a48(0x12c)](g['Button'],{'variant':'text','onClick':()=>_0x13ccc7[_0x124a48(0x10a)](),'children':_0x124a48(0xfa)})]});}function ee(_0x324339){var _0xa221a6=_0x30436a;const {coordinator:_0x30362e}=_0x324339;return l['jsxs'](l[_0xa221a6(0xbb)],{'children':[l[_0xa221a6(0x12c)](_0xa221a6(0xd7),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xa221a6(0x11c)}),l['jsx'](g[_0xa221a6(0x105)],{'variant':_0xa221a6(0x15c),'onClick':()=>_0x30362e['stopPresenting'](),'children':_0xa221a6(0x160)})]});}function te(){var _0x2e629f=_0x30436a;return l[_0x2e629f(0x12c)](l['Fragment'],{'children':_0x2e629f(0x100)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xce302f,_0x37babd,_0x4bd7cf,_0x4bd403)=>{var _0xf3daa0=_0x30436a;for(var _0x16a78b=_0x4bd403>0x1?void 0x0:_0x4bd403?ie(_0x37babd,_0x4bd7cf):_0x37babd,_0x21df62=_0xce302f[_0xf3daa0(0x17f)]-0x1,_0x5637c2;_0x21df62>=0x0;_0x21df62--)(_0x5637c2=_0xce302f[_0x21df62])&&(_0x16a78b=_0x5637c2(_0x16a78b)||_0x16a78b);return _0x16a78b;},L=(_0x449706,_0x2671be)=>(_0x3201f5,_0x5a8b20)=>_0x2671be(_0x3201f5,_0x5a8b20,_0x449706);exports['DesktopLiveShareController']=class extends o[_0x30436a(0x14e)]{constructor(_0x34d220,_0x5b0d58){var _0xe6497a=_0x30436a;super(),this['_injector']=_0x34d220,this[_0xe6497a(0x194)]=_0x5b0d58,this[_0xe6497a(0x149)]();}[_0x30436a(0x149)](){var _0x379daf=_0x30436a;this[_0x379daf(0xb8)](this[_0x379daf(0x194)]['registerComponent'](p[_0x379daf(0x150)]['HEADER_MENU'],()=>p[_0x379daf(0xe0)](A,this['_injector'])));}},exports[_0x30436a(0x133)]=ne([L(0x0,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x30436a(0xe2)],se=Object[_0x30436a(0x124)],oe=(_0x5f2912,_0x4916b2,_0x2c69a5)=>_0x4916b2 in _0x5f2912?re(_0x5f2912,_0x4916b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c69a5}):_0x5f2912[_0x4916b2]=_0x2c69a5,ae=(_0xa3fb06,_0x1fba7e,_0x53a7de,_0x9aa3f7)=>{var _0x3a1378=_0x30436a;for(var _0x23eeb5=_0x9aa3f7>0x1?void 0x0:_0x9aa3f7?se(_0x1fba7e,_0x53a7de):_0x1fba7e,_0x2dcc9a=_0xa3fb06[_0x3a1378(0x17f)]-0x1,_0x39f7cb;_0x2dcc9a>=0x0;_0x2dcc9a--)(_0x39f7cb=_0xa3fb06[_0x2dcc9a])&&(_0x23eeb5=_0x39f7cb(_0x23eeb5)||_0x23eeb5);return _0x23eeb5;},N=(_0x28206d,_0x4ccda9)=>(_0x41ec04,_0x4cddfa)=>_0x4ccda9(_0x41ec04,_0x4cddfa,_0x28206d),T=(_0x111fea,_0x52db6a,_0x17f3b1)=>oe(_0x111fea,typeof _0x52db6a!=_0x30436a(0x173)?_0x52db6a+'':_0x52db6a,_0x17f3b1);const le=_0x30436a(0x13e);exports[_0x30436a(0xe5)]=class extends o[_0x30436a(0x13a)]{constructor(_0x17615b=x,_0x270105,_0x1d008b){var _0x2af07a=_0x30436a;super(),this[_0x2af07a(0xc8)]=_0x17615b,this['_injector']=_0x270105,this['_configService']=_0x1d008b;const {..._0x5a163c}=o['merge']({},x,this['_config']);this['_configService'][_0x2af07a(0xf5)]($,_0x5a163c);}[_0x30436a(0x12e)](){var _0x5e5027=_0x30436a;o[_0x5e5027(0xf1)](this[_0x5e5027(0x161)],o[_0x5e5027(0x108)]([[O],[exports['LiveShareController']],[E],[exports[_0x5e5027(0x133)]]],this[_0x5e5027(0xc8)][_0x5e5027(0x190)])),o['touchDependencies'](this[_0x5e5027(0x161)],[[E]]);}['onRendered'](){var _0x481548=_0x30436a;o[_0x481548(0xd9)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x30436a(0xe5)],_0x30436a(0xff),o[_0x30436a(0x15e)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x30436a(0x187),le),exports['UniverLiveSharePlugin']=ae([o[_0x30436a(0x15a)](m[_0x30436a(0x18e)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x30436a(0xe5)]),exports[_0x30436a(0x16d)]=A,exports['LiveShareService']=O,exports[_0x30436a(0xf2)]=h;
|
|
1
|
+
'use strict';var _0x1c7aef=_0x5063;(function(_0x3a3028,_0x25af4b){var _0x3ff596=_0x5063,_0x26d193=_0x3a3028();while(!![]){try{var _0x507c3c=-parseInt(_0x3ff596(0x1d1))/0x1+parseInt(_0x3ff596(0x1f4))/0x2*(parseInt(_0x3ff596(0x169))/0x3)+parseInt(_0x3ff596(0x1ac))/0x4*(parseInt(_0x3ff596(0x164))/0x5)+parseInt(_0x3ff596(0x23d))/0x6+-parseInt(_0x3ff596(0x180))/0x7*(-parseInt(_0x3ff596(0x194))/0x8)+parseInt(_0x3ff596(0x1ce))/0x9+parseInt(_0x3ff596(0x18e))/0xa*(-parseInt(_0x3ff596(0x177))/0xb);if(_0x507c3c===_0x25af4b)break;else _0x26d193['push'](_0x26d193['shift']());}catch(_0x1b909f){_0x26d193['push'](_0x26d193['shift']());}}}(_0x346f,0xa7485));var U=Object['defineProperty'],F=(_0x2d3926,_0x207e6a,_0x585485)=>_0x207e6a in _0x2d3926?U(_0x2d3926,_0x207e6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x585485}):_0x2d3926[_0x207e6a]=_0x585485,v=(_0x29a6ee,_0x3a5a07,_0x3cd13c)=>F(_0x29a6ee,typeof _0x3a5a07!=_0x1c7aef(0x186)?_0x3a5a07+'':_0x3a5a07,_0x3cd13c);Object[_0x1c7aef(0x19d)](exports,Symbol[_0x1c7aef(0x191)],{'value':_0x1c7aef(0x1f3)});function _0x5063(_0x4a4a60,_0x5c70c4){var _0x346fec=_0x346f();return _0x5063=function(_0x506342,_0x5037e2){_0x506342=_0x506342-0x159;var _0xe5fb84=_0x346fec[_0x506342];return _0xe5fb84;},_0x5063(_0x4a4a60,_0x5c70c4);}const m=require('@univerjs-pro/collaboration-client'),o=require(_0x1c7aef(0x1de)),C=require(_0x1c7aef(0x161)),w=require(_0x1c7aef(0x1a8)),p=require(_0x1c7aef(0x19f)),l=require(_0x1c7aef(0x16e)),g=require(_0x1c7aef(0x1a7)),f=require(_0x1c7aef(0x1e3)),_=require(_0x1c7aef(0x179)),D=require(_0x1c7aef(0x23f)),b=require(_0x1c7aef(0x1d9)),$=_0x1c7aef(0x21a),x={};class O extends o[_0x1c7aef(0x1a1)]{constructor(){var _0x7eb6e3=_0x1c7aef;super(...arguments),v(this,_0x7eb6e3(0x1e2),new Set()),v(this,_0x7eb6e3(0x19c),new Set());}[_0x1c7aef(0x228)](_0x41c440){var _0x397c21=_0x1c7aef;return this[_0x397c21(0x1e2)]['add'](_0x41c440),o[_0x397c21(0x18c)](()=>this[_0x397c21(0x1e2)]['delete'](_0x41c440));}[_0x1c7aef(0x1ba)](_0x43371b){var _0x167bd7=_0x1c7aef;return this['_reporters'][_0x167bd7(0x1d2)](_0x43371b),o[_0x167bd7(0x18c)](()=>this[_0x167bd7(0x19c)][_0x167bd7(0x1a4)](_0x43371b));}[_0x1c7aef(0x17a)](_0x240ca4){var _0x48ffff=_0x1c7aef;return this[_0x48ffff(0x1e2)][_0x48ffff(0x20e)](_0x240ca4);}[_0x1c7aef(0x192)](_0x2cfd6b){var _0x2185fa=_0x1c7aef;return Array[_0x2185fa(0x1bf)](this[_0x2185fa(0x19c)])[_0x2185fa(0x195)](_0x2ef2b0=>_0x2ef2b0(_0x2cfd6b));}}var H=Object[_0x1c7aef(0x1c1)],V=(_0x5360c8,_0x1178b6,_0x38a0bc,_0x227ea3)=>{for(var _0x3571f0=_0x227ea3>0x1?void 0x0:_0x227ea3?H(_0x1178b6,_0x38a0bc):_0x1178b6,_0x2a322e=_0x5360c8['length']-0x1,_0xb87304;_0x2a322e>=0x0;_0x2a322e--)(_0xb87304=_0x5360c8[_0x2a322e])&&(_0x3571f0=_0xb87304(_0x3571f0)||_0x3571f0);return _0x3571f0;},k=(_0x16c344,_0x2a6325)=>(_0x2125da,_0x38a74b)=>_0x2a6325(_0x2125da,_0x38a74b,_0x16c344);function _0x346f(){var _0x2460c7=['0\x200\x2017\x2017','hasOwnProperty','Button','UniverCollaborationClientPlugin','SetZoomRatioOperation','onCommandExecuted','live-share.config','toString','mask','LIVESHARE_OPERATION','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','onStarting','getUnitId','offline','_liveShareService','createInstance','values','useState','prototype','attrs','registerSharedOperation','_collabSession','NEW_CHANGESETS','override','SessionStatus','current','clear','NOT_FOLLOWING','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Start','idle','disposeWithMe','not-following','string','InsertSheetMutation','path','UNIVER_UNKNOWN','currentColor','useObservable','clsx','You\x27re\x20not\x20following\x20the\x20presenter','2046096CLlcSS','data','rxjs','none','_config','UniverInstanceType','_handleNewHost','jsxs','parseProtocolChangeset','UNIVER_SHEET','LIVESHARE_TERMINATE','tag','dispose$','complete','LiveShareController','You\x27re\x20following\x20the\x20presenter','init','defs','getConfig','You\x27are\x20offline.','_fetchOperations','@univerjs/sheets','connectInjector','presenting','44335mUPeRy','takeUntil','_init','_entities','status$','48999fjXCWo','dispose','You\x27re\x20presenting\x20the\x20document','requireSession','Injector','react/jsx-runtime','button','_startPresenting','parse','getCurrentTypeOfUnit$','children','getLiveShareCoordinator','LiveShareCoordinator','call','29468857uRqHcY','getTypeOfUnitDisposed$','@univerjs-pro/collaboration','shouldShareOperation','SetWorksheetActiveOperation','getOwnPropertySymbols','mergeOverrideWithDependencies','BuiltInUIPart','_univerInstanceService','658DeyRRg','RxDisposable','live-share-icon','className','_unitID','_presenter','symbol','set','default','then','find','unitId','toDisposable','OPERATION','10EGjtwy','_handleNewChangeSets','forwardRef','toStringTag','getInitialStates','DesktopLiveShareController','75320bQOcqN','map','length','colorChannel1','includes','_stopFollowing','_injector','ONLINE','_reporters','defineProperty','SetScrollOperation','@univerjs/ui','http://www.w3.org/2000/svg','Disposable','jsx','indexOf','delete','UniverLiveSharePlugin','type','@univerjs/design','@univerjs/sheets-ui','univer-w-full\x20univer-mb-3\x20univer-text-sm','event$','_handleOperation','436LXLGgk','_commandDisposable','subscribe','touchDependencies','useDependency','LiveShare','PRESENTING','replace','sheet','useRef','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','tryStartPresenting','fill','_status','registerInitialStateReporter','entries','_stopPresenting','createElement','onRendered','from','pluginName','getOwnPropertyDescriptor','mutations','reverse','merge','CollaborationEvent','send','svg','forEach','getValue','SAME_OPERATION_SHARE_INTERVAL','useEffect','LIVESHARE_NEW_HOST','setConfig','2097351AJnVjW','Plugin','unsubscribe','270034HGOwLm','add','UniverIcon','stringify','_uiPartsService','IConfigService','xlink:href','IDLE','rxjs/operators','Fragment','_commandService','getMemberID','_beIdle','@univerjs/core','_configService','stopPresenting','operations','_sharedOperations','react','stopFollowing','_handleTerminate','HEADER_MENU','LiveShareIcon','idSuffix','function','OFFLINE','_handleOffline','text','following','_startLiveShareCoordinator','div','pipe','get','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','Module','148CIyfai','params','Stop\x20following','Subject','_handleOnline','evenodd','FOLLOWING','IUniverInstanceService','LIVESHARE_FETCH_OPERATIONS','concat','asObservable','Start\x20following','univer-size-4','extend','_collabSessionService','CommandType','_mountLiveShare','assign','next','presenter','trim','displayName','executeCommand','startFollowing','_status$','BehaviorSubject','has','Inject','Dropdown','registerComponent','getTypeOfUnitAdded$','defIds'];_0x346f=function(){return _0x2460c7;};return _0x346f();}let E=class extends o['Disposable']{constructor(_0x7f42bf){var _0x35fa5a=_0x1c7aef;super(),this[_0x35fa5a(0x222)]=_0x7f42bf,this[_0x35fa5a(0x166)]();}[_0x1c7aef(0x166)](){var _0x52943e=_0x1c7aef;[w[_0x52943e(0x218)]['id'],w[_0x52943e(0x19e)]['id'],C['SetWorksheetActiveOperation']['id']][_0x52943e(0x1c8)](_0x2ecfda=>{var _0x3bacfb=_0x52943e;this[_0x3bacfb(0x233)](this[_0x3bacfb(0x222)][_0x3bacfb(0x228)](_0x2ecfda));});}};E=V([k(0x0,o[_0x1c7aef(0x20f)](O))],E);var u=function(){var _0x402ff7=_0x1c7aef;return u=Object[_0x402ff7(0x205)]||function(_0x5bbaa8){var _0x325587=_0x402ff7;for(var _0x3dac1d,_0x3a43c4=0x1,_0x2902b3=arguments[_0x325587(0x196)];_0x3a43c4<_0x2902b3;_0x3a43c4++){_0x3dac1d=arguments[_0x3a43c4];for(var _0x3f0746 in _0x3dac1d)Object[_0x325587(0x226)][_0x325587(0x215)][_0x325587(0x176)](_0x3dac1d,_0x3f0746)&&(_0x5bbaa8[_0x3f0746]=_0x3dac1d[_0x3f0746]);}return _0x5bbaa8;},u['apply'](this,arguments);},M=function(_0x389aba,_0x51f941){var _0xfdc11c=_0x1c7aef,_0x35f33c={};for(var _0x4ea113 in _0x389aba)Object[_0xfdc11c(0x226)][_0xfdc11c(0x215)]['call'](_0x389aba,_0x4ea113)&&_0x51f941['indexOf'](_0x4ea113)<0x0&&(_0x35f33c[_0x4ea113]=_0x389aba[_0x4ea113]);if(_0x389aba!=null&&typeof Object[_0xfdc11c(0x17c)]==_0xfdc11c(0x1e9)){for(var _0x7a69bc=0x0,_0x4ea113=Object[_0xfdc11c(0x17c)](_0x389aba);_0x7a69bc<_0x4ea113[_0xfdc11c(0x196)];_0x7a69bc++)_0x51f941[_0xfdc11c(0x1a3)](_0x4ea113[_0x7a69bc])<0x0&&Object[_0xfdc11c(0x226)]['propertyIsEnumerable'][_0xfdc11c(0x176)](_0x389aba,_0x4ea113[_0x7a69bc])&&(_0x35f33c[_0x4ea113[_0x7a69bc]]=_0x389aba[_0x4ea113[_0x7a69bc]]);}return _0x35f33c;},j=f[_0x1c7aef(0x190)](function(_0x195d5c,_0x37a02f){var _0x5c70fb=_0x1c7aef,_0x556b65=_0x195d5c['icon'],_0x2173ce=_0x195d5c['id'],_0x8074c7=_0x195d5c[_0x5c70fb(0x183)],_0x1f96cc=_0x195d5c[_0x5c70fb(0x201)],_0x13457c=M(_0x195d5c,['icon','id',_0x5c70fb(0x183),_0x5c70fb(0x201)]),_0x1cc442='univerjs-icon\x20univerjs-icon-'['concat'](_0x2173ce,'\x20')[_0x5c70fb(0x1fd)](_0x8074c7||'')[_0x5c70fb(0x208)](),_0x25805b=f[_0x5c70fb(0x1b5)]('_'[_0x5c70fb(0x1fd)](G()));return y(_0x556b65,''[_0x5c70fb(0x1fd)](_0x2173ce),{'defIds':_0x556b65['defIds'],'idSuffix':_0x25805b[_0x5c70fb(0x22d)]},u({'ref':_0x37a02f,'className':_0x1cc442},_0x13457c),_0x1f96cc);});function y(_0x3f4167,_0x4b355b,_0x2d4f61,_0x2e0f80,_0x3b4b9d){var _0x1618e0=_0x1c7aef;return f[_0x1618e0(0x1bd)](_0x3f4167[_0x1618e0(0x248)],u(u({'key':_0x4b355b},q(_0x3f4167,_0x2d4f61,_0x3b4b9d)),_0x2e0f80),(W(_0x3f4167,_0x2d4f61)[_0x1618e0(0x173)]||[])[_0x1618e0(0x195)](function(_0x4e6f00,_0x35fb1d){var _0x35846c=_0x1618e0;return y(_0x4e6f00,''[_0x35846c(0x1fd)](_0x4b355b,'-')[_0x35846c(0x1fd)](_0x3f4167[_0x35846c(0x248)],'-')[_0x35846c(0x1fd)](_0x35fb1d),_0x2d4f61,void 0x0,_0x3b4b9d);}));}function q(_0x9ee119,_0x219882,_0x3316e7){var _0x692bdc=_0x1c7aef,_0x6ff6fc=u({},_0x9ee119['attrs']);_0x3316e7!=null&&_0x3316e7[_0x692bdc(0x197)]&&_0x6ff6fc[_0x692bdc(0x1b8)]===_0x692bdc(0x197)&&(_0x6ff6fc[_0x692bdc(0x1b8)]=_0x3316e7['colorChannel1']),_0x9ee119[_0x692bdc(0x248)]===_0x692bdc(0x21c)&&_0x6ff6fc['id']&&(_0x6ff6fc['id']=_0x6ff6fc['id']+_0x219882['idSuffix']),Object[_0x692bdc(0x1bb)](_0x6ff6fc)[_0x692bdc(0x1c8)](function(_0x238fcf){var _0x4a0988=_0x692bdc,_0x5a2b74=_0x238fcf[0x0],_0x3b096e=_0x238fcf[0x1];_0x5a2b74==='mask'&&typeof _0x3b096e==_0x4a0988(0x235)&&(_0x6ff6fc[_0x5a2b74]=_0x3b096e[_0x4a0988(0x1b3)](/url\(#(.*)\)/,'url(#$1'[_0x4a0988(0x1fd)](_0x219882[_0x4a0988(0x1e8)],')')));});var _0x229ead=_0x219882[_0x692bdc(0x213)];return!_0x229ead||_0x229ead['length']===0x0||(_0x9ee119[_0x692bdc(0x248)]==='use'&&_0x6ff6fc[_0x692bdc(0x1d7)]&&(_0x6ff6fc[_0x692bdc(0x1d7)]=_0x6ff6fc[_0x692bdc(0x1d7)]+_0x219882[_0x692bdc(0x1e8)]),Object[_0x692bdc(0x1bb)](_0x6ff6fc)[_0x692bdc(0x1c8)](function(_0x11d439){var _0x245a4b=_0x692bdc,_0x11f5f3=_0x11d439[0x0],_0x54ae76=_0x11d439[0x1];typeof _0x54ae76==_0x245a4b(0x235)&&(_0x6ff6fc[_0x11f5f3]=_0x54ae76[_0x245a4b(0x1b3)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x219882[_0x245a4b(0x1e8)],')')));})),_0x6ff6fc;}function W(_0x5b3628,_0x54bc4a){var _0x1ce7e1=_0x1c7aef,_0x202505,_0xfa75ec=_0x54bc4a[_0x1ce7e1(0x213)];return!_0xfa75ec||_0xfa75ec[_0x1ce7e1(0x196)]===0x0?_0x5b3628:_0x5b3628[_0x1ce7e1(0x248)]===_0x1ce7e1(0x15d)&&(!((_0x202505=_0x5b3628['children'])===null||_0x202505===void 0x0)&&_0x202505[_0x1ce7e1(0x196)])?u(u({},_0x5b3628),{'children':_0x5b3628[_0x1ce7e1(0x173)][_0x1ce7e1(0x195)](function(_0x31513f){var _0x1a4da0=_0x1ce7e1;return typeof _0x31513f[_0x1a4da0(0x227)]['id']==_0x1a4da0(0x235)&&_0xfa75ec&&_0xfa75ec[_0x1a4da0(0x198)](_0x31513f[_0x1a4da0(0x227)]['id'])?u(u({},_0x31513f),{'attrs':u(u({},_0x31513f[_0x1a4da0(0x227)]),{'id':_0x31513f[_0x1a4da0(0x227)]['id']+_0x54bc4a[_0x1a4da0(0x1e8)]})}):_0x31513f;})}):_0x5b3628;}function G(){var _0x455900=_0x1c7aef;return Math['random']()[_0x455900(0x21b)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x1c7aef(0x1d3);var B={'tag':_0x1c7aef(0x1c7),'attrs':{'xmlns':_0x1c7aef(0x1a0),'fill':_0x1c7aef(0x240),'viewBox':_0x1c7aef(0x214),'width':'1em','height':'1em'},'children':[{'tag':_0x1c7aef(0x237),'attrs':{'fill':'currentColor','d':_0x1c7aef(0x1f2)}},{'tag':_0x1c7aef(0x237),'attrs':{'fill':_0x1c7aef(0x239),'d':_0x1c7aef(0x21e),'fillRule':_0x1c7aef(0x1f9),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x4bdf19,_0x3a4f8a){var _0xca2c16=_0x1c7aef;return f[_0xca2c16(0x1bd)](j,Object[_0xca2c16(0x205)]({},_0x4bdf19,{'id':_0xca2c16(0x182),'ref':_0x3a4f8a,'icon':B}));});P[_0x1c7aef(0x209)]=_0x1c7aef(0x1e7);var Y=Object['getOwnPropertyDescriptor'],R=(_0x748fcd,_0x4a6504,_0x4a1425,_0x4bba3b)=>{var _0x28b5b1=_0x1c7aef;for(var _0x117e4f=_0x4bba3b>0x1?void 0x0:_0x4bba3b?Y(_0x4a6504,_0x4a1425):_0x4a6504,_0x230ec4=_0x748fcd[_0x28b5b1(0x196)]-0x1,_0xd81ca4;_0x230ec4>=0x0;_0x230ec4--)(_0xd81ca4=_0x748fcd[_0x230ec4])&&(_0x117e4f=_0xd81ca4(_0x117e4f)||_0x117e4f);return _0x117e4f;},S=(_0x3efae1,_0x40ce4c)=>(_0x389d4b,_0x556eee)=>_0x40ce4c(_0x389d4b,_0x556eee,_0x3efae1);exports['LiveShareController']=class extends o[_0x1c7aef(0x181)]{constructor(_0x34663f,_0x4c1f4c,_0x2b45ff){var _0x4e4b63=_0x1c7aef;super(),v(this,_0x4e4b63(0x167),new Map()),(this['_univerInstanceService']=_0x34663f,this['_injector']=_0x4c1f4c,this[_0x4e4b63(0x202)]=_0x2b45ff,this['_init']());}async[_0x1c7aef(0x174)](_0x5e4073){var _0x36e4f8=_0x1c7aef;return this[_0x36e4f8(0x167)]['has'](_0x5e4073)||await this[_0x36e4f8(0x1ee)](_0x5e4073),this[_0x36e4f8(0x167)][_0x36e4f8(0x1f1)](_0x5e4073);}[_0x1c7aef(0x166)](){var _0x58115e=_0x1c7aef;this[_0x58115e(0x17f)][_0x58115e(0x212)](o[_0x58115e(0x242)][_0x58115e(0x246)])[_0x58115e(0x1f0)](b[_0x58115e(0x165)](this['dispose$']))[_0x58115e(0x1ae)](async _0x2f1510=>{var _0x4f846d=_0x58115e;const _0x37dcda=_0x2f1510['getUnitId']();this[_0x4f846d(0x167)][_0x4f846d(0x20e)](_0x37dcda)||this['_startLiveShareCoordinator'](_0x37dcda);}),this['_univerInstanceService'][_0x58115e(0x178)](o[_0x58115e(0x242)]['UNIVER_SHEET'])[_0x58115e(0x1f0)](b['takeUntil'](this[_0x58115e(0x249)]))['subscribe'](_0x67c29c=>{var _0x1b74f6=_0x58115e;const _0x590ae5=_0x67c29c[_0x1b74f6(0x220)](),_0x9036ef=this[_0x1b74f6(0x167)][_0x1b74f6(0x1f1)](_0x590ae5);_0x9036ef==null||_0x9036ef[_0x1b74f6(0x16a)]();});}async[_0x1c7aef(0x1ee)](_0x5e7a82){var _0x3e1988=_0x1c7aef;const _0x38b9f7=await this['_collabSessionService'][_0x3e1988(0x16c)](_0x5e7a82),_0x470197=this[_0x3e1988(0x19a)][_0x3e1988(0x223)](exports[_0x3e1988(0x175)],_0x5e7a82,_0x38b9f7);return _0x470197[_0x3e1988(0x15c)](),this[_0x3e1988(0x167)][_0x3e1988(0x187)](_0x5e7a82,_0x470197),_0x470197;}},exports[_0x1c7aef(0x15a)]=R([S(0x0,o[_0x1c7aef(0x1fb)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](m['CollaborationSessionService']))],exports[_0x1c7aef(0x15a)]);var h=(_0x54d35f=>(_0x54d35f['OFFLINE']=_0x1c7aef(0x221),_0x54d35f[_0x1c7aef(0x1d8)]=_0x1c7aef(0x232),_0x54d35f[_0x1c7aef(0x1fa)]=_0x1c7aef(0x1ed),_0x54d35f[_0x1c7aef(0x22f)]=_0x1c7aef(0x234),_0x54d35f[_0x1c7aef(0x1b2)]=_0x1c7aef(0x163),_0x54d35f))(h||{});const Z=_0x1c7aef(0x1ca),J=0xc8;exports[_0x1c7aef(0x175)]=class extends o['RxDisposable']{constructor(_0x12306a,_0x28f695,_0xeb9a8d,_0x31bc05,_0x3ca580){var _0x2190bc=_0x1c7aef;super(),v(this,_0x2190bc(0x20c),new D[(_0x2190bc(0x20d))](_0x2190bc(0x232))),v(this,_0x2190bc(0x168),this[_0x2190bc(0x20c)][_0x2190bc(0x1fe)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x2190bc(0x185),null),(this['_unitID']=_0x12306a,this[_0x2190bc(0x229)]=_0x28f695,this[_0x2190bc(0x1df)]=_0xeb9a8d,this[_0x2190bc(0x222)]=_0x31bc05,this[_0x2190bc(0x1db)]=_0x3ca580);}get[_0x1c7aef(0x1b9)](){var _0x327b9d=_0x1c7aef;return this[_0x327b9d(0x20c)][_0x327b9d(0x1c9)]();}[_0x1c7aef(0x16a)](){var _0x3fe3b3=_0x1c7aef,_0x4cd886;(_0x4cd886=this[_0x3fe3b3(0x1ad)])==null||_0x4cd886[_0x3fe3b3(0x16a)](),this[_0x3fe3b3(0x20c)][_0x3fe3b3(0x206)](_0x3fe3b3(0x232)),this['_status$'][_0x3fe3b3(0x159)]();}['init'](){var _0x46359c=_0x1c7aef;this[_0x46359c(0x166)]||(this[_0x46359c(0x166)]=!0x0,this[_0x46359c(0x229)]['sessionStatus$'][_0x46359c(0x1f0)](b[_0x46359c(0x165)](this[_0x46359c(0x249)]))[_0x46359c(0x1ae)](_0x221ddb=>{var _0x72dbbc=_0x46359c;switch(_0x221ddb){case m[_0x72dbbc(0x22c)][_0x72dbbc(0x1ea)]:this['_handleOffline']();break;case m['SessionStatus'][_0x72dbbc(0x19b)]:this['_handleOnline']();break;}}),this[_0x46359c(0x229)][_0x46359c(0x1aa)][_0x46359c(0x1f0)](b[_0x46359c(0x165)](this[_0x46359c(0x249)]))['subscribe'](_0x1a1dc3=>{var _0xf94b8b=_0x46359c;const {eventID:_0x107062}=_0x1a1dc3;switch(_0x107062){case _['CollaborationEvent'][_0xf94b8b(0x1cc)]:this[_0xf94b8b(0x243)](_0x1a1dc3);break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x21d)]:this[_0xf94b8b(0x1ab)](_0x1a1dc3);break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x247)]:this[_0xf94b8b(0x1e5)]();break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x22a)]:this[_0xf94b8b(0x18f)](_0x1a1dc3);break;}}));}[_0x1c7aef(0x1b7)](){var _0x5540e5=_0x1c7aef;this['_collabSession']['send']({'eventID':_[_0x5540e5(0x1c5)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5540e5(0x184)],'userID':this[_0x5540e5(0x229)][_0x5540e5(0x1dc)]()}},this['_unitID']);}['stopPresenting'](){var _0x198217=_0x1c7aef;this['_status']==='presenting'&&(this[_0x198217(0x20c)][_0x198217(0x206)](_0x198217(0x232)),this['_collabSession']['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x198217(0x184)]}},this[_0x198217(0x184)]));}['startFollowing'](){var _0x311c3a=_0x1c7aef;this[_0x311c3a(0x1b9)]===_0x311c3a(0x234)&&(this[_0x311c3a(0x20c)][_0x311c3a(0x206)](_0x311c3a(0x1ed)),this['_startFollowing']());}[_0x1c7aef(0x1e4)](){var _0x51084b=_0x1c7aef;this['_status']===_0x51084b(0x1ed)&&this[_0x51084b(0x199)]();}[_0x1c7aef(0x243)](_0xdf7764){var _0x1e9093=_0x1c7aef;const {presenter:_0x2791cc}=_0xdf7764[_0x1e9093(0x23e)],_0x439db3=this[_0x1e9093(0x229)][_0x1e9093(0x1dc)]();this[_0x1e9093(0x185)]=_0x2791cc,_0x2791cc===_0x439db3?(this[_0x1e9093(0x199)](),this[_0x1e9093(0x170)]()):this['_status']!==_0x1e9093(0x234)&&(this[_0x1e9093(0x1bc)](),this['_startFollowing']());}[_0x1c7aef(0x160)](){var _0x3f60cd=_0x1c7aef;const _0x4c07cb={'eventID':_[_0x3f60cd(0x1c5)][_0x3f60cd(0x1fc)]};this[_0x3f60cd(0x229)]['send'](_0x4c07cb,this[_0x3f60cd(0x184)]);}[_0x1c7aef(0x1e5)](){var _0x14ef6f=_0x1c7aef;this[_0x14ef6f(0x185)]=null,this['_status']!==_0x14ef6f(0x163)&&this[_0x14ef6f(0x1dd)]();}[_0x1c7aef(0x18f)](_0x386a0e){var _0x1eac97=_0x1c7aef;if(this['_status']===_0x1eac97(0x1ed)&&this[_0x1eac97(0x185)]===_0x386a0e[_0x1eac97(0x23e)]['memberID']){const _0x4faae7=_[_0x1eac97(0x245)](_0x386a0e[_0x1eac97(0x23e)])[_0x1eac97(0x1c2)][_0x1eac97(0x1c3)]()[_0x1eac97(0x18a)](_0x3d7a51=>_0x3d7a51['id']===C[_0x1eac97(0x236)]['id']);if(_0x4faae7){const _0x220b0d=_0x4faae7[_0x1eac97(0x1f5)][_0x1eac97(0x18b)],_0x43b689=_0x4faae7['params'][_0x1eac97(0x1b4)]['id'];setTimeout(()=>{var _0x45b729=_0x1eac97;this[_0x45b729(0x1db)][_0x45b729(0x20a)](C[_0x45b729(0x17b)]['id'],{'unitId':_0x220b0d,'subUnitId':_0x43b689},{'fromCollab':!0x0});});}}}[_0x1c7aef(0x170)](){var _0x10cd79=_0x1c7aef;this[_0x10cd79(0x20c)]['next'](_0x10cd79(0x163));const _0x2b30a2=new Map(),_0x338f70=this[_0x10cd79(0x1ad)]=new o['DisposableCollection']();_0x338f70['add'](o[_0x10cd79(0x18c)](()=>{var _0x3bde54=_0x10cd79;_0x2b30a2[_0x3bde54(0x1c8)](_0x5ec77a=>_0x5ec77a[_0x3bde54(0x159)]()),_0x2b30a2[_0x3bde54(0x22e)]();})),_0x338f70[_0x10cd79(0x1d2)](this[_0x10cd79(0x1db)][_0x10cd79(0x219)](_0x4ae78=>{var _0x2614d9=_0x10cd79,_0x596014;if(_0x4ae78[_0x2614d9(0x1a6)]!==o[_0x2614d9(0x203)][_0x2614d9(0x18d)]||!this[_0x2614d9(0x222)][_0x2614d9(0x17a)](_0x4ae78['id']))return;const {id:_0x354da0}=_0x4ae78;let _0x39b576;_0x2b30a2[_0x2614d9(0x20e)](_0x354da0)?_0x39b576=_0x2b30a2[_0x2614d9(0x1f1)](_0x354da0):(_0x39b576=new D[(_0x2614d9(0x1f7))](),_0x2b30a2[_0x2614d9(0x187)](_0x354da0,_0x39b576),_0x39b576[_0x2614d9(0x1f0)](b['throttleTime']((_0x596014=this[_0x2614d9(0x1df)][_0x2614d9(0x15e)](Z))!=null?_0x596014:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26d0ba=>{var _0x2c030a=_0x2614d9;this[_0x2c030a(0x229)][_0x2c030a(0x1c6)]({'eventID':_[_0x2c030a(0x1c5)][_0x2c030a(0x21d)],'data':{'unitID':this['_unitID'],'operations':{[_0x26d0ba['id']]:{'id':_0x26d0ba['id'],'params':JSON[_0x2c030a(0x1d4)](_0x26d0ba['params'])}}}},this['_unitID']);})),_0x39b576[_0x2614d9(0x206)](_0x4ae78);})),this['_liveShareService']['getInitialStates'](this[_0x10cd79(0x184)])[_0x10cd79(0x1c8)](_0xa66ac8=>this['_collabSession'][_0x10cd79(0x1c6)]({'eventID':_[_0x10cd79(0x1c5)][_0x10cd79(0x21d)],'data':{'unitID':this[_0x10cd79(0x184)],'operations':{[_0xa66ac8['id']]:{'id':_0xa66ac8['id'],'params':JSON['stringify'](_0xa66ac8[_0x10cd79(0x1f5)])}}}},this[_0x10cd79(0x184)]));}[_0x1c7aef(0x1bc)](){var _0x35b5e4=_0x1c7aef,_0x4578d4;this[_0x35b5e4(0x20c)][_0x35b5e4(0x206)](_0x35b5e4(0x232)),(_0x4578d4=this[_0x35b5e4(0x1ad)])==null||_0x4578d4[_0x35b5e4(0x16a)](),this[_0x35b5e4(0x1ad)]=null;}['_startFollowing'](){var _0x31f7e2=_0x1c7aef,_0x37cd2b;(_0x37cd2b=this['_commandDisposable'])==null||_0x37cd2b[_0x31f7e2(0x16a)](),this[_0x31f7e2(0x20c)][_0x31f7e2(0x206)](_0x31f7e2(0x1ed));}[_0x1c7aef(0x1dd)](){var _0x389795=_0x1c7aef,_0x3bf453;this[_0x389795(0x20c)][_0x389795(0x206)]('idle'),(_0x3bf453=this[_0x389795(0x1ad)])==null||_0x3bf453[_0x389795(0x16a)](),this[_0x389795(0x1ad)]=null;}[_0x1c7aef(0x199)](){var _0x108a66=_0x1c7aef,_0x979bd;this[_0x108a66(0x20c)][_0x108a66(0x206)](_0x108a66(0x234)),(_0x979bd=this[_0x108a66(0x1ad)])==null||_0x979bd[_0x108a66(0x16a)]();}['_handleOperation'](_0x1d5f6a){var _0x52a23b=_0x1c7aef;if(['presenting','not-following',_0x52a23b(0x221)][_0x52a23b(0x198)](this[_0x52a23b(0x1b9)])||!_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x207)]||_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x207)]===this[_0x52a23b(0x229)][_0x52a23b(0x1dc)]())return;this[_0x52a23b(0x1b9)]===_0x52a23b(0x232)&&this['_startFollowing']();const _0x23858e=_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x1e1)];Object[_0x52a23b(0x224)](_0x23858e)['forEach'](_0xee3b79=>{var _0x13c6a3=_0x52a23b;this[_0x13c6a3(0x1db)]['executeCommand'](_0xee3b79['id'],_0xee3b79['params']?JSON[_0x13c6a3(0x171)](_0xee3b79[_0x13c6a3(0x1f5)]):null,{'fromCollab':!0x0});});}[_0x1c7aef(0x1eb)](){var _0x43a3f7=_0x1c7aef,_0x2f8e7b;this[_0x43a3f7(0x20c)]['next']('offline'),(_0x2f8e7b=this[_0x43a3f7(0x1ad)])==null||_0x2f8e7b['dispose']();}[_0x1c7aef(0x1f8)](){var _0x265455=_0x1c7aef;this[_0x265455(0x20c)]['next'](_0x265455(0x232)),this['_fetchOperations']();}},exports[_0x1c7aef(0x175)]=R([S(0x2,o[_0x1c7aef(0x1d6)]),S(0x3,o[_0x1c7aef(0x20f)](O)),S(0x4,o['ICommandService'])],exports[_0x1c7aef(0x175)]);function A(){var _0x3aefbf=_0x1c7aef;const _0x2c8ede=p[_0x3aefbf(0x1b0)](exports[_0x3aefbf(0x15a)]),_0x5c5f8a=p[_0x3aefbf(0x1b0)](o[_0x3aefbf(0x1fb)]),_0x3f5760=p[_0x3aefbf(0x23a)](()=>_0x5c5f8a[_0x3aefbf(0x172)](o[_0x3aefbf(0x242)][_0x3aefbf(0x246)]),void 0x0,!0x1,[]),[_0x157a88,_0x52f379]=f[_0x3aefbf(0x225)](null),[_0x3d366f,_0x497e04]=f[_0x3aefbf(0x225)](h['IDLE']),_0x527d10=f['useRef'](null);return f[_0x3aefbf(0x1cb)](()=>(_0x3f5760&&_0x2c8ede['getLiveShareCoordinator'](_0x3f5760[_0x3aefbf(0x220)]())[_0x3aefbf(0x189)](_0x407442=>{var _0x149430=_0x3aefbf;_0x52f379(_0x407442),_0x527d10['current']=_0x407442[_0x149430(0x168)]['subscribe'](_0x9800ba=>{_0x497e04(_0x9800ba);});}),()=>{var _0x469b92=_0x3aefbf,_0x24fdc8;(_0x24fdc8=_0x527d10[_0x469b92(0x22d)])==null||_0x24fdc8[_0x469b92(0x1d0)](),_0x527d10[_0x469b92(0x22d)]=null;}),[_0x3f5760,_0x2c8ede]),_0x157a88?l[_0x3aefbf(0x1a2)](g[_0x3aefbf(0x210)],{'align':'end','disabled':_0x3d366f===h[_0x3aefbf(0x1ea)],'className':_0x3aefbf(0x1b6),'overlay':l[_0x3aefbf(0x1a2)](K,{'status':_0x3d366f,'coordinator':_0x157a88}),'children':l[_0x3aefbf(0x1a2)](_0x3aefbf(0x16f),{'className':g[_0x3aefbf(0x23b)](_0x3aefbf(0x230),{'univer-cursor-not-allowed':_0x3d366f===h[_0x3aefbf(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d366f!==h[_0x3aefbf(0x1ea)]}),'type':_0x3aefbf(0x16f),'children':l[_0x3aefbf(0x1a2)](P,{'className':_0x3aefbf(0x200)})})}):null;}function K(_0x406318){var _0x2d5b5a=_0x1c7aef;const {status:_0x598755,coordinator:_0x27b379}=_0x406318;switch(_0x598755){case h[_0x2d5b5a(0x1d8)]:return l[_0x2d5b5a(0x1a2)](z,{'coordinator':_0x27b379});case h['FOLLOWING']:return l[_0x2d5b5a(0x1a2)](Q,{'coordinator':_0x27b379});case h[_0x2d5b5a(0x22f)]:return l[_0x2d5b5a(0x1a2)](X,{'coordinator':_0x27b379});case h['OFFLINE']:return l[_0x2d5b5a(0x1a2)](te,{});case h['PRESENTING']:return l[_0x2d5b5a(0x1a2)](ee,{'coordinator':_0x27b379});default:return null;}}function z(_0x3daa88){var _0x53f2a2=_0x1c7aef;const {coordinator:_0x2a2794}=_0x3daa88;return l[_0x53f2a2(0x244)](l[_0x53f2a2(0x1da)],{'children':[l['jsx'](_0x53f2a2(0x1ef),{'className':_0x53f2a2(0x1a9),'children':'Present\x20this\x20document'}),l[_0x53f2a2(0x1a2)](g[_0x53f2a2(0x216)],{'onClick':()=>_0x2a2794[_0x53f2a2(0x1b7)](),'children':_0x53f2a2(0x231)})]});}function Q(_0x320a2e){var _0x37a8ea=_0x1c7aef;const {coordinator:_0xfb14d1}=_0x320a2e;return l['jsxs'](l[_0x37a8ea(0x1da)],{'children':[l['jsx'](_0x37a8ea(0x1ef),{'className':_0x37a8ea(0x1a9),'children':_0x37a8ea(0x15b)}),l[_0x37a8ea(0x1a2)](g[_0x37a8ea(0x216)],{'onClick':()=>_0xfb14d1[_0x37a8ea(0x1e4)](),'children':_0x37a8ea(0x1f6)})]});}function X(_0x3debcf){var _0x46a9be=_0x1c7aef;const {coordinator:_0x1bf378}=_0x3debcf;return l[_0x46a9be(0x244)](l['Fragment'],{'children':[l[_0x46a9be(0x1a2)](_0x46a9be(0x1ef),{'className':_0x46a9be(0x1a9),'children':_0x46a9be(0x23c)}),l[_0x46a9be(0x1a2)](g[_0x46a9be(0x216)],{'variant':_0x46a9be(0x1ec),'onClick':()=>_0x1bf378[_0x46a9be(0x20b)](),'children':_0x46a9be(0x1ff)})]});}function ee(_0xfadb34){var _0x63a67d=_0x1c7aef;const {coordinator:_0x3c8e20}=_0xfadb34;return l['jsxs'](l[_0x63a67d(0x1da)],{'children':[l[_0x63a67d(0x1a2)](_0x63a67d(0x1ef),{'className':_0x63a67d(0x1a9),'children':_0x63a67d(0x16b)}),l['jsx'](g[_0x63a67d(0x216)],{'variant':_0x63a67d(0x188),'onClick':()=>_0x3c8e20[_0x63a67d(0x1e0)](),'children':'Stop\x20presenting'})]});}function te(){var _0x3e4cbc=_0x1c7aef;return l[_0x3e4cbc(0x1a2)](l[_0x3e4cbc(0x1da)],{'children':_0x3e4cbc(0x15f)});}var ie=Object[_0x1c7aef(0x1c1)],ne=(_0x3d0b5f,_0x23e559,_0xf51f04,_0x1f3e5b)=>{var _0x2229e2=_0x1c7aef;for(var _0x30472e=_0x1f3e5b>0x1?void 0x0:_0x1f3e5b?ie(_0x23e559,_0xf51f04):_0x23e559,_0x5f46c5=_0x3d0b5f[_0x2229e2(0x196)]-0x1,_0x389b78;_0x5f46c5>=0x0;_0x5f46c5--)(_0x389b78=_0x3d0b5f[_0x5f46c5])&&(_0x30472e=_0x389b78(_0x30472e)||_0x30472e);return _0x30472e;},L=(_0x1a648f,_0x373f23)=>(_0x290c10,_0x4d04d7)=>_0x373f23(_0x290c10,_0x4d04d7,_0x1a648f);exports[_0x1c7aef(0x193)]=class extends o['Disposable']{constructor(_0x834d0d,_0x4ef12c){var _0x2f2791=_0x1c7aef;super(),this[_0x2f2791(0x19a)]=_0x834d0d,this[_0x2f2791(0x1d5)]=_0x4ef12c,this[_0x2f2791(0x204)]();}['_mountLiveShare'](){var _0x5495df=_0x1c7aef;this[_0x5495df(0x233)](this['_uiPartsService'][_0x5495df(0x211)](p[_0x5495df(0x17e)][_0x5495df(0x1e6)],()=>p[_0x5495df(0x162)](A,this[_0x5495df(0x19a)])));}},exports[_0x1c7aef(0x193)]=ne([L(0x0,o[_0x1c7aef(0x20f)](o[_0x1c7aef(0x16d)])),L(0x1,p['IUIPartsService'])],exports[_0x1c7aef(0x193)]);var re=Object[_0x1c7aef(0x19d)],se=Object[_0x1c7aef(0x1c1)],oe=(_0x4330b8,_0x38e3d2,_0x48113c)=>_0x38e3d2 in _0x4330b8?re(_0x4330b8,_0x38e3d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48113c}):_0x4330b8[_0x38e3d2]=_0x48113c,ae=(_0x2198fb,_0x53b7d3,_0x132a28,_0x586ee3)=>{var _0x1164d3=_0x1c7aef;for(var _0x2190ff=_0x586ee3>0x1?void 0x0:_0x586ee3?se(_0x53b7d3,_0x132a28):_0x53b7d3,_0x152662=_0x2198fb[_0x1164d3(0x196)]-0x1,_0x45ca16;_0x152662>=0x0;_0x152662--)(_0x45ca16=_0x2198fb[_0x152662])&&(_0x2190ff=_0x45ca16(_0x2190ff)||_0x2190ff);return _0x2190ff;},N=(_0x45b303,_0x149971)=>(_0x59c3af,_0x3fbdeb)=>_0x149971(_0x59c3af,_0x3fbdeb,_0x45b303),T=(_0xdde970,_0xe29de4,_0x3a6b15)=>oe(_0xdde970,typeof _0xe29de4!=_0x1c7aef(0x186)?_0xe29de4+'':_0xe29de4,_0x3a6b15);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1c7aef(0x1a5)]=class extends o[_0x1c7aef(0x1cf)]{constructor(_0x16dca1=x,_0x45ced8,_0x2e5399){var _0x4dacf0=_0x1c7aef;super(),this[_0x4dacf0(0x241)]=_0x16dca1,this[_0x4dacf0(0x19a)]=_0x45ced8,this[_0x4dacf0(0x1df)]=_0x2e5399;const {..._0xca37cc}=o[_0x4dacf0(0x1c4)]({},x,this['_config']);this[_0x4dacf0(0x1df)][_0x4dacf0(0x1cd)]($,_0xca37cc);}[_0x1c7aef(0x21f)](){var _0x1eac89=_0x1c7aef;o['registerDependencies'](this['_injector'],o[_0x1eac89(0x17d)]([[O],[exports[_0x1eac89(0x15a)]],[E],[exports[_0x1eac89(0x193)]]],this[_0x1eac89(0x241)][_0x1eac89(0x22b)])),o[_0x1eac89(0x1af)](this[_0x1eac89(0x19a)],[[E]]);}[_0x1c7aef(0x1be)](){var _0x126f28=_0x1c7aef;o[_0x126f28(0x1af)](this[_0x126f28(0x19a)],[[exports[_0x126f28(0x193)]]]);}},T(exports[_0x1c7aef(0x1a5)],_0x1c7aef(0x1a6),o[_0x1c7aef(0x242)][_0x1c7aef(0x238)]),T(exports[_0x1c7aef(0x1a5)],_0x1c7aef(0x1c0),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0x1c7aef(0x217)]),N(0x1,o['Inject'](o[_0x1c7aef(0x16d)])),N(0x2,o[_0x1c7aef(0x1d6)])],exports[_0x1c7aef(0x1a5)]),exports[_0x1c7aef(0x1b1)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],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 _0xb92f10=_0x40cd;(function(_0x1d5fe8,_0x321b6a){var _0x34c34d=_0x40cd,_0x212d08=_0x1d5fe8();while(!![]){try{var _0x361c5c=parseInt(_0x34c34d(0x153))/0x1*(parseInt(_0x34c34d(0x18e))/0x2)+parseInt(_0x34c34d(0x144))/0x3+-parseInt(_0x34c34d(0x1a6))/0x4+-parseInt(_0x34c34d(0x1a2))/0x5*(parseInt(_0x34c34d(0x1a8))/0x6)+parseInt(_0x34c34d(0x158))/0x7+-parseInt(_0x34c34d(0x187))/0x8*(parseInt(_0x34c34d(0x15d))/0x9)+parseInt(_0x34c34d(0x1a3))/0xa*(-parseInt(_0x34c34d(0x168))/0xb);if(_0x361c5c===_0x321b6a)break;else _0x212d08['push'](_0x212d08['shift']());}catch(_0x509112){_0x212d08['push'](_0x212d08['shift']());}}}(_0x1835,0xaca11));var q=Object[_0xb92f10(0x177)],z=(_0x2cbb61,_0x297940,_0x56228f)=>_0x297940 in _0x2cbb61?q(_0x2cbb61,_0x297940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56228f}):_0x2cbb61[_0x297940]=_0x56228f,d=(_0x3899b7,_0x466d8c,_0xdf0b8d)=>z(_0x3899b7,typeof _0x466d8c!=_0xb92f10(0x1bb)?_0x466d8c+'':_0x466d8c,_0xdf0b8d);import{CollaborationSessionService as _0x43df75,SessionStatus as _0x23f1bd,UniverCollaborationClientPlugin as _0x310bfc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x36aa7d,toDisposable as _0x11b934,Inject as _0x40f46e,IUniverInstanceService as _0xa30500,Injector as _0x59c839,IConfigService as _0x57314a,ICommandService as _0x282f21,RxDisposable as _0x33764c,UniverInstanceType as _0x3bf8f0,DisposableCollection as _0x413621,CommandType as _0x3a232d,DependentOn as _0x35512a,Plugin as _0x3de4ee,merge as _0x50e9af,registerDependencies as _0x4118c1,mergeOverrideWithDependencies as _0x1a4071,touchDependencies as _0x179b9a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe638c0,InsertSheetMutation as _0xec3140}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xf771a5,SetScrollOperation as _0x49a064}from'@univerjs/sheets-ui';import{useDependency as _0xc15240,useObservable as _0x224427,IUIPartsService as _0x90b79,BuiltInUIPart as _0xecae90,connectInjector as _0x195715}from'@univerjs/ui';import{jsx as _0x438b6c,jsxs as _0x15c1f5,Fragment as _0x240eb3}from'react/jsx-runtime';import{Dropdown as _0x4e7389,clsx as _0x516079,Button as _0x598980}from'@univerjs/design';import{forwardRef as _0x9db80c,useRef as _0x5c0ac1,createElement as _0x1cbdc0,useState as _0x566493,useEffect as _0x125e83}from'react';import{CollaborationEvent as _0x23142e,parseProtocolChangeset as _0x30577f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x40c84d,Subject as _0x4d13be}from'rxjs';import{takeUntil as _0x155f84,throttleTime as _0x36ebc9}from'rxjs/operators';const Oe=_0xb92f10(0x179),T={};class L extends _0x36aa7d{constructor(){var _0x1eff34=_0xb92f10;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x1eff34(0x1d1),new Set());}[_0xb92f10(0x194)](_0xe0ac1e){var _0x1de3a5=_0xb92f10;return this['_sharedOperations']['add'](_0xe0ac1e),_0x11b934(()=>this['_sharedOperations'][_0x1de3a5(0x16c)](_0xe0ac1e));}[_0xb92f10(0x169)](_0x57bf88){var _0xa7feee=_0xb92f10;return this[_0xa7feee(0x1d1)]['add'](_0x57bf88),_0x11b934(()=>this[_0xa7feee(0x1d1)][_0xa7feee(0x16c)](_0x57bf88));}[_0xb92f10(0x16f)](_0x2adc2f){var _0x54c85d=_0xb92f10;return this[_0x54c85d(0x1d8)][_0x54c85d(0x136)](_0x2adc2f);}[_0xb92f10(0x142)](_0x5b204d){var _0x53483b=_0xb92f10;return Array[_0x53483b(0x1af)](this[_0x53483b(0x1d1)])['map'](_0x3276ac=>_0x3276ac(_0x5b204d));}}var Ee=Object[_0xb92f10(0x137)],we=(_0x254359,_0xd46257,_0xabd90a,_0x563cc2)=>{for(var _0x43bfc3=_0x563cc2>0x1?void 0x0:_0x563cc2?Ee(_0xd46257,_0xabd90a):_0xd46257,_0x1586cc=_0x254359['length']-0x1,_0x48c241;_0x1586cc>=0x0;_0x1586cc--)(_0x48c241=_0x254359[_0x1586cc])&&(_0x43bfc3=_0x48c241(_0x43bfc3)||_0x43bfc3);return _0x43bfc3;},Ne=(_0x8e92ab,_0x4ddec3)=>(_0x49d106,_0x5b0016)=>_0x4ddec3(_0x49d106,_0x5b0016,_0x8e92ab);let m=class extends _0x36aa7d{constructor(_0x3a7211){var _0x47e6df=_0xb92f10;super(),this[_0x47e6df(0x1a5)]=_0x3a7211,this['_init']();}[_0xb92f10(0x141)](){var _0x98ffaa=_0xb92f10;[_0xf771a5['id'],_0x49a064['id'],_0xe638c0['id']][_0x98ffaa(0x193)](_0x147004=>{var _0x491994=_0x98ffaa;this[_0x491994(0x1c9)](this[_0x491994(0x1a5)][_0x491994(0x194)](_0x147004));});}};m=we([Ne(0x0,_0x40f46e(L))],m);var c=function(){var _0x4568a5=_0xb92f10;return c=Object['assign']||function(_0x2507e3){var _0x210958=_0x40cd;for(var _0x1f935e,_0x305da6=0x1,_0x4b05b2=arguments[_0x210958(0x128)];_0x305da6<_0x4b05b2;_0x305da6++){_0x1f935e=arguments[_0x305da6];for(var _0x1a0589 in _0x1f935e)Object[_0x210958(0x17d)][_0x210958(0x1cf)]['call'](_0x1f935e,_0x1a0589)&&(_0x2507e3[_0x1a0589]=_0x1f935e[_0x1a0589]);}return _0x2507e3;},c[_0x4568a5(0x185)](this,arguments);},Ce=function(_0x48d83c,_0x4b31f8){var _0x44fee6=_0xb92f10,_0x558944={};for(var _0x3e3918 in _0x48d83c)Object[_0x44fee6(0x17d)]['hasOwnProperty'][_0x44fee6(0x151)](_0x48d83c,_0x3e3918)&&_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918)<0x0&&(_0x558944[_0x3e3918]=_0x48d83c[_0x3e3918]);if(_0x48d83c!=null&&typeof Object[_0x44fee6(0x1c3)]==_0x44fee6(0x18f)){for(var _0xc96f65=0x0,_0x3e3918=Object[_0x44fee6(0x1c3)](_0x48d83c);_0xc96f65<_0x3e3918[_0x44fee6(0x128)];_0xc96f65++)_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918[_0xc96f65])<0x0&&Object[_0x44fee6(0x17d)][_0x44fee6(0x1bf)][_0x44fee6(0x151)](_0x48d83c,_0x3e3918[_0xc96f65])&&(_0x558944[_0x3e3918[_0xc96f65]]=_0x48d83c[_0x3e3918[_0xc96f65]]);}return _0x558944;},W=_0x9db80c(function(_0x9057ee,_0x4ec540){var _0x1c775d=_0xb92f10,_0x536ac7=_0x9057ee[_0x1c775d(0x14a)],_0x56a88d=_0x9057ee['id'],_0x36d0e0=_0x9057ee[_0x1c775d(0x15f)],_0x3d07f8=_0x9057ee[_0x1c775d(0x157)],_0x1a6c5a=Ce(_0x9057ee,['icon','id','className','extend']),_0x2323c2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56a88d,'\x20')[_0x1c775d(0x1ce)](_0x36d0e0||'')[_0x1c775d(0x132)](),_0x2433bc=_0x5c0ac1('_'['concat'](Le()));return Y(_0x536ac7,''[_0x1c775d(0x1ce)](_0x56a88d),{'defIds':_0x536ac7[_0x1c775d(0x170)],'idSuffix':_0x2433bc[_0x1c775d(0x1ae)]},c({'ref':_0x4ec540,'className':_0x2323c2},_0x1a6c5a),_0x3d07f8);});function Y(_0xc5ee4,_0x1f1d92,_0x41078d,_0x29bef0,_0x4209e9){var _0x329e48=_0xb92f10;return _0x1cbdc0(_0xc5ee4['tag'],c(c({'key':_0x1f1d92},De(_0xc5ee4,_0x41078d,_0x4209e9)),_0x29bef0),(xe(_0xc5ee4,_0x41078d)['children']||[])[_0x329e48(0x129)](function(_0x289626,_0x235d58){var _0x145203=_0x329e48;return Y(_0x289626,''[_0x145203(0x1ce)](_0x1f1d92,'-')[_0x145203(0x1ce)](_0xc5ee4['tag'],'-')[_0x145203(0x1ce)](_0x235d58),_0x41078d,void 0x0,_0x4209e9);}));}function De(_0x1e8fbc,_0x41b888,_0x16d0c2){var _0x1c3bdb=_0xb92f10,_0x1d304e=c({},_0x1e8fbc[_0x1c3bdb(0x1d5)]);_0x16d0c2!=null&&_0x16d0c2['colorChannel1']&&_0x1d304e[_0x1c3bdb(0x188)]==='colorChannel1'&&(_0x1d304e['fill']=_0x16d0c2[_0x1c3bdb(0x175)]),_0x1e8fbc[_0x1c3bdb(0x12c)]===_0x1c3bdb(0x12b)&&_0x1d304e['id']&&(_0x1d304e['id']=_0x1d304e['id']+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x2b1512){var _0x4e6e09=_0x1c3bdb,_0x1fcd60=_0x2b1512[0x0],_0x5e286c=_0x2b1512[0x1];_0x1fcd60===_0x4e6e09(0x12b)&&typeof _0x5e286c==_0x4e6e09(0x150)&&(_0x1d304e[_0x1fcd60]=_0x5e286c[_0x4e6e09(0x152)](/url\(#(.*)\)/,_0x4e6e09(0x18d)[_0x4e6e09(0x1ce)](_0x41b888[_0x4e6e09(0x195)],')')));});var _0x4660cc=_0x41b888[_0x1c3bdb(0x170)];return!_0x4660cc||_0x4660cc[_0x1c3bdb(0x128)]===0x0||(_0x1e8fbc['tag']===_0x1c3bdb(0x19b)&&_0x1d304e['xlink:href']&&(_0x1d304e[_0x1c3bdb(0x1ad)]=_0x1d304e[_0x1c3bdb(0x1ad)]+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x236db0){var _0x23e7a5=_0x1c3bdb,_0x1cf9b0=_0x236db0[0x0],_0x37bb1f=_0x236db0[0x1];typeof _0x37bb1f=='string'&&(_0x1d304e[_0x1cf9b0]=_0x37bb1f[_0x23e7a5(0x152)](/url\(#(.*)\)/,_0x23e7a5(0x18d)['concat'](_0x41b888[_0x23e7a5(0x195)],')')));})),_0x1d304e;}function _0x1835(){var _0x377475=['registerSharedOperation','idSuffix','_commandDisposable','currentColor','1em','_collabSessionService','NOT_FOLLOWING','use','none','getConfig','_startPresenting','init','registerComponent','data','70emAAvX','10uBSsOR','mutations','_liveShareService','99968GQFIhB','executeCommand','168066qSxQZk','_fetchOperations','You\x27re\x20following\x20the\x20presenter','getMemberID','createInstance','xlink:href','current','from','FOLLOWING','values','_status$','HEADER_MENU','complete','clear','offline','send','presenting','next','default','symbol','params','_handleTerminate','_stopFollowing','propertyIsEnumerable','substring','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_startFollowing','getOwnPropertySymbols','indexOf','setConfig','assign','_unitID','parse','disposeWithMe','_entities','onStarting','subscribe','_collabSession','concat','hasOwnProperty','_mountLiveShare','_reporters','PRESENTING','dispose','stopFollowing','attrs','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_sharedOperations','reverse','end','type','0\x200\x2017\x2017','_handleNewChangeSets','length','map','_uiPartsService','mask','tag','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','text','dispose$','_presenter','trim','You\x27re\x20not\x20following\x20the\x20presenter','presenter','Present\x20this\x20document','has','getOwnPropertyDescriptor','getLiveShareCoordinator','sessionStatus$','getValue','live-share-icon','override','_handleOperation','tryStartPresenting','then','pipe','_init','getInitialStates','UNIVER_SHEET','589641GlhrpP','add','children','onRendered','status$','_commandService','icon','find','random','OFFLINE','operations','pluginName','string','call','replace','173919VDWuyY','_configService','UNIVER_LIVE_SHARE_PLUGIN','not-following','extend','4223429JzwmVJ','_handleOffline','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','div','_univerInstanceService','74889FBeyAt','get','className','UniverIcon','_beIdle','unsubscribe','_injector','idle','stringify','Stop\x20presenting','defs','5357077IEcUZY','registerInitialStateReporter','event$','OPERATION','delete','set','LIVESHARE_NEW_HOST','shouldShareOperation','defIds','Start\x20following','IDLE','_status','_handleOnline','colorChannel1','displayName','defineProperty','unitId','live-share.config','getUnitId','stopPresenting','sheet','prototype','LIVESHARE_OPERATION','svg','_config','startFollowing','getCurrentTypeOfUnit$','ONLINE','univer-w-full\x20univer-mb-3\x20univer-text-sm','apply','following','56JMTvSW','fill','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','path','Start','url(#$1','10qxoMul','function','button','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','_handleNewHost','forEach'];_0x1835=function(){return _0x377475;};return _0x1835();}function xe(_0x2c34df,_0x7bee95){var _0x163f6b=_0xb92f10,_0x103cc6,_0x562cce=_0x7bee95[_0x163f6b(0x170)];return!_0x562cce||_0x562cce[_0x163f6b(0x128)]===0x0?_0x2c34df:_0x2c34df[_0x163f6b(0x12c)]===_0x163f6b(0x167)&&(!((_0x103cc6=_0x2c34df[_0x163f6b(0x146)])===null||_0x103cc6===void 0x0)&&_0x103cc6[_0x163f6b(0x128)])?c(c({},_0x2c34df),{'children':_0x2c34df[_0x163f6b(0x146)][_0x163f6b(0x129)](function(_0x42e7c8){var _0x4be909=_0x163f6b;return typeof _0x42e7c8[_0x4be909(0x1d5)]['id']==_0x4be909(0x150)&&_0x562cce&&_0x562cce['includes'](_0x42e7c8[_0x4be909(0x1d5)]['id'])?c(c({},_0x42e7c8),{'attrs':c(c({},_0x42e7c8[_0x4be909(0x1d5)]),{'id':_0x42e7c8[_0x4be909(0x1d5)]['id']+_0x7bee95[_0x4be909(0x195)]})}):_0x42e7c8;})}):_0x2c34df;}function Le(){var _0x1d0599=_0xb92f10;return Math[_0x1d0599(0x14c)]()['toString'](0x24)[_0x1d0599(0x1c0)](0x2,0x8);}W[_0xb92f10(0x176)]=_0xb92f10(0x160);var ye={'tag':_0xb92f10(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb92f10(0x19c),'viewBox':_0xb92f10(0x126),'width':'1em','height':_0xb92f10(0x198)},'children':[{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x191)}},{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x15a),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x9db80c(function(_0x3ab730,_0x4cb993){var _0x1ded31=_0xb92f10;return _0x1cbdc0(W,Object[_0x1ded31(0x1c6)]({},_0x3ab730,{'id':_0x1ded31(0x13b),'ref':_0x4cb993,'icon':ye}));});B[_0xb92f10(0x176)]='LiveShareIcon';var Re=Object[_0xb92f10(0x137)],Z=(_0x593028,_0x3050ce,_0x1b6151,_0x3ef43a)=>{var _0x81c880=_0xb92f10;for(var _0x55e21a=_0x3ef43a>0x1?void 0x0:_0x3ef43a?Re(_0x3050ce,_0x1b6151):_0x3050ce,_0x3eab2e=_0x593028[_0x81c880(0x128)]-0x1,_0x57018c;_0x3eab2e>=0x0;_0x3eab2e--)(_0x57018c=_0x593028[_0x3eab2e])&&(_0x55e21a=_0x57018c(_0x55e21a)||_0x55e21a);return _0x55e21a;},f=(_0x56115a,_0x2b9545)=>(_0x369eca,_0xc8ff29)=>_0x2b9545(_0x369eca,_0xc8ff29,_0x56115a);function _0x40cd(_0x5237a4,_0x379b98){var _0x183531=_0x1835();return _0x40cd=function(_0x40cd0a,_0x2ef57b){_0x40cd0a=_0x40cd0a-0x125;var _0x497df8=_0x183531[_0x40cd0a];return _0x497df8;},_0x40cd(_0x5237a4,_0x379b98);}let I=class extends _0x33764c{constructor(_0x597ecb,_0x11177b,_0x3793d5){var _0x17ff2a=_0xb92f10;super(),d(this,_0x17ff2a(0x1ca),new Map()),(this[_0x17ff2a(0x15c)]=_0x597ecb,this[_0x17ff2a(0x163)]=_0x11177b,this[_0x17ff2a(0x199)]=_0x3793d5,this['_init']());}async[_0xb92f10(0x138)](_0x16453e){var _0x32ce4d=_0xb92f10;return this[_0x32ce4d(0x1ca)]['has'](_0x16453e)||await this[_0x32ce4d(0x12e)](_0x16453e),this['_entities'][_0x32ce4d(0x15e)](_0x16453e);}[_0xb92f10(0x141)](){var _0xab905c=_0xb92f10;this[_0xab905c(0x15c)]['getTypeOfUnitAdded$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](async _0x85107f=>{var _0x2cdd68=_0xab905c;const _0x4ff2e2=_0x85107f['getUnitId']();this[_0x2cdd68(0x1ca)][_0x2cdd68(0x136)](_0x4ff2e2)||this['_startLiveShareCoordinator'](_0x4ff2e2);}),this[_0xab905c(0x15c)]['getTypeOfUnitDisposed$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](_0x56e824=>{var _0x1da675=_0xab905c;const _0x32cf80=_0x56e824['getUnitId'](),_0x6c6e3=this['_entities'][_0x1da675(0x15e)](_0x32cf80);_0x6c6e3==null||_0x6c6e3[_0x1da675(0x1d3)]();});}async['_startLiveShareCoordinator'](_0x3b5a27){var _0x407cb9=_0xb92f10;const _0x55fa59=await this['_collabSessionService']['requireSession'](_0x3b5a27),_0x5ce173=this[_0x407cb9(0x163)][_0x407cb9(0x1ac)](C,_0x3b5a27,_0x55fa59);return _0x5ce173['init'](),this[_0x407cb9(0x1ca)]['set'](_0x3b5a27,_0x5ce173),_0x5ce173;}};I=Z([f(0x0,_0xa30500),f(0x1,_0x40f46e(_0x59c839)),f(0x2,_0x40f46e(_0x43df75))],I);var h=(_0x1fe2b8=>(_0x1fe2b8[_0xb92f10(0x14d)]=_0xb92f10(0x1b6),_0x1fe2b8['IDLE']=_0xb92f10(0x164),_0x1fe2b8['FOLLOWING']=_0xb92f10(0x186),_0x1fe2b8[_0xb92f10(0x19a)]=_0xb92f10(0x156),_0x1fe2b8[_0xb92f10(0x1d2)]=_0xb92f10(0x1b8),_0x1fe2b8))(h||{});const Pe=_0xb92f10(0x189),Ae=0xc8;let C=class extends _0x33764c{constructor(_0x4e0cc7,_0x49e3bf,_0x450c2f,_0x4e06ed,_0x15c36f){var _0xc75c54=_0xb92f10;super(),d(this,'_status$',new _0x40c84d(_0xc75c54(0x164))),d(this,_0xc75c54(0x148),this[_0xc75c54(0x1b2)]['asObservable']()),d(this,_0xc75c54(0x141),!0x1),d(this,'_commandDisposable',null),d(this,_0xc75c54(0x131),null),(this[_0xc75c54(0x1c7)]=_0x4e0cc7,this[_0xc75c54(0x1cd)]=_0x49e3bf,this[_0xc75c54(0x154)]=_0x450c2f,this[_0xc75c54(0x1a5)]=_0x4e06ed,this[_0xc75c54(0x149)]=_0x15c36f);}get[_0xb92f10(0x173)](){var _0x28741c=_0xb92f10;return this[_0x28741c(0x1b2)][_0x28741c(0x13a)]();}[_0xb92f10(0x1d3)](){var _0x382092=_0xb92f10,_0x35f529;(_0x35f529=this[_0x382092(0x196)])==null||_0x35f529[_0x382092(0x1d3)](),this[_0x382092(0x1b2)][_0x382092(0x1b9)](_0x382092(0x164)),this[_0x382092(0x1b2)]['complete']();}[_0xb92f10(0x19f)](){var _0x144733=_0xb92f10;this[_0x144733(0x141)]||(this[_0x144733(0x141)]=!0x0,this[_0x144733(0x1cd)][_0x144733(0x139)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x54b933=>{var _0x1368d4=_0x144733;switch(_0x54b933){case _0x23f1bd[_0x1368d4(0x14d)]:this['_handleOffline']();break;case _0x23f1bd[_0x1368d4(0x183)]:this[_0x1368d4(0x174)]();break;}}),this[_0x144733(0x1cd)][_0x144733(0x16a)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x3d47ae=>{var _0x25e5b9=_0x144733;const {eventID:_0x42f1e7}=_0x3d47ae;switch(_0x42f1e7){case _0x23142e[_0x25e5b9(0x16e)]:this[_0x25e5b9(0x192)](_0x3d47ae);break;case _0x23142e['LIVESHARE_OPERATION']:this[_0x25e5b9(0x13d)](_0x3d47ae);break;case _0x23142e[_0x25e5b9(0x1d7)]:this[_0x25e5b9(0x1bd)]();break;case _0x23142e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3d47ae);break;}}));}['tryStartPresenting'](){var _0x1d2ac2=_0xb92f10;this[_0x1d2ac2(0x1cd)][_0x1d2ac2(0x1b7)]({'eventID':_0x23142e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1d2ac2(0x1c7)],'userID':this[_0x1d2ac2(0x1cd)]['getMemberID']()}},this[_0x1d2ac2(0x1c7)]);}[_0xb92f10(0x17b)](){var _0x1407c6=_0xb92f10;this['_status']===_0x1407c6(0x1b8)&&(this[_0x1407c6(0x1b2)][_0x1407c6(0x1b9)](_0x1407c6(0x164)),this[_0x1407c6(0x1cd)][_0x1407c6(0x1b7)]({'eventID':_0x23142e[_0x1407c6(0x1d7)],'data':{'unitID':this[_0x1407c6(0x1c7)]}},this['_unitID']));}[_0xb92f10(0x181)](){var _0x534ee8=_0xb92f10;this[_0x534ee8(0x173)]===_0x534ee8(0x156)&&(this[_0x534ee8(0x1b2)][_0x534ee8(0x1b9)]('following'),this[_0x534ee8(0x1c2)]());}[_0xb92f10(0x1d4)](){var _0x5b5e83=_0xb92f10;this['_status']===_0x5b5e83(0x186)&&this[_0x5b5e83(0x1be)]();}['_handleNewHost'](_0x14841f){var _0x46c794=_0xb92f10;const {presenter:_0x4796a}=_0x14841f[_0x46c794(0x1a1)],_0x172de8=this[_0x46c794(0x1cd)][_0x46c794(0x1ab)]();this[_0x46c794(0x131)]=_0x4796a,_0x4796a===_0x172de8?(this[_0x46c794(0x1be)](),this[_0x46c794(0x19e)]()):this[_0x46c794(0x173)]!=='not-following'&&(this['_stopPresenting'](),this[_0x46c794(0x1c2)]());}[_0xb92f10(0x1a9)](){var _0x561d47=_0xb92f10;const _0x1c4069={'eventID':_0x23142e['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x561d47(0x1b7)](_0x1c4069,this[_0x561d47(0x1c7)]);}[_0xb92f10(0x1bd)](){var _0x225761=_0xb92f10;this[_0x225761(0x131)]=null,this[_0x225761(0x173)]!==_0x225761(0x1b8)&&this[_0x225761(0x161)]();}[_0xb92f10(0x127)](_0x26cc81){var _0x2de87f=_0xb92f10;if(this[_0x2de87f(0x173)]===_0x2de87f(0x186)&&this[_0x2de87f(0x131)]===_0x26cc81[_0x2de87f(0x1a1)]['memberID']){const _0x42f544=_0x30577f(_0x26cc81['data'])[_0x2de87f(0x1a4)][_0x2de87f(0x1d9)]()[_0x2de87f(0x14b)](_0x3ee59c=>_0x3ee59c['id']===_0xec3140['id']);if(_0x42f544){const _0x56cb7a=_0x42f544[_0x2de87f(0x1bc)][_0x2de87f(0x178)],_0x23690d=_0x42f544['params'][_0x2de87f(0x17c)]['id'];setTimeout(()=>{var _0x720292=_0x2de87f;this[_0x720292(0x149)][_0x720292(0x1a7)](_0xe638c0['id'],{'unitId':_0x56cb7a,'subUnitId':_0x23690d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x41151a=_0xb92f10;this[_0x41151a(0x1b2)][_0x41151a(0x1b9)]('presenting');const _0x3e6923=new Map(),_0x5d23fb=this['_commandDisposable']=new _0x413621();_0x5d23fb[_0x41151a(0x145)](_0x11b934(()=>{var _0x5bbcda=_0x41151a;_0x3e6923[_0x5bbcda(0x193)](_0x55b9c6=>_0x55b9c6[_0x5bbcda(0x1b4)]()),_0x3e6923[_0x5bbcda(0x1b5)]();})),_0x5d23fb[_0x41151a(0x145)](this[_0x41151a(0x149)]['onCommandExecuted'](_0x33e008=>{var _0x51fcb1=_0x41151a,_0x258a98;if(_0x33e008[_0x51fcb1(0x125)]!==_0x3a232d[_0x51fcb1(0x16b)]||!this['_liveShareService']['shouldShareOperation'](_0x33e008['id']))return;const {id:_0x304fd8}=_0x33e008;let _0x3d053b;_0x3e6923[_0x51fcb1(0x136)](_0x304fd8)?_0x3d053b=_0x3e6923['get'](_0x304fd8):(_0x3d053b=new _0x4d13be(),_0x3e6923[_0x51fcb1(0x16d)](_0x304fd8,_0x3d053b),_0x3d053b[_0x51fcb1(0x140)](_0x36ebc9((_0x258a98=this[_0x51fcb1(0x154)][_0x51fcb1(0x19d)](Pe))!=null?_0x258a98:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51fcb1(0x1cc)](_0x1e08cc=>{var _0x3901d8=_0x51fcb1;this[_0x3901d8(0x1cd)][_0x3901d8(0x1b7)]({'eventID':_0x23142e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3901d8(0x1c7)],'operations':{[_0x1e08cc['id']]:{'id':_0x1e08cc['id'],'params':JSON['stringify'](_0x1e08cc[_0x3901d8(0x1bc)])}}}},this[_0x3901d8(0x1c7)]);})),_0x3d053b[_0x51fcb1(0x1b9)](_0x33e008);})),this['_liveShareService'][_0x41151a(0x142)](this['_unitID'])[_0x41151a(0x193)](_0x3a4e47=>this[_0x41151a(0x1cd)][_0x41151a(0x1b7)]({'eventID':_0x23142e[_0x41151a(0x17e)],'data':{'unitID':this[_0x41151a(0x1c7)],'operations':{[_0x3a4e47['id']]:{'id':_0x3a4e47['id'],'params':JSON[_0x41151a(0x165)](_0x3a4e47['params'])}}}},this[_0x41151a(0x1c7)]));}['_stopPresenting'](){var _0x257c9b=_0xb92f10,_0x591fa3;this[_0x257c9b(0x1b2)][_0x257c9b(0x1b9)]('idle'),(_0x591fa3=this[_0x257c9b(0x196)])==null||_0x591fa3[_0x257c9b(0x1d3)](),this[_0x257c9b(0x196)]=null;}[_0xb92f10(0x1c2)](){var _0x25d0b5=_0xb92f10,_0x11bc4d;(_0x11bc4d=this[_0x25d0b5(0x196)])==null||_0x11bc4d[_0x25d0b5(0x1d3)](),this[_0x25d0b5(0x1b2)][_0x25d0b5(0x1b9)](_0x25d0b5(0x186));}[_0xb92f10(0x161)](){var _0x3ac23e=_0xb92f10,_0x3a21b6;this['_status$'][_0x3ac23e(0x1b9)](_0x3ac23e(0x164)),(_0x3a21b6=this['_commandDisposable'])==null||_0x3a21b6[_0x3ac23e(0x1d3)](),this[_0x3ac23e(0x196)]=null;}[_0xb92f10(0x1be)](){var _0x1c2efe=_0xb92f10,_0x21c471;this[_0x1c2efe(0x1b2)][_0x1c2efe(0x1b9)](_0x1c2efe(0x156)),(_0x21c471=this['_commandDisposable'])==null||_0x21c471['dispose']();}[_0xb92f10(0x13d)](_0x974e30){var _0x333293=_0xb92f10;if([_0x333293(0x1b8),_0x333293(0x156),'offline']['includes'](this[_0x333293(0x173)])||!_0x974e30['data'][_0x333293(0x134)]||_0x974e30[_0x333293(0x1a1)]['presenter']===this[_0x333293(0x1cd)]['getMemberID']())return;this['_status']===_0x333293(0x164)&&this[_0x333293(0x1c2)]();const _0x3eb228=_0x974e30[_0x333293(0x1a1)][_0x333293(0x14e)];Object[_0x333293(0x1b1)](_0x3eb228)['forEach'](_0x3ff192=>{var _0x549dfd=_0x333293;this[_0x549dfd(0x149)][_0x549dfd(0x1a7)](_0x3ff192['id'],_0x3ff192[_0x549dfd(0x1bc)]?JSON[_0x549dfd(0x1c8)](_0x3ff192[_0x549dfd(0x1bc)]):null,{'fromCollab':!0x0});});}[_0xb92f10(0x159)](){var _0xafccc0=_0xb92f10,_0x5a0a7c;this[_0xafccc0(0x1b2)][_0xafccc0(0x1b9)]('offline'),(_0x5a0a7c=this[_0xafccc0(0x196)])==null||_0x5a0a7c[_0xafccc0(0x1d3)]();}['_handleOnline'](){var _0xbd1a7e=_0xb92f10;this[_0xbd1a7e(0x1b2)][_0xbd1a7e(0x1b9)](_0xbd1a7e(0x164)),this['_fetchOperations']();}};C=Z([f(0x2,_0x57314a),f(0x3,_0x40f46e(L)),f(0x4,_0x282f21)],C);function Te(){var _0x4e9fa8=_0xb92f10;const _0x25aef1=_0xc15240(I),_0x162861=_0xc15240(_0xa30500),_0x421d8a=_0x224427(()=>_0x162861[_0x4e9fa8(0x182)](_0x3bf8f0[_0x4e9fa8(0x143)]),void 0x0,!0x1,[]),[_0x359fac,_0x4ddb0a]=_0x566493(null),[_0x136b5e,_0x1c19f9]=_0x566493(h[_0x4e9fa8(0x172)]),_0x53b98c=_0x5c0ac1(null);return _0x125e83(()=>(_0x421d8a&&_0x25aef1['getLiveShareCoordinator'](_0x421d8a[_0x4e9fa8(0x17a)]())[_0x4e9fa8(0x13f)](_0x4f570e=>{var _0x3bbcc8=_0x4e9fa8;_0x4ddb0a(_0x4f570e),_0x53b98c[_0x3bbcc8(0x1ae)]=_0x4f570e[_0x3bbcc8(0x148)]['subscribe'](_0x4bc696=>{_0x1c19f9(_0x4bc696);});}),()=>{var _0x13bbe7=_0x4e9fa8,_0x3b94cc;(_0x3b94cc=_0x53b98c['current'])==null||_0x3b94cc[_0x13bbe7(0x162)](),_0x53b98c[_0x13bbe7(0x1ae)]=null;}),[_0x421d8a,_0x25aef1]),_0x359fac?_0x438b6c(_0x4e7389,{'align':_0x4e9fa8(0x1da),'disabled':_0x136b5e===h[_0x4e9fa8(0x14d)],'className':_0x4e9fa8(0x1c1),'overlay':_0x438b6c($e,{'status':_0x136b5e,'coordinator':_0x359fac}),'children':_0x438b6c('button',{'className':_0x516079('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x136b5e===h[_0x4e9fa8(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136b5e!==h['OFFLINE']}),'type':_0x4e9fa8(0x190),'children':_0x438b6c(B,{'className':_0x4e9fa8(0x18a)})})}):null;}function $e(_0x49f0ac){var _0x3dc94b=_0xb92f10;const {status:_0x209509,coordinator:_0x27d29b}=_0x49f0ac;switch(_0x209509){case h[_0x3dc94b(0x172)]:return _0x438b6c(Fe,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x1b0)]:return _0x438b6c(He,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x19a)]:return _0x438b6c(je,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x14d)]:return _0x438b6c(Ve,{});case h['PRESENTING']:return _0x438b6c(Ue,{'coordinator':_0x27d29b});default:return null;}}function Fe(_0x12aae6){var _0x19e557=_0xb92f10;const {coordinator:_0x500ea0}=_0x12aae6;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x19e557(0x15b),{'className':_0x19e557(0x184),'children':_0x19e557(0x135)}),_0x438b6c(_0x598980,{'onClick':()=>_0x500ea0[_0x19e557(0x13e)](),'children':_0x19e557(0x18c)})]});}function He(_0x83da5d){var _0x59ee2d=_0xb92f10;const {coordinator:_0x32265b}=_0x83da5d;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x59ee2d(0x15b),{'className':_0x59ee2d(0x184),'children':_0x59ee2d(0x1aa)}),_0x438b6c(_0x598980,{'onClick':()=>_0x32265b[_0x59ee2d(0x1d4)](),'children':'Stop\x20following'})]});}function je(_0x3cf812){var _0x2accb3=_0xb92f10;const {coordinator:_0x1e7826}=_0x3cf812;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x2accb3(0x15b),{'className':_0x2accb3(0x184),'children':_0x2accb3(0x133)}),_0x438b6c(_0x598980,{'variant':_0x2accb3(0x12f),'onClick':()=>_0x1e7826[_0x2accb3(0x181)](),'children':_0x2accb3(0x171)})]});}function Ue(_0x475865){var _0x1d0bc0=_0xb92f10;const {coordinator:_0x4027d3}=_0x475865;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x1d0bc0(0x15b),{'className':_0x1d0bc0(0x184),'children':_0x1d0bc0(0x12d)}),_0x438b6c(_0x598980,{'variant':_0x1d0bc0(0x1ba),'onClick':()=>_0x4027d3[_0x1d0bc0(0x17b)](),'children':_0x1d0bc0(0x166)})]});}function Ve(){return _0x438b6c(_0x240eb3,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x5aa9c8,_0x5c6171,_0x7762c0,_0x15f905)=>{var _0x1c58b3=_0xb92f10;for(var _0x4fe73c=_0x15f905>0x1?void 0x0:_0x15f905?Me(_0x5c6171,_0x7762c0):_0x5c6171,_0x407924=_0x5aa9c8[_0x1c58b3(0x128)]-0x1,_0xbb2276;_0x407924>=0x0;_0x407924--)(_0xbb2276=_0x5aa9c8[_0x407924])&&(_0x4fe73c=_0xbb2276(_0x4fe73c)||_0x4fe73c);return _0x4fe73c;},$=(_0x45bdcc,_0x4936cb)=>(_0x238466,_0x127401)=>_0x4936cb(_0x238466,_0x127401,_0x45bdcc);let b=class extends _0x36aa7d{constructor(_0x45f354,_0x36db32){var _0x5dc94c=_0xb92f10;super(),this[_0x5dc94c(0x163)]=_0x45f354,this[_0x5dc94c(0x12a)]=_0x36db32,this[_0x5dc94c(0x1d0)]();}[_0xb92f10(0x1d0)](){var _0x5b50dd=_0xb92f10;this[_0x5b50dd(0x1c9)](this[_0x5b50dd(0x12a)][_0x5b50dd(0x1a0)](_0xecae90[_0x5b50dd(0x1b3)],()=>_0x195715(Te,this[_0x5b50dd(0x163)])));}};b=ke([$(0x0,_0x40f46e(_0x59c839)),$(0x1,_0x90b79)],b);var Ge=Object[_0xb92f10(0x177)],We=Object[_0xb92f10(0x137)],Ye=(_0x5c6e5d,_0x27f948,_0x3e87b6)=>_0x27f948 in _0x5c6e5d?Ge(_0x5c6e5d,_0x27f948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e87b6}):_0x5c6e5d[_0x27f948]=_0x3e87b6,Be=(_0x7b5130,_0x1654b5,_0x262fbb,_0x627239)=>{var _0x1a2ef1=_0xb92f10;for(var _0x190a67=_0x627239>0x1?void 0x0:_0x627239?We(_0x1654b5,_0x262fbb):_0x1654b5,_0x2eb9cf=_0x7b5130[_0x1a2ef1(0x128)]-0x1,_0x3030af;_0x2eb9cf>=0x0;_0x2eb9cf--)(_0x3030af=_0x7b5130[_0x2eb9cf])&&(_0x190a67=_0x3030af(_0x190a67)||_0x190a67);return _0x190a67;},F=(_0x10d26e,_0x939c4c)=>(_0x393c01,_0xd08dde)=>_0x939c4c(_0x393c01,_0xd08dde,_0x10d26e),J=(_0x53eb41,_0x521c7b,_0x238354)=>Ye(_0x53eb41,typeof _0x521c7b!=_0xb92f10(0x1bb)?_0x521c7b+'':_0x521c7b,_0x238354);const Ze=_0xb92f10(0x155);let O=class extends _0x3de4ee{constructor(_0x283fb0=T,_0x4f54de,_0x286482){var _0x6f4418=_0xb92f10;super(),this[_0x6f4418(0x180)]=_0x283fb0,this[_0x6f4418(0x163)]=_0x4f54de,this[_0x6f4418(0x154)]=_0x286482;const {..._0x1cc9ef}=_0x50e9af({},T,this[_0x6f4418(0x180)]);this[_0x6f4418(0x154)][_0x6f4418(0x1c5)](Oe,_0x1cc9ef);}[_0xb92f10(0x1cb)](){var _0x5cced8=_0xb92f10;_0x4118c1(this[_0x5cced8(0x163)],_0x1a4071([[L],[I],[m],[b]],this[_0x5cced8(0x180)][_0x5cced8(0x13c)])),_0x179b9a(this[_0x5cced8(0x163)],[[m]]);}[_0xb92f10(0x147)](){var _0x17e34d=_0xb92f10;_0x179b9a(this[_0x17e34d(0x163)],[[b]]);}};J(O,'type',_0x3bf8f0[_0xb92f10(0x1d6)]),J(O,_0xb92f10(0x14f),Ze),O=Be([_0x35512a(_0x310bfc),F(0x1,_0x40f46e(_0x59c839)),F(0x2,_0x57314a)],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
|
-
var _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],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 _0xb92f10=_0x40cd;(function(_0x1d5fe8,_0x321b6a){var _0x34c34d=_0x40cd,_0x212d08=_0x1d5fe8();while(!![]){try{var _0x361c5c=parseInt(_0x34c34d(0x153))/0x1*(parseInt(_0x34c34d(0x18e))/0x2)+parseInt(_0x34c34d(0x144))/0x3+-parseInt(_0x34c34d(0x1a6))/0x4+-parseInt(_0x34c34d(0x1a2))/0x5*(parseInt(_0x34c34d(0x1a8))/0x6)+parseInt(_0x34c34d(0x158))/0x7+-parseInt(_0x34c34d(0x187))/0x8*(parseInt(_0x34c34d(0x15d))/0x9)+parseInt(_0x34c34d(0x1a3))/0xa*(-parseInt(_0x34c34d(0x168))/0xb);if(_0x361c5c===_0x321b6a)break;else _0x212d08['push'](_0x212d08['shift']());}catch(_0x509112){_0x212d08['push'](_0x212d08['shift']());}}}(_0x1835,0xaca11));var q=Object[_0xb92f10(0x177)],z=(_0x2cbb61,_0x297940,_0x56228f)=>_0x297940 in _0x2cbb61?q(_0x2cbb61,_0x297940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56228f}):_0x2cbb61[_0x297940]=_0x56228f,d=(_0x3899b7,_0x466d8c,_0xdf0b8d)=>z(_0x3899b7,typeof _0x466d8c!=_0xb92f10(0x1bb)?_0x466d8c+'':_0x466d8c,_0xdf0b8d);import{CollaborationSessionService as _0x43df75,SessionStatus as _0x23f1bd,UniverCollaborationClientPlugin as _0x310bfc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x36aa7d,toDisposable as _0x11b934,Inject as _0x40f46e,IUniverInstanceService as _0xa30500,Injector as _0x59c839,IConfigService as _0x57314a,ICommandService as _0x282f21,RxDisposable as _0x33764c,UniverInstanceType as _0x3bf8f0,DisposableCollection as _0x413621,CommandType as _0x3a232d,DependentOn as _0x35512a,Plugin as _0x3de4ee,merge as _0x50e9af,registerDependencies as _0x4118c1,mergeOverrideWithDependencies as _0x1a4071,touchDependencies as _0x179b9a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe638c0,InsertSheetMutation as _0xec3140}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xf771a5,SetScrollOperation as _0x49a064}from'@univerjs/sheets-ui';import{useDependency as _0xc15240,useObservable as _0x224427,IUIPartsService as _0x90b79,BuiltInUIPart as _0xecae90,connectInjector as _0x195715}from'@univerjs/ui';import{jsx as _0x438b6c,jsxs as _0x15c1f5,Fragment as _0x240eb3}from'react/jsx-runtime';import{Dropdown as _0x4e7389,clsx as _0x516079,Button as _0x598980}from'@univerjs/design';import{forwardRef as _0x9db80c,useRef as _0x5c0ac1,createElement as _0x1cbdc0,useState as _0x566493,useEffect as _0x125e83}from'react';import{CollaborationEvent as _0x23142e,parseProtocolChangeset as _0x30577f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x40c84d,Subject as _0x4d13be}from'rxjs';import{takeUntil as _0x155f84,throttleTime as _0x36ebc9}from'rxjs/operators';const Oe=_0xb92f10(0x179),T={};class L extends _0x36aa7d{constructor(){var _0x1eff34=_0xb92f10;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x1eff34(0x1d1),new Set());}[_0xb92f10(0x194)](_0xe0ac1e){var _0x1de3a5=_0xb92f10;return this['_sharedOperations']['add'](_0xe0ac1e),_0x11b934(()=>this['_sharedOperations'][_0x1de3a5(0x16c)](_0xe0ac1e));}[_0xb92f10(0x169)](_0x57bf88){var _0xa7feee=_0xb92f10;return this[_0xa7feee(0x1d1)]['add'](_0x57bf88),_0x11b934(()=>this[_0xa7feee(0x1d1)][_0xa7feee(0x16c)](_0x57bf88));}[_0xb92f10(0x16f)](_0x2adc2f){var _0x54c85d=_0xb92f10;return this[_0x54c85d(0x1d8)][_0x54c85d(0x136)](_0x2adc2f);}[_0xb92f10(0x142)](_0x5b204d){var _0x53483b=_0xb92f10;return Array[_0x53483b(0x1af)](this[_0x53483b(0x1d1)])['map'](_0x3276ac=>_0x3276ac(_0x5b204d));}}var Ee=Object[_0xb92f10(0x137)],we=(_0x254359,_0xd46257,_0xabd90a,_0x563cc2)=>{for(var _0x43bfc3=_0x563cc2>0x1?void 0x0:_0x563cc2?Ee(_0xd46257,_0xabd90a):_0xd46257,_0x1586cc=_0x254359['length']-0x1,_0x48c241;_0x1586cc>=0x0;_0x1586cc--)(_0x48c241=_0x254359[_0x1586cc])&&(_0x43bfc3=_0x48c241(_0x43bfc3)||_0x43bfc3);return _0x43bfc3;},Ne=(_0x8e92ab,_0x4ddec3)=>(_0x49d106,_0x5b0016)=>_0x4ddec3(_0x49d106,_0x5b0016,_0x8e92ab);let m=class extends _0x36aa7d{constructor(_0x3a7211){var _0x47e6df=_0xb92f10;super(),this[_0x47e6df(0x1a5)]=_0x3a7211,this['_init']();}[_0xb92f10(0x141)](){var _0x98ffaa=_0xb92f10;[_0xf771a5['id'],_0x49a064['id'],_0xe638c0['id']][_0x98ffaa(0x193)](_0x147004=>{var _0x491994=_0x98ffaa;this[_0x491994(0x1c9)](this[_0x491994(0x1a5)][_0x491994(0x194)](_0x147004));});}};m=we([Ne(0x0,_0x40f46e(L))],m);var c=function(){var _0x4568a5=_0xb92f10;return c=Object['assign']||function(_0x2507e3){var _0x210958=_0x40cd;for(var _0x1f935e,_0x305da6=0x1,_0x4b05b2=arguments[_0x210958(0x128)];_0x305da6<_0x4b05b2;_0x305da6++){_0x1f935e=arguments[_0x305da6];for(var _0x1a0589 in _0x1f935e)Object[_0x210958(0x17d)][_0x210958(0x1cf)]['call'](_0x1f935e,_0x1a0589)&&(_0x2507e3[_0x1a0589]=_0x1f935e[_0x1a0589]);}return _0x2507e3;},c[_0x4568a5(0x185)](this,arguments);},Ce=function(_0x48d83c,_0x4b31f8){var _0x44fee6=_0xb92f10,_0x558944={};for(var _0x3e3918 in _0x48d83c)Object[_0x44fee6(0x17d)]['hasOwnProperty'][_0x44fee6(0x151)](_0x48d83c,_0x3e3918)&&_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918)<0x0&&(_0x558944[_0x3e3918]=_0x48d83c[_0x3e3918]);if(_0x48d83c!=null&&typeof Object[_0x44fee6(0x1c3)]==_0x44fee6(0x18f)){for(var _0xc96f65=0x0,_0x3e3918=Object[_0x44fee6(0x1c3)](_0x48d83c);_0xc96f65<_0x3e3918[_0x44fee6(0x128)];_0xc96f65++)_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918[_0xc96f65])<0x0&&Object[_0x44fee6(0x17d)][_0x44fee6(0x1bf)][_0x44fee6(0x151)](_0x48d83c,_0x3e3918[_0xc96f65])&&(_0x558944[_0x3e3918[_0xc96f65]]=_0x48d83c[_0x3e3918[_0xc96f65]]);}return _0x558944;},W=_0x9db80c(function(_0x9057ee,_0x4ec540){var _0x1c775d=_0xb92f10,_0x536ac7=_0x9057ee[_0x1c775d(0x14a)],_0x56a88d=_0x9057ee['id'],_0x36d0e0=_0x9057ee[_0x1c775d(0x15f)],_0x3d07f8=_0x9057ee[_0x1c775d(0x157)],_0x1a6c5a=Ce(_0x9057ee,['icon','id','className','extend']),_0x2323c2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56a88d,'\x20')[_0x1c775d(0x1ce)](_0x36d0e0||'')[_0x1c775d(0x132)](),_0x2433bc=_0x5c0ac1('_'['concat'](Le()));return Y(_0x536ac7,''[_0x1c775d(0x1ce)](_0x56a88d),{'defIds':_0x536ac7[_0x1c775d(0x170)],'idSuffix':_0x2433bc[_0x1c775d(0x1ae)]},c({'ref':_0x4ec540,'className':_0x2323c2},_0x1a6c5a),_0x3d07f8);});function Y(_0xc5ee4,_0x1f1d92,_0x41078d,_0x29bef0,_0x4209e9){var _0x329e48=_0xb92f10;return _0x1cbdc0(_0xc5ee4['tag'],c(c({'key':_0x1f1d92},De(_0xc5ee4,_0x41078d,_0x4209e9)),_0x29bef0),(xe(_0xc5ee4,_0x41078d)['children']||[])[_0x329e48(0x129)](function(_0x289626,_0x235d58){var _0x145203=_0x329e48;return Y(_0x289626,''[_0x145203(0x1ce)](_0x1f1d92,'-')[_0x145203(0x1ce)](_0xc5ee4['tag'],'-')[_0x145203(0x1ce)](_0x235d58),_0x41078d,void 0x0,_0x4209e9);}));}function De(_0x1e8fbc,_0x41b888,_0x16d0c2){var _0x1c3bdb=_0xb92f10,_0x1d304e=c({},_0x1e8fbc[_0x1c3bdb(0x1d5)]);_0x16d0c2!=null&&_0x16d0c2['colorChannel1']&&_0x1d304e[_0x1c3bdb(0x188)]==='colorChannel1'&&(_0x1d304e['fill']=_0x16d0c2[_0x1c3bdb(0x175)]),_0x1e8fbc[_0x1c3bdb(0x12c)]===_0x1c3bdb(0x12b)&&_0x1d304e['id']&&(_0x1d304e['id']=_0x1d304e['id']+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x2b1512){var _0x4e6e09=_0x1c3bdb,_0x1fcd60=_0x2b1512[0x0],_0x5e286c=_0x2b1512[0x1];_0x1fcd60===_0x4e6e09(0x12b)&&typeof _0x5e286c==_0x4e6e09(0x150)&&(_0x1d304e[_0x1fcd60]=_0x5e286c[_0x4e6e09(0x152)](/url\(#(.*)\)/,_0x4e6e09(0x18d)[_0x4e6e09(0x1ce)](_0x41b888[_0x4e6e09(0x195)],')')));});var _0x4660cc=_0x41b888[_0x1c3bdb(0x170)];return!_0x4660cc||_0x4660cc[_0x1c3bdb(0x128)]===0x0||(_0x1e8fbc['tag']===_0x1c3bdb(0x19b)&&_0x1d304e['xlink:href']&&(_0x1d304e[_0x1c3bdb(0x1ad)]=_0x1d304e[_0x1c3bdb(0x1ad)]+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x236db0){var _0x23e7a5=_0x1c3bdb,_0x1cf9b0=_0x236db0[0x0],_0x37bb1f=_0x236db0[0x1];typeof _0x37bb1f=='string'&&(_0x1d304e[_0x1cf9b0]=_0x37bb1f[_0x23e7a5(0x152)](/url\(#(.*)\)/,_0x23e7a5(0x18d)['concat'](_0x41b888[_0x23e7a5(0x195)],')')));})),_0x1d304e;}function _0x1835(){var _0x377475=['registerSharedOperation','idSuffix','_commandDisposable','currentColor','1em','_collabSessionService','NOT_FOLLOWING','use','none','getConfig','_startPresenting','init','registerComponent','data','70emAAvX','10uBSsOR','mutations','_liveShareService','99968GQFIhB','executeCommand','168066qSxQZk','_fetchOperations','You\x27re\x20following\x20the\x20presenter','getMemberID','createInstance','xlink:href','current','from','FOLLOWING','values','_status$','HEADER_MENU','complete','clear','offline','send','presenting','next','default','symbol','params','_handleTerminate','_stopFollowing','propertyIsEnumerable','substring','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_startFollowing','getOwnPropertySymbols','indexOf','setConfig','assign','_unitID','parse','disposeWithMe','_entities','onStarting','subscribe','_collabSession','concat','hasOwnProperty','_mountLiveShare','_reporters','PRESENTING','dispose','stopFollowing','attrs','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_sharedOperations','reverse','end','type','0\x200\x2017\x2017','_handleNewChangeSets','length','map','_uiPartsService','mask','tag','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','text','dispose$','_presenter','trim','You\x27re\x20not\x20following\x20the\x20presenter','presenter','Present\x20this\x20document','has','getOwnPropertyDescriptor','getLiveShareCoordinator','sessionStatus$','getValue','live-share-icon','override','_handleOperation','tryStartPresenting','then','pipe','_init','getInitialStates','UNIVER_SHEET','589641GlhrpP','add','children','onRendered','status$','_commandService','icon','find','random','OFFLINE','operations','pluginName','string','call','replace','173919VDWuyY','_configService','UNIVER_LIVE_SHARE_PLUGIN','not-following','extend','4223429JzwmVJ','_handleOffline','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','div','_univerInstanceService','74889FBeyAt','get','className','UniverIcon','_beIdle','unsubscribe','_injector','idle','stringify','Stop\x20presenting','defs','5357077IEcUZY','registerInitialStateReporter','event$','OPERATION','delete','set','LIVESHARE_NEW_HOST','shouldShareOperation','defIds','Start\x20following','IDLE','_status','_handleOnline','colorChannel1','displayName','defineProperty','unitId','live-share.config','getUnitId','stopPresenting','sheet','prototype','LIVESHARE_OPERATION','svg','_config','startFollowing','getCurrentTypeOfUnit$','ONLINE','univer-w-full\x20univer-mb-3\x20univer-text-sm','apply','following','56JMTvSW','fill','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','path','Start','url(#$1','10qxoMul','function','button','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','_handleNewHost','forEach'];_0x1835=function(){return _0x377475;};return _0x1835();}function xe(_0x2c34df,_0x7bee95){var _0x163f6b=_0xb92f10,_0x103cc6,_0x562cce=_0x7bee95[_0x163f6b(0x170)];return!_0x562cce||_0x562cce[_0x163f6b(0x128)]===0x0?_0x2c34df:_0x2c34df[_0x163f6b(0x12c)]===_0x163f6b(0x167)&&(!((_0x103cc6=_0x2c34df[_0x163f6b(0x146)])===null||_0x103cc6===void 0x0)&&_0x103cc6[_0x163f6b(0x128)])?c(c({},_0x2c34df),{'children':_0x2c34df[_0x163f6b(0x146)][_0x163f6b(0x129)](function(_0x42e7c8){var _0x4be909=_0x163f6b;return typeof _0x42e7c8[_0x4be909(0x1d5)]['id']==_0x4be909(0x150)&&_0x562cce&&_0x562cce['includes'](_0x42e7c8[_0x4be909(0x1d5)]['id'])?c(c({},_0x42e7c8),{'attrs':c(c({},_0x42e7c8[_0x4be909(0x1d5)]),{'id':_0x42e7c8[_0x4be909(0x1d5)]['id']+_0x7bee95[_0x4be909(0x195)]})}):_0x42e7c8;})}):_0x2c34df;}function Le(){var _0x1d0599=_0xb92f10;return Math[_0x1d0599(0x14c)]()['toString'](0x24)[_0x1d0599(0x1c0)](0x2,0x8);}W[_0xb92f10(0x176)]=_0xb92f10(0x160);var ye={'tag':_0xb92f10(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb92f10(0x19c),'viewBox':_0xb92f10(0x126),'width':'1em','height':_0xb92f10(0x198)},'children':[{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x191)}},{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x15a),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x9db80c(function(_0x3ab730,_0x4cb993){var _0x1ded31=_0xb92f10;return _0x1cbdc0(W,Object[_0x1ded31(0x1c6)]({},_0x3ab730,{'id':_0x1ded31(0x13b),'ref':_0x4cb993,'icon':ye}));});B[_0xb92f10(0x176)]='LiveShareIcon';var Re=Object[_0xb92f10(0x137)],Z=(_0x593028,_0x3050ce,_0x1b6151,_0x3ef43a)=>{var _0x81c880=_0xb92f10;for(var _0x55e21a=_0x3ef43a>0x1?void 0x0:_0x3ef43a?Re(_0x3050ce,_0x1b6151):_0x3050ce,_0x3eab2e=_0x593028[_0x81c880(0x128)]-0x1,_0x57018c;_0x3eab2e>=0x0;_0x3eab2e--)(_0x57018c=_0x593028[_0x3eab2e])&&(_0x55e21a=_0x57018c(_0x55e21a)||_0x55e21a);return _0x55e21a;},f=(_0x56115a,_0x2b9545)=>(_0x369eca,_0xc8ff29)=>_0x2b9545(_0x369eca,_0xc8ff29,_0x56115a);function _0x40cd(_0x5237a4,_0x379b98){var _0x183531=_0x1835();return _0x40cd=function(_0x40cd0a,_0x2ef57b){_0x40cd0a=_0x40cd0a-0x125;var _0x497df8=_0x183531[_0x40cd0a];return _0x497df8;},_0x40cd(_0x5237a4,_0x379b98);}let I=class extends _0x33764c{constructor(_0x597ecb,_0x11177b,_0x3793d5){var _0x17ff2a=_0xb92f10;super(),d(this,_0x17ff2a(0x1ca),new Map()),(this[_0x17ff2a(0x15c)]=_0x597ecb,this[_0x17ff2a(0x163)]=_0x11177b,this[_0x17ff2a(0x199)]=_0x3793d5,this['_init']());}async[_0xb92f10(0x138)](_0x16453e){var _0x32ce4d=_0xb92f10;return this[_0x32ce4d(0x1ca)]['has'](_0x16453e)||await this[_0x32ce4d(0x12e)](_0x16453e),this['_entities'][_0x32ce4d(0x15e)](_0x16453e);}[_0xb92f10(0x141)](){var _0xab905c=_0xb92f10;this[_0xab905c(0x15c)]['getTypeOfUnitAdded$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](async _0x85107f=>{var _0x2cdd68=_0xab905c;const _0x4ff2e2=_0x85107f['getUnitId']();this[_0x2cdd68(0x1ca)][_0x2cdd68(0x136)](_0x4ff2e2)||this['_startLiveShareCoordinator'](_0x4ff2e2);}),this[_0xab905c(0x15c)]['getTypeOfUnitDisposed$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](_0x56e824=>{var _0x1da675=_0xab905c;const _0x32cf80=_0x56e824['getUnitId'](),_0x6c6e3=this['_entities'][_0x1da675(0x15e)](_0x32cf80);_0x6c6e3==null||_0x6c6e3[_0x1da675(0x1d3)]();});}async['_startLiveShareCoordinator'](_0x3b5a27){var _0x407cb9=_0xb92f10;const _0x55fa59=await this['_collabSessionService']['requireSession'](_0x3b5a27),_0x5ce173=this[_0x407cb9(0x163)][_0x407cb9(0x1ac)](C,_0x3b5a27,_0x55fa59);return _0x5ce173['init'](),this[_0x407cb9(0x1ca)]['set'](_0x3b5a27,_0x5ce173),_0x5ce173;}};I=Z([f(0x0,_0xa30500),f(0x1,_0x40f46e(_0x59c839)),f(0x2,_0x40f46e(_0x43df75))],I);var h=(_0x1fe2b8=>(_0x1fe2b8[_0xb92f10(0x14d)]=_0xb92f10(0x1b6),_0x1fe2b8['IDLE']=_0xb92f10(0x164),_0x1fe2b8['FOLLOWING']=_0xb92f10(0x186),_0x1fe2b8[_0xb92f10(0x19a)]=_0xb92f10(0x156),_0x1fe2b8[_0xb92f10(0x1d2)]=_0xb92f10(0x1b8),_0x1fe2b8))(h||{});const Pe=_0xb92f10(0x189),Ae=0xc8;let C=class extends _0x33764c{constructor(_0x4e0cc7,_0x49e3bf,_0x450c2f,_0x4e06ed,_0x15c36f){var _0xc75c54=_0xb92f10;super(),d(this,'_status$',new _0x40c84d(_0xc75c54(0x164))),d(this,_0xc75c54(0x148),this[_0xc75c54(0x1b2)]['asObservable']()),d(this,_0xc75c54(0x141),!0x1),d(this,'_commandDisposable',null),d(this,_0xc75c54(0x131),null),(this[_0xc75c54(0x1c7)]=_0x4e0cc7,this[_0xc75c54(0x1cd)]=_0x49e3bf,this[_0xc75c54(0x154)]=_0x450c2f,this[_0xc75c54(0x1a5)]=_0x4e06ed,this[_0xc75c54(0x149)]=_0x15c36f);}get[_0xb92f10(0x173)](){var _0x28741c=_0xb92f10;return this[_0x28741c(0x1b2)][_0x28741c(0x13a)]();}[_0xb92f10(0x1d3)](){var _0x382092=_0xb92f10,_0x35f529;(_0x35f529=this[_0x382092(0x196)])==null||_0x35f529[_0x382092(0x1d3)](),this[_0x382092(0x1b2)][_0x382092(0x1b9)](_0x382092(0x164)),this[_0x382092(0x1b2)]['complete']();}[_0xb92f10(0x19f)](){var _0x144733=_0xb92f10;this[_0x144733(0x141)]||(this[_0x144733(0x141)]=!0x0,this[_0x144733(0x1cd)][_0x144733(0x139)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x54b933=>{var _0x1368d4=_0x144733;switch(_0x54b933){case _0x23f1bd[_0x1368d4(0x14d)]:this['_handleOffline']();break;case _0x23f1bd[_0x1368d4(0x183)]:this[_0x1368d4(0x174)]();break;}}),this[_0x144733(0x1cd)][_0x144733(0x16a)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x3d47ae=>{var _0x25e5b9=_0x144733;const {eventID:_0x42f1e7}=_0x3d47ae;switch(_0x42f1e7){case _0x23142e[_0x25e5b9(0x16e)]:this[_0x25e5b9(0x192)](_0x3d47ae);break;case _0x23142e['LIVESHARE_OPERATION']:this[_0x25e5b9(0x13d)](_0x3d47ae);break;case _0x23142e[_0x25e5b9(0x1d7)]:this[_0x25e5b9(0x1bd)]();break;case _0x23142e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3d47ae);break;}}));}['tryStartPresenting'](){var _0x1d2ac2=_0xb92f10;this[_0x1d2ac2(0x1cd)][_0x1d2ac2(0x1b7)]({'eventID':_0x23142e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1d2ac2(0x1c7)],'userID':this[_0x1d2ac2(0x1cd)]['getMemberID']()}},this[_0x1d2ac2(0x1c7)]);}[_0xb92f10(0x17b)](){var _0x1407c6=_0xb92f10;this['_status']===_0x1407c6(0x1b8)&&(this[_0x1407c6(0x1b2)][_0x1407c6(0x1b9)](_0x1407c6(0x164)),this[_0x1407c6(0x1cd)][_0x1407c6(0x1b7)]({'eventID':_0x23142e[_0x1407c6(0x1d7)],'data':{'unitID':this[_0x1407c6(0x1c7)]}},this['_unitID']));}[_0xb92f10(0x181)](){var _0x534ee8=_0xb92f10;this[_0x534ee8(0x173)]===_0x534ee8(0x156)&&(this[_0x534ee8(0x1b2)][_0x534ee8(0x1b9)]('following'),this[_0x534ee8(0x1c2)]());}[_0xb92f10(0x1d4)](){var _0x5b5e83=_0xb92f10;this['_status']===_0x5b5e83(0x186)&&this[_0x5b5e83(0x1be)]();}['_handleNewHost'](_0x14841f){var _0x46c794=_0xb92f10;const {presenter:_0x4796a}=_0x14841f[_0x46c794(0x1a1)],_0x172de8=this[_0x46c794(0x1cd)][_0x46c794(0x1ab)]();this[_0x46c794(0x131)]=_0x4796a,_0x4796a===_0x172de8?(this[_0x46c794(0x1be)](),this[_0x46c794(0x19e)]()):this[_0x46c794(0x173)]!=='not-following'&&(this['_stopPresenting'](),this[_0x46c794(0x1c2)]());}[_0xb92f10(0x1a9)](){var _0x561d47=_0xb92f10;const _0x1c4069={'eventID':_0x23142e['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x561d47(0x1b7)](_0x1c4069,this[_0x561d47(0x1c7)]);}[_0xb92f10(0x1bd)](){var _0x225761=_0xb92f10;this[_0x225761(0x131)]=null,this[_0x225761(0x173)]!==_0x225761(0x1b8)&&this[_0x225761(0x161)]();}[_0xb92f10(0x127)](_0x26cc81){var _0x2de87f=_0xb92f10;if(this[_0x2de87f(0x173)]===_0x2de87f(0x186)&&this[_0x2de87f(0x131)]===_0x26cc81[_0x2de87f(0x1a1)]['memberID']){const _0x42f544=_0x30577f(_0x26cc81['data'])[_0x2de87f(0x1a4)][_0x2de87f(0x1d9)]()[_0x2de87f(0x14b)](_0x3ee59c=>_0x3ee59c['id']===_0xec3140['id']);if(_0x42f544){const _0x56cb7a=_0x42f544[_0x2de87f(0x1bc)][_0x2de87f(0x178)],_0x23690d=_0x42f544['params'][_0x2de87f(0x17c)]['id'];setTimeout(()=>{var _0x720292=_0x2de87f;this[_0x720292(0x149)][_0x720292(0x1a7)](_0xe638c0['id'],{'unitId':_0x56cb7a,'subUnitId':_0x23690d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x41151a=_0xb92f10;this[_0x41151a(0x1b2)][_0x41151a(0x1b9)]('presenting');const _0x3e6923=new Map(),_0x5d23fb=this['_commandDisposable']=new _0x413621();_0x5d23fb[_0x41151a(0x145)](_0x11b934(()=>{var _0x5bbcda=_0x41151a;_0x3e6923[_0x5bbcda(0x193)](_0x55b9c6=>_0x55b9c6[_0x5bbcda(0x1b4)]()),_0x3e6923[_0x5bbcda(0x1b5)]();})),_0x5d23fb[_0x41151a(0x145)](this[_0x41151a(0x149)]['onCommandExecuted'](_0x33e008=>{var _0x51fcb1=_0x41151a,_0x258a98;if(_0x33e008[_0x51fcb1(0x125)]!==_0x3a232d[_0x51fcb1(0x16b)]||!this['_liveShareService']['shouldShareOperation'](_0x33e008['id']))return;const {id:_0x304fd8}=_0x33e008;let _0x3d053b;_0x3e6923[_0x51fcb1(0x136)](_0x304fd8)?_0x3d053b=_0x3e6923['get'](_0x304fd8):(_0x3d053b=new _0x4d13be(),_0x3e6923[_0x51fcb1(0x16d)](_0x304fd8,_0x3d053b),_0x3d053b[_0x51fcb1(0x140)](_0x36ebc9((_0x258a98=this[_0x51fcb1(0x154)][_0x51fcb1(0x19d)](Pe))!=null?_0x258a98:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51fcb1(0x1cc)](_0x1e08cc=>{var _0x3901d8=_0x51fcb1;this[_0x3901d8(0x1cd)][_0x3901d8(0x1b7)]({'eventID':_0x23142e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3901d8(0x1c7)],'operations':{[_0x1e08cc['id']]:{'id':_0x1e08cc['id'],'params':JSON['stringify'](_0x1e08cc[_0x3901d8(0x1bc)])}}}},this[_0x3901d8(0x1c7)]);})),_0x3d053b[_0x51fcb1(0x1b9)](_0x33e008);})),this['_liveShareService'][_0x41151a(0x142)](this['_unitID'])[_0x41151a(0x193)](_0x3a4e47=>this[_0x41151a(0x1cd)][_0x41151a(0x1b7)]({'eventID':_0x23142e[_0x41151a(0x17e)],'data':{'unitID':this[_0x41151a(0x1c7)],'operations':{[_0x3a4e47['id']]:{'id':_0x3a4e47['id'],'params':JSON[_0x41151a(0x165)](_0x3a4e47['params'])}}}},this[_0x41151a(0x1c7)]));}['_stopPresenting'](){var _0x257c9b=_0xb92f10,_0x591fa3;this[_0x257c9b(0x1b2)][_0x257c9b(0x1b9)]('idle'),(_0x591fa3=this[_0x257c9b(0x196)])==null||_0x591fa3[_0x257c9b(0x1d3)](),this[_0x257c9b(0x196)]=null;}[_0xb92f10(0x1c2)](){var _0x25d0b5=_0xb92f10,_0x11bc4d;(_0x11bc4d=this[_0x25d0b5(0x196)])==null||_0x11bc4d[_0x25d0b5(0x1d3)](),this[_0x25d0b5(0x1b2)][_0x25d0b5(0x1b9)](_0x25d0b5(0x186));}[_0xb92f10(0x161)](){var _0x3ac23e=_0xb92f10,_0x3a21b6;this['_status$'][_0x3ac23e(0x1b9)](_0x3ac23e(0x164)),(_0x3a21b6=this['_commandDisposable'])==null||_0x3a21b6[_0x3ac23e(0x1d3)](),this[_0x3ac23e(0x196)]=null;}[_0xb92f10(0x1be)](){var _0x1c2efe=_0xb92f10,_0x21c471;this[_0x1c2efe(0x1b2)][_0x1c2efe(0x1b9)](_0x1c2efe(0x156)),(_0x21c471=this['_commandDisposable'])==null||_0x21c471['dispose']();}[_0xb92f10(0x13d)](_0x974e30){var _0x333293=_0xb92f10;if([_0x333293(0x1b8),_0x333293(0x156),'offline']['includes'](this[_0x333293(0x173)])||!_0x974e30['data'][_0x333293(0x134)]||_0x974e30[_0x333293(0x1a1)]['presenter']===this[_0x333293(0x1cd)]['getMemberID']())return;this['_status']===_0x333293(0x164)&&this[_0x333293(0x1c2)]();const _0x3eb228=_0x974e30[_0x333293(0x1a1)][_0x333293(0x14e)];Object[_0x333293(0x1b1)](_0x3eb228)['forEach'](_0x3ff192=>{var _0x549dfd=_0x333293;this[_0x549dfd(0x149)][_0x549dfd(0x1a7)](_0x3ff192['id'],_0x3ff192[_0x549dfd(0x1bc)]?JSON[_0x549dfd(0x1c8)](_0x3ff192[_0x549dfd(0x1bc)]):null,{'fromCollab':!0x0});});}[_0xb92f10(0x159)](){var _0xafccc0=_0xb92f10,_0x5a0a7c;this[_0xafccc0(0x1b2)][_0xafccc0(0x1b9)]('offline'),(_0x5a0a7c=this[_0xafccc0(0x196)])==null||_0x5a0a7c[_0xafccc0(0x1d3)]();}['_handleOnline'](){var _0xbd1a7e=_0xb92f10;this[_0xbd1a7e(0x1b2)][_0xbd1a7e(0x1b9)](_0xbd1a7e(0x164)),this['_fetchOperations']();}};C=Z([f(0x2,_0x57314a),f(0x3,_0x40f46e(L)),f(0x4,_0x282f21)],C);function Te(){var _0x4e9fa8=_0xb92f10;const _0x25aef1=_0xc15240(I),_0x162861=_0xc15240(_0xa30500),_0x421d8a=_0x224427(()=>_0x162861[_0x4e9fa8(0x182)](_0x3bf8f0[_0x4e9fa8(0x143)]),void 0x0,!0x1,[]),[_0x359fac,_0x4ddb0a]=_0x566493(null),[_0x136b5e,_0x1c19f9]=_0x566493(h[_0x4e9fa8(0x172)]),_0x53b98c=_0x5c0ac1(null);return _0x125e83(()=>(_0x421d8a&&_0x25aef1['getLiveShareCoordinator'](_0x421d8a[_0x4e9fa8(0x17a)]())[_0x4e9fa8(0x13f)](_0x4f570e=>{var _0x3bbcc8=_0x4e9fa8;_0x4ddb0a(_0x4f570e),_0x53b98c[_0x3bbcc8(0x1ae)]=_0x4f570e[_0x3bbcc8(0x148)]['subscribe'](_0x4bc696=>{_0x1c19f9(_0x4bc696);});}),()=>{var _0x13bbe7=_0x4e9fa8,_0x3b94cc;(_0x3b94cc=_0x53b98c['current'])==null||_0x3b94cc[_0x13bbe7(0x162)](),_0x53b98c[_0x13bbe7(0x1ae)]=null;}),[_0x421d8a,_0x25aef1]),_0x359fac?_0x438b6c(_0x4e7389,{'align':_0x4e9fa8(0x1da),'disabled':_0x136b5e===h[_0x4e9fa8(0x14d)],'className':_0x4e9fa8(0x1c1),'overlay':_0x438b6c($e,{'status':_0x136b5e,'coordinator':_0x359fac}),'children':_0x438b6c('button',{'className':_0x516079('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x136b5e===h[_0x4e9fa8(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136b5e!==h['OFFLINE']}),'type':_0x4e9fa8(0x190),'children':_0x438b6c(B,{'className':_0x4e9fa8(0x18a)})})}):null;}function $e(_0x49f0ac){var _0x3dc94b=_0xb92f10;const {status:_0x209509,coordinator:_0x27d29b}=_0x49f0ac;switch(_0x209509){case h[_0x3dc94b(0x172)]:return _0x438b6c(Fe,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x1b0)]:return _0x438b6c(He,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x19a)]:return _0x438b6c(je,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x14d)]:return _0x438b6c(Ve,{});case h['PRESENTING']:return _0x438b6c(Ue,{'coordinator':_0x27d29b});default:return null;}}function Fe(_0x12aae6){var _0x19e557=_0xb92f10;const {coordinator:_0x500ea0}=_0x12aae6;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x19e557(0x15b),{'className':_0x19e557(0x184),'children':_0x19e557(0x135)}),_0x438b6c(_0x598980,{'onClick':()=>_0x500ea0[_0x19e557(0x13e)](),'children':_0x19e557(0x18c)})]});}function He(_0x83da5d){var _0x59ee2d=_0xb92f10;const {coordinator:_0x32265b}=_0x83da5d;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x59ee2d(0x15b),{'className':_0x59ee2d(0x184),'children':_0x59ee2d(0x1aa)}),_0x438b6c(_0x598980,{'onClick':()=>_0x32265b[_0x59ee2d(0x1d4)](),'children':'Stop\x20following'})]});}function je(_0x3cf812){var _0x2accb3=_0xb92f10;const {coordinator:_0x1e7826}=_0x3cf812;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x2accb3(0x15b),{'className':_0x2accb3(0x184),'children':_0x2accb3(0x133)}),_0x438b6c(_0x598980,{'variant':_0x2accb3(0x12f),'onClick':()=>_0x1e7826[_0x2accb3(0x181)](),'children':_0x2accb3(0x171)})]});}function Ue(_0x475865){var _0x1d0bc0=_0xb92f10;const {coordinator:_0x4027d3}=_0x475865;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x1d0bc0(0x15b),{'className':_0x1d0bc0(0x184),'children':_0x1d0bc0(0x12d)}),_0x438b6c(_0x598980,{'variant':_0x1d0bc0(0x1ba),'onClick':()=>_0x4027d3[_0x1d0bc0(0x17b)](),'children':_0x1d0bc0(0x166)})]});}function Ve(){return _0x438b6c(_0x240eb3,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x5aa9c8,_0x5c6171,_0x7762c0,_0x15f905)=>{var _0x1c58b3=_0xb92f10;for(var _0x4fe73c=_0x15f905>0x1?void 0x0:_0x15f905?Me(_0x5c6171,_0x7762c0):_0x5c6171,_0x407924=_0x5aa9c8[_0x1c58b3(0x128)]-0x1,_0xbb2276;_0x407924>=0x0;_0x407924--)(_0xbb2276=_0x5aa9c8[_0x407924])&&(_0x4fe73c=_0xbb2276(_0x4fe73c)||_0x4fe73c);return _0x4fe73c;},$=(_0x45bdcc,_0x4936cb)=>(_0x238466,_0x127401)=>_0x4936cb(_0x238466,_0x127401,_0x45bdcc);let b=class extends _0x36aa7d{constructor(_0x45f354,_0x36db32){var _0x5dc94c=_0xb92f10;super(),this[_0x5dc94c(0x163)]=_0x45f354,this[_0x5dc94c(0x12a)]=_0x36db32,this[_0x5dc94c(0x1d0)]();}[_0xb92f10(0x1d0)](){var _0x5b50dd=_0xb92f10;this[_0x5b50dd(0x1c9)](this[_0x5b50dd(0x12a)][_0x5b50dd(0x1a0)](_0xecae90[_0x5b50dd(0x1b3)],()=>_0x195715(Te,this[_0x5b50dd(0x163)])));}};b=ke([$(0x0,_0x40f46e(_0x59c839)),$(0x1,_0x90b79)],b);var Ge=Object[_0xb92f10(0x177)],We=Object[_0xb92f10(0x137)],Ye=(_0x5c6e5d,_0x27f948,_0x3e87b6)=>_0x27f948 in _0x5c6e5d?Ge(_0x5c6e5d,_0x27f948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e87b6}):_0x5c6e5d[_0x27f948]=_0x3e87b6,Be=(_0x7b5130,_0x1654b5,_0x262fbb,_0x627239)=>{var _0x1a2ef1=_0xb92f10;for(var _0x190a67=_0x627239>0x1?void 0x0:_0x627239?We(_0x1654b5,_0x262fbb):_0x1654b5,_0x2eb9cf=_0x7b5130[_0x1a2ef1(0x128)]-0x1,_0x3030af;_0x2eb9cf>=0x0;_0x2eb9cf--)(_0x3030af=_0x7b5130[_0x2eb9cf])&&(_0x190a67=_0x3030af(_0x190a67)||_0x190a67);return _0x190a67;},F=(_0x10d26e,_0x939c4c)=>(_0x393c01,_0xd08dde)=>_0x939c4c(_0x393c01,_0xd08dde,_0x10d26e),J=(_0x53eb41,_0x521c7b,_0x238354)=>Ye(_0x53eb41,typeof _0x521c7b!=_0xb92f10(0x1bb)?_0x521c7b+'':_0x521c7b,_0x238354);const Ze=_0xb92f10(0x155);let O=class extends _0x3de4ee{constructor(_0x283fb0=T,_0x4f54de,_0x286482){var _0x6f4418=_0xb92f10;super(),this[_0x6f4418(0x180)]=_0x283fb0,this[_0x6f4418(0x163)]=_0x4f54de,this[_0x6f4418(0x154)]=_0x286482;const {..._0x1cc9ef}=_0x50e9af({},T,this[_0x6f4418(0x180)]);this[_0x6f4418(0x154)][_0x6f4418(0x1c5)](Oe,_0x1cc9ef);}[_0xb92f10(0x1cb)](){var _0x5cced8=_0xb92f10;_0x4118c1(this[_0x5cced8(0x163)],_0x1a4071([[L],[I],[m],[b]],this[_0x5cced8(0x180)][_0x5cced8(0x13c)])),_0x179b9a(this[_0x5cced8(0x163)],[[m]]);}[_0xb92f10(0x147)](){var _0x17e34d=_0xb92f10;_0x179b9a(this[_0x17e34d(0x163)],[[b]]);}};J(O,'type',_0x3bf8f0[_0xb92f10(0x1d6)]),J(O,_0xb92f10(0x14f),Ze),O=Be([_0x35512a(_0x310bfc),F(0x1,_0x40f46e(_0x59c839)),F(0x2,_0x57314a)],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 _0x436d(){var _0x5ee7d5=['getCurrentTypeOfUnit$','get','LiveShareCoordinator','presenting','createElement','_collabSession','executeCommand','Start','has','defIds','7534496OiQOwg','getOwnPropertySymbols','currentColor','colorChannel1','pluginName','React','then','prototype','Stop\x20presenting','NOT_FOLLOWING','_injector','_handleNewHost','assign','displayName','takeUntil','params','_stopFollowing','clear','57BzAkuj','_handleOperation','presenter','subscribe','startFollowing','_startPresenting','live-share.config','status$','extend','throttleTime','attrs','getTypeOfUnitDisposed$','following','24BzXRAr','UniverDesign','@univerjs-pro/collaboration-client','from','parse','disposeWithMe','_handleTerminate','concat','_unitID','memberID','forwardRef','url(#$1','_fetchOperations','rxjs','string','_startFollowing','CollaborationEvent','DesktopLiveShareController','6309259OtzHuE','Stop\x20following','xlink:href','onRendered','Fragment','_reporters','useDependency','svg','InsertSheetMutation','getValue','symbol','set','UniverLiveSharePlugin','_init','add','useState','tryStartPresenting','@univerjs/sheets','PRESENTING','Button','getInitialStates','LiveShareStatus','stopPresenting','UniverProLiveShare','_handleNewChangeSets','pipe','react/jsx-runtime','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','_handleOffline','unitId','indexOf','includes','_commandDisposable','LiveShare','touchDependencies','univerjs-icon\x20univerjs-icon-','defs','UniverUi','ICommandService','complete','unsubscribe','IUniverInstanceService','_uiPartsService','className','registerSharedOperation','DependentOn','getOwnPropertyDescriptor','Disposable','length','Injector','idSuffix','UniverProCollaborationClient','current','event$','merge','button','@univerjs/sheets-ui','div','IUIPartsService','useRef','propertyIsEnumerable','Start\x20following','Plugin','getTypeOfUnitAdded$','OPERATION','1809438xXIlCL','2357050yRsXen','_status','NEW_CHANGESETS','_liveShareService','IDLE','idle','550775GurYoe','_entities','LiveShareController','@univerjs/core','data','react','replace','mutations','14eIOaEp','toDisposable','default','override','Subject','SessionStatus','values','fill','none','jsx','substring','_presenter','entries','shouldShareOperation','_configService','ONLINE','toStringTag','use','univer-w-full\x20univer-mb-3\x20univer-text-sm','248048kdOLnh','@univerjs/design','offline','Present\x20this\x20document','_commandService','_status$','SAME_OPERATION_SHARE_INTERVAL','operators','call','_config','icon','setConfig','exports','mask','@univerjs-pro/collaboration','trim','_startLiveShareCoordinator','73258OozRin','jsxs','onCommandExecuted','tag','getUnitId','forEach','useObservable','evenodd','stringify','registerInitialStateReporter','getConfig','next','http://www.w3.org/2000/svg','LIVESHARE_TERMINATE','sheet','Dropdown','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','9idGhkw','rxjs/operators','You\x27re\x20presenting\x20the\x20document','You\x27are\x20offline.','SetScrollOperation','children','LIVESHARE_FETCH_OPERATIONS','_beIdle','live-share-icon','dispose$','not-following','CommandType','toString','HEADER_MENU','CollaborationSessionService','UniverProCollaboration','univer-size-4','parseProtocolChangeset','requireSession','init','UniverSheets','delete','LIVESHARE_OPERATION','0\x200\x2017\x2017','_collabSessionService','Module','OFFLINE','getMemberID','hasOwnProperty','_sharedOperations','registerComponent','You\x27re\x20following\x20the\x20presenter','stopFollowing','map','defineProperty','@univerjs/ui','BehaviorSubject','connectInjector','1em','type','UniverInstanceType','28VBTEoF','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','UNIVER_SHEET','UniverIcon','send','getLiveShareCoordinator','Inject','dispose','DisposableCollection','UniverCore','apply','createInstance','SetWorksheetActiveOperation'];_0x436d=function(){return _0x5ee7d5;};return _0x436d();}function _0x37fa(_0x868c3a,_0xf0572b){var _0x436d88=_0x436d();return _0x37fa=function(_0x37fa67,_0x2a24c7){_0x37fa67=_0x37fa67-0xca;var _0x3a7dcc=_0x436d88[_0x37fa67];return _0x3a7dcc;},_0x37fa(_0x868c3a,_0xf0572b);}(function(_0x2a53ce,_0x542902){var _0x27420e=_0x37fa,_0x186686=_0x2a53ce();while(!![]){try{var _0x2dda7e=parseInt(_0x27420e(0x134))/0x1+parseInt(_0x27420e(0x145))/0x2*(-parseInt(_0x27420e(0x1aa))/0x3)+parseInt(_0x27420e(0x180))/0x4*(-parseInt(_0x27420e(0x119))/0x5)+-parseInt(_0x27420e(0x112))/0x6*(parseInt(_0x27420e(0x121))/0x7)+-parseInt(_0x27420e(0x198))/0x8*(-parseInt(_0x27420e(0x157))/0x9)+parseInt(_0x27420e(0x113))/0xa+-parseInt(_0x27420e(0xd1))/0xb*(-parseInt(_0x27420e(0x1b7))/0xc);if(_0x2dda7e===_0x542902)break;else _0x186686['push'](_0x186686['shift']());}catch(_0xc4243d){_0x186686['push'](_0x186686['shift']());}}}(_0x436d,0x7aaf9),function(_0x5aa92c,_0x5bba74){var _0x237cfe=_0x37fa;typeof exports=='object'&&typeof module<'u'?_0x5bba74(exports,require(_0x237cfe(0x1b9)),require('@univerjs/core'),require(_0x237cfe(0xe2)),require(_0x237cfe(0x109)),require(_0x237cfe(0x17a)),require(_0x237cfe(0xeb)),require(_0x237cfe(0x135)),require(_0x237cfe(0x11e)),require(_0x237cfe(0x142)),require(_0x237cfe(0xcc)),require(_0x237cfe(0x158))):typeof define=='function'&&define['amd']?define([_0x237cfe(0x140),_0x237cfe(0x1b9),_0x237cfe(0x11c),_0x237cfe(0xe2),_0x237cfe(0x109),_0x237cfe(0x17a),'react/jsx-runtime','@univerjs/design',_0x237cfe(0x11e),'@univerjs-pro/collaboration','rxjs',_0x237cfe(0x158)],_0x5bba74):(_0x5aa92c=typeof globalThis<'u'?globalThis:_0x5aa92c||self,_0x5bba74(_0x5aa92c[_0x237cfe(0xe8)]={},_0x5aa92c[_0x237cfe(0x104)],_0x5aa92c[_0x237cfe(0x18a)],_0x5aa92c[_0x237cfe(0x16b)],_0x5aa92c['UniverSheetsUi'],_0x5aa92c[_0x237cfe(0xf6)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x1b8)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x166)],_0x5aa92c[_0x237cfe(0xcc)],_0x5aa92c['rxjs'][_0x237cfe(0x13b)]));}(this,function(_0x565b9d,_0x30c176,_0x1036c4,_0x6b5b,_0x31fb7b,_0x42a8f4,_0x30007c,_0x3f92b9,_0xcbca53,_0xfcf66,_0x978848,_0x483d17){'use strict';var _0x543230=_0x37fa;var _0x5e12e0=Object[_0x543230(0x179)],_0x42ac7c=(_0x9acc61,_0x45eede,_0x3a14bd)=>_0x45eede in _0x9acc61?_0x5e12e0(_0x9acc61,_0x45eede,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a14bd}):_0x9acc61[_0x45eede]=_0x3a14bd,_0xabe042=(_0x9c9abf,_0x50739a,_0x217ea7)=>_0x42ac7c(_0x9c9abf,typeof _0x50739a!=_0x543230(0xdb)?_0x50739a+'':_0x50739a,_0x217ea7);const _0x5991ee=_0x543230(0x1b0),_0x4e279d={};class _0x50f0d8 extends _0x1036c4[_0x543230(0x100)]{constructor(){var _0x7738de=_0x543230;super(...arguments),_0xabe042(this,'_sharedOperations',new Set()),_0xabe042(this,_0x7738de(0xd6),new Set());}[_0x543230(0xfd)](_0x2abe9b){var _0x14b8b4=_0x543230;return this[_0x14b8b4(0x174)][_0x14b8b4(0xdf)](_0x2abe9b),_0x1036c4[_0x14b8b4(0x122)](()=>this[_0x14b8b4(0x174)]['delete'](_0x2abe9b));}[_0x543230(0x14e)](_0x3fc766){var _0x582a84=_0x543230;return this['_reporters'][_0x582a84(0xdf)](_0x3fc766),_0x1036c4[_0x582a84(0x122)](()=>this[_0x582a84(0xd6)][_0x582a84(0x16c)](_0x3fc766));}[_0x543230(0x12e)](_0x580e92){var _0x53a30b=_0x543230;return this[_0x53a30b(0x174)][_0x53a30b(0x196)](_0x580e92);}[_0x543230(0xe5)](_0x37285b){var _0x5b18b=_0x543230;return Array[_0x5b18b(0x1ba)](this[_0x5b18b(0xd6)])[_0x5b18b(0x178)](_0x59f51d=>_0x59f51d(_0x37285b));}}var _0x49729c=Object['getOwnPropertyDescriptor'],_0x4d3f7b=(_0x307752,_0x48f7e7,_0x3ae835,_0x21d072)=>{var _0x2d3b3a=_0x543230;for(var _0x8ef2c6=_0x21d072>0x1?void 0x0:_0x21d072?_0x49729c(_0x48f7e7,_0x3ae835):_0x48f7e7,_0x434231=_0x307752[_0x2d3b3a(0x101)]-0x1,_0x4b0ffe;_0x434231>=0x0;_0x434231--)(_0x4b0ffe=_0x307752[_0x434231])&&(_0x8ef2c6=_0x4b0ffe(_0x8ef2c6)||_0x8ef2c6);return _0x8ef2c6;},_0x3123e4=(_0x1b60b1,_0x2e2c32)=>(_0x3d271e,_0x4eca26)=>_0x2e2c32(_0x3d271e,_0x4eca26,_0x1b60b1);let _0xff3e31=class extends _0x1036c4['Disposable']{constructor(_0x47b602){var _0x15655a=_0x543230;super(),this[_0x15655a(0x116)]=_0x47b602,this[_0x15655a(0xde)]();}[_0x543230(0xde)](){var _0x2593f0=_0x543230;[_0x31fb7b['SetZoomRatioOperation']['id'],_0x31fb7b[_0x2593f0(0x15b)]['id'],_0x6b5b[_0x2593f0(0x18d)]['id']][_0x2593f0(0x14a)](_0x2314d7=>{var _0x3798b5=_0x2593f0;this[_0x3798b5(0x1bc)](this[_0x3798b5(0x116)]['registerSharedOperation'](_0x2314d7));});}};_0xff3e31=_0x4d3f7b([_0x3123e4(0x0,_0x1036c4[_0x543230(0x187)](_0x50f0d8))],_0xff3e31);var _0x1bcaeb=function(){var _0x244087=_0x543230;return _0x1bcaeb=Object[_0x244087(0x1a4)]||function(_0x178a94){var _0x3ec711=_0x244087;for(var _0x1bedab,_0x3a0c88=0x1,_0x2d9309=arguments[_0x3ec711(0x101)];_0x3a0c88<_0x2d9309;_0x3a0c88++){_0x1bedab=arguments[_0x3a0c88];for(var _0x287419 in _0x1bedab)Object['prototype'][_0x3ec711(0x173)][_0x3ec711(0x13c)](_0x1bedab,_0x287419)&&(_0x178a94[_0x287419]=_0x1bedab[_0x287419]);}return _0x178a94;},_0x1bcaeb[_0x244087(0x18b)](this,arguments);},_0x21a89a=function(_0x164acf,_0x33a84d){var _0x42886e=_0x543230,_0x3765f6={};for(var _0x1735c2 in _0x164acf)Object[_0x42886e(0x19f)][_0x42886e(0x173)][_0x42886e(0x13c)](_0x164acf,_0x1735c2)&&_0x33a84d[_0x42886e(0xef)](_0x1735c2)<0x0&&(_0x3765f6[_0x1735c2]=_0x164acf[_0x1735c2]);if(_0x164acf!=null&&typeof Object[_0x42886e(0x199)]=='function'){for(var _0x4fc011=0x0,_0x1735c2=Object[_0x42886e(0x199)](_0x164acf);_0x4fc011<_0x1735c2['length'];_0x4fc011++)_0x33a84d[_0x42886e(0xef)](_0x1735c2[_0x4fc011])<0x0&&Object[_0x42886e(0x19f)][_0x42886e(0x10d)][_0x42886e(0x13c)](_0x164acf,_0x1735c2[_0x4fc011])&&(_0x3765f6[_0x1735c2[_0x4fc011]]=_0x164acf[_0x1735c2[_0x4fc011]]);}return _0x3765f6;},_0x221589=_0xcbca53[_0x543230(0x1c1)](function(_0x41c59d,_0x33c32e){var _0x53e2c7=_0x543230,_0x19dcf0=_0x41c59d['icon'],_0x856411=_0x41c59d['id'],_0x254a68=_0x41c59d[_0x53e2c7(0xfc)],_0x4bf3bc=_0x41c59d[_0x53e2c7(0x1b2)],_0x3e30b6=_0x21a89a(_0x41c59d,[_0x53e2c7(0x13e),'id','className',_0x53e2c7(0x1b2)]),_0x42b105=_0x53e2c7(0xf4)[_0x53e2c7(0x1be)](_0x856411,'\x20')[_0x53e2c7(0x1be)](_0x254a68||'')[_0x53e2c7(0x143)](),_0x239761=_0xcbca53[_0x53e2c7(0x10c)]('_'['concat'](_0x42e3e3()));return _0x4ec5a0(_0x19dcf0,''[_0x53e2c7(0x1be)](_0x856411),{'defIds':_0x19dcf0[_0x53e2c7(0x197)],'idSuffix':_0x239761[_0x53e2c7(0x105)]},_0x1bcaeb({'ref':_0x33c32e,'className':_0x42b105},_0x3e30b6),_0x4bf3bc);});function _0x4ec5a0(_0x18285f,_0x224c77,_0x187b14,_0x510f8d,_0x4d50b0){var _0x52f4be=_0x543230;return _0xcbca53['createElement'](_0x18285f[_0x52f4be(0x148)],_0x1bcaeb(_0x1bcaeb({'key':_0x224c77},_0x2d1c5f(_0x18285f,_0x187b14,_0x4d50b0)),_0x510f8d),(_0x333ad5(_0x18285f,_0x187b14)[_0x52f4be(0x15c)]||[])[_0x52f4be(0x178)](function(_0xac0dbc,_0x14fc74){var _0x23af83=_0x52f4be;return _0x4ec5a0(_0xac0dbc,''[_0x23af83(0x1be)](_0x224c77,'-')['concat'](_0x18285f[_0x23af83(0x148)],'-')[_0x23af83(0x1be)](_0x14fc74),_0x187b14,void 0x0,_0x4d50b0);}));}function _0x2d1c5f(_0x4890f1,_0x385bbe,_0x50ef07){var _0x2ba85a=_0x543230,_0x3ca035=_0x1bcaeb({},_0x4890f1[_0x2ba85a(0x1b4)]);_0x50ef07!=null&&_0x50ef07['colorChannel1']&&_0x3ca035[_0x2ba85a(0x128)]===_0x2ba85a(0x19b)&&(_0x3ca035[_0x2ba85a(0x128)]=_0x50ef07[_0x2ba85a(0x19b)]),_0x4890f1['tag']===_0x2ba85a(0x141)&&_0x3ca035['id']&&(_0x3ca035['id']=_0x3ca035['id']+_0x385bbe['idSuffix']),Object[_0x2ba85a(0x12d)](_0x3ca035)['forEach'](function(_0x2d2a04){var _0x5ca871=_0x2ba85a,_0x437796=_0x2d2a04[0x0],_0x13d351=_0x2d2a04[0x1];_0x437796==='mask'&&typeof _0x13d351==_0x5ca871(0xcd)&&(_0x3ca035[_0x437796]=_0x13d351[_0x5ca871(0x11f)](/url\(#(.*)\)/,_0x5ca871(0xca)[_0x5ca871(0x1be)](_0x385bbe['idSuffix'],')')));});var _0x1863a7=_0x385bbe[_0x2ba85a(0x197)];return!_0x1863a7||_0x1863a7[_0x2ba85a(0x101)]===0x0||(_0x4890f1[_0x2ba85a(0x148)]===_0x2ba85a(0x132)&&_0x3ca035['xlink:href']&&(_0x3ca035[_0x2ba85a(0xd3)]=_0x3ca035[_0x2ba85a(0xd3)]+_0x385bbe[_0x2ba85a(0x103)]),Object[_0x2ba85a(0x12d)](_0x3ca035)[_0x2ba85a(0x14a)](function(_0x564741){var _0x1d9c04=_0x2ba85a,_0x2169de=_0x564741[0x0],_0x382c13=_0x564741[0x1];typeof _0x382c13==_0x1d9c04(0xcd)&&(_0x3ca035[_0x2169de]=_0x382c13[_0x1d9c04(0x11f)](/url\(#(.*)\)/,'url(#$1'[_0x1d9c04(0x1be)](_0x385bbe[_0x1d9c04(0x103)],')')));})),_0x3ca035;}function _0x333ad5(_0x5723ea,_0x244bc3){var _0x2d91c3=_0x543230,_0x3886f1,_0x27aebf=_0x244bc3[_0x2d91c3(0x197)];return!_0x27aebf||_0x27aebf[_0x2d91c3(0x101)]===0x0?_0x5723ea:_0x5723ea[_0x2d91c3(0x148)]===_0x2d91c3(0xf5)&&(!((_0x3886f1=_0x5723ea['children'])===null||_0x3886f1===void 0x0)&&_0x3886f1[_0x2d91c3(0x101)])?_0x1bcaeb(_0x1bcaeb({},_0x5723ea),{'children':_0x5723ea[_0x2d91c3(0x15c)]['map'](function(_0x3c51a4){var _0x522883=_0x2d91c3;return typeof _0x3c51a4[_0x522883(0x1b4)]['id']==_0x522883(0xcd)&&_0x27aebf&&_0x27aebf[_0x522883(0xf0)](_0x3c51a4[_0x522883(0x1b4)]['id'])?_0x1bcaeb(_0x1bcaeb({},_0x3c51a4),{'attrs':_0x1bcaeb(_0x1bcaeb({},_0x3c51a4[_0x522883(0x1b4)]),{'id':_0x3c51a4[_0x522883(0x1b4)]['id']+_0x244bc3['idSuffix']})}):_0x3c51a4;})}):_0x5723ea;}function _0x42e3e3(){var _0x3e2538=_0x543230;return Math['random']()[_0x3e2538(0x163)](0x24)[_0x3e2538(0x12b)](0x2,0x8);}_0x221589[_0x543230(0x1a5)]=_0x543230(0x184);var _0x118035={'tag':_0x543230(0xd8),'attrs':{'xmlns':_0x543230(0x151),'fill':_0x543230(0x129),'viewBox':_0x543230(0x16e),'width':_0x543230(0x17d),'height':_0x543230(0x17d)},'children':[{'tag':'path','attrs':{'fill':_0x543230(0x19a),'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':_0x543230(0x19a),'d':_0x543230(0xec),'fillRule':_0x543230(0x14c),'clipRule':_0x543230(0x14c)}}]},_0x57962a=_0xcbca53['forwardRef'](function(_0x490d28,_0x19efb){var _0xed070c=_0x543230;return _0xcbca53[_0xed070c(0x192)](_0x221589,Object['assign']({},_0x490d28,{'id':_0xed070c(0x15f),'ref':_0x19efb,'icon':_0x118035}));});_0x57962a[_0x543230(0x1a5)]='LiveShareIcon';var _0x53dac3=Object['getOwnPropertyDescriptor'],_0x42fc35=(_0x958701,_0xfba911,_0x5b1d10,_0x2b1d32)=>{var _0x370c4e=_0x543230;for(var _0x4c43d4=_0x2b1d32>0x1?void 0x0:_0x2b1d32?_0x53dac3(_0xfba911,_0x5b1d10):_0xfba911,_0x1cc35b=_0x958701[_0x370c4e(0x101)]-0x1,_0x2518b3;_0x1cc35b>=0x0;_0x1cc35b--)(_0x2518b3=_0x958701[_0x1cc35b])&&(_0x4c43d4=_0x2518b3(_0x4c43d4)||_0x4c43d4);return _0x4c43d4;},_0x592f3d=(_0x385796,_0x32a0a6)=>(_0x4f8339,_0x381139)=>_0x32a0a6(_0x4f8339,_0x381139,_0x385796);_0x565b9d[_0x543230(0x11b)]=class extends _0x1036c4['RxDisposable']{constructor(_0x44106c,_0x5dbdfa,_0x131a5e){var _0x36560a=_0x543230;super(),_0xabe042(this,'_entities',new Map()),(this['_univerInstanceService']=_0x44106c,this[_0x36560a(0x1a2)]=_0x5dbdfa,this[_0x36560a(0x16f)]=_0x131a5e,this[_0x36560a(0xde)]());}async[_0x543230(0x186)](_0x4fab6a){var _0x1c8451=_0x543230;return this[_0x1c8451(0x11a)]['has'](_0x4fab6a)||await this[_0x1c8451(0x144)](_0x4fab6a),this[_0x1c8451(0x11a)]['get'](_0x4fab6a);}[_0x543230(0xde)](){var _0x78dd34=_0x543230;this['_univerInstanceService'][_0x78dd34(0x110)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))[_0x78dd34(0x1ad)](async _0x59d97b=>{var _0x4b373d=_0x78dd34;const _0x2d8710=_0x59d97b[_0x4b373d(0x149)]();this[_0x4b373d(0x11a)][_0x4b373d(0x196)](_0x2d8710)||this[_0x4b373d(0x144)](_0x2d8710);}),this['_univerInstanceService'][_0x78dd34(0x1b5)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))['subscribe'](_0x33e140=>{var _0x25a39d=_0x78dd34;const _0x5ee613=_0x33e140['getUnitId'](),_0x2524d4=this[_0x25a39d(0x11a)]['get'](_0x5ee613);_0x2524d4==null||_0x2524d4['dispose']();});}async[_0x543230(0x144)](_0x340d78){var _0x3cbc3e=_0x543230;const _0x1a2d0c=await this[_0x3cbc3e(0x16f)][_0x3cbc3e(0x169)](_0x340d78),_0x55b320=this[_0x3cbc3e(0x1a2)][_0x3cbc3e(0x18c)](_0x565b9d[_0x3cbc3e(0x190)],_0x340d78,_0x1a2d0c);return _0x55b320['init'](),this[_0x3cbc3e(0x11a)]['set'](_0x340d78,_0x55b320),_0x55b320;}},_0x565b9d[_0x543230(0x11b)]=_0x42fc35([_0x592f3d(0x0,_0x1036c4[_0x543230(0xfa)]),_0x592f3d(0x1,_0x1036c4['Inject'](_0x1036c4[_0x543230(0x102)])),_0x592f3d(0x2,_0x1036c4[_0x543230(0x187)](_0x30c176[_0x543230(0x165)]))],_0x565b9d[_0x543230(0x11b)]);var _0x1b37f6=(_0x1d60c8=>(_0x1d60c8['OFFLINE']=_0x543230(0x136),_0x1d60c8['IDLE']=_0x543230(0x118),_0x1d60c8['FOLLOWING']=_0x543230(0x1b6),_0x1d60c8[_0x543230(0x1a1)]='not-following',_0x1d60c8[_0x543230(0xe3)]=_0x543230(0x191),_0x1d60c8))(_0x1b37f6||{});const _0x10e68b=_0x543230(0x13a),_0x426489=0xc8;_0x565b9d['LiveShareCoordinator']=class extends _0x1036c4['RxDisposable']{constructor(_0x1546ab,_0x2e422a,_0x1a08e8,_0x37f176,_0x6fca2f){var _0x526763=_0x543230;super(),_0xabe042(this,_0x526763(0x139),new _0x978848[(_0x526763(0x17b))](_0x526763(0x118))),_0xabe042(this,_0x526763(0x1b1),this[_0x526763(0x139)]['asObservable']()),_0xabe042(this,'_init',!0x1),_0xabe042(this,_0x526763(0xf1),null),_0xabe042(this,_0x526763(0x12c),null),(this[_0x526763(0x1bf)]=_0x1546ab,this[_0x526763(0x193)]=_0x2e422a,this[_0x526763(0x12f)]=_0x1a08e8,this[_0x526763(0x116)]=_0x37f176,this[_0x526763(0x138)]=_0x6fca2f);}get['_status'](){var _0x4a472d=_0x543230;return this[_0x4a472d(0x139)][_0x4a472d(0xda)]();}[_0x543230(0x188)](){var _0x5611b5=_0x543230,_0x4291a1;(_0x4291a1=this[_0x5611b5(0xf1)])==null||_0x4291a1[_0x5611b5(0x188)](),this[_0x5611b5(0x139)][_0x5611b5(0x150)](_0x5611b5(0x118)),this[_0x5611b5(0x139)][_0x5611b5(0xf8)]();}[_0x543230(0x16a)](){var _0x2b9a4c=_0x543230;this[_0x2b9a4c(0xde)]||(this[_0x2b9a4c(0xde)]=!0x0,this[_0x2b9a4c(0x193)]['sessionStatus$']['pipe'](_0x483d17[_0x2b9a4c(0x1a6)](this[_0x2b9a4c(0x160)]))[_0x2b9a4c(0x1ad)](_0x187fb8=>{var _0x35a244=_0x2b9a4c;switch(_0x187fb8){case _0x30c176[_0x35a244(0x126)][_0x35a244(0x171)]:this[_0x35a244(0xed)]();break;case _0x30c176[_0x35a244(0x126)][_0x35a244(0x130)]:this[_0x35a244(0x156)]();break;}}),this['_collabSession'][_0x2b9a4c(0x106)][_0x2b9a4c(0xea)](_0x483d17[_0x2b9a4c(0x1a6)](this['dispose$']))[_0x2b9a4c(0x1ad)](_0x9610fd=>{var _0x57a6f3=_0x2b9a4c;const {eventID:_0x44836a}=_0x9610fd;switch(_0x44836a){case _0xfcf66[_0x57a6f3(0xcf)]['LIVESHARE_NEW_HOST']:this[_0x57a6f3(0x1a3)](_0x9610fd);break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x16d)]:this[_0x57a6f3(0x1ab)](_0x9610fd);break;case _0xfcf66['CollaborationEvent'][_0x57a6f3(0x152)]:this[_0x57a6f3(0x1bd)]();break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x115)]:this[_0x57a6f3(0xe9)](_0x9610fd);break;}}));}[_0x543230(0xe1)](){var _0x42a850=_0x543230;this[_0x42a850(0x193)][_0x42a850(0x185)]({'eventID':_0xfcf66[_0x42a850(0xcf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x42a850(0x172)]()}},this['_unitID']);}['stopPresenting'](){var _0x527f49=_0x543230;this['_status']===_0x527f49(0x191)&&(this['_status$'][_0x527f49(0x150)](_0x527f49(0x118)),this[_0x527f49(0x193)][_0x527f49(0x185)]({'eventID':_0xfcf66[_0x527f49(0xcf)][_0x527f49(0x152)],'data':{'unitID':this[_0x527f49(0x1bf)]}},this['_unitID']));}[_0x543230(0x1ae)](){var _0xe822a4=_0x543230;this[_0xe822a4(0x114)]==='not-following'&&(this['_status$'][_0xe822a4(0x150)]('following'),this[_0xe822a4(0xce)]());}['stopFollowing'](){var _0x439843=_0x543230;this[_0x439843(0x114)]===_0x439843(0x1b6)&&this[_0x439843(0x1a8)]();}[_0x543230(0x1a3)](_0x4599f8){var _0x2fc713=_0x543230;const {presenter:_0x5d9048}=_0x4599f8[_0x2fc713(0x11d)],_0x4b161d=this[_0x2fc713(0x193)][_0x2fc713(0x172)]();this[_0x2fc713(0x12c)]=_0x5d9048,_0x5d9048===_0x4b161d?(this[_0x2fc713(0x1a8)](),this['_startPresenting']()):this[_0x2fc713(0x114)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2fc713(0xce)]());}[_0x543230(0xcb)](){var _0x12c77c=_0x543230;const _0x12c6ca={'eventID':_0xfcf66[_0x12c77c(0xcf)][_0x12c77c(0x15d)]};this[_0x12c77c(0x193)][_0x12c77c(0x185)](_0x12c6ca,this[_0x12c77c(0x1bf)]);}[_0x543230(0x1bd)](){var _0x113e75=_0x543230;this[_0x113e75(0x12c)]=null,this[_0x113e75(0x114)]!==_0x113e75(0x191)&&this[_0x113e75(0x15e)]();}[_0x543230(0xe9)](_0x39c9ab){var _0x3483d1=_0x543230;if(this['_status']===_0x3483d1(0x1b6)&&this[_0x3483d1(0x12c)]===_0x39c9ab['data'][_0x3483d1(0x1c0)]){const _0x5a5370=_0xfcf66[_0x3483d1(0x168)](_0x39c9ab[_0x3483d1(0x11d)])[_0x3483d1(0x120)]['reverse']()['find'](_0x2f86cf=>_0x2f86cf['id']===_0x6b5b[_0x3483d1(0xd9)]['id']);if(_0x5a5370){const _0x2bb471=_0x5a5370['params'][_0x3483d1(0xee)],_0x66d006=_0x5a5370[_0x3483d1(0x1a7)][_0x3483d1(0x153)]['id'];setTimeout(()=>{var _0x519b49=_0x3483d1;this[_0x519b49(0x138)][_0x519b49(0x194)](_0x6b5b[_0x519b49(0x18d)]['id'],{'unitId':_0x2bb471,'subUnitId':_0x66d006},{'fromCollab':!0x0});});}}}[_0x543230(0x1af)](){var _0x3a15e3=_0x543230;this[_0x3a15e3(0x139)][_0x3a15e3(0x150)](_0x3a15e3(0x191));const _0x5008a5=new Map(),_0x1acf26=this[_0x3a15e3(0xf1)]=new _0x1036c4[(_0x3a15e3(0x189))]();_0x1acf26[_0x3a15e3(0xdf)](_0x1036c4['toDisposable'](()=>{var _0x169880=_0x3a15e3;_0x5008a5[_0x169880(0x14a)](_0x3f8f92=>_0x3f8f92[_0x169880(0xf8)]()),_0x5008a5[_0x169880(0x1a9)]();})),_0x1acf26['add'](this[_0x3a15e3(0x138)][_0x3a15e3(0x147)](_0x26d0d3=>{var _0x4b6e81=_0x3a15e3,_0x5a7063;if(_0x26d0d3[_0x4b6e81(0x17e)]!==_0x1036c4[_0x4b6e81(0x162)][_0x4b6e81(0x111)]||!this[_0x4b6e81(0x116)]['shouldShareOperation'](_0x26d0d3['id']))return;const {id:_0x1048fa}=_0x26d0d3;let _0x5dd920;_0x5008a5[_0x4b6e81(0x196)](_0x1048fa)?_0x5dd920=_0x5008a5[_0x4b6e81(0x18f)](_0x1048fa):(_0x5dd920=new _0x978848[(_0x4b6e81(0x125))](),_0x5008a5[_0x4b6e81(0xdc)](_0x1048fa,_0x5dd920),_0x5dd920[_0x4b6e81(0xea)](_0x483d17[_0x4b6e81(0x1b3)]((_0x5a7063=this[_0x4b6e81(0x12f)][_0x4b6e81(0x14f)](_0x10e68b))!=null?_0x5a7063:_0x426489,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x28dc9c=>{var _0xbdc4b0=_0x4b6e81;this[_0xbdc4b0(0x193)][_0xbdc4b0(0x185)]({'eventID':_0xfcf66['CollaborationEvent'][_0xbdc4b0(0x16d)],'data':{'unitID':this[_0xbdc4b0(0x1bf)],'operations':{[_0x28dc9c['id']]:{'id':_0x28dc9c['id'],'params':JSON[_0xbdc4b0(0x14d)](_0x28dc9c['params'])}}}},this[_0xbdc4b0(0x1bf)]);})),_0x5dd920[_0x4b6e81(0x150)](_0x26d0d3);})),this['_liveShareService'][_0x3a15e3(0xe5)](this[_0x3a15e3(0x1bf)])[_0x3a15e3(0x14a)](_0x575727=>this[_0x3a15e3(0x193)][_0x3a15e3(0x185)]({'eventID':_0xfcf66[_0x3a15e3(0xcf)][_0x3a15e3(0x16d)],'data':{'unitID':this[_0x3a15e3(0x1bf)],'operations':{[_0x575727['id']]:{'id':_0x575727['id'],'params':JSON[_0x3a15e3(0x14d)](_0x575727[_0x3a15e3(0x1a7)])}}}},this[_0x3a15e3(0x1bf)]));}['_stopPresenting'](){var _0x33c77f=_0x543230,_0x156987;this[_0x33c77f(0x139)]['next'](_0x33c77f(0x118)),(_0x156987=this[_0x33c77f(0xf1)])==null||_0x156987[_0x33c77f(0x188)](),this[_0x33c77f(0xf1)]=null;}[_0x543230(0xce)](){var _0x1897d9=_0x543230,_0x50884c;(_0x50884c=this[_0x1897d9(0xf1)])==null||_0x50884c['dispose'](),this[_0x1897d9(0x139)][_0x1897d9(0x150)]('following');}[_0x543230(0x15e)](){var _0x26ba26=_0x543230,_0x139c7c;this[_0x26ba26(0x139)]['next'](_0x26ba26(0x118)),(_0x139c7c=this['_commandDisposable'])==null||_0x139c7c[_0x26ba26(0x188)](),this[_0x26ba26(0xf1)]=null;}[_0x543230(0x1a8)](){var _0x312e2f=_0x543230,_0x18b540;this[_0x312e2f(0x139)][_0x312e2f(0x150)](_0x312e2f(0x161)),(_0x18b540=this[_0x312e2f(0xf1)])==null||_0x18b540[_0x312e2f(0x188)]();}['_handleOperation'](_0x1ea257){var _0x299b0f=_0x543230;if([_0x299b0f(0x191),'not-following',_0x299b0f(0x136)][_0x299b0f(0xf0)](this[_0x299b0f(0x114)])||!_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]||_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]===this[_0x299b0f(0x193)][_0x299b0f(0x172)]())return;this['_status']===_0x299b0f(0x118)&&this[_0x299b0f(0xce)]();const _0x6665a9=_0x1ea257[_0x299b0f(0x11d)]['operations'];Object[_0x299b0f(0x127)](_0x6665a9)['forEach'](_0x4325d5=>{var _0x550117=_0x299b0f;this[_0x550117(0x138)]['executeCommand'](_0x4325d5['id'],_0x4325d5[_0x550117(0x1a7)]?JSON[_0x550117(0x1bb)](_0x4325d5[_0x550117(0x1a7)]):null,{'fromCollab':!0x0});});}[_0x543230(0xed)](){var _0x1e3d41=_0x543230,_0x50c9c1;this['_status$'][_0x1e3d41(0x150)](_0x1e3d41(0x136)),(_0x50c9c1=this['_commandDisposable'])==null||_0x50c9c1[_0x1e3d41(0x188)]();}['_handleOnline'](){var _0x4343f3=_0x543230;this['_status$'][_0x4343f3(0x150)]('idle'),this[_0x4343f3(0xcb)]();}},_0x565b9d['LiveShareCoordinator']=_0x42fc35([_0x592f3d(0x2,_0x1036c4[_0x543230(0x182)]),_0x592f3d(0x3,_0x1036c4[_0x543230(0x187)](_0x50f0d8)),_0x592f3d(0x4,_0x1036c4[_0x543230(0xf7)])],_0x565b9d['LiveShareCoordinator']);function _0x4819eb(){var _0x4932e7=_0x543230;const _0xf2dbd4=_0x42a8f4[_0x4932e7(0xd7)](_0x565b9d[_0x4932e7(0x11b)]),_0x5b4b8f=_0x42a8f4['useDependency'](_0x1036c4[_0x4932e7(0xfa)]),_0x3b6f18=_0x42a8f4[_0x4932e7(0x14b)](()=>_0x5b4b8f[_0x4932e7(0x18e)](_0x1036c4['UniverInstanceType'][_0x4932e7(0x183)]),void 0x0,!0x1,[]),[_0x308a51,_0x4bbe5c]=_0xcbca53[_0x4932e7(0xe0)](null),[_0x56171f,_0x40932a]=_0xcbca53[_0x4932e7(0xe0)](_0x1b37f6[_0x4932e7(0x117)]),_0x4585eb=_0xcbca53['useRef'](null);return _0xcbca53['useEffect'](()=>(_0x3b6f18&&_0xf2dbd4[_0x4932e7(0x186)](_0x3b6f18['getUnitId']())[_0x4932e7(0x19e)](_0x1ccf3a=>{var _0x47af24=_0x4932e7;_0x4bbe5c(_0x1ccf3a),_0x4585eb[_0x47af24(0x105)]=_0x1ccf3a['status$']['subscribe'](_0x275dac=>{_0x40932a(_0x275dac);});}),()=>{var _0x53086c=_0x4932e7,_0x1b12c8;(_0x1b12c8=_0x4585eb[_0x53086c(0x105)])==null||_0x1b12c8[_0x53086c(0xf9)](),_0x4585eb[_0x53086c(0x105)]=null;}),[_0x3b6f18,_0xf2dbd4]),_0x308a51?_0x30007c[_0x4932e7(0x12a)](_0x3f92b9[_0x4932e7(0x154)],{'align':'end','disabled':_0x56171f===_0x1b37f6['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x30007c['jsx'](_0x102854,{'status':_0x56171f,'coordinator':_0x308a51}),'children':_0x30007c[_0x4932e7(0x12a)](_0x4932e7(0x108),{'className':_0x3f92b9['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x56171f===_0x1b37f6[_0x4932e7(0x171)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56171f!==_0x1b37f6[_0x4932e7(0x171)]}),'type':_0x4932e7(0x108),'children':_0x30007c[_0x4932e7(0x12a)](_0x57962a,{'className':_0x4932e7(0x167)})})}):null;}function _0x102854(_0x1de96f){var _0x325759=_0x543230;const {status:_0x45a3bb,coordinator:_0x32811a}=_0x1de96f;switch(_0x45a3bb){case _0x1b37f6['IDLE']:return _0x30007c[_0x325759(0x12a)](_0x3c9c49,{'coordinator':_0x32811a});case _0x1b37f6['FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x24abf9,{'coordinator':_0x32811a});case _0x1b37f6['NOT_FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x387bc2,{'coordinator':_0x32811a});case _0x1b37f6[_0x325759(0x171)]:return _0x30007c[_0x325759(0x12a)](_0x1dd38f,{});case _0x1b37f6[_0x325759(0xe3)]:return _0x30007c['jsx'](_0x189a5f,{'coordinator':_0x32811a});default:return null;}}function _0x3c9c49(_0x46d494){var _0x22ad8e=_0x543230;const {coordinator:_0x19beb9}=_0x46d494;return _0x30007c[_0x22ad8e(0x146)](_0x30007c[_0x22ad8e(0xd5)],{'children':[_0x30007c['jsx'](_0x22ad8e(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x22ad8e(0x137)}),_0x30007c[_0x22ad8e(0x12a)](_0x3f92b9[_0x22ad8e(0xe4)],{'onClick':()=>_0x19beb9[_0x22ad8e(0xe1)](),'children':_0x22ad8e(0x195)})]});}function _0x24abf9(_0x56dafb){var _0x57499a=_0x543230;const {coordinator:_0x38299c}=_0x56dafb;return _0x30007c[_0x57499a(0x146)](_0x30007c[_0x57499a(0xd5)],{'children':[_0x30007c['jsx'](_0x57499a(0x10a),{'className':_0x57499a(0x133),'children':_0x57499a(0x176)}),_0x30007c[_0x57499a(0x12a)](_0x3f92b9[_0x57499a(0xe4)],{'onClick':()=>_0x38299c[_0x57499a(0x177)](),'children':_0x57499a(0xd2)})]});}function _0x387bc2(_0x4885e5){var _0xcd02af=_0x543230;const {coordinator:_0x5aae4c}=_0x4885e5;return _0x30007c['jsxs'](_0x30007c[_0xcd02af(0xd5)],{'children':[_0x30007c[_0xcd02af(0x12a)](_0xcd02af(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xcd02af(0x181)}),_0x30007c[_0xcd02af(0x12a)](_0x3f92b9['Button'],{'variant':'text','onClick':()=>_0x5aae4c[_0xcd02af(0x1ae)](),'children':_0xcd02af(0x10e)})]});}function _0x189a5f(_0x307da6){var _0x1a24f5=_0x543230;const {coordinator:_0x5c11c0}=_0x307da6;return _0x30007c['jsxs'](_0x30007c['Fragment'],{'children':[_0x30007c[_0x1a24f5(0x12a)](_0x1a24f5(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a24f5(0x159)}),_0x30007c[_0x1a24f5(0x12a)](_0x3f92b9[_0x1a24f5(0xe4)],{'variant':_0x1a24f5(0x123),'onClick':()=>_0x5c11c0[_0x1a24f5(0xe7)](),'children':_0x1a24f5(0x1a0)})]});}function _0x1dd38f(){var _0x283a7e=_0x543230;return _0x30007c[_0x283a7e(0x12a)](_0x30007c[_0x283a7e(0xd5)],{'children':_0x283a7e(0x15a)});}var _0xe05321=Object[_0x543230(0xff)],_0x4b5716=(_0x55b308,_0x2c6bc2,_0xfb9a4a,_0x1bf91d)=>{for(var _0xeb4007=_0x1bf91d>0x1?void 0x0:_0x1bf91d?_0xe05321(_0x2c6bc2,_0xfb9a4a):_0x2c6bc2,_0x102e26=_0x55b308['length']-0x1,_0x1ae276;_0x102e26>=0x0;_0x102e26--)(_0x1ae276=_0x55b308[_0x102e26])&&(_0xeb4007=_0x1ae276(_0xeb4007)||_0xeb4007);return _0xeb4007;},_0x20de6d=(_0x6083f,_0x44e4a2)=>(_0x1d7445,_0x1aaaa1)=>_0x44e4a2(_0x1d7445,_0x1aaaa1,_0x6083f);_0x565b9d[_0x543230(0xd0)]=class extends _0x1036c4['Disposable']{constructor(_0x4d55af,_0x47a9c7){var _0x2f1fa2=_0x543230;super(),this[_0x2f1fa2(0x1a2)]=_0x4d55af,this[_0x2f1fa2(0xfb)]=_0x47a9c7,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x2087e7=_0x543230;this['disposeWithMe'](this['_uiPartsService'][_0x2087e7(0x175)](_0x42a8f4['BuiltInUIPart'][_0x2087e7(0x164)],()=>_0x42a8f4[_0x2087e7(0x17c)](_0x4819eb,this[_0x2087e7(0x1a2)])));}},_0x565b9d[_0x543230(0xd0)]=_0x4b5716([_0x20de6d(0x0,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x20de6d(0x1,_0x42a8f4[_0x543230(0x10b)])],_0x565b9d[_0x543230(0xd0)]);var _0x582e0f=Object[_0x543230(0x179)],_0x617bfb=Object[_0x543230(0xff)],_0x31a484=(_0x5931aa,_0x25db84,_0x4e9deb)=>_0x25db84 in _0x5931aa?_0x582e0f(_0x5931aa,_0x25db84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e9deb}):_0x5931aa[_0x25db84]=_0x4e9deb,_0x4e1dfe=(_0x197b76,_0x6e59cb,_0x3d8265,_0x8f2c9e)=>{var _0x9c8cf9=_0x543230;for(var _0x4ec800=_0x8f2c9e>0x1?void 0x0:_0x8f2c9e?_0x617bfb(_0x6e59cb,_0x3d8265):_0x6e59cb,_0x32d688=_0x197b76[_0x9c8cf9(0x101)]-0x1,_0x1cec52;_0x32d688>=0x0;_0x32d688--)(_0x1cec52=_0x197b76[_0x32d688])&&(_0x4ec800=_0x1cec52(_0x4ec800)||_0x4ec800);return _0x4ec800;},_0x4b20f7=(_0x26d5e1,_0x1d584a)=>(_0x3942d0,_0x198778)=>_0x1d584a(_0x3942d0,_0x198778,_0x26d5e1),_0x2359e0=(_0x2703a3,_0x4643f4,_0x480951)=>_0x31a484(_0x2703a3,typeof _0x4643f4!=_0x543230(0xdb)?_0x4643f4+'':_0x4643f4,_0x480951);const _0x332cea=_0x543230(0x155);_0x565b9d['UniverLiveSharePlugin']=class extends _0x1036c4[_0x543230(0x10f)]{constructor(_0x15357c=_0x4e279d,_0x14f1e2,_0x20e8fd){var _0x44aa05=_0x543230;super(),this[_0x44aa05(0x13d)]=_0x15357c,this[_0x44aa05(0x1a2)]=_0x14f1e2,this['_configService']=_0x20e8fd;const {..._0x2dd3ad}=_0x1036c4[_0x44aa05(0x107)]({},_0x4e279d,this['_config']);this[_0x44aa05(0x12f)][_0x44aa05(0x13f)](_0x5991ee,_0x2dd3ad);}['onStarting'](){var _0x46aca1=_0x543230;_0x1036c4['registerDependencies'](this[_0x46aca1(0x1a2)],_0x1036c4['mergeOverrideWithDependencies']([[_0x50f0d8],[_0x565b9d[_0x46aca1(0x11b)]],[_0xff3e31],[_0x565b9d[_0x46aca1(0xd0)]]],this[_0x46aca1(0x13d)][_0x46aca1(0x124)])),_0x1036c4[_0x46aca1(0xf3)](this[_0x46aca1(0x1a2)],[[_0xff3e31]]);}[_0x543230(0xd4)](){var _0xa5ebbf=_0x543230;_0x1036c4['touchDependencies'](this[_0xa5ebbf(0x1a2)],[[_0x565b9d[_0xa5ebbf(0xd0)]]]);}},_0x2359e0(_0x565b9d['UniverLiveSharePlugin'],_0x543230(0x17e),_0x1036c4[_0x543230(0x17f)]['UNIVER_UNKNOWN']),_0x2359e0(_0x565b9d[_0x543230(0xdd)],_0x543230(0x19c),_0x332cea),_0x565b9d[_0x543230(0xdd)]=_0x4e1dfe([_0x1036c4[_0x543230(0xfe)](_0x30c176['UniverCollaborationClientPlugin']),_0x4b20f7(0x1,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x4b20f7(0x2,_0x1036c4[_0x543230(0x182)])],_0x565b9d['UniverLiveSharePlugin']),_0x565b9d[_0x543230(0xf2)]=_0x4819eb,_0x565b9d['LiveShareService']=_0x50f0d8,_0x565b9d[_0x543230(0xe6)]=_0x1b37f6,Object[_0x543230(0x179)](_0x565b9d,Symbol[_0x543230(0x131)],{'value':_0x543230(0x170)});}));
|
|
1
|
+
function _0x3b4d(_0x9fb612,_0x872483){var _0x5102df=_0x5102();return _0x3b4d=function(_0x3b4d8b,_0x2b9f2d){_0x3b4d8b=_0x3b4d8b-0x1d7;var _0x537bce=_0x5102df[_0x3b4d8b];return _0x537bce;},_0x3b4d(_0x9fb612,_0x872483);}function _0x5102(){var _0x35c757=['complete','_beIdle','BehaviorSubject','idSuffix','@univerjs-pro/collaboration','@univerjs/sheets-ui','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverLiveSharePlugin','LIVESHARE_OPERATION','getOwnPropertyDescriptor','parse','_stopFollowing','sheet','shouldShareOperation','@univerjs/ui','concat','children','type','11848956kDppAS','NEW_CHANGESETS','live-share.config','UniverUi','univer-size-4','xlink:href','Present\x20this\x20document','object','params','indexOf','_unitID','entries','getMemberID','_univerInstanceService','SessionStatus','1247632OWFZQK','offline','_handleTerminate','_collabSessionService','_handleNewChangeSets','useState','getCurrentTypeOfUnit$','colorChannel1','random','includes','useRef','pluginName','15LYpEVm','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20presenting\x20the\x20document','presenter','send','stringify','call','createInstance','live-share-icon','sessionStatus$','asObservable','NOT_FOLLOWING','getOwnPropertySymbols','startFollowing','throttleTime','React','registerSharedOperation','UniverSheetsUi','find','delete','dispose','prototype','OPERATION','none','LiveShareService','stopFollowing','IUniverInstanceService','LiveShareCoordinator','init','url(#$1','UniverProCollaboration','presenting','clsx','subscribe','CommandType','UniverSheets','LiveShareController','LIVESHARE_FETCH_OPERATIONS','SetZoomRatioOperation','useDependency','You\x27re\x20not\x20following\x20the\x20presenter','getLiveShareCoordinator','Button','not-following','IDLE','connectInjector','getConfig','Injector','tryStartPresenting','length','270121XDQjAB','2GKoyEW','ICommandService','operators','fill','override','_stopPresenting','@univerjs-pro/collaboration-client','use','trim','_handleNewHost','UniverCore','Disposable','icon','_sharedOperations','CollaborationEvent','_uiPartsService','default','forEach','LIVESHARE_NEW_HOST','_commandDisposable','Plugin','_handleOperation','symbol','You\x27re\x20following\x20the\x20presenter','text','Stop\x20following','_collabSession','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','button','@univerjs/core','LiveShare','LiveShareIcon','currentColor','_startPresenting','assign','27433dEqgpI','values','OFFLINE','tag','get','getTypeOfUnitDisposed$','UniverInstanceType','react','UNIVER_LIVE_SHARE_PLUGIN','function','string','_status','LIVESHARE_TERMINATE','2611500ZpxfQc','_configService','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','useEffect','Dropdown','react/jsx-runtime','RxDisposable','registerComponent','22yNHckq','@univerjs/design','dispose$','reverse','then','UniverCollaborationClientPlugin','2038737ZFRWYF','extend','_status$','className','1448EHrviM','defs','forwardRef','SetScrollOperation','UniverIcon','getUnitId','UniverProCollaborationClient','30ysEUQi','setConfig','rxjs','UniverProLiveShare','Stop\x20presenting','end','disposeWithMe','map','stopPresenting','_entities','following','exports','_startFollowing','You\x27are\x20offline.','div','_injector','next','rxjs/operators','_liveShareService','evenodd','clear','HEADER_MENU','_reporters','PRESENTING','amd','LIVESHARE_REQUEST_HOST','DependentOn','hasOwnProperty','has','current','executeCommand','add','defineProperty','Inject','jsx','path','_init','http://www.w3.org/2000/svg','Fragment','_config','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','idle','_startLiveShareCoordinator','attrs','getTypeOfUnitAdded$','_fetchOperations','getInitialStates','ONLINE','apply','defIds','takeUntil','data','DesktopLiveShareController','_handleOnline','requireSession','set','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','status$','mask','toDisposable','_commandService','jsxs','onStarting','_presenter','UNIVER_UNKNOWN','FOLLOWING','touchDependencies','893169oIWJmE','SetWorksheetActiveOperation','pipe','IUIPartsService','@univerjs/sheets'];_0x5102=function(){return _0x35c757;};return _0x5102();}(function(_0xe5363d,_0x4edd5a){var _0x26a12e=_0x3b4d,_0x121af0=_0xe5363d();while(!![]){try{var _0x2e46d7=-parseInt(_0x26a12e(0x1fe))/0x1*(-parseInt(_0x26a12e(0x1ff))/0x2)+parseInt(_0x26a12e(0x23d))/0x3+-parseInt(_0x26a12e(0x2b1))/0x4*(-parseInt(_0x26a12e(0x2bd))/0x5)+-parseInt(_0x26a12e(0x22f))/0x6+parseInt(_0x26a12e(0x222))/0x7*(parseInt(_0x26a12e(0x241))/0x8)+-parseInt(_0x26a12e(0x28b))/0x9*(-parseInt(_0x26a12e(0x248))/0xa)+parseInt(_0x26a12e(0x237))/0xb*(-parseInt(_0x26a12e(0x2a2))/0xc);if(_0x2e46d7===_0x4edd5a)break;else _0x121af0['push'](_0x121af0['shift']());}catch(_0x2ab52d){_0x121af0['push'](_0x121af0['shift']());}}}(_0x5102,0x75c6a),function(_0x1acc09,_0x1bad8c){var _0x566a2e=_0x3b4d;typeof exports==_0x566a2e(0x2a9)&&typeof module<'u'?_0x1bad8c(exports,require(_0x566a2e(0x205)),require(_0x566a2e(0x21c)),require(_0x566a2e(0x28f)),require(_0x566a2e(0x295)),require('@univerjs/ui'),require(_0x566a2e(0x234)),require(_0x566a2e(0x238)),require(_0x566a2e(0x229)),require(_0x566a2e(0x294)),require('rxjs'),require(_0x566a2e(0x259))):typeof define==_0x566a2e(0x22b)&&define[_0x566a2e(0x260)]?define([_0x566a2e(0x253),_0x566a2e(0x205),_0x566a2e(0x21c),_0x566a2e(0x28f),_0x566a2e(0x295),_0x566a2e(0x29e),_0x566a2e(0x234),_0x566a2e(0x238),_0x566a2e(0x229),_0x566a2e(0x294),_0x566a2e(0x24a),_0x566a2e(0x259)],_0x1bad8c):(_0x1acc09=typeof globalThis<'u'?globalThis:_0x1acc09||self,_0x1bad8c(_0x1acc09[_0x566a2e(0x24b)]={},_0x1acc09[_0x566a2e(0x247)],_0x1acc09[_0x566a2e(0x209)],_0x1acc09[_0x566a2e(0x1ef)],_0x1acc09[_0x566a2e(0x1dd)],_0x1acc09[_0x566a2e(0x2a5)],_0x1acc09[_0x566a2e(0x1db)],_0x1acc09['UniverDesign'],_0x1acc09[_0x566a2e(0x1db)],_0x1acc09[_0x566a2e(0x1ea)],_0x1acc09[_0x566a2e(0x24a)],_0x1acc09[_0x566a2e(0x24a)][_0x566a2e(0x201)]));}(this,function(_0x5dd97a,_0x569cba,_0x28105a,_0x177475,_0x2daf98,_0x18ad33,_0x374754,_0x37424e,_0x1bf5e5,_0x5dc2a0,_0x1c151f,_0x41010d){'use strict';var _0xa4fc0a=_0x3b4d;var _0x3ae5a5=Object['defineProperty'],_0x375d05=(_0x240806,_0x270c5a,_0x3af71b)=>_0x270c5a in _0x240806?_0x3ae5a5(_0x240806,_0x270c5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af71b}):_0x240806[_0x270c5a]=_0x3af71b,_0x10ec6c=(_0xde92c8,_0x1d1677,_0x1bdd94)=>_0x375d05(_0xde92c8,typeof _0x1d1677!=_0xa4fc0a(0x215)?_0x1d1677+'':_0x1d1677,_0x1bdd94);const _0x12c7ae=_0xa4fc0a(0x2a4),_0x4bce67={};class _0x4c9441 extends _0x28105a['Disposable']{constructor(){super(...arguments),_0x10ec6c(this,'_sharedOperations',new Set()),_0x10ec6c(this,'_reporters',new Set());}[_0xa4fc0a(0x1dc)](_0x48480f){var _0x3d89b3=_0xa4fc0a;return this[_0x3d89b3(0x20c)][_0x3d89b3(0x267)](_0x48480f),_0x28105a['toDisposable'](()=>this['_sharedOperations'][_0x3d89b3(0x1df)](_0x48480f));}['registerInitialStateReporter'](_0x1c7419){var _0x3bdf34=_0xa4fc0a;return this['_reporters'][_0x3bdf34(0x267)](_0x1c7419),_0x28105a[_0x3bdf34(0x283)](()=>this[_0x3bdf34(0x25e)]['delete'](_0x1c7419));}[_0xa4fc0a(0x29d)](_0x1704ae){var _0x317bc6=_0xa4fc0a;return this['_sharedOperations'][_0x317bc6(0x264)](_0x1704ae);}[_0xa4fc0a(0x276)](_0x15be8a){var _0x5110c8=_0xa4fc0a;return Array['from'](this['_reporters'])[_0x5110c8(0x24f)](_0x375d42=>_0x375d42(_0x15be8a));}}var _0x38f517=Object[_0xa4fc0a(0x299)],_0x4d1342=(_0x511ac6,_0x35e0f2,_0xdbaf3f,_0x395b00)=>{var _0x5f4ea7=_0xa4fc0a;for(var _0x2f40bd=_0x395b00>0x1?void 0x0:_0x395b00?_0x38f517(_0x35e0f2,_0xdbaf3f):_0x35e0f2,_0x22c32d=_0x511ac6[_0x5f4ea7(0x1fd)]-0x1,_0x5bf10a;_0x22c32d>=0x0;_0x22c32d--)(_0x5bf10a=_0x511ac6[_0x22c32d])&&(_0x2f40bd=_0x5bf10a(_0x2f40bd)||_0x2f40bd);return _0x2f40bd;},_0x58137c=(_0x5ba5b8,_0x5e9e50)=>(_0x25a512,_0x50071c)=>_0x5e9e50(_0x25a512,_0x50071c,_0x5ba5b8);let _0x3c9c15=class extends _0x28105a[_0xa4fc0a(0x20a)]{constructor(_0x406252){var _0x4d7788=_0xa4fc0a;super(),this['_liveShareService']=_0x406252,this[_0x4d7788(0x26c)]();}[_0xa4fc0a(0x26c)](){var _0x2811b3=_0xa4fc0a;[_0x2daf98[_0x2811b3(0x1f2)]['id'],_0x2daf98[_0x2811b3(0x244)]['id'],_0x177475['SetWorksheetActiveOperation']['id']]['forEach'](_0xad6f3f=>{var _0x1ab16d=_0x2811b3;this[_0x1ab16d(0x24e)](this[_0x1ab16d(0x25a)][_0x1ab16d(0x1dc)](_0xad6f3f));});}};_0x3c9c15=_0x4d1342([_0x58137c(0x0,_0x28105a[_0xa4fc0a(0x269)](_0x4c9441))],_0x3c9c15);var _0x29272e=function(){var _0x20524d=_0xa4fc0a;return _0x29272e=Object['assign']||function(_0xed0199){var _0x437efd=_0x3b4d;for(var _0x3b8acd,_0x35faa7=0x1,_0x42c20b=arguments[_0x437efd(0x1fd)];_0x35faa7<_0x42c20b;_0x35faa7++){_0x3b8acd=arguments[_0x35faa7];for(var _0x4c3be6 in _0x3b8acd)Object['prototype'][_0x437efd(0x263)][_0x437efd(0x2c4)](_0x3b8acd,_0x4c3be6)&&(_0xed0199[_0x4c3be6]=_0x3b8acd[_0x4c3be6]);}return _0xed0199;},_0x29272e[_0x20524d(0x278)](this,arguments);},_0x1460f1=function(_0x34f6c3,_0xabfec7){var _0x2818ff=_0xa4fc0a,_0x52eaa4={};for(var _0x254024 in _0x34f6c3)Object[_0x2818ff(0x1e1)][_0x2818ff(0x263)][_0x2818ff(0x2c4)](_0x34f6c3,_0x254024)&&_0xabfec7[_0x2818ff(0x2ab)](_0x254024)<0x0&&(_0x52eaa4[_0x254024]=_0x34f6c3[_0x254024]);if(_0x34f6c3!=null&&typeof Object[_0x2818ff(0x1d8)]==_0x2818ff(0x22b)){for(var _0x165cd6=0x0,_0x254024=Object[_0x2818ff(0x1d8)](_0x34f6c3);_0x165cd6<_0x254024[_0x2818ff(0x1fd)];_0x165cd6++)_0xabfec7['indexOf'](_0x254024[_0x165cd6])<0x0&&Object[_0x2818ff(0x1e1)]['propertyIsEnumerable'][_0x2818ff(0x2c4)](_0x34f6c3,_0x254024[_0x165cd6])&&(_0x52eaa4[_0x254024[_0x165cd6]]=_0x34f6c3[_0x254024[_0x165cd6]]);}return _0x52eaa4;},_0x5a9e4e=_0x1bf5e5[_0xa4fc0a(0x243)](function(_0x256276,_0x2d531f){var _0x3c76c9=_0xa4fc0a,_0x2d2b41=_0x256276[_0x3c76c9(0x20b)],_0x26d981=_0x256276['id'],_0x402c8f=_0x256276[_0x3c76c9(0x240)],_0x2c63a0=_0x256276[_0x3c76c9(0x23e)],_0x4779c7=_0x1460f1(_0x256276,['icon','id',_0x3c76c9(0x240),_0x3c76c9(0x23e)]),_0x483e40='univerjs-icon\x20univerjs-icon-'[_0x3c76c9(0x29f)](_0x26d981,'\x20')[_0x3c76c9(0x29f)](_0x402c8f||'')[_0x3c76c9(0x207)](),_0x4a5457=_0x1bf5e5[_0x3c76c9(0x2bb)]('_'[_0x3c76c9(0x29f)](_0x30dbcd()));return _0x2a1b41(_0x2d2b41,''[_0x3c76c9(0x29f)](_0x26d981),{'defIds':_0x2d2b41[_0x3c76c9(0x279)],'idSuffix':_0x4a5457[_0x3c76c9(0x265)]},_0x29272e({'ref':_0x2d531f,'className':_0x483e40},_0x4779c7),_0x2c63a0);});function _0x2a1b41(_0x40f8ee,_0x3665a7,_0x18d8ce,_0x24d25c,_0x77370b){var _0xb665f6=_0xa4fc0a;return _0x1bf5e5['createElement'](_0x40f8ee[_0xb665f6(0x225)],_0x29272e(_0x29272e({'key':_0x3665a7},_0x53e725(_0x40f8ee,_0x18d8ce,_0x77370b)),_0x24d25c),(_0x432786(_0x40f8ee,_0x18d8ce)['children']||[])[_0xb665f6(0x24f)](function(_0x192632,_0x1edfa6){var _0xfa6abd=_0xb665f6;return _0x2a1b41(_0x192632,''['concat'](_0x3665a7,'-')[_0xfa6abd(0x29f)](_0x40f8ee[_0xfa6abd(0x225)],'-')[_0xfa6abd(0x29f)](_0x1edfa6),_0x18d8ce,void 0x0,_0x77370b);}));}function _0x53e725(_0x335315,_0x183808,_0x30ff8a){var _0x276e46=_0xa4fc0a,_0x52e79e=_0x29272e({},_0x335315[_0x276e46(0x273)]);_0x30ff8a!=null&&_0x30ff8a[_0x276e46(0x2b8)]&&_0x52e79e[_0x276e46(0x202)]==='colorChannel1'&&(_0x52e79e['fill']=_0x30ff8a['colorChannel1']),_0x335315[_0x276e46(0x225)]==='mask'&&_0x52e79e['id']&&(_0x52e79e['id']=_0x52e79e['id']+_0x183808[_0x276e46(0x293)]),Object[_0x276e46(0x2ad)](_0x52e79e)['forEach'](function(_0x43895e){var _0x5483e7=_0x276e46,_0x205ba6=_0x43895e[0x0],_0x43c152=_0x43895e[0x1];_0x205ba6===_0x5483e7(0x282)&&typeof _0x43c152==_0x5483e7(0x22c)&&(_0x52e79e[_0x205ba6]=_0x43c152['replace'](/url\(#(.*)\)/,_0x5483e7(0x1e9)[_0x5483e7(0x29f)](_0x183808['idSuffix'],')')));});var _0x304b54=_0x183808[_0x276e46(0x279)];return!_0x304b54||_0x304b54[_0x276e46(0x1fd)]===0x0||(_0x335315[_0x276e46(0x225)]===_0x276e46(0x206)&&_0x52e79e[_0x276e46(0x2a7)]&&(_0x52e79e[_0x276e46(0x2a7)]=_0x52e79e[_0x276e46(0x2a7)]+_0x183808[_0x276e46(0x293)]),Object[_0x276e46(0x2ad)](_0x52e79e)[_0x276e46(0x210)](function(_0x20ae29){var _0xdfc3fb=_0x276e46,_0x1bd65d=_0x20ae29[0x0],_0x16fb9e=_0x20ae29[0x1];typeof _0x16fb9e==_0xdfc3fb(0x22c)&&(_0x52e79e[_0x1bd65d]=_0x16fb9e['replace'](/url\(#(.*)\)/,_0xdfc3fb(0x1e9)['concat'](_0x183808[_0xdfc3fb(0x293)],')')));})),_0x52e79e;}function _0x432786(_0x2e597c,_0x2e38f7){var _0x583310=_0xa4fc0a,_0x5df16d,_0x4b5818=_0x2e38f7[_0x583310(0x279)];return!_0x4b5818||_0x4b5818[_0x583310(0x1fd)]===0x0?_0x2e597c:_0x2e597c[_0x583310(0x225)]===_0x583310(0x242)&&(!((_0x5df16d=_0x2e597c[_0x583310(0x2a0)])===null||_0x5df16d===void 0x0)&&_0x5df16d[_0x583310(0x1fd)])?_0x29272e(_0x29272e({},_0x2e597c),{'children':_0x2e597c[_0x583310(0x2a0)][_0x583310(0x24f)](function(_0x2b64c5){var _0x55de35=_0x583310;return typeof _0x2b64c5['attrs']['id']==_0x55de35(0x22c)&&_0x4b5818&&_0x4b5818[_0x55de35(0x2ba)](_0x2b64c5[_0x55de35(0x273)]['id'])?_0x29272e(_0x29272e({},_0x2b64c5),{'attrs':_0x29272e(_0x29272e({},_0x2b64c5['attrs']),{'id':_0x2b64c5[_0x55de35(0x273)]['id']+_0x2e38f7[_0x55de35(0x293)]})}):_0x2b64c5;})}):_0x2e597c;}function _0x30dbcd(){var _0x38ed7a=_0xa4fc0a;return Math[_0x38ed7a(0x2b9)]()['toString'](0x24)['substring'](0x2,0x8);}_0x5a9e4e['displayName']=_0xa4fc0a(0x245);var _0x3836ef={'tag':'svg','attrs':{'xmlns':_0xa4fc0a(0x26d),'fill':_0xa4fc0a(0x1e3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0xa4fc0a(0x26b),'attrs':{'fill':_0xa4fc0a(0x21f),'d':_0xa4fc0a(0x231)}},{'tag':_0xa4fc0a(0x26b),'attrs':{'fill':_0xa4fc0a(0x21f),'d':_0xa4fc0a(0x280),'fillRule':_0xa4fc0a(0x25b),'clipRule':_0xa4fc0a(0x25b)}}]},_0x159610=_0x1bf5e5[_0xa4fc0a(0x243)](function(_0x3e5498,_0x454707){var _0x452325=_0xa4fc0a;return _0x1bf5e5['createElement'](_0x5a9e4e,Object[_0x452325(0x221)]({},_0x3e5498,{'id':_0x452325(0x2c6),'ref':_0x454707,'icon':_0x3836ef}));});_0x159610['displayName']=_0xa4fc0a(0x21e);var _0x2084a3=Object[_0xa4fc0a(0x299)],_0x316b9d=(_0x36a3b4,_0x1bf6f0,_0x567db5,_0x28d226)=>{var _0x14561f=_0xa4fc0a;for(var _0x235306=_0x28d226>0x1?void 0x0:_0x28d226?_0x2084a3(_0x1bf6f0,_0x567db5):_0x1bf6f0,_0x513fd0=_0x36a3b4[_0x14561f(0x1fd)]-0x1,_0x136110;_0x513fd0>=0x0;_0x513fd0--)(_0x136110=_0x36a3b4[_0x513fd0])&&(_0x235306=_0x136110(_0x235306)||_0x235306);return _0x235306;},_0x5886c5=(_0x3a18be,_0x4ad736)=>(_0x3f1f4b,_0x1eabed)=>_0x4ad736(_0x3f1f4b,_0x1eabed,_0x3a18be);_0x5dd97a[_0xa4fc0a(0x1f0)]=class extends _0x28105a[_0xa4fc0a(0x235)]{constructor(_0x171d98,_0x5adb82,_0x2823d9){var _0x1092e2=_0xa4fc0a;super(),_0x10ec6c(this,_0x1092e2(0x251),new Map()),(this[_0x1092e2(0x2af)]=_0x171d98,this[_0x1092e2(0x257)]=_0x5adb82,this[_0x1092e2(0x2b4)]=_0x2823d9,this[_0x1092e2(0x26c)]());}async[_0xa4fc0a(0x1f5)](_0x5e7f3f){var _0x485a6f=_0xa4fc0a;return this[_0x485a6f(0x251)][_0x485a6f(0x264)](_0x5e7f3f)||await this[_0x485a6f(0x272)](_0x5e7f3f),this[_0x485a6f(0x251)][_0x485a6f(0x226)](_0x5e7f3f);}[_0xa4fc0a(0x26c)](){var _0x22c05d=_0xa4fc0a;this[_0x22c05d(0x2af)][_0x22c05d(0x274)](_0x28105a[_0x22c05d(0x228)][_0x22c05d(0x2be)])[_0x22c05d(0x28d)](_0x41010d[_0x22c05d(0x27a)](this[_0x22c05d(0x239)]))['subscribe'](async _0x59e135=>{var _0x3158ec=_0x22c05d;const _0x48e96e=_0x59e135[_0x3158ec(0x246)]();this[_0x3158ec(0x251)][_0x3158ec(0x264)](_0x48e96e)||this['_startLiveShareCoordinator'](_0x48e96e);}),this[_0x22c05d(0x2af)][_0x22c05d(0x227)](_0x28105a[_0x22c05d(0x228)]['UNIVER_SHEET'])[_0x22c05d(0x28d)](_0x41010d[_0x22c05d(0x27a)](this[_0x22c05d(0x239)]))[_0x22c05d(0x1ed)](_0x33dd6a=>{var _0x3570ac=_0x22c05d;const _0x52abe2=_0x33dd6a[_0x3570ac(0x246)](),_0xe92198=this['_entities'][_0x3570ac(0x226)](_0x52abe2);_0xe92198==null||_0xe92198[_0x3570ac(0x1e0)]();});}async['_startLiveShareCoordinator'](_0x249d03){var _0x4d86aa=_0xa4fc0a;const _0xefa54a=await this[_0x4d86aa(0x2b4)][_0x4d86aa(0x27e)](_0x249d03),_0x518782=this['_injector'][_0x4d86aa(0x2c5)](_0x5dd97a['LiveShareCoordinator'],_0x249d03,_0xefa54a);return _0x518782[_0x4d86aa(0x1e8)](),this['_entities'][_0x4d86aa(0x27f)](_0x249d03,_0x518782),_0x518782;}},_0x5dd97a[_0xa4fc0a(0x1f0)]=_0x316b9d([_0x5886c5(0x0,_0x28105a[_0xa4fc0a(0x1e6)]),_0x5886c5(0x1,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x5886c5(0x2,_0x28105a[_0xa4fc0a(0x269)](_0x569cba['CollaborationSessionService']))],_0x5dd97a[_0xa4fc0a(0x1f0)]);var _0x3f2ead=(_0x40049a=>(_0x40049a[_0xa4fc0a(0x224)]=_0xa4fc0a(0x2b2),_0x40049a[_0xa4fc0a(0x1f8)]='idle',_0x40049a[_0xa4fc0a(0x289)]=_0xa4fc0a(0x252),_0x40049a['NOT_FOLLOWING']=_0xa4fc0a(0x1f7),_0x40049a[_0xa4fc0a(0x25f)]='presenting',_0x40049a))(_0x3f2ead||{});const _0x54b8dc=_0xa4fc0a(0x2bf),_0x162342=0xc8;_0x5dd97a['LiveShareCoordinator']=class extends _0x28105a[_0xa4fc0a(0x235)]{constructor(_0x82106b,_0x15246e,_0x119aad,_0x54ec71,_0x35b69b){var _0x2cae95=_0xa4fc0a;super(),_0x10ec6c(this,'_status$',new _0x1c151f[(_0x2cae95(0x292))]('idle')),_0x10ec6c(this,_0x2cae95(0x281),this[_0x2cae95(0x23f)][_0x2cae95(0x2c8)]()),_0x10ec6c(this,'_init',!0x1),_0x10ec6c(this,_0x2cae95(0x212),null),_0x10ec6c(this,'_presenter',null),(this['_unitID']=_0x82106b,this[_0x2cae95(0x219)]=_0x15246e,this[_0x2cae95(0x230)]=_0x119aad,this[_0x2cae95(0x25a)]=_0x54ec71,this[_0x2cae95(0x284)]=_0x35b69b);}get[_0xa4fc0a(0x22d)](){return this['_status$']['getValue']();}[_0xa4fc0a(0x1e0)](){var _0x33232d=_0xa4fc0a,_0x3af794;(_0x3af794=this['_commandDisposable'])==null||_0x3af794[_0x33232d(0x1e0)](),this[_0x33232d(0x23f)][_0x33232d(0x258)]('idle'),this[_0x33232d(0x23f)][_0x33232d(0x290)]();}[_0xa4fc0a(0x1e8)](){var _0x519fba=_0xa4fc0a;this[_0x519fba(0x26c)]||(this[_0x519fba(0x26c)]=!0x0,this[_0x519fba(0x219)][_0x519fba(0x2c7)][_0x519fba(0x28d)](_0x41010d[_0x519fba(0x27a)](this[_0x519fba(0x239)]))[_0x519fba(0x1ed)](_0x56c7d8=>{var _0x258785=_0x519fba;switch(_0x56c7d8){case _0x569cba[_0x258785(0x2b0)][_0x258785(0x224)]:this['_handleOffline']();break;case _0x569cba[_0x258785(0x2b0)][_0x258785(0x277)]:this[_0x258785(0x27d)]();break;}}),this[_0x519fba(0x219)]['event$'][_0x519fba(0x28d)](_0x41010d[_0x519fba(0x27a)](this[_0x519fba(0x239)]))[_0x519fba(0x1ed)](_0x59cf28=>{var _0x1d6293=_0x519fba;const {eventID:_0x78f57}=_0x59cf28;switch(_0x78f57){case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x211)]:this[_0x1d6293(0x208)](_0x59cf28);break;case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x298)]:this[_0x1d6293(0x214)](_0x59cf28);break;case _0x5dc2a0['CollaborationEvent'][_0x1d6293(0x22e)]:this[_0x1d6293(0x2b3)]();break;case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x2a3)]:this[_0x1d6293(0x2b5)](_0x59cf28);break;}}));}[_0xa4fc0a(0x1fc)](){var _0xfb1761=_0xa4fc0a;this[_0xfb1761(0x219)][_0xfb1761(0x2c2)]({'eventID':_0x5dc2a0[_0xfb1761(0x20d)][_0xfb1761(0x261)],'data':{'unitID':this[_0xfb1761(0x2ac)],'userID':this[_0xfb1761(0x219)][_0xfb1761(0x2ae)]()}},this[_0xfb1761(0x2ac)]);}[_0xa4fc0a(0x250)](){var _0x3912e9=_0xa4fc0a;this[_0x3912e9(0x22d)]===_0x3912e9(0x1eb)&&(this['_status$']['next'](_0x3912e9(0x271)),this['_collabSession']['send']({'eventID':_0x5dc2a0[_0x3912e9(0x20d)][_0x3912e9(0x22e)],'data':{'unitID':this[_0x3912e9(0x2ac)]}},this[_0x3912e9(0x2ac)]));}['startFollowing'](){var _0x2d22e6=_0xa4fc0a;this[_0x2d22e6(0x22d)]===_0x2d22e6(0x1f7)&&(this['_status$'][_0x2d22e6(0x258)](_0x2d22e6(0x252)),this[_0x2d22e6(0x254)]());}[_0xa4fc0a(0x1e5)](){var _0x4d78ef=_0xa4fc0a;this['_status']===_0x4d78ef(0x252)&&this[_0x4d78ef(0x29b)]();}['_handleNewHost'](_0xb83c52){var _0x2c7b75=_0xa4fc0a;const {presenter:_0x1fbcda}=_0xb83c52[_0x2c7b75(0x27b)],_0x33ab15=this[_0x2c7b75(0x219)][_0x2c7b75(0x2ae)]();this[_0x2c7b75(0x287)]=_0x1fbcda,_0x1fbcda===_0x33ab15?(this[_0x2c7b75(0x29b)](),this[_0x2c7b75(0x220)]()):this['_status']!==_0x2c7b75(0x1f7)&&(this[_0x2c7b75(0x204)](),this[_0x2c7b75(0x254)]());}[_0xa4fc0a(0x275)](){var _0x549678=_0xa4fc0a;const _0x423d91={'eventID':_0x5dc2a0[_0x549678(0x20d)][_0x549678(0x1f1)]};this[_0x549678(0x219)][_0x549678(0x2c2)](_0x423d91,this[_0x549678(0x2ac)]);}['_handleTerminate'](){var _0x178e7b=_0xa4fc0a;this['_presenter']=null,this[_0x178e7b(0x22d)]!=='presenting'&&this[_0x178e7b(0x291)]();}['_handleNewChangeSets'](_0x246e47){var _0x2811f4=_0xa4fc0a;if(this[_0x2811f4(0x22d)]===_0x2811f4(0x252)&&this[_0x2811f4(0x287)]===_0x246e47['data']['memberID']){const _0x3a4f2d=_0x5dc2a0['parseProtocolChangeset'](_0x246e47['data'])['mutations'][_0x2811f4(0x23a)]()[_0x2811f4(0x1de)](_0x1fd13e=>_0x1fd13e['id']===_0x177475['InsertSheetMutation']['id']);if(_0x3a4f2d){const _0xff34ea=_0x3a4f2d[_0x2811f4(0x2aa)]['unitId'],_0x19ce52=_0x3a4f2d[_0x2811f4(0x2aa)][_0x2811f4(0x29c)]['id'];setTimeout(()=>{var _0x527e01=_0x2811f4;this[_0x527e01(0x284)][_0x527e01(0x266)](_0x177475[_0x527e01(0x28c)]['id'],{'unitId':_0xff34ea,'subUnitId':_0x19ce52},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2ea300=_0xa4fc0a;this['_status$']['next'](_0x2ea300(0x1eb));const _0x4c0b0d=new Map(),_0xfd460a=this[_0x2ea300(0x212)]=new _0x28105a['DisposableCollection']();_0xfd460a[_0x2ea300(0x267)](_0x28105a[_0x2ea300(0x283)](()=>{var _0x557ba4=_0x2ea300;_0x4c0b0d[_0x557ba4(0x210)](_0x12a6a0=>_0x12a6a0['complete']()),_0x4c0b0d[_0x557ba4(0x25c)]();})),_0xfd460a[_0x2ea300(0x267)](this['_commandService']['onCommandExecuted'](_0x27053c=>{var _0x13dec0=_0x2ea300,_0x47d423;if(_0x27053c[_0x13dec0(0x2a1)]!==_0x28105a[_0x13dec0(0x1ee)][_0x13dec0(0x1e2)]||!this[_0x13dec0(0x25a)][_0x13dec0(0x29d)](_0x27053c['id']))return;const {id:_0x4e1c1e}=_0x27053c;let _0x31d40d;_0x4c0b0d[_0x13dec0(0x264)](_0x4e1c1e)?_0x31d40d=_0x4c0b0d[_0x13dec0(0x226)](_0x4e1c1e):(_0x31d40d=new _0x1c151f['Subject'](),_0x4c0b0d['set'](_0x4e1c1e,_0x31d40d),_0x31d40d[_0x13dec0(0x28d)](_0x41010d[_0x13dec0(0x1da)]((_0x47d423=this['_configService'][_0x13dec0(0x1fa)](_0x54b8dc))!=null?_0x47d423:_0x162342,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13dec0(0x1ed)](_0x132591=>{var _0x5c931a=_0x13dec0;this[_0x5c931a(0x219)][_0x5c931a(0x2c2)]({'eventID':_0x5dc2a0[_0x5c931a(0x20d)][_0x5c931a(0x298)],'data':{'unitID':this['_unitID'],'operations':{[_0x132591['id']]:{'id':_0x132591['id'],'params':JSON[_0x5c931a(0x2c3)](_0x132591[_0x5c931a(0x2aa)])}}}},this['_unitID']);})),_0x31d40d[_0x13dec0(0x258)](_0x27053c);})),this[_0x2ea300(0x25a)][_0x2ea300(0x276)](this[_0x2ea300(0x2ac)])[_0x2ea300(0x210)](_0x572059=>this[_0x2ea300(0x219)]['send']({'eventID':_0x5dc2a0[_0x2ea300(0x20d)][_0x2ea300(0x298)],'data':{'unitID':this[_0x2ea300(0x2ac)],'operations':{[_0x572059['id']]:{'id':_0x572059['id'],'params':JSON[_0x2ea300(0x2c3)](_0x572059[_0x2ea300(0x2aa)])}}}},this['_unitID']));}[_0xa4fc0a(0x204)](){var _0x358337=_0xa4fc0a,_0x3a2426;this[_0x358337(0x23f)][_0x358337(0x258)](_0x358337(0x271)),(_0x3a2426=this[_0x358337(0x212)])==null||_0x3a2426[_0x358337(0x1e0)](),this[_0x358337(0x212)]=null;}[_0xa4fc0a(0x254)](){var _0x4e0be5=_0xa4fc0a,_0x2fc700;(_0x2fc700=this[_0x4e0be5(0x212)])==null||_0x2fc700[_0x4e0be5(0x1e0)](),this[_0x4e0be5(0x23f)][_0x4e0be5(0x258)](_0x4e0be5(0x252));}[_0xa4fc0a(0x291)](){var _0x3b21ff=_0xa4fc0a,_0x46b428;this['_status$'][_0x3b21ff(0x258)](_0x3b21ff(0x271)),(_0x46b428=this[_0x3b21ff(0x212)])==null||_0x46b428[_0x3b21ff(0x1e0)](),this[_0x3b21ff(0x212)]=null;}[_0xa4fc0a(0x29b)](){var _0x213623=_0xa4fc0a,_0x2cadef;this['_status$'][_0x213623(0x258)]('not-following'),(_0x2cadef=this[_0x213623(0x212)])==null||_0x2cadef[_0x213623(0x1e0)]();}[_0xa4fc0a(0x214)](_0xac2d2e){var _0x178cdc=_0xa4fc0a;if([_0x178cdc(0x1eb),_0x178cdc(0x1f7),_0x178cdc(0x2b2)][_0x178cdc(0x2ba)](this[_0x178cdc(0x22d)])||!_0xac2d2e[_0x178cdc(0x27b)][_0x178cdc(0x2c1)]||_0xac2d2e['data'][_0x178cdc(0x2c1)]===this[_0x178cdc(0x219)][_0x178cdc(0x2ae)]())return;this['_status']==='idle'&&this[_0x178cdc(0x254)]();const _0x5450f5=_0xac2d2e[_0x178cdc(0x27b)]['operations'];Object[_0x178cdc(0x223)](_0x5450f5)[_0x178cdc(0x210)](_0x538947=>{var _0xf4e094=_0x178cdc;this['_commandService'][_0xf4e094(0x266)](_0x538947['id'],_0x538947['params']?JSON[_0xf4e094(0x29a)](_0x538947[_0xf4e094(0x2aa)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1195c0=_0xa4fc0a,_0xd64bb0;this[_0x1195c0(0x23f)][_0x1195c0(0x258)](_0x1195c0(0x2b2)),(_0xd64bb0=this['_commandDisposable'])==null||_0xd64bb0[_0x1195c0(0x1e0)]();}['_handleOnline'](){var _0x4e6bc7=_0xa4fc0a;this[_0x4e6bc7(0x23f)]['next'](_0x4e6bc7(0x271)),this[_0x4e6bc7(0x275)]();}},_0x5dd97a[_0xa4fc0a(0x1e7)]=_0x316b9d([_0x5886c5(0x2,_0x28105a['IConfigService']),_0x5886c5(0x3,_0x28105a[_0xa4fc0a(0x269)](_0x4c9441)),_0x5886c5(0x4,_0x28105a[_0xa4fc0a(0x200)])],_0x5dd97a[_0xa4fc0a(0x1e7)]);function _0x44498e(){var _0x3fb542=_0xa4fc0a;const _0x4234ca=_0x18ad33['useDependency'](_0x5dd97a[_0x3fb542(0x1f0)]),_0x3fe0bf=_0x18ad33[_0x3fb542(0x1f3)](_0x28105a[_0x3fb542(0x1e6)]),_0x199c58=_0x18ad33['useObservable'](()=>_0x3fe0bf[_0x3fb542(0x2b7)](_0x28105a['UniverInstanceType'][_0x3fb542(0x2be)]),void 0x0,!0x1,[]),[_0x5b4068,_0x24d656]=_0x1bf5e5[_0x3fb542(0x2b6)](null),[_0x4ef9e5,_0x5770b0]=_0x1bf5e5['useState'](_0x3f2ead[_0x3fb542(0x1f8)]),_0x2796f0=_0x1bf5e5[_0x3fb542(0x2bb)](null);return _0x1bf5e5[_0x3fb542(0x232)](()=>(_0x199c58&&_0x4234ca['getLiveShareCoordinator'](_0x199c58[_0x3fb542(0x246)]())[_0x3fb542(0x23b)](_0x3522c9=>{var _0xbf3e79=_0x3fb542;_0x24d656(_0x3522c9),_0x2796f0[_0xbf3e79(0x265)]=_0x3522c9['status$'][_0xbf3e79(0x1ed)](_0x38dd56=>{_0x5770b0(_0x38dd56);});}),()=>{var _0x1c012d=_0x3fb542,_0x4db921;(_0x4db921=_0x2796f0['current'])==null||_0x4db921['unsubscribe'](),_0x2796f0[_0x1c012d(0x265)]=null;}),[_0x199c58,_0x4234ca]),_0x5b4068?_0x374754['jsx'](_0x37424e[_0x3fb542(0x233)],{'align':_0x3fb542(0x24d),'disabled':_0x4ef9e5===_0x3f2ead[_0x3fb542(0x224)],'className':_0x3fb542(0x270),'overlay':_0x374754[_0x3fb542(0x26a)](_0x4e9f51,{'status':_0x4ef9e5,'coordinator':_0x5b4068}),'children':_0x374754[_0x3fb542(0x26a)](_0x3fb542(0x21b),{'className':_0x37424e[_0x3fb542(0x1ec)](_0x3fb542(0x21a),{'univer-cursor-not-allowed':_0x4ef9e5===_0x3f2ead[_0x3fb542(0x224)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ef9e5!==_0x3f2ead['OFFLINE']}),'type':_0x3fb542(0x21b),'children':_0x374754[_0x3fb542(0x26a)](_0x159610,{'className':_0x3fb542(0x2a6)})})}):null;}function _0x4e9f51(_0x37481e){var _0xa6bb8=_0xa4fc0a;const {status:_0x38286d,coordinator:_0x2df0cb}=_0x37481e;switch(_0x38286d){case _0x3f2ead[_0xa6bb8(0x1f8)]:return _0x374754[_0xa6bb8(0x26a)](_0xb63d96,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x289)]:return _0x374754['jsx'](_0x149739,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x1d7)]:return _0x374754[_0xa6bb8(0x26a)](_0x487723,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x224)]:return _0x374754[_0xa6bb8(0x26a)](_0x5adcbd,{});case _0x3f2ead[_0xa6bb8(0x25f)]:return _0x374754[_0xa6bb8(0x26a)](_0x50a248,{'coordinator':_0x2df0cb});default:return null;}}function _0xb63d96(_0xc570bd){var _0x4be8a1=_0xa4fc0a;const {coordinator:_0x444d31}=_0xc570bd;return _0x374754[_0x4be8a1(0x285)](_0x374754[_0x4be8a1(0x26e)],{'children':[_0x374754[_0x4be8a1(0x26a)](_0x4be8a1(0x256),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4be8a1(0x2a8)}),_0x374754['jsx'](_0x37424e[_0x4be8a1(0x1f6)],{'onClick':()=>_0x444d31[_0x4be8a1(0x1fc)](),'children':'Start'})]});}function _0x149739(_0x3c5305){var _0x4801da=_0xa4fc0a;const {coordinator:_0x4b6b8a}=_0x3c5305;return _0x374754['jsxs'](_0x374754[_0x4801da(0x26e)],{'children':[_0x374754[_0x4801da(0x26a)](_0x4801da(0x256),{'className':_0x4801da(0x296),'children':_0x4801da(0x216)}),_0x374754[_0x4801da(0x26a)](_0x37424e[_0x4801da(0x1f6)],{'onClick':()=>_0x4b6b8a['stopFollowing'](),'children':_0x4801da(0x218)})]});}function _0x487723(_0xcc0352){var _0x465b30=_0xa4fc0a;const {coordinator:_0x366b14}=_0xcc0352;return _0x374754[_0x465b30(0x285)](_0x374754['Fragment'],{'children':[_0x374754['jsx']('div',{'className':_0x465b30(0x296),'children':_0x465b30(0x1f4)}),_0x374754[_0x465b30(0x26a)](_0x37424e[_0x465b30(0x1f6)],{'variant':_0x465b30(0x217),'onClick':()=>_0x366b14[_0x465b30(0x1d9)](),'children':'Start\x20following'})]});}function _0x50a248(_0x20aa80){var _0x367a65=_0xa4fc0a;const {coordinator:_0x3db18c}=_0x20aa80;return _0x374754[_0x367a65(0x285)](_0x374754[_0x367a65(0x26e)],{'children':[_0x374754[_0x367a65(0x26a)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x367a65(0x2c0)}),_0x374754['jsx'](_0x37424e['Button'],{'variant':_0x367a65(0x20f),'onClick':()=>_0x3db18c[_0x367a65(0x250)](),'children':_0x367a65(0x24c)})]});}function _0x5adcbd(){var _0x178cc9=_0xa4fc0a;return _0x374754[_0x178cc9(0x26a)](_0x374754[_0x178cc9(0x26e)],{'children':_0x178cc9(0x255)});}var _0x45bf44=Object[_0xa4fc0a(0x299)],_0x5b02a8=(_0x32fe4b,_0x5d65a1,_0x15b49d,_0x104ebe)=>{var _0x456fbf=_0xa4fc0a;for(var _0x2f96b4=_0x104ebe>0x1?void 0x0:_0x104ebe?_0x45bf44(_0x5d65a1,_0x15b49d):_0x5d65a1,_0x55204f=_0x32fe4b[_0x456fbf(0x1fd)]-0x1,_0x251913;_0x55204f>=0x0;_0x55204f--)(_0x251913=_0x32fe4b[_0x55204f])&&(_0x2f96b4=_0x251913(_0x2f96b4)||_0x2f96b4);return _0x2f96b4;},_0x30db3e=(_0x3e35fa,_0x220a09)=>(_0x1c724e,_0x413a2c)=>_0x220a09(_0x1c724e,_0x413a2c,_0x3e35fa);_0x5dd97a['DesktopLiveShareController']=class extends _0x28105a[_0xa4fc0a(0x20a)]{constructor(_0x525b09,_0x5eb675){var _0x3f255e=_0xa4fc0a;super(),this[_0x3f255e(0x257)]=_0x525b09,this[_0x3f255e(0x20e)]=_0x5eb675,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x58aecc=_0xa4fc0a;this['disposeWithMe'](this[_0x58aecc(0x20e)][_0x58aecc(0x236)](_0x18ad33['BuiltInUIPart'][_0x58aecc(0x25d)],()=>_0x18ad33[_0x58aecc(0x1f9)](_0x44498e,this[_0x58aecc(0x257)])));}},_0x5dd97a[_0xa4fc0a(0x27c)]=_0x5b02a8([_0x30db3e(0x0,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x30db3e(0x1,_0x18ad33[_0xa4fc0a(0x28e)])],_0x5dd97a['DesktopLiveShareController']);var _0xdc6460=Object[_0xa4fc0a(0x268)],_0x136e13=Object[_0xa4fc0a(0x299)],_0x396d71=(_0x2d89c6,_0x35fd39,_0xba6367)=>_0x35fd39 in _0x2d89c6?_0xdc6460(_0x2d89c6,_0x35fd39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba6367}):_0x2d89c6[_0x35fd39]=_0xba6367,_0x31e289=(_0x52dfd6,_0x3cc1d7,_0x224c30,_0x4be3d3)=>{for(var _0x4e814c=_0x4be3d3>0x1?void 0x0:_0x4be3d3?_0x136e13(_0x3cc1d7,_0x224c30):_0x3cc1d7,_0x147589=_0x52dfd6['length']-0x1,_0x2668fe;_0x147589>=0x0;_0x147589--)(_0x2668fe=_0x52dfd6[_0x147589])&&(_0x4e814c=_0x2668fe(_0x4e814c)||_0x4e814c);return _0x4e814c;},_0x101943=(_0x205384,_0x5e43fd)=>(_0x1ab7da,_0x442b0d)=>_0x5e43fd(_0x1ab7da,_0x442b0d,_0x205384),_0x4fd610=(_0x4b7548,_0x12ba63,_0x562c09)=>_0x396d71(_0x4b7548,typeof _0x12ba63!=_0xa4fc0a(0x215)?_0x12ba63+'':_0x12ba63,_0x562c09);const _0x237a50=_0xa4fc0a(0x22a);_0x5dd97a['UniverLiveSharePlugin']=class extends _0x28105a[_0xa4fc0a(0x213)]{constructor(_0x44d036=_0x4bce67,_0x224a33,_0x34825a){var _0x33d5cc=_0xa4fc0a;super(),this['_config']=_0x44d036,this[_0x33d5cc(0x257)]=_0x224a33,this[_0x33d5cc(0x230)]=_0x34825a;const {..._0x86b0d9}=_0x28105a['merge']({},_0x4bce67,this[_0x33d5cc(0x26f)]);this['_configService'][_0x33d5cc(0x249)](_0x12c7ae,_0x86b0d9);}[_0xa4fc0a(0x286)](){var _0x5ec981=_0xa4fc0a;_0x28105a['registerDependencies'](this['_injector'],_0x28105a['mergeOverrideWithDependencies']([[_0x4c9441],[_0x5dd97a[_0x5ec981(0x1f0)]],[_0x3c9c15],[_0x5dd97a['DesktopLiveShareController']]],this[_0x5ec981(0x26f)][_0x5ec981(0x203)])),_0x28105a[_0x5ec981(0x28a)](this[_0x5ec981(0x257)],[[_0x3c9c15]]);}['onRendered'](){var _0x2e26a7=_0xa4fc0a;_0x28105a[_0x2e26a7(0x28a)](this[_0x2e26a7(0x257)],[[_0x5dd97a[_0x2e26a7(0x27c)]]]);}},_0x4fd610(_0x5dd97a[_0xa4fc0a(0x297)],_0xa4fc0a(0x2a1),_0x28105a[_0xa4fc0a(0x228)][_0xa4fc0a(0x288)]),_0x4fd610(_0x5dd97a['UniverLiveSharePlugin'],_0xa4fc0a(0x2bc),_0x237a50),_0x5dd97a['UniverLiveSharePlugin']=_0x31e289([_0x28105a[_0xa4fc0a(0x262)](_0x569cba[_0xa4fc0a(0x23c)]),_0x101943(0x1,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x101943(0x2,_0x28105a['IConfigService'])],_0x5dd97a['UniverLiveSharePlugin']),_0x5dd97a[_0xa4fc0a(0x21d)]=_0x44498e,_0x5dd97a[_0xa4fc0a(0x1e4)]=_0x4c9441,_0x5dd97a['LiveShareStatus']=_0x3f2ead,Object[_0xa4fc0a(0x268)](_0x5dd97a,Symbol['toStringTag'],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202506101607",
|
|
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.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0-nightly.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/core": "0.8.0-nightly.
|
|
53
|
-
"@univerjs/sheets": "0.8.0-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.8.0-nightly.
|
|
56
|
-
"@univerjs/ui": "0.8.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202506101607",
|
|
51
|
+
"@univerjs/design": "0.8.0-nightly.202506101607",
|
|
52
|
+
"@univerjs/core": "0.8.0-nightly.202506101607",
|
|
53
|
+
"@univerjs/sheets": "0.8.0-nightly.202506101607",
|
|
54
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202506101607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202506101607",
|
|
56
|
+
"@univerjs/ui": "0.8.0-nightly.202506101607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.0",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.8.0",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|