@univerjs-pro/live-share 0.12.3-nightly.202512060617 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x8b1261=_0x5402;function _0x5402(_0x24929f,_0x1f9386){_0x24929f=_0x24929f-0xdf;const _0x572104=_0x5721();let _0x5402c6=_0x572104[_0x24929f];return _0x5402c6;}(function(_0xb18c9,_0x4ccf70){const _0x15e649=_0x5402,_0x5e6c99=_0xb18c9();while(!![]){try{const _0x2d5ed9=-parseInt(_0x15e649(0xf7))/0x1+parseInt(_0x15e649(0xfc))/0x2*(parseInt(_0x15e649(0xe4))/0x3)+parseInt(_0x15e649(0xff))/0x4*(-parseInt(_0x15e649(0x109))/0x5)+parseInt(_0x15e649(0xe3))/0x6*(parseInt(_0x15e649(0xe1))/0x7)+-parseInt(_0x15e649(0xea))/0x8*(-parseInt(_0x15e649(0xed))/0x9)+-parseInt(_0x15e649(0x10a))/0xa*(parseInt(_0x15e649(0xdf))/0xb)+parseInt(_0x15e649(0x108))/0xc*(parseInt(_0x15e649(0x100))/0xd);if(_0x2d5ed9===_0x4ccf70)break;else _0x5e6c99['push'](_0x5e6c99['shift']());}catch(_0x4dfaa4){_0x5e6c99['push'](_0x5e6c99['shift']());}}}(_0x5721,0xb4aad));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x8b1261(0xe0)]{[_0x8b1261(0xfb)](_0xec7bc8,_0xd75148,_0x8cd401,_0xc95b32,_0x16f77f){const _0xfb3a9=_0x8b1261,_0x493dbe=_0xec7bc8[_0xfb3a9(0xe5)](n[_0xfb3a9(0xe9)]),_0x851284=_0xec7bc8[_0xfb3a9(0xe5)](g[_0xfb3a9(0xee)]),_0x565867=_0xd75148[_0xfb3a9(0x107)](),_0x4e7c01=_0xd75148[_0xfb3a9(0xe2)](),_0x4f577f=_0x493dbe['getLiveShareCoordinatorSync'](_0x565867);(_0x4f577f==null?void 0x0:_0x4f577f[_0xfb3a9(0xf4)]())!==n['LiveShareStatus'][_0xfb3a9(0xfe)]||(_0x8cd401[_0xfb3a9(0xec)]()!==_0x4e7c01[_0xfb3a9(0xec)]()&&this['_commandService']['executeCommand'](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x565867,'subUnitId':_0x8cd401[_0xfb3a9(0xec)]()}),!_0x851284[_0xfb3a9(0x10b)](_0x565867))||_0x16f77f[_0xfb3a9(0x101)](f[_0xfb3a9(0xfa)]['id'],{'unitId':_0xd75148[_0xfb3a9(0x107)](),'sheetId':_0x8cd401[_0xfb3a9(0xec)](),'sheetViewStartRow':_0xc95b32['startRow'],'sheetViewStartColumn':_0xc95b32[_0xfb3a9(0xf8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x8b1261(0xe0)][_0x8b1261(0xf1)](w);function _0x5721(){const _0x37cde8=['stopPresenting','startPresenting','getStatus','IDLE','stopFollowing','1411018TqhxWC','startColumn','tryStartPresenting','SetScrollOperation','_initialize','50XnaaRM','No\x20active\x20workbook\x20found.','PRESENTING','46076rFzyjP','833417TrFolG','syncExecuteCommand','FEnum','_injector','getLiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getUnitId','132wvevlj','70MPSSxe','12470WxplpQ','getRenderById','7073oLHwFV','FRange','1866214zjXPta','getActiveSheet','30rYNJoX','74946XyGlRT','get','FUniver','getLiveShareCoordinatorSync','getId','LiveShareController','3610872mvXCLZ','getActiveWorkbook','getSheetId','9CGnmkl','IRenderManagerService','LiveShareStatusEnum','LiveShareStatus','extend'];_0x5721=function(){return _0x37cde8;};return _0x5721();}class C extends a['FUniver']{[_0x8b1261(0x104)](){const _0x40e5ae=_0x8b1261;var _0x45dc08,_0x59a9cb;const _0x225081=this['_injector'][_0x40e5ae(0xe5)](n[_0x40e5ae(0xe9)]),_0x342967=(_0x45dc08=this[_0x40e5ae(0xeb)]())==null?void 0x0:_0x45dc08['getId']();if(!_0x342967)throw new Error(_0x40e5ae(0xfd));const _0x1b61cd=_0x225081[_0x40e5ae(0xe7)](_0x342967);return(_0x59a9cb=_0x1b61cd==null?void 0x0:_0x1b61cd[_0x40e5ae(0xf4)]())!=null?_0x59a9cb:n[_0x40e5ae(0xf0)][_0x40e5ae(0xf5)];}[_0x8b1261(0x106)](){const _0x5dbcd6=_0x8b1261;var _0xc34b72;const _0x28d6ce=this[_0x5dbcd6(0x103)][_0x5dbcd6(0xe5)](n[_0x5dbcd6(0xe9)]),_0xd44151=(_0xc34b72=this[_0x5dbcd6(0xeb)]())==null?void 0x0:_0xc34b72[_0x5dbcd6(0xe8)]();if(!_0xd44151)throw new Error(_0x5dbcd6(0xfd));const _0x414373=_0x28d6ce[_0x5dbcd6(0xe7)](_0xd44151);if(!_0x414373)throw new Error(_0x5dbcd6(0x105));_0x414373['startFollowing']();}[_0x8b1261(0xf6)](){const _0x5983d=_0x8b1261;var _0x50c9b1;const _0x322c3f=this[_0x5983d(0x103)][_0x5983d(0xe5)](n[_0x5983d(0xe9)]),_0x330d00=(_0x50c9b1=this['getActiveWorkbook']())==null?void 0x0:_0x50c9b1['getId']();if(!_0x330d00)throw new Error(_0x5983d(0xfd));const _0x5b49a4=_0x322c3f[_0x5983d(0xe7)](_0x330d00);if(!_0x5b49a4)throw new Error(_0x5983d(0x105));_0x5b49a4['stopFollowing']();}[_0x8b1261(0xf3)](){const _0x5f3d18=_0x8b1261;var _0x1ed603;const _0x58a38b=this[_0x5f3d18(0x103)]['get'](n[_0x5f3d18(0xe9)]),_0x197e06=(_0x1ed603=this[_0x5f3d18(0xeb)]())==null?void 0x0:_0x1ed603[_0x5f3d18(0xe8)]();if(!_0x197e06)throw new Error(_0x5f3d18(0xfd));const _0x3698dd=_0x58a38b[_0x5f3d18(0xe7)](_0x197e06);if(!_0x3698dd)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3698dd[_0x5f3d18(0xf9)]();}['stopPresenting'](){const _0x196447=_0x8b1261;var _0xc1802b;const _0x44d720=this['_injector'][_0x196447(0xe5)](n[_0x196447(0xe9)]),_0x410674=(_0xc1802b=this[_0x196447(0xeb)]())==null?void 0x0:_0xc1802b['getId']();if(!_0x410674)throw new Error(_0x196447(0xfd));const _0x351419=_0x44d720['getLiveShareCoordinatorSync'](_0x410674);if(!_0x351419)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x351419[_0x196447(0xf2)]();}}a[_0x8b1261(0xe6)][_0x8b1261(0xf1)](C);class L extends a[_0x8b1261(0x102)]{get[_0x8b1261(0xef)](){const _0x238bf1=_0x8b1261;return n[_0x238bf1(0xf0)];}}a[_0x8b1261(0x102)][_0x8b1261(0xf1)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x276616=_0x5eb0;(function(_0x4f37d2,_0x2994bd){const _0xc9cf13=_0x5eb0,_0x59ea2f=_0x4f37d2();while(!![]){try{const _0x3ab88d=-parseInt(_0xc9cf13(0x119))/0x1+parseInt(_0xc9cf13(0x13d))/0x2+parseInt(_0xc9cf13(0x1bf))/0x3*(-parseInt(_0xc9cf13(0x139))/0x4)+-parseInt(_0xc9cf13(0x1ae))/0x5*(parseInt(_0xc9cf13(0x17e))/0x6)+-parseInt(_0xc9cf13(0x17b))/0x7*(-parseInt(_0xc9cf13(0x19d))/0x8)+-parseInt(_0xc9cf13(0x1a3))/0x9+-parseInt(_0xc9cf13(0x155))/0xa;if(_0x3ab88d===_0x2994bd)break;else _0x59ea2f['push'](_0x59ea2f['shift']());}catch(_0x2a5e81){_0x59ea2f['push'](_0x59ea2f['shift']());}}}(_0x7d5a,0xc85c3));var T=Object[_0x276616(0x1cf)],U=(_0x51264c,_0x43096f,_0x56a977)=>_0x43096f in _0x51264c?T(_0x51264c,_0x43096f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56a977}):_0x51264c[_0x43096f]=_0x56a977,_=(_0x30156a,_0x11d4a7,_0x1f110d)=>U(_0x30156a,typeof _0x11d4a7!=_0x276616(0x18a)?_0x11d4a7+'':_0x11d4a7,_0x1f110d);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x276616(0x1c2)});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:_0x20eed6,..._0x274cdd}){const _0xc4043a=_0x276616,{icon:_0x54d23c,id:_0x30a17a,className:_0x282f15,extend:_0x5b4f95,..._0x26856a}=_0x274cdd,_0x5e7d74=(_0xc4043a(0x146)+_0x30a17a+'\x20'+(_0x282f15||''))[_0xc4043a(0x129)](),_0x30327d=v[_0xc4043a(0x19b)]('_'+H());return j(_0x54d23c,''+_0x30a17a,{'defIds':_0x54d23c[_0xc4043a(0x113)],'idSuffix':_0x30327d[_0xc4043a(0x145)]},{'ref':_0x20eed6,'className':_0x5e7d74,..._0x26856a},_0x5b4f95);}function j(_0x33f75b,_0x11fd27,_0x49e4c1,_0x3d977d,_0x4b11c6){const _0x5321ab=_0x276616;return v[_0x5321ab(0x115)](_0x33f75b[_0x5321ab(0x197)],{'key':_0x11fd27,...y(_0x33f75b,_0x49e4c1,_0x4b11c6),..._0x3d977d},(F(_0x33f75b,_0x49e4c1)[_0x5321ab(0x12d)]||[])[_0x5321ab(0x1c5)]((_0x1508d3,_0x5e8f6f)=>j(_0x1508d3,_0x11fd27+'-'+_0x33f75b[_0x5321ab(0x197)]+'-'+_0x5e8f6f,_0x49e4c1,void 0x0,_0x4b11c6)));}function y(_0x34e7d4,_0x9ef990,_0x48cd34){const _0x4c4992=_0x276616,_0x3e05aa={..._0x34e7d4[_0x4c4992(0x188)]};_0x48cd34!=null&&_0x48cd34['colorChannel1']&&_0x3e05aa[_0x4c4992(0x187)]===_0x4c4992(0x138)&&(_0x3e05aa[_0x4c4992(0x187)]=_0x48cd34[_0x4c4992(0x138)]),_0x34e7d4[_0x4c4992(0x197)]===_0x4c4992(0x123)&&_0x3e05aa['id']&&(_0x3e05aa['id']=_0x3e05aa['id']+_0x9ef990[_0x4c4992(0x108)]),Object['entries'](_0x3e05aa)[_0x4c4992(0x1c8)](([_0x50cde8,_0x576fad])=>{const _0x2830ba=_0x4c4992;_0x50cde8===_0x2830ba(0x123)&&typeof _0x576fad==_0x2830ba(0x172)&&(_0x3e05aa[_0x50cde8]=_0x576fad[_0x2830ba(0x184)](/url\(#(.*)\)/,'url(#$1'+_0x9ef990[_0x2830ba(0x108)]+')'));});const {defIds:_0x5b6481}=_0x9ef990;return!_0x5b6481||_0x5b6481[_0x4c4992(0x16a)]===0x0||(_0x34e7d4[_0x4c4992(0x197)]===_0x4c4992(0x117)&&_0x3e05aa[_0x4c4992(0x183)]&&(_0x3e05aa[_0x4c4992(0x183)]=_0x3e05aa[_0x4c4992(0x183)]+_0x9ef990[_0x4c4992(0x108)]),Object[_0x4c4992(0x1a8)](_0x3e05aa)[_0x4c4992(0x1c8)](([_0x90cf6f,_0x3b9f40])=>{const _0x501b86=_0x4c4992;typeof _0x3b9f40==_0x501b86(0x172)&&(_0x3e05aa[_0x90cf6f]=_0x3b9f40[_0x501b86(0x184)](/url\(#(.*)\)/,_0x501b86(0x147)+_0x9ef990['idSuffix']+')'));})),_0x3e05aa;}function _0x7d5a(){const _0x23baf8=['_status','SessionStatus','You\x27are\x20offline.','offline','1188171sguYCG','Subject','HEADER_MENU','Module','useDependency','find','map','_init','_configService','forEach','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','getUnitId','getTypeOfUnitAdded$','displayName','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','defineProperty','_config','getCurrentTypeOfUnit$','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','Injector','_collabSessionService','clear','presenter','override','idSuffix','IConfigService','NEW_CHANGESETS','_status$','dispose$','then','stopPresenting','parseProtocolChangeset','svg','touchDependencies','SetScrollOperation','defIds','tryStartPresenting','createElement','_handleTerminate','use','registerInitialStateReporter','257182RLyzIg','registerSharedOperation','LiveShareCoordinator','dispose','stringify','_injector','_mountLiveShare','SetWorksheetActiveOperation','UniverLiveSharePlugin','BuiltInUIPart','mask','pipe','UniverIcon','event$','BehaviorSubject','presenting','trim','has','toDisposable','getOwnPropertyDescriptor','children','values','createInstance','unitId','stopFollowing','getStatus','following','_startLiveShareCoordinator','getTypeOfUnitDisposed$','clsx','InsertSheetMutation','colorChannel1','4MPKrzD','toString','disposeWithMe','substring','1986222EAHGeW','useObservable','init','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','PRESENTING','shouldShareOperation','getMemberID','reverse','current','univerjs-icon\x20univerjs-icon-','url(#$1','_entities','Start\x20following','_stopPresenting','Fragment','NOT_FOLLOWING','forwardRef','currentColor','univer-size-4','http://www.w3.org/2000/svg','params','memberID','Stop\x20presenting','_handleNewHost','796280KTdqzo','set','from','onCommandExecuted','idle','_fetchOperations','setConfig','_univerInstanceService','_startPresenting','_sharedOperations','getLiveShareCoordinator','_collabSession','delete','div','Button','none','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','text','OPERATION','mutations','length','IUniverInstanceService','jsxs','DisposableCollection','LIVESHARE_FETCH_OPERATIONS','SAME_OPERATION_SHARE_INTERVAL','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','string','OFFLINE','send','registerDependencies','LiveShareIcon','LIVESHARE_OPERATION','IDLE','CollaborationEvent','ONLINE','10950163AWmvNU','pluginName','defs','130776jMXivt','includes','1em','_liveShareService','live-share.config','xlink:href','replace','executeCommand','get','fill','attrs','Inject','symbol','path','CollaborationSessionService','jsx','next','Disposable','assign','_startFollowing','mergeOverrideWithDependencies','LIVESHARE_REQUEST_HOST','connectInjector','unsubscribe','sessionStatus$','tag','_handleOffline','LiveShareController','UniverInstanceType','useRef','live-share-icon','8HUDjkJ','takeUntil','requireSession','_beIdle','evenodd','data','2365326laQLyG','throttleTime','_commandDisposable','_stopFollowing','_unitID','entries','DesktopLiveShareController','asObservable','status$','add','LiveShareStatus','170IcgPZu','Start','UNIVER_SHEET','operations','CommandType','getLiveShareCoordinatorSync','RxDisposable','_commandService','not-following','subscribe','_reporters','ICommandService','useState'];_0x7d5a=function(){return _0x23baf8;};return _0x7d5a();}function F(_0x1fbc39,_0x3fcafe){const _0x5712bd=_0x276616;var _0x2587de;const {defIds:_0x2a722a}=_0x3fcafe;return!_0x2a722a||_0x2a722a[_0x5712bd(0x16a)]===0x0?_0x1fbc39:_0x1fbc39[_0x5712bd(0x197)]===_0x5712bd(0x17d)&&((_0x2587de=_0x1fbc39[_0x5712bd(0x12d)])!=null&&_0x2587de[_0x5712bd(0x16a)])?{..._0x1fbc39,'children':_0x1fbc39[_0x5712bd(0x12d)]['map'](_0x72d15a=>typeof _0x72d15a[_0x5712bd(0x188)]['id']=='string'&&_0x2a722a&&_0x2a722a[_0x5712bd(0x17f)](_0x72d15a[_0x5712bd(0x188)]['id'])?{..._0x72d15a,'attrs':{..._0x72d15a[_0x5712bd(0x188)],'id':_0x72d15a[_0x5712bd(0x188)]['id']+_0x3fcafe[_0x5712bd(0x108)]}}:_0x72d15a)}:_0x1fbc39;}function H(){const _0xac838a=_0x276616;return Math['random']()[_0xac838a(0x13a)](0x24)[_0xac838a(0x13c)](0x2,0x8);}x[_0x276616(0x1cd)]=_0x276616(0x125);const V={'tag':_0x276616(0x110),'attrs':{'xmlns':_0x276616(0x150),'fill':_0x276616(0x164),'viewBox':'0\x200\x2017\x2017','width':_0x276616(0x180),'height':_0x276616(0x180)},'children':[{'tag':_0x276616(0x18b),'attrs':{'fill':_0x276616(0x14e),'d':_0x276616(0x1ce)}},{'tag':_0x276616(0x18b),'attrs':{'fill':_0x276616(0x14e),'d':_0x276616(0x102),'fillRule':'evenodd','clipRule':_0x276616(0x1a1)}}]},R=v[_0x276616(0x14d)](function(_0x5d3f2c,_0x2a7f5e){const _0x57e303=_0x276616;return v[_0x57e303(0x115)](x,Object[_0x57e303(0x190)]({},_0x5d3f2c,{'id':_0x57e303(0x19c),'ref':_0x2a7f5e,'icon':V}));});R[_0x276616(0x1cd)]=_0x276616(0x176);class E extends o['Disposable']{constructor(){const _0x38952e=_0x276616;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x38952e(0x1b8),new Set());}['registerSharedOperation'](_0x3c5740){const _0x234d08=_0x276616;return this['_sharedOperations'][_0x234d08(0x1ac)](_0x3c5740),o['toDisposable'](()=>this[_0x234d08(0x15e)][_0x234d08(0x161)](_0x3c5740));}[_0x276616(0x118)](_0x2c4288){const _0x2b6637=_0x276616;return this[_0x2b6637(0x1b8)][_0x2b6637(0x1ac)](_0x2c4288),o['toDisposable'](()=>this[_0x2b6637(0x1b8)]['delete'](_0x2c4288));}[_0x276616(0x142)](_0x3ee055){const _0xf757d=_0x276616;return this[_0xf757d(0x15e)][_0xf757d(0x12a)](_0x3ee055);}['getInitialStates'](_0x3a85c7){const _0x2bd8e2=_0x276616;return Array[_0x2bd8e2(0x157)](this[_0x2bd8e2(0x1b8)])[_0x2bd8e2(0x1c5)](_0x2ef2a4=>_0x2ef2a4(_0x3a85c7));}}var M=Object[_0x276616(0x12c)],P=(_0x2919dc,_0x520474,_0x8b2085,_0x25ea23)=>{const _0x2c9cd5=_0x276616;for(var _0x431a9b=_0x25ea23>0x1?void 0x0:_0x25ea23?M(_0x520474,_0x8b2085):_0x520474,_0x5c504e=_0x2919dc[_0x2c9cd5(0x16a)]-0x1,_0xcf7e60;_0x5c504e>=0x0;_0x5c504e--)(_0xcf7e60=_0x2919dc[_0x5c504e])&&(_0x431a9b=_0xcf7e60(_0x431a9b)||_0x431a9b);return _0x431a9b;},S=(_0x20a838,_0x48e678)=>(_0x2cf2c7,_0x42ac1c)=>_0x48e678(_0x2cf2c7,_0x42ac1c,_0x20a838);exports[_0x276616(0x199)]=class extends o[_0x276616(0x1b4)]{constructor(_0x49eb28,_0x13ebd6,_0x2db66e){const _0x146546=_0x276616;super(),_(this,_0x146546(0x148),new Map()),(this['_univerInstanceService']=_0x49eb28,this['_injector']=_0x13ebd6,this[_0x146546(0x104)]=_0x2db66e,this[_0x146546(0x1c6)]());}async[_0x276616(0x15f)](_0x353363){const _0x5b98fa=_0x276616;return this[_0x5b98fa(0x148)][_0x5b98fa(0x12a)](_0x353363)||await this[_0x5b98fa(0x134)](_0x353363),this[_0x5b98fa(0x148)]['get'](_0x353363);}[_0x276616(0x1b3)](_0xb60053){var _0x52d76b;return(_0x52d76b=this['_entities']['get'](_0xb60053))!=null?_0x52d76b:null;}[_0x276616(0x1c6)](){const _0x11fc04=_0x276616;this['_univerInstanceService'][_0x11fc04(0x1cc)](o[_0x11fc04(0x19a)][_0x11fc04(0x1b0)])[_0x11fc04(0x124)](I[_0x11fc04(0x19e)](this[_0x11fc04(0x10c)]))[_0x11fc04(0x1b7)](async _0x2b5919=>{const _0x10d330=_0x11fc04,_0x41ea5d=_0x2b5919[_0x10d330(0x1cb)]();this[_0x10d330(0x148)][_0x10d330(0x12a)](_0x41ea5d)||this[_0x10d330(0x134)](_0x41ea5d);}),this[_0x11fc04(0x15c)][_0x11fc04(0x135)](o[_0x11fc04(0x19a)][_0x11fc04(0x1b0)])[_0x11fc04(0x124)](I[_0x11fc04(0x19e)](this['dispose$']))[_0x11fc04(0x1b7)](_0x541a21=>{const _0x217942=_0x11fc04,_0x35c2b8=_0x541a21['getUnitId'](),_0x447661=this[_0x217942(0x148)]['get'](_0x35c2b8);_0x447661==null||_0x447661[_0x217942(0x11c)]();});}async[_0x276616(0x134)](_0x440312){const _0x598f60=_0x276616,_0x1042e7=await this['_collabSessionService'][_0x598f60(0x19f)](_0x440312),_0x4a6c3a=this[_0x598f60(0x11e)][_0x598f60(0x12f)](exports[_0x598f60(0x11b)],_0x440312,_0x1042e7);return _0x4a6c3a['init'](),this[_0x598f60(0x148)][_0x598f60(0x156)](_0x440312,_0x4a6c3a),_0x4a6c3a;}},exports[_0x276616(0x199)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x276616(0x189)](o[_0x276616(0x103)])),S(0x2,o['Inject'](b[_0x276616(0x18c)]))],exports[_0x276616(0x199)]);var u=(_0x24165b=>(_0x24165b['OFFLINE']=_0x276616(0x1be),_0x24165b[_0x276616(0x178)]=_0x276616(0x159),_0x24165b['FOLLOWING']=_0x276616(0x133),_0x24165b[_0x276616(0x14c)]=_0x276616(0x1b6),_0x24165b[_0x276616(0x141)]=_0x276616(0x128),_0x24165b))(u||{});const k=_0x276616(0x16f),q=0xc8;exports[_0x276616(0x11b)]=class extends o['RxDisposable']{constructor(_0x486d3b,_0x495540,_0xc57f27,_0x58bdca,_0x32e3a7){const _0x51f240=_0x276616;super(),_(this,_0x51f240(0x10b),new O[(_0x51f240(0x127))](_0x51f240(0x159))),_(this,_0x51f240(0x1ab),this[_0x51f240(0x10b)][_0x51f240(0x1aa)]()),_(this,_0x51f240(0x1c6),!0x1),_(this,_0x51f240(0x1a5),null),_(this,'_presenter',null),(this[_0x51f240(0x1a7)]=_0x486d3b,this[_0x51f240(0x160)]=_0x495540,this[_0x51f240(0x1c7)]=_0xc57f27,this[_0x51f240(0x181)]=_0x58bdca,this['_commandService']=_0x32e3a7);}get['_status'](){const _0x3839fe=_0x276616;return this['_status$'][_0x3839fe(0x171)]();}['dispose'](){const _0x1dbd9b=_0x276616;var _0x3d3cd3;(_0x3d3cd3=this['_commandDisposable'])==null||_0x3d3cd3['dispose'](),this[_0x1dbd9b(0x10b)]['next']('idle'),this[_0x1dbd9b(0x10b)]['complete']();}[_0x276616(0x132)](){return this['_status'];}[_0x276616(0x13f)](){const _0x25b988=_0x276616;this['_init']||(this['_init']=!0x0,this[_0x25b988(0x160)][_0x25b988(0x196)][_0x25b988(0x124)](I[_0x25b988(0x19e)](this['dispose$']))['subscribe'](_0x593d6b=>{const _0x465790=_0x25b988;switch(_0x593d6b){case b[_0x465790(0x1bc)]['OFFLINE']:this[_0x465790(0x198)]();break;case b['SessionStatus'][_0x465790(0x17a)]:this[_0x465790(0x1ca)]();break;}}),this['_collabSession'][_0x25b988(0x126)][_0x25b988(0x124)](I[_0x25b988(0x19e)](this[_0x25b988(0x10c)]))['subscribe'](_0x31ad6f=>{const _0x4cf534=_0x25b988,{eventID:_0x5231bf}=_0x31ad6f;switch(_0x5231bf){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x4cf534(0x154)](_0x31ad6f);break;case d['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x31ad6f);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x4cf534(0x116)]();break;case d[_0x4cf534(0x179)][_0x4cf534(0x10a)]:this['_handleNewChangeSets'](_0x31ad6f);break;}}));}[_0x276616(0x114)](){const _0x106307=_0x276616;this[_0x106307(0x160)][_0x106307(0x174)]({'eventID':d[_0x106307(0x179)][_0x106307(0x193)],'data':{'unitID':this[_0x106307(0x1a7)],'userID':this[_0x106307(0x160)][_0x106307(0x143)]()}},this['_unitID']);}[_0x276616(0x10e)](){const _0x319544=_0x276616;this['_status']===_0x319544(0x128)&&(this[_0x319544(0x10b)][_0x319544(0x18e)](_0x319544(0x159)),this[_0x319544(0x160)][_0x319544(0x174)]({'eventID':d[_0x319544(0x179)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x319544(0x1a7)]));}['startFollowing'](){const _0x512c95=_0x276616;this[_0x512c95(0x1bb)]==='not-following'&&(this[_0x512c95(0x10b)][_0x512c95(0x18e)](_0x512c95(0x133)),this[_0x512c95(0x191)]());}['stopFollowing'](){const _0x3e4d9f=_0x276616;this[_0x3e4d9f(0x1bb)]==='following'&&this[_0x3e4d9f(0x1a6)]();}[_0x276616(0x154)](_0x30c7ac){const _0x6b5db1=_0x276616,{presenter:_0x148e0f}=_0x30c7ac[_0x6b5db1(0x1a2)],_0x37153b=this['_collabSession']['getMemberID']();this[_0x6b5db1(0x165)]=_0x148e0f,_0x148e0f===_0x37153b?(this[_0x6b5db1(0x1a6)](),this[_0x6b5db1(0x15d)]()):this[_0x6b5db1(0x1bb)]!==_0x6b5db1(0x1b6)&&(this[_0x6b5db1(0x14a)](),this[_0x6b5db1(0x191)]());}[_0x276616(0x15a)](){const _0x390a39=_0x276616,_0x3b2a65={'eventID':d[_0x390a39(0x179)][_0x390a39(0x16e)]};this[_0x390a39(0x160)]['send'](_0x3b2a65,this[_0x390a39(0x1a7)]);}['_handleTerminate'](){const _0x5375b2=_0x276616;this['_presenter']=null,this[_0x5375b2(0x1bb)]!==_0x5375b2(0x128)&&this[_0x5375b2(0x1a0)]();}['_handleNewChangeSets'](_0x53f07c){const _0x1099da=_0x276616;if(this[_0x1099da(0x1bb)]===_0x1099da(0x133)&&this[_0x1099da(0x165)]===_0x53f07c['data'][_0x1099da(0x152)]){const _0x2326d7=d[_0x1099da(0x10f)](_0x53f07c[_0x1099da(0x1a2)])[_0x1099da(0x169)][_0x1099da(0x144)]()[_0x1099da(0x1c4)](_0x4f6e6f=>_0x4f6e6f['id']===C[_0x1099da(0x137)]['id']);if(_0x2326d7){const _0x26ec61=_0x2326d7[_0x1099da(0x151)][_0x1099da(0x130)],_0x4e14f4=_0x2326d7[_0x1099da(0x151)]['sheet']['id'];setTimeout(()=>{const _0x71740a=_0x1099da;this[_0x71740a(0x1b5)][_0x71740a(0x185)](C[_0x71740a(0x120)]['id'],{'unitId':_0x26ec61,'subUnitId':_0x4e14f4},{'fromCollab':!0x0});});}}}[_0x276616(0x15d)](){const _0x35998b=_0x276616;this['_status$'][_0x35998b(0x18e)](_0x35998b(0x128));const _0x3917c6=new Map(),_0x4de7e1=this['_commandDisposable']=new o[(_0x35998b(0x16d))]();_0x4de7e1[_0x35998b(0x1ac)](o[_0x35998b(0x12b)](()=>{const _0x284f12=_0x35998b;_0x3917c6[_0x284f12(0x1c8)](_0xa77083=>_0xa77083['complete']()),_0x3917c6[_0x284f12(0x105)]();})),_0x4de7e1[_0x35998b(0x1ac)](this['_commandService'][_0x35998b(0x158)](_0x1c4c86=>{const _0x17f393=_0x35998b;var _0x461ffe;if(_0x1c4c86['type']!==o[_0x17f393(0x1b2)][_0x17f393(0x168)]||!this[_0x17f393(0x181)][_0x17f393(0x142)](_0x1c4c86['id']))return;const {id:_0x46756b}=_0x1c4c86;let _0x52e3d7;_0x3917c6[_0x17f393(0x12a)](_0x46756b)?_0x52e3d7=_0x3917c6[_0x17f393(0x186)](_0x46756b):(_0x52e3d7=new O[(_0x17f393(0x1c0))](),_0x3917c6['set'](_0x46756b,_0x52e3d7),_0x52e3d7[_0x17f393(0x124)](I[_0x17f393(0x1a4)]((_0x461ffe=this[_0x17f393(0x1c7)]['getConfig'](k))!=null?_0x461ffe:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5da34d=>{const _0x462413=_0x17f393;this[_0x462413(0x160)]['send']({'eventID':d[_0x462413(0x179)][_0x462413(0x177)],'data':{'unitID':this[_0x462413(0x1a7)],'operations':{[_0x5da34d['id']]:{'id':_0x5da34d['id'],'params':JSON[_0x462413(0x11d)](_0x5da34d[_0x462413(0x151)])}}}},this[_0x462413(0x1a7)]);})),_0x52e3d7['next'](_0x1c4c86);})),this['_liveShareService']['getInitialStates'](this[_0x35998b(0x1a7)])[_0x35998b(0x1c8)](_0x2c6307=>this['_collabSession'][_0x35998b(0x174)]({'eventID':d[_0x35998b(0x179)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2c6307['id']]:{'id':_0x2c6307['id'],'params':JSON[_0x35998b(0x11d)](_0x2c6307[_0x35998b(0x151)])}}}},this[_0x35998b(0x1a7)]));}[_0x276616(0x14a)](){const _0x2bfaad=_0x276616;var _0xfe0489;this[_0x2bfaad(0x10b)][_0x2bfaad(0x18e)]('idle'),(_0xfe0489=this[_0x2bfaad(0x1a5)])==null||_0xfe0489[_0x2bfaad(0x11c)](),this[_0x2bfaad(0x1a5)]=null;}[_0x276616(0x191)](){const _0x55b992=_0x276616;var _0x1c635d;(_0x1c635d=this[_0x55b992(0x1a5)])==null||_0x1c635d[_0x55b992(0x11c)](),this[_0x55b992(0x10b)][_0x55b992(0x18e)]('following');}[_0x276616(0x1a0)](){const _0x3c925f=_0x276616;var _0x3f6fe7;this['_status$'][_0x3c925f(0x18e)]('idle'),(_0x3f6fe7=this[_0x3c925f(0x1a5)])==null||_0x3f6fe7[_0x3c925f(0x11c)](),this[_0x3c925f(0x1a5)]=null;}['_stopFollowing'](){const _0x4b1091=_0x276616;var _0x353175;this[_0x4b1091(0x10b)][_0x4b1091(0x18e)](_0x4b1091(0x1b6)),(_0x353175=this[_0x4b1091(0x1a5)])==null||_0x353175['dispose']();}['_handleOperation'](_0x1d03fc){const _0x280e17=_0x276616;if([_0x280e17(0x128),'not-following',_0x280e17(0x1be)][_0x280e17(0x17f)](this[_0x280e17(0x1bb)])||!_0x1d03fc[_0x280e17(0x1a2)][_0x280e17(0x106)]||_0x1d03fc[_0x280e17(0x1a2)][_0x280e17(0x106)]===this[_0x280e17(0x160)][_0x280e17(0x143)]())return;this[_0x280e17(0x1bb)]===_0x280e17(0x159)&&this[_0x280e17(0x191)]();const _0x459e5e=_0x1d03fc['data'][_0x280e17(0x1b1)];Object[_0x280e17(0x12e)](_0x459e5e)[_0x280e17(0x1c8)](_0x2512b4=>{const _0x1f7ca1=_0x280e17;this[_0x1f7ca1(0x1b5)][_0x1f7ca1(0x185)](_0x2512b4['id'],_0x2512b4[_0x1f7ca1(0x151)]?JSON['parse'](_0x2512b4['params']):null,{'fromCollab':!0x0});});}[_0x276616(0x198)](){const _0x23725d=_0x276616;var _0x45ecc8;this[_0x23725d(0x10b)][_0x23725d(0x18e)](_0x23725d(0x1be)),(_0x45ecc8=this[_0x23725d(0x1a5)])==null||_0x45ecc8[_0x23725d(0x11c)]();}[_0x276616(0x1ca)](){const _0x37f493=_0x276616;this[_0x37f493(0x10b)][_0x37f493(0x18e)](_0x37f493(0x159)),this[_0x37f493(0x15a)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x276616(0x109)]),S(0x3,o[_0x276616(0x189)](E)),S(0x4,o[_0x276616(0x1b9)])],exports[_0x276616(0x11b)]);function $(){const _0x566224=_0x276616,_0x5d8732=p['useDependency'](exports[_0x566224(0x199)]),_0x2b982a=p[_0x566224(0x1c3)](o[_0x566224(0x16b)]),_0x3c4577=p[_0x566224(0x13e)](()=>_0x2b982a[_0x566224(0x101)](o[_0x566224(0x19a)][_0x566224(0x1b0)]),void 0x0,!0x1,[]),[_0x4295fb,_0x3580f7]=v[_0x566224(0x1ba)](null),[_0x4c7684,_0x397592]=v[_0x566224(0x1ba)](u['IDLE']),_0x33a533=v[_0x566224(0x19b)](null);return v['useEffect'](()=>(_0x3c4577&&_0x5d8732[_0x566224(0x15f)](_0x3c4577[_0x566224(0x1cb)]())[_0x566224(0x10d)](_0x3a1d2d=>{const _0xc0a777=_0x566224;_0x3580f7(_0x3a1d2d),_0x33a533[_0xc0a777(0x145)]=_0x3a1d2d['status$']['subscribe'](_0x5b16a0=>{_0x397592(_0x5b16a0);});}),()=>{const _0x446d3a=_0x566224;var _0x36fa37;(_0x36fa37=_0x33a533[_0x446d3a(0x145)])==null||_0x36fa37[_0x446d3a(0x195)](),_0x33a533['current']=null;}),[_0x3c4577,_0x5d8732]),_0x4295fb?l[_0x566224(0x18d)](f['Dropdown'],{'align':'end','disabled':_0x4c7684===u[_0x566224(0x173)],'className':_0x566224(0x140),'overlay':l['jsx'](W,{'status':_0x4c7684,'coordinator':_0x4295fb}),'children':l[_0x566224(0x18d)]('button',{'className':f[_0x566224(0x136)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x4c7684===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c7684!==u[_0x566224(0x173)]}),'type':'button','children':l[_0x566224(0x18d)](R,{'className':_0x566224(0x14f)})})}):null;}function W(_0x3ceb2d){const _0x25510b=_0x276616,{status:_0x365b00,coordinator:_0x2b6062}=_0x3ceb2d;switch(_0x365b00){case u[_0x25510b(0x178)]:return l['jsx'](G,{'coordinator':_0x2b6062});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x2b6062});case u[_0x25510b(0x14c)]:return l[_0x25510b(0x18d)](Y,{'coordinator':_0x2b6062});case u[_0x25510b(0x173)]:return l[_0x25510b(0x18d)](J,{});case u[_0x25510b(0x141)]:return l[_0x25510b(0x18d)](Z,{'coordinator':_0x2b6062});default:return null;}}function G(_0x16f3ad){const _0x3b1250=_0x276616,{coordinator:_0x323a66}=_0x16f3ad;return l[_0x3b1250(0x16c)](l['Fragment'],{'children':[l['jsx'](_0x3b1250(0x162),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x3b1250(0x18d)](f[_0x3b1250(0x163)],{'onClick':()=>_0x323a66[_0x3b1250(0x114)](),'children':_0x3b1250(0x1af)})]});}function B(_0x387fc0){const _0x1e5cee=_0x276616,{coordinator:_0x137bfb}=_0x387fc0;return l[_0x1e5cee(0x16c)](l['Fragment'],{'children':[l[_0x1e5cee(0x18d)](_0x1e5cee(0x162),{'className':_0x1e5cee(0x170),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x1e5cee(0x18d)](f[_0x1e5cee(0x163)],{'onClick':()=>_0x137bfb[_0x1e5cee(0x131)](),'children':'Stop\x20following'})]});}function Y(_0x53170c){const _0x1c7957=_0x276616,{coordinator:_0x55ef48}=_0x53170c;return l['jsxs'](l['Fragment'],{'children':[l[_0x1c7957(0x18d)]('div',{'className':_0x1c7957(0x170),'children':_0x1c7957(0x166)}),l['jsx'](f['Button'],{'variant':_0x1c7957(0x167),'onClick':()=>_0x55ef48['startFollowing'](),'children':_0x1c7957(0x149)})]});}function Z(_0x38d8f4){const _0x56d5f1=_0x276616,{coordinator:_0x333a55}=_0x38d8f4;return l['jsxs'](l[_0x56d5f1(0x14b)],{'children':[l[_0x56d5f1(0x18d)](_0x56d5f1(0x162),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x56d5f1(0x18d)](f[_0x56d5f1(0x163)],{'variant':'default','onClick':()=>_0x333a55[_0x56d5f1(0x10e)](),'children':_0x56d5f1(0x153)})]});}function J(){const _0x3ebbf9=_0x276616;return l['jsx'](l['Fragment'],{'children':_0x3ebbf9(0x1bd)});}var K=Object[_0x276616(0x12c)],z=(_0x3778c6,_0x4899bc,_0xa2d317,_0x4b786b)=>{const _0x437475=_0x276616;for(var _0x382d64=_0x4b786b>0x1?void 0x0:_0x4b786b?K(_0x4899bc,_0xa2d317):_0x4899bc,_0x1723bc=_0x3778c6[_0x437475(0x16a)]-0x1,_0xd3cc56;_0x1723bc>=0x0;_0x1723bc--)(_0xd3cc56=_0x3778c6[_0x1723bc])&&(_0x382d64=_0xd3cc56(_0x382d64)||_0x382d64);return _0x382d64;},L=(_0x38792b,_0x34378c)=>(_0x13f9d6,_0x4fa3d4)=>_0x34378c(_0x13f9d6,_0x4fa3d4,_0x38792b);exports[_0x276616(0x1a9)]=class extends o['Disposable']{constructor(_0x1bacc8,_0x69095d){const _0x3b6315=_0x276616;super(),this[_0x3b6315(0x11e)]=_0x1bacc8,this['_uiPartsService']=_0x69095d,this[_0x3b6315(0x11f)]();}[_0x276616(0x11f)](){const _0x34dbe0=_0x276616;this[_0x34dbe0(0x13b)](this['_uiPartsService']['registerComponent'](p[_0x34dbe0(0x122)][_0x34dbe0(0x1c1)],()=>p[_0x34dbe0(0x194)]($,this['_injector'])));}},exports[_0x276616(0x1a9)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x276616(0x1a9)]);const Q=_0x276616(0x182),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x1f1645,_0x44ae54,_0x4ddcaa,_0x1f1707)=>{const _0x300398=_0x276616;for(var _0x280cc4=_0x1f1707>0x1?void 0x0:_0x1f1707?X(_0x44ae54,_0x4ddcaa):_0x44ae54,_0x19f8c8=_0x1f1645[_0x300398(0x16a)]-0x1,_0xeb998;_0x19f8c8>=0x0;_0x19f8c8--)(_0xeb998=_0x1f1645[_0x19f8c8])&&(_0x280cc4=_0xeb998(_0x280cc4)||_0x280cc4);return _0x280cc4;},te=(_0x4601e7,_0x11b0bf)=>(_0x339764,_0x2d3bdd)=>_0x11b0bf(_0x339764,_0x2d3bdd,_0x4601e7);let m=class extends o[_0x276616(0x18f)]{constructor(_0x2a2bcc){const _0x2af609=_0x276616;super(),this[_0x2af609(0x181)]=_0x2a2bcc,this[_0x2af609(0x1c6)]();}[_0x276616(0x1c6)](){const _0x59b38f=_0x276616;[D['SetZoomRatioOperation']['id'],D[_0x59b38f(0x112)]['id'],C[_0x59b38f(0x120)]['id']][_0x59b38f(0x1c8)](_0x44016d=>{const _0xe90e99=_0x59b38f;this[_0xe90e99(0x13b)](this[_0xe90e99(0x181)][_0xe90e99(0x11a)](_0x44016d));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x276616(0x1cf)],se=Object[_0x276616(0x12c)],ne=(_0x5f35cc,_0x240a08,_0x18744d)=>_0x240a08 in _0x5f35cc?ie(_0x5f35cc,_0x240a08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18744d}):_0x5f35cc[_0x240a08]=_0x18744d,re=(_0x599d51,_0x13cc91,_0x20748c,_0x382c15)=>{const _0x5a71c5=_0x276616;for(var _0x29e8ea=_0x382c15>0x1?void 0x0:_0x382c15?se(_0x13cc91,_0x20748c):_0x13cc91,_0x2ee40b=_0x599d51[_0x5a71c5(0x16a)]-0x1,_0x1ee238;_0x2ee40b>=0x0;_0x2ee40b--)(_0x1ee238=_0x599d51[_0x2ee40b])&&(_0x29e8ea=_0x1ee238(_0x29e8ea)||_0x29e8ea);return _0x29e8ea;},N=(_0x3abbd3,_0x4a8933)=>(_0x48ce1d,_0x45bb0a)=>_0x4a8933(_0x48ce1d,_0x45bb0a,_0x3abbd3),A=(_0x5b9640,_0x445979,_0x52cee9)=>ne(_0x5b9640,typeof _0x445979!='symbol'?_0x445979+'':_0x445979,_0x52cee9);function _0x5eb0(_0x395016,_0x5d9f91){_0x395016=_0x395016-0x101;const _0x7d5a47=_0x7d5a();let _0x5eb0ba=_0x7d5a47[_0x395016];return _0x5eb0ba;}const oe=_0x276616(0x1c9);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x4e9e36=w,_0x6a9d87,_0x49c98c){const _0x564cd2=_0x276616;super(),this['_config']=_0x4e9e36,this[_0x564cd2(0x11e)]=_0x6a9d87,this[_0x564cd2(0x1c7)]=_0x49c98c;const {..._0x4388b7}=o['merge']({},w,this[_0x564cd2(0x1d0)]);this[_0x564cd2(0x1c7)][_0x564cd2(0x15b)](Q,_0x4388b7);}['onStarting'](){const _0x9e4c9a=_0x276616;o[_0x9e4c9a(0x175)](this[_0x9e4c9a(0x11e)],o[_0x9e4c9a(0x192)]([[E],[exports[_0x9e4c9a(0x199)]],[m],[exports[_0x9e4c9a(0x1a9)]]],this[_0x9e4c9a(0x1d0)][_0x9e4c9a(0x107)])),o[_0x9e4c9a(0x111)](this['_injector'],[[m]]);}['onRendered'](){const _0x141d64=_0x276616;o['touchDependencies'](this[_0x141d64(0x11e)],[[exports[_0x141d64(0x1a9)]]]);}},A(exports[_0x276616(0x121)],'type',o[_0x276616(0x19a)]['UNIVER_UNKNOWN']),A(exports[_0x276616(0x121)],_0x276616(0x17c),oe),exports[_0x276616(0x121)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x276616(0x189)](o['Injector'])),N(0x2,o[_0x276616(0x109)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x276616(0x1ad)]=u;
|
|
1
|
+
'use strict';const _0x3bf8b1=_0x54cd;(function(_0x4a907f,_0x138a3f){const _0x14f2bd=_0x54cd,_0x5ee503=_0x4a907f();while(!![]){try{const _0x5b307b=-parseInt(_0x14f2bd(0x20c))/0x1*(parseInt(_0x14f2bd(0x1fd))/0x2)+parseInt(_0x14f2bd(0x16c))/0x3*(parseInt(_0x14f2bd(0x1ec))/0x4)+-parseInt(_0x14f2bd(0x1e8))/0x5+-parseInt(_0x14f2bd(0x1e0))/0x6*(-parseInt(_0x14f2bd(0x1f3))/0x7)+parseInt(_0x14f2bd(0x197))/0x8+parseInt(_0x14f2bd(0x151))/0x9+parseInt(_0x14f2bd(0x1f8))/0xa;if(_0x5b307b===_0x138a3f)break;else _0x5ee503['push'](_0x5ee503['shift']());}catch(_0x57f727){_0x5ee503['push'](_0x5ee503['shift']());}}}(_0x2195,0xa1531));var T=Object[_0x3bf8b1(0x1c3)],U=(_0x53b6b7,_0x33bd01,_0x401c18)=>_0x33bd01 in _0x53b6b7?T(_0x53b6b7,_0x33bd01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x401c18}):_0x53b6b7[_0x33bd01]=_0x401c18,_=(_0x3172f5,_0x320475,_0x1fa23f)=>U(_0x3172f5,typeof _0x320475!='symbol'?_0x320475+'':_0x320475,_0x1fa23f);Object[_0x3bf8b1(0x1c3)](exports,Symbol[_0x3bf8b1(0x173)],{'value':_0x3bf8b1(0x1ab)});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:_0x1b1635,..._0x1f5456}){const _0x48e57c=_0x3bf8b1,{icon:_0x49dafe,id:_0x15caf5,className:_0x1226e2,extend:_0x2f8c51,..._0x3abc38}=_0x1f5456,_0x54cacd=('univerjs-icon\x20univerjs-icon-'+_0x15caf5+'\x20'+(_0x1226e2||''))[_0x48e57c(0x1fe)](),_0x2c3314=v[_0x48e57c(0x1e9)]('_'+H());return j(_0x49dafe,''+_0x15caf5,{'defIds':_0x49dafe[_0x48e57c(0x171)],'idSuffix':_0x2c3314[_0x48e57c(0x1ed)]},{'ref':_0x1b1635,'className':_0x54cacd,..._0x3abc38},_0x2f8c51);}function _0x54cd(_0x44af07,_0x58f546){_0x44af07=_0x44af07-0x140;const _0x2195cd=_0x2195();let _0x54cd49=_0x2195cd[_0x44af07];return _0x54cd49;}function j(_0x2ba811,_0x1b3620,_0xdb0e4f,_0x14fe57,_0xad740){const _0xd372b=_0x3bf8b1;return v[_0xd372b(0x1f2)](_0x2ba811['tag'],{'key':_0x1b3620,...y(_0x2ba811,_0xdb0e4f,_0xad740),..._0x14fe57},(F(_0x2ba811,_0xdb0e4f)[_0xd372b(0x1cc)]||[])[_0xd372b(0x1a5)]((_0x5de3f7,_0x5d2b4c)=>j(_0x5de3f7,_0x1b3620+'-'+_0x2ba811[_0xd372b(0x1b9)]+'-'+_0x5d2b4c,_0xdb0e4f,void 0x0,_0xad740)));}function y(_0x385fa9,_0x33a1d9,_0x1ea4cc){const _0x2a4e09=_0x3bf8b1,_0x3c2ae7={..._0x385fa9['attrs']};_0x1ea4cc!=null&&_0x1ea4cc[_0x2a4e09(0x164)]&&_0x3c2ae7[_0x2a4e09(0x206)]===_0x2a4e09(0x164)&&(_0x3c2ae7[_0x2a4e09(0x206)]=_0x1ea4cc[_0x2a4e09(0x164)]),_0x385fa9[_0x2a4e09(0x1b9)]===_0x2a4e09(0x1c1)&&_0x3c2ae7['id']&&(_0x3c2ae7['id']=_0x3c2ae7['id']+_0x33a1d9[_0x2a4e09(0x188)]),Object['entries'](_0x3c2ae7)[_0x2a4e09(0x1d9)](([_0x4130ba,_0x2cfe69])=>{const _0x86b75a=_0x2a4e09;_0x4130ba===_0x86b75a(0x1c1)&&typeof _0x2cfe69==_0x86b75a(0x1db)&&(_0x3c2ae7[_0x4130ba]=_0x2cfe69[_0x86b75a(0x1c5)](/url\(#(.*)\)/,'url(#$1'+_0x33a1d9['idSuffix']+')'));});const {defIds:_0x2a5025}=_0x33a1d9;return!_0x2a5025||_0x2a5025['length']===0x0||(_0x385fa9[_0x2a4e09(0x1b9)]===_0x2a4e09(0x198)&&_0x3c2ae7[_0x2a4e09(0x1a7)]&&(_0x3c2ae7[_0x2a4e09(0x1a7)]=_0x3c2ae7[_0x2a4e09(0x1a7)]+_0x33a1d9['idSuffix']),Object[_0x2a4e09(0x1ee)](_0x3c2ae7)[_0x2a4e09(0x1d9)](([_0x137df1,_0x1b8a2c])=>{const _0x357921=_0x2a4e09;typeof _0x1b8a2c=='string'&&(_0x3c2ae7[_0x137df1]=_0x1b8a2c[_0x357921(0x1c5)](/url\(#(.*)\)/,'url(#$1'+_0x33a1d9['idSuffix']+')'));})),_0x3c2ae7;}function F(_0xd00e2,_0x45b00a){const _0x4234b1=_0x3bf8b1;var _0x1f6a6c;const {defIds:_0x5962e8}=_0x45b00a;return!_0x5962e8||_0x5962e8['length']===0x0?_0xd00e2:_0xd00e2[_0x4234b1(0x1b9)]===_0x4234b1(0x152)&&((_0x1f6a6c=_0xd00e2['children'])!=null&&_0x1f6a6c['length'])?{..._0xd00e2,'children':_0xd00e2[_0x4234b1(0x1cc)][_0x4234b1(0x1a5)](_0x5d6c73=>typeof _0x5d6c73['attrs']['id']==_0x4234b1(0x1db)&&_0x5962e8&&_0x5962e8[_0x4234b1(0x1bc)](_0x5d6c73[_0x4234b1(0x201)]['id'])?{..._0x5d6c73,'attrs':{..._0x5d6c73[_0x4234b1(0x201)],'id':_0x5d6c73[_0x4234b1(0x201)]['id']+_0x45b00a[_0x4234b1(0x188)]}}:_0x5d6c73)}:_0xd00e2;}function H(){const _0x3b9522=_0x3bf8b1;return Math[_0x3b9522(0x1ad)]()[_0x3b9522(0x180)](0x24)['substring'](0x2,0x8);}function _0x2195(){const _0x597283=['merge','_beIdle','LIVESHARE_OPERATION','InsertSheetMutation','_stopPresenting','_init','length','requireSession','SetWorksheetActiveOperation','BuiltInUIPart','registerDependencies','mergeOverrideWithDependencies','_mountLiveShare','You\x27re\x20following\x20the\x20presenter','_commandService','colorChannel1','complete','You\x27re\x20not\x20following\x20the\x20presenter','Inject','NOT_FOLLOWING','throttleTime','memberID','ICommandService','81oaTjcE','IConfigService','then','CollaborationEvent','asObservable','defIds','OFFLINE','toStringTag','DesktopLiveShareController','Fragment','getConfig','getInitialStates','unsubscribe','Injector','_handleNewChangeSets','IUniverInstanceService','path','_reporters','_handleOnline','_handleTerminate','toString','PRESENTING','currentColor','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','idle','NEW_CHANGESETS','clear','idSuffix','_startLiveShareCoordinator','evenodd','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','1em','univer-size-4','getCurrentTypeOfUnit$','text','UniverInstanceType','not-following','startFollowing','clsx','_presenter','getTypeOfUnitDisposed$','_injector','856704gjnLQn','use','Stop\x20following','_entities','sheet','values','LiveShareController','_startFollowing','LiveShareStatus','SetZoomRatioOperation','status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','touchDependencies','map','SetScrollOperation','xlink:href','displayName','You\x27are\x20offline.','Dropdown','Module','operations','random','pluginName','connectInjector','_status','getMemberID','LIVESHARE_FETCH_OPERATIONS','IDLE','next','params','LIVESHARE_NEW_HOST','type','data','tag','_commandDisposable','shouldShareOperation','includes','LiveShareService','unitId','useState','_startPresenting','mask','live-share.config','defineProperty','getLiveShareCoordinatorSync','replace','toDisposable','stringify','none','from','DisposableCollection','http://www.w3.org/2000/svg','children','_sharedOperations','mutations','UNIVER_UNKNOWN','Disposable','BehaviorSubject','UniverIcon','registerSharedOperation','has','_collabSession','SessionStatus','tryStartPresenting','delete','forEach','dispose','string','get','LiveShareIcon','ONLINE','_config','465066ZSXqxL','button','presenter','_collabSessionService','override','subscribe','init','stopPresenting','3610705RSKCYJ','useRef','event$','_unitID','35444DviYcc','current','entries','jsxs','LIVESHARE_TERMINATE','jsx','createElement','77lJxrKk','Button','getStatus','_univerInstanceService','IUIPartsService','123630vAmuVA','set','_configService','_handleOperation','presenting','4qiGFGn','trim','Start','UNIVER_SHEET','attrs','add','CommandType','send','_status$','fill','disposeWithMe','onCommandExecuted','0\x200\x2017\x2017','_uiPartsService','svg','137639WSItLV','_handleOffline','Stop\x20presenting','takeUntil','Subject','_liveShareService','_handleNewHost','LiveShareCoordinator','useDependency','UniverLiveSharePlugin','CollaborationSessionService','getLiveShareCoordinator','Plugin','onStarting','FOLLOWING','following','dispose$','getUnitId','UniverCollaborationClientPlugin','sessionStatus$','Present\x20this\x20document','find','parse','executeCommand','default','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','4021965kYVhEl','defs','pipe','div'];_0x2195=function(){return _0x597283;};return _0x2195();}x[_0x3bf8b1(0x1a8)]=_0x3bf8b1(0x1d2);const V={'tag':_0x3bf8b1(0x20b),'attrs':{'xmlns':_0x3bf8b1(0x1cb),'fill':_0x3bf8b1(0x1c8),'viewBox':_0x3bf8b1(0x209),'width':_0x3bf8b1(0x18c),'height':_0x3bf8b1(0x18c)},'children':[{'tag':'path','attrs':{'fill':_0x3bf8b1(0x182),'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':_0x3bf8b1(0x17c),'attrs':{'fill':_0x3bf8b1(0x182),'d':_0x3bf8b1(0x150),'fillRule':_0x3bf8b1(0x18a),'clipRule':_0x3bf8b1(0x18a)}}]},R=v['forwardRef'](function(_0x4ce5c9,_0x1e886a){return v['createElement'](x,Object['assign']({},_0x4ce5c9,{'id':'live-share-icon','ref':_0x1e886a,'icon':V}));});R[_0x3bf8b1(0x1a8)]=_0x3bf8b1(0x1dd);class E extends o[_0x3bf8b1(0x1d0)]{constructor(){const _0x342a7f=_0x3bf8b1;super(...arguments),_(this,_0x342a7f(0x1cd),new Set()),_(this,_0x342a7f(0x17d),new Set());}[_0x3bf8b1(0x1d3)](_0x40b563){const _0x1d1f04=_0x3bf8b1;return this[_0x1d1f04(0x1cd)]['add'](_0x40b563),o[_0x1d1f04(0x1c6)](()=>this[_0x1d1f04(0x1cd)][_0x1d1f04(0x1d8)](_0x40b563));}['registerInitialStateReporter'](_0x37ab6c){const _0x201fcd=_0x3bf8b1;return this[_0x201fcd(0x17d)]['add'](_0x37ab6c),o[_0x201fcd(0x1c6)](()=>this[_0x201fcd(0x17d)][_0x201fcd(0x1d8)](_0x37ab6c));}[_0x3bf8b1(0x1bb)](_0x13eda9){const _0x4949e1=_0x3bf8b1;return this['_sharedOperations'][_0x4949e1(0x1d4)](_0x13eda9);}[_0x3bf8b1(0x177)](_0x43d894){const _0x57b40a=_0x3bf8b1;return Array[_0x57b40a(0x1c9)](this[_0x57b40a(0x17d)])[_0x57b40a(0x1a5)](_0x49e6b6=>_0x49e6b6(_0x43d894));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x2ba8fb,_0x565df3,_0x3a9f0a,_0x4702e6)=>{const _0x25f2e5=_0x3bf8b1;for(var _0x2496bd=_0x4702e6>0x1?void 0x0:_0x4702e6?M(_0x565df3,_0x3a9f0a):_0x565df3,_0x2f43ce=_0x2ba8fb[_0x25f2e5(0x15b)]-0x1,_0x513bcb;_0x2f43ce>=0x0;_0x2f43ce--)(_0x513bcb=_0x2ba8fb[_0x2f43ce])&&(_0x2496bd=_0x513bcb(_0x2496bd)||_0x2496bd);return _0x2496bd;},S=(_0x5e61f9,_0x43c24a)=>(_0x22c057,_0x103e07)=>_0x43c24a(_0x22c057,_0x103e07,_0x5e61f9);exports[_0x3bf8b1(0x19d)]=class extends o['RxDisposable']{constructor(_0x510ac9,_0x528323,_0x729f93){const _0x2fed71=_0x3bf8b1;super(),_(this,_0x2fed71(0x19a),new Map()),(this[_0x2fed71(0x1f6)]=_0x510ac9,this[_0x2fed71(0x196)]=_0x528323,this[_0x2fed71(0x1e3)]=_0x729f93,this[_0x2fed71(0x15a)]());}async[_0x3bf8b1(0x142)](_0x51b87a){const _0x1f3db9=_0x3bf8b1;return this[_0x1f3db9(0x19a)][_0x1f3db9(0x1d4)](_0x51b87a)||await this['_startLiveShareCoordinator'](_0x51b87a),this[_0x1f3db9(0x19a)][_0x1f3db9(0x1dc)](_0x51b87a);}[_0x3bf8b1(0x1c4)](_0xd71344){const _0xa97bb9=_0x3bf8b1;var _0x596e91;return(_0x596e91=this[_0xa97bb9(0x19a)]['get'](_0xd71344))!=null?_0x596e91:null;}[_0x3bf8b1(0x15a)](){const _0x227395=_0x3bf8b1;this[_0x227395(0x1f6)]['getTypeOfUnitAdded$'](o[_0x227395(0x190)][_0x227395(0x200)])[_0x227395(0x153)](I[_0x227395(0x20f)](this[_0x227395(0x147)]))['subscribe'](async _0x2ac375=>{const _0x57a44c=_0x227395,_0x46cc57=_0x2ac375[_0x57a44c(0x148)]();this[_0x57a44c(0x19a)][_0x57a44c(0x1d4)](_0x46cc57)||this[_0x57a44c(0x189)](_0x46cc57);}),this['_univerInstanceService'][_0x227395(0x195)](o['UniverInstanceType'][_0x227395(0x200)])[_0x227395(0x153)](I[_0x227395(0x20f)](this['dispose$']))[_0x227395(0x1e5)](_0x99a2f7=>{const _0x2a5b64=_0x227395,_0x269696=_0x99a2f7[_0x2a5b64(0x148)](),_0x162363=this[_0x2a5b64(0x19a)]['get'](_0x269696);_0x162363==null||_0x162363[_0x2a5b64(0x1da)]();});}async['_startLiveShareCoordinator'](_0x57a088){const _0x1983b9=_0x3bf8b1,_0x269369=await this[_0x1983b9(0x1e3)][_0x1983b9(0x15c)](_0x57a088),_0x4288b8=this[_0x1983b9(0x196)]['createInstance'](exports[_0x1983b9(0x213)],_0x57a088,_0x269369);return _0x4288b8['init'](),this[_0x1983b9(0x19a)][_0x1983b9(0x1f9)](_0x57a088,_0x4288b8),_0x4288b8;}},exports['LiveShareController']=P([S(0x0,o[_0x3bf8b1(0x17b)]),S(0x1,o[_0x3bf8b1(0x167)](o[_0x3bf8b1(0x179)])),S(0x2,o['Inject'](b[_0x3bf8b1(0x141)]))],exports[_0x3bf8b1(0x19d)]);var u=(_0xf97e29=>(_0xf97e29[_0x3bf8b1(0x172)]=_0x3bf8b1(0x1a3),_0xf97e29[_0x3bf8b1(0x1b3)]=_0x3bf8b1(0x185),_0xf97e29['FOLLOWING']=_0x3bf8b1(0x146),_0xf97e29['NOT_FOLLOWING']=_0x3bf8b1(0x191),_0xf97e29['PRESENTING']=_0x3bf8b1(0x1fc),_0xf97e29))(u||{});const k=_0x3bf8b1(0x183),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x58531f,_0x4e9b1f,_0x129077,_0x4c4ee7,_0x2d1137){const _0x36e0bb=_0x3bf8b1;super(),_(this,_0x36e0bb(0x205),new O[(_0x36e0bb(0x1d1))](_0x36e0bb(0x185))),_(this,_0x36e0bb(0x1a1),this[_0x36e0bb(0x205)][_0x36e0bb(0x170)]()),_(this,_0x36e0bb(0x15a),!0x1),_(this,_0x36e0bb(0x1ba),null),_(this,_0x36e0bb(0x194),null),(this['_unitID']=_0x58531f,this[_0x36e0bb(0x1d5)]=_0x4e9b1f,this[_0x36e0bb(0x1fa)]=_0x129077,this[_0x36e0bb(0x211)]=_0x4c4ee7,this['_commandService']=_0x2d1137);}get['_status'](){const _0x59c2ad=_0x3bf8b1;return this[_0x59c2ad(0x205)]['getValue']();}['dispose'](){const _0x2fef33=_0x3bf8b1;var _0x31b00c;(_0x31b00c=this[_0x2fef33(0x1ba)])==null||_0x31b00c['dispose'](),this[_0x2fef33(0x205)][_0x2fef33(0x1b4)]('idle'),this[_0x2fef33(0x205)][_0x2fef33(0x165)]();}[_0x3bf8b1(0x1f5)](){const _0x3a4d16=_0x3bf8b1;return this[_0x3a4d16(0x1b0)];}[_0x3bf8b1(0x1e6)](){const _0x5ace84=_0x3bf8b1;this[_0x5ace84(0x15a)]||(this[_0x5ace84(0x15a)]=!0x0,this[_0x5ace84(0x1d5)][_0x5ace84(0x14a)][_0x5ace84(0x153)](I[_0x5ace84(0x20f)](this['dispose$']))['subscribe'](_0x81cd48=>{const _0x19aab6=_0x5ace84;switch(_0x81cd48){case b[_0x19aab6(0x1d6)]['OFFLINE']:this[_0x19aab6(0x20d)]();break;case b[_0x19aab6(0x1d6)][_0x19aab6(0x1de)]:this[_0x19aab6(0x17e)]();break;}}),this['_collabSession'][_0x5ace84(0x1ea)][_0x5ace84(0x153)](I[_0x5ace84(0x20f)](this[_0x5ace84(0x147)]))['subscribe'](_0x5838be=>{const _0xb21d9f=_0x5ace84,{eventID:_0x8a1d55}=_0x5838be;switch(_0x8a1d55){case d[_0xb21d9f(0x16f)][_0xb21d9f(0x1b6)]:this['_handleNewHost'](_0x5838be);break;case d[_0xb21d9f(0x16f)]['LIVESHARE_OPERATION']:this[_0xb21d9f(0x1fb)](_0x5838be);break;case d[_0xb21d9f(0x16f)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent'][_0xb21d9f(0x186)]:this[_0xb21d9f(0x17a)](_0x5838be);break;}}));}[_0x3bf8b1(0x1d7)](){const _0x98a35=_0x3bf8b1;this['_collabSession'][_0x98a35(0x204)]({'eventID':d[_0x98a35(0x16f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x98a35(0x1eb)],'userID':this['_collabSession'][_0x98a35(0x1b1)]()}},this[_0x98a35(0x1eb)]);}[_0x3bf8b1(0x1e7)](){const _0x13254c=_0x3bf8b1;this[_0x13254c(0x1b0)]===_0x13254c(0x1fc)&&(this['_status$'][_0x13254c(0x1b4)](_0x13254c(0x185)),this[_0x13254c(0x1d5)]['send']({'eventID':d[_0x13254c(0x16f)][_0x13254c(0x1f0)],'data':{'unitID':this[_0x13254c(0x1eb)]}},this[_0x13254c(0x1eb)]));}[_0x3bf8b1(0x192)](){const _0x65266=_0x3bf8b1;this[_0x65266(0x1b0)]===_0x65266(0x191)&&(this['_status$'][_0x65266(0x1b4)](_0x65266(0x146)),this[_0x65266(0x19e)]());}['stopFollowing'](){const _0x3af4df=_0x3bf8b1;this[_0x3af4df(0x1b0)]===_0x3af4df(0x146)&&this['_stopFollowing']();}[_0x3bf8b1(0x212)](_0x3fbb8a){const _0x50b595=_0x3bf8b1,{presenter:_0x1ddffd}=_0x3fbb8a[_0x50b595(0x1b8)],_0x30beb5=this[_0x50b595(0x1d5)][_0x50b595(0x1b1)]();this[_0x50b595(0x194)]=_0x1ddffd,_0x1ddffd===_0x30beb5?(this['_stopFollowing'](),this[_0x50b595(0x1c0)]()):this[_0x50b595(0x1b0)]!==_0x50b595(0x191)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3bf8b1(0x184)](){const _0x56e4bc=_0x3bf8b1,_0x356a00={'eventID':d['CollaborationEvent'][_0x56e4bc(0x1b2)]};this['_collabSession'][_0x56e4bc(0x204)](_0x356a00,this['_unitID']);}[_0x3bf8b1(0x17f)](){const _0x3a4f21=_0x3bf8b1;this[_0x3a4f21(0x194)]=null,this[_0x3a4f21(0x1b0)]!==_0x3a4f21(0x1fc)&&this[_0x3a4f21(0x156)]();}[_0x3bf8b1(0x17a)](_0x273543){const _0x47fd11=_0x3bf8b1;if(this[_0x47fd11(0x1b0)]===_0x47fd11(0x146)&&this[_0x47fd11(0x194)]===_0x273543['data'][_0x47fd11(0x16a)]){const _0x23c1c7=d['parseProtocolChangeset'](_0x273543[_0x47fd11(0x1b8)])[_0x47fd11(0x1ce)]['reverse']()[_0x47fd11(0x14c)](_0x13c4f0=>_0x13c4f0['id']===C[_0x47fd11(0x158)]['id']);if(_0x23c1c7){const _0x3a49e8=_0x23c1c7['params'][_0x47fd11(0x1be)],_0x214e3c=_0x23c1c7[_0x47fd11(0x1b5)][_0x47fd11(0x19b)]['id'];setTimeout(()=>{const _0x81fe65=_0x47fd11;this[_0x81fe65(0x163)][_0x81fe65(0x14e)](C[_0x81fe65(0x15d)]['id'],{'unitId':_0x3a49e8,'subUnitId':_0x214e3c},{'fromCollab':!0x0});});}}}[_0x3bf8b1(0x1c0)](){const _0x1ee3d9=_0x3bf8b1;this['_status$'][_0x1ee3d9(0x1b4)](_0x1ee3d9(0x1fc));const _0x5b21b0=new Map(),_0x5cae18=this['_commandDisposable']=new o[(_0x1ee3d9(0x1ca))]();_0x5cae18[_0x1ee3d9(0x202)](o[_0x1ee3d9(0x1c6)](()=>{const _0x4a6970=_0x1ee3d9;_0x5b21b0[_0x4a6970(0x1d9)](_0x53c4cb=>_0x53c4cb[_0x4a6970(0x165)]()),_0x5b21b0[_0x4a6970(0x187)]();})),_0x5cae18[_0x1ee3d9(0x202)](this[_0x1ee3d9(0x163)][_0x1ee3d9(0x208)](_0x1592a9=>{const _0x44ddf3=_0x1ee3d9;var _0x18f7b7;if(_0x1592a9[_0x44ddf3(0x1b7)]!==o[_0x44ddf3(0x203)]['OPERATION']||!this['_liveShareService'][_0x44ddf3(0x1bb)](_0x1592a9['id']))return;const {id:_0x40be3d}=_0x1592a9;let _0x525dcb;_0x5b21b0[_0x44ddf3(0x1d4)](_0x40be3d)?_0x525dcb=_0x5b21b0[_0x44ddf3(0x1dc)](_0x40be3d):(_0x525dcb=new O[(_0x44ddf3(0x210))](),_0x5b21b0[_0x44ddf3(0x1f9)](_0x40be3d,_0x525dcb),_0x525dcb[_0x44ddf3(0x153)](I[_0x44ddf3(0x169)]((_0x18f7b7=this[_0x44ddf3(0x1fa)][_0x44ddf3(0x176)](k))!=null?_0x18f7b7:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3a3535=>{const _0x4b6d2a=_0x44ddf3;this[_0x4b6d2a(0x1d5)]['send']({'eventID':d[_0x4b6d2a(0x16f)][_0x4b6d2a(0x157)],'data':{'unitID':this[_0x4b6d2a(0x1eb)],'operations':{[_0x3a3535['id']]:{'id':_0x3a3535['id'],'params':JSON[_0x4b6d2a(0x1c7)](_0x3a3535['params'])}}}},this['_unitID']);})),_0x525dcb[_0x44ddf3(0x1b4)](_0x1592a9);})),this[_0x1ee3d9(0x211)][_0x1ee3d9(0x177)](this[_0x1ee3d9(0x1eb)])[_0x1ee3d9(0x1d9)](_0x51d839=>this[_0x1ee3d9(0x1d5)][_0x1ee3d9(0x204)]({'eventID':d[_0x1ee3d9(0x16f)][_0x1ee3d9(0x157)],'data':{'unitID':this[_0x1ee3d9(0x1eb)],'operations':{[_0x51d839['id']]:{'id':_0x51d839['id'],'params':JSON['stringify'](_0x51d839[_0x1ee3d9(0x1b5)])}}}},this['_unitID']));}[_0x3bf8b1(0x159)](){const _0x56c09d=_0x3bf8b1;var _0x1cea07;this[_0x56c09d(0x205)][_0x56c09d(0x1b4)]('idle'),(_0x1cea07=this[_0x56c09d(0x1ba)])==null||_0x1cea07[_0x56c09d(0x1da)](),this['_commandDisposable']=null;}[_0x3bf8b1(0x19e)](){const _0xf63e=_0x3bf8b1;var _0x25295a;(_0x25295a=this[_0xf63e(0x1ba)])==null||_0x25295a[_0xf63e(0x1da)](),this['_status$']['next']('following');}['_beIdle'](){const _0x14ba9e=_0x3bf8b1;var _0x194174;this[_0x14ba9e(0x205)]['next']('idle'),(_0x194174=this[_0x14ba9e(0x1ba)])==null||_0x194174[_0x14ba9e(0x1da)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x31b4bf=_0x3bf8b1;var _0x14598d;this[_0x31b4bf(0x205)][_0x31b4bf(0x1b4)](_0x31b4bf(0x191)),(_0x14598d=this['_commandDisposable'])==null||_0x14598d[_0x31b4bf(0x1da)]();}[_0x3bf8b1(0x1fb)](_0x438a30){const _0x489c0c=_0x3bf8b1;if([_0x489c0c(0x1fc),'not-following',_0x489c0c(0x1a3)]['includes'](this[_0x489c0c(0x1b0)])||!_0x438a30[_0x489c0c(0x1b8)][_0x489c0c(0x1e2)]||_0x438a30['data'][_0x489c0c(0x1e2)]===this[_0x489c0c(0x1d5)]['getMemberID']())return;this[_0x489c0c(0x1b0)]==='idle'&&this[_0x489c0c(0x19e)]();const _0x9d8f32=_0x438a30[_0x489c0c(0x1b8)][_0x489c0c(0x1ac)];Object[_0x489c0c(0x19c)](_0x9d8f32)['forEach'](_0x280fac=>{const _0x2344d8=_0x489c0c;this[_0x2344d8(0x163)][_0x2344d8(0x14e)](_0x280fac['id'],_0x280fac[_0x2344d8(0x1b5)]?JSON[_0x2344d8(0x14d)](_0x280fac[_0x2344d8(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x3bf8b1(0x20d)](){const _0x28e9ab=_0x3bf8b1;var _0x24ff55;this['_status$'][_0x28e9ab(0x1b4)]('offline'),(_0x24ff55=this[_0x28e9ab(0x1ba)])==null||_0x24ff55[_0x28e9ab(0x1da)]();}[_0x3bf8b1(0x17e)](){const _0x242d7d=_0x3bf8b1;this[_0x242d7d(0x205)][_0x242d7d(0x1b4)](_0x242d7d(0x185)),this[_0x242d7d(0x184)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x3bf8b1(0x16d)]),S(0x3,o[_0x3bf8b1(0x167)](E)),S(0x4,o[_0x3bf8b1(0x16b)])],exports[_0x3bf8b1(0x213)]);function $(){const _0x291ca8=_0x3bf8b1,_0x16f4ce=p[_0x291ca8(0x214)](exports[_0x291ca8(0x19d)]),_0x3e395b=p['useDependency'](o[_0x291ca8(0x17b)]),_0x1b4882=p['useObservable'](()=>_0x3e395b[_0x291ca8(0x18e)](o[_0x291ca8(0x190)][_0x291ca8(0x200)]),void 0x0,!0x1,[]),[_0x4d4931,_0x5033ba]=v['useState'](null),[_0xec5472,_0xac66df]=v[_0x291ca8(0x1bf)](u[_0x291ca8(0x1b3)]),_0x45ba66=v[_0x291ca8(0x1e9)](null);return v['useEffect'](()=>(_0x1b4882&&_0x16f4ce[_0x291ca8(0x142)](_0x1b4882[_0x291ca8(0x148)]())[_0x291ca8(0x16e)](_0x1abaab=>{const _0x9c041f=_0x291ca8;_0x5033ba(_0x1abaab),_0x45ba66[_0x9c041f(0x1ed)]=_0x1abaab[_0x9c041f(0x1a1)][_0x9c041f(0x1e5)](_0x5a9264=>{_0xac66df(_0x5a9264);});}),()=>{const _0x52ef71=_0x291ca8;var _0x236fa9;(_0x236fa9=_0x45ba66[_0x52ef71(0x1ed)])==null||_0x236fa9[_0x52ef71(0x178)](),_0x45ba66['current']=null;}),[_0x1b4882,_0x16f4ce]),_0x4d4931?l[_0x291ca8(0x1f1)](f[_0x291ca8(0x1aa)],{'align':'end','disabled':_0xec5472===u[_0x291ca8(0x172)],'className':_0x291ca8(0x18b),'overlay':l['jsx'](W,{'status':_0xec5472,'coordinator':_0x4d4931}),'children':l['jsx'](_0x291ca8(0x1e1),{'className':f[_0x291ca8(0x193)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xec5472===u[_0x291ca8(0x172)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xec5472!==u[_0x291ca8(0x172)]}),'type':_0x291ca8(0x1e1),'children':l[_0x291ca8(0x1f1)](R,{'className':_0x291ca8(0x18d)})})}):null;}function W(_0x56d086){const _0x3f5358=_0x3bf8b1,{status:_0x576b5e,coordinator:_0x5821b0}=_0x56d086;switch(_0x576b5e){case u[_0x3f5358(0x1b3)]:return l[_0x3f5358(0x1f1)](G,{'coordinator':_0x5821b0});case u[_0x3f5358(0x145)]:return l[_0x3f5358(0x1f1)](B,{'coordinator':_0x5821b0});case u[_0x3f5358(0x168)]:return l[_0x3f5358(0x1f1)](Y,{'coordinator':_0x5821b0});case u[_0x3f5358(0x172)]:return l[_0x3f5358(0x1f1)](J,{});case u[_0x3f5358(0x181)]:return l[_0x3f5358(0x1f1)](Z,{'coordinator':_0x5821b0});default:return null;}}function G(_0x56f425){const _0x395c23=_0x3bf8b1,{coordinator:_0x19c84e}=_0x56f425;return l[_0x395c23(0x1ef)](l[_0x395c23(0x175)],{'children':[l[_0x395c23(0x1f1)](_0x395c23(0x154),{'className':_0x395c23(0x1a2),'children':_0x395c23(0x14b)}),l[_0x395c23(0x1f1)](f[_0x395c23(0x1f4)],{'onClick':()=>_0x19c84e[_0x395c23(0x1d7)](),'children':_0x395c23(0x1ff)})]});}function B(_0x1b5cbc){const _0x2ed32f=_0x3bf8b1,{coordinator:_0x2efa6e}=_0x1b5cbc;return l[_0x2ed32f(0x1ef)](l['Fragment'],{'children':[l[_0x2ed32f(0x1f1)]('div',{'className':_0x2ed32f(0x1a2),'children':_0x2ed32f(0x162)}),l[_0x2ed32f(0x1f1)](f[_0x2ed32f(0x1f4)],{'onClick':()=>_0x2efa6e['stopFollowing'](),'children':_0x2ed32f(0x199)})]});}function Y(_0x347e69){const _0x38ef6d=_0x3bf8b1,{coordinator:_0xdd8854}=_0x347e69;return l[_0x38ef6d(0x1ef)](l[_0x38ef6d(0x175)],{'children':[l['jsx'](_0x38ef6d(0x154),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38ef6d(0x166)}),l[_0x38ef6d(0x1f1)](f[_0x38ef6d(0x1f4)],{'variant':_0x38ef6d(0x18f),'onClick':()=>_0xdd8854[_0x38ef6d(0x192)](),'children':'Start\x20following'})]});}function Z(_0xeaf4f4){const _0x192f51=_0x3bf8b1,{coordinator:_0x4df6b1}=_0xeaf4f4;return l[_0x192f51(0x1ef)](l['Fragment'],{'children':[l[_0x192f51(0x1f1)]('div',{'className':_0x192f51(0x1a2),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x192f51(0x1f1)](f[_0x192f51(0x1f4)],{'variant':_0x192f51(0x14f),'onClick':()=>_0x4df6b1[_0x192f51(0x1e7)](),'children':_0x192f51(0x20e)})]});}function J(){const _0x2270ea=_0x3bf8b1;return l[_0x2270ea(0x1f1)](l['Fragment'],{'children':_0x2270ea(0x1a9)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x52b1b2,_0x24f05b,_0x5da2f4,_0x38c1b4)=>{const _0x281350=_0x3bf8b1;for(var _0x26b5d3=_0x38c1b4>0x1?void 0x0:_0x38c1b4?K(_0x24f05b,_0x5da2f4):_0x24f05b,_0x2440e1=_0x52b1b2[_0x281350(0x15b)]-0x1,_0x2c7f4a;_0x2440e1>=0x0;_0x2440e1--)(_0x2c7f4a=_0x52b1b2[_0x2440e1])&&(_0x26b5d3=_0x2c7f4a(_0x26b5d3)||_0x26b5d3);return _0x26b5d3;},L=(_0x6ff18,_0x5cc798)=>(_0x53fd8e,_0x4fa9e5)=>_0x5cc798(_0x53fd8e,_0x4fa9e5,_0x6ff18);exports[_0x3bf8b1(0x174)]=class extends o[_0x3bf8b1(0x1d0)]{constructor(_0x406e91,_0x37248e){const _0x349b0f=_0x3bf8b1;super(),this[_0x349b0f(0x196)]=_0x406e91,this[_0x349b0f(0x20a)]=_0x37248e,this[_0x349b0f(0x161)]();}['_mountLiveShare'](){const _0x142150=_0x3bf8b1;this[_0x142150(0x207)](this['_uiPartsService']['registerComponent'](p[_0x142150(0x15e)]['HEADER_MENU'],()=>p[_0x142150(0x1af)]($,this['_injector'])));}},exports[_0x3bf8b1(0x174)]=z([L(0x0,o[_0x3bf8b1(0x167)](o[_0x3bf8b1(0x179)])),L(0x1,p[_0x3bf8b1(0x1f7)])],exports[_0x3bf8b1(0x174)]);const Q=_0x3bf8b1(0x1c2),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2845e4,_0x591acb,_0x23f0aa,_0x49d1aa)=>{const _0x15020a=_0x3bf8b1;for(var _0x3c8d01=_0x49d1aa>0x1?void 0x0:_0x49d1aa?X(_0x591acb,_0x23f0aa):_0x591acb,_0x14caab=_0x2845e4[_0x15020a(0x15b)]-0x1,_0x2cbaf5;_0x14caab>=0x0;_0x14caab--)(_0x2cbaf5=_0x2845e4[_0x14caab])&&(_0x3c8d01=_0x2cbaf5(_0x3c8d01)||_0x3c8d01);return _0x3c8d01;},te=(_0x76dd90,_0x465fca)=>(_0x1daf90,_0x43e028)=>_0x465fca(_0x1daf90,_0x43e028,_0x76dd90);let m=class extends o[_0x3bf8b1(0x1d0)]{constructor(_0x3393a9){const _0xe7a249=_0x3bf8b1;super(),this[_0xe7a249(0x211)]=_0x3393a9,this[_0xe7a249(0x15a)]();}[_0x3bf8b1(0x15a)](){const _0x251c4a=_0x3bf8b1;[D[_0x251c4a(0x1a0)]['id'],D[_0x251c4a(0x1a6)]['id'],C[_0x251c4a(0x15d)]['id']][_0x251c4a(0x1d9)](_0x513a06=>{const _0xb77def=_0x251c4a;this['disposeWithMe'](this[_0xb77def(0x211)][_0xb77def(0x1d3)](_0x513a06));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x3bf8b1(0x1c3)],se=Object['getOwnPropertyDescriptor'],ne=(_0xf2b976,_0x2a4a13,_0x552247)=>_0x2a4a13 in _0xf2b976?ie(_0xf2b976,_0x2a4a13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552247}):_0xf2b976[_0x2a4a13]=_0x552247,re=(_0x31e09a,_0x57f078,_0x3b49f9,_0x5f4d91)=>{const _0x4c48a0=_0x3bf8b1;for(var _0x2dacaa=_0x5f4d91>0x1?void 0x0:_0x5f4d91?se(_0x57f078,_0x3b49f9):_0x57f078,_0x557e93=_0x31e09a[_0x4c48a0(0x15b)]-0x1,_0x328b43;_0x557e93>=0x0;_0x557e93--)(_0x328b43=_0x31e09a[_0x557e93])&&(_0x2dacaa=_0x328b43(_0x2dacaa)||_0x2dacaa);return _0x2dacaa;},N=(_0x30b657,_0x4bc9e3)=>(_0x434370,_0x1e3176)=>_0x4bc9e3(_0x434370,_0x1e3176,_0x30b657),A=(_0x5ec3d0,_0x3e7b69,_0x171e27)=>ne(_0x5ec3d0,typeof _0x3e7b69!='symbol'?_0x3e7b69+'':_0x3e7b69,_0x171e27);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x3bf8b1(0x140)]=class extends o[_0x3bf8b1(0x143)]{constructor(_0x24ba40=w,_0x192c21,_0x9b6692){const _0x171475=_0x3bf8b1;super(),this[_0x171475(0x1df)]=_0x24ba40,this[_0x171475(0x196)]=_0x192c21,this[_0x171475(0x1fa)]=_0x9b6692;const {..._0x413cfc}=o[_0x171475(0x155)]({},w,this[_0x171475(0x1df)]);this[_0x171475(0x1fa)]['setConfig'](Q,_0x413cfc);}[_0x3bf8b1(0x144)](){const _0x31803a=_0x3bf8b1;o[_0x31803a(0x15f)](this[_0x31803a(0x196)],o[_0x31803a(0x160)]([[E],[exports['LiveShareController']],[m],[exports[_0x31803a(0x174)]]],this[_0x31803a(0x1df)][_0x31803a(0x1e4)])),o[_0x31803a(0x1a4)](this['_injector'],[[m]]);}['onRendered'](){const _0xeade5f=_0x3bf8b1;o['touchDependencies'](this[_0xeade5f(0x196)],[[exports[_0xeade5f(0x174)]]]);}},A(exports[_0x3bf8b1(0x140)],'type',o['UniverInstanceType'][_0x3bf8b1(0x1cf)]),A(exports[_0x3bf8b1(0x140)],_0x3bf8b1(0x1ae),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x3bf8b1(0x149)]),N(0x1,o['Inject'](o[_0x3bf8b1(0x179)])),N(0x2,o[_0x3bf8b1(0x16d)])],exports[_0x3bf8b1(0x140)]),exports['LiveShare']=$,exports[_0x3bf8b1(0x1bd)]=E,exports[_0x3bf8b1(0x19f)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51945a=_0x522f;function _0x32a6(){const _0x64d1cb=['3087525Iqkwxk','5882404TSKzMY','1506876pukGCF','getUnitId','getLiveShareStatus','startRow','getStatus','startColumn','getSheetId','stopFollowing','12TEjuhz','executeCommand','_injector','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','getId','_initialize','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','5568IvZHoJ','537500VMoJLc','syncExecuteCommand','startPresenting','IDLE','10OwlkKA','_commandService','6lXnArd','573332kihXve','getActiveWorkbook','8kPZpZj','5998491BtDnOH','get'];_0x32a6=function(){return _0x64d1cb;};return _0x32a6();}(function(_0x1b646a,_0x2fc0fe){const _0x3db0ea=_0x522f,_0xc75d1=_0x1b646a();while(!![]){try{const _0x557c5d=-parseInt(_0x3db0ea(0x177))/0x1+parseInt(_0x3db0ea(0x17f))/0x2*(parseInt(_0x3db0ea(0x17e))/0x3)+parseInt(_0x3db0ea(0x178))/0x4+parseInt(_0x3db0ea(0x184))/0x5+parseInt(_0x3db0ea(0x18e))/0x6*(-parseInt(_0x3db0ea(0x186))/0x7)+-parseInt(_0x3db0ea(0x181))/0x8*(parseInt(_0x3db0ea(0x182))/0x9)+-parseInt(_0x3db0ea(0x17c))/0xa*(-parseInt(_0x3db0ea(0x185))/0xb);if(_0x557c5d===_0x2fc0fe)break;else _0xc75d1['push'](_0xc75d1['shift']());}catch(_0x54081a){_0xc75d1['push'](_0xc75d1['shift']());}}}(_0x32a6,0xb8e7d));import{LiveShareController as _0x4ff4aa,LiveShareStatus as _0x2a2d81}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c4911}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x18d3f9}from'@univerjs/sheets';function _0x522f(_0x2b8cc9,_0x1c5616){_0x2b8cc9=_0x2b8cc9-0x16f;const _0x32a6c4=_0x32a6();let _0x522fd5=_0x32a6c4[_0x2b8cc9];return _0x522fd5;}import{SetScrollOperation as _0x39312a}from'@univerjs/sheets-ui';import{FRange as _0x363235}from'@univerjs/sheets/facade';import{FUniver as _0x47b429,FEnum as _0x36e1e3}from'@univerjs/core/facade';class I extends _0x363235{[_0x51945a(0x174)](_0x443719,_0x17675a,_0x1c259f,_0x17416b,_0x5d0501){const _0x1c0dc9=_0x51945a,_0x925940=_0x443719[_0x1c0dc9(0x183)](_0x4ff4aa),_0xcac281=_0x443719[_0x1c0dc9(0x183)](_0x4c4911),_0x4d412e=_0x17675a[_0x1c0dc9(0x187)](),_0x42cc61=_0x17675a['getActiveSheet'](),_0xb5b64e=_0x925940[_0x1c0dc9(0x176)](_0x4d412e);(_0xb5b64e==null?void 0x0:_0xb5b64e[_0x1c0dc9(0x18a)]())!==_0x2a2d81['PRESENTING']||(_0x1c259f['getSheetId']()!==_0x42cc61[_0x1c0dc9(0x18c)]()&&this[_0x1c0dc9(0x17d)][_0x1c0dc9(0x18f)](_0x18d3f9['id'],{'unitId':_0x4d412e,'subUnitId':_0x1c259f[_0x1c0dc9(0x18c)]()}),!_0xcac281['getRenderById'](_0x4d412e))||_0x5d0501[_0x1c0dc9(0x179)](_0x39312a['id'],{'unitId':_0x17675a['getUnitId'](),'sheetId':_0x1c259f[_0x1c0dc9(0x18c)](),'sheetViewStartRow':_0x17416b[_0x1c0dc9(0x189)],'sheetViewStartColumn':_0x17416b[_0x1c0dc9(0x18b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x363235['extend'](I);class m extends _0x47b429{[_0x51945a(0x188)](){const _0x567ed8=_0x51945a;var _0x337683,_0x13aef0;const _0x1d6a7d=this[_0x567ed8(0x16f)][_0x567ed8(0x183)](_0x4ff4aa),_0x346df1=(_0x337683=this[_0x567ed8(0x180)]())==null?void 0x0:_0x337683[_0x567ed8(0x173)]();if(!_0x346df1)throw new Error('No\x20active\x20workbook\x20found.');const _0x52ceb9=_0x1d6a7d[_0x567ed8(0x176)](_0x346df1);return(_0x13aef0=_0x52ceb9==null?void 0x0:_0x52ceb9[_0x567ed8(0x18a)]())!=null?_0x13aef0:_0x2a2d81[_0x567ed8(0x17b)];}['startFollowing'](){const _0x1b7b94=_0x51945a;var _0x5bd31e;const _0x12b72d=this[_0x1b7b94(0x16f)][_0x1b7b94(0x183)](_0x4ff4aa),_0x35ae0a=(_0x5bd31e=this[_0x1b7b94(0x180)]())==null?void 0x0:_0x5bd31e['getId']();if(!_0x35ae0a)throw new Error(_0x1b7b94(0x175));const _0x107e73=_0x12b72d[_0x1b7b94(0x176)](_0x35ae0a);if(!_0x107e73)throw new Error(_0x1b7b94(0x171));_0x107e73['startFollowing']();}[_0x51945a(0x18d)](){const _0x2e2744=_0x51945a;var _0x20458a;const _0x128d6d=this[_0x2e2744(0x16f)][_0x2e2744(0x183)](_0x4ff4aa),_0x59ffae=(_0x20458a=this['getActiveWorkbook']())==null?void 0x0:_0x20458a[_0x2e2744(0x173)]();if(!_0x59ffae)throw new Error(_0x2e2744(0x175));const _0x3c6a67=_0x128d6d[_0x2e2744(0x176)](_0x59ffae);if(!_0x3c6a67)throw new Error(_0x2e2744(0x171));_0x3c6a67[_0x2e2744(0x18d)]();}[_0x51945a(0x17a)](){const _0x98636d=_0x51945a;var _0x5c9b76;const _0x5a3188=this[_0x98636d(0x16f)][_0x98636d(0x183)](_0x4ff4aa),_0x1df158=(_0x5c9b76=this[_0x98636d(0x180)]())==null?void 0x0:_0x5c9b76['getId']();if(!_0x1df158)throw new Error('No\x20active\x20workbook\x20found.');const _0x21ec05=_0x5a3188['getLiveShareCoordinatorSync'](_0x1df158);if(!_0x21ec05)throw new Error(_0x98636d(0x171));_0x21ec05['tryStartPresenting']();}[_0x51945a(0x170)](){const _0x55ad39=_0x51945a;var _0x17e2e4;const _0x37fbd8=this['_injector']['get'](_0x4ff4aa),_0x25467e=(_0x17e2e4=this[_0x55ad39(0x180)]())==null?void 0x0:_0x17e2e4[_0x55ad39(0x173)]();if(!_0x25467e)throw new Error(_0x55ad39(0x175));const _0x197cce=_0x37fbd8['getLiveShareCoordinatorSync'](_0x25467e);if(!_0x197cce)throw new Error(_0x55ad39(0x171));_0x197cce[_0x55ad39(0x170)]();}}_0x47b429[_0x51945a(0x172)](m);class C extends _0x36e1e3{get['LiveShareStatusEnum'](){return _0x2a2d81;}}_0x36e1e3['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xf02626=_0x49a3;(function(_0x5331b5,_0x52e9fb){const _0x5438da=_0x49a3,_0x1b6945=_0x5331b5();while(!![]){try{const _0x39df04=-parseInt(_0x5438da(0x1a3))/0x1*(-parseInt(_0x5438da(0x17f))/0x2)+-parseInt(_0x5438da(0x133))/0x3*(parseInt(_0x5438da(0x121))/0x4)+-parseInt(_0x5438da(0x13f))/0x5+parseInt(_0x5438da(0x1b8))/0x6*(-parseInt(_0x5438da(0x141))/0x7)+-parseInt(_0x5438da(0x159))/0x8*(parseInt(_0x5438da(0x17c))/0x9)+-parseInt(_0x5438da(0x13e))/0xa+parseInt(_0x5438da(0x126))/0xb;if(_0x39df04===_0x52e9fb)break;else _0x1b6945['push'](_0x1b6945['shift']());}catch(_0x3cfe13){_0x1b6945['push'](_0x1b6945['shift']());}}}(_0x3d06,0xa7477));var J=Object[_0xf02626(0x19c)],K=(_0x5ae237,_0x29cd28,_0x1e5d46)=>_0x29cd28 in _0x5ae237?J(_0x5ae237,_0x29cd28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5d46}):_0x5ae237[_0x29cd28]=_0x1e5d46,u=(_0x2615bb,_0x50aec8,_0x21469a)=>K(_0x2615bb,typeof _0x50aec8!=_0xf02626(0x18f)?_0x50aec8+'':_0x50aec8,_0x21469a);import{Disposable as _0x5bdbec,toDisposable as _0x5dd282,IUniverInstanceService as _0x246214,Inject as _0x13dd86,Injector as _0x5b65f0,IConfigService as _0x5c1fc8,ICommandService as _0x1549da,RxDisposable as _0x443063,UniverInstanceType as _0x57e1a6,DisposableCollection as _0xd84b84,CommandType as _0x13511b,DependentOn as _0x3a182e,Plugin as _0x586d52,merge as _0x12b34e,registerDependencies as _0x2186bd,mergeOverrideWithDependencies as _0x29be9b,touchDependencies as _0x31d787}from'@univerjs/core';import{useDependency as _0x4e3e8c,useObservable as _0x262950,IUIPartsService as _0x28a6d1,BuiltInUIPart as _0x50c32d,connectInjector as _0x11eeaf}from'@univerjs/ui';import{jsx as _0x3f1572,jsxs as _0x10f9f1,Fragment as _0x561b68}from'react/jsx-runtime';import{Dropdown as _0x49c23a,clsx as _0x37a6a0,Button as _0x1555cd}from'@univerjs/design';import{useRef as _0x922483,createElement as _0x2b29b6,forwardRef as _0x50463f,useState as _0x430a47,useEffect as _0x4a4b6f}from'react';import{CollaborationEvent as _0x41b597,parseProtocolChangeset as _0x1061ca}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x374a90,SessionStatus as _0x1c448e,UniverCollaborationClientPlugin as _0x400e7c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2abf81,SetWorksheetActiveOperation as _0x218042}from'@univerjs/sheets';import{BehaviorSubject as _0x26b77b,Subject as _0x5a754c}from'rxjs';import{takeUntil as _0x461f78,throttleTime as _0x471303}from'rxjs/operators';import{SetZoomRatioOperation as _0x5b6fb4,SetScrollOperation as _0x54eb58}from'@univerjs/sheets-ui';function k({ref:_0x45d44c,..._0x431046}){const _0x311fa5=_0xf02626,{icon:_0x5c5c05,id:_0x33ae4a,className:_0x443872,extend:_0x1606c0,..._0x12d90a}=_0x431046,_0x20e022=(_0x311fa5(0x154)+_0x33ae4a+'\x20'+(_0x443872||''))[_0x311fa5(0x1a8)](),_0x1f4950=_0x922483('_'+Oe());return G(_0x5c5c05,''+_0x33ae4a,{'defIds':_0x5c5c05['defIds'],'idSuffix':_0x1f4950[_0x311fa5(0x1ba)]},{'ref':_0x45d44c,'className':_0x20e022,..._0x12d90a},_0x1606c0);}function G(_0x1dbecf,_0x3a8b92,_0x4e6a23,_0x16ea80,_0x36b1bf){const _0x50e375=_0xf02626;return _0x2b29b6(_0x1dbecf[_0x50e375(0x1b6)],{'key':_0x3a8b92,...be(_0x1dbecf,_0x4e6a23,_0x36b1bf),..._0x16ea80},(Ee(_0x1dbecf,_0x4e6a23)[_0x50e375(0x146)]||[])[_0x50e375(0x181)]((_0x24911d,_0x4b43a2)=>G(_0x24911d,_0x3a8b92+'-'+_0x1dbecf[_0x50e375(0x1b6)]+'-'+_0x4b43a2,_0x4e6a23,void 0x0,_0x36b1bf)));}function be(_0x133a49,_0x300770,_0x292fe8){const _0x456b02=_0xf02626,_0x3266a8={..._0x133a49[_0x456b02(0x164)]};_0x292fe8!=null&&_0x292fe8['colorChannel1']&&_0x3266a8[_0x456b02(0x199)]==='colorChannel1'&&(_0x3266a8[_0x456b02(0x199)]=_0x292fe8[_0x456b02(0x1ad)]),_0x133a49[_0x456b02(0x1b6)]==='mask'&&_0x3266a8['id']&&(_0x3266a8['id']=_0x3266a8['id']+_0x300770[_0x456b02(0x17e)]),Object['entries'](_0x3266a8)['forEach'](([_0x51a95d,_0x41d3fc])=>{const _0xe87a3a=_0x456b02;_0x51a95d===_0xe87a3a(0x19b)&&typeof _0x41d3fc==_0xe87a3a(0x19a)&&(_0x3266a8[_0x51a95d]=_0x41d3fc[_0xe87a3a(0x162)](/url\(#(.*)\)/,_0xe87a3a(0x178)+_0x300770[_0xe87a3a(0x17e)]+')'));});const {defIds:_0x1f9156}=_0x300770;return!_0x1f9156||_0x1f9156[_0x456b02(0x193)]===0x0||(_0x133a49['tag']===_0x456b02(0x152)&&_0x3266a8[_0x456b02(0x171)]&&(_0x3266a8[_0x456b02(0x171)]=_0x3266a8[_0x456b02(0x171)]+_0x300770[_0x456b02(0x17e)]),Object[_0x456b02(0x139)](_0x3266a8)[_0x456b02(0x197)](([_0x4a9000,_0x5377c9])=>{const _0x32d52a=_0x456b02;typeof _0x5377c9==_0x32d52a(0x19a)&&(_0x3266a8[_0x4a9000]=_0x5377c9['replace'](/url\(#(.*)\)/,_0x32d52a(0x178)+_0x300770[_0x32d52a(0x17e)]+')'));})),_0x3266a8;}function Ee(_0x5a80d,_0x43d5cd){const _0x3107af=_0xf02626;var _0x3dcc55;const {defIds:_0x46967b}=_0x43d5cd;return!_0x46967b||_0x46967b[_0x3107af(0x193)]===0x0?_0x5a80d:_0x5a80d[_0x3107af(0x1b6)]===_0x3107af(0x18b)&&((_0x3dcc55=_0x5a80d[_0x3107af(0x146)])!=null&&_0x3dcc55['length'])?{..._0x5a80d,'children':_0x5a80d[_0x3107af(0x146)]['map'](_0x237538=>typeof _0x237538[_0x3107af(0x164)]['id']==_0x3107af(0x19a)&&_0x46967b&&_0x46967b['includes'](_0x237538[_0x3107af(0x164)]['id'])?{..._0x237538,'attrs':{..._0x237538[_0x3107af(0x164)],'id':_0x237538[_0x3107af(0x164)]['id']+_0x43d5cd[_0x3107af(0x17e)]}}:_0x237538)}:_0x5a80d;}function Oe(){const _0x1bf817=_0xf02626;return Math[_0x1bf817(0x1a9)]()[_0x1bf817(0x16c)](0x24)['substring'](0x2,0x8);}k[_0xf02626(0x140)]=_0xf02626(0x142);const we={'tag':_0xf02626(0x179),'attrs':{'xmlns':_0xf02626(0x148),'fill':_0xf02626(0x14a),'viewBox':_0xf02626(0x153),'width':_0xf02626(0x12a),'height':'1em'},'children':[{'tag':_0xf02626(0x128),'attrs':{'fill':_0xf02626(0x119),'d':_0xf02626(0x137)}},{'tag':'path','attrs':{'fill':_0xf02626(0x119),'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':_0xf02626(0x10f)}}]},W=_0x50463f(function(_0x4e555a,_0x50af5d){const _0x20c472=_0xf02626;return _0x2b29b6(k,Object[_0x20c472(0x1ab)]({},_0x4e555a,{'id':_0x20c472(0x1a6),'ref':_0x50af5d,'icon':we}));});function _0x3d06(){const _0x14053c=['_collabSession','_handleOffline','Present\x20this\x20document','stopFollowing','_collabSessionService','sessionStatus$','defs','live-share.config','You\x27re\x20presenting\x20the\x20document','presenter','symbol','_startPresenting','idle','onStarting','length','_config','unsubscribe','_beIdle','forEach','_stopFollowing','fill','string','mask','defineProperty','stringify','get','getInitialStates','createInstance','sheet','getUnitId','615577PSTsWq','not-following','offline','live-share-icon','OPERATION','trim','random','_startLiveShareCoordinator','assign','LIVESHARE_OPERATION','colorChannel1','univer-size-4','_liveShareService','executeCommand','div','text','add','_status','You\x27re\x20not\x20following\x20the\x20presenter','tag','default','9930OggFyi','reverse','current','getLiveShareCoordinatorSync','PRESENTING','evenodd','event$','onCommandExecuted','UNIVER_SHEET','_handleOnline','_uiPartsService','_unitID','registerSharedOperation','dispose','_handleNewHost','currentColor','subscribe','OFFLINE','_reporters','set','_status$','UNIVER_UNKNOWN','_fetchOperations','74524wcwGef','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','dispose$','getCurrentTypeOfUnit$','16373324bTqYAQ','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','tryStartPresenting','1em','from','registerInitialStateReporter','pipe','ONLINE','LIVESHARE_NEW_HOST','params','status$','type','39RhzziQ','init','getConfig','_handleNewChangeSets','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','parse','entries','SAME_OPERATION_SHARE_INTERVAL','_injector','FOLLOWING','button','846610yaNAnk','4034360ORMdVM','displayName','7kOLEdu','UniverIcon','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','send','children','has','http://www.w3.org/2000/svg','shouldShareOperation','none','_handleTerminate','getMemberID','NOT_FOLLOWING','presenting','following','getLiveShareCoordinator','Stop\x20presenting','use','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','pluginName','_commandDisposable','_commandService','end','14048ffhAMu','next','_init','startFollowing','_stopPresenting','then','NEW_CHANGESETS','find','LIVESHARE_TERMINATE','replace','operations','attrs','requireSession','getTypeOfUnitAdded$','override','_startFollowing','Stop\x20following','data','getStatus','toString','stopPresenting','_presenter','includes','onRendered','xlink:href','_configService','getTypeOfUnitDisposed$','_mountLiveShare','Start\x20following','clear','memberID','url(#$1','svg','_univerInstanceService','_entities','4608WzNYdl','complete','idSuffix','4mqiFwe','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','map','_sharedOperations','unitId','IDLE'];_0x3d06=function(){return _0x14053c;};return _0x3d06();}W['displayName']='LiveShareIcon';class L extends _0x5bdbec{constructor(){const _0x2ff16a=_0xf02626;super(...arguments),u(this,_0x2ff16a(0x182),new Set()),u(this,_0x2ff16a(0x11c),new Set());}[_0xf02626(0x116)](_0x35d38d){const _0x4d8fcb=_0xf02626;return this[_0x4d8fcb(0x182)][_0x4d8fcb(0x1b3)](_0x35d38d),_0x5dd282(()=>this['_sharedOperations']['delete'](_0x35d38d));}[_0xf02626(0x12c)](_0x11b68c){const _0x1121d6=_0xf02626;return this['_reporters'][_0x1121d6(0x1b3)](_0x11b68c),_0x5dd282(()=>this[_0x1121d6(0x11c)]['delete'](_0x11b68c));}[_0xf02626(0x149)](_0x204eb8){const _0xee7915=_0xf02626;return this[_0xee7915(0x182)]['has'](_0x204eb8);}[_0xf02626(0x19f)](_0x167c9b){const _0x53156c=_0xf02626;return Array[_0x53156c(0x12b)](this[_0x53156c(0x11c)])['map'](_0x479681=>_0x479681(_0x167c9b));}}var Ne=Object[_0xf02626(0x143)],Y=(_0x5b521b,_0x1bdfd9,_0xad5fcb,_0x17bf4a)=>{const _0x3beed3=_0xf02626;for(var _0x49c3d3=_0x17bf4a>0x1?void 0x0:_0x17bf4a?Ne(_0x1bdfd9,_0xad5fcb):_0x1bdfd9,_0x4a3bae=_0x5b521b[_0x3beed3(0x193)]-0x1,_0x43efd8;_0x4a3bae>=0x0;_0x4a3bae--)(_0x43efd8=_0x5b521b[_0x4a3bae])&&(_0x49c3d3=_0x43efd8(_0x49c3d3)||_0x49c3d3);return _0x49c3d3;},_=(_0x4a9e82,_0x27f1e2)=>(_0x14a2b2,_0x528b69)=>_0x27f1e2(_0x14a2b2,_0x528b69,_0x4a9e82);let S=class extends _0x443063{constructor(_0xc53126,_0x483ead,_0x235aff){const _0x4a8dd8=_0xf02626;super(),u(this,_0x4a8dd8(0x17b),new Map()),(this[_0x4a8dd8(0x17a)]=_0xc53126,this['_injector']=_0x483ead,this[_0x4a8dd8(0x189)]=_0x235aff,this[_0x4a8dd8(0x15b)]());}async[_0xf02626(0x150)](_0x3208e4){const _0x51fb65=_0xf02626;return this[_0x51fb65(0x17b)][_0x51fb65(0x147)](_0x3208e4)||await this[_0x51fb65(0x1aa)](_0x3208e4),this[_0x51fb65(0x17b)][_0x51fb65(0x19e)](_0x3208e4);}[_0xf02626(0x10d)](_0x1939e2){const _0x19b3e0=_0xf02626;var _0x46ce0c;return(_0x46ce0c=this['_entities'][_0x19b3e0(0x19e)](_0x1939e2))!=null?_0x46ce0c:null;}[_0xf02626(0x15b)](){const _0x4d3ace=_0xf02626;this['_univerInstanceService'][_0x4d3ace(0x166)](_0x57e1a6[_0x4d3ace(0x112)])[_0x4d3ace(0x12d)](_0x461f78(this[_0x4d3ace(0x124)]))[_0x4d3ace(0x11a)](async _0xbd6c95=>{const _0x4039dc=_0x4d3ace,_0x561176=_0xbd6c95[_0x4039dc(0x1a2)]();this[_0x4039dc(0x17b)][_0x4039dc(0x147)](_0x561176)||this[_0x4039dc(0x1aa)](_0x561176);}),this[_0x4d3ace(0x17a)][_0x4d3ace(0x173)](_0x57e1a6['UNIVER_SHEET'])[_0x4d3ace(0x12d)](_0x461f78(this['dispose$']))[_0x4d3ace(0x11a)](_0x1ff344=>{const _0x314ae9=_0x4d3ace,_0x5b2922=_0x1ff344[_0x314ae9(0x1a2)](),_0x217dca=this[_0x314ae9(0x17b)][_0x314ae9(0x19e)](_0x5b2922);_0x217dca==null||_0x217dca['dispose']();});}async[_0xf02626(0x1aa)](_0x133e6b){const _0x43a699=_0xf02626,_0x54f095=await this[_0x43a699(0x189)][_0x43a699(0x165)](_0x133e6b),_0xa92cf6=this[_0x43a699(0x13b)][_0x43a699(0x1a0)](N,_0x133e6b,_0x54f095);return _0xa92cf6['init'](),this[_0x43a699(0x17b)]['set'](_0x133e6b,_0xa92cf6),_0xa92cf6;}};S=Y([_(0x0,_0x246214),_(0x1,_0x13dd86(_0x5b65f0)),_(0x2,_0x13dd86(_0x374a90))],S);var c=(_0x14c111=>(_0x14c111[_0xf02626(0x11b)]=_0xf02626(0x1a5),_0x14c111[_0xf02626(0x184)]='idle',_0x14c111[_0xf02626(0x13c)]=_0xf02626(0x14f),_0x14c111['NOT_FOLLOWING']=_0xf02626(0x1a4),_0x14c111[_0xf02626(0x10e)]=_0xf02626(0x14e),_0x14c111))(c||{});const Ce=_0xf02626(0x13a),De=0xc8;let N=class extends _0x443063{constructor(_0x3fa637,_0x3ddbee,_0x58c38e,_0x5192fc,_0x5b802d){const _0x2cc365=_0xf02626;super(),u(this,_0x2cc365(0x11e),new _0x26b77b('idle')),u(this,_0x2cc365(0x131),this[_0x2cc365(0x11e)]['asObservable']()),u(this,_0x2cc365(0x15b),!0x1),u(this,_0x2cc365(0x156),null),u(this,_0x2cc365(0x16e),null),(this[_0x2cc365(0x115)]=_0x3fa637,this[_0x2cc365(0x185)]=_0x3ddbee,this[_0x2cc365(0x172)]=_0x58c38e,this[_0x2cc365(0x1af)]=_0x5192fc,this[_0x2cc365(0x157)]=_0x5b802d);}get[_0xf02626(0x1b4)](){const _0x5820f9=_0xf02626;return this[_0x5820f9(0x11e)]['getValue']();}[_0xf02626(0x117)](){const _0x590d48=_0xf02626;var _0x5baa3b;(_0x5baa3b=this[_0x590d48(0x156)])==null||_0x5baa3b[_0x590d48(0x117)](),this[_0x590d48(0x11e)][_0x590d48(0x15a)](_0x590d48(0x191)),this[_0x590d48(0x11e)][_0x590d48(0x17d)]();}[_0xf02626(0x16b)](){const _0x107eb2=_0xf02626;return this[_0x107eb2(0x1b4)];}[_0xf02626(0x134)](){const _0x3187b9=_0xf02626;this[_0x3187b9(0x15b)]||(this[_0x3187b9(0x15b)]=!0x0,this['_collabSession'][_0x3187b9(0x18a)][_0x3187b9(0x12d)](_0x461f78(this[_0x3187b9(0x124)]))[_0x3187b9(0x11a)](_0xbf4875=>{const _0x44cd72=_0x3187b9;switch(_0xbf4875){case _0x1c448e[_0x44cd72(0x11b)]:this[_0x44cd72(0x186)]();break;case _0x1c448e[_0x44cd72(0x12e)]:this[_0x44cd72(0x113)]();break;}}),this[_0x3187b9(0x185)][_0x3187b9(0x110)]['pipe'](_0x461f78(this['dispose$']))['subscribe'](_0x236c21=>{const _0x583246=_0x3187b9,{eventID:_0x2c7084}=_0x236c21;switch(_0x2c7084){case _0x41b597[_0x583246(0x12f)]:this[_0x583246(0x118)](_0x236c21);break;case _0x41b597['LIVESHARE_OPERATION']:this['_handleOperation'](_0x236c21);break;case _0x41b597[_0x583246(0x161)]:this['_handleTerminate']();break;case _0x41b597[_0x583246(0x15f)]:this[_0x583246(0x136)](_0x236c21);break;}}));}[_0xf02626(0x129)](){const _0x4b6c31=_0xf02626;this[_0x4b6c31(0x185)]['send']({'eventID':_0x41b597['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4b6c31(0x115)],'userID':this[_0x4b6c31(0x185)]['getMemberID']()}},this[_0x4b6c31(0x115)]);}[_0xf02626(0x16d)](){const _0x4d942e=_0xf02626;this[_0x4d942e(0x1b4)]===_0x4d942e(0x14e)&&(this[_0x4d942e(0x11e)][_0x4d942e(0x15a)](_0x4d942e(0x191)),this[_0x4d942e(0x185)][_0x4d942e(0x145)]({'eventID':_0x41b597[_0x4d942e(0x161)],'data':{'unitID':this[_0x4d942e(0x115)]}},this[_0x4d942e(0x115)]));}[_0xf02626(0x15c)](){const _0x496c3e=_0xf02626;this[_0x496c3e(0x1b4)]==='not-following'&&(this[_0x496c3e(0x11e)][_0x496c3e(0x15a)](_0x496c3e(0x14f)),this[_0x496c3e(0x168)]());}[_0xf02626(0x188)](){const _0x5e5cea=_0xf02626;this['_status']===_0x5e5cea(0x14f)&&this[_0x5e5cea(0x198)]();}[_0xf02626(0x118)](_0x357d9d){const _0x568dfc=_0xf02626,{presenter:_0x3fa8fb}=_0x357d9d['data'],_0x3ca1e4=this['_collabSession'][_0x568dfc(0x14c)]();this[_0x568dfc(0x16e)]=_0x3fa8fb,_0x3fa8fb===_0x3ca1e4?(this[_0x568dfc(0x198)](),this[_0x568dfc(0x190)]()):this[_0x568dfc(0x1b4)]!==_0x568dfc(0x1a4)&&(this[_0x568dfc(0x15d)](),this[_0x568dfc(0x168)]());}[_0xf02626(0x120)](){const _0x25c34e=_0xf02626,_0x2578f7={'eventID':_0x41b597[_0x25c34e(0x144)]};this['_collabSession']['send'](_0x2578f7,this[_0x25c34e(0x115)]);}[_0xf02626(0x14b)](){const _0x345f75=_0xf02626;this[_0x345f75(0x16e)]=null,this[_0x345f75(0x1b4)]!=='presenting'&&this[_0x345f75(0x196)]();}['_handleNewChangeSets'](_0x46197e){const _0x148a21=_0xf02626;if(this[_0x148a21(0x1b4)]===_0x148a21(0x14f)&&this[_0x148a21(0x16e)]===_0x46197e[_0x148a21(0x16a)][_0x148a21(0x177)]){const _0x5b050f=_0x1061ca(_0x46197e[_0x148a21(0x16a)])['mutations'][_0x148a21(0x1b9)]()[_0x148a21(0x160)](_0x3cf610=>_0x3cf610['id']===_0x2abf81['id']);if(_0x5b050f){const _0x69a22d=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x183)],_0xd951ea=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x1a1)]['id'];setTimeout(()=>{const _0x5b0a20=_0x148a21;this[_0x5b0a20(0x157)][_0x5b0a20(0x1b0)](_0x218042['id'],{'unitId':_0x69a22d,'subUnitId':_0xd951ea},{'fromCollab':!0x0});});}}}[_0xf02626(0x190)](){const _0x3f8a70=_0xf02626;this[_0x3f8a70(0x11e)][_0x3f8a70(0x15a)]('presenting');const _0x373ffc=new Map(),_0x2bd11f=this['_commandDisposable']=new _0xd84b84();_0x2bd11f[_0x3f8a70(0x1b3)](_0x5dd282(()=>{const _0x544f17=_0x3f8a70;_0x373ffc[_0x544f17(0x197)](_0x293094=>_0x293094[_0x544f17(0x17d)]()),_0x373ffc[_0x544f17(0x176)]();})),_0x2bd11f[_0x3f8a70(0x1b3)](this['_commandService'][_0x3f8a70(0x111)](_0x2ca7a7=>{const _0xde89c=_0x3f8a70;var _0x1d950c;if(_0x2ca7a7[_0xde89c(0x132)]!==_0x13511b[_0xde89c(0x1a7)]||!this[_0xde89c(0x1af)][_0xde89c(0x149)](_0x2ca7a7['id']))return;const {id:_0x872d9c}=_0x2ca7a7;let _0x3f240f;_0x373ffc[_0xde89c(0x147)](_0x872d9c)?_0x3f240f=_0x373ffc[_0xde89c(0x19e)](_0x872d9c):(_0x3f240f=new _0x5a754c(),_0x373ffc[_0xde89c(0x11d)](_0x872d9c,_0x3f240f),_0x3f240f[_0xde89c(0x12d)](_0x471303((_0x1d950c=this[_0xde89c(0x172)][_0xde89c(0x135)](Ce))!=null?_0x1d950c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xde89c(0x11a)](_0x19d28c=>{const _0x4e2489=_0xde89c;this[_0x4e2489(0x185)][_0x4e2489(0x145)]({'eventID':_0x41b597[_0x4e2489(0x1ac)],'data':{'unitID':this[_0x4e2489(0x115)],'operations':{[_0x19d28c['id']]:{'id':_0x19d28c['id'],'params':JSON['stringify'](_0x19d28c['params'])}}}},this[_0x4e2489(0x115)]);})),_0x3f240f['next'](_0x2ca7a7);})),this['_liveShareService']['getInitialStates'](this[_0x3f8a70(0x115)])['forEach'](_0x507eca=>this[_0x3f8a70(0x185)][_0x3f8a70(0x145)]({'eventID':_0x41b597['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3f8a70(0x115)],'operations':{[_0x507eca['id']]:{'id':_0x507eca['id'],'params':JSON[_0x3f8a70(0x19d)](_0x507eca[_0x3f8a70(0x130)])}}}},this['_unitID']));}[_0xf02626(0x15d)](){const _0x3bdc00=_0xf02626;var _0x353052;this[_0x3bdc00(0x11e)][_0x3bdc00(0x15a)](_0x3bdc00(0x191)),(_0x353052=this['_commandDisposable'])==null||_0x353052['dispose'](),this[_0x3bdc00(0x156)]=null;}[_0xf02626(0x168)](){const _0x50423e=_0xf02626;var _0x22875c;(_0x22875c=this[_0x50423e(0x156)])==null||_0x22875c[_0x50423e(0x117)](),this[_0x50423e(0x11e)][_0x50423e(0x15a)](_0x50423e(0x14f));}['_beIdle'](){const _0x2326f7=_0xf02626;var _0x4d3b8f;this[_0x2326f7(0x11e)][_0x2326f7(0x15a)](_0x2326f7(0x191)),(_0x4d3b8f=this[_0x2326f7(0x156)])==null||_0x4d3b8f[_0x2326f7(0x117)](),this[_0x2326f7(0x156)]=null;}[_0xf02626(0x198)](){const _0x5471e2=_0xf02626;var _0x43265e;this[_0x5471e2(0x11e)]['next'](_0x5471e2(0x1a4)),(_0x43265e=this[_0x5471e2(0x156)])==null||_0x43265e[_0x5471e2(0x117)]();}['_handleOperation'](_0x224d63){const _0x5a8190=_0xf02626;if([_0x5a8190(0x14e),'not-following','offline'][_0x5a8190(0x16f)](this[_0x5a8190(0x1b4)])||!_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x18e)]||_0x224d63[_0x5a8190(0x16a)]['presenter']===this[_0x5a8190(0x185)][_0x5a8190(0x14c)]())return;this['_status']===_0x5a8190(0x191)&&this[_0x5a8190(0x168)]();const _0x5ed6e6=_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x163)];Object['values'](_0x5ed6e6)[_0x5a8190(0x197)](_0x31cd1e=>{const _0x57204c=_0x5a8190;this[_0x57204c(0x157)][_0x57204c(0x1b0)](_0x31cd1e['id'],_0x31cd1e[_0x57204c(0x130)]?JSON[_0x57204c(0x138)](_0x31cd1e[_0x57204c(0x130)]):null,{'fromCollab':!0x0});});}[_0xf02626(0x186)](){const _0x3520bb=_0xf02626;var _0x14ca7b;this[_0x3520bb(0x11e)][_0x3520bb(0x15a)](_0x3520bb(0x1a5)),(_0x14ca7b=this['_commandDisposable'])==null||_0x14ca7b['dispose']();}[_0xf02626(0x113)](){const _0x59b3d2=_0xf02626;this[_0x59b3d2(0x11e)][_0x59b3d2(0x15a)]('idle'),this[_0x59b3d2(0x120)]();}};N=Y([_(0x2,_0x5c1fc8),_(0x3,_0x13dd86(L)),_(0x4,_0x1549da)],N);function Le(){const _0x1f2369=_0xf02626,_0x569ebc=_0x4e3e8c(S),_0x5ee06f=_0x4e3e8c(_0x246214),_0x420c04=_0x262950(()=>_0x5ee06f[_0x1f2369(0x125)](_0x57e1a6[_0x1f2369(0x112)]),void 0x0,!0x1,[]),[_0x2eabc6,_0x5c84c4]=_0x430a47(null),[_0x238d1c,_0x224e16]=_0x430a47(c['IDLE']),_0x582f08=_0x922483(null);return _0x4a4b6f(()=>(_0x420c04&&_0x569ebc[_0x1f2369(0x150)](_0x420c04[_0x1f2369(0x1a2)]())[_0x1f2369(0x15e)](_0x35b1a7=>{const _0x18398d=_0x1f2369;_0x5c84c4(_0x35b1a7),_0x582f08[_0x18398d(0x1ba)]=_0x35b1a7[_0x18398d(0x131)]['subscribe'](_0x59d285=>{_0x224e16(_0x59d285);});}),()=>{const _0x1c2cf3=_0x1f2369;var _0x291bd3;(_0x291bd3=_0x582f08['current'])==null||_0x291bd3[_0x1c2cf3(0x195)](),_0x582f08[_0x1c2cf3(0x1ba)]=null;}),[_0x420c04,_0x569ebc]),_0x2eabc6?_0x3f1572(_0x49c23a,{'align':_0x1f2369(0x158),'disabled':_0x238d1c===c[_0x1f2369(0x11b)],'className':_0x1f2369(0x180),'overlay':_0x3f1572(Re,{'status':_0x238d1c,'coordinator':_0x2eabc6}),'children':_0x3f1572(_0x1f2369(0x13d),{'className':_0x37a6a0(_0x1f2369(0x127),{'univer-cursor-not-allowed':_0x238d1c===c[_0x1f2369(0x11b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x238d1c!==c[_0x1f2369(0x11b)]}),'type':_0x1f2369(0x13d),'children':_0x3f1572(W,{'className':_0x1f2369(0x1ae)})})}):null;}function Re(_0x25b16b){const _0x2954de=_0xf02626,{status:_0x12e09e,coordinator:_0x3cfffd}=_0x25b16b;switch(_0x12e09e){case c[_0x2954de(0x184)]:return _0x3f1572($e,{'coordinator':_0x3cfffd});case c['FOLLOWING']:return _0x3f1572(xe,{'coordinator':_0x3cfffd});case c[_0x2954de(0x14d)]:return _0x3f1572(Pe,{'coordinator':_0x3cfffd});case c['OFFLINE']:return _0x3f1572(Te,{});case c['PRESENTING']:return _0x3f1572(Ae,{'coordinator':_0x3cfffd});default:return null;}}function $e(_0x28b641){const _0x17d842=_0xf02626,{coordinator:_0x3ef61c}=_0x28b641;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572('div',{'className':_0x17d842(0x122),'children':_0x17d842(0x187)}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x3ef61c['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x1db4e6){const _0x9aeece=_0xf02626,{coordinator:_0x21561b}=_0x1db4e6;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x9aeece(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x21561b[_0x9aeece(0x188)](),'children':_0x9aeece(0x169)})]});}function Pe(_0x644145){const _0x49b868=_0xf02626,{coordinator:_0x5d21a9}=_0x644145;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x49b868(0x1b1),{'className':_0x49b868(0x122),'children':_0x49b868(0x1b5)}),_0x3f1572(_0x1555cd,{'variant':_0x49b868(0x1b2),'onClick':()=>_0x5d21a9[_0x49b868(0x15c)](),'children':_0x49b868(0x175)})]});}function Ae(_0x4eda88){const _0x7481f5=_0xf02626,{coordinator:_0x574693}=_0x4eda88;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x7481f5(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7481f5(0x18d)}),_0x3f1572(_0x1555cd,{'variant':_0x7481f5(0x1b7),'onClick':()=>_0x574693[_0x7481f5(0x16d)](),'children':_0x7481f5(0x151)})]});}function Te(){return _0x3f1572(_0x561b68,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xf02626(0x143)],He=(_0x96b58c,_0x144ee2,_0x507d0b,_0x222271)=>{const _0xefecaf=_0xf02626;for(var _0x13fcad=_0x222271>0x1?void 0x0:_0x222271?Fe(_0x144ee2,_0x507d0b):_0x144ee2,_0x42d52c=_0x96b58c[_0xefecaf(0x193)]-0x1,_0x5f0019;_0x42d52c>=0x0;_0x42d52c--)(_0x5f0019=_0x96b58c[_0x42d52c])&&(_0x13fcad=_0x5f0019(_0x13fcad)||_0x13fcad);return _0x13fcad;},A=(_0x5642f2,_0x3d613d)=>(_0x31fffb,_0x4e944a)=>_0x3d613d(_0x31fffb,_0x4e944a,_0x5642f2);let m=class extends _0x5bdbec{constructor(_0x38c48e,_0xcedf1f){const _0x3f32ff=_0xf02626;super(),this[_0x3f32ff(0x13b)]=_0x38c48e,this[_0x3f32ff(0x114)]=_0xcedf1f,this[_0x3f32ff(0x174)]();}[_0xf02626(0x174)](){const _0x55dd1f=_0xf02626;this[_0x55dd1f(0x123)](this[_0x55dd1f(0x114)]['registerComponent'](_0x50c32d['HEADER_MENU'],()=>_0x11eeaf(Le,this[_0x55dd1f(0x13b)])));}};m=He([A(0x0,_0x13dd86(_0x5b65f0)),A(0x1,_0x28a6d1)],m);const ye=_0xf02626(0x18c),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x535922,_0x1e5212,_0x4e0c0d,_0x470e7d)=>{const _0x607782=_0xf02626;for(var _0x2f847e=_0x470e7d>0x1?void 0x0:_0x470e7d?Ue(_0x1e5212,_0x4e0c0d):_0x1e5212,_0x3a3d52=_0x535922[_0x607782(0x193)]-0x1,_0x4f8e2f;_0x3a3d52>=0x0;_0x3a3d52--)(_0x4f8e2f=_0x535922[_0x3a3d52])&&(_0x2f847e=_0x4f8e2f(_0x2f847e)||_0x2f847e);return _0x2f847e;},je=(_0x1004d2,_0x4c201b)=>(_0x376686,_0x2034c4)=>_0x4c201b(_0x376686,_0x2034c4,_0x1004d2);let I=class extends _0x5bdbec{constructor(_0x851793){const _0x3619bd=_0xf02626;super(),this[_0x3619bd(0x1af)]=_0x851793,this['_init']();}[_0xf02626(0x15b)](){[_0x5b6fb4['id'],_0x54eb58['id'],_0x218042['id']]['forEach'](_0x1c96f7=>{const _0x47a757=_0x49a3;this[_0x47a757(0x123)](this[_0x47a757(0x1af)][_0x47a757(0x116)](_0x1c96f7));});}};I=Ve([je(0x0,_0x13dd86(L))],I);var Me=Object[_0xf02626(0x19c)],ke=Object[_0xf02626(0x143)],Ge=(_0x48fbcc,_0x131495,_0x50e9bb)=>_0x131495 in _0x48fbcc?Me(_0x48fbcc,_0x131495,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50e9bb}):_0x48fbcc[_0x131495]=_0x50e9bb,We=(_0x5e6c7c,_0x3fd39f,_0x5f3d48,_0x38183a)=>{const _0x170050=_0xf02626;for(var _0x2f772b=_0x38183a>0x1?void 0x0:_0x38183a?ke(_0x3fd39f,_0x5f3d48):_0x3fd39f,_0x1e7745=_0x5e6c7c[_0x170050(0x193)]-0x1,_0x293523;_0x1e7745>=0x0;_0x1e7745--)(_0x293523=_0x5e6c7c[_0x1e7745])&&(_0x2f772b=_0x293523(_0x2f772b)||_0x2f772b);return _0x2f772b;},F=(_0x218a51,_0x1a8e03)=>(_0x22d847,_0x242c8a)=>_0x1a8e03(_0x22d847,_0x242c8a,_0x218a51),B=(_0x181145,_0x5f28e6,_0x38ec45)=>Ge(_0x181145,typeof _0x5f28e6!=_0xf02626(0x18f)?_0x5f28e6+'':_0x5f28e6,_0x38ec45);function _0x49a3(_0x311e8d,_0x1d2c9f){_0x311e8d=_0x311e8d-0x10d;const _0x3d0625=_0x3d06();let _0x49a302=_0x3d0625[_0x311e8d];return _0x49a302;}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x586d52{constructor(_0x9e3f14=T,_0x24bc5f,_0x349d0d){const _0x5d3475=_0xf02626;super(),this[_0x5d3475(0x194)]=_0x9e3f14,this[_0x5d3475(0x13b)]=_0x24bc5f,this[_0x5d3475(0x172)]=_0x349d0d;const {..._0x205667}=_0x12b34e({},T,this[_0x5d3475(0x194)]);this[_0x5d3475(0x172)]['setConfig'](ye,_0x205667);}[_0xf02626(0x192)](){const _0x417a59=_0xf02626;_0x2186bd(this[_0x417a59(0x13b)],_0x29be9b([[L],[S],[I],[m]],this[_0x417a59(0x194)][_0x417a59(0x167)])),_0x31d787(this['_injector'],[[I]]);}[_0xf02626(0x170)](){const _0x2f8e46=_0xf02626;_0x31d787(this[_0x2f8e46(0x13b)],[[m]]);}};B(b,_0xf02626(0x132),_0x57e1a6[_0xf02626(0x11f)]),B(b,_0xf02626(0x155),Ye),b=We([_0x3a182e(_0x400e7c),F(0x1,_0x13dd86(_0x5b65f0)),F(0x2,_0x5c1fc8)],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 _0x5f210e=_0x4205;(function(_0x77f3f4,_0x4391ac){const _0xeb3014=_0x4205,_0x4700f2=_0x77f3f4();while(!![]){try{const _0xa9259d=parseInt(_0xeb3014(0x220))/0x1*(-parseInt(_0xeb3014(0x21a))/0x2)+-parseInt(_0xeb3014(0x1bd))/0x3*(-parseInt(_0xeb3014(0x205))/0x4)+parseInt(_0xeb3014(0x1dd))/0x5+-parseInt(_0xeb3014(0x1a1))/0x6+parseInt(_0xeb3014(0x1ec))/0x7*(-parseInt(_0xeb3014(0x1ae))/0x8)+-parseInt(_0xeb3014(0x1e1))/0x9+-parseInt(_0xeb3014(0x22a))/0xa*(-parseInt(_0xeb3014(0x1fd))/0xb);if(_0xa9259d===_0x4391ac)break;else _0x4700f2['push'](_0x4700f2['shift']());}catch(_0x429913){_0x4700f2['push'](_0x4700f2['shift']());}}}(_0x6842,0x194f6));var J=Object[_0x5f210e(0x222)],K=(_0x1ca8dc,_0x31bb47,_0x414c95)=>_0x31bb47 in _0x1ca8dc?J(_0x1ca8dc,_0x31bb47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414c95}):_0x1ca8dc[_0x31bb47]=_0x414c95,u=(_0x4dc91b,_0x33d0d7,_0x10facd)=>K(_0x4dc91b,typeof _0x33d0d7!='symbol'?_0x33d0d7+'':_0x33d0d7,_0x10facd);import{Disposable as _0x4347cc,toDisposable as _0x4a1250,IUniverInstanceService as _0x29aa4f,Inject as _0x4937f2,Injector as _0x179f2d,IConfigService as _0x333494,ICommandService as _0x422603,RxDisposable as _0xbb3b5b,UniverInstanceType as _0x4cded3,DisposableCollection as _0x42a077,CommandType as _0x1dfff3,DependentOn as _0x190b72,Plugin as _0x406235,merge as _0x2df91a,registerDependencies as _0x173359,mergeOverrideWithDependencies as _0x20d4d6,touchDependencies as _0x1d822a}from'@univerjs/core';import{useDependency as _0x1394d4,useObservable as _0x30edbe,IUIPartsService as _0x6bedd5,BuiltInUIPart as _0x102999,connectInjector as _0x1ca43}from'@univerjs/ui';import{jsx as _0x28f4b5,jsxs as _0x526545,Fragment as _0x3d9444}from'react/jsx-runtime';import{Dropdown as _0x12b65d,clsx as _0x403356,Button as _0x36a71c}from'@univerjs/design';function _0x6842(){const _0x237418=['evenodd','dispose$','645612rTxkYB','_startLiveShareCoordinator','requireSession','_unitID','defs','_sharedOperations','toString','getMemberID','_handleTerminate','params','fill','stringify','use','248JysBoL','LIVESHARE_TERMINATE','getValue','values','getLiveShareCoordinatorSync','getOwnPropertyDescriptor','OFFLINE','LIVESHARE_REQUEST_HOST','_handleOperation','map','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','_uiPartsService','get','stopPresenting','2634wesgnK','_fetchOperations','setConfig','children','following','_commandDisposable','displayName','svg','idle','url(#$1','disposeWithMe','colorChannel1','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','You\x27re\x20following\x20the\x20presenter','Stop\x20following','currentColor','init','live-share-icon','delete','SAME_OPERATION_SHARE_INTERVAL','none','startFollowing','_beIdle','add','_stopPresenting','reverse','data','forEach','string','_init','1028825bkmOJp','getStatus','onCommandExecuted','subscribe','1681983CFciHU','offline','pipe','xlink:href','_config','executeCommand','from','_stopFollowing','entries','mask','asObservable','36806PgwcLz','sessionStatus$','Stop\x20presenting','_injector','IDLE','unitId','_univerInstanceService','includes','_liveShareService','replace','status$','tag','symbol','Start','button','_handleOffline','complete','817872BWPviN','assign','Present\x20this\x20document','operations','http://www.w3.org/2000/svg','next','_presenter','getLiveShareCoordinator','128czdKqw','div','_configService','onStarting','OPERATION','has','tryStartPresenting','substring','FOLLOWING','trim','UNIVER_SHEET','registerSharedOperation','random','univer-size-4','_commandService','shouldShareOperation','_startFollowing','stopFollowing','_collabSession','_handleOnline','_startPresenting','16czMjLw','You\x27re\x20presenting\x20the\x20document','createInstance','not-following','getConfig','1em','14852zACCQY','_mountLiveShare','defineProperty','memberID','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','event$','default','idSuffix','0\x200\x2017\x2017','registerInitialStateReporter','60drqWGr','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_reporters','set','type','send','LIVESHARE_OPERATION','_status$','PRESENTING','_status','clear','defIds','current','_entities','attrs','LiveShareIcon','getTypeOfUnitAdded$','presenting','length','sheet','dispose','presenter','univerjs-icon\x20univerjs-icon-','HEADER_MENU','getUnitId'];_0x6842=function(){return _0x237418;};return _0x6842();}import{useRef as _0x31ae4f,createElement as _0x3b18d7,forwardRef as _0x2f499a,useState as _0x1f1cf5,useEffect as _0x109cfc}from'react';import{CollaborationEvent as _0x46ef97,parseProtocolChangeset as _0x34a695}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59cabe,SessionStatus as _0x51023d,UniverCollaborationClientPlugin as _0x363746}from'@univerjs-pro/collaboration-client';function _0x4205(_0x1e8f61,_0x18387b){_0x1e8f61=_0x1e8f61-0x19d;const _0x684275=_0x6842();let _0x4205ef=_0x684275[_0x1e8f61];return _0x4205ef;}import{InsertSheetMutation as _0x19729f,SetWorksheetActiveOperation as _0x2e84d3}from'@univerjs/sheets';import{BehaviorSubject as _0x28b056,Subject as _0x4f0fd5}from'rxjs';import{takeUntil as _0x2e8cf2,throttleTime as _0x258f82}from'rxjs/operators';import{SetZoomRatioOperation as _0x31f67b,SetScrollOperation as _0x487be7}from'@univerjs/sheets-ui';function k({ref:_0x9f714e,..._0x49d3e0}){const _0x3651f3=_0x5f210e,{icon:_0x53a727,id:_0x478e97,className:_0x5f4c11,extend:_0x9e631,..._0x30ac5e}=_0x49d3e0,_0x56d5d3=(_0x3651f3(0x242)+_0x478e97+'\x20'+(_0x5f4c11||''))[_0x3651f3(0x20e)](),_0x3caaf1=_0x31ae4f('_'+Oe());return G(_0x53a727,''+_0x478e97,{'defIds':_0x53a727[_0x3651f3(0x237)],'idSuffix':_0x3caaf1[_0x3651f3(0x238)]},{'ref':_0x9f714e,'className':_0x56d5d3,..._0x30ac5e},_0x9e631);}function G(_0x29bf56,_0x478156,_0x2476ce,_0x1b3560,_0x5d6aa6){const _0x2c26e7=_0x5f210e;return _0x3b18d7(_0x29bf56[_0x2c26e7(0x1f7)],{'key':_0x478156,...be(_0x29bf56,_0x2476ce,_0x5d6aa6),..._0x1b3560},(Ee(_0x29bf56,_0x2476ce)['children']||[])[_0x2c26e7(0x1b7)]((_0x419c69,_0x58ded4)=>G(_0x419c69,_0x478156+'-'+_0x29bf56[_0x2c26e7(0x1f7)]+'-'+_0x58ded4,_0x2476ce,void 0x0,_0x5d6aa6)));}function be(_0x3a03ed,_0x40135b,_0x25314e){const _0x24acfd=_0x5f210e,_0x42387f={..._0x3a03ed[_0x24acfd(0x23a)]};_0x25314e!=null&&_0x25314e[_0x24acfd(0x1c8)]&&_0x42387f[_0x24acfd(0x1ab)]===_0x24acfd(0x1c8)&&(_0x42387f[_0x24acfd(0x1ab)]=_0x25314e[_0x24acfd(0x1c8)]),_0x3a03ed[_0x24acfd(0x1f7)]===_0x24acfd(0x1ea)&&_0x42387f['id']&&(_0x42387f['id']=_0x42387f['id']+_0x40135b[_0x24acfd(0x227)]),Object['entries'](_0x42387f)[_0x24acfd(0x1da)](([_0x58dc04,_0x5a7633])=>{const _0x289b33=_0x24acfd;_0x58dc04===_0x289b33(0x1ea)&&typeof _0x5a7633==_0x289b33(0x1db)&&(_0x42387f[_0x58dc04]=_0x5a7633[_0x289b33(0x1f5)](/url\(#(.*)\)/,_0x289b33(0x1c6)+_0x40135b[_0x289b33(0x227)]+')'));});const {defIds:_0xc7ff80}=_0x40135b;return!_0xc7ff80||_0xc7ff80[_0x24acfd(0x23e)]===0x0||(_0x3a03ed['tag']===_0x24acfd(0x1ad)&&_0x42387f[_0x24acfd(0x1e4)]&&(_0x42387f[_0x24acfd(0x1e4)]=_0x42387f[_0x24acfd(0x1e4)]+_0x40135b[_0x24acfd(0x227)]),Object[_0x24acfd(0x1e9)](_0x42387f)[_0x24acfd(0x1da)](([_0x745b18,_0x31b2f9])=>{const _0x39a2ea=_0x24acfd;typeof _0x31b2f9==_0x39a2ea(0x1db)&&(_0x42387f[_0x745b18]=_0x31b2f9['replace'](/url\(#(.*)\)/,'url(#$1'+_0x40135b[_0x39a2ea(0x227)]+')'));})),_0x42387f;}function Ee(_0x2053d5,_0x463b30){const _0x1a8588=_0x5f210e;var _0x19393e;const {defIds:_0x477302}=_0x463b30;return!_0x477302||_0x477302[_0x1a8588(0x23e)]===0x0?_0x2053d5:_0x2053d5[_0x1a8588(0x1f7)]===_0x1a8588(0x1a5)&&((_0x19393e=_0x2053d5[_0x1a8588(0x1c0)])!=null&&_0x19393e[_0x1a8588(0x23e)])?{..._0x2053d5,'children':_0x2053d5[_0x1a8588(0x1c0)][_0x1a8588(0x1b7)](_0x46760c=>typeof _0x46760c['attrs']['id']=='string'&&_0x477302&&_0x477302[_0x1a8588(0x1f3)](_0x46760c[_0x1a8588(0x23a)]['id'])?{..._0x46760c,'attrs':{..._0x46760c[_0x1a8588(0x23a)],'id':_0x46760c[_0x1a8588(0x23a)]['id']+_0x463b30[_0x1a8588(0x227)]}}:_0x46760c)}:_0x2053d5;}function Oe(){const _0x55c2cd=_0x5f210e;return Math[_0x55c2cd(0x211)]()[_0x55c2cd(0x1a7)](0x24)[_0x55c2cd(0x20c)](0x2,0x8);}k[_0x5f210e(0x1c3)]='UniverIcon';const we={'tag':_0x5f210e(0x1c4),'attrs':{'xmlns':_0x5f210e(0x201),'fill':_0x5f210e(0x1d3),'viewBox':_0x5f210e(0x228),'width':_0x5f210e(0x21f),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5f210e(0x1ce),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5f210e(0x224),'fillRule':'evenodd','clipRule':_0x5f210e(0x19f)}}]},W=_0x2f499a(function(_0x5a2083,_0x5aff48){const _0x620a94=_0x5f210e;return _0x3b18d7(k,Object[_0x620a94(0x1fe)]({},_0x5a2083,{'id':_0x620a94(0x1d0),'ref':_0x5aff48,'icon':we}));});W[_0x5f210e(0x1c3)]=_0x5f210e(0x23b);class L extends _0x4347cc{constructor(){const _0x418bd8=_0x5f210e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x418bd8(0x22e),new Set());}[_0x5f210e(0x210)](_0x5cad0d){const _0x3bf3a0=_0x5f210e;return this[_0x3bf3a0(0x1a6)]['add'](_0x5cad0d),_0x4a1250(()=>this[_0x3bf3a0(0x1a6)][_0x3bf3a0(0x1d1)](_0x5cad0d));}[_0x5f210e(0x229)](_0x4cfa56){const _0x585956=_0x5f210e;return this['_reporters'][_0x585956(0x1d6)](_0x4cfa56),_0x4a1250(()=>this[_0x585956(0x22e)][_0x585956(0x1d1)](_0x4cfa56));}[_0x5f210e(0x214)](_0x4e598d){const _0x733095=_0x5f210e;return this[_0x733095(0x1a6)][_0x733095(0x20a)](_0x4e598d);}[_0x5f210e(0x22d)](_0x1e402e){const _0x4f558b=_0x5f210e;return Array[_0x4f558b(0x1e7)](this['_reporters'])[_0x4f558b(0x1b7)](_0x5ca0a4=>_0x5ca0a4(_0x1e402e));}}var Ne=Object[_0x5f210e(0x1b3)],Y=(_0x25be2c,_0x116969,_0x2f9838,_0x1104ad)=>{const _0x450e1f=_0x5f210e;for(var _0x59d459=_0x1104ad>0x1?void 0x0:_0x1104ad?Ne(_0x116969,_0x2f9838):_0x116969,_0x3354b8=_0x25be2c[_0x450e1f(0x23e)]-0x1,_0x130364;_0x3354b8>=0x0;_0x3354b8--)(_0x130364=_0x25be2c[_0x3354b8])&&(_0x59d459=_0x130364(_0x59d459)||_0x59d459);return _0x59d459;},_=(_0x196aba,_0x1752f7)=>(_0x42bd81,_0x53426b)=>_0x1752f7(_0x42bd81,_0x53426b,_0x196aba);let S=class extends _0xbb3b5b{constructor(_0x3a718d,_0x1967bc,_0x1736fd){const _0x3610ef=_0x5f210e;super(),u(this,_0x3610ef(0x239),new Map()),(this[_0x3610ef(0x1f2)]=_0x3a718d,this['_injector']=_0x1967bc,this['_collabSessionService']=_0x1736fd,this[_0x3610ef(0x1dc)]());}async[_0x5f210e(0x204)](_0x7e5df5){const _0x2fe540=_0x5f210e;return this[_0x2fe540(0x239)][_0x2fe540(0x20a)](_0x7e5df5)||await this[_0x2fe540(0x1a2)](_0x7e5df5),this[_0x2fe540(0x239)][_0x2fe540(0x1bb)](_0x7e5df5);}[_0x5f210e(0x1b2)](_0x5a6fbe){const _0x456e44=_0x5f210e;var _0x1275b4;return(_0x1275b4=this[_0x456e44(0x239)]['get'](_0x5a6fbe))!=null?_0x1275b4:null;}['_init'](){const _0x305aca=_0x5f210e;this[_0x305aca(0x1f2)][_0x305aca(0x23c)](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](async _0x26d6b4=>{const _0x93351b=_0x305aca,_0x11661b=_0x26d6b4[_0x93351b(0x19e)]();this['_entities']['has'](_0x11661b)||this[_0x93351b(0x1a2)](_0x11661b);}),this[_0x305aca(0x1f2)]['getTypeOfUnitDisposed$'](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](_0x1b3982=>{const _0x1659d5=_0x305aca,_0x3e0bf7=_0x1b3982[_0x1659d5(0x19e)](),_0xa5f47c=this[_0x1659d5(0x239)]['get'](_0x3e0bf7);_0xa5f47c==null||_0xa5f47c['dispose']();});}async[_0x5f210e(0x1a2)](_0x2791ef){const _0x148183=_0x5f210e,_0xf25f8d=await this['_collabSessionService'][_0x148183(0x1a3)](_0x2791ef),_0x546f28=this[_0x148183(0x1ef)][_0x148183(0x21c)](N,_0x2791ef,_0xf25f8d);return _0x546f28[_0x148183(0x1cf)](),this[_0x148183(0x239)][_0x148183(0x22f)](_0x2791ef,_0x546f28),_0x546f28;}};S=Y([_(0x0,_0x29aa4f),_(0x1,_0x4937f2(_0x179f2d)),_(0x2,_0x4937f2(_0x59cabe))],S);var c=(_0xc00f77=>(_0xc00f77['OFFLINE']=_0x5f210e(0x1e2),_0xc00f77[_0x5f210e(0x1f0)]=_0x5f210e(0x1c5),_0xc00f77[_0x5f210e(0x20d)]=_0x5f210e(0x1c1),_0xc00f77['NOT_FOLLOWING']='not-following',_0xc00f77[_0x5f210e(0x234)]=_0x5f210e(0x23d),_0xc00f77))(c||{});const Ce=_0x5f210e(0x1d2),De=0xc8;let N=class extends _0xbb3b5b{constructor(_0x174e05,_0x3780f3,_0x1e15f4,_0xddd3c6,_0x500fc0){const _0x574a1a=_0x5f210e;super(),u(this,_0x574a1a(0x233),new _0x28b056(_0x574a1a(0x1c5))),u(this,_0x574a1a(0x1f6),this[_0x574a1a(0x233)][_0x574a1a(0x1eb)]()),u(this,_0x574a1a(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x574a1a(0x203),null),(this[_0x574a1a(0x1a4)]=_0x174e05,this[_0x574a1a(0x217)]=_0x3780f3,this[_0x574a1a(0x207)]=_0x1e15f4,this[_0x574a1a(0x1f4)]=_0xddd3c6,this[_0x574a1a(0x213)]=_0x500fc0);}get[_0x5f210e(0x235)](){const _0x5693ff=_0x5f210e;return this[_0x5693ff(0x233)][_0x5693ff(0x1b0)]();}[_0x5f210e(0x240)](){const _0x24ca52=_0x5f210e;var _0x18d3e8;(_0x18d3e8=this[_0x24ca52(0x1c2)])==null||_0x18d3e8[_0x24ca52(0x240)](),this[_0x24ca52(0x233)][_0x24ca52(0x202)](_0x24ca52(0x1c5)),this[_0x24ca52(0x233)][_0x24ca52(0x1fc)]();}[_0x5f210e(0x1de)](){const _0x5a41bb=_0x5f210e;return this[_0x5a41bb(0x235)];}[_0x5f210e(0x1cf)](){const _0x471ed=_0x5f210e;this[_0x471ed(0x1dc)]||(this[_0x471ed(0x1dc)]=!0x0,this['_collabSession'][_0x471ed(0x1ed)]['pipe'](_0x2e8cf2(this[_0x471ed(0x1a0)]))['subscribe'](_0x4c43b0=>{const _0x15958d=_0x471ed;switch(_0x4c43b0){case _0x51023d[_0x15958d(0x1b4)]:this[_0x15958d(0x1fb)]();break;case _0x51023d['ONLINE']:this[_0x15958d(0x218)]();break;}}),this[_0x471ed(0x217)][_0x471ed(0x225)][_0x471ed(0x1e3)](_0x2e8cf2(this[_0x471ed(0x1a0)]))[_0x471ed(0x1e0)](_0xc530e6=>{const _0x286662=_0x471ed,{eventID:_0x5d6772}=_0xc530e6;switch(_0x5d6772){case _0x46ef97[_0x286662(0x1b8)]:this[_0x286662(0x1cb)](_0xc530e6);break;case _0x46ef97[_0x286662(0x232)]:this[_0x286662(0x1b6)](_0xc530e6);break;case _0x46ef97[_0x286662(0x1af)]:this[_0x286662(0x1a9)]();break;case _0x46ef97['NEW_CHANGESETS']:this[_0x286662(0x1c9)](_0xc530e6);break;}}));}[_0x5f210e(0x20b)](){const _0x402c77=_0x5f210e;this[_0x402c77(0x217)]['send']({'eventID':_0x46ef97[_0x402c77(0x1b5)],'data':{'unitID':this[_0x402c77(0x1a4)],'userID':this[_0x402c77(0x217)][_0x402c77(0x1a8)]()}},this[_0x402c77(0x1a4)]);}[_0x5f210e(0x1bc)](){const _0x35c601=_0x5f210e;this[_0x35c601(0x235)]===_0x35c601(0x23d)&&(this[_0x35c601(0x233)][_0x35c601(0x202)]('idle'),this[_0x35c601(0x217)][_0x35c601(0x231)]({'eventID':_0x46ef97[_0x35c601(0x1af)],'data':{'unitID':this[_0x35c601(0x1a4)]}},this['_unitID']));}[_0x5f210e(0x1d4)](){const _0x5be0c6=_0x5f210e;this['_status']==='not-following'&&(this['_status$'][_0x5be0c6(0x202)](_0x5be0c6(0x1c1)),this[_0x5be0c6(0x215)]());}[_0x5f210e(0x216)](){const _0x4e3a41=_0x5f210e;this[_0x4e3a41(0x235)]===_0x4e3a41(0x1c1)&&this[_0x4e3a41(0x1e8)]();}[_0x5f210e(0x1cb)](_0x39f759){const _0x2d28ce=_0x5f210e,{presenter:_0x49be82}=_0x39f759[_0x2d28ce(0x1d9)],_0x4a0661=this[_0x2d28ce(0x217)][_0x2d28ce(0x1a8)]();this['_presenter']=_0x49be82,_0x49be82===_0x4a0661?(this[_0x2d28ce(0x1e8)](),this[_0x2d28ce(0x219)]()):this[_0x2d28ce(0x235)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d28ce(0x215)]());}[_0x5f210e(0x1be)](){const _0x1f4e49=_0x5f210e,_0x24e6b9={'eventID':_0x46ef97['LIVESHARE_FETCH_OPERATIONS']};this[_0x1f4e49(0x217)][_0x1f4e49(0x231)](_0x24e6b9,this[_0x1f4e49(0x1a4)]);}['_handleTerminate'](){const _0x1c59a8=_0x5f210e;this[_0x1c59a8(0x203)]=null,this[_0x1c59a8(0x235)]!==_0x1c59a8(0x23d)&&this[_0x1c59a8(0x1d5)]();}[_0x5f210e(0x1c9)](_0x4ee355){const _0x46b9fb=_0x5f210e;if(this[_0x46b9fb(0x235)]===_0x46b9fb(0x1c1)&&this[_0x46b9fb(0x203)]===_0x4ee355[_0x46b9fb(0x1d9)][_0x46b9fb(0x223)]){const _0x5ad1c6=_0x34a695(_0x4ee355[_0x46b9fb(0x1d9)])['mutations'][_0x46b9fb(0x1d8)]()['find'](_0xd529e3=>_0xd529e3['id']===_0x19729f['id']);if(_0x5ad1c6){const _0x1fe012=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x1f1)],_0x1cb5a0=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x23f)]['id'];setTimeout(()=>{const _0xa8eec5=_0x46b9fb;this[_0xa8eec5(0x213)][_0xa8eec5(0x1e6)](_0x2e84d3['id'],{'unitId':_0x1fe012,'subUnitId':_0x1cb5a0},{'fromCollab':!0x0});});}}}[_0x5f210e(0x219)](){const _0x5155dc=_0x5f210e;this['_status$'][_0x5155dc(0x202)]('presenting');const _0x4a7a16=new Map(),_0x3bf5c4=this['_commandDisposable']=new _0x42a077();_0x3bf5c4[_0x5155dc(0x1d6)](_0x4a1250(()=>{const _0x44c526=_0x5155dc;_0x4a7a16[_0x44c526(0x1da)](_0x48ae2d=>_0x48ae2d[_0x44c526(0x1fc)]()),_0x4a7a16[_0x44c526(0x236)]();})),_0x3bf5c4[_0x5155dc(0x1d6)](this['_commandService'][_0x5155dc(0x1df)](_0x9cf3d8=>{const _0x313a1f=_0x5155dc;var _0x20ad03;if(_0x9cf3d8[_0x313a1f(0x230)]!==_0x1dfff3[_0x313a1f(0x209)]||!this['_liveShareService'][_0x313a1f(0x214)](_0x9cf3d8['id']))return;const {id:_0x3e7b2b}=_0x9cf3d8;let _0x1aed76;_0x4a7a16['has'](_0x3e7b2b)?_0x1aed76=_0x4a7a16['get'](_0x3e7b2b):(_0x1aed76=new _0x4f0fd5(),_0x4a7a16[_0x313a1f(0x22f)](_0x3e7b2b,_0x1aed76),_0x1aed76[_0x313a1f(0x1e3)](_0x258f82((_0x20ad03=this['_configService'][_0x313a1f(0x21e)](Ce))!=null?_0x20ad03:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313a1f(0x1e0)](_0x1d35fb=>{const _0x198ec0=_0x313a1f;this[_0x198ec0(0x217)]['send']({'eventID':_0x46ef97[_0x198ec0(0x232)],'data':{'unitID':this[_0x198ec0(0x1a4)],'operations':{[_0x1d35fb['id']]:{'id':_0x1d35fb['id'],'params':JSON[_0x198ec0(0x1ac)](_0x1d35fb[_0x198ec0(0x1aa)])}}}},this[_0x198ec0(0x1a4)]);})),_0x1aed76['next'](_0x9cf3d8);})),this[_0x5155dc(0x1f4)]['getInitialStates'](this[_0x5155dc(0x1a4)])[_0x5155dc(0x1da)](_0x35b374=>this[_0x5155dc(0x217)][_0x5155dc(0x231)]({'eventID':_0x46ef97['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5155dc(0x1a4)],'operations':{[_0x35b374['id']]:{'id':_0x35b374['id'],'params':JSON[_0x5155dc(0x1ac)](_0x35b374['params'])}}}},this['_unitID']));}[_0x5f210e(0x1d7)](){const _0x366330=_0x5f210e;var _0x50a4fc;this['_status$'][_0x366330(0x202)]('idle'),(_0x50a4fc=this[_0x366330(0x1c2)])==null||_0x50a4fc[_0x366330(0x240)](),this[_0x366330(0x1c2)]=null;}[_0x5f210e(0x215)](){const _0x309dc9=_0x5f210e;var _0x159c0b;(_0x159c0b=this[_0x309dc9(0x1c2)])==null||_0x159c0b[_0x309dc9(0x240)](),this[_0x309dc9(0x233)][_0x309dc9(0x202)]('following');}['_beIdle'](){const _0x392d64=_0x5f210e;var _0x1965f5;this[_0x392d64(0x233)][_0x392d64(0x202)]('idle'),(_0x1965f5=this[_0x392d64(0x1c2)])==null||_0x1965f5['dispose'](),this['_commandDisposable']=null;}[_0x5f210e(0x1e8)](){const _0x27e1dd=_0x5f210e;var _0x13d45b;this[_0x27e1dd(0x233)][_0x27e1dd(0x202)](_0x27e1dd(0x21d)),(_0x13d45b=this[_0x27e1dd(0x1c2)])==null||_0x13d45b['dispose']();}['_handleOperation'](_0xd034e0){const _0x3e6311=_0x5f210e;if([_0x3e6311(0x23d),_0x3e6311(0x21d),_0x3e6311(0x1e2)][_0x3e6311(0x1f3)](this[_0x3e6311(0x235)])||!_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x241)]||_0xd034e0[_0x3e6311(0x1d9)]['presenter']===this[_0x3e6311(0x217)][_0x3e6311(0x1a8)]())return;this['_status']===_0x3e6311(0x1c5)&&this[_0x3e6311(0x215)]();const _0x23361d=_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x200)];Object[_0x3e6311(0x1b1)](_0x23361d)['forEach'](_0x22898a=>{const _0x2812f2=_0x3e6311;this['_commandService'][_0x2812f2(0x1e6)](_0x22898a['id'],_0x22898a['params']?JSON['parse'](_0x22898a[_0x2812f2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x5f210e(0x1fb)](){const _0x3250d9=_0x5f210e;var _0x33c312;this[_0x3250d9(0x233)][_0x3250d9(0x202)](_0x3250d9(0x1e2)),(_0x33c312=this[_0x3250d9(0x1c2)])==null||_0x33c312[_0x3250d9(0x240)]();}['_handleOnline'](){const _0x2a94c3=_0x5f210e;this[_0x2a94c3(0x233)][_0x2a94c3(0x202)](_0x2a94c3(0x1c5)),this[_0x2a94c3(0x1be)]();}};N=Y([_(0x2,_0x333494),_(0x3,_0x4937f2(L)),_(0x4,_0x422603)],N);function Le(){const _0x58f66f=_0x5f210e,_0x228b58=_0x1394d4(S),_0x5bd705=_0x1394d4(_0x29aa4f),_0xfa6d6f=_0x30edbe(()=>_0x5bd705[_0x58f66f(0x1b9)](_0x4cded3[_0x58f66f(0x20f)]),void 0x0,!0x1,[]),[_0x408d08,_0x33fa29]=_0x1f1cf5(null),[_0x3eaa33,_0xd1d095]=_0x1f1cf5(c[_0x58f66f(0x1f0)]),_0x1a2e98=_0x31ae4f(null);return _0x109cfc(()=>(_0xfa6d6f&&_0x228b58['getLiveShareCoordinator'](_0xfa6d6f[_0x58f66f(0x19e)]())['then'](_0x4294a4=>{const _0x3473ca=_0x58f66f;_0x33fa29(_0x4294a4),_0x1a2e98['current']=_0x4294a4['status$'][_0x3473ca(0x1e0)](_0x2ec87b=>{_0xd1d095(_0x2ec87b);});}),()=>{const _0x10148f=_0x58f66f;var _0x2c46d5;(_0x2c46d5=_0x1a2e98[_0x10148f(0x238)])==null||_0x2c46d5['unsubscribe'](),_0x1a2e98['current']=null;}),[_0xfa6d6f,_0x228b58]),_0x408d08?_0x28f4b5(_0x12b65d,{'align':'end','disabled':_0x3eaa33===c[_0x58f66f(0x1b4)],'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':_0x28f4b5(Re,{'status':_0x3eaa33,'coordinator':_0x408d08}),'children':_0x28f4b5('button',{'className':_0x403356(_0x58f66f(0x1ca),{'univer-cursor-not-allowed':_0x3eaa33===c[_0x58f66f(0x1b4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3eaa33!==c[_0x58f66f(0x1b4)]}),'type':_0x58f66f(0x1fa),'children':_0x28f4b5(W,{'className':_0x58f66f(0x212)})})}):null;}function Re(_0x8f9d25){const _0x202da3=_0x5f210e,{status:_0x3ebe08,coordinator:_0x18e96f}=_0x8f9d25;switch(_0x3ebe08){case c[_0x202da3(0x1f0)]:return _0x28f4b5($e,{'coordinator':_0x18e96f});case c[_0x202da3(0x20d)]:return _0x28f4b5(xe,{'coordinator':_0x18e96f});case c['NOT_FOLLOWING']:return _0x28f4b5(Pe,{'coordinator':_0x18e96f});case c[_0x202da3(0x1b4)]:return _0x28f4b5(Te,{});case c[_0x202da3(0x234)]:return _0x28f4b5(Ae,{'coordinator':_0x18e96f});default:return null;}}function $e(_0x12c38f){const _0x5550f9=_0x5f210e,{coordinator:_0x4cab37}=_0x12c38f;return _0x526545(_0x3d9444,{'children':[_0x28f4b5('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5550f9(0x1ff)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x4cab37['tryStartPresenting'](),'children':_0x5550f9(0x1f9)})]});}function xe(_0x179491){const _0x36c323=_0x5f210e,{coordinator:_0x215503}=_0x179491;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x36c323(0x206),{'className':_0x36c323(0x22c),'children':_0x36c323(0x1cc)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x215503[_0x36c323(0x216)](),'children':_0x36c323(0x1cd)})]});}function Pe(_0x280386){const _0x55c36c=_0x5f210e,{coordinator:_0x1dda82}=_0x280386;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x55c36c(0x206),{'className':_0x55c36c(0x22c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x28f4b5(_0x36a71c,{'variant':'text','onClick':()=>_0x1dda82[_0x55c36c(0x1d4)](),'children':'Start\x20following'})]});}function Ae(_0x556d30){const _0xd99098=_0x5f210e,{coordinator:_0x3b5a07}=_0x556d30;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0xd99098(0x206),{'className':_0xd99098(0x22c),'children':_0xd99098(0x21b)}),_0x28f4b5(_0x36a71c,{'variant':_0xd99098(0x226),'onClick':()=>_0x3b5a07[_0xd99098(0x1bc)](),'children':_0xd99098(0x1ee)})]});}function Te(){return _0x28f4b5(_0x3d9444,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5f210e(0x1b3)],He=(_0x614e67,_0x5b7117,_0x310441,_0x18f6a7)=>{const _0x56789a=_0x5f210e;for(var _0x1a0ca4=_0x18f6a7>0x1?void 0x0:_0x18f6a7?Fe(_0x5b7117,_0x310441):_0x5b7117,_0x26e932=_0x614e67[_0x56789a(0x23e)]-0x1,_0x17ea06;_0x26e932>=0x0;_0x26e932--)(_0x17ea06=_0x614e67[_0x26e932])&&(_0x1a0ca4=_0x17ea06(_0x1a0ca4)||_0x1a0ca4);return _0x1a0ca4;},A=(_0x573a5d,_0x2ee4f2)=>(_0x212a65,_0x1ff948)=>_0x2ee4f2(_0x212a65,_0x1ff948,_0x573a5d);let m=class extends _0x4347cc{constructor(_0x6072c,_0x57d4f2){const _0x210867=_0x5f210e;super(),this[_0x210867(0x1ef)]=_0x6072c,this['_uiPartsService']=_0x57d4f2,this[_0x210867(0x221)]();}[_0x5f210e(0x221)](){const _0x4af5d3=_0x5f210e;this['disposeWithMe'](this[_0x4af5d3(0x1ba)]['registerComponent'](_0x102999[_0x4af5d3(0x19d)],()=>_0x1ca43(Le,this[_0x4af5d3(0x1ef)])));}};m=He([A(0x0,_0x4937f2(_0x179f2d)),A(0x1,_0x6bedd5)],m);const ye='live-share.config',T={};var Ue=Object[_0x5f210e(0x1b3)],Ve=(_0x98c8b1,_0x16017f,_0x47cb7f,_0x4ff2bb)=>{const _0x2e1b2c=_0x5f210e;for(var _0x3a7015=_0x4ff2bb>0x1?void 0x0:_0x4ff2bb?Ue(_0x16017f,_0x47cb7f):_0x16017f,_0x1cadf3=_0x98c8b1[_0x2e1b2c(0x23e)]-0x1,_0x4ef1be;_0x1cadf3>=0x0;_0x1cadf3--)(_0x4ef1be=_0x98c8b1[_0x1cadf3])&&(_0x3a7015=_0x4ef1be(_0x3a7015)||_0x3a7015);return _0x3a7015;},je=(_0x5abc9e,_0x3a0755)=>(_0x2b4d78,_0x52240c)=>_0x3a0755(_0x2b4d78,_0x52240c,_0x5abc9e);let I=class extends _0x4347cc{constructor(_0x2be0e9){const _0x4d5ecb=_0x5f210e;super(),this[_0x4d5ecb(0x1f4)]=_0x2be0e9,this['_init']();}['_init'](){const _0x47349f=_0x5f210e;[_0x31f67b['id'],_0x487be7['id'],_0x2e84d3['id']][_0x47349f(0x1da)](_0x122e40=>{const _0x23a3af=_0x47349f;this[_0x23a3af(0x1c7)](this['_liveShareService'][_0x23a3af(0x210)](_0x122e40));});}};I=Ve([je(0x0,_0x4937f2(L))],I);var Me=Object[_0x5f210e(0x222)],ke=Object[_0x5f210e(0x1b3)],Ge=(_0x4b9c9a,_0x4fa621,_0x2ad77d)=>_0x4fa621 in _0x4b9c9a?Me(_0x4b9c9a,_0x4fa621,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad77d}):_0x4b9c9a[_0x4fa621]=_0x2ad77d,We=(_0x3ad683,_0x35e603,_0x35b713,_0x44d90c)=>{for(var _0x536587=_0x44d90c>0x1?void 0x0:_0x44d90c?ke(_0x35e603,_0x35b713):_0x35e603,_0x3d1a5=_0x3ad683['length']-0x1,_0x172b5a;_0x3d1a5>=0x0;_0x3d1a5--)(_0x172b5a=_0x3ad683[_0x3d1a5])&&(_0x536587=_0x172b5a(_0x536587)||_0x536587);return _0x536587;},F=(_0x3f5441,_0x36e944)=>(_0xde85b,_0x4e3465)=>_0x36e944(_0xde85b,_0x4e3465,_0x3f5441),B=(_0x1b039e,_0x2685d0,_0x16bc47)=>Ge(_0x1b039e,typeof _0x2685d0!=_0x5f210e(0x1f8)?_0x2685d0+'':_0x2685d0,_0x16bc47);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x406235{constructor(_0x110357=T,_0x154dcc,_0x428787){const _0x480e9b=_0x5f210e;super(),this[_0x480e9b(0x1e5)]=_0x110357,this[_0x480e9b(0x1ef)]=_0x154dcc,this[_0x480e9b(0x207)]=_0x428787;const {..._0x10025f}=_0x2df91a({},T,this['_config']);this[_0x480e9b(0x207)][_0x480e9b(0x1bf)](ye,_0x10025f);}[_0x5f210e(0x208)](){const _0x3a1e2b=_0x5f210e;_0x173359(this['_injector'],_0x20d4d6([[L],[S],[I],[m]],this[_0x3a1e2b(0x1e5)]['override'])),_0x1d822a(this[_0x3a1e2b(0x1ef)],[[I]]);}['onRendered'](){const _0x5d6b78=_0x5f210e;_0x1d822a(this[_0x5d6b78(0x1ef)],[[m]]);}};B(b,_0x5f210e(0x230),_0x4cded3['UNIVER_UNKNOWN']),B(b,_0x5f210e(0x22b),Ye),b=We([_0x190b72(_0x363746),F(0x1,_0x4937f2(_0x179f2d)),F(0x2,_0x333494)],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 _0x51945a=_0x522f;function _0x32a6(){const _0x64d1cb=['3087525Iqkwxk','5882404TSKzMY','1506876pukGCF','getUnitId','getLiveShareStatus','startRow','getStatus','startColumn','getSheetId','stopFollowing','12TEjuhz','executeCommand','_injector','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','getId','_initialize','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','5568IvZHoJ','537500VMoJLc','syncExecuteCommand','startPresenting','IDLE','10OwlkKA','_commandService','6lXnArd','573332kihXve','getActiveWorkbook','8kPZpZj','5998491BtDnOH','get'];_0x32a6=function(){return _0x64d1cb;};return _0x32a6();}(function(_0x1b646a,_0x2fc0fe){const _0x3db0ea=_0x522f,_0xc75d1=_0x1b646a();while(!![]){try{const _0x557c5d=-parseInt(_0x3db0ea(0x177))/0x1+parseInt(_0x3db0ea(0x17f))/0x2*(parseInt(_0x3db0ea(0x17e))/0x3)+parseInt(_0x3db0ea(0x178))/0x4+parseInt(_0x3db0ea(0x184))/0x5+parseInt(_0x3db0ea(0x18e))/0x6*(-parseInt(_0x3db0ea(0x186))/0x7)+-parseInt(_0x3db0ea(0x181))/0x8*(parseInt(_0x3db0ea(0x182))/0x9)+-parseInt(_0x3db0ea(0x17c))/0xa*(-parseInt(_0x3db0ea(0x185))/0xb);if(_0x557c5d===_0x2fc0fe)break;else _0xc75d1['push'](_0xc75d1['shift']());}catch(_0x54081a){_0xc75d1['push'](_0xc75d1['shift']());}}}(_0x32a6,0xb8e7d));import{LiveShareController as _0x4ff4aa,LiveShareStatus as _0x2a2d81}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c4911}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x18d3f9}from'@univerjs/sheets';function _0x522f(_0x2b8cc9,_0x1c5616){_0x2b8cc9=_0x2b8cc9-0x16f;const _0x32a6c4=_0x32a6();let _0x522fd5=_0x32a6c4[_0x2b8cc9];return _0x522fd5;}import{SetScrollOperation as _0x39312a}from'@univerjs/sheets-ui';import{FRange as _0x363235}from'@univerjs/sheets/facade';import{FUniver as _0x47b429,FEnum as _0x36e1e3}from'@univerjs/core/facade';class I extends _0x363235{[_0x51945a(0x174)](_0x443719,_0x17675a,_0x1c259f,_0x17416b,_0x5d0501){const _0x1c0dc9=_0x51945a,_0x925940=_0x443719[_0x1c0dc9(0x183)](_0x4ff4aa),_0xcac281=_0x443719[_0x1c0dc9(0x183)](_0x4c4911),_0x4d412e=_0x17675a[_0x1c0dc9(0x187)](),_0x42cc61=_0x17675a['getActiveSheet'](),_0xb5b64e=_0x925940[_0x1c0dc9(0x176)](_0x4d412e);(_0xb5b64e==null?void 0x0:_0xb5b64e[_0x1c0dc9(0x18a)]())!==_0x2a2d81['PRESENTING']||(_0x1c259f['getSheetId']()!==_0x42cc61[_0x1c0dc9(0x18c)]()&&this[_0x1c0dc9(0x17d)][_0x1c0dc9(0x18f)](_0x18d3f9['id'],{'unitId':_0x4d412e,'subUnitId':_0x1c259f[_0x1c0dc9(0x18c)]()}),!_0xcac281['getRenderById'](_0x4d412e))||_0x5d0501[_0x1c0dc9(0x179)](_0x39312a['id'],{'unitId':_0x17675a['getUnitId'](),'sheetId':_0x1c259f[_0x1c0dc9(0x18c)](),'sheetViewStartRow':_0x17416b[_0x1c0dc9(0x189)],'sheetViewStartColumn':_0x17416b[_0x1c0dc9(0x18b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x363235['extend'](I);class m extends _0x47b429{[_0x51945a(0x188)](){const _0x567ed8=_0x51945a;var _0x337683,_0x13aef0;const _0x1d6a7d=this[_0x567ed8(0x16f)][_0x567ed8(0x183)](_0x4ff4aa),_0x346df1=(_0x337683=this[_0x567ed8(0x180)]())==null?void 0x0:_0x337683[_0x567ed8(0x173)]();if(!_0x346df1)throw new Error('No\x20active\x20workbook\x20found.');const _0x52ceb9=_0x1d6a7d[_0x567ed8(0x176)](_0x346df1);return(_0x13aef0=_0x52ceb9==null?void 0x0:_0x52ceb9[_0x567ed8(0x18a)]())!=null?_0x13aef0:_0x2a2d81[_0x567ed8(0x17b)];}['startFollowing'](){const _0x1b7b94=_0x51945a;var _0x5bd31e;const _0x12b72d=this[_0x1b7b94(0x16f)][_0x1b7b94(0x183)](_0x4ff4aa),_0x35ae0a=(_0x5bd31e=this[_0x1b7b94(0x180)]())==null?void 0x0:_0x5bd31e['getId']();if(!_0x35ae0a)throw new Error(_0x1b7b94(0x175));const _0x107e73=_0x12b72d[_0x1b7b94(0x176)](_0x35ae0a);if(!_0x107e73)throw new Error(_0x1b7b94(0x171));_0x107e73['startFollowing']();}[_0x51945a(0x18d)](){const _0x2e2744=_0x51945a;var _0x20458a;const _0x128d6d=this[_0x2e2744(0x16f)][_0x2e2744(0x183)](_0x4ff4aa),_0x59ffae=(_0x20458a=this['getActiveWorkbook']())==null?void 0x0:_0x20458a[_0x2e2744(0x173)]();if(!_0x59ffae)throw new Error(_0x2e2744(0x175));const _0x3c6a67=_0x128d6d[_0x2e2744(0x176)](_0x59ffae);if(!_0x3c6a67)throw new Error(_0x2e2744(0x171));_0x3c6a67[_0x2e2744(0x18d)]();}[_0x51945a(0x17a)](){const _0x98636d=_0x51945a;var _0x5c9b76;const _0x5a3188=this[_0x98636d(0x16f)][_0x98636d(0x183)](_0x4ff4aa),_0x1df158=(_0x5c9b76=this[_0x98636d(0x180)]())==null?void 0x0:_0x5c9b76['getId']();if(!_0x1df158)throw new Error('No\x20active\x20workbook\x20found.');const _0x21ec05=_0x5a3188['getLiveShareCoordinatorSync'](_0x1df158);if(!_0x21ec05)throw new Error(_0x98636d(0x171));_0x21ec05['tryStartPresenting']();}[_0x51945a(0x170)](){const _0x55ad39=_0x51945a;var _0x17e2e4;const _0x37fbd8=this['_injector']['get'](_0x4ff4aa),_0x25467e=(_0x17e2e4=this[_0x55ad39(0x180)]())==null?void 0x0:_0x17e2e4[_0x55ad39(0x173)]();if(!_0x25467e)throw new Error(_0x55ad39(0x175));const _0x197cce=_0x37fbd8['getLiveShareCoordinatorSync'](_0x25467e);if(!_0x197cce)throw new Error(_0x55ad39(0x171));_0x197cce[_0x55ad39(0x170)]();}}_0x47b429[_0x51945a(0x172)](m);class C extends _0x36e1e3{get['LiveShareStatusEnum'](){return _0x2a2d81;}}_0x36e1e3['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xf02626=_0x49a3;(function(_0x5331b5,_0x52e9fb){const _0x5438da=_0x49a3,_0x1b6945=_0x5331b5();while(!![]){try{const _0x39df04=-parseInt(_0x5438da(0x1a3))/0x1*(-parseInt(_0x5438da(0x17f))/0x2)+-parseInt(_0x5438da(0x133))/0x3*(parseInt(_0x5438da(0x121))/0x4)+-parseInt(_0x5438da(0x13f))/0x5+parseInt(_0x5438da(0x1b8))/0x6*(-parseInt(_0x5438da(0x141))/0x7)+-parseInt(_0x5438da(0x159))/0x8*(parseInt(_0x5438da(0x17c))/0x9)+-parseInt(_0x5438da(0x13e))/0xa+parseInt(_0x5438da(0x126))/0xb;if(_0x39df04===_0x52e9fb)break;else _0x1b6945['push'](_0x1b6945['shift']());}catch(_0x3cfe13){_0x1b6945['push'](_0x1b6945['shift']());}}}(_0x3d06,0xa7477));var J=Object[_0xf02626(0x19c)],K=(_0x5ae237,_0x29cd28,_0x1e5d46)=>_0x29cd28 in _0x5ae237?J(_0x5ae237,_0x29cd28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e5d46}):_0x5ae237[_0x29cd28]=_0x1e5d46,u=(_0x2615bb,_0x50aec8,_0x21469a)=>K(_0x2615bb,typeof _0x50aec8!=_0xf02626(0x18f)?_0x50aec8+'':_0x50aec8,_0x21469a);import{Disposable as _0x5bdbec,toDisposable as _0x5dd282,IUniverInstanceService as _0x246214,Inject as _0x13dd86,Injector as _0x5b65f0,IConfigService as _0x5c1fc8,ICommandService as _0x1549da,RxDisposable as _0x443063,UniverInstanceType as _0x57e1a6,DisposableCollection as _0xd84b84,CommandType as _0x13511b,DependentOn as _0x3a182e,Plugin as _0x586d52,merge as _0x12b34e,registerDependencies as _0x2186bd,mergeOverrideWithDependencies as _0x29be9b,touchDependencies as _0x31d787}from'@univerjs/core';import{useDependency as _0x4e3e8c,useObservable as _0x262950,IUIPartsService as _0x28a6d1,BuiltInUIPart as _0x50c32d,connectInjector as _0x11eeaf}from'@univerjs/ui';import{jsx as _0x3f1572,jsxs as _0x10f9f1,Fragment as _0x561b68}from'react/jsx-runtime';import{Dropdown as _0x49c23a,clsx as _0x37a6a0,Button as _0x1555cd}from'@univerjs/design';import{useRef as _0x922483,createElement as _0x2b29b6,forwardRef as _0x50463f,useState as _0x430a47,useEffect as _0x4a4b6f}from'react';import{CollaborationEvent as _0x41b597,parseProtocolChangeset as _0x1061ca}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x374a90,SessionStatus as _0x1c448e,UniverCollaborationClientPlugin as _0x400e7c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2abf81,SetWorksheetActiveOperation as _0x218042}from'@univerjs/sheets';import{BehaviorSubject as _0x26b77b,Subject as _0x5a754c}from'rxjs';import{takeUntil as _0x461f78,throttleTime as _0x471303}from'rxjs/operators';import{SetZoomRatioOperation as _0x5b6fb4,SetScrollOperation as _0x54eb58}from'@univerjs/sheets-ui';function k({ref:_0x45d44c,..._0x431046}){const _0x311fa5=_0xf02626,{icon:_0x5c5c05,id:_0x33ae4a,className:_0x443872,extend:_0x1606c0,..._0x12d90a}=_0x431046,_0x20e022=(_0x311fa5(0x154)+_0x33ae4a+'\x20'+(_0x443872||''))[_0x311fa5(0x1a8)](),_0x1f4950=_0x922483('_'+Oe());return G(_0x5c5c05,''+_0x33ae4a,{'defIds':_0x5c5c05['defIds'],'idSuffix':_0x1f4950[_0x311fa5(0x1ba)]},{'ref':_0x45d44c,'className':_0x20e022,..._0x12d90a},_0x1606c0);}function G(_0x1dbecf,_0x3a8b92,_0x4e6a23,_0x16ea80,_0x36b1bf){const _0x50e375=_0xf02626;return _0x2b29b6(_0x1dbecf[_0x50e375(0x1b6)],{'key':_0x3a8b92,...be(_0x1dbecf,_0x4e6a23,_0x36b1bf),..._0x16ea80},(Ee(_0x1dbecf,_0x4e6a23)[_0x50e375(0x146)]||[])[_0x50e375(0x181)]((_0x24911d,_0x4b43a2)=>G(_0x24911d,_0x3a8b92+'-'+_0x1dbecf[_0x50e375(0x1b6)]+'-'+_0x4b43a2,_0x4e6a23,void 0x0,_0x36b1bf)));}function be(_0x133a49,_0x300770,_0x292fe8){const _0x456b02=_0xf02626,_0x3266a8={..._0x133a49[_0x456b02(0x164)]};_0x292fe8!=null&&_0x292fe8['colorChannel1']&&_0x3266a8[_0x456b02(0x199)]==='colorChannel1'&&(_0x3266a8[_0x456b02(0x199)]=_0x292fe8[_0x456b02(0x1ad)]),_0x133a49[_0x456b02(0x1b6)]==='mask'&&_0x3266a8['id']&&(_0x3266a8['id']=_0x3266a8['id']+_0x300770[_0x456b02(0x17e)]),Object['entries'](_0x3266a8)['forEach'](([_0x51a95d,_0x41d3fc])=>{const _0xe87a3a=_0x456b02;_0x51a95d===_0xe87a3a(0x19b)&&typeof _0x41d3fc==_0xe87a3a(0x19a)&&(_0x3266a8[_0x51a95d]=_0x41d3fc[_0xe87a3a(0x162)](/url\(#(.*)\)/,_0xe87a3a(0x178)+_0x300770[_0xe87a3a(0x17e)]+')'));});const {defIds:_0x1f9156}=_0x300770;return!_0x1f9156||_0x1f9156[_0x456b02(0x193)]===0x0||(_0x133a49['tag']===_0x456b02(0x152)&&_0x3266a8[_0x456b02(0x171)]&&(_0x3266a8[_0x456b02(0x171)]=_0x3266a8[_0x456b02(0x171)]+_0x300770[_0x456b02(0x17e)]),Object[_0x456b02(0x139)](_0x3266a8)[_0x456b02(0x197)](([_0x4a9000,_0x5377c9])=>{const _0x32d52a=_0x456b02;typeof _0x5377c9==_0x32d52a(0x19a)&&(_0x3266a8[_0x4a9000]=_0x5377c9['replace'](/url\(#(.*)\)/,_0x32d52a(0x178)+_0x300770[_0x32d52a(0x17e)]+')'));})),_0x3266a8;}function Ee(_0x5a80d,_0x43d5cd){const _0x3107af=_0xf02626;var _0x3dcc55;const {defIds:_0x46967b}=_0x43d5cd;return!_0x46967b||_0x46967b[_0x3107af(0x193)]===0x0?_0x5a80d:_0x5a80d[_0x3107af(0x1b6)]===_0x3107af(0x18b)&&((_0x3dcc55=_0x5a80d[_0x3107af(0x146)])!=null&&_0x3dcc55['length'])?{..._0x5a80d,'children':_0x5a80d[_0x3107af(0x146)]['map'](_0x237538=>typeof _0x237538[_0x3107af(0x164)]['id']==_0x3107af(0x19a)&&_0x46967b&&_0x46967b['includes'](_0x237538[_0x3107af(0x164)]['id'])?{..._0x237538,'attrs':{..._0x237538[_0x3107af(0x164)],'id':_0x237538[_0x3107af(0x164)]['id']+_0x43d5cd[_0x3107af(0x17e)]}}:_0x237538)}:_0x5a80d;}function Oe(){const _0x1bf817=_0xf02626;return Math[_0x1bf817(0x1a9)]()[_0x1bf817(0x16c)](0x24)['substring'](0x2,0x8);}k[_0xf02626(0x140)]=_0xf02626(0x142);const we={'tag':_0xf02626(0x179),'attrs':{'xmlns':_0xf02626(0x148),'fill':_0xf02626(0x14a),'viewBox':_0xf02626(0x153),'width':_0xf02626(0x12a),'height':'1em'},'children':[{'tag':_0xf02626(0x128),'attrs':{'fill':_0xf02626(0x119),'d':_0xf02626(0x137)}},{'tag':'path','attrs':{'fill':_0xf02626(0x119),'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':_0xf02626(0x10f)}}]},W=_0x50463f(function(_0x4e555a,_0x50af5d){const _0x20c472=_0xf02626;return _0x2b29b6(k,Object[_0x20c472(0x1ab)]({},_0x4e555a,{'id':_0x20c472(0x1a6),'ref':_0x50af5d,'icon':we}));});function _0x3d06(){const _0x14053c=['_collabSession','_handleOffline','Present\x20this\x20document','stopFollowing','_collabSessionService','sessionStatus$','defs','live-share.config','You\x27re\x20presenting\x20the\x20document','presenter','symbol','_startPresenting','idle','onStarting','length','_config','unsubscribe','_beIdle','forEach','_stopFollowing','fill','string','mask','defineProperty','stringify','get','getInitialStates','createInstance','sheet','getUnitId','615577PSTsWq','not-following','offline','live-share-icon','OPERATION','trim','random','_startLiveShareCoordinator','assign','LIVESHARE_OPERATION','colorChannel1','univer-size-4','_liveShareService','executeCommand','div','text','add','_status','You\x27re\x20not\x20following\x20the\x20presenter','tag','default','9930OggFyi','reverse','current','getLiveShareCoordinatorSync','PRESENTING','evenodd','event$','onCommandExecuted','UNIVER_SHEET','_handleOnline','_uiPartsService','_unitID','registerSharedOperation','dispose','_handleNewHost','currentColor','subscribe','OFFLINE','_reporters','set','_status$','UNIVER_UNKNOWN','_fetchOperations','74524wcwGef','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','dispose$','getCurrentTypeOfUnit$','16373324bTqYAQ','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','path','tryStartPresenting','1em','from','registerInitialStateReporter','pipe','ONLINE','LIVESHARE_NEW_HOST','params','status$','type','39RhzziQ','init','getConfig','_handleNewChangeSets','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','parse','entries','SAME_OPERATION_SHARE_INTERVAL','_injector','FOLLOWING','button','846610yaNAnk','4034360ORMdVM','displayName','7kOLEdu','UniverIcon','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','send','children','has','http://www.w3.org/2000/svg','shouldShareOperation','none','_handleTerminate','getMemberID','NOT_FOLLOWING','presenting','following','getLiveShareCoordinator','Stop\x20presenting','use','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','pluginName','_commandDisposable','_commandService','end','14048ffhAMu','next','_init','startFollowing','_stopPresenting','then','NEW_CHANGESETS','find','LIVESHARE_TERMINATE','replace','operations','attrs','requireSession','getTypeOfUnitAdded$','override','_startFollowing','Stop\x20following','data','getStatus','toString','stopPresenting','_presenter','includes','onRendered','xlink:href','_configService','getTypeOfUnitDisposed$','_mountLiveShare','Start\x20following','clear','memberID','url(#$1','svg','_univerInstanceService','_entities','4608WzNYdl','complete','idSuffix','4mqiFwe','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','map','_sharedOperations','unitId','IDLE'];_0x3d06=function(){return _0x14053c;};return _0x3d06();}W['displayName']='LiveShareIcon';class L extends _0x5bdbec{constructor(){const _0x2ff16a=_0xf02626;super(...arguments),u(this,_0x2ff16a(0x182),new Set()),u(this,_0x2ff16a(0x11c),new Set());}[_0xf02626(0x116)](_0x35d38d){const _0x4d8fcb=_0xf02626;return this[_0x4d8fcb(0x182)][_0x4d8fcb(0x1b3)](_0x35d38d),_0x5dd282(()=>this['_sharedOperations']['delete'](_0x35d38d));}[_0xf02626(0x12c)](_0x11b68c){const _0x1121d6=_0xf02626;return this['_reporters'][_0x1121d6(0x1b3)](_0x11b68c),_0x5dd282(()=>this[_0x1121d6(0x11c)]['delete'](_0x11b68c));}[_0xf02626(0x149)](_0x204eb8){const _0xee7915=_0xf02626;return this[_0xee7915(0x182)]['has'](_0x204eb8);}[_0xf02626(0x19f)](_0x167c9b){const _0x53156c=_0xf02626;return Array[_0x53156c(0x12b)](this[_0x53156c(0x11c)])['map'](_0x479681=>_0x479681(_0x167c9b));}}var Ne=Object[_0xf02626(0x143)],Y=(_0x5b521b,_0x1bdfd9,_0xad5fcb,_0x17bf4a)=>{const _0x3beed3=_0xf02626;for(var _0x49c3d3=_0x17bf4a>0x1?void 0x0:_0x17bf4a?Ne(_0x1bdfd9,_0xad5fcb):_0x1bdfd9,_0x4a3bae=_0x5b521b[_0x3beed3(0x193)]-0x1,_0x43efd8;_0x4a3bae>=0x0;_0x4a3bae--)(_0x43efd8=_0x5b521b[_0x4a3bae])&&(_0x49c3d3=_0x43efd8(_0x49c3d3)||_0x49c3d3);return _0x49c3d3;},_=(_0x4a9e82,_0x27f1e2)=>(_0x14a2b2,_0x528b69)=>_0x27f1e2(_0x14a2b2,_0x528b69,_0x4a9e82);let S=class extends _0x443063{constructor(_0xc53126,_0x483ead,_0x235aff){const _0x4a8dd8=_0xf02626;super(),u(this,_0x4a8dd8(0x17b),new Map()),(this[_0x4a8dd8(0x17a)]=_0xc53126,this['_injector']=_0x483ead,this[_0x4a8dd8(0x189)]=_0x235aff,this[_0x4a8dd8(0x15b)]());}async[_0xf02626(0x150)](_0x3208e4){const _0x51fb65=_0xf02626;return this[_0x51fb65(0x17b)][_0x51fb65(0x147)](_0x3208e4)||await this[_0x51fb65(0x1aa)](_0x3208e4),this[_0x51fb65(0x17b)][_0x51fb65(0x19e)](_0x3208e4);}[_0xf02626(0x10d)](_0x1939e2){const _0x19b3e0=_0xf02626;var _0x46ce0c;return(_0x46ce0c=this['_entities'][_0x19b3e0(0x19e)](_0x1939e2))!=null?_0x46ce0c:null;}[_0xf02626(0x15b)](){const _0x4d3ace=_0xf02626;this['_univerInstanceService'][_0x4d3ace(0x166)](_0x57e1a6[_0x4d3ace(0x112)])[_0x4d3ace(0x12d)](_0x461f78(this[_0x4d3ace(0x124)]))[_0x4d3ace(0x11a)](async _0xbd6c95=>{const _0x4039dc=_0x4d3ace,_0x561176=_0xbd6c95[_0x4039dc(0x1a2)]();this[_0x4039dc(0x17b)][_0x4039dc(0x147)](_0x561176)||this[_0x4039dc(0x1aa)](_0x561176);}),this[_0x4d3ace(0x17a)][_0x4d3ace(0x173)](_0x57e1a6['UNIVER_SHEET'])[_0x4d3ace(0x12d)](_0x461f78(this['dispose$']))[_0x4d3ace(0x11a)](_0x1ff344=>{const _0x314ae9=_0x4d3ace,_0x5b2922=_0x1ff344[_0x314ae9(0x1a2)](),_0x217dca=this[_0x314ae9(0x17b)][_0x314ae9(0x19e)](_0x5b2922);_0x217dca==null||_0x217dca['dispose']();});}async[_0xf02626(0x1aa)](_0x133e6b){const _0x43a699=_0xf02626,_0x54f095=await this[_0x43a699(0x189)][_0x43a699(0x165)](_0x133e6b),_0xa92cf6=this[_0x43a699(0x13b)][_0x43a699(0x1a0)](N,_0x133e6b,_0x54f095);return _0xa92cf6['init'](),this[_0x43a699(0x17b)]['set'](_0x133e6b,_0xa92cf6),_0xa92cf6;}};S=Y([_(0x0,_0x246214),_(0x1,_0x13dd86(_0x5b65f0)),_(0x2,_0x13dd86(_0x374a90))],S);var c=(_0x14c111=>(_0x14c111[_0xf02626(0x11b)]=_0xf02626(0x1a5),_0x14c111[_0xf02626(0x184)]='idle',_0x14c111[_0xf02626(0x13c)]=_0xf02626(0x14f),_0x14c111['NOT_FOLLOWING']=_0xf02626(0x1a4),_0x14c111[_0xf02626(0x10e)]=_0xf02626(0x14e),_0x14c111))(c||{});const Ce=_0xf02626(0x13a),De=0xc8;let N=class extends _0x443063{constructor(_0x3fa637,_0x3ddbee,_0x58c38e,_0x5192fc,_0x5b802d){const _0x2cc365=_0xf02626;super(),u(this,_0x2cc365(0x11e),new _0x26b77b('idle')),u(this,_0x2cc365(0x131),this[_0x2cc365(0x11e)]['asObservable']()),u(this,_0x2cc365(0x15b),!0x1),u(this,_0x2cc365(0x156),null),u(this,_0x2cc365(0x16e),null),(this[_0x2cc365(0x115)]=_0x3fa637,this[_0x2cc365(0x185)]=_0x3ddbee,this[_0x2cc365(0x172)]=_0x58c38e,this[_0x2cc365(0x1af)]=_0x5192fc,this[_0x2cc365(0x157)]=_0x5b802d);}get[_0xf02626(0x1b4)](){const _0x5820f9=_0xf02626;return this[_0x5820f9(0x11e)]['getValue']();}[_0xf02626(0x117)](){const _0x590d48=_0xf02626;var _0x5baa3b;(_0x5baa3b=this[_0x590d48(0x156)])==null||_0x5baa3b[_0x590d48(0x117)](),this[_0x590d48(0x11e)][_0x590d48(0x15a)](_0x590d48(0x191)),this[_0x590d48(0x11e)][_0x590d48(0x17d)]();}[_0xf02626(0x16b)](){const _0x107eb2=_0xf02626;return this[_0x107eb2(0x1b4)];}[_0xf02626(0x134)](){const _0x3187b9=_0xf02626;this[_0x3187b9(0x15b)]||(this[_0x3187b9(0x15b)]=!0x0,this['_collabSession'][_0x3187b9(0x18a)][_0x3187b9(0x12d)](_0x461f78(this[_0x3187b9(0x124)]))[_0x3187b9(0x11a)](_0xbf4875=>{const _0x44cd72=_0x3187b9;switch(_0xbf4875){case _0x1c448e[_0x44cd72(0x11b)]:this[_0x44cd72(0x186)]();break;case _0x1c448e[_0x44cd72(0x12e)]:this[_0x44cd72(0x113)]();break;}}),this[_0x3187b9(0x185)][_0x3187b9(0x110)]['pipe'](_0x461f78(this['dispose$']))['subscribe'](_0x236c21=>{const _0x583246=_0x3187b9,{eventID:_0x2c7084}=_0x236c21;switch(_0x2c7084){case _0x41b597[_0x583246(0x12f)]:this[_0x583246(0x118)](_0x236c21);break;case _0x41b597['LIVESHARE_OPERATION']:this['_handleOperation'](_0x236c21);break;case _0x41b597[_0x583246(0x161)]:this['_handleTerminate']();break;case _0x41b597[_0x583246(0x15f)]:this[_0x583246(0x136)](_0x236c21);break;}}));}[_0xf02626(0x129)](){const _0x4b6c31=_0xf02626;this[_0x4b6c31(0x185)]['send']({'eventID':_0x41b597['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4b6c31(0x115)],'userID':this[_0x4b6c31(0x185)]['getMemberID']()}},this[_0x4b6c31(0x115)]);}[_0xf02626(0x16d)](){const _0x4d942e=_0xf02626;this[_0x4d942e(0x1b4)]===_0x4d942e(0x14e)&&(this[_0x4d942e(0x11e)][_0x4d942e(0x15a)](_0x4d942e(0x191)),this[_0x4d942e(0x185)][_0x4d942e(0x145)]({'eventID':_0x41b597[_0x4d942e(0x161)],'data':{'unitID':this[_0x4d942e(0x115)]}},this[_0x4d942e(0x115)]));}[_0xf02626(0x15c)](){const _0x496c3e=_0xf02626;this[_0x496c3e(0x1b4)]==='not-following'&&(this[_0x496c3e(0x11e)][_0x496c3e(0x15a)](_0x496c3e(0x14f)),this[_0x496c3e(0x168)]());}[_0xf02626(0x188)](){const _0x5e5cea=_0xf02626;this['_status']===_0x5e5cea(0x14f)&&this[_0x5e5cea(0x198)]();}[_0xf02626(0x118)](_0x357d9d){const _0x568dfc=_0xf02626,{presenter:_0x3fa8fb}=_0x357d9d['data'],_0x3ca1e4=this['_collabSession'][_0x568dfc(0x14c)]();this[_0x568dfc(0x16e)]=_0x3fa8fb,_0x3fa8fb===_0x3ca1e4?(this[_0x568dfc(0x198)](),this[_0x568dfc(0x190)]()):this[_0x568dfc(0x1b4)]!==_0x568dfc(0x1a4)&&(this[_0x568dfc(0x15d)](),this[_0x568dfc(0x168)]());}[_0xf02626(0x120)](){const _0x25c34e=_0xf02626,_0x2578f7={'eventID':_0x41b597[_0x25c34e(0x144)]};this['_collabSession']['send'](_0x2578f7,this[_0x25c34e(0x115)]);}[_0xf02626(0x14b)](){const _0x345f75=_0xf02626;this[_0x345f75(0x16e)]=null,this[_0x345f75(0x1b4)]!=='presenting'&&this[_0x345f75(0x196)]();}['_handleNewChangeSets'](_0x46197e){const _0x148a21=_0xf02626;if(this[_0x148a21(0x1b4)]===_0x148a21(0x14f)&&this[_0x148a21(0x16e)]===_0x46197e[_0x148a21(0x16a)][_0x148a21(0x177)]){const _0x5b050f=_0x1061ca(_0x46197e[_0x148a21(0x16a)])['mutations'][_0x148a21(0x1b9)]()[_0x148a21(0x160)](_0x3cf610=>_0x3cf610['id']===_0x2abf81['id']);if(_0x5b050f){const _0x69a22d=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x183)],_0xd951ea=_0x5b050f[_0x148a21(0x130)][_0x148a21(0x1a1)]['id'];setTimeout(()=>{const _0x5b0a20=_0x148a21;this[_0x5b0a20(0x157)][_0x5b0a20(0x1b0)](_0x218042['id'],{'unitId':_0x69a22d,'subUnitId':_0xd951ea},{'fromCollab':!0x0});});}}}[_0xf02626(0x190)](){const _0x3f8a70=_0xf02626;this[_0x3f8a70(0x11e)][_0x3f8a70(0x15a)]('presenting');const _0x373ffc=new Map(),_0x2bd11f=this['_commandDisposable']=new _0xd84b84();_0x2bd11f[_0x3f8a70(0x1b3)](_0x5dd282(()=>{const _0x544f17=_0x3f8a70;_0x373ffc[_0x544f17(0x197)](_0x293094=>_0x293094[_0x544f17(0x17d)]()),_0x373ffc[_0x544f17(0x176)]();})),_0x2bd11f[_0x3f8a70(0x1b3)](this['_commandService'][_0x3f8a70(0x111)](_0x2ca7a7=>{const _0xde89c=_0x3f8a70;var _0x1d950c;if(_0x2ca7a7[_0xde89c(0x132)]!==_0x13511b[_0xde89c(0x1a7)]||!this[_0xde89c(0x1af)][_0xde89c(0x149)](_0x2ca7a7['id']))return;const {id:_0x872d9c}=_0x2ca7a7;let _0x3f240f;_0x373ffc[_0xde89c(0x147)](_0x872d9c)?_0x3f240f=_0x373ffc[_0xde89c(0x19e)](_0x872d9c):(_0x3f240f=new _0x5a754c(),_0x373ffc[_0xde89c(0x11d)](_0x872d9c,_0x3f240f),_0x3f240f[_0xde89c(0x12d)](_0x471303((_0x1d950c=this[_0xde89c(0x172)][_0xde89c(0x135)](Ce))!=null?_0x1d950c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xde89c(0x11a)](_0x19d28c=>{const _0x4e2489=_0xde89c;this[_0x4e2489(0x185)][_0x4e2489(0x145)]({'eventID':_0x41b597[_0x4e2489(0x1ac)],'data':{'unitID':this[_0x4e2489(0x115)],'operations':{[_0x19d28c['id']]:{'id':_0x19d28c['id'],'params':JSON['stringify'](_0x19d28c['params'])}}}},this[_0x4e2489(0x115)]);})),_0x3f240f['next'](_0x2ca7a7);})),this['_liveShareService']['getInitialStates'](this[_0x3f8a70(0x115)])['forEach'](_0x507eca=>this[_0x3f8a70(0x185)][_0x3f8a70(0x145)]({'eventID':_0x41b597['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3f8a70(0x115)],'operations':{[_0x507eca['id']]:{'id':_0x507eca['id'],'params':JSON[_0x3f8a70(0x19d)](_0x507eca[_0x3f8a70(0x130)])}}}},this['_unitID']));}[_0xf02626(0x15d)](){const _0x3bdc00=_0xf02626;var _0x353052;this[_0x3bdc00(0x11e)][_0x3bdc00(0x15a)](_0x3bdc00(0x191)),(_0x353052=this['_commandDisposable'])==null||_0x353052['dispose'](),this[_0x3bdc00(0x156)]=null;}[_0xf02626(0x168)](){const _0x50423e=_0xf02626;var _0x22875c;(_0x22875c=this[_0x50423e(0x156)])==null||_0x22875c[_0x50423e(0x117)](),this[_0x50423e(0x11e)][_0x50423e(0x15a)](_0x50423e(0x14f));}['_beIdle'](){const _0x2326f7=_0xf02626;var _0x4d3b8f;this[_0x2326f7(0x11e)][_0x2326f7(0x15a)](_0x2326f7(0x191)),(_0x4d3b8f=this[_0x2326f7(0x156)])==null||_0x4d3b8f[_0x2326f7(0x117)](),this[_0x2326f7(0x156)]=null;}[_0xf02626(0x198)](){const _0x5471e2=_0xf02626;var _0x43265e;this[_0x5471e2(0x11e)]['next'](_0x5471e2(0x1a4)),(_0x43265e=this[_0x5471e2(0x156)])==null||_0x43265e[_0x5471e2(0x117)]();}['_handleOperation'](_0x224d63){const _0x5a8190=_0xf02626;if([_0x5a8190(0x14e),'not-following','offline'][_0x5a8190(0x16f)](this[_0x5a8190(0x1b4)])||!_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x18e)]||_0x224d63[_0x5a8190(0x16a)]['presenter']===this[_0x5a8190(0x185)][_0x5a8190(0x14c)]())return;this['_status']===_0x5a8190(0x191)&&this[_0x5a8190(0x168)]();const _0x5ed6e6=_0x224d63[_0x5a8190(0x16a)][_0x5a8190(0x163)];Object['values'](_0x5ed6e6)[_0x5a8190(0x197)](_0x31cd1e=>{const _0x57204c=_0x5a8190;this[_0x57204c(0x157)][_0x57204c(0x1b0)](_0x31cd1e['id'],_0x31cd1e[_0x57204c(0x130)]?JSON[_0x57204c(0x138)](_0x31cd1e[_0x57204c(0x130)]):null,{'fromCollab':!0x0});});}[_0xf02626(0x186)](){const _0x3520bb=_0xf02626;var _0x14ca7b;this[_0x3520bb(0x11e)][_0x3520bb(0x15a)](_0x3520bb(0x1a5)),(_0x14ca7b=this['_commandDisposable'])==null||_0x14ca7b['dispose']();}[_0xf02626(0x113)](){const _0x59b3d2=_0xf02626;this[_0x59b3d2(0x11e)][_0x59b3d2(0x15a)]('idle'),this[_0x59b3d2(0x120)]();}};N=Y([_(0x2,_0x5c1fc8),_(0x3,_0x13dd86(L)),_(0x4,_0x1549da)],N);function Le(){const _0x1f2369=_0xf02626,_0x569ebc=_0x4e3e8c(S),_0x5ee06f=_0x4e3e8c(_0x246214),_0x420c04=_0x262950(()=>_0x5ee06f[_0x1f2369(0x125)](_0x57e1a6[_0x1f2369(0x112)]),void 0x0,!0x1,[]),[_0x2eabc6,_0x5c84c4]=_0x430a47(null),[_0x238d1c,_0x224e16]=_0x430a47(c['IDLE']),_0x582f08=_0x922483(null);return _0x4a4b6f(()=>(_0x420c04&&_0x569ebc[_0x1f2369(0x150)](_0x420c04[_0x1f2369(0x1a2)]())[_0x1f2369(0x15e)](_0x35b1a7=>{const _0x18398d=_0x1f2369;_0x5c84c4(_0x35b1a7),_0x582f08[_0x18398d(0x1ba)]=_0x35b1a7[_0x18398d(0x131)]['subscribe'](_0x59d285=>{_0x224e16(_0x59d285);});}),()=>{const _0x1c2cf3=_0x1f2369;var _0x291bd3;(_0x291bd3=_0x582f08['current'])==null||_0x291bd3[_0x1c2cf3(0x195)](),_0x582f08[_0x1c2cf3(0x1ba)]=null;}),[_0x420c04,_0x569ebc]),_0x2eabc6?_0x3f1572(_0x49c23a,{'align':_0x1f2369(0x158),'disabled':_0x238d1c===c[_0x1f2369(0x11b)],'className':_0x1f2369(0x180),'overlay':_0x3f1572(Re,{'status':_0x238d1c,'coordinator':_0x2eabc6}),'children':_0x3f1572(_0x1f2369(0x13d),{'className':_0x37a6a0(_0x1f2369(0x127),{'univer-cursor-not-allowed':_0x238d1c===c[_0x1f2369(0x11b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x238d1c!==c[_0x1f2369(0x11b)]}),'type':_0x1f2369(0x13d),'children':_0x3f1572(W,{'className':_0x1f2369(0x1ae)})})}):null;}function Re(_0x25b16b){const _0x2954de=_0xf02626,{status:_0x12e09e,coordinator:_0x3cfffd}=_0x25b16b;switch(_0x12e09e){case c[_0x2954de(0x184)]:return _0x3f1572($e,{'coordinator':_0x3cfffd});case c['FOLLOWING']:return _0x3f1572(xe,{'coordinator':_0x3cfffd});case c[_0x2954de(0x14d)]:return _0x3f1572(Pe,{'coordinator':_0x3cfffd});case c['OFFLINE']:return _0x3f1572(Te,{});case c['PRESENTING']:return _0x3f1572(Ae,{'coordinator':_0x3cfffd});default:return null;}}function $e(_0x28b641){const _0x17d842=_0xf02626,{coordinator:_0x3ef61c}=_0x28b641;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572('div',{'className':_0x17d842(0x122),'children':_0x17d842(0x187)}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x3ef61c['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x1db4e6){const _0x9aeece=_0xf02626,{coordinator:_0x21561b}=_0x1db4e6;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x9aeece(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3f1572(_0x1555cd,{'onClick':()=>_0x21561b[_0x9aeece(0x188)](),'children':_0x9aeece(0x169)})]});}function Pe(_0x644145){const _0x49b868=_0xf02626,{coordinator:_0x5d21a9}=_0x644145;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x49b868(0x1b1),{'className':_0x49b868(0x122),'children':_0x49b868(0x1b5)}),_0x3f1572(_0x1555cd,{'variant':_0x49b868(0x1b2),'onClick':()=>_0x5d21a9[_0x49b868(0x15c)](),'children':_0x49b868(0x175)})]});}function Ae(_0x4eda88){const _0x7481f5=_0xf02626,{coordinator:_0x574693}=_0x4eda88;return _0x10f9f1(_0x561b68,{'children':[_0x3f1572(_0x7481f5(0x1b1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7481f5(0x18d)}),_0x3f1572(_0x1555cd,{'variant':_0x7481f5(0x1b7),'onClick':()=>_0x574693[_0x7481f5(0x16d)](),'children':_0x7481f5(0x151)})]});}function Te(){return _0x3f1572(_0x561b68,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xf02626(0x143)],He=(_0x96b58c,_0x144ee2,_0x507d0b,_0x222271)=>{const _0xefecaf=_0xf02626;for(var _0x13fcad=_0x222271>0x1?void 0x0:_0x222271?Fe(_0x144ee2,_0x507d0b):_0x144ee2,_0x42d52c=_0x96b58c[_0xefecaf(0x193)]-0x1,_0x5f0019;_0x42d52c>=0x0;_0x42d52c--)(_0x5f0019=_0x96b58c[_0x42d52c])&&(_0x13fcad=_0x5f0019(_0x13fcad)||_0x13fcad);return _0x13fcad;},A=(_0x5642f2,_0x3d613d)=>(_0x31fffb,_0x4e944a)=>_0x3d613d(_0x31fffb,_0x4e944a,_0x5642f2);let m=class extends _0x5bdbec{constructor(_0x38c48e,_0xcedf1f){const _0x3f32ff=_0xf02626;super(),this[_0x3f32ff(0x13b)]=_0x38c48e,this[_0x3f32ff(0x114)]=_0xcedf1f,this[_0x3f32ff(0x174)]();}[_0xf02626(0x174)](){const _0x55dd1f=_0xf02626;this[_0x55dd1f(0x123)](this[_0x55dd1f(0x114)]['registerComponent'](_0x50c32d['HEADER_MENU'],()=>_0x11eeaf(Le,this[_0x55dd1f(0x13b)])));}};m=He([A(0x0,_0x13dd86(_0x5b65f0)),A(0x1,_0x28a6d1)],m);const ye=_0xf02626(0x18c),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x535922,_0x1e5212,_0x4e0c0d,_0x470e7d)=>{const _0x607782=_0xf02626;for(var _0x2f847e=_0x470e7d>0x1?void 0x0:_0x470e7d?Ue(_0x1e5212,_0x4e0c0d):_0x1e5212,_0x3a3d52=_0x535922[_0x607782(0x193)]-0x1,_0x4f8e2f;_0x3a3d52>=0x0;_0x3a3d52--)(_0x4f8e2f=_0x535922[_0x3a3d52])&&(_0x2f847e=_0x4f8e2f(_0x2f847e)||_0x2f847e);return _0x2f847e;},je=(_0x1004d2,_0x4c201b)=>(_0x376686,_0x2034c4)=>_0x4c201b(_0x376686,_0x2034c4,_0x1004d2);let I=class extends _0x5bdbec{constructor(_0x851793){const _0x3619bd=_0xf02626;super(),this[_0x3619bd(0x1af)]=_0x851793,this['_init']();}[_0xf02626(0x15b)](){[_0x5b6fb4['id'],_0x54eb58['id'],_0x218042['id']]['forEach'](_0x1c96f7=>{const _0x47a757=_0x49a3;this[_0x47a757(0x123)](this[_0x47a757(0x1af)][_0x47a757(0x116)](_0x1c96f7));});}};I=Ve([je(0x0,_0x13dd86(L))],I);var Me=Object[_0xf02626(0x19c)],ke=Object[_0xf02626(0x143)],Ge=(_0x48fbcc,_0x131495,_0x50e9bb)=>_0x131495 in _0x48fbcc?Me(_0x48fbcc,_0x131495,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50e9bb}):_0x48fbcc[_0x131495]=_0x50e9bb,We=(_0x5e6c7c,_0x3fd39f,_0x5f3d48,_0x38183a)=>{const _0x170050=_0xf02626;for(var _0x2f772b=_0x38183a>0x1?void 0x0:_0x38183a?ke(_0x3fd39f,_0x5f3d48):_0x3fd39f,_0x1e7745=_0x5e6c7c[_0x170050(0x193)]-0x1,_0x293523;_0x1e7745>=0x0;_0x1e7745--)(_0x293523=_0x5e6c7c[_0x1e7745])&&(_0x2f772b=_0x293523(_0x2f772b)||_0x2f772b);return _0x2f772b;},F=(_0x218a51,_0x1a8e03)=>(_0x22d847,_0x242c8a)=>_0x1a8e03(_0x22d847,_0x242c8a,_0x218a51),B=(_0x181145,_0x5f28e6,_0x38ec45)=>Ge(_0x181145,typeof _0x5f28e6!=_0xf02626(0x18f)?_0x5f28e6+'':_0x5f28e6,_0x38ec45);function _0x49a3(_0x311e8d,_0x1d2c9f){_0x311e8d=_0x311e8d-0x10d;const _0x3d0625=_0x3d06();let _0x49a302=_0x3d0625[_0x311e8d];return _0x49a302;}const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x586d52{constructor(_0x9e3f14=T,_0x24bc5f,_0x349d0d){const _0x5d3475=_0xf02626;super(),this[_0x5d3475(0x194)]=_0x9e3f14,this[_0x5d3475(0x13b)]=_0x24bc5f,this[_0x5d3475(0x172)]=_0x349d0d;const {..._0x205667}=_0x12b34e({},T,this[_0x5d3475(0x194)]);this[_0x5d3475(0x172)]['setConfig'](ye,_0x205667);}[_0xf02626(0x192)](){const _0x417a59=_0xf02626;_0x2186bd(this[_0x417a59(0x13b)],_0x29be9b([[L],[S],[I],[m]],this[_0x417a59(0x194)][_0x417a59(0x167)])),_0x31d787(this['_injector'],[[I]]);}[_0xf02626(0x170)](){const _0x2f8e46=_0xf02626;_0x31d787(this[_0x2f8e46(0x13b)],[[m]]);}};B(b,_0xf02626(0x132),_0x57e1a6[_0xf02626(0x11f)]),B(b,_0xf02626(0x155),Ye),b=We([_0x3a182e(_0x400e7c),F(0x1,_0x13dd86(_0x5b65f0)),F(0x2,_0x5c1fc8)],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 _0x5f210e=_0x4205;(function(_0x77f3f4,_0x4391ac){const _0xeb3014=_0x4205,_0x4700f2=_0x77f3f4();while(!![]){try{const _0xa9259d=parseInt(_0xeb3014(0x220))/0x1*(-parseInt(_0xeb3014(0x21a))/0x2)+-parseInt(_0xeb3014(0x1bd))/0x3*(-parseInt(_0xeb3014(0x205))/0x4)+parseInt(_0xeb3014(0x1dd))/0x5+-parseInt(_0xeb3014(0x1a1))/0x6+parseInt(_0xeb3014(0x1ec))/0x7*(-parseInt(_0xeb3014(0x1ae))/0x8)+-parseInt(_0xeb3014(0x1e1))/0x9+-parseInt(_0xeb3014(0x22a))/0xa*(-parseInt(_0xeb3014(0x1fd))/0xb);if(_0xa9259d===_0x4391ac)break;else _0x4700f2['push'](_0x4700f2['shift']());}catch(_0x429913){_0x4700f2['push'](_0x4700f2['shift']());}}}(_0x6842,0x194f6));var J=Object[_0x5f210e(0x222)],K=(_0x1ca8dc,_0x31bb47,_0x414c95)=>_0x31bb47 in _0x1ca8dc?J(_0x1ca8dc,_0x31bb47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414c95}):_0x1ca8dc[_0x31bb47]=_0x414c95,u=(_0x4dc91b,_0x33d0d7,_0x10facd)=>K(_0x4dc91b,typeof _0x33d0d7!='symbol'?_0x33d0d7+'':_0x33d0d7,_0x10facd);import{Disposable as _0x4347cc,toDisposable as _0x4a1250,IUniverInstanceService as _0x29aa4f,Inject as _0x4937f2,Injector as _0x179f2d,IConfigService as _0x333494,ICommandService as _0x422603,RxDisposable as _0xbb3b5b,UniverInstanceType as _0x4cded3,DisposableCollection as _0x42a077,CommandType as _0x1dfff3,DependentOn as _0x190b72,Plugin as _0x406235,merge as _0x2df91a,registerDependencies as _0x173359,mergeOverrideWithDependencies as _0x20d4d6,touchDependencies as _0x1d822a}from'@univerjs/core';import{useDependency as _0x1394d4,useObservable as _0x30edbe,IUIPartsService as _0x6bedd5,BuiltInUIPart as _0x102999,connectInjector as _0x1ca43}from'@univerjs/ui';import{jsx as _0x28f4b5,jsxs as _0x526545,Fragment as _0x3d9444}from'react/jsx-runtime';import{Dropdown as _0x12b65d,clsx as _0x403356,Button as _0x36a71c}from'@univerjs/design';function _0x6842(){const _0x237418=['evenodd','dispose$','645612rTxkYB','_startLiveShareCoordinator','requireSession','_unitID','defs','_sharedOperations','toString','getMemberID','_handleTerminate','params','fill','stringify','use','248JysBoL','LIVESHARE_TERMINATE','getValue','values','getLiveShareCoordinatorSync','getOwnPropertyDescriptor','OFFLINE','LIVESHARE_REQUEST_HOST','_handleOperation','map','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','_uiPartsService','get','stopPresenting','2634wesgnK','_fetchOperations','setConfig','children','following','_commandDisposable','displayName','svg','idle','url(#$1','disposeWithMe','colorChannel1','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','You\x27re\x20following\x20the\x20presenter','Stop\x20following','currentColor','init','live-share-icon','delete','SAME_OPERATION_SHARE_INTERVAL','none','startFollowing','_beIdle','add','_stopPresenting','reverse','data','forEach','string','_init','1028825bkmOJp','getStatus','onCommandExecuted','subscribe','1681983CFciHU','offline','pipe','xlink:href','_config','executeCommand','from','_stopFollowing','entries','mask','asObservable','36806PgwcLz','sessionStatus$','Stop\x20presenting','_injector','IDLE','unitId','_univerInstanceService','includes','_liveShareService','replace','status$','tag','symbol','Start','button','_handleOffline','complete','817872BWPviN','assign','Present\x20this\x20document','operations','http://www.w3.org/2000/svg','next','_presenter','getLiveShareCoordinator','128czdKqw','div','_configService','onStarting','OPERATION','has','tryStartPresenting','substring','FOLLOWING','trim','UNIVER_SHEET','registerSharedOperation','random','univer-size-4','_commandService','shouldShareOperation','_startFollowing','stopFollowing','_collabSession','_handleOnline','_startPresenting','16czMjLw','You\x27re\x20presenting\x20the\x20document','createInstance','not-following','getConfig','1em','14852zACCQY','_mountLiveShare','defineProperty','memberID','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','event$','default','idSuffix','0\x200\x2017\x2017','registerInitialStateReporter','60drqWGr','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_reporters','set','type','send','LIVESHARE_OPERATION','_status$','PRESENTING','_status','clear','defIds','current','_entities','attrs','LiveShareIcon','getTypeOfUnitAdded$','presenting','length','sheet','dispose','presenter','univerjs-icon\x20univerjs-icon-','HEADER_MENU','getUnitId'];_0x6842=function(){return _0x237418;};return _0x6842();}import{useRef as _0x31ae4f,createElement as _0x3b18d7,forwardRef as _0x2f499a,useState as _0x1f1cf5,useEffect as _0x109cfc}from'react';import{CollaborationEvent as _0x46ef97,parseProtocolChangeset as _0x34a695}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59cabe,SessionStatus as _0x51023d,UniverCollaborationClientPlugin as _0x363746}from'@univerjs-pro/collaboration-client';function _0x4205(_0x1e8f61,_0x18387b){_0x1e8f61=_0x1e8f61-0x19d;const _0x684275=_0x6842();let _0x4205ef=_0x684275[_0x1e8f61];return _0x4205ef;}import{InsertSheetMutation as _0x19729f,SetWorksheetActiveOperation as _0x2e84d3}from'@univerjs/sheets';import{BehaviorSubject as _0x28b056,Subject as _0x4f0fd5}from'rxjs';import{takeUntil as _0x2e8cf2,throttleTime as _0x258f82}from'rxjs/operators';import{SetZoomRatioOperation as _0x31f67b,SetScrollOperation as _0x487be7}from'@univerjs/sheets-ui';function k({ref:_0x9f714e,..._0x49d3e0}){const _0x3651f3=_0x5f210e,{icon:_0x53a727,id:_0x478e97,className:_0x5f4c11,extend:_0x9e631,..._0x30ac5e}=_0x49d3e0,_0x56d5d3=(_0x3651f3(0x242)+_0x478e97+'\x20'+(_0x5f4c11||''))[_0x3651f3(0x20e)](),_0x3caaf1=_0x31ae4f('_'+Oe());return G(_0x53a727,''+_0x478e97,{'defIds':_0x53a727[_0x3651f3(0x237)],'idSuffix':_0x3caaf1[_0x3651f3(0x238)]},{'ref':_0x9f714e,'className':_0x56d5d3,..._0x30ac5e},_0x9e631);}function G(_0x29bf56,_0x478156,_0x2476ce,_0x1b3560,_0x5d6aa6){const _0x2c26e7=_0x5f210e;return _0x3b18d7(_0x29bf56[_0x2c26e7(0x1f7)],{'key':_0x478156,...be(_0x29bf56,_0x2476ce,_0x5d6aa6),..._0x1b3560},(Ee(_0x29bf56,_0x2476ce)['children']||[])[_0x2c26e7(0x1b7)]((_0x419c69,_0x58ded4)=>G(_0x419c69,_0x478156+'-'+_0x29bf56[_0x2c26e7(0x1f7)]+'-'+_0x58ded4,_0x2476ce,void 0x0,_0x5d6aa6)));}function be(_0x3a03ed,_0x40135b,_0x25314e){const _0x24acfd=_0x5f210e,_0x42387f={..._0x3a03ed[_0x24acfd(0x23a)]};_0x25314e!=null&&_0x25314e[_0x24acfd(0x1c8)]&&_0x42387f[_0x24acfd(0x1ab)]===_0x24acfd(0x1c8)&&(_0x42387f[_0x24acfd(0x1ab)]=_0x25314e[_0x24acfd(0x1c8)]),_0x3a03ed[_0x24acfd(0x1f7)]===_0x24acfd(0x1ea)&&_0x42387f['id']&&(_0x42387f['id']=_0x42387f['id']+_0x40135b[_0x24acfd(0x227)]),Object['entries'](_0x42387f)[_0x24acfd(0x1da)](([_0x58dc04,_0x5a7633])=>{const _0x289b33=_0x24acfd;_0x58dc04===_0x289b33(0x1ea)&&typeof _0x5a7633==_0x289b33(0x1db)&&(_0x42387f[_0x58dc04]=_0x5a7633[_0x289b33(0x1f5)](/url\(#(.*)\)/,_0x289b33(0x1c6)+_0x40135b[_0x289b33(0x227)]+')'));});const {defIds:_0xc7ff80}=_0x40135b;return!_0xc7ff80||_0xc7ff80[_0x24acfd(0x23e)]===0x0||(_0x3a03ed['tag']===_0x24acfd(0x1ad)&&_0x42387f[_0x24acfd(0x1e4)]&&(_0x42387f[_0x24acfd(0x1e4)]=_0x42387f[_0x24acfd(0x1e4)]+_0x40135b[_0x24acfd(0x227)]),Object[_0x24acfd(0x1e9)](_0x42387f)[_0x24acfd(0x1da)](([_0x745b18,_0x31b2f9])=>{const _0x39a2ea=_0x24acfd;typeof _0x31b2f9==_0x39a2ea(0x1db)&&(_0x42387f[_0x745b18]=_0x31b2f9['replace'](/url\(#(.*)\)/,'url(#$1'+_0x40135b[_0x39a2ea(0x227)]+')'));})),_0x42387f;}function Ee(_0x2053d5,_0x463b30){const _0x1a8588=_0x5f210e;var _0x19393e;const {defIds:_0x477302}=_0x463b30;return!_0x477302||_0x477302[_0x1a8588(0x23e)]===0x0?_0x2053d5:_0x2053d5[_0x1a8588(0x1f7)]===_0x1a8588(0x1a5)&&((_0x19393e=_0x2053d5[_0x1a8588(0x1c0)])!=null&&_0x19393e[_0x1a8588(0x23e)])?{..._0x2053d5,'children':_0x2053d5[_0x1a8588(0x1c0)][_0x1a8588(0x1b7)](_0x46760c=>typeof _0x46760c['attrs']['id']=='string'&&_0x477302&&_0x477302[_0x1a8588(0x1f3)](_0x46760c[_0x1a8588(0x23a)]['id'])?{..._0x46760c,'attrs':{..._0x46760c[_0x1a8588(0x23a)],'id':_0x46760c[_0x1a8588(0x23a)]['id']+_0x463b30[_0x1a8588(0x227)]}}:_0x46760c)}:_0x2053d5;}function Oe(){const _0x55c2cd=_0x5f210e;return Math[_0x55c2cd(0x211)]()[_0x55c2cd(0x1a7)](0x24)[_0x55c2cd(0x20c)](0x2,0x8);}k[_0x5f210e(0x1c3)]='UniverIcon';const we={'tag':_0x5f210e(0x1c4),'attrs':{'xmlns':_0x5f210e(0x201),'fill':_0x5f210e(0x1d3),'viewBox':_0x5f210e(0x228),'width':_0x5f210e(0x21f),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5f210e(0x1ce),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5f210e(0x224),'fillRule':'evenodd','clipRule':_0x5f210e(0x19f)}}]},W=_0x2f499a(function(_0x5a2083,_0x5aff48){const _0x620a94=_0x5f210e;return _0x3b18d7(k,Object[_0x620a94(0x1fe)]({},_0x5a2083,{'id':_0x620a94(0x1d0),'ref':_0x5aff48,'icon':we}));});W[_0x5f210e(0x1c3)]=_0x5f210e(0x23b);class L extends _0x4347cc{constructor(){const _0x418bd8=_0x5f210e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x418bd8(0x22e),new Set());}[_0x5f210e(0x210)](_0x5cad0d){const _0x3bf3a0=_0x5f210e;return this[_0x3bf3a0(0x1a6)]['add'](_0x5cad0d),_0x4a1250(()=>this[_0x3bf3a0(0x1a6)][_0x3bf3a0(0x1d1)](_0x5cad0d));}[_0x5f210e(0x229)](_0x4cfa56){const _0x585956=_0x5f210e;return this['_reporters'][_0x585956(0x1d6)](_0x4cfa56),_0x4a1250(()=>this[_0x585956(0x22e)][_0x585956(0x1d1)](_0x4cfa56));}[_0x5f210e(0x214)](_0x4e598d){const _0x733095=_0x5f210e;return this[_0x733095(0x1a6)][_0x733095(0x20a)](_0x4e598d);}[_0x5f210e(0x22d)](_0x1e402e){const _0x4f558b=_0x5f210e;return Array[_0x4f558b(0x1e7)](this['_reporters'])[_0x4f558b(0x1b7)](_0x5ca0a4=>_0x5ca0a4(_0x1e402e));}}var Ne=Object[_0x5f210e(0x1b3)],Y=(_0x25be2c,_0x116969,_0x2f9838,_0x1104ad)=>{const _0x450e1f=_0x5f210e;for(var _0x59d459=_0x1104ad>0x1?void 0x0:_0x1104ad?Ne(_0x116969,_0x2f9838):_0x116969,_0x3354b8=_0x25be2c[_0x450e1f(0x23e)]-0x1,_0x130364;_0x3354b8>=0x0;_0x3354b8--)(_0x130364=_0x25be2c[_0x3354b8])&&(_0x59d459=_0x130364(_0x59d459)||_0x59d459);return _0x59d459;},_=(_0x196aba,_0x1752f7)=>(_0x42bd81,_0x53426b)=>_0x1752f7(_0x42bd81,_0x53426b,_0x196aba);let S=class extends _0xbb3b5b{constructor(_0x3a718d,_0x1967bc,_0x1736fd){const _0x3610ef=_0x5f210e;super(),u(this,_0x3610ef(0x239),new Map()),(this[_0x3610ef(0x1f2)]=_0x3a718d,this['_injector']=_0x1967bc,this['_collabSessionService']=_0x1736fd,this[_0x3610ef(0x1dc)]());}async[_0x5f210e(0x204)](_0x7e5df5){const _0x2fe540=_0x5f210e;return this[_0x2fe540(0x239)][_0x2fe540(0x20a)](_0x7e5df5)||await this[_0x2fe540(0x1a2)](_0x7e5df5),this[_0x2fe540(0x239)][_0x2fe540(0x1bb)](_0x7e5df5);}[_0x5f210e(0x1b2)](_0x5a6fbe){const _0x456e44=_0x5f210e;var _0x1275b4;return(_0x1275b4=this[_0x456e44(0x239)]['get'](_0x5a6fbe))!=null?_0x1275b4:null;}['_init'](){const _0x305aca=_0x5f210e;this[_0x305aca(0x1f2)][_0x305aca(0x23c)](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](async _0x26d6b4=>{const _0x93351b=_0x305aca,_0x11661b=_0x26d6b4[_0x93351b(0x19e)]();this['_entities']['has'](_0x11661b)||this[_0x93351b(0x1a2)](_0x11661b);}),this[_0x305aca(0x1f2)]['getTypeOfUnitDisposed$'](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](_0x1b3982=>{const _0x1659d5=_0x305aca,_0x3e0bf7=_0x1b3982[_0x1659d5(0x19e)](),_0xa5f47c=this[_0x1659d5(0x239)]['get'](_0x3e0bf7);_0xa5f47c==null||_0xa5f47c['dispose']();});}async[_0x5f210e(0x1a2)](_0x2791ef){const _0x148183=_0x5f210e,_0xf25f8d=await this['_collabSessionService'][_0x148183(0x1a3)](_0x2791ef),_0x546f28=this[_0x148183(0x1ef)][_0x148183(0x21c)](N,_0x2791ef,_0xf25f8d);return _0x546f28[_0x148183(0x1cf)](),this[_0x148183(0x239)][_0x148183(0x22f)](_0x2791ef,_0x546f28),_0x546f28;}};S=Y([_(0x0,_0x29aa4f),_(0x1,_0x4937f2(_0x179f2d)),_(0x2,_0x4937f2(_0x59cabe))],S);var c=(_0xc00f77=>(_0xc00f77['OFFLINE']=_0x5f210e(0x1e2),_0xc00f77[_0x5f210e(0x1f0)]=_0x5f210e(0x1c5),_0xc00f77[_0x5f210e(0x20d)]=_0x5f210e(0x1c1),_0xc00f77['NOT_FOLLOWING']='not-following',_0xc00f77[_0x5f210e(0x234)]=_0x5f210e(0x23d),_0xc00f77))(c||{});const Ce=_0x5f210e(0x1d2),De=0xc8;let N=class extends _0xbb3b5b{constructor(_0x174e05,_0x3780f3,_0x1e15f4,_0xddd3c6,_0x500fc0){const _0x574a1a=_0x5f210e;super(),u(this,_0x574a1a(0x233),new _0x28b056(_0x574a1a(0x1c5))),u(this,_0x574a1a(0x1f6),this[_0x574a1a(0x233)][_0x574a1a(0x1eb)]()),u(this,_0x574a1a(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x574a1a(0x203),null),(this[_0x574a1a(0x1a4)]=_0x174e05,this[_0x574a1a(0x217)]=_0x3780f3,this[_0x574a1a(0x207)]=_0x1e15f4,this[_0x574a1a(0x1f4)]=_0xddd3c6,this[_0x574a1a(0x213)]=_0x500fc0);}get[_0x5f210e(0x235)](){const _0x5693ff=_0x5f210e;return this[_0x5693ff(0x233)][_0x5693ff(0x1b0)]();}[_0x5f210e(0x240)](){const _0x24ca52=_0x5f210e;var _0x18d3e8;(_0x18d3e8=this[_0x24ca52(0x1c2)])==null||_0x18d3e8[_0x24ca52(0x240)](),this[_0x24ca52(0x233)][_0x24ca52(0x202)](_0x24ca52(0x1c5)),this[_0x24ca52(0x233)][_0x24ca52(0x1fc)]();}[_0x5f210e(0x1de)](){const _0x5a41bb=_0x5f210e;return this[_0x5a41bb(0x235)];}[_0x5f210e(0x1cf)](){const _0x471ed=_0x5f210e;this[_0x471ed(0x1dc)]||(this[_0x471ed(0x1dc)]=!0x0,this['_collabSession'][_0x471ed(0x1ed)]['pipe'](_0x2e8cf2(this[_0x471ed(0x1a0)]))['subscribe'](_0x4c43b0=>{const _0x15958d=_0x471ed;switch(_0x4c43b0){case _0x51023d[_0x15958d(0x1b4)]:this[_0x15958d(0x1fb)]();break;case _0x51023d['ONLINE']:this[_0x15958d(0x218)]();break;}}),this[_0x471ed(0x217)][_0x471ed(0x225)][_0x471ed(0x1e3)](_0x2e8cf2(this[_0x471ed(0x1a0)]))[_0x471ed(0x1e0)](_0xc530e6=>{const _0x286662=_0x471ed,{eventID:_0x5d6772}=_0xc530e6;switch(_0x5d6772){case _0x46ef97[_0x286662(0x1b8)]:this[_0x286662(0x1cb)](_0xc530e6);break;case _0x46ef97[_0x286662(0x232)]:this[_0x286662(0x1b6)](_0xc530e6);break;case _0x46ef97[_0x286662(0x1af)]:this[_0x286662(0x1a9)]();break;case _0x46ef97['NEW_CHANGESETS']:this[_0x286662(0x1c9)](_0xc530e6);break;}}));}[_0x5f210e(0x20b)](){const _0x402c77=_0x5f210e;this[_0x402c77(0x217)]['send']({'eventID':_0x46ef97[_0x402c77(0x1b5)],'data':{'unitID':this[_0x402c77(0x1a4)],'userID':this[_0x402c77(0x217)][_0x402c77(0x1a8)]()}},this[_0x402c77(0x1a4)]);}[_0x5f210e(0x1bc)](){const _0x35c601=_0x5f210e;this[_0x35c601(0x235)]===_0x35c601(0x23d)&&(this[_0x35c601(0x233)][_0x35c601(0x202)]('idle'),this[_0x35c601(0x217)][_0x35c601(0x231)]({'eventID':_0x46ef97[_0x35c601(0x1af)],'data':{'unitID':this[_0x35c601(0x1a4)]}},this['_unitID']));}[_0x5f210e(0x1d4)](){const _0x5be0c6=_0x5f210e;this['_status']==='not-following'&&(this['_status$'][_0x5be0c6(0x202)](_0x5be0c6(0x1c1)),this[_0x5be0c6(0x215)]());}[_0x5f210e(0x216)](){const _0x4e3a41=_0x5f210e;this[_0x4e3a41(0x235)]===_0x4e3a41(0x1c1)&&this[_0x4e3a41(0x1e8)]();}[_0x5f210e(0x1cb)](_0x39f759){const _0x2d28ce=_0x5f210e,{presenter:_0x49be82}=_0x39f759[_0x2d28ce(0x1d9)],_0x4a0661=this[_0x2d28ce(0x217)][_0x2d28ce(0x1a8)]();this['_presenter']=_0x49be82,_0x49be82===_0x4a0661?(this[_0x2d28ce(0x1e8)](),this[_0x2d28ce(0x219)]()):this[_0x2d28ce(0x235)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d28ce(0x215)]());}[_0x5f210e(0x1be)](){const _0x1f4e49=_0x5f210e,_0x24e6b9={'eventID':_0x46ef97['LIVESHARE_FETCH_OPERATIONS']};this[_0x1f4e49(0x217)][_0x1f4e49(0x231)](_0x24e6b9,this[_0x1f4e49(0x1a4)]);}['_handleTerminate'](){const _0x1c59a8=_0x5f210e;this[_0x1c59a8(0x203)]=null,this[_0x1c59a8(0x235)]!==_0x1c59a8(0x23d)&&this[_0x1c59a8(0x1d5)]();}[_0x5f210e(0x1c9)](_0x4ee355){const _0x46b9fb=_0x5f210e;if(this[_0x46b9fb(0x235)]===_0x46b9fb(0x1c1)&&this[_0x46b9fb(0x203)]===_0x4ee355[_0x46b9fb(0x1d9)][_0x46b9fb(0x223)]){const _0x5ad1c6=_0x34a695(_0x4ee355[_0x46b9fb(0x1d9)])['mutations'][_0x46b9fb(0x1d8)]()['find'](_0xd529e3=>_0xd529e3['id']===_0x19729f['id']);if(_0x5ad1c6){const _0x1fe012=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x1f1)],_0x1cb5a0=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x23f)]['id'];setTimeout(()=>{const _0xa8eec5=_0x46b9fb;this[_0xa8eec5(0x213)][_0xa8eec5(0x1e6)](_0x2e84d3['id'],{'unitId':_0x1fe012,'subUnitId':_0x1cb5a0},{'fromCollab':!0x0});});}}}[_0x5f210e(0x219)](){const _0x5155dc=_0x5f210e;this['_status$'][_0x5155dc(0x202)]('presenting');const _0x4a7a16=new Map(),_0x3bf5c4=this['_commandDisposable']=new _0x42a077();_0x3bf5c4[_0x5155dc(0x1d6)](_0x4a1250(()=>{const _0x44c526=_0x5155dc;_0x4a7a16[_0x44c526(0x1da)](_0x48ae2d=>_0x48ae2d[_0x44c526(0x1fc)]()),_0x4a7a16[_0x44c526(0x236)]();})),_0x3bf5c4[_0x5155dc(0x1d6)](this['_commandService'][_0x5155dc(0x1df)](_0x9cf3d8=>{const _0x313a1f=_0x5155dc;var _0x20ad03;if(_0x9cf3d8[_0x313a1f(0x230)]!==_0x1dfff3[_0x313a1f(0x209)]||!this['_liveShareService'][_0x313a1f(0x214)](_0x9cf3d8['id']))return;const {id:_0x3e7b2b}=_0x9cf3d8;let _0x1aed76;_0x4a7a16['has'](_0x3e7b2b)?_0x1aed76=_0x4a7a16['get'](_0x3e7b2b):(_0x1aed76=new _0x4f0fd5(),_0x4a7a16[_0x313a1f(0x22f)](_0x3e7b2b,_0x1aed76),_0x1aed76[_0x313a1f(0x1e3)](_0x258f82((_0x20ad03=this['_configService'][_0x313a1f(0x21e)](Ce))!=null?_0x20ad03:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313a1f(0x1e0)](_0x1d35fb=>{const _0x198ec0=_0x313a1f;this[_0x198ec0(0x217)]['send']({'eventID':_0x46ef97[_0x198ec0(0x232)],'data':{'unitID':this[_0x198ec0(0x1a4)],'operations':{[_0x1d35fb['id']]:{'id':_0x1d35fb['id'],'params':JSON[_0x198ec0(0x1ac)](_0x1d35fb[_0x198ec0(0x1aa)])}}}},this[_0x198ec0(0x1a4)]);})),_0x1aed76['next'](_0x9cf3d8);})),this[_0x5155dc(0x1f4)]['getInitialStates'](this[_0x5155dc(0x1a4)])[_0x5155dc(0x1da)](_0x35b374=>this[_0x5155dc(0x217)][_0x5155dc(0x231)]({'eventID':_0x46ef97['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5155dc(0x1a4)],'operations':{[_0x35b374['id']]:{'id':_0x35b374['id'],'params':JSON[_0x5155dc(0x1ac)](_0x35b374['params'])}}}},this['_unitID']));}[_0x5f210e(0x1d7)](){const _0x366330=_0x5f210e;var _0x50a4fc;this['_status$'][_0x366330(0x202)]('idle'),(_0x50a4fc=this[_0x366330(0x1c2)])==null||_0x50a4fc[_0x366330(0x240)](),this[_0x366330(0x1c2)]=null;}[_0x5f210e(0x215)](){const _0x309dc9=_0x5f210e;var _0x159c0b;(_0x159c0b=this[_0x309dc9(0x1c2)])==null||_0x159c0b[_0x309dc9(0x240)](),this[_0x309dc9(0x233)][_0x309dc9(0x202)]('following');}['_beIdle'](){const _0x392d64=_0x5f210e;var _0x1965f5;this[_0x392d64(0x233)][_0x392d64(0x202)]('idle'),(_0x1965f5=this[_0x392d64(0x1c2)])==null||_0x1965f5['dispose'](),this['_commandDisposable']=null;}[_0x5f210e(0x1e8)](){const _0x27e1dd=_0x5f210e;var _0x13d45b;this[_0x27e1dd(0x233)][_0x27e1dd(0x202)](_0x27e1dd(0x21d)),(_0x13d45b=this[_0x27e1dd(0x1c2)])==null||_0x13d45b['dispose']();}['_handleOperation'](_0xd034e0){const _0x3e6311=_0x5f210e;if([_0x3e6311(0x23d),_0x3e6311(0x21d),_0x3e6311(0x1e2)][_0x3e6311(0x1f3)](this[_0x3e6311(0x235)])||!_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x241)]||_0xd034e0[_0x3e6311(0x1d9)]['presenter']===this[_0x3e6311(0x217)][_0x3e6311(0x1a8)]())return;this['_status']===_0x3e6311(0x1c5)&&this[_0x3e6311(0x215)]();const _0x23361d=_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x200)];Object[_0x3e6311(0x1b1)](_0x23361d)['forEach'](_0x22898a=>{const _0x2812f2=_0x3e6311;this['_commandService'][_0x2812f2(0x1e6)](_0x22898a['id'],_0x22898a['params']?JSON['parse'](_0x22898a[_0x2812f2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x5f210e(0x1fb)](){const _0x3250d9=_0x5f210e;var _0x33c312;this[_0x3250d9(0x233)][_0x3250d9(0x202)](_0x3250d9(0x1e2)),(_0x33c312=this[_0x3250d9(0x1c2)])==null||_0x33c312[_0x3250d9(0x240)]();}['_handleOnline'](){const _0x2a94c3=_0x5f210e;this[_0x2a94c3(0x233)][_0x2a94c3(0x202)](_0x2a94c3(0x1c5)),this[_0x2a94c3(0x1be)]();}};N=Y([_(0x2,_0x333494),_(0x3,_0x4937f2(L)),_(0x4,_0x422603)],N);function Le(){const _0x58f66f=_0x5f210e,_0x228b58=_0x1394d4(S),_0x5bd705=_0x1394d4(_0x29aa4f),_0xfa6d6f=_0x30edbe(()=>_0x5bd705[_0x58f66f(0x1b9)](_0x4cded3[_0x58f66f(0x20f)]),void 0x0,!0x1,[]),[_0x408d08,_0x33fa29]=_0x1f1cf5(null),[_0x3eaa33,_0xd1d095]=_0x1f1cf5(c[_0x58f66f(0x1f0)]),_0x1a2e98=_0x31ae4f(null);return _0x109cfc(()=>(_0xfa6d6f&&_0x228b58['getLiveShareCoordinator'](_0xfa6d6f[_0x58f66f(0x19e)]())['then'](_0x4294a4=>{const _0x3473ca=_0x58f66f;_0x33fa29(_0x4294a4),_0x1a2e98['current']=_0x4294a4['status$'][_0x3473ca(0x1e0)](_0x2ec87b=>{_0xd1d095(_0x2ec87b);});}),()=>{const _0x10148f=_0x58f66f;var _0x2c46d5;(_0x2c46d5=_0x1a2e98[_0x10148f(0x238)])==null||_0x2c46d5['unsubscribe'](),_0x1a2e98['current']=null;}),[_0xfa6d6f,_0x228b58]),_0x408d08?_0x28f4b5(_0x12b65d,{'align':'end','disabled':_0x3eaa33===c[_0x58f66f(0x1b4)],'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':_0x28f4b5(Re,{'status':_0x3eaa33,'coordinator':_0x408d08}),'children':_0x28f4b5('button',{'className':_0x403356(_0x58f66f(0x1ca),{'univer-cursor-not-allowed':_0x3eaa33===c[_0x58f66f(0x1b4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3eaa33!==c[_0x58f66f(0x1b4)]}),'type':_0x58f66f(0x1fa),'children':_0x28f4b5(W,{'className':_0x58f66f(0x212)})})}):null;}function Re(_0x8f9d25){const _0x202da3=_0x5f210e,{status:_0x3ebe08,coordinator:_0x18e96f}=_0x8f9d25;switch(_0x3ebe08){case c[_0x202da3(0x1f0)]:return _0x28f4b5($e,{'coordinator':_0x18e96f});case c[_0x202da3(0x20d)]:return _0x28f4b5(xe,{'coordinator':_0x18e96f});case c['NOT_FOLLOWING']:return _0x28f4b5(Pe,{'coordinator':_0x18e96f});case c[_0x202da3(0x1b4)]:return _0x28f4b5(Te,{});case c[_0x202da3(0x234)]:return _0x28f4b5(Ae,{'coordinator':_0x18e96f});default:return null;}}function $e(_0x12c38f){const _0x5550f9=_0x5f210e,{coordinator:_0x4cab37}=_0x12c38f;return _0x526545(_0x3d9444,{'children':[_0x28f4b5('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5550f9(0x1ff)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x4cab37['tryStartPresenting'](),'children':_0x5550f9(0x1f9)})]});}function xe(_0x179491){const _0x36c323=_0x5f210e,{coordinator:_0x215503}=_0x179491;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x36c323(0x206),{'className':_0x36c323(0x22c),'children':_0x36c323(0x1cc)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x215503[_0x36c323(0x216)](),'children':_0x36c323(0x1cd)})]});}function Pe(_0x280386){const _0x55c36c=_0x5f210e,{coordinator:_0x1dda82}=_0x280386;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x55c36c(0x206),{'className':_0x55c36c(0x22c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x28f4b5(_0x36a71c,{'variant':'text','onClick':()=>_0x1dda82[_0x55c36c(0x1d4)](),'children':'Start\x20following'})]});}function Ae(_0x556d30){const _0xd99098=_0x5f210e,{coordinator:_0x3b5a07}=_0x556d30;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0xd99098(0x206),{'className':_0xd99098(0x22c),'children':_0xd99098(0x21b)}),_0x28f4b5(_0x36a71c,{'variant':_0xd99098(0x226),'onClick':()=>_0x3b5a07[_0xd99098(0x1bc)](),'children':_0xd99098(0x1ee)})]});}function Te(){return _0x28f4b5(_0x3d9444,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5f210e(0x1b3)],He=(_0x614e67,_0x5b7117,_0x310441,_0x18f6a7)=>{const _0x56789a=_0x5f210e;for(var _0x1a0ca4=_0x18f6a7>0x1?void 0x0:_0x18f6a7?Fe(_0x5b7117,_0x310441):_0x5b7117,_0x26e932=_0x614e67[_0x56789a(0x23e)]-0x1,_0x17ea06;_0x26e932>=0x0;_0x26e932--)(_0x17ea06=_0x614e67[_0x26e932])&&(_0x1a0ca4=_0x17ea06(_0x1a0ca4)||_0x1a0ca4);return _0x1a0ca4;},A=(_0x573a5d,_0x2ee4f2)=>(_0x212a65,_0x1ff948)=>_0x2ee4f2(_0x212a65,_0x1ff948,_0x573a5d);let m=class extends _0x4347cc{constructor(_0x6072c,_0x57d4f2){const _0x210867=_0x5f210e;super(),this[_0x210867(0x1ef)]=_0x6072c,this['_uiPartsService']=_0x57d4f2,this[_0x210867(0x221)]();}[_0x5f210e(0x221)](){const _0x4af5d3=_0x5f210e;this['disposeWithMe'](this[_0x4af5d3(0x1ba)]['registerComponent'](_0x102999[_0x4af5d3(0x19d)],()=>_0x1ca43(Le,this[_0x4af5d3(0x1ef)])));}};m=He([A(0x0,_0x4937f2(_0x179f2d)),A(0x1,_0x6bedd5)],m);const ye='live-share.config',T={};var Ue=Object[_0x5f210e(0x1b3)],Ve=(_0x98c8b1,_0x16017f,_0x47cb7f,_0x4ff2bb)=>{const _0x2e1b2c=_0x5f210e;for(var _0x3a7015=_0x4ff2bb>0x1?void 0x0:_0x4ff2bb?Ue(_0x16017f,_0x47cb7f):_0x16017f,_0x1cadf3=_0x98c8b1[_0x2e1b2c(0x23e)]-0x1,_0x4ef1be;_0x1cadf3>=0x0;_0x1cadf3--)(_0x4ef1be=_0x98c8b1[_0x1cadf3])&&(_0x3a7015=_0x4ef1be(_0x3a7015)||_0x3a7015);return _0x3a7015;},je=(_0x5abc9e,_0x3a0755)=>(_0x2b4d78,_0x52240c)=>_0x3a0755(_0x2b4d78,_0x52240c,_0x5abc9e);let I=class extends _0x4347cc{constructor(_0x2be0e9){const _0x4d5ecb=_0x5f210e;super(),this[_0x4d5ecb(0x1f4)]=_0x2be0e9,this['_init']();}['_init'](){const _0x47349f=_0x5f210e;[_0x31f67b['id'],_0x487be7['id'],_0x2e84d3['id']][_0x47349f(0x1da)](_0x122e40=>{const _0x23a3af=_0x47349f;this[_0x23a3af(0x1c7)](this['_liveShareService'][_0x23a3af(0x210)](_0x122e40));});}};I=Ve([je(0x0,_0x4937f2(L))],I);var Me=Object[_0x5f210e(0x222)],ke=Object[_0x5f210e(0x1b3)],Ge=(_0x4b9c9a,_0x4fa621,_0x2ad77d)=>_0x4fa621 in _0x4b9c9a?Me(_0x4b9c9a,_0x4fa621,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad77d}):_0x4b9c9a[_0x4fa621]=_0x2ad77d,We=(_0x3ad683,_0x35e603,_0x35b713,_0x44d90c)=>{for(var _0x536587=_0x44d90c>0x1?void 0x0:_0x44d90c?ke(_0x35e603,_0x35b713):_0x35e603,_0x3d1a5=_0x3ad683['length']-0x1,_0x172b5a;_0x3d1a5>=0x0;_0x3d1a5--)(_0x172b5a=_0x3ad683[_0x3d1a5])&&(_0x536587=_0x172b5a(_0x536587)||_0x536587);return _0x536587;},F=(_0x3f5441,_0x36e944)=>(_0xde85b,_0x4e3465)=>_0x36e944(_0xde85b,_0x4e3465,_0x3f5441),B=(_0x1b039e,_0x2685d0,_0x16bc47)=>Ge(_0x1b039e,typeof _0x2685d0!=_0x5f210e(0x1f8)?_0x2685d0+'':_0x2685d0,_0x16bc47);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x406235{constructor(_0x110357=T,_0x154dcc,_0x428787){const _0x480e9b=_0x5f210e;super(),this[_0x480e9b(0x1e5)]=_0x110357,this[_0x480e9b(0x1ef)]=_0x154dcc,this[_0x480e9b(0x207)]=_0x428787;const {..._0x10025f}=_0x2df91a({},T,this['_config']);this[_0x480e9b(0x207)][_0x480e9b(0x1bf)](ye,_0x10025f);}[_0x5f210e(0x208)](){const _0x3a1e2b=_0x5f210e;_0x173359(this['_injector'],_0x20d4d6([[L],[S],[I],[m]],this[_0x3a1e2b(0x1e5)]['override'])),_0x1d822a(this[_0x3a1e2b(0x1ef)],[[I]]);}['onRendered'](){const _0x5d6b78=_0x5f210e;_0x1d822a(this[_0x5d6b78(0x1ef)],[[m]]);}};B(b,_0x5f210e(0x230),_0x4cded3['UNIVER_UNKNOWN']),B(b,_0x5f210e(0x22b),Ye),b=We([_0x190b72(_0x363746),F(0x1,_0x4937f2(_0x179f2d)),F(0x2,_0x333494)],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(_0x1c7526,_0x19b96b){const _0x92d578=_0x12b0,_0x5d0078=_0x1c7526();while(!![]){try{const _0x1069fd=-parseInt(_0x92d578(0x1fe))/0x1+-parseInt(_0x92d578(0x214))/0x2+parseInt(_0x92d578(0x1f7))/0x3+parseInt(_0x92d578(0x20f))/0x4*(-parseInt(_0x92d578(0x21c))/0x5)+parseInt(_0x92d578(0x20a))/0x6+parseInt(_0x92d578(0x1f0))/0x7+parseInt(_0x92d578(0x218))/0x8;if(_0x1069fd===_0x19b96b)break;else _0x5d0078['push'](_0x5d0078['shift']());}catch(_0x3cb459){_0x5d0078['push'](_0x5d0078['shift']());}}}(_0x4ab9,0x2ebeb),function(_0x378754,_0x4b9bca){const _0x2d2bb1=_0x12b0;typeof exports=='object'&&typeof module<'u'?_0x4b9bca(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==_0x2d2bb1(0x201)&&define[_0x2d2bb1(0x1fa)]?define([_0x2d2bb1(0x21a),'@univerjs/engine-render',_0x2d2bb1(0x21b),_0x2d2bb1(0x1ee),_0x2d2bb1(0x216),'@univerjs/core/facade'],_0x4b9bca):(_0x378754=typeof globalThis<'u'?globalThis:_0x378754||self,_0x4b9bca(_0x378754[_0x2d2bb1(0x213)],_0x378754[_0x2d2bb1(0x212)],_0x378754[_0x2d2bb1(0x20e)],_0x378754['UniverSheetsUi'],_0x378754['UniverSheetsFacade'],_0x378754['UniverCoreFacade']));}(this,function(_0x4a32b0,_0x5b79fe,_0x552c5a,_0x1b35f1,_0x4d4fa5,_0x3e3a88){'use strict';const _0x752485=_0x12b0;class _0x3acd89 extends _0x4d4fa5[_0x752485(0x207)]{[_0x752485(0x1ef)](_0x150f3d,_0x572ab7,_0x5ab226,_0x203bbe,_0x460064){const _0x53b5c2=_0x752485,_0x3b39d9=_0x150f3d['get'](_0x4a32b0[_0x53b5c2(0x200)]),_0x220c2e=_0x150f3d['get'](_0x5b79fe[_0x53b5c2(0x1f6)]),_0x32e252=_0x572ab7[_0x53b5c2(0x1f2)](),_0x5a520a=_0x572ab7[_0x53b5c2(0x20c)](),_0x41fded=_0x3b39d9['getLiveShareCoordinatorSync'](_0x32e252);(_0x41fded==null?void 0x0:_0x41fded[_0x53b5c2(0x1fb)]())!==_0x4a32b0['LiveShareStatus'][_0x53b5c2(0x1fc)]||(_0x5ab226[_0x53b5c2(0x204)]()!==_0x5a520a['getSheetId']()&&this[_0x53b5c2(0x1fd)][_0x53b5c2(0x202)](_0x552c5a[_0x53b5c2(0x215)]['id'],{'unitId':_0x32e252,'subUnitId':_0x5ab226[_0x53b5c2(0x204)]()}),!_0x220c2e['getRenderById'](_0x32e252))||_0x460064[_0x53b5c2(0x1f4)](_0x1b35f1[_0x53b5c2(0x209)]['id'],{'unitId':_0x572ab7['getUnitId'](),'sheetId':_0x5ab226['getSheetId'](),'sheetViewStartRow':_0x203bbe[_0x53b5c2(0x1f9)],'sheetViewStartColumn':_0x203bbe['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4d4fa5['FRange'][_0x752485(0x211)](_0x3acd89);class _0xb4e3ec extends _0x3e3a88[_0x752485(0x1f8)]{['getLiveShareStatus'](){const _0x86b577=_0x752485;var _0x3caf45,_0x4aec2f;const _0x380a91=this[_0x86b577(0x210)]['get'](_0x4a32b0[_0x86b577(0x200)]),_0xfefa23=(_0x3caf45=this['getActiveWorkbook']())==null?void 0x0:_0x3caf45[_0x86b577(0x1ed)]();if(!_0xfefa23)throw new Error(_0x86b577(0x1f5));const _0x15fe55=_0x380a91[_0x86b577(0x1f1)](_0xfefa23);return(_0x4aec2f=_0x15fe55==null?void 0x0:_0x15fe55[_0x86b577(0x1fb)]())!=null?_0x4aec2f:_0x4a32b0[_0x86b577(0x205)][_0x86b577(0x20b)];}['startFollowing'](){const _0x5212ea=_0x752485;var _0x5f3ba8;const _0x3e62dc=this[_0x5212ea(0x210)][_0x5212ea(0x217)](_0x4a32b0['LiveShareController']),_0x4a7efe=(_0x5f3ba8=this['getActiveWorkbook']())==null?void 0x0:_0x5f3ba8['getId']();if(!_0x4a7efe)throw new Error('No\x20active\x20workbook\x20found.');const _0xfac539=_0x3e62dc[_0x5212ea(0x1f1)](_0x4a7efe);if(!_0xfac539)throw new Error(_0x5212ea(0x1f3));_0xfac539[_0x5212ea(0x203)]();}[_0x752485(0x219)](){const _0x31a48e=_0x752485;var _0x5eef76;const _0x2d42c6=this['_injector'][_0x31a48e(0x217)](_0x4a32b0[_0x31a48e(0x200)]),_0x1d1b24=(_0x5eef76=this[_0x31a48e(0x208)]())==null?void 0x0:_0x5eef76[_0x31a48e(0x1ed)]();if(!_0x1d1b24)throw new Error(_0x31a48e(0x1f5));const _0x3e409a=_0x2d42c6[_0x31a48e(0x1f1)](_0x1d1b24);if(!_0x3e409a)throw new Error(_0x31a48e(0x1f3));_0x3e409a[_0x31a48e(0x219)]();}[_0x752485(0x20d)](){const _0x45690c=_0x752485;var _0x69a30b;const _0x121410=this[_0x45690c(0x210)][_0x45690c(0x217)](_0x4a32b0[_0x45690c(0x200)]),_0x385827=(_0x69a30b=this[_0x45690c(0x208)]())==null?void 0x0:_0x69a30b[_0x45690c(0x1ed)]();if(!_0x385827)throw new Error('No\x20active\x20workbook\x20found.');const _0x556c91=_0x121410[_0x45690c(0x1f1)](_0x385827);if(!_0x556c91)throw new Error(_0x45690c(0x1f3));_0x556c91[_0x45690c(0x206)]();}['stopPresenting'](){const _0xc54304=_0x752485;var _0x2affb6;const _0x3ded56=this[_0xc54304(0x210)][_0xc54304(0x217)](_0x4a32b0[_0xc54304(0x200)]),_0x57f755=(_0x2affb6=this[_0xc54304(0x208)]())==null?void 0x0:_0x2affb6[_0xc54304(0x1ed)]();if(!_0x57f755)throw new Error('No\x20active\x20workbook\x20found.');const _0x5f0fe3=_0x3ded56[_0xc54304(0x1f1)](_0x57f755);if(!_0x5f0fe3)throw new Error(_0xc54304(0x1f3));_0x5f0fe3[_0xc54304(0x1ff)]();}}_0x3e3a88[_0x752485(0x1f8)][_0x752485(0x211)](_0xb4e3ec);class _0x1e57ae extends _0x3e3a88['FEnum']{get['LiveShareStatusEnum'](){const _0x5e7a0f=_0x752485;return _0x4a32b0[_0x5e7a0f(0x205)];}}_0x3e3a88['FEnum'][_0x752485(0x211)](_0x1e57ae);}));function _0x12b0(_0x31f4a5,_0x172c05){_0x31f4a5=_0x31f4a5-0x1ed;const _0x4ab999=_0x4ab9();let _0x12b087=_0x4ab999[_0x31f4a5];return _0x12b087;}function _0x4ab9(){const _0x15362d=['FUniver','startRow','amd','getStatus','PRESENTING','_commandService','257111plLSVg','stopPresenting','LiveShareController','function','executeCommand','startFollowing','getSheetId','LiveShareStatus','tryStartPresenting','FRange','getActiveWorkbook','SetScrollOperation','1825428BprZAA','IDLE','getActiveSheet','startPresenting','UniverSheets','239556XTAHJh','_injector','extend','UniverEngineRender','UniverProLiveShare','737730XiuztV','SetWorksheetActiveOperation','@univerjs/sheets/facade','get','5409600hmMeuA','stopFollowing','@univerjs-pro/live-share','@univerjs/sheets','30AHltYc','getId','@univerjs/sheets-ui','_initialize','374843txEkCQ','getLiveShareCoordinatorSync','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','No\x20active\x20workbook\x20found.','IRenderManagerService','428370jylYVS'];_0x4ab9=function(){return _0x15362d;};return _0x4ab9();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2592(_0x522808,_0x56a664){_0x522808=_0x522808-0x1dc;const _0x20aae3=_0x20aa();let _0x2592e2=_0x20aae3[_0x522808];return _0x2592e2;}function _0x20aa(){const _0x2eba7b=['LIVESHARE_OPERATION','parse','idSuffix','defIds','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','SetZoomRatioOperation','getTypeOfUnitAdded$','InsertSheetMutation','registerDependencies','params','Fragment','subscribe','includes','type','IUniverInstanceService','LiveShareController','button','_collabSession','get','currentColor','has','_status','assign','LiveShareIcon','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','LiveShareStatus','_entities','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','forEach','getMemberID','stopPresenting','useState','1474189lWMQES','none','_handleNewHost','getUnitId','_commandDisposable','_collabSessionService','0\x200\x2017\x2017','OPERATION','shouldShareOperation','url(#$1','UNIVER_SHEET','use','toStringTag','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','UNIVER_LIVE_SHARE_PLUGIN','_config','toDisposable','3rPkZnG','_startLiveShareCoordinator','memberID','react','init','stopFollowing','fill','199090dGpVZZ','end','jsx','BehaviorSubject','Dropdown','React','UniverSheetsUi','pipe','children','LIVESHARE_TERMINATE','jsxs','dispose$','rxjs/operators','override','UniverIcon','setConfig','parseProtocolChangeset','_handleOperation','Stop\x20following','_handleNewChangeSets','_configService','CollaborationEvent','Start\x20following','disposeWithMe','Button','live-share-icon','UniverInstanceType','_uiPartsService','registerComponent','set','339736CpopiK','_beIdle','onRendered','replace','presenting','IConfigService','amd','operations','RxDisposable','dispose','You\x27re\x20not\x20following\x20the\x20presenter','length','following','onStarting','idle','OFFLINE','HEADER_MENU','xlink:href','from','_status$','mask','exports','data','_presenter','live-share.config','Disposable','getConfig','sheet','univer-size-4','startFollowing','@univerjs/sheets','text','getStatus','unsubscribe','getLiveShareCoordinatorSync','react/jsx-runtime','_commandService','not-following','div','add','default','NOT_FOLLOWING','Injector','evenodd','SetScrollOperation','status$','complete','forwardRef','UniverProCollaboration','5853414IAOPAw','delete','4968420dhxYdN','path','trim','registerSharedOperation','Inject','DependentOn','map','UniverLiveSharePlugin','useObservable','clear','string','_sharedOperations','current','@univerjs/core','UniverCollaborationClientPlugin','105sTGopY','@univerjs/design','1em','colorChannel1','_stopFollowing','rxjs','Stop\x20presenting','executeCommand','tag','getCurrentTypeOfUnit$','_univerInstanceService','_mountLiveShare','http://www.w3.org/2000/svg','onCommandExecuted','defineProperty','_startFollowing','_handleTerminate','asObservable','_handleOnline','2773104dzKgaT','getOwnPropertyDescriptor','touchDependencies','stringify','_init','UniverProLiveShare','DisposableCollection','toString','takeUntil','send','mergeOverrideWithDependencies','createElement','then','defs','SetWorksheetActiveOperation','entries','IDLE','UniverSheets','FOLLOWING','displayName','You\x27re\x20presenting\x20the\x20document','BuiltInUIPart','LIVESHARE_FETCH_OPERATIONS','@univerjs-pro/collaboration-client','_injector','CollaborationSessionService','_reporters','LIVESHARE_NEW_HOST','_unitID','presenter','DesktopLiveShareController','LiveShareCoordinator','attrs','offline','_handleOffline','ONLINE','LiveShareService','19948959zdVnew','univer-mb-3\x20univer-w-full\x20univer-text-sm','symbol','@univerjs-pro/collaboration','Start','unitId','find','_stopPresenting','svg','_startPresenting','clsx','createInstance','next','merge','_fetchOperations','SessionStatus','_liveShareService','getValue'];_0x20aa=function(){return _0x2eba7b;};return _0x20aa();}(function(_0x4fb74e,_0x2c6a7d){const _0x47d417=_0x2592,_0x549642=_0x4fb74e();while(!![]){try{const _0x51482c=-parseInt(_0x47d417(0x23a))/0x1+parseInt(_0x47d417(0x252))/0x2*(parseInt(_0x47d417(0x24b))/0x3)+-parseInt(_0x47d417(0x1e2))/0x4+parseInt(_0x47d417(0x2a3))/0x5+-parseInt(_0x47d417(0x2a1))/0x6+-parseInt(_0x47d417(0x2b2))/0x7*(-parseInt(_0x47d417(0x270))/0x8)+parseInt(_0x47d417(0x207))/0x9;if(_0x51482c===_0x2c6a7d)break;else _0x549642['push'](_0x549642['shift']());}catch(_0x584d46){_0x549642['push'](_0x549642['shift']());}}}(_0x20aa,0xc43a7),function(_0x309f0d,_0x24724c){const _0xf93b34=_0x2592;typeof exports=='object'&&typeof module<'u'?_0x24724c(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[_0xf93b34(0x276)]?define([_0xf93b34(0x285),_0xf93b34(0x2b0),'@univerjs/ui',_0xf93b34(0x293),_0xf93b34(0x2b3),_0xf93b34(0x24e),_0xf93b34(0x20a),_0xf93b34(0x1f9),_0xf93b34(0x28e),_0xf93b34(0x2b7),_0xf93b34(0x25e),'@univerjs/sheets-ui'],_0x24724c):(_0x309f0d=typeof globalThis<'u'?globalThis:_0x309f0d||self,_0x24724c(_0x309f0d[_0xf93b34(0x1e7)]={},_0x309f0d['UniverCore'],_0x309f0d['UniverUi'],_0x309f0d[_0xf93b34(0x257)],_0x309f0d['UniverDesign'],_0x309f0d[_0xf93b34(0x257)],_0x309f0d[_0xf93b34(0x2a0)],_0x309f0d['UniverProCollaborationClient'],_0x309f0d[_0xf93b34(0x1f3)],_0x309f0d[_0xf93b34(0x2b7)],_0x309f0d[_0xf93b34(0x2b7)]['operators'],_0x309f0d[_0xf93b34(0x258)]));}(this,function(_0x219a3f,_0x40790f,_0x3ef861,_0x3ecb81,_0x49fd3f,_0x39f6be,_0x2b554d,_0x4e4830,_0x37f478,_0xd1ada7,_0x529592,_0x486c38){'use strict';const _0x198c54=_0x2592;var _0x43ce59=Object[_0x198c54(0x1dd)],_0x354d89=(_0x31073c,_0x8f204e,_0x1a4a0f)=>_0x8f204e in _0x31073c?_0x43ce59(_0x31073c,_0x8f204e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a4a0f}):_0x31073c[_0x8f204e]=_0x1a4a0f,_0x5f2bc9=(_0x965430,_0xf817dc,_0x533c0a)=>_0x354d89(_0x965430,typeof _0xf817dc!=_0x198c54(0x209)?_0xf817dc+'':_0xf817dc,_0x533c0a);function _0x524017({ref:_0x976cd8,..._0x203abc}){const _0x5f2f40=_0x198c54,{icon:_0x39aca5,id:_0x212203,className:_0x5e3665,extend:_0x5d5a9e,..._0x1a8358}=_0x203abc,_0xf6d5bb=('univerjs-icon\x20univerjs-icon-'+_0x212203+'\x20'+(_0x5e3665||''))[_0x5f2f40(0x2a5)](),_0x575ee7=_0x39f6be['useRef']('_'+_0x3720e2());return _0x6656b4(_0x39aca5,''+_0x212203,{'defIds':_0x39aca5[_0x5f2f40(0x21c)],'idSuffix':_0x575ee7[_0x5f2f40(0x2af)]},{'ref':_0x976cd8,'className':_0xf6d5bb,..._0x1a8358},_0x5d5a9e);}function _0x6656b4(_0x7d6510,_0x3ed633,_0x880c3a,_0x3d34d8,_0x54c7df){const _0x37cfd8=_0x198c54;return _0x39f6be['createElement'](_0x7d6510[_0x37cfd8(0x2ba)],{'key':_0x3ed633,..._0x231505(_0x7d6510,_0x880c3a,_0x54c7df),..._0x3d34d8},(_0x5c3864(_0x7d6510,_0x880c3a)[_0x37cfd8(0x25a)]||[])[_0x37cfd8(0x2a9)]((_0x2e0fd1,_0x3f2543)=>_0x6656b4(_0x2e0fd1,_0x3ed633+'-'+_0x7d6510[_0x37cfd8(0x2ba)]+'-'+_0x3f2543,_0x880c3a,void 0x0,_0x54c7df)));}function _0x231505(_0x13511c,_0x588424,_0x134348){const _0x2e0704=_0x198c54,_0x1949cc={..._0x13511c[_0x2e0704(0x202)]};_0x134348!=null&&_0x134348[_0x2e0704(0x2b5)]&&_0x1949cc[_0x2e0704(0x251)]==='colorChannel1'&&(_0x1949cc[_0x2e0704(0x251)]=_0x134348[_0x2e0704(0x2b5)]),_0x13511c['tag']===_0x2e0704(0x284)&&_0x1949cc['id']&&(_0x1949cc['id']=_0x1949cc['id']+_0x588424['idSuffix']),Object[_0x2e0704(0x1f1)](_0x1949cc)[_0x2e0704(0x236)](([_0x1b9b82,_0x3c37e5])=>{const _0xcbf35d=_0x2e0704;_0x1b9b82===_0xcbf35d(0x284)&&typeof _0x3c37e5==_0xcbf35d(0x2ad)&&(_0x1949cc[_0x1b9b82]=_0x3c37e5[_0xcbf35d(0x273)](/url\(#(.*)\)/,_0xcbf35d(0x243)+_0x588424[_0xcbf35d(0x21b)]+')'));});const {defIds:_0x2c9b39}=_0x588424;return!_0x2c9b39||_0x2c9b39[_0x2e0704(0x27b)]===0x0||(_0x13511c['tag']===_0x2e0704(0x245)&&_0x1949cc[_0x2e0704(0x281)]&&(_0x1949cc[_0x2e0704(0x281)]=_0x1949cc[_0x2e0704(0x281)]+_0x588424[_0x2e0704(0x21b)]),Object[_0x2e0704(0x1f1)](_0x1949cc)['forEach'](([_0x20f83a,_0x429521])=>{const _0x253126=_0x2e0704;typeof _0x429521==_0x253126(0x2ad)&&(_0x1949cc[_0x20f83a]=_0x429521[_0x253126(0x273)](/url\(#(.*)\)/,_0x253126(0x243)+_0x588424['idSuffix']+')'));})),_0x1949cc;}function _0x5c3864(_0x31e4d9,_0x6dd9b){const _0x1fc81b=_0x198c54;var _0x39babd;const {defIds:_0x5de7bb}=_0x6dd9b;return!_0x5de7bb||_0x5de7bb[_0x1fc81b(0x27b)]===0x0?_0x31e4d9:_0x31e4d9['tag']===_0x1fc81b(0x1ef)&&((_0x39babd=_0x31e4d9[_0x1fc81b(0x25a)])!=null&&_0x39babd[_0x1fc81b(0x27b)])?{..._0x31e4d9,'children':_0x31e4d9[_0x1fc81b(0x25a)][_0x1fc81b(0x2a9)](_0x12f537=>typeof _0x12f537[_0x1fc81b(0x202)]['id']=='string'&&_0x5de7bb&&_0x5de7bb[_0x1fc81b(0x225)](_0x12f537[_0x1fc81b(0x202)]['id'])?{..._0x12f537,'attrs':{..._0x12f537[_0x1fc81b(0x202)],'id':_0x12f537[_0x1fc81b(0x202)]['id']+_0x6dd9b[_0x1fc81b(0x21b)]}}:_0x12f537)}:_0x31e4d9;}function _0x3720e2(){const _0x1967bb=_0x198c54;return Math['random']()[_0x1967bb(0x1e9)](0x24)['substring'](0x2,0x8);}_0x524017[_0x198c54(0x1f5)]=_0x198c54(0x260);const _0x854dd1={'tag':_0x198c54(0x20f),'attrs':{'xmlns':_0x198c54(0x2be),'fill':_0x198c54(0x23b),'viewBox':_0x198c54(0x240),'width':_0x198c54(0x2b4),'height':'1em'},'children':[{'tag':_0x198c54(0x2a4),'attrs':{'fill':_0x198c54(0x22c),'d':_0x198c54(0x231)}},{'tag':_0x198c54(0x2a4),'attrs':{'fill':'currentColor','d':_0x198c54(0x21d),'fillRule':_0x198c54(0x29b),'clipRule':'evenodd'}}]},_0x5b6f8f=_0x39f6be[_0x198c54(0x29f)](function(_0x5622ca,_0x314f4d){const _0x21a35c=_0x198c54;return _0x39f6be[_0x21a35c(0x1ed)](_0x524017,Object[_0x21a35c(0x22f)]({},_0x5622ca,{'id':_0x21a35c(0x26b),'ref':_0x314f4d,'icon':_0x854dd1}));});_0x5b6f8f[_0x198c54(0x1f5)]=_0x198c54(0x230);class _0x3f94ee extends _0x40790f['Disposable']{constructor(){const _0x41a0b2=_0x198c54;super(...arguments),_0x5f2bc9(this,_0x41a0b2(0x2ae),new Set()),_0x5f2bc9(this,_0x41a0b2(0x1fc),new Set());}[_0x198c54(0x2a6)](_0x58daca){const _0x4e3c68=_0x198c54;return this[_0x4e3c68(0x2ae)][_0x4e3c68(0x297)](_0x58daca),_0x40790f['toDisposable'](()=>this['_sharedOperations'][_0x4e3c68(0x2a2)](_0x58daca));}[_0x198c54(0x234)](_0x1925a9){const _0x329c9b=_0x198c54;return this[_0x329c9b(0x1fc)]['add'](_0x1925a9),_0x40790f['toDisposable'](()=>this[_0x329c9b(0x1fc)][_0x329c9b(0x2a2)](_0x1925a9));}[_0x198c54(0x242)](_0x12c4ec){const _0x10b331=_0x198c54;return this[_0x10b331(0x2ae)][_0x10b331(0x22d)](_0x12c4ec);}['getInitialStates'](_0x231d55){const _0x1e1297=_0x198c54;return Array[_0x1e1297(0x282)](this[_0x1e1297(0x1fc)])[_0x1e1297(0x2a9)](_0x1332ce=>_0x1332ce(_0x231d55));}}var _0x22ed5a=Object[_0x198c54(0x1e3)],_0x5e15f8=(_0x490c8a,_0x3e8292,_0x4cd231,_0x33920a)=>{for(var _0xad1de8=_0x33920a>0x1?void 0x0:_0x33920a?_0x22ed5a(_0x3e8292,_0x4cd231):_0x3e8292,_0x53dcee=_0x490c8a['length']-0x1,_0x47c2f1;_0x53dcee>=0x0;_0x53dcee--)(_0x47c2f1=_0x490c8a[_0x53dcee])&&(_0xad1de8=_0x47c2f1(_0xad1de8)||_0xad1de8);return _0xad1de8;},_0x68fa75=(_0x2ab88f,_0x30d12d)=>(_0x46a450,_0x3fd667)=>_0x30d12d(_0x46a450,_0x3fd667,_0x2ab88f);_0x219a3f[_0x198c54(0x228)]=class extends _0x40790f[_0x198c54(0x278)]{constructor(_0x3826ec,_0x2e7097,_0x462bbd){const _0x527d3d=_0x198c54;super(),_0x5f2bc9(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3826ec,this[_0x527d3d(0x1fa)]=_0x2e7097,this[_0x527d3d(0x23f)]=_0x462bbd,this[_0x527d3d(0x1e6)]());}async['getLiveShareCoordinator'](_0x144dde){const _0x450030=_0x198c54;return this['_entities'][_0x450030(0x22d)](_0x144dde)||await this[_0x450030(0x24c)](_0x144dde),this[_0x450030(0x233)][_0x450030(0x22b)](_0x144dde);}[_0x198c54(0x292)](_0x42d79d){const _0x2f5602=_0x198c54;var _0x68c607;return(_0x68c607=this['_entities'][_0x2f5602(0x22b)](_0x42d79d))!=null?_0x68c607:null;}[_0x198c54(0x1e6)](){const _0xbd181c=_0x198c54;this[_0xbd181c(0x2bc)][_0xbd181c(0x21f)](_0x40790f[_0xbd181c(0x26c)][_0xbd181c(0x244)])[_0xbd181c(0x259)](_0x529592[_0xbd181c(0x1ea)](this['dispose$']))['subscribe'](async _0x1ac3dc=>{const _0x2cf771=_0xbd181c,_0x43f5e0=_0x1ac3dc[_0x2cf771(0x23d)]();this[_0x2cf771(0x233)][_0x2cf771(0x22d)](_0x43f5e0)||this[_0x2cf771(0x24c)](_0x43f5e0);}),this[_0xbd181c(0x2bc)]['getTypeOfUnitDisposed$'](_0x40790f[_0xbd181c(0x26c)]['UNIVER_SHEET'])[_0xbd181c(0x259)](_0x529592['takeUntil'](this[_0xbd181c(0x25d)]))[_0xbd181c(0x224)](_0x2bcba2=>{const _0x402929=_0xbd181c,_0x50f337=_0x2bcba2[_0x402929(0x23d)](),_0x323b16=this[_0x402929(0x233)]['get'](_0x50f337);_0x323b16==null||_0x323b16[_0x402929(0x279)]();});}async[_0x198c54(0x24c)](_0x25f771){const _0x4a3c6e=_0x198c54,_0xfa644b=await this[_0x4a3c6e(0x23f)]['requireSession'](_0x25f771),_0x5ae528=this[_0x4a3c6e(0x1fa)][_0x4a3c6e(0x212)](_0x219a3f[_0x4a3c6e(0x201)],_0x25f771,_0xfa644b);return _0x5ae528[_0x4a3c6e(0x24f)](),this['_entities'][_0x4a3c6e(0x26f)](_0x25f771,_0x5ae528),_0x5ae528;}},_0x219a3f[_0x198c54(0x228)]=_0x5e15f8([_0x68fa75(0x0,_0x40790f[_0x198c54(0x227)]),_0x68fa75(0x1,_0x40790f[_0x198c54(0x2a7)](_0x40790f['Injector'])),_0x68fa75(0x2,_0x40790f[_0x198c54(0x2a7)](_0x4e4830[_0x198c54(0x1fb)]))],_0x219a3f[_0x198c54(0x228)]);var _0x33922d=(_0x4ac361=>(_0x4ac361['OFFLINE']=_0x198c54(0x203),_0x4ac361[_0x198c54(0x1f2)]=_0x198c54(0x27e),_0x4ac361[_0x198c54(0x1f4)]='following',_0x4ac361[_0x198c54(0x299)]=_0x198c54(0x295),_0x4ac361['PRESENTING']=_0x198c54(0x274),_0x4ac361))(_0x33922d||{});const _0x57f8f8='SAME_OPERATION_SHARE_INTERVAL',_0x100476=0xc8;_0x219a3f[_0x198c54(0x201)]=class extends _0x40790f[_0x198c54(0x278)]{constructor(_0x23ddeb,_0x2a7f82,_0x589d54,_0x5c493d,_0x111a5e){const _0x5e3b65=_0x198c54;super(),_0x5f2bc9(this,_0x5e3b65(0x283),new _0xd1ada7[(_0x5e3b65(0x255))](_0x5e3b65(0x27e))),_0x5f2bc9(this,_0x5e3b65(0x29d),this[_0x5e3b65(0x283)][_0x5e3b65(0x1e0)]()),_0x5f2bc9(this,'_init',!0x1),_0x5f2bc9(this,_0x5e3b65(0x23e),null),_0x5f2bc9(this,_0x5e3b65(0x287),null),(this[_0x5e3b65(0x1fe)]=_0x23ddeb,this[_0x5e3b65(0x22a)]=_0x2a7f82,this[_0x5e3b65(0x266)]=_0x589d54,this[_0x5e3b65(0x217)]=_0x5c493d,this[_0x5e3b65(0x294)]=_0x111a5e);}get[_0x198c54(0x22e)](){const _0x41867e=_0x198c54;return this[_0x41867e(0x283)][_0x41867e(0x218)]();}[_0x198c54(0x279)](){const _0x2765ff=_0x198c54;var _0x3f7bf4;(_0x3f7bf4=this[_0x2765ff(0x23e)])==null||_0x3f7bf4[_0x2765ff(0x279)](),this[_0x2765ff(0x283)]['next'](_0x2765ff(0x27e)),this[_0x2765ff(0x283)][_0x2765ff(0x29e)]();}[_0x198c54(0x290)](){return this['_status'];}[_0x198c54(0x24f)](){const _0x5118a0=_0x198c54;this['_init']||(this[_0x5118a0(0x1e6)]=!0x0,this[_0x5118a0(0x22a)]['sessionStatus$'][_0x5118a0(0x259)](_0x529592[_0x5118a0(0x1ea)](this[_0x5118a0(0x25d)]))[_0x5118a0(0x224)](_0x4b5394=>{const _0x219a12=_0x5118a0;switch(_0x4b5394){case _0x4e4830[_0x219a12(0x216)]['OFFLINE']:this[_0x219a12(0x204)]();break;case _0x4e4830[_0x219a12(0x216)][_0x219a12(0x205)]:this[_0x219a12(0x1e1)]();break;}}),this[_0x5118a0(0x22a)]['event$'][_0x5118a0(0x259)](_0x529592[_0x5118a0(0x1ea)](this[_0x5118a0(0x25d)]))[_0x5118a0(0x224)](_0x2893d5=>{const _0x5d3d11=_0x5118a0,{eventID:_0xf3796f}=_0x2893d5;switch(_0xf3796f){case _0x2b554d['CollaborationEvent'][_0x5d3d11(0x1fd)]:this[_0x5d3d11(0x23c)](_0x2893d5);break;case _0x2b554d['CollaborationEvent'][_0x5d3d11(0x219)]:this['_handleOperation'](_0x2893d5);break;case _0x2b554d[_0x5d3d11(0x267)][_0x5d3d11(0x25b)]:this[_0x5d3d11(0x1df)]();break;case _0x2b554d[_0x5d3d11(0x267)]['NEW_CHANGESETS']:this[_0x5d3d11(0x265)](_0x2893d5);break;}}));}['tryStartPresenting'](){const _0xb36847=_0x198c54;this[_0xb36847(0x22a)][_0xb36847(0x1eb)]({'eventID':_0x2b554d[_0xb36847(0x267)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xb36847(0x1fe)],'userID':this['_collabSession'][_0xb36847(0x237)]()}},this[_0xb36847(0x1fe)]);}['stopPresenting'](){const _0x2e05c5=_0x198c54;this[_0x2e05c5(0x22e)]===_0x2e05c5(0x274)&&(this[_0x2e05c5(0x283)][_0x2e05c5(0x213)](_0x2e05c5(0x27e)),this[_0x2e05c5(0x22a)][_0x2e05c5(0x1eb)]({'eventID':_0x2b554d[_0x2e05c5(0x267)][_0x2e05c5(0x25b)],'data':{'unitID':this['_unitID']}},this[_0x2e05c5(0x1fe)]));}[_0x198c54(0x28d)](){const _0x35013e=_0x198c54;this['_status']==='not-following'&&(this['_status$'][_0x35013e(0x213)]('following'),this[_0x35013e(0x1de)]());}[_0x198c54(0x250)](){const _0x458471=_0x198c54;this[_0x458471(0x22e)]===_0x458471(0x27c)&&this[_0x458471(0x2b6)]();}[_0x198c54(0x23c)](_0x26412c){const _0x223e7b=_0x198c54,{presenter:_0x190ba7}=_0x26412c[_0x223e7b(0x286)],_0x3d5ceb=this[_0x223e7b(0x22a)][_0x223e7b(0x237)]();this['_presenter']=_0x190ba7,_0x190ba7===_0x3d5ceb?(this[_0x223e7b(0x2b6)](),this[_0x223e7b(0x210)]()):this[_0x223e7b(0x22e)]!==_0x223e7b(0x295)&&(this[_0x223e7b(0x20e)](),this[_0x223e7b(0x1de)]());}['_fetchOperations'](){const _0x315391=_0x198c54,_0x444a3d={'eventID':_0x2b554d[_0x315391(0x267)][_0x315391(0x1f8)]};this['_collabSession'][_0x315391(0x1eb)](_0x444a3d,this[_0x315391(0x1fe)]);}[_0x198c54(0x1df)](){const _0x54c03b=_0x198c54;this['_presenter']=null,this['_status']!==_0x54c03b(0x274)&&this['_beIdle']();}[_0x198c54(0x265)](_0x24d877){const _0x43505f=_0x198c54;if(this['_status']==='following'&&this['_presenter']===_0x24d877['data'][_0x43505f(0x24d)]){const _0x52afda=_0x2b554d[_0x43505f(0x262)](_0x24d877[_0x43505f(0x286)])['mutations']['reverse']()[_0x43505f(0x20d)](_0x4c78ce=>_0x4c78ce['id']===_0x37f478[_0x43505f(0x220)]['id']);if(_0x52afda){const _0x339b96=_0x52afda[_0x43505f(0x222)][_0x43505f(0x20c)],_0x178d40=_0x52afda[_0x43505f(0x222)][_0x43505f(0x28b)]['id'];setTimeout(()=>{const _0x50debe=_0x43505f;this[_0x50debe(0x294)][_0x50debe(0x2b9)](_0x37f478['SetWorksheetActiveOperation']['id'],{'unitId':_0x339b96,'subUnitId':_0x178d40},{'fromCollab':!0x0});});}}}[_0x198c54(0x210)](){const _0x299c78=_0x198c54;this[_0x299c78(0x283)][_0x299c78(0x213)](_0x299c78(0x274));const _0x59085d=new Map(),_0x641ca2=this['_commandDisposable']=new _0x40790f[(_0x299c78(0x1e8))]();_0x641ca2['add'](_0x40790f[_0x299c78(0x24a)](()=>{const _0x254c49=_0x299c78;_0x59085d['forEach'](_0x244935=>_0x244935['complete']()),_0x59085d[_0x254c49(0x2ac)]();})),_0x641ca2[_0x299c78(0x297)](this[_0x299c78(0x294)][_0x299c78(0x1dc)](_0x590070=>{const _0x5dcb8d=_0x299c78;var _0x1dac49;if(_0x590070[_0x5dcb8d(0x226)]!==_0x40790f['CommandType'][_0x5dcb8d(0x241)]||!this[_0x5dcb8d(0x217)][_0x5dcb8d(0x242)](_0x590070['id']))return;const {id:_0xb4aec9}=_0x590070;let _0x14e3b7;_0x59085d[_0x5dcb8d(0x22d)](_0xb4aec9)?_0x14e3b7=_0x59085d[_0x5dcb8d(0x22b)](_0xb4aec9):(_0x14e3b7=new _0xd1ada7['Subject'](),_0x59085d[_0x5dcb8d(0x26f)](_0xb4aec9,_0x14e3b7),_0x14e3b7['pipe'](_0x529592['throttleTime']((_0x1dac49=this[_0x5dcb8d(0x266)][_0x5dcb8d(0x28a)](_0x57f8f8))!=null?_0x1dac49:_0x100476,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5dcb8d(0x224)](_0x79539a=>{const _0x5c4a38=_0x5dcb8d;this[_0x5c4a38(0x22a)][_0x5c4a38(0x1eb)]({'eventID':_0x2b554d[_0x5c4a38(0x267)][_0x5c4a38(0x219)],'data':{'unitID':this['_unitID'],'operations':{[_0x79539a['id']]:{'id':_0x79539a['id'],'params':JSON['stringify'](_0x79539a[_0x5c4a38(0x222)])}}}},this[_0x5c4a38(0x1fe)]);})),_0x14e3b7['next'](_0x590070);})),this[_0x299c78(0x217)]['getInitialStates'](this[_0x299c78(0x1fe)])[_0x299c78(0x236)](_0x3030fa=>this[_0x299c78(0x22a)][_0x299c78(0x1eb)]({'eventID':_0x2b554d[_0x299c78(0x267)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x299c78(0x1fe)],'operations':{[_0x3030fa['id']]:{'id':_0x3030fa['id'],'params':JSON[_0x299c78(0x1e5)](_0x3030fa['params'])}}}},this['_unitID']));}[_0x198c54(0x20e)](){const _0xf8d8ea=_0x198c54;var _0x370861;this['_status$']['next'](_0xf8d8ea(0x27e)),(_0x370861=this['_commandDisposable'])==null||_0x370861[_0xf8d8ea(0x279)](),this[_0xf8d8ea(0x23e)]=null;}[_0x198c54(0x1de)](){const _0x2fa1e0=_0x198c54;var _0xa437aa;(_0xa437aa=this['_commandDisposable'])==null||_0xa437aa['dispose'](),this[_0x2fa1e0(0x283)][_0x2fa1e0(0x213)](_0x2fa1e0(0x27c));}[_0x198c54(0x271)](){const _0x1766cc=_0x198c54;var _0x4de27d;this[_0x1766cc(0x283)][_0x1766cc(0x213)]('idle'),(_0x4de27d=this[_0x1766cc(0x23e)])==null||_0x4de27d[_0x1766cc(0x279)](),this[_0x1766cc(0x23e)]=null;}[_0x198c54(0x2b6)](){const _0x201b56=_0x198c54;var _0x1403ac;this[_0x201b56(0x283)]['next'](_0x201b56(0x295)),(_0x1403ac=this[_0x201b56(0x23e)])==null||_0x1403ac[_0x201b56(0x279)]();}[_0x198c54(0x263)](_0x5281e1){const _0x1672e0=_0x198c54;if(['presenting','not-following',_0x1672e0(0x203)][_0x1672e0(0x225)](this[_0x1672e0(0x22e)])||!_0x5281e1[_0x1672e0(0x286)][_0x1672e0(0x1ff)]||_0x5281e1['data'][_0x1672e0(0x1ff)]===this[_0x1672e0(0x22a)]['getMemberID']())return;this[_0x1672e0(0x22e)]===_0x1672e0(0x27e)&&this[_0x1672e0(0x1de)]();const _0x35bbbd=_0x5281e1[_0x1672e0(0x286)][_0x1672e0(0x277)];Object['values'](_0x35bbbd)[_0x1672e0(0x236)](_0x31b782=>{const _0x8d5bcf=_0x1672e0;this[_0x8d5bcf(0x294)][_0x8d5bcf(0x2b9)](_0x31b782['id'],_0x31b782[_0x8d5bcf(0x222)]?JSON[_0x8d5bcf(0x21a)](_0x31b782[_0x8d5bcf(0x222)]):null,{'fromCollab':!0x0});});}[_0x198c54(0x204)](){const _0x3b137f=_0x198c54;var _0x4b8bae;this['_status$']['next']('offline'),(_0x4b8bae=this[_0x3b137f(0x23e)])==null||_0x4b8bae[_0x3b137f(0x279)]();}['_handleOnline'](){const _0x1b7037=_0x198c54;this['_status$'][_0x1b7037(0x213)](_0x1b7037(0x27e)),this[_0x1b7037(0x215)]();}},_0x219a3f[_0x198c54(0x201)]=_0x5e15f8([_0x68fa75(0x2,_0x40790f['IConfigService']),_0x68fa75(0x3,_0x40790f['Inject'](_0x3f94ee)),_0x68fa75(0x4,_0x40790f['ICommandService'])],_0x219a3f[_0x198c54(0x201)]);function _0x19a099(){const _0x11e00c=_0x198c54,_0x19d73a=_0x3ef861['useDependency'](_0x219a3f[_0x11e00c(0x228)]),_0x1da5af=_0x3ef861['useDependency'](_0x40790f[_0x11e00c(0x227)]),_0x4bd4d9=_0x3ef861[_0x11e00c(0x2ab)](()=>_0x1da5af[_0x11e00c(0x2bb)](_0x40790f[_0x11e00c(0x26c)][_0x11e00c(0x244)]),void 0x0,!0x1,[]),[_0x3077d7,_0x39c720]=_0x39f6be[_0x11e00c(0x239)](null),[_0x2044b7,_0x207958]=_0x39f6be['useState'](_0x33922d[_0x11e00c(0x1f2)]),_0x19f741=_0x39f6be['useRef'](null);return _0x39f6be['useEffect'](()=>(_0x4bd4d9&&_0x19d73a['getLiveShareCoordinator'](_0x4bd4d9[_0x11e00c(0x23d)]())[_0x11e00c(0x1ee)](_0x263c17=>{const _0x21182b=_0x11e00c;_0x39c720(_0x263c17),_0x19f741[_0x21182b(0x2af)]=_0x263c17[_0x21182b(0x29d)][_0x21182b(0x224)](_0x2ac303=>{_0x207958(_0x2ac303);});}),()=>{const _0x58555b=_0x11e00c;var _0x1cbb16;(_0x1cbb16=_0x19f741['current'])==null||_0x1cbb16[_0x58555b(0x291)](),_0x19f741['current']=null;}),[_0x4bd4d9,_0x19d73a]),_0x3077d7?_0x3ecb81[_0x11e00c(0x254)](_0x49fd3f[_0x11e00c(0x256)],{'align':_0x11e00c(0x253),'disabled':_0x2044b7===_0x33922d[_0x11e00c(0x27f)],'className':_0x11e00c(0x247),'overlay':_0x3ecb81['jsx'](_0x19e6ef,{'status':_0x2044b7,'coordinator':_0x3077d7}),'children':_0x3ecb81[_0x11e00c(0x254)](_0x11e00c(0x229),{'className':_0x49fd3f[_0x11e00c(0x211)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2044b7===_0x33922d[_0x11e00c(0x27f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2044b7!==_0x33922d['OFFLINE']}),'type':'button','children':_0x3ecb81[_0x11e00c(0x254)](_0x5b6f8f,{'className':_0x11e00c(0x28c)})})}):null;}function _0x19e6ef(_0x5330c3){const _0x41239f=_0x198c54,{status:_0x71be2b,coordinator:_0x32f1f1}=_0x5330c3;switch(_0x71be2b){case _0x33922d[_0x41239f(0x1f2)]:return _0x3ecb81[_0x41239f(0x254)](_0x34bc18,{'coordinator':_0x32f1f1});case _0x33922d[_0x41239f(0x1f4)]:return _0x3ecb81[_0x41239f(0x254)](_0x448354,{'coordinator':_0x32f1f1});case _0x33922d[_0x41239f(0x299)]:return _0x3ecb81['jsx'](_0x24735e,{'coordinator':_0x32f1f1});case _0x33922d['OFFLINE']:return _0x3ecb81[_0x41239f(0x254)](_0x59f1af,{});case _0x33922d['PRESENTING']:return _0x3ecb81[_0x41239f(0x254)](_0x4d8326,{'coordinator':_0x32f1f1});default:return null;}}function _0x34bc18(_0x40f896){const _0x26fbb9=_0x198c54,{coordinator:_0xf6c2b8}=_0x40f896;return _0x3ecb81['jsxs'](_0x3ecb81[_0x26fbb9(0x223)],{'children':[_0x3ecb81[_0x26fbb9(0x254)](_0x26fbb9(0x296),{'className':_0x26fbb9(0x208),'children':'Present\x20this\x20document'}),_0x3ecb81['jsx'](_0x49fd3f[_0x26fbb9(0x26a)],{'onClick':()=>_0xf6c2b8['tryStartPresenting'](),'children':_0x26fbb9(0x20b)})]});}function _0x448354(_0x2e86f2){const _0x321e6a=_0x198c54,{coordinator:_0x558e8a}=_0x2e86f2;return _0x3ecb81[_0x321e6a(0x25c)](_0x3ecb81[_0x321e6a(0x223)],{'children':[_0x3ecb81[_0x321e6a(0x254)](_0x321e6a(0x296),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x321e6a(0x235)}),_0x3ecb81[_0x321e6a(0x254)](_0x49fd3f[_0x321e6a(0x26a)],{'onClick':()=>_0x558e8a[_0x321e6a(0x250)](),'children':_0x321e6a(0x264)})]});}function _0x24735e(_0x8e77c8){const _0x3e080d=_0x198c54,{coordinator:_0x4c2391}=_0x8e77c8;return _0x3ecb81['jsxs'](_0x3ecb81[_0x3e080d(0x223)],{'children':[_0x3ecb81[_0x3e080d(0x254)](_0x3e080d(0x296),{'className':_0x3e080d(0x208),'children':_0x3e080d(0x27a)}),_0x3ecb81['jsx'](_0x49fd3f['Button'],{'variant':_0x3e080d(0x28f),'onClick':()=>_0x4c2391['startFollowing'](),'children':_0x3e080d(0x268)})]});}function _0x4d8326(_0x105ab7){const _0x2e9fb5=_0x198c54,{coordinator:_0x7237d9}=_0x105ab7;return _0x3ecb81['jsxs'](_0x3ecb81[_0x2e9fb5(0x223)],{'children':[_0x3ecb81[_0x2e9fb5(0x254)](_0x2e9fb5(0x296),{'className':_0x2e9fb5(0x208),'children':_0x2e9fb5(0x1f6)}),_0x3ecb81[_0x2e9fb5(0x254)](_0x49fd3f[_0x2e9fb5(0x26a)],{'variant':_0x2e9fb5(0x298),'onClick':()=>_0x7237d9[_0x2e9fb5(0x238)](),'children':_0x2e9fb5(0x2b8)})]});}function _0x59f1af(){return _0x3ecb81['jsx'](_0x3ecb81['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x94151f=Object['getOwnPropertyDescriptor'],_0x45446a=(_0x1892c9,_0x16231a,_0x1948f1,_0x278995)=>{const _0x1599ce=_0x198c54;for(var _0x14abef=_0x278995>0x1?void 0x0:_0x278995?_0x94151f(_0x16231a,_0x1948f1):_0x16231a,_0x3f9998=_0x1892c9[_0x1599ce(0x27b)]-0x1,_0x1bc865;_0x3f9998>=0x0;_0x3f9998--)(_0x1bc865=_0x1892c9[_0x3f9998])&&(_0x14abef=_0x1bc865(_0x14abef)||_0x14abef);return _0x14abef;},_0x4abf52=(_0x5bb96a,_0x951178)=>(_0x4e0165,_0xb1ee15)=>_0x951178(_0x4e0165,_0xb1ee15,_0x5bb96a);_0x219a3f[_0x198c54(0x200)]=class extends _0x40790f[_0x198c54(0x289)]{constructor(_0x45eb1b,_0x1ebfca){const _0x4b1700=_0x198c54;super(),this[_0x4b1700(0x1fa)]=_0x45eb1b,this[_0x4b1700(0x26d)]=_0x1ebfca,this['_mountLiveShare']();}[_0x198c54(0x2bd)](){const _0x168879=_0x198c54;this[_0x168879(0x269)](this['_uiPartsService'][_0x168879(0x26e)](_0x3ef861[_0x168879(0x1f7)][_0x168879(0x280)],()=>_0x3ef861['connectInjector'](_0x19a099,this[_0x168879(0x1fa)])));}},_0x219a3f['DesktopLiveShareController']=_0x45446a([_0x4abf52(0x0,_0x40790f[_0x198c54(0x2a7)](_0x40790f['Injector'])),_0x4abf52(0x1,_0x3ef861['IUIPartsService'])],_0x219a3f['DesktopLiveShareController']);const _0x4f2c29=_0x198c54(0x288),_0x45721b={};var _0x5d673b=Object['getOwnPropertyDescriptor'],_0x2089f4=(_0x1f7f06,_0x362f51,_0xac201e,_0x3ab5ef)=>{const _0x1f4566=_0x198c54;for(var _0x255a61=_0x3ab5ef>0x1?void 0x0:_0x3ab5ef?_0x5d673b(_0x362f51,_0xac201e):_0x362f51,_0x4bbbeb=_0x1f7f06[_0x1f4566(0x27b)]-0x1,_0x8ef130;_0x4bbbeb>=0x0;_0x4bbbeb--)(_0x8ef130=_0x1f7f06[_0x4bbbeb])&&(_0x255a61=_0x8ef130(_0x255a61)||_0x255a61);return _0x255a61;},_0x442d84=(_0x21dbe3,_0x212866)=>(_0x4efa4f,_0x43e934)=>_0x212866(_0x4efa4f,_0x43e934,_0x21dbe3);let _0x51cb9a=class extends _0x40790f[_0x198c54(0x289)]{constructor(_0x145878){const _0xa1b69c=_0x198c54;super(),this[_0xa1b69c(0x217)]=_0x145878,this[_0xa1b69c(0x1e6)]();}[_0x198c54(0x1e6)](){const _0x33a25b=_0x198c54;[_0x486c38[_0x33a25b(0x21e)]['id'],_0x486c38[_0x33a25b(0x29c)]['id'],_0x37f478[_0x33a25b(0x1f0)]['id']]['forEach'](_0x1af59b=>{const _0x5ad2a5=_0x33a25b;this[_0x5ad2a5(0x269)](this['_liveShareService'][_0x5ad2a5(0x2a6)](_0x1af59b));});}};_0x51cb9a=_0x2089f4([_0x442d84(0x0,_0x40790f['Inject'](_0x3f94ee))],_0x51cb9a);var _0x3cdbfa=Object['defineProperty'],_0x111c33=Object[_0x198c54(0x1e3)],_0xde1712=(_0x232320,_0x326b5b,_0xa33d3f)=>_0x326b5b in _0x232320?_0x3cdbfa(_0x232320,_0x326b5b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa33d3f}):_0x232320[_0x326b5b]=_0xa33d3f,_0x119389=(_0x5983fa,_0xf6b71e,_0x156195,_0x525203)=>{const _0x27bdcb=_0x198c54;for(var _0x592592=_0x525203>0x1?void 0x0:_0x525203?_0x111c33(_0xf6b71e,_0x156195):_0xf6b71e,_0x2c4289=_0x5983fa[_0x27bdcb(0x27b)]-0x1,_0x5c3c59;_0x2c4289>=0x0;_0x2c4289--)(_0x5c3c59=_0x5983fa[_0x2c4289])&&(_0x592592=_0x5c3c59(_0x592592)||_0x592592);return _0x592592;},_0x29a959=(_0x516198,_0x5b45e6)=>(_0x405d0a,_0x4bec9b)=>_0x5b45e6(_0x405d0a,_0x4bec9b,_0x516198),_0x1482e5=(_0x21bfbd,_0x25fa2e,_0x5e9155)=>_0xde1712(_0x21bfbd,typeof _0x25fa2e!=_0x198c54(0x209)?_0x25fa2e+'':_0x25fa2e,_0x5e9155);const _0x44f926=_0x198c54(0x248);_0x219a3f['UniverLiveSharePlugin']=class extends _0x40790f['Plugin']{constructor(_0x182ed0=_0x45721b,_0x1eeabc,_0xeeef0a){const _0x2c478b=_0x198c54;super(),this[_0x2c478b(0x249)]=_0x182ed0,this[_0x2c478b(0x1fa)]=_0x1eeabc,this[_0x2c478b(0x266)]=_0xeeef0a;const {..._0x334b88}=_0x40790f[_0x2c478b(0x214)]({},_0x45721b,this[_0x2c478b(0x249)]);this[_0x2c478b(0x266)][_0x2c478b(0x261)](_0x4f2c29,_0x334b88);}[_0x198c54(0x27d)](){const _0x18c5dc=_0x198c54;_0x40790f[_0x18c5dc(0x221)](this[_0x18c5dc(0x1fa)],_0x40790f[_0x18c5dc(0x1ec)]([[_0x3f94ee],[_0x219a3f['LiveShareController']],[_0x51cb9a],[_0x219a3f[_0x18c5dc(0x200)]]],this[_0x18c5dc(0x249)][_0x18c5dc(0x25f)])),_0x40790f[_0x18c5dc(0x1e4)](this[_0x18c5dc(0x1fa)],[[_0x51cb9a]]);}[_0x198c54(0x272)](){const _0x2e214c=_0x198c54;_0x40790f[_0x2e214c(0x1e4)](this[_0x2e214c(0x1fa)],[[_0x219a3f['DesktopLiveShareController']]]);}},_0x1482e5(_0x219a3f[_0x198c54(0x2aa)],_0x198c54(0x226),_0x40790f[_0x198c54(0x26c)]['UNIVER_UNKNOWN']),_0x1482e5(_0x219a3f['UniverLiveSharePlugin'],'pluginName',_0x44f926),_0x219a3f[_0x198c54(0x2aa)]=_0x119389([_0x40790f[_0x198c54(0x2a8)](_0x4e4830[_0x198c54(0x2b1)]),_0x29a959(0x1,_0x40790f['Inject'](_0x40790f[_0x198c54(0x29a)])),_0x29a959(0x2,_0x40790f[_0x198c54(0x275)])],_0x219a3f[_0x198c54(0x2aa)]),_0x219a3f['LiveShare']=_0x19a099,_0x219a3f[_0x198c54(0x206)]=_0x3f94ee,_0x219a3f[_0x198c54(0x232)]=_0x33922d,Object[_0x198c54(0x1dd)](_0x219a3f,Symbol[_0x198c54(0x246)],{'value':'Module'});}));
|
|
1
|
+
(function(_0xeedef3,_0x5b2ecc){const _0x580baa=_0x2d88,_0xec2e70=_0xeedef3();while(!![]){try{const _0x371569=parseInt(_0x580baa(0x181))/0x1+parseInt(_0x580baa(0x129))/0x2*(parseInt(_0x580baa(0xdc))/0x3)+-parseInt(_0x580baa(0x185))/0x4*(parseInt(_0x580baa(0xc3))/0x5)+parseInt(_0x580baa(0x114))/0x6*(-parseInt(_0x580baa(0x123))/0x7)+-parseInt(_0x580baa(0x121))/0x8+parseInt(_0x580baa(0x191))/0x9*(-parseInt(_0x580baa(0xbc))/0xa)+parseInt(_0x580baa(0xf6))/0xb;if(_0x371569===_0x5b2ecc)break;else _0xec2e70['push'](_0xec2e70['shift']());}catch(_0x26e4d2){_0xec2e70['push'](_0xec2e70['shift']());}}}(_0x57dc,0x49c12),function(_0x454a0b,_0x2af9a8){const _0x54de4b=_0x2d88;typeof exports==_0x54de4b(0x11e)&&typeof module<'u'?_0x2af9a8(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==_0x54de4b(0xed)&&define['amd']?define(['exports',_0x54de4b(0x14b),_0x54de4b(0x14f),_0x54de4b(0x115),_0x54de4b(0x146),_0x54de4b(0x13b),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x54de4b(0x107),_0x54de4b(0x196),'rxjs/operators',_0x54de4b(0xe5)],_0x2af9a8):(_0x454a0b=typeof globalThis<'u'?globalThis:_0x454a0b||self,_0x2af9a8(_0x454a0b[_0x54de4b(0x14e)]={},_0x454a0b[_0x54de4b(0x139)],_0x454a0b[_0x54de4b(0x194)],_0x454a0b[_0x54de4b(0x12f)],_0x454a0b[_0x54de4b(0xf4)],_0x454a0b[_0x54de4b(0x12f)],_0x454a0b[_0x54de4b(0xb7)],_0x454a0b[_0x54de4b(0x16e)],_0x454a0b[_0x54de4b(0xd1)],_0x454a0b['rxjs'],_0x454a0b['rxjs'][_0x54de4b(0xbd)],_0x454a0b['UniverSheetsUi']));}(this,function(_0x1d53d8,_0x1397df,_0x4da58e,_0x4e7be3,_0x1f13cb,_0x34a161,_0x4e00b2,_0x405ccc,_0x3cdbdd,_0x912b8,_0xdde623,_0x56053b){'use strict';const _0xae0692=_0x2d88;var _0x755593=Object['defineProperty'],_0x2b9bc1=(_0x297996,_0x11a580,_0x795d94)=>_0x11a580 in _0x297996?_0x755593(_0x297996,_0x11a580,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x795d94}):_0x297996[_0x11a580]=_0x795d94,_0x16daf4=(_0x44acf5,_0x55f8f3,_0x20fb5d)=>_0x2b9bc1(_0x44acf5,typeof _0x55f8f3!=_0xae0692(0x111)?_0x55f8f3+'':_0x55f8f3,_0x20fb5d);function _0x5c3958({ref:_0x26d89f,..._0x1d3462}){const _0x1d779b=_0xae0692,{icon:_0x5c9b88,id:_0x28fa35,className:_0x52f228,extend:_0x2cae1b,..._0x53fd28}=_0x1d3462,_0x1a8847=(_0x1d779b(0x137)+_0x28fa35+'\x20'+(_0x52f228||''))[_0x1d779b(0x133)](),_0x221255=_0x34a161[_0x1d779b(0x178)]('_'+_0x49e592());return _0x170b76(_0x5c9b88,''+_0x28fa35,{'defIds':_0x5c9b88[_0x1d779b(0x179)],'idSuffix':_0x221255[_0x1d779b(0x173)]},{'ref':_0x26d89f,'className':_0x1a8847,..._0x53fd28},_0x2cae1b);}function _0x170b76(_0x2925e2,_0xc17adb,_0x5b95d0,_0x34d574,_0x18bd8d){const _0xd46a5c=_0xae0692;return _0x34a161[_0xd46a5c(0x106)](_0x2925e2[_0xd46a5c(0x11d)],{'key':_0xc17adb,..._0x47aff1(_0x2925e2,_0x5b95d0,_0x18bd8d),..._0x34d574},(_0x31bd17(_0x2925e2,_0x5b95d0)[_0xd46a5c(0x166)]||[])[_0xd46a5c(0xec)]((_0xff916f,_0x174ffa)=>_0x170b76(_0xff916f,_0xc17adb+'-'+_0x2925e2[_0xd46a5c(0x11d)]+'-'+_0x174ffa,_0x5b95d0,void 0x0,_0x18bd8d)));}function _0x47aff1(_0x557a8a,_0x37c660,_0x5184eb){const _0x5770bb=_0xae0692,_0x524c58={..._0x557a8a['attrs']};_0x5184eb!=null&&_0x5184eb[_0x5770bb(0x197)]&&_0x524c58[_0x5770bb(0x180)]===_0x5770bb(0x197)&&(_0x524c58[_0x5770bb(0x180)]=_0x5184eb['colorChannel1']),_0x557a8a[_0x5770bb(0x11d)]===_0x5770bb(0xe3)&&_0x524c58['id']&&(_0x524c58['id']=_0x524c58['id']+_0x37c660[_0x5770bb(0xf8)]),Object[_0x5770bb(0x169)](_0x524c58)['forEach'](([_0x5e8222,_0x425c94])=>{const _0x28accc=_0x5770bb;_0x5e8222===_0x28accc(0xe3)&&typeof _0x425c94==_0x28accc(0xd7)&&(_0x524c58[_0x5e8222]=_0x425c94[_0x28accc(0xe2)](/url\(#(.*)\)/,'url(#$1'+_0x37c660[_0x28accc(0xf8)]+')'));});const {defIds:_0x1a7738}=_0x37c660;return!_0x1a7738||_0x1a7738[_0x5770bb(0xe8)]===0x0||(_0x557a8a[_0x5770bb(0x11d)]==='use'&&_0x524c58[_0x5770bb(0x100)]&&(_0x524c58[_0x5770bb(0x100)]=_0x524c58[_0x5770bb(0x100)]+_0x37c660[_0x5770bb(0xf8)]),Object[_0x5770bb(0x169)](_0x524c58)[_0x5770bb(0xbf)](([_0x341915,_0x173e6f])=>{const _0x443248=_0x5770bb;typeof _0x173e6f==_0x443248(0xd7)&&(_0x524c58[_0x341915]=_0x173e6f['replace'](/url\(#(.*)\)/,_0x443248(0x119)+_0x37c660[_0x443248(0xf8)]+')'));})),_0x524c58;}function _0x31bd17(_0x5f039c,_0x560bd4){const _0x185205=_0xae0692;var _0x16b8d2;const {defIds:_0x34efb6}=_0x560bd4;return!_0x34efb6||_0x34efb6[_0x185205(0xe8)]===0x0?_0x5f039c:_0x5f039c[_0x185205(0x11d)]===_0x185205(0x187)&&((_0x16b8d2=_0x5f039c[_0x185205(0x166)])!=null&&_0x16b8d2[_0x185205(0xe8)])?{..._0x5f039c,'children':_0x5f039c[_0x185205(0x166)][_0x185205(0xec)](_0x3395ff=>typeof _0x3395ff[_0x185205(0x16d)]['id']==_0x185205(0xd7)&&_0x34efb6&&_0x34efb6[_0x185205(0xfa)](_0x3395ff['attrs']['id'])?{..._0x3395ff,'attrs':{..._0x3395ff['attrs'],'id':_0x3395ff[_0x185205(0x16d)]['id']+_0x560bd4[_0x185205(0xf8)]}}:_0x3395ff)}:_0x5f039c;}function _0x49e592(){const _0x56798d=_0xae0692;return Math['random']()[_0x56798d(0xe1)](0x24)['substring'](0x2,0x8);}_0x5c3958[_0xae0692(0x17b)]=_0xae0692(0x17c);const _0x4eba07={'tag':_0xae0692(0xe7),'attrs':{'xmlns':_0xae0692(0x151),'fill':'none','viewBox':_0xae0692(0x192),'width':_0xae0692(0xde),'height':_0xae0692(0xde)},'children':[{'tag':_0xae0692(0x104),'attrs':{'fill':_0xae0692(0xf9),'d':_0xae0692(0x174)}},{'tag':_0xae0692(0x104),'attrs':{'fill':_0xae0692(0xf9),'d':_0xae0692(0xd8),'fillRule':_0xae0692(0x117),'clipRule':_0xae0692(0x117)}}]},_0x21b4bb=_0x34a161[_0xae0692(0x14a)](function(_0x3877a0,_0x45d510){const _0x3bb879=_0xae0692;return _0x34a161[_0x3bb879(0x106)](_0x5c3958,Object[_0x3bb879(0x11a)]({},_0x3877a0,{'id':_0x3bb879(0x182),'ref':_0x45d510,'icon':_0x4eba07}));});_0x21b4bb['displayName']=_0xae0692(0xd3);class _0x2aa38c extends _0x1397df[_0xae0692(0x183)]{constructor(){const _0x5af0b4=_0xae0692;super(...arguments),_0x16daf4(this,_0x5af0b4(0xbe),new Set()),_0x16daf4(this,_0x5af0b4(0x19d),new Set());}['registerSharedOperation'](_0x51c3d2){const _0x53a22d=_0xae0692;return this[_0x53a22d(0xbe)][_0x53a22d(0x171)](_0x51c3d2),_0x1397df[_0x53a22d(0xc4)](()=>this[_0x53a22d(0xbe)][_0x53a22d(0x168)](_0x51c3d2));}[_0xae0692(0xc8)](_0x1a4cf2){const _0x360af5=_0xae0692;return this[_0x360af5(0x19d)][_0x360af5(0x171)](_0x1a4cf2),_0x1397df[_0x360af5(0xc4)](()=>this[_0x360af5(0x19d)][_0x360af5(0x168)](_0x1a4cf2));}[_0xae0692(0x112)](_0x314465){const _0x2e428a=_0xae0692;return this[_0x2e428a(0xbe)][_0x2e428a(0x128)](_0x314465);}['getInitialStates'](_0x3216d3){const _0x3e9081=_0xae0692;return Array['from'](this[_0x3e9081(0x19d)])[_0x3e9081(0xec)](_0x3f73a1=>_0x3f73a1(_0x3216d3));}}var _0xc7b8c6=Object[_0xae0692(0x11c)],_0x558cf2=(_0x4c1db5,_0x527e66,_0x5bad0a,_0x589082)=>{const _0x2d74db=_0xae0692;for(var _0x11cb2c=_0x589082>0x1?void 0x0:_0x589082?_0xc7b8c6(_0x527e66,_0x5bad0a):_0x527e66,_0x94ad4e=_0x4c1db5[_0x2d74db(0xe8)]-0x1,_0x54cbab;_0x94ad4e>=0x0;_0x94ad4e--)(_0x54cbab=_0x4c1db5[_0x94ad4e])&&(_0x11cb2c=_0x54cbab(_0x11cb2c)||_0x11cb2c);return _0x11cb2c;},_0x286e77=(_0x22ae76,_0x30e53b)=>(_0x42f393,_0xb31f21)=>_0x30e53b(_0x42f393,_0xb31f21,_0x22ae76);_0x1d53d8[_0xae0692(0x12d)]=class extends _0x1397df['RxDisposable']{constructor(_0x349228,_0xe3d42c,_0x5038be){const _0x3ce1a7=_0xae0692;super(),_0x16daf4(this,_0x3ce1a7(0x147),new Map()),(this[_0x3ce1a7(0x109)]=_0x349228,this[_0x3ce1a7(0x160)]=_0xe3d42c,this[_0x3ce1a7(0xb9)]=_0x5038be,this['_init']());}async[_0xae0692(0x141)](_0x259899){const _0x462d4a=_0xae0692;return this[_0x462d4a(0x147)][_0x462d4a(0x128)](_0x259899)||await this[_0x462d4a(0xe0)](_0x259899),this[_0x462d4a(0x147)][_0x462d4a(0x190)](_0x259899);}[_0xae0692(0xf3)](_0x10337d){const _0x3fd52f=_0xae0692;var _0x2f74e2;return(_0x2f74e2=this[_0x3fd52f(0x147)][_0x3fd52f(0x190)](_0x10337d))!=null?_0x2f74e2:null;}[_0xae0692(0x12a)](){const _0xda3b5c=_0xae0692;this[_0xda3b5c(0x109)]['getTypeOfUnitAdded$'](_0x1397df[_0xda3b5c(0xdd)]['UNIVER_SHEET'])[_0xda3b5c(0xda)](_0xdde623[_0xda3b5c(0x11f)](this[_0xda3b5c(0xf7)]))[_0xda3b5c(0x13e)](async _0x4501de=>{const _0xa80360=_0xda3b5c,_0x5ee04f=_0x4501de[_0xa80360(0x17d)]();this['_entities']['has'](_0x5ee04f)||this[_0xa80360(0xe0)](_0x5ee04f);}),this[_0xda3b5c(0x109)]['getTypeOfUnitDisposed$'](_0x1397df[_0xda3b5c(0xdd)][_0xda3b5c(0xc7)])['pipe'](_0xdde623[_0xda3b5c(0x11f)](this[_0xda3b5c(0xf7)]))['subscribe'](_0x485546=>{const _0x388358=_0xda3b5c,_0x4656cb=_0x485546[_0x388358(0x17d)](),_0x43fae2=this[_0x388358(0x147)][_0x388358(0x190)](_0x4656cb);_0x43fae2==null||_0x43fae2[_0x388358(0x157)]();});}async[_0xae0692(0xe0)](_0x584211){const _0x5c33bd=_0xae0692,_0x1e56be=await this['_collabSessionService'][_0x5c33bd(0xd9)](_0x584211),_0x3759b8=this['_injector']['createInstance'](_0x1d53d8['LiveShareCoordinator'],_0x584211,_0x1e56be);return _0x3759b8['init'](),this[_0x5c33bd(0x147)][_0x5c33bd(0x122)](_0x584211,_0x3759b8),_0x3759b8;}},_0x1d53d8[_0xae0692(0x12d)]=_0x558cf2([_0x286e77(0x0,_0x1397df[_0xae0692(0x101)]),_0x286e77(0x1,_0x1397df[_0xae0692(0xd2)](_0x1397df[_0xae0692(0x18c)])),_0x286e77(0x2,_0x1397df['Inject'](_0x405ccc[_0xae0692(0xef)]))],_0x1d53d8[_0xae0692(0x12d)]);var _0x5d2a2f=(_0x48a300=>(_0x48a300['OFFLINE']='offline',_0x48a300[_0xae0692(0x10d)]=_0xae0692(0xd4),_0x48a300[_0xae0692(0x130)]=_0xae0692(0x189),_0x48a300[_0xae0692(0xeb)]='not-following',_0x48a300[_0xae0692(0x12e)]=_0xae0692(0xcc),_0x48a300))(_0x5d2a2f||{});const _0x1a4ba1=_0xae0692(0x138),_0x3e7848=0xc8;_0x1d53d8[_0xae0692(0x16a)]=class extends _0x1397df[_0xae0692(0x18e)]{constructor(_0x5a9985,_0x982c5b,_0x1df5b0,_0x46dc3b,_0x59051f){const _0x87cfee=_0xae0692;super(),_0x16daf4(this,'_status$',new _0x912b8[(_0x87cfee(0x110))](_0x87cfee(0xd4))),_0x16daf4(this,_0x87cfee(0x15e),this['_status$'][_0x87cfee(0x153)]()),_0x16daf4(this,_0x87cfee(0x12a),!0x1),_0x16daf4(this,'_commandDisposable',null),_0x16daf4(this,'_presenter',null),(this['_unitID']=_0x5a9985,this[_0x87cfee(0x19c)]=_0x982c5b,this[_0x87cfee(0x19a)]=_0x1df5b0,this['_liveShareService']=_0x46dc3b,this[_0x87cfee(0x188)]=_0x59051f);}get['_status'](){const _0x292138=_0xae0692;return this['_status$'][_0x292138(0xf2)]();}[_0xae0692(0x157)](){const _0x6f3e12=_0xae0692;var _0x271db1;(_0x271db1=this[_0x6f3e12(0x16f)])==null||_0x271db1[_0x6f3e12(0x157)](),this[_0x6f3e12(0xfd)][_0x6f3e12(0xcf)](_0x6f3e12(0xd4)),this[_0x6f3e12(0xfd)]['complete']();}['getStatus'](){const _0x42757e=_0xae0692;return this[_0x42757e(0x170)];}[_0xae0692(0x15a)](){const _0x42622b=_0xae0692;this[_0x42622b(0x12a)]||(this[_0x42622b(0x12a)]=!0x0,this[_0x42622b(0x19c)][_0x42622b(0x163)]['pipe'](_0xdde623[_0x42622b(0x11f)](this[_0x42622b(0xf7)]))['subscribe'](_0x56631e=>{const _0x1297cb=_0x42622b;switch(_0x56631e){case _0x405ccc[_0x1297cb(0x135)][_0x1297cb(0x177)]:this[_0x1297cb(0x102)]();break;case _0x405ccc[_0x1297cb(0x135)]['ONLINE']:this[_0x1297cb(0xba)]();break;}}),this['_collabSession'][_0x42622b(0x132)][_0x42622b(0xda)](_0xdde623[_0x42622b(0x11f)](this['dispose$']))[_0x42622b(0x13e)](_0x430583=>{const _0x495be5=_0x42622b,{eventID:_0x44aeed}=_0x430583;switch(_0x44aeed){case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0xea)]:this[_0x495be5(0x184)](_0x430583);break;case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0x14c)]:this[_0x495be5(0x145)](_0x430583);break;case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0xfe)]:this['_handleTerminate']();break;case _0x4e00b2[_0x495be5(0xbb)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x430583);break;}}));}[_0xae0692(0x116)](){const _0x26a503=_0xae0692;this[_0x26a503(0x19c)][_0x26a503(0x11b)]({'eventID':_0x4e00b2['CollaborationEvent'][_0x26a503(0x195)],'data':{'unitID':this[_0x26a503(0xb6)],'userID':this[_0x26a503(0x19c)][_0x26a503(0x15c)]()}},this[_0x26a503(0xb6)]);}['stopPresenting'](){const _0x443a7c=_0xae0692;this[_0x443a7c(0x170)]===_0x443a7c(0xcc)&&(this[_0x443a7c(0xfd)][_0x443a7c(0xcf)](_0x443a7c(0xd4)),this[_0x443a7c(0x19c)][_0x443a7c(0x11b)]({'eventID':_0x4e00b2[_0x443a7c(0xbb)][_0x443a7c(0xfe)],'data':{'unitID':this[_0x443a7c(0xb6)]}},this[_0x443a7c(0xb6)]));}['startFollowing'](){const _0x550cd4=_0xae0692;this[_0x550cd4(0x170)]===_0x550cd4(0x136)&&(this[_0x550cd4(0xfd)][_0x550cd4(0xcf)](_0x550cd4(0x189)),this[_0x550cd4(0xb5)]());}[_0xae0692(0xfc)](){const _0x65c717=_0xae0692;this[_0x65c717(0x170)]===_0x65c717(0x189)&&this[_0x65c717(0x15f)]();}[_0xae0692(0x184)](_0x3cc054){const _0x3eb7c9=_0xae0692,{presenter:_0x214701}=_0x3cc054[_0x3eb7c9(0x113)],_0x550aa4=this['_collabSession'][_0x3eb7c9(0x15c)]();this[_0x3eb7c9(0xfb)]=_0x214701,_0x214701===_0x550aa4?(this[_0x3eb7c9(0x15f)](),this[_0x3eb7c9(0x108)]()):this[_0x3eb7c9(0x170)]!==_0x3eb7c9(0x136)&&(this[_0x3eb7c9(0x175)](),this[_0x3eb7c9(0xb5)]());}['_fetchOperations'](){const _0x4b641a=_0xae0692,_0x1cc8b6={'eventID':_0x4e00b2['CollaborationEvent'][_0x4b641a(0x152)]};this[_0x4b641a(0x19c)]['send'](_0x1cc8b6,this['_unitID']);}[_0xae0692(0x10b)](){const _0x2d5480=_0xae0692;this[_0x2d5480(0xfb)]=null,this[_0x2d5480(0x170)]!=='presenting'&&this[_0x2d5480(0x16c)]();}[_0xae0692(0xff)](_0x491a63){const _0x391274=_0xae0692;if(this['_status']==='following'&&this['_presenter']===_0x491a63[_0x391274(0x113)][_0x391274(0x17f)]){const _0x155f06=_0x4e00b2[_0x391274(0xca)](_0x491a63[_0x391274(0x113)])[_0x391274(0x12b)]['reverse']()['find'](_0x7535c3=>_0x7535c3['id']===_0x3cdbdd[_0x391274(0x17a)]['id']);if(_0x155f06){const _0xa87e90=_0x155f06[_0x391274(0xc1)][_0x391274(0xee)],_0x4e00a8=_0x155f06[_0x391274(0xc1)][_0x391274(0xcb)]['id'];setTimeout(()=>{const _0x416c21=_0x391274;this[_0x416c21(0x188)]['executeCommand'](_0x3cdbdd[_0x416c21(0x105)]['id'],{'unitId':_0xa87e90,'subUnitId':_0x4e00a8},{'fromCollab':!0x0});});}}}[_0xae0692(0x108)](){const _0x761a78=_0xae0692;this[_0x761a78(0xfd)][_0x761a78(0xcf)]('presenting');const _0x5ad8c1=new Map(),_0x1d8a19=this[_0x761a78(0x16f)]=new _0x1397df[(_0x761a78(0xc5))]();_0x1d8a19[_0x761a78(0x171)](_0x1397df['toDisposable'](()=>{const _0x4730fc=_0x761a78;_0x5ad8c1[_0x4730fc(0xbf)](_0xcf77fc=>_0xcf77fc[_0x4730fc(0x150)]()),_0x5ad8c1[_0x4730fc(0x15b)]();})),_0x1d8a19['add'](this[_0x761a78(0x188)][_0x761a78(0x165)](_0x363551=>{const _0x566c6c=_0x761a78;var _0x43380c;if(_0x363551[_0x566c6c(0x198)]!==_0x1397df[_0x566c6c(0x124)][_0x566c6c(0xe9)]||!this[_0x566c6c(0x13f)]['shouldShareOperation'](_0x363551['id']))return;const {id:_0x24b9e3}=_0x363551;let _0x25f08a;_0x5ad8c1[_0x566c6c(0x128)](_0x24b9e3)?_0x25f08a=_0x5ad8c1['get'](_0x24b9e3):(_0x25f08a=new _0x912b8[(_0x566c6c(0x127))](),_0x5ad8c1[_0x566c6c(0x122)](_0x24b9e3,_0x25f08a),_0x25f08a[_0x566c6c(0xda)](_0xdde623[_0x566c6c(0x13a)]((_0x43380c=this[_0x566c6c(0x19a)]['getConfig'](_0x1a4ba1))!=null?_0x43380c:_0x3e7848,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x566c6c(0x13e)](_0x23f599=>{const _0x3eedf7=_0x566c6c;this[_0x3eedf7(0x19c)][_0x3eedf7(0x11b)]({'eventID':_0x4e00b2[_0x3eedf7(0xbb)][_0x3eedf7(0x14c)],'data':{'unitID':this[_0x3eedf7(0xb6)],'operations':{[_0x23f599['id']]:{'id':_0x23f599['id'],'params':JSON['stringify'](_0x23f599[_0x3eedf7(0xc1)])}}}},this['_unitID']);})),_0x25f08a['next'](_0x363551);})),this[_0x761a78(0x13f)][_0x761a78(0x12c)](this[_0x761a78(0xb6)])['forEach'](_0x266a19=>this['_collabSession']['send']({'eventID':_0x4e00b2['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x761a78(0xb6)],'operations':{[_0x266a19['id']]:{'id':_0x266a19['id'],'params':JSON[_0x761a78(0x176)](_0x266a19['params'])}}}},this[_0x761a78(0xb6)]));}[_0xae0692(0x175)](){const _0x12a392=_0xae0692;var _0xf34590;this[_0x12a392(0xfd)][_0x12a392(0xcf)](_0x12a392(0xd4)),(_0xf34590=this[_0x12a392(0x16f)])==null||_0xf34590[_0x12a392(0x157)](),this[_0x12a392(0x16f)]=null;}[_0xae0692(0xb5)](){const _0x3d42fd=_0xae0692;var _0x4348e0;(_0x4348e0=this[_0x3d42fd(0x16f)])==null||_0x4348e0[_0x3d42fd(0x157)](),this[_0x3d42fd(0xfd)][_0x3d42fd(0xcf)]('following');}[_0xae0692(0x16c)](){const _0xd40040=_0xae0692;var _0x44ccee;this[_0xd40040(0xfd)][_0xd40040(0xcf)](_0xd40040(0xd4)),(_0x44ccee=this[_0xd40040(0x16f)])==null||_0x44ccee['dispose'](),this[_0xd40040(0x16f)]=null;}[_0xae0692(0x15f)](){const _0x4da205=_0xae0692;var _0x19045a;this[_0x4da205(0xfd)]['next']('not-following'),(_0x19045a=this[_0x4da205(0x16f)])==null||_0x19045a[_0x4da205(0x157)]();}['_handleOperation'](_0xfde2db){const _0x6d36eb=_0xae0692;if([_0x6d36eb(0xcc),_0x6d36eb(0x136),_0x6d36eb(0x156)]['includes'](this[_0x6d36eb(0x170)])||!_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x13c)]||_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x13c)]===this[_0x6d36eb(0x19c)][_0x6d36eb(0x15c)]())return;this[_0x6d36eb(0x170)]==='idle'&&this[_0x6d36eb(0xb5)]();const _0x15fb83=_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x18f)];Object[_0x6d36eb(0x126)](_0x15fb83)[_0x6d36eb(0xbf)](_0x2f63ff=>{const _0x47a085=_0x6d36eb;this['_commandService'][_0x47a085(0x149)](_0x2f63ff['id'],_0x2f63ff['params']?JSON['parse'](_0x2f63ff['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x20d663=_0xae0692;var _0xcd50ff;this[_0x20d663(0xfd)][_0x20d663(0xcf)](_0x20d663(0x156)),(_0xcd50ff=this[_0x20d663(0x16f)])==null||_0xcd50ff[_0x20d663(0x157)]();}[_0xae0692(0xba)](){const _0x470216=_0xae0692;this['_status$'][_0x470216(0xcf)](_0x470216(0xd4)),this[_0x470216(0xcd)]();}},_0x1d53d8['LiveShareCoordinator']=_0x558cf2([_0x286e77(0x2,_0x1397df[_0xae0692(0x16b)]),_0x286e77(0x3,_0x1397df['Inject'](_0x2aa38c)),_0x286e77(0x4,_0x1397df['ICommandService'])],_0x1d53d8['LiveShareCoordinator']);function _0x4ee34d(){const _0x2daf59=_0xae0692,_0xcdd38c=_0x4da58e[_0x2daf59(0x10f)](_0x1d53d8[_0x2daf59(0x12d)]),_0x96a6f=_0x4da58e[_0x2daf59(0x10f)](_0x1397df['IUniverInstanceService']),_0x116bd7=_0x4da58e[_0x2daf59(0xd6)](()=>_0x96a6f['getCurrentTypeOfUnit$'](_0x1397df['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x73a6ce,_0x2f9d87]=_0x34a161[_0x2daf59(0xc6)](null),[_0x587043,_0x53ba4b]=_0x34a161[_0x2daf59(0xc6)](_0x5d2a2f[_0x2daf59(0x10d)]),_0x24c711=_0x34a161[_0x2daf59(0x178)](null);return _0x34a161[_0x2daf59(0xb8)](()=>(_0x116bd7&&_0xcdd38c['getLiveShareCoordinator'](_0x116bd7[_0x2daf59(0x17d)]())['then'](_0x4e2e31=>{const _0x146213=_0x2daf59;_0x2f9d87(_0x4e2e31),_0x24c711[_0x146213(0x173)]=_0x4e2e31[_0x146213(0x15e)][_0x146213(0x13e)](_0x96a40d=>{_0x53ba4b(_0x96a40d);});}),()=>{const _0x4e2715=_0x2daf59;var _0x4a564c;(_0x4a564c=_0x24c711['current'])==null||_0x4a564c[_0x4e2715(0x193)](),_0x24c711['current']=null;}),[_0x116bd7,_0xcdd38c]),_0x73a6ce?_0x4e7be3[_0x2daf59(0x19b)](_0x1f13cb['Dropdown'],{'align':'end','disabled':_0x587043===_0x5d2a2f['OFFLINE'],'className':_0x2daf59(0xdb),'overlay':_0x4e7be3[_0x2daf59(0x19b)](_0x15408e,{'status':_0x587043,'coordinator':_0x73a6ce}),'children':_0x4e7be3[_0x2daf59(0x19b)](_0x2daf59(0x155),{'className':_0x1f13cb[_0x2daf59(0x140)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x587043===_0x5d2a2f[_0x2daf59(0x177)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x587043!==_0x5d2a2f['OFFLINE']}),'type':_0x2daf59(0x155),'children':_0x4e7be3[_0x2daf59(0x19b)](_0x21b4bb,{'className':_0x2daf59(0x14d)})})}):null;}function _0x15408e(_0x5acb55){const _0x4b7e75=_0xae0692,{status:_0x285649,coordinator:_0x526b70}=_0x5acb55;switch(_0x285649){case _0x5d2a2f[_0x4b7e75(0x10d)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0xae5710,{'coordinator':_0x526b70});case _0x5d2a2f['FOLLOWING']:return _0x4e7be3[_0x4b7e75(0x19b)](_0x457e35,{'coordinator':_0x526b70});case _0x5d2a2f[_0x4b7e75(0xeb)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x56c882,{'coordinator':_0x526b70});case _0x5d2a2f[_0x4b7e75(0x177)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x47d51e,{});case _0x5d2a2f[_0x4b7e75(0x12e)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x4d191f,{'coordinator':_0x526b70});default:return null;}}function _0xae5710(_0x4a2af8){const _0x3675f7=_0xae0692,{coordinator:_0x3e00af}=_0x4a2af8;return _0x4e7be3[_0x3675f7(0x144)](_0x4e7be3[_0x3675f7(0xc2)],{'children':[_0x4e7be3['jsx'](_0x3675f7(0x10c),{'className':_0x3675f7(0xce),'children':_0x3675f7(0x186)}),_0x4e7be3[_0x3675f7(0x19b)](_0x1f13cb[_0x3675f7(0x172)],{'onClick':()=>_0x3e00af[_0x3675f7(0x116)](),'children':_0x3675f7(0x134)})]});}function _0x457e35(_0x9adbda){const _0x533cd0=_0xae0692,{coordinator:_0x15b2e9}=_0x9adbda;return _0x4e7be3[_0x533cd0(0x144)](_0x4e7be3[_0x533cd0(0xc2)],{'children':[_0x4e7be3['jsx'](_0x533cd0(0x10c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x533cd0(0x125)}),_0x4e7be3[_0x533cd0(0x19b)](_0x1f13cb[_0x533cd0(0x172)],{'onClick':()=>_0x15b2e9[_0x533cd0(0xfc)](),'children':'Stop\x20following'})]});}function _0x56c882(_0x4d50cc){const _0x3479cb=_0xae0692,{coordinator:_0x2bb6df}=_0x4d50cc;return _0x4e7be3[_0x3479cb(0x144)](_0x4e7be3['Fragment'],{'children':[_0x4e7be3['jsx'](_0x3479cb(0x10c),{'className':_0x3479cb(0xce),'children':_0x3479cb(0x167)}),_0x4e7be3[_0x3479cb(0x19b)](_0x1f13cb['Button'],{'variant':_0x3479cb(0x154),'onClick':()=>_0x2bb6df['startFollowing'](),'children':_0x3479cb(0xc9)})]});}function _0x4d191f(_0x1973d6){const _0x468d49=_0xae0692,{coordinator:_0x3a6aa2}=_0x1973d6;return _0x4e7be3[_0x468d49(0x144)](_0x4e7be3[_0x468d49(0xc2)],{'children':[_0x4e7be3[_0x468d49(0x19b)](_0x468d49(0x10c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e7be3['jsx'](_0x1f13cb['Button'],{'variant':_0x468d49(0x142),'onClick':()=>_0x3a6aa2[_0x468d49(0x103)](),'children':_0x468d49(0x164)})]});}function _0x47d51e(){const _0x2ef5e2=_0xae0692;return _0x4e7be3[_0x2ef5e2(0x19b)](_0x4e7be3[_0x2ef5e2(0xc2)],{'children':_0x2ef5e2(0x148)});}var _0x142a45=Object[_0xae0692(0x11c)],_0x576e4f=(_0x512136,_0x1321ae,_0x228931,_0x5072e1)=>{const _0x3c71ea=_0xae0692;for(var _0x45be2e=_0x5072e1>0x1?void 0x0:_0x5072e1?_0x142a45(_0x1321ae,_0x228931):_0x1321ae,_0x5db439=_0x512136[_0x3c71ea(0xe8)]-0x1,_0x599fe7;_0x5db439>=0x0;_0x5db439--)(_0x599fe7=_0x512136[_0x5db439])&&(_0x45be2e=_0x599fe7(_0x45be2e)||_0x45be2e);return _0x45be2e;},_0x30fa92=(_0x3cd562,_0x2d2c75)=>(_0x43c6b5,_0x452c86)=>_0x2d2c75(_0x43c6b5,_0x452c86,_0x3cd562);_0x1d53d8[_0xae0692(0xf0)]=class extends _0x1397df[_0xae0692(0x183)]{constructor(_0x903adb,_0x16315d){const _0x25ec17=_0xae0692;super(),this['_injector']=_0x903adb,this[_0x25ec17(0x18d)]=_0x16315d,this['_mountLiveShare']();}[_0xae0692(0xe6)](){const _0x27e8fe=_0xae0692;this[_0x27e8fe(0xf1)](this[_0x27e8fe(0x18d)][_0x27e8fe(0x120)](_0x4da58e['BuiltInUIPart'][_0x27e8fe(0xd0)],()=>_0x4da58e['connectInjector'](_0x4ee34d,this[_0x27e8fe(0x160)])));}},_0x1d53d8[_0xae0692(0xf0)]=_0x576e4f([_0x30fa92(0x0,_0x1397df[_0xae0692(0xd2)](_0x1397df[_0xae0692(0x18c)])),_0x30fa92(0x1,_0x4da58e['IUIPartsService'])],_0x1d53d8[_0xae0692(0xf0)]);const _0x3ed653=_0xae0692(0x161),_0xb1c6b={};var _0x5ebd2d=Object[_0xae0692(0x11c)],_0x21aef6=(_0x5eb4d0,_0x147885,_0x290cbd,_0x394d94)=>{for(var _0x1fdcc5=_0x394d94>0x1?void 0x0:_0x394d94?_0x5ebd2d(_0x147885,_0x290cbd):_0x147885,_0xa96662=_0x5eb4d0['length']-0x1,_0x126ec8;_0xa96662>=0x0;_0xa96662--)(_0x126ec8=_0x5eb4d0[_0xa96662])&&(_0x1fdcc5=_0x126ec8(_0x1fdcc5)||_0x1fdcc5);return _0x1fdcc5;},_0x384ebc=(_0x8106da,_0x18d231)=>(_0x10b812,_0x88ee13)=>_0x18d231(_0x10b812,_0x88ee13,_0x8106da);let _0x3c95c3=class extends _0x1397df[_0xae0692(0x183)]{constructor(_0x18c39c){const _0x39d19f=_0xae0692;super(),this[_0x39d19f(0x13f)]=_0x18c39c,this[_0x39d19f(0x12a)]();}['_init'](){const _0x42ae48=_0xae0692;[_0x56053b[_0x42ae48(0xd5)]['id'],_0x56053b[_0x42ae48(0x10e)]['id'],_0x3cdbdd[_0x42ae48(0x105)]['id']][_0x42ae48(0xbf)](_0x194370=>{const _0x3df671=_0x42ae48;this[_0x3df671(0xf1)](this[_0x3df671(0x13f)]['registerSharedOperation'](_0x194370));});}};_0x3c95c3=_0x21aef6([_0x384ebc(0x0,_0x1397df[_0xae0692(0xd2)](_0x2aa38c))],_0x3c95c3);var _0x5d8e7c=Object[_0xae0692(0x10a)],_0x77951a=Object[_0xae0692(0x11c)],_0x4aa0d2=(_0x31fbbe,_0x25b175,_0x413bd9)=>_0x25b175 in _0x31fbbe?_0x5d8e7c(_0x31fbbe,_0x25b175,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413bd9}):_0x31fbbe[_0x25b175]=_0x413bd9,_0x13bed6=(_0x2b6ea4,_0x47326c,_0x48b597,_0xc404c9)=>{const _0x1569b5=_0xae0692;for(var _0x37da21=_0xc404c9>0x1?void 0x0:_0xc404c9?_0x77951a(_0x47326c,_0x48b597):_0x47326c,_0x4c352a=_0x2b6ea4[_0x1569b5(0xe8)]-0x1,_0x110db0;_0x4c352a>=0x0;_0x4c352a--)(_0x110db0=_0x2b6ea4[_0x4c352a])&&(_0x37da21=_0x110db0(_0x37da21)||_0x37da21);return _0x37da21;},_0x439e4a=(_0x5407b0,_0x5b7eed)=>(_0x2ed323,_0x4a1a34)=>_0x5b7eed(_0x2ed323,_0x4a1a34,_0x5407b0),_0x5d983f=(_0x56e38d,_0xd2ac93,_0x4c97e4)=>_0x4aa0d2(_0x56e38d,typeof _0xd2ac93!=_0xae0692(0x111)?_0xd2ac93+'':_0xd2ac93,_0x4c97e4);const _0x1adb4c=_0xae0692(0x199);_0x1d53d8[_0xae0692(0x17e)]=class extends _0x1397df[_0xae0692(0x118)]{constructor(_0x15b52b=_0xb1c6b,_0x3c34c4,_0x3f886e){const _0x37b8ca=_0xae0692;super(),this['_config']=_0x15b52b,this['_injector']=_0x3c34c4,this['_configService']=_0x3f886e;const {..._0x30ffb1}=_0x1397df[_0x37b8ca(0x143)]({},_0xb1c6b,this[_0x37b8ca(0xb4)]);this['_configService'][_0x37b8ca(0x18b)](_0x3ed653,_0x30ffb1);}[_0xae0692(0x15d)](){const _0x1d953b=_0xae0692;_0x1397df['registerDependencies'](this[_0x1d953b(0x160)],_0x1397df[_0x1d953b(0x158)]([[_0x2aa38c],[_0x1d53d8[_0x1d953b(0x12d)]],[_0x3c95c3],[_0x1d53d8[_0x1d953b(0xf0)]]],this[_0x1d953b(0xb4)][_0x1d953b(0xdf)])),_0x1397df[_0x1d953b(0xc0)](this[_0x1d953b(0x160)],[[_0x3c95c3]]);}[_0xae0692(0x13d)](){const _0x65b49a=_0xae0692;_0x1397df[_0x65b49a(0xc0)](this[_0x65b49a(0x160)],[[_0x1d53d8[_0x65b49a(0xf0)]]]);}},_0x5d983f(_0x1d53d8[_0xae0692(0x17e)],_0xae0692(0x198),_0x1397df[_0xae0692(0xdd)]['UNIVER_UNKNOWN']),_0x5d983f(_0x1d53d8['UniverLiveSharePlugin'],_0xae0692(0xe4),_0x1adb4c),_0x1d53d8[_0xae0692(0x17e)]=_0x13bed6([_0x1397df[_0xae0692(0x131)](_0x405ccc['UniverCollaborationClientPlugin']),_0x439e4a(0x1,_0x1397df['Inject'](_0x1397df[_0xae0692(0x18c)])),_0x439e4a(0x2,_0x1397df[_0xae0692(0x16b)])],_0x1d53d8[_0xae0692(0x17e)]),_0x1d53d8[_0xae0692(0xf5)]=_0x4ee34d,_0x1d53d8[_0xae0692(0x18a)]=_0x2aa38c,_0x1d53d8['LiveShareStatus']=_0x5d2a2f,Object[_0xae0692(0x10a)](_0x1d53d8,Symbol[_0xae0692(0x162)],{'value':_0xae0692(0x159)});}));function _0x2d88(_0x1a91e4,_0x12b8d4){_0x1a91e4=_0x1a91e4-0xb4;const _0x57dca2=_0x57dc();let _0x2d8852=_0x57dca2[_0x1a91e4];return _0x2d8852;}function _0x57dc(){const _0x48f159=['UniverProCollaboration','useEffect','_collabSessionService','_handleOnline','CollaborationEvent','2300630gOiEAj','operators','_sharedOperations','forEach','touchDependencies','params','Fragment','800RJDlRC','toDisposable','DisposableCollection','useState','UNIVER_SHEET','registerInitialStateReporter','Start\x20following','parseProtocolChangeset','sheet','presenting','_fetchOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','next','HEADER_MENU','UniverSheets','Inject','LiveShareIcon','idle','SetZoomRatioOperation','useObservable','string','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','requireSession','pipe','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','15ijxHuh','UniverInstanceType','1em','override','_startLiveShareCoordinator','toString','replace','mask','pluginName','@univerjs/sheets-ui','_mountLiveShare','svg','length','OPERATION','LIVESHARE_NEW_HOST','NOT_FOLLOWING','map','function','unitId','CollaborationSessionService','DesktopLiveShareController','disposeWithMe','getValue','getLiveShareCoordinatorSync','UniverDesign','LiveShare','9830942FqvHRO','dispose$','idSuffix','currentColor','includes','_presenter','stopFollowing','_status$','LIVESHARE_TERMINATE','_handleNewChangeSets','xlink:href','IUniverInstanceService','_handleOffline','stopPresenting','path','SetWorksheetActiveOperation','createElement','@univerjs/sheets','_startPresenting','_univerInstanceService','defineProperty','_handleTerminate','div','IDLE','SetScrollOperation','useDependency','BehaviorSubject','symbol','shouldShareOperation','data','30bORUsZ','react/jsx-runtime','tryStartPresenting','evenodd','Plugin','url(#$1','assign','send','getOwnPropertyDescriptor','tag','object','takeUntil','registerComponent','2997776iYhUaB','set','134533ucMVxU','CommandType','You\x27re\x20following\x20the\x20presenter','values','Subject','has','137980qQgiUD','_init','mutations','getInitialStates','LiveShareController','PRESENTING','React','FOLLOWING','DependentOn','event$','trim','Start','SessionStatus','not-following','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','UniverCore','throttleTime','react','presenter','onRendered','subscribe','_liveShareService','clsx','getLiveShareCoordinator','default','merge','jsxs','_handleOperation','@univerjs/design','_entities','You\x27are\x20offline.','executeCommand','forwardRef','@univerjs/core','LIVESHARE_OPERATION','univer-size-4','UniverProLiveShare','@univerjs/ui','complete','http://www.w3.org/2000/svg','LIVESHARE_FETCH_OPERATIONS','asObservable','text','button','offline','dispose','mergeOverrideWithDependencies','Module','init','clear','getMemberID','onStarting','status$','_stopFollowing','_injector','live-share.config','toStringTag','sessionStatus$','Stop\x20presenting','onCommandExecuted','children','You\x27re\x20not\x20following\x20the\x20presenter','delete','entries','LiveShareCoordinator','IConfigService','_beIdle','attrs','UniverProCollaborationClient','_commandDisposable','_status','add','Button','current','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','_stopPresenting','stringify','OFFLINE','useRef','defIds','InsertSheetMutation','displayName','UniverIcon','getUnitId','UniverLiveSharePlugin','memberID','fill','253729ZlYJMp','live-share-icon','Disposable','_handleNewHost','6484MiuAjN','Present\x20this\x20document','defs','_commandService','following','LiveShareService','setConfig','Injector','_uiPartsService','RxDisposable','operations','get','18qOUcdz','0\x200\x2017\x2017','unsubscribe','UniverUi','LIVESHARE_REQUEST_HOST','rxjs','colorChannel1','type','UNIVER_LIVE_SHARE_PLUGIN','_configService','jsx','_collabSession','_reporters','_config','_startFollowing','_unitID'];_0x57dc=function(){return _0x48f159;};return _0x57dc();}
|
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",
|
|
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/engine-render": "0.12.
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4",
|
|
62
|
+
"@univerjs/core": "0.12.4",
|
|
63
|
+
"@univerjs/engine-render": "0.12.4",
|
|
64
|
+
"@univerjs/design": "0.12.4",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.4",
|
|
66
|
+
"@univerjs/ui": "0.12.4",
|
|
67
|
+
"@univerjs/sheets": "0.12.4"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.6",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.12.4",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|