@univerjs-pro/live-share 0.7.0-nightly.202505251606 → 0.8.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x16d22e=_0x61e2;function _0xc29d(){var _0x20a7b4=['add','LiveShareStatus','rxjs/operators','_collabSession','type','UniverIcon','not-following','idle','_startLiveShareCoordinator','set','replace','getMemberID','data','3160vbHJnF','_startPresenting','BehaviorSubject','getTypeOfUnitAdded$','8524zGAPXF','_sharedOperations','_injector','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','current','merge','status$','toString','idSuffix','ICommandService','symbol','Module','_handleOffline','LIVESHARE_TERMINATE','values','getCurrentTypeOfUnit$','stopFollowing','You\x27re\x20presenting\x20the\x20document','forEach','sessionStatus$','params','_config','_stopPresenting','has','FOLLOWING','unitId','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_commandDisposable','url(#$1','startFollowing','@univerjs/ui','getOwnPropertyDescriptor','jsx','parseProtocolChangeset','38241iqquEz','_handleOperation','SetWorksheetActiveOperation','displayName','0\x200\x2016\x2016','getOwnPropertySymbols','IDLE','apply','className','mask','CollaborationSessionService','complete','UniverLiveSharePlugin','_uiPartsService','LiveShareCoordinator','next','univer-w-full\x20univer-mb-3\x20univer-text-sm','7658FoHTiS','_mountLiveShare','takeUntil','pluginName','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_presenter','useEffect','subscribe','offline','useObservable','getUnitId','431874fPIfTw','send','UniverInstanceType','IConfigService','unsubscribe','string','event$','You\x27re\x20not\x20following\x20the\x20presenter','useState','children','945003jwcjjX','path','getConfig','getTypeOfUnitDisposed$','_startFollowing','DesktopLiveShareController','IUniverInstanceService','_handleNewHost','getValue','_univerInstanceService','_handleTerminate','stringify','defs','fill','onRendered','connectInjector','clear','dispose$','Injector','4809PDLgpG','hasOwnProperty','createElement','evenodd','CollaborationEvent','Fragment','LiveShare','function','_unitID','univer-size-4','substring','sheet','SetZoomRatioOperation','Disposable','stopPresenting','colorChannel1','@univerjs-pro/collaboration','Start\x20following','asObservable','SetScrollOperation','disposeWithMe','LiveShareController','51COAUkI','parse','NEW_CHANGESETS','concat','svg','@univerjs/sheets-ui','get','SAME_OPERATION_SHARE_INTERVAL','Plugin','requireSession','tryStartPresenting','react','useDependency','NOT_FOLLOWING','button','use','propertyIsEnumerable','dispose','1em','following','delete','_reporters','_stopFollowing','@univerjs/design','createInstance','@univerjs-pro/collaboration-client','1045TJdXsE','10897788cDCqvi','memberID','_commandService','CommandType','DisposableCollection','clsx','pipe','BuiltInUIPart','PRESENTING','tag','end','div','registerSharedOperation','random','Inject','_handleOnline','Button','LIVESHARE_OPERATION','defineProperty','_configService','forwardRef','extend','touchDependencies','useRef','_status','find','presenting','InsertSheetMutation','length','toDisposable','LIVESHARE_REQUEST_HOST','_collabSessionService','Present\x20this\x20document','mergeOverrideWithDependencies','SessionStatus','_entities','icon','Subject','_handleNewChangeSets','11TXOUiu','_fetchOperations','jsxs','operations','_status$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','univerjs-icon\x20univerjs-icon-','live-share-single','assign','indexOf','prototype','_init','onStarting','map','IUIPartsService','670dDojcE','includes','OFFLINE','react/jsx-runtime','live-share.config','_liveShareService','entries','_beIdle','UNIVER_UNKNOWN','rxjs','RxDisposable','then','Stop\x20following','LiveShareService','presenter','init','attrs','shouldShareOperation','text','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','call'];_0xc29d=function(){return _0x20a7b4;};return _0xc29d();}(function(_0x12ebf8,_0x4ab15f){var _0x516b47=_0x61e2,_0x59bd1d=_0x12ebf8();while(!![]){try{var _0x48d7b4=parseInt(_0x516b47(0x253))/0x1+-parseInt(_0x516b47(0x23e))/0x2*(parseInt(_0x516b47(0x27c))/0x3)+-parseInt(_0x516b47(0x209))/0x4*(-parseInt(_0x516b47(0x296))/0x5)+parseInt(_0x516b47(0x249))/0x6+parseInt(_0x516b47(0x266))/0x7*(parseInt(_0x516b47(0x205))/0x8)+-parseInt(_0x516b47(0x22d))/0x9*(parseInt(_0x516b47(0x1e3))/0xa)+parseInt(_0x516b47(0x1d4))/0xb*(-parseInt(_0x516b47(0x297))/0xc);if(_0x48d7b4===_0x4ab15f)break;else _0x59bd1d['push'](_0x59bd1d['shift']());}catch(_0x5ab398){_0x59bd1d['push'](_0x59bd1d['shift']());}}}(_0xc29d,0x74299));var U=Object['defineProperty'],F=(_0x3463c0,_0x324032,_0x482ba7)=>_0x324032 in _0x3463c0?U(_0x3463c0,_0x324032,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482ba7}):_0x3463c0[_0x324032]=_0x482ba7,v=(_0x105c83,_0x4a53d7,_0x477e46)=>F(_0x105c83,typeof _0x4a53d7!=_0x16d22e(0x213)?_0x4a53d7+'':_0x4a53d7,_0x477e46);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x16d22e(0x214)});const m=require(_0x16d22e(0x295)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x16d22e(0x281)),p=require(_0x16d22e(0x229)),l=require(_0x16d22e(0x1e6)),g=require(_0x16d22e(0x293)),f=require(_0x16d22e(0x287)),_=require(_0x16d22e(0x276)),x=require(_0x16d22e(0x1ec)),b=require(_0x16d22e(0x1fa)),$=_0x16d22e(0x1e7),L={};class E extends o[_0x16d22e(0x273)]{constructor(){var _0x545ec7=_0x16d22e;super(...arguments),v(this,_0x545ec7(0x20a),new Set()),v(this,_0x545ec7(0x291),new Set());}[_0x16d22e(0x2a3)](_0x2587ff){var _0x58395c=_0x16d22e;return this[_0x58395c(0x20a)][_0x58395c(0x1f8)](_0x2587ff),o[_0x58395c(0x2b4)](()=>this['_sharedOperations']['delete'](_0x2587ff));}['registerInitialStateReporter'](_0xc7cbd5){var _0x402cfb=_0x16d22e;return this[_0x402cfb(0x291)]['add'](_0xc7cbd5),o[_0x402cfb(0x2b4)](()=>this[_0x402cfb(0x291)][_0x402cfb(0x290)](_0xc7cbd5));}[_0x16d22e(0x1f4)](_0x51bbf2){var _0x5be7e3=_0x16d22e;return this['_sharedOperations'][_0x5be7e3(0x220)](_0x51bbf2);}['getInitialStates'](_0x3ba4de){var _0xaa023c=_0x16d22e;return Array['from'](this[_0xaa023c(0x291)])[_0xaa023c(0x1e1)](_0xa42eb8=>_0xa42eb8(_0x3ba4de));}}var H=Object[_0x16d22e(0x22a)],V=(_0x1ebc05,_0x31c772,_0x15466a,_0x57add1)=>{var _0x1bdcf7=_0x16d22e;for(var _0x3f064e=_0x57add1>0x1?void 0x0:_0x57add1?H(_0x31c772,_0x15466a):_0x31c772,_0x502e7a=_0x1ebc05[_0x1bdcf7(0x2b3)]-0x1,_0x2abd29;_0x502e7a>=0x0;_0x502e7a--)(_0x2abd29=_0x1ebc05[_0x502e7a])&&(_0x3f064e=_0x2abd29(_0x3f064e)||_0x3f064e);return _0x3f064e;},k=(_0x2cdc26,_0x2bd7ca)=>(_0x290283,_0x50d2a4)=>_0x2bd7ca(_0x290283,_0x50d2a4,_0x2cdc26);let O=class extends o[_0x16d22e(0x273)]{constructor(_0x489a34){var _0x3f4480=_0x16d22e;super(),this[_0x3f4480(0x1e8)]=_0x489a34,this[_0x3f4480(0x1df)]();}['_init'](){var _0x5d63c2=_0x16d22e;[D[_0x5d63c2(0x272)]['id'],D[_0x5d63c2(0x279)]['id'],C[_0x5d63c2(0x22f)]['id']]['forEach'](_0x20286f=>{var _0x31c33d=_0x5d63c2;this[_0x31c33d(0x27a)](this['_liveShareService'][_0x31c33d(0x2a3)](_0x20286f));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x4b9f54=_0x16d22e;return u=Object[_0x4b9f54(0x1dc)]||function(_0x218f78){var _0x2fc811=_0x4b9f54;for(var _0x521a9c,_0x12f461=0x1,_0x3da339=arguments[_0x2fc811(0x2b3)];_0x12f461<_0x3da339;_0x12f461++){_0x521a9c=arguments[_0x12f461];for(var _0x17ddda in _0x521a9c)Object[_0x2fc811(0x1de)][_0x2fc811(0x267)]['call'](_0x521a9c,_0x17ddda)&&(_0x218f78[_0x17ddda]=_0x521a9c[_0x17ddda]);}return _0x218f78;},u[_0x4b9f54(0x234)](this,arguments);},M=function(_0x1b239d,_0x352185){var _0x5b9e0d=_0x16d22e,_0x356f09={};for(var _0x44d0a8 in _0x1b239d)Object[_0x5b9e0d(0x1de)][_0x5b9e0d(0x267)][_0x5b9e0d(0x1f7)](_0x1b239d,_0x44d0a8)&&_0x352185[_0x5b9e0d(0x1dd)](_0x44d0a8)<0x0&&(_0x356f09[_0x44d0a8]=_0x1b239d[_0x44d0a8]);if(_0x1b239d!=null&&typeof Object[_0x5b9e0d(0x232)]==_0x5b9e0d(0x26d)){for(var _0x35bc12=0x0,_0x44d0a8=Object['getOwnPropertySymbols'](_0x1b239d);_0x35bc12<_0x44d0a8[_0x5b9e0d(0x2b3)];_0x35bc12++)_0x352185[_0x5b9e0d(0x1dd)](_0x44d0a8[_0x35bc12])<0x0&&Object['prototype'][_0x5b9e0d(0x28c)]['call'](_0x1b239d,_0x44d0a8[_0x35bc12])&&(_0x356f09[_0x44d0a8[_0x35bc12]]=_0x1b239d[_0x44d0a8[_0x35bc12]]);}return _0x356f09;},j=f[_0x16d22e(0x2ab)](function(_0x575c7e,_0x4c0e6b){var _0x3d8214=_0x16d22e,_0x44baaf=_0x575c7e[_0x3d8214(0x1d1)],_0x3eafac=_0x575c7e['id'],_0x25b474=_0x575c7e[_0x3d8214(0x235)],_0x104450=_0x575c7e[_0x3d8214(0x2ac)],_0x4caa7b=M(_0x575c7e,[_0x3d8214(0x1d1),'id',_0x3d8214(0x235),_0x3d8214(0x2ac)]),_0x1dace7=_0x3d8214(0x1da)['concat'](_0x3eafac,'\x20')[_0x3d8214(0x27f)](_0x25b474||'')['trim'](),_0x334c85=f[_0x3d8214(0x2ae)]('_'[_0x3d8214(0x27f)](G()));return y(_0x44baaf,''['concat'](_0x3eafac),{'defIds':_0x44baaf['defIds'],'idSuffix':_0x334c85[_0x3d8214(0x20d)]},u({'ref':_0x4c0e6b,'className':_0x1dace7},_0x4caa7b),_0x104450);});function y(_0x41af67,_0x29729a,_0x2540fa,_0x380b5f,_0x320513){var _0xe075e0=_0x16d22e;return f[_0xe075e0(0x268)](_0x41af67[_0xe075e0(0x2a0)],u(u({'key':_0x29729a},q(_0x41af67,_0x2540fa,_0x320513)),_0x380b5f),(W(_0x41af67,_0x2540fa)[_0xe075e0(0x252)]||[])['map'](function(_0x1c90d2,_0x362827){var _0x2a15d1=_0xe075e0;return y(_0x1c90d2,''[_0x2a15d1(0x27f)](_0x29729a,'-')['concat'](_0x41af67[_0x2a15d1(0x2a0)],'-')[_0x2a15d1(0x27f)](_0x362827),_0x2540fa,void 0x0,_0x320513);}));}function q(_0x4bbb9a,_0x2e8a1c,_0x5468f4){var _0x55c23f=_0x16d22e,_0x14bdbd=u({},_0x4bbb9a[_0x55c23f(0x1f3)]);_0x5468f4!=null&&_0x5468f4[_0x55c23f(0x275)]&&_0x14bdbd['fill']===_0x55c23f(0x275)&&(_0x14bdbd[_0x55c23f(0x260)]=_0x5468f4[_0x55c23f(0x275)]),_0x4bbb9a[_0x55c23f(0x2a0)]===_0x55c23f(0x236)&&_0x14bdbd['id']&&(_0x14bdbd['id']=_0x14bdbd['id']+_0x2e8a1c[_0x55c23f(0x211)]),Object[_0x55c23f(0x1e9)](_0x14bdbd)[_0x55c23f(0x21b)](function(_0x38b9e2){var _0x1c1ba9=_0x55c23f,_0x2147e6=_0x38b9e2[0x0],_0xfeaa8e=_0x38b9e2[0x1];_0x2147e6==='mask'&&typeof _0xfeaa8e==_0x1c1ba9(0x24e)&&(_0x14bdbd[_0x2147e6]=_0xfeaa8e[_0x1c1ba9(0x202)](/url\(#(.*)\)/,_0x1c1ba9(0x227)['concat'](_0x2e8a1c['idSuffix'],')')));});var _0x240550=_0x2e8a1c['defIds'];return!_0x240550||_0x240550[_0x55c23f(0x2b3)]===0x0||(_0x4bbb9a[_0x55c23f(0x2a0)]===_0x55c23f(0x28b)&&_0x14bdbd[_0x55c23f(0x225)]&&(_0x14bdbd['xlink:href']=_0x14bdbd[_0x55c23f(0x225)]+_0x2e8a1c['idSuffix']),Object[_0x55c23f(0x1e9)](_0x14bdbd)[_0x55c23f(0x21b)](function(_0x27fe2e){var _0x3269ce=_0x55c23f,_0x26f4f8=_0x27fe2e[0x0],_0x303cfa=_0x27fe2e[0x1];typeof _0x303cfa=='string'&&(_0x14bdbd[_0x26f4f8]=_0x303cfa['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3269ce(0x27f)](_0x2e8a1c['idSuffix'],')')));})),_0x14bdbd;}function W(_0x52f95e,_0x34d436){var _0x2ac048=_0x16d22e,_0x2e74f4,_0x29e854=_0x34d436['defIds'];return!_0x29e854||_0x29e854[_0x2ac048(0x2b3)]===0x0?_0x52f95e:_0x52f95e[_0x2ac048(0x2a0)]===_0x2ac048(0x25f)&&(!((_0x2e74f4=_0x52f95e[_0x2ac048(0x252)])===null||_0x2e74f4===void 0x0)&&_0x2e74f4[_0x2ac048(0x2b3)])?u(u({},_0x52f95e),{'children':_0x52f95e[_0x2ac048(0x252)][_0x2ac048(0x1e1)](function(_0x448ced){var _0x35a1b2=_0x2ac048;return typeof _0x448ced[_0x35a1b2(0x1f3)]['id']=='string'&&_0x29e854&&_0x29e854[_0x35a1b2(0x1dd)](_0x448ced[_0x35a1b2(0x1f3)]['id'])>-0x1?u(u({},_0x448ced),{'attrs':u(u({},_0x448ced['attrs']),{'id':_0x448ced[_0x35a1b2(0x1f3)]['id']+_0x34d436[_0x35a1b2(0x211)]})}):_0x448ced;})}):_0x52f95e;}function G(){var _0x514621=_0x16d22e;return Math[_0x514621(0x2a4)]()[_0x514621(0x210)](0x24)[_0x514621(0x270)](0x2,0x8);}j[_0x16d22e(0x230)]=_0x16d22e(0x1fd);var B={'tag':_0x16d22e(0x280),'attrs':{'fill':'none','viewBox':_0x16d22e(0x231),'width':_0x16d22e(0x28e),'height':'1em'},'children':[{'tag':_0x16d22e(0x254),'attrs':{'fill':'currentColor','d':_0x16d22e(0x242)}},{'tag':_0x16d22e(0x254),'attrs':{'fill':'currentColor','d':_0x16d22e(0x20c),'fillRule':'evenodd','clipRule':_0x16d22e(0x269)}}]},P=f[_0x16d22e(0x2ab)](function(_0x56ca4c,_0x5ef69c){var _0x4911b5=_0x16d22e;return f['createElement'](j,Object[_0x4911b5(0x1dc)]({},_0x56ca4c,{'id':_0x4911b5(0x1db),'ref':_0x5ef69c,'icon':B}));});P[_0x16d22e(0x230)]='LiveShareSingle';var Y=Object[_0x16d22e(0x22a)],R=(_0x41f15e,_0x526e59,_0x540be7,_0x4e2e45)=>{var _0x3b719c=_0x16d22e;for(var _0x16c7e9=_0x4e2e45>0x1?void 0x0:_0x4e2e45?Y(_0x526e59,_0x540be7):_0x526e59,_0x49702c=_0x41f15e[_0x3b719c(0x2b3)]-0x1,_0x17b873;_0x49702c>=0x0;_0x49702c--)(_0x17b873=_0x41f15e[_0x49702c])&&(_0x16c7e9=_0x17b873(_0x16c7e9)||_0x16c7e9);return _0x16c7e9;},S=(_0x48112b,_0xdb233d)=>(_0x28856d,_0x5333c0)=>_0xdb233d(_0x28856d,_0x5333c0,_0x48112b);exports[_0x16d22e(0x27b)]=class extends o[_0x16d22e(0x1ed)]{constructor(_0x5b8c45,_0x5568a9,_0x12c8c3){var _0x206e2a=_0x16d22e;super(),v(this,_0x206e2a(0x1d0),new Map()),(this[_0x206e2a(0x25c)]=_0x5b8c45,this['_injector']=_0x5568a9,this[_0x206e2a(0x1cc)]=_0x12c8c3,this[_0x206e2a(0x1df)]());}async['getLiveShareCoordinator'](_0x5726f6){var _0x4a2162=_0x16d22e;return this['_entities'][_0x4a2162(0x220)](_0x5726f6)||await this[_0x4a2162(0x200)](_0x5726f6),this[_0x4a2162(0x1d0)][_0x4a2162(0x282)](_0x5726f6);}[_0x16d22e(0x1df)](){var _0x11cc1c=_0x16d22e;this[_0x11cc1c(0x25c)][_0x11cc1c(0x208)](o[_0x11cc1c(0x24b)]['UNIVER_SHEET'])[_0x11cc1c(0x29d)](b['takeUntil'](this[_0x11cc1c(0x264)]))[_0x11cc1c(0x245)](async _0x353ccf=>{var _0x42cd8a=_0x11cc1c;const _0x47f7f5=_0x353ccf[_0x42cd8a(0x248)]();this['_entities'][_0x42cd8a(0x220)](_0x47f7f5)||this[_0x42cd8a(0x200)](_0x47f7f5);}),this[_0x11cc1c(0x25c)][_0x11cc1c(0x256)](o[_0x11cc1c(0x24b)][_0x11cc1c(0x223)])[_0x11cc1c(0x29d)](b[_0x11cc1c(0x240)](this[_0x11cc1c(0x264)]))[_0x11cc1c(0x245)](_0x53b19e=>{var _0x49d71a=_0x11cc1c;const _0x469541=_0x53b19e[_0x49d71a(0x248)](),_0xddcc1f=this['_entities'][_0x49d71a(0x282)](_0x469541);_0xddcc1f==null||_0xddcc1f[_0x49d71a(0x28d)]();});}async['_startLiveShareCoordinator'](_0x61ceac){var _0x52f765=_0x16d22e;const _0x19632e=await this['_collabSessionService'][_0x52f765(0x285)](_0x61ceac),_0x37100c=this['_injector'][_0x52f765(0x294)](exports[_0x52f765(0x23b)],_0x61ceac,_0x19632e);return _0x37100c['init'](),this[_0x52f765(0x1d0)][_0x52f765(0x201)](_0x61ceac,_0x37100c),_0x37100c;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x16d22e(0x265)])),S(0x2,o[_0x16d22e(0x2a5)](m[_0x16d22e(0x237)]))],exports[_0x16d22e(0x27b)]);var h=(_0xc8f266=>(_0xc8f266['OFFLINE']=_0x16d22e(0x246),_0xc8f266[_0x16d22e(0x233)]=_0x16d22e(0x1ff),_0xc8f266['FOLLOWING']='following',_0xc8f266[_0x16d22e(0x289)]=_0x16d22e(0x1fe),_0xc8f266[_0x16d22e(0x29f)]='presenting',_0xc8f266))(h||{});const Z=_0x16d22e(0x283),J=0xc8;exports[_0x16d22e(0x23b)]=class extends o[_0x16d22e(0x1ed)]{constructor(_0x1678df,_0x29b33a,_0x400cd3,_0x357b54,_0x1a1fcd){var _0x325399=_0x16d22e;super(),v(this,'_status$',new x[(_0x325399(0x207))](_0x325399(0x1ff))),v(this,_0x325399(0x20f),this['_status$'][_0x325399(0x278)]()),v(this,'_init',!0x1),v(this,_0x325399(0x226),null),v(this,_0x325399(0x243),null),(this[_0x325399(0x26e)]=_0x1678df,this[_0x325399(0x1fb)]=_0x29b33a,this['_configService']=_0x400cd3,this[_0x325399(0x1e8)]=_0x357b54,this[_0x325399(0x299)]=_0x1a1fcd);}get[_0x16d22e(0x2af)](){var _0x14bd8d=_0x16d22e;return this[_0x14bd8d(0x1d8)][_0x14bd8d(0x25b)]();}[_0x16d22e(0x28d)](){var _0x39cc3b=_0x16d22e,_0x22e01e;(_0x22e01e=this[_0x39cc3b(0x226)])==null||_0x22e01e[_0x39cc3b(0x28d)](),this[_0x39cc3b(0x1d8)][_0x39cc3b(0x23c)](_0x39cc3b(0x1ff)),this[_0x39cc3b(0x1d8)][_0x39cc3b(0x238)]();}[_0x16d22e(0x1f2)](){var _0x32f5db=_0x16d22e;this['_init']||(this[_0x32f5db(0x1df)]=!0x0,this['_collabSession'][_0x32f5db(0x21c)][_0x32f5db(0x29d)](b[_0x32f5db(0x240)](this['dispose$']))[_0x32f5db(0x245)](_0x3cb65a=>{var _0x3d8135=_0x32f5db;switch(_0x3cb65a){case m[_0x3d8135(0x1cf)]['OFFLINE']:this['_handleOffline']();break;case m['SessionStatus']['ONLINE']:this[_0x3d8135(0x2a6)]();break;}}),this[_0x32f5db(0x1fb)][_0x32f5db(0x24f)][_0x32f5db(0x29d)](b[_0x32f5db(0x240)](this['dispose$']))[_0x32f5db(0x245)](_0x139d10=>{var _0x16a149=_0x32f5db;const {eventID:_0x5b0336}=_0x139d10;switch(_0x5b0336){case _['CollaborationEvent'][_0x16a149(0x224)]:this[_0x16a149(0x25a)](_0x139d10);break;case _[_0x16a149(0x26a)]['LIVESHARE_OPERATION']:this[_0x16a149(0x22e)](_0x139d10);break;case _[_0x16a149(0x26a)][_0x16a149(0x216)]:this[_0x16a149(0x25d)]();break;case _[_0x16a149(0x26a)][_0x16a149(0x27e)]:this[_0x16a149(0x1d3)](_0x139d10);break;}}));}[_0x16d22e(0x286)](){var _0x4cf2dc=_0x16d22e;this[_0x4cf2dc(0x1fb)][_0x4cf2dc(0x24a)]({'eventID':_[_0x4cf2dc(0x26a)][_0x4cf2dc(0x1cb)],'data':{'unitID':this[_0x4cf2dc(0x26e)],'userID':this[_0x4cf2dc(0x1fb)][_0x4cf2dc(0x203)]()}},this['_unitID']);}[_0x16d22e(0x274)](){var _0x880f9a=_0x16d22e;this[_0x880f9a(0x2af)]==='presenting'&&(this[_0x880f9a(0x1d8)][_0x880f9a(0x23c)](_0x880f9a(0x1ff)),this[_0x880f9a(0x1fb)][_0x880f9a(0x24a)]({'eventID':_[_0x880f9a(0x26a)][_0x880f9a(0x216)],'data':{'unitID':this[_0x880f9a(0x26e)]}},this[_0x880f9a(0x26e)]));}[_0x16d22e(0x228)](){var _0x11b892=_0x16d22e;this['_status']===_0x11b892(0x1fe)&&(this['_status$']['next'](_0x11b892(0x28f)),this[_0x11b892(0x257)]());}[_0x16d22e(0x219)](){var _0x46b045=_0x16d22e;this[_0x46b045(0x2af)]===_0x46b045(0x28f)&&this['_stopFollowing']();}[_0x16d22e(0x25a)](_0x1e7d82){var _0x27fb61=_0x16d22e;const {presenter:_0x5281b5}=_0x1e7d82[_0x27fb61(0x204)],_0x461bac=this[_0x27fb61(0x1fb)]['getMemberID']();this[_0x27fb61(0x243)]=_0x5281b5,_0x5281b5===_0x461bac?(this[_0x27fb61(0x292)](),this[_0x27fb61(0x206)]()):this['_status']!==_0x27fb61(0x1fe)&&(this['_stopPresenting'](),this[_0x27fb61(0x257)]());}[_0x16d22e(0x1d5)](){var _0x2ac05d=_0x16d22e;const _0x4e1074={'eventID':_[_0x2ac05d(0x26a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2ac05d(0x1fb)]['send'](_0x4e1074,this[_0x2ac05d(0x26e)]);}['_handleTerminate'](){var _0xc5d3ed=_0x16d22e;this[_0xc5d3ed(0x243)]=null,this[_0xc5d3ed(0x2af)]!==_0xc5d3ed(0x2b1)&&this[_0xc5d3ed(0x1ea)]();}['_handleNewChangeSets'](_0x235f89){var _0x3ec532=_0x16d22e;if(this[_0x3ec532(0x2af)]===_0x3ec532(0x28f)&&this['_presenter']===_0x235f89['data'][_0x3ec532(0x298)]){const _0x339205=_[_0x3ec532(0x22c)](_0x235f89[_0x3ec532(0x204)])['mutations']['reverse']()[_0x3ec532(0x2b0)](_0x4cc41a=>_0x4cc41a['id']===C[_0x3ec532(0x2b2)]['id']);if(_0x339205){const _0x20976f=_0x339205[_0x3ec532(0x21d)][_0x3ec532(0x222)],_0x188622=_0x339205[_0x3ec532(0x21d)][_0x3ec532(0x271)]['id'];setTimeout(()=>{var _0x3b0f8f=_0x3ec532;this['_commandService']['executeCommand'](C[_0x3b0f8f(0x22f)]['id'],{'unitId':_0x20976f,'subUnitId':_0x188622},{'fromCollab':!0x0});});}}}[_0x16d22e(0x206)](){var _0x3035c6=_0x16d22e;this[_0x3035c6(0x1d8)]['next'](_0x3035c6(0x2b1));const _0x3e9bf8=new Map(),_0x1f0683=this['_commandDisposable']=new o[(_0x3035c6(0x29b))]();_0x1f0683['add'](o[_0x3035c6(0x2b4)](()=>{var _0x427d6a=_0x3035c6;_0x3e9bf8[_0x427d6a(0x21b)](_0xb0b598=>_0xb0b598[_0x427d6a(0x238)]()),_0x3e9bf8[_0x427d6a(0x263)]();})),_0x1f0683[_0x3035c6(0x1f8)](this[_0x3035c6(0x299)]['onCommandExecuted'](_0x31f093=>{var _0x1ab226=_0x3035c6,_0x5932c3;if(_0x31f093[_0x1ab226(0x1fc)]!==o[_0x1ab226(0x29a)]['OPERATION']||!this[_0x1ab226(0x1e8)][_0x1ab226(0x1f4)](_0x31f093['id']))return;const {id:_0x242968}=_0x31f093;let _0x462290;_0x3e9bf8[_0x1ab226(0x220)](_0x242968)?_0x462290=_0x3e9bf8['get'](_0x242968):(_0x462290=new x[(_0x1ab226(0x1d2))](),_0x3e9bf8['set'](_0x242968,_0x462290),_0x462290[_0x1ab226(0x29d)](b['throttleTime']((_0x5932c3=this[_0x1ab226(0x2aa)][_0x1ab226(0x255)](Z))!=null?_0x5932c3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ab226(0x245)](_0x362afa=>{var _0xc3be9f=_0x1ab226;this['_collabSession'][_0xc3be9f(0x24a)]({'eventID':_[_0xc3be9f(0x26a)][_0xc3be9f(0x2a8)],'data':{'unitID':this[_0xc3be9f(0x26e)],'operations':{[_0x362afa['id']]:{'id':_0x362afa['id'],'params':JSON['stringify'](_0x362afa[_0xc3be9f(0x21d)])}}}},this['_unitID']);})),_0x462290['next'](_0x31f093);})),this[_0x3035c6(0x1e8)]['getInitialStates'](this[_0x3035c6(0x26e)])[_0x3035c6(0x21b)](_0x5e0c9e=>this[_0x3035c6(0x1fb)][_0x3035c6(0x24a)]({'eventID':_[_0x3035c6(0x26a)][_0x3035c6(0x2a8)],'data':{'unitID':this[_0x3035c6(0x26e)],'operations':{[_0x5e0c9e['id']]:{'id':_0x5e0c9e['id'],'params':JSON[_0x3035c6(0x25e)](_0x5e0c9e[_0x3035c6(0x21d)])}}}},this[_0x3035c6(0x26e)]));}[_0x16d22e(0x21f)](){var _0x5c58a5=_0x16d22e,_0x4a393f;this[_0x5c58a5(0x1d8)][_0x5c58a5(0x23c)](_0x5c58a5(0x1ff)),(_0x4a393f=this[_0x5c58a5(0x226)])==null||_0x4a393f[_0x5c58a5(0x28d)](),this[_0x5c58a5(0x226)]=null;}[_0x16d22e(0x257)](){var _0x514b44=_0x16d22e,_0x23373e;(_0x23373e=this[_0x514b44(0x226)])==null||_0x23373e[_0x514b44(0x28d)](),this[_0x514b44(0x1d8)][_0x514b44(0x23c)](_0x514b44(0x28f));}['_beIdle'](){var _0x44df8b=_0x16d22e,_0xb917e5;this[_0x44df8b(0x1d8)]['next']('idle'),(_0xb917e5=this[_0x44df8b(0x226)])==null||_0xb917e5[_0x44df8b(0x28d)](),this['_commandDisposable']=null;}[_0x16d22e(0x292)](){var _0x3d5ad2=_0x16d22e,_0x2b9b75;this[_0x3d5ad2(0x1d8)][_0x3d5ad2(0x23c)]('not-following'),(_0x2b9b75=this['_commandDisposable'])==null||_0x2b9b75[_0x3d5ad2(0x28d)]();}[_0x16d22e(0x22e)](_0x53dcce){var _0x44e1d3=_0x16d22e;if([_0x44e1d3(0x2b1),_0x44e1d3(0x1fe),_0x44e1d3(0x246)][_0x44e1d3(0x1e4)](this[_0x44e1d3(0x2af)])||!_0x53dcce[_0x44e1d3(0x204)]['presenter']||_0x53dcce['data'][_0x44e1d3(0x1f1)]===this['_collabSession'][_0x44e1d3(0x203)]())return;this[_0x44e1d3(0x2af)]===_0x44e1d3(0x1ff)&&this[_0x44e1d3(0x257)]();const _0x2b961b=_0x53dcce['data'][_0x44e1d3(0x1d7)];Object[_0x44e1d3(0x217)](_0x2b961b)[_0x44e1d3(0x21b)](_0x5ef2ce=>{var _0x2dae46=_0x44e1d3;this[_0x2dae46(0x299)]['executeCommand'](_0x5ef2ce['id'],_0x5ef2ce['params']?JSON[_0x2dae46(0x27d)](_0x5ef2ce[_0x2dae46(0x21d)]):null,{'fromCollab':!0x0});});}[_0x16d22e(0x215)](){var _0x1c7b5e=_0x16d22e,_0x481319;this['_status$']['next'](_0x1c7b5e(0x246)),(_0x481319=this[_0x1c7b5e(0x226)])==null||_0x481319[_0x1c7b5e(0x28d)]();}[_0x16d22e(0x2a6)](){var _0x31fbc2=_0x16d22e;this['_status$'][_0x31fbc2(0x23c)](_0x31fbc2(0x1ff)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x16d22e(0x24c)]),S(0x3,o[_0x16d22e(0x2a5)](E)),S(0x4,o[_0x16d22e(0x212)])],exports[_0x16d22e(0x23b)]);function A(){var _0x3fe29a=_0x16d22e;const _0x4cf7a0=p[_0x3fe29a(0x288)](exports[_0x3fe29a(0x27b)]),_0x119565=p[_0x3fe29a(0x288)](o[_0x3fe29a(0x259)]),_0x570fd9=p[_0x3fe29a(0x247)](()=>_0x119565[_0x3fe29a(0x218)](o['UniverInstanceType'][_0x3fe29a(0x223)]),void 0x0,!0x1,[]),[_0x34c861,_0x2eb75b]=f[_0x3fe29a(0x251)](null),[_0x572932,_0x46e03c]=f['useState'](h['IDLE']),_0x2aa438=f[_0x3fe29a(0x2ae)](null);return f[_0x3fe29a(0x244)](()=>(_0x570fd9&&_0x4cf7a0['getLiveShareCoordinator'](_0x570fd9[_0x3fe29a(0x248)]())[_0x3fe29a(0x1ee)](_0x4cf748=>{var _0x219d73=_0x3fe29a;_0x2eb75b(_0x4cf748),_0x2aa438[_0x219d73(0x20d)]=_0x4cf748[_0x219d73(0x20f)][_0x219d73(0x245)](_0x1c9e14=>{_0x46e03c(_0x1c9e14);});}),()=>{var _0x2864ab=_0x3fe29a,_0x13f9af;(_0x13f9af=_0x2aa438[_0x2864ab(0x20d)])==null||_0x13f9af[_0x2864ab(0x24d)](),_0x2aa438[_0x2864ab(0x20d)]=null;}),[_0x570fd9,_0x4cf7a0]),_0x34c861?l[_0x3fe29a(0x22b)](g['Dropdown'],{'align':_0x3fe29a(0x2a1),'disabled':_0x572932===h[_0x3fe29a(0x1e5)],'className':_0x3fe29a(0x1f6),'overlay':l['jsx'](K,{'status':_0x572932,'coordinator':_0x34c861}),'children':l['jsx']('button',{'className':g[_0x3fe29a(0x29c)](_0x3fe29a(0x1d9),{'univer-cursor-not-allowed':_0x572932===h[_0x3fe29a(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x572932!==h[_0x3fe29a(0x1e5)]}),'type':_0x3fe29a(0x28a),'children':l[_0x3fe29a(0x22b)](P,{'className':_0x3fe29a(0x26f)})})}):null;}function K(_0x19be2b){var _0x4863ca=_0x16d22e;const {status:_0x400803,coordinator:_0x1aa717}=_0x19be2b;switch(_0x400803){case h['IDLE']:return l[_0x4863ca(0x22b)](z,{'coordinator':_0x1aa717});case h[_0x4863ca(0x221)]:return l[_0x4863ca(0x22b)](Q,{'coordinator':_0x1aa717});case h[_0x4863ca(0x289)]:return l[_0x4863ca(0x22b)](X,{'coordinator':_0x1aa717});case h[_0x4863ca(0x1e5)]:return l[_0x4863ca(0x22b)](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x1aa717});default:return null;}}function z(_0x19b737){var _0x553ab8=_0x16d22e;const {coordinator:_0x77bac2}=_0x19b737;return l[_0x553ab8(0x1d6)](l[_0x553ab8(0x26b)],{'children':[l[_0x553ab8(0x22b)](_0x553ab8(0x2a2),{'className':_0x553ab8(0x23d),'children':_0x553ab8(0x1cd)}),l['jsx'](g[_0x553ab8(0x2a7)],{'onClick':()=>_0x77bac2[_0x553ab8(0x286)](),'children':'Start'})]});}function Q(_0x44ea0a){var _0x2e0229=_0x16d22e;const {coordinator:_0x4968d0}=_0x44ea0a;return l[_0x2e0229(0x1d6)](l[_0x2e0229(0x26b)],{'children':[l[_0x2e0229(0x22b)](_0x2e0229(0x2a2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x2e0229(0x22b)](g[_0x2e0229(0x2a7)],{'onClick':()=>_0x4968d0['stopFollowing'](),'children':_0x2e0229(0x1ef)})]});}function X(_0x2cbe3f){var _0x4797e0=_0x16d22e;const {coordinator:_0x289a51}=_0x2cbe3f;return l[_0x4797e0(0x1d6)](l[_0x4797e0(0x26b)],{'children':[l['jsx'](_0x4797e0(0x2a2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4797e0(0x250)}),l['jsx'](g[_0x4797e0(0x2a7)],{'variant':_0x4797e0(0x1f5),'onClick':()=>_0x289a51[_0x4797e0(0x228)](),'children':_0x4797e0(0x277)})]});}function ee(_0x50e6dc){var _0x266871=_0x16d22e;const {coordinator:_0x55643e}=_0x50e6dc;return l[_0x266871(0x1d6)](l['Fragment'],{'children':[l[_0x266871(0x22b)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x266871(0x21a)}),l[_0x266871(0x22b)](g[_0x266871(0x2a7)],{'variant':'default','onClick':()=>_0x55643e['stopPresenting'](),'children':'Stop\x20presenting'})]});}function te(){var _0x577321=_0x16d22e;return l[_0x577321(0x22b)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x16d22e(0x22a)],ne=(_0x36742c,_0x294383,_0x30e08a,_0x543318)=>{var _0x2684c4=_0x16d22e;for(var _0x9e949d=_0x543318>0x1?void 0x0:_0x543318?ie(_0x294383,_0x30e08a):_0x294383,_0x23e6d7=_0x36742c[_0x2684c4(0x2b3)]-0x1,_0x25bb99;_0x23e6d7>=0x0;_0x23e6d7--)(_0x25bb99=_0x36742c[_0x23e6d7])&&(_0x9e949d=_0x25bb99(_0x9e949d)||_0x9e949d);return _0x9e949d;},N=(_0x28ecb6,_0x3f1b8a)=>(_0x48b7a2,_0x56fda9)=>_0x3f1b8a(_0x48b7a2,_0x56fda9,_0x28ecb6);exports['DesktopLiveShareController']=class extends o[_0x16d22e(0x273)]{constructor(_0x56212b,_0x4137fb){var _0x533f60=_0x16d22e;super(),this['_injector']=_0x56212b,this[_0x533f60(0x23a)]=_0x4137fb,this[_0x533f60(0x23f)]();}['_mountLiveShare'](){var _0xfb559f=_0x16d22e;this[_0xfb559f(0x27a)](this[_0xfb559f(0x23a)]['registerComponent'](p[_0xfb559f(0x29e)]['HEADER_MENU'],()=>p[_0xfb559f(0x262)](A,this[_0xfb559f(0x20b)])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x16d22e(0x2a5)](o[_0x16d22e(0x265)])),N(0x1,p[_0x16d22e(0x1e2)])],exports['DesktopLiveShareController']);var re=Object[_0x16d22e(0x2a9)],se=Object[_0x16d22e(0x22a)],oe=(_0x42db5e,_0x34523b,_0x5d1229)=>_0x34523b in _0x42db5e?re(_0x42db5e,_0x34523b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d1229}):_0x42db5e[_0x34523b]=_0x5d1229,ae=(_0x3b3d8a,_0x535af3,_0x5900b0,_0x29d8f9)=>{var _0x59eb1e=_0x16d22e;for(var _0x3f3c9a=_0x29d8f9>0x1?void 0x0:_0x29d8f9?se(_0x535af3,_0x5900b0):_0x535af3,_0x4102ab=_0x3b3d8a[_0x59eb1e(0x2b3)]-0x1,_0x1f0107;_0x4102ab>=0x0;_0x4102ab--)(_0x1f0107=_0x3b3d8a[_0x4102ab])&&(_0x3f3c9a=_0x1f0107(_0x3f3c9a)||_0x3f3c9a);return _0x3f3c9a;},w=(_0x2f01eb,_0x4a4e7b)=>(_0x4d5873,_0x4e55c9)=>_0x4a4e7b(_0x4d5873,_0x4e55c9,_0x2f01eb),T=(_0x1b36f6,_0x40778b,_0x504071)=>oe(_0x1b36f6,typeof _0x40778b!='symbol'?_0x40778b+'':_0x40778b,_0x504071);const le='UNIVER_LIVE_SHARE_PLUGIN';function _0x61e2(_0x1fa46a,_0x3f7460){var _0xc29d32=_0xc29d();return _0x61e2=function(_0x61e22a,_0x1313a9){_0x61e22a=_0x61e22a-0x1cb;var _0x178974=_0xc29d32[_0x61e22a];return _0x178974;},_0x61e2(_0x1fa46a,_0x3f7460);}exports[_0x16d22e(0x239)]=class extends o[_0x16d22e(0x284)]{constructor(_0x265802=L,_0x3b3a7f,_0x10fb21){var _0x4aa7f6=_0x16d22e;super(),this['_config']=_0x265802,this['_injector']=_0x3b3a7f,this[_0x4aa7f6(0x2aa)]=_0x10fb21;const {..._0x376494}=o[_0x4aa7f6(0x20e)]({},L,this[_0x4aa7f6(0x21e)]);this['_configService']['setConfig']($,_0x376494);}[_0x16d22e(0x1e0)](){var _0x1671fe=_0x16d22e;o['registerDependencies'](this[_0x1671fe(0x20b)],o[_0x1671fe(0x1ce)]([[E],[exports[_0x1671fe(0x27b)]],[O],[exports[_0x1671fe(0x258)]]],this[_0x1671fe(0x21e)]['override'])),o[_0x1671fe(0x2ad)](this[_0x1671fe(0x20b)],[[O]]);}[_0x16d22e(0x261)](){var _0x1e7405=_0x16d22e;o['touchDependencies'](this[_0x1e7405(0x20b)],[[exports[_0x1e7405(0x258)]]]);}},T(exports[_0x16d22e(0x239)],_0x16d22e(0x1fc),o['UniverInstanceType'][_0x16d22e(0x1eb)]),T(exports[_0x16d22e(0x239)],_0x16d22e(0x241),le),exports[_0x16d22e(0x239)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x16d22e(0x2a5)](o[_0x16d22e(0x265)])),w(0x2,o[_0x16d22e(0x24c)])],exports[_0x16d22e(0x239)]),exports[_0x16d22e(0x26c)]=A,exports[_0x16d22e(0x1f0)]=E,exports[_0x16d22e(0x1f9)]=h;
1
+ 'use strict';var _0x27ce7f=_0xc178;(function(_0x2743b8,_0x4d5280){var _0x4de444=_0xc178,_0x32c297=_0x2743b8();while(!![]){try{var _0x320262=parseInt(_0x4de444(0x185))/0x1*(-parseInt(_0x4de444(0x203))/0x2)+-parseInt(_0x4de444(0x1cd))/0x3*(-parseInt(_0x4de444(0x14b))/0x4)+-parseInt(_0x4de444(0x163))/0x5*(parseInt(_0x4de444(0x218))/0x6)+-parseInt(_0x4de444(0x178))/0x7+parseInt(_0x4de444(0x1cf))/0x8+parseInt(_0x4de444(0x187))/0x9*(parseInt(_0x4de444(0x200))/0xa)+-parseInt(_0x4de444(0x193))/0xb;if(_0x320262===_0x4d5280)break;else _0x32c297['push'](_0x32c297['shift']());}catch(_0x41f4e7){_0x32c297['push'](_0x32c297['shift']());}}}(_0x2ee7,0x230ab));var U=Object[_0x27ce7f(0x1b8)],F=(_0x421ba1,_0x30c009,_0x208aa9)=>_0x30c009 in _0x421ba1?U(_0x421ba1,_0x30c009,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208aa9}):_0x421ba1[_0x30c009]=_0x208aa9,v=(_0x7d4e9f,_0x5f3f22,_0x12e998)=>F(_0x7d4e9f,typeof _0x5f3f22!=_0x27ce7f(0x1c8)?_0x5f3f22+'':_0x5f3f22,_0x12e998);Object[_0x27ce7f(0x1b8)](exports,Symbol[_0x27ce7f(0x1b9)],{'value':_0x27ce7f(0x167)});const m=require(_0x27ce7f(0x190)),o=require(_0x27ce7f(0x1c1)),C=require('@univerjs/sheets'),D=require('@univerjs/sheets-ui'),p=require(_0x27ce7f(0x183)),l=require(_0x27ce7f(0x151)),g=require('@univerjs/design'),f=require(_0x27ce7f(0x15c)),_=require(_0x27ce7f(0x159)),x=require(_0x27ce7f(0x1fa)),b=require('rxjs/operators'),$=_0x27ce7f(0x158),L={};class E extends o[_0x27ce7f(0x166)]{constructor(){var _0x1f7f80=_0x27ce7f;super(...arguments),v(this,_0x1f7f80(0x188),new Set()),v(this,'_reporters',new Set());}[_0x27ce7f(0x214)](_0x499e49){var _0x4442e2=_0x27ce7f;return this[_0x4442e2(0x188)]['add'](_0x499e49),o[_0x4442e2(0x21b)](()=>this[_0x4442e2(0x188)][_0x4442e2(0x15a)](_0x499e49));}['registerInitialStateReporter'](_0x4c84e2){var _0x3fb929=_0x27ce7f;return this[_0x3fb929(0x1b4)][_0x3fb929(0x1a7)](_0x4c84e2),o[_0x3fb929(0x21b)](()=>this['_reporters'][_0x3fb929(0x15a)](_0x4c84e2));}[_0x27ce7f(0x162)](_0x19cb4d){var _0x1977c7=_0x27ce7f;return this[_0x1977c7(0x188)][_0x1977c7(0x170)](_0x19cb4d);}['getInitialStates'](_0x41f725){var _0x3fb6e9=_0x27ce7f;return Array[_0x3fb6e9(0x220)](this['_reporters'])['map'](_0x2d7222=>_0x2d7222(_0x41f725));}}var H=Object[_0x27ce7f(0x19f)],V=(_0x459878,_0x2dd8ff,_0x43a241,_0x23a5bd)=>{var _0x1dee52=_0x27ce7f;for(var _0x5cb595=_0x23a5bd>0x1?void 0x0:_0x23a5bd?H(_0x2dd8ff,_0x43a241):_0x2dd8ff,_0x14e90c=_0x459878[_0x1dee52(0x1d1)]-0x1,_0x2dd631;_0x14e90c>=0x0;_0x14e90c--)(_0x2dd631=_0x459878[_0x14e90c])&&(_0x5cb595=_0x2dd631(_0x5cb595)||_0x5cb595);return _0x5cb595;},k=(_0x2e3544,_0x18b3b1)=>(_0x4acf86,_0x478c4e)=>_0x18b3b1(_0x4acf86,_0x478c4e,_0x2e3544);let O=class extends o[_0x27ce7f(0x166)]{constructor(_0x2c7108){var _0x3630f7=_0x27ce7f;super(),this[_0x3630f7(0x1b2)]=_0x2c7108,this['_init']();}[_0x27ce7f(0x21c)](){[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x5413b2=>{var _0x35d017=_0xc178;this[_0x35d017(0x210)](this['_liveShareService'][_0x35d017(0x214)](_0x5413b2));});}};O=V([k(0x0,o[_0x27ce7f(0x1bc)](E))],O);var u=function(){var _0x1f86fe=_0x27ce7f;return u=Object['assign']||function(_0x471713){var _0x504510=_0xc178;for(var _0x4dc54a,_0x1acda6=0x1,_0x203b28=arguments[_0x504510(0x1d1)];_0x1acda6<_0x203b28;_0x1acda6++){_0x4dc54a=arguments[_0x1acda6];for(var _0x4d7024 in _0x4dc54a)Object['prototype'][_0x504510(0x17e)][_0x504510(0x16b)](_0x4dc54a,_0x4d7024)&&(_0x471713[_0x4d7024]=_0x4dc54a[_0x4d7024]);}return _0x471713;},u[_0x1f86fe(0x155)](this,arguments);},M=function(_0x1b87b3,_0x16d406){var _0x388df6=_0x27ce7f,_0x342bf3={};for(var _0x4e8096 in _0x1b87b3)Object[_0x388df6(0x165)][_0x388df6(0x17e)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096)&&_0x16d406[_0x388df6(0x153)](_0x4e8096)<0x0&&(_0x342bf3[_0x4e8096]=_0x1b87b3[_0x4e8096]);if(_0x1b87b3!=null&&typeof Object[_0x388df6(0x1f0)]=='function'){for(var _0x731780=0x0,_0x4e8096=Object[_0x388df6(0x1f0)](_0x1b87b3);_0x731780<_0x4e8096[_0x388df6(0x1d1)];_0x731780++)_0x16d406[_0x388df6(0x153)](_0x4e8096[_0x731780])<0x0&&Object[_0x388df6(0x165)][_0x388df6(0x1e4)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096[_0x731780])&&(_0x342bf3[_0x4e8096[_0x731780]]=_0x1b87b3[_0x4e8096[_0x731780]]);}return _0x342bf3;},j=f[_0x27ce7f(0x164)](function(_0x4f9380,_0x303932){var _0x51736d=_0x27ce7f,_0x3356b2=_0x4f9380[_0x51736d(0x141)],_0x155c5c=_0x4f9380['id'],_0x2fb127=_0x4f9380[_0x51736d(0x208)],_0x36a040=_0x4f9380[_0x51736d(0x179)],_0x43167e=M(_0x4f9380,[_0x51736d(0x141),'id',_0x51736d(0x208),'extend']),_0x7fb1f2=_0x51736d(0x1fc)['concat'](_0x155c5c,'\x20')[_0x51736d(0x1ff)](_0x2fb127||'')['trim'](),_0x1eb044=f[_0x51736d(0x16f)]('_'[_0x51736d(0x1ff)](G()));return y(_0x3356b2,''['concat'](_0x155c5c),{'defIds':_0x3356b2[_0x51736d(0x1f2)],'idSuffix':_0x1eb044[_0x51736d(0x21a)]},u({'ref':_0x303932,'className':_0x7fb1f2},_0x43167e),_0x36a040);});function y(_0x36e87b,_0x3eb267,_0x5753d4,_0x23a6a8,_0x5946a0){var _0xa28bb3=_0x27ce7f;return f['createElement'](_0x36e87b['tag'],u(u({'key':_0x3eb267},q(_0x36e87b,_0x5753d4,_0x5946a0)),_0x23a6a8),(W(_0x36e87b,_0x5753d4)[_0xa28bb3(0x177)]||[])['map'](function(_0x53a7e9,_0x226082){var _0x46efad=_0xa28bb3;return y(_0x53a7e9,''[_0x46efad(0x1ff)](_0x3eb267,'-')[_0x46efad(0x1ff)](_0x36e87b[_0x46efad(0x1d8)],'-')[_0x46efad(0x1ff)](_0x226082),_0x5753d4,void 0x0,_0x5946a0);}));}function q(_0x3438a6,_0x4c6d5f,_0x3b2a06){var _0x2821e0=_0x27ce7f,_0x1b8d8f=u({},_0x3438a6[_0x2821e0(0x1ac)]);_0x3b2a06!=null&&_0x3b2a06[_0x2821e0(0x1ed)]&&_0x1b8d8f['fill']==='colorChannel1'&&(_0x1b8d8f[_0x2821e0(0x197)]=_0x3b2a06[_0x2821e0(0x1ed)]),_0x3438a6[_0x2821e0(0x1d8)]==='mask'&&_0x1b8d8f['id']&&(_0x1b8d8f['id']=_0x1b8d8f['id']+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x317b5a){var _0x3e3d55=_0x2821e0,_0x288d14=_0x317b5a[0x0],_0x3515b7=_0x317b5a[0x1];_0x288d14==='mask'&&typeof _0x3515b7==_0x3e3d55(0x18d)&&(_0x1b8d8f[_0x288d14]=_0x3515b7[_0x3e3d55(0x156)](/url\(#(.*)\)/,_0x3e3d55(0x18f)[_0x3e3d55(0x1ff)](_0x4c6d5f['idSuffix'],')')));});var _0x3127b8=_0x4c6d5f[_0x2821e0(0x1f2)];return!_0x3127b8||_0x3127b8[_0x2821e0(0x1d1)]===0x0||(_0x3438a6[_0x2821e0(0x1d8)]==='use'&&_0x1b8d8f['xlink:href']&&(_0x1b8d8f['xlink:href']=_0x1b8d8f[_0x2821e0(0x176)]+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x588c3){var _0x9ba8b1=_0x2821e0,_0x151ceb=_0x588c3[0x0],_0x165a2e=_0x588c3[0x1];typeof _0x165a2e==_0x9ba8b1(0x18d)&&(_0x1b8d8f[_0x151ceb]=_0x165a2e[_0x9ba8b1(0x156)](/url\(#(.*)\)/,_0x9ba8b1(0x18f)[_0x9ba8b1(0x1ff)](_0x4c6d5f[_0x9ba8b1(0x204)],')')));})),_0x1b8d8f;}function W(_0xa841e9,_0x2a5f2a){var _0x2d2613=_0x27ce7f,_0x1bdba2,_0x2c5228=_0x2a5f2a[_0x2d2613(0x1f2)];return!_0x2c5228||_0x2c5228['length']===0x0?_0xa841e9:_0xa841e9[_0x2d2613(0x1d8)]===_0x2d2613(0x20c)&&(!((_0x1bdba2=_0xa841e9['children'])===null||_0x1bdba2===void 0x0)&&_0x1bdba2[_0x2d2613(0x1d1)])?u(u({},_0xa841e9),{'children':_0xa841e9[_0x2d2613(0x177)][_0x2d2613(0x1ef)](function(_0xd0c764){var _0x27b6a3=_0x2d2613;return typeof _0xd0c764['attrs']['id']==_0x27b6a3(0x18d)&&_0x2c5228&&_0x2c5228[_0x27b6a3(0x153)](_0xd0c764['attrs']['id'])>-0x1?u(u({},_0xd0c764),{'attrs':u(u({},_0xd0c764['attrs']),{'id':_0xd0c764[_0x27b6a3(0x1ac)]['id']+_0x2a5f2a[_0x27b6a3(0x204)]})}):_0xd0c764;})}):_0xa841e9;}function G(){var _0x2a8f5f=_0x27ce7f;return Math['random']()[_0x2a8f5f(0x1d7)](0x24)['substring'](0x2,0x8);}j[_0x27ce7f(0x1b5)]='UniverIcon';var B={'tag':_0x27ce7f(0x192),'attrs':{'fill':_0x27ce7f(0x212),'viewBox':_0x27ce7f(0x1a2),'width':_0x27ce7f(0x175),'height':_0x27ce7f(0x175)},'children':[{'tag':_0x27ce7f(0x16e),'attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1ee)}},{'tag':'path','attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1e0),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x27ce7f(0x164)](function(_0x4fc576,_0x286179){var _0x31aec6=_0x27ce7f;return f[_0x31aec6(0x14c)](j,Object[_0x31aec6(0x171)]({},_0x4fc576,{'id':_0x31aec6(0x1fe),'ref':_0x286179,'icon':B}));});P[_0x27ce7f(0x1b5)]=_0x27ce7f(0x1bb);var Y=Object[_0x27ce7f(0x19f)],R=(_0x1bf4cc,_0x30f5c9,_0x4f1deb,_0x2ba10b)=>{var _0x5aae0c=_0x27ce7f;for(var _0x5db999=_0x2ba10b>0x1?void 0x0:_0x2ba10b?Y(_0x30f5c9,_0x4f1deb):_0x30f5c9,_0x4c7b6f=_0x1bf4cc[_0x5aae0c(0x1d1)]-0x1,_0x230bb2;_0x4c7b6f>=0x0;_0x4c7b6f--)(_0x230bb2=_0x1bf4cc[_0x4c7b6f])&&(_0x5db999=_0x230bb2(_0x5db999)||_0x5db999);return _0x5db999;},S=(_0x485541,_0x4a8067)=>(_0x41893c,_0x2b54f6)=>_0x4a8067(_0x41893c,_0x2b54f6,_0x485541);exports[_0x27ce7f(0x1cc)]=class extends o[_0x27ce7f(0x15d)]{constructor(_0x11f941,_0x2a3a04,_0x18be56){var _0x57807f=_0x27ce7f;super(),v(this,_0x57807f(0x207),new Map()),(this[_0x57807f(0x1da)]=_0x11f941,this[_0x57807f(0x194)]=_0x2a3a04,this['_collabSessionService']=_0x18be56,this['_init']());}async[_0x27ce7f(0x189)](_0x8c382){var _0x3948c8=_0x27ce7f;return this[_0x3948c8(0x207)][_0x3948c8(0x170)](_0x8c382)||await this[_0x3948c8(0x21e)](_0x8c382),this['_entities'][_0x3948c8(0x1fb)](_0x8c382);}[_0x27ce7f(0x21c)](){var _0x39f8f6=_0x27ce7f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])[_0x39f8f6(0x149)](b['takeUntil'](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](async _0x1abdf4=>{var _0x100eed=_0x39f8f6;const _0x2c7f84=_0x1abdf4[_0x100eed(0x191)]();this[_0x100eed(0x207)]['has'](_0x2c7f84)||this[_0x100eed(0x21e)](_0x2c7f84);}),this[_0x39f8f6(0x1da)]['getTypeOfUnitDisposed$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])['pipe'](b[_0x39f8f6(0x143)](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](_0x26100d=>{var _0x2e96d6=_0x39f8f6;const _0x340da6=_0x26100d[_0x2e96d6(0x191)](),_0x18bc03=this['_entities'][_0x2e96d6(0x1fb)](_0x340da6);_0x18bc03==null||_0x18bc03[_0x2e96d6(0x1a9)]();});}async[_0x27ce7f(0x21e)](_0xdda24){var _0x17dfa6=_0x27ce7f;const _0x47f0ff=await this['_collabSessionService']['requireSession'](_0xdda24),_0x2a2131=this[_0x17dfa6(0x194)][_0x17dfa6(0x182)](exports[_0x17dfa6(0x1b7)],_0xdda24,_0x47f0ff);return _0x2a2131[_0x17dfa6(0x1a6)](),this['_entities'][_0x17dfa6(0x1df)](_0xdda24,_0x2a2131),_0x2a2131;}},exports[_0x27ce7f(0x1cc)]=R([S(0x0,o[_0x27ce7f(0x1fd)]),S(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),S(0x2,o[_0x27ce7f(0x1bc)](m[_0x27ce7f(0x1af)]))],exports['LiveShareController']);var h=(_0x3a6c45=>(_0x3a6c45[_0x27ce7f(0x1d6)]=_0x27ce7f(0x1d5),_0x3a6c45[_0x27ce7f(0x13f)]=_0x27ce7f(0x1f3),_0x3a6c45[_0x27ce7f(0x1e7)]=_0x27ce7f(0x14a),_0x3a6c45[_0x27ce7f(0x14e)]=_0x27ce7f(0x217),_0x3a6c45[_0x27ce7f(0x1c7)]=_0x27ce7f(0x20d),_0x3a6c45))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x177619,_0x4d7736,_0x3a5e20,_0x55bcee,_0x11c502){var _0x2604ad=_0x27ce7f;super(),v(this,_0x2604ad(0x221),new x['BehaviorSubject'](_0x2604ad(0x1f3))),v(this,_0x2604ad(0x202),this['_status$'][_0x2604ad(0x20b)]()),v(this,'_init',!0x1),v(this,_0x2604ad(0x213),null),v(this,'_presenter',null),(this[_0x2604ad(0x19b)]=_0x177619,this['_collabSession']=_0x4d7736,this[_0x2604ad(0x195)]=_0x3a5e20,this[_0x2604ad(0x1b2)]=_0x55bcee,this[_0x2604ad(0x17b)]=_0x11c502);}get[_0x27ce7f(0x186)](){var _0x35309f=_0x27ce7f;return this['_status$'][_0x35309f(0x1bd)]();}[_0x27ce7f(0x1a9)](){var _0x411fae=_0x27ce7f,_0x4689db;(_0x4689db=this[_0x411fae(0x213)])==null||_0x4689db['dispose'](),this[_0x411fae(0x221)]['next'](_0x411fae(0x1f3)),this['_status$'][_0x411fae(0x1ab)]();}['init'](){var _0x3631c3=_0x27ce7f;this[_0x3631c3(0x21c)]||(this[_0x3631c3(0x21c)]=!0x0,this[_0x3631c3(0x1d0)][_0x3631c3(0x1b6)][_0x3631c3(0x149)](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))['subscribe'](_0x3baa12=>{var _0x54febc=_0x3631c3;switch(_0x3baa12){case m[_0x54febc(0x1ad)][_0x54febc(0x1d6)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54febc(0x1ba)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x3631c3(0x180)]['pipe'](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))[_0x3631c3(0x1d4)](_0x575cce=>{var _0x5205bb=_0x3631c3;const {eventID:_0x5dd02b}=_0x575cce;switch(_0x5dd02b){case _[_0x5205bb(0x20a)]['LIVESHARE_NEW_HOST']:this[_0x5205bb(0x17a)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x1c4)]:this[_0x5205bb(0x1dc)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x201)]:this[_0x5205bb(0x18b)]();break;case _['CollaborationEvent'][_0x5205bb(0x219)]:this['_handleNewChangeSets'](_0x575cce);break;}}));}[_0x27ce7f(0x1f9)](){var _0x16e792=_0x27ce7f;this[_0x16e792(0x1d0)]['send']({'eventID':_[_0x16e792(0x20a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x16e792(0x19b)],'userID':this[_0x16e792(0x1d0)]['getMemberID']()}},this['_unitID']);}[_0x27ce7f(0x1c6)](){var _0x4b32ca=_0x27ce7f;this[_0x4b32ca(0x186)]==='presenting'&&(this['_status$'][_0x4b32ca(0x1f8)]('idle'),this['_collabSession'][_0x4b32ca(0x1f5)]({'eventID':_[_0x4b32ca(0x20a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4b32ca(0x19b)]}},this[_0x4b32ca(0x19b)]));}[_0x27ce7f(0x1c0)](){var _0x4587fc=_0x27ce7f;this[_0x4587fc(0x186)]===_0x4587fc(0x217)&&(this['_status$']['next'](_0x4587fc(0x14a)),this['_startFollowing']());}[_0x27ce7f(0x148)](){var _0x39cd16=_0x27ce7f;this[_0x39cd16(0x186)]===_0x39cd16(0x14a)&&this['_stopFollowing']();}[_0x27ce7f(0x17a)](_0x1169e1){var _0x2420cb=_0x27ce7f;const {presenter:_0x4f2c20}=_0x1169e1[_0x2420cb(0x1bf)],_0x10f297=this[_0x2420cb(0x1d0)][_0x2420cb(0x181)]();this[_0x2420cb(0x160)]=_0x4f2c20,_0x4f2c20===_0x10f297?(this[_0x2420cb(0x1d3)](),this[_0x2420cb(0x15e)]()):this[_0x2420cb(0x186)]!==_0x2420cb(0x217)&&(this[_0x2420cb(0x18c)](),this[_0x2420cb(0x14d)]());}[_0x27ce7f(0x17f)](){var _0x292bf6=_0x27ce7f;const _0x2d0b01={'eventID':_[_0x292bf6(0x20a)][_0x292bf6(0x1c5)]};this[_0x292bf6(0x1d0)][_0x292bf6(0x1f5)](_0x2d0b01,this[_0x292bf6(0x19b)]);}[_0x27ce7f(0x18b)](){var _0x41e797=_0x27ce7f;this[_0x41e797(0x160)]=null,this[_0x41e797(0x186)]!==_0x41e797(0x20d)&&this[_0x41e797(0x174)]();}[_0x27ce7f(0x1c3)](_0x522b0e){var _0x43afe6=_0x27ce7f;if(this[_0x43afe6(0x186)]===_0x43afe6(0x14a)&&this[_0x43afe6(0x160)]===_0x522b0e[_0x43afe6(0x1bf)][_0x43afe6(0x173)]){const _0x156389=_['parseProtocolChangeset'](_0x522b0e[_0x43afe6(0x1bf)])[_0x43afe6(0x1eb)][_0x43afe6(0x20f)]()[_0x43afe6(0x150)](_0x4ada07=>_0x4ada07['id']===C[_0x43afe6(0x1b1)]['id']);if(_0x156389){const _0x2cdc29=_0x156389['params'][_0x43afe6(0x20e)],_0x3dc30c=_0x156389[_0x43afe6(0x1e3)]['sheet']['id'];setTimeout(()=>{var _0x58b8fd=_0x43afe6;this[_0x58b8fd(0x17b)][_0x58b8fd(0x1d2)](C[_0x58b8fd(0x1d9)]['id'],{'unitId':_0x2cdc29,'subUnitId':_0x3dc30c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b0f61=_0x27ce7f;this[_0x4b0f61(0x221)][_0x4b0f61(0x1f8)](_0x4b0f61(0x20d));const _0x1a0847=new Map(),_0x13148e=this[_0x4b0f61(0x213)]=new o['DisposableCollection']();_0x13148e['add'](o[_0x4b0f61(0x21b)](()=>{var _0x1a4a67=_0x4b0f61;_0x1a0847[_0x1a4a67(0x1e8)](_0x35ff52=>_0x35ff52[_0x1a4a67(0x1ab)]()),_0x1a0847[_0x1a4a67(0x140)]();})),_0x13148e['add'](this[_0x4b0f61(0x17b)][_0x4b0f61(0x222)](_0x45fc22=>{var _0x49498a=_0x4b0f61,_0x2f6136;if(_0x45fc22[_0x49498a(0x1cb)]!==o[_0x49498a(0x1f1)]['OPERATION']||!this[_0x49498a(0x1b2)][_0x49498a(0x162)](_0x45fc22['id']))return;const {id:_0x28d1f5}=_0x45fc22;let _0x22a221;_0x1a0847[_0x49498a(0x170)](_0x28d1f5)?_0x22a221=_0x1a0847[_0x49498a(0x1fb)](_0x28d1f5):(_0x22a221=new x[(_0x49498a(0x147))](),_0x1a0847[_0x49498a(0x1df)](_0x28d1f5,_0x22a221),_0x22a221[_0x49498a(0x149)](b['throttleTime']((_0x2f6136=this['_configService']['getConfig'](Z))!=null?_0x2f6136:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x49498a(0x1d4)](_0x29aeaa=>{var _0x220185=_0x49498a;this[_0x220185(0x1d0)][_0x220185(0x1f5)]({'eventID':_[_0x220185(0x20a)][_0x220185(0x1c4)],'data':{'unitID':this[_0x220185(0x19b)],'operations':{[_0x29aeaa['id']]:{'id':_0x29aeaa['id'],'params':JSON[_0x220185(0x196)](_0x29aeaa['params'])}}}},this['_unitID']);})),_0x22a221[_0x49498a(0x1f8)](_0x45fc22);})),this[_0x4b0f61(0x1b2)][_0x4b0f61(0x21f)](this['_unitID'])[_0x4b0f61(0x1e8)](_0x3d0c00=>this['_collabSession'][_0x4b0f61(0x1f5)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4b0f61(0x19b)],'operations':{[_0x3d0c00['id']]:{'id':_0x3d0c00['id'],'params':JSON['stringify'](_0x3d0c00['params'])}}}},this[_0x4b0f61(0x19b)]));}[_0x27ce7f(0x18c)](){var _0x2d4a53=_0x27ce7f,_0x3a95b4;this['_status$'][_0x2d4a53(0x1f8)](_0x2d4a53(0x1f3)),(_0x3a95b4=this['_commandDisposable'])==null||_0x3a95b4['dispose'](),this[_0x2d4a53(0x213)]=null;}[_0x27ce7f(0x14d)](){var _0x3febf0=_0x27ce7f,_0x3b0ee8;(_0x3b0ee8=this['_commandDisposable'])==null||_0x3b0ee8['dispose'](),this[_0x3febf0(0x221)][_0x3febf0(0x1f8)](_0x3febf0(0x14a));}[_0x27ce7f(0x174)](){var _0x20210b=_0x27ce7f,_0x35899a;this['_status$'][_0x20210b(0x1f8)](_0x20210b(0x1f3)),(_0x35899a=this[_0x20210b(0x213)])==null||_0x35899a['dispose'](),this[_0x20210b(0x213)]=null;}[_0x27ce7f(0x1d3)](){var _0x22bb56=_0x27ce7f,_0xdfd744;this[_0x22bb56(0x221)][_0x22bb56(0x1f8)](_0x22bb56(0x217)),(_0xdfd744=this[_0x22bb56(0x213)])==null||_0xdfd744[_0x22bb56(0x1a9)]();}[_0x27ce7f(0x1dc)](_0x5ef43f){var _0x512bd1=_0x27ce7f;if([_0x512bd1(0x20d),_0x512bd1(0x217),_0x512bd1(0x1d5)]['includes'](this[_0x512bd1(0x186)])||!_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]||_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x512bd1(0x1f3)&&this['_startFollowing']();const _0x4b2bc5=_0x5ef43f['data'][_0x512bd1(0x1ce)];Object[_0x512bd1(0x205)](_0x4b2bc5)[_0x512bd1(0x1e8)](_0x1d286d=>{var _0x493d41=_0x512bd1;this['_commandService'][_0x493d41(0x1d2)](_0x1d286d['id'],_0x1d286d['params']?JSON[_0x493d41(0x145)](_0x1d286d[_0x493d41(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x27ce7f(0x206)](){var _0x241ae2=_0x27ce7f,_0x347852;this[_0x241ae2(0x221)][_0x241ae2(0x1f8)](_0x241ae2(0x1d5)),(_0x347852=this['_commandDisposable'])==null||_0x347852[_0x241ae2(0x1a9)]();}[_0x27ce7f(0x209)](){var _0x25b0b0=_0x27ce7f;this[_0x25b0b0(0x221)][_0x25b0b0(0x1f8)](_0x25b0b0(0x1f3)),this['_fetchOperations']();}},exports[_0x27ce7f(0x1b7)]=R([S(0x2,o[_0x27ce7f(0x1f4)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x9f1b47=_0x27ce7f;const _0x4e7093=p['useDependency'](exports[_0x9f1b47(0x1cc)]),_0x27ea5e=p[_0x9f1b47(0x1c9)](o[_0x9f1b47(0x1fd)]),_0x268e1d=p[_0x9f1b47(0x152)](()=>_0x27ea5e[_0x9f1b47(0x161)](o['UniverInstanceType'][_0x9f1b47(0x1a4)]),void 0x0,!0x1,[]),[_0x1ca268,_0x5e08b2]=f[_0x9f1b47(0x21d)](null),[_0x4c3270,_0x1c352e]=f['useState'](h[_0x9f1b47(0x13f)]),_0x451fe1=f[_0x9f1b47(0x16f)](null);return f[_0x9f1b47(0x199)](()=>(_0x268e1d&&_0x4e7093['getLiveShareCoordinator'](_0x268e1d[_0x9f1b47(0x191)]())[_0x9f1b47(0x19d)](_0x5a5c83=>{var _0x19870f=_0x9f1b47;_0x5e08b2(_0x5a5c83),_0x451fe1[_0x19870f(0x21a)]=_0x5a5c83[_0x19870f(0x202)][_0x19870f(0x1d4)](_0x2b05a5=>{_0x1c352e(_0x2b05a5);});}),()=>{var _0xca9af9=_0x9f1b47,_0x5b5e1f;(_0x5b5e1f=_0x451fe1[_0xca9af9(0x21a)])==null||_0x5b5e1f[_0xca9af9(0x1b3)](),_0x451fe1[_0xca9af9(0x21a)]=null;}),[_0x268e1d,_0x4e7093]),_0x1ca268?l[_0x9f1b47(0x16a)](g[_0x9f1b47(0x16c)],{'align':_0x9f1b47(0x1a0),'disabled':_0x4c3270===h[_0x9f1b47(0x1d6)],'className':_0x9f1b47(0x17d),'overlay':l[_0x9f1b47(0x16a)](K,{'status':_0x4c3270,'coordinator':_0x1ca268}),'children':l[_0x9f1b47(0x16a)](_0x9f1b47(0x142),{'className':g[_0x9f1b47(0x18a)](_0x9f1b47(0x1e6),{'univer-cursor-not-allowed':_0x4c3270===h[_0x9f1b47(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c3270!==h[_0x9f1b47(0x1d6)]}),'type':_0x9f1b47(0x142),'children':l[_0x9f1b47(0x16a)](P,{'className':_0x9f1b47(0x1aa)})})}):null;}function K(_0x96190c){var _0x432105=_0x27ce7f;const {status:_0x1e476e,coordinator:_0x204902}=_0x96190c;switch(_0x1e476e){case h['IDLE']:return l[_0x432105(0x16a)](z,{'coordinator':_0x204902});case h['FOLLOWING']:return l[_0x432105(0x16a)](Q,{'coordinator':_0x204902});case h['NOT_FOLLOWING']:return l[_0x432105(0x16a)](X,{'coordinator':_0x204902});case h[_0x432105(0x1d6)]:return l[_0x432105(0x16a)](te,{});case h[_0x432105(0x1c7)]:return l[_0x432105(0x16a)](ee,{'coordinator':_0x204902});default:return null;}}function z(_0x383eee){var _0x4c0bdb=_0x27ce7f;const {coordinator:_0xb080b3}=_0x383eee;return l[_0x4c0bdb(0x1e2)](l['Fragment'],{'children':[l[_0x4c0bdb(0x16a)](_0x4c0bdb(0x169),{'className':_0x4c0bdb(0x1e5),'children':_0x4c0bdb(0x168)}),l['jsx'](g[_0x4c0bdb(0x1dd)],{'onClick':()=>_0xb080b3['tryStartPresenting'](),'children':_0x4c0bdb(0x144)})]});}function Q(_0x3624a8){var _0x3b713d=_0x27ce7f;const {coordinator:_0x1d0fc6}=_0x3624a8;return l[_0x3b713d(0x1e2)](l[_0x3b713d(0x184)],{'children':[l['jsx'](_0x3b713d(0x169),{'className':_0x3b713d(0x1e5),'children':_0x3b713d(0x1de)}),l[_0x3b713d(0x16a)](g[_0x3b713d(0x1dd)],{'onClick':()=>_0x1d0fc6[_0x3b713d(0x148)](),'children':_0x3b713d(0x13e)})]});}function X(_0x1bfd23){var _0x35ef94=_0x27ce7f;const {coordinator:_0xb0ed8e}=_0x1bfd23;return l['jsxs'](l[_0x35ef94(0x184)],{'children':[l[_0x35ef94(0x16a)](_0x35ef94(0x169),{'className':_0x35ef94(0x1e5),'children':_0x35ef94(0x1be)}),l[_0x35ef94(0x16a)](g[_0x35ef94(0x1dd)],{'variant':_0x35ef94(0x15b),'onClick':()=>_0xb0ed8e[_0x35ef94(0x1c0)](),'children':_0x35ef94(0x1e1)})]});}function ee(_0x5205be){var _0x20269f=_0x27ce7f;const {coordinator:_0x4230e3}=_0x5205be;return l[_0x20269f(0x1e2)](l[_0x20269f(0x184)],{'children':[l[_0x20269f(0x16a)](_0x20269f(0x169),{'className':_0x20269f(0x1e5),'children':_0x20269f(0x172)}),l[_0x20269f(0x16a)](g[_0x20269f(0x1dd)],{'variant':'default','onClick':()=>_0x4230e3[_0x20269f(0x1c6)](),'children':'Stop\x20presenting'})]});}function te(){var _0x20c59d=_0x27ce7f;return l[_0x20c59d(0x16a)](l[_0x20c59d(0x184)],{'children':_0x20c59d(0x19a)});}var ie=Object[_0x27ce7f(0x19f)],ne=(_0xd90009,_0x57d71d,_0x579ce4,_0x4be8c6)=>{for(var _0x17f739=_0x4be8c6>0x1?void 0x0:_0x4be8c6?ie(_0x57d71d,_0x579ce4):_0x57d71d,_0x24c21a=_0xd90009['length']-0x1,_0x3291e6;_0x24c21a>=0x0;_0x24c21a--)(_0x3291e6=_0xd90009[_0x24c21a])&&(_0x17f739=_0x3291e6(_0x17f739)||_0x17f739);return _0x17f739;},N=(_0x29f3f8,_0x3cc93c)=>(_0x54852a,_0x246af3)=>_0x3cc93c(_0x54852a,_0x246af3,_0x29f3f8);function _0x2ee7(){var _0x4db418=['LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','stopPresenting','PRESENTING','symbol','useDependency','onRendered','type','LiveShareController','837339AvNSTd','operations','1915016qCWoet','_collabSession','length','executeCommand','_stopFollowing','subscribe','offline','OFFLINE','toString','tag','SetWorksheetActiveOperation','_univerInstanceService','connectInjector','_handleOperation','Button','You\x27re\x20following\x20the\x20presenter','set','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Start\x20following','jsxs','params','propertyIsEnumerable','univer-w-full\x20univer-mb-3\x20univer-text-sm','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','forEach','mergeOverrideWithDependencies','LiveShareStatus','mutations','dispose$','colorChannel1','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','map','getOwnPropertySymbols','CommandType','defIds','idle','IConfigService','send','override','DesktopLiveShareController','next','tryStartPresenting','rxjs','get','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','live-share-single','concat','290540vxkHKM','LIVESHARE_TERMINATE','status$','56TPAvkE','idSuffix','values','_handleOffline','_entities','className','_handleOnline','CollaborationEvent','asObservable','defs','presenting','unitId','reverse','disposeWithMe','UniverCollaborationClientPlugin','none','_commandDisposable','registerSharedOperation','Injector','merge','not-following','1086kohTKz','NEW_CHANGESETS','current','toDisposable','_init','useState','_startLiveShareCoordinator','getInitialStates','from','_status$','onCommandExecuted','DependentOn','pluginName','Stop\x20following','IDLE','clear','icon','button','takeUntil','Start','parse','registerDependencies','Subject','stopFollowing','pipe','following','4maPyCG','createElement','_startFollowing','NOT_FOLLOWING','UniverInstanceType','find','react/jsx-runtime','useObservable','indexOf','UNIVER_UNKNOWN','apply','replace','_mountLiveShare','live-share.config','@univerjs-pro/collaboration','delete','text','react','RxDisposable','_startPresenting','onStarting','_presenter','getCurrentTypeOfUnit$','shouldShareOperation','2065EQjqGO','forwardRef','prototype','Disposable','Module','Present\x20this\x20document','div','jsx','call','Dropdown','entries','path','useRef','has','assign','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','1em','xlink:href','children','8358zDfoWm','extend','_handleNewHost','_commandService','UNIVER_LIVE_SHARE_PLUGIN','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','hasOwnProperty','_fetchOperations','event$','getMemberID','createInstance','@univerjs/ui','Fragment','106hxjGbr','_status','27lJaZRb','_sharedOperations','getLiveShareCoordinator','clsx','_handleTerminate','_stopPresenting','string','_uiPartsService','url(#$1','@univerjs-pro/collaboration-client','getUnitId','svg','4215266ZKskRF','_injector','_configService','stringify','fill','touchDependencies','useEffect','You\x27are\x20offline.','_unitID','setConfig','then','_config','getOwnPropertyDescriptor','end','LiveShare','0\x200\x2016\x2016','BuiltInUIPart','UNIVER_SHEET','HEADER_MENU','init','add','currentColor','dispose','univer-size-4','complete','attrs','SessionStatus','UniverLiveSharePlugin','CollaborationSessionService','IUIPartsService','InsertSheetMutation','_liveShareService','unsubscribe','_reporters','displayName','sessionStatus$','LiveShareCoordinator','defineProperty','toStringTag','ONLINE','LiveShareSingle','Inject','getValue','You\x27re\x20not\x20following\x20the\x20presenter','data','startFollowing','@univerjs/core','presenter','_handleNewChangeSets'];_0x2ee7=function(){return _0x4db418;};return _0x2ee7();}exports['DesktopLiveShareController']=class extends o[_0x27ce7f(0x166)]{constructor(_0x3dae27,_0x147e11){var _0x475c44=_0x27ce7f;super(),this[_0x475c44(0x194)]=_0x3dae27,this['_uiPartsService']=_0x147e11,this['_mountLiveShare']();}[_0x27ce7f(0x157)](){var _0x1259cd=_0x27ce7f;this[_0x1259cd(0x210)](this[_0x1259cd(0x18e)]['registerComponent'](p[_0x1259cd(0x1a3)][_0x1259cd(0x1a5)],()=>p[_0x1259cd(0x1db)](A,this['_injector'])));}},exports[_0x27ce7f(0x1f7)]=ne([N(0x0,o['Inject'](o[_0x27ce7f(0x215)])),N(0x1,p[_0x27ce7f(0x1b0)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0x27ce7f(0x19f)],oe=(_0x2d3187,_0x33a0ba,_0x1b7ec4)=>_0x33a0ba in _0x2d3187?re(_0x2d3187,_0x33a0ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7ec4}):_0x2d3187[_0x33a0ba]=_0x1b7ec4,ae=(_0x3285c3,_0x16c0ad,_0x3ef5d9,_0x4eec7f)=>{for(var _0x5fc715=_0x4eec7f>0x1?void 0x0:_0x4eec7f?se(_0x16c0ad,_0x3ef5d9):_0x16c0ad,_0x233a60=_0x3285c3['length']-0x1,_0x29e4a2;_0x233a60>=0x0;_0x233a60--)(_0x29e4a2=_0x3285c3[_0x233a60])&&(_0x5fc715=_0x29e4a2(_0x5fc715)||_0x5fc715);return _0x5fc715;},w=(_0x4d7643,_0x464c42)=>(_0x2cecf1,_0x214330)=>_0x464c42(_0x2cecf1,_0x214330,_0x4d7643),T=(_0xd2de8a,_0x24fd33,_0x1c0a1c)=>oe(_0xd2de8a,typeof _0x24fd33!=_0x27ce7f(0x1c8)?_0x24fd33+'':_0x24fd33,_0x1c0a1c);function _0xc178(_0x141cac,_0x57b52c){var _0x2ee758=_0x2ee7();return _0xc178=function(_0xc1789b,_0x3c7bb8){_0xc1789b=_0xc1789b-0x13e;var _0x22cb69=_0x2ee758[_0xc1789b];return _0x22cb69;},_0xc178(_0x141cac,_0x57b52c);}const le=_0x27ce7f(0x17c);exports[_0x27ce7f(0x1ae)]=class extends o['Plugin']{constructor(_0x5b06ee=L,_0x5bfe6d,_0x151674){var _0x418522=_0x27ce7f;super(),this[_0x418522(0x19e)]=_0x5b06ee,this['_injector']=_0x5bfe6d,this[_0x418522(0x195)]=_0x151674;const {..._0x1af75a}=o[_0x418522(0x216)]({},L,this[_0x418522(0x19e)]);this[_0x418522(0x195)][_0x418522(0x19c)]($,_0x1af75a);}[_0x27ce7f(0x15f)](){var _0x387aef=_0x27ce7f;o[_0x387aef(0x146)](this[_0x387aef(0x194)],o[_0x387aef(0x1e9)]([[E],[exports['LiveShareController']],[O],[exports[_0x387aef(0x1f7)]]],this['_config'][_0x387aef(0x1f6)])),o[_0x387aef(0x198)](this[_0x387aef(0x194)],[[O]]);}[_0x27ce7f(0x1ca)](){var _0x10a7d8=_0x27ce7f;o[_0x10a7d8(0x198)](this[_0x10a7d8(0x194)],[[exports[_0x10a7d8(0x1f7)]]]);}},T(exports[_0x27ce7f(0x1ae)],_0x27ce7f(0x1cb),o['UniverInstanceType'][_0x27ce7f(0x154)]),T(exports['UniverLiveSharePlugin'],_0x27ce7f(0x224),le),exports['UniverLiveSharePlugin']=ae([o[_0x27ce7f(0x223)](m[_0x27ce7f(0x211)]),w(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),w(0x2,o[_0x27ce7f(0x1f4)])],exports[_0x27ce7f(0x1ae)]),exports[_0x27ce7f(0x1a1)]=A,exports['LiveShareService']=E,exports[_0x27ce7f(0x1ea)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5baa88=_0x505a;(function(_0x1cbfcd,_0x4f2cf8){var _0x3c608a=_0x505a,_0x15779b=_0x1cbfcd();while(!![]){try{var _0x190775=parseInt(_0x3c608a(0x17a))/0x1*(-parseInt(_0x3c608a(0x155))/0x2)+-parseInt(_0x3c608a(0x15e))/0x3*(-parseInt(_0x3c608a(0x1b5))/0x4)+parseInt(_0x3c608a(0x145))/0x5*(-parseInt(_0x3c608a(0x1c8))/0x6)+parseInt(_0x3c608a(0x19a))/0x7*(parseInt(_0x3c608a(0x13b))/0x8)+parseInt(_0x3c608a(0x149))/0x9*(parseInt(_0x3c608a(0x19f))/0xa)+parseInt(_0x3c608a(0x154))/0xb+parseInt(_0x3c608a(0x1d1))/0xc;if(_0x190775===_0x4f2cf8)break;else _0x15779b['push'](_0x15779b['shift']());}catch(_0x2d5539){_0x15779b['push'](_0x15779b['shift']());}}}(_0x4c13,0xac1d3));var q=Object[_0x5baa88(0x1c1)],z=(_0x402861,_0x3093d2,_0x1aec80)=>_0x3093d2 in _0x402861?q(_0x402861,_0x3093d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aec80}):_0x402861[_0x3093d2]=_0x1aec80,d=(_0x2f1312,_0x3a9b55,_0x906fa1)=>z(_0x2f1312,typeof _0x3a9b55!='symbol'?_0x3a9b55+'':_0x3a9b55,_0x906fa1);import{CollaborationSessionService as _0x257046,SessionStatus as _0x1bb2ed,UniverCollaborationClientPlugin as _0x5156dc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x51f6c2,toDisposable as _0x44bf91,Inject as _0x5ac674,IUniverInstanceService as _0x6a6c5,Injector as _0x2df4bc,IConfigService as _0x537e94,ICommandService as _0x2b092b,RxDisposable as _0x323762,UniverInstanceType as _0x476fde,DisposableCollection as _0x468b9a,CommandType as _0x365184,DependentOn as _0x3d9c8c,Plugin as _0x5cf9ba,merge as _0x2ec77f,registerDependencies as _0x5b4057,mergeOverrideWithDependencies as _0x54df49,touchDependencies as _0x1652d1}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3f8280,InsertSheetMutation as _0x44a377}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x435432,SetScrollOperation as _0x184813}from'@univerjs/sheets-ui';import{useDependency as _0x595637,useObservable as _0x5a552f,IUIPartsService as _0x163c83,BuiltInUIPart as _0x428af2,connectInjector as _0x3bec91}from'@univerjs/ui';import{jsx as _0x34107d,jsxs as _0x4b2209,Fragment as _0x231007}from'react/jsx-runtime';import{Dropdown as _0x527d10,clsx as _0xc8bcb9,Button as _0x45fc60}from'@univerjs/design';import{forwardRef as _0x4b90dd,useRef as _0x5de855,createElement as _0x26c226,useState as _0x4e7a17,useEffect as _0x359dd9}from'react';import{CollaborationEvent as _0x5d49dc,parseProtocolChangeset as _0x2e7d6b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c7498,Subject as _0x289af7}from'rxjs';import{takeUntil as _0x34f785,throttleTime as _0x3a0090}from'rxjs/operators';const Oe=_0x5baa88(0x16b),T={};class L extends _0x51f6c2{constructor(){var _0x3da87b=_0x5baa88;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x3da87b(0x177),new Set());}[_0x5baa88(0x1c6)](_0x56821b){var _0x47f179=_0x5baa88;return this[_0x47f179(0x179)][_0x47f179(0x16c)](_0x56821b),_0x44bf91(()=>this[_0x47f179(0x179)][_0x47f179(0x127)](_0x56821b));}[_0x5baa88(0x14c)](_0x4a602c){var _0x57945d=_0x5baa88;return this[_0x57945d(0x177)][_0x57945d(0x16c)](_0x4a602c),_0x44bf91(()=>this[_0x57945d(0x177)][_0x57945d(0x127)](_0x4a602c));}[_0x5baa88(0x14b)](_0x2a717d){var _0x2d400f=_0x5baa88;return this['_sharedOperations'][_0x2d400f(0x135)](_0x2a717d);}['getInitialStates'](_0x30c65a){var _0xad2d7f=_0x5baa88;return Array[_0xad2d7f(0x126)](this[_0xad2d7f(0x177)])[_0xad2d7f(0x15f)](_0x172f1c=>_0x172f1c(_0x30c65a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x2e51e7,_0x5b89b1,_0x240a31,_0x51a232)=>{for(var _0x2f4d63=_0x51a232>0x1?void 0x0:_0x51a232?Ee(_0x5b89b1,_0x240a31):_0x5b89b1,_0x2c4989=_0x2e51e7['length']-0x1,_0x38cea1;_0x2c4989>=0x0;_0x2c4989--)(_0x38cea1=_0x2e51e7[_0x2c4989])&&(_0x2f4d63=_0x38cea1(_0x2f4d63)||_0x2f4d63);return _0x2f4d63;},Ne=(_0x339f02,_0x4c83fe)=>(_0x2fb06d,_0x131c2a)=>_0x4c83fe(_0x2fb06d,_0x131c2a,_0x339f02);let m=class extends _0x51f6c2{constructor(_0x574808){var _0x5782b9=_0x5baa88;super(),this[_0x5782b9(0x17d)]=_0x574808,this['_init']();}[_0x5baa88(0x18a)](){[_0x435432['id'],_0x184813['id'],_0x3f8280['id']]['forEach'](_0x3efee7=>{var _0x218143=_0x505a;this[_0x218143(0x1a4)](this[_0x218143(0x17d)][_0x218143(0x1c6)](_0x3efee7));});}};m=Ce([Ne(0x0,_0x5ac674(L))],m);var c=function(){var _0x3e044d=_0x5baa88;return c=Object['assign']||function(_0x4eb4b9){var _0x589879=_0x505a;for(var _0x569489,_0x5c2b84=0x1,_0x5c2f81=arguments['length'];_0x5c2b84<_0x5c2f81;_0x5c2b84++){_0x569489=arguments[_0x5c2b84];for(var _0x52fcd5 in _0x569489)Object['prototype'][_0x589879(0x1ad)][_0x589879(0x164)](_0x569489,_0x52fcd5)&&(_0x4eb4b9[_0x52fcd5]=_0x569489[_0x52fcd5]);}return _0x4eb4b9;},c[_0x3e044d(0x1cd)](this,arguments);},we=function(_0x4f8adc,_0x335f82){var _0x2b57be=_0x5baa88,_0x41863f={};for(var _0x4b3f2c in _0x4f8adc)Object[_0x2b57be(0x175)][_0x2b57be(0x1ad)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c)&&_0x335f82[_0x2b57be(0x1a1)](_0x4b3f2c)<0x0&&(_0x41863f[_0x4b3f2c]=_0x4f8adc[_0x4b3f2c]);if(_0x4f8adc!=null&&typeof Object[_0x2b57be(0x17b)]=='function'){for(var _0x578129=0x0,_0x4b3f2c=Object[_0x2b57be(0x17b)](_0x4f8adc);_0x578129<_0x4b3f2c[_0x2b57be(0x128)];_0x578129++)_0x335f82['indexOf'](_0x4b3f2c[_0x578129])<0x0&&Object[_0x2b57be(0x175)][_0x2b57be(0x1ce)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c[_0x578129])&&(_0x41863f[_0x4b3f2c[_0x578129]]=_0x4f8adc[_0x4b3f2c[_0x578129]]);}return _0x41863f;},W=_0x4b90dd(function(_0x46be1e,_0x210f0d){var _0xfe91dc=_0x5baa88,_0x4dc2b4=_0x46be1e[_0xfe91dc(0x152)],_0x3a5b95=_0x46be1e['id'],_0x365f3b=_0x46be1e[_0xfe91dc(0x141)],_0x4fd783=_0x46be1e[_0xfe91dc(0x167)],_0x4c102d=we(_0x46be1e,[_0xfe91dc(0x152),'id',_0xfe91dc(0x141),_0xfe91dc(0x167)]),_0x19e11d=_0xfe91dc(0x15a)['concat'](_0x3a5b95,'\x20')[_0xfe91dc(0x19b)](_0x365f3b||'')[_0xfe91dc(0x199)](),_0x39e899=_0x5de855('_'['concat'](Le()));return Y(_0x4dc2b4,''['concat'](_0x3a5b95),{'defIds':_0x4dc2b4[_0xfe91dc(0x1c5)],'idSuffix':_0x39e899[_0xfe91dc(0x1b9)]},c({'ref':_0x210f0d,'className':_0x19e11d},_0x4c102d),_0x4fd783);});function Y(_0x20f7c2,_0x37f770,_0x438dd3,_0x249e1e,_0x3b406e){var _0x1e5b05=_0x5baa88;return _0x26c226(_0x20f7c2[_0x1e5b05(0x156)],c(c({'key':_0x37f770},De(_0x20f7c2,_0x438dd3,_0x3b406e)),_0x249e1e),(xe(_0x20f7c2,_0x438dd3)[_0x1e5b05(0x19e)]||[])[_0x1e5b05(0x15f)](function(_0x30b380,_0xb42dee){var _0x26ddb7=_0x1e5b05;return Y(_0x30b380,''[_0x26ddb7(0x19b)](_0x37f770,'-')[_0x26ddb7(0x19b)](_0x20f7c2['tag'],'-')[_0x26ddb7(0x19b)](_0xb42dee),_0x438dd3,void 0x0,_0x3b406e);}));}function De(_0x249e48,_0x18cb50,_0x297482){var _0x3dcf63=_0x5baa88,_0x448c3a=c({},_0x249e48[_0x3dcf63(0x181)]);_0x297482!=null&&_0x297482['colorChannel1']&&_0x448c3a[_0x3dcf63(0x13e)]===_0x3dcf63(0x147)&&(_0x448c3a[_0x3dcf63(0x13e)]=_0x297482[_0x3dcf63(0x147)]),_0x249e48[_0x3dcf63(0x156)]===_0x3dcf63(0x1bb)&&_0x448c3a['id']&&(_0x448c3a['id']=_0x448c3a['id']+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x2a9175){var _0x221662=_0x3dcf63,_0x8e4b43=_0x2a9175[0x0],_0x21ef0a=_0x2a9175[0x1];_0x8e4b43==='mask'&&typeof _0x21ef0a=='string'&&(_0x448c3a[_0x8e4b43]=_0x21ef0a[_0x221662(0x130)](/url\(#(.*)\)/,_0x221662(0x1d2)[_0x221662(0x19b)](_0x18cb50[_0x221662(0x1b0)],')')));});var _0x39f4e1=_0x18cb50[_0x3dcf63(0x1c5)];return!_0x39f4e1||_0x39f4e1[_0x3dcf63(0x128)]===0x0||(_0x249e48['tag']===_0x3dcf63(0x1d3)&&_0x448c3a[_0x3dcf63(0x1a8)]&&(_0x448c3a[_0x3dcf63(0x1a8)]=_0x448c3a[_0x3dcf63(0x1a8)]+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x50e5e5){var _0x4bc426=_0x3dcf63,_0x234075=_0x50e5e5[0x0],_0xd8b35b=_0x50e5e5[0x1];typeof _0xd8b35b==_0x4bc426(0x16f)&&(_0x448c3a[_0x234075]=_0xd8b35b[_0x4bc426(0x130)](/url\(#(.*)\)/,_0x4bc426(0x1d2)[_0x4bc426(0x19b)](_0x18cb50['idSuffix'],')')));})),_0x448c3a;}function xe(_0x474119,_0x5eb69c){var _0x597061=_0x5baa88,_0x1b30c4,_0x248534=_0x5eb69c[_0x597061(0x1c5)];return!_0x248534||_0x248534['length']===0x0?_0x474119:_0x474119[_0x597061(0x156)]==='defs'&&(!((_0x1b30c4=_0x474119[_0x597061(0x19e)])===null||_0x1b30c4===void 0x0)&&_0x1b30c4[_0x597061(0x128)])?c(c({},_0x474119),{'children':_0x474119['children']['map'](function(_0x997044){var _0x5d8ebe=_0x597061;return typeof _0x997044[_0x5d8ebe(0x181)]['id']==_0x5d8ebe(0x16f)&&_0x248534&&_0x248534['indexOf'](_0x997044[_0x5d8ebe(0x181)]['id'])>-0x1?c(c({},_0x997044),{'attrs':c(c({},_0x997044[_0x5d8ebe(0x181)]),{'id':_0x997044[_0x5d8ebe(0x181)]['id']+_0x5eb69c['idSuffix']})}):_0x997044;})}):_0x474119;}function Le(){var _0x535041=_0x5baa88;return Math['random']()[_0x535041(0x12e)](0x24)['substring'](0x2,0x8);}W[_0x5baa88(0x14e)]=_0x5baa88(0x12f);var ye={'tag':'svg','attrs':{'fill':_0x5baa88(0x136),'viewBox':'0\x200\x2016\x2016','width':_0x5baa88(0x1b2),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5baa88(0x139),'attrs':{'fill':_0x5baa88(0x146),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x5baa88(0x1c4)}}]},B=_0x4b90dd(function(_0x3a6588,_0x1ba96f){var _0x5a43d7=_0x5baa88;return _0x26c226(W,Object[_0x5a43d7(0x196)]({},_0x3a6588,{'id':_0x5a43d7(0x193),'ref':_0x1ba96f,'icon':ye}));});function _0x4c13(){var _0x123f04=['defineProperty','offline','includes','evenodd','defIds','registerSharedOperation','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','174XFAHNZ','_status','dispose','dispose$','Stop\x20following','apply','propertyIsEnumerable','_collabSessionService','Start\x20following','14547972IpWMhn','url(#$1','use','from','delete','length','LIVESHARE_TERMINATE','following','HEADER_MENU','default','override','toString','UniverIcon','replace','_commandDisposable','_handleNewHost','params','_handleNewChangeSets','has','none','_startFollowing','onStarting','path','stringify','859048ycdzzv','LIVESHARE_OPERATION','next','fill','onRendered','getCurrentTypeOfUnit$','className','unitId','parse','pipe','70010DRGuPc','currentColor','colorChannel1','ONLINE','1754514ezXGLz','UNIVER_SHEET','shouldShareOperation','registerInitialStateReporter','idle','displayName','UNIVER_UNKNOWN','forEach','find','icon','LIVESHARE_NEW_HOST','398596kdXgAU','2pPYZAs','tag','_fetchOperations','reverse','div','univerjs-icon\x20univerjs-icon-','univer-w-full\x20univer-mb-3\x20univer-text-sm','_configService','_collabSession','33hZKWlb','map','startFollowing','data','_status$','_handleOffline','call','stopPresenting','type','extend','tryStartPresenting','set','registerComponent','live-share.config','add','getLiveShareCoordinator','entries','string','_presenter','getInitialStates','operations','_startLiveShareCoordinator','mutations','prototype','_commandService','_reporters','presenter','_sharedOperations','1250551FIRORl','getOwnPropertySymbols','subscribe','_liveShareService','You\x27are\x20offline.','_beIdle','getUnitId','attrs','Stop\x20presenting','_handleOnline','setConfig','sessionStatus$','You\x27re\x20following\x20the\x20presenter','values','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','_init','not-following','getTypeOfUnitDisposed$','status$','send','symbol','end','OFFLINE','clear','live-share-single','_startPresenting','_univerInstanceService','assign','executeCommand','You\x27re\x20not\x20following\x20the\x20presenter','trim','28ZnIyXQ','concat','_config','_injector','children','30oIbuHu','stopFollowing','indexOf','get','asObservable','disposeWithMe','getValue','NEW_CHANGESETS','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','xlink:href','_mountLiveShare','getMemberID','_stopFollowing','OPERATION','hasOwnProperty','_entities','unsubscribe','idSuffix','PRESENTING','1em','LIVESHARE_REQUEST_HOST','_stopPresenting','35876XviyCo','_unitID','presenting','getTypeOfUnitAdded$','current','text','mask','getOwnPropertyDescriptor','_handleOperation','init','NOT_FOLLOWING','IDLE'];_0x4c13=function(){return _0x123f04;};return _0x4c13();}B[_0x5baa88(0x14e)]='LiveShareSingle';var Re=Object[_0x5baa88(0x1bc)],Z=(_0x2bef35,_0x1f49d2,_0x1c1f81,_0x5808ae)=>{var _0x41e730=_0x5baa88;for(var _0x2d329b=_0x5808ae>0x1?void 0x0:_0x5808ae?Re(_0x1f49d2,_0x1c1f81):_0x1f49d2,_0x493e90=_0x2bef35[_0x41e730(0x128)]-0x1,_0x3c0ece;_0x493e90>=0x0;_0x493e90--)(_0x3c0ece=_0x2bef35[_0x493e90])&&(_0x2d329b=_0x3c0ece(_0x2d329b)||_0x2d329b);return _0x2d329b;},f=(_0x5738ae,_0x549f41)=>(_0x4982d1,_0x4ca765)=>_0x549f41(_0x4982d1,_0x4ca765,_0x5738ae);let I=class extends _0x323762{constructor(_0x31dfd4,_0x19be20,_0x30f0ea){var _0x38d48a=_0x5baa88;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x31dfd4,this[_0x38d48a(0x19d)]=_0x19be20,this[_0x38d48a(0x1cf)]=_0x30f0ea,this[_0x38d48a(0x18a)]());}async[_0x5baa88(0x16d)](_0x1fcb74){var _0x2caba6=_0x5baa88;return this[_0x2caba6(0x1ae)][_0x2caba6(0x135)](_0x1fcb74)||await this[_0x2caba6(0x173)](_0x1fcb74),this[_0x2caba6(0x1ae)][_0x2caba6(0x1a2)](_0x1fcb74);}[_0x5baa88(0x18a)](){var _0x42a5d4=_0x5baa88;this['_univerInstanceService'][_0x42a5d4(0x1b8)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this['dispose$']))['subscribe'](async _0x12c069=>{var _0xbb092=_0x42a5d4;const _0x21c581=_0x12c069[_0xbb092(0x180)]();this[_0xbb092(0x1ae)][_0xbb092(0x135)](_0x21c581)||this[_0xbb092(0x173)](_0x21c581);}),this[_0x42a5d4(0x195)][_0x42a5d4(0x18c)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this[_0x42a5d4(0x1cb)]))[_0x42a5d4(0x17c)](_0x308ce8=>{var _0x1ba3a1=_0x42a5d4;const _0x3f486b=_0x308ce8['getUnitId'](),_0x522af1=this['_entities'][_0x1ba3a1(0x1a2)](_0x3f486b);_0x522af1==null||_0x522af1[_0x1ba3a1(0x1ca)]();});}async[_0x5baa88(0x173)](_0x14ce46){var _0x202198=_0x5baa88;const _0x5bf929=await this[_0x202198(0x1cf)]['requireSession'](_0x14ce46),_0x5e7f08=this[_0x202198(0x19d)]['createInstance'](w,_0x14ce46,_0x5bf929);return _0x5e7f08[_0x202198(0x1be)](),this[_0x202198(0x1ae)][_0x202198(0x169)](_0x14ce46,_0x5e7f08),_0x5e7f08;}};function _0x505a(_0x7f7598,_0xacaeb4){var _0x4c13b7=_0x4c13();return _0x505a=function(_0x505a95,_0x51b335){_0x505a95=_0x505a95-0x126;var _0xb03eb5=_0x4c13b7[_0x505a95];return _0xb03eb5;},_0x505a(_0x7f7598,_0xacaeb4);}I=Z([f(0x0,_0x6a6c5),f(0x1,_0x5ac674(_0x2df4bc)),f(0x2,_0x5ac674(_0x257046))],I);var h=(_0x292296=>(_0x292296[_0x5baa88(0x191)]=_0x5baa88(0x1c2),_0x292296['IDLE']=_0x5baa88(0x14d),_0x292296['FOLLOWING']=_0x5baa88(0x12a),_0x292296[_0x5baa88(0x1bf)]=_0x5baa88(0x18b),_0x292296['PRESENTING']=_0x5baa88(0x1b7),_0x292296))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x323762{constructor(_0x59f8b0,_0xc72dac,_0x30ade8,_0x49fb0b,_0x1087dd){var _0x48319e=_0x5baa88;super(),d(this,'_status$',new _0x5c7498('idle')),d(this,_0x48319e(0x18d),this[_0x48319e(0x162)][_0x48319e(0x1a3)]()),d(this,_0x48319e(0x18a),!0x1),d(this,_0x48319e(0x131),null),d(this,_0x48319e(0x170),null),(this[_0x48319e(0x1b6)]=_0x59f8b0,this[_0x48319e(0x15d)]=_0xc72dac,this[_0x48319e(0x15c)]=_0x30ade8,this[_0x48319e(0x17d)]=_0x49fb0b,this[_0x48319e(0x176)]=_0x1087dd);}get['_status'](){var _0x5e91b4=_0x5baa88;return this['_status$'][_0x5e91b4(0x1a5)]();}[_0x5baa88(0x1ca)](){var _0xa51d65=_0x5baa88,_0x2b9137;(_0x2b9137=this[_0xa51d65(0x131)])==null||_0x2b9137[_0xa51d65(0x1ca)](),this[_0xa51d65(0x162)][_0xa51d65(0x13d)]('idle'),this['_status$']['complete']();}[_0x5baa88(0x1be)](){var _0x44dd26=_0x5baa88;this[_0x44dd26(0x18a)]||(this[_0x44dd26(0x18a)]=!0x0,this[_0x44dd26(0x15d)][_0x44dd26(0x185)][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))[_0x44dd26(0x17c)](_0x30fb76=>{var _0x1e76be=_0x44dd26;switch(_0x30fb76){case _0x1bb2ed[_0x1e76be(0x191)]:this['_handleOffline']();break;case _0x1bb2ed[_0x1e76be(0x148)]:this[_0x1e76be(0x183)]();break;}}),this[_0x44dd26(0x15d)]['event$'][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))['subscribe'](_0x3c06b3=>{var _0x3c8308=_0x44dd26;const {eventID:_0x32f977}=_0x3c06b3;switch(_0x32f977){case _0x5d49dc[_0x3c8308(0x153)]:this[_0x3c8308(0x132)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x13c)]:this[_0x3c8308(0x1bd)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x129)]:this['_handleTerminate']();break;case _0x5d49dc[_0x3c8308(0x1a6)]:this[_0x3c8308(0x134)](_0x3c06b3);break;}}));}[_0x5baa88(0x168)](){var _0x5b5fec=_0x5baa88;this[_0x5b5fec(0x15d)][_0x5b5fec(0x18e)]({'eventID':_0x5d49dc[_0x5b5fec(0x1b3)],'data':{'unitID':this[_0x5b5fec(0x1b6)],'userID':this[_0x5b5fec(0x15d)][_0x5b5fec(0x1aa)]()}},this[_0x5b5fec(0x1b6)]);}['stopPresenting'](){var _0x2e7b70=_0x5baa88;this[_0x2e7b70(0x1c9)]===_0x2e7b70(0x1b7)&&(this[_0x2e7b70(0x162)][_0x2e7b70(0x13d)](_0x2e7b70(0x14d)),this['_collabSession'][_0x2e7b70(0x18e)]({'eventID':_0x5d49dc[_0x2e7b70(0x129)],'data':{'unitID':this[_0x2e7b70(0x1b6)]}},this['_unitID']));}[_0x5baa88(0x160)](){var _0x3da0ef=_0x5baa88;this[_0x3da0ef(0x1c9)]===_0x3da0ef(0x18b)&&(this[_0x3da0ef(0x162)]['next']('following'),this[_0x3da0ef(0x137)]());}[_0x5baa88(0x1a0)](){var _0x69ba91=_0x5baa88;this['_status']===_0x69ba91(0x12a)&&this[_0x69ba91(0x1ab)]();}[_0x5baa88(0x132)](_0x2fa867){var _0x28ca27=_0x5baa88;const {presenter:_0x3f4eff}=_0x2fa867['data'],_0x3f191c=this[_0x28ca27(0x15d)][_0x28ca27(0x1aa)]();this[_0x28ca27(0x170)]=_0x3f4eff,_0x3f4eff===_0x3f191c?(this[_0x28ca27(0x1ab)](),this[_0x28ca27(0x194)]()):this[_0x28ca27(0x1c9)]!=='not-following'&&(this[_0x28ca27(0x1b4)](),this[_0x28ca27(0x137)]());}['_fetchOperations'](){var _0x2046e9=_0x5baa88;const _0x5a4608={'eventID':_0x5d49dc['LIVESHARE_FETCH_OPERATIONS']};this[_0x2046e9(0x15d)][_0x2046e9(0x18e)](_0x5a4608,this[_0x2046e9(0x1b6)]);}['_handleTerminate'](){var _0x2cf420=_0x5baa88;this['_presenter']=null,this[_0x2cf420(0x1c9)]!=='presenting'&&this[_0x2cf420(0x17f)]();}[_0x5baa88(0x134)](_0x54bcac){var _0x41e946=_0x5baa88;if(this[_0x41e946(0x1c9)]===_0x41e946(0x12a)&&this['_presenter']===_0x54bcac[_0x41e946(0x161)]['memberID']){const _0x6fc8a3=_0x2e7d6b(_0x54bcac[_0x41e946(0x161)])[_0x41e946(0x174)][_0x41e946(0x158)]()[_0x41e946(0x151)](_0x1d502e=>_0x1d502e['id']===_0x44a377['id']);if(_0x6fc8a3){const _0x550ddb=_0x6fc8a3[_0x41e946(0x133)][_0x41e946(0x142)],_0x68a95c=_0x6fc8a3[_0x41e946(0x133)]['sheet']['id'];setTimeout(()=>{var _0xacd93e=_0x41e946;this[_0xacd93e(0x176)][_0xacd93e(0x197)](_0x3f8280['id'],{'unitId':_0x550ddb,'subUnitId':_0x68a95c},{'fromCollab':!0x0});});}}}[_0x5baa88(0x194)](){var _0x1cf1e3=_0x5baa88;this[_0x1cf1e3(0x162)][_0x1cf1e3(0x13d)](_0x1cf1e3(0x1b7));const _0x1acd0b=new Map(),_0x204fbd=this['_commandDisposable']=new _0x468b9a();_0x204fbd[_0x1cf1e3(0x16c)](_0x44bf91(()=>{var _0x24782b=_0x1cf1e3;_0x1acd0b['forEach'](_0x1b4b6c=>_0x1b4b6c['complete']()),_0x1acd0b[_0x24782b(0x192)]();})),_0x204fbd[_0x1cf1e3(0x16c)](this[_0x1cf1e3(0x176)]['onCommandExecuted'](_0x48aeb5=>{var _0x569b52=_0x1cf1e3,_0x340c7e;if(_0x48aeb5[_0x569b52(0x166)]!==_0x365184[_0x569b52(0x1ac)]||!this[_0x569b52(0x17d)][_0x569b52(0x14b)](_0x48aeb5['id']))return;const {id:_0x3d7023}=_0x48aeb5;let _0x2852b7;_0x1acd0b[_0x569b52(0x135)](_0x3d7023)?_0x2852b7=_0x1acd0b[_0x569b52(0x1a2)](_0x3d7023):(_0x2852b7=new _0x289af7(),_0x1acd0b[_0x569b52(0x169)](_0x3d7023,_0x2852b7),_0x2852b7['pipe'](_0x3a0090((_0x340c7e=this[_0x569b52(0x15c)]['getConfig'](Pe))!=null?_0x340c7e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x569b52(0x17c)](_0xf92ee3=>{var _0x4e79b7=_0x569b52;this['_collabSession'][_0x4e79b7(0x18e)]({'eventID':_0x5d49dc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e79b7(0x1b6)],'operations':{[_0xf92ee3['id']]:{'id':_0xf92ee3['id'],'params':JSON[_0x4e79b7(0x13a)](_0xf92ee3['params'])}}}},this['_unitID']);})),_0x2852b7[_0x569b52(0x13d)](_0x48aeb5);})),this[_0x1cf1e3(0x17d)][_0x1cf1e3(0x171)](this[_0x1cf1e3(0x1b6)])[_0x1cf1e3(0x150)](_0x27ee98=>this[_0x1cf1e3(0x15d)]['send']({'eventID':_0x5d49dc[_0x1cf1e3(0x13c)],'data':{'unitID':this['_unitID'],'operations':{[_0x27ee98['id']]:{'id':_0x27ee98['id'],'params':JSON['stringify'](_0x27ee98[_0x1cf1e3(0x133)])}}}},this[_0x1cf1e3(0x1b6)]));}[_0x5baa88(0x1b4)](){var _0x3bb04a=_0x5baa88,_0x36d752;this[_0x3bb04a(0x162)][_0x3bb04a(0x13d)](_0x3bb04a(0x14d)),(_0x36d752=this[_0x3bb04a(0x131)])==null||_0x36d752[_0x3bb04a(0x1ca)](),this[_0x3bb04a(0x131)]=null;}[_0x5baa88(0x137)](){var _0x51801a=_0x5baa88,_0x3b6472;(_0x3b6472=this[_0x51801a(0x131)])==null||_0x3b6472[_0x51801a(0x1ca)](),this['_status$'][_0x51801a(0x13d)](_0x51801a(0x12a));}[_0x5baa88(0x17f)](){var _0x556ec2=_0x5baa88,_0x31b160;this[_0x556ec2(0x162)]['next'](_0x556ec2(0x14d)),(_0x31b160=this[_0x556ec2(0x131)])==null||_0x31b160[_0x556ec2(0x1ca)](),this['_commandDisposable']=null;}[_0x5baa88(0x1ab)](){var _0x4394fb=_0x5baa88,_0x56a2b1;this[_0x4394fb(0x162)][_0x4394fb(0x13d)](_0x4394fb(0x18b)),(_0x56a2b1=this[_0x4394fb(0x131)])==null||_0x56a2b1[_0x4394fb(0x1ca)]();}['_handleOperation'](_0x196027){var _0x4e8fe7=_0x5baa88;if(['presenting',_0x4e8fe7(0x18b),_0x4e8fe7(0x1c2)][_0x4e8fe7(0x1c3)](this['_status'])||!_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]||_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]===this[_0x4e8fe7(0x15d)][_0x4e8fe7(0x1aa)]())return;this[_0x4e8fe7(0x1c9)]===_0x4e8fe7(0x14d)&&this[_0x4e8fe7(0x137)]();const _0x10ee94=_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x172)];Object[_0x4e8fe7(0x187)](_0x10ee94)[_0x4e8fe7(0x150)](_0x5b816a=>{var _0x3b0eb9=_0x4e8fe7;this[_0x3b0eb9(0x176)]['executeCommand'](_0x5b816a['id'],_0x5b816a[_0x3b0eb9(0x133)]?JSON[_0x3b0eb9(0x143)](_0x5b816a[_0x3b0eb9(0x133)]):null,{'fromCollab':!0x0});});}[_0x5baa88(0x163)](){var _0x53520d=_0x5baa88,_0x3e21dd;this[_0x53520d(0x162)][_0x53520d(0x13d)](_0x53520d(0x1c2)),(_0x3e21dd=this[_0x53520d(0x131)])==null||_0x3e21dd[_0x53520d(0x1ca)]();}[_0x5baa88(0x183)](){var _0x1cd500=_0x5baa88;this['_status$'][_0x1cd500(0x13d)](_0x1cd500(0x14d)),this[_0x1cd500(0x157)]();}};w=Z([f(0x2,_0x537e94),f(0x3,_0x5ac674(L)),f(0x4,_0x2b092b)],w);function Te(){var _0x2c8a51=_0x5baa88;const _0x6c538f=_0x595637(I),_0x3570a5=_0x595637(_0x6a6c5),_0x58b26c=_0x5a552f(()=>_0x3570a5[_0x2c8a51(0x140)](_0x476fde['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x273507,_0x43f526]=_0x4e7a17(null),[_0x44d3f8,_0x5d4fab]=_0x4e7a17(h[_0x2c8a51(0x1c0)]),_0x122a0f=_0x5de855(null);return _0x359dd9(()=>(_0x58b26c&&_0x6c538f[_0x2c8a51(0x16d)](_0x58b26c[_0x2c8a51(0x180)]())['then'](_0x403fad=>{var _0x10f347=_0x2c8a51;_0x43f526(_0x403fad),_0x122a0f[_0x10f347(0x1b9)]=_0x403fad['status$'][_0x10f347(0x17c)](_0x466b13=>{_0x5d4fab(_0x466b13);});}),()=>{var _0x4bf9de=_0x2c8a51,_0xa69a7;(_0xa69a7=_0x122a0f['current'])==null||_0xa69a7[_0x4bf9de(0x1af)](),_0x122a0f[_0x4bf9de(0x1b9)]=null;}),[_0x58b26c,_0x6c538f]),_0x273507?_0x34107d(_0x527d10,{'align':_0x2c8a51(0x190),'disabled':_0x44d3f8===h[_0x2c8a51(0x191)],'className':_0x2c8a51(0x1a7),'overlay':_0x34107d($e,{'status':_0x44d3f8,'coordinator':_0x273507}),'children':_0x34107d('button',{'className':_0xc8bcb9(_0x2c8a51(0x1c7),{'univer-cursor-not-allowed':_0x44d3f8===h[_0x2c8a51(0x191)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44d3f8!==h[_0x2c8a51(0x191)]}),'type':'button','children':_0x34107d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x5866e4){var _0x14a12e=_0x5baa88;const {status:_0x547095,coordinator:_0x2ae335}=_0x5866e4;switch(_0x547095){case h[_0x14a12e(0x1c0)]:return _0x34107d(Fe,{'coordinator':_0x2ae335});case h['FOLLOWING']:return _0x34107d(He,{'coordinator':_0x2ae335});case h[_0x14a12e(0x1bf)]:return _0x34107d(je,{'coordinator':_0x2ae335});case h[_0x14a12e(0x191)]:return _0x34107d(Ve,{});case h[_0x14a12e(0x1b1)]:return _0x34107d(Ue,{'coordinator':_0x2ae335});default:return null;}}function Fe(_0x50acf7){var _0x78b839=_0x5baa88;const {coordinator:_0x5b638d}=_0x50acf7;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x78b839(0x15b),'children':'Present\x20this\x20document'}),_0x34107d(_0x45fc60,{'onClick':()=>_0x5b638d[_0x78b839(0x168)](),'children':'Start'})]});}function He(_0x366060){var _0x15ca23=_0x5baa88;const {coordinator:_0x123231}=_0x366060;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15ca23(0x186)}),_0x34107d(_0x45fc60,{'onClick':()=>_0x123231['stopFollowing'](),'children':_0x15ca23(0x1cc)})]});}function je(_0x37af43){var _0x5ccfed=_0x5baa88;const {coordinator:_0x2dbcd5}=_0x37af43;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x5ccfed(0x15b),'children':_0x5ccfed(0x198)}),_0x34107d(_0x45fc60,{'variant':_0x5ccfed(0x1ba),'onClick':()=>_0x2dbcd5[_0x5ccfed(0x160)](),'children':_0x5ccfed(0x1d0)})]});}function Ue(_0x22f238){var _0x518e80=_0x5baa88;const {coordinator:_0x2abc90}=_0x22f238;return _0x4b2209(_0x231007,{'children':[_0x34107d(_0x518e80(0x159),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x34107d(_0x45fc60,{'variant':_0x518e80(0x12c),'onClick':()=>_0x2abc90[_0x518e80(0x165)](),'children':_0x518e80(0x182)})]});}function Ve(){var _0x57297f=_0x5baa88;return _0x34107d(_0x231007,{'children':_0x57297f(0x17e)});}var Me=Object[_0x5baa88(0x1bc)],ke=(_0x8faa5c,_0x189421,_0x4a59fb,_0x5bd7f2)=>{var _0x33af7f=_0x5baa88;for(var _0xde2407=_0x5bd7f2>0x1?void 0x0:_0x5bd7f2?Me(_0x189421,_0x4a59fb):_0x189421,_0x6d97db=_0x8faa5c[_0x33af7f(0x128)]-0x1,_0x21033f;_0x6d97db>=0x0;_0x6d97db--)(_0x21033f=_0x8faa5c[_0x6d97db])&&(_0xde2407=_0x21033f(_0xde2407)||_0xde2407);return _0xde2407;},$=(_0x41771d,_0x425f38)=>(_0x3d1b95,_0x20c16d)=>_0x425f38(_0x3d1b95,_0x20c16d,_0x41771d);let b=class extends _0x51f6c2{constructor(_0x2fe84d,_0xfab69e){var _0x29f728=_0x5baa88;super(),this[_0x29f728(0x19d)]=_0x2fe84d,this[_0x29f728(0x189)]=_0xfab69e,this[_0x29f728(0x1a9)]();}[_0x5baa88(0x1a9)](){var _0x10934e=_0x5baa88;this[_0x10934e(0x1a4)](this[_0x10934e(0x189)][_0x10934e(0x16a)](_0x428af2[_0x10934e(0x12b)],()=>_0x3bec91(Te,this[_0x10934e(0x19d)])));}};b=ke([$(0x0,_0x5ac674(_0x2df4bc)),$(0x1,_0x163c83)],b);var Ge=Object['defineProperty'],We=Object[_0x5baa88(0x1bc)],Ye=(_0x1d48e3,_0x22b056,_0x28c932)=>_0x22b056 in _0x1d48e3?Ge(_0x1d48e3,_0x22b056,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c932}):_0x1d48e3[_0x22b056]=_0x28c932,Be=(_0x188662,_0x294e9a,_0x1de047,_0x5a03bd)=>{for(var _0x30d5b7=_0x5a03bd>0x1?void 0x0:_0x5a03bd?We(_0x294e9a,_0x1de047):_0x294e9a,_0x46501f=_0x188662['length']-0x1,_0x4611c0;_0x46501f>=0x0;_0x46501f--)(_0x4611c0=_0x188662[_0x46501f])&&(_0x30d5b7=_0x4611c0(_0x30d5b7)||_0x30d5b7);return _0x30d5b7;},F=(_0x11b59e,_0x8e5e11)=>(_0x5490fa,_0x2e8515)=>_0x8e5e11(_0x5490fa,_0x2e8515,_0x11b59e),J=(_0x36253a,_0x5c7ebb,_0x3045c5)=>Ye(_0x36253a,typeof _0x5c7ebb!=_0x5baa88(0x18f)?_0x5c7ebb+'':_0x5c7ebb,_0x3045c5);const Ze=_0x5baa88(0x188);let O=class extends _0x5cf9ba{constructor(_0x1ee9f6=T,_0x1c2514,_0x424dca){var _0x17bbb1=_0x5baa88;super(),this[_0x17bbb1(0x19c)]=_0x1ee9f6,this[_0x17bbb1(0x19d)]=_0x1c2514,this[_0x17bbb1(0x15c)]=_0x424dca;const {..._0x1c1531}=_0x2ec77f({},T,this['_config']);this[_0x17bbb1(0x15c)][_0x17bbb1(0x184)](Oe,_0x1c1531);}[_0x5baa88(0x138)](){var _0x3071eb=_0x5baa88;_0x5b4057(this[_0x3071eb(0x19d)],_0x54df49([[L],[I],[m],[b]],this[_0x3071eb(0x19c)][_0x3071eb(0x12d)])),_0x1652d1(this[_0x3071eb(0x19d)],[[m]]);}[_0x5baa88(0x13f)](){var _0x47197a=_0x5baa88;_0x1652d1(this[_0x47197a(0x19d)],[[b]]);}};J(O,'type',_0x476fde[_0x5baa88(0x14f)]),J(O,'pluginName',Ze),O=Be([_0x3d9c8c(_0x5156dc),F(0x1,_0x5ac674(_0x2df4bc)),F(0x2,_0x537e94)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','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','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5baa88=_0x505a;(function(_0x1cbfcd,_0x4f2cf8){var _0x3c608a=_0x505a,_0x15779b=_0x1cbfcd();while(!![]){try{var _0x190775=parseInt(_0x3c608a(0x17a))/0x1*(-parseInt(_0x3c608a(0x155))/0x2)+-parseInt(_0x3c608a(0x15e))/0x3*(-parseInt(_0x3c608a(0x1b5))/0x4)+parseInt(_0x3c608a(0x145))/0x5*(-parseInt(_0x3c608a(0x1c8))/0x6)+parseInt(_0x3c608a(0x19a))/0x7*(parseInt(_0x3c608a(0x13b))/0x8)+parseInt(_0x3c608a(0x149))/0x9*(parseInt(_0x3c608a(0x19f))/0xa)+parseInt(_0x3c608a(0x154))/0xb+parseInt(_0x3c608a(0x1d1))/0xc;if(_0x190775===_0x4f2cf8)break;else _0x15779b['push'](_0x15779b['shift']());}catch(_0x2d5539){_0x15779b['push'](_0x15779b['shift']());}}}(_0x4c13,0xac1d3));var q=Object[_0x5baa88(0x1c1)],z=(_0x402861,_0x3093d2,_0x1aec80)=>_0x3093d2 in _0x402861?q(_0x402861,_0x3093d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aec80}):_0x402861[_0x3093d2]=_0x1aec80,d=(_0x2f1312,_0x3a9b55,_0x906fa1)=>z(_0x2f1312,typeof _0x3a9b55!='symbol'?_0x3a9b55+'':_0x3a9b55,_0x906fa1);import{CollaborationSessionService as _0x257046,SessionStatus as _0x1bb2ed,UniverCollaborationClientPlugin as _0x5156dc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x51f6c2,toDisposable as _0x44bf91,Inject as _0x5ac674,IUniverInstanceService as _0x6a6c5,Injector as _0x2df4bc,IConfigService as _0x537e94,ICommandService as _0x2b092b,RxDisposable as _0x323762,UniverInstanceType as _0x476fde,DisposableCollection as _0x468b9a,CommandType as _0x365184,DependentOn as _0x3d9c8c,Plugin as _0x5cf9ba,merge as _0x2ec77f,registerDependencies as _0x5b4057,mergeOverrideWithDependencies as _0x54df49,touchDependencies as _0x1652d1}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3f8280,InsertSheetMutation as _0x44a377}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x435432,SetScrollOperation as _0x184813}from'@univerjs/sheets-ui';import{useDependency as _0x595637,useObservable as _0x5a552f,IUIPartsService as _0x163c83,BuiltInUIPart as _0x428af2,connectInjector as _0x3bec91}from'@univerjs/ui';import{jsx as _0x34107d,jsxs as _0x4b2209,Fragment as _0x231007}from'react/jsx-runtime';import{Dropdown as _0x527d10,clsx as _0xc8bcb9,Button as _0x45fc60}from'@univerjs/design';import{forwardRef as _0x4b90dd,useRef as _0x5de855,createElement as _0x26c226,useState as _0x4e7a17,useEffect as _0x359dd9}from'react';import{CollaborationEvent as _0x5d49dc,parseProtocolChangeset as _0x2e7d6b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c7498,Subject as _0x289af7}from'rxjs';import{takeUntil as _0x34f785,throttleTime as _0x3a0090}from'rxjs/operators';const Oe=_0x5baa88(0x16b),T={};class L extends _0x51f6c2{constructor(){var _0x3da87b=_0x5baa88;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x3da87b(0x177),new Set());}[_0x5baa88(0x1c6)](_0x56821b){var _0x47f179=_0x5baa88;return this[_0x47f179(0x179)][_0x47f179(0x16c)](_0x56821b),_0x44bf91(()=>this[_0x47f179(0x179)][_0x47f179(0x127)](_0x56821b));}[_0x5baa88(0x14c)](_0x4a602c){var _0x57945d=_0x5baa88;return this[_0x57945d(0x177)][_0x57945d(0x16c)](_0x4a602c),_0x44bf91(()=>this[_0x57945d(0x177)][_0x57945d(0x127)](_0x4a602c));}[_0x5baa88(0x14b)](_0x2a717d){var _0x2d400f=_0x5baa88;return this['_sharedOperations'][_0x2d400f(0x135)](_0x2a717d);}['getInitialStates'](_0x30c65a){var _0xad2d7f=_0x5baa88;return Array[_0xad2d7f(0x126)](this[_0xad2d7f(0x177)])[_0xad2d7f(0x15f)](_0x172f1c=>_0x172f1c(_0x30c65a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x2e51e7,_0x5b89b1,_0x240a31,_0x51a232)=>{for(var _0x2f4d63=_0x51a232>0x1?void 0x0:_0x51a232?Ee(_0x5b89b1,_0x240a31):_0x5b89b1,_0x2c4989=_0x2e51e7['length']-0x1,_0x38cea1;_0x2c4989>=0x0;_0x2c4989--)(_0x38cea1=_0x2e51e7[_0x2c4989])&&(_0x2f4d63=_0x38cea1(_0x2f4d63)||_0x2f4d63);return _0x2f4d63;},Ne=(_0x339f02,_0x4c83fe)=>(_0x2fb06d,_0x131c2a)=>_0x4c83fe(_0x2fb06d,_0x131c2a,_0x339f02);let m=class extends _0x51f6c2{constructor(_0x574808){var _0x5782b9=_0x5baa88;super(),this[_0x5782b9(0x17d)]=_0x574808,this['_init']();}[_0x5baa88(0x18a)](){[_0x435432['id'],_0x184813['id'],_0x3f8280['id']]['forEach'](_0x3efee7=>{var _0x218143=_0x505a;this[_0x218143(0x1a4)](this[_0x218143(0x17d)][_0x218143(0x1c6)](_0x3efee7));});}};m=Ce([Ne(0x0,_0x5ac674(L))],m);var c=function(){var _0x3e044d=_0x5baa88;return c=Object['assign']||function(_0x4eb4b9){var _0x589879=_0x505a;for(var _0x569489,_0x5c2b84=0x1,_0x5c2f81=arguments['length'];_0x5c2b84<_0x5c2f81;_0x5c2b84++){_0x569489=arguments[_0x5c2b84];for(var _0x52fcd5 in _0x569489)Object['prototype'][_0x589879(0x1ad)][_0x589879(0x164)](_0x569489,_0x52fcd5)&&(_0x4eb4b9[_0x52fcd5]=_0x569489[_0x52fcd5]);}return _0x4eb4b9;},c[_0x3e044d(0x1cd)](this,arguments);},we=function(_0x4f8adc,_0x335f82){var _0x2b57be=_0x5baa88,_0x41863f={};for(var _0x4b3f2c in _0x4f8adc)Object[_0x2b57be(0x175)][_0x2b57be(0x1ad)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c)&&_0x335f82[_0x2b57be(0x1a1)](_0x4b3f2c)<0x0&&(_0x41863f[_0x4b3f2c]=_0x4f8adc[_0x4b3f2c]);if(_0x4f8adc!=null&&typeof Object[_0x2b57be(0x17b)]=='function'){for(var _0x578129=0x0,_0x4b3f2c=Object[_0x2b57be(0x17b)](_0x4f8adc);_0x578129<_0x4b3f2c[_0x2b57be(0x128)];_0x578129++)_0x335f82['indexOf'](_0x4b3f2c[_0x578129])<0x0&&Object[_0x2b57be(0x175)][_0x2b57be(0x1ce)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c[_0x578129])&&(_0x41863f[_0x4b3f2c[_0x578129]]=_0x4f8adc[_0x4b3f2c[_0x578129]]);}return _0x41863f;},W=_0x4b90dd(function(_0x46be1e,_0x210f0d){var _0xfe91dc=_0x5baa88,_0x4dc2b4=_0x46be1e[_0xfe91dc(0x152)],_0x3a5b95=_0x46be1e['id'],_0x365f3b=_0x46be1e[_0xfe91dc(0x141)],_0x4fd783=_0x46be1e[_0xfe91dc(0x167)],_0x4c102d=we(_0x46be1e,[_0xfe91dc(0x152),'id',_0xfe91dc(0x141),_0xfe91dc(0x167)]),_0x19e11d=_0xfe91dc(0x15a)['concat'](_0x3a5b95,'\x20')[_0xfe91dc(0x19b)](_0x365f3b||'')[_0xfe91dc(0x199)](),_0x39e899=_0x5de855('_'['concat'](Le()));return Y(_0x4dc2b4,''['concat'](_0x3a5b95),{'defIds':_0x4dc2b4[_0xfe91dc(0x1c5)],'idSuffix':_0x39e899[_0xfe91dc(0x1b9)]},c({'ref':_0x210f0d,'className':_0x19e11d},_0x4c102d),_0x4fd783);});function Y(_0x20f7c2,_0x37f770,_0x438dd3,_0x249e1e,_0x3b406e){var _0x1e5b05=_0x5baa88;return _0x26c226(_0x20f7c2[_0x1e5b05(0x156)],c(c({'key':_0x37f770},De(_0x20f7c2,_0x438dd3,_0x3b406e)),_0x249e1e),(xe(_0x20f7c2,_0x438dd3)[_0x1e5b05(0x19e)]||[])[_0x1e5b05(0x15f)](function(_0x30b380,_0xb42dee){var _0x26ddb7=_0x1e5b05;return Y(_0x30b380,''[_0x26ddb7(0x19b)](_0x37f770,'-')[_0x26ddb7(0x19b)](_0x20f7c2['tag'],'-')[_0x26ddb7(0x19b)](_0xb42dee),_0x438dd3,void 0x0,_0x3b406e);}));}function De(_0x249e48,_0x18cb50,_0x297482){var _0x3dcf63=_0x5baa88,_0x448c3a=c({},_0x249e48[_0x3dcf63(0x181)]);_0x297482!=null&&_0x297482['colorChannel1']&&_0x448c3a[_0x3dcf63(0x13e)]===_0x3dcf63(0x147)&&(_0x448c3a[_0x3dcf63(0x13e)]=_0x297482[_0x3dcf63(0x147)]),_0x249e48[_0x3dcf63(0x156)]===_0x3dcf63(0x1bb)&&_0x448c3a['id']&&(_0x448c3a['id']=_0x448c3a['id']+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x2a9175){var _0x221662=_0x3dcf63,_0x8e4b43=_0x2a9175[0x0],_0x21ef0a=_0x2a9175[0x1];_0x8e4b43==='mask'&&typeof _0x21ef0a=='string'&&(_0x448c3a[_0x8e4b43]=_0x21ef0a[_0x221662(0x130)](/url\(#(.*)\)/,_0x221662(0x1d2)[_0x221662(0x19b)](_0x18cb50[_0x221662(0x1b0)],')')));});var _0x39f4e1=_0x18cb50[_0x3dcf63(0x1c5)];return!_0x39f4e1||_0x39f4e1[_0x3dcf63(0x128)]===0x0||(_0x249e48['tag']===_0x3dcf63(0x1d3)&&_0x448c3a[_0x3dcf63(0x1a8)]&&(_0x448c3a[_0x3dcf63(0x1a8)]=_0x448c3a[_0x3dcf63(0x1a8)]+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x50e5e5){var _0x4bc426=_0x3dcf63,_0x234075=_0x50e5e5[0x0],_0xd8b35b=_0x50e5e5[0x1];typeof _0xd8b35b==_0x4bc426(0x16f)&&(_0x448c3a[_0x234075]=_0xd8b35b[_0x4bc426(0x130)](/url\(#(.*)\)/,_0x4bc426(0x1d2)[_0x4bc426(0x19b)](_0x18cb50['idSuffix'],')')));})),_0x448c3a;}function xe(_0x474119,_0x5eb69c){var _0x597061=_0x5baa88,_0x1b30c4,_0x248534=_0x5eb69c[_0x597061(0x1c5)];return!_0x248534||_0x248534['length']===0x0?_0x474119:_0x474119[_0x597061(0x156)]==='defs'&&(!((_0x1b30c4=_0x474119[_0x597061(0x19e)])===null||_0x1b30c4===void 0x0)&&_0x1b30c4[_0x597061(0x128)])?c(c({},_0x474119),{'children':_0x474119['children']['map'](function(_0x997044){var _0x5d8ebe=_0x597061;return typeof _0x997044[_0x5d8ebe(0x181)]['id']==_0x5d8ebe(0x16f)&&_0x248534&&_0x248534['indexOf'](_0x997044[_0x5d8ebe(0x181)]['id'])>-0x1?c(c({},_0x997044),{'attrs':c(c({},_0x997044[_0x5d8ebe(0x181)]),{'id':_0x997044[_0x5d8ebe(0x181)]['id']+_0x5eb69c['idSuffix']})}):_0x997044;})}):_0x474119;}function Le(){var _0x535041=_0x5baa88;return Math['random']()[_0x535041(0x12e)](0x24)['substring'](0x2,0x8);}W[_0x5baa88(0x14e)]=_0x5baa88(0x12f);var ye={'tag':'svg','attrs':{'fill':_0x5baa88(0x136),'viewBox':'0\x200\x2016\x2016','width':_0x5baa88(0x1b2),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5baa88(0x139),'attrs':{'fill':_0x5baa88(0x146),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x5baa88(0x1c4)}}]},B=_0x4b90dd(function(_0x3a6588,_0x1ba96f){var _0x5a43d7=_0x5baa88;return _0x26c226(W,Object[_0x5a43d7(0x196)]({},_0x3a6588,{'id':_0x5a43d7(0x193),'ref':_0x1ba96f,'icon':ye}));});function _0x4c13(){var _0x123f04=['defineProperty','offline','includes','evenodd','defIds','registerSharedOperation','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','174XFAHNZ','_status','dispose','dispose$','Stop\x20following','apply','propertyIsEnumerable','_collabSessionService','Start\x20following','14547972IpWMhn','url(#$1','use','from','delete','length','LIVESHARE_TERMINATE','following','HEADER_MENU','default','override','toString','UniverIcon','replace','_commandDisposable','_handleNewHost','params','_handleNewChangeSets','has','none','_startFollowing','onStarting','path','stringify','859048ycdzzv','LIVESHARE_OPERATION','next','fill','onRendered','getCurrentTypeOfUnit$','className','unitId','parse','pipe','70010DRGuPc','currentColor','colorChannel1','ONLINE','1754514ezXGLz','UNIVER_SHEET','shouldShareOperation','registerInitialStateReporter','idle','displayName','UNIVER_UNKNOWN','forEach','find','icon','LIVESHARE_NEW_HOST','398596kdXgAU','2pPYZAs','tag','_fetchOperations','reverse','div','univerjs-icon\x20univerjs-icon-','univer-w-full\x20univer-mb-3\x20univer-text-sm','_configService','_collabSession','33hZKWlb','map','startFollowing','data','_status$','_handleOffline','call','stopPresenting','type','extend','tryStartPresenting','set','registerComponent','live-share.config','add','getLiveShareCoordinator','entries','string','_presenter','getInitialStates','operations','_startLiveShareCoordinator','mutations','prototype','_commandService','_reporters','presenter','_sharedOperations','1250551FIRORl','getOwnPropertySymbols','subscribe','_liveShareService','You\x27are\x20offline.','_beIdle','getUnitId','attrs','Stop\x20presenting','_handleOnline','setConfig','sessionStatus$','You\x27re\x20following\x20the\x20presenter','values','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','_init','not-following','getTypeOfUnitDisposed$','status$','send','symbol','end','OFFLINE','clear','live-share-single','_startPresenting','_univerInstanceService','assign','executeCommand','You\x27re\x20not\x20following\x20the\x20presenter','trim','28ZnIyXQ','concat','_config','_injector','children','30oIbuHu','stopFollowing','indexOf','get','asObservable','disposeWithMe','getValue','NEW_CHANGESETS','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','xlink:href','_mountLiveShare','getMemberID','_stopFollowing','OPERATION','hasOwnProperty','_entities','unsubscribe','idSuffix','PRESENTING','1em','LIVESHARE_REQUEST_HOST','_stopPresenting','35876XviyCo','_unitID','presenting','getTypeOfUnitAdded$','current','text','mask','getOwnPropertyDescriptor','_handleOperation','init','NOT_FOLLOWING','IDLE'];_0x4c13=function(){return _0x123f04;};return _0x4c13();}B[_0x5baa88(0x14e)]='LiveShareSingle';var Re=Object[_0x5baa88(0x1bc)],Z=(_0x2bef35,_0x1f49d2,_0x1c1f81,_0x5808ae)=>{var _0x41e730=_0x5baa88;for(var _0x2d329b=_0x5808ae>0x1?void 0x0:_0x5808ae?Re(_0x1f49d2,_0x1c1f81):_0x1f49d2,_0x493e90=_0x2bef35[_0x41e730(0x128)]-0x1,_0x3c0ece;_0x493e90>=0x0;_0x493e90--)(_0x3c0ece=_0x2bef35[_0x493e90])&&(_0x2d329b=_0x3c0ece(_0x2d329b)||_0x2d329b);return _0x2d329b;},f=(_0x5738ae,_0x549f41)=>(_0x4982d1,_0x4ca765)=>_0x549f41(_0x4982d1,_0x4ca765,_0x5738ae);let I=class extends _0x323762{constructor(_0x31dfd4,_0x19be20,_0x30f0ea){var _0x38d48a=_0x5baa88;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x31dfd4,this[_0x38d48a(0x19d)]=_0x19be20,this[_0x38d48a(0x1cf)]=_0x30f0ea,this[_0x38d48a(0x18a)]());}async[_0x5baa88(0x16d)](_0x1fcb74){var _0x2caba6=_0x5baa88;return this[_0x2caba6(0x1ae)][_0x2caba6(0x135)](_0x1fcb74)||await this[_0x2caba6(0x173)](_0x1fcb74),this[_0x2caba6(0x1ae)][_0x2caba6(0x1a2)](_0x1fcb74);}[_0x5baa88(0x18a)](){var _0x42a5d4=_0x5baa88;this['_univerInstanceService'][_0x42a5d4(0x1b8)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this['dispose$']))['subscribe'](async _0x12c069=>{var _0xbb092=_0x42a5d4;const _0x21c581=_0x12c069[_0xbb092(0x180)]();this[_0xbb092(0x1ae)][_0xbb092(0x135)](_0x21c581)||this[_0xbb092(0x173)](_0x21c581);}),this[_0x42a5d4(0x195)][_0x42a5d4(0x18c)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this[_0x42a5d4(0x1cb)]))[_0x42a5d4(0x17c)](_0x308ce8=>{var _0x1ba3a1=_0x42a5d4;const _0x3f486b=_0x308ce8['getUnitId'](),_0x522af1=this['_entities'][_0x1ba3a1(0x1a2)](_0x3f486b);_0x522af1==null||_0x522af1[_0x1ba3a1(0x1ca)]();});}async[_0x5baa88(0x173)](_0x14ce46){var _0x202198=_0x5baa88;const _0x5bf929=await this[_0x202198(0x1cf)]['requireSession'](_0x14ce46),_0x5e7f08=this[_0x202198(0x19d)]['createInstance'](w,_0x14ce46,_0x5bf929);return _0x5e7f08[_0x202198(0x1be)](),this[_0x202198(0x1ae)][_0x202198(0x169)](_0x14ce46,_0x5e7f08),_0x5e7f08;}};function _0x505a(_0x7f7598,_0xacaeb4){var _0x4c13b7=_0x4c13();return _0x505a=function(_0x505a95,_0x51b335){_0x505a95=_0x505a95-0x126;var _0xb03eb5=_0x4c13b7[_0x505a95];return _0xb03eb5;},_0x505a(_0x7f7598,_0xacaeb4);}I=Z([f(0x0,_0x6a6c5),f(0x1,_0x5ac674(_0x2df4bc)),f(0x2,_0x5ac674(_0x257046))],I);var h=(_0x292296=>(_0x292296[_0x5baa88(0x191)]=_0x5baa88(0x1c2),_0x292296['IDLE']=_0x5baa88(0x14d),_0x292296['FOLLOWING']=_0x5baa88(0x12a),_0x292296[_0x5baa88(0x1bf)]=_0x5baa88(0x18b),_0x292296['PRESENTING']=_0x5baa88(0x1b7),_0x292296))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x323762{constructor(_0x59f8b0,_0xc72dac,_0x30ade8,_0x49fb0b,_0x1087dd){var _0x48319e=_0x5baa88;super(),d(this,'_status$',new _0x5c7498('idle')),d(this,_0x48319e(0x18d),this[_0x48319e(0x162)][_0x48319e(0x1a3)]()),d(this,_0x48319e(0x18a),!0x1),d(this,_0x48319e(0x131),null),d(this,_0x48319e(0x170),null),(this[_0x48319e(0x1b6)]=_0x59f8b0,this[_0x48319e(0x15d)]=_0xc72dac,this[_0x48319e(0x15c)]=_0x30ade8,this[_0x48319e(0x17d)]=_0x49fb0b,this[_0x48319e(0x176)]=_0x1087dd);}get['_status'](){var _0x5e91b4=_0x5baa88;return this['_status$'][_0x5e91b4(0x1a5)]();}[_0x5baa88(0x1ca)](){var _0xa51d65=_0x5baa88,_0x2b9137;(_0x2b9137=this[_0xa51d65(0x131)])==null||_0x2b9137[_0xa51d65(0x1ca)](),this[_0xa51d65(0x162)][_0xa51d65(0x13d)]('idle'),this['_status$']['complete']();}[_0x5baa88(0x1be)](){var _0x44dd26=_0x5baa88;this[_0x44dd26(0x18a)]||(this[_0x44dd26(0x18a)]=!0x0,this[_0x44dd26(0x15d)][_0x44dd26(0x185)][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))[_0x44dd26(0x17c)](_0x30fb76=>{var _0x1e76be=_0x44dd26;switch(_0x30fb76){case _0x1bb2ed[_0x1e76be(0x191)]:this['_handleOffline']();break;case _0x1bb2ed[_0x1e76be(0x148)]:this[_0x1e76be(0x183)]();break;}}),this[_0x44dd26(0x15d)]['event$'][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))['subscribe'](_0x3c06b3=>{var _0x3c8308=_0x44dd26;const {eventID:_0x32f977}=_0x3c06b3;switch(_0x32f977){case _0x5d49dc[_0x3c8308(0x153)]:this[_0x3c8308(0x132)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x13c)]:this[_0x3c8308(0x1bd)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x129)]:this['_handleTerminate']();break;case _0x5d49dc[_0x3c8308(0x1a6)]:this[_0x3c8308(0x134)](_0x3c06b3);break;}}));}[_0x5baa88(0x168)](){var _0x5b5fec=_0x5baa88;this[_0x5b5fec(0x15d)][_0x5b5fec(0x18e)]({'eventID':_0x5d49dc[_0x5b5fec(0x1b3)],'data':{'unitID':this[_0x5b5fec(0x1b6)],'userID':this[_0x5b5fec(0x15d)][_0x5b5fec(0x1aa)]()}},this[_0x5b5fec(0x1b6)]);}['stopPresenting'](){var _0x2e7b70=_0x5baa88;this[_0x2e7b70(0x1c9)]===_0x2e7b70(0x1b7)&&(this[_0x2e7b70(0x162)][_0x2e7b70(0x13d)](_0x2e7b70(0x14d)),this['_collabSession'][_0x2e7b70(0x18e)]({'eventID':_0x5d49dc[_0x2e7b70(0x129)],'data':{'unitID':this[_0x2e7b70(0x1b6)]}},this['_unitID']));}[_0x5baa88(0x160)](){var _0x3da0ef=_0x5baa88;this[_0x3da0ef(0x1c9)]===_0x3da0ef(0x18b)&&(this[_0x3da0ef(0x162)]['next']('following'),this[_0x3da0ef(0x137)]());}[_0x5baa88(0x1a0)](){var _0x69ba91=_0x5baa88;this['_status']===_0x69ba91(0x12a)&&this[_0x69ba91(0x1ab)]();}[_0x5baa88(0x132)](_0x2fa867){var _0x28ca27=_0x5baa88;const {presenter:_0x3f4eff}=_0x2fa867['data'],_0x3f191c=this[_0x28ca27(0x15d)][_0x28ca27(0x1aa)]();this[_0x28ca27(0x170)]=_0x3f4eff,_0x3f4eff===_0x3f191c?(this[_0x28ca27(0x1ab)](),this[_0x28ca27(0x194)]()):this[_0x28ca27(0x1c9)]!=='not-following'&&(this[_0x28ca27(0x1b4)](),this[_0x28ca27(0x137)]());}['_fetchOperations'](){var _0x2046e9=_0x5baa88;const _0x5a4608={'eventID':_0x5d49dc['LIVESHARE_FETCH_OPERATIONS']};this[_0x2046e9(0x15d)][_0x2046e9(0x18e)](_0x5a4608,this[_0x2046e9(0x1b6)]);}['_handleTerminate'](){var _0x2cf420=_0x5baa88;this['_presenter']=null,this[_0x2cf420(0x1c9)]!=='presenting'&&this[_0x2cf420(0x17f)]();}[_0x5baa88(0x134)](_0x54bcac){var _0x41e946=_0x5baa88;if(this[_0x41e946(0x1c9)]===_0x41e946(0x12a)&&this['_presenter']===_0x54bcac[_0x41e946(0x161)]['memberID']){const _0x6fc8a3=_0x2e7d6b(_0x54bcac[_0x41e946(0x161)])[_0x41e946(0x174)][_0x41e946(0x158)]()[_0x41e946(0x151)](_0x1d502e=>_0x1d502e['id']===_0x44a377['id']);if(_0x6fc8a3){const _0x550ddb=_0x6fc8a3[_0x41e946(0x133)][_0x41e946(0x142)],_0x68a95c=_0x6fc8a3[_0x41e946(0x133)]['sheet']['id'];setTimeout(()=>{var _0xacd93e=_0x41e946;this[_0xacd93e(0x176)][_0xacd93e(0x197)](_0x3f8280['id'],{'unitId':_0x550ddb,'subUnitId':_0x68a95c},{'fromCollab':!0x0});});}}}[_0x5baa88(0x194)](){var _0x1cf1e3=_0x5baa88;this[_0x1cf1e3(0x162)][_0x1cf1e3(0x13d)](_0x1cf1e3(0x1b7));const _0x1acd0b=new Map(),_0x204fbd=this['_commandDisposable']=new _0x468b9a();_0x204fbd[_0x1cf1e3(0x16c)](_0x44bf91(()=>{var _0x24782b=_0x1cf1e3;_0x1acd0b['forEach'](_0x1b4b6c=>_0x1b4b6c['complete']()),_0x1acd0b[_0x24782b(0x192)]();})),_0x204fbd[_0x1cf1e3(0x16c)](this[_0x1cf1e3(0x176)]['onCommandExecuted'](_0x48aeb5=>{var _0x569b52=_0x1cf1e3,_0x340c7e;if(_0x48aeb5[_0x569b52(0x166)]!==_0x365184[_0x569b52(0x1ac)]||!this[_0x569b52(0x17d)][_0x569b52(0x14b)](_0x48aeb5['id']))return;const {id:_0x3d7023}=_0x48aeb5;let _0x2852b7;_0x1acd0b[_0x569b52(0x135)](_0x3d7023)?_0x2852b7=_0x1acd0b[_0x569b52(0x1a2)](_0x3d7023):(_0x2852b7=new _0x289af7(),_0x1acd0b[_0x569b52(0x169)](_0x3d7023,_0x2852b7),_0x2852b7['pipe'](_0x3a0090((_0x340c7e=this[_0x569b52(0x15c)]['getConfig'](Pe))!=null?_0x340c7e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x569b52(0x17c)](_0xf92ee3=>{var _0x4e79b7=_0x569b52;this['_collabSession'][_0x4e79b7(0x18e)]({'eventID':_0x5d49dc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e79b7(0x1b6)],'operations':{[_0xf92ee3['id']]:{'id':_0xf92ee3['id'],'params':JSON[_0x4e79b7(0x13a)](_0xf92ee3['params'])}}}},this['_unitID']);})),_0x2852b7[_0x569b52(0x13d)](_0x48aeb5);})),this[_0x1cf1e3(0x17d)][_0x1cf1e3(0x171)](this[_0x1cf1e3(0x1b6)])[_0x1cf1e3(0x150)](_0x27ee98=>this[_0x1cf1e3(0x15d)]['send']({'eventID':_0x5d49dc[_0x1cf1e3(0x13c)],'data':{'unitID':this['_unitID'],'operations':{[_0x27ee98['id']]:{'id':_0x27ee98['id'],'params':JSON['stringify'](_0x27ee98[_0x1cf1e3(0x133)])}}}},this[_0x1cf1e3(0x1b6)]));}[_0x5baa88(0x1b4)](){var _0x3bb04a=_0x5baa88,_0x36d752;this[_0x3bb04a(0x162)][_0x3bb04a(0x13d)](_0x3bb04a(0x14d)),(_0x36d752=this[_0x3bb04a(0x131)])==null||_0x36d752[_0x3bb04a(0x1ca)](),this[_0x3bb04a(0x131)]=null;}[_0x5baa88(0x137)](){var _0x51801a=_0x5baa88,_0x3b6472;(_0x3b6472=this[_0x51801a(0x131)])==null||_0x3b6472[_0x51801a(0x1ca)](),this['_status$'][_0x51801a(0x13d)](_0x51801a(0x12a));}[_0x5baa88(0x17f)](){var _0x556ec2=_0x5baa88,_0x31b160;this[_0x556ec2(0x162)]['next'](_0x556ec2(0x14d)),(_0x31b160=this[_0x556ec2(0x131)])==null||_0x31b160[_0x556ec2(0x1ca)](),this['_commandDisposable']=null;}[_0x5baa88(0x1ab)](){var _0x4394fb=_0x5baa88,_0x56a2b1;this[_0x4394fb(0x162)][_0x4394fb(0x13d)](_0x4394fb(0x18b)),(_0x56a2b1=this[_0x4394fb(0x131)])==null||_0x56a2b1[_0x4394fb(0x1ca)]();}['_handleOperation'](_0x196027){var _0x4e8fe7=_0x5baa88;if(['presenting',_0x4e8fe7(0x18b),_0x4e8fe7(0x1c2)][_0x4e8fe7(0x1c3)](this['_status'])||!_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]||_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]===this[_0x4e8fe7(0x15d)][_0x4e8fe7(0x1aa)]())return;this[_0x4e8fe7(0x1c9)]===_0x4e8fe7(0x14d)&&this[_0x4e8fe7(0x137)]();const _0x10ee94=_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x172)];Object[_0x4e8fe7(0x187)](_0x10ee94)[_0x4e8fe7(0x150)](_0x5b816a=>{var _0x3b0eb9=_0x4e8fe7;this[_0x3b0eb9(0x176)]['executeCommand'](_0x5b816a['id'],_0x5b816a[_0x3b0eb9(0x133)]?JSON[_0x3b0eb9(0x143)](_0x5b816a[_0x3b0eb9(0x133)]):null,{'fromCollab':!0x0});});}[_0x5baa88(0x163)](){var _0x53520d=_0x5baa88,_0x3e21dd;this[_0x53520d(0x162)][_0x53520d(0x13d)](_0x53520d(0x1c2)),(_0x3e21dd=this[_0x53520d(0x131)])==null||_0x3e21dd[_0x53520d(0x1ca)]();}[_0x5baa88(0x183)](){var _0x1cd500=_0x5baa88;this['_status$'][_0x1cd500(0x13d)](_0x1cd500(0x14d)),this[_0x1cd500(0x157)]();}};w=Z([f(0x2,_0x537e94),f(0x3,_0x5ac674(L)),f(0x4,_0x2b092b)],w);function Te(){var _0x2c8a51=_0x5baa88;const _0x6c538f=_0x595637(I),_0x3570a5=_0x595637(_0x6a6c5),_0x58b26c=_0x5a552f(()=>_0x3570a5[_0x2c8a51(0x140)](_0x476fde['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x273507,_0x43f526]=_0x4e7a17(null),[_0x44d3f8,_0x5d4fab]=_0x4e7a17(h[_0x2c8a51(0x1c0)]),_0x122a0f=_0x5de855(null);return _0x359dd9(()=>(_0x58b26c&&_0x6c538f[_0x2c8a51(0x16d)](_0x58b26c[_0x2c8a51(0x180)]())['then'](_0x403fad=>{var _0x10f347=_0x2c8a51;_0x43f526(_0x403fad),_0x122a0f[_0x10f347(0x1b9)]=_0x403fad['status$'][_0x10f347(0x17c)](_0x466b13=>{_0x5d4fab(_0x466b13);});}),()=>{var _0x4bf9de=_0x2c8a51,_0xa69a7;(_0xa69a7=_0x122a0f['current'])==null||_0xa69a7[_0x4bf9de(0x1af)](),_0x122a0f[_0x4bf9de(0x1b9)]=null;}),[_0x58b26c,_0x6c538f]),_0x273507?_0x34107d(_0x527d10,{'align':_0x2c8a51(0x190),'disabled':_0x44d3f8===h[_0x2c8a51(0x191)],'className':_0x2c8a51(0x1a7),'overlay':_0x34107d($e,{'status':_0x44d3f8,'coordinator':_0x273507}),'children':_0x34107d('button',{'className':_0xc8bcb9(_0x2c8a51(0x1c7),{'univer-cursor-not-allowed':_0x44d3f8===h[_0x2c8a51(0x191)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44d3f8!==h[_0x2c8a51(0x191)]}),'type':'button','children':_0x34107d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x5866e4){var _0x14a12e=_0x5baa88;const {status:_0x547095,coordinator:_0x2ae335}=_0x5866e4;switch(_0x547095){case h[_0x14a12e(0x1c0)]:return _0x34107d(Fe,{'coordinator':_0x2ae335});case h['FOLLOWING']:return _0x34107d(He,{'coordinator':_0x2ae335});case h[_0x14a12e(0x1bf)]:return _0x34107d(je,{'coordinator':_0x2ae335});case h[_0x14a12e(0x191)]:return _0x34107d(Ve,{});case h[_0x14a12e(0x1b1)]:return _0x34107d(Ue,{'coordinator':_0x2ae335});default:return null;}}function Fe(_0x50acf7){var _0x78b839=_0x5baa88;const {coordinator:_0x5b638d}=_0x50acf7;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x78b839(0x15b),'children':'Present\x20this\x20document'}),_0x34107d(_0x45fc60,{'onClick':()=>_0x5b638d[_0x78b839(0x168)](),'children':'Start'})]});}function He(_0x366060){var _0x15ca23=_0x5baa88;const {coordinator:_0x123231}=_0x366060;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15ca23(0x186)}),_0x34107d(_0x45fc60,{'onClick':()=>_0x123231['stopFollowing'](),'children':_0x15ca23(0x1cc)})]});}function je(_0x37af43){var _0x5ccfed=_0x5baa88;const {coordinator:_0x2dbcd5}=_0x37af43;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x5ccfed(0x15b),'children':_0x5ccfed(0x198)}),_0x34107d(_0x45fc60,{'variant':_0x5ccfed(0x1ba),'onClick':()=>_0x2dbcd5[_0x5ccfed(0x160)](),'children':_0x5ccfed(0x1d0)})]});}function Ue(_0x22f238){var _0x518e80=_0x5baa88;const {coordinator:_0x2abc90}=_0x22f238;return _0x4b2209(_0x231007,{'children':[_0x34107d(_0x518e80(0x159),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x34107d(_0x45fc60,{'variant':_0x518e80(0x12c),'onClick':()=>_0x2abc90[_0x518e80(0x165)](),'children':_0x518e80(0x182)})]});}function Ve(){var _0x57297f=_0x5baa88;return _0x34107d(_0x231007,{'children':_0x57297f(0x17e)});}var Me=Object[_0x5baa88(0x1bc)],ke=(_0x8faa5c,_0x189421,_0x4a59fb,_0x5bd7f2)=>{var _0x33af7f=_0x5baa88;for(var _0xde2407=_0x5bd7f2>0x1?void 0x0:_0x5bd7f2?Me(_0x189421,_0x4a59fb):_0x189421,_0x6d97db=_0x8faa5c[_0x33af7f(0x128)]-0x1,_0x21033f;_0x6d97db>=0x0;_0x6d97db--)(_0x21033f=_0x8faa5c[_0x6d97db])&&(_0xde2407=_0x21033f(_0xde2407)||_0xde2407);return _0xde2407;},$=(_0x41771d,_0x425f38)=>(_0x3d1b95,_0x20c16d)=>_0x425f38(_0x3d1b95,_0x20c16d,_0x41771d);let b=class extends _0x51f6c2{constructor(_0x2fe84d,_0xfab69e){var _0x29f728=_0x5baa88;super(),this[_0x29f728(0x19d)]=_0x2fe84d,this[_0x29f728(0x189)]=_0xfab69e,this[_0x29f728(0x1a9)]();}[_0x5baa88(0x1a9)](){var _0x10934e=_0x5baa88;this[_0x10934e(0x1a4)](this[_0x10934e(0x189)][_0x10934e(0x16a)](_0x428af2[_0x10934e(0x12b)],()=>_0x3bec91(Te,this[_0x10934e(0x19d)])));}};b=ke([$(0x0,_0x5ac674(_0x2df4bc)),$(0x1,_0x163c83)],b);var Ge=Object['defineProperty'],We=Object[_0x5baa88(0x1bc)],Ye=(_0x1d48e3,_0x22b056,_0x28c932)=>_0x22b056 in _0x1d48e3?Ge(_0x1d48e3,_0x22b056,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c932}):_0x1d48e3[_0x22b056]=_0x28c932,Be=(_0x188662,_0x294e9a,_0x1de047,_0x5a03bd)=>{for(var _0x30d5b7=_0x5a03bd>0x1?void 0x0:_0x5a03bd?We(_0x294e9a,_0x1de047):_0x294e9a,_0x46501f=_0x188662['length']-0x1,_0x4611c0;_0x46501f>=0x0;_0x46501f--)(_0x4611c0=_0x188662[_0x46501f])&&(_0x30d5b7=_0x4611c0(_0x30d5b7)||_0x30d5b7);return _0x30d5b7;},F=(_0x11b59e,_0x8e5e11)=>(_0x5490fa,_0x2e8515)=>_0x8e5e11(_0x5490fa,_0x2e8515,_0x11b59e),J=(_0x36253a,_0x5c7ebb,_0x3045c5)=>Ye(_0x36253a,typeof _0x5c7ebb!=_0x5baa88(0x18f)?_0x5c7ebb+'':_0x5c7ebb,_0x3045c5);const Ze=_0x5baa88(0x188);let O=class extends _0x5cf9ba{constructor(_0x1ee9f6=T,_0x1c2514,_0x424dca){var _0x17bbb1=_0x5baa88;super(),this[_0x17bbb1(0x19c)]=_0x1ee9f6,this[_0x17bbb1(0x19d)]=_0x1c2514,this[_0x17bbb1(0x15c)]=_0x424dca;const {..._0x1c1531}=_0x2ec77f({},T,this['_config']);this[_0x17bbb1(0x15c)][_0x17bbb1(0x184)](Oe,_0x1c1531);}[_0x5baa88(0x138)](){var _0x3071eb=_0x5baa88;_0x5b4057(this[_0x3071eb(0x19d)],_0x54df49([[L],[I],[m],[b]],this[_0x3071eb(0x19c)][_0x3071eb(0x12d)])),_0x1652d1(this[_0x3071eb(0x19d)],[[m]]);}[_0x5baa88(0x13f)](){var _0x47197a=_0x5baa88;_0x1652d1(this[_0x47197a(0x19d)],[[b]]);}};J(O,'type',_0x476fde[_0x5baa88(0x14f)]),J(O,'pluginName',Ze),O=Be([_0x3d9c8c(_0x5156dc),F(0x1,_0x5ac674(_0x2df4bc)),F(0x2,_0x537e94)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','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','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xf00c9a,_0x26b891){var _0x51b3db=_0x522d,_0x4fcfef=_0xf00c9a();while(!![]){try{var _0x32a3d5=-parseInt(_0x51b3db(0x24f))/0x1+parseInt(_0x51b3db(0x187))/0x2+-parseInt(_0x51b3db(0x22b))/0x3+parseInt(_0x51b3db(0x22f))/0x4+-parseInt(_0x51b3db(0x1c2))/0x5*(parseInt(_0x51b3db(0x20a))/0x6)+-parseInt(_0x51b3db(0x18c))/0x7*(-parseInt(_0x51b3db(0x246))/0x8)+-parseInt(_0x51b3db(0x1b8))/0x9*(parseInt(_0x51b3db(0x257))/0xa);if(_0x32a3d5===_0x26b891)break;else _0x4fcfef['push'](_0x4fcfef['shift']());}catch(_0xc8a9e8){_0x4fcfef['push'](_0x4fcfef['shift']());}}}(_0xc531,0x4619c),function(_0x4acb5a,_0x43720f){var _0x16589f=_0x522d;typeof exports==_0x16589f(0x263)&&typeof module<'u'?_0x43720f(exports,require('@univerjs-pro/collaboration-client'),require(_0x16589f(0x1d3)),require(_0x16589f(0x1e5)),require(_0x16589f(0x24b)),require(_0x16589f(0x26f)),require('react/jsx-runtime'),require('@univerjs/design'),require(_0x16589f(0x1a8)),require(_0x16589f(0x1ff)),require(_0x16589f(0x23e)),require(_0x16589f(0x247))):typeof define==_0x16589f(0x1af)&&define[_0x16589f(0x21b)]?define(['exports',_0x16589f(0x20e),_0x16589f(0x1d3),_0x16589f(0x1e5),'@univerjs/sheets-ui',_0x16589f(0x26f),_0x16589f(0x1b9),_0x16589f(0x1bb),_0x16589f(0x1a8),_0x16589f(0x1ff),_0x16589f(0x23e),_0x16589f(0x247)],_0x43720f):(_0x4acb5a=typeof globalThis<'u'?globalThis:_0x4acb5a||self,_0x43720f(_0x4acb5a['UniverProLiveShare']={},_0x4acb5a[_0x16589f(0x205)],_0x4acb5a[_0x16589f(0x260)],_0x4acb5a[_0x16589f(0x20f)],_0x4acb5a[_0x16589f(0x233)],_0x4acb5a[_0x16589f(0x245)],_0x4acb5a[_0x16589f(0x1dc)],_0x4acb5a['UniverDesign'],_0x4acb5a['React'],_0x4acb5a[_0x16589f(0x230)],_0x4acb5a[_0x16589f(0x23e)],_0x4acb5a[_0x16589f(0x23e)][_0x16589f(0x24a)]));}(this,function(_0x1393e0,_0x59a0da,_0x2888c7,_0x1b1857,_0x1a7578,_0x409307,_0x10c72f,_0x13b3d5,_0x211363,_0x2b64eb,_0x50b554,_0x51c3d9){'use strict';var _0x205c5d=_0x522d;var _0x4fd9ed=Object[_0x205c5d(0x26e)],_0x145524=(_0x6491d7,_0xc71ddc,_0x5a9299)=>_0xc71ddc in _0x6491d7?_0x4fd9ed(_0x6491d7,_0xc71ddc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a9299}):_0x6491d7[_0xc71ddc]=_0x5a9299,_0x584f6b=(_0x63a531,_0x51d0cb,_0x4752ae)=>_0x145524(_0x63a531,typeof _0x51d0cb!=_0x205c5d(0x200)?_0x51d0cb+'':_0x51d0cb,_0x4752ae);const _0x6389c6=_0x205c5d(0x1a7),_0x4c52ee={};class _0x307808 extends _0x2888c7[_0x205c5d(0x1f2)]{constructor(){var _0x2946fa=_0x205c5d;super(...arguments),_0x584f6b(this,_0x2946fa(0x1e8),new Set()),_0x584f6b(this,'_reporters',new Set());}[_0x205c5d(0x27b)](_0x43d824){var _0x1982dd=_0x205c5d;return this[_0x1982dd(0x1e8)][_0x1982dd(0x26a)](_0x43d824),_0x2888c7[_0x1982dd(0x185)](()=>this[_0x1982dd(0x1e8)]['delete'](_0x43d824));}[_0x205c5d(0x1ba)](_0x881dcb){var _0x4995f9=_0x205c5d;return this[_0x4995f9(0x19b)]['add'](_0x881dcb),_0x2888c7[_0x4995f9(0x185)](()=>this['_reporters'][_0x4995f9(0x1ce)](_0x881dcb));}[_0x205c5d(0x24d)](_0xebad8b){var _0x6ed9bd=_0x205c5d;return this[_0x6ed9bd(0x1e8)]['has'](_0xebad8b);}['getInitialStates'](_0xfba99c){var _0x370803=_0x205c5d;return Array[_0x370803(0x20c)](this[_0x370803(0x19b)])[_0x370803(0x181)](_0x1288ad=>_0x1288ad(_0xfba99c));}}var _0x4b0302=Object[_0x205c5d(0x1b6)],_0x3e383b=(_0x4877da,_0x2d07ed,_0x1cb8d2,_0x39f7a0)=>{var _0x539eca=_0x205c5d;for(var _0x412d01=_0x39f7a0>0x1?void 0x0:_0x39f7a0?_0x4b0302(_0x2d07ed,_0x1cb8d2):_0x2d07ed,_0x56b07a=_0x4877da[_0x539eca(0x201)]-0x1,_0x1c06fa;_0x56b07a>=0x0;_0x56b07a--)(_0x1c06fa=_0x4877da[_0x56b07a])&&(_0x412d01=_0x1c06fa(_0x412d01)||_0x412d01);return _0x412d01;},_0x7af3dc=(_0x38322d,_0x57ed20)=>(_0x4c45fb,_0x1fe3ad)=>_0x57ed20(_0x4c45fb,_0x1fe3ad,_0x38322d);let _0x24c23c=class extends _0x2888c7[_0x205c5d(0x1f2)]{constructor(_0x3cbb1d){var _0x512b37=_0x205c5d;super(),this[_0x512b37(0x1aa)]=_0x3cbb1d,this[_0x512b37(0x272)]();}['_init'](){var _0x232c6b=_0x205c5d;[_0x1a7578['SetZoomRatioOperation']['id'],_0x1a7578[_0x232c6b(0x1de)]['id'],_0x1b1857['SetWorksheetActiveOperation']['id']][_0x232c6b(0x194)](_0x5bba85=>{var _0x1a0282=_0x232c6b;this[_0x1a0282(0x18e)](this[_0x1a0282(0x1aa)][_0x1a0282(0x27b)](_0x5bba85));});}};_0x24c23c=_0x3e383b([_0x7af3dc(0x0,_0x2888c7[_0x205c5d(0x209)](_0x307808))],_0x24c23c);var _0x1c397d=function(){var _0x415576=_0x205c5d;return _0x1c397d=Object[_0x415576(0x1d2)]||function(_0x28f064){var _0x12cc09=_0x415576;for(var _0x4a52e7,_0x5ca4c4=0x1,_0x578f67=arguments[_0x12cc09(0x201)];_0x5ca4c4<_0x578f67;_0x5ca4c4++){_0x4a52e7=arguments[_0x5ca4c4];for(var _0x35d6eb in _0x4a52e7)Object[_0x12cc09(0x1b1)][_0x12cc09(0x18d)][_0x12cc09(0x254)](_0x4a52e7,_0x35d6eb)&&(_0x28f064[_0x35d6eb]=_0x4a52e7[_0x35d6eb]);}return _0x28f064;},_0x1c397d[_0x415576(0x182)](this,arguments);},_0x496e84=function(_0x457147,_0x4729){var _0x2276c0=_0x205c5d,_0x338987={};for(var _0x625976 in _0x457147)Object[_0x2276c0(0x1b1)]['hasOwnProperty'][_0x2276c0(0x254)](_0x457147,_0x625976)&&_0x4729['indexOf'](_0x625976)<0x0&&(_0x338987[_0x625976]=_0x457147[_0x625976]);if(_0x457147!=null&&typeof Object[_0x2276c0(0x1f7)]==_0x2276c0(0x1af)){for(var _0x57f1b2=0x0,_0x625976=Object[_0x2276c0(0x1f7)](_0x457147);_0x57f1b2<_0x625976['length'];_0x57f1b2++)_0x4729[_0x2276c0(0x226)](_0x625976[_0x57f1b2])<0x0&&Object[_0x2276c0(0x1b1)][_0x2276c0(0x1bd)]['call'](_0x457147,_0x625976[_0x57f1b2])&&(_0x338987[_0x625976[_0x57f1b2]]=_0x457147[_0x625976[_0x57f1b2]]);}return _0x338987;},_0x13b026=_0x211363[_0x205c5d(0x1e2)](function(_0xcc4157,_0x55bde8){var _0x31e320=_0x205c5d,_0x28f278=_0xcc4157[_0x31e320(0x1d7)],_0x54a424=_0xcc4157['id'],_0x499379=_0xcc4157['className'],_0x42cd47=_0xcc4157['extend'],_0x3348cc=_0x496e84(_0xcc4157,['icon','id',_0x31e320(0x1e4),_0x31e320(0x22c)]),_0x188d43=_0x31e320(0x276)[_0x31e320(0x26b)](_0x54a424,'\x20')[_0x31e320(0x26b)](_0x499379||'')[_0x31e320(0x25f)](),_0x16788b=_0x211363[_0x31e320(0x183)]('_'[_0x31e320(0x26b)](_0x1d333a()));return _0x19b05a(_0x28f278,''[_0x31e320(0x26b)](_0x54a424),{'defIds':_0x28f278[_0x31e320(0x24c)],'idSuffix':_0x16788b['current']},_0x1c397d({'ref':_0x55bde8,'className':_0x188d43},_0x3348cc),_0x42cd47);});function _0x19b05a(_0x26a476,_0x23b76a,_0x15235f,_0x2a11ee,_0x29c940){var _0x1698a7=_0x205c5d;return _0x211363['createElement'](_0x26a476[_0x1698a7(0x1d9)],_0x1c397d(_0x1c397d({'key':_0x23b76a},_0xf87d52(_0x26a476,_0x15235f,_0x29c940)),_0x2a11ee),(_0x489c36(_0x26a476,_0x15235f)[_0x1698a7(0x1b7)]||[])[_0x1698a7(0x181)](function(_0x16aca5,_0x11855a){var _0x4167bd=_0x1698a7;return _0x19b05a(_0x16aca5,''['concat'](_0x23b76a,'-')[_0x4167bd(0x26b)](_0x26a476[_0x4167bd(0x1d9)],'-')[_0x4167bd(0x26b)](_0x11855a),_0x15235f,void 0x0,_0x29c940);}));}function _0xf87d52(_0x39afed,_0x4554c0,_0x270768){var _0x41ced4=_0x205c5d,_0x5c029f=_0x1c397d({},_0x39afed[_0x41ced4(0x25c)]);_0x270768!=null&&_0x270768[_0x41ced4(0x1dd)]&&_0x5c029f['fill']===_0x41ced4(0x1dd)&&(_0x5c029f[_0x41ced4(0x203)]=_0x270768[_0x41ced4(0x1dd)]),_0x39afed[_0x41ced4(0x1d9)]===_0x41ced4(0x1f3)&&_0x5c029f['id']&&(_0x5c029f['id']=_0x5c029f['id']+_0x4554c0[_0x41ced4(0x27a)]),Object[_0x41ced4(0x1ef)](_0x5c029f)[_0x41ced4(0x194)](function(_0x8ce429){var _0x1e74ca=_0x41ced4,_0x45704d=_0x8ce429[0x0],_0x55d682=_0x8ce429[0x1];_0x45704d===_0x1e74ca(0x1f3)&&typeof _0x55d682=='string'&&(_0x5c029f[_0x45704d]=_0x55d682[_0x1e74ca(0x227)](/url\(#(.*)\)/,_0x1e74ca(0x228)[_0x1e74ca(0x26b)](_0x4554c0[_0x1e74ca(0x27a)],')')));});var _0x3cf0a9=_0x4554c0[_0x41ced4(0x24c)];return!_0x3cf0a9||_0x3cf0a9['length']===0x0||(_0x39afed[_0x41ced4(0x1d9)]===_0x41ced4(0x25b)&&_0x5c029f['xlink:href']&&(_0x5c029f[_0x41ced4(0x25d)]=_0x5c029f['xlink:href']+_0x4554c0['idSuffix']),Object[_0x41ced4(0x1ef)](_0x5c029f)[_0x41ced4(0x194)](function(_0x410f9b){var _0x3b7cac=_0x41ced4,_0x4885ef=_0x410f9b[0x0],_0x46e94b=_0x410f9b[0x1];typeof _0x46e94b==_0x3b7cac(0x268)&&(_0x5c029f[_0x4885ef]=_0x46e94b[_0x3b7cac(0x227)](/url\(#(.*)\)/,_0x3b7cac(0x228)['concat'](_0x4554c0['idSuffix'],')')));})),_0x5c029f;}function _0x489c36(_0x3d245c,_0x22633d){var _0x5ec1aa=_0x205c5d,_0x327a6c,_0x1d1b46=_0x22633d[_0x5ec1aa(0x24c)];return!_0x1d1b46||_0x1d1b46['length']===0x0?_0x3d245c:_0x3d245c['tag']===_0x5ec1aa(0x238)&&(!((_0x327a6c=_0x3d245c[_0x5ec1aa(0x1b7)])===null||_0x327a6c===void 0x0)&&_0x327a6c[_0x5ec1aa(0x201)])?_0x1c397d(_0x1c397d({},_0x3d245c),{'children':_0x3d245c['children']['map'](function(_0x620378){var _0x264490=_0x5ec1aa;return typeof _0x620378['attrs']['id']==_0x264490(0x268)&&_0x1d1b46&&_0x1d1b46['indexOf'](_0x620378[_0x264490(0x25c)]['id'])>-0x1?_0x1c397d(_0x1c397d({},_0x620378),{'attrs':_0x1c397d(_0x1c397d({},_0x620378[_0x264490(0x25c)]),{'id':_0x620378[_0x264490(0x25c)]['id']+_0x22633d[_0x264490(0x27a)]})}):_0x620378;})}):_0x3d245c;}function _0x1d333a(){var _0x2aad35=_0x205c5d;return Math[_0x2aad35(0x1ae)]()[_0x2aad35(0x1fc)](0x24)[_0x2aad35(0x19c)](0x2,0x8);}_0x13b026[_0x205c5d(0x1df)]=_0x205c5d(0x1c1);var _0x2f99dc={'tag':_0x205c5d(0x25e),'attrs':{'fill':_0x205c5d(0x207),'viewBox':_0x205c5d(0x253),'width':_0x205c5d(0x19e),'height':_0x205c5d(0x19e)},'children':[{'tag':_0x205c5d(0x1d8),'attrs':{'fill':_0x205c5d(0x214),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x205c5d(0x1d8),'attrs':{'fill':_0x205c5d(0x214),'d':_0x205c5d(0x1f1),'fillRule':_0x205c5d(0x188),'clipRule':_0x205c5d(0x188)}}]},_0x20421c=_0x211363[_0x205c5d(0x1e2)](function(_0x5dd485,_0x4c8335){var _0xbdcb80=_0x205c5d;return _0x211363[_0xbdcb80(0x273)](_0x13b026,Object[_0xbdcb80(0x1d2)]({},_0x5dd485,{'id':'live-share-single','ref':_0x4c8335,'icon':_0x2f99dc}));});_0x20421c['displayName']=_0x205c5d(0x199);var _0x1b6e91=Object['getOwnPropertyDescriptor'],_0x25d84b=(_0x42d6e7,_0x4e2d4d,_0x12920d,_0x375c4c)=>{var _0x6630df=_0x205c5d;for(var _0x3e870f=_0x375c4c>0x1?void 0x0:_0x375c4c?_0x1b6e91(_0x4e2d4d,_0x12920d):_0x4e2d4d,_0x14e6ba=_0x42d6e7[_0x6630df(0x201)]-0x1,_0xfad266;_0x14e6ba>=0x0;_0x14e6ba--)(_0xfad266=_0x42d6e7[_0x14e6ba])&&(_0x3e870f=_0xfad266(_0x3e870f)||_0x3e870f);return _0x3e870f;},_0x35b946=(_0x10e79d,_0x18b076)=>(_0x1da157,_0xac5922)=>_0x18b076(_0x1da157,_0xac5922,_0x10e79d);_0x1393e0['LiveShareController']=class extends _0x2888c7['RxDisposable']{constructor(_0x2f1748,_0x283f0f,_0x2fe52a){var _0x5a8039=_0x205c5d;super(),_0x584f6b(this,_0x5a8039(0x1d0),new Map()),(this['_univerInstanceService']=_0x2f1748,this[_0x5a8039(0x243)]=_0x283f0f,this[_0x5a8039(0x1c9)]=_0x2fe52a,this[_0x5a8039(0x272)]());}async[_0x205c5d(0x21a)](_0x492ba0){var _0x214ef6=_0x205c5d;return this[_0x214ef6(0x1d0)][_0x214ef6(0x1b4)](_0x492ba0)||await this[_0x214ef6(0x274)](_0x492ba0),this[_0x214ef6(0x1d0)][_0x214ef6(0x20b)](_0x492ba0);}['_init'](){var _0x32eb1a=_0x205c5d;this['_univerInstanceService'][_0x32eb1a(0x1ca)](_0x2888c7['UniverInstanceType'][_0x32eb1a(0x1f4)])[_0x32eb1a(0x1a5)](_0x51c3d9[_0x32eb1a(0x1b3)](this[_0x32eb1a(0x192)]))[_0x32eb1a(0x1e0)](async _0xccafce=>{var _0x1a3109=_0x32eb1a;const _0x478123=_0xccafce[_0x1a3109(0x186)]();this[_0x1a3109(0x1d0)]['has'](_0x478123)||this['_startLiveShareCoordinator'](_0x478123);}),this[_0x32eb1a(0x18a)][_0x32eb1a(0x1fe)](_0x2888c7['UniverInstanceType'][_0x32eb1a(0x1f4)])[_0x32eb1a(0x1a5)](_0x51c3d9['takeUntil'](this[_0x32eb1a(0x192)]))[_0x32eb1a(0x1e0)](_0x51e268=>{var _0x5271db=_0x32eb1a;const _0x116e68=_0x51e268[_0x5271db(0x186)](),_0x509b77=this[_0x5271db(0x1d0)][_0x5271db(0x20b)](_0x116e68);_0x509b77==null||_0x509b77['dispose']();});}async[_0x205c5d(0x274)](_0x4d23a3){var _0x55f69b=_0x205c5d;const _0x2a488d=await this[_0x55f69b(0x1c9)][_0x55f69b(0x1a6)](_0x4d23a3),_0x2543a3=this[_0x55f69b(0x243)][_0x55f69b(0x215)](_0x1393e0[_0x55f69b(0x1c7)],_0x4d23a3,_0x2a488d);return _0x2543a3[_0x55f69b(0x204)](),this[_0x55f69b(0x1d0)]['set'](_0x4d23a3,_0x2543a3),_0x2543a3;}},_0x1393e0[_0x205c5d(0x1e7)]=_0x25d84b([_0x35b946(0x0,_0x2888c7['IUniverInstanceService']),_0x35b946(0x1,_0x2888c7[_0x205c5d(0x209)](_0x2888c7['Injector'])),_0x35b946(0x2,_0x2888c7['Inject'](_0x59a0da[_0x205c5d(0x1b0)]))],_0x1393e0['LiveShareController']);var _0x585d28=(_0x4468c8=>(_0x4468c8[_0x205c5d(0x1b5)]=_0x205c5d(0x25a),_0x4468c8['IDLE']=_0x205c5d(0x1d6),_0x4468c8[_0x205c5d(0x1c8)]=_0x205c5d(0x241),_0x4468c8[_0x205c5d(0x1c5)]=_0x205c5d(0x220),_0x4468c8[_0x205c5d(0x1e6)]='presenting',_0x4468c8))(_0x585d28||{});const _0x3f2b86='SAME_OPERATION_SHARE_INTERVAL',_0x36a823=0xc8;_0x1393e0[_0x205c5d(0x1c7)]=class extends _0x2888c7['RxDisposable']{constructor(_0x144b4b,_0xfbf7a3,_0xa1de30,_0x54df8d,_0x1aaca3){var _0x598c06=_0x205c5d;super(),_0x584f6b(this,_0x598c06(0x23f),new _0x50b554[(_0x598c06(0x26c))](_0x598c06(0x1d6))),_0x584f6b(this,_0x598c06(0x252),this[_0x598c06(0x23f)]['asObservable']()),_0x584f6b(this,_0x598c06(0x272),!0x1),_0x584f6b(this,_0x598c06(0x249),null),_0x584f6b(this,_0x598c06(0x1c0),null),(this[_0x598c06(0x250)]=_0x144b4b,this[_0x598c06(0x1a3)]=_0xfbf7a3,this['_configService']=_0xa1de30,this[_0x598c06(0x1aa)]=_0x54df8d,this[_0x598c06(0x189)]=_0x1aaca3);}get[_0x205c5d(0x1cf)](){var _0x4bacb9=_0x205c5d;return this[_0x4bacb9(0x23f)]['getValue']();}[_0x205c5d(0x223)](){var _0xbde31=_0x205c5d,_0x398797;(_0x398797=this[_0xbde31(0x249)])==null||_0x398797['dispose'](),this[_0xbde31(0x23f)][_0xbde31(0x1cd)](_0xbde31(0x1d6)),this[_0xbde31(0x23f)][_0xbde31(0x1f5)]();}['init'](){var _0x14650d=_0x205c5d;this['_init']||(this[_0x14650d(0x272)]=!0x0,this['_collabSession'][_0x14650d(0x269)]['pipe'](_0x51c3d9[_0x14650d(0x1b3)](this[_0x14650d(0x192)]))[_0x14650d(0x1e0)](_0x5d4b8b=>{var _0x3d87ef=_0x14650d;switch(_0x5d4b8b){case _0x59a0da[_0x3d87ef(0x190)]['OFFLINE']:this[_0x3d87ef(0x1ea)]();break;case _0x59a0da[_0x3d87ef(0x190)][_0x3d87ef(0x224)]:this[_0x3d87ef(0x248)]();break;}}),this['_collabSession'][_0x14650d(0x21e)][_0x14650d(0x1a5)](_0x51c3d9[_0x14650d(0x1b3)](this[_0x14650d(0x192)]))[_0x14650d(0x1e0)](_0x543a1d=>{var _0x1dbab4=_0x14650d;const {eventID:_0x475ce1}=_0x543a1d;switch(_0x475ce1){case _0x2b64eb[_0x1dbab4(0x235)]['LIVESHARE_NEW_HOST']:this[_0x1dbab4(0x1a4)](_0x543a1d);break;case _0x2b64eb[_0x1dbab4(0x235)][_0x1dbab4(0x19f)]:this[_0x1dbab4(0x221)](_0x543a1d);break;case _0x2b64eb[_0x1dbab4(0x235)][_0x1dbab4(0x212)]:this[_0x1dbab4(0x1f0)]();break;case _0x2b64eb[_0x1dbab4(0x235)][_0x1dbab4(0x18b)]:this[_0x1dbab4(0x1a0)](_0x543a1d);break;}}));}[_0x205c5d(0x1c3)](){var _0x267ab8=_0x205c5d;this[_0x267ab8(0x1a3)][_0x267ab8(0x195)]({'eventID':_0x2b64eb[_0x267ab8(0x235)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x267ab8(0x1a3)][_0x267ab8(0x1ee)]()}},this[_0x267ab8(0x250)]);}[_0x205c5d(0x229)](){var _0x2e2f5b=_0x205c5d;this[_0x2e2f5b(0x1cf)]===_0x2e2f5b(0x1d4)&&(this[_0x2e2f5b(0x23f)][_0x2e2f5b(0x1cd)]('idle'),this[_0x2e2f5b(0x1a3)][_0x2e2f5b(0x195)]({'eventID':_0x2b64eb[_0x2e2f5b(0x235)][_0x2e2f5b(0x212)],'data':{'unitID':this['_unitID']}},this[_0x2e2f5b(0x250)]));}[_0x205c5d(0x1bf)](){var _0x137211=_0x205c5d;this[_0x137211(0x1cf)]===_0x137211(0x220)&&(this[_0x137211(0x23f)][_0x137211(0x1cd)](_0x137211(0x241)),this[_0x137211(0x256)]());}[_0x205c5d(0x232)](){var _0x482a02=_0x205c5d;this[_0x482a02(0x1cf)]===_0x482a02(0x241)&&this[_0x482a02(0x234)]();}[_0x205c5d(0x1a4)](_0x524bc5){var _0xbb86e0=_0x205c5d;const {presenter:_0x19c013}=_0x524bc5['data'],_0x32fcc7=this['_collabSession'][_0xbb86e0(0x1ee)]();this[_0xbb86e0(0x1c0)]=_0x19c013,_0x19c013===_0x32fcc7?(this[_0xbb86e0(0x234)](),this['_startPresenting']()):this[_0xbb86e0(0x1cf)]!==_0xbb86e0(0x220)&&(this['_stopPresenting'](),this[_0xbb86e0(0x256)]());}[_0x205c5d(0x1a2)](){var _0x272fc3=_0x205c5d;const _0x544144={'eventID':_0x2b64eb[_0x272fc3(0x235)][_0x272fc3(0x217)]};this[_0x272fc3(0x1a3)]['send'](_0x544144,this[_0x272fc3(0x250)]);}[_0x205c5d(0x1f0)](){var _0x1175f3=_0x205c5d;this['_presenter']=null,this[_0x1175f3(0x1cf)]!==_0x1175f3(0x1d4)&&this['_beIdle']();}[_0x205c5d(0x1a0)](_0x19792f){var _0x505557=_0x205c5d;if(this[_0x505557(0x1cf)]===_0x505557(0x241)&&this['_presenter']===_0x19792f[_0x505557(0x184)][_0x505557(0x208)]){const _0x4aaa11=_0x2b64eb[_0x505557(0x211)](_0x19792f['data'])[_0x505557(0x1d5)][_0x505557(0x23b)]()['find'](_0x594fb2=>_0x594fb2['id']===_0x1b1857[_0x505557(0x210)]['id']);if(_0x4aaa11){const _0xb20500=_0x4aaa11[_0x505557(0x271)][_0x505557(0x1da)],_0xfcfae2=_0x4aaa11[_0x505557(0x271)]['sheet']['id'];setTimeout(()=>{var _0x21c29d=_0x505557;this['_commandService'][_0x21c29d(0x278)](_0x1b1857[_0x21c29d(0x193)]['id'],{'unitId':_0xb20500,'subUnitId':_0xfcfae2},{'fromCollab':!0x0});});}}}[_0x205c5d(0x1f6)](){var _0x4622fe=_0x205c5d;this[_0x4622fe(0x23f)][_0x4622fe(0x1cd)]('presenting');const _0xf8906a=new Map(),_0x3809a1=this[_0x4622fe(0x249)]=new _0x2888c7[(_0x4622fe(0x266))]();_0x3809a1[_0x4622fe(0x26a)](_0x2888c7['toDisposable'](()=>{var _0xe64f84=_0x4622fe;_0xf8906a['forEach'](_0x31e6ef=>_0x31e6ef[_0xe64f84(0x1f5)]()),_0xf8906a[_0xe64f84(0x24e)]();})),_0x3809a1[_0x4622fe(0x26a)](this[_0x4622fe(0x189)]['onCommandExecuted'](_0x48e6a8=>{var _0x33addd=_0x4622fe,_0x311c4b;if(_0x48e6a8['type']!==_0x2888c7[_0x33addd(0x275)]['OPERATION']||!this['_liveShareService'][_0x33addd(0x24d)](_0x48e6a8['id']))return;const {id:_0x3a35ed}=_0x48e6a8;let _0x23bb4c;_0xf8906a[_0x33addd(0x1b4)](_0x3a35ed)?_0x23bb4c=_0xf8906a[_0x33addd(0x20b)](_0x3a35ed):(_0x23bb4c=new _0x50b554[(_0x33addd(0x231))](),_0xf8906a[_0x33addd(0x196)](_0x3a35ed,_0x23bb4c),_0x23bb4c[_0x33addd(0x1a5)](_0x51c3d9[_0x33addd(0x265)]((_0x311c4b=this[_0x33addd(0x22e)][_0x33addd(0x191)](_0x3f2b86))!=null?_0x311c4b:_0x36a823,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x55774e=>{var _0x4af356=_0x33addd;this[_0x4af356(0x1a3)][_0x4af356(0x195)]({'eventID':_0x2b64eb[_0x4af356(0x235)][_0x4af356(0x19f)],'data':{'unitID':this[_0x4af356(0x250)],'operations':{[_0x55774e['id']]:{'id':_0x55774e['id'],'params':JSON[_0x4af356(0x242)](_0x55774e[_0x4af356(0x271)])}}}},this[_0x4af356(0x250)]);})),_0x23bb4c['next'](_0x48e6a8);})),this['_liveShareService'][_0x4622fe(0x264)](this['_unitID'])['forEach'](_0x4d933a=>this[_0x4622fe(0x1a3)][_0x4622fe(0x195)]({'eventID':_0x2b64eb[_0x4622fe(0x235)][_0x4622fe(0x19f)],'data':{'unitID':this[_0x4622fe(0x250)],'operations':{[_0x4d933a['id']]:{'id':_0x4d933a['id'],'params':JSON[_0x4622fe(0x242)](_0x4d933a['params'])}}}},this['_unitID']));}[_0x205c5d(0x1a1)](){var _0x1d1d54=_0x205c5d,_0x3269bb;this[_0x1d1d54(0x23f)][_0x1d1d54(0x1cd)](_0x1d1d54(0x1d6)),(_0x3269bb=this[_0x1d1d54(0x249)])==null||_0x3269bb[_0x1d1d54(0x223)](),this[_0x1d1d54(0x249)]=null;}[_0x205c5d(0x256)](){var _0x3ed797=_0x205c5d,_0x39effa;(_0x39effa=this[_0x3ed797(0x249)])==null||_0x39effa[_0x3ed797(0x223)](),this[_0x3ed797(0x23f)][_0x3ed797(0x1cd)](_0x3ed797(0x241));}[_0x205c5d(0x1ab)](){var _0x1112cd=_0x205c5d,_0x36946c;this[_0x1112cd(0x23f)]['next'](_0x1112cd(0x1d6)),(_0x36946c=this[_0x1112cd(0x249)])==null||_0x36946c['dispose'](),this[_0x1112cd(0x249)]=null;}[_0x205c5d(0x234)](){var _0x52d496=_0x205c5d,_0x403b8b;this[_0x52d496(0x23f)]['next'](_0x52d496(0x220)),(_0x403b8b=this[_0x52d496(0x249)])==null||_0x403b8b[_0x52d496(0x223)]();}[_0x205c5d(0x221)](_0x250749){var _0x2b7a47=_0x205c5d;if([_0x2b7a47(0x1d4),_0x2b7a47(0x220),'offline'][_0x2b7a47(0x1eb)](this[_0x2b7a47(0x1cf)])||!_0x250749[_0x2b7a47(0x184)][_0x2b7a47(0x18f)]||_0x250749['data'][_0x2b7a47(0x18f)]===this['_collabSession'][_0x2b7a47(0x1ee)]())return;this['_status']===_0x2b7a47(0x1d6)&&this[_0x2b7a47(0x256)]();const _0x496a32=_0x250749[_0x2b7a47(0x184)][_0x2b7a47(0x23c)];Object[_0x2b7a47(0x267)](_0x496a32)[_0x2b7a47(0x194)](_0x5d8ca6=>{var _0x389da6=_0x2b7a47;this[_0x389da6(0x189)][_0x389da6(0x278)](_0x5d8ca6['id'],_0x5d8ca6['params']?JSON['parse'](_0x5d8ca6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x164a37=_0x205c5d,_0x26528f;this[_0x164a37(0x23f)][_0x164a37(0x1cd)]('offline'),(_0x26528f=this[_0x164a37(0x249)])==null||_0x26528f[_0x164a37(0x223)]();}['_handleOnline'](){var _0x480dad=_0x205c5d;this[_0x480dad(0x23f)][_0x480dad(0x1cd)](_0x480dad(0x1d6)),this[_0x480dad(0x1a2)]();}},_0x1393e0['LiveShareCoordinator']=_0x25d84b([_0x35b946(0x2,_0x2888c7[_0x205c5d(0x197)]),_0x35b946(0x3,_0x2888c7[_0x205c5d(0x209)](_0x307808)),_0x35b946(0x4,_0x2888c7[_0x205c5d(0x239)])],_0x1393e0[_0x205c5d(0x1c7)]);function _0x25a5c0(){var _0x560cb1=_0x205c5d;const _0x1c58cf=_0x409307['useDependency'](_0x1393e0[_0x560cb1(0x1e7)]),_0x42e92f=_0x409307[_0x560cb1(0x1e9)](_0x2888c7[_0x560cb1(0x1cb)]),_0x5188d1=_0x409307[_0x560cb1(0x1bc)](()=>_0x42e92f[_0x560cb1(0x20d)](_0x2888c7[_0x560cb1(0x1fb)][_0x560cb1(0x1f4)]),void 0x0,!0x1,[]),[_0x4121c5,_0xec820c]=_0x211363[_0x560cb1(0x1fa)](null),[_0x2ce62f,_0xc0bf44]=_0x211363[_0x560cb1(0x1fa)](_0x585d28['IDLE']),_0x5cb690=_0x211363['useRef'](null);return _0x211363[_0x560cb1(0x1a9)](()=>(_0x5188d1&&_0x1c58cf['getLiveShareCoordinator'](_0x5188d1[_0x560cb1(0x186)]())[_0x560cb1(0x1ed)](_0x4f27e5=>{var _0x3a5b85=_0x560cb1;_0xec820c(_0x4f27e5),_0x5cb690[_0x3a5b85(0x1e1)]=_0x4f27e5[_0x3a5b85(0x252)]['subscribe'](_0x57e7e1=>{_0xc0bf44(_0x57e7e1);});}),()=>{var _0x3d5a4b;(_0x3d5a4b=_0x5cb690['current'])==null||_0x3d5a4b['unsubscribe'](),_0x5cb690['current']=null;}),[_0x5188d1,_0x1c58cf]),_0x4121c5?_0x10c72f[_0x560cb1(0x279)](_0x13b3d5[_0x560cb1(0x218)],{'align':'end','disabled':_0x2ce62f===_0x585d28[_0x560cb1(0x1b5)],'className':_0x560cb1(0x1cc),'overlay':_0x10c72f[_0x560cb1(0x279)](_0x159317,{'status':_0x2ce62f,'coordinator':_0x4121c5}),'children':_0x10c72f[_0x560cb1(0x279)](_0x560cb1(0x244),{'className':_0x13b3d5[_0x560cb1(0x258)](_0x560cb1(0x236),{'univer-cursor-not-allowed':_0x2ce62f===_0x585d28[_0x560cb1(0x1b5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ce62f!==_0x585d28[_0x560cb1(0x1b5)]}),'type':_0x560cb1(0x244),'children':_0x10c72f[_0x560cb1(0x279)](_0x20421c,{'className':'univer-size-4'})})}):null;}function _0x159317(_0x4abcfb){var _0x2261c6=_0x205c5d;const {status:_0x4ad55a,coordinator:_0x292cee}=_0x4abcfb;switch(_0x4ad55a){case _0x585d28[_0x2261c6(0x261)]:return _0x10c72f[_0x2261c6(0x279)](_0x1643d4,{'coordinator':_0x292cee});case _0x585d28['FOLLOWING']:return _0x10c72f[_0x2261c6(0x279)](_0x20ac25,{'coordinator':_0x292cee});case _0x585d28[_0x2261c6(0x1c5)]:return _0x10c72f[_0x2261c6(0x279)](_0x9107ec,{'coordinator':_0x292cee});case _0x585d28[_0x2261c6(0x1b5)]:return _0x10c72f[_0x2261c6(0x279)](_0x5f51be,{});case _0x585d28[_0x2261c6(0x1e6)]:return _0x10c72f['jsx'](_0x12c516,{'coordinator':_0x292cee});default:return null;}}function _0x1643d4(_0x46c7e2){var _0x5a9b2a=_0x205c5d;const {coordinator:_0x2a4ac3}=_0x46c7e2;return _0x10c72f[_0x5a9b2a(0x26d)](_0x10c72f[_0x5a9b2a(0x1e3)],{'children':[_0x10c72f[_0x5a9b2a(0x279)](_0x5a9b2a(0x1f9),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x10c72f['jsx'](_0x13b3d5['Button'],{'onClick':()=>_0x2a4ac3[_0x5a9b2a(0x1c3)](),'children':_0x5a9b2a(0x1c4)})]});}function _0x20ac25(_0x26a75e){var _0x5eb923=_0x205c5d;const {coordinator:_0x42597b}=_0x26a75e;return _0x10c72f[_0x5eb923(0x26d)](_0x10c72f[_0x5eb923(0x1e3)],{'children':[_0x10c72f[_0x5eb923(0x279)](_0x5eb923(0x1f9),{'className':_0x5eb923(0x240),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x10c72f[_0x5eb923(0x279)](_0x13b3d5[_0x5eb923(0x255)],{'onClick':()=>_0x42597b['stopFollowing'](),'children':_0x5eb923(0x1be)})]});}function _0x9107ec(_0xed0cf6){var _0x343a78=_0x205c5d;const {coordinator:_0x10b33d}=_0xed0cf6;return _0x10c72f[_0x343a78(0x26d)](_0x10c72f['Fragment'],{'children':[_0x10c72f[_0x343a78(0x279)](_0x343a78(0x1f9),{'className':_0x343a78(0x240),'children':_0x343a78(0x1ec)}),_0x10c72f['jsx'](_0x13b3d5[_0x343a78(0x255)],{'variant':_0x343a78(0x1ac),'onClick':()=>_0x10b33d['startFollowing'](),'children':_0x343a78(0x270)})]});}function _0x12c516(_0xfe0ab9){var _0x40d47f=_0x205c5d;const {coordinator:_0x31151a}=_0xfe0ab9;return _0x10c72f[_0x40d47f(0x26d)](_0x10c72f[_0x40d47f(0x1e3)],{'children':[_0x10c72f['jsx'](_0x40d47f(0x1f9),{'className':_0x40d47f(0x240),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x10c72f[_0x40d47f(0x279)](_0x13b3d5['Button'],{'variant':_0x40d47f(0x225),'onClick':()=>_0x31151a[_0x40d47f(0x229)](),'children':'Stop\x20presenting'})]});}function _0x5f51be(){var _0x402829=_0x205c5d;return _0x10c72f['jsx'](_0x10c72f['Fragment'],{'children':_0x402829(0x21c)});}var _0x1cea77=Object[_0x205c5d(0x1b6)],_0x47aa06=(_0x199464,_0x349368,_0x46e80c,_0x5432b7)=>{for(var _0x2f980e=_0x5432b7>0x1?void 0x0:_0x5432b7?_0x1cea77(_0x349368,_0x46e80c):_0x349368,_0x38e6c3=_0x199464['length']-0x1,_0x333eeb;_0x38e6c3>=0x0;_0x38e6c3--)(_0x333eeb=_0x199464[_0x38e6c3])&&(_0x2f980e=_0x333eeb(_0x2f980e)||_0x2f980e);return _0x2f980e;},_0xe652a4=(_0x5245c6,_0xe5dc1e)=>(_0x153c32,_0x17c1e9)=>_0xe5dc1e(_0x153c32,_0x17c1e9,_0x5245c6);_0x1393e0['DesktopLiveShareController']=class extends _0x2888c7[_0x205c5d(0x1f2)]{constructor(_0x7cea74,_0x546ea7){var _0x13352a=_0x205c5d;super(),this[_0x13352a(0x243)]=_0x7cea74,this[_0x13352a(0x1c6)]=_0x546ea7,this[_0x13352a(0x198)]();}['_mountLiveShare'](){var _0x1055e3=_0x205c5d;this[_0x1055e3(0x18e)](this[_0x1055e3(0x1c6)][_0x1055e3(0x216)](_0x409307['BuiltInUIPart']['HEADER_MENU'],()=>_0x409307[_0x1055e3(0x262)](_0x25a5c0,this[_0x1055e3(0x243)])));}},_0x1393e0[_0x205c5d(0x22a)]=_0x47aa06([_0xe652a4(0x0,_0x2888c7[_0x205c5d(0x209)](_0x2888c7['Injector'])),_0xe652a4(0x1,_0x409307[_0x205c5d(0x19d)])],_0x1393e0[_0x205c5d(0x22a)]);var _0x3845a7=Object[_0x205c5d(0x26e)],_0x2390bc=Object['getOwnPropertyDescriptor'],_0x3dee06=(_0x4dbd2e,_0x510fa7,_0xfd91c2)=>_0x510fa7 in _0x4dbd2e?_0x3845a7(_0x4dbd2e,_0x510fa7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfd91c2}):_0x4dbd2e[_0x510fa7]=_0xfd91c2,_0x458671=(_0x1fb628,_0x55a2dc,_0x37a2c9,_0x230683)=>{var _0x323064=_0x205c5d;for(var _0x122bb7=_0x230683>0x1?void 0x0:_0x230683?_0x2390bc(_0x55a2dc,_0x37a2c9):_0x55a2dc,_0x1a3047=_0x1fb628[_0x323064(0x201)]-0x1,_0xfcff27;_0x1a3047>=0x0;_0x1a3047--)(_0xfcff27=_0x1fb628[_0x1a3047])&&(_0x122bb7=_0xfcff27(_0x122bb7)||_0x122bb7);return _0x122bb7;},_0x2e8544=(_0x5273a0,_0x5c7bff)=>(_0x2b4719,_0x137660)=>_0x5c7bff(_0x2b4719,_0x137660,_0x5273a0),_0x1d2288=(_0x129a00,_0x1ff250,_0x503af7)=>_0x3dee06(_0x129a00,typeof _0x1ff250!=_0x205c5d(0x200)?_0x1ff250+'':_0x1ff250,_0x503af7);const _0x2d70f9=_0x205c5d(0x1b2);_0x1393e0['UniverLiveSharePlugin']=class extends _0x2888c7['Plugin']{constructor(_0x1d46a2=_0x4c52ee,_0xc4f9e9,_0xb66aa2){var _0x12c445=_0x205c5d;super(),this[_0x12c445(0x1d1)]=_0x1d46a2,this[_0x12c445(0x243)]=_0xc4f9e9,this[_0x12c445(0x22e)]=_0xb66aa2;const {..._0x393f95}=_0x2888c7[_0x12c445(0x1db)]({},_0x4c52ee,this[_0x12c445(0x1d1)]);this[_0x12c445(0x22e)][_0x12c445(0x277)](_0x6389c6,_0x393f95);}[_0x205c5d(0x237)](){var _0xc33fd6=_0x205c5d;_0x2888c7[_0xc33fd6(0x251)](this['_injector'],_0x2888c7[_0xc33fd6(0x23d)]([[_0x307808],[_0x1393e0[_0xc33fd6(0x1e7)]],[_0x24c23c],[_0x1393e0[_0xc33fd6(0x22a)]]],this[_0xc33fd6(0x1d1)][_0xc33fd6(0x19a)])),_0x2888c7[_0xc33fd6(0x21f)](this['_injector'],[[_0x24c23c]]);}[_0x205c5d(0x206)](){var _0x229a82=_0x205c5d;_0x2888c7[_0x229a82(0x21f)](this[_0x229a82(0x243)],[[_0x1393e0['DesktopLiveShareController']]]);}},_0x1d2288(_0x1393e0['UniverLiveSharePlugin'],_0x205c5d(0x213),_0x2888c7['UniverInstanceType'][_0x205c5d(0x1ad)]),_0x1d2288(_0x1393e0['UniverLiveSharePlugin'],_0x205c5d(0x1fd),_0x2d70f9),_0x1393e0[_0x205c5d(0x219)]=_0x458671([_0x2888c7[_0x205c5d(0x222)](_0x59a0da['UniverCollaborationClientPlugin']),_0x2e8544(0x1,_0x2888c7[_0x205c5d(0x209)](_0x2888c7[_0x205c5d(0x1f8)])),_0x2e8544(0x2,_0x2888c7[_0x205c5d(0x197)])],_0x1393e0[_0x205c5d(0x219)]),_0x1393e0[_0x205c5d(0x23a)]=_0x25a5c0,_0x1393e0[_0x205c5d(0x202)]=_0x307808,_0x1393e0[_0x205c5d(0x21d)]=_0x585d28,Object['defineProperty'](_0x1393e0,Symbol[_0x205c5d(0x22d)],{'value':_0x205c5d(0x259)});}));function _0x522d(_0x2e2661,_0x3e7a8e){var _0xc531e9=_0xc531();return _0x522d=function(_0x522dfb,_0x532c3b){_0x522dfb=_0x522dfb-0x181;var _0x411f22=_0xc531e9[_0x522dfb];return _0x411f22;},_0x522d(_0x2e2661,_0x3e7a8e);}function _0xc531(){var _0x33e5aa=['icon','path','tag','unitId','merge','React','colorChannel1','SetScrollOperation','displayName','subscribe','current','forwardRef','Fragment','className','@univerjs/sheets','PRESENTING','LiveShareController','_sharedOperations','useDependency','_handleOffline','includes','You\x27re\x20not\x20following\x20the\x20presenter','then','getMemberID','entries','_handleTerminate','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Disposable','mask','UNIVER_SHEET','complete','_startPresenting','getOwnPropertySymbols','Injector','div','useState','UniverInstanceType','toString','pluginName','getTypeOfUnitDisposed$','@univerjs-pro/collaboration','symbol','length','LiveShareService','fill','init','UniverProCollaborationClient','onRendered','none','memberID','Inject','1146eBfLRb','get','from','getCurrentTypeOfUnit$','@univerjs-pro/collaboration-client','UniverSheets','InsertSheetMutation','parseProtocolChangeset','LIVESHARE_TERMINATE','type','currentColor','createInstance','registerComponent','LIVESHARE_FETCH_OPERATIONS','Dropdown','UniverLiveSharePlugin','getLiveShareCoordinator','amd','You\x27are\x20offline.','LiveShareStatus','event$','touchDependencies','not-following','_handleOperation','DependentOn','dispose','ONLINE','default','indexOf','replace','url(#$1','stopPresenting','DesktopLiveShareController','815289ovPuzd','extend','toStringTag','_configService','1691884tBlUrT','UniverProCollaboration','Subject','stopFollowing','UniverSheetsUi','_stopFollowing','CollaborationEvent','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','onStarting','defs','ICommandService','LiveShare','reverse','operations','mergeOverrideWithDependencies','rxjs','_status$','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','stringify','_injector','button','UniverUi','8dwssSS','rxjs/operators','_handleOnline','_commandDisposable','operators','@univerjs/sheets-ui','defIds','shouldShareOperation','clear','143160hWiprZ','_unitID','registerDependencies','status$','0\x200\x2016\x2016','call','Button','_startFollowing','59590vamuWf','clsx','Module','offline','use','attrs','xlink:href','svg','trim','UniverCore','IDLE','connectInjector','object','getInitialStates','throttleTime','DisposableCollection','values','string','sessionStatus$','add','concat','BehaviorSubject','jsxs','defineProperty','@univerjs/ui','Start\x20following','params','_init','createElement','_startLiveShareCoordinator','CommandType','univerjs-icon\x20univerjs-icon-','setConfig','executeCommand','jsx','idSuffix','registerSharedOperation','map','apply','useRef','data','toDisposable','getUnitId','817898WIYFNs','evenodd','_commandService','_univerInstanceService','NEW_CHANGESETS','2167865IxcLav','hasOwnProperty','disposeWithMe','presenter','SessionStatus','getConfig','dispose$','SetWorksheetActiveOperation','forEach','send','set','IConfigService','_mountLiveShare','LiveShareSingle','override','_reporters','substring','IUIPartsService','1em','LIVESHARE_OPERATION','_handleNewChangeSets','_stopPresenting','_fetchOperations','_collabSession','_handleNewHost','pipe','requireSession','live-share.config','react','useEffect','_liveShareService','_beIdle','text','UNIVER_UNKNOWN','random','function','CollaborationSessionService','prototype','UNIVER_LIVE_SHARE_PLUGIN','takeUntil','has','OFFLINE','getOwnPropertyDescriptor','children','333ZSDJYm','react/jsx-runtime','registerInitialStateReporter','@univerjs/design','useObservable','propertyIsEnumerable','Stop\x20following','startFollowing','_presenter','UniverIcon','5735hdYxwI','tryStartPresenting','Start','NOT_FOLLOWING','_uiPartsService','LiveShareCoordinator','FOLLOWING','_collabSessionService','getTypeOfUnitAdded$','IUniverInstanceService','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','next','delete','_status','_entities','_config','assign','@univerjs/core','presenting','mutations','idle'];_0xc531=function(){return _0x33e5aa;};return _0xc531();}
1
+ function _0x32c2(_0x1c0c52,_0x1594e5){var _0x3dc3d9=_0x3dc3();return _0x32c2=function(_0x32c28e,_0x2311d3){_0x32c28e=_0x32c28e-0x140;var _0x5c3e2b=_0x3dc3d9[_0x32c28e];return _0x5c3e2b;},_0x32c2(_0x1c0c52,_0x1594e5);}(function(_0x521693,_0x43c2b0){var _0xa3bbbe=_0x32c2,_0x4685db=_0x521693();while(!![]){try{var _0x1c6603=parseInt(_0xa3bbbe(0x21d))/0x1*(parseInt(_0xa3bbbe(0x21a))/0x2)+parseInt(_0xa3bbbe(0x1f1))/0x3+-parseInt(_0xa3bbbe(0x1aa))/0x4+parseInt(_0xa3bbbe(0x1ef))/0x5*(parseInt(_0xa3bbbe(0x20b))/0x6)+-parseInt(_0xa3bbbe(0x22d))/0x7*(parseInt(_0xa3bbbe(0x228))/0x8)+-parseInt(_0xa3bbbe(0x146))/0x9*(-parseInt(_0xa3bbbe(0x1c6))/0xa)+-parseInt(_0xa3bbbe(0x1b5))/0xb*(-parseInt(_0xa3bbbe(0x1d9))/0xc);if(_0x1c6603===_0x43c2b0)break;else _0x4685db['push'](_0x4685db['shift']());}catch(_0x3fa684){_0x4685db['push'](_0x4685db['shift']());}}}(_0x3dc3,0x68aa0),function(_0x34f955,_0x2cc6a3){var _0x58a7ec=_0x32c2;typeof exports==_0x58a7ec(0x206)&&typeof module<'u'?_0x2cc6a3(exports,require('@univerjs-pro/collaboration-client'),require(_0x58a7ec(0x1c7)),require(_0x58a7ec(0x164)),require('@univerjs/sheets-ui'),require(_0x58a7ec(0x1bb)),require(_0x58a7ec(0x1d1)),require(_0x58a7ec(0x15a)),require(_0x58a7ec(0x168)),require(_0x58a7ec(0x1cc)),require(_0x58a7ec(0x223)),require('rxjs/operators')):typeof define==_0x58a7ec(0x172)&&define[_0x58a7ec(0x1e5)]?define(['exports',_0x58a7ec(0x14f),'@univerjs/core',_0x58a7ec(0x164),_0x58a7ec(0x1a0),'@univerjs/ui','react/jsx-runtime',_0x58a7ec(0x15a),_0x58a7ec(0x168),_0x58a7ec(0x1cc),_0x58a7ec(0x223),_0x58a7ec(0x175)],_0x2cc6a3):(_0x34f955=typeof globalThis<'u'?globalThis:_0x34f955||self,_0x2cc6a3(_0x34f955[_0x58a7ec(0x18e)]={},_0x34f955[_0x58a7ec(0x1f0)],_0x34f955[_0x58a7ec(0x185)],_0x34f955[_0x58a7ec(0x1f5)],_0x34f955[_0x58a7ec(0x1fb)],_0x34f955['UniverUi'],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x144)],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x207)],_0x34f955[_0x58a7ec(0x223)],_0x34f955[_0x58a7ec(0x223)][_0x58a7ec(0x1ee)]));}(this,function(_0x564430,_0x48eb55,_0x14dd01,_0x13ba10,_0x54dcfa,_0x4f2411,_0x251b21,_0xf99188,_0x5309d1,_0x3e3d8e,_0x1beed9,_0x5f3902){'use strict';var _0x4e1f37=_0x32c2;var _0x2b48d3=Object[_0x4e1f37(0x21e)],_0x5dcfa8=(_0x2238a9,_0x42486b,_0x3c8e7e)=>_0x42486b in _0x2238a9?_0x2b48d3(_0x2238a9,_0x42486b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c8e7e}):_0x2238a9[_0x42486b]=_0x3c8e7e,_0x14886c=(_0x374e0e,_0x1df51c,_0xb6b913)=>_0x5dcfa8(_0x374e0e,typeof _0x1df51c!='symbol'?_0x1df51c+'':_0x1df51c,_0xb6b913);const _0x569104='live-share.config',_0x187a32={};class _0x4c5666 extends _0x14dd01['Disposable']{constructor(){var _0xc3b080=_0x4e1f37;super(...arguments),_0x14886c(this,_0xc3b080(0x20f),new Set()),_0x14886c(this,_0xc3b080(0x15e),new Set());}['registerSharedOperation'](_0x57396d){var _0x29e9fb=_0x4e1f37;return this[_0x29e9fb(0x20f)][_0x29e9fb(0x1b2)](_0x57396d),_0x14dd01[_0x29e9fb(0x15d)](()=>this[_0x29e9fb(0x20f)][_0x29e9fb(0x156)](_0x57396d));}[_0x4e1f37(0x22f)](_0x21c6e1){var _0x3860ce=_0x4e1f37;return this['_reporters']['add'](_0x21c6e1),_0x14dd01[_0x3860ce(0x15d)](()=>this[_0x3860ce(0x15e)]['delete'](_0x21c6e1));}[_0x4e1f37(0x20c)](_0x3a8ce3){var _0x28eea9=_0x4e1f37;return this[_0x28eea9(0x20f)]['has'](_0x3a8ce3);}['getInitialStates'](_0x349bba){var _0x55728e=_0x4e1f37;return Array[_0x55728e(0x147)](this[_0x55728e(0x15e)])[_0x55728e(0x177)](_0x274282=>_0x274282(_0x349bba));}}var _0x226517=Object['getOwnPropertyDescriptor'],_0x21eda6=(_0x53ee9,_0x530724,_0x37fbec,_0x4c9628)=>{var _0x10f40c=_0x4e1f37;for(var _0xa73bec=_0x4c9628>0x1?void 0x0:_0x4c9628?_0x226517(_0x530724,_0x37fbec):_0x530724,_0x118969=_0x53ee9[_0x10f40c(0x1bd)]-0x1,_0x56bd42;_0x118969>=0x0;_0x118969--)(_0x56bd42=_0x53ee9[_0x118969])&&(_0xa73bec=_0x56bd42(_0xa73bec)||_0xa73bec);return _0xa73bec;},_0x2873f5=(_0x442c14,_0x45e180)=>(_0xe79cbe,_0x436d17)=>_0x45e180(_0xe79cbe,_0x436d17,_0x442c14);let _0x5d75bf=class extends _0x14dd01[_0x4e1f37(0x20d)]{constructor(_0x434cba){var _0x29ad10=_0x4e1f37;super(),this[_0x29ad10(0x226)]=_0x434cba,this[_0x29ad10(0x148)]();}['_init'](){var _0x1718c2=_0x4e1f37;[_0x54dcfa[_0x1718c2(0x17c)]['id'],_0x54dcfa['SetScrollOperation']['id'],_0x13ba10[_0x1718c2(0x18a)]['id']][_0x1718c2(0x142)](_0x365239=>{var _0x4c6e1c=_0x1718c2;this[_0x4c6e1c(0x189)](this[_0x4c6e1c(0x226)]['registerSharedOperation'](_0x365239));});}};_0x5d75bf=_0x21eda6([_0x2873f5(0x0,_0x14dd01['Inject'](_0x4c5666))],_0x5d75bf);var _0x1c2aa2=function(){var _0x12f728=_0x4e1f37;return _0x1c2aa2=Object[_0x12f728(0x167)]||function(_0x33aae2){var _0x2d8a43=_0x12f728;for(var _0x279de2,_0x20c648=0x1,_0x5d0554=arguments['length'];_0x20c648<_0x5d0554;_0x20c648++){_0x279de2=arguments[_0x20c648];for(var _0x54fe8a in _0x279de2)Object[_0x2d8a43(0x180)][_0x2d8a43(0x19a)][_0x2d8a43(0x143)](_0x279de2,_0x54fe8a)&&(_0x33aae2[_0x54fe8a]=_0x279de2[_0x54fe8a]);}return _0x33aae2;},_0x1c2aa2[_0x12f728(0x201)](this,arguments);},_0x42471d=function(_0x5476f2,_0xd4c003){var _0x1c62fc=_0x4e1f37,_0x5695d9={};for(var _0x5b475c in _0x5476f2)Object['prototype'][_0x1c62fc(0x19a)][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c)&&_0xd4c003[_0x1c62fc(0x1a1)](_0x5b475c)<0x0&&(_0x5695d9[_0x5b475c]=_0x5476f2[_0x5b475c]);if(_0x5476f2!=null&&typeof Object[_0x1c62fc(0x154)]==_0x1c62fc(0x172)){for(var _0x4c311e=0x0,_0x5b475c=Object[_0x1c62fc(0x154)](_0x5476f2);_0x4c311e<_0x5b475c[_0x1c62fc(0x1bd)];_0x4c311e++)_0xd4c003['indexOf'](_0x5b475c[_0x4c311e])<0x0&&Object[_0x1c62fc(0x180)]['propertyIsEnumerable'][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c[_0x4c311e])&&(_0x5695d9[_0x5b475c[_0x4c311e]]=_0x5476f2[_0x5b475c[_0x4c311e]]);}return _0x5695d9;},_0x9df238=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x4dc286,_0x331a69){var _0x38bd71=_0x4e1f37,_0x192fcd=_0x4dc286['icon'],_0x14c72d=_0x4dc286['id'],_0x321da9=_0x4dc286['className'],_0x24867e=_0x4dc286[_0x38bd71(0x1dc)],_0x535b49=_0x42471d(_0x4dc286,[_0x38bd71(0x1b7),'id',_0x38bd71(0x1c4),_0x38bd71(0x1dc)]),_0x3e491a=_0x38bd71(0x1e3)[_0x38bd71(0x149)](_0x14c72d,'\x20')[_0x38bd71(0x149)](_0x321da9||'')[_0x38bd71(0x22e)](),_0x51c9f8=_0x5309d1['useRef']('_'[_0x38bd71(0x149)](_0x10a0f8()));return _0x5e97aa(_0x192fcd,''['concat'](_0x14c72d),{'defIds':_0x192fcd[_0x38bd71(0x1de)],'idSuffix':_0x51c9f8[_0x38bd71(0x187)]},_0x1c2aa2({'ref':_0x331a69,'className':_0x3e491a},_0x535b49),_0x24867e);});function _0x5e97aa(_0x1f393a,_0x243203,_0xbf2547,_0x85d4d2,_0x412505){var _0x4eb103=_0x4e1f37;return _0x5309d1[_0x4eb103(0x211)](_0x1f393a['tag'],_0x1c2aa2(_0x1c2aa2({'key':_0x243203},_0x130bfa(_0x1f393a,_0xbf2547,_0x412505)),_0x85d4d2),(_0x2a1752(_0x1f393a,_0xbf2547)[_0x4eb103(0x188)]||[])[_0x4eb103(0x177)](function(_0xbba0d7,_0x22817a){var _0x4a92d3=_0x4eb103;return _0x5e97aa(_0xbba0d7,''[_0x4a92d3(0x149)](_0x243203,'-')['concat'](_0x1f393a[_0x4a92d3(0x1e7)],'-')[_0x4a92d3(0x149)](_0x22817a),_0xbf2547,void 0x0,_0x412505);}));}function _0x130bfa(_0x4ba32a,_0x1aa5fc,_0x3e172a){var _0x11ae01=_0x4e1f37,_0x4461ac=_0x1c2aa2({},_0x4ba32a['attrs']);_0x3e172a!=null&&_0x3e172a['colorChannel1']&&_0x4461ac[_0x11ae01(0x165)]===_0x11ae01(0x16e)&&(_0x4461ac[_0x11ae01(0x165)]=_0x3e172a[_0x11ae01(0x16e)]),_0x4ba32a['tag']===_0x11ae01(0x19d)&&_0x4461ac['id']&&(_0x4461ac['id']=_0x4461ac['id']+_0x1aa5fc[_0x11ae01(0x1df)]),Object[_0x11ae01(0x162)](_0x4461ac)[_0x11ae01(0x142)](function(_0x11d658){var _0x299bda=_0x11ae01,_0x4d1726=_0x11d658[0x0],_0xe4365c=_0x11d658[0x1];_0x4d1726===_0x299bda(0x19d)&&typeof _0xe4365c==_0x299bda(0x1b6)&&(_0x4461ac[_0x4d1726]=_0xe4365c[_0x299bda(0x212)](/url\(#(.*)\)/,_0x299bda(0x1e8)[_0x299bda(0x149)](_0x1aa5fc[_0x299bda(0x1df)],')')));});var _0x44e3a9=_0x1aa5fc['defIds'];return!_0x44e3a9||_0x44e3a9[_0x11ae01(0x1bd)]===0x0||(_0x4ba32a[_0x11ae01(0x1e7)]===_0x11ae01(0x1c0)&&_0x4461ac['xlink:href']&&(_0x4461ac[_0x11ae01(0x1d5)]=_0x4461ac[_0x11ae01(0x1d5)]+_0x1aa5fc[_0x11ae01(0x1df)]),Object['entries'](_0x4461ac)['forEach'](function(_0x11f9ed){var _0x194de7=_0x11ae01,_0x38472d=_0x11f9ed[0x0],_0x502e1a=_0x11f9ed[0x1];typeof _0x502e1a=='string'&&(_0x4461ac[_0x38472d]=_0x502e1a[_0x194de7(0x212)](/url\(#(.*)\)/,_0x194de7(0x1e8)['concat'](_0x1aa5fc[_0x194de7(0x1df)],')')));})),_0x4461ac;}function _0x2a1752(_0x2e8e58,_0x12e57c){var _0x180079=_0x4e1f37,_0x377c9d,_0x20b565=_0x12e57c['defIds'];return!_0x20b565||_0x20b565[_0x180079(0x1bd)]===0x0?_0x2e8e58:_0x2e8e58[_0x180079(0x1e7)]===_0x180079(0x1b3)&&(!((_0x377c9d=_0x2e8e58[_0x180079(0x188)])===null||_0x377c9d===void 0x0)&&_0x377c9d[_0x180079(0x1bd)])?_0x1c2aa2(_0x1c2aa2({},_0x2e8e58),{'children':_0x2e8e58[_0x180079(0x188)][_0x180079(0x177)](function(_0x28e5ed){var _0x5e6aa8=_0x180079;return typeof _0x28e5ed[_0x5e6aa8(0x199)]['id']==_0x5e6aa8(0x1b6)&&_0x20b565&&_0x20b565['indexOf'](_0x28e5ed[_0x5e6aa8(0x199)]['id'])>-0x1?_0x1c2aa2(_0x1c2aa2({},_0x28e5ed),{'attrs':_0x1c2aa2(_0x1c2aa2({},_0x28e5ed[_0x5e6aa8(0x199)]),{'id':_0x28e5ed[_0x5e6aa8(0x199)]['id']+_0x12e57c['idSuffix']})}):_0x28e5ed;})}):_0x2e8e58;}function _0x10a0f8(){var _0x107402=_0x4e1f37;return Math['random']()['toString'](0x24)[_0x107402(0x1a9)](0x2,0x8);}_0x9df238[_0x4e1f37(0x182)]=_0x4e1f37(0x1f2);var _0x1599fc={'tag':_0x4e1f37(0x14d),'attrs':{'fill':_0x4e1f37(0x1db),'viewBox':_0x4e1f37(0x158),'width':_0x4e1f37(0x14a),'height':_0x4e1f37(0x14a)},'children':[{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':_0x4e1f37(0x20a),'fillRule':_0x4e1f37(0x1d3),'clipRule':_0x4e1f37(0x1d3)}}]},_0x29b0cb=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x44d064,_0x1d3a36){var _0x395216=_0x4e1f37;return _0x5309d1[_0x395216(0x211)](_0x9df238,Object['assign']({},_0x44d064,{'id':_0x395216(0x1c1),'ref':_0x1d3a36,'icon':_0x1599fc}));});_0x29b0cb[_0x4e1f37(0x182)]=_0x4e1f37(0x17d);var _0x190cc1=Object[_0x4e1f37(0x1bc)],_0x3eba70=(_0xc5059f,_0x6a92ed,_0xc33f9c,_0x4f5027)=>{var _0xcd1bde=_0x4e1f37;for(var _0xa04b94=_0x4f5027>0x1?void 0x0:_0x4f5027?_0x190cc1(_0x6a92ed,_0xc33f9c):_0x6a92ed,_0x510f3c=_0xc5059f[_0xcd1bde(0x1bd)]-0x1,_0x821c5e;_0x510f3c>=0x0;_0x510f3c--)(_0x821c5e=_0xc5059f[_0x510f3c])&&(_0xa04b94=_0x821c5e(_0xa04b94)||_0xa04b94);return _0xa04b94;},_0x2d9c83=(_0x1fbc6d,_0x3a0204)=>(_0x53e359,_0x1497f1)=>_0x3a0204(_0x53e359,_0x1497f1,_0x1fbc6d);_0x564430[_0x4e1f37(0x1e6)]=class extends _0x14dd01[_0x4e1f37(0x157)]{constructor(_0x9e1c5a,_0x70570a,_0x1626ea){var _0x3a43b0=_0x4e1f37;super(),_0x14886c(this,_0x3a43b0(0x17b),new Map()),(this[_0x3a43b0(0x1da)]=_0x9e1c5a,this[_0x3a43b0(0x234)]=_0x70570a,this[_0x3a43b0(0x159)]=_0x1626ea,this[_0x3a43b0(0x148)]());}async[_0x4e1f37(0x195)](_0x20c66c){var _0x14938b=_0x4e1f37;return this[_0x14938b(0x17b)][_0x14938b(0x225)](_0x20c66c)||await this[_0x14938b(0x14b)](_0x20c66c),this[_0x14938b(0x17b)][_0x14938b(0x194)](_0x20c66c);}['_init'](){var _0x3e0524=_0x4e1f37;this[_0x3e0524(0x1da)][_0x3e0524(0x15c)](_0x14dd01[_0x3e0524(0x19c)]['UNIVER_SHEET'])[_0x3e0524(0x196)](_0x5f3902['takeUntil'](this[_0x3e0524(0x14e)]))['subscribe'](async _0x1b452e=>{var _0x5d08ca=_0x3e0524;const _0x4247c3=_0x1b452e[_0x5d08ca(0x17f)]();this['_entities']['has'](_0x4247c3)||this[_0x5d08ca(0x14b)](_0x4247c3);}),this['_univerInstanceService'][_0x3e0524(0x233)](_0x14dd01[_0x3e0524(0x19c)][_0x3e0524(0x1ae)])[_0x3e0524(0x196)](_0x5f3902[_0x3e0524(0x155)](this['dispose$']))[_0x3e0524(0x14c)](_0x3097e0=>{var _0x1b5123=_0x3e0524;const _0x30bf1d=_0x3097e0['getUnitId'](),_0x12a075=this[_0x1b5123(0x17b)]['get'](_0x30bf1d);_0x12a075==null||_0x12a075[_0x1b5123(0x204)]();});}async[_0x4e1f37(0x14b)](_0x77f5de){var _0x4bab72=_0x4e1f37;const _0x412e2d=await this[_0x4bab72(0x159)][_0x4bab72(0x1f8)](_0x77f5de),_0x4b9ff8=this['_injector'][_0x4bab72(0x152)](_0x564430[_0x4bab72(0x151)],_0x77f5de,_0x412e2d);return _0x4b9ff8[_0x4bab72(0x176)](),this['_entities']['set'](_0x77f5de,_0x4b9ff8),_0x4b9ff8;}},_0x564430[_0x4e1f37(0x1e6)]=_0x3eba70([_0x2d9c83(0x0,_0x14dd01[_0x4e1f37(0x198)]),_0x2d9c83(0x1,_0x14dd01['Inject'](_0x14dd01[_0x4e1f37(0x1b8)])),_0x2d9c83(0x2,_0x14dd01[_0x4e1f37(0x22a)](_0x48eb55['CollaborationSessionService']))],_0x564430['LiveShareController']);var _0x464d16=(_0x2a6ce1=>(_0x2a6ce1['OFFLINE']=_0x4e1f37(0x179),_0x2a6ce1[_0x4e1f37(0x18c)]=_0x4e1f37(0x1d6),_0x2a6ce1[_0x4e1f37(0x1c5)]=_0x4e1f37(0x191),_0x2a6ce1[_0x4e1f37(0x221)]=_0x4e1f37(0x1c8),_0x2a6ce1[_0x4e1f37(0x16b)]='presenting',_0x2a6ce1))(_0x464d16||{});const _0x358cfe=_0x4e1f37(0x1e4),_0x2c3428=0xc8;_0x564430['LiveShareCoordinator']=class extends _0x14dd01['RxDisposable']{constructor(_0x59e18d,_0x4e23f1,_0x49784d,_0x1b28be,_0x33d63b){var _0x3855cd=_0x4e1f37;super(),_0x14886c(this,'_status$',new _0x1beed9[(_0x3855cd(0x1a2))](_0x3855cd(0x1d6))),_0x14886c(this,_0x3855cd(0x193),this[_0x3855cd(0x216)][_0x3855cd(0x169)]()),_0x14886c(this,_0x3855cd(0x148),!0x1),_0x14886c(this,_0x3855cd(0x215),null),_0x14886c(this,'_presenter',null),(this[_0x3855cd(0x205)]=_0x59e18d,this[_0x3855cd(0x19b)]=_0x4e23f1,this[_0x3855cd(0x1e0)]=_0x49784d,this[_0x3855cd(0x226)]=_0x1b28be,this[_0x3855cd(0x235)]=_0x33d63b);}get['_status'](){var _0x7ac5d7=_0x4e1f37;return this[_0x7ac5d7(0x216)][_0x7ac5d7(0x1ce)]();}[_0x4e1f37(0x204)](){var _0xffcf8=_0x4e1f37,_0x2af58e;(_0x2af58e=this[_0xffcf8(0x215)])==null||_0x2af58e['dispose'](),this[_0xffcf8(0x216)][_0xffcf8(0x18f)](_0xffcf8(0x1d6)),this[_0xffcf8(0x216)][_0xffcf8(0x1ad)]();}[_0x4e1f37(0x176)](){var _0x48e961=_0x4e1f37;this[_0x48e961(0x148)]||(this[_0x48e961(0x148)]=!0x0,this[_0x48e961(0x19b)][_0x48e961(0x1bf)]['pipe'](_0x5f3902[_0x48e961(0x155)](this[_0x48e961(0x14e)]))['subscribe'](_0x585cf7=>{var _0x2b6afe=_0x48e961;switch(_0x585cf7){case _0x48eb55[_0x2b6afe(0x16a)][_0x2b6afe(0x1ea)]:this[_0x2b6afe(0x1f4)]();break;case _0x48eb55[_0x2b6afe(0x16a)]['ONLINE']:this[_0x2b6afe(0x1af)]();break;}}),this[_0x48e961(0x19b)][_0x48e961(0x145)][_0x48e961(0x196)](_0x5f3902[_0x48e961(0x155)](this['dispose$']))[_0x48e961(0x14c)](_0x4df33a=>{var _0x11516b=_0x48e961;const {eventID:_0x30adcb}=_0x4df33a;switch(_0x30adcb){case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x16c)]:this[_0x11516b(0x1f6)](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x150)]:this['_handleOperation'](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x1ca)]:this[_0x11516b(0x209)]();break;case _0x3e3d8e['CollaborationEvent'][_0x11516b(0x214)]:this['_handleNewChangeSets'](_0x4df33a);break;}}));}[_0x4e1f37(0x15b)](){var _0x5d91f4=_0x4e1f37;this[_0x5d91f4(0x19b)][_0x5d91f4(0x1fc)]({'eventID':_0x3e3d8e[_0x5d91f4(0x171)][_0x5d91f4(0x1d2)],'data':{'unitID':this[_0x5d91f4(0x205)],'userID':this[_0x5d91f4(0x19b)][_0x5d91f4(0x22c)]()}},this['_unitID']);}[_0x4e1f37(0x21f)](){var _0xc3c5e1=_0x4e1f37;this['_status']==='presenting'&&(this['_status$'][_0xc3c5e1(0x18f)](_0xc3c5e1(0x1d6)),this[_0xc3c5e1(0x19b)]['send']({'eventID':_0x3e3d8e[_0xc3c5e1(0x171)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xc3c5e1(0x205)]));}['startFollowing'](){var _0xfb8a43=_0x4e1f37;this['_status']===_0xfb8a43(0x1c8)&&(this[_0xfb8a43(0x216)][_0xfb8a43(0x18f)](_0xfb8a43(0x191)),this['_startFollowing']());}[_0x4e1f37(0x1f3)](){var _0x4858eb=_0x4e1f37;this['_status']===_0x4858eb(0x191)&&this[_0x4858eb(0x190)]();}[_0x4e1f37(0x1f6)](_0x2bb87f){var _0x20581c=_0x4e1f37;const {presenter:_0x127055}=_0x2bb87f[_0x20581c(0x1dd)],_0x5b766f=this[_0x20581c(0x19b)]['getMemberID']();this[_0x20581c(0x21b)]=_0x127055,_0x127055===_0x5b766f?(this[_0x20581c(0x190)](),this[_0x20581c(0x1b9)]()):this[_0x20581c(0x166)]!=='not-following'&&(this[_0x20581c(0x230)](),this[_0x20581c(0x1e2)]());}['_fetchOperations'](){var _0x502f29=_0x4e1f37;const _0x45c0b0={'eventID':_0x3e3d8e[_0x502f29(0x171)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x502f29(0x19b)]['send'](_0x45c0b0,this[_0x502f29(0x205)]);}[_0x4e1f37(0x209)](){var _0x2b01dc=_0x4e1f37;this[_0x2b01dc(0x21b)]=null,this[_0x2b01dc(0x166)]!==_0x2b01dc(0x200)&&this['_beIdle']();}[_0x4e1f37(0x1ba)](_0x3023cf){var _0x5ba26c=_0x4e1f37;if(this[_0x5ba26c(0x166)]==='following'&&this[_0x5ba26c(0x21b)]===_0x3023cf['data'][_0x5ba26c(0x163)]){const _0x533a53=_0x3e3d8e[_0x5ba26c(0x1d8)](_0x3023cf[_0x5ba26c(0x1dd)])[_0x5ba26c(0x186)][_0x5ba26c(0x16d)]()['find'](_0x2c4075=>_0x2c4075['id']===_0x13ba10['InsertSheetMutation']['id']);if(_0x533a53){const _0x2aedcb=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1eb)],_0x5a0dfd=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1ab)]['id'];setTimeout(()=>{var _0x5c7a3d=_0x5ba26c;this[_0x5c7a3d(0x235)][_0x5c7a3d(0x19e)](_0x13ba10[_0x5c7a3d(0x18a)]['id'],{'unitId':_0x2aedcb,'subUnitId':_0x5a0dfd},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x564b03=_0x4e1f37;this['_status$'][_0x564b03(0x18f)](_0x564b03(0x200));const _0x3c2c6c=new Map(),_0x372cc2=this['_commandDisposable']=new _0x14dd01['DisposableCollection']();_0x372cc2[_0x564b03(0x1b2)](_0x14dd01[_0x564b03(0x15d)](()=>{var _0x5102f7=_0x564b03;_0x3c2c6c[_0x5102f7(0x142)](_0x5ae739=>_0x5ae739[_0x5102f7(0x1ad)]()),_0x3c2c6c[_0x5102f7(0x1ec)]();})),_0x372cc2[_0x564b03(0x1b2)](this[_0x564b03(0x235)][_0x564b03(0x1ed)](_0x165a0f=>{var _0x1449a8=_0x564b03,_0x15800f;if(_0x165a0f['type']!==_0x14dd01[_0x1449a8(0x173)][_0x1449a8(0x1a3)]||!this[_0x1449a8(0x226)][_0x1449a8(0x20c)](_0x165a0f['id']))return;const {id:_0xfd7990}=_0x165a0f;let _0x17acb1;_0x3c2c6c[_0x1449a8(0x225)](_0xfd7990)?_0x17acb1=_0x3c2c6c[_0x1449a8(0x194)](_0xfd7990):(_0x17acb1=new _0x1beed9['Subject'](),_0x3c2c6c[_0x1449a8(0x1be)](_0xfd7990,_0x17acb1),_0x17acb1[_0x1449a8(0x196)](_0x5f3902[_0x1449a8(0x20e)]((_0x15800f=this['_configService']['getConfig'](_0x358cfe))!=null?_0x15800f:_0x2c3428,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1449a8(0x14c)](_0x5a5783=>{var _0x4aba16=_0x1449a8;this[_0x4aba16(0x19b)]['send']({'eventID':_0x3e3d8e[_0x4aba16(0x171)][_0x4aba16(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x5a5783['id']]:{'id':_0x5a5783['id'],'params':JSON['stringify'](_0x5a5783[_0x4aba16(0x1c3)])}}}},this[_0x4aba16(0x205)]);})),_0x17acb1[_0x1449a8(0x18f)](_0x165a0f);})),this['_liveShareService'][_0x564b03(0x18b)](this[_0x564b03(0x205)])['forEach'](_0x1197fe=>this['_collabSession'][_0x564b03(0x1fc)]({'eventID':_0x3e3d8e[_0x564b03(0x171)][_0x564b03(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x1197fe['id']]:{'id':_0x1197fe['id'],'params':JSON['stringify'](_0x1197fe[_0x564b03(0x1c3)])}}}},this[_0x564b03(0x205)]));}[_0x4e1f37(0x230)](){var _0x36fdbc=_0x4e1f37,_0x2b7e20;this[_0x36fdbc(0x216)]['next'](_0x36fdbc(0x1d6)),(_0x2b7e20=this[_0x36fdbc(0x215)])==null||_0x2b7e20[_0x36fdbc(0x204)](),this[_0x36fdbc(0x215)]=null;}[_0x4e1f37(0x1e2)](){var _0x5f0de2=_0x4e1f37,_0xf0483;(_0xf0483=this['_commandDisposable'])==null||_0xf0483[_0x5f0de2(0x204)](),this[_0x5f0de2(0x216)][_0x5f0de2(0x18f)](_0x5f0de2(0x191));}[_0x4e1f37(0x231)](){var _0x12af61=_0x4e1f37,_0x4222d3;this[_0x12af61(0x216)][_0x12af61(0x18f)](_0x12af61(0x1d6)),(_0x4222d3=this[_0x12af61(0x215)])==null||_0x4222d3['dispose'](),this[_0x12af61(0x215)]=null;}[_0x4e1f37(0x190)](){var _0x5b9ab5=_0x4e1f37,_0x16d0c7;this[_0x5b9ab5(0x216)]['next'](_0x5b9ab5(0x1c8)),(_0x16d0c7=this['_commandDisposable'])==null||_0x16d0c7[_0x5b9ab5(0x204)]();}['_handleOperation'](_0x5d1610){var _0x7a6cb0=_0x4e1f37;if(['presenting','not-following','offline'][_0x7a6cb0(0x1fd)](this[_0x7a6cb0(0x166)])||!_0x5d1610['data'][_0x7a6cb0(0x1c2)]||_0x5d1610['data']['presenter']===this['_collabSession'][_0x7a6cb0(0x22c)]())return;this[_0x7a6cb0(0x166)]==='idle'&&this[_0x7a6cb0(0x1e2)]();const _0x462c87=_0x5d1610[_0x7a6cb0(0x1dd)]['operations'];Object['values'](_0x462c87)[_0x7a6cb0(0x142)](_0x11fcc9=>{var _0x2304ae=_0x7a6cb0;this[_0x2304ae(0x235)]['executeCommand'](_0x11fcc9['id'],_0x11fcc9['params']?JSON['parse'](_0x11fcc9[_0x2304ae(0x1c3)]):null,{'fromCollab':!0x0});});}[_0x4e1f37(0x1f4)](){var _0x2035ef=_0x4e1f37,_0x65be3e;this['_status$']['next'](_0x2035ef(0x179)),(_0x65be3e=this[_0x2035ef(0x215)])==null||_0x65be3e['dispose']();}[_0x4e1f37(0x1af)](){var _0x1dc36a=_0x4e1f37;this[_0x1dc36a(0x216)]['next'](_0x1dc36a(0x1d6)),this[_0x1dc36a(0x197)]();}},_0x564430[_0x4e1f37(0x151)]=_0x3eba70([_0x2d9c83(0x2,_0x14dd01['IConfigService']),_0x2d9c83(0x3,_0x14dd01[_0x4e1f37(0x22a)](_0x4c5666)),_0x2d9c83(0x4,_0x14dd01['ICommandService'])],_0x564430[_0x4e1f37(0x151)]);function _0x2c5356(){var _0xaefccd=_0x4e1f37;const _0x3944b9=_0x4f2411[_0xaefccd(0x222)](_0x564430[_0xaefccd(0x1e6)]),_0xd19c39=_0x4f2411[_0xaefccd(0x222)](_0x14dd01[_0xaefccd(0x198)]),_0x130460=_0x4f2411[_0xaefccd(0x1cf)](()=>_0xd19c39[_0xaefccd(0x1a8)](_0x14dd01['UniverInstanceType'][_0xaefccd(0x1ae)]),void 0x0,!0x1,[]),[_0x23e786,_0x11be7e]=_0x5309d1[_0xaefccd(0x213)](null),[_0x223d73,_0x3e5d20]=_0x5309d1[_0xaefccd(0x213)](_0x464d16[_0xaefccd(0x18c)]),_0x51c0ca=_0x5309d1[_0xaefccd(0x220)](null);return _0x5309d1[_0xaefccd(0x208)](()=>(_0x130460&&_0x3944b9[_0xaefccd(0x195)](_0x130460['getUnitId']())[_0xaefccd(0x1ff)](_0x319ac6=>{var _0xda0fac=_0xaefccd;_0x11be7e(_0x319ac6),_0x51c0ca['current']=_0x319ac6[_0xda0fac(0x193)][_0xda0fac(0x14c)](_0x1986a7=>{_0x3e5d20(_0x1986a7);});}),()=>{var _0x4a6001=_0xaefccd,_0x2a6243;(_0x2a6243=_0x51c0ca[_0x4a6001(0x187)])==null||_0x2a6243[_0x4a6001(0x192)](),_0x51c0ca[_0x4a6001(0x187)]=null;}),[_0x130460,_0x3944b9]),_0x23e786?_0x251b21[_0xaefccd(0x174)](_0xf99188[_0xaefccd(0x1e9)],{'align':_0xaefccd(0x1d0),'disabled':_0x223d73===_0x464d16['OFFLINE'],'className':_0xaefccd(0x1cb),'overlay':_0x251b21[_0xaefccd(0x174)](_0x4a4200,{'status':_0x223d73,'coordinator':_0x23e786}),'children':_0x251b21[_0xaefccd(0x174)](_0xaefccd(0x236),{'className':_0xf99188['clsx'](_0xaefccd(0x227),{'univer-cursor-not-allowed':_0x223d73===_0x464d16[_0xaefccd(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223d73!==_0x464d16[_0xaefccd(0x1ea)]}),'type':_0xaefccd(0x236),'children':_0x251b21[_0xaefccd(0x174)](_0x29b0cb,{'className':_0xaefccd(0x17a)})})}):null;}function _0x4a4200(_0x426997){var _0x41fc1d=_0x4e1f37;const {status:_0x196c9d,coordinator:_0x1cab77}=_0x426997;switch(_0x196c9d){case _0x464d16[_0x41fc1d(0x18c)]:return _0x251b21[_0x41fc1d(0x174)](_0x339f9c,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1c5)]:return _0x251b21[_0x41fc1d(0x174)](_0x142d85,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x221)]:return _0x251b21[_0x41fc1d(0x174)](_0x430861,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1ea)]:return _0x251b21[_0x41fc1d(0x174)](_0x18249f,{});case _0x464d16[_0x41fc1d(0x16b)]:return _0x251b21['jsx'](_0x54880d,{'coordinator':_0x1cab77});default:return null;}}function _0x339f9c(_0xdd5ff){var _0x162e98=_0x4e1f37;const {coordinator:_0x4f80e8}=_0xdd5ff;return _0x251b21[_0x162e98(0x181)](_0x251b21[_0x162e98(0x178)],{'children':[_0x251b21['jsx']('div',{'className':_0x162e98(0x219),'children':'Present\x20this\x20document'}),_0x251b21[_0x162e98(0x174)](_0xf99188[_0x162e98(0x17e)],{'onClick':()=>_0x4f80e8[_0x162e98(0x15b)](),'children':_0x162e98(0x21c)})]});}function _0x142d85(_0x1c6b9f){var _0x590dc1=_0x4e1f37;const {coordinator:_0xf2099f}=_0x1c6b9f;return _0x251b21[_0x590dc1(0x181)](_0x251b21[_0x590dc1(0x178)],{'children':[_0x251b21[_0x590dc1(0x174)](_0x590dc1(0x1cd),{'className':_0x590dc1(0x219),'children':_0x590dc1(0x1d4)}),_0x251b21[_0x590dc1(0x174)](_0xf99188[_0x590dc1(0x17e)],{'onClick':()=>_0xf2099f[_0x590dc1(0x1f3)](),'children':_0x590dc1(0x153)})]});}function _0x430861(_0x56eee2){var _0x5c8347=_0x4e1f37;const {coordinator:_0x8f9273}=_0x56eee2;return _0x251b21[_0x5c8347(0x181)](_0x251b21[_0x5c8347(0x178)],{'children':[_0x251b21[_0x5c8347(0x174)](_0x5c8347(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c8347(0x18d)}),_0x251b21[_0x5c8347(0x174)](_0xf99188[_0x5c8347(0x17e)],{'variant':_0x5c8347(0x16f),'onClick':()=>_0x8f9273[_0x5c8347(0x203)](),'children':'Start\x20following'})]});}function _0x54880d(_0x534137){var _0x18605a=_0x4e1f37;const {coordinator:_0x1ccb75}=_0x534137;return _0x251b21[_0x18605a(0x181)](_0x251b21[_0x18605a(0x178)],{'children':[_0x251b21['jsx'](_0x18605a(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x18605a(0x232)}),_0x251b21['jsx'](_0xf99188[_0x18605a(0x17e)],{'variant':_0x18605a(0x1f9),'onClick':()=>_0x1ccb75['stopPresenting'](),'children':_0x18605a(0x1a7)})]});}function _0x18249f(){var _0x5aaae3=_0x4e1f37;return _0x251b21['jsx'](_0x251b21[_0x5aaae3(0x178)],{'children':'You\x27are\x20offline.'});}var _0x5867f9=Object[_0x4e1f37(0x1bc)],_0x3e2959=(_0x5f4e64,_0x1be24d,_0x152fdf,_0x4bac08)=>{var _0x148319=_0x4e1f37;for(var _0x39c71d=_0x4bac08>0x1?void 0x0:_0x4bac08?_0x5867f9(_0x1be24d,_0x152fdf):_0x1be24d,_0x400cc6=_0x5f4e64[_0x148319(0x1bd)]-0x1,_0x4cd18d;_0x400cc6>=0x0;_0x400cc6--)(_0x4cd18d=_0x5f4e64[_0x400cc6])&&(_0x39c71d=_0x4cd18d(_0x39c71d)||_0x39c71d);return _0x39c71d;},_0x271a33=(_0x544852,_0x5bef7e)=>(_0x44fc6a,_0x3a2524)=>_0x5bef7e(_0x44fc6a,_0x3a2524,_0x544852);_0x564430['DesktopLiveShareController']=class extends _0x14dd01['Disposable']{constructor(_0x20e548,_0x3f5b01){var _0x19729b=_0x4e1f37;super(),this['_injector']=_0x20e548,this[_0x19729b(0x1d7)]=_0x3f5b01,this[_0x19729b(0x170)]();}[_0x4e1f37(0x170)](){var _0x19ed22=_0x4e1f37;this['disposeWithMe'](this[_0x19ed22(0x1d7)]['registerComponent'](_0x4f2411[_0x19ed22(0x22b)][_0x19ed22(0x1a5)],()=>_0x4f2411[_0x19ed22(0x1f7)](_0x2c5356,this[_0x19ed22(0x234)])));}},_0x564430['DesktopLiveShareController']=_0x3e2959([_0x271a33(0x0,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01['Injector'])),_0x271a33(0x1,_0x4f2411[_0x4e1f37(0x19f)])],_0x564430[_0x4e1f37(0x1b0)]);var _0x347024=Object[_0x4e1f37(0x21e)],_0x4fb404=Object['getOwnPropertyDescriptor'],_0x95fffd=(_0x574433,_0x5ce5ea,_0x312851)=>_0x5ce5ea in _0x574433?_0x347024(_0x574433,_0x5ce5ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x312851}):_0x574433[_0x5ce5ea]=_0x312851,_0x5eea80=(_0x1bb6b9,_0x1a6196,_0x2cbe36,_0x1be744)=>{for(var _0xec5757=_0x1be744>0x1?void 0x0:_0x1be744?_0x4fb404(_0x1a6196,_0x2cbe36):_0x1a6196,_0x322a01=_0x1bb6b9['length']-0x1,_0xe612ef;_0x322a01>=0x0;_0x322a01--)(_0xe612ef=_0x1bb6b9[_0x322a01])&&(_0xec5757=_0xe612ef(_0xec5757)||_0xec5757);return _0xec5757;},_0x3e1f8a=(_0x59c16c,_0x53408d)=>(_0x5c5ece,_0x23c39b)=>_0x53408d(_0x5c5ece,_0x23c39b,_0x59c16c),_0x1f9d4d=(_0x18eeb3,_0x15ef3f,_0x1f2214)=>_0x95fffd(_0x18eeb3,typeof _0x15ef3f!=_0x4e1f37(0x1ac)?_0x15ef3f+'':_0x15ef3f,_0x1f2214);const _0x19f0f5=_0x4e1f37(0x1e1);_0x564430[_0x4e1f37(0x183)]=class extends _0x14dd01[_0x4e1f37(0x160)]{constructor(_0x3a7b2e=_0x187a32,_0x22d176,_0x46aa18){var _0x3c7662=_0x4e1f37;super(),this[_0x3c7662(0x184)]=_0x3a7b2e,this[_0x3c7662(0x234)]=_0x22d176,this[_0x3c7662(0x1e0)]=_0x46aa18;const {..._0x7eba03}=_0x14dd01[_0x3c7662(0x210)]({},_0x187a32,this['_config']);this[_0x3c7662(0x1e0)][_0x3c7662(0x1fe)](_0x569104,_0x7eba03);}[_0x4e1f37(0x161)](){var _0x7bd9b1=_0x4e1f37;_0x14dd01[_0x7bd9b1(0x217)](this[_0x7bd9b1(0x234)],_0x14dd01['mergeOverrideWithDependencies']([[_0x4c5666],[_0x564430['LiveShareController']],[_0x5d75bf],[_0x564430[_0x7bd9b1(0x1b0)]]],this[_0x7bd9b1(0x184)]['override'])),_0x14dd01[_0x7bd9b1(0x15f)](this['_injector'],[[_0x5d75bf]]);}['onRendered'](){var _0x33269b=_0x4e1f37;_0x14dd01['touchDependencies'](this[_0x33269b(0x234)],[[_0x564430['DesktopLiveShareController']]]);}},_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a4),_0x14dd01[_0x4e1f37(0x19c)][_0x4e1f37(0x202)]),_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a6),_0x19f0f5),_0x564430[_0x4e1f37(0x183)]=_0x5eea80([_0x14dd01[_0x4e1f37(0x229)](_0x48eb55['UniverCollaborationClientPlugin']),_0x3e1f8a(0x1,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01[_0x4e1f37(0x1b8)])),_0x3e1f8a(0x2,_0x14dd01['IConfigService'])],_0x564430[_0x4e1f37(0x183)]),_0x564430[_0x4e1f37(0x1fa)]=_0x2c5356,_0x564430[_0x4e1f37(0x218)]=_0x4c5666,_0x564430['LiveShareStatus']=_0x464d16,Object[_0x4e1f37(0x21e)](_0x564430,Symbol[_0x4e1f37(0x1b1)],{'value':_0x4e1f37(0x224)});}));function _0x3dc3(){var _0x43d248=['LIVESHARE_NEW_HOST','reverse','colorChannel1','text','_mountLiveShare','CollaborationEvent','function','CommandType','jsx','rxjs/operators','init','map','Fragment','offline','univer-size-4','_entities','SetZoomRatioOperation','LiveShareSingle','Button','getUnitId','prototype','jsxs','displayName','UniverLiveSharePlugin','_config','UniverCore','mutations','current','children','disposeWithMe','SetWorksheetActiveOperation','getInitialStates','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','UniverProLiveShare','next','_stopFollowing','following','unsubscribe','status$','get','getLiveShareCoordinator','pipe','_fetchOperations','IUniverInstanceService','attrs','hasOwnProperty','_collabSession','UniverInstanceType','mask','executeCommand','IUIPartsService','@univerjs/sheets-ui','indexOf','BehaviorSubject','OPERATION','type','HEADER_MENU','pluginName','Stop\x20presenting','getCurrentTypeOfUnit$','substring','1896156JVErhA','sheet','symbol','complete','UNIVER_SHEET','_handleOnline','DesktopLiveShareController','toStringTag','add','defs','forwardRef','715CpKCDI','string','icon','Injector','_startPresenting','_handleNewChangeSets','@univerjs/ui','getOwnPropertyDescriptor','length','set','sessionStatus$','use','live-share-single','presenter','params','className','FOLLOWING','40gSRocE','@univerjs/core','not-following','currentColor','LIVESHARE_TERMINATE','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','@univerjs-pro/collaboration','div','getValue','useObservable','end','react/jsx-runtime','LIVESHARE_REQUEST_HOST','evenodd','You\x27re\x20following\x20the\x20presenter','xlink:href','idle','_uiPartsService','parseProtocolChangeset','2532wbiHyQ','_univerInstanceService','none','extend','data','defIds','idSuffix','_configService','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','amd','LiveShareController','tag','url(#$1','Dropdown','OFFLINE','unitId','clear','onCommandExecuted','operators','125845NeLlbH','UniverProCollaborationClient','1708749vdlRuX','UniverIcon','stopFollowing','_handleOffline','UniverSheets','_handleNewHost','connectInjector','requireSession','default','LiveShare','UniverSheetsUi','send','includes','setConfig','then','presenting','apply','UNIVER_UNKNOWN','startFollowing','dispose','_unitID','object','UniverProCollaboration','useEffect','_handleTerminate','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','90WiBNfI','shouldShareOperation','Disposable','throttleTime','_sharedOperations','merge','createElement','replace','useState','NEW_CHANGESETS','_commandDisposable','_status$','registerDependencies','LiveShareService','univer-w-full\x20univer-mb-3\x20univer-text-sm','2AUlwTl','_presenter','Start','357911XwnXGZ','defineProperty','stopPresenting','useRef','NOT_FOLLOWING','useDependency','rxjs','Module','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','1174184QLgWAE','DependentOn','Inject','BuiltInUIPart','getMemberID','35DtwOzp','trim','registerInitialStateReporter','_stopPresenting','_beIdle','You\x27re\x20presenting\x20the\x20document','getTypeOfUnitDisposed$','_injector','_commandService','button','React','path','forEach','call','UniverDesign','event$','715194KXLauk','from','_init','concat','1em','_startLiveShareCoordinator','subscribe','svg','dispose$','@univerjs-pro/collaboration-client','LIVESHARE_OPERATION','LiveShareCoordinator','createInstance','Stop\x20following','getOwnPropertySymbols','takeUntil','delete','RxDisposable','0\x200\x2016\x2016','_collabSessionService','@univerjs/design','tryStartPresenting','getTypeOfUnitAdded$','toDisposable','_reporters','touchDependencies','Plugin','onStarting','entries','memberID','@univerjs/sheets','fill','_status','assign','react','asObservable','SessionStatus','PRESENTING'];_0x3dc3=function(){return _0x43d248;};return _0x3dc3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.7.0-nightly.202505251606",
3
+ "version": "0.8.0-beta.0",
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.3.24",
50
- "@univerjs-pro/collaboration": "0.7.0-nightly.202505251606",
51
- "@univerjs-pro/collaboration-client": "0.7.0-nightly.202505251606",
52
- "@univerjs/core": "0.7.0-nightly.202505251606",
53
- "@univerjs/design": "0.7.0-nightly.202505251606",
54
- "@univerjs/sheets": "0.7.0-nightly.202505251606",
55
- "@univerjs/ui": "0.7.0-nightly.202505251606",
56
- "@univerjs/sheets-ui": "0.7.0-nightly.202505251606"
50
+ "@univerjs-pro/collaboration": "0.8.0-beta.0",
51
+ "@univerjs/core": "0.8.0-beta.0",
52
+ "@univerjs-pro/collaboration-client": "0.8.0-beta.0",
53
+ "@univerjs/design": "0.8.0-beta.0",
54
+ "@univerjs/sheets-ui": "0.8.0-beta.0",
55
+ "@univerjs/sheets": "0.8.0-beta.0",
56
+ "@univerjs/ui": "0.8.0-beta.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.3",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.1.4",
66
- "@univerjs/protocol": "0.1.47-alpha.0",
67
- "@univerjs-infra/shared": "0.7.0"
66
+ "@univerjs-infra/shared": "0.8.0-beta.0",
67
+ "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",