@univerjs-pro/live-share 0.12.4-experimental.20251210-8d33c6e → 0.12.4-experimental.20251210-d708bff
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xef8b9b=_0x4774;function _0x4774(_0x2b2782,_0x16dd45){_0x2b2782=_0x2b2782-0x1ca;const _0x2aca21=_0x2aca();let _0x4774a7=_0x2aca21[_0x2b2782];return _0x4774a7;}(function(_0x5213eb,_0xbaf848){const _0x356476=_0x4774,_0x59955d=_0x5213eb();while(!![]){try{const _0x6e9458=parseInt(_0x356476(0x1ea))/0x1*(parseInt(_0x356476(0x1e5))/0x2)+-parseInt(_0x356476(0x1e4))/0x3+-parseInt(_0x356476(0x1d4))/0x4+parseInt(_0x356476(0x1db))/0x5+-parseInt(_0x356476(0x1d7))/0x6+parseInt(_0x356476(0x1f0))/0x7*(-parseInt(_0x356476(0x1cb))/0x8)+-parseInt(_0x356476(0x1e8))/0x9*(-parseInt(_0x356476(0x1d8))/0xa);if(_0x6e9458===_0xbaf848)break;else _0x59955d['push'](_0x59955d['shift']());}catch(_0x93996){_0x59955d['push'](_0x59955d['shift']());}}}(_0x2aca,0xbbcd9));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{['_initialize'](_0x394863,_0x13400b,_0x45a3d5,_0x592125,_0x45dc8e){const _0x47a148=_0x4774,_0x113958=_0x394863[_0x47a148(0x1da)](n['LiveShareController']),_0x46d227=_0x394863['get'](g['IRenderManagerService']),_0x380483=_0x13400b['getUnitId'](),_0x48d99c=_0x13400b[_0x47a148(0x1e0)](),_0x4503b3=_0x113958[_0x47a148(0x1d9)](_0x380483);(_0x4503b3==null?void 0x0:_0x4503b3['getStatus']())!==n[_0x47a148(0x1ec)][_0x47a148(0x1e2)]||(_0x45a3d5['getSheetId']()!==_0x48d99c[_0x47a148(0x1e7)]()&&this[_0x47a148(0x1ee)][_0x47a148(0x1e6)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x380483,'subUnitId':_0x45a3d5['getSheetId']()}),!_0x46d227[_0x47a148(0x1ca)](_0x380483))||_0x45dc8e[_0x47a148(0x1ed)](f['SetScrollOperation']['id'],{'unitId':_0x13400b[_0x47a148(0x1dd)](),'sheetId':_0x45a3d5[_0x47a148(0x1e7)](),'sheetViewStartRow':_0x592125['startRow'],'sheetViewStartColumn':_0x592125[_0x47a148(0x1d1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0xef8b9b(0x1cc)](w);function _0x2aca(){const _0x538221=['1659560tHIxZQ','FUniver','_injector','1332366NrFVVl','10TkTSNG','getLiveShareCoordinatorSync','get','5427625avkuTk','IDLE','getUnitId','No\x20active\x20workbook\x20found.','getId','getActiveSheet','stopPresenting','PRESENTING','tryStartPresenting','559578GgZLRa','451558jrsHFi','executeCommand','getSheetId','7171965lrnrrz','LiveShareStatusEnum','2FCgaVT','stopFollowing','LiveShareStatus','syncExecuteCommand','_commandService','FEnum','8750hEGMfQ','getRenderById','4744PGbhYA','extend','getActiveWorkbook','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','startColumn','startFollowing','getLiveShareStatus'];_0x2aca=function(){return _0x538221;};return _0x2aca();}class C extends a[_0xef8b9b(0x1d5)]{[_0xef8b9b(0x1d3)](){const _0x3818bc=_0xef8b9b;var _0x4f7b5b,_0x3bb1f5;const _0x3c437a=this[_0x3818bc(0x1d6)][_0x3818bc(0x1da)](n[_0x3818bc(0x1d0)]),_0x1a849f=(_0x4f7b5b=this[_0x3818bc(0x1cd)]())==null?void 0x0:_0x4f7b5b[_0x3818bc(0x1df)]();if(!_0x1a849f)throw new Error(_0x3818bc(0x1de));const _0x49a0bf=_0x3c437a[_0x3818bc(0x1d9)](_0x1a849f);return(_0x3bb1f5=_0x49a0bf==null?void 0x0:_0x49a0bf['getStatus']())!=null?_0x3bb1f5:n[_0x3818bc(0x1ec)][_0x3818bc(0x1dc)];}[_0xef8b9b(0x1d2)](){const _0xa8e5d=_0xef8b9b;var _0xd3eac0;const _0x103bb9=this[_0xa8e5d(0x1d6)][_0xa8e5d(0x1da)](n[_0xa8e5d(0x1d0)]),_0x14c27c=(_0xd3eac0=this[_0xa8e5d(0x1cd)]())==null?void 0x0:_0xd3eac0[_0xa8e5d(0x1df)]();if(!_0x14c27c)throw new Error(_0xa8e5d(0x1de));const _0x46c0ee=_0x103bb9[_0xa8e5d(0x1d9)](_0x14c27c);if(!_0x46c0ee)throw new Error(_0xa8e5d(0x1cf));_0x46c0ee[_0xa8e5d(0x1d2)]();}[_0xef8b9b(0x1eb)](){const _0x579ac4=_0xef8b9b;var _0x43b97a;const _0x54e405=this[_0x579ac4(0x1d6)][_0x579ac4(0x1da)](n[_0x579ac4(0x1d0)]),_0x1f61f3=(_0x43b97a=this[_0x579ac4(0x1cd)]())==null?void 0x0:_0x43b97a['getId']();if(!_0x1f61f3)throw new Error(_0x579ac4(0x1de));const _0x90c330=_0x54e405[_0x579ac4(0x1d9)](_0x1f61f3);if(!_0x90c330)throw new Error(_0x579ac4(0x1cf));_0x90c330[_0x579ac4(0x1eb)]();}[_0xef8b9b(0x1ce)](){const _0x46b42f=_0xef8b9b;var _0x407734;const _0x446f00=this[_0x46b42f(0x1d6)][_0x46b42f(0x1da)](n['LiveShareController']),_0x81e3=(_0x407734=this[_0x46b42f(0x1cd)]())==null?void 0x0:_0x407734[_0x46b42f(0x1df)]();if(!_0x81e3)throw new Error(_0x46b42f(0x1de));const _0x5249fa=_0x446f00[_0x46b42f(0x1d9)](_0x81e3);if(!_0x5249fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5249fa[_0x46b42f(0x1e3)]();}[_0xef8b9b(0x1e1)](){const _0x2b3ead=_0xef8b9b;var _0x51f445;const _0x72e5ad=this[_0x2b3ead(0x1d6)][_0x2b3ead(0x1da)](n[_0x2b3ead(0x1d0)]),_0x22a030=(_0x51f445=this[_0x2b3ead(0x1cd)]())==null?void 0x0:_0x51f445[_0x2b3ead(0x1df)]();if(!_0x22a030)throw new Error('No\x20active\x20workbook\x20found.');const _0x4ae5d9=_0x72e5ad['getLiveShareCoordinatorSync'](_0x22a030);if(!_0x4ae5d9)throw new Error(_0x2b3ead(0x1cf));_0x4ae5d9[_0x2b3ead(0x1e1)]();}}a[_0xef8b9b(0x1d5)]['extend'](C);class L extends a['FEnum']{get[_0xef8b9b(0x1e9)](){const _0x589bed=_0xef8b9b;return n[_0x589bed(0x1ec)];}}a[_0xef8b9b(0x1ef)][_0xef8b9b(0x1cc)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xf435b4=_0x2638;(function(_0x88e7a7,_0x1ee3c5){const _0x17f274=_0x2638,_0xa99200=_0x88e7a7();while(!![]){try{const _0x3f0c09=parseInt(_0x17f274(0x1f3))/0x1+-parseInt(_0x17f274(0x227))/0x2*(-parseInt(_0x17f274(0x1b0))/0x3)+-parseInt(_0x17f274(0x1c7))/0x4*(parseInt(_0x17f274(0x22b))/0x5)+-parseInt(_0x17f274(0x1a9))/0x6*(-parseInt(_0x17f274(0x22c))/0x7)+parseInt(_0x17f274(0x201))/0x8*(parseInt(_0x17f274(0x161))/0x9)+parseInt(_0x17f274(0x17b))/0xa+-parseInt(_0x17f274(0x1e4))/0xb*(parseInt(_0x17f274(0x189))/0xc);if(_0x3f0c09===_0x1ee3c5)break;else _0xa99200['push'](_0xa99200['shift']());}catch(_0x56818f){_0xa99200['push'](_0xa99200['shift']());}}}(_0x3643,0xe9a4a));var T=Object[_0xf435b4(0x1f8)],U=(_0x13296d,_0x4f0c35,_0x2a8d3d)=>_0x4f0c35 in _0x13296d?T(_0x13296d,_0x4f0c35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a8d3d}):_0x13296d[_0x4f0c35]=_0x2a8d3d,_=(_0x7d695b,_0x2e4fd6,_0x2d2665)=>U(_0x7d695b,typeof _0x2e4fd6!='symbol'?_0x2e4fd6+'':_0x2e4fd6,_0x2d2665);Object[_0xf435b4(0x1f8)](exports,Symbol[_0xf435b4(0x184)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x347d9e,..._0x1073aa}){const _0x6131e2=_0xf435b4,{icon:_0x147945,id:_0x470df9,className:_0x4a55ab,extend:_0x3053f8,..._0x1a6dcf}=_0x1073aa,_0x4ab9e7=('univerjs-icon\x20univerjs-icon-'+_0x470df9+'\x20'+(_0x4a55ab||''))[_0x6131e2(0x191)](),_0xf3c036=v[_0x6131e2(0x19b)]('_'+H());return j(_0x147945,''+_0x470df9,{'defIds':_0x147945['defIds'],'idSuffix':_0xf3c036[_0x6131e2(0x21a)]},{'ref':_0x347d9e,'className':_0x4ab9e7,..._0x1a6dcf},_0x3053f8);}function j(_0x2b922a,_0x42b51f,_0x231aca,_0x14167c,_0x27551d){const _0x3bbff8=_0xf435b4;return v[_0x3bbff8(0x21d)](_0x2b922a[_0x3bbff8(0x212)],{'key':_0x42b51f,...y(_0x2b922a,_0x231aca,_0x27551d),..._0x14167c},(F(_0x2b922a,_0x231aca)['children']||[])['map']((_0x1b0a7b,_0x5bf87d)=>j(_0x1b0a7b,_0x42b51f+'-'+_0x2b922a[_0x3bbff8(0x212)]+'-'+_0x5bf87d,_0x231aca,void 0x0,_0x27551d)));}function y(_0x4cd9b5,_0x3aecb8,_0x5e7245){const _0x31b5b8=_0xf435b4,_0x7a076f={..._0x4cd9b5[_0x31b5b8(0x1ce)]};_0x5e7245!=null&&_0x5e7245[_0x31b5b8(0x1ae)]&&_0x7a076f[_0x31b5b8(0x219)]===_0x31b5b8(0x1ae)&&(_0x7a076f['fill']=_0x5e7245[_0x31b5b8(0x1ae)]),_0x4cd9b5[_0x31b5b8(0x212)]===_0x31b5b8(0x178)&&_0x7a076f['id']&&(_0x7a076f['id']=_0x7a076f['id']+_0x3aecb8[_0x31b5b8(0x171)]),Object['entries'](_0x7a076f)[_0x31b5b8(0x195)](([_0x2f3554,_0x1df4dc])=>{const _0x1edf15=_0x31b5b8;_0x2f3554==='mask'&&typeof _0x1df4dc=='string'&&(_0x7a076f[_0x2f3554]=_0x1df4dc[_0x1edf15(0x198)](/url\(#(.*)\)/,_0x1edf15(0x1f4)+_0x3aecb8['idSuffix']+')'));});const {defIds:_0x3d9233}=_0x3aecb8;return!_0x3d9233||_0x3d9233['length']===0x0||(_0x4cd9b5[_0x31b5b8(0x212)]==='use'&&_0x7a076f['xlink:href']&&(_0x7a076f[_0x31b5b8(0x172)]=_0x7a076f[_0x31b5b8(0x172)]+_0x3aecb8[_0x31b5b8(0x171)]),Object[_0x31b5b8(0x1a1)](_0x7a076f)[_0x31b5b8(0x195)](([_0xf3399f,_0x5c924b])=>{const _0x2d57c8=_0x31b5b8;typeof _0x5c924b==_0x2d57c8(0x18d)&&(_0x7a076f[_0xf3399f]=_0x5c924b[_0x2d57c8(0x198)](/url\(#(.*)\)/,_0x2d57c8(0x1f4)+_0x3aecb8['idSuffix']+')'));})),_0x7a076f;}function F(_0x525229,_0x308668){const _0x5b6cbd=_0xf435b4;var _0xeb03ee;const {defIds:_0x17bf45}=_0x308668;return!_0x17bf45||_0x17bf45[_0x5b6cbd(0x183)]===0x0?_0x525229:_0x525229['tag']==='defs'&&((_0xeb03ee=_0x525229['children'])!=null&&_0xeb03ee[_0x5b6cbd(0x183)])?{..._0x525229,'children':_0x525229[_0x5b6cbd(0x1e6)][_0x5b6cbd(0x1ad)](_0x32ba7c=>typeof _0x32ba7c['attrs']['id']==_0x5b6cbd(0x18d)&&_0x17bf45&&_0x17bf45[_0x5b6cbd(0x1e7)](_0x32ba7c[_0x5b6cbd(0x1ce)]['id'])?{..._0x32ba7c,'attrs':{..._0x32ba7c[_0x5b6cbd(0x1ce)],'id':_0x32ba7c[_0x5b6cbd(0x1ce)]['id']+_0x308668[_0x5b6cbd(0x171)]}}:_0x32ba7c)}:_0x525229;}function H(){const _0x1d8e23=_0xf435b4;return Math['random']()[_0x1d8e23(0x167)](0x24)['substring'](0x2,0x8);}x[_0xf435b4(0x196)]=_0xf435b4(0x1d0);const V={'tag':'svg','attrs':{'xmlns':_0xf435b4(0x207),'fill':'none','viewBox':_0xf435b4(0x1dc),'width':_0xf435b4(0x19d),'height':'1em'},'children':[{'tag':_0xf435b4(0x1ec),'attrs':{'fill':_0xf435b4(0x1b9),'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':_0xf435b4(0x1ec),'attrs':{'fill':_0xf435b4(0x1b9),'d':_0xf435b4(0x232),'fillRule':'evenodd','clipRule':_0xf435b4(0x21b)}}]},R=v['forwardRef'](function(_0x46806f,_0x23515a){const _0x49547b=_0xf435b4;return v['createElement'](x,Object[_0x49547b(0x20a)]({},_0x46806f,{'id':_0x49547b(0x1b6),'ref':_0x23515a,'icon':V}));});R[_0xf435b4(0x196)]=_0xf435b4(0x208);class E extends o['Disposable']{constructor(){const _0x378a8b=_0xf435b4;super(...arguments),_(this,_0x378a8b(0x1ba),new Set()),_(this,_0x378a8b(0x186),new Set());}[_0xf435b4(0x1be)](_0x3fae82){const _0x2a32f7=_0xf435b4;return this[_0x2a32f7(0x1ba)][_0x2a32f7(0x233)](_0x3fae82),o[_0x2a32f7(0x225)](()=>this[_0x2a32f7(0x1ba)][_0x2a32f7(0x160)](_0x3fae82));}[_0xf435b4(0x21e)](_0x3b1b44){const _0x306f6e=_0xf435b4;return this[_0x306f6e(0x186)][_0x306f6e(0x233)](_0x3b1b44),o[_0x306f6e(0x225)](()=>this[_0x306f6e(0x186)][_0x306f6e(0x160)](_0x3b1b44));}[_0xf435b4(0x1c4)](_0xcbccdc){const _0x4eafce=_0xf435b4;return this[_0x4eafce(0x1ba)][_0x4eafce(0x1d9)](_0xcbccdc);}[_0xf435b4(0x1d3)](_0x5084a8){const _0x182e2b=_0xf435b4;return Array[_0x182e2b(0x16c)](this['_reporters'])[_0x182e2b(0x1ad)](_0x54a03e=>_0x54a03e(_0x5084a8));}}function _0x3643(){const _0x35f83b=['LIVESHARE_OPERATION','getLiveShareCoordinator','40pXTdbF','CommandType','live-share.config','sheet','useState','getUnitId','http://www.w3.org/2000/svg','LiveShareIcon','startFollowing','assign','Disposable','stopPresenting','Present\x20this\x20document','getOwnPropertyDescriptor','setConfig','_startPresenting','Start','tag','_init','OFFLINE','DependentOn','takeUntil','button','type','fill','current','evenodd','LiveShareController','createElement','registerInitialStateReporter','IUniverInstanceService','UNIVER_SHEET','useDependency','_status','UNIVER_UNKNOWN','set','toDisposable','_handleOnline','3032754XQqMTf','next','UniverLiveSharePlugin','_status$','115iLGbRo','3160052KLqawM','FOLLOWING','Fragment','DisposableCollection','PRESENTING','event$','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','add','delete','2153457pRRjHm','unsubscribe','_beIdle','data','values','You\x27are\x20offline.','toString','registerComponent','parseProtocolChangeset','LiveShareService','touchDependencies','from','operations','DesktopLiveShareController','_configService','executeCommand','idSuffix','xlink:href','clear','status$','LIVESHARE_NEW_HOST','_mountLiveShare','LIVESHARE_TERMINATE','mask','createInstance','LIVESHARE_FETCH_OPERATIONS','18537460iQdoYv','UniverInstanceType','_commandDisposable','getStatus','getMemberID','_commandService','useObservable','OPERATION','length','toStringTag','Subject','_reporters','reverse','not-following','3158424CPohGi','presenter','onStarting','IDLE','string','onRendered','Stop\x20following','_startFollowing','trim','text','_stopPresenting','stringify','forEach','displayName','mergeOverrideWithDependencies','replace','ONLINE','IUIPartsService','useRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','end','idle','LiveShareCoordinator','entries','_handleNewHost','NEW_CHANGESETS','_unitID','throttleTime','BehaviorSubject','_collabSessionService','Start\x20following','6FKpnbg','params','jsxs','parse','map','colorChannel1','_handleOperation','3TFkNdH','send','div','connectInjector','Plugin','Inject','live-share-icon','pipe','_presenter','currentColor','_sharedOperations','memberID','get','getConfig','registerSharedOperation','univer-size-4','_handleTerminate','jsx','You\x27re\x20following\x20the\x20presenter','useEffect','shouldShareOperation','override','SAME_OPERATION_SHARE_INTERVAL','34156nSBNMv','_config','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','Dropdown','SetZoomRatioOperation','UniverCollaborationClientPlugin','attrs','find','UniverIcon','pluginName','_injector','getInitialStates','Injector','HEADER_MENU','_uiPartsService','complete','_liveShareService','has','IConfigService','subscribe','0\x200\x2017\x2017','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','following','requireSession','You\x27re\x20not\x20following\x20the\x20presenter','LiveShare','_stopFollowing','dispose$','198tsgkde','merge','children','includes','Button','_univerInstanceService','NOT_FOLLOWING','_entities','path','You\x27re\x20presenting\x20the\x20document','clsx','stopFollowing','unitId','_startLiveShareCoordinator','offline','873111oqREFd','url(#$1','CollaborationEvent','mutations','RxDisposable','defineProperty','_handleNewChangeSets','getLiveShareCoordinatorSync','presenting','dispose','_collabSession','ICommandService'];_0x3643=function(){return _0x35f83b;};return _0x3643();}var M=Object['getOwnPropertyDescriptor'],P=(_0x11fc63,_0x1c9e52,_0x49c45a,_0x4ba279)=>{const _0x1a719e=_0xf435b4;for(var _0x5bd6a4=_0x4ba279>0x1?void 0x0:_0x4ba279?M(_0x1c9e52,_0x49c45a):_0x1c9e52,_0x4ae1b6=_0x11fc63[_0x1a719e(0x183)]-0x1,_0x11b466;_0x4ae1b6>=0x0;_0x4ae1b6--)(_0x11b466=_0x11fc63[_0x4ae1b6])&&(_0x5bd6a4=_0x11b466(_0x5bd6a4)||_0x5bd6a4);return _0x5bd6a4;},S=(_0x1dec26,_0x3f922b)=>(_0x163ed5,_0x5470b8)=>_0x3f922b(_0x163ed5,_0x5470b8,_0x1dec26);exports[_0xf435b4(0x21c)]=class extends o[_0xf435b4(0x1f7)]{constructor(_0x491a93,_0x3ee0a2,_0x4c4106){const _0x1b3545=_0xf435b4;super(),_(this,_0x1b3545(0x1eb),new Map()),(this[_0x1b3545(0x1e9)]=_0x491a93,this[_0x1b3545(0x1d2)]=_0x3ee0a2,this[_0x1b3545(0x1a7)]=_0x4c4106,this[_0x1b3545(0x213)]());}async[_0xf435b4(0x200)](_0xee1996){const _0x1b174a=_0xf435b4;return this[_0x1b174a(0x1eb)]['has'](_0xee1996)||await this[_0x1b174a(0x1f1)](_0xee1996),this[_0x1b174a(0x1eb)][_0x1b174a(0x1bc)](_0xee1996);}[_0xf435b4(0x1fa)](_0x49c1d3){const _0x55ca83=_0xf435b4;var _0x10fb9d;return(_0x10fb9d=this['_entities'][_0x55ca83(0x1bc)](_0x49c1d3))!=null?_0x10fb9d:null;}[_0xf435b4(0x213)](){const _0x2ebb28=_0xf435b4;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x2ebb28(0x220)])['pipe'](I['takeUntil'](this[_0x2ebb28(0x1e3)]))[_0x2ebb28(0x1db)](async _0x5b30f2=>{const _0x379693=_0x2ebb28,_0x374aad=_0x5b30f2[_0x379693(0x206)]();this[_0x379693(0x1eb)]['has'](_0x374aad)||this[_0x379693(0x1f1)](_0x374aad);}),this[_0x2ebb28(0x1e9)]['getTypeOfUnitDisposed$'](o[_0x2ebb28(0x17c)][_0x2ebb28(0x220)])[_0x2ebb28(0x1b7)](I[_0x2ebb28(0x216)](this[_0x2ebb28(0x1e3)]))[_0x2ebb28(0x1db)](_0x4dfeca=>{const _0xf45881=_0x2ebb28,_0x3e8030=_0x4dfeca[_0xf45881(0x206)](),_0x30aa1f=this['_entities'][_0xf45881(0x1bc)](_0x3e8030);_0x30aa1f==null||_0x30aa1f[_0xf45881(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x264f64){const _0x11f431=_0xf435b4,_0x2874e7=await this[_0x11f431(0x1a7)][_0x11f431(0x1df)](_0x264f64),_0x1381cc=this[_0x11f431(0x1d2)][_0x11f431(0x179)](exports[_0x11f431(0x1a0)],_0x264f64,_0x2874e7);return _0x1381cc['init'](),this['_entities']['set'](_0x264f64,_0x1381cc),_0x1381cc;}},exports[_0xf435b4(0x21c)]=P([S(0x0,o[_0xf435b4(0x21f)]),S(0x1,o[_0xf435b4(0x1b5)](o[_0xf435b4(0x1d4)])),S(0x2,o[_0xf435b4(0x1b5)](b['CollaborationSessionService']))],exports[_0xf435b4(0x21c)]);var u=(_0x3bc5b2=>(_0x3bc5b2[_0xf435b4(0x214)]='offline',_0x3bc5b2[_0xf435b4(0x18c)]=_0xf435b4(0x19f),_0x3bc5b2[_0xf435b4(0x22d)]=_0xf435b4(0x1de),_0x3bc5b2[_0xf435b4(0x1ea)]=_0xf435b4(0x188),_0x3bc5b2['PRESENTING']='presenting',_0x3bc5b2))(u||{});const k=_0xf435b4(0x1c6),q=0xc8;exports[_0xf435b4(0x1a0)]=class extends o[_0xf435b4(0x1f7)]{constructor(_0x4d9bb9,_0x2ba5f7,_0x116c30,_0xab4ef7,_0x45af61){const _0x386c76=_0xf435b4;super(),_(this,'_status$',new O[(_0x386c76(0x1a6))](_0x386c76(0x19f))),_(this,_0x386c76(0x174),this['_status$']['asObservable']()),_(this,_0x386c76(0x213),!0x1),_(this,_0x386c76(0x17d),null),_(this,_0x386c76(0x1b8),null),(this['_unitID']=_0x4d9bb9,this[_0x386c76(0x1fd)]=_0x2ba5f7,this[_0x386c76(0x16f)]=_0x116c30,this['_liveShareService']=_0xab4ef7,this[_0x386c76(0x180)]=_0x45af61);}get[_0xf435b4(0x222)](){const _0x378431=_0xf435b4;return this[_0x378431(0x22a)]['getValue']();}[_0xf435b4(0x1fc)](){const _0x501b72=_0xf435b4;var _0x29e503;(_0x29e503=this[_0x501b72(0x17d)])==null||_0x29e503[_0x501b72(0x1fc)](),this[_0x501b72(0x22a)]['next'](_0x501b72(0x19f)),this[_0x501b72(0x22a)]['complete']();}[_0xf435b4(0x17e)](){const _0x3a24d0=_0xf435b4;return this[_0x3a24d0(0x222)];}['init'](){const _0x4d2e9b=_0xf435b4;this[_0x4d2e9b(0x213)]||(this[_0x4d2e9b(0x213)]=!0x0,this[_0x4d2e9b(0x1fd)]['sessionStatus$']['pipe'](I[_0x4d2e9b(0x216)](this[_0x4d2e9b(0x1e3)]))[_0x4d2e9b(0x1db)](_0xc0e262=>{const _0x131240=_0x4d2e9b;switch(_0xc0e262){case b['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case b['SessionStatus'][_0x131240(0x199)]:this[_0x131240(0x226)]();break;}}),this[_0x4d2e9b(0x1fd)][_0x4d2e9b(0x231)]['pipe'](I['takeUntil'](this[_0x4d2e9b(0x1e3)]))[_0x4d2e9b(0x1db)](_0x4de609=>{const _0x4b4ee9=_0x4d2e9b,{eventID:_0x24acbd}=_0x4de609;switch(_0x24acbd){case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x175)]:this[_0x4b4ee9(0x1a2)](_0x4de609);break;case d[_0x4b4ee9(0x1f5)]['LIVESHARE_OPERATION']:this[_0x4b4ee9(0x1af)](_0x4de609);break;case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x177)]:this['_handleTerminate']();break;case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x1a3)]:this['_handleNewChangeSets'](_0x4de609);break;}}));}['tryStartPresenting'](){const _0x59d144=_0xf435b4;this[_0x59d144(0x1fd)][_0x59d144(0x1b1)]({'eventID':d[_0x59d144(0x1f5)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x59d144(0x1a4)],'userID':this[_0x59d144(0x1fd)][_0x59d144(0x17f)]()}},this[_0x59d144(0x1a4)]);}['stopPresenting'](){const _0x313316=_0xf435b4;this[_0x313316(0x222)]===_0x313316(0x1fb)&&(this[_0x313316(0x22a)][_0x313316(0x228)]('idle'),this[_0x313316(0x1fd)]['send']({'eventID':d[_0x313316(0x1f5)][_0x313316(0x177)],'data':{'unitID':this[_0x313316(0x1a4)]}},this['_unitID']));}['startFollowing'](){const _0x496ee1=_0xf435b4;this[_0x496ee1(0x222)]===_0x496ee1(0x188)&&(this[_0x496ee1(0x22a)]['next'](_0x496ee1(0x1de)),this[_0x496ee1(0x190)]());}[_0xf435b4(0x1ef)](){const _0x496a1b=_0xf435b4;this[_0x496a1b(0x222)]==='following'&&this[_0x496a1b(0x1e2)]();}[_0xf435b4(0x1a2)](_0x3c5186){const _0x1ef2b6=_0xf435b4,{presenter:_0x465f4b}=_0x3c5186[_0x1ef2b6(0x164)],_0x4a5e1d=this['_collabSession']['getMemberID']();this[_0x1ef2b6(0x1b8)]=_0x465f4b,_0x465f4b===_0x4a5e1d?(this[_0x1ef2b6(0x1e2)](),this[_0x1ef2b6(0x210)]()):this['_status']!==_0x1ef2b6(0x188)&&(this[_0x1ef2b6(0x193)](),this[_0x1ef2b6(0x190)]());}['_fetchOperations'](){const _0x14c379=_0xf435b4,_0x659c40={'eventID':d[_0x14c379(0x1f5)][_0x14c379(0x17a)]};this[_0x14c379(0x1fd)][_0x14c379(0x1b1)](_0x659c40,this['_unitID']);}[_0xf435b4(0x1c0)](){const _0x22779d=_0xf435b4;this[_0x22779d(0x1b8)]=null,this['_status']!=='presenting'&&this[_0x22779d(0x163)]();}[_0xf435b4(0x1f9)](_0x291ebc){const _0x431555=_0xf435b4;if(this['_status']===_0x431555(0x1de)&&this[_0x431555(0x1b8)]===_0x291ebc[_0x431555(0x164)][_0x431555(0x1bb)]){const _0xce14a8=d[_0x431555(0x169)](_0x291ebc[_0x431555(0x164)])[_0x431555(0x1f6)][_0x431555(0x187)]()[_0x431555(0x1cf)](_0x2f863b=>_0x2f863b['id']===C['InsertSheetMutation']['id']);if(_0xce14a8){const _0x5ae678=_0xce14a8[_0x431555(0x1aa)][_0x431555(0x1f0)],_0x2d4b01=_0xce14a8[_0x431555(0x1aa)][_0x431555(0x204)]['id'];setTimeout(()=>{const _0x2b9ac3=_0x431555;this[_0x2b9ac3(0x180)][_0x2b9ac3(0x170)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5ae678,'subUnitId':_0x2d4b01},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1c0c4e=_0xf435b4;this[_0x1c0c4e(0x22a)][_0x1c0c4e(0x228)](_0x1c0c4e(0x1fb));const _0x222072=new Map(),_0x3e39ae=this[_0x1c0c4e(0x17d)]=new o[(_0x1c0c4e(0x22f))]();_0x3e39ae[_0x1c0c4e(0x233)](o[_0x1c0c4e(0x225)](()=>{const _0x5cea14=_0x1c0c4e;_0x222072['forEach'](_0x25eb78=>_0x25eb78[_0x5cea14(0x1d7)]()),_0x222072[_0x5cea14(0x173)]();})),_0x3e39ae[_0x1c0c4e(0x233)](this[_0x1c0c4e(0x180)]['onCommandExecuted'](_0x1ec617=>{const _0x257eda=_0x1c0c4e;var _0x34df64;if(_0x1ec617[_0x257eda(0x218)]!==o[_0x257eda(0x202)][_0x257eda(0x182)]||!this[_0x257eda(0x1d8)][_0x257eda(0x1c4)](_0x1ec617['id']))return;const {id:_0x1da636}=_0x1ec617;let _0x5f2f17;_0x222072[_0x257eda(0x1d9)](_0x1da636)?_0x5f2f17=_0x222072[_0x257eda(0x1bc)](_0x1da636):(_0x5f2f17=new O[(_0x257eda(0x185))](),_0x222072[_0x257eda(0x224)](_0x1da636,_0x5f2f17),_0x5f2f17['pipe'](I[_0x257eda(0x1a5)]((_0x34df64=this['_configService'][_0x257eda(0x1bd)](k))!=null?_0x34df64:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x578224=>{const _0x304c0f=_0x257eda;this[_0x304c0f(0x1fd)][_0x304c0f(0x1b1)]({'eventID':d[_0x304c0f(0x1f5)][_0x304c0f(0x1ff)],'data':{'unitID':this[_0x304c0f(0x1a4)],'operations':{[_0x578224['id']]:{'id':_0x578224['id'],'params':JSON[_0x304c0f(0x194)](_0x578224[_0x304c0f(0x1aa)])}}}},this[_0x304c0f(0x1a4)]);})),_0x5f2f17[_0x257eda(0x228)](_0x1ec617);})),this[_0x1c0c4e(0x1d8)]['getInitialStates'](this[_0x1c0c4e(0x1a4)])[_0x1c0c4e(0x195)](_0x43d3df=>this[_0x1c0c4e(0x1fd)][_0x1c0c4e(0x1b1)]({'eventID':d[_0x1c0c4e(0x1f5)][_0x1c0c4e(0x1ff)],'data':{'unitID':this[_0x1c0c4e(0x1a4)],'operations':{[_0x43d3df['id']]:{'id':_0x43d3df['id'],'params':JSON[_0x1c0c4e(0x194)](_0x43d3df[_0x1c0c4e(0x1aa)])}}}},this['_unitID']));}[_0xf435b4(0x193)](){const _0x556d06=_0xf435b4;var _0x4f4b60;this[_0x556d06(0x22a)][_0x556d06(0x228)](_0x556d06(0x19f)),(_0x4f4b60=this[_0x556d06(0x17d)])==null||_0x4f4b60[_0x556d06(0x1fc)](),this[_0x556d06(0x17d)]=null;}['_startFollowing'](){const _0x7fa547=_0xf435b4;var _0x5ccd48;(_0x5ccd48=this['_commandDisposable'])==null||_0x5ccd48['dispose'](),this[_0x7fa547(0x22a)][_0x7fa547(0x228)](_0x7fa547(0x1de));}['_beIdle'](){const _0x391691=_0xf435b4;var _0x470e74;this[_0x391691(0x22a)][_0x391691(0x228)](_0x391691(0x19f)),(_0x470e74=this['_commandDisposable'])==null||_0x470e74['dispose'](),this[_0x391691(0x17d)]=null;}[_0xf435b4(0x1e2)](){const _0x1d004a=_0xf435b4;var _0x1d4d48;this[_0x1d004a(0x22a)]['next']('not-following'),(_0x1d4d48=this[_0x1d004a(0x17d)])==null||_0x1d4d48[_0x1d004a(0x1fc)]();}[_0xf435b4(0x1af)](_0x58334){const _0x1ec845=_0xf435b4;if(['presenting',_0x1ec845(0x188),'offline'][_0x1ec845(0x1e7)](this['_status'])||!_0x58334[_0x1ec845(0x164)][_0x1ec845(0x18a)]||_0x58334[_0x1ec845(0x164)][_0x1ec845(0x18a)]===this['_collabSession'][_0x1ec845(0x17f)]())return;this[_0x1ec845(0x222)]==='idle'&&this[_0x1ec845(0x190)]();const _0x143ea4=_0x58334[_0x1ec845(0x164)][_0x1ec845(0x16d)];Object[_0x1ec845(0x165)](_0x143ea4)[_0x1ec845(0x195)](_0xcc27ab=>{const _0x56e29b=_0x1ec845;this[_0x56e29b(0x180)][_0x56e29b(0x170)](_0xcc27ab['id'],_0xcc27ab['params']?JSON[_0x56e29b(0x1ac)](_0xcc27ab[_0x56e29b(0x1aa)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x50e026=_0xf435b4;var _0x427e12;this['_status$'][_0x50e026(0x228)](_0x50e026(0x1f2)),(_0x427e12=this[_0x50e026(0x17d)])==null||_0x427e12[_0x50e026(0x1fc)]();}[_0xf435b4(0x226)](){const _0x151a88=_0xf435b4;this[_0x151a88(0x22a)][_0x151a88(0x228)](_0x151a88(0x19f)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0xf435b4(0x1da)]),S(0x3,o[_0xf435b4(0x1b5)](E)),S(0x4,o[_0xf435b4(0x1fe)])],exports['LiveShareCoordinator']);function $(){const _0x59b300=_0xf435b4,_0x1feddf=p[_0x59b300(0x221)](exports[_0x59b300(0x21c)]),_0x3a1ff0=p[_0x59b300(0x221)](o[_0x59b300(0x21f)]),_0x5c6f81=p[_0x59b300(0x181)](()=>_0x3a1ff0['getCurrentTypeOfUnit$'](o[_0x59b300(0x17c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x241b8b,_0xe58aaa]=v[_0x59b300(0x205)](null),[_0x223195,_0x44cbf3]=v[_0x59b300(0x205)](u[_0x59b300(0x18c)]),_0x519556=v[_0x59b300(0x19b)](null);return v[_0x59b300(0x1c3)](()=>(_0x5c6f81&&_0x1feddf[_0x59b300(0x200)](_0x5c6f81[_0x59b300(0x206)]())['then'](_0x29b453=>{const _0x5516b5=_0x59b300;_0xe58aaa(_0x29b453),_0x519556[_0x5516b5(0x21a)]=_0x29b453['status$'][_0x5516b5(0x1db)](_0x46d260=>{_0x44cbf3(_0x46d260);});}),()=>{const _0x5957d4=_0x59b300;var _0x512fb2;(_0x512fb2=_0x519556['current'])==null||_0x512fb2[_0x5957d4(0x162)](),_0x519556[_0x5957d4(0x21a)]=null;}),[_0x5c6f81,_0x1feddf]),_0x241b8b?l[_0x59b300(0x1c1)](f[_0x59b300(0x1cb)],{'align':_0x59b300(0x19e),'disabled':_0x223195===u[_0x59b300(0x214)],'className':_0x59b300(0x1dd),'overlay':l[_0x59b300(0x1c1)](W,{'status':_0x223195,'coordinator':_0x241b8b}),'children':l[_0x59b300(0x1c1)](_0x59b300(0x217),{'className':f[_0x59b300(0x1ee)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x223195===u[_0x59b300(0x214)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223195!==u[_0x59b300(0x214)]}),'type':_0x59b300(0x217),'children':l[_0x59b300(0x1c1)](R,{'className':_0x59b300(0x1bf)})})}):null;}function W(_0x440097){const _0x3230f8=_0xf435b4,{status:_0x26f757,coordinator:_0x1b8d51}=_0x440097;switch(_0x26f757){case u[_0x3230f8(0x18c)]:return l['jsx'](G,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x22d)]:return l[_0x3230f8(0x1c1)](B,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x1ea)]:return l[_0x3230f8(0x1c1)](Y,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x214)]:return l['jsx'](J,{});case u[_0x3230f8(0x230)]:return l[_0x3230f8(0x1c1)](Z,{'coordinator':_0x1b8d51});default:return null;}}function G(_0x40f02b){const _0x991ec=_0xf435b4,{coordinator:_0x511bf6}=_0x40f02b;return l[_0x991ec(0x1ab)](l[_0x991ec(0x22e)],{'children':[l[_0x991ec(0x1c1)](_0x991ec(0x1b2),{'className':_0x991ec(0x19c),'children':_0x991ec(0x20d)}),l[_0x991ec(0x1c1)](f[_0x991ec(0x1e8)],{'onClick':()=>_0x511bf6['tryStartPresenting'](),'children':_0x991ec(0x211)})]});}function B(_0x32dafa){const _0x5d2cbf=_0xf435b4,{coordinator:_0x28ef33}=_0x32dafa;return l[_0x5d2cbf(0x1ab)](l[_0x5d2cbf(0x22e)],{'children':[l[_0x5d2cbf(0x1c1)](_0x5d2cbf(0x1b2),{'className':_0x5d2cbf(0x19c),'children':_0x5d2cbf(0x1c2)}),l[_0x5d2cbf(0x1c1)](f['Button'],{'onClick':()=>_0x28ef33[_0x5d2cbf(0x1ef)](),'children':_0x5d2cbf(0x18f)})]});}function Y(_0x2b576f){const _0x5f4789=_0xf435b4,{coordinator:_0x1bcf36}=_0x2b576f;return l['jsxs'](l[_0x5f4789(0x22e)],{'children':[l[_0x5f4789(0x1c1)](_0x5f4789(0x1b2),{'className':_0x5f4789(0x19c),'children':_0x5f4789(0x1e0)}),l[_0x5f4789(0x1c1)](f[_0x5f4789(0x1e8)],{'variant':_0x5f4789(0x192),'onClick':()=>_0x1bcf36[_0x5f4789(0x209)](),'children':_0x5f4789(0x1a8)})]});}function Z(_0x560678){const _0x5f40a7=_0xf435b4,{coordinator:_0x58c010}=_0x560678;return l[_0x5f40a7(0x1ab)](l['Fragment'],{'children':[l[_0x5f40a7(0x1c1)](_0x5f40a7(0x1b2),{'className':_0x5f40a7(0x19c),'children':_0x5f40a7(0x1ed)}),l['jsx'](f[_0x5f40a7(0x1e8)],{'variant':'default','onClick':()=>_0x58c010[_0x5f40a7(0x20c)](),'children':'Stop\x20presenting'})]});}function J(){const _0x25539c=_0xf435b4;return l[_0x25539c(0x1c1)](l[_0x25539c(0x22e)],{'children':_0x25539c(0x166)});}var K=Object[_0xf435b4(0x20e)],z=(_0x21da77,_0x104981,_0x264bae,_0x11d00b)=>{const _0x1cb28e=_0xf435b4;for(var _0x1835f0=_0x11d00b>0x1?void 0x0:_0x11d00b?K(_0x104981,_0x264bae):_0x104981,_0x4aa6db=_0x21da77[_0x1cb28e(0x183)]-0x1,_0xdf39f2;_0x4aa6db>=0x0;_0x4aa6db--)(_0xdf39f2=_0x21da77[_0x4aa6db])&&(_0x1835f0=_0xdf39f2(_0x1835f0)||_0x1835f0);return _0x1835f0;},L=(_0x1ca5c3,_0x84885a)=>(_0x5b4cca,_0xf4dac1)=>_0x84885a(_0x5b4cca,_0xf4dac1,_0x1ca5c3);exports[_0xf435b4(0x16e)]=class extends o[_0xf435b4(0x20b)]{constructor(_0x3c2cc6,_0x4fe4b9){const _0x51f462=_0xf435b4;super(),this[_0x51f462(0x1d2)]=_0x3c2cc6,this['_uiPartsService']=_0x4fe4b9,this[_0x51f462(0x176)]();}[_0xf435b4(0x176)](){const _0x235658=_0xf435b4;this[_0x235658(0x1ca)](this[_0x235658(0x1d6)][_0x235658(0x168)](p['BuiltInUIPart'][_0x235658(0x1d5)],()=>p[_0x235658(0x1b3)]($,this[_0x235658(0x1d2)])));}},exports[_0xf435b4(0x16e)]=z([L(0x0,o[_0xf435b4(0x1b5)](o[_0xf435b4(0x1d4)])),L(0x1,p[_0xf435b4(0x19a)])],exports[_0xf435b4(0x16e)]);function _0x2638(_0x3ec3e3,_0x31646c){_0x3ec3e3=_0x3ec3e3-0x160;const _0x364392=_0x3643();let _0x263844=_0x364392[_0x3ec3e3];return _0x263844;}const Q=_0xf435b4(0x203),w={};var X=Object[_0xf435b4(0x20e)],ee=(_0x53246a,_0x865329,_0x263ed4,_0x11ecf4)=>{const _0x246d79=_0xf435b4;for(var _0x135bf5=_0x11ecf4>0x1?void 0x0:_0x11ecf4?X(_0x865329,_0x263ed4):_0x865329,_0x1bdb6c=_0x53246a[_0x246d79(0x183)]-0x1,_0xbfe7a1;_0x1bdb6c>=0x0;_0x1bdb6c--)(_0xbfe7a1=_0x53246a[_0x1bdb6c])&&(_0x135bf5=_0xbfe7a1(_0x135bf5)||_0x135bf5);return _0x135bf5;},te=(_0xac534c,_0x33b24d)=>(_0x2dd846,_0xf7db05)=>_0x33b24d(_0x2dd846,_0xf7db05,_0xac534c);let m=class extends o['Disposable']{constructor(_0x1e2b0f){const _0x2a2abc=_0xf435b4;super(),this['_liveShareService']=_0x1e2b0f,this[_0x2a2abc(0x213)]();}['_init'](){const _0x509a4c=_0xf435b4;[D[_0x509a4c(0x1cc)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x509a4c(0x195)](_0x3fc3ca=>{const _0x1a99a8=_0x509a4c;this[_0x1a99a8(0x1ca)](this[_0x1a99a8(0x1d8)][_0x1a99a8(0x1be)](_0x3fc3ca));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0xf435b4(0x1f8)],se=Object[_0xf435b4(0x20e)],ne=(_0x2453e7,_0x516dad,_0x20603c)=>_0x516dad in _0x2453e7?ie(_0x2453e7,_0x516dad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20603c}):_0x2453e7[_0x516dad]=_0x20603c,re=(_0x8e6f30,_0x486f12,_0x166dc7,_0x2fc172)=>{const _0x59d666=_0xf435b4;for(var _0x5b8cc1=_0x2fc172>0x1?void 0x0:_0x2fc172?se(_0x486f12,_0x166dc7):_0x486f12,_0x509634=_0x8e6f30[_0x59d666(0x183)]-0x1,_0x9d1ee3;_0x509634>=0x0;_0x509634--)(_0x9d1ee3=_0x8e6f30[_0x509634])&&(_0x5b8cc1=_0x9d1ee3(_0x5b8cc1)||_0x5b8cc1);return _0x5b8cc1;},N=(_0x152d49,_0x591861)=>(_0x2a18bd,_0x359ee5)=>_0x591861(_0x2a18bd,_0x359ee5,_0x152d49),A=(_0x35d1ee,_0xce2330,_0xbced61)=>ne(_0x35d1ee,typeof _0xce2330!='symbol'?_0xce2330+'':_0xce2330,_0xbced61);const oe=_0xf435b4(0x1c9);exports['UniverLiveSharePlugin']=class extends o[_0xf435b4(0x1b4)]{constructor(_0xd8fdb5=w,_0xe713d9,_0x314456){const _0x44c10e=_0xf435b4;super(),this[_0x44c10e(0x1c8)]=_0xd8fdb5,this['_injector']=_0xe713d9,this[_0x44c10e(0x16f)]=_0x314456;const {..._0x17fbed}=o[_0x44c10e(0x1e5)]({},w,this['_config']);this[_0x44c10e(0x16f)][_0x44c10e(0x20f)](Q,_0x17fbed);}[_0xf435b4(0x18b)](){const _0x334199=_0xf435b4;o['registerDependencies'](this[_0x334199(0x1d2)],o[_0x334199(0x197)]([[E],[exports[_0x334199(0x21c)]],[m],[exports[_0x334199(0x16e)]]],this[_0x334199(0x1c8)][_0x334199(0x1c5)])),o[_0x334199(0x16b)](this[_0x334199(0x1d2)],[[m]]);}[_0xf435b4(0x18e)](){const _0x119433=_0xf435b4;o[_0x119433(0x16b)](this[_0x119433(0x1d2)],[[exports[_0x119433(0x16e)]]]);}},A(exports[_0xf435b4(0x229)],'type',o[_0xf435b4(0x17c)][_0xf435b4(0x223)]),A(exports[_0xf435b4(0x229)],_0xf435b4(0x1d1),oe),exports['UniverLiveSharePlugin']=re([o[_0xf435b4(0x215)](b[_0xf435b4(0x1cd)]),N(0x1,o[_0xf435b4(0x1b5)](o['Injector'])),N(0x2,o[_0xf435b4(0x1da)])],exports[_0xf435b4(0x229)]),exports[_0xf435b4(0x1e1)]=$,exports[_0xf435b4(0x16a)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0xcdd8a2=_0x247a;(function(_0x5ea1d5,_0x1f9fd6){const _0x1f804a=_0x247a,_0x3bb8e7=_0x5ea1d5();while(!![]){try{const _0x400fa3=-parseInt(_0x1f804a(0x248))/0x1*(-parseInt(_0x1f804a(0x19e))/0x2)+-parseInt(_0x1f804a(0x1e0))/0x3+parseInt(_0x1f804a(0x1e4))/0x4*(-parseInt(_0x1f804a(0x230))/0x5)+parseInt(_0x1f804a(0x1ed))/0x6+parseInt(_0x1f804a(0x1e3))/0x7*(parseInt(_0x1f804a(0x243))/0x8)+parseInt(_0x1f804a(0x1a9))/0x9+parseInt(_0x1f804a(0x182))/0xa;if(_0x400fa3===_0x1f9fd6)break;else _0x3bb8e7['push'](_0x3bb8e7['shift']());}catch(_0x3a4a57){_0x3bb8e7['push'](_0x3bb8e7['shift']());}}}(_0x10bb,0x22634));var T=Object[_0xcdd8a2(0x18c)],U=(_0xe6c5a8,_0x1ed970,_0x275f17)=>_0x1ed970 in _0xe6c5a8?T(_0xe6c5a8,_0x1ed970,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x275f17}):_0xe6c5a8[_0x1ed970]=_0x275f17,_=(_0x23a2b9,_0x2dfc89,_0x29141)=>U(_0x23a2b9,typeof _0x2dfc89!=_0xcdd8a2(0x200)?_0x2dfc89+'':_0x2dfc89,_0x29141);Object['defineProperty'](exports,Symbol[_0xcdd8a2(0x1fb)],{'value':_0xcdd8a2(0x1be)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x53dcdc,..._0x515846}){const _0x215431=_0xcdd8a2,{icon:_0x584cec,id:_0x4e67e2,className:_0x28f6f6,extend:_0x4b10dd,..._0x3bd2bf}=_0x515846,_0x31ab57=('univerjs-icon\x20univerjs-icon-'+_0x4e67e2+'\x20'+(_0x28f6f6||''))[_0x215431(0x228)](),_0x4373e2=v[_0x215431(0x1b2)]('_'+H());return j(_0x584cec,''+_0x4e67e2,{'defIds':_0x584cec[_0x215431(0x1ef)],'idSuffix':_0x4373e2[_0x215431(0x1ae)]},{'ref':_0x53dcdc,'className':_0x31ab57,..._0x3bd2bf},_0x4b10dd);}function j(_0x107e1a,_0x3eb67e,_0x47ec49,_0x1373fc,_0x555fcc){const _0x421a8c=_0xcdd8a2;return v[_0x421a8c(0x1d8)](_0x107e1a[_0x421a8c(0x1fd)],{'key':_0x3eb67e,...y(_0x107e1a,_0x47ec49,_0x555fcc),..._0x1373fc},(F(_0x107e1a,_0x47ec49)[_0x421a8c(0x1ba)]||[])[_0x421a8c(0x193)]((_0x31f4a6,_0x5a8b5f)=>j(_0x31f4a6,_0x3eb67e+'-'+_0x107e1a[_0x421a8c(0x1fd)]+'-'+_0x5a8b5f,_0x47ec49,void 0x0,_0x555fcc)));}function y(_0x357b12,_0x465567,_0x541af7){const _0x24bc55=_0xcdd8a2,_0x560390={..._0x357b12[_0x24bc55(0x1a8)]};_0x541af7!=null&&_0x541af7[_0x24bc55(0x185)]&&_0x560390[_0x24bc55(0x1d2)]==='colorChannel1'&&(_0x560390[_0x24bc55(0x1d2)]=_0x541af7[_0x24bc55(0x185)]),_0x357b12['tag']===_0x24bc55(0x1bb)&&_0x560390['id']&&(_0x560390['id']=_0x560390['id']+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)[_0x24bc55(0x212)](([_0x2786ee,_0x3f30a2])=>{const _0x3f6fad=_0x24bc55;_0x2786ee===_0x3f6fad(0x1bb)&&typeof _0x3f30a2==_0x3f6fad(0x1b7)&&(_0x560390[_0x2786ee]=_0x3f30a2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x465567['idSuffix']+')'));});const {defIds:_0x36f2d3}=_0x465567;return!_0x36f2d3||_0x36f2d3[_0x24bc55(0x231)]===0x0||(_0x357b12['tag']===_0x24bc55(0x197)&&_0x560390[_0x24bc55(0x17a)]&&(_0x560390[_0x24bc55(0x17a)]=_0x560390[_0x24bc55(0x17a)]+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)['forEach'](([_0x4030ba,_0x47db79])=>{const _0x573457=_0x24bc55;typeof _0x47db79==_0x573457(0x1b7)&&(_0x560390[_0x4030ba]=_0x47db79[_0x573457(0x219)](/url\(#(.*)\)/,'url(#$1'+_0x465567[_0x573457(0x18f)]+')'));})),_0x560390;}function F(_0x41bb6e,_0x2f12b8){const _0x4cda9e=_0xcdd8a2;var _0x495719;const {defIds:_0x37ec4c}=_0x2f12b8;return!_0x37ec4c||_0x37ec4c[_0x4cda9e(0x231)]===0x0?_0x41bb6e:_0x41bb6e[_0x4cda9e(0x1fd)]===_0x4cda9e(0x23f)&&((_0x495719=_0x41bb6e[_0x4cda9e(0x1ba)])!=null&&_0x495719[_0x4cda9e(0x231)])?{..._0x41bb6e,'children':_0x41bb6e['children'][_0x4cda9e(0x193)](_0x44a7a3=>typeof _0x44a7a3[_0x4cda9e(0x1a8)]['id']==_0x4cda9e(0x1b7)&&_0x37ec4c&&_0x37ec4c[_0x4cda9e(0x232)](_0x44a7a3['attrs']['id'])?{..._0x44a7a3,'attrs':{..._0x44a7a3[_0x4cda9e(0x1a8)],'id':_0x44a7a3[_0x4cda9e(0x1a8)]['id']+_0x2f12b8[_0x4cda9e(0x18f)]}}:_0x44a7a3)}:_0x41bb6e;}function H(){const _0x3b505f=_0xcdd8a2;return Math[_0x3b505f(0x1ff)]()[_0x3b505f(0x21e)](0x24)[_0x3b505f(0x23e)](0x2,0x8);}x[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x20f);const V={'tag':_0xcdd8a2(0x22b),'attrs':{'xmlns':_0xcdd8a2(0x190),'fill':'none','viewBox':_0xcdd8a2(0x1db),'width':'1em','height':_0xcdd8a2(0x1b4)},'children':[{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':'currentColor','d':_0xcdd8a2(0x1d9)}},{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':_0xcdd8a2(0x1a2),'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':_0xcdd8a2(0x1a3),'clipRule':'evenodd'}}]},R=v[_0xcdd8a2(0x1f1)](function(_0x2a9354,_0x57b30c){const _0x84ae0d=_0xcdd8a2;return v[_0x84ae0d(0x1d8)](x,Object[_0x84ae0d(0x22c)]({},_0x2a9354,{'id':'live-share-icon','ref':_0x57b30c,'icon':V}));});R[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x21b);class E extends o[_0xcdd8a2(0x1ce)]{constructor(){const _0x47fec5=_0xcdd8a2;super(...arguments),_(this,_0x47fec5(0x196),new Set()),_(this,_0x47fec5(0x1b3),new Set());}['registerSharedOperation'](_0x3208f5){const _0x31ea1e=_0xcdd8a2;return this[_0x31ea1e(0x196)]['add'](_0x3208f5),o[_0x31ea1e(0x239)](()=>this['_sharedOperations']['delete'](_0x3208f5));}[_0xcdd8a2(0x1f3)](_0x342a4a){const _0x3b234c=_0xcdd8a2;return this[_0x3b234c(0x1b3)][_0x3b234c(0x23c)](_0x342a4a),o[_0x3b234c(0x239)](()=>this[_0x3b234c(0x1b3)][_0x3b234c(0x180)](_0x342a4a));}[_0xcdd8a2(0x1fc)](_0x59aac0){const _0x137809=_0xcdd8a2;return this['_sharedOperations'][_0x137809(0x233)](_0x59aac0);}[_0xcdd8a2(0x1f0)](_0x35c34d){const _0x403f17=_0xcdd8a2;return Array[_0x403f17(0x217)](this[_0x403f17(0x1b3)])['map'](_0x562be2=>_0x562be2(_0x35c34d));}}var M=Object[_0xcdd8a2(0x17c)],P=(_0x2a7ee3,_0x537412,_0x3c9a4d,_0x14cc6f)=>{const _0x19cefd=_0xcdd8a2;for(var _0x4961b3=_0x14cc6f>0x1?void 0x0:_0x14cc6f?M(_0x537412,_0x3c9a4d):_0x537412,_0x5ef4dc=_0x2a7ee3[_0x19cefd(0x231)]-0x1,_0x12a7fc;_0x5ef4dc>=0x0;_0x5ef4dc--)(_0x12a7fc=_0x2a7ee3[_0x5ef4dc])&&(_0x4961b3=_0x12a7fc(_0x4961b3)||_0x4961b3);return _0x4961b3;},S=(_0x52a1bf,_0x3ca314)=>(_0x4accb8,_0x543c64)=>_0x3ca314(_0x4accb8,_0x543c64,_0x52a1bf);exports[_0xcdd8a2(0x245)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4e7ac7,_0x4ae347,_0x623e32){const _0x3558b7=_0xcdd8a2;super(),_(this,_0x3558b7(0x23d),new Map()),(this[_0x3558b7(0x207)]=_0x4e7ac7,this[_0x3558b7(0x1e2)]=_0x4ae347,this[_0x3558b7(0x216)]=_0x623e32,this['_init']());}async[_0xcdd8a2(0x17d)](_0xbc8110){const _0x31d992=_0xcdd8a2;return this[_0x31d992(0x23d)][_0x31d992(0x233)](_0xbc8110)||await this[_0x31d992(0x241)](_0xbc8110),this[_0x31d992(0x23d)]['get'](_0xbc8110);}[_0xcdd8a2(0x19c)](_0x4313b9){const _0x3299f9=_0xcdd8a2;var _0x3c3629;return(_0x3c3629=this[_0x3299f9(0x23d)][_0x3299f9(0x19f)](_0x4313b9))!=null?_0x3c3629:null;}[_0xcdd8a2(0x227)](){const _0x3bf809=_0xcdd8a2;this[_0x3bf809(0x207)]['getTypeOfUnitAdded$'](o[_0x3bf809(0x1a1)]['UNIVER_SHEET'])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))['subscribe'](async _0x7b0aea=>{const _0x5d0087=_0x3bf809,_0x1c63e3=_0x7b0aea['getUnitId']();this[_0x5d0087(0x23d)][_0x5d0087(0x233)](_0x1c63e3)||this[_0x5d0087(0x241)](_0x1c63e3);}),this[_0x3bf809(0x207)][_0x3bf809(0x215)](o[_0x3bf809(0x1a1)][_0x3bf809(0x242)])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))[_0x3bf809(0x240)](_0x23098c=>{const _0x5276dc=_0x3bf809,_0x25fa55=_0x23098c[_0x5276dc(0x1f7)](),_0x556ef0=this[_0x5276dc(0x23d)][_0x5276dc(0x19f)](_0x25fa55);_0x556ef0==null||_0x556ef0['dispose']();});}async[_0xcdd8a2(0x241)](_0x4c4d58){const _0x38e9f5=_0xcdd8a2,_0x246ad6=await this[_0x38e9f5(0x216)]['requireSession'](_0x4c4d58),_0x596623=this[_0x38e9f5(0x1e2)][_0x38e9f5(0x1e7)](exports[_0x38e9f5(0x20b)],_0x4c4d58,_0x246ad6);return _0x596623[_0x38e9f5(0x1b5)](),this['_entities'][_0x38e9f5(0x213)](_0x4c4d58,_0x596623),_0x596623;}},exports[_0xcdd8a2(0x245)]=P([S(0x0,o[_0xcdd8a2(0x18b)]),S(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),S(0x2,o[_0xcdd8a2(0x1c8)](b[_0xcdd8a2(0x1a4)]))],exports[_0xcdd8a2(0x245)]);var u=(_0x29e93d=>(_0x29e93d['OFFLINE']=_0xcdd8a2(0x187),_0x29e93d['IDLE']=_0xcdd8a2(0x1c0),_0x29e93d[_0xcdd8a2(0x203)]='following',_0x29e93d['NOT_FOLLOWING']=_0xcdd8a2(0x210),_0x29e93d[_0xcdd8a2(0x1f6)]=_0xcdd8a2(0x188),_0x29e93d))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0xcdd8a2(0x20b)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4b09f1,_0x1bedba,_0x219ece,_0x19f0b1,_0x2bbb84){const _0x790f96=_0xcdd8a2;super(),_(this,_0x790f96(0x238),new O[(_0x790f96(0x1ad))](_0x790f96(0x1c0))),_(this,_0x790f96(0x237),this['_status$'][_0x790f96(0x246)]()),_(this,_0x790f96(0x227),!0x1),_(this,_0x790f96(0x1bd),null),_(this,_0x790f96(0x22f),null),(this[_0x790f96(0x1ee)]=_0x4b09f1,this[_0x790f96(0x176)]=_0x1bedba,this[_0x790f96(0x1e6)]=_0x219ece,this['_liveShareService']=_0x19f0b1,this[_0x790f96(0x214)]=_0x2bbb84);}get[_0xcdd8a2(0x221)](){const _0x53ca4e=_0xcdd8a2;return this[_0x53ca4e(0x238)]['getValue']();}[_0xcdd8a2(0x1eb)](){const _0x2305ba=_0xcdd8a2;var _0x271ec4;(_0x271ec4=this['_commandDisposable'])==null||_0x271ec4[_0x2305ba(0x1eb)](),this[_0x2305ba(0x238)][_0x2305ba(0x22d)]('idle'),this[_0x2305ba(0x238)][_0x2305ba(0x206)]();}[_0xcdd8a2(0x1c6)](){const _0x453e4a=_0xcdd8a2;return this[_0x453e4a(0x221)];}[_0xcdd8a2(0x1b5)](){const _0x2805f0=_0xcdd8a2;this[_0x2805f0(0x227)]||(this[_0x2805f0(0x227)]=!0x0,this['_collabSession'][_0x2805f0(0x21c)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this[_0x2805f0(0x205)]))[_0x2805f0(0x240)](_0x709679=>{const _0x286e38=_0x2805f0;switch(_0x709679){case b[_0x286e38(0x20e)]['OFFLINE']:this[_0x286e38(0x175)]();break;case b[_0x286e38(0x20e)]['ONLINE']:this[_0x286e38(0x1e9)]();break;}}),this['_collabSession'][_0x2805f0(0x229)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this['dispose$']))[_0x2805f0(0x240)](_0x191481=>{const _0x1e589f=_0x2805f0,{eventID:_0x51aa9c}=_0x191481;switch(_0x51aa9c){case d['CollaborationEvent'][_0x1e589f(0x23a)]:this[_0x1e589f(0x199)](_0x191481);break;case d[_0x1e589f(0x1a7)][_0x1e589f(0x1f2)]:this[_0x1e589f(0x204)](_0x191481);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1e589f(0x225)]();break;case d[_0x1e589f(0x1a7)]['NEW_CHANGESETS']:this[_0x1e589f(0x18a)](_0x191481);break;}}));}[_0xcdd8a2(0x1c1)](){const _0x349814=_0xcdd8a2;this[_0x349814(0x176)][_0x349814(0x192)]({'eventID':d[_0x349814(0x1a7)][_0x349814(0x224)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x313393=_0xcdd8a2;this[_0x313393(0x221)]==='presenting'&&(this['_status$'][_0x313393(0x22d)](_0x313393(0x1c0)),this[_0x313393(0x176)][_0x313393(0x192)]({'eventID':d[_0x313393(0x1a7)][_0x313393(0x183)],'data':{'unitID':this['_unitID']}},this[_0x313393(0x1ee)]));}[_0xcdd8a2(0x1df)](){const _0x367438=_0xcdd8a2;this['_status']===_0x367438(0x210)&&(this[_0x367438(0x238)]['next'](_0x367438(0x20a)),this['_startFollowing']());}[_0xcdd8a2(0x1e8)](){const _0x2e7a51=_0xcdd8a2;this[_0x2e7a51(0x221)]===_0x2e7a51(0x20a)&&this[_0x2e7a51(0x1b9)]();}[_0xcdd8a2(0x199)](_0x496cbb){const _0x4b0d55=_0xcdd8a2,{presenter:_0x4c42bf}=_0x496cbb['data'],_0x4cafab=this['_collabSession'][_0x4b0d55(0x20c)]();this[_0x4b0d55(0x22f)]=_0x4c42bf,_0x4c42bf===_0x4cafab?(this[_0x4b0d55(0x1b9)](),this['_startPresenting']()):this[_0x4b0d55(0x221)]!==_0x4b0d55(0x210)&&(this[_0x4b0d55(0x1b1)](),this[_0x4b0d55(0x1c7)]());}[_0xcdd8a2(0x21a)](){const _0x201074=_0xcdd8a2,_0x3b62b9={'eventID':d[_0x201074(0x1a7)][_0x201074(0x198)]};this['_collabSession']['send'](_0x3b62b9,this['_unitID']);}[_0xcdd8a2(0x225)](){const _0x4f8620=_0xcdd8a2;this['_presenter']=null,this[_0x4f8620(0x221)]!==_0x4f8620(0x188)&&this[_0x4f8620(0x24c)]();}['_handleNewChangeSets'](_0x11c288){const _0x1bd34c=_0xcdd8a2;if(this[_0x1bd34c(0x221)]===_0x1bd34c(0x20a)&&this[_0x1bd34c(0x22f)]===_0x11c288[_0x1bd34c(0x19d)][_0x1bd34c(0x1d7)]){const _0x40b5cf=d[_0x1bd34c(0x195)](_0x11c288[_0x1bd34c(0x19d)])[_0x1bd34c(0x223)][_0x1bd34c(0x1d4)]()[_0x1bd34c(0x194)](_0x4982d1=>_0x4982d1['id']===C[_0x1bd34c(0x1e5)]['id']);if(_0x40b5cf){const _0x174d55=_0x40b5cf[_0x1bd34c(0x1b6)][_0x1bd34c(0x1bc)],_0x3c91f5=_0x40b5cf[_0x1bd34c(0x1b6)]['sheet']['id'];setTimeout(()=>{const _0x2b06a7=_0x1bd34c;this[_0x2b06a7(0x214)][_0x2b06a7(0x191)](C[_0x2b06a7(0x17b)]['id'],{'unitId':_0x174d55,'subUnitId':_0x3c91f5},{'fromCollab':!0x0});});}}}[_0xcdd8a2(0x19a)](){const _0x26097c=_0xcdd8a2;this[_0x26097c(0x238)][_0x26097c(0x22d)](_0x26097c(0x188));const _0xf3c9bb=new Map(),_0x5334c6=this[_0x26097c(0x1bd)]=new o['DisposableCollection']();_0x5334c6[_0x26097c(0x23c)](o[_0x26097c(0x239)](()=>{const _0x462b94=_0x26097c;_0xf3c9bb['forEach'](_0x1c93ca=>_0x1c93ca['complete']()),_0xf3c9bb[_0x462b94(0x1dd)]();})),_0x5334c6[_0x26097c(0x23c)](this['_commandService'][_0x26097c(0x218)](_0x3ac568=>{const _0x434714=_0x26097c;var _0x3f9b05;if(_0x3ac568[_0x434714(0x17f)]!==o['CommandType'][_0x434714(0x202)]||!this[_0x434714(0x236)]['shouldShareOperation'](_0x3ac568['id']))return;const {id:_0x40ef9b}=_0x3ac568;let _0xf365b5;_0xf3c9bb['has'](_0x40ef9b)?_0xf365b5=_0xf3c9bb[_0x434714(0x19f)](_0x40ef9b):(_0xf365b5=new O[(_0x434714(0x201))](),_0xf3c9bb[_0x434714(0x213)](_0x40ef9b,_0xf365b5),_0xf365b5[_0x434714(0x208)](I[_0x434714(0x24e)]((_0x3f9b05=this[_0x434714(0x1e6)]['getConfig'](k))!=null?_0x3f9b05:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33ec6b=>{const _0x45b3f9=_0x434714;this['_collabSession']['send']({'eventID':d[_0x45b3f9(0x1a7)][_0x45b3f9(0x1f2)],'data':{'unitID':this[_0x45b3f9(0x1ee)],'operations':{[_0x33ec6b['id']]:{'id':_0x33ec6b['id'],'params':JSON[_0x45b3f9(0x1c2)](_0x33ec6b[_0x45b3f9(0x1b6)])}}}},this['_unitID']);})),_0xf365b5[_0x434714(0x22d)](_0x3ac568);})),this[_0x26097c(0x236)][_0x26097c(0x1f0)](this[_0x26097c(0x1ee)])['forEach'](_0x33d259=>this[_0x26097c(0x176)]['send']({'eventID':d[_0x26097c(0x1a7)][_0x26097c(0x1f2)],'data':{'unitID':this[_0x26097c(0x1ee)],'operations':{[_0x33d259['id']]:{'id':_0x33d259['id'],'params':JSON[_0x26097c(0x1c2)](_0x33d259[_0x26097c(0x1b6)])}}}},this[_0x26097c(0x1ee)]));}[_0xcdd8a2(0x1b1)](){const _0x12f673=_0xcdd8a2;var _0x3d7caa;this[_0x12f673(0x238)][_0x12f673(0x22d)](_0x12f673(0x1c0)),(_0x3d7caa=this['_commandDisposable'])==null||_0x3d7caa[_0x12f673(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1c7)](){const _0x5f4473=_0xcdd8a2;var _0x3882d7;(_0x3882d7=this[_0x5f4473(0x1bd)])==null||_0x3882d7[_0x5f4473(0x1eb)](),this['_status$'][_0x5f4473(0x22d)]('following');}[_0xcdd8a2(0x24c)](){const _0x39c24c=_0xcdd8a2;var _0x5cb60b;this[_0x39c24c(0x238)]['next'](_0x39c24c(0x1c0)),(_0x5cb60b=this['_commandDisposable'])==null||_0x5cb60b[_0x39c24c(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1b9)](){const _0x1b70fd=_0xcdd8a2;var _0x3abc2c;this[_0x1b70fd(0x238)][_0x1b70fd(0x22d)]('not-following'),(_0x3abc2c=this[_0x1b70fd(0x1bd)])==null||_0x3abc2c['dispose']();}['_handleOperation'](_0x36cb84){const _0x2a8764=_0xcdd8a2;if([_0x2a8764(0x188),_0x2a8764(0x210),_0x2a8764(0x187)]['includes'](this[_0x2a8764(0x221)])||!_0x36cb84['data'][_0x2a8764(0x247)]||_0x36cb84[_0x2a8764(0x19d)][_0x2a8764(0x247)]===this[_0x2a8764(0x176)][_0x2a8764(0x20c)]())return;this[_0x2a8764(0x221)]===_0x2a8764(0x1c0)&&this['_startFollowing']();const _0x2c3793=_0x36cb84[_0x2a8764(0x19d)]['operations'];Object[_0x2a8764(0x1a0)](_0x2c3793)[_0x2a8764(0x212)](_0x2be51c=>{const _0x53e01=_0x2a8764;this[_0x53e01(0x214)][_0x53e01(0x191)](_0x2be51c['id'],_0x2be51c[_0x53e01(0x1b6)]?JSON[_0x53e01(0x23b)](_0x2be51c[_0x53e01(0x1b6)]):null,{'fromCollab':!0x0});});}[_0xcdd8a2(0x175)](){const _0x5cd9cb=_0xcdd8a2;var _0x34f9b6;this[_0x5cd9cb(0x238)]['next'](_0x5cd9cb(0x187)),(_0x34f9b6=this[_0x5cd9cb(0x1bd)])==null||_0x34f9b6[_0x5cd9cb(0x1eb)]();}[_0xcdd8a2(0x1e9)](){const _0x2f3706=_0xcdd8a2;this[_0x2f3706(0x238)][_0x2f3706(0x22d)](_0x2f3706(0x1c0)),this[_0x2f3706(0x21a)]();}},exports[_0xcdd8a2(0x20b)]=P([S(0x2,o[_0xcdd8a2(0x1f9)]),S(0x3,o[_0xcdd8a2(0x1c8)](E)),S(0x4,o[_0xcdd8a2(0x249)])],exports['LiveShareCoordinator']);function $(){const _0x9c893b=_0xcdd8a2,_0x2de4d2=p[_0x9c893b(0x222)](exports['LiveShareController']),_0x159d34=p[_0x9c893b(0x222)](o[_0x9c893b(0x18b)]),_0x409099=p[_0x9c893b(0x1f5)](()=>_0x159d34[_0x9c893b(0x1c9)](o['UniverInstanceType'][_0x9c893b(0x242)]),void 0x0,!0x1,[]),[_0xcd012d,_0x1df929]=v[_0x9c893b(0x19b)](null),[_0x1b1b25,_0x3f00fa]=v[_0x9c893b(0x19b)](u['IDLE']),_0x2a95bb=v['useRef'](null);return v[_0x9c893b(0x1fe)](()=>(_0x409099&&_0x2de4d2[_0x9c893b(0x17d)](_0x409099[_0x9c893b(0x1f7)]())['then'](_0x4d2896=>{const _0x17348c=_0x9c893b;_0x1df929(_0x4d2896),_0x2a95bb[_0x17348c(0x1ae)]=_0x4d2896['status$']['subscribe'](_0x3091e9=>{_0x3f00fa(_0x3091e9);});}),()=>{const _0x4218c2=_0x9c893b;var _0x4ea2ce;(_0x4ea2ce=_0x2a95bb[_0x4218c2(0x1ae)])==null||_0x4ea2ce['unsubscribe'](),_0x2a95bb[_0x4218c2(0x1ae)]=null;}),[_0x409099,_0x2de4d2]),_0xcd012d?l[_0x9c893b(0x1bf)](f[_0x9c893b(0x1dc)],{'align':_0x9c893b(0x21d),'disabled':_0x1b1b25===u[_0x9c893b(0x1c3)],'className':_0x9c893b(0x17e),'overlay':l['jsx'](W,{'status':_0x1b1b25,'coordinator':_0xcd012d}),'children':l['jsx']('button',{'className':f['clsx'](_0x9c893b(0x1cf),{'univer-cursor-not-allowed':_0x1b1b25===u[_0x9c893b(0x1c3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b1b25!==u[_0x9c893b(0x1c3)]}),'type':_0x9c893b(0x1ca),'children':l[_0x9c893b(0x1bf)](R,{'className':_0x9c893b(0x21f)})})}):null;}function W(_0x26d05d){const _0x520b4a=_0xcdd8a2,{status:_0x3f03a7,coordinator:_0x469855}=_0x26d05d;switch(_0x3f03a7){case u[_0x520b4a(0x178)]:return l[_0x520b4a(0x1bf)](G,{'coordinator':_0x469855});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x469855});case u[_0x520b4a(0x177)]:return l['jsx'](Y,{'coordinator':_0x469855});case u[_0x520b4a(0x1c3)]:return l[_0x520b4a(0x1bf)](J,{});case u[_0x520b4a(0x1f6)]:return l[_0x520b4a(0x1bf)](Z,{'coordinator':_0x469855});default:return null;}}function G(_0x362a07){const _0x39948f=_0xcdd8a2,{coordinator:_0x1247e}=_0x362a07;return l[_0x39948f(0x18d)](l['Fragment'],{'children':[l['jsx'](_0x39948f(0x1b8),{'className':_0x39948f(0x1c4),'children':'Present\x20this\x20document'}),l['jsx'](f[_0x39948f(0x1d0)],{'onClick':()=>_0x1247e['tryStartPresenting'](),'children':_0x39948f(0x244)})]});}function _0x247a(_0x1da54b,_0x390ce4){_0x1da54b=_0x1da54b-0x175;const _0x10bbcf=_0x10bb();let _0x247a1f=_0x10bbcf[_0x1da54b];return _0x247a1f;}function _0x10bb(){const _0x48ffa4=['defineProperty','jsxs','You\x27re\x20presenting\x20the\x20document','idSuffix','http://www.w3.org/2000/svg','executeCommand','send','map','find','parseProtocolChangeset','_sharedOperations','use','LIVESHARE_FETCH_OPERATIONS','_handleNewHost','_startPresenting','useState','getLiveShareCoordinatorSync','data','1424mHwNUd','get','values','UniverInstanceType','currentColor','evenodd','CollaborationSessionService','UNIVER_UNKNOWN','path','CollaborationEvent','attrs','114687SZAoGv','RxDisposable','Stop\x20following','_uiPartsService','BehaviorSubject','current','_config','pluginName','_stopPresenting','useRef','_reporters','1em','init','params','string','div','_stopFollowing','children','mask','unitId','_commandDisposable','Module','jsx','idle','tryStartPresenting','stringify','OFFLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','Injector','getStatus','_startFollowing','Inject','getCurrentTypeOfUnit$','button','BuiltInUIPart','override','IUIPartsService','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','connectInjector','fill','DesktopLiveShareController','reverse','HEADER_MENU','disposeWithMe','memberID','createElement','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','UniverCollaborationClientPlugin','0\x200\x2017\x2017','Dropdown','clear','Start\x20following','startFollowing','429402VrPBiv','onRendered','_injector','1414UWAATi','4GNvuSl','InsertSheetMutation','_configService','createInstance','stopFollowing','_handleOnline','LiveShare','dispose','entries','360600atMUcl','_unitID','defIds','getInitialStates','forwardRef','LIVESHARE_OPERATION','registerInitialStateReporter','registerSharedOperation','useObservable','PRESENTING','getUnitId','merge','IConfigService','displayName','toStringTag','shouldShareOperation','tag','useEffect','random','symbol','Subject','OPERATION','FOLLOWING','_handleOperation','dispose$','complete','_univerInstanceService','pipe','touchDependencies','following','LiveShareCoordinator','getMemberID','_mountLiveShare','SessionStatus','UniverIcon','not-following','registerComponent','forEach','set','_commandService','getTypeOfUnitDisposed$','_collabSessionService','from','onCommandExecuted','replace','_fetchOperations','LiveShareIcon','sessionStatus$','end','toString','univer-size-4','UniverLiveSharePlugin','_status','useDependency','mutations','LIVESHARE_REQUEST_HOST','_handleTerminate','mergeOverrideWithDependencies','_init','trim','event$','You\x27re\x20not\x20following\x20the\x20presenter','svg','assign','next','Fragment','_presenter','828205IZveJU','length','includes','has','UNIVER_LIVE_SHARE_PLUGIN','default','_liveShareService','status$','_status$','toDisposable','LIVESHARE_NEW_HOST','parse','add','_entities','substring','defs','subscribe','_startLiveShareCoordinator','UNIVER_SHEET','3832jaUbik','Start','LiveShareController','asObservable','presenter','338obyhas','ICommandService','setConfig','You\x27re\x20following\x20the\x20presenter','_beIdle','DependentOn','throttleTime','_handleOffline','_collabSession','NOT_FOLLOWING','IDLE','takeUntil','xlink:href','SetWorksheetActiveOperation','getOwnPropertyDescriptor','getLiveShareCoordinator','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','type','delete','Plugin','393700GmzJRT','LIVESHARE_TERMINATE','registerDependencies','colorChannel1','LiveShareService','offline','presenting','SetZoomRatioOperation','_handleNewChangeSets','IUniverInstanceService'];_0x10bb=function(){return _0x48ffa4;};return _0x10bb();}function B(_0x9802bb){const _0x396968=_0xcdd8a2,{coordinator:_0x1d857d}=_0x9802bb;return l['jsxs'](l[_0x396968(0x22e)],{'children':[l['jsx'](_0x396968(0x1b8),{'className':_0x396968(0x1c4),'children':_0x396968(0x24b)}),l[_0x396968(0x1bf)](f['Button'],{'onClick':()=>_0x1d857d[_0x396968(0x1e8)](),'children':_0x396968(0x1ab)})]});}function Y(_0x3d8d1f){const _0x593a09=_0xcdd8a2,{coordinator:_0x1cf094}=_0x3d8d1f;return l['jsxs'](l[_0x593a09(0x22e)],{'children':[l[_0x593a09(0x1bf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x593a09(0x22a)}),l[_0x593a09(0x1bf)](f[_0x593a09(0x1d0)],{'variant':'text','onClick':()=>_0x1cf094[_0x593a09(0x1df)](),'children':_0x593a09(0x1de)})]});}function Z(_0x4e4a70){const _0x4867a7=_0xcdd8a2,{coordinator:_0x13621a}=_0x4e4a70;return l['jsxs'](l[_0x4867a7(0x22e)],{'children':[l[_0x4867a7(0x1bf)](_0x4867a7(0x1b8),{'className':_0x4867a7(0x1c4),'children':_0x4867a7(0x18e)}),l[_0x4867a7(0x1bf)](f[_0x4867a7(0x1d0)],{'variant':_0x4867a7(0x235),'onClick':()=>_0x13621a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x4f376b=_0xcdd8a2;return l[_0x4f376b(0x1bf)](l[_0x4f376b(0x22e)],{'children':'You\x27are\x20offline.'});}var K=Object[_0xcdd8a2(0x17c)],z=(_0x48da8f,_0x4944d9,_0x2af6a2,_0x17efd6)=>{const _0x3bb2e2=_0xcdd8a2;for(var _0x10a9e7=_0x17efd6>0x1?void 0x0:_0x17efd6?K(_0x4944d9,_0x2af6a2):_0x4944d9,_0x12b581=_0x48da8f[_0x3bb2e2(0x231)]-0x1,_0x52152a;_0x12b581>=0x0;_0x12b581--)(_0x52152a=_0x48da8f[_0x12b581])&&(_0x10a9e7=_0x52152a(_0x10a9e7)||_0x10a9e7);return _0x10a9e7;},L=(_0x4d4274,_0xa4f9b2)=>(_0xf95da2,_0x5d2684)=>_0xa4f9b2(_0xf95da2,_0x5d2684,_0x4d4274);exports[_0xcdd8a2(0x1d3)]=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2ed776,_0x5d211f){const _0x4cf390=_0xcdd8a2;super(),this[_0x4cf390(0x1e2)]=_0x2ed776,this[_0x4cf390(0x1ac)]=_0x5d211f,this[_0x4cf390(0x20d)]();}[_0xcdd8a2(0x20d)](){const _0x572833=_0xcdd8a2;this[_0x572833(0x1d6)](this[_0x572833(0x1ac)][_0x572833(0x211)](p[_0x572833(0x1cb)][_0x572833(0x1d5)],()=>p[_0x572833(0x1d1)]($,this[_0x572833(0x1e2)])));}},exports[_0xcdd8a2(0x1d3)]=z([L(0x0,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),L(0x1,p[_0xcdd8a2(0x1cd)])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x4f32c2,_0x44b434,_0x4e8a6d,_0x5d8b01)=>{const _0x4725f7=_0xcdd8a2;for(var _0x5191b5=_0x5d8b01>0x1?void 0x0:_0x5d8b01?X(_0x44b434,_0x4e8a6d):_0x44b434,_0x27bc2c=_0x4f32c2[_0x4725f7(0x231)]-0x1,_0x980afd;_0x27bc2c>=0x0;_0x27bc2c--)(_0x980afd=_0x4f32c2[_0x27bc2c])&&(_0x5191b5=_0x980afd(_0x5191b5)||_0x5191b5);return _0x5191b5;},te=(_0x76b548,_0x4afe5c)=>(_0x308fa3,_0x560b76)=>_0x4afe5c(_0x308fa3,_0x560b76,_0x76b548);let m=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2a359d){const _0xeba375=_0xcdd8a2;super(),this[_0xeba375(0x236)]=_0x2a359d,this['_init']();}['_init'](){const _0x57a7c1=_0xcdd8a2;[D[_0x57a7c1(0x189)]['id'],D['SetScrollOperation']['id'],C[_0x57a7c1(0x17b)]['id']][_0x57a7c1(0x212)](_0x159fbb=>{const _0x3a6019=_0x57a7c1;this['disposeWithMe'](this[_0x3a6019(0x236)][_0x3a6019(0x1f4)](_0x159fbb));});}};m=ee([te(0x0,o[_0xcdd8a2(0x1c8)](E))],m);var ie=Object[_0xcdd8a2(0x18c)],se=Object[_0xcdd8a2(0x17c)],ne=(_0x56fe7f,_0x58a06e,_0x1d5f5d)=>_0x58a06e in _0x56fe7f?ie(_0x56fe7f,_0x58a06e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5f5d}):_0x56fe7f[_0x58a06e]=_0x1d5f5d,re=(_0x3ab5c4,_0x41ef58,_0x35b8e5,_0x39c52f)=>{for(var _0x5a86ce=_0x39c52f>0x1?void 0x0:_0x39c52f?se(_0x41ef58,_0x35b8e5):_0x41ef58,_0x14dc44=_0x3ab5c4['length']-0x1,_0x4bbced;_0x14dc44>=0x0;_0x14dc44--)(_0x4bbced=_0x3ab5c4[_0x14dc44])&&(_0x5a86ce=_0x4bbced(_0x5a86ce)||_0x5a86ce);return _0x5a86ce;},N=(_0x161715,_0x1715a3)=>(_0x2a9893,_0x4997b8)=>_0x1715a3(_0x2a9893,_0x4997b8,_0x161715),A=(_0x36a0be,_0x40dbd0,_0x22c838)=>ne(_0x36a0be,typeof _0x40dbd0!='symbol'?_0x40dbd0+'':_0x40dbd0,_0x22c838);const oe=_0xcdd8a2(0x234);exports['UniverLiveSharePlugin']=class extends o[_0xcdd8a2(0x181)]{constructor(_0x4c9ff8=w,_0x367f4b,_0x17e011){const _0x3fbe4d=_0xcdd8a2;super(),this[_0x3fbe4d(0x1af)]=_0x4c9ff8,this[_0x3fbe4d(0x1e2)]=_0x367f4b,this[_0x3fbe4d(0x1e6)]=_0x17e011;const {..._0x3125c9}=o[_0x3fbe4d(0x1f8)]({},w,this[_0x3fbe4d(0x1af)]);this[_0x3fbe4d(0x1e6)][_0x3fbe4d(0x24a)](Q,_0x3125c9);}['onStarting'](){const _0x172014=_0xcdd8a2;o[_0x172014(0x184)](this[_0x172014(0x1e2)],o[_0x172014(0x226)]([[E],[exports['LiveShareController']],[m],[exports[_0x172014(0x1d3)]]],this[_0x172014(0x1af)][_0x172014(0x1cc)])),o['touchDependencies'](this[_0x172014(0x1e2)],[[m]]);}[_0xcdd8a2(0x1e1)](){const _0x513faa=_0xcdd8a2;o[_0x513faa(0x209)](this[_0x513faa(0x1e2)],[[exports[_0x513faa(0x1d3)]]]);}},A(exports[_0xcdd8a2(0x220)],'type',o[_0xcdd8a2(0x1a1)][_0xcdd8a2(0x1a5)]),A(exports[_0xcdd8a2(0x220)],_0xcdd8a2(0x1b0),oe),exports[_0xcdd8a2(0x220)]=re([o[_0xcdd8a2(0x24d)](b[_0xcdd8a2(0x1da)]),N(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),N(0x2,o[_0xcdd8a2(0x1f9)])],exports[_0xcdd8a2(0x220)]),exports[_0xcdd8a2(0x1ea)]=$,exports[_0xcdd8a2(0x186)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x571f(){const _0x2fbe56=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18SFLRUn','54qplNdb','extend','LiveShareStatusEnum','IDLE','tryStartPresenting','1910900EeGIkZ','stopFollowing','getActiveSheet','getStatus','startFollowing','2748163dgQCaB','PRESENTING','_injector','4673781HJElQr','executeCommand','getLiveShareCoordinatorSync','2974672RSYiYd','10JxqPkj','536622GrCFBV','getSheetId','startRow','getUnitId','8913336INbwqk','getId','_commandService','41692asRSlr','6ZNgyrA','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting','get','2cKGIjO','getActiveWorkbook'];_0x571f=function(){return _0x2fbe56;};return _0x571f();}const _0x79a651=_0x53b0;(function(_0x4fcfdf,_0x31312f){const _0x5cebe7=_0x53b0,_0x4541f2=_0x4fcfdf();while(!![]){try{const _0x218c8f=-parseInt(_0x5cebe7(0x161))/0x1*(parseInt(_0x5cebe7(0x16e))/0x2)+-parseInt(_0x5cebe7(0x172))/0x3*(-parseInt(_0x5cebe7(0x168))/0x4)+parseInt(_0x5cebe7(0x154))/0x5*(parseInt(_0x5cebe7(0x169))/0x6)+parseInt(_0x5cebe7(0x15c))/0x7+-parseInt(_0x5cebe7(0x15f))/0x8*(parseInt(_0x5cebe7(0x171))/0x9)+parseInt(_0x5cebe7(0x160))/0xa*(-parseInt(_0x5cebe7(0x159))/0xb)+parseInt(_0x5cebe7(0x165))/0xc;if(_0x218c8f===_0x31312f)break;else _0x4541f2['push'](_0x4541f2['shift']());}catch(_0x37dcb2){_0x4541f2['push'](_0x4541f2['shift']());}}}(_0x571f,0x6de54));import{LiveShareController as _0x55af9f,LiveShareStatus as _0x3533f8}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a4873}from'@univerjs/engine-render';function _0x53b0(_0x2493f7,_0x3baac6){_0x2493f7=_0x2493f7-0x152;const _0x571fe5=_0x571f();let _0x53b086=_0x571fe5[_0x2493f7];return _0x53b086;}import{SetWorksheetActiveOperation as _0x5c83dd}from'@univerjs/sheets';import{SetScrollOperation as _0x40817b}from'@univerjs/sheets-ui';import{FRange as _0x4fa1a3}from'@univerjs/sheets/facade';import{FUniver as _0x5c5814,FEnum as _0x54a6aa}from'@univerjs/core/facade';class I extends _0x4fa1a3{['_initialize'](_0x1f6ef1,_0x1d53fd,_0x771944,_0x23b5b3,_0x4161d7){const _0x57c640=_0x53b0,_0x487400=_0x1f6ef1[_0x57c640(0x16d)](_0x55af9f),_0x1acfaa=_0x1f6ef1[_0x57c640(0x16d)](_0x2a4873),_0x1be079=_0x1d53fd[_0x57c640(0x164)](),_0x4279a5=_0x1d53fd[_0x57c640(0x156)](),_0x4ad478=_0x487400[_0x57c640(0x15e)](_0x1be079);(_0x4ad478==null?void 0x0:_0x4ad478[_0x57c640(0x157)]())!==_0x3533f8[_0x57c640(0x15a)]||(_0x771944[_0x57c640(0x162)]()!==_0x4279a5['getSheetId']()&&this[_0x57c640(0x167)][_0x57c640(0x15d)](_0x5c83dd['id'],{'unitId':_0x1be079,'subUnitId':_0x771944[_0x57c640(0x162)]()}),!_0x1acfaa['getRenderById'](_0x1be079))||_0x4161d7['syncExecuteCommand'](_0x40817b['id'],{'unitId':_0x1d53fd[_0x57c640(0x164)](),'sheetId':_0x771944[_0x57c640(0x162)](),'sheetViewStartRow':_0x23b5b3[_0x57c640(0x163)],'sheetViewStartColumn':_0x23b5b3['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4fa1a3['extend'](I);class m extends _0x5c5814{['getLiveShareStatus'](){const _0x25436d=_0x53b0;var _0x5b9f61,_0x30dcb6;const _0x31f781=this[_0x25436d(0x15b)]['get'](_0x55af9f),_0x1b4084=(_0x5b9f61=this[_0x25436d(0x16f)]())==null?void 0x0:_0x5b9f61[_0x25436d(0x166)]();if(!_0x1b4084)throw new Error(_0x25436d(0x16b));const _0x346099=_0x31f781[_0x25436d(0x15e)](_0x1b4084);return(_0x30dcb6=_0x346099==null?void 0x0:_0x346099[_0x25436d(0x157)]())!=null?_0x30dcb6:_0x3533f8[_0x25436d(0x152)];}[_0x79a651(0x158)](){const _0x2dead6=_0x79a651;var _0x58abe3;const _0x580abc=this[_0x2dead6(0x15b)]['get'](_0x55af9f),_0x580a2d=(_0x58abe3=this[_0x2dead6(0x16f)]())==null?void 0x0:_0x58abe3[_0x2dead6(0x166)]();if(!_0x580a2d)throw new Error(_0x2dead6(0x16b));const _0x33dc85=_0x580abc[_0x2dead6(0x15e)](_0x580a2d);if(!_0x33dc85)throw new Error(_0x2dead6(0x170));_0x33dc85['startFollowing']();}[_0x79a651(0x155)](){const _0x5b3232=_0x79a651;var _0x462738;const _0x36c356=this[_0x5b3232(0x15b)][_0x5b3232(0x16d)](_0x55af9f),_0x345d0a=(_0x462738=this[_0x5b3232(0x16f)]())==null?void 0x0:_0x462738[_0x5b3232(0x166)]();if(!_0x345d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x573141=_0x36c356[_0x5b3232(0x15e)](_0x345d0a);if(!_0x573141)throw new Error(_0x5b3232(0x170));_0x573141[_0x5b3232(0x155)]();}[_0x79a651(0x16c)](){const _0x5e04c5=_0x79a651;var _0x3df80f;const _0x468a35=this['_injector'][_0x5e04c5(0x16d)](_0x55af9f),_0x415646=(_0x3df80f=this['getActiveWorkbook']())==null?void 0x0:_0x3df80f[_0x5e04c5(0x166)]();if(!_0x415646)throw new Error(_0x5e04c5(0x16b));const _0x18f111=_0x468a35[_0x5e04c5(0x15e)](_0x415646);if(!_0x18f111)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f111[_0x5e04c5(0x153)]();}[_0x79a651(0x16a)](){const _0x5728cd=_0x79a651;var _0x19c8d6;const _0x5af450=this['_injector'][_0x5728cd(0x16d)](_0x55af9f),_0x281a79=(_0x19c8d6=this[_0x5728cd(0x16f)]())==null?void 0x0:_0x19c8d6[_0x5728cd(0x166)]();if(!_0x281a79)throw new Error('No\x20active\x20workbook\x20found.');const _0x111972=_0x5af450[_0x5728cd(0x15e)](_0x281a79);if(!_0x111972)throw new Error(_0x5728cd(0x170));_0x111972[_0x5728cd(0x16a)]();}}_0x5c5814['extend'](m);class C extends _0x54a6aa{get[_0x79a651(0x174)](){return _0x3533f8;}}_0x54a6aa[_0x79a651(0x173)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x124796=_0x2c86;(function(_0x3dd598,_0x3a3c83){const _0xae29ca=_0x2c86,_0x50c085=_0x3dd598();while(!![]){try{const _0x40e179=parseInt(_0xae29ca(0x111))/0x1+parseInt(_0xae29ca(0x17c))/0x2+parseInt(_0xae29ca(0x122))/0x3+-parseInt(_0xae29ca(0x12d))/0x4+-parseInt(_0xae29ca(0x109))/0x5+parseInt(_0xae29ca(0x115))/0x6+-parseInt(_0xae29ca(0xf9))/0x7;if(_0x40e179===_0x3a3c83)break;else _0x50c085['push'](_0x50c085['shift']());}catch(_0x3e2efc){_0x50c085['push'](_0x50c085['shift']());}}}(_0x37cf,0x2e03d));function _0x2c86(_0x1ce7ab,_0x1bba39){_0x1ce7ab=_0x1ce7ab-0xd7;const _0x37cf3c=_0x37cf();let _0x2c864a=_0x37cf3c[_0x1ce7ab];return _0x2c864a;}var J=Object[_0x124796(0x138)],K=(_0x477a5a,_0x14fe6f,_0xc44cce)=>_0x14fe6f in _0x477a5a?J(_0x477a5a,_0x14fe6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc44cce}):_0x477a5a[_0x14fe6f]=_0xc44cce,u=(_0x25ec78,_0x19c868,_0x33d8e5)=>K(_0x25ec78,typeof _0x19c868!=_0x124796(0x16d)?_0x19c868+'':_0x19c868,_0x33d8e5);import{Disposable as _0x6d8bc5,toDisposable as _0x398eff,IUniverInstanceService as _0x439877,Inject as _0xf32bc,Injector as _0x4813b0,IConfigService as _0x25e87d,ICommandService as _0x2fee39,RxDisposable as _0x7ce4af,UniverInstanceType as _0x25a426,DisposableCollection as _0x274869,CommandType as _0x43ff22,DependentOn as _0x144947,Plugin as _0xc55cf5,merge as _0x1b3366,registerDependencies as _0x1e72fe,mergeOverrideWithDependencies as _0x592dcd,touchDependencies as _0x1012e4}from'@univerjs/core';import{useDependency as _0x2b18f8,useObservable as _0x5d89ee,IUIPartsService as _0x478479,BuiltInUIPart as _0x1c14fe,connectInjector as _0x10e3da}from'@univerjs/ui';import{jsx as _0x23b3a7,jsxs as _0x25b971,Fragment as _0x22f41e}from'react/jsx-runtime';import{Dropdown as _0x36bd65,clsx as _0x10333b,Button as _0x14fb40}from'@univerjs/design';import{useRef as _0x39428b,createElement as _0x1edef1,forwardRef as _0x1a98e5,useState as _0x308496,useEffect as _0x104b05}from'react';import{CollaborationEvent as _0x248419,parseProtocolChangeset as _0x5bbb91}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x27b141,SessionStatus as _0x4ea729,UniverCollaborationClientPlugin as _0x164bb6}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4719ca,SetWorksheetActiveOperation as _0x404888}from'@univerjs/sheets';import{BehaviorSubject as _0x3bb74f,Subject as _0x169f7c}from'rxjs';import{takeUntil as _0x3cb157,throttleTime as _0x6b2616}from'rxjs/operators';import{SetZoomRatioOperation as _0x10eab9,SetScrollOperation as _0x3dcd5e}from'@univerjs/sheets-ui';function k({ref:_0x589ee7,..._0x1795e1}){const _0x4df70a=_0x124796,{icon:_0x51b7cb,id:_0x3c2941,className:_0x416fa0,extend:_0x34a0eb,..._0x10540b}=_0x1795e1,_0x29ed7f=(_0x4df70a(0x12f)+_0x3c2941+'\x20'+(_0x416fa0||''))[_0x4df70a(0x14a)](),_0xfc14b3=_0x39428b('_'+Oe());return G(_0x51b7cb,''+_0x3c2941,{'defIds':_0x51b7cb[_0x4df70a(0x116)],'idSuffix':_0xfc14b3['current']},{'ref':_0x589ee7,'className':_0x29ed7f,..._0x10540b},_0x34a0eb);}function G(_0x46e649,_0x2e5585,_0x70f7f5,_0x234dd9,_0x39cadb){const _0x2dcaaa=_0x124796;return _0x1edef1(_0x46e649['tag'],{'key':_0x2e5585,...be(_0x46e649,_0x70f7f5,_0x39cadb),..._0x234dd9},(Ee(_0x46e649,_0x70f7f5)[_0x2dcaaa(0x14e)]||[])[_0x2dcaaa(0x10a)]((_0x2cacd9,_0x35eda1)=>G(_0x2cacd9,_0x2e5585+'-'+_0x46e649[_0x2dcaaa(0x148)]+'-'+_0x35eda1,_0x70f7f5,void 0x0,_0x39cadb)));}function be(_0x415b10,_0x5f5cc6,_0xaea2ce){const _0x4cc6a9=_0x124796,_0x43453b={..._0x415b10['attrs']};_0xaea2ce!=null&&_0xaea2ce['colorChannel1']&&_0x43453b[_0x4cc6a9(0x150)]===_0x4cc6a9(0x129)&&(_0x43453b[_0x4cc6a9(0x150)]=_0xaea2ce[_0x4cc6a9(0x129)]),_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0x125)&&_0x43453b['id']&&(_0x43453b['id']=_0x43453b['id']+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0xbae202,_0x45ea15])=>{const _0x33f547=_0x4cc6a9;_0xbae202===_0x33f547(0x125)&&typeof _0x45ea15=='string'&&(_0x43453b[_0xbae202]=_0x45ea15[_0x33f547(0x137)](/url\(#(.*)\)/,_0x33f547(0x14c)+_0x5f5cc6[_0x33f547(0x136)]+')'));});const {defIds:_0x2ca9fb}=_0x5f5cc6;return!_0x2ca9fb||_0x2ca9fb['length']===0x0||(_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0xdf)&&_0x43453b[_0x4cc6a9(0x157)]&&(_0x43453b['xlink:href']=_0x43453b[_0x4cc6a9(0x157)]+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0x9deb30,_0x18552c])=>{const _0x28ac90=_0x4cc6a9;typeof _0x18552c==_0x28ac90(0x162)&&(_0x43453b[_0x9deb30]=_0x18552c[_0x28ac90(0x137)](/url\(#(.*)\)/,_0x28ac90(0x14c)+_0x5f5cc6['idSuffix']+')'));})),_0x43453b;}function Ee(_0x40e941,_0x47f8c3){const _0x15a319=_0x124796;var _0x46cfcd;const {defIds:_0x141e94}=_0x47f8c3;return!_0x141e94||_0x141e94[_0x15a319(0x100)]===0x0?_0x40e941:_0x40e941['tag']===_0x15a319(0x15c)&&((_0x46cfcd=_0x40e941[_0x15a319(0x14e)])!=null&&_0x46cfcd[_0x15a319(0x100)])?{..._0x40e941,'children':_0x40e941['children'][_0x15a319(0x10a)](_0x15b8db=>typeof _0x15b8db['attrs']['id']==_0x15a319(0x162)&&_0x141e94&&_0x141e94['includes'](_0x15b8db['attrs']['id'])?{..._0x15b8db,'attrs':{..._0x15b8db[_0x15a319(0x179)],'id':_0x15b8db[_0x15a319(0x179)]['id']+_0x47f8c3[_0x15a319(0x136)]}}:_0x15b8db)}:_0x40e941;}function Oe(){const _0x4497f1=_0x124796;return Math[_0x4497f1(0x131)]()[_0x4497f1(0x141)](0x24)[_0x4497f1(0x139)](0x2,0x8);}k[_0x124796(0x102)]=_0x124796(0xf4);const we={'tag':_0x124796(0x124),'attrs':{'xmlns':_0x124796(0xe9),'fill':_0x124796(0x165),'viewBox':_0x124796(0x10c),'width':_0x124796(0x151),'height':_0x124796(0x151)},'children':[{'tag':_0x124796(0xe4),'attrs':{'fill':'currentColor','d':_0x124796(0x132)}},{'tag':_0x124796(0xe4),'attrs':{'fill':_0x124796(0x12e),'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':_0x124796(0x153),'clipRule':'evenodd'}}]},W=_0x1a98e5(function(_0x336af4,_0x1bdc1f){const _0x5f2538=_0x124796;return _0x1edef1(k,Object[_0x5f2538(0x15a)]({},_0x336af4,{'id':_0x5f2538(0x155),'ref':_0x1bdc1f,'icon':we}));});function _0x37cf(){const _0x2059aa=['0\x200\x2017\x2017','set','_config','_handleOffline','operations','112124ZJLCOO','parse','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','915600DXClem','defIds','find','registerInitialStateReporter','tryStartPresenting','getValue','PRESENTING','pipe','getMemberID','pluginName','You\x27re\x20not\x20following\x20the\x20presenter','has','_handleOperation','724671tEjCUZ','override','svg','mask','_injector','You\x27are\x20offline.','OFFLINE','colorChannel1','IDLE','default','_commandService','32424DKMVSz','currentColor','univerjs-icon\x20univerjs-icon-','get','random','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','registerSharedOperation','_startPresenting','_handleOnline','idSuffix','replace','defineProperty','substring','getTypeOfUnitAdded$','_handleNewChangeSets','unitId','dispose$','_univerInstanceService','setConfig','stopFollowing','toString','includes','following','asObservable','getLiveShareCoordinator','_configService','sessionStatus$','tag','You\x27re\x20following\x20the\x20presenter','trim','_handleTerminate','url(#$1','presenting','children','_entities','fill','1em','values','evenodd','memberID','live-share-icon','delete','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','assign','data','defs','You\x27re\x20presenting\x20the\x20document','_unitID','_status','_init','_fetchOperations','string','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','none','_liveShareService','_status$','text','subscribe','_presenter','button','reverse','symbol','getUnitId','Start\x20following','stringify','getConfig','mutations','onRendered','disposeWithMe','startFollowing','SAME_OPERATION_SHARE_INTERVAL','next','entries','attrs','_startLiveShareCoordinator','live-share.config','149756tyixUO','_mountLiveShare','NOT_FOLLOWING','_commandDisposable','_startFollowing','getTypeOfUnitDisposed$','Stop\x20presenting','NEW_CHANGESETS','_stopFollowing','LIVESHARE_NEW_HOST','div','presenter','createInstance','from','LIVESHARE_OPERATION','use','_stopPresenting','_sharedOperations','_collabSession','current','path','_uiPartsService','_handleNewHost','send','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','not-following','LIVESHARE_TERMINATE','dispose','_reporters','type','UNIVER_SHEET','_collabSessionService','Start','getCurrentTypeOfUnit$','init','UniverIcon','params','onCommandExecuted','registerComponent','getInitialStates','1175664UfWrSH','LIVESHARE_REQUEST_HOST','offline','status$','_beIdle','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','forEach','length','idle','displayName','requireSession','univer-size-4','ONLINE','executeCommand','add','OPERATION','1083120unQoXN','map','stopPresenting'];_0x37cf=function(){return _0x2059aa;};return _0x37cf();}W[_0x124796(0x102)]=_0x124796(0x159);class L extends _0x6d8bc5{constructor(){const _0x346c29=_0x124796;super(...arguments),u(this,_0x346c29(0xe1),new Set()),u(this,'_reporters',new Set());}[_0x124796(0x133)](_0x135ed6){const _0x335379=_0x124796;return this[_0x335379(0xe1)][_0x335379(0x107)](_0x135ed6),_0x398eff(()=>this['_sharedOperations'][_0x335379(0x156)](_0x135ed6));}[_0x124796(0x118)](_0x160073){const _0x442add=_0x124796;return this[_0x442add(0xed)][_0x442add(0x107)](_0x160073),_0x398eff(()=>this[_0x442add(0xed)][_0x442add(0x156)](_0x160073));}['shouldShareOperation'](_0x4c5560){const _0x334329=_0x124796;return this['_sharedOperations'][_0x334329(0x120)](_0x4c5560);}[_0x124796(0xf8)](_0x592a2b){const _0x2c46e1=_0x124796;return Array[_0x2c46e1(0xdd)](this['_reporters'])['map'](_0x11c285=>_0x11c285(_0x592a2b));}}var Ne=Object[_0x124796(0xe8)],Y=(_0x514565,_0x3b20ec,_0x1e0ba1,_0x3c15e6)=>{const _0x11da83=_0x124796;for(var _0x3b6d99=_0x3c15e6>0x1?void 0x0:_0x3c15e6?Ne(_0x3b20ec,_0x1e0ba1):_0x3b20ec,_0x58bf13=_0x514565[_0x11da83(0x100)]-0x1,_0x2accc9;_0x58bf13>=0x0;_0x58bf13--)(_0x2accc9=_0x514565[_0x58bf13])&&(_0x3b6d99=_0x2accc9(_0x3b6d99)||_0x3b6d99);return _0x3b6d99;},_=(_0x38cc31,_0x3f09cb)=>(_0xd19354,_0x821cb5)=>_0x3f09cb(_0xd19354,_0x821cb5,_0x38cc31);let S=class extends _0x7ce4af{constructor(_0x1af0aa,_0x17c474,_0x15609f){const _0xdcb7f5=_0x124796;super(),u(this,_0xdcb7f5(0x14f),new Map()),(this['_univerInstanceService']=_0x1af0aa,this['_injector']=_0x17c474,this[_0xdcb7f5(0xf0)]=_0x15609f,this[_0xdcb7f5(0x160)]());}async[_0x124796(0x145)](_0x4efd1a){const _0xbf5338=_0x124796;return this[_0xbf5338(0x14f)][_0xbf5338(0x120)](_0x4efd1a)||await this['_startLiveShareCoordinator'](_0x4efd1a),this[_0xbf5338(0x14f)][_0xbf5338(0x130)](_0x4efd1a);}['getLiveShareCoordinatorSync'](_0x2f9b71){const _0xb23ed5=_0x124796;var _0x11d962;return(_0x11d962=this[_0xb23ed5(0x14f)][_0xb23ed5(0x130)](_0x2f9b71))!=null?_0x11d962:null;}['_init'](){const _0x29a532=_0x124796;this[_0x29a532(0x13e)][_0x29a532(0x13a)](_0x25a426[_0x29a532(0xef)])['pipe'](_0x3cb157(this[_0x29a532(0x13d)]))[_0x29a532(0x169)](async _0x501688=>{const _0x22d748=_0x29a532,_0x3380ef=_0x501688[_0x22d748(0x16e)]();this[_0x22d748(0x14f)][_0x22d748(0x120)](_0x3380ef)||this[_0x22d748(0x17a)](_0x3380ef);}),this[_0x29a532(0x13e)][_0x29a532(0x181)](_0x25a426[_0x29a532(0xef)])[_0x29a532(0x11c)](_0x3cb157(this[_0x29a532(0x13d)]))['subscribe'](_0x2319c0=>{const _0x203639=_0x29a532,_0x2979f1=_0x2319c0['getUnitId'](),_0x37982d=this[_0x203639(0x14f)][_0x203639(0x130)](_0x2979f1);_0x37982d==null||_0x37982d['dispose']();});}async['_startLiveShareCoordinator'](_0x40db4a){const _0x27524f=_0x124796,_0x47e761=await this[_0x27524f(0xf0)][_0x27524f(0x103)](_0x40db4a),_0x5ba18a=this[_0x27524f(0x126)][_0x27524f(0xdc)](N,_0x40db4a,_0x47e761);return _0x5ba18a[_0x27524f(0xf3)](),this[_0x27524f(0x14f)][_0x27524f(0x10d)](_0x40db4a,_0x5ba18a),_0x5ba18a;}};S=Y([_(0x0,_0x439877),_(0x1,_0xf32bc(_0x4813b0)),_(0x2,_0xf32bc(_0x27b141))],S);var c=(_0x9a0c7e=>(_0x9a0c7e[_0x124796(0x128)]=_0x124796(0xfb),_0x9a0c7e[_0x124796(0x12a)]=_0x124796(0x101),_0x9a0c7e['FOLLOWING']='following',_0x9a0c7e['NOT_FOLLOWING']=_0x124796(0xea),_0x9a0c7e[_0x124796(0x11b)]='presenting',_0x9a0c7e))(c||{});const Ce=_0x124796(0x176),De=0xc8;let N=class extends _0x7ce4af{constructor(_0x32a3bd,_0x4934b7,_0x23d7be,_0x4c4cef,_0x34f4ae){const _0x4b659e=_0x124796;super(),u(this,'_status$',new _0x3bb74f(_0x4b659e(0x101))),u(this,_0x4b659e(0xfc),this[_0x4b659e(0x167)][_0x4b659e(0x144)]()),u(this,_0x4b659e(0x160),!0x1),u(this,_0x4b659e(0x17f),null),u(this,'_presenter',null),(this['_unitID']=_0x32a3bd,this[_0x4b659e(0xe2)]=_0x4934b7,this['_configService']=_0x23d7be,this[_0x4b659e(0x166)]=_0x4c4cef,this['_commandService']=_0x34f4ae);}get[_0x124796(0x15f)](){const _0xab98b2=_0x124796;return this[_0xab98b2(0x167)][_0xab98b2(0x11a)]();}['dispose'](){const _0x7ba224=_0x124796;var _0x1bb9c0;(_0x1bb9c0=this[_0x7ba224(0x17f)])==null||_0x1bb9c0['dispose'](),this[_0x7ba224(0x167)][_0x7ba224(0x177)](_0x7ba224(0x101)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x124796(0xf3)](){const _0xaec24a=_0x124796;this[_0xaec24a(0x160)]||(this[_0xaec24a(0x160)]=!0x0,this[_0xaec24a(0xe2)][_0xaec24a(0x147)][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0xfdd238=>{const _0x5a2c55=_0xaec24a;switch(_0xfdd238){case _0x4ea729[_0x5a2c55(0x128)]:this[_0x5a2c55(0x10f)]();break;case _0x4ea729[_0x5a2c55(0x105)]:this[_0x5a2c55(0x135)]();break;}}),this[_0xaec24a(0xe2)]['event$'][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0x5e8591=>{const _0x586705=_0xaec24a,{eventID:_0xcf279e}=_0x5e8591;switch(_0xcf279e){case _0x248419[_0x586705(0xd9)]:this[_0x586705(0xe6)](_0x5e8591);break;case _0x248419[_0x586705(0xde)]:this[_0x586705(0x121)](_0x5e8591);break;case _0x248419[_0x586705(0xeb)]:this[_0x586705(0x14b)]();break;case _0x248419[_0x586705(0xd7)]:this['_handleNewChangeSets'](_0x5e8591);break;}}));}['tryStartPresenting'](){const _0x2a2735=_0x124796;this['_collabSession'][_0x2a2735(0xe7)]({'eventID':_0x248419[_0x2a2735(0xfa)],'data':{'unitID':this[_0x2a2735(0x15e)],'userID':this[_0x2a2735(0xe2)][_0x2a2735(0x11d)]()}},this[_0x2a2735(0x15e)]);}[_0x124796(0x10b)](){const _0x34a928=_0x124796;this[_0x34a928(0x15f)]===_0x34a928(0x14d)&&(this[_0x34a928(0x167)][_0x34a928(0x177)]('idle'),this[_0x34a928(0xe2)]['send']({'eventID':_0x248419[_0x34a928(0xeb)],'data':{'unitID':this[_0x34a928(0x15e)]}},this[_0x34a928(0x15e)]));}[_0x124796(0x175)](){const _0x33466d=_0x124796;this[_0x33466d(0x15f)]==='not-following'&&(this[_0x33466d(0x167)][_0x33466d(0x177)]('following'),this[_0x33466d(0x180)]());}[_0x124796(0x140)](){const _0x583c94=_0x124796;this[_0x583c94(0x15f)]===_0x583c94(0x143)&&this[_0x583c94(0xd8)]();}[_0x124796(0xe6)](_0x11b5c5){const _0x24dfe1=_0x124796,{presenter:_0xff946a}=_0x11b5c5[_0x24dfe1(0x15b)],_0x4906dc=this['_collabSession'][_0x24dfe1(0x11d)]();this[_0x24dfe1(0x16a)]=_0xff946a,_0xff946a===_0x4906dc?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x24dfe1(0x15f)]!==_0x24dfe1(0xea)&&(this[_0x24dfe1(0xe0)](),this['_startFollowing']());}[_0x124796(0x161)](){const _0x1aa780=_0x124796,_0x4be587={'eventID':_0x248419[_0x1aa780(0x113)]};this[_0x1aa780(0xe2)][_0x1aa780(0xe7)](_0x4be587,this['_unitID']);}[_0x124796(0x14b)](){const _0xccacdb=_0x124796;this[_0xccacdb(0x16a)]=null,this['_status']!==_0xccacdb(0x14d)&&this[_0xccacdb(0xfd)]();}[_0x124796(0x13b)](_0x43d206){const _0x5ca333=_0x124796;if(this[_0x5ca333(0x15f)]===_0x5ca333(0x143)&&this['_presenter']===_0x43d206[_0x5ca333(0x15b)][_0x5ca333(0x154)]){const _0x5514f8=_0x5bbb91(_0x43d206[_0x5ca333(0x15b)])[_0x5ca333(0x172)][_0x5ca333(0x16c)]()[_0x5ca333(0x117)](_0x4c5ed7=>_0x4c5ed7['id']===_0x4719ca['id']);if(_0x5514f8){const _0x355b06=_0x5514f8[_0x5ca333(0xf5)][_0x5ca333(0x13c)],_0x11b0c4=_0x5514f8[_0x5ca333(0xf5)]['sheet']['id'];setTimeout(()=>{const _0x56a723=_0x5ca333;this[_0x56a723(0x12c)][_0x56a723(0x106)](_0x404888['id'],{'unitId':_0x355b06,'subUnitId':_0x11b0c4},{'fromCollab':!0x0});});}}}[_0x124796(0x134)](){const _0xf3731=_0x124796;this[_0xf3731(0x167)]['next']('presenting');const _0x1e6e45=new Map(),_0x3a257d=this['_commandDisposable']=new _0x274869();_0x3a257d['add'](_0x398eff(()=>{const _0x3148cf=_0xf3731;_0x1e6e45[_0x3148cf(0xff)](_0x3b24a8=>_0x3b24a8['complete']()),_0x1e6e45['clear']();})),_0x3a257d[_0xf3731(0x107)](this[_0xf3731(0x12c)][_0xf3731(0xf6)](_0x851488=>{const _0x3fff64=_0xf3731;var _0x3dec42;if(_0x851488[_0x3fff64(0xee)]!==_0x43ff22[_0x3fff64(0x108)]||!this[_0x3fff64(0x166)]['shouldShareOperation'](_0x851488['id']))return;const {id:_0x30eb49}=_0x851488;let _0x1d887c;_0x1e6e45[_0x3fff64(0x120)](_0x30eb49)?_0x1d887c=_0x1e6e45[_0x3fff64(0x130)](_0x30eb49):(_0x1d887c=new _0x169f7c(),_0x1e6e45['set'](_0x30eb49,_0x1d887c),_0x1d887c[_0x3fff64(0x11c)](_0x6b2616((_0x3dec42=this[_0x3fff64(0x146)][_0x3fff64(0x171)](Ce))!=null?_0x3dec42:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57fe30=>{const _0x271fe8=_0x3fff64;this['_collabSession'][_0x271fe8(0xe7)]({'eventID':_0x248419[_0x271fe8(0xde)],'data':{'unitID':this[_0x271fe8(0x15e)],'operations':{[_0x57fe30['id']]:{'id':_0x57fe30['id'],'params':JSON[_0x271fe8(0x170)](_0x57fe30['params'])}}}},this[_0x271fe8(0x15e)]);})),_0x1d887c['next'](_0x851488);})),this[_0xf3731(0x166)][_0xf3731(0xf8)](this[_0xf3731(0x15e)])['forEach'](_0x305518=>this['_collabSession']['send']({'eventID':_0x248419['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf3731(0x15e)],'operations':{[_0x305518['id']]:{'id':_0x305518['id'],'params':JSON['stringify'](_0x305518[_0xf3731(0xf5)])}}}},this[_0xf3731(0x15e)]));}[_0x124796(0xe0)](){const _0x38a531=_0x124796;var _0x31b45c;this[_0x38a531(0x167)][_0x38a531(0x177)](_0x38a531(0x101)),(_0x31b45c=this[_0x38a531(0x17f)])==null||_0x31b45c['dispose'](),this[_0x38a531(0x17f)]=null;}['_startFollowing'](){const _0x202674=_0x124796;var _0x47abf2;(_0x47abf2=this[_0x202674(0x17f)])==null||_0x47abf2['dispose'](),this[_0x202674(0x167)][_0x202674(0x177)](_0x202674(0x143));}[_0x124796(0xfd)](){const _0x782f9=_0x124796;var _0x1dd9df;this[_0x782f9(0x167)]['next'](_0x782f9(0x101)),(_0x1dd9df=this[_0x782f9(0x17f)])==null||_0x1dd9df[_0x782f9(0xec)](),this[_0x782f9(0x17f)]=null;}[_0x124796(0xd8)](){const _0x310603=_0x124796;var _0x43e509;this[_0x310603(0x167)]['next'](_0x310603(0xea)),(_0x43e509=this['_commandDisposable'])==null||_0x43e509[_0x310603(0xec)]();}[_0x124796(0x121)](_0x559bef){const _0x4b26e1=_0x124796;if([_0x4b26e1(0x14d),'not-following',_0x4b26e1(0xfb)][_0x4b26e1(0x142)](this[_0x4b26e1(0x15f)])||!_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0xdb)]||_0x559bef[_0x4b26e1(0x15b)]['presenter']===this['_collabSession'][_0x4b26e1(0x11d)]())return;this[_0x4b26e1(0x15f)]===_0x4b26e1(0x101)&&this['_startFollowing']();const _0x4ef1e4=_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0x110)];Object[_0x4b26e1(0x152)](_0x4ef1e4)['forEach'](_0x347736=>{const _0x579d29=_0x4b26e1;this[_0x579d29(0x12c)][_0x579d29(0x106)](_0x347736['id'],_0x347736['params']?JSON[_0x579d29(0x112)](_0x347736[_0x579d29(0xf5)]):null,{'fromCollab':!0x0});});}[_0x124796(0x10f)](){const _0x558b64=_0x124796;var _0x50b968;this[_0x558b64(0x167)][_0x558b64(0x177)](_0x558b64(0xfb)),(_0x50b968=this[_0x558b64(0x17f)])==null||_0x50b968[_0x558b64(0xec)]();}['_handleOnline'](){const _0xa113a0=_0x124796;this['_status$'][_0xa113a0(0x177)](_0xa113a0(0x101)),this[_0xa113a0(0x161)]();}};N=Y([_(0x2,_0x25e87d),_(0x3,_0xf32bc(L)),_(0x4,_0x2fee39)],N);function Le(){const _0x5d8852=_0x124796,_0x342838=_0x2b18f8(S),_0x877647=_0x2b18f8(_0x439877),_0x4cc196=_0x5d89ee(()=>_0x877647[_0x5d8852(0xf2)](_0x25a426[_0x5d8852(0xef)]),void 0x0,!0x1,[]),[_0xf177ab,_0x1f83e4]=_0x308496(null),[_0x20469c,_0x2ef963]=_0x308496(c[_0x5d8852(0x12a)]),_0xbc5915=_0x39428b(null);return _0x104b05(()=>(_0x4cc196&&_0x342838[_0x5d8852(0x145)](_0x4cc196[_0x5d8852(0x16e)]())[_0x5d8852(0x163)](_0x5d92b8=>{const _0x4d0081=_0x5d8852;_0x1f83e4(_0x5d92b8),_0xbc5915['current']=_0x5d92b8[_0x4d0081(0xfc)][_0x4d0081(0x169)](_0x3b0ae6=>{_0x2ef963(_0x3b0ae6);});}),()=>{const _0x18693e=_0x5d8852;var _0x4d6540;(_0x4d6540=_0xbc5915['current'])==null||_0x4d6540['unsubscribe'](),_0xbc5915[_0x18693e(0xe3)]=null;}),[_0x4cc196,_0x342838]),_0xf177ab?_0x23b3a7(_0x36bd65,{'align':'end','disabled':_0x20469c===c[_0x5d8852(0x128)],'className':_0x5d8852(0xfe),'overlay':_0x23b3a7(Re,{'status':_0x20469c,'coordinator':_0xf177ab}),'children':_0x23b3a7('button',{'className':_0x10333b(_0x5d8852(0x164),{'univer-cursor-not-allowed':_0x20469c===c[_0x5d8852(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20469c!==c[_0x5d8852(0x128)]}),'type':_0x5d8852(0x16b),'children':_0x23b3a7(W,{'className':_0x5d8852(0x104)})})}):null;}function Re(_0xa95eb9){const _0x37d612=_0x124796,{status:_0x56f2ee,coordinator:_0x1a17c6}=_0xa95eb9;switch(_0x56f2ee){case c[_0x37d612(0x12a)]:return _0x23b3a7($e,{'coordinator':_0x1a17c6});case c['FOLLOWING']:return _0x23b3a7(xe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x17e)]:return _0x23b3a7(Pe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x128)]:return _0x23b3a7(Te,{});case c[_0x37d612(0x11b)]:return _0x23b3a7(Ae,{'coordinator':_0x1a17c6});default:return null;}}function $e(_0x3af653){const _0x41ca7c=_0x124796,{coordinator:_0x407e8a}=_0x3af653;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x41ca7c(0xda),{'className':_0x41ca7c(0x158),'children':_0x41ca7c(0x114)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0x407e8a[_0x41ca7c(0x119)](),'children':_0x41ca7c(0xf1)})]});}function xe(_0x179d21){const _0x5d5858=_0x124796,{coordinator:_0xc84bf6}=_0x179d21;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x5d5858(0xda),{'className':_0x5d5858(0x158),'children':_0x5d5858(0x149)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0xc84bf6['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x3d2816){const _0xf1899c=_0x124796,{coordinator:_0x12cd31}=_0x3d2816;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0xf1899c(0xda),{'className':_0xf1899c(0x158),'children':_0xf1899c(0x11f)}),_0x23b3a7(_0x14fb40,{'variant':_0xf1899c(0x168),'onClick':()=>_0x12cd31[_0xf1899c(0x175)](),'children':_0xf1899c(0x16f)})]});}function Ae(_0xe4641d){const _0x14458e=_0x124796,{coordinator:_0x4061c4}=_0xe4641d;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x14458e(0xda),{'className':_0x14458e(0x158),'children':_0x14458e(0x15d)}),_0x23b3a7(_0x14fb40,{'variant':_0x14458e(0x12b),'onClick':()=>_0x4061c4['stopPresenting'](),'children':_0x14458e(0x182)})]});}function Te(){const _0x7e4f8c=_0x124796;return _0x23b3a7(_0x22f41e,{'children':_0x7e4f8c(0x127)});}var Fe=Object[_0x124796(0xe8)],He=(_0x308c4d,_0x16fad8,_0x546931,_0x42e059)=>{const _0x5348c3=_0x124796;for(var _0x5de742=_0x42e059>0x1?void 0x0:_0x42e059?Fe(_0x16fad8,_0x546931):_0x16fad8,_0x515853=_0x308c4d[_0x5348c3(0x100)]-0x1,_0xd597ce;_0x515853>=0x0;_0x515853--)(_0xd597ce=_0x308c4d[_0x515853])&&(_0x5de742=_0xd597ce(_0x5de742)||_0x5de742);return _0x5de742;},A=(_0x31c79d,_0x1817f0)=>(_0x1b3ddd,_0x1a62fc)=>_0x1817f0(_0x1b3ddd,_0x1a62fc,_0x31c79d);let m=class extends _0x6d8bc5{constructor(_0x5564b8,_0x3743ef){const _0x46c189=_0x124796;super(),this[_0x46c189(0x126)]=_0x5564b8,this[_0x46c189(0xe5)]=_0x3743ef,this[_0x46c189(0x17d)]();}[_0x124796(0x17d)](){const _0x55ae0f=_0x124796;this[_0x55ae0f(0x174)](this[_0x55ae0f(0xe5)][_0x55ae0f(0xf7)](_0x1c14fe['HEADER_MENU'],()=>_0x10e3da(Le,this[_0x55ae0f(0x126)])));}};m=He([A(0x0,_0xf32bc(_0x4813b0)),A(0x1,_0x478479)],m);const ye=_0x124796(0x17b),T={};var Ue=Object[_0x124796(0xe8)],Ve=(_0x48ca1f,_0x213db6,_0x17c040,_0x3fecf3)=>{const _0x3f4df8=_0x124796;for(var _0x104303=_0x3fecf3>0x1?void 0x0:_0x3fecf3?Ue(_0x213db6,_0x17c040):_0x213db6,_0x2c6872=_0x48ca1f[_0x3f4df8(0x100)]-0x1,_0x2fbf52;_0x2c6872>=0x0;_0x2c6872--)(_0x2fbf52=_0x48ca1f[_0x2c6872])&&(_0x104303=_0x2fbf52(_0x104303)||_0x104303);return _0x104303;},je=(_0x223ba7,_0x125e3b)=>(_0x35d6eb,_0x4d7ec6)=>_0x125e3b(_0x35d6eb,_0x4d7ec6,_0x223ba7);let I=class extends _0x6d8bc5{constructor(_0x5e5b2f){const _0x42b09e=_0x124796;super(),this['_liveShareService']=_0x5e5b2f,this[_0x42b09e(0x160)]();}['_init'](){const _0x5611bc=_0x124796;[_0x10eab9['id'],_0x3dcd5e['id'],_0x404888['id']][_0x5611bc(0xff)](_0x2df43c=>{const _0x314d99=_0x5611bc;this[_0x314d99(0x174)](this[_0x314d99(0x166)][_0x314d99(0x133)](_0x2df43c));});}};I=Ve([je(0x0,_0xf32bc(L))],I);var Me=Object[_0x124796(0x138)],ke=Object[_0x124796(0xe8)],Ge=(_0x53d7bd,_0x560455,_0x213934)=>_0x560455 in _0x53d7bd?Me(_0x53d7bd,_0x560455,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213934}):_0x53d7bd[_0x560455]=_0x213934,We=(_0x4ea3be,_0x4acbc0,_0xd38328,_0xab9b0c)=>{for(var _0xc0c20a=_0xab9b0c>0x1?void 0x0:_0xab9b0c?ke(_0x4acbc0,_0xd38328):_0x4acbc0,_0x572987=_0x4ea3be['length']-0x1,_0x548715;_0x572987>=0x0;_0x572987--)(_0x548715=_0x4ea3be[_0x572987])&&(_0xc0c20a=_0x548715(_0xc0c20a)||_0xc0c20a);return _0xc0c20a;},F=(_0xd56d7a,_0x376d59)=>(_0x35395c,_0x4509cf)=>_0x376d59(_0x35395c,_0x4509cf,_0xd56d7a),B=(_0x4d80a5,_0x22039e,_0x133439)=>Ge(_0x4d80a5,typeof _0x22039e!=_0x124796(0x16d)?_0x22039e+'':_0x22039e,_0x133439);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0xc55cf5{constructor(_0x251d0e=T,_0x48f431,_0x33ae32){const _0x4daebc=_0x124796;super(),this[_0x4daebc(0x10e)]=_0x251d0e,this['_injector']=_0x48f431,this[_0x4daebc(0x146)]=_0x33ae32;const {..._0x58f319}=_0x1b3366({},T,this[_0x4daebc(0x10e)]);this[_0x4daebc(0x146)][_0x4daebc(0x13f)](ye,_0x58f319);}['onStarting'](){const _0x538e7f=_0x124796;_0x1e72fe(this['_injector'],_0x592dcd([[L],[S],[I],[m]],this['_config'][_0x538e7f(0x123)])),_0x1012e4(this['_injector'],[[I]]);}[_0x124796(0x173)](){const _0x2e6241=_0x124796;_0x1012e4(this[_0x2e6241(0x126)],[[m]]);}};B(b,_0x124796(0xee),_0x25a426['UNIVER_UNKNOWN']),B(b,_0x124796(0x11e),Ye),b=We([_0x144947(_0x164bb6),F(0x1,_0xf32bc(_0x4813b0)),F(0x2,_0x25e87d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','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','values','createInstance','div','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','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x571f(){const _0x2fbe56=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18SFLRUn','54qplNdb','extend','LiveShareStatusEnum','IDLE','tryStartPresenting','1910900EeGIkZ','stopFollowing','getActiveSheet','getStatus','startFollowing','2748163dgQCaB','PRESENTING','_injector','4673781HJElQr','executeCommand','getLiveShareCoordinatorSync','2974672RSYiYd','10JxqPkj','536622GrCFBV','getSheetId','startRow','getUnitId','8913336INbwqk','getId','_commandService','41692asRSlr','6ZNgyrA','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting','get','2cKGIjO','getActiveWorkbook'];_0x571f=function(){return _0x2fbe56;};return _0x571f();}const _0x79a651=_0x53b0;(function(_0x4fcfdf,_0x31312f){const _0x5cebe7=_0x53b0,_0x4541f2=_0x4fcfdf();while(!![]){try{const _0x218c8f=-parseInt(_0x5cebe7(0x161))/0x1*(parseInt(_0x5cebe7(0x16e))/0x2)+-parseInt(_0x5cebe7(0x172))/0x3*(-parseInt(_0x5cebe7(0x168))/0x4)+parseInt(_0x5cebe7(0x154))/0x5*(parseInt(_0x5cebe7(0x169))/0x6)+parseInt(_0x5cebe7(0x15c))/0x7+-parseInt(_0x5cebe7(0x15f))/0x8*(parseInt(_0x5cebe7(0x171))/0x9)+parseInt(_0x5cebe7(0x160))/0xa*(-parseInt(_0x5cebe7(0x159))/0xb)+parseInt(_0x5cebe7(0x165))/0xc;if(_0x218c8f===_0x31312f)break;else _0x4541f2['push'](_0x4541f2['shift']());}catch(_0x37dcb2){_0x4541f2['push'](_0x4541f2['shift']());}}}(_0x571f,0x6de54));import{LiveShareController as _0x55af9f,LiveShareStatus as _0x3533f8}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a4873}from'@univerjs/engine-render';function _0x53b0(_0x2493f7,_0x3baac6){_0x2493f7=_0x2493f7-0x152;const _0x571fe5=_0x571f();let _0x53b086=_0x571fe5[_0x2493f7];return _0x53b086;}import{SetWorksheetActiveOperation as _0x5c83dd}from'@univerjs/sheets';import{SetScrollOperation as _0x40817b}from'@univerjs/sheets-ui';import{FRange as _0x4fa1a3}from'@univerjs/sheets/facade';import{FUniver as _0x5c5814,FEnum as _0x54a6aa}from'@univerjs/core/facade';class I extends _0x4fa1a3{['_initialize'](_0x1f6ef1,_0x1d53fd,_0x771944,_0x23b5b3,_0x4161d7){const _0x57c640=_0x53b0,_0x487400=_0x1f6ef1[_0x57c640(0x16d)](_0x55af9f),_0x1acfaa=_0x1f6ef1[_0x57c640(0x16d)](_0x2a4873),_0x1be079=_0x1d53fd[_0x57c640(0x164)](),_0x4279a5=_0x1d53fd[_0x57c640(0x156)](),_0x4ad478=_0x487400[_0x57c640(0x15e)](_0x1be079);(_0x4ad478==null?void 0x0:_0x4ad478[_0x57c640(0x157)]())!==_0x3533f8[_0x57c640(0x15a)]||(_0x771944[_0x57c640(0x162)]()!==_0x4279a5['getSheetId']()&&this[_0x57c640(0x167)][_0x57c640(0x15d)](_0x5c83dd['id'],{'unitId':_0x1be079,'subUnitId':_0x771944[_0x57c640(0x162)]()}),!_0x1acfaa['getRenderById'](_0x1be079))||_0x4161d7['syncExecuteCommand'](_0x40817b['id'],{'unitId':_0x1d53fd[_0x57c640(0x164)](),'sheetId':_0x771944[_0x57c640(0x162)](),'sheetViewStartRow':_0x23b5b3[_0x57c640(0x163)],'sheetViewStartColumn':_0x23b5b3['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4fa1a3['extend'](I);class m extends _0x5c5814{['getLiveShareStatus'](){const _0x25436d=_0x53b0;var _0x5b9f61,_0x30dcb6;const _0x31f781=this[_0x25436d(0x15b)]['get'](_0x55af9f),_0x1b4084=(_0x5b9f61=this[_0x25436d(0x16f)]())==null?void 0x0:_0x5b9f61[_0x25436d(0x166)]();if(!_0x1b4084)throw new Error(_0x25436d(0x16b));const _0x346099=_0x31f781[_0x25436d(0x15e)](_0x1b4084);return(_0x30dcb6=_0x346099==null?void 0x0:_0x346099[_0x25436d(0x157)]())!=null?_0x30dcb6:_0x3533f8[_0x25436d(0x152)];}[_0x79a651(0x158)](){const _0x2dead6=_0x79a651;var _0x58abe3;const _0x580abc=this[_0x2dead6(0x15b)]['get'](_0x55af9f),_0x580a2d=(_0x58abe3=this[_0x2dead6(0x16f)]())==null?void 0x0:_0x58abe3[_0x2dead6(0x166)]();if(!_0x580a2d)throw new Error(_0x2dead6(0x16b));const _0x33dc85=_0x580abc[_0x2dead6(0x15e)](_0x580a2d);if(!_0x33dc85)throw new Error(_0x2dead6(0x170));_0x33dc85['startFollowing']();}[_0x79a651(0x155)](){const _0x5b3232=_0x79a651;var _0x462738;const _0x36c356=this[_0x5b3232(0x15b)][_0x5b3232(0x16d)](_0x55af9f),_0x345d0a=(_0x462738=this[_0x5b3232(0x16f)]())==null?void 0x0:_0x462738[_0x5b3232(0x166)]();if(!_0x345d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x573141=_0x36c356[_0x5b3232(0x15e)](_0x345d0a);if(!_0x573141)throw new Error(_0x5b3232(0x170));_0x573141[_0x5b3232(0x155)]();}[_0x79a651(0x16c)](){const _0x5e04c5=_0x79a651;var _0x3df80f;const _0x468a35=this['_injector'][_0x5e04c5(0x16d)](_0x55af9f),_0x415646=(_0x3df80f=this['getActiveWorkbook']())==null?void 0x0:_0x3df80f[_0x5e04c5(0x166)]();if(!_0x415646)throw new Error(_0x5e04c5(0x16b));const _0x18f111=_0x468a35[_0x5e04c5(0x15e)](_0x415646);if(!_0x18f111)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f111[_0x5e04c5(0x153)]();}[_0x79a651(0x16a)](){const _0x5728cd=_0x79a651;var _0x19c8d6;const _0x5af450=this['_injector'][_0x5728cd(0x16d)](_0x55af9f),_0x281a79=(_0x19c8d6=this[_0x5728cd(0x16f)]())==null?void 0x0:_0x19c8d6[_0x5728cd(0x166)]();if(!_0x281a79)throw new Error('No\x20active\x20workbook\x20found.');const _0x111972=_0x5af450[_0x5728cd(0x15e)](_0x281a79);if(!_0x111972)throw new Error(_0x5728cd(0x170));_0x111972[_0x5728cd(0x16a)]();}}_0x5c5814['extend'](m);class C extends _0x54a6aa{get[_0x79a651(0x174)](){return _0x3533f8;}}_0x54a6aa[_0x79a651(0x173)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x124796=_0x2c86;(function(_0x3dd598,_0x3a3c83){const _0xae29ca=_0x2c86,_0x50c085=_0x3dd598();while(!![]){try{const _0x40e179=parseInt(_0xae29ca(0x111))/0x1+parseInt(_0xae29ca(0x17c))/0x2+parseInt(_0xae29ca(0x122))/0x3+-parseInt(_0xae29ca(0x12d))/0x4+-parseInt(_0xae29ca(0x109))/0x5+parseInt(_0xae29ca(0x115))/0x6+-parseInt(_0xae29ca(0xf9))/0x7;if(_0x40e179===_0x3a3c83)break;else _0x50c085['push'](_0x50c085['shift']());}catch(_0x3e2efc){_0x50c085['push'](_0x50c085['shift']());}}}(_0x37cf,0x2e03d));function _0x2c86(_0x1ce7ab,_0x1bba39){_0x1ce7ab=_0x1ce7ab-0xd7;const _0x37cf3c=_0x37cf();let _0x2c864a=_0x37cf3c[_0x1ce7ab];return _0x2c864a;}var J=Object[_0x124796(0x138)],K=(_0x477a5a,_0x14fe6f,_0xc44cce)=>_0x14fe6f in _0x477a5a?J(_0x477a5a,_0x14fe6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc44cce}):_0x477a5a[_0x14fe6f]=_0xc44cce,u=(_0x25ec78,_0x19c868,_0x33d8e5)=>K(_0x25ec78,typeof _0x19c868!=_0x124796(0x16d)?_0x19c868+'':_0x19c868,_0x33d8e5);import{Disposable as _0x6d8bc5,toDisposable as _0x398eff,IUniverInstanceService as _0x439877,Inject as _0xf32bc,Injector as _0x4813b0,IConfigService as _0x25e87d,ICommandService as _0x2fee39,RxDisposable as _0x7ce4af,UniverInstanceType as _0x25a426,DisposableCollection as _0x274869,CommandType as _0x43ff22,DependentOn as _0x144947,Plugin as _0xc55cf5,merge as _0x1b3366,registerDependencies as _0x1e72fe,mergeOverrideWithDependencies as _0x592dcd,touchDependencies as _0x1012e4}from'@univerjs/core';import{useDependency as _0x2b18f8,useObservable as _0x5d89ee,IUIPartsService as _0x478479,BuiltInUIPart as _0x1c14fe,connectInjector as _0x10e3da}from'@univerjs/ui';import{jsx as _0x23b3a7,jsxs as _0x25b971,Fragment as _0x22f41e}from'react/jsx-runtime';import{Dropdown as _0x36bd65,clsx as _0x10333b,Button as _0x14fb40}from'@univerjs/design';import{useRef as _0x39428b,createElement as _0x1edef1,forwardRef as _0x1a98e5,useState as _0x308496,useEffect as _0x104b05}from'react';import{CollaborationEvent as _0x248419,parseProtocolChangeset as _0x5bbb91}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x27b141,SessionStatus as _0x4ea729,UniverCollaborationClientPlugin as _0x164bb6}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4719ca,SetWorksheetActiveOperation as _0x404888}from'@univerjs/sheets';import{BehaviorSubject as _0x3bb74f,Subject as _0x169f7c}from'rxjs';import{takeUntil as _0x3cb157,throttleTime as _0x6b2616}from'rxjs/operators';import{SetZoomRatioOperation as _0x10eab9,SetScrollOperation as _0x3dcd5e}from'@univerjs/sheets-ui';function k({ref:_0x589ee7,..._0x1795e1}){const _0x4df70a=_0x124796,{icon:_0x51b7cb,id:_0x3c2941,className:_0x416fa0,extend:_0x34a0eb,..._0x10540b}=_0x1795e1,_0x29ed7f=(_0x4df70a(0x12f)+_0x3c2941+'\x20'+(_0x416fa0||''))[_0x4df70a(0x14a)](),_0xfc14b3=_0x39428b('_'+Oe());return G(_0x51b7cb,''+_0x3c2941,{'defIds':_0x51b7cb[_0x4df70a(0x116)],'idSuffix':_0xfc14b3['current']},{'ref':_0x589ee7,'className':_0x29ed7f,..._0x10540b},_0x34a0eb);}function G(_0x46e649,_0x2e5585,_0x70f7f5,_0x234dd9,_0x39cadb){const _0x2dcaaa=_0x124796;return _0x1edef1(_0x46e649['tag'],{'key':_0x2e5585,...be(_0x46e649,_0x70f7f5,_0x39cadb),..._0x234dd9},(Ee(_0x46e649,_0x70f7f5)[_0x2dcaaa(0x14e)]||[])[_0x2dcaaa(0x10a)]((_0x2cacd9,_0x35eda1)=>G(_0x2cacd9,_0x2e5585+'-'+_0x46e649[_0x2dcaaa(0x148)]+'-'+_0x35eda1,_0x70f7f5,void 0x0,_0x39cadb)));}function be(_0x415b10,_0x5f5cc6,_0xaea2ce){const _0x4cc6a9=_0x124796,_0x43453b={..._0x415b10['attrs']};_0xaea2ce!=null&&_0xaea2ce['colorChannel1']&&_0x43453b[_0x4cc6a9(0x150)]===_0x4cc6a9(0x129)&&(_0x43453b[_0x4cc6a9(0x150)]=_0xaea2ce[_0x4cc6a9(0x129)]),_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0x125)&&_0x43453b['id']&&(_0x43453b['id']=_0x43453b['id']+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0xbae202,_0x45ea15])=>{const _0x33f547=_0x4cc6a9;_0xbae202===_0x33f547(0x125)&&typeof _0x45ea15=='string'&&(_0x43453b[_0xbae202]=_0x45ea15[_0x33f547(0x137)](/url\(#(.*)\)/,_0x33f547(0x14c)+_0x5f5cc6[_0x33f547(0x136)]+')'));});const {defIds:_0x2ca9fb}=_0x5f5cc6;return!_0x2ca9fb||_0x2ca9fb['length']===0x0||(_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0xdf)&&_0x43453b[_0x4cc6a9(0x157)]&&(_0x43453b['xlink:href']=_0x43453b[_0x4cc6a9(0x157)]+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0x9deb30,_0x18552c])=>{const _0x28ac90=_0x4cc6a9;typeof _0x18552c==_0x28ac90(0x162)&&(_0x43453b[_0x9deb30]=_0x18552c[_0x28ac90(0x137)](/url\(#(.*)\)/,_0x28ac90(0x14c)+_0x5f5cc6['idSuffix']+')'));})),_0x43453b;}function Ee(_0x40e941,_0x47f8c3){const _0x15a319=_0x124796;var _0x46cfcd;const {defIds:_0x141e94}=_0x47f8c3;return!_0x141e94||_0x141e94[_0x15a319(0x100)]===0x0?_0x40e941:_0x40e941['tag']===_0x15a319(0x15c)&&((_0x46cfcd=_0x40e941[_0x15a319(0x14e)])!=null&&_0x46cfcd[_0x15a319(0x100)])?{..._0x40e941,'children':_0x40e941['children'][_0x15a319(0x10a)](_0x15b8db=>typeof _0x15b8db['attrs']['id']==_0x15a319(0x162)&&_0x141e94&&_0x141e94['includes'](_0x15b8db['attrs']['id'])?{..._0x15b8db,'attrs':{..._0x15b8db[_0x15a319(0x179)],'id':_0x15b8db[_0x15a319(0x179)]['id']+_0x47f8c3[_0x15a319(0x136)]}}:_0x15b8db)}:_0x40e941;}function Oe(){const _0x4497f1=_0x124796;return Math[_0x4497f1(0x131)]()[_0x4497f1(0x141)](0x24)[_0x4497f1(0x139)](0x2,0x8);}k[_0x124796(0x102)]=_0x124796(0xf4);const we={'tag':_0x124796(0x124),'attrs':{'xmlns':_0x124796(0xe9),'fill':_0x124796(0x165),'viewBox':_0x124796(0x10c),'width':_0x124796(0x151),'height':_0x124796(0x151)},'children':[{'tag':_0x124796(0xe4),'attrs':{'fill':'currentColor','d':_0x124796(0x132)}},{'tag':_0x124796(0xe4),'attrs':{'fill':_0x124796(0x12e),'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':_0x124796(0x153),'clipRule':'evenodd'}}]},W=_0x1a98e5(function(_0x336af4,_0x1bdc1f){const _0x5f2538=_0x124796;return _0x1edef1(k,Object[_0x5f2538(0x15a)]({},_0x336af4,{'id':_0x5f2538(0x155),'ref':_0x1bdc1f,'icon':we}));});function _0x37cf(){const _0x2059aa=['0\x200\x2017\x2017','set','_config','_handleOffline','operations','112124ZJLCOO','parse','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','915600DXClem','defIds','find','registerInitialStateReporter','tryStartPresenting','getValue','PRESENTING','pipe','getMemberID','pluginName','You\x27re\x20not\x20following\x20the\x20presenter','has','_handleOperation','724671tEjCUZ','override','svg','mask','_injector','You\x27are\x20offline.','OFFLINE','colorChannel1','IDLE','default','_commandService','32424DKMVSz','currentColor','univerjs-icon\x20univerjs-icon-','get','random','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','registerSharedOperation','_startPresenting','_handleOnline','idSuffix','replace','defineProperty','substring','getTypeOfUnitAdded$','_handleNewChangeSets','unitId','dispose$','_univerInstanceService','setConfig','stopFollowing','toString','includes','following','asObservable','getLiveShareCoordinator','_configService','sessionStatus$','tag','You\x27re\x20following\x20the\x20presenter','trim','_handleTerminate','url(#$1','presenting','children','_entities','fill','1em','values','evenodd','memberID','live-share-icon','delete','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','assign','data','defs','You\x27re\x20presenting\x20the\x20document','_unitID','_status','_init','_fetchOperations','string','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','none','_liveShareService','_status$','text','subscribe','_presenter','button','reverse','symbol','getUnitId','Start\x20following','stringify','getConfig','mutations','onRendered','disposeWithMe','startFollowing','SAME_OPERATION_SHARE_INTERVAL','next','entries','attrs','_startLiveShareCoordinator','live-share.config','149756tyixUO','_mountLiveShare','NOT_FOLLOWING','_commandDisposable','_startFollowing','getTypeOfUnitDisposed$','Stop\x20presenting','NEW_CHANGESETS','_stopFollowing','LIVESHARE_NEW_HOST','div','presenter','createInstance','from','LIVESHARE_OPERATION','use','_stopPresenting','_sharedOperations','_collabSession','current','path','_uiPartsService','_handleNewHost','send','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','not-following','LIVESHARE_TERMINATE','dispose','_reporters','type','UNIVER_SHEET','_collabSessionService','Start','getCurrentTypeOfUnit$','init','UniverIcon','params','onCommandExecuted','registerComponent','getInitialStates','1175664UfWrSH','LIVESHARE_REQUEST_HOST','offline','status$','_beIdle','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','forEach','length','idle','displayName','requireSession','univer-size-4','ONLINE','executeCommand','add','OPERATION','1083120unQoXN','map','stopPresenting'];_0x37cf=function(){return _0x2059aa;};return _0x37cf();}W[_0x124796(0x102)]=_0x124796(0x159);class L extends _0x6d8bc5{constructor(){const _0x346c29=_0x124796;super(...arguments),u(this,_0x346c29(0xe1),new Set()),u(this,'_reporters',new Set());}[_0x124796(0x133)](_0x135ed6){const _0x335379=_0x124796;return this[_0x335379(0xe1)][_0x335379(0x107)](_0x135ed6),_0x398eff(()=>this['_sharedOperations'][_0x335379(0x156)](_0x135ed6));}[_0x124796(0x118)](_0x160073){const _0x442add=_0x124796;return this[_0x442add(0xed)][_0x442add(0x107)](_0x160073),_0x398eff(()=>this[_0x442add(0xed)][_0x442add(0x156)](_0x160073));}['shouldShareOperation'](_0x4c5560){const _0x334329=_0x124796;return this['_sharedOperations'][_0x334329(0x120)](_0x4c5560);}[_0x124796(0xf8)](_0x592a2b){const _0x2c46e1=_0x124796;return Array[_0x2c46e1(0xdd)](this['_reporters'])['map'](_0x11c285=>_0x11c285(_0x592a2b));}}var Ne=Object[_0x124796(0xe8)],Y=(_0x514565,_0x3b20ec,_0x1e0ba1,_0x3c15e6)=>{const _0x11da83=_0x124796;for(var _0x3b6d99=_0x3c15e6>0x1?void 0x0:_0x3c15e6?Ne(_0x3b20ec,_0x1e0ba1):_0x3b20ec,_0x58bf13=_0x514565[_0x11da83(0x100)]-0x1,_0x2accc9;_0x58bf13>=0x0;_0x58bf13--)(_0x2accc9=_0x514565[_0x58bf13])&&(_0x3b6d99=_0x2accc9(_0x3b6d99)||_0x3b6d99);return _0x3b6d99;},_=(_0x38cc31,_0x3f09cb)=>(_0xd19354,_0x821cb5)=>_0x3f09cb(_0xd19354,_0x821cb5,_0x38cc31);let S=class extends _0x7ce4af{constructor(_0x1af0aa,_0x17c474,_0x15609f){const _0xdcb7f5=_0x124796;super(),u(this,_0xdcb7f5(0x14f),new Map()),(this['_univerInstanceService']=_0x1af0aa,this['_injector']=_0x17c474,this[_0xdcb7f5(0xf0)]=_0x15609f,this[_0xdcb7f5(0x160)]());}async[_0x124796(0x145)](_0x4efd1a){const _0xbf5338=_0x124796;return this[_0xbf5338(0x14f)][_0xbf5338(0x120)](_0x4efd1a)||await this['_startLiveShareCoordinator'](_0x4efd1a),this[_0xbf5338(0x14f)][_0xbf5338(0x130)](_0x4efd1a);}['getLiveShareCoordinatorSync'](_0x2f9b71){const _0xb23ed5=_0x124796;var _0x11d962;return(_0x11d962=this[_0xb23ed5(0x14f)][_0xb23ed5(0x130)](_0x2f9b71))!=null?_0x11d962:null;}['_init'](){const _0x29a532=_0x124796;this[_0x29a532(0x13e)][_0x29a532(0x13a)](_0x25a426[_0x29a532(0xef)])['pipe'](_0x3cb157(this[_0x29a532(0x13d)]))[_0x29a532(0x169)](async _0x501688=>{const _0x22d748=_0x29a532,_0x3380ef=_0x501688[_0x22d748(0x16e)]();this[_0x22d748(0x14f)][_0x22d748(0x120)](_0x3380ef)||this[_0x22d748(0x17a)](_0x3380ef);}),this[_0x29a532(0x13e)][_0x29a532(0x181)](_0x25a426[_0x29a532(0xef)])[_0x29a532(0x11c)](_0x3cb157(this[_0x29a532(0x13d)]))['subscribe'](_0x2319c0=>{const _0x203639=_0x29a532,_0x2979f1=_0x2319c0['getUnitId'](),_0x37982d=this[_0x203639(0x14f)][_0x203639(0x130)](_0x2979f1);_0x37982d==null||_0x37982d['dispose']();});}async['_startLiveShareCoordinator'](_0x40db4a){const _0x27524f=_0x124796,_0x47e761=await this[_0x27524f(0xf0)][_0x27524f(0x103)](_0x40db4a),_0x5ba18a=this[_0x27524f(0x126)][_0x27524f(0xdc)](N,_0x40db4a,_0x47e761);return _0x5ba18a[_0x27524f(0xf3)](),this[_0x27524f(0x14f)][_0x27524f(0x10d)](_0x40db4a,_0x5ba18a),_0x5ba18a;}};S=Y([_(0x0,_0x439877),_(0x1,_0xf32bc(_0x4813b0)),_(0x2,_0xf32bc(_0x27b141))],S);var c=(_0x9a0c7e=>(_0x9a0c7e[_0x124796(0x128)]=_0x124796(0xfb),_0x9a0c7e[_0x124796(0x12a)]=_0x124796(0x101),_0x9a0c7e['FOLLOWING']='following',_0x9a0c7e['NOT_FOLLOWING']=_0x124796(0xea),_0x9a0c7e[_0x124796(0x11b)]='presenting',_0x9a0c7e))(c||{});const Ce=_0x124796(0x176),De=0xc8;let N=class extends _0x7ce4af{constructor(_0x32a3bd,_0x4934b7,_0x23d7be,_0x4c4cef,_0x34f4ae){const _0x4b659e=_0x124796;super(),u(this,'_status$',new _0x3bb74f(_0x4b659e(0x101))),u(this,_0x4b659e(0xfc),this[_0x4b659e(0x167)][_0x4b659e(0x144)]()),u(this,_0x4b659e(0x160),!0x1),u(this,_0x4b659e(0x17f),null),u(this,'_presenter',null),(this['_unitID']=_0x32a3bd,this[_0x4b659e(0xe2)]=_0x4934b7,this['_configService']=_0x23d7be,this[_0x4b659e(0x166)]=_0x4c4cef,this['_commandService']=_0x34f4ae);}get[_0x124796(0x15f)](){const _0xab98b2=_0x124796;return this[_0xab98b2(0x167)][_0xab98b2(0x11a)]();}['dispose'](){const _0x7ba224=_0x124796;var _0x1bb9c0;(_0x1bb9c0=this[_0x7ba224(0x17f)])==null||_0x1bb9c0['dispose'](),this[_0x7ba224(0x167)][_0x7ba224(0x177)](_0x7ba224(0x101)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x124796(0xf3)](){const _0xaec24a=_0x124796;this[_0xaec24a(0x160)]||(this[_0xaec24a(0x160)]=!0x0,this[_0xaec24a(0xe2)][_0xaec24a(0x147)][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0xfdd238=>{const _0x5a2c55=_0xaec24a;switch(_0xfdd238){case _0x4ea729[_0x5a2c55(0x128)]:this[_0x5a2c55(0x10f)]();break;case _0x4ea729[_0x5a2c55(0x105)]:this[_0x5a2c55(0x135)]();break;}}),this[_0xaec24a(0xe2)]['event$'][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0x5e8591=>{const _0x586705=_0xaec24a,{eventID:_0xcf279e}=_0x5e8591;switch(_0xcf279e){case _0x248419[_0x586705(0xd9)]:this[_0x586705(0xe6)](_0x5e8591);break;case _0x248419[_0x586705(0xde)]:this[_0x586705(0x121)](_0x5e8591);break;case _0x248419[_0x586705(0xeb)]:this[_0x586705(0x14b)]();break;case _0x248419[_0x586705(0xd7)]:this['_handleNewChangeSets'](_0x5e8591);break;}}));}['tryStartPresenting'](){const _0x2a2735=_0x124796;this['_collabSession'][_0x2a2735(0xe7)]({'eventID':_0x248419[_0x2a2735(0xfa)],'data':{'unitID':this[_0x2a2735(0x15e)],'userID':this[_0x2a2735(0xe2)][_0x2a2735(0x11d)]()}},this[_0x2a2735(0x15e)]);}[_0x124796(0x10b)](){const _0x34a928=_0x124796;this[_0x34a928(0x15f)]===_0x34a928(0x14d)&&(this[_0x34a928(0x167)][_0x34a928(0x177)]('idle'),this[_0x34a928(0xe2)]['send']({'eventID':_0x248419[_0x34a928(0xeb)],'data':{'unitID':this[_0x34a928(0x15e)]}},this[_0x34a928(0x15e)]));}[_0x124796(0x175)](){const _0x33466d=_0x124796;this[_0x33466d(0x15f)]==='not-following'&&(this[_0x33466d(0x167)][_0x33466d(0x177)]('following'),this[_0x33466d(0x180)]());}[_0x124796(0x140)](){const _0x583c94=_0x124796;this[_0x583c94(0x15f)]===_0x583c94(0x143)&&this[_0x583c94(0xd8)]();}[_0x124796(0xe6)](_0x11b5c5){const _0x24dfe1=_0x124796,{presenter:_0xff946a}=_0x11b5c5[_0x24dfe1(0x15b)],_0x4906dc=this['_collabSession'][_0x24dfe1(0x11d)]();this[_0x24dfe1(0x16a)]=_0xff946a,_0xff946a===_0x4906dc?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x24dfe1(0x15f)]!==_0x24dfe1(0xea)&&(this[_0x24dfe1(0xe0)](),this['_startFollowing']());}[_0x124796(0x161)](){const _0x1aa780=_0x124796,_0x4be587={'eventID':_0x248419[_0x1aa780(0x113)]};this[_0x1aa780(0xe2)][_0x1aa780(0xe7)](_0x4be587,this['_unitID']);}[_0x124796(0x14b)](){const _0xccacdb=_0x124796;this[_0xccacdb(0x16a)]=null,this['_status']!==_0xccacdb(0x14d)&&this[_0xccacdb(0xfd)]();}[_0x124796(0x13b)](_0x43d206){const _0x5ca333=_0x124796;if(this[_0x5ca333(0x15f)]===_0x5ca333(0x143)&&this['_presenter']===_0x43d206[_0x5ca333(0x15b)][_0x5ca333(0x154)]){const _0x5514f8=_0x5bbb91(_0x43d206[_0x5ca333(0x15b)])[_0x5ca333(0x172)][_0x5ca333(0x16c)]()[_0x5ca333(0x117)](_0x4c5ed7=>_0x4c5ed7['id']===_0x4719ca['id']);if(_0x5514f8){const _0x355b06=_0x5514f8[_0x5ca333(0xf5)][_0x5ca333(0x13c)],_0x11b0c4=_0x5514f8[_0x5ca333(0xf5)]['sheet']['id'];setTimeout(()=>{const _0x56a723=_0x5ca333;this[_0x56a723(0x12c)][_0x56a723(0x106)](_0x404888['id'],{'unitId':_0x355b06,'subUnitId':_0x11b0c4},{'fromCollab':!0x0});});}}}[_0x124796(0x134)](){const _0xf3731=_0x124796;this[_0xf3731(0x167)]['next']('presenting');const _0x1e6e45=new Map(),_0x3a257d=this['_commandDisposable']=new _0x274869();_0x3a257d['add'](_0x398eff(()=>{const _0x3148cf=_0xf3731;_0x1e6e45[_0x3148cf(0xff)](_0x3b24a8=>_0x3b24a8['complete']()),_0x1e6e45['clear']();})),_0x3a257d[_0xf3731(0x107)](this[_0xf3731(0x12c)][_0xf3731(0xf6)](_0x851488=>{const _0x3fff64=_0xf3731;var _0x3dec42;if(_0x851488[_0x3fff64(0xee)]!==_0x43ff22[_0x3fff64(0x108)]||!this[_0x3fff64(0x166)]['shouldShareOperation'](_0x851488['id']))return;const {id:_0x30eb49}=_0x851488;let _0x1d887c;_0x1e6e45[_0x3fff64(0x120)](_0x30eb49)?_0x1d887c=_0x1e6e45[_0x3fff64(0x130)](_0x30eb49):(_0x1d887c=new _0x169f7c(),_0x1e6e45['set'](_0x30eb49,_0x1d887c),_0x1d887c[_0x3fff64(0x11c)](_0x6b2616((_0x3dec42=this[_0x3fff64(0x146)][_0x3fff64(0x171)](Ce))!=null?_0x3dec42:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57fe30=>{const _0x271fe8=_0x3fff64;this['_collabSession'][_0x271fe8(0xe7)]({'eventID':_0x248419[_0x271fe8(0xde)],'data':{'unitID':this[_0x271fe8(0x15e)],'operations':{[_0x57fe30['id']]:{'id':_0x57fe30['id'],'params':JSON[_0x271fe8(0x170)](_0x57fe30['params'])}}}},this[_0x271fe8(0x15e)]);})),_0x1d887c['next'](_0x851488);})),this[_0xf3731(0x166)][_0xf3731(0xf8)](this[_0xf3731(0x15e)])['forEach'](_0x305518=>this['_collabSession']['send']({'eventID':_0x248419['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf3731(0x15e)],'operations':{[_0x305518['id']]:{'id':_0x305518['id'],'params':JSON['stringify'](_0x305518[_0xf3731(0xf5)])}}}},this[_0xf3731(0x15e)]));}[_0x124796(0xe0)](){const _0x38a531=_0x124796;var _0x31b45c;this[_0x38a531(0x167)][_0x38a531(0x177)](_0x38a531(0x101)),(_0x31b45c=this[_0x38a531(0x17f)])==null||_0x31b45c['dispose'](),this[_0x38a531(0x17f)]=null;}['_startFollowing'](){const _0x202674=_0x124796;var _0x47abf2;(_0x47abf2=this[_0x202674(0x17f)])==null||_0x47abf2['dispose'](),this[_0x202674(0x167)][_0x202674(0x177)](_0x202674(0x143));}[_0x124796(0xfd)](){const _0x782f9=_0x124796;var _0x1dd9df;this[_0x782f9(0x167)]['next'](_0x782f9(0x101)),(_0x1dd9df=this[_0x782f9(0x17f)])==null||_0x1dd9df[_0x782f9(0xec)](),this[_0x782f9(0x17f)]=null;}[_0x124796(0xd8)](){const _0x310603=_0x124796;var _0x43e509;this[_0x310603(0x167)]['next'](_0x310603(0xea)),(_0x43e509=this['_commandDisposable'])==null||_0x43e509[_0x310603(0xec)]();}[_0x124796(0x121)](_0x559bef){const _0x4b26e1=_0x124796;if([_0x4b26e1(0x14d),'not-following',_0x4b26e1(0xfb)][_0x4b26e1(0x142)](this[_0x4b26e1(0x15f)])||!_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0xdb)]||_0x559bef[_0x4b26e1(0x15b)]['presenter']===this['_collabSession'][_0x4b26e1(0x11d)]())return;this[_0x4b26e1(0x15f)]===_0x4b26e1(0x101)&&this['_startFollowing']();const _0x4ef1e4=_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0x110)];Object[_0x4b26e1(0x152)](_0x4ef1e4)['forEach'](_0x347736=>{const _0x579d29=_0x4b26e1;this[_0x579d29(0x12c)][_0x579d29(0x106)](_0x347736['id'],_0x347736['params']?JSON[_0x579d29(0x112)](_0x347736[_0x579d29(0xf5)]):null,{'fromCollab':!0x0});});}[_0x124796(0x10f)](){const _0x558b64=_0x124796;var _0x50b968;this[_0x558b64(0x167)][_0x558b64(0x177)](_0x558b64(0xfb)),(_0x50b968=this[_0x558b64(0x17f)])==null||_0x50b968[_0x558b64(0xec)]();}['_handleOnline'](){const _0xa113a0=_0x124796;this['_status$'][_0xa113a0(0x177)](_0xa113a0(0x101)),this[_0xa113a0(0x161)]();}};N=Y([_(0x2,_0x25e87d),_(0x3,_0xf32bc(L)),_(0x4,_0x2fee39)],N);function Le(){const _0x5d8852=_0x124796,_0x342838=_0x2b18f8(S),_0x877647=_0x2b18f8(_0x439877),_0x4cc196=_0x5d89ee(()=>_0x877647[_0x5d8852(0xf2)](_0x25a426[_0x5d8852(0xef)]),void 0x0,!0x1,[]),[_0xf177ab,_0x1f83e4]=_0x308496(null),[_0x20469c,_0x2ef963]=_0x308496(c[_0x5d8852(0x12a)]),_0xbc5915=_0x39428b(null);return _0x104b05(()=>(_0x4cc196&&_0x342838[_0x5d8852(0x145)](_0x4cc196[_0x5d8852(0x16e)]())[_0x5d8852(0x163)](_0x5d92b8=>{const _0x4d0081=_0x5d8852;_0x1f83e4(_0x5d92b8),_0xbc5915['current']=_0x5d92b8[_0x4d0081(0xfc)][_0x4d0081(0x169)](_0x3b0ae6=>{_0x2ef963(_0x3b0ae6);});}),()=>{const _0x18693e=_0x5d8852;var _0x4d6540;(_0x4d6540=_0xbc5915['current'])==null||_0x4d6540['unsubscribe'](),_0xbc5915[_0x18693e(0xe3)]=null;}),[_0x4cc196,_0x342838]),_0xf177ab?_0x23b3a7(_0x36bd65,{'align':'end','disabled':_0x20469c===c[_0x5d8852(0x128)],'className':_0x5d8852(0xfe),'overlay':_0x23b3a7(Re,{'status':_0x20469c,'coordinator':_0xf177ab}),'children':_0x23b3a7('button',{'className':_0x10333b(_0x5d8852(0x164),{'univer-cursor-not-allowed':_0x20469c===c[_0x5d8852(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20469c!==c[_0x5d8852(0x128)]}),'type':_0x5d8852(0x16b),'children':_0x23b3a7(W,{'className':_0x5d8852(0x104)})})}):null;}function Re(_0xa95eb9){const _0x37d612=_0x124796,{status:_0x56f2ee,coordinator:_0x1a17c6}=_0xa95eb9;switch(_0x56f2ee){case c[_0x37d612(0x12a)]:return _0x23b3a7($e,{'coordinator':_0x1a17c6});case c['FOLLOWING']:return _0x23b3a7(xe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x17e)]:return _0x23b3a7(Pe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x128)]:return _0x23b3a7(Te,{});case c[_0x37d612(0x11b)]:return _0x23b3a7(Ae,{'coordinator':_0x1a17c6});default:return null;}}function $e(_0x3af653){const _0x41ca7c=_0x124796,{coordinator:_0x407e8a}=_0x3af653;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x41ca7c(0xda),{'className':_0x41ca7c(0x158),'children':_0x41ca7c(0x114)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0x407e8a[_0x41ca7c(0x119)](),'children':_0x41ca7c(0xf1)})]});}function xe(_0x179d21){const _0x5d5858=_0x124796,{coordinator:_0xc84bf6}=_0x179d21;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x5d5858(0xda),{'className':_0x5d5858(0x158),'children':_0x5d5858(0x149)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0xc84bf6['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x3d2816){const _0xf1899c=_0x124796,{coordinator:_0x12cd31}=_0x3d2816;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0xf1899c(0xda),{'className':_0xf1899c(0x158),'children':_0xf1899c(0x11f)}),_0x23b3a7(_0x14fb40,{'variant':_0xf1899c(0x168),'onClick':()=>_0x12cd31[_0xf1899c(0x175)](),'children':_0xf1899c(0x16f)})]});}function Ae(_0xe4641d){const _0x14458e=_0x124796,{coordinator:_0x4061c4}=_0xe4641d;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x14458e(0xda),{'className':_0x14458e(0x158),'children':_0x14458e(0x15d)}),_0x23b3a7(_0x14fb40,{'variant':_0x14458e(0x12b),'onClick':()=>_0x4061c4['stopPresenting'](),'children':_0x14458e(0x182)})]});}function Te(){const _0x7e4f8c=_0x124796;return _0x23b3a7(_0x22f41e,{'children':_0x7e4f8c(0x127)});}var Fe=Object[_0x124796(0xe8)],He=(_0x308c4d,_0x16fad8,_0x546931,_0x42e059)=>{const _0x5348c3=_0x124796;for(var _0x5de742=_0x42e059>0x1?void 0x0:_0x42e059?Fe(_0x16fad8,_0x546931):_0x16fad8,_0x515853=_0x308c4d[_0x5348c3(0x100)]-0x1,_0xd597ce;_0x515853>=0x0;_0x515853--)(_0xd597ce=_0x308c4d[_0x515853])&&(_0x5de742=_0xd597ce(_0x5de742)||_0x5de742);return _0x5de742;},A=(_0x31c79d,_0x1817f0)=>(_0x1b3ddd,_0x1a62fc)=>_0x1817f0(_0x1b3ddd,_0x1a62fc,_0x31c79d);let m=class extends _0x6d8bc5{constructor(_0x5564b8,_0x3743ef){const _0x46c189=_0x124796;super(),this[_0x46c189(0x126)]=_0x5564b8,this[_0x46c189(0xe5)]=_0x3743ef,this[_0x46c189(0x17d)]();}[_0x124796(0x17d)](){const _0x55ae0f=_0x124796;this[_0x55ae0f(0x174)](this[_0x55ae0f(0xe5)][_0x55ae0f(0xf7)](_0x1c14fe['HEADER_MENU'],()=>_0x10e3da(Le,this[_0x55ae0f(0x126)])));}};m=He([A(0x0,_0xf32bc(_0x4813b0)),A(0x1,_0x478479)],m);const ye=_0x124796(0x17b),T={};var Ue=Object[_0x124796(0xe8)],Ve=(_0x48ca1f,_0x213db6,_0x17c040,_0x3fecf3)=>{const _0x3f4df8=_0x124796;for(var _0x104303=_0x3fecf3>0x1?void 0x0:_0x3fecf3?Ue(_0x213db6,_0x17c040):_0x213db6,_0x2c6872=_0x48ca1f[_0x3f4df8(0x100)]-0x1,_0x2fbf52;_0x2c6872>=0x0;_0x2c6872--)(_0x2fbf52=_0x48ca1f[_0x2c6872])&&(_0x104303=_0x2fbf52(_0x104303)||_0x104303);return _0x104303;},je=(_0x223ba7,_0x125e3b)=>(_0x35d6eb,_0x4d7ec6)=>_0x125e3b(_0x35d6eb,_0x4d7ec6,_0x223ba7);let I=class extends _0x6d8bc5{constructor(_0x5e5b2f){const _0x42b09e=_0x124796;super(),this['_liveShareService']=_0x5e5b2f,this[_0x42b09e(0x160)]();}['_init'](){const _0x5611bc=_0x124796;[_0x10eab9['id'],_0x3dcd5e['id'],_0x404888['id']][_0x5611bc(0xff)](_0x2df43c=>{const _0x314d99=_0x5611bc;this[_0x314d99(0x174)](this[_0x314d99(0x166)][_0x314d99(0x133)](_0x2df43c));});}};I=Ve([je(0x0,_0xf32bc(L))],I);var Me=Object[_0x124796(0x138)],ke=Object[_0x124796(0xe8)],Ge=(_0x53d7bd,_0x560455,_0x213934)=>_0x560455 in _0x53d7bd?Me(_0x53d7bd,_0x560455,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213934}):_0x53d7bd[_0x560455]=_0x213934,We=(_0x4ea3be,_0x4acbc0,_0xd38328,_0xab9b0c)=>{for(var _0xc0c20a=_0xab9b0c>0x1?void 0x0:_0xab9b0c?ke(_0x4acbc0,_0xd38328):_0x4acbc0,_0x572987=_0x4ea3be['length']-0x1,_0x548715;_0x572987>=0x0;_0x572987--)(_0x548715=_0x4ea3be[_0x572987])&&(_0xc0c20a=_0x548715(_0xc0c20a)||_0xc0c20a);return _0xc0c20a;},F=(_0xd56d7a,_0x376d59)=>(_0x35395c,_0x4509cf)=>_0x376d59(_0x35395c,_0x4509cf,_0xd56d7a),B=(_0x4d80a5,_0x22039e,_0x133439)=>Ge(_0x4d80a5,typeof _0x22039e!=_0x124796(0x16d)?_0x22039e+'':_0x22039e,_0x133439);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0xc55cf5{constructor(_0x251d0e=T,_0x48f431,_0x33ae32){const _0x4daebc=_0x124796;super(),this[_0x4daebc(0x10e)]=_0x251d0e,this['_injector']=_0x48f431,this[_0x4daebc(0x146)]=_0x33ae32;const {..._0x58f319}=_0x1b3366({},T,this[_0x4daebc(0x10e)]);this[_0x4daebc(0x146)][_0x4daebc(0x13f)](ye,_0x58f319);}['onStarting'](){const _0x538e7f=_0x124796;_0x1e72fe(this['_injector'],_0x592dcd([[L],[S],[I],[m]],this['_config'][_0x538e7f(0x123)])),_0x1012e4(this['_injector'],[[I]]);}[_0x124796(0x173)](){const _0x2e6241=_0x124796;_0x1012e4(this[_0x2e6241(0x126)],[[m]]);}};B(b,_0x124796(0xee),_0x25a426['UNIVER_UNKNOWN']),B(b,_0x124796(0x11e),Ye),b=We([_0x144947(_0x164bb6),F(0x1,_0xf32bc(_0x4813b0)),F(0x2,_0x25e87d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','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','values','createInstance','div','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','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4e27(_0x42c8d4,_0x1602b6){_0x42c8d4=_0x42c8d4-0x12e;const _0x42f9e8=_0x42f9();let _0x4e2766=_0x42f9e8[_0x42c8d4];return _0x4e2766;}function _0x42f9(){const _0x20a766=['function','getLiveShareStatus','getUnitId','@univerjs-pro/live-share','UniverProLiveShare','executeCommand','startColumn','@univerjs/core/facade','40MJOVdK','LiveShareStatus','getSheetId','LiveShareStatusEnum','tryStartPresenting','IRenderManagerService','UniverSheetsFacade','getRenderById','515629ksfXFw','get','No\x20active\x20workbook\x20found.','SetWorksheetActiveOperation','extend','getLiveShareCoordinatorSync','@univerjs/sheets-ui','2686734eJXRoH','FUniver','3041365ODtuAo','27PokXDy','LiveShareController','startFollowing','getActiveWorkbook','FRange','UniverSheets','stopFollowing','196371tIzael','_injector','getId','PRESENTING','1570694VUpMJt','UniverSheetsUi','120412GlQbRY','FEnum','stopPresenting','object','@univerjs/engine-render','UniverCoreFacade','UniverEngineRender','3584875MDppUq','@univerjs/sheets/facade','amd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','syncExecuteCommand','@univerjs/sheets','startPresenting'];_0x42f9=function(){return _0x20a766;};return _0x42f9();}(function(_0x36a965,_0x220549){const _0x1b77f8=_0x4e27,_0x16778d=_0x36a965();while(!![]){try{const _0x2d5990=parseInt(_0x1b77f8(0x159))/0x1+-parseInt(_0x1b77f8(0x137))/0x2+-parseInt(_0x1b77f8(0x163))/0x3*(-parseInt(_0x1b77f8(0x139))/0x4)+parseInt(_0x1b77f8(0x162))/0x5+parseInt(_0x1b77f8(0x160))/0x6+-parseInt(_0x1b77f8(0x140))/0x7+-parseInt(_0x1b77f8(0x151))/0x8*(parseInt(_0x1b77f8(0x133))/0x9);if(_0x2d5990===_0x220549)break;else _0x16778d['push'](_0x16778d['shift']());}catch(_0x24a93f){_0x16778d['push'](_0x16778d['shift']());}}}(_0x42f9,0x6a753),function(_0x160fb5,_0x3936b5){const _0x149c70=_0x4e27;typeof exports==_0x149c70(0x13c)&&typeof module<'u'?_0x3936b5(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x149c70(0x149)&&define[_0x149c70(0x142)]?define([_0x149c70(0x14c),_0x149c70(0x13d),_0x149c70(0x147),_0x149c70(0x15f),_0x149c70(0x141),_0x149c70(0x150)],_0x3936b5):(_0x160fb5=typeof globalThis<'u'?globalThis:_0x160fb5||self,_0x3936b5(_0x160fb5[_0x149c70(0x14d)],_0x160fb5[_0x149c70(0x13f)],_0x160fb5[_0x149c70(0x131)],_0x160fb5[_0x149c70(0x138)],_0x160fb5[_0x149c70(0x157)],_0x160fb5[_0x149c70(0x13e)]));}(this,function(_0x2be22e,_0x119279,_0x52bbe3,_0x68c553,_0x35bd5f,_0x3bc277){'use strict';const _0x5878f3=_0x4e27;class _0x41dd81 extends _0x35bd5f[_0x5878f3(0x130)]{[_0x5878f3(0x143)](_0x49ef69,_0x10b1a6,_0x5897fb,_0x5480d8,_0x8e22f5){const _0xa74ebf=_0x5878f3,_0x22a6e2=_0x49ef69['get'](_0x2be22e[_0xa74ebf(0x164)]),_0x48d3dd=_0x49ef69[_0xa74ebf(0x15a)](_0x119279[_0xa74ebf(0x156)]),_0x57431d=_0x10b1a6[_0xa74ebf(0x14b)](),_0x310ee5=_0x10b1a6['getActiveSheet'](),_0x5efc99=_0x22a6e2[_0xa74ebf(0x15e)](_0x57431d);(_0x5efc99==null?void 0x0:_0x5efc99[_0xa74ebf(0x145)]())!==_0x2be22e['LiveShareStatus'][_0xa74ebf(0x136)]||(_0x5897fb[_0xa74ebf(0x153)]()!==_0x310ee5[_0xa74ebf(0x153)]()&&this['_commandService'][_0xa74ebf(0x14e)](_0x52bbe3[_0xa74ebf(0x15c)]['id'],{'unitId':_0x57431d,'subUnitId':_0x5897fb[_0xa74ebf(0x153)]()}),!_0x48d3dd[_0xa74ebf(0x158)](_0x57431d))||_0x8e22f5[_0xa74ebf(0x146)](_0x68c553['SetScrollOperation']['id'],{'unitId':_0x10b1a6[_0xa74ebf(0x14b)](),'sheetId':_0x5897fb[_0xa74ebf(0x153)](),'sheetViewStartRow':_0x5480d8['startRow'],'sheetViewStartColumn':_0x5480d8[_0xa74ebf(0x14f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35bd5f['FRange'][_0x5878f3(0x15d)](_0x41dd81);class _0x523dbe extends _0x3bc277[_0x5878f3(0x161)]{[_0x5878f3(0x14a)](){const _0x45d4d5=_0x5878f3;var _0x555238,_0x12dcd3;const _0x3faf1d=this[_0x45d4d5(0x134)][_0x45d4d5(0x15a)](_0x2be22e[_0x45d4d5(0x164)]),_0xed7d90=(_0x555238=this[_0x45d4d5(0x12f)]())==null?void 0x0:_0x555238['getId']();if(!_0xed7d90)throw new Error(_0x45d4d5(0x15b));const _0x78d8f8=_0x3faf1d[_0x45d4d5(0x15e)](_0xed7d90);return(_0x12dcd3=_0x78d8f8==null?void 0x0:_0x78d8f8['getStatus']())!=null?_0x12dcd3:_0x2be22e[_0x45d4d5(0x152)]['IDLE'];}[_0x5878f3(0x12e)](){const _0x591c66=_0x5878f3;var _0x4feca5;const _0x3ea656=this['_injector'][_0x591c66(0x15a)](_0x2be22e[_0x591c66(0x164)]),_0x1778d3=(_0x4feca5=this[_0x591c66(0x12f)]())==null?void 0x0:_0x4feca5[_0x591c66(0x135)]();if(!_0x1778d3)throw new Error('No\x20active\x20workbook\x20found.');const _0x26155d=_0x3ea656[_0x591c66(0x15e)](_0x1778d3);if(!_0x26155d)throw new Error(_0x591c66(0x144));_0x26155d['startFollowing']();}['stopFollowing'](){const _0x1fdaa4=_0x5878f3;var _0x3ed54f;const _0x226465=this['_injector'][_0x1fdaa4(0x15a)](_0x2be22e[_0x1fdaa4(0x164)]),_0x41b0f9=(_0x3ed54f=this[_0x1fdaa4(0x12f)]())==null?void 0x0:_0x3ed54f[_0x1fdaa4(0x135)]();if(!_0x41b0f9)throw new Error('No\x20active\x20workbook\x20found.');const _0x571f5d=_0x226465['getLiveShareCoordinatorSync'](_0x41b0f9);if(!_0x571f5d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x571f5d[_0x1fdaa4(0x132)]();}[_0x5878f3(0x148)](){const _0xdb7722=_0x5878f3;var _0x1b6c8e;const _0x1845cc=this[_0xdb7722(0x134)][_0xdb7722(0x15a)](_0x2be22e[_0xdb7722(0x164)]),_0x3b5151=(_0x1b6c8e=this[_0xdb7722(0x12f)]())==null?void 0x0:_0x1b6c8e[_0xdb7722(0x135)]();if(!_0x3b5151)throw new Error(_0xdb7722(0x15b));const _0x527e61=_0x1845cc[_0xdb7722(0x15e)](_0x3b5151);if(!_0x527e61)throw new Error(_0xdb7722(0x144));_0x527e61[_0xdb7722(0x155)]();}[_0x5878f3(0x13b)](){const _0xd8460f=_0x5878f3;var _0xf4881c;const _0x2f2cee=this[_0xd8460f(0x134)][_0xd8460f(0x15a)](_0x2be22e[_0xd8460f(0x164)]),_0x2c9020=(_0xf4881c=this['getActiveWorkbook']())==null?void 0x0:_0xf4881c[_0xd8460f(0x135)]();if(!_0x2c9020)throw new Error('No\x20active\x20workbook\x20found.');const _0xcf894d=_0x2f2cee['getLiveShareCoordinatorSync'](_0x2c9020);if(!_0xcf894d)throw new Error(_0xd8460f(0x144));_0xcf894d[_0xd8460f(0x13b)]();}}_0x3bc277['FUniver'][_0x5878f3(0x15d)](_0x523dbe);class _0x2b1ea0 extends _0x3bc277[_0x5878f3(0x13a)]{get[_0x5878f3(0x154)](){const _0x258345=_0x5878f3;return _0x2be22e[_0x258345(0x152)];}}_0x3bc277[_0x5878f3(0x13a)]['extend'](_0x2b1ea0);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4254(_0x358cd3,_0x5dde13){_0x358cd3=_0x358cd3-0x1a2;const _0x44a1d7=_0x44a1();let _0x425494=_0x44a1d7[_0x358cd3];return _0x425494;}function _0x44a1(){const _0x307f2b=['@univerjs/design','OPERATION','_presenter','toStringTag','tag','_fetchOperations','_injector','getOwnPropertyDescriptor','path','useEffect','_handleTerminate','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','evenodd','use','_univerInstanceService','58003xZfGhG','Present\x20this\x20document','UniverInstanceType','fill','SAME_OPERATION_SHARE_INTERVAL','2980269NMVlRG','LIVESHARE_OPERATION','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','substring','executeCommand','UniverIcon','_collabSession','6SjHKJM','@univerjs/sheets-ui','IConfigService','button','init','sessionStatus$','subscribe','onRendered','data','UNIVER_UNKNOWN','_handleNewHost','IUniverInstanceService','useObservable','UniverSheets','send','You\x27are\x20offline.','_handleOffline','FOLLOWING','jsxs','Fragment','_beIdle','LiveShareService','You\x27re\x20presenting\x20the\x20document','find','getUnitId','LiveShareCoordinator','RxDisposable','SessionStatus','defs','replace','override','stopPresenting','displayName','object','next','CollaborationEvent','InsertSheetMutation','following','operations','startFollowing','Button','22337yStnnN','stopFollowing','current','useRef','attrs','UniverUi','tryStartPresenting','pipe','_mountLiveShare','_config','registerDependencies','toDisposable','getLiveShareCoordinator','_handleNewChangeSets','live-share.config','OFFLINE','memberID','clear','reverse','complete','clsx','@univerjs-pro/collaboration','has','_init','http://www.w3.org/2000/svg','idle','Module','React','mask','not-following','Disposable','_status$','UniverDesign','forEach','onStarting','LIVESHARE_FETCH_OPERATIONS','pluginName','params','touchDependencies','_configService','offline','dispose','idSuffix','LiveShareController','xlink:href','get','Start','UniverLiveSharePlugin','registerSharedOperation','_sharedOperations','1496wbtWdR','useState','values','@univerjs/ui','trim','length','unitId','setConfig','SetWorksheetActiveOperation','@univerjs/sheets','react','1651520zdeWmR','presenter','DesktopLiveShareController','_handleOperation','_commandService','NEW_CHANGESETS','Inject','event$','rxjs','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','HEADER_MENU','95uozeQX','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','DependentOn','delete','NOT_FOLLOWING','useDependency','presenting','LiveShareIcon','entries','shouldShareOperation','_stopFollowing','_stopPresenting','getMemberID','2uUCNCb','Plugin','_commandDisposable','string','amd','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','includes','connectInjector','throttleTime','symbol','@univerjs-pro/collaboration-client','LiveShareStatus','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','children','toString','SetScrollOperation','UniverProCollaboration','204cwNnbE','_status','asObservable','parse','takeUntil','_entities','IDLE','getLiveShareCoordinatorSync','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','_liveShareService','ICommandService','UniverCollaborationClientPlugin','operators','_reporters','merge','CollaborationSessionService','stringify','PRESENTING','status$','UNIVER_SHEET','_startFollowing','dispose$','jsx','_uiPartsService','1em','LIVESHARE_NEW_HOST','add','exports','colorChannel1','end','_handleOnline','set','getTypeOfUnitDisposed$','defineProperty','_startPresenting','UniverSheetsUi','getValue','LiveShare','377188ndyAJb','529118mpFrCJ','@univerjs/core','Injector','currentColor','208752mdYccc','rxjs/operators','type','disposeWithMe','default','url(#$1','react/jsx-runtime','_collabSessionService','from','ONLINE','createElement','Stop\x20presenting','registerComponent','_unitID','UniverCore','div','svg','_startLiveShareCoordinator'];_0x44a1=function(){return _0x307f2b;};return _0x44a1();}(function(_0x362ebf,_0xaf3a3f){const _0x499057=_0x4254,_0x4780f2=_0x362ebf();while(!![]){try{const _0x4855e6=-parseInt(_0x499057(0x255))/0x1*(-parseInt(_0x499057(0x21c))/0x2)+parseInt(_0x499057(0x288))/0x3*(parseInt(_0x499057(0x254))/0x4)+-parseInt(_0x499057(0x20e))/0x5*(parseInt(_0x499057(0x259))/0x6)+-parseInt(_0x499057(0x1c5))/0x7*(-parseInt(_0x499057(0x1f7))/0x8)+-parseInt(_0x499057(0x280))/0x9+parseInt(_0x499057(0x202))/0xa+parseInt(_0x499057(0x27b))/0xb*(-parseInt(_0x499057(0x22d))/0xc);if(_0x4855e6===_0xaf3a3f)break;else _0x4780f2['push'](_0x4780f2['shift']());}catch(_0x6123e4){_0x4780f2['push'](_0x4780f2['shift']());}}}(_0x44a1,0x611b7),function(_0x549dc5,_0x308692){const _0x2a8cdb=_0x4254;typeof exports==_0x2a8cdb(0x1bd)&&typeof module<'u'?_0x308692(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2a8cdb(0x220)]?define([_0x2a8cdb(0x249),_0x2a8cdb(0x256),_0x2a8cdb(0x1fa),_0x2a8cdb(0x25f),_0x2a8cdb(0x26b),_0x2a8cdb(0x201),_0x2a8cdb(0x1da),_0x2a8cdb(0x226),_0x2a8cdb(0x200),'rxjs',_0x2a8cdb(0x25a),_0x2a8cdb(0x289)],_0x308692):(_0x549dc5=typeof globalThis<'u'?globalThis:_0x549dc5||self,_0x308692(_0x549dc5['UniverProLiveShare']={},_0x549dc5[_0x2a8cdb(0x267)],_0x549dc5[_0x2a8cdb(0x1ca)],_0x549dc5[_0x2a8cdb(0x1e0)],_0x549dc5[_0x2a8cdb(0x1e5)],_0x549dc5['React'],_0x549dc5[_0x2a8cdb(0x22c)],_0x549dc5['UniverProCollaborationClient'],_0x549dc5[_0x2a8cdb(0x1a9)],_0x549dc5[_0x2a8cdb(0x20a)],_0x549dc5['rxjs'][_0x2a8cdb(0x23a)],_0x549dc5[_0x2a8cdb(0x251)]));}(this,function(_0xd8e6ab,_0x18a95a,_0x45db12,_0x32404e,_0x507dbe,_0x6f3e18,_0x43dba0,_0x1ae231,_0x924280,_0x36c49a,_0x43edb4,_0x206882){'use strict';const _0x40e147=_0x4254;var _0x4920da=Object[_0x40e147(0x24f)],_0x55cb22=(_0xae40b3,_0x586a90,_0x58240d)=>_0x586a90 in _0xae40b3?_0x4920da(_0xae40b3,_0x586a90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58240d}):_0xae40b3[_0x586a90]=_0x58240d,_0x186f03=(_0x41f9f3,_0x28ebc3,_0x363778)=>_0x55cb22(_0x41f9f3,typeof _0x28ebc3!=_0x40e147(0x225)?_0x28ebc3+'':_0x28ebc3,_0x363778);function _0x4b8c6e({ref:_0x4d87ce,..._0x2df380}){const _0xaa7b38=_0x40e147,{icon:_0x4c120e,id:_0x3c623a,className:_0x384c31,extend:_0x2d68a0,..._0xc43c66}=_0x2df380,_0x422fa4=('univerjs-icon\x20univerjs-icon-'+_0x3c623a+'\x20'+(_0x384c31||''))[_0xaa7b38(0x1fb)](),_0x113a10=_0x6f3e18[_0xaa7b38(0x1c8)]('_'+_0x437eac());return _0x1b4c5e(_0x4c120e,''+_0x3c623a,{'defIds':_0x4c120e[_0xaa7b38(0x276)],'idSuffix':_0x113a10[_0xaa7b38(0x1c7)]},{'ref':_0x4d87ce,'className':_0x422fa4,..._0xc43c66},_0x2d68a0);}function _0x1b4c5e(_0x30c273,_0x458113,_0x5e2f61,_0x335d25,_0x5a8499){const _0x19a4df=_0x40e147;return _0x6f3e18['createElement'](_0x30c273[_0x19a4df(0x26f)],{'key':_0x458113,..._0x383667(_0x30c273,_0x5e2f61,_0x5a8499),..._0x335d25},(_0x1102dd(_0x30c273,_0x5e2f61)['children']||[])[_0x19a4df(0x283)]((_0x46967e,_0x25fb53)=>_0x1b4c5e(_0x46967e,_0x458113+'-'+_0x30c273['tag']+'-'+_0x25fb53,_0x5e2f61,void 0x0,_0x5a8499)));}function _0x383667(_0x9b1fa7,_0x273149,_0x58708a){const _0x20c268=_0x40e147,_0x168785={..._0x9b1fa7[_0x20c268(0x1c9)]};_0x58708a!=null&&_0x58708a[_0x20c268(0x24a)]&&_0x168785[_0x20c268(0x27e)]===_0x20c268(0x24a)&&(_0x168785[_0x20c268(0x27e)]=_0x58708a[_0x20c268(0x24a)]),_0x9b1fa7[_0x20c268(0x26f)]==='mask'&&_0x168785['id']&&(_0x168785['id']=_0x168785['id']+_0x273149[_0x20c268(0x1ef)]),Object[_0x20c268(0x217)](_0x168785)[_0x20c268(0x1e6)](([_0x2a8c46,_0x4fa5b4])=>{const _0x430ab5=_0x20c268;_0x2a8c46===_0x430ab5(0x1e1)&&typeof _0x4fa5b4==_0x430ab5(0x21f)&&(_0x168785[_0x2a8c46]=_0x4fa5b4[_0x430ab5(0x1b9)](/url\(#(.*)\)/,_0x430ab5(0x25e)+_0x273149[_0x430ab5(0x1ef)]+')'));});const {defIds:_0x125d33}=_0x273149;return!_0x125d33||_0x125d33[_0x20c268(0x1fc)]===0x0||(_0x9b1fa7['tag']===_0x20c268(0x279)&&_0x168785[_0x20c268(0x1f1)]&&(_0x168785[_0x20c268(0x1f1)]=_0x168785[_0x20c268(0x1f1)]+_0x273149[_0x20c268(0x1ef)]),Object[_0x20c268(0x217)](_0x168785)[_0x20c268(0x1e6)](([_0x2469bc,_0x35e1cf])=>{const _0x39be40=_0x20c268;typeof _0x35e1cf==_0x39be40(0x21f)&&(_0x168785[_0x2469bc]=_0x35e1cf[_0x39be40(0x1b9)](/url\(#(.*)\)/,_0x39be40(0x25e)+_0x273149[_0x39be40(0x1ef)]+')'));})),_0x168785;}function _0x1102dd(_0x489530,_0x20a6da){const _0x84fb8=_0x40e147;var _0x5bb615;const {defIds:_0x531cdc}=_0x20a6da;return!_0x531cdc||_0x531cdc[_0x84fb8(0x1fc)]===0x0?_0x489530:_0x489530['tag']===_0x84fb8(0x1b8)&&((_0x5bb615=_0x489530[_0x84fb8(0x229)])!=null&&_0x5bb615[_0x84fb8(0x1fc)])?{..._0x489530,'children':_0x489530[_0x84fb8(0x229)][_0x84fb8(0x283)](_0x26af6a=>typeof _0x26af6a[_0x84fb8(0x1c9)]['id']==_0x84fb8(0x21f)&&_0x531cdc&&_0x531cdc[_0x84fb8(0x222)](_0x26af6a[_0x84fb8(0x1c9)]['id'])?{..._0x26af6a,'attrs':{..._0x26af6a['attrs'],'id':_0x26af6a[_0x84fb8(0x1c9)]['id']+_0x20a6da['idSuffix']}}:_0x26af6a)}:_0x489530;}function _0x437eac(){const _0x5831b6=_0x40e147;return Math['random']()[_0x5831b6(0x22a)](0x24)[_0x5831b6(0x284)](0x2,0x8);}_0x4b8c6e[_0x40e147(0x1bc)]=_0x40e147(0x286);const _0x2f7327={'tag':_0x40e147(0x269),'attrs':{'xmlns':_0x40e147(0x1dd),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x40e147(0x246),'height':'1em'},'children':[{'tag':_0x40e147(0x273),'attrs':{'fill':_0x40e147(0x258),'d':_0x40e147(0x228)}},{'tag':_0x40e147(0x273),'attrs':{'fill':_0x40e147(0x258),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x40e147(0x278)}}]},_0x169732=_0x6f3e18['forwardRef'](function(_0xcb2712,_0x55ff66){const _0x9c7fcc=_0x40e147;return _0x6f3e18[_0x9c7fcc(0x263)](_0x4b8c6e,Object['assign']({},_0xcb2712,{'id':'live-share-icon','ref':_0x55ff66,'icon':_0x2f7327}));});_0x169732[_0x40e147(0x1bc)]=_0x40e147(0x216);class _0x24715f extends _0x18a95a[_0x40e147(0x1e3)]{constructor(){const _0x29b5b5=_0x40e147;super(...arguments),_0x186f03(this,_0x29b5b5(0x1f6),new Set()),_0x186f03(this,_0x29b5b5(0x23b),new Set());}[_0x40e147(0x1f5)](_0x4e094b){const _0x3f0401=_0x40e147;return this[_0x3f0401(0x1f6)][_0x3f0401(0x248)](_0x4e094b),_0x18a95a[_0x3f0401(0x1d0)](()=>this['_sharedOperations'][_0x3f0401(0x212)](_0x4e094b));}['registerInitialStateReporter'](_0xad9b7d){const _0x583b1d=_0x40e147;return this['_reporters'][_0x583b1d(0x248)](_0xad9b7d),_0x18a95a[_0x583b1d(0x1d0)](()=>this[_0x583b1d(0x23b)][_0x583b1d(0x212)](_0xad9b7d));}['shouldShareOperation'](_0x432be4){const _0xcc1dbc=_0x40e147;return this[_0xcc1dbc(0x1f6)][_0xcc1dbc(0x1db)](_0x432be4);}['getInitialStates'](_0xbe5bb7){const _0x4651eb=_0x40e147;return Array[_0x4651eb(0x261)](this[_0x4651eb(0x23b)])[_0x4651eb(0x283)](_0x48f30a=>_0x48f30a(_0xbe5bb7));}}var _0x352d4d=Object[_0x40e147(0x272)],_0x38f53e=(_0x3f4e60,_0x48d372,_0x12ec93,_0x1b0c8d)=>{const _0x327d9f=_0x40e147;for(var _0x3e918d=_0x1b0c8d>0x1?void 0x0:_0x1b0c8d?_0x352d4d(_0x48d372,_0x12ec93):_0x48d372,_0x177a9a=_0x3f4e60[_0x327d9f(0x1fc)]-0x1,_0x1515db;_0x177a9a>=0x0;_0x177a9a--)(_0x1515db=_0x3f4e60[_0x177a9a])&&(_0x3e918d=_0x1515db(_0x3e918d)||_0x3e918d);return _0x3e918d;},_0x2d1d1f=(_0x172bbb,_0x36e7ee)=>(_0x5c86d7,_0x536cce)=>_0x36e7ee(_0x5c86d7,_0x536cce,_0x172bbb);_0xd8e6ab[_0x40e147(0x1f0)]=class extends _0x18a95a[_0x40e147(0x1b6)]{constructor(_0x1173ea,_0x54bb89,_0x53af79){const _0x13d42b=_0x40e147;super(),_0x186f03(this,_0x13d42b(0x232),new Map()),(this[_0x13d42b(0x27a)]=_0x1173ea,this[_0x13d42b(0x271)]=_0x54bb89,this[_0x13d42b(0x260)]=_0x53af79,this[_0x13d42b(0x1dc)]());}async[_0x40e147(0x1d1)](_0x4172ec){const _0x3b25db=_0x40e147;return this[_0x3b25db(0x232)][_0x3b25db(0x1db)](_0x4172ec)||await this[_0x3b25db(0x26a)](_0x4172ec),this[_0x3b25db(0x232)][_0x3b25db(0x1f2)](_0x4172ec);}[_0x40e147(0x234)](_0x239a90){var _0x43f00a;return(_0x43f00a=this['_entities']['get'](_0x239a90))!=null?_0x43f00a:null;}['_init'](){const _0x4ecfe5=_0x40e147;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x18a95a[_0x4ecfe5(0x27d)][_0x4ecfe5(0x241)])[_0x4ecfe5(0x1cc)](_0x43edb4['takeUntil'](this[_0x4ecfe5(0x243)]))[_0x4ecfe5(0x1a2)](async _0x501e1d=>{const _0x3330fc=_0x4ecfe5,_0x56dc63=_0x501e1d[_0x3330fc(0x1b4)]();this[_0x3330fc(0x232)][_0x3330fc(0x1db)](_0x56dc63)||this['_startLiveShareCoordinator'](_0x56dc63);}),this[_0x4ecfe5(0x27a)][_0x4ecfe5(0x24e)](_0x18a95a[_0x4ecfe5(0x27d)]['UNIVER_SHEET'])[_0x4ecfe5(0x1cc)](_0x43edb4['takeUntil'](this[_0x4ecfe5(0x243)]))[_0x4ecfe5(0x1a2)](_0x5545fa=>{const _0x393167=_0x4ecfe5,_0x1dbd5e=_0x5545fa[_0x393167(0x1b4)](),_0x1d9a3e=this[_0x393167(0x232)]['get'](_0x1dbd5e);_0x1d9a3e==null||_0x1d9a3e['dispose']();});}async['_startLiveShareCoordinator'](_0x5b1b8b){const _0x4de7b5=_0x40e147,_0x360bfd=await this[_0x4de7b5(0x260)]['requireSession'](_0x5b1b8b),_0x3449ad=this['_injector']['createInstance'](_0xd8e6ab[_0x4de7b5(0x1b5)],_0x5b1b8b,_0x360bfd);return _0x3449ad[_0x4de7b5(0x28c)](),this[_0x4de7b5(0x232)][_0x4de7b5(0x24d)](_0x5b1b8b,_0x3449ad),_0x3449ad;}},_0xd8e6ab[_0x40e147(0x1f0)]=_0x38f53e([_0x2d1d1f(0x0,_0x18a95a[_0x40e147(0x1a7)]),_0x2d1d1f(0x1,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x2d1d1f(0x2,_0x18a95a['Inject'](_0x1ae231[_0x40e147(0x23d)]))],_0xd8e6ab[_0x40e147(0x1f0)]);var _0x4b4d4a=(_0x33b539=>(_0x33b539[_0x40e147(0x1d4)]=_0x40e147(0x1ed),_0x33b539[_0x40e147(0x233)]=_0x40e147(0x1de),_0x33b539['FOLLOWING']=_0x40e147(0x1c1),_0x33b539['NOT_FOLLOWING']=_0x40e147(0x1e2),_0x33b539[_0x40e147(0x23f)]=_0x40e147(0x215),_0x33b539))(_0x4b4d4a||{});const _0x4b4e92=_0x40e147(0x27f),_0x193319=0xc8;_0xd8e6ab[_0x40e147(0x1b5)]=class extends _0x18a95a[_0x40e147(0x1b6)]{constructor(_0xb39e82,_0x346c4d,_0x2ee6fa,_0x21b220,_0x1fb841){const _0x2b2070=_0x40e147;super(),_0x186f03(this,'_status$',new _0x36c49a['BehaviorSubject'](_0x2b2070(0x1de))),_0x186f03(this,_0x2b2070(0x240),this[_0x2b2070(0x1e4)][_0x2b2070(0x22f)]()),_0x186f03(this,_0x2b2070(0x1dc),!0x1),_0x186f03(this,'_commandDisposable',null),_0x186f03(this,_0x2b2070(0x26d),null),(this[_0x2b2070(0x266)]=_0xb39e82,this['_collabSession']=_0x346c4d,this[_0x2b2070(0x1ec)]=_0x2ee6fa,this[_0x2b2070(0x237)]=_0x21b220,this[_0x2b2070(0x206)]=_0x1fb841);}get['_status'](){const _0x51a587=_0x40e147;return this['_status$'][_0x51a587(0x252)]();}['dispose'](){const _0x56c499=_0x40e147;var _0xc067c7;(_0xc067c7=this[_0x56c499(0x21e)])==null||_0xc067c7['dispose'](),this['_status$'][_0x56c499(0x1be)](_0x56c499(0x1de)),this[_0x56c499(0x1e4)]['complete']();}['getStatus'](){return this['_status'];}[_0x40e147(0x28c)](){const _0x328eda=_0x40e147;this['_init']||(this[_0x328eda(0x1dc)]=!0x0,this[_0x328eda(0x287)][_0x328eda(0x28d)][_0x328eda(0x1cc)](_0x43edb4[_0x328eda(0x231)](this['dispose$']))[_0x328eda(0x1a2)](_0x57fe94=>{const _0x2ec67a=_0x328eda;switch(_0x57fe94){case _0x1ae231[_0x2ec67a(0x1b7)][_0x2ec67a(0x1d4)]:this[_0x2ec67a(0x1ac)]();break;case _0x1ae231[_0x2ec67a(0x1b7)][_0x2ec67a(0x262)]:this[_0x2ec67a(0x24c)]();break;}}),this['_collabSession'][_0x328eda(0x209)][_0x328eda(0x1cc)](_0x43edb4[_0x328eda(0x231)](this['dispose$']))[_0x328eda(0x1a2)](_0x154923=>{const _0x2615f9=_0x328eda,{eventID:_0x4f96f0}=_0x154923;switch(_0x4f96f0){case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x247)]:this[_0x2615f9(0x1a6)](_0x154923);break;case _0x43dba0['CollaborationEvent'][_0x2615f9(0x281)]:this[_0x2615f9(0x205)](_0x154923);break;case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x235)]:this['_handleTerminate']();break;case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x207)]:this[_0x2615f9(0x1d2)](_0x154923);break;}}));}[_0x40e147(0x1cb)](){const _0x103e17=_0x40e147;this['_collabSession']['send']({'eventID':_0x43dba0[_0x103e17(0x1bf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x103e17(0x266)],'userID':this[_0x103e17(0x287)][_0x103e17(0x21b)]()}},this[_0x103e17(0x266)]);}[_0x40e147(0x1bb)](){const _0x3416f3=_0x40e147;this['_status']===_0x3416f3(0x215)&&(this[_0x3416f3(0x1e4)][_0x3416f3(0x1be)](_0x3416f3(0x1de)),this[_0x3416f3(0x287)][_0x3416f3(0x1aa)]({'eventID':_0x43dba0[_0x3416f3(0x1bf)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3416f3(0x266)]}},this['_unitID']));}[_0x40e147(0x1c3)](){const _0x39ac82=_0x40e147;this[_0x39ac82(0x22e)]===_0x39ac82(0x1e2)&&(this[_0x39ac82(0x1e4)][_0x39ac82(0x1be)](_0x39ac82(0x1c1)),this[_0x39ac82(0x242)]());}[_0x40e147(0x1c6)](){const _0x51115a=_0x40e147;this[_0x51115a(0x22e)]===_0x51115a(0x1c1)&&this[_0x51115a(0x219)]();}[_0x40e147(0x1a6)](_0x1e7471){const _0x18adbd=_0x40e147,{presenter:_0x152dfd}=_0x1e7471[_0x18adbd(0x1a4)],_0xaa0998=this['_collabSession']['getMemberID']();this[_0x18adbd(0x26d)]=_0x152dfd,_0x152dfd===_0xaa0998?(this[_0x18adbd(0x219)](),this[_0x18adbd(0x250)]()):this[_0x18adbd(0x22e)]!==_0x18adbd(0x1e2)&&(this[_0x18adbd(0x21a)](),this['_startFollowing']());}[_0x40e147(0x270)](){const _0x348352=_0x40e147,_0x2e2cea={'eventID':_0x43dba0['CollaborationEvent'][_0x348352(0x1e8)]};this[_0x348352(0x287)]['send'](_0x2e2cea,this[_0x348352(0x266)]);}[_0x40e147(0x275)](){const _0x454abb=_0x40e147;this[_0x454abb(0x26d)]=null,this[_0x454abb(0x22e)]!==_0x454abb(0x215)&&this[_0x454abb(0x1b0)]();}[_0x40e147(0x1d2)](_0x2bd63c){const _0x51c0ec=_0x40e147;if(this[_0x51c0ec(0x22e)]===_0x51c0ec(0x1c1)&&this[_0x51c0ec(0x26d)]===_0x2bd63c[_0x51c0ec(0x1a4)][_0x51c0ec(0x1d5)]){const _0x5bee2c=_0x43dba0['parseProtocolChangeset'](_0x2bd63c[_0x51c0ec(0x1a4)])['mutations'][_0x51c0ec(0x1d7)]()[_0x51c0ec(0x1b3)](_0x1b2740=>_0x1b2740['id']===_0x924280[_0x51c0ec(0x1c0)]['id']);if(_0x5bee2c){const _0x41b740=_0x5bee2c['params'][_0x51c0ec(0x1fd)],_0x3d13a5=_0x5bee2c[_0x51c0ec(0x1ea)]['sheet']['id'];setTimeout(()=>{const _0x5ce9e2=_0x51c0ec;this[_0x5ce9e2(0x206)][_0x5ce9e2(0x285)](_0x924280['SetWorksheetActiveOperation']['id'],{'unitId':_0x41b740,'subUnitId':_0x3d13a5},{'fromCollab':!0x0});});}}}[_0x40e147(0x250)](){const _0x5a4b17=_0x40e147;this[_0x5a4b17(0x1e4)][_0x5a4b17(0x1be)]('presenting');const _0x37a205=new Map(),_0x15e125=this['_commandDisposable']=new _0x18a95a['DisposableCollection']();_0x15e125[_0x5a4b17(0x248)](_0x18a95a[_0x5a4b17(0x1d0)](()=>{const _0x143514=_0x5a4b17;_0x37a205['forEach'](_0x26a4e6=>_0x26a4e6[_0x143514(0x1d8)]()),_0x37a205[_0x143514(0x1d6)]();})),_0x15e125[_0x5a4b17(0x248)](this[_0x5a4b17(0x206)]['onCommandExecuted'](_0x2f7f63=>{const _0x5c47cd=_0x5a4b17;var _0x1e8f99;if(_0x2f7f63[_0x5c47cd(0x25b)]!==_0x18a95a['CommandType'][_0x5c47cd(0x26c)]||!this[_0x5c47cd(0x237)][_0x5c47cd(0x218)](_0x2f7f63['id']))return;const {id:_0x148c86}=_0x2f7f63;let _0x208795;_0x37a205['has'](_0x148c86)?_0x208795=_0x37a205[_0x5c47cd(0x1f2)](_0x148c86):(_0x208795=new _0x36c49a['Subject'](),_0x37a205[_0x5c47cd(0x24d)](_0x148c86,_0x208795),_0x208795[_0x5c47cd(0x1cc)](_0x43edb4[_0x5c47cd(0x224)]((_0x1e8f99=this['_configService']['getConfig'](_0x4b4e92))!=null?_0x1e8f99:_0x193319,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x233e7f=>{const _0x1296fc=_0x5c47cd;this[_0x1296fc(0x287)]['send']({'eventID':_0x43dba0[_0x1296fc(0x1bf)][_0x1296fc(0x281)],'data':{'unitID':this['_unitID'],'operations':{[_0x233e7f['id']]:{'id':_0x233e7f['id'],'params':JSON[_0x1296fc(0x23e)](_0x233e7f[_0x1296fc(0x1ea)])}}}},this[_0x1296fc(0x266)]);})),_0x208795[_0x5c47cd(0x1be)](_0x2f7f63);})),this[_0x5a4b17(0x237)]['getInitialStates'](this[_0x5a4b17(0x266)])[_0x5a4b17(0x1e6)](_0x5b9c6a=>this[_0x5a4b17(0x287)][_0x5a4b17(0x1aa)]({'eventID':_0x43dba0['CollaborationEvent'][_0x5a4b17(0x281)],'data':{'unitID':this[_0x5a4b17(0x266)],'operations':{[_0x5b9c6a['id']]:{'id':_0x5b9c6a['id'],'params':JSON[_0x5a4b17(0x23e)](_0x5b9c6a[_0x5a4b17(0x1ea)])}}}},this['_unitID']));}[_0x40e147(0x21a)](){const _0x14b7b4=_0x40e147;var _0xe0ef1c;this[_0x14b7b4(0x1e4)]['next'](_0x14b7b4(0x1de)),(_0xe0ef1c=this[_0x14b7b4(0x21e)])==null||_0xe0ef1c[_0x14b7b4(0x1ee)](),this[_0x14b7b4(0x21e)]=null;}[_0x40e147(0x242)](){const _0x3e69ea=_0x40e147;var _0x23f964;(_0x23f964=this['_commandDisposable'])==null||_0x23f964[_0x3e69ea(0x1ee)](),this[_0x3e69ea(0x1e4)][_0x3e69ea(0x1be)](_0x3e69ea(0x1c1));}[_0x40e147(0x1b0)](){const _0x49fdcd=_0x40e147;var _0x4ad768;this['_status$'][_0x49fdcd(0x1be)](_0x49fdcd(0x1de)),(_0x4ad768=this['_commandDisposable'])==null||_0x4ad768[_0x49fdcd(0x1ee)](),this[_0x49fdcd(0x21e)]=null;}[_0x40e147(0x219)](){const _0x28fadd=_0x40e147;var _0x5f373f;this[_0x28fadd(0x1e4)][_0x28fadd(0x1be)](_0x28fadd(0x1e2)),(_0x5f373f=this[_0x28fadd(0x21e)])==null||_0x5f373f[_0x28fadd(0x1ee)]();}[_0x40e147(0x205)](_0x17dc37){const _0x413fc2=_0x40e147;if(['presenting',_0x413fc2(0x1e2),_0x413fc2(0x1ed)][_0x413fc2(0x222)](this[_0x413fc2(0x22e)])||!_0x17dc37['data'][_0x413fc2(0x203)]||_0x17dc37['data'][_0x413fc2(0x203)]===this[_0x413fc2(0x287)][_0x413fc2(0x21b)]())return;this[_0x413fc2(0x22e)]===_0x413fc2(0x1de)&&this[_0x413fc2(0x242)]();const _0x2023cd=_0x17dc37[_0x413fc2(0x1a4)][_0x413fc2(0x1c2)];Object[_0x413fc2(0x1f9)](_0x2023cd)['forEach'](_0x292530=>{const _0x5eed32=_0x413fc2;this['_commandService'][_0x5eed32(0x285)](_0x292530['id'],_0x292530['params']?JSON[_0x5eed32(0x230)](_0x292530[_0x5eed32(0x1ea)]):null,{'fromCollab':!0x0});});}[_0x40e147(0x1ac)](){const _0x3782ca=_0x40e147;var _0xe8e3b7;this[_0x3782ca(0x1e4)][_0x3782ca(0x1be)]('offline'),(_0xe8e3b7=this[_0x3782ca(0x21e)])==null||_0xe8e3b7[_0x3782ca(0x1ee)]();}[_0x40e147(0x24c)](){const _0x1fbaff=_0x40e147;this[_0x1fbaff(0x1e4)][_0x1fbaff(0x1be)](_0x1fbaff(0x1de)),this[_0x1fbaff(0x270)]();}},_0xd8e6ab[_0x40e147(0x1b5)]=_0x38f53e([_0x2d1d1f(0x2,_0x18a95a[_0x40e147(0x28a)]),_0x2d1d1f(0x3,_0x18a95a[_0x40e147(0x208)](_0x24715f)),_0x2d1d1f(0x4,_0x18a95a[_0x40e147(0x238)])],_0xd8e6ab[_0x40e147(0x1b5)]);function _0xa04d20(){const _0x30c57c=_0x40e147,_0x4a2493=_0x45db12[_0x30c57c(0x214)](_0xd8e6ab[_0x30c57c(0x1f0)]),_0x2fee7f=_0x45db12[_0x30c57c(0x214)](_0x18a95a[_0x30c57c(0x1a7)]),_0x1d52fe=_0x45db12[_0x30c57c(0x1a8)](()=>_0x2fee7f[_0x30c57c(0x236)](_0x18a95a[_0x30c57c(0x27d)][_0x30c57c(0x241)]),void 0x0,!0x1,[]),[_0x443a2b,_0x12f27b]=_0x6f3e18[_0x30c57c(0x1f8)](null),[_0x51b624,_0x3107fb]=_0x6f3e18[_0x30c57c(0x1f8)](_0x4b4d4a[_0x30c57c(0x233)]),_0x1bca26=_0x6f3e18['useRef'](null);return _0x6f3e18[_0x30c57c(0x274)](()=>(_0x1d52fe&&_0x4a2493[_0x30c57c(0x1d1)](_0x1d52fe[_0x30c57c(0x1b4)]())['then'](_0x51befb=>{const _0x1ef7d3=_0x30c57c;_0x12f27b(_0x51befb),_0x1bca26[_0x1ef7d3(0x1c7)]=_0x51befb[_0x1ef7d3(0x240)]['subscribe'](_0x13d228=>{_0x3107fb(_0x13d228);});}),()=>{const _0x344e60=_0x30c57c;var _0x415dde;(_0x415dde=_0x1bca26[_0x344e60(0x1c7)])==null||_0x415dde['unsubscribe'](),_0x1bca26[_0x344e60(0x1c7)]=null;}),[_0x1d52fe,_0x4a2493]),_0x443a2b?_0x32404e[_0x30c57c(0x244)](_0x507dbe['Dropdown'],{'align':_0x30c57c(0x24b),'disabled':_0x51b624===_0x4b4d4a[_0x30c57c(0x1d4)],'className':_0x30c57c(0x221),'overlay':_0x32404e[_0x30c57c(0x244)](_0x524597,{'status':_0x51b624,'coordinator':_0x443a2b}),'children':_0x32404e[_0x30c57c(0x244)]('button',{'className':_0x507dbe[_0x30c57c(0x1d9)](_0x30c57c(0x282),{'univer-cursor-not-allowed':_0x51b624===_0x4b4d4a[_0x30c57c(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51b624!==_0x4b4d4a[_0x30c57c(0x1d4)]}),'type':_0x30c57c(0x28b),'children':_0x32404e['jsx'](_0x169732,{'className':_0x30c57c(0x20c)})})}):null;}function _0x524597(_0x574011){const _0x1eb0cc=_0x40e147,{status:_0x334ad5,coordinator:_0x1706b0}=_0x574011;switch(_0x334ad5){case _0x4b4d4a[_0x1eb0cc(0x233)]:return _0x32404e[_0x1eb0cc(0x244)](_0x31a0a7,{'coordinator':_0x1706b0});case _0x4b4d4a[_0x1eb0cc(0x1ad)]:return _0x32404e[_0x1eb0cc(0x244)](_0x43a602,{'coordinator':_0x1706b0});case _0x4b4d4a[_0x1eb0cc(0x213)]:return _0x32404e[_0x1eb0cc(0x244)](_0x30c3af,{'coordinator':_0x1706b0});case _0x4b4d4a['OFFLINE']:return _0x32404e['jsx'](_0x4e2cc8,{});case _0x4b4d4a[_0x1eb0cc(0x23f)]:return _0x32404e['jsx'](_0x317608,{'coordinator':_0x1706b0});default:return null;}}function _0x31a0a7(_0x2c3998){const _0x1eb483=_0x40e147,{coordinator:_0x399535}=_0x2c3998;return _0x32404e[_0x1eb483(0x1ae)](_0x32404e[_0x1eb483(0x1af)],{'children':[_0x32404e[_0x1eb483(0x244)](_0x1eb483(0x268),{'className':_0x1eb483(0x277),'children':_0x1eb483(0x27c)}),_0x32404e[_0x1eb483(0x244)](_0x507dbe[_0x1eb483(0x1c4)],{'onClick':()=>_0x399535[_0x1eb483(0x1cb)](),'children':_0x1eb483(0x1f3)})]});}function _0x43a602(_0x4ef149){const _0x4ed01c=_0x40e147,{coordinator:_0x29207e}=_0x4ef149;return _0x32404e[_0x4ed01c(0x1ae)](_0x32404e[_0x4ed01c(0x1af)],{'children':[_0x32404e[_0x4ed01c(0x244)](_0x4ed01c(0x268),{'className':_0x4ed01c(0x277),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x32404e[_0x4ed01c(0x244)](_0x507dbe[_0x4ed01c(0x1c4)],{'onClick':()=>_0x29207e[_0x4ed01c(0x1c6)](),'children':_0x4ed01c(0x210)})]});}function _0x30c3af(_0x2ee7fb){const _0x482320=_0x40e147,{coordinator:_0x380cef}=_0x2ee7fb;return _0x32404e[_0x482320(0x1ae)](_0x32404e[_0x482320(0x1af)],{'children':[_0x32404e[_0x482320(0x244)]('div',{'className':_0x482320(0x277),'children':_0x482320(0x20b)}),_0x32404e[_0x482320(0x244)](_0x507dbe[_0x482320(0x1c4)],{'variant':'text','onClick':()=>_0x380cef[_0x482320(0x1c3)](),'children':'Start\x20following'})]});}function _0x317608(_0xd6eb9e){const _0x1170e4=_0x40e147,{coordinator:_0x17444f}=_0xd6eb9e;return _0x32404e['jsxs'](_0x32404e['Fragment'],{'children':[_0x32404e[_0x1170e4(0x244)](_0x1170e4(0x268),{'className':_0x1170e4(0x277),'children':_0x1170e4(0x1b2)}),_0x32404e[_0x1170e4(0x244)](_0x507dbe[_0x1170e4(0x1c4)],{'variant':_0x1170e4(0x25d),'onClick':()=>_0x17444f[_0x1170e4(0x1bb)](),'children':_0x1170e4(0x264)})]});}function _0x4e2cc8(){const _0x3a6ad1=_0x40e147;return _0x32404e[_0x3a6ad1(0x244)](_0x32404e[_0x3a6ad1(0x1af)],{'children':_0x3a6ad1(0x1ab)});}var _0x362084=Object[_0x40e147(0x272)],_0x1ebec5=(_0x486ea4,_0x4f42ee,_0x11dba3,_0x53a139)=>{for(var _0x1d1541=_0x53a139>0x1?void 0x0:_0x53a139?_0x362084(_0x4f42ee,_0x11dba3):_0x4f42ee,_0x1b93d3=_0x486ea4['length']-0x1,_0x506cc9;_0x1b93d3>=0x0;_0x1b93d3--)(_0x506cc9=_0x486ea4[_0x1b93d3])&&(_0x1d1541=_0x506cc9(_0x1d1541)||_0x1d1541);return _0x1d1541;},_0x59eab2=(_0x5ad2a3,_0xd3b5fb)=>(_0x28b6e6,_0x1bf7bd)=>_0xd3b5fb(_0x28b6e6,_0x1bf7bd,_0x5ad2a3);_0xd8e6ab[_0x40e147(0x204)]=class extends _0x18a95a[_0x40e147(0x1e3)]{constructor(_0xfad1c,_0x483d3c){const _0x2568c5=_0x40e147;super(),this[_0x2568c5(0x271)]=_0xfad1c,this[_0x2568c5(0x245)]=_0x483d3c,this['_mountLiveShare']();}[_0x40e147(0x1cd)](){const _0x33f4ef=_0x40e147;this[_0x33f4ef(0x25c)](this[_0x33f4ef(0x245)][_0x33f4ef(0x265)](_0x45db12['BuiltInUIPart'][_0x33f4ef(0x20d)],()=>_0x45db12[_0x33f4ef(0x223)](_0xa04d20,this['_injector'])));}},_0xd8e6ab[_0x40e147(0x204)]=_0x1ebec5([_0x59eab2(0x0,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x59eab2(0x1,_0x45db12['IUIPartsService'])],_0xd8e6ab[_0x40e147(0x204)]);const _0x54cc77=_0x40e147(0x1d3),_0x456cf0={};var _0x3644e1=Object[_0x40e147(0x272)],_0x532821=(_0x1c24c8,_0x52b868,_0x314747,_0x43c7b9)=>{const _0x4caade=_0x40e147;for(var _0x22bea3=_0x43c7b9>0x1?void 0x0:_0x43c7b9?_0x3644e1(_0x52b868,_0x314747):_0x52b868,_0x37d2c2=_0x1c24c8[_0x4caade(0x1fc)]-0x1,_0x59a37f;_0x37d2c2>=0x0;_0x37d2c2--)(_0x59a37f=_0x1c24c8[_0x37d2c2])&&(_0x22bea3=_0x59a37f(_0x22bea3)||_0x22bea3);return _0x22bea3;},_0x4700a2=(_0x49eb35,_0x201c5a)=>(_0x246d2d,_0x14382d)=>_0x201c5a(_0x246d2d,_0x14382d,_0x49eb35);let _0x5cdd98=class extends _0x18a95a[_0x40e147(0x1e3)]{constructor(_0x27372f){const _0x134b5e=_0x40e147;super(),this[_0x134b5e(0x237)]=_0x27372f,this['_init']();}[_0x40e147(0x1dc)](){const _0x38f2ee=_0x40e147;[_0x206882['SetZoomRatioOperation']['id'],_0x206882[_0x38f2ee(0x22b)]['id'],_0x924280[_0x38f2ee(0x1ff)]['id']][_0x38f2ee(0x1e6)](_0x50977d=>{const _0x6be9f9=_0x38f2ee;this[_0x6be9f9(0x25c)](this['_liveShareService'][_0x6be9f9(0x1f5)](_0x50977d));});}};_0x5cdd98=_0x532821([_0x4700a2(0x0,_0x18a95a[_0x40e147(0x208)](_0x24715f))],_0x5cdd98);var _0x66d82d=Object[_0x40e147(0x24f)],_0x114b96=Object['getOwnPropertyDescriptor'],_0x7e0037=(_0x5dc46e,_0x40cdf2,_0x2f8d0a)=>_0x40cdf2 in _0x5dc46e?_0x66d82d(_0x5dc46e,_0x40cdf2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8d0a}):_0x5dc46e[_0x40cdf2]=_0x2f8d0a,_0x938cbe=(_0x5cd218,_0x23f2bd,_0xeaa431,_0x19a832)=>{const _0x1274ad=_0x40e147;for(var _0x30ee0a=_0x19a832>0x1?void 0x0:_0x19a832?_0x114b96(_0x23f2bd,_0xeaa431):_0x23f2bd,_0x34388a=_0x5cd218[_0x1274ad(0x1fc)]-0x1,_0x1be9c5;_0x34388a>=0x0;_0x34388a--)(_0x1be9c5=_0x5cd218[_0x34388a])&&(_0x30ee0a=_0x1be9c5(_0x30ee0a)||_0x30ee0a);return _0x30ee0a;},_0x4df22a=(_0x30abc4,_0x52b353)=>(_0x34397e,_0x2dee02)=>_0x52b353(_0x34397e,_0x2dee02,_0x30abc4),_0x93a8e1=(_0x40e188,_0x3f81d2,_0x1360a6)=>_0x7e0037(_0x40e188,typeof _0x3f81d2!='symbol'?_0x3f81d2+'':_0x3f81d2,_0x1360a6);const _0x45d39c=_0x40e147(0x20f);_0xd8e6ab['UniverLiveSharePlugin']=class extends _0x18a95a[_0x40e147(0x21d)]{constructor(_0x3a3352=_0x456cf0,_0x21626d,_0x5f91da){const _0x2c3db0=_0x40e147;super(),this[_0x2c3db0(0x1ce)]=_0x3a3352,this[_0x2c3db0(0x271)]=_0x21626d,this[_0x2c3db0(0x1ec)]=_0x5f91da;const {..._0x512f0a}=_0x18a95a[_0x2c3db0(0x23c)]({},_0x456cf0,this[_0x2c3db0(0x1ce)]);this[_0x2c3db0(0x1ec)][_0x2c3db0(0x1fe)](_0x54cc77,_0x512f0a);}[_0x40e147(0x1e7)](){const _0x2f0d71=_0x40e147;_0x18a95a[_0x2f0d71(0x1cf)](this[_0x2f0d71(0x271)],_0x18a95a['mergeOverrideWithDependencies']([[_0x24715f],[_0xd8e6ab[_0x2f0d71(0x1f0)]],[_0x5cdd98],[_0xd8e6ab['DesktopLiveShareController']]],this['_config'][_0x2f0d71(0x1ba)])),_0x18a95a['touchDependencies'](this[_0x2f0d71(0x271)],[[_0x5cdd98]]);}[_0x40e147(0x1a3)](){const _0x2533f5=_0x40e147;_0x18a95a[_0x2533f5(0x1eb)](this[_0x2533f5(0x271)],[[_0xd8e6ab[_0x2533f5(0x204)]]]);}},_0x93a8e1(_0xd8e6ab[_0x40e147(0x1f4)],_0x40e147(0x25b),_0x18a95a['UniverInstanceType'][_0x40e147(0x1a5)]),_0x93a8e1(_0xd8e6ab['UniverLiveSharePlugin'],_0x40e147(0x1e9),_0x45d39c),_0xd8e6ab['UniverLiveSharePlugin']=_0x938cbe([_0x18a95a[_0x40e147(0x211)](_0x1ae231[_0x40e147(0x239)]),_0x4df22a(0x1,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x4df22a(0x2,_0x18a95a[_0x40e147(0x28a)])],_0xd8e6ab[_0x40e147(0x1f4)]),_0xd8e6ab[_0x40e147(0x253)]=_0xa04d20,_0xd8e6ab[_0x40e147(0x1b1)]=_0x24715f,_0xd8e6ab[_0x40e147(0x227)]=_0x4b4d4a,Object[_0x40e147(0x24f)](_0xd8e6ab,Symbol[_0x40e147(0x26e)],{'value':_0x40e147(0x1df)});}));
|
|
1
|
+
function _0x1659(_0x326b71,_0x3f19be){_0x326b71=_0x326b71-0x151;const _0x5f012e=_0x5f01();let _0x1659f1=_0x5f012e[_0x326b71];return _0x1659f1;}(function(_0x1fbaf3,_0x16bad7){const _0x246ab1=_0x1659,_0x4a5478=_0x1fbaf3();while(!![]){try{const _0x446009=parseInt(_0x246ab1(0x17a))/0x1+-parseInt(_0x246ab1(0x206))/0x2+-parseInt(_0x246ab1(0x1da))/0x3*(parseInt(_0x246ab1(0x17e))/0x4)+-parseInt(_0x246ab1(0x232))/0x5*(-parseInt(_0x246ab1(0x1df))/0x6)+parseInt(_0x246ab1(0x1ac))/0x7+parseInt(_0x246ab1(0x1af))/0x8*(-parseInt(_0x246ab1(0x17c))/0x9)+-parseInt(_0x246ab1(0x15b))/0xa*(-parseInt(_0x246ab1(0x18f))/0xb);if(_0x446009===_0x16bad7)break;else _0x4a5478['push'](_0x4a5478['shift']());}catch(_0x30ca97){_0x4a5478['push'](_0x4a5478['shift']());}}}(_0x5f01,0xd2bbc),function(_0x29e3cb,_0xd606d9){const _0x3ce164=_0x1659;typeof exports==_0x3ce164(0x1ee)&&typeof module<'u'?_0xd606d9(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3ce164(0x172)&&define['amd']?define([_0x3ce164(0x191),_0x3ce164(0x18a),_0x3ce164(0x20b),'react/jsx-runtime',_0x3ce164(0x15c),_0x3ce164(0x1b4),_0x3ce164(0x218),_0x3ce164(0x176),_0x3ce164(0x17b),_0x3ce164(0x169),_0x3ce164(0x19e),'@univerjs/sheets-ui'],_0xd606d9):(_0x29e3cb=typeof globalThis<'u'?globalThis:_0x29e3cb||self,_0xd606d9(_0x29e3cb[_0x3ce164(0x1d6)]={},_0x29e3cb['UniverCore'],_0x29e3cb['UniverUi'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb['UniverDesign'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb[_0x3ce164(0x158)],_0x29e3cb[_0x3ce164(0x1e9)],_0x29e3cb[_0x3ce164(0x1e6)],_0x29e3cb[_0x3ce164(0x169)],_0x29e3cb[_0x3ce164(0x169)][_0x3ce164(0x1b6)],_0x29e3cb[_0x3ce164(0x210)]));}(this,function(_0x3c7f27,_0x1a4663,_0x445c44,_0x48b374,_0x4bbbf8,_0x1a8c05,_0xad8d23,_0x483082,_0x54971f,_0x5cb817,_0x42de0b,_0x1b8ea2){'use strict';const _0x1f790e=_0x1659;var _0x1a2a6c=Object['defineProperty'],_0x4c18ef=(_0x125bcc,_0x5421cf,_0x330b2c)=>_0x5421cf in _0x125bcc?_0x1a2a6c(_0x125bcc,_0x5421cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x330b2c}):_0x125bcc[_0x5421cf]=_0x330b2c,_0x505340=(_0x3e05d3,_0x2fe4f3,_0x325d3f)=>_0x4c18ef(_0x3e05d3,typeof _0x2fe4f3!='symbol'?_0x2fe4f3+'':_0x2fe4f3,_0x325d3f);function _0x405622({ref:_0x57fe4f,..._0x1563b2}){const _0x40c969=_0x1659,{icon:_0x5f0984,id:_0x497b9a,className:_0x34767c,extend:_0x3e817c,..._0x47f4e4}=_0x1563b2,_0x3865ca=(_0x40c969(0x153)+_0x497b9a+'\x20'+(_0x34767c||''))[_0x40c969(0x21e)](),_0xaf393a=_0x1a8c05[_0x40c969(0x180)]('_'+_0x20c3f7());return _0xfb1f8d(_0x5f0984,''+_0x497b9a,{'defIds':_0x5f0984[_0x40c969(0x1ca)],'idSuffix':_0xaf393a['current']},{'ref':_0x57fe4f,'className':_0x3865ca,..._0x47f4e4},_0x3e817c);}function _0xfb1f8d(_0x389e39,_0x362f55,_0x51e016,_0x3f3a98,_0x5da228){const _0x4819e8=_0x1659;return _0x1a8c05['createElement'](_0x389e39['tag'],{'key':_0x362f55,..._0x419a3a(_0x389e39,_0x51e016,_0x5da228),..._0x3f3a98},(_0x394acd(_0x389e39,_0x51e016)[_0x4819e8(0x201)]||[])[_0x4819e8(0x1b9)]((_0x3401c3,_0x33a575)=>_0xfb1f8d(_0x3401c3,_0x362f55+'-'+_0x389e39['tag']+'-'+_0x33a575,_0x51e016,void 0x0,_0x5da228)));}function _0x419a3a(_0xf0237f,_0x376f52,_0x308cf3){const _0x186ba6=_0x1659,_0x2791ca={..._0xf0237f[_0x186ba6(0x1a7)]};_0x308cf3!=null&&_0x308cf3[_0x186ba6(0x1fe)]&&_0x2791ca[_0x186ba6(0x194)]==='colorChannel1'&&(_0x2791ca['fill']=_0x308cf3[_0x186ba6(0x1fe)]),_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x155)&&_0x2791ca['id']&&(_0x2791ca['id']=_0x2791ca['id']+_0x376f52[_0x186ba6(0x1a5)]),Object['entries'](_0x2791ca)[_0x186ba6(0x18d)](([_0x2d5621,_0x386a94])=>{const _0x1e91da=_0x186ba6;_0x2d5621===_0x1e91da(0x155)&&typeof _0x386a94=='string'&&(_0x2791ca[_0x2d5621]=_0x386a94['replace'](/url\(#(.*)\)/,'url(#$1'+_0x376f52[_0x1e91da(0x1a5)]+')'));});const {defIds:_0x3bb6e6}=_0x376f52;return!_0x3bb6e6||_0x3bb6e6[_0x186ba6(0x209)]===0x0||(_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x1f2)&&_0x2791ca[_0x186ba6(0x1fd)]&&(_0x2791ca['xlink:href']=_0x2791ca[_0x186ba6(0x1fd)]+_0x376f52['idSuffix']),Object[_0x186ba6(0x231)](_0x2791ca)[_0x186ba6(0x18d)](([_0x6a476f,_0x5322ed])=>{const _0x24e223=_0x186ba6;typeof _0x5322ed==_0x24e223(0x16d)&&(_0x2791ca[_0x6a476f]=_0x5322ed['replace'](/url\(#(.*)\)/,_0x24e223(0x183)+_0x376f52[_0x24e223(0x1a5)]+')'));})),_0x2791ca;}function _0x394acd(_0x44d58d,_0x41ee2a){const _0x5a1ec7=_0x1659;var _0x4b3730;const {defIds:_0x2c3788}=_0x41ee2a;return!_0x2c3788||_0x2c3788[_0x5a1ec7(0x209)]===0x0?_0x44d58d:_0x44d58d[_0x5a1ec7(0x193)]===_0x5a1ec7(0x1db)&&((_0x4b3730=_0x44d58d[_0x5a1ec7(0x201)])!=null&&_0x4b3730['length'])?{..._0x44d58d,'children':_0x44d58d['children'][_0x5a1ec7(0x1b9)](_0x47a4e9=>typeof _0x47a4e9[_0x5a1ec7(0x1a7)]['id']=='string'&&_0x2c3788&&_0x2c3788[_0x5a1ec7(0x181)](_0x47a4e9[_0x5a1ec7(0x1a7)]['id'])?{..._0x47a4e9,'attrs':{..._0x47a4e9[_0x5a1ec7(0x1a7)],'id':_0x47a4e9[_0x5a1ec7(0x1a7)]['id']+_0x41ee2a[_0x5a1ec7(0x1a5)]}}:_0x47a4e9)}:_0x44d58d;}function _0x20c3f7(){const _0x25f53c=_0x1659;return Math[_0x25f53c(0x1d0)]()['toString'](0x24)['substring'](0x2,0x8);}_0x405622[_0x1f790e(0x1fc)]=_0x1f790e(0x20f);const _0x537131={'tag':_0x1f790e(0x1c9),'attrs':{'xmlns':_0x1f790e(0x22d),'fill':_0x1f790e(0x219),'viewBox':_0x1f790e(0x1be),'width':_0x1f790e(0x212),'height':_0x1f790e(0x212)},'children':[{'tag':_0x1f790e(0x229),'attrs':{'fill':_0x1f790e(0x174),'d':_0x1f790e(0x220)}},{'tag':_0x1f790e(0x229),'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':_0x1f790e(0x1d2),'clipRule':_0x1f790e(0x1d2)}}]},_0xe9087a=_0x1a8c05[_0x1f790e(0x1a8)](function(_0x53234b,_0x1fc664){const _0x29cba2=_0x1f790e;return _0x1a8c05[_0x29cba2(0x1e8)](_0x405622,Object[_0x29cba2(0x15f)]({},_0x53234b,{'id':_0x29cba2(0x157),'ref':_0x1fc664,'icon':_0x537131}));});_0xe9087a['displayName']=_0x1f790e(0x16a);class _0x2c6fcf extends _0x1a4663[_0x1f790e(0x223)]{constructor(){const _0xe9d0c3=_0x1f790e;super(...arguments),_0x505340(this,_0xe9d0c3(0x1bc),new Set()),_0x505340(this,_0xe9d0c3(0x199),new Set());}['registerSharedOperation'](_0x18dc93){const _0x19ed23=_0x1f790e;return this[_0x19ed23(0x1bc)][_0x19ed23(0x20c)](_0x18dc93),_0x1a4663[_0x19ed23(0x17f)](()=>this['_sharedOperations']['delete'](_0x18dc93));}['registerInitialStateReporter'](_0x152291){const _0xd707d8=_0x1f790e;return this[_0xd707d8(0x199)][_0xd707d8(0x20c)](_0x152291),_0x1a4663[_0xd707d8(0x17f)](()=>this[_0xd707d8(0x199)][_0xd707d8(0x164)](_0x152291));}[_0x1f790e(0x1c6)](_0x312296){const _0x2bfd41=_0x1f790e;return this[_0x2bfd41(0x1bc)][_0x2bfd41(0x22a)](_0x312296);}[_0x1f790e(0x173)](_0x4e12e4){const _0x6b1169=_0x1f790e;return Array['from'](this[_0x6b1169(0x199)])[_0x6b1169(0x1b9)](_0x5c52a9=>_0x5c52a9(_0x4e12e4));}}var _0x3f005b=Object[_0x1f790e(0x1b2)],_0x6be2a1=(_0x588298,_0x29cdb5,_0x23349a,_0x5af2fe)=>{for(var _0x4edfa9=_0x5af2fe>0x1?void 0x0:_0x5af2fe?_0x3f005b(_0x29cdb5,_0x23349a):_0x29cdb5,_0x783e76=_0x588298['length']-0x1,_0x3f8b9c;_0x783e76>=0x0;_0x783e76--)(_0x3f8b9c=_0x588298[_0x783e76])&&(_0x4edfa9=_0x3f8b9c(_0x4edfa9)||_0x4edfa9);return _0x4edfa9;},_0x8a54fb=(_0x3b9294,_0x12ee7a)=>(_0x2addb3,_0x600f83)=>_0x12ee7a(_0x2addb3,_0x600f83,_0x3b9294);_0x3c7f27[_0x1f790e(0x205)]=class extends _0x1a4663['RxDisposable']{constructor(_0x33e4cc,_0x3be6be,_0x451d6a){const _0x51bc14=_0x1f790e;super(),_0x505340(this,_0x51bc14(0x1bb),new Map()),(this['_univerInstanceService']=_0x33e4cc,this[_0x51bc14(0x162)]=_0x3be6be,this[_0x51bc14(0x1f4)]=_0x451d6a,this[_0x51bc14(0x21c)]());}async['getLiveShareCoordinator'](_0x5b91dc){const _0x5c0675=_0x1f790e;return this[_0x5c0675(0x1bb)][_0x5c0675(0x22a)](_0x5b91dc)||await this[_0x5c0675(0x156)](_0x5b91dc),this[_0x5c0675(0x1bb)][_0x5c0675(0x15d)](_0x5b91dc);}[_0x1f790e(0x1bf)](_0x410c52){const _0x491c17=_0x1f790e;var _0x1fd150;return(_0x1fd150=this[_0x491c17(0x1bb)][_0x491c17(0x15d)](_0x410c52))!=null?_0x1fd150:null;}[_0x1f790e(0x21c)](){const _0x27e7bc=_0x1f790e;this[_0x27e7bc(0x1f1)]['getTypeOfUnitAdded$'](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])[_0x27e7bc(0x1b3)](_0x42de0b[_0x27e7bc(0x1ed)](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](async _0xee8270=>{const _0x56ae93=_0x27e7bc,_0x2787ad=_0xee8270[_0x56ae93(0x1c2)]();this['_entities'][_0x56ae93(0x22a)](_0x2787ad)||this[_0x56ae93(0x156)](_0x2787ad);}),this[_0x27e7bc(0x1f1)][_0x27e7bc(0x1f7)](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])['pipe'](_0x42de0b['takeUntil'](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](_0x33ebd5=>{const _0x1cb029=_0x27e7bc,_0x1a370c=_0x33ebd5[_0x1cb029(0x1c2)](),_0x391c03=this[_0x1cb029(0x1bb)]['get'](_0x1a370c);_0x391c03==null||_0x391c03[_0x1cb029(0x1c7)]();});}async[_0x1f790e(0x156)](_0x44d170){const _0xb2bb46=_0x1f790e,_0x4a3e5c=await this['_collabSessionService']['requireSession'](_0x44d170),_0xd088fd=this[_0xb2bb46(0x162)][_0xb2bb46(0x15e)](_0x3c7f27[_0xb2bb46(0x1cc)],_0x44d170,_0x4a3e5c);return _0xd088fd[_0xb2bb46(0x1c8)](),this['_entities']['set'](_0x44d170,_0xd088fd),_0xd088fd;}},_0x3c7f27[_0x1f790e(0x205)]=_0x6be2a1([_0x8a54fb(0x0,_0x1a4663['IUniverInstanceService']),_0x8a54fb(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663[_0x1f790e(0x1dc)])),_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x192)](_0x483082[_0x1f790e(0x189)]))],_0x3c7f27[_0x1f790e(0x205)]);var _0x300ce0=(_0x91f8ba=>(_0x91f8ba[_0x1f790e(0x1d9)]=_0x1f790e(0x165),_0x91f8ba['IDLE']=_0x1f790e(0x1e4),_0x91f8ba[_0x1f790e(0x1ce)]=_0x1f790e(0x196),_0x91f8ba[_0x1f790e(0x1b5)]=_0x1f790e(0x1f3),_0x91f8ba[_0x1f790e(0x1d4)]=_0x1f790e(0x1c1),_0x91f8ba))(_0x300ce0||{});const _0xcca361='SAME_OPERATION_SHARE_INTERVAL',_0x176be4=0xc8;_0x3c7f27['LiveShareCoordinator']=class extends _0x1a4663[_0x1f790e(0x21a)]{constructor(_0x26ce50,_0x4bb066,_0x499011,_0x4a30c8,_0x5f4418){const _0xc0e48d=_0x1f790e;super(),_0x505340(this,_0xc0e48d(0x1e2),new _0x5cb817[(_0xc0e48d(0x1b0))](_0xc0e48d(0x1e4))),_0x505340(this,'status$',this[_0xc0e48d(0x1e2)][_0xc0e48d(0x1f8)]()),_0x505340(this,_0xc0e48d(0x21c),!0x1),_0x505340(this,_0xc0e48d(0x1ec),null),_0x505340(this,_0xc0e48d(0x1f6),null),(this[_0xc0e48d(0x1aa)]=_0x26ce50,this[_0xc0e48d(0x1f5)]=_0x4bb066,this['_configService']=_0x499011,this[_0xc0e48d(0x1b8)]=_0x4a30c8,this[_0xc0e48d(0x19a)]=_0x5f4418);}get[_0x1f790e(0x19f)](){const _0x13f469=_0x1f790e;return this[_0x13f469(0x1e2)]['getValue']();}[_0x1f790e(0x1c7)](){const _0x3b2d3e=_0x1f790e;var _0x1815af;(_0x1815af=this[_0x3b2d3e(0x1ec)])==null||_0x1815af['dispose'](),this[_0x3b2d3e(0x1e2)][_0x3b2d3e(0x1a3)](_0x3b2d3e(0x1e4)),this['_status$'][_0x3b2d3e(0x167)]();}['getStatus'](){const _0x49bdc5=_0x1f790e;return this[_0x49bdc5(0x19f)];}[_0x1f790e(0x1c8)](){const _0x3a6ebe=_0x1f790e;this['_init']||(this[_0x3a6ebe(0x21c)]=!0x0,this[_0x3a6ebe(0x1f5)][_0x3a6ebe(0x20a)][_0x3a6ebe(0x1b3)](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x3c2136=>{const _0x3f4c2a=_0x3a6ebe;switch(_0x3c2136){case _0x483082['SessionStatus'][_0x3f4c2a(0x1d9)]:this[_0x3f4c2a(0x21b)]();break;case _0x483082[_0x3f4c2a(0x208)]['ONLINE']:this[_0x3f4c2a(0x1fb)]();break;}}),this['_collabSession'][_0x3a6ebe(0x198)]['pipe'](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x20b624=>{const _0x4a5b11=_0x3a6ebe,{eventID:_0x5853ea}=_0x20b624;switch(_0x5853ea){case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x1de)]:this[_0x4a5b11(0x19c)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x16f)]:this[_0x4a5b11(0x1d7)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x222)]:this[_0x4a5b11(0x21f)]();break;case _0xad8d23['CollaborationEvent']['NEW_CHANGESETS']:this[_0x4a5b11(0x226)](_0x20b624);break;}}));}['tryStartPresenting'](){const _0x2a4807=_0x1f790e;this[_0x2a4807(0x1f5)][_0x2a4807(0x1a9)]({'eventID':_0xad8d23[_0x2a4807(0x166)][_0x2a4807(0x1ff)],'data':{'unitID':this[_0x2a4807(0x1aa)],'userID':this['_collabSession'][_0x2a4807(0x204)]()}},this[_0x2a4807(0x1aa)]);}['stopPresenting'](){const _0x246920=_0x1f790e;this[_0x246920(0x19f)]===_0x246920(0x1c1)&&(this['_status$']['next']('idle'),this[_0x246920(0x1f5)][_0x246920(0x1a9)]({'eventID':_0xad8d23[_0x246920(0x166)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x246920(0x1aa)]}},this[_0x246920(0x1aa)]));}[_0x1f790e(0x1b7)](){const _0x382d9b=_0x1f790e;this[_0x382d9b(0x19f)]===_0x382d9b(0x1f3)&&(this[_0x382d9b(0x1e2)][_0x382d9b(0x1a3)](_0x382d9b(0x196)),this[_0x382d9b(0x21d)]());}[_0x1f790e(0x151)](){const _0x4204fe=_0x1f790e;this[_0x4204fe(0x19f)]===_0x4204fe(0x196)&&this[_0x4204fe(0x1f0)]();}[_0x1f790e(0x19c)](_0x3006cb){const _0x21d6c8=_0x1f790e,{presenter:_0xcca7ee}=_0x3006cb[_0x21d6c8(0x168)],_0x34f000=this[_0x21d6c8(0x1f5)][_0x21d6c8(0x204)]();this['_presenter']=_0xcca7ee,_0xcca7ee===_0x34f000?(this[_0x21d6c8(0x1f0)](),this[_0x21d6c8(0x1cd)]()):this[_0x21d6c8(0x19f)]!==_0x21d6c8(0x1f3)&&(this[_0x21d6c8(0x234)](),this[_0x21d6c8(0x21d)]());}['_fetchOperations'](){const _0x3c3b47=_0x1f790e,_0x5e5cd7={'eventID':_0xad8d23['CollaborationEvent'][_0x3c3b47(0x1e3)]};this['_collabSession'][_0x3c3b47(0x1a9)](_0x5e5cd7,this[_0x3c3b47(0x1aa)]);}['_handleTerminate'](){const _0x4357a3=_0x1f790e;this['_presenter']=null,this['_status']!==_0x4357a3(0x1c1)&&this[_0x4357a3(0x211)]();}['_handleNewChangeSets'](_0x50118d){const _0x3aea89=_0x1f790e;if(this[_0x3aea89(0x19f)]===_0x3aea89(0x196)&&this['_presenter']===_0x50118d[_0x3aea89(0x168)][_0x3aea89(0x1c5)]){const _0x4fd97f=_0xad8d23[_0x3aea89(0x20d)](_0x50118d['data'])[_0x3aea89(0x200)]['reverse']()[_0x3aea89(0x177)](_0x516e06=>_0x516e06['id']===_0x54971f['InsertSheetMutation']['id']);if(_0x4fd97f){const _0x5f4f51=_0x4fd97f[_0x3aea89(0x1b1)]['unitId'],_0x56103e=_0x4fd97f[_0x3aea89(0x1b1)][_0x3aea89(0x163)]['id'];setTimeout(()=>{const _0x588e12=_0x3aea89;this['_commandService'][_0x588e12(0x170)](_0x54971f[_0x588e12(0x1e0)]['id'],{'unitId':_0x5f4f51,'subUnitId':_0x56103e},{'fromCollab':!0x0});});}}}[_0x1f790e(0x1cd)](){const _0x3868b8=_0x1f790e;this[_0x3868b8(0x1e2)][_0x3868b8(0x1a3)]('presenting');const _0x519fc2=new Map(),_0x2293ac=this['_commandDisposable']=new _0x1a4663['DisposableCollection']();_0x2293ac['add'](_0x1a4663[_0x3868b8(0x17f)](()=>{const _0x15f912=_0x3868b8;_0x519fc2[_0x15f912(0x18d)](_0x50e334=>_0x50e334['complete']()),_0x519fc2['clear']();})),_0x2293ac[_0x3868b8(0x20c)](this['_commandService'][_0x3868b8(0x161)](_0x44c686=>{const _0x575817=_0x3868b8;var _0x5c609b;if(_0x44c686[_0x575817(0x16b)]!==_0x1a4663[_0x575817(0x1ad)]['OPERATION']||!this[_0x575817(0x1b8)][_0x575817(0x1c6)](_0x44c686['id']))return;const {id:_0x1dcf50}=_0x44c686;let _0x780014;_0x519fc2[_0x575817(0x22a)](_0x1dcf50)?_0x780014=_0x519fc2[_0x575817(0x15d)](_0x1dcf50):(_0x780014=new _0x5cb817[(_0x575817(0x1e5))](),_0x519fc2['set'](_0x1dcf50,_0x780014),_0x780014[_0x575817(0x1b3)](_0x42de0b[_0x575817(0x187)]((_0x5c609b=this[_0x575817(0x207)][_0x575817(0x186)](_0xcca361))!=null?_0x5c609b:_0x176be4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c605f=>{const _0x368998=_0x575817;this[_0x368998(0x1f5)]['send']({'eventID':_0xad8d23[_0x368998(0x166)][_0x368998(0x16f)],'data':{'unitID':this[_0x368998(0x1aa)],'operations':{[_0x3c605f['id']]:{'id':_0x3c605f['id'],'params':JSON[_0x368998(0x1ba)](_0x3c605f['params'])}}}},this[_0x368998(0x1aa)]);})),_0x780014[_0x575817(0x1a3)](_0x44c686);})),this[_0x3868b8(0x1b8)]['getInitialStates'](this[_0x3868b8(0x1aa)])[_0x3868b8(0x18d)](_0x1e860b=>this['_collabSession'][_0x3868b8(0x1a9)]({'eventID':_0xad8d23[_0x3868b8(0x166)][_0x3868b8(0x16f)],'data':{'unitID':this[_0x3868b8(0x1aa)],'operations':{[_0x1e860b['id']]:{'id':_0x1e860b['id'],'params':JSON[_0x3868b8(0x1ba)](_0x1e860b[_0x3868b8(0x1b1)])}}}},this[_0x3868b8(0x1aa)]));}[_0x1f790e(0x234)](){const _0x24b2f1=_0x1f790e;var _0x2ca0fa;this[_0x24b2f1(0x1e2)]['next'](_0x24b2f1(0x1e4)),(_0x2ca0fa=this[_0x24b2f1(0x1ec)])==null||_0x2ca0fa[_0x24b2f1(0x1c7)](),this[_0x24b2f1(0x1ec)]=null;}[_0x1f790e(0x21d)](){const _0x4075b4=_0x1f790e;var _0x2f30ff;(_0x2f30ff=this[_0x4075b4(0x1ec)])==null||_0x2f30ff[_0x4075b4(0x1c7)](),this[_0x4075b4(0x1e2)]['next'](_0x4075b4(0x196));}[_0x1f790e(0x211)](){const _0x1b3759=_0x1f790e;var _0x26d420;this[_0x1b3759(0x1e2)][_0x1b3759(0x1a3)](_0x1b3759(0x1e4)),(_0x26d420=this['_commandDisposable'])==null||_0x26d420[_0x1b3759(0x1c7)](),this[_0x1b3759(0x1ec)]=null;}['_stopFollowing'](){const _0x23dccd=_0x1f790e;var _0x3be70c;this['_status$'][_0x23dccd(0x1a3)](_0x23dccd(0x1f3)),(_0x3be70c=this['_commandDisposable'])==null||_0x3be70c[_0x23dccd(0x1c7)]();}[_0x1f790e(0x1d7)](_0x308a17){const _0x2b74f7=_0x1f790e;if([_0x2b74f7(0x1c1),_0x2b74f7(0x1f3),_0x2b74f7(0x165)][_0x2b74f7(0x181)](this[_0x2b74f7(0x19f)])||!_0x308a17[_0x2b74f7(0x168)]['presenter']||_0x308a17['data'][_0x2b74f7(0x1a4)]===this[_0x2b74f7(0x1f5)][_0x2b74f7(0x204)]())return;this[_0x2b74f7(0x19f)]==='idle'&&this[_0x2b74f7(0x21d)]();const _0x2b9070=_0x308a17['data']['operations'];Object[_0x2b74f7(0x215)](_0x2b9070)[_0x2b74f7(0x18d)](_0x13e5e6=>{const _0xf32a8a=_0x2b74f7;this[_0xf32a8a(0x19a)][_0xf32a8a(0x170)](_0x13e5e6['id'],_0x13e5e6[_0xf32a8a(0x1b1)]?JSON[_0xf32a8a(0x18c)](_0x13e5e6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3c9521=_0x1f790e;var _0x393a38;this['_status$'][_0x3c9521(0x1a3)](_0x3c9521(0x165)),(_0x393a38=this[_0x3c9521(0x1ec)])==null||_0x393a38[_0x3c9521(0x1c7)]();}['_handleOnline'](){const _0x2e9346=_0x1f790e;this[_0x2e9346(0x1e2)][_0x2e9346(0x1a3)](_0x2e9346(0x1e4)),this[_0x2e9346(0x1d1)]();}},_0x3c7f27[_0x1f790e(0x1cc)]=_0x6be2a1([_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x188)]),_0x8a54fb(0x3,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf)),_0x8a54fb(0x4,_0x1a4663[_0x1f790e(0x1fa)])],_0x3c7f27['LiveShareCoordinator']);function _0x42013c(){const _0x3db89a=_0x1f790e,_0x1eb1b9=_0x445c44[_0x3db89a(0x19d)](_0x3c7f27[_0x3db89a(0x205)]),_0x4c4b11=_0x445c44[_0x3db89a(0x19d)](_0x1a4663[_0x3db89a(0x213)]),_0x462320=_0x445c44[_0x3db89a(0x216)](()=>_0x4c4b11['getCurrentTypeOfUnit$'](_0x1a4663[_0x3db89a(0x1c4)][_0x3db89a(0x1bd)]),void 0x0,!0x1,[]),[_0x29e59c,_0x4c5d82]=_0x1a8c05[_0x3db89a(0x227)](null),[_0x1d782a,_0xa510b7]=_0x1a8c05[_0x3db89a(0x227)](_0x300ce0[_0x3db89a(0x197)]),_0x3067da=_0x1a8c05['useRef'](null);return _0x1a8c05[_0x3db89a(0x154)](()=>(_0x462320&&_0x1eb1b9['getLiveShareCoordinator'](_0x462320[_0x3db89a(0x1c2)]())[_0x3db89a(0x1c0)](_0x13b0d5=>{const _0x3bf740=_0x3db89a;_0x4c5d82(_0x13b0d5),_0x3067da[_0x3bf740(0x1e7)]=_0x13b0d5[_0x3bf740(0x184)][_0x3bf740(0x1ef)](_0x1e7b32=>{_0xa510b7(_0x1e7b32);});}),()=>{const _0x28009a=_0x3db89a;var _0x5ad8fb;(_0x5ad8fb=_0x3067da['current'])==null||_0x5ad8fb['unsubscribe'](),_0x3067da[_0x28009a(0x1e7)]=null;}),[_0x462320,_0x1eb1b9]),_0x29e59c?_0x48b374[_0x3db89a(0x15a)](_0x4bbbf8[_0x3db89a(0x203)],{'align':_0x3db89a(0x233),'disabled':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'className':_0x3db89a(0x1a1),'overlay':_0x48b374[_0x3db89a(0x15a)](_0x341beb,{'status':_0x1d782a,'coordinator':_0x29e59c}),'children':_0x48b374[_0x3db89a(0x15a)]('button',{'className':_0x4bbbf8['clsx'](_0x3db89a(0x221),{'univer-cursor-not-allowed':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d782a!==_0x300ce0[_0x3db89a(0x1d9)]}),'type':_0x3db89a(0x214),'children':_0x48b374[_0x3db89a(0x15a)](_0xe9087a,{'className':_0x3db89a(0x224)})})}):null;}function _0x341beb(_0x283774){const _0x382217=_0x1f790e,{status:_0x31271e,coordinator:_0x42972a}=_0x283774;switch(_0x31271e){case _0x300ce0['IDLE']:return _0x48b374['jsx'](_0x27dc2a,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1ce)]:return _0x48b374[_0x382217(0x15a)](_0x6425fd,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1b5)]:return _0x48b374[_0x382217(0x15a)](_0x37ffb1,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1d9)]:return _0x48b374[_0x382217(0x15a)](_0x532a13,{});case _0x300ce0[_0x382217(0x1d4)]:return _0x48b374[_0x382217(0x15a)](_0x80a528,{'coordinator':_0x42972a});default:return null;}}function _0x27dc2a(_0x4370d8){const _0x51fe1f=_0x1f790e,{coordinator:_0x2271a8}=_0x4370d8;return _0x48b374['jsxs'](_0x48b374[_0x51fe1f(0x18b)],{'children':[_0x48b374[_0x51fe1f(0x15a)](_0x51fe1f(0x1eb),{'className':_0x51fe1f(0x1d5),'children':'Present\x20this\x20document'}),_0x48b374[_0x51fe1f(0x15a)](_0x4bbbf8[_0x51fe1f(0x160)],{'onClick':()=>_0x2271a8[_0x51fe1f(0x22f)](),'children':'Start'})]});}function _0x6425fd(_0x4f7c55){const _0x377817=_0x1f790e,{coordinator:_0x4e6348}=_0x4f7c55;return _0x48b374[_0x377817(0x217)](_0x48b374[_0x377817(0x18b)],{'children':[_0x48b374[_0x377817(0x15a)](_0x377817(0x1eb),{'className':_0x377817(0x1d5),'children':_0x377817(0x18e)}),_0x48b374[_0x377817(0x15a)](_0x4bbbf8[_0x377817(0x160)],{'onClick':()=>_0x4e6348[_0x377817(0x151)](),'children':_0x377817(0x179)})]});}function _0x37ffb1(_0x54848b){const _0x5b66f0=_0x1f790e,{coordinator:_0x592c51}=_0x54848b;return _0x48b374[_0x5b66f0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x5b66f0(0x15a)]('div',{'className':_0x5b66f0(0x1d5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48b374[_0x5b66f0(0x15a)](_0x4bbbf8[_0x5b66f0(0x160)],{'variant':_0x5b66f0(0x195),'onClick':()=>_0x592c51[_0x5b66f0(0x1b7)](),'children':_0x5b66f0(0x1ab)})]});}function _0x80a528(_0x468b7b){const _0x4a19e0=_0x1f790e,{coordinator:_0x4e8b37}=_0x468b7b;return _0x48b374[_0x4a19e0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x4a19e0(0x15a)](_0x4a19e0(0x1eb),{'className':_0x4a19e0(0x1d5),'children':_0x4a19e0(0x17d)}),_0x48b374[_0x4a19e0(0x15a)](_0x4bbbf8['Button'],{'variant':_0x4a19e0(0x171),'onClick':()=>_0x4e8b37['stopPresenting'](),'children':_0x4a19e0(0x1f9)})]});}function _0x532a13(){const _0x5f0b1f=_0x1f790e;return _0x48b374['jsx'](_0x48b374[_0x5f0b1f(0x18b)],{'children':_0x5f0b1f(0x1a2)});}var _0x446c92=Object[_0x1f790e(0x1b2)],_0x4ba76e=(_0x200332,_0x50c69a,_0x115d14,_0x3ad292)=>{for(var _0xd4809c=_0x3ad292>0x1?void 0x0:_0x3ad292?_0x446c92(_0x50c69a,_0x115d14):_0x50c69a,_0x6082d7=_0x200332['length']-0x1,_0x2aa02d;_0x6082d7>=0x0;_0x6082d7--)(_0x2aa02d=_0x200332[_0x6082d7])&&(_0xd4809c=_0x2aa02d(_0xd4809c)||_0xd4809c);return _0xd4809c;},_0x2e0bfa=(_0x5928c7,_0x2f9f59)=>(_0x18d1bc,_0x3633ad)=>_0x2f9f59(_0x18d1bc,_0x3633ad,_0x5928c7);_0x3c7f27[_0x1f790e(0x1a0)]=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x44b9a0,_0x4700e4){const _0x162f22=_0x1f790e;super(),this[_0x162f22(0x162)]=_0x44b9a0,this['_uiPartsService']=_0x4700e4,this[_0x162f22(0x1dd)]();}[_0x1f790e(0x1dd)](){const _0xc01f4e=_0x1f790e;this[_0xc01f4e(0x1ae)](this[_0xc01f4e(0x22c)]['registerComponent'](_0x445c44[_0xc01f4e(0x228)][_0xc01f4e(0x175)],()=>_0x445c44[_0xc01f4e(0x182)](_0x42013c,this[_0xc01f4e(0x162)])));}},_0x3c7f27['DesktopLiveShareController']=_0x4ba76e([_0x2e0bfa(0x0,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x2e0bfa(0x1,_0x445c44[_0x1f790e(0x225)])],_0x3c7f27['DesktopLiveShareController']);const _0x2684fe=_0x1f790e(0x1e1),_0x266a45={};var _0x2a1f24=Object[_0x1f790e(0x1b2)],_0x26d1aa=(_0x1ade5b,_0x592ba4,_0x319e01,_0x528f1b)=>{const _0x254fea=_0x1f790e;for(var _0x61bbca=_0x528f1b>0x1?void 0x0:_0x528f1b?_0x2a1f24(_0x592ba4,_0x319e01):_0x592ba4,_0x4dd1a3=_0x1ade5b[_0x254fea(0x209)]-0x1,_0x1abec9;_0x4dd1a3>=0x0;_0x4dd1a3--)(_0x1abec9=_0x1ade5b[_0x4dd1a3])&&(_0x61bbca=_0x1abec9(_0x61bbca)||_0x61bbca);return _0x61bbca;},_0x465881=(_0x314408,_0x45280c)=>(_0x491ab3,_0x2ecf6f)=>_0x45280c(_0x491ab3,_0x2ecf6f,_0x314408);let _0x3719dd=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x3e4077){const _0x18c901=_0x1f790e;super(),this[_0x18c901(0x1b8)]=_0x3e4077,this[_0x18c901(0x21c)]();}[_0x1f790e(0x21c)](){const _0x2bc22c=_0x1f790e;[_0x1b8ea2[_0x2bc22c(0x19b)]['id'],_0x1b8ea2['SetScrollOperation']['id'],_0x54971f['SetWorksheetActiveOperation']['id']]['forEach'](_0xbc4d6a=>{const _0x2f67bc=_0x2bc22c;this[_0x2f67bc(0x1ae)](this[_0x2f67bc(0x1b8)]['registerSharedOperation'](_0xbc4d6a));});}};_0x3719dd=_0x26d1aa([_0x465881(0x0,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf))],_0x3719dd);var _0x361f76=Object[_0x1f790e(0x185)],_0xd473f5=Object['getOwnPropertyDescriptor'],_0x4670d8=(_0x1bbb8b,_0x24449e,_0x55b798)=>_0x24449e in _0x1bbb8b?_0x361f76(_0x1bbb8b,_0x24449e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b798}):_0x1bbb8b[_0x24449e]=_0x55b798,_0x27634a=(_0x57a3f1,_0x4671fc,_0x2d5293,_0x53e0f9)=>{const _0x3572f4=_0x1f790e;for(var _0x234dc0=_0x53e0f9>0x1?void 0x0:_0x53e0f9?_0xd473f5(_0x4671fc,_0x2d5293):_0x4671fc,_0xdafc8e=_0x57a3f1[_0x3572f4(0x209)]-0x1,_0x53d422;_0xdafc8e>=0x0;_0xdafc8e--)(_0x53d422=_0x57a3f1[_0xdafc8e])&&(_0x234dc0=_0x53d422(_0x234dc0)||_0x234dc0);return _0x234dc0;},_0x21dc64=(_0xb43bc6,_0x56c38b)=>(_0x1db581,_0x106a74)=>_0x56c38b(_0x1db581,_0x106a74,_0xb43bc6),_0xc6f876=(_0x125876,_0x1e285a,_0x20a720)=>_0x4670d8(_0x125876,typeof _0x1e285a!=_0x1f790e(0x1cf)?_0x1e285a+'':_0x1e285a,_0x20a720);const _0x486d01='UNIVER_LIVE_SHARE_PLUGIN';_0x3c7f27[_0x1f790e(0x1d8)]=class extends _0x1a4663['Plugin']{constructor(_0x7d2640=_0x266a45,_0x24025c,_0x8a3a9a){const _0x9ec025=_0x1f790e;super(),this['_config']=_0x7d2640,this[_0x9ec025(0x162)]=_0x24025c,this[_0x9ec025(0x207)]=_0x8a3a9a;const {..._0x1772ce}=_0x1a4663[_0x9ec025(0x1cb)]({},_0x266a45,this[_0x9ec025(0x1a6)]);this['_configService'][_0x9ec025(0x1ea)](_0x2684fe,_0x1772ce);}['onStarting'](){const _0x4c1ef5=_0x1f790e;_0x1a4663[_0x4c1ef5(0x22b)](this[_0x4c1ef5(0x162)],_0x1a4663[_0x4c1ef5(0x159)]([[_0x2c6fcf],[_0x3c7f27[_0x4c1ef5(0x205)]],[_0x3719dd],[_0x3c7f27[_0x4c1ef5(0x1a0)]]],this[_0x4c1ef5(0x1a6)][_0x4c1ef5(0x20e)])),_0x1a4663['touchDependencies'](this[_0x4c1ef5(0x162)],[[_0x3719dd]]);}[_0x1f790e(0x22e)](){_0x1a4663['touchDependencies'](this['_injector'],[[_0x3c7f27['DesktopLiveShareController']]]);}},_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],_0x1f790e(0x16b),_0x1a4663['UniverInstanceType'][_0x1f790e(0x1c3)]),_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],'pluginName',_0x486d01),_0x3c7f27[_0x1f790e(0x1d8)]=_0x27634a([_0x1a4663[_0x1f790e(0x1d3)](_0x483082[_0x1f790e(0x202)]),_0x21dc64(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x21dc64(0x2,_0x1a4663[_0x1f790e(0x188)])],_0x3c7f27[_0x1f790e(0x1d8)]),_0x3c7f27[_0x1f790e(0x190)]=_0x42013c,_0x3c7f27[_0x1f790e(0x16c)]=_0x2c6fcf,_0x3c7f27[_0x1f790e(0x152)]=_0x300ce0,Object[_0x1f790e(0x185)](_0x3c7f27,Symbol[_0x1f790e(0x230)],{'value':'Module'});}));function _0x5f01(){const _0x11f503=['getLiveShareCoordinatorSync','then','presenting','getUnitId','UNIVER_UNKNOWN','UniverInstanceType','memberID','shouldShareOperation','dispose','init','svg','defIds','merge','LiveShareCoordinator','_startPresenting','FOLLOWING','symbol','random','_fetchOperations','evenodd','DependentOn','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','_handleOperation','UniverLiveSharePlugin','OFFLINE','25119LkQURm','defs','Injector','_mountLiveShare','LIVESHARE_NEW_HOST','1107528vFSpkO','SetWorksheetActiveOperation','live-share.config','_status$','LIVESHARE_FETCH_OPERATIONS','idle','Subject','UniverSheets','current','createElement','UniverProCollaborationClient','setConfig','div','_commandDisposable','takeUntil','object','subscribe','_stopFollowing','_univerInstanceService','use','not-following','_collabSessionService','_collabSession','_presenter','getTypeOfUnitDisposed$','asObservable','Stop\x20presenting','ICommandService','_handleOnline','displayName','xlink:href','colorChannel1','LIVESHARE_REQUEST_HOST','mutations','children','UniverCollaborationClientPlugin','Dropdown','getMemberID','LiveShareController','264604ClObtu','_configService','SessionStatus','length','sessionStatus$','@univerjs/ui','add','parseProtocolChangeset','override','UniverIcon','UniverSheetsUi','_beIdle','1em','IUniverInstanceService','button','values','useObservable','jsxs','@univerjs-pro/collaboration','none','RxDisposable','_handleOffline','_init','_startFollowing','trim','_handleTerminate','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-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','Disposable','univer-size-4','IUIPartsService','_handleNewChangeSets','useState','BuiltInUIPart','path','has','registerDependencies','_uiPartsService','http://www.w3.org/2000/svg','onRendered','tryStartPresenting','toStringTag','entries','15FBjNRT','end','_stopPresenting','stopFollowing','LiveShareStatus','univerjs-icon\x20univerjs-icon-','useEffect','mask','_startLiveShareCoordinator','live-share-icon','UniverProCollaboration','mergeOverrideWithDependencies','jsx','12255690DXNGBf','@univerjs/design','get','createInstance','assign','Button','onCommandExecuted','_injector','sheet','delete','offline','CollaborationEvent','complete','data','rxjs','LiveShareIcon','type','LiveShareService','string','dispose$','LIVESHARE_OPERATION','executeCommand','default','function','getInitialStates','currentColor','HEADER_MENU','@univerjs-pro/collaboration-client','find','React','Stop\x20following','456037ovlrsK','@univerjs/sheets','11227311JtsVcd','You\x27re\x20presenting\x20the\x20document','556oSZfEy','toDisposable','useRef','includes','connectInjector','url(#$1','status$','defineProperty','getConfig','throttleTime','IConfigService','CollaborationSessionService','@univerjs/core','Fragment','parse','forEach','You\x27re\x20following\x20the\x20presenter','11cRzeoe','LiveShare','exports','Inject','tag','fill','text','following','IDLE','event$','_reporters','_commandService','SetZoomRatioOperation','_handleNewHost','useDependency','rxjs/operators','_status','DesktopLiveShareController','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','You\x27are\x20offline.','next','presenter','idSuffix','_config','attrs','forwardRef','send','_unitID','Start\x20following','8199954oymIRl','CommandType','disposeWithMe','8pUaISG','BehaviorSubject','params','getOwnPropertyDescriptor','pipe','react','NOT_FOLLOWING','operators','startFollowing','_liveShareService','map','stringify','_entities','_sharedOperations','UNIVER_SHEET','0\x200\x2017\x2017'];_0x5f01=function(){return _0x11f503;};return _0x5f01();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-experimental.20251210-
|
|
3
|
+
"version": "0.12.4-experimental.20251210-d708bff",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.4-experimental.20251210-
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-experimental.20251210-d708bff",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-d708bff",
|
|
62
|
+
"@univerjs/design": "0.12.4-experimental.20251210-d708bff",
|
|
63
|
+
"@univerjs/core": "0.12.4-experimental.20251210-d708bff",
|
|
64
|
+
"@univerjs/sheets-ui": "0.12.4-experimental.20251210-d708bff",
|
|
65
|
+
"@univerjs/sheets": "0.12.4-experimental.20251210-d708bff",
|
|
66
|
+
"@univerjs/ui": "0.12.4-experimental.20251210-d708bff",
|
|
67
|
+
"@univerjs/engine-render": "0.12.4-experimental.20251210-d708bff"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.6",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.12.4",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|