@univerjs-pro/live-share 0.8.3-nightly.202507011607 → 0.8.3-nightly.202507031607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x43cc(){var _0x477ae9=['onCommandExecuted','InsertSheetMutation','then','className','pluginName','DesktopLiveShareController','hasOwnProperty','executeCommand','mergeOverrideWithDependencies','trim','_handleOffline','_init','override','startFollowing','replace','unitId','live-share.config','button','asObservable','init','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','81HsJOdH','_handleOnline','_configService','_status$','LiveShareStatus','IDLE','concat','_sharedOperations','6941420tpTjNU','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','stringify','_unitID','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','getOwnPropertySymbols','random','not-following','subscribe','ICommandService','1em','IConfigService','xlink:href','delete','get','_uiPartsService','registerInitialStateReporter','jsx','Start','318EPzhHJ','status$','Start\x20following','NEW_CHANGESETS','stopFollowing','mutations','_reporters','62qMVxyJ','assign','OPERATION','forEach','_beIdle','_collabSessionService','_handleNewHost','You\x27re\x20following\x20the\x20presenter','3980ploCJV','params','RxDisposable','div','requireSession','Injector','Plugin','attrs','prototype','sessionStatus$','_presenter','LiveShare','UNIVER_UNKNOWN','SetWorksheetActiveOperation','onRendered','6982096YuvIEj','reverse','useState','UniverIcon','data','_startPresenting','propertyIsEnumerable','IUniverInstanceService','memberID','call','merge','Disposable','defIds','LiveShareService','Dropdown','OFFLINE','useObservable','0\x200\x2017\x2017','toString','SessionStatus','_liveShareService','svg','fill','url(#$1','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LiveShareIcon','27loyYHr','HEADER_MENU','sheet','symbol','getLiveShareCoordinator','children','SAME_OPERATION_SHARE_INTERVAL','add','univer-mb-3\x20univer-w-full\x20univer-text-sm','DisposableCollection','idSuffix','_stopFollowing','DependentOn','colorChannel1','forwardRef','touchDependencies','length','SetScrollOperation','apply','LiveShareCoordinator','registerSharedOperation','_univerInstanceService','has','complete','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','stopPresenting','_injector','pipe','from','_collabSession','_entities','following','Button','1758660kzBFsY','defineProperty','Stop\x20following','BuiltInUIPart','UniverLiveSharePlugin','current','_mountLiveShare','jsxs','dispose$','map','Module','useEffect','getOwnPropertyDescriptor','offline','tag','_status','getMemberID','registerDependencies','_handleNewChangeSets','_commandDisposable','32358nZNcOw','tryStartPresenting','NOT_FOLLOWING','LIVESHARE_TERMINATE','IUIPartsService','next','end','defs','mask','idle','shouldShareOperation','createElement','text','10521552zTGYjQ','CollaborationEvent','_stopPresenting','entries','dispose','toStringTag','Fragment','Stop\x20presenting','substring','string','icon','Inject','evenodd','function','_startFollowing','values','setConfig','getTypeOfUnitDisposed$','connectInjector','UNIVER_SHEET','includes','send','indexOf','UniverInstanceType','getInitialStates','presenter','getCurrentTypeOfUnit$','path','_config','LIVESHARE_OPERATION','PRESENTING','operations','SetZoomRatioOperation','toDisposable','_fetchOperations','LiveShareController','default','none','_handleTerminate','CollaborationSessionService','getUnitId','currentColor','onStarting','set','presenting','58009wHDvXx','BehaviorSubject','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','extend','useDependency','useRef','disposeWithMe','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','univerjs-icon\x20univerjs-icon-','_commandService','Present\x20this\x20document','takeUntil'];_0x43cc=function(){return _0x477ae9;};return _0x43cc();}function _0x3e3f(_0x205c22,_0x30a5f0){var _0x43cceb=_0x43cc();return _0x3e3f=function(_0x3e3f15,_0x4fa74c){_0x3e3f15=_0x3e3f15-0x15e;var _0x183fe6=_0x43cceb[_0x3e3f15];return _0x183fe6;},_0x3e3f(_0x205c22,_0x30a5f0);}var _0x110d25=_0x3e3f;(function(_0x22099d,_0x20d417){var _0x136baf=_0x3e3f,_0x4d73d2=_0x22099d();while(!![]){try{var _0x53ec9c=-parseInt(_0x136baf(0x18b))/0x1*(parseInt(_0x136baf(0x1f1))/0x2)+parseInt(_0x136baf(0x168))/0x3*(parseInt(_0x136baf(0x193))/0x4)+parseInt(_0x136baf(0x170))/0x5+parseInt(_0x136baf(0x184))/0x6*(parseInt(_0x136baf(0x22b))/0x7)+-parseInt(_0x136baf(0x1fe))/0x8+parseInt(_0x136baf(0x1bc))/0x9*(parseInt(_0x136baf(0x1dd))/0xa)+parseInt(_0x136baf(0x1a2))/0xb;if(_0x53ec9c===_0x20d417)break;else _0x4d73d2['push'](_0x4d73d2['shift']());}catch(_0x1c846e){_0x4d73d2['push'](_0x4d73d2['shift']());}}}(_0x43cc,0xaa822));var U=Object[_0x110d25(0x1de)],F=(_0x31d70b,_0x3e7995,_0x49e8fe)=>_0x3e7995 in _0x31d70b?U(_0x31d70b,_0x3e7995,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49e8fe}):_0x31d70b[_0x3e7995]=_0x49e8fe,v=(_0x4db517,_0x40685b,_0x55ec33)=>F(_0x4db517,typeof _0x40685b!=_0x110d25(0x1bf)?_0x40685b+'':_0x40685b,_0x55ec33);Object[_0x110d25(0x1de)](exports,Symbol[_0x110d25(0x203)],{'value':_0x110d25(0x1e7)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x110d25(0x162),x={};class O extends o[_0x110d25(0x1ad)]{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}[_0x110d25(0x1d0)](_0x3903e4){var _0x22c866=_0x110d25;return this[_0x22c866(0x16f)][_0x22c866(0x1c3)](_0x3903e4),o[_0x22c866(0x21f)](()=>this[_0x22c866(0x16f)][_0x22c866(0x17e)](_0x3903e4));}[_0x110d25(0x181)](_0x55d192){var _0x2bd42f=_0x110d25;return this[_0x2bd42f(0x18a)][_0x2bd42f(0x1c3)](_0x55d192),o['toDisposable'](()=>this['_reporters'][_0x2bd42f(0x17e)](_0x55d192));}[_0x110d25(0x1fb)](_0x359b93){var _0x10bc12=_0x110d25;return this[_0x10bc12(0x16f)][_0x10bc12(0x1d2)](_0x359b93);}['getInitialStates'](_0x2f900d){var _0x207d5d=_0x110d25;return Array[_0x207d5d(0x1d8)](this['_reporters'])[_0x207d5d(0x1e6)](_0x5eb4bb=>_0x5eb4bb(_0x2f900d));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x545891,_0x5bd625,_0x5a29d2,_0x28d17e)=>{var _0x5cb4a2=_0x110d25;for(var _0x314996=_0x28d17e>0x1?void 0x0:_0x28d17e?H(_0x5bd625,_0x5a29d2):_0x5bd625,_0xe9f63c=_0x545891[_0x5cb4a2(0x1cc)]-0x1,_0x2807e4;_0xe9f63c>=0x0;_0xe9f63c--)(_0x2807e4=_0x545891[_0xe9f63c])&&(_0x314996=_0x2807e4(_0x314996)||_0x314996);return _0x314996;},k=(_0x41a708,_0x4fd6fd)=>(_0x2387fe,_0x1b6952)=>_0x4fd6fd(_0x2387fe,_0x1b6952,_0x41a708);let E=class extends o[_0x110d25(0x1ad)]{constructor(_0x22634f){var _0x5e42a1=_0x110d25;super(),this[_0x5e42a1(0x1b6)]=_0x22634f,this[_0x5e42a1(0x244)]();}[_0x110d25(0x244)](){var _0x17f365=_0x110d25;[w[_0x17f365(0x21e)]['id'],w[_0x17f365(0x1cd)]['id'],C[_0x17f365(0x1a0)]['id']][_0x17f365(0x18e)](_0x9e2a13=>{var _0x4a50a0=_0x17f365;this[_0x4a50a0(0x232)](this['_liveShareService'][_0x4a50a0(0x1d0)](_0x9e2a13));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x3d9a14=_0x110d25;return u=Object[_0x3d9a14(0x18c)]||function(_0x629afb){var _0x474b31=_0x3d9a14;for(var _0x355230,_0x493735=0x1,_0x5e093c=arguments['length'];_0x493735<_0x5e093c;_0x493735++){_0x355230=arguments[_0x493735];for(var _0xa974dc in _0x355230)Object[_0x474b31(0x19b)]['hasOwnProperty'][_0x474b31(0x1ab)](_0x355230,_0xa974dc)&&(_0x629afb[_0xa974dc]=_0x355230[_0xa974dc]);}return _0x629afb;},u[_0x3d9a14(0x1ce)](this,arguments);},M=function(_0x367186,_0x3f264a){var _0x23eda5=_0x110d25,_0x90663f={};for(var _0x279d3f in _0x367186)Object[_0x23eda5(0x19b)][_0x23eda5(0x23f)][_0x23eda5(0x1ab)](_0x367186,_0x279d3f)&&_0x3f264a[_0x23eda5(0x214)](_0x279d3f)<0x0&&(_0x90663f[_0x279d3f]=_0x367186[_0x279d3f]);if(_0x367186!=null&&typeof Object[_0x23eda5(0x176)]==_0x23eda5(0x20b)){for(var _0x1617f5=0x0,_0x279d3f=Object['getOwnPropertySymbols'](_0x367186);_0x1617f5<_0x279d3f[_0x23eda5(0x1cc)];_0x1617f5++)_0x3f264a[_0x23eda5(0x214)](_0x279d3f[_0x1617f5])<0x0&&Object[_0x23eda5(0x19b)][_0x23eda5(0x1a8)]['call'](_0x367186,_0x279d3f[_0x1617f5])&&(_0x90663f[_0x279d3f[_0x1617f5]]=_0x367186[_0x279d3f[_0x1617f5]]);}return _0x90663f;},j=f[_0x110d25(0x1ca)](function(_0x30382c,_0x329463){var _0x4445e0=_0x110d25,_0x8b3ef0=_0x30382c[_0x4445e0(0x208)],_0x1f9c83=_0x30382c['id'],_0x5d310c=_0x30382c['className'],_0x59b7bc=_0x30382c[_0x4445e0(0x22f)],_0x4f95fc=M(_0x30382c,[_0x4445e0(0x208),'id',_0x4445e0(0x23c),_0x4445e0(0x22f)]),_0x582d4b=_0x4445e0(0x235)[_0x4445e0(0x16e)](_0x1f9c83,'\x20')[_0x4445e0(0x16e)](_0x5d310c||'')[_0x4445e0(0x242)](),_0x280bf1=f[_0x4445e0(0x231)]('_'[_0x4445e0(0x16e)](G()));return y(_0x8b3ef0,''[_0x4445e0(0x16e)](_0x1f9c83),{'defIds':_0x8b3ef0[_0x4445e0(0x1ae)],'idSuffix':_0x280bf1[_0x4445e0(0x1e2)]},u({'ref':_0x329463,'className':_0x582d4b},_0x4f95fc),_0x59b7bc);});function y(_0x705d7c,_0x29cc8c,_0x12062d,_0x20c988,_0x11e9d6){var _0x4d0832=_0x110d25;return f['createElement'](_0x705d7c[_0x4d0832(0x1eb)],u(u({'key':_0x29cc8c},q(_0x705d7c,_0x12062d,_0x11e9d6)),_0x20c988),(W(_0x705d7c,_0x12062d)[_0x4d0832(0x1c1)]||[])['map'](function(_0x59782e,_0x4ac002){var _0x2180f0=_0x4d0832;return y(_0x59782e,''[_0x2180f0(0x16e)](_0x29cc8c,'-')[_0x2180f0(0x16e)](_0x705d7c[_0x2180f0(0x1eb)],'-')[_0x2180f0(0x16e)](_0x4ac002),_0x12062d,void 0x0,_0x11e9d6);}));}function q(_0x503822,_0x5c1813,_0x2acbc5){var _0x1098a9=_0x110d25,_0x3dcce0=u({},_0x503822[_0x1098a9(0x19a)]);_0x2acbc5!=null&&_0x2acbc5[_0x1098a9(0x1c9)]&&_0x3dcce0['fill']===_0x1098a9(0x1c9)&&(_0x3dcce0[_0x1098a9(0x1b8)]=_0x2acbc5[_0x1098a9(0x1c9)]),_0x503822['tag']===_0x1098a9(0x1f9)&&_0x3dcce0['id']&&(_0x3dcce0['id']=_0x3dcce0['id']+_0x5c1813['idSuffix']),Object[_0x1098a9(0x201)](_0x3dcce0)[_0x1098a9(0x18e)](function(_0x36550d){var _0x53f3e9=_0x1098a9,_0x4687ee=_0x36550d[0x0],_0x613fff=_0x36550d[0x1];_0x4687ee===_0x53f3e9(0x1f9)&&typeof _0x613fff=='string'&&(_0x3dcce0[_0x4687ee]=_0x613fff[_0x53f3e9(0x160)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5c1813[_0x53f3e9(0x1c6)],')')));});var _0x35ef43=_0x5c1813[_0x1098a9(0x1ae)];return!_0x35ef43||_0x35ef43[_0x1098a9(0x1cc)]===0x0||(_0x503822[_0x1098a9(0x1eb)]==='use'&&_0x3dcce0[_0x1098a9(0x17d)]&&(_0x3dcce0[_0x1098a9(0x17d)]=_0x3dcce0[_0x1098a9(0x17d)]+_0x5c1813[_0x1098a9(0x1c6)]),Object[_0x1098a9(0x201)](_0x3dcce0)[_0x1098a9(0x18e)](function(_0x2397c3){var _0x54ecc6=_0x1098a9,_0x45c002=_0x2397c3[0x0],_0x223088=_0x2397c3[0x1];typeof _0x223088=='string'&&(_0x3dcce0[_0x45c002]=_0x223088[_0x54ecc6(0x160)](/url\(#(.*)\)/,_0x54ecc6(0x1b9)['concat'](_0x5c1813[_0x54ecc6(0x1c6)],')')));})),_0x3dcce0;}function W(_0x337907,_0xc146){var _0x2e4a69=_0x110d25,_0x19e0eb,_0x5aa197=_0xc146['defIds'];return!_0x5aa197||_0x5aa197[_0x2e4a69(0x1cc)]===0x0?_0x337907:_0x337907[_0x2e4a69(0x1eb)]===_0x2e4a69(0x1f8)&&(!((_0x19e0eb=_0x337907['children'])===null||_0x19e0eb===void 0x0)&&_0x19e0eb[_0x2e4a69(0x1cc)])?u(u({},_0x337907),{'children':_0x337907[_0x2e4a69(0x1c1)]['map'](function(_0x5cf762){var _0x428ec8=_0x2e4a69;return typeof _0x5cf762['attrs']['id']==_0x428ec8(0x207)&&_0x5aa197&&_0x5aa197[_0x428ec8(0x212)](_0x5cf762[_0x428ec8(0x19a)]['id'])?u(u({},_0x5cf762),{'attrs':u(u({},_0x5cf762[_0x428ec8(0x19a)]),{'id':_0x5cf762['attrs']['id']+_0xc146[_0x428ec8(0x1c6)]})}):_0x5cf762;})}):_0x337907;}function G(){var _0x157bfb=_0x110d25;return Math[_0x157bfb(0x177)]()[_0x157bfb(0x1b4)](0x24)[_0x157bfb(0x206)](0x2,0x8);}j['displayName']=_0x110d25(0x1a5);var B={'tag':_0x110d25(0x1b7),'attrs':{'xmlns':_0x110d25(0x167),'fill':_0x110d25(0x223),'viewBox':_0x110d25(0x1b3),'width':_0x110d25(0x17b),'height':_0x110d25(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x110d25(0x227),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x110d25(0x219),'attrs':{'fill':_0x110d25(0x227),'d':_0x110d25(0x1d4),'fillRule':_0x110d25(0x20a),'clipRule':_0x110d25(0x20a)}}]},P=f['forwardRef'](function(_0x4f70fe,_0x22191e){var _0x9fc4a9=_0x110d25;return f[_0x9fc4a9(0x1fc)](j,Object['assign']({},_0x4f70fe,{'id':'live-share-icon','ref':_0x22191e,'icon':B}));});P['displayName']=_0x110d25(0x1bb);var Y=Object[_0x110d25(0x1e9)],R=(_0x31529d,_0xe68703,_0x109459,_0x426054)=>{for(var _0x5125dd=_0x426054>0x1?void 0x0:_0x426054?Y(_0xe68703,_0x109459):_0xe68703,_0x3469f4=_0x31529d['length']-0x1,_0x44a485;_0x3469f4>=0x0;_0x3469f4--)(_0x44a485=_0x31529d[_0x3469f4])&&(_0x5125dd=_0x44a485(_0x5125dd)||_0x5125dd);return _0x5125dd;},S=(_0x630224,_0x5eebbf)=>(_0x2768c0,_0x136ccc)=>_0x5eebbf(_0x2768c0,_0x136ccc,_0x630224);exports[_0x110d25(0x221)]=class extends o['RxDisposable']{constructor(_0x328d8d,_0x4cfab6,_0x1c89f0){var _0x426765=_0x110d25;super(),v(this,_0x426765(0x1da),new Map()),(this[_0x426765(0x1d1)]=_0x328d8d,this['_injector']=_0x4cfab6,this[_0x426765(0x190)]=_0x1c89f0,this[_0x426765(0x244)]());}async['getLiveShareCoordinator'](_0xbb5406){var _0x107338=_0x110d25;return this[_0x107338(0x1da)][_0x107338(0x1d2)](_0xbb5406)||await this['_startLiveShareCoordinator'](_0xbb5406),this['_entities'][_0x107338(0x17f)](_0xbb5406);}['_init'](){var _0x43fc6c=_0x110d25;this[_0x43fc6c(0x1d1)][_0x43fc6c(0x166)](o[_0x43fc6c(0x215)][_0x43fc6c(0x211)])['pipe'](b[_0x43fc6c(0x238)](this[_0x43fc6c(0x1e5)]))[_0x43fc6c(0x179)](async _0x1694f9=>{var _0x2977e8=_0x43fc6c;const _0x19e50a=_0x1694f9[_0x2977e8(0x226)]();this[_0x2977e8(0x1da)][_0x2977e8(0x1d2)](_0x19e50a)||this[_0x2977e8(0x233)](_0x19e50a);}),this[_0x43fc6c(0x1d1)][_0x43fc6c(0x20f)](o['UniverInstanceType'][_0x43fc6c(0x211)])['pipe'](b[_0x43fc6c(0x238)](this[_0x43fc6c(0x1e5)]))[_0x43fc6c(0x179)](_0x3bf01a=>{var _0x26c78e=_0x43fc6c;const _0x5e5fdc=_0x3bf01a[_0x26c78e(0x226)](),_0x58946f=this[_0x26c78e(0x1da)]['get'](_0x5e5fdc);_0x58946f==null||_0x58946f[_0x26c78e(0x202)]();});}async[_0x110d25(0x233)](_0x4e39fc){var _0x49c828=_0x110d25;const _0x3899ec=await this[_0x49c828(0x190)][_0x49c828(0x197)](_0x4e39fc),_0x41fa9b=this['_injector']['createInstance'](exports[_0x49c828(0x1cf)],_0x4e39fc,_0x3899ec);return _0x41fa9b['init'](),this[_0x49c828(0x1da)][_0x49c828(0x229)](_0x4e39fc,_0x41fa9b),_0x41fa9b;}},exports[_0x110d25(0x221)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x110d25(0x198)])),S(0x2,o[_0x110d25(0x209)](m[_0x110d25(0x225)]))],exports[_0x110d25(0x221)]);var h=(_0x2b214b=>(_0x2b214b[_0x110d25(0x1b1)]='offline',_0x2b214b[_0x110d25(0x16d)]='idle',_0x2b214b[_0x110d25(0x175)]=_0x110d25(0x1db),_0x2b214b[_0x110d25(0x1f3)]=_0x110d25(0x178),_0x2b214b[_0x110d25(0x21c)]=_0x110d25(0x22a),_0x2b214b))(h||{});const Z=_0x110d25(0x1c2),J=0xc8;exports[_0x110d25(0x1cf)]=class extends o[_0x110d25(0x195)]{constructor(_0x10b98f,_0x2ac6f8,_0x3a5517,_0x20e2b1,_0x2b1eaf){var _0x3a3b9b=_0x110d25;super(),v(this,_0x3a3b9b(0x16b),new D[(_0x3a3b9b(0x22c))](_0x3a3b9b(0x1fa))),v(this,'status$',this['_status$'][_0x3a3b9b(0x164)]()),v(this,_0x3a3b9b(0x244),!0x1),v(this,_0x3a3b9b(0x1f0),null),v(this,_0x3a3b9b(0x19d),null),(this[_0x3a3b9b(0x173)]=_0x10b98f,this['_collabSession']=_0x2ac6f8,this[_0x3a3b9b(0x16a)]=_0x3a5517,this[_0x3a3b9b(0x1b6)]=_0x20e2b1,this[_0x3a3b9b(0x236)]=_0x2b1eaf);}get['_status'](){var _0xa63045=_0x110d25;return this[_0xa63045(0x16b)]['getValue']();}['dispose'](){var _0x342754=_0x110d25,_0x4104f7;(_0x4104f7=this[_0x342754(0x1f0)])==null||_0x4104f7[_0x342754(0x202)](),this['_status$'][_0x342754(0x1f6)](_0x342754(0x1fa)),this[_0x342754(0x16b)][_0x342754(0x1d3)]();}[_0x110d25(0x165)](){var _0x51aa58=_0x110d25;this['_init']||(this[_0x51aa58(0x244)]=!0x0,this[_0x51aa58(0x1d9)][_0x51aa58(0x19c)][_0x51aa58(0x1d7)](b[_0x51aa58(0x238)](this[_0x51aa58(0x1e5)]))[_0x51aa58(0x179)](_0x45d2f7=>{var _0x411b67=_0x51aa58;switch(_0x45d2f7){case m[_0x411b67(0x1b5)]['OFFLINE']:this[_0x411b67(0x243)]();break;case m[_0x411b67(0x1b5)]['ONLINE']:this[_0x411b67(0x169)]();break;}}),this[_0x51aa58(0x1d9)]['event$']['pipe'](b[_0x51aa58(0x238)](this[_0x51aa58(0x1e5)]))['subscribe'](_0x4b6d4e=>{var _0x454cdd=_0x51aa58;const {eventID:_0x2f79aa}=_0x4b6d4e;switch(_0x2f79aa){case _[_0x454cdd(0x1ff)]['LIVESHARE_NEW_HOST']:this[_0x454cdd(0x191)](_0x4b6d4e);break;case _['CollaborationEvent'][_0x454cdd(0x21b)]:this['_handleOperation'](_0x4b6d4e);break;case _['CollaborationEvent'][_0x454cdd(0x1f4)]:this[_0x454cdd(0x224)]();break;case _[_0x454cdd(0x1ff)][_0x454cdd(0x187)]:this[_0x454cdd(0x1ef)](_0x4b6d4e);break;}}));}[_0x110d25(0x1f2)](){var _0x2512f6=_0x110d25;this['_collabSession'][_0x2512f6(0x213)]({'eventID':_[_0x2512f6(0x1ff)][_0x2512f6(0x234)],'data':{'unitID':this['_unitID'],'userID':this[_0x2512f6(0x1d9)]['getMemberID']()}},this[_0x2512f6(0x173)]);}[_0x110d25(0x1d5)](){var _0x2a6f2c=_0x110d25;this[_0x2a6f2c(0x1ec)]===_0x2a6f2c(0x22a)&&(this['_status$'][_0x2a6f2c(0x1f6)]('idle'),this[_0x2a6f2c(0x1d9)][_0x2a6f2c(0x213)]({'eventID':_[_0x2a6f2c(0x1ff)][_0x2a6f2c(0x1f4)],'data':{'unitID':this[_0x2a6f2c(0x173)]}},this['_unitID']));}[_0x110d25(0x15f)](){var _0xf4a632=_0x110d25;this[_0xf4a632(0x1ec)]===_0xf4a632(0x178)&&(this['_status$'][_0xf4a632(0x1f6)]('following'),this[_0xf4a632(0x20c)]());}[_0x110d25(0x188)](){var _0x40fe6c=_0x110d25;this[_0x40fe6c(0x1ec)]===_0x40fe6c(0x1db)&&this[_0x40fe6c(0x1c7)]();}[_0x110d25(0x191)](_0x2dc1c6){var _0x315984=_0x110d25;const {presenter:_0x3ee0fd}=_0x2dc1c6[_0x315984(0x1a6)],_0x519f9d=this['_collabSession']['getMemberID']();this[_0x315984(0x19d)]=_0x3ee0fd,_0x3ee0fd===_0x519f9d?(this[_0x315984(0x1c7)](),this['_startPresenting']()):this[_0x315984(0x1ec)]!==_0x315984(0x178)&&(this[_0x315984(0x200)](),this[_0x315984(0x20c)]());}[_0x110d25(0x220)](){var _0x44f8ba=_0x110d25;const _0x4b16b7={'eventID':_[_0x44f8ba(0x1ff)][_0x44f8ba(0x174)]};this[_0x44f8ba(0x1d9)][_0x44f8ba(0x213)](_0x4b16b7,this[_0x44f8ba(0x173)]);}[_0x110d25(0x224)](){var _0x2dfe2b=_0x110d25;this[_0x2dfe2b(0x19d)]=null,this[_0x2dfe2b(0x1ec)]!==_0x2dfe2b(0x22a)&&this[_0x2dfe2b(0x18f)]();}[_0x110d25(0x1ef)](_0x55ef46){var _0x4ac860=_0x110d25;if(this['_status']===_0x4ac860(0x1db)&&this[_0x4ac860(0x19d)]===_0x55ef46[_0x4ac860(0x1a6)][_0x4ac860(0x1aa)]){const _0x56f873=_['parseProtocolChangeset'](_0x55ef46[_0x4ac860(0x1a6)])[_0x4ac860(0x189)][_0x4ac860(0x1a3)]()['find'](_0x4a5677=>_0x4a5677['id']===C[_0x4ac860(0x23a)]['id']);if(_0x56f873){const _0x53f67b=_0x56f873[_0x4ac860(0x194)][_0x4ac860(0x161)],_0x224fe8=_0x56f873[_0x4ac860(0x194)][_0x4ac860(0x1be)]['id'];setTimeout(()=>{var _0x1ceb81=_0x4ac860;this['_commandService']['executeCommand'](C[_0x1ceb81(0x1a0)]['id'],{'unitId':_0x53f67b,'subUnitId':_0x224fe8},{'fromCollab':!0x0});});}}}[_0x110d25(0x1a7)](){var _0xeae489=_0x110d25;this['_status$'][_0xeae489(0x1f6)](_0xeae489(0x22a));const _0x3fd424=new Map(),_0x366553=this['_commandDisposable']=new o[(_0xeae489(0x1c5))]();_0x366553[_0xeae489(0x1c3)](o[_0xeae489(0x21f)](()=>{var _0x512d29=_0xeae489;_0x3fd424[_0x512d29(0x18e)](_0x14c59e=>_0x14c59e['complete']()),_0x3fd424['clear']();})),_0x366553[_0xeae489(0x1c3)](this['_commandService'][_0xeae489(0x239)](_0x3e1e18=>{var _0x44f10e=_0xeae489,_0xebd2df;if(_0x3e1e18['type']!==o['CommandType'][_0x44f10e(0x18d)]||!this[_0x44f10e(0x1b6)]['shouldShareOperation'](_0x3e1e18['id']))return;const {id:_0x1d01c4}=_0x3e1e18;let _0x4ac7e1;_0x3fd424[_0x44f10e(0x1d2)](_0x1d01c4)?_0x4ac7e1=_0x3fd424[_0x44f10e(0x17f)](_0x1d01c4):(_0x4ac7e1=new D['Subject'](),_0x3fd424['set'](_0x1d01c4,_0x4ac7e1),_0x4ac7e1[_0x44f10e(0x1d7)](b['throttleTime']((_0xebd2df=this[_0x44f10e(0x16a)]['getConfig'](Z))!=null?_0xebd2df:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44f10e(0x179)](_0x1abbaf=>{var _0x3f2aee=_0x44f10e;this['_collabSession'][_0x3f2aee(0x213)]({'eventID':_['CollaborationEvent'][_0x3f2aee(0x21b)],'data':{'unitID':this['_unitID'],'operations':{[_0x1abbaf['id']]:{'id':_0x1abbaf['id'],'params':JSON[_0x3f2aee(0x172)](_0x1abbaf['params'])}}}},this['_unitID']);})),_0x4ac7e1[_0x44f10e(0x1f6)](_0x3e1e18);})),this[_0xeae489(0x1b6)][_0xeae489(0x216)](this['_unitID'])[_0xeae489(0x18e)](_0x199558=>this[_0xeae489(0x1d9)][_0xeae489(0x213)]({'eventID':_[_0xeae489(0x1ff)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xeae489(0x173)],'operations':{[_0x199558['id']]:{'id':_0x199558['id'],'params':JSON['stringify'](_0x199558[_0xeae489(0x194)])}}}},this['_unitID']));}[_0x110d25(0x200)](){var _0x5f0489=_0x110d25,_0x3c0986;this['_status$'][_0x5f0489(0x1f6)](_0x5f0489(0x1fa)),(_0x3c0986=this[_0x5f0489(0x1f0)])==null||_0x3c0986['dispose'](),this['_commandDisposable']=null;}[_0x110d25(0x20c)](){var _0x1a8115=_0x110d25,_0x55a720;(_0x55a720=this['_commandDisposable'])==null||_0x55a720['dispose'](),this[_0x1a8115(0x16b)][_0x1a8115(0x1f6)](_0x1a8115(0x1db));}[_0x110d25(0x18f)](){var _0x306c98=_0x110d25,_0x35a2db;this[_0x306c98(0x16b)][_0x306c98(0x1f6)](_0x306c98(0x1fa)),(_0x35a2db=this['_commandDisposable'])==null||_0x35a2db[_0x306c98(0x202)](),this[_0x306c98(0x1f0)]=null;}[_0x110d25(0x1c7)](){var _0x12de00=_0x110d25,_0x42b77b;this[_0x12de00(0x16b)][_0x12de00(0x1f6)](_0x12de00(0x178)),(_0x42b77b=this[_0x12de00(0x1f0)])==null||_0x42b77b[_0x12de00(0x202)]();}['_handleOperation'](_0x30eb0f){var _0x2c974a=_0x110d25;if(['presenting',_0x2c974a(0x178),'offline'][_0x2c974a(0x212)](this[_0x2c974a(0x1ec)])||!_0x30eb0f[_0x2c974a(0x1a6)][_0x2c974a(0x217)]||_0x30eb0f['data']['presenter']===this[_0x2c974a(0x1d9)][_0x2c974a(0x1ed)]())return;this[_0x2c974a(0x1ec)]===_0x2c974a(0x1fa)&&this[_0x2c974a(0x20c)]();const _0x4f25af=_0x30eb0f[_0x2c974a(0x1a6)][_0x2c974a(0x21d)];Object[_0x2c974a(0x20d)](_0x4f25af)[_0x2c974a(0x18e)](_0x5d33a9=>{var _0xa00242=_0x2c974a;this[_0xa00242(0x236)][_0xa00242(0x240)](_0x5d33a9['id'],_0x5d33a9[_0xa00242(0x194)]?JSON['parse'](_0x5d33a9[_0xa00242(0x194)]):null,{'fromCollab':!0x0});});}[_0x110d25(0x243)](){var _0x44e6c0=_0x110d25,_0xf04063;this[_0x44e6c0(0x16b)][_0x44e6c0(0x1f6)](_0x44e6c0(0x1ea)),(_0xf04063=this[_0x44e6c0(0x1f0)])==null||_0xf04063['dispose']();}[_0x110d25(0x169)](){var _0x24f31e=_0x110d25;this[_0x24f31e(0x16b)][_0x24f31e(0x1f6)](_0x24f31e(0x1fa)),this['_fetchOperations']();}},exports[_0x110d25(0x1cf)]=R([S(0x2,o[_0x110d25(0x17c)]),S(0x3,o[_0x110d25(0x209)](O)),S(0x4,o[_0x110d25(0x17a)])],exports[_0x110d25(0x1cf)]);function A(){var _0x394867=_0x110d25;const _0x2414d6=p['useDependency'](exports[_0x394867(0x221)]),_0x395c15=p[_0x394867(0x230)](o[_0x394867(0x1a9)]),_0x5ccee0=p[_0x394867(0x1b2)](()=>_0x395c15[_0x394867(0x218)](o[_0x394867(0x215)][_0x394867(0x211)]),void 0x0,!0x1,[]),[_0xa0915d,_0x509719]=f[_0x394867(0x1a4)](null),[_0x20a991,_0x272dc1]=f[_0x394867(0x1a4)](h[_0x394867(0x16d)]),_0x23802c=f['useRef'](null);return f[_0x394867(0x1e8)](()=>(_0x5ccee0&&_0x2414d6[_0x394867(0x1c0)](_0x5ccee0['getUnitId']())[_0x394867(0x23b)](_0x3b9edf=>{var _0xcde246=_0x394867;_0x509719(_0x3b9edf),_0x23802c[_0xcde246(0x1e2)]=_0x3b9edf[_0xcde246(0x185)][_0xcde246(0x179)](_0x341866=>{_0x272dc1(_0x341866);});}),()=>{var _0x484782=_0x394867,_0xcd5bed;(_0xcd5bed=_0x23802c[_0x484782(0x1e2)])==null||_0xcd5bed['unsubscribe'](),_0x23802c['current']=null;}),[_0x5ccee0,_0x2414d6]),_0xa0915d?l[_0x394867(0x182)](g[_0x394867(0x1b0)],{'align':_0x394867(0x1f7),'disabled':_0x20a991===h[_0x394867(0x1b1)],'className':_0x394867(0x1ba),'overlay':l[_0x394867(0x182)](K,{'status':_0x20a991,'coordinator':_0xa0915d}),'children':l[_0x394867(0x182)]('button',{'className':g['clsx'](_0x394867(0x171),{'univer-cursor-not-allowed':_0x20a991===h[_0x394867(0x1b1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20a991!==h[_0x394867(0x1b1)]}),'type':_0x394867(0x163),'children':l['jsx'](P,{'className':_0x394867(0x22d)})})}):null;}function K(_0x4a0b37){var _0x5ba426=_0x110d25;const {status:_0x54648e,coordinator:_0x1efcb5}=_0x4a0b37;switch(_0x54648e){case h[_0x5ba426(0x16d)]:return l[_0x5ba426(0x182)](z,{'coordinator':_0x1efcb5});case h[_0x5ba426(0x175)]:return l[_0x5ba426(0x182)](Q,{'coordinator':_0x1efcb5});case h[_0x5ba426(0x1f3)]:return l[_0x5ba426(0x182)](X,{'coordinator':_0x1efcb5});case h[_0x5ba426(0x1b1)]:return l[_0x5ba426(0x182)](te,{});case h['PRESENTING']:return l[_0x5ba426(0x182)](ee,{'coordinator':_0x1efcb5});default:return null;}}function z(_0x21d0c0){var _0x1eb1a8=_0x110d25;const {coordinator:_0x2e61cc}=_0x21d0c0;return l[_0x1eb1a8(0x1e4)](l[_0x1eb1a8(0x204)],{'children':[l['jsx'](_0x1eb1a8(0x196),{'className':_0x1eb1a8(0x1c4),'children':_0x1eb1a8(0x237)}),l['jsx'](g['Button'],{'onClick':()=>_0x2e61cc[_0x1eb1a8(0x1f2)](),'children':_0x1eb1a8(0x183)})]});}function Q(_0x40e2ae){var _0x3d1fa0=_0x110d25;const {coordinator:_0x17c3e3}=_0x40e2ae;return l[_0x3d1fa0(0x1e4)](l['Fragment'],{'children':[l['jsx'](_0x3d1fa0(0x196),{'className':_0x3d1fa0(0x1c4),'children':_0x3d1fa0(0x192)}),l['jsx'](g[_0x3d1fa0(0x1dc)],{'onClick':()=>_0x17c3e3['stopFollowing'](),'children':_0x3d1fa0(0x1df)})]});}function X(_0x37d030){var _0x351249=_0x110d25;const {coordinator:_0x16fc7b}=_0x37d030;return l[_0x351249(0x1e4)](l['Fragment'],{'children':[l[_0x351249(0x182)](_0x351249(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x351249(0x22e)}),l[_0x351249(0x182)](g[_0x351249(0x1dc)],{'variant':_0x351249(0x1fd),'onClick':()=>_0x16fc7b[_0x351249(0x15f)](),'children':_0x351249(0x186)})]});}function ee(_0x3881e5){var _0x10f719=_0x110d25;const {coordinator:_0x3740ca}=_0x3881e5;return l[_0x10f719(0x1e4)](l[_0x10f719(0x204)],{'children':[l['jsx'](_0x10f719(0x196),{'className':_0x10f719(0x1c4),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x10f719(0x182)](g[_0x10f719(0x1dc)],{'variant':_0x10f719(0x222),'onClick':()=>_0x3740ca[_0x10f719(0x1d5)](),'children':_0x10f719(0x205)})]});}function te(){var _0x28a849=_0x110d25;return l[_0x28a849(0x182)](l[_0x28a849(0x204)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x110d25(0x1e9)],ne=(_0x394f5a,_0x3c65ec,_0x1d4b45,_0x254407)=>{var _0x4db66b=_0x110d25;for(var _0x65dc49=_0x254407>0x1?void 0x0:_0x254407?ie(_0x3c65ec,_0x1d4b45):_0x3c65ec,_0x571dc5=_0x394f5a[_0x4db66b(0x1cc)]-0x1,_0x16dc2e;_0x571dc5>=0x0;_0x571dc5--)(_0x16dc2e=_0x394f5a[_0x571dc5])&&(_0x65dc49=_0x16dc2e(_0x65dc49)||_0x65dc49);return _0x65dc49;},L=(_0xfc2478,_0x3125)=>(_0x27e95d,_0x485841)=>_0x3125(_0x27e95d,_0x485841,_0xfc2478);exports[_0x110d25(0x23e)]=class extends o[_0x110d25(0x1ad)]{constructor(_0x19f2e9,_0xf8e0ec){var _0x575e2a=_0x110d25;super(),this['_injector']=_0x19f2e9,this[_0x575e2a(0x180)]=_0xf8e0ec,this[_0x575e2a(0x1e3)]();}[_0x110d25(0x1e3)](){var _0x1336c3=_0x110d25;this['disposeWithMe'](this[_0x1336c3(0x180)]['registerComponent'](p[_0x1336c3(0x1e0)][_0x1336c3(0x1bd)],()=>p[_0x1336c3(0x210)](A,this[_0x1336c3(0x1d6)])));}},exports[_0x110d25(0x23e)]=ne([L(0x0,o[_0x110d25(0x209)](o[_0x110d25(0x198)])),L(0x1,p[_0x110d25(0x1f5)])],exports[_0x110d25(0x23e)]);var re=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],oe=(_0x5422c7,_0x4fcfea,_0x1f38a6)=>_0x4fcfea in _0x5422c7?re(_0x5422c7,_0x4fcfea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f38a6}):_0x5422c7[_0x4fcfea]=_0x1f38a6,ae=(_0x32e818,_0x14e720,_0x5064a0,_0x4dce63)=>{var _0x54087b=_0x110d25;for(var _0x2e1e27=_0x4dce63>0x1?void 0x0:_0x4dce63?se(_0x14e720,_0x5064a0):_0x14e720,_0x1e0851=_0x32e818[_0x54087b(0x1cc)]-0x1,_0x3c36a2;_0x1e0851>=0x0;_0x1e0851--)(_0x3c36a2=_0x32e818[_0x1e0851])&&(_0x2e1e27=_0x3c36a2(_0x2e1e27)||_0x2e1e27);return _0x2e1e27;},N=(_0x346e31,_0x4c9799)=>(_0xa829a3,_0x1f8b9f)=>_0x4c9799(_0xa829a3,_0x1f8b9f,_0x346e31),T=(_0x38247f,_0x33ded9,_0x2e9625)=>oe(_0x38247f,typeof _0x33ded9!=_0x110d25(0x1bf)?_0x33ded9+'':_0x33ded9,_0x2e9625);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x110d25(0x1e1)]=class extends o[_0x110d25(0x199)]{constructor(_0x36b280=x,_0x3c5790,_0x2a570a){var _0x29579a=_0x110d25;super(),this['_config']=_0x36b280,this[_0x29579a(0x1d6)]=_0x3c5790,this[_0x29579a(0x16a)]=_0x2a570a;const {..._0x2e7341}=o[_0x29579a(0x1ac)]({},x,this['_config']);this[_0x29579a(0x16a)][_0x29579a(0x20e)]($,_0x2e7341);}[_0x110d25(0x228)](){var _0x9c3bb0=_0x110d25;o[_0x9c3bb0(0x1ee)](this[_0x9c3bb0(0x1d6)],o[_0x9c3bb0(0x241)]([[O],[exports[_0x9c3bb0(0x221)]],[E],[exports[_0x9c3bb0(0x23e)]]],this[_0x9c3bb0(0x21a)][_0x9c3bb0(0x15e)])),o[_0x9c3bb0(0x1cb)](this['_injector'],[[E]]);}[_0x110d25(0x1a1)](){var _0x481d95=_0x110d25;o[_0x481d95(0x1cb)](this['_injector'],[[exports[_0x481d95(0x23e)]]]);}},T(exports[_0x110d25(0x1e1)],'type',o['UniverInstanceType'][_0x110d25(0x19f)]),T(exports[_0x110d25(0x1e1)],_0x110d25(0x23d),le),exports['UniverLiveSharePlugin']=ae([o[_0x110d25(0x1c8)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x110d25(0x209)](o['Injector'])),N(0x2,o[_0x110d25(0x17c)])],exports[_0x110d25(0x1e1)]),exports[_0x110d25(0x19e)]=A,exports[_0x110d25(0x1af)]=O,exports[_0x110d25(0x16c)]=h;
|
|
1
|
+
'use strict';var _0x38e2ae=_0x48f8;(function(_0x3bbf6e,_0x4301f8){var _0x1b7cf7=_0x48f8,_0x18bbfb=_0x3bbf6e();while(!![]){try{var _0x1149be=-parseInt(_0x1b7cf7(0x253))/0x1*(parseInt(_0x1b7cf7(0x1e9))/0x2)+parseInt(_0x1b7cf7(0x200))/0x3+-parseInt(_0x1b7cf7(0x27c))/0x4+-parseInt(_0x1b7cf7(0x265))/0x5*(-parseInt(_0x1b7cf7(0x23b))/0x6)+-parseInt(_0x1b7cf7(0x1e4))/0x7*(parseInt(_0x1b7cf7(0x2b5))/0x8)+parseInt(_0x1b7cf7(0x2a6))/0x9+parseInt(_0x1b7cf7(0x28c))/0xa;if(_0x1149be===_0x4301f8)break;else _0x18bbfb['push'](_0x18bbfb['shift']());}catch(_0xc42097){_0x18bbfb['push'](_0x18bbfb['shift']());}}}(_0x541f,0x27b9b));var U=Object[_0x38e2ae(0x1e0)],F=(_0x21955b,_0x64e65c,_0x2f8deb)=>_0x64e65c in _0x21955b?U(_0x21955b,_0x64e65c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8deb}):_0x21955b[_0x64e65c]=_0x2f8deb,v=(_0x2ed5a2,_0x517e8a,_0x59e626)=>F(_0x2ed5a2,typeof _0x517e8a!=_0x38e2ae(0x1ee)?_0x517e8a+'':_0x517e8a,_0x59e626);Object['defineProperty'](exports,Symbol[_0x38e2ae(0x27e)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x38e2ae(0x284),x={};class O extends o['Disposable']{constructor(){var _0x41b57e=_0x38e2ae;super(...arguments),v(this,_0x41b57e(0x1ef),new Set()),v(this,_0x41b57e(0x244),new Set());}['registerSharedOperation'](_0x212ea6){var _0x8fb369=_0x38e2ae;return this[_0x8fb369(0x1ef)][_0x8fb369(0x23a)](_0x212ea6),o['toDisposable'](()=>this['_sharedOperations'][_0x8fb369(0x1f5)](_0x212ea6));}[_0x38e2ae(0x2b8)](_0x53b651){var _0x585148=_0x38e2ae;return this[_0x585148(0x244)]['add'](_0x53b651),o[_0x585148(0x1ed)](()=>this['_reporters'][_0x585148(0x1f5)](_0x53b651));}[_0x38e2ae(0x26e)](_0x2a7cdd){var _0x4ec0f0=_0x38e2ae;return this[_0x4ec0f0(0x1ef)][_0x4ec0f0(0x25d)](_0x2a7cdd);}[_0x38e2ae(0x2c0)](_0xfa32b7){var _0x53bb49=_0x38e2ae;return Array[_0x53bb49(0x1e1)](this['_reporters'])[_0x53bb49(0x214)](_0xed69f4=>_0xed69f4(_0xfa32b7));}}var H=Object[_0x38e2ae(0x247)],V=(_0xd0a0c0,_0x6db480,_0x5ef7d4,_0x2bbffe)=>{var _0xabc256=_0x38e2ae;for(var _0x455dd8=_0x2bbffe>0x1?void 0x0:_0x2bbffe?H(_0x6db480,_0x5ef7d4):_0x6db480,_0x3ad988=_0xd0a0c0[_0xabc256(0x21e)]-0x1,_0xbd0e0e;_0x3ad988>=0x0;_0x3ad988--)(_0xbd0e0e=_0xd0a0c0[_0x3ad988])&&(_0x455dd8=_0xbd0e0e(_0x455dd8)||_0x455dd8);return _0x455dd8;},k=(_0x64a189,_0x5e9f3d)=>(_0x150fc8,_0x3efd10)=>_0x5e9f3d(_0x150fc8,_0x3efd10,_0x64a189);let E=class extends o[_0x38e2ae(0x1eb)]{constructor(_0x3c608c){var _0x96c136=_0x38e2ae;super(),this[_0x96c136(0x263)]=_0x3c608c,this[_0x96c136(0x2b3)]();}['_init'](){var _0x3c5ac6=_0x38e2ae;[w[_0x3c5ac6(0x219)]['id'],w[_0x3c5ac6(0x20f)]['id'],C[_0x3c5ac6(0x29e)]['id']][_0x3c5ac6(0x2a0)](_0xbe8735=>{var _0x2429ce=_0x3c5ac6;this[_0x2429ce(0x215)](this['_liveShareService'][_0x2429ce(0x1f4)](_0xbe8735));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x295a57=_0x38e2ae;return u=Object[_0x295a57(0x29c)]||function(_0x3d83a8){var _0x18306c=_0x295a57;for(var _0x62522,_0x5748c3=0x1,_0x39951a=arguments[_0x18306c(0x21e)];_0x5748c3<_0x39951a;_0x5748c3++){_0x62522=arguments[_0x5748c3];for(var _0x354362 in _0x62522)Object[_0x18306c(0x202)][_0x18306c(0x298)][_0x18306c(0x280)](_0x62522,_0x354362)&&(_0x3d83a8[_0x354362]=_0x62522[_0x354362]);}return _0x3d83a8;},u[_0x295a57(0x2a3)](this,arguments);},M=function(_0x4314d0,_0x50d146){var _0x837eb8=_0x38e2ae,_0x26faad={};for(var _0x1d7a71 in _0x4314d0)Object[_0x837eb8(0x202)][_0x837eb8(0x298)]['call'](_0x4314d0,_0x1d7a71)&&_0x50d146['indexOf'](_0x1d7a71)<0x0&&(_0x26faad[_0x1d7a71]=_0x4314d0[_0x1d7a71]);if(_0x4314d0!=null&&typeof Object[_0x837eb8(0x230)]==_0x837eb8(0x283)){for(var _0x3b0b07=0x0,_0x1d7a71=Object[_0x837eb8(0x230)](_0x4314d0);_0x3b0b07<_0x1d7a71[_0x837eb8(0x21e)];_0x3b0b07++)_0x50d146[_0x837eb8(0x255)](_0x1d7a71[_0x3b0b07])<0x0&&Object['prototype'][_0x837eb8(0x23f)][_0x837eb8(0x280)](_0x4314d0,_0x1d7a71[_0x3b0b07])&&(_0x26faad[_0x1d7a71[_0x3b0b07]]=_0x4314d0[_0x1d7a71[_0x3b0b07]]);}return _0x26faad;},j=f[_0x38e2ae(0x235)](function(_0x3dcd79,_0x4e73de){var _0xbccfec=_0x38e2ae,_0x27e056=_0x3dcd79['icon'],_0x5eed1e=_0x3dcd79['id'],_0x5864c3=_0x3dcd79[_0xbccfec(0x2ba)],_0x21792a=_0x3dcd79['extend'],_0xa9f0ca=M(_0x3dcd79,['icon','id','className',_0xbccfec(0x26b)]),_0x5f4394=_0xbccfec(0x295)[_0xbccfec(0x260)](_0x5eed1e,'\x20')[_0xbccfec(0x260)](_0x5864c3||'')[_0xbccfec(0x276)](),_0x91a117=f[_0xbccfec(0x27f)]('_'['concat'](G()));return y(_0x27e056,''['concat'](_0x5eed1e),{'defIds':_0x27e056[_0xbccfec(0x28a)],'idSuffix':_0x91a117[_0xbccfec(0x259)]},u({'ref':_0x4e73de,'className':_0x5f4394},_0xa9f0ca),_0x21792a);});function y(_0x53dbb4,_0x5a856c,_0x19b4fb,_0x3c2e90,_0x3d16f3){var _0x7de0b3=_0x38e2ae;return f[_0x7de0b3(0x229)](_0x53dbb4[_0x7de0b3(0x23d)],u(u({'key':_0x5a856c},q(_0x53dbb4,_0x19b4fb,_0x3d16f3)),_0x3c2e90),(W(_0x53dbb4,_0x19b4fb)[_0x7de0b3(0x218)]||[])[_0x7de0b3(0x214)](function(_0x5c83b3,_0x4f31f3){var _0xbe45f6=_0x7de0b3;return y(_0x5c83b3,''['concat'](_0x5a856c,'-')['concat'](_0x53dbb4[_0xbe45f6(0x23d)],'-')['concat'](_0x4f31f3),_0x19b4fb,void 0x0,_0x3d16f3);}));}function q(_0x1551af,_0x42506f,_0x193fee){var _0x1f2ee1=_0x38e2ae,_0x4265a2=u({},_0x1551af[_0x1f2ee1(0x1ea)]);_0x193fee!=null&&_0x193fee[_0x1f2ee1(0x24c)]&&_0x4265a2[_0x1f2ee1(0x1ec)]===_0x1f2ee1(0x24c)&&(_0x4265a2['fill']=_0x193fee['colorChannel1']),_0x1551af['tag']===_0x1f2ee1(0x26c)&&_0x4265a2['id']&&(_0x4265a2['id']=_0x4265a2['id']+_0x42506f[_0x1f2ee1(0x1f9)]),Object[_0x1f2ee1(0x275)](_0x4265a2)[_0x1f2ee1(0x2a0)](function(_0x274953){var _0x114ffc=_0x1f2ee1,_0x24af19=_0x274953[0x0],_0x577882=_0x274953[0x1];_0x24af19==='mask'&&typeof _0x577882==_0x114ffc(0x1f2)&&(_0x4265a2[_0x24af19]=_0x577882[_0x114ffc(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x42506f[_0x114ffc(0x1f9)],')')));});var _0x59be45=_0x42506f[_0x1f2ee1(0x28a)];return!_0x59be45||_0x59be45[_0x1f2ee1(0x21e)]===0x0||(_0x1551af[_0x1f2ee1(0x23d)]===_0x1f2ee1(0x20b)&&_0x4265a2[_0x1f2ee1(0x2c2)]&&(_0x4265a2['xlink:href']=_0x4265a2[_0x1f2ee1(0x2c2)]+_0x42506f[_0x1f2ee1(0x1f9)]),Object[_0x1f2ee1(0x275)](_0x4265a2)['forEach'](function(_0x14554b){var _0x3cf784=_0x1f2ee1,_0x29e84b=_0x14554b[0x0],_0x1cd9cc=_0x14554b[0x1];typeof _0x1cd9cc=='string'&&(_0x4265a2[_0x29e84b]=_0x1cd9cc[_0x3cf784(0x22c)](/url\(#(.*)\)/,'url(#$1'[_0x3cf784(0x260)](_0x42506f['idSuffix'],')')));})),_0x4265a2;}function W(_0x55acb2,_0x4d30fc){var _0x2fd551=_0x38e2ae,_0x223ef1,_0x41d020=_0x4d30fc[_0x2fd551(0x28a)];return!_0x41d020||_0x41d020[_0x2fd551(0x21e)]===0x0?_0x55acb2:_0x55acb2[_0x2fd551(0x23d)]===_0x2fd551(0x29a)&&(!((_0x223ef1=_0x55acb2[_0x2fd551(0x218)])===null||_0x223ef1===void 0x0)&&_0x223ef1['length'])?u(u({},_0x55acb2),{'children':_0x55acb2['children'][_0x2fd551(0x214)](function(_0x4add29){var _0x310705=_0x2fd551;return typeof _0x4add29[_0x310705(0x1ea)]['id']==_0x310705(0x1f2)&&_0x41d020&&_0x41d020[_0x310705(0x231)](_0x4add29[_0x310705(0x1ea)]['id'])?u(u({},_0x4add29),{'attrs':u(u({},_0x4add29[_0x310705(0x1ea)]),{'id':_0x4add29[_0x310705(0x1ea)]['id']+_0x4d30fc[_0x310705(0x1f9)]})}):_0x4add29;})}):_0x55acb2;}function G(){var _0x5c0afd=_0x38e2ae;return Math[_0x5c0afd(0x21a)]()[_0x5c0afd(0x278)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x38e2ae(0x264);var B={'tag':_0x38e2ae(0x2ab),'attrs':{'xmlns':_0x38e2ae(0x257),'fill':_0x38e2ae(0x28d),'viewBox':_0x38e2ae(0x22a),'width':'1em','height':'1em'},'children':[{'tag':_0x38e2ae(0x2ad),'attrs':{'fill':'currentColor','d':_0x38e2ae(0x20e)}},{'tag':'path','attrs':{'fill':_0x38e2ae(0x2bf),'d':_0x38e2ae(0x216),'fillRule':_0x38e2ae(0x25c),'clipRule':_0x38e2ae(0x25c)}}]},P=f[_0x38e2ae(0x235)](function(_0x291403,_0x261fcb){var _0x59c1c1=_0x38e2ae;return f['createElement'](j,Object[_0x59c1c1(0x29c)]({},_0x291403,{'id':'live-share-icon','ref':_0x261fcb,'icon':B}));});function _0x541f(){var _0x45eddd=['includes','subscribe','onCommandExecuted','univer-size-4','forwardRef','stringify','end','not-following','LiveShare','add','4344pkpJyJ','tryStartPresenting','tag','HEADER_MENU','propertyIsEnumerable','_beIdle','_univerInstanceService','Injector','_stopFollowing','_reporters','getValue','_fetchOperations','getOwnPropertyDescriptor','complete','_handleNewChangeSets','send','Dropdown','colorChannel1','_handleTerminate','get','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','touchDependencies','_startPresenting','241951doiksp','Present\x20this\x20document','indexOf','getConfig','http://www.w3.org/2000/svg','getLiveShareCoordinator','current','throttleTime','UniverInstanceType','evenodd','has','ONLINE','Start','concat','unitId','override','_liveShareService','UniverIcon','2140ROogDu','IDLE','ICommandService','dispose','parseProtocolChangeset','Button','extend','mask','IUniverInstanceService','shouldShareOperation','stopFollowing','_entities','startFollowing','useEffect','UNIVER_LIVE_SHARE_PLUGIN','div','entries','trim','pipe','toString','data','Fragment','SessionStatus','1196228IInmue','DesktopLiveShareController','toStringTag','useRef','call','You\x27re\x20not\x20following\x20the\x20presenter','connectInjector','function','live-share.config','LiveShareStatus','_mountLiveShare','_startLiveShareCoordinator','asObservable','following','defIds','_collabSession','1753270rEYlUi','none','useState','FOLLOWING','LiveShareController','CommandType','UniverLiveSharePlugin','_commandService','executeCommand','univerjs-icon\x20univerjs-icon-','OPERATION','offline','hasOwnProperty','NOT_FOLLOWING','defs','text','assign','registerDependencies','SetWorksheetActiveOperation','_injector','forEach','InsertSheetMutation','getTypeOfUnitAdded$','apply','OFFLINE','You\x27are\x20offline.','2432286ZczxHG','mutations','takeUntil','_presenter','memberID','svg','type','path','mergeOverrideWithDependencies','useObservable','PRESENTING','LiveShareIcon','createInstance','_init','parse','1248BBKjOa','_handleOnline','LiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','className','jsxs','set','_startFollowing','getUnitId','currentColor','getInitialStates','NEW_CHANGESETS','xlink:href','displayName','Stop\x20presenting','UniverCollaborationClientPlugin','setConfig','requireSession','presenting','defineProperty','from','CollaborationEvent','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','10311ACUhTZ','merge','clsx','_status$','LIVESHARE_OPERATION','2TMUkJy','attrs','Disposable','fill','toDisposable','symbol','_sharedOperations','onStarting','next','string','params','registerSharedOperation','delete','_collabSessionService','_uiPartsService','sessionStatus$','idSuffix','find','LIVESHARE_REQUEST_HOST','getMemberID','registerComponent','stopPresenting','default','534174PiaUva','idle','prototype','_handleOffline','LIVESHARE_TERMINATE','_unitID','DisposableCollection','button','_commandDisposable','Inject','_configService','use','_handleNewHost','_handleOperation','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','SetScrollOperation','reverse','LiveShareService','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','disposeWithMe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','pluginName','children','SetZoomRatioOperation','random','dispose$','IConfigService','status$','length','unsubscribe','DependentOn','useDependency','_status','UNIVER_UNKNOWN','BehaviorSubject','values','BuiltInUIPart','init','jsx','createElement','0\x200\x2017\x2017','sheet','replace','RxDisposable','Subject','presenter','getOwnPropertySymbols'];_0x541f=function(){return _0x45eddd;};return _0x541f();}P[_0x38e2ae(0x2c3)]=_0x38e2ae(0x2b1);var Y=Object[_0x38e2ae(0x247)],R=(_0x10a538,_0x359703,_0x44dfeb,_0x40a385)=>{var _0x2510c9=_0x38e2ae;for(var _0x1f2b68=_0x40a385>0x1?void 0x0:_0x40a385?Y(_0x359703,_0x44dfeb):_0x359703,_0x526b74=_0x10a538[_0x2510c9(0x21e)]-0x1,_0x4a4e05;_0x526b74>=0x0;_0x526b74--)(_0x4a4e05=_0x10a538[_0x526b74])&&(_0x1f2b68=_0x4a4e05(_0x1f2b68)||_0x1f2b68);return _0x1f2b68;},S=(_0x4b7523,_0x11e54c)=>(_0xd3f183,_0x2943f0)=>_0x11e54c(_0xd3f183,_0x2943f0,_0x4b7523);exports[_0x38e2ae(0x290)]=class extends o['RxDisposable']{constructor(_0x1b9b73,_0x338d9b,_0x552d11){var _0x20df48=_0x38e2ae;super(),v(this,_0x20df48(0x270),new Map()),(this[_0x20df48(0x241)]=_0x1b9b73,this['_injector']=_0x338d9b,this[_0x20df48(0x1f6)]=_0x552d11,this[_0x20df48(0x2b3)]());}async[_0x38e2ae(0x258)](_0x206daa){var _0x22377c=_0x38e2ae;return this[_0x22377c(0x270)]['has'](_0x206daa)||await this['_startLiveShareCoordinator'](_0x206daa),this[_0x22377c(0x270)][_0x22377c(0x24e)](_0x206daa);}[_0x38e2ae(0x2b3)](){var _0x5f3993=_0x38e2ae;this[_0x5f3993(0x241)][_0x5f3993(0x2a2)](o[_0x5f3993(0x25b)][_0x5f3993(0x2b9)])[_0x5f3993(0x277)](b[_0x5f3993(0x2a8)](this[_0x5f3993(0x21b)]))[_0x5f3993(0x232)](async _0x39b36e=>{var _0x1ffaeb=_0x5f3993;const _0x5052fa=_0x39b36e[_0x1ffaeb(0x2be)]();this[_0x1ffaeb(0x270)][_0x1ffaeb(0x25d)](_0x5052fa)||this[_0x1ffaeb(0x287)](_0x5052fa);}),this[_0x5f3993(0x241)]['getTypeOfUnitDisposed$'](o[_0x5f3993(0x25b)]['UNIVER_SHEET'])[_0x5f3993(0x277)](b[_0x5f3993(0x2a8)](this[_0x5f3993(0x21b)]))['subscribe'](_0x52ee83=>{var _0x14bb7f=_0x5f3993;const _0x5a496d=_0x52ee83[_0x14bb7f(0x2be)](),_0x2c7d79=this[_0x14bb7f(0x270)][_0x14bb7f(0x24e)](_0x5a496d);_0x2c7d79==null||_0x2c7d79[_0x14bb7f(0x268)]();});}async[_0x38e2ae(0x287)](_0x204969){var _0x1a48c2=_0x38e2ae;const _0x192f5a=await this[_0x1a48c2(0x1f6)][_0x1a48c2(0x1de)](_0x204969),_0x337438=this['_injector'][_0x1a48c2(0x2b2)](exports[_0x1a48c2(0x2b7)],_0x204969,_0x192f5a);return _0x337438[_0x1a48c2(0x227)](),this[_0x1a48c2(0x270)][_0x1a48c2(0x2bc)](_0x204969,_0x337438),_0x337438;}},exports['LiveShareController']=R([S(0x0,o[_0x38e2ae(0x26d)]),S(0x1,o[_0x38e2ae(0x209)](o[_0x38e2ae(0x242)])),S(0x2,o[_0x38e2ae(0x209)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x47d173=>(_0x47d173[_0x38e2ae(0x2a4)]=_0x38e2ae(0x297),_0x47d173[_0x38e2ae(0x266)]=_0x38e2ae(0x201),_0x47d173[_0x38e2ae(0x28f)]=_0x38e2ae(0x289),_0x47d173[_0x38e2ae(0x299)]='not-following',_0x47d173[_0x38e2ae(0x2b0)]=_0x38e2ae(0x1df),_0x47d173))(h||{});const Z=_0x38e2ae(0x250),J=0xc8;exports[_0x38e2ae(0x2b7)]=class extends o[_0x38e2ae(0x22d)]{constructor(_0x21cab3,_0x39b269,_0x1969e5,_0x51cb0a,_0x5b0e82){var _0x3d4544=_0x38e2ae;super(),v(this,_0x3d4544(0x1e7),new D[(_0x3d4544(0x224))](_0x3d4544(0x201))),v(this,_0x3d4544(0x21d),this[_0x3d4544(0x1e7)][_0x3d4544(0x288)]()),v(this,_0x3d4544(0x2b3),!0x1),v(this,_0x3d4544(0x208),null),v(this,'_presenter',null),(this[_0x3d4544(0x205)]=_0x21cab3,this[_0x3d4544(0x28b)]=_0x39b269,this[_0x3d4544(0x20a)]=_0x1969e5,this[_0x3d4544(0x263)]=_0x51cb0a,this['_commandService']=_0x5b0e82);}get['_status'](){var _0x5ebaab=_0x38e2ae;return this[_0x5ebaab(0x1e7)][_0x5ebaab(0x245)]();}[_0x38e2ae(0x268)](){var _0x1f27d6=_0x38e2ae,_0x4d6b9b;(_0x4d6b9b=this[_0x1f27d6(0x208)])==null||_0x4d6b9b[_0x1f27d6(0x268)](),this[_0x1f27d6(0x1e7)][_0x1f27d6(0x1f1)](_0x1f27d6(0x201)),this[_0x1f27d6(0x1e7)][_0x1f27d6(0x248)]();}[_0x38e2ae(0x227)](){var _0x437df2=_0x38e2ae;this[_0x437df2(0x2b3)]||(this[_0x437df2(0x2b3)]=!0x0,this[_0x437df2(0x28b)][_0x437df2(0x1f8)][_0x437df2(0x277)](b[_0x437df2(0x2a8)](this['dispose$']))[_0x437df2(0x232)](_0x250726=>{var _0x4e7f2d=_0x437df2;switch(_0x250726){case m[_0x4e7f2d(0x27b)]['OFFLINE']:this[_0x4e7f2d(0x203)]();break;case m['SessionStatus'][_0x4e7f2d(0x25e)]:this[_0x4e7f2d(0x2b6)]();break;}}),this[_0x437df2(0x28b)]['event$']['pipe'](b[_0x437df2(0x2a8)](this[_0x437df2(0x21b)]))[_0x437df2(0x232)](_0x16967e=>{var _0x18c956=_0x437df2;const {eventID:_0x2f09d3}=_0x16967e;switch(_0x2f09d3){case _[_0x18c956(0x1e2)]['LIVESHARE_NEW_HOST']:this[_0x18c956(0x20c)](_0x16967e);break;case _[_0x18c956(0x1e2)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x16967e);break;case _['CollaborationEvent'][_0x18c956(0x204)]:this['_handleTerminate']();break;case _[_0x18c956(0x1e2)][_0x18c956(0x2c1)]:this[_0x18c956(0x249)](_0x16967e);break;}}));}[_0x38e2ae(0x23c)](){var _0x3e2147=_0x38e2ae;this[_0x3e2147(0x28b)][_0x3e2147(0x24a)]({'eventID':_[_0x3e2147(0x1e2)][_0x3e2147(0x1fb)],'data':{'unitID':this[_0x3e2147(0x205)],'userID':this[_0x3e2147(0x28b)][_0x3e2147(0x1fc)]()}},this['_unitID']);}[_0x38e2ae(0x1fe)](){var _0x557b2c=_0x38e2ae;this[_0x557b2c(0x222)]===_0x557b2c(0x1df)&&(this[_0x557b2c(0x1e7)][_0x557b2c(0x1f1)](_0x557b2c(0x201)),this[_0x557b2c(0x28b)][_0x557b2c(0x24a)]({'eventID':_[_0x557b2c(0x1e2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x557b2c(0x205)]}},this[_0x557b2c(0x205)]));}[_0x38e2ae(0x271)](){var _0x232533=_0x38e2ae;this[_0x232533(0x222)]===_0x232533(0x238)&&(this[_0x232533(0x1e7)][_0x232533(0x1f1)](_0x232533(0x289)),this[_0x232533(0x2bd)]());}['stopFollowing'](){var _0xf5613a=_0x38e2ae;this[_0xf5613a(0x222)]==='following'&&this[_0xf5613a(0x243)]();}[_0x38e2ae(0x20c)](_0x4e6ce8){var _0x1af9a2=_0x38e2ae;const {presenter:_0x541111}=_0x4e6ce8[_0x1af9a2(0x279)],_0x445001=this[_0x1af9a2(0x28b)]['getMemberID']();this[_0x1af9a2(0x2a9)]=_0x541111,_0x541111===_0x445001?(this[_0x1af9a2(0x243)](),this[_0x1af9a2(0x252)]()):this[_0x1af9a2(0x222)]!==_0x1af9a2(0x238)&&(this['_stopPresenting'](),this[_0x1af9a2(0x2bd)]());}[_0x38e2ae(0x246)](){var _0x38d5af=_0x38e2ae;const _0x5d3533={'eventID':_[_0x38d5af(0x1e2)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x5d3533,this['_unitID']);}[_0x38e2ae(0x24d)](){var _0x462d39=_0x38e2ae;this['_presenter']=null,this[_0x462d39(0x222)]!==_0x462d39(0x1df)&&this[_0x462d39(0x240)]();}['_handleNewChangeSets'](_0x1b2b17){var _0x4dc644=_0x38e2ae;if(this[_0x4dc644(0x222)]===_0x4dc644(0x289)&&this[_0x4dc644(0x2a9)]===_0x1b2b17[_0x4dc644(0x279)][_0x4dc644(0x2aa)]){const _0x256661=_[_0x4dc644(0x269)](_0x1b2b17[_0x4dc644(0x279)])[_0x4dc644(0x2a7)][_0x4dc644(0x210)]()[_0x4dc644(0x1fa)](_0x6c854=>_0x6c854['id']===C[_0x4dc644(0x2a1)]['id']);if(_0x256661){const _0x5dc058=_0x256661[_0x4dc644(0x1f3)][_0x4dc644(0x261)],_0x54143e=_0x256661[_0x4dc644(0x1f3)][_0x4dc644(0x22b)]['id'];setTimeout(()=>{var _0x1f84ca=_0x4dc644;this[_0x1f84ca(0x293)]['executeCommand'](C[_0x1f84ca(0x29e)]['id'],{'unitId':_0x5dc058,'subUnitId':_0x54143e},{'fromCollab':!0x0});});}}}[_0x38e2ae(0x252)](){var _0x176245=_0x38e2ae;this[_0x176245(0x1e7)]['next']('presenting');const _0x1e0607=new Map(),_0x3262fe=this[_0x176245(0x208)]=new o[(_0x176245(0x206))]();_0x3262fe[_0x176245(0x23a)](o[_0x176245(0x1ed)](()=>{var _0x2c8e15=_0x176245;_0x1e0607['forEach'](_0xdbd4fd=>_0xdbd4fd[_0x2c8e15(0x248)]()),_0x1e0607['clear']();})),_0x3262fe['add'](this[_0x176245(0x293)][_0x176245(0x233)](_0x3cf206=>{var _0x1019d5=_0x176245,_0x54f06a;if(_0x3cf206[_0x1019d5(0x2ac)]!==o[_0x1019d5(0x291)][_0x1019d5(0x296)]||!this[_0x1019d5(0x263)][_0x1019d5(0x26e)](_0x3cf206['id']))return;const {id:_0x26c301}=_0x3cf206;let _0x35bb03;_0x1e0607['has'](_0x26c301)?_0x35bb03=_0x1e0607[_0x1019d5(0x24e)](_0x26c301):(_0x35bb03=new D[(_0x1019d5(0x22e))](),_0x1e0607['set'](_0x26c301,_0x35bb03),_0x35bb03['pipe'](b[_0x1019d5(0x25a)]((_0x54f06a=this[_0x1019d5(0x20a)][_0x1019d5(0x256)](Z))!=null?_0x54f06a:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1019d5(0x232)](_0x250849=>{var _0x39652=_0x1019d5;this[_0x39652(0x28b)]['send']({'eventID':_[_0x39652(0x1e2)][_0x39652(0x1e8)],'data':{'unitID':this['_unitID'],'operations':{[_0x250849['id']]:{'id':_0x250849['id'],'params':JSON[_0x39652(0x236)](_0x250849[_0x39652(0x1f3)])}}}},this['_unitID']);})),_0x35bb03['next'](_0x3cf206);})),this['_liveShareService']['getInitialStates'](this[_0x176245(0x205)])['forEach'](_0x4dad99=>this[_0x176245(0x28b)][_0x176245(0x24a)]({'eventID':_[_0x176245(0x1e2)][_0x176245(0x1e8)],'data':{'unitID':this[_0x176245(0x205)],'operations':{[_0x4dad99['id']]:{'id':_0x4dad99['id'],'params':JSON[_0x176245(0x236)](_0x4dad99[_0x176245(0x1f3)])}}}},this[_0x176245(0x205)]));}['_stopPresenting'](){var _0x2b6b95=_0x38e2ae,_0x37683a;this['_status$']['next'](_0x2b6b95(0x201)),(_0x37683a=this[_0x2b6b95(0x208)])==null||_0x37683a[_0x2b6b95(0x268)](),this['_commandDisposable']=null;}[_0x38e2ae(0x2bd)](){var _0x31171b=_0x38e2ae,_0x58d151;(_0x58d151=this[_0x31171b(0x208)])==null||_0x58d151[_0x31171b(0x268)](),this[_0x31171b(0x1e7)][_0x31171b(0x1f1)]('following');}[_0x38e2ae(0x240)](){var _0x3c77eb=_0x38e2ae,_0x49ac43;this[_0x3c77eb(0x1e7)][_0x3c77eb(0x1f1)]('idle'),(_0x49ac43=this[_0x3c77eb(0x208)])==null||_0x49ac43[_0x3c77eb(0x268)](),this['_commandDisposable']=null;}[_0x38e2ae(0x243)](){var _0xd95f34=_0x38e2ae,_0x3ac751;this[_0xd95f34(0x1e7)]['next'](_0xd95f34(0x238)),(_0x3ac751=this[_0xd95f34(0x208)])==null||_0x3ac751[_0xd95f34(0x268)]();}[_0x38e2ae(0x20d)](_0x4b4bf7){var _0x254609=_0x38e2ae;if([_0x254609(0x1df),_0x254609(0x238),'offline']['includes'](this[_0x254609(0x222)])||!_0x4b4bf7[_0x254609(0x279)][_0x254609(0x22f)]||_0x4b4bf7[_0x254609(0x279)][_0x254609(0x22f)]===this['_collabSession'][_0x254609(0x1fc)]())return;this[_0x254609(0x222)]===_0x254609(0x201)&&this[_0x254609(0x2bd)]();const _0x5b3ccd=_0x4b4bf7[_0x254609(0x279)]['operations'];Object[_0x254609(0x225)](_0x5b3ccd)[_0x254609(0x2a0)](_0x10e851=>{var _0x8f973a=_0x254609;this['_commandService'][_0x8f973a(0x294)](_0x10e851['id'],_0x10e851[_0x8f973a(0x1f3)]?JSON[_0x8f973a(0x2b4)](_0x10e851['params']):null,{'fromCollab':!0x0});});}[_0x38e2ae(0x203)](){var _0x162498=_0x38e2ae,_0xb9342f;this['_status$'][_0x162498(0x1f1)]('offline'),(_0xb9342f=this[_0x162498(0x208)])==null||_0xb9342f['dispose']();}[_0x38e2ae(0x2b6)](){var _0x1ffc8d=_0x38e2ae;this['_status$'][_0x1ffc8d(0x1f1)](_0x1ffc8d(0x201)),this[_0x1ffc8d(0x246)]();}},exports[_0x38e2ae(0x2b7)]=R([S(0x2,o[_0x38e2ae(0x21c)]),S(0x3,o[_0x38e2ae(0x209)](O)),S(0x4,o[_0x38e2ae(0x267)])],exports[_0x38e2ae(0x2b7)]);function A(){var _0x4f65dc=_0x38e2ae;const _0x114879=p[_0x4f65dc(0x221)](exports[_0x4f65dc(0x290)]),_0x1b3bd7=p[_0x4f65dc(0x221)](o[_0x4f65dc(0x26d)]),_0x1b7ffd=p[_0x4f65dc(0x2af)](()=>_0x1b3bd7[_0x4f65dc(0x212)](o[_0x4f65dc(0x25b)][_0x4f65dc(0x2b9)]),void 0x0,!0x1,[]),[_0x337762,_0x33e23e]=f[_0x4f65dc(0x28e)](null),[_0x949ad7,_0x333d32]=f[_0x4f65dc(0x28e)](h[_0x4f65dc(0x266)]),_0x4f77ac=f[_0x4f65dc(0x27f)](null);return f[_0x4f65dc(0x272)](()=>(_0x1b7ffd&&_0x114879['getLiveShareCoordinator'](_0x1b7ffd['getUnitId']())['then'](_0x2e3d2a=>{var _0x25f820=_0x4f65dc;_0x33e23e(_0x2e3d2a),_0x4f77ac[_0x25f820(0x259)]=_0x2e3d2a[_0x25f820(0x21d)]['subscribe'](_0x544c3d=>{_0x333d32(_0x544c3d);});}),()=>{var _0x1cc1f9=_0x4f65dc,_0x280095;(_0x280095=_0x4f77ac[_0x1cc1f9(0x259)])==null||_0x280095[_0x1cc1f9(0x21f)](),_0x4f77ac[_0x1cc1f9(0x259)]=null;}),[_0x1b7ffd,_0x114879]),_0x337762?l[_0x4f65dc(0x228)](g[_0x4f65dc(0x24b)],{'align':_0x4f65dc(0x237),'disabled':_0x949ad7===h['OFFLINE'],'className':_0x4f65dc(0x1e3),'overlay':l['jsx'](K,{'status':_0x949ad7,'coordinator':_0x337762}),'children':l[_0x4f65dc(0x228)]('button',{'className':g[_0x4f65dc(0x1e6)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x949ad7===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x949ad7!==h['OFFLINE']}),'type':_0x4f65dc(0x207),'children':l[_0x4f65dc(0x228)](P,{'className':_0x4f65dc(0x234)})})}):null;}function K(_0x3b3d5f){var _0x129308=_0x38e2ae;const {status:_0xba2aac,coordinator:_0x570515}=_0x3b3d5f;switch(_0xba2aac){case h['IDLE']:return l[_0x129308(0x228)](z,{'coordinator':_0x570515});case h[_0x129308(0x28f)]:return l[_0x129308(0x228)](Q,{'coordinator':_0x570515});case h[_0x129308(0x299)]:return l[_0x129308(0x228)](X,{'coordinator':_0x570515});case h[_0x129308(0x2a4)]:return l[_0x129308(0x228)](te,{});case h[_0x129308(0x2b0)]:return l[_0x129308(0x228)](ee,{'coordinator':_0x570515});default:return null;}}function z(_0x2197a4){var _0xbcf598=_0x38e2ae;const {coordinator:_0x4d1df8}=_0x2197a4;return l[_0xbcf598(0x2bb)](l['Fragment'],{'children':[l['jsx'](_0xbcf598(0x274),{'className':_0xbcf598(0x213),'children':_0xbcf598(0x254)}),l['jsx'](g[_0xbcf598(0x26a)],{'onClick':()=>_0x4d1df8[_0xbcf598(0x23c)](),'children':_0xbcf598(0x25f)})]});}function Q(_0x5743c3){var _0x567beb=_0x38e2ae;const {coordinator:_0x5e7237}=_0x5743c3;return l[_0x567beb(0x2bb)](l[_0x567beb(0x27a)],{'children':[l[_0x567beb(0x228)](_0x567beb(0x274),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x567beb(0x228)](g[_0x567beb(0x26a)],{'onClick':()=>_0x5e7237[_0x567beb(0x26f)](),'children':'Stop\x20following'})]});}function X(_0x3b60f7){var _0x5255cf=_0x38e2ae;const {coordinator:_0x1d2a78}=_0x3b60f7;return l[_0x5255cf(0x2bb)](l['Fragment'],{'children':[l['jsx'](_0x5255cf(0x274),{'className':_0x5255cf(0x213),'children':_0x5255cf(0x281)}),l[_0x5255cf(0x228)](g[_0x5255cf(0x26a)],{'variant':_0x5255cf(0x29b),'onClick':()=>_0x1d2a78[_0x5255cf(0x271)](),'children':'Start\x20following'})]});}function ee(_0xe4031f){var _0x4dad74=_0x38e2ae;const {coordinator:_0x4943d4}=_0xe4031f;return l[_0x4dad74(0x2bb)](l[_0x4dad74(0x27a)],{'children':[l['jsx']('div',{'className':_0x4dad74(0x213),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x4dad74(0x228)](g[_0x4dad74(0x26a)],{'variant':_0x4dad74(0x1ff),'onClick':()=>_0x4943d4[_0x4dad74(0x1fe)](),'children':_0x4dad74(0x2c4)})]});}function _0x48f8(_0x4b5752,_0x84223a){var _0x541f6d=_0x541f();return _0x48f8=function(_0x48f859,_0xa7e0c1){_0x48f859=_0x48f859-0x1de;var _0x264320=_0x541f6d[_0x48f859];return _0x264320;},_0x48f8(_0x4b5752,_0x84223a);}function te(){var _0x13014f=_0x38e2ae;return l[_0x13014f(0x228)](l[_0x13014f(0x27a)],{'children':_0x13014f(0x2a5)});}var ie=Object[_0x38e2ae(0x247)],ne=(_0x1296d1,_0x76aa7d,_0x160e3a,_0x5378e7)=>{var _0x48506b=_0x38e2ae;for(var _0x316361=_0x5378e7>0x1?void 0x0:_0x5378e7?ie(_0x76aa7d,_0x160e3a):_0x76aa7d,_0x4a7010=_0x1296d1[_0x48506b(0x21e)]-0x1,_0x5cb3cf;_0x4a7010>=0x0;_0x4a7010--)(_0x5cb3cf=_0x1296d1[_0x4a7010])&&(_0x316361=_0x5cb3cf(_0x316361)||_0x316361);return _0x316361;},L=(_0x487439,_0x3e3db4)=>(_0x53e1a8,_0x19bbdc)=>_0x3e3db4(_0x53e1a8,_0x19bbdc,_0x487439);exports[_0x38e2ae(0x27d)]=class extends o[_0x38e2ae(0x1eb)]{constructor(_0x2ac710,_0x82d011){var _0x4e7f50=_0x38e2ae;super(),this[_0x4e7f50(0x29f)]=_0x2ac710,this[_0x4e7f50(0x1f7)]=_0x82d011,this['_mountLiveShare']();}[_0x38e2ae(0x286)](){var _0x3198a1=_0x38e2ae;this['disposeWithMe'](this[_0x3198a1(0x1f7)][_0x3198a1(0x1fd)](p[_0x3198a1(0x226)][_0x3198a1(0x23e)],()=>p[_0x3198a1(0x282)](A,this[_0x3198a1(0x29f)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x38e2ae(0x209)](o[_0x38e2ae(0x242)])),L(0x1,p[_0x38e2ae(0x24f)])],exports[_0x38e2ae(0x27d)]);var re=Object[_0x38e2ae(0x1e0)],se=Object[_0x38e2ae(0x247)],oe=(_0x4af78e,_0x3cc6c4,_0x54737a)=>_0x3cc6c4 in _0x4af78e?re(_0x4af78e,_0x3cc6c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54737a}):_0x4af78e[_0x3cc6c4]=_0x54737a,ae=(_0x21288d,_0x4baffd,_0x1b4949,_0x19fba6)=>{var _0x35cc44=_0x38e2ae;for(var _0x487d7d=_0x19fba6>0x1?void 0x0:_0x19fba6?se(_0x4baffd,_0x1b4949):_0x4baffd,_0x4ef564=_0x21288d[_0x35cc44(0x21e)]-0x1,_0x53a0c4;_0x4ef564>=0x0;_0x4ef564--)(_0x53a0c4=_0x21288d[_0x4ef564])&&(_0x487d7d=_0x53a0c4(_0x487d7d)||_0x487d7d);return _0x487d7d;},N=(_0x84a557,_0x484780)=>(_0x2307b0,_0x3c4fe5)=>_0x484780(_0x2307b0,_0x3c4fe5,_0x84a557),T=(_0x53b2c4,_0x5480d0,_0x29e859)=>oe(_0x53b2c4,typeof _0x5480d0!=_0x38e2ae(0x1ee)?_0x5480d0+'':_0x5480d0,_0x29e859);const le=_0x38e2ae(0x273);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x31aa4e=x,_0x236664,_0x3c5d6a){var _0x1aa6f3=_0x38e2ae;super(),this['_config']=_0x31aa4e,this[_0x1aa6f3(0x29f)]=_0x236664,this[_0x1aa6f3(0x20a)]=_0x3c5d6a;const {..._0x5f4255}=o[_0x1aa6f3(0x1e5)]({},x,this['_config']);this[_0x1aa6f3(0x20a)][_0x1aa6f3(0x2c6)]($,_0x5f4255);}[_0x38e2ae(0x1f0)](){var _0x5a4f32=_0x38e2ae;o[_0x5a4f32(0x29d)](this['_injector'],o[_0x5a4f32(0x2ae)]([[O],[exports[_0x5a4f32(0x290)]],[E],[exports[_0x5a4f32(0x27d)]]],this['_config'][_0x5a4f32(0x262)])),o[_0x5a4f32(0x251)](this[_0x5a4f32(0x29f)],[[E]]);}['onRendered'](){var _0x4855a1=_0x38e2ae;o['touchDependencies'](this[_0x4855a1(0x29f)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x38e2ae(0x292)],_0x38e2ae(0x2ac),o[_0x38e2ae(0x25b)][_0x38e2ae(0x223)]),T(exports[_0x38e2ae(0x292)],_0x38e2ae(0x217),le),exports['UniverLiveSharePlugin']=ae([o[_0x38e2ae(0x220)](m[_0x38e2ae(0x2c5)]),N(0x1,o[_0x38e2ae(0x209)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x38e2ae(0x292)]),exports[_0x38e2ae(0x239)]=A,exports[_0x38e2ae(0x211)]=O,exports[_0x38e2ae(0x285)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1fe857=_0x1fb0;(function(_0x43d8de,_0xe4b314){var _0x12620a=_0x1fb0,_0x575ea0=_0x43d8de();while(!![]){try{var _0x1b9128=-parseInt(_0x12620a(0x25c))/0x1*(-parseInt(_0x12620a(0x25e))/0x2)+-parseInt(_0x12620a(0x1fa))/0x3+-parseInt(_0x12620a(0x27a))/0x4+parseInt(_0x12620a(0x252))/0x5+parseInt(_0x12620a(0x226))/0x6*(-parseInt(_0x12620a(0x235))/0x7)+parseInt(_0x12620a(0x249))/0x8*(-parseInt(_0x12620a(0x26a))/0x9)+parseInt(_0x12620a(0x219))/0xa;if(_0x1b9128===_0xe4b314)break;else _0x575ea0['push'](_0x575ea0['shift']());}catch(_0x449ca5){_0x575ea0['push'](_0x575ea0['shift']());}}}(_0x191d,0x45a7e));var q=Object[_0x1fe857(0x211)],z=(_0x3d5c21,_0x3db863,_0x7334ca)=>_0x3db863 in _0x3d5c21?q(_0x3d5c21,_0x3db863,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7334ca}):_0x3d5c21[_0x3db863]=_0x7334ca,d=(_0x1afc3d,_0x277a53,_0x1235f7)=>z(_0x1afc3d,typeof _0x277a53!=_0x1fe857(0x23b)?_0x277a53+'':_0x277a53,_0x1235f7);import{CollaborationSessionService as _0x3733f2,SessionStatus as _0x3ca81a,UniverCollaborationClientPlugin as _0x1cb684}from'@univerjs-pro/collaboration-client';import{Disposable as _0x38b3ba,toDisposable as _0x35cd5c,Inject as _0x4b8efd,IUniverInstanceService as _0xbd06da,Injector as _0x3d5dff,IConfigService as _0x553fba,ICommandService as _0x48ab6d,RxDisposable as _0x2949ef,UniverInstanceType as _0x5b5a69,DisposableCollection as _0x534bad,CommandType as _0x3689ff,DependentOn as _0x1238c5,Plugin as _0x444bb4,merge as _0x4bb93d,registerDependencies as _0xaa7f98,mergeOverrideWithDependencies as _0x54161b,touchDependencies as _0x3a8db2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21d20b,InsertSheetMutation as _0x10f2a2}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2cf77b,SetScrollOperation as _0x16f3f4}from'@univerjs/sheets-ui';import{useDependency as _0xa14faf,useObservable as _0x285ff5,IUIPartsService as _0x284010,BuiltInUIPart as _0x219afb,connectInjector as _0x3674ad}from'@univerjs/ui';import{jsx as _0x24836d,jsxs as _0x149352,Fragment as _0x31ded6}from'react/jsx-runtime';import{Dropdown as _0x361e50,clsx as _0x5e62c8,Button as _0x3666eb}from'@univerjs/design';import{forwardRef as _0x4c47ac,useRef as _0x185894,createElement as _0x108e4b,useState as _0x3ca38b,useEffect as _0x328286}from'react';import{CollaborationEvent as _0x21eb48,parseProtocolChangeset as _0x1b3aa2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x142d84,Subject as _0x5527e4}from'rxjs';import{takeUntil as _0x27efe5,throttleTime as _0xede14b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x38b3ba{constructor(){var _0x4cd6e3=_0x1fe857;super(...arguments),d(this,_0x4cd6e3(0x1f0),new Set()),d(this,_0x4cd6e3(0x20c),new Set());}[_0x1fe857(0x1e0)](_0x15f53f){var _0x157b62=_0x1fe857;return this[_0x157b62(0x1f0)][_0x157b62(0x1f9)](_0x15f53f),_0x35cd5c(()=>this['_sharedOperations'][_0x157b62(0x220)](_0x15f53f));}[_0x1fe857(0x25d)](_0x3f4f9f){var _0x242e61=_0x1fe857;return this['_reporters'][_0x242e61(0x1f9)](_0x3f4f9f),_0x35cd5c(()=>this[_0x242e61(0x20c)]['delete'](_0x3f4f9f));}[_0x1fe857(0x1ef)](_0x4d61fa){var _0x458b4f=_0x1fe857;return this[_0x458b4f(0x1f0)]['has'](_0x4d61fa);}[_0x1fe857(0x248)](_0x457e88){var _0x2cfb48=_0x1fe857;return Array[_0x2cfb48(0x1e6)](this['_reporters'])[_0x2cfb48(0x1ea)](_0x1b1381=>_0x1b1381(_0x457e88));}}var Ee=Object[_0x1fe857(0x1f4)],we=(_0x4781ce,_0x3430e6,_0x36cbb1,_0x47f14f)=>{var _0x210715=_0x1fe857;for(var _0x38e2c6=_0x47f14f>0x1?void 0x0:_0x47f14f?Ee(_0x3430e6,_0x36cbb1):_0x3430e6,_0x78e303=_0x4781ce[_0x210715(0x28a)]-0x1,_0x26d6c7;_0x78e303>=0x0;_0x78e303--)(_0x26d6c7=_0x4781ce[_0x78e303])&&(_0x38e2c6=_0x26d6c7(_0x38e2c6)||_0x38e2c6);return _0x38e2c6;},Ne=(_0x5b9ac0,_0x6c1ae)=>(_0x153afb,_0x48b533)=>_0x6c1ae(_0x153afb,_0x48b533,_0x5b9ac0);let m=class extends _0x38b3ba{constructor(_0x19a1d2){var _0x14ae70=_0x1fe857;super(),this['_liveShareService']=_0x19a1d2,this[_0x14ae70(0x204)]();}[_0x1fe857(0x204)](){[_0x2cf77b['id'],_0x16f3f4['id'],_0x21d20b['id']]['forEach'](_0xdf348b=>{var _0xbef179=_0x1fb0;this[_0xbef179(0x264)](this['_liveShareService'][_0xbef179(0x1e0)](_0xdf348b));});}};m=we([Ne(0x0,_0x4b8efd(L))],m);function _0x191d(){var _0xd875f2=['_unitID','use','131454xtFNdq','hasOwnProperty','div','default','toString','_status','evenodd','_beIdle','getOwnPropertySymbols','tag','stopPresenting','dispose','path','idle','text','_config','1873796hQMZSo','OFFLINE','getValue','mutations','_univerInstanceService','Present\x20this\x20document','override','next','apply','params','LIVESHARE_REQUEST_HOST','_fetchOperations','send','sheet','univer-size-4','end','length','UNIVER_SHEET','onCommandExecuted','colorChannel1','pluginName','registerSharedOperation','string','getLiveShareCoordinator','find','svg','0\x200\x2017\x2017','from','_mountLiveShare','stringify','http://www.w3.org/2000/svg','map','startFollowing','trim','xlink:href','Start\x20following','shouldShareOperation','_sharedOperations','unsubscribe','_injector','displayName','getOwnPropertyDescriptor','clear','set','NOT_FOLLOWING','getConfig','add','307128NjxVbi','button','registerComponent','status$','live-share-icon','extend','entries','onRendered','random','_stopPresenting','_init','attrs','_handleNewHost','_entities','_collabSession','UniverIcon','getCurrentTypeOfUnit$','indexOf','_reporters','_handleTerminate','_liveShareService','_stopFollowing','LIVESHARE_OPERATION','defineProperty','getUnitId','createInstance','type','complete','includes','_configService','PRESENTING','12577120kaLrPc','mask','idSuffix','has','init','Stop\x20following','prototype','delete','current','presenter','url(#$1','executeCommand','You\x27re\x20following\x20the\x20presenter','1439886djCNeR','following','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','asObservable','LIVESHARE_TERMINATE','function','forEach','ONLINE','get','none','_presenter','_commandDisposable','concat','parse','14lzvYqU','FOLLOWING','memberID','dispose$','currentColor','sessionStatus$','symbol','getMemberID','_handleOnline','subscribe','not-following','className','pipe','call','_startLiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IDLE','getInitialStates','136RulONb','_commandService','reverse','LiveShareIcon','replace','offline','presenting','Stop\x20presenting','1em','802170cYNPKO','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','fill','_handleNewChangeSets','_handleOffline','_status$','univerjs-icon\x20univerjs-icon-','children','operations','961YaXubK','registerInitialStateReporter','346WzjLba','then','data','unitId','defs','defIds','disposeWithMe','_startFollowing','LIVESHARE_FETCH_OPERATIONS','_startPresenting'];_0x191d=function(){return _0xd875f2;};return _0x191d();}var c=function(){var _0x59491c=_0x1fe857;return c=Object['assign']||function(_0x2346cb){var _0x3d3a4f=_0x1fb0;for(var _0x1f99db,_0x2e7599=0x1,_0x11f924=arguments['length'];_0x2e7599<_0x11f924;_0x2e7599++){_0x1f99db=arguments[_0x2e7599];for(var _0xa53b87 in _0x1f99db)Object[_0x3d3a4f(0x21f)][_0x3d3a4f(0x26b)][_0x3d3a4f(0x242)](_0x1f99db,_0xa53b87)&&(_0x2346cb[_0xa53b87]=_0x1f99db[_0xa53b87]);}return _0x2346cb;},c[_0x59491c(0x282)](this,arguments);},Ce=function(_0x1b4deb,_0x1e888f){var _0x41744d=_0x1fe857,_0xcc3ad2={};for(var _0x3cb09b in _0x1b4deb)Object['prototype']['hasOwnProperty'][_0x41744d(0x242)](_0x1b4deb,_0x3cb09b)&&_0x1e888f[_0x41744d(0x20b)](_0x3cb09b)<0x0&&(_0xcc3ad2[_0x3cb09b]=_0x1b4deb[_0x3cb09b]);if(_0x1b4deb!=null&&typeof Object[_0x41744d(0x272)]==_0x41744d(0x22c)){for(var _0x778ddd=0x0,_0x3cb09b=Object[_0x41744d(0x272)](_0x1b4deb);_0x778ddd<_0x3cb09b[_0x41744d(0x28a)];_0x778ddd++)_0x1e888f['indexOf'](_0x3cb09b[_0x778ddd])<0x0&&Object[_0x41744d(0x21f)]['propertyIsEnumerable']['call'](_0x1b4deb,_0x3cb09b[_0x778ddd])&&(_0xcc3ad2[_0x3cb09b[_0x778ddd]]=_0x1b4deb[_0x3cb09b[_0x778ddd]]);}return _0xcc3ad2;},W=_0x4c47ac(function(_0x215a47,_0x2fa3de){var _0x57e961=_0x1fe857,_0x56009c=_0x215a47['icon'],_0x4f4346=_0x215a47['id'],_0x24c3d5=_0x215a47[_0x57e961(0x240)],_0x5c0f28=_0x215a47['extend'],_0x43f363=Ce(_0x215a47,['icon','id','className',_0x57e961(0x1ff)]),_0x2db119=_0x57e961(0x259)[_0x57e961(0x233)](_0x4f4346,'\x20')['concat'](_0x24c3d5||'')[_0x57e961(0x1ec)](),_0x33607a=_0x185894('_'[_0x57e961(0x233)](Le()));return Y(_0x56009c,''[_0x57e961(0x233)](_0x4f4346),{'defIds':_0x56009c[_0x57e961(0x263)],'idSuffix':_0x33607a[_0x57e961(0x221)]},c({'ref':_0x2fa3de,'className':_0x2db119},_0x43f363),_0x5c0f28);});function Y(_0x3bc4da,_0x524c9d,_0x57a290,_0x455bdb,_0x5f1d48){var _0x4eaa15=_0x1fe857;return _0x108e4b(_0x3bc4da[_0x4eaa15(0x273)],c(c({'key':_0x524c9d},De(_0x3bc4da,_0x57a290,_0x5f1d48)),_0x455bdb),(xe(_0x3bc4da,_0x57a290)['children']||[])['map'](function(_0x25214a,_0x42acd4){var _0x1e5ed0=_0x4eaa15;return Y(_0x25214a,''[_0x1e5ed0(0x233)](_0x524c9d,'-')['concat'](_0x3bc4da[_0x1e5ed0(0x273)],'-')[_0x1e5ed0(0x233)](_0x42acd4),_0x57a290,void 0x0,_0x5f1d48);}));}function De(_0x995c49,_0x3a0c44,_0x194946){var _0x2557be=_0x1fe857,_0x49d765=c({},_0x995c49[_0x2557be(0x205)]);_0x194946!=null&&_0x194946['colorChannel1']&&_0x49d765[_0x2557be(0x255)]===_0x2557be(0x1de)&&(_0x49d765['fill']=_0x194946['colorChannel1']),_0x995c49[_0x2557be(0x273)]===_0x2557be(0x21a)&&_0x49d765['id']&&(_0x49d765['id']=_0x49d765['id']+_0x3a0c44[_0x2557be(0x21b)]),Object['entries'](_0x49d765)[_0x2557be(0x22d)](function(_0x550c0e){var _0x510c24=_0x2557be,_0x86143f=_0x550c0e[0x0],_0x548a4a=_0x550c0e[0x1];_0x86143f===_0x510c24(0x21a)&&typeof _0x548a4a==_0x510c24(0x1e1)&&(_0x49d765[_0x86143f]=_0x548a4a['replace'](/url\(#(.*)\)/,_0x510c24(0x223)[_0x510c24(0x233)](_0x3a0c44[_0x510c24(0x21b)],')')));});var _0x1ccc9d=_0x3a0c44[_0x2557be(0x263)];return!_0x1ccc9d||_0x1ccc9d[_0x2557be(0x28a)]===0x0||(_0x995c49[_0x2557be(0x273)]===_0x2557be(0x269)&&_0x49d765[_0x2557be(0x1ed)]&&(_0x49d765[_0x2557be(0x1ed)]=_0x49d765[_0x2557be(0x1ed)]+_0x3a0c44['idSuffix']),Object[_0x2557be(0x200)](_0x49d765)[_0x2557be(0x22d)](function(_0x4bfc72){var _0x37252c=_0x2557be,_0x54962a=_0x4bfc72[0x0],_0x198eb6=_0x4bfc72[0x1];typeof _0x198eb6==_0x37252c(0x1e1)&&(_0x49d765[_0x54962a]=_0x198eb6[_0x37252c(0x24d)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3a0c44[_0x37252c(0x21b)],')')));})),_0x49d765;}function xe(_0xd1c778,_0x137a52){var _0x38db5b=_0x1fe857,_0xa9fde4,_0x30a37e=_0x137a52[_0x38db5b(0x263)];return!_0x30a37e||_0x30a37e[_0x38db5b(0x28a)]===0x0?_0xd1c778:_0xd1c778[_0x38db5b(0x273)]===_0x38db5b(0x262)&&(!((_0xa9fde4=_0xd1c778[_0x38db5b(0x25a)])===null||_0xa9fde4===void 0x0)&&_0xa9fde4['length'])?c(c({},_0xd1c778),{'children':_0xd1c778[_0x38db5b(0x25a)][_0x38db5b(0x1ea)](function(_0x18eaf0){var _0x58dd45=_0x38db5b;return typeof _0x18eaf0[_0x58dd45(0x205)]['id']==_0x58dd45(0x1e1)&&_0x30a37e&&_0x30a37e[_0x58dd45(0x216)](_0x18eaf0[_0x58dd45(0x205)]['id'])?c(c({},_0x18eaf0),{'attrs':c(c({},_0x18eaf0[_0x58dd45(0x205)]),{'id':_0x18eaf0[_0x58dd45(0x205)]['id']+_0x137a52['idSuffix']})}):_0x18eaf0;})}):_0xd1c778;}function Le(){var _0x8d95ae=_0x1fe857;return Math[_0x8d95ae(0x202)]()[_0x8d95ae(0x26e)](0x24)['substring'](0x2,0x8);}W[_0x1fe857(0x1f3)]=_0x1fe857(0x209);var ye={'tag':_0x1fe857(0x1e4),'attrs':{'xmlns':_0x1fe857(0x1e9),'fill':_0x1fe857(0x230),'viewBox':_0x1fe857(0x1e5),'width':_0x1fe857(0x251),'height':'1em'},'children':[{'tag':_0x1fe857(0x276),'attrs':{'fill':_0x1fe857(0x239),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1fe857(0x276),'attrs':{'fill':'currentColor','d':_0x1fe857(0x246),'fillRule':_0x1fe857(0x270),'clipRule':'evenodd'}}]},B=_0x4c47ac(function(_0xc72e2e,_0x181c39){var _0x2f6d6b=_0x1fe857;return _0x108e4b(W,Object['assign']({},_0xc72e2e,{'id':_0x2f6d6b(0x1fe),'ref':_0x181c39,'icon':ye}));});B[_0x1fe857(0x1f3)]=_0x1fe857(0x24c);var Re=Object[_0x1fe857(0x1f4)],Z=(_0x180025,_0x4a501d,_0x581d40,_0x421e75)=>{var _0x5ac1c2=_0x1fe857;for(var _0x2ec7dd=_0x421e75>0x1?void 0x0:_0x421e75?Re(_0x4a501d,_0x581d40):_0x4a501d,_0x1da9ff=_0x180025[_0x5ac1c2(0x28a)]-0x1,_0x530ede;_0x1da9ff>=0x0;_0x1da9ff--)(_0x530ede=_0x180025[_0x1da9ff])&&(_0x2ec7dd=_0x530ede(_0x2ec7dd)||_0x2ec7dd);return _0x2ec7dd;},f=(_0x484d24,_0x158c85)=>(_0x3caa59,_0x2b35d8)=>_0x158c85(_0x3caa59,_0x2b35d8,_0x484d24);function _0x1fb0(_0x3887c4,_0x1340cd){var _0x191d6=_0x191d();return _0x1fb0=function(_0x1fb064,_0x2f1cad){_0x1fb064=_0x1fb064-0x1dd;var _0x228442=_0x191d6[_0x1fb064];return _0x228442;},_0x1fb0(_0x3887c4,_0x1340cd);}let I=class extends _0x2949ef{constructor(_0x205c20,_0x12ec6d,_0x2319a9){var _0x32916f=_0x1fe857;super(),d(this,_0x32916f(0x207),new Map()),(this[_0x32916f(0x27e)]=_0x205c20,this[_0x32916f(0x1f2)]=_0x12ec6d,this['_collabSessionService']=_0x2319a9,this[_0x32916f(0x204)]());}async[_0x1fe857(0x1e2)](_0x97f129){var _0x277b3f=_0x1fe857;return this['_entities'][_0x277b3f(0x21c)](_0x97f129)||await this[_0x277b3f(0x243)](_0x97f129),this[_0x277b3f(0x207)]['get'](_0x97f129);}[_0x1fe857(0x204)](){var _0x2ce583=_0x1fe857;this[_0x2ce583(0x27e)]['getTypeOfUnitAdded$'](_0x5b5a69[_0x2ce583(0x28b)])[_0x2ce583(0x241)](_0x27efe5(this[_0x2ce583(0x238)]))[_0x2ce583(0x23e)](async _0x7ba8eb=>{var _0x2a2765=_0x2ce583;const _0x379999=_0x7ba8eb[_0x2a2765(0x212)]();this[_0x2a2765(0x207)][_0x2a2765(0x21c)](_0x379999)||this[_0x2a2765(0x243)](_0x379999);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5b5a69[_0x2ce583(0x28b)])['pipe'](_0x27efe5(this[_0x2ce583(0x238)]))[_0x2ce583(0x23e)](_0x1d690c=>{var _0x3b1a8c=_0x2ce583;const _0x2e8e3c=_0x1d690c[_0x3b1a8c(0x212)](),_0x58ed1a=this['_entities'][_0x3b1a8c(0x22f)](_0x2e8e3c);_0x58ed1a==null||_0x58ed1a[_0x3b1a8c(0x275)]();});}async[_0x1fe857(0x243)](_0x2446b1){var _0x4e02dc=_0x1fe857;const _0x26b6cf=await this['_collabSessionService']['requireSession'](_0x2446b1),_0x597f83=this[_0x4e02dc(0x1f2)][_0x4e02dc(0x213)](C,_0x2446b1,_0x26b6cf);return _0x597f83[_0x4e02dc(0x21d)](),this['_entities'][_0x4e02dc(0x1f6)](_0x2446b1,_0x597f83),_0x597f83;}};I=Z([f(0x0,_0xbd06da),f(0x1,_0x4b8efd(_0x3d5dff)),f(0x2,_0x4b8efd(_0x3733f2))],I);var h=(_0x591dc5=>(_0x591dc5[_0x1fe857(0x27b)]=_0x1fe857(0x24e),_0x591dc5[_0x1fe857(0x247)]=_0x1fe857(0x277),_0x591dc5[_0x1fe857(0x236)]=_0x1fe857(0x227),_0x591dc5[_0x1fe857(0x1f7)]=_0x1fe857(0x23f),_0x591dc5[_0x1fe857(0x218)]=_0x1fe857(0x24f),_0x591dc5))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2949ef{constructor(_0x12f6b8,_0xd2a0b0,_0x3df3dd,_0x18615f,_0x1a2ad3){var _0x4adfd4=_0x1fe857;super(),d(this,_0x4adfd4(0x258),new _0x142d84(_0x4adfd4(0x277))),d(this,_0x4adfd4(0x1fd),this[_0x4adfd4(0x258)][_0x4adfd4(0x22a)]()),d(this,_0x4adfd4(0x204),!0x1),d(this,_0x4adfd4(0x232),null),d(this,_0x4adfd4(0x231),null),(this[_0x4adfd4(0x268)]=_0x12f6b8,this[_0x4adfd4(0x208)]=_0xd2a0b0,this[_0x4adfd4(0x217)]=_0x3df3dd,this[_0x4adfd4(0x20e)]=_0x18615f,this[_0x4adfd4(0x24a)]=_0x1a2ad3);}get[_0x1fe857(0x26f)](){var _0x4ca26a=_0x1fe857;return this[_0x4ca26a(0x258)][_0x4ca26a(0x27c)]();}['dispose'](){var _0x56ada7=_0x1fe857,_0x30fe93;(_0x30fe93=this['_commandDisposable'])==null||_0x30fe93[_0x56ada7(0x275)](),this['_status$'][_0x56ada7(0x281)]('idle'),this['_status$']['complete']();}[_0x1fe857(0x21d)](){var _0x7a21a9=_0x1fe857;this[_0x7a21a9(0x204)]||(this['_init']=!0x0,this['_collabSession'][_0x7a21a9(0x23a)][_0x7a21a9(0x241)](_0x27efe5(this['dispose$']))[_0x7a21a9(0x23e)](_0x19c49b=>{var _0x739eab=_0x7a21a9;switch(_0x19c49b){case _0x3ca81a[_0x739eab(0x27b)]:this[_0x739eab(0x257)]();break;case _0x3ca81a[_0x739eab(0x22e)]:this[_0x739eab(0x23d)]();break;}}),this[_0x7a21a9(0x208)]['event$'][_0x7a21a9(0x241)](_0x27efe5(this[_0x7a21a9(0x238)]))[_0x7a21a9(0x23e)](_0x2e5fa4=>{var _0x1693ce=_0x7a21a9;const {eventID:_0x42f3a2}=_0x2e5fa4;switch(_0x42f3a2){case _0x21eb48[_0x1693ce(0x228)]:this[_0x1693ce(0x206)](_0x2e5fa4);break;case _0x21eb48[_0x1693ce(0x210)]:this['_handleOperation'](_0x2e5fa4);break;case _0x21eb48[_0x1693ce(0x22b)]:this[_0x1693ce(0x20d)]();break;case _0x21eb48['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x2e5fa4);break;}}));}['tryStartPresenting'](){var _0x2e0775=_0x1fe857;this['_collabSession'][_0x2e0775(0x286)]({'eventID':_0x21eb48[_0x2e0775(0x284)],'data':{'unitID':this[_0x2e0775(0x268)],'userID':this[_0x2e0775(0x208)]['getMemberID']()}},this['_unitID']);}[_0x1fe857(0x274)](){var _0x3fa362=_0x1fe857;this[_0x3fa362(0x26f)]===_0x3fa362(0x24f)&&(this[_0x3fa362(0x258)]['next']('idle'),this[_0x3fa362(0x208)][_0x3fa362(0x286)]({'eventID':_0x21eb48[_0x3fa362(0x22b)],'data':{'unitID':this['_unitID']}},this[_0x3fa362(0x268)]));}[_0x1fe857(0x1eb)](){var _0x55b3d9=_0x1fe857;this[_0x55b3d9(0x26f)]===_0x55b3d9(0x23f)&&(this[_0x55b3d9(0x258)][_0x55b3d9(0x281)](_0x55b3d9(0x227)),this[_0x55b3d9(0x265)]());}['stopFollowing'](){var _0x3a02aa=_0x1fe857;this[_0x3a02aa(0x26f)]===_0x3a02aa(0x227)&&this[_0x3a02aa(0x20f)]();}['_handleNewHost'](_0x111968){var _0x2a9492=_0x1fe857;const {presenter:_0x2cb9c8}=_0x111968['data'],_0x45db1f=this[_0x2a9492(0x208)][_0x2a9492(0x23c)]();this['_presenter']=_0x2cb9c8,_0x2cb9c8===_0x45db1f?(this[_0x2a9492(0x20f)](),this[_0x2a9492(0x267)]()):this[_0x2a9492(0x26f)]!==_0x2a9492(0x23f)&&(this[_0x2a9492(0x203)](),this['_startFollowing']());}['_fetchOperations'](){var _0x4e74c7=_0x1fe857;const _0xbfba27={'eventID':_0x21eb48[_0x4e74c7(0x266)]};this[_0x4e74c7(0x208)][_0x4e74c7(0x286)](_0xbfba27,this[_0x4e74c7(0x268)]);}[_0x1fe857(0x20d)](){var _0x497022=_0x1fe857;this[_0x497022(0x231)]=null,this[_0x497022(0x26f)]!==_0x497022(0x24f)&&this['_beIdle']();}[_0x1fe857(0x256)](_0x86fed2){var _0x406724=_0x1fe857;if(this['_status']===_0x406724(0x227)&&this[_0x406724(0x231)]===_0x86fed2['data'][_0x406724(0x237)]){const _0x1a17eb=_0x1b3aa2(_0x86fed2[_0x406724(0x260)])[_0x406724(0x27d)][_0x406724(0x24b)]()[_0x406724(0x1e3)](_0x33eb9f=>_0x33eb9f['id']===_0x10f2a2['id']);if(_0x1a17eb){const _0x41c66b=_0x1a17eb[_0x406724(0x283)][_0x406724(0x261)],_0x3bc5fa=_0x1a17eb['params'][_0x406724(0x287)]['id'];setTimeout(()=>{var _0x58b6f9=_0x406724;this[_0x58b6f9(0x24a)][_0x58b6f9(0x224)](_0x21d20b['id'],{'unitId':_0x41c66b,'subUnitId':_0x3bc5fa},{'fromCollab':!0x0});});}}}[_0x1fe857(0x267)](){var _0x23820f=_0x1fe857;this[_0x23820f(0x258)]['next'](_0x23820f(0x24f));const _0x4941ae=new Map(),_0x1c10f7=this['_commandDisposable']=new _0x534bad();_0x1c10f7[_0x23820f(0x1f9)](_0x35cd5c(()=>{var _0xd2bd21=_0x23820f;_0x4941ae['forEach'](_0x3f76cf=>_0x3f76cf[_0xd2bd21(0x215)]()),_0x4941ae[_0xd2bd21(0x1f5)]();})),_0x1c10f7[_0x23820f(0x1f9)](this[_0x23820f(0x24a)][_0x23820f(0x1dd)](_0x4f42fb=>{var _0x7e52fa=_0x23820f,_0x338c05;if(_0x4f42fb[_0x7e52fa(0x214)]!==_0x3689ff['OPERATION']||!this[_0x7e52fa(0x20e)]['shouldShareOperation'](_0x4f42fb['id']))return;const {id:_0x1a0b5a}=_0x4f42fb;let _0x4566d5;_0x4941ae['has'](_0x1a0b5a)?_0x4566d5=_0x4941ae[_0x7e52fa(0x22f)](_0x1a0b5a):(_0x4566d5=new _0x5527e4(),_0x4941ae[_0x7e52fa(0x1f6)](_0x1a0b5a,_0x4566d5),_0x4566d5[_0x7e52fa(0x241)](_0xede14b((_0x338c05=this[_0x7e52fa(0x217)][_0x7e52fa(0x1f8)](Pe))!=null?_0x338c05:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x245045=>{var _0xb45b73=_0x7e52fa;this['_collabSession'][_0xb45b73(0x286)]({'eventID':_0x21eb48[_0xb45b73(0x210)],'data':{'unitID':this[_0xb45b73(0x268)],'operations':{[_0x245045['id']]:{'id':_0x245045['id'],'params':JSON[_0xb45b73(0x1e8)](_0x245045[_0xb45b73(0x283)])}}}},this['_unitID']);})),_0x4566d5[_0x7e52fa(0x281)](_0x4f42fb);})),this[_0x23820f(0x20e)][_0x23820f(0x248)](this[_0x23820f(0x268)])['forEach'](_0x4ec565=>this['_collabSession'][_0x23820f(0x286)]({'eventID':_0x21eb48['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x23820f(0x268)],'operations':{[_0x4ec565['id']]:{'id':_0x4ec565['id'],'params':JSON[_0x23820f(0x1e8)](_0x4ec565[_0x23820f(0x283)])}}}},this[_0x23820f(0x268)]));}['_stopPresenting'](){var _0x38f8cf=_0x1fe857,_0x4331b7;this[_0x38f8cf(0x258)][_0x38f8cf(0x281)](_0x38f8cf(0x277)),(_0x4331b7=this[_0x38f8cf(0x232)])==null||_0x4331b7[_0x38f8cf(0x275)](),this[_0x38f8cf(0x232)]=null;}[_0x1fe857(0x265)](){var _0x14a6cb=_0x1fe857,_0x497eed;(_0x497eed=this[_0x14a6cb(0x232)])==null||_0x497eed[_0x14a6cb(0x275)](),this['_status$'][_0x14a6cb(0x281)]('following');}[_0x1fe857(0x271)](){var _0x486e45=_0x1fe857,_0x159ebb;this[_0x486e45(0x258)][_0x486e45(0x281)](_0x486e45(0x277)),(_0x159ebb=this[_0x486e45(0x232)])==null||_0x159ebb[_0x486e45(0x275)](),this[_0x486e45(0x232)]=null;}[_0x1fe857(0x20f)](){var _0x3c5dc1=_0x1fe857,_0x36119a;this[_0x3c5dc1(0x258)][_0x3c5dc1(0x281)]('not-following'),(_0x36119a=this[_0x3c5dc1(0x232)])==null||_0x36119a['dispose']();}['_handleOperation'](_0x44fec5){var _0x26decb=_0x1fe857;if([_0x26decb(0x24f),'not-following',_0x26decb(0x24e)][_0x26decb(0x216)](this[_0x26decb(0x26f)])||!_0x44fec5[_0x26decb(0x260)][_0x26decb(0x222)]||_0x44fec5[_0x26decb(0x260)]['presenter']===this[_0x26decb(0x208)]['getMemberID']())return;this[_0x26decb(0x26f)]===_0x26decb(0x277)&&this[_0x26decb(0x265)]();const _0x126422=_0x44fec5[_0x26decb(0x260)][_0x26decb(0x25b)];Object['values'](_0x126422)[_0x26decb(0x22d)](_0x2d14a6=>{var _0x5935b3=_0x26decb;this[_0x5935b3(0x24a)][_0x5935b3(0x224)](_0x2d14a6['id'],_0x2d14a6['params']?JSON[_0x5935b3(0x234)](_0x2d14a6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x45a343=_0x1fe857,_0x55610a;this[_0x45a343(0x258)]['next']('offline'),(_0x55610a=this[_0x45a343(0x232)])==null||_0x55610a[_0x45a343(0x275)]();}[_0x1fe857(0x23d)](){var _0x50102b=_0x1fe857;this[_0x50102b(0x258)][_0x50102b(0x281)](_0x50102b(0x277)),this[_0x50102b(0x285)]();}};C=Z([f(0x2,_0x553fba),f(0x3,_0x4b8efd(L)),f(0x4,_0x48ab6d)],C);function Te(){var _0x1ac965=_0x1fe857;const _0x3337d9=_0xa14faf(I),_0x5489cc=_0xa14faf(_0xbd06da),_0x2b9019=_0x285ff5(()=>_0x5489cc[_0x1ac965(0x20a)](_0x5b5a69[_0x1ac965(0x28b)]),void 0x0,!0x1,[]),[_0x547eb4,_0x31ae3b]=_0x3ca38b(null),[_0x3f2a7d,_0xcf3856]=_0x3ca38b(h[_0x1ac965(0x247)]),_0x14367d=_0x185894(null);return _0x328286(()=>(_0x2b9019&&_0x3337d9[_0x1ac965(0x1e2)](_0x2b9019[_0x1ac965(0x212)]())[_0x1ac965(0x25f)](_0x4a38d2=>{var _0x7196f3=_0x1ac965;_0x31ae3b(_0x4a38d2),_0x14367d[_0x7196f3(0x221)]=_0x4a38d2['status$'][_0x7196f3(0x23e)](_0xb1dbe5=>{_0xcf3856(_0xb1dbe5);});}),()=>{var _0x25ca42=_0x1ac965,_0x269795;(_0x269795=_0x14367d['current'])==null||_0x269795[_0x25ca42(0x1f1)](),_0x14367d[_0x25ca42(0x221)]=null;}),[_0x2b9019,_0x3337d9]),_0x547eb4?_0x24836d(_0x361e50,{'align':_0x1ac965(0x289),'disabled':_0x3f2a7d===h[_0x1ac965(0x27b)],'className':_0x1ac965(0x229),'overlay':_0x24836d($e,{'status':_0x3f2a7d,'coordinator':_0x547eb4}),'children':_0x24836d('button',{'className':_0x5e62c8('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f2a7d===h[_0x1ac965(0x27b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f2a7d!==h[_0x1ac965(0x27b)]}),'type':_0x1ac965(0x1fb),'children':_0x24836d(B,{'className':_0x1ac965(0x288)})})}):null;}function $e(_0x3cf1d4){var _0x14c74f=_0x1fe857;const {status:_0x17da0c,coordinator:_0x328aec}=_0x3cf1d4;switch(_0x17da0c){case h[_0x14c74f(0x247)]:return _0x24836d(Fe,{'coordinator':_0x328aec});case h[_0x14c74f(0x236)]:return _0x24836d(He,{'coordinator':_0x328aec});case h[_0x14c74f(0x1f7)]:return _0x24836d(je,{'coordinator':_0x328aec});case h[_0x14c74f(0x27b)]:return _0x24836d(Ve,{});case h[_0x14c74f(0x218)]:return _0x24836d(Ue,{'coordinator':_0x328aec});default:return null;}}function Fe(_0x2a2208){var _0x3c440d=_0x1fe857;const {coordinator:_0xf3271d}=_0x2a2208;return _0x149352(_0x31ded6,{'children':[_0x24836d(_0x3c440d(0x26c),{'className':_0x3c440d(0x244),'children':_0x3c440d(0x27f)}),_0x24836d(_0x3666eb,{'onClick':()=>_0xf3271d['tryStartPresenting'](),'children':'Start'})]});}function He(_0x1e6294){var _0x46c184=_0x1fe857;const {coordinator:_0x2bedef}=_0x1e6294;return _0x149352(_0x31ded6,{'children':[_0x24836d(_0x46c184(0x26c),{'className':_0x46c184(0x244),'children':_0x46c184(0x225)}),_0x24836d(_0x3666eb,{'onClick':()=>_0x2bedef['stopFollowing'](),'children':_0x46c184(0x21e)})]});}function je(_0x19f055){var _0x158fe2=_0x1fe857;const {coordinator:_0x5c7af3}=_0x19f055;return _0x149352(_0x31ded6,{'children':[_0x24836d('div',{'className':_0x158fe2(0x244),'children':_0x158fe2(0x253)}),_0x24836d(_0x3666eb,{'variant':_0x158fe2(0x278),'onClick':()=>_0x5c7af3['startFollowing'](),'children':_0x158fe2(0x1ee)})]});}function Ue(_0x26f744){var _0x1d4e3c=_0x1fe857;const {coordinator:_0x1f30d4}=_0x26f744;return _0x149352(_0x31ded6,{'children':[_0x24836d('div',{'className':_0x1d4e3c(0x244),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x24836d(_0x3666eb,{'variant':_0x1d4e3c(0x26d),'onClick':()=>_0x1f30d4[_0x1d4e3c(0x274)](),'children':_0x1d4e3c(0x250)})]});}function Ve(){return _0x24836d(_0x31ded6,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1fe857(0x1f4)],ke=(_0x21d4d0,_0x3210b4,_0x958008,_0x162d33)=>{var _0x2414c8=_0x1fe857;for(var _0x3e1a3e=_0x162d33>0x1?void 0x0:_0x162d33?Me(_0x3210b4,_0x958008):_0x3210b4,_0x165cf8=_0x21d4d0[_0x2414c8(0x28a)]-0x1,_0x400a77;_0x165cf8>=0x0;_0x165cf8--)(_0x400a77=_0x21d4d0[_0x165cf8])&&(_0x3e1a3e=_0x400a77(_0x3e1a3e)||_0x3e1a3e);return _0x3e1a3e;},$=(_0x581d34,_0x5937e3)=>(_0x19ef39,_0x1d9549)=>_0x5937e3(_0x19ef39,_0x1d9549,_0x581d34);let b=class extends _0x38b3ba{constructor(_0x23d9da,_0x180d9a){var _0x3fe899=_0x1fe857;super(),this[_0x3fe899(0x1f2)]=_0x23d9da,this['_uiPartsService']=_0x180d9a,this[_0x3fe899(0x1e7)]();}['_mountLiveShare'](){var _0x106faa=_0x1fe857;this[_0x106faa(0x264)](this[_0x106faa(0x245)][_0x106faa(0x1fc)](_0x219afb['HEADER_MENU'],()=>_0x3674ad(Te,this[_0x106faa(0x1f2)])));}};b=ke([$(0x0,_0x4b8efd(_0x3d5dff)),$(0x1,_0x284010)],b);var Ge=Object['defineProperty'],We=Object[_0x1fe857(0x1f4)],Ye=(_0xb45f67,_0x28ba55,_0xd8d2c2)=>_0x28ba55 in _0xb45f67?Ge(_0xb45f67,_0x28ba55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd8d2c2}):_0xb45f67[_0x28ba55]=_0xd8d2c2,Be=(_0x30246a,_0x3139cb,_0xe9977,_0x2a5dbc)=>{var _0x522b95=_0x1fe857;for(var _0x5e68e8=_0x2a5dbc>0x1?void 0x0:_0x2a5dbc?We(_0x3139cb,_0xe9977):_0x3139cb,_0x28a1e6=_0x30246a[_0x522b95(0x28a)]-0x1,_0x55ec0c;_0x28a1e6>=0x0;_0x28a1e6--)(_0x55ec0c=_0x30246a[_0x28a1e6])&&(_0x5e68e8=_0x55ec0c(_0x5e68e8)||_0x5e68e8);return _0x5e68e8;},F=(_0x58f9f6,_0x4585f2)=>(_0x366b5b,_0x3e55e6)=>_0x4585f2(_0x366b5b,_0x3e55e6,_0x58f9f6),J=(_0x2ec2ca,_0x16a6ff,_0xc358cb)=>Ye(_0x2ec2ca,typeof _0x16a6ff!='symbol'?_0x16a6ff+'':_0x16a6ff,_0xc358cb);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x444bb4{constructor(_0x1c0a1b=T,_0x8feb65,_0x8c23cd){var _0x4f3f88=_0x1fe857;super(),this[_0x4f3f88(0x279)]=_0x1c0a1b,this[_0x4f3f88(0x1f2)]=_0x8feb65,this[_0x4f3f88(0x217)]=_0x8c23cd;const {..._0x452ff7}=_0x4bb93d({},T,this[_0x4f3f88(0x279)]);this[_0x4f3f88(0x217)][_0x4f3f88(0x254)](Oe,_0x452ff7);}['onStarting'](){var _0x5270d2=_0x1fe857;_0xaa7f98(this[_0x5270d2(0x1f2)],_0x54161b([[L],[I],[m],[b]],this[_0x5270d2(0x279)][_0x5270d2(0x280)])),_0x3a8db2(this[_0x5270d2(0x1f2)],[[m]]);}[_0x1fe857(0x201)](){var _0x2ac12e=_0x1fe857;_0x3a8db2(this[_0x2ac12e(0x1f2)],[[b]]);}};J(O,'type',_0x5b5a69['UNIVER_UNKNOWN']),J(O,_0x1fe857(0x1df),Ze),O=Be([_0x1238c5(_0x1cb684),F(0x1,_0x4b8efd(_0x3d5dff)),F(0x2,_0x553fba)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0xb5a573=_0xa6c5;(function(_0x35bbd9,_0x36c5d6){var _0x2078ed=_0xa6c5,_0x426d25=_0x35bbd9();while(!![]){try{var _0x361a7f=-parseInt(_0x2078ed(0xd0))/0x1+-parseInt(_0x2078ed(0x12e))/0x2+-parseInt(_0x2078ed(0x110))/0x3+-parseInt(_0x2078ed(0x147))/0x4+-parseInt(_0x2078ed(0xc0))/0x5+parseInt(_0x2078ed(0xb2))/0x6+-parseInt(_0x2078ed(0xf5))/0x7*(-parseInt(_0x2078ed(0xc8))/0x8);if(_0x361a7f===_0x36c5d6)break;else _0x426d25['push'](_0x426d25['shift']());}catch(_0x12954e){_0x426d25['push'](_0x426d25['shift']());}}}(_0xa808,0x63b57));var q=Object[_0xb5a573(0x123)],z=(_0x18188e,_0x265afc,_0xc056f9)=>_0x265afc in _0x18188e?q(_0x18188e,_0x265afc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc056f9}):_0x18188e[_0x265afc]=_0xc056f9,d=(_0x2e57e4,_0xf5a1d6,_0x1ac388)=>z(_0x2e57e4,typeof _0xf5a1d6!=_0xb5a573(0x10b)?_0xf5a1d6+'':_0xf5a1d6,_0x1ac388);import{CollaborationSessionService as _0x4060c7,SessionStatus as _0x56066c,UniverCollaborationClientPlugin as _0x4dd30b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x250142,toDisposable as _0x48fd6a,Inject as _0x25c40d,IUniverInstanceService as _0x5844ca,Injector as _0x23997e,IConfigService as _0x94ff8f,ICommandService as _0x1cfa91,RxDisposable as _0x418f74,UniverInstanceType as _0x1101b5,DisposableCollection as _0x4833fc,CommandType as _0x56378a,DependentOn as _0x39b586,Plugin as _0x5e8534,merge as _0x2a990a,registerDependencies as _0x2e1b41,mergeOverrideWithDependencies as _0x502523,touchDependencies as _0x163c27}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x163e4d,InsertSheetMutation as _0xdd5f97}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4cc003,SetScrollOperation as _0x49d044}from'@univerjs/sheets-ui';import{useDependency as _0x17f9c4,useObservable as _0x5e0586,IUIPartsService as _0x277d3f,BuiltInUIPart as _0x3e8244,connectInjector as _0x598d28}from'@univerjs/ui';import{jsx as _0x1500a3,jsxs as _0x41e94b,Fragment as _0x533264}from'react/jsx-runtime';import{Dropdown as _0xe6f284,clsx as _0x4aa598,Button as _0x589980}from'@univerjs/design';import{forwardRef as _0x421cb2,useRef as _0x2b7cde,createElement as _0x576f64,useState as _0x55d438,useEffect as _0x58a87a}from'react';import{CollaborationEvent as _0x3fac8b,parseProtocolChangeset as _0x1368e0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xb5b223,Subject as _0x11092e}from'rxjs';import{takeUntil as _0x5f0151,throttleTime as _0x285441}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x250142{constructor(){var _0x484680=_0xb5a573;super(...arguments),d(this,_0x484680(0xf8),new Set()),d(this,'_reporters',new Set());}[_0xb5a573(0x13c)](_0x173c29){var _0x211cfc=_0xb5a573;return this[_0x211cfc(0xf8)]['add'](_0x173c29),_0x48fd6a(()=>this[_0x211cfc(0xf8)][_0x211cfc(0xea)](_0x173c29));}[_0xb5a573(0x151)](_0x4a5345){var _0x738c4b=_0xb5a573;return this[_0x738c4b(0x114)][_0x738c4b(0x133)](_0x4a5345),_0x48fd6a(()=>this['_reporters'][_0x738c4b(0xea)](_0x4a5345));}[_0xb5a573(0x108)](_0x351785){var _0x56f678=_0xb5a573;return this[_0x56f678(0xf8)][_0x56f678(0x101)](_0x351785);}['getInitialStates'](_0x347fb2){var _0x2c94fb=_0xb5a573;return Array[_0x2c94fb(0xf1)](this[_0x2c94fb(0x114)])['map'](_0x497a73=>_0x497a73(_0x347fb2));}}var Ee=Object[_0xb5a573(0x117)],we=(_0x50ef32,_0x3b657f,_0x20797c,_0x4c0f10)=>{var _0x13e7d2=_0xb5a573;for(var _0x1162e8=_0x4c0f10>0x1?void 0x0:_0x4c0f10?Ee(_0x3b657f,_0x20797c):_0x3b657f,_0x3dfbc1=_0x50ef32[_0x13e7d2(0xe0)]-0x1,_0x142f0a;_0x3dfbc1>=0x0;_0x3dfbc1--)(_0x142f0a=_0x50ef32[_0x3dfbc1])&&(_0x1162e8=_0x142f0a(_0x1162e8)||_0x1162e8);return _0x1162e8;},Ne=(_0x12c63c,_0x4199f3)=>(_0x56921f,_0x39ffdf)=>_0x4199f3(_0x56921f,_0x39ffdf,_0x12c63c);let m=class extends _0x250142{constructor(_0x3308ff){var _0x221a12=_0xb5a573;super(),this[_0x221a12(0xb5)]=_0x3308ff,this['_init']();}[_0xb5a573(0xfb)](){var _0x490701=_0xb5a573;[_0x4cc003['id'],_0x49d044['id'],_0x163e4d['id']][_0x490701(0xb1)](_0x337d20=>{var _0xdc1fd3=_0x490701;this[_0xdc1fd3(0xcc)](this[_0xdc1fd3(0xb5)][_0xdc1fd3(0x13c)](_0x337d20));});}};m=we([Ne(0x0,_0x25c40d(L))],m);function _0xa808(){var _0x5807b0=['default','current','_startPresenting','operations','ONLINE','_commandService','from','_handleOffline','next','_config','47369nWhxvU','onCommandExecuted','attrs','_sharedOperations','evenodd','IDLE','_init','_commandDisposable','idle','_collabSessionService','Stop\x20presenting','getLiveShareCoordinator','has','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','text','none','entries','send','shouldShareOperation','offline','set','symbol','find','replace','1em','xlink:href','1931262ZEyXhd','icon','getMemberID','_univerInstanceService','_reporters','stringify','_stopFollowing','getOwnPropertyDescriptor','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_beIdle','pluginName','sessionStatus$','getCurrentTypeOfUnit$','Start','SAME_OPERATION_SHARE_INTERVAL','tag','onRendered','currentColor','defineProperty','_unitID','NEW_CHANGESETS','LIVESHARE_TERMINATE','random','getUnitId','_presenter','init','LIVESHARE_OPERATION','className','getValue','1136474boFWxC','LIVESHARE_NEW_HOST','parse','LIVESHARE_FETCH_OPERATIONS','type','add','values','_status$','_handleOnline','path','_fetchOperations','clear','not-following','pipe','registerSharedOperation','stopPresenting','event$','apply','OFFLINE','status$','You\x27re\x20following\x20the\x20presenter','presenting','sheet','params','getOwnPropertySymbols','3038052QuuFwx','extend','_collabSession','indexOf','following','trim','url(#$1','_handleNewHost','subscribe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','stopFollowing','_injector','end','defIds','live-share-icon','createInstance','_startLiveShareCoordinator','forEach','4164768cHwCVy','getTypeOfUnitAdded$','univer-size-4','_liveShareService','NOT_FOLLOWING','_startFollowing','div','registerComponent','string','get','executeCommand','mask','PRESENTING','children','1496690xJmOrM','includes','startFollowing','colorChannel1','_mountLiveShare','override','dispose','hasOwnProperty','3272PNLoQa','UNIVER_SHEET','map','setConfig','disposeWithMe','dispose$','UniverIcon','LiveShareIcon','782582RjgPVS','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','button','_handleTerminate','_configService','asObservable','complete','You\x27re\x20presenting\x20the\x20document','concat','substring','displayName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','prototype','_uiPartsService','length','tryStartPresenting','presenter','data','fill','call','defs','_handleNewChangeSets','_entities','_status','delete'];_0xa808=function(){return _0x5807b0;};return _0xa808();}var c=function(){var _0x45c732=_0xb5a573;return c=Object['assign']||function(_0x480694){var _0x2c3130=_0xa6c5;for(var _0x46b696,_0x38c01f=0x1,_0x26edbb=arguments[_0x2c3130(0xe0)];_0x38c01f<_0x26edbb;_0x38c01f++){_0x46b696=arguments[_0x38c01f];for(var _0x7ad333 in _0x46b696)Object[_0x2c3130(0xde)][_0x2c3130(0xc7)]['call'](_0x46b696,_0x7ad333)&&(_0x480694[_0x7ad333]=_0x46b696[_0x7ad333]);}return _0x480694;},c[_0x45c732(0x13f)](this,arguments);},Ce=function(_0x1c87b2,_0x20656e){var _0x2de0ed=_0xb5a573,_0x229df9={};for(var _0x37ce6e in _0x1c87b2)Object[_0x2de0ed(0xde)][_0x2de0ed(0xc7)]['call'](_0x1c87b2,_0x37ce6e)&&_0x20656e['indexOf'](_0x37ce6e)<0x0&&(_0x229df9[_0x37ce6e]=_0x1c87b2[_0x37ce6e]);if(_0x1c87b2!=null&&typeof Object[_0x2de0ed(0x146)]=='function'){for(var _0x548796=0x0,_0x37ce6e=Object[_0x2de0ed(0x146)](_0x1c87b2);_0x548796<_0x37ce6e[_0x2de0ed(0xe0)];_0x548796++)_0x20656e[_0x2de0ed(0x14a)](_0x37ce6e[_0x548796])<0x0&&Object[_0x2de0ed(0xde)]['propertyIsEnumerable'][_0x2de0ed(0xe5)](_0x1c87b2,_0x37ce6e[_0x548796])&&(_0x229df9[_0x37ce6e[_0x548796]]=_0x1c87b2[_0x37ce6e[_0x548796]]);}return _0x229df9;},W=_0x421cb2(function(_0x315424,_0x4193e3){var _0x487faf=_0xb5a573,_0x292d6c=_0x315424[_0x487faf(0x111)],_0x5d4418=_0x315424['id'],_0x4327ba=_0x315424[_0x487faf(0x12c)],_0x129621=_0x315424['extend'],_0x2c3401=Ce(_0x315424,[_0x487faf(0x111),'id',_0x487faf(0x12c),_0x487faf(0x148)]),_0x12471='univerjs-icon\x20univerjs-icon-'[_0x487faf(0xda)](_0x5d4418,'\x20')[_0x487faf(0xda)](_0x4327ba||'')[_0x487faf(0x14c)](),_0x4037ca=_0x2b7cde('_'['concat'](Le()));return Y(_0x292d6c,''[_0x487faf(0xda)](_0x5d4418),{'defIds':_0x292d6c[_0x487faf(0x156)],'idSuffix':_0x4037ca['current']},c({'ref':_0x4193e3,'className':_0x12471},_0x2c3401),_0x129621);});function Y(_0x138ab5,_0x47a833,_0x5919ec,_0x19179b,_0x1941bd){var _0x1b0f16=_0xb5a573;return _0x576f64(_0x138ab5[_0x1b0f16(0x120)],c(c({'key':_0x47a833},De(_0x138ab5,_0x5919ec,_0x1941bd)),_0x19179b),(xe(_0x138ab5,_0x5919ec)[_0x1b0f16(0xbf)]||[])[_0x1b0f16(0xca)](function(_0x2c9d72,_0x2891c9){var _0x4a1a72=_0x1b0f16;return Y(_0x2c9d72,''[_0x4a1a72(0xda)](_0x47a833,'-')[_0x4a1a72(0xda)](_0x138ab5[_0x4a1a72(0x120)],'-')[_0x4a1a72(0xda)](_0x2891c9),_0x5919ec,void 0x0,_0x1941bd);}));}function De(_0x112fcb,_0x25272c,_0x179fa0){var _0x56f206=_0xb5a573,_0x2a40e8=c({},_0x112fcb[_0x56f206(0xf7)]);_0x179fa0!=null&&_0x179fa0['colorChannel1']&&_0x2a40e8[_0x56f206(0xe4)]==='colorChannel1'&&(_0x2a40e8[_0x56f206(0xe4)]=_0x179fa0[_0x56f206(0xc3)]),_0x112fcb[_0x56f206(0x120)]===_0x56f206(0xbd)&&_0x2a40e8['id']&&(_0x2a40e8['id']=_0x2a40e8['id']+_0x25272c[_0x56f206(0x102)]),Object['entries'](_0x2a40e8)[_0x56f206(0xb1)](function(_0x64d72c){var _0xa59c2f=_0x56f206,_0x47cd7e=_0x64d72c[0x0],_0x1175e8=_0x64d72c[0x1];_0x47cd7e===_0xa59c2f(0xbd)&&typeof _0x1175e8==_0xa59c2f(0xba)&&(_0x2a40e8[_0x47cd7e]=_0x1175e8[_0xa59c2f(0x10d)](/url\(#(.*)\)/,_0xa59c2f(0x14d)[_0xa59c2f(0xda)](_0x25272c[_0xa59c2f(0x102)],')')));});var _0x20cff2=_0x25272c[_0x56f206(0x156)];return!_0x20cff2||_0x20cff2[_0x56f206(0xe0)]===0x0||(_0x112fcb['tag']==='use'&&_0x2a40e8['xlink:href']&&(_0x2a40e8[_0x56f206(0x10f)]=_0x2a40e8['xlink:href']+_0x25272c[_0x56f206(0x102)]),Object[_0x56f206(0x106)](_0x2a40e8)[_0x56f206(0xb1)](function(_0x1b422a){var _0x1652ce=_0x56f206,_0x2bab6d=_0x1b422a[0x0],_0x1e03ca=_0x1b422a[0x1];typeof _0x1e03ca==_0x1652ce(0xba)&&(_0x2a40e8[_0x2bab6d]=_0x1e03ca['replace'](/url\(#(.*)\)/,_0x1652ce(0x14d)['concat'](_0x25272c['idSuffix'],')')));})),_0x2a40e8;}function xe(_0x171808,_0x1692ab){var _0x30d4bf=_0xb5a573,_0x3e7e91,_0xbe59f8=_0x1692ab[_0x30d4bf(0x156)];return!_0xbe59f8||_0xbe59f8[_0x30d4bf(0xe0)]===0x0?_0x171808:_0x171808[_0x30d4bf(0x120)]===_0x30d4bf(0xe6)&&(!((_0x3e7e91=_0x171808[_0x30d4bf(0xbf)])===null||_0x3e7e91===void 0x0)&&_0x3e7e91[_0x30d4bf(0xe0)])?c(c({},_0x171808),{'children':_0x171808[_0x30d4bf(0xbf)][_0x30d4bf(0xca)](function(_0x25032a){var _0x509706=_0x30d4bf;return typeof _0x25032a[_0x509706(0xf7)]['id']==_0x509706(0xba)&&_0xbe59f8&&_0xbe59f8[_0x509706(0xc1)](_0x25032a[_0x509706(0xf7)]['id'])?c(c({},_0x25032a),{'attrs':c(c({},_0x25032a[_0x509706(0xf7)]),{'id':_0x25032a[_0x509706(0xf7)]['id']+_0x1692ab['idSuffix']})}):_0x25032a;})}):_0x171808;}function Le(){var _0x37a888=_0xb5a573;return Math[_0x37a888(0x127)]()['toString'](0x24)[_0x37a888(0xdb)](0x2,0x8);}W['displayName']=_0xb5a573(0xce);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb5a573(0x105),'viewBox':'0\x200\x2017\x2017','width':_0xb5a573(0x10e),'height':_0xb5a573(0x10e)},'children':[{'tag':'path','attrs':{'fill':_0xb5a573(0x122),'d':_0xb5a573(0xd2)}},{'tag':_0xb5a573(0x137),'attrs':{'fill':'currentColor','d':_0xb5a573(0x150),'fillRule':_0xb5a573(0xf9),'clipRule':'evenodd'}}]},B=_0x421cb2(function(_0xc9ad31,_0x2c6b35){var _0x17d831=_0xb5a573;return _0x576f64(W,Object['assign']({},_0xc9ad31,{'id':_0x17d831(0x157),'ref':_0x2c6b35,'icon':ye}));});B[_0xb5a573(0xdc)]=_0xb5a573(0xcf);var Re=Object[_0xb5a573(0x117)],Z=(_0x2110f3,_0x17c50c,_0x19e6ee,_0x2c7d89)=>{var _0x4e0b57=_0xb5a573;for(var _0x11a74c=_0x2c7d89>0x1?void 0x0:_0x2c7d89?Re(_0x17c50c,_0x19e6ee):_0x17c50c,_0x55be7c=_0x2110f3[_0x4e0b57(0xe0)]-0x1,_0x17a47a;_0x55be7c>=0x0;_0x55be7c--)(_0x17a47a=_0x2110f3[_0x55be7c])&&(_0x11a74c=_0x17a47a(_0x11a74c)||_0x11a74c);return _0x11a74c;},f=(_0x4ca70f,_0x13a830)=>(_0x2e22c4,_0x2df70b)=>_0x13a830(_0x2e22c4,_0x2df70b,_0x4ca70f);let I=class extends _0x418f74{constructor(_0x422f33,_0x5d774e,_0x3b7835){var _0x230507=_0xb5a573;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x422f33,this[_0x230507(0x154)]=_0x5d774e,this[_0x230507(0xfe)]=_0x3b7835,this[_0x230507(0xfb)]());}async[_0xb5a573(0x100)](_0x489896){var _0x39a0c9=_0xb5a573;return this['_entities'][_0x39a0c9(0x101)](_0x489896)||await this[_0x39a0c9(0xb0)](_0x489896),this['_entities'][_0x39a0c9(0xbb)](_0x489896);}[_0xb5a573(0xfb)](){var _0x5481a4=_0xb5a573;this['_univerInstanceService'][_0x5481a4(0xb3)](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this[_0x5481a4(0xcd)]))[_0x5481a4(0x14f)](async _0x4ded0a=>{var _0x36c111=_0x5481a4;const _0x3f8e70=_0x4ded0a[_0x36c111(0x128)]();this[_0x36c111(0xe8)][_0x36c111(0x101)](_0x3f8e70)||this['_startLiveShareCoordinator'](_0x3f8e70);}),this[_0x5481a4(0x113)]['getTypeOfUnitDisposed$'](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this['dispose$']))[_0x5481a4(0x14f)](_0x17a7ff=>{var _0x280141=_0x5481a4;const _0xc0747c=_0x17a7ff[_0x280141(0x128)](),_0x48fa78=this[_0x280141(0xe8)][_0x280141(0xbb)](_0xc0747c);_0x48fa78==null||_0x48fa78[_0x280141(0xc6)]();});}async[_0xb5a573(0xb0)](_0x593f94){var _0x578c24=_0xb5a573;const _0x58ae28=await this[_0x578c24(0xfe)]['requireSession'](_0x593f94),_0x406e20=this[_0x578c24(0x154)][_0x578c24(0x158)](C,_0x593f94,_0x58ae28);return _0x406e20[_0x578c24(0x12a)](),this[_0x578c24(0xe8)][_0x578c24(0x10a)](_0x593f94,_0x406e20),_0x406e20;}};I=Z([f(0x0,_0x5844ca),f(0x1,_0x25c40d(_0x23997e)),f(0x2,_0x25c40d(_0x4060c7))],I);var h=(_0x533652=>(_0x533652[_0xb5a573(0x140)]='offline',_0x533652[_0xb5a573(0xfa)]=_0xb5a573(0xfd),_0x533652['FOLLOWING']=_0xb5a573(0x14b),_0x533652[_0xb5a573(0xb6)]=_0xb5a573(0x13a),_0x533652[_0xb5a573(0xbe)]=_0xb5a573(0x143),_0x533652))(h||{});const Pe=_0xb5a573(0x11f),Ae=0xc8;let C=class extends _0x418f74{constructor(_0x3ba838,_0x52736f,_0x5448ed,_0x2c5746,_0x29206c){var _0x2f147f=_0xb5a573;super(),d(this,_0x2f147f(0x135),new _0xb5b223(_0x2f147f(0xfd))),d(this,_0x2f147f(0x141),this[_0x2f147f(0x135)][_0x2f147f(0xd7)]()),d(this,'_init',!0x1),d(this,_0x2f147f(0xfc),null),d(this,_0x2f147f(0x129),null),(this[_0x2f147f(0x124)]=_0x3ba838,this['_collabSession']=_0x52736f,this['_configService']=_0x5448ed,this[_0x2f147f(0xb5)]=_0x2c5746,this[_0x2f147f(0xf0)]=_0x29206c);}get[_0xb5a573(0xe9)](){var _0x53991b=_0xb5a573;return this[_0x53991b(0x135)][_0x53991b(0x12d)]();}['dispose'](){var _0x5b7d25=_0xb5a573,_0x3ae378;(_0x3ae378=this['_commandDisposable'])==null||_0x3ae378['dispose'](),this[_0x5b7d25(0x135)][_0x5b7d25(0xf3)](_0x5b7d25(0xfd)),this[_0x5b7d25(0x135)][_0x5b7d25(0xd8)]();}['init'](){var _0x2a58f1=_0xb5a573;this[_0x2a58f1(0xfb)]||(this[_0x2a58f1(0xfb)]=!0x0,this[_0x2a58f1(0x149)][_0x2a58f1(0x11c)]['pipe'](_0x5f0151(this[_0x2a58f1(0xcd)]))[_0x2a58f1(0x14f)](_0x131c71=>{var _0x38ad4c=_0x2a58f1;switch(_0x131c71){case _0x56066c['OFFLINE']:this[_0x38ad4c(0xf2)]();break;case _0x56066c[_0x38ad4c(0xef)]:this[_0x38ad4c(0x136)]();break;}}),this[_0x2a58f1(0x149)][_0x2a58f1(0x13e)]['pipe'](_0x5f0151(this['dispose$']))['subscribe'](_0x11ca74=>{var _0x1b2e5f=_0x2a58f1;const {eventID:_0x33b820}=_0x11ca74;switch(_0x33b820){case _0x3fac8b[_0x1b2e5f(0x12f)]:this[_0x1b2e5f(0x14e)](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x12b)]:this['_handleOperation'](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x126)]:this['_handleTerminate']();break;case _0x3fac8b[_0x1b2e5f(0x125)]:this[_0x1b2e5f(0xe7)](_0x11ca74);break;}}));}[_0xb5a573(0xe1)](){var _0x1ef7a0=_0xb5a573;this[_0x1ef7a0(0x149)][_0x1ef7a0(0x107)]({'eventID':_0x3fac8b[_0x1ef7a0(0x119)],'data':{'unitID':this[_0x1ef7a0(0x124)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1ef7a0(0x124)]);}[_0xb5a573(0x13d)](){var _0x2fb3a2=_0xb5a573;this[_0x2fb3a2(0xe9)]==='presenting'&&(this['_status$'][_0x2fb3a2(0xf3)]('idle'),this['_collabSession'][_0x2fb3a2(0x107)]({'eventID':_0x3fac8b[_0x2fb3a2(0x126)],'data':{'unitID':this[_0x2fb3a2(0x124)]}},this[_0x2fb3a2(0x124)]));}[_0xb5a573(0xc2)](){var _0x1f290d=_0xb5a573;this[_0x1f290d(0xe9)]==='not-following'&&(this['_status$'][_0x1f290d(0xf3)](_0x1f290d(0x14b)),this['_startFollowing']());}[_0xb5a573(0x153)](){var _0x10b5ee=_0xb5a573;this[_0x10b5ee(0xe9)]==='following'&&this[_0x10b5ee(0x116)]();}[_0xb5a573(0x14e)](_0x1d5957){var _0x28289f=_0xb5a573;const {presenter:_0x262bba}=_0x1d5957[_0x28289f(0xe3)],_0x2ae66a=this[_0x28289f(0x149)][_0x28289f(0x112)]();this[_0x28289f(0x129)]=_0x262bba,_0x262bba===_0x2ae66a?(this['_stopFollowing'](),this[_0x28289f(0xed)]()):this[_0x28289f(0xe9)]!=='not-following'&&(this['_stopPresenting'](),this[_0x28289f(0xb7)]());}[_0xb5a573(0x138)](){var _0x38a8be=_0xb5a573;const _0xd07073={'eventID':_0x3fac8b[_0x38a8be(0x131)]};this[_0x38a8be(0x149)][_0x38a8be(0x107)](_0xd07073,this[_0x38a8be(0x124)]);}[_0xb5a573(0xd5)](){var _0x2c4196=_0xb5a573;this[_0x2c4196(0x129)]=null,this[_0x2c4196(0xe9)]!==_0x2c4196(0x143)&&this[_0x2c4196(0x11a)]();}[_0xb5a573(0xe7)](_0x427830){var _0x1d32f5=_0xb5a573;if(this[_0x1d32f5(0xe9)]===_0x1d32f5(0x14b)&&this['_presenter']===_0x427830[_0x1d32f5(0xe3)]['memberID']){const _0x3f249c=_0x1368e0(_0x427830[_0x1d32f5(0xe3)])['mutations']['reverse']()[_0x1d32f5(0x10c)](_0x15ea47=>_0x15ea47['id']===_0xdd5f97['id']);if(_0x3f249c){const _0x482123=_0x3f249c[_0x1d32f5(0x145)]['unitId'],_0x15e3b9=_0x3f249c['params'][_0x1d32f5(0x144)]['id'];setTimeout(()=>{var _0x10a453=_0x1d32f5;this[_0x10a453(0xf0)][_0x10a453(0xbc)](_0x163e4d['id'],{'unitId':_0x482123,'subUnitId':_0x15e3b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x47297=_0xb5a573;this['_status$'][_0x47297(0xf3)](_0x47297(0x143));const _0x254859=new Map(),_0x5a89fe=this['_commandDisposable']=new _0x4833fc();_0x5a89fe[_0x47297(0x133)](_0x48fd6a(()=>{var _0x2f52ca=_0x47297;_0x254859[_0x2f52ca(0xb1)](_0xc62ef6=>_0xc62ef6[_0x2f52ca(0xd8)]()),_0x254859[_0x2f52ca(0x139)]();})),_0x5a89fe['add'](this[_0x47297(0xf0)][_0x47297(0xf6)](_0x2cd2ec=>{var _0x4b51fd=_0x47297,_0x5c7147;if(_0x2cd2ec[_0x4b51fd(0x132)]!==_0x56378a['OPERATION']||!this[_0x4b51fd(0xb5)]['shouldShareOperation'](_0x2cd2ec['id']))return;const {id:_0x5b19d5}=_0x2cd2ec;let _0x395fc6;_0x254859[_0x4b51fd(0x101)](_0x5b19d5)?_0x395fc6=_0x254859[_0x4b51fd(0xbb)](_0x5b19d5):(_0x395fc6=new _0x11092e(),_0x254859['set'](_0x5b19d5,_0x395fc6),_0x395fc6['pipe'](_0x285441((_0x5c7147=this[_0x4b51fd(0xd6)]['getConfig'](Pe))!=null?_0x5c7147:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b51fd(0x14f)](_0x28adf2=>{var _0x2881a3=_0x4b51fd;this[_0x2881a3(0x149)][_0x2881a3(0x107)]({'eventID':_0x3fac8b[_0x2881a3(0x12b)],'data':{'unitID':this[_0x2881a3(0x124)],'operations':{[_0x28adf2['id']]:{'id':_0x28adf2['id'],'params':JSON[_0x2881a3(0x115)](_0x28adf2[_0x2881a3(0x145)])}}}},this['_unitID']);})),_0x395fc6[_0x4b51fd(0xf3)](_0x2cd2ec);})),this[_0x47297(0xb5)]['getInitialStates'](this[_0x47297(0x124)])['forEach'](_0x2f6b1c=>this[_0x47297(0x149)]['send']({'eventID':_0x3fac8b[_0x47297(0x12b)],'data':{'unitID':this[_0x47297(0x124)],'operations':{[_0x2f6b1c['id']]:{'id':_0x2f6b1c['id'],'params':JSON[_0x47297(0x115)](_0x2f6b1c[_0x47297(0x145)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3908e5=_0xb5a573,_0x1d428e;this['_status$']['next'](_0x3908e5(0xfd)),(_0x1d428e=this['_commandDisposable'])==null||_0x1d428e[_0x3908e5(0xc6)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x5588ba=_0xb5a573,_0x20508e;(_0x20508e=this[_0x5588ba(0xfc)])==null||_0x20508e[_0x5588ba(0xc6)](),this[_0x5588ba(0x135)][_0x5588ba(0xf3)](_0x5588ba(0x14b));}[_0xb5a573(0x11a)](){var _0x21562d=_0xb5a573,_0x4eb6cd;this[_0x21562d(0x135)][_0x21562d(0xf3)]('idle'),(_0x4eb6cd=this[_0x21562d(0xfc)])==null||_0x4eb6cd[_0x21562d(0xc6)](),this['_commandDisposable']=null;}[_0xb5a573(0x116)](){var _0x3de871=_0xb5a573,_0x34178f;this[_0x3de871(0x135)][_0x3de871(0xf3)](_0x3de871(0x13a)),(_0x34178f=this['_commandDisposable'])==null||_0x34178f[_0x3de871(0xc6)]();}['_handleOperation'](_0xcf7b58){var _0x1dab09=_0xb5a573;if([_0x1dab09(0x143),'not-following',_0x1dab09(0x109)][_0x1dab09(0xc1)](this[_0x1dab09(0xe9)])||!_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]||_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]===this[_0x1dab09(0x149)][_0x1dab09(0x112)]())return;this[_0x1dab09(0xe9)]===_0x1dab09(0xfd)&&this[_0x1dab09(0xb7)]();const _0x5b42c2=_0xcf7b58['data'][_0x1dab09(0xee)];Object[_0x1dab09(0x134)](_0x5b42c2)[_0x1dab09(0xb1)](_0xcba08a=>{var _0x23981e=_0x1dab09;this[_0x23981e(0xf0)][_0x23981e(0xbc)](_0xcba08a['id'],_0xcba08a['params']?JSON[_0x23981e(0x130)](_0xcba08a[_0x23981e(0x145)]):null,{'fromCollab':!0x0});});}[_0xb5a573(0xf2)](){var _0x406430=_0xb5a573,_0x4dfac2;this[_0x406430(0x135)][_0x406430(0xf3)](_0x406430(0x109)),(_0x4dfac2=this[_0x406430(0xfc)])==null||_0x4dfac2[_0x406430(0xc6)]();}[_0xb5a573(0x136)](){var _0x4206dc=_0xb5a573;this[_0x4206dc(0x135)]['next'](_0x4206dc(0xfd)),this[_0x4206dc(0x138)]();}};C=Z([f(0x2,_0x94ff8f),f(0x3,_0x25c40d(L)),f(0x4,_0x1cfa91)],C);function Te(){var _0x2a2980=_0xb5a573;const _0x4f2e31=_0x17f9c4(I),_0x55c8c4=_0x17f9c4(_0x5844ca),_0x3ebae7=_0x5e0586(()=>_0x55c8c4[_0x2a2980(0x11d)](_0x1101b5[_0x2a2980(0xc9)]),void 0x0,!0x1,[]),[_0x39f03c,_0xa87f14]=_0x55d438(null),[_0x12800f,_0x10407d]=_0x55d438(h[_0x2a2980(0xfa)]),_0x47e67f=_0x2b7cde(null);return _0x58a87a(()=>(_0x3ebae7&&_0x4f2e31['getLiveShareCoordinator'](_0x3ebae7[_0x2a2980(0x128)]())['then'](_0x4a59db=>{var _0x4d36fc=_0x2a2980;_0xa87f14(_0x4a59db),_0x47e67f[_0x4d36fc(0xec)]=_0x4a59db['status$'][_0x4d36fc(0x14f)](_0x181865=>{_0x10407d(_0x181865);});}),()=>{var _0x4d966e=_0x2a2980,_0x564f4e;(_0x564f4e=_0x47e67f[_0x4d966e(0xec)])==null||_0x564f4e['unsubscribe'](),_0x47e67f['current']=null;}),[_0x3ebae7,_0x4f2e31]),_0x39f03c?_0x1500a3(_0xe6f284,{'align':_0x2a2980(0x155),'disabled':_0x12800f===h[_0x2a2980(0x140)],'className':_0x2a2980(0xdd),'overlay':_0x1500a3($e,{'status':_0x12800f,'coordinator':_0x39f03c}),'children':_0x1500a3(_0x2a2980(0xd4),{'className':_0x4aa598('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12800f===h[_0x2a2980(0x140)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12800f!==h[_0x2a2980(0x140)]}),'type':_0x2a2980(0xd4),'children':_0x1500a3(B,{'className':_0x2a2980(0xb4)})})}):null;}function $e(_0xdfac62){var _0x1270cd=_0xb5a573;const {status:_0x183b45,coordinator:_0x21e06d}=_0xdfac62;switch(_0x183b45){case h[_0x1270cd(0xfa)]:return _0x1500a3(Fe,{'coordinator':_0x21e06d});case h['FOLLOWING']:return _0x1500a3(He,{'coordinator':_0x21e06d});case h[_0x1270cd(0xb6)]:return _0x1500a3(je,{'coordinator':_0x21e06d});case h[_0x1270cd(0x140)]:return _0x1500a3(Ve,{});case h[_0x1270cd(0xbe)]:return _0x1500a3(Ue,{'coordinator':_0x21e06d});default:return null;}}function Fe(_0x1bb859){var _0x1b9bf9=_0xb5a573;const {coordinator:_0x12c772}=_0x1bb859;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1b9bf9(0xb8),{'className':_0x1b9bf9(0xd3),'children':_0x1b9bf9(0x118)}),_0x1500a3(_0x589980,{'onClick':()=>_0x12c772[_0x1b9bf9(0xe1)](),'children':_0x1b9bf9(0x11e)})]});}function He(_0x540831){var _0x328b33=_0xb5a573;const {coordinator:_0x409294}=_0x540831;return _0x41e94b(_0x533264,{'children':[_0x1500a3('div',{'className':_0x328b33(0xd3),'children':_0x328b33(0x142)}),_0x1500a3(_0x589980,{'onClick':()=>_0x409294[_0x328b33(0x153)](),'children':'Stop\x20following'})]});}function je(_0x20f8a7){var _0x416e8e=_0xb5a573;const {coordinator:_0x59eb1f}=_0x20f8a7;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x416e8e(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416e8e(0x152)}),_0x1500a3(_0x589980,{'variant':_0x416e8e(0x104),'onClick':()=>_0x59eb1f[_0x416e8e(0xc2)](),'children':'Start\x20following'})]});}function Ue(_0x4200df){var _0x1658af=_0xb5a573;const {coordinator:_0x14f67d}=_0x4200df;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1658af(0xb8),{'className':_0x1658af(0xd3),'children':_0x1658af(0xd9)}),_0x1500a3(_0x589980,{'variant':_0x1658af(0xeb),'onClick':()=>_0x14f67d['stopPresenting'](),'children':_0x1658af(0xff)})]});}function Ve(){return _0x1500a3(_0x533264,{'children':'You\x27are\x20offline.'});}function _0xa6c5(_0xe340b7,_0xbd862f){var _0xa8080=_0xa808();return _0xa6c5=function(_0xa6c50,_0x348220){_0xa6c50=_0xa6c50-0xb0;var _0x4aa674=_0xa8080[_0xa6c50];return _0x4aa674;},_0xa6c5(_0xe340b7,_0xbd862f);}var Me=Object[_0xb5a573(0x117)],ke=(_0x455b43,_0x27a19f,_0x58878e,_0x47bdef)=>{var _0x367a37=_0xb5a573;for(var _0xa558cb=_0x47bdef>0x1?void 0x0:_0x47bdef?Me(_0x27a19f,_0x58878e):_0x27a19f,_0x1c8da4=_0x455b43[_0x367a37(0xe0)]-0x1,_0x197c33;_0x1c8da4>=0x0;_0x1c8da4--)(_0x197c33=_0x455b43[_0x1c8da4])&&(_0xa558cb=_0x197c33(_0xa558cb)||_0xa558cb);return _0xa558cb;},$=(_0xa3c63d,_0x484f3f)=>(_0x306b7c,_0x5ddb55)=>_0x484f3f(_0x306b7c,_0x5ddb55,_0xa3c63d);let b=class extends _0x250142{constructor(_0x40b474,_0x2463aa){var _0x35f85e=_0xb5a573;super(),this[_0x35f85e(0x154)]=_0x40b474,this[_0x35f85e(0xdf)]=_0x2463aa,this[_0x35f85e(0xc4)]();}[_0xb5a573(0xc4)](){var _0x5c1b6e=_0xb5a573;this[_0x5c1b6e(0xcc)](this[_0x5c1b6e(0xdf)][_0x5c1b6e(0xb9)](_0x3e8244['HEADER_MENU'],()=>_0x598d28(Te,this[_0x5c1b6e(0x154)])));}};b=ke([$(0x0,_0x25c40d(_0x23997e)),$(0x1,_0x277d3f)],b);var Ge=Object[_0xb5a573(0x123)],We=Object[_0xb5a573(0x117)],Ye=(_0x2abda0,_0x2837ea,_0x316045)=>_0x2837ea in _0x2abda0?Ge(_0x2abda0,_0x2837ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x316045}):_0x2abda0[_0x2837ea]=_0x316045,Be=(_0x240feb,_0x2ab6fe,_0x85d27a,_0x30f1ab)=>{var _0x4675b3=_0xb5a573;for(var _0x268cf6=_0x30f1ab>0x1?void 0x0:_0x30f1ab?We(_0x2ab6fe,_0x85d27a):_0x2ab6fe,_0x32311b=_0x240feb[_0x4675b3(0xe0)]-0x1,_0x497a86;_0x32311b>=0x0;_0x32311b--)(_0x497a86=_0x240feb[_0x32311b])&&(_0x268cf6=_0x497a86(_0x268cf6)||_0x268cf6);return _0x268cf6;},F=(_0x4c7355,_0x3671d8)=>(_0x2194b8,_0x216d0e)=>_0x3671d8(_0x2194b8,_0x216d0e,_0x4c7355),J=(_0x26648a,_0x5b1545,_0x4eb0f5)=>Ye(_0x26648a,typeof _0x5b1545!=_0xb5a573(0x10b)?_0x5b1545+'':_0x5b1545,_0x4eb0f5);const Ze=_0xb5a573(0x103);let O=class extends _0x5e8534{constructor(_0x159a96=T,_0xe2846f,_0x488191){var _0x1fbc4f=_0xb5a573;super(),this[_0x1fbc4f(0xf4)]=_0x159a96,this[_0x1fbc4f(0x154)]=_0xe2846f,this[_0x1fbc4f(0xd6)]=_0x488191;const {..._0x278b45}=_0x2a990a({},T,this[_0x1fbc4f(0xf4)]);this['_configService'][_0x1fbc4f(0xcb)](Oe,_0x278b45);}['onStarting'](){var _0x45c172=_0xb5a573;_0x2e1b41(this['_injector'],_0x502523([[L],[I],[m],[b]],this[_0x45c172(0xf4)][_0x45c172(0xc5)])),_0x163c27(this[_0x45c172(0x154)],[[m]]);}[_0xb5a573(0x121)](){var _0x262078=_0xb5a573;_0x163c27(this[_0x262078(0x154)],[[b]]);}};J(O,'type',_0x1101b5[_0xb5a573(0xd1)]),J(O,_0xb5a573(0x11b),Ze),O=Be([_0x39b586(_0x4dd30b),F(0x1,_0x25c40d(_0x23997e)),F(0x2,_0x94ff8f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1fe857=_0x1fb0;(function(_0x43d8de,_0xe4b314){var _0x12620a=_0x1fb0,_0x575ea0=_0x43d8de();while(!![]){try{var _0x1b9128=-parseInt(_0x12620a(0x25c))/0x1*(-parseInt(_0x12620a(0x25e))/0x2)+-parseInt(_0x12620a(0x1fa))/0x3+-parseInt(_0x12620a(0x27a))/0x4+parseInt(_0x12620a(0x252))/0x5+parseInt(_0x12620a(0x226))/0x6*(-parseInt(_0x12620a(0x235))/0x7)+parseInt(_0x12620a(0x249))/0x8*(-parseInt(_0x12620a(0x26a))/0x9)+parseInt(_0x12620a(0x219))/0xa;if(_0x1b9128===_0xe4b314)break;else _0x575ea0['push'](_0x575ea0['shift']());}catch(_0x449ca5){_0x575ea0['push'](_0x575ea0['shift']());}}}(_0x191d,0x45a7e));var q=Object[_0x1fe857(0x211)],z=(_0x3d5c21,_0x3db863,_0x7334ca)=>_0x3db863 in _0x3d5c21?q(_0x3d5c21,_0x3db863,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7334ca}):_0x3d5c21[_0x3db863]=_0x7334ca,d=(_0x1afc3d,_0x277a53,_0x1235f7)=>z(_0x1afc3d,typeof _0x277a53!=_0x1fe857(0x23b)?_0x277a53+'':_0x277a53,_0x1235f7);import{CollaborationSessionService as _0x3733f2,SessionStatus as _0x3ca81a,UniverCollaborationClientPlugin as _0x1cb684}from'@univerjs-pro/collaboration-client';import{Disposable as _0x38b3ba,toDisposable as _0x35cd5c,Inject as _0x4b8efd,IUniverInstanceService as _0xbd06da,Injector as _0x3d5dff,IConfigService as _0x553fba,ICommandService as _0x48ab6d,RxDisposable as _0x2949ef,UniverInstanceType as _0x5b5a69,DisposableCollection as _0x534bad,CommandType as _0x3689ff,DependentOn as _0x1238c5,Plugin as _0x444bb4,merge as _0x4bb93d,registerDependencies as _0xaa7f98,mergeOverrideWithDependencies as _0x54161b,touchDependencies as _0x3a8db2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21d20b,InsertSheetMutation as _0x10f2a2}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2cf77b,SetScrollOperation as _0x16f3f4}from'@univerjs/sheets-ui';import{useDependency as _0xa14faf,useObservable as _0x285ff5,IUIPartsService as _0x284010,BuiltInUIPart as _0x219afb,connectInjector as _0x3674ad}from'@univerjs/ui';import{jsx as _0x24836d,jsxs as _0x149352,Fragment as _0x31ded6}from'react/jsx-runtime';import{Dropdown as _0x361e50,clsx as _0x5e62c8,Button as _0x3666eb}from'@univerjs/design';import{forwardRef as _0x4c47ac,useRef as _0x185894,createElement as _0x108e4b,useState as _0x3ca38b,useEffect as _0x328286}from'react';import{CollaborationEvent as _0x21eb48,parseProtocolChangeset as _0x1b3aa2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x142d84,Subject as _0x5527e4}from'rxjs';import{takeUntil as _0x27efe5,throttleTime as _0xede14b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x38b3ba{constructor(){var _0x4cd6e3=_0x1fe857;super(...arguments),d(this,_0x4cd6e3(0x1f0),new Set()),d(this,_0x4cd6e3(0x20c),new Set());}[_0x1fe857(0x1e0)](_0x15f53f){var _0x157b62=_0x1fe857;return this[_0x157b62(0x1f0)][_0x157b62(0x1f9)](_0x15f53f),_0x35cd5c(()=>this['_sharedOperations'][_0x157b62(0x220)](_0x15f53f));}[_0x1fe857(0x25d)](_0x3f4f9f){var _0x242e61=_0x1fe857;return this['_reporters'][_0x242e61(0x1f9)](_0x3f4f9f),_0x35cd5c(()=>this[_0x242e61(0x20c)]['delete'](_0x3f4f9f));}[_0x1fe857(0x1ef)](_0x4d61fa){var _0x458b4f=_0x1fe857;return this[_0x458b4f(0x1f0)]['has'](_0x4d61fa);}[_0x1fe857(0x248)](_0x457e88){var _0x2cfb48=_0x1fe857;return Array[_0x2cfb48(0x1e6)](this['_reporters'])[_0x2cfb48(0x1ea)](_0x1b1381=>_0x1b1381(_0x457e88));}}var Ee=Object[_0x1fe857(0x1f4)],we=(_0x4781ce,_0x3430e6,_0x36cbb1,_0x47f14f)=>{var _0x210715=_0x1fe857;for(var _0x38e2c6=_0x47f14f>0x1?void 0x0:_0x47f14f?Ee(_0x3430e6,_0x36cbb1):_0x3430e6,_0x78e303=_0x4781ce[_0x210715(0x28a)]-0x1,_0x26d6c7;_0x78e303>=0x0;_0x78e303--)(_0x26d6c7=_0x4781ce[_0x78e303])&&(_0x38e2c6=_0x26d6c7(_0x38e2c6)||_0x38e2c6);return _0x38e2c6;},Ne=(_0x5b9ac0,_0x6c1ae)=>(_0x153afb,_0x48b533)=>_0x6c1ae(_0x153afb,_0x48b533,_0x5b9ac0);let m=class extends _0x38b3ba{constructor(_0x19a1d2){var _0x14ae70=_0x1fe857;super(),this['_liveShareService']=_0x19a1d2,this[_0x14ae70(0x204)]();}[_0x1fe857(0x204)](){[_0x2cf77b['id'],_0x16f3f4['id'],_0x21d20b['id']]['forEach'](_0xdf348b=>{var _0xbef179=_0x1fb0;this[_0xbef179(0x264)](this['_liveShareService'][_0xbef179(0x1e0)](_0xdf348b));});}};m=we([Ne(0x0,_0x4b8efd(L))],m);function _0x191d(){var _0xd875f2=['_unitID','use','131454xtFNdq','hasOwnProperty','div','default','toString','_status','evenodd','_beIdle','getOwnPropertySymbols','tag','stopPresenting','dispose','path','idle','text','_config','1873796hQMZSo','OFFLINE','getValue','mutations','_univerInstanceService','Present\x20this\x20document','override','next','apply','params','LIVESHARE_REQUEST_HOST','_fetchOperations','send','sheet','univer-size-4','end','length','UNIVER_SHEET','onCommandExecuted','colorChannel1','pluginName','registerSharedOperation','string','getLiveShareCoordinator','find','svg','0\x200\x2017\x2017','from','_mountLiveShare','stringify','http://www.w3.org/2000/svg','map','startFollowing','trim','xlink:href','Start\x20following','shouldShareOperation','_sharedOperations','unsubscribe','_injector','displayName','getOwnPropertyDescriptor','clear','set','NOT_FOLLOWING','getConfig','add','307128NjxVbi','button','registerComponent','status$','live-share-icon','extend','entries','onRendered','random','_stopPresenting','_init','attrs','_handleNewHost','_entities','_collabSession','UniverIcon','getCurrentTypeOfUnit$','indexOf','_reporters','_handleTerminate','_liveShareService','_stopFollowing','LIVESHARE_OPERATION','defineProperty','getUnitId','createInstance','type','complete','includes','_configService','PRESENTING','12577120kaLrPc','mask','idSuffix','has','init','Stop\x20following','prototype','delete','current','presenter','url(#$1','executeCommand','You\x27re\x20following\x20the\x20presenter','1439886djCNeR','following','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','asObservable','LIVESHARE_TERMINATE','function','forEach','ONLINE','get','none','_presenter','_commandDisposable','concat','parse','14lzvYqU','FOLLOWING','memberID','dispose$','currentColor','sessionStatus$','symbol','getMemberID','_handleOnline','subscribe','not-following','className','pipe','call','_startLiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','_uiPartsService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IDLE','getInitialStates','136RulONb','_commandService','reverse','LiveShareIcon','replace','offline','presenting','Stop\x20presenting','1em','802170cYNPKO','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','fill','_handleNewChangeSets','_handleOffline','_status$','univerjs-icon\x20univerjs-icon-','children','operations','961YaXubK','registerInitialStateReporter','346WzjLba','then','data','unitId','defs','defIds','disposeWithMe','_startFollowing','LIVESHARE_FETCH_OPERATIONS','_startPresenting'];_0x191d=function(){return _0xd875f2;};return _0x191d();}var c=function(){var _0x59491c=_0x1fe857;return c=Object['assign']||function(_0x2346cb){var _0x3d3a4f=_0x1fb0;for(var _0x1f99db,_0x2e7599=0x1,_0x11f924=arguments['length'];_0x2e7599<_0x11f924;_0x2e7599++){_0x1f99db=arguments[_0x2e7599];for(var _0xa53b87 in _0x1f99db)Object[_0x3d3a4f(0x21f)][_0x3d3a4f(0x26b)][_0x3d3a4f(0x242)](_0x1f99db,_0xa53b87)&&(_0x2346cb[_0xa53b87]=_0x1f99db[_0xa53b87]);}return _0x2346cb;},c[_0x59491c(0x282)](this,arguments);},Ce=function(_0x1b4deb,_0x1e888f){var _0x41744d=_0x1fe857,_0xcc3ad2={};for(var _0x3cb09b in _0x1b4deb)Object['prototype']['hasOwnProperty'][_0x41744d(0x242)](_0x1b4deb,_0x3cb09b)&&_0x1e888f[_0x41744d(0x20b)](_0x3cb09b)<0x0&&(_0xcc3ad2[_0x3cb09b]=_0x1b4deb[_0x3cb09b]);if(_0x1b4deb!=null&&typeof Object[_0x41744d(0x272)]==_0x41744d(0x22c)){for(var _0x778ddd=0x0,_0x3cb09b=Object[_0x41744d(0x272)](_0x1b4deb);_0x778ddd<_0x3cb09b[_0x41744d(0x28a)];_0x778ddd++)_0x1e888f['indexOf'](_0x3cb09b[_0x778ddd])<0x0&&Object[_0x41744d(0x21f)]['propertyIsEnumerable']['call'](_0x1b4deb,_0x3cb09b[_0x778ddd])&&(_0xcc3ad2[_0x3cb09b[_0x778ddd]]=_0x1b4deb[_0x3cb09b[_0x778ddd]]);}return _0xcc3ad2;},W=_0x4c47ac(function(_0x215a47,_0x2fa3de){var _0x57e961=_0x1fe857,_0x56009c=_0x215a47['icon'],_0x4f4346=_0x215a47['id'],_0x24c3d5=_0x215a47[_0x57e961(0x240)],_0x5c0f28=_0x215a47['extend'],_0x43f363=Ce(_0x215a47,['icon','id','className',_0x57e961(0x1ff)]),_0x2db119=_0x57e961(0x259)[_0x57e961(0x233)](_0x4f4346,'\x20')['concat'](_0x24c3d5||'')[_0x57e961(0x1ec)](),_0x33607a=_0x185894('_'[_0x57e961(0x233)](Le()));return Y(_0x56009c,''[_0x57e961(0x233)](_0x4f4346),{'defIds':_0x56009c[_0x57e961(0x263)],'idSuffix':_0x33607a[_0x57e961(0x221)]},c({'ref':_0x2fa3de,'className':_0x2db119},_0x43f363),_0x5c0f28);});function Y(_0x3bc4da,_0x524c9d,_0x57a290,_0x455bdb,_0x5f1d48){var _0x4eaa15=_0x1fe857;return _0x108e4b(_0x3bc4da[_0x4eaa15(0x273)],c(c({'key':_0x524c9d},De(_0x3bc4da,_0x57a290,_0x5f1d48)),_0x455bdb),(xe(_0x3bc4da,_0x57a290)['children']||[])['map'](function(_0x25214a,_0x42acd4){var _0x1e5ed0=_0x4eaa15;return Y(_0x25214a,''[_0x1e5ed0(0x233)](_0x524c9d,'-')['concat'](_0x3bc4da[_0x1e5ed0(0x273)],'-')[_0x1e5ed0(0x233)](_0x42acd4),_0x57a290,void 0x0,_0x5f1d48);}));}function De(_0x995c49,_0x3a0c44,_0x194946){var _0x2557be=_0x1fe857,_0x49d765=c({},_0x995c49[_0x2557be(0x205)]);_0x194946!=null&&_0x194946['colorChannel1']&&_0x49d765[_0x2557be(0x255)]===_0x2557be(0x1de)&&(_0x49d765['fill']=_0x194946['colorChannel1']),_0x995c49[_0x2557be(0x273)]===_0x2557be(0x21a)&&_0x49d765['id']&&(_0x49d765['id']=_0x49d765['id']+_0x3a0c44[_0x2557be(0x21b)]),Object['entries'](_0x49d765)[_0x2557be(0x22d)](function(_0x550c0e){var _0x510c24=_0x2557be,_0x86143f=_0x550c0e[0x0],_0x548a4a=_0x550c0e[0x1];_0x86143f===_0x510c24(0x21a)&&typeof _0x548a4a==_0x510c24(0x1e1)&&(_0x49d765[_0x86143f]=_0x548a4a['replace'](/url\(#(.*)\)/,_0x510c24(0x223)[_0x510c24(0x233)](_0x3a0c44[_0x510c24(0x21b)],')')));});var _0x1ccc9d=_0x3a0c44[_0x2557be(0x263)];return!_0x1ccc9d||_0x1ccc9d[_0x2557be(0x28a)]===0x0||(_0x995c49[_0x2557be(0x273)]===_0x2557be(0x269)&&_0x49d765[_0x2557be(0x1ed)]&&(_0x49d765[_0x2557be(0x1ed)]=_0x49d765[_0x2557be(0x1ed)]+_0x3a0c44['idSuffix']),Object[_0x2557be(0x200)](_0x49d765)[_0x2557be(0x22d)](function(_0x4bfc72){var _0x37252c=_0x2557be,_0x54962a=_0x4bfc72[0x0],_0x198eb6=_0x4bfc72[0x1];typeof _0x198eb6==_0x37252c(0x1e1)&&(_0x49d765[_0x54962a]=_0x198eb6[_0x37252c(0x24d)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3a0c44[_0x37252c(0x21b)],')')));})),_0x49d765;}function xe(_0xd1c778,_0x137a52){var _0x38db5b=_0x1fe857,_0xa9fde4,_0x30a37e=_0x137a52[_0x38db5b(0x263)];return!_0x30a37e||_0x30a37e[_0x38db5b(0x28a)]===0x0?_0xd1c778:_0xd1c778[_0x38db5b(0x273)]===_0x38db5b(0x262)&&(!((_0xa9fde4=_0xd1c778[_0x38db5b(0x25a)])===null||_0xa9fde4===void 0x0)&&_0xa9fde4['length'])?c(c({},_0xd1c778),{'children':_0xd1c778[_0x38db5b(0x25a)][_0x38db5b(0x1ea)](function(_0x18eaf0){var _0x58dd45=_0x38db5b;return typeof _0x18eaf0[_0x58dd45(0x205)]['id']==_0x58dd45(0x1e1)&&_0x30a37e&&_0x30a37e[_0x58dd45(0x216)](_0x18eaf0[_0x58dd45(0x205)]['id'])?c(c({},_0x18eaf0),{'attrs':c(c({},_0x18eaf0[_0x58dd45(0x205)]),{'id':_0x18eaf0[_0x58dd45(0x205)]['id']+_0x137a52['idSuffix']})}):_0x18eaf0;})}):_0xd1c778;}function Le(){var _0x8d95ae=_0x1fe857;return Math[_0x8d95ae(0x202)]()[_0x8d95ae(0x26e)](0x24)['substring'](0x2,0x8);}W[_0x1fe857(0x1f3)]=_0x1fe857(0x209);var ye={'tag':_0x1fe857(0x1e4),'attrs':{'xmlns':_0x1fe857(0x1e9),'fill':_0x1fe857(0x230),'viewBox':_0x1fe857(0x1e5),'width':_0x1fe857(0x251),'height':'1em'},'children':[{'tag':_0x1fe857(0x276),'attrs':{'fill':_0x1fe857(0x239),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1fe857(0x276),'attrs':{'fill':'currentColor','d':_0x1fe857(0x246),'fillRule':_0x1fe857(0x270),'clipRule':'evenodd'}}]},B=_0x4c47ac(function(_0xc72e2e,_0x181c39){var _0x2f6d6b=_0x1fe857;return _0x108e4b(W,Object['assign']({},_0xc72e2e,{'id':_0x2f6d6b(0x1fe),'ref':_0x181c39,'icon':ye}));});B[_0x1fe857(0x1f3)]=_0x1fe857(0x24c);var Re=Object[_0x1fe857(0x1f4)],Z=(_0x180025,_0x4a501d,_0x581d40,_0x421e75)=>{var _0x5ac1c2=_0x1fe857;for(var _0x2ec7dd=_0x421e75>0x1?void 0x0:_0x421e75?Re(_0x4a501d,_0x581d40):_0x4a501d,_0x1da9ff=_0x180025[_0x5ac1c2(0x28a)]-0x1,_0x530ede;_0x1da9ff>=0x0;_0x1da9ff--)(_0x530ede=_0x180025[_0x1da9ff])&&(_0x2ec7dd=_0x530ede(_0x2ec7dd)||_0x2ec7dd);return _0x2ec7dd;},f=(_0x484d24,_0x158c85)=>(_0x3caa59,_0x2b35d8)=>_0x158c85(_0x3caa59,_0x2b35d8,_0x484d24);function _0x1fb0(_0x3887c4,_0x1340cd){var _0x191d6=_0x191d();return _0x1fb0=function(_0x1fb064,_0x2f1cad){_0x1fb064=_0x1fb064-0x1dd;var _0x228442=_0x191d6[_0x1fb064];return _0x228442;},_0x1fb0(_0x3887c4,_0x1340cd);}let I=class extends _0x2949ef{constructor(_0x205c20,_0x12ec6d,_0x2319a9){var _0x32916f=_0x1fe857;super(),d(this,_0x32916f(0x207),new Map()),(this[_0x32916f(0x27e)]=_0x205c20,this[_0x32916f(0x1f2)]=_0x12ec6d,this['_collabSessionService']=_0x2319a9,this[_0x32916f(0x204)]());}async[_0x1fe857(0x1e2)](_0x97f129){var _0x277b3f=_0x1fe857;return this['_entities'][_0x277b3f(0x21c)](_0x97f129)||await this[_0x277b3f(0x243)](_0x97f129),this[_0x277b3f(0x207)]['get'](_0x97f129);}[_0x1fe857(0x204)](){var _0x2ce583=_0x1fe857;this[_0x2ce583(0x27e)]['getTypeOfUnitAdded$'](_0x5b5a69[_0x2ce583(0x28b)])[_0x2ce583(0x241)](_0x27efe5(this[_0x2ce583(0x238)]))[_0x2ce583(0x23e)](async _0x7ba8eb=>{var _0x2a2765=_0x2ce583;const _0x379999=_0x7ba8eb[_0x2a2765(0x212)]();this[_0x2a2765(0x207)][_0x2a2765(0x21c)](_0x379999)||this[_0x2a2765(0x243)](_0x379999);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5b5a69[_0x2ce583(0x28b)])['pipe'](_0x27efe5(this[_0x2ce583(0x238)]))[_0x2ce583(0x23e)](_0x1d690c=>{var _0x3b1a8c=_0x2ce583;const _0x2e8e3c=_0x1d690c[_0x3b1a8c(0x212)](),_0x58ed1a=this['_entities'][_0x3b1a8c(0x22f)](_0x2e8e3c);_0x58ed1a==null||_0x58ed1a[_0x3b1a8c(0x275)]();});}async[_0x1fe857(0x243)](_0x2446b1){var _0x4e02dc=_0x1fe857;const _0x26b6cf=await this['_collabSessionService']['requireSession'](_0x2446b1),_0x597f83=this[_0x4e02dc(0x1f2)][_0x4e02dc(0x213)](C,_0x2446b1,_0x26b6cf);return _0x597f83[_0x4e02dc(0x21d)](),this['_entities'][_0x4e02dc(0x1f6)](_0x2446b1,_0x597f83),_0x597f83;}};I=Z([f(0x0,_0xbd06da),f(0x1,_0x4b8efd(_0x3d5dff)),f(0x2,_0x4b8efd(_0x3733f2))],I);var h=(_0x591dc5=>(_0x591dc5[_0x1fe857(0x27b)]=_0x1fe857(0x24e),_0x591dc5[_0x1fe857(0x247)]=_0x1fe857(0x277),_0x591dc5[_0x1fe857(0x236)]=_0x1fe857(0x227),_0x591dc5[_0x1fe857(0x1f7)]=_0x1fe857(0x23f),_0x591dc5[_0x1fe857(0x218)]=_0x1fe857(0x24f),_0x591dc5))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2949ef{constructor(_0x12f6b8,_0xd2a0b0,_0x3df3dd,_0x18615f,_0x1a2ad3){var _0x4adfd4=_0x1fe857;super(),d(this,_0x4adfd4(0x258),new _0x142d84(_0x4adfd4(0x277))),d(this,_0x4adfd4(0x1fd),this[_0x4adfd4(0x258)][_0x4adfd4(0x22a)]()),d(this,_0x4adfd4(0x204),!0x1),d(this,_0x4adfd4(0x232),null),d(this,_0x4adfd4(0x231),null),(this[_0x4adfd4(0x268)]=_0x12f6b8,this[_0x4adfd4(0x208)]=_0xd2a0b0,this[_0x4adfd4(0x217)]=_0x3df3dd,this[_0x4adfd4(0x20e)]=_0x18615f,this[_0x4adfd4(0x24a)]=_0x1a2ad3);}get[_0x1fe857(0x26f)](){var _0x4ca26a=_0x1fe857;return this[_0x4ca26a(0x258)][_0x4ca26a(0x27c)]();}['dispose'](){var _0x56ada7=_0x1fe857,_0x30fe93;(_0x30fe93=this['_commandDisposable'])==null||_0x30fe93[_0x56ada7(0x275)](),this['_status$'][_0x56ada7(0x281)]('idle'),this['_status$']['complete']();}[_0x1fe857(0x21d)](){var _0x7a21a9=_0x1fe857;this[_0x7a21a9(0x204)]||(this['_init']=!0x0,this['_collabSession'][_0x7a21a9(0x23a)][_0x7a21a9(0x241)](_0x27efe5(this['dispose$']))[_0x7a21a9(0x23e)](_0x19c49b=>{var _0x739eab=_0x7a21a9;switch(_0x19c49b){case _0x3ca81a[_0x739eab(0x27b)]:this[_0x739eab(0x257)]();break;case _0x3ca81a[_0x739eab(0x22e)]:this[_0x739eab(0x23d)]();break;}}),this[_0x7a21a9(0x208)]['event$'][_0x7a21a9(0x241)](_0x27efe5(this[_0x7a21a9(0x238)]))[_0x7a21a9(0x23e)](_0x2e5fa4=>{var _0x1693ce=_0x7a21a9;const {eventID:_0x42f3a2}=_0x2e5fa4;switch(_0x42f3a2){case _0x21eb48[_0x1693ce(0x228)]:this[_0x1693ce(0x206)](_0x2e5fa4);break;case _0x21eb48[_0x1693ce(0x210)]:this['_handleOperation'](_0x2e5fa4);break;case _0x21eb48[_0x1693ce(0x22b)]:this[_0x1693ce(0x20d)]();break;case _0x21eb48['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x2e5fa4);break;}}));}['tryStartPresenting'](){var _0x2e0775=_0x1fe857;this['_collabSession'][_0x2e0775(0x286)]({'eventID':_0x21eb48[_0x2e0775(0x284)],'data':{'unitID':this[_0x2e0775(0x268)],'userID':this[_0x2e0775(0x208)]['getMemberID']()}},this['_unitID']);}[_0x1fe857(0x274)](){var _0x3fa362=_0x1fe857;this[_0x3fa362(0x26f)]===_0x3fa362(0x24f)&&(this[_0x3fa362(0x258)]['next']('idle'),this[_0x3fa362(0x208)][_0x3fa362(0x286)]({'eventID':_0x21eb48[_0x3fa362(0x22b)],'data':{'unitID':this['_unitID']}},this[_0x3fa362(0x268)]));}[_0x1fe857(0x1eb)](){var _0x55b3d9=_0x1fe857;this[_0x55b3d9(0x26f)]===_0x55b3d9(0x23f)&&(this[_0x55b3d9(0x258)][_0x55b3d9(0x281)](_0x55b3d9(0x227)),this[_0x55b3d9(0x265)]());}['stopFollowing'](){var _0x3a02aa=_0x1fe857;this[_0x3a02aa(0x26f)]===_0x3a02aa(0x227)&&this[_0x3a02aa(0x20f)]();}['_handleNewHost'](_0x111968){var _0x2a9492=_0x1fe857;const {presenter:_0x2cb9c8}=_0x111968['data'],_0x45db1f=this[_0x2a9492(0x208)][_0x2a9492(0x23c)]();this['_presenter']=_0x2cb9c8,_0x2cb9c8===_0x45db1f?(this[_0x2a9492(0x20f)](),this[_0x2a9492(0x267)]()):this[_0x2a9492(0x26f)]!==_0x2a9492(0x23f)&&(this[_0x2a9492(0x203)](),this['_startFollowing']());}['_fetchOperations'](){var _0x4e74c7=_0x1fe857;const _0xbfba27={'eventID':_0x21eb48[_0x4e74c7(0x266)]};this[_0x4e74c7(0x208)][_0x4e74c7(0x286)](_0xbfba27,this[_0x4e74c7(0x268)]);}[_0x1fe857(0x20d)](){var _0x497022=_0x1fe857;this[_0x497022(0x231)]=null,this[_0x497022(0x26f)]!==_0x497022(0x24f)&&this['_beIdle']();}[_0x1fe857(0x256)](_0x86fed2){var _0x406724=_0x1fe857;if(this['_status']===_0x406724(0x227)&&this[_0x406724(0x231)]===_0x86fed2['data'][_0x406724(0x237)]){const _0x1a17eb=_0x1b3aa2(_0x86fed2[_0x406724(0x260)])[_0x406724(0x27d)][_0x406724(0x24b)]()[_0x406724(0x1e3)](_0x33eb9f=>_0x33eb9f['id']===_0x10f2a2['id']);if(_0x1a17eb){const _0x41c66b=_0x1a17eb[_0x406724(0x283)][_0x406724(0x261)],_0x3bc5fa=_0x1a17eb['params'][_0x406724(0x287)]['id'];setTimeout(()=>{var _0x58b6f9=_0x406724;this[_0x58b6f9(0x24a)][_0x58b6f9(0x224)](_0x21d20b['id'],{'unitId':_0x41c66b,'subUnitId':_0x3bc5fa},{'fromCollab':!0x0});});}}}[_0x1fe857(0x267)](){var _0x23820f=_0x1fe857;this[_0x23820f(0x258)]['next'](_0x23820f(0x24f));const _0x4941ae=new Map(),_0x1c10f7=this['_commandDisposable']=new _0x534bad();_0x1c10f7[_0x23820f(0x1f9)](_0x35cd5c(()=>{var _0xd2bd21=_0x23820f;_0x4941ae['forEach'](_0x3f76cf=>_0x3f76cf[_0xd2bd21(0x215)]()),_0x4941ae[_0xd2bd21(0x1f5)]();})),_0x1c10f7[_0x23820f(0x1f9)](this[_0x23820f(0x24a)][_0x23820f(0x1dd)](_0x4f42fb=>{var _0x7e52fa=_0x23820f,_0x338c05;if(_0x4f42fb[_0x7e52fa(0x214)]!==_0x3689ff['OPERATION']||!this[_0x7e52fa(0x20e)]['shouldShareOperation'](_0x4f42fb['id']))return;const {id:_0x1a0b5a}=_0x4f42fb;let _0x4566d5;_0x4941ae['has'](_0x1a0b5a)?_0x4566d5=_0x4941ae[_0x7e52fa(0x22f)](_0x1a0b5a):(_0x4566d5=new _0x5527e4(),_0x4941ae[_0x7e52fa(0x1f6)](_0x1a0b5a,_0x4566d5),_0x4566d5[_0x7e52fa(0x241)](_0xede14b((_0x338c05=this[_0x7e52fa(0x217)][_0x7e52fa(0x1f8)](Pe))!=null?_0x338c05:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x245045=>{var _0xb45b73=_0x7e52fa;this['_collabSession'][_0xb45b73(0x286)]({'eventID':_0x21eb48[_0xb45b73(0x210)],'data':{'unitID':this[_0xb45b73(0x268)],'operations':{[_0x245045['id']]:{'id':_0x245045['id'],'params':JSON[_0xb45b73(0x1e8)](_0x245045[_0xb45b73(0x283)])}}}},this['_unitID']);})),_0x4566d5[_0x7e52fa(0x281)](_0x4f42fb);})),this[_0x23820f(0x20e)][_0x23820f(0x248)](this[_0x23820f(0x268)])['forEach'](_0x4ec565=>this['_collabSession'][_0x23820f(0x286)]({'eventID':_0x21eb48['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x23820f(0x268)],'operations':{[_0x4ec565['id']]:{'id':_0x4ec565['id'],'params':JSON[_0x23820f(0x1e8)](_0x4ec565[_0x23820f(0x283)])}}}},this[_0x23820f(0x268)]));}['_stopPresenting'](){var _0x38f8cf=_0x1fe857,_0x4331b7;this[_0x38f8cf(0x258)][_0x38f8cf(0x281)](_0x38f8cf(0x277)),(_0x4331b7=this[_0x38f8cf(0x232)])==null||_0x4331b7[_0x38f8cf(0x275)](),this[_0x38f8cf(0x232)]=null;}[_0x1fe857(0x265)](){var _0x14a6cb=_0x1fe857,_0x497eed;(_0x497eed=this[_0x14a6cb(0x232)])==null||_0x497eed[_0x14a6cb(0x275)](),this['_status$'][_0x14a6cb(0x281)]('following');}[_0x1fe857(0x271)](){var _0x486e45=_0x1fe857,_0x159ebb;this[_0x486e45(0x258)][_0x486e45(0x281)](_0x486e45(0x277)),(_0x159ebb=this[_0x486e45(0x232)])==null||_0x159ebb[_0x486e45(0x275)](),this[_0x486e45(0x232)]=null;}[_0x1fe857(0x20f)](){var _0x3c5dc1=_0x1fe857,_0x36119a;this[_0x3c5dc1(0x258)][_0x3c5dc1(0x281)]('not-following'),(_0x36119a=this[_0x3c5dc1(0x232)])==null||_0x36119a['dispose']();}['_handleOperation'](_0x44fec5){var _0x26decb=_0x1fe857;if([_0x26decb(0x24f),'not-following',_0x26decb(0x24e)][_0x26decb(0x216)](this[_0x26decb(0x26f)])||!_0x44fec5[_0x26decb(0x260)][_0x26decb(0x222)]||_0x44fec5[_0x26decb(0x260)]['presenter']===this[_0x26decb(0x208)]['getMemberID']())return;this[_0x26decb(0x26f)]===_0x26decb(0x277)&&this[_0x26decb(0x265)]();const _0x126422=_0x44fec5[_0x26decb(0x260)][_0x26decb(0x25b)];Object['values'](_0x126422)[_0x26decb(0x22d)](_0x2d14a6=>{var _0x5935b3=_0x26decb;this[_0x5935b3(0x24a)][_0x5935b3(0x224)](_0x2d14a6['id'],_0x2d14a6['params']?JSON[_0x5935b3(0x234)](_0x2d14a6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x45a343=_0x1fe857,_0x55610a;this[_0x45a343(0x258)]['next']('offline'),(_0x55610a=this[_0x45a343(0x232)])==null||_0x55610a[_0x45a343(0x275)]();}[_0x1fe857(0x23d)](){var _0x50102b=_0x1fe857;this[_0x50102b(0x258)][_0x50102b(0x281)](_0x50102b(0x277)),this[_0x50102b(0x285)]();}};C=Z([f(0x2,_0x553fba),f(0x3,_0x4b8efd(L)),f(0x4,_0x48ab6d)],C);function Te(){var _0x1ac965=_0x1fe857;const _0x3337d9=_0xa14faf(I),_0x5489cc=_0xa14faf(_0xbd06da),_0x2b9019=_0x285ff5(()=>_0x5489cc[_0x1ac965(0x20a)](_0x5b5a69[_0x1ac965(0x28b)]),void 0x0,!0x1,[]),[_0x547eb4,_0x31ae3b]=_0x3ca38b(null),[_0x3f2a7d,_0xcf3856]=_0x3ca38b(h[_0x1ac965(0x247)]),_0x14367d=_0x185894(null);return _0x328286(()=>(_0x2b9019&&_0x3337d9[_0x1ac965(0x1e2)](_0x2b9019[_0x1ac965(0x212)]())[_0x1ac965(0x25f)](_0x4a38d2=>{var _0x7196f3=_0x1ac965;_0x31ae3b(_0x4a38d2),_0x14367d[_0x7196f3(0x221)]=_0x4a38d2['status$'][_0x7196f3(0x23e)](_0xb1dbe5=>{_0xcf3856(_0xb1dbe5);});}),()=>{var _0x25ca42=_0x1ac965,_0x269795;(_0x269795=_0x14367d['current'])==null||_0x269795[_0x25ca42(0x1f1)](),_0x14367d[_0x25ca42(0x221)]=null;}),[_0x2b9019,_0x3337d9]),_0x547eb4?_0x24836d(_0x361e50,{'align':_0x1ac965(0x289),'disabled':_0x3f2a7d===h[_0x1ac965(0x27b)],'className':_0x1ac965(0x229),'overlay':_0x24836d($e,{'status':_0x3f2a7d,'coordinator':_0x547eb4}),'children':_0x24836d('button',{'className':_0x5e62c8('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f2a7d===h[_0x1ac965(0x27b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f2a7d!==h[_0x1ac965(0x27b)]}),'type':_0x1ac965(0x1fb),'children':_0x24836d(B,{'className':_0x1ac965(0x288)})})}):null;}function $e(_0x3cf1d4){var _0x14c74f=_0x1fe857;const {status:_0x17da0c,coordinator:_0x328aec}=_0x3cf1d4;switch(_0x17da0c){case h[_0x14c74f(0x247)]:return _0x24836d(Fe,{'coordinator':_0x328aec});case h[_0x14c74f(0x236)]:return _0x24836d(He,{'coordinator':_0x328aec});case h[_0x14c74f(0x1f7)]:return _0x24836d(je,{'coordinator':_0x328aec});case h[_0x14c74f(0x27b)]:return _0x24836d(Ve,{});case h[_0x14c74f(0x218)]:return _0x24836d(Ue,{'coordinator':_0x328aec});default:return null;}}function Fe(_0x2a2208){var _0x3c440d=_0x1fe857;const {coordinator:_0xf3271d}=_0x2a2208;return _0x149352(_0x31ded6,{'children':[_0x24836d(_0x3c440d(0x26c),{'className':_0x3c440d(0x244),'children':_0x3c440d(0x27f)}),_0x24836d(_0x3666eb,{'onClick':()=>_0xf3271d['tryStartPresenting'](),'children':'Start'})]});}function He(_0x1e6294){var _0x46c184=_0x1fe857;const {coordinator:_0x2bedef}=_0x1e6294;return _0x149352(_0x31ded6,{'children':[_0x24836d(_0x46c184(0x26c),{'className':_0x46c184(0x244),'children':_0x46c184(0x225)}),_0x24836d(_0x3666eb,{'onClick':()=>_0x2bedef['stopFollowing'](),'children':_0x46c184(0x21e)})]});}function je(_0x19f055){var _0x158fe2=_0x1fe857;const {coordinator:_0x5c7af3}=_0x19f055;return _0x149352(_0x31ded6,{'children':[_0x24836d('div',{'className':_0x158fe2(0x244),'children':_0x158fe2(0x253)}),_0x24836d(_0x3666eb,{'variant':_0x158fe2(0x278),'onClick':()=>_0x5c7af3['startFollowing'](),'children':_0x158fe2(0x1ee)})]});}function Ue(_0x26f744){var _0x1d4e3c=_0x1fe857;const {coordinator:_0x1f30d4}=_0x26f744;return _0x149352(_0x31ded6,{'children':[_0x24836d('div',{'className':_0x1d4e3c(0x244),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x24836d(_0x3666eb,{'variant':_0x1d4e3c(0x26d),'onClick':()=>_0x1f30d4[_0x1d4e3c(0x274)](),'children':_0x1d4e3c(0x250)})]});}function Ve(){return _0x24836d(_0x31ded6,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1fe857(0x1f4)],ke=(_0x21d4d0,_0x3210b4,_0x958008,_0x162d33)=>{var _0x2414c8=_0x1fe857;for(var _0x3e1a3e=_0x162d33>0x1?void 0x0:_0x162d33?Me(_0x3210b4,_0x958008):_0x3210b4,_0x165cf8=_0x21d4d0[_0x2414c8(0x28a)]-0x1,_0x400a77;_0x165cf8>=0x0;_0x165cf8--)(_0x400a77=_0x21d4d0[_0x165cf8])&&(_0x3e1a3e=_0x400a77(_0x3e1a3e)||_0x3e1a3e);return _0x3e1a3e;},$=(_0x581d34,_0x5937e3)=>(_0x19ef39,_0x1d9549)=>_0x5937e3(_0x19ef39,_0x1d9549,_0x581d34);let b=class extends _0x38b3ba{constructor(_0x23d9da,_0x180d9a){var _0x3fe899=_0x1fe857;super(),this[_0x3fe899(0x1f2)]=_0x23d9da,this['_uiPartsService']=_0x180d9a,this[_0x3fe899(0x1e7)]();}['_mountLiveShare'](){var _0x106faa=_0x1fe857;this[_0x106faa(0x264)](this[_0x106faa(0x245)][_0x106faa(0x1fc)](_0x219afb['HEADER_MENU'],()=>_0x3674ad(Te,this[_0x106faa(0x1f2)])));}};b=ke([$(0x0,_0x4b8efd(_0x3d5dff)),$(0x1,_0x284010)],b);var Ge=Object['defineProperty'],We=Object[_0x1fe857(0x1f4)],Ye=(_0xb45f67,_0x28ba55,_0xd8d2c2)=>_0x28ba55 in _0xb45f67?Ge(_0xb45f67,_0x28ba55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd8d2c2}):_0xb45f67[_0x28ba55]=_0xd8d2c2,Be=(_0x30246a,_0x3139cb,_0xe9977,_0x2a5dbc)=>{var _0x522b95=_0x1fe857;for(var _0x5e68e8=_0x2a5dbc>0x1?void 0x0:_0x2a5dbc?We(_0x3139cb,_0xe9977):_0x3139cb,_0x28a1e6=_0x30246a[_0x522b95(0x28a)]-0x1,_0x55ec0c;_0x28a1e6>=0x0;_0x28a1e6--)(_0x55ec0c=_0x30246a[_0x28a1e6])&&(_0x5e68e8=_0x55ec0c(_0x5e68e8)||_0x5e68e8);return _0x5e68e8;},F=(_0x58f9f6,_0x4585f2)=>(_0x366b5b,_0x3e55e6)=>_0x4585f2(_0x366b5b,_0x3e55e6,_0x58f9f6),J=(_0x2ec2ca,_0x16a6ff,_0xc358cb)=>Ye(_0x2ec2ca,typeof _0x16a6ff!='symbol'?_0x16a6ff+'':_0x16a6ff,_0xc358cb);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x444bb4{constructor(_0x1c0a1b=T,_0x8feb65,_0x8c23cd){var _0x4f3f88=_0x1fe857;super(),this[_0x4f3f88(0x279)]=_0x1c0a1b,this[_0x4f3f88(0x1f2)]=_0x8feb65,this[_0x4f3f88(0x217)]=_0x8c23cd;const {..._0x452ff7}=_0x4bb93d({},T,this[_0x4f3f88(0x279)]);this[_0x4f3f88(0x217)][_0x4f3f88(0x254)](Oe,_0x452ff7);}['onStarting'](){var _0x5270d2=_0x1fe857;_0xaa7f98(this[_0x5270d2(0x1f2)],_0x54161b([[L],[I],[m],[b]],this[_0x5270d2(0x279)][_0x5270d2(0x280)])),_0x3a8db2(this[_0x5270d2(0x1f2)],[[m]]);}[_0x1fe857(0x201)](){var _0x2ac12e=_0x1fe857;_0x3a8db2(this[_0x2ac12e(0x1f2)],[[b]]);}};J(O,'type',_0x5b5a69['UNIVER_UNKNOWN']),J(O,_0x1fe857(0x1df),Ze),O=Be([_0x1238c5(_0x1cb684),F(0x1,_0x4b8efd(_0x3d5dff)),F(0x2,_0x553fba)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0xb5a573=_0xa6c5;(function(_0x35bbd9,_0x36c5d6){var _0x2078ed=_0xa6c5,_0x426d25=_0x35bbd9();while(!![]){try{var _0x361a7f=-parseInt(_0x2078ed(0xd0))/0x1+-parseInt(_0x2078ed(0x12e))/0x2+-parseInt(_0x2078ed(0x110))/0x3+-parseInt(_0x2078ed(0x147))/0x4+-parseInt(_0x2078ed(0xc0))/0x5+parseInt(_0x2078ed(0xb2))/0x6+-parseInt(_0x2078ed(0xf5))/0x7*(-parseInt(_0x2078ed(0xc8))/0x8);if(_0x361a7f===_0x36c5d6)break;else _0x426d25['push'](_0x426d25['shift']());}catch(_0x12954e){_0x426d25['push'](_0x426d25['shift']());}}}(_0xa808,0x63b57));var q=Object[_0xb5a573(0x123)],z=(_0x18188e,_0x265afc,_0xc056f9)=>_0x265afc in _0x18188e?q(_0x18188e,_0x265afc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc056f9}):_0x18188e[_0x265afc]=_0xc056f9,d=(_0x2e57e4,_0xf5a1d6,_0x1ac388)=>z(_0x2e57e4,typeof _0xf5a1d6!=_0xb5a573(0x10b)?_0xf5a1d6+'':_0xf5a1d6,_0x1ac388);import{CollaborationSessionService as _0x4060c7,SessionStatus as _0x56066c,UniverCollaborationClientPlugin as _0x4dd30b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x250142,toDisposable as _0x48fd6a,Inject as _0x25c40d,IUniverInstanceService as _0x5844ca,Injector as _0x23997e,IConfigService as _0x94ff8f,ICommandService as _0x1cfa91,RxDisposable as _0x418f74,UniverInstanceType as _0x1101b5,DisposableCollection as _0x4833fc,CommandType as _0x56378a,DependentOn as _0x39b586,Plugin as _0x5e8534,merge as _0x2a990a,registerDependencies as _0x2e1b41,mergeOverrideWithDependencies as _0x502523,touchDependencies as _0x163c27}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x163e4d,InsertSheetMutation as _0xdd5f97}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4cc003,SetScrollOperation as _0x49d044}from'@univerjs/sheets-ui';import{useDependency as _0x17f9c4,useObservable as _0x5e0586,IUIPartsService as _0x277d3f,BuiltInUIPart as _0x3e8244,connectInjector as _0x598d28}from'@univerjs/ui';import{jsx as _0x1500a3,jsxs as _0x41e94b,Fragment as _0x533264}from'react/jsx-runtime';import{Dropdown as _0xe6f284,clsx as _0x4aa598,Button as _0x589980}from'@univerjs/design';import{forwardRef as _0x421cb2,useRef as _0x2b7cde,createElement as _0x576f64,useState as _0x55d438,useEffect as _0x58a87a}from'react';import{CollaborationEvent as _0x3fac8b,parseProtocolChangeset as _0x1368e0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xb5b223,Subject as _0x11092e}from'rxjs';import{takeUntil as _0x5f0151,throttleTime as _0x285441}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x250142{constructor(){var _0x484680=_0xb5a573;super(...arguments),d(this,_0x484680(0xf8),new Set()),d(this,'_reporters',new Set());}[_0xb5a573(0x13c)](_0x173c29){var _0x211cfc=_0xb5a573;return this[_0x211cfc(0xf8)]['add'](_0x173c29),_0x48fd6a(()=>this[_0x211cfc(0xf8)][_0x211cfc(0xea)](_0x173c29));}[_0xb5a573(0x151)](_0x4a5345){var _0x738c4b=_0xb5a573;return this[_0x738c4b(0x114)][_0x738c4b(0x133)](_0x4a5345),_0x48fd6a(()=>this['_reporters'][_0x738c4b(0xea)](_0x4a5345));}[_0xb5a573(0x108)](_0x351785){var _0x56f678=_0xb5a573;return this[_0x56f678(0xf8)][_0x56f678(0x101)](_0x351785);}['getInitialStates'](_0x347fb2){var _0x2c94fb=_0xb5a573;return Array[_0x2c94fb(0xf1)](this[_0x2c94fb(0x114)])['map'](_0x497a73=>_0x497a73(_0x347fb2));}}var Ee=Object[_0xb5a573(0x117)],we=(_0x50ef32,_0x3b657f,_0x20797c,_0x4c0f10)=>{var _0x13e7d2=_0xb5a573;for(var _0x1162e8=_0x4c0f10>0x1?void 0x0:_0x4c0f10?Ee(_0x3b657f,_0x20797c):_0x3b657f,_0x3dfbc1=_0x50ef32[_0x13e7d2(0xe0)]-0x1,_0x142f0a;_0x3dfbc1>=0x0;_0x3dfbc1--)(_0x142f0a=_0x50ef32[_0x3dfbc1])&&(_0x1162e8=_0x142f0a(_0x1162e8)||_0x1162e8);return _0x1162e8;},Ne=(_0x12c63c,_0x4199f3)=>(_0x56921f,_0x39ffdf)=>_0x4199f3(_0x56921f,_0x39ffdf,_0x12c63c);let m=class extends _0x250142{constructor(_0x3308ff){var _0x221a12=_0xb5a573;super(),this[_0x221a12(0xb5)]=_0x3308ff,this['_init']();}[_0xb5a573(0xfb)](){var _0x490701=_0xb5a573;[_0x4cc003['id'],_0x49d044['id'],_0x163e4d['id']][_0x490701(0xb1)](_0x337d20=>{var _0xdc1fd3=_0x490701;this[_0xdc1fd3(0xcc)](this[_0xdc1fd3(0xb5)][_0xdc1fd3(0x13c)](_0x337d20));});}};m=we([Ne(0x0,_0x25c40d(L))],m);function _0xa808(){var _0x5807b0=['default','current','_startPresenting','operations','ONLINE','_commandService','from','_handleOffline','next','_config','47369nWhxvU','onCommandExecuted','attrs','_sharedOperations','evenodd','IDLE','_init','_commandDisposable','idle','_collabSessionService','Stop\x20presenting','getLiveShareCoordinator','has','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','text','none','entries','send','shouldShareOperation','offline','set','symbol','find','replace','1em','xlink:href','1931262ZEyXhd','icon','getMemberID','_univerInstanceService','_reporters','stringify','_stopFollowing','getOwnPropertyDescriptor','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_beIdle','pluginName','sessionStatus$','getCurrentTypeOfUnit$','Start','SAME_OPERATION_SHARE_INTERVAL','tag','onRendered','currentColor','defineProperty','_unitID','NEW_CHANGESETS','LIVESHARE_TERMINATE','random','getUnitId','_presenter','init','LIVESHARE_OPERATION','className','getValue','1136474boFWxC','LIVESHARE_NEW_HOST','parse','LIVESHARE_FETCH_OPERATIONS','type','add','values','_status$','_handleOnline','path','_fetchOperations','clear','not-following','pipe','registerSharedOperation','stopPresenting','event$','apply','OFFLINE','status$','You\x27re\x20following\x20the\x20presenter','presenting','sheet','params','getOwnPropertySymbols','3038052QuuFwx','extend','_collabSession','indexOf','following','trim','url(#$1','_handleNewHost','subscribe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','stopFollowing','_injector','end','defIds','live-share-icon','createInstance','_startLiveShareCoordinator','forEach','4164768cHwCVy','getTypeOfUnitAdded$','univer-size-4','_liveShareService','NOT_FOLLOWING','_startFollowing','div','registerComponent','string','get','executeCommand','mask','PRESENTING','children','1496690xJmOrM','includes','startFollowing','colorChannel1','_mountLiveShare','override','dispose','hasOwnProperty','3272PNLoQa','UNIVER_SHEET','map','setConfig','disposeWithMe','dispose$','UniverIcon','LiveShareIcon','782582RjgPVS','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','button','_handleTerminate','_configService','asObservable','complete','You\x27re\x20presenting\x20the\x20document','concat','substring','displayName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','prototype','_uiPartsService','length','tryStartPresenting','presenter','data','fill','call','defs','_handleNewChangeSets','_entities','_status','delete'];_0xa808=function(){return _0x5807b0;};return _0xa808();}var c=function(){var _0x45c732=_0xb5a573;return c=Object['assign']||function(_0x480694){var _0x2c3130=_0xa6c5;for(var _0x46b696,_0x38c01f=0x1,_0x26edbb=arguments[_0x2c3130(0xe0)];_0x38c01f<_0x26edbb;_0x38c01f++){_0x46b696=arguments[_0x38c01f];for(var _0x7ad333 in _0x46b696)Object[_0x2c3130(0xde)][_0x2c3130(0xc7)]['call'](_0x46b696,_0x7ad333)&&(_0x480694[_0x7ad333]=_0x46b696[_0x7ad333]);}return _0x480694;},c[_0x45c732(0x13f)](this,arguments);},Ce=function(_0x1c87b2,_0x20656e){var _0x2de0ed=_0xb5a573,_0x229df9={};for(var _0x37ce6e in _0x1c87b2)Object[_0x2de0ed(0xde)][_0x2de0ed(0xc7)]['call'](_0x1c87b2,_0x37ce6e)&&_0x20656e['indexOf'](_0x37ce6e)<0x0&&(_0x229df9[_0x37ce6e]=_0x1c87b2[_0x37ce6e]);if(_0x1c87b2!=null&&typeof Object[_0x2de0ed(0x146)]=='function'){for(var _0x548796=0x0,_0x37ce6e=Object[_0x2de0ed(0x146)](_0x1c87b2);_0x548796<_0x37ce6e[_0x2de0ed(0xe0)];_0x548796++)_0x20656e[_0x2de0ed(0x14a)](_0x37ce6e[_0x548796])<0x0&&Object[_0x2de0ed(0xde)]['propertyIsEnumerable'][_0x2de0ed(0xe5)](_0x1c87b2,_0x37ce6e[_0x548796])&&(_0x229df9[_0x37ce6e[_0x548796]]=_0x1c87b2[_0x37ce6e[_0x548796]]);}return _0x229df9;},W=_0x421cb2(function(_0x315424,_0x4193e3){var _0x487faf=_0xb5a573,_0x292d6c=_0x315424[_0x487faf(0x111)],_0x5d4418=_0x315424['id'],_0x4327ba=_0x315424[_0x487faf(0x12c)],_0x129621=_0x315424['extend'],_0x2c3401=Ce(_0x315424,[_0x487faf(0x111),'id',_0x487faf(0x12c),_0x487faf(0x148)]),_0x12471='univerjs-icon\x20univerjs-icon-'[_0x487faf(0xda)](_0x5d4418,'\x20')[_0x487faf(0xda)](_0x4327ba||'')[_0x487faf(0x14c)](),_0x4037ca=_0x2b7cde('_'['concat'](Le()));return Y(_0x292d6c,''[_0x487faf(0xda)](_0x5d4418),{'defIds':_0x292d6c[_0x487faf(0x156)],'idSuffix':_0x4037ca['current']},c({'ref':_0x4193e3,'className':_0x12471},_0x2c3401),_0x129621);});function Y(_0x138ab5,_0x47a833,_0x5919ec,_0x19179b,_0x1941bd){var _0x1b0f16=_0xb5a573;return _0x576f64(_0x138ab5[_0x1b0f16(0x120)],c(c({'key':_0x47a833},De(_0x138ab5,_0x5919ec,_0x1941bd)),_0x19179b),(xe(_0x138ab5,_0x5919ec)[_0x1b0f16(0xbf)]||[])[_0x1b0f16(0xca)](function(_0x2c9d72,_0x2891c9){var _0x4a1a72=_0x1b0f16;return Y(_0x2c9d72,''[_0x4a1a72(0xda)](_0x47a833,'-')[_0x4a1a72(0xda)](_0x138ab5[_0x4a1a72(0x120)],'-')[_0x4a1a72(0xda)](_0x2891c9),_0x5919ec,void 0x0,_0x1941bd);}));}function De(_0x112fcb,_0x25272c,_0x179fa0){var _0x56f206=_0xb5a573,_0x2a40e8=c({},_0x112fcb[_0x56f206(0xf7)]);_0x179fa0!=null&&_0x179fa0['colorChannel1']&&_0x2a40e8[_0x56f206(0xe4)]==='colorChannel1'&&(_0x2a40e8[_0x56f206(0xe4)]=_0x179fa0[_0x56f206(0xc3)]),_0x112fcb[_0x56f206(0x120)]===_0x56f206(0xbd)&&_0x2a40e8['id']&&(_0x2a40e8['id']=_0x2a40e8['id']+_0x25272c[_0x56f206(0x102)]),Object['entries'](_0x2a40e8)[_0x56f206(0xb1)](function(_0x64d72c){var _0xa59c2f=_0x56f206,_0x47cd7e=_0x64d72c[0x0],_0x1175e8=_0x64d72c[0x1];_0x47cd7e===_0xa59c2f(0xbd)&&typeof _0x1175e8==_0xa59c2f(0xba)&&(_0x2a40e8[_0x47cd7e]=_0x1175e8[_0xa59c2f(0x10d)](/url\(#(.*)\)/,_0xa59c2f(0x14d)[_0xa59c2f(0xda)](_0x25272c[_0xa59c2f(0x102)],')')));});var _0x20cff2=_0x25272c[_0x56f206(0x156)];return!_0x20cff2||_0x20cff2[_0x56f206(0xe0)]===0x0||(_0x112fcb['tag']==='use'&&_0x2a40e8['xlink:href']&&(_0x2a40e8[_0x56f206(0x10f)]=_0x2a40e8['xlink:href']+_0x25272c[_0x56f206(0x102)]),Object[_0x56f206(0x106)](_0x2a40e8)[_0x56f206(0xb1)](function(_0x1b422a){var _0x1652ce=_0x56f206,_0x2bab6d=_0x1b422a[0x0],_0x1e03ca=_0x1b422a[0x1];typeof _0x1e03ca==_0x1652ce(0xba)&&(_0x2a40e8[_0x2bab6d]=_0x1e03ca['replace'](/url\(#(.*)\)/,_0x1652ce(0x14d)['concat'](_0x25272c['idSuffix'],')')));})),_0x2a40e8;}function xe(_0x171808,_0x1692ab){var _0x30d4bf=_0xb5a573,_0x3e7e91,_0xbe59f8=_0x1692ab[_0x30d4bf(0x156)];return!_0xbe59f8||_0xbe59f8[_0x30d4bf(0xe0)]===0x0?_0x171808:_0x171808[_0x30d4bf(0x120)]===_0x30d4bf(0xe6)&&(!((_0x3e7e91=_0x171808[_0x30d4bf(0xbf)])===null||_0x3e7e91===void 0x0)&&_0x3e7e91[_0x30d4bf(0xe0)])?c(c({},_0x171808),{'children':_0x171808[_0x30d4bf(0xbf)][_0x30d4bf(0xca)](function(_0x25032a){var _0x509706=_0x30d4bf;return typeof _0x25032a[_0x509706(0xf7)]['id']==_0x509706(0xba)&&_0xbe59f8&&_0xbe59f8[_0x509706(0xc1)](_0x25032a[_0x509706(0xf7)]['id'])?c(c({},_0x25032a),{'attrs':c(c({},_0x25032a[_0x509706(0xf7)]),{'id':_0x25032a[_0x509706(0xf7)]['id']+_0x1692ab['idSuffix']})}):_0x25032a;})}):_0x171808;}function Le(){var _0x37a888=_0xb5a573;return Math[_0x37a888(0x127)]()['toString'](0x24)[_0x37a888(0xdb)](0x2,0x8);}W['displayName']=_0xb5a573(0xce);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb5a573(0x105),'viewBox':'0\x200\x2017\x2017','width':_0xb5a573(0x10e),'height':_0xb5a573(0x10e)},'children':[{'tag':'path','attrs':{'fill':_0xb5a573(0x122),'d':_0xb5a573(0xd2)}},{'tag':_0xb5a573(0x137),'attrs':{'fill':'currentColor','d':_0xb5a573(0x150),'fillRule':_0xb5a573(0xf9),'clipRule':'evenodd'}}]},B=_0x421cb2(function(_0xc9ad31,_0x2c6b35){var _0x17d831=_0xb5a573;return _0x576f64(W,Object['assign']({},_0xc9ad31,{'id':_0x17d831(0x157),'ref':_0x2c6b35,'icon':ye}));});B[_0xb5a573(0xdc)]=_0xb5a573(0xcf);var Re=Object[_0xb5a573(0x117)],Z=(_0x2110f3,_0x17c50c,_0x19e6ee,_0x2c7d89)=>{var _0x4e0b57=_0xb5a573;for(var _0x11a74c=_0x2c7d89>0x1?void 0x0:_0x2c7d89?Re(_0x17c50c,_0x19e6ee):_0x17c50c,_0x55be7c=_0x2110f3[_0x4e0b57(0xe0)]-0x1,_0x17a47a;_0x55be7c>=0x0;_0x55be7c--)(_0x17a47a=_0x2110f3[_0x55be7c])&&(_0x11a74c=_0x17a47a(_0x11a74c)||_0x11a74c);return _0x11a74c;},f=(_0x4ca70f,_0x13a830)=>(_0x2e22c4,_0x2df70b)=>_0x13a830(_0x2e22c4,_0x2df70b,_0x4ca70f);let I=class extends _0x418f74{constructor(_0x422f33,_0x5d774e,_0x3b7835){var _0x230507=_0xb5a573;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x422f33,this[_0x230507(0x154)]=_0x5d774e,this[_0x230507(0xfe)]=_0x3b7835,this[_0x230507(0xfb)]());}async[_0xb5a573(0x100)](_0x489896){var _0x39a0c9=_0xb5a573;return this['_entities'][_0x39a0c9(0x101)](_0x489896)||await this[_0x39a0c9(0xb0)](_0x489896),this['_entities'][_0x39a0c9(0xbb)](_0x489896);}[_0xb5a573(0xfb)](){var _0x5481a4=_0xb5a573;this['_univerInstanceService'][_0x5481a4(0xb3)](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this[_0x5481a4(0xcd)]))[_0x5481a4(0x14f)](async _0x4ded0a=>{var _0x36c111=_0x5481a4;const _0x3f8e70=_0x4ded0a[_0x36c111(0x128)]();this[_0x36c111(0xe8)][_0x36c111(0x101)](_0x3f8e70)||this['_startLiveShareCoordinator'](_0x3f8e70);}),this[_0x5481a4(0x113)]['getTypeOfUnitDisposed$'](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this['dispose$']))[_0x5481a4(0x14f)](_0x17a7ff=>{var _0x280141=_0x5481a4;const _0xc0747c=_0x17a7ff[_0x280141(0x128)](),_0x48fa78=this[_0x280141(0xe8)][_0x280141(0xbb)](_0xc0747c);_0x48fa78==null||_0x48fa78[_0x280141(0xc6)]();});}async[_0xb5a573(0xb0)](_0x593f94){var _0x578c24=_0xb5a573;const _0x58ae28=await this[_0x578c24(0xfe)]['requireSession'](_0x593f94),_0x406e20=this[_0x578c24(0x154)][_0x578c24(0x158)](C,_0x593f94,_0x58ae28);return _0x406e20[_0x578c24(0x12a)](),this[_0x578c24(0xe8)][_0x578c24(0x10a)](_0x593f94,_0x406e20),_0x406e20;}};I=Z([f(0x0,_0x5844ca),f(0x1,_0x25c40d(_0x23997e)),f(0x2,_0x25c40d(_0x4060c7))],I);var h=(_0x533652=>(_0x533652[_0xb5a573(0x140)]='offline',_0x533652[_0xb5a573(0xfa)]=_0xb5a573(0xfd),_0x533652['FOLLOWING']=_0xb5a573(0x14b),_0x533652[_0xb5a573(0xb6)]=_0xb5a573(0x13a),_0x533652[_0xb5a573(0xbe)]=_0xb5a573(0x143),_0x533652))(h||{});const Pe=_0xb5a573(0x11f),Ae=0xc8;let C=class extends _0x418f74{constructor(_0x3ba838,_0x52736f,_0x5448ed,_0x2c5746,_0x29206c){var _0x2f147f=_0xb5a573;super(),d(this,_0x2f147f(0x135),new _0xb5b223(_0x2f147f(0xfd))),d(this,_0x2f147f(0x141),this[_0x2f147f(0x135)][_0x2f147f(0xd7)]()),d(this,'_init',!0x1),d(this,_0x2f147f(0xfc),null),d(this,_0x2f147f(0x129),null),(this[_0x2f147f(0x124)]=_0x3ba838,this['_collabSession']=_0x52736f,this['_configService']=_0x5448ed,this[_0x2f147f(0xb5)]=_0x2c5746,this[_0x2f147f(0xf0)]=_0x29206c);}get[_0xb5a573(0xe9)](){var _0x53991b=_0xb5a573;return this[_0x53991b(0x135)][_0x53991b(0x12d)]();}['dispose'](){var _0x5b7d25=_0xb5a573,_0x3ae378;(_0x3ae378=this['_commandDisposable'])==null||_0x3ae378['dispose'](),this[_0x5b7d25(0x135)][_0x5b7d25(0xf3)](_0x5b7d25(0xfd)),this[_0x5b7d25(0x135)][_0x5b7d25(0xd8)]();}['init'](){var _0x2a58f1=_0xb5a573;this[_0x2a58f1(0xfb)]||(this[_0x2a58f1(0xfb)]=!0x0,this[_0x2a58f1(0x149)][_0x2a58f1(0x11c)]['pipe'](_0x5f0151(this[_0x2a58f1(0xcd)]))[_0x2a58f1(0x14f)](_0x131c71=>{var _0x38ad4c=_0x2a58f1;switch(_0x131c71){case _0x56066c['OFFLINE']:this[_0x38ad4c(0xf2)]();break;case _0x56066c[_0x38ad4c(0xef)]:this[_0x38ad4c(0x136)]();break;}}),this[_0x2a58f1(0x149)][_0x2a58f1(0x13e)]['pipe'](_0x5f0151(this['dispose$']))['subscribe'](_0x11ca74=>{var _0x1b2e5f=_0x2a58f1;const {eventID:_0x33b820}=_0x11ca74;switch(_0x33b820){case _0x3fac8b[_0x1b2e5f(0x12f)]:this[_0x1b2e5f(0x14e)](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x12b)]:this['_handleOperation'](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x126)]:this['_handleTerminate']();break;case _0x3fac8b[_0x1b2e5f(0x125)]:this[_0x1b2e5f(0xe7)](_0x11ca74);break;}}));}[_0xb5a573(0xe1)](){var _0x1ef7a0=_0xb5a573;this[_0x1ef7a0(0x149)][_0x1ef7a0(0x107)]({'eventID':_0x3fac8b[_0x1ef7a0(0x119)],'data':{'unitID':this[_0x1ef7a0(0x124)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1ef7a0(0x124)]);}[_0xb5a573(0x13d)](){var _0x2fb3a2=_0xb5a573;this[_0x2fb3a2(0xe9)]==='presenting'&&(this['_status$'][_0x2fb3a2(0xf3)]('idle'),this['_collabSession'][_0x2fb3a2(0x107)]({'eventID':_0x3fac8b[_0x2fb3a2(0x126)],'data':{'unitID':this[_0x2fb3a2(0x124)]}},this[_0x2fb3a2(0x124)]));}[_0xb5a573(0xc2)](){var _0x1f290d=_0xb5a573;this[_0x1f290d(0xe9)]==='not-following'&&(this['_status$'][_0x1f290d(0xf3)](_0x1f290d(0x14b)),this['_startFollowing']());}[_0xb5a573(0x153)](){var _0x10b5ee=_0xb5a573;this[_0x10b5ee(0xe9)]==='following'&&this[_0x10b5ee(0x116)]();}[_0xb5a573(0x14e)](_0x1d5957){var _0x28289f=_0xb5a573;const {presenter:_0x262bba}=_0x1d5957[_0x28289f(0xe3)],_0x2ae66a=this[_0x28289f(0x149)][_0x28289f(0x112)]();this[_0x28289f(0x129)]=_0x262bba,_0x262bba===_0x2ae66a?(this['_stopFollowing'](),this[_0x28289f(0xed)]()):this[_0x28289f(0xe9)]!=='not-following'&&(this['_stopPresenting'](),this[_0x28289f(0xb7)]());}[_0xb5a573(0x138)](){var _0x38a8be=_0xb5a573;const _0xd07073={'eventID':_0x3fac8b[_0x38a8be(0x131)]};this[_0x38a8be(0x149)][_0x38a8be(0x107)](_0xd07073,this[_0x38a8be(0x124)]);}[_0xb5a573(0xd5)](){var _0x2c4196=_0xb5a573;this[_0x2c4196(0x129)]=null,this[_0x2c4196(0xe9)]!==_0x2c4196(0x143)&&this[_0x2c4196(0x11a)]();}[_0xb5a573(0xe7)](_0x427830){var _0x1d32f5=_0xb5a573;if(this[_0x1d32f5(0xe9)]===_0x1d32f5(0x14b)&&this['_presenter']===_0x427830[_0x1d32f5(0xe3)]['memberID']){const _0x3f249c=_0x1368e0(_0x427830[_0x1d32f5(0xe3)])['mutations']['reverse']()[_0x1d32f5(0x10c)](_0x15ea47=>_0x15ea47['id']===_0xdd5f97['id']);if(_0x3f249c){const _0x482123=_0x3f249c[_0x1d32f5(0x145)]['unitId'],_0x15e3b9=_0x3f249c['params'][_0x1d32f5(0x144)]['id'];setTimeout(()=>{var _0x10a453=_0x1d32f5;this[_0x10a453(0xf0)][_0x10a453(0xbc)](_0x163e4d['id'],{'unitId':_0x482123,'subUnitId':_0x15e3b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x47297=_0xb5a573;this['_status$'][_0x47297(0xf3)](_0x47297(0x143));const _0x254859=new Map(),_0x5a89fe=this['_commandDisposable']=new _0x4833fc();_0x5a89fe[_0x47297(0x133)](_0x48fd6a(()=>{var _0x2f52ca=_0x47297;_0x254859[_0x2f52ca(0xb1)](_0xc62ef6=>_0xc62ef6[_0x2f52ca(0xd8)]()),_0x254859[_0x2f52ca(0x139)]();})),_0x5a89fe['add'](this[_0x47297(0xf0)][_0x47297(0xf6)](_0x2cd2ec=>{var _0x4b51fd=_0x47297,_0x5c7147;if(_0x2cd2ec[_0x4b51fd(0x132)]!==_0x56378a['OPERATION']||!this[_0x4b51fd(0xb5)]['shouldShareOperation'](_0x2cd2ec['id']))return;const {id:_0x5b19d5}=_0x2cd2ec;let _0x395fc6;_0x254859[_0x4b51fd(0x101)](_0x5b19d5)?_0x395fc6=_0x254859[_0x4b51fd(0xbb)](_0x5b19d5):(_0x395fc6=new _0x11092e(),_0x254859['set'](_0x5b19d5,_0x395fc6),_0x395fc6['pipe'](_0x285441((_0x5c7147=this[_0x4b51fd(0xd6)]['getConfig'](Pe))!=null?_0x5c7147:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b51fd(0x14f)](_0x28adf2=>{var _0x2881a3=_0x4b51fd;this[_0x2881a3(0x149)][_0x2881a3(0x107)]({'eventID':_0x3fac8b[_0x2881a3(0x12b)],'data':{'unitID':this[_0x2881a3(0x124)],'operations':{[_0x28adf2['id']]:{'id':_0x28adf2['id'],'params':JSON[_0x2881a3(0x115)](_0x28adf2[_0x2881a3(0x145)])}}}},this['_unitID']);})),_0x395fc6[_0x4b51fd(0xf3)](_0x2cd2ec);})),this[_0x47297(0xb5)]['getInitialStates'](this[_0x47297(0x124)])['forEach'](_0x2f6b1c=>this[_0x47297(0x149)]['send']({'eventID':_0x3fac8b[_0x47297(0x12b)],'data':{'unitID':this[_0x47297(0x124)],'operations':{[_0x2f6b1c['id']]:{'id':_0x2f6b1c['id'],'params':JSON[_0x47297(0x115)](_0x2f6b1c[_0x47297(0x145)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3908e5=_0xb5a573,_0x1d428e;this['_status$']['next'](_0x3908e5(0xfd)),(_0x1d428e=this['_commandDisposable'])==null||_0x1d428e[_0x3908e5(0xc6)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x5588ba=_0xb5a573,_0x20508e;(_0x20508e=this[_0x5588ba(0xfc)])==null||_0x20508e[_0x5588ba(0xc6)](),this[_0x5588ba(0x135)][_0x5588ba(0xf3)](_0x5588ba(0x14b));}[_0xb5a573(0x11a)](){var _0x21562d=_0xb5a573,_0x4eb6cd;this[_0x21562d(0x135)][_0x21562d(0xf3)]('idle'),(_0x4eb6cd=this[_0x21562d(0xfc)])==null||_0x4eb6cd[_0x21562d(0xc6)](),this['_commandDisposable']=null;}[_0xb5a573(0x116)](){var _0x3de871=_0xb5a573,_0x34178f;this[_0x3de871(0x135)][_0x3de871(0xf3)](_0x3de871(0x13a)),(_0x34178f=this['_commandDisposable'])==null||_0x34178f[_0x3de871(0xc6)]();}['_handleOperation'](_0xcf7b58){var _0x1dab09=_0xb5a573;if([_0x1dab09(0x143),'not-following',_0x1dab09(0x109)][_0x1dab09(0xc1)](this[_0x1dab09(0xe9)])||!_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]||_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]===this[_0x1dab09(0x149)][_0x1dab09(0x112)]())return;this[_0x1dab09(0xe9)]===_0x1dab09(0xfd)&&this[_0x1dab09(0xb7)]();const _0x5b42c2=_0xcf7b58['data'][_0x1dab09(0xee)];Object[_0x1dab09(0x134)](_0x5b42c2)[_0x1dab09(0xb1)](_0xcba08a=>{var _0x23981e=_0x1dab09;this[_0x23981e(0xf0)][_0x23981e(0xbc)](_0xcba08a['id'],_0xcba08a['params']?JSON[_0x23981e(0x130)](_0xcba08a[_0x23981e(0x145)]):null,{'fromCollab':!0x0});});}[_0xb5a573(0xf2)](){var _0x406430=_0xb5a573,_0x4dfac2;this[_0x406430(0x135)][_0x406430(0xf3)](_0x406430(0x109)),(_0x4dfac2=this[_0x406430(0xfc)])==null||_0x4dfac2[_0x406430(0xc6)]();}[_0xb5a573(0x136)](){var _0x4206dc=_0xb5a573;this[_0x4206dc(0x135)]['next'](_0x4206dc(0xfd)),this[_0x4206dc(0x138)]();}};C=Z([f(0x2,_0x94ff8f),f(0x3,_0x25c40d(L)),f(0x4,_0x1cfa91)],C);function Te(){var _0x2a2980=_0xb5a573;const _0x4f2e31=_0x17f9c4(I),_0x55c8c4=_0x17f9c4(_0x5844ca),_0x3ebae7=_0x5e0586(()=>_0x55c8c4[_0x2a2980(0x11d)](_0x1101b5[_0x2a2980(0xc9)]),void 0x0,!0x1,[]),[_0x39f03c,_0xa87f14]=_0x55d438(null),[_0x12800f,_0x10407d]=_0x55d438(h[_0x2a2980(0xfa)]),_0x47e67f=_0x2b7cde(null);return _0x58a87a(()=>(_0x3ebae7&&_0x4f2e31['getLiveShareCoordinator'](_0x3ebae7[_0x2a2980(0x128)]())['then'](_0x4a59db=>{var _0x4d36fc=_0x2a2980;_0xa87f14(_0x4a59db),_0x47e67f[_0x4d36fc(0xec)]=_0x4a59db['status$'][_0x4d36fc(0x14f)](_0x181865=>{_0x10407d(_0x181865);});}),()=>{var _0x4d966e=_0x2a2980,_0x564f4e;(_0x564f4e=_0x47e67f[_0x4d966e(0xec)])==null||_0x564f4e['unsubscribe'](),_0x47e67f['current']=null;}),[_0x3ebae7,_0x4f2e31]),_0x39f03c?_0x1500a3(_0xe6f284,{'align':_0x2a2980(0x155),'disabled':_0x12800f===h[_0x2a2980(0x140)],'className':_0x2a2980(0xdd),'overlay':_0x1500a3($e,{'status':_0x12800f,'coordinator':_0x39f03c}),'children':_0x1500a3(_0x2a2980(0xd4),{'className':_0x4aa598('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12800f===h[_0x2a2980(0x140)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12800f!==h[_0x2a2980(0x140)]}),'type':_0x2a2980(0xd4),'children':_0x1500a3(B,{'className':_0x2a2980(0xb4)})})}):null;}function $e(_0xdfac62){var _0x1270cd=_0xb5a573;const {status:_0x183b45,coordinator:_0x21e06d}=_0xdfac62;switch(_0x183b45){case h[_0x1270cd(0xfa)]:return _0x1500a3(Fe,{'coordinator':_0x21e06d});case h['FOLLOWING']:return _0x1500a3(He,{'coordinator':_0x21e06d});case h[_0x1270cd(0xb6)]:return _0x1500a3(je,{'coordinator':_0x21e06d});case h[_0x1270cd(0x140)]:return _0x1500a3(Ve,{});case h[_0x1270cd(0xbe)]:return _0x1500a3(Ue,{'coordinator':_0x21e06d});default:return null;}}function Fe(_0x1bb859){var _0x1b9bf9=_0xb5a573;const {coordinator:_0x12c772}=_0x1bb859;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1b9bf9(0xb8),{'className':_0x1b9bf9(0xd3),'children':_0x1b9bf9(0x118)}),_0x1500a3(_0x589980,{'onClick':()=>_0x12c772[_0x1b9bf9(0xe1)](),'children':_0x1b9bf9(0x11e)})]});}function He(_0x540831){var _0x328b33=_0xb5a573;const {coordinator:_0x409294}=_0x540831;return _0x41e94b(_0x533264,{'children':[_0x1500a3('div',{'className':_0x328b33(0xd3),'children':_0x328b33(0x142)}),_0x1500a3(_0x589980,{'onClick':()=>_0x409294[_0x328b33(0x153)](),'children':'Stop\x20following'})]});}function je(_0x20f8a7){var _0x416e8e=_0xb5a573;const {coordinator:_0x59eb1f}=_0x20f8a7;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x416e8e(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416e8e(0x152)}),_0x1500a3(_0x589980,{'variant':_0x416e8e(0x104),'onClick':()=>_0x59eb1f[_0x416e8e(0xc2)](),'children':'Start\x20following'})]});}function Ue(_0x4200df){var _0x1658af=_0xb5a573;const {coordinator:_0x14f67d}=_0x4200df;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1658af(0xb8),{'className':_0x1658af(0xd3),'children':_0x1658af(0xd9)}),_0x1500a3(_0x589980,{'variant':_0x1658af(0xeb),'onClick':()=>_0x14f67d['stopPresenting'](),'children':_0x1658af(0xff)})]});}function Ve(){return _0x1500a3(_0x533264,{'children':'You\x27are\x20offline.'});}function _0xa6c5(_0xe340b7,_0xbd862f){var _0xa8080=_0xa808();return _0xa6c5=function(_0xa6c50,_0x348220){_0xa6c50=_0xa6c50-0xb0;var _0x4aa674=_0xa8080[_0xa6c50];return _0x4aa674;},_0xa6c5(_0xe340b7,_0xbd862f);}var Me=Object[_0xb5a573(0x117)],ke=(_0x455b43,_0x27a19f,_0x58878e,_0x47bdef)=>{var _0x367a37=_0xb5a573;for(var _0xa558cb=_0x47bdef>0x1?void 0x0:_0x47bdef?Me(_0x27a19f,_0x58878e):_0x27a19f,_0x1c8da4=_0x455b43[_0x367a37(0xe0)]-0x1,_0x197c33;_0x1c8da4>=0x0;_0x1c8da4--)(_0x197c33=_0x455b43[_0x1c8da4])&&(_0xa558cb=_0x197c33(_0xa558cb)||_0xa558cb);return _0xa558cb;},$=(_0xa3c63d,_0x484f3f)=>(_0x306b7c,_0x5ddb55)=>_0x484f3f(_0x306b7c,_0x5ddb55,_0xa3c63d);let b=class extends _0x250142{constructor(_0x40b474,_0x2463aa){var _0x35f85e=_0xb5a573;super(),this[_0x35f85e(0x154)]=_0x40b474,this[_0x35f85e(0xdf)]=_0x2463aa,this[_0x35f85e(0xc4)]();}[_0xb5a573(0xc4)](){var _0x5c1b6e=_0xb5a573;this[_0x5c1b6e(0xcc)](this[_0x5c1b6e(0xdf)][_0x5c1b6e(0xb9)](_0x3e8244['HEADER_MENU'],()=>_0x598d28(Te,this[_0x5c1b6e(0x154)])));}};b=ke([$(0x0,_0x25c40d(_0x23997e)),$(0x1,_0x277d3f)],b);var Ge=Object[_0xb5a573(0x123)],We=Object[_0xb5a573(0x117)],Ye=(_0x2abda0,_0x2837ea,_0x316045)=>_0x2837ea in _0x2abda0?Ge(_0x2abda0,_0x2837ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x316045}):_0x2abda0[_0x2837ea]=_0x316045,Be=(_0x240feb,_0x2ab6fe,_0x85d27a,_0x30f1ab)=>{var _0x4675b3=_0xb5a573;for(var _0x268cf6=_0x30f1ab>0x1?void 0x0:_0x30f1ab?We(_0x2ab6fe,_0x85d27a):_0x2ab6fe,_0x32311b=_0x240feb[_0x4675b3(0xe0)]-0x1,_0x497a86;_0x32311b>=0x0;_0x32311b--)(_0x497a86=_0x240feb[_0x32311b])&&(_0x268cf6=_0x497a86(_0x268cf6)||_0x268cf6);return _0x268cf6;},F=(_0x4c7355,_0x3671d8)=>(_0x2194b8,_0x216d0e)=>_0x3671d8(_0x2194b8,_0x216d0e,_0x4c7355),J=(_0x26648a,_0x5b1545,_0x4eb0f5)=>Ye(_0x26648a,typeof _0x5b1545!=_0xb5a573(0x10b)?_0x5b1545+'':_0x5b1545,_0x4eb0f5);const Ze=_0xb5a573(0x103);let O=class extends _0x5e8534{constructor(_0x159a96=T,_0xe2846f,_0x488191){var _0x1fbc4f=_0xb5a573;super(),this[_0x1fbc4f(0xf4)]=_0x159a96,this[_0x1fbc4f(0x154)]=_0xe2846f,this[_0x1fbc4f(0xd6)]=_0x488191;const {..._0x278b45}=_0x2a990a({},T,this[_0x1fbc4f(0xf4)]);this['_configService'][_0x1fbc4f(0xcb)](Oe,_0x278b45);}['onStarting'](){var _0x45c172=_0xb5a573;_0x2e1b41(this['_injector'],_0x502523([[L],[I],[m],[b]],this[_0x45c172(0xf4)][_0x45c172(0xc5)])),_0x163c27(this[_0x45c172(0x154)],[[m]]);}[_0xb5a573(0x121)](){var _0x262078=_0xb5a573;_0x163c27(this[_0x262078(0x154)],[[b]]);}};J(O,'type',_0x1101b5[_0xb5a573(0xd1)]),J(O,_0xb5a573(0x11b),Ze),O=Be([_0x39b586(_0x4dd30b),F(0x1,_0x25c40d(_0x23997e)),F(0x2,_0x94ff8f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1482(){var _0x156357=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','@univerjs/ui','jsx','override','prototype','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','object','throttleTime','replace','string','requireSession','Start','_handleTerminate','jsxs','presenting','_startLiveShareCoordinator','_status$','LiveShareStatus','extend','4mIiFUd','toStringTag','CollaborationSessionService','propertyIsEnumerable','UNIVER_LIVE_SHARE_PLUGIN','defIds','_status','_liveShareService','get','74WQREzs','following','dispose$','InsertSheetMutation','unitId','current','data','defineProperty','rxjs','idle','call','react/jsx-runtime','xlink:href','createElement','_handleNewChangeSets','Inject','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOperation','offline','_commandDisposable','React','has','_collabSession','Module','parseProtocolChangeset','LiveShareCoordinator','assign','params','UniverInstanceType','Injector','1095363cQBFCf','_fetchOperations','FOLLOWING','_injector','NOT_FOLLOWING','LIVESHARE_TERMINATE','dispose','UniverCollaborationClientPlugin','DesktopLiveShareController','IUIPartsService','delete','_mountLiveShare','_handleNewHost','_stopPresenting','RxDisposable','useEffect','setConfig','disposeWithMe','useObservable','operators','3062220IUUejy','SetWorksheetActiveOperation','LIVESHARE_NEW_HOST','substring','div','7901AQbpaB','onStarting','subscribe','merge','presenter','9HodUaG','LIVESHARE_OPERATION','add','0\x200\x2017\x2017','_configService','mutations','UniverIcon','NEW_CHANGESETS','function','mergeOverrideWithDependencies','stopFollowing','PRESENTING','UniverDesign','currentColor','asObservable','url(#$1','executeCommand','registerDependencies','3873704UKXnnG','length','univer-size-4','UNIVER_UNKNOWN','complete','@univerjs-pro/collaboration','idSuffix','sheet','takeUntil','className','live-share-icon','memberID','UNIVER_SHEET','75fCAWsX','toString','send','pipe','Start\x20following','createInstance','_uiPartsService','default','LiveShareService','live-share.config','SAME_OPERATION_SHARE_INTERVAL','type','registerSharedOperation','@univerjs-pro/collaboration-client','300yVkCGL','_reporters','tryStartPresenting','SessionStatus','BuiltInUIPart','_beIdle','reverse','Subject','http://www.w3.org/2000/svg','LiveShareController','mask','connectInjector','evenodd','_presenter','path','getOwnPropertyDescriptor','concat','_startPresenting','stringify','_init','getTypeOfUnitAdded$','text','_commandService','find','getTypeOfUnitDisposed$','values','includes','react','IDLE','useDependency','DependentOn','forwardRef','end','You\x27are\x20offline.','UniverProCollaborationClient','map','defs','toDisposable','startFollowing','attrs','_unitID','getInitialStates','touchDependencies','_startFollowing','onCommandExecuted','colorChannel1','IConfigService','_entities','35849WvehWK','_univerInstanceService','operations','Fragment','Dropdown','UniverProLiveShare','_config','getUnitId','_handleOffline','ICommandService','_sharedOperations','SetScrollOperation','_handleOnline','OPERATION','tag','@univerjs/design','then','UniverSheetsUi','1em','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getLiveShareCoordinator','getMemberID','Disposable','not-following','none','next','329082qOJEEs','useState','Button','svg','from','status$','children','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','4389150GjQFBg','clear','unsubscribe','@univerjs/sheets','icon','useRef','_collabSessionService','UniverCore','UniverProCollaboration','forEach','sessionStatus$','OFFLINE','hasOwnProperty','UniverLiveSharePlugin','CollaborationEvent','onRendered','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','init','fill','entries','exports','stopPresenting','getOwnPropertySymbols'];_0x1482=function(){return _0x156357;};return _0x1482();}function _0x5b0f(_0x4b1d4f,_0x45fc3c){var _0x148275=_0x1482();return _0x5b0f=function(_0x5b0f9b,_0x37f0ea){_0x5b0f9b=_0x5b0f9b-0x17c;var _0x55bc8b=_0x148275[_0x5b0f9b];return _0x55bc8b;},_0x5b0f(_0x4b1d4f,_0x45fc3c);}(function(_0x3f2b35,_0x5e6b32){var _0x348966=_0x5b0f,_0x2656da=_0x3f2b35();while(!![]){try{var _0x2a1cc5=-parseInt(_0x348966(0x243))/0x1*(parseInt(_0x348966(0x20c))/0x2)+-parseInt(_0x348966(0x22a))/0x3*(-parseInt(_0x348966(0x203))/0x4)+parseInt(_0x348966(0x267))/0x5*(parseInt(_0x348966(0x1ce))/0x6)+parseInt(_0x348966(0x23e))/0x7+-parseInt(_0x348966(0x25a))/0x8+parseInt(_0x348966(0x248))/0x9*(-parseInt(_0x348966(0x1d7))/0xa)+parseInt(_0x348966(0x1b4))/0xb*(parseInt(_0x348966(0x184))/0xc);if(_0x2a1cc5===_0x5e6b32)break;else _0x2656da['push'](_0x2656da['shift']());}catch(_0x102729){_0x2656da['push'](_0x2656da['shift']());}}}(_0x1482,0x77f20),function(_0x5a7a11,_0x282ba7){var _0xe4d238=_0x5b0f;typeof exports==_0xe4d238(0x1f6)&&typeof module<'u'?_0x282ba7(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0xe4d238(0x250)&&define['amd']?define([_0xe4d238(0x1ec),_0xe4d238(0x183),'@univerjs/core',_0xe4d238(0x1da),'@univerjs/sheets-ui',_0xe4d238(0x1f0),_0xe4d238(0x217),_0xe4d238(0x1c3),_0xe4d238(0x19f),_0xe4d238(0x25f),_0xe4d238(0x214),'rxjs/operators'],_0x282ba7):(_0x5a7a11=typeof globalThis<'u'?globalThis:_0x5a7a11||self,_0x282ba7(_0x5a7a11[_0xe4d238(0x1b9)]={},_0x5a7a11[_0xe4d238(0x1a6)],_0x5a7a11[_0xe4d238(0x1de)],_0x5a7a11['UniverSheets'],_0x5a7a11[_0xe4d238(0x1c5)],_0x5a7a11['UniverUi'],_0x5a7a11['React'],_0x5a7a11[_0xe4d238(0x254)],_0x5a7a11[_0xe4d238(0x220)],_0x5a7a11[_0xe4d238(0x1df)],_0x5a7a11['rxjs'],_0x5a7a11[_0xe4d238(0x214)][_0xe4d238(0x23d)]));}(this,function(_0x5ad6c7,_0x375e67,_0xcaf7ae,_0x2702ae,_0x59347d,_0x161e4b,_0x262f66,_0x2f37aa,_0x40f633,_0x263325,_0xa89caf,_0x5431c6){'use strict';var _0x554ef4=_0x5b0f;var _0x5ee112=Object[_0x554ef4(0x213)],_0x46bad0=(_0x33d626,_0x27222c,_0x432aeb)=>_0x27222c in _0x33d626?_0x5ee112(_0x33d626,_0x27222c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x432aeb}):_0x33d626[_0x27222c]=_0x432aeb,_0x4b4270=(_0x37e0b0,_0x1185eb,_0x16bf4b)=>_0x46bad0(_0x37e0b0,typeof _0x1185eb!='symbol'?_0x1185eb+'':_0x1185eb,_0x16bf4b);const _0xcce08b=_0x554ef4(0x17f),_0x1f6169={};class _0x589ca0 extends _0xcaf7ae[_0x554ef4(0x1ca)]{constructor(){var _0x49e655=_0x554ef4;super(...arguments),_0x4b4270(this,_0x49e655(0x1be),new Set()),_0x4b4270(this,'_reporters',new Set());}[_0x554ef4(0x182)](_0x56c072){var _0x21aacd=_0x554ef4;return this['_sharedOperations']['add'](_0x56c072),_0xcaf7ae[_0x21aacd(0x1a9)](()=>this[_0x21aacd(0x1be)][_0x21aacd(0x234)](_0x56c072));}['registerInitialStateReporter'](_0x28c284){var _0x2f8f2b=_0x554ef4;return this['_reporters'][_0x2f8f2b(0x24a)](_0x28c284),_0xcaf7ae[_0x2f8f2b(0x1a9)](()=>this[_0x2f8f2b(0x185)]['delete'](_0x28c284));}[_0x554ef4(0x1e7)](_0x43eec3){var _0x4d3722=_0x554ef4;return this['_sharedOperations'][_0x4d3722(0x221)](_0x43eec3);}[_0x554ef4(0x1ad)](_0x51a6d1){var _0x3b7fa5=_0x554ef4;return Array[_0x3b7fa5(0x1d2)](this[_0x3b7fa5(0x185)])['map'](_0x1046f0=>_0x1046f0(_0x51a6d1));}}var _0x24d874=Object['getOwnPropertyDescriptor'],_0x11036b=(_0x6734ba,_0x5278f6,_0x483223,_0xd8498e)=>{var _0x274c28=_0x554ef4;for(var _0x3fcdfd=_0xd8498e>0x1?void 0x0:_0xd8498e?_0x24d874(_0x5278f6,_0x483223):_0x5278f6,_0x1bdfe8=_0x6734ba[_0x274c28(0x25b)]-0x1,_0x54161e;_0x1bdfe8>=0x0;_0x1bdfe8--)(_0x54161e=_0x6734ba[_0x1bdfe8])&&(_0x3fcdfd=_0x54161e(_0x3fcdfd)||_0x3fcdfd);return _0x3fcdfd;},_0x13611b=(_0x39c009,_0x115af6)=>(_0x14f189,_0x1a2664)=>_0x115af6(_0x14f189,_0x1a2664,_0x39c009);let _0x88296a=class extends _0xcaf7ae[_0x554ef4(0x1ca)]{constructor(_0x48fc11){var _0x528e9e=_0x554ef4;super(),this[_0x528e9e(0x20a)]=_0x48fc11,this[_0x528e9e(0x197)]();}['_init'](){var _0x24f1ea=_0x554ef4;[_0x59347d['SetZoomRatioOperation']['id'],_0x59347d[_0x24f1ea(0x1bf)]['id'],_0x2702ae[_0x24f1ea(0x23f)]['id']][_0x24f1ea(0x1e0)](_0x54bc9e=>{var _0x35a359=_0x24f1ea;this[_0x35a359(0x23b)](this[_0x35a359(0x20a)]['registerSharedOperation'](_0x54bc9e));});}};_0x88296a=_0x11036b([_0x13611b(0x0,_0xcaf7ae[_0x554ef4(0x21b)](_0x589ca0))],_0x88296a);var _0x49415e=function(){var _0x52826d=_0x554ef4;return _0x49415e=Object[_0x52826d(0x226)]||function(_0x21b60a){var _0x3aedb3=_0x52826d;for(var _0x33e71d,_0x62ade3=0x1,_0x454f1f=arguments['length'];_0x62ade3<_0x454f1f;_0x62ade3++){_0x33e71d=arguments[_0x62ade3];for(var _0x55738d in _0x33e71d)Object[_0x3aedb3(0x1f3)][_0x3aedb3(0x1e3)][_0x3aedb3(0x216)](_0x33e71d,_0x55738d)&&(_0x21b60a[_0x55738d]=_0x33e71d[_0x55738d]);}return _0x21b60a;},_0x49415e['apply'](this,arguments);},_0x277b8f=function(_0x2f715d,_0x17ee4d){var _0x1ac891=_0x554ef4,_0x3767ab={};for(var _0x1160ea in _0x2f715d)Object['prototype'][_0x1ac891(0x1e3)][_0x1ac891(0x216)](_0x2f715d,_0x1160ea)&&_0x17ee4d['indexOf'](_0x1160ea)<0x0&&(_0x3767ab[_0x1160ea]=_0x2f715d[_0x1160ea]);if(_0x2f715d!=null&&typeof Object[_0x1ac891(0x1ee)]==_0x1ac891(0x250)){for(var _0x462af2=0x0,_0x1160ea=Object['getOwnPropertySymbols'](_0x2f715d);_0x462af2<_0x1160ea[_0x1ac891(0x25b)];_0x462af2++)_0x17ee4d['indexOf'](_0x1160ea[_0x462af2])<0x0&&Object[_0x1ac891(0x1f3)][_0x1ac891(0x206)][_0x1ac891(0x216)](_0x2f715d,_0x1160ea[_0x462af2])&&(_0x3767ab[_0x1160ea[_0x462af2]]=_0x2f715d[_0x1160ea[_0x462af2]]);}return _0x3767ab;},_0x5a6597=_0x40f633[_0x554ef4(0x1a3)](function(_0x53977e,_0x58ea12){var _0x3a07d0=_0x554ef4,_0x164184=_0x53977e[_0x3a07d0(0x1db)],_0x172ed3=_0x53977e['id'],_0x4f4cd2=_0x53977e[_0x3a07d0(0x263)],_0x3f7cd3=_0x53977e[_0x3a07d0(0x202)],_0x35f83e=_0x277b8f(_0x53977e,['icon','id','className',_0x3a07d0(0x202)]),_0x7320d4='univerjs-icon\x20univerjs-icon-'[_0x3a07d0(0x194)](_0x172ed3,'\x20')[_0x3a07d0(0x194)](_0x4f4cd2||'')['trim'](),_0x41dc0e=_0x40f633[_0x3a07d0(0x1dc)]('_'['concat'](_0x19d394()));return _0xf218a9(_0x164184,''[_0x3a07d0(0x194)](_0x172ed3),{'defIds':_0x164184[_0x3a07d0(0x208)],'idSuffix':_0x41dc0e[_0x3a07d0(0x211)]},_0x49415e({'ref':_0x58ea12,'className':_0x7320d4},_0x35f83e),_0x3f7cd3);});function _0xf218a9(_0x2d8110,_0x3f578e,_0x513a69,_0x47a52d,_0x122f0e){var _0x999b04=_0x554ef4;return _0x40f633[_0x999b04(0x219)](_0x2d8110[_0x999b04(0x1c2)],_0x49415e(_0x49415e({'key':_0x3f578e},_0x3dea7c(_0x2d8110,_0x513a69,_0x122f0e)),_0x47a52d),(_0x1267ed(_0x2d8110,_0x513a69)[_0x999b04(0x1d4)]||[])['map'](function(_0x3d77d8,_0x8925f7){var _0x3ef624=_0x999b04;return _0xf218a9(_0x3d77d8,''['concat'](_0x3f578e,'-')[_0x3ef624(0x194)](_0x2d8110[_0x3ef624(0x1c2)],'-')[_0x3ef624(0x194)](_0x8925f7),_0x513a69,void 0x0,_0x122f0e);}));}function _0x3dea7c(_0x570b7b,_0x148ab4,_0x176fcd){var _0x44a917=_0x554ef4,_0x5e9542=_0x49415e({},_0x570b7b['attrs']);_0x176fcd!=null&&_0x176fcd[_0x44a917(0x1b1)]&&_0x5e9542[_0x44a917(0x1ea)]===_0x44a917(0x1b1)&&(_0x5e9542[_0x44a917(0x1ea)]=_0x176fcd[_0x44a917(0x1b1)]),_0x570b7b[_0x44a917(0x1c2)]==='mask'&&_0x5e9542['id']&&(_0x5e9542['id']=_0x5e9542['id']+_0x148ab4[_0x44a917(0x260)]),Object[_0x44a917(0x1eb)](_0x5e9542)[_0x44a917(0x1e0)](function(_0x2eb38f){var _0x2bf5b1=_0x44a917,_0x521423=_0x2eb38f[0x0],_0x46aabf=_0x2eb38f[0x1];_0x521423===_0x2bf5b1(0x18e)&&typeof _0x46aabf=='string'&&(_0x5e9542[_0x521423]=_0x46aabf['replace'](/url\(#(.*)\)/,'url(#$1'[_0x2bf5b1(0x194)](_0x148ab4[_0x2bf5b1(0x260)],')')));});var _0x271628=_0x148ab4[_0x44a917(0x208)];return!_0x271628||_0x271628[_0x44a917(0x25b)]===0x0||(_0x570b7b['tag']==='use'&&_0x5e9542[_0x44a917(0x218)]&&(_0x5e9542[_0x44a917(0x218)]=_0x5e9542[_0x44a917(0x218)]+_0x148ab4[_0x44a917(0x260)]),Object[_0x44a917(0x1eb)](_0x5e9542)[_0x44a917(0x1e0)](function(_0x25f02a){var _0x426a0e=_0x44a917,_0x56a693=_0x25f02a[0x0],_0x3b46af=_0x25f02a[0x1];typeof _0x3b46af==_0x426a0e(0x1f9)&&(_0x5e9542[_0x56a693]=_0x3b46af[_0x426a0e(0x1f8)](/url\(#(.*)\)/,_0x426a0e(0x257)['concat'](_0x148ab4[_0x426a0e(0x260)],')')));})),_0x5e9542;}function _0x1267ed(_0xbf1d21,_0x83bb3c){var _0x26af13=_0x554ef4,_0x1cdc0a,_0x5ea894=_0x83bb3c[_0x26af13(0x208)];return!_0x5ea894||_0x5ea894['length']===0x0?_0xbf1d21:_0xbf1d21[_0x26af13(0x1c2)]===_0x26af13(0x1a8)&&(!((_0x1cdc0a=_0xbf1d21[_0x26af13(0x1d4)])===null||_0x1cdc0a===void 0x0)&&_0x1cdc0a[_0x26af13(0x25b)])?_0x49415e(_0x49415e({},_0xbf1d21),{'children':_0xbf1d21[_0x26af13(0x1d4)][_0x26af13(0x1a7)](function(_0x3d3746){var _0x5ef236=_0x26af13;return typeof _0x3d3746[_0x5ef236(0x1ab)]['id']==_0x5ef236(0x1f9)&&_0x5ea894&&_0x5ea894['includes'](_0x3d3746[_0x5ef236(0x1ab)]['id'])?_0x49415e(_0x49415e({},_0x3d3746),{'attrs':_0x49415e(_0x49415e({},_0x3d3746[_0x5ef236(0x1ab)]),{'id':_0x3d3746['attrs']['id']+_0x83bb3c[_0x5ef236(0x260)]})}):_0x3d3746;})}):_0xbf1d21;}function _0x19d394(){var _0x92b2c0=_0x554ef4;return Math['random']()[_0x92b2c0(0x268)](0x24)[_0x92b2c0(0x241)](0x2,0x8);}_0x5a6597['displayName']=_0x554ef4(0x24e);var _0x1d902a={'tag':_0x554ef4(0x1d1),'attrs':{'xmlns':_0x554ef4(0x18c),'fill':_0x554ef4(0x1cc),'viewBox':_0x554ef4(0x24b),'width':_0x554ef4(0x1c6),'height':'1em'},'children':[{'tag':_0x554ef4(0x192),'attrs':{'fill':_0x554ef4(0x255),'d':_0x554ef4(0x1ef)}},{'tag':_0x554ef4(0x192),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x554ef4(0x190),'clipRule':_0x554ef4(0x190)}}]},_0xb56647=_0x40f633[_0x554ef4(0x1a3)](function(_0x59f8d7,_0x4b03be){var _0x3880aa=_0x554ef4;return _0x40f633[_0x3880aa(0x219)](_0x5a6597,Object['assign']({},_0x59f8d7,{'id':_0x3880aa(0x264),'ref':_0x4b03be,'icon':_0x1d902a}));});_0xb56647['displayName']='LiveShareIcon';var _0x4a1c1c=Object[_0x554ef4(0x193)],_0x244081=(_0x22ce47,_0x460272,_0x517a07,_0x9aea72)=>{var _0x32d2b4=_0x554ef4;for(var _0x3828ec=_0x9aea72>0x1?void 0x0:_0x9aea72?_0x4a1c1c(_0x460272,_0x517a07):_0x460272,_0x2cbdee=_0x22ce47[_0x32d2b4(0x25b)]-0x1,_0x58383b;_0x2cbdee>=0x0;_0x2cbdee--)(_0x58383b=_0x22ce47[_0x2cbdee])&&(_0x3828ec=_0x58383b(_0x3828ec)||_0x3828ec);return _0x3828ec;},_0x3a097b=(_0x5064b6,_0x17b6ca)=>(_0x399dfa,_0x1327c9)=>_0x17b6ca(_0x399dfa,_0x1327c9,_0x5064b6);_0x5ad6c7[_0x554ef4(0x18d)]=class extends _0xcaf7ae[_0x554ef4(0x238)]{constructor(_0x3dd04e,_0x197c3e,_0x5719e6){var _0x5807b4=_0x554ef4;super(),_0x4b4270(this,_0x5807b4(0x1b3),new Map()),(this[_0x5807b4(0x1b5)]=_0x3dd04e,this[_0x5807b4(0x22d)]=_0x197c3e,this[_0x5807b4(0x1dd)]=_0x5719e6,this['_init']());}async[_0x554ef4(0x1c8)](_0x26313d){var _0x2de2ee=_0x554ef4;return this['_entities'][_0x2de2ee(0x221)](_0x26313d)||await this['_startLiveShareCoordinator'](_0x26313d),this[_0x2de2ee(0x1b3)][_0x2de2ee(0x20b)](_0x26313d);}['_init'](){var _0x425990=_0x554ef4;this[_0x425990(0x1b5)][_0x425990(0x198)](_0xcaf7ae[_0x425990(0x228)][_0x425990(0x266)])[_0x425990(0x26a)](_0x5431c6[_0x425990(0x262)](this[_0x425990(0x20e)]))[_0x425990(0x245)](async _0x349725=>{var _0x381bd1=_0x425990;const _0x463d4b=_0x349725[_0x381bd1(0x1bb)]();this[_0x381bd1(0x1b3)][_0x381bd1(0x221)](_0x463d4b)||this[_0x381bd1(0x1ff)](_0x463d4b);}),this['_univerInstanceService'][_0x425990(0x19c)](_0xcaf7ae[_0x425990(0x228)][_0x425990(0x266)])[_0x425990(0x26a)](_0x5431c6['takeUntil'](this['dispose$']))[_0x425990(0x245)](_0x3e195f=>{var _0x1589c8=_0x425990;const _0x2e6b73=_0x3e195f[_0x1589c8(0x1bb)](),_0x5742f8=this['_entities']['get'](_0x2e6b73);_0x5742f8==null||_0x5742f8[_0x1589c8(0x230)]();});}async[_0x554ef4(0x1ff)](_0x390b19){var _0x13b3fb=_0x554ef4;const _0x40dfa7=await this[_0x13b3fb(0x1dd)][_0x13b3fb(0x1fa)](_0x390b19),_0x4dfbf3=this['_injector'][_0x13b3fb(0x26c)](_0x5ad6c7[_0x13b3fb(0x225)],_0x390b19,_0x40dfa7);return _0x4dfbf3['init'](),this[_0x13b3fb(0x1b3)]['set'](_0x390b19,_0x4dfbf3),_0x4dfbf3;}},_0x5ad6c7['LiveShareController']=_0x244081([_0x3a097b(0x0,_0xcaf7ae['IUniverInstanceService']),_0x3a097b(0x1,_0xcaf7ae['Inject'](_0xcaf7ae['Injector'])),_0x3a097b(0x2,_0xcaf7ae[_0x554ef4(0x21b)](_0x375e67[_0x554ef4(0x205)]))],_0x5ad6c7[_0x554ef4(0x18d)]);var _0x3c2f1d=(_0x14eeb1=>(_0x14eeb1['OFFLINE']='offline',_0x14eeb1['IDLE']='idle',_0x14eeb1[_0x554ef4(0x22c)]='following',_0x14eeb1[_0x554ef4(0x22e)]='not-following',_0x14eeb1[_0x554ef4(0x253)]=_0x554ef4(0x1fe),_0x14eeb1))(_0x3c2f1d||{});const _0x48d974=_0x554ef4(0x180),_0x4ef373=0xc8;_0x5ad6c7[_0x554ef4(0x225)]=class extends _0xcaf7ae['RxDisposable']{constructor(_0x2a35f6,_0x20c809,_0x1d4fa4,_0x31c574,_0x5797fd){var _0x34aee2=_0x554ef4;super(),_0x4b4270(this,_0x34aee2(0x200),new _0xa89caf['BehaviorSubject']('idle')),_0x4b4270(this,_0x34aee2(0x1d3),this[_0x34aee2(0x200)][_0x34aee2(0x256)]()),_0x4b4270(this,_0x34aee2(0x197),!0x1),_0x4b4270(this,_0x34aee2(0x21f),null),_0x4b4270(this,'_presenter',null),(this['_unitID']=_0x2a35f6,this[_0x34aee2(0x222)]=_0x20c809,this[_0x34aee2(0x24c)]=_0x1d4fa4,this['_liveShareService']=_0x31c574,this[_0x34aee2(0x19a)]=_0x5797fd);}get[_0x554ef4(0x209)](){var _0x5eca30=_0x554ef4;return this[_0x5eca30(0x200)]['getValue']();}[_0x554ef4(0x230)](){var _0x591aab=_0x554ef4,_0x3ff262;(_0x3ff262=this['_commandDisposable'])==null||_0x3ff262[_0x591aab(0x230)](),this[_0x591aab(0x200)][_0x591aab(0x1cd)](_0x591aab(0x215)),this[_0x591aab(0x200)][_0x591aab(0x25e)]();}[_0x554ef4(0x1e9)](){var _0x139e86=_0x554ef4;this[_0x139e86(0x197)]||(this[_0x139e86(0x197)]=!0x0,this['_collabSession'][_0x139e86(0x1e1)][_0x139e86(0x26a)](_0x5431c6[_0x139e86(0x262)](this[_0x139e86(0x20e)]))[_0x139e86(0x245)](_0x12b7bc=>{var _0x188c4f=_0x139e86;switch(_0x12b7bc){case _0x375e67[_0x188c4f(0x187)][_0x188c4f(0x1e2)]:this[_0x188c4f(0x1bc)]();break;case _0x375e67[_0x188c4f(0x187)]['ONLINE']:this[_0x188c4f(0x1c0)]();break;}}),this['_collabSession']['event$']['pipe'](_0x5431c6[_0x139e86(0x262)](this['dispose$']))[_0x139e86(0x245)](_0x5a1930=>{var _0x50b2f9=_0x139e86;const {eventID:_0x335221}=_0x5a1930;switch(_0x335221){case _0x263325[_0x50b2f9(0x1e5)][_0x50b2f9(0x240)]:this[_0x50b2f9(0x236)](_0x5a1930);break;case _0x263325[_0x50b2f9(0x1e5)]['LIVESHARE_OPERATION']:this[_0x50b2f9(0x21d)](_0x5a1930);break;case _0x263325[_0x50b2f9(0x1e5)][_0x50b2f9(0x22f)]:this[_0x50b2f9(0x1fc)]();break;case _0x263325[_0x50b2f9(0x1e5)][_0x50b2f9(0x24f)]:this['_handleNewChangeSets'](_0x5a1930);break;}}));}[_0x554ef4(0x186)](){var _0x12275f=_0x554ef4;this['_collabSession'][_0x12275f(0x269)]({'eventID':_0x263325[_0x12275f(0x1e5)][_0x12275f(0x1d6)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x12275f(0x1c9)]()}},this[_0x12275f(0x1ac)]);}[_0x554ef4(0x1ed)](){var _0x564fcd=_0x554ef4;this[_0x564fcd(0x209)]===_0x564fcd(0x1fe)&&(this[_0x564fcd(0x200)][_0x564fcd(0x1cd)](_0x564fcd(0x215)),this[_0x564fcd(0x222)][_0x564fcd(0x269)]({'eventID':_0x263325[_0x564fcd(0x1e5)][_0x564fcd(0x22f)],'data':{'unitID':this[_0x564fcd(0x1ac)]}},this[_0x564fcd(0x1ac)]));}['startFollowing'](){var _0x4cf05=_0x554ef4;this[_0x4cf05(0x209)]===_0x4cf05(0x1cb)&&(this[_0x4cf05(0x200)]['next'](_0x4cf05(0x20d)),this[_0x4cf05(0x1af)]());}[_0x554ef4(0x252)](){var _0x348abc=_0x554ef4;this[_0x348abc(0x209)]==='following'&&this[_0x348abc(0x1f5)]();}['_handleNewHost'](_0x3479cd){var _0x18d034=_0x554ef4;const {presenter:_0x148737}=_0x3479cd[_0x18d034(0x212)],_0x23a204=this[_0x18d034(0x222)][_0x18d034(0x1c9)]();this[_0x18d034(0x191)]=_0x148737,_0x148737===_0x23a204?(this[_0x18d034(0x1f5)](),this[_0x18d034(0x195)]()):this[_0x18d034(0x209)]!=='not-following'&&(this[_0x18d034(0x237)](),this['_startFollowing']());}[_0x554ef4(0x22b)](){var _0x4120e3=_0x554ef4;const _0x728a90={'eventID':_0x263325[_0x4120e3(0x1e5)][_0x4120e3(0x1e8)]};this[_0x4120e3(0x222)][_0x4120e3(0x269)](_0x728a90,this[_0x4120e3(0x1ac)]);}[_0x554ef4(0x1fc)](){var _0x45d82b=_0x554ef4;this['_presenter']=null,this[_0x45d82b(0x209)]!=='presenting'&&this[_0x45d82b(0x189)]();}[_0x554ef4(0x21a)](_0x26bbca){var _0x249df1=_0x554ef4;if(this[_0x249df1(0x209)]===_0x249df1(0x20d)&&this[_0x249df1(0x191)]===_0x26bbca[_0x249df1(0x212)][_0x249df1(0x265)]){const _0x2eb67d=_0x263325[_0x249df1(0x224)](_0x26bbca[_0x249df1(0x212)])[_0x249df1(0x24d)][_0x249df1(0x18a)]()[_0x249df1(0x19b)](_0x877fcf=>_0x877fcf['id']===_0x2702ae[_0x249df1(0x20f)]['id']);if(_0x2eb67d){const _0x5161d6=_0x2eb67d['params'][_0x249df1(0x210)],_0x4f12ff=_0x2eb67d['params'][_0x249df1(0x261)]['id'];setTimeout(()=>{var _0x49f410=_0x249df1;this[_0x49f410(0x19a)]['executeCommand'](_0x2702ae[_0x49f410(0x23f)]['id'],{'unitId':_0x5161d6,'subUnitId':_0x4f12ff},{'fromCollab':!0x0});});}}}[_0x554ef4(0x195)](){var _0x4eb137=_0x554ef4;this[_0x4eb137(0x200)][_0x4eb137(0x1cd)](_0x4eb137(0x1fe));const _0x1bbe8=new Map(),_0x4961c7=this['_commandDisposable']=new _0xcaf7ae['DisposableCollection']();_0x4961c7[_0x4eb137(0x24a)](_0xcaf7ae[_0x4eb137(0x1a9)](()=>{var _0x4dcd44=_0x4eb137;_0x1bbe8['forEach'](_0x175a40=>_0x175a40[_0x4dcd44(0x25e)]()),_0x1bbe8[_0x4dcd44(0x1d8)]();})),_0x4961c7[_0x4eb137(0x24a)](this[_0x4eb137(0x19a)][_0x4eb137(0x1b0)](_0x2ac69d=>{var _0x402bc4=_0x4eb137,_0x125cd8;if(_0x2ac69d[_0x402bc4(0x181)]!==_0xcaf7ae['CommandType'][_0x402bc4(0x1c1)]||!this[_0x402bc4(0x20a)]['shouldShareOperation'](_0x2ac69d['id']))return;const {id:_0x2fe3ef}=_0x2ac69d;let _0x59f006;_0x1bbe8['has'](_0x2fe3ef)?_0x59f006=_0x1bbe8[_0x402bc4(0x20b)](_0x2fe3ef):(_0x59f006=new _0xa89caf[(_0x402bc4(0x18b))](),_0x1bbe8['set'](_0x2fe3ef,_0x59f006),_0x59f006['pipe'](_0x5431c6[_0x402bc4(0x1f7)]((_0x125cd8=this[_0x402bc4(0x24c)]['getConfig'](_0x48d974))!=null?_0x125cd8:_0x4ef373,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x402bc4(0x245)](_0x515911=>{var _0x59dddd=_0x402bc4;this[_0x59dddd(0x222)][_0x59dddd(0x269)]({'eventID':_0x263325[_0x59dddd(0x1e5)][_0x59dddd(0x249)],'data':{'unitID':this[_0x59dddd(0x1ac)],'operations':{[_0x515911['id']]:{'id':_0x515911['id'],'params':JSON[_0x59dddd(0x196)](_0x515911[_0x59dddd(0x227)])}}}},this[_0x59dddd(0x1ac)]);})),_0x59f006[_0x402bc4(0x1cd)](_0x2ac69d);})),this['_liveShareService']['getInitialStates'](this[_0x4eb137(0x1ac)])[_0x4eb137(0x1e0)](_0xa6bc36=>this[_0x4eb137(0x222)][_0x4eb137(0x269)]({'eventID':_0x263325[_0x4eb137(0x1e5)][_0x4eb137(0x249)],'data':{'unitID':this[_0x4eb137(0x1ac)],'operations':{[_0xa6bc36['id']]:{'id':_0xa6bc36['id'],'params':JSON['stringify'](_0xa6bc36[_0x4eb137(0x227)])}}}},this['_unitID']));}[_0x554ef4(0x237)](){var _0x34fc69=_0x554ef4,_0x1d47bf;this[_0x34fc69(0x200)][_0x34fc69(0x1cd)](_0x34fc69(0x215)),(_0x1d47bf=this['_commandDisposable'])==null||_0x1d47bf[_0x34fc69(0x230)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x1e77c2=_0x554ef4,_0x19d5b5;(_0x19d5b5=this[_0x1e77c2(0x21f)])==null||_0x19d5b5[_0x1e77c2(0x230)](),this[_0x1e77c2(0x200)][_0x1e77c2(0x1cd)](_0x1e77c2(0x20d));}['_beIdle'](){var _0x518ef4=_0x554ef4,_0xcee501;this[_0x518ef4(0x200)][_0x518ef4(0x1cd)]('idle'),(_0xcee501=this[_0x518ef4(0x21f)])==null||_0xcee501[_0x518ef4(0x230)](),this[_0x518ef4(0x21f)]=null;}['_stopFollowing'](){var _0x338385=_0x554ef4,_0x481cc5;this[_0x338385(0x200)][_0x338385(0x1cd)](_0x338385(0x1cb)),(_0x481cc5=this[_0x338385(0x21f)])==null||_0x481cc5[_0x338385(0x230)]();}['_handleOperation'](_0x3f3280){var _0x22353c=_0x554ef4;if([_0x22353c(0x1fe),_0x22353c(0x1cb),_0x22353c(0x21e)][_0x22353c(0x19e)](this[_0x22353c(0x209)])||!_0x3f3280['data']['presenter']||_0x3f3280[_0x22353c(0x212)][_0x22353c(0x247)]===this[_0x22353c(0x222)]['getMemberID']())return;this[_0x22353c(0x209)]===_0x22353c(0x215)&&this[_0x22353c(0x1af)]();const _0x32f134=_0x3f3280[_0x22353c(0x212)][_0x22353c(0x1b6)];Object[_0x22353c(0x19d)](_0x32f134)[_0x22353c(0x1e0)](_0x3d83e8=>{var _0x55f3b2=_0x22353c;this['_commandService'][_0x55f3b2(0x258)](_0x3d83e8['id'],_0x3d83e8[_0x55f3b2(0x227)]?JSON['parse'](_0x3d83e8[_0x55f3b2(0x227)]):null,{'fromCollab':!0x0});});}[_0x554ef4(0x1bc)](){var _0x259939=_0x554ef4,_0x193962;this[_0x259939(0x200)][_0x259939(0x1cd)](_0x259939(0x21e)),(_0x193962=this['_commandDisposable'])==null||_0x193962[_0x259939(0x230)]();}[_0x554ef4(0x1c0)](){var _0x257bb4=_0x554ef4;this[_0x257bb4(0x200)][_0x257bb4(0x1cd)]('idle'),this[_0x257bb4(0x22b)]();}},_0x5ad6c7[_0x554ef4(0x225)]=_0x244081([_0x3a097b(0x2,_0xcaf7ae[_0x554ef4(0x1b2)]),_0x3a097b(0x3,_0xcaf7ae[_0x554ef4(0x21b)](_0x589ca0)),_0x3a097b(0x4,_0xcaf7ae[_0x554ef4(0x1bd)])],_0x5ad6c7['LiveShareCoordinator']);function _0x84be47(){var _0x5e5d5b=_0x554ef4;const _0xaccb8=_0x161e4b['useDependency'](_0x5ad6c7[_0x5e5d5b(0x18d)]),_0x3da7d7=_0x161e4b[_0x5e5d5b(0x1a1)](_0xcaf7ae['IUniverInstanceService']),_0x245c4a=_0x161e4b[_0x5e5d5b(0x23c)](()=>_0x3da7d7['getCurrentTypeOfUnit$'](_0xcaf7ae[_0x5e5d5b(0x228)][_0x5e5d5b(0x266)]),void 0x0,!0x1,[]),[_0x2be3f2,_0x28a297]=_0x40f633[_0x5e5d5b(0x1cf)](null),[_0x4c337c,_0x289126]=_0x40f633[_0x5e5d5b(0x1cf)](_0x3c2f1d['IDLE']),_0x2df943=_0x40f633[_0x5e5d5b(0x1dc)](null);return _0x40f633[_0x5e5d5b(0x239)](()=>(_0x245c4a&&_0xaccb8[_0x5e5d5b(0x1c8)](_0x245c4a[_0x5e5d5b(0x1bb)]())[_0x5e5d5b(0x1c4)](_0x387bb6=>{var _0x1afd24=_0x5e5d5b;_0x28a297(_0x387bb6),_0x2df943[_0x1afd24(0x211)]=_0x387bb6['status$'][_0x1afd24(0x245)](_0x107546=>{_0x289126(_0x107546);});}),()=>{var _0x14bceb=_0x5e5d5b,_0x4d05e1;(_0x4d05e1=_0x2df943[_0x14bceb(0x211)])==null||_0x4d05e1[_0x14bceb(0x1d9)](),_0x2df943[_0x14bceb(0x211)]=null;}),[_0x245c4a,_0xaccb8]),_0x2be3f2?_0x262f66['jsx'](_0x2f37aa[_0x5e5d5b(0x1b8)],{'align':_0x5e5d5b(0x1a4),'disabled':_0x4c337c===_0x3c2f1d[_0x5e5d5b(0x1e2)],'className':_0x5e5d5b(0x1c7),'overlay':_0x262f66[_0x5e5d5b(0x1f1)](_0x5f2b43,{'status':_0x4c337c,'coordinator':_0x2be3f2}),'children':_0x262f66[_0x5e5d5b(0x1f1)]('button',{'className':_0x2f37aa['clsx'](_0x5e5d5b(0x21c),{'univer-cursor-not-allowed':_0x4c337c===_0x3c2f1d[_0x5e5d5b(0x1e2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c337c!==_0x3c2f1d[_0x5e5d5b(0x1e2)]}),'type':'button','children':_0x262f66[_0x5e5d5b(0x1f1)](_0xb56647,{'className':_0x5e5d5b(0x25c)})})}):null;}function _0x5f2b43(_0x3fc54c){var _0x1a9e17=_0x554ef4;const {status:_0x182e41,coordinator:_0x156524}=_0x3fc54c;switch(_0x182e41){case _0x3c2f1d[_0x1a9e17(0x1a0)]:return _0x262f66[_0x1a9e17(0x1f1)](_0x3f6b08,{'coordinator':_0x156524});case _0x3c2f1d[_0x1a9e17(0x22c)]:return _0x262f66[_0x1a9e17(0x1f1)](_0x10ffa5,{'coordinator':_0x156524});case _0x3c2f1d[_0x1a9e17(0x22e)]:return _0x262f66['jsx'](_0x25c7df,{'coordinator':_0x156524});case _0x3c2f1d[_0x1a9e17(0x1e2)]:return _0x262f66[_0x1a9e17(0x1f1)](_0x3b1472,{});case _0x3c2f1d['PRESENTING']:return _0x262f66['jsx'](_0x1ece9c,{'coordinator':_0x156524});default:return null;}}function _0x3f6b08(_0x1f332a){var _0x29a603=_0x554ef4;const {coordinator:_0x182f45}=_0x1f332a;return _0x262f66[_0x29a603(0x1fd)](_0x262f66[_0x29a603(0x1b7)],{'children':[_0x262f66[_0x29a603(0x1f1)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29a603(0x1d5)}),_0x262f66[_0x29a603(0x1f1)](_0x2f37aa[_0x29a603(0x1d0)],{'onClick':()=>_0x182f45[_0x29a603(0x186)](),'children':_0x29a603(0x1fb)})]});}function _0x10ffa5(_0x4a6447){var _0x308737=_0x554ef4;const {coordinator:_0xcd805d}=_0x4a6447;return _0x262f66[_0x308737(0x1fd)](_0x262f66[_0x308737(0x1b7)],{'children':[_0x262f66[_0x308737(0x1f1)]('div',{'className':_0x308737(0x1f4),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x262f66['jsx'](_0x2f37aa[_0x308737(0x1d0)],{'onClick':()=>_0xcd805d['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x25c7df(_0x3a338c){var _0x1b56e1=_0x554ef4;const {coordinator:_0x20729d}=_0x3a338c;return _0x262f66['jsxs'](_0x262f66[_0x1b56e1(0x1b7)],{'children':[_0x262f66[_0x1b56e1(0x1f1)](_0x1b56e1(0x242),{'className':_0x1b56e1(0x1f4),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x262f66[_0x1b56e1(0x1f1)](_0x2f37aa[_0x1b56e1(0x1d0)],{'variant':_0x1b56e1(0x199),'onClick':()=>_0x20729d[_0x1b56e1(0x1aa)](),'children':_0x1b56e1(0x26b)})]});}function _0x1ece9c(_0x16d6a0){var _0x518b06=_0x554ef4;const {coordinator:_0x523f7c}=_0x16d6a0;return _0x262f66['jsxs'](_0x262f66[_0x518b06(0x1b7)],{'children':[_0x262f66[_0x518b06(0x1f1)](_0x518b06(0x242),{'className':_0x518b06(0x1f4),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x262f66[_0x518b06(0x1f1)](_0x2f37aa[_0x518b06(0x1d0)],{'variant':_0x518b06(0x17d),'onClick':()=>_0x523f7c[_0x518b06(0x1ed)](),'children':'Stop\x20presenting'})]});}function _0x3b1472(){var _0x1e84b1=_0x554ef4;return _0x262f66[_0x1e84b1(0x1f1)](_0x262f66['Fragment'],{'children':_0x1e84b1(0x1a5)});}var _0x42dc90=Object[_0x554ef4(0x193)],_0x410152=(_0x361a75,_0x1c1028,_0x4e0c9a,_0xdfa6a8)=>{for(var _0x13c2ce=_0xdfa6a8>0x1?void 0x0:_0xdfa6a8?_0x42dc90(_0x1c1028,_0x4e0c9a):_0x1c1028,_0x1bed58=_0x361a75['length']-0x1,_0x1bd94b;_0x1bed58>=0x0;_0x1bed58--)(_0x1bd94b=_0x361a75[_0x1bed58])&&(_0x13c2ce=_0x1bd94b(_0x13c2ce)||_0x13c2ce);return _0x13c2ce;},_0x338dcd=(_0x3754dd,_0x3bfe44)=>(_0x1dc8b2,_0x2774ef)=>_0x3bfe44(_0x1dc8b2,_0x2774ef,_0x3754dd);_0x5ad6c7['DesktopLiveShareController']=class extends _0xcaf7ae['Disposable']{constructor(_0x3a4f1a,_0x44ffc6){var _0xe3c5a1=_0x554ef4;super(),this[_0xe3c5a1(0x22d)]=_0x3a4f1a,this[_0xe3c5a1(0x17c)]=_0x44ffc6,this['_mountLiveShare']();}[_0x554ef4(0x235)](){var _0x8a5d9b=_0x554ef4;this[_0x8a5d9b(0x23b)](this[_0x8a5d9b(0x17c)]['registerComponent'](_0x161e4b[_0x8a5d9b(0x188)]['HEADER_MENU'],()=>_0x161e4b[_0x8a5d9b(0x18f)](_0x84be47,this['_injector'])));}},_0x5ad6c7[_0x554ef4(0x232)]=_0x410152([_0x338dcd(0x0,_0xcaf7ae[_0x554ef4(0x21b)](_0xcaf7ae[_0x554ef4(0x229)])),_0x338dcd(0x1,_0x161e4b[_0x554ef4(0x233)])],_0x5ad6c7['DesktopLiveShareController']);var _0x453526=Object[_0x554ef4(0x213)],_0x41b016=Object['getOwnPropertyDescriptor'],_0x1d60d8=(_0x5c7ccc,_0x5208c3,_0x5d5015)=>_0x5208c3 in _0x5c7ccc?_0x453526(_0x5c7ccc,_0x5208c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d5015}):_0x5c7ccc[_0x5208c3]=_0x5d5015,_0x5caa89=(_0x120770,_0x1d806d,_0x3f0580,_0x4426c2)=>{var _0x12a2db=_0x554ef4;for(var _0xb0c270=_0x4426c2>0x1?void 0x0:_0x4426c2?_0x41b016(_0x1d806d,_0x3f0580):_0x1d806d,_0x245ac1=_0x120770[_0x12a2db(0x25b)]-0x1,_0x2826a7;_0x245ac1>=0x0;_0x245ac1--)(_0x2826a7=_0x120770[_0x245ac1])&&(_0xb0c270=_0x2826a7(_0xb0c270)||_0xb0c270);return _0xb0c270;},_0x336c6b=(_0x2632c6,_0x5643a2)=>(_0x3d437f,_0xe0c01d)=>_0x5643a2(_0x3d437f,_0xe0c01d,_0x2632c6),_0x148e24=(_0x347fe4,_0x57c670,_0x597723)=>_0x1d60d8(_0x347fe4,typeof _0x57c670!='symbol'?_0x57c670+'':_0x57c670,_0x597723);const _0x5a729d=_0x554ef4(0x207);_0x5ad6c7[_0x554ef4(0x1e4)]=class extends _0xcaf7ae['Plugin']{constructor(_0xd87180=_0x1f6169,_0x5536d0,_0x65241b){var _0x54eb7c=_0x554ef4;super(),this[_0x54eb7c(0x1ba)]=_0xd87180,this['_injector']=_0x5536d0,this['_configService']=_0x65241b;const {..._0x2158ef}=_0xcaf7ae[_0x54eb7c(0x246)]({},_0x1f6169,this['_config']);this[_0x54eb7c(0x24c)][_0x54eb7c(0x23a)](_0xcce08b,_0x2158ef);}[_0x554ef4(0x244)](){var _0x8e63f=_0x554ef4;_0xcaf7ae[_0x8e63f(0x259)](this[_0x8e63f(0x22d)],_0xcaf7ae[_0x8e63f(0x251)]([[_0x589ca0],[_0x5ad6c7[_0x8e63f(0x18d)]],[_0x88296a],[_0x5ad6c7[_0x8e63f(0x232)]]],this['_config'][_0x8e63f(0x1f2)])),_0xcaf7ae[_0x8e63f(0x1ae)](this[_0x8e63f(0x22d)],[[_0x88296a]]);}[_0x554ef4(0x1e6)](){var _0x895679=_0x554ef4;_0xcaf7ae[_0x895679(0x1ae)](this[_0x895679(0x22d)],[[_0x5ad6c7[_0x895679(0x232)]]]);}},_0x148e24(_0x5ad6c7['UniverLiveSharePlugin'],_0x554ef4(0x181),_0xcaf7ae['UniverInstanceType'][_0x554ef4(0x25d)]),_0x148e24(_0x5ad6c7['UniverLiveSharePlugin'],'pluginName',_0x5a729d),_0x5ad6c7['UniverLiveSharePlugin']=_0x5caa89([_0xcaf7ae[_0x554ef4(0x1a2)](_0x375e67[_0x554ef4(0x231)]),_0x336c6b(0x1,_0xcaf7ae[_0x554ef4(0x21b)](_0xcaf7ae['Injector'])),_0x336c6b(0x2,_0xcaf7ae[_0x554ef4(0x1b2)])],_0x5ad6c7['UniverLiveSharePlugin']),_0x5ad6c7['LiveShare']=_0x84be47,_0x5ad6c7[_0x554ef4(0x17e)]=_0x589ca0,_0x5ad6c7[_0x554ef4(0x201)]=_0x3c2f1d,Object['defineProperty'](_0x5ad6c7,Symbol[_0x554ef4(0x204)],{'value':_0x554ef4(0x223)});}));
|
|
1
|
+
function _0x396a(){var _0x12f50c=['_handleOffline','following','createElement','UniverCollaborationClientPlugin','CollaborationSessionService','IUniverInstanceService','hasOwnProperty','UniverLiveSharePlugin','OPERATION','You\x27re\x20following\x20the\x20presenter','parse','univer-mb-3\x20univer-w-full\x20univer-text-sm','executeCommand','SetWorksheetActiveOperation','getTypeOfUnitDisposed$','NOT_FOLLOWING','has','random','init','assign','SetZoomRatioOperation','shouldShareOperation','SetScrollOperation','className','live-share.config','FOLLOWING','memberID','div','pluginName','replace','_handleTerminate','defineProperty','InsertSheetMutation','get','presenter','You\x27are\x20offline.','_injector','asObservable','Start\x20following','Stop\x20following','status$','UniverInstanceType','fill','concat','offline','children','send','add','_startLiveShareCoordinator','registerDependencies','Present\x20this\x20document','react/jsx-runtime','2317119FTbvtv','UniverSheets','_init','http://www.w3.org/2000/svg','tag','LiveShareService','Button','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','useDependency','Injector','UniverIcon','sheet','colorChannel1','_reporters','icon','params','799252NsWkng','@univerjs/core','idle','use','_status','LiveShare','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','toDisposable','getInitialStates','clear','symbol','OFFLINE','UNIVER_SHEET','0\x200\x2017\x2017','throttleTime','parseProtocolChangeset','6300SxAIKt','Subject','29777uAtYsv','_collabSessionService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_config','_collabSession','getMemberID','idSuffix','12tyDbrK','stopFollowing','_commandService','_stopFollowing','getOwnPropertySymbols','find','_unitID','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertyDescriptor','object','@univerjs/sheets-ui','unitId','operators','Dropdown','complete','SessionStatus','ONLINE','_status$','xlink:href','LiveShareIcon','Fragment','createInstance','UniverCore','length','_presenter','React','data','1358QIUlYS','_beIdle','stringify','RxDisposable','dispose','mask','subscribe','_configService','react','touchDependencies','LiveShareStatus','live-share-icon','useState','univerjs-icon\x20univerjs-icon-','UniverDesign','jsx','IUIPartsService','DesktopLiveShareController','Stop\x20presenting','onRendered','string','_handleOnline','getLiveShareCoordinator','@univerjs/sheets','defIds','apply','entries','exports','getTypeOfUnitAdded$','path','You\x27re\x20presenting\x20the\x20document','8JWYEFL','delete','registerSharedOperation','@univerjs/ui','displayName','dispose$','clsx','3dBTAZt','HEADER_MENU','stopPresenting','UniverProCollaboration','url(#$1','Inject','_fetchOperations','mutations','current','prototype','LIVESHARE_NEW_HOST','values','@univerjs-pro/collaboration-client','CollaborationEvent','toString','ICommandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','setConfig','UniverProCollaborationClient','115CZHvgA','UniverProLiveShare','_handleNewChangeSets','map','startFollowing','UniverSheetsUi','propertyIsEnumerable','_startPresenting','_sharedOperations','_entities','trim','pipe','takeUntil','defs','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','NEW_CHANGESETS','42858qAflmz','8VkcGfI','_handleOperation','presenting','connectInjector','UNIVER_UNKNOWN','button','LIVESHARE_OPERATION','override','128196hgzeIu','includes','substring','CommandType','unsubscribe','BehaviorSubject','currentColor','LiveShareController','merge','not-following','@univerjs/design','tryStartPresenting','IDLE','_startFollowing','call','from','_stopPresenting','forwardRef','set','jsxs','_univerInstanceService','operations','Plugin','svg','none','reverse','28782DxJrXm','_handleNewHost','DisposableCollection','13500cKuAtk','next','default','attrs','extend','Module','useRef','Disposable','_mountLiveShare','_commandDisposable','disposeWithMe','LiveShareCoordinator','type','@univerjs-pro/collaboration','evenodd','forEach','BuiltInUIPart','getUnitId','getValue','LIVESHARE_TERMINATE','registerInitialStateReporter'];_0x396a=function(){return _0x12f50c;};return _0x396a();}function _0x1feb(_0x1bacd8,_0x1ad923){var _0x396ac0=_0x396a();return _0x1feb=function(_0x1febcd,_0x2be2e3){_0x1febcd=_0x1febcd-0x84;var _0x375e1a=_0x396ac0[_0x1febcd];return _0x375e1a;},_0x1feb(_0x1bacd8,_0x1ad923);}(function(_0x5d2026,_0x3e0ace){var _0x5ef8bd=_0x1feb,_0x182be8=_0x5d2026();while(!![]){try{var _0x3da8cd=parseInt(_0x5ef8bd(0xa1))/0x1*(parseInt(_0x5ef8bd(0x99))/0x2)+parseInt(_0x5ef8bd(0x172))/0x3*(parseInt(_0x5ef8bd(0x118))/0x4)+parseInt(_0x5ef8bd(0x88))/0x5*(parseInt(_0x5ef8bd(0x98))/0x6)+parseInt(_0x5ef8bd(0x107))/0x7*(parseInt(_0x5ef8bd(0x16b))/0x8)+parseInt(_0x5ef8bd(0xbe))/0x9*(-parseInt(_0x5ef8bd(0x128))/0xa)+-parseInt(_0x5ef8bd(0x12a))/0xb*(parseInt(_0x5ef8bd(0x131))/0xc)+-parseInt(_0x5ef8bd(0xbb))/0xd*(-parseInt(_0x5ef8bd(0x14c))/0xe);if(_0x3da8cd===_0x3e0ace)break;else _0x182be8['push'](_0x182be8['shift']());}catch(_0x3f84b0){_0x182be8['push'](_0x182be8['shift']());}}}(_0x396a,0x73f4a),function(_0x18c923,_0x5f209b){var _0x95c0b=_0x1feb;typeof exports==_0x95c0b(0x13a)&&typeof module<'u'?_0x5f209b(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define([_0x95c0b(0x167),_0x95c0b(0x17e),_0x95c0b(0x119),_0x95c0b(0x163),_0x95c0b(0x13b),_0x95c0b(0x16e),_0x95c0b(0x106),_0x95c0b(0xab),_0x95c0b(0x154),_0x95c0b(0xcb),'rxjs','rxjs/operators'],_0x5f209b):(_0x18c923=typeof globalThis<'u'?globalThis:_0x18c923||self,_0x5f209b(_0x18c923[_0x95c0b(0x89)]={},_0x18c923[_0x95c0b(0x87)],_0x18c923[_0x95c0b(0x147)],_0x18c923[_0x95c0b(0x108)],_0x18c923[_0x95c0b(0x8d)],_0x18c923['UniverUi'],_0x18c923[_0x95c0b(0x14a)],_0x18c923[_0x95c0b(0x15a)],_0x18c923['React'],_0x18c923[_0x95c0b(0x175)],_0x18c923['rxjs'],_0x18c923['rxjs'][_0x95c0b(0x13d)]));}(this,function(_0x20ea13,_0x513dfa,_0x2e9263,_0x36d1a4,_0x4d4a7b,_0x6c12b0,_0x175adc,_0x5199a3,_0xaacce9,_0x1bb602,_0x36581d,_0xd1fe20){'use strict';var _0x3f4273=_0x1feb;var _0x208721=Object[_0x3f4273(0xf2)],_0x194be1=(_0x31b97a,_0x53cacc,_0x5222d0)=>_0x53cacc in _0x31b97a?_0x208721(_0x31b97a,_0x53cacc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5222d0}):_0x31b97a[_0x53cacc]=_0x5222d0,_0x1a7132=(_0x5328fd,_0x4a2112,_0x2ad23d)=>_0x194be1(_0x5328fd,typeof _0x4a2112!=_0x3f4273(0x122)?_0x4a2112+'':_0x4a2112,_0x2ad23d);const _0x1e5d64=_0x3f4273(0xeb),_0x537ed2={};class _0x444486 extends _0x2e9263[_0x3f4273(0xc5)]{constructor(){var _0x32e6b2=_0x3f4273;super(...arguments),_0x1a7132(this,_0x32e6b2(0x90),new Set()),_0x1a7132(this,_0x32e6b2(0x115),new Set());}['registerSharedOperation'](_0x13afac){var _0x3d1b8c=_0x3f4273;return this[_0x3d1b8c(0x90)][_0x3d1b8c(0x102)](_0x13afac),_0x2e9263[_0x3d1b8c(0x11f)](()=>this['_sharedOperations'][_0x3d1b8c(0x16c)](_0x13afac));}[_0x3f4273(0xd2)](_0x2d6f79){var _0x175fa8=_0x3f4273;return this['_reporters'][_0x175fa8(0x102)](_0x2d6f79),_0x2e9263[_0x175fa8(0x11f)](()=>this[_0x175fa8(0x115)][_0x175fa8(0x16c)](_0x2d6f79));}[_0x3f4273(0xe8)](_0x3b9c4e){var _0x18a387=_0x3f4273;return this['_sharedOperations'][_0x18a387(0xe3)](_0x3b9c4e);}[_0x3f4273(0x120)](_0x5e6ae1){var _0x322872=_0x3f4273;return Array[_0x322872(0xb0)](this[_0x322872(0x115)])['map'](_0x15e4c2=>_0x15e4c2(_0x5e6ae1));}}var _0x55f5a5=Object['getOwnPropertyDescriptor'],_0x27e095=(_0x177125,_0x397273,_0x1d3432,_0x1753bf)=>{var _0x138ea4=_0x3f4273;for(var _0x590417=_0x1753bf>0x1?void 0x0:_0x1753bf?_0x55f5a5(_0x397273,_0x1d3432):_0x397273,_0x1546c8=_0x177125[_0x138ea4(0x148)]-0x1,_0x4b776b;_0x1546c8>=0x0;_0x1546c8--)(_0x4b776b=_0x177125[_0x1546c8])&&(_0x590417=_0x4b776b(_0x590417)||_0x590417);return _0x590417;},_0x36d143=(_0x1e4c92,_0x2a58fb)=>(_0x54da16,_0x201672)=>_0x2a58fb(_0x54da16,_0x201672,_0x1e4c92);let _0x5ddad0=class extends _0x2e9263['Disposable']{constructor(_0x3e0206){var _0x241a18=_0x3f4273;super(),this[_0x241a18(0x10e)]=_0x3e0206,this[_0x241a18(0x109)]();}[_0x3f4273(0x109)](){var _0x5009c8=_0x3f4273;[_0x4d4a7b[_0x5009c8(0xe7)]['id'],_0x4d4a7b[_0x5009c8(0xe9)]['id'],_0x36d1a4[_0x5009c8(0xe0)]['id']]['forEach'](_0x5e6848=>{var _0x32aa86=_0x5009c8;this[_0x32aa86(0xc8)](this[_0x32aa86(0x10e)][_0x32aa86(0x16d)](_0x5e6848));});}};_0x5ddad0=_0x27e095([_0x36d143(0x0,_0x2e9263[_0x3f4273(0x177)](_0x444486))],_0x5ddad0);var _0xb28816=function(){var _0x3ed1bb=_0x3f4273;return _0xb28816=Object['assign']||function(_0x354f8f){var _0x2abefa=_0x1feb;for(var _0x3e385a,_0x1c827d=0x1,_0x14f0ed=arguments[_0x2abefa(0x148)];_0x1c827d<_0x14f0ed;_0x1c827d++){_0x3e385a=arguments[_0x1c827d];for(var _0x12567d in _0x3e385a)Object[_0x2abefa(0x17b)]['hasOwnProperty'][_0x2abefa(0xaf)](_0x3e385a,_0x12567d)&&(_0x354f8f[_0x12567d]=_0x3e385a[_0x12567d]);}return _0x354f8f;},_0xb28816[_0x3ed1bb(0x165)](this,arguments);},_0x482eef=function(_0x1f484b,_0x6af2f){var _0x308554=_0x3f4273,_0x33f71e={};for(var _0x2d8361 in _0x1f484b)Object[_0x308554(0x17b)][_0x308554(0xd9)]['call'](_0x1f484b,_0x2d8361)&&_0x6af2f['indexOf'](_0x2d8361)<0x0&&(_0x33f71e[_0x2d8361]=_0x1f484b[_0x2d8361]);if(_0x1f484b!=null&&typeof Object[_0x308554(0x135)]=='function'){for(var _0x2c80a4=0x0,_0x2d8361=Object[_0x308554(0x135)](_0x1f484b);_0x2c80a4<_0x2d8361[_0x308554(0x148)];_0x2c80a4++)_0x6af2f['indexOf'](_0x2d8361[_0x2c80a4])<0x0&&Object[_0x308554(0x17b)][_0x308554(0x8e)][_0x308554(0xaf)](_0x1f484b,_0x2d8361[_0x2c80a4])&&(_0x33f71e[_0x2d8361[_0x2c80a4]]=_0x1f484b[_0x2d8361[_0x2c80a4]]);}return _0x33f71e;},_0x40d519=_0xaacce9[_0x3f4273(0xb2)](function(_0x2d5d22,_0x565dec){var _0x2dde16=_0x3f4273,_0x2815c6=_0x2d5d22[_0x2dde16(0x116)],_0xc119be=_0x2d5d22['id'],_0xb44a80=_0x2d5d22['className'],_0x3ca11b=_0x2d5d22['extend'],_0x16ad9c=_0x482eef(_0x2d5d22,[_0x2dde16(0x116),'id',_0x2dde16(0xea),_0x2dde16(0xc2)]),_0x577f43=_0x2dde16(0x159)[_0x2dde16(0xfe)](_0xc119be,'\x20')[_0x2dde16(0xfe)](_0xb44a80||'')[_0x2dde16(0x92)](),_0x3b0cea=_0xaacce9['useRef']('_'['concat'](_0x10862b()));return _0x505771(_0x2815c6,''[_0x2dde16(0xfe)](_0xc119be),{'defIds':_0x2815c6[_0x2dde16(0x164)],'idSuffix':_0x3b0cea[_0x2dde16(0x17a)]},_0xb28816({'ref':_0x565dec,'className':_0x577f43},_0x16ad9c),_0x3ca11b);});function _0x505771(_0x5df20a,_0x4084da,_0x54b149,_0x7da69e,_0x3ce9b2){var _0x3b58e6=_0x3f4273;return _0xaacce9[_0x3b58e6(0xd5)](_0x5df20a[_0x3b58e6(0x10b)],_0xb28816(_0xb28816({'key':_0x4084da},_0x3a111b(_0x5df20a,_0x54b149,_0x3ce9b2)),_0x7da69e),(_0x274214(_0x5df20a,_0x54b149)[_0x3b58e6(0x100)]||[])['map'](function(_0x1b2a96,_0x1fe8af){var _0x319861=_0x3b58e6;return _0x505771(_0x1b2a96,''[_0x319861(0xfe)](_0x4084da,'-')['concat'](_0x5df20a['tag'],'-')[_0x319861(0xfe)](_0x1fe8af),_0x54b149,void 0x0,_0x3ce9b2);}));}function _0x3a111b(_0x282195,_0x4965c0,_0x523439){var _0x366f8a=_0x3f4273,_0x101fb1=_0xb28816({},_0x282195[_0x366f8a(0xc1)]);_0x523439!=null&&_0x523439[_0x366f8a(0x114)]&&_0x101fb1[_0x366f8a(0xfd)]==='colorChannel1'&&(_0x101fb1['fill']=_0x523439[_0x366f8a(0x114)]),_0x282195[_0x366f8a(0x10b)]==='mask'&&_0x101fb1['id']&&(_0x101fb1['id']=_0x101fb1['id']+_0x4965c0[_0x366f8a(0x130)]),Object['entries'](_0x101fb1)[_0x366f8a(0xcd)](function(_0x53c4b3){var _0x12dc48=_0x366f8a,_0x3332fa=_0x53c4b3[0x0],_0x226712=_0x53c4b3[0x1];_0x3332fa===_0x12dc48(0x151)&&typeof _0x226712==_0x12dc48(0x160)&&(_0x101fb1[_0x3332fa]=_0x226712[_0x12dc48(0xf0)](/url\(#(.*)\)/,_0x12dc48(0x176)[_0x12dc48(0xfe)](_0x4965c0['idSuffix'],')')));});var _0x1239db=_0x4965c0['defIds'];return!_0x1239db||_0x1239db[_0x366f8a(0x148)]===0x0||(_0x282195[_0x366f8a(0x10b)]===_0x366f8a(0x11b)&&_0x101fb1['xlink:href']&&(_0x101fb1[_0x366f8a(0x143)]=_0x101fb1[_0x366f8a(0x143)]+_0x4965c0[_0x366f8a(0x130)]),Object[_0x366f8a(0x166)](_0x101fb1)['forEach'](function(_0x31b237){var _0x350676=_0x366f8a,_0x4fa482=_0x31b237[0x0],_0x356ca3=_0x31b237[0x1];typeof _0x356ca3==_0x350676(0x160)&&(_0x101fb1[_0x4fa482]=_0x356ca3[_0x350676(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4965c0[_0x350676(0x130)],')')));})),_0x101fb1;}function _0x274214(_0x2d783d,_0x207369){var _0x407d22=_0x3f4273,_0x121a20,_0x1bffa4=_0x207369[_0x407d22(0x164)];return!_0x1bffa4||_0x1bffa4[_0x407d22(0x148)]===0x0?_0x2d783d:_0x2d783d[_0x407d22(0x10b)]===_0x407d22(0x95)&&(!((_0x121a20=_0x2d783d[_0x407d22(0x100)])===null||_0x121a20===void 0x0)&&_0x121a20[_0x407d22(0x148)])?_0xb28816(_0xb28816({},_0x2d783d),{'children':_0x2d783d[_0x407d22(0x100)][_0x407d22(0x8b)](function(_0x11551c){var _0x398d00=_0x407d22;return typeof _0x11551c[_0x398d00(0xc1)]['id']==_0x398d00(0x160)&&_0x1bffa4&&_0x1bffa4[_0x398d00(0xa2)](_0x11551c[_0x398d00(0xc1)]['id'])?_0xb28816(_0xb28816({},_0x11551c),{'attrs':_0xb28816(_0xb28816({},_0x11551c[_0x398d00(0xc1)]),{'id':_0x11551c[_0x398d00(0xc1)]['id']+_0x207369['idSuffix']})}):_0x11551c;})}):_0x2d783d;}function _0x10862b(){var _0x409995=_0x3f4273;return Math[_0x409995(0xe4)]()[_0x409995(0x180)](0x24)[_0x409995(0xa3)](0x2,0x8);}_0x40d519[_0x3f4273(0x16f)]=_0x3f4273(0x112);var _0x107788={'tag':_0x3f4273(0xb8),'attrs':{'xmlns':_0x3f4273(0x10a),'fill':_0x3f4273(0xb9),'viewBox':_0x3f4273(0x125),'width':'1em','height':'1em'},'children':[{'tag':_0x3f4273(0x169),'attrs':{'fill':_0x3f4273(0xa7),'d':_0x3f4273(0x11e)}},{'tag':'path','attrs':{'fill':_0x3f4273(0xa7),'d':_0x3f4273(0x12c),'fillRule':_0x3f4273(0xcc),'clipRule':_0x3f4273(0xcc)}}]},_0x27c244=_0xaacce9[_0x3f4273(0xb2)](function(_0xd3c7b8,_0x1a4df6){var _0x25fa41=_0x3f4273;return _0xaacce9['createElement'](_0x40d519,Object[_0x25fa41(0xe6)]({},_0xd3c7b8,{'id':_0x25fa41(0x157),'ref':_0x1a4df6,'icon':_0x107788}));});_0x27c244[_0x3f4273(0x16f)]=_0x3f4273(0x144);var _0x49b11c=Object[_0x3f4273(0x139)],_0x202b0d=(_0x670955,_0x9ccbbe,_0x3172ee,_0x4af774)=>{for(var _0x1e8110=_0x4af774>0x1?void 0x0:_0x4af774?_0x49b11c(_0x9ccbbe,_0x3172ee):_0x9ccbbe,_0x2deaca=_0x670955['length']-0x1,_0x38cfae;_0x2deaca>=0x0;_0x2deaca--)(_0x38cfae=_0x670955[_0x2deaca])&&(_0x1e8110=_0x38cfae(_0x1e8110)||_0x1e8110);return _0x1e8110;},_0x45700d=(_0x31db48,_0x2db499)=>(_0x40eec0,_0x128afc)=>_0x2db499(_0x40eec0,_0x128afc,_0x31db48);_0x20ea13[_0x3f4273(0xa8)]=class extends _0x2e9263[_0x3f4273(0x14f)]{constructor(_0x426351,_0xc24b0b,_0x218991){var _0x1fc9d4=_0x3f4273;super(),_0x1a7132(this,_0x1fc9d4(0x91),new Map()),(this['_univerInstanceService']=_0x426351,this[_0x1fc9d4(0xf7)]=_0xc24b0b,this[_0x1fc9d4(0x12b)]=_0x218991,this[_0x1fc9d4(0x109)]());}async[_0x3f4273(0x162)](_0x1f8249){var _0x57433c=_0x3f4273;return this[_0x57433c(0x91)][_0x57433c(0xe3)](_0x1f8249)||await this[_0x57433c(0x103)](_0x1f8249),this[_0x57433c(0x91)]['get'](_0x1f8249);}['_init'](){var _0x57cfb=_0x3f4273;this[_0x57cfb(0xb5)][_0x57cfb(0x168)](_0x2e9263[_0x57cfb(0xfc)][_0x57cfb(0x124)])[_0x57cfb(0x93)](_0xd1fe20[_0x57cfb(0x94)](this['dispose$']))[_0x57cfb(0x152)](async _0x819d69=>{var _0x4df8d1=_0x57cfb;const _0x3ec202=_0x819d69[_0x4df8d1(0xcf)]();this[_0x4df8d1(0x91)][_0x4df8d1(0xe3)](_0x3ec202)||this['_startLiveShareCoordinator'](_0x3ec202);}),this[_0x57cfb(0xb5)][_0x57cfb(0xe1)](_0x2e9263[_0x57cfb(0xfc)][_0x57cfb(0x124)])[_0x57cfb(0x93)](_0xd1fe20['takeUntil'](this[_0x57cfb(0x170)]))[_0x57cfb(0x152)](_0xe2d75a=>{var _0x2ed438=_0x57cfb;const _0x2df9ac=_0xe2d75a[_0x2ed438(0xcf)](),_0x3ffdb2=this['_entities'][_0x2ed438(0xf4)](_0x2df9ac);_0x3ffdb2==null||_0x3ffdb2[_0x2ed438(0x150)]();});}async[_0x3f4273(0x103)](_0x1e63c5){var _0x10948a=_0x3f4273;const _0x39601d=await this['_collabSessionService']['requireSession'](_0x1e63c5),_0x2c9ed9=this['_injector'][_0x10948a(0x146)](_0x20ea13[_0x10948a(0xc9)],_0x1e63c5,_0x39601d);return _0x2c9ed9[_0x10948a(0xe5)](),this['_entities']['set'](_0x1e63c5,_0x2c9ed9),_0x2c9ed9;}},_0x20ea13[_0x3f4273(0xa8)]=_0x202b0d([_0x45700d(0x0,_0x2e9263[_0x3f4273(0xd8)]),_0x45700d(0x1,_0x2e9263[_0x3f4273(0x177)](_0x2e9263['Injector'])),_0x45700d(0x2,_0x2e9263[_0x3f4273(0x177)](_0x513dfa[_0x3f4273(0xd7)]))],_0x20ea13[_0x3f4273(0xa8)]);var _0x1369e9=(_0x25793e=>(_0x25793e[_0x3f4273(0x123)]=_0x3f4273(0xff),_0x25793e[_0x3f4273(0xad)]=_0x3f4273(0x11a),_0x25793e[_0x3f4273(0xec)]=_0x3f4273(0xd4),_0x25793e[_0x3f4273(0xe2)]=_0x3f4273(0xaa),_0x25793e['PRESENTING']=_0x3f4273(0x9b),_0x25793e))(_0x1369e9||{});const _0x232aff=_0x3f4273(0x10f),_0x467569=0xc8;_0x20ea13['LiveShareCoordinator']=class extends _0x2e9263[_0x3f4273(0x14f)]{constructor(_0x181ed6,_0x50c29c,_0x564f38,_0x36c53f,_0x2b50f3){var _0x4a4d77=_0x3f4273;super(),_0x1a7132(this,_0x4a4d77(0x142),new _0x36581d[(_0x4a4d77(0xa6))](_0x4a4d77(0x11a))),_0x1a7132(this,'status$',this[_0x4a4d77(0x142)][_0x4a4d77(0xf8)]()),_0x1a7132(this,_0x4a4d77(0x109),!0x1),_0x1a7132(this,_0x4a4d77(0xc7),null),_0x1a7132(this,_0x4a4d77(0x149),null),(this[_0x4a4d77(0x137)]=_0x181ed6,this['_collabSession']=_0x50c29c,this[_0x4a4d77(0x153)]=_0x564f38,this[_0x4a4d77(0x10e)]=_0x36c53f,this[_0x4a4d77(0x133)]=_0x2b50f3);}get['_status'](){var _0x1e6aab=_0x3f4273;return this['_status$'][_0x1e6aab(0xd0)]();}[_0x3f4273(0x150)](){var _0x166827=_0x3f4273,_0x155b68;(_0x155b68=this['_commandDisposable'])==null||_0x155b68[_0x166827(0x150)](),this[_0x166827(0x142)][_0x166827(0xbf)](_0x166827(0x11a)),this[_0x166827(0x142)][_0x166827(0x13f)]();}['init'](){var _0xf5ca1f=_0x3f4273;this[_0xf5ca1f(0x109)]||(this[_0xf5ca1f(0x109)]=!0x0,this['_collabSession']['sessionStatus$'][_0xf5ca1f(0x93)](_0xd1fe20['takeUntil'](this[_0xf5ca1f(0x170)]))[_0xf5ca1f(0x152)](_0x5749c1=>{var _0x54a3e6=_0xf5ca1f;switch(_0x5749c1){case _0x513dfa[_0x54a3e6(0x140)][_0x54a3e6(0x123)]:this[_0x54a3e6(0xd3)]();break;case _0x513dfa[_0x54a3e6(0x140)][_0x54a3e6(0x141)]:this[_0x54a3e6(0x161)]();break;}}),this[_0xf5ca1f(0x12e)]['event$']['pipe'](_0xd1fe20[_0xf5ca1f(0x94)](this[_0xf5ca1f(0x170)]))[_0xf5ca1f(0x152)](_0x4be116=>{var _0x34e66c=_0xf5ca1f;const {eventID:_0x30ecba}=_0x4be116;switch(_0x30ecba){case _0x1bb602[_0x34e66c(0x17f)][_0x34e66c(0x17c)]:this[_0x34e66c(0xbc)](_0x4be116);break;case _0x1bb602['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x34e66c(0x9a)](_0x4be116);break;case _0x1bb602[_0x34e66c(0x17f)][_0x34e66c(0xd1)]:this[_0x34e66c(0xf1)]();break;case _0x1bb602['CollaborationEvent'][_0x34e66c(0x97)]:this[_0x34e66c(0x8a)](_0x4be116);break;}}));}[_0x3f4273(0xac)](){var _0x3c1b88=_0x3f4273;this[_0x3c1b88(0x12e)][_0x3c1b88(0x101)]({'eventID':_0x1bb602['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3c1b88(0x137)],'userID':this['_collabSession'][_0x3c1b88(0x12f)]()}},this[_0x3c1b88(0x137)]);}[_0x3f4273(0x174)](){var _0x8e48fb=_0x3f4273;this[_0x8e48fb(0x11c)]===_0x8e48fb(0x9b)&&(this[_0x8e48fb(0x142)][_0x8e48fb(0xbf)](_0x8e48fb(0x11a)),this['_collabSession'][_0x8e48fb(0x101)]({'eventID':_0x1bb602[_0x8e48fb(0x17f)][_0x8e48fb(0xd1)],'data':{'unitID':this[_0x8e48fb(0x137)]}},this['_unitID']));}[_0x3f4273(0x8c)](){var _0x4fd862=_0x3f4273;this['_status']===_0x4fd862(0xaa)&&(this['_status$'][_0x4fd862(0xbf)](_0x4fd862(0xd4)),this['_startFollowing']());}[_0x3f4273(0x132)](){var _0x277645=_0x3f4273;this['_status']===_0x277645(0xd4)&&this['_stopFollowing']();}[_0x3f4273(0xbc)](_0x7fbeee){var _0x3d1c50=_0x3f4273;const {presenter:_0xd3ce8f}=_0x7fbeee[_0x3d1c50(0x14b)],_0x5e6894=this[_0x3d1c50(0x12e)][_0x3d1c50(0x12f)]();this[_0x3d1c50(0x149)]=_0xd3ce8f,_0xd3ce8f===_0x5e6894?(this['_stopFollowing'](),this[_0x3d1c50(0x8f)]()):this[_0x3d1c50(0x11c)]!==_0x3d1c50(0xaa)&&(this[_0x3d1c50(0xb1)](),this['_startFollowing']());}[_0x3f4273(0x178)](){var _0x53ae01=_0x3f4273;const _0x3196ef={'eventID':_0x1bb602[_0x53ae01(0x17f)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x53ae01(0x12e)][_0x53ae01(0x101)](_0x3196ef,this[_0x53ae01(0x137)]);}[_0x3f4273(0xf1)](){var _0x24c7ef=_0x3f4273;this[_0x24c7ef(0x149)]=null,this[_0x24c7ef(0x11c)]!==_0x24c7ef(0x9b)&&this[_0x24c7ef(0x14d)]();}[_0x3f4273(0x8a)](_0x21922){var _0x47bf64=_0x3f4273;if(this[_0x47bf64(0x11c)]===_0x47bf64(0xd4)&&this[_0x47bf64(0x149)]===_0x21922['data'][_0x47bf64(0xed)]){const _0x10e558=_0x1bb602[_0x47bf64(0x127)](_0x21922[_0x47bf64(0x14b)])[_0x47bf64(0x179)][_0x47bf64(0xba)]()[_0x47bf64(0x136)](_0xe0202=>_0xe0202['id']===_0x36d1a4[_0x47bf64(0xf3)]['id']);if(_0x10e558){const _0x29e890=_0x10e558['params'][_0x47bf64(0x13c)],_0x4cf5b8=_0x10e558[_0x47bf64(0x117)][_0x47bf64(0x113)]['id'];setTimeout(()=>{var _0x312745=_0x47bf64;this['_commandService'][_0x312745(0xdf)](_0x36d1a4[_0x312745(0xe0)]['id'],{'unitId':_0x29e890,'subUnitId':_0x4cf5b8},{'fromCollab':!0x0});});}}}[_0x3f4273(0x8f)](){var _0x52b589=_0x3f4273;this[_0x52b589(0x142)][_0x52b589(0xbf)](_0x52b589(0x9b));const _0x27de2f=new Map(),_0x4b1330=this['_commandDisposable']=new _0x2e9263[(_0x52b589(0xbd))]();_0x4b1330['add'](_0x2e9263[_0x52b589(0x11f)](()=>{var _0x368d79=_0x52b589;_0x27de2f['forEach'](_0xc5110e=>_0xc5110e[_0x368d79(0x13f)]()),_0x27de2f[_0x368d79(0x121)]();})),_0x4b1330[_0x52b589(0x102)](this[_0x52b589(0x133)]['onCommandExecuted'](_0x3ca715=>{var _0x291f5a=_0x52b589,_0x48b8d8;if(_0x3ca715[_0x291f5a(0xca)]!==_0x2e9263[_0x291f5a(0xa4)][_0x291f5a(0xdb)]||!this[_0x291f5a(0x10e)][_0x291f5a(0xe8)](_0x3ca715['id']))return;const {id:_0x2afca2}=_0x3ca715;let _0x33ef85;_0x27de2f[_0x291f5a(0xe3)](_0x2afca2)?_0x33ef85=_0x27de2f[_0x291f5a(0xf4)](_0x2afca2):(_0x33ef85=new _0x36581d[(_0x291f5a(0x129))](),_0x27de2f[_0x291f5a(0xb3)](_0x2afca2,_0x33ef85),_0x33ef85[_0x291f5a(0x93)](_0xd1fe20[_0x291f5a(0x126)]((_0x48b8d8=this['_configService']['getConfig'](_0x232aff))!=null?_0x48b8d8:_0x467569,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4810a8=>{var _0x276e31=_0x291f5a;this['_collabSession'][_0x276e31(0x101)]({'eventID':_0x1bb602[_0x276e31(0x17f)][_0x276e31(0x9f)],'data':{'unitID':this[_0x276e31(0x137)],'operations':{[_0x4810a8['id']]:{'id':_0x4810a8['id'],'params':JSON['stringify'](_0x4810a8[_0x276e31(0x117)])}}}},this[_0x276e31(0x137)]);})),_0x33ef85['next'](_0x3ca715);})),this[_0x52b589(0x10e)][_0x52b589(0x120)](this[_0x52b589(0x137)])[_0x52b589(0xcd)](_0x4914ae=>this[_0x52b589(0x12e)][_0x52b589(0x101)]({'eventID':_0x1bb602[_0x52b589(0x17f)][_0x52b589(0x9f)],'data':{'unitID':this['_unitID'],'operations':{[_0x4914ae['id']]:{'id':_0x4914ae['id'],'params':JSON[_0x52b589(0x14e)](_0x4914ae[_0x52b589(0x117)])}}}},this[_0x52b589(0x137)]));}['_stopPresenting'](){var _0x3f002f=_0x3f4273,_0x1993ec;this[_0x3f002f(0x142)]['next'](_0x3f002f(0x11a)),(_0x1993ec=this[_0x3f002f(0xc7)])==null||_0x1993ec[_0x3f002f(0x150)](),this['_commandDisposable']=null;}[_0x3f4273(0xae)](){var _0x1bac2e=_0x3f4273,_0x183362;(_0x183362=this['_commandDisposable'])==null||_0x183362[_0x1bac2e(0x150)](),this['_status$'][_0x1bac2e(0xbf)](_0x1bac2e(0xd4));}[_0x3f4273(0x14d)](){var _0x4a4f3c=_0x3f4273,_0x1c6965;this[_0x4a4f3c(0x142)][_0x4a4f3c(0xbf)](_0x4a4f3c(0x11a)),(_0x1c6965=this[_0x4a4f3c(0xc7)])==null||_0x1c6965[_0x4a4f3c(0x150)](),this[_0x4a4f3c(0xc7)]=null;}[_0x3f4273(0x134)](){var _0x2b7a69=_0x3f4273,_0xe7fe28;this[_0x2b7a69(0x142)][_0x2b7a69(0xbf)](_0x2b7a69(0xaa)),(_0xe7fe28=this['_commandDisposable'])==null||_0xe7fe28[_0x2b7a69(0x150)]();}[_0x3f4273(0x9a)](_0x1e52c3){var _0x371906=_0x3f4273;if([_0x371906(0x9b),_0x371906(0xaa),_0x371906(0xff)]['includes'](this[_0x371906(0x11c)])||!_0x1e52c3[_0x371906(0x14b)][_0x371906(0xf5)]||_0x1e52c3[_0x371906(0x14b)][_0x371906(0xf5)]===this['_collabSession'][_0x371906(0x12f)]())return;this['_status']===_0x371906(0x11a)&&this[_0x371906(0xae)]();const _0xdb10e5=_0x1e52c3[_0x371906(0x14b)][_0x371906(0xb6)];Object[_0x371906(0x17d)](_0xdb10e5)['forEach'](_0x4ebbc2=>{var _0x50c4a7=_0x371906;this[_0x50c4a7(0x133)][_0x50c4a7(0xdf)](_0x4ebbc2['id'],_0x4ebbc2[_0x50c4a7(0x117)]?JSON[_0x50c4a7(0xdd)](_0x4ebbc2[_0x50c4a7(0x117)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd449df=_0x3f4273,_0x36935b;this['_status$'][_0xd449df(0xbf)](_0xd449df(0xff)),(_0x36935b=this[_0xd449df(0xc7)])==null||_0x36935b[_0xd449df(0x150)]();}[_0x3f4273(0x161)](){var _0x16e524=_0x3f4273;this[_0x16e524(0x142)]['next']('idle'),this[_0x16e524(0x178)]();}},_0x20ea13['LiveShareCoordinator']=_0x202b0d([_0x45700d(0x2,_0x2e9263['IConfigService']),_0x45700d(0x3,_0x2e9263[_0x3f4273(0x177)](_0x444486)),_0x45700d(0x4,_0x2e9263[_0x3f4273(0x84)])],_0x20ea13[_0x3f4273(0xc9)]);function _0x15d707(){var _0x29ce9a=_0x3f4273;const _0x49679a=_0x6c12b0['useDependency'](_0x20ea13[_0x29ce9a(0xa8)]),_0x39ff71=_0x6c12b0[_0x29ce9a(0x110)](_0x2e9263[_0x29ce9a(0xd8)]),_0x524911=_0x6c12b0['useObservable'](()=>_0x39ff71['getCurrentTypeOfUnit$'](_0x2e9263[_0x29ce9a(0xfc)][_0x29ce9a(0x124)]),void 0x0,!0x1,[]),[_0x15cedd,_0x2e40ea]=_0xaacce9[_0x29ce9a(0x158)](null),[_0x46ec7c,_0x580d5e]=_0xaacce9[_0x29ce9a(0x158)](_0x1369e9['IDLE']),_0x39437d=_0xaacce9[_0x29ce9a(0xc4)](null);return _0xaacce9['useEffect'](()=>(_0x524911&&_0x49679a['getLiveShareCoordinator'](_0x524911[_0x29ce9a(0xcf)]())['then'](_0x3e9397=>{var _0x47f405=_0x29ce9a;_0x2e40ea(_0x3e9397),_0x39437d[_0x47f405(0x17a)]=_0x3e9397[_0x47f405(0xfb)][_0x47f405(0x152)](_0x2f0f1f=>{_0x580d5e(_0x2f0f1f);});}),()=>{var _0x1c528b=_0x29ce9a,_0x41e3fa;(_0x41e3fa=_0x39437d[_0x1c528b(0x17a)])==null||_0x41e3fa[_0x1c528b(0xa5)](),_0x39437d[_0x1c528b(0x17a)]=null;}),[_0x524911,_0x49679a]),_0x15cedd?_0x175adc['jsx'](_0x5199a3[_0x29ce9a(0x13e)],{'align':'end','disabled':_0x46ec7c===_0x1369e9[_0x29ce9a(0x123)],'className':_0x29ce9a(0x96),'overlay':_0x175adc[_0x29ce9a(0x15b)](_0x489592,{'status':_0x46ec7c,'coordinator':_0x15cedd}),'children':_0x175adc['jsx'](_0x29ce9a(0x9e),{'className':_0x5199a3[_0x29ce9a(0x171)](_0x29ce9a(0x85),{'univer-cursor-not-allowed':_0x46ec7c===_0x1369e9[_0x29ce9a(0x123)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x46ec7c!==_0x1369e9[_0x29ce9a(0x123)]}),'type':_0x29ce9a(0x9e),'children':_0x175adc[_0x29ce9a(0x15b)](_0x27c244,{'className':'univer-size-4'})})}):null;}function _0x489592(_0x24a8fb){var _0x3fb7f9=_0x3f4273;const {status:_0x18404d,coordinator:_0x5a057f}=_0x24a8fb;switch(_0x18404d){case _0x1369e9[_0x3fb7f9(0xad)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x208848,{'coordinator':_0x5a057f});case _0x1369e9[_0x3fb7f9(0xec)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x2aab7c,{'coordinator':_0x5a057f});case _0x1369e9['NOT_FOLLOWING']:return _0x175adc[_0x3fb7f9(0x15b)](_0x3627b8,{'coordinator':_0x5a057f});case _0x1369e9[_0x3fb7f9(0x123)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x22f33a,{});case _0x1369e9['PRESENTING']:return _0x175adc[_0x3fb7f9(0x15b)](_0x31abb2,{'coordinator':_0x5a057f});default:return null;}}function _0x208848(_0x1ac69b){var _0x5d9158=_0x3f4273;const {coordinator:_0x1b9428}=_0x1ac69b;return _0x175adc['jsxs'](_0x175adc[_0x5d9158(0x145)],{'children':[_0x175adc[_0x5d9158(0x15b)](_0x5d9158(0xee),{'className':_0x5d9158(0xde),'children':_0x5d9158(0x105)}),_0x175adc[_0x5d9158(0x15b)](_0x5199a3[_0x5d9158(0x10d)],{'onClick':()=>_0x1b9428[_0x5d9158(0xac)](),'children':'Start'})]});}function _0x2aab7c(_0x57c5d2){var _0x1b6a34=_0x3f4273;const {coordinator:_0x427264}=_0x57c5d2;return _0x175adc[_0x1b6a34(0xb4)](_0x175adc[_0x1b6a34(0x145)],{'children':[_0x175adc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1b6a34(0xdc)}),_0x175adc[_0x1b6a34(0x15b)](_0x5199a3[_0x1b6a34(0x10d)],{'onClick':()=>_0x427264['stopFollowing'](),'children':_0x1b6a34(0xfa)})]});}function _0x3627b8(_0x3b46e4){var _0x4cd242=_0x3f4273;const {coordinator:_0x325757}=_0x3b46e4;return _0x175adc[_0x4cd242(0xb4)](_0x175adc[_0x4cd242(0x145)],{'children':[_0x175adc[_0x4cd242(0x15b)](_0x4cd242(0xee),{'className':_0x4cd242(0xde),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x175adc[_0x4cd242(0x15b)](_0x5199a3['Button'],{'variant':'text','onClick':()=>_0x325757['startFollowing'](),'children':_0x4cd242(0xf9)})]});}function _0x31abb2(_0x4ae3f5){var _0x1927bf=_0x3f4273;const {coordinator:_0x39595d}=_0x4ae3f5;return _0x175adc[_0x1927bf(0xb4)](_0x175adc[_0x1927bf(0x145)],{'children':[_0x175adc['jsx'](_0x1927bf(0xee),{'className':_0x1927bf(0xde),'children':_0x1927bf(0x16a)}),_0x175adc[_0x1927bf(0x15b)](_0x5199a3[_0x1927bf(0x10d)],{'variant':_0x1927bf(0xc0),'onClick':()=>_0x39595d['stopPresenting'](),'children':_0x1927bf(0x15e)})]});}function _0x22f33a(){var _0x55eb61=_0x3f4273;return _0x175adc['jsx'](_0x175adc[_0x55eb61(0x145)],{'children':_0x55eb61(0xf6)});}var _0x4a43f8=Object[_0x3f4273(0x139)],_0x276156=(_0x2113eb,_0x1246a3,_0x293290,_0x503d21)=>{var _0x3ebeae=_0x3f4273;for(var _0x5a0445=_0x503d21>0x1?void 0x0:_0x503d21?_0x4a43f8(_0x1246a3,_0x293290):_0x1246a3,_0x4de32e=_0x2113eb[_0x3ebeae(0x148)]-0x1,_0x95c549;_0x4de32e>=0x0;_0x4de32e--)(_0x95c549=_0x2113eb[_0x4de32e])&&(_0x5a0445=_0x95c549(_0x5a0445)||_0x5a0445);return _0x5a0445;},_0x25c3a1=(_0x1f101e,_0x2639c1)=>(_0x2bf301,_0xd485e7)=>_0x2639c1(_0x2bf301,_0xd485e7,_0x1f101e);_0x20ea13[_0x3f4273(0x15d)]=class extends _0x2e9263[_0x3f4273(0xc5)]{constructor(_0xee5709,_0x4d30fa){var _0x28ff9c=_0x3f4273;super(),this[_0x28ff9c(0xf7)]=_0xee5709,this['_uiPartsService']=_0x4d30fa,this[_0x28ff9c(0xc6)]();}['_mountLiveShare'](){var _0x4b87e2=_0x3f4273;this[_0x4b87e2(0xc8)](this['_uiPartsService']['registerComponent'](_0x6c12b0[_0x4b87e2(0xce)][_0x4b87e2(0x173)],()=>_0x6c12b0[_0x4b87e2(0x9c)](_0x15d707,this[_0x4b87e2(0xf7)])));}},_0x20ea13['DesktopLiveShareController']=_0x276156([_0x25c3a1(0x0,_0x2e9263[_0x3f4273(0x177)](_0x2e9263[_0x3f4273(0x111)])),_0x25c3a1(0x1,_0x6c12b0[_0x3f4273(0x15c)])],_0x20ea13[_0x3f4273(0x15d)]);var _0x5511ba=Object[_0x3f4273(0xf2)],_0x19d311=Object[_0x3f4273(0x139)],_0x41f62d=(_0x2aad1b,_0x3bc124,_0x153f46)=>_0x3bc124 in _0x2aad1b?_0x5511ba(_0x2aad1b,_0x3bc124,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x153f46}):_0x2aad1b[_0x3bc124]=_0x153f46,_0x24d4bb=(_0x56b6ad,_0x3d2f1a,_0x1e3bb0,_0x1dd341)=>{for(var _0x28d419=_0x1dd341>0x1?void 0x0:_0x1dd341?_0x19d311(_0x3d2f1a,_0x1e3bb0):_0x3d2f1a,_0xd3e4d5=_0x56b6ad['length']-0x1,_0x438482;_0xd3e4d5>=0x0;_0xd3e4d5--)(_0x438482=_0x56b6ad[_0xd3e4d5])&&(_0x28d419=_0x438482(_0x28d419)||_0x28d419);return _0x28d419;},_0x4d7ae0=(_0x2b17c2,_0x36e51c)=>(_0x617430,_0x458bbf)=>_0x36e51c(_0x617430,_0x458bbf,_0x2b17c2),_0x896fcf=(_0x329446,_0x22e198,_0x25b1b5)=>_0x41f62d(_0x329446,typeof _0x22e198!=_0x3f4273(0x122)?_0x22e198+'':_0x22e198,_0x25b1b5);const _0x2d3bdd=_0x3f4273(0x138);_0x20ea13[_0x3f4273(0xda)]=class extends _0x2e9263[_0x3f4273(0xb7)]{constructor(_0x321cf4=_0x537ed2,_0x1eac74,_0x35c997){var _0x526aab=_0x3f4273;super(),this[_0x526aab(0x12d)]=_0x321cf4,this['_injector']=_0x1eac74,this[_0x526aab(0x153)]=_0x35c997;const {..._0x40f97e}=_0x2e9263[_0x526aab(0xa9)]({},_0x537ed2,this[_0x526aab(0x12d)]);this['_configService'][_0x526aab(0x86)](_0x1e5d64,_0x40f97e);}['onStarting'](){var _0x2225e1=_0x3f4273;_0x2e9263[_0x2225e1(0x104)](this[_0x2225e1(0xf7)],_0x2e9263['mergeOverrideWithDependencies']([[_0x444486],[_0x20ea13[_0x2225e1(0xa8)]],[_0x5ddad0],[_0x20ea13['DesktopLiveShareController']]],this['_config'][_0x2225e1(0xa0)])),_0x2e9263[_0x2225e1(0x155)](this[_0x2225e1(0xf7)],[[_0x5ddad0]]);}[_0x3f4273(0x15f)](){var _0x56b997=_0x3f4273;_0x2e9263[_0x56b997(0x155)](this[_0x56b997(0xf7)],[[_0x20ea13[_0x56b997(0x15d)]]]);}},_0x896fcf(_0x20ea13[_0x3f4273(0xda)],_0x3f4273(0xca),_0x2e9263['UniverInstanceType'][_0x3f4273(0x9d)]),_0x896fcf(_0x20ea13[_0x3f4273(0xda)],_0x3f4273(0xef),_0x2d3bdd),_0x20ea13[_0x3f4273(0xda)]=_0x24d4bb([_0x2e9263['DependentOn'](_0x513dfa[_0x3f4273(0xd6)]),_0x4d7ae0(0x1,_0x2e9263[_0x3f4273(0x177)](_0x2e9263[_0x3f4273(0x111)])),_0x4d7ae0(0x2,_0x2e9263['IConfigService'])],_0x20ea13[_0x3f4273(0xda)]),_0x20ea13[_0x3f4273(0x11d)]=_0x15d707,_0x20ea13[_0x3f4273(0x10c)]=_0x444486,_0x20ea13[_0x3f4273(0x156)]=_0x1369e9,Object[_0x3f4273(0xf2)](_0x20ea13,Symbol['toStringTag'],{'value':_0x3f4273(0xc3)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.3-nightly.
|
|
3
|
+
"version": "0.8.3-nightly.202507031607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.3-nightly.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.3-nightly.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.8.3-nightly.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.8.3-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.3-nightly.202507031607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.3-nightly.202507031607",
|
|
52
|
+
"@univerjs/core": "0.8.3-nightly.202507031607",
|
|
53
|
+
"@univerjs/sheets": "0.8.3-nightly.202507031607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.3-nightly.202507031607",
|
|
55
|
+
"@univerjs/design": "0.8.3-nightly.202507031607",
|
|
56
|
+
"@univerjs/ui": "0.8.3-nightly.202507031607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|