@univerjs-pro/live-share 0.12.3 → 0.12.4-experimental.20251210-8d33c6e
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 +13 -13
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x51c025=_0x35cf;(function(_0x448ddf,_0x520ec7){const _0xedb6ee=_0x35cf,_0x3aecc2=_0x448ddf();while(!![]){try{const _0x2352b7=parseInt(_0xedb6ee(0x1d8))/0x1+parseInt(_0xedb6ee(0x1d6))/0x2*(-parseInt(_0xedb6ee(0x1b3))/0x3)+-parseInt(_0xedb6ee(0x1cb))/0x4*(parseInt(_0xedb6ee(0x1c0))/0x5)+parseInt(_0xedb6ee(0x1be))/0x6+parseInt(_0xedb6ee(0x1bf))/0x7+-parseInt(_0xedb6ee(0x1b8))/0x8*(parseInt(_0xedb6ee(0x1ca))/0x9)+parseInt(_0xedb6ee(0x1d3))/0xa;if(_0x2352b7===_0x520ec7)break;else _0x3aecc2['push'](_0x3aecc2['shift']());}catch(_0x59f741){_0x3aecc2['push'](_0x3aecc2['shift']());}}}(_0x49e9,0xea308));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');function _0x35cf(_0x2dc6bc,_0x3979a9){_0x2dc6bc=_0x2dc6bc-0x1af;const _0x49e95a=_0x49e9();let _0x35cf2c=_0x49e95a[_0x2dc6bc];return _0x35cf2c;}class w extends d[_0x51c025(0x1cf)]{[_0x51c025(0x1c5)](_0x3f72c2,_0x54cb07,_0x4d707c,_0xce610a,_0x1f7106){const _0x52d860=_0x51c025,_0x473669=_0x3f72c2[_0x52d860(0x1af)](n['LiveShareController']),_0x3b10f2=_0x3f72c2[_0x52d860(0x1af)](g[_0x52d860(0x1bb)]),_0x288631=_0x54cb07[_0x52d860(0x1d2)](),_0x24d39d=_0x54cb07[_0x52d860(0x1c8)](),_0x3bfff5=_0x473669[_0x52d860(0x1c1)](_0x288631);(_0x3bfff5==null?void 0x0:_0x3bfff5[_0x52d860(0x1b1)]())!==n[_0x52d860(0x1c4)]['PRESENTING']||(_0x4d707c[_0x52d860(0x1d7)]()!==_0x24d39d['getSheetId']()&&this[_0x52d860(0x1d5)][_0x52d860(0x1c3)](u[_0x52d860(0x1b0)]['id'],{'unitId':_0x288631,'subUnitId':_0x4d707c[_0x52d860(0x1d7)]()}),!_0x3b10f2[_0x52d860(0x1c2)](_0x288631))||_0x1f7106['syncExecuteCommand'](f[_0x52d860(0x1cd)]['id'],{'unitId':_0x54cb07[_0x52d860(0x1d2)](),'sheetId':_0x4d707c['getSheetId'](),'sheetViewStartRow':_0xce610a[_0x52d860(0x1cc)],'sheetViewStartColumn':_0xce610a[_0x52d860(0x1c9)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x49e9(){const _0x37b66e=['16687230UrjGdL','stopPresenting','_commandService','53714lQehXX','getSheetId','1816182bAOICs','No\x20active\x20workbook\x20found.','get','SetWorksheetActiveOperation','getStatus','getActiveWorkbook','21aBdwdK','startPresenting','extend','LiveShareStatusEnum','FEnum','4261528gxoNBU','LiveShareController','IDLE','IRenderManagerService','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','530706wpndlv','72184ghqXTS','55155lnXJdH','getLiveShareCoordinatorSync','getRenderById','executeCommand','LiveShareStatus','_initialize','FUniver','tryStartPresenting','getActiveSheet','startColumn','27adArNd','304EgqLTk','startRow','SetScrollOperation','getId','FRange','stopFollowing','_injector','getUnitId'];_0x49e9=function(){return _0x37b66e;};return _0x49e9();}d['FRange'][_0x51c025(0x1b5)](w);class C extends a[_0x51c025(0x1c6)]{['getLiveShareStatus'](){const _0x44c88f=_0x51c025;var _0x20e74f,_0x1c0e64;const _0x4ad5ec=this[_0x44c88f(0x1d1)][_0x44c88f(0x1af)](n[_0x44c88f(0x1b9)]),_0xa26add=(_0x20e74f=this[_0x44c88f(0x1b2)]())==null?void 0x0:_0x20e74f[_0x44c88f(0x1ce)]();if(!_0xa26add)throw new Error(_0x44c88f(0x1d9));const _0x475e42=_0x4ad5ec[_0x44c88f(0x1c1)](_0xa26add);return(_0x1c0e64=_0x475e42==null?void 0x0:_0x475e42['getStatus']())!=null?_0x1c0e64:n[_0x44c88f(0x1c4)][_0x44c88f(0x1ba)];}[_0x51c025(0x1bc)](){const _0x33d3da=_0x51c025;var _0x3b14f6;const _0x5b0859=this[_0x33d3da(0x1d1)]['get'](n[_0x33d3da(0x1b9)]),_0x1f03db=(_0x3b14f6=this[_0x33d3da(0x1b2)]())==null?void 0x0:_0x3b14f6['getId']();if(!_0x1f03db)throw new Error(_0x33d3da(0x1d9));const _0x581a40=_0x5b0859['getLiveShareCoordinatorSync'](_0x1f03db);if(!_0x581a40)throw new Error(_0x33d3da(0x1bd));_0x581a40['startFollowing']();}['stopFollowing'](){const _0x215057=_0x51c025;var _0x3a75fe;const _0x6e0ecd=this['_injector'][_0x215057(0x1af)](n[_0x215057(0x1b9)]),_0x132030=(_0x3a75fe=this[_0x215057(0x1b2)]())==null?void 0x0:_0x3a75fe['getId']();if(!_0x132030)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fdc83=_0x6e0ecd[_0x215057(0x1c1)](_0x132030);if(!_0x3fdc83)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3fdc83[_0x215057(0x1d0)]();}[_0x51c025(0x1b4)](){const _0xe33d2b=_0x51c025;var _0x3bd6e7;const _0x3cc6d7=this[_0xe33d2b(0x1d1)][_0xe33d2b(0x1af)](n[_0xe33d2b(0x1b9)]),_0x365ac2=(_0x3bd6e7=this[_0xe33d2b(0x1b2)]())==null?void 0x0:_0x3bd6e7[_0xe33d2b(0x1ce)]();if(!_0x365ac2)throw new Error(_0xe33d2b(0x1d9));const _0x4b5383=_0x3cc6d7[_0xe33d2b(0x1c1)](_0x365ac2);if(!_0x4b5383)throw new Error(_0xe33d2b(0x1bd));_0x4b5383[_0xe33d2b(0x1c7)]();}[_0x51c025(0x1d4)](){const _0x212a42=_0x51c025;var _0x156fa9;const _0x5cb143=this[_0x212a42(0x1d1)][_0x212a42(0x1af)](n[_0x212a42(0x1b9)]),_0x5a7ac3=(_0x156fa9=this[_0x212a42(0x1b2)]())==null?void 0x0:_0x156fa9['getId']();if(!_0x5a7ac3)throw new Error(_0x212a42(0x1d9));const _0x1cd41d=_0x5cb143[_0x212a42(0x1c1)](_0x5a7ac3);if(!_0x1cd41d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1cd41d[_0x212a42(0x1d4)]();}}a[_0x51c025(0x1c6)]['extend'](C);class L extends a['FEnum']{get[_0x51c025(0x1b6)](){const _0x3007aa=_0x51c025;return n[_0x3007aa(0x1c4)];}}a[_0x51c025(0x1b7)][_0x51c025(0x1b5)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x557c04=_0x2d86;function _0x5f2a(){const _0x83b2f6=['7cIrqEL','Injector','_entities','0\x200\x2017\x2017','UniverIcon','_config','getLiveShareCoordinator','clear','SetZoomRatioOperation','live-share-icon','SetScrollOperation','subscribe','PRESENTING','stopFollowing','LiveShareController','map','LiveShareStatus','getValue','get','_startFollowing','following','url(#$1','LIVESHARE_FETCH_OPERATIONS','_unitID','text','toDisposable','useDependency','9uZliwp','use','Start\x20following','clsx','children','div','Dropdown','1em','Inject','status$','ONLINE','getStatus','24YqoJfL','colorChannel1','event$','Module','then','getUnitId','372xyeksX','startFollowing','stopPresenting','HEADER_MENU','tryStartPresenting','disposeWithMe','_liveShareService','toString','values','getCurrentTypeOfUnit$','live-share.config','http://www.w3.org/2000/svg','parse','_commandDisposable','IConfigService','getOwnPropertyDescriptor','Fragment','memberID','requireSession','_stopFollowing','UniverCollaborationClientPlugin','not-following','OPERATION','1398cYnRUY','getConfig','_uiPartsService','sheet','LiveShareCoordinator','idSuffix','set','init','BuiltInUIPart','substring','evenodd','OFFLINE','delete','useState','_univerInstanceService','forwardRef','jsxs','_commandService','_handleOperation','FOLLOWING','LiveShareService','presenter','displayName','replace','SetWorksheetActiveOperation','offline','trim','LIVESHARE_TERMINATE','Present\x20this\x20document','defIds','includes','path','_init','LIVESHARE_OPERATION','Plugin','string','CommandType','_sharedOperations','button','type','current','useObservable','setConfig','send','DesktopLiveShareController','Subject','sessionStatus$','_beIdle','UniverLiveSharePlugin','has','dispose','touchDependencies','_collabSession','currentColor','BehaviorSubject','515585IWxFhc','You\x27re\x20not\x20following\x20the\x20presenter','params','_collabSessionService','complete','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','mutations','fill','onCommandExecuted','forEach','takeUntil','5473490PdsrRh','connectInjector','Stop\x20following','You\x27re\x20presenting\x20the\x20document','SessionStatus','onStarting','UniverInstanceType','random','_handleOnline','_startPresenting','symbol','Start','shouldShareOperation','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','assign','IUIPartsService','xlink:href','CollaborationEvent','IDLE','_fetchOperations','pipe','svg','add','getMemberID','unitId','defineProperty','_handleTerminate','attrs','entries','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','jsx','univerjs-icon\x20univerjs-icon-','_status','next','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','mergeOverrideWithDependencies','LIVESHARE_NEW_HOST','executeCommand','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','data','presenting','reverse','_handleNewChangeSets','_presenter','override','pluginName','useRef','getLiveShareCoordinatorSync','dispose$','LiveShare','_handleNewHost','parseProtocolChangeset','operations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOffline','length','2161672wprdhK','773796ivZNoq','stringify','6035359piJZcy','_reporters','registerInitialStateReporter','RxDisposable','_status$','getTypeOfUnitAdded$','27076CCOFDc','_configService','tag','registerDependencies','InsertSheetMutation','getInitialStates','Button','Disposable','_stopPresenting','mask','idle','UNIVER_SHEET','_mountLiveShare'];_0x5f2a=function(){return _0x83b2f6;};return _0x5f2a();}(function(_0x28ed11,_0x474c59){const _0x11cc48=_0x2d86,_0x73b1a2=_0x28ed11();while(!![]){try{const _0x88a8f8=-parseInt(_0x11cc48(0x95))/0x1*(parseInt(_0x11cc48(0xac))/0x2)+parseInt(_0x11cc48(0x12c))/0x3+-parseInt(_0x11cc48(0x134))/0x4+parseInt(_0x11cc48(0xe3))/0x5*(-parseInt(_0x11cc48(0x8f))/0x6)+-parseInt(_0x11cc48(0x141))/0x7*(parseInt(_0x11cc48(0x12b))/0x8)+parseInt(_0x11cc48(0x83))/0x9*(parseInt(_0x11cc48(0xef))/0xa)+parseInt(_0x11cc48(0x12e))/0xb;if(_0x88a8f8===_0x474c59)break;else _0x73b1a2['push'](_0x73b1a2['shift']());}catch(_0x4157fe){_0x73b1a2['push'](_0x73b1a2['shift']());}}}(_0x5f2a,0x62bfc));var T=Object[_0x557c04(0x10a)],U=(_0x4c8d3f,_0x22130b,_0x34ba3a)=>_0x22130b in _0x4c8d3f?T(_0x4c8d3f,_0x22130b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34ba3a}):_0x4c8d3f[_0x22130b]=_0x34ba3a,_=(_0x3d8d19,_0x29d1f6,_0x3f4419)=>U(_0x3d8d19,typeof _0x29d1f6!=_0x557c04(0xf9)?_0x29d1f6+'':_0x29d1f6,_0x3f4419);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x557c04(0x92)});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:_0x481058,..._0xf693c9}){const _0x5c6d29=_0x557c04,{icon:_0xe6b45,id:_0x419053,className:_0x46227b,extend:_0x1f0a76,..._0x5dda74}=_0xf693c9,_0x2e5209=(_0x5c6d29(0x111)+_0x419053+'\x20'+(_0x46227b||''))[_0x5c6d29(0xc6)](),_0x5010aa=v[_0x5c6d29(0x121)]('_'+H());return j(_0xe6b45,''+_0x419053,{'defIds':_0xe6b45[_0x5c6d29(0xc9)],'idSuffix':_0x5010aa[_0x5c6d29(0xd4)]},{'ref':_0x481058,'className':_0x2e5209,..._0x5dda74},_0x1f0a76);}function j(_0x3ad838,_0x35e57b,_0x2f13ef,_0x2ba3e5,_0x30cdd0){const _0x16f21a=_0x557c04;return v['createElement'](_0x3ad838[_0x16f21a(0x136)],{'key':_0x35e57b,...y(_0x3ad838,_0x2f13ef,_0x30cdd0),..._0x2ba3e5},(F(_0x3ad838,_0x2f13ef)[_0x16f21a(0x87)]||[])[_0x16f21a(0x150)]((_0x41f3fd,_0x14c8b0)=>j(_0x41f3fd,_0x35e57b+'-'+_0x3ad838[_0x16f21a(0x136)]+'-'+_0x14c8b0,_0x2f13ef,void 0x0,_0x30cdd0)));}function y(_0x490e9f,_0x582790,_0x3ce4d5){const _0x4ab3dd=_0x557c04,_0xf927b6={..._0x490e9f[_0x4ab3dd(0x10c)]};_0x3ce4d5!=null&&_0x3ce4d5[_0x4ab3dd(0x90)]&&_0xf927b6[_0x4ab3dd(0xeb)]===_0x4ab3dd(0x90)&&(_0xf927b6[_0x4ab3dd(0xeb)]=_0x3ce4d5[_0x4ab3dd(0x90)]),_0x490e9f['tag']===_0x4ab3dd(0x13d)&&_0xf927b6['id']&&(_0xf927b6['id']=_0xf927b6['id']+_0x582790[_0x4ab3dd(0xb1)]),Object[_0x4ab3dd(0x10d)](_0xf927b6)[_0x4ab3dd(0xed)](([_0xaa5a2a,_0x4807e3])=>{const _0x14a344=_0x4ab3dd;_0xaa5a2a==='mask'&&typeof _0x4807e3==_0x14a344(0xcf)&&(_0xf927b6[_0xaa5a2a]=_0x4807e3['replace'](/url\(#(.*)\)/,_0x14a344(0x156)+_0x582790[_0x14a344(0xb1)]+')'));});const {defIds:_0x164eb9}=_0x582790;return!_0x164eb9||_0x164eb9[_0x4ab3dd(0x12a)]===0x0||(_0x490e9f[_0x4ab3dd(0x136)]===_0x4ab3dd(0x84)&&_0xf927b6[_0x4ab3dd(0x101)]&&(_0xf927b6[_0x4ab3dd(0x101)]=_0xf927b6[_0x4ab3dd(0x101)]+_0x582790['idSuffix']),Object[_0x4ab3dd(0x10d)](_0xf927b6)[_0x4ab3dd(0xed)](([_0x2e8fb2,_0x4e411f])=>{const _0x352f0b=_0x4ab3dd;typeof _0x4e411f==_0x352f0b(0xcf)&&(_0xf927b6[_0x2e8fb2]=_0x4e411f[_0x352f0b(0xc3)](/url\(#(.*)\)/,_0x352f0b(0x156)+_0x582790[_0x352f0b(0xb1)]+')'));})),_0xf927b6;}function F(_0x566f3c,_0x32c11d){const _0x64eb45=_0x557c04;var _0x1bdd5e;const {defIds:_0x187045}=_0x32c11d;return!_0x187045||_0x187045[_0x64eb45(0x12a)]===0x0?_0x566f3c:_0x566f3c[_0x64eb45(0x136)]==='defs'&&((_0x1bdd5e=_0x566f3c[_0x64eb45(0x87)])!=null&&_0x1bdd5e['length'])?{..._0x566f3c,'children':_0x566f3c['children'][_0x64eb45(0x150)](_0x1cbfb7=>typeof _0x1cbfb7['attrs']['id']==_0x64eb45(0xcf)&&_0x187045&&_0x187045[_0x64eb45(0xca)](_0x1cbfb7['attrs']['id'])?{..._0x1cbfb7,'attrs':{..._0x1cbfb7[_0x64eb45(0x10c)],'id':_0x1cbfb7[_0x64eb45(0x10c)]['id']+_0x32c11d[_0x64eb45(0xb1)]}}:_0x1cbfb7)}:_0x566f3c;}function H(){const _0x1ae4c1=_0x557c04;return Math[_0x1ae4c1(0xf6)]()[_0x1ae4c1(0x9c)](0x24)[_0x1ae4c1(0xb5)](0x2,0x8);}x[_0x557c04(0xc2)]=_0x557c04(0x145);const V={'tag':_0x557c04(0x106),'attrs':{'xmlns':_0x557c04(0xa0),'fill':'none','viewBox':_0x557c04(0x144),'width':_0x557c04(0x8a),'height':_0x557c04(0x8a)},'children':[{'tag':'path','attrs':{'fill':_0x557c04(0xe1),'d':_0x557c04(0x114)}},{'tag':_0x557c04(0xcb),'attrs':{'fill':_0x557c04(0xe1),'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':_0x557c04(0xb6)}}]},R=v[_0x557c04(0xbb)](function(_0x1a5504,_0x1be0dd){const _0x36798c=_0x557c04;return v['createElement'](x,Object[_0x36798c(0xff)]({},_0x1a5504,{'id':_0x36798c(0x14a),'ref':_0x1be0dd,'icon':V}));});R[_0x557c04(0xc2)]='LiveShareIcon';class E extends o[_0x557c04(0x13b)]{constructor(){const _0x4899cb=_0x557c04;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4899cb(0x12f),new Set());}[_0x557c04(0xfc)](_0x4580bb){const _0x55c87d=_0x557c04;return this[_0x55c87d(0xd1)][_0x55c87d(0x107)](_0x4580bb),o[_0x55c87d(0x81)](()=>this[_0x55c87d(0xd1)][_0x55c87d(0xb8)](_0x4580bb));}[_0x557c04(0x130)](_0x55dbd9){const _0x24015b=_0x557c04;return this['_reporters'][_0x24015b(0x107)](_0x55dbd9),o[_0x24015b(0x81)](()=>this[_0x24015b(0x12f)][_0x24015b(0xb8)](_0x55dbd9));}[_0x557c04(0xfb)](_0x27a063){const _0x7556c=_0x557c04;return this[_0x7556c(0xd1)][_0x7556c(0xdd)](_0x27a063);}[_0x557c04(0x139)](_0x275e2b){const _0x5e96bc=_0x557c04;return Array['from'](this[_0x5e96bc(0x12f)])[_0x5e96bc(0x150)](_0x53a005=>_0x53a005(_0x275e2b));}}var M=Object[_0x557c04(0xa4)],P=(_0x3492ce,_0x1c9ccc,_0x539c95,_0x28d77b)=>{const _0x18a5ba=_0x557c04;for(var _0x1551b6=_0x28d77b>0x1?void 0x0:_0x28d77b?M(_0x1c9ccc,_0x539c95):_0x1c9ccc,_0x520510=_0x3492ce[_0x18a5ba(0x12a)]-0x1,_0x5868e9;_0x520510>=0x0;_0x520510--)(_0x5868e9=_0x3492ce[_0x520510])&&(_0x1551b6=_0x5868e9(_0x1551b6)||_0x1551b6);return _0x1551b6;},S=(_0x2347c1,_0x29a25e)=>(_0x1e491c,_0x4b2591)=>_0x29a25e(_0x1e491c,_0x4b2591,_0x2347c1);exports['LiveShareController']=class extends o[_0x557c04(0x131)]{constructor(_0x409dde,_0x23b490,_0x1a2800){const _0x474852=_0x557c04;super(),_(this,_0x474852(0x143),new Map()),(this['_univerInstanceService']=_0x409dde,this[_0x474852(0xfe)]=_0x23b490,this[_0x474852(0xe6)]=_0x1a2800,this[_0x474852(0xcc)]());}async[_0x557c04(0x147)](_0x4940a4){const _0x4b9d60=_0x557c04;return this['_entities'][_0x4b9d60(0xdd)](_0x4940a4)||await this[_0x4b9d60(0x119)](_0x4940a4),this[_0x4b9d60(0x143)][_0x4b9d60(0x153)](_0x4940a4);}[_0x557c04(0x122)](_0x1bd06b){const _0x493815=_0x557c04;var _0x36191d;return(_0x36191d=this[_0x493815(0x143)][_0x493815(0x153)](_0x1bd06b))!=null?_0x36191d:null;}[_0x557c04(0xcc)](){const _0x45f1fd=_0x557c04;this['_univerInstanceService'][_0x45f1fd(0x133)](o['UniverInstanceType'][_0x45f1fd(0x13f)])['pipe'](I[_0x45f1fd(0xee)](this[_0x45f1fd(0x123)]))['subscribe'](async _0x43fef2=>{const _0x5ce727=_0x45f1fd,_0x805857=_0x43fef2['getUnitId']();this[_0x5ce727(0x143)]['has'](_0x805857)||this[_0x5ce727(0x119)](_0x805857);}),this[_0x45f1fd(0xba)][_0x45f1fd(0x10f)](o['UniverInstanceType'][_0x45f1fd(0x13f)])[_0x45f1fd(0x105)](I[_0x45f1fd(0xee)](this[_0x45f1fd(0x123)]))[_0x45f1fd(0x14c)](_0x2076c6=>{const _0x42e88b=_0x45f1fd,_0x4c3e48=_0x2076c6[_0x42e88b(0x94)](),_0x197b1f=this[_0x42e88b(0x143)][_0x42e88b(0x153)](_0x4c3e48);_0x197b1f==null||_0x197b1f[_0x42e88b(0xde)]();});}async[_0x557c04(0x119)](_0xd485c7){const _0x39907a=_0x557c04,_0x5971a2=await this['_collabSessionService'][_0x39907a(0xa7)](_0xd485c7),_0x5d00d4=this['_injector']['createInstance'](exports[_0x39907a(0xb0)],_0xd485c7,_0x5971a2);return _0x5d00d4['init'](),this[_0x39907a(0x143)][_0x39907a(0xb2)](_0xd485c7,_0x5d00d4),_0x5d00d4;}},exports[_0x557c04(0x14f)]=P([S(0x0,o[_0x557c04(0xe9)]),S(0x1,o[_0x557c04(0x8b)](o[_0x557c04(0x142)])),S(0x2,o[_0x557c04(0x8b)](b['CollaborationSessionService']))],exports[_0x557c04(0x14f)]);var u=(_0x13b0af=>(_0x13b0af['OFFLINE']=_0x557c04(0xc5),_0x13b0af[_0x557c04(0x103)]=_0x557c04(0x13e),_0x13b0af[_0x557c04(0xbf)]=_0x557c04(0x155),_0x13b0af['NOT_FOLLOWING']=_0x557c04(0xaa),_0x13b0af[_0x557c04(0x14d)]='presenting',_0x13b0af))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x557c04(0xb0)]=class extends o[_0x557c04(0x131)]{constructor(_0x5656d9,_0xb069e,_0x2bdef9,_0x4407e0,_0x32cfbd){const _0x1aaafb=_0x557c04;super(),_(this,_0x1aaafb(0x132),new O[(_0x1aaafb(0xe2))](_0x1aaafb(0x13e))),_(this,_0x1aaafb(0x8c),this[_0x1aaafb(0x132)]['asObservable']()),_(this,_0x1aaafb(0xcc),!0x1),_(this,'_commandDisposable',null),_(this,_0x1aaafb(0x11e),null),(this[_0x1aaafb(0x158)]=_0x5656d9,this[_0x1aaafb(0xe0)]=_0xb069e,this[_0x1aaafb(0x135)]=_0x2bdef9,this[_0x1aaafb(0x9b)]=_0x4407e0,this[_0x1aaafb(0xbd)]=_0x32cfbd);}get[_0x557c04(0x112)](){const _0x1178ca=_0x557c04;return this[_0x1178ca(0x132)][_0x1178ca(0x152)]();}[_0x557c04(0xde)](){const _0x45c26f=_0x557c04;var _0xabf614;(_0xabf614=this[_0x45c26f(0xa2)])==null||_0xabf614[_0x45c26f(0xde)](),this[_0x45c26f(0x132)]['next'](_0x45c26f(0x13e)),this['_status$'][_0x45c26f(0xe7)]();}[_0x557c04(0x8e)](){const _0x5ee812=_0x557c04;return this[_0x5ee812(0x112)];}[_0x557c04(0xb3)](){const _0x40c836=_0x557c04;this[_0x40c836(0xcc)]||(this[_0x40c836(0xcc)]=!0x0,this[_0x40c836(0xe0)][_0x40c836(0xda)][_0x40c836(0x105)](I[_0x40c836(0xee)](this[_0x40c836(0x123)]))[_0x40c836(0x14c)](_0x520ddc=>{const _0xdcc801=_0x40c836;switch(_0x520ddc){case b[_0xdcc801(0xf3)][_0xdcc801(0xb7)]:this[_0xdcc801(0x129)]();break;case b[_0xdcc801(0xf3)][_0xdcc801(0x8d)]:this[_0xdcc801(0xf7)]();break;}}),this[_0x40c836(0xe0)][_0x40c836(0x91)][_0x40c836(0x105)](I[_0x40c836(0xee)](this[_0x40c836(0x123)]))[_0x40c836(0x14c)](_0x58dfdd=>{const _0x57c581=_0x40c836,{eventID:_0x3e58fb}=_0x58dfdd;switch(_0x3e58fb){case d[_0x57c581(0x102)][_0x57c581(0x116)]:this[_0x57c581(0x125)](_0x58dfdd);break;case d['CollaborationEvent'][_0x57c581(0xcd)]:this[_0x57c581(0xbe)](_0x58dfdd);break;case d[_0x57c581(0x102)][_0x57c581(0xc7)]:this[_0x57c581(0x10b)]();break;case d[_0x57c581(0x102)]['NEW_CHANGESETS']:this[_0x57c581(0x11d)](_0x58dfdd);break;}}));}['tryStartPresenting'](){const _0x564479=_0x557c04;this[_0x564479(0xe0)][_0x564479(0xd7)]({'eventID':d[_0x564479(0x102)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x564479(0x158)],'userID':this[_0x564479(0xe0)][_0x564479(0x108)]()}},this[_0x564479(0x158)]);}[_0x557c04(0x97)](){const _0x5237e4=_0x557c04;this[_0x5237e4(0x112)]===_0x5237e4(0x11b)&&(this[_0x5237e4(0x132)][_0x5237e4(0x113)](_0x5237e4(0x13e)),this[_0x5237e4(0xe0)][_0x5237e4(0xd7)]({'eventID':d[_0x5237e4(0x102)][_0x5237e4(0xc7)],'data':{'unitID':this[_0x5237e4(0x158)]}},this[_0x5237e4(0x158)]));}[_0x557c04(0x96)](){const _0x54c3a6=_0x557c04;this[_0x54c3a6(0x112)]===_0x54c3a6(0xaa)&&(this[_0x54c3a6(0x132)][_0x54c3a6(0x113)](_0x54c3a6(0x155)),this[_0x54c3a6(0x154)]());}[_0x557c04(0x14e)](){const _0x3a5e1b=_0x557c04;this[_0x3a5e1b(0x112)]===_0x3a5e1b(0x155)&&this['_stopFollowing']();}[_0x557c04(0x125)](_0x3b0fc4){const _0x55075f=_0x557c04,{presenter:_0x51740d}=_0x3b0fc4[_0x55075f(0x11a)],_0x25f918=this['_collabSession'][_0x55075f(0x108)]();this['_presenter']=_0x51740d,_0x51740d===_0x25f918?(this[_0x55075f(0xa8)](),this[_0x55075f(0xf8)]()):this[_0x55075f(0x112)]!==_0x55075f(0xaa)&&(this[_0x55075f(0x13c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x6d3563=_0x557c04,_0x3ca65f={'eventID':d['CollaborationEvent'][_0x6d3563(0x157)]};this['_collabSession']['send'](_0x3ca65f,this[_0x6d3563(0x158)]);}[_0x557c04(0x10b)](){const _0x482b3a=_0x557c04;this[_0x482b3a(0x11e)]=null,this[_0x482b3a(0x112)]!==_0x482b3a(0x11b)&&this[_0x482b3a(0xdb)]();}[_0x557c04(0x11d)](_0x31f2e8){const _0x3e3db1=_0x557c04;if(this[_0x3e3db1(0x112)]===_0x3e3db1(0x155)&&this[_0x3e3db1(0x11e)]===_0x31f2e8[_0x3e3db1(0x11a)][_0x3e3db1(0xa6)]){const _0x31ee40=d[_0x3e3db1(0x126)](_0x31f2e8[_0x3e3db1(0x11a)])[_0x3e3db1(0xea)][_0x3e3db1(0x11c)]()['find'](_0x224009=>_0x224009['id']===C[_0x3e3db1(0x138)]['id']);if(_0x31ee40){const _0x32e4ea=_0x31ee40['params'][_0x3e3db1(0x109)],_0x1c977c=_0x31ee40['params'][_0x3e3db1(0xaf)]['id'];setTimeout(()=>{const _0x1fbb53=_0x3e3db1;this[_0x1fbb53(0xbd)][_0x1fbb53(0x117)](C[_0x1fbb53(0xc4)]['id'],{'unitId':_0x32e4ea,'subUnitId':_0x1c977c},{'fromCollab':!0x0});});}}}[_0x557c04(0xf8)](){const _0x1b7c32=_0x557c04;this['_status$'][_0x1b7c32(0x113)](_0x1b7c32(0x11b));const _0x191cf9=new Map(),_0x16155c=this['_commandDisposable']=new o['DisposableCollection']();_0x16155c['add'](o[_0x1b7c32(0x81)](()=>{const _0x1dbaa6=_0x1b7c32;_0x191cf9['forEach'](_0x2bddc3=>_0x2bddc3[_0x1dbaa6(0xe7)]()),_0x191cf9[_0x1dbaa6(0x148)]();})),_0x16155c['add'](this[_0x1b7c32(0xbd)][_0x1b7c32(0xec)](_0x19c7c1=>{const _0x297319=_0x1b7c32;var _0x5ae1ca;if(_0x19c7c1[_0x297319(0xd3)]!==o[_0x297319(0xd0)][_0x297319(0xab)]||!this['_liveShareService'][_0x297319(0xfb)](_0x19c7c1['id']))return;const {id:_0x3a577f}=_0x19c7c1;let _0x4fa0b8;_0x191cf9[_0x297319(0xdd)](_0x3a577f)?_0x4fa0b8=_0x191cf9[_0x297319(0x153)](_0x3a577f):(_0x4fa0b8=new O[(_0x297319(0xd9))](),_0x191cf9['set'](_0x3a577f,_0x4fa0b8),_0x4fa0b8[_0x297319(0x105)](I['throttleTime']((_0x5ae1ca=this[_0x297319(0x135)][_0x297319(0xad)](k))!=null?_0x5ae1ca:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x297319(0x14c)](_0x3b5ead=>{const _0x29015a=_0x297319;this[_0x29015a(0xe0)][_0x29015a(0xd7)]({'eventID':d[_0x29015a(0x102)][_0x29015a(0xcd)],'data':{'unitID':this['_unitID'],'operations':{[_0x3b5ead['id']]:{'id':_0x3b5ead['id'],'params':JSON[_0x29015a(0x12d)](_0x3b5ead[_0x29015a(0xe5)])}}}},this[_0x29015a(0x158)]);})),_0x4fa0b8[_0x297319(0x113)](_0x19c7c1);})),this[_0x1b7c32(0x9b)][_0x1b7c32(0x139)](this['_unitID'])['forEach'](_0x2b1b42=>this['_collabSession'][_0x1b7c32(0xd7)]({'eventID':d[_0x1b7c32(0x102)][_0x1b7c32(0xcd)],'data':{'unitID':this[_0x1b7c32(0x158)],'operations':{[_0x2b1b42['id']]:{'id':_0x2b1b42['id'],'params':JSON['stringify'](_0x2b1b42[_0x1b7c32(0xe5)])}}}},this['_unitID']));}[_0x557c04(0x13c)](){const _0x25509d=_0x557c04;var _0x391b4a;this[_0x25509d(0x132)]['next']('idle'),(_0x391b4a=this[_0x25509d(0xa2)])==null||_0x391b4a[_0x25509d(0xde)](),this[_0x25509d(0xa2)]=null;}[_0x557c04(0x154)](){const _0x21db10=_0x557c04;var _0x310a01;(_0x310a01=this[_0x21db10(0xa2)])==null||_0x310a01[_0x21db10(0xde)](),this['_status$'][_0x21db10(0x113)]('following');}[_0x557c04(0xdb)](){const _0x3a5433=_0x557c04;var _0x26c5a5;this['_status$'][_0x3a5433(0x113)](_0x3a5433(0x13e)),(_0x26c5a5=this['_commandDisposable'])==null||_0x26c5a5[_0x3a5433(0xde)](),this[_0x3a5433(0xa2)]=null;}[_0x557c04(0xa8)](){const _0x541930=_0x557c04;var _0x308874;this[_0x541930(0x132)][_0x541930(0x113)](_0x541930(0xaa)),(_0x308874=this[_0x541930(0xa2)])==null||_0x308874['dispose']();}['_handleOperation'](_0x5e5712){const _0x54d7cd=_0x557c04;if([_0x54d7cd(0x11b),'not-following',_0x54d7cd(0xc5)][_0x54d7cd(0xca)](this['_status'])||!_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0xc1)]||_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0xc1)]===this[_0x54d7cd(0xe0)][_0x54d7cd(0x108)]())return;this[_0x54d7cd(0x112)]===_0x54d7cd(0x13e)&&this[_0x54d7cd(0x154)]();const _0xcdb119=_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0x127)];Object[_0x54d7cd(0x9d)](_0xcdb119)[_0x54d7cd(0xed)](_0x37b4a1=>{const _0x30f53c=_0x54d7cd;this[_0x30f53c(0xbd)]['executeCommand'](_0x37b4a1['id'],_0x37b4a1['params']?JSON[_0x30f53c(0xa1)](_0x37b4a1[_0x30f53c(0xe5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5cc0b5=_0x557c04;var _0x32d29c;this[_0x5cc0b5(0x132)]['next']('offline'),(_0x32d29c=this[_0x5cc0b5(0xa2)])==null||_0x32d29c[_0x5cc0b5(0xde)]();}['_handleOnline'](){const _0x2f080a=_0x557c04;this[_0x2f080a(0x132)][_0x2f080a(0x113)](_0x2f080a(0x13e)),this[_0x2f080a(0x104)]();}},exports[_0x557c04(0xb0)]=P([S(0x2,o[_0x557c04(0xa3)]),S(0x3,o[_0x557c04(0x8b)](E)),S(0x4,o['ICommandService'])],exports[_0x557c04(0xb0)]);function $(){const _0x4fac57=_0x557c04,_0x4365ba=p['useDependency'](exports[_0x4fac57(0x14f)]),_0x5d418f=p[_0x4fac57(0x82)](o[_0x4fac57(0xe9)]),_0x22a218=p[_0x4fac57(0xd5)](()=>_0x5d418f[_0x4fac57(0x9e)](o[_0x4fac57(0xf5)][_0x4fac57(0x13f)]),void 0x0,!0x1,[]),[_0x389557,_0x358234]=v['useState'](null),[_0x5773b1,_0x2bf206]=v[_0x4fac57(0xb9)](u[_0x4fac57(0x103)]),_0x40eaea=v[_0x4fac57(0x121)](null);return v['useEffect'](()=>(_0x22a218&&_0x4365ba[_0x4fac57(0x147)](_0x22a218[_0x4fac57(0x94)]())[_0x4fac57(0x93)](_0x4f0585=>{const _0x173eb9=_0x4fac57;_0x358234(_0x4f0585),_0x40eaea[_0x173eb9(0xd4)]=_0x4f0585[_0x173eb9(0x8c)][_0x173eb9(0x14c)](_0x1d01fc=>{_0x2bf206(_0x1d01fc);});}),()=>{const _0x1dcdd4=_0x4fac57;var _0x108a70;(_0x108a70=_0x40eaea[_0x1dcdd4(0xd4)])==null||_0x108a70['unsubscribe'](),_0x40eaea[_0x1dcdd4(0xd4)]=null;}),[_0x22a218,_0x4365ba]),_0x389557?l[_0x4fac57(0x110)](f[_0x4fac57(0x89)],{'align':'end','disabled':_0x5773b1===u[_0x4fac57(0xb7)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x4fac57(0x110)](W,{'status':_0x5773b1,'coordinator':_0x389557}),'children':l[_0x4fac57(0x110)](_0x4fac57(0xd2),{'className':f[_0x4fac57(0x86)](_0x4fac57(0x128),{'univer-cursor-not-allowed':_0x5773b1===u[_0x4fac57(0xb7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5773b1!==u['OFFLINE']}),'type':_0x4fac57(0xd2),'children':l[_0x4fac57(0x110)](R,{'className':'univer-size-4'})})}):null;}function W(_0x372b2a){const _0x51e667=_0x557c04,{status:_0x186919,coordinator:_0x9aaf65}=_0x372b2a;switch(_0x186919){case u[_0x51e667(0x103)]:return l[_0x51e667(0x110)](G,{'coordinator':_0x9aaf65});case u[_0x51e667(0xbf)]:return l[_0x51e667(0x110)](B,{'coordinator':_0x9aaf65});case u['NOT_FOLLOWING']:return l[_0x51e667(0x110)](Y,{'coordinator':_0x9aaf65});case u[_0x51e667(0xb7)]:return l[_0x51e667(0x110)](J,{});case u[_0x51e667(0x14d)]:return l[_0x51e667(0x110)](Z,{'coordinator':_0x9aaf65});default:return null;}}function G(_0x2eb49a){const _0xaeecce=_0x557c04,{coordinator:_0x8449e8}=_0x2eb49a;return l[_0xaeecce(0xbc)](l['Fragment'],{'children':[l[_0xaeecce(0x110)](_0xaeecce(0x88),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xaeecce(0xc8)}),l[_0xaeecce(0x110)](f['Button'],{'onClick':()=>_0x8449e8[_0xaeecce(0x99)](),'children':_0xaeecce(0xfa)})]});}function B(_0x521dd0){const _0x4e11e9=_0x557c04,{coordinator:_0x141958}=_0x521dd0;return l['jsxs'](l[_0x4e11e9(0xa5)],{'children':[l['jsx'](_0x4e11e9(0x88),{'className':_0x4e11e9(0xfd),'children':_0x4e11e9(0xe8)}),l[_0x4e11e9(0x110)](f[_0x4e11e9(0x13a)],{'onClick':()=>_0x141958[_0x4e11e9(0x14e)](),'children':_0x4e11e9(0xf1)})]});}function Y(_0x1608aa){const _0x1b4172=_0x557c04,{coordinator:_0x570682}=_0x1608aa;return l[_0x1b4172(0xbc)](l[_0x1b4172(0xa5)],{'children':[l['jsx'](_0x1b4172(0x88),{'className':_0x1b4172(0xfd),'children':_0x1b4172(0xe4)}),l['jsx'](f[_0x1b4172(0x13a)],{'variant':_0x1b4172(0x159),'onClick':()=>_0x570682[_0x1b4172(0x96)](),'children':_0x1b4172(0x85)})]});}function Z(_0x4c6eb7){const _0x33c166=_0x557c04,{coordinator:_0x722e0c}=_0x4c6eb7;return l['jsxs'](l[_0x33c166(0xa5)],{'children':[l['jsx'](_0x33c166(0x88),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x33c166(0xf2)}),l[_0x33c166(0x110)](f[_0x33c166(0x13a)],{'variant':'default','onClick':()=>_0x722e0c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x53a325=_0x557c04;return l['jsx'](l[_0x53a325(0xa5)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x557c04(0xa4)],z=(_0xa96d7,_0xa25f9d,_0x11df96,_0x30c6e0)=>{const _0x5acf53=_0x557c04;for(var _0x5602b3=_0x30c6e0>0x1?void 0x0:_0x30c6e0?K(_0xa25f9d,_0x11df96):_0xa25f9d,_0x429005=_0xa96d7[_0x5acf53(0x12a)]-0x1,_0x44a84f;_0x429005>=0x0;_0x429005--)(_0x44a84f=_0xa96d7[_0x429005])&&(_0x5602b3=_0x44a84f(_0x5602b3)||_0x5602b3);return _0x5602b3;},L=(_0x166a4b,_0x59170c)=>(_0x17ae95,_0x4af04a)=>_0x59170c(_0x17ae95,_0x4af04a,_0x166a4b);exports['DesktopLiveShareController']=class extends o[_0x557c04(0x13b)]{constructor(_0x2ee938,_0x4eb44b){const _0xeaa2a5=_0x557c04;super(),this[_0xeaa2a5(0xfe)]=_0x2ee938,this[_0xeaa2a5(0xae)]=_0x4eb44b,this[_0xeaa2a5(0x140)]();}['_mountLiveShare'](){const _0x69504b=_0x557c04;this[_0x69504b(0x9a)](this['_uiPartsService']['registerComponent'](p[_0x69504b(0xb4)][_0x69504b(0x98)],()=>p[_0x69504b(0xf0)]($,this[_0x69504b(0xfe)])));}},exports[_0x557c04(0xd8)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x557c04(0x100)])],exports['DesktopLiveShareController']);const Q=_0x557c04(0x9f),w={};var X=Object[_0x557c04(0xa4)],ee=(_0x55e75c,_0x4da847,_0x211ebc,_0x3a0c64)=>{const _0x3a0b65=_0x557c04;for(var _0x1be8f3=_0x3a0c64>0x1?void 0x0:_0x3a0c64?X(_0x4da847,_0x211ebc):_0x4da847,_0x573f91=_0x55e75c[_0x3a0b65(0x12a)]-0x1,_0x43f0de;_0x573f91>=0x0;_0x573f91--)(_0x43f0de=_0x55e75c[_0x573f91])&&(_0x1be8f3=_0x43f0de(_0x1be8f3)||_0x1be8f3);return _0x1be8f3;},te=(_0x14fe0b,_0x467eb6)=>(_0x49e61a,_0x515c89)=>_0x467eb6(_0x49e61a,_0x515c89,_0x14fe0b);let m=class extends o['Disposable']{constructor(_0x217b21){super(),this['_liveShareService']=_0x217b21,this['_init']();}['_init'](){const _0x1d8809=_0x557c04;[D[_0x1d8809(0x149)]['id'],D[_0x1d8809(0x14b)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1d8809(0xed)](_0x419d65=>{const _0x33f67e=_0x1d8809;this['disposeWithMe'](this[_0x33f67e(0x9b)][_0x33f67e(0xfc)](_0x419d65));});}};function _0x2d86(_0x2bf38a,_0x25e813){const _0x5f2a71=_0x5f2a();return _0x2d86=function(_0x2d8665,_0x100b11){_0x2d8665=_0x2d8665-0x81;let _0x18ba7e=_0x5f2a71[_0x2d8665];return _0x18ba7e;},_0x2d86(_0x2bf38a,_0x25e813);}m=ee([te(0x0,o[_0x557c04(0x8b)](E))],m);var ie=Object[_0x557c04(0x10a)],se=Object[_0x557c04(0xa4)],ne=(_0x16f97b,_0x39ea79,_0x556d9a)=>_0x39ea79 in _0x16f97b?ie(_0x16f97b,_0x39ea79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556d9a}):_0x16f97b[_0x39ea79]=_0x556d9a,re=(_0x2f756e,_0x2012eb,_0x213b93,_0x3c5b21)=>{const _0x5a3ac8=_0x557c04;for(var _0x42c8f8=_0x3c5b21>0x1?void 0x0:_0x3c5b21?se(_0x2012eb,_0x213b93):_0x2012eb,_0x455004=_0x2f756e[_0x5a3ac8(0x12a)]-0x1,_0x2bd81b;_0x455004>=0x0;_0x455004--)(_0x2bd81b=_0x2f756e[_0x455004])&&(_0x42c8f8=_0x2bd81b(_0x42c8f8)||_0x42c8f8);return _0x42c8f8;},N=(_0x420b67,_0x11382e)=>(_0x1c445d,_0x26c38f)=>_0x11382e(_0x1c445d,_0x26c38f,_0x420b67),A=(_0x463c57,_0x2814d1,_0x2e1fb0)=>ne(_0x463c57,typeof _0x2814d1!=_0x557c04(0xf9)?_0x2814d1+'':_0x2814d1,_0x2e1fb0);const oe=_0x557c04(0x118);exports['UniverLiveSharePlugin']=class extends o[_0x557c04(0xce)]{constructor(_0x66c09=w,_0xb4579a,_0x42eff8){const _0x5ad6ec=_0x557c04;super(),this[_0x5ad6ec(0x146)]=_0x66c09,this[_0x5ad6ec(0xfe)]=_0xb4579a,this[_0x5ad6ec(0x135)]=_0x42eff8;const {..._0x18de49}=o['merge']({},w,this['_config']);this['_configService'][_0x5ad6ec(0xd6)](Q,_0x18de49);}[_0x557c04(0xf4)](){const _0xe790b9=_0x557c04;o[_0xe790b9(0x137)](this[_0xe790b9(0xfe)],o[_0xe790b9(0x115)]([[E],[exports[_0xe790b9(0x14f)]],[m],[exports[_0xe790b9(0xd8)]]],this[_0xe790b9(0x146)][_0xe790b9(0x11f)])),o[_0xe790b9(0xdf)](this[_0xe790b9(0xfe)],[[m]]);}['onRendered'](){const _0x1fd30c=_0x557c04;o['touchDependencies'](this['_injector'],[[exports[_0x1fd30c(0xd8)]]]);}},A(exports[_0x557c04(0xdc)],_0x557c04(0xd3),o['UniverInstanceType'][_0x557c04(0x10e)]),A(exports[_0x557c04(0xdc)],_0x557c04(0x120),oe),exports[_0x557c04(0xdc)]=re([o['DependentOn'](b[_0x557c04(0xa9)]),N(0x1,o[_0x557c04(0x8b)](o[_0x557c04(0x142)])),N(0x2,o[_0x557c04(0xa3)])],exports[_0x557c04(0xdc)]),exports[_0x557c04(0x124)]=$,exports[_0x557c04(0xc0)]=E,exports[_0x557c04(0x151)]=u;
|
|
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;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5293cb=_0x23dc;(function(_0x4ec40d,_0x2d323c){const _0x518124=_0x23dc,_0x39563a=_0x4ec40d();while(!![]){try{const _0x4c6788=parseInt(_0x518124(0x164))/0x1+-parseInt(_0x518124(0x185))/0x2+parseInt(_0x518124(0x165))/0x3+parseInt(_0x518124(0x16a))/0x4*(-parseInt(_0x518124(0x17e))/0x5)+parseInt(_0x518124(0x176))/0x6*(parseInt(_0x518124(0x173))/0x7)+parseInt(_0x518124(0x183))/0x8+-parseInt(_0x518124(0x180))/0x9*(-parseInt(_0x518124(0x17f))/0xa);if(_0x4c6788===_0x2d323c)break;else _0x39563a['push'](_0x39563a['shift']());}catch(_0x3d1ae2){_0x39563a['push'](_0x39563a['shift']());}}}(_0x22d7,0x4b2e0));function _0x23dc(_0x5db9dd,_0x4df6d6){_0x5db9dd=_0x5db9dd-0x164;const _0x22d7aa=_0x22d7();let _0x23dce0=_0x22d7aa[_0x5db9dd];return _0x23dce0;}import{LiveShareController as _0x16c5cc,LiveShareStatus as _0x1f6523}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xc3603b}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3c665a}from'@univerjs/sheets';import{SetScrollOperation as _0x487c0f}from'@univerjs/sheets-ui';function _0x22d7(){const _0x50c9c6=['68SfqgET','getRenderById','getLiveShareStatus','getUnitId','getActiveSheet','getStatus','getId','syncExecuteCommand','getSheetId','35fieIjn','IDLE','_injector','105852QNTiSf','getLiveShareCoordinatorSync','executeCommand','PRESENTING','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','_commandService','158135VgTgQD','2546990tOiQKu','9nwmBYN','LiveShareStatusEnum','stopFollowing','2187712EmQqJW','_initialize','641400OygNKg','startColumn','getActiveWorkbook','450559dSPSni','298089QfjoKB','startFollowing','get','tryStartPresenting','extend'];_0x22d7=function(){return _0x50c9c6;};return _0x22d7();}import{FRange as _0x3bddf8}from'@univerjs/sheets/facade';import{FUniver as _0x30b7ca,FEnum as _0x5c895f}from'@univerjs/core/facade';class I extends _0x3bddf8{[_0x5293cb(0x184)](_0x478184,_0x2c8249,_0x535a5e,_0x3a37d5,_0x358e9a){const _0x27736d=_0x5293cb,_0x143166=_0x478184[_0x27736d(0x167)](_0x16c5cc),_0x4cea05=_0x478184[_0x27736d(0x167)](_0xc3603b),_0x1e8c10=_0x2c8249['getUnitId'](),_0x59870f=_0x2c8249[_0x27736d(0x16e)](),_0xd0295b=_0x143166['getLiveShareCoordinatorSync'](_0x1e8c10);(_0xd0295b==null?void 0x0:_0xd0295b['getStatus']())!==_0x1f6523[_0x27736d(0x179)]||(_0x535a5e[_0x27736d(0x172)]()!==_0x59870f['getSheetId']()&&this[_0x27736d(0x17d)][_0x27736d(0x178)](_0x3c665a['id'],{'unitId':_0x1e8c10,'subUnitId':_0x535a5e[_0x27736d(0x172)]()}),!_0x4cea05[_0x27736d(0x16b)](_0x1e8c10))||_0x358e9a[_0x27736d(0x171)](_0x487c0f['id'],{'unitId':_0x2c8249[_0x27736d(0x16d)](),'sheetId':_0x535a5e[_0x27736d(0x172)](),'sheetViewStartRow':_0x3a37d5['startRow'],'sheetViewStartColumn':_0x3a37d5[_0x27736d(0x186)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3bddf8[_0x5293cb(0x169)](I);class m extends _0x30b7ca{[_0x5293cb(0x16c)](){const _0x3045ba=_0x5293cb;var _0x474a56,_0x390c2c;const _0x3b19e7=this['_injector']['get'](_0x16c5cc),_0x6389c5=(_0x474a56=this[_0x3045ba(0x187)]())==null?void 0x0:_0x474a56['getId']();if(!_0x6389c5)throw new Error(_0x3045ba(0x17c));const _0x497d66=_0x3b19e7[_0x3045ba(0x177)](_0x6389c5);return(_0x390c2c=_0x497d66==null?void 0x0:_0x497d66[_0x3045ba(0x16f)]())!=null?_0x390c2c:_0x1f6523[_0x3045ba(0x174)];}[_0x5293cb(0x166)](){const _0x5c552d=_0x5293cb;var _0x1702b4;const _0x72ed5b=this['_injector'][_0x5c552d(0x167)](_0x16c5cc),_0x193bf3=(_0x1702b4=this['getActiveWorkbook']())==null?void 0x0:_0x1702b4[_0x5c552d(0x170)]();if(!_0x193bf3)throw new Error(_0x5c552d(0x17c));const _0x1f630a=_0x72ed5b['getLiveShareCoordinatorSync'](_0x193bf3);if(!_0x1f630a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1f630a[_0x5c552d(0x166)]();}['stopFollowing'](){const _0xf7360f=_0x5293cb;var _0x218574;const _0xdd2b6f=this[_0xf7360f(0x175)][_0xf7360f(0x167)](_0x16c5cc),_0x33bcec=(_0x218574=this[_0xf7360f(0x187)]())==null?void 0x0:_0x218574['getId']();if(!_0x33bcec)throw new Error(_0xf7360f(0x17c));const _0x3fa141=_0xdd2b6f[_0xf7360f(0x177)](_0x33bcec);if(!_0x3fa141)throw new Error(_0xf7360f(0x17b));_0x3fa141[_0xf7360f(0x182)]();}['startPresenting'](){const _0x1b5b1d=_0x5293cb;var _0x2b3169;const _0x29496d=this[_0x1b5b1d(0x175)]['get'](_0x16c5cc),_0x9f4578=(_0x2b3169=this['getActiveWorkbook']())==null?void 0x0:_0x2b3169[_0x1b5b1d(0x170)]();if(!_0x9f4578)throw new Error(_0x1b5b1d(0x17c));const _0x133052=_0x29496d[_0x1b5b1d(0x177)](_0x9f4578);if(!_0x133052)throw new Error(_0x1b5b1d(0x17b));_0x133052[_0x1b5b1d(0x168)]();}[_0x5293cb(0x17a)](){const _0x4915d4=_0x5293cb;var _0x27dc21;const _0x49ae80=this[_0x4915d4(0x175)][_0x4915d4(0x167)](_0x16c5cc),_0x22b8e2=(_0x27dc21=this['getActiveWorkbook']())==null?void 0x0:_0x27dc21[_0x4915d4(0x170)]();if(!_0x22b8e2)throw new Error(_0x4915d4(0x17c));const _0x28fffd=_0x49ae80[_0x4915d4(0x177)](_0x22b8e2);if(!_0x28fffd)throw new Error(_0x4915d4(0x17b));_0x28fffd[_0x4915d4(0x17a)]();}}_0x30b7ca['extend'](m);class C extends _0x5c895f{get[_0x5293cb(0x181)](){return _0x1f6523;}}_0x5c895f[_0x5293cb(0x169)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33f3a0=_0x2e44;(function(_0x5ad21f,_0x3dc78a){const _0x5d7d3f=_0x2e44,_0x18ce42=_0x5ad21f();while(!![]){try{const _0x20d940=-parseInt(_0x5d7d3f(0x225))/0x1*(-parseInt(_0x5d7d3f(0x1f2))/0x2)+-parseInt(_0x5d7d3f(0x25c))/0x3*(parseInt(_0x5d7d3f(0x274))/0x4)+parseInt(_0x5d7d3f(0x23f))/0x5+-parseInt(_0x5d7d3f(0x203))/0x6+-parseInt(_0x5d7d3f(0x249))/0x7*(-parseInt(_0x5d7d3f(0x264))/0x8)+parseInt(_0x5d7d3f(0x22b))/0x9*(parseInt(_0x5d7d3f(0x239))/0xa)+-parseInt(_0x5d7d3f(0x21f))/0xb*(parseInt(_0x5d7d3f(0x1ce))/0xc);if(_0x20d940===_0x3dc78a)break;else _0x18ce42['push'](_0x18ce42['shift']());}catch(_0x4c97a6){_0x18ce42['push'](_0x18ce42['shift']());}}}(_0x459e,0xad3af));var J=Object[_0x33f3a0(0x236)],K=(_0xc79036,_0x4e3ecf,_0xd7d539)=>_0x4e3ecf in _0xc79036?J(_0xc79036,_0x4e3ecf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd7d539}):_0xc79036[_0x4e3ecf]=_0xd7d539,u=(_0x4422ad,_0x345867,_0x3f3468)=>K(_0x4422ad,typeof _0x345867!='symbol'?_0x345867+'':_0x345867,_0x3f3468);import{Disposable as _0x123ebc,toDisposable as _0x31e46f,IUniverInstanceService as _0x56e919,Inject as _0x4770f0,Injector as _0x52080b,IConfigService as _0x404a20,ICommandService as _0x3d793e,RxDisposable as _0x17838a,UniverInstanceType as _0x1afb45,DisposableCollection as _0x5321e8,CommandType as _0x4795cf,DependentOn as _0x83a676,Plugin as _0x14031e,merge as _0x2fd27e,registerDependencies as _0x293650,mergeOverrideWithDependencies as _0x57eb35,touchDependencies as _0x19de09}from'@univerjs/core';import{useDependency as _0x26c8a9,useObservable as _0x4c2a85,IUIPartsService as _0x510518,BuiltInUIPart as _0x221148,connectInjector as _0x1211a}from'@univerjs/ui';import{jsx as _0x2d6d1e,jsxs as _0x4bfea3,Fragment as _0x4d5d84}from'react/jsx-runtime';import{Dropdown as _0x2eaec2,clsx as _0xf2d602,Button as _0x5c367e}from'@univerjs/design';import{useRef as _0x278b84,createElement as _0x3b10f6,forwardRef as _0x10402b,useState as _0x575f52,useEffect as _0x1a5f41}from'react';import{CollaborationEvent as _0xb16a85,parseProtocolChangeset as _0xcaafe2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x58b373,SessionStatus as _0x178ef0,UniverCollaborationClientPlugin as _0x5984b3}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x10d1bf,SetWorksheetActiveOperation as _0x46858f}from'@univerjs/sheets';import{BehaviorSubject as _0x176527,Subject as _0x3a662b}from'rxjs';import{takeUntil as _0x37843a,throttleTime as _0x5f4e61}from'rxjs/operators';import{SetZoomRatioOperation as _0x57d381,SetScrollOperation as _0x23a13f}from'@univerjs/sheets-ui';function k({ref:_0x5b4cea,..._0x38787f}){const _0x3aa2f8=_0x33f3a0,{icon:_0x35d148,id:_0x19eaf2,className:_0x2a3884,extend:_0x303024,..._0x53100e}=_0x38787f,_0x15fd1b=(_0x3aa2f8(0x270)+_0x19eaf2+'\x20'+(_0x2a3884||''))[_0x3aa2f8(0x251)](),_0x50b4e7=_0x278b84('_'+Oe());return G(_0x35d148,''+_0x19eaf2,{'defIds':_0x35d148['defIds'],'idSuffix':_0x50b4e7['current']},{'ref':_0x5b4cea,'className':_0x15fd1b,..._0x53100e},_0x303024);}function G(_0x556d60,_0x9df4d4,_0x4fb525,_0xdf95c,_0x29ec95){const _0x46d3d6=_0x33f3a0;return _0x3b10f6(_0x556d60[_0x46d3d6(0x241)],{'key':_0x9df4d4,...be(_0x556d60,_0x4fb525,_0x29ec95),..._0xdf95c},(Ee(_0x556d60,_0x4fb525)[_0x46d3d6(0x1db)]||[])[_0x46d3d6(0x208)]((_0x401c42,_0x2cd970)=>G(_0x401c42,_0x9df4d4+'-'+_0x556d60[_0x46d3d6(0x241)]+'-'+_0x2cd970,_0x4fb525,void 0x0,_0x29ec95)));}function be(_0x3fc3ee,_0x278250,_0x114b3d){const _0x1be6fd=_0x33f3a0,_0x5e231b={..._0x3fc3ee['attrs']};_0x114b3d!=null&&_0x114b3d[_0x1be6fd(0x1f8)]&&_0x5e231b['fill']===_0x1be6fd(0x1f8)&&(_0x5e231b['fill']=_0x114b3d['colorChannel1']),_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x1e0)&&_0x5e231b['id']&&(_0x5e231b['id']=_0x5e231b['id']+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x1cff51,_0x396038])=>{const _0x55f7d7=_0x1be6fd;_0x1cff51===_0x55f7d7(0x1e0)&&typeof _0x396038==_0x55f7d7(0x224)&&(_0x5e231b[_0x1cff51]=_0x396038[_0x55f7d7(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x55f7d7(0x245)]+')'));});const {defIds:_0xdade56}=_0x278250;return!_0xdade56||_0xdade56[_0x1be6fd(0x21b)]===0x0||(_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x258)&&_0x5e231b['xlink:href']&&(_0x5e231b[_0x1be6fd(0x1e2)]=_0x5e231b[_0x1be6fd(0x1e2)]+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x3d541b,_0x515e38])=>{const _0x350485=_0x1be6fd;typeof _0x515e38==_0x350485(0x224)&&(_0x5e231b[_0x3d541b]=_0x515e38[_0x350485(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x350485(0x245)]+')'));})),_0x5e231b;}function Ee(_0x42c0ef,_0xd6ce40){const _0x230fdd=_0x33f3a0;var _0x3f6687;const {defIds:_0x1768f8}=_0xd6ce40;return!_0x1768f8||_0x1768f8['length']===0x0?_0x42c0ef:_0x42c0ef['tag']===_0x230fdd(0x1de)&&((_0x3f6687=_0x42c0ef['children'])!=null&&_0x3f6687[_0x230fdd(0x21b)])?{..._0x42c0ef,'children':_0x42c0ef['children'][_0x230fdd(0x208)](_0x1e6bad=>typeof _0x1e6bad[_0x230fdd(0x247)]['id']=='string'&&_0x1768f8&&_0x1768f8['includes'](_0x1e6bad[_0x230fdd(0x247)]['id'])?{..._0x1e6bad,'attrs':{..._0x1e6bad[_0x230fdd(0x247)],'id':_0x1e6bad[_0x230fdd(0x247)]['id']+_0xd6ce40[_0x230fdd(0x245)]}}:_0x1e6bad)}:_0x42c0ef;}function Oe(){const _0x39159b=_0x33f3a0;return Math[_0x39159b(0x237)]()[_0x39159b(0x1e6)](0x24)[_0x39159b(0x206)](0x2,0x8);}k[_0x33f3a0(0x20a)]=_0x33f3a0(0x25a);const we={'tag':'svg','attrs':{'xmlns':_0x33f3a0(0x1e5),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x33f3a0(0x23d),'height':'1em'},'children':[{'tag':_0x33f3a0(0x254),'attrs':{'fill':_0x33f3a0(0x21c),'d':_0x33f3a0(0x1f0)}},{'tag':_0x33f3a0(0x254),'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':_0x33f3a0(0x1f4),'clipRule':_0x33f3a0(0x1f4)}}]},W=_0x10402b(function(_0x1133f4,_0x52c04b){const _0x4d89e6=_0x33f3a0;return _0x3b10f6(k,Object[_0x4d89e6(0x1d9)]({},_0x1133f4,{'id':_0x4d89e6(0x207),'ref':_0x52c04b,'icon':we}));});W[_0x33f3a0(0x20a)]='LiveShareIcon';class L extends _0x123ebc{constructor(){const _0x34dc27=_0x33f3a0;super(...arguments),u(this,_0x34dc27(0x1d0),new Set()),u(this,_0x34dc27(0x229),new Set());}['registerSharedOperation'](_0x914821){const _0x403db7=_0x33f3a0;return this['_sharedOperations'][_0x403db7(0x25b)](_0x914821),_0x31e46f(()=>this[_0x403db7(0x1d0)]['delete'](_0x914821));}['registerInitialStateReporter'](_0xb43a22){const _0x5385b1=_0x33f3a0;return this[_0x5385b1(0x229)][_0x5385b1(0x25b)](_0xb43a22),_0x31e46f(()=>this[_0x5385b1(0x229)]['delete'](_0xb43a22));}[_0x33f3a0(0x26d)](_0x1c1763){const _0x503683=_0x33f3a0;return this['_sharedOperations'][_0x503683(0x244)](_0x1c1763);}[_0x33f3a0(0x1fd)](_0x1267ab){const _0x24e62b=_0x33f3a0;return Array['from'](this[_0x24e62b(0x229)])[_0x24e62b(0x208)](_0x4fafe4=>_0x4fafe4(_0x1267ab));}}var Ne=Object[_0x33f3a0(0x24d)],Y=(_0x3ea768,_0x58f61a,_0xe93ef6,_0x51aebd)=>{const _0x67f94d=_0x33f3a0;for(var _0x4426c3=_0x51aebd>0x1?void 0x0:_0x51aebd?Ne(_0x58f61a,_0xe93ef6):_0x58f61a,_0x48ce84=_0x3ea768[_0x67f94d(0x21b)]-0x1,_0xdd11bf;_0x48ce84>=0x0;_0x48ce84--)(_0xdd11bf=_0x3ea768[_0x48ce84])&&(_0x4426c3=_0xdd11bf(_0x4426c3)||_0x4426c3);return _0x4426c3;},_=(_0x513a9f,_0x4ba8f1)=>(_0xfc4201,_0x4eb585)=>_0x4ba8f1(_0xfc4201,_0x4eb585,_0x513a9f);let S=class extends _0x17838a{constructor(_0x3758db,_0x4933f8,_0x5bf668){const _0x1894cf=_0x33f3a0;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3758db,this[_0x1894cf(0x1f9)]=_0x4933f8,this[_0x1894cf(0x1e4)]=_0x5bf668,this[_0x1894cf(0x23e)]());}async[_0x33f3a0(0x218)](_0x57f0fb){const _0x454f11=_0x33f3a0;return this[_0x454f11(0x275)]['has'](_0x57f0fb)||await this['_startLiveShareCoordinator'](_0x57f0fb),this[_0x454f11(0x275)][_0x454f11(0x20b)](_0x57f0fb);}[_0x33f3a0(0x22d)](_0x58cc5d){const _0x23bc19=_0x33f3a0;var _0x48ad61;return(_0x48ad61=this[_0x23bc19(0x275)][_0x23bc19(0x20b)](_0x58cc5d))!=null?_0x48ad61:null;}['_init'](){const _0x214d50=_0x33f3a0;this[_0x214d50(0x1d1)][_0x214d50(0x20c)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](async _0x12f3c4=>{const _0x132751=_0x214d50,_0x454f48=_0x12f3c4[_0x132751(0x1f5)]();this[_0x132751(0x275)]['has'](_0x454f48)||this[_0x132751(0x1ee)](_0x454f48);}),this[_0x214d50(0x1d1)][_0x214d50(0x1da)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](_0x3c7707=>{const _0x17a399=_0x214d50,_0x459a59=_0x3c7707[_0x17a399(0x1f5)](),_0xef1edc=this[_0x17a399(0x275)]['get'](_0x459a59);_0xef1edc==null||_0xef1edc[_0x17a399(0x26c)]();});}async[_0x33f3a0(0x1ee)](_0x674802){const _0x4402a1=_0x33f3a0,_0x2dc03b=await this[_0x4402a1(0x1e4)][_0x4402a1(0x243)](_0x674802),_0x4a00c3=this[_0x4402a1(0x1f9)][_0x4402a1(0x234)](N,_0x674802,_0x2dc03b);return _0x4a00c3[_0x4402a1(0x205)](),this[_0x4402a1(0x275)][_0x4402a1(0x1d2)](_0x674802,_0x4a00c3),_0x4a00c3;}};S=Y([_(0x0,_0x56e919),_(0x1,_0x4770f0(_0x52080b)),_(0x2,_0x4770f0(_0x58b373))],S);var c=(_0x27bf23=>(_0x27bf23[_0x33f3a0(0x24c)]='offline',_0x27bf23[_0x33f3a0(0x260)]=_0x33f3a0(0x1eb),_0x27bf23['FOLLOWING']='following',_0x27bf23['NOT_FOLLOWING']=_0x33f3a0(0x238),_0x27bf23['PRESENTING']=_0x33f3a0(0x255),_0x27bf23))(c||{});const Ce=_0x33f3a0(0x1df),De=0xc8;let N=class extends _0x17838a{constructor(_0x1d22cf,_0x92e78,_0x22e8c4,_0x52fee2,_0x1db30a){const _0x51c258=_0x33f3a0;super(),u(this,'_status$',new _0x176527('idle')),u(this,_0x51c258(0x1dd),this[_0x51c258(0x230)][_0x51c258(0x1dc)]()),u(this,'_init',!0x1),u(this,_0x51c258(0x268),null),u(this,'_presenter',null),(this[_0x51c258(0x263)]=_0x1d22cf,this[_0x51c258(0x1f1)]=_0x92e78,this[_0x51c258(0x23a)]=_0x22e8c4,this[_0x51c258(0x215)]=_0x52fee2,this[_0x51c258(0x1d4)]=_0x1db30a);}get['_status'](){const _0x438f46=_0x33f3a0;return this['_status$'][_0x438f46(0x1e3)]();}[_0x33f3a0(0x26c)](){const _0x27ec2c=_0x33f3a0;var _0x72d230;(_0x72d230=this[_0x27ec2c(0x268)])==null||_0x72d230['dispose'](),this['_status$'][_0x27ec2c(0x24b)](_0x27ec2c(0x1eb)),this[_0x27ec2c(0x230)][_0x27ec2c(0x220)]();}[_0x33f3a0(0x252)](){const _0x11edac=_0x33f3a0;return this[_0x11edac(0x25d)];}[_0x33f3a0(0x205)](){const _0x102587=_0x33f3a0;this['_init']||(this[_0x102587(0x23e)]=!0x0,this['_collabSession'][_0x102587(0x20f)][_0x102587(0x256)](_0x37843a(this['dispose$']))[_0x102587(0x25e)](_0x5ef95c=>{const _0x443f08=_0x102587;switch(_0x5ef95c){case _0x178ef0[_0x443f08(0x24c)]:this['_handleOffline']();break;case _0x178ef0[_0x443f08(0x257)]:this['_handleOnline']();break;}}),this[_0x102587(0x1f1)][_0x102587(0x222)][_0x102587(0x256)](_0x37843a(this[_0x102587(0x250)]))['subscribe'](_0x1be2fe=>{const _0x1fcfc9=_0x102587,{eventID:_0x1d0554}=_0x1be2fe;switch(_0x1d0554){case _0xb16a85[_0x1fcfc9(0x227)]:this[_0x1fcfc9(0x202)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x1cf)]:this[_0x1fcfc9(0x232)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x272)]:this['_handleTerminate']();break;case _0xb16a85[_0x1fcfc9(0x22f)]:this[_0x1fcfc9(0x200)](_0x1be2fe);break;}}));}['tryStartPresenting'](){const _0x25bb1b=_0x33f3a0;this[_0x25bb1b(0x1f1)][_0x25bb1b(0x253)]({'eventID':_0xb16a85['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x25bb1b(0x263)],'userID':this[_0x25bb1b(0x1f1)]['getMemberID']()}},this['_unitID']);}[_0x33f3a0(0x265)](){const _0x2f25aa=_0x33f3a0;this[_0x2f25aa(0x25d)]===_0x2f25aa(0x255)&&(this[_0x2f25aa(0x230)][_0x2f25aa(0x24b)](_0x2f25aa(0x1eb)),this[_0x2f25aa(0x1f1)][_0x2f25aa(0x253)]({'eventID':_0xb16a85[_0x2f25aa(0x272)],'data':{'unitID':this[_0x2f25aa(0x263)]}},this[_0x2f25aa(0x263)]));}['startFollowing'](){const _0x1316ad=_0x33f3a0;this['_status']===_0x1316ad(0x238)&&(this[_0x1316ad(0x230)]['next'](_0x1316ad(0x20e)),this['_startFollowing']());}[_0x33f3a0(0x248)](){const _0x4f16b7=_0x33f3a0;this[_0x4f16b7(0x25d)]===_0x4f16b7(0x20e)&&this[_0x4f16b7(0x26e)]();}[_0x33f3a0(0x202)](_0xbe7f27){const _0x592550=_0x33f3a0,{presenter:_0x1eb49d}=_0xbe7f27[_0x592550(0x214)],_0x16cf76=this[_0x592550(0x1f1)][_0x592550(0x216)]();this['_presenter']=_0x1eb49d,_0x1eb49d===_0x16cf76?(this['_stopFollowing'](),this[_0x592550(0x231)]()):this['_status']!==_0x592550(0x238)&&(this['_stopPresenting'](),this[_0x592550(0x211)]());}[_0x33f3a0(0x266)](){const _0x2e5bfd=_0x33f3a0,_0x4b6f72={'eventID':_0xb16a85['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e5bfd(0x1f1)]['send'](_0x4b6f72,this[_0x2e5bfd(0x263)]);}[_0x33f3a0(0x1ef)](){const _0x40b8ab=_0x33f3a0;this[_0x40b8ab(0x1d7)]=null,this['_status']!==_0x40b8ab(0x255)&&this[_0x40b8ab(0x26a)]();}['_handleNewChangeSets'](_0x4801c3){const _0x4a918b=_0x33f3a0;if(this[_0x4a918b(0x25d)]===_0x4a918b(0x20e)&&this[_0x4a918b(0x1d7)]===_0x4801c3[_0x4a918b(0x214)]['memberID']){const _0x17c52d=_0xcaafe2(_0x4801c3[_0x4a918b(0x214)])[_0x4a918b(0x1ed)]['reverse']()[_0x4a918b(0x1e9)](_0x11313d=>_0x11313d['id']===_0x10d1bf['id']);if(_0x17c52d){const _0x327873=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x267)],_0x432f38=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x242)]['id'];setTimeout(()=>{const _0x1dfce2=_0x4a918b;this['_commandService'][_0x1dfce2(0x235)](_0x46858f['id'],{'unitId':_0x327873,'subUnitId':_0x432f38},{'fromCollab':!0x0});});}}}[_0x33f3a0(0x231)](){const _0x1f510d=_0x33f3a0;this[_0x1f510d(0x230)]['next'](_0x1f510d(0x255));const _0x2cd3f8=new Map(),_0x124d72=this[_0x1f510d(0x268)]=new _0x5321e8();_0x124d72[_0x1f510d(0x25b)](_0x31e46f(()=>{const _0x6feaf5=_0x1f510d;_0x2cd3f8[_0x6feaf5(0x228)](_0x3d00fa=>_0x3d00fa[_0x6feaf5(0x220)]()),_0x2cd3f8[_0x6feaf5(0x1ec)]();})),_0x124d72[_0x1f510d(0x25b)](this[_0x1f510d(0x1d4)]['onCommandExecuted'](_0xc6c9aa=>{const _0x41c79a=_0x1f510d;var _0x4fbf23;if(_0xc6c9aa[_0x41c79a(0x1fa)]!==_0x4795cf[_0x41c79a(0x21e)]||!this[_0x41c79a(0x215)][_0x41c79a(0x26d)](_0xc6c9aa['id']))return;const {id:_0x4cbfb6}=_0xc6c9aa;let _0x40e576;_0x2cd3f8[_0x41c79a(0x244)](_0x4cbfb6)?_0x40e576=_0x2cd3f8[_0x41c79a(0x20b)](_0x4cbfb6):(_0x40e576=new _0x3a662b(),_0x2cd3f8[_0x41c79a(0x1d2)](_0x4cbfb6,_0x40e576),_0x40e576[_0x41c79a(0x256)](_0x5f4e61((_0x4fbf23=this[_0x41c79a(0x23a)][_0x41c79a(0x22c)](Ce))!=null?_0x4fbf23:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x215ed=>{const _0x5ceb31=_0x41c79a;this['_collabSession']['send']({'eventID':_0xb16a85[_0x5ceb31(0x1cf)],'data':{'unitID':this[_0x5ceb31(0x263)],'operations':{[_0x215ed['id']]:{'id':_0x215ed['id'],'params':JSON[_0x5ceb31(0x1d5)](_0x215ed[_0x5ceb31(0x273)])}}}},this[_0x5ceb31(0x263)]);})),_0x40e576[_0x41c79a(0x24b)](_0xc6c9aa);})),this[_0x1f510d(0x215)][_0x1f510d(0x1fd)](this[_0x1f510d(0x263)])['forEach'](_0x144ee2=>this[_0x1f510d(0x1f1)][_0x1f510d(0x253)]({'eventID':_0xb16a85[_0x1f510d(0x1cf)],'data':{'unitID':this['_unitID'],'operations':{[_0x144ee2['id']]:{'id':_0x144ee2['id'],'params':JSON[_0x1f510d(0x1d5)](_0x144ee2[_0x1f510d(0x273)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x30eb79=_0x33f3a0;var _0xf112d3;this[_0x30eb79(0x230)]['next'](_0x30eb79(0x1eb)),(_0xf112d3=this['_commandDisposable'])==null||_0xf112d3[_0x30eb79(0x26c)](),this[_0x30eb79(0x268)]=null;}[_0x33f3a0(0x211)](){const _0x10ccbf=_0x33f3a0;var _0xae736d;(_0xae736d=this[_0x10ccbf(0x268)])==null||_0xae736d[_0x10ccbf(0x26c)](),this[_0x10ccbf(0x230)][_0x10ccbf(0x24b)](_0x10ccbf(0x20e));}[_0x33f3a0(0x26a)](){const _0x2139e5=_0x33f3a0;var _0x2fcef5;this['_status$'][_0x2139e5(0x24b)](_0x2139e5(0x1eb)),(_0x2fcef5=this['_commandDisposable'])==null||_0x2fcef5[_0x2139e5(0x26c)](),this['_commandDisposable']=null;}[_0x33f3a0(0x26e)](){const _0x179e36=_0x33f3a0;var _0x3cbe93;this[_0x179e36(0x230)][_0x179e36(0x24b)](_0x179e36(0x238)),(_0x3cbe93=this['_commandDisposable'])==null||_0x3cbe93['dispose']();}[_0x33f3a0(0x232)](_0x2de9b2){const _0x13c3c3=_0x33f3a0;if(['presenting','not-following',_0x13c3c3(0x1f3)]['includes'](this[_0x13c3c3(0x25d)])||!_0x2de9b2['data'][_0x13c3c3(0x221)]||_0x2de9b2[_0x13c3c3(0x214)][_0x13c3c3(0x221)]===this[_0x13c3c3(0x1f1)]['getMemberID']())return;this['_status']===_0x13c3c3(0x1eb)&&this[_0x13c3c3(0x211)]();const _0x59baa4=_0x2de9b2[_0x13c3c3(0x214)]['operations'];Object[_0x13c3c3(0x226)](_0x59baa4)[_0x13c3c3(0x228)](_0x9dbcdf=>{const _0x50be95=_0x13c3c3;this[_0x50be95(0x1d4)]['executeCommand'](_0x9dbcdf['id'],_0x9dbcdf[_0x50be95(0x273)]?JSON['parse'](_0x9dbcdf['params']):null,{'fromCollab':!0x0});});}[_0x33f3a0(0x1f6)](){const _0x488d37=_0x33f3a0;var _0x3eb656;this[_0x488d37(0x230)][_0x488d37(0x24b)](_0x488d37(0x1f3)),(_0x3eb656=this['_commandDisposable'])==null||_0x3eb656['dispose']();}[_0x33f3a0(0x209)](){const _0xeccbed=_0x33f3a0;this[_0xeccbed(0x230)][_0xeccbed(0x24b)](_0xeccbed(0x1eb)),this['_fetchOperations']();}};N=Y([_(0x2,_0x404a20),_(0x3,_0x4770f0(L)),_(0x4,_0x3d793e)],N);function Le(){const _0x103675=_0x33f3a0,_0x47e73a=_0x26c8a9(S),_0xa11217=_0x26c8a9(_0x56e919),_0x481d3a=_0x4c2a85(()=>_0xa11217[_0x103675(0x261)](_0x1afb45[_0x103675(0x1e1)]),void 0x0,!0x1,[]),[_0x691107,_0x505fb3]=_0x575f52(null),[_0x21ed23,_0x35588a]=_0x575f52(c[_0x103675(0x260)]),_0x48e1ff=_0x278b84(null);return _0x1a5f41(()=>(_0x481d3a&&_0x47e73a[_0x103675(0x218)](_0x481d3a[_0x103675(0x1f5)]())[_0x103675(0x1e8)](_0x2b0487=>{const _0x120805=_0x103675;_0x505fb3(_0x2b0487),_0x48e1ff[_0x120805(0x204)]=_0x2b0487[_0x120805(0x1dd)]['subscribe'](_0x5cace3=>{_0x35588a(_0x5cace3);});}),()=>{const _0x1a4c97=_0x103675;var _0x8285d4;(_0x8285d4=_0x48e1ff[_0x1a4c97(0x204)])==null||_0x8285d4[_0x1a4c97(0x25f)](),_0x48e1ff[_0x1a4c97(0x204)]=null;}),[_0x481d3a,_0x47e73a]),_0x691107?_0x2d6d1e(_0x2eaec2,{'align':'end','disabled':_0x21ed23===c[_0x103675(0x24c)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2d6d1e(Re,{'status':_0x21ed23,'coordinator':_0x691107}),'children':_0x2d6d1e(_0x103675(0x246),{'className':_0xf2d602(_0x103675(0x240),{'univer-cursor-not-allowed':_0x21ed23===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed23!==c[_0x103675(0x24c)]}),'type':'button','children':_0x2d6d1e(W,{'className':_0x103675(0x24a)})})}):null;}function Re(_0x3d0acf){const _0x450982=_0x33f3a0,{status:_0x797ae3,coordinator:_0x262bff}=_0x3d0acf;switch(_0x797ae3){case c[_0x450982(0x260)]:return _0x2d6d1e($e,{'coordinator':_0x262bff});case c[_0x450982(0x219)]:return _0x2d6d1e(xe,{'coordinator':_0x262bff});case c[_0x450982(0x217)]:return _0x2d6d1e(Pe,{'coordinator':_0x262bff});case c[_0x450982(0x24c)]:return _0x2d6d1e(Te,{});case c[_0x450982(0x22e)]:return _0x2d6d1e(Ae,{'coordinator':_0x262bff});default:return null;}}function $e(_0x2c0556){const _0xb39eb6=_0x33f3a0,{coordinator:_0x5438de}=_0x2c0556;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0xb39eb6(0x1d8),{'className':_0xb39eb6(0x201),'children':_0xb39eb6(0x20d)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x5438de[_0xb39eb6(0x1fc)](),'children':_0xb39eb6(0x1fe)})]});}function xe(_0x3ca096){const _0x570720=_0x33f3a0,{coordinator:_0x270136}=_0x3ca096;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x570720(0x1d8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570720(0x21a)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x270136[_0x570720(0x248)](),'children':_0x570720(0x271)})]});}function Pe(_0x2814d4){const _0x4b4f9f=_0x33f3a0,{coordinator:_0x9c82ea}=_0x2814d4;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x4b4f9f(0x1d8),{'className':_0x4b4f9f(0x201),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2d6d1e(_0x5c367e,{'variant':_0x4b4f9f(0x1e7),'onClick':()=>_0x9c82ea[_0x4b4f9f(0x26f)](),'children':_0x4b4f9f(0x23b)})]});}function _0x2e44(_0x3092a4,_0x401c74){const _0x459eeb=_0x459e();return _0x2e44=function(_0x2e445d,_0x53bdb7){_0x2e445d=_0x2e445d-0x1cd;let _0x228b44=_0x459eeb[_0x2e445d];return _0x228b44;},_0x2e44(_0x3092a4,_0x401c74);}function Ae(_0x18efe1){const _0x1bd3fa=_0x33f3a0,{coordinator:_0x36bfab}=_0x18efe1;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x1bd3fa(0x1d8),{'className':_0x1bd3fa(0x201),'children':_0x1bd3fa(0x223)}),_0x2d6d1e(_0x5c367e,{'variant':_0x1bd3fa(0x1d3),'onClick':()=>_0x36bfab[_0x1bd3fa(0x265)](),'children':_0x1bd3fa(0x24f)})]});}function Te(){const _0x1d19e6=_0x33f3a0;return _0x2d6d1e(_0x4d5d84,{'children':_0x1d19e6(0x262)});}function _0x459e(){const _0x319f14=['then','find','UNIVER_LIVE_SHARE_PLUGIN','idle','clear','mutations','_startLiveShareCoordinator','_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','_collabSession','6548cYaHGT','offline','evenodd','getUnitId','_handleOffline','onStarting','colorChannel1','_injector','type','_config','tryStartPresenting','getInitialStates','Start','UNIVER_UNKNOWN','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','3897354pFxpWA','current','init','substring','live-share-icon','map','_handleOnline','displayName','get','getTypeOfUnitAdded$','Present\x20this\x20document','following','sessionStatus$','registerComponent','_startFollowing','_mountLiveShare','symbol','data','_liveShareService','getMemberID','NOT_FOLLOWING','getLiveShareCoordinator','FOLLOWING','You\x27re\x20following\x20the\x20presenter','length','currentColor','onRendered','OPERATION','154pAdmzt','complete','presenter','event$','You\x27re\x20presenting\x20the\x20document','string','403bpgUFw','values','LIVESHARE_NEW_HOST','forEach','_reporters','_uiPartsService','4840578mXqWdu','getConfig','getLiveShareCoordinatorSync','PRESENTING','NEW_CHANGESETS','_status$','_startPresenting','_handleOperation','live-share.config','createInstance','executeCommand','defineProperty','random','not-following','20rJFGbN','_configService','Start\x20following','entries','1em','_init','1538675bIhIiP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','tag','sheet','requireSession','has','idSuffix','button','attrs','stopFollowing','7zJipyD','univer-size-4','next','OFFLINE','getOwnPropertyDescriptor','pluginName','Stop\x20presenting','dispose$','trim','getStatus','send','path','presenting','pipe','ONLINE','use','setConfig','UniverIcon','add','1449531jcXMMh','_status','subscribe','unsubscribe','IDLE','getCurrentTypeOfUnit$','You\x27are\x20offline.','_unitID','9970856joVBuC','stopPresenting','_fetchOperations','unitId','_commandDisposable','registerSharedOperation','_beIdle','HEADER_MENU','dispose','shouldShareOperation','_stopFollowing','startFollowing','univerjs-icon\x20univerjs-icon-','Stop\x20following','LIVESHARE_TERMINATE','params','8CKhPyB','_entities','disposeWithMe','1391772jUAKCs','LIVESHARE_OPERATION','_sharedOperations','_univerInstanceService','set','default','_commandService','stringify','replace','_presenter','div','assign','getTypeOfUnitDisposed$','children','asObservable','status$','defs','SAME_OPERATION_SHARE_INTERVAL','mask','UNIVER_SHEET','xlink:href','getValue','_collabSessionService','http://www.w3.org/2000/svg','toString','text'];_0x459e=function(){return _0x319f14;};return _0x459e();}var Fe=Object[_0x33f3a0(0x24d)],He=(_0x535aa1,_0x2cfb62,_0x20c910,_0x221642)=>{const _0x2e46f8=_0x33f3a0;for(var _0x3eab47=_0x221642>0x1?void 0x0:_0x221642?Fe(_0x2cfb62,_0x20c910):_0x2cfb62,_0x6843ee=_0x535aa1[_0x2e46f8(0x21b)]-0x1,_0x5d6e07;_0x6843ee>=0x0;_0x6843ee--)(_0x5d6e07=_0x535aa1[_0x6843ee])&&(_0x3eab47=_0x5d6e07(_0x3eab47)||_0x3eab47);return _0x3eab47;},A=(_0x2082db,_0x1c9007)=>(_0x3a82e9,_0x5a5420)=>_0x1c9007(_0x3a82e9,_0x5a5420,_0x2082db);let m=class extends _0x123ebc{constructor(_0x155636,_0x29070b){const _0x218fd6=_0x33f3a0;super(),this[_0x218fd6(0x1f9)]=_0x155636,this[_0x218fd6(0x22a)]=_0x29070b,this[_0x218fd6(0x212)]();}['_mountLiveShare'](){const _0x4fd0a9=_0x33f3a0;this[_0x4fd0a9(0x1cd)](this[_0x4fd0a9(0x22a)][_0x4fd0a9(0x210)](_0x221148[_0x4fd0a9(0x26b)],()=>_0x1211a(Le,this[_0x4fd0a9(0x1f9)])));}};m=He([A(0x0,_0x4770f0(_0x52080b)),A(0x1,_0x510518)],m);const ye=_0x33f3a0(0x233),T={};var Ue=Object[_0x33f3a0(0x24d)],Ve=(_0x18732e,_0x239b6f,_0x4a5423,_0x530734)=>{for(var _0x59246b=_0x530734>0x1?void 0x0:_0x530734?Ue(_0x239b6f,_0x4a5423):_0x239b6f,_0x470036=_0x18732e['length']-0x1,_0x4992ab;_0x470036>=0x0;_0x470036--)(_0x4992ab=_0x18732e[_0x470036])&&(_0x59246b=_0x4992ab(_0x59246b)||_0x59246b);return _0x59246b;},je=(_0x139394,_0x19e9e5)=>(_0x3ce7e5,_0x1ae217)=>_0x19e9e5(_0x3ce7e5,_0x1ae217,_0x139394);let I=class extends _0x123ebc{constructor(_0x40e231){super(),this['_liveShareService']=_0x40e231,this['_init']();}[_0x33f3a0(0x23e)](){const _0x225112=_0x33f3a0;[_0x57d381['id'],_0x23a13f['id'],_0x46858f['id']][_0x225112(0x228)](_0x19bbd2=>{const _0x3e5e75=_0x225112;this[_0x3e5e75(0x1cd)](this[_0x3e5e75(0x215)][_0x3e5e75(0x269)](_0x19bbd2));});}};I=Ve([je(0x0,_0x4770f0(L))],I);var Me=Object[_0x33f3a0(0x236)],ke=Object[_0x33f3a0(0x24d)],Ge=(_0x36770f,_0x38d812,_0x45f783)=>_0x38d812 in _0x36770f?Me(_0x36770f,_0x38d812,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45f783}):_0x36770f[_0x38d812]=_0x45f783,We=(_0x5d40fc,_0x1bb5c9,_0x5a2148,_0x279338)=>{const _0x54a75e=_0x33f3a0;for(var _0x3d6b82=_0x279338>0x1?void 0x0:_0x279338?ke(_0x1bb5c9,_0x5a2148):_0x1bb5c9,_0x205263=_0x5d40fc[_0x54a75e(0x21b)]-0x1,_0x428e3b;_0x205263>=0x0;_0x205263--)(_0x428e3b=_0x5d40fc[_0x205263])&&(_0x3d6b82=_0x428e3b(_0x3d6b82)||_0x3d6b82);return _0x3d6b82;},F=(_0x32706a,_0x4d4ec2)=>(_0x3c8d7c,_0x3af40d)=>_0x4d4ec2(_0x3c8d7c,_0x3af40d,_0x32706a),B=(_0x4d41b7,_0x110354,_0x4ca6b3)=>Ge(_0x4d41b7,typeof _0x110354!=_0x33f3a0(0x213)?_0x110354+'':_0x110354,_0x4ca6b3);const Ye=_0x33f3a0(0x1ea);let b=class extends _0x14031e{constructor(_0x229764=T,_0x10c5e9,_0x1f9e0e){const _0x41a4b8=_0x33f3a0;super(),this[_0x41a4b8(0x1fb)]=_0x229764,this[_0x41a4b8(0x1f9)]=_0x10c5e9,this[_0x41a4b8(0x23a)]=_0x1f9e0e;const {..._0x24f8e6}=_0x2fd27e({},T,this[_0x41a4b8(0x1fb)]);this[_0x41a4b8(0x23a)][_0x41a4b8(0x259)](ye,_0x24f8e6);}[_0x33f3a0(0x1f7)](){const _0x2eeb34=_0x33f3a0;_0x293650(this[_0x2eeb34(0x1f9)],_0x57eb35([[L],[S],[I],[m]],this['_config']['override'])),_0x19de09(this[_0x2eeb34(0x1f9)],[[I]]);}[_0x33f3a0(0x21d)](){_0x19de09(this['_injector'],[[m]]);}};B(b,'type',_0x1afb45[_0x33f3a0(0x1ff)]),B(b,_0x33f3a0(0x24e),Ye),b=We([_0x83a676(_0x5984b3),F(0x1,_0x4770f0(_0x52080b)),F(0x2,_0x404a20)],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 _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};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5293cb=_0x23dc;(function(_0x4ec40d,_0x2d323c){const _0x518124=_0x23dc,_0x39563a=_0x4ec40d();while(!![]){try{const _0x4c6788=parseInt(_0x518124(0x164))/0x1+-parseInt(_0x518124(0x185))/0x2+parseInt(_0x518124(0x165))/0x3+parseInt(_0x518124(0x16a))/0x4*(-parseInt(_0x518124(0x17e))/0x5)+parseInt(_0x518124(0x176))/0x6*(parseInt(_0x518124(0x173))/0x7)+parseInt(_0x518124(0x183))/0x8+-parseInt(_0x518124(0x180))/0x9*(-parseInt(_0x518124(0x17f))/0xa);if(_0x4c6788===_0x2d323c)break;else _0x39563a['push'](_0x39563a['shift']());}catch(_0x3d1ae2){_0x39563a['push'](_0x39563a['shift']());}}}(_0x22d7,0x4b2e0));function _0x23dc(_0x5db9dd,_0x4df6d6){_0x5db9dd=_0x5db9dd-0x164;const _0x22d7aa=_0x22d7();let _0x23dce0=_0x22d7aa[_0x5db9dd];return _0x23dce0;}import{LiveShareController as _0x16c5cc,LiveShareStatus as _0x1f6523}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xc3603b}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3c665a}from'@univerjs/sheets';import{SetScrollOperation as _0x487c0f}from'@univerjs/sheets-ui';function _0x22d7(){const _0x50c9c6=['68SfqgET','getRenderById','getLiveShareStatus','getUnitId','getActiveSheet','getStatus','getId','syncExecuteCommand','getSheetId','35fieIjn','IDLE','_injector','105852QNTiSf','getLiveShareCoordinatorSync','executeCommand','PRESENTING','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','_commandService','158135VgTgQD','2546990tOiQKu','9nwmBYN','LiveShareStatusEnum','stopFollowing','2187712EmQqJW','_initialize','641400OygNKg','startColumn','getActiveWorkbook','450559dSPSni','298089QfjoKB','startFollowing','get','tryStartPresenting','extend'];_0x22d7=function(){return _0x50c9c6;};return _0x22d7();}import{FRange as _0x3bddf8}from'@univerjs/sheets/facade';import{FUniver as _0x30b7ca,FEnum as _0x5c895f}from'@univerjs/core/facade';class I extends _0x3bddf8{[_0x5293cb(0x184)](_0x478184,_0x2c8249,_0x535a5e,_0x3a37d5,_0x358e9a){const _0x27736d=_0x5293cb,_0x143166=_0x478184[_0x27736d(0x167)](_0x16c5cc),_0x4cea05=_0x478184[_0x27736d(0x167)](_0xc3603b),_0x1e8c10=_0x2c8249['getUnitId'](),_0x59870f=_0x2c8249[_0x27736d(0x16e)](),_0xd0295b=_0x143166['getLiveShareCoordinatorSync'](_0x1e8c10);(_0xd0295b==null?void 0x0:_0xd0295b['getStatus']())!==_0x1f6523[_0x27736d(0x179)]||(_0x535a5e[_0x27736d(0x172)]()!==_0x59870f['getSheetId']()&&this[_0x27736d(0x17d)][_0x27736d(0x178)](_0x3c665a['id'],{'unitId':_0x1e8c10,'subUnitId':_0x535a5e[_0x27736d(0x172)]()}),!_0x4cea05[_0x27736d(0x16b)](_0x1e8c10))||_0x358e9a[_0x27736d(0x171)](_0x487c0f['id'],{'unitId':_0x2c8249[_0x27736d(0x16d)](),'sheetId':_0x535a5e[_0x27736d(0x172)](),'sheetViewStartRow':_0x3a37d5['startRow'],'sheetViewStartColumn':_0x3a37d5[_0x27736d(0x186)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3bddf8[_0x5293cb(0x169)](I);class m extends _0x30b7ca{[_0x5293cb(0x16c)](){const _0x3045ba=_0x5293cb;var _0x474a56,_0x390c2c;const _0x3b19e7=this['_injector']['get'](_0x16c5cc),_0x6389c5=(_0x474a56=this[_0x3045ba(0x187)]())==null?void 0x0:_0x474a56['getId']();if(!_0x6389c5)throw new Error(_0x3045ba(0x17c));const _0x497d66=_0x3b19e7[_0x3045ba(0x177)](_0x6389c5);return(_0x390c2c=_0x497d66==null?void 0x0:_0x497d66[_0x3045ba(0x16f)]())!=null?_0x390c2c:_0x1f6523[_0x3045ba(0x174)];}[_0x5293cb(0x166)](){const _0x5c552d=_0x5293cb;var _0x1702b4;const _0x72ed5b=this['_injector'][_0x5c552d(0x167)](_0x16c5cc),_0x193bf3=(_0x1702b4=this['getActiveWorkbook']())==null?void 0x0:_0x1702b4[_0x5c552d(0x170)]();if(!_0x193bf3)throw new Error(_0x5c552d(0x17c));const _0x1f630a=_0x72ed5b['getLiveShareCoordinatorSync'](_0x193bf3);if(!_0x1f630a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1f630a[_0x5c552d(0x166)]();}['stopFollowing'](){const _0xf7360f=_0x5293cb;var _0x218574;const _0xdd2b6f=this[_0xf7360f(0x175)][_0xf7360f(0x167)](_0x16c5cc),_0x33bcec=(_0x218574=this[_0xf7360f(0x187)]())==null?void 0x0:_0x218574['getId']();if(!_0x33bcec)throw new Error(_0xf7360f(0x17c));const _0x3fa141=_0xdd2b6f[_0xf7360f(0x177)](_0x33bcec);if(!_0x3fa141)throw new Error(_0xf7360f(0x17b));_0x3fa141[_0xf7360f(0x182)]();}['startPresenting'](){const _0x1b5b1d=_0x5293cb;var _0x2b3169;const _0x29496d=this[_0x1b5b1d(0x175)]['get'](_0x16c5cc),_0x9f4578=(_0x2b3169=this['getActiveWorkbook']())==null?void 0x0:_0x2b3169[_0x1b5b1d(0x170)]();if(!_0x9f4578)throw new Error(_0x1b5b1d(0x17c));const _0x133052=_0x29496d[_0x1b5b1d(0x177)](_0x9f4578);if(!_0x133052)throw new Error(_0x1b5b1d(0x17b));_0x133052[_0x1b5b1d(0x168)]();}[_0x5293cb(0x17a)](){const _0x4915d4=_0x5293cb;var _0x27dc21;const _0x49ae80=this[_0x4915d4(0x175)][_0x4915d4(0x167)](_0x16c5cc),_0x22b8e2=(_0x27dc21=this['getActiveWorkbook']())==null?void 0x0:_0x27dc21[_0x4915d4(0x170)]();if(!_0x22b8e2)throw new Error(_0x4915d4(0x17c));const _0x28fffd=_0x49ae80[_0x4915d4(0x177)](_0x22b8e2);if(!_0x28fffd)throw new Error(_0x4915d4(0x17b));_0x28fffd[_0x4915d4(0x17a)]();}}_0x30b7ca['extend'](m);class C extends _0x5c895f{get[_0x5293cb(0x181)](){return _0x1f6523;}}_0x5c895f[_0x5293cb(0x169)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x33f3a0=_0x2e44;(function(_0x5ad21f,_0x3dc78a){const _0x5d7d3f=_0x2e44,_0x18ce42=_0x5ad21f();while(!![]){try{const _0x20d940=-parseInt(_0x5d7d3f(0x225))/0x1*(-parseInt(_0x5d7d3f(0x1f2))/0x2)+-parseInt(_0x5d7d3f(0x25c))/0x3*(parseInt(_0x5d7d3f(0x274))/0x4)+parseInt(_0x5d7d3f(0x23f))/0x5+-parseInt(_0x5d7d3f(0x203))/0x6+-parseInt(_0x5d7d3f(0x249))/0x7*(-parseInt(_0x5d7d3f(0x264))/0x8)+parseInt(_0x5d7d3f(0x22b))/0x9*(parseInt(_0x5d7d3f(0x239))/0xa)+-parseInt(_0x5d7d3f(0x21f))/0xb*(parseInt(_0x5d7d3f(0x1ce))/0xc);if(_0x20d940===_0x3dc78a)break;else _0x18ce42['push'](_0x18ce42['shift']());}catch(_0x4c97a6){_0x18ce42['push'](_0x18ce42['shift']());}}}(_0x459e,0xad3af));var J=Object[_0x33f3a0(0x236)],K=(_0xc79036,_0x4e3ecf,_0xd7d539)=>_0x4e3ecf in _0xc79036?J(_0xc79036,_0x4e3ecf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd7d539}):_0xc79036[_0x4e3ecf]=_0xd7d539,u=(_0x4422ad,_0x345867,_0x3f3468)=>K(_0x4422ad,typeof _0x345867!='symbol'?_0x345867+'':_0x345867,_0x3f3468);import{Disposable as _0x123ebc,toDisposable as _0x31e46f,IUniverInstanceService as _0x56e919,Inject as _0x4770f0,Injector as _0x52080b,IConfigService as _0x404a20,ICommandService as _0x3d793e,RxDisposable as _0x17838a,UniverInstanceType as _0x1afb45,DisposableCollection as _0x5321e8,CommandType as _0x4795cf,DependentOn as _0x83a676,Plugin as _0x14031e,merge as _0x2fd27e,registerDependencies as _0x293650,mergeOverrideWithDependencies as _0x57eb35,touchDependencies as _0x19de09}from'@univerjs/core';import{useDependency as _0x26c8a9,useObservable as _0x4c2a85,IUIPartsService as _0x510518,BuiltInUIPart as _0x221148,connectInjector as _0x1211a}from'@univerjs/ui';import{jsx as _0x2d6d1e,jsxs as _0x4bfea3,Fragment as _0x4d5d84}from'react/jsx-runtime';import{Dropdown as _0x2eaec2,clsx as _0xf2d602,Button as _0x5c367e}from'@univerjs/design';import{useRef as _0x278b84,createElement as _0x3b10f6,forwardRef as _0x10402b,useState as _0x575f52,useEffect as _0x1a5f41}from'react';import{CollaborationEvent as _0xb16a85,parseProtocolChangeset as _0xcaafe2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x58b373,SessionStatus as _0x178ef0,UniverCollaborationClientPlugin as _0x5984b3}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x10d1bf,SetWorksheetActiveOperation as _0x46858f}from'@univerjs/sheets';import{BehaviorSubject as _0x176527,Subject as _0x3a662b}from'rxjs';import{takeUntil as _0x37843a,throttleTime as _0x5f4e61}from'rxjs/operators';import{SetZoomRatioOperation as _0x57d381,SetScrollOperation as _0x23a13f}from'@univerjs/sheets-ui';function k({ref:_0x5b4cea,..._0x38787f}){const _0x3aa2f8=_0x33f3a0,{icon:_0x35d148,id:_0x19eaf2,className:_0x2a3884,extend:_0x303024,..._0x53100e}=_0x38787f,_0x15fd1b=(_0x3aa2f8(0x270)+_0x19eaf2+'\x20'+(_0x2a3884||''))[_0x3aa2f8(0x251)](),_0x50b4e7=_0x278b84('_'+Oe());return G(_0x35d148,''+_0x19eaf2,{'defIds':_0x35d148['defIds'],'idSuffix':_0x50b4e7['current']},{'ref':_0x5b4cea,'className':_0x15fd1b,..._0x53100e},_0x303024);}function G(_0x556d60,_0x9df4d4,_0x4fb525,_0xdf95c,_0x29ec95){const _0x46d3d6=_0x33f3a0;return _0x3b10f6(_0x556d60[_0x46d3d6(0x241)],{'key':_0x9df4d4,...be(_0x556d60,_0x4fb525,_0x29ec95),..._0xdf95c},(Ee(_0x556d60,_0x4fb525)[_0x46d3d6(0x1db)]||[])[_0x46d3d6(0x208)]((_0x401c42,_0x2cd970)=>G(_0x401c42,_0x9df4d4+'-'+_0x556d60[_0x46d3d6(0x241)]+'-'+_0x2cd970,_0x4fb525,void 0x0,_0x29ec95)));}function be(_0x3fc3ee,_0x278250,_0x114b3d){const _0x1be6fd=_0x33f3a0,_0x5e231b={..._0x3fc3ee['attrs']};_0x114b3d!=null&&_0x114b3d[_0x1be6fd(0x1f8)]&&_0x5e231b['fill']===_0x1be6fd(0x1f8)&&(_0x5e231b['fill']=_0x114b3d['colorChannel1']),_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x1e0)&&_0x5e231b['id']&&(_0x5e231b['id']=_0x5e231b['id']+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x1cff51,_0x396038])=>{const _0x55f7d7=_0x1be6fd;_0x1cff51===_0x55f7d7(0x1e0)&&typeof _0x396038==_0x55f7d7(0x224)&&(_0x5e231b[_0x1cff51]=_0x396038[_0x55f7d7(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x55f7d7(0x245)]+')'));});const {defIds:_0xdade56}=_0x278250;return!_0xdade56||_0xdade56[_0x1be6fd(0x21b)]===0x0||(_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x258)&&_0x5e231b['xlink:href']&&(_0x5e231b[_0x1be6fd(0x1e2)]=_0x5e231b[_0x1be6fd(0x1e2)]+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x3d541b,_0x515e38])=>{const _0x350485=_0x1be6fd;typeof _0x515e38==_0x350485(0x224)&&(_0x5e231b[_0x3d541b]=_0x515e38[_0x350485(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x350485(0x245)]+')'));})),_0x5e231b;}function Ee(_0x42c0ef,_0xd6ce40){const _0x230fdd=_0x33f3a0;var _0x3f6687;const {defIds:_0x1768f8}=_0xd6ce40;return!_0x1768f8||_0x1768f8['length']===0x0?_0x42c0ef:_0x42c0ef['tag']===_0x230fdd(0x1de)&&((_0x3f6687=_0x42c0ef['children'])!=null&&_0x3f6687[_0x230fdd(0x21b)])?{..._0x42c0ef,'children':_0x42c0ef['children'][_0x230fdd(0x208)](_0x1e6bad=>typeof _0x1e6bad[_0x230fdd(0x247)]['id']=='string'&&_0x1768f8&&_0x1768f8['includes'](_0x1e6bad[_0x230fdd(0x247)]['id'])?{..._0x1e6bad,'attrs':{..._0x1e6bad[_0x230fdd(0x247)],'id':_0x1e6bad[_0x230fdd(0x247)]['id']+_0xd6ce40[_0x230fdd(0x245)]}}:_0x1e6bad)}:_0x42c0ef;}function Oe(){const _0x39159b=_0x33f3a0;return Math[_0x39159b(0x237)]()[_0x39159b(0x1e6)](0x24)[_0x39159b(0x206)](0x2,0x8);}k[_0x33f3a0(0x20a)]=_0x33f3a0(0x25a);const we={'tag':'svg','attrs':{'xmlns':_0x33f3a0(0x1e5),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x33f3a0(0x23d),'height':'1em'},'children':[{'tag':_0x33f3a0(0x254),'attrs':{'fill':_0x33f3a0(0x21c),'d':_0x33f3a0(0x1f0)}},{'tag':_0x33f3a0(0x254),'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':_0x33f3a0(0x1f4),'clipRule':_0x33f3a0(0x1f4)}}]},W=_0x10402b(function(_0x1133f4,_0x52c04b){const _0x4d89e6=_0x33f3a0;return _0x3b10f6(k,Object[_0x4d89e6(0x1d9)]({},_0x1133f4,{'id':_0x4d89e6(0x207),'ref':_0x52c04b,'icon':we}));});W[_0x33f3a0(0x20a)]='LiveShareIcon';class L extends _0x123ebc{constructor(){const _0x34dc27=_0x33f3a0;super(...arguments),u(this,_0x34dc27(0x1d0),new Set()),u(this,_0x34dc27(0x229),new Set());}['registerSharedOperation'](_0x914821){const _0x403db7=_0x33f3a0;return this['_sharedOperations'][_0x403db7(0x25b)](_0x914821),_0x31e46f(()=>this[_0x403db7(0x1d0)]['delete'](_0x914821));}['registerInitialStateReporter'](_0xb43a22){const _0x5385b1=_0x33f3a0;return this[_0x5385b1(0x229)][_0x5385b1(0x25b)](_0xb43a22),_0x31e46f(()=>this[_0x5385b1(0x229)]['delete'](_0xb43a22));}[_0x33f3a0(0x26d)](_0x1c1763){const _0x503683=_0x33f3a0;return this['_sharedOperations'][_0x503683(0x244)](_0x1c1763);}[_0x33f3a0(0x1fd)](_0x1267ab){const _0x24e62b=_0x33f3a0;return Array['from'](this[_0x24e62b(0x229)])[_0x24e62b(0x208)](_0x4fafe4=>_0x4fafe4(_0x1267ab));}}var Ne=Object[_0x33f3a0(0x24d)],Y=(_0x3ea768,_0x58f61a,_0xe93ef6,_0x51aebd)=>{const _0x67f94d=_0x33f3a0;for(var _0x4426c3=_0x51aebd>0x1?void 0x0:_0x51aebd?Ne(_0x58f61a,_0xe93ef6):_0x58f61a,_0x48ce84=_0x3ea768[_0x67f94d(0x21b)]-0x1,_0xdd11bf;_0x48ce84>=0x0;_0x48ce84--)(_0xdd11bf=_0x3ea768[_0x48ce84])&&(_0x4426c3=_0xdd11bf(_0x4426c3)||_0x4426c3);return _0x4426c3;},_=(_0x513a9f,_0x4ba8f1)=>(_0xfc4201,_0x4eb585)=>_0x4ba8f1(_0xfc4201,_0x4eb585,_0x513a9f);let S=class extends _0x17838a{constructor(_0x3758db,_0x4933f8,_0x5bf668){const _0x1894cf=_0x33f3a0;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3758db,this[_0x1894cf(0x1f9)]=_0x4933f8,this[_0x1894cf(0x1e4)]=_0x5bf668,this[_0x1894cf(0x23e)]());}async[_0x33f3a0(0x218)](_0x57f0fb){const _0x454f11=_0x33f3a0;return this[_0x454f11(0x275)]['has'](_0x57f0fb)||await this['_startLiveShareCoordinator'](_0x57f0fb),this[_0x454f11(0x275)][_0x454f11(0x20b)](_0x57f0fb);}[_0x33f3a0(0x22d)](_0x58cc5d){const _0x23bc19=_0x33f3a0;var _0x48ad61;return(_0x48ad61=this[_0x23bc19(0x275)][_0x23bc19(0x20b)](_0x58cc5d))!=null?_0x48ad61:null;}['_init'](){const _0x214d50=_0x33f3a0;this[_0x214d50(0x1d1)][_0x214d50(0x20c)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](async _0x12f3c4=>{const _0x132751=_0x214d50,_0x454f48=_0x12f3c4[_0x132751(0x1f5)]();this[_0x132751(0x275)]['has'](_0x454f48)||this[_0x132751(0x1ee)](_0x454f48);}),this[_0x214d50(0x1d1)][_0x214d50(0x1da)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](_0x3c7707=>{const _0x17a399=_0x214d50,_0x459a59=_0x3c7707[_0x17a399(0x1f5)](),_0xef1edc=this[_0x17a399(0x275)]['get'](_0x459a59);_0xef1edc==null||_0xef1edc[_0x17a399(0x26c)]();});}async[_0x33f3a0(0x1ee)](_0x674802){const _0x4402a1=_0x33f3a0,_0x2dc03b=await this[_0x4402a1(0x1e4)][_0x4402a1(0x243)](_0x674802),_0x4a00c3=this[_0x4402a1(0x1f9)][_0x4402a1(0x234)](N,_0x674802,_0x2dc03b);return _0x4a00c3[_0x4402a1(0x205)](),this[_0x4402a1(0x275)][_0x4402a1(0x1d2)](_0x674802,_0x4a00c3),_0x4a00c3;}};S=Y([_(0x0,_0x56e919),_(0x1,_0x4770f0(_0x52080b)),_(0x2,_0x4770f0(_0x58b373))],S);var c=(_0x27bf23=>(_0x27bf23[_0x33f3a0(0x24c)]='offline',_0x27bf23[_0x33f3a0(0x260)]=_0x33f3a0(0x1eb),_0x27bf23['FOLLOWING']='following',_0x27bf23['NOT_FOLLOWING']=_0x33f3a0(0x238),_0x27bf23['PRESENTING']=_0x33f3a0(0x255),_0x27bf23))(c||{});const Ce=_0x33f3a0(0x1df),De=0xc8;let N=class extends _0x17838a{constructor(_0x1d22cf,_0x92e78,_0x22e8c4,_0x52fee2,_0x1db30a){const _0x51c258=_0x33f3a0;super(),u(this,'_status$',new _0x176527('idle')),u(this,_0x51c258(0x1dd),this[_0x51c258(0x230)][_0x51c258(0x1dc)]()),u(this,'_init',!0x1),u(this,_0x51c258(0x268),null),u(this,'_presenter',null),(this[_0x51c258(0x263)]=_0x1d22cf,this[_0x51c258(0x1f1)]=_0x92e78,this[_0x51c258(0x23a)]=_0x22e8c4,this[_0x51c258(0x215)]=_0x52fee2,this[_0x51c258(0x1d4)]=_0x1db30a);}get['_status'](){const _0x438f46=_0x33f3a0;return this['_status$'][_0x438f46(0x1e3)]();}[_0x33f3a0(0x26c)](){const _0x27ec2c=_0x33f3a0;var _0x72d230;(_0x72d230=this[_0x27ec2c(0x268)])==null||_0x72d230['dispose'](),this['_status$'][_0x27ec2c(0x24b)](_0x27ec2c(0x1eb)),this[_0x27ec2c(0x230)][_0x27ec2c(0x220)]();}[_0x33f3a0(0x252)](){const _0x11edac=_0x33f3a0;return this[_0x11edac(0x25d)];}[_0x33f3a0(0x205)](){const _0x102587=_0x33f3a0;this['_init']||(this[_0x102587(0x23e)]=!0x0,this['_collabSession'][_0x102587(0x20f)][_0x102587(0x256)](_0x37843a(this['dispose$']))[_0x102587(0x25e)](_0x5ef95c=>{const _0x443f08=_0x102587;switch(_0x5ef95c){case _0x178ef0[_0x443f08(0x24c)]:this['_handleOffline']();break;case _0x178ef0[_0x443f08(0x257)]:this['_handleOnline']();break;}}),this[_0x102587(0x1f1)][_0x102587(0x222)][_0x102587(0x256)](_0x37843a(this[_0x102587(0x250)]))['subscribe'](_0x1be2fe=>{const _0x1fcfc9=_0x102587,{eventID:_0x1d0554}=_0x1be2fe;switch(_0x1d0554){case _0xb16a85[_0x1fcfc9(0x227)]:this[_0x1fcfc9(0x202)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x1cf)]:this[_0x1fcfc9(0x232)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x272)]:this['_handleTerminate']();break;case _0xb16a85[_0x1fcfc9(0x22f)]:this[_0x1fcfc9(0x200)](_0x1be2fe);break;}}));}['tryStartPresenting'](){const _0x25bb1b=_0x33f3a0;this[_0x25bb1b(0x1f1)][_0x25bb1b(0x253)]({'eventID':_0xb16a85['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x25bb1b(0x263)],'userID':this[_0x25bb1b(0x1f1)]['getMemberID']()}},this['_unitID']);}[_0x33f3a0(0x265)](){const _0x2f25aa=_0x33f3a0;this[_0x2f25aa(0x25d)]===_0x2f25aa(0x255)&&(this[_0x2f25aa(0x230)][_0x2f25aa(0x24b)](_0x2f25aa(0x1eb)),this[_0x2f25aa(0x1f1)][_0x2f25aa(0x253)]({'eventID':_0xb16a85[_0x2f25aa(0x272)],'data':{'unitID':this[_0x2f25aa(0x263)]}},this[_0x2f25aa(0x263)]));}['startFollowing'](){const _0x1316ad=_0x33f3a0;this['_status']===_0x1316ad(0x238)&&(this[_0x1316ad(0x230)]['next'](_0x1316ad(0x20e)),this['_startFollowing']());}[_0x33f3a0(0x248)](){const _0x4f16b7=_0x33f3a0;this[_0x4f16b7(0x25d)]===_0x4f16b7(0x20e)&&this[_0x4f16b7(0x26e)]();}[_0x33f3a0(0x202)](_0xbe7f27){const _0x592550=_0x33f3a0,{presenter:_0x1eb49d}=_0xbe7f27[_0x592550(0x214)],_0x16cf76=this[_0x592550(0x1f1)][_0x592550(0x216)]();this['_presenter']=_0x1eb49d,_0x1eb49d===_0x16cf76?(this['_stopFollowing'](),this[_0x592550(0x231)]()):this['_status']!==_0x592550(0x238)&&(this['_stopPresenting'](),this[_0x592550(0x211)]());}[_0x33f3a0(0x266)](){const _0x2e5bfd=_0x33f3a0,_0x4b6f72={'eventID':_0xb16a85['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e5bfd(0x1f1)]['send'](_0x4b6f72,this[_0x2e5bfd(0x263)]);}[_0x33f3a0(0x1ef)](){const _0x40b8ab=_0x33f3a0;this[_0x40b8ab(0x1d7)]=null,this['_status']!==_0x40b8ab(0x255)&&this[_0x40b8ab(0x26a)]();}['_handleNewChangeSets'](_0x4801c3){const _0x4a918b=_0x33f3a0;if(this[_0x4a918b(0x25d)]===_0x4a918b(0x20e)&&this[_0x4a918b(0x1d7)]===_0x4801c3[_0x4a918b(0x214)]['memberID']){const _0x17c52d=_0xcaafe2(_0x4801c3[_0x4a918b(0x214)])[_0x4a918b(0x1ed)]['reverse']()[_0x4a918b(0x1e9)](_0x11313d=>_0x11313d['id']===_0x10d1bf['id']);if(_0x17c52d){const _0x327873=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x267)],_0x432f38=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x242)]['id'];setTimeout(()=>{const _0x1dfce2=_0x4a918b;this['_commandService'][_0x1dfce2(0x235)](_0x46858f['id'],{'unitId':_0x327873,'subUnitId':_0x432f38},{'fromCollab':!0x0});});}}}[_0x33f3a0(0x231)](){const _0x1f510d=_0x33f3a0;this[_0x1f510d(0x230)]['next'](_0x1f510d(0x255));const _0x2cd3f8=new Map(),_0x124d72=this[_0x1f510d(0x268)]=new _0x5321e8();_0x124d72[_0x1f510d(0x25b)](_0x31e46f(()=>{const _0x6feaf5=_0x1f510d;_0x2cd3f8[_0x6feaf5(0x228)](_0x3d00fa=>_0x3d00fa[_0x6feaf5(0x220)]()),_0x2cd3f8[_0x6feaf5(0x1ec)]();})),_0x124d72[_0x1f510d(0x25b)](this[_0x1f510d(0x1d4)]['onCommandExecuted'](_0xc6c9aa=>{const _0x41c79a=_0x1f510d;var _0x4fbf23;if(_0xc6c9aa[_0x41c79a(0x1fa)]!==_0x4795cf[_0x41c79a(0x21e)]||!this[_0x41c79a(0x215)][_0x41c79a(0x26d)](_0xc6c9aa['id']))return;const {id:_0x4cbfb6}=_0xc6c9aa;let _0x40e576;_0x2cd3f8[_0x41c79a(0x244)](_0x4cbfb6)?_0x40e576=_0x2cd3f8[_0x41c79a(0x20b)](_0x4cbfb6):(_0x40e576=new _0x3a662b(),_0x2cd3f8[_0x41c79a(0x1d2)](_0x4cbfb6,_0x40e576),_0x40e576[_0x41c79a(0x256)](_0x5f4e61((_0x4fbf23=this[_0x41c79a(0x23a)][_0x41c79a(0x22c)](Ce))!=null?_0x4fbf23:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x215ed=>{const _0x5ceb31=_0x41c79a;this['_collabSession']['send']({'eventID':_0xb16a85[_0x5ceb31(0x1cf)],'data':{'unitID':this[_0x5ceb31(0x263)],'operations':{[_0x215ed['id']]:{'id':_0x215ed['id'],'params':JSON[_0x5ceb31(0x1d5)](_0x215ed[_0x5ceb31(0x273)])}}}},this[_0x5ceb31(0x263)]);})),_0x40e576[_0x41c79a(0x24b)](_0xc6c9aa);})),this[_0x1f510d(0x215)][_0x1f510d(0x1fd)](this[_0x1f510d(0x263)])['forEach'](_0x144ee2=>this[_0x1f510d(0x1f1)][_0x1f510d(0x253)]({'eventID':_0xb16a85[_0x1f510d(0x1cf)],'data':{'unitID':this['_unitID'],'operations':{[_0x144ee2['id']]:{'id':_0x144ee2['id'],'params':JSON[_0x1f510d(0x1d5)](_0x144ee2[_0x1f510d(0x273)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x30eb79=_0x33f3a0;var _0xf112d3;this[_0x30eb79(0x230)]['next'](_0x30eb79(0x1eb)),(_0xf112d3=this['_commandDisposable'])==null||_0xf112d3[_0x30eb79(0x26c)](),this[_0x30eb79(0x268)]=null;}[_0x33f3a0(0x211)](){const _0x10ccbf=_0x33f3a0;var _0xae736d;(_0xae736d=this[_0x10ccbf(0x268)])==null||_0xae736d[_0x10ccbf(0x26c)](),this[_0x10ccbf(0x230)][_0x10ccbf(0x24b)](_0x10ccbf(0x20e));}[_0x33f3a0(0x26a)](){const _0x2139e5=_0x33f3a0;var _0x2fcef5;this['_status$'][_0x2139e5(0x24b)](_0x2139e5(0x1eb)),(_0x2fcef5=this['_commandDisposable'])==null||_0x2fcef5[_0x2139e5(0x26c)](),this['_commandDisposable']=null;}[_0x33f3a0(0x26e)](){const _0x179e36=_0x33f3a0;var _0x3cbe93;this[_0x179e36(0x230)][_0x179e36(0x24b)](_0x179e36(0x238)),(_0x3cbe93=this['_commandDisposable'])==null||_0x3cbe93['dispose']();}[_0x33f3a0(0x232)](_0x2de9b2){const _0x13c3c3=_0x33f3a0;if(['presenting','not-following',_0x13c3c3(0x1f3)]['includes'](this[_0x13c3c3(0x25d)])||!_0x2de9b2['data'][_0x13c3c3(0x221)]||_0x2de9b2[_0x13c3c3(0x214)][_0x13c3c3(0x221)]===this[_0x13c3c3(0x1f1)]['getMemberID']())return;this['_status']===_0x13c3c3(0x1eb)&&this[_0x13c3c3(0x211)]();const _0x59baa4=_0x2de9b2[_0x13c3c3(0x214)]['operations'];Object[_0x13c3c3(0x226)](_0x59baa4)[_0x13c3c3(0x228)](_0x9dbcdf=>{const _0x50be95=_0x13c3c3;this[_0x50be95(0x1d4)]['executeCommand'](_0x9dbcdf['id'],_0x9dbcdf[_0x50be95(0x273)]?JSON['parse'](_0x9dbcdf['params']):null,{'fromCollab':!0x0});});}[_0x33f3a0(0x1f6)](){const _0x488d37=_0x33f3a0;var _0x3eb656;this[_0x488d37(0x230)][_0x488d37(0x24b)](_0x488d37(0x1f3)),(_0x3eb656=this['_commandDisposable'])==null||_0x3eb656['dispose']();}[_0x33f3a0(0x209)](){const _0xeccbed=_0x33f3a0;this[_0xeccbed(0x230)][_0xeccbed(0x24b)](_0xeccbed(0x1eb)),this['_fetchOperations']();}};N=Y([_(0x2,_0x404a20),_(0x3,_0x4770f0(L)),_(0x4,_0x3d793e)],N);function Le(){const _0x103675=_0x33f3a0,_0x47e73a=_0x26c8a9(S),_0xa11217=_0x26c8a9(_0x56e919),_0x481d3a=_0x4c2a85(()=>_0xa11217[_0x103675(0x261)](_0x1afb45[_0x103675(0x1e1)]),void 0x0,!0x1,[]),[_0x691107,_0x505fb3]=_0x575f52(null),[_0x21ed23,_0x35588a]=_0x575f52(c[_0x103675(0x260)]),_0x48e1ff=_0x278b84(null);return _0x1a5f41(()=>(_0x481d3a&&_0x47e73a[_0x103675(0x218)](_0x481d3a[_0x103675(0x1f5)]())[_0x103675(0x1e8)](_0x2b0487=>{const _0x120805=_0x103675;_0x505fb3(_0x2b0487),_0x48e1ff[_0x120805(0x204)]=_0x2b0487[_0x120805(0x1dd)]['subscribe'](_0x5cace3=>{_0x35588a(_0x5cace3);});}),()=>{const _0x1a4c97=_0x103675;var _0x8285d4;(_0x8285d4=_0x48e1ff[_0x1a4c97(0x204)])==null||_0x8285d4[_0x1a4c97(0x25f)](),_0x48e1ff[_0x1a4c97(0x204)]=null;}),[_0x481d3a,_0x47e73a]),_0x691107?_0x2d6d1e(_0x2eaec2,{'align':'end','disabled':_0x21ed23===c[_0x103675(0x24c)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2d6d1e(Re,{'status':_0x21ed23,'coordinator':_0x691107}),'children':_0x2d6d1e(_0x103675(0x246),{'className':_0xf2d602(_0x103675(0x240),{'univer-cursor-not-allowed':_0x21ed23===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed23!==c[_0x103675(0x24c)]}),'type':'button','children':_0x2d6d1e(W,{'className':_0x103675(0x24a)})})}):null;}function Re(_0x3d0acf){const _0x450982=_0x33f3a0,{status:_0x797ae3,coordinator:_0x262bff}=_0x3d0acf;switch(_0x797ae3){case c[_0x450982(0x260)]:return _0x2d6d1e($e,{'coordinator':_0x262bff});case c[_0x450982(0x219)]:return _0x2d6d1e(xe,{'coordinator':_0x262bff});case c[_0x450982(0x217)]:return _0x2d6d1e(Pe,{'coordinator':_0x262bff});case c[_0x450982(0x24c)]:return _0x2d6d1e(Te,{});case c[_0x450982(0x22e)]:return _0x2d6d1e(Ae,{'coordinator':_0x262bff});default:return null;}}function $e(_0x2c0556){const _0xb39eb6=_0x33f3a0,{coordinator:_0x5438de}=_0x2c0556;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0xb39eb6(0x1d8),{'className':_0xb39eb6(0x201),'children':_0xb39eb6(0x20d)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x5438de[_0xb39eb6(0x1fc)](),'children':_0xb39eb6(0x1fe)})]});}function xe(_0x3ca096){const _0x570720=_0x33f3a0,{coordinator:_0x270136}=_0x3ca096;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x570720(0x1d8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570720(0x21a)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x270136[_0x570720(0x248)](),'children':_0x570720(0x271)})]});}function Pe(_0x2814d4){const _0x4b4f9f=_0x33f3a0,{coordinator:_0x9c82ea}=_0x2814d4;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x4b4f9f(0x1d8),{'className':_0x4b4f9f(0x201),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2d6d1e(_0x5c367e,{'variant':_0x4b4f9f(0x1e7),'onClick':()=>_0x9c82ea[_0x4b4f9f(0x26f)](),'children':_0x4b4f9f(0x23b)})]});}function _0x2e44(_0x3092a4,_0x401c74){const _0x459eeb=_0x459e();return _0x2e44=function(_0x2e445d,_0x53bdb7){_0x2e445d=_0x2e445d-0x1cd;let _0x228b44=_0x459eeb[_0x2e445d];return _0x228b44;},_0x2e44(_0x3092a4,_0x401c74);}function Ae(_0x18efe1){const _0x1bd3fa=_0x33f3a0,{coordinator:_0x36bfab}=_0x18efe1;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x1bd3fa(0x1d8),{'className':_0x1bd3fa(0x201),'children':_0x1bd3fa(0x223)}),_0x2d6d1e(_0x5c367e,{'variant':_0x1bd3fa(0x1d3),'onClick':()=>_0x36bfab[_0x1bd3fa(0x265)](),'children':_0x1bd3fa(0x24f)})]});}function Te(){const _0x1d19e6=_0x33f3a0;return _0x2d6d1e(_0x4d5d84,{'children':_0x1d19e6(0x262)});}function _0x459e(){const _0x319f14=['then','find','UNIVER_LIVE_SHARE_PLUGIN','idle','clear','mutations','_startLiveShareCoordinator','_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','_collabSession','6548cYaHGT','offline','evenodd','getUnitId','_handleOffline','onStarting','colorChannel1','_injector','type','_config','tryStartPresenting','getInitialStates','Start','UNIVER_UNKNOWN','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','3897354pFxpWA','current','init','substring','live-share-icon','map','_handleOnline','displayName','get','getTypeOfUnitAdded$','Present\x20this\x20document','following','sessionStatus$','registerComponent','_startFollowing','_mountLiveShare','symbol','data','_liveShareService','getMemberID','NOT_FOLLOWING','getLiveShareCoordinator','FOLLOWING','You\x27re\x20following\x20the\x20presenter','length','currentColor','onRendered','OPERATION','154pAdmzt','complete','presenter','event$','You\x27re\x20presenting\x20the\x20document','string','403bpgUFw','values','LIVESHARE_NEW_HOST','forEach','_reporters','_uiPartsService','4840578mXqWdu','getConfig','getLiveShareCoordinatorSync','PRESENTING','NEW_CHANGESETS','_status$','_startPresenting','_handleOperation','live-share.config','createInstance','executeCommand','defineProperty','random','not-following','20rJFGbN','_configService','Start\x20following','entries','1em','_init','1538675bIhIiP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','tag','sheet','requireSession','has','idSuffix','button','attrs','stopFollowing','7zJipyD','univer-size-4','next','OFFLINE','getOwnPropertyDescriptor','pluginName','Stop\x20presenting','dispose$','trim','getStatus','send','path','presenting','pipe','ONLINE','use','setConfig','UniverIcon','add','1449531jcXMMh','_status','subscribe','unsubscribe','IDLE','getCurrentTypeOfUnit$','You\x27are\x20offline.','_unitID','9970856joVBuC','stopPresenting','_fetchOperations','unitId','_commandDisposable','registerSharedOperation','_beIdle','HEADER_MENU','dispose','shouldShareOperation','_stopFollowing','startFollowing','univerjs-icon\x20univerjs-icon-','Stop\x20following','LIVESHARE_TERMINATE','params','8CKhPyB','_entities','disposeWithMe','1391772jUAKCs','LIVESHARE_OPERATION','_sharedOperations','_univerInstanceService','set','default','_commandService','stringify','replace','_presenter','div','assign','getTypeOfUnitDisposed$','children','asObservable','status$','defs','SAME_OPERATION_SHARE_INTERVAL','mask','UNIVER_SHEET','xlink:href','getValue','_collabSessionService','http://www.w3.org/2000/svg','toString','text'];_0x459e=function(){return _0x319f14;};return _0x459e();}var Fe=Object[_0x33f3a0(0x24d)],He=(_0x535aa1,_0x2cfb62,_0x20c910,_0x221642)=>{const _0x2e46f8=_0x33f3a0;for(var _0x3eab47=_0x221642>0x1?void 0x0:_0x221642?Fe(_0x2cfb62,_0x20c910):_0x2cfb62,_0x6843ee=_0x535aa1[_0x2e46f8(0x21b)]-0x1,_0x5d6e07;_0x6843ee>=0x0;_0x6843ee--)(_0x5d6e07=_0x535aa1[_0x6843ee])&&(_0x3eab47=_0x5d6e07(_0x3eab47)||_0x3eab47);return _0x3eab47;},A=(_0x2082db,_0x1c9007)=>(_0x3a82e9,_0x5a5420)=>_0x1c9007(_0x3a82e9,_0x5a5420,_0x2082db);let m=class extends _0x123ebc{constructor(_0x155636,_0x29070b){const _0x218fd6=_0x33f3a0;super(),this[_0x218fd6(0x1f9)]=_0x155636,this[_0x218fd6(0x22a)]=_0x29070b,this[_0x218fd6(0x212)]();}['_mountLiveShare'](){const _0x4fd0a9=_0x33f3a0;this[_0x4fd0a9(0x1cd)](this[_0x4fd0a9(0x22a)][_0x4fd0a9(0x210)](_0x221148[_0x4fd0a9(0x26b)],()=>_0x1211a(Le,this[_0x4fd0a9(0x1f9)])));}};m=He([A(0x0,_0x4770f0(_0x52080b)),A(0x1,_0x510518)],m);const ye=_0x33f3a0(0x233),T={};var Ue=Object[_0x33f3a0(0x24d)],Ve=(_0x18732e,_0x239b6f,_0x4a5423,_0x530734)=>{for(var _0x59246b=_0x530734>0x1?void 0x0:_0x530734?Ue(_0x239b6f,_0x4a5423):_0x239b6f,_0x470036=_0x18732e['length']-0x1,_0x4992ab;_0x470036>=0x0;_0x470036--)(_0x4992ab=_0x18732e[_0x470036])&&(_0x59246b=_0x4992ab(_0x59246b)||_0x59246b);return _0x59246b;},je=(_0x139394,_0x19e9e5)=>(_0x3ce7e5,_0x1ae217)=>_0x19e9e5(_0x3ce7e5,_0x1ae217,_0x139394);let I=class extends _0x123ebc{constructor(_0x40e231){super(),this['_liveShareService']=_0x40e231,this['_init']();}[_0x33f3a0(0x23e)](){const _0x225112=_0x33f3a0;[_0x57d381['id'],_0x23a13f['id'],_0x46858f['id']][_0x225112(0x228)](_0x19bbd2=>{const _0x3e5e75=_0x225112;this[_0x3e5e75(0x1cd)](this[_0x3e5e75(0x215)][_0x3e5e75(0x269)](_0x19bbd2));});}};I=Ve([je(0x0,_0x4770f0(L))],I);var Me=Object[_0x33f3a0(0x236)],ke=Object[_0x33f3a0(0x24d)],Ge=(_0x36770f,_0x38d812,_0x45f783)=>_0x38d812 in _0x36770f?Me(_0x36770f,_0x38d812,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45f783}):_0x36770f[_0x38d812]=_0x45f783,We=(_0x5d40fc,_0x1bb5c9,_0x5a2148,_0x279338)=>{const _0x54a75e=_0x33f3a0;for(var _0x3d6b82=_0x279338>0x1?void 0x0:_0x279338?ke(_0x1bb5c9,_0x5a2148):_0x1bb5c9,_0x205263=_0x5d40fc[_0x54a75e(0x21b)]-0x1,_0x428e3b;_0x205263>=0x0;_0x205263--)(_0x428e3b=_0x5d40fc[_0x205263])&&(_0x3d6b82=_0x428e3b(_0x3d6b82)||_0x3d6b82);return _0x3d6b82;},F=(_0x32706a,_0x4d4ec2)=>(_0x3c8d7c,_0x3af40d)=>_0x4d4ec2(_0x3c8d7c,_0x3af40d,_0x32706a),B=(_0x4d41b7,_0x110354,_0x4ca6b3)=>Ge(_0x4d41b7,typeof _0x110354!=_0x33f3a0(0x213)?_0x110354+'':_0x110354,_0x4ca6b3);const Ye=_0x33f3a0(0x1ea);let b=class extends _0x14031e{constructor(_0x229764=T,_0x10c5e9,_0x1f9e0e){const _0x41a4b8=_0x33f3a0;super(),this[_0x41a4b8(0x1fb)]=_0x229764,this[_0x41a4b8(0x1f9)]=_0x10c5e9,this[_0x41a4b8(0x23a)]=_0x1f9e0e;const {..._0x24f8e6}=_0x2fd27e({},T,this[_0x41a4b8(0x1fb)]);this[_0x41a4b8(0x23a)][_0x41a4b8(0x259)](ye,_0x24f8e6);}[_0x33f3a0(0x1f7)](){const _0x2eeb34=_0x33f3a0;_0x293650(this[_0x2eeb34(0x1f9)],_0x57eb35([[L],[S],[I],[m]],this['_config']['override'])),_0x19de09(this[_0x2eeb34(0x1f9)],[[I]]);}[_0x33f3a0(0x21d)](){_0x19de09(this['_injector'],[[m]]);}};B(b,'type',_0x1afb45[_0x33f3a0(0x1ff)]),B(b,_0x33f3a0(0x24e),Ye),b=We([_0x83a676(_0x5984b3),F(0x1,_0x4770f0(_0x52080b)),F(0x2,_0x404a20)],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 _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};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x168b(_0x307180,_0x42bc01){_0x307180=_0x307180-0x10d;const _0x340ae7=_0x340a();let _0x168bf9=_0x340ae7[_0x307180];return _0x168bf9;}(function(_0x11e1f0,_0x1b3223){const _0x3238fd=_0x168b,_0x5dd90a=_0x11e1f0();while(!![]){try{const _0xaecebe=parseInt(_0x3238fd(0x112))/0x1*(parseInt(_0x3238fd(0x134))/0x2)+parseInt(_0x3238fd(0x12c))/0x3*(-parseInt(_0x3238fd(0x11d))/0x4)+parseInt(_0x3238fd(0x12b))/0x5*(parseInt(_0x3238fd(0x132))/0x6)+-parseInt(_0x3238fd(0x110))/0x7*(parseInt(_0x3238fd(0x127))/0x8)+-parseInt(_0x3238fd(0x115))/0x9*(parseInt(_0x3238fd(0x13b))/0xa)+parseInt(_0x3238fd(0x122))/0xb*(-parseInt(_0x3238fd(0x12e))/0xc)+parseInt(_0x3238fd(0x143))/0xd;if(_0xaecebe===_0x1b3223)break;else _0x5dd90a['push'](_0x5dd90a['shift']());}catch(_0x3044ff){_0x5dd90a['push'](_0x5dd90a['shift']());}}}(_0x340a,0x5fddd),function(_0x88a8d0,_0x326ab9){const _0x34742d=_0x168b;typeof exports==_0x34742d(0x11e)&&typeof module<'u'?_0x326ab9(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==_0x34742d(0x135)&&define[_0x34742d(0x125)]?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x34742d(0x13a),_0x34742d(0x129),_0x34742d(0x128),_0x34742d(0x126)],_0x326ab9):(_0x88a8d0=typeof globalThis<'u'?globalThis:_0x88a8d0||self,_0x326ab9(_0x88a8d0[_0x34742d(0x10f)],_0x88a8d0[_0x34742d(0x113)],_0x88a8d0['UniverSheets'],_0x88a8d0[_0x34742d(0x117)],_0x88a8d0[_0x34742d(0x120)],_0x88a8d0[_0x34742d(0x119)]));}(this,function(_0x3e1ca0,_0x13ba2b,_0x62eff7,_0x2b42e6,_0x4ee024,_0x57c9f3){'use strict';const _0x5ffe05=_0x168b;class _0x591a67 extends _0x4ee024[_0x5ffe05(0x137)]{[_0x5ffe05(0x10d)](_0x35d1a9,_0x41d6a8,_0x511a4b,_0x1b995f,_0xb9ce38){const _0x2781ec=_0x5ffe05,_0x353a1a=_0x35d1a9[_0x2781ec(0x13c)](_0x3e1ca0['LiveShareController']),_0x304fe7=_0x35d1a9[_0x2781ec(0x13c)](_0x13ba2b[_0x2781ec(0x141)]),_0x1b0080=_0x41d6a8[_0x2781ec(0x124)](),_0x1fa7da=_0x41d6a8[_0x2781ec(0x10e)](),_0x2a2e6a=_0x353a1a['getLiveShareCoordinatorSync'](_0x1b0080);(_0x2a2e6a==null?void 0x0:_0x2a2e6a[_0x2781ec(0x114)]())!==_0x3e1ca0[_0x2781ec(0x12d)][_0x2781ec(0x12a)]||(_0x511a4b['getSheetId']()!==_0x1fa7da[_0x2781ec(0x142)]()&&this[_0x2781ec(0x123)][_0x2781ec(0x116)](_0x62eff7['SetWorksheetActiveOperation']['id'],{'unitId':_0x1b0080,'subUnitId':_0x511a4b[_0x2781ec(0x142)]()}),!_0x304fe7[_0x2781ec(0x133)](_0x1b0080))||_0xb9ce38[_0x2781ec(0x131)](_0x2b42e6[_0x2781ec(0x144)]['id'],{'unitId':_0x41d6a8[_0x2781ec(0x124)](),'sheetId':_0x511a4b[_0x2781ec(0x142)](),'sheetViewStartRow':_0x1b995f[_0x2781ec(0x111)],'sheetViewStartColumn':_0x1b995f[_0x2781ec(0x11c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4ee024['FRange']['extend'](_0x591a67);class _0x35c527 extends _0x57c9f3[_0x5ffe05(0x13e)]{[_0x5ffe05(0x138)](){const _0x4c1f5b=_0x5ffe05;var _0x47fd77,_0x4585dd;const _0x4f46fc=this[_0x4c1f5b(0x145)][_0x4c1f5b(0x13c)](_0x3e1ca0[_0x4c1f5b(0x11b)]),_0x53d96b=(_0x47fd77=this['getActiveWorkbook']())==null?void 0x0:_0x47fd77[_0x4c1f5b(0x12f)]();if(!_0x53d96b)throw new Error(_0x4c1f5b(0x139));const _0x447bf2=_0x4f46fc[_0x4c1f5b(0x140)](_0x53d96b);return(_0x4585dd=_0x447bf2==null?void 0x0:_0x447bf2[_0x4c1f5b(0x114)]())!=null?_0x4585dd:_0x3e1ca0[_0x4c1f5b(0x12d)]['IDLE'];}[_0x5ffe05(0x11f)](){const _0x5d1fc7=_0x5ffe05;var _0x3ae46b;const _0x5576e0=this[_0x5d1fc7(0x145)]['get'](_0x3e1ca0['LiveShareController']),_0x173938=(_0x3ae46b=this[_0x5d1fc7(0x11a)]())==null?void 0x0:_0x3ae46b['getId']();if(!_0x173938)throw new Error(_0x5d1fc7(0x139));const _0x5ae7bd=_0x5576e0[_0x5d1fc7(0x140)](_0x173938);if(!_0x5ae7bd)throw new Error(_0x5d1fc7(0x118));_0x5ae7bd[_0x5d1fc7(0x11f)]();}['stopFollowing'](){const _0x33adb3=_0x5ffe05;var _0x128186;const _0x226a45=this[_0x33adb3(0x145)][_0x33adb3(0x13c)](_0x3e1ca0[_0x33adb3(0x11b)]),_0x20a67d=(_0x128186=this[_0x33adb3(0x11a)]())==null?void 0x0:_0x128186[_0x33adb3(0x12f)]();if(!_0x20a67d)throw new Error(_0x33adb3(0x139));const _0x5d34f6=_0x226a45[_0x33adb3(0x140)](_0x20a67d);if(!_0x5d34f6)throw new Error(_0x33adb3(0x118));_0x5d34f6[_0x33adb3(0x13d)]();}['startPresenting'](){const _0x2a6d7c=_0x5ffe05;var _0x14d550;const _0x43b4b4=this[_0x2a6d7c(0x145)]['get'](_0x3e1ca0[_0x2a6d7c(0x11b)]),_0x745584=(_0x14d550=this[_0x2a6d7c(0x11a)]())==null?void 0x0:_0x14d550[_0x2a6d7c(0x12f)]();if(!_0x745584)throw new Error(_0x2a6d7c(0x139));const _0x5b634b=_0x43b4b4[_0x2a6d7c(0x140)](_0x745584);if(!_0x5b634b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5b634b[_0x2a6d7c(0x136)]();}[_0x5ffe05(0x130)](){const _0x15eb06=_0x5ffe05;var _0x267561;const _0x38a8cd=this['_injector'][_0x15eb06(0x13c)](_0x3e1ca0[_0x15eb06(0x11b)]),_0xc3e673=(_0x267561=this[_0x15eb06(0x11a)]())==null?void 0x0:_0x267561['getId']();if(!_0xc3e673)throw new Error(_0x15eb06(0x139));const _0x5ee8b5=_0x38a8cd[_0x15eb06(0x140)](_0xc3e673);if(!_0x5ee8b5)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5ee8b5[_0x15eb06(0x130)]();}}_0x57c9f3['FUniver'][_0x5ffe05(0x121)](_0x35c527);class _0x5c921f extends _0x57c9f3[_0x5ffe05(0x13f)]{get['LiveShareStatusEnum'](){const _0x120da0=_0x5ffe05;return _0x3e1ca0[_0x120da0(0x12d)];}}_0x57c9f3[_0x5ffe05(0x13f)]['extend'](_0x5c921f);}));function _0x340a(){const _0x57adc8=['85585MNuHIC','6uWGVSR','LiveShareStatus','156xLNDWl','getId','stopPresenting','syncExecuteCommand','30kjqaty','getRenderById','38KUuDTl','function','tryStartPresenting','FRange','getLiveShareStatus','No\x20active\x20workbook\x20found.','@univerjs/sheets','8770BcWryb','get','stopFollowing','FUniver','FEnum','getLiveShareCoordinatorSync','IRenderManagerService','getSheetId','14640145Vbtyls','SetScrollOperation','_injector','_initialize','getActiveSheet','UniverProLiveShare','14VtlPlW','startRow','4182MbkrxT','UniverEngineRender','getStatus','1827iVVyfm','executeCommand','UniverSheetsUi','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverCoreFacade','getActiveWorkbook','LiveShareController','startColumn','1012388tKjubS','object','startFollowing','UniverSheetsFacade','extend','9966uuRuFJ','_commandService','getUnitId','amd','@univerjs/core/facade','810144xfIdBh','@univerjs/sheets/facade','@univerjs/sheets-ui','PRESENTING'];_0x340a=function(){return _0x57adc8;};return _0x340a();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4f5f9e,_0x41caf6){const _0x4dd168=_0x3b74,_0x2ef464=_0x4f5f9e();while(!![]){try{const _0x162b7d=parseInt(_0x4dd168(0x18b))/0x1+parseInt(_0x4dd168(0x1cf))/0x2+parseInt(_0x4dd168(0x236))/0x3+-parseInt(_0x4dd168(0x1cd))/0x4+-parseInt(_0x4dd168(0x1a4))/0x5+parseInt(_0x4dd168(0x23f))/0x6+-parseInt(_0x4dd168(0x21d))/0x7;if(_0x162b7d===_0x41caf6)break;else _0x2ef464['push'](_0x2ef464['shift']());}catch(_0x1a58ef){_0x2ef464['push'](_0x2ef464['shift']());}}}(_0x34c6,0x62d21),function(_0x35d8b7,_0x56ac8b){const _0x182ac3=_0x3b74;typeof exports==_0x182ac3(0x1ac)&&typeof module<'u'?_0x56ac8b(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==_0x182ac3(0x24c)&&define[_0x182ac3(0x1b3)]?define([_0x182ac3(0x1d5),'@univerjs/core',_0x182ac3(0x22a),_0x182ac3(0x1c6),'@univerjs/design',_0x182ac3(0x1f8),_0x182ac3(0x25f),_0x182ac3(0x23a),_0x182ac3(0x24f),_0x182ac3(0x195),_0x182ac3(0x21f),_0x182ac3(0x1b2)],_0x56ac8b):(_0x35d8b7=typeof globalThis<'u'?globalThis:_0x35d8b7||self,_0x56ac8b(_0x35d8b7[_0x182ac3(0x18c)]={},_0x35d8b7[_0x182ac3(0x211)],_0x35d8b7[_0x182ac3(0x250)],_0x35d8b7[_0x182ac3(0x218)],_0x35d8b7[_0x182ac3(0x192)],_0x35d8b7[_0x182ac3(0x218)],_0x35d8b7['UniverProCollaboration'],_0x35d8b7[_0x182ac3(0x238)],_0x35d8b7[_0x182ac3(0x1b7)],_0x35d8b7['rxjs'],_0x35d8b7[_0x182ac3(0x195)]['operators'],_0x35d8b7[_0x182ac3(0x1e3)]));}(this,function(_0x2b074c,_0xf7e530,_0x2e0b21,_0x535191,_0x5c0ad8,_0x35919f,_0x239d0a,_0x53c83b,_0x40af1c,_0x5b9003,_0x2bb546,_0x40b946){'use strict';const _0x540c4d=_0x3b74;var _0x22e27d=Object['defineProperty'],_0x5a8659=(_0x2aa5fa,_0x3ce4cd,_0xf3f509)=>_0x3ce4cd in _0x2aa5fa?_0x22e27d(_0x2aa5fa,_0x3ce4cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3f509}):_0x2aa5fa[_0x3ce4cd]=_0xf3f509,_0x566ec3=(_0x338157,_0x4e1428,_0x511224)=>_0x5a8659(_0x338157,typeof _0x4e1428!=_0x540c4d(0x17d)?_0x4e1428+'':_0x4e1428,_0x511224);function _0x18be59({ref:_0x134fc0,..._0x34ca32}){const _0x3e75b2=_0x540c4d,{icon:_0x192185,id:_0x2bf6fd,className:_0x2fcd81,extend:_0x47e195,..._0xae5fda}=_0x34ca32,_0x2d736b=(_0x3e75b2(0x239)+_0x2bf6fd+'\x20'+(_0x2fcd81||''))[_0x3e75b2(0x204)](),_0x4773f2=_0x35919f[_0x3e75b2(0x232)]('_'+_0x3194f1());return _0x3c7861(_0x192185,''+_0x2bf6fd,{'defIds':_0x192185['defIds'],'idSuffix':_0x4773f2['current']},{'ref':_0x134fc0,'className':_0x2d736b,..._0xae5fda},_0x47e195);}function _0x3c7861(_0x3677e0,_0x1c4fb4,_0x3d8775,_0x38f180,_0x111481){const _0x3427d2=_0x540c4d;return _0x35919f[_0x3427d2(0x1c7)](_0x3677e0['tag'],{'key':_0x1c4fb4,..._0x892fd3(_0x3677e0,_0x3d8775,_0x111481),..._0x38f180},(_0x2529d8(_0x3677e0,_0x3d8775)[_0x3427d2(0x1d6)]||[])['map']((_0x2d869a,_0x184b04)=>_0x3c7861(_0x2d869a,_0x1c4fb4+'-'+_0x3677e0[_0x3427d2(0x21a)]+'-'+_0x184b04,_0x3d8775,void 0x0,_0x111481)));}function _0x892fd3(_0x20db63,_0x36bc5c,_0x38402b){const _0x256295=_0x540c4d,_0x1b8e46={..._0x20db63[_0x256295(0x21c)]};_0x38402b!=null&&_0x38402b['colorChannel1']&&_0x1b8e46[_0x256295(0x248)]===_0x256295(0x185)&&(_0x1b8e46[_0x256295(0x248)]=_0x38402b[_0x256295(0x185)]),_0x20db63[_0x256295(0x21a)]===_0x256295(0x1c4)&&_0x1b8e46['id']&&(_0x1b8e46['id']=_0x1b8e46['id']+_0x36bc5c[_0x256295(0x214)]),Object[_0x256295(0x258)](_0x1b8e46)[_0x256295(0x1f1)](([_0x374e2c,_0x526aa2])=>{const _0x1a4525=_0x256295;_0x374e2c===_0x1a4525(0x1c4)&&typeof _0x526aa2==_0x1a4525(0x201)&&(_0x1b8e46[_0x374e2c]=_0x526aa2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x36bc5c[_0x1a4525(0x214)]+')'));});const {defIds:_0x18fec3}=_0x36bc5c;return!_0x18fec3||_0x18fec3[_0x256295(0x1cb)]===0x0||(_0x20db63[_0x256295(0x21a)]===_0x256295(0x230)&&_0x1b8e46[_0x256295(0x19f)]&&(_0x1b8e46[_0x256295(0x19f)]=_0x1b8e46[_0x256295(0x19f)]+_0x36bc5c[_0x256295(0x214)]),Object['entries'](_0x1b8e46)[_0x256295(0x1f1)](([_0x529caf,_0x1b0f85])=>{const _0xb2e0b6=_0x256295;typeof _0x1b0f85==_0xb2e0b6(0x201)&&(_0x1b8e46[_0x529caf]=_0x1b0f85[_0xb2e0b6(0x20a)](/url\(#(.*)\)/,_0xb2e0b6(0x23d)+_0x36bc5c['idSuffix']+')'));})),_0x1b8e46;}function _0x2529d8(_0x1c9b08,_0x996b1e){const _0x1d504d=_0x540c4d;var _0x316b11;const {defIds:_0x54b301}=_0x996b1e;return!_0x54b301||_0x54b301['length']===0x0?_0x1c9b08:_0x1c9b08[_0x1d504d(0x21a)]===_0x1d504d(0x1a0)&&((_0x316b11=_0x1c9b08[_0x1d504d(0x1d6)])!=null&&_0x316b11[_0x1d504d(0x1cb)])?{..._0x1c9b08,'children':_0x1c9b08[_0x1d504d(0x1d6)][_0x1d504d(0x25a)](_0x3904a1=>typeof _0x3904a1[_0x1d504d(0x21c)]['id']==_0x1d504d(0x201)&&_0x54b301&&_0x54b301[_0x1d504d(0x1f4)](_0x3904a1[_0x1d504d(0x21c)]['id'])?{..._0x3904a1,'attrs':{..._0x3904a1[_0x1d504d(0x21c)],'id':_0x3904a1[_0x1d504d(0x21c)]['id']+_0x996b1e[_0x1d504d(0x214)]}}:_0x3904a1)}:_0x1c9b08;}function _0x3194f1(){const _0x2ec129=_0x540c4d;return Math[_0x2ec129(0x25e)]()[_0x2ec129(0x180)](0x24)[_0x2ec129(0x1be)](0x2,0x8);}_0x18be59['displayName']=_0x540c4d(0x1c9);const _0x160485={'tag':'svg','attrs':{'xmlns':_0x540c4d(0x188),'fill':'none','viewBox':_0x540c4d(0x22b),'width':'1em','height':_0x540c4d(0x231)},'children':[{'tag':_0x540c4d(0x183),'attrs':{'fill':_0x540c4d(0x233),'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':_0x540c4d(0x183),'attrs':{'fill':_0x540c4d(0x233),'d':_0x540c4d(0x1e0),'fillRule':'evenodd','clipRule':_0x540c4d(0x1f7)}}]},_0x1a3f78=_0x35919f['forwardRef'](function(_0x57944c,_0x2f9fde){const _0x160f62=_0x540c4d;return _0x35919f[_0x160f62(0x1c7)](_0x18be59,Object[_0x160f62(0x182)]({},_0x57944c,{'id':'live-share-icon','ref':_0x2f9fde,'icon':_0x160485}));});_0x1a3f78['displayName']='LiveShareIcon';class _0x26f884 extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(){const _0x2f6a4f=_0x540c4d;super(...arguments),_0x566ec3(this,_0x2f6a4f(0x259),new Set()),_0x566ec3(this,_0x2f6a4f(0x181),new Set());}[_0x540c4d(0x224)](_0x304008){const _0x4d96fe=_0x540c4d;return this[_0x4d96fe(0x259)][_0x4d96fe(0x23c)](_0x304008),_0xf7e530['toDisposable'](()=>this[_0x4d96fe(0x259)][_0x4d96fe(0x19c)](_0x304008));}['registerInitialStateReporter'](_0x4ee020){const _0x572b04=_0x540c4d;return this['_reporters'][_0x572b04(0x23c)](_0x4ee020),_0xf7e530[_0x572b04(0x22f)](()=>this['_reporters']['delete'](_0x4ee020));}[_0x540c4d(0x20c)](_0x5005ae){const _0x42462f=_0x540c4d;return this[_0x42462f(0x259)]['has'](_0x5005ae);}[_0x540c4d(0x1e5)](_0x4685e0){const _0x904beb=_0x540c4d;return Array['from'](this[_0x904beb(0x181)])[_0x904beb(0x25a)](_0x17d5be=>_0x17d5be(_0x4685e0));}}var _0x5f4a01=Object[_0x540c4d(0x221)],_0x4a3f82=(_0x46d70b,_0x2e1fa8,_0x4e80b2,_0x102f08)=>{const _0x4329f5=_0x540c4d;for(var _0x50bad5=_0x102f08>0x1?void 0x0:_0x102f08?_0x5f4a01(_0x2e1fa8,_0x4e80b2):_0x2e1fa8,_0x588b16=_0x46d70b[_0x4329f5(0x1cb)]-0x1,_0x2eeb50;_0x588b16>=0x0;_0x588b16--)(_0x2eeb50=_0x46d70b[_0x588b16])&&(_0x50bad5=_0x2eeb50(_0x50bad5)||_0x50bad5);return _0x50bad5;},_0x193f45=(_0x48483a,_0x3e4159)=>(_0x3a5979,_0x556c26)=>_0x3e4159(_0x3a5979,_0x556c26,_0x48483a);_0x2b074c[_0x540c4d(0x200)]=class extends _0xf7e530[_0x540c4d(0x205)]{constructor(_0x382152,_0x1788da,_0x46968e){const _0x38298f=_0x540c4d;super(),_0x566ec3(this,_0x38298f(0x20e),new Map()),(this[_0x38298f(0x1c8)]=_0x382152,this[_0x38298f(0x251)]=_0x1788da,this['_collabSessionService']=_0x46968e,this[_0x38298f(0x1e9)]());}async[_0x540c4d(0x186)](_0x1e759e){const _0x1b249b=_0x540c4d;return this[_0x1b249b(0x20e)][_0x1b249b(0x18d)](_0x1e759e)||await this[_0x1b249b(0x252)](_0x1e759e),this[_0x1b249b(0x20e)][_0x1b249b(0x1fd)](_0x1e759e);}[_0x540c4d(0x1b5)](_0x93fb91){const _0x908408=_0x540c4d;var _0x308cf4;return(_0x308cf4=this[_0x908408(0x20e)][_0x908408(0x1fd)](_0x93fb91))!=null?_0x308cf4:null;}['_init'](){const _0x3d7808=_0x540c4d;this['_univerInstanceService'][_0x3d7808(0x184)](_0xf7e530['UniverInstanceType'][_0x3d7808(0x1a1)])['pipe'](_0x2bb546[_0x3d7808(0x1f0)](this[_0x3d7808(0x1c2)]))[_0x3d7808(0x187)](async _0x1f03b7=>{const _0x471231=_0x3d7808,_0x4c2a9a=_0x1f03b7[_0x471231(0x1fe)]();this[_0x471231(0x20e)]['has'](_0x4c2a9a)||this['_startLiveShareCoordinator'](_0x4c2a9a);}),this[_0x3d7808(0x1c8)]['getTypeOfUnitDisposed$'](_0xf7e530['UniverInstanceType']['UNIVER_SHEET'])[_0x3d7808(0x1aa)](_0x2bb546[_0x3d7808(0x1f0)](this[_0x3d7808(0x1c2)]))['subscribe'](_0x436cef=>{const _0x5204e8=_0x3d7808,_0x2d02af=_0x436cef['getUnitId'](),_0x269d1c=this[_0x5204e8(0x20e)][_0x5204e8(0x1fd)](_0x2d02af);_0x269d1c==null||_0x269d1c[_0x5204e8(0x19e)]();});}async['_startLiveShareCoordinator'](_0x411efe){const _0x48d448=_0x540c4d,_0x2dc49a=await this['_collabSessionService'][_0x48d448(0x1b9)](_0x411efe),_0x52a69b=this[_0x48d448(0x251)][_0x48d448(0x1dc)](_0x2b074c[_0x48d448(0x213)],_0x411efe,_0x2dc49a);return _0x52a69b[_0x48d448(0x1d7)](),this[_0x48d448(0x20e)][_0x48d448(0x1a9)](_0x411efe,_0x52a69b),_0x52a69b;}},_0x2b074c[_0x540c4d(0x200)]=_0x4a3f82([_0x193f45(0x0,_0xf7e530[_0x540c4d(0x24b)]),_0x193f45(0x1,_0xf7e530['Inject'](_0xf7e530[_0x540c4d(0x23b)])),_0x193f45(0x2,_0xf7e530['Inject'](_0x53c83b[_0x540c4d(0x1a2)]))],_0x2b074c[_0x540c4d(0x200)]);var _0x12cd74=(_0x33afb9=>(_0x33afb9[_0x540c4d(0x1f2)]=_0x540c4d(0x1e8),_0x33afb9['IDLE']=_0x540c4d(0x1ef),_0x33afb9[_0x540c4d(0x20f)]=_0x540c4d(0x17f),_0x33afb9['NOT_FOLLOWING']=_0x540c4d(0x1bc),_0x33afb9[_0x540c4d(0x203)]=_0x540c4d(0x1eb),_0x33afb9))(_0x12cd74||{});const _0x128531=_0x540c4d(0x209),_0x29eb16=0xc8;_0x2b074c[_0x540c4d(0x213)]=class extends _0xf7e530[_0x540c4d(0x205)]{constructor(_0x12e2b8,_0x254f21,_0x2ab6ed,_0x538488,_0x3a2965){const _0x28a53b=_0x540c4d;super(),_0x566ec3(this,_0x28a53b(0x220),new _0x5b9003['BehaviorSubject'](_0x28a53b(0x1ef))),_0x566ec3(this,_0x28a53b(0x242),this[_0x28a53b(0x220)][_0x28a53b(0x1ed)]()),_0x566ec3(this,_0x28a53b(0x1e9),!0x1),_0x566ec3(this,_0x28a53b(0x194),null),_0x566ec3(this,_0x28a53b(0x243),null),(this[_0x28a53b(0x17e)]=_0x12e2b8,this[_0x28a53b(0x215)]=_0x254f21,this[_0x28a53b(0x1cc)]=_0x2ab6ed,this[_0x28a53b(0x208)]=_0x538488,this['_commandService']=_0x3a2965);}get[_0x540c4d(0x1c3)](){const _0x2cc2e1=_0x540c4d;return this[_0x2cc2e1(0x220)][_0x2cc2e1(0x1da)]();}[_0x540c4d(0x19e)](){const _0x27c210=_0x540c4d;var _0x3f2c54;(_0x3f2c54=this['_commandDisposable'])==null||_0x3f2c54['dispose'](),this[_0x27c210(0x220)][_0x27c210(0x1bf)]('idle'),this['_status$'][_0x27c210(0x217)]();}[_0x540c4d(0x1e4)](){const _0x14366d=_0x540c4d;return this[_0x14366d(0x1c3)];}['init'](){const _0x1adcc5=_0x540c4d;this[_0x1adcc5(0x1e9)]||(this[_0x1adcc5(0x1e9)]=!0x0,this['_collabSession'][_0x1adcc5(0x241)]['pipe'](_0x2bb546['takeUntil'](this[_0x1adcc5(0x1c2)]))[_0x1adcc5(0x187)](_0x207a8e=>{const _0x21e7b7=_0x1adcc5;switch(_0x207a8e){case _0x53c83b[_0x21e7b7(0x226)][_0x21e7b7(0x1f2)]:this[_0x21e7b7(0x189)]();break;case _0x53c83b[_0x21e7b7(0x226)]['ONLINE']:this[_0x21e7b7(0x24e)]();break;}}),this[_0x1adcc5(0x215)][_0x1adcc5(0x1bd)][_0x1adcc5(0x1aa)](_0x2bb546[_0x1adcc5(0x1f0)](this[_0x1adcc5(0x1c2)]))[_0x1adcc5(0x187)](_0x128928=>{const _0x40b7d2=_0x1adcc5,{eventID:_0x195f4c}=_0x128928;switch(_0x195f4c){case _0x239d0a[_0x40b7d2(0x1d1)]['LIVESHARE_NEW_HOST']:this[_0x40b7d2(0x1ca)](_0x128928);break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x19d)]:this[_0x40b7d2(0x1ec)](_0x128928);break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x199)]:this[_0x40b7d2(0x25d)]();break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x237)]:this['_handleNewChangeSets'](_0x128928);break;}}));}[_0x540c4d(0x216)](){const _0x21deb1=_0x540c4d;this[_0x21deb1(0x215)][_0x21deb1(0x249)]({'eventID':_0x239d0a['CollaborationEvent'][_0x21deb1(0x18f)],'data':{'unitID':this[_0x21deb1(0x17e)],'userID':this[_0x21deb1(0x215)][_0x21deb1(0x25b)]()}},this['_unitID']);}['stopPresenting'](){const _0x4a8a81=_0x540c4d;this[_0x4a8a81(0x1c3)]===_0x4a8a81(0x1eb)&&(this['_status$'][_0x4a8a81(0x1bf)](_0x4a8a81(0x1ef)),this[_0x4a8a81(0x215)][_0x4a8a81(0x249)]({'eventID':_0x239d0a[_0x4a8a81(0x1d1)][_0x4a8a81(0x199)],'data':{'unitID':this[_0x4a8a81(0x17e)]}},this[_0x4a8a81(0x17e)]));}['startFollowing'](){const _0x3a7928=_0x540c4d;this[_0x3a7928(0x1c3)]===_0x3a7928(0x1bc)&&(this[_0x3a7928(0x220)]['next'](_0x3a7928(0x17f)),this[_0x3a7928(0x219)]());}[_0x540c4d(0x253)](){const _0x5ceb6f=_0x540c4d;this['_status']===_0x5ceb6f(0x17f)&&this['_stopFollowing']();}[_0x540c4d(0x1ca)](_0xcf48af){const _0x323c49=_0x540c4d,{presenter:_0x5b3861}=_0xcf48af[_0x323c49(0x24d)],_0x579574=this['_collabSession'][_0x323c49(0x25b)]();this[_0x323c49(0x243)]=_0x5b3861,_0x5b3861===_0x579574?(this[_0x323c49(0x197)](),this[_0x323c49(0x1a5)]()):this[_0x323c49(0x1c3)]!==_0x323c49(0x1bc)&&(this['_stopPresenting'](),this[_0x323c49(0x219)]());}[_0x540c4d(0x1c0)](){const _0x19e2ae=_0x540c4d,_0x58abce={'eventID':_0x239d0a[_0x19e2ae(0x1d1)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x19e2ae(0x249)](_0x58abce,this[_0x19e2ae(0x17e)]);}[_0x540c4d(0x25d)](){const _0x3bbe9d=_0x540c4d;this['_presenter']=null,this['_status']!==_0x3bbe9d(0x1eb)&&this[_0x3bbe9d(0x18a)]();}[_0x540c4d(0x1a7)](_0x43a57e){const _0x1f392c=_0x540c4d;if(this[_0x1f392c(0x1c3)]==='following'&&this[_0x1f392c(0x243)]===_0x43a57e[_0x1f392c(0x24d)][_0x1f392c(0x247)]){const _0x181961=_0x239d0a['parseProtocolChangeset'](_0x43a57e[_0x1f392c(0x24d)])[_0x1f392c(0x179)][_0x1f392c(0x207)]()[_0x1f392c(0x25c)](_0x5f51ad=>_0x5f51ad['id']===_0x40af1c[_0x1f392c(0x17c)]['id']);if(_0x181961){const _0x3101be=_0x181961[_0x1f392c(0x191)][_0x1f392c(0x22e)],_0x423b75=_0x181961[_0x1f392c(0x191)]['sheet']['id'];setTimeout(()=>{const _0x51cca0=_0x1f392c;this[_0x51cca0(0x229)][_0x51cca0(0x1f6)](_0x40af1c[_0x51cca0(0x228)]['id'],{'unitId':_0x3101be,'subUnitId':_0x423b75},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1bf3e0=_0x540c4d;this[_0x1bf3e0(0x220)][_0x1bf3e0(0x1bf)](_0x1bf3e0(0x1eb));const _0x327dbb=new Map(),_0x201e14=this[_0x1bf3e0(0x194)]=new _0xf7e530[(_0x1bf3e0(0x1df))]();_0x201e14[_0x1bf3e0(0x23c)](_0xf7e530[_0x1bf3e0(0x22f)](()=>{const _0x2dc779=_0x1bf3e0;_0x327dbb['forEach'](_0x4f1eaa=>_0x4f1eaa['complete']()),_0x327dbb[_0x2dc779(0x1ff)]();})),_0x201e14[_0x1bf3e0(0x23c)](this[_0x1bf3e0(0x229)][_0x1bf3e0(0x1b4)](_0x461806=>{const _0x36b7d4=_0x1bf3e0;var _0x1bb7df;if(_0x461806[_0x36b7d4(0x24a)]!==_0xf7e530[_0x36b7d4(0x17b)][_0x36b7d4(0x1d9)]||!this[_0x36b7d4(0x208)][_0x36b7d4(0x20c)](_0x461806['id']))return;const {id:_0x311a21}=_0x461806;let _0x421296;_0x327dbb[_0x36b7d4(0x18d)](_0x311a21)?_0x421296=_0x327dbb[_0x36b7d4(0x1fd)](_0x311a21):(_0x421296=new _0x5b9003[(_0x36b7d4(0x1ba))](),_0x327dbb[_0x36b7d4(0x1a9)](_0x311a21,_0x421296),_0x421296['pipe'](_0x2bb546[_0x36b7d4(0x23e)]((_0x1bb7df=this[_0x36b7d4(0x1cc)]['getConfig'](_0x128531))!=null?_0x1bb7df:_0x29eb16,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x385e15=>{const _0x4279f2=_0x36b7d4;this[_0x4279f2(0x215)][_0x4279f2(0x249)]({'eventID':_0x239d0a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x385e15['id']]:{'id':_0x385e15['id'],'params':JSON[_0x4279f2(0x1c5)](_0x385e15[_0x4279f2(0x191)])}}}},this[_0x4279f2(0x17e)]);})),_0x421296[_0x36b7d4(0x1bf)](_0x461806);})),this[_0x1bf3e0(0x208)][_0x1bf3e0(0x1e5)](this[_0x1bf3e0(0x17e)])['forEach'](_0x4b4184=>this[_0x1bf3e0(0x215)]['send']({'eventID':_0x239d0a[_0x1bf3e0(0x1d1)][_0x1bf3e0(0x19d)],'data':{'unitID':this[_0x1bf3e0(0x17e)],'operations':{[_0x4b4184['id']]:{'id':_0x4b4184['id'],'params':JSON['stringify'](_0x4b4184[_0x1bf3e0(0x191)])}}}},this[_0x1bf3e0(0x17e)]));}[_0x540c4d(0x1fa)](){const _0x52dee0=_0x540c4d;var _0x4f2507;this[_0x52dee0(0x220)][_0x52dee0(0x1bf)](_0x52dee0(0x1ef)),(_0x4f2507=this[_0x52dee0(0x194)])==null||_0x4f2507['dispose'](),this[_0x52dee0(0x194)]=null;}['_startFollowing'](){const _0x345d32=_0x540c4d;var _0x396228;(_0x396228=this[_0x345d32(0x194)])==null||_0x396228[_0x345d32(0x19e)](),this['_status$'][_0x345d32(0x1bf)](_0x345d32(0x17f));}[_0x540c4d(0x18a)](){const _0x446ca6=_0x540c4d;var _0x945edc;this['_status$']['next'](_0x446ca6(0x1ef)),(_0x945edc=this['_commandDisposable'])==null||_0x945edc[_0x446ca6(0x19e)](),this[_0x446ca6(0x194)]=null;}[_0x540c4d(0x197)](){const _0x23d5fb=_0x540c4d;var _0x42f7c1;this[_0x23d5fb(0x220)][_0x23d5fb(0x1bf)]('not-following'),(_0x42f7c1=this['_commandDisposable'])==null||_0x42f7c1['dispose']();}[_0x540c4d(0x1ec)](_0x2a50a6){const _0x3f6d23=_0x540c4d;if([_0x3f6d23(0x1eb),_0x3f6d23(0x1bc),_0x3f6d23(0x1e8)][_0x3f6d23(0x1f4)](this[_0x3f6d23(0x1c3)])||!_0x2a50a6[_0x3f6d23(0x24d)]['presenter']||_0x2a50a6[_0x3f6d23(0x24d)][_0x3f6d23(0x240)]===this[_0x3f6d23(0x215)][_0x3f6d23(0x25b)]())return;this[_0x3f6d23(0x1c3)]===_0x3f6d23(0x1ef)&&this[_0x3f6d23(0x219)]();const _0x24dc0f=_0x2a50a6[_0x3f6d23(0x24d)][_0x3f6d23(0x1e6)];Object['values'](_0x24dc0f)['forEach'](_0x54188a=>{const _0x3e9d11=_0x3f6d23;this[_0x3e9d11(0x229)][_0x3e9d11(0x1f6)](_0x54188a['id'],_0x54188a[_0x3e9d11(0x191)]?JSON[_0x3e9d11(0x1bb)](_0x54188a[_0x3e9d11(0x191)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x514442=_0x540c4d;var _0x4001f0;this[_0x514442(0x220)]['next'](_0x514442(0x1e8)),(_0x4001f0=this[_0x514442(0x194)])==null||_0x4001f0['dispose']();}['_handleOnline'](){const _0x111fde=_0x540c4d;this[_0x111fde(0x220)][_0x111fde(0x1bf)](_0x111fde(0x1ef)),this[_0x111fde(0x1c0)]();}},_0x2b074c[_0x540c4d(0x213)]=_0x4a3f82([_0x193f45(0x2,_0xf7e530[_0x540c4d(0x198)]),_0x193f45(0x3,_0xf7e530[_0x540c4d(0x1fc)](_0x26f884)),_0x193f45(0x4,_0xf7e530[_0x540c4d(0x256)])],_0x2b074c['LiveShareCoordinator']);function _0x22f5cf(){const _0x5b6449=_0x540c4d,_0x3bb70f=_0x2e0b21['useDependency'](_0x2b074c[_0x5b6449(0x200)]),_0x9f80f6=_0x2e0b21[_0x5b6449(0x18e)](_0xf7e530[_0x5b6449(0x24b)]),_0x4ab8a8=_0x2e0b21[_0x5b6449(0x246)](()=>_0x9f80f6[_0x5b6449(0x1dd)](_0xf7e530[_0x5b6449(0x255)][_0x5b6449(0x1a1)]),void 0x0,!0x1,[]),[_0x4d885b,_0x1b7ed8]=_0x35919f[_0x5b6449(0x1f5)](null),[_0x5f4149,_0x37104b]=_0x35919f[_0x5b6449(0x1f5)](_0x12cd74[_0x5b6449(0x196)]),_0x4a0191=_0x35919f[_0x5b6449(0x232)](null);return _0x35919f['useEffect'](()=>(_0x4ab8a8&&_0x3bb70f[_0x5b6449(0x186)](_0x4ab8a8[_0x5b6449(0x1fe)]())[_0x5b6449(0x22c)](_0x1a7569=>{const _0x3aa893=_0x5b6449;_0x1b7ed8(_0x1a7569),_0x4a0191['current']=_0x1a7569[_0x3aa893(0x242)]['subscribe'](_0x5cef14=>{_0x37104b(_0x5cef14);});}),()=>{const _0x2169b2=_0x5b6449;var _0x403207;(_0x403207=_0x4a0191['current'])==null||_0x403207[_0x2169b2(0x22d)](),_0x4a0191[_0x2169b2(0x1ce)]=null;}),[_0x4ab8a8,_0x3bb70f]),_0x4d885b?_0x535191['jsx'](_0x5c0ad8['Dropdown'],{'align':_0x5b6449(0x20d),'disabled':_0x5f4149===_0x12cd74['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x535191[_0x5b6449(0x245)](_0xfa31d6,{'status':_0x5f4149,'coordinator':_0x4d885b}),'children':_0x535191[_0x5b6449(0x245)]('button',{'className':_0x5c0ad8[_0x5b6449(0x1d8)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5f4149===_0x12cd74[_0x5b6449(0x1f2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f4149!==_0x12cd74['OFFLINE']}),'type':_0x5b6449(0x21e),'children':_0x535191['jsx'](_0x1a3f78,{'className':_0x5b6449(0x1e2)})})}):null;}function _0xfa31d6(_0x14b3d1){const _0xe26a74=_0x540c4d,{status:_0x2b6b58,coordinator:_0x1f02f4}=_0x14b3d1;switch(_0x2b6b58){case _0x12cd74['IDLE']:return _0x535191[_0xe26a74(0x245)](_0x460e5f,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x20f)]:return _0x535191['jsx'](_0xebc7ad,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x254)]:return _0x535191['jsx'](_0x841f29,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x1f2)]:return _0x535191[_0xe26a74(0x245)](_0x1ee286,{});case _0x12cd74[_0xe26a74(0x203)]:return _0x535191[_0xe26a74(0x245)](_0x2b080f,{'coordinator':_0x1f02f4});default:return null;}}function _0x460e5f(_0x5c8e49){const _0x218a48=_0x540c4d,{coordinator:_0x12e583}=_0x5c8e49;return _0x535191[_0x218a48(0x1d0)](_0x535191[_0x218a48(0x1ae)],{'children':[_0x535191[_0x218a48(0x245)](_0x218a48(0x190),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x218a48(0x227)}),_0x535191[_0x218a48(0x245)](_0x5c0ad8[_0x218a48(0x1ea)],{'onClick':()=>_0x12e583[_0x218a48(0x216)](),'children':'Start'})]});}function _0xebc7ad(_0x3a528b){const _0x2cf738=_0x540c4d,{coordinator:_0x33abc6}=_0x3a528b;return _0x535191[_0x2cf738(0x1d0)](_0x535191[_0x2cf738(0x1ae)],{'children':[_0x535191[_0x2cf738(0x245)]('div',{'className':_0x2cf738(0x1c1),'children':_0x2cf738(0x1d3)}),_0x535191['jsx'](_0x5c0ad8['Button'],{'onClick':()=>_0x33abc6['stopFollowing'](),'children':_0x2cf738(0x257)})]});}function _0x841f29(_0x980149){const _0x4c1118=_0x540c4d,{coordinator:_0x1210b4}=_0x980149;return _0x535191[_0x4c1118(0x1d0)](_0x535191[_0x4c1118(0x1ae)],{'children':[_0x535191[_0x4c1118(0x245)](_0x4c1118(0x190),{'className':_0x4c1118(0x1c1),'children':_0x4c1118(0x1a6)}),_0x535191[_0x4c1118(0x245)](_0x5c0ad8[_0x4c1118(0x1ea)],{'variant':_0x4c1118(0x19b),'onClick':()=>_0x1210b4[_0x4c1118(0x1ab)](),'children':_0x4c1118(0x1e1)})]});}function _0x2b080f(_0x4e12a7){const _0x3f28ec=_0x540c4d,{coordinator:_0x531a8c}=_0x4e12a7;return _0x535191[_0x3f28ec(0x1d0)](_0x535191[_0x3f28ec(0x1ae)],{'children':[_0x535191[_0x3f28ec(0x245)](_0x3f28ec(0x190),{'className':_0x3f28ec(0x1c1),'children':_0x3f28ec(0x1f3)}),_0x535191[_0x3f28ec(0x245)](_0x5c0ad8[_0x3f28ec(0x1ea)],{'variant':_0x3f28ec(0x210),'onClick':()=>_0x531a8c[_0x3f28ec(0x212)](),'children':_0x3f28ec(0x223)})]});}function _0x1ee286(){const _0x496cc6=_0x540c4d;return _0x535191[_0x496cc6(0x245)](_0x535191['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x3a3904=Object[_0x540c4d(0x221)],_0x559f44=(_0x443e9a,_0x508251,_0x5c51b5,_0xb9bda1)=>{const _0x68ccd8=_0x540c4d;for(var _0x1072a7=_0xb9bda1>0x1?void 0x0:_0xb9bda1?_0x3a3904(_0x508251,_0x5c51b5):_0x508251,_0x9cfa4f=_0x443e9a[_0x68ccd8(0x1cb)]-0x1,_0x1c995f;_0x9cfa4f>=0x0;_0x9cfa4f--)(_0x1c995f=_0x443e9a[_0x9cfa4f])&&(_0x1072a7=_0x1c995f(_0x1072a7)||_0x1072a7);return _0x1072a7;},_0x28aa96=(_0x3e888e,_0x26cd0a)=>(_0x49814f,_0x18290a)=>_0x26cd0a(_0x49814f,_0x18290a,_0x3e888e);_0x2b074c['DesktopLiveShareController']=class extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(_0x45905d,_0x5f47c0){const _0x3cacda=_0x540c4d;super(),this[_0x3cacda(0x251)]=_0x45905d,this[_0x3cacda(0x202)]=_0x5f47c0,this[_0x3cacda(0x244)]();}[_0x540c4d(0x244)](){const _0x3a4b8e=_0x540c4d;this[_0x3a4b8e(0x1a8)](this[_0x3a4b8e(0x202)][_0x3a4b8e(0x1ee)](_0x2e0b21[_0x3a4b8e(0x1e7)]['HEADER_MENU'],()=>_0x2e0b21[_0x3a4b8e(0x1db)](_0x22f5cf,this[_0x3a4b8e(0x251)])));}},_0x2b074c['DesktopLiveShareController']=_0x559f44([_0x28aa96(0x0,_0xf7e530[_0x540c4d(0x1fc)](_0xf7e530[_0x540c4d(0x23b)])),_0x28aa96(0x1,_0x2e0b21[_0x540c4d(0x222)])],_0x2b074c[_0x540c4d(0x1b6)]);const _0x9753b=_0x540c4d(0x235),_0x1b4c71={};var _0x2ae4f3=Object['getOwnPropertyDescriptor'],_0x154f7b=(_0x12703a,_0x395407,_0x3dce37,_0x1dc5bc)=>{const _0x2fcf28=_0x540c4d;for(var _0x466c77=_0x1dc5bc>0x1?void 0x0:_0x1dc5bc?_0x2ae4f3(_0x395407,_0x3dce37):_0x395407,_0x5cfe7a=_0x12703a[_0x2fcf28(0x1cb)]-0x1,_0x2e8586;_0x5cfe7a>=0x0;_0x5cfe7a--)(_0x2e8586=_0x12703a[_0x5cfe7a])&&(_0x466c77=_0x2e8586(_0x466c77)||_0x466c77);return _0x466c77;},_0x2ade5b=(_0x4fbc05,_0x146c8f)=>(_0x4171cd,_0x57a9fb)=>_0x146c8f(_0x4171cd,_0x57a9fb,_0x4fbc05);let _0x4c9acf=class extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(_0x39e0b2){const _0x511f05=_0x540c4d;super(),this['_liveShareService']=_0x39e0b2,this[_0x511f05(0x1e9)]();}[_0x540c4d(0x1e9)](){const _0x33b509=_0x540c4d;[_0x40b946[_0x33b509(0x1f9)]['id'],_0x40b946['SetScrollOperation']['id'],_0x40af1c[_0x33b509(0x228)]['id']][_0x33b509(0x1f1)](_0x2a5899=>{const _0x3e291e=_0x33b509;this[_0x3e291e(0x1a8)](this['_liveShareService'][_0x3e291e(0x224)](_0x2a5899));});}};_0x4c9acf=_0x154f7b([_0x2ade5b(0x0,_0xf7e530[_0x540c4d(0x1fc)](_0x26f884))],_0x4c9acf);var _0x56d05b=Object['defineProperty'],_0x2ab3af=Object[_0x540c4d(0x221)],_0x119484=(_0x471295,_0x5d75d6,_0xd6ef30)=>_0x5d75d6 in _0x471295?_0x56d05b(_0x471295,_0x5d75d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd6ef30}):_0x471295[_0x5d75d6]=_0xd6ef30,_0x292e34=(_0xd366a8,_0x181f2b,_0x4e0bcd,_0x5684ae)=>{const _0x128a9d=_0x540c4d;for(var _0x28d2a=_0x5684ae>0x1?void 0x0:_0x5684ae?_0x2ab3af(_0x181f2b,_0x4e0bcd):_0x181f2b,_0x4dedb5=_0xd366a8[_0x128a9d(0x1cb)]-0x1,_0x1d3d17;_0x4dedb5>=0x0;_0x4dedb5--)(_0x1d3d17=_0xd366a8[_0x4dedb5])&&(_0x28d2a=_0x1d3d17(_0x28d2a)||_0x28d2a);return _0x28d2a;},_0x2e1fbd=(_0x309946,_0x1665b6)=>(_0x2c3e57,_0x29b0bc)=>_0x1665b6(_0x2c3e57,_0x29b0bc,_0x309946),_0xe78de6=(_0x4f26c4,_0x3e1213,_0x3423bd)=>_0x119484(_0x4f26c4,typeof _0x3e1213!='symbol'?_0x3e1213+'':_0x3e1213,_0x3423bd);const _0x274b51=_0x540c4d(0x1b1);_0x2b074c['UniverLiveSharePlugin']=class extends _0xf7e530['Plugin']{constructor(_0xca3255=_0x1b4c71,_0x15980f,_0x5c2a52){const _0x23990f=_0x540c4d;super(),this[_0x23990f(0x1de)]=_0xca3255,this[_0x23990f(0x251)]=_0x15980f,this[_0x23990f(0x1cc)]=_0x5c2a52;const {..._0x12cc6b}=_0xf7e530[_0x23990f(0x193)]({},_0x1b4c71,this[_0x23990f(0x1de)]);this['_configService'][_0x23990f(0x20b)](_0x9753b,_0x12cc6b);}['onStarting'](){const _0x461c20=_0x540c4d;_0xf7e530['registerDependencies'](this['_injector'],_0xf7e530['mergeOverrideWithDependencies']([[_0x26f884],[_0x2b074c['LiveShareController']],[_0x4c9acf],[_0x2b074c[_0x461c20(0x1b6)]]],this[_0x461c20(0x1de)]['override'])),_0xf7e530[_0x461c20(0x1b0)](this[_0x461c20(0x251)],[[_0x4c9acf]]);}[_0x540c4d(0x234)](){const _0x37d390=_0x540c4d;_0xf7e530['touchDependencies'](this[_0x37d390(0x251)],[[_0x2b074c[_0x37d390(0x1b6)]]]);}},_0xe78de6(_0x2b074c[_0x540c4d(0x19a)],'type',_0xf7e530['UniverInstanceType'][_0x540c4d(0x1d2)]),_0xe78de6(_0x2b074c['UniverLiveSharePlugin'],_0x540c4d(0x21b),_0x274b51),_0x2b074c[_0x540c4d(0x19a)]=_0x292e34([_0xf7e530[_0x540c4d(0x1af)](_0x53c83b[_0x540c4d(0x1b8)]),_0x2e1fbd(0x1,_0xf7e530['Inject'](_0xf7e530[_0x540c4d(0x23b)])),_0x2e1fbd(0x2,_0xf7e530['IConfigService'])],_0x2b074c[_0x540c4d(0x19a)]),_0x2b074c[_0x540c4d(0x1fb)]=_0x22f5cf,_0x2b074c[_0x540c4d(0x206)]=_0x26f884,_0x2b074c[_0x540c4d(0x1ad)]=_0x12cd74,Object[_0x540c4d(0x17a)](_0x2b074c,Symbol[_0x540c4d(0x225)],{'value':_0x540c4d(0x1d4)});}));function _0x3b74(_0x190f56,_0x58065d){const _0x34c65d=_0x34c6();return _0x3b74=function(_0x3b74d6,_0x5e8b56){_0x3b74d6=_0x3b74d6-0x179;let _0x5f44fc=_0x34c65d[_0x3b74d6];return _0x5f44fc;},_0x3b74(_0x190f56,_0x58065d);}function _0x34c6(){const _0x40fa36=['UniverCollaborationClientPlugin','requireSession','Subject','parse','not-following','event$','substring','next','_fetchOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose$','_status','mask','stringify','react/jsx-runtime','createElement','_univerInstanceService','UniverIcon','_handleNewHost','length','_configService','880468ffXMKI','current','162044sYUecU','jsxs','CollaborationEvent','UNIVER_UNKNOWN','You\x27re\x20following\x20the\x20presenter','Module','exports','children','init','clsx','OPERATION','getValue','connectInjector','createInstance','getCurrentTypeOfUnit$','_config','DisposableCollection','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','Start\x20following','univer-size-4','UniverSheetsUi','getStatus','getInitialStates','operations','BuiltInUIPart','offline','_init','Button','presenting','_handleOperation','asObservable','registerComponent','idle','takeUntil','forEach','OFFLINE','You\x27re\x20presenting\x20the\x20document','includes','useState','executeCommand','evenodd','react','SetZoomRatioOperation','_stopPresenting','LiveShare','Inject','get','getUnitId','clear','LiveShareController','string','_uiPartsService','PRESENTING','trim','RxDisposable','LiveShareService','reverse','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','replace','setConfig','shouldShareOperation','end','_entities','FOLLOWING','default','UniverCore','stopPresenting','LiveShareCoordinator','idSuffix','_collabSession','tryStartPresenting','complete','React','_startFollowing','tag','pluginName','attrs','1221591efPQlb','button','rxjs/operators','_status$','getOwnPropertyDescriptor','IUIPartsService','Stop\x20presenting','registerSharedOperation','toStringTag','SessionStatus','Present\x20this\x20document','SetWorksheetActiveOperation','_commandService','@univerjs/ui','0\x200\x2017\x2017','then','unsubscribe','unitId','toDisposable','use','1em','useRef','currentColor','onRendered','live-share.config','1149225FIuSol','NEW_CHANGESETS','UniverProCollaborationClient','univerjs-icon\x20univerjs-icon-','@univerjs-pro/collaboration-client','Injector','add','url(#$1','throttleTime','2998710xypFMc','presenter','sessionStatus$','status$','_presenter','_mountLiveShare','jsx','useObservable','memberID','fill','send','type','IUniverInstanceService','function','data','_handleOnline','@univerjs/sheets','UniverUi','_injector','_startLiveShareCoordinator','stopFollowing','NOT_FOLLOWING','UniverInstanceType','ICommandService','Stop\x20following','entries','_sharedOperations','map','getMemberID','find','_handleTerminate','random','@univerjs-pro/collaboration','mutations','defineProperty','CommandType','InsertSheetMutation','symbol','_unitID','following','toString','_reporters','assign','path','getTypeOfUnitAdded$','colorChannel1','getLiveShareCoordinator','subscribe','http://www.w3.org/2000/svg','_handleOffline','_beIdle','440206KQYZBh','UniverProLiveShare','has','useDependency','LIVESHARE_REQUEST_HOST','div','params','UniverDesign','merge','_commandDisposable','rxjs','IDLE','_stopFollowing','IConfigService','LIVESHARE_TERMINATE','UniverLiveSharePlugin','text','delete','LIVESHARE_OPERATION','dispose','xlink:href','defs','UNIVER_SHEET','CollaborationSessionService','Disposable','3023445nzHDJY','_startPresenting','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewChangeSets','disposeWithMe','set','pipe','startFollowing','object','LiveShareStatus','Fragment','DependentOn','touchDependencies','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/sheets-ui','amd','onCommandExecuted','getLiveShareCoordinatorSync','DesktopLiveShareController','UniverSheets'];_0x34c6=function(){return _0x40fa36;};return _0x34c6();}
|
|
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)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4-experimental.20251210-8d33c6e",
|
|
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
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs-
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/design": "0.12.
|
|
65
|
-
"@univerjs/sheets": "0.12.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-experimental.20251210-8d33c6e",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-8d33c6e",
|
|
62
|
+
"@univerjs/engine-render": "0.12.4-experimental.20251210-8d33c6e",
|
|
63
|
+
"@univerjs/sheets": "0.12.4-experimental.20251210-8d33c6e",
|
|
64
|
+
"@univerjs/design": "0.12.4-experimental.20251210-8d33c6e",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.4-experimental.20251210-8d33c6e",
|
|
66
|
+
"@univerjs/core": "0.12.4-experimental.20251210-8d33c6e",
|
|
67
|
+
"@univerjs/ui": "0.12.4-experimental.20251210-8d33c6e"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
76
|
-
"vitest": "^4.0.
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
75
|
+
"vite": "^7.2.6",
|
|
76
|
+
"vitest": "^4.0.15",
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|